@widgetic/api-sdk 1.0.31 → 1.0.33
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 +4 -0
- package/dist/apis/AdminApi.d.ts +30 -46
- package/dist/apis/AdminApi.js +53 -102
- package/dist/apis/AdminBillingApi.d.ts +2 -2
- package/dist/apis/AdminBillingApi.js +2 -2
- package/dist/apis/BillingApi.d.ts +44 -1
- package/dist/apis/BillingApi.js +127 -0
- package/dist/apis/CompositionsApi.d.ts +19 -15
- package/dist/apis/CompositionsApi.js +21 -14
- package/dist/apis/CreditsApi.d.ts +7 -7
- package/dist/apis/CreditsApi.js +5 -5
- package/dist/apis/OrganizationsApi.d.ts +35 -7
- package/dist/apis/OrganizationsApi.js +86 -6
- package/dist/apis/PartnerApi.d.ts +141 -36
- package/dist/apis/PartnerApi.js +333 -31
- package/dist/apis/PartnerCustomizationsApi.d.ts +4 -4
- package/dist/apis/PartnerCustomizationsApi.js +4 -4
- package/dist/apis/PartnersApi.d.ts +85 -67
- package/dist/apis/PartnersApi.js +198 -119
- package/dist/apis/PublicEmbedApi.d.ts +42 -3
- package/dist/apis/PublicEmbedApi.js +99 -2
- package/dist/apis/SubscriptionsApi.d.ts +2 -2
- package/dist/apis/SubscriptionsApi.js +2 -2
- package/dist/apis/UploadsApi.d.ts +4 -4
- package/dist/apis/UploadsApi.js +4 -4
- package/dist/apis/UsersApi.d.ts +4 -4
- package/dist/apis/UsersApi.js +4 -4
- package/dist/apis/index.d.ts +0 -4
- package/dist/apis/index.js +0 -4
- package/dist/esm/apis/AdminApi.d.ts +30 -46
- package/dist/esm/apis/AdminApi.js +54 -103
- package/dist/esm/apis/AdminBillingApi.d.ts +2 -2
- package/dist/esm/apis/AdminBillingApi.js +2 -2
- package/dist/esm/apis/BillingApi.d.ts +44 -1
- package/dist/esm/apis/BillingApi.js +128 -1
- package/dist/esm/apis/CompositionsApi.d.ts +19 -15
- package/dist/esm/apis/CompositionsApi.js +22 -15
- package/dist/esm/apis/CreditsApi.d.ts +7 -7
- package/dist/esm/apis/CreditsApi.js +6 -6
- package/dist/esm/apis/OrganizationsApi.d.ts +35 -7
- package/dist/esm/apis/OrganizationsApi.js +87 -7
- package/dist/esm/apis/PartnerApi.d.ts +141 -36
- package/dist/esm/apis/PartnerApi.js +334 -32
- package/dist/esm/apis/PartnerCustomizationsApi.d.ts +4 -4
- package/dist/esm/apis/PartnerCustomizationsApi.js +4 -4
- package/dist/esm/apis/PartnersApi.d.ts +85 -67
- package/dist/esm/apis/PartnersApi.js +198 -119
- package/dist/esm/apis/PublicEmbedApi.d.ts +42 -3
- package/dist/esm/apis/PublicEmbedApi.js +100 -3
- package/dist/esm/apis/SubscriptionsApi.d.ts +2 -2
- package/dist/esm/apis/SubscriptionsApi.js +2 -2
- package/dist/esm/apis/UploadsApi.d.ts +4 -4
- package/dist/esm/apis/UploadsApi.js +4 -4
- package/dist/esm/apis/UsersApi.d.ts +4 -4
- package/dist/esm/apis/UsersApi.js +4 -4
- package/dist/esm/apis/index.d.ts +0 -4
- package/dist/esm/apis/index.js +0 -4
- package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
- package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.js +43 -0
- package/dist/esm/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
- package/dist/esm/models/BillingUsersUserIdStorageGet200Response.js +44 -0
- package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.js +42 -0
- package/dist/esm/models/Composition.d.ts +12 -0
- package/dist/esm/models/Composition.js +2 -0
- package/dist/esm/models/CompositionDataSource.d.ts +41 -0
- package/dist/esm/models/CompositionDataSource.js +47 -0
- package/dist/esm/models/CompositionEntriesReading.d.ts +20 -4
- package/dist/esm/models/CompositionEntriesReading.js +3 -0
- package/dist/esm/models/CompositionEntryAggregateTally.d.ts +15 -8
- package/dist/esm/models/CompositionEntryAggregatesBlock.d.ts +10 -0
- package/dist/esm/models/CompositionEntryItem.d.ts +4 -1
- package/dist/esm/models/CompositionEntryItemsMeta.d.ts +8 -0
- package/dist/esm/models/ConvertSoloToTeams200Response.d.ts +39 -0
- package/dist/esm/models/ConvertSoloToTeams200Response.js +44 -0
- package/dist/esm/models/CreatePartnerRequest.d.ts +7 -0
- package/dist/esm/models/CreatePartnerRequest.js +2 -0
- package/dist/esm/models/DeleteCompositionDataSource200Response.d.ts +32 -0
- package/dist/esm/models/DeleteCompositionDataSource200Response.js +43 -0
- package/dist/esm/models/GetCompositionContentSchema200Response.d.ts +2 -2
- package/dist/esm/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
- package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
- package/dist/esm/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
- package/dist/esm/models/GetPartnerCreditTransactions200Response.js +44 -0
- package/dist/esm/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
- package/dist/esm/models/GetPublicCompositionEmbed200Response.js +67 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
- package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -0
- package/dist/esm/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
- package/dist/esm/models/GetPublicCompositionEmbed403Response.js +48 -0
- package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
- package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.js +50 -0
- package/dist/esm/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
- package/dist/esm/models/GetPublicCompositionEmbed404Response.js +51 -0
- package/dist/esm/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
- package/dist/esm/models/GetPublicCompositionEmbed429Response.js +43 -0
- package/dist/esm/models/IssuePartnerInvoiceRequest.d.ts +14 -1
- package/dist/esm/models/IssuePartnerInvoiceRequest.js +2 -0
- package/dist/esm/models/IssuedPartnerInvoice.d.ts +6 -0
- package/dist/esm/models/IssuedPartnerInvoice.js +4 -0
- package/dist/esm/models/ManagedUserEntryItem.d.ts +4 -1
- package/dist/esm/models/MyPartner.d.ts +7 -0
- package/dist/esm/models/MyPartner.js +4 -0
- package/dist/esm/models/MyPartners.d.ts +9 -1
- package/dist/esm/models/MyPartners.js +6 -1
- package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
- package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.js +9 -0
- package/dist/esm/models/Partner.d.ts +7 -0
- package/dist/esm/models/Partner.js +2 -0
- package/dist/esm/models/PartnerActivation.d.ts +1 -1
- package/dist/esm/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
- package/dist/esm/models/PartnerBillingOverviewOperationalCredits.js +0 -4
- package/dist/esm/models/PartnerBillingProfile.d.ts +1 -1
- package/dist/esm/models/PartnerContract.d.ts +15 -3
- package/dist/esm/models/PartnerContract.js +6 -2
- package/dist/esm/models/PartnerCustomization.d.ts +15 -3
- package/dist/esm/models/PartnerCustomization.js +6 -2
- package/dist/esm/models/PartnerDetails.d.ts +7 -0
- package/dist/esm/models/PartnerDetails.js +2 -0
- package/dist/esm/models/PartnerEntryContextSecret.d.ts +39 -0
- package/dist/esm/models/PartnerEntryContextSecret.js +48 -0
- package/dist/esm/models/PartnerEntryContextSigning.d.ts +62 -0
- package/dist/esm/models/PartnerEntryContextSigning.js +63 -0
- package/dist/esm/models/PartnerExtraCreditsInvoice.d.ts +98 -0
- package/dist/esm/models/PartnerExtraCreditsInvoice.js +87 -0
- package/dist/esm/models/PartnerInvoiceSchedule.d.ts +66 -0
- package/dist/esm/models/PartnerInvoiceSchedule.js +67 -0
- package/dist/esm/models/PartnerInvoiceScheduleContract.d.ts +68 -0
- package/dist/esm/models/PartnerInvoiceScheduleContract.js +67 -0
- package/dist/esm/models/PartnerInvoiceScheduleNext.d.ts +94 -0
- package/dist/esm/models/PartnerInvoiceScheduleNext.js +91 -0
- package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
- package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.js +47 -0
- package/dist/esm/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
- package/dist/esm/models/PartnerInvoiceScheduleOverdue.js +47 -0
- package/dist/esm/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
- package/dist/esm/models/PartnerInvoiceSchedulePeriod.js +91 -0
- package/dist/esm/models/PartnerNotification.d.ts +1 -1
- package/dist/esm/models/PartnerNotificationEventType.d.ts +2 -0
- package/dist/esm/models/PartnerNotificationEventType.js +2 -0
- package/dist/esm/models/PartnerNotificationTestEventRequest.d.ts +33 -0
- package/dist/esm/models/PartnerNotificationTestEventRequest.js +44 -0
- package/dist/esm/models/PartnerNotificationTestEventResult.d.ts +50 -0
- package/dist/esm/models/PartnerNotificationTestEventResult.js +53 -0
- package/dist/esm/models/PartnerUpdateResult.d.ts +8 -16
- package/dist/esm/models/PartnerUpdateResult.js +2 -5
- package/dist/esm/models/PartnerWithWarnings.d.ts +7 -0
- package/dist/esm/models/PartnerWithWarnings.js +2 -0
- package/dist/esm/models/PersonalExtraStorage.d.ts +92 -0
- package/dist/esm/models/PersonalExtraStorage.js +83 -0
- package/dist/esm/models/PersonalExtraStorageBlock.d.ts +56 -0
- package/dist/esm/models/PersonalExtraStorageBlock.js +57 -0
- package/dist/esm/models/PersonalStorage.d.ts +80 -0
- package/dist/esm/models/PersonalStorage.js +73 -0
- package/dist/esm/models/PersonalStoragePack.d.ts +100 -0
- package/dist/esm/models/PersonalStoragePack.js +84 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.js +44 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.js +51 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.js +41 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
- package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.js +43 -0
- package/dist/esm/models/PublicCompositionEntryRequest.d.ts +1 -1
- package/dist/esm/models/RequestExtraCredits.d.ts +33 -0
- package/dist/esm/models/RequestExtraCredits.js +43 -0
- package/dist/esm/models/StorageChange.d.ts +4 -3
- package/dist/esm/models/SurfaceConversionResult.d.ts +85 -0
- package/dist/esm/models/SurfaceConversionResult.js +76 -0
- package/dist/esm/models/SurfaceConversionResultSubscription.d.ts +82 -0
- package/dist/esm/models/SurfaceConversionResultSubscription.js +62 -0
- package/dist/esm/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
- package/dist/esm/models/UpdatePartnerCustomizationRequest.js +2 -2
- package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
- package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
- package/dist/esm/models/UpdatePartnerRequest.d.ts +7 -24
- package/dist/esm/models/UpdatePartnerRequest.js +2 -8
- package/dist/esm/models/index.d.ts +37 -86
- package/dist/esm/models/index.js +37 -86
- package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
- package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.js +50 -0
- package/dist/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
- package/dist/models/BillingUsersUserIdStorageGet200Response.js +51 -0
- package/dist/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
- package/dist/models/BillingUsersUserIdStorageGet200ResponseData.js +49 -0
- package/dist/models/Composition.d.ts +12 -0
- package/dist/models/Composition.js +2 -0
- package/dist/models/CompositionDataSource.d.ts +41 -0
- package/dist/models/CompositionDataSource.js +54 -0
- package/dist/models/CompositionEntriesReading.d.ts +20 -4
- package/dist/models/CompositionEntriesReading.js +3 -0
- package/dist/models/CompositionEntryAggregateTally.d.ts +15 -8
- package/dist/models/CompositionEntryAggregatesBlock.d.ts +10 -0
- package/dist/models/CompositionEntryItem.d.ts +4 -1
- package/dist/models/CompositionEntryItemsMeta.d.ts +8 -0
- package/dist/models/ConvertSoloToTeams200Response.d.ts +39 -0
- package/dist/models/ConvertSoloToTeams200Response.js +51 -0
- package/dist/models/CreatePartnerRequest.d.ts +7 -0
- package/dist/models/CreatePartnerRequest.js +2 -0
- package/dist/models/DeleteCompositionDataSource200Response.d.ts +32 -0
- package/dist/models/DeleteCompositionDataSource200Response.js +50 -0
- package/dist/models/GetCompositionContentSchema200Response.d.ts +2 -2
- package/dist/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
- package/dist/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
- package/dist/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
- package/dist/models/GetPartnerCreditTransactions200Response.js +51 -0
- package/dist/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
- package/dist/models/GetPublicCompositionEmbed200Response.js +74 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.js +50 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
- package/dist/models/GetPublicCompositionEmbed200ResponseDirect.js +52 -0
- package/dist/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
- package/dist/models/GetPublicCompositionEmbed403Response.js +55 -0
- package/dist/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
- package/dist/models/GetPublicCompositionEmbed403ResponseDetails.js +58 -0
- package/dist/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
- package/dist/models/GetPublicCompositionEmbed404Response.js +59 -0
- package/dist/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
- package/dist/models/GetPublicCompositionEmbed429Response.js +50 -0
- package/dist/models/IssuePartnerInvoiceRequest.d.ts +14 -1
- package/dist/models/IssuePartnerInvoiceRequest.js +2 -0
- package/dist/models/IssuedPartnerInvoice.d.ts +6 -0
- package/dist/models/IssuedPartnerInvoice.js +4 -0
- package/dist/models/ManagedUserEntryItem.d.ts +4 -1
- package/dist/models/MyPartner.d.ts +7 -0
- package/dist/models/MyPartner.js +4 -0
- package/dist/models/MyPartners.d.ts +9 -1
- package/dist/models/MyPartners.js +6 -1
- package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
- package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.js +10 -0
- package/dist/models/Partner.d.ts +7 -0
- package/dist/models/Partner.js +2 -0
- package/dist/models/PartnerActivation.d.ts +1 -1
- package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
- package/dist/models/PartnerBillingOverviewOperationalCredits.js +0 -4
- package/dist/models/PartnerBillingProfile.d.ts +1 -1
- package/dist/models/PartnerContract.d.ts +15 -3
- package/dist/models/PartnerContract.js +6 -2
- package/dist/models/PartnerCustomization.d.ts +15 -3
- package/dist/models/PartnerCustomization.js +6 -2
- package/dist/models/PartnerDetails.d.ts +7 -0
- package/dist/models/PartnerDetails.js +2 -0
- package/dist/models/PartnerEntryContextSecret.d.ts +39 -0
- package/dist/models/PartnerEntryContextSecret.js +55 -0
- package/dist/models/PartnerEntryContextSigning.d.ts +62 -0
- package/dist/models/PartnerEntryContextSigning.js +70 -0
- package/dist/models/PartnerExtraCreditsInvoice.d.ts +98 -0
- package/dist/models/PartnerExtraCreditsInvoice.js +94 -0
- package/dist/models/PartnerInvoiceSchedule.d.ts +66 -0
- package/dist/models/PartnerInvoiceSchedule.js +74 -0
- package/dist/models/PartnerInvoiceScheduleContract.d.ts +68 -0
- package/dist/models/PartnerInvoiceScheduleContract.js +74 -0
- package/dist/models/PartnerInvoiceScheduleNext.d.ts +94 -0
- package/dist/models/PartnerInvoiceScheduleNext.js +99 -0
- package/dist/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
- package/dist/models/PartnerInvoiceScheduleNextPeriod.js +54 -0
- package/dist/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
- package/dist/models/PartnerInvoiceScheduleOverdue.js +54 -0
- package/dist/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
- package/dist/models/PartnerInvoiceSchedulePeriod.js +99 -0
- package/dist/models/PartnerNotification.d.ts +1 -1
- package/dist/models/PartnerNotificationEventType.d.ts +2 -0
- package/dist/models/PartnerNotificationEventType.js +2 -0
- package/dist/models/PartnerNotificationTestEventRequest.d.ts +33 -0
- package/dist/models/PartnerNotificationTestEventRequest.js +51 -0
- package/dist/models/PartnerNotificationTestEventResult.d.ts +50 -0
- package/dist/models/PartnerNotificationTestEventResult.js +60 -0
- package/dist/models/PartnerUpdateResult.d.ts +8 -16
- package/dist/models/PartnerUpdateResult.js +2 -5
- package/dist/models/PartnerWithWarnings.d.ts +7 -0
- package/dist/models/PartnerWithWarnings.js +2 -0
- package/dist/models/PersonalExtraStorage.d.ts +92 -0
- package/dist/models/PersonalExtraStorage.js +91 -0
- package/dist/models/PersonalExtraStorageBlock.d.ts +56 -0
- package/dist/models/PersonalExtraStorageBlock.js +65 -0
- package/dist/models/PersonalStorage.d.ts +80 -0
- package/dist/models/PersonalStorage.js +80 -0
- package/dist/models/PersonalStoragePack.d.ts +100 -0
- package/dist/models/PersonalStoragePack.js +92 -0
- package/dist/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
- package/dist/models/PostPublicCompositionEmbedStatus200Response.js +51 -0
- package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
- package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.js +59 -0
- package/dist/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
- package/dist/models/PostPublicCompositionEmbedStatus429Response.js +48 -0
- package/dist/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
- package/dist/models/PostPublicCompositionEmbedStatusRequest.js +50 -0
- package/dist/models/PublicCompositionEntryRequest.d.ts +1 -1
- package/dist/models/RequestExtraCredits.d.ts +33 -0
- package/dist/models/RequestExtraCredits.js +50 -0
- package/dist/models/StorageChange.d.ts +4 -3
- package/dist/models/SurfaceConversionResult.d.ts +85 -0
- package/dist/models/SurfaceConversionResult.js +84 -0
- package/dist/models/SurfaceConversionResultSubscription.d.ts +82 -0
- package/dist/models/SurfaceConversionResultSubscription.js +70 -0
- package/dist/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
- package/dist/models/UpdatePartnerCustomizationRequest.js +2 -2
- package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
- package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
- package/dist/models/UpdatePartnerRequest.d.ts +7 -24
- package/dist/models/UpdatePartnerRequest.js +2 -8
- package/dist/models/index.d.ts +37 -86
- package/dist/models/index.js +37 -86
- package/package.json +3 -2
|
@@ -0,0 +1,92 @@
|
|
|
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 { PersonalExtraStorageBlock } from './PersonalExtraStorageBlock';
|
|
13
|
+
/**
|
|
14
|
+
* What the person can do with extra storage right now, so a client shows a button only when
|
|
15
|
+
* the request would be accepted. It is advisory: the request re-reads the subscription and
|
|
16
|
+
* its answer is the one that counts.
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PersonalExtraStorage
|
|
20
|
+
*/
|
|
21
|
+
export interface PersonalExtraStorage {
|
|
22
|
+
/**
|
|
23
|
+
* The interval extra storage is billed on, which is the subscription's own; null without a Stripe subscription
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PersonalExtraStorage
|
|
26
|
+
*/
|
|
27
|
+
billingInterval: PersonalExtraStorageBillingIntervalEnum | null;
|
|
28
|
+
/**
|
|
29
|
+
* What one GB costs per billing period; null without a Stripe subscription
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PersonalExtraStorage
|
|
32
|
+
*/
|
|
33
|
+
pricePerGbUsd: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* What the extra storage costs per billing period now
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PersonalExtraStorage
|
|
38
|
+
*/
|
|
39
|
+
chargePerPeriodUsd: number;
|
|
40
|
+
/**
|
|
41
|
+
* The size of one pack; storage is added and removed in whole packs
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PersonalExtraStorage
|
|
44
|
+
*/
|
|
45
|
+
packSizeGb: number;
|
|
46
|
+
/**
|
|
47
|
+
* The most one request may add, in GB
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PersonalExtraStorage
|
|
50
|
+
*/
|
|
51
|
+
maxRequestGb: number;
|
|
52
|
+
/**
|
|
53
|
+
* The most extra storage one account can hold, in GB
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PersonalExtraStorage
|
|
56
|
+
*/
|
|
57
|
+
maxTotalGb: number;
|
|
58
|
+
/**
|
|
59
|
+
* Whether storage can be added right now
|
|
60
|
+
* @type {boolean}
|
|
61
|
+
* @memberof PersonalExtraStorage
|
|
62
|
+
*/
|
|
63
|
+
canAdd: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Whether there is extra storage to give back and the subscription lets it go
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof PersonalExtraStorage
|
|
68
|
+
*/
|
|
69
|
+
canRemove: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Why `canAdd` is false; null when it is true
|
|
72
|
+
* @type {PersonalExtraStorageBlock}
|
|
73
|
+
* @memberof PersonalExtraStorage
|
|
74
|
+
*/
|
|
75
|
+
addBlockedReason: PersonalExtraStorageBlock | null;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export declare const PersonalExtraStorageBillingIntervalEnum: {
|
|
81
|
+
readonly Month: "month";
|
|
82
|
+
readonly Year: "year";
|
|
83
|
+
};
|
|
84
|
+
export type PersonalExtraStorageBillingIntervalEnum = typeof PersonalExtraStorageBillingIntervalEnum[keyof typeof PersonalExtraStorageBillingIntervalEnum];
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the PersonalExtraStorage interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfPersonalExtraStorage(value: object): value is PersonalExtraStorage;
|
|
89
|
+
export declare function PersonalExtraStorageFromJSON(json: any): PersonalExtraStorage;
|
|
90
|
+
export declare function PersonalExtraStorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonalExtraStorage;
|
|
91
|
+
export declare function PersonalExtraStorageToJSON(json: any): PersonalExtraStorage;
|
|
92
|
+
export declare function PersonalExtraStorageToJSONTyped(value?: PersonalExtraStorage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { PersonalExtraStorageBlockFromJSON, PersonalExtraStorageBlockToJSON, } from './PersonalExtraStorageBlock.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const PersonalExtraStorageBillingIntervalEnum = {
|
|
19
|
+
Month: 'month',
|
|
20
|
+
Year: 'year'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PersonalExtraStorage interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPersonalExtraStorage(value) {
|
|
26
|
+
if (!('billingInterval' in value) || value['billingInterval'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pricePerGbUsd' in value) || value['pricePerGbUsd'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('chargePerPeriodUsd' in value) || value['chargePerPeriodUsd'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('packSizeGb' in value) || value['packSizeGb'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('maxRequestGb' in value) || value['maxRequestGb'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('maxTotalGb' in value) || value['maxTotalGb'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('canAdd' in value) || value['canAdd'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('canRemove' in value) || value['canRemove'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('addBlockedReason' in value) || value['addBlockedReason'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
export function PersonalExtraStorageFromJSON(json) {
|
|
47
|
+
return PersonalExtraStorageFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function PersonalExtraStorageFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'billingInterval': json['billingInterval'],
|
|
55
|
+
'pricePerGbUsd': json['pricePerGbUsd'],
|
|
56
|
+
'chargePerPeriodUsd': json['chargePerPeriodUsd'],
|
|
57
|
+
'packSizeGb': json['packSizeGb'],
|
|
58
|
+
'maxRequestGb': json['maxRequestGb'],
|
|
59
|
+
'maxTotalGb': json['maxTotalGb'],
|
|
60
|
+
'canAdd': json['canAdd'],
|
|
61
|
+
'canRemove': json['canRemove'],
|
|
62
|
+
'addBlockedReason': PersonalExtraStorageBlockFromJSON(json['addBlockedReason']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export function PersonalExtraStorageToJSON(json) {
|
|
66
|
+
return PersonalExtraStorageToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
export function PersonalExtraStorageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'billingInterval': value['billingInterval'],
|
|
74
|
+
'pricePerGbUsd': value['pricePerGbUsd'],
|
|
75
|
+
'chargePerPeriodUsd': value['chargePerPeriodUsd'],
|
|
76
|
+
'packSizeGb': value['packSizeGb'],
|
|
77
|
+
'maxRequestGb': value['maxRequestGb'],
|
|
78
|
+
'maxTotalGb': value['maxTotalGb'],
|
|
79
|
+
'canAdd': value['canAdd'],
|
|
80
|
+
'canRemove': value['canRemove'],
|
|
81
|
+
'addBlockedReason': PersonalExtraStorageBlockToJSON(value['addBlockedReason']),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* Why storage cannot be added. The `code` is the one the purchase request answers with in the
|
|
14
|
+
* same state, so a client can act on it before asking.
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PersonalExtraStorageBlock
|
|
18
|
+
*/
|
|
19
|
+
export interface PersonalExtraStorageBlock {
|
|
20
|
+
/**
|
|
21
|
+
* `PARTNER_STORAGE_NOT_SOLD` (a partner account keeps its files in its own storage
|
|
22
|
+
* destination), `AUTHZ_PLAN_RESTRICTION` (no Solo subscription), `BILLED_THROUGH_SHOPIFY`,
|
|
23
|
+
* `TRIAL_NOT_ENDED`, `PAYMENT_OVERDUE`, `SUBSCRIPTION_ENDING` or `SUBSCRIPTION_NOT_ACTIVE`
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PersonalExtraStorageBlock
|
|
27
|
+
*/
|
|
28
|
+
code: string;
|
|
29
|
+
/**
|
|
30
|
+
* A sentence a person can read
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PersonalExtraStorageBlock
|
|
33
|
+
*/
|
|
34
|
+
message: string;
|
|
35
|
+
/**
|
|
36
|
+
* The plan that makes storage available, when subscribing is the way out
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PersonalExtraStorageBlock
|
|
39
|
+
*/
|
|
40
|
+
upgradeTo: PersonalExtraStorageBlockUpgradeToEnum | null;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const PersonalExtraStorageBlockUpgradeToEnum: {
|
|
46
|
+
readonly Solo: "solo";
|
|
47
|
+
};
|
|
48
|
+
export type PersonalExtraStorageBlockUpgradeToEnum = typeof PersonalExtraStorageBlockUpgradeToEnum[keyof typeof PersonalExtraStorageBlockUpgradeToEnum];
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the PersonalExtraStorageBlock interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfPersonalExtraStorageBlock(value: object): value is PersonalExtraStorageBlock;
|
|
53
|
+
export declare function PersonalExtraStorageBlockFromJSON(json: any): PersonalExtraStorageBlock;
|
|
54
|
+
export declare function PersonalExtraStorageBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonalExtraStorageBlock;
|
|
55
|
+
export declare function PersonalExtraStorageBlockToJSON(json: any): PersonalExtraStorageBlock;
|
|
56
|
+
export declare function PersonalExtraStorageBlockToJSONTyped(value?: PersonalExtraStorageBlock | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PersonalExtraStorageBlockUpgradeToEnum = {
|
|
18
|
+
Solo: 'solo'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the PersonalExtraStorageBlock interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfPersonalExtraStorageBlock(value) {
|
|
24
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('upgradeTo' in value) || value['upgradeTo'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function PersonalExtraStorageBlockFromJSON(json) {
|
|
33
|
+
return PersonalExtraStorageBlockFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function PersonalExtraStorageBlockFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'code': json['code'],
|
|
41
|
+
'message': json['message'],
|
|
42
|
+
'upgradeTo': json['upgradeTo'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function PersonalExtraStorageBlockToJSON(json) {
|
|
46
|
+
return PersonalExtraStorageBlockToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function PersonalExtraStorageBlockToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'code': value['code'],
|
|
54
|
+
'message': value['message'],
|
|
55
|
+
'upgradeTo': value['upgradeTo'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { PersonalExtraStorage } from './PersonalExtraStorage';
|
|
13
|
+
import type { PersonalStoragePack } from './PersonalStoragePack';
|
|
14
|
+
/**
|
|
15
|
+
* A person's own storage and the extra storage they can add to it on Solo. It is the person's
|
|
16
|
+
* OWN workspace only: a team's storage is the team's pool, and its admins buy storage for it.
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PersonalStorage
|
|
20
|
+
*/
|
|
21
|
+
export interface PersonalStorage {
|
|
22
|
+
/**
|
|
23
|
+
* What the plan grants (or the operator floor, when that is larger), in GB
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PersonalStorage
|
|
26
|
+
*/
|
|
27
|
+
planStorageGb: number;
|
|
28
|
+
/**
|
|
29
|
+
* Extra storage the upload check counts, in GB
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PersonalStorage
|
|
32
|
+
*/
|
|
33
|
+
extraStorageGb: number;
|
|
34
|
+
/**
|
|
35
|
+
* The upload limit of the person's own workspace (plan plus extra storage), in GB
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof PersonalStorage
|
|
38
|
+
*/
|
|
39
|
+
totalQuotaGb: number;
|
|
40
|
+
/**
|
|
41
|
+
* What the person has stored in their own workspace, in GB
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PersonalStorage
|
|
44
|
+
*/
|
|
45
|
+
usedGb: number;
|
|
46
|
+
/**
|
|
47
|
+
* What is left under the limit, in GB; never negative
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PersonalStorage
|
|
50
|
+
*/
|
|
51
|
+
availableGb: number;
|
|
52
|
+
/**
|
|
53
|
+
* How many extra-storage rows the upload check counts
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PersonalStorage
|
|
56
|
+
*/
|
|
57
|
+
storagePacksCount: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {PersonalExtraStorage}
|
|
61
|
+
* @memberof PersonalStorage
|
|
62
|
+
*/
|
|
63
|
+
extraStorage: PersonalExtraStorage;
|
|
64
|
+
/**
|
|
65
|
+
* Every extra-storage row, newest first. The `active` ones add up to `extraStorageGb`;
|
|
66
|
+
* `cancelled` and `expired` ones are kept as history.
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<PersonalStoragePack>}
|
|
69
|
+
* @memberof PersonalStorage
|
|
70
|
+
*/
|
|
71
|
+
packs: Array<PersonalStoragePack>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the PersonalStorage interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfPersonalStorage(value: object): value is PersonalStorage;
|
|
77
|
+
export declare function PersonalStorageFromJSON(json: any): PersonalStorage;
|
|
78
|
+
export declare function PersonalStorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonalStorage;
|
|
79
|
+
export declare function PersonalStorageToJSON(json: any): PersonalStorage;
|
|
80
|
+
export declare function PersonalStorageToJSONTyped(value?: PersonalStorage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { PersonalExtraStorageFromJSON, PersonalExtraStorageToJSON, } from './PersonalExtraStorage.js';
|
|
15
|
+
import { PersonalStoragePackFromJSON, PersonalStoragePackToJSON, } from './PersonalStoragePack.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PersonalStorage interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPersonalStorage(value) {
|
|
20
|
+
if (!('planStorageGb' in value) || value['planStorageGb'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('extraStorageGb' in value) || value['extraStorageGb'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('totalQuotaGb' in value) || value['totalQuotaGb'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('usedGb' in value) || value['usedGb'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('availableGb' in value) || value['availableGb'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('storagePacksCount' in value) || value['storagePacksCount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('extraStorage' in value) || value['extraStorage'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('packs' in value) || value['packs'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function PersonalStorageFromJSON(json) {
|
|
39
|
+
return PersonalStorageFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function PersonalStorageFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'planStorageGb': json['planStorageGb'],
|
|
47
|
+
'extraStorageGb': json['extraStorageGb'],
|
|
48
|
+
'totalQuotaGb': json['totalQuotaGb'],
|
|
49
|
+
'usedGb': json['usedGb'],
|
|
50
|
+
'availableGb': json['availableGb'],
|
|
51
|
+
'storagePacksCount': json['storagePacksCount'],
|
|
52
|
+
'extraStorage': PersonalExtraStorageFromJSON(json['extraStorage']),
|
|
53
|
+
'packs': (json['packs'].map(PersonalStoragePackFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function PersonalStorageToJSON(json) {
|
|
57
|
+
return PersonalStorageToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function PersonalStorageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'planStorageGb': value['planStorageGb'],
|
|
65
|
+
'extraStorageGb': value['extraStorageGb'],
|
|
66
|
+
'totalQuotaGb': value['totalQuotaGb'],
|
|
67
|
+
'usedGb': value['usedGb'],
|
|
68
|
+
'availableGb': value['availableGb'],
|
|
69
|
+
'storagePacksCount': value['storagePacksCount'],
|
|
70
|
+
'extraStorage': PersonalExtraStorageToJSON(value['extraStorage']),
|
|
71
|
+
'packs': (value['packs'].map(PersonalStoragePackToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
* A row of the person's extra storage: one per storage item on the subscription, kept in step
|
|
14
|
+
* with what Stripe bills. A row is `active` while the subscription bills it and `cancelled`
|
|
15
|
+
* once it stops (the row is kept as history).
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface PersonalStoragePack
|
|
19
|
+
*/
|
|
20
|
+
export interface PersonalStoragePack {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof PersonalStoragePack
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The person the storage belongs to
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof PersonalStoragePack
|
|
31
|
+
*/
|
|
32
|
+
userId: string;
|
|
33
|
+
/**
|
|
34
|
+
* Size of the row in GB
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof PersonalStoragePack
|
|
37
|
+
*/
|
|
38
|
+
packSizeGb: number;
|
|
39
|
+
/**
|
|
40
|
+
* What the row costs per billing period
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof PersonalStoragePack
|
|
43
|
+
*/
|
|
44
|
+
pricePaid: number;
|
|
45
|
+
/**
|
|
46
|
+
* The interval the row is billed on
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof PersonalStoragePack
|
|
49
|
+
*/
|
|
50
|
+
billingInterval?: PersonalStoragePackBillingIntervalEnum | null;
|
|
51
|
+
/**
|
|
52
|
+
* The user who added the storage; always the person themselves
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof PersonalStoragePack
|
|
55
|
+
*/
|
|
56
|
+
purchasedBy: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Date}
|
|
60
|
+
* @memberof PersonalStoragePack
|
|
61
|
+
*/
|
|
62
|
+
purchasedAt?: Date | null;
|
|
63
|
+
/**
|
|
64
|
+
* When the row stops counting; null when it does not expire
|
|
65
|
+
* @type {Date}
|
|
66
|
+
* @memberof PersonalStoragePack
|
|
67
|
+
*/
|
|
68
|
+
expiresAt?: Date | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof PersonalStoragePack
|
|
73
|
+
*/
|
|
74
|
+
status: PersonalStoragePackStatusEnum;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const PersonalStoragePackBillingIntervalEnum: {
|
|
80
|
+
readonly Month: "month";
|
|
81
|
+
readonly Year: "year";
|
|
82
|
+
};
|
|
83
|
+
export type PersonalStoragePackBillingIntervalEnum = typeof PersonalStoragePackBillingIntervalEnum[keyof typeof PersonalStoragePackBillingIntervalEnum];
|
|
84
|
+
/**
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export declare const PersonalStoragePackStatusEnum: {
|
|
88
|
+
readonly Active: "active";
|
|
89
|
+
readonly Expired: "expired";
|
|
90
|
+
readonly Cancelled: "cancelled";
|
|
91
|
+
};
|
|
92
|
+
export type PersonalStoragePackStatusEnum = typeof PersonalStoragePackStatusEnum[keyof typeof PersonalStoragePackStatusEnum];
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the PersonalStoragePack interface.
|
|
95
|
+
*/
|
|
96
|
+
export declare function instanceOfPersonalStoragePack(value: object): value is PersonalStoragePack;
|
|
97
|
+
export declare function PersonalStoragePackFromJSON(json: any): PersonalStoragePack;
|
|
98
|
+
export declare function PersonalStoragePackFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonalStoragePack;
|
|
99
|
+
export declare function PersonalStoragePackToJSON(json: any): PersonalStoragePack;
|
|
100
|
+
export declare function PersonalStoragePackToJSONTyped(value?: PersonalStoragePack | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Widgetic API Gateway
|
|
5
|
+
* API documentation for the Widgetic API Gateway
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PersonalStoragePackBillingIntervalEnum = {
|
|
18
|
+
Month: 'month',
|
|
19
|
+
Year: 'year'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export const PersonalStoragePackStatusEnum = {
|
|
25
|
+
Active: 'active',
|
|
26
|
+
Expired: 'expired',
|
|
27
|
+
Cancelled: 'cancelled'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the PersonalStoragePack interface.
|
|
31
|
+
*/
|
|
32
|
+
export function instanceOfPersonalStoragePack(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('packSizeGb' in value) || value['packSizeGb'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('pricePaid' in value) || value['pricePaid'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('purchasedBy' in value) || value['purchasedBy'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
export function PersonalStoragePackFromJSON(json) {
|
|
48
|
+
return PersonalStoragePackFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function PersonalStoragePackFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'userId': json['userId'],
|
|
57
|
+
'packSizeGb': json['packSizeGb'],
|
|
58
|
+
'pricePaid': json['pricePaid'],
|
|
59
|
+
'billingInterval': json['billingInterval'] == null ? undefined : json['billingInterval'],
|
|
60
|
+
'purchasedBy': json['purchasedBy'],
|
|
61
|
+
'purchasedAt': json['purchasedAt'] == null ? undefined : (new Date(json['purchasedAt'])),
|
|
62
|
+
'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
|
|
63
|
+
'status': json['status'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function PersonalStoragePackToJSON(json) {
|
|
67
|
+
return PersonalStoragePackToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
export function PersonalStoragePackToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'userId': value['userId'],
|
|
76
|
+
'packSizeGb': value['packSizeGb'],
|
|
77
|
+
'pricePaid': value['pricePaid'],
|
|
78
|
+
'billingInterval': value['billingInterval'],
|
|
79
|
+
'purchasedBy': value['purchasedBy'],
|
|
80
|
+
'purchasedAt': value['purchasedAt'] == null ? undefined : (value['purchasedAt'].toISOString()),
|
|
81
|
+
'expiresAt': value['expiresAt'] == null ? undefined : (value['expiresAt'].toISOString()),
|
|
82
|
+
'status': value['status'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -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 { PostPublicCompositionEmbedStatus200ResponseData } from './PostPublicCompositionEmbedStatus200ResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostPublicCompositionEmbedStatus200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface PostPublicCompositionEmbedStatus200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof PostPublicCompositionEmbedStatus200Response
|
|
23
|
+
*/
|
|
24
|
+
success?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {PostPublicCompositionEmbedStatus200ResponseData}
|
|
28
|
+
* @memberof PostPublicCompositionEmbedStatus200Response
|
|
29
|
+
*/
|
|
30
|
+
data?: PostPublicCompositionEmbedStatus200ResponseData;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PostPublicCompositionEmbedStatus200Response interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPostPublicCompositionEmbedStatus200Response(value: object): value is PostPublicCompositionEmbedStatus200Response;
|
|
36
|
+
export declare function PostPublicCompositionEmbedStatus200ResponseFromJSON(json: any): PostPublicCompositionEmbedStatus200Response;
|
|
37
|
+
export declare function PostPublicCompositionEmbedStatus200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPublicCompositionEmbedStatus200Response;
|
|
38
|
+
export declare function PostPublicCompositionEmbedStatus200ResponseToJSON(json: any): PostPublicCompositionEmbedStatus200Response;
|
|
39
|
+
export declare function PostPublicCompositionEmbedStatus200ResponseToJSONTyped(value?: PostPublicCompositionEmbedStatus200Response | null, ignoreDiscriminator?: boolean): any;
|