@wix/auto_sdk_intake-forms_intake-forms 1.0.9 → 1.0.11
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.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +78 -62
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +71 -2
- package/build/cjs/index.typings.js +68 -62
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +56 -3
- package/build/cjs/meta.js +53 -64
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +77 -62
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +71 -2
- package/build/es/index.typings.mjs +67 -62
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +56 -3
- package/build/es/meta.mjs +51 -63
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +31 -3
- package/build/internal/cjs/index.js +78 -62
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +117 -2
- package/build/internal/cjs/index.typings.js +68 -62
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +56 -3
- package/build/internal/cjs/meta.js +53 -64
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +31 -3
- package/build/internal/es/index.mjs +77 -62
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +117 -2
- package/build/internal/es/index.typings.mjs +67 -62
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +56 -3
- package/build/internal/es/meta.mjs +51 -63
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { QueryIntakeFormsRequest as QueryIntakeFormsRequest$1, QueryIntakeFormsResponse as QueryIntakeFormsResponse$1, UpdateIntakeFormExpirationPeriodRequest as UpdateIntakeFormExpirationPeriodRequest$1, UpdateIntakeFormExpirationPeriodResponse as UpdateIntakeFormExpirationPeriodResponse$1, CreateCustomerSubmissionLinkRequest as CreateCustomerSubmissionLinkRequest$1, CreateCustomerSubmissionLinkResponse as CreateCustomerSubmissionLinkResponse$1, DeleteIntakeFormRequest as DeleteIntakeFormRequest$1, DeleteIntakeFormResponse as DeleteIntakeFormResponse$1, ArchiveIntakeFormRequest as ArchiveIntakeFormRequest$1, ArchiveIntakeFormResponse as ArchiveIntakeFormResponse$1, UnarchiveIntakeFormRequest as UnarchiveIntakeFormRequest$1, UnarchiveIntakeFormResponse as UnarchiveIntakeFormResponse$1 } from './index.typings.js';
|
|
1
|
+
import { QueryIntakeFormsRequest as QueryIntakeFormsRequest$1, QueryIntakeFormsResponse as QueryIntakeFormsResponse$1, UpdateIntakeFormExpirationPeriodRequest as UpdateIntakeFormExpirationPeriodRequest$1, UpdateIntakeFormExpirationPeriodResponse as UpdateIntakeFormExpirationPeriodResponse$1, UpdateIntakeFormSettingsRequest as UpdateIntakeFormSettingsRequest$1, UpdateIntakeFormSettingsResponse as UpdateIntakeFormSettingsResponse$1, CreateCustomerSubmissionLinkRequest as CreateCustomerSubmissionLinkRequest$1, CreateCustomerSubmissionLinkResponse as CreateCustomerSubmissionLinkResponse$1, DeleteIntakeFormRequest as DeleteIntakeFormRequest$1, DeleteIntakeFormResponse as DeleteIntakeFormResponse$1, ArchiveIntakeFormRequest as ArchiveIntakeFormRequest$1, ArchiveIntakeFormResponse as ArchiveIntakeFormResponse$1, UnarchiveIntakeFormRequest as UnarchiveIntakeFormRequest$1, UnarchiveIntakeFormResponse as UnarchiveIntakeFormResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -47,6 +47,17 @@ interface IntakeForm {
|
|
|
47
47
|
*/
|
|
48
48
|
revision?: string | null;
|
|
49
49
|
}
|
|
50
|
+
/** A reference to a Wix Forms field that triggers `PENDING_APPROVAL` when filled. */
|
|
51
|
+
interface PendingTriggerField {
|
|
52
|
+
/**
|
|
53
|
+
* ID of the [Wix Forms field](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object) that drives the trigger.
|
|
54
|
+
* Must reference a visible input field of a supported type — checkbox or radio in v1. Configuring an unsupported,
|
|
55
|
+
* hidden, or unknown field via `UpdateIntakeFormSettings` is rejected with `UNSUPPORTED_TRIGGER_FIELD`.
|
|
56
|
+
* Stored as the stable field ID (not the translatable label).
|
|
57
|
+
* @format GUID
|
|
58
|
+
*/
|
|
59
|
+
formFieldId?: string;
|
|
60
|
+
}
|
|
50
61
|
interface QueryIntakeFormsRequest {
|
|
51
62
|
/**
|
|
52
63
|
* Filter object.
|
|
@@ -171,6 +182,39 @@ interface UpdateIntakeFormExpirationPeriodResponse {
|
|
|
171
182
|
/** Updated intake form. */
|
|
172
183
|
intakeForm?: IntakeForm;
|
|
173
184
|
}
|
|
185
|
+
interface UpdateIntakeFormSettingsRequest {
|
|
186
|
+
/**
|
|
187
|
+
* Intake form ID.
|
|
188
|
+
* @format GUID
|
|
189
|
+
*/
|
|
190
|
+
intakeFormId: string;
|
|
191
|
+
/**
|
|
192
|
+
* Revision number, which increments by 1 each time the intake form is updated.
|
|
193
|
+
* To prevent conflicting changes, you must specify the current revision when updating the intake form.
|
|
194
|
+
*/
|
|
195
|
+
formRevision: string;
|
|
196
|
+
/**
|
|
197
|
+
* Base expiration period in months. Omit to leave unchanged; explicit null clears it (submissions don't expire).
|
|
198
|
+
* @min 1
|
|
199
|
+
* @max 60
|
|
200
|
+
*/
|
|
201
|
+
expirationPeriodInMonths?: number | null;
|
|
202
|
+
/**
|
|
203
|
+
* Expiration period in months applied only to submissions that fire a trigger field. Has no effect when `pending_trigger_fields` is empty. Omit to leave unchanged; explicit null clears it (triggered submissions fall back to the base period).
|
|
204
|
+
* @min 1
|
|
205
|
+
* @max 60
|
|
206
|
+
*/
|
|
207
|
+
triggeredExpirationPeriodInMonths?: number | null;
|
|
208
|
+
/**
|
|
209
|
+
* Trigger fields that mark a new submission as `PENDING_APPROVAL` when filled. Each must reference a visible input field of a supported type (checkbox or radio in v1); otherwise rejected with `UNSUPPORTED_TRIGGER_FIELD`. An empty list clears all triggers (feature off for this form).
|
|
210
|
+
* @maxSize 100
|
|
211
|
+
*/
|
|
212
|
+
pendingTriggerFields?: PendingTriggerField[];
|
|
213
|
+
}
|
|
214
|
+
interface UpdateIntakeFormSettingsResponse {
|
|
215
|
+
/** Updated intake form. */
|
|
216
|
+
intakeForm?: IntakeForm;
|
|
217
|
+
}
|
|
174
218
|
interface CreateCustomerSubmissionLinkRequest {
|
|
175
219
|
/**
|
|
176
220
|
* Intake form ID.
|
|
@@ -266,7 +310,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
266
310
|
/** If present, indicates the action that triggered the event. */
|
|
267
311
|
originatedFrom?: string | null;
|
|
268
312
|
/**
|
|
269
|
-
* 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
|
|
313
|
+
* 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.
|
|
270
314
|
* 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.
|
|
271
315
|
*/
|
|
272
316
|
entityEventSequence?: string | null;
|
|
@@ -334,6 +378,12 @@ interface ContactDetails {
|
|
|
334
378
|
lastName?: string | null;
|
|
335
379
|
}
|
|
336
380
|
/** @docsIgnore */
|
|
381
|
+
type UpdateIntakeFormSettingsApplicationErrors = {
|
|
382
|
+
code?: 'UNSUPPORTED_TRIGGER_FIELD';
|
|
383
|
+
description?: string;
|
|
384
|
+
data?: Record<string, any>;
|
|
385
|
+
};
|
|
386
|
+
/** @docsIgnore */
|
|
337
387
|
type CreateCustomerSubmissionLinkApplicationErrors = {
|
|
338
388
|
code?: 'MISSING_SITE_URL';
|
|
339
389
|
description?: string;
|
|
@@ -354,6 +404,9 @@ declare function queryIntakeForms(): __PublicMethodMetaInfo<'POST', {}, QueryInt
|
|
|
354
404
|
declare function updateIntakeFormExpirationPeriod(): __PublicMethodMetaInfo<'PATCH', {
|
|
355
405
|
intakeFormId: string;
|
|
356
406
|
}, UpdateIntakeFormExpirationPeriodRequest$1, UpdateIntakeFormExpirationPeriodRequest, UpdateIntakeFormExpirationPeriodResponse$1, UpdateIntakeFormExpirationPeriodResponse>;
|
|
407
|
+
declare function updateIntakeFormSettings(): __PublicMethodMetaInfo<'PATCH', {
|
|
408
|
+
intakeFormId: string;
|
|
409
|
+
}, UpdateIntakeFormSettingsRequest$1, UpdateIntakeFormSettingsRequest, UpdateIntakeFormSettingsResponse$1, UpdateIntakeFormSettingsResponse>;
|
|
357
410
|
declare function createCustomerSubmissionLink(): __PublicMethodMetaInfo<'GET', {
|
|
358
411
|
intakeFormId: string;
|
|
359
412
|
}, CreateCustomerSubmissionLinkRequest$1, CreateCustomerSubmissionLinkRequest, CreateCustomerSubmissionLinkResponse$1, CreateCustomerSubmissionLinkResponse>;
|
|
@@ -367,4 +420,4 @@ declare function unarchiveIntakeForm(): __PublicMethodMetaInfo<'POST', {
|
|
|
367
420
|
intakeFormId: string;
|
|
368
421
|
}, UnarchiveIntakeFormRequest$1, UnarchiveIntakeFormRequest, UnarchiveIntakeFormResponse$1, UnarchiveIntakeFormResponse>;
|
|
369
422
|
|
|
370
|
-
export { type ActionEvent as ActionEventOriginal, type ArchiveIntakeFormRequest as ArchiveIntakeFormRequestOriginal, type ArchiveIntakeFormResponse as ArchiveIntakeFormResponseOriginal, type ContactDetails as ContactDetailsOriginal, type CreateCustomerSubmissionLinkApplicationErrors as CreateCustomerSubmissionLinkApplicationErrorsOriginal, type CreateCustomerSubmissionLinkRequest as CreateCustomerSubmissionLinkRequestOriginal, type CreateCustomerSubmissionLinkResponse as CreateCustomerSubmissionLinkResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DecryptContactDetailsFromTokenRequest as DecryptContactDetailsFromTokenRequestOriginal, type DecryptContactDetailsFromTokenResponse as DecryptContactDetailsFromTokenResponseOriginal, type DeleteIntakeFormRequest as DeleteIntakeFormRequestOriginal, type DeleteIntakeFormResponse as DeleteIntakeFormResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type IntakeForm as IntakeFormOriginal, type QueryIntakeFormsRequest as QueryIntakeFormsRequestOriginal, type QueryIntakeFormsResponse as QueryIntakeFormsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type UnarchiveIntakeFormRequest as UnarchiveIntakeFormRequestOriginal, type UnarchiveIntakeFormResponse as UnarchiveIntakeFormResponseOriginal, type UpdateIntakeFormExpirationPeriodRequest as UpdateIntakeFormExpirationPeriodRequestOriginal, type UpdateIntakeFormExpirationPeriodResponse as UpdateIntakeFormExpirationPeriodResponseOriginal, type __PublicMethodMetaInfo, archiveIntakeForm, createCustomerSubmissionLink, deleteIntakeForm, queryIntakeForms, unarchiveIntakeForm, updateIntakeFormExpirationPeriod };
|
|
423
|
+
export { type ActionEvent as ActionEventOriginal, type ArchiveIntakeFormRequest as ArchiveIntakeFormRequestOriginal, type ArchiveIntakeFormResponse as ArchiveIntakeFormResponseOriginal, type ContactDetails as ContactDetailsOriginal, type CreateCustomerSubmissionLinkApplicationErrors as CreateCustomerSubmissionLinkApplicationErrorsOriginal, type CreateCustomerSubmissionLinkRequest as CreateCustomerSubmissionLinkRequestOriginal, type CreateCustomerSubmissionLinkResponse as CreateCustomerSubmissionLinkResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type DecryptContactDetailsFromTokenRequest as DecryptContactDetailsFromTokenRequestOriginal, type DecryptContactDetailsFromTokenResponse as DecryptContactDetailsFromTokenResponseOriginal, type DeleteIntakeFormRequest as DeleteIntakeFormRequestOriginal, type DeleteIntakeFormResponse as DeleteIntakeFormResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type IntakeForm as IntakeFormOriginal, type PendingTriggerField as PendingTriggerFieldOriginal, type QueryIntakeFormsRequest as QueryIntakeFormsRequestOriginal, type QueryIntakeFormsResponse as QueryIntakeFormsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type UnarchiveIntakeFormRequest as UnarchiveIntakeFormRequestOriginal, type UnarchiveIntakeFormResponse as UnarchiveIntakeFormResponseOriginal, type UpdateIntakeFormExpirationPeriodRequest as UpdateIntakeFormExpirationPeriodRequestOriginal, type UpdateIntakeFormExpirationPeriodResponse as UpdateIntakeFormExpirationPeriodResponseOriginal, type UpdateIntakeFormSettingsApplicationErrors as UpdateIntakeFormSettingsApplicationErrorsOriginal, type UpdateIntakeFormSettingsRequest as UpdateIntakeFormSettingsRequestOriginal, type UpdateIntakeFormSettingsResponse as UpdateIntakeFormSettingsResponseOriginal, type __PublicMethodMetaInfo, archiveIntakeForm, createCustomerSubmissionLink, deleteIntakeForm, queryIntakeForms, unarchiveIntakeForm, updateIntakeFormExpirationPeriod, updateIntakeFormSettings };
|
package/build/cjs/meta.js
CHANGED
|
@@ -26,7 +26,8 @@ __export(meta_exports, {
|
|
|
26
26
|
deleteIntakeForm: () => deleteIntakeForm2,
|
|
27
27
|
queryIntakeForms: () => queryIntakeForms2,
|
|
28
28
|
unarchiveIntakeForm: () => unarchiveIntakeForm2,
|
|
29
|
-
updateIntakeFormExpirationPeriod: () => updateIntakeFormExpirationPeriod2
|
|
29
|
+
updateIntakeFormExpirationPeriod: () => updateIntakeFormExpirationPeriod2,
|
|
30
|
+
updateIntakeFormSettings: () => updateIntakeFormSettings2
|
|
30
31
|
});
|
|
31
32
|
module.exports = __toCommonJS(meta_exports);
|
|
32
33
|
|
|
@@ -36,68 +37,7 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
36
37
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
37
38
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
38
39
|
function resolveWixIntakeformsV1IntakeFormsServiceUrl(opts) {
|
|
39
|
-
const domainToMappings = {
|
|
40
|
-
"manage._base_domain_": [
|
|
41
|
-
{
|
|
42
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
43
|
-
destPath: "/v1/intake-forms"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"bo._base_domain_": [
|
|
47
|
-
{
|
|
48
|
-
srcPath: "/_api/intake-forms",
|
|
49
|
-
destPath: ""
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"wixbo.ai": [
|
|
53
|
-
{
|
|
54
|
-
srcPath: "/_api/intake-forms",
|
|
55
|
-
destPath: ""
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"wix-bo.com": [
|
|
59
|
-
{
|
|
60
|
-
srcPath: "/_api/intake-forms",
|
|
61
|
-
destPath: ""
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
_: [
|
|
65
|
-
{
|
|
66
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
67
|
-
destPath: "/v1/intake-forms"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"editor._base_domain_": [
|
|
71
|
-
{
|
|
72
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
73
|
-
destPath: "/v1/intake-forms"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"blocks._base_domain_": [
|
|
77
|
-
{
|
|
78
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
79
|
-
destPath: "/v1/intake-forms"
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"create.editorx": [
|
|
83
|
-
{
|
|
84
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
85
|
-
destPath: "/v1/intake-forms"
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"*.dev.wix-code.com": [
|
|
89
|
-
{
|
|
90
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
91
|
-
destPath: "/v1/intake-forms"
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"www.wixapis.com": [
|
|
95
|
-
{
|
|
96
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
97
|
-
destPath: "/v1/intake-forms"
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
};
|
|
40
|
+
const domainToMappings = {};
|
|
101
41
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
102
42
|
}
|
|
103
43
|
var PACKAGE_NAME = "@wix/auto_sdk_intake-forms_intake-forms";
|
|
@@ -161,6 +101,36 @@ function updateIntakeFormExpirationPeriod(payload) {
|
|
|
161
101
|
}
|
|
162
102
|
return __updateIntakeFormExpirationPeriod;
|
|
163
103
|
}
|
|
104
|
+
function updateIntakeFormSettings(payload) {
|
|
105
|
+
function __updateIntakeFormSettings({ host }) {
|
|
106
|
+
const metadata = {
|
|
107
|
+
entityFqdn: "wix.intake_forms.v1.intake_form",
|
|
108
|
+
method: "PATCH",
|
|
109
|
+
methodFqn: "wix.intakeforms.v1.IntakeFormsService.UpdateIntakeFormSettings",
|
|
110
|
+
packageName: PACKAGE_NAME,
|
|
111
|
+
migrationOptions: {
|
|
112
|
+
optInTransformResponse: true
|
|
113
|
+
},
|
|
114
|
+
url: resolveWixIntakeformsV1IntakeFormsServiceUrl({
|
|
115
|
+
protoPath: "/v1/intake-forms/{intakeFormId}/settings",
|
|
116
|
+
data: payload,
|
|
117
|
+
host
|
|
118
|
+
}),
|
|
119
|
+
data: payload,
|
|
120
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
121
|
+
{
|
|
122
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
123
|
+
paths: [
|
|
124
|
+
{ path: "intakeForm.createdDate" },
|
|
125
|
+
{ path: "intakeForm.updatedDate" }
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
])
|
|
129
|
+
};
|
|
130
|
+
return metadata;
|
|
131
|
+
}
|
|
132
|
+
return __updateIntakeFormSettings;
|
|
133
|
+
}
|
|
164
134
|
function createCustomerSubmissionLink(payload) {
|
|
165
135
|
function __createCustomerSubmissionLink({ host }) {
|
|
166
136
|
const metadata = {
|
|
@@ -310,6 +280,24 @@ function updateIntakeFormExpirationPeriod2() {
|
|
|
310
280
|
__originalResponseType: null
|
|
311
281
|
};
|
|
312
282
|
}
|
|
283
|
+
function updateIntakeFormSettings2() {
|
|
284
|
+
const payload = { intakeFormId: ":intakeFormId" };
|
|
285
|
+
const getRequestOptions = updateIntakeFormSettings(payload);
|
|
286
|
+
const getUrl = (context) => {
|
|
287
|
+
const { url } = getRequestOptions(context);
|
|
288
|
+
return url;
|
|
289
|
+
};
|
|
290
|
+
return {
|
|
291
|
+
getUrl,
|
|
292
|
+
httpMethod: "PATCH",
|
|
293
|
+
path: "/v1/intake-forms/{intakeFormId}/settings",
|
|
294
|
+
pathParams: { intakeFormId: "intakeFormId" },
|
|
295
|
+
__requestType: null,
|
|
296
|
+
__originalRequestType: null,
|
|
297
|
+
__responseType: null,
|
|
298
|
+
__originalResponseType: null
|
|
299
|
+
};
|
|
300
|
+
}
|
|
313
301
|
function createCustomerSubmissionLink2() {
|
|
314
302
|
const payload = { intakeFormId: ":intakeFormId" };
|
|
315
303
|
const getRequestOptions = createCustomerSubmissionLink(payload);
|
|
@@ -390,6 +378,7 @@ function unarchiveIntakeForm2() {
|
|
|
390
378
|
deleteIntakeForm,
|
|
391
379
|
queryIntakeForms,
|
|
392
380
|
unarchiveIntakeForm,
|
|
393
|
-
updateIntakeFormExpirationPeriod
|
|
381
|
+
updateIntakeFormExpirationPeriod,
|
|
382
|
+
updateIntakeFormSettings
|
|
394
383
|
});
|
|
395
384
|
//# sourceMappingURL=meta.js.map
|
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../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":["export * from './src/intake-forms-v1-intake-form-intake-forms.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction 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;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,oCAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,wCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,6CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AA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;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACiC,kBAAkB,OAAO;AAEhE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,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;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACiC,oBAAoB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,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":["archiveIntakeForm","createCustomerSubmissionLink","deleteIntakeForm","queryIntakeForms","unarchiveIntakeForm","updateIntakeFormExpirationPeriod","import_rest_modules","payload","SortOrder","queryIntakeForms","updateIntakeFormExpirationPeriod","createCustomerSubmissionLink","deleteIntakeForm","archiveIntakeForm","unarchiveIntakeForm"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../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":["export * from './src/intake-forms-v1-intake-form-intake-forms.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixIntakeformsV1IntakeFormsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {};\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 * Updates the waivers-managed settings of an intake form in a single call: the base expiration period, the\n * triggered expiration period (applied to submissions that fill a trigger field), and the pending-approval\n * trigger fields.\n *\n * The current `form_revision` is required — the update is rejected if it does not match the stored revision\n * (optimistic locking). The update merges into the waivers settings, preserving any keys not present in the request;\n * an explicitly cleared (null / empty) field reverts that setting to its default.\n *\n * Each `pending_trigger_fields[].form_field_id` must reference a visible input field of a supported type\n * (checkbox or radio in v1). Unsupported, hidden, or unknown field IDs are rejected with `INVALID_ARGUMENT`\n * (application code `UNSUPPORTED_TRIGGER_FIELD`).\n *\n * The `triggered_expiration_period_in_months` applies only to submissions that fire a trigger; it has no\n * effect when `pending_trigger_fields` is empty.\n */\nexport function updateIntakeFormSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateIntakeFormSettings({ 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.UpdateIntakeFormSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixIntakeformsV1IntakeFormsServiceUrl({\n protoPath: '/v1/intake-forms/{intakeFormId}/settings',\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 __updateIntakeFormSettings;\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\n/** A reference to a Wix Forms field that triggers `PENDING_APPROVAL` when filled. */\nexport interface PendingTriggerField {\n /**\n * ID of the [Wix Forms field](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object) that drives the trigger.\n * Must reference a visible input field of a supported type — checkbox or radio in v1. Configuring an unsupported,\n * hidden, or unknown field via `UpdateIntakeFormSettings` is rejected with `UNSUPPORTED_TRIGGER_FIELD`.\n * Stored as the stable field ID (not the translatable label).\n * @format GUID\n */\n formFieldId?: string;\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 UpdateIntakeFormSettingsRequest {\n /**\n * Intake form ID.\n * @format GUID\n */\n intakeFormId: string;\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;\n /**\n * Base expiration period in months. Omit to leave unchanged; explicit null clears it (submissions don't expire).\n * @min 1\n * @max 60\n */\n expirationPeriodInMonths?: number | null;\n /**\n * Expiration period in months applied only to submissions that fire a trigger field. Has no effect when `pending_trigger_fields` is empty. Omit to leave unchanged; explicit null clears it (triggered submissions fall back to the base period).\n * @min 1\n * @max 60\n */\n triggeredExpirationPeriodInMonths?: number | null;\n /**\n * Trigger fields that mark a new submission as `PENDING_APPROVAL` when filled. Each must reference a visible input field of a supported type (checkbox or radio in v1); otherwise rejected with `UNSUPPORTED_TRIGGER_FIELD`. An empty list clears all triggers (feature off for this form).\n * @maxSize 100\n */\n pendingTriggerFields?: PendingTriggerField[];\n}\n\nexport interface UpdateIntakeFormSettingsResponse {\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 UpdateIntakeFormSettingsApplicationErrors = {\n code?: 'UNSUPPORTED_TRIGGER_FIELD';\n description?: string;\n data?: Record<string, any>;\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 updateIntakeFormSettings(): __PublicMethodMetaInfo<\n 'PATCH',\n { intakeFormId: string },\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UpdateIntakeFormSettingsRequest,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UpdateIntakeFormSettingsRequest,\n ambassadorWixIntakeFormsV1IntakeFormUniversalTypes.UpdateIntakeFormSettingsResponse,\n ambassadorWixIntakeFormsV1IntakeFormTypes.UpdateIntakeFormSettingsResponse\n> {\n const payload = { intakeFormId: ':intakeFormId' } as any;\n\n const getRequestOptions =\n ambassadorWixIntakeFormsV1IntakeForm.updateIntakeFormSettings(payload);\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}/settings',\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 PendingTriggerField as PendingTriggerFieldOriginal,\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 UpdateIntakeFormSettingsRequest as UpdateIntakeFormSettingsRequestOriginal,\n UpdateIntakeFormSettingsResponse as UpdateIntakeFormSettingsResponseOriginal,\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 UpdateIntakeFormSettingsApplicationErrors as UpdateIntakeFormSettingsApplicationErrorsOriginal,\n CreateCustomerSubmissionLinkApplicationErrors as CreateCustomerSubmissionLinkApplicationErrorsOriginal,\n} from './intake-forms-v1-intake-form-intake-forms.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,oCAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,wCAAAC;AAAA,EAAA,gCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,6CACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAad,SAAS,iBAAiB,SAA6C;AAC5E,WAAS,mBAAmB,EAAE,KAAK,GAAQ;AACzC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WAAW;AAAA,MACX,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,6CAA6C;AAAA,QAChD,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,MACN,mBAAmB,CAACC,iBAClB,uCAAeA,UAAS;AAAA,QACtB;AAAA,UACE,aAAa;AAAA,UACb,OAAO;AAAA,YACL,EAAE,MAAM,0BAA0B;AAAA,YAClC,EAAE,MAAM,0BAA0B;AAAA,UACpC;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACL;AAEA,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAOO,SAAS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A,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,qBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACiC,kBAAkB,OAAO;AAEhE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,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;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,cAAc,gBAAgB;AAEhD,QAAM,oBACiC,oBAAoB,OAAO;AAElE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,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":["archiveIntakeForm","createCustomerSubmissionLink","deleteIntakeForm","queryIntakeForms","unarchiveIntakeForm","updateIntakeFormExpirationPeriod","updateIntakeFormSettings","import_rest_modules","payload","SortOrder","queryIntakeForms","updateIntakeFormExpirationPeriod","updateIntakeFormSettings","createCustomerSubmissionLink","deleteIntakeForm","archiveIntakeForm","unarchiveIntakeForm"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { UpdateIntakeFormExpirationPeriodOptions, UpdateIntakeFormExpirationPeriodResponse, CreateCustomerSubmissionLinkOptions, CreateCustomerSubmissionLinkResponse, CreateCustomerSubmissionLinkApplicationErrors, ArchiveIntakeFormResponse, UnarchiveIntakeFormResponse, IntakeFormsQueryBuilder, IntakeFormQuery, typedQueryIntakeForms } from './index.typings.mjs';
|
|
3
|
-
export { ActionEvent, ArchiveIntakeFormRequest, CommonQueryWithEntityContext, ContactDetails, CreateCustomerSubmissionLinkRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DecryptContactDetailsFromTokenRequest, DecryptContactDetailsFromTokenResponse, DeleteIntakeFormRequest, DeleteIntakeFormResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, IntakeForm, IntakeFormQuerySpec, IntakeFormsQueryResult, QueryIntakeFormsRequest, QueryIntakeFormsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, UnarchiveIntakeFormRequest, UpdateIntakeFormExpirationPeriodRequest, utils } from './index.typings.mjs';
|
|
3
|
+
export { ActionEvent, ArchiveIntakeFormRequest, CommonQueryWithEntityContext, ContactDetails, CreateCustomerSubmissionLinkRequest, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DecryptContactDetailsFromTokenRequest, DecryptContactDetailsFromTokenResponse, DeleteIntakeFormRequest, DeleteIntakeFormResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, IntakeForm, IntakeFormQuerySpec, IntakeFormsQueryResult, PendingTriggerField, QueryIntakeFormsRequest, QueryIntakeFormsResponse, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, UnarchiveIntakeFormRequest, UpdateIntakeFormExpirationPeriodRequest, UpdateIntakeFormSettingsApplicationErrors, UpdateIntakeFormSettingsOptions, UpdateIntakeFormSettingsRequest, UpdateIntakeFormSettingsResponse, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function updateIntakeFormExpirationPeriod$1(httpClient: HttpClient): UpdateIntakeFormExpirationPeriodSignature;
|
|
6
6
|
interface UpdateIntakeFormExpirationPeriodSignature {
|
package/build/es/index.mjs
CHANGED
|
@@ -12,68 +12,7 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
12
12
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
13
13
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
14
14
|
function resolveWixIntakeformsV1IntakeFormsServiceUrl(opts) {
|
|
15
|
-
const domainToMappings = {
|
|
16
|
-
"manage._base_domain_": [
|
|
17
|
-
{
|
|
18
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
19
|
-
destPath: "/v1/intake-forms"
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
"bo._base_domain_": [
|
|
23
|
-
{
|
|
24
|
-
srcPath: "/_api/intake-forms",
|
|
25
|
-
destPath: ""
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"wixbo.ai": [
|
|
29
|
-
{
|
|
30
|
-
srcPath: "/_api/intake-forms",
|
|
31
|
-
destPath: ""
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"wix-bo.com": [
|
|
35
|
-
{
|
|
36
|
-
srcPath: "/_api/intake-forms",
|
|
37
|
-
destPath: ""
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
_: [
|
|
41
|
-
{
|
|
42
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
43
|
-
destPath: "/v1/intake-forms"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"editor._base_domain_": [
|
|
47
|
-
{
|
|
48
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
49
|
-
destPath: "/v1/intake-forms"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"blocks._base_domain_": [
|
|
53
|
-
{
|
|
54
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
55
|
-
destPath: "/v1/intake-forms"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"create.editorx": [
|
|
59
|
-
{
|
|
60
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
61
|
-
destPath: "/v1/intake-forms"
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"*.dev.wix-code.com": [
|
|
65
|
-
{
|
|
66
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
67
|
-
destPath: "/v1/intake-forms"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"www.wixapis.com": [
|
|
71
|
-
{
|
|
72
|
-
srcPath: "/_api/intake-forms/v1/intake-forms",
|
|
73
|
-
destPath: "/v1/intake-forms"
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
};
|
|
15
|
+
const domainToMappings = {};
|
|
77
16
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
78
17
|
}
|
|
79
18
|
var PACKAGE_NAME = "@wix/auto_sdk_intake-forms_intake-forms";
|
|
@@ -137,6 +76,36 @@ function updateIntakeFormExpirationPeriod(payload) {
|
|
|
137
76
|
}
|
|
138
77
|
return __updateIntakeFormExpirationPeriod;
|
|
139
78
|
}
|
|
79
|
+
function updateIntakeFormSettings(payload) {
|
|
80
|
+
function __updateIntakeFormSettings({ host }) {
|
|
81
|
+
const metadata = {
|
|
82
|
+
entityFqdn: "wix.intake_forms.v1.intake_form",
|
|
83
|
+
method: "PATCH",
|
|
84
|
+
methodFqn: "wix.intakeforms.v1.IntakeFormsService.UpdateIntakeFormSettings",
|
|
85
|
+
packageName: PACKAGE_NAME,
|
|
86
|
+
migrationOptions: {
|
|
87
|
+
optInTransformResponse: true
|
|
88
|
+
},
|
|
89
|
+
url: resolveWixIntakeformsV1IntakeFormsServiceUrl({
|
|
90
|
+
protoPath: "/v1/intake-forms/{intakeFormId}/settings",
|
|
91
|
+
data: payload,
|
|
92
|
+
host
|
|
93
|
+
}),
|
|
94
|
+
data: payload,
|
|
95
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
96
|
+
{
|
|
97
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
98
|
+
paths: [
|
|
99
|
+
{ path: "intakeForm.createdDate" },
|
|
100
|
+
{ path: "intakeForm.updatedDate" }
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
])
|
|
104
|
+
};
|
|
105
|
+
return metadata;
|
|
106
|
+
}
|
|
107
|
+
return __updateIntakeFormSettings;
|
|
108
|
+
}
|
|
140
109
|
function createCustomerSubmissionLink(payload) {
|
|
141
110
|
function __createCustomerSubmissionLink({ host }) {
|
|
142
111
|
const metadata = {
|
|
@@ -352,6 +321,41 @@ async function updateIntakeFormExpirationPeriod2(intakeFormId, options) {
|
|
|
352
321
|
throw transformedError;
|
|
353
322
|
}
|
|
354
323
|
}
|
|
324
|
+
async function updateIntakeFormSettings2(intakeFormId, formRevision, options) {
|
|
325
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
326
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
327
|
+
intakeFormId,
|
|
328
|
+
formRevision,
|
|
329
|
+
expirationPeriodInMonths: options?.expirationPeriodInMonths,
|
|
330
|
+
triggeredExpirationPeriodInMonths: options?.triggeredExpirationPeriodInMonths,
|
|
331
|
+
pendingTriggerFields: options?.pendingTriggerFields
|
|
332
|
+
});
|
|
333
|
+
const reqOpts = updateIntakeFormSettings(payload);
|
|
334
|
+
sideEffects?.onSiteCall?.();
|
|
335
|
+
try {
|
|
336
|
+
const result = await httpClient.request(reqOpts);
|
|
337
|
+
sideEffects?.onSuccess?.(result);
|
|
338
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
339
|
+
} catch (err) {
|
|
340
|
+
const transformedError = sdkTransformError(
|
|
341
|
+
err,
|
|
342
|
+
{
|
|
343
|
+
spreadPathsToArguments: {},
|
|
344
|
+
explicitPathsToArguments: {
|
|
345
|
+
intakeFormId: "$[0]",
|
|
346
|
+
formRevision: "$[1]",
|
|
347
|
+
expirationPeriodInMonths: "$[2].expirationPeriodInMonths",
|
|
348
|
+
triggeredExpirationPeriodInMonths: "$[2].triggeredExpirationPeriodInMonths",
|
|
349
|
+
pendingTriggerFields: "$[2].pendingTriggerFields"
|
|
350
|
+
},
|
|
351
|
+
singleArgumentUnchanged: false
|
|
352
|
+
},
|
|
353
|
+
["intakeFormId", "formRevision", "options"]
|
|
354
|
+
);
|
|
355
|
+
sideEffects?.onError?.(err);
|
|
356
|
+
throw transformedError;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
355
359
|
async function createCustomerSubmissionLink2(intakeFormId, options) {
|
|
356
360
|
const { httpClient, sideEffects } = arguments[2];
|
|
357
361
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -486,6 +490,15 @@ function updateIntakeFormExpirationPeriod3(httpClient) {
|
|
|
486
490
|
{ httpClient }
|
|
487
491
|
);
|
|
488
492
|
}
|
|
493
|
+
function updateIntakeFormSettings3(httpClient) {
|
|
494
|
+
return (intakeFormId, formRevision, options) => updateIntakeFormSettings2(
|
|
495
|
+
intakeFormId,
|
|
496
|
+
formRevision,
|
|
497
|
+
options,
|
|
498
|
+
// @ts-ignore
|
|
499
|
+
{ httpClient }
|
|
500
|
+
);
|
|
501
|
+
}
|
|
489
502
|
function createCustomerSubmissionLink3(httpClient) {
|
|
490
503
|
return (intakeFormId, options) => createCustomerSubmissionLink2(
|
|
491
504
|
intakeFormId,
|
|
@@ -533,6 +546,7 @@ function customQueryIntakeForms(httpClient) {
|
|
|
533
546
|
return overloadedQuery;
|
|
534
547
|
}
|
|
535
548
|
var updateIntakeFormExpirationPeriod4 = /* @__PURE__ */ createRESTModule(updateIntakeFormExpirationPeriod3);
|
|
549
|
+
var updateIntakeFormSettings4 = /* @__PURE__ */ createRESTModule(updateIntakeFormSettings3);
|
|
536
550
|
var createCustomerSubmissionLink4 = /* @__PURE__ */ createRESTModule(createCustomerSubmissionLink3);
|
|
537
551
|
var deleteIntakeForm4 = /* @__PURE__ */ createRESTModule(deleteIntakeForm3);
|
|
538
552
|
var archiveIntakeForm4 = /* @__PURE__ */ createRESTModule(archiveIntakeForm3);
|
|
@@ -546,6 +560,7 @@ export {
|
|
|
546
560
|
queryIntakeForms4 as queryIntakeForms,
|
|
547
561
|
unarchiveIntakeForm4 as unarchiveIntakeForm,
|
|
548
562
|
updateIntakeFormExpirationPeriod4 as updateIntakeFormExpirationPeriod,
|
|
563
|
+
updateIntakeFormSettings4 as updateIntakeFormSettings,
|
|
549
564
|
utils
|
|
550
565
|
};
|
|
551
566
|
//# sourceMappingURL=index.mjs.map
|