@wix/auto_sdk_benefit-programs_programs 1.0.6 → 1.0.7

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 (57) hide show
  1. package/build/cjs/src/benefit-programs-v1-program-programs.context.d.ts +1 -1
  2. package/build/cjs/src/benefit-programs-v1-program-programs.http.d.ts +4 -8
  3. package/build/cjs/src/benefit-programs-v1-program-programs.http.js +4 -8
  4. package/build/cjs/src/benefit-programs-v1-program-programs.http.js.map +1 -1
  5. package/build/cjs/src/benefit-programs-v1-program-programs.meta.d.ts +9 -9
  6. package/build/cjs/src/benefit-programs-v1-program-programs.meta.js.map +1 -1
  7. package/build/cjs/src/benefit-programs-v1-program-programs.public.d.ts +14 -16
  8. package/build/cjs/src/benefit-programs-v1-program-programs.public.js.map +1 -1
  9. package/build/cjs/src/benefit-programs-v1-program-programs.types.d.ts +13 -57
  10. package/build/cjs/src/benefit-programs-v1-program-programs.types.js +4 -4
  11. package/build/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  12. package/build/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +34 -73
  13. package/build/cjs/src/benefit-programs-v1-program-programs.universal.js +8 -10
  14. package/build/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  15. package/build/es/src/benefit-programs-v1-program-programs.context.d.ts +1 -1
  16. package/build/es/src/benefit-programs-v1-program-programs.http.d.ts +4 -8
  17. package/build/es/src/benefit-programs-v1-program-programs.http.js +4 -8
  18. package/build/es/src/benefit-programs-v1-program-programs.http.js.map +1 -1
  19. package/build/es/src/benefit-programs-v1-program-programs.meta.d.ts +9 -9
  20. package/build/es/src/benefit-programs-v1-program-programs.meta.js.map +1 -1
  21. package/build/es/src/benefit-programs-v1-program-programs.public.d.ts +14 -16
  22. package/build/es/src/benefit-programs-v1-program-programs.public.js.map +1 -1
  23. package/build/es/src/benefit-programs-v1-program-programs.types.d.ts +13 -57
  24. package/build/es/src/benefit-programs-v1-program-programs.types.js +4 -4
  25. package/build/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  26. package/build/es/src/benefit-programs-v1-program-programs.universal.d.ts +34 -73
  27. package/build/es/src/benefit-programs-v1-program-programs.universal.js +8 -10
  28. package/build/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  29. package/build/internal/cjs/src/benefit-programs-v1-program-programs.context.d.ts +1 -1
  30. package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.d.ts +4 -8
  31. package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.js +4 -8
  32. package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.js.map +1 -1
  33. package/build/internal/cjs/src/benefit-programs-v1-program-programs.meta.d.ts +9 -9
  34. package/build/internal/cjs/src/benefit-programs-v1-program-programs.meta.js.map +1 -1
  35. package/build/internal/cjs/src/benefit-programs-v1-program-programs.public.d.ts +14 -16
  36. package/build/internal/cjs/src/benefit-programs-v1-program-programs.public.js.map +1 -1
  37. package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.d.ts +13 -57
  38. package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js +4 -4
  39. package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  40. package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +34 -73
  41. package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js +8 -10
  42. package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  43. package/build/internal/es/src/benefit-programs-v1-program-programs.context.d.ts +1 -1
  44. package/build/internal/es/src/benefit-programs-v1-program-programs.http.d.ts +4 -8
  45. package/build/internal/es/src/benefit-programs-v1-program-programs.http.js +4 -8
  46. package/build/internal/es/src/benefit-programs-v1-program-programs.http.js.map +1 -1
  47. package/build/internal/es/src/benefit-programs-v1-program-programs.meta.d.ts +9 -9
  48. package/build/internal/es/src/benefit-programs-v1-program-programs.meta.js.map +1 -1
  49. package/build/internal/es/src/benefit-programs-v1-program-programs.public.d.ts +14 -16
  50. package/build/internal/es/src/benefit-programs-v1-program-programs.public.js.map +1 -1
  51. package/build/internal/es/src/benefit-programs-v1-program-programs.types.d.ts +13 -57
  52. package/build/internal/es/src/benefit-programs-v1-program-programs.types.js +4 -4
  53. package/build/internal/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  54. package/build/internal/es/src/benefit-programs-v1-program-programs.universal.d.ts +34 -73
  55. package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js +8 -10
  56. package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  57. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { EndProgramResponse, EndProgramResponseNonNullableFields, GetProgramByExternalIdAndNamespaceOptions, GetProgramByExternalIdAndNamespaceResponse, GetProgramByExternalIdAndNamespaceResponseNonNullableFields, PauseProgramResponse, PauseProgramResponseNonNullableFields, PoolDefinitionLookupId, Program, ProgramNonNullableFields, ProgramsQueryBuilder, ProvisionProgramOptions, ProvisionProgramResponse, ProvisionProgramResponseNonNullableFields, RenewProgramResponse, RenewProgramResponseNonNullableFields, ResumeProgramResponse, ResumeProgramResponseNonNullableFields, UpdateProgram } from './benefit-programs-v1-program-programs.universal.js';
