ch-admin-api-client-typescript 5.32.0 → 5.33.1

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 (50) hide show
  1. package/lib/api/articles-api.d.ts +9 -9
  2. package/lib/api/articles-api.d.ts.map +1 -1
  3. package/lib/api/articles-api.js +11 -11
  4. package/lib/api/email-webhooks-api.d.ts +59 -13
  5. package/lib/api/email-webhooks-api.d.ts.map +1 -1
  6. package/lib/api/email-webhooks-api.js +48 -16
  7. package/lib/models/article-item-model.d.ts +3 -3
  8. package/lib/models/article-item-model.d.ts.map +1 -1
  9. package/lib/models/article-model.d.ts +3 -3
  10. package/lib/models/article-model.d.ts.map +1 -1
  11. package/lib/models/article-type.d.ts +24 -0
  12. package/lib/models/article-type.d.ts.map +1 -0
  13. package/lib/models/article-type.js +27 -0
  14. package/lib/models/create-article-command.d.ts +3 -3
  15. package/lib/models/create-article-command.d.ts.map +1 -1
  16. package/lib/models/{email-record-event-item-model.d.ts → email-record-event-model.d.ts} +26 -26
  17. package/lib/models/email-record-event-model.d.ts.map +1 -0
  18. package/lib/models/email-record-item-model.d.ts +80 -0
  19. package/lib/models/email-record-item-model.d.ts.map +1 -0
  20. package/lib/models/email-record-item-model.js +15 -0
  21. package/lib/models/email-record-model.d.ts +3 -3
  22. package/lib/models/email-record-model.d.ts.map +1 -1
  23. package/lib/models/email-records-model.d.ts +33 -0
  24. package/lib/models/email-records-model.d.ts.map +1 -0
  25. package/lib/models/email-records-model.js +15 -0
  26. package/lib/models/index.d.ts +4 -1
  27. package/lib/models/index.d.ts.map +1 -1
  28. package/lib/models/index.js +4 -1
  29. package/lib/models/marketing-type.d.ts +0 -1
  30. package/lib/models/marketing-type.d.ts.map +1 -1
  31. package/lib/models/marketing-type.js +1 -2
  32. package/lib/models/update-article-command.d.ts +3 -3
  33. package/lib/models/update-article-command.d.ts.map +1 -1
  34. package/package.json +1 -1
  35. package/src/.openapi-generator/FILES +4 -1
  36. package/src/api/articles-api.ts +15 -15
  37. package/src/api/email-webhooks-api.ts +93 -19
  38. package/src/models/article-item-model.ts +4 -4
  39. package/src/models/article-model.ts +4 -4
  40. package/src/models/article-type.ts +33 -0
  41. package/src/models/create-article-command.ts +3 -3
  42. package/src/models/{email-record-event-item-model.ts → email-record-event-model.ts} +25 -25
  43. package/src/models/email-record-item-model.ts +87 -0
  44. package/src/models/email-record-model.ts +3 -3
  45. package/src/models/email-records-model.ts +42 -0
  46. package/src/models/index.ts +4 -1
  47. package/src/models/marketing-type.ts +1 -2
  48. package/src/models/update-article-command.ts +3 -3
  49. package/lib/models/email-record-event-item-model.d.ts.map +0 -1
  50. /package/lib/models/{email-record-event-item-model.js → email-record-event-model.js} +0 -0
@@ -33,6 +33,8 @@ import { ArticleTagModel } from '../models';
33
33
  // @ts-ignore
34
34
  import { ArticleTagsModel } from '../models';
35
35
  // @ts-ignore
36
+ import { ArticleType } from '../models';
37
+ // @ts-ignore
36
38
  import { ArticlesModel } from '../models';
37
39
  // @ts-ignore
38
40
  import { ContributionType } from '../models';
@@ -47,8 +49,6 @@ import { CreateArticleTagCommand } from '../models';
47
49
  // @ts-ignore
48
50
  import { CreateMediaCommand } from '../models';
