@wix/himalaya-cli 0.888.0 → 0.889.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.
Files changed (32) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/automations-v1/src/index.d.ts +15 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/badges-v2/src/index.d.ts +15 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/billing-tax-v1/src/index.d.ts +15 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/index.d.ts +15 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/business-tools-v1/src/index.d.ts +15 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/comments-v1/src/index.d.ts +15 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/contacts/src/index.d.ts +15 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/data-collections-v1/src/index.d.ts +15 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/email-marketing-v1/src/index.d.ts +15 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/faq-v2/src/index.d.ts +15 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/gift-cards/src/index.d.ts +15 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/marketing-v1/src/index.d.ts +15 -0
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/seo-v1/src/index.d.ts +15 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/workflows-v1/src/index.d.ts +15 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-automations.mjs +36 -5
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-badges.mjs +34 -3
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-billing-tax.mjs +36 -5
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bookings.mjs +34 -3
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-business-tools.mjs +34 -3
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +34 -3
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-contacts.mjs +34 -3
  22. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-data-collections.mjs +52 -11
  23. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-email-marketing.mjs +34 -3
  24. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-events.mjs +41 -10
  25. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-faq.mjs +36 -5
  26. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-gift-cards.mjs +34 -3
  27. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-marketing.mjs +38 -7
  28. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-seo.mjs +38 -7
  29. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-workflows.mjs +34 -3
  30. package/dist/cli.mjs +103 -9
  31. package/guides/sdk-reference.json +84 -0
  32. package/package.json +2 -2
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixAutomation {
20
35
  applicationInfo?: WixApplicationOrigin;
21
36
  preinstalledInfo?: WixPreinstalledOrigin;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixBadge {
20
35
  id?: string;
21
36
  revision?: string;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixManualTaxMapping {
20
35
  id?: string;
21
36
  revision?: string;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixBookingsPaging {
20
35
  limit?: number;
21
36
  offset?: number;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixLocation {
20
35
  id?: string;
21
36
  name?: string;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixComment {
20
35
  id?: string;
21
36
  revision?: string;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixContactsPaging {
20
35
  limit?: number;
21
36
  offset?: number;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixDataCollection {
20
35
  id?: string;
21
36
  collectionType?: string;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixCampaign {
20
35
  campaignId?: string;
21
36
  title?: string;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixCategory {
20
35
  id?: string;
21
36
  revision?: string;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixCreateGiftCardSignature {
20
35
  }
21
36
  export interface WixGetGiftCardSignature {
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixMarketingTag {
20
35
  googleAds?: WixGoogleAds;
21
36
  googleAnalytics?: WixGoogleAnalytics;
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixSeoTags {
20
35
  id?: string;
21
36
  tags?: WixTag[];
@@ -16,6 +16,21 @@ export interface WixCallOptions {
16
16
  site?: string;
17
17
  }
18
18
  export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
19
+ /** `path` with `req` appended as the query string Wix's RPC gateway reads a GET or
20
+ * DELETE request from. A nested object flattens to dotted field paths
21
+ * (`{ sort: { order: "ASC" } }` → `sort.order=ASC`), an array repeats its key
22
+ * (`{ id: ["a", "b"] }` → `id=a&id=b`), and an absent field contributes nothing —
23
+ * so an empty request yields the bare path. A field whose value is an array of
24
+ * objects has no query-string spelling and is omitted, exactly as Wix's own client
25
+ * omits it; such a field has to be sent through a POST sibling endpoint instead.
26
+ *
27
+ * Built from template literals and `encodeURIComponent`, never `URLSearchParams`:
28
+ * that is a host global the bare Tier-5 worker runtimes (JSCore / Hermes /
29
+ * QuickJS-ng) do not provide, so reaching for it would throw a ReferenceError
30
+ * before the request went out rather than degrade.
31
+ *
32
+ * Exported so the hand-written ./extensions sidecar can build the same URLs. */
33
+ export declare function wixQueryPath(path: string, req: unknown): string;
19
34
  export interface WixWorkflow {
20
35
  info?: WixWorkflowInfo;
21
36
  winPhase?: WixPhase;
@@ -18,6 +18,36 @@ function wixCall(method, path, body, opts) {
18
18
  wixCallHeaders(opts)
19
19
  );
20
20
  }
21
+ function wixQueryPath(path, req) {
22
+ const parts = [];
23
+ const pair = (key, value) => {
24
+ parts.push(
25
+ `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`
26
+ );
27
+ };
28
+ const add = (key, value) => {
29
+ if (value === void 0 || value === null) return;
30
+ if (Array.isArray(value)) {
31
+ for (const item of value) {
32
+ if (item === void 0 || item === null || typeof item === "object")
33
+ continue;
34
+ pair(key, item);
35
+ }
36
+ return;
37
+ }
38
+ if (typeof value === "object") {
39
+ for (const [k, v] of Object.entries(value))
40
+ add(`${key}.${k}`, v);
41
+ return;
42
+ }
43
+ pair(key, value);
44
+ };
45
+ for (const [key, value] of Object.entries(
46
+ req ?? {}
47
+ ))
48
+ add(key, value);
49
+ return parts.length > 0 ? `${path}?${parts.join("&")}` : path;
50
+ }
21
51
  function getAutomationRevision(automationId, opts) {
22
52
  if (!automationId)
23
53
  throw new Error("getAutomationRevision: automationId is required");
@@ -88,8 +118,8 @@ function queryAutomations(req = {}, opts) {
88
118
  function getAggregatedUsageInfo(req = {}, opts) {
89
119
  return wixCall(
90
120
  "GET",
91
- "/automations/v2/automations/usage",
92
- req,
121
+ wixQueryPath("/automations/v2/automations/usage", req),
122
+ void 0,
93
123
  opts
94
124
  );
95
125
  }
@@ -202,8 +232,8 @@ function validateAutomationById(automationId, req = {}, opts) {
202
232
  function getActionsQuotaInfo(req = {}, opts) {
203
233
  return wixCall(
204
234
  "GET",
205
- "/automations/v2/automations/actions/quota",
206
- req,
235
+ wixQueryPath("/automations/v2/automations/actions/quota", req),
236
+ void 0,
207
237
  opts
208
238
  );
209
239
  }
@@ -302,6 +332,7 @@ export {
302
332
  updatePreinstalledAutomation,
303
333
  validateAutomation,
304
334
  validateAutomationById,
305
- wixCall
335
+ wixCall,
336
+ wixQueryPath
306
337
  };
307
338
  //# sourceMappingURL=wix-automations.mjs.map
@@ -18,6 +18,36 @@ function wixCall(method, path, body, opts) {
18
18
  wixCallHeaders(opts)
19
19
  );
20
20
  }
21
+ function wixQueryPath(path, req) {
22
+ const parts = [];
23
+ const pair = (key, value) => {
24
+ parts.push(
25
+ `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`
26
+ );
27
+ };
28
+ const add = (key, value) => {
29
+ if (value === void 0 || value === null) return;
30
+ if (Array.isArray(value)) {
31
+ for (const item of value) {
32
+ if (item === void 0 || item === null || typeof item === "object")
33
+ continue;
34
+ pair(key, item);
35
+ }
36
+ return;
37
+ }
38
+ if (typeof value === "object") {
39
+ for (const [k, v] of Object.entries(value))
40
+ add(`${key}.${k}`, v);
41
+ return;
42
+ }
43
+ pair(key, value);
44
+ };
45
+ for (const [key, value] of Object.entries(
46
+ req ?? {}
47
+ ))
48
+ add(key, value);
49
+ return parts.length > 0 ? `${path}?${parts.join("&")}` : path;
50
+ }
21
51
  function create(req = {}, opts) {
22
52
  return wixCall("POST", "/badges/v4/badges", req, opts);
23
53
  }
@@ -93,8 +123,8 @@ function listMembersBadgeIds(req = {}, opts) {
93
123
  function getBadgeCounters(req = {}, opts) {
94
124
  return wixCall(
95
125
  "GET",
96
- "/badges/v4/badges/members/count",
97
- req,
126
+ wixQueryPath("/badges/v4/badges/members/count", req),
127
+ void 0,
98
128
  opts
99
129
  );
100
130
  }
@@ -118,6 +148,7 @@ export {
118
148
  unassignBadge,
119
149
  update,
120
150
  updateBadgesOrder,
121
- wixCall
151
+ wixCall,
152
+ wixQueryPath
122
153
  };
123
154
  //# sourceMappingURL=wix-badges.mjs.map
@@ -18,6 +18,36 @@ function wixCall(method, path, body, opts) {
18
18
  wixCallHeaders(opts)
19
19
  );
20
20
  }
21
+ function wixQueryPath(path, req) {
22
+ const parts = [];
23
+ const pair = (key, value) => {
24
+ parts.push(
25
+ `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`
26
+ );
27
+ };
28
+ const add = (key, value) => {
29
+ if (value === void 0 || value === null) return;
30
+ if (Array.isArray(value)) {
31
+ for (const item of value) {
32
+ if (item === void 0 || item === null || typeof item === "object")
33
+ continue;
34
+ pair(key, item);
35
+ }
36
+ return;
37
+ }
38
+ if (typeof value === "object") {
39
+ for (const [k, v] of Object.entries(value))
40
+ add(`${key}.${k}`, v);
41
+ return;
42
+ }
43
+ pair(key, value);
44
+ };
45
+ for (const [key, value] of Object.entries(
46
+ req ?? {}
47
+ ))
48
+ add(key, value);
49
+ return parts.length > 0 ? `${path}?${parts.join("&")}` : path;
50
+ }
21
51
  function createManualTaxMapping(req = {}, opts) {
22
52
  return wixCall(
23
53
  "POST",
@@ -59,8 +89,8 @@ function deleteManualTaxMapping(manualTaxMappingId, opts) {
59
89
  function queryManualTaxMappings(req = {}, opts) {
60
90
  return wixCall(
61
91
  "GET",
62
- "/billing/v1/manual-tax-mappings/query",
63
- req,
92
+ wixQueryPath("/billing/v1/manual-tax-mappings/query", req),
93
+ void 0,
64
94
  opts
65
95
  );
66
96
  }
@@ -92,8 +122,8 @@ function bulkUnassignExemptOverrides(req = {}, opts) {
92
122
  function listManualTaxMappings(req = {}, opts) {
93
123
  return wixCall(
94
124
  "GET",
95
- "/billing/v1/manual-tax-mappings",
96
- req,
125
+ wixQueryPath("/billing/v1/manual-tax-mappings", req),
126
+ void 0,
97
127
  opts
98
128
  );
99
129
  }
@@ -116,6 +146,7 @@ export {
116
146
  queryManualTaxMappings,
117
147
  updateExtendedFields,
118
148
  updateManualTaxMapping,
119
- wixCall
149
+ wixCall,
150
+ wixQueryPath
120
151
  };
121
152
  //# sourceMappingURL=wix-billing-tax.mjs.map
@@ -116,6 +116,36 @@ function wixCall(method, path, body, opts) {
116
116
  wixCallHeaders(opts)
117
117
  );
118
118
  }
119
+ function wixQueryPath(path, req) {
120
+ const parts = [];
121
+ const pair = (key, value) => {
122
+ parts.push(
123
+ `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`
124
+ );
125
+ };
126
+ const add = (key, value) => {
127
+ if (value === void 0 || value === null) return;
128
+ if (Array.isArray(value)) {
129
+ for (const item of value) {
130
+ if (item === void 0 || item === null || typeof item === "object")
131
+ continue;
132
+ pair(key, item);
133
+ }
134
+ return;
135
+ }
136
+ if (typeof value === "object") {
137
+ for (const [k, v] of Object.entries(value))
138
+ add(`${key}.${k}`, v);
139
+ return;
140
+ }
141
+ pair(key, value);
142
+ };
143
+ for (const [key, value] of Object.entries(
144
+ req ?? {}
145
+ ))
146
+ add(key, value);
147
+ return parts.length > 0 ? `${path}?${parts.join("&")}` : path;
148
+ }
119
149
  function queryBookings(req = {}, opts) {
120
150
  return wixCall(
121
151
  "POST",
@@ -127,8 +157,8 @@ function queryBookings(req = {}, opts) {
127
157
  function listBookings(req = {}, opts) {
128
158
  return wixCall(
129
159
  "GET",
130
- "/bookings/v1/bookings",
131
- req,
160
+ wixQueryPath("/bookings/v1/bookings", req),
161
+ void 0,
132
162
  opts
133
163
  );
134
164
  }
@@ -192,6 +222,7 @@ export {
192
222
  setBookingAction,
193
223
  setBookingAttendance,
194
224
  updateService,
195
- wixCall
225
+ wixCall,
226
+ wixQueryPath
196
227
  };
197
228
  //# sourceMappingURL=wix-bookings.mjs.map
@@ -18,6 +18,36 @@ function wixCall(method, path, body, opts) {
18
18
  wixCallHeaders(opts)
19
19
  );
20
20
  }
21
+ function wixQueryPath(path, req) {
22
+ const parts = [];
23
+ const pair = (key, value) => {
24
+ parts.push(
25
+ `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`
26
+ );
27
+ };
28
+ const add = (key, value) => {
29
+ if (value === void 0 || value === null) return;
30
+ if (Array.isArray(value)) {
31
+ for (const item of value) {
32
+ if (item === void 0 || item === null || typeof item === "object")
33
+ continue;
34
+ pair(key, item);
35
+ }
36
+ return;
37
+ }
38
+ if (typeof value === "object") {
39
+ for (const [k, v] of Object.entries(value))
40
+ add(`${key}.${k}`, v);
41
+ return;
42
+ }
43
+ pair(key, value);
44
+ };
45
+ for (const [key, value] of Object.entries(
46
+ req ?? {}
47
+ ))
48
+ add(key, value);
49
+ return parts.length > 0 ? `${path}?${parts.join("&")}` : path;
50
+ }
21
51
  function createLocation(req = {}, opts) {
22
52
  return wixCall(
23
53
  "POST",
@@ -46,8 +76,8 @@ function getLocation(id, opts) {
46
76
  function listLocations(req = {}, opts) {
47
77
  return wixCall(
48
78
  "GET",
49
- "/locations/v1/locations",
50
- req,
79
+ wixQueryPath("/locations/v1/locations", req),
80
+ void 0,
51
81
  opts
52
82
  );
53
83
  }
@@ -180,6 +210,7 @@ export {
180
210
  updateBusinessSchedule,
181
211
  updateConsentPolicy,
182
212
  updateLocation,
183
- wixCall
213
+ wixCall,
214
+ wixQueryPath
184
215
  };
185
216
  //# sourceMappingURL=wix-business-tools.mjs.map