@wix/himalaya-cli 0.817.0 → 0.819.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/wix-platform/src/index.d.ts +32 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/activity-counters-v1/src/index.d.ts +16 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/analytics/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/automations-v1/src/index.d.ts +40 -30
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/badges-v2/src/index.d.ts +23 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/billing-tax-v1/src/index.d.ts +22 -12
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/blog-v3/src/index.d.ts +13 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/index.d.ts +18 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/business-feed/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/business-tools-v1/src/index.d.ts +29 -19
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/comments-v1/src/index.d.ts +28 -18
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/contacts/src/index.d.ts +18 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/coupons/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/crm-tasks/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/dashboard-setup/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/data-collections-v1/src/index.d.ts +29 -19
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/donations/src/index.d.ts +20 -10
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ecom/src/index.d.ts +13 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/email-marketing-v1/src/index.d.ts +29 -19
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/events/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/faq-v2/src/index.d.ts +27 -17
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/forms/src/index.d.ts +16 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/forum/src/index.d.ts +16 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/genie-chat/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/gift-cards/src/index.d.ts +21 -11
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/groups/src/index.d.ts +14 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/inbox/src/index.d.ts +15 -5
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/invoices/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/loyalty/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/marketing-v1/src/index.d.ts +16 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/new-releases/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/notifications-v3/src/index.d.ts +13 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/online-programs/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/portfolio/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/pricing-plans/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/redirects-v1/src/index.d.ts +13 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/restaurants/src/index.d.ts +18 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/reviews/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/seo-v1/src/index.d.ts +15 -5
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/site-list/src/index.d.ts +14 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/site-media/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/social-feed/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-collections/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/index.d.ts +13 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/table-reservations/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/users/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/wix-data/src/index.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/workflows-v1/src/index.d.ts +17 -7
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +14 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-activity-counters.mjs +24 -10
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-automations.mjs +100 -58
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-badges.mjs +54 -24
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-billing-tax.mjs +43 -22
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-blog.mjs +18 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bookings.mjs +36 -14
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-business-tools.mjs +63 -36
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +62 -34
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-contacts.mjs +35 -14
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-data-collections.mjs +62 -36
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-donations.mjs +37 -18
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +14 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-email-marketing.mjs +66 -36
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-faq.mjs +68 -32
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-forms.mjs +25 -10
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-forum.mjs +32 -10
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-gift-cards.mjs +39 -20
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-groups.mjs +18 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-inbox.mjs +22 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-marketing.mjs +23 -10
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-notifications.mjs +18 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-platform.mjs +30 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-redirects.mjs +14 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-restaurants.mjs +32 -14
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-seo.mjs +20 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-site-list.mjs +17 -6
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +15 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-workflows.mjs +28 -12
- package/dist/cli.mjs +23 -6
- package/guides/branded-lite-site-binding.md +14 -6
- package/guides/sdk-reference.json +398 -230
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +1 -181
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/beauty-salon-owner/dev/index.ts +564 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/branded-lite/dev/index.ts +1 -181
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/community-club/dev/index.ts +1 -181
- package/templates/community-club/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/community-club-owner/dev/index.ts +564 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/events-meetups/dev/index.ts +1 -181
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/events-meetups-owner/dev/index.ts +564 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/gym-fitness/dev/index.ts +1 -181
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/gym-fitness-owner/dev/index.ts +564 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/nonprofit-cause/dev/index.ts +1 -181
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/nonprofit-cause-owner/dev/index.ts +564 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/owner-lite/dev/index.ts +564 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/podcast-creator/dev/index.ts +1 -181
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/podcast-creator-owner/dev/index.ts +564 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/portfolio-creative/dev/index.ts +1 -181
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/portfolio-creative-owner/dev/index.ts +564 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/restaurant/dev/index.ts +1 -181
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/restaurant-owner/dev/index.ts +564 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/retail-store/dev/index.ts +1 -181
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/retail-store-owner/dev/index.ts +564 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
- package/templates/yoga-studio/dev/index.ts +1 -181
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +9 -141
- package/templates/yoga-studio-owner/dev/index.ts +564 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
|
@@ -108,6 +108,19 @@ export declare const auth: {
|
|
|
108
108
|
* native dev seam. */
|
|
109
109
|
signedInstance(businessId: string, type?: WixSignedInstanceType): Promise<string | null>;
|
|
110
110
|
};
|
|
111
|
+
/** One business's scope, as `site.forSite(msid)` returns it.
|
|
112
|
+
*
|
|
113
|
+
* Deliberately shaped so it doubles as the options bag a generated `@himalaya/wix-*`
|
|
114
|
+
* client accepts (`{ site?: string }`): `searchOrders(req, site.forSite(msid))` reads as
|
|
115
|
+
* one thought instead of two. The generated clients declare that option structurally
|
|
116
|
+
* rather than importing this — they are standalone modules with no cross-package import
|
|
117
|
+
* — and TypeScript's structural typing is what keeps the two in agreement. */
|
|
118
|
+
export interface WixSiteScope {
|
|
119
|
+
/** The metaSiteId every call from this handle is addressed to. */
|
|
120
|
+
site: string;
|
|
121
|
+
/** Raw path escape hatch, for endpoints the typed clients do not cover. */
|
|
122
|
+
call<T>(method: string, path: string, body?: unknown): Promise<T>;
|
|
123
|
+
}
|
|
111
124
|
/** The customer's business/site info the coding agent tailors an app from — the
|
|
112
125
|
* identity + locale + contact slice of RFC 0048's WixSiteContext. */
|
|
113
126
|
export interface WixBusinessInfo {
|
|
@@ -145,6 +158,25 @@ export declare const site: {
|
|
|
145
158
|
* gracefully. The ONE door for business info (RFC 0043) — a worker should call
|
|
146
159
|
* this rather than hand-rolling `wixApi.call(".../site-properties/...")`. */
|
|
147
160
|
getBusinessInfo(): Promise<WixBusinessInfo | null>;
|
|
161
|
+
/** A handle that runs calls against ONE business, without moving the active site.
|
|
162
|
+
*
|
|
163
|
+
* `setActiveSite` re-scopes the whole process — every later call, every worker, the
|
|
164
|
+
* conducted cache and the entity cache all move with it. That is right for "the owner
|
|
165
|
+
* picked a business to manage", and wrong for "show me tonight's covers across all
|
|
166
|
+
* three restaurants": a rollup needs N businesses readable AT ONCE, and switching
|
|
167
|
+
* between them to read each one serially is both slow and destructive of the scope the
|
|
168
|
+
* user is actually in.
|
|
169
|
+
*
|
|
170
|
+
* The returned object IS a `WixSiteScope`, so it can be handed straight to a generated
|
|
171
|
+
* client as its options bag — `searchOrders(req, site.forSite(msid))` — and it also
|
|
172
|
+
* carries `call` for a raw path the typed clients do not cover. Fan several out with
|
|
173
|
+
* `Promise.all` and each one keeps its own business.
|
|
174
|
+
*
|
|
175
|
+
* Only reaches businesses the signed-in user owns: the header names a business, and
|
|
176
|
+
* Wix refuses to mint an instance for one they do not. A consumer app (one Headless
|
|
177
|
+
* clientId, one site) does not mint per-site at all, so this is inert there — see
|
|
178
|
+
* docs/branded-lite-site-binding.md. */
|
|
179
|
+
forSite(msid: string): WixSiteScope;
|
|
148
180
|
};
|
|
149
181
|
export declare const monitoring: {
|
|
150
182
|
/** Capture a handled error message (routes to the Sentry telemetry sink). */
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
var himalaya: {
|
|
3
3
|
wixApi?: {
|
|
4
|
-
call: (method: string, path: string, body?: unknown) => Promise<unknown>;
|
|
4
|
+
call: (method: string, path: string, body?: unknown, headers?: Record<string, string>) => Promise<unknown>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/** Per-call options. `site` addresses ONE call at a business other than the app's
|
|
9
|
+
* active one, so a cross-site rollup can read several businesses concurrently without
|
|
10
|
+
* `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,
|
|
11
|
+
* byte-identical to a call that never passed options.
|
|
12
|
+
*
|
|
13
|
+
* `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so
|
|
14
|
+
* it can be passed straight through: `someMethod(req, site.forSite(msid))`. */
|
|
15
|
+
export interface WixCallOptions {
|
|
16
|
+
site?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
|
|
9
19
|
export interface WixActivityCounter {
|
|
10
20
|
memberId?: string;
|
|
11
21
|
appId?: string;
|
|
@@ -173,8 +183,8 @@ export interface WixActivityCounterQuerySpec {
|
|
|
173
183
|
paging?: string;
|
|
174
184
|
wql?: unknown;
|
|
175
185
|
}
|
|
176
|
-
export declare function setActivityCounters(memberId: string, req?: WixSetActivityCountersRequest): Promise<WixSetActivityCountersResponse>;
|
|
177
|
-
export declare function incrementActivityCounters(memberId: string, req?: WixIncrementActivityCountersRequest): Promise<WixIncrementActivityCountersResponse>;
|
|
178
|
-
export declare function getActivityCounters(memberId: string): Promise<WixGetActivityCountersResponse>;
|
|
179
|
-
export declare function queryActivityCounters(req?: WixQueryActivityCountersRequest): Promise<WixQueryActivityCountersResponse>;
|
|
186
|
+
export declare function setActivityCounters(memberId: string, req?: WixSetActivityCountersRequest, opts?: WixCallOptions): Promise<WixSetActivityCountersResponse>;
|
|
187
|
+
export declare function incrementActivityCounters(memberId: string, req?: WixIncrementActivityCountersRequest, opts?: WixCallOptions): Promise<WixIncrementActivityCountersResponse>;
|
|
188
|
+
export declare function getActivityCounters(memberId: string, opts?: WixCallOptions): Promise<WixGetActivityCountersResponse>;
|
|
189
|
+
export declare function queryActivityCounters(req?: WixQueryActivityCountersRequest, opts?: WixCallOptions): Promise<WixQueryActivityCountersResponse>;
|
|
180
190
|
export * from "./extensions.js";
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
var himalaya: {
|
|
3
3
|
wixApi?: {
|
|
4
|
-
call: (method: string, path: string, body?: unknown) => Promise<unknown>;
|
|
4
|
+
call: (method: string, path: string, body?: unknown, headers?: Record<string, string>) => Promise<unknown>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/** Per-call options. `site` addresses ONE call at a business other than the app's
|
|
9
|
+
* active one, so a cross-site rollup can read several businesses concurrently without
|
|
10
|
+
* `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,
|
|
11
|
+
* byte-identical to a call that never passed options.
|
|
12
|
+
*
|
|
13
|
+
* `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so
|
|
14
|
+
* it can be passed straight through: `someMethod(req, site.forSite(msid))`. */
|
|
15
|
+
export interface WixCallOptions {
|
|
16
|
+
site?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
|
|
9
19
|
export interface WixAutomation {
|
|
10
20
|
applicationInfo?: WixApplicationOrigin;
|
|
11
21
|
preinstalledInfo?: WixPreinstalledOrigin;
|
|
@@ -991,32 +1001,32 @@ export interface WixGenerateActionInputMappingFromTemplateOptions {
|
|
|
991
1001
|
actionKey?: string;
|
|
992
1002
|
actionInputMappingTemplate?: Record<string, unknown>;
|
|
993
1003
|
}
|
|
994
|
-
export declare function getAutomationRevision(automationId: string): Promise<WixGetAutomationRevisionResponse>;
|
|
995
|
-
export declare function createAutomation(req?: WixCreateAutomationRequest): Promise<WixCreateAutomationResponse>;
|
|
996
|
-
export declare function createAutomationFromTemplateId(automationTemplateId: string, req?: WixCreateAutomationFromTemplateIdRequest): Promise<WixCreateAutomationFromTemplateIdResponse>;
|
|
997
|
-
export declare function getAutomation(automationId: string): Promise<WixGetAutomationResponse>;
|
|
998
|
-
export declare function updateAutomation(automationId: string, req?: WixUpdateAutomationRequest): Promise<WixUpdateAutomationResponse>;
|
|
999
|
-
export declare function deleteAutomation(automationId: string): Promise<WixDeleteAutomationResponse>;
|
|
1000
|
-
export declare function queryAutomations(req?: WixQueryAutomationsRequest): Promise<WixQueryAutomationsResponse>;
|
|
1001
|
-
export declare function getAggregatedUsageInfo(req?: WixGetAggregatedUsageInfoRequest): Promise<WixGetAggregatedUsageInfoResponse>;
|
|
1002
|
-
export declare function copyAutomation(automationId: string, req?: WixCopyAutomationRequest): Promise<WixCopyAutomationResponse>;
|
|
1003
|
-
export declare function createDraftAutomation(req?: WixCreateDraftAutomationRequest): Promise<WixCreateDraftAutomationResponse>;
|
|
1004
|
-
export declare function createDraftAutomationFromTemplateId(automationTemplateId: string, req?: WixCreateDraftAutomationFromTemplateIdRequest): Promise<WixCreateDraftAutomationFromTemplateIdResponse>;
|
|
1005
|
-
export declare function getOrCreateDraftAutomation(originalAutomationId: string, req?: WixGetOrCreateDraftAutomationRequest): Promise<WixGetOrCreateDraftAutomationResponse>;
|
|
1006
|
-
export declare function updateDraftAutomation(automationId: string, req?: WixUpdateDraftAutomationRequest): Promise<WixUpdateDraftAutomationResponse>;
|
|
1007
|
-
export declare function queryAutomationsWithDrafts(req?: WixQueryAutomationsWithDraftsRequest): Promise<WixQueryAutomationsWithDraftsResponse>;
|
|
1008
|
-
export declare function bulkCountAutomationsWithDrafts(req?: WixBulkCountAutomationsWithDraftsRequest): Promise<WixBulkCountAutomationsWithDraftsResponse>;
|
|
1009
|
-
export declare function deleteDraftAutomation(automationId: string): Promise<WixDeleteDraftAutomationResponse>;
|
|
1010
|
-
export declare function publishDraftAutomation(automationId: string, req?: WixPublishDraftAutomationRequest): Promise<WixPublishDraftAutomationResponse>;
|
|
1011
|
-
export declare function validateAutomation(req?: WixValidateAutomationRequest): Promise<WixValidateAutomationResponse>;
|
|
1012
|
-
export declare function validateAutomationById(automationId: string, req?: WixValidateAutomationByIdRequest): Promise<WixValidateAutomationByIdResponse>;
|
|
1013
|
-
export declare function getActionsQuotaInfo(req?: WixGetActionsQuotaInfoRequest): Promise<WixGetActionsQuotaInfoResponse>;
|
|
1014
|
-
export declare function generateActionInputMappingFromTemplate(req?: WixGenerateActionInputMappingFromTemplateRequest): Promise<WixGenerateActionInputMappingFromTemplateResponse>;
|
|
1015
|
-
export declare function bulkDeleteAutomations(req?: WixBulkDeleteAutomationsRequest): Promise<WixBulkDeleteAutomationsResponse>;
|
|
1016
|
-
export declare function createPreinstalledAutomation(req?: WixCreatePreinstalledAutomationRequest): Promise<WixCreatePreinstalledAutomationResponse>;
|
|
1017
|
-
export declare function updatePreinstalledAutomation(req?: WixUpdatePreinstalledAutomationRequest): Promise<WixUpdatePreinstalledAutomationResponse>;
|
|
1018
|
-
export declare function deletePreinstalledAutomation(componentId: string): Promise<WixDeletePreinstalledAutomationResponse>;
|
|
1019
|
-
export declare function generatePreinstalledAutomation(req?: WixGeneratePreinstalledAutomationRequest): Promise<WixGeneratePreinstalledAutomationResponse>;
|
|
1020
|
-
export declare function queryPreinstalledAutomationsForApp(req?: WixQueryPreinstalledAutomationsForAppRequest): Promise<WixQueryPreinstalledAutomationsForAppResponse>;
|
|
1021
|
-
export declare function queryPreinstalledAutomations(req?: WixQueryPreinstalledAutomationsRequest): Promise<WixQueryPreinstalledAutomationsResponse>;
|
|
1004
|
+
export declare function getAutomationRevision(automationId: string, opts?: WixCallOptions): Promise<WixGetAutomationRevisionResponse>;
|
|
1005
|
+
export declare function createAutomation(req?: WixCreateAutomationRequest, opts?: WixCallOptions): Promise<WixCreateAutomationResponse>;
|
|
1006
|
+
export declare function createAutomationFromTemplateId(automationTemplateId: string, req?: WixCreateAutomationFromTemplateIdRequest, opts?: WixCallOptions): Promise<WixCreateAutomationFromTemplateIdResponse>;
|
|
1007
|
+
export declare function getAutomation(automationId: string, opts?: WixCallOptions): Promise<WixGetAutomationResponse>;
|
|
1008
|
+
export declare function updateAutomation(automationId: string, req?: WixUpdateAutomationRequest, opts?: WixCallOptions): Promise<WixUpdateAutomationResponse>;
|
|
1009
|
+
export declare function deleteAutomation(automationId: string, opts?: WixCallOptions): Promise<WixDeleteAutomationResponse>;
|
|
1010
|
+
export declare function queryAutomations(req?: WixQueryAutomationsRequest, opts?: WixCallOptions): Promise<WixQueryAutomationsResponse>;
|
|
1011
|
+
export declare function getAggregatedUsageInfo(req?: WixGetAggregatedUsageInfoRequest, opts?: WixCallOptions): Promise<WixGetAggregatedUsageInfoResponse>;
|
|
1012
|
+
export declare function copyAutomation(automationId: string, req?: WixCopyAutomationRequest, opts?: WixCallOptions): Promise<WixCopyAutomationResponse>;
|
|
1013
|
+
export declare function createDraftAutomation(req?: WixCreateDraftAutomationRequest, opts?: WixCallOptions): Promise<WixCreateDraftAutomationResponse>;
|
|
1014
|
+
export declare function createDraftAutomationFromTemplateId(automationTemplateId: string, req?: WixCreateDraftAutomationFromTemplateIdRequest, opts?: WixCallOptions): Promise<WixCreateDraftAutomationFromTemplateIdResponse>;
|
|
1015
|
+
export declare function getOrCreateDraftAutomation(originalAutomationId: string, req?: WixGetOrCreateDraftAutomationRequest, opts?: WixCallOptions): Promise<WixGetOrCreateDraftAutomationResponse>;
|
|
1016
|
+
export declare function updateDraftAutomation(automationId: string, req?: WixUpdateDraftAutomationRequest, opts?: WixCallOptions): Promise<WixUpdateDraftAutomationResponse>;
|
|
1017
|
+
export declare function queryAutomationsWithDrafts(req?: WixQueryAutomationsWithDraftsRequest, opts?: WixCallOptions): Promise<WixQueryAutomationsWithDraftsResponse>;
|
|
1018
|
+
export declare function bulkCountAutomationsWithDrafts(req?: WixBulkCountAutomationsWithDraftsRequest, opts?: WixCallOptions): Promise<WixBulkCountAutomationsWithDraftsResponse>;
|
|
1019
|
+
export declare function deleteDraftAutomation(automationId: string, opts?: WixCallOptions): Promise<WixDeleteDraftAutomationResponse>;
|
|
1020
|
+
export declare function publishDraftAutomation(automationId: string, req?: WixPublishDraftAutomationRequest, opts?: WixCallOptions): Promise<WixPublishDraftAutomationResponse>;
|
|
1021
|
+
export declare function validateAutomation(req?: WixValidateAutomationRequest, opts?: WixCallOptions): Promise<WixValidateAutomationResponse>;
|
|
1022
|
+
export declare function validateAutomationById(automationId: string, req?: WixValidateAutomationByIdRequest, opts?: WixCallOptions): Promise<WixValidateAutomationByIdResponse>;
|
|
1023
|
+
export declare function getActionsQuotaInfo(req?: WixGetActionsQuotaInfoRequest, opts?: WixCallOptions): Promise<WixGetActionsQuotaInfoResponse>;
|
|
1024
|
+
export declare function generateActionInputMappingFromTemplate(req?: WixGenerateActionInputMappingFromTemplateRequest, opts?: WixCallOptions): Promise<WixGenerateActionInputMappingFromTemplateResponse>;
|
|
1025
|
+
export declare function bulkDeleteAutomations(req?: WixBulkDeleteAutomationsRequest, opts?: WixCallOptions): Promise<WixBulkDeleteAutomationsResponse>;
|
|
1026
|
+
export declare function createPreinstalledAutomation(req?: WixCreatePreinstalledAutomationRequest, opts?: WixCallOptions): Promise<WixCreatePreinstalledAutomationResponse>;
|
|
1027
|
+
export declare function updatePreinstalledAutomation(req?: WixUpdatePreinstalledAutomationRequest, opts?: WixCallOptions): Promise<WixUpdatePreinstalledAutomationResponse>;
|
|
1028
|
+
export declare function deletePreinstalledAutomation(componentId: string, opts?: WixCallOptions): Promise<WixDeletePreinstalledAutomationResponse>;
|
|
1029
|
+
export declare function generatePreinstalledAutomation(req?: WixGeneratePreinstalledAutomationRequest, opts?: WixCallOptions): Promise<WixGeneratePreinstalledAutomationResponse>;
|
|
1030
|
+
export declare function queryPreinstalledAutomationsForApp(req?: WixQueryPreinstalledAutomationsForAppRequest, opts?: WixCallOptions): Promise<WixQueryPreinstalledAutomationsForAppResponse>;
|
|
1031
|
+
export declare function queryPreinstalledAutomations(req?: WixQueryPreinstalledAutomationsRequest, opts?: WixCallOptions): Promise<WixQueryPreinstalledAutomationsResponse>;
|
|
1022
1032
|
export * from "./extensions.js";
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
var himalaya: {
|
|
3
3
|
wixApi?: {
|
|
4
|
-
call: (method: string, path: string, body?: unknown) => Promise<unknown>;
|
|
4
|
+
call: (method: string, path: string, body?: unknown, headers?: Record<string, string>) => Promise<unknown>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/** Per-call options. `site` addresses ONE call at a business other than the app's
|
|
9
|
+
* active one, so a cross-site rollup can read several businesses concurrently without
|
|
10
|
+
* `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,
|
|
11
|
+
* byte-identical to a call that never passed options.
|
|
12
|
+
*
|
|
13
|
+
* `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so
|
|
14
|
+
* it can be passed straight through: `someMethod(req, site.forSite(msid))`. */
|
|
15
|
+
export interface WixCallOptions {
|
|
16
|
+
site?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
|
|
9
19
|
export interface WixBadge {
|
|
10
20
|
id?: string;
|
|
11
21
|
revision?: string;
|
|
@@ -239,15 +249,15 @@ export interface WixCountOptions {
|
|
|
239
249
|
export interface WixUpdateBadgesOrderOptions {
|
|
240
250
|
badgeIds?: string[];
|
|
241
251
|
}
|
|
242
|
-
export declare function create(req?: WixCreateRequest): Promise<WixCreateResponse>;
|
|
243
|
-
export declare function update(id: string, req?: WixUpdateRequest): Promise<WixUpdateResponse>;
|
|
244
|
-
export declare function query(req?: WixQueryRequest): Promise<WixQueryResponse>;
|
|
245
|
-
export declare function get(id: string): Promise<WixGetResponse>;
|
|
246
|
-
export declare function count(req?: WixCountRequest): Promise<WixCountResponse>;
|
|
247
|
-
export declare function assignBadge(id: string, req?: WixAssignBadgeRequest): Promise<WixAssignBadgeResponse>;
|
|
248
|
-
export declare function unassignBadge(id: string): Promise<WixUnassignBadgeResponse>;
|
|
249
|
-
export declare function listMembers(id: string): Promise<WixListMembersResponse>;
|
|
250
|
-
export declare function listMembersBadgeIds(req?: WixListMembersBadgeIdsRequest): Promise<WixListMembersBadgeIdsResponse>;
|
|
251
|
-
export declare function getBadgeCounters(req?: WixGetBadgeCountersRequest): Promise<WixGetBadgeCountersResponse>;
|
|
252
|
-
export declare function updateBadgesOrder(req?: WixUpdateBadgesOrderRequest): Promise<WixUpdateBadgesOrderResponse>;
|
|
252
|
+
export declare function create(req?: WixCreateRequest, opts?: WixCallOptions): Promise<WixCreateResponse>;
|
|
253
|
+
export declare function update(id: string, req?: WixUpdateRequest, opts?: WixCallOptions): Promise<WixUpdateResponse>;
|
|
254
|
+
export declare function query(req?: WixQueryRequest, opts?: WixCallOptions): Promise<WixQueryResponse>;
|
|
255
|
+
export declare function get(id: string, opts?: WixCallOptions): Promise<WixGetResponse>;
|
|
256
|
+
export declare function count(req?: WixCountRequest, opts?: WixCallOptions): Promise<WixCountResponse>;
|
|
257
|
+
export declare function assignBadge(id: string, req?: WixAssignBadgeRequest, opts?: WixCallOptions): Promise<WixAssignBadgeResponse>;
|
|
258
|
+
export declare function unassignBadge(id: string, opts?: WixCallOptions): Promise<WixUnassignBadgeResponse>;
|
|
259
|
+
export declare function listMembers(id: string, opts?: WixCallOptions): Promise<WixListMembersResponse>;
|
|
260
|
+
export declare function listMembersBadgeIds(req?: WixListMembersBadgeIdsRequest, opts?: WixCallOptions): Promise<WixListMembersBadgeIdsResponse>;
|
|
261
|
+
export declare function getBadgeCounters(req?: WixGetBadgeCountersRequest, opts?: WixCallOptions): Promise<WixGetBadgeCountersResponse>;
|
|
262
|
+
export declare function updateBadgesOrder(req?: WixUpdateBadgesOrderRequest, opts?: WixCallOptions): Promise<WixUpdateBadgesOrderResponse>;
|
|
253
263
|
export * from "./extensions.js";
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
var himalaya: {
|
|
3
3
|
wixApi?: {
|
|
4
|
-
call: (method: string, path: string, body?: unknown) => Promise<unknown>;
|
|
4
|
+
call: (method: string, path: string, body?: unknown, headers?: Record<string, string>) => Promise<unknown>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/** Per-call options. `site` addresses ONE call at a business other than the app's
|
|
9
|
+
* active one, so a cross-site rollup can read several businesses concurrently without
|
|
10
|
+
* `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,
|
|
11
|
+
* byte-identical to a call that never passed options.
|
|
12
|
+
*
|
|
13
|
+
* `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so
|
|
14
|
+
* it can be passed straight through: `someMethod(req, site.forSite(msid))`. */
|
|
15
|
+
export interface WixCallOptions {
|
|
16
|
+
site?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
|
|
9
19
|
export interface WixManualTaxMapping {
|
|
10
20
|
id?: string;
|
|
11
21
|
revision?: string;
|
|
@@ -325,14 +335,14 @@ export interface WixBulkAssignExemptOverridesOptions {
|
|
|
325
335
|
export interface WixBulkUnassignExemptOverridesOptions {
|
|
326
336
|
returnEntity?: boolean;
|
|
327
337
|
}
|
|
328
|
-
export declare function createManualTaxMapping(req?: WixCreateManualTaxMappingRequest): Promise<WixCreateManualTaxMappingResponse>;
|
|
329
|
-
export declare function getManualTaxMapping(manualTaxMappingId: string): Promise<WixGetManualTaxMappingResponse>;
|
|
330
|
-
export declare function updateManualTaxMapping(manualTaxMappingId: string, req?: WixUpdateManualTaxMappingRequest): Promise<WixUpdateManualTaxMappingResponse>;
|
|
331
|
-
export declare function deleteManualTaxMapping(manualTaxMappingId: string): Promise<WixDeleteManualTaxMappingResponse>;
|
|
332
|
-
export declare function queryManualTaxMappings(req?: WixQueryManualTaxMappingsRequest): Promise<WixQueryManualTaxMappingsResponse>;
|
|
333
|
-
export declare function updateExtendedFields(id: string, req?: WixUpdateExtendedFieldsRequest): Promise<WixUpdateExtendedFieldsResponse>;
|
|
334
|
-
export declare function bulkAssignExemptOverrides(req?: WixBulkAssignExemptOverridesRequest): Promise<WixBulkAssignExemptOverridesResponse>;
|
|
335
|
-
export declare function bulkUnassignExemptOverrides(req?: WixBulkUnassignExemptOverridesRequest): Promise<WixBulkUnassignExemptOverridesResponse>;
|
|
336
|
-
export declare function listManualTaxMappings(req?: WixListManualTaxMappingsRequest): Promise<WixListManualTaxMappingsResponse>;
|
|
337
|
-
export declare function bulkCreateManualTaxMappings(req?: WixBulkCreateManualTaxMappingsRequest): Promise<WixBulkCreateManualTaxMappingsResponse>;
|
|
338
|
+
export declare function createManualTaxMapping(req?: WixCreateManualTaxMappingRequest, opts?: WixCallOptions): Promise<WixCreateManualTaxMappingResponse>;
|
|
339
|
+
export declare function getManualTaxMapping(manualTaxMappingId: string, opts?: WixCallOptions): Promise<WixGetManualTaxMappingResponse>;
|
|
340
|
+
export declare function updateManualTaxMapping(manualTaxMappingId: string, req?: WixUpdateManualTaxMappingRequest, opts?: WixCallOptions): Promise<WixUpdateManualTaxMappingResponse>;
|
|
341
|
+
export declare function deleteManualTaxMapping(manualTaxMappingId: string, opts?: WixCallOptions): Promise<WixDeleteManualTaxMappingResponse>;
|
|
342
|
+
export declare function queryManualTaxMappings(req?: WixQueryManualTaxMappingsRequest, opts?: WixCallOptions): Promise<WixQueryManualTaxMappingsResponse>;
|
|
343
|
+
export declare function updateExtendedFields(id: string, req?: WixUpdateExtendedFieldsRequest, opts?: WixCallOptions): Promise<WixUpdateExtendedFieldsResponse>;
|
|
344
|
+
export declare function bulkAssignExemptOverrides(req?: WixBulkAssignExemptOverridesRequest, opts?: WixCallOptions): Promise<WixBulkAssignExemptOverridesResponse>;
|
|
345
|
+
export declare function bulkUnassignExemptOverrides(req?: WixBulkUnassignExemptOverridesRequest, opts?: WixCallOptions): Promise<WixBulkUnassignExemptOverridesResponse>;
|
|
346
|
+
export declare function listManualTaxMappings(req?: WixListManualTaxMappingsRequest, opts?: WixCallOptions): Promise<WixListManualTaxMappingsResponse>;
|
|
347
|
+
export declare function bulkCreateManualTaxMappings(req?: WixBulkCreateManualTaxMappingsRequest, opts?: WixCallOptions): Promise<WixBulkCreateManualTaxMappingsResponse>;
|
|
338
348
|
export * from "./extensions.js";
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
var himalaya: {
|
|
3
3
|
wixApi?: {
|
|
4
|
-
call: (method: string, path: string, body?: unknown) => Promise<unknown>;
|
|
4
|
+
call: (method: string, path: string, body?: unknown, headers?: Record<string, string>) => Promise<unknown>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/** Per-call options. `site` addresses ONE call at a business other than the app's
|
|
9
|
+
* active one, so a cross-site rollup can read several businesses concurrently without
|
|
10
|
+
* `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,
|
|
11
|
+
* byte-identical to a call that never passed options.
|
|
12
|
+
*
|
|
13
|
+
* `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so
|
|
14
|
+
* it can be passed straight through: `someMethod(req, site.forSite(msid))`. */
|
|
15
|
+
export interface WixCallOptions {
|
|
16
|
+
site?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
|
|
9
19
|
export interface WixBlogPaging {
|
|
10
20
|
limit?: number;
|
|
11
21
|
offset?: number;
|
|
@@ -121,5 +131,5 @@ export interface WixUpdateDraftPostResponse {
|
|
|
121
131
|
}
|
|
122
132
|
export interface WixDeleteDraftPostResponse {
|
|
123
133
|
}
|
|
124
|
-
export declare function queryPosts(req?: WixQueryPostsRequest): Promise<WixQueryPostsResponse>;
|
|
134
|
+
export declare function queryPosts(req?: WixQueryPostsRequest, opts?: WixCallOptions): Promise<WixQueryPostsResponse>;
|
|
125
135
|
export * from "./extensions.js";
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
var himalaya: {
|
|
3
3
|
wixApi?: {
|
|
4
|
-
call: (method: string, path: string, body?: unknown) => Promise<unknown>;
|
|
4
|
+
call: (method: string, path: string, body?: unknown, headers?: Record<string, string>) => Promise<unknown>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/** Per-call options. `site` addresses ONE call at a business other than the app's
|
|
9
|
+
* active one, so a cross-site rollup can read several businesses concurrently without
|
|
10
|
+
* `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,
|
|
11
|
+
* byte-identical to a call that never passed options.
|
|
12
|
+
*
|
|
13
|
+
* `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so
|
|
14
|
+
* it can be passed straight through: `someMethod(req, site.forSite(msid))`. */
|
|
15
|
+
export interface WixCallOptions {
|
|
16
|
+
site?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
|
|
9
19
|
export interface WixBookingsPaging {
|
|
10
20
|
limit?: number;
|
|
11
21
|
offset?: number;
|
|
@@ -160,10 +170,10 @@ export interface WixUpdateBookingResponse {
|
|
|
160
170
|
export interface WixRescheduleBookingResponse {
|
|
161
171
|
booking: WixBooking;
|
|
162
172
|
}
|
|
163
|
-
export declare function queryBookings(req?: WixQueryBookingsRequest): Promise<WixQueryBookingsResponse>;
|
|
164
|
-
export declare function listBookings(req?: WixListBookingsRequest): Promise<WixListBookingsResponse>;
|
|
165
|
-
export declare function getBooking(bookingId: string): Promise<WixGetBookingResponse>;
|
|
166
|
-
export declare function createBooking(req?: WixCreateBookingRequest): Promise<WixCreateBookingResponse>;
|
|
167
|
-
export declare function setBookingAction(bookingId: string): Promise<WixUpdateBookingResponse>;
|
|
168
|
-
export declare function deleteService(serviceId: string): Promise<WixDeleteServiceResponse>;
|
|
173
|
+
export declare function queryBookings(req?: WixQueryBookingsRequest, opts?: WixCallOptions): Promise<WixQueryBookingsResponse>;
|
|
174
|
+
export declare function listBookings(req?: WixListBookingsRequest, opts?: WixCallOptions): Promise<WixListBookingsResponse>;
|
|
175
|
+
export declare function getBooking(bookingId: string, opts?: WixCallOptions): Promise<WixGetBookingResponse>;
|
|
176
|
+
export declare function createBooking(req?: WixCreateBookingRequest, opts?: WixCallOptions): Promise<WixCreateBookingResponse>;
|
|
177
|
+
export declare function setBookingAction(bookingId: string, opts?: WixCallOptions): Promise<WixUpdateBookingResponse>;
|
|
178
|
+
export declare function deleteService(serviceId: string, opts?: WixCallOptions): Promise<WixDeleteServiceResponse>;
|
|
169
179
|
export * from "./extensions.js";
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
var himalaya: {
|
|
3
3
|
wixApi?: {
|
|
4
|
-
call: (method: string, path: string, body?: unknown) => Promise<unknown>;
|
|
4
|
+
call: (method: string, path: string, body?: unknown, headers?: Record<string, string>) => Promise<unknown>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/** Per-call options. `site` addresses ONE call at a business other than the app's
|
|
9
|
+
* active one, so a cross-site rollup can read several businesses concurrently without
|
|
10
|
+
* `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,
|
|
11
|
+
* byte-identical to a call that never passed options.
|
|
12
|
+
*
|
|
13
|
+
* `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so
|
|
14
|
+
* it can be passed straight through: `someMethod(req, site.forSite(msid))`. */
|
|
15
|
+
export interface WixCallOptions {
|
|
16
|
+
site?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
|
|
9
19
|
export interface WixLocation {
|
|
10
20
|
id?: string;
|
|
11
21
|
name?: string;
|
|
@@ -547,21 +557,21 @@ export interface WixUpdateConsentPolicySignature {
|
|
|
547
557
|
}
|
|
548
558
|
export interface WixReadResponse {
|
|
549
559
|
}
|
|
550
|
-
export declare function createLocation(req?: WixCreateLocationRequest): Promise<WixCreateLocationResponse>;
|
|
551
|
-
export declare function bulkCreateLocation(req?: WixBulkCreateLocationRequest): Promise<WixBulkCreateLocationResponse>;
|
|
552
|
-
export declare function getLocation(id: string): Promise<WixGetLocationResponse>;
|
|
553
|
-
export declare function listLocations(req?: WixListLocationsRequest): Promise<WixListLocationsResponse>;
|
|
554
|
-
export declare function updateLocation(locationId: string, req?: WixUpdateLocationRequest): Promise<WixUpdateLocationResponse>;
|
|
555
|
-
export declare function queryLocations(req?: WixQueryLocationsRequest): Promise<WixQueryLocationsResponse>;
|
|
556
|
-
export declare function setDefaultLocation(id: string, req?: WixSetDefaultLocationRequest): Promise<WixSetDefaultLocationResponse>;
|
|
557
|
-
export declare function archiveLocation(id: string, req?: WixArchiveLocationRequest): Promise<WixArchiveLocationResponse>;
|
|
558
|
-
export declare function addTypeToLocation(id: string, req?: WixAddTypeToLocationRequest): Promise<WixAddTypeToLocationResponse>;
|
|
559
|
-
export declare function removeTypeFromLocation(id: string, req?: WixRemoveTypeFromLocationRequest): Promise<WixRemoveTypeFromLocationResponse>;
|
|
560
|
-
export declare function addLocationType(id: string, req?: WixAddLocationTypeRequest): Promise<WixAddLocationTypeResponse>;
|
|
561
|
-
export declare function removeLocationType(id: string, req?: WixRemoveLocationTypeRequest): Promise<WixRemoveLocationTypeResponse>;
|
|
562
|
-
export declare function read(): Promise<WixReadResponse>;
|
|
563
|
-
export declare function updateBusinessProfile(req?: WixUpdateBusinessProfileRequest): Promise<WixUpdateBusinessProfileResponse>;
|
|
564
|
-
export declare function updateBusinessContact(req?: WixUpdateBusinessContactRequest): Promise<WixUpdateBusinessContactResponse>;
|
|
565
|
-
export declare function updateBusinessSchedule(req?: WixUpdateBusinessScheduleRequest): Promise<WixUpdateBusinessScheduleResponse>;
|
|
566
|
-
export declare function updateConsentPolicy(req?: WixUpdateConsentPolicyRequest): Promise<WixUpdateConsentPolicyResponse>;
|
|
560
|
+
export declare function createLocation(req?: WixCreateLocationRequest, opts?: WixCallOptions): Promise<WixCreateLocationResponse>;
|
|
561
|
+
export declare function bulkCreateLocation(req?: WixBulkCreateLocationRequest, opts?: WixCallOptions): Promise<WixBulkCreateLocationResponse>;
|
|
562
|
+
export declare function getLocation(id: string, opts?: WixCallOptions): Promise<WixGetLocationResponse>;
|
|
563
|
+
export declare function listLocations(req?: WixListLocationsRequest, opts?: WixCallOptions): Promise<WixListLocationsResponse>;
|
|
564
|
+
export declare function updateLocation(locationId: string, req?: WixUpdateLocationRequest, opts?: WixCallOptions): Promise<WixUpdateLocationResponse>;
|
|
565
|
+
export declare function queryLocations(req?: WixQueryLocationsRequest, opts?: WixCallOptions): Promise<WixQueryLocationsResponse>;
|
|
566
|
+
export declare function setDefaultLocation(id: string, req?: WixSetDefaultLocationRequest, opts?: WixCallOptions): Promise<WixSetDefaultLocationResponse>;
|
|
567
|
+
export declare function archiveLocation(id: string, req?: WixArchiveLocationRequest, opts?: WixCallOptions): Promise<WixArchiveLocationResponse>;
|
|
568
|
+
export declare function addTypeToLocation(id: string, req?: WixAddTypeToLocationRequest, opts?: WixCallOptions): Promise<WixAddTypeToLocationResponse>;
|
|
569
|
+
export declare function removeTypeFromLocation(id: string, req?: WixRemoveTypeFromLocationRequest, opts?: WixCallOptions): Promise<WixRemoveTypeFromLocationResponse>;
|
|
570
|
+
export declare function addLocationType(id: string, req?: WixAddLocationTypeRequest, opts?: WixCallOptions): Promise<WixAddLocationTypeResponse>;
|
|
571
|
+
export declare function removeLocationType(id: string, req?: WixRemoveLocationTypeRequest, opts?: WixCallOptions): Promise<WixRemoveLocationTypeResponse>;
|
|
572
|
+
export declare function read(opts?: WixCallOptions): Promise<WixReadResponse>;
|
|
573
|
+
export declare function updateBusinessProfile(req?: WixUpdateBusinessProfileRequest, opts?: WixCallOptions): Promise<WixUpdateBusinessProfileResponse>;
|
|
574
|
+
export declare function updateBusinessContact(req?: WixUpdateBusinessContactRequest, opts?: WixCallOptions): Promise<WixUpdateBusinessContactResponse>;
|
|
575
|
+
export declare function updateBusinessSchedule(req?: WixUpdateBusinessScheduleRequest, opts?: WixCallOptions): Promise<WixUpdateBusinessScheduleResponse>;
|
|
576
|
+
export declare function updateConsentPolicy(req?: WixUpdateConsentPolicyRequest, opts?: WixCallOptions): Promise<WixUpdateConsentPolicyResponse>;
|
|
567
577
|
export * from "./extensions.js";
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
var himalaya: {
|
|
3
3
|
wixApi?: {
|
|
4
|
-
call: (method: string, path: string, body?: unknown) => Promise<unknown>;
|
|
4
|
+
call: (method: string, path: string, body?: unknown, headers?: Record<string, string>) => Promise<unknown>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/** Per-call options. `site` addresses ONE call at a business other than the app's
|
|
9
|
+
* active one, so a cross-site rollup can read several businesses concurrently without
|
|
10
|
+
* `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,
|
|
11
|
+
* byte-identical to a call that never passed options.
|
|
12
|
+
*
|
|
13
|
+
* `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so
|
|
14
|
+
* it can be passed straight through: `someMethod(req, site.forSite(msid))`. */
|
|
15
|
+
export interface WixCallOptions {
|
|
16
|
+
site?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
|
|
9
19
|
export interface WixComment {
|
|
10
20
|
id?: string;
|
|
11
21
|
revision?: string;
|
|
@@ -1462,20 +1472,20 @@ export interface WixBulkMoveCommentByFilterOptions {
|
|
|
1462
1472
|
filter?: Record<string, unknown>;
|
|
1463
1473
|
destination?: WixDestination;
|
|
1464
1474
|
}
|
|
1465
|
-
export declare function getComment(commentId: string): Promise<WixGetCommentResponse>;
|
|
1466
|
-
export declare function deleteComment(commentId: string): Promise<WixDeleteCommentResponse>;
|
|
1467
|
-
export declare function moderateDraftContent(commentId: string, req?: WixModerateDraftContentRequest): Promise<WixModerateDraftContentResponse>;
|
|
1468
|
-
export declare function queryComments(req?: WixQueryCommentsRequest): Promise<WixQueryCommentsResponse>;
|
|
1469
|
-
export declare function markComment(commentId: string, req?: WixMarkCommentRequest): Promise<WixMarkCommentResponse>;
|
|
1470
|
-
export declare function unmarkComment(commentId: string, req?: WixUnmarkCommentRequest): Promise<WixUnmarkCommentResponse>;
|
|
1471
|
-
export declare function hideComment(commentId: string, req?: WixHideCommentRequest): Promise<WixHideCommentResponse>;
|
|
1472
|
-
export declare function publishComment(commentId: string, req?: WixPublishCommentRequest): Promise<WixPublishCommentResponse>;
|
|
1473
|
-
export declare function countComments(req?: WixCountCommentsRequest): Promise<WixCountCommentsResponse>;
|
|
1474
|
-
export declare function listCommentsByResource(req?: WixListCommentsByResourceRequest): Promise<WixListCommentsByResourceResponse>;
|
|
1475
|
-
export declare function getCommentThread(commentId: string): Promise<WixGetCommentThreadResponse>;
|
|
1476
|
-
export declare function bulkPublishComment(req?: WixBulkPublishCommentRequest): Promise<WixBulkPublishCommentResponse>;
|
|
1477
|
-
export declare function bulkHideComment(req?: WixBulkHideCommentRequest): Promise<WixBulkHideCommentResponse>;
|
|
1478
|
-
export declare function bulkDeleteComment(req?: WixBulkDeleteCommentRequest): Promise<WixBulkDeleteCommentResponse>;
|
|
1479
|
-
export declare function bulkModerateDraftContent(req?: WixBulkModerateDraftContentRequest): Promise<WixBulkModerateDraftContentResponse>;
|
|
1480
|
-
export declare function bulkMoveCommentByFilter(req?: WixBulkMoveCommentByFilterRequest): Promise<WixBulkMoveCommentByFilterResponse>;
|
|
1475
|
+
export declare function getComment(commentId: string, opts?: WixCallOptions): Promise<WixGetCommentResponse>;
|
|
1476
|
+
export declare function deleteComment(commentId: string, opts?: WixCallOptions): Promise<WixDeleteCommentResponse>;
|
|
1477
|
+
export declare function moderateDraftContent(commentId: string, req?: WixModerateDraftContentRequest, opts?: WixCallOptions): Promise<WixModerateDraftContentResponse>;
|
|
1478
|
+
export declare function queryComments(req?: WixQueryCommentsRequest, opts?: WixCallOptions): Promise<WixQueryCommentsResponse>;
|
|
1479
|
+
export declare function markComment(commentId: string, req?: WixMarkCommentRequest, opts?: WixCallOptions): Promise<WixMarkCommentResponse>;
|
|
1480
|
+
export declare function unmarkComment(commentId: string, req?: WixUnmarkCommentRequest, opts?: WixCallOptions): Promise<WixUnmarkCommentResponse>;
|
|
1481
|
+
export declare function hideComment(commentId: string, req?: WixHideCommentRequest, opts?: WixCallOptions): Promise<WixHideCommentResponse>;
|
|
1482
|
+
export declare function publishComment(commentId: string, req?: WixPublishCommentRequest, opts?: WixCallOptions): Promise<WixPublishCommentResponse>;
|
|
1483
|
+
export declare function countComments(req?: WixCountCommentsRequest, opts?: WixCallOptions): Promise<WixCountCommentsResponse>;
|
|
1484
|
+
export declare function listCommentsByResource(req?: WixListCommentsByResourceRequest, opts?: WixCallOptions): Promise<WixListCommentsByResourceResponse>;
|
|
1485
|
+
export declare function getCommentThread(commentId: string, opts?: WixCallOptions): Promise<WixGetCommentThreadResponse>;
|
|
1486
|
+
export declare function bulkPublishComment(req?: WixBulkPublishCommentRequest, opts?: WixCallOptions): Promise<WixBulkPublishCommentResponse>;
|
|
1487
|
+
export declare function bulkHideComment(req?: WixBulkHideCommentRequest, opts?: WixCallOptions): Promise<WixBulkHideCommentResponse>;
|
|
1488
|
+
export declare function bulkDeleteComment(req?: WixBulkDeleteCommentRequest, opts?: WixCallOptions): Promise<WixBulkDeleteCommentResponse>;
|
|
1489
|
+
export declare function bulkModerateDraftContent(req?: WixBulkModerateDraftContentRequest, opts?: WixCallOptions): Promise<WixBulkModerateDraftContentResponse>;
|
|
1490
|
+
export declare function bulkMoveCommentByFilter(req?: WixBulkMoveCommentByFilterRequest, opts?: WixCallOptions): Promise<WixBulkMoveCommentByFilterResponse>;
|
|
1481
1491
|
export * from "./extensions.js";
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
var himalaya: {
|
|
3
3
|
wixApi?: {
|
|
4
|
-
call: (method: string, path: string, body?: unknown) => Promise<unknown>;
|
|
4
|
+
call: (method: string, path: string, body?: unknown, headers?: Record<string, string>) => Promise<unknown>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
/** Per-call options. `site` addresses ONE call at a business other than the app's
|
|
9
|
+
* active one, so a cross-site rollup can read several businesses concurrently without
|
|
10
|
+
* `setActiveSite` moving the whole process between them. Omitted ⇒ the active business,
|
|
11
|
+
* byte-identical to a call that never passed options.
|
|
12
|
+
*
|
|
13
|
+
* `site.forSite(msid)` from `@himalaya/wix-platform` returns a value of this shape, so
|
|
14
|
+
* it can be passed straight through: `someMethod(req, site.forSite(msid))`. */
|
|
15
|
+
export interface WixCallOptions {
|
|
16
|
+
site?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function wixCall<T>(method: string, path: string, body?: unknown, opts?: WixCallOptions): Promise<T>;
|
|
9
19
|
export interface WixContactsPaging {
|
|
10
20
|
limit?: number;
|
|
11
21
|
offset?: number;
|
|
@@ -122,10 +132,10 @@ export interface WixUpdateContactResponse {
|
|
|
122
132
|
}
|
|
123
133
|
export interface WixDeleteContactResponse {
|
|
124
134
|
}
|
|
125
|
-
export declare function queryContacts(req?: WixQueryContactsRequest): Promise<WixQueryContactsResponse>;
|
|
126
|
-
export declare function listContacts(req?: WixListContactsRequest): Promise<WixQueryContactsResponse>;
|
|
127
|
-
export declare function getContact(contactId: string): Promise<WixGetContactResponse>;
|
|
128
|
-
export declare function createContact(req?: WixCreateContactRequest): Promise<WixCreateContactResponse>;
|
|
129
|
-
export declare function updateContact(contactId: string, req?: WixUpdateContactRequest): Promise<WixUpdateContactResponse>;
|
|
130
|
-
export declare function deleteContact(contactId: string): Promise<WixDeleteContactResponse>;
|
|
135
|
+
export declare function queryContacts(req?: WixQueryContactsRequest, opts?: WixCallOptions): Promise<WixQueryContactsResponse>;
|
|
136
|
+
export declare function listContacts(req?: WixListContactsRequest, opts?: WixCallOptions): Promise<WixQueryContactsResponse>;
|
|
137
|
+
export declare function getContact(contactId: string, opts?: WixCallOptions): Promise<WixGetContactResponse>;
|
|
138
|
+
export declare function createContact(req?: WixCreateContactRequest, opts?: WixCallOptions): Promise<WixCreateContactResponse>;
|
|
139
|
+
export declare function updateContact(contactId: string, req?: WixUpdateContactRequest, opts?: WixCallOptions): Promise<WixUpdateContactResponse>;
|
|
140
|
+
export declare function deleteContact(contactId: string, opts?: WixCallOptions): Promise<WixDeleteContactResponse>;
|
|
131
141
|
export * from "./extensions.js";
|