@wix/auto_sdk_loyalty_programs 1.0.16 → 1.0.17

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 (134) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/loyalty-v1-program-programs.context.d.ts +18 -0
  11. package/build/cjs/src/loyalty-v1-program-programs.context.js +30 -0
  12. package/build/cjs/src/loyalty-v1-program-programs.context.js.map +1 -0
  13. package/build/cjs/src/loyalty-v1-program-programs.http.d.ts +49 -0
  14. package/build/cjs/src/loyalty-v1-program-programs.http.js +417 -0
  15. package/build/cjs/src/loyalty-v1-program-programs.http.js.map +1 -0
  16. package/build/cjs/src/loyalty-v1-program-programs.meta.d.ts +20 -0
  17. package/build/cjs/src/loyalty-v1-program-programs.meta.js +180 -0
  18. package/build/cjs/src/loyalty-v1-program-programs.meta.js.map +1 -0
  19. package/build/cjs/src/loyalty-v1-program-programs.public.d.ts +88 -0
  20. package/build/cjs/src/loyalty-v1-program-programs.public.js +83 -0
  21. package/build/cjs/src/loyalty-v1-program-programs.public.js.map +1 -0
  22. package/build/{internal/loyalty-v1-program-programs.universal-CCZ90Kwf.d.mts → cjs/src/loyalty-v1-program-programs.types.d.ts} +142 -175
  23. package/build/cjs/src/loyalty-v1-program-programs.types.js +174 -0
  24. package/build/cjs/src/loyalty-v1-program-programs.types.js.map +1 -0
  25. package/build/cjs/src/loyalty-v1-program-programs.universal.d.ts +1474 -0
  26. package/build/cjs/src/loyalty-v1-program-programs.universal.js +537 -0
  27. package/build/cjs/src/loyalty-v1-program-programs.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/loyalty-v1-program-programs.context.d.ts +18 -0
  39. package/build/es/src/loyalty-v1-program-programs.context.js +18 -0
  40. package/build/es/src/loyalty-v1-program-programs.context.js.map +1 -0
  41. package/build/es/src/loyalty-v1-program-programs.http.d.ts +49 -0
  42. package/build/es/src/loyalty-v1-program-programs.http.js +406 -0
  43. package/build/es/src/loyalty-v1-program-programs.http.js.map +1 -0
  44. package/build/es/src/loyalty-v1-program-programs.meta.d.ts +20 -0
  45. package/build/es/src/loyalty-v1-program-programs.meta.js +146 -0
  46. package/build/es/src/loyalty-v1-program-programs.meta.js.map +1 -0
  47. package/build/es/src/loyalty-v1-program-programs.public.d.ts +88 -0
  48. package/build/es/src/loyalty-v1-program-programs.public.js +63 -0
  49. package/build/es/src/loyalty-v1-program-programs.public.js.map +1 -0
  50. package/build/{loyalty-v1-program-programs.universal-CCZ90Kwf.d.ts → es/src/loyalty-v1-program-programs.types.d.ts} +142 -175
  51. package/build/es/src/loyalty-v1-program-programs.types.js +171 -0
  52. package/build/es/src/loyalty-v1-program-programs.types.js.map +1 -0
  53. package/build/es/src/loyalty-v1-program-programs.universal.d.ts +1474 -0
  54. package/build/es/src/loyalty-v1-program-programs.universal.js +503 -0
  55. package/build/es/src/loyalty-v1-program-programs.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/loyalty-v1-program-programs.context.d.ts +18 -0
  66. package/build/internal/cjs/src/loyalty-v1-program-programs.context.js +30 -0
  67. package/build/internal/cjs/src/loyalty-v1-program-programs.context.js.map +1 -0
  68. package/build/internal/cjs/src/loyalty-v1-program-programs.http.d.ts +49 -0
  69. package/build/internal/cjs/src/loyalty-v1-program-programs.http.js +417 -0
  70. package/build/internal/cjs/src/loyalty-v1-program-programs.http.js.map +1 -0
  71. package/build/internal/cjs/src/loyalty-v1-program-programs.meta.d.ts +20 -0
  72. package/build/internal/cjs/src/loyalty-v1-program-programs.meta.js +180 -0
  73. package/build/internal/cjs/src/loyalty-v1-program-programs.meta.js.map +1 -0
  74. package/build/internal/cjs/src/loyalty-v1-program-programs.public.d.ts +88 -0
  75. package/build/internal/cjs/src/loyalty-v1-program-programs.public.js +83 -0
  76. package/build/internal/cjs/src/loyalty-v1-program-programs.public.js.map +1 -0
  77. package/build/{loyalty-v1-program-programs.universal-CCZ90Kwf.d.mts → internal/cjs/src/loyalty-v1-program-programs.types.d.ts} +142 -175
  78. package/build/internal/cjs/src/loyalty-v1-program-programs.types.js +174 -0
  79. package/build/internal/cjs/src/loyalty-v1-program-programs.types.js.map +1 -0
  80. package/build/internal/cjs/src/loyalty-v1-program-programs.universal.d.ts +1474 -0
  81. package/build/internal/cjs/src/loyalty-v1-program-programs.universal.js +537 -0
  82. package/build/internal/cjs/src/loyalty-v1-program-programs.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/loyalty-v1-program-programs.context.d.ts +18 -0
  93. package/build/internal/es/src/loyalty-v1-program-programs.context.js +18 -0
  94. package/build/internal/es/src/loyalty-v1-program-programs.context.js.map +1 -0
  95. package/build/internal/es/src/loyalty-v1-program-programs.http.d.ts +49 -0
  96. package/build/internal/es/src/loyalty-v1-program-programs.http.js +406 -0
  97. package/build/internal/es/src/loyalty-v1-program-programs.http.js.map +1 -0
  98. package/build/internal/es/src/loyalty-v1-program-programs.meta.d.ts +20 -0
  99. package/build/internal/es/src/loyalty-v1-program-programs.meta.js +146 -0
  100. package/build/internal/es/src/loyalty-v1-program-programs.meta.js.map +1 -0
  101. package/build/internal/es/src/loyalty-v1-program-programs.public.d.ts +88 -0
  102. package/build/internal/es/src/loyalty-v1-program-programs.public.js +63 -0
  103. package/build/internal/es/src/loyalty-v1-program-programs.public.js.map +1 -0
  104. package/build/internal/{loyalty-v1-program-programs.universal-CCZ90Kwf.d.ts → es/src/loyalty-v1-program-programs.types.d.ts} +142 -175
  105. package/build/internal/es/src/loyalty-v1-program-programs.types.js +171 -0
  106. package/build/internal/es/src/loyalty-v1-program-programs.types.js.map +1 -0
  107. package/build/internal/es/src/loyalty-v1-program-programs.universal.d.ts +1474 -0
  108. package/build/internal/es/src/loyalty-v1-program-programs.universal.js +503 -0
  109. package/build/internal/es/src/loyalty-v1-program-programs.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.d.mts +0 -101
  112. package/build/index.d.ts +0 -101
  113. package/build/index.js +0 -874
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -833
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -101
  118. package/build/internal/index.d.ts +0 -101
  119. package/build/internal/index.js +0 -874
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -833
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -226
  124. package/build/internal/meta.d.ts +0 -226
  125. package/build/internal/meta.js +0 -557
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -523
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -226
  130. package/build/meta.d.ts +0 -226
  131. package/build/meta.js +0 -557
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -523
  134. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,537 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.disablePointsExpiration = exports.enablePointsExpiration = exports.getLoyaltyProgramPremiumFeatures = exports.pauseLoyaltyProgram = exports.activateLoyaltyProgram = exports.updateLoyaltyProgram = exports.bulkGetLoyaltyProgram = exports.getLoyaltyProgram = exports.WebhookIdentityType = exports.FeaturePeriod = exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.Type = exports.Status = exports.ProgramStatus = void 0;
