webflow-api 2.0.0-beta → 2.1.1
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 +33 -2
- 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 +11 -4
- package/api/resources/collections/client/Client.js +31 -14
- package/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +8 -0
- package/api/resources/collections/resources/fields/client/Client.d.ts +16 -1
- package/api/resources/collections/resources/fields/client/Client.js +24 -5
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +23 -0
- package/api/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +8 -0
- 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 +82 -16
- package/api/resources/collections/resources/items/client/Client.js +302 -29
- 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 +2 -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 +20 -3
- package/api/resources/pages/resources/scripts/client/Client.js +32 -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 +16 -1
- package/api/resources/scripts/client/Client.js +28 -7
- package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +9 -0
- package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +8 -0
- 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 +21 -4
- package/api/resources/sites/resources/scripts/client/Client.js +37 -12
- package/api/resources/token/client/Client.js +8 -4
- package/api/resources/users/client/Client.d.ts +14 -18
- package/api/resources/users/client/Client.js +35 -29
- 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 +26 -18
- 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 +11 -4
- package/dist/api/resources/collections/client/Client.js +31 -14
- package/dist/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +8 -0
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +16 -1
- package/dist/api/resources/collections/resources/fields/client/Client.js +24 -5
- 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 +8 -0
- 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 +82 -16
- package/dist/api/resources/collections/resources/items/client/Client.js +302 -29
- 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 +2 -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 +20 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +32 -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 +16 -1
- package/dist/api/resources/scripts/client/Client.js +28 -7
- package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +9 -0
- package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +8 -0
- 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 +21 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +37 -12
- package/dist/api/resources/token/client/Client.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +14 -18
- package/dist/api/resources/users/client/Client.js +35 -29
- 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 +26 -18
- 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/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/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/{serialization/resources/products/client/requests/ProductsCreateRequest.js → dist/serialization/resources/products/client/requests/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/jest.config.js +5 -0
- package/package.json +6 -4
- 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/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/{dist/serialization/resources/products/client/requests/ProductsCreateRequest.js → serialization/resources/products/client/requests/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/dist/oauth.d.ts +0 -27
- package/dist/oauth.js +0 -113
- package/oauth.d.ts +0 -27
- package/oauth.js +0 -113
- /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
|
@@ -60,21 +60,32 @@ class Forms {
|
|
|
60
60
|
* @throws {@link Webflow.InternalServerError}
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await webflow.forms.list("
|
|
63
|
+
* await webflow.forms.list("site_id", {})
|
|
64
64
|
*/
|
|
65
|
-
list(siteId, requestOptions) {
|
|
65
|
+
list(siteId, request = {}, requestOptions) {
|
|
66
66
|
var _a;
|
|
67
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const { limit, offset } = request;
|
|
69
|
+
const _queryParams = {};
|
|
70
|
+
if (limit != null) {
|
|
71
|
+
_queryParams["limit"] = limit.toString();
|
|
72
|
+
}
|
|
73
|
+
if (offset != null) {
|
|
74
|
+
_queryParams["offset"] = offset.toString();
|
|
75
|
+
}
|
|
68
76
|
const _response = yield core.fetcher({
|
|
69
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
77
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/forms`),
|
|
70
78
|
method: "GET",
|
|
71
79
|
headers: {
|
|
72
80
|
Authorization: yield this._getAuthorizationHeader(),
|
|
73
81
|
"X-Fern-Language": "JavaScript",
|
|
74
82
|
"X-Fern-SDK-Name": "webflow-api",
|
|
75
|
-
"X-Fern-SDK-Version": "
|
|
83
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
84
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
86
|
},
|
|
77
87
|
contentType: "application/json",
|
|
88
|
+
queryParameters: _queryParams,
|
|
78
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
79
90
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
80
91
|
});
|
|
@@ -135,19 +146,21 @@ class Forms {
|
|
|
135
146
|
* @throws {@link Webflow.InternalServerError}
|
|
136
147
|
*
|
|
137
148
|
* @example
|
|
138
|
-
* await webflow.forms.get("
|
|
149
|
+
* await webflow.forms.get("form_id")
|
|
139
150
|
*/
|
|
140
151
|
get(formId, requestOptions) {
|
|
141
152
|
var _a;
|
|
142
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
154
|
const _response = yield core.fetcher({
|
|
144
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
155
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${formId}`),
|
|
145
156
|
method: "GET",
|
|
146
157
|
headers: {
|
|
147
158
|
Authorization: yield this._getAuthorizationHeader(),
|
|
148
159
|
"X-Fern-Language": "JavaScript",
|
|
149
160
|
"X-Fern-SDK-Name": "webflow-api",
|
|
150
|
-
"X-Fern-SDK-Version": "
|
|
161
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
162
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
163
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
164
|
},
|
|
152
165
|
contentType: "application/json",
|
|
153
166
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -208,19 +221,21 @@ class Forms {
|
|
|
208
221
|
* @throws {@link Webflow.InternalServerError}
|
|
209
222
|
*
|
|
210
223
|
* @example
|
|
211
|
-
* await webflow.forms.listSubmissions("
|
|
224
|
+
* await webflow.forms.listSubmissions("form_id")
|
|
212
225
|
*/
|
|
213
226
|
listSubmissions(formId, requestOptions) {
|
|
214
227
|
var _a;
|
|
215
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
229
|
const _response = yield core.fetcher({
|
|
217
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
230
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${formId}/submissions`),
|
|
218
231
|
method: "GET",
|
|
219
232
|
headers: {
|
|
220
233
|
Authorization: yield this._getAuthorizationHeader(),
|
|
221
234
|
"X-Fern-Language": "JavaScript",
|
|
222
235
|
"X-Fern-SDK-Name": "webflow-api",
|
|
223
|
-
"X-Fern-SDK-Version": "
|
|
236
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
237
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
239
|
},
|
|
225
240
|
contentType: "application/json",
|
|
226
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -281,19 +296,21 @@ class Forms {
|
|
|
281
296
|
* @throws {@link Webflow.InternalServerError}
|
|
282
297
|
*
|
|
283
298
|
* @example
|
|
284
|
-
* await webflow.forms.getSubmission("
|
|
299
|
+
* await webflow.forms.getSubmission("form_submission_id")
|
|
285
300
|
*/
|
|
286
301
|
getSubmission(formSubmissionId, requestOptions) {
|
|
287
302
|
var _a;
|
|
288
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
289
304
|
const _response = yield core.fetcher({
|
|
290
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
305
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${formSubmissionId}`),
|
|
291
306
|
method: "GET",
|
|
292
307
|
headers: {
|
|
293
308
|
Authorization: yield this._getAuthorizationHeader(),
|
|
294
309
|
"X-Fern-Language": "JavaScript",
|
|
295
310
|
"X-Fern-SDK-Name": "webflow-api",
|
|
296
|
-
"X-Fern-SDK-Version": "
|
|
311
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
312
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
313
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
297
314
|
},
|
|
298
315
|
contentType: "application/json",
|
|
299
316
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -355,19 +372,21 @@ class Forms {
|
|
|
355
372
|
* @throws {@link Webflow.InternalServerError}
|
|
356
373
|
*
|
|
357
374
|
* @example
|
|
358
|
-
* await webflow.forms.updateSubmission("
|
|
375
|
+
* await webflow.forms.updateSubmission("form_submission_id", {})
|
|
359
376
|
*/
|
|
360
377
|
updateSubmission(formSubmissionId, request = {}, requestOptions) {
|
|
361
378
|
var _a;
|
|
362
379
|
return __awaiter(this, void 0, void 0, function* () {
|
|
363
380
|
const _response = yield core.fetcher({
|
|
364
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
381
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${formSubmissionId}`),
|
|
365
382
|
method: "PATCH",
|
|
366
383
|
headers: {
|
|
367
384
|
Authorization: yield this._getAuthorizationHeader(),
|
|
368
385
|
"X-Fern-Language": "JavaScript",
|
|
369
386
|
"X-Fern-SDK-Name": "webflow-api",
|
|
370
|
-
"X-Fern-SDK-Version": "
|
|
387
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
388
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
389
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
371
390
|
},
|
|
372
391
|
contentType: "application/json",
|
|
373
392
|
body: yield serializers.FormsUpdateSubmissionRequest.jsonOrThrow(request, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface FormsListRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Maximum number of records to be returned (max limit: 100)
|
|
11
|
+
*/
|
|
12
|
+
limit?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Offset used for pagination if the results have more than limit records
|
|
15
|
+
*/
|
|
16
|
+
offset?: number;
|
|
17
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * as collections from "./collections";
|
|
2
|
+
export * as pages from "./pages";
|
|
3
|
+
export * from "./pages/types";
|
|
2
4
|
export * as users from "./users";
|
|
3
5
|
export * from "./users/types";
|
|
4
6
|
export * as accessGroups from "./accessGroups";
|
|
@@ -11,7 +13,6 @@ export * as inventory from "./inventory";
|
|
|
11
13
|
export * from "./inventory/types";
|
|
12
14
|
export * as token from "./token";
|
|
13
15
|
export * as sites from "./sites";
|
|
14
|
-
export * as pages from "./pages";
|
|
15
16
|
export * as scripts from "./scripts";
|
|
16
17
|
export * as webhooks from "./webhooks";
|
|
17
18
|
export * as assets from "./assets";
|
|
@@ -19,6 +20,7 @@ export * as forms from "./forms";
|
|
|
19
20
|
export * as ecommerce from "./ecommerce";
|
|
20
21
|
export * from "./sites/client/requests";
|
|
21
22
|
export * from "./collections/client/requests";
|
|
23
|
+
export * from "./pages/client/requests";
|
|
22
24
|
export * from "./scripts/client/requests";
|
|
23
25
|
export * from "./webhooks/client/requests";
|
|
24
26
|
export * from "./assets/client/requests";
|
|
@@ -26,8 +26,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ecommerce = exports.forms = exports.assets = exports.webhooks = exports.scripts = exports.
|
|
29
|
+
exports.ecommerce = exports.forms = exports.assets = exports.webhooks = exports.scripts = exports.sites = exports.token = exports.inventory = exports.orders = exports.products = exports.accessGroups = exports.users = exports.pages = exports.collections = void 0;
|
|
30
30
|
exports.collections = __importStar(require("./collections"));
|
|
31
|
+
exports.pages = __importStar(require("./pages"));
|
|
32
|
+
__exportStar(require("./pages/types"), exports);
|
|
31
33
|
exports.users = __importStar(require("./users"));
|
|
32
34
|
__exportStar(require("./users/types"), exports);
|
|
33
35
|
exports.accessGroups = __importStar(require("./accessGroups"));
|
|
@@ -40,7 +42,6 @@ exports.inventory = __importStar(require("./inventory"));
|
|
|
40
42
|
__exportStar(require("./inventory/types"), exports);
|
|
41
43
|
exports.token = __importStar(require("./token"));
|
|
42
44
|
exports.sites = __importStar(require("./sites"));
|
|
43
|
-
exports.pages = __importStar(require("./pages"));
|
|
44
45
|
exports.scripts = __importStar(require("./scripts"));
|
|
45
46
|
exports.webhooks = __importStar(require("./webhooks"));
|
|
46
47
|
exports.assets = __importStar(require("./assets"));
|
|
@@ -48,6 +49,7 @@ exports.forms = __importStar(require("./forms"));
|
|
|
48
49
|
exports.ecommerce = __importStar(require("./ecommerce"));
|
|
49
50
|
__exportStar(require("./sites/client/requests"), exports);
|
|
50
51
|
__exportStar(require("./collections/client/requests"), exports);
|
|
52
|
+
__exportStar(require("./pages/client/requests"), exports);
|
|
51
53
|
__exportStar(require("./scripts/client/requests"), exports);
|
|
52
54
|
__exportStar(require("./webhooks/client/requests"), exports);
|
|
53
55
|
__exportStar(require("./assets/client/requests"), exports);
|
|
@@ -30,7 +30,7 @@ export declare class Inventory {
|
|
|
30
30
|
* @throws {@link Webflow.InternalServerError}
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
-
* await webflow.inventory.list("
|
|
33
|
+
* await webflow.inventory.list("collection_id", "item_id")
|
|
34
34
|
*/
|
|
35
35
|
list(collectionId: string, itemId: string, requestOptions?: Inventory.RequestOptions): Promise<Webflow.InventoryItem>;
|
|
36
36
|
/**
|
|
@@ -46,7 +46,7 @@ export declare class Inventory {
|
|
|
46
46
|
* @throws {@link Webflow.InternalServerError}
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
|
-
* await webflow.inventory.update("
|
|
49
|
+
* await webflow.inventory.update("collection_id", "item_id", {
|
|
50
50
|
* inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite,
|
|
51
51
|
* updateQuantity: 1,
|
|
52
52
|
* quantity: 100
|
|
@@ -62,19 +62,21 @@ class Inventory {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await webflow.inventory.list("
|
|
65
|
+
* await webflow.inventory.list("collection_id", "item_id")
|
|
66
66
|
*/
|
|
67
67
|
list(collectionId, itemId, requestOptions) {
|
|
68
68
|
var _a;
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
70
|
const _response = yield core.fetcher({
|
|
71
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
71
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/${itemId}/inventory`),
|
|
72
72
|
method: "GET",
|
|
73
73
|
headers: {
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "webflow-api",
|
|
77
|
-
"X-Fern-SDK-Version": "
|
|
77
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
78
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
80
|
},
|
|
79
81
|
contentType: "application/json",
|
|
80
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -140,7 +142,7 @@ class Inventory {
|
|
|
140
142
|
* @throws {@link Webflow.InternalServerError}
|
|
141
143
|
*
|
|
142
144
|
* @example
|
|
143
|
-
* await webflow.inventory.update("
|
|
145
|
+
* await webflow.inventory.update("collection_id", "item_id", {
|
|
144
146
|
* inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite,
|
|
145
147
|
* updateQuantity: 1,
|
|
146
148
|
* quantity: 100
|
|
@@ -150,13 +152,15 @@ class Inventory {
|
|
|
150
152
|
var _a;
|
|
151
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
152
154
|
const _response = yield core.fetcher({
|
|
153
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
155
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/${itemId}/inventory`),
|
|
154
156
|
method: "PATCH",
|
|
155
157
|
headers: {
|
|
156
158
|
Authorization: yield this._getAuthorizationHeader(),
|
|
157
159
|
"X-Fern-Language": "JavaScript",
|
|
158
160
|
"X-Fern-SDK-Name": "webflow-api",
|
|
159
|
-
"X-Fern-SDK-Version": "
|
|
161
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
162
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
163
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
160
164
|
},
|
|
161
165
|
contentType: "application/json",
|
|
162
166
|
body: yield serializers.InventoryUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -30,9 +30,7 @@ export declare class Orders {
|
|
|
30
30
|
* @throws {@link Webflow.InternalServerError}
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
|
-
* await webflow.orders.list("
|
|
34
|
-
* status: Webflow.OrdersListRequestStatus.Pending
|
|
35
|
-
* })
|
|
33
|
+
* await webflow.orders.list("site_id", {})
|
|
36
34
|
*/
|
|
37
35
|
list(siteId: string, request?: Webflow.OrdersListRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.OrderList>;
|
|
38
36
|
/**
|
|
@@ -48,7 +46,7 @@ export declare class Orders {
|
|
|
48
46
|
* @throws {@link Webflow.InternalServerError}
|
|
49
47
|
*
|
|
50
48
|
* @example
|
|
51
|
-
* await webflow.orders.get("
|
|
49
|
+
* await webflow.orders.get("site_id", "order_id")
|
|
52
50
|
*/
|
|
53
51
|
get(siteId: string, orderId: string, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
|
|
54
52
|
/**
|
|
@@ -64,7 +62,7 @@ export declare class Orders {
|
|
|
64
62
|
* @throws {@link Webflow.InternalServerError}
|
|
65
63
|
*
|
|
66
64
|
* @example
|
|
67
|
-
* await webflow.orders.update("
|
|
65
|
+
* await webflow.orders.update("site_id", "order_id", {
|
|
68
66
|
* comment: "Example comment to myself",
|
|
69
67
|
* shippingProvider: "Shipping Company, Co.",
|
|
70
68
|
* shippingTracking: "tr00000000001",
|
|
@@ -85,7 +83,7 @@ export declare class Orders {
|
|
|
85
83
|
* @throws {@link Webflow.InternalServerError}
|
|
86
84
|
*
|
|
87
85
|
* @example
|
|
88
|
-
* await webflow.orders.updateFulfill("
|
|
86
|
+
* await webflow.orders.updateFulfill("site_id", "order_id", {})
|
|
89
87
|
*/
|
|
90
88
|
updateFulfill(siteId: string, orderId: string, request?: Webflow.OrdersUpdateFulfillRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
|
|
91
89
|
/**
|
|
@@ -101,7 +99,7 @@ export declare class Orders {
|
|
|
101
99
|
* @throws {@link Webflow.InternalServerError}
|
|
102
100
|
*
|
|
103
101
|
* @example
|
|
104
|
-
* await webflow.orders.updateUnfulfill("
|
|
102
|
+
* await webflow.orders.updateUnfulfill("site_id", "order_id")
|
|
105
103
|
*/
|
|
106
104
|
updateUnfulfill(siteId: string, orderId: string, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
|
|
107
105
|
/**
|
|
@@ -118,9 +116,7 @@ export declare class Orders {
|
|
|
118
116
|
* @throws {@link Webflow.InternalServerError}
|
|
119
117
|
*
|
|
120
118
|
* @example
|
|
121
|
-
* await webflow.orders.refund("
|
|
122
|
-
* reason: Webflow.OrdersRefundRequestReason.Duplicate
|
|
123
|
-
* })
|
|
119
|
+
* await webflow.orders.refund("site_id", "order_id", {})
|
|
124
120
|
*/
|
|
125
121
|
refund(siteId: string, orderId: string, request?: Webflow.OrdersRefundRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
|
|
126
122
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -62,9 +62,7 @@ class Orders {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await webflow.orders.list("
|
|
66
|
-
* status: Webflow.OrdersListRequestStatus.Pending
|
|
67
|
-
* })
|
|
65
|
+
* await webflow.orders.list("site_id", {})
|
|
68
66
|
*/
|
|
69
67
|
list(siteId, request = {}, requestOptions) {
|
|
70
68
|
var _a;
|
|
@@ -81,13 +79,15 @@ class Orders {
|
|
|
81
79
|
_queryParams["limit"] = limit.toString();
|
|
82
80
|
}
|
|
83
81
|
const _response = yield core.fetcher({
|
|
84
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
82
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/orders`),
|
|
85
83
|
method: "GET",
|
|
86
84
|
headers: {
|
|
87
85
|
Authorization: yield this._getAuthorizationHeader(),
|
|
88
86
|
"X-Fern-Language": "JavaScript",
|
|
89
87
|
"X-Fern-SDK-Name": "webflow-api",
|
|
90
|
-
"X-Fern-SDK-Version": "
|
|
88
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
89
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
90
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
91
91
|
},
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
queryParameters: _queryParams,
|
|
@@ -154,19 +154,21 @@ class Orders {
|
|
|
154
154
|
* @throws {@link Webflow.InternalServerError}
|
|
155
155
|
*
|
|
156
156
|
* @example
|
|
157
|
-
* await webflow.orders.get("
|
|
157
|
+
* await webflow.orders.get("site_id", "order_id")
|
|
158
158
|
*/
|
|
159
159
|
get(siteId, orderId, requestOptions) {
|
|
160
160
|
var _a;
|
|
161
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
162
162
|
const _response = yield core.fetcher({
|
|
163
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
163
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/orders/${orderId}`),
|
|
164
164
|
method: "GET",
|
|
165
165
|
headers: {
|
|
166
166
|
Authorization: yield this._getAuthorizationHeader(),
|
|
167
167
|
"X-Fern-Language": "JavaScript",
|
|
168
168
|
"X-Fern-SDK-Name": "webflow-api",
|
|
169
|
-
"X-Fern-SDK-Version": "
|
|
169
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
170
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
171
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
170
172
|
},
|
|
171
173
|
contentType: "application/json",
|
|
172
174
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -232,7 +234,7 @@ class Orders {
|
|
|
232
234
|
* @throws {@link Webflow.InternalServerError}
|
|
233
235
|
*
|
|
234
236
|
* @example
|
|
235
|
-
* await webflow.orders.update("
|
|
237
|
+
* await webflow.orders.update("site_id", "order_id", {
|
|
236
238
|
* comment: "Example comment to myself",
|
|
237
239
|
* shippingProvider: "Shipping Company, Co.",
|
|
238
240
|
* shippingTracking: "tr00000000001",
|
|
@@ -243,13 +245,15 @@ class Orders {
|
|
|
243
245
|
var _a;
|
|
244
246
|
return __awaiter(this, void 0, void 0, function* () {
|
|
245
247
|
const _response = yield core.fetcher({
|
|
246
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
248
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/orders/${orderId}`),
|
|
247
249
|
method: "PATCH",
|
|
248
250
|
headers: {
|
|
249
251
|
Authorization: yield this._getAuthorizationHeader(),
|
|
250
252
|
"X-Fern-Language": "JavaScript",
|
|
251
253
|
"X-Fern-SDK-Name": "webflow-api",
|
|
252
|
-
"X-Fern-SDK-Version": "
|
|
254
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
255
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
256
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
253
257
|
},
|
|
254
258
|
contentType: "application/json",
|
|
255
259
|
body: yield serializers.OrdersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -316,19 +320,21 @@ class Orders {
|
|
|
316
320
|
* @throws {@link Webflow.InternalServerError}
|
|
317
321
|
*
|
|
318
322
|
* @example
|
|
319
|
-
* await webflow.orders.updateFulfill("
|
|
323
|
+
* await webflow.orders.updateFulfill("site_id", "order_id", {})
|
|
320
324
|
*/
|
|
321
325
|
updateFulfill(siteId, orderId, request = {}, requestOptions) {
|
|
322
326
|
var _a;
|
|
323
327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
324
328
|
const _response = yield core.fetcher({
|
|
325
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
329
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/orders/${orderId}/fulfill`),
|
|
326
330
|
method: "POST",
|
|
327
331
|
headers: {
|
|
328
332
|
Authorization: yield this._getAuthorizationHeader(),
|
|
329
333
|
"X-Fern-Language": "JavaScript",
|
|
330
334
|
"X-Fern-SDK-Name": "webflow-api",
|
|
331
|
-
"X-Fern-SDK-Version": "
|
|
335
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
336
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
337
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
332
338
|
},
|
|
333
339
|
contentType: "application/json",
|
|
334
340
|
body: yield serializers.OrdersUpdateFulfillRequest.jsonOrThrow(request, {
|
|
@@ -397,19 +403,21 @@ class Orders {
|
|
|
397
403
|
* @throws {@link Webflow.InternalServerError}
|
|
398
404
|
*
|
|
399
405
|
* @example
|
|
400
|
-
* await webflow.orders.updateUnfulfill("
|
|
406
|
+
* await webflow.orders.updateUnfulfill("site_id", "order_id")
|
|
401
407
|
*/
|
|
402
408
|
updateUnfulfill(siteId, orderId, requestOptions) {
|
|
403
409
|
var _a;
|
|
404
410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
405
411
|
const _response = yield core.fetcher({
|
|
406
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
412
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/orders/${orderId}/unfulfill`),
|
|
407
413
|
method: "POST",
|
|
408
414
|
headers: {
|
|
409
415
|
Authorization: yield this._getAuthorizationHeader(),
|
|
410
416
|
"X-Fern-Language": "JavaScript",
|
|
411
417
|
"X-Fern-SDK-Name": "webflow-api",
|
|
412
|
-
"X-Fern-SDK-Version": "
|
|
418
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
419
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
420
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
413
421
|
},
|
|
414
422
|
contentType: "application/json",
|
|
415
423
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -476,21 +484,21 @@ class Orders {
|
|
|
476
484
|
* @throws {@link Webflow.InternalServerError}
|
|
477
485
|
*
|
|
478
486
|
* @example
|
|
479
|
-
* await webflow.orders.refund("
|
|
480
|
-
* reason: Webflow.OrdersRefundRequestReason.Duplicate
|
|
481
|
-
* })
|
|
487
|
+
* await webflow.orders.refund("site_id", "order_id", {})
|
|
482
488
|
*/
|
|
483
489
|
refund(siteId, orderId, request = {}, requestOptions) {
|
|
484
490
|
var _a;
|
|
485
491
|
return __awaiter(this, void 0, void 0, function* () {
|
|
486
492
|
const _response = yield core.fetcher({
|
|
487
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
493
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/orders/${orderId}/refund`),
|
|
488
494
|
method: "POST",
|
|
489
495
|
headers: {
|
|
490
496
|
Authorization: yield this._getAuthorizationHeader(),
|
|
491
497
|
"X-Fern-Language": "JavaScript",
|
|
492
498
|
"X-Fern-SDK-Name": "webflow-api",
|
|
493
|
-
"X-Fern-SDK-Version": "
|
|
499
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
500
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
501
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
494
502
|
},
|
|
495
503
|
contentType: "application/json",
|
|
496
504
|
body: yield serializers.OrdersRefundRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -27,9 +27,9 @@ export declare class Pages {
|
|
|
27
27
|
* @throws {@link Webflow.InternalServerError}
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
|
-
* await webflow.pages.list("
|
|
30
|
+
* await webflow.pages.list("site_id", {})
|
|
31
31
|
*/
|
|
32
|
-
list(siteId: string, requestOptions?: Pages.RequestOptions): Promise<Webflow.PageList>;
|
|
32
|
+
list(siteId: string, request?: Webflow.PagesListRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.PageList>;
|
|
33
33
|
/**
|
|
34
34
|
* Get metadata information for a single page </br></br> Required scope | `pages:read`
|
|
35
35
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -39,9 +39,78 @@ export declare class Pages {
|
|
|
39
39
|
* @throws {@link Webflow.InternalServerError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await webflow.pages.getMetadata("
|
|
42
|
+
* await webflow.pages.getMetadata("page_id", {})
|
|
43
43
|
*/
|
|
44
|
-
getMetadata(pageId: string, requestOptions?: Pages.RequestOptions): Promise<Webflow.Page>;
|
|
44
|
+
getMetadata(pageId: string, request?: Webflow.PagesGetMetadataRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Page>;
|
|
45
|
+
/**
|
|
46
|
+
* Update Page-level metadata, including SEO and Open Graph fields. </br></br> Required scope | `pages:write`
|
|
47
|
+
* @throws {@link Webflow.BadRequestError}
|
|
48
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
49
|
+
* @throws {@link Webflow.NotFoundError}
|
|
50
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
51
|
+
* @throws {@link Webflow.InternalServerError}
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* await webflow.pages.updatePageSettings("page_id", {
|
|
55
|
+
* body: {
|
|
56
|
+
* id: "6390c49774a71f0e3c1a08ee",
|
|
57
|
+
* siteId: "6390c49674a71f84b51a08d8",
|
|
58
|
+
* title: "Blog Categories Template",
|
|
59
|
+
* slug: "detail_blog-category",
|
|
60
|
+
* parentId: "6419db964a9c435aa3af6251",
|
|
61
|
+
* collectionId: "6390c49774a71f12831a08e3",
|
|
62
|
+
* createdOn: new Date("2018-10-14T21:55:49.000Z"),
|
|
63
|
+
* lastUpdated: new Date("2022-12-07T16:51:37.000Z"),
|
|
64
|
+
* archived: false,
|
|
65
|
+
* draft: false,
|
|
66
|
+
* canBranch: true,
|
|
67
|
+
* isMembersOnly: false,
|
|
68
|
+
* seo: {
|
|
69
|
+
* title: "CoffeeStyle eCommerce - Webflow HTML website template",
|
|
70
|
+
* description: "This Webflow template offers a quick start into an e-commerce / memberships site"
|
|
71
|
+
* },
|
|
72
|
+
* openGraph: {
|
|
73
|
+
* title: "CoffeeStyle eCommerce - Webflow HTML website template",
|
|
74
|
+
* titleCopied: true,
|
|
75
|
+
* description: "This Webflow template offers a quick start into an e-commerce / memberships site",
|
|
76
|
+
* descriptionCopied: true
|
|
77
|
+
* }
|
|
78
|
+
* }
|
|
79
|
+
* })
|
|
80
|
+
*/
|
|
81
|
+
updatePageSettings(pageId: string, request: Webflow.UpdatePageSettingsRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Page>;
|
|
82
|
+
/**
|
|
83
|
+
* Get static content from a static page. </br> If you do not provide a Locale ID in your request, the response will return any content that can be localized from the Primary locale</br></br> Required scope | `pages:read`
|
|
84
|
+
* @throws {@link Webflow.BadRequestError}
|
|
85
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
86
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
87
|
+
* @throws {@link Webflow.NotFoundError}
|
|
88
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
89
|
+
* @throws {@link Webflow.InternalServerError}
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* await webflow.pages.getContent("page_id", {})
|
|
93
|
+
*/
|
|
94
|
+
getContent(pageId: string, request?: Webflow.PagesGetContentRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Dom>;
|
|
95
|
+
/**
|
|
96
|
+
* Update static content on a static page. This endpoint supports sending 1000 nodes per request. </br></br> Required scope | `pages:write`
|
|
97
|
+
* @throws {@link Webflow.BadRequestError}
|
|
98
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
99
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
100
|
+
* @throws {@link Webflow.NotFoundError}
|
|
101
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
102
|
+
* @throws {@link Webflow.InternalServerError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await webflow.pages.updateStaticContent("page_id", {
|
|
106
|
+
* locale: "locale",
|
|
107
|
+
* nodes: [{
|
|
108
|
+
* nodeId: "guide-title-id",
|
|
109
|
+
* text: "<h1>Hello world</h1>"
|
|
110
|
+
* }]
|
|
111
|
+
* })
|
|
112
|
+
*/
|
|
113
|
+
updateStaticContent(pageId: string, request: Webflow.DomWrite, requestOptions?: Pages.RequestOptions): Promise<Webflow.Dom>;
|
|
45
114
|
protected _scripts: Scripts | undefined;
|
|
46
115
|
get scripts(): Scripts;
|
|
47
116
|
protected _getAuthorizationHeader(): Promise<string>;
|