@wix/auto_sdk_benefit-programs_program-definitions 1.0.2 → 1.0.4
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-definition-program-definitions.http.d.ts +8 -10
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js +8 -10
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +10 -10
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +26 -40
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js +3 -15
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +42 -58
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +13 -25
- package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +8 -10
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +8 -10
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +10 -10
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +26 -40
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js +3 -15
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +42 -58
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +13 -25
- package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +8 -10
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js +8 -10
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +10 -10
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +26 -40
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js +3 -15
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +42 -58
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +13 -25
- package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +8 -10
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +8 -10
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +10 -10
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +26 -40
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.js +3 -15
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +42 -58
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +13 -25
- package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/** Creates a
|
|
2
|
+
/** Creates a program definition. */
|
|
3
3
|
export declare function createProgramDefinition(payload: object): RequestOptionsFactory<any>;
|
|
4
4
|
/**
|
|
5
5
|
* Updates a program definition.
|
|
@@ -15,21 +15,19 @@ export declare function updateProgramDefinition(payload: object): RequestOptions
|
|
|
15
15
|
export declare function deleteProgramDefinition(payload: object): RequestOptionsFactory<any>;
|
|
16
16
|
/** Retrieves a program definition. */
|
|
17
17
|
export declare function getProgramDefinition(payload: object): RequestOptionsFactory<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves a program definition by specifying the program definition's external ID and associated namespace.
|
|
20
|
-
*
|
|
21
|
-
* Use this method when you need to retrieve a program definition without its program definition ID.
|
|
22
|
-
*/
|
|
18
|
+
/** Retrieves a program definition with the specified external ID and namespace. */
|
|
23
19
|
export declare function getProgramDefinitionByExternalIdAndNamespace(payload: object): RequestOptionsFactory<any>;
|
|
24
20
|
/**
|
|
25
21
|
* Creates a query to retrieve a list of program definitions.
|
|
26
22
|
*
|
|
27
|
-
* The
|
|
23
|
+
* The Query Program Definitions method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
|
|
24
|
+
*
|
|
25
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
28
26
|
*
|
|
29
|
-
*
|
|
27
|
+
* You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Program Definitions returns.
|
|
30
28
|
*
|
|
31
|
-
*
|
|
29
|
+
* Query Program Definitions has a default paging limit of 50, which you can override.
|
|
32
30
|
*
|
|
33
|
-
*
|
|
31
|
+
* For a full description of the item object, see the object returned for the `items` property in `ProgramDefinitionsQueryResult`.
|
|
34
32
|
*/
|
|
35
33
|
export declare function queryProgramDefinitions(payload: object): RequestOptionsFactory<any>;
|
|
@@ -111,7 +111,7 @@ function resolveWixBenefitProgramsV1ProgramDefinitionProgramDefinitionServiceUrl
|
|
|
111
111
|
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
112
112
|
}
|
|
113
113
|
const PACKAGE_NAME = '@wix/auto_sdk_benefit-programs_program-definitions';
|
|
114
|
-
/** Creates a
|
|
114
|
+
/** Creates a program definition. */
|
|
115
115
|
function createProgramDefinition(payload) {
|
|
116
116
|
function __createProgramDefinition({ host }) {
|
|
117
117
|
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
@@ -244,11 +244,7 @@ function getProgramDefinition(payload) {
|
|
|
244
244
|
return __getProgramDefinition;
|
|
245
245
|
}
|
|
246
246
|
exports.getProgramDefinition = getProgramDefinition;
|
|
247
|
-
/**
|
|
248
|
-
* Retrieves a program definition by specifying the program definition's external ID and associated namespace.
|
|
249
|
-
*
|
|
250
|
-
* Use this method when you need to retrieve a program definition without its program definition ID.
|
|
251
|
-
*/
|
|
247
|
+
/** Retrieves a program definition with the specified external ID and namespace. */
|
|
252
248
|
function getProgramDefinitionByExternalIdAndNamespace(payload) {
|
|
253
249
|
function __getProgramDefinitionByExternalIdAndNamespace({ host }) {
|
|
254
250
|
const metadata = {
|
|
@@ -280,13 +276,15 @@ exports.getProgramDefinitionByExternalIdAndNamespace = getProgramDefinitionByExt
|
|
|
280
276
|
/**
|
|
281
277
|
* Creates a query to retrieve a list of program definitions.
|
|
282
278
|
*
|
|
283
|
-
* The
|
|
279
|
+
* The Query Program Definitions method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
|
|
280
|
+
*
|
|
281
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
284
282
|
*
|
|
285
|
-
*
|
|
283
|
+
* You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Program Definitions returns.
|
|
286
284
|
*
|
|
287
|
-
*
|
|
285
|
+
* Query Program Definitions has a default paging limit of 50, which you can override.
|
|
288
286
|
*
|
|
289
|
-
*
|
|
287
|
+
* For a full description of the item object, see the object returned for the `items` property in `ProgramDefinitionsQueryResult`.
|
|
290
288
|
*/
|
|
291
289
|
function queryProgramDefinitions(payload) {
|
|
292
290
|
function __queryProgramDefinitions({ host }) {
|
package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-definition-program-definitions.http.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,uEAAuE,CAC9E,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,+CAA+C;gBACxD,QAAQ,EAAE,yBAAyB;aACpC;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,+CAA+C;gBACxD,QAAQ,EAAE,yBAAyB;aACpC;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,+CAA+C;gBACxD,QAAQ,EAAE,yBAAyB;aACpC;SACF;QACD,gBAAgB,EAAE;YAChB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,+CAA+C;gBACxD,QAAQ,EAAE,yBAAyB;aACpC;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,+CAA+C;gBACxD,QAAQ,EAAE,yBAAyB;aACpC;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,+CAA+C;gBACxD,QAAQ,EAAE,yBAAyB;aACpC;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,+CAA+C;gBACxD,QAAQ,EAAE,yBAAyB;aACpC;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,4CAA4C;gBACrD,QAAQ,EAAE,EAAE;aACb;YACD;gBACE,OAAO,EAAE,+CAA+C;gBACxD,QAAQ,EAAE,yBAAyB;aACpC;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAAG,oDAAoD,CAAC;AAE1E,
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-definition-program-definitions.http.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,uEA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;IAClB,CAAC;IAED,OAAO,yBAAyB,CAAC;AACnC,CAAC;AA9BD,0DA8BC"}
|
package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const __metadata: {
|
|
|
6
6
|
export declare function createProgramDefinition(httpClient: HttpClient): CreateProgramDefinitionSignature;
|
|
7
7
|
interface CreateProgramDefinitionSignature {
|
|
8
8
|
/**
|
|
9
|
-
* Creates a
|
|
9
|
+
* Creates a program definition.
|
|
10
10
|
* @param - Program definition to create.
|
|
11
11
|
* @returns Created program definition.
|
|
12
12
|
*/
|
|
@@ -31,7 +31,7 @@ export declare function deleteProgramDefinition(httpClient: HttpClient): DeleteP
|
|
|
31
31
|
interface DeleteProgramDefinitionSignature {
|
|
32
32
|
/**
|
|
33
33
|
* Deletes a program definition.
|
|
34
|
-
* @param - ID of the
|
|
34
|
+
* @param - ID of the program definition to delete.
|
|
35
35
|
*/
|
|
36
36
|
(programDefinitionId: string, options?: DeleteProgramDefinitionOptions | undefined): Promise<void>;
|
|
37
37
|
}
|
|
@@ -47,10 +47,8 @@ interface GetProgramDefinitionSignature {
|
|
|
47
47
|
export declare function getProgramDefinitionByExternalIdAndNamespace(httpClient: HttpClient): GetProgramDefinitionByExternalIdAndNamespaceSignature;
|
|
48
48
|
interface GetProgramDefinitionByExternalIdAndNamespaceSignature {
|
|
49
49
|
/**
|
|
50
|
-
* Retrieves a program definition
|
|
51
|
-
*
|
|
52
|
-
* Use this method when you need to retrieve a program definition without its program definition ID.
|
|
53
|
-
* @param - Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.
|
|
50
|
+
* Retrieves a program definition with the specified external ID and namespace.
|
|
51
|
+
* @param - Namespace for your app or site's benefit programs.
|
|
54
52
|
*/
|
|
55
53
|
(namespace: string, options: GetProgramDefinitionByExternalIdAndNamespaceOptions): Promise<GetProgramDefinitionByExternalIdAndNamespaceResponse>;
|
|
56
54
|
}
|
|
@@ -59,13 +57,15 @@ interface QueryProgramDefinitionsSignature {
|
|
|
59
57
|
/**
|
|
60
58
|
* Creates a query to retrieve a list of program definitions.
|
|
61
59
|
*
|
|
62
|
-
* The
|
|
60
|
+
* The Query Program Definitions method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
|
|
61
|
+
*
|
|
62
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
63
63
|
*
|
|
64
|
-
*
|
|
64
|
+
* You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Program Definitions returns.
|
|
65
65
|
*
|
|
66
|
-
*
|
|
66
|
+
* Query Program Definitions has a default paging limit of 50, which you can override.
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
* For a full description of the item object, see the object returned for the `items` property in `ProgramDefinitionsQueryResult`.
|
|
69
69
|
*/
|
|
70
70
|
(): ProgramDefinitionsQueryBuilder;
|
|
71
71
|
}
|
package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-definition-program-definitions.public.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.public.ts"],"names":[],"mappings":";;;AACA,uKAamF;AAEtE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEpE,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,CAAC,iBAAoC,EAAE,EAAE,CAC9C,IAAA,iGAAgC,EAC9B,iBAAiB;IACjB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0DASC;AAWD,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,CAAC,GAAkB,EAAE,iBAA0C,EAAE,EAAE,CACxE,IAAA,iGAAgC,EAC9B,GAAG,EACH,iBAAiB;IACjB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,0DAUC;AAoBD,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,CACL,mBAA2B,EAC3B,OAAwC,EACxC,EAAE,CACF,IAAA,iGAAgC,EAC9B,mBAAmB,EACnB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,0DAaC;AAaD,SAAgB,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CAAC,mBAA2B,EAAE,EAAE,CACrC,IAAA,8FAA6B,EAC3B,mBAAmB;IACnB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,oDASC;AAWD,SAAgB,4CAA4C,CAC1D,UAAsB;IAEtB,OAAO,CACL,SAAiB,EACjB,OAA4D,EAC5D,EAAE,CACF,IAAA,sHAAqD,EACnD,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,oGAaC;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-definition-program-definitions.public.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.public.ts"],"names":[],"mappings":";;;AACA,uKAamF;AAEtE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAEpE,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,CAAC,iBAAoC,EAAE,EAAE,CAC9C,IAAA,iGAAgC,EAC9B,iBAAiB;IACjB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,0DASC;AAWD,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,CAAC,GAAkB,EAAE,iBAA0C,EAAE,EAAE,CACxE,IAAA,iGAAgC,EAC9B,GAAG,EACH,iBAAiB;IACjB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,0DAUC;AAoBD,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,CACL,mBAA2B,EAC3B,OAAwC,EACxC,EAAE,CACF,IAAA,iGAAgC,EAC9B,mBAAmB,EACnB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,0DAaC;AAaD,SAAgB,oBAAoB,CAClC,UAAsB;IAEtB,OAAO,CAAC,mBAA2B,EAAE,EAAE,CACrC,IAAA,8FAA6B,EAC3B,mBAAmB;IACnB,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,oDASC;AAWD,SAAgB,4CAA4C,CAC1D,UAAsB;IAEtB,OAAO,CACL,SAAiB,EACjB,OAA4D,EAC5D,EAAE,CACF,IAAA,sHAAqD,EACnD,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAbD,oGAaC;AAaD,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,iGAAgC;IAC9B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0DAQC;AAmBD,qKA2CmF;AAzCjF,kKAAA,OAAO,OAAA;AAiCP,oKAAA,SAAS,OAAA;AAOT,8KAAA,mBAAmB,OAAA"}
|
|
@@ -25,12 +25,12 @@ export interface ProgramDefinition {
|
|
|
25
25
|
*/
|
|
26
26
|
updatedDate?: Date | null;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Program definition name.
|
|
29
29
|
* @maxLength 64
|
|
30
30
|
*/
|
|
31
31
|
displayName?: string | null;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Namespace for your app or site's benefit programs.
|
|
34
34
|
* @immutable
|
|
35
35
|
* @minLength 1
|
|
36
36
|
* @maxLength 50
|
|
@@ -38,11 +38,12 @@ export interface ProgramDefinition {
|
|
|
38
38
|
namespace?: string | null;
|
|
39
39
|
/**
|
|
40
40
|
* Custom field data for the program definition object.
|
|
41
|
+
*
|
|
41
42
|
* [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.
|
|
42
43
|
*/
|
|
43
44
|
extendedFields?: ExtendedFields;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
+
* ID for the program definition defined by you. You can use `externalId` to filter queries.
|
|
46
47
|
* @format GUID
|
|
47
48
|
* @immutable
|
|
48
49
|
*/
|
|
@@ -68,7 +69,7 @@ export interface CreateProgramDefinitionResponse {
|
|
|
68
69
|
programDefinition?: ProgramDefinition;
|
|
69
70
|
}
|
|
70
71
|
export interface UpdateProgramDefinitionRequest {
|
|
71
|
-
/** Program definition to
|
|
72
|
+
/** Program definition to update. */
|
|
72
73
|
programDefinition: ProgramDefinition;
|
|
73
74
|
}
|
|
74
75
|
export interface UpdateProgramDefinitionResponse {
|
|
@@ -77,36 +78,21 @@ export interface UpdateProgramDefinitionResponse {
|
|
|
77
78
|
}
|
|
78
79
|
export interface DeleteProgramDefinitionRequest {
|
|
79
80
|
/**
|
|
80
|
-
* ID of the
|
|
81
|
+
* ID of the program definition to delete.
|
|
81
82
|
* @format GUID
|
|
82
83
|
*/
|
|
83
84
|
programDefinitionId: string;
|
|
84
|
-
/**
|
|
85
|
-
* Specifies the timing of ending the active benefit pools associated with this program definition.
|
|
86
|
-
* Determines how and when changes are applied to benefit pools.
|
|
87
|
-
*/
|
|
85
|
+
/** Determines when the changes to this program definition will be applied to associated programs and pools. */
|
|
88
86
|
cascadeType?: Cascade;
|
|
89
87
|
}
|
|
90
88
|
export declare enum Cascade {
|
|
91
89
|
/** Unknown cascade. */
|
|
92
90
|
UNKNOWN_CASCADE = "UNKNOWN_CASCADE",
|
|
93
|
-
/**
|
|
94
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition. The benefits will appear in existing programs at the beginning of their next renewal cycle.
|
|
95
|
-
*
|
|
96
|
-
* Existing programs will be updated in their next renewal cycle.
|
|
97
|
-
*/
|
|
91
|
+
/** Changes are applied to existing programs and pools when they are next renewed. */
|
|
98
92
|
NEXT_RENEWAL = "NEXT_RENEWAL",
|
|
99
|
-
/**
|
|
100
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition immediately.
|
|
101
|
-
*
|
|
102
|
-
* Existing programs will be updated immediately.
|
|
103
|
-
*/
|
|
93
|
+
/** Changes are applied to associated programs and pools immediately. */
|
|
104
94
|
IMMEDIATELY = "IMMEDIATELY",
|
|
105
|
-
/**
|
|
106
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition the next time the benefit pools are provisioned to a program.
|
|
107
|
-
*
|
|
108
|
-
* Existing programs will remain unaffected. Only newly purchased programs will display the benefits of this pool definition.
|
|
109
|
-
*/
|
|
95
|
+
/** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
|
|
110
96
|
FUTURE_PROVISIONS = "FUTURE_PROVISIONS"
|
|
111
97
|
}
|
|
112
98
|
export interface DeleteProgramDefinitionResponse {
|
|
@@ -124,40 +110,36 @@ export interface GetProgramDefinitionResponse {
|
|
|
124
110
|
}
|
|
125
111
|
export interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
|
|
126
112
|
/**
|
|
127
|
-
*
|
|
113
|
+
* Namespace for your app or site's benefit programs.
|
|
128
114
|
* @minLength 1
|
|
129
115
|
* @maxLength 50
|
|
130
116
|
*/
|
|
131
117
|
namespace: string;
|
|
132
118
|
/**
|
|
133
|
-
*
|
|
119
|
+
* Program definition external ID.
|
|
134
120
|
* @format GUID
|
|
135
121
|
*/
|
|
136
122
|
externalId: string;
|
|
137
123
|
}
|
|
138
124
|
export interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
|
|
139
|
-
/**
|
|
125
|
+
/** Retrieved program definition. */
|
|
140
126
|
programDefinition?: ProgramDefinition;
|
|
141
127
|
}
|
|
142
128
|
export interface QueryProgramDefinitionsRequest {
|
|
143
|
-
/**
|
|
129
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
144
130
|
query?: CursorQuery;
|
|
145
131
|
}
|
|
146
132
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
147
133
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
148
134
|
cursorPaging?: CursorPaging;
|
|
149
135
|
/**
|
|
150
|
-
* Filter object
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* "fieldName2":{"$operator":"value2"}
|
|
154
|
-
* }`
|
|
155
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
136
|
+
* Filter object.
|
|
137
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
138
|
+
* for more information.
|
|
156
139
|
*/
|
|
157
140
|
filter?: Record<string, any> | null;
|
|
158
141
|
/**
|
|
159
|
-
*
|
|
160
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
142
|
+
* List of sort objects.
|
|
161
143
|
* @maxSize 5
|
|
162
144
|
*/
|
|
163
145
|
sort?: Sorting[];
|
|
@@ -169,11 +151,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
169
151
|
}
|
|
170
152
|
export interface Sorting {
|
|
171
153
|
/**
|
|
172
|
-
*
|
|
154
|
+
* Field to sort by.
|
|
173
155
|
* @maxLength 512
|
|
174
156
|
*/
|
|
175
157
|
fieldName?: string;
|
|
176
|
-
/**
|
|
158
|
+
/**
|
|
159
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
160
|
+
*
|
|
161
|
+
* Default: `ASC`
|
|
162
|
+
*/
|
|
177
163
|
order?: SortOrder;
|
|
178
164
|
}
|
|
179
165
|
export declare enum SortOrder {
|
|
@@ -184,7 +170,7 @@ export declare enum SortOrder {
|
|
|
184
170
|
}
|
|
185
171
|
export interface CursorPaging {
|
|
186
172
|
/**
|
|
187
|
-
* Maximum number of items to return
|
|
173
|
+
* Maximum number of items to return.
|
|
188
174
|
* @max 100
|
|
189
175
|
*/
|
|
190
176
|
limit?: number | null;
|
|
@@ -198,7 +184,7 @@ export interface CursorPaging {
|
|
|
198
184
|
cursor?: string | null;
|
|
199
185
|
}
|
|
200
186
|
export interface QueryProgramDefinitionsResponse {
|
|
201
|
-
/** List of program definitions. */
|
|
187
|
+
/** List of retrieved program definitions. */
|
|
202
188
|
programDefinitions?: ProgramDefinition[];
|
|
203
189
|
/** Metadata for the paginated results. */
|
|
204
190
|
metadata?: CursorPagingMetadata;
|
|
@@ -5,23 +5,11 @@ var Cascade;
|
|
|
5
5
|
(function (Cascade) {
|
|
6
6
|
/** Unknown cascade. */
|
|
7
7
|
Cascade["UNKNOWN_CASCADE"] = "UNKNOWN_CASCADE";
|
|
8
|
-
/**
|
|
9
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition. The benefits will appear in existing programs at the beginning of their next renewal cycle.
|
|
10
|
-
*
|
|
11
|
-
* Existing programs will be updated in their next renewal cycle.
|
|
12
|
-
*/
|
|
8
|
+
/** Changes are applied to existing programs and pools when they are next renewed. */
|
|
13
9
|
Cascade["NEXT_RENEWAL"] = "NEXT_RENEWAL";
|
|
14
|
-
/**
|
|
15
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition immediately.
|
|
16
|
-
*
|
|
17
|
-
* Existing programs will be updated immediately.
|
|
18
|
-
*/
|
|
10
|
+
/** Changes are applied to associated programs and pools immediately. */
|
|
19
11
|
Cascade["IMMEDIATELY"] = "IMMEDIATELY";
|
|
20
|
-
/**
|
|
21
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition the next time the benefit pools are provisioned to a program.
|
|
22
|
-
*
|
|
23
|
-
* Existing programs will remain unaffected. Only newly purchased programs will display the benefits of this pool definition.
|
|
24
|
-
*/
|
|
12
|
+
/** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
|
|
25
13
|
Cascade["FUTURE_PROVISIONS"] = "FUTURE_PROVISIONS";
|
|
26
14
|
})(Cascade || (exports.Cascade = Cascade = {}));
|
|
27
15
|
var SortOrder;
|
package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefit-programs-v1-program-definition-program-definitions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"benefit-programs-v1-program-definition-program-definitions.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-definition-program-definitions.types.ts"],"names":[],"mappings":";;;AA8FA,IAAY,OASX;AATD,WAAY,OAAO;IACjB,uBAAuB;IACvB,8CAAmC,CAAA;IACnC,qFAAqF;IACrF,wCAA6B,CAAA;IAC7B,wEAAwE;IACxE,sCAA2B,CAAA;IAC3B,6HAA6H;IAC7H,kDAAuC,CAAA;AACzC,CAAC,EATW,OAAO,uBAAP,OAAO,QASlB;AA6ED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB;AAkOD,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"}
|
package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts
CHANGED
|
@@ -25,12 +25,12 @@ export interface ProgramDefinition {
|
|
|
25
25
|
*/
|
|
26
26
|
_updatedDate?: Date | null;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Program definition name.
|
|
29
29
|
* @maxLength 64
|
|
30
30
|
*/
|
|
31
31
|
displayName?: string | null;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Namespace for your app or site's benefit programs.
|
|
34
34
|
* @immutable
|
|
35
35
|
* @minLength 1
|
|
36
36
|
* @maxLength 50
|
|
@@ -38,11 +38,12 @@ export interface ProgramDefinition {
|
|
|
38
38
|
namespace?: string | null;
|
|
39
39
|
/**
|
|
40
40
|
* Custom field data for the program definition object.
|
|
41
|
+
*
|
|
41
42
|
* [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.
|
|
42
43
|
*/
|
|
43
44
|
extendedFields?: ExtendedFields;
|
|
44
45
|
/**
|
|
45
|
-
*
|
|
46
|
+
* ID for the program definition defined by you. You can use `externalId` to filter queries.
|
|
46
47
|
* @format GUID
|
|
47
48
|
* @immutable
|
|
48
49
|
*/
|
|
@@ -68,7 +69,7 @@ export interface CreateProgramDefinitionResponse {
|
|
|
68
69
|
programDefinition?: ProgramDefinition;
|
|
69
70
|
}
|
|
70
71
|
export interface UpdateProgramDefinitionRequest {
|
|
71
|
-
/** Program definition to
|
|
72
|
+
/** Program definition to update. */
|
|
72
73
|
programDefinition: ProgramDefinition;
|
|
73
74
|
}
|
|
74
75
|
export interface UpdateProgramDefinitionResponse {
|
|
@@ -77,36 +78,21 @@ export interface UpdateProgramDefinitionResponse {
|
|
|
77
78
|
}
|
|
78
79
|
export interface DeleteProgramDefinitionRequest {
|
|
79
80
|
/**
|
|
80
|
-
* ID of the
|
|
81
|
+
* ID of the program definition to delete.
|
|
81
82
|
* @format GUID
|
|
82
83
|
*/
|
|
83
84
|
programDefinitionId: string;
|
|
84
|
-
/**
|
|
85
|
-
* Specifies the timing of ending the active benefit pools associated with this program definition.
|
|
86
|
-
* Determines how and when changes are applied to benefit pools.
|
|
87
|
-
*/
|
|
85
|
+
/** Determines when the changes to this program definition will be applied to associated programs and pools. */
|
|
88
86
|
cascadeType?: Cascade;
|
|
89
87
|
}
|
|
90
88
|
export declare enum Cascade {
|
|
91
89
|
/** Unknown cascade. */
|
|
92
90
|
UNKNOWN_CASCADE = "UNKNOWN_CASCADE",
|
|
93
|
-
/**
|
|
94
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition. The benefits will appear in existing programs at the beginning of their next renewal cycle.
|
|
95
|
-
*
|
|
96
|
-
* Existing programs will be updated in their next renewal cycle.
|
|
97
|
-
*/
|
|
91
|
+
/** Changes are applied to existing programs and pools when they are next renewed. */
|
|
98
92
|
NEXT_RENEWAL = "NEXT_RENEWAL",
|
|
99
|
-
/**
|
|
100
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition immediately.
|
|
101
|
-
*
|
|
102
|
-
* Existing programs will be updated immediately.
|
|
103
|
-
*/
|
|
93
|
+
/** Changes are applied to associated programs and pools immediately. */
|
|
104
94
|
IMMEDIATELY = "IMMEDIATELY",
|
|
105
|
-
/**
|
|
106
|
-
* Updates the associated benefit pools to reflect the new or modified pool definition the next time the benefit pools are provisioned to a program.
|
|
107
|
-
*
|
|
108
|
-
* Existing programs will remain unaffected. Only newly purchased programs will display the benefits of this pool definition.
|
|
109
|
-
*/
|
|
95
|
+
/** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
|
|
110
96
|
FUTURE_PROVISIONS = "FUTURE_PROVISIONS"
|
|
111
97
|
}
|
|
112
98
|
export interface DeleteProgramDefinitionResponse {
|
|
@@ -124,40 +110,36 @@ export interface GetProgramDefinitionResponse {
|
|
|
124
110
|
}
|
|
125
111
|
export interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
|
|
126
112
|
/**
|
|
127
|
-
*
|
|
113
|
+
* Namespace for your app or site's benefit programs.
|
|
128
114
|
* @minLength 1
|
|
129
115
|
* @maxLength 50
|
|
130
116
|
*/
|
|
131
117
|
namespace: string;
|
|
132
118
|
/**
|
|
133
|
-
*
|
|
119
|
+
* Program definition external ID.
|
|
134
120
|
* @format GUID
|
|
135
121
|
*/
|
|
136
122
|
externalId: string;
|
|
137
123
|
}
|
|
138
124
|
export interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
|
|
139
|
-
/**
|
|
125
|
+
/** Retrieved program definition. */
|
|
140
126
|
programDefinition?: ProgramDefinition;
|
|
141
127
|
}
|
|
142
128
|
export interface QueryProgramDefinitionsRequest {
|
|
143
|
-
/**
|
|
129
|
+
/** Filter, sort, and paging to apply to the query. */
|
|
144
130
|
query?: CursorQuery;
|
|
145
131
|
}
|
|
146
132
|
export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
147
133
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
148
134
|
cursorPaging?: CursorPaging;
|
|
149
135
|
/**
|
|
150
|
-
* Filter object
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* "fieldName2":{"$operator":"value2"}
|
|
154
|
-
* }`
|
|
155
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
136
|
+
* Filter object.
|
|
137
|
+
* See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
138
|
+
* for more information.
|
|
156
139
|
*/
|
|
157
140
|
filter?: Record<string, any> | null;
|
|
158
141
|
/**
|
|
159
|
-
*
|
|
160
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
142
|
+
* List of sort objects.
|
|
161
143
|
* @maxSize 5
|
|
162
144
|
*/
|
|
163
145
|
sort?: Sorting[];
|
|
@@ -169,11 +151,15 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
169
151
|
}
|
|
170
152
|
export interface Sorting {
|
|
171
153
|
/**
|
|
172
|
-
*
|
|
154
|
+
* Field to sort by.
|
|
173
155
|
* @maxLength 512
|
|
174
156
|
*/
|
|
175
157
|
fieldName?: string;
|
|
176
|
-
/**
|
|
158
|
+
/**
|
|
159
|
+
* Sort order. Use `ASC` for ascending order or `DESC` for descending order.
|
|
160
|
+
*
|
|
161
|
+
* Default: `ASC`
|
|
162
|
+
*/
|
|
177
163
|
order?: SortOrder;
|
|
178
164
|
}
|
|
179
165
|
export declare enum SortOrder {
|
|
@@ -184,7 +170,7 @@ export declare enum SortOrder {
|
|
|
184
170
|
}
|
|
185
171
|
export interface CursorPaging {
|
|
186
172
|
/**
|
|
187
|
-
* Maximum number of items to return
|
|
173
|
+
* Maximum number of items to return.
|
|
188
174
|
* @max 100
|
|
189
175
|
*/
|
|
190
176
|
limit?: number | null;
|
|
@@ -198,7 +184,7 @@ export interface CursorPaging {
|
|
|
198
184
|
cursor?: string | null;
|
|
199
185
|
}
|
|
200
186
|
export interface QueryProgramDefinitionsResponse {
|
|
201
|
-
/** List of program definitions. */
|
|
187
|
+
/** List of retrieved program definitions. */
|
|
202
188
|
programDefinitions?: ProgramDefinition[];
|
|
203
189
|
/** Metadata for the paginated results. */
|
|
204
190
|
metadata?: CursorPagingMetadata;
|
|
@@ -394,7 +380,7 @@ export declare enum WebhookIdentityType {
|
|
|
394
380
|
APP = "APP"
|
|
395
381
|
}
|
|
396
382
|
/**
|
|
397
|
-
* Creates a
|
|
383
|
+
* Creates a program definition.
|
|
398
384
|
* @param programDefinition - Program definition to create.
|
|
399
385
|
* @public
|
|
400
386
|
* @documentationMaturity preview
|
|
@@ -458,12 +444,12 @@ export interface UpdateProgramDefinition {
|
|
|
458
444
|
*/
|
|
459
445
|
_updatedDate?: Date | null;
|
|
460
446
|
/**
|
|
461
|
-
*
|
|
447
|
+
* Program definition name.
|
|
462
448
|
* @maxLength 64
|
|
463
449
|
*/
|
|
464
450
|
displayName?: string | null;
|
|
465
451
|
/**
|
|
466
|
-
*
|
|
452
|
+
* Namespace for your app or site's benefit programs.
|
|
467
453
|
* @immutable
|
|
468
454
|
* @minLength 1
|
|
469
455
|
* @maxLength 50
|
|
@@ -471,11 +457,12 @@ export interface UpdateProgramDefinition {
|
|
|
471
457
|
namespace?: string | null;
|
|
472
458
|
/**
|
|
473
459
|
* Custom field data for the program definition object.
|
|
460
|
+
*
|
|
474
461
|
* [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.
|
|
475
462
|
*/
|
|
476
463
|
extendedFields?: ExtendedFields;
|
|
477
464
|
/**
|
|
478
|
-
*
|
|
465
|
+
* ID for the program definition defined by you. You can use `externalId` to filter queries.
|
|
479
466
|
* @format GUID
|
|
480
467
|
* @immutable
|
|
481
468
|
*/
|
|
@@ -483,7 +470,7 @@ export interface UpdateProgramDefinition {
|
|
|
483
470
|
}
|
|
484
471
|
/**
|
|
485
472
|
* Deletes a program definition.
|
|
486
|
-
* @param programDefinitionId - ID of the
|
|
473
|
+
* @param programDefinitionId - ID of the program definition to delete.
|
|
487
474
|
* @public
|
|
488
475
|
* @documentationMaturity preview
|
|
489
476
|
* @requiredField programDefinitionId
|
|
@@ -495,10 +482,7 @@ export interface UpdateProgramDefinition {
|
|
|
495
482
|
*/
|
|
496
483
|
export declare function deleteProgramDefinition(programDefinitionId: string, options?: DeleteProgramDefinitionOptions): Promise<void>;
|
|
497
484
|
export interface DeleteProgramDefinitionOptions {
|
|
498
|
-
/**
|
|
499
|
-
* Specifies the timing of ending the active benefit pools associated with this program definition.
|
|
500
|
-
* Determines how and when changes are applied to benefit pools.
|
|
501
|
-
*/
|
|
485
|
+
/** Determines when the changes to this program definition will be applied to associated programs and pools. */
|
|
502
486
|
cascadeType?: Cascade;
|
|
503
487
|
}
|
|
504
488
|
/**
|
|
@@ -521,10 +505,8 @@ export interface DeleteProgramDefinitionOptions {
|
|
|
521
505
|
*/
|
|
522
506
|
export declare function getProgramDefinition(programDefinitionId: string): Promise<ProgramDefinition>;
|
|
523
507
|
/**
|
|
524
|
-
* Retrieves a program definition
|
|
525
|
-
*
|
|
526
|
-
* Use this method when you need to retrieve a program definition without its program definition ID.
|
|
527
|
-
* @param namespace - Application sub-module that represents the source of the program definition. Specified by the external developer. This namespace is used to handle and retrieve program definition and associated programs.
|
|
508
|
+
* Retrieves a program definition with the specified external ID and namespace.
|
|
509
|
+
* @param namespace - Namespace for your app or site's benefit programs.
|
|
528
510
|
* @public
|
|
529
511
|
* @documentationMaturity preview
|
|
530
512
|
* @requiredField namespace
|
|
@@ -544,7 +526,7 @@ export declare function getProgramDefinition(programDefinitionId: string): Promi
|
|
|
544
526
|
export declare function getProgramDefinitionByExternalIdAndNamespace(namespace: string, options: GetProgramDefinitionByExternalIdAndNamespaceOptions): Promise<GetProgramDefinitionByExternalIdAndNamespaceResponse>;
|
|
545
527
|
export interface GetProgramDefinitionByExternalIdAndNamespaceOptions {
|
|
546
528
|
/**
|
|
547
|
-
*
|
|
529
|
+
* Program definition external ID.
|
|
548
530
|
* @format GUID
|
|
549
531
|
*/
|
|
550
532
|
externalId: string;
|
|
@@ -552,13 +534,15 @@ export interface GetProgramDefinitionByExternalIdAndNamespaceOptions {
|
|
|
552
534
|
/**
|
|
553
535
|
* Creates a query to retrieve a list of program definitions.
|
|
554
536
|
*
|
|
555
|
-
* The
|
|
537
|
+
* The Query Program Definitions method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
|
|
538
|
+
*
|
|
539
|
+
* The returned object contains the query definition, which is used to run the query using the `find()` method.
|
|
556
540
|
*
|
|
557
|
-
*
|
|
541
|
+
* You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that Query Program Definitions returns.
|
|
558
542
|
*
|
|
559
|
-
*
|
|
543
|
+
* Query Program Definitions has a default paging limit of 50, which you can override.
|
|
560
544
|
*
|
|
561
|
-
*
|
|
545
|
+
* For a full description of the item object, see the object returned for the `items` property in `ProgramDefinitionsQueryResult`.
|
|
562
546
|
* @public
|
|
563
547
|
* @documentationMaturity preview
|
|
564
548
|
* @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
|