@wix/auto_sdk_loyalty_programs 1.0.25 → 1.0.27
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/cjs/index.d.ts +14 -23
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +28 -33
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +13 -9
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +14 -23
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +28 -33
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +13 -9
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -23
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +28 -33
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +13 -9
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +14 -23
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +28 -33
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +13 -9
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -6,9 +6,7 @@ type ProgramNonNullablePaths = `status` | `pointsExpiration.status` | `pointsExp
|
|
|
6
6
|
declare function getLoyaltyProgram$1(httpClient: HttpClient): GetLoyaltyProgramSignature;
|
|
7
7
|
interface GetLoyaltyProgramSignature {
|
|
8
8
|
/**
|
|
9
|
-
* Retrieves the
|
|
10
|
-
*
|
|
11
|
-
* The `getLoyaltyProgram()` function returns a Promise that resolves to the site's loyalty program.
|
|
9
|
+
* Retrieves the loyalty program.
|
|
12
10
|
*/
|
|
13
11
|
(): Promise<NonNullablePaths<GetLoyaltyProgramResponse, {
|
|
14
12
|
[P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
|
|
@@ -28,13 +26,10 @@ interface BulkGetLoyaltyProgramSignature {
|
|
|
28
26
|
declare function updateLoyaltyProgram$1(httpClient: HttpClient): UpdateLoyaltyProgramSignature;
|
|
29
27
|
interface UpdateLoyaltyProgramSignature {
|
|
30
28
|
/**
|
|
31
|
-
* Updates
|
|
32
|
-
*
|
|
33
|
-
* The `updateLoyaltyProgram()` function returns a Promise that resolves when the loyalty program is updated.
|
|
29
|
+
* Updates a site's loyalty program.
|
|
34
30
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* >**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.
|
|
31
|
+
* This method updates the name of the loyalty program and the details of the collectible points unit.
|
|
32
|
+
* To activate the loyalty program, call Activate Loyalty Program.
|
|
38
33
|
* @param - Loyalty program fields to update.
|
|
39
34
|
*/
|
|
40
35
|
(loyaltyProgram: LoyaltyProgram): Promise<NonNullablePaths<UpdateLoyaltyProgramResponse, {
|
|
@@ -46,19 +41,13 @@ interface ActivateLoyaltyProgramSignature {
|
|
|
46
41
|
/**
|
|
47
42
|
* Activates a loyalty program.
|
|
48
43
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
44
|
+
* Initially, when a loyalty program is installed, the status is set to `"DRAFT"`.
|
|
45
|
+
* You can change the program's status to `"ACTIVE"` with this method or through the [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/).
|
|
46
|
+
* A site's customers can only earn or redeem points while the program is `"ACTIVE"`.
|
|
52
47
|
*
|
|
53
|
-
* This
|
|
48
|
+
* This method only updates the status of a loyalty program. To make other updates to the program, call Update Loyalty Program.
|
|
54
49
|
*
|
|
55
|
-
* To temporarily pause your loyalty program
|
|
56
|
-
* 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/).
|
|
57
|
-
* 1. Hide the loyalty page from your site.
|
|
58
|
-
* 1. Delete the My Rewards page from the Member pages.
|
|
59
|
-
* See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.
|
|
60
|
-
*
|
|
61
|
-
* >**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.
|
|
50
|
+
* To temporarily pause your loyalty program, call Pause Loyalty Program and see [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.
|
|
62
51
|
*/
|
|
63
52
|
(): Promise<NonNullablePaths<ActivateLoyaltyProgramResponse, {
|
|
64
53
|
[P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
|
|
@@ -67,7 +56,9 @@ interface ActivateLoyaltyProgramSignature {
|
|
|
67
56
|
declare function pauseLoyaltyProgram$1(httpClient: HttpClient): PauseLoyaltyProgramSignature;
|
|
68
57
|
interface PauseLoyaltyProgramSignature {
|
|
69
58
|
/**
|
|
70
|
-
* Changes the program status to `PAUSED`.
|
|
59
|
+
* Changes the program status to `"PAUSED"`.
|
|
60
|
+
*
|
|
61
|
+
* See [Pausing Your Loyalty Program](https://support.wix.com/en/article/wix-loyalty-program-pausing-your-loyalty-program) for more information.
|
|
71
62
|
*/
|
|
72
63
|
(): Promise<NonNullablePaths<PauseLoyaltyProgramResponse, {
|
|
73
64
|
[P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
|
|
@@ -83,7 +74,7 @@ interface GetLoyaltyProgramPremiumFeaturesSignature {
|
|
|
83
74
|
declare function enablePointsExpiration$1(httpClient: HttpClient): EnablePointsExpirationSignature;
|
|
84
75
|
interface EnablePointsExpirationSignature {
|
|
85
76
|
/**
|
|
86
|
-
* Updates the `pointsExpiration` status to `ENABLED`.
|
|
77
|
+
* Updates the `pointsExpiration` status to `"ENABLED"`.
|
|
87
78
|
*/
|
|
88
79
|
(): Promise<NonNullablePaths<EnablePointsExpirationResponse, {
|
|
89
80
|
[P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
|
|
@@ -92,7 +83,7 @@ interface EnablePointsExpirationSignature {
|
|
|
92
83
|
declare function disablePointsExpiration$1(httpClient: HttpClient): DisablePointsExpirationSignature;
|
|
93
84
|
interface DisablePointsExpirationSignature {
|
|
94
85
|
/**
|
|
95
|
-
* Updates the `pointsExpiration` status to `DISABLED`.
|
|
86
|
+
* Updates the `pointsExpiration` status to `"DISABLED"`.
|
|
96
87
|
*/
|
|
97
88
|
(): Promise<NonNullablePaths<DisablePointsExpirationResponse, {
|
|
98
89
|
[P in ProgramNonNullablePaths]: `loyaltyProgram.${P}`;
|