@wix/auto_sdk_benefit-programs_program-definitions 1.0.2 → 1.0.3

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.
Files changed (45) hide show
  1. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +8 -10
  2. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js +8 -10
  3. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
  4. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +10 -10
  5. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -1
  6. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +15 -29
  7. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js +3 -15
  8. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
  9. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +31 -47
  10. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +13 -25
  11. package/build/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
  12. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +8 -10
  13. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +8 -10
  14. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
  15. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +10 -10
  16. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -1
  17. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +15 -29
  18. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js +3 -15
  19. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
  20. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +31 -47
  21. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +13 -25
  22. package/build/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
  23. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +8 -10
  24. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js +8 -10
  25. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
  26. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +10 -10
  27. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -1
  28. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +15 -29
  29. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js +3 -15
  30. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
  31. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +31 -47
  32. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js +13 -25
  33. package/build/internal/cjs/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
  34. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.d.ts +8 -10
  35. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js +8 -10
  36. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.http.js.map +1 -1
  37. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.d.ts +10 -10
  38. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.public.js.map +1 -1
  39. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.d.ts +15 -29
  40. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.js +3 -15
  41. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.types.js.map +1 -1
  42. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.d.ts +31 -47
  43. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js +13 -25
  44. package/build/internal/es/src/benefit-programs-v1-program-definition-program-definitions.universal.js.map +1 -1
  45. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import { RequestOptionsFactory } from '@wix/sdk-types';
2
- /** Creates a new program definition. */
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 `queryProgramDefinitions()` method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
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
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/program-definitions/program-definitions-query-builder/find) function.
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
- * You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that `queryProgramDefinitions()` returns.
29
+ * Query Program Definitions has a default paging limit of 50, which you can override.
32
30
  *
33
- * The following `ProgramDefinitionsQueryBuilder` functions are supported for `queryProgramDefinitions()`. For a full description of the program definition object, see the object returned for the [`items`](/program-definitions/program-definitions-query-result/items) property in `ProgramDefinitionsQueryResult`.
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 new program definition. */
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 `queryProgramDefinitions()` method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
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
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/program-definitions/program-definitions-query-builder/find) function.
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
- * You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that `queryProgramDefinitions()` returns.
285
+ * Query Program Definitions has a default paging limit of 50, which you can override.
288
286
  *
289
- * The following `ProgramDefinitionsQueryBuilder` functions are supported for `queryProgramDefinitions()`. For a full description of the program definition object, see the object returned for the [`items`](/program-definitions/program-definitions-query-result/items) property in `ProgramDefinitionsQueryResult`.
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 }) {
@@ -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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;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,8CAA8C,CAAC;AACxD,CAAC;AAlCD,oGAkCC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,uBAAuB,CACrC,OAAe;IAEf,SAAS,yBAAyB,CAAC,EAAE,IAAI,EAAO;QAC9C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4CAA4C;YACxD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,6FAA6F;YAC/F,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,uEAAuE,CAC1E,EAAE,SAAS,EAAE,+BAA+B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CACpE;YACD,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,gCAAgC,EAAE;wBAC1C,EAAE,IAAI,EAAE,gCAAgC,EAAE;qBAC3C;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,yBAAyB,CAAC;AACnC,CAAC;AA9BD,0DA8BC"}
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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,IAAI;aACL,CACF;YACD,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,+BAA+B,EAAE;wBACzC,EAAE,IAAI,EAAE,+BAA+B,EAAE;qBAC1C;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,8CAA8C,CAAC;AACxD,CAAC;AAlCD,oGAkCC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,uBAAuB,CACrC,OAAe;IAEf,SAAS,yBAAyB,CAAC,EAAE,IAAI,EAAO;QAC9C,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,4CAA4C;YACxD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,6FAA6F;YAC/F,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,uEAAuE,CAC1E,EAAE,SAAS,EAAE,+BAA+B,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CACpE;YACD,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,gCAAgC,EAAE;wBAC1C,EAAE,IAAI,EAAE,gCAAgC,EAAE;qBAC3C;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,yBAAyB,CAAC;AACnC,CAAC;AA9BD,0DA8BC"}
@@ -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 new program definition.
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 ProgramDefinition to delete.
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 by specifying the program definition's external ID and associated namespace.
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 `queryProgramDefinitions()` method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
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
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/program-definitions/program-definitions-query-builder/find) function.
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
- * You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that `queryProgramDefinitions()` returns.
66
+ * Query Program Definitions has a default paging limit of 50, which you can override.
67
67
  *
