Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions generated/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
1 change: 1 addition & 0 deletions generated/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
README.md
46 changes: 26 additions & 20 deletions generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
.gitignore
.npmignore
.openapi-generator-ignore
apis/LiveActivitiesApi.ts
apis/NotificationsApi.ts
apis/index.ts
index.ts
models/ContentStateEnd.ts
models/ContentStateStart.ts
models/ContentStateUpdate.ts
models/LiveActivityEndRequest.ts
models/LiveActivityEndResponse.ts
models/LiveActivityLimitError.ts
models/LiveActivityStartRequest.ts
models/LiveActivityStartResponse.ts
models/LiveActivityUpdateRequest.ts
models/LiveActivityUpdateResponse.ts
models/PushNotificationRequest.ts
models/PushNotificationResponse.ts
models/RateLimitError.ts
models/SendPushNotification429Response.ts
models/index.ts
runtime.ts
README.md
package.json
src/apis/LiveActivitiesApi.ts
src/apis/PushNotificationsApi.ts
src/apis/index.ts
src/index.ts
src/models/ContentStateEnd.ts
src/models/ContentStateStart.ts
src/models/ContentStateUpdate.ts
src/models/LiveActivityEndRequest.ts
src/models/LiveActivityEndResponse.ts
src/models/LiveActivityLimitError.ts
src/models/LiveActivityStartRequest.ts
src/models/LiveActivityStartResponse.ts
src/models/LiveActivityUpdateRequest.ts
src/models/LiveActivityUpdateResponse.ts
src/models/PushNotificationRequest.ts
src/models/PushNotificationResponse.ts
src/models/RateLimitError.ts
src/models/SendPushNotification429Response.ts
src/models/index.ts
src/runtime.ts
tsconfig.esm.json
tsconfig.json
1 change: 1 addition & 0 deletions generated/.regen-branch.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
regen/openapi-c57199a8a9d7413a0ca29f9ba88001a4731ca0eb
46 changes: 46 additions & 0 deletions generated/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## activitysmith@0.1.0

This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install activitysmith@0.1.0 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```
21 changes: 21 additions & 0 deletions generated/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "activitysmith",
"version": "0.1.0",
"description": "OpenAPI client for activitysmith",
"author": "OpenAPI-Generator",
"repository": {
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
},
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"module": "./dist/esm/index.js",
"sideEffects": false,
"scripts": {
"build": "tsc && tsc -p tsconfig.esm.json",
"prepare": "npm run build"
},
"devDependencies": {
"typescript": "^4.0 || ^5.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class LiveActivitiesApi extends runtime.BaseAPI {

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearerAuth", []);
const tokenString = await token("apiKeyAuth", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
Expand Down Expand Up @@ -123,7 +123,7 @@ export class LiveActivitiesApi extends runtime.BaseAPI {

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearerAuth", []);
const tokenString = await token("apiKeyAuth", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
Expand Down Expand Up @@ -169,7 +169,7 @@ export class LiveActivitiesApi extends runtime.BaseAPI {

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearerAuth", []);
const tokenString = await token("apiKeyAuth", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface SendPushNotificationRequest {
/**
*
*/
export class NotificationsApi extends runtime.BaseAPI {
export class PushNotificationsApi extends runtime.BaseAPI {

/**
* Sends a push notification to every paired device in your account.
Expand All @@ -57,7 +57,7 @@ export class NotificationsApi extends runtime.BaseAPI {

if (this.configuration && this.configuration.accessToken) {
const token = this.configuration.accessToken;
const tokenString = await token("bearerAuth", []);
const tokenString = await token("apiKeyAuth", []);

if (tokenString) {
headerParameters["Authorization"] = `Bearer ${tokenString}`;
Expand Down
2 changes: 1 addition & 1 deletion generated/apis/index.ts → generated/src/apis/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* tslint:disable */
/* eslint-disable */
export * from './LiveActivitiesApi';
export * from './NotificationsApi';
export * from './PushNotificationsApi';
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions generated/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "esnext",
"outDir": "dist/esm"
}
}
16 changes: 16 additions & 0 deletions generated/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"declaration": true,
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"outDir": "dist",
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"dist",
"node_modules"
]
}
Loading