webflow-api 3.3.0-beta → 3.3.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/BaseClient.d.ts +1 -1
- package/Client.d.ts +1 -7
- package/Client.js +31 -41
- package/LICENSE +18 -18
- package/README.md +55 -28
- package/api/resources/assets/client/Client.d.ts +4 -4
- package/api/resources/assets/client/Client.js +7 -8
- package/api/resources/assets/client/requests/AssetsListRequest.d.ts +2 -2
- package/api/resources/collections/client/Client.d.ts +2 -2
- package/api/resources/collections/client/Client.js +3 -6
- package/api/resources/collections/resources/fields/client/Client.d.ts +2 -2
- package/api/resources/collections/resources/fields/client/Client.js +4 -6
- package/api/resources/collections/resources/items/client/Client.d.ts +6 -6
- package/api/resources/collections/resources/items/client/Client.js +24 -12
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
- package/{dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts → api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.d.ts} +1 -1
- package/api/resources/collections/resources/items/types/index.d.ts +1 -1
- package/api/resources/collections/resources/items/types/index.js +1 -1
- package/api/resources/components/client/Client.d.ts +8 -8
- package/api/resources/components/client/Client.js +10 -12
- package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +2 -2
- package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +2 -2
- package/api/resources/components/client/requests/ComponentsListRequest.d.ts +2 -2
- package/api/resources/ecommerce/client/Client.d.ts +2 -2
- package/api/resources/ecommerce/client/Client.js +2 -6
- package/api/resources/forms/client/Client.d.ts +6 -6
- package/api/resources/forms/client/Client.js +7 -10
- package/api/resources/forms/client/requests/FormsListRequest.d.ts +2 -2
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
- package/api/resources/index.d.ts +0 -6
- package/api/resources/index.js +1 -7
- package/api/resources/inventory/client/Client.d.ts +2 -2
- package/api/resources/inventory/client/Client.js +3 -6
- package/api/resources/orders/client/Client.d.ts +4 -4
- package/api/resources/orders/client/Client.js +8 -8
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -2
- package/api/resources/pages/client/Client.d.ts +6 -6
- package/api/resources/pages/client/Client.js +8 -10
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/api/resources/pages/resources/scripts/client/Client.d.ts +2 -2
- package/api/resources/pages/resources/scripts/client/Client.js +3 -6
- package/api/resources/products/client/Client.d.ts +4 -4
- package/api/resources/products/client/Client.js +8 -8
- package/api/resources/products/client/requests/ProductsListRequest.d.ts +2 -2
- package/api/resources/scripts/client/Client.d.ts +2 -2
- package/api/resources/scripts/client/Client.js +4 -6
- package/api/resources/sites/client/Client.d.ts +2 -2
- package/api/resources/sites/client/Client.js +5 -6
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +4 -4
- package/api/resources/sites/resources/activityLogs/client/Client.js +4 -8
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +2 -2
- package/api/resources/sites/resources/comments/client/Client.d.ts +8 -8
- package/api/resources/sites/resources/comments/client/Client.js +14 -12
- package/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +2 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +2 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +2 -2
- package/api/resources/sites/resources/forms/client/Client.d.ts +6 -6
- package/api/resources/sites/resources/forms/client/Client.js +7 -10
- package/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +2 -2
- package/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
- package/api/resources/sites/resources/plans/client/Client.d.ts +2 -2
- package/api/resources/sites/resources/plans/client/Client.js +2 -6
- package/api/resources/sites/resources/redirects/client/Client.d.ts +4 -4
- package/api/resources/sites/resources/redirects/client/Client.js +6 -8
- package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +2 -2
- package/api/resources/sites/resources/robotsTxt/client/Client.js +5 -6
- package/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
- package/api/resources/sites/resources/scripts/client/Client.js +5 -8
- package/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +2 -2
- package/api/resources/sites/resources/wellKnown/client/Client.d.ts +2 -2
- package/api/resources/sites/resources/wellKnown/client/Client.js +4 -6
- package/api/resources/token/client/Client.d.ts +2 -2
- package/api/resources/token/client/Client.js +2 -6
- package/api/resources/webhooks/client/Client.d.ts +2 -2
- package/api/resources/webhooks/client/Client.js +3 -6
- package/api/resources/workspaces/client/Client.d.ts +1 -1
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +4 -4
- package/api/resources/workspaces/resources/auditLogs/client/Client.js +6 -8
- package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
- package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -0
- package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +1 -0
- package/api/types/AssetVariant.d.ts +6 -6
- package/api/types/ComponentDom.d.ts +1 -1
- package/api/types/ForbiddenErrorBody.d.ts +1 -1
- package/api/types/ProductFieldData.d.ts +1 -1
- package/api/types/SettingChange.d.ts +7 -0
- package/api/types/SettingChangeAuditLogItem.d.ts +5 -0
- package/api/types/TriggerType.d.ts +0 -3
- package/api/types/TriggerType.js +0 -3
- package/api/types/WorkspaceAuditLogItem.d.ts +4 -1
- package/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.d.ts +5 -0
- package/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.js +8 -0
- package/api/types/index.d.ts +3 -13
- package/api/types/index.js +3 -13
- package/dist/BaseClient.d.ts +1 -1
- package/dist/Client.d.ts +1 -7
- package/dist/Client.js +31 -41
- package/dist/api/resources/assets/client/Client.d.ts +4 -4
- package/dist/api/resources/assets/client/Client.js +7 -8
- package/dist/api/resources/assets/client/requests/AssetsListRequest.d.ts +2 -2
- package/dist/api/resources/collections/client/Client.d.ts +2 -2
- package/dist/api/resources/collections/client/Client.js +3 -6
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +2 -2
- package/dist/api/resources/collections/resources/fields/client/Client.js +4 -6
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +6 -6
- package/dist/api/resources/collections/resources/items/client/Client.js +24 -12
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
- package/{api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts → dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.d.ts} +1 -1
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/index.js +1 -1
- package/dist/api/resources/components/client/Client.d.ts +8 -8
- package/dist/api/resources/components/client/Client.js +10 -12
- package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +2 -2
- package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +2 -2
- package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +2 -2
- package/dist/api/resources/ecommerce/client/Client.d.ts +2 -2
- package/dist/api/resources/ecommerce/client/Client.js +2 -6
- package/dist/api/resources/forms/client/Client.d.ts +6 -6
- package/dist/api/resources/forms/client/Client.js +7 -10
- package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +2 -2
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
- package/dist/api/resources/index.d.ts +0 -6
- package/dist/api/resources/index.js +1 -7
- package/dist/api/resources/inventory/client/Client.d.ts +2 -2
- package/dist/api/resources/inventory/client/Client.js +3 -6
- package/dist/api/resources/orders/client/Client.d.ts +4 -4
- package/dist/api/resources/orders/client/Client.js +8 -8
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/Client.d.ts +6 -6
- package/dist/api/resources/pages/client/Client.js +8 -10
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +2 -2
- package/dist/api/resources/pages/resources/scripts/client/Client.js +3 -6
- package/dist/api/resources/products/client/Client.d.ts +4 -4
- package/dist/api/resources/products/client/Client.js +8 -8
- package/dist/api/resources/products/client/requests/ProductsListRequest.d.ts +2 -2
- package/dist/api/resources/scripts/client/Client.d.ts +2 -2
- package/dist/api/resources/scripts/client/Client.js +4 -6
- package/dist/api/resources/sites/client/Client.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.js +5 -6
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +4 -4
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +4 -8
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/comments/client/Client.d.ts +8 -8
- package/dist/api/resources/sites/resources/comments/client/Client.js +14 -12
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/forms/client/Client.d.ts +6 -6
- package/dist/api/resources/sites/resources/forms/client/Client.js +7 -10
- package/dist/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/plans/client/Client.d.ts +2 -2
- package/dist/api/resources/sites/resources/plans/client/Client.js +2 -6
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +4 -4
- package/dist/api/resources/sites/resources/redirects/client/Client.js +6 -8
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +2 -2
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +5 -6
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +5 -8
- package/dist/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/wellKnown/client/Client.d.ts +2 -2
- package/dist/api/resources/sites/resources/wellKnown/client/Client.js +4 -6
- package/dist/api/resources/token/client/Client.d.ts +2 -2
- package/dist/api/resources/token/client/Client.js +2 -6
- package/dist/api/resources/webhooks/client/Client.d.ts +2 -2
- package/dist/api/resources/webhooks/client/Client.js +3 -6
- package/dist/api/resources/workspaces/client/Client.d.ts +1 -1
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +4 -4
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +6 -8
- package/dist/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
- package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -0
- package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +1 -0
- package/dist/api/types/AssetVariant.d.ts +6 -6
- package/dist/api/types/ComponentDom.d.ts +1 -1
- package/dist/api/types/ForbiddenErrorBody.d.ts +1 -1
- package/dist/api/types/ProductFieldData.d.ts +1 -1
- package/dist/api/types/SettingChange.d.ts +7 -0
- package/dist/api/types/SettingChangeAuditLogItem.d.ts +5 -0
- package/dist/api/types/TriggerType.d.ts +0 -3
- package/dist/api/types/TriggerType.js +0 -3
- package/dist/api/types/WorkspaceAuditLogItem.d.ts +4 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.d.ts +5 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.js +8 -0
- package/dist/api/types/index.d.ts +3 -13
- package/dist/api/types/index.js +3 -13
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
- package/{serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts → dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.d.ts} +2 -2
- package/{serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js → dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.js} +2 -2
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -1
- package/dist/serialization/resources/index.d.ts +0 -5
- package/dist/serialization/resources/index.js +1 -6
- package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
- package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +1 -0
- package/dist/serialization/types/AssetVariant.d.ts +6 -6
- package/dist/serialization/types/AssetVariant.js +6 -6
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +2 -2
- package/dist/serialization/types/ForbiddenErrorBody.js +2 -2
- package/dist/serialization/types/SettingChange.d.ts +13 -0
- package/dist/serialization/types/{AccessGroup.js → SettingChange.js} +7 -7
- package/dist/serialization/types/SettingChangeAuditLogItem.d.ts +11 -0
- package/dist/serialization/types/{UserAccessGroupsItem.js → SettingChangeAuditLogItem.js} +5 -5
- package/dist/serialization/types/TriggerType.d.ts +1 -1
- package/dist/serialization/types/TriggerType.js +0 -3
- package/dist/serialization/types/WorkspaceAuditLogItem.d.ts +5 -1
- package/dist/serialization/types/WorkspaceAuditLogItem.js +2 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.d.ts +7 -0
- package/dist/serialization/types/{UserStatus.js → WorkspaceAuditLogItemPayloadSettingChangeMethod.js} +2 -2
- package/dist/serialization/types/index.d.ts +3 -13
- package/dist/serialization/types/index.js +3 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/AssetsUtilitiesClient.d.ts +1 -1
- package/dist/wrapper/FormsClient.js +5 -5
- package/dist/wrapper/ItemsClient.js +20 -20
- package/dist/wrapper/PagesClient.js +5 -5
- package/dist/wrapper/WebflowClient.js +1 -1
- package/jest.config.mjs +1 -1
- package/package.json +2 -1
- package/reference.md +68 -544
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
- package/{dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts → serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.d.ts} +2 -2
- package/{dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js → serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.js} +2 -2
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
- package/serialization/resources/collections/resources/items/types/index.js +1 -1
- package/serialization/resources/index.d.ts +0 -5
- package/serialization/resources/index.js +1 -6
- package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
- package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +1 -0
- package/serialization/types/AssetVariant.d.ts +6 -6
- package/serialization/types/AssetVariant.js +6 -6
- package/serialization/types/ForbiddenErrorBody.d.ts +2 -2
- package/serialization/types/ForbiddenErrorBody.js +2 -2
- package/serialization/types/SettingChange.d.ts +13 -0
- package/{dist/serialization/types/AccessGroupList.js → serialization/types/SettingChange.js} +7 -8
- package/serialization/types/SettingChangeAuditLogItem.d.ts +11 -0
- package/serialization/types/{UserAccessGroupsItem.js → SettingChangeAuditLogItem.js} +5 -5
- package/serialization/types/TriggerType.d.ts +1 -1
- package/serialization/types/TriggerType.js +0 -3
- package/serialization/types/WorkspaceAuditLogItem.d.ts +5 -1
- package/serialization/types/WorkspaceAuditLogItem.js +2 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.d.ts +7 -0
- package/{dist/serialization/types/UserLimitReached.js → serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.js} +2 -2
- package/serialization/types/index.d.ts +3 -13
- package/serialization/types/index.js +3 -13
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/AssetsUtilitiesClient.d.ts +1 -1
- package/wrapper/FormsClient.js +5 -5
- package/wrapper/ItemsClient.js +20 -20
- package/wrapper/PagesClient.js +5 -5
- package/wrapper/WebflowClient.js +1 -1
- package/.mock/definition/__package__.yml +0 -4471
- package/.mock/definition/accessGroups.yml +0 -87
- package/.mock/definition/api.yml +0 -18
- package/.mock/definition/assets.yml +0 -487
- package/.mock/definition/collections/fields.yml +0 -212
- package/.mock/definition/collections/items.yml +0 -2145
- package/.mock/definition/collections.yml +0 -350
- package/.mock/definition/comments.yml +0 -41
- package/.mock/definition/components.yml +0 -548
- package/.mock/definition/ecommerce.yml +0 -45
- package/.mock/definition/forms.yml +0 -399
- package/.mock/definition/inventory.yml +0 -152
- package/.mock/definition/items.yml +0 -112
- package/.mock/definition/orders.yml +0 -1971
- package/.mock/definition/pages/scripts.yml +0 -155
- package/.mock/definition/pages.yml +0 -611
- package/.mock/definition/products.yml +0 -642
- package/.mock/definition/scripts.yml +0 -236
- package/.mock/definition/sites/activityLogs.yml +0 -77
- package/.mock/definition/sites/comments.yml +0 -352
- package/.mock/definition/sites/forms.yml +0 -316
- package/.mock/definition/sites/plans.yml +0 -48
- package/.mock/definition/sites/redirects.yml +0 -221
- package/.mock/definition/sites/robotsTxt.yml +0 -229
- package/.mock/definition/sites/scripts.yml +0 -243
- package/.mock/definition/sites/wellKnown.yml +0 -130
- package/.mock/definition/sites.yml +0 -558
- package/.mock/definition/token.yml +0 -75
- package/.mock/definition/users.yml +0 -594
- package/.mock/definition/webhooks.yml +0 -188
- package/.mock/definition/workspaces/auditLogs.yml +0 -125
- package/.mock/fern.config.json +0 -4
- package/api/resources/accessGroups/client/Client.d.ts +0 -39
- package/api/resources/accessGroups/client/Client.js +0 -197
- package/api/resources/accessGroups/client/index.d.ts +0 -1
- package/api/resources/accessGroups/client/index.js +0 -17
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +0 -20
- package/api/resources/accessGroups/client/requests/index.d.ts +0 -1
- package/api/resources/accessGroups/client/requests/index.js +0 -2
- package/api/resources/accessGroups/index.d.ts +0 -2
- package/api/resources/accessGroups/index.js +0 -18
- package/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +0 -9
- package/api/resources/accessGroups/types/AccessGroupsListRequestSort.js +0 -12
- package/api/resources/accessGroups/types/index.d.ts +0 -1
- package/api/resources/accessGroups/types/index.js +0 -17
- package/api/resources/users/client/Client.d.ts +0 -145
- package/api/resources/users/client/Client.js +0 -670
- package/api/resources/users/client/index.d.ts +0 -1
- package/api/resources/users/client/index.js +0 -17
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +0 -13
- package/api/resources/users/client/requests/UsersListRequest.d.ts +0 -23
- package/api/resources/users/client/requests/index.d.ts +0 -2
- package/api/resources/users/client/requests/index.js +0 -2
- package/api/resources/users/index.d.ts +0 -2
- package/api/resources/users/index.js +0 -18
- package/api/resources/users/types/UserAccountAddedPayload.d.ts +0 -5
- package/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +0 -20
- package/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +0 -9
- package/api/resources/users/types/UserAccountAddedPayloadPayloadData.js +0 -3
- package/api/resources/users/types/UserAccountDeletedPayload.d.ts +0 -5
- package/api/resources/users/types/UserAccountDeletedPayload.js +0 -3
- package/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +0 -20
- package/api/resources/users/types/UserAccountDeletedPayloadPayload.js +0 -3
- package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +0 -9
- package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.js +0 -3
- package/api/resources/users/types/UserAccountUpdatedPayload.d.ts +0 -5
- package/api/resources/users/types/UserAccountUpdatedPayload.js +0 -3
- package/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +0 -20
- package/api/resources/users/types/UserAccountUpdatedPayloadPayload.js +0 -3
- package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +0 -9
- package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +0 -3
- package/api/resources/users/types/UsersListRequestSort.d.ts +0 -33
- package/api/resources/users/types/UsersListRequestSort.js +0 -36
- package/api/resources/users/types/index.d.ts +0 -10
- package/api/resources/users/types/index.js +0 -26
- package/api/types/AccessGroup.d.ts +0 -12
- package/api/types/AccessGroup.js +0 -3
- package/api/types/AccessGroupList.d.ts +0 -16
- package/api/types/AccessGroupList.js +0 -3
- package/api/types/ConflictErrorBody.d.ts +0 -2
- package/api/types/ConflictErrorBody.js +0 -3
- package/api/types/DuplicateUserEmail.d.ts +0 -1
- package/api/types/DuplicateUserEmail.js +0 -3
- package/api/types/User.d.ts +0 -22
- package/api/types/User.js +0 -3
- package/api/types/UserAccessGroupsItem.d.ts +0 -14
- package/api/types/UserAccessGroupsItem.js +0 -3
- package/api/types/UserAccessGroupsItemType.d.ts +0 -10
- package/api/types/UserAccessGroupsItemType.js +0 -13
- package/api/types/UserData.d.ts +0 -7
- package/api/types/UserData.js +0 -3
- package/api/types/UserDataData.d.ts +0 -12
- package/api/types/UserDataData.js +0 -3
- package/api/types/UserLimitReached.d.ts +0 -1
- package/api/types/UserLimitReached.js +0 -3
- package/api/types/UserList.d.ts +0 -16
- package/api/types/UserList.js +0 -3
- package/api/types/UserStatus.d.ts +0 -7
- package/api/types/UserStatus.js +0 -10
- package/api/types/UsersNotEnabled.d.ts +0 -1
- package/api/types/UsersNotEnabled.js +0 -3
- package/dist/api/resources/accessGroups/client/Client.d.ts +0 -39
- package/dist/api/resources/accessGroups/client/Client.js +0 -197
- package/dist/api/resources/accessGroups/client/index.d.ts +0 -1
- package/dist/api/resources/accessGroups/client/index.js +0 -17
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +0 -20
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.js +0 -3
- package/dist/api/resources/accessGroups/client/requests/index.d.ts +0 -1
- package/dist/api/resources/accessGroups/client/requests/index.js +0 -2
- package/dist/api/resources/accessGroups/index.d.ts +0 -2
- package/dist/api/resources/accessGroups/index.js +0 -18
- package/dist/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +0 -9
- package/dist/api/resources/accessGroups/types/AccessGroupsListRequestSort.js +0 -12
- package/dist/api/resources/accessGroups/types/index.d.ts +0 -1
- package/dist/api/resources/accessGroups/types/index.js +0 -17
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +0 -3
- package/dist/api/resources/users/client/Client.d.ts +0 -145
- package/dist/api/resources/users/client/Client.js +0 -670
- package/dist/api/resources/users/client/index.d.ts +0 -1
- package/dist/api/resources/users/client/index.js +0 -17
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +0 -13
- package/dist/api/resources/users/client/requests/UsersInviteRequest.js +0 -3
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +0 -23
- package/dist/api/resources/users/client/requests/UsersListRequest.js +0 -3
- package/dist/api/resources/users/client/requests/index.d.ts +0 -2
- package/dist/api/resources/users/client/requests/index.js +0 -2
- package/dist/api/resources/users/index.d.ts +0 -2
- package/dist/api/resources/users/index.js +0 -18
- package/dist/api/resources/users/types/UserAccountAddedPayload.d.ts +0 -5
- package/dist/api/resources/users/types/UserAccountAddedPayload.js +0 -3
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +0 -20
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.js +0 -3
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +0 -9
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.js +0 -3
- package/dist/api/resources/users/types/UserAccountDeletedPayload.d.ts +0 -5
- package/dist/api/resources/users/types/UserAccountDeletedPayload.js +0 -3
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +0 -20
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.js +0 -3
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +0 -9
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.js +0 -3
- package/dist/api/resources/users/types/UserAccountUpdatedPayload.d.ts +0 -5
- package/dist/api/resources/users/types/UserAccountUpdatedPayload.js +0 -3
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +0 -20
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.js +0 -3
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +0 -9
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +0 -3
- package/dist/api/resources/users/types/UsersListRequestSort.d.ts +0 -33
- package/dist/api/resources/users/types/UsersListRequestSort.js +0 -36
- package/dist/api/resources/users/types/index.d.ts +0 -10
- package/dist/api/resources/users/types/index.js +0 -26
- package/dist/api/types/AccessGroup.d.ts +0 -12
- package/dist/api/types/AccessGroup.js +0 -3
- package/dist/api/types/AccessGroupList.d.ts +0 -16
- package/dist/api/types/AccessGroupList.js +0 -3
- package/dist/api/types/ConflictErrorBody.d.ts +0 -2
- package/dist/api/types/ConflictErrorBody.js +0 -3
- package/dist/api/types/DuplicateUserEmail.d.ts +0 -1
- package/dist/api/types/DuplicateUserEmail.js +0 -3
- package/dist/api/types/User.d.ts +0 -22
- package/dist/api/types/User.js +0 -3
- package/dist/api/types/UserAccessGroupsItem.d.ts +0 -14
- package/dist/api/types/UserAccessGroupsItem.js +0 -3
- package/dist/api/types/UserAccessGroupsItemType.d.ts +0 -10
- package/dist/api/types/UserAccessGroupsItemType.js +0 -13
- package/dist/api/types/UserData.d.ts +0 -7
- package/dist/api/types/UserData.js +0 -3
- package/dist/api/types/UserDataData.d.ts +0 -12
- package/dist/api/types/UserDataData.js +0 -3
- package/dist/api/types/UserLimitReached.d.ts +0 -1
- package/dist/api/types/UserLimitReached.js +0 -3
- package/dist/api/types/UserList.d.ts +0 -16
- package/dist/api/types/UserList.js +0 -3
- package/dist/api/types/UserStatus.d.ts +0 -7
- package/dist/api/types/UserStatus.js +0 -10
- package/dist/api/types/UsersNotEnabled.d.ts +0 -1
- package/dist/api/types/UsersNotEnabled.js +0 -3
- package/dist/serialization/resources/accessGroups/index.d.ts +0 -1
- package/dist/serialization/resources/accessGroups/index.js +0 -17
- package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +0 -7
- package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +0 -39
- package/dist/serialization/resources/accessGroups/types/index.d.ts +0 -1
- package/dist/serialization/resources/accessGroups/types/index.js +0 -17
- package/dist/serialization/resources/users/client/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/index.js +0 -17
- package/dist/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +0 -10
- package/dist/serialization/resources/users/client/requests/UsersInviteRequest.js +0 -42
- package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/requests/index.js +0 -5
- package/dist/serialization/resources/users/index.d.ts +0 -2
- package/dist/serialization/resources/users/index.js +0 -18
- package/dist/serialization/resources/users/types/UserAccountAddedPayload.d.ts +0 -11
- package/dist/serialization/resources/users/types/UserAccountAddedPayload.js +0 -43
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +0 -20
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +0 -52
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +0 -12
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.js +0 -44
- package/dist/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +0 -11
- package/dist/serialization/resources/users/types/UserAccountDeletedPayload.js +0 -43
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +0 -20
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +0 -52
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +0 -12
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +0 -44
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +0 -11
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.js +0 -43
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +0 -20
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +0 -52
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +0 -12
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +0 -44
- package/dist/serialization/resources/users/types/UsersListRequestSort.d.ts +0 -7
- package/dist/serialization/resources/users/types/UsersListRequestSort.js +0 -50
- package/dist/serialization/resources/users/types/index.d.ts +0 -10
- package/dist/serialization/resources/users/types/index.js +0 -26
- package/dist/serialization/types/AccessGroup.d.ts +0 -13
- package/dist/serialization/types/AccessGroupList.d.ts +0 -14
- package/dist/serialization/types/ConflictErrorBody.d.ts +0 -9
- package/dist/serialization/types/ConflictErrorBody.js +0 -41
- package/dist/serialization/types/DuplicateUserEmail.d.ts +0 -7
- package/dist/serialization/types/DuplicateUserEmail.js +0 -39
- package/dist/serialization/types/User.d.ts +0 -20
- package/dist/serialization/types/User.js +0 -52
- package/dist/serialization/types/UserAccessGroupsItem.d.ts +0 -11
- package/dist/serialization/types/UserAccessGroupsItemType.d.ts +0 -7
- package/dist/serialization/types/UserAccessGroupsItemType.js +0 -39
- package/dist/serialization/types/UserData.d.ts +0 -10
- package/dist/serialization/types/UserData.js +0 -42
- package/dist/serialization/types/UserDataData.d.ts +0 -13
- package/dist/serialization/types/UserDataData.js +0 -45
- package/dist/serialization/types/UserLimitReached.d.ts +0 -7
- package/dist/serialization/types/UserList.d.ts +0 -14
- package/dist/serialization/types/UserList.js +0 -46
- package/dist/serialization/types/UserStatus.d.ts +0 -7
- package/dist/serialization/types/UsersNotEnabled.d.ts +0 -7
- package/dist/serialization/types/UsersNotEnabled.js +0 -39
- package/serialization/resources/accessGroups/index.d.ts +0 -1
- package/serialization/resources/accessGroups/index.js +0 -17
- package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +0 -7
- package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +0 -39
- package/serialization/resources/accessGroups/types/index.d.ts +0 -1
- package/serialization/resources/accessGroups/types/index.js +0 -17
- package/serialization/resources/users/client/index.d.ts +0 -1
- package/serialization/resources/users/client/index.js +0 -17
- package/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +0 -10
- package/serialization/resources/users/client/requests/UsersInviteRequest.js +0 -42
- package/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/serialization/resources/users/client/requests/index.js +0 -5
- package/serialization/resources/users/index.d.ts +0 -2
- package/serialization/resources/users/index.js +0 -18
- package/serialization/resources/users/types/UserAccountAddedPayload.d.ts +0 -11
- package/serialization/resources/users/types/UserAccountAddedPayload.js +0 -43
- package/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +0 -20
- package/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +0 -52
- package/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +0 -12
- package/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.js +0 -44
- package/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +0 -11
- package/serialization/resources/users/types/UserAccountDeletedPayload.js +0 -43
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +0 -20
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +0 -52
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +0 -12
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +0 -44
- package/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +0 -11
- package/serialization/resources/users/types/UserAccountUpdatedPayload.js +0 -43
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +0 -20
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +0 -52
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +0 -12
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +0 -44
- package/serialization/resources/users/types/UsersListRequestSort.d.ts +0 -7
- package/serialization/resources/users/types/UsersListRequestSort.js +0 -50
- package/serialization/resources/users/types/index.d.ts +0 -10
- package/serialization/resources/users/types/index.js +0 -26
- package/serialization/types/AccessGroup.d.ts +0 -13
- package/serialization/types/AccessGroup.js +0 -45
- package/serialization/types/AccessGroupList.d.ts +0 -14
- package/serialization/types/AccessGroupList.js +0 -46
- package/serialization/types/ConflictErrorBody.d.ts +0 -9
- package/serialization/types/ConflictErrorBody.js +0 -41
- package/serialization/types/DuplicateUserEmail.d.ts +0 -7
- package/serialization/types/DuplicateUserEmail.js +0 -39
- package/serialization/types/User.d.ts +0 -20
- package/serialization/types/User.js +0 -52
- package/serialization/types/UserAccessGroupsItem.d.ts +0 -11
- package/serialization/types/UserAccessGroupsItemType.d.ts +0 -7
- package/serialization/types/UserAccessGroupsItemType.js +0 -39
- package/serialization/types/UserData.d.ts +0 -10
- package/serialization/types/UserData.js +0 -42
- package/serialization/types/UserDataData.d.ts +0 -13
- package/serialization/types/UserDataData.js +0 -45
- package/serialization/types/UserLimitReached.d.ts +0 -7
- package/serialization/types/UserLimitReached.js +0 -39
- package/serialization/types/UserList.d.ts +0 -14
- package/serialization/types/UserList.js +0 -46
- package/serialization/types/UserStatus.d.ts +0 -7
- package/serialization/types/UserStatus.js +0 -39
- package/serialization/types/UsersNotEnabled.d.ts +0 -7
- package/serialization/types/UsersNotEnabled.js +0 -39
- /package/api/resources/{accessGroups/client/requests/AccessGroupsListRequest.js → collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.js} +0 -0
- /package/api/{resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js → types/SettingChange.js} +0 -0
- /package/api/{resources/users/client/requests/UsersInviteRequest.js → types/SettingChangeAuditLogItem.js} +0 -0
- /package/{api/resources/users/client/requests/UsersListRequest.js → dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.js} +0 -0
- /package/{api/resources/users/types/UserAccountAddedPayload.js → dist/api/types/SettingChange.js} +0 -0
- /package/{api/resources/users/types/UserAccountAddedPayloadPayload.js → dist/api/types/SettingChangeAuditLogItem.js} +0 -0
package/BaseClient.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface BaseClientOptions {
|
|
|
4
4
|
environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
|
|
5
5
|
/** Specify a custom URL to connect the client to. */
|
|
6
6
|
baseUrl?: core.Supplier<string>;
|
|
7
|
-
accessToken
|
|
7
|
+
accessToken: core.Supplier<core.BearerToken>;
|
|
8
8
|
/** Additional headers to include in requests. */
|
|
9
9
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
/** The default maximum time to wait for a response in seconds. */
|
package/Client.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AccessGroups } from "./api/resources/accessGroups/client/Client";
|
|
2
1
|
import { Assets } from "./api/resources/assets/client/Client";
|
|
3
2
|
import { Collections } from "./api/resources/collections/client/Client";
|
|
4
3
|
import { Components } from "./api/resources/components/client/Client";
|
|
@@ -11,7 +10,6 @@ import { Products } from "./api/resources/products/client/Client";
|
|
|
11
10
|
import { Scripts } from "./api/resources/scripts/client/Client";
|
|
12
11
|
import { Sites } from "./api/resources/sites/client/Client";
|
|
13
12
|
import { Token } from "./api/resources/token/client/Client";
|
|
14
|
-
import { Users } from "./api/resources/users/client/Client";
|
|
15
13
|
import { Webhooks } from "./api/resources/webhooks/client/Client";
|
|
16
14
|
import { Workspaces } from "./api/resources/workspaces/client/Client";
|
|
17
15
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient";
|
|
@@ -32,14 +30,12 @@ export declare class WebflowClient {
|
|
|
32
30
|
protected _assets: Assets | undefined;
|
|
33
31
|
protected _webhooks: Webhooks | undefined;
|
|
34
32
|
protected _forms: Forms | undefined;
|
|
35
|
-
protected _users: Users | undefined;
|
|
36
|
-
protected _accessGroups: AccessGroups | undefined;
|
|
37
33
|
protected _products: Products | undefined;
|
|
38
34
|
protected _orders: Orders | undefined;
|
|
39
35
|
protected _inventory: Inventory | undefined;
|
|
40
36
|
protected _ecommerce: Ecommerce | undefined;
|
|
41
37
|
protected _workspaces: Workspaces | undefined;
|
|
42
|
-
constructor(_options
|
|
38
|
+
constructor(_options: WebflowClient.Options);
|
|
43
39
|
get token(): Token;
|
|
44
40
|
get sites(): Sites;
|
|
45
41
|
get collections(): Collections;
|
|
@@ -49,8 +45,6 @@ export declare class WebflowClient {
|
|
|
49
45
|
get assets(): Assets;
|
|
50
46
|
get webhooks(): Webhooks;
|
|
51
47
|
get forms(): Forms;
|
|
52
|
-
get users(): Users;
|
|
53
|
-
get accessGroups(): AccessGroups;
|
|
54
48
|
get products(): Products;
|
|
55
49
|
get orders(): Orders;
|
|
56
50
|
get inventory(): Inventory;
|
package/Client.js
CHANGED
|
@@ -35,98 +35,88 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.WebflowClient = void 0;
|
|
38
|
-
const Client_1 = require("./api/resources/
|
|
39
|
-
const Client_2 = require("./api/resources/
|
|
40
|
-
const Client_3 = require("./api/resources/
|
|
41
|
-
const Client_4 = require("./api/resources/
|
|
42
|
-
const Client_5 = require("./api/resources/
|
|
43
|
-
const Client_6 = require("./api/resources/
|
|
44
|
-
const Client_7 = require("./api/resources/
|
|
45
|
-
const Client_8 = require("./api/resources/
|
|
46
|
-
const Client_9 = require("./api/resources/
|
|
47
|
-
const Client_10 = require("./api/resources/
|
|
48
|
-
const Client_11 = require("./api/resources/
|
|
49
|
-
const Client_12 = require("./api/resources/
|
|
50
|
-
const Client_13 = require("./api/resources/
|
|
51
|
-
const Client_14 = require("./api/resources/
|
|
52
|
-
const Client_15 = require("./api/resources/webhooks/client/Client");
|
|
53
|
-
const Client_16 = require("./api/resources/workspaces/client/Client");
|
|
38
|
+
const Client_1 = require("./api/resources/assets/client/Client");
|
|
39
|
+
const Client_2 = require("./api/resources/collections/client/Client");
|
|
40
|
+
const Client_3 = require("./api/resources/components/client/Client");
|
|
41
|
+
const Client_4 = require("./api/resources/ecommerce/client/Client");
|
|
42
|
+
const Client_5 = require("./api/resources/forms/client/Client");
|
|
43
|
+
const Client_6 = require("./api/resources/inventory/client/Client");
|
|
44
|
+
const Client_7 = require("./api/resources/orders/client/Client");
|
|
45
|
+
const Client_8 = require("./api/resources/pages/client/Client");
|
|
46
|
+
const Client_9 = require("./api/resources/products/client/Client");
|
|
47
|
+
const Client_10 = require("./api/resources/scripts/client/Client");
|
|
48
|
+
const Client_11 = require("./api/resources/sites/client/Client");
|
|
49
|
+
const Client_12 = require("./api/resources/token/client/Client");
|
|
50
|
+
const Client_13 = require("./api/resources/webhooks/client/Client");
|
|
51
|
+
const Client_14 = require("./api/resources/workspaces/client/Client");
|
|
54
52
|
const core = __importStar(require("./core"));
|
|
55
53
|
const headers_1 = require("./core/headers");
|
|
56
54
|
class WebflowClient {
|
|
57
|
-
constructor(_options
|
|
55
|
+
constructor(_options) {
|
|
58
56
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
|
|
59
57
|
"X-Fern-Language": "JavaScript",
|
|
60
58
|
"X-Fern-SDK-Name": "webflow-api",
|
|
61
|
-
"X-Fern-SDK-Version": "3.3.
|
|
62
|
-
"User-Agent": "webflow-api/3.3.
|
|
59
|
+
"X-Fern-SDK-Version": "3.3.1",
|
|
60
|
+
"User-Agent": "webflow-api/3.3.1",
|
|
63
61
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
64
62
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
65
63
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
66
64
|
}
|
|
67
65
|
get token() {
|
|
68
66
|
var _a;
|
|
69
|
-
return ((_a = this._token) !== null && _a !== void 0 ? _a : (this._token = new
|
|
67
|
+
return ((_a = this._token) !== null && _a !== void 0 ? _a : (this._token = new Client_12.Token(this._options)));
|
|
70
68
|
}
|
|
71
69
|
get sites() {
|
|
72
70
|
var _a;
|
|
73
|
-
return ((_a = this._sites) !== null && _a !== void 0 ? _a : (this._sites = new
|
|
71
|
+
return ((_a = this._sites) !== null && _a !== void 0 ? _a : (this._sites = new Client_11.Sites(this._options)));
|
|
74
72
|
}
|
|
75
73
|
get collections() {
|
|
76
74
|
var _a;
|
|
77
|
-
return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new
|
|
75
|
+
return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new Client_2.Collections(this._options)));
|
|
78
76
|
}
|
|
79
77
|
get pages() {
|
|
80
78
|
var _a;
|
|
81
|
-
return ((_a = this._pages) !== null && _a !== void 0 ? _a : (this._pages = new
|
|
79
|
+
return ((_a = this._pages) !== null && _a !== void 0 ? _a : (this._pages = new Client_8.Pages(this._options)));
|
|
82
80
|
}
|
|
83
81
|
get components() {
|
|
84
82
|
var _a;
|
|
85
|
-
return ((_a = this._components) !== null && _a !== void 0 ? _a : (this._components = new
|
|
83
|
+
return ((_a = this._components) !== null && _a !== void 0 ? _a : (this._components = new Client_3.Components(this._options)));
|
|
86
84
|
}
|
|
87
85
|
get scripts() {
|
|
88
86
|
var _a;
|
|
89
|
-
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new
|
|
87
|
+
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_10.Scripts(this._options)));
|
|
90
88
|
}
|
|
91
89
|
get assets() {
|
|
92
90
|
var _a;
|
|
93
|
-
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new
|
|
91
|
+
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_1.Assets(this._options)));
|
|
94
92
|
}
|
|
95
93
|
get webhooks() {
|
|
96
94
|
var _a;
|
|
97
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
95
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_13.Webhooks(this._options)));
|
|
98
96
|
}
|
|
99
97
|
get forms() {
|
|
100
98
|
var _a;
|
|
101
|
-
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new
|
|
102
|
-
}
|
|
103
|
-
get users() {
|
|
104
|
-
var _a;
|
|
105
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_14.Users(this._options)));
|
|
106
|
-
}
|
|
107
|
-
get accessGroups() {
|
|
108
|
-
var _a;
|
|
109
|
-
return ((_a = this._accessGroups) !== null && _a !== void 0 ? _a : (this._accessGroups = new Client_1.AccessGroups(this._options)));
|
|
99
|
+
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_5.Forms(this._options)));
|
|
110
100
|
}
|
|
111
101
|
get products() {
|
|
112
102
|
var _a;
|
|
113
|
-
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new
|
|
103
|
+
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Client_9.Products(this._options)));
|
|
114
104
|
}
|
|
115
105
|
get orders() {
|
|
116
106
|
var _a;
|
|
117
|
-
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new
|
|
107
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_7.Orders(this._options)));
|
|
118
108
|
}
|
|
119
109
|
get inventory() {
|
|
120
110
|
var _a;
|
|
121
|
-
return ((_a = this._inventory) !== null && _a !== void 0 ? _a : (this._inventory = new
|
|
111
|
+
return ((_a = this._inventory) !== null && _a !== void 0 ? _a : (this._inventory = new Client_6.Inventory(this._options)));
|
|
122
112
|
}
|
|
123
113
|
get ecommerce() {
|
|
124
114
|
var _a;
|
|
125
|
-
return ((_a = this._ecommerce) !== null && _a !== void 0 ? _a : (this._ecommerce = new
|
|
115
|
+
return ((_a = this._ecommerce) !== null && _a !== void 0 ? _a : (this._ecommerce = new Client_4.Ecommerce(this._options)));
|
|
126
116
|
}
|
|
127
117
|
get workspaces() {
|
|
128
118
|
var _a;
|
|
129
|
-
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new
|
|
119
|
+
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_14.Workspaces(this._options)));
|
|
130
120
|
}
|
|
131
121
|
}
|
|
132
122
|
exports.WebflowClient = WebflowClient;
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
taining a copy of this software and associated documentation
|
|
5
|
-
files (the "Software"), to deal in the Software without restric-
|
|
6
|
-
tion, including without limitation the rights to use, copy, modi-
|
|
7
|
-
fy, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
-
the Software, and to permit persons to whom the Software is fur-
|
|
9
|
-
nished to do so, subject to the following conditions:
|
|
3
|
+
Copyright (c) 2026 Webflow.
|
|
10
4
|
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Webflow
|
|
1
|
+
# Webflow JavaScript/TypeScript SDK
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/webflow-api)
|
|
4
4
|
[](https://github.com/fern-api/fern)
|
|
@@ -19,43 +19,56 @@ Add this dependency to your project's package.json file:
|
|
|
19
19
|
Using npm:
|
|
20
20
|
|
|
21
21
|
```shell
|
|
22
|
-
|
|
22
|
+
npm install webflow-api
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Using yarn
|
|
25
|
+
Using yarn:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
|
|
28
|
+
yarn add webflow-api
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
+
## Authentication
|
|
32
|
+
|
|
33
|
+
You can use a workspace token to access all of the sites in your Webflow Workspace or a site token to access a single site.
|
|
34
|
+
|
|
35
|
+
- To get a workspace token, open the [Webflow Dashboard](https://webflow.com/dashboard?utm_source=dashboard), click **Apps & Integrations > Manage**, and under **Workspace API access**, click **Generate API token**.
|
|
36
|
+
|
|
37
|
+
- To get a site token, find the site in the [Webflow Dashboard](https://webflow.com/dashboard?utm_source=dashboard), open its settings, and under **API access**, click **Generate API token**.
|
|
38
|
+
|
|
39
|
+
For more information about tokens, see [Authentication](https://developers.webflow.com/data/reference/authentication) in the Webflow documentation.
|
|
40
|
+
|
|
41
|
+
For more complex authentication with OAuth, see [OAuth](#oauth) below.
|
|
42
|
+
|
|
31
43
|
## Usage
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
To use the SDK, import the `webflow-api` package, provide your access token, and make calls to the Webflow API, as in this example:
|
|
34
46
|
|
|
35
47
|
```javascript
|
|
36
48
|
import { WebflowClient } from "webflow-api";
|
|
37
49
|
|
|
38
|
-
|
|
50
|
+
// Workspace or site token
|
|
51
|
+
const webflow = new WebflowClient({
|
|
52
|
+
accessToken: process.env.WEBFLOW_API_TOKEN,
|
|
53
|
+
});
|
|
39
54
|
|
|
40
|
-
//
|
|
41
|
-
// in format
|
|
55
|
+
// Environment variables
|
|
56
|
+
// in string format, such as "639656400769508adc12fe42"
|
|
42
57
|
const site_id = process.env.SITE_ID;
|
|
43
58
|
const custom_domain_id_1 = process.env.CUSTOM_DOMAIN_ID_1;
|
|
44
59
|
const custom_domain_id_2 = process.env.CUSTOM_DOMAIN_ID_2;
|
|
45
60
|
|
|
46
|
-
//
|
|
47
|
-
|
|
48
|
-
// List Sites
|
|
61
|
+
// List sites
|
|
49
62
|
const sites = await webflow.sites.list();
|
|
50
63
|
|
|
51
|
-
// Get
|
|
52
|
-
const site = await webflow.sites.get(
|
|
64
|
+
// Get site
|
|
65
|
+
const site = await webflow.sites.get(site_id);
|
|
53
66
|
|
|
54
|
-
// Get
|
|
67
|
+
// Get custom domains
|
|
55
68
|
const customDomains = await webflow.sites.getCustomDomain(site_id);
|
|
56
69
|
|
|
57
|
-
// Publish
|
|
58
|
-
const
|
|
70
|
+
// Publish site
|
|
71
|
+
const publishRequest = await webflow.sites.publish(site_id, {
|
|
59
72
|
customDomains: [custom_domain_id_1, custom_domain_id_2],
|
|
60
73
|
publishToWebflowSubdomain: true,
|
|
61
74
|
});
|
|
@@ -63,13 +76,19 @@ const site = await webflow.sites.publish(site_id, {
|
|
|
63
76
|
|
|
64
77
|
## OAuth
|
|
65
78
|
|
|
66
|
-
To implement OAuth, you
|
|
79
|
+
To implement OAuth, you must register a Webflow App in your Workspace with the "Data CLient" building block and get its client ID and secret.
|
|
80
|
+
See https://developers.webflow.com/apps/data/docs/register-an-app.
|
|
67
81
|
|
|
68
|
-
|
|
82
|
+
To get the client ID, edit the App in your workspace, go to the Building Blocks tab, and copy the ID from the **Client ID** field.
|
|
69
83
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
84
|
+
For full instructions, see https://developers.webflow.com/data/reference/oauth-app.
|
|
85
|
+
|
|
86
|
+
### Step 1: Generate an authorization URL
|
|
87
|
+
|
|
88
|
+
The first step in OAuth is to generate an authorization URL.
|
|
89
|
+
You direct your users to go to this URL, which prompts them to approve the App's access to specific sites or Workspaces.
|
|
90
|
+
|
|
91
|
+
This example code generates the authorization URL:
|
|
73
92
|
|
|
74
93
|
```javascript
|
|
75
94
|
import { WebflowClient } from "webflow-api";
|
|
@@ -84,16 +103,18 @@ const authorizeUrl = WebflowClient.authorizeURL({
|
|
|
84
103
|
console.log(authorizeUrl);
|
|
85
104
|
```
|
|
86
105
|
|
|
87
|
-
### Step 2: Retrieve
|
|
106
|
+
### Step 2: Retrieve an access token
|
|
107
|
+
|
|
108
|
+
The callback from the authorization URL includes the state that you set in the request and an authorization code.
|
|
109
|
+
You can use this authorization code to generate an access token for the App.
|
|
88
110
|
|
|
89
|
-
|
|
90
|
-
`client_secret`, and `authorization_code`.
|
|
111
|
+
This example passes the App's client ID and secret and the authorization code to the `getAccessToken` function:
|
|
91
112
|
|
|
92
113
|
```javascript
|
|
93
114
|
import { WebflowClient } from "webflow-api";
|
|
94
115
|
|
|
95
116
|
const accessToken = WebflowClient.getAccessToken({
|
|
96
|
-
clientId: "your_client_id",
|
|
117
|
+
clientId: "your_client_id",
|
|
97
118
|
clientSecret: "your_client_secret",
|
|
98
119
|
code: "your_authorization_code"
|
|
99
120
|
});
|
|
@@ -101,14 +122,20 @@ const accessToken = WebflowClient.getAccessToken({
|
|
|
101
122
|
|
|
102
123
|
### Step 3: Instantiate the client
|
|
103
124
|
|
|
104
|
-
Instantiate the client using
|
|
125
|
+
Instantiate the client using the access token:
|
|
105
126
|
|
|
106
127
|
```javascript
|
|
107
128
|
import { WebflowClient } from "webflow-api";
|
|
108
129
|
|
|
109
|
-
const webflow = WebflowClient({ accessToken });
|
|
130
|
+
const webflow = new WebflowClient({ accessToken });
|
|
131
|
+
|
|
132
|
+
const {sites} = await webflow.sites.list();
|
|
133
|
+
|
|
134
|
+
console.log(sites);
|
|
110
135
|
```
|
|
111
136
|
|
|
137
|
+
Now the App has access to the sites or Workspaces that the user allowed access to.
|
|
138
|
+
|
|
112
139
|
## Webflow Types
|
|
113
140
|
|
|
114
141
|
All of the types are nested within the `Webflow` namespace. Let IntelliSense
|
|
@@ -150,7 +177,7 @@ const sites = await webflow.sites.get(..., {
|
|
|
150
177
|
```
|
|
151
178
|
|
|
152
179
|
### Retries
|
|
153
|
-
The SDK will automatically retry failures with exponential backoff.
|
|
180
|
+
The SDK will automatically retry failures with exponential backoff.
|
|
154
181
|
You can configure the retries by setting maxRetries.
|
|
155
182
|
|
|
156
183
|
```javascript
|
|
@@ -12,7 +12,7 @@ export declare namespace Assets {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class Assets {
|
|
14
14
|
protected readonly _options: Assets.Options;
|
|
15
|
-
constructor(_options
|
|
15
|
+
constructor(_options: Assets.Options);
|
|
16
16
|
/**
|
|
17
17
|
* List of assets uploaded to a site
|
|
18
18
|
*
|
|
@@ -30,8 +30,8 @@ export declare class Assets {
|
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* await client.assets.list("580e63e98c9a982ac9b8b741", {
|
|
33
|
-
* offset: 1
|
|
34
|
-
* limit: 1
|
|
33
|
+
* offset: 1,
|
|
34
|
+
* limit: 1
|
|
35
35
|
* })
|
|
36
36
|
*/
|
|
37
37
|
list(siteId: string, request?: Webflow.AssetsListRequest, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Webflow.Assets>;
|
|
@@ -186,5 +186,5 @@ export declare class Assets {
|
|
|
186
186
|
*/
|
|
187
187
|
getFolder(assetFolderId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Webflow.AssetFolder>;
|
|
188
188
|
private __getFolder;
|
|
189
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
189
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
190
190
|
}
|
|
@@ -54,7 +54,7 @@ const Webflow = __importStar(require("../../../index"));
|
|
|
54
54
|
* Assets are files that are uploaded to your Webflow account.
|
|
55
55
|
*/
|
|
56
56
|
class Assets {
|
|
57
|
-
constructor(_options
|
|
57
|
+
constructor(_options) {
|
|
58
58
|
this._options = _options;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -74,8 +74,8 @@ class Assets {
|
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
76
|
* await client.assets.list("580e63e98c9a982ac9b8b741", {
|
|
77
|
-
* offset: 1
|
|
78
|
-
* limit: 1
|
|
77
|
+
* offset: 1,
|
|
78
|
+
* limit: 1
|
|
79
79
|
* })
|
|
80
80
|
*/
|
|
81
81
|
list(siteId, request = {}, requestOptions) {
|
|
@@ -225,6 +225,7 @@ class Assets {
|
|
|
225
225
|
unrecognizedObjectKeys: "passthrough",
|
|
226
226
|
allowUnrecognizedUnionMembers: true,
|
|
227
227
|
allowUnrecognizedEnumValues: true,
|
|
228
|
+
omitUndefined: true,
|
|
228
229
|
}),
|
|
229
230
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
230
231
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
@@ -545,6 +546,7 @@ class Assets {
|
|
|
545
546
|
unrecognizedObjectKeys: "passthrough",
|
|
546
547
|
allowUnrecognizedUnionMembers: true,
|
|
547
548
|
allowUnrecognizedEnumValues: true,
|
|
549
|
+
omitUndefined: true,
|
|
548
550
|
}),
|
|
549
551
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
550
552
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
@@ -769,6 +771,7 @@ class Assets {
|
|
|
769
771
|
unrecognizedObjectKeys: "passthrough",
|
|
770
772
|
allowUnrecognizedUnionMembers: true,
|
|
771
773
|
allowUnrecognizedEnumValues: true,
|
|
774
|
+
omitUndefined: true,
|
|
772
775
|
}),
|
|
773
776
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
774
777
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
@@ -956,11 +959,7 @@ class Assets {
|
|
|
956
959
|
}
|
|
957
960
|
_getAuthorizationHeader() {
|
|
958
961
|
return __awaiter(this, void 0, void 0, function* () {
|
|
959
|
-
|
|
960
|
-
if (bearer != null) {
|
|
961
|
-
return `Bearer ${bearer}`;
|
|
962
|
-
}
|
|
963
|
-
return undefined;
|
|
962
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
964
963
|
});
|
|
965
964
|
}
|
|
966
965
|
}
|
|
@@ -16,7 +16,7 @@ export declare class Collections {
|
|
|
16
16
|
protected readonly _options: Collections.Options;
|
|
17
17
|
protected _fields: Fields | undefined;
|
|
18
18
|
protected _items: Items | undefined;
|
|
19
|
-
constructor(_options
|
|
19
|
+
constructor(_options: Collections.Options);
|
|
20
20
|
get fields(): Fields;
|
|
21
21
|
get items(): Items;
|
|
22
22
|
/**
|
|
@@ -122,5 +122,5 @@ export declare class Collections {
|
|
|
122
122
|
*/
|
|
123
123
|
delete(collectionId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<void>;
|
|
124
124
|
private __delete;
|
|
125
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
125
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
126
126
|
}
|
|
@@ -56,7 +56,7 @@ const Client_2 = require("../resources/items/client/Client");
|
|
|
56
56
|
* Collections are CMS collections of items.
|
|
57
57
|
*/
|
|
58
58
|
class Collections {
|
|
59
|
-
constructor(_options
|
|
59
|
+
constructor(_options) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
get fields() {
|
|
@@ -237,6 +237,7 @@ class Collections {
|
|
|
237
237
|
unrecognizedObjectKeys: "passthrough",
|
|
238
238
|
allowUnrecognizedUnionMembers: true,
|
|
239
239
|
allowUnrecognizedEnumValues: true,
|
|
240
|
+
omitUndefined: true,
|
|
240
241
|
}),
|
|
241
242
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
242
243
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
@@ -524,11 +525,7 @@ class Collections {
|
|
|
524
525
|
}
|
|
525
526
|
_getAuthorizationHeader() {
|
|
526
527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
527
|
-
|
|
528
|
-
if (bearer != null) {
|
|
529
|
-
return `Bearer ${bearer}`;
|
|
530
|
-
}
|
|
531
|
-
return undefined;
|
|
528
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
532
529
|
});
|
|
533
530
|
}
|
|
534
531
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Fields {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Fields {
|
|
11
11
|
protected readonly _options: Fields.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Fields.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Create a custom field in a collection.
|
|
15
15
|
*
|
|
@@ -119,5 +119,5 @@ export declare class Fields {
|
|
|
119
119
|
*/
|
|
120
120
|
update(collectionId: string, fieldId: string, request?: Webflow.collections.FieldUpdate, requestOptions?: Fields.RequestOptions): core.HttpResponsePromise<Webflow.Field>;
|
|
121
121
|
private __update;
|
|
122
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
122
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
123
123
|
}
|
|
@@ -51,7 +51,7 @@ const errors = __importStar(require("../../../../../../errors/index"));
|
|
|
51
51
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
52
52
|
const Webflow = __importStar(require("../../../../../index"));
|
|
53
53
|
class Fields {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -135,6 +135,7 @@ class Fields {
|
|
|
135
135
|
unrecognizedObjectKeys: "passthrough",
|
|
136
136
|
allowUnrecognizedUnionMembers: true,
|
|
137
137
|
allowUnrecognizedEnumValues: true,
|
|
138
|
+
omitUndefined: true,
|
|
138
139
|
}),
|
|
139
140
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
140
141
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
@@ -356,6 +357,7 @@ class Fields {
|
|
|
356
357
|
unrecognizedObjectKeys: "passthrough",
|
|
357
358
|
allowUnrecognizedUnionMembers: true,
|
|
358
359
|
allowUnrecognizedEnumValues: true,
|
|
360
|
+
omitUndefined: true,
|
|
359
361
|
}),
|
|
360
362
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
361
363
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
@@ -436,11 +438,7 @@ class Fields {
|
|
|
436
438
|
}
|
|
437
439
|
_getAuthorizationHeader() {
|
|
438
440
|
return __awaiter(this, void 0, void 0, function* () {
|
|
439
|
-
|
|
440
|
-
if (bearer != null) {
|
|
441
|
-
return `Bearer ${bearer}`;
|
|
442
|
-
}
|
|
443
|
-
return undefined;
|
|
441
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
444
442
|
});
|
|
445
443
|
}
|
|
446
444
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Items {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Items {
|
|
11
11
|
protected readonly _options: Items.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Items.Options);
|
|
13
13
|
/**
|
|
14
14
|
* List of all Items within a Collection.
|
|
15
15
|
*
|
|
@@ -28,8 +28,8 @@ export declare class Items {
|
|
|
28
28
|
* @example
|
|
29
29
|
* await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", {
|
|
30
30
|
* cmsLocaleId: "cmsLocaleId",
|
|
31
|
-
* offset: 1
|
|
32
|
-
* limit: 1
|
|
31
|
+
* offset: 1,
|
|
32
|
+
* limit: 1,
|
|
33
33
|
* name: "name",
|
|
34
34
|
* slug: "slug",
|
|
35
35
|
* sortBy: "lastPublished",
|
|
@@ -265,8 +265,8 @@ export declare class Items {
|
|
|
265
265
|
* @example
|
|
266
266
|
* await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", {
|
|
267
267
|
* cmsLocaleId: "cmsLocaleId",
|
|
268
|
-
* offset: 1
|
|
269
|
-
* limit: 1
|
|
268
|
+
* offset: 1,
|
|
269
|
+
* limit: 1,
|
|
270
270
|
* name: "name",
|
|
271
271
|
* slug: "slug",
|
|
272
272
|
* sortBy: "lastPublished",
|
|
@@ -802,5 +802,5 @@ export declare class Items {
|
|
|
802
802
|
*/
|
|
803
803
|
publishItem(collectionId: string, request: Webflow.collections.ItemsPublishItemRequest, requestOptions?: Items.RequestOptions): core.HttpResponsePromise<Webflow.collections.ItemsPublishItemResponse>;
|
|
804
804
|
private __publishItem;
|
|
805
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
805
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
806
806
|
}
|