webflow-api 2.0.0 → 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 +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 +80 -16
- package/api/resources/collections/resources/items/client/Client.js +300 -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 +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 +80 -16
- package/dist/api/resources/collections/resources/items/client/Client.js +300 -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 +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/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/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
|
@@ -58,19 +58,21 @@ class Scripts {
|
|
|
58
58
|
* @throws {@link Webflow.InternalServerError}
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
|
-
* await webflow.sites.scripts.getCustomCode("
|
|
61
|
+
* await webflow.sites.scripts.getCustomCode("site_id")
|
|
62
62
|
*/
|
|
63
63
|
getCustomCode(siteId, requestOptions) {
|
|
64
64
|
var _a;
|
|
65
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
const _response = yield core.fetcher({
|
|
67
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
67
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/custom_code`),
|
|
68
68
|
method: "GET",
|
|
69
69
|
headers: {
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "
|
|
73
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
74
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
76
|
},
|
|
75
77
|
contentType: "application/json",
|
|
76
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -128,7 +130,7 @@ class Scripts {
|
|
|
128
130
|
* @throws {@link Webflow.InternalServerError}
|
|
129
131
|
*
|
|
130
132
|
* @example
|
|
131
|
-
* await webflow.sites.scripts.upsertCustomCode("
|
|
133
|
+
* await webflow.sites.scripts.upsertCustomCode("site_id", {
|
|
132
134
|
* scripts: [{
|
|
133
135
|
* id: "cms_slider",
|
|
134
136
|
* location: Webflow.ScriptApplyLocation.Header,
|
|
@@ -136,6 +138,14 @@ class Scripts {
|
|
|
136
138
|
* attributes: {
|
|
137
139
|
* "my-attribute": "some-value"
|
|
138
140
|
* }
|
|
141
|
+
* }, {
|
|
142
|
+
* id: "alert",
|
|
143
|
+
* location: Webflow.ScriptApplyLocation.Header,
|
|
144
|
+
* version: "0.0.1"
|
|
145
|
+
* }, {
|
|
146
|
+
* id: "id",
|
|
147
|
+
* location: Webflow.ScriptApplyLocation.Header,
|
|
148
|
+
* version: "version"
|
|
139
149
|
* }]
|
|
140
150
|
* })
|
|
141
151
|
*/
|
|
@@ -143,13 +153,15 @@ class Scripts {
|
|
|
143
153
|
var _a;
|
|
144
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
155
|
const _response = yield core.fetcher({
|
|
146
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
156
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/custom_code`),
|
|
147
157
|
method: "PUT",
|
|
148
158
|
headers: {
|
|
149
159
|
Authorization: yield this._getAuthorizationHeader(),
|
|
150
160
|
"X-Fern-Language": "JavaScript",
|
|
151
161
|
"X-Fern-SDK-Name": "webflow-api",
|
|
152
|
-
"X-Fern-SDK-Version": "
|
|
162
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
163
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
164
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
153
165
|
},
|
|
154
166
|
contentType: "application/json",
|
|
155
167
|
body: yield serializers.ScriptApplyList.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -208,19 +220,21 @@ class Scripts {
|
|
|
208
220
|
* @throws {@link Webflow.InternalServerError}
|
|
209
221
|
*
|
|
210
222
|
* @example
|
|
211
|
-
* await webflow.sites.scripts.deleteCustomCode("
|
|
223
|
+
* await webflow.sites.scripts.deleteCustomCode("site_id")
|
|
212
224
|
*/
|
|
213
225
|
deleteCustomCode(siteId, requestOptions) {
|
|
214
226
|
var _a;
|
|
215
227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
228
|
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, `
|
|
229
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/custom_code`),
|
|
218
230
|
method: "DELETE",
|
|
219
231
|
headers: {
|
|
220
232
|
Authorization: yield this._getAuthorizationHeader(),
|
|
221
233
|
"X-Fern-Language": "JavaScript",
|
|
222
234
|
"X-Fern-SDK-Name": "webflow-api",
|
|
223
|
-
"X-Fern-SDK-Version": "
|
|
235
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
236
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
237
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
238
|
},
|
|
225
239
|
contentType: "application/json",
|
|
226
240
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -272,7 +286,7 @@ class Scripts {
|
|
|
272
286
|
* @throws {@link Webflow.InternalServerError}
|
|
273
287
|
*
|
|
274
288
|
* @example
|
|
275
|
-
* await webflow.sites.scripts.listCustomCodeBlocks("
|
|
289
|
+
* await webflow.sites.scripts.listCustomCodeBlocks("site_id", {})
|
|
276
290
|
*/
|
|
277
291
|
listCustomCodeBlocks(siteId, request = {}, requestOptions) {
|
|
278
292
|
var _a;
|
|
@@ -286,13 +300,15 @@ class Scripts {
|
|
|
286
300
|
_queryParams["limit"] = limit.toString();
|
|
287
301
|
}
|
|
288
302
|
const _response = yield core.fetcher({
|
|
289
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
303
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/custom_code/blocks`),
|
|
290
304
|
method: "GET",
|
|
291
305
|
headers: {
|
|
292
306
|
Authorization: yield this._getAuthorizationHeader(),
|
|
293
307
|
"X-Fern-Language": "JavaScript",
|
|
294
308
|
"X-Fern-SDK-Name": "webflow-api",
|
|
295
|
-
"X-Fern-SDK-Version": "
|
|
309
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
310
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
311
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
296
312
|
},
|
|
297
313
|
contentType: "application/json",
|
|
298
314
|
queryParameters: _queryParams,
|
|
@@ -61,13 +61,15 @@ class Token {
|
|
|
61
61
|
var _a;
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const _response = yield core.fetcher({
|
|
64
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, "
|
|
64
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, "token/authorized_by"),
|
|
65
65
|
method: "GET",
|
|
66
66
|
headers: {
|
|
67
67
|
Authorization: yield this._getAuthorizationHeader(),
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "webflow-api",
|
|
70
|
-
"X-Fern-SDK-Version": "
|
|
70
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
71
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
72
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
71
73
|
},
|
|
72
74
|
contentType: "application/json",
|
|
73
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -121,13 +123,15 @@ class Token {
|
|
|
121
123
|
var _a;
|
|
122
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
125
|
const _response = yield core.fetcher({
|
|
124
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, "
|
|
126
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, "token/introspect"),
|
|
125
127
|
method: "GET",
|
|
126
128
|
headers: {
|
|
127
129
|
Authorization: yield this._getAuthorizationHeader(),
|
|
128
130
|
"X-Fern-Language": "JavaScript",
|
|
129
131
|
"X-Fern-SDK-Name": "webflow-api",
|
|
130
|
-
"X-Fern-SDK-Version": "
|
|
132
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
133
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
134
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
131
135
|
},
|
|
132
136
|
contentType: "application/json",
|
|
133
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -27,9 +27,7 @@ export declare class Users {
|
|
|
27
27
|
* @throws {@link Webflow.InternalServerError}
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
|
-
* await webflow.users.list("
|
|
31
|
-
* sort: Webflow.UsersListRequestSort.CreatedOnAscending
|
|
32
|
-
* })
|
|
30
|
+
* await webflow.users.list("site_id", {})
|
|
33
31
|
*/
|
|
34
32
|
list(siteId: string, request?: Webflow.UsersListRequest, requestOptions?: Users.RequestOptions): Promise<Webflow.UserList>;
|
|
35
33
|
/**
|
|
@@ -42,7 +40,7 @@ export declare class Users {
|
|
|
42
40
|
* @throws {@link Webflow.InternalServerError}
|
|
43
41
|
*
|
|
44
42
|
* @example
|
|
45
|
-
* await webflow.users.get("
|
|
43
|
+
* await webflow.users.get("site_id", "user_id")
|
|
46
44
|
*/
|
|
47
45
|
get(siteId: string, userId: string, requestOptions?: Users.RequestOptions): Promise<Webflow.User>;
|
|
48
46
|
/**
|
|
@@ -55,7 +53,7 @@ export declare class Users {
|
|
|
55
53
|
* @throws {@link Webflow.InternalServerError}
|
|
56
54
|
*
|
|
57
55
|
* @example
|
|
58
|
-
* await webflow.users.delete("
|
|
56
|
+
* await webflow.users.delete("site_id", "user_id")
|
|
59
57
|
*/
|
|
60
58
|
delete(siteId: string, userId: string, requestOptions?: Users.RequestOptions): Promise<void>;
|
|
61
59
|
/**
|
|
@@ -70,22 +68,16 @@ export declare class Users {
|
|
|
70
68
|
* @throws {@link Webflow.InternalServerError}
|
|
71
69
|
*
|
|
72
70
|
* @example
|
|
73
|
-
* await webflow.users.update("
|
|
74
|
-
* id: "6287ec36a841b25637c663df",
|
|
75
|
-
* lastUpdated: new Date("2016-10-24T19:41:29.156Z"),
|
|
76
|
-
* invitedOn: new Date("2016-10-24T19:41:29.156Z"),
|
|
77
|
-
* createdOn: new Date("2016-10-24T19:41:29.156Z"),
|
|
78
|
-
* lastLogin: new Date("2016-10-24T19:41:29.156Z"),
|
|
79
|
-
* status: Webflow.UserStatus.Invited,
|
|
80
|
-
* accessGroups: [{
|
|
81
|
-
* type: Webflow.UserAccessGroupsItemType.Admin
|
|
82
|
-
* }],
|
|
71
|
+
* await webflow.users.update("site_id", "user_id", {
|
|
83
72
|
* data: {
|
|
84
|
-
*
|
|
85
|
-
*
|
|
73
|
+
* name: "Some One",
|
|
74
|
+
* acceptPrivacy: false,
|
|
75
|
+
* acceptCommunications: false
|
|
76
|
+
* },
|
|
77
|
+
* accessGroups: ["webflowers", "platinum", "free-tier", "accessGroups"]
|
|
86
78
|
* })
|
|
87
79
|
*/
|
|
88
|
-
update(siteId: string, userId: string, request
|
|
80
|
+
update(siteId: string, userId: string, request?: Webflow.UsersUpdateRequest, requestOptions?: Users.RequestOptions): Promise<Webflow.User>;
|
|
89
81
|
/**
|
|
90
82
|
* Create and invite a user with an email address. The user will be sent and invite via email, which they will need to accept in order to join paid Access Groups. <br><br> Required scope | `users:write`
|
|
91
83
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -97,8 +89,9 @@ export declare class Users {
|
|
|
97
89
|
* @throws {@link Webflow.InternalServerError}
|
|
98
90
|
*
|
|
99
91
|
* @example
|
|
100
|
-
* await webflow.users.invite("
|
|
101
|
-
* email: "some.one@home.com"
|
|
92
|
+
* await webflow.users.invite("site_id", {
|
|
93
|
+
* email: "some.one@home.com",
|
|
94
|
+
* accessGroups: ["webflowers", "accessGroups"]
|
|
102
95
|
* })
|
|
103
96
|
*/
|
|
104
97
|
invite(siteId: string, request: Webflow.UsersInviteRequest, requestOptions?: Users.RequestOptions): Promise<Webflow.User>;
|
|
@@ -59,9 +59,7 @@ class Users {
|
|
|
59
59
|
* @throws {@link Webflow.InternalServerError}
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
|
-
* await webflow.users.list("
|
|
63
|
-
* sort: Webflow.UsersListRequestSort.CreatedOnAscending
|
|
64
|
-
* })
|
|
62
|
+
* await webflow.users.list("site_id", {})
|
|
65
63
|
*/
|
|
66
64
|
list(siteId, request = {}, requestOptions) {
|
|
67
65
|
var _a;
|
|
@@ -78,13 +76,15 @@ class Users {
|
|
|
78
76
|
_queryParams["sort"] = sort;
|
|
79
77
|
}
|
|
80
78
|
const _response = yield core.fetcher({
|
|
81
|
-
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}/users`),
|
|
82
80
|
method: "GET",
|
|
83
81
|
headers: {
|
|
84
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
85
83
|
"X-Fern-Language": "JavaScript",
|
|
86
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
87
|
-
"X-Fern-SDK-Version": "
|
|
85
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
86
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
@@ -146,19 +146,21 @@ class Users {
|
|
|
146
146
|
* @throws {@link Webflow.InternalServerError}
|
|
147
147
|
*
|
|
148
148
|
* @example
|
|
149
|
-
* await webflow.users.get("
|
|
149
|
+
* await webflow.users.get("site_id", "user_id")
|
|
150
150
|
*/
|
|
151
151
|
get(siteId, userId, requestOptions) {
|
|
152
152
|
var _a;
|
|
153
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
154
|
const _response = yield core.fetcher({
|
|
155
|
-
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, `sites/${siteId}/users/${userId}`),
|
|
156
156
|
method: "GET",
|
|
157
157
|
headers: {
|
|
158
158
|
Authorization: yield this._getAuthorizationHeader(),
|
|
159
159
|
"X-Fern-Language": "JavaScript",
|
|
160
160
|
"X-Fern-SDK-Name": "webflow-api",
|
|
161
|
-
"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,
|
|
162
164
|
},
|
|
163
165
|
contentType: "application/json",
|
|
164
166
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -219,19 +221,21 @@ class Users {
|
|
|
219
221
|
* @throws {@link Webflow.InternalServerError}
|
|
220
222
|
*
|
|
221
223
|
* @example
|
|
222
|
-
* await webflow.users.delete("
|
|
224
|
+
* await webflow.users.delete("site_id", "user_id")
|
|
223
225
|
*/
|
|
224
226
|
delete(siteId, userId, requestOptions) {
|
|
225
227
|
var _a;
|
|
226
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
229
|
const _response = yield core.fetcher({
|
|
228
|
-
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, `sites/${siteId}/users/${userId}`),
|
|
229
231
|
method: "DELETE",
|
|
230
232
|
headers: {
|
|
231
233
|
Authorization: yield this._getAuthorizationHeader(),
|
|
232
234
|
"X-Fern-Language": "JavaScript",
|
|
233
235
|
"X-Fern-SDK-Name": "webflow-api",
|
|
234
|
-
"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,
|
|
235
239
|
},
|
|
236
240
|
contentType: "application/json",
|
|
237
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -288,35 +292,31 @@ class Users {
|
|
|
288
292
|
* @throws {@link Webflow.InternalServerError}
|
|
289
293
|
*
|
|
290
294
|
* @example
|
|
291
|
-
* await webflow.users.update("
|
|
292
|
-
* id: "6287ec36a841b25637c663df",
|
|
293
|
-
* lastUpdated: new Date("2016-10-24T19:41:29.156Z"),
|
|
294
|
-
* invitedOn: new Date("2016-10-24T19:41:29.156Z"),
|
|
295
|
-
* createdOn: new Date("2016-10-24T19:41:29.156Z"),
|
|
296
|
-
* lastLogin: new Date("2016-10-24T19:41:29.156Z"),
|
|
297
|
-
* status: Webflow.UserStatus.Invited,
|
|
298
|
-
* accessGroups: [{
|
|
299
|
-
* type: Webflow.UserAccessGroupsItemType.Admin
|
|
300
|
-
* }],
|
|
295
|
+
* await webflow.users.update("site_id", "user_id", {
|
|
301
296
|
* data: {
|
|
302
|
-
*
|
|
303
|
-
*
|
|
297
|
+
* name: "Some One",
|
|
298
|
+
* acceptPrivacy: false,
|
|
299
|
+
* acceptCommunications: false
|
|
300
|
+
* },
|
|
301
|
+
* accessGroups: ["webflowers", "platinum", "free-tier", "accessGroups"]
|
|
304
302
|
* })
|
|
305
303
|
*/
|
|
306
|
-
update(siteId, userId, request, requestOptions) {
|
|
304
|
+
update(siteId, userId, request = {}, requestOptions) {
|
|
307
305
|
var _a;
|
|
308
306
|
return __awaiter(this, void 0, void 0, function* () {
|
|
309
307
|
const _response = yield core.fetcher({
|
|
310
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
308
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/users/${userId}`),
|
|
311
309
|
method: "PATCH",
|
|
312
310
|
headers: {
|
|
313
311
|
Authorization: yield this._getAuthorizationHeader(),
|
|
314
312
|
"X-Fern-Language": "JavaScript",
|
|
315
313
|
"X-Fern-SDK-Name": "webflow-api",
|
|
316
|
-
"X-Fern-SDK-Version": "
|
|
314
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
315
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
316
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
317
317
|
},
|
|
318
318
|
contentType: "application/json",
|
|
319
|
-
body: yield serializers.
|
|
319
|
+
body: yield serializers.UsersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
320
320
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
321
321
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
322
322
|
});
|
|
@@ -376,21 +376,24 @@ class Users {
|
|
|
376
376
|
* @throws {@link Webflow.InternalServerError}
|
|
377
377
|
*
|
|
378
378
|
* @example
|
|
379
|
-
* await webflow.users.invite("
|
|
380
|
-
* email: "some.one@home.com"
|
|
379
|
+
* await webflow.users.invite("site_id", {
|
|
380
|
+
* email: "some.one@home.com",
|
|
381
|
+
* accessGroups: ["webflowers", "accessGroups"]
|
|
381
382
|
* })
|
|
382
383
|
*/
|
|
383
384
|
invite(siteId, request, requestOptions) {
|
|
384
385
|
var _a;
|
|
385
386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
386
387
|
const _response = yield core.fetcher({
|
|
387
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
388
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/users/invite`),
|
|
388
389
|
method: "POST",
|
|
389
390
|
headers: {
|
|
390
391
|
Authorization: yield this._getAuthorizationHeader(),
|
|
391
392
|
"X-Fern-Language": "JavaScript",
|
|
392
393
|
"X-Fern-SDK-Name": "webflow-api",
|
|
393
|
-
"X-Fern-SDK-Version": "
|
|
394
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
395
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
396
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
394
397
|
},
|
|
395
398
|
contentType: "application/json",
|
|
396
399
|
body: yield serializers.UsersInviteRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../..";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* data: {
|
|
9
|
+
* name: "Some One",
|
|
10
|
+
* acceptPrivacy: false,
|
|
11
|
+
* acceptCommunications: false
|
|
12
|
+
* },
|
|
13
|
+
* accessGroups: ["webflowers", "platinum", "free-tier", "accessGroups"]
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface UsersUpdateRequest {
|
|
17
|
+
data?: Webflow.UsersUpdateRequestData;
|
|
18
|
+
/**
|
|
19
|
+
* An array of access group slugs. Access groups are assigned to the user as type `admin` and the user remains in the group until removed.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
accessGroups?: string[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface UsersUpdateRequestData {
|
|
5
|
+
/** The name of the user */
|
|
6
|
+
name?: string;
|
|
7
|
+
/** Boolean indicating if the user has accepted the privacy policy */
|
|
8
|
+
acceptPrivacy?: boolean;
|
|
9
|
+
/** Boolean indicating if the user has accepted to receive communications */
|
|
10
|
+
acceptCommunications?: boolean;
|
|
11
|
+
}
|
|
@@ -26,7 +26,7 @@ export declare class Webhooks {
|
|
|
26
26
|
* @throws {@link Webflow.InternalServerError}
|
|
27
27
|
*
|
|
28
28
|
* @example
|
|
29
|
-
* await webflow.webhooks.list("
|
|
29
|
+
* await webflow.webhooks.list("site_id")
|
|
30
30
|
*/
|
|
31
31
|
list(siteId: string, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.Webhook[]>;
|
|
32
32
|
/**
|
|
@@ -38,7 +38,7 @@ export declare class Webhooks {
|
|
|
38
38
|
* @throws {@link Webflow.InternalServerError}
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
|
-
* await webflow.webhooks.create("
|
|
41
|
+
* await webflow.webhooks.create("site_id", {
|
|
42
42
|
* triggerType: Webflow.TriggerType.FormSubmission,
|
|
43
43
|
* url: "https://api.mydomain.com/webhook"
|
|
44
44
|
* })
|
|
@@ -53,7 +53,7 @@ export declare class Webhooks {
|
|
|
53
53
|
* @throws {@link Webflow.InternalServerError}
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await webflow.webhooks.get("
|
|
56
|
+
* await webflow.webhooks.get("webhook_id")
|
|
57
57
|
*/
|
|
58
58
|
get(webhookId: string, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.Webhook>;
|
|
59
59
|
/**
|
|
@@ -65,7 +65,7 @@ export declare class Webhooks {
|
|
|
65
65
|
* @throws {@link Webflow.InternalServerError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await webflow.webhooks.delete("
|
|
68
|
+
* await webflow.webhooks.delete("webhook_id")
|
|
69
69
|
*/
|
|
70
70
|
delete(webhookId: string, requestOptions?: Webhooks.RequestOptions): Promise<void>;
|
|
71
71
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -58,19 +58,21 @@ class Webhooks {
|
|
|
58
58
|
* @throws {@link Webflow.InternalServerError}
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
|
-
* await webflow.webhooks.list("
|
|
61
|
+
* await webflow.webhooks.list("site_id")
|
|
62
62
|
*/
|
|
63
63
|
list(siteId, requestOptions) {
|
|
64
64
|
var _a;
|
|
65
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
66
|
const _response = yield core.fetcher({
|
|
67
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
67
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/webhooks`),
|
|
68
68
|
method: "GET",
|
|
69
69
|
headers: {
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "
|
|
73
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
74
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
76
|
},
|
|
75
77
|
contentType: "application/json",
|
|
76
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -128,7 +130,7 @@ class Webhooks {
|
|
|
128
130
|
* @throws {@link Webflow.InternalServerError}
|
|
129
131
|
*
|
|
130
132
|
* @example
|
|
131
|
-
* await webflow.webhooks.create("
|
|
133
|
+
* await webflow.webhooks.create("site_id", {
|
|
132
134
|
* triggerType: Webflow.TriggerType.FormSubmission,
|
|
133
135
|
* url: "https://api.mydomain.com/webhook"
|
|
134
136
|
* })
|
|
@@ -137,13 +139,15 @@ class Webhooks {
|
|
|
137
139
|
var _a;
|
|
138
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
141
|
const _response = yield core.fetcher({
|
|
140
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
142
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/webhooks`),
|
|
141
143
|
method: "POST",
|
|
142
144
|
headers: {
|
|
143
145
|
Authorization: yield this._getAuthorizationHeader(),
|
|
144
146
|
"X-Fern-Language": "JavaScript",
|
|
145
147
|
"X-Fern-SDK-Name": "webflow-api",
|
|
146
|
-
"X-Fern-SDK-Version": "
|
|
148
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
149
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
147
151
|
},
|
|
148
152
|
contentType: "application/json",
|
|
149
153
|
body: yield serializers.WebhooksCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -202,19 +206,21 @@ class Webhooks {
|
|
|
202
206
|
* @throws {@link Webflow.InternalServerError}
|
|
203
207
|
*
|
|
204
208
|
* @example
|
|
205
|
-
* await webflow.webhooks.get("
|
|
209
|
+
* await webflow.webhooks.get("webhook_id")
|
|
206
210
|
*/
|
|
207
211
|
get(webhookId, requestOptions) {
|
|
208
212
|
var _a;
|
|
209
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
214
|
const _response = yield core.fetcher({
|
|
211
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
215
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `webhooks/${webhookId}`),
|
|
212
216
|
method: "GET",
|
|
213
217
|
headers: {
|
|
214
218
|
Authorization: yield this._getAuthorizationHeader(),
|
|
215
219
|
"X-Fern-Language": "JavaScript",
|
|
216
220
|
"X-Fern-SDK-Name": "webflow-api",
|
|
217
|
-
"X-Fern-SDK-Version": "
|
|
221
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
222
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
223
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
218
224
|
},
|
|
219
225
|
contentType: "application/json",
|
|
220
226
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -272,19 +278,21 @@ class Webhooks {
|
|
|
272
278
|
* @throws {@link Webflow.InternalServerError}
|
|
273
279
|
*
|
|
274
280
|
* @example
|
|
275
|
-
* await webflow.webhooks.delete("
|
|
281
|
+
* await webflow.webhooks.delete("webhook_id")
|
|
276
282
|
*/
|
|
277
283
|
delete(webhookId, requestOptions) {
|
|
278
284
|
var _a;
|
|
279
285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
280
286
|
const _response = yield core.fetcher({
|
|
281
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `
|
|
287
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `webhooks/${webhookId}`),
|
|
282
288
|
method: "DELETE",
|
|
283
289
|
headers: {
|
|
284
290
|
Authorization: yield this._getAuthorizationHeader(),
|
|
285
291
|
"X-Fern-Language": "JavaScript",
|
|
286
292
|
"X-Fern-SDK-Name": "webflow-api",
|
|
287
|
-
"X-Fern-SDK-Version": "
|
|
293
|
+
"X-Fern-SDK-Version": "v2.1.1",
|
|
294
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
295
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
288
296
|
},
|
|
289
297
|
contentType: "application/json",
|
|
290
298
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -8,6 +8,8 @@ import * as Webflow from "..";
|
|
|
8
8
|
export interface CollectionItem {
|
|
9
9
|
/** Unique identifier for the Item */
|
|
10
10
|
id: string;
|
|
11
|
+
/** Identifier for the locale of the CMS item */
|
|
12
|
+
cmsLocaleId?: string;
|
|
11
13
|
/** The date the item was last published */
|
|
12
14
|
lastPublished?: string;
|
|
13
15
|
/** The date the item was last updated */
|