reach-api-sdk 1.0.205 → 1.0.208

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 (64) hide show
  1. package/dist/reach-sdk.d.ts +6254 -3934
  2. package/dist/reach-sdk.js +2737 -1127
  3. package/package.json +1 -1
  4. package/src/apiClient.ts +9 -0
  5. package/src/definition/swagger.yaml +9648 -3833
  6. package/src/index.ts +32 -0
  7. package/src/models/Attendee.ts +9 -4
  8. package/src/models/AttendeePatch.ts +13 -0
  9. package/src/models/AttendeePost.ts +14 -1
  10. package/src/models/AttendeeWalletDeductionPreview.ts +51 -0
  11. package/src/models/CoursePatch.ts +2 -0
  12. package/src/models/CoursePost.ts +2 -0
  13. package/src/models/CustomFieldDataType.ts +22 -0
  14. package/src/models/CustomFieldDefinition.ts +100 -0
  15. package/src/models/CustomFieldDefinitionPage.ts +12 -0
  16. package/src/models/CustomFieldDefinitionPatch.ts +84 -0
  17. package/src/models/CustomFieldDefinitionPost.ts +80 -0
  18. package/src/models/CustomFieldDefinitionWithValue.ts +82 -0
  19. package/src/models/CustomFieldOption.ts +50 -0
  20. package/src/models/CustomFieldOptionDto.ts +14 -0
  21. package/src/models/CustomFieldOptionPost.ts +18 -0
  22. package/src/models/CustomFieldValueEntityType.ts +13 -0
  23. package/src/models/CustomFieldValueUpdate.ts +18 -0
  24. package/src/models/CustomFieldsBulkUpdate.ts +16 -0
  25. package/src/models/Customer.ts +6 -6
  26. package/src/models/CustomerAccountInvitePatch.ts +26 -0
  27. package/src/models/CustomerPatch.ts +2 -2
  28. package/src/models/CustomerPost.ts +2 -2
  29. package/src/models/CustomerWalletDeductionPreview.ts +36 -0
  30. package/src/models/EndUserIdentity.ts +4 -0
  31. package/src/models/Order.ts +6 -0
  32. package/src/models/RecentOrderActivityReport.ts +4 -0
  33. package/src/models/SessionPatch.ts +2 -0
  34. package/src/models/SessionPost.ts +2 -0
  35. package/src/models/SurveySubmitAttendee.ts +4 -0
  36. package/src/models/TenantSetting.ts +8 -0
  37. package/src/models/TotalRevenueReport.ts +4 -0
  38. package/src/models/UpdateCustomFieldOption.ts +26 -0
  39. package/src/models/VenuePatch.ts +2 -0
  40. package/src/models/VenuePost.ts +3 -0
  41. package/src/models/Wallet.ts +60 -0
  42. package/src/models/WalletDeductionPreview.ts +44 -0
  43. package/src/models/WalletPage.ts +12 -0
  44. package/src/models/WalletPatch.ts +23 -0
  45. package/src/models/WalletPost.ts +29 -0
  46. package/src/models/WalletRemoveCreditPost.ts +19 -0
  47. package/src/models/WalletTopUpPost.ts +19 -0
  48. package/src/models/WalletTrackingLevel.ts +12 -0
  49. package/src/models/WalletTransaction.ts +61 -0
  50. package/src/models/WalletTransactionPage.ts +12 -0
  51. package/src/models/WalletTransactionPatch.ts +22 -0
  52. package/src/models/WalletTransactionPost.ts +33 -0
  53. package/src/models/WalletTransactionType.ts +14 -0
  54. package/src/services/AttendeesService.ts +0 -30
  55. package/src/services/CoursesService.ts +63 -0
  56. package/src/services/CustomFieldsService.ts +780 -0
  57. package/src/services/CustomersService.ts +35 -0
  58. package/src/services/PublicCoursesService.ts +36 -0
  59. package/src/services/PublicSessionsService.ts +36 -0
  60. package/src/services/PublicVenuesService.ts +36 -0
  61. package/src/services/SessionsService.ts +63 -0
  62. package/src/services/VenuesService.ts +63 -0
  63. package/src/services/WalletTransactionsService.ts +755 -0
  64. package/src/services/WalletsService.ts +901 -0
