@wix/himalaya-cli 0.928.0 → 0.930.0
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.
|
@@ -75,7 +75,23 @@ export interface WixQuerySubmissionsResponse {
|
|
|
75
75
|
submissions: WixSubmission[];
|
|
76
76
|
metaData?: WixMetadata;
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Lists the site's Wix Forms.
|
|
80
|
+
*
|
|
81
|
+
* `filter.namespace` selects WHICH forms: the Forms app owns `wix.form_app.form`, while booking and event-registration forms live in their own namespaces and are not returned by that value. The type says `filter?: Record<string, unknown>`, so nothing in the signature can tell you this.
|
|
82
|
+
*
|
|
83
|
+
* An empty `forms` array means the site genuinely has none in that namespace; it is not an error, and it is not the same answer as a rejected call.
|
|
84
|
+
*
|
|
85
|
+
* The service REQUIRES `filter.namespace`; a call without it is rejected outright.
|
|
86
|
+
*
|
|
87
|
+
* POST /form-schema-service/v4/forms/query
|
|
88
|
+
*/
|
|
89
|
+
export declare function queryForms(req: WixFormsQueryRequest, opts?: WixCallOptions): Promise<WixQueryFormsResponse>;
|
|
90
|
+
/**
|
|
91
|
+
* Reads one form by id, including its field definitions.
|
|
92
|
+
*
|
|
93
|
+
* GET /form-schema-service/v4/forms/{id}
|
|
94
|
+
*/
|
|
79
95
|
export declare function getForm(id: string, opts?: WixCallOptions): Promise<WixForm>;
|
|
80
96
|
export declare function querySubmissions(req?: WixSubmissionsQueryRequest, opts?: WixCallOptions): Promise<WixQuerySubmissionsResponse>;
|
|
81
97
|
export declare function getSubmission(id: string, opts?: WixCallOptions): Promise<WixSubmission>;
|
|
@@ -16,7 +16,9 @@ function wixCall(method, path, body, opts) {
|
|
|
16
16
|
wixCallHeaders(opts)
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
function queryForms(req
|
|
19
|
+
function queryForms(req, opts) {
|
|
20
|
+
if (req?.filter?.["namespace"] == null || req?.filter?.["namespace"] === "")
|
|
21
|
+
throw new Error("queryForms: filter.namespace is required");
|
|
20
22
|
return wixCall(
|
|
21
23
|
"POST",
|
|
22
24
|
"/form-schema-service/v4/forms/query",
|
package/dist/cli.mjs
CHANGED
|
@@ -18526,7 +18526,6 @@ function shouldRevealError(args) {
|
|
|
18526
18526
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
|
|
18527
18527
|
var init_validation = __esm({
|
|
18528
18528
|
"../../core/ts/src/validation.ts"() {
|
|
18529
|
-
"use strict";
|
|
18530
18529
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
18531
18530
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
18532
18531
|
INTEGER_RE = /^[+-]?[0-9]+$/;
|
|
@@ -21950,7 +21949,6 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
|
|
|
21950
21949
|
var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
|
|
21951
21950
|
var init_worker_subtree = __esm({
|
|
21952
21951
|
"../../core/ts/src/worker-subtree.ts"() {
|
|
21953
|
-
"use strict";
|
|
21954
21952
|
init_worker_subtree_safe_types_generated();
|
|
21955
21953
|
WORKER_SUBTREE_CEILINGS = Object.freeze({
|
|
21956
21954
|
maxEncodedBytes: 65536,
|
|
@@ -16422,14 +16422,14 @@
|
|
|
16422
16422
|
{
|
|
16423
16423
|
"name": "queryForms",
|
|
16424
16424
|
"kind": "function",
|
|
16425
|
-
"jsdoc": "",
|
|
16426
|
-
"decl": "export function queryForms(\n req: WixFormsQueryRequest
|
|
16425
|
+
"jsdoc": "/**\n * Lists the site's Wix Forms.\n *\n * `filter.namespace` selects WHICH forms: the Forms app owns `wix.form_app.form`, while booking and event-registration forms live in their own namespaces and are not returned by that value. The type says `filter?: Record<string, unknown>`, so nothing in the signature can tell you this.\n *\n * An empty `forms` array means the site genuinely has none in that namespace; it is not an error, and it is not the same answer as a rejected call.\n *\n * The service REQUIRES `filter.namespace`; a call without it is rejected outright.\n *\n * POST /form-schema-service/v4/forms/query\n */",
|
|
16426
|
+
"decl": "export function queryForms(\n req: WixFormsQueryRequest,\n opts?: WixCallOptions,\n): Promise<WixQueryFormsResponse>;",
|
|
16427
16427
|
"http": "POST /form-schema-service/v4/forms/query"
|
|
16428
16428
|
},
|
|
16429
16429
|
{
|
|
16430
16430
|
"name": "getForm",
|
|
16431
16431
|
"kind": "function",
|
|
16432
|
-
"jsdoc": "",
|
|
16432
|
+
"jsdoc": "/**\n * Reads one form by id, including its field definitions.\n *\n * GET /form-schema-service/v4/forms/{id}\n */",
|
|
16433
16433
|
"decl": "export function getForm(id: string, opts?: WixCallOptions): Promise<WixForm>;",
|
|
16434
16434
|
"http": "GET /form-schema-service/v4/forms/{…}"
|
|
16435
16435
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.930.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"artifactId": "himalaya-cli"
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
"falconPackageHash": "
|
|
67
|
+
"falconPackageHash": "4aa36a3ff0999cd423ab13c46f38df173f2468df2b52718520fafcb5"
|
|
68
68
|
}
|