@wix/auto_sdk_benefit-programs_programs 1.0.1 → 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-programs.http.d.ts +20 -18
  2. package/build/cjs/src/benefit-programs-v1-program-programs.http.js +21 -19
  3. package/build/cjs/src/benefit-programs-v1-program-programs.http.js.map +1 -1
  4. package/build/cjs/src/benefit-programs-v1-program-programs.public.d.ts +21 -25
  5. package/build/cjs/src/benefit-programs-v1-program-programs.public.js.map +1 -1
  6. package/build/cjs/src/benefit-programs-v1-program-programs.types.d.ts +52 -83
  7. package/build/cjs/src/benefit-programs-v1-program-programs.types.js +9 -13
  8. package/build/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  9. package/build/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +86 -138
  10. package/build/cjs/src/benefit-programs-v1-program-programs.universal.js +30 -38
  11. package/build/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  12. package/build/es/src/benefit-programs-v1-program-programs.http.d.ts +20 -18
  13. package/build/es/src/benefit-programs-v1-program-programs.http.js +21 -19
  14. package/build/es/src/benefit-programs-v1-program-programs.http.js.map +1 -1
  15. package/build/es/src/benefit-programs-v1-program-programs.public.d.ts +21 -25
  16. package/build/es/src/benefit-programs-v1-program-programs.public.js.map +1 -1
  17. package/build/es/src/benefit-programs-v1-program-programs.types.d.ts +52 -83
  18. package/build/es/src/benefit-programs-v1-program-programs.types.js +9 -13
  19. package/build/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  20. package/build/es/src/benefit-programs-v1-program-programs.universal.d.ts +86 -138
  21. package/build/es/src/benefit-programs-v1-program-programs.universal.js +30 -38
  22. package/build/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  23. package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.d.ts +20 -18
  24. package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.js +21 -19
  25. package/build/internal/cjs/src/benefit-programs-v1-program-programs.http.js.map +1 -1
  26. package/build/internal/cjs/src/benefit-programs-v1-program-programs.public.d.ts +21 -25
  27. package/build/internal/cjs/src/benefit-programs-v1-program-programs.public.js.map +1 -1
  28. package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.d.ts +52 -83
  29. package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js +9 -13
  30. package/build/internal/cjs/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  31. package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.d.ts +86 -138
  32. package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js +30 -38
  33. package/build/internal/cjs/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  34. package/build/internal/es/src/benefit-programs-v1-program-programs.http.d.ts +20 -18
  35. package/build/internal/es/src/benefit-programs-v1-program-programs.http.js +21 -19
  36. package/build/internal/es/src/benefit-programs-v1-program-programs.http.js.map +1 -1
  37. package/build/internal/es/src/benefit-programs-v1-program-programs.public.d.ts +21 -25
  38. package/build/internal/es/src/benefit-programs-v1-program-programs.public.js.map +1 -1
  39. package/build/internal/es/src/benefit-programs-v1-program-programs.types.d.ts +52 -83
  40. package/build/internal/es/src/benefit-programs-v1-program-programs.types.js +9 -13
  41. package/build/internal/es/src/benefit-programs-v1-program-programs.types.js.map +1 -1
  42. package/build/internal/es/src/benefit-programs-v1-program-programs.universal.d.ts +86 -138
  43. package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js +30 -38
  44. package/build/internal/es/src/benefit-programs-v1-program-programs.universal.js.map +1 -1
  45. package/package.json +2 -2