68
- * The following `ProgramDefinitionsQueryBuilder` functions are supported for `queryProgramDefinitions()`. For a full description of the program definition object, see the object returned for the [`items`](/program-definitions/program-definitions-query-result/items) property in `ProgramDefinitionsQueryResult`.
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
  }
@@ -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;AAeD,SAAgB,uBAAuB,CACrC,UAAsB;IAEtB,OAAO,GAAG,EAAE,CACV,IAAA,iGAAgC;IAC9B,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0DAQC;AAiBD,qKA2CmF;AAzCjF,kKAAA,OAAO,OAAA;AAiCP,oKAAA,SAAS,OAAA;AAOT,8KAAA,mBAAmB,OAAA"}
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
- * Name of the program associated with this program definition. This name will be the same for all programs provisioned from this program definition.
28
+ * Program definition name.
29
29
  * @maxLength 64
30
30
  */
31
31
  displayName?: string | null;
32
32
  /**
33
- * 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.
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
- * External program definition ID designated by the app owner.
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 updated. */
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 ProgramDefinition to delete.
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,23 +110,23 @@ export interface GetProgramDefinitionResponse {
124
110
  }
125
111
  export interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
126
112
  /**
127
- * 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.
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
- * External program definition ID.
119
+ * Program definition external ID.
134
120
  * @format GUID
135
121
  */
136
122
  externalId: string;
137
123
  }
138
124
  export interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
139
- /** The retrieved program definition. */
125
+ /** Retrieved program definition. */
140
126
  programDefinition?: ProgramDefinition;
141
127
  }
142
128
  export interface QueryProgramDefinitionsRequest {
143
- /** Query to select program definitions. */
129
+ /** Filter, sort, and paging to apply to the query. */
144
130
  query?: CursorQuery;
145
131
  }
146
132
  export interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -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;
@@ -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":";;;AAgGA,IAAY,OAqBX;AArBD,WAAY,OAAO;IACjB,uBAAuB;IACvB,8CAAmC,CAAA;IACnC;;;;OAIG;IACH,wCAA6B,CAAA;IAC7B;;;;OAIG;IACH,sCAA2B,CAAA;IAC3B;;;;OAIG;IACH,kDAAuC,CAAA;AACzC,CAAC,EArBW,OAAO,uBAAP,OAAO,QAqBlB;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"}
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"}
@@ -25,12 +25,12 @@ export interface ProgramDefinition {
25
25
  */
26
26
  _updatedDate?: Date | null;
27
27
  /**
28
- * Name of the program associated with this program definition. This name will be the same for all programs provisioned from this program definition.
28
+ * Program definition name.
29
29
  * @maxLength 64
30
30
  */
31
31
  displayName?: string | null;
32
32
  /**
33
- * 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.
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
- * External program definition ID designated by the app owner.
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 updated. */
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 ProgramDefinition to delete.
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,23 +110,23 @@ export interface GetProgramDefinitionResponse {
124
110
  }
125
111
  export interface GetProgramDefinitionByExternalIdAndNamespaceRequest {
126
112
  /**
127
- * 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.
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
- * External program definition ID.
119
+ * Program definition external ID.
134
120
  * @format GUID
135
121
  */
136
122
  externalId: string;
137
123
  }
138
124
  export interface GetProgramDefinitionByExternalIdAndNamespaceResponse {
139
- /** The retrieved program definition. */
125
+ /** Retrieved program definition. */
140
126
  programDefinition?: ProgramDefinition;
141
127
  }
142
128
  export interface QueryProgramDefinitionsRequest {
143
- /** Query to select program definitions. */
129
+ /** Filter, sort, and paging to apply to the query. */
144
130
  query?: CursorQuery;
145
131
  }
146
132
  export interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -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 new program definition.
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
- * Name of the program associated with this program definition. This name will be the same for all programs provisioned from this program definition.
447
+ * Program definition name.
462
448
  * @maxLength 64
463
449
  */
464
450
  displayName?: string | null;
465
451
  /**
466
- * 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.
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
- * External program definition ID designated by the app owner.
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 ProgramDefinition to delete.
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 by specifying the program definition's external ID and associated namespace.
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
- * External program definition ID.
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 `queryProgramDefinitions()` method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
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
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/program-definitions/program-definitions-query-builder/find) function.
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
- * You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that `queryProgramDefinitions()` returns.
543
+ * Query Program Definitions has a default paging limit of 50, which you can override.
560
544
  *
561
- * The following `ProgramDefinitionsQueryBuilder` functions are supported for `queryProgramDefinitions()`. For a full description of the program definition object, see the object returned for the [`items`](/program-definitions/program-definitions-query-result/items) property in `ProgramDefinitionsQueryResult`.
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
@@ -32,23 +32,11 @@ var Cascade;
32
32
  (function (Cascade) {
33
33
  /** Unknown cascade. */
34
34
  Cascade["UNKNOWN_CASCADE"] = "UNKNOWN_CASCADE";
35
- /**
36
- * 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.
37
- *
38
- * Existing programs will be updated in their next renewal cycle.
39
- */
35
+ /** Changes are applied to existing programs and pools when they are next renewed. */
40
36
  Cascade["NEXT_RENEWAL"] = "NEXT_RENEWAL";
41
- /**
42
- * Updates the associated benefit pools to reflect the new or modified pool definition immediately.
43
- *
44
- * Existing programs will be updated immediately.
45
- */
37
+ /** Changes are applied to associated programs and pools immediately. */
46
38
  Cascade["IMMEDIATELY"] = "IMMEDIATELY";
47
- /**
48
- * Updates the associated benefit pools to reflect the new or modified pool definition the next time the benefit pools are provisioned to a program.
49
- *
50
- * Existing programs will remain unaffected. Only newly purchased programs will display the benefits of this pool definition.
51
- */
39
+ /** Changes are not applied to existing associated programs and pools. They are only applied to future programs and pools. */
52
40
  Cascade["FUTURE_PROVISIONS"] = "FUTURE_PROVISIONS";
53
41
  })(Cascade || (exports.Cascade = Cascade = {}));
