reach-api-sdk 1.0.190 → 1.0.192

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 (32) hide show
  1. package/dist/reach-sdk.d.ts +756 -419
  2. package/dist/reach-sdk.js +355 -182
  3. package/package.json +1 -1
  4. package/src/apiClient.ts +3 -0
  5. package/src/definition/swagger.yaml +1129 -651
  6. package/src/index.ts +4 -0
  7. package/src/models/Course.ts +4 -0
  8. package/src/models/EndUserIdentity.ts +30 -0
  9. package/src/models/EndUserIdentitySecureToken.ts +2 -0
  10. package/src/models/EventTiming.ts +12 -0
  11. package/src/models/Session.ts +4 -0
  12. package/src/models/TenantWebsiteSetting.ts +3 -0
  13. package/src/models/UpcomingLayout.ts +12 -0
  14. package/src/services/BookingService.ts +36 -0
  15. package/src/services/CoursesService.ts +24 -0
  16. package/src/services/DealsService.ts +24 -0
  17. package/src/services/EndUserIdentitySecureTokenService.ts +4 -4
  18. package/src/services/LeasingService.ts +24 -0
  19. package/src/services/OrderItemsService.ts +73 -0
  20. package/src/services/OrdersService.ts +24 -0
  21. package/src/services/PublicBookingService.ts +12 -0
  22. package/src/services/PublicCalendarService.ts +57 -0
  23. package/src/services/PublicCoursesService.ts +12 -0
  24. package/src/services/PublicLeasingService.ts +12 -0
  25. package/src/services/PublicNetworksService.ts +6 -0
  26. package/src/services/PublicOrderItemsService.ts +201 -168
  27. package/src/services/PublicOrdersService.ts +239 -231
  28. package/src/services/PublicScheduledSessionsService.ts +12 -0
  29. package/src/services/PublicSessionsService.ts +18 -0
  30. package/src/services/ScheduledSessionsSchedulesService.ts +24 -0
  31. package/src/services/ScheduledSessionsService.ts +24 -0
  32. package/src/services/SessionsService.ts +24 -0
@@ -78,6 +78,239 @@ export class PublicOrdersService {
78
78
  });
79
79
  }
80
80
 
