reach-api-sdk 1.0.70 → 1.0.71

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.
@@ -6832,6 +6832,24 @@ declare class CourseSessionSchedulesService {
6832
6832
  }): CancelablePromise<boolean>;
6833
6833
  }
6834
6834
 
6835
+ /**
6836
+ * Post model for emailing the customer.
6837
+ */
6838
+ type CustomerEmailPatch = {
6839
+ /**
6840
+ * Gets or sets the tenant Id.
6841
+ */
6842
+ tenantId: string;
6843
+ /**
6844
+ * Gets or sets the Id.
6845
+ */
6846
+ id: string;
6847
+ /**
6848
+ * Gets or sets the message body.
6849
+ */
6850
+ message?: string | null;
6851
+ };
6852
+
6835
6853
  type CustomerPage = {
6836
6854
  pagination: Pagination;
6837
6855
  readonly items: Array<Customer>;
@@ -6958,6 +6976,21 @@ type CustomerPost = {
6958
6976
  declare class CustomersService {
6959
6977
  readonly httpRequest: BaseHttpRequest;
6960
6978
  constructor(httpRequest: BaseHttpRequest);
6979
+ /**
6980
+ * Emails the customer />.
6981
+ * @returns any Success
6982
+ * @throws ApiError
6983
+ */
6984
+ sendEmail({ customerId, requestBody, }: {
6985
+ /**
6986
+ * The order Id.
6987
+ */
6988
+ customerId: string;
6989
+ /**
6990
+ * The patch model.
6991
+ */
6992
+ requestBody?: CustomerEmailPatch;
6993
+ }): CancelablePromise<any>;
6961
6994
  /**
6962
6995
  * Gets the customer with added stats.
6963
6996
  * @returns Customer Success
@@ -13429,10 +13462,6 @@ declare class OrderItemsService {
13429
13462
  }): CancelablePromise<boolean>;
13430
13463
  }
13431
13464
 
13432
- type OkResult = {
13433
- statusCode?: number;
13434
- };
13435
-
13436
13465
  /**
13437
13466
  * Post model for scheduled session rescheduling updates.
13438
13467
  */
@@ -13509,7 +13538,7 @@ declare class OrdersService {
13509
13538
  }): CancelablePromise<Order>;
13510
13539
  /**
13511
13540
  * Emails the order customer />.
13512
- * @returns OkResult Success
13541
+ * @returns any Success
13513
13542
  * @throws ApiError
13514
13543
  */
13515
13544
  sendEmail({ orderId, requestBody, }: {
@@ -13521,7 +13550,7 @@ declare class OrdersService {
13521
13550
  * The patch model.
13522
13551
  */
13523
13552
  requestBody?: OrderEmailCustomerPatch;
13524
- }): CancelablePromise<OkResult>;
13553
+ }): CancelablePromise<any>;
13525
13554
  /**
13526
13555
  * Requests a refund for the order.
13527
13556
  * @returns Order Success
@@ -32410,4 +32439,4 @@ type ValidationResultModel = {
32410
32439
  readonly errors?: Array<ValidationError> | null;
32411
32440
  };
32412
32441
 
32413
- 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, OkResult, 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, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, 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, 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 };
32442
+ 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, 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, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, 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, 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
@@ -3090,6 +3090,30 @@ const request = (config, options, axiosClient = axios) => {
3090
3090
  constructor(httpRequest) {
3091
3091
  this.httpRequest = httpRequest;
3092
3092
  }
3093
+ /**
3094
+ * Emails the customer />.
3095
+ * @returns any Success
3096
+ * @throws ApiError
3097
+ */
3098
+ sendEmail({
3099
+ customerId,
3100
+ requestBody
3101
+ }) {
3102
+ return this.httpRequest.request({
3103
+ method: "PATCH",
3104
+ url: "/api/customers/{customerId}/send-email",
3105
+ path: {
3106
+ customerId
3107
+ },
3108
+ body: requestBody,
3109
+ mediaType: "application/json",
3110
+ errors: {
3111
+ 400: `Bad Request`,
3112
+ 422: `Client Error`,
3113
+ 500: `Server Error`
3114
+ }
3115
+ });
3116
+ }
3093
3117
  /**
3094
3118
  * Gets the customer with added stats.
3095
3119
  * @returns Customer Success
@@ -8525,7 +8549,7 @@ const request = (config, options, axiosClient = axios) => {
8525
8549
  }
8526
8550
  /**
8527
8551
  * Emails the order customer />.
8528
- * @returns OkResult Success
8552
+ * @returns any Success
8529
8553
  * @throws ApiError
8530
8554
  */
8531
8555
  sendEmail({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8168,6 +8168,71 @@ paths:
8168
8168
  text/json:
8169
8169
  schema:
8170
8170
  $ref: '#/components/schemas/ValidationResultModel'
8171
+ '/api/customers/{customerId}/send-email':
8172
+ patch:
8173
+ tags:
8174
+ - Customers
8175
+ summary: Emails the customer />.
8176
+ operationId: SendEmail
8177
+ parameters:
8178
+ - name: customerId
8179
+ in: path
8180
+ description: The order Id.
8181
+ required: true
8182
+ schema:
8183
+ type: string
8184
+ format: uuid
8185
+ requestBody:
8186
+ description: The patch model.
8187
+ content:
8188
+ application/json:
8189
+ schema:
8190
+ $ref: '#/components/schemas/CustomerEmailPatch'
8191
+ text/json:
8192
+ schema:
8193
+ $ref: '#/components/schemas/CustomerEmailPatch'
8194
+ application/*+json:
8195
+ schema:
8196
+ $ref: '#/components/schemas/CustomerEmailPatch'
8197
+ responses:
8198
+ '200':
8199
+ description: Success
8200
+ '400':
8201
+ description: Bad Request
8202
+ content:
8203
+ text/plain:
8204
+ schema:
8205
+ $ref: '#/components/schemas/ReachError'
8206
+ application/json:
8207
+ schema:
8208
+ $ref: '#/components/schemas/ReachError'
8209
+ text/json:
8210
+ schema:
8211
+ $ref: '#/components/schemas/ReachError'
8212
+ '500':
8213
+ description: Server Error
8214
+ content:
8215
+ text/plain:
8216
+ schema:
8217
+ $ref: '#/components/schemas/ReachError'
8218
+ application/json:
8219
+ schema:
8220
+ $ref: '#/components/schemas/ReachError'
8221
+ text/json:
8222
+ schema:
8223
+ $ref: '#/components/schemas/ReachError'
8224
+ '422':
8225
+ description: Client Error
8226
+ content:
8227
+ text/plain:
8228
+ schema:
8229
+ $ref: '#/components/schemas/ValidationResultModel'
8230
+ application/json:
8231
+ schema:
8232
+ $ref: '#/components/schemas/ValidationResultModel'
8233
+ text/json:
8234
+ schema:
8235
+ $ref: '#/components/schemas/ValidationResultModel'
8171
8236
  '/api/customers/{id}/with-stats':
8172
8237
  get:
8173
8238
  tags:
@@ -24616,16 +24681,6 @@ paths:
24616
24681
  responses:
24617
24682
  '200':
24618
24683
  description: Success
24619
- content:
24620
- text/plain:
24621
- schema:
24622
- $ref: '#/components/schemas/OkResult'
24623
- application/json:
24624
- schema:
24625
- $ref: '#/components/schemas/OkResult'
24626
- text/json:
24627
- schema:
24628
- $ref: '#/components/schemas/OkResult'
24629
24684
  '400':
24630
24685
  description: Bad Request
24631
24686
  content:
@@ -75372,6 +75427,26 @@ components:
75372
75427
  - Undetermined
75373
75428
  type: string
75374
75429
  description: Controls the customer cancellation options.
75430
+ CustomerEmailPatch:
75431
+ required:
75432
+ - id
75433
+ - tenantId
75434
+ type: object
75435
+ properties:
75436
+ tenantId:
75437
+ type: string
75438
+ description: Gets or sets the tenant Id.
75439
+ format: uuid
75440
+ id:
75441
+ type: string
75442
+ description: Gets or sets the Id.
75443
+ format: uuid
75444
+ message:
75445
+ type: string
75446
+ description: Gets or sets the message body.
75447
+ nullable: true
75448
+ additionalProperties: false
75449
+ description: Post model for emailing the customer.
75375
75450
  CustomerPage:
75376
75451
  required:
75377
75452
  - items
@@ -77364,14 +77439,6 @@ components:
77364
77439
  nullable: true
77365
77440
  additionalProperties: false
77366
77441
  description: Post model for offer inserts.
77367
- OkResult:
77368
- type: object
77369
- properties:
77370
- statusCode:
77371
- type: integer
77372
- format: int32
77373
- default: 0
77374
- additionalProperties: false
77375
77442
  OpenactiveFeedIntermediate:
77376
77443
  required:
77377
77444
  - dateCreated
package/src/index.ts CHANGED
@@ -48,6 +48,7 @@ export type { CreateQuestionOption } from './models/CreateQuestionOption';
48
48
  export type { CreateVenue } from './models/CreateVenue';
49
49
  export type { Customer } from './models/Customer';
50
50
  export { CustomerCancellationOption } from './models/CustomerCancellationOption';
51
+ export type { CustomerEmailPatch } from './models/CustomerEmailPatch';
51
52
  export type { CustomerPage } from './models/CustomerPage';
52
53
  export type { CustomerPatch } from './models/CustomerPatch';
53
54
  export type { CustomerPost } from './models/CustomerPost';
@@ -110,7 +111,6 @@ export type { Offer } from './models/Offer';
110
111
  export type { OfferPage } from './models/OfferPage';
111
112
  export type { OfferPatch } from './models/OfferPatch';
112
113
  export type { OfferPost } from './models/OfferPost';
113
- export type { OkResult } from './models/OkResult';
114
114
  export type { OpenactiveFeedIntermediate } from './models/OpenactiveFeedIntermediate';
115
115
  export type { OpenactiveFeedIntermediatePage } from './models/OpenactiveFeedIntermediatePage';
116
116
  export type { OpenactiveFeedIntermediatePatch } from './models/OpenactiveFeedIntermediatePatch';
@@ -0,0 +1,22 @@
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 emailing the customer.
8
+ */
9
+ export type CustomerEmailPatch = {
10
+ /**
11
+ * Gets or sets the tenant Id.
12
+ */
13
+ tenantId: string;
14
+ /**
15
+ * Gets or sets the Id.
16
+ */
17
+ id: string;
18
+ /**
19
+ * Gets or sets the message body.
20
+ */
21
+ message?: string | null;
22
+ };
@@ -3,6 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { Customer } from '../models/Customer';
6
+ import type { CustomerEmailPatch } from '../models/CustomerEmailPatch';
6
7
  import type { CustomerPage } from '../models/CustomerPage';
7
8
  import type { CustomerPatch } from '../models/CustomerPatch';
8
9
  import type { CustomerPost } from '../models/CustomerPost';
@@ -14,6 +15,40 @@ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
14
15
  export class CustomersService {
15
16
  constructor(public readonly httpRequest: BaseHttpRequest) {}
16
17
 
18
+ /**
19
+ * Emails the customer />.
20
+ * @returns any Success
21
+ * @throws ApiError
22
+ */
23
+ public sendEmail({
24
+ customerId,
25
+ requestBody,
26
+ }: {
27
+ /**
28
+ * The order Id.
29
+ */
30
+ customerId: string;
31
+ /**
32
+ * The patch model.
33
+ */
34
+ requestBody?: CustomerEmailPatch;
35
+ }): CancelablePromise<any> {
36
+ return this.httpRequest.request({
37
+ method: 'PATCH',
38
+ url: '/api/customers/{customerId}/send-email',
39
+ path: {
40
+ customerId: customerId,
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 customer with added stats.
19
54
  * @returns Customer Success
@@ -2,7 +2,6 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
- import type { OkResult } from '../models/OkResult';
6
5
  import type { Order } from '../models/Order';
7
6
  import type { OrderEmailCustomerPatch } from '../models/OrderEmailCustomerPatch';
8
7
  import type { OrderPage } from '../models/OrderPage';
@@ -54,7 +53,7 @@ export class OrdersService {
54
53
 
55
54
  /**
56
55
  * Emails the order customer />.
57
- * @returns OkResult Success
56
+ * @returns any Success
58
57
  * @throws ApiError
59
58
  */
60
59
  public sendEmail({
@@ -69,7 +68,7 @@ export class OrdersService {
69
68
  * The patch model.
70
69
  */
71
70
  requestBody?: OrderEmailCustomerPatch;
72
- }): CancelablePromise<OkResult> {
71
+ }): CancelablePromise<any> {
73
72
  return this.httpRequest.request({
74
73
  method: 'PATCH',
75
74
  url: '/api/orders/{orderId}/send-email',
@@ -1,8 +0,0 @@
1
- /* generated using openapi-typescript-codegen -- do no edit */
2
- /* istanbul ignore file */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
-
6
- export type OkResult = {
7
- statusCode?: number;
8
- };