{"version":3,"sources":["../../src/document-management-editor-deployments-v1-deployment-deployments.universal.ts","../../src/document-management-editor-deployments-v1-deployment-deployments.http.ts","../../src/document-management-editor-deployments-v1-deployment-deployments.public.ts","../../src/document-management-editor-deployments-v1-deployment-deployments.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixDocumentManagementEditorDeploymentsV1Deployment from './document-management-editor-deployments-v1-deployment-deployments.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Deployment is the main entity of Deployments. */\nexport interface Deployment\n  extends DeploymentDescriptionOneOf,\n    DeploymentCreationPublishTypeOneOf {\n  /** Deployment description */\n  editorRevision?: EditorRevision;\n  /** No publish */\n  noPublish?: CreationPublishTypeNone;\n  /** Publish Site */\n  sitePublish?: CreationPublishTypeSite;\n  /** Publish Site's RC */\n  rcPublish?: CreationPublishTypeRC;\n  /**\n   * Deployment ID\n   * @format GUID\n   */\n  _id?: string;\n  /** Deployment type */\n  deploymentType?: DeploymentTypeWithLiterals;\n  /**\n   * The label of the deployment.\n   * @maxLength 250\n   */\n  label?: string | null;\n  /**\n   * Represents the time this Deployment was last modified\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /** Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision */\n  revision?: string | null;\n  /**\n   * All pipelines that implement DeploymentPipelineProvider interface\n   * @maxSize 30\n   */\n  pipelines?: PipelineResult[];\n  /** The pipelines status of the deployment */\n  deploymentPipelinesStatus?: DeploymentPipelinesStatusWithLiterals;\n  /**\n   * Represents the time this Deployment was created\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /** The editor session that created the deployment */\n  editorSession?: EditorSession;\n  /** Data Extensions */\n  extendedFields?: ExtendedFields;\n}\n\n/** @oneof */\nexport interface DeploymentDescriptionOneOf {\n  /** Deployment description */\n  editorRevision?: EditorRevision;\n}\n\n/** @oneof */\nexport interface DeploymentCreationPublishTypeOneOf {\n  /** No publish */\n  noPublish?: CreationPublishTypeNone;\n  /** Publish Site */\n  sitePublish?: CreationPublishTypeSite;\n  /** Publish Site's RC */\n  rcPublish?: CreationPublishTypeRC;\n}\n\nexport enum DeploymentType {\n  UNKNOWN = 'UNKNOWN',\n  EDITOR_REVISION = 'EDITOR_REVISION',\n}\n\n/** @enumType */\nexport type DeploymentTypeWithLiterals =\n  | DeploymentType\n  | 'UNKNOWN'\n  | 'EDITOR_REVISION';\n\nexport interface EditorRevision {\n  /**\n   * Branch's Id\n   * @format GUID\n   */\n  branchId?: string | null;\n  /** Revision's Id */\n  siteRevision?: string;\n}\n\nexport interface PipelineResult {\n  /**\n   * The deployment pipeline implementer id as appears in the SPI Config\n   * @format GUID\n   */\n  deploymentPipelineId?: string;\n  /** Pipeline status */\n  pipelineStatus?: PipelineStatusWithLiterals;\n  /**\n   * The deployment pipeline task results\n   * @maxSize 20\n   */\n  tasksResults?: TaskResult[];\n}\n\nexport enum PipelineStatus {\n  UNDEFINED = 'UNDEFINED',\n  IN_PROGRESS = 'IN_PROGRESS',\n  SUCCESS = 'SUCCESS',\n  ERROR = 'ERROR',\n  INVOKE_ERROR = 'INVOKE_ERROR',\n  TIMEOUT = 'TIMEOUT',\n  SKIPPED = 'SKIPPED',\n}\n\n/** @enumType */\nexport type PipelineStatusWithLiterals =\n  | PipelineStatus\n  | 'UNDEFINED'\n  | 'IN_PROGRESS'\n  | 'SUCCESS'\n  | 'ERROR'\n  | 'INVOKE_ERROR'\n  | 'TIMEOUT'\n  | 'SKIPPED';\n\nexport interface TaskResult {\n  /**\n   * Name of the task for internal references. For example: \"user code bundling\".\n   * @minLength 1\n   * @maxLength 250\n   */\n  taskName?: string;\n  /** The execution status of the pipeline for the given deployment creation process */\n  status?: TaskStatusWithLiterals;\n}\n\nexport enum TaskStatus {\n  UNDEFINED = 'UNDEFINED',\n  SUCCESS = 'SUCCESS',\n  ERROR = 'ERROR',\n  RUNNING = 'RUNNING',\n  ABORTED = 'ABORTED',\n}\n\n/** @enumType */\nexport type TaskStatusWithLiterals =\n  | TaskStatus\n  | 'UNDEFINED'\n  | 'SUCCESS'\n  | 'ERROR'\n  | 'RUNNING'\n  | 'ABORTED';\n\nexport enum DeploymentPipelinesStatus {\n  UNDEFINED = 'UNDEFINED',\n  /** No pipelines are defined for this deployment */\n  NONE = 'NONE',\n  /** Pipelines are invoked and in progress */\n  IN_PROGRESS = 'IN_PROGRESS',\n  /** Pipelines completed successfully */\n  SUCCESS = 'SUCCESS',\n  /** Pipelines completed with errors */\n  ERROR = 'ERROR',\n}\n\n/** @enumType */\nexport type DeploymentPipelinesStatusWithLiterals =\n  | DeploymentPipelinesStatus\n  | 'UNDEFINED'\n  | 'NONE'\n  | 'IN_PROGRESS'\n  | 'SUCCESS'\n  | 'ERROR';\n\nexport interface EditorSession {\n  /**\n   * Editor Session Id\n   * @format GUID\n   */\n  esi?: string | null;\n  /**\n   * Document services Origin\n   * @maxLength 50\n   */\n  dsOrigin?: string | null;\n}\n\nexport interface ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface CreationPublishTypeNone {}\n\nexport interface CreationPublishTypeSite {}\n\nexport interface CreationPublishTypeRC {\n  /** The RC label provided on the deployment creation */\n  rcLabel?: RCLabelWithLiterals;\n  /** If true, during publishing the RC there will be a validation that there is at most 1 RC with the same label for this site's branch, and if such RC exists it will replace it with the new RC. */\n  useUniqueLabel?: boolean;\n  /**\n   * number of minutes the RC will be published\n   * @max 129600\n   * @min 1\n   */\n  ttlMinutes?: number | null;\n}\n\nexport enum RCLabel {\n  /** Illegal default value, exception will be thrown if used */\n  UNKNOWN = 'UNKNOWN',\n  RELEASE_MANAGER = 'RELEASE_MANAGER',\n  BLOCKS = 'BLOCKS',\n  WIX_CLI = 'WIX_CLI',\n  MOBILE_APP_BUILDER = 'MOBILE_APP_BUILDER',\n  SEO = 'SEO',\n  FEEDBACK = 'FEEDBACK',\n  ACCESSIBILITY = 'ACCESSIBILITY',\n  ENTERPRISE_APPROVALS = 'ENTERPRISE_APPROVALS',\n}\n\n/** @enumType */\nexport type RCLabelWithLiterals =\n  | RCLabel\n  | 'UNKNOWN'\n  | 'RELEASE_MANAGER'\n  | 'BLOCKS'\n  | 'WIX_CLI'\n  | 'MOBILE_APP_BUILDER'\n  | 'SEO'\n  | 'FEEDBACK'\n  | 'ACCESSIBILITY'\n  | 'ENTERPRISE_APPROVALS';\n\nexport interface DeploymentPipelineUpdatedMessage {\n  /**\n   * The deployment id\n   * @format GUID\n   */\n  deploymentId?: string;\n}\n\nexport interface CreateDeploymentRequest\n  extends CreateDeploymentRequestBasedOnOneOf,\n    CreateDeploymentRequestPublishMethodOneOf {\n  /** Based on a specific Editor Revision. */\n  specificVersion?: EditorRevision;\n  /** Based on the latest state of a branch. */\n  latestFromBranch?: LatestFromBranch;\n  /** Publish RC */\n  publishSiteRcMethod?: PublishSiteRCMethod;\n  /**\n   * Deployment's label.\n   * @maxLength 250\n   */\n  label?: string;\n  /**\n   * Deployments attributes.\n   * @maxSize 1\n   */\n  deploymentAttributes?: DeploymentAttribute[];\n  /** Supporting publish on the creation flow. Please specify the publish type and leave empty in case you don't want to publish */\n  publishType?: PublishTypeWithLiterals;\n  /** Session info */\n  sessionInfo?: SessionInfo;\n}\n\n/** @oneof */\nexport interface CreateDeploymentRequestBasedOnOneOf {\n  /** Based on a specific Editor Revision. */\n  specificVersion?: EditorRevision;\n  /** Based on the latest state of a branch. */\n  latestFromBranch?: LatestFromBranch;\n}\n\n/** @oneof */\nexport interface CreateDeploymentRequestPublishMethodOneOf {\n  /** Publish RC */\n  publishSiteRcMethod?: PublishSiteRCMethod;\n}\n\nexport interface DeploymentAttribute extends DeploymentAttributeAttributeOneOf {\n  /** GridAppId attribute. */\n  gridAppIdAttribute?: GridAppIdAttribute;\n}\n\n/** @oneof */\nexport interface DeploymentAttributeAttributeOneOf {\n  /** GridAppId attribute. */\n  gridAppIdAttribute?: GridAppIdAttribute;\n}\n\nexport interface GridAppIdAttribute {\n  /**\n   * The gridAppId attribute would like to override/append.\n   * @maxLength 100\n   */\n  gridAppId?: string;\n}\n\nexport enum PublishType {\n  /** No publish */\n  NONE = 'NONE',\n  /** Publish Site */\n  SITE = 'SITE',\n  /** Publish Site's RC - Notice that PublishSiteRCMethod should be provided as well. */\n  RC = 'RC',\n}\n\n/** @enumType */\nexport type PublishTypeWithLiterals = PublishType | 'NONE' | 'SITE' | 'RC';\n\nexport interface SessionInfo {\n  /**\n   * Editor session id\n   * @format GUID\n   */\n  esi?: string | null;\n  /**\n   * Ds origin\n   * @maxLength 50\n   */\n  dsOrigin?: string | null;\n}\n\nexport interface LatestFromBranch {\n  /**\n   * Branch to get the latest state from.\n   * @format GUID\n   */\n  branchId?: string | null;\n}\n\nexport interface PublishSiteRCMethod {\n  /** The label of this RC */\n  rcLabel?: RCLabelWithLiterals;\n  /** If true, during publishing the RC there will be a validation that there is at most 1 RC with the same label for this site's branch, and if such RC exists it will replace it with the new RC. */\n  useUniqueLabel?: boolean;\n  /**\n   * number of minutes the RC will be published\n   * @max 129600\n   * @min 1\n   */\n  ttlMinutes?: number | null;\n}\n\nexport interface CreateDeploymentResponse {\n  /** The created Deployment */\n  deployment?: Deployment;\n}\n\nexport interface GetDeploymentRequest {\n  /**\n   * Id of the Deployment to retrieve\n   * @format GUID\n   */\n  deploymentId: string;\n}\n\nexport interface GetDeploymentResponse {\n  /** The retrieved Deployment */\n  deployment?: Deployment;\n}\n\nexport interface PublishDeploymentRequest {\n  /**\n   * Id of the Deployment to publish\n   * @format GUID\n   */\n  deploymentId: string;\n  /** If provided - will publish even if deployment's pipeline is not successfully completed */\n  skipPipelineCheck?: boolean | null;\n}\n\nexport interface PublishDeploymentResponse {\n  /** The published Deployment */\n  deployment?: Deployment;\n}\n\nexport interface PublishRCDeploymentRequest {\n  /**\n   * Id of the Deployment to publish\n   * @format GUID\n   */\n  deploymentId: string;\n  /** The label of this RC */\n  rcLabel?: RCLabelWithLiterals;\n  /** If provided - will publish even if deployment's pipeline is not successfully completed */\n  skipPipelineCheck?: boolean | null;\n  /** If true, during publishing the RC there will be a validation that there is at most 1 RC with the same label for this site's branch, and if such RC exists it will replace it with the new RC. */\n  useUniqueLabel?: boolean;\n  /**\n   * number of minutes the RC will be published\n   * @max 129600\n   * @min 1\n   */\n  ttlMinutes?: number | null;\n}\n\nexport interface PublishRCDeploymentResponse {\n  /** The published Deployment */\n  deployment?: Deployment;\n}\n\nexport interface ListDeploymentsRequest {}\n\nexport interface ListDeploymentsResponse {\n  /** The retrieved Deployments */\n  deployments?: Deployment[];\n}\n\nexport interface QueryDeploymentsRequest {\n  /** Cursor query message. */\n  query: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   *\n   * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n   * @maxSize 5\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @maxLength 512\n   */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n  /**\n   * Maximum number of items to return in the results.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   * @maxLength 16000\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryDeploymentsResponse {\n  /** Results from query. */\n  deployments?: Deployment[];\n  /** Paging metadata */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in current page. */\n  count?: number | null;\n  /** Cursor strings that point to the next page, previous page, or both. */\n  cursors?: Cursors;\n  /**\n   * Whether there are more pages to retrieve following the current page.\n   *\n   * + `true`: Another page of results can be retrieved.\n   * + `false`: This is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /**\n   * Cursor string pointing to the next page in the list of results.\n   * @maxLength 16000\n   */\n  next?: string | null;\n  /**\n   * Cursor pointing to the previous page in the list of results.\n   * @maxLength 16000\n   */\n  prev?: string | null;\n}\n\nexport interface ReportDeploymentPipelineResultRequest {\n  /**\n   * The deployment creation process id, should match the id that was passed in the invoke() call by the SPI Host\n   * @format GUID\n   */\n  deploymentId: string;\n  /**\n   * The deployment pipeline implementer id as appears in the SPI Config\n   * @format GUID\n   */\n  deploymentPipelineId: string;\n  /**\n   * The deployment pipeline task results\n   * @maxSize 20\n   */\n  tasksResults?: TaskResult[];\n}\n\nexport interface ReportDeploymentPipelineResultResponse {}\n\nexport interface GetDeploymentPipelineDescriptionRequest {\n  /**\n   * The deployment id\n   * @format GUID\n   */\n  deploymentId: string;\n  /**\n   * The deployment pipelines implementers ids as appears in the SPI Config to be called for getting descriptions.\n   * @format GUID\n   * @minSize 1\n   * @maxSize 30\n   */\n  deploymentPipelinesIds: string[];\n}\n\nexport interface GetDeploymentPipelineDescriptionResponse {\n  /**\n   * Full description on the tasks each provider done on the specific deployment_id (description per task).\n   * @minSize 30\n   */\n  pipelinesDescription?: PipelineDescription[];\n}\n\nexport interface PipelineDescription {\n  /**\n   * The deployment pipeline id (spi implementers).\n   * @format GUID\n   */\n  deploymentPipelineId?: string;\n  /**\n   * description per task\n   * @maxSize 20\n   */\n  tasksDescriptions?: TaskDescription[];\n}\n\nexport interface TaskDescription {\n  /**\n   * Name of the task for internal references. For example: \"user code bundling\".\n   * @minLength 1\n   * @maxLength 250\n   */\n  taskName?: string;\n  /**\n   * Description about the tasks results.\n   * @maxLength 10000\n   */\n  description?: string | null;\n  /** Task status */\n  status?: TaskStatusWithLiterals;\n}\n\nexport interface Empty {}\n\nexport interface UpdateExtendedFieldsRequest {\n  /** ID of the entity to update. */\n  _id: string;\n  /** Identifier for the app whose extended fields are being updated. */\n  namespace: string;\n  /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n  namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n  /** Updated Deployment. */\n  deployment?: Deployment;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n  _id?: string;\n  /**\n   * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n   * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n   */\n  entityFqdn?: string;\n  /**\n   * Event action name, placed at the top level to make it easier for users to dispatch messages.\n   * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n   * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entity?: string;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: string;\n}\n\nexport interface MessageEnvelope {\n  /**\n   * App instance ID.\n   * @format GUID\n   */\n  instanceId?: string | null;\n  /**\n   * Event type.\n   * @maxLength 150\n   */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /**\n   * ID of a site visitor that has not logged in to the site.\n   * @format GUID\n   */\n  anonymousVisitorId?: string;\n  /**\n   * ID of a site visitor that has logged in to the site.\n   * @format GUID\n   */\n  memberId?: string;\n  /**\n   * ID of a Wix user (site owner, contributor, etc.).\n   * @format GUID\n   */\n  wixUserId?: string;\n  /**\n   * ID of an app.\n   * @format GUID\n   */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n  | WebhookIdentityType\n  | 'UNKNOWN'\n  | 'ANONYMOUS_VISITOR'\n  | 'MEMBER'\n  | 'WIX_USER'\n  | 'APP';\n/** @docsIgnore */\nexport type CreateDeploymentApplicationErrors = {\n  code?: 'UNSUPPORTED_EDITOR';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type PublishDeploymentApplicationErrors = {\n  code?: 'PUBLISH_NOT_ALLOWED';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type PublishRcDeploymentApplicationErrors = {\n  code?: 'PUBLISH_NOT_ALLOWED';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ReportDeploymentPipelineResultApplicationErrors = {\n  code?: 'NO_PIPELINE_IN_PROGRESS';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetDeploymentPipelineDescriptionApplicationErrors = {\n  code?: 'PIPELINE_NOT_COMPLETED';\n  description?: string;\n  data?: Record<string, any>;\n};\n\n/**\n * Creates a new Deployment\n * @public\n * @documentationMaturity preview\n * @requiredField options.basedOn\n * @permissionId EDITOR.DEPLOYMENT_CREATE\n * @returns The created Deployment\n * @fqn wix.editor.deployments.v1.DeploymentsService.CreateDeployment\n */\nexport async function createDeployment(\n  options?: CreateDeploymentOptions\n): Promise<\n  NonNullablePaths<\n    Deployment,\n    | `editorRevision.siteRevision`\n    | `rcPublish.rcLabel`\n    | `rcPublish.useUniqueLabel`\n    | `_id`\n    | `deploymentType`\n    | `pipelines`\n    | `pipelines.${number}.deploymentPipelineId`\n    | `pipelines.${number}.pipelineStatus`\n    | `deploymentPipelinesStatus`,\n    4\n  > & {\n    __applicationErrorsType?: CreateDeploymentApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    label: options?.label,\n    deploymentAttributes: options?.deploymentAttributes,\n    publishType: options?.publishType,\n    sessionInfo: options?.sessionInfo,\n    specificVersion: options?.specificVersion,\n    latestFromBranch: options?.latestFromBranch,\n    publishSiteRcMethod: options?.publishSiteRcMethod,\n  });\n\n  const reqOpts =\n    ambassadorWixDocumentManagementEditorDeploymentsV1Deployment.createDeployment(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.deployment!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          label: '$[0].label',\n          deploymentAttributes: '$[0].deploymentAttributes',\n          publishType: '$[0].publishType',\n          sessionInfo: '$[0].sessionInfo',\n          specificVersion: '$[0].specificVersion',\n          latestFromBranch: '$[0].latestFromBranch',\n          publishSiteRcMethod: '$[0].publishSiteRcMethod',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface CreateDeploymentOptions\n  extends CreateDeploymentOptionsBasedOnOneOf,\n    CreateDeploymentOptionsPublishMethodOneOf {\n  /**\n   * Deployment's label.\n   * @maxLength 250\n   */\n  label?: string;\n  /**\n   * Deployments attributes.\n   * @maxSize 1\n   */\n  deploymentAttributes?: DeploymentAttribute[];\n  /** Supporting publish on the creation flow. Please specify the publish type and leave empty in case you don't want to publish */\n  publishType?: PublishTypeWithLiterals;\n  /** Session info */\n  sessionInfo?: SessionInfo;\n  /** Based on a specific Editor Revision. */\n  specificVersion?: EditorRevision;\n  /** Based on the latest state of a branch. */\n  latestFromBranch?: LatestFromBranch;\n  /** Publish RC */\n  publishSiteRcMethod?: PublishSiteRCMethod;\n}\n\n/** @oneof */\nexport interface CreateDeploymentOptionsBasedOnOneOf {\n  /** Based on a specific Editor Revision. */\n  specificVersion?: EditorRevision;\n  /** Based on the latest state of a branch. */\n  latestFromBranch?: LatestFromBranch;\n}\n\n/** @oneof */\nexport interface CreateDeploymentOptionsPublishMethodOneOf {\n  /** Publish RC */\n  publishSiteRcMethod?: PublishSiteRCMethod;\n}\n\n/**\n * Get a Deployment by id\n * @param deploymentId - Id of the Deployment to retrieve\n * @public\n * @documentationMaturity preview\n * @requiredField deploymentId\n * @permissionId EDITOR.DEPLOYMENT_READ\n * @returns The retrieved Deployment\n * @fqn wix.editor.deployments.v1.DeploymentsService.GetDeployment\n */\nexport async function getDeployment(\n  deploymentId: string\n): Promise<\n  NonNullablePaths<\n    Deployment,\n    | `editorRevision.siteRevision`\n    | `rcPublish.rcLabel`\n    | `rcPublish.useUniqueLabel`\n    | `_id`\n    | `deploymentType`\n    | `pipelines`\n    | `pipelines.${number}.deploymentPipelineId`\n    | `pipelines.${number}.pipelineStatus`\n    | `deploymentPipelinesStatus`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    deploymentId: deploymentId,\n  });\n\n  const reqOpts =\n    ambassadorWixDocumentManagementEditorDeploymentsV1Deployment.getDeployment(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.deployment!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { deploymentId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['deploymentId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Publish a Deployment\n * @param deploymentId - Id of the Deployment to publish\n * @public\n * @documentationMaturity preview\n * @requiredField deploymentId\n * @permissionId EDITOR.DEPLOYMENT_PUBLISH\n * @fqn wix.editor.deployments.v1.DeploymentsService.PublishDeployment\n */\nexport async function publishDeployment(\n  deploymentId: string,\n  options?: PublishDeploymentOptions\n): Promise<\n  NonNullablePaths<\n    PublishDeploymentResponse,\n    | `deployment.editorRevision.siteRevision`\n    | `deployment.rcPublish.rcLabel`\n    | `deployment.rcPublish.useUniqueLabel`\n    | `deployment._id`\n    | `deployment.deploymentType`\n    | `deployment.pipelines`\n    | `deployment.pipelines.${number}.deploymentPipelineId`\n    | `deployment.pipelines.${number}.pipelineStatus`\n    | `deployment.deploymentPipelinesStatus`,\n    5\n  > & {\n    __applicationErrorsType?: PublishDeploymentApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    deploymentId: deploymentId,\n    skipPipelineCheck: options?.skipPipelineCheck,\n  });\n\n  const reqOpts =\n    ambassadorWixDocumentManagementEditorDeploymentsV1Deployment.publishDeployment(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          deploymentId: '$[0]',\n          skipPipelineCheck: '$[1].skipPipelineCheck',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['deploymentId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface PublishDeploymentOptions {\n  /** If provided - will publish even if deployment's pipeline is not successfully completed */\n  skipPipelineCheck?: boolean | null;\n}\n\n/**\n * Publish an RC Deployment\n * @param deploymentId - Id of the Deployment to publish\n * @public\n * @documentationMaturity preview\n * @requiredField deploymentId\n * @permissionId EDITOR.DEPLOYMENT_PUBLISH\n * @fqn wix.editor.deployments.v1.DeploymentsService.PublishRCDeployment\n */\nexport async function publishRcDeployment(\n  deploymentId: string,\n  options?: PublishRcDeploymentOptions\n): Promise<\n  NonNullablePaths<\n    PublishRCDeploymentResponse,\n    | `deployment.editorRevision.siteRevision`\n    | `deployment.rcPublish.rcLabel`\n    | `deployment.rcPublish.useUniqueLabel`\n    | `deployment._id`\n    | `deployment.deploymentType`\n    | `deployment.pipelines`\n    | `deployment.pipelines.${number}.deploymentPipelineId`\n    | `deployment.pipelines.${number}.pipelineStatus`\n    | `deployment.deploymentPipelinesStatus`,\n    5\n  > & {\n    __applicationErrorsType?: PublishRcDeploymentApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    deploymentId: deploymentId,\n    rcLabel: options?.rcLabel,\n    skipPipelineCheck: options?.skipPipelineCheck,\n    useUniqueLabel: options?.useUniqueLabel,\n    ttlMinutes: options?.ttlMinutes,\n  });\n\n  const reqOpts =\n    ambassadorWixDocumentManagementEditorDeploymentsV1Deployment.publishRcDeployment(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          deploymentId: '$[0]',\n          rcLabel: '$[1].rcLabel',\n          skipPipelineCheck: '$[1].skipPipelineCheck',\n          useUniqueLabel: '$[1].useUniqueLabel',\n          ttlMinutes: '$[1].ttlMinutes',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['deploymentId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface PublishRcDeploymentOptions {\n  /** The label of this RC */\n  rcLabel?: RCLabelWithLiterals;\n  /** If provided - will publish even if deployment's pipeline is not successfully completed */\n  skipPipelineCheck?: boolean | null;\n  /** If true, during publishing the RC there will be a validation that there is at most 1 RC with the same label for this site's branch, and if such RC exists it will replace it with the new RC. */\n  useUniqueLabel?: boolean;\n  /**\n   * number of minutes the RC will be published\n   * @max 129600\n   * @min 1\n   */\n  ttlMinutes?: number | null;\n}\n\n/**\n * List Deployments\n * @public\n * @documentationMaturity preview\n * @permissionId EDITOR.DEPLOYMENT_READ\n * @fqn wix.editor.deployments.v1.DeploymentsService.ListDeployments\n */\nexport async function listDeployments(): Promise<\n  NonNullablePaths<\n    ListDeploymentsResponse,\n    | `deployments`\n    | `deployments.${number}.editorRevision.siteRevision`\n    | `deployments.${number}.rcPublish.rcLabel`\n    | `deployments.${number}.rcPublish.useUniqueLabel`\n    | `deployments.${number}._id`\n    | `deployments.${number}.deploymentType`\n    | `deployments.${number}.deploymentPipelinesStatus`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts =\n    ambassadorWixDocumentManagementEditorDeploymentsV1Deployment.listDeployments(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Query Deployments\n * @public\n * @documentationMaturity preview\n * @permissionId EDITOR.DEPLOYMENT_READ\n * @fqn wix.editor.deployments.v1.DeploymentsService.QueryDeployments\n */\nexport function queryDeployments(): DeploymentsQueryBuilder {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  return queryBuilder<\n    Deployment,\n    'CURSOR',\n    QueryDeploymentsRequest,\n    QueryDeploymentsResponse\n  >({\n    func: async (payload: QueryDeploymentsRequest) => {\n      const reqOpts =\n        ambassadorWixDocumentManagementEditorDeploymentsV1Deployment.queryDeployments(\n          payload\n        );\n\n      sideEffects?.onSiteCall?.();\n      try {\n        const result = await httpClient.request(reqOpts);\n        sideEffects?.onSuccess?.(result);\n        return result;\n      } catch (err) {\n        sideEffects?.onError?.(err);\n        throw err;\n      }\n    },\n    requestTransformer: (query: QueryDeploymentsRequest['query']) => {\n      const args = [query, {}] as [QueryDeploymentsRequest['query'], {}];\n      return renameKeysFromSDKRequestToRESTRequest({\n        ...args?.[1],\n        query: args?.[0],\n      });\n    },\n    responseTransformer: ({ data }: HttpResponse<QueryDeploymentsResponse>) => {\n      const transformedData = renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(data, [])\n      );\n\n      return {\n        items: transformedData?.deployments,\n        pagingMetadata: transformedData?.pagingMetadata,\n      };\n    },\n    errorTransformer: (err: unknown) => {\n      const transformedError = sdkTransformError(err, {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      });\n\n      throw transformedError;\n    },\n    pagingMethod: 'CURSOR',\n    transformationPaths: {},\n  });\n}\n\ninterface QueryCursorResult {\n  cursors: Cursors;\n  hasNext: () => boolean;\n  hasPrev: () => boolean;\n  length: number;\n  pageSize: number;\n}\n\nexport interface DeploymentsQueryResult extends QueryCursorResult {\n  items: Deployment[];\n  query: DeploymentsQueryBuilder;\n  next: () => Promise<DeploymentsQueryResult>;\n  prev: () => Promise<DeploymentsQueryResult>;\n}\n\nexport interface DeploymentsQueryBuilder {\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  eq: (\n    propertyName:\n      | 'deploymentType'\n      | 'label'\n      | '_updatedDate'\n      | 'pipelines.deploymentPipelineId'\n      | 'pipelines.pipelineStatus'\n      | 'pipelines.tasksResults.taskName'\n      | 'pipelines.tasksResults.status'\n      | 'deploymentPipelinesStatus'\n      | '_createdDate',\n    value: any\n  ) => DeploymentsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ne: (\n    propertyName: '_updatedDate' | '_createdDate',\n    value: any\n  ) => DeploymentsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ge: (\n    propertyName: '_updatedDate' | '_createdDate',\n    value: any\n  ) => DeploymentsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  gt: (\n    propertyName: '_updatedDate' | '_createdDate',\n    value: any\n  ) => DeploymentsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  le: (\n    propertyName: '_updatedDate' | '_createdDate',\n    value: any\n  ) => DeploymentsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  lt: (\n    propertyName: '_updatedDate' | '_createdDate',\n    value: any\n  ) => DeploymentsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `values`.\n   * @param values - List of values to compare against.\n   * @documentationMaturity preview\n   */\n  hasSome: (\n    propertyName: '_updatedDate' | '_createdDate',\n    value: any[]\n  ) => DeploymentsQueryBuilder;\n  /** @documentationMaturity preview */\n  in: (\n    propertyName: '_updatedDate' | '_createdDate',\n    value: any\n  ) => DeploymentsQueryBuilder;\n  /** @documentationMaturity preview */\n  exists: (\n    propertyName: '_updatedDate' | '_createdDate',\n    value: boolean\n  ) => DeploymentsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  ascending: (\n    ...propertyNames: Array<\n      | 'deploymentType'\n      | 'label'\n      | '_updatedDate'\n      | 'deploymentPipelinesStatus'\n      | '_createdDate'\n    >\n  ) => DeploymentsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  descending: (\n    ...propertyNames: Array<\n      | 'deploymentType'\n      | 'label'\n      | '_updatedDate'\n      | 'deploymentPipelinesStatus'\n      | '_createdDate'\n    >\n  ) => DeploymentsQueryBuilder;\n  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n   * @documentationMaturity preview\n   */\n  limit: (limit: number) => DeploymentsQueryBuilder;\n  /** @param cursor - A pointer to specific record\n   * @documentationMaturity preview\n   */\n  skipTo: (cursor: string) => DeploymentsQueryBuilder;\n  /** @documentationMaturity preview */\n  find: () => Promise<DeploymentsQueryResult>;\n}\n\n/**\n * The pipeline provider has to send this event when its execution has ended.\n * @param deploymentId - The deployment creation process id, should match the id that was passed in the invoke() call by the SPI Host\n * @param deploymentPipelineId - The deployment pipeline implementer id as appears in the SPI Config\n * @public\n * @documentationMaturity preview\n * @requiredField deploymentId\n * @requiredField deploymentPipelineId\n * @permissionId EDITOR.DEPLOYMENT_UPDATE\n * @fqn wix.editor.deployments.v1.DeploymentsService.ReportDeploymentPipelineResult\n */\nexport async function reportDeploymentPipelineResult(\n  deploymentId: string,\n  deploymentPipelineId: string,\n  options?: ReportDeploymentPipelineResultOptions\n): Promise<\n  void & {\n    __applicationErrorsType?: ReportDeploymentPipelineResultApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[3] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    deploymentId: deploymentId,\n    deploymentPipelineId: deploymentPipelineId,\n    tasksResults: options?.tasksResults,\n  });\n\n  const reqOpts =\n    ambassadorWixDocumentManagementEditorDeploymentsV1Deployment.reportDeploymentPipelineResult(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          deploymentId: '$[0]',\n          deploymentPipelineId: '$[1]',\n          tasksResults: '$[2].tasksResults',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['deploymentId', 'deploymentPipelineId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface ReportDeploymentPipelineResultOptions {\n  /**\n   * The deployment pipeline task results\n   * @maxSize 20\n   */\n  tasksResults?: TaskResult[];\n}\n\n/**\n * Get Deployment Pipeline Description\n * @param deploymentId - The deployment id\n * @param deploymentPipelinesIds - The deployment pipelines implementers ids as appears in the SPI Config to be called for getting descriptions.\n * @public\n * @documentationMaturity preview\n * @requiredField deploymentId\n * @requiredField deploymentPipelinesIds\n * @permissionId EDITOR.DEPLOYMENT_READ\n * @fqn wix.editor.deployments.v1.DeploymentsService.GetDeploymentPipelineDescription\n */\nexport async function getDeploymentPipelineDescription(\n  deploymentId: string,\n  deploymentPipelinesIds: string[]\n): Promise<\n  NonNullablePaths<\n    GetDeploymentPipelineDescriptionResponse,\n    | `pipelinesDescription`\n    | `pipelinesDescription.${number}.deploymentPipelineId`,\n    4\n  > & {\n    __applicationErrorsType?: GetDeploymentPipelineDescriptionApplicationErrors;\n  }\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    deploymentId: deploymentId,\n    deploymentPipelinesIds: deploymentPipelinesIds,\n  });\n\n  const reqOpts =\n    ambassadorWixDocumentManagementEditorDeploymentsV1Deployment.getDeploymentPipelineDescription(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          deploymentId: '$[0]',\n          deploymentPipelinesIds: '$[1]',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['deploymentId', 'deploymentPipelinesIds']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Updates extended fields of a Deployment without incrementing revision\n * @param _id - ID of the entity to update.\n * @param namespace - Identifier for the app whose extended fields are being updated.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField namespace\n * @requiredField options\n * @requiredField options.namespaceData\n * @permissionId EDITOR.DEPLOYMENT_UPDATE\n * @fqn wix.editor.deployments.v1.DeploymentsService.UpdateExtendedFields\n */\nexport async function updateExtendedFields(\n  _id: string,\n  namespace: string,\n  options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>\n): Promise<\n  NonNullablePaths<\n    UpdateExtendedFieldsResponse,\n    | `deployment.editorRevision.siteRevision`\n    | `deployment.rcPublish.rcLabel`\n    | `deployment.rcPublish.useUniqueLabel`\n    | `deployment._id`\n    | `deployment.deploymentType`\n    | `deployment.pipelines`\n    | `deployment.pipelines.${number}.deploymentPipelineId`\n    | `deployment.pipelines.${number}.pipelineStatus`\n    | `deployment.deploymentPipelinesStatus`,\n    5\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[3] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    id: _id,\n    namespace: namespace,\n    namespaceData: options?.namespaceData,\n  });\n\n  const reqOpts =\n    ambassadorWixDocumentManagementEditorDeploymentsV1Deployment.updateExtendedFields(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          id: '$[0]',\n          namespace: '$[1]',\n          namespaceData: '$[2].namespaceData',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'namespace', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdateExtendedFieldsOptions {\n  /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n  namespaceData: Record<string, any> | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEditorDeploymentsV1DeploymentsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/editor-deployments',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/editor-deployments',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/editor-deployments',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/editor-deployments',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_editor-deployments_deployments';\n\n/** Creates a new Deployment */\nexport function createDeployment(payload: object): RequestOptionsFactory<any> {\n  function __createDeployment({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.document_management.editor_deployments.v1.deployment',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.editor.deployments.v1.DeploymentsService.CreateDeployment',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEditorDeploymentsV1DeploymentsServiceUrl({\n        protoPath: '/v1/deployments',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'deployment.updatedDate' },\n              { path: 'deployment.createdDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createDeployment;\n}\n\n/** Get a Deployment by id */\nexport function getDeployment(payload: object): RequestOptionsFactory<any> {\n  function __getDeployment({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.document_management.editor_deployments.v1.deployment',\n      method: 'GET' as any,\n      methodFqn: 'wix.editor.deployments.v1.DeploymentsService.GetDeployment',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEditorDeploymentsV1DeploymentsServiceUrl({\n        protoPath: '/v1/deployments/{deploymentId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'deployment.updatedDate' },\n              { path: 'deployment.createdDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getDeployment;\n}\n\n/** Publish a Deployment */\nexport function publishDeployment(payload: object): RequestOptionsFactory<any> {\n  function __publishDeployment({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.document_management.editor_deployments.v1.deployment',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.editor.deployments.v1.DeploymentsService.PublishDeployment',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEditorDeploymentsV1DeploymentsServiceUrl({\n        protoPath: '/v1/deployments/{deploymentId}',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'deployment.updatedDate' },\n              { path: 'deployment.createdDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __publishDeployment;\n}\n\n/** Publish an RC Deployment */\nexport function publishRcDeployment(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __publishRcDeployment({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.document_management.editor_deployments.v1.deployment',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.editor.deployments.v1.DeploymentsService.PublishRCDeployment',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEditorDeploymentsV1DeploymentsServiceUrl({\n        protoPath: '/v1/deployments/rc/{deploymentId}',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'deployment.updatedDate' },\n              { path: 'deployment.createdDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __publishRcDeployment;\n}\n\n/** List Deployments */\nexport function listDeployments(payload: object): RequestOptionsFactory<any> {\n  function __listDeployments({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.document_management.editor_deployments.v1.deployment',\n      method: 'GET' as any,\n      methodFqn: 'wix.editor.deployments.v1.DeploymentsService.ListDeployments',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEditorDeploymentsV1DeploymentsServiceUrl({\n        protoPath: '/v1/deployments',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'deployments.updatedDate' },\n              { path: 'deployments.createdDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __listDeployments;\n}\n\n/** Query Deployments */\nexport function queryDeployments(payload: object): RequestOptionsFactory<any> {\n  function __queryDeployments({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.document_management.editor_deployments.v1.deployment',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.editor.deployments.v1.DeploymentsService.QueryDeployments',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEditorDeploymentsV1DeploymentsServiceUrl({\n        protoPath: '/v1/deployments/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'deployments.updatedDate' },\n              { path: 'deployments.createdDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryDeployments;\n}\n\n/** The pipeline provider has to send this event when its execution has ended. */\nexport function reportDeploymentPipelineResult(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __reportDeploymentPipelineResult({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.document_management.editor_deployments.v1.deployment',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.editor.deployments.v1.DeploymentsService.ReportDeploymentPipelineResult',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEditorDeploymentsV1DeploymentsServiceUrl({\n        protoPath: '/v1/deployments/pipeline/{deploymentId}/report-result',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __reportDeploymentPipelineResult;\n}\n\n/** Get Deployment Pipeline Description */\nexport function getDeploymentPipelineDescription(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getDeploymentPipelineDescription({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.document_management.editor_deployments.v1.deployment',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.editor.deployments.v1.DeploymentsService.GetDeploymentPipelineDescription',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEditorDeploymentsV1DeploymentsServiceUrl({\n        protoPath: '/v1/deployments/pipeline/{deploymentId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getDeploymentPipelineDescription;\n}\n\n/** Updates extended fields of a Deployment without incrementing revision */\nexport function updateExtendedFields(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __updateExtendedFields({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.document_management.editor_deployments.v1.deployment',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.editor.deployments.v1.DeploymentsService.UpdateExtendedFields',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEditorDeploymentsV1DeploymentsServiceUrl({\n        protoPath: '/v1/deployments/{id}/update-extended-fields',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'deployment.updatedDate' },\n              { path: 'deployment.createdDate' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateExtendedFields;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  CreateDeploymentApplicationErrors,\n  CreateDeploymentOptions,\n  Deployment,\n  DeploymentsQueryBuilder,\n  GetDeploymentPipelineDescriptionApplicationErrors,\n  GetDeploymentPipelineDescriptionResponse,\n  ListDeploymentsResponse,\n  PublishDeploymentApplicationErrors,\n  PublishDeploymentOptions,\n  PublishDeploymentResponse,\n  PublishRCDeploymentResponse,\n  PublishRcDeploymentApplicationErrors,\n  PublishRcDeploymentOptions,\n  ReportDeploymentPipelineResultApplicationErrors,\n  ReportDeploymentPipelineResultOptions,\n  UpdateExtendedFieldsOptions,\n  UpdateExtendedFieldsResponse,\n  createDeployment as universalCreateDeployment,\n  getDeployment as universalGetDeployment,\n  getDeploymentPipelineDescription as universalGetDeploymentPipelineDescription,\n  listDeployments as universalListDeployments,\n  publishDeployment as universalPublishDeployment,\n  publishRcDeployment as universalPublishRcDeployment,\n  queryDeployments as universalQueryDeployments,\n  reportDeploymentPipelineResult as universalReportDeploymentPipelineResult,\n  updateExtendedFields as universalUpdateExtendedFields,\n} from './document-management-editor-deployments-v1-deployment-deployments.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/editor-deployments' };\n\nexport function createDeployment(\n  httpClient: HttpClient\n): CreateDeploymentSignature {\n  return (options?: CreateDeploymentOptions) =>\n    universalCreateDeployment(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateDeploymentSignature {\n  /**\n   * Creates a new Deployment\n   * @returns The created Deployment\n   */\n  (options?: CreateDeploymentOptions): Promise<\n    NonNullablePaths<\n      Deployment,\n      | `editorRevision.siteRevision`\n      | `rcPublish.rcLabel`\n      | `rcPublish.useUniqueLabel`\n      | `_id`\n      | `deploymentType`\n      | `pipelines`\n      | `pipelines.${number}.deploymentPipelineId`\n      | `pipelines.${number}.pipelineStatus`\n      | `deploymentPipelinesStatus`,\n      4\n    > & {\n      __applicationErrorsType?: CreateDeploymentApplicationErrors;\n    }\n  >;\n}\n\nexport function getDeployment(httpClient: HttpClient): GetDeploymentSignature {\n  return (deploymentId: string) =>\n    universalGetDeployment(\n      deploymentId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetDeploymentSignature {\n  /**\n   * Get a Deployment by id\n   * @param - Id of the Deployment to retrieve\n   * @returns The retrieved Deployment\n   */\n  (deploymentId: string): Promise<\n    NonNullablePaths<\n      Deployment,\n      | `editorRevision.siteRevision`\n      | `rcPublish.rcLabel`\n      | `rcPublish.useUniqueLabel`\n      | `_id`\n      | `deploymentType`\n      | `pipelines`\n      | `pipelines.${number}.deploymentPipelineId`\n      | `pipelines.${number}.pipelineStatus`\n      | `deploymentPipelinesStatus`,\n      4\n    >\n  >;\n}\n\nexport function publishDeployment(\n  httpClient: HttpClient\n): PublishDeploymentSignature {\n  return (deploymentId: string, options?: PublishDeploymentOptions) =>\n    universalPublishDeployment(\n      deploymentId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface PublishDeploymentSignature {\n  /**\n   * Publish a Deployment\n   * @param - Id of the Deployment to publish\n   */\n  (deploymentId: string, options?: PublishDeploymentOptions): Promise<\n    NonNullablePaths<\n      PublishDeploymentResponse,\n      | `deployment.editorRevision.siteRevision`\n      | `deployment.rcPublish.rcLabel`\n      | `deployment.rcPublish.useUniqueLabel`\n      | `deployment._id`\n      | `deployment.deploymentType`\n      | `deployment.pipelines`\n      | `deployment.pipelines.${number}.deploymentPipelineId`\n      | `deployment.pipelines.${number}.pipelineStatus`\n      | `deployment.deploymentPipelinesStatus`,\n      5\n    > & {\n      __applicationErrorsType?: PublishDeploymentApplicationErrors;\n    }\n  >;\n}\n\nexport function publishRcDeployment(\n  httpClient: HttpClient\n): PublishRcDeploymentSignature {\n  return (deploymentId: string, options?: PublishRcDeploymentOptions) =>\n    universalPublishRcDeployment(\n      deploymentId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface PublishRcDeploymentSignature {\n  /**\n   * Publish an RC Deployment\n   * @param - Id of the Deployment to publish\n   */\n  (deploymentId: string, options?: PublishRcDeploymentOptions): Promise<\n    NonNullablePaths<\n      PublishRCDeploymentResponse,\n      | `deployment.editorRevision.siteRevision`\n      | `deployment.rcPublish.rcLabel`\n      | `deployment.rcPublish.useUniqueLabel`\n      | `deployment._id`\n      | `deployment.deploymentType`\n      | `deployment.pipelines`\n      | `deployment.pipelines.${number}.deploymentPipelineId`\n      | `deployment.pipelines.${number}.pipelineStatus`\n      | `deployment.deploymentPipelinesStatus`,\n      5\n    > & {\n      __applicationErrorsType?: PublishRcDeploymentApplicationErrors;\n    }\n  >;\n}\n\nexport function listDeployments(\n  httpClient: HttpClient\n): ListDeploymentsSignature {\n  return () =>\n    universalListDeployments(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ListDeploymentsSignature {\n  /**\n   * List Deployments\n   */\n  (): Promise<\n    NonNullablePaths<\n      ListDeploymentsResponse,\n      | `deployments`\n      | `deployments.${number}.editorRevision.siteRevision`\n      | `deployments.${number}.rcPublish.rcLabel`\n      | `deployments.${number}.rcPublish.useUniqueLabel`\n      | `deployments.${number}._id`\n      | `deployments.${number}.deploymentType`\n      | `deployments.${number}.deploymentPipelinesStatus`,\n      5\n    >\n  >;\n}\n\nexport function queryDeployments(\n  httpClient: HttpClient\n): QueryDeploymentsSignature {\n  return () =>\n    universalQueryDeployments(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QueryDeploymentsSignature {\n  /**\n   * Query Deployments\n   */\n  (): DeploymentsQueryBuilder;\n}\n\nexport function reportDeploymentPipelineResult(\n  httpClient: HttpClient\n): ReportDeploymentPipelineResultSignature {\n  return (\n    deploymentId: string,\n    deploymentPipelineId: string,\n    options?: ReportDeploymentPipelineResultOptions\n  ) =>\n    universalReportDeploymentPipelineResult(\n      deploymentId,\n      deploymentPipelineId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ReportDeploymentPipelineResultSignature {\n  /**\n   * The pipeline provider has to send this event when its execution has ended.\n   * @param - The deployment creation process id, should match the id that was passed in the invoke() call by the SPI Host\n   * @param - The deployment pipeline implementer id as appears in the SPI Config\n   */\n  (\n    deploymentId: string,\n    deploymentPipelineId: string,\n    options?: ReportDeploymentPipelineResultOptions\n  ): Promise<\n    void & {\n      __applicationErrorsType?: ReportDeploymentPipelineResultApplicationErrors;\n    }\n  >;\n}\n\nexport function getDeploymentPipelineDescription(\n  httpClient: HttpClient\n): GetDeploymentPipelineDescriptionSignature {\n  return (deploymentId: string, deploymentPipelinesIds: string[]) =>\n    universalGetDeploymentPipelineDescription(\n      deploymentId,\n      deploymentPipelinesIds,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetDeploymentPipelineDescriptionSignature {\n  /**\n   * Get Deployment Pipeline Description\n   * @param - The deployment id\n   * @param - The deployment pipelines implementers ids as appears in the SPI Config to be called for getting descriptions.\n   */\n  (deploymentId: string, deploymentPipelinesIds: string[]): Promise<\n    NonNullablePaths<\n      GetDeploymentPipelineDescriptionResponse,\n      | `pipelinesDescription`\n      | `pipelinesDescription.${number}.deploymentPipelineId`,\n      4\n    > & {\n      __applicationErrorsType?: GetDeploymentPipelineDescriptionApplicationErrors;\n    }\n  >;\n}\n\nexport function updateExtendedFields(\n  httpClient: HttpClient\n): UpdateExtendedFieldsSignature {\n  return (\n    _id: string,\n    namespace: string,\n    options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>\n  ) =>\n    universalUpdateExtendedFields(\n      _id,\n      namespace,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateExtendedFieldsSignature {\n  /**\n   * Updates extended fields of a Deployment without incrementing revision\n   * @param - ID of the entity to update.\n   * @param - Identifier for the app whose extended fields are being updated.\n   */\n  (\n    _id: string,\n    namespace: string,\n    options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>\n  ): Promise<\n    NonNullablePaths<\n      UpdateExtendedFieldsResponse,\n      | `deployment.editorRevision.siteRevision`\n      | `deployment.rcPublish.rcLabel`\n      | `deployment.rcPublish.useUniqueLabel`\n      | `deployment._id`\n      | `deployment.deploymentType`\n      | `deployment.pipelines`\n      | `deployment.pipelines.${number}.deploymentPipelineId`\n      | `deployment.pipelines.${number}.pipelineStatus`\n      | `deployment.deploymentPipelinesStatus`,\n      5\n    >\n  >;\n}\n\nexport {\n  ActionEvent,\n  CreateDeploymentOptions,\n  CreateDeploymentOptionsBasedOnOneOf,\n  CreateDeploymentOptionsPublishMethodOneOf,\n  CreateDeploymentRequest,\n  CreateDeploymentRequestBasedOnOneOf,\n  CreateDeploymentRequestPublishMethodOneOf,\n  CreateDeploymentResponse,\n  CreationPublishTypeNone,\n  CreationPublishTypeRC,\n  CreationPublishTypeSite,\n  CursorPaging,\n  CursorPagingMetadata,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Cursors,\n  Deployment,\n  DeploymentAttribute,\n  DeploymentAttributeAttributeOneOf,\n  DeploymentCreationPublishTypeOneOf,\n  DeploymentDescriptionOneOf,\n  DeploymentPipelineUpdatedMessage,\n  DeploymentPipelinesStatus,\n  DeploymentType,\n  DeploymentsQueryBuilder,\n  DeploymentsQueryResult,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EditorRevision,\n  EditorSession,\n  Empty,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  ExtendedFields,\n  GetDeploymentPipelineDescriptionRequest,\n  GetDeploymentPipelineDescriptionResponse,\n  GetDeploymentRequest,\n  GetDeploymentResponse,\n  GridAppIdAttribute,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  LatestFromBranch,\n  ListDeploymentsRequest,\n  ListDeploymentsResponse,\n  MessageEnvelope,\n  PipelineDescription,\n  PipelineResult,\n  PipelineStatus,\n  PublishDeploymentOptions,\n  PublishDeploymentRequest,\n  PublishDeploymentResponse,\n  PublishRCDeploymentRequest,\n  PublishRCDeploymentResponse,\n  PublishRcDeploymentOptions,\n  PublishSiteRCMethod,\n  PublishType,\n  QueryDeploymentsRequest,\n  QueryDeploymentsResponse,\n  RCLabel,\n  ReportDeploymentPipelineResultOptions,\n  ReportDeploymentPipelineResultRequest,\n  ReportDeploymentPipelineResultResponse,\n  RestoreInfo,\n  SessionInfo,\n  SortOrder,\n  Sorting,\n  TaskDescription,\n  TaskResult,\n  TaskStatus,\n  UpdateExtendedFieldsOptions,\n  UpdateExtendedFieldsRequest,\n  UpdateExtendedFieldsResponse,\n  WebhookIdentityType,\n} from './document-management-editor-deployments-v1-deployment-deployments.universal.js';\n","import {\n  createDeployment as publicCreateDeployment,\n  getDeployment as publicGetDeployment,\n  publishDeployment as publicPublishDeployment,\n  publishRcDeployment as publicPublishRcDeployment,\n  listDeployments as publicListDeployments,\n  queryDeployments as publicQueryDeployments,\n  reportDeploymentPipelineResult as publicReportDeploymentPipelineResult,\n  getDeploymentPipelineDescription as publicGetDeploymentPipelineDescription,\n  updateExtendedFields as publicUpdateExtendedFields,\n} from './document-management-editor-deployments-v1-deployment-deployments.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const createDeployment: MaybeContext<\n  BuildRESTFunction<typeof publicCreateDeployment> &\n    typeof publicCreateDeployment\n> = /*#__PURE__*/ createRESTModule(publicCreateDeployment);\nexport const getDeployment: MaybeContext<\n  BuildRESTFunction<typeof publicGetDeployment> & typeof publicGetDeployment\n> = /*#__PURE__*/ createRESTModule(publicGetDeployment);\nexport const publishDeployment: MaybeContext<\n  BuildRESTFunction<typeof publicPublishDeployment> &\n    typeof publicPublishDeployment\n> = /*#__PURE__*/ createRESTModule(publicPublishDeployment);\nexport const publishRcDeployment: MaybeContext<\n  BuildRESTFunction<typeof publicPublishRcDeployment> &\n    typeof publicPublishRcDeployment\n> = /*#__PURE__*/ createRESTModule(publicPublishRcDeployment);\nexport const listDeployments: MaybeContext<\n  BuildRESTFunction<typeof publicListDeployments> & typeof publicListDeployments\n> = /*#__PURE__*/ createRESTModule(publicListDeployments);\nexport const queryDeployments: MaybeContext<\n  BuildRESTFunction<typeof publicQueryDeployments> &\n    typeof publicQueryDeployments\n> = /*#__PURE__*/ createRESTModule(publicQueryDeployments);\nexport const reportDeploymentPipelineResult: MaybeContext<\n  BuildRESTFunction<typeof publicReportDeploymentPipelineResult> &\n    typeof publicReportDeploymentPipelineResult\n> = /*#__PURE__*/ createRESTModule(publicReportDeploymentPipelineResult);\nexport const getDeploymentPipelineDescription: MaybeContext<\n  BuildRESTFunction<typeof publicGetDeploymentPipelineDescription> &\n    typeof publicGetDeploymentPipelineDescription\n> = /*#__PURE__*/ createRESTModule(publicGetDeploymentPipelineDescription);\nexport const updateExtendedFields: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateExtendedFields> &\n    typeof publicUpdateExtendedFields\n> = /*#__PURE__*/ createRESTModule(publicUpdateExtendedFields);\n\nexport {\n  DeploymentType,\n  PipelineStatus,\n  TaskStatus,\n  DeploymentPipelinesStatus,\n  RCLabel,\n  PublishType,\n  SortOrder,\n  WebhookIdentityType,\n} from './document-management-editor-deployments-v1-deployment-deployments.universal.js';\nexport {\n  Deployment,\n  DeploymentDescriptionOneOf,\n  DeploymentCreationPublishTypeOneOf,\n  EditorRevision,\n  PipelineResult,\n  TaskResult,\n  EditorSession,\n  ExtendedFields,\n  CreationPublishTypeNone,\n  CreationPublishTypeSite,\n  CreationPublishTypeRC,\n  DeploymentPipelineUpdatedMessage,\n  CreateDeploymentRequest,\n  CreateDeploymentRequestBasedOnOneOf,\n  CreateDeploymentRequestPublishMethodOneOf,\n  DeploymentAttribute,\n  DeploymentAttributeAttributeOneOf,\n  GridAppIdAttribute,\n  SessionInfo,\n  LatestFromBranch,\n  PublishSiteRCMethod,\n  CreateDeploymentResponse,\n  GetDeploymentRequest,\n  GetDeploymentResponse,\n  PublishDeploymentRequest,\n  PublishDeploymentResponse,\n  PublishRCDeploymentRequest,\n  PublishRCDeploymentResponse,\n  ListDeploymentsRequest,\n  ListDeploymentsResponse,\n  QueryDeploymentsRequest,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Sorting,\n  CursorPaging,\n  QueryDeploymentsResponse,\n  CursorPagingMetadata,\n  Cursors,\n  ReportDeploymentPipelineResultRequest,\n  ReportDeploymentPipelineResultResponse,\n  GetDeploymentPipelineDescriptionRequest,\n  GetDeploymentPipelineDescriptionResponse,\n  PipelineDescription,\n  TaskDescription,\n  Empty,\n  UpdateExtendedFieldsRequest,\n  UpdateExtendedFieldsResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  CreateDeploymentOptions,\n  CreateDeploymentOptionsBasedOnOneOf,\n  CreateDeploymentOptionsPublishMethodOneOf,\n  PublishDeploymentOptions,\n  PublishRcDeploymentOptions,\n  DeploymentsQueryResult,\n  DeploymentsQueryBuilder,\n  ReportDeploymentPipelineResultOptions,\n  UpdateExtendedFieldsOptions,\n} from './document-management-editor-deployments-v1-deployment-deployments.universal.js';\nexport {\n  DeploymentTypeWithLiterals,\n  PipelineStatusWithLiterals,\n  TaskStatusWithLiterals,\n  DeploymentPipelinesStatusWithLiterals,\n  RCLabelWithLiterals,\n  PublishTypeWithLiterals,\n  SortOrderWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n  CreateDeploymentApplicationErrors,\n  PublishDeploymentApplicationErrors,\n  PublishRcDeploymentApplicationErrors,\n  ReportDeploymentPipelineResultApplicationErrors,\n  GetDeploymentPipelineDescriptionApplicationErrors,\n} from './document-management-editor-deployments-v1-deployment-deployments.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,mDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAGd,SAAS,iBAAiB,SAA6C;AAC5E,WAAS,mBAAmB,EAAE,KAAK,GAAQ;AACzC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,KAAK,mDAAmD;AAAA,QACtD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,MACN,mBAAmB,CAACA,aAClB,eAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,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A,EACf;AACJ;AASO,SAASC,gCACd,YACyC;AACzC,SAAO,CACL,cACA,sBACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAmBO,SAASC,kCACd,YAC2C;AAC3C,SAAO,CAAC,cAAsB,2BAC5BA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAoBO,SAASC,sBACd,YAC+B;AAC/B,SAAO,CACL,KACA,WACA,YAEAA;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC7RA,SAAS,wBAAwB;AAG1B,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAClD,IAAMC,iBAEK,iCAAiBA,cAAmB;AAC/C,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,uBAGK,iCAAiBA,oBAAyB;AACrD,IAAMC,mBAEK,iCAAiBA,gBAAqB;AACjD,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAClD,IAAMC,kCAGK,iCAAiBA,+BAAoC;AAChE,IAAMC,oCAGK,iCAAiBA,iCAAsC;AAClE,IAAMC,wBAGK,iCAAiBA,qBAA0B;","names":["payload","transformPaths","DeploymentType","PipelineStatus","TaskStatus","DeploymentPipelinesStatus","RCLabel","PublishType","SortOrder","WebhookIdentityType","createDeployment","getDeployment","publishDeployment","publishRcDeployment","listDeployments","queryDeployments","reportDeploymentPipelineResult","getDeploymentPipelineDescription","updateExtendedFields","createDeployment","getDeployment","publishDeployment","publishRcDeployment","listDeployments","queryDeployments","reportDeploymentPipelineResult","getDeploymentPipelineDescription","updateExtendedFields","createDeployment","getDeployment","publishDeployment","publishRcDeployment","listDeployments","queryDeployments","reportDeploymentPipelineResult","getDeploymentPipelineDescription","updateExtendedFields"]}