27
+ const transform_error_1 = require("@wix/sdk-runtime/transform-error");
28
+ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
29
+ const ambassadorWixLoyaltyV1Program = __importStar(require("./loyalty-v1-program-programs.http.js"));
30
+ const image_1 = require("@wix/sdk-runtime/transformations/image");
31
+ const image_2 = require("@wix/sdk-runtime/transformations/image");
32
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
33
+ var ProgramStatus;
34
+ (function (ProgramStatus) {
35
+ /** Unknown program status. */
36
+ ProgramStatus["UNKNOWN"] = "UNKNOWN";
37
+ /** Program was created but is not enabled yet. */
38
+ ProgramStatus["DRAFT"] = "DRAFT";
39
+ /** Program is active. */
40
+ ProgramStatus["ACTIVE"] = "ACTIVE";
41
+ /** Program was manually disabled by the user. This action can be reverted, meaning the user can set it to be active again. */
42
+ ProgramStatus["PAUSED"] = "PAUSED";
43
+ })(ProgramStatus || (exports.ProgramStatus = ProgramStatus = {}));
44
+ var Status;
45
+ (function (Status) {
46
+ /** Unknown points expiration status. This value is not used. */
47
+ Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
48
+ /** Points expiration feature is disabled. */
49
+ Status["DISABLED"] = "DISABLED";
50
+ /** Points expiration feature is enabled. */
51
+ Status["ENABLED"] = "ENABLED";
52
+ })(Status || (exports.Status = Status = {}));
53
+ var Type;
54
+ (function (Type) {
55
+ /** Unknown social media channel type. */
56
+ Type["UNKNOWN_CHANNEL"] = "UNKNOWN_CHANNEL";
57
+ /** Facebook social media channel. */
58
+ Type["FACEBOOK"] = "FACEBOOK";
59
+ /** Instagram social media channel. */
60
+ Type["INSTAGRAM"] = "INSTAGRAM";
61
+ /** LinkedIn social media channel. */
62
+ Type["LINKEDIN"] = "LINKEDIN";
63
+ /** X social media channel. */
64
+ Type["X"] = "X";
65
+ /** TikTok social media channel. */
66
+ Type["TIKTOK"] = "TIKTOK";
67
+ })(Type || (exports.Type = Type = {}));
68
+ var State;
69
+ (function (State) {
70
+ State["UNKNOWN"] = "UNKNOWN";
71
+ State["ENABLED"] = "ENABLED";
72
+ State["DISABLED"] = "DISABLED";
73
+ State["PENDING"] = "PENDING";
74
+ State["DEMO"] = "DEMO";
75
+ })(State || (exports.State = State = {}));
76
+ var SiteCreatedContext;
77
+ (function (SiteCreatedContext) {
78
+ /** A valid option, we don't expose all reasons why site might be created. */
79
+ SiteCreatedContext["OTHER"] = "OTHER";
80
+ /** A meta site was created from template. */
81
+ SiteCreatedContext["FROM_TEMPLATE"] = "FROM_TEMPLATE";
82
+ /** A meta site was created by copying of the transfferred meta site. */
83
+ SiteCreatedContext["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
84
+ /** A copy of existing meta site. */
85
+ SiteCreatedContext["DUPLICATE"] = "DUPLICATE";
86
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
87
+ SiteCreatedContext["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
88
+ /** deprecated A meta site was created for Flash editor. */
89
+ SiteCreatedContext["FLASH"] = "FLASH";
90
+ })(SiteCreatedContext || (exports.SiteCreatedContext = SiteCreatedContext = {}));
91
+ var Namespace;
92
+ (function (Namespace) {
93
+ Namespace["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
94
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
95
+ Namespace["WIX"] = "WIX";
96
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
97
+ Namespace["SHOUT_OUT"] = "SHOUT_OUT";
98
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
99
+ Namespace["ALBUMS"] = "ALBUMS";
100
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
101
+ Namespace["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
102
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
103
+ Namespace["HOTELS"] = "HOTELS";
104
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
105
+ Namespace["CLUBS"] = "CLUBS";
106
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
107
+ Namespace["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
108
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
109
+ Namespace["DEV_SITE"] = "DEV_SITE";
110
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
111
+ Namespace["LOGOS"] = "LOGOS";
112
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
113
+ Namespace["VIDEO_MAKER"] = "VIDEO_MAKER";
114
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
115
+ Namespace["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
116
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
117
+ Namespace["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
118
+ /**
119
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
120
+ *
121
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
122
+ */
123
+ Namespace["HTML_DRAFT"] = "HTML_DRAFT";
124
+ /**
125
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
126
+ * Will be accessible from Site List and will not have a website app.
127
+ * Once the user attaches a site, the site will become a regular wixsite.
128
+ */
129
+ Namespace["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
130
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
131
+ Namespace["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
132
+ /** It is to be used in the Business First efforts. */
133
+ Namespace["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
134
+ /** Bookings business flow with no site. */
135
+ Namespace["ANYWHERE"] = "ANYWHERE";
136
+ /** Namespace for Headless Backoffice with no editor */
137
+ Namespace["HEADLESS"] = "HEADLESS";
138
+ /**
139
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
140
+ * The site will be used for account level CSM feature for enterprise
141
+ */
142
+ Namespace["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
143
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
144
+ Namespace["RISE"] = "RISE";
145
+ /**
146
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
147
+ * There's a blank site behind the scene but it's blank).
148
+ * The Mobile company will be the owner of this namespace.
149
+ */
150
+ Namespace["BRANDED_FIRST"] = "BRANDED_FIRST";
151
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
152
+ Namespace["NOWNIA"] = "NOWNIA";
153
+ /**
154
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
155
+ * The Partners company owns this namespace.
156
+ */
157
+ Namespace["UGC_TEMPLATE"] = "UGC_TEMPLATE";
158
+ /** Codux Headless Sites */
159
+ Namespace["CODUX"] = "CODUX";
160
+ /** Bobb - AI Design Creator. */
161
+ Namespace["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
162
+ /**
163
+ * Shared Blog Site is a unique single site across Enterprise account,
164
+ * This site will hold all Blog posts related to the Marketing product.
165
+ */
166
+ Namespace["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
167
+ /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
168
+ Namespace["STANDALONE_FORMS"] = "STANDALONE_FORMS";
169
+ /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
170
+ Namespace["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
171
+ /** MIMIR - Siteless account for MIMIR Ai Job runner. */
172
+ Namespace["MIMIR"] = "MIMIR";
173
+ })(Namespace || (exports.Namespace = Namespace = {}));
174
+ var DeleteStatus;
175
+ (function (DeleteStatus) {
176
+ DeleteStatus["UNKNOWN"] = "UNKNOWN";
177
+ DeleteStatus["TRASH"] = "TRASH";
178
+ DeleteStatus["DELETED"] = "DELETED";
179
+ DeleteStatus["PENDING_PURGE"] = "PENDING_PURGE";
180
+ DeleteStatus["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
181
+ })(DeleteStatus || (exports.DeleteStatus = DeleteStatus = {}));
182
+ /** Determines the reset cycle of the feature usage. */
183
+ var FeaturePeriod;
184
+ (function (FeaturePeriod) {
185
+ FeaturePeriod["NO_PERIOD"] = "NO_PERIOD";
186
+ FeaturePeriod["MILLISECOND"] = "MILLISECOND";
187
+ FeaturePeriod["SECOND"] = "SECOND";
188
+ FeaturePeriod["MINUTE"] = "MINUTE";
189
+ FeaturePeriod["HOUR"] = "HOUR";
190
+ FeaturePeriod["DAY"] = "DAY";
191
+ FeaturePeriod["WEEK"] = "WEEK";
192
+ FeaturePeriod["MONTH"] = "MONTH";
193
+ FeaturePeriod["YEAR"] = "YEAR";
194
+ })(FeaturePeriod || (exports.FeaturePeriod = FeaturePeriod = {}));
195
+ var WebhookIdentityType;
196
+ (function (WebhookIdentityType) {
197
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
198
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
199
+ WebhookIdentityType["MEMBER"] = "MEMBER";
200
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
201
+ WebhookIdentityType["APP"] = "APP";
202
+ })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
203
+ /**
204
+ * Retrieves the site's loyalty program.
205
+ *
206
+ * The `getLoyaltyProgram()` function returns a Promise that resolves to the site's loyalty program.
207
+ * @public
208
+ * @permissionId LOYALTY.READ_PROGRAM
209
+ * @permissionScope Read Loyalty
210
+ * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
211
+ * @permissionScope Manage Loyalty
212
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
213
+ * @permissionScope Manage Restaurants - all permissions
214
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
215
+ * @applicableIdentity APP
216
+ * @applicableIdentity VISITOR
217
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgram
218
+ */
219
+ async function getLoyaltyProgram() {
220
+ // @ts-ignore
221
+ const { httpClient, sideEffects } = arguments[0];
222
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
223
+ const reqOpts = ambassadorWixLoyaltyV1Program.getLoyaltyProgram(payload);
224
+ sideEffects?.onSiteCall?.();
225
+ try {
226
+ const result = await httpClient.request(reqOpts);
227
+ sideEffects?.onSuccess?.(result);
228
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
229
+ {
230
+ transformFn: image_2.transformRESTImageToSDKImage,
231
+ paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],
232
+ },
233
+ ]));
234
+ }
235
+ catch (err) {
236
+ const transformedError = (0, transform_error_1.transformError)(err, {
237
+ spreadPathsToArguments: {},
238
+ explicitPathsToArguments: {},
239
+ singleArgumentUnchanged: false,
240
+ }, []);
241
+ sideEffects?.onError?.(err);
242
+ throw transformedError;
243
+ }
244
+ }
245
+ exports.getLoyaltyProgram = getLoyaltyProgram;
246
+ /**
247
+ * Retrieves loyalty programs for all metasites that the caller is a member of.
248
+ *
249
+ * Must be called with user identity.
250
+ * @public
251
+ * @documentationMaturity preview
252
+ * @permissionId LOYALTY.PROGRAM_BULK_READ
253
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.BulkGetLoyaltyProgram
254
+ */
255
+ async function bulkGetLoyaltyProgram() {
256
+ // @ts-ignore
257
+ const { httpClient, sideEffects } = arguments[0];
258
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
259
+ const reqOpts = ambassadorWixLoyaltyV1Program.bulkGetLoyaltyProgram(payload);
260
+ sideEffects?.onSiteCall?.();
261
+ try {
262
+ const result = await httpClient.request(reqOpts);
263
+ sideEffects?.onSuccess?.(result);
264
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
265
+ {
266
+ transformFn: image_2.transformRESTImageToSDKImage,
267
+ paths: [
268
+ { path: 'programInSites.loyaltyProgram.pointDefinition.icon' },
269
+ ],
270
+ },
271
+ ]));
272
+ }
273
+ catch (err) {
274
+ const transformedError = (0, transform_error_1.transformError)(err, {
275
+ spreadPathsToArguments: {},
276
+ explicitPathsToArguments: {},
277
+ singleArgumentUnchanged: false,
278
+ }, []);
279
+ sideEffects?.onError?.(err);
280
+ throw transformedError;
281
+ }
282
+ }
283
+ exports.bulkGetLoyaltyProgram = bulkGetLoyaltyProgram;
284
+ /**
285
+ * Updates the site's loyalty program.
286
+ *
287
+ * The `updateLoyaltyProgram()` function returns a Promise that resolves when the loyalty program is updated.
288
+ *
289
+ * With the `updateLoyaltyProgram()` function you can update the name of the loyalty program and the details of the collectible points unit. To activate the loyalty program use the [`activateLoyaltyProgram()`](https://dev.wix.com/docs/sdk/backend-modules/loyalty/programs/activate-loyalty-program) function.
290
+ *
291
+ * >**Note:** Only visitors with **Manage Loyalty** [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can update a loyalty program. You can override the permissions with the `wix-auth` [`elevate()`](wix-auth/elevate) function.
292
+ * @param loyaltyProgram - Loyalty program fields to update.
293
+ * @public
294
+ * @requiredField loyaltyProgram
295
+ * @permissionId LOYALTY.MANAGE_PROGRAM
296
+ * @permissionScope Manage Loyalty
297
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
298
+ * @permissionScope Manage Restaurants - all permissions
299
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
300
+ * @applicableIdentity APP
301
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.UpdateLoyaltyProgram
302
+ */
303
+ async function updateLoyaltyProgram(loyaltyProgram) {
304
+ // @ts-ignore
305
+ const { httpClient, sideEffects } = arguments[1];
306
+ const payload = (0, transform_paths_1.transformPaths)((0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({ loyaltyProgram: loyaltyProgram }), [
307
+ {
308
+ transformFn: image_1.transformSDKImageToRESTImage,
309
+ paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],
310
+ },
311
+ ]);
312
+ const reqOpts = ambassadorWixLoyaltyV1Program.updateLoyaltyProgram(payload);
313
+ sideEffects?.onSiteCall?.();
314
+ try {
315
+ const result = await httpClient.request(reqOpts);
316
+ sideEffects?.onSuccess?.(result);
317
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
318
+ {
319
+ transformFn: image_2.transformRESTImageToSDKImage,
320
+ paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],
321
+ },
322
+ ]));
323
+ }
324
+ catch (err) {
325
+ const transformedError = (0, transform_error_1.transformError)(err, {
326
+ spreadPathsToArguments: {},
327
+ explicitPathsToArguments: { loyaltyProgram: '$[0]' },
328
+ singleArgumentUnchanged: false,
329
+ }, ['loyaltyProgram']);
330
+ sideEffects?.onError?.(err);
331
+ throw transformedError;
332
+ }
333
+ }
334
+ exports.updateLoyaltyProgram = updateLoyaltyProgram;
335
+ /**
336
+ * Activates a loyalty program.
337
+ *
338
+ * The `activateLoyaltyProgram()` function returns a Promise that resolves when the status of the loyalty program is successfully changed to `"ACTIVE"`.
339
+ *
340
+ * Before you begin, a Wix Loyalty Program must first be installed through your [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/) or through the [Wix App Market](https://www.wix.com/app-market/loyalty). Initially when a loyalty program is installed, the status is set to `"DRAFT"`. You can change the program's status to `"ACTIVE"` with this function or through your [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/). A site's customers can only earn or redeem points while the program status is `"ACTIVE"`.
341
+ *
342
+ * This function updates only the status of a loyalty program, to make other updates to the program, use the [`updateLoyaltyProgram()`](https://dev.wix.com/docs/sdk/backend-modules/loyalty/programs/update-loyalty-program) function.
343
+ *
344
+ * To temporarily pause your loyalty program you must follow three steps:
345
+ * 1. Remove all [`earnPoints()`](https://dev.wix.com/docs/sdk/backend-modules/loyalty/accounts/earn-points) functions and switch off all the "Earn Points" and "Rewards" toggles in the [Loyalty Program dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Open%20Loyalty%20Program&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https://www.wix.com/dashboard/{{metaSiteId}}/loyalty-accounts/).
346
+ * 1. Hide the loyalty page from your site.
347
+ * 1. Delete the My Rewards page from the Member pages.
348
+ * See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.
349
+ *
350
+ * >**Note:** Only visitors with **Manage Loyalty** [permissions](https://support.wix.com/en/article/roles-permissions-accessing-roles-permissions) can activate a loyalty program. You can override the permissions with the `wix-auth` [`elevate()`](wix-auth/elevate) function.
351
+ * @public
352
+ * @permissionId LOYALTY.MANAGE_PROGRAM
353
+ * @permissionScope Manage Loyalty
354
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
355
+ * @permissionScope Manage Restaurants - all permissions
356
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
357
+ * @applicableIdentity APP
358
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.ActivateLoyaltyProgram
359
+ */
360
+ async function activateLoyaltyProgram() {
361
+ // @ts-ignore
362
+ const { httpClient, sideEffects } = arguments[0];
363
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
364
+ const reqOpts = ambassadorWixLoyaltyV1Program.activateLoyaltyProgram(payload);
365
+ sideEffects?.onSiteCall?.();
366
+ try {
367
+ const result = await httpClient.request(reqOpts);
368
+ sideEffects?.onSuccess?.(result);
369
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
370
+ {
371
+ transformFn: image_2.transformRESTImageToSDKImage,
372
+ paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],
373
+ },
374
+ ]));
375
+ }
376
+ catch (err) {
377
+ const transformedError = (0, transform_error_1.transformError)(err, {
378
+ spreadPathsToArguments: {},
379
+ explicitPathsToArguments: {},
380
+ singleArgumentUnchanged: false,
381
+ }, []);
382
+ sideEffects?.onError?.(err);
383
+ throw transformedError;
384
+ }
385
+ }
386
+ exports.activateLoyaltyProgram = activateLoyaltyProgram;
387
+ /**
388
+ * Changes the program status to `PAUSED`.
389
+ * @public
390
+ * @permissionId LOYALTY.MANAGE_PROGRAM
391
+ * @permissionScope Manage Loyalty
392
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
393
+ * @permissionScope Manage Restaurants - all permissions
394
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
395
+ * @applicableIdentity APP
396
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.PauseLoyaltyProgram
397
+ */
398
+ async function pauseLoyaltyProgram() {
399
+ // @ts-ignore
400
+ const { httpClient, sideEffects } = arguments[0];
401
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
402
+ const reqOpts = ambassadorWixLoyaltyV1Program.pauseLoyaltyProgram(payload);
403
+ sideEffects?.onSiteCall?.();
404
+ try {
405
+ const result = await httpClient.request(reqOpts);
406
+ sideEffects?.onSuccess?.(result);
407
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
408
+ {
409
+ transformFn: image_2.transformRESTImageToSDKImage,
410
+ paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],
411
+ },
412
+ ]));
413
+ }
414
+ catch (err) {
415
+ const transformedError = (0, transform_error_1.transformError)(err, {
416
+ spreadPathsToArguments: {},
417
+ explicitPathsToArguments: {},
418
+ singleArgumentUnchanged: false,
419
+ }, []);
420
+ sideEffects?.onError?.(err);
421
+ throw transformedError;
422
+ }
423
+ }
424
+ exports.pauseLoyaltyProgram = pauseLoyaltyProgram;
425
+ /**
426
+ * Retrieves information about the available loyalty program premium features.
427
+ * @public
428
+ * @permissionId LOYALTY.READ_PROGRAM
429
+ * @permissionScope Read Loyalty
430
+ * @permissionScopeId SCOPE.DC-LOYALTY.READ-LOYALTY
431
+ * @permissionScope Manage Loyalty
432
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
433
+ * @permissionScope Manage Restaurants - all permissions
434
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
435
+ * @applicableIdentity APP
436
+ * @applicableIdentity VISITOR
437
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgramPremiumFeatures
438
+ */
439
+ async function getLoyaltyProgramPremiumFeatures() {
440
+ // @ts-ignore
441
+ const { httpClient, sideEffects } = arguments[0];
442
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
443
+ const reqOpts = ambassadorWixLoyaltyV1Program.getLoyaltyProgramPremiumFeatures(payload);
444
+ sideEffects?.onSiteCall?.();
445
+ try {
446
+ const result = await httpClient.request(reqOpts);
447
+ sideEffects?.onSuccess?.(result);
448
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
449
+ }
450
+ catch (err) {
451
+ const transformedError = (0, transform_error_1.transformError)(err, {
452
+ spreadPathsToArguments: {},
453
+ explicitPathsToArguments: {},
454
+ singleArgumentUnchanged: false,
455
+ }, []);
456
+ sideEffects?.onError?.(err);
457
+ throw transformedError;
458
+ }
459
+ }
460
+ exports.getLoyaltyProgramPremiumFeatures = getLoyaltyProgramPremiumFeatures;
461
+ /**
462
+ * Updates the `pointsExpiration` status to `ENABLED`.
463
+ * @public
464
+ * @permissionId LOYALTY.MANAGE_PROGRAM
465
+ * @permissionScope Manage Loyalty
466
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
467
+ * @permissionScope Manage Restaurants - all permissions
468
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
469
+ * @applicableIdentity APP
470
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.EnablePointsExpiration
471
+ */
472
+ async function enablePointsExpiration() {
473
+ // @ts-ignore
474
+ const { httpClient, sideEffects } = arguments[0];
475
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
476
+ const reqOpts = ambassadorWixLoyaltyV1Program.enablePointsExpiration(payload);
477
+ sideEffects?.onSiteCall?.();
478
+ try {
479
+ const result = await httpClient.request(reqOpts);
480
+ sideEffects?.onSuccess?.(result);
481
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
482
+ {
483
+ transformFn: image_2.transformRESTImageToSDKImage,
484
+ paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],
485
+ },
486
+ ]));
487
+ }
488
+ catch (err) {
489
+ const transformedError = (0, transform_error_1.transformError)(err, {
490
+ spreadPathsToArguments: {},
491
+ explicitPathsToArguments: {},
492
+ singleArgumentUnchanged: false,
493
+ }, []);
494
+ sideEffects?.onError?.(err);
495
+ throw transformedError;
496
+ }
497
+ }
498
+ exports.enablePointsExpiration = enablePointsExpiration;
499
+ /**
500
+ * Updates the `pointsExpiration` status to `DISABLED`.
501
+ * @public
502
+ * @permissionId LOYALTY.MANAGE_PROGRAM
503
+ * @permissionScope Manage Loyalty
504
+ * @permissionScopeId SCOPE.DC-LOYALTY.MANAGE-LOYALTY
505
+ * @permissionScope Manage Restaurants - all permissions
506
+ * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
507
+ * @applicableIdentity APP
508
+ * @fqn com.wixpress.loyalty.program.LoyaltyPrograms.DisablePointsExpiration
509
+ */
510
+ async function disablePointsExpiration() {
511
+ // @ts-ignore
512
+ const { httpClient, sideEffects } = arguments[0];
513
+ const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({});
514
+ const reqOpts = ambassadorWixLoyaltyV1Program.disablePointsExpiration(payload);
515
+ sideEffects?.onSiteCall?.();
516
+ try {
517
+ const result = await httpClient.request(reqOpts);
518
+ sideEffects?.onSuccess?.(result);
519
+ return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(result.data, [
520
+ {
521
+ transformFn: image_2.transformRESTImageToSDKImage,
522
+ paths: [{ path: 'loyaltyProgram.pointDefinition.icon' }],
523
+ },
524
+ ]));
525
+ }
526
+ catch (err) {
527
+ const transformedError = (0, transform_error_1.transformError)(err, {
528
+ spreadPathsToArguments: {},
529
+ explicitPathsToArguments: {},
530
+ singleArgumentUnchanged: false,
531
+ }, []);
532
+ sideEffects?.onError?.(err);
533
+ throw transformedError;
534
+ }
535
+ }
536
+ exports.disablePointsExpiration = disablePointsExpiration;
537
+ //# sourceMappingURL=loyalty-v1-program-programs.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loyalty-v1-program-programs.universal.js","sourceRoot":"","sources":["../../../src/loyalty-v1-program-programs.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGi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alty-v1-program-programs.context.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/loyalty-v1-program-programs.context.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/loyalty-v1-program-programs.universal.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/loyalty-v1-program-programs.universal.js';
2
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './src/loyalty-v1-program-programs.meta.js';
@@ -0,0 +1,2 @@
1
+ export * from './src/loyalty-v1-program-programs.meta.js';
2
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,18 @@
1
+ import { getLoyaltyProgram as publicGetLoyaltyProgram, bulkGetLoyaltyProgram as publicBulkGetLoyaltyProgram, updateLoyaltyProgram as publicUpdateLoyaltyProgram, activateLoyaltyProgram as publicActivateLoyaltyProgram, pauseLoyaltyProgram as publicPauseLoyaltyProgram, getLoyaltyProgramPremiumFeatures as publicGetLoyaltyProgramPremiumFeatures, enablePointsExpiration as publicEnablePointsExpiration, disablePointsExpiration as publicDisablePointsExpiration } from './loyalty-v1-program-programs.public.js';
2
+ import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
+ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
+ import { onProgramUpdated as publicOnProgramUpdated } from './loyalty-v1-program-programs.public.js';
5
+ export declare const getLoyaltyProgram: MaybeContext<BuildRESTFunction<typeof publicGetLoyaltyProgram> & typeof publicGetLoyaltyProgram>;
6
+ export declare const bulkGetLoyaltyProgram: MaybeContext<BuildRESTFunction<typeof publicBulkGetLoyaltyProgram> & typeof publicBulkGetLoyaltyProgram>;
7
+ export declare const updateLoyaltyProgram: MaybeContext<BuildRESTFunction<typeof publicUpdateLoyaltyProgram> & typeof publicUpdateLoyaltyProgram>;
8
+ export declare const activateLoyaltyProgram: MaybeContext<BuildRESTFunction<typeof publicActivateLoyaltyProgram> & typeof publicActivateLoyaltyProgram>;
9
+ export declare const pauseLoyaltyProgram: MaybeContext<BuildRESTFunction<typeof publicPauseLoyaltyProgram> & typeof publicPauseLoyaltyProgram>;
10
+ export declare const getLoyaltyProgramPremiumFeatures: MaybeContext<BuildRESTFunction<typeof publicGetLoyaltyProgramPremiumFeatures> & typeof publicGetLoyaltyProgramPremiumFeatures>;
11
+ export declare const enablePointsExpiration: MaybeContext<BuildRESTFunction<typeof publicEnablePointsExpiration> & typeof publicEnablePointsExpiration>;
12
+ export declare const disablePointsExpiration: MaybeContext<BuildRESTFunction<typeof publicDisablePointsExpiration> & typeof publicDisablePointsExpiration>;
13
+ /**
14
+ * Triggered when a loyalty program is updated.
15
+ */
16
+ export declare const onProgramUpdated: ReturnType<typeof createEventModule<typeof publicOnProgramUpdated>>;
17
+ export { ProgramStatus, Status, Type, State, SiteCreatedContext, Namespace, DeleteStatus, FeaturePeriod, WebhookIdentityType, } from './loyalty-v1-program-programs.universal.js';
18
+ export { LoyaltyProgram, PointDefinition, FocalPoint, PointsExpiration, PremiumFeatures, SocialMediaSettings, SocialMediaChannel, GetLoyaltyProgramRequest, GetLoyaltyProgramResponse, BulkGetLoyaltyProgramRequest, BulkGetLoyaltyProgramResponse, ProgramInSite, UpdateLoyaltyProgramRequest, UpdateLoyaltyProgramResponse, PointsExpirationConfigurationChanged, PointsExpirationChanges, ActivateLoyaltyProgramRequest, ActivateLoyaltyProgramResponse, LoyaltyProgramActivated, PauseLoyaltyProgramRequest, PauseLoyaltyProgramResponse, GetLoyaltyProgramDescriptionRequest, GetLoyaltyProgramDescriptionResponse, UpdateLoyaltyProgramDescriptionRequest, UpdateLoyaltyProgramDescriptionResponse, LoyaltyProgramDescriptionUpdated, GetLoyaltyProgramPremiumFeaturesRequest, GetLoyaltyProgramPremiumFeaturesResponse, EnablePointsExpirationRequest, EnablePointsExpirationResponse, PointsExpirationEnabled, DisablePointsExpirationRequest, DisablePointsExpirationResponse, PointsExpirationDisabled, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Asset, SiteCreated, SiteTransferred, SiteDeleted, DeleteContext, SiteUndeleted, SitePublished, SiteUnpublished, SiteMarkedAsTemplate, SiteMarkedAsWixSite, ServiceProvisioned, ServiceRemoved, SiteRenamed, SiteHardDeleted, NamespaceChanged, StudioAssigned, StudioUnassigned, SiteUrlChanged, SitePurgedExternally, Empty, FeatureEvent, FeatureEventEventOneOf, FeatureEnabled, FeatureEnabledReasonOneOf, Feature, FeatureQuantityInfoOneOf, FeatureContext, BooleanFeature, QuotaFeature, QuotaInfo, TransferredFromAnotherAccountReason, ReassignedFromSiteReason, AssignedFromFloatingReason, NewFeatureReason, ContractSwitchedReason, ManualFeatureCreationReason, MigratedFromLegacyReason, FeatureDisabled, FeatureDisabledReasonOneOf, UnAssingedToFloatingReason, ReplacedByAnotherSubscriptionReason, ReassignedToAnotherSiteReason, FeatureUpdated, FeatureUpdatedPreviousQuantityInfoOneOf, FeatureUpdatedReasonOneOf, FeatureCancelled, FeatureCancelledReasonOneOf, TransferredToAnotherAccountReason, CancelRequestedReason, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, ProgramUpdatedEnvelope, } from './loyalty-v1-program-programs.universal.js';
@@ -0,0 +1,18 @@
1
+ import { getLoyaltyProgram as publicGetLoyaltyProgram, bulkGetLoyaltyProgram as publicBulkGetLoyaltyProgram, updateLoyaltyProgram as publicUpdateLoyaltyProgram, activateLoyaltyProgram as publicActivateLoyaltyProgram, pauseLoyaltyProgram as publicPauseLoyaltyProgram, getLoyaltyProgramPremiumFeatures as publicGetLoyaltyProgramPremiumFeatures, enablePointsExpiration as publicEnablePointsExpiration, disablePointsExpiration as publicDisablePointsExpiration, } from './loyalty-v1-program-programs.public.js';
2
+ import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
3
+ import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
4
+ import { onProgramUpdated as publicOnProgramUpdated } from './loyalty-v1-program-programs.public.js';
5
+ export const getLoyaltyProgram = /*#__PURE__*/ createRESTModule(publicGetLoyaltyProgram);
6
+ export const bulkGetLoyaltyProgram = /*#__PURE__*/ createRESTModule(publicBulkGetLoyaltyProgram);
7
+ export const updateLoyaltyProgram = /*#__PURE__*/ createRESTModule(publicUpdateLoyaltyProgram);
8
+ export const activateLoyaltyProgram = /*#__PURE__*/ createRESTModule(publicActivateLoyaltyProgram);
9
+ export const pauseLoyaltyProgram = /*#__PURE__*/ createRESTModule(publicPauseLoyaltyProgram);
10
+ export const getLoyaltyProgramPremiumFeatures = /*#__PURE__*/ createRESTModule(publicGetLoyaltyProgramPremiumFeatures);
11
+ export const enablePointsExpiration = /*#__PURE__*/ createRESTModule(publicEnablePointsExpiration);
12
+ export const disablePointsExpiration = /*#__PURE__*/ createRESTModule(publicDisablePointsExpiration);
13
+ /**
14
+ * Triggered when a loyalty program is updated.
15
+ */
16
+ export const onProgramUpdated = createEventModule(publicOnProgramUpdated);
17
+ export { ProgramStatus, Status, Type, State, SiteCreatedContext, Namespace, DeleteStatus, FeaturePeriod, WebhookIdentityType, } from './loyalty-v1-program-programs.universal.js';
18
+ //# sourceMappingURL=loyalty-v1-program-programs.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loyalty-v1-program-programs.context.js","sourceRoot":"","sources":["../../../src/loyalty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