@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;