@wix/auto_sdk_loyalty_programs 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.mts +101 -0
- package/build/index.d.ts +101 -0
- package/build/index.js +874 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +833 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +101 -0
- package/build/internal/index.d.ts +101 -0
- package/build/internal/index.js +874 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +833 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/{cjs/src/loyalty-v1-program-programs.types.d.ts → internal/loyalty-v1-program-programs.universal-CCZ90Kwf.d.mts} +175 -210
- package/build/internal/{cjs/src/loyalty-v1-program-programs.types.d.ts → loyalty-v1-program-programs.universal-CCZ90Kwf.d.ts} +175 -210
- package/build/internal/meta.d.mts +226 -0
- package/build/internal/meta.d.ts +226 -0
- package/build/internal/meta.js +557 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +523 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{internal/es/src/loyalty-v1-program-programs.types.d.ts → loyalty-v1-program-programs.universal-CCZ90Kwf.d.mts} +175 -210
- package/build/{es/src/loyalty-v1-program-programs.types.d.ts → loyalty-v1-program-programs.universal-CCZ90Kwf.d.ts} +175 -210
- package/build/meta.d.mts +226 -0
- package/build/meta.d.ts +226 -0
- package/build/meta.js +557 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +523 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/loyalty-v1-program-programs.context.d.ts +0 -18
- package/build/cjs/src/loyalty-v1-program-programs.context.js +0 -30
- package/build/cjs/src/loyalty-v1-program-programs.context.js.map +0 -1
- package/build/cjs/src/loyalty-v1-program-programs.http.d.ts +0 -49
- package/build/cjs/src/loyalty-v1-program-programs.http.js +0 -417
- package/build/cjs/src/loyalty-v1-program-programs.http.js.map +0 -1
- package/build/cjs/src/loyalty-v1-program-programs.meta.d.ts +0 -20
- package/build/cjs/src/loyalty-v1-program-programs.meta.js +0 -180
- package/build/cjs/src/loyalty-v1-program-programs.meta.js.map +0 -1
- package/build/cjs/src/loyalty-v1-program-programs.public.d.ts +0 -88
- package/build/cjs/src/loyalty-v1-program-programs.public.js +0 -83
- package/build/cjs/src/loyalty-v1-program-programs.public.js.map +0 -1
- package/build/cjs/src/loyalty-v1-program-programs.types.js +0 -172
- package/build/cjs/src/loyalty-v1-program-programs.types.js.map +0 -1
- package/build/cjs/src/loyalty-v1-program-programs.universal.d.ts +0 -1514
- package/build/cjs/src/loyalty-v1-program-programs.universal.js +0 -535
- package/build/cjs/src/loyalty-v1-program-programs.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/loyalty-v1-program-programs.context.d.ts +0 -18
- package/build/es/src/loyalty-v1-program-programs.context.js +0 -18
- package/build/es/src/loyalty-v1-program-programs.context.js.map +0 -1
- package/build/es/src/loyalty-v1-program-programs.http.d.ts +0 -49
- package/build/es/src/loyalty-v1-program-programs.http.js +0 -406
- package/build/es/src/loyalty-v1-program-programs.http.js.map +0 -1
- package/build/es/src/loyalty-v1-program-programs.meta.d.ts +0 -20
- package/build/es/src/loyalty-v1-program-programs.meta.js +0 -146
- package/build/es/src/loyalty-v1-program-programs.meta.js.map +0 -1
- package/build/es/src/loyalty-v1-program-programs.public.d.ts +0 -88
- package/build/es/src/loyalty-v1-program-programs.public.js +0 -63
- package/build/es/src/loyalty-v1-program-programs.public.js.map +0 -1
- package/build/es/src/loyalty-v1-program-programs.types.js +0 -169
- package/build/es/src/loyalty-v1-program-programs.types.js.map +0 -1
- package/build/es/src/loyalty-v1-program-programs.universal.d.ts +0 -1514
- package/build/es/src/loyalty-v1-program-programs.universal.js +0 -501
- package/build/es/src/loyalty-v1-program-programs.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-program-programs.context.d.ts +0 -18
- package/build/internal/cjs/src/loyalty-v1-program-programs.context.js +0 -30
- package/build/internal/cjs/src/loyalty-v1-program-programs.context.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-program-programs.http.d.ts +0 -49
- package/build/internal/cjs/src/loyalty-v1-program-programs.http.js +0 -417
- package/build/internal/cjs/src/loyalty-v1-program-programs.http.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-program-programs.meta.d.ts +0 -20
- package/build/internal/cjs/src/loyalty-v1-program-programs.meta.js +0 -180
- package/build/internal/cjs/src/loyalty-v1-program-programs.meta.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-program-programs.public.d.ts +0 -88
- package/build/internal/cjs/src/loyalty-v1-program-programs.public.js +0 -83
- package/build/internal/cjs/src/loyalty-v1-program-programs.public.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-program-programs.types.js +0 -172
- package/build/internal/cjs/src/loyalty-v1-program-programs.types.js.map +0 -1
- package/build/internal/cjs/src/loyalty-v1-program-programs.universal.d.ts +0 -1514
- package/build/internal/cjs/src/loyalty-v1-program-programs.universal.js +0 -535
- package/build/internal/cjs/src/loyalty-v1-program-programs.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-program-programs.context.d.ts +0 -18
- package/build/internal/es/src/loyalty-v1-program-programs.context.js +0 -18
- package/build/internal/es/src/loyalty-v1-program-programs.context.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-program-programs.http.d.ts +0 -49
- package/build/internal/es/src/loyalty-v1-program-programs.http.js +0 -406
- package/build/internal/es/src/loyalty-v1-program-programs.http.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-program-programs.meta.d.ts +0 -20
- package/build/internal/es/src/loyalty-v1-program-programs.meta.js +0 -146
- package/build/internal/es/src/loyalty-v1-program-programs.meta.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-program-programs.public.d.ts +0 -88
- package/build/internal/es/src/loyalty-v1-program-programs.public.js +0 -63
- package/build/internal/es/src/loyalty-v1-program-programs.public.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-program-programs.types.js +0 -169
- package/build/internal/es/src/loyalty-v1-program-programs.types.js.map +0 -1
- package/build/internal/es/src/loyalty-v1-program-programs.universal.d.ts +0 -1514
- package/build/internal/es/src/loyalty-v1-program-programs.universal.js +0 -501
- package/build/internal/es/src/loyalty-v1-program-programs.universal.js.map +0 -1
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookIdentityType = exports.FeaturePeriod = exports.DeleteStatus = exports.Namespace = exports.SiteCreatedContext = exports.State = exports.Type = exports.Status = exports.ProgramStatus = exports.onProgramUpdated = exports.disablePointsExpiration = exports.enablePointsExpiration = exports.getLoyaltyProgramPremiumFeatures = exports.pauseLoyaltyProgram = exports.activateLoyaltyProgram = exports.updateLoyaltyProgram = exports.bulkGetLoyaltyProgram = exports.getLoyaltyProgram = void 0;
|
|
4
|
-
const loyalty_v1_program_programs_public_js_1 = require("./loyalty-v1-program-programs.public.js");
|
|
5
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
6
|
-
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
7
|
-
const loyalty_v1_program_programs_public_js_2 = require("./loyalty-v1-program-programs.public.js");
|
|
8
|
-
exports.getLoyaltyProgram = (0, rest_modules_1.createRESTModule)(loyalty_v1_program_programs_public_js_1.getLoyaltyProgram);
|
|
9
|
-
exports.bulkGetLoyaltyProgram = (0, rest_modules_1.createRESTModule)(loyalty_v1_program_programs_public_js_1.bulkGetLoyaltyProgram);
|
|
10
|
-
exports.updateLoyaltyProgram = (0, rest_modules_1.createRESTModule)(loyalty_v1_program_programs_public_js_1.updateLoyaltyProgram);
|
|
11
|
-
exports.activateLoyaltyProgram = (0, rest_modules_1.createRESTModule)(loyalty_v1_program_programs_public_js_1.activateLoyaltyProgram);
|
|
12
|
-
exports.pauseLoyaltyProgram = (0, rest_modules_1.createRESTModule)(loyalty_v1_program_programs_public_js_1.pauseLoyaltyProgram);
|
|
13
|
-
exports.getLoyaltyProgramPremiumFeatures = (0, rest_modules_1.createRESTModule)(loyalty_v1_program_programs_public_js_1.getLoyaltyProgramPremiumFeatures);
|
|
14
|
-
exports.enablePointsExpiration = (0, rest_modules_1.createRESTModule)(loyalty_v1_program_programs_public_js_1.enablePointsExpiration);
|
|
15
|
-
exports.disablePointsExpiration = (0, rest_modules_1.createRESTModule)(loyalty_v1_program_programs_public_js_1.disablePointsExpiration);
|
|
16
|
-
/**
|
|
17
|
-
* Triggered when a loyalty program is updated.
|
|
18
|
-
*/
|
|
19
|
-
exports.onProgramUpdated = (0, event_definition_modules_1.createEventModule)(loyalty_v1_program_programs_public_js_2.onProgramUpdated);
|
|
20
|
-
var loyalty_v1_program_programs_universal_js_1 = require("./loyalty-v1-program-programs.universal.js");
|
|
21
|
-
Object.defineProperty(exports, "ProgramStatus", { enumerable: true, get: function () { return loyalty_v1_program_programs_universal_js_1.ProgramStatus; } });
|
|
22
|
-
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return loyalty_v1_program_programs_universal_js_1.Status; } });
|
|
23
|
-
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return loyalty_v1_program_programs_universal_js_1.Type; } });
|
|
24
|
-
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return loyalty_v1_program_programs_universal_js_1.State; } });
|
|
25
|
-
Object.defineProperty(exports, "SiteCreatedContext", { enumerable: true, get: function () { return loyalty_v1_program_programs_universal_js_1.SiteCreatedContext; } });
|
|
26
|
-
Object.defineProperty(exports, "Namespace", { enumerable: true, get: function () { return loyalty_v1_program_programs_universal_js_1.Namespace; } });
|
|
27
|
-
Object.defineProperty(exports, "DeleteStatus", { enumerable: true, get: function () { return loyalty_v1_program_programs_universal_js_1.DeleteStatus; } });
|
|
28
|
-
Object.defineProperty(exports, "FeaturePeriod", { enumerable: true, get: function () { return loyalty_v1_program_programs_universal_js_1.FeaturePeriod; } });
|
|
29
|
-
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return loyalty_v1_program_programs_universal_js_1.WebhookIdentityType; } });
|
|
30
|
-
//# sourceMappingURL=loyalty-v1-program-programs.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-v1-program-programs.context.js","sourceRoot":"","sources":["../../../../src/loyalty-v1-program-programs.context.ts"],"names":[],"mappings":";;;AAAA,mGASiD;AACjD,gEAAiE;AACjE,wFAA8E;AAE9E,mGAAqG;AAExF,QAAA,iBAAiB,GAGZ,IAAA,+BAAgB,EAAC,yDAAuB,CAAC,CAAC;AAC/C,QAAA,qBAAqB,GAGhB,IAAA,+BAAgB,EAAC,6DAA2B,CAAC,CAAC;AACnD,QAAA,oBAAoB,GAGf,IAAA,+BAAgB,EAAC,4DAA0B,CAAC,CAAC;AAClD,QAAA,sBAAsB,GAGjB,IAAA,+BAAgB,EAAC,8DAA4B,CAAC,CAAC;AACpD,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,2DAAyB,CAAC,CAAC;AACjD,QAAA,gCAAgC,GAG3B,IAAA,+BAAgB,EAAC,wEAAsC,CAAC,CAAC;AAC9D,QAAA,sBAAsB,GAGjB,IAAA,+BAAgB,EAAC,8DAA4B,CAAC,CAAC;AACpD,QAAA,uBAAuB,GAGlB,IAAA,+BAAgB,EAAC,+DAA6B,CAAC,CAAC;AAClE;;GAEG;AACU,QAAA,gBAAgB,GAEzB,IAAA,4CAAiB,EAAC,wDAAsB,CAAC,CAAC;AAE9C,uGAUoD;AATlD,yIAAA,aAAa,OAAA;AACb,kIAAA,MAAM,OAAA;AACN,gIAAA,IAAI,OAAA;AACJ,iIAAA,KAAK,OAAA;AACL,8IAAA,kBAAkB,OAAA;AAClB,qIAAA,SAAS,OAAA;AACT,wIAAA,YAAY,OAAA;AACZ,yIAAA,aAAa,OAAA;AACb,+IAAA,mBAAmB,OAAA"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieves the site's loyalty program.
|
|
4
|
-
*
|
|
5
|
-
* The `getLoyaltyProgram()` function returns a Promise that resolves to the site's loyalty program.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getLoyaltyProgram(payload: object): RequestOptionsFactory<any>;
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves loyalty programs for all metasites that the caller is a member of.
|
|
10
|
-
*
|
|
11
|
-
* Must be called with user identity.
|
|
12
|
-
*/
|
|
13
|
-
export declare function bulkGetLoyaltyProgram(payload: object): RequestOptionsFactory<any>;
|
|
14
|
-
/**
|
|
15
|
-
* Updates the site's loyalty program.
|
|
16
|
-
*
|
|
17
|
-
* The `updateLoyaltyProgram()` function returns a Promise that resolves when the loyalty program is updated.
|
|
18
|
-
*
|
|
19
|
-
* 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.
|
|
20
|
-
*
|
|
21
|
-
* >**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.
|
|
22
|
-
*/
|
|
23
|
-
export declare function updateLoyaltyProgram(payload: object): RequestOptionsFactory<any>;
|
|
24
|
-
/**
|
|
25
|
-
* Activates a loyalty program.
|
|
26
|
-
*
|
|
27
|
-
* The `activateLoyaltyProgram()` function returns a Promise that resolves when the status of the loyalty program is successfully changed to `"ACTIVE"`.
|
|
28
|
-
*
|
|
29
|
-
* 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"`.
|
|
30
|
-
*
|
|
31
|
-
* 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.
|
|
32
|
-
*
|
|
33
|
-
* To temporarily pause your loyalty program you must follow three steps:
|
|
34
|
-
* 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/).
|
|
35
|
-
* 1. Hide the loyalty page from your site.
|
|
36
|
-
* 1. Delete the My Rewards page from the Member pages.
|
|
37
|
-
* See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.
|
|
38
|
-
*
|
|
39
|
-
* >**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.
|
|
40
|
-
*/
|
|
41
|
-
export declare function activateLoyaltyProgram(payload: object): RequestOptionsFactory<any>;
|
|
42
|
-
/** Changes the program status to `PAUSED`. */
|
|
43
|
-
export declare function pauseLoyaltyProgram(payload: object): RequestOptionsFactory<any>;
|
|
44
|
-
/** Retrieves information about the available loyalty program premium features. */
|
|
45
|
-
export declare function getLoyaltyProgramPremiumFeatures(payload: object): RequestOptionsFactory<any>;
|
|
46
|
-
/** Updates the `pointsExpiration` status to `ENABLED`. */
|
|
47
|
-
export declare function enablePointsExpiration(payload: object): RequestOptionsFactory<any>;
|
|
48
|
-
/** Updates the `pointsExpiration` status to `DISABLED`. */
|
|
49
|
-
export declare function disablePointsExpiration(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1,417 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.disablePointsExpiration = exports.enablePointsExpiration = exports.getLoyaltyProgramPremiumFeatures = exports.pauseLoyaltyProgram = exports.activateLoyaltyProgram = exports.updateLoyaltyProgram = exports.bulkGetLoyaltyProgram = exports.getLoyaltyProgram = void 0;
|
|
4
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
-
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
6
|
-
const float_2 = require("@wix/sdk-runtime/transformations/float");
|
|
7
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
8
|
-
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
9
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
10
|
-
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
11
|
-
function resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl(opts) {
|
|
12
|
-
const domainToMappings = {
|
|
13
|
-
'manage._base_domain_': [
|
|
14
|
-
{
|
|
15
|
-
srcPath: '/_api/loyalty-programs',
|
|
16
|
-
destPath: '',
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
'api._api_base_domain_': [
|
|
20
|
-
{
|
|
21
|
-
srcPath: '/loyalty-programs',
|
|
22
|
-
destPath: '',
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
_: [
|
|
26
|
-
{
|
|
27
|
-
srcPath: '/_api/loyalty-programs',
|
|
28
|
-
destPath: '',
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
'editor.wixapps.net': [
|
|
32
|
-
{
|
|
33
|
-
srcPath: '/_api/loyalty-programs',
|
|
34
|
-
destPath: '',
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
'editor._base_domain_': [
|
|
38
|
-
{
|
|
39
|
-
srcPath: '/_api/loyalty-programs',
|
|
40
|
-
destPath: '',
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
'blocks._base_domain_': [
|
|
44
|
-
{
|
|
45
|
-
srcPath: '/_api/loyalty-programs',
|
|
46
|
-
destPath: '',
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
'create.editorx': [
|
|
50
|
-
{
|
|
51
|
-
srcPath: '/_api/loyalty-programs',
|
|
52
|
-
destPath: '',
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
'www._base_domain_': [
|
|
56
|
-
{
|
|
57
|
-
srcPath: '/_api/loyalty-programs',
|
|
58
|
-
destPath: '',
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
'*.dev.wix-code.com': [
|
|
62
|
-
{
|
|
63
|
-
srcPath: '/_api/loyalty-programs',
|
|
64
|
-
destPath: '',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
'*.pub.wix-code.com': [
|
|
68
|
-
{
|
|
69
|
-
srcPath: '/_api/loyalty-programs',
|
|
70
|
-
destPath: '',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
'www.wixapis.com': [
|
|
74
|
-
{
|
|
75
|
-
srcPath: '/loyalty-programs',
|
|
76
|
-
destPath: '',
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
};
|
|
80
|
-
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
81
|
-
}
|
|
82
|
-
const PACKAGE_NAME = '@wix/auto_sdk_loyalty_programs';
|
|
83
|
-
/**
|
|
84
|
-
* Retrieves the site's loyalty program.
|
|
85
|
-
*
|
|
86
|
-
* The `getLoyaltyProgram()` function returns a Promise that resolves to the site's loyalty program.
|
|
87
|
-
*/
|
|
88
|
-
function getLoyaltyProgram(payload) {
|
|
89
|
-
function __getLoyaltyProgram({ host }) {
|
|
90
|
-
const metadata = {
|
|
91
|
-
entityFqdn: 'wix.loyalty.v1.program',
|
|
92
|
-
method: 'GET',
|
|
93
|
-
methodFqn: 'com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgram',
|
|
94
|
-
packageName: PACKAGE_NAME,
|
|
95
|
-
url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({
|
|
96
|
-
protoPath: '/v1/program',
|
|
97
|
-
data: payload,
|
|
98
|
-
host,
|
|
99
|
-
}),
|
|
100
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
101
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
102
|
-
{
|
|
103
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
104
|
-
paths: [
|
|
105
|
-
{ path: 'loyaltyProgram.createdDate' },
|
|
106
|
-
{ path: 'loyaltyProgram.updatedDate' },
|
|
107
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
112
|
-
paths: [
|
|
113
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },
|
|
114
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },
|
|
115
|
-
],
|
|
116
|
-
},
|
|
117
|
-
]),
|
|
118
|
-
};
|
|
119
|
-
return metadata;
|
|
120
|
-
}
|
|
121
|
-
return __getLoyaltyProgram;
|
|
122
|
-
}
|
|
123
|
-
exports.getLoyaltyProgram = getLoyaltyProgram;
|
|
124
|
-
/**
|
|
125
|
-
* Retrieves loyalty programs for all metasites that the caller is a member of.
|
|
126
|
-
*
|
|
127
|
-
* Must be called with user identity.
|
|
128
|
-
*/
|
|
129
|
-
function bulkGetLoyaltyProgram(payload) {
|
|
130
|
-
function __bulkGetLoyaltyProgram({ host }) {
|
|
131
|
-
const metadata = {
|
|
132
|
-
entityFqdn: 'wix.loyalty.v1.program',
|
|
133
|
-
method: 'GET',
|
|
134
|
-
methodFqn: 'com.wixpress.loyalty.program.LoyaltyPrograms.BulkGetLoyaltyProgram',
|
|
135
|
-
packageName: PACKAGE_NAME,
|
|
136
|
-
url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({
|
|
137
|
-
protoPath: '/v1/bulk/programs',
|
|
138
|
-
data: payload,
|
|
139
|
-
host,
|
|
140
|
-
}),
|
|
141
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
142
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
143
|
-
{
|
|
144
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
145
|
-
paths: [
|
|
146
|
-
{ path: 'programInSites.loyaltyProgram.createdDate' },
|
|
147
|
-
{ path: 'programInSites.loyaltyProgram.updatedDate' },
|
|
148
|
-
{
|
|
149
|
-
path: 'programInSites.loyaltyProgram.pointDefinition.icon.urlExpirationDate',
|
|
150
|
-
},
|
|
151
|
-
],
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
155
|
-
paths: [
|
|
156
|
-
{
|
|
157
|
-
path: 'programInSites.loyaltyProgram.pointDefinition.icon.focalPoint.x',
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
path: 'programInSites.loyaltyProgram.pointDefinition.icon.focalPoint.y',
|
|
161
|
-
},
|
|
162
|
-
],
|
|
163
|
-
},
|
|
164
|
-
]),
|
|
165
|
-
};
|
|
166
|
-
return metadata;
|
|
167
|
-
}
|
|
168
|
-
return __bulkGetLoyaltyProgram;
|
|
169
|
-
}
|
|
170
|
-
exports.bulkGetLoyaltyProgram = bulkGetLoyaltyProgram;
|
|
171
|
-
/**
|
|
172
|
-
* Updates the site's loyalty program.
|
|
173
|
-
*
|
|
174
|
-
* The `updateLoyaltyProgram()` function returns a Promise that resolves when the loyalty program is updated.
|
|
175
|
-
*
|
|
176
|
-
* 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.
|
|
177
|
-
*
|
|
178
|
-
* >**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.
|
|
179
|
-
*/
|
|
180
|
-
function updateLoyaltyProgram(payload) {
|
|
181
|
-
function __updateLoyaltyProgram({ host }) {
|
|
182
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
183
|
-
{
|
|
184
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
185
|
-
paths: [
|
|
186
|
-
{ path: 'loyaltyProgram.createdDate' },
|
|
187
|
-
{ path: 'loyaltyProgram.updatedDate' },
|
|
188
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },
|
|
189
|
-
],
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
193
|
-
paths: [
|
|
194
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },
|
|
195
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },
|
|
196
|
-
],
|
|
197
|
-
},
|
|
198
|
-
]);
|
|
199
|
-
const metadata = {
|
|
200
|
-
entityFqdn: 'wix.loyalty.v1.program',
|
|
201
|
-
method: 'PATCH',
|
|
202
|
-
methodFqn: 'com.wixpress.loyalty.program.LoyaltyPrograms.UpdateLoyaltyProgram',
|
|
203
|
-
packageName: PACKAGE_NAME,
|
|
204
|
-
url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({
|
|
205
|
-
protoPath: '/v1/program',
|
|
206
|
-
data: serializedData,
|
|
207
|
-
host,
|
|
208
|
-
}),
|
|
209
|
-
data: serializedData,
|
|
210
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
211
|
-
{
|
|
212
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
213
|
-
paths: [
|
|
214
|
-
{ path: 'loyaltyProgram.createdDate' },
|
|
215
|
-
{ path: 'loyaltyProgram.updatedDate' },
|
|
216
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },
|
|
217
|
-
],
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
221
|
-
paths: [
|
|
222
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },
|
|
223
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },
|
|
224
|
-
],
|
|
225
|
-
},
|
|
226
|
-
]),
|
|
227
|
-
};
|
|
228
|
-
return metadata;
|
|
229
|
-
}
|
|
230
|
-
return __updateLoyaltyProgram;
|
|
231
|
-
}
|
|
232
|
-
exports.updateLoyaltyProgram = updateLoyaltyProgram;
|
|
233
|
-
/**
|
|
234
|
-
* Activates a loyalty program.
|
|
235
|
-
*
|
|
236
|
-
* The `activateLoyaltyProgram()` function returns a Promise that resolves when the status of the loyalty program is successfully changed to `"ACTIVE"`.
|
|
237
|
-
*
|
|
238
|
-
* 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"`.
|
|
239
|
-
*
|
|
240
|
-
* 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.
|
|
241
|
-
*
|
|
242
|
-
* To temporarily pause your loyalty program you must follow three steps:
|
|
243
|
-
* 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/).
|
|
244
|
-
* 1. Hide the loyalty page from your site.
|
|
245
|
-
* 1. Delete the My Rewards page from the Member pages.
|
|
246
|
-
* See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.
|
|
247
|
-
*
|
|
248
|
-
* >**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.
|
|
249
|
-
*/
|
|
250
|
-
function activateLoyaltyProgram(payload) {
|
|
251
|
-
function __activateLoyaltyProgram({ host }) {
|
|
252
|
-
const metadata = {
|
|
253
|
-
entityFqdn: 'wix.loyalty.v1.program',
|
|
254
|
-
method: 'POST',
|
|
255
|
-
methodFqn: 'com.wixpress.loyalty.program.LoyaltyPrograms.ActivateLoyaltyProgram',
|
|
256
|
-
packageName: PACKAGE_NAME,
|
|
257
|
-
url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({
|
|
258
|
-
protoPath: '/v1/program/activate',
|
|
259
|
-
data: payload,
|
|
260
|
-
host,
|
|
261
|
-
}),
|
|
262
|
-
data: payload,
|
|
263
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
264
|
-
{
|
|
265
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
266
|
-
paths: [
|
|
267
|
-
{ path: 'loyaltyProgram.createdDate' },
|
|
268
|
-
{ path: 'loyaltyProgram.updatedDate' },
|
|
269
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },
|
|
270
|
-
],
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
274
|
-
paths: [
|
|
275
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },
|
|
276
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },
|
|
277
|
-
],
|
|
278
|
-
},
|
|
279
|
-
]),
|
|
280
|
-
};
|
|
281
|
-
return metadata;
|
|
282
|
-
}
|
|
283
|
-
return __activateLoyaltyProgram;
|
|
284
|
-
}
|
|
285
|
-
exports.activateLoyaltyProgram = activateLoyaltyProgram;
|
|
286
|
-
/** Changes the program status to `PAUSED`. */
|
|
287
|
-
function pauseLoyaltyProgram(payload) {
|
|
288
|
-
function __pauseLoyaltyProgram({ host }) {
|
|
289
|
-
const metadata = {
|
|
290
|
-
entityFqdn: 'wix.loyalty.v1.program',
|
|
291
|
-
method: 'POST',
|
|
292
|
-
methodFqn: 'com.wixpress.loyalty.program.LoyaltyPrograms.PauseLoyaltyProgram',
|
|
293
|
-
packageName: PACKAGE_NAME,
|
|
294
|
-
url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({
|
|
295
|
-
protoPath: '/v1/program/pause',
|
|
296
|
-
data: payload,
|
|
297
|
-
host,
|
|
298
|
-
}),
|
|
299
|
-
data: payload,
|
|
300
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
301
|
-
{
|
|
302
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
303
|
-
paths: [
|
|
304
|
-
{ path: 'loyaltyProgram.createdDate' },
|
|
305
|
-
{ path: 'loyaltyProgram.updatedDate' },
|
|
306
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },
|
|
307
|
-
],
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
311
|
-
paths: [
|
|
312
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },
|
|
313
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },
|
|
314
|
-
],
|
|
315
|
-
},
|
|
316
|
-
]),
|
|
317
|
-
};
|
|
318
|
-
return metadata;
|
|
319
|
-
}
|
|
320
|
-
return __pauseLoyaltyProgram;
|
|
321
|
-
}
|
|
322
|
-
exports.pauseLoyaltyProgram = pauseLoyaltyProgram;
|
|
323
|
-
/** Retrieves information about the available loyalty program premium features. */
|
|
324
|
-
function getLoyaltyProgramPremiumFeatures(payload) {
|
|
325
|
-
function __getLoyaltyProgramPremiumFeatures({ host }) {
|
|
326
|
-
const metadata = {
|
|
327
|
-
entityFqdn: 'wix.loyalty.v1.program',
|
|
328
|
-
method: 'GET',
|
|
329
|
-
methodFqn: 'com.wixpress.loyalty.program.LoyaltyPrograms.GetLoyaltyProgramPremiumFeatures',
|
|
330
|
-
packageName: PACKAGE_NAME,
|
|
331
|
-
url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({
|
|
332
|
-
protoPath: '/v1/program/premium-features',
|
|
333
|
-
data: payload,
|
|
334
|
-
host,
|
|
335
|
-
}),
|
|
336
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
337
|
-
};
|
|
338
|
-
return metadata;
|
|
339
|
-
}
|
|
340
|
-
return __getLoyaltyProgramPremiumFeatures;
|
|
341
|
-
}
|
|
342
|
-
exports.getLoyaltyProgramPremiumFeatures = getLoyaltyProgramPremiumFeatures;
|
|
343
|
-
/** Updates the `pointsExpiration` status to `ENABLED`. */
|
|
344
|
-
function enablePointsExpiration(payload) {
|
|
345
|
-
function __enablePointsExpiration({ host }) {
|
|
346
|
-
const metadata = {
|
|
347
|
-
entityFqdn: 'wix.loyalty.v1.program',
|
|
348
|
-
method: 'POST',
|
|
349
|
-
methodFqn: 'com.wixpress.loyalty.program.LoyaltyPrograms.EnablePointsExpiration',
|
|
350
|
-
packageName: PACKAGE_NAME,
|
|
351
|
-
url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({
|
|
352
|
-
protoPath: '/v1/program/points-expiration/enable',
|
|
353
|
-
data: payload,
|
|
354
|
-
host,
|
|
355
|
-
}),
|
|
356
|
-
data: payload,
|
|
357
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
358
|
-
{
|
|
359
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
360
|
-
paths: [
|
|
361
|
-
{ path: 'loyaltyProgram.createdDate' },
|
|
362
|
-
{ path: 'loyaltyProgram.updatedDate' },
|
|
363
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },
|
|
364
|
-
],
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
368
|
-
paths: [
|
|
369
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },
|
|
370
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },
|
|
371
|
-
],
|
|
372
|
-
},
|
|
373
|
-
]),
|
|
374
|
-
};
|
|
375
|
-
return metadata;
|
|
376
|
-
}
|
|
377
|
-
return __enablePointsExpiration;
|
|
378
|
-
}
|
|
379
|
-
exports.enablePointsExpiration = enablePointsExpiration;
|
|
380
|
-
/** Updates the `pointsExpiration` status to `DISABLED`. */
|
|
381
|
-
function disablePointsExpiration(payload) {
|
|
382
|
-
function __disablePointsExpiration({ host }) {
|
|
383
|
-
const metadata = {
|
|
384
|
-
entityFqdn: 'wix.loyalty.v1.program',
|
|
385
|
-
method: 'POST',
|
|
386
|
-
methodFqn: 'com.wixpress.loyalty.program.LoyaltyPrograms.DisablePointsExpiration',
|
|
387
|
-
packageName: PACKAGE_NAME,
|
|
388
|
-
url: resolveComWixpressLoyaltyProgramLoyaltyProgramsUrl({
|
|
389
|
-
protoPath: '/v1/program/points-expiration/disable',
|
|
390
|
-
data: payload,
|
|
391
|
-
host,
|
|
392
|
-
}),
|
|
393
|
-
data: payload,
|
|
394
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
395
|
-
{
|
|
396
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
397
|
-
paths: [
|
|
398
|
-
{ path: 'loyaltyProgram.createdDate' },
|
|
399
|
-
{ path: 'loyaltyProgram.updatedDate' },
|
|
400
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.urlExpirationDate' },
|
|
401
|
-
],
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
405
|
-
paths: [
|
|
406
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.x' },
|
|
407
|
-
{ path: 'loyaltyProgram.pointDefinition.icon.focalPoint.y' },
|
|
408
|
-
],
|
|
409
|
-
},
|
|
410
|
-
]),
|
|
411
|
-
};
|
|
412
|
-
return metadata;
|
|
413
|
-
}
|
|
414
|
-
return __disablePointsExpiration;
|
|
415
|
-
}
|
|
416
|
-
exports.disablePointsExpiration = disablePointsExpiration;
|
|
417
|
-
//# sourceMappingURL=loyalty-v1-program-programs.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loyalty-v1-program-programs.http.js","sourceRoot":"","sources":["../../../../src/loyalty-v1-program-programs.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,kEAAsF;AACtF,kEAAsF;AACtF,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AACl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2D;AAC3D,SAAgB,uBAAuB,CACrC,OAAe;IAEf,SAAS,yBAAyB,CAAC,EAAE,IAAI,EAAO;QAC9C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,wBAAwB;YACpC,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,sEAAsE;YACxE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,kDAAkD,CAAC;gBACtD,SAAS,EAAE,uCAAuC;gBAClD,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,4BAA4B,EAAE;wBACtC,EAAE,IAAI,EAAE,4BAA4B,EAAE;wBACtC,EAAE,IAAI,EAAE,uDAAuD,EAAE;qBAClE;iBACF;gBACD;oBACE,WAAW,EAAE,oCAA4B;oBACzC,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,kDAAkD,EAAE;wBAC5D,EAAE,IAAI,EAAE,kDAAkD,EAAE;qBAC7D;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,yBAAyB,CAAC;AACnC,CAAC;AAxCD,0DAwCC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixLoyaltyV1ProgramTypes from './loyalty-v1-program-programs.types.js';
|
|
2
|
-
import * as ambassadorWixLoyaltyV1ProgramUniversalTypes from './loyalty-v1-program-programs.universal.js';
|
|
3
|
-
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function getLoyaltyProgram(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixLoyaltyV1ProgramUniversalTypes.GetLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramTypes.GetLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramUniversalTypes.GetLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramUniversalTypes.GetLoyaltyProgramResponseNonNullableFields, ambassadorWixLoyaltyV1ProgramTypes.GetLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramTypes.GetLoyaltyProgramResponseNonNullableFields>;
|
|
14
|
-
export declare function bulkGetLoyaltyProgram(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixLoyaltyV1ProgramUniversalTypes.BulkGetLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramTypes.BulkGetLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramUniversalTypes.BulkGetLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramUniversalTypes.BulkGetLoyaltyProgramResponseNonNullableFields, ambassadorWixLoyaltyV1ProgramTypes.BulkGetLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramTypes.BulkGetLoyaltyProgramResponseNonNullableFields>;
|
|
15
|
-
export declare function updateLoyaltyProgram(): __PublicMethodMetaInfo<'PATCH', {}, ambassadorWixLoyaltyV1ProgramUniversalTypes.UpdateLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramTypes.UpdateLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramUniversalTypes.UpdateLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramUniversalTypes.UpdateLoyaltyProgramResponseNonNullableFields, ambassadorWixLoyaltyV1ProgramTypes.UpdateLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramTypes.UpdateLoyaltyProgramResponseNonNullableFields>;
|
|
16
|
-
export declare function activateLoyaltyProgram(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixLoyaltyV1ProgramUniversalTypes.ActivateLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramTypes.ActivateLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramUniversalTypes.ActivateLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramUniversalTypes.ActivateLoyaltyProgramResponseNonNullableFields, ambassadorWixLoyaltyV1ProgramTypes.ActivateLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramTypes.ActivateLoyaltyProgramResponseNonNullableFields>;
|
|
17
|
-
export declare function pauseLoyaltyProgram(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixLoyaltyV1ProgramUniversalTypes.PauseLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramTypes.PauseLoyaltyProgramRequest, ambassadorWixLoyaltyV1ProgramUniversalTypes.PauseLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramUniversalTypes.PauseLoyaltyProgramResponseNonNullableFields, ambassadorWixLoyaltyV1ProgramTypes.PauseLoyaltyProgramResponse & ambassadorWixLoyaltyV1ProgramTypes.PauseLoyaltyProgramResponseNonNullableFields>;
|
|
18
|
-
export declare function getLoyaltyProgramPremiumFeatures(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixLoyaltyV1ProgramUniversalTypes.GetLoyaltyProgramPremiumFeaturesRequest, ambassadorWixLoyaltyV1ProgramTypes.GetLoyaltyProgramPremiumFeaturesRequest, ambassadorWixLoyaltyV1ProgramUniversalTypes.GetLoyaltyProgramPremiumFeaturesResponse & ambassadorWixLoyaltyV1ProgramUniversalTypes.GetLoyaltyProgramPremiumFeaturesResponseNonNullableFields, ambassadorWixLoyaltyV1ProgramTypes.GetLoyaltyProgramPremiumFeaturesResponse & ambassadorWixLoyaltyV1ProgramTypes.GetLoyaltyProgramPremiumFeaturesResponseNonNullableFields>;
|
|
19
|
-
export declare function enablePointsExpiration(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixLoyaltyV1ProgramUniversalTypes.EnablePointsExpirationRequest, ambassadorWixLoyaltyV1ProgramTypes.EnablePointsExpirationRequest, ambassadorWixLoyaltyV1ProgramUniversalTypes.EnablePointsExpirationResponse & ambassadorWixLoyaltyV1ProgramUniversalTypes.EnablePointsExpirationResponseNonNullableFields, ambassadorWixLoyaltyV1ProgramTypes.EnablePointsExpirationResponse & ambassadorWixLoyaltyV1ProgramTypes.EnablePointsExpirationResponseNonNullableFields>;
|
|
20
|
-
export declare function disablePointsExpiration(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixLoyaltyV1ProgramUniversalTypes.DisablePointsExpirationRequest, ambassadorWixLoyaltyV1ProgramTypes.DisablePointsExpirationRequest, ambassadorWixLoyaltyV1ProgramUniversalTypes.DisablePointsExpirationResponse & ambassadorWixLoyaltyV1ProgramUniversalTypes.DisablePointsExpirationResponseNonNullableFields, ambassadorWixLoyaltyV1ProgramTypes.DisablePointsExpirationResponse & ambassadorWixLoyaltyV1ProgramTypes.DisablePointsExpirationResponseNonNullableFields>;
|