reach-api-sdk 1.0.194 → 1.0.196

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 (83) hide show
  1. package/dist/reach-sdk.d.ts +7203 -1320
  2. package/dist/reach-sdk.js +4096 -26
  3. package/package.json +1 -1
  4. package/src/definition/swagger.yaml +16630 -4446
  5. package/src/index.ts +1 -0
  6. package/src/models/Tenant.ts +2 -0
  7. package/src/models/TenantStatus.ts +12 -0
  8. package/src/services/ActivityPerformanceService.ts +129 -0
  9. package/src/services/AttendeesService.ts +111 -0
  10. package/src/services/BadEnglandReportService.ts +87 -0
  11. package/src/services/BookingService.ts +201 -0
  12. package/src/services/CancellationPoliciesService.ts +111 -0
  13. package/src/services/CourseSessionSchedulesService.ts +117 -0
  14. package/src/services/CourseSessionsService.ts +213 -0
  15. package/src/services/CoursesService.ts +273 -0
  16. package/src/services/CustomersService.ts +129 -0
  17. package/src/services/DealActivitiesService.ts +123 -0
  18. package/src/services/DealsService.ts +123 -0
  19. package/src/services/DiscountCodeUsesService.ts +136 -0
  20. package/src/services/EmailReminderSchedulesService.ts +117 -0
  21. package/src/services/EmailSettingsService.ts +117 -0
  22. package/src/services/FacilitiesService.ts +135 -0
  23. package/src/services/FacilityIndividualsService.ts +93 -0
  24. package/src/services/GenericActivityService.ts +316 -0
  25. package/src/services/ImageUploadHistoryService.ts +99 -0
  26. package/src/services/ImagesService.ts +147 -0
  27. package/src/services/LeasingService.ts +195 -0
  28. package/src/services/LocationsReportService.ts +105 -0
  29. package/src/services/NotificationQueueService.ts +99 -0
  30. package/src/services/NotificationSettingsService.ts +177 -0
  31. package/src/services/OffersService.ts +165 -0
  32. package/src/services/OpenactiveFeedIntermediateService.ts +93 -0
  33. package/src/services/OpenactiveFeedItemService.ts +99 -0
  34. package/src/services/OpportunityRegisterService.ts +147 -0
  35. package/src/services/OrderItemReportService.ts +123 -0
  36. package/src/services/OrderItemsService.ts +153 -24
  37. package/src/services/OrdersService.ts +195 -0
  38. package/src/services/OrgCourseUtilisationService.ts +147 -0
  39. package/src/services/PaymentPoliciesService.ts +111 -0
  40. package/src/services/PaymentsService.ts +93 -0
  41. package/src/services/PermissionsService.ts +87 -0
  42. package/src/services/PlatformPayoutsService.ts +99 -0
  43. package/src/services/ProgrammesService.ts +117 -0
  44. package/src/services/ProvidersService.ts +189 -0
  45. package/src/services/PublicGenericActivityService.ts +25 -0
  46. package/src/services/PublicOrderItemsService.ts +0 -12
  47. package/src/services/PublicVenuesService.ts +19 -0
  48. package/src/services/PublicWaitlistOpportunityService.ts +12 -0
  49. package/src/services/RecentOrderActivityReportService.ts +87 -0
  50. package/src/services/RegisterReportService.ts +117 -0
  51. package/src/services/RescheduleLogService.ts +99 -0
  52. package/src/services/ScheduledSessionsSchedulesService.ts +123 -0
  53. package/src/services/ScheduledSessionsService.ts +249 -0
  54. package/src/services/SessionsService.ts +273 -0
  55. package/src/services/SlotOffersService.ts +99 -0
  56. package/src/services/SlotScheduleOffersService.ts +99 -0
  57. package/src/services/SlotSchedulesService.ts +129 -0
  58. package/src/services/SlotsService.ts +207 -0
  59. package/src/services/StripeAccountService.ts +99 -0
  60. package/src/services/SurveyAnswersService.ts +129 -0
  61. package/src/services/SurveyCompletionLogService.ts +123 -0
  62. package/src/services/SurveyQuestionsService.ts +93 -0
  63. package/src/services/SurveyReportExtendedService.ts +105 -0
  64. package/src/services/SurveysService.ts +123 -0
  65. package/src/services/TemplateDetailsService.ts +93 -0
  66. package/src/services/TemplateFieldPermissionsService.ts +93 -0
  67. package/src/services/TemplateOffersService.ts +93 -0
  68. package/src/services/TemplatesService.ts +93 -0
  69. package/src/services/TenantWebsiteSettingsService.ts +87 -0
  70. package/src/services/TenantsService.ts +93 -0
  71. package/src/services/TotalRevenueReportService.ts +111 -0
  72. package/src/services/UserPermissionsService.ts +93 -0
  73. package/src/services/UserProgrammesService.ts +111 -0
  74. package/src/services/UserProvidersService.ts +111 -0
  75. package/src/services/UsersService.ts +123 -0
  76. package/src/services/VenueManagersService.ts +111 -0
  77. package/src/services/VenuePerformanceService.ts +129 -0
  78. package/src/services/VenuesReportService.ts +93 -0
  79. package/src/services/VenuesService.ts +238 -0
  80. package/src/services/WaitlistActivityReportService.ts +123 -0
  81. package/src/services/WaitlistActivityService.ts +123 -0
  82. package/src/services/WaitlistOpportunityReportService.ts +170 -0
  83. package/src/services/WaitlistOpportunityService.ts +147 -0
