@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.
Files changed (126) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/wix-platform/src/index.d.ts +32 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/activity-counters-v1/src/index.d.ts +16 -6
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/analytics/src/index.d.ts +1 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/automations-v1/src/index.d.ts +40 -30
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/badges-v2/src/index.d.ts +23 -13
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/billing-tax-v1/src/index.d.ts +22 -12
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/blog-v3/src/index.d.ts +13 -3
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/index.d.ts +18 -8
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/business-feed/src/index.d.ts +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/business-tools-v1/src/index.d.ts +29 -19
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/comments-v1/src/index.d.ts +28 -18
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/contacts/src/index.d.ts +18 -8
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/coupons/src/index.d.ts +1 -1
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/crm-tasks/src/index.d.ts +1 -1
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/dashboard-setup/src/index.d.ts +1 -1
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/data-collections-v1/src/index.d.ts +29 -19
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/donations/src/index.d.ts +20 -10
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ecom/src/index.d.ts +13 -3
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/email-marketing-v1/src/index.d.ts +29 -19
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/events/src/index.d.ts +1 -1
  21. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/faq-v2/src/index.d.ts +27 -17
  22. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/forms/src/index.d.ts +16 -6
  23. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/forum/src/index.d.ts +16 -6
  24. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/genie-chat/src/index.d.ts +1 -1
  25. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/gift-cards/src/index.d.ts +21 -11
  26. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/groups/src/index.d.ts +14 -4
  27. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/inbox/src/index.d.ts +15 -5
  28. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/invoices/src/index.d.ts +1 -1
  29. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/loyalty/src/index.d.ts +1 -1
  30. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/marketing-v1/src/index.d.ts +16 -6
  31. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +1 -1
  32. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/new-releases/src/index.d.ts +1 -1
  33. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/notifications-v3/src/index.d.ts +13 -3
  34. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/online-programs/src/index.d.ts +1 -1
  35. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/portfolio/src/index.d.ts +1 -1
  36. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/pricing-plans/src/index.d.ts +1 -1
  37. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/redirects-v1/src/index.d.ts +13 -3
  38. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/restaurants/src/index.d.ts +18 -8
  39. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/reviews/src/index.d.ts +1 -1
  40. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/seo-v1/src/index.d.ts +15 -5
  41. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/site-list/src/index.d.ts +14 -4
  42. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/site-media/src/index.d.ts +1 -1
  43. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/social-feed/src/index.d.ts +1 -1
  44. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-collections/src/index.d.ts +1 -1
  45. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/index.d.ts +13 -3
  46. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/table-reservations/src/index.d.ts +1 -1
  47. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/users/src/index.d.ts +1 -1
  48. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/wix-data/src/index.d.ts +1 -1
  49. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/workflows-v1/src/index.d.ts +17 -7
  50. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +14 -4
  51. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-activity-counters.mjs +24 -10
  52. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-automations.mjs +100 -58
  53. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-badges.mjs +54 -24
  54. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-billing-tax.mjs +43 -22
  55. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-blog.mjs +18 -4
  56. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bookings.mjs +36 -14
  57. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-business-tools.mjs +63 -36
  58. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +62 -34
  59. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-contacts.mjs +35 -14
  60. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-data-collections.mjs +62 -36
  61. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-donations.mjs +37 -18
  62. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +14 -4
  63. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-email-marketing.mjs +66 -36
  64. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-faq.mjs +68 -32
  65. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-forms.mjs +25 -10
  66. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-forum.mjs +32 -10
  67. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-gift-cards.mjs +39 -20
  68. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-groups.mjs +18 -6
  69. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-inbox.mjs +22 -8
  70. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-marketing.mjs +23 -10
  71. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-notifications.mjs +18 -4
  72. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-platform.mjs +30 -0
  73. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-redirects.mjs +14 -4
  74. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-restaurants.mjs +32 -14
  75. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-seo.mjs +20 -8
  76. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-site-list.mjs +17 -6
  77. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +15 -4
  78. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-workflows.mjs +28 -12
  79. package/dist/cli.mjs +23 -6
  80. package/guides/branded-lite-site-binding.md +14 -6
  81. package/guides/sdk-reference.json +398 -230
  82. package/package.json +2 -2
  83. package/templates/beauty-salon/dev/index.ts +1 -181
  84. package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +9 -141
  85. package/templates/beauty-salon-owner/dev/index.ts +564 -0
  86. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  87. package/templates/branded-lite/dev/index.ts +1 -181
  88. package/templates/branded-lite/tier5-src/himi-store-account/index.ts +9 -141
  89. package/templates/community-club/dev/index.ts +1 -181
  90. package/templates/community-club/tier5-src/himi-store-account/index.ts +9 -141
  91. package/templates/community-club-owner/dev/index.ts +564 -0
  92. package/templates/community-club-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  93. package/templates/events-meetups/dev/index.ts +1 -181
  94. package/templates/events-meetups/tier5-src/himi-store-account/index.ts +9 -141
  95. package/templates/events-meetups-owner/dev/index.ts +564 -0
  96. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  97. package/templates/gym-fitness/dev/index.ts +1 -181
  98. package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +9 -141
  99. package/templates/gym-fitness-owner/dev/index.ts +564 -0
  100. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  101. package/templates/nonprofit-cause/dev/index.ts +1 -181
  102. package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +9 -141
  103. package/templates/nonprofit-cause-owner/dev/index.ts +564 -0
  104. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  105. package/templates/owner-lite/dev/index.ts +564 -0
  106. package/templates/owner-lite/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  107. package/templates/podcast-creator/dev/index.ts +1 -181
  108. package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +9 -141
  109. package/templates/podcast-creator-owner/dev/index.ts +564 -0
  110. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  111. package/templates/portfolio-creative/dev/index.ts +1 -181
  112. package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +9 -141
  113. package/templates/portfolio-creative-owner/dev/index.ts +564 -0
  114. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  115. package/templates/restaurant/dev/index.ts +1 -181
  116. package/templates/restaurant/tier5-src/himi-store-account/index.ts +9 -141
  117. package/templates/restaurant-owner/dev/index.ts +564 -0
  118. package/templates/restaurant-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  119. package/templates/retail-store/dev/index.ts +1 -181
  120. package/templates/retail-store/tier5-src/himi-store-account/index.ts +9 -141
  121. package/templates/retail-store-owner/dev/index.ts +564 -0
  122. package/templates/retail-store-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
  123. package/templates/yoga-studio/dev/index.ts +1 -181
  124. package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +9 -141
  125. package/templates/yoga-studio-owner/dev/index.ts +564 -0
  126. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-overview/index.ts +220 -0
