reach-api-sdk 1.0.191 → 1.0.193
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/dist/reach-sdk.d.ts +515 -73
- package/dist/reach-sdk.js +298 -5
- package/package.json +1 -1
- package/src/apiClient.ts +3 -0
- package/src/definition/swagger.yaml +806 -6
- package/src/index.ts +2 -0
- package/src/models/Course.ts +8 -0
- package/src/models/GenericActivity.ts +4 -0
- package/src/models/Session.ts +8 -0
- package/src/models/TenantWebsiteSetting.ts +3 -0
- package/src/models/UpcomingLayout.ts +12 -0
- package/src/services/BookingService.ts +36 -0
- package/src/services/CoursesService.ts +104 -2
- package/src/services/GenericActivityService.ts +30 -0
- package/src/services/LeasingService.ts +24 -0
- package/src/services/OrderItemsService.ts +48 -0
- package/src/services/OrdersService.ts +24 -0
- package/src/services/PublicBookingService.ts +12 -0
- package/src/services/PublicCalendarService.ts +57 -0
- package/src/services/PublicCoursesService.ts +24 -0
- package/src/services/PublicGenericActivityService.ts +24 -0
- package/src/services/PublicLeasingService.ts +12 -0
- package/src/services/PublicNetworksService.ts +12 -0
- package/src/services/PublicOrderItemsService.ts +24 -0
- package/src/services/PublicOrdersService.ts +12 -0
- package/src/services/PublicScheduledSessionsService.ts +12 -0
- package/src/services/PublicSessionsService.ts +30 -0
- package/src/services/PublicVenuesService.ts +18 -0
- package/src/services/ScheduledSessionsSchedulesService.ts +24 -0
- package/src/services/ScheduledSessionsService.ts +24 -0
- package/src/services/SessionsService.ts +106 -4
- package/src/services/VenuesService.ts +24 -0
|
@@ -209,7 +209,7 @@ export class SessionsService {
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
|
-
*
|
|
212
|
+
* Assign deal to session.
|
|
213
213
|
* @returns Session OK
|
|
214
214
|
* @throws ApiError
|
|
215
215
|
*/
|
|
@@ -218,7 +218,7 @@ export class SessionsService {
|
|
|
218
218
|
dealId,
|
|
219
219
|
}: {
|
|
220
220
|
/**
|
|
221
|
-
* The
|
|
221
|
+
* The session Id.
|
|
222
222
|
*/
|
|
223
223
|
sessionId: string;
|
|
224
224
|
/**
|
|
@@ -242,7 +242,7 @@ export class SessionsService {
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
/**
|
|
245
|
-
*
|
|
245
|
+
* Unassign deal from session.
|
|
246
246
|
* @returns Session OK
|
|
247
247
|
* @throws ApiError
|
|
248
248
|
*/
|
|
@@ -251,7 +251,7 @@ export class SessionsService {
|
|
|
251
251
|
dealId,
|
|
252
252
|
}: {
|
|
253
253
|
/**
|
|
254
|
-
* The
|
|
254
|
+
* The session Id.
|
|
255
255
|
*/
|
|
256
256
|
sessionId: string;
|
|
257
257
|
/**
|
|
@@ -274,6 +274,60 @@ export class SessionsService {
|
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
+
/**
|
|
278
|
+
* Set the session as featured (displays more prominently on the storefront).
|
|
279
|
+
* @returns Session OK
|
|
280
|
+
* @throws ApiError
|
|
281
|
+
*/
|
|
282
|
+
public setFeatured({
|
|
283
|
+
id,
|
|
284
|
+
}: {
|
|
285
|
+
/**
|
|
286
|
+
* The session Id.
|
|
287
|
+
*/
|
|
288
|
+
id: string;
|
|
289
|
+
}): CancelablePromise<Session> {
|
|
290
|
+
return this.httpRequest.request({
|
|
291
|
+
method: 'PATCH',
|
|
292
|
+
url: '/api/sessions/{id}/set-featured',
|
|
293
|
+
path: {
|
|
294
|
+
id: id,
|
|
295
|
+
},
|
|
296
|
+
errors: {
|
|
297
|
+
400: `Bad Request`,
|
|
298
|
+
422: `Unprocessable Content`,
|
|
299
|
+
500: `Internal Server Error`,
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Remove the session as featured (displays as standard on the storefront).
|
|
306
|
+
* @returns Session OK
|
|
307
|
+
* @throws ApiError
|
|
308
|
+
*/
|
|
309
|
+
public removeFeatured({
|
|
310
|
+
id,
|
|
311
|
+
}: {
|
|
312
|
+
/**
|
|
313
|
+
* The session Id.
|
|
314
|
+
*/
|
|
315
|
+
id: string;
|
|
316
|
+
}): CancelablePromise<Session> {
|
|
317
|
+
return this.httpRequest.request({
|
|
318
|
+
method: 'PATCH',
|
|
319
|
+
url: '/api/sessions/{id}/remove-featured',
|
|
320
|
+
path: {
|
|
321
|
+
id: id,
|
|
322
|
+
},
|
|
323
|
+
errors: {
|
|
324
|
+
400: `Bad Request`,
|
|
325
|
+
422: `Unprocessable Content`,
|
|
326
|
+
500: `Internal Server Error`,
|
|
327
|
+
},
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
|
|
277
331
|
/**
|
|
278
332
|
* Inserts a new resource. The Id will be automatically generated and will be ignored if provided.
|
|
279
333
|
* @returns Session OK
|
|
@@ -417,12 +471,14 @@ export class SessionsService {
|
|
|
417
471
|
paymentPolicyId,
|
|
418
472
|
futureOnly,
|
|
419
473
|
online,
|
|
474
|
+
featured,
|
|
420
475
|
programmeId,
|
|
421
476
|
includeNextOpportunity,
|
|
422
477
|
allowTemplating,
|
|
423
478
|
archived,
|
|
424
479
|
deleted,
|
|
425
480
|
openActiveUpdate,
|
|
481
|
+
dashboardRequest,
|
|
426
482
|
networkId,
|
|
427
483
|
distance,
|
|
428
484
|
minAgeLte,
|
|
@@ -479,6 +535,10 @@ export class SessionsService {
|
|
|
479
535
|
* Gets or sets a value indicating whether return online sessions.
|
|
480
536
|
*/
|
|
481
537
|
online?: boolean;
|
|
538
|
+
/**
|
|
539
|
+
* Gets or sets a value indicating whether the session is featured on the storefront.
|
|
540
|
+
*/
|
|
541
|
+
featured?: boolean;
|
|
482
542
|
/**
|
|
483
543
|
* Gets or sets the queryable Programme Id.
|
|
484
544
|
*/
|
|
@@ -503,6 +563,10 @@ export class SessionsService {
|
|
|
503
563
|
* Gets or sets a value indicating this an openactive reaquest.
|
|
504
564
|
*/
|
|
505
565
|
openActiveUpdate?: boolean;
|
|
566
|
+
/**
|
|
567
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
568
|
+
*/
|
|
569
|
+
dashboardRequest?: boolean;
|
|
506
570
|
/**
|
|
507
571
|
* Gets or sets a value indicating whether to include only sessions by given NetworkId.
|
|
508
572
|
*/
|
|
@@ -623,12 +687,14 @@ export class SessionsService {
|
|
|
623
687
|
PaymentPolicyId: paymentPolicyId,
|
|
624
688
|
FutureOnly: futureOnly,
|
|
625
689
|
Online: online,
|
|
690
|
+
Featured: featured,
|
|
626
691
|
ProgrammeId: programmeId,
|
|
627
692
|
IncludeNextOpportunity: includeNextOpportunity,
|
|
628
693
|
AllowTemplating: allowTemplating,
|
|
629
694
|
Archived: archived,
|
|
630
695
|
Deleted: deleted,
|
|
631
696
|
OpenActiveUpdate: openActiveUpdate,
|
|
697
|
+
DashboardRequest: dashboardRequest,
|
|
632
698
|
NetworkId: networkId,
|
|
633
699
|
Distance: distance,
|
|
634
700
|
MinAgeLTE: minAgeLte,
|
|
@@ -759,12 +825,14 @@ export class SessionsService {
|
|
|
759
825
|
paymentPolicyId,
|
|
760
826
|
futureOnly,
|
|
761
827
|
online,
|
|
828
|
+
featured,
|
|
762
829
|
programmeId,
|
|
763
830
|
includeNextOpportunity,
|
|
764
831
|
allowTemplating,
|
|
765
832
|
archived,
|
|
766
833
|
deleted,
|
|
767
834
|
openActiveUpdate,
|
|
835
|
+
dashboardRequest,
|
|
768
836
|
networkId,
|
|
769
837
|
distance,
|
|
770
838
|
minAgeLte,
|
|
@@ -821,6 +889,10 @@ export class SessionsService {
|
|
|
821
889
|
* Gets or sets a value indicating whether return online sessions.
|
|
822
890
|
*/
|
|
823
891
|
online?: boolean;
|
|
892
|
+
/**
|
|
893
|
+
* Gets or sets a value indicating whether the session is featured on the storefront.
|
|
894
|
+
*/
|
|
895
|
+
featured?: boolean;
|
|
824
896
|
/**
|
|
825
897
|
* Gets or sets the queryable Programme Id.
|
|
826
898
|
*/
|
|
@@ -845,6 +917,10 @@ export class SessionsService {
|
|
|
845
917
|
* Gets or sets a value indicating this an openactive reaquest.
|
|
846
918
|
*/
|
|
847
919
|
openActiveUpdate?: boolean;
|
|
920
|
+
/**
|
|
921
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
922
|
+
*/
|
|
923
|
+
dashboardRequest?: boolean;
|
|
848
924
|
/**
|
|
849
925
|
* Gets or sets a value indicating whether to include only sessions by given NetworkId.
|
|
850
926
|
*/
|
|
@@ -965,12 +1041,14 @@ export class SessionsService {
|
|
|
965
1041
|
PaymentPolicyId: paymentPolicyId,
|
|
966
1042
|
FutureOnly: futureOnly,
|
|
967
1043
|
Online: online,
|
|
1044
|
+
Featured: featured,
|
|
968
1045
|
ProgrammeId: programmeId,
|
|
969
1046
|
IncludeNextOpportunity: includeNextOpportunity,
|
|
970
1047
|
AllowTemplating: allowTemplating,
|
|
971
1048
|
Archived: archived,
|
|
972
1049
|
Deleted: deleted,
|
|
973
1050
|
OpenActiveUpdate: openActiveUpdate,
|
|
1051
|
+
DashboardRequest: dashboardRequest,
|
|
974
1052
|
NetworkId: networkId,
|
|
975
1053
|
Distance: distance,
|
|
976
1054
|
MinAgeLTE: minAgeLte,
|
|
@@ -1020,12 +1098,14 @@ export class SessionsService {
|
|
|
1020
1098
|
paymentPolicyId,
|
|
1021
1099
|
futureOnly,
|
|
1022
1100
|
online,
|
|
1101
|
+
featured,
|
|
1023
1102
|
programmeId,
|
|
1024
1103
|
includeNextOpportunity,
|
|
1025
1104
|
allowTemplating,
|
|
1026
1105
|
archived,
|
|
1027
1106
|
deleted,
|
|
1028
1107
|
openActiveUpdate,
|
|
1108
|
+
dashboardRequest,
|
|
1029
1109
|
networkId,
|
|
1030
1110
|
distance,
|
|
1031
1111
|
minAgeLte,
|
|
@@ -1082,6 +1162,10 @@ export class SessionsService {
|
|
|
1082
1162
|
* Gets or sets a value indicating whether return online sessions.
|
|
1083
1163
|
*/
|
|
1084
1164
|
online?: boolean;
|
|
1165
|
+
/**
|
|
1166
|
+
* Gets or sets a value indicating whether the session is featured on the storefront.
|
|
1167
|
+
*/
|
|
1168
|
+
featured?: boolean;
|
|
1085
1169
|
/**
|
|
1086
1170
|
* Gets or sets the queryable Programme Id.
|
|
1087
1171
|
*/
|
|
@@ -1106,6 +1190,10 @@ export class SessionsService {
|
|
|
1106
1190
|
* Gets or sets a value indicating this an openactive reaquest.
|
|
1107
1191
|
*/
|
|
1108
1192
|
openActiveUpdate?: boolean;
|
|
1193
|
+
/**
|
|
1194
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
1195
|
+
*/
|
|
1196
|
+
dashboardRequest?: boolean;
|
|
1109
1197
|
/**
|
|
1110
1198
|
* Gets or sets a value indicating whether to include only sessions by given NetworkId.
|
|
1111
1199
|
*/
|
|
@@ -1226,12 +1314,14 @@ export class SessionsService {
|
|
|
1226
1314
|
PaymentPolicyId: paymentPolicyId,
|
|
1227
1315
|
FutureOnly: futureOnly,
|
|
1228
1316
|
Online: online,
|
|
1317
|
+
Featured: featured,
|
|
1229
1318
|
ProgrammeId: programmeId,
|
|
1230
1319
|
IncludeNextOpportunity: includeNextOpportunity,
|
|
1231
1320
|
AllowTemplating: allowTemplating,
|
|
1232
1321
|
Archived: archived,
|
|
1233
1322
|
Deleted: deleted,
|
|
1234
1323
|
OpenActiveUpdate: openActiveUpdate,
|
|
1324
|
+
DashboardRequest: dashboardRequest,
|
|
1235
1325
|
NetworkId: networkId,
|
|
1236
1326
|
Distance: distance,
|
|
1237
1327
|
MinAgeLTE: minAgeLte,
|
|
@@ -1281,12 +1371,14 @@ export class SessionsService {
|
|
|
1281
1371
|
paymentPolicyId,
|
|
1282
1372
|
futureOnly,
|
|
1283
1373
|
online,
|
|
1374
|
+
featured,
|
|
1284
1375
|
programmeId,
|
|
1285
1376
|
includeNextOpportunity,
|
|
1286
1377
|
allowTemplating,
|
|
1287
1378
|
archived,
|
|
1288
1379
|
deleted,
|
|
1289
1380
|
openActiveUpdate,
|
|
1381
|
+
dashboardRequest,
|
|
1290
1382
|
networkId,
|
|
1291
1383
|
distance,
|
|
1292
1384
|
minAgeLte,
|
|
@@ -1343,6 +1435,10 @@ export class SessionsService {
|
|
|
1343
1435
|
* Gets or sets a value indicating whether return online sessions.
|
|
1344
1436
|
*/
|
|
1345
1437
|
online?: boolean;
|
|
1438
|
+
/**
|
|
1439
|
+
* Gets or sets a value indicating whether the session is featured on the storefront.
|
|
1440
|
+
*/
|
|
1441
|
+
featured?: boolean;
|
|
1346
1442
|
/**
|
|
1347
1443
|
* Gets or sets the queryable Programme Id.
|
|
1348
1444
|
*/
|
|
@@ -1367,6 +1463,10 @@ export class SessionsService {
|
|
|
1367
1463
|
* Gets or sets a value indicating this an openactive reaquest.
|
|
1368
1464
|
*/
|
|
1369
1465
|
openActiveUpdate?: boolean;
|
|
1466
|
+
/**
|
|
1467
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
1468
|
+
*/
|
|
1469
|
+
dashboardRequest?: boolean;
|
|
1370
1470
|
/**
|
|
1371
1471
|
* Gets or sets a value indicating whether to include only sessions by given NetworkId.
|
|
1372
1472
|
*/
|
|
@@ -1487,12 +1587,14 @@ export class SessionsService {
|
|
|
1487
1587
|
PaymentPolicyId: paymentPolicyId,
|
|
1488
1588
|
FutureOnly: futureOnly,
|
|
1489
1589
|
Online: online,
|
|
1590
|
+
Featured: featured,
|
|
1490
1591
|
ProgrammeId: programmeId,
|
|
1491
1592
|
IncludeNextOpportunity: includeNextOpportunity,
|
|
1492
1593
|
AllowTemplating: allowTemplating,
|
|
1493
1594
|
Archived: archived,
|
|
1494
1595
|
Deleted: deleted,
|
|
1495
1596
|
OpenActiveUpdate: openActiveUpdate,
|
|
1597
|
+
DashboardRequest: dashboardRequest,
|
|
1496
1598
|
NetworkId: networkId,
|
|
1497
1599
|
Distance: distance,
|
|
1498
1600
|
MinAgeLTE: minAgeLte,
|
|
@@ -380,6 +380,7 @@ export class VenuesService {
|
|
|
380
380
|
includeOpportunityOffers,
|
|
381
381
|
includeNextOpportunity,
|
|
382
382
|
distance,
|
|
383
|
+
dashboardRequest,
|
|
383
384
|
pageNumber,
|
|
384
385
|
take,
|
|
385
386
|
skip,
|
|
@@ -464,6 +465,10 @@ export class VenuesService {
|
|
|
464
465
|
* Gets or sets Distance.
|
|
465
466
|
*/
|
|
466
467
|
distance?: number;
|
|
468
|
+
/**
|
|
469
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
470
|
+
*/
|
|
471
|
+
dashboardRequest?: boolean;
|
|
467
472
|
/**
|
|
468
473
|
* Gets or sets the page number for paged queries.
|
|
469
474
|
*/
|
|
@@ -531,6 +536,7 @@ export class VenuesService {
|
|
|
531
536
|
IncludeOpportunityOffers: includeOpportunityOffers,
|
|
532
537
|
IncludeNextOpportunity: includeNextOpportunity,
|
|
533
538
|
Distance: distance,
|
|
539
|
+
DashboardRequest: dashboardRequest,
|
|
534
540
|
PageNumber: pageNumber,
|
|
535
541
|
Take: take,
|
|
536
542
|
Skip: skip,
|
|
@@ -656,6 +662,7 @@ export class VenuesService {
|
|
|
656
662
|
includeOpportunityOffers,
|
|
657
663
|
includeNextOpportunity,
|
|
658
664
|
distance,
|
|
665
|
+
dashboardRequest,
|
|
659
666
|
pageNumber,
|
|
660
667
|
take,
|
|
661
668
|
skip,
|
|
@@ -740,6 +747,10 @@ export class VenuesService {
|
|
|
740
747
|
* Gets or sets Distance.
|
|
741
748
|
*/
|
|
742
749
|
distance?: number;
|
|
750
|
+
/**
|
|
751
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
752
|
+
*/
|
|
753
|
+
dashboardRequest?: boolean;
|
|
743
754
|
/**
|
|
744
755
|
* Gets or sets the page number for paged queries.
|
|
745
756
|
*/
|
|
@@ -807,6 +818,7 @@ export class VenuesService {
|
|
|
807
818
|
IncludeOpportunityOffers: includeOpportunityOffers,
|
|
808
819
|
IncludeNextOpportunity: includeNextOpportunity,
|
|
809
820
|
Distance: distance,
|
|
821
|
+
DashboardRequest: dashboardRequest,
|
|
810
822
|
PageNumber: pageNumber,
|
|
811
823
|
Take: take,
|
|
812
824
|
Skip: skip,
|
|
@@ -851,6 +863,7 @@ export class VenuesService {
|
|
|
851
863
|
includeOpportunityOffers,
|
|
852
864
|
includeNextOpportunity,
|
|
853
865
|
distance,
|
|
866
|
+
dashboardRequest,
|
|
854
867
|
pageNumber,
|
|
855
868
|
take,
|
|
856
869
|
skip,
|
|
@@ -935,6 +948,10 @@ export class VenuesService {
|
|
|
935
948
|
* Gets or sets Distance.
|
|
936
949
|
*/
|
|
937
950
|
distance?: number;
|
|
951
|
+
/**
|
|
952
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
953
|
+
*/
|
|
954
|
+
dashboardRequest?: boolean;
|
|
938
955
|
/**
|
|
939
956
|
* Gets or sets the page number for paged queries.
|
|
940
957
|
*/
|
|
@@ -1002,6 +1019,7 @@ export class VenuesService {
|
|
|
1002
1019
|
IncludeOpportunityOffers: includeOpportunityOffers,
|
|
1003
1020
|
IncludeNextOpportunity: includeNextOpportunity,
|
|
1004
1021
|
Distance: distance,
|
|
1022
|
+
DashboardRequest: dashboardRequest,
|
|
1005
1023
|
PageNumber: pageNumber,
|
|
1006
1024
|
Take: take,
|
|
1007
1025
|
Skip: skip,
|
|
@@ -1046,6 +1064,7 @@ export class VenuesService {
|
|
|
1046
1064
|
includeOpportunityOffers,
|
|
1047
1065
|
includeNextOpportunity,
|
|
1048
1066
|
distance,
|
|
1067
|
+
dashboardRequest,
|
|
1049
1068
|
pageNumber,
|
|
1050
1069
|
take,
|
|
1051
1070
|
skip,
|
|
@@ -1130,6 +1149,10 @@ export class VenuesService {
|
|
|
1130
1149
|
* Gets or sets Distance.
|
|
1131
1150
|
*/
|
|
1132
1151
|
distance?: number;
|
|
1152
|
+
/**
|
|
1153
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
1154
|
+
*/
|
|
1155
|
+
dashboardRequest?: boolean;
|
|
1133
1156
|
/**
|
|
1134
1157
|
* Gets or sets the page number for paged queries.
|
|
1135
1158
|
*/
|
|
@@ -1197,6 +1220,7 @@ export class VenuesService {
|
|
|
1197
1220
|
IncludeOpportunityOffers: includeOpportunityOffers,
|
|
1198
1221
|
IncludeNextOpportunity: includeNextOpportunity,
|
|
1199
1222
|
Distance: distance,
|
|
1223
|
+
DashboardRequest: dashboardRequest,
|
|
1200
1224
|
PageNumber: pageNumber,
|
|
1201
1225
|
Take: take,
|
|
1202
1226
|
Skip: skip,
|