@@ -504,6 +504,123 @@ export class CourseSessionSchedulesService {
504
504
  });
505
505
  }
506
506
 
507
+ /**
508
+ * Returns the number of results in the database given the provided search params.
509
+ * @returns number OK
510
+ * @throws ApiError
511
+ */
512
+ public count({
513
+ courseId,
514
+ courseIds,
515
+ lastRunDateTimeLte,
516
+ status,
517
+ statuses,
518
+ pageNumber,
519
+ take,
520
+ skip,
521
+ limitListRequests,
522
+ tenantId,
523
+ modifiedById,
524
+ modifiedByIds,
525
+ dateCreatedGte,
526
+ dateCreatedLte,
527
+ isLive,
528
+ sortOrderDirection,
529
+ }: {
530
+ /**
531
+ * Gets or sets the queryable course id.
532
+ */
533
+ courseId?: string;
534
+ /**
535
+ * Gets or sets the queryable slot course Ids.
536
+ */
537
+ courseIds?: Array<string>;
538
+ /**
539
+ * Gets or sets the queryable slot schedule last run date.
540
+ */
541
+ lastRunDateTimeLte?: string;
542
+ /**
543
+ * Gets or sets the queryable schedule status.
544
+ */
545
+ status?: ScheduleStatus;
546
+ /**
547
+ * Gets or sets the queryable schedule statuses.
548
+ */
549
+ statuses?: Array<ScheduleStatus>;
550
+ /**
551
+ * Gets or sets the page number for paged queries.
552
+ */
553
+ pageNumber?: number;
554
+ /**
555
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
556
+ */
557
+ take?: number;
558
+ /**
559
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
560
+ */
561
+ skip?: number;
562
+ /**
563
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
564
+ */
565
+ limitListRequests?: boolean;
566
+ /**
567
+ * Gets or sets the Tenant Id.
568
+ */
569
+ tenantId?: string;
570
+ /**
571
+ * Gets or sets the Modifed By Id.
572
+ */
573
+ modifiedById?: string;
574
+ /**
575
+ * Gets or sets the Modifed By Ids.
576
+ */
577
+ modifiedByIds?: Array<string>;
578
+ /**
579
+ * Gets or sets the Date Created greater than equal to.
580
+ */
581
+ dateCreatedGte?: string;
582
+ /**
583
+ * Gets or sets the Date Created less than equal to.
584
+ */
585
+ dateCreatedLte?: string;
586
+ /**
587
+ * Gets or sets the queryable only is live status.
588
+ */
589
+ isLive?: boolean;
590
+ /**
591
+ * Gets or sets the sort order direction.
592
+ */
593
+ sortOrderDirection?: SearchSortOrderDirection;
594
+ }): CancelablePromise<number> {
595
+ return this.httpRequest.request({
596
+ method: 'GET',
597
+ url: '/api/course-session-schedules/count',
598
+ query: {
599
+ CourseId: courseId,
600
+ CourseIds: courseIds,
601
+ LastRunDateTimeLTE: lastRunDateTimeLte,
602
+ Status: status,
603
+ Statuses: statuses,
604
+ PageNumber: pageNumber,
605
+ Take: take,
606
+ Skip: skip,
607
+ LimitListRequests: limitListRequests,
608
+ TenantId: tenantId,
609
+ ModifiedById: modifiedById,
610
+ ModifiedByIds: modifiedByIds,
611
+ DateCreatedGTE: dateCreatedGte,
612
+ DateCreatedLTE: dateCreatedLte,
613
+ IsLive: isLive,
614
+ SortOrderDirection: sortOrderDirection,
615
+ },
616
+ errors: {
617
+ 400: `Bad Request`,
618
+ 422: `Unprocessable Content`,
619
+ 500: `Internal Server Error`,
620
+ },
621
+ });
622
+ }
623
+
507
624
  /**
508
625
  * Gets a list of resources unpaged and without references.
509
626
  * @returns CourseSessionSchedule OK
@@ -243,6 +243,7 @@ export class CourseSessionsService {
243
243
  endDateTimeLte,
244
244
  endDateTimeGte,
245
245
  futureOnly,
246
+ bookableOnly,
246
247
  includeVenue,
247
248
  includeOffers,
248
249
  excludeArchived,
@@ -310,6 +311,10 @@ export class CourseSessionsService {
310
311
  * Gets or sets a value indicating whether to only return future course sessions.
311
312
  */
