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,266 @@
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
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { EmailRecordModel } from '../models';
16
+ import { EmailStatus } from '../models';
17
+ import { TestEmailModel } from '../models';
18
+ import { TestEmailWebhookCommand } from '../models';
19
+ /**
20
+ * EmailWebhooksApi - axios parameter creator
21
+ * @export
22
+ */
23
+ export declare const EmailWebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ *
26
+ * @summary Receive email webhooks events
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ apiV1EmailwebhooksInboundPost: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ *
33
+ * @summary Get email records. (from an week ago as default)
34
+ * @param {Date} [createdFrom]
35
+ * @param {Date} [createdTo]
36
+ * @param {Date} [updatedFrom]
37
+ * @param {Date} [updatedTo]
38
+ * @param {string} [recipient]
39
+ * @param {boolean} [includeEvents]
40
+ * @param {Array<EmailStatus>} [statuses]
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ apiV1EmailwebhooksRecordsGet: (createdFrom?: Date, createdTo?: Date, updatedFrom?: Date, updatedTo?: Date, recipient?: string, includeEvents?: boolean, statuses?: Array<EmailStatus>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ *
47
+ * @summary Get email record by id with events.
48
+ * @param {string} recordId
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ apiV1EmailwebhooksRecordsRecordIdGet: (recordId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
+ /**
54
+ *
55
+ * @summary Sending test email that follows email webhook steps.
56
+ * @param {TestEmailWebhookCommand} [testEmailWebhookCommand]
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ apiV1EmailwebhooksTestPost: (testEmailWebhookCommand?: TestEmailWebhookCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
+ };
62
+ /**
63
+ * EmailWebhooksApi - functional programming interface
64
+ * @export
65
+ */
66
+ export declare const EmailWebhooksApiFp: (configuration?: Configuration) => {
67
+ /**
68
+ *
69
+ * @summary Receive email webhooks events
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ apiV1EmailwebhooksInboundPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
74
+ /**
75
+ *
76
+ * @summary Get email records. (from an week ago as default)
77
+ * @param {Date} [createdFrom]
78
+ * @param {Date} [createdTo]
79
+ * @param {Date} [updatedFrom]
80
+ * @param {Date} [updatedTo]
81
+ * @param {string} [recipient]
82
+ * @param {boolean} [includeEvents]
83
+ * @param {Array<EmailStatus>} [statuses]
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ 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>>>;
88
+ /**
89
+ *
90
+ * @summary Get email record by id with events.
91
+ * @param {string} recordId
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ apiV1EmailwebhooksRecordsRecordIdGet(recordId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailRecordModel>>;
96
+ /**
97
+ *
98
+ * @summary Sending test email that follows email webhook steps.
99
+ * @param {TestEmailWebhookCommand} [testEmailWebhookCommand]
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ apiV1EmailwebhooksTestPost(testEmailWebhookCommand?: TestEmailWebhookCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TestEmailModel>>;
104
+ };
105
+ /**
106
+ * EmailWebhooksApi - factory interface
107
+ * @export
108
+ */
109
+ export declare const EmailWebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
110
+ /**
111
+ *
112
+ * @summary Receive email webhooks events
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ apiV1EmailwebhooksInboundPost(options?: any): AxiosPromise<object>;
117
+ /**
118
+ *
119
+ * @summary Get email records. (from an week ago as default)
120
+ * @param {Date} [createdFrom]
121
+ * @param {Date} [createdTo]
122
+ * @param {Date} [updatedFrom]
123
+ * @param {Date} [updatedTo]
124
+ * @param {string} [recipient]
125
+ * @param {boolean} [includeEvents]
126
+ * @param {Array<EmailStatus>} [statuses]
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ apiV1EmailwebhooksRecordsGet(createdFrom?: Date, createdTo?: Date, updatedFrom?: Date, updatedTo?: Date, recipient?: string, includeEvents?: boolean, statuses?: Array<EmailStatus>, options?: any): AxiosPromise<Array<EmailRecordModel>>;
131
+ /**
132
+ *
133
+ * @summary Get email record by id with events.
134
+ * @param {string} recordId
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ apiV1EmailwebhooksRecordsRecordIdGet(recordId: string, options?: any): AxiosPromise<EmailRecordModel>;
139
+ /**
140
+ *
141
+ * @summary Sending test email that follows email webhook steps.
142
+ * @param {TestEmailWebhookCommand} [testEmailWebhookCommand]
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ apiV1EmailwebhooksTestPost(testEmailWebhookCommand?: TestEmailWebhookCommand, options?: any): AxiosPromise<TestEmailModel>;
147
+ };
148
+ /**
149
+ * Request parameters for apiV1EmailwebhooksRecordsGet operation in EmailWebhooksApi.
150
+ * @export
151
+ * @interface EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest
152
+ */
153
+ export interface EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest {
154
+ /**
155
+ *
156
+ * @type {Date}
157
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
158
+ */
159
+ readonly createdFrom?: Date;
160
+ /**
161
+ *
162
+ * @type {Date}
163
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
164
+ */
165
+ readonly createdTo?: Date;
166
+ /**
167
+ *
168
+ * @type {Date}
169
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
170
+ */
171
+ readonly updatedFrom?: Date;
172
+ /**
173
+ *
174
+ * @type {Date}
175
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
176
+ */
177
+ readonly updatedTo?: Date;
178
+ /**
179
+ *
180
+ * @type {string}
181
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
182
+ */
183
+ readonly recipient?: string;
184
+ /**
185
+ *
186
+ * @type {boolean}
187
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
188
+ */
189
+ readonly includeEvents?: boolean;
190
+ /**
191
+ *
192
+ * @type {Array<EmailStatus>}
193
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
194
+ */
195
+ readonly statuses?: Array<EmailStatus>;
196
+ }
197
+ /**
198
+ * Request parameters for apiV1EmailwebhooksRecordsRecordIdGet operation in EmailWebhooksApi.
199
+ * @export
200
+ * @interface EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGetRequest
201
+ */
202
+ export interface EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGetRequest {
203
+ /**
204
+ *
205
+ * @type {string}
206
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGet
207
+ */
208
+ readonly recordId: string;
209
+ }
210
+ /**
211
+ * Request parameters for apiV1EmailwebhooksTestPost operation in EmailWebhooksApi.
212
+ * @export
213
+ * @interface EmailWebhooksApiApiV1EmailwebhooksTestPostRequest
214
+ */
215
+ export interface EmailWebhooksApiApiV1EmailwebhooksTestPostRequest {
216
+ /**
217
+ *
218
+ * @type {TestEmailWebhookCommand}
219
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksTestPost
220
+ */
221
+ readonly testEmailWebhookCommand?: TestEmailWebhookCommand;
222
+ }
223
+ /**
224
+ * EmailWebhooksApi - object-oriented interface
225
+ * @export
226
+ * @class EmailWebhooksApi
227
+ * @extends {BaseAPI}
228
+ */
229
+ export declare class EmailWebhooksApi extends BaseAPI {
230
+ /**
231
+ *
232
+ * @summary Receive email webhooks events
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ * @memberof EmailWebhooksApi
236
+ */
237
+ apiV1EmailwebhooksInboundPost(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
238
+ /**
239
+ *
240
+ * @summary Get email records. (from an week ago as default)
241
+ * @param {EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest} requestParameters Request parameters.
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ * @memberof EmailWebhooksApi
245
+ */
246
+ apiV1EmailwebhooksRecordsGet(requestParameters?: EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EmailRecordModel[], any>>;
247
+ /**
248
+ *
249
+ * @summary Get email record by id with events.
250
+ * @param {EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGetRequest} requestParameters Request parameters.
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ * @memberof EmailWebhooksApi
254
+ */
255
+ apiV1EmailwebhooksRecordsRecordIdGet(requestParameters: EmailWebhooksApiApiV1EmailwebhooksRecordsRecordIdGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EmailRecordModel, any>>;
256
+ /**
257
+ *
258
+ * @summary Sending test email that follows email webhook steps.
259
+ * @param {EmailWebhooksApiApiV1EmailwebhooksTestPostRequest} requestParameters Request parameters.
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ * @memberof EmailWebhooksApi
263
+ */
264
+ apiV1EmailwebhooksTestPost(requestParameters?: EmailWebhooksApiApiV1EmailwebhooksTestPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestEmailModel, any>>;
265
+ }
266
+ //# sourceMappingURL=email-webhooks-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-webhooks-api.d.ts","sourceRoot":"","sources":["../../src/api/email-webhooks-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAIxC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,iCAAiC,mBAA6B,aAAa;IAEhF;;;;;OAKG;8CAC4C,kBAAkB,KAAQ,QAAQ,WAAW,CAAC;IA4B7F;;;;;;;;;;;;OAYG;iDACgD,IAAI,cAAc,IAAI,gBAAgB,IAAI,cAAc,IAAI,cAAc,MAAM,kBAAkB,OAA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