diff --git a/lib/adapters/REST/endpoints/index.ts b/lib/adapters/REST/endpoints/index.ts index d09a56793..38583e330 100644 --- a/lib/adapters/REST/endpoints/index.ts +++ b/lib/adapters/REST/endpoints/index.ts @@ -1,15 +1,16 @@ +import * as AccessToken from './access-token' import * as ApiKey from './api-key' +import * as AppAccessToken from './app-access-token' import * as AppAction from './app-action' import * as AppActionCall from './app-action-call' import * as AppBundle from './app-bundle' import * as AppDefinition from './app-definition' import * as AppDetails from './app-details' +import * as AppEventSubscription from './app-event-subscription' import * as AppInstallation from './app-installation' +import * as AppKey from './app-key' import * as AppSignedRequest from './app-signed-request' import * as AppSigningSecret from './app-signing-secret' -import * as AppEventSubscription from './app-event-subscription' -import * as AppKey from './app-key' -import * as AppAccessToken from './app-access-token' import * as AppUpload from './app-upload' import * as Asset from './asset' import * as AssetKey from './asset-key' @@ -31,7 +32,6 @@ import * as Organization from './organization' import * as OrganizationInvitation from './organization-invitation' import * as OrganizationMembership from './organization-membership' import * as PersonalAccessToken from './personal-access-token' -import * as AccessToken from './access-token' import * as PreviewApiKey from './preview-api-key' import * as Release from './release' import * as ReleaseAction from './release-action' @@ -51,6 +51,7 @@ import * as TeamMembership from './team-membership' import * as TeamSpaceMembership from './team-space-membership' import * as UIConfig from './ui-config' import * as Upload from './upload' +import * as UploadCredential from './upload-credentials' import * as Usage from './usage' import * as User from './user' import * as UserUIConfig from './user-ui-config' @@ -113,6 +114,7 @@ export default { TeamSpaceMembership, UIConfig, Upload, + UploadCredential, Usage, User, UserUIConfig, diff --git a/lib/adapters/REST/endpoints/upload-credentials.ts b/lib/adapters/REST/endpoints/upload-credentials.ts new file mode 100644 index 000000000..70f9db692 --- /dev/null +++ b/lib/adapters/REST/endpoints/upload-credentials.ts @@ -0,0 +1,21 @@ +import type { AxiosInstance } from 'contentful-sdk-core' +import type { GetSpaceEnvironmentParams } from '../../../common-types' +import { getUploadHttpClient } from '../../../upload-http-client' +import type { RestEndpoint } from '../types' +import * as raw from './raw' + +const getBaseUrl = (params: GetSpaceEnvironmentParams) => { + return `/spaces/${params.spaceId}/environments/${ + params.environmentId ?? 'master' + }/upload_credentials` +} + +export const create: RestEndpoint<'UploadCredential', 'create'> = ( + http: AxiosInstance, + params: GetSpaceEnvironmentParams +) => { + const httpUpload = getUploadHttpClient(http) + + const path = getBaseUrl(params) + return raw.post(httpUpload, path) +} diff --git a/lib/common-types.ts b/lib/common-types.ts index 3f283e1a6..ec3d2c147 100644 --- a/lib/common-types.ts +++ b/lib/common-types.ts @@ -1,6 +1,11 @@ import type { RawAxiosRequestConfig, RawAxiosRequestHeaders } from 'axios' import type { OpPatch } from 'json-patch' import type { Stream } from 'stream' +import type { + AccessTokenProps, + CreatePersonalAccessTokenProps as CreatePATProps, +} from './entities/access-token' +import type { ApiKeyProps, CreateApiKeyProps } from './entities/api-key' import type { AppActionProps, CreateAppActionProps } from './entities/app-action' import type { AppActionCallProps, @@ -8,16 +13,35 @@ import type { CreateAppActionCallProps, } from './entities/app-action-call' import type { AppBundleProps, CreateAppBundleProps } from './entities/app-bundle' -import type { ApiKeyProps, CreateApiKeyProps } from './entities/api-key' -import type { AppDefinitionProps, CreateAppDefinitionProps } from './entities/app-definition' +import type { + AppDefinitionProps, + AppInstallationsForOrganizationProps, + CreateAppDefinitionProps, +} from './entities/app-definition' +import type { AppDetailsProps, CreateAppDetailsProps } from './entities/app-details' import type { AppInstallationProps, CreateAppInstallationProps } from './entities/app-installation' +import type { + AppSignedRequestProps, + CreateAppSignedRequestProps, +} from './entities/app-signed-request' +import type { + AppSigningSecretProps, + CreateAppSigningSecretProps, +} from './entities/app-signing-secret' +import type { AppUploadProps } from './entities/app-upload' import type { AssetFileProp, AssetProcessingForLocale, AssetProps, CreateAssetProps, } from './entities/asset' -import type { ContentTypeProps, CreateContentTypeProps } from './entities/content-type' +import type { AssetKeyProps, CreateAssetKeyProps } from './entities/asset-key' +import type { + BulkActionProps, + BulkActionPublishPayload, + BulkActionUnpublishPayload, + BulkActionValidatePayload, +} from './entities/bulk-action' import type { CommentProps, CreateCommentParams, @@ -32,6 +56,7 @@ import type { UpdateCommentParams, UpdateCommentProps, } from './entities/comment' +import type { ContentTypeProps, CreateContentTypeProps } from './entities/content-type' import type { EditorInterfaceProps } from './entities/editor-interface' import type { CreateEntryProps, EntryProps, EntryReferenceProps } from './entities/entry' import type { CreateEnvironmentProps, EnvironmentProps } from './entities/environment' @@ -39,8 +64,8 @@ import type { CreateEnvironmentAliasProps, EnvironmentAliasProps, } from './entities/environment-alias' +import type { CreateExtensionProps, ExtensionProps } from './entities/extension' import type { CreateLocaleProps, LocaleProps } from './entities/locale' -import type { AppInstallationsForOrganizationProps } from './entities/app-definition' import type { OrganizationProps } from './entities/organization' import type { CreateOrganizationInvitationProps, @@ -51,11 +76,18 @@ import type { CreatePersonalAccessTokenProps, PersonalAccessTokenProps, } from './entities/personal-access-token' -import type { - AccessTokenProps, - CreatePersonalAccessTokenProps as CreatePATProps, -} from './entities/access-token' import type { PreviewApiKeyProps } from './entities/preview-api-key' +import type { + ReleasePayload, + ReleaseProps, + ReleaseQueryOptions, + ReleaseValidatePayload, +} from './entities/release' +import type { + ReleaseAction, + ReleaseActionProps, + ReleaseActionQueryOptions, +} from './entities/release-action' import type { CreateRoleProps, RoleProps } from './entities/role' import type { ScheduledActionProps } from './entities/scheduled-action' import type { SnapshotProps } from './entities/snapshot' @@ -69,7 +101,6 @@ import type { CreateTeamSpaceMembershipProps, TeamSpaceMembershipProps, } from './entities/team-space-membership' -import type { CreateExtensionProps, ExtensionProps } from './entities/extension' import type { UsageProps } from './entities/usage' import type { UserProps } from './entities/user' import type { @@ -83,34 +114,6 @@ import type { WebhookRetryPolicyProps, WebhookSigningSecretProps, } from './entities/webhook' -import type { AssetKeyProps, CreateAssetKeyProps } from './entities/asset-key' -import type { AppUploadProps } from './entities/app-upload' -import type { AppDetailsProps, CreateAppDetailsProps } from './entities/app-details' -import type { - AppSignedRequestProps, - CreateAppSignedRequestProps, -} from './entities/app-signed-request' -import type { - AppSigningSecretProps, - CreateAppSigningSecretProps, -} from './entities/app-signing-secret' -import type { - BulkActionProps, - BulkActionPublishPayload, - BulkActionUnpublishPayload, - BulkActionValidatePayload, -} from './entities/bulk-action' -import type { - ReleasePayload, - ReleaseProps, - ReleaseQueryOptions, - ReleaseValidatePayload, -} from './entities/release' -import type { - ReleaseAction, - ReleaseActionProps, - ReleaseActionQueryOptions, -} from './entities/release-action' import type { CreateTaskParams, @@ -121,27 +124,14 @@ import type { UpdateTaskProps, } from './entities/task' +import type { AppAccessTokenProps, CreateAppAccessTokenProps } from './entities/app-access-token' import type { - CreateWorkflowDefinitionParams, - CreateWorkflowDefinitionProps, - DeleteWorkflowDefinitionParams, - WorkflowDefinitionProps, - WorkflowDefinitionQueryOptions, -} from './entities/workflow-definition' -import type { - CompleteWorkflowParams, - CreateWorkflowParams, - CreateWorkflowProps, - DeleteWorkflowParams, - WorkflowProps, - WorkflowQueryOptions, -} from './entities/workflow' -import type { - WorkflowsChangelogEntryProps, - WorkflowsChangelogQueryOptions, -} from './entities/workflows-changelog-entry' -import type { UIConfigProps } from './entities/ui-config' -import type { UserUIConfigProps } from './entities/user-ui-config' + AppEventSubscriptionProps, + CreateAppEventSubscriptionProps, +} from './entities/app-event-subscription' +import type { AppKeyProps, CreateAppKeyProps } from './entities/app-key' +import type { ConceptProps, CreateConceptProps } from './entities/concept' +import type { ConceptSchemeProps, CreateConceptSchemeProps } from './entities/concept-scheme' import type { CreateEnvironmentTemplateProps, EnvironmentTemplateProps, @@ -153,14 +143,7 @@ import type { ValidateEnvironmentTemplateInstallationProps, } from './entities/environment-template-installation' import type { FunctionProps } from './entities/function' -import type { - AppEventSubscriptionProps, - CreateAppEventSubscriptionProps, -} from './entities/app-event-subscription' -import type { AppKeyProps, CreateAppKeyProps } from './entities/app-key' -import type { AppAccessTokenProps, CreateAppAccessTokenProps } from './entities/app-access-token' -import type { ConceptProps, CreateConceptProps } from './entities/concept' -import type { ConceptSchemeProps, CreateConceptSchemeProps } from './entities/concept-scheme' +import type { ResourceProps, ResourceQueryOptions } from './entities/resource' import type { ResourceProviderProps, UpsertResourceProviderProps, @@ -170,7 +153,27 @@ import type { SpaceEnvResourceTypeProps, UpsertResourceTypeProps, } from './entities/resource-type' -import type { ResourceProps, ResourceQueryOptions } from './entities/resource' +import type { UIConfigProps } from './entities/ui-config' +import type { UserUIConfigProps } from './entities/user-ui-config' +import type { + CompleteWorkflowParams, + CreateWorkflowParams, + CreateWorkflowProps, + DeleteWorkflowParams, + WorkflowProps, + WorkflowQueryOptions, +} from './entities/workflow' +import type { + CreateWorkflowDefinitionParams, + CreateWorkflowDefinitionProps, + DeleteWorkflowDefinitionParams, + WorkflowDefinitionProps, + WorkflowDefinitionQueryOptions, +} from './entities/workflow-definition' +import type { + WorkflowsChangelogEntryProps, + WorkflowsChangelogQueryOptions, +} from './entities/workflows-changelog-entry' export interface DefaultElements { toPlainObject(): TPlainObject @@ -724,6 +727,8 @@ type MRInternal = { (opts: MROpts<'Upload', 'create', UA>): MRReturn<'Entry', 'create'> (opts: MROpts<'Upload', 'delete', UA>): MRReturn<'Entry', 'delete'> + (opts: MROpts<'UploadCredential', 'create', UA>): MRReturn<'UploadCredential', 'create'> + (opts: MROpts<'Usage', 'getManyForSpace', UA>): MRReturn<'Usage', 'getManyForSpace'> (opts: MROpts<'Usage', 'getManyForOrganization', UA>): MRReturn<'Usage', 'getManyForOrganization'> @@ -1877,6 +1882,12 @@ export type MRActions = { } delete: { params: GetSpaceEnvironmentUploadParams; return: any } } + UploadCredential: { + create: { + params: GetSpaceEnvironmentParams + return: any + } + } Usage: { getManyForSpace: { params: { organizationId: string } & QueryParams diff --git a/lib/enhance-with-methods.ts b/lib/enhance-with-methods.ts index 3cda1e475..4f6f9cff3 100644 --- a/lib/enhance-with-methods.ts +++ b/lib/enhance-with-methods.ts @@ -13,7 +13,6 @@ export default function enhanceWithMethods< B extends Record, M extends Record >(baseObject: B, methodsObject: M): M & B { - // @ts-expect-error return Object.keys(methodsObject).reduce((enhancedObject, methodName) => { Object.defineProperty(enhancedObject, methodName, { enumerable: false, @@ -22,5 +21,5 @@ export default function enhanceWithMethods< value: methodsObject[methodName], }) return enhancedObject - }, baseObject) + }, baseObject as M & B) } diff --git a/lib/entities/upload-credential.ts b/lib/entities/upload-credential.ts new file mode 100644 index 000000000..c48bde978 --- /dev/null +++ b/lib/entities/upload-credential.ts @@ -0,0 +1,71 @@ +import { freezeSys, toPlainObject } from 'contentful-sdk-core' +import copy from 'fast-copy' +import type { DefaultElements, MakeRequest, MetaSysProps, SysLink } from '../common-types' +import enhanceWithMethods from '../enhance-with-methods' + +export type UploadCredentialProps = { + /** + * System metadata + */ + sys: MetaSysProps & { space: SysLink; environment?: SysLink } +} + +export interface UploadCredential + extends UploadCredentialProps, + DefaultElements { + /** + * Deletes this object on the server. + * @return Promise for the deletion. It contains no data, but the Promise error case should be handled. + * @example + * const contentful = require('contentful-management') + * + * const client = contentful.createClient({ + * accessToken: '' + * }) + * + * client.getSpace('') + * .then((space) => space.getEnvironment('')) + * .then((environment) => environment.getUpload('')) + * .then((upload) => upload.delete()) + * .then((upload) => console.log(`upload ${upload.sys.id} updated.`)) + * .catch(console.error) + */ + create(): Promise +} + +/** + * @private + */ +function createUploadCredentialsApi(makeRequest: MakeRequest) { + return { + create: async function create() { + const raw = this.toPlainObject() as UploadCredentialProps + return makeRequest({ + entityType: 'UploadCredential', + action: 'create', + params: { + spaceId: raw.sys.space.sys.id, + environmentId: raw.sys.id, + }, + }) + }, + } +} + +/** + * @private + * @param {function} makeRequest - function to make requests via an adapter + * @param {object} data - Raw upload credential data + * @return {UploadCredential} Wrapped upload credential data + */ +export function wrapUploadCredential( + makeRequest: MakeRequest, + data: UploadCredentialProps +): UploadCredential { + const uploadCredential = toPlainObject(copy(data)) + const uploadCredentialWithMethods = enhanceWithMethods( + uploadCredential, + createUploadCredentialsApi(makeRequest) + ) + return freezeSys(uploadCredentialWithMethods) +} diff --git a/lib/plain/common-types.ts b/lib/plain/common-types.ts index 930a2afd2..eb2d07801 100644 --- a/lib/plain/common-types.ts +++ b/lib/plain/common-types.ts @@ -19,6 +19,10 @@ import type { KeyValueMap, QueryParams, } from '../common-types' +import type { + AccessTokenProps, + CreatePersonalAccessTokenProps as CreatePATProps, +} from '../entities/access-token' import type { ApiKeyProps, CreateApiKeyProps } from '../entities/api-key' import type { AssetFileProp, @@ -26,8 +30,27 @@ import type { AssetProps, CreateAssetProps, } from '../entities/asset' +import type { AssetKeyProps, CreateAssetKeyProps } from '../entities/asset-key' +import type { + BulkActionPayload, + BulkActionProps, + BulkActionPublishPayload, + BulkActionUnpublishPayload, + BulkActionValidatePayload, +} from '../entities/bulk-action' import type { ContentTypeProps, CreateContentTypeProps } from '../entities/content-type' import type { CreateEntryProps, EntryProps, EntryReferenceProps } from '../entities/entry' +import type { + CreateEnvironmentTemplateProps, + EnvironmentTemplateProps, +} from '../entities/environment-template' +import type { + CreateEnvironmentTemplateInstallationProps, + EnvironmentTemplateInstallationProps, + EnvironmentTemplateValidationProps, + ValidateEnvironmentTemplateInstallationProps, +} from '../entities/environment-template-installation' +import type { FunctionProps } from '../entities/function' import type { CreateOrganizationInvitationProps, OrganizationInvitationProps, @@ -37,26 +60,7 @@ import type { CreatePersonalAccessTokenProps, PersonalAccessTokenProps, } from '../entities/personal-access-token' -import type { - AccessTokenProps, - CreatePersonalAccessTokenProps as CreatePATProps, -} from '../entities/access-token' import type { PreviewApiKeyProps } from '../entities/preview-api-key' -import type { - CreateUpdateScheduledActionProps, - ScheduledActionProps, -} from '../entities/scheduled-action' -import type { SnapshotProps } from '../entities/snapshot' -import type { DefaultParams, OptionalDefaults } from './wrappers/wrap' -import type { AssetKeyProps, CreateAssetKeyProps } from '../entities/asset-key' -import type { FunctionProps } from '../entities/function' -import type { - BulkActionPayload, - BulkActionProps, - BulkActionPublishPayload, - BulkActionUnpublishPayload, - BulkActionValidatePayload, -} from '../entities/bulk-action' import type { ReleasePayload, ReleaseProps, @@ -65,57 +69,54 @@ import type { } from '../entities/release' import type { ReleaseActionProps, ReleaseActionQueryOptions } from '../entities/release-action' import type { - CreateEnvironmentTemplateProps, - EnvironmentTemplateProps, -} from '../entities/environment-template' -import type { - CreateEnvironmentTemplateInstallationProps, - EnvironmentTemplateInstallationProps, - EnvironmentTemplateValidationProps, - ValidateEnvironmentTemplateInstallationProps, -} from '../entities/environment-template-installation' + CreateUpdateScheduledActionProps, + ScheduledActionProps, +} from '../entities/scheduled-action' +import type { SnapshotProps } from '../entities/snapshot' +import type { AppAccessTokenPlainClientAPI } from './entities/app-access-token' import type { AppActionPlainClientAPI } from './entities/app-action' import type { AppActionCallPlainClientAPI } from './entities/app-action-call' -import type { EditorInterfacePlainClientAPI } from './entities/editor-interface' -import type { UIConfigPlainClientAPI } from './entities/ui-config' -import type { UserUIConfigPlainClientAPI } from './entities/user-ui-config' -import type { AppDefinitionPlainClientAPI } from './entities/app-definition' -import type { AppUploadPlainClientAPI } from './entities/app-upload' import type { AppBundlePlainClientAPI } from './entities/app-bundle' +import type { AppDefinitionPlainClientAPI } from './entities/app-definition' import type { AppDetailsPlainClientAPI } from './entities/app-details' +import type { AppEventSubscriptionPlainClientAPI } from './entities/app-event-subscription' import type { AppInstallationPlainClientAPI } from './entities/app-installation' -import type { WebhookPlainClientAPI } from './entities/webhook' +import type { AppKeyPlainClientAPI } from './entities/app-key' import type { AppSignedRequestPlainClientAPI } from './entities/app-signed-request' import type { AppSigningSecretPlainClientAPI } from './entities/app-signing-secret' +import type { AppUploadPlainClientAPI } from './entities/app-upload' +import type { CommentPlainClientAPI } from './entities/comment' +import type { ConceptPlainClientAPI } from './entities/concept' +import type { ConceptSchemePlainClientAPI } from './entities/concept-scheme' +import type { EditorInterfacePlainClientAPI } from './entities/editor-interface' +import type { EnvironmentPlainClientAPI } from './entities/environment' +import type { EnvironmentAliasPlainClientAPI } from './entities/environment-alias' import type { ExtensionPlainClientAPI } from './entities/extension' -import type { AppEventSubscriptionPlainClientAPI } from './entities/app-event-subscription' -import type { AppKeyPlainClientAPI } from './entities/app-key' -import type { UserPlainClientAPI } from './entities/user' -import type { UploadPlainClientAPI } from './entities/upload' -import type { OrganizationPlainClientAPI } from './entities/organization' import type { LocalePlainClientAPI } from './entities/locale' +import type { OrganizationPlainClientAPI } from './entities/organization' +import type { ResourcePlainAPI } from './entities/resource' +import type { ResourceProviderPlainClientAPI } from './entities/resource-provider' +import type { ResourceTypePlainClientAPI } from './entities/resource-type' +import type { RolePlainClientAPI } from './entities/role' import type { SpacePlainClientAPI } from './entities/space' -import type { SpaceMembershipPlainClientAPI } from './entities/space-membership' import type { SpaceMemberPlainClientAPI } from './entities/space-member' -import type { EnvironmentPlainClientAPI } from './entities/environment' -import type { EnvironmentAliasPlainClientAPI } from './entities/environment-alias' -import type { CommentPlainClientAPI } from './entities/comment' -import type { TaskPlainClientAPI } from './entities/task' -import type { WorkflowPlainClientAPI } from './entities/workflow' -import type { WorkflowsChangelogPlainClientAPI } from './entities/workflows-changelog' -import type { WorkflowDefinitionPlainClientAPI } from './entities/workflow-definition' -import type { RolePlainClientAPI } from './entities/role' +import type { SpaceMembershipPlainClientAPI } from './entities/space-membership' import type { TagPlainClientAPI } from './entities/tag' -import type { UsagePlainClientAPI } from './entities/usage' -import type { TeamSpaceMembershipPlainClientAPI } from './entities/team-space-membership' +import type { TaskPlainClientAPI } from './entities/task' import type { TeamPlainClientAPI } from './entities/team' import type { TeamMembershipPlainClientAPI } from './entities/team-membership' -import type { AppAccessTokenPlainClientAPI } from './entities/app-access-token' -import type { ConceptPlainClientAPI } from './entities/concept' -import type { ConceptSchemePlainClientAPI } from './entities/concept-scheme' -import type { ResourceProviderPlainClientAPI } from './entities/resource-provider' -import type { ResourceTypePlainClientAPI } from './entities/resource-type' -import type { ResourcePlainAPI } from './entities/resource' +import type { TeamSpaceMembershipPlainClientAPI } from './entities/team-space-membership' +import type { UIConfigPlainClientAPI } from './entities/ui-config' +import type { UploadPlainClientAPI } from './entities/upload' +import type { UploadCredentialAPI } from './entities/upload-credential' +import type { UsagePlainClientAPI } from './entities/usage' +import type { UserPlainClientAPI } from './entities/user' +import type { UserUIConfigPlainClientAPI } from './entities/user-ui-config' +import type { WebhookPlainClientAPI } from './entities/webhook' +import type { WorkflowPlainClientAPI } from './entities/workflow' +import type { WorkflowDefinitionPlainClientAPI } from './entities/workflow-definition' +import type { WorkflowsChangelogPlainClientAPI } from './entities/workflows-changelog' +import type { DefaultParams, OptionalDefaults } from './wrappers/wrap' export type PlainClientAPI = { raw: { @@ -388,6 +389,7 @@ export type PlainClientAPI = { ): Promise } upload: UploadPlainClientAPI + uploadCredential: UploadCredentialAPI locale: LocalePlainClientAPI personalAccessToken: { get(params: OptionalDefaults<{ tokenId: string }>): Promise diff --git a/lib/plain/entities/upload-credential.ts b/lib/plain/entities/upload-credential.ts new file mode 100644 index 000000000..1385fa903 --- /dev/null +++ b/lib/plain/entities/upload-credential.ts @@ -0,0 +1,41 @@ +import type { GetSpaceEnvironmentParams, MetaSysProps } from '../../common-types' +import type { OptionalDefaults } from '../wrappers/wrap' + +export type UploadCredential = { + /** + * System metadata + */ + sys: MetaSysProps & { + type: 'UploadCredential' + } + + /** + * upload credentials + */ + uploadCredentials: { + policy: string + signature: string + expiresAt: string + createdAt: string + } +} + +export type UploadCredentialAPI = { + /** Creates a Space Environment UploadCredential for Filestack Upload + * + * @param params Space Id and Environment Id to identify the Space Environment + * @param data the Space Environment Upload + * @returns the Space Environment Upload + * @throws if the request fails, or the Space Environment is not found + * @example + * ```javascript + * const credential = await client.uploadCredential.create( + * { + * spaceId: '', + * environmentId: '', + * } + * ); + * ``` + */ + create(params: OptionalDefaults): Promise +} diff --git a/lib/plain/plain-client.ts b/lib/plain/plain-client.ts index d57cf26ee..4cdff2318 100644 --- a/lib/plain/plain-client.ts +++ b/lib/plain/plain-client.ts @@ -275,6 +275,9 @@ export const createPlainClient = ( create: wrap(wrapParams, 'Upload', 'create'), delete: wrap(wrapParams, 'Upload', 'delete'), }, + uploadCredential: { + create: wrap(wrapParams, 'UploadCredential', 'create'), + }, locale: { get: wrap(wrapParams, 'Locale', 'get'), getMany: wrap(wrapParams, 'Locale', 'getMany'), diff --git a/package-lock.json b/package-lock.json index 04d35cb19..5723a4a6e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12238,7 +12238,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -12256,7 +12255,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -12268,15 +12266,13 @@ "version": "9.2.2", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width": { "version": "5.1.2", "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -12294,7 +12290,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^6.0.1" }, @@ -12310,7 +12305,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^7.0.4" }, @@ -12322,15 +12316,13 @@ "version": "1.1.0", "dev": true, "inBundle": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/npm/node_modules/@npmcli/agent": { "version": "3.0.0", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "agent-base": "^7.1.0", "http-proxy-agent": "^7.0.0", @@ -12347,7 +12339,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@isaacs/string-locale-compare": "^1.1.0", "@npmcli/fs": "^4.0.0", @@ -12397,7 +12388,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/map-workspaces": "^4.0.1", "@npmcli/package-json": "^6.0.1", @@ -12417,7 +12407,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "semver": "^7.3.5" }, @@ -12430,7 +12419,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/promise-spawn": "^8.0.0", "ini": "^5.0.0", @@ -12451,7 +12439,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "npm-bundled": "^4.0.0", "npm-normalize-package-bin": "^4.0.0" @@ -12468,7 +12455,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/name-from-folder": "^3.0.0", "@npmcli/package-json": "^6.0.0", @@ -12484,7 +12470,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "cacache": "^19.0.0", "json-parse-even-better-errors": "^4.0.0", @@ -12501,7 +12486,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -12511,7 +12495,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -12521,7 +12504,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/git": "^6.0.0", "glob": "^10.2.2", @@ -12540,7 +12522,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "which": "^5.0.0" }, @@ -12553,7 +12534,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "postcss-selector-parser": "^6.1.2" }, @@ -12566,7 +12546,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -12576,7 +12555,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/node-gyp": "^4.0.0", "@npmcli/package-json": "^6.0.0", @@ -12595,7 +12573,6 @@ "inBundle": true, "license": "MIT", "optional": true, - "peer": true, "engines": { "node": ">=14" } @@ -12605,7 +12582,6 @@ "dev": true, "inBundle": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "@sigstore/protobuf-specs": "^0.3.2" }, @@ -12618,7 +12594,6 @@ "dev": true, "inBundle": true, "license": "Apache-2.0", - "peer": true, "engines": { "node": "^16.14.0 || >=18.0.0" } @@ -12628,7 +12603,6 @@ "dev": true, "inBundle": true, "license": "Apache-2.0", - "peer": true, "engines": { "node": "^16.14.0 || >=18.0.0" } @@ -12638,7 +12612,6 @@ "dev": true, "inBundle": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "@sigstore/bundle": "^2.3.2", "@sigstore/core": "^1.0.0", @@ -12656,7 +12629,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "agent-base": "^7.1.0", "http-proxy-agent": "^7.0.0", @@ -12673,7 +12645,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "semver": "^7.3.5" }, @@ -12686,7 +12657,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/fs": "^3.1.0", "fs-minipass": "^3.0.0", @@ -12710,7 +12680,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/agent": "^2.0.0", "cacache": "^18.0.0", @@ -12734,7 +12703,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "minipass": "^7.0.3", "minipass-sized": "^1.0.3", @@ -12752,7 +12720,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } @@ -12762,7 +12729,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^7.0.3" }, @@ -12775,7 +12741,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "unique-slug": "^4.0.0" }, @@ -12788,7 +12753,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "imurmurhash": "^0.1.4" }, @@ -12801,7 +12765,6 @@ "dev": true, "inBundle": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "@sigstore/protobuf-specs": "^0.3.2", "tuf-js": "^2.2.1" @@ -12815,7 +12778,6 @@ "dev": true, "inBundle": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "@sigstore/bundle": "^2.3.2", "@sigstore/core": "^1.1.0", @@ -12830,7 +12792,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": "^16.14.0 || >=18.0.0" } @@ -12840,7 +12801,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "@tufjs/canonical-json": "2.0.0", "minimatch": "^9.0.4" @@ -12854,7 +12814,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -12864,7 +12823,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "debug": "^4.3.4" }, @@ -12877,7 +12835,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" @@ -12891,7 +12848,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -12901,7 +12857,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -12913,29 +12868,25 @@ "version": "2.0.0", "dev": true, "inBundle": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/npm/node_modules/archy": { "version": "1.0.0", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/balanced-match": { "version": "1.0.2", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/bin-links": { "version": "5.0.0", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "cmd-shim": "^7.0.0", "npm-normalize-package-bin": "^4.0.0", @@ -12952,7 +12903,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" }, @@ -12965,7 +12915,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "balanced-match": "^1.0.0" } @@ -12975,7 +12924,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/fs": "^4.0.0", "fs-minipass": "^3.0.0", @@ -12999,7 +12947,6 @@ "dev": true, "inBundle": true, "license": "BlueOak-1.0.0", - "peer": true, "engines": { "node": ">=18" } @@ -13009,7 +12956,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "minipass": "^7.0.4", "rimraf": "^5.0.5" @@ -13023,7 +12969,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "bin": { "mkdirp": "dist/cjs/src/bin.js" }, @@ -13039,7 +12984,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=18" }, @@ -13052,7 +12996,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@isaacs/fs-minipass": "^4.0.0", "chownr": "^3.0.0", @@ -13070,7 +13013,6 @@ "dev": true, "inBundle": true, "license": "BlueOak-1.0.0", - "peer": true, "engines": { "node": ">=18" } @@ -13080,7 +13022,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": "^12.17.0 || ^14.13 || >=16.0.0" }, @@ -13093,7 +13034,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": ">=10" } @@ -13109,7 +13049,6 @@ ], "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -13119,7 +13058,6 @@ "dev": true, "inBundle": true, "license": "BSD-2-Clause", - "peer": true, "dependencies": { "ip-regex": "^5.0.0" }, @@ -13132,7 +13070,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -13142,7 +13079,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "string-width": "^4.2.3", "strip-ansi": "^6.0.1" @@ -13156,7 +13092,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -13166,7 +13101,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "color-name": "~1.1.4" }, @@ -13178,22 +13112,19 @@ "version": "1.1.4", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/common-ancestor-path": { "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/npm/node_modules/cross-spawn": { "version": "7.0.3", "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -13208,7 +13139,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "isexe": "^2.0.0" }, @@ -13224,7 +13154,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "bin": { "cssesc": "bin/cssesc" }, @@ -13237,7 +13166,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "ms": "2.1.2" }, @@ -13254,15 +13182,13 @@ "version": "2.1.2", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/diff": { "version": "5.2.0", "dev": true, "inBundle": true, "license": "BSD-3-Clause", - "peer": true, "engines": { "node": ">=0.3.1" } @@ -13271,15 +13197,13 @@ "version": "0.2.0", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/emoji-regex": { "version": "8.0.0", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/encoding": { "version": "0.1.13", @@ -13287,7 +13211,6 @@ "inBundle": true, "license": "MIT", "optional": true, - "peer": true, "dependencies": { "iconv-lite": "^0.6.2" } @@ -13297,7 +13220,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -13306,22 +13228,19 @@ "version": "2.0.3", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/exponential-backoff": { "version": "3.1.1", "dev": true, "inBundle": true, - "license": "Apache-2.0", - "peer": true + "license": "Apache-2.0" }, "node_modules/npm/node_modules/fastest-levenshtein": { "version": "1.0.16", "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">= 4.9.1" } @@ -13331,7 +13250,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "cross-spawn": "^7.0.0", "signal-exit": "^4.0.1" @@ -13348,7 +13266,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^7.0.3" }, @@ -13361,7 +13278,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", @@ -13381,15 +13297,13 @@ "version": "4.2.11", "dev": true, "inBundle": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/npm/node_modules/hosted-git-info": { "version": "8.0.0", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "lru-cache": "^10.0.1" }, @@ -13401,15 +13315,13 @@ "version": "4.1.1", "dev": true, "inBundle": true, - "license": "BSD-2-Clause", - "peer": true + "license": "BSD-2-Clause" }, "node_modules/npm/node_modules/http-proxy-agent": { "version": "7.0.2", "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "agent-base": "^7.1.0", "debug": "^4.3.4" @@ -13423,7 +13335,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "agent-base": "^7.0.2", "debug": "4" @@ -13438,7 +13349,6 @@ "inBundle": true, "license": "MIT", "optional": true, - "peer": true, "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" }, @@ -13451,7 +13361,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minimatch": "^9.0.0" }, @@ -13464,7 +13373,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=0.8.19" } @@ -13474,7 +13382,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -13484,7 +13391,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -13494,7 +13400,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/package-json": "^6.0.0", "npm-package-arg": "^12.0.0", @@ -13513,7 +13418,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "jsbn": "1.1.0", "sprintf-js": "^1.1.3" @@ -13527,7 +13431,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, @@ -13540,7 +13443,6 @@ "dev": true, "inBundle": true, "license": "BSD-2-Clause", - "peer": true, "dependencies": { "cidr-regex": "^4.1.1" }, @@ -13553,7 +13455,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -13562,22 +13463,19 @@ "version": "1.0.1", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/isexe": { "version": "2.0.0", "dev": true, "inBundle": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/npm/node_modules/jackspeak": { "version": "3.4.3", "dev": true, "inBundle": true, "license": "BlueOak-1.0.0", - "peer": true, "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -13592,15 +13490,13 @@ "version": "1.1.0", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/json-parse-even-better-errors": { "version": "4.0.0", "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -13610,7 +13506,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "funding": { "url": "https://github.com/sponsors/isaacs" } @@ -13622,29 +13517,25 @@ "node >= 0.2.0" ], "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/just-diff": { "version": "6.0.2", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/just-diff-apply": { "version": "5.5.0", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/libnpmaccess": { "version": "9.0.0", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "npm-package-arg": "^12.0.0", "npm-registry-fetch": "^18.0.1" @@ -13658,7 +13549,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/arborist": "^8.0.0", "@npmcli/installed-package-contents": "^3.0.0", @@ -13678,7 +13568,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/arborist": "^8.0.0", "@npmcli/run-script": "^9.0.1", @@ -13700,7 +13589,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/arborist": "^8.0.0" }, @@ -13713,7 +13601,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "aproba": "^2.0.0", "npm-registry-fetch": "^18.0.1" @@ -13727,7 +13614,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "aproba": "^2.0.0", "npm-registry-fetch": "^18.0.1" @@ -13741,7 +13627,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/arborist": "^8.0.0", "@npmcli/run-script": "^9.0.1", @@ -13757,7 +13642,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "ci-info": "^4.0.0", "normalize-package-data": "^7.0.0", @@ -13777,7 +13661,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "npm-registry-fetch": "^18.0.1" }, @@ -13790,7 +13673,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "aproba": "^2.0.0", "npm-registry-fetch": "^18.0.1" @@ -13804,7 +13686,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/git": "^6.0.1", "@npmcli/run-script": "^9.0.1", @@ -13820,15 +13701,13 @@ "version": "10.4.3", "dev": true, "inBundle": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/npm/node_modules/make-fetch-happen": { "version": "14.0.1", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/agent": "^3.0.0", "cacache": "^19.0.1", @@ -13851,7 +13730,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "brace-expansion": "^2.0.1" }, @@ -13867,7 +13745,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": ">=16 || 14 >=14.17" } @@ -13877,7 +13754,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^7.0.3" }, @@ -13890,7 +13766,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "minipass": "^7.0.3", "minipass-sized": "^1.0.3", @@ -13908,7 +13783,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "minipass": "^7.0.4", "rimraf": "^5.0.5" @@ -13922,7 +13796,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -13935,7 +13808,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -13948,7 +13820,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -13961,7 +13832,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -13974,7 +13844,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -13987,7 +13856,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -14000,7 +13868,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "minipass": "^3.0.0", "yallist": "^4.0.0" @@ -14014,7 +13881,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -14027,7 +13893,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "bin": { "mkdirp": "bin/cmd.js" }, @@ -14039,15 +13904,13 @@ "version": "2.1.3", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/mute-stream": { "version": "2.0.0", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -14057,7 +13920,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">= 0.6" } @@ -14067,7 +13929,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "env-paths": "^2.2.0", "exponential-backoff": "^3.1.1", @@ -14092,7 +13953,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "agent-base": "^7.1.0", "http-proxy-agent": "^7.0.0", @@ -14109,7 +13969,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "semver": "^7.3.5" }, @@ -14122,7 +13981,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } @@ -14132,7 +13990,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/fs": "^3.1.0", "fs-minipass": "^3.0.0", @@ -14156,7 +14013,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": ">=16" } @@ -14166,7 +14022,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/agent": "^2.0.0", "cacache": "^18.0.0", @@ -14190,7 +14045,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "minipass": "^7.0.3", "minipass-sized": "^1.0.3", @@ -14208,7 +14062,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "abbrev": "^2.0.0" }, @@ -14224,7 +14077,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } @@ -14234,7 +14086,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^7.0.3" }, @@ -14247,7 +14098,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "unique-slug": "^4.0.0" }, @@ -14260,7 +14110,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "imurmurhash": "^0.1.4" }, @@ -14273,7 +14122,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "isexe": "^3.1.1" }, @@ -14289,7 +14137,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "abbrev": "^2.0.0" }, @@ -14305,7 +14152,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } @@ -14315,7 +14161,6 @@ "dev": true, "inBundle": true, "license": "BSD-2-Clause", - "peer": true, "dependencies": { "hosted-git-info": "^8.0.0", "semver": "^7.3.5", @@ -14330,7 +14175,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -14340,7 +14184,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "npm-normalize-package-bin": "^4.0.0" }, @@ -14353,7 +14196,6 @@ "dev": true, "inBundle": true, "license": "BSD-2-Clause", - "peer": true, "dependencies": { "semver": "^7.1.1" }, @@ -14366,7 +14208,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -14376,7 +14217,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "hosted-git-info": "^8.0.0", "proc-log": "^5.0.0", @@ -14392,7 +14232,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "ignore-walk": "^7.0.0" }, @@ -14405,7 +14244,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "npm-install-checks": "^7.1.0", "npm-normalize-package-bin": "^4.0.0", @@ -14421,7 +14259,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "npm-registry-fetch": "^18.0.0", "proc-log": "^5.0.0" @@ -14435,7 +14272,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/redact": "^3.0.0", "jsonparse": "^1.3.1", @@ -14455,7 +14291,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "minipass": "^7.0.4", "rimraf": "^5.0.5" @@ -14469,7 +14304,6 @@ "dev": true, "inBundle": true, "license": "BSD-2-Clause", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -14479,7 +14313,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "aggregate-error": "^3.0.0" }, @@ -14494,15 +14327,13 @@ "version": "1.0.0", "dev": true, "inBundle": true, - "license": "BlueOak-1.0.0", - "peer": true + "license": "BlueOak-1.0.0" }, "node_modules/npm/node_modules/pacote": { "version": "19.0.0", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/git": "^6.0.0", "@npmcli/installed-package-contents": "^3.0.0", @@ -14534,7 +14365,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "json-parse-even-better-errors": "^4.0.0", "just-diff": "^6.0.0", @@ -14549,7 +14379,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -14559,7 +14388,6 @@ "dev": true, "inBundle": true, "license": "BlueOak-1.0.0", - "peer": true, "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -14576,7 +14404,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -14590,7 +14417,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -14600,7 +14426,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -14610,7 +14435,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "funding": { "url": "https://github.com/sponsors/isaacs" } @@ -14620,7 +14444,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "funding": { "url": "https://github.com/sponsors/isaacs" } @@ -14629,15 +14452,13 @@ "version": "1.0.1", "dev": true, "inBundle": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/npm/node_modules/promise-retry": { "version": "2.0.1", "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "err-code": "^2.0.2", "retry": "^0.12.0" @@ -14651,7 +14472,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "read": "^4.0.0" }, @@ -14663,7 +14483,6 @@ "version": "0.12.0", "dev": true, "inBundle": true, - "peer": true, "bin": { "qrcode-terminal": "bin/qrcode-terminal.js" } @@ -14673,7 +14492,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "mute-stream": "^2.0.0" }, @@ -14686,7 +14504,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -14696,7 +14513,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "json-parse-even-better-errors": "^4.0.0", "npm-normalize-package-bin": "^4.0.0" @@ -14710,7 +14526,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">= 4" } @@ -14720,7 +14535,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "glob": "^10.3.7" }, @@ -14736,15 +14550,13 @@ "dev": true, "inBundle": true, "license": "MIT", - "optional": true, - "peer": true + "optional": true }, "node_modules/npm/node_modules/semver": { "version": "7.6.3", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "bin": { "semver": "bin/semver.js" }, @@ -14757,7 +14569,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "shebang-regex": "^3.0.0" }, @@ -14770,7 +14581,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=8" } @@ -14780,7 +14590,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": ">=14" }, @@ -14793,7 +14602,6 @@ "dev": true, "inBundle": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "@sigstore/bundle": "^2.3.2", "@sigstore/core": "^1.0.0", @@ -14811,7 +14619,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">= 6.0.0", "npm": ">= 3.0.0" @@ -14822,7 +14629,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "ip-address": "^9.0.5", "smart-buffer": "^4.2.0" @@ -14837,7 +14643,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "agent-base": "^7.1.1", "debug": "^4.3.4", @@ -14852,7 +14657,6 @@ "dev": true, "inBundle": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "spdx-expression-parse": "^3.0.0", "spdx-license-ids": "^3.0.0" @@ -14863,7 +14667,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" @@ -14873,15 +14676,13 @@ "version": "2.5.0", "dev": true, "inBundle": true, - "license": "CC-BY-3.0", - "peer": true + "license": "CC-BY-3.0" }, "node_modules/npm/node_modules/spdx-expression-parse": { "version": "4.0.0", "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" @@ -14891,22 +14692,19 @@ "version": "3.0.18", "dev": true, "inBundle": true, - "license": "CC0-1.0", - "peer": true + "license": "CC0-1.0" }, "node_modules/npm/node_modules/sprintf-js": { "version": "1.1.3", "dev": true, "inBundle": true, - "license": "BSD-3-Clause", - "peer": true + "license": "BSD-3-Clause" }, "node_modules/npm/node_modules/ssri": { "version": "12.0.0", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^7.0.3" }, @@ -14919,7 +14717,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -14935,7 +14732,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -14950,7 +14746,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -14964,7 +14759,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^5.0.1" }, @@ -14977,7 +14771,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -14990,7 +14783,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", @@ -15008,7 +14800,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^3.0.0" }, @@ -15021,7 +14812,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "yallist": "^4.0.0" }, @@ -15034,7 +14824,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": ">=8" } @@ -15043,22 +14832,19 @@ "version": "0.2.0", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/tiny-relative-date": { "version": "1.3.0", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/treeverse": { "version": "3.0.0", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } @@ -15068,7 +14854,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "@tufjs/models": "2.0.1", "debug": "^4.3.4", @@ -15083,7 +14868,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "agent-base": "^7.1.0", "http-proxy-agent": "^7.0.0", @@ -15100,7 +14884,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "semver": "^7.3.5" }, @@ -15113,7 +14896,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/fs": "^3.1.0", "fs-minipass": "^3.0.0", @@ -15137,7 +14919,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "@npmcli/agent": "^2.0.0", "cacache": "^18.0.0", @@ -15161,7 +14942,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "minipass": "^7.0.3", "minipass-sized": "^1.0.3", @@ -15179,7 +14959,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } @@ -15189,7 +14968,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "minipass": "^7.0.3" }, @@ -15202,7 +14980,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "unique-slug": "^4.0.0" }, @@ -15215,7 +14992,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "imurmurhash": "^0.1.4" }, @@ -15228,7 +15004,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "unique-slug": "^5.0.0" }, @@ -15241,7 +15016,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "imurmurhash": "^0.1.4" }, @@ -15253,15 +15027,13 @@ "version": "1.0.2", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/validate-npm-package-license": { "version": "3.0.4", "dev": true, "inBundle": true, "license": "Apache-2.0", - "peer": true, "dependencies": { "spdx-correct": "^3.0.0", "spdx-expression-parse": "^3.0.0" @@ -15272,7 +15044,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "spdx-exceptions": "^2.1.0", "spdx-license-ids": "^3.0.0" @@ -15283,7 +15054,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": "^18.17.0 || >=20.5.0" } @@ -15292,15 +15062,13 @@ "version": "3.0.1", "dev": true, "inBundle": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/npm/node_modules/which": { "version": "5.0.0", "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "isexe": "^3.1.1" }, @@ -15316,7 +15084,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "engines": { "node": ">=16" } @@ -15326,7 +15093,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -15345,7 +15111,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -15363,7 +15128,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -15379,7 +15143,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -15391,15 +15154,13 @@ "version": "9.2.2", "dev": true, "inBundle": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { "version": "5.1.2", "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -15417,7 +15178,6 @@ "dev": true, "inBundle": true, "license": "MIT", - "peer": true, "dependencies": { "ansi-regex": "^6.0.1" }, @@ -15433,7 +15193,6 @@ "dev": true, "inBundle": true, "license": "ISC", - "peer": true, "dependencies": { "imurmurhash": "^0.1.4", "signal-exit": "^4.0.1" @@ -15446,8 +15205,7 @@ "version": "4.0.0", "dev": true, "inBundle": true, - "license": "ISC", - "peer": true + "license": "ISC" }, "node_modules/nyc": { "version": "15.1.0", diff --git a/test/integration/upload-credential.ts b/test/integration/upload-credential.ts new file mode 100644 index 000000000..27e421200 --- /dev/null +++ b/test/integration/upload-credential.ts @@ -0,0 +1,42 @@ +import { expect } from 'chai' +import { describe, test } from 'mocha' +import type { Environment, PlainClientAPI, Space } from '../../lib/export-types' +import { + createTestEnvironment, + createTestSpace, + initClient, + initPlainClient, + waitForEnvironmentToBeReady, +} from '../helpers' + +describe('Upload Credential Integration', () => { + let space: Space + let environment: Environment + let client: PlainClientAPI + + before(async () => { + space = (await createTestSpace(initClient(), 'Entry')) as Space + environment = (await createTestEnvironment(space, 'Testing Environment')) as Environment + client = initPlainClient() + await waitForEnvironmentToBeReady(space, environment) + }) + + after(() => { + if (space) { + return space.delete() + } + }) + + test('create a upload credential', async () => { + const result = await client.uploadCredential.create({ + spaceId: space.sys.id, + environmentId: environment.sys.id, + }) + + expect(result.sys.type).equals('UploadCredential') + expect(result.uploadCredentials.policy).to.be.a('string') + expect(result.uploadCredentials.signature).to.be.a('string') + expect(result.uploadCredentials.expiresAt).to.be.a('string') + expect(result.uploadCredentials.createdAt).to.be.a('string') + }) +}) diff --git a/test/unit/entities/upload-credential-test.ts b/test/unit/entities/upload-credential-test.ts new file mode 100644 index 000000000..6b4529bfe --- /dev/null +++ b/test/unit/entities/upload-credential-test.ts @@ -0,0 +1,20 @@ +import { describe, test } from 'mocha' +import { wrapUploadCredential } from '../../../lib/entities/upload-credential' +import { cloneMock } from '../mocks/entities' +import setupMakeRequest from '../mocks/makeRequest' +import { entityWrappedTest } from '../test-creators/instance-entity-methods' + +function setup(promise) { + return { + makeRequest: setupMakeRequest(promise), + entityMock: cloneMock('uploadCredential'), + } +} + +describe('Entity Upload credential', () => { + test('UploadCredential is wrapped', async () => { + return entityWrappedTest(setup, { + wrapperMethod: wrapUploadCredential, + }) + }) +}) diff --git a/test/unit/mocks/entities.js b/test/unit/mocks/entities.js index 58e23ab89..aa1e9d478 100644 --- a/test/unit/mocks/entities.js +++ b/test/unit/mocks/entities.js @@ -498,6 +498,25 @@ const uploadMock = { }), } +const uploadCredentialMock = { + sys: Object.assign(cloneDeep(sysMock), { + type: 'UploadCredential', + id: 'some_random_id', + space: { + sys: { id: 'space-id' }, + }, + environment: { + sys: { id: 'environment-id' }, + }, + }), + uploadCredential: { + policy: 'some-policy', + signature: 'some-signature', + createdAt: '2020-03-30T13:38:37.000Z', + expiresAt: '2020-03-30T13:38:37.000Z', + }, +} + const localeMock = { sys: Object.assign(cloneDeep(sysMock), { environment: { @@ -1169,6 +1188,7 @@ const mocks = { teamMembership: teamMembershipMock, teamSpaceMembership: teamSpaceMembershipMock, upload: uploadMock, + uploadCredential: uploadCredentialMock, usage: usageMock, uiConfig: uiConfigMock, user: userMock, @@ -1408,64 +1428,64 @@ function setupEntitiesMock(rewiredModuleApi) { } export { - appActionMock, + accessTokenMock, + apiKeyMock, + appAccessTokenMock, appActionCallMock, + appActionMock, appBundleMock, - appInstallationMock, appDefinitionMock, - appUploadMock, - appSignedRequestMock, - appSigningSecretMock, + appDetailsMock, appEventSubscriptionMock, + appInstallationMock, + appInstallationsForOrgMock, appKeyMock, - appAccessTokenMock, - appDetailsMock, - linkMock, - sysMock, - spaceMock, + appSignedRequestMock, + appSigningSecretMock, + appUploadMock, + assetKeyMock, + assetMock, + assetWithFilesMock, bulkActionMock, + cloneMock, commentMock, contentTypeMock, editorInterfaceMock, entryMock, - entryWithReferencesMock, entryReferencesCollectionMock, + entryWithReferencesMock, + environmentAliasMock, + environmentMock, + environmentTemplateInstallationMock, + environmentTemplateMock, + environmentTemplateValidationMock, + errorMock, extensionMock, - assetMock, - assetWithFilesMock, - assetKeyMock, + linkMock, localeMock, - webhookMock, - spaceMemberMock, - spaceMembershipMock, - teamSpaceMembershipMock, - organizationMembershipMock, - teamMock, - teamMembershipMock, + mockCollection, organizationInvitationMock, - appInstallationsForOrgMock, + organizationMembershipMock, + organizationMock, + personalAccessTokenMock, + previewApiKeyMock, releaseMock, + resourceMock, + resourceProviderMock, + resourceTypeMock, roleMock, - apiKeyMock, - previewApiKeyMock, - errorMock, - cloneMock, - mockCollection, setupEntitiesMock, - uploadMock, - organizationMock, snapShotMock, - userMock, - personalAccessTokenMock, - accessTokenMock, - environmentMock, - usageMock, - environmentAliasMock, - environmentTemplateMock, - environmentTemplateInstallationMock, - environmentTemplateValidationMock, + spaceMemberMock, + spaceMembershipMock, + spaceMock, + sysMock, taskMock, - resourceProviderMock, - resourceTypeMock, - resourceMock, + teamMembershipMock, + teamMock, + teamSpaceMembershipMock, + uploadMock, + usageMock, + userMock, + webhookMock, }