@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,28 +1,20 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { GetOrCreateFormStandaloneMetaSiteResponse, StandaloneForm, CreateStandaloneFormApplicationErrors, DeleteStandaloneFormOptions, RestoreStandaloneFormFromTrashBinResponse, GetDeletedStandaloneFormResponse, ListDeletedStandaloneFormsOptions, ListDeletedStandaloneFormsResponse, CursorQuery, QueryStandaloneFormsResponse, GetSitePropertiesResponse, GetSitePropertiesApplicationErrors } from './index.typings.mjs';
3
- export { AccountInfo, ActionEvent, Address, AddressHint, Asset, BusinessSchedule, Categories, ChangeContext, ChangeContextPayloadOneOf, ConsentPolicy, CreateStandaloneFormRequest, CreateStandaloneFormResponse, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, DayOfWeek, DayOfWeekWithLiterals, DeleteContext, DeleteStandaloneFormRequest, DeleteStandaloneFormResponse, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, EditorlessAssigned, EditorlessUnassigned, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GeoCoordinates, GetDeletedStandaloneFormRequest, GetOrCreateFormStandaloneMetaSiteRequest, GetSitePropertiesRequest, GetStandaloneFormRequest, GetStandaloneFormResponse, IdentificationData, IdentificationDataIdOneOf, ListDeletedStandaloneFormsRequest, Locale, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Multilingual, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, PlacementType, PlacementTypeWithLiterals, Properties, PropertiesChange, QueryStandaloneFormsRequest, RemoveStandaloneFormFromTrashBinRequest, RemoveStandaloneFormFromTrashBinResponse, ResolutionMethod, ResolutionMethodWithLiterals, RestoreInfo, RestoreStandaloneFormFromTrashBinRequest, ServiceProvisioned, ServiceRemoved, SiteCloned, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesNotification, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SpecialHourPeriod, StandaloneMetaSiteProperties, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, SupportedLanguage, TimePeriod, Translation, UserDomainMediaDisabled, UserDomainMediaEnabled, V4SiteCreated, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.mjs';
2
+ import { StandaloneForm, CreateStandaloneFormApplicationErrors, DeleteStandaloneFormOptions, RestoreStandaloneFormFromTrashBinResponse, GetDeletedStandaloneFormResponse, ListDeletedStandaloneFormsOptions, ListDeletedStandaloneFormsResponse, CursorQuery, QueryStandaloneFormsResponse, GetSitePropertiesResponse, GetSitePropertiesApplicationErrors } from './index.typings.mjs';
3
+ export { AccountInfo, ActionEvent, Address, AddressHint, Asset, BusinessSchedule, Categories, ChangeContext, ChangeContextPayloadOneOf, ConsentPolicy, CreateStandaloneFormRequest, CreateStandaloneFormResponse, CursorPaging, CursorPagingMetadata, CursorQueryPagingMethodOneOf, Cursors, DayOfWeek, DayOfWeekWithLiterals, DeleteContext, DeleteStandaloneFormRequest, DeleteStandaloneFormResponse, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, EditorlessAssigned, EditorlessUnassigned, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GeoCoordinates, GetDeletedStandaloneFormRequest, GetOrCreateFormStandaloneMetaSiteRequest, GetOrCreateFormStandaloneMetaSiteResponse, GetSitePropertiesRequest, GetStandaloneFormRequest, GetStandaloneFormResponse, IdentificationData, IdentificationDataIdOneOf, ListDeletedStandaloneFormsRequest, Locale, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Multilingual, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, PicassoAssigned, PicassoUnassigned, PlacementType, PlacementTypeWithLiterals, Properties, PropertiesChange, QueryStandaloneFormsRequest, RemoveStandaloneFormFromTrashBinRequest, RemoveStandaloneFormFromTrashBinResponse, ResolutionMethod, ResolutionMethodWithLiterals, RestoreInfo, RestoreStandaloneFormFromTrashBinRequest, ServiceProvisioned, ServiceRemoved, SiteCloned, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesNotification, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, SortOrderWithLiterals, Sorting, SpecialHourPeriod, StandaloneMetaSiteProperties, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, SupportedLanguage, TimePeriod, Translation, UserDomainMediaDisabled, UserDomainMediaEnabled, V4SiteCreated, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.mjs';
4
4
 
5
- declare function getOrCreateFormStandaloneMetaSite$1(httpClient: HttpClient): GetOrCreateFormStandaloneMetaSiteSignature;
6
- interface GetOrCreateFormStandaloneMetaSiteSignature {
7
- /**
8
- * Returns the standalone meta site owned by the caller's account, provisioning a new siteless
9
- * meta site if one doesn't exist yet.
10
- *
11
- * Use this when the caller doesn't already have a meta site, for example when a form is built
12
- * before the user becomes a Wix user. The returned meta site can then own standalone forms.
13
- */
14
- (): Promise<NonNullablePaths<GetOrCreateFormStandaloneMetaSiteResponse, `metaSiteId`, 0>>;
15
- }
16
5
  declare function createStandaloneForm$1(httpClient: HttpClient): CreateStandaloneFormSignature;
17
6
  interface CreateStandaloneFormSignature {
18
7
  /**
19
- * Marks an existing form as standalone by creating a standalone form record that binds the form
20
- * 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.
21
9
  *
22
- * The form referenced by `formId` must already exist. The owning meta site is taken from the
23
- * calling context. A given form can be marked standalone by only one record per meta site.
24
- * @param - Standalone form
25
- * @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.
26
18
  */
27
19
  (standaloneForm: NonNullablePaths<StandaloneForm, `formId`, 0>): Promise<StandaloneForm & {
28
20
  __applicationErrorsType?: CreateStandaloneFormApplicationErrors;
@@ -31,76 +23,99 @@ interface CreateStandaloneFormSignature {
31
23
  declare function getStandaloneForm$1(httpClient: HttpClient): GetStandaloneFormSignature;
32
24
  interface GetStandaloneFormSignature {
33
25
  /**
34
- * Retrieves a standalone form by ID.
35
- * @param - Standalone form id
36
- * @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.
37
31
  */
38
32
  (standaloneFormId: string): Promise<StandaloneForm>;
39
33
  }
40
34
  declare function deleteStandaloneForm$1(httpClient: HttpClient): DeleteStandaloneFormSignature;
41
35
  interface DeleteStandaloneFormSignature {
42
36
  /**
43
- * Deletes a standalone form record
37
+ * Deletes a standalone form.
44
38
  *
45
- * By default the record is moved to the trash bin. Set `permanent` to `true` to delete it permanently.
46
- * @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.
47
46
  */
48
47
  (standaloneFormId: string, options?: DeleteStandaloneFormOptions): Promise<void>;
49
48
  }
50
49
  declare function removeStandaloneFormFromTrashBin$1(httpClient: HttpClient): RemoveStandaloneFormFromTrashBinSignature;
51
50
  interface RemoveStandaloneFormFromTrashBinSignature {
52
51
  /**
53
- * Permanently deletes a standalone form record that is in the trash bin.
54
- * @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.
55
56
  */
56
57
  (standaloneFormId: string): Promise<void>;
57
58
  }
58
59
  declare function restoreStandaloneFormFromTrashBin$1(httpClient: HttpClient): RestoreStandaloneFormFromTrashBinSignature;
59
60
  interface RestoreStandaloneFormFromTrashBinSignature {
60
61
  /**
61
- * Restores a standalone form record from the trash bin.
62
- * @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.
63
66
  */
64
67
  (standaloneFormId: string): Promise<RestoreStandaloneFormFromTrashBinResponse>;
65
68
  }
66
69
  declare function getDeletedStandaloneForm$1(httpClient: HttpClient): GetDeletedStandaloneFormSignature;
67
70
  interface GetDeletedStandaloneFormSignature {
68
71
  /**
69
- * Retrieves a standalone form record from the trash bin by ID.
70
- * @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.
71
74
  */
72
75
  (standaloneFormId: string): Promise<GetDeletedStandaloneFormResponse>;
73
76
  }
74
77
  declare function listDeletedStandaloneForms$1(httpClient: HttpClient): ListDeletedStandaloneFormsSignature;
75
78
  interface ListDeletedStandaloneFormsSignature {
76
79
  /**
77
- * 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`.
78
83
  */
79
84
  (options?: ListDeletedStandaloneFormsOptions): Promise<NonNullablePaths<ListDeletedStandaloneFormsResponse, `standaloneForms`, 0>>;
80
85
  }
81
86
  declare function queryStandaloneForms$1(httpClient: HttpClient): QueryStandaloneFormsSignature;
82
87
  interface QueryStandaloneFormsSignature {
83
88
  /**
84
- * 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`.
85
97
  *
86
- * Supported filterable and sortable fields: `id`, `formId`, `metaSiteId`, `createdDate`, `updatedDate`.
87
- * @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.
88
103
  */
89
104
  (query: CursorQuery): Promise<NonNullablePaths<QueryStandaloneFormsResponse, `standaloneForms`, 0>>;
90
105
  }
91
106
  declare function getSiteProperties$1(httpClient: HttpClient): GetSitePropertiesSignature;
92
107
  interface GetSitePropertiesSignature {
93
108
  /**
94
- * 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.
95
110
  *
96
- * 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.
97
113
  */
98
114
  (): Promise<NonNullablePaths<GetSitePropertiesResponse, `siteProperties.localeLanguageCode` | `siteProperties.localeCountry`, 1> & {
99
115
  __applicationErrorsType?: GetSitePropertiesApplicationErrors;
100
116
  }>;
101
117
  }
102
118
 
103
- declare const getOrCreateFormStandaloneMetaSite: MaybeContext<BuildRESTFunction<typeof getOrCreateFormStandaloneMetaSite$1> & typeof getOrCreateFormStandaloneMetaSite$1>;
104
119
  declare const createStandaloneForm: MaybeContext<BuildRESTFunction<typeof createStandaloneForm$1> & typeof createStandaloneForm$1>;
105
120
  declare const getStandaloneForm: MaybeContext<BuildRESTFunction<typeof getStandaloneForm$1> & typeof getStandaloneForm$1>;
106
121
  declare const deleteStandaloneForm: MaybeContext<BuildRESTFunction<typeof deleteStandaloneForm$1> & typeof deleteStandaloneForm$1>;
@@ -111,4 +126,4 @@ declare const listDeletedStandaloneForms: MaybeContext<BuildRESTFunction<typeof
111
126
  declare const queryStandaloneForms: MaybeContext<BuildRESTFunction<typeof queryStandaloneForms$1> & typeof queryStandaloneForms$1>;
112
127
  declare const getSiteProperties: MaybeContext<BuildRESTFunction<typeof getSiteProperties$1> & typeof getSiteProperties$1>;
113
128
 
114
- export { CreateStandaloneFormApplicationErrors, CursorQuery, DeleteStandaloneFormOptions, GetDeletedStandaloneFormResponse, GetOrCreateFormStandaloneMetaSiteResponse, GetSitePropertiesApplicationErrors, GetSitePropertiesResponse, ListDeletedStandaloneFormsOptions, ListDeletedStandaloneFormsResponse, QueryStandaloneFormsResponse, RestoreStandaloneFormFromTrashBinResponse, StandaloneForm, createStandaloneForm, deleteStandaloneForm, getDeletedStandaloneForm, getOrCreateFormStandaloneMetaSite, getSiteProperties, getStandaloneForm, listDeletedStandaloneForms, queryStandaloneForms, removeStandaloneFormFromTrashBin, restoreStandaloneFormFromTrashBin };
129
+ export { CreateStandaloneFormApplicationErrors, CursorQuery, DeleteStandaloneFormOptions, GetDeletedStandaloneFormResponse, GetSitePropertiesApplicationErrors, GetSitePropertiesResponse, ListDeletedStandaloneFormsOptions, ListDeletedStandaloneFormsResponse, QueryStandaloneFormsResponse, RestoreStandaloneFormFromTrashBinResponse, StandaloneForm, createStandaloneForm, deleteStandaloneForm, getDeletedStandaloneForm, getSiteProperties, getStandaloneForm, listDeletedStandaloneForms, queryStandaloneForms, removeStandaloneFormFromTrashBin, restoreStandaloneFormFromTrashBin };
@@ -11,6 +11,14 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
11
11
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
12
12
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
13
13
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
14
+ var TRANSFORM_PATHS_0 = [
15
+ { path: "standaloneForm.createdDate" },
16
+ { path: "standaloneForm.updatedDate" }
17
+ ];
18
+ var TRANSFORM_PATHS_1 = [
19
+ { path: "standaloneForms.createdDate" },
20
+ { path: "standaloneForms.updatedDate" }
21
+ ];
14
22
  function resolveWixFormsV1FormStandaloneServiceUrl(opts) {
15
23
  const domainToMappings = {
16
24
  "manage._base_domain_": [
@@ -81,36 +89,12 @@ function resolveWixFormsV1FormStandaloneServiceUrl(opts) {
81
89
  return resolveUrl(Object.assign(opts, { domainToMappings }));
82
90
  }
83
91
  var PACKAGE_NAME = "@wix/auto_sdk_standalone-forms_standalone-forms";
84
- function getOrCreateFormStandaloneMetaSite(payload) {
85
- function __getOrCreateFormStandaloneMetaSite({ host }) {
86
- const metadata = {
87
- entityFqdn: "wix.forms.v1.standalone_form",
88
- method: "GET",
89
- methodFqn: "wix.forms.v1.FormStandaloneService.GetOrCreateFormStandaloneMetaSite",
90
- packageName: PACKAGE_NAME,
91
- migrationOptions: {
92
- optInTransformResponse: true
93
- },
94
- url: resolveWixFormsV1FormStandaloneServiceUrl({
95
- protoPath: "/v4/standalone-forms/metasite",
96
- data: payload,
97
- host
98
- }),
99
- params: toURLSearchParams(payload)
100
- };
101
- return metadata;
102
- }
103
- return __getOrCreateFormStandaloneMetaSite;
104
- }
105
92
  function createStandaloneForm(payload) {
106
93
  function __createStandaloneForm({ host }) {
107
94
  const serializedData = transformPaths(payload, [
108
95
  {
109
96
  transformFn: transformSDKTimestampToRESTTimestamp,
110
- paths: [
111
- { path: "standaloneForm.createdDate" },
112
- { path: "standaloneForm.updatedDate" }
113
- ]
97
+ paths: TRANSFORM_PATHS_0
114
98
  }
115
99
  ]);
116
100
  const metadata = {
@@ -130,10 +114,7 @@ function createStandaloneForm(payload) {
130
114
  transformResponse: (payload2) => transformPaths(payload2, [
131
115
  {
132
116
  transformFn: transformRESTTimestampToSDKTimestamp,
133
- paths: [
134
- { path: "standaloneForm.createdDate" },
135
- { path: "standaloneForm.updatedDate" }
136
- ]
117
+ paths: TRANSFORM_PATHS_0
137
118
  }
138
119
  ])
139
120
  };
@@ -160,10 +141,7 @@ function getStandaloneForm(payload) {
160
141
  transformResponse: (payload2) => transformPaths(payload2, [
161
142
  {
162
143
  transformFn: transformRESTTimestampToSDKTimestamp,
163
- paths: [
164
- { path: "standaloneForm.createdDate" },
165
- { path: "standaloneForm.updatedDate" }
166
- ]
144
+ paths: TRANSFORM_PATHS_0
167
145
  }
168
146
  ])
169
147
  };
@@ -232,10 +210,7 @@ function restoreStandaloneFormFromTrashBin(payload) {
232
210
  transformResponse: (payload2) => transformPaths(payload2, [
233
211
  {
234
212
  transformFn: transformRESTTimestampToSDKTimestamp,
235
- paths: [
236
- { path: "standaloneForm.createdDate" },
237
- { path: "standaloneForm.updatedDate" }
238
- ]
213
+ paths: TRANSFORM_PATHS_0
239
214
  }
240
215
  ])
241
216
  };
@@ -262,10 +237,7 @@ function getDeletedStandaloneForm(payload) {
262
237
  transformResponse: (payload2) => transformPaths(payload2, [
263
238
  {
264
239
  transformFn: transformRESTTimestampToSDKTimestamp,
265
- paths: [
266
- { path: "standaloneForm.createdDate" },
267
- { path: "standaloneForm.updatedDate" }
268
- ]
240
+ paths: TRANSFORM_PATHS_0
269
241
  }
270
242
  ])
271
243
  };
@@ -292,10 +264,7 @@ function listDeletedStandaloneForms(payload) {
292
264
  transformResponse: (payload2) => transformPaths(payload2, [
293
265
  {
294
266
  transformFn: transformRESTTimestampToSDKTimestamp,
295
- paths: [
296
- { path: "standaloneForms.createdDate" },
297
- { path: "standaloneForms.updatedDate" }
298
- ]
267
+ paths: TRANSFORM_PATHS_1
299
268
  }
300
269
  ])
301
270
  };
@@ -322,10 +291,7 @@ function queryStandaloneForms(payload) {
322
291
  transformResponse: (payload2) => transformPaths(payload2, [
323
292
  {
324
293
  transformFn: transformRESTTimestampToSDKTimestamp,
325
- paths: [
326
- { path: "standaloneForms.createdDate" },
327
- { path: "standaloneForms.updatedDate" }
328
- ]
294
+ paths: TRANSFORM_PATHS_1
329
295
  }
330
296
  ])
331
297
  };
@@ -459,31 +425,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
459
425
  WebhookIdentityType2["APP"] = "APP";
460
426
  return WebhookIdentityType2;
461
427
  })(WebhookIdentityType || {});
462
- async function getOrCreateFormStandaloneMetaSite2() {
463
- const { httpClient, sideEffects } = arguments[0];
464
- const payload = renameKeysFromSDKRequestToRESTRequest({});
465
- const reqOpts = getOrCreateFormStandaloneMetaSite(
466
- payload
467
- );
468
- sideEffects?.onSiteCall?.();
469
- try {
470
- const result = await httpClient.request(reqOpts);
471
- sideEffects?.onSuccess?.(result);
472
- return renameKeysFromRESTResponseToSDKResponse(result.data);
473
- } catch (err) {
474
- const transformedError = sdkTransformError(
475
- err,
476
- {
477
- spreadPathsToArguments: {},
478
- explicitPathsToArguments: {},
479
- singleArgumentUnchanged: false
480
- },
481
- []
482
- );
483
- sideEffects?.onError?.(err);
484
- throw transformedError;
485
- }
486
- }
487
428
  async function createStandaloneForm2(standaloneForm) {
488
429
  const { httpClient, sideEffects } = arguments[1];
489
430
  const payload = renameKeysFromSDKRequestToRESTRequest({
@@ -717,12 +658,6 @@ async function getSiteProperties2() {
717
658
  }
718
659
 
719
660
  // src/forms-v1-standalone-form-standalone-forms.public.ts
720
- function getOrCreateFormStandaloneMetaSite3(httpClient) {
721
- return () => getOrCreateFormStandaloneMetaSite2(
722
- // @ts-ignore
723
- { httpClient }
724
- );
725
- }
726
661
  function createStandaloneForm3(httpClient) {
727
662
  return (standaloneForm) => createStandaloneForm2(
728
663
  standaloneForm,
@@ -789,7 +724,6 @@ function getSiteProperties3(httpClient) {
789
724
 
790
725
  // src/forms-v1-standalone-form-standalone-forms.context.ts
791
726
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
792
- var getOrCreateFormStandaloneMetaSite4 = /* @__PURE__ */ createRESTModule(getOrCreateFormStandaloneMetaSite3);
793
727
  var createStandaloneForm4 = /* @__PURE__ */ createRESTModule(createStandaloneForm3);
794
728
  var getStandaloneForm4 = /* @__PURE__ */ createRESTModule(getStandaloneForm3);
795
729
  var deleteStandaloneForm4 = /* @__PURE__ */ createRESTModule(deleteStandaloneForm3);
@@ -812,7 +746,6 @@ export {
812
746
  createStandaloneForm4 as createStandaloneForm,
813
747
  deleteStandaloneForm4 as deleteStandaloneForm,
814
748
  getDeletedStandaloneForm4 as getDeletedStandaloneForm,
815
- getOrCreateFormStandaloneMetaSite4 as getOrCreateFormStandaloneMetaSite,
816
749
  getSiteProperties4 as getSiteProperties,
817
750
  getStandaloneForm4 as getStandaloneForm,
818
751
  listDeletedStandaloneForms4 as listDeletedStandaloneForms,