webflow-api 2.0.0 → 2.1.2
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 +3 -0
- package/api/resources/accessGroups/client/Client.d.ts +1 -3
- package/api/resources/accessGroups/client/Client.js +5 -5
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -3
- package/api/resources/assets/client/Client.d.ts +21 -7
- package/api/resources/assets/client/Client.js +110 -21
- package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +13 -0
- package/api/resources/assets/client/requests/index.d.ts +1 -0
- package/api/resources/collections/client/Client.d.ts +5 -5
- package/api/resources/collections/client/Client.js +25 -15
- package/api/resources/collections/resources/fields/client/Client.d.ts +11 -7
- package/api/resources/collections/resources/fields/client/Client.js +19 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
- package/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +5 -1
- package/api/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/index.js +1 -0
- package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +22 -0
- package/api/resources/collections/resources/fields/types/FieldCreateType.js +21 -0
- package/api/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/types/index.js +17 -0
- package/api/resources/collections/resources/index.d.ts +2 -1
- package/api/resources/collections/resources/index.js +3 -2
- package/api/resources/collections/resources/items/client/Client.d.ts +101 -16
- package/api/resources/collections/resources/items/client/Client.js +378 -29
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +1 -1
- package/api/resources/collections/resources/items/client/requests/index.d.ts +3 -0
- package/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +5 -0
- package/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/index.js +1 -0
- package/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.js +5 -3
- package/api/resources/forms/client/Client.d.ts +6 -6
- package/api/resources/forms/client/Client.js +35 -16
- package/api/resources/forms/client/requests/FormsListRequest.d.ts +17 -0
- package/api/resources/forms/client/requests/FormsListRequest.js +5 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +3 -1
- package/api/resources/index.js +4 -2
- package/api/resources/inventory/client/Client.d.ts +2 -2
- package/api/resources/inventory/client/Client.js +10 -6
- package/api/resources/orders/client/Client.d.ts +6 -10
- package/api/resources/orders/client/Client.js +30 -22
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -3
- package/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -3
- package/api/resources/pages/client/Client.d.ts +73 -4
- package/api/resources/pages/client/Client.js +312 -8
- package/api/resources/pages/client/index.d.ts +1 -1
- package/api/resources/pages/client/index.js +15 -0
- package/api/resources/pages/client/requests/DomWrite.d.ts +21 -0
- package/api/resources/pages/client/requests/DomWrite.js +5 -0
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +13 -0
- package/api/resources/pages/client/requests/PagesGetContentRequest.js +5 -0
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +13 -0
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.js +5 -0
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +21 -0
- package/api/resources/pages/client/requests/PagesListRequest.js +5 -0
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +40 -0
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.js +5 -0
- package/api/resources/pages/client/requests/index.d.ts +5 -0
- package/api/resources/pages/client/requests/index.js +2 -0
- package/api/resources/pages/index.d.ts +1 -0
- package/api/resources/pages/index.js +1 -0
- package/api/resources/pages/resources/scripts/client/Client.d.ts +11 -3
- package/api/resources/pages/resources/scripts/client/Client.js +23 -9
- package/api/resources/pages/types/DomWriteNodesItem.d.ts +9 -0
- package/api/resources/pages/types/DomWriteNodesItem.js +5 -0
- package/api/resources/pages/types/index.d.ts +1 -0
- package/api/resources/pages/types/index.js +17 -0
- package/api/resources/products/client/Client.d.ts +54 -74
- package/api/resources/products/client/Client.js +79 -87
- package/api/resources/products/client/requests/ProductSkuCreate.d.ts +15 -0
- package/api/resources/products/client/requests/ProductSkuCreate.js +5 -0
- package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +7 -7
- package/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +29 -8
- package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +7 -7
- package/api/resources/products/client/requests/index.d.ts +1 -1
- package/api/resources/products/types/ProductSkuCreateProduct.d.ts +22 -0
- package/api/resources/products/types/ProductSkuCreateProduct.js +5 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +23 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldData.js +5 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +13 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +12 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +38 -0
- package/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +37 -0
- package/api/resources/products/types/ProductSkuCreateSku.d.ts +19 -0
- package/api/resources/products/types/ProductSkuCreateSku.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +26 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldData.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +12 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +11 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +10 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +15 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +13 -0
- package/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +5 -0
- package/api/resources/products/types/index.d.ts +11 -0
- package/api/resources/products/types/index.js +11 -0
- package/api/resources/scripts/client/Client.d.ts +9 -9
- package/api/resources/scripts/client/Client.js +21 -15
- package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +4 -4
- package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/api/resources/sites/client/Client.d.ts +6 -3
- package/api/resources/sites/client/Client.js +26 -13
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +32 -0
- package/api/resources/sites/resources/activityLogs/client/Client.js +136 -0
- package/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/client/index.js +17 -0
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +17 -0
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.js +5 -0
- package/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/client/requests/index.js +2 -0
- package/api/resources/sites/resources/activityLogs/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/index.js +17 -0
- package/api/resources/sites/resources/index.d.ts +2 -0
- package/api/resources/sites/resources/index.js +3 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +12 -4
- package/api/resources/sites/resources/scripts/client/Client.js +28 -12
- package/api/resources/token/client/Client.js +8 -4
- package/api/resources/users/client/Client.d.ts +13 -20
- package/api/resources/users/client/Client.js +34 -31
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +2 -1
- package/api/resources/users/client/requests/UsersListRequest.d.ts +1 -3
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +23 -0
- package/api/resources/users/client/requests/UsersUpdateRequest.js +5 -0
- package/api/resources/users/client/requests/index.d.ts +1 -0
- package/api/resources/users/types/UsersUpdateRequestData.d.ts +11 -0
- package/api/resources/users/types/UsersUpdateRequestData.js +5 -0
- package/api/resources/users/types/index.d.ts +1 -0
- package/api/resources/users/types/index.js +1 -0
- package/api/resources/webhooks/client/Client.d.ts +4 -4
- package/api/resources/webhooks/client/Client.js +20 -12
- package/api/types/AssetFolder.d.ts +3 -0
- package/api/types/AssetFolderList.d.ts +2 -1
- package/api/types/CollectionItem.d.ts +2 -0
- package/api/types/Dom.d.ts +13 -0
- package/api/types/Dom.js +5 -0
- package/api/types/ImageNode.d.ts +10 -0
- package/api/types/ImageNode.js +5 -0
- package/api/types/InvalidScopes.d.ts +10 -0
- package/api/types/InvalidScopes.js +5 -0
- package/api/types/Node.d.ts +15 -0
- package/api/types/Node.js +5 -0
- package/api/types/NodeType.d.ts +8 -0
- package/api/types/NodeType.js +10 -0
- package/api/types/NotEnterprisePlanSite.d.ts +14 -0
- package/api/types/NotEnterprisePlanSite.js +5 -0
- package/api/types/OauthScope.d.ts +5 -1
- package/api/types/OauthScope.js +1 -0
- package/api/types/ProductAndSkUs.d.ts +1 -0
- package/api/types/ProductFieldData.d.ts +17 -3
- package/api/types/ProductFieldDataEcProductType.d.ts +13 -0
- package/api/types/ProductFieldDataEcProductType.js +12 -0
- package/api/types/ProductFieldDataTaxCategory.d.ts +38 -0
- package/api/types/ProductFieldDataTaxCategory.js +37 -0
- package/api/types/PublishStatus.d.ts +1 -1
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogItemUser.d.ts +7 -0
- package/api/types/SiteActivityLogItemUser.js +5 -0
- package/api/types/Sku.d.ts +1 -0
- package/api/types/SkuFieldData.d.ts +15 -4
- package/api/types/SkuFieldDataCompareAtPrice.d.ts +12 -0
- package/api/types/SkuFieldDataCompareAtPrice.js +5 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +8 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.js +10 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +12 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/api/types/SkuPropertyList.d.ts +6 -6
- package/api/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/api/types/TextNode.d.ts +10 -0
- package/api/types/TextNode.js +5 -0
- package/api/types/index.d.ts +14 -0
- package/api/types/index.js +14 -0
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/Fetcher.js +8 -1
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +8 -0
- package/core/runtime/runtime.js +82 -0
- package/dist/api/resources/accessGroups/client/Client.d.ts +1 -3
- package/dist/api/resources/accessGroups/client/Client.js +5 -5
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -3
- package/dist/api/resources/assets/client/Client.d.ts +21 -7
- package/dist/api/resources/assets/client/Client.js +110 -21
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +13 -0
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/client/Client.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.js +25 -15
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +11 -7
- package/dist/api/resources/collections/resources/fields/client/Client.js +19 -11
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js +5 -0
- package/dist/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +5 -1
- package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/index.js +1 -0
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +22 -0
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +21 -0
- package/dist/api/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/types/index.js +17 -0
- package/dist/api/resources/collections/resources/index.d.ts +2 -1
- package/dist/api/resources/collections/resources/index.js +3 -2
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +101 -16
- package/dist/api/resources/collections/resources/items/client/Client.js +378 -29
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +3 -0
- package/dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/index.js +1 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.js +5 -3
- package/dist/api/resources/forms/client/Client.d.ts +6 -6
- package/dist/api/resources/forms/client/Client.js +35 -16
- package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +17 -0
- package/dist/api/resources/forms/client/requests/FormsListRequest.js +5 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -1
- package/dist/api/resources/index.js +4 -2
- package/dist/api/resources/inventory/client/Client.d.ts +2 -2
- package/dist/api/resources/inventory/client/Client.js +10 -6
- package/dist/api/resources/orders/client/Client.d.ts +6 -10
- package/dist/api/resources/orders/client/Client.js +30 -22
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -3
- package/dist/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -3
- package/dist/api/resources/pages/client/Client.d.ts +73 -4
- package/dist/api/resources/pages/client/Client.js +312 -8
- package/dist/api/resources/pages/client/index.d.ts +1 -1
- package/dist/api/resources/pages/client/index.js +15 -0
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +21 -0
- package/dist/api/resources/pages/client/requests/DomWrite.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +13 -0
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +13 -0
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +21 -0
- package/dist/api/resources/pages/client/requests/PagesListRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +40 -0
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.js +5 -0
- package/dist/api/resources/pages/client/requests/index.d.ts +5 -0
- package/dist/api/resources/pages/client/requests/index.js +2 -0
- package/dist/api/resources/pages/index.d.ts +1 -0
- package/dist/api/resources/pages/index.js +1 -0
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +11 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +23 -9
- package/dist/api/resources/pages/types/DomWriteNodesItem.d.ts +9 -0
- package/dist/api/resources/pages/types/DomWriteNodesItem.js +5 -0
- package/dist/api/resources/pages/types/index.d.ts +1 -0
- package/dist/api/resources/pages/types/index.js +17 -0
- package/dist/api/resources/products/client/Client.d.ts +54 -74
- package/dist/api/resources/products/client/Client.js +79 -87
- package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +15 -0
- package/dist/api/resources/products/client/requests/ProductSkuCreate.js +5 -0
- package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +7 -7
- package/dist/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +29 -8
- package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +7 -7
- package/dist/api/resources/products/client/requests/index.d.ts +1 -1
- package/dist/api/resources/products/types/ProductSkuCreateProduct.d.ts +22 -0
- package/dist/api/resources/products/types/ProductSkuCreateProduct.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.d.ts +23 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldData.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +13 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +12 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +38 -0
- package/dist/api/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +37 -0
- package/dist/api/resources/products/types/ProductSkuCreateSku.d.ts +19 -0
- package/dist/api/resources/products/types/ProductSkuCreateSku.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +26 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldData.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +12 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +11 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +10 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +15 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +13 -0
- package/dist/api/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +5 -0
- package/dist/api/resources/products/types/index.d.ts +11 -0
- package/dist/api/resources/products/types/index.js +11 -0
- package/dist/api/resources/scripts/client/Client.d.ts +9 -9
- package/dist/api/resources/scripts/client/Client.js +21 -15
- package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +4 -4
- package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.d.ts +6 -3
- package/dist/api/resources/sites/client/Client.js +26 -13
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +32 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +136 -0
- package/dist/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/index.js +17 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +17 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.js +5 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/index.js +2 -0
- package/dist/api/resources/sites/resources/activityLogs/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/index.js +17 -0
- package/dist/api/resources/sites/resources/index.d.ts +2 -0
- package/dist/api/resources/sites/resources/index.js +3 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +12 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +28 -12
- package/dist/api/resources/token/client/Client.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +13 -20
- package/dist/api/resources/users/client/Client.js +34 -31
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +2 -1
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +1 -3
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +23 -0
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.js +5 -0
- package/dist/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/types/UsersUpdateRequestData.d.ts +11 -0
- package/dist/api/resources/users/types/UsersUpdateRequestData.js +5 -0
- package/dist/api/resources/users/types/index.d.ts +1 -0
- package/dist/api/resources/users/types/index.js +1 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
- package/dist/api/resources/webhooks/client/Client.js +20 -12
- package/dist/api/types/AssetFolder.d.ts +3 -0
- package/dist/api/types/AssetFolderList.d.ts +2 -1
- package/dist/api/types/CollectionItem.d.ts +2 -0
- package/dist/api/types/Dom.d.ts +13 -0
- package/dist/api/types/Dom.js +5 -0
- package/dist/api/types/ImageNode.d.ts +10 -0
- package/dist/api/types/ImageNode.js +5 -0
- package/dist/api/types/InvalidScopes.d.ts +10 -0
- package/dist/api/types/InvalidScopes.js +5 -0
- package/dist/api/types/Node.d.ts +15 -0
- package/dist/api/types/Node.js +5 -0
- package/dist/api/types/NodeType.d.ts +8 -0
- package/dist/api/types/NodeType.js +10 -0
- package/dist/api/types/NotEnterprisePlanSite.d.ts +14 -0
- package/dist/api/types/NotEnterprisePlanSite.js +5 -0
- package/dist/api/types/OauthScope.d.ts +5 -1
- package/dist/api/types/OauthScope.js +1 -0
- package/dist/api/types/ProductAndSkUs.d.ts +1 -0
- package/dist/api/types/ProductFieldData.d.ts +17 -3
- package/dist/api/types/ProductFieldDataEcProductType.d.ts +13 -0
- package/dist/api/types/ProductFieldDataEcProductType.js +12 -0
- package/dist/api/types/ProductFieldDataTaxCategory.d.ts +38 -0
- package/dist/api/types/ProductFieldDataTaxCategory.js +37 -0
- package/dist/api/types/PublishStatus.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItemUser.d.ts +7 -0
- package/dist/api/types/SiteActivityLogItemUser.js +5 -0
- package/dist/api/types/Sku.d.ts +1 -0
- package/dist/api/types/SkuFieldData.d.ts +15 -4
- package/dist/api/types/SkuFieldDataCompareAtPrice.d.ts +12 -0
- package/dist/api/types/SkuFieldDataCompareAtPrice.js +5 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +8 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.js +10 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +12 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.js +5 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +13 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +12 -0
- package/dist/api/types/SkuPropertyList.d.ts +6 -6
- package/dist/api/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/dist/api/types/TextNode.d.ts +10 -0
- package/dist/api/types/TextNode.js +5 -0
- package/dist/api/types/index.d.ts +14 -0
- package/dist/api/types/index.js +14 -0
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.js +8 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +8 -0
- package/dist/core/runtime/runtime.js +82 -0
- package/dist/environments.d.ts +1 -1
- package/dist/environments.js +1 -1
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +12 -0
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +33 -0
- package/dist/serialization/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/assets/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +15 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +45 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/fields/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/fields/index.js +1 -0
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +45 -0
- package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/fields/types/index.js +17 -0
- package/dist/serialization/resources/collections/resources/index.d.ts +2 -1
- package/dist/serialization/resources/collections/resources/index.js +3 -2
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +51 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/pages/client/index.d.ts +1 -0
- package/dist/serialization/resources/pages/client/index.js +17 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +12 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.js +42 -0
- package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/pages/client/requests/index.js +5 -0
- package/dist/serialization/resources/pages/index.d.ts +2 -0
- package/dist/serialization/resources/pages/index.js +18 -0
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +13 -0
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.js +34 -0
- package/dist/serialization/resources/pages/types/index.d.ts +1 -0
- package/dist/serialization/resources/pages/types/index.js +17 -0
- package/dist/serialization/resources/products/client/requests/{ProductsCreateRequest.d.ts → ProductSkuCreate.d.ts} +4 -4
- package/dist/serialization/resources/products/client/requests/{ProductsCreateRequest.js → ProductSkuCreate.js} +6 -4
- package/dist/serialization/resources/products/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/products/client/requests/index.js +3 -3
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +18 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +50 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +20 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +56 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +36 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +61 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.d.ts +16 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +48 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +20 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +56 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +13 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +34 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +31 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +14 -0
- package/dist/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +35 -0
- package/dist/serialization/resources/products/types/index.d.ts +11 -0
- package/dist/serialization/resources/products/types/index.js +11 -0
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +13 -0
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +43 -0
- package/dist/serialization/resources/users/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/users/client/requests/index.js +3 -1
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +14 -0
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.js +35 -0
- package/dist/serialization/resources/users/types/index.d.ts +1 -0
- package/dist/serialization/resources/users/types/index.js +1 -0
- package/dist/serialization/types/AssetFolderList.d.ts +1 -1
- package/dist/serialization/types/AssetFolderList.js +2 -2
- package/dist/serialization/types/CollectionItem.d.ts +1 -0
- package/dist/serialization/types/CollectionItem.js +1 -0
- package/dist/serialization/types/Dom.d.ts +14 -0
- package/dist/serialization/types/Dom.js +44 -0
- package/dist/serialization/types/ImageNode.d.ts +13 -0
- package/dist/serialization/types/ImageNode.js +34 -0
- package/dist/serialization/types/InvalidScopes.d.ts +16 -0
- package/dist/serialization/types/InvalidScopes.js +37 -0
- package/dist/serialization/types/Node.d.ts +16 -0
- package/dist/serialization/types/Node.js +46 -0
- package/dist/serialization/types/NodeType.d.ts +10 -0
- package/dist/serialization/types/NodeType.js +31 -0
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +16 -0
- package/dist/serialization/types/NotEnterprisePlanSite.js +48 -0
- package/dist/serialization/types/OauthScope.d.ts +1 -1
- package/dist/serialization/types/OauthScope.js +1 -0
- package/dist/serialization/types/ProductFieldData.d.ts +9 -2
- package/dist/serialization/types/ProductFieldData.js +9 -2
- package/dist/serialization/types/ProductFieldDataEcProductType.d.ts +10 -0
- package/dist/serialization/types/ProductFieldDataEcProductType.js +36 -0
- package/dist/serialization/types/ProductFieldDataTaxCategory.d.ts +10 -0
- package/dist/serialization/types/ProductFieldDataTaxCategory.js +61 -0
- package/dist/serialization/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/serialization/types/SiteActivityLogItem.js +1 -1
- package/dist/serialization/types/SiteActivityLogItemUser.d.ts +13 -0
- package/dist/serialization/types/SiteActivityLogItemUser.js +34 -0
- package/dist/serialization/types/SkuFieldData.d.ts +8 -3
- package/dist/serialization/types/SkuFieldData.js +8 -3
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.d.ts +13 -0
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.js +34 -0
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.js +31 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/dist/serialization/types/SkuPropertyList.d.ts +3 -3
- package/dist/serialization/types/SkuPropertyList.js +3 -5
- package/dist/serialization/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/dist/serialization/types/SkuPropertyListEnumItem.js +3 -3
- package/dist/serialization/types/TextNode.d.ts +13 -0
- package/dist/serialization/types/TextNode.js +34 -0
- package/dist/serialization/types/index.d.ts +14 -0
- package/dist/serialization/types/index.js +14 -0
- package/environments.d.ts +1 -1
- package/environments.js +1 -1
- package/jest.config.js +5 -0
- package/package.json +7 -3
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +12 -0
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +33 -0
- package/serialization/resources/assets/client/requests/index.d.ts +1 -0
- package/serialization/resources/assets/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +15 -0
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +45 -0
- package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +1 -0
- package/serialization/resources/collections/resources/fields/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/fields/index.d.ts +1 -0
- package/serialization/resources/collections/resources/fields/index.js +1 -0
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +10 -0
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +45 -0
- package/serialization/resources/collections/resources/fields/types/index.d.ts +1 -0
- package/serialization/resources/collections/resources/fields/types/index.js +17 -0
- package/serialization/resources/collections/resources/index.d.ts +2 -1
- package/serialization/resources/collections/resources/index.js +3 -2
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +51 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/pages/client/index.d.ts +1 -0
- package/serialization/resources/pages/client/index.js +17 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +12 -0
- package/serialization/resources/pages/client/requests/DomWrite.js +42 -0
- package/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/serialization/resources/pages/client/requests/index.js +5 -0
- package/serialization/resources/pages/index.d.ts +2 -0
- package/serialization/resources/pages/index.js +18 -0
- package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +13 -0
- package/serialization/resources/pages/types/DomWriteNodesItem.js +34 -0
- package/serialization/resources/pages/types/index.d.ts +1 -0
- package/serialization/resources/pages/types/index.js +17 -0
- package/serialization/resources/products/client/requests/{ProductsCreateRequest.d.ts → ProductSkuCreate.d.ts} +4 -4
- package/serialization/resources/products/client/requests/{ProductsCreateRequest.js → ProductSkuCreate.js} +6 -4
- package/serialization/resources/products/client/requests/index.d.ts +1 -1
- package/serialization/resources/products/client/requests/index.js +3 -3
- package/serialization/resources/products/types/ProductSkuCreateProduct.d.ts +18 -0
- package/serialization/resources/products/types/ProductSkuCreateProduct.js +50 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldData.d.ts +20 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldData.js +56 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataEcProductType.js +36 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateProductFieldDataTaxCategory.js +61 -0
- package/serialization/resources/products/types/ProductSkuCreateSku.d.ts +16 -0
- package/serialization/resources/products/types/ProductSkuCreateSku.js +48 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.d.ts +20 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldData.js +56 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.d.ts +13 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataCompareAtPrice.js +34 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuBillingMethod.js +31 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.d.ts +14 -0
- package/serialization/resources/products/types/ProductSkuCreateSkuFieldDataPrice.js +35 -0
- package/serialization/resources/products/types/index.d.ts +11 -0
- package/serialization/resources/products/types/index.js +11 -0
- package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +13 -0
- package/serialization/resources/users/client/requests/UsersUpdateRequest.js +43 -0
- package/serialization/resources/users/client/requests/index.d.ts +1 -0
- package/serialization/resources/users/client/requests/index.js +3 -1
- package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +14 -0
- package/serialization/resources/users/types/UsersUpdateRequestData.js +35 -0
- package/serialization/resources/users/types/index.d.ts +1 -0
- package/serialization/resources/users/types/index.js +1 -0
- package/serialization/types/AssetFolderList.d.ts +1 -1
- package/serialization/types/AssetFolderList.js +2 -2
- package/serialization/types/CollectionItem.d.ts +1 -0
- package/serialization/types/CollectionItem.js +1 -0
- package/serialization/types/Dom.d.ts +14 -0
- package/serialization/types/Dom.js +44 -0
- package/serialization/types/ImageNode.d.ts +13 -0
- package/serialization/types/ImageNode.js +34 -0
- package/serialization/types/InvalidScopes.d.ts +16 -0
- package/serialization/types/InvalidScopes.js +37 -0
- package/serialization/types/Node.d.ts +16 -0
- package/serialization/types/Node.js +46 -0
- package/serialization/types/NodeType.d.ts +10 -0
- package/serialization/types/NodeType.js +31 -0
- package/serialization/types/NotEnterprisePlanSite.d.ts +16 -0
- package/serialization/types/NotEnterprisePlanSite.js +48 -0
- package/serialization/types/OauthScope.d.ts +1 -1
- package/serialization/types/OauthScope.js +1 -0
- package/serialization/types/ProductFieldData.d.ts +9 -2
- package/serialization/types/ProductFieldData.js +9 -2
- package/serialization/types/ProductFieldDataEcProductType.d.ts +10 -0
- package/serialization/types/ProductFieldDataEcProductType.js +36 -0
- package/serialization/types/ProductFieldDataTaxCategory.d.ts +10 -0
- package/serialization/types/ProductFieldDataTaxCategory.js +61 -0
- package/serialization/types/SiteActivityLogItem.d.ts +1 -1
- package/serialization/types/SiteActivityLogItem.js +1 -1
- package/serialization/types/SiteActivityLogItemUser.d.ts +13 -0
- package/serialization/types/SiteActivityLogItemUser.js +34 -0
- package/serialization/types/SkuFieldData.d.ts +8 -3
- package/serialization/types/SkuFieldData.js +8 -3
- package/serialization/types/SkuFieldDataCompareAtPrice.d.ts +13 -0
- package/serialization/types/SkuFieldDataCompareAtPrice.js +34 -0
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +10 -0
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.js +31 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +14 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +46 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +10 -0
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +31 -0
- package/serialization/types/SkuPropertyList.d.ts +3 -3
- package/serialization/types/SkuPropertyList.js +3 -5
- package/serialization/types/SkuPropertyListEnumItem.d.ts +3 -3
- package/serialization/types/SkuPropertyListEnumItem.js +3 -3
- package/serialization/types/TextNode.d.ts +13 -0
- package/serialization/types/TextNode.js +34 -0
- package/serialization/types/index.d.ts +14 -0
- package/serialization/types/index.js +14 -0
- package/tests/client.test.ts +11 -0
- package/api/resources/products/client/requests/ProductsCreateRequest.d.ts +0 -50
- package/dist/api/resources/products/client/requests/ProductsCreateRequest.d.ts +0 -50
- /package/api/resources/{products/client/requests/ProductsCreateRequest.js → assets/client/requests/AssetsUpdateRequest.js} +0 -0
- /package/{dist/api/resources/products/client/requests/ProductsCreateRequest.js → api/resources/collections/resources/fields/client/requests/FieldCreate.js} +0 -0
|
@@ -62,7 +62,7 @@ class Products {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await webflow.products.list("
|
|
65
|
+
* await webflow.products.list("site_id", {})
|
|
66
66
|
*/
|
|
67
67
|
list(siteId, request = {}, requestOptions) {
|
|
68
68
|
var _a;
|
|
@@ -76,13 +76,15 @@ class Products {
|
|
|
76
76
|
_queryParams["limit"] = limit.toString();
|
|
77
77
|
}
|
|
78
78
|
const _response = yield core.fetcher({
|
|
79
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
79
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products`),
|
|
80
80
|
method: "GET",
|
|
81
81
|
headers: {
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "2.
|
|
85
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
86
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
88
|
},
|
|
87
89
|
contentType: "application/json",
|
|
88
90
|
queryParameters: _queryParams,
|
|
@@ -137,17 +139,13 @@ class Products {
|
|
|
137
139
|
});
|
|
138
140
|
}
|
|
139
141
|
/**
|
|
140
|
-
*
|
|
142
|
+
* Creating a new Product involves creating both a Product and a SKU, since a Product Item has to have, at minimum, a single SKU.
|
|
141
143
|
*
|
|
142
|
-
*
|
|
144
|
+
* In order to create a Product with multiple SKUs - for example a T-shirt in sizes small, medium and large - you'll need to create `sku-properties`. In our T-shirt example, a single `sku-property` would be Color. Within that property, we'll need to list out the various colors a T-shirt could be as an array of `enum` values: `royal-blue`, `crimson-red`, and `forrest-green`.
|
|
143
145
|
*
|
|
144
|
-
*
|
|
145
|
-
* - You can't add `sku-values` to the SKU yet, since there are no enum IDs created yet. When this endpoint returns, it will have IDs filled in for the `sku-properties` enums.
|
|
146
|
-
* - With those IDs, update the default SKU with valid `sku-values` and create any additional SKUs (if needed), with valid `sku-values`.
|
|
147
|
-
* - You can also create the Product without `sku-properties` and add them in later.
|
|
148
|
-
* - If you add any `sku` properties, the default SKU will default to the first value of each option.
|
|
146
|
+
* Once, you've created a Product and its `sku-properties` with `enum` values, you can create your default SKU, which will automatically be a combination of the first `sku-properties` you've created. In our example, the default SKU will be a Royal Blue T-Shirt, because our first `enum` of our Color `sku-property` is Royal Blue. After you've created your product, you can create additional SKUs using the <a href="https://developers.webflow.com/reference/create-skus">Create SKU endpoint</a>
|
|
149
147
|
*
|
|
150
|
-
* Upon creation, the default product type will be `Advanced`. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown.
|
|
148
|
+
* Upon creation, the default product type will be `Advanced`. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown.
|
|
151
149
|
*
|
|
152
150
|
* Required scope | `ecommerce:write`
|
|
153
151
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -159,59 +157,24 @@ class Products {
|
|
|
159
157
|
* @throws {@link Webflow.InternalServerError}
|
|
160
158
|
*
|
|
161
159
|
* @example
|
|
162
|
-
* await webflow.products.create("
|
|
163
|
-
* publishStatus: Webflow.PublishStatus.Staging,
|
|
164
|
-
* product: {
|
|
165
|
-
* id: "580e63fc8c9a982ac9b8b745",
|
|
166
|
-
* lastPublished: new Date("2023-03-17T18:47:35.560Z"),
|
|
167
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.560Z"),
|
|
168
|
-
* createdOn: new Date("2023-03-17T18:47:35.560Z"),
|
|
169
|
-
* isArchived: false,
|
|
170
|
-
* isDraft: false,
|
|
171
|
-
* fieldData: {
|
|
172
|
-
* name: "My new item",
|
|
173
|
-
* slug: "my-new-item",
|
|
174
|
-
* skuProperties: [{
|
|
175
|
-
* id: "ff42fee0113744f693a764e3431a9cc2",
|
|
176
|
-
* name: "Color",
|
|
177
|
-
* enum: [{
|
|
178
|
-
* id: "64a74715c456e36762fc39a1",
|
|
179
|
-
* name: "Royal Blue",
|
|
180
|
-
* slug: "royal-blue"
|
|
181
|
-
* }]
|
|
182
|
-
* }]
|
|
183
|
-
* }
|
|
184
|
-
* },
|
|
185
|
-
* sku: {
|
|
186
|
-
* id: "580e63fc8c9a982ac9b8b745",
|
|
187
|
-
* lastPublished: new Date("2023-03-17T18:47:35.560Z"),
|
|
188
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.560Z"),
|
|
189
|
-
* createdOn: new Date("2023-03-17T18:47:35.560Z"),
|
|
190
|
-
* fieldData: {
|
|
191
|
-
* name: "My new item",
|
|
192
|
-
* slug: "my-new-item",
|
|
193
|
-
* price: {
|
|
194
|
-
* value: 100,
|
|
195
|
-
* unit: "USD"
|
|
196
|
-
* }
|
|
197
|
-
* }
|
|
198
|
-
* }
|
|
199
|
-
* })
|
|
160
|
+
* await webflow.products.create("site_id", {})
|
|
200
161
|
*/
|
|
201
|
-
create(siteId, request, requestOptions) {
|
|
162
|
+
create(siteId, request = {}, requestOptions) {
|
|
202
163
|
var _a;
|
|
203
164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
165
|
const _response = yield core.fetcher({
|
|
205
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
166
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products`),
|
|
206
167
|
method: "POST",
|
|
207
168
|
headers: {
|
|
208
169
|
Authorization: yield this._getAuthorizationHeader(),
|
|
209
170
|
"X-Fern-Language": "JavaScript",
|
|
210
171
|
"X-Fern-SDK-Name": "webflow-api",
|
|
211
|
-
"X-Fern-SDK-Version": "2.
|
|
172
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
173
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
212
175
|
},
|
|
213
176
|
contentType: "application/json",
|
|
214
|
-
body: yield serializers.
|
|
177
|
+
body: yield serializers.ProductSkuCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
215
178
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
216
179
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
217
180
|
});
|
|
@@ -275,19 +238,21 @@ class Products {
|
|
|
275
238
|
* @throws {@link Webflow.InternalServerError}
|
|
276
239
|
*
|
|
277
240
|
* @example
|
|
278
|
-
* await webflow.products.get("
|
|
241
|
+
* await webflow.products.get("site_id", "product_id")
|
|
279
242
|
*/
|
|
280
243
|
get(siteId, productId, requestOptions) {
|
|
281
244
|
var _a;
|
|
282
245
|
return __awaiter(this, void 0, void 0, function* () {
|
|
283
246
|
const _response = yield core.fetcher({
|
|
284
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
247
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products/${productId}`),
|
|
285
248
|
method: "GET",
|
|
286
249
|
headers: {
|
|
287
250
|
Authorization: yield this._getAuthorizationHeader(),
|
|
288
251
|
"X-Fern-Language": "JavaScript",
|
|
289
252
|
"X-Fern-SDK-Name": "webflow-api",
|
|
290
|
-
"X-Fern-SDK-Version": "2.
|
|
253
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
254
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
291
256
|
},
|
|
292
257
|
contentType: "application/json",
|
|
293
258
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -353,25 +318,46 @@ class Products {
|
|
|
353
318
|
* @throws {@link Webflow.InternalServerError}
|
|
354
319
|
*
|
|
355
320
|
* @example
|
|
356
|
-
* await webflow.products.update("
|
|
357
|
-
* publishStatus: Webflow.PublishStatus.Staging,
|
|
321
|
+
* await webflow.products.update("site_id", "product_id", {
|
|
358
322
|
* product: {
|
|
359
323
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
360
|
-
* lastPublished: new Date("2023-03-17T18:47:35.
|
|
361
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.
|
|
362
|
-
* createdOn: new Date("2023-03-17T18:47:35.
|
|
324
|
+
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
325
|
+
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
326
|
+
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
363
327
|
* isArchived: false,
|
|
364
328
|
* isDraft: false,
|
|
365
329
|
* fieldData: {
|
|
366
|
-
* name: "
|
|
367
|
-
* slug: "
|
|
330
|
+
* name: "T-Shirt",
|
|
331
|
+
* slug: "t-shirt",
|
|
332
|
+
* description: "A plain cotton t-shirt.",
|
|
333
|
+
* shippable: true,
|
|
368
334
|
* skuProperties: [{
|
|
369
|
-
* id: "
|
|
335
|
+
* id: "color",
|
|
370
336
|
* name: "Color",
|
|
371
337
|
* enum: [{
|
|
372
|
-
* id: "
|
|
338
|
+
* id: "royal-blue",
|
|
373
339
|
* name: "Royal Blue",
|
|
374
340
|
* slug: "royal-blue"
|
|
341
|
+
* }, {
|
|
342
|
+
* id: "crimson-red",
|
|
343
|
+
* name: "Crimson Red",
|
|
344
|
+
* slug: "crimson-red"
|
|
345
|
+
* }, {
|
|
346
|
+
* id: "forrest-green",
|
|
347
|
+
* name: "Forrst Green",
|
|
348
|
+
* slug: "forrest-green"
|
|
349
|
+
* }, {
|
|
350
|
+
* id: "id",
|
|
351
|
+
* name: "name",
|
|
352
|
+
* slug: "slug"
|
|
353
|
+
* }]
|
|
354
|
+
* }, {
|
|
355
|
+
* id: "Color",
|
|
356
|
+
* name: "Color",
|
|
357
|
+
* enum: [{
|
|
358
|
+
* id: "id",
|
|
359
|
+
* name: "name",
|
|
360
|
+
* slug: "slug"
|
|
375
361
|
* }]
|
|
376
362
|
* }]
|
|
377
363
|
* }
|
|
@@ -382,13 +368,15 @@ class Products {
|
|
|
382
368
|
var _a;
|
|
383
369
|
return __awaiter(this, void 0, void 0, function* () {
|
|
384
370
|
const _response = yield core.fetcher({
|
|
385
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
371
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products/${productId}`),
|
|
386
372
|
method: "PATCH",
|
|
387
373
|
headers: {
|
|
388
374
|
Authorization: yield this._getAuthorizationHeader(),
|
|
389
375
|
"X-Fern-Language": "JavaScript",
|
|
390
376
|
"X-Fern-SDK-Name": "webflow-api",
|
|
391
|
-
"X-Fern-SDK-Version": "2.
|
|
377
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
378
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
379
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
392
380
|
},
|
|
393
381
|
contentType: "application/json",
|
|
394
382
|
body: yield serializers.ProductsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -457,20 +445,20 @@ class Products {
|
|
|
457
445
|
* @throws {@link Webflow.InternalServerError}
|
|
458
446
|
*
|
|
459
447
|
* @example
|
|
460
|
-
* await webflow.products.createSku("
|
|
461
|
-
* publishStatus: Webflow.PublishStatus.Staging,
|
|
448
|
+
* await webflow.products.createSku("site_id", "product_id", {
|
|
462
449
|
* skus: [{
|
|
463
450
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
464
|
-
* lastPublished: new Date("2023-03-17T18:47:35.
|
|
465
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.
|
|
466
|
-
* createdOn: new Date("2023-03-17T18:47:35.
|
|
451
|
+
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
452
|
+
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
453
|
+
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
467
454
|
* fieldData: {
|
|
468
|
-
* name: "
|
|
469
|
-
* slug: "
|
|
455
|
+
* name: "Blue T-shirt",
|
|
456
|
+
* slug: "t-shirt-blue",
|
|
470
457
|
* price: {
|
|
471
458
|
* value: 100,
|
|
472
459
|
* unit: "USD"
|
|
473
|
-
* }
|
|
460
|
+
* },
|
|
461
|
+
* quantity: 10
|
|
474
462
|
* }
|
|
475
463
|
* }]
|
|
476
464
|
* })
|
|
@@ -479,13 +467,15 @@ class Products {
|
|
|
479
467
|
var _a;
|
|
480
468
|
return __awaiter(this, void 0, void 0, function* () {
|
|
481
469
|
const _response = yield core.fetcher({
|
|
482
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
470
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products/${productId}/skus`),
|
|
483
471
|
method: "POST",
|
|
484
472
|
headers: {
|
|
485
473
|
Authorization: yield this._getAuthorizationHeader(),
|
|
486
474
|
"X-Fern-Language": "JavaScript",
|
|
487
475
|
"X-Fern-SDK-Name": "webflow-api",
|
|
488
|
-
"X-Fern-SDK-Version": "2.
|
|
476
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
477
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
478
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
489
479
|
},
|
|
490
480
|
contentType: "application/json",
|
|
491
481
|
body: yield serializers.ProductsCreateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -552,20 +542,20 @@ class Products {
|
|
|
552
542
|
* @throws {@link Webflow.InternalServerError}
|
|
553
543
|
*
|
|
554
544
|
* @example
|
|
555
|
-
* await webflow.products.updateSku("
|
|
556
|
-
* publishStatus: Webflow.PublishStatus.Staging,
|
|
545
|
+
* await webflow.products.updateSku("site_id", "product_id", "sku_id", {
|
|
557
546
|
* sku: {
|
|
558
547
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
559
|
-
* lastPublished: new Date("2023-03-17T18:47:35.
|
|
560
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.
|
|
561
|
-
* createdOn: new Date("2023-03-17T18:47:35.
|
|
548
|
+
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
549
|
+
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
550
|
+
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
562
551
|
* fieldData: {
|
|
563
|
-
* name: "
|
|
564
|
-
* slug: "
|
|
552
|
+
* name: "Blue T-shirt",
|
|
553
|
+
* slug: "t-shirt-blue",
|
|
565
554
|
* price: {
|
|
566
555
|
* value: 100,
|
|
567
556
|
* unit: "USD"
|
|
568
|
-
* }
|
|
557
|
+
* },
|
|
558
|
+
* quantity: 10
|
|
569
559
|
* }
|
|
570
560
|
* }
|
|
571
561
|
* })
|
|
@@ -574,13 +564,15 @@ class Products {
|
|
|
574
564
|
var _a;
|
|
575
565
|
return __awaiter(this, void 0, void 0, function* () {
|
|
576
566
|
const _response = yield core.fetcher({
|
|
577
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
567
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products/${productId}/skus/${skuId}`),
|
|
578
568
|
method: "PATCH",
|
|
579
569
|
headers: {
|
|
580
570
|
Authorization: yield this._getAuthorizationHeader(),
|
|
581
571
|
"X-Fern-Language": "JavaScript",
|
|
582
572
|
"X-Fern-SDK-Name": "webflow-api",
|
|
583
|
-
"X-Fern-SDK-Version": "2.
|
|
573
|
+
"X-Fern-SDK-Version": "2.1.2",
|
|
574
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
575
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
584
576
|
},
|
|
585
577
|
contentType: "application/json",
|
|
586
578
|
body: yield serializers.ProductsUpdateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface ProductSkuCreate {
|
|
10
|
+
publishStatus?: Webflow.PublishStatus;
|
|
11
|
+
/** The Product Object */
|
|
12
|
+
product?: Webflow.ProductSkuCreateProduct;
|
|
13
|
+
/** The SKU object */
|
|
14
|
+
sku?: Webflow.ProductSkuCreateSku;
|
|
15
|
+
}
|
|
@@ -5,19 +5,19 @@ import * as Webflow from "../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* publishStatus: Webflow.PublishStatus.Staging,
|
|
9
8
|
* skus: [{
|
|
10
9
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
11
|
-
* lastPublished: new Date("2023-03-17T18:47:35.
|
|
12
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.
|
|
13
|
-
* createdOn: new Date("2023-03-17T18:47:35.
|
|
10
|
+
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
11
|
+
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
12
|
+
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
14
13
|
* fieldData: {
|
|
15
|
-
* name: "
|
|
16
|
-
* slug: "
|
|
14
|
+
* name: "Blue T-shirt",
|
|
15
|
+
* slug: "t-shirt-blue",
|
|
17
16
|
* price: {
|
|
18
17
|
* value: 100,
|
|
19
18
|
* unit: "USD"
|
|
20
|
-
* }
|
|
19
|
+
* },
|
|
20
|
+
* quantity: 10
|
|
21
21
|
* }
|
|
22
22
|
* }]
|
|
23
23
|
* }
|
|
@@ -5,24 +5,45 @@ import * as Webflow from "../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* publishStatus: Webflow.PublishStatus.Staging,
|
|
9
8
|
* product: {
|
|
10
9
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
11
|
-
* lastPublished: new Date("2023-03-17T18:47:35.
|
|
12
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.
|
|
13
|
-
* createdOn: new Date("2023-03-17T18:47:35.
|
|
10
|
+
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
11
|
+
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
12
|
+
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
14
13
|
* isArchived: false,
|
|
15
14
|
* isDraft: false,
|
|
16
15
|
* fieldData: {
|
|
17
|
-
* name: "
|
|
18
|
-
* slug: "
|
|
16
|
+
* name: "T-Shirt",
|
|
17
|
+
* slug: "t-shirt",
|
|
18
|
+
* description: "A plain cotton t-shirt.",
|
|
19
|
+
* shippable: true,
|
|
19
20
|
* skuProperties: [{
|
|
20
|
-
* id: "
|
|
21
|
+
* id: "color",
|
|
21
22
|
* name: "Color",
|
|
22
23
|
* enum: [{
|
|
23
|
-
* id: "
|
|
24
|
+
* id: "royal-blue",
|
|
24
25
|
* name: "Royal Blue",
|
|
25
26
|
* slug: "royal-blue"
|
|
27
|
+
* }, {
|
|
28
|
+
* id: "crimson-red",
|
|
29
|
+
* name: "Crimson Red",
|
|
30
|
+
* slug: "crimson-red"
|
|
31
|
+
* }, {
|
|
32
|
+
* id: "forrest-green",
|
|
33
|
+
* name: "Forrst Green",
|
|
34
|
+
* slug: "forrest-green"
|
|
35
|
+
* }, {
|
|
36
|
+
* id: "id",
|
|
37
|
+
* name: "name",
|
|
38
|
+
* slug: "slug"
|
|
39
|
+
* }]
|
|
40
|
+
* }, {
|
|
41
|
+
* id: "Color",
|
|
42
|
+
* name: "Color",
|
|
43
|
+
* enum: [{
|
|
44
|
+
* id: "id",
|
|
45
|
+
* name: "name",
|
|
46
|
+
* slug: "slug"
|
|
26
47
|
* }]
|
|
27
48
|
* }]
|
|
28
49
|
* }
|
|
@@ -5,19 +5,19 @@ import * as Webflow from "../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* publishStatus: Webflow.PublishStatus.Staging,
|
|
9
8
|
* sku: {
|
|
10
9
|
* id: "580e63fc8c9a982ac9b8b745",
|
|
11
|
-
* lastPublished: new Date("2023-03-17T18:47:35.
|
|
12
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.
|
|
13
|
-
* createdOn: new Date("2023-03-17T18:47:35.
|
|
10
|
+
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
11
|
+
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
12
|
+
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
14
13
|
* fieldData: {
|
|
15
|
-
* name: "
|
|
16
|
-
* slug: "
|
|
14
|
+
* name: "Blue T-shirt",
|
|
15
|
+
* slug: "t-shirt-blue",
|
|
17
16
|
* price: {
|
|
18
17
|
* value: 100,
|
|
19
18
|
* unit: "USD"
|
|
20
|
-
* }
|
|
19
|
+
* },
|
|
20
|
+
* quantity: 10
|
|
21
21
|
* }
|
|
22
22
|
* }
|
|
23
23
|
* }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ProductsListRequest } from "./ProductsListRequest";
|
|
2
|
-
export {
|
|
2
|
+
export { ProductSkuCreate } from "./ProductSkuCreate";
|
|
3
3
|
export { ProductsUpdateRequest } from "./ProductsUpdateRequest";
|
|
4
4
|
export { ProductsCreateSkuRequest } from "./ProductsCreateSkuRequest";
|
|
5
5
|
export { ProductsUpdateSkuRequest } from "./ProductsUpdateSkuRequest";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* The Product Object
|
|
7
|
+
*/
|
|
8
|
+
export interface ProductSkuCreateProduct {
|
|
9
|
+
/** Unique identifier for the Product */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** The date the Product was last published */
|
|
12
|
+
lastPublished?: Date;
|
|
13
|
+
/** The date the Product was last updated */
|
|
14
|
+
lastUpdated?: Date;
|
|
15
|
+
/** The date the Product was created */
|
|
16
|
+
createdOn?: Date;
|
|
17
|
+
/** Boolean determining if the Product is set to archived */
|
|
18
|
+
isArchived?: boolean;
|
|
19
|
+
/** Boolean determining if the Product is set to draft */
|
|
20
|
+
isDraft?: boolean;
|
|
21
|
+
fieldData?: Webflow.ProductSkuCreateProductFieldData;
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../..";
|
|
5
|
+
export interface ProductSkuCreateProductFieldData {
|
|
6
|
+
/** Name of the Product */
|
|
7
|
+
name: string;
|
|
8
|
+
/** URL structure of the Product in your site. */
|
|
9
|
+
slug: string;
|
|
10
|
+
/** A description of your product */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** Boolean determining if the Product is shippable */
|
|
13
|
+
shippable?: boolean;
|
|
14
|
+
/** Variant types to include in SKUs */
|
|
15
|
+
skuProperties?: Webflow.SkuPropertyList[];
|
|
16
|
+
/** The categories your product belongs to. */
|
|
17
|
+
categories?: unknown[];
|
|
18
|
+
/** Product tax class */
|
|
19
|
+
taxCategory?: Webflow.ProductSkuCreateProductFieldDataTaxCategory;
|
|
20
|
+
/** <a href="https://university.webflow.com/lesson/add-and-manage-products-and-categories?topics=ecommerce#how-to-understand-product-types">Product types.</a> Enums reflect the following values in order: Physical, Digital, Service, Advanced" */
|
|
21
|
+
ecProductType?: Webflow.ProductSkuCreateProductFieldDataEcProductType;
|
|
22
|
+
additionalProperties?: unknown;
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* <a href="https://university.webflow.com/lesson/add-and-manage-products-and-categories?topics=ecommerce#how-to-understand-product-types">Product types.</a> Enums reflect the following values in order: Physical, Digital, Service, Advanced"
|
|
6
|
+
*/
|
|
7
|
+
export declare type ProductSkuCreateProductFieldDataEcProductType = "ff42fee0113744f693a764e3431a9cc2" | "f22027db68002190aef89a4a2b7ac8a1" | "c599e43b1a1c34d5a323aedf75d3adf6" | "b6ccc1830db4b1babeb06a9ac5f6dd76";
|
|
8
|
+
export declare const ProductSkuCreateProductFieldDataEcProductType: {
|
|
9
|
+
readonly Ff42Fee0113744F693A764E3431A9Cc2: "ff42fee0113744f693a764e3431a9cc2";
|
|
10
|
+
readonly F22027Db68002190Aef89A4A2B7Ac8A1: "f22027db68002190aef89a4a2b7ac8a1";
|
|
11
|
+
readonly C599E43B1A1C34D5A323Aedf75D3Adf6: "c599e43b1a1c34d5a323aedf75d3adf6";
|
|
12
|
+
readonly B6Ccc1830Db4B1Babeb06A9Ac5F6Dd76: "b6ccc1830db4b1babeb06a9ac5f6dd76";
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProductSkuCreateProductFieldDataEcProductType = void 0;
|
|
7
|
+
exports.ProductSkuCreateProductFieldDataEcProductType = {
|
|
8
|
+
Ff42Fee0113744F693A764E3431A9Cc2: "ff42fee0113744f693a764e3431a9cc2",
|
|
9
|
+
F22027Db68002190Aef89A4A2B7Ac8A1: "f22027db68002190aef89a4a2b7ac8a1",
|
|
10
|
+
C599E43B1A1C34D5A323Aedf75D3Adf6: "c599e43b1a1c34d5a323aedf75d3adf6",
|
|
11
|
+
B6Ccc1830Db4B1Babeb06A9Ac5F6Dd76: "b6ccc1830db4b1babeb06a9ac5f6dd76",
|
|
12
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Product tax class
|
|
6
|
+
*/
|
|
7
|
+
export declare type ProductSkuCreateProductFieldDataTaxCategory = "standard-taxable" | "standard-exempt" | "books-religious" | "books-textbook" | "clothing" | "clothing-swimwear" | "digital-goods" | "digital-service" | "drugs-non-prescription" | "drugs-prescription" | "food-bottled-water" | "food-candy" | "food-groceries" | "food-prepared" | "food-soda" | "food-supplements" | "magazine-individual" | "magazine-subscription" | "service-admission" | "service-advertising" | "service-dry-cleaning" | "service-hairdressing" | "service-installation" | "service-miscellaneous" | "service-parking" | "service-printing" | "service-professional" | "service-repair" | "service-training";
|
|
8
|
+
export declare const ProductSkuCreateProductFieldDataTaxCategory: {
|
|
9
|
+
readonly StandardTaxable: "standard-taxable";
|
|
10
|
+
readonly StandardExempt: "standard-exempt";
|
|
11
|
+
readonly BooksReligious: "books-religious";
|
|
12
|
+
readonly BooksTextbook: "books-textbook";
|
|
13
|
+
readonly Clothing: "clothing";
|
|
14
|
+
readonly ClothingSwimwear: "clothing-swimwear";
|
|
15
|
+
readonly DigitalGoods: "digital-goods";
|
|
16
|
+
readonly DigitalService: "digital-service";
|
|
17
|
+
readonly DrugsNonPrescription: "drugs-non-prescription";
|
|
18
|
+
readonly DrugsPrescription: "drugs-prescription";
|
|
19
|
+
readonly FoodBottledWater: "food-bottled-water";
|
|
20
|
+
readonly FoodCandy: "food-candy";
|
|
21
|
+
readonly FoodGroceries: "food-groceries";
|
|
22
|
+
readonly FoodPrepared: "food-prepared";
|
|
23
|
+
readonly FoodSoda: "food-soda";
|
|
24
|
+
readonly FoodSupplements: "food-supplements";
|
|
25
|
+
readonly MagazineIndividual: "magazine-individual";
|
|
26
|
+
readonly MagazineSubscription: "magazine-subscription";
|
|
27
|
+
readonly ServiceAdmission: "service-admission";
|
|
28
|
+
readonly ServiceAdvertising: "service-advertising";
|
|
29
|
+
readonly ServiceDryCleaning: "service-dry-cleaning";
|
|
30
|
+
readonly ServiceHairdressing: "service-hairdressing";
|
|
31
|
+
readonly ServiceInstallation: "service-installation";
|
|
32
|
+
readonly ServiceMiscellaneous: "service-miscellaneous";
|
|
33
|
+
readonly ServiceParking: "service-parking";
|
|
34
|
+
readonly ServicePrinting: "service-printing";
|
|
35
|
+
readonly ServiceProfessional: "service-professional";
|
|
36
|
+
readonly ServiceRepair: "service-repair";
|
|
37
|
+
readonly ServiceTraining: "service-training";
|
|
38
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ProductSkuCreateProductFieldDataTaxCategory = void 0;
|
|
7
|
+
exports.ProductSkuCreateProductFieldDataTaxCategory = {
|
|
8
|
+
StandardTaxable: "standard-taxable",
|
|
9
|
+
StandardExempt: "standard-exempt",
|
|
10
|
+
BooksReligious: "books-religious",
|
|
11
|
+
BooksTextbook: "books-textbook",
|
|
12
|
+
Clothing: "clothing",
|
|
13
|
+
ClothingSwimwear: "clothing-swimwear",
|
|
14
|
+
DigitalGoods: "digital-goods",
|
|
15
|
+
DigitalService: "digital-service",
|
|
16
|
+
DrugsNonPrescription: "drugs-non-prescription",
|
|
17
|
+
DrugsPrescription: "drugs-prescription",
|
|
18
|
+
FoodBottledWater: "food-bottled-water",
|
|
19
|
+
FoodCandy: "food-candy",
|
|
20
|
+
FoodGroceries: "food-groceries",
|
|
21
|
+
FoodPrepared: "food-prepared",
|
|
22
|
+
FoodSoda: "food-soda",
|
|
23
|
+
FoodSupplements: "food-supplements",
|
|
24
|
+
MagazineIndividual: "magazine-individual",
|
|
25
|
+
MagazineSubscription: "magazine-subscription",
|
|
26
|
+
ServiceAdmission: "service-admission",
|
|
27
|
+
ServiceAdvertising: "service-advertising",
|
|
28
|
+
ServiceDryCleaning: "service-dry-cleaning",
|
|
29
|
+
ServiceHairdressing: "service-hairdressing",
|
|
30
|
+
ServiceInstallation: "service-installation",
|
|
31
|
+
ServiceMiscellaneous: "service-miscellaneous",
|
|
32
|
+
ServiceParking: "service-parking",
|
|
33
|
+
ServicePrinting: "service-printing",
|
|
34
|
+
ServiceProfessional: "service-professional",
|
|
35
|
+
ServiceRepair: "service-repair",
|
|
36
|
+
ServiceTraining: "service-training",
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../..";
|
|
5
|
+
/**
|
|
6
|
+
* The SKU object
|
|
7
|
+
*/
|
|
8
|
+
export interface ProductSkuCreateSku {
|
|
9
|
+
/** Unique identifier for the Product */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** The date the Product was last published */
|
|
12
|
+
lastPublished?: Date;
|
|
13
|
+
/** The date the Product was last updated */
|
|
14
|
+
lastUpdated?: Date;
|
|
15
|
+
/** The date the Product was created */
|
|
16
|
+
createdOn?: Date;
|
|
17
|
+
/** Standard and Custom fields for a SKU */
|
|
18
|
+
fieldData?: Webflow.ProductSkuCreateSkuFieldData;
|
|
19
|
+
}
|