reach-api-sdk 1.0.89 → 1.0.90

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.
@@ -31552,17 +31552,98 @@ type TemplateDetailPatch = {
31552
31552
  */
31553
31553
  id: string;
31554
31554
  /**
31555
- * Gets or sets the template name.
31555
+ * Gets or sets the templates venue id.
31556
31556
  */
31557
- name: string;
31557
+ venueId?: string | null;
31558
31558
  /**
31559
- * Gets or sets the template description.
31559
+ * Gets or sets the templates activity id.
31560
31560
  */
31561
- description: string;
31561
+ activityId?: number | null;
31562
31562
  /**
31563
- * Gets or sets the template image url.
31563
+ * Gets or sets the templates programme id.
31564
31564
  */
31565
- imageUrl: string;
31565
+ programmeId?: string | null;
31566
+ /**
31567
+ * Gets or sets the templates post completion survey id.
31568
+ */
31569
+ postCompletionSurveyId?: string | null;
31570
+ /**
31571
+ * Gets or sets the templates survey id.
31572
+ */
31573
+ surveyId?: string | null;
31574
+ /**
31575
+ * Gets or sets the templates name.
31576
+ */
31577
+ name?: string | null;
31578
+ /**
31579
+ * Gets or sets the templates description.
31580
+ */
31581
+ description?: string | null;
31582
+ /**
31583
+ * Gets or sets the templates image url.
31584
+ */
31585
+ imageUrl?: string | null;
31586
+ /**
31587
+ * Gets or sets the templates meeting instructions.
31588
+ */
31589
+ meetingInstructions?: string | null;
31590
+ /**
31591
+ * Gets or sets the templates equipment required.
31592
+ */
31593
+ equipmentRequired?: string | null;
31594
+ /**
31595
+ * Gets or sets the templates capacity.
31596
+ */
31597
+ capacity?: number | null;
31598
+ /**
31599
+ * Gets or sets a value indicating whether the template has unlimited capacity.
31600
+ */
31601
+ capacityUnlimited?: boolean | null;
31602
+ gender?: Gender;
31603
+ /**
31604
+ * Gets or sets the templates min age.
31605
+ */
31606
+ minAge?: number | null;
31607
+ /**
31608
+ * Gets or sets the templates max age.
31609
+ */
31610
+ maxAge?: number | null;
31611
+ /**
31612
+ * Gets or sets a value indicating whether there is an age restriction.
31613
+ */
31614
+ noAgeRestriction?: boolean;
31615
+ /**
31616
+ * Gets or sets the templates additional support options.
31617
+ */
31618
+ additionalSupport?: Array<string> | null;
31619
+ /**
31620
+ * Gets or sets the templates contact name.
31621
+ */
31622
+ contactName?: string | null;
31623
+ /**
31624
+ * Gets or sets the templates contact phone.
31625
+ */
31626
+ contactPhone?: string | null;
31627
+ /**
31628
+ * Gets or sets the templates contact email.
31629
+ */
31630
+ contactEmail?: string | null;
31631
+ /**
31632
+ * Gets or sets the order confirmation text.
31633
+ */
31634
+ orderConfimationText?: string | null;
31635
+ /**
31636
+ * Gets or sets the order post completion text.
31637
+ */
31638
+ postCompletionSubject?: string | null;
31639
+ /**
31640
+ * Gets or sets the order post completion text.
31641
+ */
31642
+ postCompletionText?: string | null;
31643
+ /**
31644
+ * Gets or sets the templates referenced offers.
31645
+ */
31646
+ offers?: Array<TemplateOffer> | null;
31566
31647
  };
31567
31648
 
31568
31649
  /**
@@ -32254,6 +32335,124 @@ type Template = {
32254
32335
  details: TemplateDetail;
32255
32336
  };
32256
32337
 
32338
+ /**
32339
+ * Post model for session offers.
32340
+ */
32341
+ type CreateTemplateDetail = {
32342
+ /**
32343
+ * Gets or sets the templates venue id.
32344
+ */
32345
+ venueId?: string | null;
32346
+ /**
32347
+ * Gets or sets the templates activity id.
32348
+ */
32349
+ activityId?: number | null;
32350
+ /**
32351
+ * Gets or sets the templates programme id.
32352
+ */
32353
+ programmeId?: string | null;
32354
+ /**
32355
+ * Gets or sets the templates post completion survey id.
32356
+ */
32357
+ postCompletionSurveyId?: string | null;
32358
+ /**
32359
+ * Gets or sets the templates survey id.
32360
+ */
32361
+ surveyId?: string | null;
32362
+ /**
32363
+ * Gets or sets the templates name.
32364
+ */
32365
+ name?: string | null;
32366
+ /**
32367
+ * Gets or sets the templates description.
32368
+ */
32369
+ description?: string | null;
32370
+ /**
32371
+ * Gets or sets the templates image url.
32372
+ */
32373
+ imageUrl?: string | null;
32374
+ /**
32375
+ * Gets or sets the templates meeting instructions.
32376
+ */
32377
+ meetingInstructions?: string | null;
32378
+ /**
32379
+ * Gets or sets the templates equipment required.
32380
+ */
32381
+ equipmentRequired?: string | null;
32382
+ /**
32383
+ * Gets or sets the templates capacity.
32384
+ */
32385
+ capacity?: number | null;
32386
+ /**
32387
+ * Gets or sets a value indicating whether the template has unlimited capacity.
32388
+ */
32389
+ capacityUnlimited?: boolean | null;
32390
+ gender?: Gender;
32391
+ /**
32392
+ * Gets or sets the templates min age.
32393
+ */
32394
+ minAge?: number | null;
32395
+ /**
32396
+ * Gets or sets the templates max age.
32397
+ */
32398
+ maxAge?: number | null;
32399
+ /**
32400
+ * Gets or sets a value indicating whether there is an age restriction.
32401
+ */
32402
+ noAgeRestriction?: boolean;
32403
+ /**
32404
+ * Gets or sets the templates additional support options.
32405
+ */
32406
+ additionalSupport?: Array<string> | null;
32407
+ /**
32408
+ * Gets or sets the templates contact name.
32409
+ */
32410
+ contactName?: string | null;
32411
+ /**
32412
+ * Gets or sets the templates contact phone.
32413
+ */
32414
+ contactPhone?: string | null;
32415
+ /**
32416
+ * Gets or sets the templates contact email.
32417
+ */
32418
+ contactEmail?: string | null;
32419
+ /**
32420
+ * Gets or sets the order confirmation text.
32421
+ */
32422
+ orderConfimationText?: string | null;
32423
+ /**
32424
+ * Gets or sets the order post completion text.
32425
+ */
32426
+ postCompletionSubject?: string | null;
32427
+ /**
32428
+ * Gets or sets the order post completion text.
32429
+ */
32430
+ postCompletionText?: string | null;
32431
+ /**
32432
+ * Gets or sets the templates referenced offers.
32433
+ */
32434
+ offers?: Array<CreateOffer> | null;
32435
+ };
32436
+
32437
+ /**
32438
+ * Post model for template creation.
32439
+ */
32440
+ type TemplateCreate = {
32441
+ /**
32442
+ * Gets or sets the tenant Id.
32443
+ */
32444
+ tenantId: string;
32445
+ /**
32446
+ * Gets or sets the template name.
32447
+ */
32448
+ name: string;
32449
+ /**
32450
+ * Gets or sets the template image url.
32451
+ */
32452
+ imageUrl: string;
32453
+ detail?: CreateTemplateDetail;
32454
+ };
32455
+
32257
32456
  /**
32258
32457
  * Post model for duplicating a template.
32259
32458
  */
