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
|
* Webhooks are the webhooks in your Webflow site.
|
|
55
55
|
*/
|
|
56
56
|
class Webhooks {
|
|
57
|
-
constructor(_options
|
|
57
|
+
constructor(_options) {
|
|
58
58
|
this._options = _options;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -212,6 +212,7 @@ class Webhooks {
|
|
|
212
212
|
unrecognizedObjectKeys: "passthrough",
|
|
213
213
|
allowUnrecognizedUnionMembers: true,
|
|
214
214
|
allowUnrecognizedEnumValues: true,
|
|
215
|
+
omitUndefined: true,
|
|
215
216
|
}),
|
|
216
217
|
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,
|
|
217
218
|
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,
|
|
@@ -497,11 +498,7 @@ class Webhooks {
|
|
|
497
498
|
}
|
|
498
499
|
_getAuthorizationHeader() {
|
|
499
500
|
return __awaiter(this, void 0, void 0, function* () {
|
|
500
|
-
|
|
501
|
-
if (bearer != null) {
|
|
502
|
-
return `Bearer ${bearer}`;
|
|
503
|
-
}
|
|
504
|
-
return undefined;
|
|
501
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
505
502
|
});
|
|
506
503
|
}
|
|
507
504
|
}
|
|
@@ -7,6 +7,6 @@ export declare namespace Workspaces {
|
|
|
7
7
|
export declare class Workspaces {
|
|
8
8
|
protected readonly _options: Workspaces.Options;
|
|
9
9
|
protected _auditLogs: AuditLogs | undefined;
|
|
10
|
-
constructor(_options
|
|
10
|
+
constructor(_options: Workspaces.Options);
|
|
11
11
|
get auditLogs(): AuditLogs;
|
|
12
12
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Workspaces = void 0;
|
|
5
5
|
const Client_1 = require("../resources/auditLogs/client/Client");
|
|
6
6
|
class Workspaces {
|
|
7
|
-
constructor(_options
|
|
7
|
+
constructor(_options) {
|
|
8
8
|
this._options = _options;
|
|
9
9
|
}
|
|
10
10
|
get auditLogs() {
|
|
@@ -9,7 +9,7 @@ export declare namespace AuditLogs {
|
|
|
9
9
|
}
|
|
10
10
|
export declare class AuditLogs {
|
|
11
11
|
protected readonly _options: AuditLogs.Options;
|
|
12
|
-
constructor(_options
|
|
12
|
+
constructor(_options: AuditLogs.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Get audit logs for a workspace.
|
|
15
15
|
*
|
|
@@ -29,8 +29,8 @@ export declare class AuditLogs {
|
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* await client.workspaces.auditLogs.getWorkspaceAuditLogs("hitchhikers-workspace", {
|
|
32
|
-
* limit: 1
|
|
33
|
-
* offset: 1
|
|
32
|
+
* limit: 1,
|
|
33
|
+
* offset: 1,
|
|
34
34
|
* sortOrder: "asc",
|
|
35
35
|
* eventType: "user_access",
|
|
36
36
|
* from: new Date("2025-06-22T16:00:31.000Z"),
|
|
@@ -39,5 +39,5 @@ export declare class AuditLogs {
|
|
|
39
39
|
*/
|
|
40
40
|
getWorkspaceAuditLogs(workspaceIdOrSlug: string, request?: Webflow.workspaces.AuditLogsGetWorkspaceAuditLogsRequest, requestOptions?: AuditLogs.RequestOptions): core.HttpResponsePromise<Webflow.WorkspaceAuditLogResponse>;
|
|
41
41
|
private __getWorkspaceAuditLogs;
|
|
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 AuditLogs {
|
|
54
|
-
constructor(_options
|
|
54
|
+
constructor(_options) {
|
|
55
55
|
this._options = _options;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
@@ -73,8 +73,8 @@ class AuditLogs {
|
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* await client.workspaces.auditLogs.getWorkspaceAuditLogs("hitchhikers-workspace", {
|
|
76
|
-
* limit: 1
|
|
77
|
-
* offset: 1
|
|
76
|
+
* limit: 1,
|
|
77
|
+
* offset: 1,
|
|
78
78
|
* sortOrder: "asc",
|
|
79
79
|
* eventType: "user_access",
|
|
80
80
|
* from: new Date("2025-06-22T16:00:31.000Z"),
|
|
@@ -100,6 +100,7 @@ class AuditLogs {
|
|
|
100
100
|
unrecognizedObjectKeys: "passthrough",
|
|
101
101
|
allowUnrecognizedUnionMembers: true,
|
|
102
102
|
allowUnrecognizedEnumValues: true,
|
|
103
|
+
omitUndefined: true,
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
106
|
if (eventType != null) {
|
|
@@ -107,6 +108,7 @@ class AuditLogs {
|
|
|
107
108
|
unrecognizedObjectKeys: "passthrough",
|
|
108
109
|
allowUnrecognizedUnionMembers: true,
|
|
109
110
|
allowUnrecognizedEnumValues: true,
|
|
111
|
+
omitUndefined: true,
|
|
110
112
|
});
|
|
111
113
|
}
|
|
112
114
|
if (from_ != null) {
|
|
@@ -201,11 +203,7 @@ class AuditLogs {
|
|
|
201
203
|
}
|
|
202
204
|
_getAuthorizationHeader() {
|
|
203
205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
-
|
|
205
|
-
if (bearer != null) {
|
|
206
|
-
return `Bearer ${bearer}`;
|
|
207
|
-
}
|
|
208
|
-
return undefined;
|
|
206
|
+
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|
|
209
207
|
});
|
|
210
208
|
}
|
|
211
209
|
}
|
|
@@ -4,5 +4,6 @@ export declare const AuditLogsGetWorkspaceAuditLogsRequestEventType: {
|
|
|
4
4
|
readonly WorkspaceMembership: "workspace_membership";
|
|
5
5
|
readonly SiteMembership: "site_membership";
|
|
6
6
|
readonly WorkspaceInvitation: "workspace_invitation";
|
|
7
|
+
readonly WorkspaceSetting: "workspace_setting";
|
|
7
8
|
};
|
|
8
9
|
export type AuditLogsGetWorkspaceAuditLogsRequestEventType = (typeof AuditLogsGetWorkspaceAuditLogsRequestEventType)[keyof typeof AuditLogsGetWorkspaceAuditLogsRequestEventType];
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export interface AssetVariant {
|
|
5
5
|
/** URL of where the asset variant is hosted */
|
|
6
|
-
hostedUrl
|
|
6
|
+
hostedUrl: string;
|
|
7
7
|
/** Original file name of the variant */
|
|
8
|
-
originalFileName
|
|
8
|
+
originalFileName: string;
|
|
9
9
|
/** Display name of the variant */
|
|
10
|
-
displayName
|
|
10
|
+
displayName: string;
|
|
11
11
|
/** format of the variant */
|
|
12
|
-
format
|
|
12
|
+
format: string;
|
|
13
13
|
/** Width in pixels */
|
|
14
|
-
width
|
|
14
|
+
width: number;
|
|
15
15
|
/** Height in pixels */
|
|
16
16
|
height?: number;
|
|
17
17
|
/** Value between 0 and 100 representing the image quality */
|
|
18
|
-
quality
|
|
18
|
+
quality: number;
|
|
19
19
|
/** Any associated validation errors */
|
|
20
20
|
error?: string;
|
|
21
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Webflow from "../index";
|
|
2
2
|
/**
|
|
3
|
-
* The Component DOM schema represents the content structure of a component. Similar to Page DOM, it captures various content nodes and their associated attributes, but specifically for a component's structure. Each node has a unique identifier and
|
|
3
|
+
* The Component DOM schema represents the content structure of a component. Similar to Page DOM, it captures various content nodes and their associated attributes, but specifically for a component's structure. Each node has a unique identifier and can contain text, images, select or text inputs, submit buttons, or nested component instances.
|
|
4
4
|
*/
|
|
5
5
|
export interface ComponentDom {
|
|
6
6
|
/** Component ID */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type * as Webflow from "../index";
|
|
2
|
-
export type ForbiddenErrorBody = Webflow.InvalidScopes | undefined | Webflow.
|
|
2
|
+
export type ForbiddenErrorBody = Webflow.InvalidScopes | undefined | Webflow.NotEnterprisePlanSite | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Webflow from "../index";
|
|
2
2
|
/**
|
|
3
|
-
* Contains content-specific details for a product, covering both standard (e.g., title, description)
|
|
3
|
+
* Contains content-specific details for a product, covering both standard (e.g., title, description) and custom fields tailored to the product setup.
|
|
4
4
|
*/
|
|
5
5
|
export interface ProductFieldData {
|
|
6
6
|
/** Name of the Product */
|
|
@@ -8,9 +8,6 @@ export declare const TriggerType: {
|
|
|
8
8
|
readonly EcommNewOrder: "ecomm_new_order";
|
|
9
9
|
readonly EcommOrderChanged: "ecomm_order_changed";
|
|
10
10
|
readonly EcommInventoryChanged: "ecomm_inventory_changed";
|
|
11
|
-
readonly UserAccountAdded: "user_account_added";
|
|
12
|
-
readonly UserAccountUpdated: "user_account_updated";
|
|
13
|
-
readonly UserAccountDeleted: "user_account_deleted";
|
|
14
11
|
readonly CollectionItemCreated: "collection_item_created";
|
|
15
12
|
readonly CollectionItemChanged: "collection_item_changed";
|
|
16
13
|
readonly CollectionItemDeleted: "collection_item_deleted";
|
package/api/types/TriggerType.js
CHANGED
|
@@ -12,9 +12,6 @@ exports.TriggerType = {
|
|
|
12
12
|
EcommNewOrder: "ecomm_new_order",
|
|
13
13
|
EcommOrderChanged: "ecomm_order_changed",
|
|
14
14
|
EcommInventoryChanged: "ecomm_inventory_changed",
|
|
15
|
-
UserAccountAdded: "user_account_added",
|
|
16
|
-
UserAccountUpdated: "user_account_updated",
|
|
17
|
-
UserAccountDeleted: "user_account_deleted",
|
|
18
15
|
CollectionItemCreated: "collection_item_created",
|
|
19
16
|
CollectionItemChanged: "collection_item_changed",
|
|
20
17
|
CollectionItemDeleted: "collection_item_deleted",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as Webflow from "../index";
|
|
2
|
-
export type WorkspaceAuditLogItem = Webflow.WorkspaceAuditLogItem.UserAccess | Webflow.WorkspaceAuditLogItem.CustomRole | Webflow.WorkspaceAuditLogItem.WorkspaceMembership | Webflow.WorkspaceAuditLogItem.SiteMembership | Webflow.WorkspaceAuditLogItem.WorkspaceInvitation;
|
|
2
|
+
export type WorkspaceAuditLogItem = Webflow.WorkspaceAuditLogItem.UserAccess | Webflow.WorkspaceAuditLogItem.CustomRole | Webflow.WorkspaceAuditLogItem.WorkspaceMembership | Webflow.WorkspaceAuditLogItem.SiteMembership | Webflow.WorkspaceAuditLogItem.WorkspaceInvitation | Webflow.WorkspaceAuditLogItem.WorkspaceSetting;
|
|
3
3
|
export declare namespace WorkspaceAuditLogItem {
|
|
4
4
|
interface UserAccess extends Webflow.UserAccessAuditLogItem, _Base {
|
|
5
5
|
eventType: "user_access";
|
|
@@ -16,6 +16,9 @@ export declare namespace WorkspaceAuditLogItem {
|
|
|
16
16
|
interface WorkspaceInvitation extends Webflow.WorkspaceInvitationAuditLogItem, _Base {
|
|
17
17
|
eventType: "workspace_invitation";
|
|
18
18
|
}
|
|
19
|
+
interface WorkspaceSetting extends Webflow.SettingChangeAuditLogItem, _Base {
|
|
20
|
+
eventType: "workspace_setting";
|
|
21
|
+
}
|
|
19
22
|
interface _Base {
|
|
20
23
|
timestamp?: Date;
|
|
21
24
|
actor?: Webflow.WorkspaceAuditLogItemActor;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const WorkspaceAuditLogItemPayloadSettingChangeMethod: {
|
|
2
|
+
readonly Dashboard: "dashboard";
|
|
3
|
+
readonly Admin: "admin";
|
|
4
|
+
};
|
|
5
|
+
export type WorkspaceAuditLogItemPayloadSettingChangeMethod = (typeof WorkspaceAuditLogItemPayloadSettingChangeMethod)[keyof typeof WorkspaceAuditLogItemPayloadSettingChangeMethod];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WorkspaceAuditLogItemPayloadSettingChangeMethod = void 0;
|
|
5
|
+
exports.WorkspaceAuditLogItemPayloadSettingChangeMethod = {
|
|
6
|
+
Dashboard: "dashboard",
|
|
7
|
+
Admin: "admin",
|
|
8
|
+
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from "./AccessGroup";
|
|
2
|
-
export * from "./AccessGroupList";
|
|
3
1
|
export * from "./Application";
|
|
4
2
|
export * from "./Asset";
|
|
5
3
|
export * from "./AssetFolder";
|
|
@@ -62,7 +60,6 @@ export * from "./ComponentProperties";
|
|
|
62
60
|
export * from "./ComponentProperty";
|
|
63
61
|
export * from "./ComponentPropertyType";
|
|
64
62
|
export * from "./Conflict";
|
|
65
|
-
export * from "./ConflictErrorBody";
|
|
66
63
|
export * from "./CustomCodeBlock";
|
|
67
64
|
export * from "./CustomCodeBlockType";
|
|
68
65
|
export * from "./CustomCodeHostedResponse";
|
|
@@ -73,7 +70,6 @@ export * from "./CustomRoleAuditLogItemEventSubType";
|
|
|
73
70
|
export * from "./Dom";
|
|
74
71
|
export * from "./Domain";
|
|
75
72
|
export * from "./Domains";
|
|
76
|
-
export * from "./DuplicateUserEmail";
|
|
77
73
|
export * from "./EcommerceSettings";
|
|
78
74
|
export * from "./Error_";
|
|
79
75
|
export * from "./ErrorCode";
|
|
@@ -178,6 +174,8 @@ export * from "./Select";
|
|
|
178
174
|
export * from "./SelectNode";
|
|
179
175
|
export * from "./SelectNodeChoicesItem";
|
|
180
176
|
export * from "./SelectNodeWriteChoicesItem";
|
|
177
|
+
export * from "./SettingChange";
|
|
178
|
+
export * from "./SettingChangeAuditLogItem";
|
|
181
179
|
export * from "./SingleLocaleCreatedPayload";
|
|
182
180
|
export * from "./SingleLocaleCreatedPayloadFieldData";
|
|
183
181
|
export * from "./Site";
|
|
@@ -224,23 +222,15 @@ export * from "./TextNodeText";
|
|
|
224
222
|
export * from "./TextNodeWrite";
|
|
225
223
|
export * from "./TriggerType";
|
|
226
224
|
export * from "./UpdatedOrder";
|
|
227
|
-
export * from "./User";
|
|
228
225
|
export * from "./UserAccess";
|
|
229
226
|
export * from "./UserAccessAuditLogItem";
|
|
230
227
|
export * from "./UserAccessAuditLogItemEventSubType";
|
|
231
|
-
export * from "./UserAccessGroupsItem";
|
|
232
|
-
export * from "./UserAccessGroupsItemType";
|
|
233
|
-
export * from "./UserData";
|
|
234
|
-
export * from "./UserDataData";
|
|
235
|
-
export * from "./UserLimitReached";
|
|
236
|
-
export * from "./UserList";
|
|
237
|
-
export * from "./UserStatus";
|
|
238
|
-
export * from "./UsersNotEnabled";
|
|
239
228
|
export * from "./Webhook";
|
|
240
229
|
export * from "./WebhookFilter";
|
|
241
230
|
export * from "./WebhookList";
|
|
242
231
|
export * from "./WorkspaceAuditLogItem";
|
|
243
232
|
export * from "./WorkspaceAuditLogItemActor";
|
|
233
|
+
export * from "./WorkspaceAuditLogItemPayloadSettingChangeMethod";
|
|
244
234
|
export * from "./WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess";
|
|
245
235
|
export * from "./WorkspaceAuditLogItemPayloadSiteMembershipMethod";
|
|
246
236
|
export * from "./WorkspaceAuditLogItemPayloadSiteMembershipSite";
|
package/api/types/index.js
CHANGED
|
@@ -14,8 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./AccessGroup"), exports);
|
|
18
|
-
__exportStar(require("./AccessGroupList"), exports);
|
|
19
17
|
__exportStar(require("./Application"), exports);
|
|
20
18
|
__exportStar(require("./Asset"), exports);
|
|
21
19
|
__exportStar(require("./AssetFolder"), exports);
|
|
@@ -78,7 +76,6 @@ __exportStar(require("./ComponentProperties"), exports);
|
|
|
78
76
|
__exportStar(require("./ComponentProperty"), exports);
|
|
79
77
|
__exportStar(require("./ComponentPropertyType"), exports);
|
|
80
78
|
__exportStar(require("./Conflict"), exports);
|
|
81
|
-
__exportStar(require("./ConflictErrorBody"), exports);
|
|
82
79
|
__exportStar(require("./CustomCodeBlock"), exports);
|
|
83
80
|
__exportStar(require("./CustomCodeBlockType"), exports);
|
|
84
81
|
__exportStar(require("./CustomCodeHostedResponse"), exports);
|
|
@@ -89,7 +86,6 @@ __exportStar(require("./CustomRoleAuditLogItemEventSubType"), exports);
|
|
|
89
86
|
__exportStar(require("./Dom"), exports);
|
|
90
87
|
__exportStar(require("./Domain"), exports);
|
|
91
88
|
__exportStar(require("./Domains"), exports);
|
|
92
|
-
__exportStar(require("./DuplicateUserEmail"), exports);
|
|
93
89
|
__exportStar(require("./EcommerceSettings"), exports);
|
|
94
90
|
__exportStar(require("./Error_"), exports);
|
|
95
91
|
__exportStar(require("./ErrorCode"), exports);
|
|
@@ -194,6 +190,8 @@ __exportStar(require("./Select"), exports);
|
|
|
194
190
|
__exportStar(require("./SelectNode"), exports);
|
|
195
191
|
__exportStar(require("./SelectNodeChoicesItem"), exports);
|
|
196
192
|
__exportStar(require("./SelectNodeWriteChoicesItem"), exports);
|
|
193
|
+
__exportStar(require("./SettingChange"), exports);
|
|
194
|
+
__exportStar(require("./SettingChangeAuditLogItem"), exports);
|
|
197
195
|
__exportStar(require("./SingleLocaleCreatedPayload"), exports);
|
|
198
196
|
__exportStar(require("./SingleLocaleCreatedPayloadFieldData"), exports);
|
|
199
197
|
__exportStar(require("./Site"), exports);
|
|
@@ -240,23 +238,15 @@ __exportStar(require("./TextNodeText"), exports);
|
|
|
240
238
|
__exportStar(require("./TextNodeWrite"), exports);
|
|
241
239
|
__exportStar(require("./TriggerType"), exports);
|
|
242
240
|
__exportStar(require("./UpdatedOrder"), exports);
|
|
243
|
-
__exportStar(require("./User"), exports);
|
|
244
241
|
__exportStar(require("./UserAccess"), exports);
|
|
245
242
|
__exportStar(require("./UserAccessAuditLogItem"), exports);
|
|
246
243
|
__exportStar(require("./UserAccessAuditLogItemEventSubType"), exports);
|
|
247
|
-
__exportStar(require("./UserAccessGroupsItem"), exports);
|
|
248
|
-
__exportStar(require("./UserAccessGroupsItemType"), exports);
|
|
249
|
-
__exportStar(require("./UserData"), exports);
|
|
250
|
-
__exportStar(require("./UserDataData"), exports);
|
|
251
|
-
__exportStar(require("./UserLimitReached"), exports);
|
|
252
|
-
__exportStar(require("./UserList"), exports);
|
|
253
|
-
__exportStar(require("./UserStatus"), exports);
|
|
254
|
-
__exportStar(require("./UsersNotEnabled"), exports);
|
|
255
244
|
__exportStar(require("./Webhook"), exports);
|
|
256
245
|
__exportStar(require("./WebhookFilter"), exports);
|
|
257
246
|
__exportStar(require("./WebhookList"), exports);
|
|
258
247
|
__exportStar(require("./WorkspaceAuditLogItem"), exports);
|
|
259
248
|
__exportStar(require("./WorkspaceAuditLogItemActor"), exports);
|
|
249
|
+
__exportStar(require("./WorkspaceAuditLogItemPayloadSettingChangeMethod"), exports);
|
|
260
250
|
__exportStar(require("./WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess"), exports);
|
|
261
251
|
__exportStar(require("./WorkspaceAuditLogItemPayloadSiteMembershipMethod"), exports);
|
|
262
252
|
__exportStar(require("./WorkspaceAuditLogItemPayloadSiteMembershipSite"), exports);
|
package/dist/BaseClient.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface BaseClientOptions {
|
|
|
4
4
|
environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
|
|
5
5
|
/** Specify a custom URL to connect the client to. */
|
|
6
6
|
baseUrl?: core.Supplier<string>;
|
|
7
|
-
accessToken
|
|
7
|
+
accessToken: core.Supplier<core.BearerToken>;
|
|
8
8
|
/** Additional headers to include in requests. */
|
|
9
9
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
/** The default maximum time to wait for a response in seconds. */
|
package/dist/Client.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AccessGroups } from "./api/resources/accessGroups/client/Client";
|
|
2
1
|
import { Assets } from "./api/resources/assets/client/Client";
|
|
3
2
|
import { Collections } from "./api/resources/collections/client/Client";
|
|
4
3
|
import { Components } from "./api/resources/components/client/Client";
|
|
@@ -11,7 +10,6 @@ import { Products } from "./api/resources/products/client/Client";
|
|
|
11
10
|
import { Scripts } from "./api/resources/scripts/client/Client";
|
|
12
11
|
import { Sites } from "./api/resources/sites/client/Client";
|
|
13
12
|
import { Token } from "./api/resources/token/client/Client";
|
|
14
|
-
import { Users } from "./api/resources/users/client/Client";
|
|
15
13
|
import { Webhooks } from "./api/resources/webhooks/client/Client";
|
|
16
14
|
import { Workspaces } from "./api/resources/workspaces/client/Client";
|
|
17
15
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient";
|
|
@@ -32,14 +30,12 @@ export declare class WebflowClient {
|
|
|
32
30
|
protected _assets: Assets | undefined;
|
|
33
31
|
protected _webhooks: Webhooks | undefined;
|
|
34
32
|
protected _forms: Forms | undefined;
|
|
35
|
-
protected _users: Users | undefined;
|
|
36
|
-
protected _accessGroups: AccessGroups | undefined;
|
|
37
33
|
protected _products: Products | undefined;
|
|
38
34
|
protected _orders: Orders | undefined;
|
|
39
35
|
protected _inventory: Inventory | undefined;
|
|
40
36
|
protected _ecommerce: Ecommerce | undefined;
|
|
41
37
|
protected _workspaces: Workspaces | undefined;
|
|
42
|
-
constructor(_options
|
|
38
|
+
constructor(_options: WebflowClient.Options);
|
|
43
39
|
get token(): Token;
|
|
44
40
|
get sites(): Sites;
|
|
45
41
|
get collections(): Collections;
|
|
@@ -49,8 +45,6 @@ export declare class WebflowClient {
|
|
|
49
45
|
get assets(): Assets;
|
|
50
46
|
get webhooks(): Webhooks;
|
|
51
47
|
get forms(): Forms;
|
|
52
|
-
get users(): Users;
|
|
53
|
-
get accessGroups(): AccessGroups;
|
|
54
48
|
get products(): Products;
|
|
55
49
|
get orders(): Orders;
|
|
56
50
|
get inventory(): Inventory;
|
package/dist/Client.js
CHANGED
|
@@ -35,98 +35,88 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.WebflowClient = void 0;
|
|
38
|
-
const Client_1 = require("./api/resources/
|
|
39
|
-
const Client_2 = require("./api/resources/
|
|
40
|
-
const Client_3 = require("./api/resources/
|
|
41
|
-
const Client_4 = require("./api/resources/
|
|
42
|
-
const Client_5 = require("./api/resources/
|
|
43
|
-
const Client_6 = require("./api/resources/
|
|
44
|
-
const Client_7 = require("./api/resources/
|
|
45
|
-
const Client_8 = require("./api/resources/
|
|
46
|
-
const Client_9 = require("./api/resources/
|
|
47
|
-
const Client_10 = require("./api/resources/
|
|
48
|
-
const Client_11 = require("./api/resources/
|
|
49
|
-
const Client_12 = require("./api/resources/
|
|
50
|
-
const Client_13 = require("./api/resources/
|
|
51
|
-
const Client_14 = require("./api/resources/
|
|
52
|
-
const Client_15 = require("./api/resources/webhooks/client/Client");
|
|
53
|
-
const Client_16 = require("./api/resources/workspaces/client/Client");
|
|
38
|
+
const Client_1 = require("./api/resources/assets/client/Client");
|
|
39
|
+
const Client_2 = require("./api/resources/collections/client/Client");
|
|
40
|
+
const Client_3 = require("./api/resources/components/client/Client");
|
|
41
|
+
const Client_4 = require("./api/resources/ecommerce/client/Client");
|
|
42
|
+
const Client_5 = require("./api/resources/forms/client/Client");
|
|
43
|
+
const Client_6 = require("./api/resources/inventory/client/Client");
|
|
44
|
+
const Client_7 = require("./api/resources/orders/client/Client");
|
|
45
|
+
const Client_8 = require("./api/resources/pages/client/Client");
|
|
46
|
+
const Client_9 = require("./api/resources/products/client/Client");
|
|
47
|
+
const Client_10 = require("./api/resources/scripts/client/Client");
|
|
48
|
+
const Client_11 = require("./api/resources/sites/client/Client");
|
|
49
|
+
const Client_12 = require("./api/resources/token/client/Client");
|
|
50
|
+
const Client_13 = require("./api/resources/webhooks/client/Client");
|
|
51
|
+
const Client_14 = require("./api/resources/workspaces/client/Client");
|
|
54
52
|
const core = __importStar(require("./core"));
|
|
55
53
|
const headers_1 = require("./core/headers");
|
|
56
54
|
class WebflowClient {
|
|
57
|
-
constructor(_options
|
|
55
|
+
constructor(_options) {
|
|
58
56
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
|
|
59
57
|
"X-Fern-Language": "JavaScript",
|
|
60
58
|
"X-Fern-SDK-Name": "webflow-api",
|
|
61
|
-
"X-Fern-SDK-Version": "3.3.
|
|
62
|
-
"User-Agent": "webflow-api/3.3.
|
|
59
|
+
"X-Fern-SDK-Version": "3.3.1",
|
|
60
|
+
"User-Agent": "webflow-api/3.3.1",
|
|
63
61
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
64
62
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
65
63
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
66
64
|
}
|
|
67
65
|
get token() {
|
|
68
66
|
var _a;
|
|
69
|
-
return ((_a = this._token) !== null && _a !== void 0 ? _a : (this._token = new
|
|
67
|
+
return ((_a = this._token) !== null && _a !== void 0 ? _a : (this._token = new Client_12.Token(this._options)));
|
|
70
68
|
}
|
|
71
69
|
get sites() {
|
|
72
70
|
var _a;
|
|
73
|
-
return ((_a = this._sites) !== null && _a !== void 0 ? _a : (this._sites = new
|
|
71
|
+
return ((_a = this._sites) !== null && _a !== void 0 ? _a : (this._sites = new Client_11.Sites(this._options)));
|
|
74
72
|
}
|
|
75
73
|
get collections() {
|
|
76
74
|
var _a;
|
|
77
|
-
return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new
|
|
75
|
+
return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new Client_2.Collections(this._options)));
|
|
78
76
|
}
|
|
79
77
|
get pages() {
|
|
80
78
|
var _a;
|
|
81
|
-
return ((_a = this._pages) !== null && _a !== void 0 ? _a : (this._pages = new
|
|
79
|
+
return ((_a = this._pages) !== null && _a !== void 0 ? _a : (this._pages = new Client_8.Pages(this._options)));
|
|
82
80
|
}
|
|
83
81
|
get components() {
|
|
84
82
|
var _a;
|
|
85
|
-
return ((_a = this._components) !== null && _a !== void 0 ? _a : (this._components = new
|
|
83
|
+
return ((_a = this._components) !== null && _a !== void 0 ? _a : (this._components = new Client_3.Components(this._options)));
|
|
86
84
|
}
|
|
87
85
|
get scripts() {
|
|
88
86
|
var _a;
|
|
89
|
-
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new
|
|
87
|
+
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_10.Scripts(this._options)));
|
|
90
88
|
}
|
|
91
89
|
get assets() {
|
|
92
90
|
var _a;
|
|
93
|
-
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new
|
|
91
|
+
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_1.Assets(this._options)));
|
|
94
92
|
}
|
|
95
93
|
get webhooks() {
|
|
96
94
|
var _a;
|
|
97
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
95
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_13.Webhooks(this._options)));
|
|
98
96
|
}
|
|
99
97
|
get forms() {
|
|
100
98
|
var _a;
|
|
101
|
-
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new
|
|
102
|
-
}
|
|
103
|
-
get users() {
|
|
104
|
-
var _a;
|
|
105
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_14.Users(this._options)));
|
|
106
|
-
}
|
|
107
|
-
get accessGroups() {
|
|
108
|
-
var _a;
|
|
109
|
-
return ((_a = this._accessGroups) !== null && _a !== void 0 ? _a : (this._accessGroups = new Client_1.AccessGroups(this._options)));
|
|
99
|
+
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_5.Forms(this._options)));
|
|
110
100
|
}
|
|
111
101
|
get products() {
|
|
112
102
|
var _a;
|
|
113
|
-
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new
|
|
103
|
+
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Client_9.Products(this._options)));
|
|
114
104
|
}
|
|
115
105
|
get orders() {
|
|
116
106
|
var _a;
|
|
117
|
-
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new
|
|
107
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_7.Orders(this._options)));
|
|
118
108
|
}
|
|
119
109
|
get inventory() {
|
|
120
110
|
var _a;
|
|
121
|
-
return ((_a = this._inventory) !== null && _a !== void 0 ? _a : (this._inventory = new
|
|
111
|
+
return ((_a = this._inventory) !== null && _a !== void 0 ? _a : (this._inventory = new Client_6.Inventory(this._options)));
|
|
122
112
|
}
|
|
123
113
|
get ecommerce() {
|
|
124
114
|
var _a;
|
|
125
|
-
return ((_a = this._ecommerce) !== null && _a !== void 0 ? _a : (this._ecommerce = new
|
|
115
|
+
return ((_a = this._ecommerce) !== null && _a !== void 0 ? _a : (this._ecommerce = new Client_4.Ecommerce(this._options)));
|
|
126
116
|
}
|
|
127
117
|
get workspaces() {
|
|
128
118
|
var _a;
|
|
129
|
-
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new
|
|
119
|
+
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_14.Workspaces(this._options)));
|
|
130
120
|
}
|
|
131
121
|
}
|
|
132
122
|
exports.WebflowClient = WebflowClient;
|
|
@@ -12,7 +12,7 @@ export declare namespace Assets {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class Assets {
|
|
14
14
|
protected readonly _options: Assets.Options;
|
|
15
|
-
constructor(_options
|
|
15
|
+
constructor(_options: Assets.Options);
|
|
16
16
|
/**
|
|
17
17
|
* List of assets uploaded to a site
|
|
18
18
|
*
|
|
@@ -30,8 +30,8 @@ export declare class Assets {
|
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* await client.assets.list("580e63e98c9a982ac9b8b741", {
|
|
33
|
-
* offset: 1
|
|
34
|
-
* limit: 1
|
|
33
|
+
* offset: 1,
|
|
34
|
+
* limit: 1
|
|
35
35
|
* })
|
|
36
36
|
*/
|
|
37
37
|
list(siteId: string, request?: Webflow.AssetsListRequest, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Webflow.Assets>;
|
|
@@ -186,5 +186,5 @@ export declare class Assets {
|
|
|
186
186
|
*/
|
|
187
187
|
getFolder(assetFolderId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Webflow.AssetFolder>;
|
|
188
188
|
private __getFolder;
|
|
189
|
-
protected _getAuthorizationHeader(): Promise<string
|
|
189
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
190
190
|
}
|