{"version":3,"sources":["jsdelivr-header.js","/npm/@wix/auto_sdk_workflows_workflows@1.0.12/index.ts","/npm/@wix/auto_sdk_workflows_workflows@1.0.12/src/workflows-v1-workflow-workflows.universal.ts","/npm/@wix/auto_sdk_workflows_workflows@1.0.12/src/workflows-v1-workflow-workflows.http.ts","/npm/@wix/auto_sdk_workflows_workflows@1.0.12/src/workflows-v1-workflow-workflows.public.ts","/npm/@wix/auto_sdk_workflows_workflows@1.0.12/src/workflows-v1-workflow-workflows.context.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,8iBCNA,cAAA,GAAA,SAAA,cAAA,CAAA,eAAA,IAAA,eAAA,UAAA,IAAA,UAAA,eAAA,IAAA,gBAAA,eAAA,IAAA,gBAAA,YAAA,IAAA,aAAA,cAAA,IAAA,eAAA,eAAA,IAAA,kBAAA,OAAA,QAAA,aAAA,eCAA,IAAA,uBAAoD,QAAA,oCACpD,8BAGO,QAAA,2CCJP,oBAAkC,QAAA,iCAClC,iBAAqD,QAAA,8CACrD,kBAAqD,QAAA,8CACrD,uBAA+B,QAAA,oDAC/B,qBAA2B,QAAA,iCAI3B,SAAS,mDACP,GA6BA,SAAO,qBAAA,YAAW,OAAO,OAAO,EAAM,CAAE,iBA3Bf,CACvB,oBAAqB,CACnB,CACE,QAAS,4BACT,SAAU,KAGd,wBAAyB,CACvB,CACE,QAAS,uBACT,SAAU,KAGd,uBAAwB,CACtB,CACE,QAAS,4BACT,SAAU,KAGd,kBAAmB,CACjB,CACE,QAAS,aACT,SAAU,QAMlB,CAEA,IAAM,aAAe,oCAcd,SAAS,cAAc,GA2C5B,OA1CA,UAAyB,KAAE,IAuCzB,MAtCiB,CACf,WAAY,4BACZ,OAAQ,MACR,UAAW,8DACX,YAAa,aACb,iBAAkB,CAChB,wBAAwB,GAE1B,IAAK,mDAAmD,CACtD,UAAW,gBACX,KAAM,EACN,SAEF,QAAA,EAAQ,oBAAA,mBAAkB,GAC1B,kBAAoB,MAClB,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AE,EAAA,YAAY,GAAgB,UAAU,GAOxC,EAA2C,gBAF3C,EAAU,8BAAA,uCAAsC,CAAE,GAAI,KAI5D,GAAa,eACb,IACE,MAAM,QAAe,EAAW,QAAQ,GACxC,GAAa,YAAY,EAC3B,OAAS,GACP,MAAM,GAAA,EAAmB,uBAAA,gBACvB,EACA,CACE,uBAAwB,CAAC,EACzB,yBAA0B,CAAE,GAAI,QAChC,yBAAyB,GAE3B,CAAC,QAIH,MAFA,GAAa,UAAU,GAEjB,CACR,CACF,CE1oBO,SAAS,eAAc,GAC5B,OAAQ,GACN,eACE,EAEA,CAAE,cAER,CA4BO,SAAS,aAAY,GAC1B,MAAO,CAAC,EAAa,IACnB,aACE,EACA,EAEA,CAAE,cAER,CAmCO,SAAS,gBACd,GAEA,MAAO,CAAC,EAAa,IACnB,gBACE,EACA,EAEA,CAAE,cAER,CAqBO,SAAS,gBACd,GAEA,OAAQ,GACN,gBACE,EAEA,CAAE,cAER,CAgBO,SAAS,gBACd,GAEA,OAAQ,GACN,gBACE,EAEA,CAAE,cAER,CCxJA,IAAA,qBAAiC,QAAA,iCAGpB,gBAEK,EAAA,qBAAA,kBAAiB,gBACtB,cAEK,EAAA,qBAAA,kBAAiB,cACtB,iBAEK,EAAA,qBAAA,kBAAiB,iBACtB,iBAEK,EAAA,qBAAA,kBAAiB,iBACtB,iBAEK,EAAA,qBAAA,kBAAiB","file":"/npm/@wix/auto_sdk_workflows_workflows@1.0.12/build/cjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@wix/auto_sdk_workflows_workflows@1.0.12/build/cjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","export * from './src/workflows-v1-workflow-workflows.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixWorkflowsV1Workflow from './workflows-v1-workflow-workflows.http.js';\n\nexport interface Workflow {\n  /** Workflow information and metadata. */\n  info?: WorkflowInfo;\n  /**\n   * Final phase of the workflow.\n   * Cards in `winPhase` are treated as if they are not part of the workflow.\n   *\n   * Normally, a contact can be attached to only 1 card in the workflow.\n   * Moving a contact's card to `winPhase`\n   * frees up the contact to be attached to another card in the workflow.\n   */\n  winPhase?: Phase;\n  /** Phases that make up the workflow. */\n  phasesList?: PhasesList;\n}\n\nexport interface WorkflowInfo {\n  /**\n   * Workflow ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /** Display name for the workflow. */\n  name?: string | null;\n  /**\n   * Workflow description,\n   * shown below the workflow's display name in the dashboard.\n   */\n  description?: string | null;\n  /**\n   * @internal\n   * @internal\n   * @readonly\n   * @deprecated\n   */\n  createdAt?: Date | null;\n  /**\n   * Indicates whether the workflow can be deleted.\n   * @readonly\n   * @deprecated\n   */\n  isDeletable?: boolean | null;\n  /**\n   * Date and time the workflow was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n}\n\nexport interface Phase {\n  /** Phase information. */\n  info?: PhaseInfo;\n  /** Cards contained in the phase. */\n  cardsList?: CardsList;\n}\n\nexport interface PhaseInfo {\n  /**\n   * Phase ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /** Display name shown at the top of the phase. */\n  name?: string | null;\n}\n\n/** a list of cards (a page) along with the total number */\nexport interface CardsList {\n  /** Total number of cards in the phase. */\n  total?: number;\n  /**\n   * List of cards in the phase.\n   * Sorted according to the card display order, from top to bottom.\n   */\n  cards?: Card[];\n}\n\nexport interface Card {\n  /** Card details. */\n  info?: CardInfo;\n}\n\n/** entity representing a card-info */\nexport interface CardInfo {\n  /**\n   * Card ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n  /** Display name shown at the top of the card. */\n  name?: string | null;\n  /** Card description. */\n  description?: string | null;\n  /** Details about the contact attached to the card. */\n  primaryAttachment?: Attachment;\n  /** Due date. */\n  dueDate?: Date | null;\n  /** Name of the app or service that created the contact. */\n  source?: string | null;\n  /**\n   * @internal\n   * @internal\n   * @readonly\n   * @deprecated\n   */\n  createdAt?: Date | null;\n  /**\n   * @internal\n   * @internal\n   * @readonly\n   * @deprecated\n   */\n  updatedAt?: Date | null;\n  /**\n   * ID of the phase that currently holds the card.\n   * @format GUID\n   * @readonly\n   */\n  phaseId?: string | null;\n  /**\n   * Date and time the card was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the card was updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n}\n\nexport interface Attachment {\n  /**\n   * Attachment ID. For internal use.\n   * @format GUID\n   * @readonly\n   */\n  attachmentId?: string;\n  /**\n   * @internal\n   * @internal\n   * @deprecated\n   */\n  value?: string;\n  /**\n   * @internal\n   * @internal\n   * @deprecated\n   */\n  attachmentType?: AttachmentTypeWithLiterals;\n  /**\n   * ID of the contact attached to the card.\n   * @format GUID\n   */\n  contactId?: string;\n}\n\n/** describes the supported types of attachments (currently only supports Contact which is the default type) */\nexport enum AttachmentType {\n  ContactType = 'ContactType',\n}\n\n/** @enumType */\nexport type AttachmentTypeWithLiterals = AttachmentType | 'ContactType';\n\n/** a list of phases (a page) along with the total number */\nexport interface PhasesList {\n  /** Total number of phases in the workflow, excluding `winPhase`. */\n  total?: number;\n  /**\n   * List of phases in the workflow.\n   * Sorted according to the phase display order, from left to right.\n   */\n  phases?: Phase[];\n}\n\nexport interface ListWorkflowsRequest {\n  /**\n   * Number of workflows to return.\n   * If omitted, all results are returned.\n   */\n  limit?: number | null;\n  /**\n   * Number of items to skip in the current sort order.\n   *\n   * Defaults to `0`.\n   */\n  offset?: number | null;\n  /**\n   * Supported fields:\n   * `id`, `name`, `description`, `createdDate`\n   *\n   * List of fields to sort by.\n   * Formatted as `field:direction`,\n   * where field is the field name\n   * and direction is `asc` (ascending) or `desc` (descending).\n   *\n   * Sorting is applied lexicographically, so `\"abc\"` comes after `\"XYZ\"`.\n   */\n  sort?: string[];\n}\n\nexport interface ListWorkflowsResponse {\n  /** Retrieved list of workflows. */\n  workflows?: WorkflowInfo[];\n  /** Metadata for the page of results. */\n  pagination?: PaginationResponse;\n}\n\nexport interface PaginationResponse {\n  /** Number of items that were skipped in the current sort order. */\n  offset?: number;\n  /** Total number of items that matched the filter. */\n  total?: number;\n  /** Number of returned items. */\n  count?: number;\n}\n\nexport interface QueryWorkflowsRequest {\n  /** Query options. */\n  query?: Query;\n}\n\nexport interface Query {\n  /**\n   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n   */\n  filter?: any;\n  /**\n   * Sort object in the following format:\n   * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n   */\n  sort?: Sorting[];\n  /** Paging options to limit and skip the number of items. */\n  paging?: Paging;\n  /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fields?: string[];\n  /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fieldsets?: string[];\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 Paging {\n  /** Number of items to load. */\n  limit?: number | null;\n  /** Number of items to skip in the current sort order. */\n  offset?: number | null;\n}\n\nexport interface QueryWorkflowsResponse {\n  /** List of workflows that matched the query. */\n  workflows?: Workflow[];\n  /** Metadata for the paginated results. */\n  pagination?: PaginationResponse;\n}\n\nexport interface GetWorkflowRequest {\n  /**\n   * ID of the workflow to retrieve.\n   * @format GUID\n   */\n  _id: string;\n  /**\n   * Maximum number of cards to return per phase.\n   * To retrieve additional pages of cards, use\n   * [List Cards](../cards/listCards)\n   * (in the Cards API).\n   * @max 100\n   */\n  cardsPerPhase?: number | null;\n}\n\nexport interface GetWorkflowResponse {\n  /** Requested workflow. */\n  workflow?: Workflow;\n}\n\nexport interface UpdateWorkflowRequest {\n  /**\n   * ID of the workflow to update.\n   * @format GUID\n   */\n  _id: string;\n  /** Workflow info. */\n  workflow?: WorkflowInfo;\n}\n\nexport interface UpdateWorkflowResponse {}\n\nexport interface CreateWorkflowRequest {\n  /** Workflow details. */\n  workflow?: WorkflowInfo;\n}\n\nexport interface CreateWorkflowResponse {\n  /**\n   * ID of the new workflow.\n   * @format GUID\n   */\n  _id?: string | null;\n}\n\nexport interface DeleteWorkflowRequest {\n  /**\n   * ID of the workflow to delete.\n   * @format GUID\n   */\n  _id: string;\n}\n\nexport interface DeleteWorkflowResponse {}\n\nexport interface SetupWorkflowRequest {}\n\nexport interface SetupWorkflowResponse {}\n\n/**\n * Retrieves a list of the site's workflows info.\n *\n *\n * The `listWorkflows()` function returns a Promise that resolves to a list containing information about the site's workflows.\n *\n *\n * Use the `options` parameter to specify which workflows to retrieve and in which order to retrieve them. Workflows can be sorted based on their `\"name\"`.\n *\n *\n * If no `limit` parameter is passed, the first 100 workflows are returned. Sort order defaults to by `\"name\"` ascending.\n * @public\n * @documentationMaturity preview\n * @param options - Options to use when retrieving a list of workflows.\n * @permissionId workflows.view\n * @fqn com.wixpress.workflow.api.v1.WorkflowsService.ListWorkflows\n */\nexport async function listWorkflows(\n  options?: ListWorkflowsOptions\n): Promise<\n  NonNullablePaths<\n    ListWorkflowsResponse,\n    `workflows` | `pagination.offset` | `pagination.total` | `pagination.count`,\n    3\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    limit: options?.limit,\n    offset: options?.offset,\n    sort: options?.sort,\n  });\n\n  const reqOpts = ambassadorWixWorkflowsV1Workflow.listWorkflows(payload);\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          limit: '$[0].limit',\n          offset: '$[0].offset',\n          sort: '$[0].sort',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface ListWorkflowsOptions {\n  /**\n   * Number of workflows to return.\n   * If omitted, all results are returned.\n   */\n  limit?: number | null;\n  /**\n   * Number of items to skip in the current sort order.\n   *\n   * Defaults to `0`.\n   */\n  offset?: number | null;\n  /**\n   * Supported fields:\n   * `id`, `name`, `description`, `createdDate`\n   *\n   * List of fields to sort by.\n   * Formatted as `field:direction`,\n   * where field is the field name\n   * and direction is `asc` (ascending) or `desc` (descending).\n   *\n   * Sorting is applied lexicographically, so `\"abc\"` comes after `\"XYZ\"`.\n   */\n  sort?: string[];\n}\n\n/**\n * Retrieves a workflow by ID.\n *\n *\n * The `getWorkflow()` function returns a Promise that resolves to the workflow info with the specified ID.\n *\n *\n * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n * @param _id - ID of the workflow to retrieve.\n * @param cardsPerPhase - Maximum number of cards to return per phase.\n * To retrieve additional pages of cards, use\n * [List Cards](../cards/listCards)\n * (in the Cards API).\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField cardsPerPhase\n * @param options - Options to use when retrieving a workflow.\n * @permissionId workflows.view\n * @returns Requested workflow.\n * @fqn com.wixpress.workflow.api.v1.WorkflowsService.GetWorkflow\n */\nexport async function getWorkflow(\n  _id: string,\n  cardsPerPhase: number\n): Promise<\n  NonNullablePaths<\n    Workflow,\n    | `winPhase.cardsList.total`\n    | `winPhase.cardsList.cards`\n    | `winPhase.cardsList.cards.${number}.info.primaryAttachment.attachmentId`\n    | `winPhase.cardsList.cards.${number}.info.primaryAttachment.value`\n    | `winPhase.cardsList.cards.${number}.info.primaryAttachment.attachmentType`\n    | `winPhase.cardsList.cards.${number}.info.primaryAttachment.contactId`\n    | `phasesList.total`\n    | `phasesList.phases`,\n    8\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    id: _id,\n    cardsPerPhase: cardsPerPhase,\n  });\n\n  const reqOpts = ambassadorWixWorkflowsV1Workflow.getWorkflow(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.workflow!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { id: '$[0]', cardsPerPhase: '$[1]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'cardsPerPhase']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Updates an existing workflow.\n *\n *\n * The `updateWorkflow()` function returns a Promise that resolves when the workflow has been updated with the specified values.\n *\n *\n * Only the properties passed in the `workflow` object will be updated. All other properties will remain the same.\n *\n *\n * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).\n * @param _id - ID of the workflow to update.\n * @param workflow - Workflow info.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField workflow\n * @param options - Options to use when updating a workflow.\n * @permissionId workflows.modify\n * @fqn com.wixpress.workflow.api.v1.WorkflowsService.UpdateWorkflow\n */\nexport async function updateWorkflow(\n  _id: string,\n  workflow: WorkflowInfo\n): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    id: _id,\n    workflow: workflow,\n  });\n\n  const reqOpts = ambassadorWixWorkflowsV1Workflow.updateWorkflow(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { id: '$[0]', workflow: '$[1]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'workflow']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Creates a new workflow.\n *\n *\n * The `createWorkflow()` function returns a Promise that resolves to the created workflow ID.\n * @param workflow - Workflow details.\n * @public\n * @documentationMaturity preview\n * @requiredField workflow\n * @requiredField workflow.name\n * @param options - Options to use when creating a workflow.\n * @permissionId workflows.modify\n * @fqn com.wixpress.workflow.api.v1.WorkflowsService.CreateWorkflow\n */\nexport async function createWorkflow(\n  workflow: NonNullablePaths<WorkflowInfo, `name`, 2>\n): Promise<CreateWorkflowResponse> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ workflow: workflow });\n\n  const reqOpts = ambassadorWixWorkflowsV1Workflow.createWorkflow(payload);\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: { workflow: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['workflow']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Deletes a workflow.\n *\n *\n * The `deleteWorkflow()` function returns a Promise when the specified workflow has been deleted.\n *\n *\n * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n * @param _id - ID of the workflow to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId workflows.modify\n * @fqn com.wixpress.workflow.api.v1.WorkflowsService.DeleteWorkflow\n */\nexport async function deleteWorkflow(_id: string): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n  const reqOpts = ambassadorWixWorkflowsV1Workflow.deleteWorkflow(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { id: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveComWixpressWorkflowApiV1WorkflowsServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/workflow-server-web',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/workflow-server-web',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/workflow-server-web',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/workflows',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_workflows_workflows';\n\n/**\n * Retrieves a list of the site's workflows info.\n *\n *\n * The `listWorkflows()` function returns a Promise that resolves to a list containing information about the site's workflows.\n *\n *\n * Use the `options` parameter to specify which workflows to retrieve and in which order to retrieve them. Workflows can be sorted based on their `\"name\"`.\n *\n *\n * If no `limit` parameter is passed, the first 100 workflows are returned. Sort order defaults to by `\"name\"` ascending.\n */\nexport function listWorkflows(payload: object): RequestOptionsFactory<any> {\n  function __listWorkflows({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.workflow',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.WorkflowsService.ListWorkflows',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1WorkflowsServiceUrl({\n        protoPath: '/v1/workflows',\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: 'workflows.createdAt' },\n              { path: 'workflows.lastAccess' },\n              { path: 'workflows.createdDate' },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'GET' as any,\n          url: resolveComWixpressWorkflowApiV1WorkflowsServiceUrl({\n            protoPath: '/v1/workflows',\n            data: payload,\n            host,\n          }),\n          params: toURLSearchParams(payload),\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __listWorkflows;\n}\n\n/**\n * Retrieves a workflow by ID.\n *\n *\n * The `getWorkflow()` function returns a Promise that resolves to the workflow info with the specified ID.\n *\n *\n * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n */\nexport function getWorkflow(payload: object): RequestOptionsFactory<any> {\n  function __getWorkflow({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.workflow',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.WorkflowsService.GetWorkflow',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1WorkflowsServiceUrl({\n        protoPath: '/v1/workflows/{id}',\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: 'workflow.info.createdAt' },\n              { path: 'workflow.info.lastAccess' },\n              { path: 'workflow.info.createdDate' },\n              { path: 'workflow.winPhase.cardsList.cards.info.dueDate' },\n              { path: 'workflow.winPhase.cardsList.cards.info.createdAt' },\n              { path: 'workflow.winPhase.cardsList.cards.info.updatedAt' },\n              { path: 'workflow.winPhase.cardsList.cards.info.createdDate' },\n              { path: 'workflow.winPhase.cardsList.cards.info.updatedDate' },\n              {\n                path: 'workflow.phasesList.phases.cardsList.cards.info.dueDate',\n              },\n              {\n                path: 'workflow.phasesList.phases.cardsList.cards.info.createdAt',\n              },\n              {\n                path: 'workflow.phasesList.phases.cardsList.cards.info.updatedAt',\n              },\n              {\n                path: 'workflow.phasesList.phases.cardsList.cards.info.createdDate',\n              },\n              {\n                path: 'workflow.phasesList.phases.cardsList.cards.info.updatedDate',\n              },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'GET' as any,\n          url: resolveComWixpressWorkflowApiV1WorkflowsServiceUrl({\n            protoPath: '/v1/workflows/{id}',\n            data: payload,\n            host,\n          }),\n          params: toURLSearchParams(payload),\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __getWorkflow;\n}\n\n/**\n * Updates an existing workflow.\n *\n *\n * The `updateWorkflow()` function returns a Promise that resolves when the workflow has been updated with the specified values.\n *\n *\n * Only the properties passed in the `workflow` object will be updated. All other properties will remain the same.\n *\n *\n * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).\n */\nexport function updateWorkflow(payload: object): RequestOptionsFactory<any> {\n  function __updateWorkflow({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'workflow.createdAt' },\n          { path: 'workflow.lastAccess' },\n          { path: 'workflow.createdDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.workflow',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.WorkflowsService.UpdateWorkflow',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1WorkflowsServiceUrl({\n        protoPath: '/v1/workflows/{id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n    };\n\n    return metadata;\n  }\n\n  return __updateWorkflow;\n}\n\n/**\n * Creates a new workflow.\n *\n *\n * The `createWorkflow()` function returns a Promise that resolves to the created workflow ID.\n */\nexport function createWorkflow(payload: object): RequestOptionsFactory<any> {\n  function __createWorkflow({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'workflow.createdAt' },\n          { path: 'workflow.lastAccess' },\n          { path: 'workflow.createdDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.workflow',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.WorkflowsService.CreateWorkflow',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1WorkflowsServiceUrl({\n        protoPath: '/v1/workflows',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n    };\n\n    return metadata;\n  }\n\n  return __createWorkflow;\n}\n\n/**\n * Deletes a workflow.\n *\n *\n * The `deleteWorkflow()` function returns a Promise when the specified workflow has been deleted.\n *\n *\n * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n */\nexport function deleteWorkflow(payload: object): RequestOptionsFactory<any> {\n  function __deleteWorkflow({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.workflow',\n      method: 'DELETE' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.WorkflowsService.DeleteWorkflow',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1WorkflowsServiceUrl({\n        protoPath: '/v1/workflows/{id}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteWorkflow;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  CreateWorkflowResponse,\n  ListWorkflowsOptions,\n  ListWorkflowsResponse,\n  Workflow,\n  WorkflowInfo,\n  createWorkflow as universalCreateWorkflow,\n  deleteWorkflow as universalDeleteWorkflow,\n  getWorkflow as universalGetWorkflow,\n  listWorkflows as universalListWorkflows,\n  updateWorkflow as universalUpdateWorkflow,\n} from './workflows-v1-workflow-workflows.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/workflows' };\n\nexport function listWorkflows(httpClient: HttpClient): ListWorkflowsSignature {\n  return (options?: ListWorkflowsOptions) =>\n    universalListWorkflows(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ListWorkflowsSignature {\n  /**\n   * Retrieves a list of the site's workflows info.\n   *\n   *\n   * The `listWorkflows()` function returns a Promise that resolves to a list containing information about the site's workflows.\n   *\n   *\n   * Use the `options` parameter to specify which workflows to retrieve and in which order to retrieve them. Workflows can be sorted based on their `\"name\"`.\n   *\n   *\n   * If no `limit` parameter is passed, the first 100 workflows are returned. Sort order defaults to by `\"name\"` ascending.\n   * @param - Options to use when retrieving a list of workflows.\n   */\n  (options?: ListWorkflowsOptions): Promise<\n    NonNullablePaths<\n      ListWorkflowsResponse,\n      | `workflows`\n      | `pagination.offset`\n      | `pagination.total`\n      | `pagination.count`,\n      3\n    >\n  >;\n}\n\nexport function getWorkflow(httpClient: HttpClient): GetWorkflowSignature {\n  return (_id: string, cardsPerPhase: number) =>\n    universalGetWorkflow(\n      _id,\n      cardsPerPhase,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetWorkflowSignature {\n  /**\n   * Retrieves a workflow by ID.\n   *\n   *\n   * The `getWorkflow()` function returns a Promise that resolves to the workflow info with the specified ID.\n   *\n   *\n   * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n   * @param - ID of the workflow to retrieve.\n   * @param - Maximum number of cards to return per phase.\n   * To retrieve additional pages of cards, use\n   * [List Cards](../cards/listCards)\n   * (in the Cards API).\n   * @param - Options to use when retrieving a workflow.\n   * @returns Requested workflow.\n   */\n  (_id: string, cardsPerPhase: number): Promise<\n    NonNullablePaths<\n      Workflow,\n      | `winPhase.cardsList.total`\n      | `winPhase.cardsList.cards`\n      | `winPhase.cardsList.cards.${number}.info.primaryAttachment.attachmentId`\n      | `winPhase.cardsList.cards.${number}.info.primaryAttachment.value`\n      | `winPhase.cardsList.cards.${number}.info.primaryAttachment.attachmentType`\n      | `winPhase.cardsList.cards.${number}.info.primaryAttachment.contactId`\n      | `phasesList.total`\n      | `phasesList.phases`,\n      8\n    >\n  >;\n}\n\nexport function updateWorkflow(\n  httpClient: HttpClient\n): UpdateWorkflowSignature {\n  return (_id: string, workflow: WorkflowInfo) =>\n    universalUpdateWorkflow(\n      _id,\n      workflow,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateWorkflowSignature {\n  /**\n   * Updates an existing workflow.\n   *\n   *\n   * The `updateWorkflow()` function returns a Promise that resolves when the workflow has been updated with the specified values.\n   *\n   *\n   * Only the properties passed in the `workflow` object will be updated. All other properties will remain the same.\n   *\n   *\n   * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflow API, see [Retrieving IDs](#retrieving-ids).\n   * @param - ID of the workflow to update.\n   * @param - Workflow info.\n   * @param - Options to use when updating a workflow.\n   */\n  (_id: string, workflow: WorkflowInfo): Promise<void>;\n}\n\nexport function createWorkflow(\n  httpClient: HttpClient\n): CreateWorkflowSignature {\n  return (workflow: NonNullablePaths<WorkflowInfo, `name`, 2>) =>\n    universalCreateWorkflow(\n      workflow,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateWorkflowSignature {\n  /**\n   * Creates a new workflow.\n   *\n   *\n   * The `createWorkflow()` function returns a Promise that resolves to the created workflow ID.\n   * @param - Workflow details.\n   * @param - Options to use when creating a workflow.\n   */\n  (\n    workflow: NonNullablePaths<WorkflowInfo, `name`, 2>\n  ): Promise<CreateWorkflowResponse>;\n}\n\nexport function deleteWorkflow(\n  httpClient: HttpClient\n): DeleteWorkflowSignature {\n  return (_id: string) =>\n    universalDeleteWorkflow(\n      _id,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteWorkflowSignature {\n  /**\n   * Deletes a workflow.\n   *\n   *\n   * The `deleteWorkflow()` function returns a Promise when the specified workflow has been deleted.\n   *\n   *\n   * This function requires you to specify the ID of a workflow. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n   * @param - ID of the workflow to delete.\n   */\n  (_id: string): Promise<void>;\n}\n\nexport {\n  Attachment,\n  AttachmentType,\n  Card,\n  CardInfo,\n  CardsList,\n  CreateWorkflowRequest,\n  CreateWorkflowResponse,\n  DeleteWorkflowRequest,\n  DeleteWorkflowResponse,\n  GetWorkflowRequest,\n  GetWorkflowResponse,\n  ListWorkflowsOptions,\n  ListWorkflowsRequest,\n  ListWorkflowsResponse,\n  PaginationResponse,\n  Paging,\n  Phase,\n  PhaseInfo,\n  PhasesList,\n  Query,\n  QueryWorkflowsRequest,\n  QueryWorkflowsResponse,\n  SetupWorkflowRequest,\n  SetupWorkflowResponse,\n  SortOrder,\n  Sorting,\n  UpdateWorkflowRequest,\n  UpdateWorkflowResponse,\n  Workflow,\n  WorkflowInfo,\n} from './workflows-v1-workflow-workflows.universal.js';\n","import {\n  listWorkflows as publicListWorkflows,\n  getWorkflow as publicGetWorkflow,\n  updateWorkflow as publicUpdateWorkflow,\n  createWorkflow as publicCreateWorkflow,\n  deleteWorkflow as publicDeleteWorkflow,\n} from './workflows-v1-workflow-workflows.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const listWorkflows: MaybeContext<\n  BuildRESTFunction<typeof publicListWorkflows> & typeof publicListWorkflows\n> = /*#__PURE__*/ createRESTModule(publicListWorkflows);\nexport const getWorkflow: MaybeContext<\n  BuildRESTFunction<typeof publicGetWorkflow> & typeof publicGetWorkflow\n> = /*#__PURE__*/ createRESTModule(publicGetWorkflow);\nexport const updateWorkflow: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateWorkflow> & typeof publicUpdateWorkflow\n> = /*#__PURE__*/ createRESTModule(publicUpdateWorkflow);\nexport const createWorkflow: MaybeContext<\n  BuildRESTFunction<typeof publicCreateWorkflow> & typeof publicCreateWorkflow\n> = /*#__PURE__*/ createRESTModule(publicCreateWorkflow);\nexport const deleteWorkflow: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteWorkflow> & typeof publicDeleteWorkflow\n> = /*#__PURE__*/ createRESTModule(publicDeleteWorkflow);\n\nexport {\n  AttachmentType,\n  SortOrder,\n} from './workflows-v1-workflow-workflows.universal.js';\nexport {\n  Workflow,\n  WorkflowInfo,\n  Phase,\n  PhaseInfo,\n  CardsList,\n  Card,\n  CardInfo,\n  Attachment,\n  PhasesList,\n  ListWorkflowsRequest,\n  ListWorkflowsResponse,\n  PaginationResponse,\n  QueryWorkflowsRequest,\n  Query,\n  Sorting,\n  Paging,\n  QueryWorkflowsResponse,\n  GetWorkflowRequest,\n  GetWorkflowResponse,\n  UpdateWorkflowRequest,\n  UpdateWorkflowResponse,\n  CreateWorkflowRequest,\n  CreateWorkflowResponse,\n  DeleteWorkflowRequest,\n  DeleteWorkflowResponse,\n  SetupWorkflowRequest,\n  SetupWorkflowResponse,\n  ListWorkflowsOptions,\n} from './workflows-v1-workflow-workflows.universal.js';\nexport {\n  AttachmentTypeWithLiterals,\n  SortOrderWithLiterals,\n} from './workflows-v1-workflow-workflows.universal.js';\n"]}