reach-api-sdk 1.0.106 → 1.0.107

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.
@@ -34274,6 +34274,20 @@ type SurveyCreate = {
34274
34274
  questions: Array<CreateQuestion>;
34275
34275
  };
34276
34276
 
34277
+ /**
34278
+ * Post model for duplicating a survey.
34279
+ */
34280
+ type SurveyDuplicatePost = {
34281
+ /**
34282
+ * Gets or sets the tenant Id.
34283
+ */
34284
+ tenantId: string;
34285
+ /**
34286
+ * Gets or sets the survey name.
34287
+ */
34288
+ name: string;
34289
+ };
34290
+
34277
34291
  declare class SurveysService {
34278
34292
  readonly httpRequest: BaseHttpRequest;
34279
34293
  constructor(httpRequest: BaseHttpRequest);
@@ -34288,6 +34302,21 @@ declare class SurveysService {
34288
34302
  */
34289
34303
  requestBody?: SurveyCreate;
34290
34304
  }): CancelablePromise<Survey>;
34305
+ /**
34306
+ * Duplicates a survey.
34307
+ * @returns Survey Success
34308
+ * @throws ApiError
34309
+ */
34310
+ duplicate({ id, requestBody, }: {
34311
+ /**
34312
+ * The survey id.
34313
+ */
34314
+ id: string;
34315
+ /**
34316
+ * The post body.
34317
+ */
34318
+ requestBody?: SurveyDuplicatePost;
34319
+ }): CancelablePromise<Survey>;
34291
34320
  /**
34292
34321
  * Removes a survey.
34293
34322
  * @returns Survey Success
@@ -41767,4 +41796,4 @@ type ValidationResultModel = {
41767
41796
  readonly errors?: Array<ValidationError> | null;
41768
41797
  };
41769
41798
 
41770
- export { Activity, ActivityService, ActivityType, AddressComponent, 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, CourseEmailAttendeesPatch, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionReschedulePatch, 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, EnglandGolfReportService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImageLibraryCategory, ImageLibraryCategoryService, ImageLibraryImage, ImageLibraryImageService, ImagePage, ImagePatch, ImagePost, ImageUploadHistory, ImageUploadHistoryPage, ImageUploadHistoryPatch, ImageUploadHistoryPost, ImageUploadHistoryService, 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, OpportunityRegisterStatus, OpportunityType, Order, OrderEmailCustomerPatch, OrderItem, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPatchItem, 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, Performance, PerformancePage, PerformancePatch, PerformancePost, PerformanceService, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceAddress, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicFilestackWebhookService, PublicGenericActivityService, 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, UnsplashSearchResponse, UnsplashService, 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, WaitlistActivityReport, WaitlistActivityReportPage, WaitlistActivityReportPatch, WaitlistActivityReportPost, WaitlistActivityReportService, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityReport, WaitlistOpportunityReportPage, WaitlistOpportunityReportPatch, WaitlistOpportunityReportPost, WaitlistOpportunityReportService, WaitlistOpportunityService };
41799
+ export { Activity, ActivityService, ActivityType, AddressComponent, 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, CourseEmailAttendeesPatch, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionReschedulePatch, 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, EnglandGolfReportService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImageLibraryCategory, ImageLibraryCategoryService, ImageLibraryImage, ImageLibraryImageService, ImagePage, ImagePatch, ImagePost, ImageUploadHistory, ImageUploadHistoryPage, ImageUploadHistoryPatch, ImageUploadHistoryPost, ImageUploadHistoryService, 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, OpportunityRegisterStatus, OpportunityType, Order, OrderEmailCustomerPatch, OrderItem, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPatchItem, 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, Performance, PerformancePage, PerformancePatch, PerformancePost, PerformanceService, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceAddress, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicFilestackWebhookService, PublicGenericActivityService, 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, SurveyDuplicatePost, 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, UnsplashSearchResponse, UnsplashService, 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, WaitlistActivityReport, WaitlistActivityReportPage, WaitlistActivityReportPatch, WaitlistActivityReportPost, WaitlistActivityReportService, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityReport, WaitlistOpportunityReportPage, WaitlistOpportunityReportPatch, WaitlistOpportunityReportPost, WaitlistOpportunityReportService, WaitlistOpportunityService };
package/dist/reach-sdk.js CHANGED
@@ -25282,6 +25282,30 @@ const request = (config, options, axiosClient = axios) => {
25282
25282
  }
25283
25283
  });
25284
25284
  }
25285
+ /**
25286
+ * Duplicates a survey.
25287
+ * @returns Survey Success
25288
+ * @throws ApiError
25289
+ */
25290
+ duplicate({
25291
+ id,
25292
+ requestBody
25293
+ }) {
25294
+ return this.httpRequest.request({
25295
+ method: "POST",
25296
+ url: "/api/surveys/{id}/duplicate",
25297
+ path: {
25298
+ id
25299
+ },
25300
+ body: requestBody,
25301
+ mediaType: "application/json",
25302
+ errors: {
25303
+ 400: `Bad Request`,
25304
+ 422: `Client Error`,
25305
+ 500: `Server Error`
25306
+ }
25307
+ });
25308
+ }
25285
25309
  /**
25286
25310
  * Removes a survey.
25287
25311
  * @returns Survey Success
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.106",
3
+ "version": "1.0.107",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -73666,6 +73666,81 @@ paths:
73666
73666
  text/json:
73667
73667
  schema:
73668
73668
  $ref: '#/components/schemas/ValidationResultModel'
73669
+ '/api/surveys/{id}/duplicate':
73670
+ post:
73671
+ tags:
73672
+ - Surveys
73673
+ summary: Duplicates a survey.
73674
+ operationId: Duplicate
73675
+ parameters:
73676
+ - name: id
73677
+ in: path
73678
+ description: The survey id.
73679
+ required: true
73680
+ schema:
73681
+ type: string
73682
+ format: uuid
73683
+ requestBody:
73684
+ description: The post body.
73685
+ content:
73686
+ application/json:
73687
+ schema:
73688
+ $ref: '#/components/schemas/SurveyDuplicatePost'
73689
+ text/json:
73690
+ schema:
73691
+ $ref: '#/components/schemas/SurveyDuplicatePost'
73692
+ application/*+json:
73693
+ schema:
73694
+ $ref: '#/components/schemas/SurveyDuplicatePost'
73695
+ responses:
73696
+ '200':
73697
+ description: Success
73698
+ content:
73699
+ text/plain:
73700
+ schema:
73701
+ $ref: '#/components/schemas/Survey'
73702
+ application/json:
73703
+ schema:
73704
+ $ref: '#/components/schemas/Survey'
73705
+ text/json:
73706
+ schema:
73707
+ $ref: '#/components/schemas/Survey'
73708
+ '400':
73709
+ description: Bad Request
73710
+ content:
73711
+ text/plain:
73712
+ schema:
73713
+ $ref: '#/components/schemas/ReachError'
73714
+ application/json:
73715
+ schema:
73716
+ $ref: '#/components/schemas/ReachError'
73717
+ text/json:
73718
+ schema:
73719
+ $ref: '#/components/schemas/ReachError'
73720
+ '500':
73721
+ description: Server Error
73722
+ content:
73723
+ text/plain:
73724
+ schema:
73725
+ $ref: '#/components/schemas/ReachError'
73726
+ application/json:
73727
+ schema:
73728
+ $ref: '#/components/schemas/ReachError'
73729
+ text/json:
73730
+ schema:
73731
+ $ref: '#/components/schemas/ReachError'
73732
+ '422':
73733
+ description: Client Error
73734
+ content:
73735
+ text/plain:
73736
+ schema:
73737
+ $ref: '#/components/schemas/ValidationResultModel'
73738
+ application/json:
73739
+ schema:
73740
+ $ref: '#/components/schemas/ValidationResultModel'
73741
+ text/json:
73742
+ schema:
73743
+ $ref: '#/components/schemas/ValidationResultModel'
73669
73744
  '/api/surveys/{id}/remove':
73670
73745
  post:
73671
73746
  tags:
@@ -101294,6 +101369,22 @@ components:
101294
101369
  description: Gets or sets the questions list.
101295
101370
  additionalProperties: false
101296
101371
  description: Post model for survey inserts.
101372
+ SurveyDuplicatePost:
101373
+ required:
101374
+ - name
101375
+ - tenantId
101376
+ type: object
101377
+ properties:
101378
+ tenantId:
101379
+ type: string
101380
+ description: Gets or sets the tenant Id.
101381
+ format: uuid
101382
+ name:
101383
+ minLength: 1
101384
+ type: string
101385
+ description: Gets or sets the survey name.
101386
+ additionalProperties: false
101387
+ description: Post model for duplicating a survey.
101297
101388
  SurveyPage:
101298
101389
  required:
101299
101390
  - items
package/src/index.ts CHANGED
@@ -257,6 +257,7 @@ export type { SurveyCompletionLogPage } from './models/SurveyCompletionLogPage';
257
257
  export type { SurveyCompletionLogPatch } from './models/SurveyCompletionLogPatch';
258
258
  export type { SurveyCompletionLogPost } from './models/SurveyCompletionLogPost';
259
259
  export type { SurveyCreate } from './models/SurveyCreate';
260
+ export type { SurveyDuplicatePost } from './models/SurveyDuplicatePost';
260
261
  export type { SurveyPage } from './models/SurveyPage';
261
262
  export type { SurveyPatch } from './models/SurveyPatch';
262
263
  export type { SurveyPost } from './models/SurveyPost';
@@ -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 survey.
8
+ */
9
+ export type SurveyDuplicatePost = {
10
+ /**
11
+ * Gets or sets the tenant Id.
12
+ */
13
+ tenantId: string;
14
+ /**
15
+ * Gets or sets the survey name.
16
+ */
17
+ name: string;
18
+ };
@@ -6,6 +6,7 @@ import type { QuestionIndex } from '../models/QuestionIndex';
6
6
  import type { SearchSortOrderDirection } from '../models/SearchSortOrderDirection';