@@ -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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixDataCollection {
10
20
  id?: string;
11
21
  collectionType?: string;
@@ -1050,21 +1060,21 @@ export interface WixRemoveSpecialPermissionsSignature {
1050
1060
  }
1051
1061
  export interface WixGetMyPermissionsSignature {
1052
1062
  }
1053
- export declare function getDataCollection(dataCollectionId: string): Promise<WixGetDataCollectionResponse>;
1054
- export declare function listDataCollections(req?: WixListDataCollectionsRequest): Promise<WixListDataCollectionsResponse>;
1055
- export declare function deleteDataCollection(dataCollectionId: string): Promise<WixDeleteDataCollectionResponse>;
1056
- export declare function restoreDataCollection(dataCollectionId: string, req?: WixRestoreDataCollectionRequest): Promise<WixRestoreDataCollectionResponse>;
1057
- export declare function deleteDataCollectionField(req?: WixDeleteDataCollectionFieldRequest): Promise<WixDeleteDataCollectionFieldResponse>;
1058
- export declare function addDataCollectionPlugin(req?: WixAddDataCollectionPluginRequest): Promise<WixAddDataCollectionPluginResponse>;
1059
- export declare function deleteDataCollectionPlugin(req?: WixDeleteDataCollectionPluginRequest): Promise<WixDeleteDataCollectionPluginResponse>;
1060
- export declare function createIndex(req?: WixCreateIndexRequest): Promise<WixCreateIndexResponse>;
1061
- export declare function dropIndex(req?: WixDropIndexRequest): Promise<WixDropIndexResponse>;
1062
- export declare function listIndexes(req?: WixListIndexesRequest): Promise<WixListIndexesResponse>;
1063
- export declare function listAvailableIndexes(req?: WixListAvailableIndexesRequest): Promise<WixListAvailableIndexesResponse>;
1064
- export declare function getPermissions(req?: WixGetPermissionsRequest): Promise<WixGetPermissionsResponse>;
1065
- export declare function updatePermissions(req?: WixUpdatePermissionsRequest): Promise<WixUpdatePermissionsResponse>;
1066
- export declare function addSpecialPermissions(req?: WixAddSpecialPermissionsRequest): Promise<WixAddSpecialPermissionsResponse>;
1067
- export declare function updateSpecialPermissions(specialPermissionsId: string, req?: WixUpdateSpecialPermissionsRequest): Promise<WixUpdateSpecialPermissionsResponse>;
1068
- export declare function removeSpecialPermissions(specialPermissionsId: string): Promise<WixRemoveSpecialPermissionsResponse>;
1069
- export declare function getMyPermissions(req?: WixGetMyPermissionsRequest): Promise<WixGetMyPermissionsResponse>;
1063
+ export declare function getDataCollection(dataCollectionId: string, opts?: WixCallOptions): Promise<WixGetDataCollectionResponse>;
1064
+ export declare function listDataCollections(req?: WixListDataCollectionsRequest, opts?: WixCallOptions): Promise<WixListDataCollectionsResponse>;
1065
+ export declare function deleteDataCollection(dataCollectionId: string, opts?: WixCallOptions): Promise<WixDeleteDataCollectionResponse>;
1066
+ export declare function restoreDataCollection(dataCollectionId: string, req?: WixRestoreDataCollectionRequest, opts?: WixCallOptions): Promise<WixRestoreDataCollectionResponse>;
1067
+ export declare function deleteDataCollectionField(req?: WixDeleteDataCollectionFieldRequest, opts?: WixCallOptions): Promise<WixDeleteDataCollectionFieldResponse>;
1068
+ export declare function addDataCollectionPlugin(req?: WixAddDataCollectionPluginRequest, opts?: WixCallOptions): Promise<WixAddDataCollectionPluginResponse>;
1069
+ export declare function deleteDataCollectionPlugin(req?: WixDeleteDataCollectionPluginRequest, opts?: WixCallOptions): Promise<WixDeleteDataCollectionPluginResponse>;
1070
+ export declare function createIndex(req?: WixCreateIndexRequest, opts?: WixCallOptions): Promise<WixCreateIndexResponse>;
1071
+ export declare function dropIndex(req?: WixDropIndexRequest, opts?: WixCallOptions): Promise<WixDropIndexResponse>;
1072
+ export declare function listIndexes(req?: WixListIndexesRequest, opts?: WixCallOptions): Promise<WixListIndexesResponse>;
1073
+ export declare function listAvailableIndexes(req?: WixListAvailableIndexesRequest, opts?: WixCallOptions): Promise<WixListAvailableIndexesResponse>;
1074
+ export declare function getPermissions(req?: WixGetPermissionsRequest, opts?: WixCallOptions): Promise<WixGetPermissionsResponse>;
1075
+ export declare function updatePermissions(req?: WixUpdatePermissionsRequest, opts?: WixCallOptions): Promise<WixUpdatePermissionsResponse>;
1076
+ export declare function addSpecialPermissions(req?: WixAddSpecialPermissionsRequest, opts?: WixCallOptions): Promise<WixAddSpecialPermissionsResponse>;
1077
+ export declare function updateSpecialPermissions(specialPermissionsId: string, req?: WixUpdateSpecialPermissionsRequest, opts?: WixCallOptions): Promise<WixUpdateSpecialPermissionsResponse>;
1078
+ export declare function removeSpecialPermissions(specialPermissionsId: string, opts?: WixCallOptions): Promise<WixRemoveSpecialPermissionsResponse>;
1079
+ export declare function getMyPermissions(req?: WixGetMyPermissionsRequest, opts?: WixCallOptions): Promise<WixGetMyPermissionsResponse>;
1070
1080
  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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixDonationCampaign {
10
20
  id?: string;
11
21
  revision?: string;
@@ -384,12 +394,12 @@ export interface WixBulkUpdateDonationCampaignTagsSignature {
384
394
  }
385
395
  export interface WixBulkUpdateDonationCampaignTagsByFilterSignature {
386
396
  }
387
- export declare function createDonationCampaign(req?: WixCreateDonationCampaignRequest): Promise<WixCreateDonationCampaignResponse>;
388
- export declare function getDonationCampaign(donationCampaignId: string): Promise<WixGetDonationCampaignResponse>;
389
- export declare function updateDonationCampaign(donationCampaignId: string, req?: WixUpdateDonationCampaignRequest): Promise<WixUpdateDonationCampaignResponse>;
390
- export declare function queryDonationCampaigns(req?: WixQueryDonationCampaignsRequest): Promise<WixQueryDonationCampaignsResponse>;
391
- export declare function getDonationCampaignMetrics(donationCampaignId: string): Promise<WixGetDonationCampaignMetricsResponse>;
392
- export declare function bulkCreateDonationCampaigns(req?: WixBulkCreateDonationCampaignsRequest): Promise<WixBulkCreateDonationCampaignsResponse>;
393
- export declare function bulkUpdateDonationCampaignTags(req?: WixBulkUpdateDonationCampaignTagsRequest): Promise<WixBulkUpdateDonationCampaignTagsResponse>;
394
- export declare function bulkUpdateDonationCampaignTagsByFilter(req?: WixBulkUpdateDonationCampaignTagsByFilterRequest): Promise<WixBulkUpdateDonationCampaignTagsByFilterResponse>;
397
+ export declare function createDonationCampaign(req?: WixCreateDonationCampaignRequest, opts?: WixCallOptions): Promise<WixCreateDonationCampaignResponse>;
398
+ export declare function getDonationCampaign(donationCampaignId: string, opts?: WixCallOptions): Promise<WixGetDonationCampaignResponse>;
399
+ export declare function updateDonationCampaign(donationCampaignId: string, req?: WixUpdateDonationCampaignRequest, opts?: WixCallOptions): Promise<WixUpdateDonationCampaignResponse>;
400
+ export declare function queryDonationCampaigns(req?: WixQueryDonationCampaignsRequest, opts?: WixCallOptions): Promise<WixQueryDonationCampaignsResponse>;
401
+ export declare function getDonationCampaignMetrics(donationCampaignId: string, opts?: WixCallOptions): Promise<WixGetDonationCampaignMetricsResponse>;
402
+ export declare function bulkCreateDonationCampaigns(req?: WixBulkCreateDonationCampaignsRequest, opts?: WixCallOptions): Promise<WixBulkCreateDonationCampaignsResponse>;
403
+ export declare function bulkUpdateDonationCampaignTags(req?: WixBulkUpdateDonationCampaignTagsRequest, opts?: WixCallOptions): Promise<WixBulkUpdateDonationCampaignTagsResponse>;
404
+ export declare function bulkUpdateDonationCampaignTagsByFilter(req?: WixBulkUpdateDonationCampaignTagsByFilterRequest, opts?: WixCallOptions): Promise<WixBulkUpdateDonationCampaignTagsByFilterResponse>;
395
405
  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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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: `searchOrders(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 WixEcomCursorPaging {
10
20
  limit?: number;
11
21
  cursor?: string;
@@ -67,5 +77,5 @@ export interface WixSearchOrdersResponse {
67
77
  orders: WixOrder[];
68
78
  metadata?: WixEcomMetadata;
69
79
  }
70
- export declare function searchOrders(req?: WixSearchOrdersRequest): Promise<WixSearchOrdersResponse>;
80
+ export declare function searchOrders(req?: WixSearchOrdersRequest, opts?: WixCallOptions): Promise<WixSearchOrdersResponse>;
71
81
  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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixCampaign {
10
20
  campaignId?: string;
11
21
  title?: string;
@@ -734,21 +744,21 @@ export interface WixUpdateResponse {
734
744
  }
735
745
  export interface WixVerifyEmailResponse {
736
746
  }
737
- export declare function listStatistics(req?: WixListStatisticsRequest): Promise<WixListStatisticsResponse>;
738
- export declare function listRecipients(campaignId: string): Promise<WixListRecipientsResponse>;
739
- export declare function get(campaignId: string): Promise<WixCampaign>;
740
- export declare function list(): Promise<WixCampaign>;
741
- export declare function publish(campaignId: string): Promise<WixCampaign>;
742
- export declare function sendTest(campaignId: string, req?: WixSendTestRequest): Promise<WixSendTestResponse>;
743
- export declare function pauseScheduling(campaignId: string, req?: WixPauseSchedulingRequest): Promise<WixPauseSchedulingResponse>;
744
- export declare function reschedule(campaignId: string, req?: WixRescheduleRequest): Promise<WixRescheduleResponse>;
745
- export declare function reuse(campaignId: string): Promise<WixCampaign>;
746
- export declare function getAudience(campaignId: string, req?: WixGetAudienceRequest): Promise<WixGetAudienceResponse>;
747
- export declare function identifySenderAddress(req?: WixIdentifySenderAddressRequest): Promise<WixIdentifySenderAddressResponse>;
748
- export declare function validateLink(req?: WixValidateLinkRequest): Promise<WixValidateLinkResponse>;
749
- export declare function validateHtmlLinks(req?: WixValidateHtmlLinksRequest): Promise<WixValidateHtmlLinksResponse>;
750
- export declare function getSenderDetails(): Promise<WixGetResponse>;
751
- export declare function updateSenderDetails(): Promise<WixUpdateResponse>;
752
- export declare function verifyEmail(): Promise<WixVerifyEmailResponse>;
753
- export declare function resolveActualFromAddress(req?: WixResolveActualFromAddressRequest): Promise<WixResolveActualFromAddressResponse>;
747
+ export declare function listStatistics(req?: WixListStatisticsRequest, opts?: WixCallOptions): Promise<WixListStatisticsResponse>;
748
+ export declare function listRecipients(campaignId: string, opts?: WixCallOptions): Promise<WixListRecipientsResponse>;
749
+ export declare function get(campaignId: string, opts?: WixCallOptions): Promise<WixCampaign>;
750
+ export declare function list(opts?: WixCallOptions): Promise<WixCampaign>;
751
+ export declare function publish(campaignId: string, opts?: WixCallOptions): Promise<WixCampaign>;
752
+ export declare function sendTest(campaignId: string, req?: WixSendTestRequest, opts?: WixCallOptions): Promise<WixSendTestResponse>;
753
+ export declare function pauseScheduling(campaignId: string, req?: WixPauseSchedulingRequest, opts?: WixCallOptions): Promise<WixPauseSchedulingResponse>;
754
+ export declare function reschedule(campaignId: string, req?: WixRescheduleRequest, opts?: WixCallOptions): Promise<WixRescheduleResponse>;
755
+ export declare function reuse(campaignId: string, opts?: WixCallOptions): Promise<WixCampaign>;
756
+ export declare function getAudience(campaignId: string, req?: WixGetAudienceRequest, opts?: WixCallOptions): Promise<WixGetAudienceResponse>;
757
+ export declare function identifySenderAddress(req?: WixIdentifySenderAddressRequest, opts?: WixCallOptions): Promise<WixIdentifySenderAddressResponse>;
758
+ export declare function validateLink(req?: WixValidateLinkRequest, opts?: WixCallOptions): Promise<WixValidateLinkResponse>;
759
+ export declare function validateHtmlLinks(req?: WixValidateHtmlLinksRequest, opts?: WixCallOptions): Promise<WixValidateHtmlLinksResponse>;
760
+ export declare function getSenderDetails(opts?: WixCallOptions): Promise<WixGetResponse>;
761
+ export declare function updateSenderDetails(opts?: WixCallOptions): Promise<WixUpdateResponse>;
762
+ export declare function verifyEmail(opts?: WixCallOptions): Promise<WixVerifyEmailResponse>;
763
+ export declare function resolveActualFromAddress(req?: WixResolveActualFromAddressRequest, opts?: WixCallOptions): Promise<WixResolveActualFromAddressResponse>;
754
764
  export * from "./extensions.js";
@@ -1,7 +1,7 @@
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
  }
@@ -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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixCategory {
10
20
  id?: string;
11
21
  revision?: string;
@@ -1543,19 +1553,19 @@ export interface WixSetQuestionEntryLabelsSignature {
1543
1553
  }
1544
1554
  export interface WixBulkUpdateQuestionEntrySignature {
1545
1555
  }
1546
- export declare function createCategory(req?: WixCreateCategoryRequest): Promise<WixCreateCategoryResponse>;
1547
- export declare function getCategory(categoryId: string): Promise<WixGetCategoryResponse>;
1548
- export declare function updateCategory(categoryId: string, req?: WixUpdateCategoryRequest): Promise<WixUpdateCategoryResponse>;
1549
- export declare function deleteCategory(categoryId: string): Promise<WixDeleteCategoryResponse>;
1550
- export declare function listCategories(req?: WixListCategoriesRequest): Promise<WixListCategoriesResponse>;
1551
- export declare function queryCategories(req?: WixQueryCategoriesRequest): Promise<WixQueryCategoriesResponse>;
1552
- export declare function createQuestionEntry(req?: WixCreateQuestionEntryRequest): Promise<WixCreateQuestionEntryResponse>;
1553
- export declare function getQuestionEntry(questionEntryId: string): Promise<WixGetQuestionEntryResponse>;
1554
- export declare function updateQuestionEntry(questionEntryId: string, req?: WixUpdateQuestionEntryRequest): Promise<WixUpdateQuestionEntryResponse>;
1555
- export declare function deleteQuestionEntry(questionEntryId: string): Promise<WixDeleteQuestionEntryResponse>;
1556
- export declare function listQuestionEntries(req?: WixListQuestionEntriesRequest): Promise<WixListQuestionEntriesResponse>;
1557
- export declare function queryQuestionEntries(req?: WixQueryQuestionEntriesRequest): Promise<WixQueryQuestionEntriesResponse>;
1558
- export declare function setQuestionEntryLabels(questionEntryId: string, req?: WixSetQuestionEntryLabelsRequest): Promise<WixSetQuestionEntryLabelsResponse>;
1559
- export declare function bulkDeleteQuestionEntries(req?: WixBulkDeleteQuestionEntriesRequest): Promise<WixBulkDeleteQuestionEntriesResponse>;
1560
- export declare function bulkUpdateQuestionEntry(req?: WixBulkUpdateQuestionEntryRequest): Promise<WixBulkUpdateQuestionEntryResponse>;
1556
+ export declare function createCategory(req?: WixCreateCategoryRequest, opts?: WixCallOptions): Promise<WixCreateCategoryResponse>;
1557
+ export declare function getCategory(categoryId: string, opts?: WixCallOptions): Promise<WixGetCategoryResponse>;
1558
+ export declare function updateCategory(categoryId: string, req?: WixUpdateCategoryRequest, opts?: WixCallOptions): Promise<WixUpdateCategoryResponse>;
1559
+ export declare function deleteCategory(categoryId: string, opts?: WixCallOptions): Promise<WixDeleteCategoryResponse>;
1560
+ export declare function listCategories(req?: WixListCategoriesRequest, opts?: WixCallOptions): Promise<WixListCategoriesResponse>;
1561
+ export declare function queryCategories(req?: WixQueryCategoriesRequest, opts?: WixCallOptions): Promise<WixQueryCategoriesResponse>;
1562
+ export declare function createQuestionEntry(req?: WixCreateQuestionEntryRequest, opts?: WixCallOptions): Promise<WixCreateQuestionEntryResponse>;
1563
+ export declare function getQuestionEntry(questionEntryId: string, opts?: WixCallOptions): Promise<WixGetQuestionEntryResponse>;
1564
+ export declare function updateQuestionEntry(questionEntryId: string, req?: WixUpdateQuestionEntryRequest, opts?: WixCallOptions): Promise<WixUpdateQuestionEntryResponse>;
1565
+ export declare function deleteQuestionEntry(questionEntryId: string, opts?: WixCallOptions): Promise<WixDeleteQuestionEntryResponse>;
1566
+ export declare function listQuestionEntries(req?: WixListQuestionEntriesRequest, opts?: WixCallOptions): Promise<WixListQuestionEntriesResponse>;
1567
+ export declare function queryQuestionEntries(req?: WixQueryQuestionEntriesRequest, opts?: WixCallOptions): Promise<WixQueryQuestionEntriesResponse>;
1568
+ export declare function setQuestionEntryLabels(questionEntryId: string, req?: WixSetQuestionEntryLabelsRequest, opts?: WixCallOptions): Promise<WixSetQuestionEntryLabelsResponse>;
1569
+ export declare function bulkDeleteQuestionEntries(req?: WixBulkDeleteQuestionEntriesRequest, opts?: WixCallOptions): Promise<WixBulkDeleteQuestionEntriesResponse>;
1570
+ export declare function bulkUpdateQuestionEntry(req?: WixBulkUpdateQuestionEntryRequest, opts?: WixCallOptions): Promise<WixBulkUpdateQuestionEntryResponse>;
1561
1571
  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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixPaging {
10
20
  limit?: number;
11
21
  offset?: number;
@@ -65,8 +75,8 @@ export interface WixQuerySubmissionsResponse {
65
75
  submissions: WixSubmission[];
66
76
  metaData?: WixMetadata;
67
77
  }
68
- export declare function queryForms(req?: WixFormsQueryRequest): Promise<WixQueryFormsResponse>;
69
- export declare function getForm(id: string): Promise<WixForm>;
70
- export declare function querySubmissions(req?: WixSubmissionsQueryRequest): Promise<WixQuerySubmissionsResponse>;
71
- export declare function getSubmission(id: string): Promise<WixSubmission>;
78
+ export declare function queryForms(req?: WixFormsQueryRequest, opts?: WixCallOptions): Promise<WixQueryFormsResponse>;
79
+ export declare function getForm(id: string, opts?: WixCallOptions): Promise<WixForm>;
80
+ export declare function querySubmissions(req?: WixSubmissionsQueryRequest, opts?: WixCallOptions): Promise<WixQuerySubmissionsResponse>;
81
+ export declare function getSubmission(id: string, opts?: WixCallOptions): Promise<WixSubmission>;
72
82
  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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixForumPaging {
10
20
  limit?: number;
11
21
  offset?: number;
@@ -73,8 +83,8 @@ export interface WixQueryCategoriesResponse {
73
83
  categories?: WixCategory[];
74
84
  metaData?: WixForumPagingMetadata;
75
85
  }
76
- export declare function queryPosts(req?: WixPostQueryRequest): Promise<WixQueryPostsResponse>;
77
- export declare function getPost(id: string): Promise<WixPost>;
78
- export declare function queryCategories(req?: WixCategoryQueryRequest): Promise<WixQueryCategoriesResponse>;
79
- export declare function getCategory(id: string): Promise<WixCategory>;
86
+ export declare function queryPosts(req?: WixPostQueryRequest, opts?: WixCallOptions): Promise<WixQueryPostsResponse>;
87
+ export declare function getPost(id: string, opts?: WixCallOptions): Promise<WixPost>;
88
+ export declare function queryCategories(req?: WixCategoryQueryRequest, opts?: WixCallOptions): Promise<WixQueryCategoriesResponse>;
89
+ export declare function getCategory(id: string, opts?: WixCallOptions): Promise<WixCategory>;
80
90
  export * from "./extensions.js";
@@ -1,7 +1,7 @@
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
  }
@@ -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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixCreateGiftCardSignature {
10
20
  }
11
21
  export interface WixGetGiftCardSignature {
@@ -754,13 +764,13 @@ export interface WixSendGiftCardEmailOptions {
754
764
  export interface WixCountGiftCardsOptions {
755
765
  filter?: Record<string, unknown>;
756
766
  }
757
- export declare function createGiftCard(req?: WixCreateGiftCardRequest): Promise<WixCreateGiftCardResponse>;
758
- export declare function getGiftCard(giftCardId: string): Promise<WixGetGiftCardResponse>;
759
- export declare function queryGiftCards(req?: WixQueryGiftCardsRequest): Promise<WixQueryGiftCardsResponse>;
760
- export declare function searchGiftCards(req?: WixSearchGiftCardsRequest): Promise<WixSearchGiftCardsResponse>;
761
- export declare function sendGiftCardEmail(giftCardId: string, req?: WixSendGiftCardEmailRequest): Promise<WixSendGiftCardEmailResponse>;
762
- export declare function disableGiftCard(giftCardId: string, req?: WixDisableGiftCardRequest): Promise<WixDisableGiftCardResponse>;
763
- export declare function listGiftCardsByEmail(req?: WixListGiftCardsByEmailRequest): Promise<WixListGiftCardsByEmailResponse>;
764
- export declare function listGiftCardsByContactDetails(req?: WixListGiftCardsByContactDetailsRequest): Promise<WixListGiftCardsByContactDetailsResponse>;
765
- export declare function countGiftCards(req?: WixCountGiftCardsRequest): Promise<WixCountGiftCardsResponse>;
767
+ export declare function createGiftCard(req?: WixCreateGiftCardRequest, opts?: WixCallOptions): Promise<WixCreateGiftCardResponse>;
768
+ export declare function getGiftCard(giftCardId: string, opts?: WixCallOptions): Promise<WixGetGiftCardResponse>;
769
+ export declare function queryGiftCards(req?: WixQueryGiftCardsRequest, opts?: WixCallOptions): Promise<WixQueryGiftCardsResponse>;
770
+ export declare function searchGiftCards(req?: WixSearchGiftCardsRequest, opts?: WixCallOptions): Promise<WixSearchGiftCardsResponse>;
771
+ export declare function sendGiftCardEmail(giftCardId: string, req?: WixSendGiftCardEmailRequest, opts?: WixCallOptions): Promise<WixSendGiftCardEmailResponse>;
772
+ export declare function disableGiftCard(giftCardId: string, req?: WixDisableGiftCardRequest, opts?: WixCallOptions): Promise<WixDisableGiftCardResponse>;
773
+ export declare function listGiftCardsByEmail(req?: WixListGiftCardsByEmailRequest, opts?: WixCallOptions): Promise<WixListGiftCardsByEmailResponse>;
774
+ export declare function listGiftCardsByContactDetails(req?: WixListGiftCardsByContactDetailsRequest, opts?: WixCallOptions): Promise<WixListGiftCardsByContactDetailsResponse>;
775
+ export declare function countGiftCards(req?: WixCountGiftCardsRequest, opts?: WixCallOptions): Promise<WixCountGiftCardsResponse>;
766
776
  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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixPaging {
10
20
  limit?: number;
11
21
  offset?: number;
@@ -76,6 +86,6 @@ export interface WixUpdateGroupResponse {
76
86
  }
77
87
  export interface WixDeleteGroupResponse {
78
88
  }
79
- export declare function queryGroups(req?: WixGroupsQueryRequest): Promise<WixQueryGroupsResponse>;
80
- export declare function getGroup(id: string): Promise<WixGroup>;
89
+ export declare function queryGroups(req?: WixGroupsQueryRequest, opts?: WixCallOptions): Promise<WixQueryGroupsResponse>;
90
+ export declare function getGroup(id: string, opts?: WixCallOptions): Promise<WixGroup>;
81
91
  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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixPaging {
10
20
  limit?: number;
11
21
  offset?: number;
@@ -62,7 +72,7 @@ export interface WixListMessagesResponse {
62
72
  messages: WixMessage[];
63
73
  pagingMetadata?: WixMetadata;
64
74
  }
65
- export declare function getOrCreateConversation(req?: WixGetOrCreateConversationRequest): Promise<WixGetOrCreateConversationResponse>;
66
- export declare function getConversation(id: string): Promise<WixConversation>;
67
- export declare function getMessage(id: string): Promise<WixMessage>;
75
+ export declare function getOrCreateConversation(req?: WixGetOrCreateConversationRequest, opts?: WixCallOptions): Promise<WixGetOrCreateConversationResponse>;
76
+ export declare function getConversation(id: string, opts?: WixCallOptions): Promise<WixConversation>;
77
+ export declare function getMessage(id: string, opts?: WixCallOptions): Promise<WixMessage>;
68
78
  export * from "./extensions.js";
@@ -1,7 +1,7 @@
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
  }
@@ -1,7 +1,7 @@
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
  }
@@ -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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixMarketingTag {
10
20
  googleAds?: WixGoogleAds;
11
21
  googleAnalytics?: WixGoogleAnalytics;
@@ -193,8 +203,8 @@ export interface WixDeleteMarketingTagOptions {
193
203
  export interface WixDeleteMarketingTagV2Options {
194
204
  tagType?: string;
195
205
  }
196
- export declare function upsertMarketingTag(req?: WixUpsertMarketingTagRequest): Promise<WixUpsertMarketingTagResponse>;
197
- export declare function listMarketingTags(req?: WixListMarketingTagsRequest): Promise<WixListMarketingTagsResponse>;
198
- export declare function deleteMarketingTag(req?: WixDeleteMarketingTagRequest): Promise<WixDeleteMarketingTagResponse>;
199
- export declare function deleteMarketingTagV2(req?: WixDeleteMarketingTagV2Request): Promise<WixDeleteMarketingTagV2Response>;
206
+ export declare function upsertMarketingTag(req?: WixUpsertMarketingTagRequest, opts?: WixCallOptions): Promise<WixUpsertMarketingTagResponse>;
207
+ export declare function listMarketingTags(req?: WixListMarketingTagsRequest, opts?: WixCallOptions): Promise<WixListMarketingTagsResponse>;
208
+ export declare function deleteMarketingTag(req?: WixDeleteMarketingTagRequest, opts?: WixCallOptions): Promise<WixDeleteMarketingTagResponse>;
209
+ export declare function deleteMarketingTagV2(req?: WixDeleteMarketingTagV2Request, opts?: WixCallOptions): Promise<WixDeleteMarketingTagV2Response>;
200
210
  export * from "./extensions.js";
@@ -1,7 +1,7 @@
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
  }
@@ -1,7 +1,7 @@
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
  }
@@ -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
- export declare function wixCall<T>(method: string, path: string, body?: unknown): Promise<T>;
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 WixNotification {
10
20
  id?: string;
11
21
  }
@@ -78,5 +88,5 @@ export interface WixResolveResponse {
78
88
  export interface WixNotifyOptions {
79
89
  dynamicValues?: Record<string, unknown>;
80
90
  }
81
- export declare function notify(req?: WixNotifyRequest): Promise<WixNotifyResponse>;
91
+ export declare function notify(req?: WixNotifyRequest, opts?: WixCallOptions): Promise<WixNotifyResponse>;
82
92
  export * from "./extensions.js";
@@ -1,7 +1,7 @@
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
  }
@@ -1,7 +1,7 @@
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
  }