2
+ import { EndProgramResponse, GetProgramByExternalIdAndNamespaceOptions, GetProgramByExternalIdAndNamespaceResponse, PauseProgramResponse, PoolDefinitionLookupId, Program, ProgramsQueryBuilder, ProvisionProgramOptions, ProvisionProgramResponse, RenewProgramResponse, ResumeProgramResponse, UpdateProgram } from './benefit-programs-v1-program-programs.universal.js';
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
@@ -9,21 +9,21 @@ interface ProvisionProgramSignature {
9
9
  * Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
10
10
  *
11
11
  * You can provision a program from a program definition or a pool definition:
12
- * - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
13
- * - **Pool definition**: The program has 1 pool that is created from the pool definition.
12
+ * - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
13
+ * - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
14
14
  * @param - The program definition or pool definition to use to provision the program.
15
15
  */
16
- (poolDefinitionLookupId: PoolDefinitionLookupId, options?: ProvisionProgramOptions | undefined): Promise<ProvisionProgramResponse & ProvisionProgramResponseNonNullableFields>;
16
+ (poolDefinitionLookupId: PoolDefinitionLookupId, options?: ProvisionProgramOptions | undefined): Promise<ProvisionProgramResponse>;
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
- * Balances are handled for each pool in the program as defined in the pool's credit configuration.
23
+ * The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
24
24
  * @param - ID of the program to renew.
25
25
  */
26
- (programId: string): Promise<RenewProgramResponse & RenewProgramResponseNonNullableFields>;
26
+ (programId: string): Promise<RenewProgramResponse>;
27
27
  }
28
28
  export declare function pauseProgram(httpClient: HttpClient): PauseProgramSignature;