7
7
  import type { Survey } from '../models/Survey';
8
8
  import type { SurveyCreate } from '../models/SurveyCreate';
9
+ import type { SurveyDuplicatePost } from '../models/SurveyDuplicatePost';
9
10
  import type { SurveyPage } from '../models/SurveyPage';
10
11
  import type { SurveyPatch } from '../models/SurveyPatch';
11
12
  import type { SurveyPost } from '../models/SurveyPost';
@@ -43,6 +44,40 @@ export class SurveysService {
43
44
  });
44
45
  }
45
46
 
47
+ /**
48
+ * Duplicates a survey.
49
+ * @returns Survey Success
50
+ * @throws ApiError
51
+ */
52
+ public duplicate({
53
+ id,
54
+ requestBody,
55
+ }: {
56
+ /**
57
+ * The survey id.
58
+ */
59
+ id: string;
60
+ /**
61
+ * The post body.
62
+ */
63
+ requestBody?: SurveyDuplicatePost;
64
+ }): CancelablePromise<Survey> {
65
+ return this.httpRequest.request({
66
+ method: 'POST',
67
+ url: '/api/surveys/{id}/duplicate',
68
+ path: {
69
+ id: id,
70
+ },
71
+ body: requestBody,
72
+ mediaType: 'application/json',
73
+ errors: {
74
+ 400: `Bad Request`,
75
+ 422: `Client Error`,
76
+ 500: `Server Error`,
77
+ },
78
+ });
79
+ }
80
+
46
81
  /**
47
82
  * Removes a survey.
48
83
  * @returns Survey Success