@wix/auto_sdk_standalone-forms_standalone-forms 1.0.1 → 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.
@@ -5,13 +5,16 @@ export { AccountInfo, ActionEvent, Address, AddressHint, Asset, BusinessSchedule
5
5
  declare function createStandaloneForm$1(httpClient: HttpClient): CreateStandaloneFormSignature;
6
6
  interface CreateStandaloneFormSignature {
7
7
  /**
8
- * Marks an existing form as standalone by creating a standalone form record that binds the form
9
- * to the meta site that owns it.
8
+ * Creates a standalone form, which marks a form as standalone so responders can reach it at its own public URL.
10
9
  *
11
- * The form referenced by `formId` must already exist. The owning meta site is taken from the
12
- * calling context. A given form can be marked standalone by only one record per meta site.
13
- * @param - Standalone form
14
- * @returns Standalone form
10
+ * 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
11
+ * the site your request is authorized for. Each form can be marked standalone once per site.
12
+ *
13
+ * The response includes the `id` and `accountSlug` that make up the standalone form's public URL.
14
+ *
15
+ * 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).
16
+ * @param - Standalone form to create.
17
+ * @returns Created standalone form.
15
18
  */
16
19
  (standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>): Promise<StandaloneForm & {
17
20
  __applicationErrorsType?: CreateStandaloneFormApplicationErrors;
@@ -20,69 +23,93 @@ interface CreateStandaloneFormSignature {
20
23
  declare function getStandaloneForm$1(httpClient: HttpClient): GetStandaloneFormSignature;
21
24
  interface GetStandaloneFormSignature {
22
25
  /**
23
- * Retrieves a standalone form by ID.
24
- * @param - Standalone form id
25
- * @returns Standalone form
26
+ * Retrieves a standalone form.
27
+ *
28
+ * 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).
29
+ * @param - ID of the standalone form to retrieve.
30
+ * @returns Retrieved standalone form.
26
31
  */
27
32
  (standaloneFormId: string): Promise<StandaloneForm>;
28
33
  }
29
34
  declare function deleteStandaloneForm$1(httpClient: HttpClient): DeleteStandaloneFormSignature;
30
35
  interface DeleteStandaloneFormSignature {
31
36
  /**
32
- * Deletes a standalone form record
37
+ * Deletes a standalone form.
33
38
  *
34
- * By default the record is moved to the trash bin. Set `permanent` to `true` to delete it permanently.
35
- * @param - Standalone form id
39
+ * Deleting a standalone form means the form is no longer standalone. The form itself isn't deleted.
40
+ *
41
+ * By default, the standalone form is moved to the trash bin. From there, you can restore it with
42
+ * [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
43
+ * [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
44
+ * `permanent` to `true`.
45
+ * @param - ID of the standalone form to delete.
36
46
  */
37
47
  (standaloneFormId: string, options?: DeleteStandaloneFormOptions): Promise<void>;
38
48
  }
39
49
  declare function removeStandaloneFormFromTrashBin$1(httpClient: HttpClient): RemoveStandaloneFormFromTrashBinSignature;
40
50
  interface RemoveStandaloneFormFromTrashBinSignature {
41
51
  /**
42
- * Permanently deletes a standalone form record that is in the trash bin.
43
- * @param - Standalone form id
52
+ * Permanently deletes a standalone form from the trash bin.
53
+ *
54
+ * 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).
55
+ * @param - ID of the standalone form to permanently delete.
44
56
  */
45
57
  (standaloneFormId: string): Promise<void>;
46
58
  }
47
59
  declare function restoreStandaloneFormFromTrashBin$1(httpClient: HttpClient): RestoreStandaloneFormFromTrashBinSignature;
48
60
  interface RestoreStandaloneFormFromTrashBinSignature {
49
61
  /**
50
- * Restores a standalone form record from the trash bin.
51
- * @param - Standalone form id
62
+ * Restores a standalone form from the trash bin.
63
+ *
64
+ * The restored standalone form keeps its `id` and `accountSlug`, so its public URL works again.
65
+ * @param - ID of the standalone form to restore.
52
66
  */
53
67
  (standaloneFormId: string): Promise<RestoreStandaloneFormFromTrashBinResponse>;
54
68
  }
55
69
  declare function getDeletedStandaloneForm$1(httpClient: HttpClient): GetDeletedStandaloneFormSignature;
56
70
  interface GetDeletedStandaloneFormSignature {
57
71
  /**
58
- * Retrieves a standalone form record from the trash bin by ID.
59
- * @param - Standalone form id
72
+ * Retrieves a standalone form from the trash bin.
73
+ * @param - ID of the standalone form to retrieve from the trash bin.
60
74
  */
61
75
  (standaloneFormId: string): Promise<GetDeletedStandaloneFormResponse>;
62
76
  }
63
77
  declare function listDeletedStandaloneForms$1(httpClient: HttpClient): ListDeletedStandaloneFormsSignature;
64
78
  interface ListDeletedStandaloneFormsSignature {
65
79
  /**
66
- * Retrieves a list of standalone form records that are in the trash bin.
80
+ * Retrieves a list of standalone forms in the trash bin.
81
+ *
82
+ * To retrieve specific standalone forms, specify their IDs in `standaloneFormIds`.
67
83
  */
68
84
  (options?: ListDeletedStandaloneFormsOptions): Promise<NonNullablePaths<ListDeletedStandaloneFormsResponse, `standaloneForms`, 0>>;
69
85
  }
70
86
  declare function queryStandaloneForms$1(httpClient: HttpClient): QueryStandaloneFormsSignature;
71
87
  interface QueryStandaloneFormsSignature {
72
88
  /**
73
- * Retrieves a list of standalone forms, given the provided filtering, sorting, and paging.
89
+ * Retrieves a list of up to 100 standalone forms, given the provided paging, filtering, and sorting.
90
+ *
91
+ * Query Standalone Forms runs with these defaults, which you can override:
92
+ *
93
+ * - `createdDate` is sorted in `DESC` order
94
+ * - `cursorPaging.limit` is `50`
95
+ *
96
+ * Supported properties for filtering and sorting: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.
74
97
  *
75
- * Supported filterable and sortable fields: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.
76
- * @param - WQL expression.
98
+ * To learn about working with Query methods, see
99
+ * [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language),
100
+ * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging),
101
+ * and [Field Projection](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-field-projection).
102
+ * @param - 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.
77
103
  */
78
104
  (query: CursorQuery): Promise<NonNullablePaths<QueryStandaloneFormsResponse, `standaloneForms`, 0>>;
79
105
  }
80
106
  declare function getSiteProperties$1(httpClient: HttpClient): GetSitePropertiesSignature;
81
107
  interface GetSitePropertiesSignature {
82
108
  /**
83
- * Gets site properties (currency and locale) for the caller's standalone meta site.
109
+ * Retrieves the currency and locale of the site your request is authorized for.
84
110
  *
85
- * Results may be cached and are not guaranteed to reflect real-time changes.
111
+ * Use these values to display prices and labels correctly when you render a standalone form. Results may be cached,
112
+ * so recent changes to the site's settings might not appear right away.
86
113
  */
87
114
  (): Promise<NonNullablePaths<GetSitePropertiesResponse, `siteProperties.localeLanguageCode` | `siteProperties.localeCountry`, 1> & {
88
115
  __applicationErrorsType?: GetSitePropertiesApplicationErrors;
@@ -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,41 +1279,51 @@ type GetSitePropertiesApplicationErrors = {
1264
1279
  data?: Record<string, any>;
1265
1280
  };
1266
1281
  /**
1267
- * Marks an existing form as standalone by creating a standalone form record that binds the form
1268
- * to the meta site that owns it.
1282
+ * Creates a standalone form, which marks a form as standalone so responders can reach it at its own public URL.
1283
+ *
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.
1269
1286
  *
1270
- * The form referenced by `formId` must already exist. The owning meta site is taken from the
1271
- * calling context. A given form can be marked standalone by only one record per meta site.
1272
- * @param standaloneForm - Standalone form
1287
+ * The response includes the `id` and `accountSlug` that make up the standalone form's public URL.
1288
+ *
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.
1273
1291
  * @public
1274
1292
  * @documentationMaturity preview
1275
1293
  * @requiredField standaloneForm
1276
1294
  * @requiredField standaloneForm.formId
1277
1295
  * @permissionId WIX_FORMS.STANDALONE_FORM_CREATE
1278
1296
  * @applicableIdentity APP
1279
- * @returns Standalone form
1297
+ * @returns Created standalone form.
1280
1298
  * @fqn wix.forms.v1.FormStandaloneService.CreateStandaloneForm
1281
1299
  */
1282
1300
  declare function createStandaloneForm(standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>): Promise<StandaloneForm & {
1283
1301
  __applicationErrorsType?: CreateStandaloneFormApplicationErrors;
1284
1302
  }>;
1285
1303
  /**
1286
- * Retrieves a standalone form by ID.
1287
- * @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.
1288
1308
  * @public
1289
1309
  * @documentationMaturity preview
1290
1310
  * @requiredField standaloneFormId
1291
1311
  * @permissionId WIX_FORMS.STANDALONE_FORM_READ
1292
1312
  * @applicableIdentity APP
1293
- * @returns Standalone form
1313
+ * @returns Retrieved standalone form.
1294
1314
  * @fqn wix.forms.v1.FormStandaloneService.GetStandaloneForm
1295
1315
  */
1296
1316
  declare function getStandaloneForm(standaloneFormId: string): Promise<StandaloneForm>;
1297
1317
  /**
1298
- * Deletes a standalone form record
1318
+ * Deletes a standalone form.
1319
+ *
1320
+ * Deleting a standalone form means the form is no longer standalone. The form itself isn't deleted.
1299
1321
  *
1300
- * By default the record is moved to the trash bin. Set `permanent` to `true` to delete it permanently.
1301
- * @param standaloneFormId - Standalone form id
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.
1302
1327
  * @public
1303
1328
  * @documentationMaturity preview
1304
1329
  * @requiredField standaloneFormId
@@ -1309,15 +1334,17 @@ declare function getStandaloneForm(standaloneFormId: string): Promise<Standalone
1309
1334
  declare function deleteStandaloneForm(standaloneFormId: string, options?: DeleteStandaloneFormOptions): Promise<void>;
1310
1335
  interface DeleteStandaloneFormOptions {
1311
1336
  /**
1312
- * 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.
1313
1338
  *
1314
1339
  * Default: `false`
1315
1340
  */
1316
1341
  permanent?: boolean;
1317
1342
  }
1318
1343
  /**
1319
- * Permanently deletes a standalone form record that is in the trash bin.
1320
- * @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.
1321
1348
  * @public
1322
1349
  * @documentationMaturity preview
1323
1350
  * @requiredField standaloneFormId
@@ -1327,8 +1354,10 @@ interface DeleteStandaloneFormOptions {
1327
1354
  */
1328
1355
  declare function removeStandaloneFormFromTrashBin(standaloneFormId: string): Promise<void>;
1329
1356
  /**
1330
- * Restores a standalone form record from the trash bin.
1331
- * @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.
1332
1361
  * @public
1333
1362
  * @documentationMaturity preview
1334
1363
  * @requiredField standaloneFormId
@@ -1338,8 +1367,8 @@ declare function removeStandaloneFormFromTrashBin(standaloneFormId: string): Pro
1338
1367
  */
1339
1368
  declare function restoreStandaloneFormFromTrashBin(standaloneFormId: string): Promise<RestoreStandaloneFormFromTrashBinResponse>;
1340
1369
  /**
1341
- * Retrieves a standalone form record from the trash bin by ID.
1342
- * @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.
1343
1372
  * @public
1344
1373
  * @documentationMaturity preview
1345
1374
  * @requiredField standaloneFormId
@@ -1349,7 +1378,9 @@ declare function restoreStandaloneFormFromTrashBin(standaloneFormId: string): Pr
1349
1378
  */
1350
1379
  declare function getDeletedStandaloneForm(standaloneFormId: string): Promise<GetDeletedStandaloneFormResponse>;
1351
1380
  /**
1352
- * 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`.
1353
1384
  * @public
1354
1385
  * @documentationMaturity preview
1355
1386
  * @permissionId WIX_FORMS.STANDALONE_FORM_READ
@@ -1359,19 +1390,31 @@ declare function getDeletedStandaloneForm(standaloneFormId: string): Promise<Get
1359
1390
  declare function listDeletedStandaloneForms(options?: ListDeletedStandaloneFormsOptions): Promise<NonNullablePaths<ListDeletedStandaloneFormsResponse, `standaloneForms`, 0>>;
1360
1391
  interface ListDeletedStandaloneFormsOptions {
1361
1392
  /**
1362
- * 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.
1363
1396
  * @maxSize 100
1364
1397
  * @maxLength 36
1365
1398
  */
1366
1399
  standaloneFormIds?: string[];
1367
- /** Cursor token pointing to a page of results. Not used in the first request. */
1400
+ /** Cursor paging options. */
1368
1401
  paging?: CursorPaging;
1369
1402
  }
1370
1403
  /**
1371
- * 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`.
1372
1412
  *
1373
- * Supported filterable and sortable fields: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.
1374
- * @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.
1375
1418
  * @public
1376
1419
  * @documentationMaturity preview
1377
1420
  * @requiredField query
@@ -1381,9 +1424,10 @@ interface ListDeletedStandaloneFormsOptions {
1381
1424
  */
1382
1425
  declare function queryStandaloneForms(query: CursorQuery): Promise<NonNullablePaths<QueryStandaloneFormsResponse, `standaloneForms`, 0>>;
1383
1426
  /**
1384
- * 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.
1385
1428
  *
1386
- * 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.
1387
1431
  * @public
1388
1432
  * @documentationMaturity preview
1389
1433
  * @permissionId WIX_FORMS.STANDALONE_FORM_READ