{"version":3,"sources":["../../src/workflows-v1-card-cards.universal.ts","../../src/workflows-v1-card-cards.http.ts","../../src/workflows-v1-card-cards.public.ts","../../src/workflows-v1-card-cards.context.ts"],"sourcesContent":["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 ambassadorWixWorkflowsV1Card from './workflows-v1-card-cards.http.js';\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\nexport interface QueryCardsRequest {\n  /** Query, sort, and paging 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 QueryCardsResponse {\n  /** List of cards that matched the query criteria. */\n  cards?: Card[];\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 ListCardsRequest {\n  /**\n   * ID of the workflow whose cards will be listed.\n   * @format GUID\n   */\n  workflowId: string;\n  /**\n   * Filters for cards in the specified phase.\n   * @format GUID\n   */\n  phaseId?: string | null;\n  /**\n   * Number of items to return.\n   *\n   * Defaults to `50`.\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  /** Filters for cards with the specified contact ID. */\n  attachmentValue?: string | null;\n  /**\n   * Filters for archived cards.\n   * If set to `true`,\n   * only archived cards are returned.\n   * If set to `false`,\n   * only cards that are not archived are returned.\n   *\n   * Defaults to `false`.\n   */\n  fetchArchived?: boolean | null;\n  /**\n   * Supported fields:\n   * `id`, `name`, `createdDate`, `updatedDate`, `phaseId`\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 ListCardsResponse {\n  /** List of cards. */\n  cards?: Card[];\n  /** Metadata for the page of results. */\n  pagination?: PaginationResponse;\n}\n\nexport interface GetCardRequest {\n  /**\n   * ID of the card to retrieve.\n   * @format GUID\n   */\n  _id: string;\n}\n\nexport interface GetCardResponse {\n  /** Requested card. */\n  card?: Card;\n}\n\nexport interface UpdateCardRequest {\n  /**\n   * ID of the card to update.\n   * @format GUID\n   */\n  _id: string;\n  /** Card details. */\n  cardInfo?: CardInfo;\n}\n\nexport interface UpdateCardResponse {}\n\nexport interface CreateCardRequest {\n  /**\n   * ID of the workflow to create the card in.\n   * @format GUID\n   */\n  workflowId: string;\n  /**\n   * ID of the phase to create the card in.\n   * @format GUID\n   */\n  phaseId: string;\n  /** Card details. */\n  card?: CardInfo;\n  /**\n   * Card position, where the first card is `0`.\n   *\n   * If a card already occupies the specified position,\n   * that card and any subsequent cards are shifted to the right by 1.\n   *\n   * Defaults to the last position.\n   */\n  position?: number | null;\n}\n\nexport interface CreateCardResponse {\n  /**\n   * ID of the newly created card.\n   * @format GUID\n   */\n  _id?: string | null;\n}\n\nexport interface DeleteCardRequest {\n  /**\n   * ID of the card to delete.\n   * @format GUID\n   */\n  _id: string;\n}\n\nexport interface DeleteCardResponse {}\n\nexport interface MoveCardRequest {\n  /**\n   * ID of the card to move.\n   * @format GUID\n   */\n  _id: string;\n  /**\n   * ID of the phase to move the card to.\n   * @format GUID\n   */\n  newPhaseId?: string | null;\n  /** Position of the card in the phase, where the first card is `0`. */\n  newPosition?: number | null;\n}\n\nexport interface MoveCardResponse {}\n\nexport interface RestoreCardRequest {\n  /**\n   * ID of the card to restore.\n   * @format GUID\n   */\n  _id: string;\n  /**\n   * ID of the phase to restore the card to.\n   * @format GUID\n   */\n  newPhaseId: string;\n  /**\n   * Position of the restored card in the phase,\n   * where the first card is `0`.\n   */\n  newPosition?: number | null;\n}\n\nexport interface RestoreCardResponse {}\n\nexport interface ArchiveCardRequest {\n  /**\n   * ID of the card to archive.\n   * @format GUID\n   */\n  _id: string;\n}\n\nexport interface ArchiveCardResponse {}\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  /** Details related to the account */\n  accountInfo?: AccountInfo;\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\nexport interface AccountInfo {\n  /**\n   * ID of the Wix account associated with the event.\n   * @format GUID\n   */\n  accountId?: string | null;\n  /**\n   * ID of the parent Wix account. Only included when accountId belongs to a child account.\n   * @format GUID\n   */\n  parentAccountId?: string | null;\n  /**\n   * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n   * @format GUID\n   */\n  siteId?: string | null;\n}\n\n/**\n * Retrieves a list of a workflow's cards.\n *\n *\n * The `listCards()` function returns a Promise that resolves to a list of the specified workflow's cards.\n *\n *\n * Use the `options` parameter to specify which cards to retrieve and in which order to retrieve them. Must use either `phaseId` or `fetchOnlyArchived`.\n *\n *\n * Cards can be sorted based on their `\"id\"`, `\"name\"`, `\"phaseId\"`, `\"createdDate\"`, `\"updatedDate\"`, `\"source\"`, and `\"position\"`.\n *\n *\n * If no `limit` parameter is passed, the first 50 cards are returned.\n *\n *\n * Sort order defaults to by `\"phaseId\"` and then by `\"position\"` ascending.\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 workflowId - ID of the workflow whose cards will be listed.\n * @public\n * @documentationMaturity preview\n * @requiredField workflowId\n * @param options - Options to use when retrieving the list of cards.\n * @permissionId workflows.view\n * @fqn com.wixpress.workflow.api.v1.CardsService.ListCards\n */\nexport async function listCards(\n  workflowId: string,\n  options?: ListCardsOptions\n): Promise<\n  NonNullablePaths<\n    ListCardsResponse,\n    | `cards`\n    | `cards.${number}.info.primaryAttachment.attachmentId`\n    | `cards.${number}.info.primaryAttachment.value`\n    | `cards.${number}.info.primaryAttachment.attachmentType`\n    | `cards.${number}.info.primaryAttachment.contactId`\n    | `pagination.offset`\n    | `pagination.total`\n    | `pagination.count`,\n    6\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    workflowId: workflowId,\n    phaseId: options?.phaseId,\n    limit: options?.limit,\n    offset: options?.offset,\n    attachmentValue: options?.attachmentValue,\n    fetchArchived: options?.fetchArchived,\n    sort: options?.sort,\n  });\n\n  const reqOpts = ambassadorWixWorkflowsV1Card.listCards(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          workflowId: '$[0]',\n          phaseId: '$[1].phaseId',\n          limit: '$[1].limit',\n          offset: '$[1].offset',\n          attachmentValue: '$[1].attachmentValue',\n          fetchArchived: '$[1].fetchArchived',\n          sort: '$[1].sort',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['workflowId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface ListCardsOptions {\n  /**\n   * Filters for cards in the specified phase.\n   * @format GUID\n   */\n  phaseId?: string | null;\n  /**\n   * Number of items to return.\n   *\n   * Defaults to `50`.\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  /** Filters for cards with the specified contact ID. */\n  attachmentValue?: string | null;\n  /**\n   * Filters for archived cards.\n   * If set to `true`,\n   * only archived cards are returned.\n   * If set to `false`,\n   * only cards that are not archived are returned.\n   *\n   * Defaults to `false`.\n   */\n  fetchArchived?: boolean | null;\n  /**\n   * Supported fields:\n   * `id`, `name`, `createdDate`, `updatedDate`, `phaseId`\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 card by ID.\n *\n *\n * The `getCard()` function returns a Promise that resolves to the card with the specified ID.\n *\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n * @param _id - ID of the card to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId workflows.view\n * @returns Requested card.\n * @fqn com.wixpress.workflow.api.v1.CardsService.GetCard\n */\nexport async function getCard(\n  _id: string\n): Promise<\n  NonNullablePaths<\n    Card,\n    | `info.primaryAttachment.attachmentId`\n    | `info.primaryAttachment.value`\n    | `info.primaryAttachment.attachmentType`\n    | `info.primaryAttachment.contactId`,\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({ id: _id });\n\n  const reqOpts = ambassadorWixWorkflowsV1Card.getCard(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)?.card!;\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\n/**\n * Updates an existing workflow card.\n *\n *\n * The `updateCard()` function returns a Promise that resolves when the card has been updated with the specified values.\n *\n *\n * `contactId` is not a required field, but if the parameter is not passed, the field will default to empty and the card will not be associated with any contact.\n *\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n * @param _id - ID of the card to update.\n * @param cardInfo - Card details.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField cardInfo\n * @param options - Options to use when updating a card.\n * @permissionId workflows.modify\n * @fqn com.wixpress.workflow.api.v1.CardsService.UpdateCard\n */\nexport async function updateCard(\n  _id: string,\n  cardInfo: CardInfo\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    cardInfo: cardInfo,\n  });\n\n  const reqOpts = ambassadorWixWorkflowsV1Card.updateCard(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]', cardInfo: '$[1]' },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'cardInfo']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Creates a new workflow card.\n *\n *\n * The `createCard()` function returns a Promise that resolves to the created card's ID when the card is created in the specified workflow phase.\n *\n * Pass a value for the `position` parameter to specify the newly created card's position within the specified phase. Positions are zero-based, meaning the first position is `0`.\n *\n * When omitted, the newly created card is added to the specified phase as the top card within the phase.\n *\n *\n * This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n *\n *  > **Note:**\n *  > Each workflow is limited to 5,000 cards.\n *  > If this limit is reached, `createCard()` throws an error.\n *  > [Archive cards](#archivecard) when they're no longer needed\n *  > to reduce card count and avoid hitting the limit.\n * @param card - Card details.\n * @public\n * @documentationMaturity preview\n * @requiredField card\n * @requiredField identifiers\n * @requiredField identifiers.phaseId\n * @requiredField identifiers.workflowId\n * @param options - Options to use when creating a card.\n * @permissionId workflows.modify\n * @fqn com.wixpress.workflow.api.v1.CardsService.CreateCard\n */\nexport async function createCard(\n  identifiers: NonNullablePaths<\n    CreateCardIdentifiers,\n    `phaseId` | `workflowId`,\n    2\n  >,\n  card: CardInfo,\n  options?: CreateCardOptions\n): Promise<CreateCardResponse> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[3] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    workflowId: identifiers?.workflowId,\n    phaseId: identifiers?.phaseId,\n    card: card,\n    position: options?.position,\n  });\n\n  const reqOpts = ambassadorWixWorkflowsV1Card.createCard(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          workflowId: '$[0].workflowId',\n          phaseId: '$[0].phaseId',\n          card: '$[1]',\n          position: '$[2].position',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['identifiers', 'card', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface CreateCardIdentifiers {\n  /**\n   * ID of the workflow to create the card in.\n   * @format GUID\n   */\n  workflowId: string;\n  /**\n   * ID of the phase to create the card in.\n   * @format GUID\n   */\n  phaseId: string;\n}\n\nexport interface CreateCardOptions {\n  /**\n   * Card position, where the first card is `0`.\n   *\n   * If a card already occupies the specified position,\n   * that card and any subsequent cards are shifted to the right by 1.\n   *\n   * Defaults to the last position.\n   */\n  position?: number | null;\n}\n\n/**\n * Deletes a workflow card by ID.\n *\n *\n * The `deleteCard()` function returns a Promise when the specified card has been deleted.\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n * @param _id - ID of the card to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId workflows.modify\n * @fqn com.wixpress.workflow.api.v1.CardsService.DeleteCard\n */\nexport async function deleteCard(_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 = ambassadorWixWorkflowsV1Card.deleteCard(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\n/**\n * Moves a card to a new position within a workflow.\n *\n *\n * The `moveCard()` function returns a Promise when the specified card has been moved to the new position.\n *\n * Use the `options` parameter to specify the phase and position within that phase to move the card to. Positions are zero-based, meaning the first position is `0`.\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n * @param _id - ID of the card to move.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @param options - Information about where to move the card.\n * @permissionId workflows.modify\n * @fqn com.wixpress.workflow.api.v1.CardsService.MoveCard\n */\nexport async function moveCard(\n  _id: string,\n  options?: MoveCardOptions\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    newPhaseId: options?.newPhaseId,\n    newPosition: options?.newPosition,\n  });\n\n  const reqOpts = ambassadorWixWorkflowsV1Card.moveCard(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: {\n          id: '$[0]',\n          newPhaseId: '$[1].newPhaseId',\n          newPosition: '$[1].newPosition',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface MoveCardOptions {\n  /**\n   * ID of the phase to move the card to.\n   * @format GUID\n   */\n  newPhaseId?: string | null;\n  /** Position of the card in the phase, where the first card is `0`. */\n  newPosition?: number | null;\n}\n\n/**\n * Restores an archived workflow card.\n *\n *\n * The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.\n *\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n *\n *\n * > **Note:**\n * > Each workflow is limited to 5,000 cards.\n * > If this limit is reached, `createCard()` throws an error.\n * > [Archive cards](#archivecard) when they're no longer needed\n * > to reduce card count and avoid hitting the limit.\n * @param _id - ID of the card to restore.\n * @param newPhaseId - ID of the phase to restore the card to.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField newPhaseId\n * @param options - Options to use when restoring a card.\n * @permissionId workflows.modify\n * @fqn com.wixpress.workflow.api.v1.CardsService.RestoreCard\n */\nexport async function restoreCard(\n  _id: string,\n  newPhaseId: string,\n  options?: RestoreCardOptions\n): Promise<void> {\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    newPhaseId: newPhaseId,\n    newPosition: options?.newPosition,\n  });\n\n  const reqOpts = ambassadorWixWorkflowsV1Card.restoreCard(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: {\n          id: '$[0]',\n          newPhaseId: '$[1]',\n          newPosition: '$[2].newPosition',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['_id', 'newPhaseId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface RestoreCardOptions {\n  /**\n   * Position of the restored card in the phase,\n   * where the first card is `0`.\n   */\n  newPosition?: number | null;\n}\n\n/**\n * Archives a workflow card.\n *\n *\n * The `archiveCard()` function returns a Promise that resolves when the card has been archived.\n *\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n * @param _id - ID of the card to archive.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId workflows.modify\n * @fqn com.wixpress.workflow.api.v1.CardsService.ArchiveCard\n */\nexport async function archiveCard(_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 = ambassadorWixWorkflowsV1Card.archiveCard(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 resolveComWixpressWorkflowApiV1CardsServiceUrl(\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_cards';\n\n/**\n * Retrieves a list of a workflow's cards.\n *\n *\n * The `listCards()` function returns a Promise that resolves to a list of the specified workflow's cards.\n *\n *\n * Use the `options` parameter to specify which cards to retrieve and in which order to retrieve them. Must use either `phaseId` or `fetchOnlyArchived`.\n *\n *\n * Cards can be sorted based on their `\"id\"`, `\"name\"`, `\"phaseId\"`, `\"createdDate\"`, `\"updatedDate\"`, `\"source\"`, and `\"position\"`.\n *\n *\n * If no `limit` parameter is passed, the first 50 cards are returned.\n *\n *\n * Sort order defaults to by `\"phaseId\"` and then by `\"position\"` ascending.\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 listCards(payload: object): RequestOptionsFactory<any> {\n  function __listCards({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.card',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.CardsService.ListCards',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n        protoPath: '/v1/workflows/{workflowId}/cards',\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: 'cards.info.dueDate' },\n              { path: 'cards.info.createdAt' },\n              { path: 'cards.info.updatedAt' },\n              { path: 'cards.info.createdDate' },\n              { path: 'cards.info.updatedDate' },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'GET' as any,\n          url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n            protoPath: '/v1/workflows/{workflowId}/cards',\n            data: payload,\n            host,\n          }),\n          params: toURLSearchParams(payload),\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __listCards;\n}\n\n/**\n * Retrieves a workflow card by ID.\n *\n *\n * The `getCard()` function returns a Promise that resolves to the card with the specified ID.\n *\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n */\nexport function getCard(payload: object): RequestOptionsFactory<any> {\n  function __getCard({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.card',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.CardsService.GetCard',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n        protoPath: '/v1/cards/{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: 'card.info.dueDate' },\n              { path: 'card.info.createdAt' },\n              { path: 'card.info.updatedAt' },\n              { path: 'card.info.createdDate' },\n              { path: 'card.info.updatedDate' },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'GET' as any,\n          url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n            protoPath: '/v1/cards/{id}',\n            data: payload,\n            host,\n          }),\n          params: toURLSearchParams(payload),\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __getCard;\n}\n\n/**\n * Updates an existing workflow card.\n *\n *\n * The `updateCard()` function returns a Promise that resolves when the card has been updated with the specified values.\n *\n *\n * `contactId` is not a required field, but if the parameter is not passed, the field will default to empty and the card will not be associated with any contact.\n *\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n */\nexport function updateCard(payload: object): RequestOptionsFactory<any> {\n  function __updateCard({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'cardInfo.dueDate' },\n          { path: 'cardInfo.createdAt' },\n          { path: 'cardInfo.updatedAt' },\n          { path: 'cardInfo.createdDate' },\n          { path: 'cardInfo.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.card',\n      method: 'PATCH' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.CardsService.UpdateCard',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n        protoPath: '/v1/cards/{id}',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n    };\n\n    return metadata;\n  }\n\n  return __updateCard;\n}\n\n/**\n * Creates a new workflow card.\n *\n *\n * The `createCard()` function returns a Promise that resolves to the created card's ID when the card is created in the specified workflow phase.\n *\n * Pass a value for the `position` parameter to specify the newly created card's position within the specified phase. Positions are zero-based, meaning the first position is `0`.\n *\n * When omitted, the newly created card is added to the specified phase as the top card within the phase.\n *\n *\n * This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n *\n *  > **Note:**\n *  > Each workflow is limited to 5,000 cards.\n *  > If this limit is reached, `createCard()` throws an error.\n *  > [Archive cards](#archivecard) when they're no longer needed\n *  > to reduce card count and avoid hitting the limit.\n */\nexport function createCard(payload: object): RequestOptionsFactory<any> {\n  function __createCard({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'card.dueDate' },\n          { path: 'card.createdAt' },\n          { path: 'card.updatedAt' },\n          { path: 'card.createdDate' },\n          { path: 'card.updatedDate' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.card',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.CardsService.CreateCard',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n        protoPath: '/v1/workflows/{workflowId}/phases/{phaseId}/cards',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n    };\n\n    return metadata;\n  }\n\n  return __createCard;\n}\n\n/**\n * Deletes a workflow card by ID.\n *\n *\n * The `deleteCard()` function returns a Promise when the specified card has been deleted.\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n */\nexport function deleteCard(payload: object): RequestOptionsFactory<any> {\n  function __deleteCard({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.card',\n      method: 'DELETE' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.CardsService.DeleteCard',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n        protoPath: '/v1/cards/{id}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteCard;\n}\n\n/**\n * Moves a card to a new position within a workflow.\n *\n *\n * The `moveCard()` function returns a Promise when the specified card has been moved to the new position.\n *\n * Use the `options` parameter to specify the phase and position within that phase to move the card to. Positions are zero-based, meaning the first position is `0`.\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n */\nexport function moveCard(payload: object): RequestOptionsFactory<any> {\n  function __moveCard({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.card',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.CardsService.MoveCard',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n        protoPath: '/v1/cards/{id}/move',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __moveCard;\n}\n\n/**\n * Restores an archived workflow card.\n *\n *\n * The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.\n *\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n *\n *\n * > **Note:**\n * > Each workflow is limited to 5,000 cards.\n * > If this limit is reached, `createCard()` throws an error.\n * > [Archive cards](#archivecard) when they're no longer needed\n * > to reduce card count and avoid hitting the limit.\n */\nexport function restoreCard(payload: object): RequestOptionsFactory<any> {\n  function __restoreCard({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.card',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.CardsService.RestoreCard',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n        protoPath: '/v1/cards/{id}/restore',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __restoreCard;\n}\n\n/**\n * Archives a workflow card.\n *\n *\n * The `archiveCard()` function returns a Promise that resolves when the card has been archived.\n *\n *\n * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n */\nexport function archiveCard(payload: object): RequestOptionsFactory<any> {\n  function __archiveCard({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.workflows.v1.card',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.workflow.api.v1.CardsService.ArchiveCard',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressWorkflowApiV1CardsServiceUrl({\n        protoPath: '/v1/cards/{id}/archive',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __archiveCard;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  Card,\n  CardInfo,\n  CreateCardIdentifiers,\n  CreateCardOptions,\n  CreateCardResponse,\n  ListCardsOptions,\n  ListCardsResponse,\n  MoveCardOptions,\n  RestoreCardOptions,\n  archiveCard as universalArchiveCard,\n  createCard as universalCreateCard,\n  deleteCard as universalDeleteCard,\n  getCard as universalGetCard,\n  listCards as universalListCards,\n  moveCard as universalMoveCard,\n  restoreCard as universalRestoreCard,\n  updateCard as universalUpdateCard,\n} from './workflows-v1-card-cards.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/workflows' };\n\nexport function listCards(httpClient: HttpClient): ListCardsSignature {\n  return (workflowId: string, options?: ListCardsOptions) =>\n    universalListCards(\n      workflowId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ListCardsSignature {\n  /**\n   * Retrieves a list of a workflow's cards.\n   *\n   *\n   * The `listCards()` function returns a Promise that resolves to a list of the specified workflow's cards.\n   *\n   *\n   * Use the `options` parameter to specify which cards to retrieve and in which order to retrieve them. Must use either `phaseId` or `fetchOnlyArchived`.\n   *\n   *\n   * Cards can be sorted based on their `\"id\"`, `\"name\"`, `\"phaseId\"`, `\"createdDate\"`, `\"updatedDate\"`, `\"source\"`, and `\"position\"`.\n   *\n   *\n   * If no `limit` parameter is passed, the first 50 cards are returned.\n   *\n   *\n   * Sort order defaults to by `\"phaseId\"` and then by `\"position\"` ascending.\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 whose cards will be listed.\n   * @param - Options to use when retrieving the list of cards.\n   */\n  (workflowId: string, options?: ListCardsOptions): Promise<\n    NonNullablePaths<\n      ListCardsResponse,\n      | `cards`\n      | `cards.${number}.info.primaryAttachment.attachmentId`\n      | `cards.${number}.info.primaryAttachment.value`\n      | `cards.${number}.info.primaryAttachment.attachmentType`\n      | `cards.${number}.info.primaryAttachment.contactId`\n      | `pagination.offset`\n      | `pagination.total`\n      | `pagination.count`,\n      6\n    >\n  >;\n}\n\nexport function getCard(httpClient: HttpClient): GetCardSignature {\n  return (_id: string) =>\n    universalGetCard(\n      _id,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetCardSignature {\n  /**\n   * Retrieves a workflow card by ID.\n   *\n   *\n   * The `getCard()` function returns a Promise that resolves to the card with the specified ID.\n   *\n   *\n   * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n   * @param - ID of the card to retrieve.\n   * @returns Requested card.\n   */\n  (_id: string): Promise<\n    NonNullablePaths<\n      Card,\n      | `info.primaryAttachment.attachmentId`\n      | `info.primaryAttachment.value`\n      | `info.primaryAttachment.attachmentType`\n      | `info.primaryAttachment.contactId`,\n      4\n    >\n  >;\n}\n\nexport function updateCard(httpClient: HttpClient): UpdateCardSignature {\n  return (_id: string, cardInfo: CardInfo) =>\n    universalUpdateCard(\n      _id,\n      cardInfo,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateCardSignature {\n  /**\n   * Updates an existing workflow card.\n   *\n   *\n   * The `updateCard()` function returns a Promise that resolves when the card has been updated with the specified values.\n   *\n   *\n   * `contactId` is not a required field, but if the parameter is not passed, the field will default to empty and the card will not be associated with any contact.\n   *\n   *\n   * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n   * @param - ID of the card to update.\n   * @param - Card details.\n   * @param - Options to use when updating a card.\n   */\n  (_id: string, cardInfo: CardInfo): Promise<void>;\n}\n\nexport function createCard(httpClient: HttpClient): CreateCardSignature {\n  return (\n    identifiers: NonNullablePaths<\n      CreateCardIdentifiers,\n      `phaseId` | `workflowId`,\n      2\n    >,\n    card: CardInfo,\n    options?: CreateCardOptions\n  ) =>\n    universalCreateCard(\n      identifiers,\n      card,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateCardSignature {\n  /**\n   * Creates a new workflow card.\n   *\n   *\n   * The `createCard()` function returns a Promise that resolves to the created card's ID when the card is created in the specified workflow phase.\n   *\n   * Pass a value for the `position` parameter to specify the newly created card's position within the specified phase. Positions are zero-based, meaning the first position is `0`.\n   *\n   * When omitted, the newly created card is added to the specified phase as the top card within the phase.\n   *\n   *\n   * This function requires you to specify the ID of a workflow and phase. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n   *\n   *  > **Note:**\n   *  > Each workflow is limited to 5,000 cards.\n   *  > If this limit is reached, `createCard()` throws an error.\n   *  > [Archive cards](#archivecard) when they're no longer needed\n   *  > to reduce card count and avoid hitting the limit.\n   * @param - Card details.\n   * @param - Options to use when creating a card.\n   */\n  (\n    identifiers: NonNullablePaths<\n      CreateCardIdentifiers,\n      `phaseId` | `workflowId`,\n      2\n    >,\n    card: CardInfo,\n    options?: CreateCardOptions\n  ): Promise<CreateCardResponse>;\n}\n\nexport function deleteCard(httpClient: HttpClient): DeleteCardSignature {\n  return (_id: string) =>\n    universalDeleteCard(\n      _id,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteCardSignature {\n  /**\n   * Deletes a workflow card by ID.\n   *\n   *\n   * The `deleteCard()` function returns a Promise when the specified card has been deleted.\n   *\n   * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n   * @param - ID of the card to delete.\n   */\n  (_id: string): Promise<void>;\n}\n\nexport function moveCard(httpClient: HttpClient): MoveCardSignature {\n  return (_id: string, options?: MoveCardOptions) =>\n    universalMoveCard(\n      _id,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface MoveCardSignature {\n  /**\n   * Moves a card to a new position within a workflow.\n   *\n   *\n   * The `moveCard()` function returns a Promise when the specified card has been moved to the new position.\n   *\n   * Use the `options` parameter to specify the phase and position within that phase to move the card to. Positions are zero-based, meaning the first position is `0`.\n   *\n   * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n   * @param - ID of the card to move.\n   * @param - Information about where to move the card.\n   */\n  (_id: string, options?: MoveCardOptions): Promise<void>;\n}\n\nexport function restoreCard(httpClient: HttpClient): RestoreCardSignature {\n  return (_id: string, newPhaseId: string, options?: RestoreCardOptions) =>\n    universalRestoreCard(\n      _id,\n      newPhaseId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface RestoreCardSignature {\n  /**\n   * Restores an archived workflow card.\n   *\n   *\n   * The `restoreCard()` function returns a Promise that resolves when the archived card has been restored.\n   *\n   *\n   * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n   *\n   *\n   * > **Note:**\n   * > Each workflow is limited to 5,000 cards.\n   * > If this limit is reached, `createCard()` throws an error.\n   * > [Archive cards](#archivecard) when they're no longer needed\n   * > to reduce card count and avoid hitting the limit.\n   * @param - ID of the card to restore.\n   * @param - ID of the phase to restore the card to.\n   * @param - Options to use when restoring a card.\n   */\n  (\n    _id: string,\n    newPhaseId: string,\n    options?: RestoreCardOptions\n  ): Promise<void>;\n}\n\nexport function archiveCard(httpClient: HttpClient): ArchiveCardSignature {\n  return (_id: string) =>\n    universalArchiveCard(\n      _id,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface ArchiveCardSignature {\n  /**\n   * Archives a workflow card.\n   *\n   *\n   * The `archiveCard()` function returns a Promise that resolves when the card has been archived.\n   *\n   *\n   * This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflows APIs, see [Retrieving IDs](wix-workflows-v2/introduction#retrieving-ids).\n   * @param - ID of the card to archive.\n   */\n  (_id: string): Promise<void>;\n}\n\nexport {\n  AccountInfo,\n  ActionEvent,\n  ArchiveCardRequest,\n  ArchiveCardResponse,\n  Attachment,\n  AttachmentType,\n  Card,\n  CardInfo,\n  CreateCardIdentifiers,\n  CreateCardOptions,\n  CreateCardRequest,\n  CreateCardResponse,\n  DeleteCardRequest,\n  DeleteCardResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  GetCardRequest,\n  GetCardResponse,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  ListCardsOptions,\n  ListCardsRequest,\n  ListCardsResponse,\n  MessageEnvelope,\n  MoveCardOptions,\n  MoveCardRequest,\n  MoveCardResponse,\n  PaginationResponse,\n  Paging,\n  Query,\n  QueryCardsRequest,\n  QueryCardsResponse,\n  RestoreCardOptions,\n  RestoreCardRequest,\n  RestoreCardResponse,\n  RestoreInfo,\n  SortOrder,\n  Sorting,\n  UpdateCardRequest,\n  UpdateCardResponse,\n  WebhookIdentityType,\n} from './workflows-v1-card-cards.universal.js';\n","import {\n  listCards as publicListCards,\n  getCard as publicGetCard,\n  updateCard as publicUpdateCard,\n  createCard as publicCreateCard,\n  deleteCard as publicDeleteCard,\n  moveCard as publicMoveCard,\n  restoreCard as publicRestoreCard,\n  archiveCard as publicArchiveCard,\n} from './workflows-v1-card-cards.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const listCards: MaybeContext<\n  BuildRESTFunction<typeof publicListCards> & typeof publicListCards\n> = /*#__PURE__*/ createRESTModule(publicListCards);\nexport const getCard: MaybeContext<\n  BuildRESTFunction<typeof publicGetCard> & typeof publicGetCard\n> = /*#__PURE__*/ createRESTModule(publicGetCard);\nexport const updateCard: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateCard> & typeof publicUpdateCard\n> = /*#__PURE__*/ createRESTModule(publicUpdateCard);\nexport const createCard: MaybeContext<\n  BuildRESTFunction<typeof publicCreateCard> & typeof publicCreateCard\n> = /*#__PURE__*/ createRESTModule(publicCreateCard);\nexport const deleteCard: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteCard> & typeof publicDeleteCard\n> = /*#__PURE__*/ createRESTModule(publicDeleteCard);\nexport const moveCard: MaybeContext<\n  BuildRESTFunction<typeof publicMoveCard> & typeof publicMoveCard\n> = /*#__PURE__*/ createRESTModule(publicMoveCard);\nexport const restoreCard: MaybeContext<\n  BuildRESTFunction<typeof publicRestoreCard> & typeof publicRestoreCard\n> = /*#__PURE__*/ createRESTModule(publicRestoreCard);\nexport const archiveCard: MaybeContext<\n  BuildRESTFunction<typeof publicArchiveCard> & typeof publicArchiveCard\n> = /*#__PURE__*/ createRESTModule(publicArchiveCard);\n\nexport {\n  AttachmentType,\n  SortOrder,\n  WebhookIdentityType,\n} from './workflows-v1-card-cards.universal.js';\nexport {\n  Card,\n  CardInfo,\n  Attachment,\n  QueryCardsRequest,\n  Query,\n  Sorting,\n  Paging,\n  QueryCardsResponse,\n  PaginationResponse,\n  ListCardsRequest,\n  ListCardsResponse,\n  GetCardRequest,\n  GetCardResponse,\n  UpdateCardRequest,\n  UpdateCardResponse,\n  CreateCardRequest,\n  CreateCardResponse,\n  DeleteCardRequest,\n  DeleteCardResponse,\n  MoveCardRequest,\n  MoveCardResponse,\n  RestoreCardRequest,\n  RestoreCardResponse,\n  ArchiveCardRequest,\n  ArchiveCardResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  AccountInfo,\n  ListCardsOptions,\n  CreateCardIdentifiers,\n  CreateCardOptions,\n  MoveCardOptions,\n  RestoreCardOptions,\n} from './workflows-v1-card-cards.universal.js';\nexport {\n  AttachmentTypeWithLiterals,\n  SortOrderWithLiterals,\n  WebhookIdentityTypeWithLiterals,\n} from './workflows-v1-card-cards.universal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,UAAS,YAA2C;AAClE,SAAO,CAAC,KAAa,YACnBA;AAAA,IACE;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAkBO,SAASC,aAAY,YAA8C;AACxE,SAAO,CAAC,KAAa,YAAoB,YACvCA;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AA6BO,SAASC,aAAY,YAA8C;AACxE,SAAO,CAAC,QACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AC9QA,SAAS,wBAAwB;AAG1B,IAAMC,aAEK,iCAAiBA,UAAe;AAC3C,IAAMC,WAEK,iCAAiBA,QAAa;AACzC,IAAMC,cAEK,iCAAiBA,WAAgB;AAC5C,IAAMC,cAEK,iCAAiBA,WAAgB;AAC5C,IAAMC,cAEK,iCAAiBA,WAAgB;AAC5C,IAAMC,YAEK,iCAAiBA,SAAc;AAC1C,IAAMC,eAEK,iCAAiBA,YAAiB;AAC7C,IAAMC,eAEK,iCAAiBA,YAAiB;","names":["payload","AttachmentType","SortOrder","WebhookIdentityType","listCards","getCard","updateCard","createCard","deleteCard","moveCard","restoreCard","archiveCard","listCards","getCard","updateCard","createCard","deleteCard","moveCard","restoreCard","archiveCard","listCards","getCard","updateCard","createCard","deleteCard","moveCard","restoreCard","archiveCard"]}