29
29
  interface PauseProgramSignature {
@@ -31,7 +31,7 @@ interface PauseProgramSignature {
31
31
  * Pauses the specified program. Benefits in the program's pools can't be redeemed until the program is resumed.
32
32
  * @param - ID of the program to pause.
33
33
  */
34
- (programId: string): Promise<PauseProgramResponse & PauseProgramResponseNonNullableFields>;
34
+ (programId: string): Promise<PauseProgramResponse>;
35
35
  }
36
36
  export declare function resumeProgram(httpClient: HttpClient): ResumeProgramSignature;
37
37
  interface ResumeProgramSignature {
@@ -41,17 +41,15 @@ interface ResumeProgramSignature {
41
41
  * Call this method for paused programs.
42
42
  * @param - ID of program to resume.
43
43
  */
44
- (programId: string): Promise<ResumeProgramResponse & ResumeProgramResponseNonNullableFields>;
44
+ (programId: string): Promise<ResumeProgramResponse>;
45
45
  }
46
46
  export declare function endProgram(httpClient: HttpClient): EndProgramSignature;
47
47
  interface EndProgramSignature {
48
48
  /**
49
49
  * Ends the specified program.
50
- *
51
- * Benefits in the program's pools can't be redeemed until the program is resumed.
52
50
  * @param - ID of the program to end.
53
51
  */
54
- (programId: string): Promise<EndProgramResponse & EndProgramResponseNonNullableFields>;
52
+ (programId: string): Promise<EndProgramResponse>;
55
53
  }
56
54
  export declare function updateProgram(httpClient: HttpClient): UpdateProgramSignature;
57
55
  interface UpdateProgramSignature {
@@ -66,7 +64,7 @@ interface UpdateProgramSignature {
66
64
  * @param - Program ID.
67
65
  * @returns Updated program.
68
66
  */
69
- (_id: string | null, program: UpdateProgram): Promise<Program & ProgramNonNullableFields>;
67
+ (_id: string, program: UpdateProgram): Promise<Program>;
70
68
  }
71
69
  export declare function getProgram(httpClient: HttpClient): GetProgramSignature;
72
70
  interface GetProgramSignature {
@@ -75,7 +73,7 @@ interface GetProgramSignature {
75
73
  * @param - ID of the program to retrieve.
76
74
  * @returns Retrieved program.
77
75
  */
78
- (programId: string): Promise<Program & ProgramNonNullableFields>;
76
+ (programId: string): Promise<Program>;
79
77
  }
80
78
  export declare function queryPrograms(httpClient: HttpClient): QueryProgramsSignature;
81
79
  interface QueryProgramsSignature {
@@ -98,8 +96,8 @@ export declare function getProgramByExternalIdAndNamespace(httpClient: HttpClien
98
96
  interface GetProgramByExternalIdAndNamespaceSignature {
99
97
  /**
100
98
  * Retrieves a program with the specified external ID and namespace.
101
- * @param - Namespace for your app or site's benefit programs.
99
+ * @param - Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
102
100
  */
103
- (namespace: string, options: GetProgramByExternalIdAndNamespaceOptions): Promise<GetProgramByExternalIdAndNamespaceResponse & GetProgramByExternalIdAndNamespaceResponseNonNullableFields>;
101
+ (namespace: string, options: GetProgramByExternalIdAndNamespaceOptions): Promise<GetProgramByExternalIdAndNamespaceResponse>;
104
102
  }
105
- export { ActionEvent, CommonIdentificationData, CommonIdentificationDataIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EndProgramRequest, EndProgramResponse, EndProgramResponseNonNullableFields, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetProgramByExternalIdAndNamespaceOptions, GetProgramByExternalIdAndNamespaceRequest, GetProgramByExternalIdAndNamespaceResponse, GetProgramByExternalIdAndNamespaceResponseNonNullableFields, GetProgramRequest, GetProgramResponse, GetProgramResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, IdentityType, MessageEnvelope, OrderStatus, PauseProgramRequest, PauseProgramResponse, PauseProgramResponseNonNullableFields, PoolDefinitionLookupId, PoolDefinitionLookupIdIdOneOf, Program, ProgramAlreadyExists, ProgramDefinitionInfo, ProgramEnded, ProgramNonNullableFields, ProgramPaused, ProgramProvisioned, ProgramRenewed, ProgramResumed, ProgramStatus, ProgramStatusTransitionNotAllowed, ProgramsQueryBuilder, ProgramsQueryResult, ProvisionProgramOptions, ProvisionProgramRequest, ProvisionProgramRequestProgramStatus, ProvisionProgramResponse, ProvisionProgramResponseNonNullableFields, QueryProgramsRequest, QueryProgramsResponse, QueryProgramsResponseNonNullableFields, RenewProgramRequest, RenewProgramResponse, RenewProgramResponseNonNullableFields, RestoreInfo, ResumeProgramRequest, ResumeProgramResponse, ResumeProgramResponseNonNullableFields, SortOrder, Sorting, UpdateProgram, UpdateProgramRequest, UpdateProgramResponse, UpdateProgramResponseNonNullableFields, UpdateProgramStatusRequest, UpdateProgramStatusResponse, UpsertMigratedProgramRequest, UpsertMigratedProgramResponse, WebhookIdentityType, } from './benefit-programs-v1-program-programs.universal.js';
103
+ export { ActionEvent, CommonIdentificationData, CommonIdentificationDataIdOneOf, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EndProgramRequest, EndProgramResponse, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, GetProgramByExternalIdAndNamespaceOptions, GetProgramByExternalIdAndNamespaceRequest, GetProgramByExternalIdAndNamespaceResponse, GetProgramRequest, GetProgramResponse, IdentificationData, IdentificationDataIdOneOf, IdentityType, MessageEnvelope, OrderStatus, PauseProgramRequest, PauseProgramResponse, PoolDefinitionLookupId, PoolDefinitionLookupIdIdOneOf, Program, ProgramAlreadyExists, ProgramDefinitionInfo, ProgramEnded, ProgramPaused, ProgramProvisioned, ProgramRenewed, ProgramResumed, ProgramStatus, ProgramStatusTransitionNotAllowed, ProgramsQueryBuilder, ProgramsQueryResult, ProvisionProgramOptions, ProvisionProgramRequest, ProvisionProgramRequestProgramStatus, ProvisionProgramResponse, QueryProgramsRequest, QueryProgramsResponse, RenewProgramRequest, RenewProgramResponse, RestoreInfo, ResumeProgramRequest, ResumeProgramResponse, SortOrder, Sorting, UpdateProgram, UpdateProgramRequest, UpdateProgramResponse, UpdateProgramStatusRequest, UpdateProgramStatusResponse, UpsertMigratedProgramRequest, UpsertMigratedProgramResponse, WebhookIdentityType, } from './benefit-programs-v1-program-programs.universal.js';
@@ -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;AAcD,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;AAYD,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,sBAAsB,CACpB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAcD,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;AAcD,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,GAAkB,EAAE,OAAsB,EAAE,EAAE,CACpD,sBAAsB,CACpB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,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;AAgBD,OAAO,EA2BL,YAAY,EAEZ,WAAW,EAeX,aAAa,EAMb,oCAAoC,EAapC,SAAS,EAUT,mBAAmB,GACpB,MAAM,qDAAqD,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,EAaL,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,OAGC,EACD,EAAE,CACF,yBAAyB,CACvB,sBAAsB,EACtB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAiBD,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;AAYD,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;AAUD,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,SAAiB,EAAE,EAAE,CAC3B,sBAAsB,CACpB,SAAS;IACT,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAYD,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;AAUD,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,CAAC,GAAW,EAAE,OAAoD,EAAE,EAAE,CAC3E,sBAAsB,CACpB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAiBD,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,OAGC,EACD,EAAE,CACF,2CAA2C,CACzC,SAAS,EACT,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAaD,OAAO,EAwBL,YAAY,EAEZ,WAAW,EAaX,aAAa,EAMb,oCAAoC,EASpC,SAAS,EAST,mBAAmB,GACpB,MAAM,qDAAqD,CAAC"}
@@ -50,7 +50,7 @@ export interface Program {
50
50
  */
51
51
  displayName?: string | null;
52
52
  /**
53
- * Namespace for your app or site's benefit programs.
53
+ * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
54
54
  * @minLength 1
55
55
  * @maxLength 50
56
56
  * @immutable
@@ -85,13 +85,13 @@ export declare enum ProgramStatus {
85
85
  PAUSED = "PAUSED",
86
86
  /** Program has ended. It can't be resumed. */
87
87
  ENDED = "ENDED",
88
- /** Program is being activated for the first time. This status will be true for a negligible amount of time. */
88
+ /** Program is being activated for the first time. This status exists for a short time during processing. */
89
89
  PROVISIONING = "PROVISIONING",
90
- /** Program is being paused. This status will be true for a negligible amount of time. */
90
+ /** Program is being paused. This status exists for a short time during processing. */
91
91
  PAUSING = "PAUSING",
92
- /** Program is being re-activated after being paused. This status will be true for a negligible amount of time. */
92
+ /** Program is being re-activated after being paused. This status exists for a short time during processing. */
93
93
  RESUMING = "RESUMING",
94
- /** Program is being ended. This status will be true for a negligible amount of time. */
94
+ /** Program is being ended. This status exists for a short time during processing. */
95
95
  ENDING = "ENDING"
96
96
  }
97
97
  export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
@@ -197,7 +197,7 @@ export interface ProvisionProgramRequest {
197
197
  */
198
198
  programStatus?: ProvisionProgramRequestProgramStatus;
199
199
  /**
200
- * Namespace for your app or site's benefit programs.
200
+ * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
201
201
  * @minLength 1
202
202
  * @maxLength 50
203
203
  */
@@ -205,7 +205,7 @@ export interface ProvisionProgramRequest {
205
205
  /**
206
206
  * Program name.
207
207
  *
208
- * If you're provisioning the program from a program definition, you may want to use the same name that used for the program definition.
208
+ * If you're provisioning the program from a program definition, you may want to use the same name that was used for the program definition.
209
209
  * @maxLength 64
210
210
  */
211
211
  displayName?: string | null;
@@ -248,7 +248,7 @@ export declare enum ProvisionProgramRequestProgramStatus {
248
248
  }
249
249
  export interface ProvisionProgramResponse {
250
250
  /**
251
- * Job ID of the provisioning of the program.
251
+ * Job ID of the provisioning of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
252
252
  * @format GUID
253
253
  */
254
254
  jobId?: string;
@@ -277,7 +277,7 @@ export interface RenewProgramRequest {
277
277
  }
278
278
  export interface RenewProgramResponse {
279
279
  /**
280
- * Job ID of the program renewal.
280
+ * Job ID of the program renewal. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
281
281
  * @format GUID
282
282
  */
283
283
  jobId?: string;
@@ -291,7 +291,7 @@ export interface PauseProgramRequest {
291
291
  }
292
292
  export interface PauseProgramResponse {
293
293
  /**
294
- * Job ID of the pausing of the program.
294
+ * Job ID of the pausing of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
295
295
  * @format GUID
296
296
  */
297
297
  jobId?: string;
@@ -311,7 +311,7 @@ export interface ResumeProgramRequest {
311
311
  }
312
312
  export interface ResumeProgramResponse {
313
313
  /**
314
- * Job ID of the resuming of the program.
314
+ * Job ID of the resuming of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
315
315
  * @format GUID
316
316
  */
317
317
  jobId?: string;
@@ -325,7 +325,7 @@ export interface EndProgramRequest {
325
325
  }
326
326
  export interface EndProgramResponse {
327
327
  /**
328
- * Job ID of the ending of the program.
328
+ * Job ID of the ending of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
329
329
  * @format GUID
330
330
  */
331
331
  jobId?: string;
@@ -491,7 +491,7 @@ export interface Cursors {
491
491
  }
492
492
  export interface GetProgramByExternalIdAndNamespaceRequest {
493
493
  /**
494
- * Namespace for your app or site's benefit programs.
494
+ * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
495
495
  * @minLength 1
496
496
  * @maxLength 50
497
497
  */
@@ -648,47 +648,3 @@ export declare enum WebhookIdentityType {
648
648
  WIX_USER = "WIX_USER",
649
649
  APP = "APP"
650
650
  }
651
- interface CommonIdentificationDataNonNullableFields {
652
- anonymousVisitorId: string;
653
- memberId: string;
654
- wixUserId: string;
655
- identityType: IdentityType;
656
- }
657
- interface ProgramDefinitionInfoNonNullableFields {
658
- id: string;
659
- }
660
- interface ProgramNonNullableFields {
661
- status: ProgramStatus;
662
- beneficiary?: CommonIdentificationDataNonNullableFields;
663
- programDefinition?: ProgramDefinitionInfoNonNullableFields;
664
- targetStatus: ProgramStatus;
665
- }
666
- export interface ProvisionProgramResponseNonNullableFields {
667
- jobId: string;
668
- program?: ProgramNonNullableFields;
669
- }
670
- export interface RenewProgramResponseNonNullableFields {
671
- jobId: string;
672
- }
673
- export interface PauseProgramResponseNonNullableFields {
674
- jobId: string;
675
- }
676
- export interface ResumeProgramResponseNonNullableFields {
677
- jobId: string;
678
- }
679
- export interface EndProgramResponseNonNullableFields {
680
- jobId: string;
681
- }
682
- export interface UpdateProgramResponseNonNullableFields {
683
- program?: ProgramNonNullableFields;
684
- }
685
- export interface GetProgramResponseNonNullableFields {
686
- program?: ProgramNonNullableFields;
687
- }
688
- export interface QueryProgramsResponseNonNullableFields {
689
- programs: ProgramNonNullableFields[];
690
- }
691
- export interface GetProgramByExternalIdAndNamespaceResponseNonNullableFields {
692
- program?: ProgramNonNullableFields;
693
- }
694
- export {};
@@ -8,13 +8,13 @@ export var ProgramStatus;
8
8
  ProgramStatus["PAUSED"] = "PAUSED";
9
9
  /** Program has ended. It can't be resumed. */
10
10
  ProgramStatus["ENDED"] = "ENDED";
11
- /** Program is being activated for the first time. This status will be true for a negligible amount of time. */
11
+ /** Program is being activated for the first time. This status exists for a short time during processing. */
12
12
  ProgramStatus["PROVISIONING"] = "PROVISIONING";
13
- /** Program is being paused. This status will be true for a negligible amount of time. */
13
+ /** Program is being paused. This status exists for a short time during processing. */
14
14
  ProgramStatus["PAUSING"] = "PAUSING";
15
- /** Program is being re-activated after being paused. This status will be true for a negligible amount of time. */
15
+ /** Program is being re-activated after being paused. This status exists for a short time during processing. */
16
16
  ProgramStatus["RESUMING"] = "RESUMING";
17
- /** Program is being ended. This status will be true for a negligible amount of time. */
17
+ /** Program is being ended. This status exists for a short time during processing. */
18
18
  ProgramStatus["ENDING"] = "ENDING";
19
19
  })(ProgramStatus || (ProgramStatus = {}));
20
20
  export var IdentityType;
@@ -1 +1 @@
1
- {"version":3,"file":"benefit-programs-v1-program-programs.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.types.ts"],"names":[],"mappings":"AA+EA,MAAM,CAAN,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf,+GAA+G;IAC/G,8CAA6B,CAAA;IAC7B,yFAAyF;IACzF,oCAAmB,CAAA;IACnB,kHAAkH;IAClH,sCAAqB,CAAA;IACrB,wFAAwF;IACxF,kCAAiB,CAAA;AACnB,CAAC,EAjBW,aAAa,KAAb,aAAa,QAiBxB;AAwCD,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,4CAA4C;IAC5C,mCAAmB,CAAA;IACnB,4CAA4C;IAC5C,uDAAuC,CAAA;IACvC,+BAA+B;IAC/B,iCAAiB,CAAA;IACjB,iEAAiE;IACjE,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAiHD,MAAM,CAAN,IAAY,oCAKX;AALD,WAAY,oCAAoC;IAC9C,yBAAyB;IACzB,yDAAiB,CAAA;IACjB,yBAAyB;IACzB,yDAAiB,CAAA;AACnB,CAAC,EALW,oCAAoC,KAApC,oCAAoC,QAK/C;AA6ID,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAuED,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAwND,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"benefit-programs-v1-program-programs.types.js","sourceRoot":"","sources":["../../../src/benefit-programs-v1-program-programs.types.ts"],"names":[],"mappings":"AA+EA,MAAM,CAAN,IAAY,aAiBX;AAjBD,WAAY,aAAa;IACvB,gCAAgC;IAChC,wCAAuB,CAAA;IACvB,yBAAyB;IACzB,kCAAiB,CAAA;IACjB,4CAA4C;IAC5C,kCAAiB,CAAA;IACjB,8CAA8C;IAC9C,gCAAe,CAAA;IACf,4GAA4G;IAC5G,8CAA6B,CAAA;IAC7B,sFAAsF;IACtF,oCAAmB,CAAA;IACnB,+GAA+G;IAC/G,sCAAqB,CAAA;IACrB,qFAAqF;IACrF,kCAAiB,CAAA;AACnB,CAAC,EAjBW,aAAa,KAAb,aAAa,QAiBxB;AAwCD,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,4CAA4C;IAC5C,mCAAmB,CAAA;IACnB,4CAA4C;IAC5C,uDAAuC,CAAA;IACvC,+BAA+B;IAC/B,iCAAiB,CAAA;IACjB,iEAAiE;IACjE,qCAAqB,CAAA;AACvB,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AAiHD,MAAM,CAAN,IAAY,oCAKX;AALD,WAAY,oCAAoC;IAC9C,yBAAyB;IACzB,yDAAiB,CAAA;IACjB,yBAAyB;IACzB,yDAAiB,CAAA;AACnB,CAAC,EALW,oCAAoC,KAApC,oCAAoC,QAK/C;AA6ID,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAuED,MAAM,CAAN,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,4BAA4B;IAC5B,wBAAW,CAAA;IACX,6BAA6B;IAC7B,0BAAa,CAAA;AACf,CAAC,EALW,SAAS,KAAT,SAAS,QAKpB;AAwND,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -1,3 +1,4 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
1
2
  export interface Program {
2
3
  /**
3
4
  * Program ID.
@@ -50,7 +51,7 @@ export interface Program {
50
51
  */
51
52
  displayName?: string | null;
52
53
  /**
53
- * Namespace for your app or site's benefit programs.
54
+ * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
54
55
  * @minLength 1
55
56
  * @maxLength 50
56
57
  * @immutable
@@ -85,13 +86,13 @@ export declare enum ProgramStatus {
85
86
  PAUSED = "PAUSED",
86
87
  /** Program has ended. It can't be resumed. */
87
88
  ENDED = "ENDED",
88
- /** Program is being activated for the first time. This status will be true for a negligible amount of time. */
89
+ /** Program is being activated for the first time. This status exists for a short time during processing. */
89
90
  PROVISIONING = "PROVISIONING",
90
- /** Program is being paused. This status will be true for a negligible amount of time. */
91
+ /** Program is being paused. This status exists for a short time during processing. */
91
92
  PAUSING = "PAUSING",
92
- /** Program is being re-activated after being paused. This status will be true for a negligible amount of time. */
93
+ /** Program is being re-activated after being paused. This status exists for a short time during processing. */
93
94
  RESUMING = "RESUMING",
94
- /** Program is being ended. This status will be true for a negligible amount of time. */
95
+ /** Program is being ended. This status exists for a short time during processing. */
95
96
  ENDING = "ENDING"
96
97
  }
97
98
  export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
@@ -197,7 +198,7 @@ export interface ProvisionProgramRequest {
197
198
  */
198
199
  programStatus?: ProvisionProgramRequestProgramStatus;
199
200
  /**
200
- * Namespace for your app or site's benefit programs.
201
+ * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
201
202
  * @minLength 1
202
203
  * @maxLength 50
203
204
  */
@@ -205,7 +206,7 @@ export interface ProvisionProgramRequest {
205
206
  /**
206
207
  * Program name.
207
208
  *
208
- * If you're provisioning the program from a program definition, you may want to use the same name that used for the program definition.
209
+ * If you're provisioning the program from a program definition, you may want to use the same name that was used for the program definition.
209
210
  * @maxLength 64
210
211
  */
211
212
  displayName?: string | null;
@@ -248,7 +249,7 @@ export declare enum ProvisionProgramRequestProgramStatus {
248
249
  }
249
250
  export interface ProvisionProgramResponse {
250
251
  /**
251
- * Job ID of the provisioning of the program.
252
+ * Job ID of the provisioning of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
252
253
  * @format GUID
253
254
  */
254
255
  jobId?: string;
@@ -277,7 +278,7 @@ export interface RenewProgramRequest {
277
278
  }
278
279
  export interface RenewProgramResponse {
279
280
  /**
280
- * Job ID of the program renewal.
281
+ * Job ID of the program renewal. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
281
282
  * @format GUID
282
283
  */
283
284
  jobId?: string;
@@ -291,7 +292,7 @@ export interface PauseProgramRequest {
291
292
  }
292
293
  export interface PauseProgramResponse {
293
294
  /**
294
- * Job ID of the pausing of the program.
295
+ * Job ID of the pausing of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
295
296
  * @format GUID
296
297
  */
297
298
  jobId?: string;
@@ -311,7 +312,7 @@ export interface ResumeProgramRequest {
311
312
  }
312
313
  export interface ResumeProgramResponse {
313
314
  /**
314
- * Job ID of the resuming of the program.
315
+ * Job ID of the resuming of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
315
316
  * @format GUID
316
317
  */
317
318
  jobId?: string;
@@ -325,7 +326,7 @@ export interface EndProgramRequest {
325
326
  }
326
327
  export interface EndProgramResponse {
327
328
  /**
328
- * Job ID of the ending of the program.
329
+ * Job ID of the ending of the program. Retrieve job details using the Async Job API ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/introduction) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/introduction)).
329
330
  * @format GUID
330
331
  */
331
332
  jobId?: string;
@@ -491,7 +492,7 @@ export interface Cursors {
491
492
  }
492
493
  export interface GetProgramByExternalIdAndNamespaceRequest {
493
494
  /**
494
- * Namespace for your app or site's benefit programs.
495
+ * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
495
496
  * @minLength 1
496
497
  * @maxLength 50
497
498
  */
@@ -646,55 +647,13 @@ export declare enum WebhookIdentityType {
646
647
  WIX_USER = "WIX_USER",
647
648
  APP = "APP"
648
649
  }
649
- interface CommonIdentificationDataNonNullableFields {
650
- anonymousVisitorId: string;
651
- memberId: string;
652
- wixUserId: string;
653
- identityType: IdentityType;
654
- }
655
- interface ProgramDefinitionInfoNonNullableFields {
656
- _id: string;
657
- }
658
- export interface ProgramNonNullableFields {
659
- status: ProgramStatus;
660
- beneficiary?: CommonIdentificationDataNonNullableFields;
661
- programDefinition?: ProgramDefinitionInfoNonNullableFields;
662
- targetStatus: ProgramStatus;
663
- }
664
- export interface ProvisionProgramResponseNonNullableFields {
665
- jobId: string;
666
- program?: ProgramNonNullableFields;
667
- }
668
- export interface RenewProgramResponseNonNullableFields {
669
- jobId: string;
670
- }
671
- export interface PauseProgramResponseNonNullableFields {
672
- jobId: string;
673
- }
674
- export interface ResumeProgramResponseNonNullableFields {
675
- jobId: string;
676
- }
677
- export interface EndProgramResponseNonNullableFields {
678
- jobId: string;
679
- }
680
- export interface UpdateProgramResponseNonNullableFields {
681
- program?: ProgramNonNullableFields;
682
- }
683
- export interface GetProgramResponseNonNullableFields {
684
- program?: ProgramNonNullableFields;
685
- }
686
- export interface QueryProgramsResponseNonNullableFields {
687
- programs: ProgramNonNullableFields[];
688
- }
689
- export interface GetProgramByExternalIdAndNamespaceResponseNonNullableFields {
690
- program?: ProgramNonNullableFields;
691
- }
650
+ type ProgramNonNullablePaths = `status` | `beneficiary.anonymousVisitorId` | `beneficiary.memberId` | `beneficiary.wixUserId` | `programDefinition._id`;
692
651
  /**
693
652
  * Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
694
653
  *
695
654
  * You can provision a program from a program definition or a pool definition:
696
- * - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
697
- * - **Pool definition**: The program has 1 pool that is created from the pool definition.
655
+ * - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
656
+ * - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
698
657
  * @param poolDefinitionLookupId - The program definition or pool definition to use to provision the program.
699
658
  * @public
700
659
  * @documentationMaturity preview
@@ -708,7 +667,9 @@ export interface GetProgramByExternalIdAndNamespaceResponseNonNullableFields {
708
667
  * @applicableIdentity APP
709
668
  * @fqn wix.benefit_programs.v1.program.ProgramService.ProvisionProgram
710
669
  */
711
- export declare function provisionProgram(poolDefinitionLookupId: PoolDefinitionLookupId, options?: ProvisionProgramOptions): Promise<ProvisionProgramResponse & ProvisionProgramResponseNonNullableFields>;
670
+ export declare function provisionProgram(poolDefinitionLookupId: PoolDefinitionLookupId, options?: NonNullablePaths<ProvisionProgramOptions, `beneficiary` | `externalProgramId` | `namespace`>): Promise<NonNullablePaths<ProvisionProgramResponse, `jobId` | {
671
+ [P in ProgramNonNullablePaths]: `program.${P}`;
672
+ }[ProgramNonNullablePaths]>>;
712
673
  export interface ProvisionProgramOptions {
713
674
  /** Program beneficiary. */
714
675
  beneficiary: CommonIdentificationData;
@@ -719,7 +680,7 @@ export interface ProvisionProgramOptions {
719
680
  */
720
681
  programStatus?: ProvisionProgramRequestProgramStatus;
721
682
  /**
722
- * Namespace for your app or site's benefit programs.
683
+ * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
723
684
  * @minLength 1
724
685
  * @maxLength 50
725
686
  */
@@ -727,7 +688,7 @@ export interface ProvisionProgramOptions {
727
688
  /**
728
689
  * Program name.
729
690
  *
730
- * If you're provisioning the program from a program definition, you may want to use the same name that used for the program definition.
691
+ * If you're provisioning the program from a program definition, you may want to use the same name that was used for the program definition.
731
692
  * @maxLength 64
732
693
  */
733
694
  displayName?: string | null;
@@ -740,7 +701,7 @@ export interface ProvisionProgramOptions {
740
701
  /**
741
702
  * Renews the specified program.
742
703
  *
743
- * Balances are handled for each pool in the program as defined in the pool's credit configuration.
704
+ * The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
744
705
  * @param programId - ID of the program to renew.
745
706
  * @public
746
707
  * @documentationMaturity preview
@@ -751,7 +712,7 @@ export interface ProvisionProgramOptions {
751
712
  * @applicableIdentity APP
752
713
  * @fqn wix.benefit_programs.v1.program.ProgramService.RenewProgram
753
714
  */
754
- export declare function renewProgram(programId: string): Promise<RenewProgramResponse & RenewProgramResponseNonNullableFields>;
715
+ export declare function renewProgram(programId: string): Promise<NonNullablePaths<RenewProgramResponse, `jobId`>>;
755
716
  /**
756
717
  * Pauses the specified program. Benefits in the program's pools can't be redeemed until the program is resumed.
757
718
  * @param programId - ID of the program to pause.
@@ -764,7 +725,7 @@ export declare function renewProgram(programId: string): Promise<RenewProgramRes
764
725
  * @applicableIdentity APP
765
726
  * @fqn wix.benefit_programs.v1.program.ProgramService.PauseProgram
766
727
  */
767
- export declare function pauseProgram(programId: string): Promise<PauseProgramResponse & PauseProgramResponseNonNullableFields>;
728
+ export declare function pauseProgram(programId: string): Promise<NonNullablePaths<PauseProgramResponse, `jobId`>>;
768
729
  /**
769
730
  * Resumes the specified program.
770
731
  *
@@ -779,11 +740,9 @@ export declare function pauseProgram(programId: string): Promise<PauseProgramRes
779
740
  * @applicableIdentity APP
780
741
  * @fqn wix.benefit_programs.v1.program.ProgramService.ResumeProgram
781
742
  */
782
- export declare function resumeProgram(programId: string): Promise<ResumeProgramResponse & ResumeProgramResponseNonNullableFields>;
743
+ export declare function resumeProgram(programId: string): Promise<NonNullablePaths<ResumeProgramResponse, `jobId`>>;
783
744
  /**
784
745
  * Ends the specified program.
785
- *
786
- * Benefits in the program's pools can't be redeemed until the program is resumed.
787
746
  * @param programId - ID of the program to end.
788
747
  * @public
789
748
  * @documentationMaturity preview
@@ -794,7 +753,7 @@ export declare function resumeProgram(programId: string): Promise<ResumeProgramR
794
753
  * @applicableIdentity APP
795
754
  * @fqn wix.benefit_programs.v1.program.ProgramService.EndProgram
796
755
  */
797
- export declare function endProgram(programId: string): Promise<EndProgramResponse & EndProgramResponseNonNullableFields>;
756
+ export declare function endProgram(programId: string): Promise<NonNullablePaths<EndProgramResponse, `jobId`>>;
798
757
  /**
799
758
  * Updates a program.
800
759
  *
@@ -816,7 +775,7 @@ export declare function endProgram(programId: string): Promise<EndProgramRespons
816
775
  * @returns Updated program.
817
776
  * @fqn wix.benefit_programs.v1.program.ProgramService.UpdateProgram
818
777
  */
819
- export declare function updateProgram(_id: string | null, program: UpdateProgram): Promise<Program & ProgramNonNullableFields>;
778
+ export declare function updateProgram(_id: string, program: NonNullablePaths<UpdateProgram, `revision`>): Promise<NonNullablePaths<Program, ProgramNonNullablePaths>>;
820
779
  export interface UpdateProgram {
821
780
  /**
822
781
  * Program ID.
@@ -869,7 +828,7 @@ export interface UpdateProgram {
869
828
  */
870
829
  displayName?: string | null;
871
830
  /**
872
- * Namespace for your app or site's benefit programs.
831
+ * Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
873
832
  * @minLength 1
874
833
  * @maxLength 50
875
834
  * @immutable
@@ -912,7 +871,7 @@ export interface UpdateProgram {
912
871
  * @returns Retrieved program.
913
872
  * @fqn wix.benefit_programs.v1.program.ProgramService.GetProgram
914
873
  */
915
- export declare function getProgram(programId: string): Promise<Program & ProgramNonNullableFields>;
874
+ export declare function getProgram(programId: string): Promise<NonNullablePaths<Program, ProgramNonNullablePaths>>;
916
875
  /**
917
876
  * Creates a query to retrieve a list of programs.
918
877
  *
@@ -1017,7 +976,7 @@ export interface ProgramsQueryBuilder {
1017
976
  }
1018
977
  /**
1019
978
  * Retrieves a program with the specified external ID and namespace.
1020
- * @param namespace - Namespace for your app or site's benefit programs.
979
+ * @param namespace - Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
1021
980
  * @public
1022
981
  * @documentationMaturity preview
1023
982
  * @requiredField namespace
@@ -1033,7 +992,9 @@ export interface ProgramsQueryBuilder {
1033
992
  * @applicableIdentity APP
1034
993
  * @fqn wix.benefit_programs.v1.program.ProgramService.GetProgramByExternalIdAndNamespace
1035
994
  */
1036
- export declare function getProgramByExternalIdAndNamespace(namespace: string, options: GetProgramByExternalIdAndNamespaceOptions): Promise<GetProgramByExternalIdAndNamespaceResponse & GetProgramByExternalIdAndNamespaceResponseNonNullableFields>;
995
+ export declare function getProgramByExternalIdAndNamespace(namespace: string, options: NonNullablePaths<GetProgramByExternalIdAndNamespaceOptions, `externalId`>): Promise<NonNullablePaths<GetProgramByExternalIdAndNamespaceResponse, {
996
+ [P in ProgramNonNullablePaths]: `program.${P}`;
997
+ }[ProgramNonNullablePaths]>>;
1037
998
  export interface GetProgramByExternalIdAndNamespaceOptions {
1038
999
  /**
1039
1000
  * Program's external ID.
@@ -12,13 +12,13 @@ export var ProgramStatus;
12
12
  ProgramStatus["PAUSED"] = "PAUSED";
13
13
  /** Program has ended. It can't be resumed. */
14
14
  ProgramStatus["ENDED"] = "ENDED";
15
- /** Program is being activated for the first time. This status will be true for a negligible amount of time. */
15
+ /** Program is being activated for the first time. This status exists for a short time during processing. */
16
16
  ProgramStatus["PROVISIONING"] = "PROVISIONING";
17
- /** Program is being paused. This status will be true for a negligible amount of time. */
17
+ /** Program is being paused. This status exists for a short time during processing. */
18
18
  ProgramStatus["PAUSING"] = "PAUSING";
19
- /** Program is being re-activated after being paused. This status will be true for a negligible amount of time. */
19
+ /** Program is being re-activated after being paused. This status exists for a short time during processing. */
20
20
  ProgramStatus["RESUMING"] = "RESUMING";
21
- /** Program is being ended. This status will be true for a negligible amount of time. */
21
+ /** Program is being ended. This status exists for a short time during processing. */
22
22
  ProgramStatus["ENDING"] = "ENDING";
23
23
  })(ProgramStatus || (ProgramStatus = {}));
24
24
  export var IdentityType;
@@ -65,8 +65,8 @@ export var WebhookIdentityType;
65
65
  * Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
66
66
  *
67
67
  * You can provision a program from a program definition or a pool definition:
68
- * - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
69
- * - **Pool definition**: The program has 1 pool that is created from the pool definition.
68
+ * - **Program definition**: The provisioned program has pools that are created from the pool definitions in the program definition.
69
+ * - **Pool definition**: The provisioned program has 1 pool that is created from the pool definition.
70
70
  * @param poolDefinitionLookupId - The program definition or pool definition to use to provision the program.
71
71
  * @public
72
72
  * @documentationMaturity preview
@@ -118,7 +118,7 @@ export async function provisionProgram(poolDefinitionLookupId, options) {
118
118
  /**
119
119
  * Renews the specified program.
120
120
  *
121
- * Balances are handled for each pool in the program as defined in the pool's credit configuration.
121
+ * The number of available credits in each pool in the program is defined in the corresponding pool's credit configuration.
122
122
  * @param programId - ID of the program to renew.
123
123
  * @public
124
124
  * @documentationMaturity preview
@@ -226,8 +226,6 @@ export async function resumeProgram(programId) {
226
226
  }
227
227
  /**
228
228
  * Ends the specified program.
229
- *
230
- * Benefits in the program's pools can't be redeemed until the program is resumed.
231
229
  * @param programId - ID of the program to end.
232
230
  * @public
233
231
  * @documentationMaturity preview
@@ -414,7 +412,7 @@ export function queryPrograms() {
414
412
  }
415
413
  /**
416
414
  * Retrieves a program with the specified external ID and namespace.
417
- * @param namespace - Namespace for your app or site's benefit programs.
415
+ * @param namespace - Namespace for your app or site's benefit programs. Namespaces allow you to distinguish between entities that you created and entities that other apps created.
418
416
  * @public
419
417
  * @documentationMaturity preview
420
418
  * @requiredField namespace