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.
- package/dist/reach-sdk.d.ts +7203 -1320
- package/dist/reach-sdk.js +4096 -26
- package/package.json +1 -1
- package/src/definition/swagger.yaml +16630 -4446
- package/src/index.ts +1 -0
- package/src/models/Tenant.ts +2 -0
- package/src/models/TenantStatus.ts +12 -0
- package/src/services/ActivityPerformanceService.ts +129 -0
- package/src/services/AttendeesService.ts +111 -0
- package/src/services/BadEnglandReportService.ts +87 -0
- package/src/services/BookingService.ts +201 -0
- package/src/services/CancellationPoliciesService.ts +111 -0
- package/src/services/CourseSessionSchedulesService.ts +117 -0
- package/src/services/CourseSessionsService.ts +213 -0
- package/src/services/CoursesService.ts +273 -0
- package/src/services/CustomersService.ts +129 -0
- package/src/services/DealActivitiesService.ts +123 -0
- package/src/services/DealsService.ts +123 -0
- package/src/services/DiscountCodeUsesService.ts +136 -0
- package/src/services/EmailReminderSchedulesService.ts +117 -0
- package/src/services/EmailSettingsService.ts +117 -0
- package/src/services/FacilitiesService.ts +135 -0
- package/src/services/FacilityIndividualsService.ts +93 -0
- package/src/services/GenericActivityService.ts +316 -0
- package/src/services/ImageUploadHistoryService.ts +99 -0
- package/src/services/ImagesService.ts +147 -0
- package/src/services/LeasingService.ts +195 -0
- package/src/services/LocationsReportService.ts +105 -0
- package/src/services/NotificationQueueService.ts +99 -0
- package/src/services/NotificationSettingsService.ts +177 -0
- package/src/services/OffersService.ts +165 -0
- package/src/services/OpenactiveFeedIntermediateService.ts +93 -0
- package/src/services/OpenactiveFeedItemService.ts +99 -0
- package/src/services/OpportunityRegisterService.ts +147 -0
- package/src/services/OrderItemReportService.ts +123 -0
- package/src/services/OrderItemsService.ts +153 -24
- package/src/services/OrdersService.ts +195 -0
- package/src/services/OrgCourseUtilisationService.ts +147 -0
- package/src/services/PaymentPoliciesService.ts +111 -0
- package/src/services/PaymentsService.ts +93 -0
- package/src/services/PermissionsService.ts +87 -0
- package/src/services/PlatformPayoutsService.ts +99 -0
- package/src/services/ProgrammesService.ts +117 -0
- package/src/services/ProvidersService.ts +189 -0
- package/src/services/PublicGenericActivityService.ts +25 -0
- package/src/services/PublicOrderItemsService.ts +0 -12
- package/src/services/PublicVenuesService.ts +19 -0
- package/src/services/PublicWaitlistOpportunityService.ts +12 -0
- package/src/services/RecentOrderActivityReportService.ts +87 -0
- package/src/services/RegisterReportService.ts +117 -0
- package/src/services/RescheduleLogService.ts +99 -0
- package/src/services/ScheduledSessionsSchedulesService.ts +123 -0
- package/src/services/ScheduledSessionsService.ts +249 -0
- package/src/services/SessionsService.ts +273 -0
- package/src/services/SlotOffersService.ts +99 -0
- package/src/services/SlotScheduleOffersService.ts +99 -0
- package/src/services/SlotSchedulesService.ts +129 -0
- package/src/services/SlotsService.ts +207 -0
- package/src/services/StripeAccountService.ts +99 -0
- package/src/services/SurveyAnswersService.ts +129 -0
- package/src/services/SurveyCompletionLogService.ts +123 -0
- package/src/services/SurveyQuestionsService.ts +93 -0
- package/src/services/SurveyReportExtendedService.ts +105 -0
- package/src/services/SurveysService.ts +123 -0
- package/src/services/TemplateDetailsService.ts +93 -0
- package/src/services/TemplateFieldPermissionsService.ts +93 -0
- package/src/services/TemplateOffersService.ts +93 -0
- package/src/services/TemplatesService.ts +93 -0
- package/src/services/TenantWebsiteSettingsService.ts +87 -0
- package/src/services/TenantsService.ts +93 -0
- package/src/services/TotalRevenueReportService.ts +111 -0
- package/src/services/UserPermissionsService.ts +93 -0
- package/src/services/UserProgrammesService.ts +111 -0
- package/src/services/UserProvidersService.ts +111 -0
- package/src/services/UsersService.ts +123 -0
- package/src/services/VenueManagersService.ts +111 -0
- package/src/services/VenuePerformanceService.ts +129 -0
- package/src/services/VenuesReportService.ts +93 -0
- package/src/services/VenuesService.ts +238 -0
- package/src/services/WaitlistActivityReportService.ts +123 -0
- package/src/services/WaitlistActivityService.ts +123 -0
- package/src/services/WaitlistOpportunityReportService.ts +170 -0
- package/src/services/WaitlistOpportunityService.ts +147 -0
|
@@ -201,7 +201,6 @@ export class OrderItemsService {
|
|
|
201
201
|
status,
|
|
202
202
|
statuses,
|
|
203
203
|
parentOrderItemId,
|
|
204
|
-
orderByOpportunityStartdate,
|
|
205
204
|
eventTiming,
|
|
206
205
|
endUserIdentityId,
|
|
207
206
|
dashboardRequest,
|
|
@@ -249,10 +248,6 @@ export class OrderItemsService {
|
|
|
249
248
|
* Gets or sets the queryable parent order item id id.
|
|
250
249
|
*/
|
|
251
250
|
parentOrderItemId?: string;
|
|
252
|
-
/**
|
|
253
|
-
* Gets or sets the queryable order by opportunity start date value.
|
|
254
|
-
*/
|
|
255
|
-
orderByOpportunityStartdate?: boolean;
|
|
256
251
|
/**
|
|
257
252
|
* Gets or sets the queryable event timing.
|
|
258
253
|
*/
|
|
@@ -322,7 +317,6 @@ export class OrderItemsService {
|
|
|
322
317
|
Status: status,
|
|
323
318
|
Statuses: statuses,
|
|
324
319
|
ParentOrderItemId: parentOrderItemId,
|
|
325
|
-
OrderByOpportunityStartdate: orderByOpportunityStartdate,
|
|
326
320
|
EventTiming: eventTiming,
|
|
327
321
|
EndUserIdentityId: endUserIdentityId,
|
|
328
322
|
DashboardRequest: dashboardRequest,
|
|
@@ -441,7 +435,6 @@ export class OrderItemsService {
|
|
|
441
435
|
status,
|
|
442
436
|
statuses,
|
|
443
437
|
parentOrderItemId,
|
|
444
|
-
orderByOpportunityStartdate,
|
|
445
438
|
eventTiming,
|
|
446
439
|
endUserIdentityId,
|
|
447
440
|
dashboardRequest,
|
|
@@ -489,10 +482,6 @@ export class OrderItemsService {
|
|
|
489
482
|
* Gets or sets the queryable parent order item id id.
|
|
490
483
|
*/
|
|
491
484
|
parentOrderItemId?: string;
|
|
492
|
-
/**
|
|
493
|
-
* Gets or sets the queryable order by opportunity start date value.
|
|
494
|
-
*/
|
|
495
|
-
orderByOpportunityStartdate?: boolean;
|
|
496
485
|
/**
|
|
497
486
|
* Gets or sets the queryable event timing.
|
|
498
487
|
*/
|
|
@@ -562,7 +551,159 @@ export class OrderItemsService {
|
|
|
562
551
|
Status: status,
|
|
563
552
|
Statuses: statuses,
|
|
564
553
|
ParentOrderItemId: parentOrderItemId,
|
|
565
|
-
|
|
554
|
+
EventTiming: eventTiming,
|
|
555
|
+
EndUserIdentityId: endUserIdentityId,
|
|
556
|
+
DashboardRequest: dashboardRequest,
|
|
557
|
+
PageNumber: pageNumber,
|
|
558
|
+
Take: take,
|
|
559
|
+
Skip: skip,
|
|
560
|
+
LimitListRequests: limitListRequests,
|
|
561
|
+
TenantId: tenantId,
|
|
562
|
+
ModifiedById: modifiedById,
|
|
563
|
+
ModifiedByIds: modifiedByIds,
|
|
564
|
+
DateCreatedGTE: dateCreatedGte,
|
|
565
|
+
DateCreatedLTE: dateCreatedLte,
|
|
566
|
+
IsLive: isLive,
|
|
567
|
+
SortOrderDirection: sortOrderDirection,
|
|
568
|
+
},
|
|
569
|
+
errors: {
|
|
570
|
+
400: `Bad Request`,
|
|
571
|
+
422: `Unprocessable Content`,
|
|
572
|
+
500: `Internal Server Error`,
|
|
573
|
+
},
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Returns the number of results in the database given the provided search params.
|
|
579
|
+
* @returns number OK
|
|
580
|
+
* @throws ApiError
|
|
581
|
+
*/
|
|
582
|
+
public count({
|
|
583
|
+
ids,
|
|
584
|
+
orderId,
|
|
585
|
+
scheduledSessionId,
|
|
586
|
+
slotId,
|
|
587
|
+
courseId,
|
|
588
|
+
status,
|
|
589
|
+
statuses,
|
|
590
|
+
parentOrderItemId,
|
|
591
|
+
eventTiming,
|
|
592
|
+
endUserIdentityId,
|
|
593
|
+
dashboardRequest,
|
|
594
|
+
pageNumber,
|
|
595
|
+
take,
|
|
596
|
+
skip,
|
|
597
|
+
limitListRequests,
|
|
598
|
+
tenantId,
|
|
599
|
+
modifiedById,
|
|
600
|
+
modifiedByIds,
|
|
601
|
+
dateCreatedGte,
|
|
602
|
+
dateCreatedLte,
|
|
603
|
+
isLive,
|
|
604
|
+
sortOrderDirection,
|
|
605
|
+
}: {
|
|
606
|
+
/**
|
|
607
|
+
* Gets or sets the queryable order item ids.
|
|
608
|
+
*/
|
|
609
|
+
ids?: Array<string>;
|
|
610
|
+
/**
|
|
611
|
+
* Gets or sets the queryable order id.
|
|
612
|
+
*/
|
|
613
|
+
orderId?: string;
|
|
614
|
+
/**
|
|
615
|
+
* Gets or sets the queryable scheduled session id.
|
|
616
|
+
*/
|
|
617
|
+
scheduledSessionId?: string;
|
|
618
|
+
/**
|
|
619
|
+
* Gets or sets the queryable slot id.
|
|
620
|
+
*/
|
|
621
|
+
slotId?: string;
|
|
622
|
+
/**
|
|
623
|
+
* Gets or sets the queryable course id.
|
|
624
|
+
*/
|
|
625
|
+
courseId?: string;
|
|
626
|
+
/**
|
|
627
|
+
* Gets or sets the queryable order item status id.
|
|
628
|
+
*/
|
|
629
|
+
status?: OrderItemStatus;
|
|
630
|
+
/**
|
|
631
|
+
* Gets or sets the queryable order statuses.
|
|
632
|
+
*/
|
|
633
|
+
statuses?: Array<OrderItemStatus>;
|
|
634
|
+
/**
|
|
635
|
+
* Gets or sets the queryable parent order item id id.
|
|
636
|
+
*/
|
|
637
|
+
parentOrderItemId?: string;
|
|
638
|
+
/**
|
|
639
|
+
* Gets or sets the queryable event timing.
|
|
640
|
+
*/
|
|
641
|
+
eventTiming?: EventTiming;
|
|
642
|
+
/**
|
|
643
|
+
* Gets or sets the end user identity Id for use in a query search.
|
|
644
|
+
*/
|
|
645
|
+
endUserIdentityId?: string;
|
|
646
|
+
/**
|
|
647
|
+
* Gets or sets a value indicating this a request from the storefront dashboard.Needs replacing with token middleware and DI.
|
|
648
|
+
*/
|
|
649
|
+
dashboardRequest?: boolean;
|
|
650
|
+
/**
|
|
651
|
+
* Gets or sets the page number for paged queries.
|
|
652
|
+
*/
|
|
653
|
+
pageNumber?: number;
|
|
654
|
+
/**
|
|
655
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
656
|
+
*/
|
|
657
|
+
take?: number;
|
|
658
|
+
/**
|
|
659
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
660
|
+
*/
|
|
661
|
+
skip?: number;
|
|
662
|
+
/**
|
|
663
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
664
|
+
*/
|
|
665
|
+
limitListRequests?: boolean;
|
|
666
|
+
/**
|
|
667
|
+
* Gets or sets the Tenant Id.
|
|
668
|
+
*/
|
|
669
|
+
tenantId?: string;
|
|
670
|
+
/**
|
|
671
|
+
* Gets or sets the Modifed By Id.
|
|
672
|
+
*/
|
|
673
|
+
modifiedById?: string;
|
|
674
|
+
/**
|
|
675
|
+
* Gets or sets the Modifed By Ids.
|
|
676
|
+
*/
|
|
677
|
+
modifiedByIds?: Array<string>;
|
|
678
|
+
/**
|
|
679
|
+
* Gets or sets the Date Created greater than equal to.
|
|
680
|
+
*/
|
|
681
|
+
dateCreatedGte?: string;
|
|
682
|
+
/**
|
|
683
|
+
* Gets or sets the Date Created less than equal to.
|
|
684
|
+
*/
|
|
685
|
+
dateCreatedLte?: string;
|
|
686
|
+
/**
|
|
687
|
+
* Gets or sets the queryable only is live status.
|
|
688
|
+
*/
|
|
689
|
+
isLive?: boolean;
|
|
690
|
+
/**
|
|
691
|
+
* Gets or sets the sort order direction.
|
|
692
|
+
*/
|
|
693
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
694
|
+
}): CancelablePromise<number> {
|
|
695
|
+
return this.httpRequest.request({
|
|
696
|
+
method: 'GET',
|
|
697
|
+
url: '/api/order-items/count',
|
|
698
|
+
query: {
|
|
699
|
+
Ids: ids,
|
|
700
|
+
OrderId: orderId,
|
|
701
|
+
ScheduledSessionId: scheduledSessionId,
|
|
702
|
+
SlotId: slotId,
|
|
703
|
+
CourseId: courseId,
|
|
704
|
+
Status: status,
|
|
705
|
+
Statuses: statuses,
|
|
706
|
+
ParentOrderItemId: parentOrderItemId,
|
|
566
707
|
EventTiming: eventTiming,
|
|
567
708
|
EndUserIdentityId: endUserIdentityId,
|
|
568
709
|
DashboardRequest: dashboardRequest,
|
|
@@ -600,7 +741,6 @@ export class OrderItemsService {
|
|
|
600
741
|
status,
|
|
601
742
|
statuses,
|
|
602
743
|
parentOrderItemId,
|
|
603
|
-
orderByOpportunityStartdate,
|
|
604
744
|
eventTiming,
|
|
605
745
|
endUserIdentityId,
|
|
606
746
|
dashboardRequest,
|
|
@@ -648,10 +788,6 @@ export class OrderItemsService {
|
|
|
648
788
|
* Gets or sets the queryable parent order item id id.
|
|
649
789
|
*/
|
|
650
790
|
parentOrderItemId?: string;
|
|
651
|
-
/**
|
|
652
|
-
* Gets or sets the queryable order by opportunity start date value.
|
|
653
|
-
*/
|
|
654
|
-
orderByOpportunityStartdate?: boolean;
|
|
655
791
|
/**
|
|
656
792
|
* Gets or sets the queryable event timing.
|
|
657
793
|
*/
|
|
@@ -721,7 +857,6 @@ export class OrderItemsService {
|
|
|
721
857
|
Status: status,
|
|
722
858
|
Statuses: statuses,
|
|
723
859
|
ParentOrderItemId: parentOrderItemId,
|
|
724
|
-
OrderByOpportunityStartdate: orderByOpportunityStartdate,
|
|
725
860
|
EventTiming: eventTiming,
|
|
726
861
|
EndUserIdentityId: endUserIdentityId,
|
|
727
862
|
DashboardRequest: dashboardRequest,
|
|
@@ -759,7 +894,6 @@ export class OrderItemsService {
|
|
|
759
894
|
status,
|
|
760
895
|
statuses,
|
|
761
896
|
parentOrderItemId,
|
|
762
|
-
orderByOpportunityStartdate,
|
|
763
897
|
eventTiming,
|
|
764
898
|
endUserIdentityId,
|
|
765
899
|
dashboardRequest,
|
|
@@ -807,10 +941,6 @@ export class OrderItemsService {
|
|
|
807
941
|
* Gets or sets the queryable parent order item id id.
|
|
808
942
|
*/
|
|
809
943
|
parentOrderItemId?: string;
|
|
810
|
-
/**
|
|
811
|
-
* Gets or sets the queryable order by opportunity start date value.
|
|
812
|
-
*/
|
|
813
|
-
orderByOpportunityStartdate?: boolean;
|
|
814
944
|
/**
|
|
815
945
|
* Gets or sets the queryable event timing.
|
|
816
946
|
*/
|
|
@@ -880,7 +1010,6 @@ export class OrderItemsService {
|
|
|
880
1010
|
Status: status,
|
|
881
1011
|
Statuses: statuses,
|
|
882
1012
|
ParentOrderItemId: parentOrderItemId,
|
|
883
|
-
OrderByOpportunityStartdate: orderByOpportunityStartdate,
|
|
884
1013
|
EventTiming: eventTiming,
|
|
885
1014
|
EndUserIdentityId: endUserIdentityId,
|
|
886
1015
|
DashboardRequest: dashboardRequest,
|
|
@@ -924,6 +924,201 @@ export class OrdersService {
|
|
|
924
924
|
});
|
|
925
925
|
}
|
|
926
926
|
|
|
927
|
+
/**
|
|
928
|
+
* Returns the number of results in the database given the provided search params.
|
|
929
|
+
* @returns number OK
|
|
930
|
+
* @throws ApiError
|
|
931
|
+
*/
|
|
932
|
+
public count({
|
|
933
|
+
wildcard,
|
|
934
|
+
accessCode,
|
|
935
|
+
customerName,
|
|
936
|
+
email,
|
|
937
|
+
providerId,
|
|
938
|
+
venueId,
|
|
939
|
+
programmeId,
|
|
940
|
+
customerId,
|
|
941
|
+
orderIds,
|
|
942
|
+
sessionId,
|
|
943
|
+
facilityId,
|
|
944
|
+
courseId,
|
|
945
|
+
orderStage,
|
|
946
|
+
isBookedOrPendingPayment,
|
|
947
|
+
orderStages,
|
|
948
|
+
orderDateGte,
|
|
949
|
+
orderDateLte,
|
|
950
|
+
endUserIdentityId,
|
|
951
|
+
pageNumber,
|
|
952
|
+
take,
|
|
953
|
+
skip,
|
|
954
|
+
limitListRequests,
|
|
955
|
+
tenantId,
|
|
956
|
+
modifiedById,
|
|
957
|
+
modifiedByIds,
|
|
958
|
+
dateCreatedGte,
|
|
959
|
+
dateCreatedLte,
|
|
960
|
+
isLive,
|
|
961
|
+
sortOrderDirection,
|
|
962
|
+
}: {
|
|
963
|
+
/**
|
|
964
|
+
* Gets or sets the wildcard for use in a query search.
|
|
965
|
+
*/
|
|
966
|
+
wildcard?: string;
|
|
967
|
+
/**
|
|
968
|
+
* Gets or sets the access code for use in a query search.
|
|
969
|
+
*/
|
|
970
|
+
accessCode?: string;
|
|
971
|
+
/**
|
|
972
|
+
* Gets or sets the customer name for use in a query search.
|
|
973
|
+
*/
|
|
974
|
+
customerName?: string;
|
|
975
|
+
/**
|
|
976
|
+
* Gets or sets the email for use in a query search.
|
|
977
|
+
*/
|
|
978
|
+
email?: string;
|
|
979
|
+
/**
|
|
980
|
+
* Gets or sets the provider Id for use in a query search.
|
|
981
|
+
*/
|
|
982
|
+
providerId?: string;
|
|
983
|
+
/**
|
|
984
|
+
* Gets or sets the venue Id for use in a query search.
|
|
985
|
+
*/
|
|
986
|
+
venueId?: string;
|
|
987
|
+
/**
|
|
988
|
+
* Gets or sets the programme Id for use in a query search.
|
|
989
|
+
*/
|
|
990
|
+
programmeId?: string;
|
|
991
|
+
/**
|
|
992
|
+
* Gets or sets the customer Id for use in a query search.
|
|
993
|
+
*/
|
|
994
|
+
customerId?: string;
|
|
995
|
+
/**
|
|
996
|
+
* Gets or sets the queryable order ids.
|
|
997
|
+
*/
|
|
998
|
+
orderIds?: Array<string>;
|
|
999
|
+
/**
|
|
1000
|
+
* Gets or sets the session Id for use in a query search.
|
|
1001
|
+
*/
|
|
1002
|
+
sessionId?: string;
|
|
1003
|
+
/**
|
|
1004
|
+
* Gets or sets the facility Id for use in a query search.
|
|
1005
|
+
*/
|
|
1006
|
+
facilityId?: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* Gets or sets the course Id for use in a query search.
|
|
1009
|
+
*/
|
|
1010
|
+
courseId?: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* Gets or sets the queryable order stage. This cannot be used in conjunction with IsBookedOrPendingPayment.
|
|
1013
|
+
*/
|
|
1014
|
+
orderStage?: OrderStage;
|
|
1015
|
+
/**
|
|
1016
|
+
* 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.
|
|
1017
|
+
*/
|
|
1018
|
+
isBookedOrPendingPayment?: boolean;
|
|
1019
|
+
/**
|
|
1020
|
+
* Gets or sets the queryable order stages.
|
|
1021
|
+
*/
|
|
1022
|
+
orderStages?: Array<OrderStage>;
|
|
1023
|
+
/**
|
|
1024
|
+
* Gets or sets the queryable order date creted is greater than or equal to.
|
|
1025
|
+
*/
|
|
1026
|
+
orderDateGte?: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* Gets or sets the queryable order date created is less than or equal to.
|
|
1029
|
+
*/
|
|
1030
|
+
orderDateLte?: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* Gets or sets the end user identity Id for use in a query search.
|
|
1033
|
+
*/
|
|
1034
|
+
endUserIdentityId?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Gets or sets the page number for paged queries.
|
|
1037
|
+
*/
|
|
1038
|
+
pageNumber?: number;
|
|
1039
|
+
/**
|
|
1040
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
1041
|
+
*/
|
|
1042
|
+
take?: number;
|
|
1043
|
+
/**
|
|
1044
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
1045
|
+
*/
|
|
1046
|
+
skip?: number;
|
|
1047
|
+
/**
|
|
1048
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
1049
|
+
*/
|
|
1050
|
+
limitListRequests?: boolean;
|
|
1051
|
+
/**
|
|
1052
|
+
* Gets or sets the Tenant Id.
|
|
1053
|
+
*/
|
|
1054
|
+
tenantId?: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* Gets or sets the Modifed By Id.
|
|
1057
|
+
*/
|
|
1058
|
+
modifiedById?: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* Gets or sets the Modifed By Ids.
|
|
1061
|
+
*/
|
|
1062
|
+
modifiedByIds?: Array<string>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Gets or sets the Date Created greater than equal to.
|
|
1065
|
+
*/
|
|
1066
|
+
dateCreatedGte?: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* Gets or sets the Date Created less than equal to.
|
|
1069
|
+
*/
|
|
1070
|
+
dateCreatedLte?: string;
|
|
1071
|
+
/**
|
|
1072
|
+
* Gets or sets the queryable only is live status.
|
|
1073
|
+
*/
|
|
1074
|
+
isLive?: boolean;
|
|
1075
|
+
/**
|
|
1076
|
+
* Gets or sets the sort order direction.
|
|
1077
|
+
*/
|
|
1078
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
1079
|
+
}): CancelablePromise<number> {
|
|
1080
|
+
return this.httpRequest.request({
|
|
1081
|
+
method: 'GET',
|
|
1082
|
+
url: '/api/orders/count',
|
|
1083
|
+
query: {
|
|
1084
|
+
Wildcard: wildcard,
|
|
1085
|
+
AccessCode: accessCode,
|
|
1086
|
+
CustomerName: customerName,
|
|
1087
|
+
Email: email,
|
|
1088
|
+
ProviderId: providerId,
|
|
1089
|
+
VenueId: venueId,
|
|
1090
|
+
ProgrammeId: programmeId,
|
|
1091
|
+
CustomerId: customerId,
|
|
1092
|
+
OrderIds: orderIds,
|
|
1093
|
+
SessionId: sessionId,
|
|
1094
|
+
FacilityId: facilityId,
|
|
1095
|
+
CourseId: courseId,
|
|
1096
|
+
OrderStage: orderStage,
|
|
1097
|
+
IsBookedOrPendingPayment: isBookedOrPendingPayment,
|
|
1098
|
+
OrderStages: orderStages,
|
|
1099
|
+
OrderDateGTE: orderDateGte,
|
|
1100
|
+
OrderDateLTE: orderDateLte,
|
|
1101
|
+
EndUserIdentityId: endUserIdentityId,
|
|
1102
|
+
PageNumber: pageNumber,
|
|
1103
|
+
Take: take,
|
|
1104
|
+
Skip: skip,
|
|
1105
|
+
LimitListRequests: limitListRequests,
|
|
1106
|
+
TenantId: tenantId,
|
|
1107
|
+
ModifiedById: modifiedById,
|
|
1108
|
+
ModifiedByIds: modifiedByIds,
|
|
1109
|
+
DateCreatedGTE: dateCreatedGte,
|
|
1110
|
+
DateCreatedLTE: dateCreatedLte,
|
|
1111
|
+
IsLive: isLive,
|
|
1112
|
+
SortOrderDirection: sortOrderDirection,
|
|
1113
|
+
},
|
|
1114
|
+
errors: {
|
|
1115
|
+
400: `Bad Request`,
|
|
1116
|
+
422: `Unprocessable Content`,
|
|
1117
|
+
500: `Internal Server Error`,
|
|
1118
|
+
},
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
|
|
927
1122
|
/**
|
|
928
1123
|
* Gets a list of resources unpaged and without references.
|
|
929
1124
|
* @returns Order OK
|
|
@@ -676,6 +676,153 @@ export class OrgCourseUtilisationService {
|
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
+
/**
|
|
680
|
+
* Returns the number of results in the database given the provided search params.
|
|
681
|
+
* @returns number OK
|
|
682
|
+
* @throws ApiError
|
|
683
|
+
*/
|
|
684
|
+
public count({
|
|
685
|
+
venueId,
|
|
686
|
+
userId,
|
|
687
|
+
programmeId,
|
|
688
|
+
startDateGte,
|
|
689
|
+
startDateLte,
|
|
690
|
+
endDateGte,
|
|
691
|
+
endDateLte,
|
|
692
|
+
onlineActivitiesOnly,
|
|
693
|
+
onlineVenuesOnly,
|
|
694
|
+
reportingLevel,
|
|
695
|
+
pageNumber,
|
|
696
|
+
take,
|
|
697
|
+
skip,
|
|
698
|
+
limitListRequests,
|
|
699
|
+
tenantId,
|
|
700
|
+
modifiedById,
|
|
701
|
+
modifiedByIds,
|
|
702
|
+
dateCreatedGte,
|
|
703
|
+
dateCreatedLte,
|
|
704
|
+
isLive,
|
|
705
|
+
sortOrderDirection,
|
|
706
|
+
}: {
|
|
707
|
+
/**
|
|
708
|
+
* Gets or sets the Venue Id.
|
|
709
|
+
*/
|
|
710
|
+
venueId?: string;
|
|
711
|
+
/**
|
|
712
|
+
* Gets or sets the User Id.
|
|
713
|
+
*/
|
|
714
|
+
userId?: string;
|
|
715
|
+
/**
|
|
716
|
+
* Gets or sets the Programme Id.
|
|
717
|
+
*/
|
|
718
|
+
programmeId?: string;
|
|
719
|
+
/**
|
|
720
|
+
* Gets or sets the starting date greater than or equal to.
|
|
721
|
+
*/
|
|
722
|
+
startDateGte?: string;
|
|
723
|
+
/**
|
|
724
|
+
* Gets or sets the starting date less than or equal to.
|
|
725
|
+
*/
|
|
726
|
+
startDateLte?: string;
|
|
727
|
+
/**
|
|
728
|
+
* Gets or sets the end date greater than or equal to.
|
|
729
|
+
*/
|
|
730
|
+
endDateGte?: string;
|
|
731
|
+
/**
|
|
732
|
+
* Gets or sets the end date less than or equal to.
|
|
733
|
+
*/
|
|
734
|
+
endDateLte?: string;
|
|
735
|
+
/**
|
|
736
|
+
* Gets or sets a value indicating whether to include online activities only.
|
|
737
|
+
*/
|
|
738
|
+
onlineActivitiesOnly?: boolean;
|
|
739
|
+
/**
|
|
740
|
+
* Gets or sets a value indicating whether to include online venues only.
|
|
741
|
+
*/
|
|
742
|
+
onlineVenuesOnly?: boolean;
|
|
743
|
+
/**
|
|
744
|
+
* Gets or sets the reporting level ('activity' or 'venue').
|
|
745
|
+
*/
|
|
746
|
+
reportingLevel?: string;
|
|
747
|
+
/**
|
|
748
|
+
* Gets or sets the page number for paged queries.
|
|
749
|
+
*/
|
|
750
|
+
pageNumber?: number;
|
|
751
|
+
/**
|
|
752
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
753
|
+
*/
|
|
754
|
+
take?: number;
|
|
755
|
+
/**
|
|
756
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
757
|
+
*/
|
|
758
|
+
skip?: number;
|
|
759
|
+
/**
|
|
760
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
761
|
+
*/
|
|
762
|
+
limitListRequests?: boolean;
|
|
763
|
+
/**
|
|
764
|
+
* Gets or sets the Tenant Id.
|
|
765
|
+
*/
|
|
766
|
+
tenantId?: string;
|
|
767
|
+
/**
|
|
768
|
+
* Gets or sets the Modifed By Id.
|
|
769
|
+
*/
|
|
770
|
+
modifiedById?: string;
|
|
771
|
+
/**
|
|
772
|
+
* Gets or sets the Modifed By Ids.
|
|
773
|
+
*/
|
|
774
|
+
modifiedByIds?: Array<string>;
|
|
775
|
+
/**
|
|
776
|
+
* Gets or sets the Date Created greater than equal to.
|
|
777
|
+
*/
|
|
778
|
+
dateCreatedGte?: string;
|
|
779
|
+
/**
|
|
780
|
+
* Gets or sets the Date Created less than equal to.
|
|
781
|
+
*/
|
|
782
|
+
dateCreatedLte?: string;
|
|
783
|
+
/**
|
|
784
|
+
* Gets or sets the queryable only is live status.
|
|
785
|
+
*/
|
|
786
|
+
isLive?: boolean;
|
|
787
|
+
/**
|
|
788
|
+
* Gets or sets the sort order direction.
|
|
789
|
+
*/
|
|
790
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
791
|
+
}): CancelablePromise<number> {
|
|
792
|
+
return this.httpRequest.request({
|
|
793
|
+
method: 'GET',
|
|
794
|
+
url: '/api/org-course-utilisation/count',
|
|
795
|
+
query: {
|
|
796
|
+
VenueId: venueId,
|
|
797
|
+
UserId: userId,
|
|
798
|
+
ProgrammeId: programmeId,
|
|
799
|
+
StartDateGTE: startDateGte,
|
|
800
|
+
StartDateLTE: startDateLte,
|
|
801
|
+
EndDateGTE: endDateGte,
|
|
802
|
+
EndDateLTE: endDateLte,
|
|
803
|
+
OnlineActivitiesOnly: onlineActivitiesOnly,
|
|
804
|
+
OnlineVenuesOnly: onlineVenuesOnly,
|
|
805
|
+
ReportingLevel: reportingLevel,
|
|
806
|
+
PageNumber: pageNumber,
|
|
807
|
+
Take: take,
|
|
808
|
+
Skip: skip,
|
|
809
|
+
LimitListRequests: limitListRequests,
|
|
810
|
+
TenantId: tenantId,
|
|
811
|
+
ModifiedById: modifiedById,
|
|
812
|
+
ModifiedByIds: modifiedByIds,
|
|
813
|
+
DateCreatedGTE: dateCreatedGte,
|
|
814
|
+
DateCreatedLTE: dateCreatedLte,
|
|
815
|
+
IsLive: isLive,
|
|
816
|
+
SortOrderDirection: sortOrderDirection,
|
|
817
|
+
},
|
|
818
|
+
errors: {
|
|
819
|
+
400: `Bad Request`,
|
|
820
|
+
422: `Unprocessable Content`,
|
|
821
|
+
500: `Internal Server Error`,
|
|
822
|
+
},
|
|
823
|
+
});
|
|
824
|
+
}
|
|
825
|
+
|
|
679
826
|
/**
|
|
680
827
|
* Gets a list of resources unpaged and without references.
|
|
681
828
|
* @returns OrgCourseUtilisation OK
|