@@ -3,6 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { Customer } from '../models/Customer';
6
+ import type { CustomerAccountInvitePatch } from '../models/CustomerAccountInvitePatch';
6
7
  import type { CustomerEmailPatch } from '../models/CustomerEmailPatch';
7
8
  import type { CustomerPage } from '../models/CustomerPage';
8
9
  import type { CustomerPatch } from '../models/CustomerPatch';
@@ -49,6 +50,40 @@ export class CustomersService {
49
50
  });
50
51
  }
51
52
 
53
+ /**
54
+ * Sends an account invite email to the customer with their information, participant details, and wallet balances.
55
+ * @returns any OK
56
+ * @throws ApiError
57
+ */
58
+ public sendAccountInvite({
59
+ customerId,
60
+ requestBody,
61
+ }: {
62
+ /**
63
+ * The customer Id.
64
+ */
65
+ customerId: string;
66
+ /**
67
+ * The patch model containing acceptance code and base domain.
68
+ */
69
+ requestBody?: CustomerAccountInvitePatch;
70
+ }): CancelablePromise<any> {
71
+ return this.httpRequest.request({
72
+ method: 'PATCH',
73
+ url: '/api/customers/{customerId}/send-account-invite',
74
+ path: {
75
+ customerId: customerId,
76
+ },
77
+ body: requestBody,
78
+ mediaType: 'application/json',
79
+ errors: {
80
+ 400: `Bad Request`,
81
+ 422: `Unprocessable Content`,
82
+ 500: `Internal Server Error`,
83
+ },
84
+ });
85
+ }
86
+
52
87
  /**
53
88
  * Gets the customer with added stats.
54
89
  * @returns Customer OK
@@ -8,6 +8,7 @@ import type { CoursePage } from '../models/CoursePage';
8
8
  import type { CoursePatch } from '../models/CoursePatch';
9
9
  import type { CoursePost } from '../models/CoursePost';
10
10
  import type { CourseSearchSortBy } from '../models/CourseSearchSortBy';
11
+ import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
11
12
  import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
12
13
 
13
14
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -396,6 +397,41 @@ export class PublicCoursesService {
396
397
  });
397
398
  }
398
399
 
400
+ /**
401
+ * Gets public custom field definitions with their current values for a course.
402
+ * @returns CustomFieldDefinitionWithValue OK
403
+ * @throws ApiError
404
+ */
405
+ public getPublicCustomFields({
406
+ courseId,
407
+ xTenantSubdomain,
408
+ }: {
409
+ /**
410
+ * The course id.
411
+ */
412
+ courseId: string;
413
+ /**
414
+ * The tenants subdomain.
415
+ */
416
+ xTenantSubdomain?: string;
417
+ }): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
418
+ return this.httpRequest.request({
419
+ method: 'GET',
420
+ url: '/api/public/courses/{courseId}/custom-fields',
421
+ path: {
422
+ courseId: courseId,
423
+ },
424
+ headers: {
425
+ x_tenant_subdomain: xTenantSubdomain,
426
+ },
427
+ errors: {
428
+ 400: `Bad Request`,
429
+ 422: `Unprocessable Content`,
430
+ 500: `Internal Server Error`,
431
+ },
432
+ });
433
+ }
434
+
399
435
  /**
400
436
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
401
437
  * @returns Course OK
@@ -3,6 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { BookingStatus } from '../models/BookingStatus';
6
+ import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
6
7
  import type { Gender } from '../models/Gender';
7
8
  import type { PeriodsOfWeek } from '../models/PeriodsOfWeek';
8
9
  import type { ScheduledSession } from '../models/ScheduledSession';
@@ -441,6 +442,41 @@ export class PublicSessionsService {
441
442
  });
442
443
  }
443
444
 
445
+ /**
446
+ * Gets public custom field definitions with their current values for a session.
447
+ * @returns CustomFieldDefinitionWithValue OK
448
+ * @throws ApiError
449
+ */
450
+ public getPublicCustomFields({
451
+ sessionId,
452
+ xTenantSubdomain,
453
+ }: {
454
+ /**
455
+ * The session id.
456
+ */
457
+ sessionId: string;
458
+ /**
459
+ * The tenants subdomain.
460
+ */
461
+ xTenantSubdomain?: string;
462
+ }): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
463
+ return this.httpRequest.request({
464
+ method: 'GET',
465
+ url: '/api/public/sessions/{sessionId}/custom-fields',
466
+ path: {
467
+ sessionId: sessionId,
468
+ },
469
+ headers: {
470
+ x_tenant_subdomain: xTenantSubdomain,
471
+ },
472
+ errors: {
473
+ 400: `Bad Request`,
474
+ 422: `Unprocessable Content`,
475
+ 500: `Internal Server Error`,
476
+ },
477
+ });
478
+ }
479
+
444
480
  /**
445
481
  * Returns distinct slot dates without time information.
446
482
  * @returns any OK
@@ -2,6 +2,7 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
5
6
  import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
6
7
  import type { TenantStatus } from '../models/TenantStatus';
7
8
  import type { Venue } from '../models/Venue';
@@ -773,6 +774,41 @@ export class PublicVenuesService {
773
774
  });
774
775
  }
775
776
 
777
+ /**
778
+ * Gets public custom field definitions with their current values for a venue.
779
+ * @returns CustomFieldDefinitionWithValue OK
780
+ * @throws ApiError
781
+ */
782
+ public getPublicCustomFields({
783
+ venueId,
784
+ xTenantSubdomain,
785
+ }: {
786
+ /**
787
+ * The venue id.
788
+ */
789
+ venueId: string;
790
+ /**
791
+ * The tenants subdomain.
792
+ */
793
+ xTenantSubdomain?: string;
794
+ }): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
795
+ return this.httpRequest.request({
796
+ method: 'GET',
797
+ url: '/api/public/venues/{venueId}/custom-fields',
798
+ path: {
799
+ venueId: venueId,
800
+ },
801
+ headers: {
802
+ x_tenant_subdomain: xTenantSubdomain,
803
+ },
804
+ errors: {
805
+ 400: `Bad Request`,
806
+ 422: `Unprocessable Content`,
807
+ 500: `Internal Server Error`,
808
+ },
809
+ });
810
+ }
811
+
776
812
  /**
777
813
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
778
814
  * @returns Venue OK
@@ -2,6 +2,8 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
6
+ import type { CustomFieldsBulkUpdate } from '../models/CustomFieldsBulkUpdate';
5
7
  import type { Gender } from '../models/Gender';
6
8
  import type { PeriodsOfWeek } from '../models/PeriodsOfWeek';
7
9
  import type { ScheduledSession } from '../models/ScheduledSession';
@@ -328,6 +330,67 @@ export class SessionsService {
328
330
  });
329
331
  }
330
332
 
333
+ /**
334
+ * Gets custom field definitions with their current values for a session.
335
+ * @returns CustomFieldDefinitionWithValue OK
336
+ * @throws ApiError
337
+ */
338
+ public getCustomFields({
339
+ sessionId,
340
+ }: {
341
+ /**
342
+ * The session id.
343
+ */
344
+ sessionId: string;
345
+ }): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
346
+ return this.httpRequest.request({
347
+ method: 'GET',
348
+ url: '/api/sessions/{sessionId}/custom-fields',
349
+ path: {
350
+ sessionId: sessionId,
351
+ },
352
+ errors: {
353
+ 400: `Bad Request`,
354
+ 422: `Unprocessable Content`,
355
+ 500: `Internal Server Error`,
356
+ },
357
+ });
358
+ }
359
+
360
+ /**
361
+ * Bulk updates custom field values for a session.
362
+ * @returns CustomFieldDefinitionWithValue OK
363
+ * @throws ApiError
364
+ */
365
+ public bulkUpdateCustomFields({
366
+ sessionId,
367
+ requestBody,
368
+ }: {
369
+ /**
370
+ * The session id.
371
+ */
372
+ sessionId: string;
373
+ /**
374
+ * The bulk update request containing all custom field values.
375
+ */
376
+ requestBody?: CustomFieldsBulkUpdate;
377
+ }): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
378
+ return this.httpRequest.request({
379
+ method: 'PUT',
380
+ url: '/api/sessions/{sessionId}/custom-fields',
381
+ path: {
382
+ sessionId: sessionId,
383
+ },
384
+ body: requestBody,
385
+ mediaType: 'application/json',
386
+ errors: {
387
+ 400: `Bad Request`,
388
+ 422: `Unprocessable Content`,
389
+ 500: `Internal Server Error`,
390
+ },
391
+ });
392
+ }
393
+
331
394
  /**
332
395
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
333
396
  * @returns Session OK
@@ -2,6 +2,8 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { CustomFieldDefinitionWithValue } from '../models/CustomFieldDefinitionWithValue';
6
+ import type { CustomFieldsBulkUpdate } from '../models/CustomFieldsBulkUpdate';
5
7
  import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
6
8
  import type { TenantStatus } from '../models/TenantStatus';
7
9
  import type { Venue } from '../models/Venue';
@@ -227,6 +229,67 @@ export class VenuesService {
227
229
  });
228
230
  }
229
231
 
232
+ /**
233
+ * Gets custom field definitions with their current values for a venue.
234
+ * @returns CustomFieldDefinitionWithValue OK
235
+ * @throws ApiError
236
+ */
237
+ public getCustomFields({
238
+ venueId,
239
+ }: {
240
+ /**
241
+ * The venue id.
242
+ */
243
+ venueId: string;
244
+ }): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
245
+ return this.httpRequest.request({
246
+ method: 'GET',
247
+ url: '/api/venues/{venueId}/custom-fields',
248
+ path: {
249
+ venueId: venueId,
250
+ },
251
+ errors: {
252
+ 400: `Bad Request`,
253
+ 422: `Unprocessable Content`,
254
+ 500: `Internal Server Error`,
255
+ },
256
+ });
257
+ }
258
+
259
+ /**
260
+ * Bulk updates custom field values for a venue.
261
+ * @returns CustomFieldDefinitionWithValue OK
262
+ * @throws ApiError
263
+ */
264
+ public bulkUpdateCustomFields({
265
+ venueId,
266
+ requestBody,
267
+ }: {
268
+ /**
269
+ * The venue id.
270
+ */
271
+ venueId: string;
272
+ /**
273
+ * The bulk update request containing all custom field values.
274
+ */
275
+ requestBody?: CustomFieldsBulkUpdate;
276
+ }): CancelablePromise<Array<CustomFieldDefinitionWithValue>> {
277
+ return this.httpRequest.request({
278
+ method: 'PUT',
279
+ url: '/api/venues/{venueId}/custom-fields',
280
+ path: {
281
+ venueId: venueId,
282
+ },
283
+ body: requestBody,
284
+ mediaType: 'application/json',
285
+ errors: {
286
+ 400: `Bad Request`,
287
+ 422: `Unprocessable Content`,
288
+ 500: `Internal Server Error`,
289
+ },
290
+ });
291
+ }
292
+
230
293
  /**
231
294
  * Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
232
295
  * @returns Venue OK