54
42
  var SortOrder;
@@ -67,7 +55,7 @@ var WebhookIdentityType;
67
55
  WebhookIdentityType["APP"] = "APP";
68
56
  })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
69
57
  /**
70
- * Creates a new program definition.
58
+ * Creates a program definition.
71
59
  * @param programDefinition - Program definition to create.
72
60
  * @public
73
61
  * @documentationMaturity preview
@@ -154,7 +142,7 @@ async function updateProgramDefinition(_id, programDefinition) {
154
142
  exports.updateProgramDefinition = updateProgramDefinition;
155
143
  /**
156
144
  * Deletes a program definition.
157
- * @param programDefinitionId - ID of the ProgramDefinition to delete.
145
+ * @param programDefinitionId - ID of the program definition to delete.
158
146
  * @public
159
147
  * @documentationMaturity preview
160
148
  * @requiredField programDefinitionId
@@ -235,10 +223,8 @@ async function getProgramDefinition(programDefinitionId) {
235
223
  }
236
224
  exports.getProgramDefinition = getProgramDefinition;
237
225
  /**
238
- * Retrieves a program definition by specifying the program definition's external ID and associated namespace.
239
- *
240
- * Use this method when you need to retrieve a program definition without its program definition ID.
241
- * @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.
226
+ * Retrieves a program definition with the specified external ID and namespace.
227
+ * @param namespace - Namespace for your app or site's benefit programs.
242
228
  * @public
243
229
  * @documentationMaturity preview
244
230
  * @requiredField namespace
@@ -286,13 +272,15 @@ exports.getProgramDefinitionByExternalIdAndNamespace = getProgramDefinitionByExt
286
272
  /**
287
273
  * Creates a query to retrieve a list of program definitions.
288
274
  *
289
- * The `queryProgramDefinitions()` method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
275
+ * The Query Program Definitions method builds a query to retrieve a list of program definitions and returns a `ProgramDefinitionsQueryBuilder` object.
276
+ *
277
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
290
278
  *
291
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/program-definitions/program-definitions-query-builder/find) function.
279
+ * 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.
292
280
  *
293
- * You can refine the query by chaining `ProgramDefinitionsQueryBuilder` methods onto the query. `ProgramDefinitionsQueryBuilder` methods enable you to filter, sort, and control the results that `queryProgramDefinitions()` returns.
281
+ * Query Program Definitions has a default paging limit of 50, which you can override.
294
282
  *
295
- * The following `ProgramDefinitionsQueryBuilder` functions are supported for `queryProgramDefinitions()`. For a full description of the program definition object, see the object returned for the [`items`](/program-definitions/program-definitions-query-result/items) property in `ProgramDefinitionsQueryResult`.
283
+ * For a full description of the item object, see the object returned for the `items` property in `ProgramDefinitionsQueryResult`.
296
284
  * @public
297
285
  * @documentationMaturity preview
298
286
  * @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE