ch-admin-api-client-typescript 5.36.28 → 5.36.33

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 (55) hide show
  1. package/lib/api/form-templates-api.d.ts +12 -3
  2. package/lib/api/form-templates-api.d.ts.map +1 -1
  3. package/lib/api/form-templates-api.js +12 -6
  4. package/lib/api/promotions-api.d.ts +430 -0
  5. package/lib/api/promotions-api.d.ts.map +1 -0
  6. package/lib/api/promotions-api.js +719 -0
  7. package/lib/api/survey-forms-api.d.ts +12 -3
  8. package/lib/api/survey-forms-api.d.ts.map +1 -1
  9. package/lib/api/survey-forms-api.js +12 -6
  10. package/lib/api.d.ts +1 -0
  11. package/lib/api.d.ts.map +1 -1
  12. package/lib/api.js +1 -0
  13. package/lib/models/create-promotion-command.d.ts +93 -0
  14. package/lib/models/create-promotion-command.d.ts.map +1 -0
  15. package/lib/models/create-promotion-command.js +15 -0
  16. package/lib/models/form-template-item-model.d.ts +6 -6
  17. package/lib/models/form-template-item-model.d.ts.map +1 -1
  18. package/lib/models/form-template-model.d.ts +6 -6
  19. package/lib/models/form-template-model.d.ts.map +1 -1
  20. package/lib/models/index.d.ts +6 -0
  21. package/lib/models/index.d.ts.map +1 -1
  22. package/lib/models/index.js +6 -0
  23. package/lib/models/promotion-item-model.d.ts +92 -0
  24. package/lib/models/promotion-item-model.d.ts.map +1 -0
  25. package/lib/models/promotion-item-model.js +15 -0
  26. package/lib/models/promotion-model.d.ts +99 -0
  27. package/lib/models/promotion-model.d.ts.map +1 -0
  28. package/lib/models/promotion-model.js +15 -0
  29. package/lib/models/promotion-type.d.ts +23 -0
  30. package/lib/models/promotion-type.d.ts.map +1 -0
  31. package/lib/models/promotion-type.js +26 -0
  32. package/lib/models/promotions-model.d.ts +33 -0
  33. package/lib/models/promotions-model.d.ts.map +1 -0
  34. package/lib/models/promotions-model.js +15 -0
  35. package/lib/models/save-form-template-command.d.ts +6 -6
  36. package/lib/models/save-form-template-command.d.ts.map +1 -1
  37. package/lib/models/update-promotion-command.d.ts +87 -0
  38. package/lib/models/update-promotion-command.d.ts.map +1 -0
  39. package/lib/models/update-promotion-command.js +15 -0
  40. package/package.json +1 -1
  41. package/src/.openapi-generator/FILES +7 -0
  42. package/src/api/form-templates-api.ts +20 -6
  43. package/src/api/promotions-api.ts +754 -0
  44. package/src/api/survey-forms-api.ts +20 -6
  45. package/src/api.ts +1 -0
  46. package/src/models/create-promotion-command.ts +102 -0
  47. package/src/models/form-template-item-model.ts +6 -6
  48. package/src/models/form-template-model.ts +6 -6
  49. package/src/models/index.ts +6 -0
  50. package/src/models/promotion-item-model.ts +99 -0
  51. package/src/models/promotion-model.ts +108 -0
  52. package/src/models/promotion-type.ts +32 -0
  53. package/src/models/promotions-model.ts +42 -0
  54. package/src/models/save-form-template-command.ts +6 -6
  55. package/src/models/update-promotion-command.ts +96 -0