312
313
  futureOnly?: boolean;
314
+ /**
315
+ * Gets or sets a value indicating whether to only return bookable scheduled sessions.
316
+ */
317
+ bookableOnly?: boolean;
313
318
  /**
314
319
  * Gets or sets a value indicating whether to include venue detail in the results.
315
320
  */
@@ -384,6 +389,7 @@ export class CourseSessionsService {
384
389
  EndDateTimeLTE: endDateTimeLte,
385
390
  EndDateTimeGTE: endDateTimeGte,
386
391
  FutureOnly: futureOnly,
392
+ BookableOnly: bookableOnly,
387
393
  IncludeVenue: includeVenue,
388
394
  IncludeOffers: includeOffers,
389
395
  ExcludeArchived: excludeArchived,
@@ -507,6 +513,7 @@ export class CourseSessionsService {
507
513
  endDateTimeLte,
508
514
  endDateTimeGte,
509
515
  futureOnly,
516
+ bookableOnly,
510
517
  includeVenue,
511
518
  includeOffers,
512
519
  excludeArchived,
@@ -574,6 +581,10 @@ export class CourseSessionsService {
574
581
  * Gets or sets a value indicating whether to only return future course sessions.
575
582
  */
576
583
  futureOnly?: boolean;
584
+ /**
585
+ * Gets or sets a value indicating whether to only return bookable scheduled sessions.
586
+ */
587
+ bookableOnly?: boolean;
577
588
  /**
578
589
  * Gets or sets a value indicating whether to include venue detail in the results.
579
590
  */
@@ -648,6 +659,196 @@ export class CourseSessionsService {
648
659
  EndDateTimeLTE: endDateTimeLte,
649
660
  EndDateTimeGTE: endDateTimeGte,
650
661
  FutureOnly: futureOnly,
662
+ BookableOnly: bookableOnly,
663
+ IncludeVenue: includeVenue,
664
+ IncludeOffers: includeOffers,
665
+ ExcludeArchived: excludeArchived,
666
+ PageNumber: pageNumber,
667
+ Take: take,
668
+ Skip: skip,
669
+ LimitListRequests: limitListRequests,
670
+ TenantId: tenantId,
671
+ ModifiedById: modifiedById,
672
+ ModifiedByIds: modifiedByIds,
673
+ DateCreatedGTE: dateCreatedGte,
674
+ DateCreatedLTE: dateCreatedLte,
675
+ IsLive: isLive,
676
+ SortOrderDirection: sortOrderDirection,
677
+ },
678
+ errors: {
679
+ 400: `Bad Request`,
680
+ 422: `Unprocessable Content`,
681
+ 500: `Internal Server Error`,
682
+ },
683
+ });
684
+ }
685
+
686
+ /**
687
+ * Returns the number of results in the database given the provided search params.
688
+ * @returns number OK
689
+ * @throws ApiError
690
+ */
691
+ public count({
692
+ ids,
693
+ venueId,
694
+ programmeId,
695
+ courseId,
696
+ courseIds,
697
+ scheduleId,
698
+ status,
699
+ statuses,
700
+ startDateTimeLte,
701
+ startDateTimeGte,
702
+ endDateTimeLte,
703
+ endDateTimeGte,
704
+ futureOnly,
705
+ bookableOnly,
706
+ includeVenue,
707
+ includeOffers,
708
+ excludeArchived,
709
+ pageNumber,
710
+ take,
711
+ skip,
712
+ limitListRequests,
713
+ tenantId,
714
+ modifiedById,
715
+ modifiedByIds,
716
+ dateCreatedGte,
717
+ dateCreatedLte,
718
+ isLive,
719
+ sortOrderDirection,
720
+ }: {
721
+ /**
722
+ * Gets or sets the queryable course session ids.
723
+ */
724
+ ids?: Array<string>;
725
+ /**
726
+ * Gets or sets the queryable course session venue Id.
727
+ */
728
+ venueId?: string;
729
+ /**
730
+ * Gets or sets the queryable course sessions programme Id.
731
+ */
732
+ programmeId?: string;
733
+ /**
734
+ * Gets or sets the queryable course session Id.
735
+ */
736
+ courseId?: string;
737
+ /**
738
+ * Gets or sets the queryable course session Ids.
739
+ */
740
+ courseIds?: Array<string>;
741
+ /**
742
+ * Gets or sets the queryable course session schedule Id.
743
+ */
744
+ scheduleId?: string;
745
+ /**
746
+ * Gets or sets the queryable course session active status.
747
+ */
748
+ status?: SlotStatus;
749
+ /**
750
+ * Gets or sets the queryable course session active status.
751
+ */
752
+ statuses?: Array<SlotStatus>;
753
+ /**
754
+ * Gets or sets the queryable course session start date time is less than or equal to.
755
+ */
756
+ startDateTimeLte?: string;
757
+ /**
758
+ * Gets or sets the queryable course session start date time is greater than or equal to.
759
+ */
760
+ startDateTimeGte?: string;
761
+ /**
762
+ * Gets or sets the queryable course session end date time is less than or equal to.
763
+ */
764
+ endDateTimeLte?: string;
765
+ /**
766
+ * Gets or sets the queryable course session end date time is greater than or equal to.
767
+ */
768
+ endDateTimeGte?: string;
769
+ /**
770
+ * Gets or sets a value indicating whether to only return future course sessions.
771
+ */
772
+ futureOnly?: boolean;
773
+ /**
774
+ * Gets or sets a value indicating whether to only return bookable scheduled sessions.
775
+ */
776
+ bookableOnly?: boolean;
777
+ /**
778
+ * Gets or sets a value indicating whether to include venue detail in the results.
779
+ */
780
+ includeVenue?: boolean;
781
+ /**
782
+ * Gets or sets a value indicating whether to include offer detail in the results.
783
+ */
784
+ includeOffers?: boolean;
785
+ /**
786
+ * Gets or sets a value indicating whether to exclude course sessions whose courses have been archived.
787
+ */
788
+ excludeArchived?: boolean;
789
+ /**
790
+ * Gets or sets the page number for paged queries.
791
+ */
792
+ pageNumber?: number;
793
+ /**
794
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
795
+ */
796
+ take?: number;
797
+ /**
798
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
799
+ */
800
+ skip?: number;
801
+ /**
802
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
803
+ */
804
+ limitListRequests?: boolean;
805
+ /**
806
+ * Gets or sets the Tenant Id.
807
+ */
808
+ tenantId?: string;
809
+ /**
810
+ * Gets or sets the Modifed By Id.
811
+ */
812
+ modifiedById?: string;
813
+ /**
814
+ * Gets or sets the Modifed By Ids.
815
+ */
816
+ modifiedByIds?: Array<string>;
817
+ /**
818
+ * Gets or sets the Date Created greater than equal to.
819
+ */
820
+ dateCreatedGte?: string;
821
+ /**
822
+ * Gets or sets the Date Created less than equal to.
823
+ */
824
+ dateCreatedLte?: string;
825
+ /**
826
+ * Gets or sets the queryable only is live status.
827
+ */
828
+ isLive?: boolean;
829
+ /**
830
+ * Gets or sets the sort order direction.
831
+ */
832
+ sortOrderDirection?: SearchSortOrderDirection;
833
+ }): CancelablePromise<number> {
834
+ return this.httpRequest.request({
835
+ method: 'GET',
836
+ url: '/api/course-sessions/count',
837
+ query: {
838
+ Ids: ids,
839
+ VenueId: venueId,
840
+ ProgrammeId: programmeId,
841
+ CourseId: courseId,
842
+ CourseIds: courseIds,
843
+ ScheduleId: scheduleId,
844
+ Status: status,
845
+ Statuses: statuses,
846
+ StartDateTimeLTE: startDateTimeLte,
847
+ StartDateTimeGTE: startDateTimeGte,
848
+ EndDateTimeLTE: endDateTimeLte,
849
+ EndDateTimeGTE: endDateTimeGte,
850
+ FutureOnly: futureOnly,
851
+ BookableOnly: bookableOnly,
651
852
  IncludeVenue: includeVenue,
652
853
  IncludeOffers: includeOffers,
653
854
  ExcludeArchived: excludeArchived,
@@ -690,6 +891,7 @@ export class CourseSessionsService {
690
891
  endDateTimeLte,
691
892
  endDateTimeGte,
692
893
  futureOnly,
894
+ bookableOnly,
693
895
  includeVenue,
694
896
  includeOffers,
695
897
  excludeArchived,
@@ -757,6 +959,10 @@ export class CourseSessionsService {
757
959
  * Gets or sets a value indicating whether to only return future course sessions.
758
960
  */
759
961
  futureOnly?: boolean;
962
+ /**
963
+ * Gets or sets a value indicating whether to only return bookable scheduled sessions.
964
+ */
965
+ bookableOnly?: boolean;
760
966
  /**
761
967
  * Gets or sets a value indicating whether to include venue detail in the results.
762
968
  */
@@ -831,6 +1037,7 @@ export class CourseSessionsService {
831
1037
  EndDateTimeLTE: endDateTimeLte,
832
1038
  EndDateTimeGTE: endDateTimeGte,
833
1039
  FutureOnly: futureOnly,
1040
+ BookableOnly: bookableOnly,
834
1041
  IncludeVenue: includeVenue,
835
1042
  IncludeOffers: includeOffers,
836
1043
  ExcludeArchived: excludeArchived,
@@ -873,6 +1080,7 @@ export class CourseSessionsService {
873
1080
  endDateTimeLte,
874
1081
  endDateTimeGte,
875
1082
  futureOnly,
1083
+ bookableOnly,
876
1084
  includeVenue,
877
1085
  includeOffers,
878
1086
  excludeArchived,
@@ -940,6 +1148,10 @@ export class CourseSessionsService {
940
1148
  * Gets or sets a value indicating whether to only return future course sessions.
941
1149
  */
942
1150
  futureOnly?: boolean;
1151
+ /**
1152
+ * Gets or sets a value indicating whether to only return bookable scheduled sessions.
1153
+ */
1154
+ bookableOnly?: boolean;
943
1155
  /**
944
1156
  * Gets or sets a value indicating whether to include venue detail in the results.
945
1157
  */
@@ -1014,6 +1226,7 @@ export class CourseSessionsService {
1014
1226
  EndDateTimeLTE: endDateTimeLte,
1015
1227
  EndDateTimeGTE: endDateTimeGte,
1016
1228
  FutureOnly: futureOnly,
1229
+ BookableOnly: bookableOnly,
1017
1230
  IncludeVenue: includeVenue,
1018
1231
  IncludeOffers: includeOffers,
1019
1232
  ExcludeArchived: excludeArchived,
@@ -1158,6 +1158,279 @@ export class CoursesService {
1158
1158
  });
1159
1159
  }
1160
1160
 
1161
+ /**
1162
+ * Returns the number of results in the database given the provided search params.
1163
+ * @returns number OK
1164
+ * @throws ApiError
1165
+ */
1166
+ public count({
1167
+ id,
1168
+ ids,
1169
+ venueId,
1170
+ programmeId,
1171
+ surveyId,
1172
+ cancellationPolicyId,
1173
+ paymentPolicyId,
1174
+ allowTemplating,
1175
+ archived,
1176
+ deleted,
1177
+ openActiveUpdate,
1178
+ dashboardRequest,
1179
+ bookingStatus,
1180
+ startDateTimeLte,
1181
+ startDateTimeGte,
1182
+ endDateTimeLte,
1183
+ endDateTimeGte,
1184
+ remainingUsesLte,
1185
+ remainingUsesGte,
1186
+ futureOnly,
1187
+ online,
1188
+ featured,
1189
+ hasAvailability,
1190
+ orderFirstNameContains,
1191
+ orderLastNameContains,
1192
+ sortBy,
1193
+ postCompletionEmailSent,
1194
+ searchGeoCenter,
1195
+ distance,
1196
+ templateFieldPermissionsId,
1197
+ templateFieldPermissionsIds,
1198
+ pageNumber,
1199
+ take,
1200
+ skip,
1201
+ limitListRequests,
1202
+ tenantId,
1203
+ modifiedById,
1204
+ modifiedByIds,
1205
+ dateCreatedGte,
1206
+ dateCreatedLte,
1207
+ isLive,
1208
+ sortOrderDirection,
1209
+ }: {
1210
+ /**
1211
+ * Gets or sets the queryable Course Id.
1212
+ */
1213
+ id?: string;
1214
+ /**
1215
+ * Gets or sets the queryable course ids.
1216
+ */
1217
+ ids?: Array<string>;
1218
+ /**
1219
+ * Gets or sets the queryable Venue Id.
1220
+ */
1221
+ venueId?: string;
1222
+ /**
1223
+ * Gets or sets the queryable Programme Id.
1224
+ */
1225
+ programmeId?: string;
1226
+ /**
1227
+ * Gets or sets the queryable Survey Id.
1228
+ */
1229
+ surveyId?: string;
1230
+ /**
1231
+ * Gets or sets the queryable Cancellation policy Id.
1232
+ */
1233
+ cancellationPolicyId?: string;
1234
+ /**
1235
+ * Gets or sets the queryable Payment policy Id.
1236
+ */
1237
+ paymentPolicyId?: string;
1238
+ /**
1239
+ * Gets or sets a value indicating whether to include templatable courses.
1240
+ */
1241
+ allowTemplating?: boolean;
1242
+ /**
1243
+ * Gets or sets a value indicating whether to include archived courses.
1244
+ */
1245
+ archived?: boolean;
1246
+ /**
1247
+ * Gets or sets a value indicating whether to include deleted courses.
1248
+ */
1249
+ deleted?: boolean;
1250
+ /**
1251
+ * Gets or sets a value indicating this an openactive reaquest.
1252
+ */
1253
+ openActiveUpdate?: boolean;
1254
+ /**
1255
+ * Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
1256
+ */
1257
+ dashboardRequest?: boolean;
1258
+ /**
1259
+ * Gets or sets the queryable booking status.
1260
+ */
1261
+ bookingStatus?: BookingStatus;
1262
+ /**
1263
+ * Gets or sets the queryable scheduled session start date time is less than or equal to.
1264
+ */
1265
+ startDateTimeLte?: string;
1266
+ /**
1267
+ * Gets or sets the queryable scheduled session start date time is greater than or equal to.
1268
+ */
1269
+ startDateTimeGte?: string;
1270
+ /**
1271
+ * Gets or sets the queryable scheduled session end date time is less than or equal to.
1272
+ */
1273
+ endDateTimeLte?: string;
1274
+ /**
1275
+ * Gets or sets the queryable scheduled session end date time is greater than or equal to.
1276
+ */
1277
+ endDateTimeGte?: string;
1278
+ /**
1279
+ * Gets or sets the queryable slot remaining uses is less than or equal to.
1280
+ */
1281
+ remainingUsesLte?: number;
1282
+ /**
1283
+ * Gets or sets the queryable slot remaining uses is greater than or equal to.
1284
+ */
1285
+ remainingUsesGte?: number;
1286
+ /**
1287
+ * Gets or sets a value indicating whether to only return future scheduled session.
1288
+ */
1289
+ futureOnly?: boolean;
1290
+ /**
1291
+ * Gets or sets a value indicating whether return online courses.
1292
+ */
1293
+ online?: boolean;
1294
+ /**
1295
+ * Gets or sets a value indicating whether the course is featured on the storefront.
1296
+ */
1297
+ featured?: boolean;
1298
+ /**
1299
+ * Gets or sets a value indicating whether the scheduled session has availability.
1300
+ */
1301
+ hasAvailability?: boolean;
1302
+ /**
1303
+ * Gets or sets a value indicating whether the scheduled session has an order where the orders first name contains the given value.
1304
+ */
1305
+ orderFirstNameContains?: string;
1306
+ /**
1307
+ * Gets or sets a value indicating whether the scheduled session has an order where the orders last name contains the given value.
1308
+ */
1309
+ orderLastNameContains?: string;
1310
+ /**
1311
+ * Gets or sets which field to sort by.
1312
+ */
1313
+ sortBy?: CourseSearchSortBy;
1314
+ /**
1315
+ * Gets or sets a value indicating whether the course post completion email has been sent.
1316
+ */
1317
+ postCompletionEmailSent?: boolean;
1318
+ /**
1319
+ * Gets or sets SearchGeoCenter.
1320
+ */
1321
+ searchGeoCenter?: string;
1322
+ /**
1323
+ * Gets or sets Distance.
1324
+ */
1325
+ distance?: number;
1326
+ /**
1327
+ * Gets or sets the queryable course template field permissions Id.
1328
+ */
1329
+ templateFieldPermissionsId?: string;
1330
+ /**
1331
+ * Gets or sets the queryable course template field permission ids.
1332
+ */
1333
+ templateFieldPermissionsIds?: Array<string>;
1334
+ /**
1335
+ * Gets or sets the page number for paged queries.
1336
+ */
1337
+ pageNumber?: number;
1338
+ /**
1339
+ * Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
1340
+ */
1341
+ take?: number;
1342
+ /**
1343
+ * Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
1344
+ */
1345
+ skip?: number;
1346
+ /**
1347
+ * Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
1348
+ */
1349
+ limitListRequests?: boolean;
1350
+ /**
1351
+ * Gets or sets the Tenant Id.
1352
+ */
1353
+ tenantId?: string;
1354
+ /**
1355
+ * Gets or sets the Modifed By Id.
1356
+ */
1357
+ modifiedById?: string;
1358
+ /**
1359
+ * Gets or sets the Modifed By Ids.
1360
+ */
1361
+ modifiedByIds?: Array<string>;
1362
+ /**
1363
+ * Gets or sets the Date Created greater than equal to.
1364
+ */
1365
+ dateCreatedGte?: string;
1366
+ /**
1367
+ * Gets or sets the Date Created less than equal to.
1368
+ */
1369
+ dateCreatedLte?: string;
1370
+ /**
1371
+ * Gets or sets the queryable only is live status.
1372
+ */
1373
+ isLive?: boolean;
1374
+ /**
1375
+ * Gets or sets the sort order direction.
1376
+ */
1377
+ sortOrderDirection?: SearchSortOrderDirection;
1378
+ }): CancelablePromise<number> {
1379
+ return this.httpRequest.request({
1380
+ method: 'GET',
1381
+ url: '/api/courses/count',
1382
+ query: {
1383
+ Id: id,
1384
+ Ids: ids,
1385
+ VenueId: venueId,
1386
+ ProgrammeId: programmeId,
1387
+ SurveyId: surveyId,
1388
+ CancellationPolicyId: cancellationPolicyId,
1389
+ PaymentPolicyId: paymentPolicyId,
1390
+ AllowTemplating: allowTemplating,
1391
+ Archived: archived,
1392
+ Deleted: deleted,
1393
+ OpenActiveUpdate: openActiveUpdate,
1394
+ DashboardRequest: dashboardRequest,
1395
+ BookingStatus: bookingStatus,
1396
+ StartDateTimeLTE: startDateTimeLte,
1397
+ StartDateTimeGTE: startDateTimeGte,
1398
+ EndDateTimeLTE: endDateTimeLte,
1399
+ EndDateTimeGTE: endDateTimeGte,
1400
+ RemainingUsesLTE: remainingUsesLte,
1401
+ RemainingUsesGTE: remainingUsesGte,
1402
+ FutureOnly: futureOnly,
1403
+ Online: online,
1404
+ Featured: featured,
1405
+ HasAvailability: hasAvailability,
1406
+ OrderFirstNameContains: orderFirstNameContains,
1407
+ OrderLastNameContains: orderLastNameContains,
1408
+ SortBy: sortBy,
1409
+ PostCompletionEmailSent: postCompletionEmailSent,
1410
+ SearchGeoCenter: searchGeoCenter,
1411
+ Distance: distance,
1412
+ TemplateFieldPermissionsId: templateFieldPermissionsId,
1413
+ TemplateFieldPermissionsIds: templateFieldPermissionsIds,
1414
+ PageNumber: pageNumber,
1415
+ Take: take,
1416
+ Skip: skip,
1417
+ LimitListRequests: limitListRequests,
1418
+ TenantId: tenantId,
1419
+ ModifiedById: modifiedById,
1420
+ ModifiedByIds: modifiedByIds,
1421
+ DateCreatedGTE: dateCreatedGte,
1422
+ DateCreatedLTE: dateCreatedLte,
1423
+ IsLive: isLive,
1424
+ SortOrderDirection: sortOrderDirection,
1425
+ },
1426
+ errors: {
1427
+ 400: `Bad Request`,
1428
+ 422: `Unprocessable Content`,
1429
+ 500: `Internal Server Error`,
1430
+ },
1431
+ });
1432
+ }
1433
+
1161
1434
  /**
1162
1435
  * Gets a list of resources unpaged and without references.
1163
1436
  * @returns Course OK