@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,47 @@
|
|
|
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
|
+
* Check if a given object implements the PartnerInvoiceScheduleOverdue interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPartnerInvoiceScheduleOverdue(value) {
|
|
18
|
+
if (!('invoices' in value) || value['invoices'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('since' in value) || value['since'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PartnerInvoiceScheduleOverdueFromJSON(json) {
|
|
25
|
+
return PartnerInvoiceScheduleOverdueFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PartnerInvoiceScheduleOverdueFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'invoices': json['invoices'],
|
|
33
|
+
'since': (json['since'] == null ? null : new Date(json['since'])),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PartnerInvoiceScheduleOverdueToJSON(json) {
|
|
37
|
+
return PartnerInvoiceScheduleOverdueToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PartnerInvoiceScheduleOverdueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'invoices': value['invoices'],
|
|
45
|
+
'since': (value['since'] == null ? null : value['since'].toISOString()),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 contract period the daily run took, and where its invoice stands.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PartnerInvoiceSchedulePeriod
|
|
16
|
+
*/
|
|
17
|
+
export interface PartnerInvoiceSchedulePeriod {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
22
|
+
*/
|
|
23
|
+
periodStart: Date;
|
|
24
|
+
/**
|
|
25
|
+
* The day after the last day of the period, when its credits expire
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
28
|
+
*/
|
|
29
|
+
periodEnd: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
34
|
+
*/
|
|
35
|
+
credits: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
40
|
+
*/
|
|
41
|
+
creditPriceUsd: number;
|
|
42
|
+
/**
|
|
43
|
+
* Before tax
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
46
|
+
*/
|
|
47
|
+
amountUsd: number;
|
|
48
|
+
/**
|
|
49
|
+
* `claimed`: a run took the period and its invoice is not out yet (the next run finishes it). `issued`: the invoice is out. `abandoned`: the period ended before its invoice went out, and nothing issues it any more.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
52
|
+
*/
|
|
53
|
+
status: PartnerInvoiceSchedulePeriodStatusEnum;
|
|
54
|
+
/**
|
|
55
|
+
* How many times a run took the period. More than one means an earlier run stopped before the invoice went out.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
58
|
+
*/
|
|
59
|
+
attempts: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
64
|
+
*/
|
|
65
|
+
stripeInvoiceId: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
70
|
+
*/
|
|
71
|
+
issuedAt: Date | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
76
|
+
*/
|
|
77
|
+
abandonedAt: Date | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof PartnerInvoiceSchedulePeriod
|
|
82
|
+
*/
|
|
83
|
+
abandonedReason: string | null;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const PartnerInvoiceSchedulePeriodStatusEnum: {
|
|
89
|
+
readonly Claimed: "claimed";
|
|
90
|
+
readonly Issued: "issued";
|
|
91
|
+
readonly Abandoned: "abandoned";
|
|
92
|
+
};
|
|
93
|
+
export type PartnerInvoiceSchedulePeriodStatusEnum = typeof PartnerInvoiceSchedulePeriodStatusEnum[keyof typeof PartnerInvoiceSchedulePeriodStatusEnum];
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the PartnerInvoiceSchedulePeriod interface.
|
|
96
|
+
*/
|
|
97
|
+
export declare function instanceOfPartnerInvoiceSchedulePeriod(value: object): value is PartnerInvoiceSchedulePeriod;
|
|
98
|
+
export declare function PartnerInvoiceSchedulePeriodFromJSON(json: any): PartnerInvoiceSchedulePeriod;
|
|
99
|
+
export declare function PartnerInvoiceSchedulePeriodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerInvoiceSchedulePeriod;
|
|
100
|
+
export declare function PartnerInvoiceSchedulePeriodToJSON(json: any): PartnerInvoiceSchedulePeriod;
|
|
101
|
+
export declare function PartnerInvoiceSchedulePeriodToJSONTyped(value?: PartnerInvoiceSchedulePeriod | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
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 PartnerInvoiceSchedulePeriodStatusEnum = {
|
|
18
|
+
Claimed: 'claimed',
|
|
19
|
+
Issued: 'issued',
|
|
20
|
+
Abandoned: 'abandoned'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PartnerInvoiceSchedulePeriod interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPartnerInvoiceSchedulePeriod(value) {
|
|
26
|
+
if (!('periodStart' in value) || value['periodStart'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('periodEnd' in value) || value['periodEnd'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('credits' in value) || value['credits'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('creditPriceUsd' in value) || value['creditPriceUsd'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('amountUsd' in value) || value['amountUsd'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('attempts' in value) || value['attempts'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('stripeInvoiceId' in value) || value['stripeInvoiceId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('issuedAt' in value) || value['issuedAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('abandonedAt' in value) || value['abandonedAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('abandonedReason' in value) || value['abandonedReason'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
export function PartnerInvoiceSchedulePeriodFromJSON(json) {
|
|
51
|
+
return PartnerInvoiceSchedulePeriodFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function PartnerInvoiceSchedulePeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'periodStart': (new Date(json['periodStart'])),
|
|
59
|
+
'periodEnd': (new Date(json['periodEnd'])),
|
|
60
|
+
'credits': json['credits'],
|
|
61
|
+
'creditPriceUsd': json['creditPriceUsd'],
|
|
62
|
+
'amountUsd': json['amountUsd'],
|
|
63
|
+
'status': json['status'],
|
|
64
|
+
'attempts': json['attempts'],
|
|
65
|
+
'stripeInvoiceId': json['stripeInvoiceId'],
|
|
66
|
+
'issuedAt': (json['issuedAt'] == null ? null : new Date(json['issuedAt'])),
|
|
67
|
+
'abandonedAt': (json['abandonedAt'] == null ? null : new Date(json['abandonedAt'])),
|
|
68
|
+
'abandonedReason': json['abandonedReason'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export function PartnerInvoiceSchedulePeriodToJSON(json) {
|
|
72
|
+
return PartnerInvoiceSchedulePeriodToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
export function PartnerInvoiceSchedulePeriodToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
|
+
if (value == null) {
|
|
76
|
+
return value;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'periodStart': ((value['periodStart']).toISOString().substring(0, 10)),
|
|
80
|
+
'periodEnd': ((value['periodEnd']).toISOString().substring(0, 10)),
|
|
81
|
+
'credits': value['credits'],
|
|
82
|
+
'creditPriceUsd': value['creditPriceUsd'],
|
|
83
|
+
'amountUsd': value['amountUsd'],
|
|
84
|
+
'status': value['status'],
|
|
85
|
+
'attempts': value['attempts'],
|
|
86
|
+
'stripeInvoiceId': value['stripeInvoiceId'],
|
|
87
|
+
'issuedAt': (value['issuedAt'] == null ? null : value['issuedAt'].toISOString()),
|
|
88
|
+
'abandonedAt': (value['abandonedAt'] == null ? null : value['abandonedAt'].toISOString()),
|
|
89
|
+
'abandonedReason': value['abandonedReason'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -47,7 +47,7 @@ export interface PartnerNotification {
|
|
|
47
47
|
*/
|
|
48
48
|
tone: PartnerNotificationToneEnum;
|
|
49
49
|
/**
|
|
50
|
-
* The facts of the event, named in camelCase. An invoice event carries `invoiceNumber`, `subtotal`, `taxAmount`, `total`, `currency`, `dueDate
|
|
50
|
+
* The facts of the event, named in camelCase. An invoice event carries `invoiceNumber`, `subtotal`, `taxAmount`, `total`, `currency`, `dueDate`, `hostedInvoiceUrl` (the page where it is paid) and `purpose` (`contract`, or `extra_credits` for credits you bought on top of the contract: an unpaid invoice for extra credits never stops the account, the credits are just not added until it is paid); a payment adds `paidAt`, a failed payment `reason`, a reminder `daysUntilDue` or `daysOverdue`. A credits event carries `band` (`low` or `empty`), `balance` and `threshold`. `credits.managed_user_cap_reached` (one of your managed users used its monthly credits and a request was refused) goes to your webhook only when subscribed, once per managed user each month, and carries `managedUserId`, `externalId`, `monthlyCredits`, `creditsUsed`, `resetsAt` and `reachedAt`. A standing event carries `status`, `previousStatus` and `reason`; `partner.paused` with `status: payment_arrears` means that an overdue invoice stopped the account (nobody paused it, and `reason` names the invoice), and `partner.resumed` with `previousStatus: payment_arrears` means that its payment ended that. A storage event carries `reason` and `checkedAt`. Content events (`composition.created`, `composition.updated`, `widget.published`, `upload.created`, `entry.created`) go to your webhook only when subscribed; they do not appear in the dashboard list. `composition.created` carries `compositionId`, `widgetId`, `name`, `managedUserId`, `externalId` and `createdAt`; `composition.updated` carries `compositionId`, `widgetId`, `name`, `managedUserId`, `externalId`, `contentVersion` and `savedAt`, and is sent for the first save of a composition in each five minutes (read the composition for its current state); `widget.published` carries `widgetId`, `name`, `managedUserId`, `externalId`, `version` and `publishedAt`; `upload.created` carries `uploadId`, `name`, `mimeType`, `sizeBytes`, `address`, `managedUserId`, `externalId`, `purpose` and `createdAt`; `entry.created` carries `compositionId`, `table`, `entryId`, `createdAt` and `context` (the host attribution of the embedding page, or null), and none of the values the visitor entered: read those with the entries routes. Ignore an event type you do not know: more may be added. `sendPartnerNotificationTestEvent` sends a sample of every one of them.
|
|
51
51
|
* @type {{ [key: string]: any; }}
|
|
52
52
|
* @memberof PartnerNotification
|
|
53
53
|
*/
|
|
@@ -20,11 +20,13 @@ export declare const PartnerNotificationEventType: {
|
|
|
20
20
|
readonly InvoicePaid: "invoice.paid";
|
|
21
21
|
readonly InvoiceFailed: "invoice.failed";
|
|
22
22
|
readonly CreditsLow: "credits.low";
|
|
23
|
+
readonly CreditsManagedUserCapReached: "credits.managed_user_cap_reached";
|
|
23
24
|
readonly PartnerActivated: "partner.activated";
|
|
24
25
|
readonly PartnerPaused: "partner.paused";
|
|
25
26
|
readonly PartnerResumed: "partner.resumed";
|
|
26
27
|
readonly StorageCheckFailed: "storage.check_failed";
|
|
27
28
|
readonly CompositionCreated: "composition.created";
|
|
29
|
+
readonly CompositionUpdated: "composition.updated";
|
|
28
30
|
readonly WidgetPublished: "widget.published";
|
|
29
31
|
readonly UploadCreated: "upload.created";
|
|
30
32
|
readonly EntryCreated: "entry.created";
|
|
@@ -22,11 +22,13 @@ export const PartnerNotificationEventType = {
|
|
|
22
22
|
InvoicePaid: 'invoice.paid',
|
|
23
23
|
InvoiceFailed: 'invoice.failed',
|
|
24
24
|
CreditsLow: 'credits.low',
|
|
25
|
+
CreditsManagedUserCapReached: 'credits.managed_user_cap_reached',
|
|
25
26
|
PartnerActivated: 'partner.activated',
|
|
26
27
|
PartnerPaused: 'partner.paused',
|
|
27
28
|
PartnerResumed: 'partner.resumed',
|
|
28
29
|
StorageCheckFailed: 'storage.check_failed',
|
|
29
30
|
CompositionCreated: 'composition.created',
|
|
31
|
+
CompositionUpdated: 'composition.updated',
|
|
30
32
|
WidgetPublished: 'widget.published',
|
|
31
33
|
UploadCreated: 'upload.created',
|
|
32
34
|
EntryCreated: 'entry.created'
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { PartnerNotificationEventType } from './PartnerNotificationEventType';
|
|
13
|
+
/**
|
|
14
|
+
* Which kind of event to send a sample of.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PartnerNotificationTestEventRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface PartnerNotificationTestEventRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {PartnerNotificationEventType}
|
|
22
|
+
* @memberof PartnerNotificationTestEventRequest
|
|
23
|
+
*/
|
|
24
|
+
eventType: PartnerNotificationEventType;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PartnerNotificationTestEventRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPartnerNotificationTestEventRequest(value: object): value is PartnerNotificationTestEventRequest;
|
|
30
|
+
export declare function PartnerNotificationTestEventRequestFromJSON(json: any): PartnerNotificationTestEventRequest;
|
|
31
|
+
export declare function PartnerNotificationTestEventRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerNotificationTestEventRequest;
|
|
32
|
+
export declare function PartnerNotificationTestEventRequestToJSON(json: any): PartnerNotificationTestEventRequest;
|
|
33
|
+
export declare function PartnerNotificationTestEventRequestToJSONTyped(value?: PartnerNotificationTestEventRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { PartnerNotificationEventTypeFromJSON, PartnerNotificationEventTypeToJSON, } from './PartnerNotificationEventType.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PartnerNotificationTestEventRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPartnerNotificationTestEventRequest(value) {
|
|
19
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function PartnerNotificationTestEventRequestFromJSON(json) {
|
|
24
|
+
return PartnerNotificationTestEventRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PartnerNotificationTestEventRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'eventType': PartnerNotificationEventTypeFromJSON(json['eventType']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function PartnerNotificationTestEventRequestToJSON(json) {
|
|
35
|
+
return PartnerNotificationTestEventRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PartnerNotificationTestEventRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'eventType': PartnerNotificationEventTypeToJSON(value['eventType']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* How a test call went. The call was made whether or not your receiver took it: read `delivered`.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PartnerNotificationTestEventResult
|
|
16
|
+
*/
|
|
17
|
+
export interface PartnerNotificationTestEventResult {
|
|
18
|
+
/**
|
|
19
|
+
* True when your receiver answered with a 2xx status.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PartnerNotificationTestEventResult
|
|
22
|
+
*/
|
|
23
|
+
delivered: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The HTTP status your receiver answered with. Null when it did not answer (refused, unreachable or too slow).
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PartnerNotificationTestEventResult
|
|
28
|
+
*/
|
|
29
|
+
statusCode: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* How long the call took, in milliseconds. A call is given up after ten seconds.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PartnerNotificationTestEventResult
|
|
34
|
+
*/
|
|
35
|
+
durationMs: number;
|
|
36
|
+
/**
|
|
37
|
+
* Why the call did not arrive, in a few words (`timeout`, `status 500`, `unreachable`, a redirect). Never what your receiver replied. Left out when it arrived.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PartnerNotificationTestEventResult
|
|
40
|
+
*/
|
|
41
|
+
error?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PartnerNotificationTestEventResult interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPartnerNotificationTestEventResult(value: object): value is PartnerNotificationTestEventResult;
|
|
47
|
+
export declare function PartnerNotificationTestEventResultFromJSON(json: any): PartnerNotificationTestEventResult;
|
|
48
|
+
export declare function PartnerNotificationTestEventResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerNotificationTestEventResult;
|
|
49
|
+
export declare function PartnerNotificationTestEventResultToJSON(json: any): PartnerNotificationTestEventResult;
|
|
50
|
+
export declare function PartnerNotificationTestEventResultToJSONTyped(value?: PartnerNotificationTestEventResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Check if a given object implements the PartnerNotificationTestEventResult interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPartnerNotificationTestEventResult(value) {
|
|
18
|
+
if (!('delivered' in value) || value['delivered'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('durationMs' in value) || value['durationMs'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function PartnerNotificationTestEventResultFromJSON(json) {
|
|
27
|
+
return PartnerNotificationTestEventResultFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function PartnerNotificationTestEventResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'delivered': json['delivered'],
|
|
35
|
+
'statusCode': json['statusCode'],
|
|
36
|
+
'durationMs': json['durationMs'],
|
|
37
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function PartnerNotificationTestEventResultToJSON(json) {
|
|
41
|
+
return PartnerNotificationTestEventResultToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function PartnerNotificationTestEventResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'delivered': value['delivered'],
|
|
49
|
+
'statusCode': value['statusCode'],
|
|
50
|
+
'durationMs': value['durationMs'],
|
|
51
|
+
'error': value['error'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { PartnerCreditAdjustment } from './PartnerCreditAdjustment';
|
|
13
12
|
/**
|
|
14
|
-
* The partner as it is after the edit
|
|
13
|
+
* The partner as it is after the edit
|
|
15
14
|
* @export
|
|
16
15
|
* @interface PartnerUpdateResult
|
|
17
16
|
*/
|
|
@@ -90,6 +89,13 @@ export interface PartnerUpdateResult {
|
|
|
90
89
|
* @memberof PartnerUpdateResult
|
|
91
90
|
*/
|
|
92
91
|
allowedDomains?: Array<string> | null;
|
|
92
|
+
/**
|
|
93
|
+
* The website where the partner integrates Widgetic, as the bare name (`acme.com`); null when none has been set. The partner's widgets can always be shown on it and on every subdomain of it, and send entries from there, whatever `allowedDomains` says. It is not part of `allowedDomains`. Set it with `platformDomain` on `POST /admin/partners` and `PUT /admin/partners/{partnerId}`; the partner reads it in `GET /partners/mine` and cannot change it.
|
|
94
|
+
*
|
|
95
|
+
* @type {string}
|
|
96
|
+
* @memberof PartnerUpdateResult
|
|
97
|
+
*/
|
|
98
|
+
platformDomain?: string | null;
|
|
93
99
|
/**
|
|
94
100
|
*
|
|
95
101
|
* @type {Array<string>}
|
|
@@ -124,20 +130,6 @@ export interface PartnerUpdateResult {
|
|
|
124
130
|
* @memberof PartnerUpdateResult
|
|
125
131
|
*/
|
|
126
132
|
updatedAt?: Date | null;
|
|
127
|
-
/**
|
|
128
|
-
* Present when the request asked for a balance and the wallet had to move to reach it
|
|
129
|
-
* @type {PartnerCreditAdjustment}
|
|
130
|
-
* @memberof PartnerUpdateResult
|
|
131
|
-
*/
|
|
132
|
-
creditAdjustment?: PartnerCreditAdjustment;
|
|
133
|
-
/**
|
|
134
|
-
* The auto-reload settings as saved; present when the request set them
|
|
135
|
-
* @type {{ [key: string]: any; }}
|
|
136
|
-
* @memberof PartnerUpdateResult
|
|
137
|
-
*/
|
|
138
|
-
autoReload?: {
|
|
139
|
-
[key: string]: any;
|
|
140
|
-
};
|
|
141
133
|
}
|
|
142
134
|
/**
|
|
143
135
|
* @export
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { PartnerCreditAdjustmentFromJSON, PartnerCreditAdjustmentToJSON, } from './PartnerCreditAdjustment.js';
|
|
15
14
|
/**
|
|
16
15
|
* @export
|
|
17
16
|
*/
|
|
@@ -54,13 +53,12 @@ export function PartnerUpdateResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
53
|
'monthlyMinimumSpend': json['monthlyMinimumSpend'] == null ? undefined : json['monthlyMinimumSpend'],
|
|
55
54
|
'webhookUrl': json['webhookUrl'] == null ? undefined : json['webhookUrl'],
|
|
56
55
|
'allowedDomains': json['allowedDomains'] == null ? undefined : json['allowedDomains'],
|
|
56
|
+
'platformDomain': json['platformDomain'] == null ? undefined : json['platformDomain'],
|
|
57
57
|
'featuresEnabled': json['featuresEnabled'] == null ? undefined : json['featuresEnabled'],
|
|
58
58
|
'billingSettings': json['billingSettings'] == null ? undefined : json['billingSettings'],
|
|
59
59
|
'whiteLabelConfig': json['whiteLabelConfig'] == null ? undefined : json['whiteLabelConfig'],
|
|
60
60
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
61
61
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
62
|
-
'creditAdjustment': json['creditAdjustment'] == null ? undefined : PartnerCreditAdjustmentFromJSON(json['creditAdjustment']),
|
|
63
|
-
'autoReload': json['autoReload'] == null ? undefined : json['autoReload'],
|
|
64
62
|
};
|
|
65
63
|
}
|
|
66
64
|
export function PartnerUpdateResultToJSON(json) {
|
|
@@ -83,12 +81,11 @@ export function PartnerUpdateResultToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
83
81
|
'monthlyMinimumSpend': value['monthlyMinimumSpend'],
|
|
84
82
|
'webhookUrl': value['webhookUrl'],
|
|
85
83
|
'allowedDomains': value['allowedDomains'],
|
|
84
|
+
'platformDomain': value['platformDomain'],
|
|
86
85
|
'featuresEnabled': value['featuresEnabled'],
|
|
87
86
|
'billingSettings': value['billingSettings'],
|
|
88
87
|
'whiteLabelConfig': value['whiteLabelConfig'],
|
|
89
88
|
'createdAt': value['createdAt'] == null ? undefined : (value['createdAt'].toISOString()),
|
|
90
89
|
'updatedAt': value['updatedAt'] == null ? undefined : (value['updatedAt'].toISOString()),
|
|
91
|
-
'creditAdjustment': PartnerCreditAdjustmentToJSON(value['creditAdjustment']),
|
|
92
|
-
'autoReload': value['autoReload'],
|
|
93
90
|
};
|
|
94
91
|
}
|
|
@@ -90,6 +90,13 @@ export interface PartnerWithWarnings {
|
|
|
90
90
|
* @memberof PartnerWithWarnings
|
|
91
91
|
*/
|
|
92
92
|
allowedDomains?: Array<string> | null;
|
|
93
|
+
/**
|
|
94
|
+
* The website where the partner integrates Widgetic, as the bare name (`acme.com`); null when none has been set. The partner's widgets can always be shown on it and on every subdomain of it, and send entries from there, whatever `allowedDomains` says. It is not part of `allowedDomains`. Set it with `platformDomain` on `POST /admin/partners` and `PUT /admin/partners/{partnerId}`; the partner reads it in `GET /partners/mine` and cannot change it.
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof PartnerWithWarnings
|
|
98
|
+
*/
|
|
99
|
+
platformDomain?: string | null;
|
|
93
100
|
/**
|
|
94
101
|
*
|
|
95
102
|
* @type {Array<string>}
|
|
@@ -53,6 +53,7 @@ export function PartnerWithWarningsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'monthlyMinimumSpend': json['monthlyMinimumSpend'] == null ? undefined : json['monthlyMinimumSpend'],
|
|
54
54
|
'webhookUrl': json['webhookUrl'] == null ? undefined : json['webhookUrl'],
|
|
55
55
|
'allowedDomains': json['allowedDomains'] == null ? undefined : json['allowedDomains'],
|
|
56
|
+
'platformDomain': json['platformDomain'] == null ? undefined : json['platformDomain'],
|
|
56
57
|
'featuresEnabled': json['featuresEnabled'] == null ? undefined : json['featuresEnabled'],
|
|
57
58
|
'billingSettings': json['billingSettings'] == null ? undefined : json['billingSettings'],
|
|
58
59
|
'whiteLabelConfig': json['whiteLabelConfig'] == null ? undefined : json['whiteLabelConfig'],
|
|
@@ -81,6 +82,7 @@ export function PartnerWithWarningsToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
81
82
|
'monthlyMinimumSpend': value['monthlyMinimumSpend'],
|
|
82
83
|
'webhookUrl': value['webhookUrl'],
|
|
83
84
|
'allowedDomains': value['allowedDomains'],
|
|
85
|
+
'platformDomain': value['platformDomain'],
|
|
84
86
|
'featuresEnabled': value['featuresEnabled'],
|
|
85
87
|
'billingSettings': value['billingSettings'],
|
|
86
88
|
'whiteLabelConfig': value['whiteLabelConfig'],
|