ch-admin-api-client-typescript 5.28.0 → 5.30.14

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.
Files changed (38) hide show
  1. package/lib/api/email-webhooks-api.d.ts +266 -0
  2. package/lib/api/email-webhooks-api.d.ts.map +1 -0
  3. package/lib/api/email-webhooks-api.js +509 -0
  4. package/lib/api/patients-api.d.ts +46 -0
  5. package/lib/api/patients-api.d.ts.map +1 -1
  6. package/lib/api/patients-api.js +85 -0
  7. package/lib/api.d.ts +1 -0
  8. package/lib/api.d.ts.map +1 -1
  9. package/lib/api.js +1 -0
  10. package/lib/models/email-record-event-item-model.d.ts +158 -0
  11. package/lib/models/email-record-event-item-model.d.ts.map +1 -0
  12. package/lib/models/email-record-event-item-model.js +15 -0
  13. package/lib/models/email-record-model.d.ts +87 -0
  14. package/lib/models/email-record-model.d.ts.map +1 -0
  15. package/lib/models/email-record-model.js +15 -0
  16. package/lib/models/email-status.d.ts +35 -0
  17. package/lib/models/email-status.d.ts.map +1 -0
  18. package/lib/models/email-status.js +38 -0
  19. package/lib/models/index.d.ts +5 -0
  20. package/lib/models/index.d.ts.map +1 -1
  21. package/lib/models/index.js +5 -0
  22. package/lib/models/test-email-model.d.ts +25 -0
  23. package/lib/models/test-email-model.d.ts.map +1 -0
  24. package/lib/models/test-email-model.js +15 -0
  25. package/lib/models/test-email-webhook-command.d.ts +31 -0
  26. package/lib/models/test-email-webhook-command.d.ts.map +1 -0
  27. package/lib/models/test-email-webhook-command.js +15 -0
  28. package/package.json +1 -1
  29. package/src/.openapi-generator/FILES +6 -0
  30. package/src/api/email-webhooks-api.ts +480 -0
  31. package/src/api/patients-api.ts +85 -0
  32. package/src/api.ts +1 -0
  33. package/src/models/email-record-event-item-model.ts +165 -0
  34. package/src/models/email-record-model.ts +96 -0
  35. package/src/models/email-status.ts +44 -0
  36. package/src/models/index.ts +5 -0
  37. package/src/models/test-email-model.ts +30 -0
  38. package/src/models/test-email-webhook-command.ts +36 -0
@@ -0,0 +1,31 @@
1
+ /**
2
+ * CloudHospital Admin Api
3
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 1
6
+ * Contact: developer@icloudhospital.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TestEmailWebhookCommand
16
+ */
17
+ export interface TestEmailWebhookCommand {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TestEmailWebhookCommand
22
+ */
23
+ 'email'?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TestEmailWebhookCommand
28
+ */
29
+ 'name'?: string | null;
30
+ }
31
+ //# sourceMappingURL=test-email-webhook-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-email-webhook-command.d.ts","sourceRoot":"","sources":["../../src/models/test-email-webhook-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CloudHospital Admin Api
6
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 1
9
+ * Contact: developer@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "5.28.0",
3
+ "version": "5.30.14",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -22,6 +22,7 @@ api/dev-supports-api.ts
22
22
  api/doctor-affiliations-api.ts
23
23
  api/doctors-api.ts
24
24
  api/email-marketings-api.ts
25
+ api/email-webhooks-api.ts
25
26
  api/faq-categories-api.ts
26
27
  api/faqs-api.ts
27
28
  api/grades-api.ts
@@ -262,6 +263,9 @@ models/doctor-specialty-model.ts
262
263
  models/doctors-model.ts
263
264
  models/doctors-simple-model.ts
264
265
  models/duration.ts
266
+ models/email-record-event-item-model.ts
267
+ models/email-record-model.ts
268
+ models/email-status.ts
265
269
  models/faq-categories-model.ts
266
270
  models/faq-category-item-model.ts
267
271
  models/faq-category-model.ts
@@ -505,6 +509,8 @@ models/tags-model.ts
505
509
  models/template-version-item-model.ts
506
510
  models/template-version-model.ts
507
511
  models/template-versions-model.ts
