@widgetic/api-sdk 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/AdminApi.d.ts +3 -2
- package/dist/apis/AdminApi.js +3 -2
- package/dist/apis/BillingApi.d.ts +3 -3
- package/dist/apis/BillingApi.js +1 -1
- package/dist/apis/CompositionsApi.d.ts +190 -87
- package/dist/apis/CompositionsApi.js +378 -87
- package/dist/apis/CreditsApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.d.ts +6 -6
- package/dist/apis/InvoicesApi.js +2 -2
- package/dist/apis/ManagedUsersApi.d.ts +104 -27
- package/dist/apis/ManagedUsersApi.js +247 -12
- package/dist/apis/OperationsApi.d.ts +3 -3
- package/dist/apis/PartnerApi.d.ts +1291 -0
- package/dist/apis/PartnerApi.js +3550 -0
- package/dist/apis/PartnersApi.d.ts +140 -43
- package/dist/apis/PartnersApi.js +286 -0
- package/dist/apis/PublicEmbedApi.d.ts +72 -0
- package/dist/apis/PublicEmbedApi.js +168 -0
- package/dist/apis/UploadsApi.d.ts +29 -16
- package/dist/apis/UploadsApi.js +40 -3
- package/dist/apis/UsersApi.d.ts +27 -27
- package/dist/apis/WidgetsApi.d.ts +33 -18
- package/dist/apis/WidgetsApi.js +84 -39
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AdminApi.d.ts +3 -2
- package/dist/esm/apis/AdminApi.js +3 -2
- package/dist/esm/apis/BillingApi.d.ts +3 -3
- package/dist/esm/apis/BillingApi.js +2 -2
- package/dist/esm/apis/CompositionsApi.d.ts +190 -87
- package/dist/esm/apis/CompositionsApi.js +378 -87
- package/dist/esm/apis/CreditsApi.d.ts +6 -6
- package/dist/esm/apis/InvoicesApi.d.ts +6 -6
- package/dist/esm/apis/InvoicesApi.js +1 -1
- package/dist/esm/apis/ManagedUsersApi.d.ts +104 -27
- package/dist/esm/apis/ManagedUsersApi.js +248 -13
- package/dist/esm/apis/OperationsApi.d.ts +3 -3
- package/dist/esm/apis/PartnerApi.d.ts +1291 -0
- package/dist/esm/apis/PartnerApi.js +3546 -0
- package/dist/esm/apis/PartnersApi.d.ts +140 -43
- package/dist/esm/apis/PartnersApi.js +287 -1
- package/dist/esm/apis/PublicEmbedApi.d.ts +72 -0
- package/dist/esm/apis/PublicEmbedApi.js +164 -0
- package/dist/esm/apis/UploadsApi.d.ts +29 -16
- package/dist/esm/apis/UploadsApi.js +40 -3
- package/dist/esm/apis/UsersApi.d.ts +27 -27
- package/dist/esm/apis/WidgetsApi.d.ts +33 -18
- package/dist/esm/apis/WidgetsApi.js +85 -40
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/Composition.d.ts +18 -0
- package/dist/esm/models/Composition.js +4 -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 +69 -0
- package/dist/esm/models/CompositionEntryAggregateTally.js +51 -0
- package/dist/esm/models/CompositionEntryAggregatesBlock.d.ts +55 -0
- package/dist/esm/models/CompositionEntryAggregatesBlock.js +50 -0
- package/dist/esm/models/CompositionEntryDeleteSuccess.d.ts +39 -0
- package/dist/esm/models/CompositionEntryDeleteSuccess.js +48 -0
- package/dist/esm/models/CompositionEntryDeleteSuccessData.d.ts +32 -0
- package/dist/esm/models/CompositionEntryDeleteSuccessData.js +43 -0
- package/dist/esm/models/CompositionEntryItem.d.ts +63 -0
- package/dist/esm/models/CompositionEntryItem.js +57 -0
- package/dist/esm/models/CompositionEntryItemsMeta.d.ts +59 -0
- package/dist/esm/models/CompositionEntryItemsMeta.js +55 -0
- package/dist/esm/models/CompositionEntryItemsPageSuccess.d.ts +46 -0
- package/dist/esm/models/CompositionEntryItemsPageSuccess.js +53 -0
- package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
- package/dist/esm/models/CreateCanvasRequest.js +2 -0
- package/dist/esm/models/CreateCompositionContentItemRequest.d.ts +33 -0
- package/dist/esm/models/CreateCompositionContentItemRequest.js +37 -0
- package/dist/esm/models/CreateCompositionFromPresetRequest.d.ts +56 -0
- package/dist/esm/models/CreateCompositionFromPresetRequest.js +51 -0
- package/dist/esm/models/CreateCompositionFromWidget201Response.d.ts +39 -0
- package/dist/esm/models/{CreateComposition201Response.js → CreateCompositionFromWidget201Response.js} +8 -8
- package/dist/esm/models/CreateCompositionFromWidgetRequest.d.ts +62 -0
- package/dist/esm/models/CreateCompositionFromWidgetRequest.js +53 -0
- package/dist/esm/models/DeleteCompositionContentItem200Response.d.ts +38 -0
- package/dist/esm/models/DeleteCompositionContentItem200Response.js +43 -0
- package/dist/esm/models/DeleteCompositionDataSource200Response.d.ts +32 -0
- package/dist/esm/models/DeleteCompositionDataSource200Response.js +43 -0
- package/dist/esm/models/ExportCompositionEntryItems200Response.d.ts +46 -0
- package/dist/esm/models/ExportCompositionEntryItems200Response.js +53 -0
- package/dist/esm/models/ExportCompositionEntryItems200ResponseMeta.d.ts +38 -0
- package/dist/esm/models/ExportCompositionEntryItems200ResponseMeta.js +47 -0
- package/dist/esm/models/GetCompositionContentSchema200Response.d.ts +2 -2
- package/dist/esm/models/GetManagedUserLimits200Response.d.ts +39 -0
- package/dist/esm/models/GetManagedUserLimits200Response.js +44 -0
- package/dist/esm/models/GetManagedUserLimits200ResponseData.d.ts +50 -0
- package/dist/esm/models/GetManagedUserLimits200ResponseData.js +55 -0
- package/dist/esm/models/GetManagedUserStorageUsage200Response.d.ts +39 -0
- package/dist/esm/models/GetManagedUserStorageUsage200Response.js +44 -0
- package/dist/esm/models/GetManagedUserStorageUsage200ResponseData.d.ts +45 -0
- package/dist/esm/models/GetManagedUserStorageUsage200ResponseData.js +52 -0
- package/dist/esm/models/GetManagedUserStorageUsage200ResponseDataByPurpose.d.ts +51 -0
- package/dist/esm/models/GetManagedUserStorageUsage200ResponseDataByPurpose.js +48 -0
- package/dist/esm/models/GetPartnerDesignDefaults200Response.d.ts +39 -0
- package/dist/esm/models/GetPartnerDesignDefaults200Response.js +44 -0
- package/dist/esm/models/GetPartnerDesignDefaults200ResponseData.d.ts +32 -0
- package/dist/esm/models/GetPartnerDesignDefaults200ResponseData.js +41 -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/ManagedUserEntriesMeta.d.ts +56 -0
- package/dist/esm/models/ManagedUserEntriesMeta.js +57 -0
- package/dist/esm/models/ManagedUserEntriesPageSuccess.d.ts +46 -0
- package/dist/esm/models/ManagedUserEntriesPageSuccess.js +53 -0
- package/dist/esm/models/ManagedUserEntryItem.d.ts +75 -0
- package/dist/esm/models/ManagedUserEntryItem.js +65 -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/PartnerNotification.d.ts +1 -1
- package/dist/esm/models/PartnerNotificationDelivery.d.ts +6 -0
- package/dist/esm/models/PartnerNotificationDelivery.js +4 -0
- package/dist/esm/models/PartnerNotificationEvent.d.ts +15 -0
- package/dist/esm/models/PartnerNotificationEvent.js +13 -1
- package/dist/esm/models/PartnerNotificationEventType.d.ts +4 -0
- package/dist/esm/models/PartnerNotificationEventType.js +5 -1
- 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/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/PublicCompositionEntryCreated.d.ts +39 -0
- package/dist/esm/models/PublicCompositionEntryCreated.js +48 -0
- package/dist/esm/models/PublicCompositionEntryCreatedData.d.ts +44 -0
- package/dist/esm/models/PublicCompositionEntryCreatedData.js +51 -0
- package/dist/esm/models/PublicCompositionEntryRequest.d.ts +40 -0
- package/dist/esm/models/PublicCompositionEntryRequest.js +45 -0
- package/dist/esm/models/PurposeStorageBucket.d.ts +38 -0
- package/dist/esm/models/PurposeStorageBucket.js +47 -0
- package/dist/esm/models/SetCompositionDataSourceRequest.d.ts +38 -0
- package/dist/esm/models/SetCompositionDataSourceRequest.js +47 -0
- package/dist/esm/models/SetDynamicContent200Response.d.ts +6 -0
- package/dist/esm/models/SetDynamicContent200Response.js +2 -0
- package/dist/esm/models/SetManagedUserLimitsRequest.d.ts +32 -0
- package/dist/esm/models/SetManagedUserLimitsRequest.js +43 -0
- package/dist/esm/models/SetPartnerDesignDefaultsRequest.d.ts +32 -0
- package/dist/esm/models/SetPartnerDesignDefaultsRequest.js +43 -0
- package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
- package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
- package/dist/esm/models/Upload.d.ts +15 -0
- package/dist/esm/models/Upload.js +10 -0
- package/dist/esm/models/UploadsIdDelete200Response.d.ts +39 -0
- package/dist/esm/models/UploadsIdDelete200Response.js +44 -0
- package/dist/esm/models/UploadsIdDelete200ResponseData.d.ts +32 -0
- package/dist/esm/models/UploadsIdDelete200ResponseData.js +41 -0
- package/dist/esm/models/index.d.ts +51 -3
- package/dist/esm/models/index.js +51 -3
- package/dist/models/Composition.d.ts +18 -0
- package/dist/models/Composition.js +4 -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 +69 -0
- package/dist/models/CompositionEntryAggregateTally.js +58 -0
- package/dist/models/CompositionEntryAggregatesBlock.d.ts +55 -0
- package/dist/models/CompositionEntryAggregatesBlock.js +57 -0
- package/dist/models/CompositionEntryDeleteSuccess.d.ts +39 -0
- package/dist/models/CompositionEntryDeleteSuccess.js +55 -0
- package/dist/models/CompositionEntryDeleteSuccessData.d.ts +32 -0
- package/dist/models/CompositionEntryDeleteSuccessData.js +50 -0
- package/dist/models/CompositionEntryItem.d.ts +63 -0
- package/dist/models/CompositionEntryItem.js +64 -0
- package/dist/models/CompositionEntryItemsMeta.d.ts +59 -0
- package/dist/models/CompositionEntryItemsMeta.js +63 -0
- package/dist/models/CompositionEntryItemsPageSuccess.d.ts +46 -0
- package/dist/models/CompositionEntryItemsPageSuccess.js +60 -0
- package/dist/models/CreateCanvasRequest.d.ts +6 -0
- package/dist/models/CreateCanvasRequest.js +2 -0
- package/dist/models/CreateCompositionContentItemRequest.d.ts +33 -0
- package/dist/models/CreateCompositionContentItemRequest.js +44 -0
- package/dist/models/CreateCompositionFromPresetRequest.d.ts +56 -0
- package/dist/models/CreateCompositionFromPresetRequest.js +58 -0
- package/dist/models/CreateCompositionFromWidget201Response.d.ts +39 -0
- package/dist/models/CreateCompositionFromWidget201Response.js +51 -0
- package/dist/models/CreateCompositionFromWidgetRequest.d.ts +62 -0
- package/dist/models/CreateCompositionFromWidgetRequest.js +60 -0
- package/dist/models/DeleteCompositionContentItem200Response.d.ts +38 -0
- package/dist/models/DeleteCompositionContentItem200Response.js +50 -0
- package/dist/models/DeleteCompositionDataSource200Response.d.ts +32 -0
- package/dist/models/DeleteCompositionDataSource200Response.js +50 -0
- package/dist/models/ExportCompositionEntryItems200Response.d.ts +46 -0
- package/dist/models/ExportCompositionEntryItems200Response.js +60 -0
- package/dist/models/ExportCompositionEntryItems200ResponseMeta.d.ts +38 -0
- package/dist/models/ExportCompositionEntryItems200ResponseMeta.js +54 -0
- package/dist/models/GetCompositionContentSchema200Response.d.ts +2 -2
- package/dist/models/GetManagedUserLimits200Response.d.ts +39 -0
- package/dist/models/GetManagedUserLimits200Response.js +51 -0
- package/dist/models/GetManagedUserLimits200ResponseData.d.ts +50 -0
- package/dist/models/GetManagedUserLimits200ResponseData.js +62 -0
- package/dist/models/GetManagedUserStorageUsage200Response.d.ts +39 -0
- package/dist/models/GetManagedUserStorageUsage200Response.js +51 -0
- package/dist/models/GetManagedUserStorageUsage200ResponseData.d.ts +45 -0
- package/dist/models/GetManagedUserStorageUsage200ResponseData.js +59 -0
- package/dist/models/GetManagedUserStorageUsage200ResponseDataByPurpose.d.ts +51 -0
- package/dist/models/GetManagedUserStorageUsage200ResponseDataByPurpose.js +55 -0
- package/dist/models/GetPartnerDesignDefaults200Response.d.ts +39 -0
- package/dist/models/GetPartnerDesignDefaults200Response.js +51 -0
- package/dist/models/GetPartnerDesignDefaults200ResponseData.d.ts +32 -0
- package/dist/models/GetPartnerDesignDefaults200ResponseData.js +48 -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/ManagedUserEntriesMeta.d.ts +56 -0
- package/dist/models/ManagedUserEntriesMeta.js +64 -0
- package/dist/models/ManagedUserEntriesPageSuccess.d.ts +46 -0
- package/dist/models/ManagedUserEntriesPageSuccess.js +60 -0
- package/dist/models/ManagedUserEntryItem.d.ts +75 -0
- package/dist/models/ManagedUserEntryItem.js +72 -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/PartnerNotification.d.ts +1 -1
- package/dist/models/PartnerNotificationDelivery.d.ts +6 -0
- package/dist/models/PartnerNotificationDelivery.js +4 -0
- package/dist/models/PartnerNotificationEvent.d.ts +15 -0
- package/dist/models/PartnerNotificationEvent.js +14 -2
- package/dist/models/PartnerNotificationEventType.d.ts +4 -0
- package/dist/models/PartnerNotificationEventType.js +5 -1
- 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/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/PublicCompositionEntryCreated.d.ts +39 -0
- package/dist/models/PublicCompositionEntryCreated.js +55 -0
- package/dist/models/PublicCompositionEntryCreatedData.d.ts +44 -0
- package/dist/models/PublicCompositionEntryCreatedData.js +58 -0
- package/dist/models/PublicCompositionEntryRequest.d.ts +40 -0
- package/dist/models/PublicCompositionEntryRequest.js +52 -0
- package/dist/models/PurposeStorageBucket.d.ts +38 -0
- package/dist/models/PurposeStorageBucket.js +54 -0
- package/dist/models/SetCompositionDataSourceRequest.d.ts +38 -0
- package/dist/models/SetCompositionDataSourceRequest.js +54 -0
- package/dist/models/SetDynamicContent200Response.d.ts +6 -0
- package/dist/models/SetDynamicContent200Response.js +2 -0
- package/dist/models/SetManagedUserLimitsRequest.d.ts +32 -0
- package/dist/models/SetManagedUserLimitsRequest.js +50 -0
- package/dist/models/SetPartnerDesignDefaultsRequest.d.ts +32 -0
- package/dist/models/SetPartnerDesignDefaultsRequest.js +50 -0
- package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
- package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
- package/dist/models/Upload.d.ts +15 -0
- package/dist/models/Upload.js +11 -1
- package/dist/models/UploadsIdDelete200Response.d.ts +39 -0
- package/dist/models/UploadsIdDelete200Response.js +51 -0
- package/dist/models/UploadsIdDelete200ResponseData.d.ts +32 -0
- package/dist/models/UploadsIdDelete200ResponseData.js +48 -0
- package/dist/models/index.d.ts +51 -3
- package/dist/models/index.js +51 -3
- package/package.json +1 -1
- package/dist/esm/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +0 -39
- package/dist/esm/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +0 -44
- package/dist/esm/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +0 -32
- package/dist/esm/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +0 -41
- package/dist/esm/models/CreateComposition201Response.d.ts +0 -39
- package/dist/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +0 -39
- package/dist/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +0 -51
- package/dist/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +0 -32
- package/dist/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +0 -48
- package/dist/models/CreateComposition201Response.d.ts +0 -39
- package/dist/models/CreateComposition201Response.js +0 -51
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { CheckWidgetAccess200ResponseFromJSON, CreateWidget201ResponseFromJSON, DeleteWidgetRequestToJSON, DuplicateWidget201ResponseFromJSON, DuplicateWidgetRequestToJSON, GetWidgetPublishHistory200ResponseFromJSON, GetWidgets200ResponseFromJSON, GetWidgetsBatch200ResponseFromJSON, GetWidgetsBatchRequestToJSON, NewWidgetToJSON, RenameWidgetPublishHistoryTitle200ResponseFromJSON, RenameWidgetPublishHistoryTitleRequestToJSON, SetWidgetPublishHistoryLive200ResponseFromJSON, UpdateWidgetRepository200ResponseFromJSON, UpdateWidgetRepositoryRequestToJSON, UpdateWidgetRequestToJSON, UploadWidgetThumbnail200ResponseFromJSON, UploadWidgetThumbnailRequestToJSON, } from '../models/index.js';
|
|
24
|
+
import { CheckWidgetAccess200ResponseFromJSON, CreateCompositionFromWidget201ResponseFromJSON, CreateCompositionFromWidgetRequestToJSON, CreateWidget201ResponseFromJSON, DeleteWidgetRequestToJSON, DuplicateWidget201ResponseFromJSON, DuplicateWidgetRequestToJSON, GetWidgetPublishHistory200ResponseFromJSON, GetWidgets200ResponseFromJSON, GetWidgetsBatch200ResponseFromJSON, GetWidgetsBatchRequestToJSON, NewWidgetToJSON, RenameWidgetPublishHistoryTitle200ResponseFromJSON, RenameWidgetPublishHistoryTitleRequestToJSON, SetWidgetPublishHistoryLive200ResponseFromJSON, UpdateWidgetRepository200ResponseFromJSON, UpdateWidgetRepositoryRequestToJSON, UpdateWidgetRequestToJSON, UploadWidgetThumbnail200ResponseFromJSON, UploadWidgetThumbnailRequestToJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -63,6 +63,51 @@ export class WidgetsApi extends runtime.BaseAPI {
|
|
|
63
63
|
return yield response.value();
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* After a managed user publishes a widget from the creator, call this with the widget id, the customer\'s managed user (when the widget is not already filed under one), and optional content, design, embed settings and locale. Every input is validated before a single insert; a failure never leaves a half-made composition. When the widget is already tagged with a managed user, you may omit `managed_user_id`. When you send it, it must match that tag. The widget must be published. The `Idempotency-Key` header is required.
|
|
68
|
+
* Create a composition for a widget in one call
|
|
69
|
+
*/
|
|
70
|
+
createCompositionFromWidgetRaw(requestParameters, initOverrides) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
if (requestParameters['id'] == null) {
|
|
73
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createCompositionFromWidget().');
|
|
74
|
+
}
|
|
75
|
+
if (requestParameters['createCompositionFromWidgetRequest'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('createCompositionFromWidgetRequest', 'Required parameter "createCompositionFromWidgetRequest" was null or undefined when calling createCompositionFromWidget().');
|
|
77
|
+
}
|
|
78
|
+
const queryParameters = {};
|
|
79
|
+
const headerParameters = {};
|
|
80
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
81
|
+
if (requestParameters['idempotencyKey'] != null) {
|
|
82
|
+
headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
|
|
83
|
+
}
|
|
84
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
85
|
+
const token = this.configuration.accessToken;
|
|
86
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
87
|
+
if (tokenString) {
|
|
88
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const response = yield this.request({
|
|
92
|
+
path: `/widgets/{id}/composition`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
93
|
+
method: 'POST',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
body: CreateCompositionFromWidgetRequestToJSON(requestParameters['createCompositionFromWidgetRequest']),
|
|
97
|
+
}, initOverrides);
|
|
98
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* After a managed user publishes a widget from the creator, call this with the widget id, the customer\'s managed user (when the widget is not already filed under one), and optional content, design, embed settings and locale. Every input is validated before a single insert; a failure never leaves a half-made composition. When the widget is already tagged with a managed user, you may omit `managed_user_id`. When you send it, it must match that tag. The widget must be published. The `Idempotency-Key` header is required.
|
|
103
|
+
* Create a composition for a widget in one call
|
|
104
|
+
*/
|
|
105
|
+
createCompositionFromWidget(requestParameters, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const response = yield this.createCompositionFromWidgetRaw(requestParameters, initOverrides);
|
|
108
|
+
return yield response.value();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
66
111
|
/**
|
|
67
112
|
* Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name), with a database provisioned for it. It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If the database cannot be provisioned the widget is still created, and `data.warnings` says what did not go through. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. Creating a widget provisions its database, so this call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
|
|
68
113
|
* Create Widget
|
|
@@ -339,6 +384,45 @@ export class WidgetsApi extends runtime.BaseAPI {
|
|
|
339
384
|
return yield response.value();
|
|
340
385
|
});
|
|
341
386
|
}
|
|
387
|
+
/**
|
|
388
|
+
* Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session\'s managed user are returned.
|
|
389
|
+
* Get Widgets Batch
|
|
390
|
+
*/
|
|
391
|
+
getWidgetsBatchRaw(requestParameters, initOverrides) {
|
|
392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
393
|
+
if (requestParameters['getWidgetsBatchRequest'] == null) {
|
|
394
|
+
throw new runtime.RequiredError('getWidgetsBatchRequest', 'Required parameter "getWidgetsBatchRequest" was null or undefined when calling getWidgetsBatch().');
|
|
395
|
+
}
|
|
396
|
+
const queryParameters = {};
|
|
397
|
+
const headerParameters = {};
|
|
398
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
399
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
400
|
+
const token = this.configuration.accessToken;
|
|
401
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
402
|
+
if (tokenString) {
|
|
403
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
const response = yield this.request({
|
|
407
|
+
path: `/widgets/batch`,
|
|
408
|
+
method: 'POST',
|
|
409
|
+
headers: headerParameters,
|
|
410
|
+
query: queryParameters,
|
|
411
|
+
body: GetWidgetsBatchRequestToJSON(requestParameters['getWidgetsBatchRequest']),
|
|
412
|
+
}, initOverrides);
|
|
413
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetWidgetsBatch200ResponseFromJSON(jsonValue));
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session\'s managed user are returned.
|
|
418
|
+
* Get Widgets Batch
|
|
419
|
+
*/
|
|
420
|
+
getWidgetsBatch(requestParameters, initOverrides) {
|
|
421
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
422
|
+
const response = yield this.getWidgetsBatchRaw(requestParameters, initOverrides);
|
|
423
|
+
return yield response.value();
|
|
424
|
+
});
|
|
425
|
+
}
|
|
342
426
|
/**
|
|
343
427
|
* Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic\'s widgets. Pass `page` (counting from 1) and `size` (1 to 100, 20 when left out) to read the list one page at a time. `meta` then carries `total`, `hasNextPage` and `hasPreviousPage`, so a client can walk the list to its end. A page past the end is an empty list. Without `page` and `size` the call returns the whole list in one response, which only suits an account with a few widgets. Pass `canvasId` to list only the widgets on one of your canvases. That list is always returned whole, whatever `page` and `size` say. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the widgets made for that managed user. The widgets of your other managed users, and your own, are left out. It combines with `page`, `size` and `canvasId`. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`.
|
|
344
428
|
* List Widgets
|
|
@@ -388,45 +472,6 @@ export class WidgetsApi extends runtime.BaseAPI {
|
|
|
388
472
|
return yield response.value();
|
|
389
473
|
});
|
|
390
474
|
}
|
|
391
|
-
/**
|
|
392
|
-
* Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session\'s managed user are returned.
|
|
393
|
-
* Get Widgets Batch
|
|
394
|
-
*/
|
|
395
|
-
getWidgetsBatchRaw(requestParameters, initOverrides) {
|
|
396
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
397
|
-
if (requestParameters['getWidgetsBatchRequest'] == null) {
|
|
398
|
-
throw new runtime.RequiredError('getWidgetsBatchRequest', 'Required parameter "getWidgetsBatchRequest" was null or undefined when calling getWidgetsBatch().');
|
|
399
|
-
}
|
|
400
|
-
const queryParameters = {};
|
|
401
|
-
const headerParameters = {};
|
|
402
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
403
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
404
|
-
const token = this.configuration.accessToken;
|
|
405
|
-
const tokenString = yield token("apiKeyAuth", []);
|
|
406
|
-
if (tokenString) {
|
|
407
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
const response = yield this.request({
|
|
411
|
-
path: `/widgets/batch`,
|
|
412
|
-
method: 'POST',
|
|
413
|
-
headers: headerParameters,
|
|
414
|
-
query: queryParameters,
|
|
415
|
-
body: GetWidgetsBatchRequestToJSON(requestParameters['getWidgetsBatchRequest']),
|
|
416
|
-
}, initOverrides);
|
|
417
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GetWidgetsBatch200ResponseFromJSON(jsonValue));
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session\'s managed user are returned.
|
|
422
|
-
* Get Widgets Batch
|
|
423
|
-
*/
|
|
424
|
-
getWidgetsBatch(requestParameters, initOverrides) {
|
|
425
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
426
|
-
const response = yield this.getWidgetsBatchRaw(requestParameters, initOverrides);
|
|
427
|
-
return yield response.value();
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
475
|
/**
|
|
431
476
|
* Updates `commit_title` on one version — the owner\'s correction of the wording the codegen pipeline authored for the commit. Works on Draft and Live versions alike; the Live badge says what is being served, the title says what the change was. A whitespace-only title clears it.
|
|
432
477
|
* Rename a version\'s title
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -32,10 +32,12 @@ export * from './OAuthConnectionsApi';
|
|
|
32
32
|
export * from './OperationsApi';
|
|
33
33
|
export * from './OrganizationActivitiesApi';
|
|
34
34
|
export * from './OrganizationsApi';
|
|
35
|
+
export * from './PartnerApi';
|
|
35
36
|
export * from './PartnerCustomizationsApi';
|
|
36
37
|
export * from './PartnersApi';
|
|
37
38
|
export * from './ProjectsApi';
|
|
38
39
|
export * from './PromptsApi';
|
|
40
|
+
export * from './PublicEmbedApi';
|
|
39
41
|
export * from './ShopifyApi';
|
|
40
42
|
export * from './SubscriptionPlansApi';
|
|
41
43
|
export * from './SubscriptionsApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -34,10 +34,12 @@ export * from './OAuthConnectionsApi.js';
|
|
|
34
34
|
export * from './OperationsApi.js';
|
|
35
35
|
export * from './OrganizationActivitiesApi.js';
|
|
36
36
|
export * from './OrganizationsApi.js';
|
|
37
|
+
export * from './PartnerApi.js';
|
|
37
38
|
export * from './PartnerCustomizationsApi.js';
|
|
38
39
|
export * from './PartnersApi.js';
|
|
39
40
|
export * from './ProjectsApi.js';
|
|
40
41
|
export * from './PromptsApi.js';
|
|
42
|
+
export * from './PublicEmbedApi.js';
|
|
41
43
|
export * from './ShopifyApi.js';
|
|
42
44
|
export * from './SubscriptionPlansApi.js';
|
|
43
45
|
export * from './SubscriptionsApi.js';
|
|
@@ -45,6 +45,12 @@ export interface Composition {
|
|
|
45
45
|
* @memberof Composition
|
|
46
46
|
*/
|
|
47
47
|
content: object;
|
|
48
|
+
/**
|
|
49
|
+
* Monotonic content version when the content_version migration is applied
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof Composition
|
|
52
|
+
*/
|
|
53
|
+
contentVersion?: number;
|
|
48
54
|
/**
|
|
49
55
|
* Current status of the composition
|
|
50
56
|
* @type {string}
|
|
@@ -93,6 +99,18 @@ export interface Composition {
|
|
|
93
99
|
* @memberof Composition
|
|
94
100
|
*/
|
|
95
101
|
managedUserId?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the widget the composition is made from is drawn straight into the page, without a frame
|
|
104
|
+
* (`true`), or inside a frame (`false`). `null` when the widget has no published version yet. It is a
|
|
105
|
+
* fact about the widget's published version, so every composition of one widget answers the same, and it
|
|
106
|
+
* changes when you publish another version. It cannot be set. Only `getCompositionById` returns it:
|
|
107
|
+
* the other calls that return a composition leave it out, and so does that one on the rare occasion the
|
|
108
|
+
* answer could not be worked out just then (ask again).
|
|
109
|
+
*
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof Composition
|
|
112
|
+
*/
|
|
113
|
+
direct?: boolean | null;
|
|
96
114
|
}
|
|
97
115
|
/**
|
|
98
116
|
* @export
|
|
@@ -54,6 +54,7 @@ export function CompositionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'widgetId': json['widgetId'],
|
|
55
55
|
'name': json['name'],
|
|
56
56
|
'content': json['content'],
|
|
57
|
+
'contentVersion': json['contentVersion'] == null ? undefined : json['contentVersion'],
|
|
57
58
|
'status': json['status'],
|
|
58
59
|
'createdAt': (new Date(json['createdAt'])),
|
|
59
60
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -62,6 +63,7 @@ export function CompositionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
63
|
'databaseId': json['databaseId'] == null ? undefined : json['databaseId'],
|
|
63
64
|
'projectId': json['projectId'] == null ? undefined : json['projectId'],
|
|
64
65
|
'managedUserId': json['managedUserId'] == null ? undefined : json['managedUserId'],
|
|
66
|
+
'direct': json['direct'] == null ? undefined : json['direct'],
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
export function CompositionToJSON(json) {
|
|
@@ -77,6 +79,7 @@ export function CompositionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
79
|
'widgetId': value['widgetId'],
|
|
78
80
|
'name': value['name'],
|
|
79
81
|
'content': value['content'],
|
|
82
|
+
'contentVersion': value['contentVersion'],
|
|
80
83
|
'status': value['status'],
|
|
81
84
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
82
85
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
@@ -85,5 +88,6 @@ export function CompositionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
88
|
'databaseId': value['databaseId'],
|
|
86
89
|
'projectId': value['projectId'],
|
|
87
90
|
'managedUserId': value['managedUserId'],
|
|
91
|
+
'direct': value['direct'],
|
|
88
92
|
};
|
|
89
93
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* The public JSON address a composition's widget reads when it loads and again every `refreshSeconds`. One
|
|
14
|
+
* per composition: binding another replaces it. It is sent as `refresh_seconds` (the request body keeps the
|
|
15
|
+
* snake case it always had) and answered as `refreshSeconds`, like every answer of the API.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CompositionDataSource
|
|
19
|
+
*/
|
|
20
|
+
export interface CompositionDataSource {
|
|
21
|
+
/**
|
|
22
|
+
* The https address as it was saved, after the checks (a public host, never loopback, link-local or a metadata address)
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CompositionDataSource
|
|
25
|
+
*/
|
|
26
|
+
url: string;
|
|
27
|
+
/**
|
|
28
|
+
* How often the widget reads the address again, in seconds
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof CompositionDataSource
|
|
31
|
+
*/
|
|
32
|
+
refreshSeconds: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the CompositionDataSource interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfCompositionDataSource(value: object): value is CompositionDataSource;
|
|
38
|
+
export declare function CompositionDataSourceFromJSON(json: any): CompositionDataSource;
|
|
39
|
+
export declare function CompositionDataSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompositionDataSource;
|
|
40
|
+
export declare function CompositionDataSourceToJSON(json: any): CompositionDataSource;
|
|
41
|
+
export declare function CompositionDataSourceToJSONTyped(value?: CompositionDataSource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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 CompositionDataSource interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCompositionDataSource(value) {
|
|
18
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('refreshSeconds' in value) || value['refreshSeconds'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CompositionDataSourceFromJSON(json) {
|
|
25
|
+
return CompositionDataSourceFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CompositionDataSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'url': json['url'],
|
|
33
|
+
'refreshSeconds': json['refreshSeconds'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CompositionDataSourceToJSON(json) {
|
|
37
|
+
return CompositionDataSourceToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CompositionDataSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'url': value['url'],
|
|
45
|
+
'refreshSeconds': value['refreshSeconds'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { CompositionEntryTally } from './CompositionEntryTally';
|
|
13
|
+
import type { CompositionEntryAggregatesBlock } from './CompositionEntryAggregatesBlock';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -29,21 +30,27 @@ export interface CompositionEntriesReading {
|
|
|
29
30
|
*/
|
|
30
31
|
table: string;
|
|
31
32
|
/**
|
|
32
|
-
* How many entries the table holds in all
|
|
33
|
+
* How many entries the table holds in all. Not narrowed by `since`, `until` or a filter: only
|
|
34
|
+
* `aggregates` is.
|
|
35
|
+
*
|
|
33
36
|
* @type {number}
|
|
34
37
|
* @memberof CompositionEntriesReading
|
|
35
38
|
*/
|
|
36
39
|
totalRows: number;
|
|
37
40
|
/**
|
|
38
|
-
* How many entries have each value of the `groupBy` column, largest group first (up to 20 groups)
|
|
39
|
-
* `null` when no `groupBy` was asked for.
|
|
41
|
+
* How many entries have each value of the `groupBy` column, largest group first (up to 20 groups), over
|
|
42
|
+
* the whole table. `null` when no `groupBy` was asked for. For the groups of a selection (a time window,
|
|
43
|
+
* a `context` filter) or for more than 20 groups, ask for `aggregate`: `aggregates.tallies` holds up to
|
|
44
|
+
* 200 groups.
|
|
40
45
|
*
|
|
41
46
|
* @type {Array<CompositionEntryTally>}
|
|
42
47
|
* @memberof CompositionEntriesReading
|
|
43
48
|
*/
|
|
44
49
|
tallies: Array<CompositionEntryTally> | null;
|
|
45
50
|
/**
|
|
46
|
-
* True when
|
|
51
|
+
* True when the `groupBy` column has more than the 20 groups `tallies` lists. It speaks of `tallies`
|
|
52
|
+
* only: `aggregates.truncated` is the same signal for `aggregates` (200 groups).
|
|
53
|
+
*
|
|
47
54
|
* @type {boolean}
|
|
48
55
|
* @memberof CompositionEntriesReading
|
|
49
56
|
*/
|
|
@@ -72,6 +79,15 @@ export interface CompositionEntriesReading {
|
|
|
72
79
|
* @memberof CompositionEntriesReading
|
|
73
80
|
*/
|
|
74
81
|
moreRows: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Only present when the read asked for `aggregate`. Unlike `totalRows`, `tallies` and `rows`, it is
|
|
84
|
+
* narrowed by `since`, `until` and the `context` and column filters of the same call: it answers
|
|
85
|
+
* "the average rating this week" where `tallies` answer "how many of each rating, ever".
|
|
86
|
+
*
|
|
87
|
+
* @type {CompositionEntryAggregatesBlock}
|
|
88
|
+
* @memberof CompositionEntriesReading
|
|
89
|
+
*/
|
|
90
|
+
aggregates?: CompositionEntryAggregatesBlock;
|
|
75
91
|
}
|
|
76
92
|
/**
|
|
77
93
|
* Check if a given object implements the CompositionEntriesReading interface.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { CompositionEntryTallyFromJSON, CompositionEntryTallyToJSON, } from './CompositionEntryTally.js';
|
|
15
|
+
import { CompositionEntryAggregatesBlockFromJSON, CompositionEntryAggregatesBlockToJSON, } from './CompositionEntryAggregatesBlock.js';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the CompositionEntriesReading interface.
|
|
17
18
|
*/
|
|
@@ -50,6 +51,7 @@ export function CompositionEntriesReadingFromJSONTyped(json, ignoreDiscriminator
|
|
|
50
51
|
'columns': json['columns'],
|
|
51
52
|
'rows': json['rows'] == null ? null : json['rows'],
|
|
52
53
|
'moreRows': json['moreRows'],
|
|
54
|
+
'aggregates': json['aggregates'] == null ? undefined : CompositionEntryAggregatesBlockFromJSON(json['aggregates']),
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
export function CompositionEntriesReadingToJSON(json) {
|
|
@@ -68,5 +70,6 @@ export function CompositionEntriesReadingToJSONTyped(value, ignoreDiscriminator
|
|
|
68
70
|
'columns': value['columns'],
|
|
69
71
|
'rows': value['rows'],
|
|
70
72
|
'moreRows': value['moreRows'],
|
|
73
|
+
'aggregates': CompositionEntryAggregatesBlockToJSON(value['aggregates']),
|
|
71
74
|
};
|
|
72
75
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* The aggregates of one group (the entries that share a value of the `groupBy` column), or of the whole
|
|
14
|
+
* selection when no `groupBy` was asked for. Only the functions that were asked for with `aggregate` are
|
|
15
|
+
* present.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CompositionEntryAggregateTally
|
|
19
|
+
*/
|
|
20
|
+
export interface CompositionEntryAggregateTally {
|
|
21
|
+
/**
|
|
22
|
+
* The value of the `groupBy` column, as text (a number is `"5"`); `null` groups the entries that left it
|
|
23
|
+
* empty. Absent when no `groupBy` was asked for.
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CompositionEntryAggregateTally
|
|
27
|
+
*/
|
|
28
|
+
group?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* How many entries are in the group (or in the selection)
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof CompositionEntryAggregateTally
|
|
33
|
+
*/
|
|
34
|
+
count?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The average of the numeric `column`, rounded to 4 decimals. `null` when no entry matched: there is no
|
|
37
|
+
* average of nothing, and it is not 0.
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof CompositionEntryAggregateTally
|
|
41
|
+
*/
|
|
42
|
+
avg?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
* The smallest value of the numeric `column`. `null` when no entry matched.
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof CompositionEntryAggregateTally
|
|
47
|
+
*/
|
|
48
|
+
min?: number | null;
|
|
49
|
+
/**
|
|
50
|
+
* The largest value of the numeric `column`. `null` when no entry matched.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof CompositionEntryAggregateTally
|
|
53
|
+
*/
|
|
54
|
+
max?: number | null;
|
|
55
|
+
/**
|
|
56
|
+
* The sum of the numeric `column`. `null` when no entry matched.
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof CompositionEntryAggregateTally
|
|
59
|
+
*/
|
|
60
|
+
sum?: number | null;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the CompositionEntryAggregateTally interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfCompositionEntryAggregateTally(value: object): value is CompositionEntryAggregateTally;
|
|
66
|
+
export declare function CompositionEntryAggregateTallyFromJSON(json: any): CompositionEntryAggregateTally;
|
|
67
|
+
export declare function CompositionEntryAggregateTallyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompositionEntryAggregateTally;
|
|
68
|
+
export declare function CompositionEntryAggregateTallyToJSON(json: any): CompositionEntryAggregateTally;
|
|
69
|
+
export declare function CompositionEntryAggregateTallyToJSONTyped(value?: CompositionEntryAggregateTally | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 CompositionEntryAggregateTally interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCompositionEntryAggregateTally(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function CompositionEntryAggregateTallyFromJSON(json) {
|
|
21
|
+
return CompositionEntryAggregateTallyFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CompositionEntryAggregateTallyFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'group': json['group'] == null ? undefined : json['group'],
|
|
29
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
30
|
+
'avg': json['avg'] == null ? undefined : json['avg'],
|
|
31
|
+
'min': json['min'] == null ? undefined : json['min'],
|
|
32
|
+
'max': json['max'] == null ? undefined : json['max'],
|
|
33
|
+
'sum': json['sum'] == null ? undefined : json['sum'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CompositionEntryAggregateTallyToJSON(json) {
|
|
37
|
+
return CompositionEntryAggregateTallyToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CompositionEntryAggregateTallyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'group': value['group'],
|
|
45
|
+
'count': value['count'],
|
|
46
|
+
'avg': value['avg'],
|
|
47
|
+
'min': value['min'],
|
|
48
|
+
'max': value['max'],
|
|
49
|
+
'sum': value['sum'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { CompositionEntryAggregateTally } from './CompositionEntryAggregateTally';
|
|
13
|
+
/**
|
|
14
|
+
* What `aggregate` asked for, computed over the entries that match `since`, `until` and the `context` and
|
|
15
|
+
* column filters of the same call.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CompositionEntryAggregatesBlock
|
|
19
|
+
*/
|
|
20
|
+
export interface CompositionEntryAggregatesBlock {
|
|
21
|
+
/**
|
|
22
|
+
* The numeric column `avg`, `min`, `max` and `sum` were computed over. An empty text when only `count`
|
|
23
|
+
* was asked for.
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CompositionEntryAggregatesBlock
|
|
27
|
+
*/
|
|
28
|
+
column: string;
|
|
29
|
+
/**
|
|
30
|
+
* One tally per value of `groupBy`, in the order of that column (a number as a number, `null` last), up
|
|
31
|
+
* to 200 groups; or ONE tally for the whole selection when no `groupBy` was asked for. Empty when
|
|
32
|
+
* `groupBy` was asked for and no entry matched.
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<CompositionEntryAggregateTally>}
|
|
35
|
+
* @memberof CompositionEntryAggregatesBlock
|
|
36
|
+
*/
|
|
37
|
+
tallies: Array<CompositionEntryAggregateTally>;
|
|
38
|
+
/**
|
|
39
|
+
* True when more than 200 groups matched, so `tallies` lists the first 200 in that order. Absent
|
|
40
|
+
* otherwise. (Not to be mixed up with `moreGroups` on the reading, which is about the plain `tallies`
|
|
41
|
+
* of the whole table: those are 20 groups, largest first.)
|
|
42
|
+
*
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof CompositionEntryAggregatesBlock
|
|
45
|
+
*/
|
|
46
|
+
truncated?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CompositionEntryAggregatesBlock interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfCompositionEntryAggregatesBlock(value: object): value is CompositionEntryAggregatesBlock;
|
|
52
|
+
export declare function CompositionEntryAggregatesBlockFromJSON(json: any): CompositionEntryAggregatesBlock;
|
|
53
|
+
export declare function CompositionEntryAggregatesBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): CompositionEntryAggregatesBlock;
|
|
54
|
+
export declare function CompositionEntryAggregatesBlockToJSON(json: any): CompositionEntryAggregatesBlock;
|
|
55
|
+
export declare function CompositionEntryAggregatesBlockToJSONTyped(value?: CompositionEntryAggregatesBlock | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { CompositionEntryAggregateTallyFromJSON, CompositionEntryAggregateTallyToJSON, } from './CompositionEntryAggregateTally.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CompositionEntryAggregatesBlock interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCompositionEntryAggregatesBlock(value) {
|
|
19
|
+
if (!('column' in value) || value['column'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('tallies' in value) || value['tallies'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function CompositionEntryAggregatesBlockFromJSON(json) {
|
|
26
|
+
return CompositionEntryAggregatesBlockFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function CompositionEntryAggregatesBlockFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'column': json['column'],
|
|
34
|
+
'tallies': (json['tallies'].map(CompositionEntryAggregateTallyFromJSON)),
|
|
35
|
+
'truncated': json['truncated'] == null ? undefined : json['truncated'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function CompositionEntryAggregatesBlockToJSON(json) {
|
|
39
|
+
return CompositionEntryAggregatesBlockToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function CompositionEntryAggregatesBlockToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'column': value['column'],
|
|
47
|
+
'tallies': (value['tallies'].map(CompositionEntryAggregateTallyToJSON)),
|
|
48
|
+
'truncated': value['truncated'],
|
|
49
|
+
};
|
|
50
|
+
}
|