@wix/auto_sdk_benefit-programs_programs 1.0.1 → 1.0.2
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 +18 -24
- package/build/cjs/src/benefit-programs-v1-program-programs.http.js +19 -25
- 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 +18 -24
- 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 +39 -66
- package/build/cjs/src/benefit-programs-v1-program-programs.types.js +9 -13
- 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 +69 -117
- package/build/cjs/src/benefit-programs-v1-program-programs.universal.js +27 -37
- 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 +18 -24
- package/build/es/src/benefit-programs-v1-program-programs.http.js +19 -25
- 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 +18 -24
- 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 +39 -66
- package/build/es/src/benefit-programs-v1-program-programs.types.js +9 -13
- 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 +69 -117
- package/build/es/src/benefit-programs-v1-program-programs.universal.js +27 -37
- 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 +18 -24
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.js +19 -25
- 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 +18 -24
- 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 +39 -66
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js +9 -13
- 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 +69 -117
- package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js +27 -37
- 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 +18 -24
- package/build/internal/es/src/benefit-programs-v1-program-programs.http.js +19 -25
- 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 +18 -24
- 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 +39 -66
- package/build/internal/es/src/benefit-programs-v1-program-programs.types.js +9 -13
- 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 +69 -117
- package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js +27 -37
- package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
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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;;;;;;;;;;;;;;;;;;GAmBG;AACI,KAAK,UAAU,kCAAkC,CACtD,SAAiB,EACjB,OAAkD;IAKlD,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;AA9CD,gFA8CC"}
|
|
@@ -1,31 +1,23 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/** Creates active programs consisting of benefits derived from their underlying program definitions and pool definitions. */
|
|
3
|
-
export declare function provisionProgram(payload: object): RequestOptionsFactory<any>;
|
|
4
2
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Adjusts each pool in the program according to its unique credit configuration as specified in the pool definition.
|
|
3
|
+
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
8
4
|
*
|
|
9
|
-
*
|
|
5
|
+
* You can provision a program from a program definition or a pool definition:
|
|
6
|
+
* - **Program definition**: The program has associated pools that are created from the pool definitions associated with the program definition.
|
|
7
|
+
* - **Pool definition**: The program has 1 associated pool that is created from the pool definition.
|
|
10
8
|
*/
|
|
11
|
-
export declare function
|
|
9
|
+
export declare function provisionProgram(payload: object): RequestOptionsFactory<any>;
|
|
12
10
|
/**
|
|
13
|
-
*
|
|
11
|
+
* Renews the specified program.
|
|
14
12
|
*
|
|
15
|
-
*
|
|
13
|
+
* Balances are handled for each pool in the program as defined in the pool's credit configuration.
|
|
16
14
|
*/
|
|
15
|
+
export declare function renewProgram(payload: object): RequestOptionsFactory<any>;
|
|
16
|
+
/** Pauses the specified program. Benefits in the program's pools can't be redeemed until the program is resumed. */
|
|
17
17
|
export declare function pauseProgram(payload: object): RequestOptionsFactory<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Resumes the benefit pools within a program.
|
|
20
|
-
*
|
|
21
|
-
* Changes the program status to `ACTIVE`, allowing the redemption or reservation of benefits to continue.
|
|
22
|
-
*/
|
|
18
|
+
/** Resumes the specified program. Call this method for paused programs. */
|
|
23
19
|
export declare function resumeProgram(payload: object): RequestOptionsFactory<any>;
|
|
24
|
-
/**
|
|
25
|
-
* Prevents the benefit pools in the provided package from being redeemed or reserved.
|
|
26
|
-
*
|
|
27
|
-
* After ending a program, it can't be restarted.
|
|
28
|
-
*/
|
|
20
|
+
/** Ends the specified program. Benefits in the program's pools can't be redeemed until the program is resumed. */
|
|
29
21
|
export declare function endProgram(payload: object): RequestOptionsFactory<any>;
|
|
30
22
|
/**
|
|
31
23
|
* Updates a program.
|
|
@@ -42,14 +34,16 @@ export declare function getProgram(payload: object): RequestOptionsFactory<any>;
|
|
|
42
34
|
/**
|
|
43
35
|
* Creates a query to retrieve a list of programs.
|
|
44
36
|
*
|
|
45
|
-
* The
|
|
37
|
+
* The Query Programs method builds a query to retrieve a list of programs and returns a `ProgramsQueryBuilder` object.
|
|
38
|
+
*
|
|
39
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
46
40
|
*
|
|
47
|
-
*
|
|
41
|
+
* You can refine the query by chaining `ProgramsQueryBuilder` methods onto the query. `ProgramsQueryBuilder` methods enable you to filter, sort, and control the results that Query Programs returns.
|
|
48
42
|
*
|
|
49
|
-
*
|
|
43
|
+
* Query Programs has a default paging limit of 50, which you can override.
|
|
50
44
|
*
|
|
51
|
-
*
|
|
45
|
+
* For a full description of the item object, see the object returned for the `items` property in `ProgramsQueryResult`.
|
|
52
46
|
*/
|
|
53
47
|
export declare function queryPrograms(payload: object): RequestOptionsFactory<any>;
|
|
54
|
-
/** Retrieves a program
|
|
48
|
+
/** Retrieves a program with the specified external ID and namespace. */
|
|
55
49
|
export declare function getProgramByExternalIdAndNamespace(payload: object): RequestOptionsFactory<any>;
|
|
@@ -108,7 +108,13 @@ function resolveWixBenefitProgramsV1ProgramProgramServiceUrl(opts) {
|
|
|
108
108
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
109
109
|
}
|
|
110
110
|
const PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_programs';
|
|
111
|
-
/**
|
|
111
|
+
/**
|
|
112
|
+
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
113
|
+
*
|
|
114
|
+
* You can provision a program from a program definition or a pool definition:
|
|
115
|
+
* - **Program definition**: The program has associated pools that are created from the pool definitions associated with the program definition.
|
|
116
|
+
* - **Pool definition**: The program has 1 associated pool that is created from the pool definition.
|
|
117
|
+
*/
|
|
112
118
|
export function provisionProgram(payload) {
|
|
113
119
|
function __provisionProgram({ host }) {
|
|
114
120
|
const metadata = {
|
|
@@ -137,11 +143,9 @@ export function provisionProgram(payload) {
|
|
|
137
143
|
return __provisionProgram;
|
|
138
144
|
}
|
|
139
145
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* Adjusts each pool in the program according to its unique credit configuration as specified in the pool definition.
|
|
146
|
+
* Renews the specified program.
|
|
143
147
|
*
|
|
144
|
-
*
|
|
148
|
+
* Balances are handled for each pool in the program as defined in the pool's credit configuration.
|
|
145
149
|
*/
|
|
146
150
|
export function renewProgram(payload) {
|
|
147
151
|
function __renewProgram({ host }) {
|
|
@@ -161,11 +165,7 @@ export function renewProgram(payload) {
|
|
|
161
165
|
}
|
|
162
166
|
return __renewProgram;
|
|
163
167
|
}
|
|
164
|
-
/**
|
|
165
|
-
* Pauses the benefit pools within a program.
|
|
166
|
-
*
|
|
167
|
-
* Changes the program status to `PAUSED`, preventing the redemption or reservation of benefits.
|
|
168
|
-
*/
|
|
168
|
+
/** Pauses the specified program. Benefits in the program's pools can't be redeemed until the program is resumed. */
|
|
169
169
|
export function pauseProgram(payload) {
|
|
170
170
|
function __pauseProgram({ host }) {
|
|
171
171
|
const metadata = {
|
|
@@ -184,11 +184,7 @@ export function pauseProgram(payload) {
|
|
|
184
184
|
}
|
|
185
185
|
return __pauseProgram;
|
|
186
186
|
}
|
|
187
|
-
/**
|
|
188
|
-
* Resumes the benefit pools within a program.
|
|
189
|
-
*
|
|
190
|
-
* Changes the program status to `ACTIVE`, allowing the redemption or reservation of benefits to continue.
|
|
191
|
-
*/
|
|
187
|
+
/** Resumes the specified program. Call this method for paused programs. */
|
|
192
188
|
export function resumeProgram(payload) {
|
|
193
189
|
function __resumeProgram({ host }) {
|
|
194
190
|
const metadata = {
|
|
@@ -207,11 +203,7 @@ export function resumeProgram(payload) {
|
|
|
207
203
|
}
|
|
208
204
|
return __resumeProgram;
|
|
209
205
|
}
|
|
210
|
-
/**
|
|
211
|
-
* Prevents the benefit pools in the provided package from being redeemed or reserved.
|
|
212
|
-
*
|
|
213
|
-
* After ending a program, it can't be restarted.
|
|
214
|
-
*/
|
|
206
|
+
/** Ends the specified program. Benefits in the program's pools can't be redeemed until the program is resumed. */
|
|
215
207
|
export function endProgram(payload) {
|
|
216
208
|
function __endProgram({ host }) {
|
|
217
209
|
const metadata = {
|
|
@@ -310,13 +302,15 @@ export function getProgram(payload) {
|
|
|
310
302
|
/**
|
|
311
303
|
* Creates a query to retrieve a list of programs.
|
|
312
304
|
*
|
|
313
|
-
* The
|
|
305
|
+
* The Query Programs method builds a query to retrieve a list of programs and returns a `ProgramsQueryBuilder` object.
|
|
306
|
+
*
|
|
307
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
314
308
|
*
|
|
315
|
-
*
|
|
309
|
+
* You can refine the query by chaining `ProgramsQueryBuilder` methods onto the query. `ProgramsQueryBuilder` methods enable you to filter, sort, and control the results that Query Programs returns.
|
|
316
310
|
*
|
|
317
|
-
*
|
|
311
|
+
* Query Programs has a default paging limit of 50, which you can override.
|
|
318
312
|
*
|
|
319
|
-
*
|
|
313
|
+
* For a full description of the item object, see the object returned for the `items` property in `ProgramsQueryResult`.
|
|
320
314
|
*/
|
|
321
315
|
export function queryPrograms(payload) {
|
|
322
316
|
function __queryPrograms({ host }) {
|
|
@@ -345,7 +339,7 @@ export function queryPrograms(payload) {
|
|
|
345
339
|
}
|
|
346
340
|
return __queryPrograms;
|
|
347
341
|
}
|
|
348
|
-
/** Retrieves a program
|
|
342
|
+
/** Retrieves a program with the specified external ID and namespace. */
|
|
349
343
|
export function getProgramByExternalIdAndNamespace(payload) {
|
|
350
344
|
function __getProgramByExternalIdAndNamespace({ host }) {
|
|
351
345
|
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,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAA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,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,QAAQ,EAAE,cAAc;aACzB;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,cAAc;aACzB;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,iCAAiC;gBAC1C,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,cAAc;aACzB;SACF;KACF,CAAC;IAEF,OAAO,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,yCAAyC,CAAC;AAE/D
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-programs.http.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAI3D,SAAS,mDAAmD,CAC1D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,WAAW;gBACpB,QAAQ,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,IAAI,EAAE,sBAAsB,EAAE;wBAChC,EAAE,IAAI,EAAE,sBAAsB,EAAE;qBACjC;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,kCAAkC,CAChD,OAAe;IAEf,SAAS,oCAAoC,CAAC,EAAE,IAAI,EAAO;QACzD,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,iCAAiC;YAC7C,MAAM,EAAE,KAAY;YACpB,SAAS,EACP,mFAAmF;YACrF,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,mDAAmD,CAAC;gBACvD,SAAS,EAAE,2CAA2C;gBACtD,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,MAAM,EAAE,iBAAiB,CAAC,OAAO,CAAC;YAClC,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,cAAc,CAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,oCAAoC;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"}
|
|
@@ -6,23 +6,21 @@ export declare const __metadata: {
|
|
|
6
6
|
export declare function provisionProgram(httpClient: HttpClient): ProvisionProgramSignature;
|
|
7
7
|
interface ProvisionProgramSignature {
|
|
8
8
|
/**
|
|
9
|
-
* Creates
|
|
10
|
-
* @param - Used to locate the pool definition for creating its benefit pools within the program.
|
|
9
|
+
* Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* You can provision a program from a program definition or a pool definition:
|
|
12
|
+
* - **Program definition**: The program has associated pools that are created from the pool definitions associated with the program definition.
|
|
13
|
+
* - **Pool definition**: The program has 1 associated pool that is created from the pool definition.
|
|
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 & ProvisionProgramResponseNonNullableFields>;
|
|
17
17
|
}
|
|
18
18
|
export declare function renewProgram(httpClient: HttpClient): RenewProgramSignature;
|
|
19
19
|
interface RenewProgramSignature {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Renews the specified program.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* Use this method to reset each benefit pool renewal cycle.
|
|
23
|
+
* Balances are handled for each pool in the program as defined in the pool's credit configuration.
|
|
26
24
|
* @param - ID of the program to renew.
|
|
27
25
|
*/
|
|
28
26
|
(programId: string): Promise<RenewProgramResponse & RenewProgramResponseNonNullableFields>;
|
|
@@ -30,9 +28,7 @@ interface RenewProgramSignature {
|
|
|
30
28
|
export declare function pauseProgram(httpClient: HttpClient): PauseProgramSignature;
|
|
31
29
|
interface PauseProgramSignature {
|
|
32
30
|
/**
|
|
33
|
-
* Pauses the
|
|
34
|
-
*
|
|
35
|
-
* Changes the program status to `PAUSED`, preventing the redemption or reservation of benefits.
|
|
31
|
+
* Pauses the specified program. Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
36
32
|
* @param - ID of the program to pause.
|
|
37
33
|
*/
|
|
38
34
|
(programId: string): Promise<PauseProgramResponse & PauseProgramResponseNonNullableFields>;
|
|
@@ -40,9 +36,7 @@ interface PauseProgramSignature {
|
|
|
40
36
|
export declare function resumeProgram(httpClient: HttpClient): ResumeProgramSignature;
|
|
41
37
|
interface ResumeProgramSignature {
|
|
42
38
|
/**
|
|
43
|
-
* Resumes the
|
|
44
|
-
*
|
|
45
|
-
* Changes the program status to `ACTIVE`, allowing the redemption or reservation of benefits to continue.
|
|
39
|
+
* Resumes the specified program. Call this method for paused programs.
|
|
46
40
|
* @param - ID of program to resume.
|
|
47
41
|
*/
|
|
48
42
|
(programId: string): Promise<ResumeProgramResponse & ResumeProgramResponseNonNullableFields>;
|
|
@@ -50,10 +44,8 @@ interface ResumeProgramSignature {
|
|
|
50
44
|
export declare function endProgram(httpClient: HttpClient): EndProgramSignature;
|
|
51
45
|
interface EndProgramSignature {
|
|
52
46
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* After ending a program, it can't be restarted.
|
|
56
|
-
* @param - Package of pools
|
|
47
|
+
* Ends the specified program. Benefits in the program's pools can't be redeemed until the program is resumed.
|
|
48
|
+
* @param - ID of the program to end.
|
|
57
49
|
*/
|
|
58
50
|
(programId: string): Promise<EndProgramResponse & EndProgramResponseNonNullableFields>;
|
|
59
51
|
}
|
|
@@ -86,20 +78,22 @@ interface QueryProgramsSignature {
|
|
|
86
78
|
/**
|
|
87
79
|
* Creates a query to retrieve a list of programs.
|
|
88
80
|
*
|
|
89
|
-
* The
|
|
81
|
+
* The Query Programs method builds a query to retrieve a list of programs and returns a `ProgramsQueryBuilder` object.
|
|
82
|
+
*
|
|
83
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
90
84
|
*
|
|
91
|
-
*
|
|
85
|
+
* You can refine the query by chaining `ProgramsQueryBuilder` methods onto the query. `ProgramsQueryBuilder` methods enable you to filter, sort, and control the results that Query Programs returns.
|
|
92
86
|
*
|
|
93
|
-
*
|
|
87
|
+
* Query Programs has a default paging limit of 50, which you can override.
|
|
94
88
|
*
|
|
95
|
-
*
|
|
89
|
+
* For a full description of the item object, see the object returned for the `items` property in `ProgramsQueryResult`.
|
|
96
90
|
*/
|
|
97
91
|
(): ProgramsQueryBuilder;
|
|
98
92
|
}
|
|
99
93
|
export declare function getProgramByExternalIdAndNamespace(httpClient: HttpClient): GetProgramByExternalIdAndNamespaceSignature;
|
|
100
94
|
interface GetProgramByExternalIdAndNamespaceSignature {
|
|
101
95
|
/**
|
|
102
|
-
* Retrieves a program
|
|
96
|
+
* Retrieves a program with the specified external ID and namespace.
|
|
103
97
|
* @param - Application sub-module that is the source of the program creation.
|
|
104
98
|
*
|
|
105
99
|
* Use the namespace that was designated to the program definition.
|
|
@@ -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,OAAO,EAoBL,UAAU,IAAI,mBAAmB,EACjC,UAAU,IAAI,mBAAmB,EACjC,kCAAkC,IAAI,2CAA2C,EACjF,YAAY,IAAI,qBAAqB,EACrC,gBAAgB,IAAI,yBAAyB,EAC7C,aAAa,IAAI,sBAAsB,EACvC,YAAY,IAAI,qBAAqB,EACrC,aAAa,IAAI,sBAAsB,EACvC,aAAa,IAAI,sBAAsB,GACxC,MAAM,qDAAqD,CAAC;AAE7D,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEpE,MAAM,UAAU,gBAAgB,CAC9B,UAAsB;IAEtB,OAAO,CACL,sBAA8C,EAC9C,OAAiC,EACjC,EAAE,CACF,yBAAyB,CACvB,sBAAsB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAmBD,MAAM,UAAU,YAAY,CAAC,UAAsB;IACjD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,qBAAqB,CACnB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-programs.public.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.public.ts"],"names":[],"mappings":"AACA,OAAO,EAoBL,UAAU,IAAI,mBAAmB,EACjC,UAAU,IAAI,mBAAmB,EACjC,kCAAkC,IAAI,2CAA2C,EACjF,YAAY,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E,CACf,CAAC;AACN,CAAC;AAmBD,MAAM,UAAU,UAAU,CAAC,UAAsB;IAC/C,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,mBAAmB,CACjB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAWD,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,GAAG,EAAE,CACV,sBAAsB;IACpB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAmBD,MAAM,UAAU,kCAAkC,CAChD,UAAsB;IAEtB,OAAO,CACL,SAAiB,EACjB,OAAkD,EAClD,EAAE,CACF,2CAA2C,CACzC,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAkBD,OAAO,EA2BL,YAAY,EAEZ,WAAW,EAeX,aAAa,EAMb,oCAAoC,EAapC,SAAS,EAUT,mBAAmB,GACpB,MAAM,qDAAqD,CAAC"}
|
|
@@ -25,7 +25,7 @@ export interface Program {
|
|
|
25
25
|
*/
|
|
26
26
|
updatedDate?: Date | null;
|
|
27
27
|
/**
|
|
28
|
-
* ID of program definition
|
|
28
|
+
* ID of the associated program definition.
|
|
29
29
|
* @format GUID
|
|
30
30
|
* @readonly
|
|
31
31
|
* @immutable
|
|
@@ -37,7 +37,7 @@ export interface Program {
|
|
|
37
37
|
*/
|
|
38
38
|
status?: ProgramStatus;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Program beneficiary.
|
|
41
41
|
* @readonly
|
|
42
42
|
* @immutable
|
|
43
43
|
*/
|
|
@@ -45,12 +45,12 @@ export interface Program {
|
|
|
45
45
|
/**
|
|
46
46
|
* Program name.
|
|
47
47
|
*
|
|
48
|
-
*
|
|
48
|
+
* You may want to use the same name that's used in the associated program definition, if it exists.
|
|
49
49
|
* @maxLength 64
|
|
50
50
|
*/
|
|
51
51
|
displayName?: string | null;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Namespace for your app or site's benefit programs.
|
|
54
54
|
* @minLength 1
|
|
55
55
|
* @maxLength 50
|
|
56
56
|
* @immutable
|
|
@@ -59,63 +59,52 @@ export interface Program {
|
|
|
59
59
|
/**
|
|
60
60
|
* Custom field data for the program object.
|
|
61
61
|
*
|
|
62
|
-
* [Extended fields](https://dev.wix.com/docs/
|
|
62
|
+
* [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
|
|
63
63
|
*/
|
|
64
64
|
extendedFields?: ExtendedFields;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* Must be unique to every app's namespace.
|
|
66
|
+
* ID for the program defined by you. You can use `externalId` to filter queries.
|
|
69
67
|
* @format GUID
|
|
70
68
|
* @immutable
|
|
71
69
|
*/
|
|
72
70
|
externalId?: string | null;
|
|
73
71
|
/**
|
|
74
|
-
*
|
|
72
|
+
* Associated program definition information.
|
|
75
73
|
* @readonly
|
|
76
74
|
*/
|
|
77
75
|
programDefinition?: ProgramDefinitionInfo;
|
|
78
|
-
/**
|
|
79
|
-
* Intended status of a program after the completion of an action.
|
|
80
|
-
* @readonly
|
|
81
|
-
*/
|
|
82
|
-
targetStatus?: ProgramStatus;
|
|
83
76
|
}
|
|
84
77
|
export declare enum ProgramStatus {
|
|
85
78
|
/** Undefined program status. */
|
|
86
79
|
UNDEFINED = "UNDEFINED",
|
|
87
|
-
/**
|
|
80
|
+
/** Program is active. */
|
|
88
81
|
ACTIVE = "ACTIVE",
|
|
89
|
-
/**
|
|
82
|
+
/** Program is paused. It can be resumed. */
|
|
90
83
|
PAUSED = "PAUSED",
|
|
91
|
-
/**
|
|
92
|
-
* Inactive program.
|
|
93
|
-
*
|
|
94
|
-
* Benefits of a program with an `ENDED` status can't be redeemed or reserved.
|
|
95
|
-
*/
|
|
84
|
+
/** Program has ended. It can't be resumed. */
|
|
96
85
|
ENDED = "ENDED",
|
|
97
|
-
/**
|
|
86
|
+
/** Program is being activated for the first time. This status will be true for a negligible amount of time. */
|
|
98
87
|
PROVISIONING = "PROVISIONING",
|
|
99
|
-
/**
|
|
88
|
+
/** Program is being paused. This status will be true for a negligible amount of time. */
|
|
100
89
|
PAUSING = "PAUSING",
|
|
101
|
-
/**
|
|
90
|
+
/** Program is being re-activated after being paused. This status will be true for a negligible amount of time. */
|
|
102
91
|
RESUMING = "RESUMING",
|
|
103
|
-
/**
|
|
92
|
+
/** Program is being ended. This status will be true for a negligible amount of time. */
|
|
104
93
|
ENDING = "ENDING"
|
|
105
94
|
}
|
|
106
95
|
export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
|
|
107
96
|
/**
|
|
108
|
-
* ID of a site visitor that
|
|
97
|
+
* ID of a site visitor that hasn't logged in to the site.
|
|
109
98
|
* @format GUID
|
|
110
99
|
*/
|
|
111
100
|
anonymousVisitorId?: string;
|
|
112
101
|
/**
|
|
113
|
-
* ID of a site
|
|
102
|
+
* ID of a site member.
|
|
114
103
|
* @format GUID
|
|
115
104
|
*/
|
|
116
105
|
memberId?: string;
|
|
117
106
|
/**
|
|
118
|
-
* ID of a Wix user
|
|
107
|
+
* ID of a Wix user.
|
|
119
108
|
* @format GUID
|
|
120
109
|
*/
|
|
121
110
|
wixUserId?: string;
|
|
@@ -123,17 +112,17 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
|
|
|
123
112
|
/** @oneof */
|
|
124
113
|
export interface CommonIdentificationDataIdOneOf {
|
|
125
114
|
/**
|
|
126
|
-
* ID of a site visitor that
|
|
115
|
+
* ID of a site visitor that hasn't logged in to the site.
|
|
127
116
|
* @format GUID
|
|
128
117
|
*/
|
|
129
118
|
anonymousVisitorId?: string;
|
|
130
119
|
/**
|
|
131
|
-
* ID of a site
|
|
120
|
+
* ID of a site member.
|
|
132
121
|
* @format GUID
|
|
133
122
|
*/
|
|
134
123
|
memberId?: string;
|
|
135
124
|
/**
|
|
136
|
-
* ID of a Wix user
|
|
125
|
+
* ID of a Wix user.
|
|
137
126
|
* @format GUID
|
|
138
127
|
*/
|
|
139
128
|
wixUserId?: string;
|
|
@@ -161,15 +150,13 @@ export interface ExtendedFields {
|
|
|
161
150
|
}
|
|
162
151
|
export interface ProgramDefinitionInfo {
|
|
163
152
|
/**
|
|
164
|
-
*
|
|
153
|
+
* Program definition ID.
|
|
165
154
|
* @format GUID
|
|
166
155
|
* @readonly
|
|
167
156
|
*/
|
|
168
157
|
id?: string;
|
|
169
158
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* This identifies the source program definition in the external system.
|
|
159
|
+
* Program definition external ID.
|
|
173
160
|
* @format GUID
|
|
174
161
|
* @readonly
|
|
175
162
|
*/
|
|
@@ -197,30 +184,18 @@ export interface ProgramResumed {
|
|
|
197
184
|
}
|
|
198
185
|
/** In case pool_definition_id is provided should test if it's part of a package. If it is, reject the request */
|
|
199
186
|
export interface ProvisionProgramRequest {
|
|
200
|
-
/**
|
|
201
|
-
* Used to locate the pool definition for creating its benefit pools within the program.
|
|
202
|
-
*
|
|
203
|
-
* This object must contain either `programDefinitionId` or `poolDefinitionId`:
|
|
204
|
-
* + Use `programDefinitionId` for programs with multiple benefit pools.
|
|
205
|
-
* + Use `poolDefinitionId` for a program with just 1 benefit pool.
|
|
206
|
-
*/
|
|
187
|
+
/** The program definition or pool definition to use to provision the program. */
|
|
207
188
|
poolDefinitionLookupId: PoolDefinitionLookupId;
|
|
208
|
-
/**
|
|
209
|
-
* Identity of the individual that enrolled in the program, granting access to its associated benefits.
|
|
210
|
-
*
|
|
211
|
-
* The beneficiary's identity information is in their access token. To retrieve their identity, pass the access token from your frontend site to your backend, then call the Token Info ([SDK](https://dev.wix.com/docs/sdk/core-modules/essentials/auth#gettokeninfo)|[REST](https://dev.wix.com/docs/rest/app-management/oauth-2/token-info)) method. The returned `subjectType` and `subjectId` correspond to the identity type and ID of the beneficiary.
|
|
212
|
-
*/
|
|
189
|
+
/** Program beneficiary. */
|
|
213
190
|
beneficiary: CommonIdentificationData;
|
|
214
191
|
/**
|
|
215
|
-
*
|
|
192
|
+
* Initial program status.
|
|
216
193
|
*
|
|
217
194
|
* Default: `ACTIVE`
|
|
218
195
|
*/
|
|
219
196
|
programStatus?: ProvisionProgramRequestProgramStatus;
|
|
220
197
|
/**
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* Use the namespace that was designated to the program definition.
|
|
198
|
+
* Namespace for your app or site's benefit programs.
|
|
224
199
|
* @minLength 1
|
|
225
200
|
* @maxLength 50
|
|
226
201
|
*/
|
|
@@ -228,14 +203,12 @@ export interface ProvisionProgramRequest {
|
|
|
228
203
|
/**
|
|
229
204
|
* Program name.
|
|
230
205
|
*
|
|
231
|
-
*
|
|
206
|
+
* You may want to use the same name that's used in the associated program definition, if it exists.
|
|
232
207
|
* @maxLength 64
|
|
233
208
|
*/
|
|
234
209
|
displayName?: string | null;
|
|
235
210
|
/**
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
* Must be unique to every app owner's namespace.
|
|
211
|
+
* ID for the program defined by you. You can use `externalId` to filter queries.
|
|
239
212
|
* @format GUID
|
|
240
213
|
*/
|
|
241
214
|
externalProgramId: string;
|
|
@@ -266,14 +239,14 @@ export interface PoolDefinitionLookupIdIdOneOf {
|
|
|
266
239
|
programDefinitionId?: string;
|
|
267
240
|
}
|
|
268
241
|
export declare enum ProvisionProgramRequestProgramStatus {
|
|
269
|
-
/**
|
|
242
|
+
/** Program is active. */
|
|
270
243
|
ACTIVE = "ACTIVE",
|
|
271
|
-
/**
|
|
244
|
+
/** Program is paused. */
|
|
272
245
|
PAUSED = "PAUSED"
|
|
273
246
|
}
|
|
274
247
|
export interface ProvisionProgramResponse {
|
|
275
248
|
/**
|
|
276
|
-
* Job ID of the
|
|
249
|
+
* Job ID of the provisioning of the program.
|
|
277
250
|
* @format GUID
|
|
278
251
|
*/
|
|
279
252
|
jobId?: string;
|
|
@@ -302,7 +275,7 @@ export interface RenewProgramRequest {
|
|
|
302
275
|
}
|
|
303
276
|
export interface RenewProgramResponse {
|
|
304
277
|
/**
|
|
305
|
-
* Job ID of the
|
|
278
|
+
* Job ID of the program renewal.
|
|
306
279
|
* @format GUID
|
|
307
280
|
*/
|
|
308
281
|
jobId?: string;
|
|
@@ -316,7 +289,7 @@ export interface PauseProgramRequest {
|
|
|
316
289
|
}
|
|
317
290
|
export interface PauseProgramResponse {
|
|
318
291
|
/**
|
|
319
|
-
* Job ID of the
|
|
292
|
+
* Job ID of the pausing of the program.
|
|
320
293
|
* @format GUID
|
|
321
294
|
*/
|
|
322
295
|
jobId?: string;
|
|
@@ -336,21 +309,21 @@ export interface ResumeProgramRequest {
|
|
|
336
309
|
}
|
|
337
310
|
export interface ResumeProgramResponse {
|
|
338
311
|
/**
|
|
339
|
-
* Job ID of the
|
|
312
|
+
* Job ID of the resuming of the program.
|
|
340
313
|
* @format GUID
|
|
341
314
|
*/
|
|
342
315
|
jobId?: string;
|
|
343
316
|
}
|
|
344
317
|
export interface EndProgramRequest {
|
|
345
318
|
/**
|
|
346
|
-
*
|
|
319
|
+
* ID of the program to end.
|
|
347
320
|
* @format GUID
|
|
348
321
|
*/
|
|
349
322
|
programId: string;
|
|
350
323
|
}
|
|
351
324
|
export interface EndProgramResponse {
|
|
352
325
|
/**
|
|
353
|
-
* Job ID of the
|
|
326
|
+
* Job ID of the ending of the program.
|
|
354
327
|
* @format GUID
|
|
355
328
|
*/
|
|
356
329
|
jobId?: string;
|
|
@@ -407,7 +380,7 @@ export interface UpsertMigratedProgramResponse {
|
|
|
407
380
|
program?: Program;
|
|
408
381
|
}
|
|
409
382
|
export interface UpdateProgramRequest {
|
|
410
|
-
/** Program to
|
|
383
|
+
/** Program to update. */
|
|
411
384
|
program: Program;
|
|
412
385
|
}
|
|
413
386
|
export interface UpdateProgramResponse {
|
|
@@ -426,7 +399,7 @@ export interface GetProgramResponse {
|
|
|
426
399
|
program?: Program;
|
|
427
400
|
}
|
|
428
401
|
export interface QueryProgramsRequest {
|
|
429
|
-
/**
|
|
402
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
430
403
|
query?: CursorQuery;
|
|
431
404
|
}
|
|
432
405
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
@@ -484,7 +457,7 @@ export interface CursorPaging {
|
|
|
484
457
|
cursor?: string | null;
|
|
485
458
|
}
|
|
486
459
|
export interface QueryProgramsResponse {
|
|
487
|
-
/** List of programs. */
|
|
460
|
+
/** List of retrieved programs. */
|
|
488
461
|
programs?: Program[];
|
|
489
462
|
/** Metadata for the paginated results. */
|
|
490
463
|
metadata?: CursorPagingMetadata;
|