postboost 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -1
- package/api/mediaApi.ts +12 -12
- package/api/postsApi.ts +3 -3
- package/api/receiptsApi.ts +12 -7
- package/api/subscriptionsApi.ts +9 -9
- package/api/tagsApi.ts +5 -5
- package/api/usersApi.ts +12 -7
- package/api/workspacesApi.ts +13 -8
- package/model/account.ts +8 -8
- package/model/deleteResult.ts +3 -3
- package/model/{initiateChunkedUpload200Response.ts → initiateChunkedUpload201Response.ts} +2 -2
- package/model/{initiateRemoteUpload200Response.ts → initiateRemoteUpload201Response.ts} +13 -13
- package/model/{initiateRemoteUpload200ResponseOneOf.ts → initiateRemoteUpload201ResponseOneOf.ts} +2 -2
- package/model/media.ts +8 -8
- package/model/models.ts +13 -13
- package/model/post.ts +8 -8
- package/model/receipt.ts +8 -8
- package/model/scheduleResult.ts +1 -1
- package/model/subscription.ts +5 -5
- package/model/tag.ts +4 -4
- package/model/{uploadChunk200Response.ts → uploadChunk201Response.ts} +2 -2
- package/model/user.ts +5 -5
- package/model/workspace.ts +5 -5
- package/package.json +1 -1
- package/.openapi-generator/FILES +0 -72
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/git_push.sh +0 -57
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ npm install postboost
|
|
|
13
13
|
| **npm** | [npmjs.com/package/postboost](https://www.npmjs.com/package/postboost) |
|
|
14
14
|
| **GitHub** | [postboost-co/postboost-node](https://github.com/postboost-co/postboost-node) |
|
|
15
15
|
| **Docs** | [postboost.co/docs/api](https://postboost.co/docs/api) |
|
|
16
|
-
| **Version** | v1.
|
|
16
|
+
| **Version** | v1.4.0 |
|
|
17
17
|
|
|
18
18
|
## Quick start
|
|
19
19
|
|
|
@@ -26,6 +26,39 @@ const posts = await api.listPosts('YOUR_WORKSPACE_UUID');
|
|
|
26
26
|
posts.forEach(post => console.log(post.uuid));
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## API Endpoints
|
|
32
|
+
|
|
33
|
+
All API endpoints are available as methods on the API classes:
|
|
34
|
+
|
|
35
|
+
| Class | Method | HTTP request |
|
|
36
|
+
|-------|--------|-------------|
|
|
37
|
+
| `AccountsApi` | `listAccounts` | GET /{workspaceUuid}/accounts |
|
|
38
|
+
| `AccountsApi` | `getAccount` | GET /{workspaceUuid}/accounts/{accountUuid} |
|
|
39
|
+
| `MediaApi` | `listMedia` | GET /{workspaceUuid}/media |
|
|
40
|
+
| `MediaApi` | `uploadMedia` | POST /{workspaceUuid}/media |
|
|
41
|
+
| `MediaApi` | `getMedia` | GET /{workspaceUuid}/media/{mediaUuid} |
|
|
42
|
+
| `MediaApi` | `updateMedia` | PUT /{workspaceUuid}/media/{mediaUuid} |
|
|
43
|
+
| `MediaApi` | `deleteMedia` | DELETE /{workspaceUuid}/media/{mediaUuid} |
|
|
44
|
+
| `TagsApi` | `listTags` | GET /{workspaceUuid}/tags |
|
|
45
|
+
| `TagsApi` | `createTag` | POST /{workspaceUuid}/tags |
|
|
46
|
+
| `TagsApi` | `getTag` | GET /{workspaceUuid}/tags/{tagUuid} |
|
|
47
|
+
| `TagsApi` | `updateTag` | PUT /{workspaceUuid}/tags/{tagUuid} |
|
|
48
|
+
| `TagsApi` | `deleteTag` | DELETE /{workspaceUuid}/tags/{tagUuid} |
|
|
49
|
+
| `PostsApi` | `listPosts` | GET /{workspaceUuid}/posts |
|
|
50
|
+
| `PostsApi` | `createPost` | POST /{workspaceUuid}/posts |
|
|
51
|
+
| `PostsApi` | `getPost` | GET /{workspaceUuid}/posts/{postUuid} |
|
|
52
|
+
| `PostsApi` | `updatePost` | PUT /{workspaceUuid}/posts/{postUuid} |
|
|
53
|
+
| `PostsApi` | `deletePost` | DELETE /{workspaceUuid}/posts/{postUuid} |
|
|
54
|
+
| `PostsApi` | `schedulePost` | POST /{workspaceUuid}/posts/schedule/{postUuid} |
|
|
55
|
+
| `WorkspacesApi` | `listWorkspaces` | GET /panel/workspaces |
|
|
56
|
+
| `WorkspacesApi` | `createWorkspace` | POST /panel/workspaces |
|
|
57
|
+
| `UsersApi` | `listUsers` | GET /panel/users |
|
|
58
|
+
| `UsersApi` | `createUser` | POST /panel/users |
|
|
59
|
+
|
|
60
|
+
See the [full API reference](https://postboost.co/docs/api) for all endpoints with parameters and response schemas.
|
|
61
|
+
|
|
29
62
|
## License
|
|
30
63
|
|
|
31
64
|
MIT
|
package/api/mediaApi.ts
CHANGED
|
@@ -17,14 +17,14 @@ import http from 'http';
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { DeleteMediaBulkRequest } from '../model/deleteMediaBulkRequest';
|
|
19
19
|
import { GetRemoteUploadStatus200Response } from '../model/getRemoteUploadStatus200Response';
|
|
20
|
-
import {
|
|
20
|
+
import { InitiateChunkedUpload201Response } from '../model/initiateChunkedUpload201Response';
|
|
21
21
|
import { InitiateChunkedUploadRequest } from '../model/initiateChunkedUploadRequest';
|
|
22
|
-
import {
|
|
22
|
+
import { InitiateRemoteUpload201Response } from '../model/initiateRemoteUpload201Response';
|
|
23
23
|
import { InitiateRemoteUploadRequest } from '../model/initiateRemoteUploadRequest';
|
|
24
24
|
import { ListMedia200Response } from '../model/listMedia200Response';
|
|
25
25
|
import { Media } from '../model/media';
|
|
26
26
|
import { UpdateMediaRequest } from '../model/updateMediaRequest';
|
|
27
|
-
import {
|
|
27
|
+
import { UploadChunk201Response } from '../model/uploadChunk201Response';
|
|
28
28
|
|
|
29
29
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
30
30
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
@@ -501,7 +501,7 @@ export class MediaApi {
|
|
|
501
501
|
* @param workspaceUuid UUID of the workspace.
|
|
502
502
|
* @param initiateChunkedUploadRequest
|
|
503
503
|
*/
|
|
504
|
-
public async initiateChunkedUpload (workspaceUuid: string, initiateChunkedUploadRequest: InitiateChunkedUploadRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body:
|
|
504
|
+
public async initiateChunkedUpload (workspaceUuid: string, initiateChunkedUploadRequest: InitiateChunkedUploadRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InitiateChunkedUpload201Response; }> {
|
|
505
505
|
const localVarPath = this.basePath + '/{workspaceUuid}/media/chunked/initiate'
|
|
506
506
|
.replace('{' + 'workspaceUuid' + '}', encodeURIComponent(String(workspaceUuid)));
|
|
507
507
|
let localVarQueryParameters: any = {};
|
|
@@ -558,13 +558,13 @@ export class MediaApi {
|
|
|
558
558
|
localVarRequestOptions.form = localVarFormParams;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
561
|
+
return new Promise<{ response: http.IncomingMessage; body: InitiateChunkedUpload201Response; }>((resolve, reject) => {
|
|
562
562
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
563
563
|
if (error) {
|
|
564
564
|
reject(error);
|
|
565
565
|
} else {
|
|
566
566
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
567
|
-
body = ObjectSerializer.deserialize(body, "
|
|
567
|
+
body = ObjectSerializer.deserialize(body, "InitiateChunkedUpload201Response");
|
|
568
568
|
resolve({ response: response, body: body });
|
|
569
569
|
} else {
|
|
570
570
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -580,7 +580,7 @@ export class MediaApi {
|
|
|
580
580
|
* @param workspaceUuid UUID of the workspace.
|
|
581
581
|
* @param initiateRemoteUploadRequest
|
|
582
582
|
*/
|
|
583
|
-
public async initiateRemoteUpload (workspaceUuid: string, initiateRemoteUploadRequest: InitiateRemoteUploadRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body:
|
|
583
|
+
public async initiateRemoteUpload (workspaceUuid: string, initiateRemoteUploadRequest: InitiateRemoteUploadRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InitiateRemoteUpload201Response; }> {
|
|
584
584
|
const localVarPath = this.basePath + '/{workspaceUuid}/media/remote/initiate'
|
|
585
585
|
.replace('{' + 'workspaceUuid' + '}', encodeURIComponent(String(workspaceUuid)));
|
|
586
586
|
let localVarQueryParameters: any = {};
|
|
@@ -637,13 +637,13 @@ export class MediaApi {
|
|
|
637
637
|
localVarRequestOptions.form = localVarFormParams;
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
640
|
+
return new Promise<{ response: http.IncomingMessage; body: InitiateRemoteUpload201Response; }>((resolve, reject) => {
|
|
641
641
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
642
642
|
if (error) {
|
|
643
643
|
reject(error);
|
|
644
644
|
} else {
|
|
645
645
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
646
|
-
body = ObjectSerializer.deserialize(body, "
|
|
646
|
+
body = ObjectSerializer.deserialize(body, "InitiateRemoteUpload201Response");
|
|
647
647
|
resolve({ response: response, body: body });
|
|
648
648
|
} else {
|
|
649
649
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -824,7 +824,7 @@ export class MediaApi {
|
|
|
824
824
|
* @param chunk
|
|
825
825
|
* @param chunkIndex Zero-based index of this chunk.
|
|
826
826
|
*/
|
|
827
|
-
public async uploadChunk (workspaceUuid: string, uploadUuid: string, chunk: RequestFile, chunkIndex: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body:
|
|
827
|
+
public async uploadChunk (workspaceUuid: string, uploadUuid: string, chunk: RequestFile, chunkIndex: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: UploadChunk201Response; }> {
|
|
828
828
|
const localVarPath = this.basePath + '/{workspaceUuid}/media/chunked/{uploadUuid}/upload'
|
|
829
829
|
.replace('{' + 'workspaceUuid' + '}', encodeURIComponent(String(workspaceUuid)))
|
|
830
830
|
.replace('{' + 'uploadUuid' + '}', encodeURIComponent(String(uploadUuid)));
|
|
@@ -900,13 +900,13 @@ export class MediaApi {
|
|
|
900
900
|
localVarRequestOptions.form = localVarFormParams;
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
903
|
+
return new Promise<{ response: http.IncomingMessage; body: UploadChunk201Response; }>((resolve, reject) => {
|
|
904
904
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
905
905
|
if (error) {
|
|
906
906
|
reject(error);
|
|
907
907
|
} else {
|
|
908
908
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
909
|
-
body = ObjectSerializer.deserialize(body, "
|
|
909
|
+
body = ObjectSerializer.deserialize(body, "UploadChunk201Response");
|
|
910
910
|
resolve({ response: response, body: body });
|
|
911
911
|
} else {
|
|
912
912
|
reject(new HttpError(response, body, response.statusCode));
|
package/api/postsApi.ts
CHANGED
|
@@ -337,7 +337,7 @@ export class PostsApi {
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
|
-
*
|
|
340
|
+
* Deletes a post. Use `delete_mode` to control whether to also remove the published content from social platforms.
|
|
341
341
|
* @summary Delete post
|
|
342
342
|
* @param workspaceUuid UUID of the workspace.
|
|
343
343
|
* @param postUuid UUID of the post.
|
|
@@ -497,7 +497,7 @@ export class PostsApi {
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
/**
|
|
500
|
-
*
|
|
500
|
+
* Returns a single post with all its versions and associated accounts.
|
|
501
501
|
* @summary Get post
|
|
502
502
|
* @param workspaceUuid UUID of the workspace.
|
|
503
503
|
* @param postUuid UUID of the post.
|
|
@@ -739,7 +739,7 @@ export class PostsApi {
|
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
741
|
/**
|
|
742
|
-
*
|
|
742
|
+
* Replaces a post\'s versions, accounts, tags, and scheduling options. The post must not be in a published state.
|
|
743
743
|
* @summary Update post
|
|
744
744
|
* @param workspaceUuid UUID of the workspace.
|
|
745
745
|
* @param postUuid UUID of the post.
|
package/api/receiptsApi.ts
CHANGED
|
@@ -97,7 +97,7 @@ export class ReceiptsApi {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* Creates a billing receipt record for a workspace. Admin only.
|
|
101
101
|
* @summary Create receipt
|
|
102
102
|
* @param receiptInput
|
|
103
103
|
*/
|
|
@@ -169,7 +169,7 @@ export class ReceiptsApi {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
172
|
+
* Permanently deletes a single receipt. Admin only.
|
|
173
173
|
* @summary Delete receipt
|
|
174
174
|
* @param receiptUuid UUID of the receipt.
|
|
175
175
|
*/
|
|
@@ -241,7 +241,7 @@ export class ReceiptsApi {
|
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
|
-
*
|
|
244
|
+
* Permanently deletes one or more receipt records. Admin only.
|
|
245
245
|
* @summary Delete receipts (bulk)
|
|
246
246
|
* @param deleteReceiptsBulkRequest
|
|
247
247
|
*/
|
|
@@ -313,7 +313,7 @@ export class ReceiptsApi {
|
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
315
|
/**
|
|
316
|
-
*
|
|
316
|
+
* Returns a single receipt by UUID. Admin only.
|
|
317
317
|
* @summary Get receipt
|
|
318
318
|
* @param receiptUuid UUID of the receipt.
|
|
319
319
|
*/
|
|
@@ -385,12 +385,13 @@ export class ReceiptsApi {
|
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
/**
|
|
388
|
-
*
|
|
388
|
+
* Returns a paginated list of billing receipts. Filter by workspace UUID or invoice number. Admin only.
|
|
389
389
|
* @summary List receipts
|
|
390
390
|
* @param workspaceUuid
|
|
391
391
|
* @param invoiceNumber
|
|
392
|
+
* @param page Page number (15 items per page).
|
|
392
393
|
*/
|
|
393
|
-
public async listReceipts (workspaceUuid?: string, invoiceNumber?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ListReceipts200Response; }> {
|
|
394
|
+
public async listReceipts (workspaceUuid?: string, invoiceNumber?: string, page?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ListReceipts200Response; }> {
|
|
394
395
|
const localVarPath = this.basePath + '/panel/receipts';
|
|
395
396
|
let localVarQueryParameters: any = {};
|
|
396
397
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -411,6 +412,10 @@ export class ReceiptsApi {
|
|
|
411
412
|
localVarQueryParameters['invoice_number'] = ObjectSerializer.serialize(invoiceNumber, "string");
|
|
412
413
|
}
|
|
413
414
|
|
|
415
|
+
if (page !== undefined) {
|
|
416
|
+
localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number");
|
|
417
|
+
}
|
|
418
|
+
|
|
414
419
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
415
420
|
|
|
416
421
|
let localVarUseFormData = false;
|
|
@@ -460,7 +465,7 @@ export class ReceiptsApi {
|
|
|
460
465
|
});
|
|
461
466
|
}
|
|
462
467
|
/**
|
|
463
|
-
*
|
|
468
|
+
* Updates a receipt\'s transaction details, amount, or payment date. Admin only.
|
|
464
469
|
* @summary Update receipt
|
|
465
470
|
* @param receiptUuid UUID of the receipt.
|
|
466
471
|
* @param receiptUpdateInput
|
package/api/subscriptionsApi.ts
CHANGED
|
@@ -99,7 +99,7 @@ export class SubscriptionsApi {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Assigns a non-Stripe (generic) subscription plan to the workspace, optionally granting a trial period. Used for AppSumo-style lifetime deals. Admin only.
|
|
103
103
|
* @summary Add generic subscription
|
|
104
104
|
* @param workspaceUuid UUID of the workspace.
|
|
105
105
|
* @param addGenericSubscriptionRequest
|
|
@@ -178,7 +178,7 @@ export class SubscriptionsApi {
|
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
181
|
+
* Cancels the workspace\'s Stripe subscription at the end of the current billing period. Admin only.
|
|
182
182
|
* @summary Cancel subscription
|
|
183
183
|
* @param workspaceUuid UUID of the workspace.
|
|
184
184
|
*/
|
|
@@ -250,7 +250,7 @@ export class SubscriptionsApi {
|
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
/**
|
|
253
|
-
*
|
|
253
|
+
* Switches the workspace to a different Stripe plan. Optionally prorates the change and bills immediately. Admin only.
|
|
254
254
|
* @summary Change subscription plan
|
|
255
255
|
* @param workspaceUuid UUID of the workspace.
|
|
256
256
|
* @param changeSubscriptionPlanRequest
|
|
@@ -408,7 +408,7 @@ export class SubscriptionsApi {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
|
-
*
|
|
411
|
+
* Manually creates a subscription record for the workspace (for external billing integrations). Admin only.
|
|
412
412
|
* @summary Create subscription
|
|
413
413
|
* @param workspaceUuid UUID of the workspace.
|
|
414
414
|
* @param subscriptionInput
|
|
@@ -487,7 +487,7 @@ export class SubscriptionsApi {
|
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
489
|
/**
|
|
490
|
-
*
|
|
490
|
+
* Removes the subscription record from the workspace. Admin only.
|
|
491
491
|
* @summary Delete subscription
|
|
492
492
|
* @param workspaceUuid UUID of the workspace.
|
|
493
493
|
*/
|
|
@@ -559,7 +559,7 @@ export class SubscriptionsApi {
|
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
/**
|
|
562
|
-
*
|
|
562
|
+
* Returns the active subscription for the workspace, or `null` if none exists. Admin only.
|
|
563
563
|
* @summary Get subscription
|
|
564
564
|
* @param workspaceUuid UUID of the workspace.
|
|
565
565
|
*/
|
|
@@ -631,7 +631,7 @@ export class SubscriptionsApi {
|
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
/**
|
|
634
|
-
*
|
|
634
|
+
* Removes the generic (non-Stripe) subscription from the workspace. Admin only.
|
|
635
635
|
* @summary Remove generic subscription
|
|
636
636
|
* @param workspaceUuid UUID of the workspace.
|
|
637
637
|
*/
|
|
@@ -703,7 +703,7 @@ export class SubscriptionsApi {
|
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
705
|
/**
|
|
706
|
-
*
|
|
706
|
+
* Resumes a previously canceled subscription before it expires. Admin only.
|
|
707
707
|
* @summary Resume subscription
|
|
708
708
|
* @param workspaceUuid UUID of the workspace.
|
|
709
709
|
*/
|
|
@@ -775,7 +775,7 @@ export class SubscriptionsApi {
|
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
777
|
/**
|
|
778
|
-
*
|
|
778
|
+
* Updates the plan ID, status, or trial/pause dates of an existing subscription. Admin only.
|
|
779
779
|
* @summary Update subscription
|
|
780
780
|
* @param workspaceUuid UUID of the workspace.
|
|
781
781
|
* @param subscriptionUpdateInput
|
package/api/tagsApi.ts
CHANGED
|
@@ -95,7 +95,7 @@ export class TagsApi {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Creates a new color-coded tag in the workspace for organizing posts.
|
|
99
99
|
* @summary Create tag
|
|
100
100
|
* @param workspaceUuid UUID of the workspace.
|
|
101
101
|
* @param tagInput
|
|
@@ -174,7 +174,7 @@ export class TagsApi {
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
|
-
*
|
|
177
|
+
* Permanently deletes a tag. Posts that had this tag attached are unaffected.
|
|
178
178
|
* @summary Delete tag
|
|
179
179
|
* @param workspaceUuid UUID of the workspace.
|
|
180
180
|
* @param tagUuid UUID of the tag.
|
|
@@ -253,7 +253,7 @@ export class TagsApi {
|
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
256
|
+
* Returns a single tag by UUID.
|
|
257
257
|
* @summary Get tag
|
|
258
258
|
* @param workspaceUuid UUID of the workspace.
|
|
259
259
|
* @param tagUuid UUID of the tag.
|
|
@@ -332,7 +332,7 @@ export class TagsApi {
|
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
334
|
/**
|
|
335
|
-
*
|
|
335
|
+
* Returns all tags defined in the workspace.
|
|
336
336
|
* @summary List tags
|
|
337
337
|
* @param workspaceUuid UUID of the workspace.
|
|
338
338
|
*/
|
|
@@ -404,7 +404,7 @@ export class TagsApi {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
/**
|
|
407
|
-
*
|
|
407
|
+
* Updates a tag\'s name or color.
|
|
408
408
|
* @summary Update tag
|
|
409
409
|
* @param workspaceUuid UUID of the workspace.
|
|
410
410
|
* @param tagUuid UUID of the tag.
|
package/api/usersApi.ts
CHANGED
|
@@ -98,7 +98,7 @@ export class UsersApi {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Creates a new user account on the platform. Admin only.
|
|
102
102
|
* @summary Create user
|
|
103
103
|
* @param userInput
|
|
104
104
|
*/
|
|
@@ -170,7 +170,7 @@ export class UsersApi {
|
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
|
-
*
|
|
173
|
+
* Permanently deletes a user account. Returns 400 if you attempt to delete your own account. Admin only.
|
|
174
174
|
* @summary Delete user
|
|
175
175
|
* @param userId ID of the user.
|
|
176
176
|
*/
|
|
@@ -242,7 +242,7 @@ export class UsersApi {
|
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
/**
|
|
245
|
-
*
|
|
245
|
+
* Permanently deletes one or more user accounts. You cannot delete your own account. Admin only.
|
|
246
246
|
* @summary Delete users (bulk)
|
|
247
247
|
* @param deleteUsersBulkRequest
|
|
248
248
|
*/
|
|
@@ -314,7 +314,7 @@ export class UsersApi {
|
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
|
-
*
|
|
317
|
+
* Returns a single user account by ID. Admin only.
|
|
318
318
|
* @summary Get user
|
|
319
319
|
* @param userId ID of the user.
|
|
320
320
|
*/
|
|
@@ -386,11 +386,12 @@ export class UsersApi {
|
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
388
|
/**
|
|
389
|
-
*
|
|
389
|
+
* Returns a paginated list of all users on the platform. Optionally filter by name or email. Admin only.
|
|
390
390
|
* @summary List users
|
|
391
391
|
* @param keyword Search by name or email.
|
|
392
|
+
* @param page Page number (15 items per page).
|
|
392
393
|
*/
|
|
393
|
-
public async listUsers (keyword?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ListUsers200Response; }> {
|
|
394
|
+
public async listUsers (keyword?: string, page?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ListUsers200Response; }> {
|
|
394
395
|
const localVarPath = this.basePath + '/panel/users';
|
|
395
396
|
let localVarQueryParameters: any = {};
|
|
396
397
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -407,6 +408,10 @@ export class UsersApi {
|
|
|
407
408
|
localVarQueryParameters['keyword'] = ObjectSerializer.serialize(keyword, "string");
|
|
408
409
|
}
|
|
409
410
|
|
|
411
|
+
if (page !== undefined) {
|
|
412
|
+
localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number");
|
|
413
|
+
}
|
|
414
|
+
|
|
410
415
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
411
416
|
|
|
412
417
|
let localVarUseFormData = false;
|
|
@@ -456,7 +461,7 @@ export class UsersApi {
|
|
|
456
461
|
});
|
|
457
462
|
}
|
|
458
463
|
/**
|
|
459
|
-
*
|
|
464
|
+
* Updates a user\'s name, email, admin status, or password. Admin only.
|
|
460
465
|
* @summary Update user
|
|
461
466
|
* @param userId ID of the user.
|
|
462
467
|
* @param userUpdateInput
|
package/api/workspacesApi.ts
CHANGED
|
@@ -98,7 +98,7 @@ export class WorkspacesApi {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Adds an existing user to the workspace with a specified role. Admin only.
|
|
102
102
|
* @summary Add user to workspace
|
|
103
103
|
* @param workspaceUuid UUID of the workspace.
|
|
104
104
|
* @param workspaceUserInput
|
|
@@ -249,7 +249,7 @@ export class WorkspacesApi {
|
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
|
-
*
|
|
252
|
+
* Permanently deletes a single workspace and all its associated data. Admin only.
|
|
253
253
|
* @summary Delete workspace
|
|
254
254
|
* @param workspaceUuid UUID of the workspace.
|
|
255
255
|
*/
|
|
@@ -321,7 +321,7 @@ export class WorkspacesApi {
|
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
|
-
*
|
|
324
|
+
* Permanently deletes one or more workspaces and all their associated data. Admin only.
|
|
325
325
|
* @summary Delete workspaces (bulk)
|
|
326
326
|
* @param deleteWorkspacesBulkRequest
|
|
327
327
|
*/
|
|
@@ -393,7 +393,7 @@ export class WorkspacesApi {
|
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
395
|
/**
|
|
396
|
-
*
|
|
396
|
+
* Returns a single workspace by UUID including its subscription status. Admin only.
|
|
397
397
|
* @summary Get workspace
|
|
398
398
|
* @param workspaceUuid UUID of the workspace.
|
|
399
399
|
*/
|
|
@@ -470,8 +470,9 @@ export class WorkspacesApi {
|
|
|
470
470
|
* @param keyword
|
|
471
471
|
* @param subscriptionStatus
|
|
472
472
|
* @param accessStatus
|
|
473
|
+
* @param page Page number (15 items per page).
|
|
473
474
|
*/
|
|
474
|
-
public async listWorkspaces (keyword?: string, subscriptionStatus?: 'active' | 'trialing' | 'past_due' | 'paused' | 'canceled' | 'incomplete', accessStatus?: 'subscription' | 'unlimited' | 'locked', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ListWorkspaces200Response; }> {
|
|
475
|
+
public async listWorkspaces (keyword?: string, subscriptionStatus?: 'active' | 'trialing' | 'past_due' | 'paused' | 'canceled' | 'incomplete', accessStatus?: 'subscription' | 'unlimited' | 'locked', page?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ListWorkspaces200Response; }> {
|
|
475
476
|
const localVarPath = this.basePath + '/panel/workspaces';
|
|
476
477
|
let localVarQueryParameters: any = {};
|
|
477
478
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -496,6 +497,10 @@ export class WorkspacesApi {
|
|
|
496
497
|
localVarQueryParameters['access_status'] = ObjectSerializer.serialize(accessStatus, "'subscription' | 'unlimited' | 'locked'");
|
|
497
498
|
}
|
|
498
499
|
|
|
500
|
+
if (page !== undefined) {
|
|
501
|
+
localVarQueryParameters['page'] = ObjectSerializer.serialize(page, "number");
|
|
502
|
+
}
|
|
503
|
+
|
|
499
504
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
500
505
|
|
|
501
506
|
let localVarUseFormData = false;
|
|
@@ -545,7 +550,7 @@ export class WorkspacesApi {
|
|
|
545
550
|
});
|
|
546
551
|
}
|
|
547
552
|
/**
|
|
548
|
-
*
|
|
553
|
+
* Removes a user\'s access to the workspace. The user account is not deleted. Admin only.
|
|
549
554
|
* @summary Remove user from workspace
|
|
550
555
|
* @param workspaceUuid UUID of the workspace.
|
|
551
556
|
* @param removeUserFromWorkspaceRequest
|
|
@@ -624,7 +629,7 @@ export class WorkspacesApi {
|
|
|
624
629
|
});
|
|
625
630
|
}
|
|
626
631
|
/**
|
|
627
|
-
*
|
|
632
|
+
* Updates a workspace\'s name, color, or access status. Admin only.
|
|
628
633
|
* @summary Update workspace
|
|
629
634
|
* @param workspaceUuid UUID of the workspace.
|
|
630
635
|
* @param workspaceInput
|
|
@@ -703,7 +708,7 @@ export class WorkspacesApi {
|
|
|
703
708
|
});
|
|
704
709
|
}
|
|
705
710
|
/**
|
|
706
|
-
*
|
|
711
|
+
* Changes a user\'s role or permissions within the workspace. Admin only.
|
|
707
712
|
* @summary Update user role in workspace
|
|
708
713
|
* @param workspaceUuid UUID of the workspace.
|
|
709
714
|
* @param workspaceUserInput
|
package/model/account.ts
CHANGED
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
15
|
export class Account {
|
|
16
|
-
'id'
|
|
17
|
-
'uuid'
|
|
18
|
-
'name'
|
|
19
|
-
'username'
|
|
16
|
+
'id': number;
|
|
17
|
+
'uuid': string;
|
|
18
|
+
'name': string;
|
|
19
|
+
'username': string;
|
|
20
20
|
'image'?: string;
|
|
21
|
-
'provider'
|
|
21
|
+
'provider': Account.ProviderEnum;
|
|
22
22
|
/**
|
|
23
23
|
* Provider-specific metadata.
|
|
24
24
|
*/
|
|
25
|
-
'data'
|
|
26
|
-
'authorized'
|
|
27
|
-
'createdAt'
|
|
25
|
+
'data': object;
|
|
26
|
+
'authorized': boolean;
|
|
27
|
+
'createdAt': Date;
|
|
28
28
|
|
|
29
29
|
static discriminator: string | undefined = undefined;
|
|
30
30
|
|
package/model/deleteResult.ts
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
15
|
export class DeleteResult {
|
|
16
|
-
'deleted'
|
|
17
|
-
'deletedFromApp'
|
|
18
|
-
'toTrash'
|
|
16
|
+
'deleted': boolean;
|
|
17
|
+
'deletedFromApp': boolean;
|
|
18
|
+
'toTrash': boolean;
|
|
19
19
|
|
|
20
20
|
static discriminator: string | undefined = undefined;
|
|
21
21
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
|
-
export class
|
|
15
|
+
export class InitiateChunkedUpload201Response {
|
|
16
16
|
'uploadUuid'?: string;
|
|
17
17
|
'chunkSize'?: number;
|
|
18
18
|
'totalChunks'?: number;
|
|
@@ -37,7 +37,7 @@ export class InitiateChunkedUpload200Response {
|
|
|
37
37
|
} ];
|
|
38
38
|
|
|
39
39
|
static getAttributeTypeMap() {
|
|
40
|
-
return
|
|
40
|
+
return InitiateChunkedUpload201Response.attributeTypeMap;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
|
-
import {
|
|
14
|
+
import { InitiateRemoteUpload201ResponseOneOf } from './initiateRemoteUpload201ResponseOneOf';
|
|
15
15
|
import { Media } from './media';
|
|
16
16
|
|
|
17
|
-
export class
|
|
18
|
-
'id'
|
|
19
|
-
'uuid'
|
|
20
|
-
'name'
|
|
21
|
-
'mimeType'
|
|
22
|
-
'type'
|
|
23
|
-
'url'
|
|
17
|
+
export class InitiateRemoteUpload201Response {
|
|
18
|
+
'id': number;
|
|
19
|
+
'uuid': string;
|
|
20
|
+
'name': string;
|
|
21
|
+
'mimeType': string;
|
|
22
|
+
'type': InitiateRemoteUpload201Response.TypeEnum;
|
|
23
|
+
'url': string;
|
|
24
24
|
'thumbUrl'?: string;
|
|
25
|
-
'isVideo'
|
|
26
|
-
'createdAt'
|
|
25
|
+
'isVideo': boolean;
|
|
26
|
+
'createdAt': Date;
|
|
27
27
|
'downloadId'?: string;
|
|
28
28
|
|
|
29
29
|
static discriminator: string | undefined = undefined;
|
|
@@ -52,7 +52,7 @@ export class InitiateRemoteUpload200Response {
|
|
|
52
52
|
{
|
|
53
53
|
"name": "type",
|
|
54
54
|
"baseName": "type",
|
|
55
|
-
"type": "
|
|
55
|
+
"type": "InitiateRemoteUpload201Response.TypeEnum"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"name": "url",
|
|
@@ -81,11 +81,11 @@ export class InitiateRemoteUpload200Response {
|
|
|
81
81
|
} ];
|
|
82
82
|
|
|
83
83
|
static getAttributeTypeMap() {
|
|
84
|
-
return
|
|
84
|
+
return InitiateRemoteUpload201Response.attributeTypeMap;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export namespace
|
|
88
|
+
export namespace InitiateRemoteUpload201Response {
|
|
89
89
|
export enum TypeEnum {
|
|
90
90
|
Image = <any> 'image',
|
|
91
91
|
Video = <any> 'video',
|
package/model/{initiateRemoteUpload200ResponseOneOf.ts → initiateRemoteUpload201ResponseOneOf.ts}
RENAMED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
|
-
export class
|
|
15
|
+
export class InitiateRemoteUpload201ResponseOneOf {
|
|
16
16
|
'downloadId'?: string;
|
|
17
17
|
|
|
18
18
|
static discriminator: string | undefined = undefined;
|
|
@@ -25,7 +25,7 @@ export class InitiateRemoteUpload200ResponseOneOf {
|
|
|
25
25
|
} ];
|
|
26
26
|
|
|
27
27
|
static getAttributeTypeMap() {
|
|
28
|
-
return
|
|
28
|
+
return InitiateRemoteUpload201ResponseOneOf.attributeTypeMap;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
package/model/media.ts
CHANGED
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
15
|
export class Media {
|
|
16
|
-
'id'
|
|
17
|
-
'uuid'
|
|
18
|
-
'name'
|
|
19
|
-
'mimeType'
|
|
20
|
-
'type'
|
|
21
|
-
'url'
|
|
16
|
+
'id': number;
|
|
17
|
+
'uuid': string;
|
|
18
|
+
'name': string;
|
|
19
|
+
'mimeType': string;
|
|
20
|
+
'type': Media.TypeEnum;
|
|
21
|
+
'url': string;
|
|
22
22
|
'thumbUrl'?: string;
|
|
23
|
-
'isVideo'
|
|
24
|
-
'createdAt'
|
|
23
|
+
'isVideo': boolean;
|
|
24
|
+
'createdAt': Date;
|
|
25
25
|
|
|
26
26
|
static discriminator: string | undefined = undefined;
|
|
27
27
|
|
package/model/models.ts
CHANGED
|
@@ -15,10 +15,10 @@ export * from './deleteUser400Response';
|
|
|
15
15
|
export * from './deleteUsersBulkRequest';
|
|
16
16
|
export * from './deleteWorkspacesBulkRequest';
|
|
17
17
|
export * from './getRemoteUploadStatus200Response';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './initiateChunkedUpload201Response';
|
|
19
19
|
export * from './initiateChunkedUploadRequest';
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
20
|
+
export * from './initiateRemoteUpload201Response';
|
|
21
|
+
export * from './initiateRemoteUpload201ResponseOneOf';
|
|
22
22
|
export * from './initiateRemoteUploadRequest';
|
|
23
23
|
export * from './listAccounts200Response';
|
|
24
24
|
export * from './listMedia200Response';
|
|
@@ -49,7 +49,7 @@ export * from './subscriptionUpdateInput';
|
|
|
49
49
|
export * from './tag';
|
|
50
50
|
export * from './tagInput';
|
|
51
51
|
export * from './updateMediaRequest';
|
|
52
|
-
export * from './
|
|
52
|
+
export * from './uploadChunk201Response';
|
|
53
53
|
export * from './user';
|
|
54
54
|
export * from './userInput';
|
|
55
55
|
export * from './userUpdateInput';
|
|
@@ -85,10 +85,10 @@ import { DeleteUser400Response } from './deleteUser400Response';
|
|
|
85
85
|
import { DeleteUsersBulkRequest } from './deleteUsersBulkRequest';
|
|
86
86
|
import { DeleteWorkspacesBulkRequest } from './deleteWorkspacesBulkRequest';
|
|
87
87
|
import { GetRemoteUploadStatus200Response } from './getRemoteUploadStatus200Response';
|
|
88
|
-
import {
|
|
88
|
+
import { InitiateChunkedUpload201Response } from './initiateChunkedUpload201Response';
|
|
89
89
|
import { InitiateChunkedUploadRequest } from './initiateChunkedUploadRequest';
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
90
|
+
import { InitiateRemoteUpload201Response } from './initiateRemoteUpload201Response';
|
|
91
|
+
import { InitiateRemoteUpload201ResponseOneOf } from './initiateRemoteUpload201ResponseOneOf';
|
|
92
92
|
import { InitiateRemoteUploadRequest } from './initiateRemoteUploadRequest';
|
|
93
93
|
import { ListAccounts200Response } from './listAccounts200Response';
|
|
94
94
|
import { ListMedia200Response } from './listMedia200Response';
|
|
@@ -119,7 +119,7 @@ import { SubscriptionUpdateInput } from './subscriptionUpdateInput';
|
|
|
119
119
|
import { Tag } from './tag';
|
|
120
120
|
import { TagInput } from './tagInput';
|
|
121
121
|
import { UpdateMediaRequest } from './updateMediaRequest';
|
|
122
|
-
import {
|
|
122
|
+
import { UploadChunk201Response } from './uploadChunk201Response';
|
|
123
123
|
import { User } from './user';
|
|
124
124
|
import { UserInput } from './userInput';
|
|
125
125
|
import { UserUpdateInput } from './userUpdateInput';
|
|
@@ -145,7 +145,7 @@ let enumsMap: {[index: string]: any} = {
|
|
|
145
145
|
"CheckoutSubscriptionRequest.CycleEnum": CheckoutSubscriptionRequest.CycleEnum,
|
|
146
146
|
"DeleteMode": DeleteMode,
|
|
147
147
|
"GetRemoteUploadStatus200Response.StatusEnum": GetRemoteUploadStatus200Response.StatusEnum,
|
|
148
|
-
"
|
|
148
|
+
"InitiateRemoteUpload201Response.TypeEnum": InitiateRemoteUpload201Response.TypeEnum,
|
|
149
149
|
"Media.TypeEnum": Media.TypeEnum,
|
|
150
150
|
"PostStatus": PostStatus,
|
|
151
151
|
"SubscriptionStatus": SubscriptionStatus,
|
|
@@ -169,10 +169,10 @@ let typeMap: {[index: string]: any} = {
|
|
|
169
169
|
"DeleteUsersBulkRequest": DeleteUsersBulkRequest,
|
|
170
170
|
"DeleteWorkspacesBulkRequest": DeleteWorkspacesBulkRequest,
|
|
171
171
|
"GetRemoteUploadStatus200Response": GetRemoteUploadStatus200Response,
|
|
172
|
-
"
|
|
172
|
+
"InitiateChunkedUpload201Response": InitiateChunkedUpload201Response,
|
|
173
173
|
"InitiateChunkedUploadRequest": InitiateChunkedUploadRequest,
|
|
174
|
-
"
|
|
175
|
-
"
|
|
174
|
+
"InitiateRemoteUpload201Response": InitiateRemoteUpload201Response,
|
|
175
|
+
"InitiateRemoteUpload201ResponseOneOf": InitiateRemoteUpload201ResponseOneOf,
|
|
176
176
|
"InitiateRemoteUploadRequest": InitiateRemoteUploadRequest,
|
|
177
177
|
"ListAccounts200Response": ListAccounts200Response,
|
|
178
178
|
"ListMedia200Response": ListMedia200Response,
|
|
@@ -201,7 +201,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
201
201
|
"Tag": Tag,
|
|
202
202
|
"TagInput": TagInput,
|
|
203
203
|
"UpdateMediaRequest": UpdateMediaRequest,
|
|
204
|
-
"
|
|
204
|
+
"UploadChunk201Response": UploadChunk201Response,
|
|
205
205
|
"User": User,
|
|
206
206
|
"UserInput": UserInput,
|
|
207
207
|
"UserUpdateInput": UserUpdateInput,
|
package/model/post.ts
CHANGED
|
@@ -17,16 +17,16 @@ import { PostVersion } from './postVersion';
|
|
|
17
17
|
import { Tag } from './tag';
|
|
18
18
|
|
|
19
19
|
export class Post {
|
|
20
|
-
'id'
|
|
21
|
-
'uuid'
|
|
22
|
-
'status'
|
|
23
|
-
'accounts'
|
|
24
|
-
'versions'
|
|
25
|
-
'tags'
|
|
20
|
+
'id': number;
|
|
21
|
+
'uuid': string;
|
|
22
|
+
'status': PostStatus;
|
|
23
|
+
'accounts': Array<Account>;
|
|
24
|
+
'versions': Array<PostVersion>;
|
|
25
|
+
'tags': Array<Tag>;
|
|
26
26
|
'scheduledAt'?: Date;
|
|
27
27
|
'publishedAt'?: Date;
|
|
28
|
-
'createdAt'
|
|
29
|
-
'trashed'
|
|
28
|
+
'createdAt': Date;
|
|
29
|
+
'trashed': boolean;
|
|
30
30
|
|
|
31
31
|
static discriminator: string | undefined = undefined;
|
|
32
32
|
|
package/model/receipt.ts
CHANGED
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
15
|
export class Receipt {
|
|
16
|
-
'uuid'
|
|
17
|
-
'transactionId'
|
|
18
|
-
'invoiceNumber'
|
|
19
|
-
'amount'
|
|
20
|
-
'tax'
|
|
21
|
-
'currency'
|
|
16
|
+
'uuid': string;
|
|
17
|
+
'transactionId': string;
|
|
18
|
+
'invoiceNumber': string;
|
|
19
|
+
'amount': number;
|
|
20
|
+
'tax': number;
|
|
21
|
+
'currency': string;
|
|
22
22
|
'receiptUrl'?: string;
|
|
23
23
|
'description'?: string;
|
|
24
|
-
'paidAt'
|
|
25
|
-
'createdAt'
|
|
24
|
+
'paidAt': Date;
|
|
25
|
+
'createdAt': Date;
|
|
26
26
|
|
|
27
27
|
static discriminator: string | undefined = undefined;
|
|
28
28
|
|
package/model/scheduleResult.ts
CHANGED
package/model/subscription.ts
CHANGED
|
@@ -14,11 +14,11 @@ import { RequestFile } from './models';
|
|
|
14
14
|
import { SubscriptionStatus } from './subscriptionStatus';
|
|
15
15
|
|
|
16
16
|
export class Subscription {
|
|
17
|
-
'name'
|
|
18
|
-
'platformSubscriptionId'
|
|
19
|
-
'platformPlanId'
|
|
20
|
-
'status'
|
|
21
|
-
'recurring'
|
|
17
|
+
'name': string;
|
|
18
|
+
'platformSubscriptionId': string;
|
|
19
|
+
'platformPlanId': string;
|
|
20
|
+
'status': SubscriptionStatus;
|
|
21
|
+
'recurring': boolean;
|
|
22
22
|
'trialEndsAt'?: Date;
|
|
23
23
|
'pausedFrom'?: Date;
|
|
24
24
|
'endsAt'?: Date;
|
package/model/tag.ts
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
15
|
export class Tag {
|
|
16
|
-
'id'
|
|
17
|
-
'uuid'
|
|
18
|
-
'name'
|
|
19
|
-
'hexColor'
|
|
16
|
+
'id': number;
|
|
17
|
+
'uuid': string;
|
|
18
|
+
'name': string;
|
|
19
|
+
'hexColor': string;
|
|
20
20
|
|
|
21
21
|
static discriminator: string | undefined = undefined;
|
|
22
22
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
|
-
export class
|
|
15
|
+
export class UploadChunk201Response {
|
|
16
16
|
/**
|
|
17
17
|
* Number of chunks received so far.
|
|
18
18
|
*/
|
|
@@ -28,7 +28,7 @@ export class UploadChunk200Response {
|
|
|
28
28
|
} ];
|
|
29
29
|
|
|
30
30
|
static getAttributeTypeMap() {
|
|
31
|
-
return
|
|
31
|
+
return UploadChunk201Response.attributeTypeMap;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
package/model/user.ts
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
15
|
export class User {
|
|
16
|
-
'id'
|
|
17
|
-
'name'
|
|
18
|
-
'email'
|
|
19
|
-
'isAdmin'
|
|
16
|
+
'id': number;
|
|
17
|
+
'name': string;
|
|
18
|
+
'email': string;
|
|
19
|
+
'isAdmin': boolean;
|
|
20
20
|
'emailVerifiedAt'?: Date;
|
|
21
|
-
'createdAt'
|
|
21
|
+
'createdAt': Date;
|
|
22
22
|
|
|
23
23
|
static discriminator: string | undefined = undefined;
|
|
24
24
|
|
package/model/workspace.ts
CHANGED
|
@@ -14,12 +14,12 @@ import { RequestFile } from './models';
|
|
|
14
14
|
import { User } from './user';
|
|
15
15
|
|
|
16
16
|
export class Workspace {
|
|
17
|
-
'uuid'
|
|
18
|
-
'name'
|
|
19
|
-
'hexColor'
|
|
17
|
+
'uuid': string;
|
|
18
|
+
'name': string;
|
|
19
|
+
'hexColor': string;
|
|
20
20
|
'owner'?: User;
|
|
21
|
-
'accessStatus'
|
|
22
|
-
'createdAt'
|
|
21
|
+
'accessStatus': Workspace.AccessStatusEnum;
|
|
22
|
+
'createdAt': Date;
|
|
23
23
|
|
|
24
24
|
static discriminator: string | undefined = undefined;
|
|
25
25
|
|
package/package.json
CHANGED
package/.openapi-generator/FILES
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
.gitignore
|
|
2
|
-
.openapi-generator-ignore
|
|
3
|
-
api.ts
|
|
4
|
-
api/accountsApi.ts
|
|
5
|
-
api/apis.ts
|
|
6
|
-
api/mediaApi.ts
|
|
7
|
-
api/postsApi.ts
|
|
8
|
-
api/receiptsApi.ts
|
|
9
|
-
api/subscriptionsApi.ts
|
|
10
|
-
api/tagsApi.ts
|
|
11
|
-
api/usersApi.ts
|
|
12
|
-
api/workspacesApi.ts
|
|
13
|
-
git_push.sh
|
|
14
|
-
model/account.ts
|
|
15
|
-
model/addGenericSubscriptionRequest.ts
|
|
16
|
-
model/changeSubscriptionPlanRequest.ts
|
|
17
|
-
model/checkoutSubscription200Response.ts
|
|
18
|
-
model/checkoutSubscriptionRequest.ts
|
|
19
|
-
model/deleteMediaBulkRequest.ts
|
|
20
|
-
model/deleteMode.ts
|
|
21
|
-
model/deletePostRequest.ts
|
|
22
|
-
model/deletePostsBulkRequest.ts
|
|
23
|
-
model/deleteReceiptsBulkRequest.ts
|
|
24
|
-
model/deleteResult.ts
|
|
25
|
-
model/deleteUser400Response.ts
|
|
26
|
-
model/deleteUsersBulkRequest.ts
|
|
27
|
-
model/deleteWorkspacesBulkRequest.ts
|
|
28
|
-
model/getRemoteUploadStatus200Response.ts
|
|
29
|
-
model/initiateChunkedUpload200Response.ts
|
|
30
|
-
model/initiateChunkedUploadRequest.ts
|
|
31
|
-
model/initiateRemoteUpload200Response.ts
|
|
32
|
-
model/initiateRemoteUpload200ResponseOneOf.ts
|
|
33
|
-
model/initiateRemoteUploadRequest.ts
|
|
34
|
-
model/listAccounts200Response.ts
|
|
35
|
-
model/listMedia200Response.ts
|
|
36
|
-
model/listPosts200Response.ts
|
|
37
|
-
model/listReceipts200Response.ts
|
|
38
|
-
model/listTags200Response.ts
|
|
39
|
-
model/listUsers200Response.ts
|
|
40
|
-
model/listWorkspaces200Response.ts
|
|
41
|
-
model/media.ts
|
|
42
|
-
model/models.ts
|
|
43
|
-
model/paginationMeta.ts
|
|
44
|
-
model/paginationMetaLinks.ts
|
|
45
|
-
model/paginationMetaMeta.ts
|
|
46
|
-
model/post.ts
|
|
47
|
-
model/postContent.ts
|
|
48
|
-
model/postInput.ts
|
|
49
|
-
model/postStatus.ts
|
|
50
|
-
model/postVersion.ts
|
|
51
|
-
model/receipt.ts
|
|
52
|
-
model/receiptInput.ts
|
|
53
|
-
model/receiptUpdateInput.ts
|
|
54
|
-
model/removeUserFromWorkspaceRequest.ts
|
|
55
|
-
model/schedulePostRequest.ts
|
|
56
|
-
model/scheduleResult.ts
|
|
57
|
-
model/subscription.ts
|
|
58
|
-
model/subscriptionInput.ts
|
|
59
|
-
model/subscriptionStatus.ts
|
|
60
|
-
model/subscriptionUpdateInput.ts
|
|
61
|
-
model/tag.ts
|
|
62
|
-
model/tagInput.ts
|
|
63
|
-
model/updateMediaRequest.ts
|
|
64
|
-
model/uploadChunk200Response.ts
|
|
65
|
-
model/user.ts
|
|
66
|
-
model/userInput.ts
|
|
67
|
-
model/userUpdateInput.ts
|
|
68
|
-
model/workspace.ts
|
|
69
|
-
model/workspaceInput.ts
|
|
70
|
-
model/workspaceUserInput.ts
|
|
71
|
-
package.json
|
|
72
|
-
tsconfig.json
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7.9.0
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# OpenAPI Generator Ignore
|
|
2
|
-
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
-
|
|
4
|
-
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
-
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
-
|
|
7
|
-
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
-
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
-
#ApiClient.cs
|
|
10
|
-
|
|
11
|
-
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
-
#foo/*/qux
|
|
13
|
-
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
-
|
|
15
|
-
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
-
#foo/**/qux
|
|
17
|
-
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
-
|
|
19
|
-
# You can also negate patterns with an exclamation (!).
|
|
20
|
-
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
-
#docs/*.md
|
|
22
|
-
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
-
#!docs/README.md
|
package/git_push.sh
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
-
#
|
|
4
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
-
|
|
6
|
-
git_user_id=$1
|
|
7
|
-
git_repo_id=$2
|
|
8
|
-
release_note=$3
|
|
9
|
-
git_host=$4
|
|
10
|
-
|
|
11
|
-
if [ "$git_host" = "" ]; then
|
|
12
|
-
git_host="github.com"
|
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
-
fi
|
|
15
|
-
|
|
16
|
-
if [ "$git_user_id" = "" ]; then
|
|
17
|
-
git_user_id="GIT_USER_ID"
|
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
|
-
if [ "$git_repo_id" = "" ]; then
|
|
22
|
-
git_repo_id="GIT_REPO_ID"
|
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
-
fi
|
|
25
|
-
|
|
26
|
-
if [ "$release_note" = "" ]; then
|
|
27
|
-
release_note="Minor update"
|
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
# Initialize the local directory as a Git repository
|
|
32
|
-
git init
|
|
33
|
-
|
|
34
|
-
# Adds the files in the local repository and stages them for commit.
|
|
35
|
-
git add .
|
|
36
|
-
|
|
37
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
-
git commit -m "$release_note"
|
|
39
|
-
|
|
40
|
-
# Sets the new remote
|
|
41
|
-
git_remote=$(git remote)
|
|
42
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
-
|
|
44
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
-
else
|
|
48
|
-
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
fi
|
|
52
|
-
|
|
53
|
-
git pull origin master
|
|
54
|
-
|
|
55
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
-
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
-
git push origin master 2>&1 | grep -v 'To https'
|