512
+ models/test-email-model.ts
513
+ models/test-email-webhook-command.ts
508
514
  models/text-message.ts
509
515
  models/translate-about-us-page-command.ts
510
516
  models/translate-all-options.ts
@@ -0,0 +1,480 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * CloudHospital Admin Api
5
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: developer@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { EmailRecordModel } from '../models';
25
+ // @ts-ignore
26
+ import { EmailStatus } from '../models';
27
+ // @ts-ignore
28
+ import { ProblemDetails } from '../models';
29
+ // @ts-ignore
30
+ import { TestEmailModel } from '../models';
31
+ // @ts-ignore
32
+ import { TestEmailWebhookCommand } from '../models';
33
+ /**
34
+ * EmailWebhooksApi - axios parameter creator
35
+ * @export
36
+ */
37
+ export const EmailWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
38
+ return {
39
+ /**
40
+ *
41
+ * @summary Receive email webhooks events
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ apiV1EmailwebhooksInboundPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ const localVarPath = `/api/v1/emailwebhooks/inbound`;
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ }
53
+
54
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
55
+ const localVarHeaderParameter = {} as any;
56
+ const localVarQueryParameter = {} as any;
57
+
58
+ // authentication oauth2 required
59
+ // oauth required
60
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
61
+
62
+
63
+
64
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
66
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
67
+
68
+ return {
69
+ url: toPathString(localVarUrlObj),
70
+ options: localVarRequestOptions,
71
+ };
72
+ },
73
+ /**
74
+ *
75
+ * @summary Get email records. (from an week ago as default)
76
+ * @param {Date} [createdFrom]
77
+ * @param {Date} [createdTo]
78
+ * @param {Date} [updatedFrom]
79
+ * @param {Date} [updatedTo]
80
+ * @param {string} [recipient]
81
+ * @param {boolean} [includeEvents]
82
+ * @param {Array<EmailStatus>} [statuses]
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ apiV1EmailwebhooksRecordsGet: async (createdFrom?: Date, createdTo?: Date, updatedFrom?: Date, updatedTo?: Date, recipient?: string, includeEvents?: boolean, statuses?: Array<EmailStatus>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
87
+ const localVarPath = `/api/v1/emailwebhooks/records`;
88
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
90
+ let baseOptions;
91
+ if (configuration) {
92
+ baseOptions = configuration.baseOptions;
93
+ }
94
+
95
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
96
+ const localVarHeaderParameter = {} as any;
97
+ const localVarQueryParameter = {} as any;
98
+
99
+ // authentication oauth2 required
100
+ // oauth required
101
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
102
+
103
+ if (createdFrom !== undefined) {
104
+ localVarQueryParameter['CreatedFrom'] = (createdFrom as any instanceof Date) ?
105
+ (createdFrom as any).toISOString() :
106
+ createdFrom;
107
+ }
108
+
109
+ if (createdTo !== undefined) {
110
+ localVarQueryParameter['CreatedTo'] = (createdTo as any instanceof Date) ?
111
+ (createdTo as any).toISOString() :
112
+ createdTo;
113
+ }
114
+
115
+ if (updatedFrom !== undefined) {
116
+ localVarQueryParameter['UpdatedFrom'] = (updatedFrom as any instanceof Date) ?
117
+ (updatedFrom as any).toISOString() :
118
+ updatedFrom;
119
+ }
120
+
121
+ if (updatedTo !== undefined) {
122
+ localVarQueryParameter['UpdatedTo'] = (updatedTo as any instanceof Date) ?
123
+ (updatedTo as any).toISOString() :
124
+ updatedTo;
125
+ }
126
+
127
+ if (recipient !== undefined) {
128
+ localVarQueryParameter['Recipient'] = recipient;
129
+ }
130
+
131
+ if (includeEvents !== undefined) {
132
+ localVarQueryParameter['IncludeEvents'] = includeEvents;
133
+ }
134
+
135
+ if (statuses) {
136
+ localVarQueryParameter['Statuses'] = statuses;
137
+ }
138
+
139
+
140
+
141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
144
+
145
+ return {
146
+ url: toPathString(localVarUrlObj),
147
+ options: localVarRequestOptions,
148
+ };
149
+ },
150
+ /**
151
+ *
152
+ * @summary Get email record by id with events.
153
+ * @param {string} recordId
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ apiV1EmailwebhooksRecordsRecordIdGet: async (recordId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
158
+ // verify required parameter 'recordId' is not null or undefined
159
+ assertParamExists('apiV1EmailwebhooksRecordsRecordIdGet', 'recordId', recordId)
160
+ const localVarPath = `/api/v1/emailwebhooks/records/{recordId}`
161
+ .replace(`{${"recordId"}}`, encodeURIComponent(String(recordId)));
162
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
163
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
164
+ let baseOptions;
165
+ if (configuration) {
166
+ baseOptions = configuration.baseOptions;
167
+ }
168
+
169
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
170
+ const localVarHeaderParameter = {} as any;
171
+ const localVarQueryParameter = {} as any;
172
+
173
+ // authentication oauth2 required
174
+ // oauth required
175
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
176
+
177
+
178
+
179
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
180
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
182
+
183
+ return {
184
+ url: toPathString(localVarUrlObj),
185
+ options: localVarRequestOptions,
186
+ };
187
+ },
188
+ /**
189
+ *
190
+ * @summary Sending test email that follows email webhook steps.
191
+ * @param {TestEmailWebhookCommand} [testEmailWebhookCommand]
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ apiV1EmailwebhooksTestPost: async (testEmailWebhookCommand?: TestEmailWebhookCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
196
+ const localVarPath = `/api/v1/emailwebhooks/test`;
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ if (configuration) {
201
+ baseOptions = configuration.baseOptions;
202
+ }
203
+
204
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
205
+ const localVarHeaderParameter = {} as any;
206
+ const localVarQueryParameter = {} as any;
207
+
208
+ // authentication oauth2 required
209
+ // oauth required
210
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
211
+
212
+
213
+
214
+ localVarHeaderParameter['Content-Type'] = 'application/json';
215
+
216
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
217
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
218
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
219
+ localVarRequestOptions.data = serializeDataIfNeeded(testEmailWebhookCommand, localVarRequestOptions, configuration)
220
+
221
+ return {
222
+ url: toPathString(localVarUrlObj),
223
+ options: localVarRequestOptions,
224
+ };
225
+ },
226
+ }
227
+ };
228
+
229
+ /**
230
+ * EmailWebhooksApi - functional programming interface
231
+ * @export
232
+ */
233
+ export const EmailWebhooksApiFp = function(configuration?: Configuration) {
234
+ const localVarAxiosParamCreator = EmailWebhooksApiAxiosParamCreator(configuration)
235
+ return {
236
+ /**
237
+ *
238
+ * @summary Receive email webhooks events
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ async apiV1EmailwebhooksInboundPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
243
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailwebhooksInboundPost(options);
244
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
245
+ },
246
+ /**
247
+ *
248
+ * @summary Get email records. (from an week ago as default)
249
+ * @param {Date} [createdFrom]
250
+ * @param {Date} [createdTo]
251
+ * @param {Date} [updatedFrom]
252
+ * @param {Date} [updatedTo]
253
+ * @param {string} [recipient]
254
+ * @param {boolean} [includeEvents]
255
+ * @param {Array<EmailStatus>} [statuses]
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ async apiV1EmailwebhooksRecordsGet(createdFrom?: Date, createdTo?: Date, updatedFrom?: Date, updatedTo?: Date, recipient?: string, includeEvents?: boolean, statuses?: Array<EmailStatus>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EmailRecordModel>>> {
260
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailwebhooksRecordsGet(createdFrom, createdTo, updatedFrom, updatedTo, recipient, includeEvents, statuses, options);
261
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
262
+ },
263
+ /**
264
+ *
265
+ * @summary Get email record by id with events.
266
+ * @param {string} recordId
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ */
270
+ async apiV1EmailwebhooksRecordsRecordIdGet(recordId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailRecordModel>> {
271
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailwebhooksRecordsRecordIdGet(recordId, options);
272
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
273
+ },
274
+ /**
275
+ *
276
+ * @summary Sending test email that follows email webhook steps.
277
+ * @param {TestEmailWebhookCommand} [testEmailWebhookCommand]
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ async apiV1EmailwebhooksTestPost(testEmailWebhookCommand?: TestEmailWebhookCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TestEmailModel>> {
282
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailwebhooksTestPost(testEmailWebhookCommand, options);
283
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
284
+ },
285
+ }
286
+ };
287
+
288
+ /**
289
+ * EmailWebhooksApi - factory interface
290
+ * @export
291
+ */
292
+ export const EmailWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
293
+ const localVarFp = EmailWebhooksApiFp(configuration)
294
+ return {
295
+ /**
296
+ *
297
+ * @summary Receive email webhooks events
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ apiV1EmailwebhooksInboundPost(options?: any): AxiosPromise<object> {
302
+ return localVarFp.apiV1EmailwebhooksInboundPost(options).then((request) => request(axios, basePath));
303
+ },
304
+ /**
305
+ *
306
+ * @summary Get email records. (from an week ago as default)
307
+ * @param {Date} [createdFrom]
308
+ * @param {Date} [createdTo]
309
+ * @param {Date} [updatedFrom]
310
+ * @param {Date} [updatedTo]
311
+ * @param {string} [recipient]
312
+ * @param {boolean} [includeEvents]
313
+ * @param {Array<EmailStatus>} [statuses]
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ */
317
+ apiV1EmailwebhooksRecordsGet(createdFrom?: Date, createdTo?: Date, updatedFrom?: Date, updatedTo?: Date, recipient?: string, includeEvents?: boolean, statuses?: Array<EmailStatus>, options?: any): AxiosPromise<Array<EmailRecordModel>> {
318
+ return localVarFp.apiV1EmailwebhooksRecordsGet(createdFrom, createdTo, updatedFrom, updatedTo, recipient, includeEvents, statuses, options).then((request) => request(axios, basePath));
319
+ },
320
+ /**
321
+ *
322
+ * @summary Get email record by id with events.
323
+ * @param {string} recordId
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ apiV1EmailwebhooksRecordsRecordIdGet(recordId: string, options?: any): AxiosPromise<EmailRecordModel> {
328
+ return localVarFp.apiV1EmailwebhooksRecordsRecordIdGet(recordId, options).then((request) => request(axios, basePath));
329
+ },
330
+ /**
331
+ *
332
+ * @summary Sending test email that follows email webhook steps.
333
+ * @param {TestEmailWebhookCommand} [testEmailWebhookCommand]
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ apiV1EmailwebhooksTestPost(testEmailWebhookCommand?: TestEmailWebhookCommand, options?: any): AxiosPromise<TestEmailModel> {
338
+ return localVarFp.apiV1EmailwebhooksTestPost(testEmailWebhookCommand, options).then((request) => request(axios, basePath));
339
+ },
340
+ };
341
+ };
342
+
343
+ /**
344
+ * Request parameters for apiV1EmailwebhooksRecordsGet operation in EmailWebhooksApi.
345
+ * @export
346
+ * @interface EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest
347
+ */
348
+ export interface EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest {
349
+ /**
350
+ *
351
+ * @type {Date}
352
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
353
+ */
354
+ readonly createdFrom?: Date
355
+
356
+ /**
357
+ *
358
+ * @type {Date}
359
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
360
+ */
361
+ readonly createdTo?: Date
362
+
363
+ /**
364
+ *
365
+ * @type {Date}
366
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
367
+ */
368
+ readonly updatedFrom?: Date
369
+
370
+ /**
371
+ *
372
+ * @type {Date}
373
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
374
+ */
375
+ readonly updatedTo?: Date
376
+
377
+ /**
378
+ *
379
+ * @type {string}
380
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
381
+ */
382
+ readonly recipient?: string
383
+
384
+ /**
385
+ *
386
+ * @type {boolean}
387
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
388
+ */
389
+ readonly includeEvents?: boolean
390
+
391
+ /**
392
+ *
393
+ * @type {Array<EmailStatus>}
394
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
395
+ */
396
+ readonly statuses?: Array<EmailStatus>
397
+ }
398
+
399
+ /**
400
+ * Request parameters for apiV1EmailwebhooksRecordsRecordIdGet operation in EmailWebhooksApi.
401
+ * @export
402
+ * @interface EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGetRequest
403
+ */
404
+ export interface EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGetRequest {
405
+ /**
406
+ *
407
+ * @type {string}
408
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGet
409
+ */
410
+ readonly recordId: string
411
+ }
412
+
413
+ /**
414
+ * Request parameters for apiV1EmailwebhooksTestPost operation in EmailWebhooksApi.
415
+ * @export
416
+ * @interface EmailWebhooksApiApiV1EmailwebhooksTestPostRequest
417
+ */
418
+ export interface EmailWebhooksApiApiV1EmailwebhooksTestPostRequest {
419
+ /**
420
+ *
421
+ * @type {TestEmailWebhookCommand}
422
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksTestPost
423
+ */
424
+ readonly testEmailWebhookCommand?: TestEmailWebhookCommand
425
+ }
426
+
427
+ /**
428
+ * EmailWebhooksApi - object-oriented interface
429
+ * @export
430
+ * @class EmailWebhooksApi
431
+ * @extends {BaseAPI}
432
+ */
433
+ export class EmailWebhooksApi extends BaseAPI {
434
+ /**
435
+ *
436
+ * @summary Receive email webhooks events
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ * @memberof EmailWebhooksApi
440
+ */
441
+ public apiV1EmailwebhooksInboundPost(options?: AxiosRequestConfig) {
442
+ return EmailWebhooksApiFp(this.configuration).apiV1EmailwebhooksInboundPost(options).then((request) => request(this.axios, this.basePath));
443
+ }
444
+
445
+ /**
446
+ *
447
+ * @summary Get email records. (from an week ago as default)
448
+ * @param {EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest} requestParameters Request parameters.
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ * @memberof EmailWebhooksApi
452
+ */
453
+ public apiV1EmailwebhooksRecordsGet(requestParameters: EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest = {}, options?: AxiosRequestConfig) {
454
+ return EmailWebhooksApiFp(this.configuration).apiV1EmailwebhooksRecordsGet(requestParameters.createdFrom, requestParameters.createdTo, requestParameters.updatedFrom, requestParameters.updatedTo, requestParameters.recipient, requestParameters.includeEvents, requestParameters.statuses, options).then((request) => request(this.axios, this.basePath));
455
+ }
456
+
457
+ /**
458
+ *
459
+ * @summary Get email record by id with events.
460
+ * @param {EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGetRequest} requestParameters Request parameters.
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ * @memberof EmailWebhooksApi
464
+ */
465
+ public apiV1EmailwebhooksRecordsRecordIdGet(requestParameters: EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGetRequest, options?: AxiosRequestConfig) {
466
+ return EmailWebhooksApiFp(this.configuration).apiV1EmailwebhooksRecordsRecordIdGet(requestParameters.recordId, options).then((request) => request(this.axios, this.basePath));
467
+ }
468
+
469
+ /**
470
+ *
471
+ * @summary Sending test email that follows email webhook steps.
472
+ * @param {EmailWebhooksApiApiV1EmailwebhooksTestPostRequest} requestParameters Request parameters.
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ * @memberof EmailWebhooksApi
476
+ */
477
+ public apiV1EmailwebhooksTestPost(requestParameters: EmailWebhooksApiApiV1EmailwebhooksTestPostRequest = {}, options?: AxiosRequestConfig) {
478
+ return EmailWebhooksApiFp(this.configuration).apiV1EmailwebhooksTestPost(requestParameters.testEmailWebhookCommand, options).then((request) => request(this.axios, this.basePath));
479
+ }
480
+ }
@@ -494,6 +494,44 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
494
494
  options: localVarRequestOptions,
495
495
  };
496
496
  },
497
+ /**
498
+ *
499
+ * @summary Reactive Patient.
500
+ * @param {string} patientId
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ apiV1PatientsPatientIdReactivatePut: async (patientId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
505
+ // verify required parameter 'patientId' is not null or undefined
506
+ assertParamExists('apiV1PatientsPatientIdReactivatePut', 'patientId', patientId)
507
+ const localVarPath = `/api/v1/patients/{patientId}/reactivate`
508
+ .replace(`{${"patientId"}}`, encodeURIComponent(String(patientId)));
509
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
510
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
511
+ let baseOptions;
512
+ if (configuration) {
513
+ baseOptions = configuration.baseOptions;
514
+ }
515
+
516
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
517
+ const localVarHeaderParameter = {} as any;
518
+ const localVarQueryParameter = {} as any;
519
+
520
+ // authentication oauth2 required
521
+ // oauth required
522
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
523
+
524
+
525
+
526
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
527
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
528
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
529
+
530
+ return {
531
+ url: toPathString(localVarUrlObj),
532
+ options: localVarRequestOptions,
533
+ };
534
+ },
497
535
  /**
498
536
  *
499
537
  * @summary Create a Patient.
@@ -700,6 +738,17 @@ export const PatientsApiFp = function(configuration?: Configuration) {
700
738
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientsPatientIdPut(patientId, updatePatientCommand, options);
701
739
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
702
740
  },
741
+ /**
742
+ *
743
+ * @summary Reactive Patient.
744
+ * @param {string} patientId
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ */
748
+ async apiV1PatientsPatientIdReactivatePut(patientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
749
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientsPatientIdReactivatePut(patientId, options);
750
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
751
+ },
703
752
  /**
704
753
  *
705
754
  * @summary Create a Patient.
@@ -843,6 +892,16 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
843
892
  apiV1PatientsPatientIdPut(patientId: string, updatePatientCommand?: UpdatePatientCommand, options?: any): AxiosPromise<PatientModel> {
844
893
  return localVarFp.apiV1PatientsPatientIdPut(patientId, updatePatientCommand, options).then((request) => request(axios, basePath));
845
894
  },
895
+ /**
896
+ *
897
+ * @summary Reactive Patient.
898
+ * @param {string} patientId
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ */
902
+ apiV1PatientsPatientIdReactivatePut(patientId: string, options?: any): AxiosPromise<boolean> {
903
+ return localVarFp.apiV1PatientsPatientIdReactivatePut(patientId, options).then((request) => request(axios, basePath));
904
+ },
846
905
  /**
847
906
  *
848
907
  * @summary Create a Patient.
@@ -1139,6 +1198,20 @@ export interface PatientsApiApiV1PatientsPatientIdPutRequest {
1139
1198
  readonly updatePatientCommand?: UpdatePatientCommand
1140
1199
  }
1141
1200
 
1201
+ /**
1202
+ * Request parameters for apiV1PatientsPatientIdReactivatePut operation in PatientsApi.
1203
+ * @export
1204
+ * @interface PatientsApiApiV1PatientsPatientIdReactivatePutRequest
1205
+ */
1206
+ export interface PatientsApiApiV1PatientsPatientIdReactivatePutRequest {
1207
+ /**
1208
+ *
1209
+ * @type {string}
1210
+ * @memberof PatientsApiApiV1PatientsPatientIdReactivatePut
1211
+ */
1212
+ readonly patientId: string
1213
+ }
1214
+
1142
1215
  /**
1143
1216
  * Request parameters for apiV1PatientsPost operation in PatientsApi.
1144
1217
  * @export
@@ -1282,6 +1355,18 @@ export class PatientsApi extends BaseAPI {
1282
1355
  return PatientsApiFp(this.configuration).apiV1PatientsPatientIdPut(requestParameters.patientId, requestParameters.updatePatientCommand, options).then((request) => request(this.axios, this.basePath));
1283
1356
  }
1284
1357
 
1358
+ /**
1359
+ *
1360
+ * @summary Reactive Patient.
1361
+ * @param {PatientsApiApiV1PatientsPatientIdReactivatePutRequest} requestParameters Request parameters.
1362
+ * @param {*} [options] Override http request option.
1363
+ * @throws {RequiredError}
1364
+ * @memberof PatientsApi
1365
+ */
1366
+ public apiV1PatientsPatientIdReactivatePut(requestParameters: PatientsApiApiV1PatientsPatientIdReactivatePutRequest, options?: AxiosRequestConfig) {
1367
+ return PatientsApiFp(this.configuration).apiV1PatientsPatientIdReactivatePut(requestParameters.patientId, options).then((request) => request(this.axios, this.basePath));
1368
+ }
1369
+
1285
1370
  /**
1286
1371
  *
1287
1372
  * @summary Create a Patient.