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
|
@@ -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
|
}
|
|
@@ -62,7 +62,7 @@ const errors = __importStar(require("../../../../../../errors/index"));
|
|
|
62
62
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
63
63
|
const Webflow = __importStar(require("../../../../../index"));
|
|
64
64
|
class Items {
|
|
65
|
-
constructor(_options
|
|
65
|
+
constructor(_options) {
|
|
66
66
|
this._options = _options;
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -83,8 +83,8 @@ class Items {
|
|
|
83
83
|
* @example
|
|
84
84
|
* await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", {
|
|
85
85
|
* cmsLocaleId: "cmsLocaleId",
|
|
86
|
-
* offset: 1
|
|
87
|
-
* limit: 1
|
|
86
|
+
* offset: 1,
|
|
87
|
+
* limit: 1,
|
|
88
88
|
* name: "name",
|
|
89
89
|
* slug: "slug",
|
|
90
90
|
* sortBy: "lastPublished",
|
|
@@ -119,6 +119,7 @@ class Items {
|
|
|
119
119
|
unrecognizedObjectKeys: "passthrough",
|
|
120
120
|
allowUnrecognizedUnionMembers: true,
|
|
121
121
|
allowUnrecognizedEnumValues: true,
|
|
122
|
+
omitUndefined: true,
|
|
122
123
|
breadcrumbsPrefix: ["request", "lastPublished"],
|
|
123
124
|
});
|
|
124
125
|
}
|
|
@@ -127,6 +128,7 @@ class Items {
|
|
|
127
128
|
unrecognizedObjectKeys: "passthrough",
|
|
128
129
|
allowUnrecognizedUnionMembers: true,
|
|
129
130
|
allowUnrecognizedEnumValues: true,
|
|
131
|
+
omitUndefined: true,
|
|
130
132
|
});
|
|
131
133
|
}
|
|
132
134
|
if (sortOrder != null) {
|
|
@@ -134,6 +136,7 @@ class Items {
|
|
|
134
136
|
unrecognizedObjectKeys: "passthrough",
|
|
135
137
|
allowUnrecognizedUnionMembers: true,
|
|
136
138
|
allowUnrecognizedEnumValues: true,
|
|
139
|
+
omitUndefined: true,
|
|
137
140
|
});
|
|
138
141
|
}
|
|
139
142
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -335,6 +338,7 @@ class Items {
|
|
|
335
338
|
unrecognizedObjectKeys: "passthrough",
|
|
336
339
|
allowUnrecognizedUnionMembers: true,
|
|
337
340
|
allowUnrecognizedEnumValues: true,
|
|
341
|
+
omitUndefined: true,
|
|
338
342
|
}),
|
|
339
343
|
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,
|
|
340
344
|
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,
|
|
@@ -457,6 +461,7 @@ class Items {
|
|
|
457
461
|
unrecognizedObjectKeys: "passthrough",
|
|
458
462
|
allowUnrecognizedUnionMembers: true,
|
|
459
463
|
allowUnrecognizedEnumValues: true,
|
|
464
|
+
omitUndefined: true,
|
|
460
465
|
}),
|
|
461
466
|
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,
|
|
462
467
|
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,
|
|
@@ -635,6 +640,7 @@ class Items {
|
|
|
635
640
|
unrecognizedObjectKeys: "passthrough",
|
|
636
641
|
allowUnrecognizedUnionMembers: true,
|
|
637
642
|
allowUnrecognizedEnumValues: true,
|
|
643
|
+
omitUndefined: true,
|
|
638
644
|
}),
|
|
639
645
|
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,
|
|
640
646
|
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,
|
|
@@ -735,8 +741,8 @@ class Items {
|
|
|
735
741
|
* @example
|
|
736
742
|
* await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", {
|
|
737
743
|
* cmsLocaleId: "cmsLocaleId",
|
|
738
|
-
* offset: 1
|
|
739
|
-
* limit: 1
|
|
744
|
+
* offset: 1,
|
|
745
|
+
* limit: 1,
|
|
740
746
|
* name: "name",
|
|
741
747
|
* slug: "slug",
|
|
742
748
|
* sortBy: "lastPublished",
|
|
@@ -771,6 +777,7 @@ class Items {
|
|
|
771
777
|
unrecognizedObjectKeys: "passthrough",
|
|
772
778
|
allowUnrecognizedUnionMembers: true,
|
|
773
779
|
allowUnrecognizedEnumValues: true,
|
|
780
|
+
omitUndefined: true,
|
|
774
781
|
breadcrumbsPrefix: ["request", "lastPublished"],
|
|
775
782
|
});
|
|
776
783
|
}
|
|
@@ -779,6 +786,7 @@ class Items {
|
|
|
779
786
|
unrecognizedObjectKeys: "passthrough",
|
|
780
787
|
allowUnrecognizedUnionMembers: true,
|
|
781
788
|
allowUnrecognizedEnumValues: true,
|
|
789
|
+
omitUndefined: true,
|
|
782
790
|
});
|
|
783
791
|
}
|
|
784
792
|
if (sortOrder != null) {
|
|
@@ -786,12 +794,13 @@ class Items {
|
|
|
786
794
|
unrecognizedObjectKeys: "passthrough",
|
|
787
795
|
allowUnrecognizedUnionMembers: true,
|
|
788
796
|
allowUnrecognizedEnumValues: true,
|
|
797
|
+
omitUndefined: true,
|
|
789
798
|
});
|
|
790
799
|
}
|
|
791
800
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
792
801
|
const _response = yield core.fetcher({
|
|
793
802
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.WebflowEnvironment.DataApi)
|
|
794
|
-
.
|
|
803
|
+
.base, `collections/${core.url.encodePathParam(collectionId)}/items/live`),
|
|
795
804
|
method: "GET",
|
|
796
805
|
headers: _headers,
|
|
797
806
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -988,6 +997,7 @@ class Items {
|
|
|
988
997
|
unrecognizedObjectKeys: "passthrough",
|
|
989
998
|
allowUnrecognizedUnionMembers: true,
|
|
990
999
|
allowUnrecognizedEnumValues: true,
|
|
1000
|
+
omitUndefined: true,
|
|
991
1001
|
}),
|
|
992
1002
|
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,
|
|
993
1003
|
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,
|
|
@@ -1109,6 +1119,7 @@ class Items {
|
|
|
1109
1119
|
unrecognizedObjectKeys: "passthrough",
|
|
1110
1120
|
allowUnrecognizedUnionMembers: true,
|
|
1111
1121
|
allowUnrecognizedEnumValues: true,
|
|
1122
|
+
omitUndefined: true,
|
|
1112
1123
|
}),
|
|
1113
1124
|
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,
|
|
1114
1125
|
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,
|
|
@@ -1284,6 +1295,7 @@ class Items {
|
|
|
1284
1295
|
unrecognizedObjectKeys: "passthrough",
|
|
1285
1296
|
allowUnrecognizedUnionMembers: true,
|
|
1286
1297
|
allowUnrecognizedEnumValues: true,
|
|
1298
|
+
omitUndefined: true,
|
|
1287
1299
|
}),
|
|
1288
1300
|
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,
|
|
1289
1301
|
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,
|
|
@@ -1435,6 +1447,7 @@ class Items {
|
|
|
1435
1447
|
unrecognizedObjectKeys: "passthrough",
|
|
1436
1448
|
allowUnrecognizedUnionMembers: true,
|
|
1437
1449
|
allowUnrecognizedEnumValues: true,
|
|
1450
|
+
omitUndefined: true,
|
|
1438
1451
|
}),
|
|
1439
1452
|
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,
|
|
1440
1453
|
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,
|
|
@@ -1823,6 +1836,7 @@ class Items {
|
|
|
1823
1836
|
unrecognizedObjectKeys: "passthrough",
|
|
1824
1837
|
allowUnrecognizedUnionMembers: true,
|
|
1825
1838
|
allowUnrecognizedEnumValues: true,
|
|
1839
|
+
omitUndefined: true,
|
|
1826
1840
|
}),
|
|
1827
1841
|
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,
|
|
1828
1842
|
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,
|
|
@@ -1940,7 +1954,7 @@ class Items {
|
|
|
1940
1954
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1941
1955
|
const _response = yield core.fetcher({
|
|
1942
1956
|
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.WebflowEnvironment.DataApi)
|
|
1943
|
-
.
|
|
1957
|
+
.base, `collections/${core.url.encodePathParam(collectionId)}/items/${core.url.encodePathParam(itemId)}/live`),
|
|
1944
1958
|
method: "GET",
|
|
1945
1959
|
headers: _headers,
|
|
1946
1960
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -2218,6 +2232,7 @@ class Items {
|
|
|
2218
2232
|
unrecognizedObjectKeys: "passthrough",
|
|
2219
2233
|
allowUnrecognizedUnionMembers: true,
|
|
2220
2234
|
allowUnrecognizedEnumValues: true,
|
|
2235
|
+
omitUndefined: true,
|
|
2221
2236
|
}),
|
|
2222
2237
|
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,
|
|
2223
2238
|
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,
|
|
@@ -2360,6 +2375,7 @@ class Items {
|
|
|
2360
2375
|
unrecognizedObjectKeys: "passthrough",
|
|
2361
2376
|
allowUnrecognizedUnionMembers: true,
|
|
2362
2377
|
allowUnrecognizedEnumValues: true,
|
|
2378
|
+
omitUndefined: true,
|
|
2363
2379
|
}),
|
|
2364
2380
|
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,
|
|
2365
2381
|
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,
|
|
@@ -2442,11 +2458,7 @@ class Items {
|
|
|
2442
2458
|
}
|
|
2443
2459
|
_getAuthorizationHeader() {
|
|
2444
2460
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2445
|
-
|
|
2446
|
-
if (bearer != null) {
|
|
2447
|
-
return `Bearer ${bearer}`;
|
|
2448
|
-
}
|
|
2449
|
-
return undefined;
|
|
2461
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
2450
2462
|
});
|
|
2451
2463
|
}
|
|
2452
2464
|
}
|
|
@@ -2,4 +2,4 @@ import type * as Webflow from "../../../../../index";
|
|
|
2
2
|
export type CreateBulkCollectionItemRequestBodyFieldData = Webflow.collections.SingleCmsItem
|
|
3
3
|
/**
|
|
4
4
|
* A list of CMS items to create */
|
|
5
|
-
| Webflow.collections.
|
|
5
|
+
| Webflow.collections.CreateBulkCollectionItemRequestBodyFieldDataOneItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./CreateBulkCollectionItemRequestBodyFieldData";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./CreateBulkCollectionItemRequestBodyFieldDataOneItem";
|
|
3
3
|
export * from "./ItemIDs";
|
|
4
4
|
export * from "./ItemIDsWithLocales";
|
|
5
5
|
export * from "./ItemsCreateItemLiveRequestBody";
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CreateBulkCollectionItemRequestBodyFieldData"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./CreateBulkCollectionItemRequestBodyFieldDataOneItem"), exports);
|
|
19
19
|
__exportStar(require("./ItemIDs"), exports);
|
|
20
20
|
__exportStar(require("./ItemIDsWithLocales"), exports);
|
|
21
21
|
__exportStar(require("./ItemsCreateItemLiveRequestBody"), exports);
|
|
@@ -9,7 +9,7 @@ export declare namespace Components {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Components {
|
|
11
11
|
protected readonly _options: Components.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Components.Options);
|
|
13
13
|
/**
|
|
14
14
|
* List of all components for a site.
|
|
15
15
|
*
|
|
@@ -28,8 +28,8 @@ export declare class Components {
|
|
|
28
28
|
* @example
|
|
29
29
|
* await client.components.list("580e63e98c9a982ac9b8b741", {
|
|
30
30
|
* branchId: "68026fa68ef6dc744c75b833",
|
|
31
|
-
* limit: 1
|
|
32
|
-
* offset: 1
|
|
31
|
+
* limit: 1,
|
|
32
|
+
* offset: 1
|
|
33
33
|
* })
|
|
34
34
|
*/
|
|
35
35
|
list(siteId: string, request?: Webflow.ComponentsListRequest, requestOptions?: Components.RequestOptions): core.HttpResponsePromise<Webflow.ComponentList>;
|
|
@@ -57,8 +57,8 @@ export declare class Components {
|
|
|
57
57
|
* await client.components.getContent("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", {
|
|
58
58
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
59
59
|
* branchId: "68026fa68ef6dc744c75b833",
|
|
60
|
-
* limit: 1
|
|
61
|
-
* offset: 1
|
|
60
|
+
* limit: 1,
|
|
61
|
+
* offset: 1
|
|
62
62
|
* })
|
|
63
63
|
*/
|
|
64
64
|
getContent(siteId: string, componentId: string, request?: Webflow.ComponentsGetContentRequest, requestOptions?: Components.RequestOptions): core.HttpResponsePromise<Webflow.ComponentDom>;
|
|
@@ -151,8 +151,8 @@ export declare class Components {
|
|
|
151
151
|
* await client.components.getProperties("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", {
|
|
152
152
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
153
153
|
* branchId: "68026fa68ef6dc744c75b833",
|
|
154
|
-
* limit: 1
|
|
155
|
-
* offset: 1
|
|
154
|
+
* limit: 1,
|
|
155
|
+
* offset: 1
|
|
156
156
|
* })
|
|
157
157
|
*/
|
|
158
158
|
getProperties(siteId: string, componentId: string, request?: Webflow.ComponentsGetPropertiesRequest, requestOptions?: Components.RequestOptions): core.HttpResponsePromise<Webflow.ComponentProperties>;
|
|
@@ -194,5 +194,5 @@ export declare class Components {
|
|
|
194
194
|
*/
|
|
195
195
|
updateProperties(siteId: string, componentId: string, request: Webflow.ComponentPropertiesWrite, requestOptions?: Components.RequestOptions): core.HttpResponsePromise<Webflow.ComponentsUpdatePropertiesResponse>;
|
|
196
196
|
private __updateProperties;
|
|
197
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
197
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
198
198
|
}
|
|
@@ -62,7 +62,7 @@ const errors = __importStar(require("../../../../errors/index"));
|
|
|
62
62
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
63
63
|
const Webflow = __importStar(require("../../../index"));
|
|
64
64
|
class Components {
|
|
65
|
-
constructor(_options
|
|
65
|
+
constructor(_options) {
|
|
66
66
|
this._options = _options;
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -83,8 +83,8 @@ class Components {
|
|
|
83
83
|
* @example
|
|
84
84
|
* await client.components.list("580e63e98c9a982ac9b8b741", {
|
|
85
85
|
* branchId: "68026fa68ef6dc744c75b833",
|
|
86
|
-
* limit: 1
|
|
87
|
-
* offset: 1
|
|
86
|
+
* limit: 1,
|
|
87
|
+
* offset: 1
|
|
88
88
|
* })
|
|
89
89
|
*/
|
|
90
90
|
list(siteId, request = {}, requestOptions) {
|
|
@@ -211,8 +211,8 @@ class Components {
|
|
|
211
211
|
* await client.components.getContent("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", {
|
|
212
212
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
213
213
|
* branchId: "68026fa68ef6dc744c75b833",
|
|
214
|
-
* limit: 1
|
|
215
|
-
* offset: 1
|
|
214
|
+
* limit: 1,
|
|
215
|
+
* offset: 1
|
|
216
216
|
* })
|
|
217
217
|
*/
|
|
218
218
|
getContent(siteId, componentId, request = {}, requestOptions) {
|
|
@@ -410,6 +410,7 @@ class Components {
|
|
|
410
410
|
unrecognizedObjectKeys: "passthrough",
|
|
411
411
|
allowUnrecognizedUnionMembers: true,
|
|
412
412
|
allowUnrecognizedEnumValues: true,
|
|
413
|
+
omitUndefined: true,
|
|
413
414
|
}),
|
|
414
415
|
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,
|
|
415
416
|
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,
|
|
@@ -512,8 +513,8 @@ class Components {
|
|
|
512
513
|
* await client.components.getProperties("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", {
|
|
513
514
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
514
515
|
* branchId: "68026fa68ef6dc744c75b833",
|
|
515
|
-
* limit: 1
|
|
516
|
-
* offset: 1
|
|
516
|
+
* limit: 1,
|
|
517
|
+
* offset: 1
|
|
517
518
|
* })
|
|
518
519
|
*/
|
|
519
520
|
getProperties(siteId, componentId, request = {}, requestOptions) {
|
|
@@ -682,6 +683,7 @@ class Components {
|
|
|
682
683
|
unrecognizedObjectKeys: "passthrough",
|
|
683
684
|
allowUnrecognizedUnionMembers: true,
|
|
684
685
|
allowUnrecognizedEnumValues: true,
|
|
686
|
+
omitUndefined: true,
|
|
685
687
|
}),
|
|
686
688
|
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,
|
|
687
689
|
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,
|
|
@@ -762,11 +764,7 @@ class Components {
|
|
|
762
764
|
}
|
|
763
765
|
_getAuthorizationHeader() {
|
|
764
766
|
return __awaiter(this, void 0, void 0, function* () {
|
|
765
|
-
|
|
766
|
-
if (bearer != null) {
|
|
767
|
-
return `Bearer ${bearer}`;
|
|
768
|
-
}
|
|
769
|
-
return undefined;
|
|
767
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
770
768
|
});
|
|
771
769
|
}
|
|
772
770
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Ecommerce {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Ecommerce {
|
|
11
11
|
protected readonly _options: Ecommerce.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Ecommerce.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve ecommerce settings for a site.
|
|
15
15
|
*
|
|
@@ -31,5 +31,5 @@ export declare class Ecommerce {
|
|
|
31
31
|
*/
|
|
32
32
|
getSettings(siteId: string, requestOptions?: Ecommerce.RequestOptions): core.HttpResponsePromise<Webflow.EcommerceSettings>;
|
|
33
33
|
private __getSettings;
|
|
34
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
34
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
35
35
|
}
|