@@ -32358,6 +32557,17 @@ declare class TemplatesService {
32358
32557
  */
32359
32558
  id: string;
32360
32559
  }): CancelablePromise<TemplateUseResponse>;
32560
+ /**
32561
+ * Creates a template.
32562
+ * @returns Template Success
32563
+ * @throws ApiError
32564
+ */
32565
+ create({ requestBody, }: {
32566
+ /**
32567
+ * The template to be created.
32568
+ */
32569
+ requestBody?: TemplateCreate;
32570
+ }): CancelablePromise<Template>;
32361
32571
  /**
32362
32572
  * Gets the resource by its Id.
32363
32573
  * @returns Template Success
@@ -32385,7 +32595,11 @@ declare class TemplatesService {
32385
32595
  * @returns boolean Success
32386
32596
  * @throws ApiError
32387
32597
  */
32388
- exists({ pageNumber, take, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
32598
+ exists({ ids, pageNumber, take, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
32599
+ /**
32600
+ * Gets or sets the queryable template ids.
32601
+ */
32602
+ ids?: Array<string>;
32389
32603
  /**
32390
32604
  * Gets or sets the page number for paged queries.
32391
32605
  */
@@ -32432,7 +32646,11 @@ declare class TemplatesService {
32432
32646
  * @returns TemplatePage Success
32433
32647
  * @throws ApiError
32434
32648
  */
32435
- getPage({ pageNumber, take, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
32649
+ getPage({ ids, pageNumber, take, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
32650
+ /**
32651
+ * Gets or sets the queryable template ids.
32652
+ */
32653
+ ids?: Array<string>;
32436
32654
  /**
32437
32655
  * Gets or sets the page number for paged queries.
32438
32656
  */
@@ -32490,7 +32708,11 @@ declare class TemplatesService {
32490
32708
  * @returns Template Success
32491
32709
  * @throws ApiError
32492
32710
  */
32493
- getListWithoutReferences({ pageNumber, take, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
32711
+ getListWithoutReferences({ ids, pageNumber, take, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
32712
+ /**
32713
+ * Gets or sets the queryable template ids.
32714
+ */
32715
+ ids?: Array<string>;
32494
32716
  /**
32495
32717
  * Gets or sets the page number for paged queries.
32496
32718
  */
@@ -32537,7 +32759,11 @@ declare class TemplatesService {
32537
32759
  * @returns Template Success
32538
32760
  * @throws ApiError
32539
32761
  */
32540
- getListIdName({ pageNumber, take, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
32762
+ getListIdName({ ids, pageNumber, take, limitListRequests, tenantId, modifiedById, modifiedByIds, dateCreatedGte, dateCreatedLte, isLive, sortOrderDirection, }: {
32763
+ /**
32764
+ * Gets or sets the queryable template ids.
32765
+ */
32766
+ ids?: Array<string>;
32541
32767
  /**
32542
32768
  * Gets or sets the page number for paged queries.
32543
32769
  */
@@ -37054,4 +37280,4 @@ type ValidationResultModel = {
37054
37280
  readonly errors?: Array<ValidationError> | null;
37055
37281
  };
37056
37282
 
37057
- export { Activity, ActivityService, ActivityType, AdvanceBooking, Amenity, AmenityService, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeesService, AutoCompleteResponseModel, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, ChatService, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateVenue, Customer, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomersService, DatabaseState, DayOfWeek, DescriptionCompletionResponse, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityPatch, GenericActivityPost, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImagePage, ImagePatch, ImagePost, ImagesService, InviteStatus, LeasingService, LoqateGeocode, LoqatePlaceResult, LoqatePlacesService, LoqatePrediction, Northeast, NotificationQueue, NotificationQueuePage, NotificationQueuePatch, NotificationQueuePost, NotificationQueueService, NotificationSetting, NotificationSettingPage, NotificationSettingPatch, NotificationSettingPost, NotificationSettingsService, NotificationType, Offer, OfferPage, OfferPatch, OfferPost, OffersService, OpenAPI, OpenAPIConfig, OpenactiveFeedIntermediate, OpenactiveFeedIntermediatePage, OpenactiveFeedIntermediatePatch, OpenactiveFeedIntermediatePost, OpenactiveFeedIntermediateService, OpenactiveFeedItem, OpenactiveFeedItemPage, OpenactiveFeedItemPatch, OpenactiveFeedItemPost, OpenactiveFeedItemService, OpportunityRegister, OpportunityRegisterPage, OpportunityRegisterPatch, OpportunityRegisterPost, OpportunityRegisterService, OpportunityType, Order, OrderEmailCustomerPatch, OrderItem, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPost, OrderPostItem, OrderRefresh, OrderSource, OrderStage, OrderToken, OrderTokenPage, OrderTokenPatch, OrderTokenPost, OrderUpdateContact, OrdersService, OrgCourseUtilisation, OrgCourseUtilisationPage, OrgCourseUtilisationPatch, OrgCourseUtilisationPost, OrgCourseUtilisationService, OrganisationApplicationFeeHandling, OrganisationAvailableChannel, OrganisationRefundPolicy, OrganisationTaxMode, OrganisationType, Pagination, Payment, PaymentMethod, PaymentPage, PaymentPatch, PaymentPost, PaymentsService, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, QuestionIndex, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundStatus, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, ScheduledSessionReschedulePatch, ScheduledSessionSchedule, ScheduledSessionSchedulePage, ScheduledSessionSchedulePatch, ScheduledSessionSchedulePost, ScheduledSessionSearchSortBy, ScheduledSessionsSchedulesService, ScheduledSessionsService, SearchSortOrderDirection, Session, SessionCreate, SessionPage, SessionPatch, SessionPost, SessionType, SessionsService, Slot, SlotAvailabilityStatus, SlotOffer, SlotOfferPage, SlotOfferPatch, SlotOfferPost, SlotOffersService, SlotPage, SlotPatch, SlotPost, SlotSchedule, SlotScheduleOffer, SlotScheduleOfferPage, SlotScheduleOfferPatch, SlotScheduleOfferPost, SlotScheduleOffersService, SlotSchedulePage, SlotSchedulePatch, SlotSchedulePost, SlotSchedulesService, SlotStatus, SlotsService, Southwest, StripeAccount, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyPage, SurveyPatch, SurveyPost, SurveyQuestion, SurveyQuestionOption, SurveyQuestionPage, SurveyQuestionPatch, SurveyQuestionPatchOption, SurveyQuestionPost, SurveyQuestionPostOption, SurveyQuestionType, SurveyQuestionsService, SurveyQuestionsTarget, SurveyReportExtended, SurveyReportExtendedPage, SurveyReportExtendedPatch, SurveyReportExtendedPost, SurveyReportExtendedService, SurveyResponseMode, SurveySubmissionModel, SurveySubmit, SurveySubmitAttendee, SurveySubmitQuestions, SurveyType, SurveysService, Tax, Template, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantTier, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPost, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityService };
37283
+ export { Activity, ActivityService, ActivityType, AdvanceBooking, Amenity, AmenityService, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeesService, AutoCompleteResponseModel, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, ChatService, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateTemplateDetail, CreateVenue, Customer, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomersService, DatabaseState, DayOfWeek, DescriptionCompletionResponse, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityPatch, GenericActivityPost, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImagePage, ImagePatch, ImagePost, ImagesService, InviteStatus, LeasingService, LoqateGeocode, LoqatePlaceResult, LoqatePlacesService, LoqatePrediction, Northeast, NotificationQueue, NotificationQueuePage, NotificationQueuePatch, NotificationQueuePost, NotificationQueueService, NotificationSetting, NotificationSettingPage, NotificationSettingPatch, NotificationSettingPost, NotificationSettingsService, NotificationType, Offer, OfferPage, OfferPatch, OfferPost, OffersService, OpenAPI, OpenAPIConfig, OpenactiveFeedIntermediate, OpenactiveFeedIntermediatePage, OpenactiveFeedIntermediatePatch, OpenactiveFeedIntermediatePost, OpenactiveFeedIntermediateService, OpenactiveFeedItem, OpenactiveFeedItemPage, OpenactiveFeedItemPatch, OpenactiveFeedItemPost, OpenactiveFeedItemService, OpportunityRegister, OpportunityRegisterPage, OpportunityRegisterPatch, OpportunityRegisterPost, OpportunityRegisterService, OpportunityType, Order, OrderEmailCustomerPatch, OrderItem, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPost, OrderPostItem, OrderRefresh, OrderSource, OrderStage, OrderToken, OrderTokenPage, OrderTokenPatch, OrderTokenPost, OrderUpdateContact, OrdersService, OrgCourseUtilisation, OrgCourseUtilisationPage, OrgCourseUtilisationPatch, OrgCourseUtilisationPost, OrgCourseUtilisationService, OrganisationApplicationFeeHandling, OrganisationAvailableChannel, OrganisationRefundPolicy, OrganisationTaxMode, OrganisationType, Pagination, Payment, PaymentMethod, PaymentPage, PaymentPatch, PaymentPost, PaymentsService, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, QuestionIndex, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundStatus, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, ScheduledSessionReschedulePatch, ScheduledSessionSchedule, ScheduledSessionSchedulePage, ScheduledSessionSchedulePatch, ScheduledSessionSchedulePost, ScheduledSessionSearchSortBy, ScheduledSessionsSchedulesService, ScheduledSessionsService, SearchSortOrderDirection, Session, SessionCreate, SessionPage, SessionPatch, SessionPost, SessionType, SessionsService, Slot, SlotAvailabilityStatus, SlotOffer, SlotOfferPage, SlotOfferPatch, SlotOfferPost, SlotOffersService, SlotPage, SlotPatch, SlotPost, SlotSchedule, SlotScheduleOffer, SlotScheduleOfferPage, SlotScheduleOfferPatch, SlotScheduleOfferPost, SlotScheduleOffersService, SlotSchedulePage, SlotSchedulePatch, SlotSchedulePost, SlotSchedulesService, SlotStatus, SlotsService, Southwest, StripeAccount, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyPage, SurveyPatch, SurveyPost, SurveyQuestion, SurveyQuestionOption, SurveyQuestionPage, SurveyQuestionPatch, SurveyQuestionPatchOption, SurveyQuestionPost, SurveyQuestionPostOption, SurveyQuestionType, SurveyQuestionsService, SurveyQuestionsTarget, SurveyReportExtended, SurveyReportExtendedPage, SurveyReportExtendedPatch, SurveyReportExtendedPost, SurveyReportExtendedService, SurveyResponseMode, SurveySubmissionModel, SurveySubmit, SurveySubmitAttendee, SurveySubmitQuestions, SurveyType, SurveysService, Tax, Template, TemplateCreate, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantTier, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPost, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityService };
package/dist/reach-sdk.js CHANGED
@@ -24330,6 +24330,26 @@ const request = (config, options, axiosClient = axios) => {
24330
24330
  }
24331
24331
  });
24332
24332
  }
24333
+ /**
24334
+ * Creates a template.
24335
+ * @returns Template Success
24336
+ * @throws ApiError
24337
+ */
24338
+ create({
24339
+ requestBody
24340
+ }) {
24341
+ return this.httpRequest.request({
24342
+ method: "POST",
24343
+ url: "/api/templates/create",
24344
+ body: requestBody,
24345
+ mediaType: "application/json",
24346
+ errors: {
24347
+ 400: `Bad Request`,
24348
+ 422: `Client Error`,
24349
+ 500: `Server Error`
24350
+ }
24351
+ });
24352
+ }
24333
24353
  /**
24334
24354
  * Gets the resource by its Id.
24335
24355
  * @returns Template Success
@@ -24378,6 +24398,7 @@ const request = (config, options, axiosClient = axios) => {
24378
24398
  * @throws ApiError
24379
24399
  */
24380
24400
  exists({
24401
+ ids,
24381
24402
  pageNumber,
24382
24403
  take,
24383
24404
  limitListRequests,
@@ -24393,6 +24414,7 @@ const request = (config, options, axiosClient = axios) => {
24393
24414
  method: "GET",
24394
24415
  url: "/api/templates/exists",
24395
24416
  query: {
24417
+ Ids: ids,
24396
24418
  PageNumber: pageNumber,
24397
24419
  Take: take,
24398
24420
  LimitListRequests: limitListRequests,
@@ -24417,6 +24439,7 @@ const request = (config, options, axiosClient = axios) => {
24417
24439
  * @throws ApiError
24418
24440
  */
24419
24441
  getPage({
24442
+ ids,
24420
24443
  pageNumber,
24421
24444
  take,
24422
24445
  limitListRequests,
@@ -24432,6 +24455,7 @@ const request = (config, options, axiosClient = axios) => {
24432
24455
  method: "GET",
24433
24456
  url: "/api/templates",
24434
24457
  query: {
24458
+ Ids: ids,
24435
24459
  PageNumber: pageNumber,
24436
24460
  Take: take,
24437
24461
  LimitListRequests: limitListRequests,
@@ -24476,6 +24500,7 @@ const request = (config, options, axiosClient = axios) => {
24476
24500
  * @throws ApiError
24477
24501
  */
24478
24502
  getListWithoutReferences({
24503
+ ids,
24479
24504
  pageNumber,
24480
24505
  take,
24481
24506
  limitListRequests,
@@ -24491,6 +24516,7 @@ const request = (config, options, axiosClient = axios) => {
24491
24516
  method: "GET",
24492
24517
  url: "/api/templates/without-references",
24493
24518
  query: {
24519
+ Ids: ids,
24494
24520
  PageNumber: pageNumber,
24495
24521
  Take: take,
24496
24522
  LimitListRequests: limitListRequests,
@@ -24515,6 +24541,7 @@ const request = (config, options, axiosClient = axios) => {
24515
24541
  * @throws ApiError
24516
24542
  */
24517
24543
  getListIdName({
24544
+ ids,
24518
24545
  pageNumber,
24519
24546
  take,
24520
24547
  limitListRequests,
@@ -24530,6 +24557,7 @@ const request = (config, options, axiosClient = axios) => {
24530
24557
  method: "GET",
24531
24558
  url: "/api/templates/id-name",
24532
24559
  query: {
24560
+ Ids: ids,
24533
24561
  PageNumber: pageNumber,
24534
24562
  Take: take,
24535
24563
  LimitListRequests: limitListRequests,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -71145,6 +71145,73 @@ paths:
71145
71145
  text/json:
71146
71146
  schema:
71147
71147
  $ref: '#/components/schemas/ValidationResultModel'
71148
+ /api/templates/create:
71149
+ post:
71150
+ tags:
71151
+ - Templates
71152
+ summary: Creates a template.
71153
+ operationId: Create
71154
+ requestBody:
71155
+ description: The template to be created.
71156
+ content:
71157
+ application/json:
71158
+ schema:
71159
+ $ref: '#/components/schemas/TemplateCreate'
71160
+ text/json:
71161
+ schema:
71162
+ $ref: '#/components/schemas/TemplateCreate'
71163
+ application/*+json:
71164
+ schema:
71165
+ $ref: '#/components/schemas/TemplateCreate'
71166
+ responses:
71167
+ '200':
71168
+ description: Success
71169
+ content:
71170
+ text/plain:
71171
+ schema:
71172
+ $ref: '#/components/schemas/Template'
71173
+ application/json:
71174
+ schema:
71175
+ $ref: '#/components/schemas/Template'
71176
+ text/json:
71177
+ schema:
71178
+ $ref: '#/components/schemas/Template'
71179
+ '400':
71180
+ description: Bad Request
71181
+ content:
71182
+ text/plain:
71183
+ schema:
71184
+ $ref: '#/components/schemas/ReachError'
71185
+ application/json:
71186
+ schema:
71187
+ $ref: '#/components/schemas/ReachError'
71188
+ text/json:
71189
+ schema:
71190
+ $ref: '#/components/schemas/ReachError'
71191
+ '500':
71192
+ description: Server Error
71193
+ content:
71194
+ text/plain:
71195
+ schema:
71196
+ $ref: '#/components/schemas/ReachError'
71197
+ application/json:
71198
+ schema:
71199
+ $ref: '#/components/schemas/ReachError'
71200
+ text/json:
71201
+ schema:
71202
+ $ref: '#/components/schemas/ReachError'
71203
+ '422':
71204
+ description: Client Error
71205
+ content:
71206
+ text/plain:
71207
+ schema:
71208
+ $ref: '#/components/schemas/ValidationResultModel'
71209
+ application/json:
71210
+ schema:
71211
+ $ref: '#/components/schemas/ValidationResultModel'
71212
+ text/json:
71213
+ schema:
71214
+ $ref: '#/components/schemas/ValidationResultModel'
71148
71215
  '/api/templates/{id}':
71149
71216
  get:
71150
71217
  tags:
@@ -71267,6 +71334,14 @@ paths:
71267
71334
  summary: Returns a value indicating whether the resource exists in the database given the provided search params.
71268
71335
  operationId: Exists
71269
71336
  parameters:
71337
+ - name: Ids
71338
+ in: query
71339
+ description: Gets or sets the queryable template ids.
71340
+ schema:
71341
+ type: array
71342
+ items:
71343
+ type: string
71344
+ format: uuid
71270
71345
  - name: PageNumber
71271
71346
  in: query
71272
71347
  description: Gets or sets the page number for paged queries.
@@ -71382,6 +71457,14 @@ paths:
71382
71457
  summary: Gets a list of resources.
71383
71458
  operationId: GetPage
71384
71459
  parameters:
71460
+ - name: Ids
71461
+ in: query
71462
+ description: Gets or sets the queryable template ids.
71463
+ schema:
71464
+ type: array
71465
+ items:
71466
+ type: string
71467
+ format: uuid
71385
71468
  - name: PageNumber
71386
71469
  in: query
71387
71470
  description: Gets or sets the page number for paged queries.
@@ -71553,6 +71636,14 @@ paths:
71553
71636
  summary: Gets a list of resources unpaged and without references.
71554
71637
  operationId: GetListWithoutReferences
71555
71638
  parameters:
71639
+ - name: Ids
71640
+ in: query
71641
+ description: Gets or sets the queryable template ids.
71642
+ schema:
71643
+ type: array
71644
+ items:
71645
+ type: string
71646
+ format: uuid
71556
71647
  - name: PageNumber
71557
71648
  in: query
71558
71649
  description: Gets or sets the page number for paged queries.
@@ -71674,6 +71765,14 @@ paths:
71674
71765
  summary: Gets a list of resources.
71675
71766
  operationId: GetListIdName
71676
71767
  parameters:
71768
+ - name: Ids
71769
+ in: query
71770
+ description: Gets or sets the queryable template ids.
71771
+ schema:
71772
+ type: array
71773
+ items:
71774
+ type: string
71775
+ format: uuid
71677
71776
  - name: PageNumber
71678
71777
  in: query
71679
71778
  description: Gets or sets the page number for paged queries.
@@ -85318,6 +85417,118 @@ components:
85318
85417
  nullable: true
85319
85418
  additionalProperties: false
85320
85419
  description: Post model for survey question options.
85420
+ CreateTemplateDetail:
85421
+ type: object
85422
+ properties:
85423
+ venueId:
85424
+ type: string
85425
+ description: Gets or sets the templates venue id.
85426
+ format: uuid
85427
+ nullable: true
85428
+ activityId:
85429
+ type: integer
85430
+ description: Gets or sets the templates activity id.
85431
+ format: int32
85432
+ nullable: true
85433
+ programmeId:
85434
+ type: string
85435
+ description: Gets or sets the templates programme id.
85436
+ format: uuid
85437
+ nullable: true
85438
+ postCompletionSurveyId:
85439
+ type: string
85440
+ description: Gets or sets the templates post completion survey id.
85441
+ format: uuid
85442
+ nullable: true
85443
+ surveyId:
85444
+ type: string
85445
+ description: Gets or sets the templates survey id.
85446
+ format: uuid
85447
+ nullable: true
85448
+ name:
85449
+ type: string
85450
+ description: Gets or sets the templates name.
85451
+ nullable: true
85452
+ description:
85453
+ type: string
85454
+ description: Gets or sets the templates description.
85455
+ nullable: true
85456
+ imageUrl:
85457
+ type: string
85458
+ description: Gets or sets the templates image url.
85459
+ format: uri
85460
+ nullable: true
85461
+ meetingInstructions:
85462
+ type: string
85463
+ description: Gets or sets the templates meeting instructions.
85464
+ nullable: true
85465
+ equipmentRequired:
85466
+ type: string
85467
+ description: Gets or sets the templates equipment required.
85468
+ nullable: true
85469
+ capacity:
85470
+ type: integer
85471
+ description: Gets or sets the templates capacity.
85472
+ format: int32
85473
+ nullable: true
85474
+ capacityUnlimited:
85475
+ type: boolean
85476
+ description: Gets or sets a value indicating whether the template has unlimited capacity.
85477
+ nullable: true
85478
+ gender:
85479
+ $ref: '#/components/schemas/Gender'
85480
+ minAge:
85481
+ type: integer
85482
+ description: Gets or sets the templates min age.
85483
+ format: int32
85484
+ nullable: true
85485
+ maxAge:
85486
+ type: integer
85487
+ description: Gets or sets the templates max age.
85488
+ format: int32
85489
+ nullable: true
85490
+ noAgeRestriction:
85491
+ type: boolean
85492
+ description: Gets or sets a value indicating whether there is an age restriction.
85493
+ default: false
85494
+ additionalSupport:
85495
+ type: array
85496
+ items:
85497
+ type: string
85498
+ description: Gets or sets the templates additional support options.
85499
+ nullable: true
85500
+ contactName:
85501
+ type: string
85502
+ description: Gets or sets the templates contact name.
85503
+ nullable: true
85504
+ contactPhone:
85505
+ type: string
85506
+ description: Gets or sets the templates contact phone.
85507
+ nullable: true
85508
+ contactEmail:
85509
+ type: string
85510
+ description: Gets or sets the templates contact email.
85511
+ nullable: true
85512
+ orderConfimationText:
85513
+ type: string
85514
+ description: Gets or sets the order confirmation text.
85515
+ nullable: true
85516
+ postCompletionSubject:
85517
+ type: string
85518
+ description: Gets or sets the order post completion text.
85519
+ nullable: true
85520
+ postCompletionText:
85521
+ type: string
85522
+ description: Gets or sets the order post completion text.
85523
+ nullable: true
85524
+ offers:
85525
+ type: array
85526
+ items:
85527
+ $ref: '#/components/schemas/CreateOffer'
85528
+ description: Gets or sets the templates referenced offers.
85529
+ nullable: true
85530
+ additionalProperties: false
85531
+ description: Post model for session offers.
85321
85532
  CreateVenue:
85322
85533
  required:
85323
85534
  - addressPostalcode
@@ -92433,6 +92644,29 @@ components:
92433
92644
  $ref: '#/components/schemas/TemplateDetail'
92434
92645
  additionalProperties: false
92435
92646
  description: Represents a Template within the Reach application.
92647
+ TemplateCreate:
92648
+ required:
92649
+ - imageUrl
92650
+ - name
92651
+ - tenantId
92652
+ type: object
92653
+ properties:
92654
+ tenantId:
92655
+ type: string
92656
+ description: Gets or sets the tenant Id.
92657
+ format: uuid
92658
+ name:
92659
+ minLength: 1
92660
+ type: string
92661
+ description: Gets or sets the template name.
92662
+ imageUrl:
92663
+ type: string
92664
+ description: Gets or sets the template image url.
92665
+ format: uri
92666
+ detail:
92667
+ $ref: '#/components/schemas/CreateTemplateDetail'
92668
+ additionalProperties: false
92669
+ description: Post model for template creation.
92436
92670
  TemplateDetail:
92437
92671
  required:
92438
92672
  - dateCreated
@@ -92595,10 +92829,7 @@ components:
92595
92829
  additionalProperties: false
92596
92830
  TemplateDetailPatch:
92597
92831
  required:
92598
- - description
92599
92832
  - id
92600
- - imageUrl
92601
- - name
92602
92833
  - tenantId
92603
92834
  type: object
92604
92835
  properties:
@@ -92610,18 +92841,113 @@ components:
92610
92841
  type: string
92611
92842
  description: Gets or sets the Id.
92612
92843
  format: uuid
92844
+ venueId:
92845
+ type: string
92846
+ description: Gets or sets the templates venue id.
92847
+ format: uuid
92848
+ nullable: true
92849
+ activityId:
92850
+ type: integer
92851
+ description: Gets or sets the templates activity id.
92852
+ format: int32
92853
+ nullable: true
92854
+ programmeId:
92855
+ type: string
92856
+ description: Gets or sets the templates programme id.
92857
+ format: uuid
92858
+ nullable: true
92859
+ postCompletionSurveyId:
92860
+ type: string
92861
+ description: Gets or sets the templates post completion survey id.
92862
+ format: uuid
92863
+ nullable: true
92864
+ surveyId:
92865
+ type: string
92866
+ description: Gets or sets the templates survey id.
92867
+ format: uuid
92868
+ nullable: true
92613
92869
  name:
92614
- minLength: 1
92615
92870
  type: string
92616
- description: Gets or sets the template name.
92871
+ description: Gets or sets the templates name.
92872
+ nullable: true
92617
92873
  description:
92618
- minLength: 1
92619
92874
  type: string
92620
- description: Gets or sets the template description.
92875
+ description: Gets or sets the templates description.
92876
+ nullable: true
92621
92877
  imageUrl:
92622
92878
  type: string
92623
- description: Gets or sets the template image url.
92879
+ description: Gets or sets the templates image url.
92624
92880
  format: uri
92881
+ nullable: true
92882
+ meetingInstructions:
92883
+ type: string
92884
+ description: Gets or sets the templates meeting instructions.
92885
+ nullable: true
92886
+ equipmentRequired:
92887
+ type: string
92888
+ description: Gets or sets the templates equipment required.
92889
+ nullable: true
92890
+ capacity:
92891
+ type: integer
92892
+ description: Gets or sets the templates capacity.
92893
+ format: int32
92894
+ nullable: true
92895
+ capacityUnlimited:
92896
+ type: boolean
92897
+ description: Gets or sets a value indicating whether the template has unlimited capacity.
92898
+ nullable: true
92899
+ gender:
92900
+ $ref: '#/components/schemas/Gender'
92901
+ minAge:
92902
+ type: integer
92903
+ description: Gets or sets the templates min age.
92904
+ format: int32
92905
+ nullable: true
92906
+ maxAge:
92907
+ type: integer
92908
+ description: Gets or sets the templates max age.
92909
+ format: int32
92910
+ nullable: true
92911
+ noAgeRestriction:
92912
+ type: boolean
92913
+ description: Gets or sets a value indicating whether there is an age restriction.
92914
+ default: false
92915
+ additionalSupport:
92916
+ type: array
92917
+ items:
92918
+ type: string
92919
+ description: Gets or sets the templates additional support options.
92920
+ nullable: true
92921
+ contactName:
92922
+ type: string
92923
+ description: Gets or sets the templates contact name.
92924
+ nullable: true
92925
+ contactPhone:
92926
+ type: string
92927
+ description: Gets or sets the templates contact phone.
92928
+ nullable: true
92929
+ contactEmail:
92930
+ type: string
92931
+ description: Gets or sets the templates contact email.
92932
+ nullable: true
92933
+ orderConfimationText:
92934
+ type: string
92935
+ description: Gets or sets the order confirmation text.
92936
+ nullable: true
92937
+ postCompletionSubject:
92938
+ type: string
92939
+ description: Gets or sets the order post completion text.
92940
+ nullable: true
92941
+ postCompletionText:
92942
+ type: string
92943
+ description: Gets or sets the order post completion text.
92944
+ nullable: true
92945
+ offers:
92946
+ type: array
92947
+ items:
92948
+ $ref: '#/components/schemas/TemplateOffer'
92949
+ description: Gets or sets the templates referenced offers.
92950
+ nullable: true
92625
92951
  additionalProperties: false
92626
92952
  description: Post model for template detail updates.
92627
92953
  TemplateDetailPost:
package/src/index.ts CHANGED
@@ -46,6 +46,7 @@ export type { CreateEmailSettings } from './models/CreateEmailSettings';
46
46
  export type { CreateOffer } from './models/CreateOffer';
47
47
  export type { CreateQuestion } from './models/CreateQuestion';
48
48
  export type { CreateQuestionOption } from './models/CreateQuestionOption';
49
+ export type { CreateTemplateDetail } from './models/CreateTemplateDetail';
49
50
  export type { CreateVenue } from './models/CreateVenue';
50
51
  export type { Customer } from './models/Customer';
51
52
  export { CustomerCancellationOption } from './models/CustomerCancellationOption';
@@ -265,6 +266,7 @@ export type { SurveySubmitQuestions } from './models/SurveySubmitQuestions';
265
266
  export { SurveyType } from './models/SurveyType';
266
267
  export type { Tax } from './models/Tax';
267
268
  export type { Template } from './models/Template';
269
+ export type { TemplateCreate } from './models/TemplateCreate';
268
270
  export type { TemplateDetail } from './models/TemplateDetail';
269
271
  export type { TemplateDetailPage } from './models/TemplateDetailPage';
270
272
  export type { TemplateDetailPatch } from './models/TemplateDetailPatch';
@@ -0,0 +1,106 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { CreateOffer } from './CreateOffer';
7
+ import type { Gender } from './Gender';
8
+
9
+ /**
10
+ * Post model for session offers.
11
+ */
12
+ export type CreateTemplateDetail = {
13
+ /**
14
+ * Gets or sets the templates venue id.
15
+ */
16
+ venueId?: string | null;
17
+ /**
18
+ * Gets or sets the templates activity id.
19
+ */
20
+ activityId?: number | null;
21
+ /**
22
+ * Gets or sets the templates programme id.
23
+ */
24
+ programmeId?: string | null;
25
+ /**
26
+ * Gets or sets the templates post completion survey id.
27
+ */
28
+ postCompletionSurveyId?: string | null;
29
+ /**
30
+ * Gets or sets the templates survey id.
31
+ */
32
+ surveyId?: string | null;
33
+ /**
34
+ * Gets or sets the templates name.
35
+ */
36
+ name?: string | null;
37
+ /**
38
+ * Gets or sets the templates description.
39
+ */
40
+ description?: string | null;
41
+ /**
42
+ * Gets or sets the templates image url.
43
+ */
44
+ imageUrl?: string | null;
45
+ /**
46
+ * Gets or sets the templates meeting instructions.
47
+ */
48
+ meetingInstructions?: string | null;
49
+ /**
50
+ * Gets or sets the templates equipment required.
51
+ */
52
+ equipmentRequired?: string | null;
53
+ /**
54
+ * Gets or sets the templates capacity.
55
+ */
56
+ capacity?: number | null;
57
+ /**
58
+ * Gets or sets a value indicating whether the template has unlimited capacity.
59
+ */
60
+ capacityUnlimited?: boolean | null;
61
+ gender?: Gender;
62
+ /**
63
+ * Gets or sets the templates min age.
64
+ */
65
+ minAge?: number | null;
66
+ /**
67
+ * Gets or sets the templates max age.
68
+ */
69
+ maxAge?: number | null;
70
+ /**
71
+ * Gets or sets a value indicating whether there is an age restriction.
72
+ */
73
+ noAgeRestriction?: boolean;
74
+ /**
75
+ * Gets or sets the templates additional support options.
76
+ */
77
+ additionalSupport?: Array<string> | null;
78
+ /**
79
+ * Gets or sets the templates contact name.
80
+ */
81
+ contactName?: string | null;
82
+ /**
83
+ * Gets or sets the templates contact phone.
84
+ */
85
+ contactPhone?: string | null;
86
+ /**
87
+ * Gets or sets the templates contact email.
88
+ */
89
+ contactEmail?: string | null;
90
+ /**
91
+ * Gets or sets the order confirmation text.
92
+ */
93
+ orderConfimationText?: string | null;
94
+ /**
95
+ * Gets or sets the order post completion text.
96
+ */
97
+ postCompletionSubject?: string | null;
98
+ /**
99
+ * Gets or sets the order post completion text.
100
+ */
101
+ postCompletionText?: string | null;
102
+ /**
103
+ * Gets or sets the templates referenced offers.
104
+ */
105
+ offers?: Array<CreateOffer> | null;
106
+ };
@@ -0,0 +1,25 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ import type { CreateTemplateDetail } from './CreateTemplateDetail';
7
+
8
+ /**
9
+ * Post model for template creation.
10
+ */
11
+ export type TemplateCreate = {
12
+ /**
13
+ * Gets or sets the tenant Id.
14
+ */
15
+ tenantId: string;
16
+ /**
17
+ * Gets or sets the template name.
18
+ */
19
+ name: string;
20
+ /**
21
+ * Gets or sets the template image url.
22
+ */
23
+ imageUrl: string;
24
+ detail?: CreateTemplateDetail;
25
+ };
@@ -3,6 +3,9 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
 
6
+ import type { Gender } from './Gender';
7
+ import type { TemplateOffer } from './TemplateOffer';
8
+
6
9
  /**
7
10
  * Post model for template detail updates.
8
11
  */
@@ -16,15 +19,96 @@ export type TemplateDetailPatch = {
16
19
  */
17
20
  id: string;
18
21
  /**
19
- * Gets or sets the template name.
22
+ * Gets or sets the templates venue id.
23
+ */
24
+ venueId?: string | null;
25
+ /**
26
+ * Gets or sets the templates activity id.
27
+ */
28
+ activityId?: number | null;
29
+ /**
30
+ * Gets or sets the templates programme id.
31
+ */
32
+ programmeId?: string | null;
33
+ /**
34
+ * Gets or sets the templates post completion survey id.
35
+ */
36
+ postCompletionSurveyId?: string | null;
37
+ /**
38
+ * Gets or sets the templates survey id.
39
+ */
40
+ surveyId?: string | null;
41
+ /**
42
+ * Gets or sets the templates name.
43
+ */
44
+ name?: string | null;
45
+ /**
46
+ * Gets or sets the templates description.
47
+ */
48
+ description?: string | null;
49
+ /**
50
+ * Gets or sets the templates image url.
51
+ */
52
+ imageUrl?: string | null;
53
+ /**
54
+ * Gets or sets the templates meeting instructions.
55
+ */
56
+ meetingInstructions?: string | null;
57
+ /**
58
+ * Gets or sets the templates equipment required.
59
+ */
60
+ equipmentRequired?: string | null;
61
+ /**
62
+ * Gets or sets the templates capacity.
63
+ */
64
+ capacity?: number | null;
65
+ /**
66
+ * Gets or sets a value indicating whether the template has unlimited capacity.
67
+ */
68
+ capacityUnlimited?: boolean | null;
69
+ gender?: Gender;
70
+ /**
71
+ * Gets or sets the templates min age.
72
+ */
73
+ minAge?: number | null;
74
+ /**
75
+ * Gets or sets the templates max age.
76
+ */
77
+ maxAge?: number | null;
78
+ /**
79
+ * Gets or sets a value indicating whether there is an age restriction.
80
+ */
81
+ noAgeRestriction?: boolean;
82
+ /**
83
+ * Gets or sets the templates additional support options.
84
+ */
85
+ additionalSupport?: Array<string> | null;
86
+ /**
87
+ * Gets or sets the templates contact name.
88
+ */
89
+ contactName?: string | null;
90
+ /**
91
+ * Gets or sets the templates contact phone.
92
+ */
93
+ contactPhone?: string | null;
94
+ /**
95
+ * Gets or sets the templates contact email.
96
+ */
97
+ contactEmail?: string | null;
98
+ /**
99
+ * Gets or sets the order confirmation text.
100
+ */
101
+ orderConfimationText?: string | null;
102
+ /**
103
+ * Gets or sets the order post completion text.
20
104
  */
21
- name: string;
105
+ postCompletionSubject?: string | null;
22
106
  /**
23
- * Gets or sets the template description.
107
+ * Gets or sets the order post completion text.
24
108
  */
25
- description: string;
109
+ postCompletionText?: string | null;
26
110
  /**
27
- * Gets or sets the template image url.
111
+ * Gets or sets the templates referenced offers.
28
112
  */
29
- imageUrl: string;
113
+ offers?: Array<TemplateOffer> | null;
30
114
  };
@@ -4,6 +4,7 @@
4
4
  /* eslint-disable */
5
5
  import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
6
6
  import type { Template } from '../models/Template';
7
+ import type { TemplateCreate } from '../models/TemplateCreate';
7
8
  import type { TemplateDuplicatePost } from '../models/TemplateDuplicatePost';
8
9
  import type { TemplatePage } from '../models/TemplatePage';
9
10
  import type { TemplatePatch } from '../models/TemplatePatch';
@@ -77,6 +78,32 @@ export class TemplatesService {
77
78
  });
78
79
  }
79
80
 
81
+ /**
82
+ * Creates a template.
83
+ * @returns Template Success
84
+ * @throws ApiError
85
+ */
86
+ public create({
87
+ requestBody,
88
+ }: {
89
+ /**
90
+ * The template to be created.
91
+ */
92
+ requestBody?: TemplateCreate;
93
+ }): CancelablePromise<Template> {
94
+ return this.httpRequest.request({
95
+ method: 'POST',
96
+ url: '/api/templates/create',
97
+ body: requestBody,
98
+ mediaType: 'application/json',
99
+ errors: {
100
+ 400: `Bad Request`,
101
+ 422: `Client Error`,
102
+ 500: `Server Error`,
103
+ },
104
+ });
105
+ }
106
+
80
107
  /**
81
108
  * Gets the resource by its Id.
82
109
  * @returns Template Success
@@ -137,6 +164,7 @@ export class TemplatesService {
137
164
  * @throws ApiError
138
165
  */
139
166
  public exists({
167
+ ids,
140
168
  pageNumber,
141
169
  take,
142
170
  limitListRequests,
@@ -148,6 +176,10 @@ export class TemplatesService {
148
176
  isLive,
149
177
  sortOrderDirection,
150
178
  }: {
179
+ /**
180
+ * Gets or sets the queryable template ids.
181
+ */
182
+ ids?: Array<string>;
151
183
  /**
152
184
  * Gets or sets the page number for paged queries.
153
185
  */
@@ -193,6 +225,7 @@ export class TemplatesService {
193
225
  method: 'GET',
194
226
  url: '/api/templates/exists',
195
227
  query: {
228
+ Ids: ids,
196
229
  PageNumber: pageNumber,
197
230
  Take: take,
198
231
  LimitListRequests: limitListRequests,
@@ -218,6 +251,7 @@ export class TemplatesService {
218
251
  * @throws ApiError
219
252
  */
220
253
  public getPage({
254
+ ids,
221
255
  pageNumber,
222
256
  take,
223
257
  limitListRequests,
@@ -229,6 +263,10 @@ export class TemplatesService {
229
263
  isLive,
230
264
  sortOrderDirection,
231
265
  }: {
266
+ /**
267
+ * Gets or sets the queryable template ids.
268
+ */
269
+ ids?: Array<string>;
232
270
  /**
233
271
  * Gets or sets the page number for paged queries.
234
272
  */
@@ -274,6 +312,7 @@ export class TemplatesService {
274
312
  method: 'GET',
275
313
  url: '/api/templates',
276
314
  query: {
315
+ Ids: ids,
277
316
  PageNumber: pageNumber,
278
317
  Take: take,
279
318
  LimitListRequests: limitListRequests,
@@ -325,6 +364,7 @@ export class TemplatesService {
325
364
  * @throws ApiError
326
365
  */
327
366
  public getListWithoutReferences({
367
+ ids,
328
368
  pageNumber,
329
369
  take,
330
370
  limitListRequests,
@@ -336,6 +376,10 @@ export class TemplatesService {
336
376
  isLive,
337
377
  sortOrderDirection,
338
378
  }: {
379
+ /**
380
+ * Gets or sets the queryable template ids.
381
+ */
382
+ ids?: Array<string>;
339
383
  /**
340
384
  * Gets or sets the page number for paged queries.
341
385
  */
@@ -381,6 +425,7 @@ export class TemplatesService {
381
425
  method: 'GET',
382
426
  url: '/api/templates/without-references',
383
427
  query: {
428
+ Ids: ids,
384
429
  PageNumber: pageNumber,
385
430
  Take: take,
386
431
  LimitListRequests: limitListRequests,
@@ -406,6 +451,7 @@ export class TemplatesService {
406
451
  * @throws ApiError
407
452
  */
408
453
  public getListIdName({
454
+ ids,
409
455
  pageNumber,
410
456
  take,
411
457
  limitListRequests,
@@ -417,6 +463,10 @@ export class TemplatesService {
417
463
  isLive,
418
464
  sortOrderDirection,
419
465
  }: {
466
+ /**
467
+ * Gets or sets the queryable template ids.
468
+ */
469
+ ids?: Array<string>;
420
470
  /**
421
471
  * Gets or sets the page number for paged queries.
422
472
  */
@@ -462,6 +512,7 @@ export class TemplatesService {
462
512
  method: 'GET',
463
513
  url: '/api/templates/id-name',
464
514
  query: {
515
+ Ids: ids,
465
516
  PageNumber: pageNumber,
466
517
  Take: take,
467
518
  LimitListRequests: limitListRequests,