49
51
  // @ts-ignore
50
- import { MarketingType } from '../models';
51
- // @ts-ignore
52
52
  import { MediaModel } from '../models';
53
53
  // @ts-ignore
54
54
  import { MediaType } from '../models';
@@ -1176,7 +1176,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
1176
1176
  * @param {string} [id]
1177
1177
  * @param {string} [name]
1178
1178
  * @param {string} [description]
1179
- * @param {MarketingType} [marketingType]
1179
+ * @param {ArticleType} [articleType]
1180
1180
  * @param {string} [userId]
1181
1181
  * @param {string} [userName]
1182
1182
  * @param {string} [hospitalId]
@@ -1194,7 +1194,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
1194
1194
  * @param {*} [options] Override http request option.
1195
1195
  * @throws {RequiredError}
1196
1196
  */
1197
- apiV1ArticlesGet: async (id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1197
+ apiV1ArticlesGet: async (id?: string, name?: string, description?: string, articleType?: ArticleType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1198
1198
  const localVarPath = `/api/v1/articles`;
1199
1199
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1200
1200
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1223,8 +1223,8 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
1223
1223
  localVarQueryParameter['Description'] = description;
1224
1224
  }
1225
1225
 
1226
- if (marketingType !== undefined) {
1227
- localVarQueryParameter['MarketingType'] = marketingType;
1226
+ if (articleType !== undefined) {
1227
+ localVarQueryParameter['ArticleType'] = articleType;
1228
1228
  }
1229
1229
 
1230
1230
  if (userId !== undefined) {
@@ -1698,7 +1698,7 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
1698
1698
  * @param {string} [id]
1699
1699
  * @param {string} [name]
1700
1700
  * @param {string} [description]
1701
- * @param {MarketingType} [marketingType]
1701
+ * @param {ArticleType} [articleType]
1702
1702
  * @param {string} [userId]
1703
1703
  * @param {string} [userName]
1704
1704
  * @param {string} [hospitalId]
@@ -1716,8 +1716,8 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
1716
1716
  * @param {*} [options] Override http request option.
1717
1717
  * @throws {RequiredError}
1718
1718
  */
1719
- async apiV1ArticlesGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticlesModel>> {
1720
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options);
1719
+ async apiV1ArticlesGet(id?: string, name?: string, description?: string, articleType?: ArticleType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticlesModel>> {
1720
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesGet(id, name, description, articleType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options);
1721
1721
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1722
1722
  },
1723
1723
  /**
@@ -2037,7 +2037,7 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
2037
2037
  * @param {string} [id]
2038
2038
  * @param {string} [name]
2039
2039
  * @param {string} [description]
2040
- * @param {MarketingType} [marketingType]
2040
+ * @param {ArticleType} [articleType]
2041
2041
  * @param {string} [userId]
2042
2042
  * @param {string} [userName]
2043
2043
  * @param {string} [hospitalId]
@@ -2055,8 +2055,8 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
2055
2055
  * @param {*} [options] Override http request option.
2056
2056
  * @throws {RequiredError}
2057
2057
  */
2058
- apiV1ArticlesGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticlesModel> {
2059
- return localVarFp.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2058
+ apiV1ArticlesGet(id?: string, name?: string, description?: string, articleType?: ArticleType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticlesModel> {
2059
+ return localVarFp.apiV1ArticlesGet(id, name, description, articleType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2060
2060
  },
2061
2061
  /**
2062
2062
  *
@@ -2763,10 +2763,10 @@ export interface ArticlesApiApiV1ArticlesGetRequest {
2763
2763
 
2764
2764
  /**
2765
2765
  *
2766
- * @type {MarketingType}
2766
+ * @type {ArticleType}
2767
2767
  * @memberof ArticlesApiApiV1ArticlesGet
2768
2768
  */
2769
- readonly marketingType?: MarketingType
2769
+ readonly articleType?: ArticleType
2770
2770
 
2771
2771
  /**
2772
2772
  *
@@ -3201,7 +3201,7 @@ export class ArticlesApi extends BaseAPI {
3201
3201
  * @memberof ArticlesApi
3202
3202
  */
3203
3203
  public apiV1ArticlesGet(requestParameters: ArticlesApiApiV1ArticlesGetRequest = {}, options?: AxiosRequestConfig) {
3204
- return ArticlesApiFp(this.configuration).apiV1ArticlesGet(requestParameters.id, requestParameters.name, requestParameters.description, requestParameters.marketingType, requestParameters.userId, requestParameters.userName, requestParameters.hospitalId, requestParameters.hospitalName, requestParameters.countryId, requestParameters.tag, requestParameters.exceptArticleId, requestParameters.exceptHospitalId, requestParameters.contributorId, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3204
+ return ArticlesApiFp(this.configuration).apiV1ArticlesGet(requestParameters.id, requestParameters.name, requestParameters.description, requestParameters.articleType, requestParameters.userId, requestParameters.userName, requestParameters.hospitalId, requestParameters.hospitalName, requestParameters.countryId, requestParameters.tag, requestParameters.exceptArticleId, requestParameters.exceptHospitalId, requestParameters.contributorId, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
3205
3205
  }
3206
3206
 
3207
3207
  /**
@@ -23,6 +23,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { EmailRecordModel } from '../models';
25
25
  // @ts-ignore
26
+ import { EmailRecordsModel } from '../models';
27
+ // @ts-ignore
26
28
  import { EmailStatus } from '../models';
27
29
  // @ts-ignore
28
30
  import { ProblemDetails } from '../models';
@@ -77,13 +79,18 @@ export const EmailWebhooksApiAxiosParamCreator = function (configuration?: Confi
77
79
  * @param {Date} [createdTo]
78
80
  * @param {Date} [updatedFrom]
79
81
  * @param {Date} [updatedTo]
80
- * @param {string} [recipient]
81
- * @param {boolean} [includeEvents]
82
+ * @param {string} [senderName]
83
+ * @param {string} [senderEmail]
84
+ * @param {string} [recipientName]
85
+ * @param {string} [recipientEmail]
82
86
  * @param {Array<EmailStatus>} [statuses]
87
+ * @param {number} [page]
88
+ * @param {number} [limit]
89
+ * @param {Date} [lastRetrieved]
83
90
  * @param {*} [options] Override http request option.
84
91
  * @throws {RequiredError}
85
92
  */
86
- apiV1EmailwebhooksRecordsGet: async (createdFrom?: Date, createdTo?: Date, updatedFrom?: Date, updatedTo?: Date, recipient?: string, includeEvents?: boolean, statuses?: Array<EmailStatus>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
+ apiV1EmailwebhooksRecordsGet: async (createdFrom?: Date, createdTo?: Date, updatedFrom?: Date, updatedTo?: Date, senderName?: string, senderEmail?: string, recipientName?: string, recipientEmail?: string, statuses?: Array<EmailStatus>, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
87
94
  const localVarPath = `/api/v1/emailwebhooks/records`;
88
95
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
89
96
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -124,18 +131,40 @@ export const EmailWebhooksApiAxiosParamCreator = function (configuration?: Confi
124
131
  updatedTo;
125
132
  }
126
133
 
127
- if (recipient !== undefined) {
128
- localVarQueryParameter['Recipient'] = recipient;
134
+ if (senderName !== undefined) {
135
+ localVarQueryParameter['SenderName'] = senderName;
136
+ }
137
+
138
+ if (senderEmail !== undefined) {
139
+ localVarQueryParameter['SenderEmail'] = senderEmail;
140
+ }
141
+
142
+ if (recipientName !== undefined) {
143
+ localVarQueryParameter['RecipientName'] = recipientName;
129
144
  }
130
145
 
131
- if (includeEvents !== undefined) {
132
- localVarQueryParameter['IncludeEvents'] = includeEvents;
146
+ if (recipientEmail !== undefined) {
147
+ localVarQueryParameter['RecipientEmail'] = recipientEmail;
133
148
  }
134
149
 
135
150
  if (statuses) {
136
151
  localVarQueryParameter['Statuses'] = statuses;
137
152
  }
138
153
 
154
+ if (page !== undefined) {
155
+ localVarQueryParameter['page'] = page;
156
+ }
157
+
158
+ if (limit !== undefined) {
159
+ localVarQueryParameter['limit'] = limit;
160
+ }
161
+
162
+ if (lastRetrieved !== undefined) {
163
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
164
+ (lastRetrieved as any).toISOString() :
165
+ lastRetrieved;
166
+ }
167
+
139
168
 
140
169
 
141
170
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -250,14 +279,19 @@ export const EmailWebhooksApiFp = function(configuration?: Configuration) {
250
279
  * @param {Date} [createdTo]
251
280
  * @param {Date} [updatedFrom]
252
281
  * @param {Date} [updatedTo]
253
- * @param {string} [recipient]
254
- * @param {boolean} [includeEvents]
282
+ * @param {string} [senderName]
283
+ * @param {string} [senderEmail]
284
+ * @param {string} [recipientName]
285
+ * @param {string} [recipientEmail]
255
286
  * @param {Array<EmailStatus>} [statuses]
287
+ * @param {number} [page]
288
+ * @param {number} [limit]
289
+ * @param {Date} [lastRetrieved]
256
290
  * @param {*} [options] Override http request option.
257
291
  * @throws {RequiredError}
258
292
  */
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);
293
+ async apiV1EmailwebhooksRecordsGet(createdFrom?: Date, createdTo?: Date, updatedFrom?: Date, updatedTo?: Date, senderName?: string, senderEmail?: string, recipientName?: string, recipientEmail?: string, statuses?: Array<EmailStatus>, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmailRecordsModel>> {
294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1EmailwebhooksRecordsGet(createdFrom, createdTo, updatedFrom, updatedTo, senderName, senderEmail, recipientName, recipientEmail, statuses, page, limit, lastRetrieved, options);
261
295
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
262
296
  },
263
297
  /**
@@ -308,14 +342,19 @@ export const EmailWebhooksApiFactory = function (configuration?: Configuration,
308
342
  * @param {Date} [createdTo]
309
343
  * @param {Date} [updatedFrom]
310
344
  * @param {Date} [updatedTo]
311
- * @param {string} [recipient]
312
- * @param {boolean} [includeEvents]
345
+ * @param {string} [senderName]
346
+ * @param {string} [senderEmail]
347
+ * @param {string} [recipientName]
348
+ * @param {string} [recipientEmail]
313
349
  * @param {Array<EmailStatus>} [statuses]
350
+ * @param {number} [page]
351
+ * @param {number} [limit]
352
+ * @param {Date} [lastRetrieved]
314
353
  * @param {*} [options] Override http request option.
315
354
  * @throws {RequiredError}
316
355
  */
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));
356
+ apiV1EmailwebhooksRecordsGet(createdFrom?: Date, createdTo?: Date, updatedFrom?: Date, updatedTo?: Date, senderName?: string, senderEmail?: string, recipientName?: string, recipientEmail?: string, statuses?: Array<EmailStatus>, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<EmailRecordsModel> {
357
+ return localVarFp.apiV1EmailwebhooksRecordsGet(createdFrom, createdTo, updatedFrom, updatedTo, senderName, senderEmail, recipientName, recipientEmail, statuses, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
319
358
  },
320
359
  /**
321
360
  *
@@ -379,14 +418,28 @@ export interface EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest {
379
418
  * @type {string}
380
419
  * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
381
420
  */
382
- readonly recipient?: string
421
+ readonly senderName?: string
422
+
423
+ /**
424
+ *
425
+ * @type {string}
426
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
427
+ */
428
+ readonly senderEmail?: string
429
+
430
+ /**
431
+ *
432
+ * @type {string}
433
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
434
+ */
435
+ readonly recipientName?: string
383
436
 
384
437
  /**
385
438
  *
386
- * @type {boolean}
439
+ * @type {string}
387
440
  * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
388
441
  */
389
- readonly includeEvents?: boolean
442
+ readonly recipientEmail?: string
390
443
 
391
444
  /**
392
445
  *
@@ -394,6 +447,27 @@ export interface EmailWebhooksApiApiV1EmailwebhooksRecordsGetRequest {
394
447
  * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
395
448
  */
396
449
  readonly statuses?: Array<EmailStatus>
450
+
451
+ /**
452
+ *
453
+ * @type {number}
454
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
455
+ */
456
+ readonly page?: number
457
+
458
+ /**
459
+ *
460
+ * @type {number}
461
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
462
+ */
463
+ readonly limit?: number
464
+
465
+ /**
466
+ *
467
+ * @type {Date}
468
+ * @memberof EmailWebhooksApiApiV1EmailwebhooksRecordsGet
469
+ */
470
+ readonly lastRetrieved?: Date
397
471
  }
398
472
 
399
473
  /**
@@ -451,7 +525,7 @@ export class EmailWebhooksApi extends BaseAPI {
451
525
  * @memberof EmailWebhooksApi
452
526
  */
453
527
  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));
528
+ return EmailWebhooksApiFp(this.configuration).apiV1EmailwebhooksRecordsGet(requestParameters.createdFrom, requestParameters.createdTo, requestParameters.updatedFrom, requestParameters.updatedTo, requestParameters.senderName, requestParameters.senderEmail, requestParameters.recipientName, requestParameters.recipientEmail, requestParameters.statuses, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
455
529
  }
456
530
 
457
531
  /**
@@ -18,10 +18,10 @@
18
18
  import { ArticleTagItemModel } from './article-tag-item-model';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
- import { AuditableEntity } from './auditable-entity';
21
+ import { ArticleType } from './article-type';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
- import { MarketingType } from './marketing-type';
24
+ import { AuditableEntity } from './auditable-entity';
25
25
  // May contain unused imports in some cases
26
26
  // @ts-ignore
27
27
  import { MediaModel } from './media-model';
@@ -64,10 +64,10 @@ export interface ArticleItemModel {
64
64
  'confirmed'?: boolean;
65
65
  /**
66
66
  *
67
- * @type {MarketingType}
67
+ * @type {ArticleType}
68
68
  * @memberof ArticleItemModel
69
69
  */
70
- 'marketingType'?: MarketingType;
70
+ 'articleType'?: ArticleType;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -18,10 +18,10 @@
18
18
  import { ArticleTagItemModel } from './article-tag-item-model';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
- import { AuditableEntity } from './auditable-entity';
21
+ import { ArticleType } from './article-type';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
- import { MarketingType } from './marketing-type';
24
+ import { AuditableEntity } from './auditable-entity';
25
25
  // May contain unused imports in some cases
26
26
  // @ts-ignore
27
27
  import { MediaModel } from './media-model';
@@ -64,10 +64,10 @@ export interface ArticleModel {
64
64
  'confirmed'?: boolean;
65
65
  /**
66
66
  *
67
- * @type {MarketingType}
67
+ * @type {ArticleType}
68
68
  * @memberof ArticleModel
69
69
  */
70
- 'marketingType'?: MarketingType;
70
+ 'articleType'?: ArticleType;
71
71
  /**
72
72
  *
73
73
  * @type {string}
@@ -0,0 +1,33 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+
23
+ export const ArticleType = {
24
+ All: 'All',
25
+ GeneralHealth: 'GeneralHealth',
26
+ Beauty: 'Beauty',
27
+ Tech: 'Tech'
28
+ } as const;
29
+
30
+ export type ArticleType = typeof ArticleType[keyof typeof ArticleType];
31
+
32
+
33
+
@@ -21,7 +21,7 @@ import { ArticleStatus } from './article-status';
21
21
  import { ArticleTagItemModel } from './article-tag-item-model';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
- import { MarketingType } from './marketing-type';
24
+ import { ArticleType } from './article-type';
25
25
  // May contain unused imports in some cases
26
26
  // @ts-ignore
27
27
  import { MediaModel } from './media-model';
@@ -76,10 +76,10 @@ export interface CreateArticleCommand {
76
76
  'status'?: ArticleStatus;
77
77
  /**
78
78
  *
79
- * @type {MarketingType}
79
+ * @type {ArticleType}
80
80
  * @memberof CreateArticleCommand
81
81
  */
82
- 'marketingType'?: MarketingType;
82
+ 'articleType'?: ArticleType;
83
83
  /**
84
84
  *
85
85
  * @type {string}
@@ -20,145 +20,145 @@ import { EmailStatus } from './email-status';
20
20
  /**
21
21
  *
22
22
  * @export
23
- * @interface EmailRecordEventItemModel
23
+ * @interface EmailRecordEventModel
24
24
  */
25
- export interface EmailRecordEventItemModel {
25
+ export interface EmailRecordEventModel {
26
26
  /**
27
27
  *
28
28
  * @type {string}
29
- * @memberof EmailRecordEventItemModel
29
+ * @memberof EmailRecordEventModel
30
30
  */
31
31
  'messageId'?: string | null;
32
32
  /**
33
33
  *
34
34
  * @type {EmailStatus}
35
- * @memberof EmailRecordEventItemModel
35
+ * @memberof EmailRecordEventModel
36
36
  */
37
37
  'event'?: EmailStatus;
38
38
  /**
39
39
  *
40
40
  * @type {string}
41
- * @memberof EmailRecordEventItemModel
41
+ * @memberof EmailRecordEventModel
42
42
  */
43
43
  'eventId'?: string | null;
44
44
  /**
45
45
  *
46
46
  * @type {string}
47
- * @memberof EmailRecordEventItemModel
47
+ * @memberof EmailRecordEventModel
48
48
  */
49
49
  'email'?: string | null;
50
50
  /**
51
51
  *
52
52
  * @type {number}
53
- * @memberof EmailRecordEventItemModel
53
+ * @memberof EmailRecordEventModel
54
54
  */
55
55
  'timestamp'?: number;
56
56
  /**
57
57
  *
58
58
  * @type {string}
59
- * @memberof EmailRecordEventItemModel
59
+ * @memberof EmailRecordEventModel
60
60
  */
61
61
  'smtpId'?: string | null;
62
62
  /**
63
63
  *
64
64
  * @type {string}
65
- * @memberof EmailRecordEventItemModel
65
+ * @memberof EmailRecordEventModel
66
66
  */
67
67
  'userAgent'?: string | null;
68
68
  /**
69
69
  *
70
70
  * @type {string}
71
- * @memberof EmailRecordEventItemModel
71
+ * @memberof EmailRecordEventModel
72
72
  */
73
73
  'ip'?: string | null;
74
74
  /**
75
75
  *
76
76
  * @type {string}
77
- * @memberof EmailRecordEventItemModel
77
+ * @memberof EmailRecordEventModel
78
78
  */
79
79
  'reason'?: string | null;
80
80
  /**
81
81
  *
82
82
  * @type {string}
83
- * @memberof EmailRecordEventItemModel
83
+ * @memberof EmailRecordEventModel
84
84
  */
85
85
  'status'?: string | null;
86
86
  /**
87
87
  *
88
88
  * @type {string}
89
- * @memberof EmailRecordEventItemModel
89
+ * @memberof EmailRecordEventModel
90
90
  */
91
91
  'response'?: string | null;
92
92
  /**
93
93
  *
94
94
  * @type {number}
95
- * @memberof EmailRecordEventItemModel
95
+ * @memberof EmailRecordEventModel
96
96
  */
97
97
  'tls'?: number | null;
98
98
  /**
99
99
  *
100
100
  * @type {string}
101
- * @memberof EmailRecordEventItemModel
101
+ * @memberof EmailRecordEventModel
102
102
  */
103
103
  'url'?: string | null;
104
104
  /**
105
105
  *
106
106
  * @type {Array<string>}
107
- * @memberof EmailRecordEventItemModel
107
+ * @memberof EmailRecordEventModel
108
108
  */
109
109
  'category'?: Array<string> | null;
110
110
  /**
111
111
  *
112
112
  * @type {number}
113
- * @memberof EmailRecordEventItemModel
113
+ * @memberof EmailRecordEventModel
114
114
  */
115
115
  'asmGroupId'?: number | null;
116
116
  /**
117
117
  *
118
118
  * @type {string}
119
- * @memberof EmailRecordEventItemModel
119
+ * @memberof EmailRecordEventModel
120
120
  */
121
121
  'uniqueArgs'?: string | null;
122
122
  /**
123
123
  *
124
124
  * @type {number}
125
- * @memberof EmailRecordEventItemModel
125
+ * @memberof EmailRecordEventModel
126
126
  */
127
127
  'marketingCampaignId'?: number | null;
128
128
  /**
129
129
  *
130
130
  * @type {string}
131
- * @memberof EmailRecordEventItemModel
131
+ * @memberof EmailRecordEventModel
132
132
  */
133
133
  'marketingCampaignName'?: string | null;
134
134
  /**
135
135
  *
136
136
  * @type {string}
137
- * @memberof EmailRecordEventItemModel
137
+ * @memberof EmailRecordEventModel
138
138
  */
139
139
  'attempt'?: string | null;
140
140
  /**
141
141
  *
142
142
  * @type {boolean}
143
- * @memberof EmailRecordEventItemModel
143
+ * @memberof EmailRecordEventModel
144
144
  */
145
145
  'machineAutoOpen'?: boolean | null;
146
146
  /**
147
147
  *
148
148
  * @type {string}
149
- * @memberof EmailRecordEventItemModel
149
+ * @memberof EmailRecordEventModel
150
150
  */
151
151
  'bounceClassification'?: string | null;
152
152
  /**
153
153
  *
154
154
  * @type {string}
155
- * @memberof EmailRecordEventItemModel
155
+ * @memberof EmailRecordEventModel
156
156
  */
157
157
  'type'?: string | null;
158
158
  /**
159
159
  *
160
160
  * @type {Date}
161
- * @memberof EmailRecordEventItemModel
161
+ * @memberof EmailRecordEventModel
162
162
  */
163
163
  'createdDate'?: Date;
164
164
  }
@@ -0,0 +1,87 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { EmailStatus } from './email-status';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface EmailRecordItemModel
24
+ */
25
+ export interface EmailRecordItemModel {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof EmailRecordItemModel
30
+ */
31
+ 'emailRecordId'?: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof EmailRecordItemModel
36
+ */
37
+ 'messageId'?: string | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof EmailRecordItemModel
42
+ */
43
+ 'emailTemplate'?: string | null;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof EmailRecordItemModel
48
+ */
49
+ 'senderEmail'?: string | null;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof EmailRecordItemModel
54
+ */
55
+ 'senderName'?: string | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof EmailRecordItemModel
60
+ */
61
+ 'recipientEmail'?: string | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof EmailRecordItemModel
66
+ */
67
+ 'recipientName'?: string | null;
68
+ /**
69
+ *
70
+ * @type {EmailStatus}
71
+ * @memberof EmailRecordItemModel
72
+ */
73
+ 'status'?: EmailStatus;
74
+ /**
75
+ *
76
+ * @type {Date}
77
+ * @memberof EmailRecordItemModel
78
+ */
79
+ 'createdDate'?: Date;
80
+ /**
81
+ *
82
+ * @type {Date}
83
+ * @memberof EmailRecordItemModel
84
+ */
85
+ 'updatedDate'?: Date | null;
86
+ }
87
+