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
|
@@ -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 Comments {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -76,8 +76,8 @@ class Comments {
|
|
|
76
76
|
* @example
|
|
77
77
|
* await client.sites.comments.listCommentThreads("580e63e98c9a982ac9b8b741", {
|
|
78
78
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
79
|
-
* offset: 1
|
|
80
|
-
* limit: 1
|
|
79
|
+
* offset: 1,
|
|
80
|
+
* limit: 1,
|
|
81
81
|
* sortBy: "createdOn",
|
|
82
82
|
* sortOrder: "asc"
|
|
83
83
|
* })
|
|
@@ -104,6 +104,7 @@ class Comments {
|
|
|
104
104
|
unrecognizedObjectKeys: "passthrough",
|
|
105
105
|
allowUnrecognizedUnionMembers: true,
|
|
106
106
|
allowUnrecognizedEnumValues: true,
|
|
107
|
+
omitUndefined: true,
|
|
107
108
|
});
|
|
108
109
|
}
|
|
109
110
|
if (sortOrder != null) {
|
|
@@ -111,6 +112,7 @@ class Comments {
|
|
|
111
112
|
unrecognizedObjectKeys: "passthrough",
|
|
112
113
|
allowUnrecognizedUnionMembers: true,
|
|
113
114
|
allowUnrecognizedEnumValues: true,
|
|
115
|
+
omitUndefined: true,
|
|
114
116
|
});
|
|
115
117
|
}
|
|
116
118
|
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);
|
|
@@ -220,8 +222,8 @@ class Comments {
|
|
|
220
222
|
* @example
|
|
221
223
|
* await client.sites.comments.getCommentThread("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
222
224
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
223
|
-
* offset: 1
|
|
224
|
-
* limit: 1
|
|
225
|
+
* offset: 1,
|
|
226
|
+
* limit: 1,
|
|
225
227
|
* sortBy: "createdOn",
|
|
226
228
|
* sortOrder: "asc"
|
|
227
229
|
* })
|
|
@@ -248,6 +250,7 @@ class Comments {
|
|
|
248
250
|
unrecognizedObjectKeys: "passthrough",
|
|
249
251
|
allowUnrecognizedUnionMembers: true,
|
|
250
252
|
allowUnrecognizedEnumValues: true,
|
|
253
|
+
omitUndefined: true,
|
|
251
254
|
});
|
|
252
255
|
}
|
|
253
256
|
if (sortOrder != null) {
|
|
@@ -255,6 +258,7 @@ class Comments {
|
|
|
255
258
|
unrecognizedObjectKeys: "passthrough",
|
|
256
259
|
allowUnrecognizedUnionMembers: true,
|
|
257
260
|
allowUnrecognizedEnumValues: true,
|
|
261
|
+
omitUndefined: true,
|
|
258
262
|
});
|
|
259
263
|
}
|
|
260
264
|
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);
|
|
@@ -364,8 +368,8 @@ class Comments {
|
|
|
364
368
|
* @example
|
|
365
369
|
* await client.sites.comments.listCommentReplies("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
366
370
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
367
|
-
* offset: 1
|
|
368
|
-
* limit: 1
|
|
371
|
+
* offset: 1,
|
|
372
|
+
* limit: 1,
|
|
369
373
|
* sortBy: "createdOn",
|
|
370
374
|
* sortOrder: "asc"
|
|
371
375
|
* })
|
|
@@ -392,6 +396,7 @@ class Comments {
|
|
|
392
396
|
unrecognizedObjectKeys: "passthrough",
|
|
393
397
|
allowUnrecognizedUnionMembers: true,
|
|
394
398
|
allowUnrecognizedEnumValues: true,
|
|
399
|
+
omitUndefined: true,
|
|
395
400
|
});
|
|
396
401
|
}
|
|
397
402
|
if (sortOrder != null) {
|
|
@@ -399,6 +404,7 @@ class Comments {
|
|
|
399
404
|
unrecognizedObjectKeys: "passthrough",
|
|
400
405
|
allowUnrecognizedUnionMembers: true,
|
|
401
406
|
allowUnrecognizedEnumValues: true,
|
|
407
|
+
omitUndefined: true,
|
|
402
408
|
});
|
|
403
409
|
}
|
|
404
410
|
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);
|
|
@@ -487,11 +493,7 @@ class Comments {
|
|
|
487
493
|
}
|
|
488
494
|
_getAuthorizationHeader() {
|
|
489
495
|
return __awaiter(this, void 0, void 0, function* () {
|
|
490
|
-
|
|
491
|
-
if (bearer != null) {
|
|
492
|
-
return `Bearer ${bearer}`;
|
|
493
|
-
}
|
|
494
|
-
return undefined;
|
|
496
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
495
497
|
});
|
|
496
498
|
}
|
|
497
499
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Forms {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Forms {
|
|
11
11
|
protected readonly _options: Forms.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Forms.Options);
|
|
13
13
|
/**
|
|
14
14
|
* List all form submissions for a given site with the ability to filter submissions by a centralized `elementId`.
|
|
15
15
|
*
|
|
@@ -37,8 +37,8 @@ export declare class Forms {
|
|
|
37
37
|
* @example
|
|
38
38
|
* await client.sites.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", {
|
|
39
39
|
* elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0",
|
|
40
|
-
* offset: 1
|
|
41
|
-
* limit: 1
|
|
40
|
+
* offset: 1,
|
|
41
|
+
* limit: 1
|
|
42
42
|
* })
|
|
43
43
|
*/
|
|
44
44
|
listSubmissionsBySite(siteId: string, request?: Webflow.sites.FormsListSubmissionsBySiteRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Webflow.FormSubmissionList>;
|
|
@@ -64,8 +64,8 @@ export declare class Forms {
|
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* await client.sites.forms.listSubmissions("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
67
|
-
* offset: 1
|
|
68
|
-
* limit: 1
|
|
67
|
+
* offset: 1,
|
|
68
|
+
* limit: 1
|
|
69
69
|
* })
|
|
70
70
|
*/
|
|
71
71
|
listSubmissions(siteId: string, formId: string, request?: Webflow.sites.FormsListSubmissionsRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Webflow.FormSubmissionList>;
|
|
@@ -136,5 +136,5 @@ export declare class Forms {
|
|
|
136
136
|
*/
|
|
137
137
|
updateSubmission(siteId: string, formSubmissionId: string, request?: Webflow.sites.FormsUpdateSubmissionRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Webflow.FormSubmission>;
|
|
138
138
|
private __updateSubmission;
|
|
139
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
139
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
140
140
|
}
|
|
@@ -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 Forms {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -81,8 +81,8 @@ class Forms {
|
|
|
81
81
|
* @example
|
|
82
82
|
* await client.sites.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", {
|
|
83
83
|
* elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0",
|
|
84
|
-
* offset: 1
|
|
85
|
-
* limit: 1
|
|
84
|
+
* offset: 1,
|
|
85
|
+
* limit: 1
|
|
86
86
|
* })
|
|
87
87
|
*/
|
|
88
88
|
listSubmissionsBySite(siteId, request = {}, requestOptions) {
|
|
@@ -209,8 +209,8 @@ class Forms {
|
|
|
209
209
|
*
|
|
210
210
|
* @example
|
|
211
211
|
* await client.sites.forms.listSubmissions("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
212
|
-
* offset: 1
|
|
213
|
-
* limit: 1
|
|
212
|
+
* offset: 1,
|
|
213
|
+
* limit: 1
|
|
214
214
|
* })
|
|
215
215
|
*/
|
|
216
216
|
listSubmissions(siteId, formId, request = {}, requestOptions) {
|
|
@@ -569,6 +569,7 @@ class Forms {
|
|
|
569
569
|
unrecognizedObjectKeys: "passthrough",
|
|
570
570
|
allowUnrecognizedUnionMembers: true,
|
|
571
571
|
allowUnrecognizedEnumValues: true,
|
|
572
|
+
omitUndefined: true,
|
|
572
573
|
}),
|
|
573
574
|
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,
|
|
574
575
|
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,
|
|
@@ -653,11 +654,7 @@ class Forms {
|
|
|
653
654
|
}
|
|
654
655
|
_getAuthorizationHeader() {
|
|
655
656
|
return __awaiter(this, void 0, void 0, function* () {
|
|
656
|
-
|
|
657
|
-
if (bearer != null) {
|
|
658
|
-
return `Bearer ${bearer}`;
|
|
659
|
-
}
|
|
660
|
-
return undefined;
|
|
657
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
661
658
|
});
|
|
662
659
|
}
|
|
663
660
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Plans {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Plans {
|
|
11
11
|
protected readonly _options: Plans.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Plans.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get site plan details for the specified Site.
|
|
15
15
|
*
|
|
@@ -31,5 +31,5 @@ export declare class Plans {
|
|
|
31
31
|
*/
|
|
32
32
|
getSitePlan(siteId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Webflow.SitePlan>;
|
|
33
33
|
private __getSitePlan;
|
|
34
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
34
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
35
35
|
}
|
|
@@ -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 Plans {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -165,11 +165,7 @@ class Plans {
|
|
|
165
165
|
}
|
|
166
166
|
_getAuthorizationHeader() {
|
|
167
167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
-
|
|
169
|
-
if (bearer != null) {
|
|
170
|
-
return `Bearer ${bearer}`;
|
|
171
|
-
}
|
|
172
|
-
return undefined;
|
|
168
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
173
169
|
});
|
|
174
170
|
}
|
|
175
171
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Redirects {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Redirects {
|
|
11
11
|
protected readonly _options: Redirects.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Redirects.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Fetch a list of all 301 redirect rules configured for a specific site.
|
|
15
15
|
*
|
|
@@ -71,7 +71,7 @@ export declare class Redirects {
|
|
|
71
71
|
* Required scope: `sites:write`
|
|
72
72
|
*
|
|
73
73
|
* @param {string} siteId - Unique identifier for a Site
|
|
74
|
-
* @param {string} redirectId - Unique identifier site
|
|
74
|
+
* @param {string} redirectId - Unique identifier site redirect
|
|
75
75
|
* @param {Redirects.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -93,7 +93,7 @@ export declare class Redirects {
|
|
|
93
93
|
* Required scope: `sites:write`
|
|
94
94
|
*
|
|
95
95
|
* @param {string} siteId - Unique identifier for a Site
|
|
96
|
-
* @param {string} redirectId - Unique identifier site
|
|
96
|
+
* @param {string} redirectId - Unique identifier site redirect
|
|
97
97
|
* @param {Webflow.Redirect} request
|
|
98
98
|
* @param {Redirects.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
99
|
*
|
|
@@ -112,5 +112,5 @@ export declare class Redirects {
|
|
|
112
112
|
*/
|
|
113
113
|
update(siteId: string, redirectId: string, request: Webflow.Redirect, requestOptions?: Redirects.RequestOptions): core.HttpResponsePromise<Webflow.Redirect>;
|
|
114
114
|
private __update;
|
|
115
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
115
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
116
116
|
}
|
|
@@ -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 Redirects {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -210,6 +210,7 @@ class Redirects {
|
|
|
210
210
|
unrecognizedObjectKeys: "passthrough",
|
|
211
211
|
allowUnrecognizedUnionMembers: true,
|
|
212
212
|
allowUnrecognizedEnumValues: true,
|
|
213
|
+
omitUndefined: true,
|
|
213
214
|
}),
|
|
214
215
|
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,
|
|
215
216
|
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,
|
|
@@ -298,7 +299,7 @@ class Redirects {
|
|
|
298
299
|
* Required scope: `sites:write`
|
|
299
300
|
*
|
|
300
301
|
* @param {string} siteId - Unique identifier for a Site
|
|
301
|
-
* @param {string} redirectId - Unique identifier site
|
|
302
|
+
* @param {string} redirectId - Unique identifier site redirect
|
|
302
303
|
* @param {Redirects.RequestOptions} requestOptions - Request-specific configuration.
|
|
303
304
|
*
|
|
304
305
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -408,7 +409,7 @@ class Redirects {
|
|
|
408
409
|
* Required scope: `sites:write`
|
|
409
410
|
*
|
|
410
411
|
* @param {string} siteId - Unique identifier for a Site
|
|
411
|
-
* @param {string} redirectId - Unique identifier site
|
|
412
|
+
* @param {string} redirectId - Unique identifier site redirect
|
|
412
413
|
* @param {Webflow.Redirect} request
|
|
413
414
|
* @param {Redirects.RequestOptions} requestOptions - Request-specific configuration.
|
|
414
415
|
*
|
|
@@ -444,6 +445,7 @@ class Redirects {
|
|
|
444
445
|
unrecognizedObjectKeys: "passthrough",
|
|
445
446
|
allowUnrecognizedUnionMembers: true,
|
|
446
447
|
allowUnrecognizedEnumValues: true,
|
|
448
|
+
omitUndefined: true,
|
|
447
449
|
}),
|
|
448
450
|
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,
|
|
449
451
|
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 +526,7 @@ class Redirects {
|
|
|
524
526
|
}
|
|
525
527
|
_getAuthorizationHeader() {
|
|
526
528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
527
|
-
|
|
528
|
-
if (bearer != null) {
|
|
529
|
-
return `Bearer ${bearer}`;
|
|
530
|
-
}
|
|
531
|
-
return undefined;
|
|
529
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
532
530
|
});
|
|
533
531
|
}
|
|
534
532
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace RobotsTxt {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class RobotsTxt {
|
|
11
11
|
protected readonly _options: RobotsTxt.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: RobotsTxt.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve the robots.txt configuration for various user agents.
|
|
15
15
|
*
|
|
@@ -119,5 +119,5 @@ export declare class RobotsTxt {
|
|
|
119
119
|
*/
|
|
120
120
|
patch(siteId: string, request: Webflow.Robots, requestOptions?: RobotsTxt.RequestOptions): core.HttpResponsePromise<Webflow.Robots>;
|
|
121
121
|
private __patch;
|
|
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 RobotsTxt {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -209,6 +209,7 @@ class RobotsTxt {
|
|
|
209
209
|
unrecognizedObjectKeys: "passthrough",
|
|
210
210
|
allowUnrecognizedUnionMembers: true,
|
|
211
211
|
allowUnrecognizedEnumValues: true,
|
|
212
|
+
omitUndefined: true,
|
|
212
213
|
}),
|
|
213
214
|
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,
|
|
214
215
|
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,
|
|
@@ -334,6 +335,7 @@ class RobotsTxt {
|
|
|
334
335
|
unrecognizedObjectKeys: "passthrough",
|
|
335
336
|
allowUnrecognizedUnionMembers: true,
|
|
336
337
|
allowUnrecognizedEnumValues: true,
|
|
338
|
+
omitUndefined: true,
|
|
337
339
|
}),
|
|
338
340
|
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,
|
|
339
341
|
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,
|
|
@@ -458,6 +460,7 @@ class RobotsTxt {
|
|
|
458
460
|
unrecognizedObjectKeys: "passthrough",
|
|
459
461
|
allowUnrecognizedUnionMembers: true,
|
|
460
462
|
allowUnrecognizedEnumValues: true,
|
|
463
|
+
omitUndefined: true,
|
|
461
464
|
}),
|
|
462
465
|
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,
|
|
463
466
|
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,
|
|
@@ -538,11 +541,7 @@ class RobotsTxt {
|
|
|
538
541
|
}
|
|
539
542
|
_getAuthorizationHeader() {
|
|
540
543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
541
|
-
|
|
542
|
-
if (bearer != null) {
|
|
543
|
-
return `Bearer ${bearer}`;
|
|
544
|
-
}
|
|
545
|
-
return undefined;
|
|
544
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
546
545
|
});
|
|
547
546
|
}
|
|
548
547
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Scripts {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Scripts {
|
|
11
11
|
protected readonly _options: Scripts.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Scripts.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get all scripts applied to a site by the App.
|
|
15
15
|
*
|
|
@@ -116,11 +116,11 @@ export declare class Scripts {
|
|
|
116
116
|
*
|
|
117
117
|
* @example
|
|
118
118
|
* await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741", {
|
|
119
|
-
* offset: 1
|
|
120
|
-
* limit: 1
|
|
119
|
+
* offset: 1,
|
|
120
|
+
* limit: 1
|
|
121
121
|
* })
|
|
122
122
|
*/
|
|
123
123
|
listCustomCodeBlocks(siteId: string, request?: Webflow.sites.ScriptsListCustomCodeBlocksRequest, requestOptions?: Scripts.RequestOptions): core.HttpResponsePromise<Webflow.ListCustomCodeBlocks>;
|
|
124
124
|
private __listCustomCodeBlocks;
|
|
125
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
125
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
126
126
|
}
|
|
@@ -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 Scripts {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -219,6 +219,7 @@ class Scripts {
|
|
|
219
219
|
unrecognizedObjectKeys: "passthrough",
|
|
220
220
|
allowUnrecognizedUnionMembers: true,
|
|
221
221
|
allowUnrecognizedEnumValues: true,
|
|
222
|
+
omitUndefined: true,
|
|
222
223
|
}),
|
|
223
224
|
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,
|
|
224
225
|
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,
|
|
@@ -422,8 +423,8 @@ class Scripts {
|
|
|
422
423
|
*
|
|
423
424
|
* @example
|
|
424
425
|
* await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741", {
|
|
425
|
-
* offset: 1
|
|
426
|
-
* limit: 1
|
|
426
|
+
* offset: 1,
|
|
427
|
+
* limit: 1
|
|
427
428
|
* })
|
|
428
429
|
*/
|
|
429
430
|
listCustomCodeBlocks(siteId, request = {}, requestOptions) {
|
|
@@ -526,11 +527,7 @@ class Scripts {
|
|
|
526
527
|
}
|
|
527
528
|
_getAuthorizationHeader() {
|
|
528
529
|
return __awaiter(this, void 0, void 0, function* () {
|
|
529
|
-
|
|
530
|
-
if (bearer != null) {
|
|
531
|
-
return `Bearer ${bearer}`;
|
|
532
|
-
}
|
|
533
|
-
return undefined;
|
|
530
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
534
531
|
});
|
|
535
532
|
}
|
|
536
533
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace WellKnown {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class WellKnown {
|
|
11
11
|
protected readonly _options: WellKnown.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: WellKnown.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Upload a supported well-known file to a site.
|
|
15
15
|
*
|
|
@@ -67,5 +67,5 @@ export declare class WellKnown {
|
|
|
67
67
|
*/
|
|
68
68
|
delete(siteId: string, request?: Webflow.sites.WellKnownDeleteRequest, requestOptions?: WellKnown.RequestOptions): core.HttpResponsePromise<void>;
|
|
69
69
|
private __delete;
|
|
70
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
70
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
71
71
|
}
|
|
@@ -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 WellKnown {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -106,6 +106,7 @@ class WellKnown {
|
|
|
106
106
|
unrecognizedObjectKeys: "passthrough",
|
|
107
107
|
allowUnrecognizedUnionMembers: true,
|
|
108
108
|
allowUnrecognizedEnumValues: true,
|
|
109
|
+
omitUndefined: true,
|
|
109
110
|
}),
|
|
110
111
|
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,
|
|
111
112
|
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,
|
|
@@ -214,6 +215,7 @@ class WellKnown {
|
|
|
214
215
|
unrecognizedObjectKeys: "passthrough",
|
|
215
216
|
allowUnrecognizedUnionMembers: true,
|
|
216
217
|
allowUnrecognizedEnumValues: true,
|
|
218
|
+
omitUndefined: true,
|
|
217
219
|
}),
|
|
218
220
|
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,
|
|
219
221
|
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,
|
|
@@ -285,11 +287,7 @@ class WellKnown {
|
|
|
285
287
|
}
|
|
286
288
|
_getAuthorizationHeader() {
|
|
287
289
|
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
-
|
|
289
|
-
if (bearer != null) {
|
|
290
|
-
return `Bearer ${bearer}`;
|
|
291
|
-
}
|
|
292
|
-
return undefined;
|
|
290
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
293
291
|
});
|
|
294
292
|
}
|
|
295
293
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Token {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class Token {
|
|
11
11
|
protected readonly _options: Token.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: Token.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Information about the Authorized User
|
|
15
15
|
*
|
|
@@ -39,5 +39,5 @@ export declare class Token {
|
|
|
39
39
|
*/
|
|
40
40
|
introspect(requestOptions?: Token.RequestOptions): core.HttpResponsePromise<Webflow.Authorization>;
|
|
41
41
|
private __introspect;
|
|
42
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
42
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
43
43
|
}
|
|
@@ -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 Token {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -211,11 +211,7 @@ class Token {
|
|
|
211
211
|
}
|
|
212
212
|
_getAuthorizationHeader() {
|
|
213
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
-
|
|
215
|
-
if (bearer != null) {
|
|
216
|
-
return `Bearer ${bearer}`;
|
|
217
|
-
}
|
|
218
|
-
return undefined;
|
|
214
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
219
215
|
});
|
|
220
216
|
}
|
|
221
217
|
}
|
|
@@ -12,7 +12,7 @@ export declare namespace Webhooks {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class Webhooks {
|
|
14
14
|
protected readonly _options: Webhooks.Options;
|
|
15
|
-
constructor(_options
|
|
15
|
+
constructor(_options: Webhooks.Options);
|
|
16
16
|
/**
|
|
17
17
|
* List all App-created Webhooks registered for a given site
|
|
18
18
|
*
|
|
@@ -101,5 +101,5 @@ export declare class Webhooks {
|
|
|
101
101
|
*/
|
|
102
102
|
delete(webhookId: string, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<void>;
|
|
103
103
|
private __delete;
|
|
104
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
104
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
105
105
|
}
|