@widgetic/api-sdk 1.0.21 → 1.0.22
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/dist/apis/AdminBillingApi.d.ts +92 -1
- package/dist/apis/AdminBillingApi.js +246 -1
- package/dist/apis/AgentApi.d.ts +2 -2
- package/dist/apis/AgentApi.js +2 -2
- package/dist/apis/AuthenticationApi.d.ts +12 -1
- package/dist/apis/AuthenticationApi.js +31 -0
- package/dist/apis/BillingApi.js +13 -13
- package/dist/apis/CompositionsApi.d.ts +5 -5
- package/dist/apis/CompositionsApi.js +3 -3
- package/dist/apis/CreditsApi.d.ts +4 -4
- package/dist/apis/CreditsApi.js +4 -4
- package/dist/apis/MCPApi.d.ts +6 -6
- package/dist/apis/MCPApi.js +15 -6
- package/dist/apis/NoticesApi.d.ts +41 -0
- package/dist/apis/NoticesApi.js +103 -0
- package/dist/apis/OrganizationsApi.d.ts +17 -4
- package/dist/apis/OrganizationsApi.js +41 -4
- package/dist/apis/SubscriptionsApi.d.ts +32 -4
- package/dist/apis/SubscriptionsApi.js +82 -5
- package/dist/apis/WidgetsApi.d.ts +19 -35
- package/dist/apis/WidgetsApi.js +32 -32
- package/dist/apis/WorkflowsApi.d.ts +2 -2
- package/dist/apis/WorkflowsApi.js +2 -2
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AdminBillingApi.d.ts +92 -1
- package/dist/esm/apis/AdminBillingApi.js +246 -1
- package/dist/esm/apis/AgentApi.d.ts +2 -2
- package/dist/esm/apis/AgentApi.js +2 -2
- package/dist/esm/apis/AuthenticationApi.d.ts +12 -1
- package/dist/esm/apis/AuthenticationApi.js +32 -1
- package/dist/esm/apis/BillingApi.js +13 -13
- package/dist/esm/apis/CompositionsApi.d.ts +5 -5
- package/dist/esm/apis/CompositionsApi.js +4 -4
- package/dist/esm/apis/CreditsApi.d.ts +4 -4
- package/dist/esm/apis/CreditsApi.js +4 -4
- package/dist/esm/apis/MCPApi.d.ts +6 -6
- package/dist/esm/apis/MCPApi.js +15 -6
- package/dist/esm/apis/NoticesApi.d.ts +41 -0
- package/dist/esm/apis/NoticesApi.js +99 -0
- package/dist/esm/apis/OrganizationsApi.d.ts +17 -4
- package/dist/esm/apis/OrganizationsApi.js +41 -4
- package/dist/esm/apis/SubscriptionsApi.d.ts +32 -4
- package/dist/esm/apis/SubscriptionsApi.js +83 -6
- package/dist/esm/apis/WidgetsApi.d.ts +19 -35
- package/dist/esm/apis/WidgetsApi.js +33 -33
- package/dist/esm/apis/WorkflowsApi.d.ts +2 -2
- package/dist/esm/apis/WorkflowsApi.js +2 -2
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.d.ts +18 -0
- package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.js +6 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +41 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +43 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +44 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +57 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +50 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +68 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +53 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.d.ts +8 -8
- package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.js +4 -4
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +59 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +48 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
- package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +62 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +42 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +51 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +42 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +43 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +47 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +39 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +44 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +32 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +41 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +32 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +41 -0
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +1 -2
- package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +1 -2
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +59 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +48 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +43 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
- package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +45 -0
- package/dist/esm/models/ConfigureAutoReloadRequest.d.ts +6 -0
- package/dist/esm/models/ConfigureAutoReloadRequest.js +2 -0
- package/dist/esm/models/CreateMessageRequest.d.ts +13 -0
- package/dist/esm/models/CreateMessageRequest.js +2 -0
- package/dist/esm/models/GenerateCodeRequest.d.ts +42 -0
- package/dist/esm/models/GenerateCodeRequest.js +14 -0
- package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.js +43 -0
- package/dist/esm/models/GetWidgetPublishHistory200ResponseDataInner.d.ts +13 -1
- package/dist/esm/models/GetWidgetPublishHistory200ResponseDataInner.js +4 -0
- package/dist/esm/models/ListAccountNotices200Response.d.ts +39 -0
- package/dist/esm/models/ListAccountNotices200Response.js +44 -0
- package/dist/esm/models/ListAccountNotices200ResponseData.d.ts +33 -0
- package/dist/esm/models/ListAccountNotices200ResponseData.js +42 -0
- package/dist/esm/models/ListAccountNotices200ResponseDataNoticesInner.d.ts +68 -0
- package/dist/esm/models/ListAccountNotices200ResponseDataNoticesInner.js +53 -0
- package/dist/esm/models/LoginUser200Response.d.ts +38 -0
- package/dist/esm/models/LoginUser200Response.js +43 -0
- package/dist/esm/models/MoveSubscriptionSurfaceRequest.d.ts +58 -0
- package/dist/esm/models/MoveSubscriptionSurfaceRequest.js +56 -0
- package/dist/esm/models/OrganizationsOrgIdBillingMembersUpdatePostRequest.d.ts +1 -1
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyMembersAddPostRequest.d.ts +1 -1
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyMembersRemovePostRequest.d.ts +1 -1
- package/dist/esm/models/ProcessRefund200Response.d.ts +6 -0
- package/dist/esm/models/ProcessRefund200Response.js +2 -0
- package/dist/esm/models/RefundRequest.d.ts +10 -4
- package/dist/esm/models/RefundRequest.js +4 -4
- package/dist/esm/models/RollbackComponent200Response.d.ts +38 -0
- package/dist/esm/models/RollbackComponent200Response.js +43 -0
- package/dist/esm/models/SignupUserRequest.d.ts +6 -0
- package/dist/esm/models/SignupUserRequest.js +2 -0
- package/dist/esm/models/UpdateSubscription.d.ts +30 -8
- package/dist/esm/models/UpdateSubscription.js +21 -8
- package/dist/esm/models/UploadWidgetThumbnail200Response.d.ts +39 -0
- package/dist/esm/models/UploadWidgetThumbnail200Response.js +44 -0
- package/dist/esm/models/UploadWidgetThumbnail200ResponseData.d.ts +32 -0
- package/dist/esm/models/UploadWidgetThumbnail200ResponseData.js +41 -0
- package/dist/esm/models/UploadWidgetThumbnailRequest.d.ts +32 -0
- package/dist/esm/models/UploadWidgetThumbnailRequest.js +43 -0
- package/dist/esm/models/ValidateInviteCode200Response.d.ts +39 -0
- package/dist/esm/models/ValidateInviteCode200Response.js +44 -0
- package/dist/esm/models/ValidateInviteCode200ResponseData.d.ts +44 -0
- package/dist/esm/models/ValidateInviteCode200ResponseData.js +45 -0
- package/dist/esm/models/index.d.ts +26 -1
- package/dist/esm/models/index.js +26 -1
- package/dist/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.d.ts +18 -0
- package/dist/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.js +6 -0
- package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
- package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +48 -0
- package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
- package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +50 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +39 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +51 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +57 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +57 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +68 -0
- package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +60 -0
- package/dist/models/ApiV1AdminBillingRefundsPostRequest.d.ts +8 -8
- package/dist/models/ApiV1AdminBillingRefundsPostRequest.js +4 -4
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +67 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +55 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
- package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +70 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +49 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +49 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +50 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +39 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +51 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +32 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +48 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +32 -0
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +48 -0
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +1 -2
- package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +1 -2
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +67 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +55 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +50 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
- package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +52 -0
- package/dist/models/ConfigureAutoReloadRequest.d.ts +6 -0
- package/dist/models/ConfigureAutoReloadRequest.js +2 -0
- package/dist/models/CreateMessageRequest.d.ts +13 -0
- package/dist/models/CreateMessageRequest.js +2 -0
- package/dist/models/GenerateCodeRequest.d.ts +42 -0
- package/dist/models/GenerateCodeRequest.js +14 -0
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +50 -0
- package/dist/models/GetWidgetPublishHistory200ResponseDataInner.d.ts +13 -1
- package/dist/models/GetWidgetPublishHistory200ResponseDataInner.js +4 -0
- package/dist/models/ListAccountNotices200Response.d.ts +39 -0
- package/dist/models/ListAccountNotices200Response.js +51 -0
- package/dist/models/ListAccountNotices200ResponseData.d.ts +33 -0
- package/dist/models/ListAccountNotices200ResponseData.js +49 -0
- package/dist/models/ListAccountNotices200ResponseDataNoticesInner.d.ts +68 -0
- package/dist/models/ListAccountNotices200ResponseDataNoticesInner.js +60 -0
- package/dist/models/LoginUser200Response.d.ts +38 -0
- package/dist/models/LoginUser200Response.js +50 -0
- package/dist/models/MoveSubscriptionSurfaceRequest.d.ts +58 -0
- package/dist/models/MoveSubscriptionSurfaceRequest.js +64 -0
- package/dist/models/OrganizationsOrgIdBillingMembersUpdatePostRequest.d.ts +1 -1
- package/dist/models/OrganizationsOrgIdBillingYearlyMembersAddPostRequest.d.ts +1 -1
- package/dist/models/OrganizationsOrgIdBillingYearlyMembersRemovePostRequest.d.ts +1 -1
- package/dist/models/ProcessRefund200Response.d.ts +6 -0
- package/dist/models/ProcessRefund200Response.js +2 -0
- package/dist/models/RefundRequest.d.ts +10 -4
- package/dist/models/RefundRequest.js +4 -4
- package/dist/models/RollbackComponent200Response.d.ts +38 -0
- package/dist/models/RollbackComponent200Response.js +50 -0
- package/dist/models/SignupUserRequest.d.ts +6 -0
- package/dist/models/SignupUserRequest.js +2 -0
- package/dist/models/UpdateSubscription.d.ts +30 -8
- package/dist/models/UpdateSubscription.js +22 -9
- package/dist/models/UploadWidgetThumbnail200Response.d.ts +39 -0
- package/dist/models/UploadWidgetThumbnail200Response.js +51 -0
- package/dist/models/UploadWidgetThumbnail200ResponseData.d.ts +32 -0
- package/dist/models/UploadWidgetThumbnail200ResponseData.js +48 -0
- package/dist/models/UploadWidgetThumbnailRequest.d.ts +32 -0
- package/dist/models/UploadWidgetThumbnailRequest.js +50 -0
- package/dist/models/ValidateInviteCode200Response.d.ts +39 -0
- package/dist/models/ValidateInviteCode200Response.js +51 -0
- package/dist/models/ValidateInviteCode200ResponseData.d.ts +44 -0
- package/dist/models/ValidateInviteCode200ResponseData.js +52 -0
- package/dist/models/index.d.ts +26 -1
- package/dist/models/index.js +26 -1
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LoginUser200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginUser200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LoginUser200Response
|
|
22
|
+
*/
|
|
23
|
+
success?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof LoginUser200Response
|
|
28
|
+
*/
|
|
29
|
+
data?: object;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LoginUser200Response interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLoginUser200Response(value: object): value is LoginUser200Response;
|
|
35
|
+
export declare function LoginUser200ResponseFromJSON(json: any): LoginUser200Response;
|
|
36
|
+
export declare function LoginUser200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginUser200Response;
|
|
37
|
+
export declare function LoginUser200ResponseToJSON(json: any): LoginUser200Response;
|
|
38
|
+
export declare function LoginUser200ResponseToJSONTyped(value?: LoginUser200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLoginUser200Response = instanceOfLoginUser200Response;
|
|
17
|
+
exports.LoginUser200ResponseFromJSON = LoginUser200ResponseFromJSON;
|
|
18
|
+
exports.LoginUser200ResponseFromJSONTyped = LoginUser200ResponseFromJSONTyped;
|
|
19
|
+
exports.LoginUser200ResponseToJSON = LoginUser200ResponseToJSON;
|
|
20
|
+
exports.LoginUser200ResponseToJSONTyped = LoginUser200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LoginUser200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLoginUser200Response(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function LoginUser200ResponseFromJSON(json) {
|
|
28
|
+
return LoginUser200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function LoginUser200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
36
|
+
'data': json['data'] == null ? undefined : json['data'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function LoginUser200ResponseToJSON(json) {
|
|
40
|
+
return LoginUser200ResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function LoginUser200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'success': value['success'],
|
|
48
|
+
'data': value['data'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MoveSubscriptionSurfaceRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface MoveSubscriptionSurfaceRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MoveSubscriptionSurfaceRequest
|
|
22
|
+
*/
|
|
23
|
+
targetSurface: MoveSubscriptionSurfaceRequestTargetSurfaceEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Required when targetSurface is organization. Must be an organization this subscription's user owns.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MoveSubscriptionSurfaceRequest
|
|
28
|
+
*/
|
|
29
|
+
organizationId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Only for a surface that sells more than one plan; otherwise the surface's plan is used.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MoveSubscriptionSurfaceRequest
|
|
34
|
+
*/
|
|
35
|
+
planType?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Recorded on the audit line and on every revoke the move performs.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MoveSubscriptionSurfaceRequest
|
|
40
|
+
*/
|
|
41
|
+
reason?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const MoveSubscriptionSurfaceRequestTargetSurfaceEnum: {
|
|
47
|
+
readonly Personal: "personal";
|
|
48
|
+
readonly Organization: "organization";
|
|
49
|
+
};
|
|
50
|
+
export type MoveSubscriptionSurfaceRequestTargetSurfaceEnum = typeof MoveSubscriptionSurfaceRequestTargetSurfaceEnum[keyof typeof MoveSubscriptionSurfaceRequestTargetSurfaceEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the MoveSubscriptionSurfaceRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfMoveSubscriptionSurfaceRequest(value: object): value is MoveSubscriptionSurfaceRequest;
|
|
55
|
+
export declare function MoveSubscriptionSurfaceRequestFromJSON(json: any): MoveSubscriptionSurfaceRequest;
|
|
56
|
+
export declare function MoveSubscriptionSurfaceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoveSubscriptionSurfaceRequest;
|
|
57
|
+
export declare function MoveSubscriptionSurfaceRequestToJSON(json: any): MoveSubscriptionSurfaceRequest;
|
|
58
|
+
export declare function MoveSubscriptionSurfaceRequestToJSONTyped(value?: MoveSubscriptionSurfaceRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MoveSubscriptionSurfaceRequestTargetSurfaceEnum = void 0;
|
|
17
|
+
exports.instanceOfMoveSubscriptionSurfaceRequest = instanceOfMoveSubscriptionSurfaceRequest;
|
|
18
|
+
exports.MoveSubscriptionSurfaceRequestFromJSON = MoveSubscriptionSurfaceRequestFromJSON;
|
|
19
|
+
exports.MoveSubscriptionSurfaceRequestFromJSONTyped = MoveSubscriptionSurfaceRequestFromJSONTyped;
|
|
20
|
+
exports.MoveSubscriptionSurfaceRequestToJSON = MoveSubscriptionSurfaceRequestToJSON;
|
|
21
|
+
exports.MoveSubscriptionSurfaceRequestToJSONTyped = MoveSubscriptionSurfaceRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.MoveSubscriptionSurfaceRequestTargetSurfaceEnum = {
|
|
26
|
+
Personal: 'personal',
|
|
27
|
+
Organization: 'organization'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the MoveSubscriptionSurfaceRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfMoveSubscriptionSurfaceRequest(value) {
|
|
33
|
+
if (!('targetSurface' in value) || value['targetSurface'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function MoveSubscriptionSurfaceRequestFromJSON(json) {
|
|
38
|
+
return MoveSubscriptionSurfaceRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function MoveSubscriptionSurfaceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'targetSurface': json['targetSurface'],
|
|
46
|
+
'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
|
|
47
|
+
'planType': json['planType'] == null ? undefined : json['planType'],
|
|
48
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function MoveSubscriptionSurfaceRequestToJSON(json) {
|
|
52
|
+
return MoveSubscriptionSurfaceRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function MoveSubscriptionSurfaceRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'targetSurface': value['targetSurface'],
|
|
60
|
+
'organizationId': value['organizationId'],
|
|
61
|
+
'planType': value['planType'],
|
|
62
|
+
'reason': value['reason'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface OrganizationsOrgIdBillingMembersUpdatePostRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The organization's current billable member count (active members, floored at 1). Must match the membership exactly — counts that disagree are refused, because the seat quantity Stripe bills is derived from the member lifecycle, not set directly.
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof OrganizationsOrgIdBillingMembersUpdatePostRequest
|
|
22
22
|
*/
|
|
@@ -22,7 +22,7 @@ export interface OrganizationsOrgIdBillingYearlyMembersAddPostRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
newMemberCount: number;
|
|
24
24
|
/**
|
|
25
|
-
* Email of the member being added
|
|
25
|
+
* Email of the member being added. Names the member for the targeted provisioning pass and the response's `member` block.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof OrganizationsOrgIdBillingYearlyMembersAddPostRequest
|
|
28
28
|
*/
|
|
@@ -22,7 +22,7 @@ export interface OrganizationsOrgIdBillingYearlyMembersRemovePostRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
removedMemberCount: number;
|
|
24
24
|
/**
|
|
25
|
-
* Email of the member being removed
|
|
25
|
+
* Email of the member being removed. Names them in the accumulated-credit ledger row and in `data.memberChangeResult.member`.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof OrganizationsOrgIdBillingYearlyMembersRemovePostRequest
|
|
28
28
|
*/
|
|
@@ -27,6 +27,12 @@ export interface ProcessRefund200Response {
|
|
|
27
27
|
* @memberof ProcessRefund200Response
|
|
28
28
|
*/
|
|
29
29
|
refundId?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProcessRefund200Response
|
|
34
|
+
*/
|
|
35
|
+
status?: string;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the ProcessRefund200Response interface.
|
|
@@ -34,6 +34,7 @@ function ProcessRefund200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'success': json['success'] == null ? undefined : json['success'],
|
|
36
36
|
'refundId': json['refundId'] == null ? undefined : json['refundId'],
|
|
37
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
function ProcessRefund200ResponseToJSON(json) {
|
|
@@ -46,5 +47,6 @@ function ProcessRefund200ResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
46
47
|
return {
|
|
47
48
|
'success': value['success'],
|
|
48
49
|
'refundId': value['refundId'],
|
|
50
|
+
'status': value['status'],
|
|
49
51
|
};
|
|
50
52
|
}
|
|
@@ -10,17 +10,23 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
* Request to process a refund for a subscription
|
|
13
|
+
* Request to process a refund for a subscription. Both fields are optional: when neither is given, the subscription in the path names the charge — its latest paid invoice, resolved server-side. A caller that names a charge gets exactly that charge refunded.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface RefundRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface RefundRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {
|
|
19
|
+
* Stripe payment intent of the charge to refund
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RefundRequest
|
|
22
|
+
*/
|
|
23
|
+
paymentIntentId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Stripe invoice the charge was collected on (alternative to paymentIntentId)
|
|
26
|
+
* @type {string}
|
|
21
27
|
* @memberof RefundRequest
|
|
22
28
|
*/
|
|
23
|
-
|
|
29
|
+
stripeInvoiceId?: string;
|
|
24
30
|
/**
|
|
25
31
|
* Reason for the refund
|
|
26
32
|
* @type {string}
|
|
@@ -22,8 +22,6 @@ exports.RefundRequestToJSONTyped = RefundRequestToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the RefundRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfRefundRequest(value) {
|
|
25
|
-
if (!('amount' in value) || value['amount'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
return true;
|
|
28
26
|
}
|
|
29
27
|
function RefundRequestFromJSON(json) {
|
|
@@ -34,7 +32,8 @@ function RefundRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
32
|
return json;
|
|
35
33
|
}
|
|
36
34
|
return {
|
|
37
|
-
'
|
|
35
|
+
'paymentIntentId': json['paymentIntentId'] == null ? undefined : json['paymentIntentId'],
|
|
36
|
+
'stripeInvoiceId': json['stripeInvoiceId'] == null ? undefined : json['stripeInvoiceId'],
|
|
38
37
|
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
@@ -46,7 +45,8 @@ function RefundRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
45
|
return value;
|
|
47
46
|
}
|
|
48
47
|
return {
|
|
49
|
-
'
|
|
48
|
+
'paymentIntentId': value['paymentIntentId'],
|
|
49
|
+
'stripeInvoiceId': value['stripeInvoiceId'],
|
|
50
50
|
'reason': value['reason'],
|
|
51
51
|
};
|
|
52
52
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RollbackComponent200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface RollbackComponent200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof RollbackComponent200Response
|
|
22
|
+
*/
|
|
23
|
+
success?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RollbackComponent200Response
|
|
28
|
+
*/
|
|
29
|
+
message?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RollbackComponent200Response interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRollbackComponent200Response(value: object): value is RollbackComponent200Response;
|
|
35
|
+
export declare function RollbackComponent200ResponseFromJSON(json: any): RollbackComponent200Response;
|
|
36
|
+
export declare function RollbackComponent200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RollbackComponent200Response;
|
|
37
|
+
export declare function RollbackComponent200ResponseToJSON(json: any): RollbackComponent200Response;
|
|
38
|
+
export declare function RollbackComponent200ResponseToJSONTyped(value?: RollbackComponent200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Widgetic API Gateway
|
|
6
|
+
* API documentation for the Widgetic API Gateway
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRollbackComponent200Response = instanceOfRollbackComponent200Response;
|
|
17
|
+
exports.RollbackComponent200ResponseFromJSON = RollbackComponent200ResponseFromJSON;
|
|
18
|
+
exports.RollbackComponent200ResponseFromJSONTyped = RollbackComponent200ResponseFromJSONTyped;
|
|
19
|
+
exports.RollbackComponent200ResponseToJSON = RollbackComponent200ResponseToJSON;
|
|
20
|
+
exports.RollbackComponent200ResponseToJSONTyped = RollbackComponent200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RollbackComponent200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRollbackComponent200Response(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function RollbackComponent200ResponseFromJSON(json) {
|
|
28
|
+
return RollbackComponent200ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function RollbackComponent200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
36
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function RollbackComponent200ResponseToJSON(json) {
|
|
40
|
+
return RollbackComponent200ResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function RollbackComponent200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'success': value['success'],
|
|
48
|
+
'message': value['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -39,6 +39,12 @@ export interface SignupUserRequest {
|
|
|
39
39
|
* @memberof SignupUserRequest
|
|
40
40
|
*/
|
|
41
41
|
plan?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SignupUserRequest
|
|
46
|
+
*/
|
|
47
|
+
inviteCode?: string;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the SignupUserRequest interface.
|
|
@@ -40,6 +40,7 @@ function SignupUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'password': json['password'],
|
|
41
41
|
'role': json['role'] == null ? undefined : json['role'],
|
|
42
42
|
'plan': json['plan'] == null ? undefined : json['plan'],
|
|
43
|
+
'inviteCode': json['inviteCode'] == null ? undefined : json['inviteCode'],
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
function SignupUserRequestToJSON(json) {
|
|
@@ -54,5 +55,6 @@ function SignupUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
55
|
'password': value['password'],
|
|
55
56
|
'role': value['role'],
|
|
56
57
|
'plan': value['plan'],
|
|
58
|
+
'inviteCode': value['inviteCode'],
|
|
57
59
|
};
|
|
58
60
|
}
|
|
@@ -10,19 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Fields an admin may change on an existing subscription. These are exactly the fields the route writes — the columns they map to are enumerated in `SUBSCRIPTION_UPDATE_COLUMNS`, and a field not listed here is ignored and reported in the response log rather than written. A subscription's Stripe id, its workspace surface (`workspace_type`/`organization_id`) and its `metadata` are not updatable: the first is the join key the Stripe webhook matches on and is set by the subscribe flow, the second would move the subscription to the other surface's plan catalogue, and the third is owned by the billing jobs.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface UpdateSubscription
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdateSubscription {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Identifier of the plan record to point the subscription at
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateSubscription
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
planId?: string;
|
|
24
24
|
/**
|
|
25
|
-
* Type of subscription plan
|
|
25
|
+
* Type of subscription plan. Must be purchasable on the surface the subscription already lives on — a personal subscription cannot be moved to Teams.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateSubscription
|
|
28
28
|
*/
|
|
@@ -33,30 +33,52 @@ export interface UpdateSubscription {
|
|
|
33
33
|
* @memberof UpdateSubscription
|
|
34
34
|
*/
|
|
35
35
|
status?: UpdateSubscriptionStatusEnum;
|
|
36
|
+
/**
|
|
37
|
+
* How often the subscription is billed
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateSubscription
|
|
40
|
+
*/
|
|
41
|
+
billingFrequency?: UpdateSubscriptionBillingFrequencyEnum;
|
|
36
42
|
/**
|
|
37
43
|
* Start date of the current billing period
|
|
38
44
|
* @type {Date}
|
|
39
45
|
* @memberof UpdateSubscription
|
|
40
46
|
*/
|
|
41
|
-
|
|
47
|
+
currentPeriodStart?: Date;
|
|
42
48
|
/**
|
|
43
49
|
* End date of the current billing period
|
|
44
50
|
* @type {Date}
|
|
45
51
|
* @memberof UpdateSubscription
|
|
46
52
|
*/
|
|
47
|
-
|
|
53
|
+
currentPeriodEnd?: Date;
|
|
54
|
+
/**
|
|
55
|
+
* When the subscription was cancelled, if it was
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof UpdateSubscription
|
|
58
|
+
*/
|
|
59
|
+
canceledAt?: Date;
|
|
48
60
|
}
|
|
49
61
|
/**
|
|
50
62
|
* @export
|
|
51
63
|
*/
|
|
52
64
|
export declare const UpdateSubscriptionStatusEnum: {
|
|
53
65
|
readonly Active: "active";
|
|
54
|
-
readonly
|
|
66
|
+
readonly Trialing: "trialing";
|
|
55
67
|
readonly PastDue: "past_due";
|
|
56
68
|
readonly Unpaid: "unpaid";
|
|
57
|
-
readonly
|
|
69
|
+
readonly Suspended: "suspended";
|
|
70
|
+
readonly Canceled: "canceled";
|
|
71
|
+
readonly Incomplete: "incomplete";
|
|
58
72
|
};
|
|
59
73
|
export type UpdateSubscriptionStatusEnum = typeof UpdateSubscriptionStatusEnum[keyof typeof UpdateSubscriptionStatusEnum];
|
|
74
|
+
/**
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export declare const UpdateSubscriptionBillingFrequencyEnum: {
|
|
78
|
+
readonly Monthly: "monthly";
|
|
79
|
+
readonly Yearly: "yearly";
|
|
80
|
+
};
|
|
81
|
+
export type UpdateSubscriptionBillingFrequencyEnum = typeof UpdateSubscriptionBillingFrequencyEnum[keyof typeof UpdateSubscriptionBillingFrequencyEnum];
|
|
60
82
|
/**
|
|
61
83
|
* Check if a given object implements the UpdateSubscription interface.
|
|
62
84
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.UpdateSubscriptionStatusEnum = void 0;
|
|
16
|
+
exports.UpdateSubscriptionBillingFrequencyEnum = exports.UpdateSubscriptionStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfUpdateSubscription = instanceOfUpdateSubscription;
|
|
18
18
|
exports.UpdateSubscriptionFromJSON = UpdateSubscriptionFromJSON;
|
|
19
19
|
exports.UpdateSubscriptionFromJSONTyped = UpdateSubscriptionFromJSONTyped;
|
|
@@ -24,10 +24,19 @@ exports.UpdateSubscriptionToJSONTyped = UpdateSubscriptionToJSONTyped;
|
|
|
24
24
|
*/
|
|
25
25
|
exports.UpdateSubscriptionStatusEnum = {
|
|
26
26
|
Active: 'active',
|
|
27
|
-
|
|
27
|
+
Trialing: 'trialing',
|
|
28
28
|
PastDue: 'past_due',
|
|
29
29
|
Unpaid: 'unpaid',
|
|
30
|
-
|
|
30
|
+
Suspended: 'suspended',
|
|
31
|
+
Canceled: 'canceled',
|
|
32
|
+
Incomplete: 'incomplete'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.UpdateSubscriptionBillingFrequencyEnum = {
|
|
38
|
+
Monthly: 'monthly',
|
|
39
|
+
Yearly: 'yearly'
|
|
31
40
|
};
|
|
32
41
|
/**
|
|
33
42
|
* Check if a given object implements the UpdateSubscription interface.
|
|
@@ -43,11 +52,13 @@ function UpdateSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
52
|
return json;
|
|
44
53
|
}
|
|
45
54
|
return {
|
|
46
|
-
'
|
|
55
|
+
'planId': json['planId'] == null ? undefined : json['planId'],
|
|
47
56
|
'planType': json['planType'] == null ? undefined : json['planType'],
|
|
48
57
|
'status': json['status'] == null ? undefined : json['status'],
|
|
49
|
-
'
|
|
50
|
-
'
|
|
58
|
+
'billingFrequency': json['billingFrequency'] == null ? undefined : json['billingFrequency'],
|
|
59
|
+
'currentPeriodStart': json['currentPeriodStart'] == null ? undefined : (new Date(json['currentPeriodStart'])),
|
|
60
|
+
'currentPeriodEnd': json['currentPeriodEnd'] == null ? undefined : (new Date(json['currentPeriodEnd'])),
|
|
61
|
+
'canceledAt': json['canceledAt'] == null ? undefined : (new Date(json['canceledAt'])),
|
|
51
62
|
};
|
|
52
63
|
}
|
|
53
64
|
function UpdateSubscriptionToJSON(json) {
|
|
@@ -58,10 +69,12 @@ function UpdateSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
69
|
return value;
|
|
59
70
|
}
|
|
60
71
|
return {
|
|
61
|
-
'
|
|
72
|
+
'planId': value['planId'],
|
|
62
73
|
'planType': value['planType'],
|
|
63
74
|
'status': value['status'],
|
|
64
|
-
'
|
|
65
|
-
'
|
|
75
|
+
'billingFrequency': value['billingFrequency'],
|
|
76
|
+
'currentPeriodStart': value['currentPeriodStart'] == null ? undefined : ((value['currentPeriodStart']).toISOString()),
|
|
77
|
+
'currentPeriodEnd': value['currentPeriodEnd'] == null ? undefined : ((value['currentPeriodEnd']).toISOString()),
|
|
78
|
+
'canceledAt': value['canceledAt'] == null ? undefined : ((value['canceledAt']).toISOString()),
|
|
66
79
|
};
|
|
67
80
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Widgetic API Gateway
|
|
3
|
+
* API documentation for the Widgetic API Gateway
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { UploadWidgetThumbnail200ResponseData } from './UploadWidgetThumbnail200ResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UploadWidgetThumbnail200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface UploadWidgetThumbnail200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof UploadWidgetThumbnail200Response
|
|
23
|
+
*/
|
|
24
|
+
success?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {UploadWidgetThumbnail200ResponseData}
|
|
28
|
+
* @memberof UploadWidgetThumbnail200Response
|
|
29
|
+
*/
|
|
30
|
+
data?: UploadWidgetThumbnail200ResponseData;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UploadWidgetThumbnail200Response interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUploadWidgetThumbnail200Response(value: object): value is UploadWidgetThumbnail200Response;
|
|
36
|
+
export declare function UploadWidgetThumbnail200ResponseFromJSON(json: any): UploadWidgetThumbnail200Response;
|
|
37
|
+
export declare function UploadWidgetThumbnail200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadWidgetThumbnail200Response;
|
|
38
|
+
export declare function UploadWidgetThumbnail200ResponseToJSON(json: any): UploadWidgetThumbnail200Response;
|
|
39
|
+
export declare function UploadWidgetThumbnail200ResponseToJSONTyped(value?: UploadWidgetThumbnail200Response | null, ignoreDiscriminator?: boolean): any;
|