reach-api-sdk 1.0.56 → 1.0.58

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.
@@ -27975,6 +27975,20 @@ type Template = {
27975
27975
  details?: TemplateDetail;
27976
27976
  };
27977
27977
 
27978
+ /**
27979
+ * Post model for duplicating a template.
27980
+ */
27981
+ type TemplateDuplicatePost = {
27982
+ /**
27983
+ * Gets or sets the tenant Id.
27984
+ */
27985
+ tenantId: string;
27986
+ /**
27987
+ * Gets or sets the template name.
27988
+ */
27989
+ name: string;
27990
+ };
27991
+
27978
27992
  type TemplatePage = {
27979
27993
  pagination: Pagination;
27980
27994
  readonly items: Array<Template>;
@@ -28024,6 +28038,21 @@ type TemplatePost = {
28024
28038
  declare class TemplatesService {
28025
28039
  readonly httpRequest: BaseHttpRequest;
28026
28040
  constructor(httpRequest: BaseHttpRequest);
28041
+ /**
28042
+ * Duplicates a template.
28043
+ * @returns Template Success
28044
+ * @throws ApiError
28045
+ */
28046
+ duplicate({ id, requestBody, }: {
28047
+ /**
28048
+ * The template id.
28049
+ */
28050
+ id: string;
28051
+ /**
28052
+ * The post body.
28053
+ */
28054
+ requestBody?: TemplateDuplicatePost;
28055
+ }): CancelablePromise<Template>;
28027
28056
  /**
28028
28057
  * Gets the resource by its Id.
28029
28058
  * @returns Template Success
@@ -28303,6 +28332,10 @@ type DatabaseState = {
28303
28332
  * Gets or sets a value indicating whether slot database records exist.
28304
28333
  */
28305
28334
  slotsExist: boolean;
28335
+ /**
28336
+ * Gets or sets a value indicating whether template database records exist.
28337
+ */
28338
+ templatesExist: boolean;
28306
28339
  };
28307
28340
 
28308
28341
  declare class TenantsService {
@@ -31581,4 +31614,4 @@ type ValidationResultModel = {
31581
31614
  readonly errors?: Array<ValidationError> | null;
31582
31615
  };
31583
31616
 
31584
- 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, CreateOffer, CreateQuestion, CreateQuestionOption, CreateVenue, Customer, CustomerCancellationOption, 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, 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, PatchSurveyQuestionOption, 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, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundStatus, ScheduleStatus, ScheduledSession, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, 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, SurveyQuestionPost, SurveyQuestionType, SurveyQuestionsService, SurveyQuestionsTarget, SurveyReportExtended, SurveyReportExtendedPage, SurveyReportExtendedPatch, SurveyReportExtendedPost, SurveyReportExtendedService, SurveyResponseMode, SurveySubmissionModel, SurveySubmit, SurveySubmitAttendee, SurveySubmitQuestions, SurveyType, SurveysService, Tax, Template, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, 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, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityService };
31617
+ 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, CreateOffer, CreateQuestion, CreateQuestionOption, CreateVenue, Customer, CustomerCancellationOption, 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, 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, PatchSurveyQuestionOption, 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, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundStatus, ScheduleStatus, ScheduledSession, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, 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, SurveyQuestionPost, 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, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, 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, 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
@@ -21323,6 +21323,30 @@ const request = (config, options, axiosClient = axios) => {
21323
21323
  constructor(httpRequest) {
21324
21324
  this.httpRequest = httpRequest;
21325
21325
  }
21326
+ /**
21327
+ * Duplicates a template.
21328
+ * @returns Template Success
21329
+ * @throws ApiError
21330
+ */
21331
+ duplicate({
21332
+ id,
21333
+ requestBody
21334
+ }) {
21335
+ return this.httpRequest.request({
21336
+ method: "POST",
21337
+ url: "/api/templates/{id}/duplicate",
21338
+ path: {
21339
+ id
21340
+ },
21341
+ body: requestBody,
21342
+ mediaType: "application/json",
21343
+ errors: {
21344
+ 400: `Bad Request`,
21345
+ 422: `Client Error`,
21346
+ 500: `Server Error`
21347
+ }
21348
+ });
21349
+ }
21326
21350
  /**
21327
21351
  * Gets the resource by its Id.
21328
21352
  * @returns Template Success
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -62053,6 +62053,81 @@ paths:
62053
62053
  text/json:
62054
62054
  schema:
62055
62055
  $ref: '#/components/schemas/ValidationResultModel'
62056
+ '/api/templates/{id}/duplicate':
62057
+ post:
62058
+ tags:
62059
+ - Templates
62060
+ summary: Duplicates a template.
62061
+ operationId: Duplicate
62062
+ parameters:
62063
+ - name: id
62064
+ in: path
62065
+ description: The template id.
62066
+ required: true
62067
+ schema:
62068
+ type: string
62069
+ format: uuid
62070
+ requestBody:
62071
+ description: The post body.
62072
+ content:
62073
+ application/json:
62074
+ schema:
62075
+ $ref: '#/components/schemas/TemplateDuplicatePost'
62076
+ text/json:
62077
+ schema:
62078
+ $ref: '#/components/schemas/TemplateDuplicatePost'
62079
+ application/*+json:
62080
+ schema:
62081
+ $ref: '#/components/schemas/TemplateDuplicatePost'
62082
+ responses:
62083
+ '200':
62084
+ description: Success
62085
+ content:
62086
+ text/plain:
62087
+ schema:
62088
+ $ref: '#/components/schemas/Template'
62089
+ application/json:
62090
+ schema:
62091
+ $ref: '#/components/schemas/Template'
62092
+ text/json:
62093
+ schema:
62094
+ $ref: '#/components/schemas/Template'
62095
+ '400':
62096
+ description: Bad Request
62097
+ content:
62098
+ text/plain:
62099
+ schema:
62100
+ $ref: '#/components/schemas/ReachError'
62101
+ application/json:
62102
+ schema:
62103
+ $ref: '#/components/schemas/ReachError'
62104
+ text/json:
62105
+ schema:
62106
+ $ref: '#/components/schemas/ReachError'
62107
+ '500':
62108
+ description: Server Error
62109
+ content:
62110
+ text/plain:
62111
+ schema:
62112
+ $ref: '#/components/schemas/ReachError'
62113
+ application/json:
62114
+ schema:
62115
+ $ref: '#/components/schemas/ReachError'
62116
+ text/json:
62117
+ schema:
62118
+ $ref: '#/components/schemas/ReachError'
62119
+ '422':
62120
+ description: Client Error
62121
+ content:
62122
+ text/plain:
62123
+ schema:
62124
+ $ref: '#/components/schemas/ValidationResultModel'
62125
+ application/json:
62126
+ schema:
62127
+ $ref: '#/components/schemas/ValidationResultModel'
62128
+ text/json:
62129
+ schema:
62130
+ $ref: '#/components/schemas/ValidationResultModel'
62056
62131
  '/api/templates/{id}':
62057
62132
  get:
62058
62133
  tags:
@@ -80351,6 +80426,22 @@ components:
80351
80426
  format: uri
80352
80427
  additionalProperties: false
80353
80428
  description: Post model for template detail inserts.
80429
+ TemplateDuplicatePost:
80430
+ required:
80431
+ - name
80432
+ - tenantId
80433
+ type: object
80434
+ properties:
80435
+ tenantId:
80436
+ type: string
80437
+ description: Gets or sets the tenant Id.
80438
+ format: uuid
80439
+ name:
80440
+ minLength: 1
80441
+ type: string
80442
+ description: Gets or sets the template name.
80443
+ additionalProperties: false
80444
+ description: Post model for duplicating a template.
80354
80445
  TemplateFromPost:
80355
80446
  required:
80356
80447
  - name
package/src/index.ts CHANGED
@@ -258,6 +258,7 @@ export type { TemplateDetail } from './models/TemplateDetail';
258
258
  export type { TemplateDetailPage } from './models/TemplateDetailPage';
259
259
  export type { TemplateDetailPatch } from './models/TemplateDetailPatch';
260
260
  export type { TemplateDetailPost } from './models/TemplateDetailPost';
261
+ export type { TemplateDuplicatePost } from './models/TemplateDuplicatePost';
261
262
  export type { TemplateFromPost } from './models/TemplateFromPost';
262
263
  export type { TemplateOffer } from './models/TemplateOffer';
263
264
  export type { TemplateOfferPage } from './models/TemplateOfferPage';
@@ -51,4 +51,8 @@ export type DatabaseState = {
51
51
  * Gets or sets a value indicating whether slot database records exist.
52
52
  */
53
53
  slotsExist: boolean;
54
+ /**
55
+ * Gets or sets a value indicating whether template database records exist.
56
+ */
57
+ templatesExist: boolean;
54
58
  };
@@ -0,0 +1,18 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Post model for duplicating a template.
8
+ */
9
+ export type TemplateDuplicatePost = {
10
+ /**
11
+ * Gets or sets the tenant Id.
12
+ */
13
+ tenantId: string;
14
+ /**
15
+ * Gets or sets the template name.
16
+ */
17
+ name: string;
18
+ };
@@ -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 { TemplateDuplicatePost } from '../models/TemplateDuplicatePost';
7
8
  import type { TemplatePage } from '../models/TemplatePage';
8
9
  import type { TemplatePatch } from '../models/TemplatePatch';
9
10
  import type { TemplatePost } from '../models/TemplatePost';
@@ -14,6 +15,40 @@ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
14
15
  export class TemplatesService {
15
16
  constructor(public readonly httpRequest: BaseHttpRequest) {}
16
17
 
18
+ /**
19
+ * Duplicates a template.
20
+ * @returns Template Success
21
+ * @throws ApiError
22
+ */
23
+ public duplicate({
24
+ id,
25
+ requestBody,
26
+ }: {
27
+ /**
28
+ * The template id.
29
+ */
30
+ id: string;
31
+ /**
32
+ * The post body.
33
+ */
34
+ requestBody?: TemplateDuplicatePost;
35
+ }): CancelablePromise<Template> {
36
+ return this.httpRequest.request({
37
+ method: 'POST',
38
+ url: '/api/templates/{id}/duplicate',
39
+ path: {
40
+ id: id,
41
+ },
42
+ body: requestBody,
43
+ mediaType: 'application/json',
44
+ errors: {
45
+ 400: `Bad Request`,
46
+ 422: `Client Error`,
47
+ 500: `Server Error`,
48
+ },
49
+ });
50
+ }
51
+
17
52
  /**
18
53
  * Gets the resource by its Id.
19
54
  * @returns Template Success