@wix/auto_sdk_standalone-forms_standalone-forms 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,32 @@
1
1
  import { NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
+ /**
4
+ * A standalone form marks a [form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/introduction) as standalone, so responders can reach it at its own public URL
5
+ * instead of on a Wix site.
6
+ *
7
+ * A form doesn't indicate whether it's standalone. A standalone form that references the form is what makes it
8
+ * standalone.
9
+ */
3
10
  interface StandaloneForm {
4
11
  /**
5
- * Standalone form ID. Automatically generated when the standalone form is created.
12
+ * Standalone form ID.
6
13
  *
7
- * Together with `accountSlug`, this ID forms part of the standalone form's public URL.
14
+ * Used in the standalone form's public URL. See `accountSlug` for the URL format.
8
15
  * @maxLength 36
9
16
  * @readonly
10
17
  */
11
18
  _id?: string | null;
12
19
  /**
13
- * ID of the form, managed through the Wix Forms API, that this record marks as standalone.
20
+ * ID of the [form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/introduction) that the standalone form marks as standalone.
14
21
  *
15
- * A form doesn't itself indicate whether it's standalone. The existence of a standalone form
16
- * record that references it is what makes the form standalone.
22
+ * The form must exist before you create the standalone form.
17
23
  * @format GUID
18
24
  */
19
25
  formId?: string | null;
20
26
  /**
21
- * ID of the meta site that owns the standalone form.
27
+ * ID of the site that owns the standalone form.
22
28
  *
23
- * The meta site owns the form. Because this service doesn't use meta site tenancy, the owning
24
- * meta site is stored explicitly in this field. Set from the calling context when the form is created.
29
+ * Set to the site your request is authorized for when the standalone form is created.
25
30
  * @format GUID
26
31
  * @readonly
27
32
  */
@@ -37,10 +42,13 @@ interface StandaloneForm {
37
42
  */
38
43
  _updatedDate?: Date | null;
39
44
  /**
40
- * Account slug of the site owner, captured when the standalone form was created.
45
+ * Account slug of the site owner, used in the standalone form's public URL.
41
46
  *
42
- * Together with `id`, the slug forms part of the standalone form's public URL. May be empty
43
- * if it couldn't be resolved at creation time.
47
+ * The standalone form's public URL is:
48
+ * - `https://{accountSlug}.wixforms.com/f/{id}` when `accountSlug` is set.
49
+ * - `https://www.wixforms.com/f/{id}` when `accountSlug` is empty.
50
+ *
51
+ * Set when the standalone form is created and doesn't change afterward.
44
52
  * @maxLength 50
45
53
  * @readonly
46
54
  */
@@ -50,38 +58,38 @@ interface GetOrCreateFormStandaloneMetaSiteRequest {
50
58
  }
51
59
  interface GetOrCreateFormStandaloneMetaSiteResponse {
52
60
  /**
53
- * MetaSiteId
61
+ * Meta site ID.
54
62
  * @format GUID
55
63
  */
56
64
  metaSiteId?: string;
57
65
  }
58
66
  interface CreateStandaloneFormRequest {
59
- /** Standalone form */
67
+ /** Standalone form to create. */
60
68
  standaloneForm: StandaloneForm;
61
69
  }
62
70
  interface CreateStandaloneFormResponse {
63
- /** Standalone form */
71
+ /** Created standalone form. */
64
72
  standaloneForm?: StandaloneForm;
65
73
  }
66
74
  interface GetStandaloneFormRequest {
67
75
  /**
68
- * Standalone form id
76
+ * ID of the standalone form to retrieve.
69
77
  * @maxLength 36
70
78
  */
71
79
  standaloneFormId: string;
72
80
  }
73
81
  interface GetStandaloneFormResponse {
74
- /** Standalone form */
82
+ /** Retrieved standalone form. */
75
83
  standaloneForm?: StandaloneForm;
76
84
  }
77
85
  interface DeleteStandaloneFormRequest {
78
86
  /**
79
- * Standalone form id
87
+ * ID of the standalone form to delete.
80
88
  * @maxLength 36
81
89
  */
82
90
  standaloneFormId: string;
83
91
  /**
84
- * Whether to permanently delete a standalone form bypassing the trash bin.
92
+ * Whether to permanently delete the standalone form instead of moving it to the trash bin.
85
93
  *
86
94
  * Default: `false`
87
95
  */
@@ -91,7 +99,7 @@ interface DeleteStandaloneFormResponse {
91
99
  }
92
100
  interface RemoveStandaloneFormFromTrashBinRequest {
93
101
  /**
94
- * Standalone form id
102
+ * ID of the standalone form to permanently delete.
95
103
  * @maxLength 36
96
104
  */
97
105
  standaloneFormId: string;
@@ -100,34 +108,36 @@ interface RemoveStandaloneFormFromTrashBinResponse {
100
108
  }
101
109
  interface RestoreStandaloneFormFromTrashBinRequest {
102
110
  /**
103
- * Standalone form id
111
+ * ID of the standalone form to restore.
104
112
  * @maxLength 36
105
113
  */
106
114
  standaloneFormId: string;
107
115
  }
108
116
  interface RestoreStandaloneFormFromTrashBinResponse {
109
- /** Standalone form */
117
+ /** Restored standalone form. */
110
118
  standaloneForm?: StandaloneForm;
111
119
  }
112
120
  interface GetDeletedStandaloneFormRequest {
113
121
  /**
114
- * Standalone form id
122
+ * ID of the standalone form to retrieve from the trash bin.
115
123
  * @maxLength 36
116
124
  */
117
125
  standaloneFormId: string;
118
126
  }
119
127
  interface GetDeletedStandaloneFormResponse {
120
- /** Standalone form */
128
+ /** Retrieved standalone form. */
121
129
  standaloneForm?: StandaloneForm;
122
130
  }
123
131
  interface ListDeletedStandaloneFormsRequest {
124
132
  /**
125
- * Standalone Form ids.
133
+ * IDs of the standalone forms to retrieve from the trash bin.
134
+ *
135
+ * Default: All standalone forms in the trash bin.
126
136
  * @maxSize 100
127
137
  * @maxLength 36
128
138
  */
129
139
  standaloneFormIds?: string[];
130
- /** Cursor token pointing to a page of results. Not used in the first request. */
140
+ /** Cursor paging options. */
131
141
  paging?: CursorPaging;
132
142
  }
133
143
  interface CursorPaging {
@@ -148,11 +158,11 @@ interface CursorPaging {
148
158
  }
149
159
  interface ListDeletedStandaloneFormsResponse {
150
160
  /**
151
- * The retrieved standalone forms
161
+ * Retrieved standalone forms.
152
162
  * @maxSize 100
153
163
  */
154
164
  standaloneForms?: StandaloneForm[];
155
- /** Details on the paged set of results returned. */
165
+ /** Paging metadata. */
156
166
  pagingMetadata?: CursorPagingMetadata;
157
167
  }
158
168
  interface CursorPagingMetadata {
@@ -180,7 +190,7 @@ interface Cursors {
180
190
  prev?: string | null;
181
191
  }
182
192
  interface QueryStandaloneFormsRequest {
183
- /** WQL expression. */
193
+ /** Query options. See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) for more information. */
184
194
  query: CursorQuery;
185
195
  }
186
196
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -224,21 +234,26 @@ declare enum SortOrder {
224
234
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
225
235
  interface QueryStandaloneFormsResponse {
226
236
  /**
227
- * The retrieved standalone forms
237
+ * Retrieved standalone forms.
228
238
  * @maxSize 100
229
239
  */
230
240
  standaloneForms?: StandaloneForm[];
231
- /** Details on the paged set of results returned. */
241
+ /** Paging metadata. */
232
242
  metadata?: CursorPagingMetadata;
233
243
  }
234
244
  interface GetSitePropertiesRequest {
235
245
  }
236
246
  interface GetSitePropertiesResponse {
237
- /** Standalone MetaSite properties */
247
+ /** Site's currency and locale. */
238
248
  siteProperties?: StandaloneMetaSiteProperties;
239
249
  }
250
+ /** Currency and locale settings of a site. */
240
251
  interface StandaloneMetaSiteProperties {
241
- /** Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. */
252
+ /**
253
+ * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
254
+ *
255
+ * Empty if the site's payment currency isn't set.
256
+ */
242
257
  paymentCurrency?: string | null;
243
258
  /**
244
259
  * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
@@ -1264,53 +1279,51 @@ type GetSitePropertiesApplicationErrors = {
1264
1279
  data?: Record<string, any>;
1265
1280
  };
1266
1281
  /**
1267
- * Returns the standalone meta site owned by the caller's account, provisioning a new siteless
1268
- * meta site if one doesn't exist yet.
1282
+ * Creates a standalone form, which marks a form as standalone so responders can reach it at its own public URL.
1269
1283
  *
1270
- * Use this when the caller doesn't already have a meta site, for example when a form is built
1271
- * before the user becomes a Wix user. The returned meta site can then own standalone forms.
1272
- * @public
1273
- * @documentationMaturity preview
1274
- * @permissionId MetaSite.Create
1275
- * @fqn wix.forms.v1.FormStandaloneService.GetOrCreateFormStandaloneMetaSite
1276
- */
1277
- declare function getOrCreateFormStandaloneMetaSite(): Promise<NonNullablePaths<GetOrCreateFormStandaloneMetaSiteResponse, `metaSiteId`, 0>>;
1278
- /**
1279
- * Marks an existing form as standalone by creating a standalone form record that binds the form
1280
- * to the meta site that owns it.
1284
+ * The form must already exist. Create it with [Create Form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/create-form) first. The standalone form is owned by
1285
+ * the site your request is authorized for. Each form can be marked standalone once per site.
1286
+ *
1287
+ * The response includes the `id` and `accountSlug` that make up the standalone form's public URL.
1281
1288
  *
1282
- * The form referenced by `formId` must already exist. The owning meta site is taken from the
1283
- * calling context. A given form can be marked standalone by only one record per meta site.
1284
- * @param standaloneForm - Standalone form
1289
+ * To stop hosting the form as standalone, call [Delete Standalone Form](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/delete-standalone-form).
1290
+ * @param standaloneForm - Standalone form to create.
1285
1291
  * @public
1286
1292
  * @documentationMaturity preview
1287
1293
  * @requiredField standaloneForm
1288
1294
  * @requiredField standaloneForm.formId
1289
1295
  * @permissionId WIX_FORMS.STANDALONE_FORM_CREATE
1290
1296
  * @applicableIdentity APP
1291
- * @returns Standalone form
1297
+ * @returns Created standalone form.
1292
1298
  * @fqn wix.forms.v1.FormStandaloneService.CreateStandaloneForm
1293
1299
  */
1294
1300
  declare function createStandaloneForm(standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>): Promise<StandaloneForm & {
1295
1301
  __applicationErrorsType?: CreateStandaloneFormApplicationErrors;
1296
1302
  }>;
1297
1303
  /**
1298
- * Retrieves a standalone form by ID.
1299
- * @param standaloneFormId - Standalone form id
1304
+ * Retrieves a standalone form.
1305
+ *
1306
+ * To retrieve the form's fields and settings, pass the returned `formId` to [Get Form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/get-form).
1307
+ * @param standaloneFormId - ID of the standalone form to retrieve.
1300
1308
  * @public
1301
1309
  * @documentationMaturity preview
1302
1310
  * @requiredField standaloneFormId
1303
1311
  * @permissionId WIX_FORMS.STANDALONE_FORM_READ
1304
1312
  * @applicableIdentity APP
1305
- * @returns Standalone form
1313
+ * @returns Retrieved standalone form.
1306
1314
  * @fqn wix.forms.v1.FormStandaloneService.GetStandaloneForm
1307
1315
  */
1308
1316
  declare function getStandaloneForm(standaloneFormId: string): Promise<StandaloneForm>;
1309
1317
  /**
1310
- * Deletes a standalone form record
1318
+ * Deletes a standalone form.
1311
1319
  *
1312
- * By default the record is moved to the trash bin. Set `permanent` to `true` to delete it permanently.
1313
- * @param standaloneFormId - Standalone form id
1320
+ * Deleting a standalone form means the form is no longer standalone. The form itself isn't deleted.
1321
+ *
1322
+ * By default, the standalone form is moved to the trash bin. From there, you can restore it with
1323
+ * [Restore Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/restore-standalone-form-from-trash-bin) or permanently delete it with
1324
+ * [Remove Standalone Form From Trash Bin](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/remove-standalone-form-from-trash-bin). To permanently delete the standalone form right away, set
1325
+ * `permanent` to `true`.
1326
+ * @param standaloneFormId - ID of the standalone form to delete.
1314
1327
  * @public
1315
1328
  * @documentationMaturity preview
1316
1329
  * @requiredField standaloneFormId
@@ -1321,15 +1334,17 @@ declare function getStandaloneForm(standaloneFormId: string): Promise<Standalone
1321
1334
  declare function deleteStandaloneForm(standaloneFormId: string, options?: DeleteStandaloneFormOptions): Promise<void>;
1322
1335
  interface DeleteStandaloneFormOptions {
1323
1336
  /**
1324
- * Whether to permanently delete a standalone form bypassing the trash bin.
1337
+ * Whether to permanently delete the standalone form instead of moving it to the trash bin.
1325
1338
  *
1326
1339
  * Default: `false`
1327
1340
  */
1328
1341
  permanent?: boolean;
1329
1342
  }
1330
1343
  /**
1331
- * Permanently deletes a standalone form record that is in the trash bin.
1332
- * @param standaloneFormId - Standalone form id
1344
+ * Permanently deletes a standalone form from the trash bin.
1345
+ *
1346
+ * To move a standalone form to the trash bin, call [Delete Standalone Form](https://dev.wix.com/docs/api-reference/crm/forms/standalone-form-v1/delete-standalone-form).
1347
+ * @param standaloneFormId - ID of the standalone form to permanently delete.
1333
1348
  * @public
1334
1349
  * @documentationMaturity preview
1335
1350
  * @requiredField standaloneFormId
@@ -1339,8 +1354,10 @@ interface DeleteStandaloneFormOptions {
1339
1354
  */
1340
1355
  declare function removeStandaloneFormFromTrashBin(standaloneFormId: string): Promise<void>;
1341
1356
  /**
1342
- * Restores a standalone form record from the trash bin.
1343
- * @param standaloneFormId - Standalone form id
1357
+ * Restores a standalone form from the trash bin.
1358
+ *
1359
+ * The restored standalone form keeps its `id` and `accountSlug`, so its public URL works again.
1360
+ * @param standaloneFormId - ID of the standalone form to restore.
1344
1361
  * @public
1345
1362
  * @documentationMaturity preview
1346
1363
  * @requiredField standaloneFormId
@@ -1350,8 +1367,8 @@ declare function removeStandaloneFormFromTrashBin(standaloneFormId: string): Pro
1350
1367
  */
1351
1368
  declare function restoreStandaloneFormFromTrashBin(standaloneFormId: string): Promise<RestoreStandaloneFormFromTrashBinResponse>;
1352
1369
  /**
1353
- * Retrieves a standalone form record from the trash bin by ID.
1354
- * @param standaloneFormId - Standalone form id
1370
+ * Retrieves a standalone form from the trash bin.
1371
+ * @param standaloneFormId - ID of the standalone form to retrieve from the trash bin.
1355
1372
  * @public
1356
1373
  * @documentationMaturity preview
1357
1374
  * @requiredField standaloneFormId
@@ -1361,7 +1378,9 @@ declare function restoreStandaloneFormFromTrashBin(standaloneFormId: string): Pr
1361
1378
  */
1362
1379
  declare function getDeletedStandaloneForm(standaloneFormId: string): Promise<GetDeletedStandaloneFormResponse>;
1363
1380
  /**
1364
- * Retrieves a list of standalone form records that are in the trash bin.
1381
+ * Retrieves a list of standalone forms in the trash bin.
1382
+ *
1383
+ * To retrieve specific standalone forms, specify their IDs in `standaloneFormIds`.
1365
1384
  * @public
1366
1385
  * @documentationMaturity preview
1367
1386
  * @permissionId WIX_FORMS.STANDALONE_FORM_READ
@@ -1371,19 +1390,31 @@ declare function getDeletedStandaloneForm(standaloneFormId: string): Promise<Get
1371
1390
  declare function listDeletedStandaloneForms(options?: ListDeletedStandaloneFormsOptions): Promise<NonNullablePaths<ListDeletedStandaloneFormsResponse, `standaloneForms`, 0>>;
1372
1391
  interface ListDeletedStandaloneFormsOptions {
1373
1392
  /**
1374
- * Standalone Form ids.
1393
+ * IDs of the standalone forms to retrieve from the trash bin.
1394
+ *
1395
+ * Default: All standalone forms in the trash bin.
1375
1396
  * @maxSize 100
1376
1397
  * @maxLength 36
1377
1398
  */
1378
1399
  standaloneFormIds?: string[];
1379
- /** Cursor token pointing to a page of results. Not used in the first request. */
1400
+ /** Cursor paging options. */
1380
1401
  paging?: CursorPaging;
1381
1402
  }
1382
1403
  /**
1383
- * Retrieves a list of standalone forms, given the provided filtering, sorting, and paging.
1404
+ * Retrieves a list of up to 100 standalone forms, given the provided paging, filtering, and sorting.
1405
+ *
1406
+ * Query Standalone Forms runs with these defaults, which you can override:
1407
+ *
1408
+ * - `createdDate` is sorted in `DESC` order
1409
+ * - `cursorPaging.limit` is `50`
1410
+ *
1411
+ * Supported properties for filtering and sorting: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.
1384
1412
  *
1385
- * Supported filterable and sortable fields: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.
1386
- * @param query - WQL expression.
1413
+ * To learn about working with Query methods, see
1414
+ * [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language),
1415
+ * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging),
1416
+ * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).
1417
+ * @param query - Query options. See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) for more information.
1387
1418
  * @public
1388
1419
  * @documentationMaturity preview
1389
1420
  * @requiredField query
@@ -1393,9 +1424,10 @@ interface ListDeletedStandaloneFormsOptions {
1393
1424
  */
1394
1425
  declare function queryStandaloneForms(query: CursorQuery): Promise<NonNullablePaths<QueryStandaloneFormsResponse, `standaloneForms`, 0>>;
1395
1426
  /**
1396
- * Gets site properties (currency and locale) for the caller's standalone meta site.
1427
+ * Retrieves the currency and locale of the site your request is authorized for.
1397
1428
  *
1398
- * Results may be cached and are not guaranteed to reflect real-time changes.
1429
+ * Use these values to display prices and labels correctly when you render a standalone form. Results may be cached,
1430
+ * so recent changes to the site's settings might not appear right away.
1399
1431
  * @public
1400
1432
  * @documentationMaturity preview
1401
1433
  * @permissionId WIX_FORMS.STANDALONE_FORM_READ
@@ -1406,4 +1438,4 @@ declare function getSiteProperties(): Promise<NonNullablePaths<GetSiteProperties
1406
1438
  __applicationErrorsType?: GetSitePropertiesApplicationErrors;
1407
1439
  }>;
1408
1440
 
1409
- export { type AccountInfo, type ActionEvent, type Address, type AddressHint, type Asset, type BusinessSchedule, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type ConsentPolicy, type CreateStandaloneFormApplicationErrors, type CreateStandaloneFormRequest, type CreateStandaloneFormResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DayOfWeek, type DayOfWeekWithLiterals, type DeleteContext, type DeleteStandaloneFormOptions, type DeleteStandaloneFormRequest, type DeleteStandaloneFormResponse, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EditorlessAssigned, type EditorlessUnassigned, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GeoCoordinates, type GetDeletedStandaloneFormRequest, type GetDeletedStandaloneFormResponse, type GetOrCreateFormStandaloneMetaSiteRequest, type GetOrCreateFormStandaloneMetaSiteResponse, type GetSitePropertiesApplicationErrors, type GetSitePropertiesRequest, type GetSitePropertiesResponse, type GetStandaloneFormRequest, type GetStandaloneFormResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListDeletedStandaloneFormsOptions, type ListDeletedStandaloneFormsRequest, type ListDeletedStandaloneFormsResponse, type Locale, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type Properties, type PropertiesChange, type QueryStandaloneFormsRequest, type QueryStandaloneFormsResponse, type RemoveStandaloneFormFromTrashBinRequest, type RemoveStandaloneFormFromTrashBinResponse, ResolutionMethod, type ResolutionMethodWithLiterals, type RestoreInfo, type RestoreStandaloneFormFromTrashBinRequest, type RestoreStandaloneFormFromTrashBinResponse, type ServiceProvisioned, type ServiceRemoved, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecialHourPeriod, type StandaloneForm, type StandaloneMetaSiteProperties, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SupportedLanguage, type TimePeriod, type Translation, type UserDomainMediaDisabled, type UserDomainMediaEnabled, type V4SiteCreated, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, createStandaloneForm, deleteStandaloneForm, getDeletedStandaloneForm, getOrCreateFormStandaloneMetaSite, getSiteProperties, getStandaloneForm, listDeletedStandaloneForms, queryStandaloneForms, removeStandaloneFormFromTrashBin, restoreStandaloneFormFromTrashBin };
1441
+ export { type AccountInfo, type ActionEvent, type Address, type AddressHint, type Asset, type BusinessSchedule, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type ConsentPolicy, type CreateStandaloneFormApplicationErrors, type CreateStandaloneFormRequest, type CreateStandaloneFormResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, DayOfWeek, type DayOfWeekWithLiterals, type DeleteContext, type DeleteStandaloneFormOptions, type DeleteStandaloneFormRequest, type DeleteStandaloneFormResponse, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type EditorlessAssigned, type EditorlessUnassigned, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type GeoCoordinates, type GetDeletedStandaloneFormRequest, type GetDeletedStandaloneFormResponse, type GetOrCreateFormStandaloneMetaSiteRequest, type GetOrCreateFormStandaloneMetaSiteResponse, type GetSitePropertiesApplicationErrors, type GetSitePropertiesRequest, type GetSitePropertiesResponse, type GetStandaloneFormRequest, type GetStandaloneFormResponse, type IdentificationData, type IdentificationDataIdOneOf, type ListDeletedStandaloneFormsOptions, type ListDeletedStandaloneFormsRequest, type ListDeletedStandaloneFormsResponse, type Locale, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type Properties, type PropertiesChange, type QueryStandaloneFormsRequest, type QueryStandaloneFormsResponse, type RemoveStandaloneFormFromTrashBinRequest, type RemoveStandaloneFormFromTrashBinResponse, ResolutionMethod, type ResolutionMethodWithLiterals, type RestoreInfo, type RestoreStandaloneFormFromTrashBinRequest, type RestoreStandaloneFormFromTrashBinResponse, type ServiceProvisioned, type ServiceRemoved, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, type SpecialHourPeriod, type StandaloneForm, type StandaloneMetaSiteProperties, State, type StateWithLiterals, type StudioAssigned, type StudioTwoAssigned, type StudioTwoUnassigned, type StudioUnassigned, type SupportedLanguage, type TimePeriod, type Translation, type UserDomainMediaDisabled, type UserDomainMediaEnabled, type V4SiteCreated, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixelAssigned, type WixelUnassigned, createStandaloneForm, deleteStandaloneForm, getDeletedStandaloneForm, getSiteProperties, getStandaloneForm, listDeletedStandaloneForms, queryStandaloneForms, removeStandaloneFormFromTrashBin, restoreStandaloneFormFromTrashBin };
@@ -32,7 +32,6 @@ __export(index_typings_exports, {
32
32
  createStandaloneForm: () => createStandaloneForm2,
33
33
  deleteStandaloneForm: () => deleteStandaloneForm2,
34
34
  getDeletedStandaloneForm: () => getDeletedStandaloneForm2,
35
- getOrCreateFormStandaloneMetaSite: () => getOrCreateFormStandaloneMetaSite2,
36
35
  getSiteProperties: () => getSiteProperties2,
37
36
  getStandaloneForm: () => getStandaloneForm2,
38
37
  listDeletedStandaloneForms: () => listDeletedStandaloneForms2,
@@ -52,6 +51,14 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
52
51
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
53
52
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
54
53
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
54
+ var TRANSFORM_PATHS_0 = [
55
+ { path: "standaloneForm.createdDate" },
56
+ { path: "standaloneForm.updatedDate" }
57
+ ];
58
+ var TRANSFORM_PATHS_1 = [
59
+ { path: "standaloneForms.createdDate" },
60
+ { path: "standaloneForms.updatedDate" }
61
+ ];
55
62
  function resolveWixFormsV1FormStandaloneServiceUrl(opts) {
56
63
  const domainToMappings = {
57
64
  "manage._base_domain_": [
@@ -122,36 +129,12 @@ function resolveWixFormsV1FormStandaloneServiceUrl(opts) {
122
129
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
123
130
  }
124
131
  var PACKAGE_NAME = "@wix/auto_sdk_standalone-forms_standalone-forms";
125
- function getOrCreateFormStandaloneMetaSite(payload) {
126
- function __getOrCreateFormStandaloneMetaSite({ host }) {
127
- const metadata = {
128
- entityFqdn: "wix.forms.v1.standalone_form",
129
- method: "GET",
130
- methodFqn: "wix.forms.v1.FormStandaloneService.GetOrCreateFormStandaloneMetaSite",
131
- packageName: PACKAGE_NAME,
132
- migrationOptions: {
133
- optInTransformResponse: true
134
- },
135
- url: resolveWixFormsV1FormStandaloneServiceUrl({
136
- protoPath: "/v4/standalone-forms/metasite",
137
- data: payload,
138
- host
139
- }),
140
- params: (0, import_rest_modules.toURLSearchParams)(payload)
141
- };
142
- return metadata;
143
- }
144
- return __getOrCreateFormStandaloneMetaSite;
145
- }
146
132
  function createStandaloneForm(payload) {
147
133
  function __createStandaloneForm({ host }) {
148
134
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
149
135
  {
150
136
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
151
- paths: [
152
- { path: "standaloneForm.createdDate" },
153
- { path: "standaloneForm.updatedDate" }
154
- ]
137
+ paths: TRANSFORM_PATHS_0
155
138
  }
156
139
  ]);
157
140
  const metadata = {
@@ -171,10 +154,7 @@ function createStandaloneForm(payload) {
171
154
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
172
155
  {
173
156
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
174
- paths: [
175
- { path: "standaloneForm.createdDate" },
176
- { path: "standaloneForm.updatedDate" }
177
- ]
157
+ paths: TRANSFORM_PATHS_0
178
158
  }
179
159
  ])
180
160
  };
@@ -201,10 +181,7 @@ function getStandaloneForm(payload) {
201
181
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
202
182
  {
203
183
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
204
- paths: [
205
- { path: "standaloneForm.createdDate" },
206
- { path: "standaloneForm.updatedDate" }
207
- ]
184
+ paths: TRANSFORM_PATHS_0
208
185
  }
209
186
  ])
210
187
  };
@@ -273,10 +250,7 @@ function restoreStandaloneFormFromTrashBin(payload) {
273
250
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
274
251
  {
275
252
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
276
- paths: [
277
- { path: "standaloneForm.createdDate" },
278
- { path: "standaloneForm.updatedDate" }
279
- ]
253
+ paths: TRANSFORM_PATHS_0
280
254
  }
281
255
  ])
282
256
  };
@@ -303,10 +277,7 @@ function getDeletedStandaloneForm(payload) {
303
277
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
304
278
  {
305
279
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
306
- paths: [
307
- { path: "standaloneForm.createdDate" },
308
- { path: "standaloneForm.updatedDate" }
309
- ]
280
+ paths: TRANSFORM_PATHS_0
310
281
  }
311
282
  ])
312
283
  };
@@ -333,10 +304,7 @@ function listDeletedStandaloneForms(payload) {
333
304
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
334
305
  {
335
306
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
336
- paths: [
337
- { path: "standaloneForms.createdDate" },
338
- { path: "standaloneForms.updatedDate" }
339
- ]
307
+ paths: TRANSFORM_PATHS_1
340
308
  }
341
309
  ])
342
310
  };
@@ -363,10 +331,7 @@ function queryStandaloneForms(payload) {
363
331
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
364
332
  {
365
333
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
366
- paths: [
367
- { path: "standaloneForms.createdDate" },
368
- { path: "standaloneForms.updatedDate" }
369
- ]
334
+ paths: TRANSFORM_PATHS_1
370
335
  }
371
336
  ])
372
337
  };
@@ -500,31 +465,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
500
465
  WebhookIdentityType2["APP"] = "APP";
501
466
  return WebhookIdentityType2;
502
467
  })(WebhookIdentityType || {});
503
- async function getOrCreateFormStandaloneMetaSite2() {
504
- const { httpClient, sideEffects } = arguments[0];
505
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({});
506
- const reqOpts = getOrCreateFormStandaloneMetaSite(
507
- payload
508
- );
509
- sideEffects?.onSiteCall?.();
510
- try {
511
- const result = await httpClient.request(reqOpts);
512
- sideEffects?.onSuccess?.(result);
513
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
514
- } catch (err) {
515
- const transformedError = (0, import_transform_error.transformError)(
516
- err,
517
- {
518
- spreadPathsToArguments: {},
519
- explicitPathsToArguments: {},
520
- singleArgumentUnchanged: false
521
- },
522
- []
523
- );
524
- sideEffects?.onError?.(err);
525
- throw transformedError;
526
- }
527
- }
528
468
  async function createStandaloneForm2(standaloneForm) {
529
469
  const { httpClient, sideEffects } = arguments[1];
530
470
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -770,7 +710,6 @@ async function getSiteProperties2() {
770
710
  createStandaloneForm,
771
711
  deleteStandaloneForm,
772
712
  getDeletedStandaloneForm,
773
- getOrCreateFormStandaloneMetaSite,
774
713
  getSiteProperties,
775
714
  getStandaloneForm,
776
715
  listDeletedStandaloneForms,