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
package/src/index.ts
CHANGED
|
@@ -375,6 +375,7 @@ export type { TenantPage } from './models/TenantPage';
|
|
|
375
375
|
export type { TenantPatch } from './models/TenantPatch';
|
|
376
376
|
export type { TenantPost } from './models/TenantPost';
|
|
377
377
|
export type { TenantSetting } from './models/TenantSetting';
|
|
378
|
+
export { TenantStatus } from './models/TenantStatus';
|
|
378
379
|
export { TenantTier } from './models/TenantTier';
|
|
379
380
|
export type { TenantWebsiteSetting } from './models/TenantWebsiteSetting';
|
|
380
381
|
export type { TenantWebsiteSettingPage } from './models/TenantWebsiteSettingPage';
|
package/src/models/Tenant.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type { OrganisationRefundPolicy } from './OrganisationRefundPolicy';
|
|
|
11
11
|
import type { OrganisationTaxMode } from './OrganisationTaxMode';
|
|
12
12
|
import type { OrganisationType } from './OrganisationType';
|
|
13
13
|
import type { Tax } from './Tax';
|
|
14
|
+
import type { TenantStatus } from './TenantStatus';
|
|
14
15
|
import type { TenantTier } from './TenantTier';
|
|
15
16
|
import type { TenantWebsiteSetting } from './TenantWebsiteSetting';
|
|
16
17
|
import type { User } from './User';
|
|
@@ -243,6 +244,7 @@ export type Tenant = {
|
|
|
243
244
|
* Gets or sets a value indicating whether the tenant has been migrated from v1. setting to default to true at this point as all new tenants should have the migrated flag set to true. delete these comments when the migration is complete.
|
|
244
245
|
*/
|
|
245
246
|
migrated?: boolean | null;
|
|
247
|
+
status?: TenantStatus;
|
|
246
248
|
/**
|
|
247
249
|
* Gets or sets the storefront url.
|
|
248
250
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Controls the status of the tenant.
|
|
8
|
+
*/
|
|
9
|
+
export enum TenantStatus {
|
|
10
|
+
LIVE = 'Live',
|
|
11
|
+
DEMO = 'Demo',
|
|
12
|
+
}
|
|
@@ -622,6 +622,135 @@ export class ActivityPerformanceService {
|
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
624
|
|
|
625
|
+
/**
|
|
626
|
+
* Returns the number of results in the database given the provided search params.
|
|
627
|
+
* @returns number OK
|
|
628
|
+
* @throws ApiError
|
|
629
|
+
*/
|
|
630
|
+
public count({
|
|
631
|
+
venueId,
|
|
632
|
+
userId,
|
|
633
|
+
programmeId,
|
|
634
|
+
startDateGte,
|
|
635
|
+
startDateLte,
|
|
636
|
+
onlineActivitiesOnly,
|
|
637
|
+
onlineVenuesOnly,
|
|
638
|
+
pageNumber,
|
|
639
|
+
take,
|
|
640
|
+
skip,
|
|
641
|
+
limitListRequests,
|
|
642
|
+
tenantId,
|
|
643
|
+
modifiedById,
|
|
644
|
+
modifiedByIds,
|
|
645
|
+
dateCreatedGte,
|
|
646
|
+
dateCreatedLte,
|
|
647
|
+
isLive,
|
|
648
|
+
sortOrderDirection,
|
|
649
|
+
}: {
|
|
650
|
+
/**
|
|
651
|
+
* Gets or sets the Venue Id.
|
|
652
|
+
*/
|
|
653
|
+
venueId?: string;
|
|
654
|
+
/**
|
|
655
|
+
* Gets or sets the User Id.
|
|
656
|
+
*/
|
|
657
|
+
userId?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Gets or sets the Programme Id.
|
|
660
|
+
*/
|
|
661
|
+
programmeId?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Gets or sets the starting date greater than or equal to.
|
|
664
|
+
*/
|
|
665
|
+
startDateGte?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Gets or sets the starting date less than or equal to.
|
|
668
|
+
*/
|
|
669
|
+
startDateLte?: string;
|
|
670
|
+
/**
|
|
671
|
+
* Gets or sets a value indicating whether to include online activities only.
|
|
672
|
+
*/
|
|
673
|
+
onlineActivitiesOnly?: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* Gets or sets a value indicating whether to include online venues only.
|
|
676
|
+
*/
|
|
677
|
+
onlineVenuesOnly?: boolean;
|
|
678
|
+
/**
|
|
679
|
+
* Gets or sets the page number for paged queries.
|
|
680
|
+
*/
|
|
681
|
+
pageNumber?: number;
|
|
682
|
+
/**
|
|
683
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
684
|
+
*/
|
|
685
|
+
take?: number;
|
|
686
|
+
/**
|
|
687
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
688
|
+
*/
|
|
689
|
+
skip?: number;
|
|
690
|
+
/**
|
|
691
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
692
|
+
*/
|
|
693
|
+
limitListRequests?: boolean;
|
|
694
|
+
/**
|
|
695
|
+
* Gets or sets the Tenant Id.
|
|
696
|
+
*/
|
|
697
|
+
tenantId?: string;
|
|
698
|
+
/**
|
|
699
|
+
* Gets or sets the Modifed By Id.
|
|
700
|
+
*/
|
|
701
|
+
modifiedById?: string;
|
|
702
|
+
/**
|
|
703
|
+
* Gets or sets the Modifed By Ids.
|
|
704
|
+
*/
|
|
705
|
+
modifiedByIds?: Array<string>;
|
|
706
|
+
/**
|
|
707
|
+
* Gets or sets the Date Created greater than equal to.
|
|
708
|
+
*/
|
|
709
|
+
dateCreatedGte?: string;
|
|
710
|
+
/**
|
|
711
|
+
* Gets or sets the Date Created less than equal to.
|
|
712
|
+
*/
|
|
713
|
+
dateCreatedLte?: string;
|
|
714
|
+
/**
|
|
715
|
+
* Gets or sets the queryable only is live status.
|
|
716
|
+
*/
|
|
717
|
+
isLive?: boolean;
|
|
718
|
+
/**
|
|
719
|
+
* Gets or sets the sort order direction.
|
|
720
|
+
*/
|
|
721
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
722
|
+
}): CancelablePromise<number> {
|
|
723
|
+
return this.httpRequest.request({
|
|
724
|
+
method: 'GET',
|
|
725
|
+
url: '/api/activity-performance/count',
|
|
726
|
+
query: {
|
|
727
|
+
VenueId: venueId,
|
|
728
|
+
UserId: userId,
|
|
729
|
+
ProgrammeId: programmeId,
|
|
730
|
+
StartDateGTE: startDateGte,
|
|
731
|
+
StartDateLTE: startDateLte,
|
|
732
|
+
OnlineActivitiesOnly: onlineActivitiesOnly,
|
|
733
|
+
OnlineVenuesOnly: onlineVenuesOnly,
|
|
734
|
+
PageNumber: pageNumber,
|
|
735
|
+
Take: take,
|
|
736
|
+
Skip: skip,
|
|
737
|
+
LimitListRequests: limitListRequests,
|
|
738
|
+
TenantId: tenantId,
|
|
739
|
+
ModifiedById: modifiedById,
|
|
740
|
+
ModifiedByIds: modifiedByIds,
|
|
741
|
+
DateCreatedGTE: dateCreatedGte,
|
|
742
|
+
DateCreatedLTE: dateCreatedLte,
|
|
743
|
+
IsLive: isLive,
|
|
744
|
+
SortOrderDirection: sortOrderDirection,
|
|
745
|
+
},
|
|
746
|
+
errors: {
|
|
747
|
+
400: `Bad Request`,
|
|
748
|
+
422: `Unprocessable Content`,
|
|
749
|
+
500: `Internal Server Error`,
|
|
750
|
+
},
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
|
|
625
754
|
/**
|
|
626
755
|
* Gets a list of resources unpaged and without references.
|
|
627
756
|
* @returns ActivityPerformance OK
|
|
@@ -447,6 +447,117 @@ export class AttendeesService {
|
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
+
/**
|
|
451
|
+
* Returns the number of results in the database given the provided search params.
|
|
452
|
+
* @returns number OK
|
|
453
|
+
* @throws ApiError
|
|
454
|
+
*/
|
|
455
|
+
public count({
|
|
456
|
+
venueId,
|
|
457
|
+
customerId,
|
|
458
|
+
firstName,
|
|
459
|
+
lastName,
|
|
460
|
+
pageNumber,
|
|
461
|
+
take,
|
|
462
|
+
skip,
|
|
463
|
+
limitListRequests,
|
|
464
|
+
tenantId,
|
|
465
|
+
modifiedById,
|
|
466
|
+
modifiedByIds,
|
|
467
|
+
dateCreatedGte,
|
|
468
|
+
dateCreatedLte,
|
|
469
|
+
isLive,
|
|
470
|
+
sortOrderDirection,
|
|
471
|
+
}: {
|
|
472
|
+
/**
|
|
473
|
+
* Gets or sets the queryable venue id.
|
|
474
|
+
*/
|
|
475
|
+
venueId?: string;
|
|
476
|
+
/**
|
|
477
|
+
* Gets or sets the queryable customer id.
|
|
478
|
+
*/
|
|
479
|
+
customerId?: string;
|
|
480
|
+
/**
|
|
481
|
+
* Gets or sets the queryable attendee first name.
|
|
482
|
+
*/
|
|
483
|
+
firstName?: string;
|
|
484
|
+
/**
|
|
485
|
+
* Gets or sets the queryable attendee last name.
|
|
486
|
+
*/
|
|
487
|
+
lastName?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Gets or sets the page number for paged queries.
|
|
490
|
+
*/
|
|
491
|
+
pageNumber?: number;
|
|
492
|
+
/**
|
|
493
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
494
|
+
*/
|
|
495
|
+
take?: number;
|
|
496
|
+
/**
|
|
497
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
498
|
+
*/
|
|
499
|
+
skip?: number;
|
|
500
|
+
/**
|
|
501
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
502
|
+
*/
|
|
503
|
+
limitListRequests?: boolean;
|
|
504
|
+
/**
|
|
505
|
+
* Gets or sets the Tenant Id.
|
|
506
|
+
*/
|
|
507
|
+
tenantId?: string;
|
|
508
|
+
/**
|
|
509
|
+
* Gets or sets the Modifed By Id.
|
|
510
|
+
*/
|
|
511
|
+
modifiedById?: string;
|
|
512
|
+
/**
|
|
513
|
+
* Gets or sets the Modifed By Ids.
|
|
514
|
+
*/
|
|
515
|
+
modifiedByIds?: Array<string>;
|
|
516
|
+
/**
|
|
517
|
+
* Gets or sets the Date Created greater than equal to.
|
|
518
|
+
*/
|
|
519
|
+
dateCreatedGte?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Gets or sets the Date Created less than equal to.
|
|
522
|
+
*/
|
|
523
|
+
dateCreatedLte?: string;
|
|
524
|
+
/**
|
|
525
|
+
* Gets or sets the queryable only is live status.
|
|
526
|
+
*/
|
|
527
|
+
isLive?: boolean;
|
|
528
|
+
/**
|
|
529
|
+
* Gets or sets the sort order direction.
|
|
530
|
+
*/
|
|
531
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
532
|
+
}): CancelablePromise<number> {
|
|
533
|
+
return this.httpRequest.request({
|
|
534
|
+
method: 'GET',
|
|
535
|
+
url: '/api/attendees/count',
|
|
536
|
+
query: {
|
|
537
|
+
VenueId: venueId,
|
|
538
|
+
CustomerId: customerId,
|
|
539
|
+
FirstName: firstName,
|
|
540
|
+
LastName: lastName,
|
|
541
|
+
PageNumber: pageNumber,
|
|
542
|
+
Take: take,
|
|
543
|
+
Skip: skip,
|
|
544
|
+
LimitListRequests: limitListRequests,
|
|
545
|
+
TenantId: tenantId,
|
|
546
|
+
ModifiedById: modifiedById,
|
|
547
|
+
ModifiedByIds: modifiedByIds,
|
|
548
|
+
DateCreatedGTE: dateCreatedGte,
|
|
549
|
+
DateCreatedLTE: dateCreatedLte,
|
|
550
|
+
IsLive: isLive,
|
|
551
|
+
SortOrderDirection: sortOrderDirection,
|
|
552
|
+
},
|
|
553
|
+
errors: {
|
|
554
|
+
400: `Bad Request`,
|
|
555
|
+
422: `Unprocessable Content`,
|
|
556
|
+
500: `Internal Server Error`,
|
|
557
|
+
},
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
|
|
450
561
|
/**
|
|
451
562
|
* Gets a list of resources unpaged and without references.
|
|
452
563
|
* @returns Attendee OK
|
|
@@ -584,6 +584,93 @@ export class BadEnglandReportService {
|
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
+
/**
|
|
588
|
+
* Returns the number of results in the database given the provided search params.
|
|
589
|
+
* @returns number OK
|
|
590
|
+
* @throws ApiError
|
|
591
|
+
*/
|
|
592
|
+
public count({
|
|
593
|
+
pageNumber,
|
|
594
|
+
take,
|
|
595
|
+
skip,
|
|
596
|
+
limitListRequests,
|
|
597
|
+
tenantId,
|
|
598
|
+
modifiedById,
|
|
599
|
+
modifiedByIds,
|
|
600
|
+
dateCreatedGte,
|
|
601
|
+
dateCreatedLte,
|
|
602
|
+
isLive,
|
|
603
|
+
sortOrderDirection,
|
|
604
|
+
}: {
|
|
605
|
+
/**
|
|
606
|
+
* Gets or sets the page number for paged queries.
|
|
607
|
+
*/
|
|
608
|
+
pageNumber?: number;
|
|
609
|
+
/**
|
|
610
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
611
|
+
*/
|
|
612
|
+
take?: number;
|
|
613
|
+
/**
|
|
614
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
615
|
+
*/
|
|
616
|
+
skip?: number;
|
|
617
|
+
/**
|
|
618
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
619
|
+
*/
|
|
620
|
+
limitListRequests?: boolean;
|
|
621
|
+
/**
|
|
622
|
+
* Gets or sets the Tenant Id.
|
|
623
|
+
*/
|
|
624
|
+
tenantId?: string;
|
|
625
|
+
/**
|
|
626
|
+
* Gets or sets the Modifed By Id.
|
|
627
|
+
*/
|
|
628
|
+
modifiedById?: string;
|
|
629
|
+
/**
|
|
630
|
+
* Gets or sets the Modifed By Ids.
|
|
631
|
+
*/
|
|
632
|
+
modifiedByIds?: Array<string>;
|
|
633
|
+
/**
|
|
634
|
+
* Gets or sets the Date Created greater than equal to.
|
|
635
|
+
*/
|
|
636
|
+
dateCreatedGte?: string;
|
|
637
|
+
/**
|
|
638
|
+
* Gets or sets the Date Created less than equal to.
|
|
639
|
+
*/
|
|
640
|
+
dateCreatedLte?: string;
|
|
641
|
+
/**
|
|
642
|
+
* Gets or sets the queryable only is live status.
|
|
643
|
+
*/
|
|
644
|
+
isLive?: boolean;
|
|
645
|
+
/**
|
|
646
|
+
* Gets or sets the sort order direction.
|
|
647
|
+
*/
|
|
648
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
649
|
+
}): CancelablePromise<number> {
|
|
650
|
+
return this.httpRequest.request({
|
|
651
|
+
method: 'GET',
|
|
652
|
+
url: '/api/reports/badminton-england/count',
|
|
653
|
+
query: {
|
|
654
|
+
PageNumber: pageNumber,
|
|
655
|
+
Take: take,
|
|
656
|
+
Skip: skip,
|
|
657
|
+
LimitListRequests: limitListRequests,
|
|
658
|
+
TenantId: tenantId,
|
|
659
|
+
ModifiedById: modifiedById,
|
|
660
|
+
ModifiedByIds: modifiedByIds,
|
|
661
|
+
DateCreatedGTE: dateCreatedGte,
|
|
662
|
+
DateCreatedLTE: dateCreatedLte,
|
|
663
|
+
IsLive: isLive,
|
|
664
|
+
SortOrderDirection: sortOrderDirection,
|
|
665
|
+
},
|
|
666
|
+
errors: {
|
|
667
|
+
400: `Bad Request`,
|
|
668
|
+
422: `Unprocessable Content`,
|
|
669
|
+
500: `Internal Server Error`,
|
|
670
|
+
},
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
|
|
587
674
|
/**
|
|
588
675
|
* Gets a list of resources unpaged and without references.
|
|
589
676
|
* @returns VenueBadmintonEnglandReport OK
|
|
@@ -1117,6 +1117,207 @@ export class BookingService {
|
|
|
1117
1117
|
});
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* Returns the number of results in the database given the provided search params.
|
|
1122
|
+
* @returns number OK
|
|
1123
|
+
* @throws ApiError
|
|
1124
|
+
*/
|
|
1125
|
+
public count({
|
|
1126
|
+
userId,
|
|
1127
|
+
wildcard,
|
|
1128
|
+
accessCode,
|
|
1129
|
+
customerName,
|
|
1130
|
+
email,
|
|
1131
|
+
providerId,
|
|
1132
|
+
venueId,
|
|
1133
|
+
programmeId,
|
|
1134
|
+
customerId,
|
|
1135
|
+
orderIds,
|
|
1136
|
+
sessionId,
|
|
1137
|
+
facilityId,
|
|
1138
|
+
courseId,
|
|
1139
|
+
orderStage,
|
|
1140
|
+
isBookedOrPendingPayment,
|
|
1141
|
+
orderStages,
|
|
1142
|
+
orderDateGte,
|
|
1143
|
+
orderDateLte,
|
|
1144
|
+
endUserIdentityId,
|
|
1145
|
+
pageNumber,
|
|
1146
|
+
take,
|
|
1147
|
+
skip,
|
|
1148
|
+
limitListRequests,
|
|
1149
|
+
tenantId,
|
|
1150
|
+
modifiedById,
|
|
1151
|
+
modifiedByIds,
|
|
1152
|
+
dateCreatedGte,
|
|
1153
|
+
dateCreatedLte,
|
|
1154
|
+
isLive,
|
|
1155
|
+
sortOrderDirection,
|
|
1156
|
+
}: {
|
|
1157
|
+
/**
|
|
1158
|
+
* Gets or sets the queryable User Id.
|
|
1159
|
+
*/
|
|
1160
|
+
userId?: string;
|
|
1161
|
+
/**
|
|
1162
|
+
* Gets or sets the wildcard for use in a query search.
|
|
1163
|
+
*/
|
|
1164
|
+
wildcard?: string;
|
|
1165
|
+
/**
|
|
1166
|
+
* Gets or sets the access code for use in a query search.
|
|
1167
|
+
*/
|
|
1168
|
+
accessCode?: string;
|
|
1169
|
+
/**
|
|
1170
|
+
* Gets or sets the customer name for use in a query search.
|
|
1171
|
+
*/
|
|
1172
|
+
customerName?: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* Gets or sets the email for use in a query search.
|
|
1175
|
+
*/
|
|
1176
|
+
email?: string;
|
|
1177
|
+
/**
|
|
1178
|
+
* Gets or sets the provider Id for use in a query search.
|
|
1179
|
+
*/
|
|
1180
|
+
providerId?: string;
|
|
1181
|
+
/**
|
|
1182
|
+
* Gets or sets the venue Id for use in a query search.
|
|
1183
|
+
*/
|
|
1184
|
+
venueId?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* Gets or sets the programme Id for use in a query search.
|
|
1187
|
+
*/
|
|
1188
|
+
programmeId?: string;
|
|
1189
|
+
/**
|
|
1190
|
+
* Gets or sets the customer Id for use in a query search.
|
|
1191
|
+
*/
|
|
1192
|
+
customerId?: string;
|
|
1193
|
+
/**
|
|
1194
|
+
* Gets or sets the queryable order ids.
|
|
1195
|
+
*/
|
|
1196
|
+
orderIds?: Array<string>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Gets or sets the session Id for use in a query search.
|
|
1199
|
+
*/
|
|
1200
|
+
sessionId?: string;
|
|
1201
|
+
/**
|
|
1202
|
+
* Gets or sets the facility Id for use in a query search.
|
|
1203
|
+
*/
|
|
1204
|
+
facilityId?: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* Gets or sets the course Id for use in a query search.
|
|
1207
|
+
*/
|
|
1208
|
+
courseId?: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* Gets or sets the queryable order stage. This cannot be used in conjunction with IsBookedOrPendingPayment.
|
|
1211
|
+
*/
|
|
1212
|
+
orderStage?: OrderStage;
|
|
1213
|
+
/**
|
|
1214
|
+
* 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.
|
|
1215
|
+
*/
|
|
1216
|
+
isBookedOrPendingPayment?: boolean;
|
|
1217
|
+
/**
|
|
1218
|
+
* Gets or sets the queryable order stages.
|
|
1219
|
+
*/
|
|
1220
|
+
orderStages?: Array<OrderStage>;
|
|
1221
|
+
/**
|
|
1222
|
+
* Gets or sets the queryable order date creted is greater than or equal to.
|
|
1223
|
+
*/
|
|
1224
|
+
orderDateGte?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* Gets or sets the queryable order date created is less than or equal to.
|
|
1227
|
+
*/
|
|
1228
|
+
orderDateLte?: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* Gets or sets the end user identity Id for use in a query search.
|
|
1231
|
+
*/
|
|
1232
|
+
endUserIdentityId?: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* Gets or sets the page number for paged queries.
|
|
1235
|
+
*/
|
|
1236
|
+
pageNumber?: number;
|
|
1237
|
+
/**
|
|
1238
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
1239
|
+
*/
|
|
1240
|
+
take?: number;
|
|
1241
|
+
/**
|
|
1242
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
1243
|
+
*/
|
|
1244
|
+
skip?: number;
|
|
1245
|
+
/**
|
|
1246
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
1247
|
+
*/
|
|
1248
|
+
limitListRequests?: boolean;
|
|
1249
|
+
/**
|
|
1250
|
+
* Gets or sets the Tenant Id.
|
|
1251
|
+
*/
|
|
1252
|
+
tenantId?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* Gets or sets the Modifed By Id.
|
|
1255
|
+
*/
|
|
1256
|
+
modifiedById?: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* Gets or sets the Modifed By Ids.
|
|
1259
|
+
*/
|
|
1260
|
+
modifiedByIds?: Array<string>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Gets or sets the Date Created greater than equal to.
|
|
1263
|
+
*/
|
|
1264
|
+
dateCreatedGte?: string;
|
|
1265
|
+
/**
|
|
1266
|
+
* Gets or sets the Date Created less than equal to.
|
|
1267
|
+
*/
|
|
1268
|
+
dateCreatedLte?: string;
|
|
1269
|
+
/**
|
|
1270
|
+
* Gets or sets the queryable only is live status.
|
|
1271
|
+
*/
|
|
1272
|
+
isLive?: boolean;
|
|
1273
|
+
/**
|
|
1274
|
+
* Gets or sets the sort order direction.
|
|
1275
|
+
*/
|
|
1276
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
1277
|
+
}): CancelablePromise<number> {
|
|
1278
|
+
return this.httpRequest.request({
|
|
1279
|
+
method: 'GET',
|
|
1280
|
+
url: '/api/bookings/count',
|
|
1281
|
+
query: {
|
|
1282
|
+
UserId: userId,
|
|
1283
|
+
Wildcard: wildcard,
|
|
1284
|
+
AccessCode: accessCode,
|
|
1285
|
+
CustomerName: customerName,
|
|
1286
|
+
Email: email,
|
|
1287
|
+
ProviderId: providerId,
|
|
1288
|
+
VenueId: venueId,
|
|
1289
|
+
ProgrammeId: programmeId,
|
|
1290
|
+
CustomerId: customerId,
|
|
1291
|
+
OrderIds: orderIds,
|
|
1292
|
+
SessionId: sessionId,
|
|
1293
|
+
FacilityId: facilityId,
|
|
1294
|
+
CourseId: courseId,
|
|
1295
|
+
OrderStage: orderStage,
|
|
1296
|
+
IsBookedOrPendingPayment: isBookedOrPendingPayment,
|
|
1297
|
+
OrderStages: orderStages,
|
|
1298
|
+
OrderDateGTE: orderDateGte,
|
|
1299
|
+
OrderDateLTE: orderDateLte,
|
|
1300
|
+
EndUserIdentityId: endUserIdentityId,
|
|
1301
|
+
PageNumber: pageNumber,
|
|
1302
|
+
Take: take,
|
|
1303
|
+
Skip: skip,
|
|
1304
|
+
LimitListRequests: limitListRequests,
|
|
1305
|
+
TenantId: tenantId,
|
|
1306
|
+
ModifiedById: modifiedById,
|
|
1307
|
+
ModifiedByIds: modifiedByIds,
|
|
1308
|
+
DateCreatedGTE: dateCreatedGte,
|
|
1309
|
+
DateCreatedLTE: dateCreatedLte,
|
|
1310
|
+
IsLive: isLive,
|
|
1311
|
+
SortOrderDirection: sortOrderDirection,
|
|
1312
|
+
},
|
|
1313
|
+
errors: {
|
|
1314
|
+
400: `Bad Request`,
|
|
1315
|
+
422: `Unprocessable Content`,
|
|
1316
|
+
500: `Internal Server Error`,
|
|
1317
|
+
},
|
|
1318
|
+
});
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1120
1321
|
/**
|
|
1121
1322
|
* Gets a list of resources unpaged and without references.
|
|
1122
1323
|
* @returns Order OK
|
|
@@ -491,6 +491,117 @@ export class CancellationPoliciesService {
|
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
+
/**
|
|
495
|
+
* Returns the number of results in the database given the provided search params.
|
|
496
|
+
* @returns number OK
|
|
497
|
+
* @throws ApiError
|
|
498
|
+
*/
|
|
499
|
+
public count({
|
|
500
|
+
ids,
|
|
501
|
+
name,
|
|
502
|
+
isDefault,
|
|
503
|
+
isSystem,
|
|
504
|
+
pageNumber,
|
|
505
|
+
take,
|
|
506
|
+
skip,
|
|
507
|
+
limitListRequests,
|
|
508
|
+
tenantId,
|
|
509
|
+
modifiedById,
|
|
510
|
+
modifiedByIds,
|
|
511
|
+
dateCreatedGte,
|
|
512
|
+
dateCreatedLte,
|
|
513
|
+
isLive,
|
|
514
|
+
sortOrderDirection,
|
|
515
|
+
}: {
|
|
516
|
+
/**
|
|
517
|
+
* Gets or sets the queryable cancellation policy ids.
|
|
518
|
+
*/
|
|
519
|
+
ids?: Array<string>;
|
|
520
|
+
/**
|
|
521
|
+
* Gets or sets the queryable name.
|
|
522
|
+
*/
|
|
523
|
+
name?: string;
|
|
524
|
+
/**
|
|
525
|
+
* Gets or sets the queryable IsDefault value.
|
|
526
|
+
*/
|
|
527
|
+
isDefault?: boolean;
|
|
528
|
+
/**
|
|
529
|
+
* Gets or sets the queryable IsSystem value.
|
|
530
|
+
*/
|
|
531
|
+
isSystem?: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* Gets or sets the page number for paged queries.
|
|
534
|
+
*/
|
|
535
|
+
pageNumber?: number;
|
|
536
|
+
/**
|
|
537
|
+
* Gets or sets the result count limit, always applicable Paged queries, only applicable to List queries if LimitListRequests is set to true.
|
|
538
|
+
*/
|
|
539
|
+
take?: number;
|
|
540
|
+
/**
|
|
541
|
+
* Gets or sets how much items to skip from begining of db table, when this is set page is always 1.
|
|
542
|
+
*/
|
|
543
|
+
skip?: number;
|
|
544
|
+
/**
|
|
545
|
+
* Gets or sets a value indicating whether to apply a limit to the number of results returned in a GetList request.
|
|
546
|
+
*/
|
|
547
|
+
limitListRequests?: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Gets or sets the Tenant Id.
|
|
550
|
+
*/
|
|
551
|
+
tenantId?: string;
|
|
552
|
+
/**
|
|
553
|
+
* Gets or sets the Modifed By Id.
|
|
554
|
+
*/
|
|
555
|
+
modifiedById?: string;
|
|
556
|
+
/**
|
|
557
|
+
* Gets or sets the Modifed By Ids.
|
|
558
|
+
*/
|
|
559
|
+
modifiedByIds?: Array<string>;
|
|
560
|
+
/**
|
|
561
|
+
* Gets or sets the Date Created greater than equal to.
|
|
562
|
+
*/
|
|
563
|
+
dateCreatedGte?: string;
|
|
564
|
+
/**
|
|
565
|
+
* Gets or sets the Date Created less than equal to.
|
|
566
|
+
*/
|
|
567
|
+
dateCreatedLte?: string;
|
|
568
|
+
/**
|
|
569
|
+
* Gets or sets the queryable only is live status.
|
|
570
|
+
*/
|
|
571
|
+
isLive?: boolean;
|
|
572
|
+
/**
|
|
573
|
+
* Gets or sets the sort order direction.
|
|
574
|
+
*/
|
|
575
|
+
sortOrderDirection?: SearchSortOrderDirection;
|
|
576
|
+
}): CancelablePromise<number> {
|
|
577
|
+
return this.httpRequest.request({
|
|
578
|
+
method: 'GET',
|
|
579
|
+
url: '/api/cancellation-policies/count',
|
|
580
|
+
query: {
|
|
581
|
+
Ids: ids,
|
|
582
|
+
Name: name,
|
|
583
|
+
IsDefault: isDefault,
|
|
584
|
+
IsSystem: isSystem,
|
|
585
|
+
PageNumber: pageNumber,
|
|
586
|
+
Take: take,
|
|
587
|
+
Skip: skip,
|
|
588
|
+
LimitListRequests: limitListRequests,
|
|
589
|
+
TenantId: tenantId,
|
|
590
|
+
ModifiedById: modifiedById,
|
|
591
|
+
ModifiedByIds: modifiedByIds,
|
|
592
|
+
DateCreatedGTE: dateCreatedGte,
|
|
593
|
+
DateCreatedLTE: dateCreatedLte,
|
|
594
|
+
IsLive: isLive,
|
|
595
|
+
SortOrderDirection: sortOrderDirection,
|
|
596
|
+
},
|
|
597
|
+
errors: {
|
|
598
|
+
400: `Bad Request`,
|
|
599
|
+
422: `Unprocessable Content`,
|
|
600
|
+
500: `Internal Server Error`,
|
|
601
|
+
},
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
|
|
494
605
|
/**
|
|
495
606
|
* Gets a list of resources unpaged and without references.
|
|
496
607
|
* @returns CancellationPolicy OK
|