81
+ /**
82
+ * @returns OrderPage OK
83
+ * @throws ApiError
84
+ */
85
+ public getPage({
86
+ xTenantSubdomain,
87
+ wildcard,
88
+ accessCode,
89
+ customerName,
90
+ email,
91
+ providerId,
92
+ venueId,
93
+ programmeId,
94
+ customerId,
95
+ orderIds,
96
+ sessionId,
97
+ facilityId,
98
+ courseId,
99
+ orderStage,
100
+ isBookedOrPendingPayment,
101
+ orderStages,
102
+ orderDateGte,
103
+ orderDateLte,
104
+ endUserIdentityId,
105
+ pageNumber,
106
+ take,
107
+ skip,
108
+ limitListRequests,
109
+ tenantId,
110
+ modifiedById,
111
+ modifiedByIds,
112
+ dateCreatedGte,
113
+ dateCreatedLte,
114
+ isLive,
115
+ sortOrderDirection,
116
+ }: {
117
+ xTenantSubdomain?: string;
118
+ /**
119
+ * Gets or sets the wildcard for use in a query search.
120
+ */
121
+ wildcard?: string;
122
+ /**
123
+ * Gets or sets the access code for use in a query search.
124
+ */
125
+ accessCode?: string;
126
+ /**
127
+ * Gets or sets the customer name for use in a query search.
128
+ */
129
+ customerName?: string;
130
+ /**
131
+ * Gets or sets the email for use in a query search.
132
+ */
133
+ email?: string;
134
+ /**
135
+ * Gets or sets the provider Id for use in a query search.
136
+ */
137
+ providerId?: string;
138
+ /**
139
+ * Gets or sets the venue Id for use in a query search.
140
+ */
141
+ venueId?: string;
142
+ /**
143
+ * Gets or sets the programme Id for use in a query search.
144
+ */
145
+ programmeId?: string;
146
+ /**
147
+ * Gets or sets the customer Id for use in a query search.
148
+ */
149
+ customerId?: string;
150
+ /**
151
+ * Gets or sets the queryable order ids.
152
+ */
153
+ orderIds?: Array<string>;
154
+ /**
155
+ * Gets or sets the session Id for use in a query search.
156
+ */
157
+ sessionId?: string;
158
+ /**
159
+ * Gets or sets the facility Id for use in a query search.
160
+ */
161
+ facilityId?: string;
162
+ /**
163
+ * Gets or sets the course Id for use in a query search.
164
+ */
165
+ courseId?: string;
166
+ /**
167
+ * Gets or sets the queryable order stage. This cannot be used in conjunction with IsBookedOrPendingPayment.
168
+ */
169
+ orderStage?: OrderStage;
170
+ /**
171
+ * Gets or sets a value indicating whether to return orders that are either booked or pending payment. This cannot be used in conjunction with OrderStage.
172
+ */
173
+ isBookedOrPendingPayment?: boolean;
174
+ /**
175
+ * Gets or sets the queryable order stages.
176
+ */
177
+ orderStages?: Array<OrderStage>;
178
+ /**
179
+ * Gets or sets the queryable order date creted is greater than or equal to.
180
+ */
181
+ orderDateGte?: string;
182
+ /**
183
+ * Gets or sets the queryable order date created is less than or equal to.
184
+ */
185
+ orderDateLte?: string;
186
+ /**
187
+ * Gets or sets the end user identity Id for use in a query search.
188
+ */
189
+ endUserIdentityId?: string;
190
+ /**
191
+ * Gets or sets the page number for paged queries.
192
+ */
193
+ pageNumber?: number;
194
+ /**
195
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
196
+ */
197
+ take?: number;
198
+ /**
199
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
200
+ */
201
+ skip?: number;
202
+ /**
203
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
204
+ */
205
+ limitListRequests?: boolean;
206
+ /**
207
+ * Gets or sets the Tenant Id.
208
+ */
209
+ tenantId?: string;
210
+ /**
211
+ * Gets or sets the Modifed By Id.
212
+ */
213
+ modifiedById?: string;
214
+ /**
215
+ * Gets or sets the Modifed By Ids.
216
+ */
217
+ modifiedByIds?: Array<string>;
218
+ /**
219
+ * Gets or sets the Date Created greater than equal to.
220
+ */
221
+ dateCreatedGte?: string;
222
+ /**
223
+ * Gets or sets the Date Created less than equal to.
224
+ */
225
+ dateCreatedLte?: string;
226
+ /**
227
+ * Gets or sets the queryable only is live status.
228
+ */
229
+ isLive?: boolean;
230
+ /**
231
+ * Gets or sets the sort order direction.
232
+ */
233
+ sortOrderDirection?: SearchSortOrderDirection;
234
+ }): CancelablePromise<OrderPage> {
235
+ return this.httpRequest.request({
236
+ method: 'GET',
237
+ url: '/api/public/orders',
238
+ headers: {
239
+ x_tenant_subdomain: xTenantSubdomain,
240
+ },
241
+ query: {
242
+ Wildcard: wildcard,
243
+ AccessCode: accessCode,
244
+ CustomerName: customerName,
245
+ Email: email,
246
+ ProviderId: providerId,
247
+ VenueId: venueId,
248
+ ProgrammeId: programmeId,
249
+ CustomerId: customerId,
250
+ OrderIds: orderIds,
251
+ SessionId: sessionId,
252
+ FacilityId: facilityId,
253
+ CourseId: courseId,
254
+ OrderStage: orderStage,
255
+ IsBookedOrPendingPayment: isBookedOrPendingPayment,
256
+ OrderStages: orderStages,
257
+ OrderDateGTE: orderDateGte,
258
+ OrderDateLTE: orderDateLte,
259
+ EndUserIdentityId: endUserIdentityId,
260
+ PageNumber: pageNumber,
261
+ Take: take,
262
+ Skip: skip,
263
+ LimitListRequests: limitListRequests,
264
+ TenantId: tenantId,
265
+ ModifiedById: modifiedById,
266
+ ModifiedByIds: modifiedByIds,
267
+ DateCreatedGTE: dateCreatedGte,
268
+ DateCreatedLTE: dateCreatedLte,
269
+ IsLive: isLive,
270
+ SortOrderDirection: sortOrderDirection,
271
+ },
272
+ errors: {
273
+ 400: `Bad Request`,
274
+ 422: `Unprocessable Content`,
275
+ 500: `Internal Server Error`,
276
+ },
277
+ });
278
+ }
279
+
280
+ /**
281
+ * Deletes the resource.
282
+ * @returns any OK
283
+ * @throws ApiError
284
+ */
285
+ public deleteByObject({
286
+ xTenantSubdomain,
287
+ requestBody,
288
+ }: {
289
+ /**
290
+ * The tenants subdomain.
291
+ */
292
+ xTenantSubdomain?: string;
293
+ /**
294
+ * The <typeparamref name="TObject" /> model.
295
+ */
296
+ requestBody?: Order;
297
+ }): CancelablePromise<any> {
298
+ return this.httpRequest.request({
299
+ method: 'DELETE',
300
+ url: '/api/public/orders',
301
+ headers: {
302
+ x_tenant_subdomain: xTenantSubdomain,
303
+ },
304
+ body: requestBody,
305
+ mediaType: 'application/json',
306
+ errors: {
307
+ 400: `Bad Request`,
308
+ 422: `Unprocessable Content`,
309
+ 500: `Internal Server Error`,
310
+ },
311
+ });
312
+ }
313
+
81
314
  /**
82
315
  * Gets an Order and includes checks to ensure it is bookable.
83
316
  * @returns Order OK
@@ -333,237 +566,6 @@ export class PublicOrdersService {
333
566
  });
334
567
  }
335
568
 
336
- /**
337
- * Deletes the resource.
338
- * @returns any OK
339
- * @throws ApiError
340
- */
341
- public deleteByObject({
342
- xTenantSubdomain,
343
- requestBody,
344
- }: {
345
- /**
346
- * The tenants subdomain.
347
- */
348
- xTenantSubdomain?: string;
349
- /**
350
- * The <typeparamref name="TObject" /> model.
351
- */
352
- requestBody?: Order;
353
- }): CancelablePromise<any> {
354
- return this.httpRequest.request({
355
- method: 'DELETE',
356
- url: '/api/public/orders',
357
- headers: {
358
- x_tenant_subdomain: xTenantSubdomain,
359
- },
360
- body: requestBody,
361
- mediaType: 'application/json',
362
- errors: {
363
- 400: `Bad Request`,
364
- 422: `Unprocessable Content`,
365
- 500: `Internal Server Error`,
366
- },
367
- });
368
- }
369
-
370
- /**
371
- * Gets a list of resources.
372
- * @returns OrderPage OK
373
- * @throws ApiError
374
- */
375
- public getPage({
376
- xTenantSubdomain,
377
- wildcard,
378
- accessCode,
379
- customerName,
380
- email,
381
- providerId,
382
- venueId,
383
- programmeId,
384
- customerId,
385
- orderIds,
386
- sessionId,
387
- facilityId,
388
- courseId,
389
- orderStage,
390
- isBookedOrPendingPayment,
391
- orderStages,
392
- orderDateGte,
393
- orderDateLte,
394
- pageNumber,
395
- take,
396
- skip,
397
- limitListRequests,
398
- tenantId,
399
- modifiedById,
400
- modifiedByIds,
401
- dateCreatedGte,
402
- dateCreatedLte,
403
- isLive,
404
- sortOrderDirection,
405
- }: {
406
- /**
407
- * The tenants subdomain.
408
- */
409
- xTenantSubdomain?: string;
410
- /**
411
- * Gets or sets the wildcard for use in a query search.
412
- */
413
- wildcard?: string;
414
- /**
415
- * Gets or sets the access code for use in a query search.
416
- */
417
- accessCode?: string;
418
- /**
419
- * Gets or sets the customer name for use in a query search.
420
- */
421
- customerName?: string;
422
- /**
423
- * Gets or sets the email for use in a query search.
424
- */
425
- email?: string;
426
- /**
427
- * Gets or sets the provider Id for use in a query search.
428
- */
429
- providerId?: string;
430
- /**
431
- * Gets or sets the venue Id for use in a query search.
432
- */
433
- venueId?: string;
434
- /**
435
- * Gets or sets the programme Id for use in a query search.
436
- */
437
- programmeId?: string;
438
- /**
439
- * Gets or sets the customer Id for use in a query search.
440
- */
441
- customerId?: string;
442
- /**
443
- * Gets or sets the queryable order ids.
444
- */
445
- orderIds?: Array<string>;
446
- /**
447
- * Gets or sets the session Id for use in a query search.
448
- */
449
- sessionId?: string;
450
- /**
451
- * Gets or sets the facility Id for use in a query search.
452
- */
453
- facilityId?: string;
454
- /**
455
- * Gets or sets the course Id for use in a query search.
456
- */
457
- courseId?: string;
458
- /**
459
- * Gets or sets the queryable order stage. This cannot be used in conjunction with IsBookedOrPendingPayment.
460
- */
461
- orderStage?: OrderStage;
462
- /**
463
- * Gets or sets a value indicating whether to return orders that are either booked or pending payment. This cannot be used in conjunction with OrderStage.
464
- */
465
- isBookedOrPendingPayment?: boolean;
466
- /**
467
- * Gets or sets the queryable order stages.
468
- */
469
- orderStages?: Array<OrderStage>;
470
- /**
471
- * Gets or sets the queryable order date creted is greater than or equal to.
472
- */
473
- orderDateGte?: string;
474
- /**
475
- * Gets or sets the queryable order date created is less than or equal to.
476
- */
477
- orderDateLte?: string;
478
- /**
479
- * Gets or sets the page number for paged queries.
480
- */
481
- pageNumber?: number;
482
- /**
483
- * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
484
- */
485
- take?: number;
486
- /**
487
- * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
488
- */
489
- skip?: number;
490
- /**
491
- * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
492
- */
493
- limitListRequests?: boolean;
494
- /**
495
- * Gets or sets the Tenant Id.
496
- */
497
- tenantId?: string;
498
- /**
499
- * Gets or sets the Modifed By Id.
500
- */
501
- modifiedById?: string;
502
- /**
503
- * Gets or sets the Modifed By Ids.
504
- */
505
- modifiedByIds?: Array<string>;
506
- /**
507
- * Gets or sets the Date Created greater than equal to.
508
- */
509
- dateCreatedGte?: string;
510
- /**
511
- * Gets or sets the Date Created less than equal to.
512
- */
513
- dateCreatedLte?: string;
514
- /**
515
- * Gets or sets the queryable only is live status.
516
- */
517
- isLive?: boolean;
518
- /**
519
- * Gets or sets the sort order direction.
520
- */
521
- sortOrderDirection?: SearchSortOrderDirection;
522
- }): CancelablePromise<OrderPage> {
523
- return this.httpRequest.request({
524
- method: 'GET',
525
- url: '/api/public/orders',
526
- headers: {
527
- x_tenant_subdomain: xTenantSubdomain,
528
- },
529
- query: {
530
- Wildcard: wildcard,
531
- AccessCode: accessCode,
532
- CustomerName: customerName,
533
- Email: email,
534
- ProviderId: providerId,
535
- VenueId: venueId,
536
- ProgrammeId: programmeId,
537
- CustomerId: customerId,
538
- OrderIds: orderIds,
539
- SessionId: sessionId,
540
- FacilityId: facilityId,
541
- CourseId: courseId,
542
- OrderStage: orderStage,
543
- IsBookedOrPendingPayment: isBookedOrPendingPayment,
544
- OrderStages: orderStages,
545
- OrderDateGTE: orderDateGte,
546
- OrderDateLTE: orderDateLte,
547
- PageNumber: pageNumber,
548
- Take: take,
549
- Skip: skip,
550
- LimitListRequests: limitListRequests,
551
- TenantId: tenantId,
552
- ModifiedById: modifiedById,
553
- ModifiedByIds: modifiedByIds,
554
- DateCreatedGTE: dateCreatedGte,
555
- DateCreatedLTE: dateCreatedLte,
556
- IsLive: isLive,
557
- SortOrderDirection: sortOrderDirection,
558
- },
559
- errors: {
560
- 400: `Bad Request`,
561
- 422: `Unprocessable Content`,
562
- 500: `Internal Server Error`,
563
- },
564
- });
565
- }
566
-
567
569
  /**
568
570
  * Returns a value indicating whether the resource exists in the database given the provided search params.
569
571
  * @returns boolean OK
@@ -588,6 +590,7 @@ export class PublicOrdersService {
588
590
  orderStages,
589
591
  orderDateGte,
590
592
  orderDateLte,
593
+ endUserIdentityId,
591
594
  pageNumber,
592
595
  take,
593
596
  skip,
@@ -672,6 +675,10 @@ export class PublicOrdersService {
672
675
  * Gets or sets the queryable order date created is less than or equal to.
673
676
  */
