@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.
- package/build/cjs/index.d.ts +51 -24
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +103 -59
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -32
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +51 -24
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +103 -59
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -32
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +51 -24
- package/build/internal/cjs/index.typings.d.ts +103 -59
- package/build/internal/cjs/meta.d.ts +47 -32
- package/build/internal/es/index.d.mts +51 -24
- package/build/internal/es/index.typings.d.mts +103 -59
- package/build/internal/es/meta.d.mts +47 -32
- package/package.json +2 -2
|
@@ -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.
|
|
13
|
+
* Standalone form ID.
|
|
7
14
|
*
|
|
8
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
|
28
|
+
* ID of the site that owns the standalone form.
|
|
23
29
|
*
|
|
24
|
-
*
|
|
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,
|
|
46
|
+
* Account slug of the site owner, used in the standalone form's public URL.
|
|
42
47
|
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
72
|
+
/** Created standalone form. */
|
|
65
73
|
standaloneForm?: StandaloneForm;
|
|
66
74
|
}
|
|
67
75
|
interface GetStandaloneFormRequest {
|
|
68
76
|
/**
|
|
69
|
-
*
|
|
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
|
-
/**
|
|
83
|
+
/** Retrieved standalone form. */
|
|
76
84
|
standaloneForm?: StandaloneForm;
|
|
77
85
|
}
|
|
78
86
|
interface DeleteStandaloneFormRequest {
|
|
79
87
|
/**
|
|
80
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
/**
|
|
118
|
+
/** Restored standalone form. */
|
|
111
119
|
standaloneForm?: StandaloneForm;
|
|
112
120
|
}
|
|
113
121
|
interface GetDeletedStandaloneFormRequest {
|
|
114
122
|
/**
|
|
115
|
-
*
|
|
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
|
-
/**
|
|
129
|
+
/** Retrieved standalone form. */
|
|
122
130
|
standaloneForm?: StandaloneForm;
|
|
123
131
|
}
|
|
124
132
|
interface ListDeletedStandaloneFormsRequest {
|
|
125
133
|
/**
|
|
126
|
-
*
|
|
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
|
|
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
|
-
*
|
|
162
|
+
* Retrieved standalone forms.
|
|
153
163
|
* @maxSize 100
|
|
154
164
|
*/
|
|
155
165
|
standaloneForms?: StandaloneForm[];
|
|
156
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
238
|
+
* Retrieved standalone forms.
|
|
229
239
|
* @maxSize 100
|
|
230
240
|
*/
|
|
231
241
|
standaloneForms?: StandaloneForm[];
|
|
232
|
-
/**
|
|
242
|
+
/** Paging metadata. */
|
|
233
243
|
metadata?: CursorPagingMetadata;
|
|
234
244
|
}
|
|
235
245
|
interface GetSitePropertiesRequest {
|
|
236
246
|
}
|
|
237
247
|
interface GetSitePropertiesResponse {
|
|
238
|
-
/**
|
|
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
|
-
/**
|
|
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.
|
|
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": "
|
|
53
|
+
"falconPackageHash": "cf4d5229f893a177c6eabfe7ac62d09b3e838e39dc60bfa7d8fa1afd"
|
|
54
54
|
}
|