@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.
@@ -1,28 +1,33 @@
1
1
  import { CreateStandaloneFormRequest as CreateStandaloneFormRequest$1, CreateStandaloneFormResponse as CreateStandaloneFormResponse$1, GetStandaloneFormRequest as GetStandaloneFormRequest$1, GetStandaloneFormResponse as GetStandaloneFormResponse$1, DeleteStandaloneFormRequest as DeleteStandaloneFormRequest$1, DeleteStandaloneFormResponse as DeleteStandaloneFormResponse$1, RemoveStandaloneFormFromTrashBinRequest as RemoveStandaloneFormFromTrashBinRequest$1, RemoveStandaloneFormFromTrashBinResponse as RemoveStandaloneFormFromTrashBinResponse$1, RestoreStandaloneFormFromTrashBinRequest as RestoreStandaloneFormFromTrashBinRequest$1, RestoreStandaloneFormFromTrashBinResponse as RestoreStandaloneFormFromTrashBinResponse$1, GetDeletedStandaloneFormRequest as GetDeletedStandaloneFormRequest$1, GetDeletedStandaloneFormResponse as GetDeletedStandaloneFormResponse$1, ListDeletedStandaloneFormsRequest as ListDeletedStandaloneFormsRequest$1, ListDeletedStandaloneFormsResponse as ListDeletedStandaloneFormsResponse$1, QueryStandaloneFormsRequest as QueryStandaloneFormsRequest$1, QueryStandaloneFormsResponse as QueryStandaloneFormsResponse$1, GetSitePropertiesRequest as GetSitePropertiesRequest$1, GetSitePropertiesResponse as GetSitePropertiesResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
+ /**
5
+ * 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
6
+ * instead of on a Wix site.
7
+ *
8
+ * A form doesn't indicate whether it's standalone. A standalone form that references the form is what makes it
9
+ * standalone.
10
+ */
4
11
  interface StandaloneForm {
5
12
  /**
6
- * Standalone form ID. Automatically generated when the standalone form is created.
13
+ * Standalone form ID.
7
14
  *
8
- * Together with `accountSlug`, this ID forms part of the standalone form's public URL.
15
+ * Used in the standalone form's public URL. See `accountSlug` for the URL format.
9
16
  * @maxLength 36
10
17
  * @readonly
11
18
  */
12
19
  id?: string | null;
13
20
  /**
14
- * ID of the form, managed through the Wix Forms API, that this record marks as standalone.
21
+ * ID of the [form](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/introduction) that the standalone form marks as standalone.
15
22
  *
16
- * A form doesn't itself indicate whether it's standalone. The existence of a standalone form
17
- * record that references it is what makes the form standalone.
23
+ * The form must exist before you create the standalone form.
18
24
  * @format GUID
19
25
  */
20
26
  formId?: string | null;
21
27
  /**
22
- * ID of the meta site that owns the standalone form.
28
+ * ID of the site that owns the standalone form.
23
29
  *
24
- * The meta site owns the form. Because this service doesn't use meta site tenancy, the owning
25
- * meta site is stored explicitly in this field. Set from the calling context when the form is created.
30
+ * Set to the site your request is authorized for when the standalone form is created.
26
31
  * @format GUID
27
32
  * @readonly
28
33
  */
@@ -38,10 +43,13 @@ interface StandaloneForm {
38
43
  */
39
44
  updatedDate?: Date | null;
40
45
  /**
41
- * Account slug of the site owner, captured when the standalone form was created.
46
+ * Account slug of the site owner, used in the standalone form's public URL.
42
47
  *
43
- * Together with `id`, the slug forms part of the standalone form's public URL. May be empty
44
- * if it couldn't be resolved at creation time.
48
+ * The standalone form's public URL is:
49
+ * - `https://{accountSlug}.wixforms.com/f/{id}` when `accountSlug` is set.
50
+ * - `https://www.wixforms.com/f/{id}` when `accountSlug` is empty.
51
+ *
52
+ * Set when the standalone form is created and doesn't change afterward.
45
53
  * @maxLength 50
46
54
  * @readonly
47
55
  */
@@ -51,38 +59,38 @@ interface GetOrCreateFormStandaloneMetaSiteRequest {
51
59
  }
52
60
  interface GetOrCreateFormStandaloneMetaSiteResponse {
53
61
  /**
54
- * MetaSiteId
62
+ * Meta site ID.
55
63
  * @format GUID
56
64
  */
57
65
  metaSiteId?: string;
58
66
  }
59
67
  interface CreateStandaloneFormRequest {
60
- /** Standalone form */
68
+ /** Standalone form to create. */
61
69
  standaloneForm: StandaloneForm;
62
70
  }
63
71
  interface CreateStandaloneFormResponse {
64
- /** Standalone form */
72
+ /** Created standalone form. */
65
73
  standaloneForm?: StandaloneForm;
66
74
  }
67
75
  interface GetStandaloneFormRequest {
68
76
  /**
69
- * Standalone form id
77
+ * ID of the standalone form to retrieve.
70
78
  * @maxLength 36
71
79
  */
72
80
  standaloneFormId: string;
73
81
  }
74
82
  interface GetStandaloneFormResponse {
75
- /** Standalone form */
83
+ /** Retrieved standalone form. */
76
84
  standaloneForm?: StandaloneForm;
77
85
  }
78
86
  interface DeleteStandaloneFormRequest {
79
87
  /**
80
- * Standalone form id
88
+ * ID of the standalone form to delete.
81
89
  * @maxLength 36
82
90
  */
83
91
  standaloneFormId: string;
84
92
  /**
85
- * Whether to permanently delete a standalone form bypassing the trash bin.
93
+ * Whether to permanently delete the standalone form instead of moving it to the trash bin.
86
94
  *
87
95
  * Default: `false`
88
96
  */
@@ -92,7 +100,7 @@ interface DeleteStandaloneFormResponse {
92
100
  }
93
101
  interface RemoveStandaloneFormFromTrashBinRequest {
94
102
  /**
95
- * Standalone form id
103
+ * ID of the standalone form to permanently delete.
96
104
  * @maxLength 36
97
105
  */
98
106
  standaloneFormId: string;
@@ -101,34 +109,36 @@ interface RemoveStandaloneFormFromTrashBinResponse {
101
109
  }
102
110
  interface RestoreStandaloneFormFromTrashBinRequest {
103
111
  /**
104
- * Standalone form id
112
+ * ID of the standalone form to restore.
105
113
  * @maxLength 36
106
114
  */
107
115
  standaloneFormId: string;
108
116
  }
109
117
  interface RestoreStandaloneFormFromTrashBinResponse {
110
- /** Standalone form */
118
+ /** Restored standalone form. */
111
119
  standaloneForm?: StandaloneForm;
112
120
  }
113
121
  interface GetDeletedStandaloneFormRequest {
114
122
  /**
115
- * Standalone form id
123
+ * ID of the standalone form to retrieve from the trash bin.
116
124
  * @maxLength 36
117
125
  */
118
126
  standaloneFormId: string;
119
127
  }
120
128
  interface GetDeletedStandaloneFormResponse {
121
- /** Standalone form */
129
+ /** Retrieved standalone form. */
122
130
  standaloneForm?: StandaloneForm;
123
131
  }
124
132
  interface ListDeletedStandaloneFormsRequest {
125
133
  /**
126
- * Standalone Form ids.
134
+ * IDs of the standalone forms to retrieve from the trash bin.
135
+ *
136
+ * Default: All standalone forms in the trash bin.
127
137
  * @maxSize 100
128
138
  * @maxLength 36
129
139
  */
130
140
  standaloneFormIds?: string[];
131
- /** Cursor token pointing to a page of results. Not used in the first request. */
141
+ /** Cursor paging options. */
132
142
  paging?: CursorPaging;
133
143
  }
134
144
  interface CursorPaging {
@@ -149,11 +159,11 @@ interface CursorPaging {
149
159
  }
150
160
  interface ListDeletedStandaloneFormsResponse {
151
161
  /**
152
- * The retrieved standalone forms
162
+ * Retrieved standalone forms.
153
163
  * @maxSize 100
154
164
  */
155
165
  standaloneForms?: StandaloneForm[];
156
- /** Details on the paged set of results returned. */
166
+ /** Paging metadata. */
157
167
  pagingMetadata?: CursorPagingMetadata;
158
168
  }
159
169
  interface CursorPagingMetadata {
@@ -181,7 +191,7 @@ interface Cursors {
181
191
  prev?: string | null;
182
192
  }
183
193
  interface QueryStandaloneFormsRequest {
184
- /** WQL expression. */
194
+ /** 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. */
185
195
  query: CursorQuery;
186
196
  }
187
197
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -225,21 +235,26 @@ declare enum SortOrder {
225
235
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
226
236
  interface QueryStandaloneFormsResponse {
227
237
  /**
228
- * The retrieved standalone forms
238
+ * Retrieved standalone forms.
229
239
  * @maxSize 100
230
240
  */
231
241
  standaloneForms?: StandaloneForm[];
232
- /** Details on the paged set of results returned. */
242
+ /** Paging metadata. */
233
243
  metadata?: CursorPagingMetadata;
234
244
  }
235
245
  interface GetSitePropertiesRequest {
236
246
  }
237
247
  interface GetSitePropertiesResponse {
238
- /** Standalone MetaSite properties */
248
+ /** Site's currency and locale. */
239
249
  siteProperties?: StandaloneMetaSiteProperties;
240
250
  }
251
+ /** Currency and locale settings of a site. */
241
252
  interface StandaloneMetaSiteProperties {
242
- /** Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. */
253
+ /**
254
+ * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
255
+ *
256
+ * Empty if the site's payment currency isn't set.
257
+ */
243
258
  paymentCurrency?: string | null;
244
259
  /**
245
260
  * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_standalone-forms_standalone-forms",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.forms.v1.standalone_form"
51
51
  }
52
52
  },
53
- "falconPackageHash": "784af80648753c2da37af55c84da0a49f218e6999d83f40d8fe63309"
53
+ "falconPackageHash": "cf4d5229f893a177c6eabfe7ac62d09b3e838e39dc60bfa7d8fa1afd"
54
54
  }