674
677
  orderDateLte?: string;
678
+ /**
679
+ * Gets or sets the end user identity Id for use in a query search.
680
+ */
681
+ endUserIdentityId?: string;
675
682
  /**
676
683
  * Gets or sets the page number for paged queries.
677
684
  */
@@ -741,6 +748,7 @@ export class PublicOrdersService {
741
748
  OrderStages: orderStages,
742
749
  OrderDateGTE: orderDateGte,
743
750
  OrderDateLTE: orderDateLte,
751
+ EndUserIdentityId: endUserIdentityId,
744
752
  PageNumber: pageNumber,
745
753
  Take: take,
746
754
  Skip: skip,
@@ -102,6 +102,7 @@ export class PublicScheduledSessionsService {
102
102
  remainingUsesLte,
103
103
  remainingUsesGte,
104
104
  futureOnly,
105
+ bookableOnly,
105
106
  includeImages,
106
107
  includeVenue,
107
108
  includeOrders,
@@ -188,6 +189,10 @@ export class PublicScheduledSessionsService {
188
189
  * Gets or sets a value indicating whether to only return future scheduled session.
189
190
  */
190
191
  futureOnly?: boolean;
192
+ /**
193
+ * Gets or sets a value indicating whether to only return bookable scheduled sessions.
194
+ */
195
+ bookableOnly?: boolean;
191
196
  /**
192
197
  * Gets or sets a value indicating whether to include image detail in the results.
193
198
  */
@@ -292,6 +297,7 @@ export class PublicScheduledSessionsService {
292
297
  RemainingUsesLTE: remainingUsesLte,
293
298
  RemainingUsesGTE: remainingUsesGte,
294
299
  FutureOnly: futureOnly,
300
+ BookableOnly: bookableOnly,
295
301
  IncludeImages: includeImages,
296
302
  IncludeVenue: includeVenue,
297
303
  IncludeOrders: includeOrders,
@@ -480,6 +486,7 @@ export class PublicScheduledSessionsService {
480
486
  remainingUsesLte,
481
487
  remainingUsesGte,
482
488
  futureOnly,
489
+ bookableOnly,
483
490
  includeImages,
484
491
  includeVenue,
485
492
  includeOrders,
@@ -569,6 +576,10 @@ export class PublicScheduledSessionsService {
569
576
  * Gets or sets a value indicating whether to only return future scheduled session.
570
577
  */
571
578
  futureOnly?: boolean;
579
+ /**
580
+ * Gets or sets a value indicating whether to only return bookable scheduled sessions.
581
+ */
582
+ bookableOnly?: boolean;
572
583
  /**
573
584
  * Gets or sets a value indicating whether to include image detail in the results.
574
585
  */
@@ -673,6 +684,7 @@ export class PublicScheduledSessionsService {
673
684
  RemainingUsesLTE: remainingUsesLte,
674
685
  RemainingUsesGTE: remainingUsesGte,
675
686
  FutureOnly: futureOnly,
687
+ BookableOnly: bookableOnly,
676
688
  IncludeImages: includeImages,
677
689
  IncludeVenue: includeVenue,
678
690
  IncludeOrders: includeOrders,
@@ -96,6 +96,7 @@ export class PublicSessionsService {
96
96
  paymentPolicyId,
97
97
  futureOnly,
98
98
  online,
99
+ featured,
99
100
  programmeId,
100
101
  includeNextOpportunity,
101
102
  allowTemplating,
@@ -159,6 +160,10 @@ export class PublicSessionsService {
159
160
  * Gets or sets a value indicating whether return online sessions.
160
161
  */
161
162
  online?: boolean;
163
+ /**
164
+ * Gets or sets a value indicating whether the session is featured on the storefront.
165
+ */
166
+ featured?: boolean;
162
167
  /**
163
168
  * Gets or sets the queryable Programme Id.
164
169
  */
@@ -306,6 +311,7 @@ export class PublicSessionsService {
306
311
  PaymentPolicyId: paymentPolicyId,
307
312
  FutureOnly: futureOnly,
308
313
  Online: online,
314
+ Featured: featured,
309
315
  ProgrammeId: programmeId,
310
316
  IncludeNextOpportunity: includeNextOpportunity,
311
317
  AllowTemplating: allowTemplating,
@@ -446,6 +452,7 @@ export class PublicSessionsService {
446
452
  remainingUsesLte,
447
453
  remainingUsesGte,
448
454
  futureOnly,
455
+ bookableOnly,
449
456
  includeImages,
450
457
  includeVenue,
451
458
  includeOrders,
@@ -535,6 +542,10 @@ export class PublicSessionsService {
535
542
  * Gets or sets a value indicating whether to only return future scheduled session.
536
543
  */
537
544
  futureOnly?: boolean;
545
+ /**
546
+ * Gets or sets a value indicating whether to only return bookable scheduled sessions.
547
+ */
548
+ bookableOnly?: boolean;
538
549
  /**
539
550
  * Gets or sets a value indicating whether to include image detail in the results.
540
551
  */
@@ -639,6 +650,7 @@ export class PublicSessionsService {
639
650
  RemainingUsesLTE: remainingUsesLte,
640
651
  RemainingUsesGTE: remainingUsesGte,
641
652
  FutureOnly: futureOnly,
653
+ BookableOnly: bookableOnly,
642
654
  IncludeImages: includeImages,
643
655
  IncludeVenue: includeVenue,
644
656
  IncludeOrders: includeOrders,
@@ -784,6 +796,7 @@ export class PublicSessionsService {
784
796
  paymentPolicyId,
785
797
  futureOnly,
786
798
  online,
799
+ featured,
787
800
  programmeId,
788
801
  includeNextOpportunity,
789
802
  allowTemplating,
@@ -850,6 +863,10 @@ export class PublicSessionsService {
850
863
  * Gets or sets a value indicating whether return online sessions.
851
864
  */
852
865
  online?: boolean;
866
+ /**
867
+ * Gets or sets a value indicating whether the session is featured on the storefront.
868
+ */
869
+ featured?: boolean;
853
870
  /**
854
871
  * Gets or sets the queryable Programme Id.
855
872
  */
@@ -997,6 +1014,7 @@ export class PublicSessionsService {
997
1014
  PaymentPolicyId: paymentPolicyId,
998
1015
  FutureOnly: futureOnly,
999
1016
  Online: online,
1017
+ Featured: featured,
1000
1018
  ProgrammeId: programmeId,
1001
1019
  IncludeNextOpportunity: includeNextOpportunity,
1002
1020
  AllowTemplating: allowTemplating,