@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.
- package/build/cjs/index.d.ts +54 -39
- package/build/cjs/index.js +15 -83
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +103 -71
- package/build/cjs/index.typings.js +15 -76
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +49 -35
- package/build/cjs/meta.js +15 -71
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +54 -39
- package/build/es/index.mjs +15 -82
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +103 -71
- package/build/es/index.typings.mjs +15 -75
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +49 -35
- package/build/es/meta.mjs +15 -70
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +54 -39
- package/build/internal/cjs/index.typings.d.ts +103 -71
- package/build/internal/cjs/meta.d.ts +49 -35
- package/build/internal/es/index.d.mts +54 -39
- package/build/internal/es/index.typings.d.mts +103 -71
- package/build/internal/es/meta.d.mts +49 -35
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
1
|
-
import {
|
|
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.
|
|
@@ -1277,7 +1292,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
1277
1292
|
__responseType: Q;
|
|
1278
1293
|
__originalResponseType: R;
|
|
1279
1294
|
};
|
|
1280
|
-
declare function getOrCreateFormStandaloneMetaSite(): __PublicMethodMetaInfo<'GET', {}, GetOrCreateFormStandaloneMetaSiteRequest$1, GetOrCreateFormStandaloneMetaSiteRequest, GetOrCreateFormStandaloneMetaSiteResponse$1, GetOrCreateFormStandaloneMetaSiteResponse>;
|
|
1281
1295
|
declare function createStandaloneForm(): __PublicMethodMetaInfo<'POST', {}, CreateStandaloneFormRequest$1, CreateStandaloneFormRequest, CreateStandaloneFormResponse$1, CreateStandaloneFormResponse>;
|
|
1282
1296
|
declare function getStandaloneForm(): __PublicMethodMetaInfo<'GET', {
|
|
1283
1297
|
standaloneFormId: string;
|
|
@@ -1298,4 +1312,4 @@ declare function listDeletedStandaloneForms(): __PublicMethodMetaInfo<'GET', {},
|
|
|
1298
1312
|
declare function queryStandaloneForms(): __PublicMethodMetaInfo<'POST', {}, QueryStandaloneFormsRequest$1, QueryStandaloneFormsRequest, QueryStandaloneFormsResponse$1, QueryStandaloneFormsResponse>;
|
|
1299
1313
|
declare function getSiteProperties(): __PublicMethodMetaInfo<'GET', {}, GetSitePropertiesRequest$1, GetSitePropertiesRequest, GetSitePropertiesResponse$1, GetSitePropertiesResponse>;
|
|
1300
1314
|
|
|
1301
|
-
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressHint as AddressHintOriginal, type Address as AddressOriginal, type Asset as AssetOriginal, type BusinessSchedule as BusinessScheduleOriginal, type Categories as CategoriesOriginal, type ChangeContext as ChangeContextOriginal, type ChangeContextPayloadOneOf as ChangeContextPayloadOneOfOriginal, type ConsentPolicy as ConsentPolicyOriginal, type CreateStandaloneFormApplicationErrors as CreateStandaloneFormApplicationErrorsOriginal, type CreateStandaloneFormRequest as CreateStandaloneFormRequestOriginal, type CreateStandaloneFormResponse as CreateStandaloneFormResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, DayOfWeek as DayOfWeekOriginal, type DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal, type DeleteContext as DeleteContextOriginal, type DeleteStandaloneFormRequest as DeleteStandaloneFormRequestOriginal, type DeleteStandaloneFormResponse as DeleteStandaloneFormResponseOriginal, DeleteStatus as DeleteStatusOriginal, type DeleteStatusWithLiterals as DeleteStatusWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EditorlessAssigned as EditorlessAssignedOriginal, type EditorlessUnassigned as EditorlessUnassignedOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GeoCoordinates as GeoCoordinatesOriginal, type GetDeletedStandaloneFormRequest as GetDeletedStandaloneFormRequestOriginal, type GetDeletedStandaloneFormResponse as GetDeletedStandaloneFormResponseOriginal, type GetOrCreateFormStandaloneMetaSiteRequest as GetOrCreateFormStandaloneMetaSiteRequestOriginal, type GetOrCreateFormStandaloneMetaSiteResponse as GetOrCreateFormStandaloneMetaSiteResponseOriginal, type GetSitePropertiesApplicationErrors as GetSitePropertiesApplicationErrorsOriginal, type GetSitePropertiesRequest as GetSitePropertiesRequestOriginal, type GetSitePropertiesResponse as GetSitePropertiesResponseOriginal, type GetStandaloneFormRequest as GetStandaloneFormRequestOriginal, type GetStandaloneFormResponse as GetStandaloneFormResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListDeletedStandaloneFormsRequest as ListDeletedStandaloneFormsRequestOriginal, type ListDeletedStandaloneFormsResponse as ListDeletedStandaloneFormsResponseOriginal, type Locale as LocaleOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MetaSiteSpecialEvent as MetaSiteSpecialEventOriginal, type MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOfOriginal, type Multilingual as MultilingualOriginal, type NamespaceChanged as NamespaceChangedOriginal, Namespace as NamespaceOriginal, type NamespaceWithLiterals as NamespaceWithLiteralsOriginal, type OdeditorAssigned as OdeditorAssignedOriginal, type OdeditorUnassigned as OdeditorUnassignedOriginal, type PicassoAssigned as PicassoAssignedOriginal, type PicassoUnassigned as PicassoUnassignedOriginal, PlacementType as PlacementTypeOriginal, type PlacementTypeWithLiterals as PlacementTypeWithLiteralsOriginal, type PropertiesChange as PropertiesChangeOriginal, type Properties as PropertiesOriginal, type QueryStandaloneFormsRequest as QueryStandaloneFormsRequestOriginal, type QueryStandaloneFormsResponse as QueryStandaloneFormsResponseOriginal, type RemoveStandaloneFormFromTrashBinRequest as RemoveStandaloneFormFromTrashBinRequestOriginal, type RemoveStandaloneFormFromTrashBinResponse as RemoveStandaloneFormFromTrashBinResponseOriginal, ResolutionMethod as ResolutionMethodOriginal, type ResolutionMethodWithLiterals as ResolutionMethodWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreStandaloneFormFromTrashBinRequest as RestoreStandaloneFormFromTrashBinRequestOriginal, type RestoreStandaloneFormFromTrashBinResponse as RestoreStandaloneFormFromTrashBinResponseOriginal, type ServiceProvisioned as ServiceProvisionedOriginal, type ServiceRemoved as ServiceRemovedOriginal, type SiteCloned as SiteClonedOriginal, SiteCreatedContext as SiteCreatedContextOriginal, type SiteCreatedContextWithLiterals as SiteCreatedContextWithLiteralsOriginal, type SiteCreated as SiteCreatedOriginal, type SiteDeleted as SiteDeletedOriginal, type SiteHardDeleted as SiteHardDeletedOriginal, type SiteMarkedAsTemplate as SiteMarkedAsTemplateOriginal, type SiteMarkedAsWixSite as SiteMarkedAsWixSiteOriginal, type SitePropertiesEvent as SitePropertiesEventOriginal, type SitePropertiesNotification as SitePropertiesNotificationOriginal, type SitePublished as SitePublishedOriginal, type SitePurgedExternally as SitePurgedExternallyOriginal, type SiteRenamed as SiteRenamedOriginal, type SiteTransferred as SiteTransferredOriginal, type SiteUndeleted as SiteUndeletedOriginal, type SiteUnpublished as SiteUnpublishedOriginal, type SiteUrlChanged as SiteUrlChangedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SpecialHourPeriod as SpecialHourPeriodOriginal, type StandaloneForm as StandaloneFormOriginal, type StandaloneMetaSiteProperties as StandaloneMetaSitePropertiesOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type StudioAssigned as StudioAssignedOriginal, type StudioTwoAssigned as StudioTwoAssignedOriginal, type StudioTwoUnassigned as StudioTwoUnassignedOriginal, type StudioUnassigned as StudioUnassignedOriginal, type SupportedLanguage as SupportedLanguageOriginal, type TimePeriod as TimePeriodOriginal, type Translation as TranslationOriginal, type UserDomainMediaDisabled as UserDomainMediaDisabledOriginal, type UserDomainMediaEnabled as UserDomainMediaEnabledOriginal, type V4SiteCreated as V4SiteCreatedOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WixelAssigned as WixelAssignedOriginal, type WixelUnassigned as WixelUnassignedOriginal, type __PublicMethodMetaInfo, createStandaloneForm, deleteStandaloneForm, getDeletedStandaloneForm,
|
|
1315
|
+
export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressHint as AddressHintOriginal, type Address as AddressOriginal, type Asset as AssetOriginal, type BusinessSchedule as BusinessScheduleOriginal, type Categories as CategoriesOriginal, type ChangeContext as ChangeContextOriginal, type ChangeContextPayloadOneOf as ChangeContextPayloadOneOfOriginal, type ConsentPolicy as ConsentPolicyOriginal, type CreateStandaloneFormApplicationErrors as CreateStandaloneFormApplicationErrorsOriginal, type CreateStandaloneFormRequest as CreateStandaloneFormRequestOriginal, type CreateStandaloneFormResponse as CreateStandaloneFormResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, DayOfWeek as DayOfWeekOriginal, type DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal, type DeleteContext as DeleteContextOriginal, type DeleteStandaloneFormRequest as DeleteStandaloneFormRequestOriginal, type DeleteStandaloneFormResponse as DeleteStandaloneFormResponseOriginal, DeleteStatus as DeleteStatusOriginal, type DeleteStatusWithLiterals as DeleteStatusWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EditorlessAssigned as EditorlessAssignedOriginal, type EditorlessUnassigned as EditorlessUnassignedOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type GeoCoordinates as GeoCoordinatesOriginal, type GetDeletedStandaloneFormRequest as GetDeletedStandaloneFormRequestOriginal, type GetDeletedStandaloneFormResponse as GetDeletedStandaloneFormResponseOriginal, type GetOrCreateFormStandaloneMetaSiteRequest as GetOrCreateFormStandaloneMetaSiteRequestOriginal, type GetOrCreateFormStandaloneMetaSiteResponse as GetOrCreateFormStandaloneMetaSiteResponseOriginal, type GetSitePropertiesApplicationErrors as GetSitePropertiesApplicationErrorsOriginal, type GetSitePropertiesRequest as GetSitePropertiesRequestOriginal, type GetSitePropertiesResponse as GetSitePropertiesResponseOriginal, type GetStandaloneFormRequest as GetStandaloneFormRequestOriginal, type GetStandaloneFormResponse as GetStandaloneFormResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ListDeletedStandaloneFormsRequest as ListDeletedStandaloneFormsRequestOriginal, type ListDeletedStandaloneFormsResponse as ListDeletedStandaloneFormsResponseOriginal, type Locale as LocaleOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MetaSiteSpecialEvent as MetaSiteSpecialEventOriginal, type MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOfOriginal, type Multilingual as MultilingualOriginal, type NamespaceChanged as NamespaceChangedOriginal, Namespace as NamespaceOriginal, type NamespaceWithLiterals as NamespaceWithLiteralsOriginal, type OdeditorAssigned as OdeditorAssignedOriginal, type OdeditorUnassigned as OdeditorUnassignedOriginal, type PicassoAssigned as PicassoAssignedOriginal, type PicassoUnassigned as PicassoUnassignedOriginal, PlacementType as PlacementTypeOriginal, type PlacementTypeWithLiterals as PlacementTypeWithLiteralsOriginal, type PropertiesChange as PropertiesChangeOriginal, type Properties as PropertiesOriginal, type QueryStandaloneFormsRequest as QueryStandaloneFormsRequestOriginal, type QueryStandaloneFormsResponse as QueryStandaloneFormsResponseOriginal, type RemoveStandaloneFormFromTrashBinRequest as RemoveStandaloneFormFromTrashBinRequestOriginal, type RemoveStandaloneFormFromTrashBinResponse as RemoveStandaloneFormFromTrashBinResponseOriginal, ResolutionMethod as ResolutionMethodOriginal, type ResolutionMethodWithLiterals as ResolutionMethodWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type RestoreStandaloneFormFromTrashBinRequest as RestoreStandaloneFormFromTrashBinRequestOriginal, type RestoreStandaloneFormFromTrashBinResponse as RestoreStandaloneFormFromTrashBinResponseOriginal, type ServiceProvisioned as ServiceProvisionedOriginal, type ServiceRemoved as ServiceRemovedOriginal, type SiteCloned as SiteClonedOriginal, SiteCreatedContext as SiteCreatedContextOriginal, type SiteCreatedContextWithLiterals as SiteCreatedContextWithLiteralsOriginal, type SiteCreated as SiteCreatedOriginal, type SiteDeleted as SiteDeletedOriginal, type SiteHardDeleted as SiteHardDeletedOriginal, type SiteMarkedAsTemplate as SiteMarkedAsTemplateOriginal, type SiteMarkedAsWixSite as SiteMarkedAsWixSiteOriginal, type SitePropertiesEvent as SitePropertiesEventOriginal, type SitePropertiesNotification as SitePropertiesNotificationOriginal, type SitePublished as SitePublishedOriginal, type SitePurgedExternally as SitePurgedExternallyOriginal, type SiteRenamed as SiteRenamedOriginal, type SiteTransferred as SiteTransferredOriginal, type SiteUndeleted as SiteUndeletedOriginal, type SiteUnpublished as SiteUnpublishedOriginal, type SiteUrlChanged as SiteUrlChangedOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SpecialHourPeriod as SpecialHourPeriodOriginal, type StandaloneForm as StandaloneFormOriginal, type StandaloneMetaSiteProperties as StandaloneMetaSitePropertiesOriginal, State as StateOriginal, type StateWithLiterals as StateWithLiteralsOriginal, type StudioAssigned as StudioAssignedOriginal, type StudioTwoAssigned as StudioTwoAssignedOriginal, type StudioTwoUnassigned as StudioTwoUnassignedOriginal, type StudioUnassigned as StudioUnassignedOriginal, type SupportedLanguage as SupportedLanguageOriginal, type TimePeriod as TimePeriodOriginal, type Translation as TranslationOriginal, type UserDomainMediaDisabled as UserDomainMediaDisabledOriginal, type UserDomainMediaEnabled as UserDomainMediaEnabledOriginal, type V4SiteCreated as V4SiteCreatedOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WixelAssigned as WixelAssignedOriginal, type WixelUnassigned as WixelUnassignedOriginal, type __PublicMethodMetaInfo, createStandaloneForm, deleteStandaloneForm, getDeletedStandaloneForm, getSiteProperties, getStandaloneForm, listDeletedStandaloneForms, queryStandaloneForms, removeStandaloneFormFromTrashBin, restoreStandaloneFormFromTrashBin };
|
package/build/es/meta.mjs
CHANGED
|
@@ -4,6 +4,14 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
|
|
|
4
4
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
5
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
6
6
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
7
|
+
var TRANSFORM_PATHS_0 = [
|
|
8
|
+
{ path: "standaloneForm.createdDate" },
|
|
9
|
+
{ path: "standaloneForm.updatedDate" }
|
|
10
|
+
];
|
|
11
|
+
var TRANSFORM_PATHS_1 = [
|
|
12
|
+
{ path: "standaloneForms.createdDate" },
|
|
13
|
+
{ path: "standaloneForms.updatedDate" }
|
|
14
|
+
];
|
|
7
15
|
function resolveWixFormsV1FormStandaloneServiceUrl(opts) {
|
|
8
16
|
const domainToMappings = {
|
|
9
17
|
"manage._base_domain_": [
|
|
@@ -74,36 +82,12 @@ function resolveWixFormsV1FormStandaloneServiceUrl(opts) {
|
|
|
74
82
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
75
83
|
}
|
|
76
84
|
var PACKAGE_NAME = "@wix/auto_sdk_standalone-forms_standalone-forms";
|
|
77
|
-
function getOrCreateFormStandaloneMetaSite(payload) {
|
|
78
|
-
function __getOrCreateFormStandaloneMetaSite({ host }) {
|
|
79
|
-
const metadata = {
|
|
80
|
-
entityFqdn: "wix.forms.v1.standalone_form",
|
|
81
|
-
method: "GET",
|
|
82
|
-
methodFqn: "wix.forms.v1.FormStandaloneService.GetOrCreateFormStandaloneMetaSite",
|
|
83
|
-
packageName: PACKAGE_NAME,
|
|
84
|
-
migrationOptions: {
|
|
85
|
-
optInTransformResponse: true
|
|
86
|
-
},
|
|
87
|
-
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
88
|
-
protoPath: "/v4/standalone-forms/metasite",
|
|
89
|
-
data: payload,
|
|
90
|
-
host
|
|
91
|
-
}),
|
|
92
|
-
params: toURLSearchParams(payload)
|
|
93
|
-
};
|
|
94
|
-
return metadata;
|
|
95
|
-
}
|
|
96
|
-
return __getOrCreateFormStandaloneMetaSite;
|
|
97
|
-
}
|
|
98
85
|
function createStandaloneForm(payload) {
|
|
99
86
|
function __createStandaloneForm({ host }) {
|
|
100
87
|
const serializedData = transformPaths(payload, [
|
|
101
88
|
{
|
|
102
89
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
103
|
-
paths:
|
|
104
|
-
{ path: "standaloneForm.createdDate" },
|
|
105
|
-
{ path: "standaloneForm.updatedDate" }
|
|
106
|
-
]
|
|
90
|
+
paths: TRANSFORM_PATHS_0
|
|
107
91
|
}
|
|
108
92
|
]);
|
|
109
93
|
const metadata = {
|
|
@@ -123,10 +107,7 @@ function createStandaloneForm(payload) {
|
|
|
123
107
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
124
108
|
{
|
|
125
109
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
126
|
-
paths:
|
|
127
|
-
{ path: "standaloneForm.createdDate" },
|
|
128
|
-
{ path: "standaloneForm.updatedDate" }
|
|
129
|
-
]
|
|
110
|
+
paths: TRANSFORM_PATHS_0
|
|
130
111
|
}
|
|
131
112
|
])
|
|
132
113
|
};
|
|
@@ -153,10 +134,7 @@ function getStandaloneForm(payload) {
|
|
|
153
134
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
154
135
|
{
|
|
155
136
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
156
|
-
paths:
|
|
157
|
-
{ path: "standaloneForm.createdDate" },
|
|
158
|
-
{ path: "standaloneForm.updatedDate" }
|
|
159
|
-
]
|
|
137
|
+
paths: TRANSFORM_PATHS_0
|
|
160
138
|
}
|
|
161
139
|
])
|
|
162
140
|
};
|
|
@@ -225,10 +203,7 @@ function restoreStandaloneFormFromTrashBin(payload) {
|
|
|
225
203
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
226
204
|
{
|
|
227
205
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
228
|
-
paths:
|
|
229
|
-
{ path: "standaloneForm.createdDate" },
|
|
230
|
-
{ path: "standaloneForm.updatedDate" }
|
|
231
|
-
]
|
|
206
|
+
paths: TRANSFORM_PATHS_0
|
|
232
207
|
}
|
|
233
208
|
])
|
|
234
209
|
};
|
|
@@ -255,10 +230,7 @@ function getDeletedStandaloneForm(payload) {
|
|
|
255
230
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
256
231
|
{
|
|
257
232
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
258
|
-
paths:
|
|
259
|
-
{ path: "standaloneForm.createdDate" },
|
|
260
|
-
{ path: "standaloneForm.updatedDate" }
|
|
261
|
-
]
|
|
233
|
+
paths: TRANSFORM_PATHS_0
|
|
262
234
|
}
|
|
263
235
|
])
|
|
264
236
|
};
|
|
@@ -285,10 +257,7 @@ function listDeletedStandaloneForms(payload) {
|
|
|
285
257
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
286
258
|
{
|
|
287
259
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
288
|
-
paths:
|
|
289
|
-
{ path: "standaloneForms.createdDate" },
|
|
290
|
-
{ path: "standaloneForms.updatedDate" }
|
|
291
|
-
]
|
|
260
|
+
paths: TRANSFORM_PATHS_1
|
|
292
261
|
}
|
|
293
262
|
])
|
|
294
263
|
};
|
|
@@ -315,10 +284,7 @@ function queryStandaloneForms(payload) {
|
|
|
315
284
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
316
285
|
{
|
|
317
286
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
318
|
-
paths:
|
|
319
|
-
{ path: "standaloneForms.createdDate" },
|
|
320
|
-
{ path: "standaloneForms.updatedDate" }
|
|
321
|
-
]
|
|
287
|
+
paths: TRANSFORM_PATHS_1
|
|
322
288
|
}
|
|
323
289
|
])
|
|
324
290
|
};
|
|
@@ -454,26 +420,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
454
420
|
})(WebhookIdentityType || {});
|
|
455
421
|
|
|
456
422
|
// src/forms-v1-standalone-form-standalone-forms.meta.ts
|
|
457
|
-
function getOrCreateFormStandaloneMetaSite2() {
|
|
458
|
-
const payload = {};
|
|
459
|
-
const getRequestOptions = getOrCreateFormStandaloneMetaSite(
|
|
460
|
-
payload
|
|
461
|
-
);
|
|
462
|
-
const getUrl = (context) => {
|
|
463
|
-
const { url } = getRequestOptions(context);
|
|
464
|
-
return url;
|
|
465
|
-
};
|
|
466
|
-
return {
|
|
467
|
-
getUrl,
|
|
468
|
-
httpMethod: "GET",
|
|
469
|
-
path: "/v4/standalone-forms/metasite",
|
|
470
|
-
pathParams: {},
|
|
471
|
-
__requestType: null,
|
|
472
|
-
__originalRequestType: null,
|
|
473
|
-
__responseType: null,
|
|
474
|
-
__originalResponseType: null
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
423
|
function createStandaloneForm2() {
|
|
478
424
|
const payload = {};
|
|
479
425
|
const getRequestOptions = createStandaloneForm(payload);
|
|
@@ -653,7 +599,6 @@ export {
|
|
|
653
599
|
createStandaloneForm2 as createStandaloneForm,
|
|
654
600
|
deleteStandaloneForm2 as deleteStandaloneForm,
|
|
655
601
|
getDeletedStandaloneForm2 as getDeletedStandaloneForm,
|
|
656
|
-
getOrCreateFormStandaloneMetaSite2 as getOrCreateFormStandaloneMetaSite,
|
|
657
602
|
getSiteProperties2 as getSiteProperties,
|
|
658
603
|
getStandaloneForm2 as getStandaloneForm,
|
|
659
604
|
listDeletedStandaloneForms2 as listDeletedStandaloneForms,
|