@wix/auto_sdk_benefit-programs_programs 1.0.8 → 1.0.10
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/src/benefit-programs-v1-program-programs.http.d.ts +4 -8
- package/build/cjs/src/benefit-programs-v1-program-programs.http.js +4 -8
- package/build/cjs/src/benefit-programs-v1-program-programs.http.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-program-programs.public.d.ts +4 -6
- package/build/cjs/src/benefit-programs-v1-program-programs.public.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-program-programs.types.d.ts +13 -13
- package/build/cjs/src/benefit-programs-v1-program-programs.types.js +4 -4
- package/build/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +20 -22
- package/build/cjs/src/benefit-programs-v1-program-programs.universal.js +8 -10
- package/build/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-programs.http.d.ts +4 -8
- package/build/es/src/benefit-programs-v1-program-programs.http.js +4 -8
- package/build/es/src/benefit-programs-v1-program-programs.http.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-programs.public.d.ts +4 -6
- package/build/es/src/benefit-programs-v1-program-programs.public.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-programs.types.d.ts +13 -13
- package/build/es/src/benefit-programs-v1-program-programs.types.js +4 -4
- package/build/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-programs.universal.d.ts +20 -22
- package/build/es/src/benefit-programs-v1-program-programs.universal.js +8 -10
- package/build/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.d.ts +4 -8
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.js +4 -8
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.public.d.ts +4 -6
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.public.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.d.ts +13 -13
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js +4 -4
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +20 -22
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js +8 -10
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.http.d.ts +4 -8
- package/build/internal/es/src/benefit-programs-v1-program-programs.http.js +4 -8
- package/build/internal/es/src/benefit-programs-v1-program-programs.http.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.public.d.ts +4 -6
- package/build/internal/es/src/benefit-programs-v1-program-programs.public.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.types.d.ts +13 -13
- package/build/internal/es/src/benefit-programs-v1-program-programs.types.js +4 -4
- package/build/internal/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-programs.universal.d.ts +20 -22
- package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js +8 -10
- package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
- package/package.json +3 -3
|
@@ -3,14 +3,14 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
3
3
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
4
4
|
*
|
|
5
5
|
* You can provision a program from a program definition or a pool definition:
|
|
6
|
-
* - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
|
|
7
|
-
* - **Pool definition**: The program has 1 pool that is created from the pool definition.
|
|
6
|
+
* - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
|
|
7
|
+
* - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
|
|
8
8
|
*/
|
|
9
9
|
export declare function provisionProgram(payload: object): RequestOptionsFactory<any>;
|
|
10
10
|
/**
|
|
11
11
|
* Renews the specified program.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
|
|
14
14
|
*/
|
|
15
15
|
export declare function renewProgram(payload: object): RequestOptionsFactory<any>;
|
|
16
16
|
/** Pauses the specified program. Benefits in the program's pools can't be redeemed until the program is resumed. */
|
|
@@ -21,11 +21,7 @@ export declare function pauseProgram(payload: object): RequestOptionsFactory<any
|
|
|
21
21
|
* Call this method for paused programs.
|
|
22
22
|
*/
|
|
23
23
|
export declare function resumeProgram(payload: object): RequestOptionsFactory<any>;
|
|
24
|
-
/**
|
|
25
|
-
* Ends the specified program.
|
|
26
|
-
*
|
|
27
|
-
* Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
28
|
-
*/
|
|
24
|
+
/** Ends the specified program. */
|
|
29
25
|
export declare function endProgram(payload: object): RequestOptionsFactory<any>;
|
|
30
26
|
/**
|
|
31
27
|
* Updates a program.
|
|
@@ -101,8 +101,8 @@ const PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_programs';
|
|
|
101
101
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
102
102
|
*
|
|
103
103
|
* You can provision a program from a program definition or a pool definition:
|
|
104
|
-
* - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
|
|
105
|
-
* - **Pool definition**: The program has 1 pool that is created from the pool definition.
|
|
104
|
+
* - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
|
|
105
|
+
* - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
|
|
106
106
|
*/
|
|
107
107
|
function provisionProgram(payload) {
|
|
108
108
|
function __provisionProgram({ host }) {
|
|
@@ -135,7 +135,7 @@ exports.provisionProgram = provisionProgram;
|
|
|
135
135
|
/**
|
|
136
136
|
* Renews the specified program.
|
|
137
137
|
*
|
|
138
|
-
*
|
|
138
|
+
* The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
|
|
139
139
|
*/
|
|
140
140
|
function renewProgram(payload) {
|
|
141
141
|
function __renewProgram({ host }) {
|
|
@@ -200,11 +200,7 @@ function resumeProgram(payload) {
|
|
|
200
200
|
return __resumeProgram;
|
|
201
201
|
}
|
|
202
202
|
exports.resumeProgram = resumeProgram;
|
|
203
|
-
/**
|
|
204
|
-
* Ends the specified program.
|
|
205
|
-
*
|
|
206
|
-
* Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
207
|
-
*/
|
|
203
|
+
/** Ends the specified program. */
|
|
208
204
|
function endProgram(payload) {
|
|
209
205
|
function __endProgram({ host }) {
|
|
210
206
|
const metadata = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-programs.http.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,WAAW;gBACpB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,cAAc;aACzB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAA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AAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AAnBD,oCAmBC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAC,OAAe;IAC3C,SAAS,eAAe,CAAC,EAAE,IAAI,EAAO;QACpC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,iCAAiC;YAC7C,MAAM,EAAE,MAAa;YACrB,SAAS,EAAE,8DAA8D;YACzE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,mDAAmD,CAAC;gBACvD,SAAS,EAAE,qBAAqB;gBAChC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAnBD,sCAmBC;AAED
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-programs.http.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,WAAW;gBACpB,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,cAAc;aACzB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;YACD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SAAS,EAAE,2CAA2C;gBACtD,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,IAAA,gCAAiB,EAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,qBAAqB,EAAE;wBAC/B,EAAE,IAAI,EAAE,qBAAqB,EAAE;qBAChC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,oCAAoC,CAAC;AAC9C,CAAC;AAhCD,gFAgCC"}
|
|
@@ -9,8 +9,8 @@ interface ProvisionProgramSignature {
|
|
|
9
9
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
10
10
|
*
|
|
11
11
|
* You can provision a program from a program definition or a pool definition:
|
|
12
|
-
* - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
|
|
13
|
-
* - **Pool definition**: The program has 1 pool that is created from the pool definition.
|
|
12
|
+
* - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
|
|
13
|
+
* - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
|
|
14
14
|
* @param - The program definition or pool definition to use to provision the program.
|
|
15
15
|
*/
|
|
16
16
|
(poolDefinitionLookupId: PoolDefinitionLookupId, options?: ProvisionProgramOptions | undefined): Promise<ProvisionProgramResponse>;
|
|
@@ -20,7 +20,7 @@ interface RenewProgramSignature {
|
|
|
20
20
|
/**
|
|
21
21
|
* Renews the specified program.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
|
|
24
24
|
* @param - ID of the program to renew.
|
|
25
25
|
*/
|
|
26
26
|
(programId: string): Promise<RenewProgramResponse>;
|
|
@@ -47,8 +47,6 @@ export declare function endProgram(httpClient: HttpClient): EndProgramSignature;
|
|
|
47
47
|
interface EndProgramSignature {
|
|
48
48
|
/**
|
|
49
49
|
* Ends the specified program.
|
|
50
|
-
*
|
|
51
|
-
* Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
52
50
|
* @param - ID of the program to end.
|
|
53
51
|
*/
|
|
54
52
|
(programId: string): Promise<EndProgramResponse>;
|
|
@@ -98,7 +96,7 @@ export declare function getProgramByExternalIdAndNamespace(httpClient: HttpClien
|
|
|
98
96
|
interface GetProgramByExternalIdAndNamespaceSignature {
|
|
99
97
|
/**
|
|
100
98
|
* Retrieves a program with the specified external ID and namespace.
|
|
101
|
-
* @param - Namespace for your app or site's benefit programs.
|
|
99
|
+
* @param - Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
102
100
|
*/
|
|
103
101
|
(namespace: string, options: GetProgramByExternalIdAndNamespaceOptions): Promise<GetProgramByExternalIdAndNamespaceResponse>;
|
|
104
102
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-programs.public.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.public.ts"],"names":[],"mappings":";;;AACA,2HAsB6D;AAEhD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEpE,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CACL,sBAA8C,EAC9C,OAGC,EACD,EAAE,CACF,IAAA,oEAAyB,EACvB,sBAAsB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAhBD,4CAgBC;AAiBD,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,gEAAqB,EACnB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAYD,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,gEAAqB,EACnB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAUD,SAAgB,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,iEAAsB,EACpB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sCAOC;AAYD,SAAgB,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,8DAAmB,EACjB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gCAOC;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-programs.public.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.public.ts"],"names":[],"mappings":";;;AACA,2HAsB6D;AAEhD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEpE,SAAgB,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CACL,sBAA8C,EAC9C,OAGC,EACD,EAAE,CACF,IAAA,oEAAyB,EACvB,sBAAsB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAhBD,4CAgBC;AAiBD,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,gEAAqB,EACnB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAYD,SAAgB,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,IAAA,gEAAqB,EACnB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oCAOC;AAU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
@@ -50,7 +50,7 @@ export interface Program {
|
|
|
50
50
|
*/
|
|
51
51
|
displayName?: string | null;
|
|
52
52
|
/**
|
|
53
|
-
* Namespace for your app or site's benefit programs.
|
|
53
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
54
54
|
* @minLength 1
|
|
55
55
|
* @maxLength 50
|
|
56
56
|
* @immutable
|
|
@@ -85,13 +85,13 @@ export declare enum ProgramStatus {
|
|
|
85
85
|
PAUSED = "PAUSED",
|
|
86
86
|
/** Program has ended. It can't be resumed. */
|
|
87
87
|
ENDED = "ENDED",
|
|
88
|
-
/** Program is being activated for the first time. This status
|
|
88
|
+
/** Program is being activated for the first time. This status exists for a short time during processing. */
|
|
89
89
|
PROVISIONING = "PROVISIONING",
|
|
90
|
-
/** Program is being paused. This status
|
|
90
|
+
/** Program is being paused. This status exists for a short time during processing. */
|
|
91
91
|
PAUSING = "PAUSING",
|
|
92
|
-
/** Program is being re-activated after being paused. This status
|
|
92
|
+
/** Program is being re-activated after being paused. This status exists for a short time during processing. */
|
|
93
93
|
RESUMING = "RESUMING",
|
|
94
|
-
/** Program is being ended. This status
|
|
94
|
+
/** Program is being ended. This status exists for a short time during processing. */
|
|
95
95
|
ENDING = "ENDING"
|
|
96
96
|
}
|
|
97
97
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
@@ -197,7 +197,7 @@ export interface ProvisionProgramRequest {
|
|
|
197
197
|
*/
|
|
198
198
|
programStatus?: ProvisionProgramRequestProgramStatus;
|
|
199
199
|
/**
|
|
200
|
-
* Namespace for your app or site's benefit programs.
|
|
200
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
201
201
|
* @minLength 1
|
|
202
202
|
* @maxLength 50
|
|
203
203
|
*/
|
|
@@ -205,7 +205,7 @@ export interface ProvisionProgramRequest {
|
|
|
205
205
|
/**
|
|
206
206
|
* Program name.
|
|
207
207
|
*
|
|
208
|
-
* If you're provisioning the program from a program definition, you may want to use the same name that used for the program definition.
|
|
208
|
+
* If you're provisioning the program from a program definition, you may want to use the same name that was used for the program definition.
|
|
209
209
|
* @maxLength 64
|
|
210
210
|
*/
|
|
211
211
|
displayName?: string | null;
|
|
@@ -248,7 +248,7 @@ export declare enum ProvisionProgramRequestProgramStatus {
|
|
|
248
248
|
}
|
|
249
249
|
export interface ProvisionProgramResponse {
|
|
250
250
|
/**
|
|
251
|
-
* Job ID of the provisioning of the program.
|
|
251
|
+
* Job ID of the provisioning of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
252
252
|
* @format GUID
|
|
253
253
|
*/
|
|
254
254
|
jobId?: string;
|
|
@@ -277,7 +277,7 @@ export interface RenewProgramRequest {
|
|
|
277
277
|
}
|
|
278
278
|
export interface RenewProgramResponse {
|
|
279
279
|
/**
|
|
280
|
-
* Job ID of the program renewal.
|
|
280
|
+
* Job ID of the program renewal. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
281
281
|
* @format GUID
|
|
282
282
|
*/
|
|
283
283
|
jobId?: string;
|
|
@@ -291,7 +291,7 @@ export interface PauseProgramRequest {
|
|
|
291
291
|
}
|
|
292
292
|
export interface PauseProgramResponse {
|
|
293
293
|
/**
|
|
294
|
-
* Job ID of the pausing of the program.
|
|
294
|
+
* Job ID of the pausing of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
295
295
|
* @format GUID
|
|
296
296
|
*/
|
|
297
297
|
jobId?: string;
|
|
@@ -311,7 +311,7 @@ export interface ResumeProgramRequest {
|
|
|
311
311
|
}
|
|
312
312
|
export interface ResumeProgramResponse {
|
|
313
313
|
/**
|
|
314
|
-
* Job ID of the resuming of the program.
|
|
314
|
+
* Job ID of the resuming of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
315
315
|
* @format GUID
|
|
316
316
|
*/
|
|
317
317
|
jobId?: string;
|
|
@@ -325,7 +325,7 @@ export interface EndProgramRequest {
|
|
|
325
325
|
}
|
|
326
326
|
export interface EndProgramResponse {
|
|
327
327
|
/**
|
|
328
|
-
* Job ID of the ending of the program.
|
|
328
|
+
* Job ID of the ending of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
329
329
|
* @format GUID
|
|
330
330
|
*/
|
|
331
331
|
jobId?: string;
|
|
@@ -491,7 +491,7 @@ export interface Cursors {
|
|
|
491
491
|
}
|
|
492
492
|
export interface GetProgramByExternalIdAndNamespaceRequest {
|
|
493
493
|
/**
|
|
494
|
-
* Namespace for your app or site's benefit programs.
|
|
494
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
495
495
|
* @minLength 1
|
|
496
496
|
* @maxLength 50
|
|
497
497
|
*/
|
|
@@ -11,13 +11,13 @@ var ProgramStatus;
|
|
|
11
11
|
ProgramStatus["PAUSED"] = "PAUSED";
|
|
12
12
|
/** Program has ended. It can't be resumed. */
|
|
13
13
|
ProgramStatus["ENDED"] = "ENDED";
|
|
14
|
-
/** Program is being activated for the first time. This status
|
|
14
|
+
/** Program is being activated for the first time. This status exists for a short time during processing. */
|
|
15
15
|
ProgramStatus["PROVISIONING"] = "PROVISIONING";
|
|
16
|
-
/** Program is being paused. This status
|
|
16
|
+
/** Program is being paused. This status exists for a short time during processing. */
|
|
17
17
|
ProgramStatus["PAUSING"] = "PAUSING";
|
|
18
|
-
/** Program is being re-activated after being paused. This status
|
|
18
|
+
/** Program is being re-activated after being paused. This status exists for a short time during processing. */
|
|
19
19
|
ProgramStatus["RESUMING"] = "RESUMING";
|
|
20
|
-
/** Program is being ended. This status
|
|
20
|
+
/** Program is being ended. This status exists for a short time during processing. */
|
|
21
21
|
ProgramStatus["ENDING"] = "ENDING";
|
|
22
22
|
})(ProgramStatus || (exports.ProgramStatus = ProgramStatus = {}));
|
|
23
23
|
var IdentityType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-programs.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.types.ts"],"names":[],"mappings":";;;AA+EA,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-programs.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.types.ts"],"names":[],"mappings":";;;AA+EA,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf,4GAA4G;IAC5G,8CAA6B,CAAA;IAC7B,sFAAsF;IACtF,oCAAmB,CAAA;IACnB,+GAA+G;IAC/G,sCAAqB,CAAA;IACrB,qFAAqF;IACrF,kCAAiB,CAAA;AACnB,CAAC,EAjBW,aAAa,6BAAb,aAAa,QAiBxB;AAwCD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,4CAA4C;IAC5C,mCAAmB,CAAA;IACnB,4CAA4C;IAC5C,uDAAuC,CAAA;IACvC,+BAA+B;IAC/B,iCAAiB,CAAA;IACjB,iEAAiE;IACjE,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AAiHD,IAAY,oCAKX;AALD,WAAY,oCAAoC;IAC9C,yBAAyB;IACzB,yDAAiB,CAAA;IACjB,yBAAyB;IACzB,yDAAiB,CAAA;AACnB,CAAC,EALW,oCAAoC,oDAApC,oCAAoC,QAK/C;AA6ID,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AAuED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAwND,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
|
|
@@ -51,7 +51,7 @@ export interface Program {
|
|
|
51
51
|
*/
|
|
52
52
|
displayName?: string | null;
|
|
53
53
|
/**
|
|
54
|
-
* Namespace for your app or site's benefit programs.
|
|
54
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
55
55
|
* @minLength 1
|
|
56
56
|
* @maxLength 50
|
|
57
57
|
* @immutable
|
|
@@ -86,13 +86,13 @@ export declare enum ProgramStatus {
|
|
|
86
86
|
PAUSED = "PAUSED",
|
|
87
87
|
/** Program has ended. It can't be resumed. */
|
|
88
88
|
ENDED = "ENDED",
|
|
89
|
-
/** Program is being activated for the first time. This status
|
|
89
|
+
/** Program is being activated for the first time. This status exists for a short time during processing. */
|
|
90
90
|
PROVISIONING = "PROVISIONING",
|
|
91
|
-
/** Program is being paused. This status
|
|
91
|
+
/** Program is being paused. This status exists for a short time during processing. */
|
|
92
92
|
PAUSING = "PAUSING",
|
|
93
|
-
/** Program is being re-activated after being paused. This status
|
|
93
|
+
/** Program is being re-activated after being paused. This status exists for a short time during processing. */
|
|
94
94
|
RESUMING = "RESUMING",
|
|
95
|
-
/** Program is being ended. This status
|
|
95
|
+
/** Program is being ended. This status exists for a short time during processing. */
|
|
96
96
|
ENDING = "ENDING"
|
|
97
97
|
}
|
|
98
98
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
@@ -198,7 +198,7 @@ export interface ProvisionProgramRequest {
|
|
|
198
198
|
*/
|
|
199
199
|
programStatus?: ProvisionProgramRequestProgramStatus;
|
|
200
200
|
/**
|
|
201
|
-
* Namespace for your app or site's benefit programs.
|
|
201
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
202
202
|
* @minLength 1
|
|
203
203
|
* @maxLength 50
|
|
204
204
|
*/
|
|
@@ -206,7 +206,7 @@ export interface ProvisionProgramRequest {
|
|
|
206
206
|
/**
|
|
207
207
|
* Program name.
|
|
208
208
|
*
|
|
209
|
-
* If you're provisioning the program from a program definition, you may want to use the same name that used for the program definition.
|
|
209
|
+
* If you're provisioning the program from a program definition, you may want to use the same name that was used for the program definition.
|
|
210
210
|
* @maxLength 64
|
|
211
211
|
*/
|
|
212
212
|
displayName?: string | null;
|
|
@@ -249,7 +249,7 @@ export declare enum ProvisionProgramRequestProgramStatus {
|
|
|
249
249
|
}
|
|
250
250
|
export interface ProvisionProgramResponse {
|
|
251
251
|
/**
|
|
252
|
-
* Job ID of the provisioning of the program.
|
|
252
|
+
* Job ID of the provisioning of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
253
253
|
* @format GUID
|
|
254
254
|
*/
|
|
255
255
|
jobId?: string;
|
|
@@ -278,7 +278,7 @@ export interface RenewProgramRequest {
|
|
|
278
278
|
}
|
|
279
279
|
export interface RenewProgramResponse {
|
|
280
280
|
/**
|
|
281
|
-
* Job ID of the program renewal.
|
|
281
|
+
* Job ID of the program renewal. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
282
282
|
* @format GUID
|
|
283
283
|
*/
|
|
284
284
|
jobId?: string;
|
|
@@ -292,7 +292,7 @@ export interface PauseProgramRequest {
|
|
|
292
292
|
}
|
|
293
293
|
export interface PauseProgramResponse {
|
|
294
294
|
/**
|
|
295
|
-
* Job ID of the pausing of the program.
|
|
295
|
+
* Job ID of the pausing of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
296
296
|
* @format GUID
|
|
297
297
|
*/
|
|
298
298
|
jobId?: string;
|
|
@@ -312,7 +312,7 @@ export interface ResumeProgramRequest {
|
|
|
312
312
|
}
|
|
313
313
|
export interface ResumeProgramResponse {
|
|
314
314
|
/**
|
|
315
|
-
* Job ID of the resuming of the program.
|
|
315
|
+
* Job ID of the resuming of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
316
316
|
* @format GUID
|
|
317
317
|
*/
|
|
318
318
|
jobId?: string;
|
|
@@ -326,7 +326,7 @@ export interface EndProgramRequest {
|
|
|
326
326
|
}
|
|
327
327
|
export interface EndProgramResponse {
|
|
328
328
|
/**
|
|
329
|
-
* Job ID of the ending of the program.
|
|
329
|
+
* Job ID of the ending of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
|
|
330
330
|
* @format GUID
|
|
331
331
|
*/
|
|
332
332
|
jobId?: string;
|
|
@@ -492,7 +492,7 @@ export interface Cursors {
|
|
|
492
492
|
}
|
|
493
493
|
export interface GetProgramByExternalIdAndNamespaceRequest {
|
|
494
494
|
/**
|
|
495
|
-
* Namespace for your app or site's benefit programs.
|
|
495
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
496
496
|
* @minLength 1
|
|
497
497
|
* @maxLength 50
|
|
498
498
|
*/
|
|
@@ -652,8 +652,8 @@ type ProgramNonNullablePaths = `status` | `beneficiary.anonymousVisitorId` | `be
|
|
|
652
652
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
653
653
|
*
|
|
654
654
|
* You can provision a program from a program definition or a pool definition:
|
|
655
|
-
* - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
|
|
656
|
-
* - **Pool definition**: The program has 1 pool that is created from the pool definition.
|
|
655
|
+
* - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
|
|
656
|
+
* - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
|
|
657
657
|
* @param poolDefinitionLookupId - The program definition or pool definition to use to provision the program.
|
|
658
658
|
* @public
|
|
659
659
|
* @documentationMaturity preview
|
|
@@ -680,7 +680,7 @@ export interface ProvisionProgramOptions {
|
|
|
680
680
|
*/
|
|
681
681
|
programStatus?: ProvisionProgramRequestProgramStatus;
|
|
682
682
|
/**
|
|
683
|
-
* Namespace for your app or site's benefit programs.
|
|
683
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
684
684
|
* @minLength 1
|
|
685
685
|
* @maxLength 50
|
|
686
686
|
*/
|
|
@@ -688,7 +688,7 @@ export interface ProvisionProgramOptions {
|
|
|
688
688
|
/**
|
|
689
689
|
* Program name.
|
|
690
690
|
*
|
|
691
|
-
* If you're provisioning the program from a program definition, you may want to use the same name that used for the program definition.
|
|
691
|
+
* If you're provisioning the program from a program definition, you may want to use the same name that was used for the program definition.
|
|
692
692
|
* @maxLength 64
|
|
693
693
|
*/
|
|
694
694
|
displayName?: string | null;
|
|
@@ -701,7 +701,7 @@ export interface ProvisionProgramOptions {
|
|
|
701
701
|
/**
|
|
702
702
|
* Renews the specified program.
|
|
703
703
|
*
|
|
704
|
-
*
|
|
704
|
+
* The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
|
|
705
705
|
* @param programId - ID of the program to renew.
|
|
706
706
|
* @public
|
|
707
707
|
* @documentationMaturity preview
|
|
@@ -743,8 +743,6 @@ export declare function pauseProgram(programId: string): Promise<NonNullablePath
|
|
|
743
743
|
export declare function resumeProgram(programId: string): Promise<NonNullablePaths<ResumeProgramResponse, `jobId`>>;
|
|
744
744
|
/**
|
|
745
745
|
* Ends the specified program.
|
|
746
|
-
*
|
|
747
|
-
* Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
748
746
|
* @param programId - ID of the program to end.
|
|
749
747
|
* @public
|
|
750
748
|
* @documentationMaturity preview
|
|
@@ -830,7 +828,7 @@ export interface UpdateProgram {
|
|
|
830
828
|
*/
|
|
831
829
|
displayName?: string | null;
|
|
832
830
|
/**
|
|
833
|
-
* Namespace for your app or site's benefit programs.
|
|
831
|
+
* Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
834
832
|
* @minLength 1
|
|
835
833
|
* @maxLength 50
|
|
836
834
|
* @immutable
|
|
@@ -978,7 +976,7 @@ export interface ProgramsQueryBuilder {
|
|
|
978
976
|
}
|
|
979
977
|
/**
|
|
980
978
|
* Retrieves a program with the specified external ID and namespace.
|
|
981
|
-
* @param namespace - Namespace for your app or site's benefit programs.
|
|
979
|
+
* @param namespace - Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
982
980
|
* @public
|
|
983
981
|
* @documentationMaturity preview
|
|
984
982
|
* @requiredField namespace
|
|
@@ -38,13 +38,13 @@ var ProgramStatus;
|
|
|
38
38
|
ProgramStatus["PAUSED"] = "PAUSED";
|
|
39
39
|
/** Program has ended. It can't be resumed. */
|
|
40
40
|
ProgramStatus["ENDED"] = "ENDED";
|
|
41
|
-
/** Program is being activated for the first time. This status
|
|
41
|
+
/** Program is being activated for the first time. This status exists for a short time during processing. */
|
|
42
42
|
ProgramStatus["PROVISIONING"] = "PROVISIONING";
|
|
43
|
-
/** Program is being paused. This status
|
|
43
|
+
/** Program is being paused. This status exists for a short time during processing. */
|
|
44
44
|
ProgramStatus["PAUSING"] = "PAUSING";
|
|
45
|
-
/** Program is being re-activated after being paused. This status
|
|
45
|
+
/** Program is being re-activated after being paused. This status exists for a short time during processing. */
|
|
46
46
|
ProgramStatus["RESUMING"] = "RESUMING";
|
|
47
|
-
/** Program is being ended. This status
|
|
47
|
+
/** Program is being ended. This status exists for a short time during processing. */
|
|
48
48
|
ProgramStatus["ENDING"] = "ENDING";
|
|
49
49
|
})(ProgramStatus || (exports.ProgramStatus = ProgramStatus = {}));
|
|
50
50
|
var IdentityType;
|
|
@@ -91,8 +91,8 @@ var WebhookIdentityType;
|
|
|
91
91
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
92
92
|
*
|
|
93
93
|
* You can provision a program from a program definition or a pool definition:
|
|
94
|
-
* - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
|
|
95
|
-
* - **Pool definition**: The program has 1 pool that is created from the pool definition.
|
|
94
|
+
* - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
|
|
95
|
+
* - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
|
|
96
96
|
* @param poolDefinitionLookupId - The program definition or pool definition to use to provision the program.
|
|
97
97
|
* @public
|
|
98
98
|
* @documentationMaturity preview
|
|
@@ -145,7 +145,7 @@ exports.provisionProgram = provisionProgram;
|
|
|
145
145
|
/**
|
|
146
146
|
* Renews the specified program.
|
|
147
147
|
*
|
|
148
|
-
*
|
|
148
|
+
* The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
|
|
149
149
|
* @param programId - ID of the program to renew.
|
|
150
150
|
* @public
|
|
151
151
|
* @documentationMaturity preview
|
|
@@ -256,8 +256,6 @@ async function resumeProgram(programId) {
|
|
|
256
256
|
exports.resumeProgram = resumeProgram;
|
|
257
257
|
/**
|
|
258
258
|
* Ends the specified program.
|
|
259
|
-
*
|
|
260
|
-
* Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
261
259
|
* @param programId - ID of the program to end.
|
|
262
260
|
* @public
|
|
263
261
|
* @documentationMaturity preview
|
|
@@ -448,7 +446,7 @@ function queryPrograms() {
|
|
|
448
446
|
exports.queryPrograms = queryPrograms;
|
|
449
447
|
/**
|
|
450
448
|
* Retrieves a program with the specified external ID and namespace.
|
|
451
|
-
* @param namespace - Namespace for your app or site's benefit programs.
|
|
449
|
+
* @param namespace - Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
|
|
452
450
|
* @public
|
|
453
451
|
* @documentationMaturity preview
|
|
454
452
|
* @requiredField namespace
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-programs.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,kEAA8D;AAC9D,oFAGiD;AAEjD,sHAAwG;AAkFxG,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-programs.universal.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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AACI,KAAK,UAAU,kCAAkC,CACtD,SAAiB,EACjB,OAGC;IAOD,aAAa;IACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,8DAAqC,EAAC;QACpD,SAAS,EAAE,SAAS;QACpB,UAAU,EAAE,OAAO,EAAE,UAAU;KAChC,CAAC,CAAC;IAEH,MAAM,OAAO,GACX,qCAAqC,CAAC,kCAAkC,CACtE,OAAO,CACR,CAAC;IAEJ,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,SAAS,EAAE,MAAM;gBACjB,UAAU,EAAE,iBAAiB;aAC9B;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,WAAW,EAAE,SAAS,CAAC,CACzB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAnDD,gFAmDC"}
|
|
@@ -3,14 +3,14 @@ import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
|
3
3
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
4
4
|
*
|
|
5
5
|
* You can provision a program from a program definition or a pool definition:
|
|
6
|
-
* - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
|
|
7
|
-
* - **Pool definition**: The program has 1 pool that is created from the pool definition.
|
|
6
|
+
* - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
|
|
7
|
+
* - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
|
|
8
8
|
*/
|
|
9
9
|
export declare function provisionProgram(payload: object): RequestOptionsFactory<any>;
|
|
10
10
|
/**
|
|
11
11
|
* Renews the specified program.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
|
|
14
14
|
*/
|
|
15
15
|
export declare function renewProgram(payload: object): RequestOptionsFactory<any>;
|
|
16
16
|
/** Pauses the specified program. Benefits in the program's pools can't be redeemed until the program is resumed. */
|
|
@@ -21,11 +21,7 @@ export declare function pauseProgram(payload: object): RequestOptionsFactory<any
|
|
|
21
21
|
* Call this method for paused programs.
|
|
22
22
|
*/
|
|
23
23
|
export declare function resumeProgram(payload: object): RequestOptionsFactory<any>;
|
|
24
|
-
/**
|
|
25
|
-
* Ends the specified program.
|
|
26
|
-
*
|
|
27
|
-
* Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
28
|
-
*/
|
|
24
|
+
/** Ends the specified program. */
|
|
29
25
|
export declare function endProgram(payload: object): RequestOptionsFactory<any>;
|
|
30
26
|
/**
|
|
31
27
|
* Updates a program.
|
|
@@ -98,8 +98,8 @@ const PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_programs';
|
|
|
98
98
|
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
99
99
|
*
|
|
100
100
|
* You can provision a program from a program definition or a pool definition:
|
|
101
|
-
* - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
|
|
102
|
-
* - **Pool definition**: The program has 1 pool that is created from the pool definition.
|
|
101
|
+
* - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
|
|
102
|
+
* - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
|
|
103
103
|
*/
|
|
104
104
|
export function provisionProgram(payload) {
|
|
105
105
|
function __provisionProgram({ host }) {
|
|
@@ -131,7 +131,7 @@ export function provisionProgram(payload) {
|
|
|
131
131
|
/**
|
|
132
132
|
* Renews the specified program.
|
|
133
133
|
*
|
|
134
|
-
*
|
|
134
|
+
* The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
|
|
135
135
|
*/
|
|
136
136
|
export function renewProgram(payload) {
|
|
137
137
|
function __renewProgram({ host }) {
|
|
@@ -193,11 +193,7 @@ export function resumeProgram(payload) {
|
|
|
193
193
|
}
|
|
194
194
|
return __resumeProgram;
|
|
195
195
|
}
|
|
196
|
-
/**
|
|
197
|
-
* Ends the specified program.
|
|
198
|
-
*
|
|
199
|
-
* Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
200
|
-
*/
|
|
196
|
+
/** Ends the specified program. */
|
|
201
197
|
export function endProgram(payload) {
|
|
202
198
|
function __endProgram({ host }) {
|
|
203
199
|
const metadata = {
|