reach-api-sdk 1.0.228 → 1.0.230

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts CHANGED
@@ -83,6 +83,10 @@ export { CustomDateRange } from './models/CustomDateRange';
83
83
  export type { CustomDateRangeOption } from './models/CustomDateRangeOption';
84
84
  export type { Customer } from './models/Customer';
85
85
  export type { CustomerAccountInvitePatch } from './models/CustomerAccountInvitePatch';
86
+ export type { CustomerAccountInviteSchedule } from './models/CustomerAccountInviteSchedule';
87
+ export type { CustomerAccountInviteSchedulePage } from './models/CustomerAccountInviteSchedulePage';
88
+ export type { CustomerAccountInviteSchedulePatch } from './models/CustomerAccountInviteSchedulePatch';
89
+ export type { CustomerAccountInviteSchedulePost } from './models/CustomerAccountInviteSchedulePost';
86
90
  export { CustomerCancellationOption } from './models/CustomerCancellationOption';
87
91
  export type { CustomerEmailPatch } from './models/CustomerEmailPatch';
88
92
  export type { CustomerPage } from './models/CustomerPage';
@@ -562,6 +566,7 @@ export { CountryService } from './services/CountryService';
562
566
  export { CoursesService } from './services/CoursesService';
563
567
  export { CourseSessionsService } from './services/CourseSessionsService';
564
568
  export { CourseSessionSchedulesService } from './services/CourseSessionSchedulesService';
569
+ export { CustomerAccountInviteSchedulesService } from './services/CustomerAccountInviteSchedulesService';
565
570
  export { CustomerAuthService } from './services/CustomerAuthService';
566
571
  export { CustomerPortalService } from './services/CustomerPortalService';
567
572
  export { CustomersService } from './services/CustomersService';