@@ -25,7 +25,7 @@ export interface Program {
25
25
  */
26
26
  _updatedDate?: Date | null;
27
27
  /**
28
- * ID of program definition that provisioned this benefit pool.
28
+ * ID of the associated program definition.
29
29
  * @format GUID
30
30
  * @readonly
31
31
  * @immutable
@@ -37,7 +37,7 @@ export interface Program {
37
37
  */
38
38
  status?: ProgramStatus;
39
39
  /**
40
- * Identity of the individual that enrolled in the program, granting access to its associated benefits.
40
+ * Program beneficiary.
41
41
  * @readonly
42
42
  * @immutable
43
43
  */
@@ -45,12 +45,12 @@ export interface Program {
45
45
  /**
46
46
  * Program name.
47
47
  *
48
- * Suggest setting the same value that was already specified in the program definition's `displayName`.
48
+ * You may want to use the same name that's used in the associated program definition, if it exists.
49
49
  * @maxLength 64
50
50
  */
51
51
  displayName?: string | null;
52
52
  /**
53
- * External system that is the source of the program creation. For example, `wix-pricing-plans`, `wix-loyalty`.
53
+ * Namespace for your app or site's benefit programs.
54
54
  * @minLength 1
55
55
  * @maxLength 50
56
56
  * @immutable
@@ -59,63 +59,52 @@ export interface Program {
59
59
  /**
60
60
  * Custom field data for the program object.
61
61
  *
62
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
62
+ * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must be configured in the app dashboard before they can be accessed with API calls.
63
63
  */
64
64
  extendedFields?: ExtendedFields;
65
65
  /**
66
- * External program ID.
67
- *
68
- * Must be unique to every app's namespace.
66
+ * ID for the program defined by you. You can use `externalId` to filter queries.
69
67
  * @format GUID
70
68
  * @immutable
71
69
  */
72
70
  externalId?: string | null;
73
71
  /**
74
- * Program definition info
72
+ * Associated program definition information.
75
73
  * @readonly
76
74
  */
77
75
  programDefinition?: ProgramDefinitionInfo;
78
- /**
79
- * Intended status of a program after the completion of an action.
80
- * @readonly
81
- */
82
- targetStatus?: ProgramStatus;
83
76
  }
84
77
  export declare enum ProgramStatus {
85
78
  /** Undefined program status. */
86
79
  UNDEFINED = "UNDEFINED",
87
- /** Active program. */
80
+ /** Program is active. */
88
81
  ACTIVE = "ACTIVE",
89
- /** Paused program. */
82
+ /** Program is paused. It can be resumed. */
90
83
  PAUSED = "PAUSED",
91
- /**
92
- * Inactive program.
93
- *
94
- * Benefits of a program with an `ENDED` status can't be redeemed or reserved.
95
- */
84
+ /** Program has ended. It can't be resumed. */
96
85
  ENDED = "ENDED",
97
- /** Process state for programs that are currently being activated but have not yet completed the provisioning process. */
86
+ /** Program is being activated for the first time. This status will be true for a negligible amount of time. */
98
87
  PROVISIONING = "PROVISIONING",
99
- /** Process state for programs that are currently pausing. */
88
+ /** Program is being paused. This status will be true for a negligible amount of time. */
100
89
  PAUSING = "PAUSING",
101
- /** Process state for programs that are currently resuming. */
90
+ /** Program is being re-activated after being paused. This status will be true for a negligible amount of time. */
102
91
  RESUMING = "RESUMING",
103
- /** Process state for programs that are currently ending. */
92
+ /** Program is being ended. This status will be true for a negligible amount of time. */
104
93
  ENDING = "ENDING"
105
94
  }
106
95
  export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
107
96
  /**
108
- * ID of a site visitor that has not logged in to the site.
97
+ * ID of a site visitor that hasn't logged in to the site.
109
98
  * @format GUID
110
99
  */
111
100
  anonymousVisitorId?: string;
112
101
  /**
113
- * ID of a site visitor that has logged in to the site.
102
+ * ID of a site member.
114
103
  * @format GUID
115
104
  */
116
105
  memberId?: string;
117
106
  /**
118
- * ID of a Wix user (site owner, contributor, etc.).
107
+ * ID of a Wix user.
119
108
  * @format GUID
120
109
  */
121
110
  wixUserId?: string;
@@ -123,17 +112,17 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
123
112
  /** @oneof */
124
113
  export interface CommonIdentificationDataIdOneOf {
125
114
  /**
126
- * ID of a site visitor that has not logged in to the site.
115
+ * ID of a site visitor that hasn't logged in to the site.
127
116
  * @format GUID
128
117
  */
129
118
  anonymousVisitorId?: string;
130
119
  /**
131
- * ID of a site visitor that has logged in to the site.
120
+ * ID of a site member.
132
121
  * @format GUID
133
122
  */
134
123
  memberId?: string;
135
124
  /**
136
- * ID of a Wix user (site owner, contributor, etc.).
125
+ * ID of a Wix user.
137
126
  * @format GUID
138
127
  */
139
128
  wixUserId?: string;
@@ -161,15 +150,13 @@ export interface ExtendedFields {
161
150
  }
162
151
  export interface ProgramDefinitionInfo {
163
152
  /**
164
- * ID of the program definition that provisioned the program associated with this benefit pool.
153
+ * Program definition ID.
165
154
  * @format GUID
166
155
  * @readonly
167
156
  */
168
157
  _id?: string;
169
158
  /**
170
- * External ID of the program definition that provisioned this program.
171
- *
172
- * This identifies the source program definition in the external system.
159
+ * Program definition external ID.
173
160
  * @format GUID
174
161
  * @readonly
175
162
  */
@@ -197,30 +184,18 @@ export interface ProgramResumed {
197
184
  }
198
185
  /** In case pool_definition_id is provided should test if it's part of a package. If it is, reject the request */
199
186
  export interface ProvisionProgramRequest {
200
- /**
201
- * Used to locate the pool definition for creating its benefit pools within the program.
202
- *
203
- * This object must contain either `programDefinitionId` or `poolDefinitionId`:
204
- * + Use `programDefinitionId` for programs with multiple benefit pools.
205
- * + Use `poolDefinitionId` for a program with just 1 benefit pool.
206
- */
187
+ /** The program definition or pool definition to use to provision the program. */
207
188
  poolDefinitionLookupId: PoolDefinitionLookupId;
208
- /**
209
- * Identity of the individual that enrolled in the program, granting access to its associated benefits.
210
- *
211
- * The beneficiary's identity information is in their access token. To retrieve their identity, pass the access token from your frontend site to your backend, then call the Token Info ([SDK](https://dev.wix.com/docs/sdk/core-modules/essentials/auth#gettokeninfo)|[REST](https://dev.wix.com/docs/rest/app-management/oauth-2/token-info)) method. The returned `subjectType` and `subjectId` correspond to the identity type and ID of the beneficiary.
212
- */
189
+ /** Program beneficiary. */
213
190
  beneficiary: CommonIdentificationData;
214
191
  /**
215
- * Set the status of the program upon provision.
192
+ * Initial program status.
216
193
  *
217
194
  * Default: `ACTIVE`
218
195
  */
219
196
  programStatus?: ProvisionProgramRequestProgramStatus;
220
197
  /**
221
- * Application sub-module that is the source of the program creation.
222
- *
223
- * Use the namespace that was designated to the program definition.
198
+ * Namespace for your app or site's benefit programs.
224
199
  * @minLength 1
225
200
  * @maxLength 50
226
201
  */
@@ -228,14 +203,12 @@ export interface ProvisionProgramRequest {
228
203
  /**
229
204
  * Program name.
230
205
  *
231
- * Suggest using the same value that was already specified in the program definition's `displayName`.
206
+ * If you're provisioning the program from a program definition, you may want to use the same name that used for the program definition.
232
207
  * @maxLength 64
233
208
  */
234
209
  displayName?: string | null;
235
210
  /**
236
- * External program ID.
237
- *
238
- * Must be unique to every app owner's namespace.
211
+ * ID for the program defined by you. You can use `externalId` to filter queries.
239
212
  * @format GUID
240
213
  */
241
214
  externalProgramId: string;
@@ -266,14 +239,14 @@ export interface PoolDefinitionLookupIdIdOneOf {
266
239
  programDefinitionId?: string;
267
240
  }
268
241
  export declare enum ProvisionProgramRequestProgramStatus {
269
- /** Active program. */
242
+ /** Program is active. */
270
243
  ACTIVE = "ACTIVE",
271
- /** Paused program. */
244
+ /** Program is paused. */
272
245
  PAUSED = "PAUSED"
273
246
  }
274
247
  export interface ProvisionProgramResponse {
275
248
  /**
276
- * Job ID of the provisioned program.
249
+ * Job ID of the provisioning of the program.
277
250
  * @format GUID
278
251
  */
279
252
  jobId?: string;
@@ -302,7 +275,7 @@ export interface RenewProgramRequest {
302
275
  }
303
276
  export interface RenewProgramResponse {
304
277
  /**
305
- * Job ID of the renewed program.
278
+ * Job ID of the program renewal.
306
279
  * @format GUID
307
280
  */
308
281
  jobId?: string;
@@ -316,7 +289,7 @@ export interface PauseProgramRequest {
316
289
  }
317
290
  export interface PauseProgramResponse {
318
291
  /**
319
- * Job ID of the paused program.
292
+ * Job ID of the pausing of the program.
320
293
  * @format GUID
321
294
  */
322
295
  jobId?: string;
@@ -336,21 +309,21 @@ export interface ResumeProgramRequest {
336
309
  }
337
310
  export interface ResumeProgramResponse {
338
311
  /**
339
- * Job ID of the resumed program.
312
+ * Job ID of the resuming of the program.
340
313
  * @format GUID
341
314
  */
342
315
  jobId?: string;
343
316
  }
344
317
  export interface EndProgramRequest {
345
318
  /**
346
- * Package of pools
319
+ * ID of the program to end.
347
320
  * @format GUID
348
321
  */
349
322
  programId: string;
350
323
  }
351
324
  export interface EndProgramResponse {
352
325
  /**
353
- * Job ID of the discontinued program.
326
+ * Job ID of the ending of the program.
354
327
  * @format GUID
355
328
  */
356
329
  jobId?: string;
@@ -407,7 +380,7 @@ export interface UpsertMigratedProgramResponse {
407
380
  program?: Program;
408
381
  }
409
382
  export interface UpdateProgramRequest {
410
- /** Program to be updated. */
383
+ /** Program to update. */
411
384
  program: Program;
412
385
  }
413
386
  export interface UpdateProgramResponse {
@@ -426,24 +399,20 @@ export interface GetProgramResponse {
426
399
  program?: Program;
427
400
  }
428
401
  export interface QueryProgramsRequest {
429
- /** Query to select programs. */
402
+ /** Filter, sort, and paging to apply to the query. */
430
403
  query?: CursorQuery;
431
404
  }
432
405
  export interface CursorQuery extends CursorQueryPagingMethodOneOf {
433
406
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
434
407
  cursorPaging?: CursorPaging;
435
408
  /**
436
- * Filter object in the following format:
437
- * `"filter" : {
438
- * "fieldName1": "value1",
439
- * "fieldName2":{"$operator":"value2"}
440
- * }`
441
- * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
409
+ * Filter object.
410
+ * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
411
+ * for more information.
442
412
  */
443
413
  filter?: Record<string, any> | null;
444
414
  /**
445
- * Sort object in the following format:
446
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
415
+ * List of sort objects.
447
416
  * @maxSize 5
448
417
  */
449
418
  sort?: Sorting[];
@@ -455,11 +424,15 @@ export interface CursorQueryPagingMethodOneOf {
455
424
  }
456
425
  export interface Sorting {
457
426
  /**
458
- * Name of the field to sort by.
427
+ * Field to sort by.
459
428
  * @maxLength 512
460
429
  */
461
430
  fieldName?: string;
462
- /** Sort order. */
431
+ /**
432
+ * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
433
+ *
434
+ * Default: `ASC`
435
+ */
463
436
  order?: SortOrder;
464
437
  }
465
438
  export declare enum SortOrder {
@@ -470,7 +443,7 @@ export declare enum SortOrder {
470
443
  }
471
444
  export interface CursorPaging {
472
445
  /**
473
- * Maximum number of items to return in the results.
446
+ * Maximum number of items to return.
474
447
  * @max 100
475
448
  */
476
449
  limit?: number | null;
@@ -484,7 +457,7 @@ export interface CursorPaging {
484
457
  cursor?: string | null;
485
458
  }
486
459
  export interface QueryProgramsResponse {
487
- /** List of programs. */
460
+ /** List of retrieved programs. */
488
461
  programs?: Program[];
489
462
  /** Metadata for the paginated results. */
490
463
  metadata?: CursorPagingMetadata;
@@ -516,17 +489,13 @@ export interface Cursors {
516
489
  }
517
490
  export interface GetProgramByExternalIdAndNamespaceRequest {
518
491
  /**
519
- * Application sub-module that is the source of the program creation.
520
- *
521
- * Use the namespace that was designated to the program definition.
492
+ * Namespace for your app or site's benefit programs.
522
493
  * @minLength 1
523
494
  * @maxLength 50
524
495
  */
525
496
  namespace: string;
526
497
  /**
527
- * External program ID.
528
- *
529
- * Must be unique to every app's namespace.
498
+ * Program's external ID.
530
499
  * @format GUID
531
500
  */
532
501
  externalId: string;
@@ -719,12 +688,12 @@ export interface GetProgramByExternalIdAndNamespaceResponseNonNullableFields {
719
688
  program?: ProgramNonNullableFields;
720
689
  }
721
690
  /**
722
- * Creates active programs consisting of benefits derived from their underlying program definitions and pool definitions.
723
- * @param poolDefinitionLookupId - Used to locate the pool definition for creating its benefit pools within the program.
691
+ * Creates a program for the specified beneficiary. Creating a program is also referred to as provisioning a program.
724
692
  *
725
- * This object must contain either `programDefinitionId` or `poolDefinitionId`:
726
- * + Use `programDefinitionId` for programs with multiple benefit pools.
727
- * + Use `poolDefinitionId` for a program with just 1 benefit pool.
693
+ * You can provision a program from a program definition or a pool definition:
694
+ * - **Program definition**: The program has pools that are created from the pool definitions in the program definition.
695
+ * - **Pool definition**: The program has 1 pool that is created from the pool definition.
696
+ * @param poolDefinitionLookupId - The program definition or pool definition to use to provision the program.
728
697
  * @public
729
698
  * @documentationMaturity preview
730
699
  * @requiredField options.beneficiary
@@ -739,22 +708,16 @@ export interface GetProgramByExternalIdAndNamespaceResponseNonNullableFields {
739
708
  */
740
709
  export declare function provisionProgram(poolDefinitionLookupId: PoolDefinitionLookupId, options?: ProvisionProgramOptions): Promise<ProvisionProgramResponse & ProvisionProgramResponseNonNullableFields>;
741
710
  export interface ProvisionProgramOptions {
742
- /**
743
- * Identity of the individual that enrolled in the program, granting access to its associated benefits.
744
- *
745
- * The beneficiary's identity information is in their access token. To retrieve their identity, pass the access token from your frontend site to your backend, then call the Token Info ([SDK](https://dev.wix.com/docs/sdk/core-modules/essentials/auth#gettokeninfo)|[REST](https://dev.wix.com/docs/rest/app-management/oauth-2/token-info)) method. The returned `subjectType` and `subjectId` correspond to the identity type and ID of the beneficiary.
746
- */
711
+ /** Program beneficiary. */
747
712
  beneficiary: CommonIdentificationData;
748
713
  /**
749
- * Set the status of the program upon provision.
714
+ * Initial program status.
750
715
  *
751
716
  * Default: `ACTIVE`
752
717
  */
753
718
  programStatus?: ProvisionProgramRequestProgramStatus;
754
719
  /**
755
- * Application sub-module that is the source of the program creation.
756
- *
757
- * Use the namespace that was designated to the program definition.
720
+ * Namespace for your app or site's benefit programs.
758
721
  * @minLength 1
759
722
  * @maxLength 50
760
723
  */
@@ -762,24 +725,20 @@ export interface ProvisionProgramOptions {
762
725
  /**
763
726
  * Program name.
764
727
  *
765
- * Suggest using the same value that was already specified in the program definition's `displayName`.
728
+ * If you're provisioning the program from a program definition, you may want to use the same name that used for the program definition.
766
729
  * @maxLength 64
767
730
  */
768
731
  displayName?: string | null;
769
732
  /**
770
- * External program ID.
771
- *
772
- * Must be unique to every app owner's namespace.
733
+ * ID for the program defined by you. You can use `externalId` to filter queries.
773
734
  * @format GUID
774
735
  */
775
736
  externalProgramId: string;
776
737
  }
777
738
  /**
778
- * Updates the benefit pools within a program.
779
- *
780
- * Adjusts each pool in the program according to its unique credit configuration as specified in the pool definition.
739
+ * Renews the specified program.
781
740
  *
782
- * Use this method to reset each benefit pool renewal cycle.
741
+ * Balances are handled for each pool in the program as defined in the pool's credit configuration.
783
742
  * @param programId - ID of the program to renew.
784
743
  * @public
785
744
  * @documentationMaturity preview
@@ -792,9 +751,7 @@ export interface ProvisionProgramOptions {
792
751
  */
793
752
  export declare function renewProgram(programId: string): Promise<RenewProgramResponse & RenewProgramResponseNonNullableFields>;
794
753
  /**
795
- * Pauses the benefit pools within a program.
796
- *
797
- * Changes the program status to `PAUSED`, preventing the redemption or reservation of benefits.
754
+ * Pauses the specified program. Benefits in the program's pools can't be redeemed until the program is resumed.
798
755
  * @param programId - ID of the program to pause.
799
756
  * @public
800
757
  * @documentationMaturity preview
@@ -807,9 +764,9 @@ export declare function renewProgram(programId: string): Promise<RenewProgramRes
807
764
  */
808
765
  export declare function pauseProgram(programId: string): Promise<PauseProgramResponse & PauseProgramResponseNonNullableFields>;
809
766
  /**
810
- * Resumes the benefit pools within a program.
767
+ * Resumes the specified program.
811
768
  *
812
- * Changes the program status to `ACTIVE`, allowing the redemption or reservation of benefits to continue.
769
+ * Call this method for paused programs.
813
770
  * @param programId - ID of program to resume.
814
771
  * @public
815
772
  * @documentationMaturity preview
@@ -822,10 +779,10 @@ export declare function pauseProgram(programId: string): Promise<PauseProgramRes
822
779
  */
823
780
  export declare function resumeProgram(programId: string): Promise<ResumeProgramResponse & ResumeProgramResponseNonNullableFields>;
824
781
  /**
825
- * Prevents the benefit pools in the provided package from being redeemed or reserved.
782
+ * Ends the specified program.
826
783
  *
827
- * After ending a program, it can't be restarted.
828
- * @param programId - Package of pools
784
+ * Benefits in the program's pools can't be redeemed until the program is resumed.
785
+ * @param programId - ID of the program to end.
829
786
  * @public
830
787
  * @documentationMaturity preview
831
788
  * @requiredField programId
@@ -885,7 +842,7 @@ export interface UpdateProgram {
885
842
  */
886
843
  _updatedDate?: Date | null;
887
844
  /**
888
- * ID of program definition that provisioned this benefit pool.
845
+ * ID of the associated program definition.
889
846
  * @format GUID
890
847
  * @readonly
891
848
  * @immutable
@@ -897,7 +854,7 @@ export interface UpdateProgram {
897
854
  */
898
855
  status?: ProgramStatus;
899
856
  /**
900
- * Identity of the individual that enrolled in the program, granting access to its associated benefits.
857
+ * Program beneficiary.
901
858
  * @readonly
902
859
  * @immutable
903
860
  */
@@ -905,12 +862,12 @@ export interface UpdateProgram {
905
862
  /**
906
863
  * Program name.
907
864
  *
908
- * Suggest setting the same value that was already specified in the program definition's `displayName`.
865
+ * You may want to use the same name that's used in the associated program definition, if it exists.
909
866
  * @maxLength 64
910
867
  */
911
868
  displayName?: string | null;
912
869
  /**
913
- * External system that is the source of the program creation. For example, `wix-pricing-plans`, `wix-loyalty`.
870
+ * Namespace for your app or site's benefit programs.
914
871
  * @minLength 1
915
872
  * @maxLength 50
916
873
  * @immutable
@@ -919,27 +876,20 @@ export interface UpdateProgram {
919
876
  /**
920
877
  * Custom field data for the program object.
921
878
  *
922
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
879
+ * [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.
923
880
  */
924
881
  extendedFields?: ExtendedFields;
925
882
  /**
926
- * External program ID.
927
- *
928
- * Must be unique to every app's namespace.
883
+ * ID for the program defined by you. You can use `externalId` to filter queries.
929
884
  * @format GUID
930
885
  * @immutable
931
886
  */
932
887
  externalId?: string | null;
933
888
  /**
934
- * Program definition info
889
+ * Associated program definition information.
935
890
  * @readonly
936
891
  */
937
892
  programDefinition?: ProgramDefinitionInfo;
938
- /**
939
- * Intended status of a program after the completion of an action.
940
- * @readonly
941
- */
942
- targetStatus?: ProgramStatus;
943
893
  }
944
894
  /**
945
895
  * Retrieves a program.
@@ -962,13 +912,15 @@ export declare function getProgram(programId: string): Promise<Program & Program
962
912
  /**
963
913
  * Creates a query to retrieve a list of programs.
964
914
  *
965
- * The `queryPrograms()` method builds a query to retrieve a list of programs and returns a `ProgramsQueryBuilder` object.
915
+ * The Query Programs method builds a query to retrieve a list of programs and returns a `ProgramsQueryBuilder` object.
916
+ *
917
+ * The returned object contains the query definition, which is used to run the query using the `find()` method.
966
918
  *
967
- * The returned object contains the query definition, which is used to run the query using the [`find()`](/programs/programs-query-builder/find) function.
919
+ * You can refine the query by chaining `ProgramsQueryBuilder` methods onto the query. `ProgramsQueryBuilder` methods enable you to filter, sort, and control the results that Query Programs returns.
968
920
  *
969
- * You can refine the query by chaining `ProgramsQueryBuilder` methods onto the query. `ProgramsQueryBuilder` methods enable you to filter, sort, and control the results that `queryPrograms()` returns.
921
+ * Query Programs has a default paging limit of 50, which you can override.
970
922
  *
971
- * The following `ProgramsQueryBuilder` functions are supported for `queryPrograms()`. For a full description of the program object, see the object returned for the [`items`](/programs/programs-query-result/items) property in `ProgramsQueryResult`.
923
+ * For a full description of the item object, see the object returned for the `items` property in `ProgramsQueryResult`.
972
924
  * @public
973
925
  * @documentationMaturity preview
974
926
  * @permissionScope SCOPE.BENEFIT_PROGRAMS.MANAGE
@@ -1060,10 +1012,8 @@ export interface ProgramsQueryBuilder {
1060
1012
  find: () => Promise<ProgramsQueryResult>;
1061
1013
  }
1062
1014
  /**
1063
- * Retrieves a program by program external ID and corresponding namespace.
1064
- * @param namespace - Application sub-module that is the source of the program creation.
1065
- *
1066
- * Use the namespace that was designated to the program definition.
1015
+ * Retrieves a program with the specified external ID and namespace.
1016
+ * @param namespace - Namespace for your app or site's benefit programs.
1067
1017
  * @public
1068
1018
  * @documentationMaturity preview
1069
1019
  * @requiredField namespace
@@ -1082,9 +1032,7 @@ export interface ProgramsQueryBuilder {
1082
1032
  export declare function getProgramByExternalIdAndNamespace(namespace: string, options: GetProgramByExternalIdAndNamespaceOptions): Promise<GetProgramByExternalIdAndNamespaceResponse & GetProgramByExternalIdAndNamespaceResponseNonNullableFields>;
1083
1033
  export interface GetProgramByExternalIdAndNamespaceOptions {
1084
1034
  /**
1085
- * External program ID.
1086
- *
1087
- * Must be unique to every app's namespace.
1035
+ * Program's external ID.
1088
1036
  * @format GUID
1089
1037
  */
1090
1038
  externalId: string;