contentful-management 11.49.0-beta.2 → 11.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -73
- package/dist/contentful-management.browser.js +28443 -23461
- package/dist/contentful-management.browser.js.map +1 -0
- package/dist/contentful-management.browser.min.js +2 -1
- package/dist/contentful-management.node.js +32614 -0
- package/dist/contentful-management.node.js.map +1 -0
- package/dist/contentful-management.node.min.js +2 -0
- package/dist/{esm → es-modules}/adapters/REST/endpoints/access-token.js +22 -20
- package/dist/es-modules/adapters/REST/endpoints/ai-action-invocation.js +6 -0
- package/dist/es-modules/adapters/REST/endpoints/ai-action.js +61 -0
- package/dist/es-modules/adapters/REST/endpoints/api-key.js +47 -0
- package/dist/es-modules/adapters/REST/endpoints/app-access-token.js +8 -0
- package/dist/es-modules/adapters/REST/endpoints/app-action-call.js +69 -0
- package/dist/es-modules/adapters/REST/endpoints/app-action.js +32 -0
- package/dist/es-modules/adapters/REST/endpoints/app-bundle.js +36 -0
- package/dist/es-modules/adapters/REST/endpoints/app-definition.js +45 -0
- package/dist/es-modules/adapters/REST/endpoints/app-details.js +10 -0
- package/dist/es-modules/adapters/REST/endpoints/app-event-subscription.js +10 -0
- package/dist/es-modules/adapters/REST/endpoints/app-installation.js +39 -0
- package/dist/es-modules/adapters/REST/endpoints/app-key.js +13 -0
- package/dist/es-modules/adapters/REST/endpoints/app-signed-request.js +4 -0
- package/dist/es-modules/adapters/REST/endpoints/app-signing-secret.js +10 -0
- package/dist/es-modules/adapters/REST/endpoints/app-upload.js +23 -0
- package/dist/es-modules/adapters/REST/endpoints/asset-key.js +33 -0
- package/dist/es-modules/adapters/REST/endpoints/asset.js +220 -0
- package/dist/es-modules/adapters/REST/endpoints/bulk-action.js +13 -0
- package/dist/es-modules/adapters/REST/endpoints/comment.js +101 -0
- package/dist/es-modules/adapters/REST/endpoints/concept-scheme.js +52 -0
- package/dist/es-modules/adapters/REST/endpoints/concept.js +85 -0
- package/dist/es-modules/adapters/REST/endpoints/content-type.js +61 -0
- package/dist/es-modules/adapters/REST/endpoints/editor-interface.js +24 -0
- package/dist/es-modules/adapters/REST/endpoints/entry.js +113 -0
- package/dist/es-modules/adapters/REST/endpoints/environment-alias.js +46 -0
- package/dist/es-modules/adapters/REST/endpoints/environment-template-installation.js +43 -0
- package/dist/es-modules/adapters/REST/endpoints/environment-template.js +88 -0
- package/dist/es-modules/adapters/REST/endpoints/environment.js +42 -0
- package/dist/es-modules/adapters/REST/endpoints/extension.js +44 -0
- package/dist/es-modules/adapters/REST/endpoints/function-log.js +22 -0
- package/dist/es-modules/adapters/REST/endpoints/function.js +20 -0
- package/dist/es-modules/adapters/REST/endpoints/http.js +39 -0
- package/dist/es-modules/adapters/REST/endpoints/index.js +134 -0
- package/dist/es-modules/adapters/REST/endpoints/locale.js +35 -0
- package/dist/{esm → es-modules}/adapters/REST/endpoints/oauth-application.js +22 -21
- package/dist/es-modules/adapters/REST/endpoints/organization-invitation.js +22 -0
- package/dist/es-modules/adapters/REST/endpoints/organization-membership.js +35 -0
- package/dist/es-modules/adapters/REST/endpoints/organization.js +26 -0
- package/dist/es-modules/adapters/REST/endpoints/personal-access-token.js +33 -0
- package/dist/es-modules/adapters/REST/endpoints/preview-api-key.js +9 -0
- package/dist/es-modules/adapters/REST/endpoints/raw.js +42 -0
- package/dist/es-modules/adapters/REST/endpoints/release-action.js +21 -0
- package/dist/es-modules/adapters/REST/endpoints/release.js +58 -0
- package/dist/es-modules/adapters/REST/endpoints/resource-provider.js +13 -0
- package/dist/es-modules/adapters/REST/endpoints/resource-type.js +23 -0
- package/dist/es-modules/adapters/REST/endpoints/resource.js +5 -0
- package/dist/es-modules/adapters/REST/endpoints/role.js +44 -0
- package/dist/es-modules/adapters/REST/endpoints/scheduled-action.js +35 -0
- package/dist/es-modules/adapters/REST/endpoints/snapshot.js +22 -0
- package/dist/es-modules/adapters/REST/endpoints/space-member.js +5 -0
- package/dist/es-modules/adapters/REST/endpoints/space-membership.js +55 -0
- package/dist/es-modules/adapters/REST/endpoints/space.js +32 -0
- package/dist/es-modules/adapters/REST/endpoints/tag.js +46 -0
- package/dist/es-modules/adapters/REST/endpoints/task.js +47 -0
- package/dist/es-modules/adapters/REST/endpoints/team-membership.js +34 -0
- package/dist/es-modules/adapters/REST/endpoints/team-space-membership.js +45 -0
- package/dist/es-modules/adapters/REST/endpoints/team.js +35 -0
- package/dist/es-modules/adapters/REST/endpoints/ui-config.js +16 -0
- package/dist/es-modules/adapters/REST/endpoints/upload-credentials.js +11 -0
- package/dist/es-modules/adapters/REST/endpoints/upload.js +37 -0
- package/dist/es-modules/adapters/REST/endpoints/usage.js +11 -0
- package/dist/es-modules/adapters/REST/endpoints/user-ui-config.js +16 -0
- package/dist/es-modules/adapters/REST/endpoints/user.js +20 -0
- package/dist/es-modules/adapters/REST/endpoints/utils.js +28 -0
- package/dist/es-modules/adapters/REST/endpoints/webhook.js +93 -0
- package/dist/es-modules/adapters/REST/endpoints/workflow-definition.js +46 -0
- package/dist/es-modules/adapters/REST/endpoints/workflow.js +59 -0
- package/dist/es-modules/adapters/REST/endpoints/workflows-changelog.js +6 -0
- package/dist/es-modules/adapters/REST/make-request.js +28 -0
- package/dist/es-modules/adapters/REST/rest-adapter.js +42 -0
- package/dist/es-modules/adapters/REST/types.js +1 -0
- package/dist/es-modules/common-types.js +61 -0
- package/dist/es-modules/common-utils.js +30 -0
- package/dist/es-modules/constants/editor-interface-defaults/controls-defaults.js +255 -0
- package/dist/es-modules/constants/editor-interface-defaults/editors-defaults.js +34 -0
- package/dist/es-modules/constants/editor-interface-defaults/index.js +9 -0
- package/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js +57 -0
- package/dist/es-modules/constants/editor-interface-defaults/types.js +14 -0
- package/dist/es-modules/contentful-management.js +66 -0
- package/dist/es-modules/create-adapter.js +16 -0
- package/dist/es-modules/create-app-definition-api.js +263 -0
- package/dist/es-modules/create-contentful-api.js +663 -0
- package/dist/es-modules/create-entry-api.js +548 -0
- package/dist/es-modules/create-environment-api.js +2525 -0
- package/dist/es-modules/create-environment-template-api.js +316 -0
- package/dist/es-modules/create-organization-api.js +1306 -0
- package/dist/es-modules/create-space-api.js +1751 -0
- package/dist/es-modules/create-ui-config-api.js +60 -0
- package/dist/es-modules/create-user-ui-config-api.js +60 -0
- package/dist/{esm → es-modules}/enhance-with-methods.js +11 -13
- package/dist/es-modules/entities/access-token.js +38 -0
- package/dist/es-modules/entities/ai-action-invocation.js +46 -0
- package/dist/es-modules/entities/ai-action.js +85 -0
- package/dist/es-modules/entities/api-key.js +55 -0
- package/dist/es-modules/entities/app-access-token.js +12 -0
- package/dist/es-modules/entities/app-action-call.js +70 -0
- package/dist/es-modules/entities/app-action.js +53 -0
- package/dist/es-modules/entities/app-bundle.js +44 -0
- package/dist/es-modules/entities/app-definition.js +24 -0
- package/dist/es-modules/entities/app-details.js +35 -0
- package/dist/es-modules/entities/app-event-subscription.js +30 -0
- package/dist/es-modules/entities/app-installation.js +51 -0
- package/dist/es-modules/entities/app-key.js +40 -0
- package/dist/{esm → es-modules}/entities/app-signed-request.js +4 -7
- package/dist/es-modules/entities/app-signing-secret.js +30 -0
- package/dist/es-modules/entities/app-upload.js +43 -0
- package/dist/{esm → es-modules}/entities/asset-key.js +4 -7
- package/dist/es-modules/entities/asset.js +131 -0
- package/dist/es-modules/entities/bulk-action.js +61 -0
- package/dist/es-modules/entities/comment.js +77 -0
- package/dist/es-modules/entities/concept-scheme.js +1 -0
- package/dist/es-modules/entities/concept.js +1 -0
- package/dist/es-modules/entities/content-type-fields.js +1 -0
- package/dist/es-modules/entities/content-type.js +146 -0
- package/dist/es-modules/entities/editor-interface.js +46 -0
- package/dist/es-modules/entities/entry.js +22 -0
- package/dist/es-modules/entities/environment-alias.js +54 -0
- package/dist/es-modules/entities/environment-template-installation.js +17 -0
- package/dist/es-modules/entities/environment-template.js +12 -0
- package/dist/es-modules/entities/environment.js +29 -0
- package/dist/es-modules/entities/extension.js +50 -0
- package/dist/es-modules/entities/field-type.js +1 -0
- package/dist/{esm → es-modules}/entities/function-log.js +7 -9
- package/dist/es-modules/entities/function.js +61 -0
- package/dist/es-modules/entities/index.js +126 -0
- package/dist/es-modules/entities/locale.js +53 -0
- package/dist/es-modules/entities/oauth-application.js +62 -0
- package/dist/es-modules/entities/organization-invitation.js +12 -0
- package/dist/es-modules/entities/organization-membership.js +49 -0
- package/dist/es-modules/entities/organization.js +32 -0
- package/dist/es-modules/entities/personal-access-token.js +38 -0
- package/dist/es-modules/entities/preview-api-key.js +27 -0
- package/dist/es-modules/entities/release-action.js +53 -0
- package/dist/es-modules/entities/release.js +105 -0
- package/dist/es-modules/entities/resource-provider.js +139 -0
- package/dist/es-modules/entities/resource-type.js +93 -0
- package/dist/es-modules/entities/resource.js +7 -0
- package/dist/es-modules/entities/role.js +49 -0
- package/dist/es-modules/entities/scheduled-action.js +155 -0
- package/dist/es-modules/entities/snapshot.js +31 -0
- package/dist/es-modules/entities/space-member.js +18 -0
- package/dist/es-modules/entities/space-membership.js +49 -0
- package/dist/es-modules/entities/space.js +28 -0
- package/dist/es-modules/entities/tag.js +56 -0
- package/dist/es-modules/entities/task.js +57 -0
- package/dist/es-modules/entities/team-membership.js +50 -0
- package/dist/es-modules/entities/team-space-membership.js +49 -0
- package/dist/es-modules/entities/team.js +49 -0
- package/dist/es-modules/entities/ui-config.js +15 -0
- package/dist/es-modules/entities/upload-credential.js +33 -0
- package/dist/es-modules/entities/upload.js +34 -0
- package/dist/es-modules/entities/usage.js +20 -0
- package/dist/es-modules/entities/user-ui-config.js +15 -0
- package/dist/es-modules/entities/user.js +23 -0
- package/dist/es-modules/entities/utils.js +1 -0
- package/dist/es-modules/entities/webhook.js +80 -0
- package/dist/es-modules/entities/widget-parameters.js +1 -0
- package/dist/es-modules/entities/workflow-definition.js +87 -0
- package/dist/es-modules/entities/workflow.js +76 -0
- package/dist/es-modules/entities/workflows-changelog-entry.js +24 -0
- package/dist/es-modules/export-types.js +3 -0
- package/dist/es-modules/methods/action.js +54 -0
- package/dist/es-modules/methods/bulk-action.js +15 -0
- package/dist/es-modules/methods/content-type.js +47 -0
- package/dist/es-modules/methods/release-action.js +17 -0
- package/dist/es-modules/methods/utils.js +7 -0
- package/dist/es-modules/plain/as-iterator.js +47 -0
- package/dist/es-modules/plain/checks.js +8 -0
- package/dist/es-modules/plain/common-types.js +1 -0
- package/dist/es-modules/plain/entities/ai-action-invocation.js +1 -0
- package/dist/es-modules/plain/entities/ai-action.js +1 -0
- package/dist/es-modules/plain/entities/app-access-token.js +1 -0
- package/dist/es-modules/plain/entities/app-action-call.js +1 -0
- package/dist/es-modules/plain/entities/app-action.js +1 -0
- package/dist/es-modules/plain/entities/app-bundle.js +1 -0
- package/dist/es-modules/plain/entities/app-definition.js +1 -0
- package/dist/es-modules/plain/entities/app-details.js +1 -0
- package/dist/es-modules/plain/entities/app-event-subscription.js +1 -0
- package/dist/es-modules/plain/entities/app-installation.js +1 -0
- package/dist/es-modules/plain/entities/app-key.js +1 -0
- package/dist/es-modules/plain/entities/app-signed-request.js +1 -0
- package/dist/es-modules/plain/entities/app-signing-secret.js +1 -0
- package/dist/es-modules/plain/entities/app-upload.js +1 -0
- package/dist/es-modules/plain/entities/comment.js +1 -0
- package/dist/es-modules/plain/entities/concept-scheme.js +1 -0
- package/dist/es-modules/plain/entities/concept.js +1 -0
- package/dist/es-modules/plain/entities/editor-interface.js +1 -0
- package/dist/es-modules/plain/entities/environment-alias.js +1 -0
- package/dist/es-modules/plain/entities/environment.js +1 -0
- package/dist/es-modules/plain/entities/extension.js +1 -0
- package/dist/es-modules/plain/entities/function-log.js +1 -0
- package/dist/es-modules/plain/entities/function.js +1 -0
- package/dist/es-modules/plain/entities/locale.js +1 -0
- package/dist/es-modules/plain/entities/oauth-application.js +1 -0
- package/dist/es-modules/plain/entities/organization.js +1 -0
- package/dist/es-modules/plain/entities/resource-provider.js +1 -0
- package/dist/es-modules/plain/entities/resource-type.js +1 -0
- package/dist/es-modules/plain/entities/resource.js +1 -0
- package/dist/es-modules/plain/entities/role.js +1 -0
- package/dist/es-modules/plain/entities/space-member.js +1 -0
- package/dist/es-modules/plain/entities/space-membership.js +1 -0
- package/dist/es-modules/plain/entities/space.js +1 -0
- package/dist/es-modules/plain/entities/tag.js +1 -0
- package/dist/es-modules/plain/entities/task.js +1 -0
- package/dist/es-modules/plain/entities/team-membership.js +1 -0
- package/dist/es-modules/plain/entities/team-space-membership.js +1 -0
- package/dist/es-modules/plain/entities/team.js +1 -0
- package/dist/es-modules/plain/entities/ui-config.js +1 -0
- package/dist/es-modules/plain/entities/upload-credential.js +1 -0
- package/dist/es-modules/plain/entities/upload.js +1 -0
- package/dist/es-modules/plain/entities/usage.js +1 -0
- package/dist/es-modules/plain/entities/user-ui-config.js +1 -0
- package/dist/es-modules/plain/entities/user.js +1 -0
- package/dist/es-modules/plain/entities/webhook.js +1 -0
- package/dist/es-modules/plain/entities/workflow-definition.js +1 -0
- package/dist/es-modules/plain/entities/workflow.js +1 -0
- package/dist/es-modules/plain/entities/workflows-changelog.js +1 -0
- package/dist/es-modules/plain/pagination-helper.js +76 -0
- package/dist/es-modules/plain/plain-client.js +544 -0
- package/dist/es-modules/plain/wrappers/wrap.js +46 -0
- package/dist/es-modules/plain/wrappers/wrap.test-d.js +15 -0
- package/dist/es-modules/upload-http-client.js +17 -0
- package/dist/typings/adapters/REST/endpoints/ai-action-invocation.d.ts +2 -0
- package/dist/typings/adapters/REST/endpoints/ai-action.d.ts +9 -0
- package/dist/{types → typings}/adapters/REST/endpoints/index.d.ts +4 -0
- package/dist/{types → typings}/common-types.d.ts +75 -0
- package/dist/{types → typings}/constants/editor-interface-defaults/controls-defaults.d.ts +1 -1
- package/dist/{types/index.d.ts → typings/contentful-management.d.ts} +2 -2
- package/dist/{types → typings}/create-contentful-api.d.ts +0 -1
- package/dist/{types → typings}/create-environment-api.d.ts +39 -2
- package/dist/{types → typings}/create-space-api.d.ts +100 -0
- package/dist/{types → typings}/create-ui-config-api.d.ts +1 -1
- package/dist/{types → typings}/create-user-ui-config-api.d.ts +1 -1
- package/dist/typings/entities/ai-action-invocation.d.ts +90 -0
- package/dist/typings/entities/ai-action.d.ts +97 -0
- package/dist/{types → typings}/entities/index.d.ts +4 -0
- package/dist/{types → typings}/entities/ui-config.d.ts +1 -1
- package/dist/{types → typings}/entities/user-ui-config.d.ts +1 -1
- package/dist/{types → typings}/export-types.d.ts +2 -0
- package/dist/{types → typings}/plain/common-types.d.ts +4 -1
- package/dist/typings/plain/entities/ai-action-invocation.d.ts +18 -0
- package/dist/typings/plain/entities/ai-action.d.ts +84 -0
- package/package.json +45 -49
- package/dist/contentful-management.cjs +0 -36550
- package/dist/esm/adapters/REST/endpoints/api-key.js +0 -41
- package/dist/esm/adapters/REST/endpoints/app-access-token.js +0 -7
- package/dist/esm/adapters/REST/endpoints/app-action-call.js +0 -61
- package/dist/esm/adapters/REST/endpoints/app-action.js +0 -35
- package/dist/esm/adapters/REST/endpoints/app-bundle.js +0 -34
- package/dist/esm/adapters/REST/endpoints/app-definition.js +0 -39
- package/dist/esm/adapters/REST/endpoints/app-details.js +0 -13
- package/dist/esm/adapters/REST/endpoints/app-event-subscription.js +0 -13
- package/dist/esm/adapters/REST/endpoints/app-installation.js +0 -35
- package/dist/esm/adapters/REST/endpoints/app-key.js +0 -16
- package/dist/esm/adapters/REST/endpoints/app-signed-request.js +0 -7
- package/dist/esm/adapters/REST/endpoints/app-signing-secret.js +0 -13
- package/dist/esm/adapters/REST/endpoints/app-upload.js +0 -24
- package/dist/esm/adapters/REST/endpoints/asset-key.js +0 -31
- package/dist/esm/adapters/REST/endpoints/asset.js +0 -170
- package/dist/esm/adapters/REST/endpoints/bulk-action.js +0 -16
- package/dist/esm/adapters/REST/endpoints/comment.js +0 -85
- package/dist/esm/adapters/REST/endpoints/concept-scheme.js +0 -40
- package/dist/esm/adapters/REST/endpoints/concept.js +0 -59
- package/dist/esm/adapters/REST/endpoints/content-type.js +0 -47
- package/dist/esm/adapters/REST/endpoints/editor-interface.js +0 -20
- package/dist/esm/adapters/REST/endpoints/entry.js +0 -90
- package/dist/esm/adapters/REST/endpoints/environment-alias.js +0 -38
- package/dist/esm/adapters/REST/endpoints/environment-template-installation.js +0 -20
- package/dist/esm/adapters/REST/endpoints/environment-template.js +0 -38
- package/dist/esm/adapters/REST/endpoints/environment.js +0 -40
- package/dist/esm/adapters/REST/endpoints/extension.js +0 -36
- package/dist/esm/adapters/REST/endpoints/function-log.js +0 -20
- package/dist/esm/adapters/REST/endpoints/function.js +0 -21
- package/dist/esm/adapters/REST/endpoints/http.js +0 -22
- package/dist/esm/adapters/REST/endpoints/index.js +0 -133
- package/dist/esm/adapters/REST/endpoints/locale.js +0 -31
- package/dist/esm/adapters/REST/endpoints/organization-invitation.js +0 -20
- package/dist/esm/adapters/REST/endpoints/organization-membership.js +0 -27
- package/dist/esm/adapters/REST/endpoints/organization.js +0 -25
- package/dist/esm/adapters/REST/endpoints/personal-access-token.js +0 -32
- package/dist/esm/adapters/REST/endpoints/preview-api-key.js +0 -12
- package/dist/esm/adapters/REST/endpoints/raw.js +0 -37
- package/dist/esm/adapters/REST/endpoints/release-action.js +0 -17
- package/dist/esm/adapters/REST/endpoints/release.js +0 -50
- package/dist/esm/adapters/REST/endpoints/resource-provider.js +0 -14
- package/dist/esm/adapters/REST/endpoints/resource-type.js +0 -24
- package/dist/esm/adapters/REST/endpoints/resource.js +0 -8
- package/dist/esm/adapters/REST/endpoints/role.js +0 -40
- package/dist/esm/adapters/REST/endpoints/scheduled-action.js +0 -38
- package/dist/esm/adapters/REST/endpoints/snapshot.js +0 -25
- package/dist/esm/adapters/REST/endpoints/space-member.js +0 -8
- package/dist/esm/adapters/REST/endpoints/space-membership.js +0 -51
- package/dist/esm/adapters/REST/endpoints/space.js +0 -27
- package/dist/esm/adapters/REST/endpoints/tag.js +0 -31
- package/dist/esm/adapters/REST/endpoints/task.js +0 -33
- package/dist/esm/adapters/REST/endpoints/team-membership.js +0 -28
- package/dist/esm/adapters/REST/endpoints/team-space-membership.js +0 -38
- package/dist/esm/adapters/REST/endpoints/team.js +0 -29
- package/dist/esm/adapters/REST/endpoints/ui-config.js +0 -19
- package/dist/esm/adapters/REST/endpoints/upload-credentials.js +0 -14
- package/dist/esm/adapters/REST/endpoints/upload.js +0 -38
- package/dist/esm/adapters/REST/endpoints/usage.js +0 -14
- package/dist/esm/adapters/REST/endpoints/user-ui-config.js +0 -19
- package/dist/esm/adapters/REST/endpoints/user.js +0 -21
- package/dist/esm/adapters/REST/endpoints/utils.js +0 -17
- package/dist/esm/adapters/REST/endpoints/webhook.js +0 -82
- package/dist/esm/adapters/REST/endpoints/workflow-definition.js +0 -35
- package/dist/esm/adapters/REST/endpoints/workflow.js +0 -42
- package/dist/esm/adapters/REST/endpoints/workflows-changelog.js +0 -9
- package/dist/esm/adapters/REST/make-request.js +0 -17
- package/dist/esm/adapters/REST/rest-adapter.js +0 -30
- package/dist/esm/common-types.js +0 -6
- package/dist/esm/common-utils.js +0 -32
- package/dist/esm/constants/editor-interface-defaults/controls-defaults.js +0 -153
- package/dist/esm/constants/editor-interface-defaults/editors-defaults.js +0 -37
- package/dist/esm/constants/editor-interface-defaults/index.js +0 -12
- package/dist/esm/constants/editor-interface-defaults/sidebar-defaults.js +0 -68
- package/dist/esm/constants/editor-interface-defaults/types.js +0 -15
- package/dist/esm/create-adapter.js +0 -19
- package/dist/esm/create-app-definition-api.js +0 -252
- package/dist/esm/create-contentful-api.js +0 -590
- package/dist/esm/create-entry-api.js +0 -479
- package/dist/esm/create-environment-api.js +0 -2347
- package/dist/esm/create-environment-template-api.js +0 -268
- package/dist/esm/create-organization-api.js +0 -1134
- package/dist/esm/create-space-api.js +0 -1436
- package/dist/esm/create-ui-config-api.js +0 -53
- package/dist/esm/create-user-ui-config-api.js +0 -53
- package/dist/esm/entities/access-token.js +0 -33
- package/dist/esm/entities/api-key.js +0 -56
- package/dist/esm/entities/app-access-token.js +0 -15
- package/dist/esm/entities/app-action-call.js +0 -61
- package/dist/esm/entities/app-action.js +0 -45
- package/dist/esm/entities/app-bundle.js +0 -45
- package/dist/esm/entities/app-definition.js +0 -26
- package/dist/esm/entities/app-details.js +0 -37
- package/dist/esm/entities/app-event-subscription.js +0 -32
- package/dist/esm/entities/app-installation.js +0 -52
- package/dist/esm/entities/app-key.js +0 -41
- package/dist/esm/entities/app-signing-secret.js +0 -32
- package/dist/esm/entities/app-upload.js +0 -44
- package/dist/esm/entities/asset.js +0 -121
- package/dist/esm/entities/bulk-action.js +0 -58
- package/dist/esm/entities/comment.js +0 -57
- package/dist/esm/entities/concept-scheme.js +0 -1
- package/dist/esm/entities/concept.js +0 -1
- package/dist/esm/entities/content-type.js +0 -117
- package/dist/esm/entities/editor-interface.js +0 -47
- package/dist/esm/entities/entry.js +0 -24
- package/dist/esm/entities/environment-alias.js +0 -55
- package/dist/esm/entities/environment-template-installation.js +0 -20
- package/dist/esm/entities/environment-template.js +0 -15
- package/dist/esm/entities/environment.js +0 -31
- package/dist/esm/entities/extension.js +0 -51
- package/dist/esm/entities/function.js +0 -63
- package/dist/esm/entities/index.js +0 -125
- package/dist/esm/entities/locale.js +0 -54
- package/dist/esm/entities/oauth-application.js +0 -63
- package/dist/esm/entities/organization-invitation.js +0 -15
- package/dist/esm/entities/organization-membership.js +0 -50
- package/dist/esm/entities/organization.js +0 -29
- package/dist/esm/entities/personal-access-token.js +0 -33
- package/dist/esm/entities/preview-api-key.js +0 -28
- package/dist/esm/entities/release-action.js +0 -52
- package/dist/esm/entities/release.js +0 -107
- package/dist/esm/entities/resource-provider.js +0 -137
- package/dist/esm/entities/resource-type.js +0 -94
- package/dist/esm/entities/resource.js +0 -10
- package/dist/esm/entities/role.js +0 -50
- package/dist/esm/entities/scheduled-action.js +0 -148
- package/dist/esm/entities/snapshot.js +0 -33
- package/dist/esm/entities/space-member.js +0 -20
- package/dist/esm/entities/space-membership.js +0 -50
- package/dist/esm/entities/space.js +0 -30
- package/dist/esm/entities/tag.js +0 -50
- package/dist/esm/entities/task.js +0 -51
- package/dist/esm/entities/team-membership.js +0 -51
- package/dist/esm/entities/team-space-membership.js +0 -50
- package/dist/esm/entities/team.js +0 -50
- package/dist/esm/entities/ui-config.js +0 -18
- package/dist/esm/entities/upload.js +0 -36
- package/dist/esm/entities/usage.js +0 -22
- package/dist/esm/entities/user-ui-config.js +0 -18
- package/dist/esm/entities/user.js +0 -25
- package/dist/esm/entities/webhook.js +0 -74
- package/dist/esm/entities/workflow-definition.js +0 -73
- package/dist/esm/index.js +0 -36
- package/dist/esm/methods/action.js +0 -49
- package/dist/esm/methods/content-type.js +0 -49
- package/dist/esm/methods/utils.js +0 -9
- package/dist/esm/plain/as-iterator.js +0 -30
- package/dist/esm/plain/checks.js +0 -10
- package/dist/esm/plain/pagination-helper.js +0 -54
- package/dist/esm/plain/plain-client.js +0 -503
- package/dist/esm/plain/wrappers/wrap.js +0 -24
- package/dist/esm/upload-http-client.js +0 -15
- package/dist/stats-browser-min.html +0 -4842
- /package/dist/{types → typings}/adapters/REST/endpoints/access-token.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/api-key.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-access-token.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-action-call.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-action.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-bundle.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-definition.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-details.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-event-subscription.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-installation.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-key.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-signed-request.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-signing-secret.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/app-upload.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/asset-key.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/asset.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/bulk-action.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/comment.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/concept-scheme.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/concept.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/content-type.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/editor-interface.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/entry.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/environment-alias.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/environment-template-installation.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/environment-template.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/environment.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/extension.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/function-log.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/function.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/http.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/locale.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/oauth-application.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/organization-invitation.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/organization-membership.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/organization.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/personal-access-token.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/preview-api-key.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/raw.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/release-action.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/release.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/resource-provider.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/resource-type.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/resource.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/role.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/scheduled-action.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/snapshot.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/space-member.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/space-membership.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/space.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/tag.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/task.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/team-membership.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/team-space-membership.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/team.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/ui-config.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/upload-credentials.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/upload.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/usage.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/user-ui-config.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/user.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/utils.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/webhook.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/workflow-definition.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/workflow.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/endpoints/workflows-changelog.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/make-request.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/rest-adapter.d.ts +0 -0
- /package/dist/{types → typings}/adapters/REST/types.d.ts +0 -0
- /package/dist/{types → typings}/common-utils.d.ts +0 -0
- /package/dist/{types → typings}/constants/editor-interface-defaults/editors-defaults.d.ts +0 -0
- /package/dist/{types → typings}/constants/editor-interface-defaults/index.d.ts +0 -0
- /package/dist/{types → typings}/constants/editor-interface-defaults/sidebar-defaults.d.ts +0 -0
- /package/dist/{types → typings}/constants/editor-interface-defaults/types.d.ts +0 -0
- /package/dist/{types → typings}/create-adapter.d.ts +0 -0
- /package/dist/{types → typings}/create-app-definition-api.d.ts +0 -0
- /package/dist/{types → typings}/create-entry-api.d.ts +0 -0
- /package/dist/{types → typings}/create-environment-template-api.d.ts +0 -0
- /package/dist/{types → typings}/create-organization-api.d.ts +0 -0
- /package/dist/{types → typings}/enhance-with-methods.d.ts +0 -0
- /package/dist/{types → typings}/entities/access-token.d.ts +0 -0
- /package/dist/{types → typings}/entities/api-key.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-access-token.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-action-call.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-action.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-bundle.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-definition.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-details.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-event-subscription.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-installation.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-key.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-signed-request.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-signing-secret.d.ts +0 -0
- /package/dist/{types → typings}/entities/app-upload.d.ts +0 -0
- /package/dist/{types → typings}/entities/asset-key.d.ts +0 -0
- /package/dist/{types → typings}/entities/asset.d.ts +0 -0
- /package/dist/{types → typings}/entities/bulk-action.d.ts +0 -0
- /package/dist/{types → typings}/entities/comment.d.ts +0 -0
- /package/dist/{types → typings}/entities/concept-scheme.d.ts +0 -0
- /package/dist/{types → typings}/entities/concept.d.ts +0 -0
- /package/dist/{types → typings}/entities/content-type-fields.d.ts +0 -0
- /package/dist/{types → typings}/entities/content-type.d.ts +0 -0
- /package/dist/{types → typings}/entities/editor-interface.d.ts +0 -0
- /package/dist/{types → typings}/entities/entry.d.ts +0 -0
- /package/dist/{types → typings}/entities/environment-alias.d.ts +0 -0
- /package/dist/{types → typings}/entities/environment-template-installation.d.ts +0 -0
- /package/dist/{types → typings}/entities/environment-template.d.ts +0 -0
- /package/dist/{types → typings}/entities/environment.d.ts +0 -0
- /package/dist/{types → typings}/entities/extension.d.ts +0 -0
- /package/dist/{types → typings}/entities/field-type.d.ts +0 -0
- /package/dist/{types → typings}/entities/function-log.d.ts +0 -0
- /package/dist/{types → typings}/entities/function.d.ts +0 -0
- /package/dist/{types → typings}/entities/locale.d.ts +0 -0
- /package/dist/{types → typings}/entities/oauth-application.d.ts +0 -0
- /package/dist/{types → typings}/entities/organization-invitation.d.ts +0 -0
- /package/dist/{types → typings}/entities/organization-membership.d.ts +0 -0
- /package/dist/{types → typings}/entities/organization.d.ts +0 -0
- /package/dist/{types → typings}/entities/personal-access-token.d.ts +0 -0
- /package/dist/{types → typings}/entities/preview-api-key.d.ts +0 -0
- /package/dist/{types → typings}/entities/release-action.d.ts +0 -0
- /package/dist/{types → typings}/entities/release.d.ts +0 -0
- /package/dist/{types → typings}/entities/resource-provider.d.ts +0 -0
- /package/dist/{types → typings}/entities/resource-type.d.ts +0 -0
- /package/dist/{types → typings}/entities/resource.d.ts +0 -0
- /package/dist/{types → typings}/entities/role.d.ts +0 -0
- /package/dist/{types → typings}/entities/scheduled-action.d.ts +0 -0
- /package/dist/{types → typings}/entities/snapshot.d.ts +0 -0
- /package/dist/{types → typings}/entities/space-member.d.ts +0 -0
- /package/dist/{types → typings}/entities/space-membership.d.ts +0 -0
- /package/dist/{types → typings}/entities/space.d.ts +0 -0
- /package/dist/{types → typings}/entities/tag.d.ts +0 -0
- /package/dist/{types → typings}/entities/task.d.ts +0 -0
- /package/dist/{types → typings}/entities/team-membership.d.ts +0 -0
- /package/dist/{types → typings}/entities/team-space-membership.d.ts +0 -0
- /package/dist/{types → typings}/entities/team.d.ts +0 -0
- /package/dist/{types → typings}/entities/upload-credential.d.ts +0 -0
- /package/dist/{types → typings}/entities/upload.d.ts +0 -0
- /package/dist/{types → typings}/entities/usage.d.ts +0 -0
- /package/dist/{types → typings}/entities/user.d.ts +0 -0
- /package/dist/{types → typings}/entities/utils.d.ts +0 -0
- /package/dist/{types → typings}/entities/webhook.d.ts +0 -0
- /package/dist/{types → typings}/entities/widget-parameters.d.ts +0 -0
- /package/dist/{types → typings}/entities/workflow-definition.d.ts +0 -0
- /package/dist/{types → typings}/entities/workflow.d.ts +0 -0
- /package/dist/{types → typings}/entities/workflows-changelog-entry.d.ts +0 -0
- /package/dist/{types → typings}/methods/action.d.ts +0 -0
- /package/dist/{types → typings}/methods/bulk-action.d.ts +0 -0
- /package/dist/{types → typings}/methods/content-type.d.ts +0 -0
- /package/dist/{types → typings}/methods/release-action.d.ts +0 -0
- /package/dist/{types → typings}/methods/utils.d.ts +0 -0
- /package/dist/{types → typings}/plain/as-iterator.d.ts +0 -0
- /package/dist/{types → typings}/plain/checks.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-access-token.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-action-call.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-action.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-bundle.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-definition.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-details.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-event-subscription.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-installation.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-key.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-signed-request.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-signing-secret.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/app-upload.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/comment.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/concept-scheme.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/concept.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/editor-interface.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/environment-alias.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/environment.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/extension.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/function-log.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/function.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/locale.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/oauth-application.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/organization.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/resource-provider.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/resource-type.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/resource.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/role.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/space-member.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/space-membership.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/space.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/tag.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/task.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/team-membership.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/team-space-membership.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/team.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/ui-config.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/upload-credential.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/upload.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/usage.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/user-ui-config.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/user.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/webhook.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/workflow-definition.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/workflow.d.ts +0 -0
- /package/dist/{types → typings}/plain/entities/workflows-changelog.d.ts +0 -0
- /package/dist/{types → typings}/plain/pagination-helper.d.ts +0 -0
- /package/dist/{types → typings}/plain/plain-client.d.ts +0 -0
- /package/dist/{types → typings}/plain/wrappers/wrap.d.ts +0 -0
- /package/dist/{types → typings}/plain/wrappers/wrap.test-d.d.ts +0 -0
- /package/dist/{types → typings}/upload-http-client.d.ts +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as raw from './raw';
|
|
3
2
|
/**
|
|
4
3
|
* Retrieves details of a specific OAuth application. by its unique user ID and oauth application ID.
|
|
5
4
|
*
|
|
@@ -22,9 +21,10 @@ import { get as get$1, post, put, del as del$1 } from './raw.js';
|
|
|
22
21
|
* .catch(console.error)
|
|
23
22
|
* ```
|
|
24
23
|
*/
|
|
25
|
-
const get = (http, params) => {
|
|
26
|
-
|
|
24
|
+
export const get = (http, params) => {
|
|
25
|
+
return raw.get(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
|
|
27
26
|
};
|
|
27
|
+
|
|
28
28
|
/**
|
|
29
29
|
* Retrieves a list of OAuth applications associated with the current user.
|
|
30
30
|
*
|
|
@@ -47,11 +47,12 @@ const get = (http, params) => {
|
|
|
47
47
|
* .catch(console.error)
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
|
-
const getManyForUser = (http, params) => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
export const getManyForUser = (http, params) => {
|
|
51
|
+
return raw.get(http, `/users/${params.userId}/oauth_applications`, {
|
|
52
|
+
params: params.query
|
|
53
|
+
});
|
|
54
54
|
};
|
|
55
|
+
|
|
55
56
|
/**
|
|
56
57
|
* Creates a new OAuth application for current authenticated user.
|
|
57
58
|
*
|
|
@@ -77,11 +78,12 @@ const getManyForUser = (http, params) => {
|
|
|
77
78
|
* .catch(console.error)
|
|
78
79
|
* ```
|
|
79
80
|
*/
|
|
80
|
-
const create = (http, params, rawData, headers) => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
export const create = (http, params, rawData, headers) => {
|
|
82
|
+
return raw.post(http, `/users/${params.userId}/oauth_applications`, rawData, {
|
|
83
|
+
headers
|
|
84
|
+
});
|
|
84
85
|
};
|
|
86
|
+
|
|
85
87
|
/**
|
|
86
88
|
* Updates details of a specific OAuth application.
|
|
87
89
|
*
|
|
@@ -107,11 +109,12 @@ const create = (http, params, rawData, headers) => {
|
|
|
107
109
|
* .catch(console.error)
|
|
108
110
|
* ```
|
|
109
111
|
*/
|
|
110
|
-
const update = (http, params, rawData, headers) => {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
export const update = (http, params, rawData, headers) => {
|
|
113
|
+
return raw.put(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`, rawData, {
|
|
114
|
+
headers
|
|
115
|
+
});
|
|
114
116
|
};
|
|
117
|
+
|
|
115
118
|
/**
|
|
116
119
|
* Deletes a specific OAuth application.
|
|
117
120
|
*
|
|
@@ -134,8 +137,6 @@ const update = (http, params, rawData, headers) => {
|
|
|
134
137
|
* .catch(console.error)
|
|
135
138
|
* ```
|
|
136
139
|
*/
|
|
137
|
-
const del = (http, params) => {
|
|
138
|
-
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
export { create, del, get, getManyForUser, update };
|
|
140
|
+
export const del = (http, params) => {
|
|
141
|
+
return raw.del(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
|
|
142
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
import * as raw from './raw';
|
|
7
|
+
const OrganizationUserManagementAlphaHeaders = {
|
|
8
|
+
'x-contentful-enable-alpha-feature': 'organization-user-management-api'
|
|
9
|
+
};
|
|
10
|
+
const InvitationAlphaHeaders = {
|
|
11
|
+
'x-contentful-enable-alpha-feature': 'pending-org-membership'
|
|
12
|
+
};
|
|
13
|
+
export const create = (http, params, data, headers) => {
|
|
14
|
+
return raw.post(http, `/organizations/${params.organizationId}/invitations`, data, {
|
|
15
|
+
headers: _objectSpread(_objectSpread({}, InvitationAlphaHeaders), headers)
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export const get = (http, params, headers) => {
|
|
19
|
+
return raw.get(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
|
|
20
|
+
headers: _objectSpread(_objectSpread({}, OrganizationUserManagementAlphaHeaders), headers)
|
|
21
|
+
});
|
|
22
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
import copy from 'fast-copy';
|
|
7
|
+
import * as raw from './raw';
|
|
8
|
+
const getBaseUrl = params => `/organizations/${params.organizationId}/organization_memberships`;
|
|
9
|
+
const getEntityUrl = params => `${getBaseUrl(params)}/${params.organizationMembershipId}`;
|
|
10
|
+
export const get = (http, params) => {
|
|
11
|
+
return raw.get(http, getEntityUrl(params));
|
|
12
|
+
};
|
|
13
|
+
export const getMany = (http, params) => {
|
|
14
|
+
return raw.get(http, getBaseUrl(params), {
|
|
15
|
+
params: params.query
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export const update = (http, params, rawData, headers) => {
|
|
19
|
+
var _rawData$sys$version;
|
|
20
|
+
const data = copy(rawData);
|
|
21
|
+
delete data.sys;
|
|
22
|
+
const {
|
|
23
|
+
role
|
|
24
|
+
} = data;
|
|
25
|
+
return raw.put(http, getEntityUrl(params), {
|
|
26
|
+
role
|
|
27
|
+
}, {
|
|
28
|
+
headers: _objectSpread(_objectSpread({}, headers), {}, {
|
|
29
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export const del = (http, params) => {
|
|
34
|
+
return raw.del(http, getEntityUrl(params));
|
|
35
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
export const getMany = (http, params) => {
|
|
3
|
+
return raw.get(http, `/organizations`, {
|
|
4
|
+
params: params === null || params === void 0 ? void 0 : params.query
|
|
5
|
+
});
|
|
6
|
+
};
|
|
7
|
+
export const get = (http, params) => {
|
|
8
|
+
return getMany(http, {
|
|
9
|
+
query: {
|
|
10
|
+
limit: 100
|
|
11
|
+
}
|
|
12
|
+
}).then(data => {
|
|
13
|
+
const org = data.items.find(org => org.sys.id === params.organizationId);
|
|
14
|
+
if (!org) {
|
|
15
|
+
const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`);
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
error.status = 404;
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
error.statusText = 'Not Found';
|
|
22
|
+
return Promise.reject(error);
|
|
23
|
+
}
|
|
24
|
+
return org;
|
|
25
|
+
});
|
|
26
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated use `access-token.get` instead `personal-access-token.get`
|
|
5
|
+
*/
|
|
6
|
+
export const get = (http, params) => {
|
|
7
|
+
return raw.get(http, `/users/me/access_tokens/${params.tokenId}`);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated use `access-token.getMany` instead `personal-access-token.getMany`
|
|
12
|
+
*/
|
|
13
|
+
export const getMany = (http, params) => {
|
|
14
|
+
return raw.get(http, '/users/me/access_tokens', {
|
|
15
|
+
params: params.query
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create`
|
|
21
|
+
*/
|
|
22
|
+
export const create = (http, _params, rawData, headers) => {
|
|
23
|
+
return raw.post(http, '/users/me/access_tokens', rawData, {
|
|
24
|
+
headers
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated use `access-token.rovoke` instead. `personal-access-token.revoke`
|
|
30
|
+
*/
|
|
31
|
+
export const revoke = (http, params) => {
|
|
32
|
+
return raw.put(http, `/users/me/access_tokens/${params.tokenId}/revoked`, null);
|
|
33
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
export const get = (http, params) => {
|
|
3
|
+
return raw.get(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
|
|
4
|
+
};
|
|
5
|
+
export const getMany = (http, params) => {
|
|
6
|
+
return raw.get(http, `/spaces/${params.spaceId}/preview_api_keys`, {
|
|
7
|
+
params: params.query
|
|
8
|
+
});
|
|
9
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
|
+
|
|
8
|
+
import { errorHandler } from 'contentful-sdk-core';
|
|
9
|
+
function getBaseUrl(http) {
|
|
10
|
+
var _http$defaults$baseUR;
|
|
11
|
+
return (_http$defaults$baseUR = http.defaults.baseURL) === null || _http$defaults$baseUR === void 0 ? void 0 : _http$defaults$baseUR.split('/spaces')[0];
|
|
12
|
+
}
|
|
13
|
+
export function get(http, url, config) {
|
|
14
|
+
return http.get(url, _objectSpread({
|
|
15
|
+
baseURL: getBaseUrl(http)
|
|
16
|
+
}, config)).then(response => response.data, errorHandler);
|
|
17
|
+
}
|
|
18
|
+
export function patch(http, url, payload, config) {
|
|
19
|
+
return http.patch(url, payload, _objectSpread({
|
|
20
|
+
baseURL: getBaseUrl(http)
|
|
21
|
+
}, config)).then(response => response.data, errorHandler);
|
|
22
|
+
}
|
|
23
|
+
export function post(http, url, payload, config) {
|
|
24
|
+
return http.post(url, payload, _objectSpread({
|
|
25
|
+
baseURL: getBaseUrl(http)
|
|
26
|
+
}, config)).then(response => response.data, errorHandler);
|
|
27
|
+
}
|
|
28
|
+
export function put(http, url, payload, config) {
|
|
29
|
+
return http.put(url, payload, _objectSpread({
|
|
30
|
+
baseURL: getBaseUrl(http)
|
|
31
|
+
}, config)).then(response => response.data, errorHandler);
|
|
32
|
+
}
|
|
33
|
+
export function del(http, url, config) {
|
|
34
|
+
return http.delete(url, _objectSpread({
|
|
35
|
+
baseURL: getBaseUrl(http)
|
|
36
|
+
}, config)).then(response => response.data, errorHandler);
|
|
37
|
+
}
|
|
38
|
+
export function http(http, url, config) {
|
|
39
|
+
return http(url, _objectSpread({
|
|
40
|
+
baseURL: getBaseUrl(http)
|
|
41
|
+
}, config)).then(response => response.data, errorHandler);
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
import * as raw from './raw';
|
|
7
|
+
export const get = (http, params) => {
|
|
8
|
+
return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
|
|
9
|
+
};
|
|
10
|
+
export const getMany = (http, params) => {
|
|
11
|
+
return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
|
|
12
|
+
params: params.query
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export const queryForRelease = (http, params) => {
|
|
16
|
+
return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
|
|
17
|
+
params: _objectSpread({
|
|
18
|
+
'sys.release.sys.id[in]': params.releaseId
|
|
19
|
+
}, params.query)
|
|
20
|
+
});
|
|
21
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
import * as raw from './raw';
|
|
7
|
+
export const get = (http, params) => {
|
|
8
|
+
return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
|
|
9
|
+
};
|
|
10
|
+
export const query = (http, params) => {
|
|
11
|
+
return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
|
|
12
|
+
params: params.query
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export const create = (http, params, payload) => {
|
|
16
|
+
return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, payload);
|
|
17
|
+
};
|
|
18
|
+
export const update = (http, params, payload, headers) => {
|
|
19
|
+
return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`, payload, {
|
|
20
|
+
headers: _objectSpread({
|
|
21
|
+
'X-Contentful-Version': params.version
|
|
22
|
+
}, headers)
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
export const del = (http, params) => {
|
|
26
|
+
return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
|
|
27
|
+
};
|
|
28
|
+
export const publish = (http, params, headers) => {
|
|
29
|
+
return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, null, {
|
|
30
|
+
headers: _objectSpread({
|
|
31
|
+
'X-Contentful-Version': params.version
|
|
32
|
+
}, headers)
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
export const unpublish = (http, params, headers) => {
|
|
36
|
+
return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
|
|
37
|
+
headers: _objectSpread({
|
|
38
|
+
'X-Contentful-Version': params.version
|
|
39
|
+
}, headers)
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
export const validate = (http, params, payload) => {
|
|
43
|
+
return raw.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/validate`, payload);
|
|
44
|
+
};
|
|
45
|
+
export const archive = (http, params) => {
|
|
46
|
+
return raw.put(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, null, {
|
|
47
|
+
headers: {
|
|
48
|
+
'X-Contentful-Version': params.version
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
export const unarchive = (http, params) => {
|
|
53
|
+
return raw.del(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
|
|
54
|
+
headers: {
|
|
55
|
+
'X-Contentful-Version': params.version
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
const getBaseUrl = params => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider`;
|
|
3
|
+
export const get = (http, params) => {
|
|
4
|
+
return raw.get(http, getBaseUrl(params));
|
|
5
|
+
};
|
|
6
|
+
export const upsert = (http, params, rawData, headers) => {
|
|
7
|
+
return raw.put(http, getBaseUrl(params), rawData, {
|
|
8
|
+
headers
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
export const del = (http, params) => {
|
|
12
|
+
return raw.del(http, getBaseUrl(params));
|
|
13
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
import copy from 'fast-copy';
|
|
3
|
+
const getBaseUrl = params => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider/resource_types`;
|
|
4
|
+
const getEntityUrl = params => `${getBaseUrl(params)}/${params.resourceTypeId}`;
|
|
5
|
+
const getSpaceEnvUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types`;
|
|
6
|
+
export const get = (http, params) => {
|
|
7
|
+
return raw.get(http, getEntityUrl(params));
|
|
8
|
+
};
|
|
9
|
+
export const upsert = (http, params, rawData, headers) => {
|
|
10
|
+
const data = copy(rawData);
|
|
11
|
+
return raw.put(http, getEntityUrl(params), data, {
|
|
12
|
+
headers
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export const del = (http, params) => {
|
|
16
|
+
return raw.del(http, getEntityUrl(params));
|
|
17
|
+
};
|
|
18
|
+
export const getMany = (http, params) => {
|
|
19
|
+
return raw.get(http, getBaseUrl(params));
|
|
20
|
+
};
|
|
21
|
+
export const getForEnvironment = (http, params) => {
|
|
22
|
+
return raw.get(http, getSpaceEnvUrl(params));
|
|
23
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types/${params.resourceTypeId}/resources`;
|
|
3
|
+
export const getMany = (http, params) => raw.get(http, getBaseUrl(params), {
|
|
4
|
+
params: params.query
|
|
5
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
import copy from 'fast-copy';
|
|
7
|
+
import * as raw from './raw';
|
|
8
|
+
import { normalizeSelect } from './utils';
|
|
9
|
+
export const get = (http, params) => {
|
|
10
|
+
return raw.get(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
|
|
11
|
+
};
|
|
12
|
+
export const getMany = (http, params) => {
|
|
13
|
+
return raw.get(http, `/spaces/${params.spaceId}/roles`, {
|
|
14
|
+
params: normalizeSelect(params.query)
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export const getManyForOrganization = (http, params) => {
|
|
18
|
+
return raw.get(http, `/organizations/${params.organizationId}/roles`, {
|
|
19
|
+
params: normalizeSelect(params.query)
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export const create = (http, params, data, headers) => {
|
|
23
|
+
return raw.post(http, `/spaces/${params.spaceId}/roles`, data, {
|
|
24
|
+
headers
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export const createWithId = (http, params, data, headers) => {
|
|
28
|
+
return raw.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, {
|
|
29
|
+
headers
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export const update = (http, params, rawData, headers) => {
|
|
33
|
+
var _rawData$sys$version;
|
|
34
|
+
const data = copy(rawData);
|
|
35
|
+
delete data.sys;
|
|
36
|
+
return raw.put(http, `/spaces/${params.spaceId}/roles/${params.roleId}`, data, {
|
|
37
|
+
headers: _objectSpread(_objectSpread({}, headers), {}, {
|
|
38
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
export const del = (http, params) => {
|
|
43
|
+
return raw.del(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
|
|
44
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
import { normalizeSelect } from './utils';
|
|
3
|
+
export const get = (http, params) => {
|
|
4
|
+
return raw.get(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
|
|
5
|
+
params: {
|
|
6
|
+
'environment.sys.id': params.environmentId
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export const getMany = (http, params) => {
|
|
11
|
+
return raw.get(http, `/spaces/${params.spaceId}/scheduled_actions`, {
|
|
12
|
+
params: normalizeSelect(params.query)
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export const create = (http, params, data) => {
|
|
16
|
+
return raw.post(http, `/spaces/${params.spaceId}/scheduled_actions`, data);
|
|
17
|
+
};
|
|
18
|
+
export const del = (http, params) => {
|
|
19
|
+
return raw.del(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
|
|
20
|
+
params: {
|
|
21
|
+
'environment.sys.id': params.environmentId
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
export const update = (http, params, data) => {
|
|
26
|
+
var _data$environment;
|
|
27
|
+
return raw.put(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, data, {
|
|
28
|
+
params: {
|
|
29
|
+
'environment.sys.id': (_data$environment = data.environment) === null || _data$environment === void 0 ? void 0 : _data$environment.sys.id
|
|
30
|
+
},
|
|
31
|
+
headers: {
|
|
32
|
+
'X-Contentful-Version': params.version
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
import { normalizeSelect } from './utils';
|
|
3
|
+
const getBaseEntryUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`;
|
|
4
|
+
const getEntryUrl = params => getBaseEntryUrl(params) + `/${params.snapshotId}`;
|
|
5
|
+
export const getManyForEntry = (http, params) => {
|
|
6
|
+
return raw.get(http, getBaseEntryUrl(params), {
|
|
7
|
+
params: normalizeSelect(params.query)
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
export const getForEntry = (http, params) => {
|
|
11
|
+
return raw.get(http, getEntryUrl(params));
|
|
12
|
+
};
|
|
13
|
+
const getBaseContentTypeUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`;
|
|
14
|
+
const getContentTypeUrl = params => getBaseContentTypeUrl(params) + `/${params.snapshotId}`;
|
|
15
|
+
export const getManyForContentType = (http, params) => {
|
|
16
|
+
return raw.get(http, getBaseContentTypeUrl(params), {
|
|
17
|
+
params: normalizeSelect(params.query)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export const getForContentType = (http, params) => {
|
|
21
|
+
return raw.get(http, getContentTypeUrl(params));
|
|
22
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as raw from './raw';
|
|
2
|
+
export const get = (http, params) => raw.get(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`);
|
|
3
|
+
export const getMany = (http, params) => raw.get(http, `/spaces/${params.spaceId}/space_members`, {
|
|
4
|
+
params: params.query
|
|
5
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
import copy from 'fast-copy';
|
|
7
|
+
import * as raw from './raw';
|
|
8
|
+
function spaceMembershipDeprecationWarning() {
|
|
9
|
+
console.warn('The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)');
|
|
10
|
+
}
|
|
11
|
+
const getBaseUrl = params => `/spaces/${params.spaceId}/space_memberships`;
|
|
12
|
+
const getEntityUrl = params => `${getBaseUrl(params)}/${params.spaceMembershipId}`;
|
|
13
|
+
export const get = (http, params) => {
|
|
14
|
+
spaceMembershipDeprecationWarning();
|
|
15
|
+
return raw.get(http, getEntityUrl(params));
|
|
16
|
+
};
|
|
17
|
+
export const getMany = (http, params) => {
|
|
18
|
+
spaceMembershipDeprecationWarning();
|
|
19
|
+
return raw.get(http, getBaseUrl(params), {
|
|
20
|
+
params: params.query
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export const getForOrganization = (http, params) => {
|
|
24
|
+
return raw.get(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
|
|
25
|
+
};
|
|
26
|
+
export const getManyForOrganization = (http, params) => {
|
|
27
|
+
return raw.get(http, `/organizations/${params.organizationId}/space_memberships`, {
|
|
28
|
+
params: params.query
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
export const create = (http, params, data, headers) => {
|
|
32
|
+
spaceMembershipDeprecationWarning();
|
|
33
|
+
return raw.post(http, getBaseUrl(params), data, {
|
|
34
|
+
headers
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
export const createWithId = (http, params, data, headers) => {
|
|
38
|
+
spaceMembershipDeprecationWarning();
|
|
39
|
+
return raw.put(http, getEntityUrl(params), data, {
|
|
40
|
+
headers
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
export const update = (http, params, rawData, headers) => {
|
|
44
|
+
var _rawData$sys$version;
|
|
45
|
+
const data = copy(rawData);
|
|
46
|
+
delete data.sys;
|
|
47
|
+
return raw.put(http, getEntityUrl(params), data, {
|
|
48
|
+
headers: _objectSpread(_objectSpread({}, headers), {}, {
|
|
49
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
export const del = (http, params) => {
|
|
54
|
+
return raw.del(http, getEntityUrl(params));
|
|
55
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
import copy from 'fast-copy';
|
|
7
|
+
import * as raw from './raw';
|
|
8
|
+
export const get = (http, params) => raw.get(http, `/spaces/${params.spaceId}`);
|
|
9
|
+
export const getMany = (http, params) => raw.get(http, `/spaces`, {
|
|
10
|
+
params: params.query
|
|
11
|
+
});
|
|
12
|
+
export const getManyForOrganization = (http, params) => raw.get(http, `/organizations/${params.organizationId}/spaces`, {
|
|
13
|
+
params: params.query
|
|
14
|
+
});
|
|
15
|
+
export const create = (http, params, payload, headers) => {
|
|
16
|
+
return raw.post(http, `/spaces`, payload, {
|
|
17
|
+
headers: params.organizationId ? _objectSpread(_objectSpread({}, headers), {}, {
|
|
18
|
+
'X-Contentful-Organization': params.organizationId
|
|
19
|
+
}) : headers
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export const update = (http, params, rawData, headers) => {
|
|
23
|
+
var _rawData$sys$version;
|
|
24
|
+
const data = copy(rawData);
|
|
25
|
+
delete data.sys;
|
|
26
|
+
return raw.put(http, `/spaces/${params.spaceId}`, data, {
|
|
27
|
+
headers: _objectSpread({
|
|
28
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
29
|
+
}, headers)
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export const del = (http, params) => raw.del(http, `/spaces/${params.spaceId}`);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const _excluded = ["version"];
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
8
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
|
+
import copy from 'fast-copy';
|
|
10
|
+
import * as raw from './raw';
|
|
11
|
+
const getBaseUrl = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`;
|
|
12
|
+
const getTagUrl = params => getBaseUrl(params) + `/${params.tagId}`;
|
|
13
|
+
export const get = (http, params) => raw.get(http, getTagUrl(params));
|
|
14
|
+
export const getMany = (http, params) => raw.get(http, getBaseUrl(params), {
|
|
15
|
+
params: params.query
|
|
16
|
+
});
|
|
17
|
+
export const createWithId = (http, params, rawData) => {
|
|
18
|
+
var _rawData$sys$visibili;
|
|
19
|
+
const data = copy(rawData);
|
|
20
|
+
return raw.put(http, getTagUrl(params), data, {
|
|
21
|
+
headers: {
|
|
22
|
+
'X-Contentful-Tag-Visibility': (_rawData$sys$visibili = rawData.sys.visibility) !== null && _rawData$sys$visibili !== void 0 ? _rawData$sys$visibili : 'private'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export const update = (http, params, rawData, headers) => {
|
|
27
|
+
var _rawData$sys$version;
|
|
28
|
+
const data = copy(rawData);
|
|
29
|
+
delete data.sys;
|
|
30
|
+
return raw.put(http, getTagUrl(params), data, {
|
|
31
|
+
headers: _objectSpread({
|
|
32
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
33
|
+
}, headers)
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
export const del = (http, _ref) => {
|
|
37
|
+
let {
|
|
38
|
+
version
|
|
39
|
+
} = _ref,
|
|
40
|
+
params = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
+
return raw.del(http, getTagUrl(params), {
|
|
42
|
+
headers: {
|
|
43
|
+
'X-Contentful-Version': version
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
};
|