@@ -50,6 +50,10 @@ export type Attendee = {
50
50
  * Gets or sets the last name.
51
51
  */
52
52
  lastName: string;
53
+ /**
54
+ * Gets or sets the tenant-scoped external reference for integration with external systems.
55
+ */
56
+ externalReference?: string | null;
53
57
  /**
54
58
  * Gets the attendees abbreviated name.
55
59
  */
@@ -29,4 +29,9 @@ export type AttendeePatch = {
29
29
  * patch fields are applied to that record as well as to the attendee row where applicable.
30
30
  */
31
31
  dateOfBirth?: string | null;
32
+ /**
33
+ * Gets or sets the tenant-scoped external reference for integration with external systems.
34
+ * Only applicable when enable_attendee_external_reference is enabled for the tenant.
35
+ */
36
+ externalReference?: string | null;
32
37
  };
@@ -53,4 +53,9 @@ export type AttendeePost = {
53
53
  * This is used to resolve or create the linked end_user_identity record for person-level identity tracking.
54
54
  */
55
55
  dateOfBirth?: string | null;
56
+ /**
57
+ * Gets or sets the tenant-scoped external reference for integration with external systems.
58
+ * Only applicable when enable_attendee_external_reference is enabled for the tenant.
59
+ */
60
+ externalReference?: string | null;
56
61
  };
@@ -0,0 +1,54 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Represents a scheduled customer account invite email tied to a wallet credit period.
8
+ */
9
+ export type CustomerAccountInviteSchedule = {
10
+ /**
11
+ * Gets or sets the entities Id.
12
+ */
13
+ id?: string;
14
+ /**
15
+ * Gets or sets the tenant Id.
16
+ */
17
+ tenantId: string;
18
+ /**
19
+ * Gets or sets the created date of this entity.
20
+ */
21
+ dateCreated: string;
22
+ /**
23
+ * Gets or sets the last modified date of this entity.
24
+ */
25
+ dateModified: string;
26
+ /**
27
+ * Gets or sets the modified by Id.
28
+ */
29
+ modifiedById?: string | null;
30
+ /**
31
+ * Gets or sets a value indicating whether the record is live and available for use within the application.
32
+ */
33
+ isLive: boolean;
34
+ /**
35
+ * Gets or sets the customer id.
36
+ */
37
+ customerId?: string;
38
+ /**
39
+ * Gets or sets the wallet credit period id that triggered this invite schedule.
40
+ */
41
+ walletCreditPeriodId?: string;
42
+ /**
43
+ * Gets or sets the date the invite is scheduled to send.
44
+ */
45
+ dateScheduled?: string;
46
+ /**
47
+ * Gets or sets a value indicating whether the invite has been sent.
48
+ */
49
+ sent?: boolean;
50
+ /**
51
+ * Gets or sets a value indicating whether sending the invite errored.
52
+ */
53
+ errored?: boolean;
54
+ };
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { CustomerAccountInviteSchedule } from './CustomerAccountInviteSchedule';
7
+ import type { Pagination } from './Pagination';
8
+
9
+ export type CustomerAccountInviteSchedulePage = {
10
+ pagination: Pagination;
11
+ readonly items: Array<CustomerAccountInviteSchedule>;
12
+ };
@@ -0,0 +1,18 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Patch model for customer account invite schedule updates.
8
+ */
9
+ export type CustomerAccountInviteSchedulePatch = {
10
+ /**
11
+ * Gets or sets the tenant Id.
12
+ */
13
+ tenantId: string;
14
+ /**
15
+ * Gets or sets the Id.
16
+ */
17
+ id: string;
18
+ };
@@ -0,0 +1,14 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Post model for customer account invite schedule inserts.
8
+ */
9
+ export type CustomerAccountInviteSchedulePost = {
10
+ /**
11
+ * Gets or sets the tenant Id.
12
+ */
13
+ tenantId: string;
14
+ };
@@ -68,6 +68,12 @@ export type TenantSetting = {
68
68
  * When enabled, attendee wallets require an active credit period for bookings and allocation management.
69
69
  */
70
70
  enableWalletCreditPeriods?: boolean;
71
+ /**
72
+ * Gets or sets how many days before a credit period start date to send the customer account invite.
73
+ * Allowed values: 0 (on period start), 7 (one week before), 14 (two weeks before).
74
+ * Only applies when Reach.Models.TenantSetting.EnableWalletCreditPeriods is true.
75
+ */
76
+ walletCreditPeriodAccountInviteDaysBefore?: number | null;
71
77
  /**
72
78
  * Gets or sets a value indicating whether customer portal WorkOS login is restricted to pre-provisioned customers only.
73
79
  * When true, the authenticated email must match a live customer row (email or display_email) for this tenant.
@@ -83,6 +89,18 @@ export type TenantSetting = {
83
89
  * When false (default), storefronts should hide WorkOS sign-in; use for phased rollout per tenant.
84
90
  */
85
91
  customerPortalWorkOsLoginEnabled?: boolean;
92
+ /**
93
+ * Gets or sets a value indicating whether attendee external references are enabled for the tenant.
94
+ */
95
+ enableAttendeeExternalReference?: boolean;
96
+ /**
97
+ * Gets or sets a value indicating whether external_reference is required when creating attendees.
98
+ */
99
+ requireAttendeeExternalReference?: boolean;
100
+ /**
101
+ * Gets or sets the label shown for the attendee external reference field in partner UI.
102
+ */
103
+ attendeeExternalReferenceLabel?: string | null;
86
104
  /**
87
105
  * Gets the next order number in the sequence.
88
106
  */
@@ -17,4 +17,10 @@ export type TenantStorefrontSettingsPatch = {
17
17
  * When null, PATCH leaves the existing database value unchanged.
18
18
  */
19
19
  customerPortalWorkOsLoginEnabled?: boolean | null;
20
+ /**
21
+ * Gets or sets how many days before a credit period start date to automatically send customer account invites.
22
+ * Allowed values: 0 (on period start), 7 (one week before), 14 (two weeks before).
23
+ * When null, PATCH leaves the existing database value unchanged.
24
+ */
25
+ walletCreditPeriodAccountInviteDaysBefore?: number | null;
20
26
  };
@@ -153,6 +153,7 @@ export class AttendeesService {
153
153
  customerId,
154
154
  firstName,
155
155
  lastName,
156
+ externalReference,
156
157
  pageNumber,
157
158
  take,
158
159
  skip,
@@ -177,6 +178,10 @@ export class AttendeesService {
177
178
  * Gets or sets the queryable attendee last name.
178
179
  */
179
180
  lastName?: string;
181
+ /**
182
+ * Gets or sets the queryable attendee external reference.
183
+ */
184
+ externalReference?: string;
180
185
  /**
181
186
  * Gets or sets the page number for paged queries.
182
187
  */
@@ -229,6 +234,7 @@ export class AttendeesService {
229
234
  CustomerId: customerId,
230
235
  FirstName: firstName,
231
236
  LastName: lastName,
237
+ ExternalReference: externalReference,
232
238
  PageNumber: pageNumber,
233
239
  Take: take,
234
240
  Skip: skip,
@@ -339,6 +345,7 @@ export class AttendeesService {
339
345
  customerId,
340
346
  firstName,
341
347
  lastName,
348
+ externalReference,
342
349
  pageNumber,
343
350
  take,
344
351
  skip,
@@ -363,6 +370,10 @@ export class AttendeesService {
363
370
  * Gets or sets the queryable attendee last name.
364
371
  */
365
372
  lastName?: string;
373
+ /**
374
+ * Gets or sets the queryable attendee external reference.
375
+ */
376
+ externalReference?: string;
366
377
  /**
367
378
  * Gets or sets the page number for paged queries.
368
379
  */
@@ -415,6 +426,7 @@ export class AttendeesService {
415
426
  CustomerId: customerId,
416
427
  FirstName: firstName,
417
428
  LastName: lastName,
429
+ ExternalReference: externalReference,
418
430
  PageNumber: pageNumber,
419
431
  Take: take,
420
432
  Skip: skip,
@@ -444,6 +456,7 @@ export class AttendeesService {
444
456
  customerId,
445
457
  firstName,
446
458
  lastName,
459
+ externalReference,
447
460
  pageNumber,
448
461
  take,
449
462
  skip,
@@ -468,6 +481,10 @@ export class AttendeesService {
468
481
  * Gets or sets the queryable attendee last name.
469
482
  */
470
483
  lastName?: string;
484
+ /**
485
+ * Gets or sets the queryable attendee external reference.
486
+ */
487
+ externalReference?: string;
471
488
  /**
472
489
  * Gets or sets the page number for paged queries.
473
490
  */
@@ -520,6 +537,7 @@ export class AttendeesService {
520
537
  CustomerId: customerId,
521
538
  FirstName: firstName,
522
539
  LastName: lastName,
540
+ ExternalReference: externalReference,
523
541
  PageNumber: pageNumber,
524
542
  Take: take,
525
543
  Skip: skip,
@@ -549,6 +567,7 @@ export class AttendeesService {
549
567
  customerId,
550
568
  firstName,
551
569
  lastName,
570
+ externalReference,
552
571
  pageNumber,
553
572
  take,
554
573
  skip,
@@ -573,6 +592,10 @@ export class AttendeesService {
573
592
  * Gets or sets the queryable attendee last name.
574
593
  */
575
594
  lastName?: string;
595
+ /**
596
+ * Gets or sets the queryable attendee external reference.
597
+ */
598
+ externalReference?: string;
576
599
  /**
577
600
  * Gets or sets the page number for paged queries.
578
601
  */
@@ -625,6 +648,7 @@ export class AttendeesService {
625
648
  CustomerId: customerId,
626
649
  FirstName: firstName,
627
650
  LastName: lastName,
651
+ ExternalReference: externalReference,
628
652
  PageNumber: pageNumber,
629
653
  Take: take,
630
654
  Skip: skip,
@@ -654,6 +678,7 @@ export class AttendeesService {
654
678
  customerId,
655
679
  firstName,
656
680
  lastName,
681
+ externalReference,
657
682
  pageNumber,
658
683
  take,
659
684
  skip,
@@ -678,6 +703,10 @@ export class AttendeesService {
678
703
  * Gets or sets the queryable attendee last name.
679
704
  */
680
705
  lastName?: string;
706
+ /**
707
+ * Gets or sets the queryable attendee external reference.
708
+ */
709
+ externalReference?: string;
681
710
  /**
682
711
  * Gets or sets the page number for paged queries.
683
712
  */
@@ -730,6 +759,7 @@ export class AttendeesService {
730
759
  CustomerId: customerId,
731
760
  FirstName: firstName,
732
761
  LastName: lastName,
762
+ ExternalReference: externalReference,
733
763
  PageNumber: pageNumber,
734
764
  Take: take,
735
765
  Skip: skip,