@wix/auto_sdk_intake-forms_intake-forms 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/intake-forms-v1-intake-form-intake-forms.http.ts","../../../src/intake-forms-v1-intake-form-intake-forms.types.ts","../../../src/intake-forms-v1-intake-form-intake-forms.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixIntakeformsV1IntakeFormsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/intake-forms',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/intake-forms',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/intake-forms',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_intake-forms_intake-forms';\n\n/**\n * Retrieves a list of intake forms, with the specified paging, filtering, and sorting.\n *\n * Query Intake Forms runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * This method forwards queries to Wix Forms' [Query Forms](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/query-forms) method and supports the same filters.\n *\n * Additionally, you can filter by `archived` to retrieve only archived or non-archived intake forms.\n *\n * Learn more about [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language).\n */\nexport function queryIntakeForms(payload: object): RequestOptionsFactory<any> {\n function __queryIntakeForms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'POST' as any,\n methodFqn: 'wix.intakeforms.v1.IntakeFormsService.QueryIntakeForms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'intakeForms.createdDate' },\n { path: 'intakeForms.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryIntakeForms;\n}\n\n/**\n * Updates the expiration period of a specific intake form.\n *\n * When you update the expiration period, the system recalculates expiration for all existing submissions.\n */\nexport function updateIntakeFormExpirationPeriod(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateIntakeFormExpirationPeriod({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.intakeforms.v1.IntakeFormsService.UpdateIntakeFormExpirationPeriod',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'intakeForm.createdDate' },\n { path: 'intakeForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateIntakeFormExpirationPeriod;\n}\n\n/**\n * Creates a shareable link for customers to submit an intake form.\n *\n * The link is valid for 72 hours.\n */\nexport function createCustomerSubmissionLink(\n payload: object\n): RequestOptionsFactory<any> {\n function __createCustomerSubmissionLink({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'GET' as any,\n methodFqn:\n 'wix.intakeforms.v1.IntakeFormsService.CreateCustomerSubmissionLink',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}/link',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __createCustomerSubmissionLink;\n}\n\n/**\n * Deletes an intake form.\n *\n *\n * Also deletes the underlying [Wix form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/introduction).\n *\n * Existing [submissions](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-form-submissions/introduction) for the intake form aren't automatically deleted but become orphaned.\n * When [querying submissions](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-form-submissions/query-intake-form-submissions), orphaned submissions aren't returned.\n */\nexport function deleteIntakeForm(payload: object): RequestOptionsFactory<any> {\n function __deleteIntakeForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'DELETE' as any,\n methodFqn: 'wix.intakeforms.v1.IntakeFormsService.DeleteIntakeForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteIntakeForm;\n}\n\n/**\n * Archives an intake form, disabling it from accepting new submissions.\n *\n * Existing submissions remain accessible. You can [unarchive](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-forms/unarchive-intake-form) the form later to resume accepting submissions.\n */\nexport function archiveIntakeForm(payload: object): RequestOptionsFactory<any> {\n function __archiveIntakeForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'POST' as any,\n methodFqn: 'wix.intakeforms.v1.IntakeFormsService.ArchiveIntakeForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}/archive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'intakeForm.createdDate' },\n { path: 'intakeForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __archiveIntakeForm;\n}\n\n/** Unarchives an intake form, enabling it to accept new submissions. */\nexport function unarchiveIntakeForm(\n payload: object\n): RequestOptionsFactory<any> {\n function __unarchiveIntakeForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'POST' as any,\n methodFqn: 'wix.intakeforms.v1.IntakeFormsService.UnarchiveIntakeForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}/unarchive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'intakeForm.createdDate' },\n { path: 'intakeForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __unarchiveIntakeForm;\n}\n","/**\n * A wrapper around a Wix form that adds expiration tracking and submission management.\n * Intake forms collect information from contacts with time-based validity requirements.\n */\nexport interface IntakeForm {\n /**\n * Intake form ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Expiration period in months. If not set, submissions don't expire.\n * @min 1\n * @max 60\n */\n expirationPeriodInMonths?: number | null;\n /**\n * Whether the intake form is archived and disabled from accepting new submissions.\n * @readonly\n */\n archived?: boolean | null;\n /**\n * Intake form name.\n * @minLength 1\n * @maxLength 100\n * @readonly\n */\n name?: string | null;\n /**\n * Date and time the intake form was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the intake form was updated in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the intake form is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the intake form.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface QueryIntakeFormsRequest {\n /**\n * Filter object.\n * See @API Query Language\n * for more information.\n *\n * For a detailed list of supported filters, see\n * @Supported Filters.\n */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryIntakeFormsResponse {\n /** Retrieved intake forms. */\n intakeForms?: IntakeForm[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateIntakeFormExpirationPeriodRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n /**\n * New expiration period in months. If not set, submissions don't expire.\n * @min 1\n * @max 60\n */\n expirationPeriodInMonths?: number | null;\n /**\n * Revision number, which increments by 1 each time the intake form is updated.\n * To prevent conflicting changes, you must specify the current revision when updating the intake form.\n */\n formRevision: string | null;\n}\n\nexport interface UpdateIntakeFormExpirationPeriodResponse {\n /** Updated intake form. */\n intakeForm?: IntakeForm;\n}\n\nexport interface CreateCustomerSubmissionLinkRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n /**\n * [Contact](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/introduction) ID to personalize and pre-fill the submission with the contact's information.\n * @format GUID\n */\n contactId?: string | null;\n}\n\nexport interface CreateCustomerSubmissionLinkResponse {\n /**\n * Generated link URL for the intake form submission.\n * @minLength 1\n * @maxLength 2048\n */\n intakeFormUrl?: string | null;\n /**\n * Encrypted token containing contact details. Available only if you specified `contactId` in request.\n * @maxLength 2048\n */\n token?: string | null;\n}\n\nexport interface DeleteIntakeFormRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n}\n\nexport interface DeleteIntakeFormResponse {}\n\nexport interface ArchiveIntakeFormRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n /**\n * Revision number, which increments by 1 each time the intake form is updated.\n * To prevent conflicting changes, you must specify the current revision when updating the intake form.\n */\n formRevision: string | null;\n}\n\nexport interface ArchiveIntakeFormResponse {\n /** Archived intake form. */\n intakeForm?: IntakeForm;\n}\n\nexport interface UnarchiveIntakeFormRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n /**\n * Revision number, which increments by 1 each time the intake form is updated.\n * To prevent conflicting changes, you must specify the current revision when updating the intake form.\n */\n formRevision: string | null;\n}\n\nexport interface UnarchiveIntakeFormResponse {\n /** Unarchived intake form. */\n intakeForm?: IntakeForm;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface DecryptContactDetailsFromTokenRequest {\n /**\n * Encrypted token containing contact details and creation timestamp.\n * Generated by [Create Customer Submission Link](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-forms/create-customer-submission-link) when a `contactId` is provided.\n * @minLength 1\n * @maxLength 2048\n */\n token?: string;\n}\n\nexport interface DecryptContactDetailsFromTokenResponse {\n /** Contact details extracted from the token. */\n contactDetails?: ContactDetails;\n}\n\nexport interface ContactDetails {\n /**\n * Contact email address. Always present.\n * @format EMAIL\n */\n email?: string;\n /**\n * Contact first name. Present when the contact record has a first name.\n * @maxLength 200\n */\n firstName?: string | null;\n /**\n * Contact last name. Present when the contact record has a last name.\n * @maxLength 200\n */\n lastName?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateCustomerSubmissionLinkApplicationErrors = {\n code?: 'MISSING_SITE_URL';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixIntakeFormsV1IntakeForm from './intake-forms-v1-intake-form-intake-forms.http.js';\nimport * as ambassadorWixIntakeFormsV1IntakeFormTypes from './intake-forms-v1-intake-form-intake-forms.types.js';\nimport * as ambassadorWixIntakeFormsV1IntakeFormUniversalTypes from './intake-forms-v1-intake-form-intake-forms.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function queryIntakeForms(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.QueryIntakeFormsRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.QueryIntakeFormsRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.QueryIntakeFormsResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.QueryIntakeFormsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.queryIntakeForms(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/intake-forms/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateIntakeFormExpirationPeriod(): __PublicMethodMetaInfo<\n 'PATCH',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UpdateIntakeFormExpirationPeriodRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UpdateIntakeFormExpirationPeriodRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UpdateIntakeFormExpirationPeriodResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UpdateIntakeFormExpirationPeriodResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.updateIntakeFormExpirationPeriod(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/intake-forms/{intakeFormId}',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createCustomerSubmissionLink(): __PublicMethodMetaInfo<\n 'GET',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.CreateCustomerSubmissionLinkRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.CreateCustomerSubmissionLinkRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.CreateCustomerSubmissionLinkResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.CreateCustomerSubmissionLinkResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.createCustomerSubmissionLink(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/intake-forms/{intakeFormId}/link',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteIntakeForm(): __PublicMethodMetaInfo<\n 'DELETE',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.DeleteIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.DeleteIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.DeleteIntakeFormResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.DeleteIntakeFormResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.deleteIntakeForm(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/intake-forms/{intakeFormId}',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function archiveIntakeForm(): __PublicMethodMetaInfo<\n 'POST',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.ArchiveIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.ArchiveIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.ArchiveIntakeFormResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.ArchiveIntakeFormResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.archiveIntakeForm(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/intake-forms/{intakeFormId}/archive',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function unarchiveIntakeForm(): __PublicMethodMetaInfo<\n 'POST',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UnarchiveIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UnarchiveIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UnarchiveIntakeFormResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UnarchiveIntakeFormResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.unarchiveIntakeForm(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/intake-forms/{intakeFormId}/unarchive',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n IntakeForm as IntakeFormOriginal,\n QueryIntakeFormsRequest as QueryIntakeFormsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryIntakeFormsResponse as QueryIntakeFormsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpdateIntakeFormExpirationPeriodRequest as UpdateIntakeFormExpirationPeriodRequestOriginal,\n UpdateIntakeFormExpirationPeriodResponse as UpdateIntakeFormExpirationPeriodResponseOriginal,\n CreateCustomerSubmissionLinkRequest as CreateCustomerSubmissionLinkRequestOriginal,\n CreateCustomerSubmissionLinkResponse as CreateCustomerSubmissionLinkResponseOriginal,\n DeleteIntakeFormRequest as DeleteIntakeFormRequestOriginal,\n DeleteIntakeFormResponse as DeleteIntakeFormResponseOriginal,\n ArchiveIntakeFormRequest as ArchiveIntakeFormRequestOriginal,\n ArchiveIntakeFormResponse as ArchiveIntakeFormResponseOriginal,\n UnarchiveIntakeFormRequest as UnarchiveIntakeFormRequestOriginal,\n UnarchiveIntakeFormResponse as UnarchiveIntakeFormResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n DecryptContactDetailsFromTokenRequest as DecryptContactDetailsFromTokenRequestOriginal,\n DecryptContactDetailsFromTokenResponse as DecryptContactDetailsFromTokenResponseOriginal,\n ContactDetails as ContactDetailsOriginal,\n CreateCustomerSubmissionLinkApplicationErrors as CreateCustomerSubmissionLinkApplicationErrorsOriginal,\n} from './intake-forms-v1-intake-form-intake-forms.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,6CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,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MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","SortOrder","queryIntakeForms","updateIntakeFormExpirationPeriod","createCustomerSubmissionLink","deleteIntakeForm","archiveIntakeForm","unarchiveIntakeForm"]}
1
+ {"version":3,"sources":["../../../src/intake-forms-v1-intake-form-intake-forms.http.ts","../../../src/intake-forms-v1-intake-form-intake-forms.types.ts","../../../src/intake-forms-v1-intake-form-intake-forms.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixIntakeformsV1IntakeFormsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/intake-forms',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/intake-forms',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/intake-forms',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/intake-forms/v1/intake-forms',\n destPath: '/v1/intake-forms',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_intake-forms_intake-forms';\n\n/**\n * Retrieves a list of intake forms, with the specified paging, filtering, and sorting.\n *\n * Query Intake Forms runs with these defaults, which you can override:\n *\n * - `createdDate` is sorted in `DESC` order.\n * - `paging.limit` is `50`.\n * - `paging.offset` is `0`.\n *\n * Learn more about [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language).\n */\nexport function queryIntakeForms(payload: object): RequestOptionsFactory<any> {\n function __queryIntakeForms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'POST' as any,\n methodFqn: 'wix.intakeforms.v1.IntakeFormsService.QueryIntakeForms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'intakeForms.createdDate' },\n { path: 'intakeForms.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryIntakeForms;\n}\n\n/**\n * Updates the expiration period of a specific intake form.\n *\n * When you update the expiration period, the system recalculates expiration for all existing submissions.\n */\nexport function updateIntakeFormExpirationPeriod(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateIntakeFormExpirationPeriod({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.intakeforms.v1.IntakeFormsService.UpdateIntakeFormExpirationPeriod',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'intakeForm.createdDate' },\n { path: 'intakeForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateIntakeFormExpirationPeriod;\n}\n\n/**\n * Creates a shareable link for customers to submit an intake form.\n *\n * The link is valid for 72 hours.\n */\nexport function createCustomerSubmissionLink(\n payload: object\n): RequestOptionsFactory<any> {\n function __createCustomerSubmissionLink({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'GET' as any,\n methodFqn:\n 'wix.intakeforms.v1.IntakeFormsService.CreateCustomerSubmissionLink',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}/link',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __createCustomerSubmissionLink;\n}\n\n/**\n * Deletes an intake form.\n *\n *\n * Also deletes the underlying [Wix form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/introduction).\n *\n * Existing [submissions](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-form-submissions/introduction) for the intake form aren't automatically deleted but become orphaned.\n * When [querying submissions](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-form-submissions/query-intake-form-submissions), orphaned submissions aren't returned.\n */\nexport function deleteIntakeForm(payload: object): RequestOptionsFactory<any> {\n function __deleteIntakeForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'DELETE' as any,\n methodFqn: 'wix.intakeforms.v1.IntakeFormsService.DeleteIntakeForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteIntakeForm;\n}\n\n/**\n * Archives an intake form, disabling it from accepting new submissions.\n *\n * Existing submissions remain accessible. You can [unarchive](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-forms/unarchive-intake-form) the form later to resume accepting submissions.\n */\nexport function archiveIntakeForm(payload: object): RequestOptionsFactory<any> {\n function __archiveIntakeForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'POST' as any,\n methodFqn: 'wix.intakeforms.v1.IntakeFormsService.ArchiveIntakeForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}/archive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'intakeForm.createdDate' },\n { path: 'intakeForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __archiveIntakeForm;\n}\n\n/** Unarchives an intake form, enabling it to accept new submissions. */\nexport function unarchiveIntakeForm(\n payload: object\n): RequestOptionsFactory<any> {\n function __unarchiveIntakeForm({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.intake_forms.v1.intake_form',\n method: 'POST' as any,\n methodFqn: 'wix.intakeforms.v1.IntakeFormsService.UnarchiveIntakeForm',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}/unarchive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'intakeForm.createdDate' },\n { path: 'intakeForm.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __unarchiveIntakeForm;\n}\n","/**\n * A wrapper around a Wix form that adds expiration tracking and submission management.\n * Intake forms collect information from contacts with time-based validity requirements.\n */\nexport interface IntakeForm {\n /**\n * Intake form ID. Identical to the [Wix Forms form ID](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object).\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Expiration period in months. If not set, submissions don't expire.\n * @min 1\n * @max 60\n */\n expirationPeriodInMonths?: number | null;\n /**\n * Whether the intake form is archived and disabled from accepting new submissions.\n * @readonly\n */\n archived?: boolean | null;\n /**\n * Intake form name.\n * @minLength 1\n * @maxLength 100\n * @readonly\n */\n name?: string | null;\n /**\n * Date and time the intake form was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the intake form was updated in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the intake form is updated.\n * To prevent conflicting changes, the current revision must be passed when updating the intake form.\n * @readonly\n */\n revision?: string | null;\n}\n\nexport interface QueryIntakeFormsRequest {\n /**\n * Filter object.\n * See @API Query Language\n * for more information.\n *\n * For a detailed list of supported filters, see\n * @Supported Filters.\n */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryIntakeFormsResponse {\n /** Retrieved intake forms. */\n intakeForms?: IntakeForm[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateIntakeFormExpirationPeriodRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n /**\n * New expiration period in months. If not set, submissions don't expire.\n * @min 1\n * @max 60\n */\n expirationPeriodInMonths?: number | null;\n /**\n * Revision number, which increments by 1 each time the intake form is updated.\n * To prevent conflicting changes, you must specify the current revision when updating the intake form.\n */\n formRevision: string | null;\n}\n\nexport interface UpdateIntakeFormExpirationPeriodResponse {\n /** Updated intake form. */\n intakeForm?: IntakeForm;\n}\n\nexport interface CreateCustomerSubmissionLinkRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n /**\n * [Contact](https://dev.wix.com/docs/api-reference/crm/members-contacts/contacts/contacts/introduction) ID to personalize and pre-fill the submission with the contact's information.\n * @format GUID\n */\n contactId?: string | null;\n}\n\nexport interface CreateCustomerSubmissionLinkResponse {\n /**\n * Generated link URL for the intake form submission.\n * @minLength 1\n * @maxLength 2048\n */\n intakeFormUrl?: string | null;\n /**\n * Encrypted token containing contact details. Available only if you specified `contactId` in request.\n * @maxLength 2048\n */\n token?: string | null;\n}\n\nexport interface DeleteIntakeFormRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n}\n\nexport interface DeleteIntakeFormResponse {}\n\nexport interface ArchiveIntakeFormRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n /**\n * Revision number, which increments by 1 each time the intake form is updated.\n * To prevent conflicting changes, you must specify the current revision when updating the intake form.\n */\n formRevision: string | null;\n}\n\nexport interface ArchiveIntakeFormResponse {\n /** Archived intake form. */\n intakeForm?: IntakeForm;\n}\n\nexport interface UnarchiveIntakeFormRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string | null;\n /**\n * Revision number, which increments by 1 each time the intake form is updated.\n * To prevent conflicting changes, you must specify the current revision when updating the intake form.\n */\n formRevision: string | null;\n}\n\nexport interface UnarchiveIntakeFormResponse {\n /** Unarchived intake form. */\n intakeForm?: IntakeForm;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface DecryptContactDetailsFromTokenRequest {\n /**\n * Encrypted token containing contact details and creation timestamp.\n * Generated by [Create Customer Submission Link](https://dev.wix.com/docs/api-reference/crm/forms/other-services/intake-forms/intake-forms/create-customer-submission-link) when a `contactId` is provided.\n * @minLength 1\n * @maxLength 2048\n */\n token?: string;\n}\n\nexport interface DecryptContactDetailsFromTokenResponse {\n /** Contact details extracted from the token. */\n contactDetails?: ContactDetails;\n}\n\nexport interface ContactDetails {\n /**\n * Contact email address. Always present.\n * @format EMAIL\n */\n email?: string;\n /**\n * Contact first name. Present when the contact record has a first name.\n * @maxLength 200\n */\n firstName?: string | null;\n /**\n * Contact last name. Present when the contact record has a last name.\n * @maxLength 200\n */\n lastName?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateCustomerSubmissionLinkApplicationErrors = {\n code?: 'MISSING_SITE_URL';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixIntakeFormsV1IntakeForm from './intake-forms-v1-intake-form-intake-forms.http.js';\nimport * as ambassadorWixIntakeFormsV1IntakeFormTypes from './intake-forms-v1-intake-form-intake-forms.types.js';\nimport * as ambassadorWixIntakeFormsV1IntakeFormUniversalTypes from './intake-forms-v1-intake-form-intake-forms.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function queryIntakeForms(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.QueryIntakeFormsRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.QueryIntakeFormsRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.QueryIntakeFormsResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.QueryIntakeFormsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.queryIntakeForms(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/intake-forms/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateIntakeFormExpirationPeriod(): __PublicMethodMetaInfo<\n 'PATCH',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UpdateIntakeFormExpirationPeriodRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UpdateIntakeFormExpirationPeriodRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UpdateIntakeFormExpirationPeriodResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UpdateIntakeFormExpirationPeriodResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.updateIntakeFormExpirationPeriod(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/intake-forms/{intakeFormId}',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createCustomerSubmissionLink(): __PublicMethodMetaInfo<\n 'GET',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.CreateCustomerSubmissionLinkRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.CreateCustomerSubmissionLinkRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.CreateCustomerSubmissionLinkResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.CreateCustomerSubmissionLinkResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.createCustomerSubmissionLink(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/intake-forms/{intakeFormId}/link',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteIntakeForm(): __PublicMethodMetaInfo<\n 'DELETE',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.DeleteIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.DeleteIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.DeleteIntakeFormResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.DeleteIntakeFormResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.deleteIntakeForm(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/intake-forms/{intakeFormId}',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function archiveIntakeForm(): __PublicMethodMetaInfo<\n 'POST',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.ArchiveIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.ArchiveIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.ArchiveIntakeFormResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.ArchiveIntakeFormResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.archiveIntakeForm(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/intake-forms/{intakeFormId}/archive',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function unarchiveIntakeForm(): __PublicMethodMetaInfo<\n 'POST',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UnarchiveIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UnarchiveIntakeFormRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UnarchiveIntakeFormResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UnarchiveIntakeFormResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.unarchiveIntakeForm(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/intake-forms/{intakeFormId}/unarchive',\n pathParams: { intakeFormId: 'intakeFormId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n IntakeForm as IntakeFormOriginal,\n QueryIntakeFormsRequest as QueryIntakeFormsRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryIntakeFormsResponse as QueryIntakeFormsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpdateIntakeFormExpirationPeriodRequest as UpdateIntakeFormExpirationPeriodRequestOriginal,\n UpdateIntakeFormExpirationPeriodResponse as UpdateIntakeFormExpirationPeriodResponseOriginal,\n CreateCustomerSubmissionLinkRequest as CreateCustomerSubmissionLinkRequestOriginal,\n CreateCustomerSubmissionLinkResponse as CreateCustomerSubmissionLinkResponseOriginal,\n DeleteIntakeFormRequest as DeleteIntakeFormRequestOriginal,\n DeleteIntakeFormResponse as DeleteIntakeFormResponseOriginal,\n ArchiveIntakeFormRequest as ArchiveIntakeFormRequestOriginal,\n ArchiveIntakeFormResponse as ArchiveIntakeFormResponseOriginal,\n UnarchiveIntakeFormRequest as UnarchiveIntakeFormRequestOriginal,\n UnarchiveIntakeFormResponse as UnarchiveIntakeFormResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n DecryptContactDetailsFromTokenRequest as DecryptContactDetailsFromTokenRequestOriginal,\n DecryptContactDetailsFromTokenResponse as DecryptContactDetailsFromTokenResponseOriginal,\n ContactDetails as ContactDetailsOriginal,\n CreateCustomerSubmissionLinkApplicationErrors as CreateCustomerSubmissionLinkApplicationErrorsOriginal,\n} from './intake-forms-v1-intake-form-intake-forms.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,6CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IAC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AAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,cAAc,eAAe;AAAA,IAC3C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","SortOrder","queryIntakeForms","updateIntakeFormExpirationPeriod","createCustomerSubmissionLink","deleteIntakeForm","archiveIntakeForm","unarchiveIntakeForm"]}
@@ -0,0 +1,173 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const QueryIntakeFormsRequest: z.ZodObject<{
4
+ query: z.ZodObject<{
5
+ filter: z.ZodOptional<z.ZodObject<{
6
+ _id: z.ZodOptional<z.ZodObject<{
7
+ $eq: z.ZodOptional<z.ZodString>;
8
+ $exists: z.ZodOptional<z.ZodBoolean>;
9
+ $gt: z.ZodOptional<z.ZodString>;
10
+ $gte: z.ZodOptional<z.ZodString>;
11
+ $hasAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ $hasSome: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
14
+ $lt: z.ZodOptional<z.ZodString>;
15
+ $lte: z.ZodOptional<z.ZodString>;
16
+ $ne: z.ZodOptional<z.ZodString>;
17
+ $nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ $startsWith: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strict>>;
20
+ name: z.ZodOptional<z.ZodObject<{
21
+ $eq: z.ZodOptional<z.ZodString>;
22
+ $exists: z.ZodOptional<z.ZodBoolean>;
23
+ $gt: z.ZodOptional<z.ZodString>;
24
+ $gte: z.ZodOptional<z.ZodString>;
25
+ $hasAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
+ $hasSome: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ $lt: z.ZodOptional<z.ZodString>;
29
+ $lte: z.ZodOptional<z.ZodString>;
30
+ $ne: z.ZodOptional<z.ZodString>;
31
+ $nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
32
+ $startsWith: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strict>>;
34
+ archived: z.ZodOptional<z.ZodObject<{
35
+ $eq: z.ZodOptional<z.ZodBoolean>;
36
+ $exists: z.ZodOptional<z.ZodBoolean>;
37
+ $gt: z.ZodOptional<z.ZodBoolean>;
38
+ $gte: z.ZodOptional<z.ZodBoolean>;
39
+ $hasAll: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
40
+ $hasSome: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
41
+ $in: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
42
+ $lt: z.ZodOptional<z.ZodBoolean>;
43
+ $lte: z.ZodOptional<z.ZodBoolean>;
44
+ $ne: z.ZodOptional<z.ZodBoolean>;
45
+ $nin: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
46
+ $startsWith: z.ZodOptional<z.ZodString>;
47
+ }, z.core.$strict>>;
48
+ _createdDate: z.ZodOptional<z.ZodObject<{
49
+ $eq: z.ZodOptional<z.ZodString>;
50
+ $exists: z.ZodOptional<z.ZodBoolean>;
51
+ $gt: z.ZodOptional<z.ZodString>;
52
+ $gte: z.ZodOptional<z.ZodString>;
53
+ $hasAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
+ $hasSome: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
+ $lt: z.ZodOptional<z.ZodString>;
57
+ $lte: z.ZodOptional<z.ZodString>;
58
+ $ne: z.ZodOptional<z.ZodString>;
59
+ $nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
+ $startsWith: z.ZodOptional<z.ZodString>;
61
+ }, z.core.$strict>>;
62
+ _updatedDate: z.ZodOptional<z.ZodObject<{
63
+ $eq: z.ZodOptional<z.ZodString>;
64
+ $exists: z.ZodOptional<z.ZodBoolean>;
65
+ $gt: z.ZodOptional<z.ZodString>;
66
+ $gte: z.ZodOptional<z.ZodString>;
67
+ $hasAll: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
+ $hasSome: z.ZodOptional<z.ZodArray<z.ZodString>>;
69
+ $in: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
+ $lt: z.ZodOptional<z.ZodString>;
71
+ $lte: z.ZodOptional<z.ZodString>;
72
+ $ne: z.ZodOptional<z.ZodString>;
73
+ $nin: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ $startsWith: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strict>>;
76
+ $and: z.ZodOptional<z.ZodArray<z.ZodAny>>;
77
+ $or: z.ZodOptional<z.ZodArray<z.ZodAny>>;
78
+ $not: z.ZodOptional<z.ZodAny>;
79
+ }, z.core.$strict>>;
80
+ sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
+ fieldName: z.ZodOptional<z.ZodEnum<{
82
+ _id: "_id";
83
+ _createdDate: "_createdDate";
84
+ _updatedDate: "_updatedDate";
85
+ archived: "archived";
86
+ name: "name";
87
+ }>>;
88
+ order: z.ZodOptional<z.ZodEnum<{
89
+ ASC: "ASC";
90
+ DESC: "DESC";
91
+ }>>;
92
+ }, z.core.$strip>>>;
93
+ }, z.core.$catchall<z.ZodAny>>;
94
+ }, z.core.$strip>;
95
+ declare const QueryIntakeFormsResponse: z.ZodObject<{
96
+ intakeForms: z.ZodOptional<z.ZodArray<z.ZodObject<{
97
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
98
+ expirationPeriodInMonths: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
99
+ archived: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
100
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
101
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
102
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
103
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
104
+ }, z.core.$strip>>>;
105
+ pagingMetadata: z.ZodOptional<z.ZodObject<{
106
+ count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
107
+ cursors: z.ZodOptional<z.ZodObject<{
108
+ next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
+ prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
110
+ }, z.core.$strip>>;
111
+ hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
112
+ }, z.core.$strip>>;
113
+ }, z.core.$strip>;
114
+ declare const UpdateIntakeFormExpirationPeriodRequest: z.ZodObject<{
115
+ intakeFormId: z.ZodString;
116
+ options: z.ZodObject<{
117
+ expirationPeriodInMonths: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
118
+ formRevision: z.ZodString;
119
+ }, z.core.$strip>;
120
+ }, z.core.$strip>;
121
+ declare const UpdateIntakeFormExpirationPeriodResponse: z.ZodObject<{
122
+ intakeForm: z.ZodOptional<z.ZodObject<{
123
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
124
+ expirationPeriodInMonths: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
125
+ archived: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
126
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
127
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
128
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
129
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
130
+ }, z.core.$strip>>;
131
+ }, z.core.$strip>;
132
+ declare const CreateCustomerSubmissionLinkRequest: z.ZodObject<{
133
+ intakeFormId: z.ZodString;
134
+ }, z.core.$strip>;
135
+ declare const CreateCustomerSubmissionLinkResponse: z.ZodObject<{
136
+ intakeFormUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
137
+ }, z.core.$strip>;
138
+ declare const DeleteIntakeFormRequest: z.ZodObject<{
139
+ intakeFormId: z.ZodString;
140
+ }, z.core.$strip>;
141
+ declare const DeleteIntakeFormResponse: z.ZodObject<{}, z.core.$strip>;
142
+ declare const ArchiveIntakeFormRequest: z.ZodObject<{
143
+ intakeFormId: z.ZodString;
144
+ formRevision: z.ZodString;
145
+ }, z.core.$strip>;
146
+ declare const ArchiveIntakeFormResponse: z.ZodObject<{
147
+ intakeForm: z.ZodOptional<z.ZodObject<{
148
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
149
+ expirationPeriodInMonths: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
150
+ archived: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
151
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
152
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
153
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
154
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
155
+ }, z.core.$strip>>;
156
+ }, z.core.$strip>;
157
+ declare const UnarchiveIntakeFormRequest: z.ZodObject<{
158
+ intakeFormId: z.ZodString;
159
+ formRevision: z.ZodString;
160
+ }, z.core.$strip>;
161
+ declare const UnarchiveIntakeFormResponse: z.ZodObject<{
162
+ intakeForm: z.ZodOptional<z.ZodObject<{
163
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
164
+ expirationPeriodInMonths: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
165
+ archived: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
166
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
167
+ _createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
168
+ _updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
169
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
170
+ }, z.core.$strip>>;
171
+ }, z.core.$strip>;
172
+
173
+ export { ArchiveIntakeFormRequest, ArchiveIntakeFormResponse, CreateCustomerSubmissionLinkRequest, CreateCustomerSubmissionLinkResponse, DeleteIntakeFormRequest, DeleteIntakeFormResponse, QueryIntakeFormsRequest, QueryIntakeFormsResponse, UnarchiveIntakeFormRequest, UnarchiveIntakeFormResponse, UpdateIntakeFormExpirationPeriodRequest, UpdateIntakeFormExpirationPeriodResponse };
@@ -0,0 +1,274 @@
1
+ // src/intake-forms-v1-intake-form-intake-forms.schemas.ts
2
+ import * as z from "zod";
3
+ var QueryIntakeFormsRequest = z.object({
4
+ query: z.object({
5
+ filter: z.object({
6
+ _id: z.object({
7
+ $eq: z.string(),
8
+ $exists: z.boolean(),
9
+ $gt: z.string(),
10
+ $gte: z.string(),
11
+ $hasAll: z.array(z.string()),
12
+ $hasSome: z.array(z.string()),
13
+ $in: z.array(z.string()),
14
+ $lt: z.string(),
15
+ $lte: z.string(),
16
+ $ne: z.string(),
17
+ $nin: z.array(z.string()),
18
+ $startsWith: z.string()
19
+ }).partial().strict().optional(),
20
+ name: z.object({
21
+ $eq: z.string(),
22
+ $exists: z.boolean(),
23
+ $gt: z.string(),
24
+ $gte: z.string(),
25
+ $hasAll: z.array(z.string()),
26
+ $hasSome: z.array(z.string()),
27
+ $in: z.array(z.string()),
28
+ $lt: z.string(),
29
+ $lte: z.string(),
30
+ $ne: z.string(),
31
+ $nin: z.array(z.string()),
32
+ $startsWith: z.string()
33
+ }).partial().strict().optional(),
34
+ archived: z.object({
35
+ $eq: z.boolean(),
36
+ $exists: z.boolean(),
37
+ $gt: z.boolean(),
38
+ $gte: z.boolean(),
39
+ $hasAll: z.array(z.boolean()),
40
+ $hasSome: z.array(z.boolean()),
41
+ $in: z.array(z.boolean()),
42
+ $lt: z.boolean(),
43
+ $lte: z.boolean(),
44
+ $ne: z.boolean(),
45
+ $nin: z.array(z.boolean()),
46
+ $startsWith: z.string()
47
+ }).partial().strict().optional(),
48
+ _createdDate: z.object({
49
+ $eq: z.string(),
50
+ $exists: z.boolean(),
51
+ $gt: z.string(),
52
+ $gte: z.string(),
53
+ $hasAll: z.array(z.string()),
54
+ $hasSome: z.array(z.string()),
55
+ $in: z.array(z.string()),
56
+ $lt: z.string(),
57
+ $lte: z.string(),
58
+ $ne: z.string(),
59
+ $nin: z.array(z.string()),
60
+ $startsWith: z.string()
61
+ }).partial().strict().optional(),
62
+ _updatedDate: z.object({
63
+ $eq: z.string(),
64
+ $exists: z.boolean(),
65
+ $gt: z.string(),
66
+ $gte: z.string(),
67
+ $hasAll: z.array(z.string()),
68
+ $hasSome: z.array(z.string()),
69
+ $in: z.array(z.string()),
70
+ $lt: z.string(),
71
+ $lte: z.string(),
72
+ $ne: z.string(),
73
+ $nin: z.array(z.string()),
74
+ $startsWith: z.string()
75
+ }).partial().strict().optional(),
76
+ $and: z.array(z.any()).optional(),
77
+ $or: z.array(z.any()).optional(),
78
+ $not: z.any().optional()
79
+ }).strict().optional(),
80
+ sort: z.array(
81
+ z.object({
82
+ fieldName: z.enum(["_id", "name", "archived", "_createdDate", "_updatedDate"]).optional(),
83
+ order: z.enum(["ASC", "DESC"]).optional()
84
+ })
85
+ ).optional()
86
+ }).catchall(z.any()).describe(
87
+ "Filter object.\nSee @API Query Language\nfor more information.\n\nFor a detailed list of supported filters, see\n@Supported Filters."
88
+ )
89
+ });
90
+ var QueryIntakeFormsResponse = z.object({
91
+ intakeForms: z.array(
92
+ z.object({
93
+ _id: z.string().describe(
94
+ "Intake form ID. Identical to the [Wix Forms form ID](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object)."
95
+ ).regex(
96
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
97
+ "Must be a valid GUID"
98
+ ).optional().nullable(),
99
+ expirationPeriodInMonths: z.number().int().describe(
100
+ "Expiration period in months. If not set, submissions don't expire."
101
+ ).min(1).max(60).optional().nullable(),
102
+ archived: z.boolean().describe(
103
+ "Whether the intake form is archived and disabled from accepting new submissions."
104
+ ).optional().nullable(),
105
+ name: z.string().describe("Intake form name.").min(1).max(100).optional().nullable(),
106
+ _createdDate: z.date().describe(
107
+ "Date and time the intake form was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format."
108
+ ).optional().nullable(),
109
+ _updatedDate: z.date().describe(
110
+ "Date and time the intake form was updated in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format."
111
+ ).optional().nullable(),
112
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
113
+ "Revision number, which increments by 1 each time the intake form is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the intake form."
114
+ ).optional().nullable()
115
+ })
116
+ ).optional(),
117
+ pagingMetadata: z.object({
118
+ count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
119
+ cursors: z.object({
120
+ next: z.string().describe(
121
+ "Cursor string pointing to the next page in the list of results."
122
+ ).max(16e3).optional().nullable(),
123
+ prev: z.string().describe(
124
+ "Cursor pointing to the previous page in the list of results."
125
+ ).max(16e3).optional().nullable()
126
+ }).describe(
127
+ "Cursor strings that point to the next page, previous page, or both."
128
+ ).optional(),
129
+ hasNext: z.boolean().describe(
130
+ "Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
131
+ ).optional().nullable()
132
+ }).describe("Paging metadata.").optional()
133
+ });
134
+ var UpdateIntakeFormExpirationPeriodRequest = z.object({
135
+ intakeFormId: z.string().describe("Intake form ID.").regex(
136
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
137
+ "Must be a valid GUID"
138
+ ),
139
+ options: z.object({
140
+ expirationPeriodInMonths: z.number().int().describe(
141
+ "New expiration period in months. If not set, submissions don't expire."
142
+ ).min(1).max(60).optional().nullable(),
143
+ formRevision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
144
+ "Revision number, which increments by 1 each time the intake form is updated.\nTo prevent conflicting changes, you must specify the current revision when updating the intake form."
145
+ )
146
+ })
147
+ });
148
+ var UpdateIntakeFormExpirationPeriodResponse = z.object({
149
+ intakeForm: z.object({
150
+ _id: z.string().describe(
151
+ "Intake form ID. Identical to the [Wix Forms form ID](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object)."
152
+ ).regex(
153
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
154
+ "Must be a valid GUID"
155
+ ).optional().nullable(),
156
+ expirationPeriodInMonths: z.number().int().describe(
157
+ "Expiration period in months. If not set, submissions don't expire."
158
+ ).min(1).max(60).optional().nullable(),
159
+ archived: z.boolean().describe(
160
+ "Whether the intake form is archived and disabled from accepting new submissions."
161
+ ).optional().nullable(),
162
+ name: z.string().describe("Intake form name.").min(1).max(100).optional().nullable(),
163
+ _createdDate: z.date().describe(
164
+ "Date and time the intake form was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format."
165
+ ).optional().nullable(),
166
+ _updatedDate: z.date().describe(
167
+ "Date and time the intake form was updated in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format."
168
+ ).optional().nullable(),
169
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
170
+ "Revision number, which increments by 1 each time the intake form is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the intake form."
171
+ ).optional().nullable()
172
+ }).describe("Updated intake form.").optional()
173
+ });
174
+ var CreateCustomerSubmissionLinkRequest = z.object({
175
+ intakeFormId: z.string().describe("Intake form ID.").regex(
176
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
177
+ "Must be a valid GUID"
178
+ )
179
+ });
180
+ var CreateCustomerSubmissionLinkResponse = z.object({
181
+ intakeFormUrl: z.string().describe("Generated link URL for the intake form submission.").min(1).max(2048).optional().nullable()
182
+ });
183
+ var DeleteIntakeFormRequest = z.object({
184
+ intakeFormId: z.string().describe("Intake form ID.").regex(
185
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
186
+ "Must be a valid GUID"
187
+ )
188
+ });
189
+ var DeleteIntakeFormResponse = z.object({});
190
+ var ArchiveIntakeFormRequest = z.object({
191
+ intakeFormId: z.string().describe("Intake form ID.").regex(
192
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
193
+ "Must be a valid GUID"
194
+ ),
195
+ formRevision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
196
+ "Revision number, which increments by 1 each time the intake form is updated.\nTo prevent conflicting changes, you must specify the current revision when updating the intake form."
197
+ )
198
+ });
199
+ var ArchiveIntakeFormResponse = z.object({
200
+ intakeForm: z.object({
201
+ _id: z.string().describe(
202
+ "Intake form ID. Identical to the [Wix Forms form ID](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object)."
203
+ ).regex(
204
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
205
+ "Must be a valid GUID"
206
+ ).optional().nullable(),
207
+ expirationPeriodInMonths: z.number().int().describe(
208
+ "Expiration period in months. If not set, submissions don't expire."
209
+ ).min(1).max(60).optional().nullable(),
210
+ archived: z.boolean().describe(
211
+ "Whether the intake form is archived and disabled from accepting new submissions."
212
+ ).optional().nullable(),
213
+ name: z.string().describe("Intake form name.").min(1).max(100).optional().nullable(),
214
+ _createdDate: z.date().describe(
215
+ "Date and time the intake form was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format."
216
+ ).optional().nullable(),
217
+ _updatedDate: z.date().describe(
218
+ "Date and time the intake form was updated in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format."
219
+ ).optional().nullable(),
220
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
221
+ "Revision number, which increments by 1 each time the intake form is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the intake form."
222
+ ).optional().nullable()
223
+ }).describe("Archived intake form.").optional()
224
+ });
225
+ var UnarchiveIntakeFormRequest = z.object({
226
+ intakeFormId: z.string().describe("Intake form ID.").regex(
227
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
228
+ "Must be a valid GUID"
229
+ ),
230
+ formRevision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
231
+ "Revision number, which increments by 1 each time the intake form is updated.\nTo prevent conflicting changes, you must specify the current revision when updating the intake form."
232
+ )
233
+ });
234
+ var UnarchiveIntakeFormResponse = z.object({
235
+ intakeForm: z.object({
236
+ _id: z.string().describe(
237
+ "Intake form ID. Identical to the [Wix Forms form ID](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object)."
238
+ ).regex(
239
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
240
+ "Must be a valid GUID"
241
+ ).optional().nullable(),
242
+ expirationPeriodInMonths: z.number().int().describe(
243
+ "Expiration period in months. If not set, submissions don't expire."
244
+ ).min(1).max(60).optional().nullable(),
245
+ archived: z.boolean().describe(
246
+ "Whether the intake form is archived and disabled from accepting new submissions."
247
+ ).optional().nullable(),
248
+ name: z.string().describe("Intake form name.").min(1).max(100).optional().nullable(),
249
+ _createdDate: z.date().describe(
250
+ "Date and time the intake form was created in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format."
251
+ ).optional().nullable(),
252
+ _updatedDate: z.date().describe(
253
+ "Date and time the intake form was updated in UTC datetime `YYYY-MM-DDThh:mm:ssZ` format."
254
+ ).optional().nullable(),
255
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
256
+ "Revision number, which increments by 1 each time the intake form is updated.\nTo prevent conflicting changes, the current revision must be passed when updating the intake form."
257
+ ).optional().nullable()
258
+ }).describe("Unarchived intake form.").optional()
259
+ });
260
+ export {
261
+ ArchiveIntakeFormRequest,
262
+ ArchiveIntakeFormResponse,
263
+ CreateCustomerSubmissionLinkRequest,
264
+ CreateCustomerSubmissionLinkResponse,
265
+ DeleteIntakeFormRequest,
266
+ DeleteIntakeFormResponse,
267
+ QueryIntakeFormsRequest,
268
+ QueryIntakeFormsResponse,
269
+ UnarchiveIntakeFormRequest,
270
+ UnarchiveIntakeFormResponse,
271
+ UpdateIntakeFormExpirationPeriodRequest,
272
+ UpdateIntakeFormExpirationPeriodResponse
273
+ };
274
+ //# sourceMappingURL=schemas.mjs.map