@@ -0,0 +1,99 @@
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 { MediaModel } from './media-model';
13
+ import { PromotionType } from './promotion-type';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PromotionModel
18
+ */
19
+ export interface PromotionModel {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof PromotionModel
24
+ */
25
+ 'id'?: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof PromotionModel
30
+ */
31
+ 'hospitalId'?: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof PromotionModel
36
+ */
37
+ 'hospitalName'?: string | null;
38
+ /**
39
+ *
40
+ * @type {PromotionType}
41
+ * @memberof PromotionModel
42
+ */
43
+ 'promotionType'?: PromotionType;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof PromotionModel
48
+ */
49
+ 'order'?: number;
50
+ /**
51
+ *
52
+ * @type {Date}
53
+ * @memberof PromotionModel
54
+ */
55
+ 'start'?: Date | null;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof PromotionModel
60
+ */
61
+ 'end'?: Date | null;
62
+ /**
63
+ *
64
+ * @type {boolean}
65
+ * @memberof PromotionModel
66
+ */
67
+ 'isActivated'?: boolean;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof PromotionModel
72
+ */
73
+ 'targetUrl'?: string | null;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof PromotionModel
78
+ */
79
+ 'languageCode'?: string | null;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof PromotionModel
84
+ */
85
+ 'name'?: string | null;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof PromotionModel
90
+ */
91
+ 'buttonTitle'?: string | null;
92
+ /**
93
+ *
94
+ * @type {Array<MediaModel>}
95
+ * @memberof PromotionModel
96
+ */
97
+ 'medias'?: Array<MediaModel> | null;
98
+ }
99
+ //# sourceMappingURL=promotion-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotion-model.d.ts","sourceRoot":"","sources":["../../src/models/promotion-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;CACvC"}
@@ -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 });
@@ -0,0 +1,23 @@
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
+ * @enum {string}
16
+ */
17
+ export declare const PromotionType: {
18
+ readonly PlainImage: "PlainImage";
19
+ readonly WithCta: "WithCTA";
20
+ readonly WithTextAndCta: "WithTextAndCTA";
21
+ };
22
+ export type PromotionType = typeof PromotionType[keyof typeof PromotionType];
23
+ //# sourceMappingURL=promotion-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotion-type.d.ts","sourceRoot":"","sources":["../../src/models/promotion-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC"}
@@ -0,0 +1,26 @@
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 });
16
+ exports.PromotionType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.PromotionType = {
23
+ PlainImage: 'PlainImage',
24
+ WithCta: 'WithCTA',
25
+ WithTextAndCta: 'WithTextAndCTA'
26
+ };
@@ -0,0 +1,33 @@
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 { PagedListMetaData } from './paged-list-meta-data';
13
+ import { PromotionItemModel } from './promotion-item-model';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PromotionsModel
18
+ */
19
+ export interface PromotionsModel {
20
+ /**
21
+ *
22
+ * @type {Array<PromotionItemModel>}
23
+ * @memberof PromotionsModel
24
+ */
25
+ 'items'?: Array<PromotionItemModel> | null;
26
+ /**
27
+ *
28
+ * @type {PagedListMetaData}
29
+ * @memberof PromotionsModel
30
+ */
31
+ 'metaData'?: PagedListMetaData;
32
+ }
33
+ //# sourceMappingURL=promotions-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promotions-model.d.ts","sourceRoot":"","sources":["../../src/models/promotions-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAC3C;;;;OAIG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAClC"}
@@ -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 });
@@ -36,12 +36,6 @@ export interface SaveFormTemplateCommand {
36
36
  * @memberof SaveFormTemplateCommand
37
37
  */
38
38
  'status'?: FormTemplateStatus;
39
- /**
40
- *
41
- * @type {string}
42
- * @memberof SaveFormTemplateCommand
43
- */
44
- 'hospitalId'?: string | null;
45
39
  /**
46
40
  *
47
41
  * @type {string}
@@ -60,6 +54,12 @@ export interface SaveFormTemplateCommand {
60
54
  * @memberof SaveFormTemplateCommand
61
55
  */
62
56
  'isConfirmed'?: boolean;
57
+ /**
58
+ *
59
+ * @type {string}
60
+ * @memberof SaveFormTemplateCommand
61
+ */
62
+ 'hospitalId'?: string;
63
63
  /**
64
64
  *
65
65
  * @type {string}
@@ -1 +1 @@
1
- {"version":3,"file":"save-form-template-command.d.ts","sourceRoot":"","sources":["../../src/models/save-form-template-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;CACpD"}
1
+ {"version":3,"file":"save-form-template-command.d.ts","sourceRoot":"","sources":["../../src/models/save-form-template-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;CACpD"}
@@ -0,0 +1,87 @@
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 { MediaModel } from './media-model';
13
+ import { PromotionType } from './promotion-type';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface UpdatePromotionCommand
18
+ */
19
+ export interface UpdatePromotionCommand {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof UpdatePromotionCommand
24
+ */
25
+ 'languageCode'?: string | null;
26
+ /**
27
+ *
28
+ * @type {PromotionType}
29
+ * @memberof UpdatePromotionCommand
30
+ */
31
+ 'promotionType'?: PromotionType;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof UpdatePromotionCommand
36
+ */
37
+ 'order'?: number;
38
+ /**
39
+ *
40
+ * @type {Date}
41
+ * @memberof UpdatePromotionCommand
42
+ */
43
+ 'start'?: Date | null;
44
+ /**
45
+ *
46
+ * @type {Date}
47
+ * @memberof UpdatePromotionCommand
48
+ */
49
+ 'end'?: Date | null;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof UpdatePromotionCommand
54
+ */
55
+ 'isActivated'?: boolean;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof UpdatePromotionCommand
60
+ */
61
+ 'targetUrl'?: string | null;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof UpdatePromotionCommand
66
+ */
67
+ 'name'?: string | null;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof UpdatePromotionCommand
72
+ */
73
+ 'buttonTitle'?: string | null;
74
+ /**
75
+ *
76
+ * @type {boolean}
77
+ * @memberof UpdatePromotionCommand
78
+ */
79
+ 'isConfirmed'?: boolean;
80
+ /**
81
+ *
82
+ * @type {Array<MediaModel>}
83
+ * @memberof UpdatePromotionCommand
84
+ */
85
+ 'medias'?: Array<MediaModel> | null;
86
+ }
87
+ //# sourceMappingURL=update-promotion-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-promotion-command.d.ts","sourceRoot":"","sources":["../../src/models/update-promotion-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;CACvC"}
@@ -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.36.28",
3
+ "version": "5.36.33",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -44,6 +44,7 @@ api/payments-api.ts
44
44
  api/plans-api.ts
45
45
  api/prescriptions-api.ts
46
46
  api/profiles-api.ts
47
+ api/promotions-api.ts
47
48
  api/search-api.ts
48
49
  api/search-curations-api.ts
49
50
  api/service-reviews-api.ts
@@ -211,6 +212,7 @@ models/create-plan-hospital-command.ts
211
212
  models/create-policy-command.ts
212
213
  models/create-prescription-command.ts
213
214
  models/create-profile-command.ts
215
+ models/create-promotion-command.ts
214
216
  models/create-service-category-command.ts
215
217
  models/create-service-review-command.ts
216
218
  models/create-specialty-command.ts
@@ -455,6 +457,10 @@ models/prescription-symptom-item-model.ts
455
457
  models/prescriptions-model.ts
456
458
  models/problem-details.ts
457
459
  models/procedure.ts
460
+ models/promotion-item-model.ts
461
+ models/promotion-model.ts
462
+ models/promotion-type.ts
463
+ models/promotions-model.ts
458
464
  models/recurring-interval.ts
459
465
  models/refund-policy.ts
460
466
  models/refund-status.ts
@@ -624,6 +630,7 @@ models/update-plan-hospital-command.ts
624
630
  models/update-policy-command.ts
625
631
  models/update-prescription-command.ts
626
632
  models/update-profile-command.ts
633
+ models/update-promotion-command.ts
627
634
  models/update-service-category-command.ts
628
635
  models/update-service-review-command.ts
629
636
  models/update-specialty-command.ts
@@ -310,6 +310,7 @@ export const FormTemplatesApiAxiosParamCreator = function (configuration?: Confi
310
310
  * @param {FormTemplatePlatform} [platform]
311
311
  * @param {FormTemplateType} [formTemplateType]
312
312
  * @param {FormTemplateStatus} [status]
313
+ * @param {boolean} [isShared]
313
314
  * @param {boolean} [showHidden]
314
315
  * @param {number} [page]
315
316
  * @param {number} [limit]
@@ -317,7 +318,7 @@ export const FormTemplatesApiAxiosParamCreator = function (configuration?: Confi
317
318
  * @param {*} [options] Override http request option.
318
319
  * @throws {RequiredError}
319
320
  */
320
- apiV1FormtemplatesGet: async (languageCode?: string, name?: string, hospitalId?: string, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormTemplateStatus, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
321
+ apiV1FormtemplatesGet: async (languageCode?: string, name?: string, hospitalId?: string, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormTemplateStatus, isShared?: boolean, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
321
322
  const localVarPath = `/api/v1/formtemplates`;
322
323
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
323
324
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -358,6 +359,10 @@ export const FormTemplatesApiAxiosParamCreator = function (configuration?: Confi
358
359
  localVarQueryParameter['Status'] = status;
359
360
  }
360
361
 
362
+ if (isShared !== undefined) {
363
+ localVarQueryParameter['IsShared'] = isShared;
364
+ }
365
+
361
366
  if (showHidden !== undefined) {
362
367
  localVarQueryParameter['ShowHidden'] = showHidden;
363
368
  }
@@ -517,6 +522,7 @@ export const FormTemplatesApiFp = function(configuration?: Configuration) {
517
522
  * @param {FormTemplatePlatform} [platform]
518
523
  * @param {FormTemplateType} [formTemplateType]
519
524
  * @param {FormTemplateStatus} [status]
525
+ * @param {boolean} [isShared]
520
526
  * @param {boolean} [showHidden]
521
527
  * @param {number} [page]
522
528
  * @param {number} [limit]
@@ -524,8 +530,8 @@ export const FormTemplatesApiFp = function(configuration?: Configuration) {
524
530
  * @param {*} [options] Override http request option.
525
531
  * @throws {RequiredError}
526
532
  */
527
- async apiV1FormtemplatesGet(languageCode?: string, name?: string, hospitalId?: string, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormTemplateStatus, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormTemplatesModel>> {
528
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FormtemplatesGet(languageCode, name, hospitalId, platform, formTemplateType, status, showHidden, page, limit, lastRetrieved, options);
533
+ async apiV1FormtemplatesGet(languageCode?: string, name?: string, hospitalId?: string, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormTemplateStatus, isShared?: boolean, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FormTemplatesModel>> {
534
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FormtemplatesGet(languageCode, name, hospitalId, platform, formTemplateType, status, isShared, showHidden, page, limit, lastRetrieved, options);
529
535
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
530
536
  },
531
537
  /**
@@ -625,6 +631,7 @@ export const FormTemplatesApiFactory = function (configuration?: Configuration,
625
631
  * @param {FormTemplatePlatform} [platform]
626
632
  * @param {FormTemplateType} [formTemplateType]
627
633
  * @param {FormTemplateStatus} [status]
634
+ * @param {boolean} [isShared]
628
635
  * @param {boolean} [showHidden]
629
636
  * @param {number} [page]
630
637
  * @param {number} [limit]
@@ -632,8 +639,8 @@ export const FormTemplatesApiFactory = function (configuration?: Configuration,
632
639
  * @param {*} [options] Override http request option.
633
640
  * @throws {RequiredError}
634
641
  */
635
- apiV1FormtemplatesGet(languageCode?: string, name?: string, hospitalId?: string, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormTemplateStatus, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FormTemplatesModel> {
636
- return localVarFp.apiV1FormtemplatesGet(languageCode, name, hospitalId, platform, formTemplateType, status, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
642
+ apiV1FormtemplatesGet(languageCode?: string, name?: string, hospitalId?: string, platform?: FormTemplatePlatform, formTemplateType?: FormTemplateType, status?: FormTemplateStatus, isShared?: boolean, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<FormTemplatesModel> {
643
+ return localVarFp.apiV1FormtemplatesGet(languageCode, name, hospitalId, platform, formTemplateType, status, isShared, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
637
644
  },
638
645
  /**
639
646
  *
@@ -829,6 +836,13 @@ export interface FormTemplatesApiApiV1FormtemplatesGetRequest {
829
836
  */
830
837
  readonly status?: FormTemplateStatus
831
838
 
839
+ /**
840
+ *
841
+ * @type {boolean}
842
+ * @memberof FormTemplatesApiApiV1FormtemplatesGet
843
+ */
844
+ readonly isShared?: boolean
845
+
832
846
  /**
833
847
  *
834
848
  * @type {boolean}
@@ -960,7 +974,7 @@ export class FormTemplatesApi extends BaseAPI {
960
974
  * @memberof FormTemplatesApi
961
975
  */
962
976
  public apiV1FormtemplatesGet(requestParameters: FormTemplatesApiApiV1FormtemplatesGetRequest = {}, options?: AxiosRequestConfig) {
963
- return FormTemplatesApiFp(this.configuration).apiV1FormtemplatesGet(requestParameters.languageCode, requestParameters.name, requestParameters.hospitalId, requestParameters.platform, requestParameters.formTemplateType, requestParameters.status, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
977
+ return FormTemplatesApiFp(this.configuration).apiV1FormtemplatesGet(requestParameters.languageCode, requestParameters.name, requestParameters.hospitalId, requestParameters.platform, requestParameters.formTemplateType, requestParameters.status, requestParameters.isShared, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
964
978
  }
965
979
 
966
980
  /**