ch-admin-api-client-typescript 2.2.8 → 2.2.16

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.
package/src/api.ts CHANGED
@@ -890,6 +890,50 @@ export interface ArticleTagItemModel {
890
890
  */
891
891
  'order'?: number;
892
892
  }
893
+ /**
894
+ *
895
+ * @export
896
+ * @interface ArticleTagModel
897
+ */
898
+ export interface ArticleTagModel {
899
+ /**
900
+ *
901
+ * @type {string}
902
+ * @memberof ArticleTagModel
903
+ */
904
+ 'articleId'?: string;
905
+ /**
906
+ *
907
+ * @type {string}
908
+ * @memberof ArticleTagModel
909
+ */
910
+ 'tagId'?: string | null;
911
+ /**
912
+ *
913
+ * @type {number}
914
+ * @memberof ArticleTagModel
915
+ */
916
+ 'order'?: number;
917
+ }
918
+ /**
919
+ *
920
+ * @export
921
+ * @interface ArticleTagsModel
922
+ */
923
+ export interface ArticleTagsModel {
924
+ /**
925
+ *
926
+ * @type {Array<ArticleTagItemModel>}
927
+ * @memberof ArticleTagsModel
928
+ */
929
+ 'items'?: Array<ArticleTagItemModel> | null;
930
+ /**
931
+ *
932
+ * @type {PagedListMetaData}
933
+ * @memberof ArticleTagsModel
934
+ */
935
+ 'metaData'?: PagedListMetaData;
936
+ }
893
937
  /**
894
938
  *
895
939
  * @export
@@ -1652,6 +1696,19 @@ export interface BookingsModel {
1652
1696
  */
1653
1697
  'metaData'?: PagedListMetaData;
1654
1698
  }
1699
+ /**
1700
+ *
1701
+ * @export
1702
+ * @interface ChangeEmailCommand
1703
+ */
1704
+ export interface ChangeEmailCommand {
1705
+ /**
1706
+ *
1707
+ * @type {string}
1708
+ * @memberof ChangeEmailCommand
1709
+ */
1710
+ 'email'?: string | null;
1711
+ }
1655
1712
  /**
1656
1713
  *
1657
1714
  * @export
@@ -1825,6 +1882,19 @@ export interface CommunicationUserTokenModel {
1825
1882
  */
1826
1883
  'gateway'?: string | null;
1827
1884
  }
1885
+ /**
1886
+ *
1887
+ * @export
1888
+ * @interface ConfirmEmailCommand
1889
+ */
1890
+ export interface ConfirmEmailCommand {
1891
+ /**
1892
+ *
1893
+ * @type {string}
1894
+ * @memberof ConfirmEmailCommand
1895
+ */
1896
+ 'code'?: string | null;
1897
+ }
1828
1898
  /**
1829
1899
  *
1830
1900
  * @export
@@ -3322,6 +3392,25 @@ export interface CreateArticleSourceCommand {
3322
3392
  */
3323
3393
  'order'?: number;
3324
3394
  }
3395
+ /**
3396
+ *
3397
+ * @export
3398
+ * @interface CreateArticleTagCommand
3399
+ */
3400
+ export interface CreateArticleTagCommand {
3401
+ /**
3402
+ *
3403
+ * @type {string}
3404
+ * @memberof CreateArticleTagCommand
3405
+ */
3406
+ 'articleId'?: string;
3407
+ /**
3408
+ *
3409
+ * @type {string}
3410
+ * @memberof CreateArticleTagCommand
3411
+ */
3412
+ 'tagId'?: string | null;
3413
+ }
3325
3414
  /**
3326
3415
  *
3327
3416
  * @export
@@ -4085,6 +4174,91 @@ export interface CreateHospitalSpecialtyCommand {
4085
4174
  */
4086
4175
  'order'?: number;
4087
4176
  }
4177
+ /**
4178
+ *
4179
+ * @export
4180
+ * @interface CreateManagerCommand
4181
+ */
4182
+ export interface CreateManagerCommand {
4183
+ /**
4184
+ *
4185
+ * @type {string}
4186
+ * @memberof CreateManagerCommand
4187
+ */
4188
+ 'firstName'?: string | null;
4189
+ /**
4190
+ *
4191
+ * @type {string}
4192
+ * @memberof CreateManagerCommand
4193
+ */
4194
+ 'lastName'?: string | null;
4195
+ /**
4196
+ *
4197
+ * @type {string}
4198
+ * @memberof CreateManagerCommand
4199
+ */
4200
+ 'phone'?: string | null;
4201
+ /**
4202
+ *
4203
+ * @type {string}
4204
+ * @memberof CreateManagerCommand
4205
+ */
4206
+ 'photo'?: string | null;
4207
+ /**
4208
+ *
4209
+ * @type {string}
4210
+ * @memberof CreateManagerCommand
4211
+ */
4212
+ 'photoThumbnail'?: string | null;
4213
+ /**
4214
+ *
4215
+ * @type {Gender}
4216
+ * @memberof CreateManagerCommand
4217
+ */
4218
+ 'gender'?: Gender;
4219
+ /**
4220
+ *
4221
+ * @type {Date}
4222
+ * @memberof CreateManagerCommand
4223
+ */
4224
+ 'dateOfBirth'?: Date | null;
4225
+ /**
4226
+ *
4227
+ * @type {Array<MediaModel>}
4228
+ * @memberof CreateManagerCommand
4229
+ */
4230
+ 'medias'?: Array<MediaModel> | null;
4231
+ /**
4232
+ *
4233
+ * @type {Array<UserLanguageModel>}
4234
+ * @memberof CreateManagerCommand
4235
+ */
4236
+ 'languages'?: Array<UserLanguageModel> | null;
4237
+ /**
4238
+ *
4239
+ * @type {Array<UserLocationModel>}
4240
+ * @memberof CreateManagerCommand
4241
+ */
4242
+ 'locations'?: Array<UserLocationModel> | null;
4243
+ /**
4244
+ *
4245
+ * @type {string}
4246
+ * @memberof CreateManagerCommand
4247
+ */
4248
+ 'userName'?: string | null;
4249
+ /**
4250
+ *
4251
+ * @type {string}
4252
+ * @memberof CreateManagerCommand
4253
+ */
4254
+ 'email'?: string | null;
4255
+ /**
4256
+ *
4257
+ * @type {string}
4258
+ * @memberof CreateManagerCommand
4259
+ */
4260
+ 'hospitalId'?: string;
4261
+ }
4088
4262
  /**
4089
4263
  *
4090
4264
  * @export
@@ -4122,6 +4296,74 @@ export interface CreateMediaCommand {
4122
4296
  */
4123
4297
  'order'?: number;
4124
4298
  }
4299
+ /**
4300
+ *
4301
+ * @export
4302
+ * @interface CreatePlanCommand
4303
+ */
4304
+ export interface CreatePlanCommand {
4305
+ /**
4306
+ *
4307
+ * @type {string}
4308
+ * @memberof CreatePlanCommand
4309
+ */
4310
+ 'name'?: string | null;
4311
+ /**
4312
+ *
4313
+ * @type {number}
4314
+ * @memberof CreatePlanCommand
4315
+ */
4316
+ 'memberLimit'?: number;
4317
+ /**
4318
+ *
4319
+ * @type {number}
4320
+ * @memberof CreatePlanCommand
4321
+ */
4322
+ 'unitPrice'?: number;
4323
+ /**
4324
+ *
4325
+ * @type {string}
4326
+ * @memberof CreatePlanCommand
4327
+ */
4328
+ 'stripePriceId'?: string | null;
4329
+ /**
4330
+ *
4331
+ * @type {RecurringInterval}
4332
+ * @memberof CreatePlanCommand
4333
+ */
4334
+ 'interval'?: RecurringInterval;
4335
+ /**
4336
+ *
4337
+ * @type {boolean}
4338
+ * @memberof CreatePlanCommand
4339
+ */
4340
+ 'isActive'?: boolean;
4341
+ /**
4342
+ *
4343
+ * @type {number}
4344
+ * @memberof CreatePlanCommand
4345
+ */
4346
+ 'order'?: number;
4347
+ }
4348
+ /**
4349
+ *
4350
+ * @export
4351
+ * @interface CreatePlanHospitalCommand
4352
+ */
4353
+ export interface CreatePlanHospitalCommand {
4354
+ /**
4355
+ *
4356
+ * @type {string}
4357
+ * @memberof CreatePlanHospitalCommand
4358
+ */
4359
+ 'hospitalId'?: string;
4360
+ /**
4361
+ *
4362
+ * @type {number}
4363
+ * @memberof CreatePlanHospitalCommand
4364
+ */
4365
+ 'order'?: number;
4366
+ }
4125
4367
  /**
4126
4368
  *
4127
4369
  * @export
@@ -4937,6 +5179,19 @@ export interface DealsModel {
4937
5179
  */
4938
5180
  'metaData'?: PagedListMetaData;
4939
5181
  }
5182
+ /**
5183
+ *
5184
+ * @export
5185
+ * @interface DeleteArticleTagCommand
5186
+ */
5187
+ export interface DeleteArticleTagCommand {
5188
+ /**
5189
+ *
5190
+ * @type {string}
5191
+ * @memberof DeleteArticleTagCommand
5192
+ */
5193
+ 'tagId'?: string | null;
5194
+ }
4940
5195
  /**
4941
5196
  *
4942
5197
  * @export
@@ -8747,76 +9002,277 @@ export interface ManagerAffiliation {
8747
9002
  /**
8748
9003
  *
8749
9004
  * @export
8750
- * @enum {string}
8751
- */
8752
-
8753
- export enum MarketingType {
8754
- Both = 'Both',
8755
- GeneralHealth = 'GeneralHealth',
8756
- Beauty = 'Beauty'
8757
- }
8758
-
8759
- /**
8760
- *
8761
- * @export
8762
- * @interface Media
9005
+ * @interface ManagerAffiliationModel
8763
9006
  */
8764
- export interface Media {
9007
+ export interface ManagerAffiliationModel {
8765
9008
  /**
8766
9009
  *
8767
9010
  * @type {string}
8768
- * @memberof Media
9011
+ * @memberof ManagerAffiliationModel
8769
9012
  */
8770
- 'id'?: string;
9013
+ 'hospitalId'?: string;
8771
9014
  /**
8772
9015
  *
8773
- * @type {MediaType}
8774
- * @memberof Media
9016
+ * @type {string}
9017
+ * @memberof ManagerAffiliationModel
8775
9018
  */
8776
- 'mediaType'?: MediaType;
9019
+ 'hospitalName'?: string | null;
8777
9020
  /**
8778
9021
  *
8779
9022
  * @type {string}
8780
- * @memberof Media
9023
+ * @memberof ManagerAffiliationModel
8781
9024
  */
8782
- 'url'?: string | null;
9025
+ 'hospitalSlug'?: string | null;
8783
9026
  /**
8784
9027
  *
8785
9028
  * @type {string}
8786
- * @memberof Media
9029
+ * @memberof ManagerAffiliationModel
8787
9030
  */
8788
- 'thumbnailUrl'?: string | null;
9031
+ 'countryId'?: string;
8789
9032
  /**
8790
9033
  *
8791
9034
  * @type {string}
8792
- * @memberof Media
9035
+ * @memberof ManagerAffiliationModel
8793
9036
  */
8794
- 'description'?: string | null;
9037
+ 'countryName'?: string | null;
8795
9038
  /**
8796
9039
  *
8797
- * @type {number}
8798
- * @memberof Media
9040
+ * @type {string}
9041
+ * @memberof ManagerAffiliationModel
8799
9042
  */
8800
- 'height'?: number;
9043
+ 'stateName'?: string | null;
8801
9044
  /**
8802
9045
  *
8803
- * @type {number}
8804
- * @memberof Media
9046
+ * @type {string}
9047
+ * @memberof ManagerAffiliationModel
8805
9048
  */
8806
- 'width'?: number;
9049
+ 'cityName'?: string | null;
8807
9050
  /**
8808
9051
  *
8809
- * @type {number}
8810
- * @memberof Media
9052
+ * @type {string}
9053
+ * @memberof ManagerAffiliationModel
8811
9054
  */
8812
- 'order'?: number;
9055
+ 'managerId'?: string;
9056
+ /**
9057
+ *
9058
+ * @type {string}
9059
+ * @memberof ManagerAffiliationModel
9060
+ */
9061
+ 'managerName'?: string | null;
8813
9062
  }
8814
9063
  /**
8815
9064
  *
8816
9065
  * @export
8817
- * @interface MediaModel
9066
+ * @interface ManagerModel
8818
9067
  */
8819
- export interface MediaModel {
9068
+ export interface ManagerModel {
9069
+ /**
9070
+ *
9071
+ * @type {string}
9072
+ * @memberof ManagerModel
9073
+ */
9074
+ 'id'?: string;
9075
+ /**
9076
+ *
9077
+ * @type {string}
9078
+ * @memberof ManagerModel
9079
+ */
9080
+ 'userName'?: string | null;
9081
+ /**
9082
+ *
9083
+ * @type {string}
9084
+ * @memberof ManagerModel
9085
+ */
9086
+ 'firstName'?: string | null;
9087
+ /**
9088
+ *
9089
+ * @type {string}
9090
+ * @memberof ManagerModel
9091
+ */
9092
+ 'lastName'?: string | null;
9093
+ /**
9094
+ *
9095
+ * @type {string}
9096
+ * @memberof ManagerModel
9097
+ */
9098
+ 'fullname'?: string | null;
9099
+ /**
9100
+ *
9101
+ * @type {string}
9102
+ * @memberof ManagerModel
9103
+ */
9104
+ 'phone'?: string | null;
9105
+ /**
9106
+ *
9107
+ * @type {string}
9108
+ * @memberof ManagerModel
9109
+ */
9110
+ 'email'?: string | null;
9111
+ /**
9112
+ *
9113
+ * @type {string}
9114
+ * @memberof ManagerModel
9115
+ */
9116
+ 'photo'?: string | null;
9117
+ /**
9118
+ *
9119
+ * @type {string}
9120
+ * @memberof ManagerModel
9121
+ */
9122
+ 'photoThumbnail'?: string | null;
9123
+ /**
9124
+ *
9125
+ * @type {Gender}
9126
+ * @memberof ManagerModel
9127
+ */
9128
+ 'gender'?: Gender;
9129
+ /**
9130
+ *
9131
+ * @type {Date}
9132
+ * @memberof ManagerModel
9133
+ */
9134
+ 'dateOfBirth'?: Date | null;
9135
+ /**
9136
+ *
9137
+ * @type {string}
9138
+ * @memberof ManagerModel
9139
+ */
9140
+ 'timeZone'?: string | null;
9141
+ /**
9142
+ *
9143
+ * @type {string}
9144
+ * @memberof ManagerModel
9145
+ */
9146
+ 'communicationUserId'?: string | null;
9147
+ /**
9148
+ *
9149
+ * @type {AuditableEntity}
9150
+ * @memberof ManagerModel
9151
+ */
9152
+ 'auditableEntity'?: AuditableEntity;
9153
+ /**
9154
+ *
9155
+ * @type {string}
9156
+ * @memberof ManagerModel
9157
+ */
9158
+ 'userType'?: string | null;
9159
+ /**
9160
+ *
9161
+ * @type {Array<UserLanguageModel>}
9162
+ * @memberof ManagerModel
9163
+ */
9164
+ 'languages'?: Array<UserLanguageModel> | null;
9165
+ /**
9166
+ *
9167
+ * @type {Array<UserLocationModel>}
9168
+ * @memberof ManagerModel
9169
+ */
9170
+ 'locations'?: Array<UserLocationModel> | null;
9171
+ /**
9172
+ *
9173
+ * @type {string}
9174
+ * @memberof ManagerModel
9175
+ */
9176
+ 'hospitalId'?: string;
9177
+ /**
9178
+ *
9179
+ * @type {Array<ManagerAffiliationModel>}
9180
+ * @memberof ManagerModel
9181
+ */
9182
+ 'affiliations'?: Array<ManagerAffiliationModel> | null;
9183
+ }
9184
+ /**
9185
+ *
9186
+ * @export
9187
+ * @interface ManagersModel
9188
+ */
9189
+ export interface ManagersModel {
9190
+ /**
9191
+ *
9192
+ * @type {Array<UserItemModel>}
9193
+ * @memberof ManagersModel
9194
+ */
9195
+ 'items'?: Array<UserItemModel> | null;
9196
+ /**
9197
+ *
9198
+ * @type {PagedListMetaData}
9199
+ * @memberof ManagersModel
9200
+ */
9201
+ 'metaData'?: PagedListMetaData;
9202
+ }
9203
+ /**
9204
+ *
9205
+ * @export
9206
+ * @enum {string}
9207
+ */
9208
+
9209
+ export enum MarketingType {
9210
+ Both = 'Both',
9211
+ GeneralHealth = 'GeneralHealth',
9212
+ Beauty = 'Beauty'
9213
+ }
9214
+
9215
+ /**
9216
+ *
9217
+ * @export
9218
+ * @interface Media
9219
+ */
9220
+ export interface Media {
9221
+ /**
9222
+ *
9223
+ * @type {string}
9224
+ * @memberof Media
9225
+ */
9226
+ 'id'?: string;
9227
+ /**
9228
+ *
9229
+ * @type {MediaType}
9230
+ * @memberof Media
9231
+ */
9232
+ 'mediaType'?: MediaType;
9233
+ /**
9234
+ *
9235
+ * @type {string}
9236
+ * @memberof Media
9237
+ */
9238
+ 'url'?: string | null;
9239
+ /**
9240
+ *
9241
+ * @type {string}
9242
+ * @memberof Media
9243
+ */
9244
+ 'thumbnailUrl'?: string | null;
9245
+ /**
9246
+ *
9247
+ * @type {string}
9248
+ * @memberof Media
9249
+ */
9250
+ 'description'?: string | null;
9251
+ /**
9252
+ *
9253
+ * @type {number}
9254
+ * @memberof Media
9255
+ */
9256
+ 'height'?: number;
9257
+ /**
9258
+ *
9259
+ * @type {number}
9260
+ * @memberof Media
9261
+ */
9262
+ 'width'?: number;
9263
+ /**
9264
+ *
9265
+ * @type {number}
9266
+ * @memberof Media
9267
+ */
9268
+ 'order'?: number;
9269
+ }
9270
+ /**
9271
+ *
9272
+ * @export
9273
+ * @interface MediaModel
9274
+ */
9275
+ export interface MediaModel {
8820
9276
  /**
8821
9277
  *
8822
9278
  * @type {string}
@@ -9592,114 +10048,336 @@ export interface Plan {
9592
10048
  /**
9593
10049
  *
9594
10050
  * @export
9595
- * @enum {string}
9596
- */
9597
-
9598
- export enum Platform {
9599
- Web = 'Web',
9600
- IOs = 'iOS',
9601
- Android = 'Android'
9602
- }
9603
-
9604
- /**
9605
- *
9606
- * @export
9607
- * @interface ProblemDetails
10051
+ * @interface PlanHospitalItemModel
9608
10052
  */
9609
- export interface ProblemDetails {
9610
- [key: string]: any | any;
9611
-
10053
+ export interface PlanHospitalItemModel {
9612
10054
  /**
9613
10055
  *
9614
10056
  * @type {string}
9615
- * @memberof ProblemDetails
10057
+ * @memberof PlanHospitalItemModel
9616
10058
  */
9617
- 'type'?: string | null;
10059
+ 'planId'?: string;
9618
10060
  /**
9619
10061
  *
9620
10062
  * @type {string}
9621
- * @memberof ProblemDetails
10063
+ * @memberof PlanHospitalItemModel
9622
10064
  */
9623
- 'title'?: string | null;
10065
+ 'planName'?: string | null;
9624
10066
  /**
9625
10067
  *
9626
- * @type {number}
9627
- * @memberof ProblemDetails
10068
+ * @type {string}
10069
+ * @memberof PlanHospitalItemModel
9628
10070
  */
9629
- 'status'?: number | null;
10071
+ 'hospitalId'?: string;
9630
10072
  /**
9631
10073
  *
9632
10074
  * @type {string}
9633
- * @memberof ProblemDetails
10075
+ * @memberof PlanHospitalItemModel
9634
10076
  */
9635
- 'detail'?: string | null;
10077
+ 'hospitalName'?: string | null;
9636
10078
  /**
9637
10079
  *
9638
- * @type {string}
9639
- * @memberof ProblemDetails
10080
+ * @type {number}
10081
+ * @memberof PlanHospitalItemModel
9640
10082
  */
9641
- 'instance'?: string | null;
9642
- }
9643
- /**
9644
- *
9645
- * @export
9646
- * @enum {string}
9647
- */
9648
-
9649
- export enum Procedure {
9650
- Treatment = 'Treatment',
9651
- Diagnostic = 'Diagnostic'
10083
+ 'order'?: number;
9652
10084
  }
9653
-
9654
10085
  /**
9655
10086
  *
9656
10087
  * @export
9657
- * @interface Question
10088
+ * @interface PlanHospitalModel
9658
10089
  */
9659
- export interface Question {
10090
+ export interface PlanHospitalModel {
9660
10091
  /**
9661
10092
  *
9662
10093
  * @type {string}
9663
- * @memberof Question
10094
+ * @memberof PlanHospitalModel
9664
10095
  */
9665
- 'id'?: string;
10096
+ 'planId'?: string;
9666
10097
  /**
9667
10098
  *
9668
10099
  * @type {string}
9669
- * @memberof Question
10100
+ * @memberof PlanHospitalModel
9670
10101
  */
9671
- 'title'?: string | null;
10102
+ 'planName'?: string | null;
9672
10103
  /**
9673
10104
  *
9674
10105
  * @type {string}
9675
- * @memberof Question
10106
+ * @memberof PlanHospitalModel
9676
10107
  */
9677
- 'normalizedTitle'?: string | null;
10108
+ 'hospitalId'?: string;
9678
10109
  /**
9679
10110
  *
9680
10111
  * @type {string}
9681
- * @memberof Question
10112
+ * @memberof PlanHospitalModel
9682
10113
  */
9683
- 'body'?: string | null;
10114
+ 'hospitalName'?: string | null;
9684
10115
  /**
9685
10116
  *
9686
- * @type {QuestionType}
9687
- * @memberof Question
10117
+ * @type {number}
10118
+ * @memberof PlanHospitalModel
9688
10119
  */
9689
- 'questionType'?: QuestionType;
10120
+ 'order'?: number;
10121
+ }
10122
+ /**
10123
+ *
10124
+ * @export
10125
+ * @interface PlanHospitalsModel
10126
+ */
10127
+ export interface PlanHospitalsModel {
9690
10128
  /**
9691
10129
  *
9692
- * @type {QuestionStatus}
9693
- * @memberof Question
10130
+ * @type {Array<PlanHospitalItemModel>}
10131
+ * @memberof PlanHospitalsModel
9694
10132
  */
9695
- 'questionStatus'?: QuestionStatus;
10133
+ 'items'?: Array<PlanHospitalItemModel> | null;
9696
10134
  /**
9697
10135
  *
9698
- * @type {string}
9699
- * @memberof Question
10136
+ * @type {PagedListMetaData}
10137
+ * @memberof PlanHospitalsModel
9700
10138
  */
9701
- 'patientId'?: string;
9702
- /**
10139
+ 'metaData'?: PagedListMetaData;
10140
+ }
10141
+ /**
10142
+ *
10143
+ * @export
10144
+ * @interface PlanItemModel
10145
+ */
10146
+ export interface PlanItemModel {
10147
+ /**
10148
+ *
10149
+ * @type {string}
10150
+ * @memberof PlanItemModel
10151
+ */
10152
+ 'id'?: string;
10153
+ /**
10154
+ *
10155
+ * @type {string}
10156
+ * @memberof PlanItemModel
10157
+ */
10158
+ 'name'?: string | null;
10159
+ /**
10160
+ *
10161
+ * @type {number}
10162
+ * @memberof PlanItemModel
10163
+ */
10164
+ 'memberLimit'?: number;
10165
+ /**
10166
+ *
10167
+ * @type {number}
10168
+ * @memberof PlanItemModel
10169
+ */
10170
+ 'unitPrice'?: number;
10171
+ /**
10172
+ *
10173
+ * @type {string}
10174
+ * @memberof PlanItemModel
10175
+ */
10176
+ 'stripePriceId'?: string | null;
10177
+ /**
10178
+ *
10179
+ * @type {RecurringInterval}
10180
+ * @memberof PlanItemModel
10181
+ */
10182
+ 'interval'?: RecurringInterval;
10183
+ /**
10184
+ *
10185
+ * @type {boolean}
10186
+ * @memberof PlanItemModel
10187
+ */
10188
+ 'isActive'?: boolean;
10189
+ /**
10190
+ *
10191
+ * @type {number}
10192
+ * @memberof PlanItemModel
10193
+ */
10194
+ 'order'?: number;
10195
+ }
10196
+ /**
10197
+ *
10198
+ * @export
10199
+ * @interface PlanModel
10200
+ */
10201
+ export interface PlanModel {
10202
+ /**
10203
+ *
10204
+ * @type {string}
10205
+ * @memberof PlanModel
10206
+ */
10207
+ 'id'?: string;
10208
+ /**
10209
+ *
10210
+ * @type {string}
10211
+ * @memberof PlanModel
10212
+ */
10213
+ 'name'?: string | null;
10214
+ /**
10215
+ *
10216
+ * @type {number}
10217
+ * @memberof PlanModel
10218
+ */
10219
+ 'memberLimit'?: number;
10220
+ /**
10221
+ *
10222
+ * @type {number}
10223
+ * @memberof PlanModel
10224
+ */
10225
+ 'unitPrice'?: number;
10226
+ /**
10227
+ *
10228
+ * @type {string}
10229
+ * @memberof PlanModel
10230
+ */
10231
+ 'stripePriceId'?: string | null;
10232
+ /**
10233
+ *
10234
+ * @type {RecurringInterval}
10235
+ * @memberof PlanModel
10236
+ */
10237
+ 'interval'?: RecurringInterval;
10238
+ /**
10239
+ *
10240
+ * @type {boolean}
10241
+ * @memberof PlanModel
10242
+ */
10243
+ 'isActive'?: boolean;
10244
+ /**
10245
+ *
10246
+ * @type {number}
10247
+ * @memberof PlanModel
10248
+ */
10249
+ 'order'?: number;
10250
+ }
10251
+ /**
10252
+ *
10253
+ * @export
10254
+ * @interface PlansModel
10255
+ */
10256
+ export interface PlansModel {
10257
+ /**
10258
+ *
10259
+ * @type {Array<PlanItemModel>}
10260
+ * @memberof PlansModel
10261
+ */
10262
+ 'items'?: Array<PlanItemModel> | null;
10263
+ /**
10264
+ *
10265
+ * @type {PagedListMetaData}
10266
+ * @memberof PlansModel
10267
+ */
10268
+ 'metaData'?: PagedListMetaData;
10269
+ }
10270
+ /**
10271
+ *
10272
+ * @export
10273
+ * @enum {string}
10274
+ */
10275
+
10276
+ export enum Platform {
10277
+ Web = 'Web',
10278
+ IOs = 'iOS',
10279
+ Android = 'Android'
10280
+ }
10281
+
10282
+ /**
10283
+ *
10284
+ * @export
10285
+ * @interface ProblemDetails
10286
+ */
10287
+ export interface ProblemDetails {
10288
+ [key: string]: any | any;
10289
+
10290
+ /**
10291
+ *
10292
+ * @type {string}
10293
+ * @memberof ProblemDetails
10294
+ */
10295
+ 'type'?: string | null;
10296
+ /**
10297
+ *
10298
+ * @type {string}
10299
+ * @memberof ProblemDetails
10300
+ */
10301
+ 'title'?: string | null;
10302
+ /**
10303
+ *
10304
+ * @type {number}
10305
+ * @memberof ProblemDetails
10306
+ */
10307
+ 'status'?: number | null;
10308
+ /**
10309
+ *
10310
+ * @type {string}
10311
+ * @memberof ProblemDetails
10312
+ */
10313
+ 'detail'?: string | null;
10314
+ /**
10315
+ *
10316
+ * @type {string}
10317
+ * @memberof ProblemDetails
10318
+ */
10319
+ 'instance'?: string | null;
10320
+ }
10321
+ /**
10322
+ *
10323
+ * @export
10324
+ * @enum {string}
10325
+ */
10326
+
10327
+ export enum Procedure {
10328
+ Treatment = 'Treatment',
10329
+ Diagnostic = 'Diagnostic'
10330
+ }
10331
+
10332
+ /**
10333
+ *
10334
+ * @export
10335
+ * @interface Question
10336
+ */
10337
+ export interface Question {
10338
+ /**
10339
+ *
10340
+ * @type {string}
10341
+ * @memberof Question
10342
+ */
10343
+ 'id'?: string;
10344
+ /**
10345
+ *
10346
+ * @type {string}
10347
+ * @memberof Question
10348
+ */
10349
+ 'title'?: string | null;
10350
+ /**
10351
+ *
10352
+ * @type {string}
10353
+ * @memberof Question
10354
+ */
10355
+ 'normalizedTitle'?: string | null;
10356
+ /**
10357
+ *
10358
+ * @type {string}
10359
+ * @memberof Question
10360
+ */
10361
+ 'body'?: string | null;
10362
+ /**
10363
+ *
10364
+ * @type {QuestionType}
10365
+ * @memberof Question
10366
+ */
10367
+ 'questionType'?: QuestionType;
10368
+ /**
10369
+ *
10370
+ * @type {QuestionStatus}
10371
+ * @memberof Question
10372
+ */
10373
+ 'questionStatus'?: QuestionStatus;
10374
+ /**
10375
+ *
10376
+ * @type {string}
10377
+ * @memberof Question
10378
+ */
10379
+ 'patientId'?: string;
10380
+ /**
9703
10381
  *
9704
10382
  * @type {Patient}
9705
10383
  * @memberof Question
@@ -11908,62 +12586,185 @@ export interface UpdateHospitalSpecialtyCommand {
11908
12586
  /**
11909
12587
  *
11910
12588
  * @export
11911
- * @interface UpdateMediaCommand
12589
+ * @interface UpdateManagerCommand
11912
12590
  */
11913
- export interface UpdateMediaCommand {
12591
+ export interface UpdateManagerCommand {
11914
12592
  /**
11915
12593
  *
11916
- * @type {MediaType}
11917
- * @memberof UpdateMediaCommand
12594
+ * @type {string}
12595
+ * @memberof UpdateManagerCommand
11918
12596
  */
11919
- 'mediaType'?: MediaType;
12597
+ 'firstName'?: string | null;
11920
12598
  /**
11921
12599
  *
11922
12600
  * @type {string}
11923
- * @memberof UpdateMediaCommand
12601
+ * @memberof UpdateManagerCommand
11924
12602
  */
11925
- 'url'?: string | null;
12603
+ 'lastName'?: string | null;
11926
12604
  /**
11927
12605
  *
11928
12606
  * @type {string}
11929
- * @memberof UpdateMediaCommand
12607
+ * @memberof UpdateManagerCommand
11930
12608
  */
11931
- 'thumbnailUrl'?: string | null;
12609
+ 'phone'?: string | null;
11932
12610
  /**
11933
12611
  *
11934
12612
  * @type {string}
11935
- * @memberof UpdateMediaCommand
12613
+ * @memberof UpdateManagerCommand
11936
12614
  */
11937
- 'description'?: string | null;
12615
+ 'photo'?: string | null;
11938
12616
  /**
11939
12617
  *
11940
- * @type {number}
11941
- * @memberof UpdateMediaCommand
12618
+ * @type {string}
12619
+ * @memberof UpdateManagerCommand
11942
12620
  */
11943
- 'order'?: number;
11944
- }
11945
- /**
11946
- *
11947
- * @export
11948
- * @interface UpdateServiceCategoryCommand
11949
- */
11950
- export interface UpdateServiceCategoryCommand {
12621
+ 'photoThumbnail'?: string | null;
11951
12622
  /**
11952
12623
  *
11953
- * @type {string}
11954
- * @memberof UpdateServiceCategoryCommand
12624
+ * @type {Gender}
12625
+ * @memberof UpdateManagerCommand
11955
12626
  */
11956
- 'id'?: string;
12627
+ 'gender'?: Gender;
11957
12628
  /**
11958
12629
  *
11959
- * @type {string}
11960
- * @memberof UpdateServiceCategoryCommand
12630
+ * @type {Date}
12631
+ * @memberof UpdateManagerCommand
11961
12632
  */
11962
- 'name'?: string | null;
12633
+ 'dateOfBirth'?: Date | null;
11963
12634
  /**
11964
12635
  *
11965
- * @type {string}
11966
- * @memberof UpdateServiceCategoryCommand
12636
+ * @type {Array<UserLanguageModel>}
12637
+ * @memberof UpdateManagerCommand
12638
+ */
12639
+ 'languages'?: Array<UserLanguageModel> | null;
12640
+ /**
12641
+ *
12642
+ * @type {Array<UserLocationModel>}
12643
+ * @memberof UpdateManagerCommand
12644
+ */
12645
+ 'locations'?: Array<UserLocationModel> | null;
12646
+ }
12647
+ /**
12648
+ *
12649
+ * @export
12650
+ * @interface UpdateMediaCommand
12651
+ */
12652
+ export interface UpdateMediaCommand {
12653
+ /**
12654
+ *
12655
+ * @type {MediaType}
12656
+ * @memberof UpdateMediaCommand
12657
+ */
12658
+ 'mediaType'?: MediaType;
12659
+ /**
12660
+ *
12661
+ * @type {string}
12662
+ * @memberof UpdateMediaCommand
12663
+ */
12664
+ 'url'?: string | null;
12665
+ /**
12666
+ *
12667
+ * @type {string}
12668
+ * @memberof UpdateMediaCommand
12669
+ */
12670
+ 'thumbnailUrl'?: string | null;
12671
+ /**
12672
+ *
12673
+ * @type {string}
12674
+ * @memberof UpdateMediaCommand
12675
+ */
12676
+ 'description'?: string | null;
12677
+ /**
12678
+ *
12679
+ * @type {number}
12680
+ * @memberof UpdateMediaCommand
12681
+ */
12682
+ 'order'?: number;
12683
+ }
12684
+ /**
12685
+ *
12686
+ * @export
12687
+ * @interface UpdatePlanCommand
12688
+ */
12689
+ export interface UpdatePlanCommand {
12690
+ /**
12691
+ *
12692
+ * @type {string}
12693
+ * @memberof UpdatePlanCommand
12694
+ */
12695
+ 'name'?: string | null;
12696
+ /**
12697
+ *
12698
+ * @type {number}
12699
+ * @memberof UpdatePlanCommand
12700
+ */
12701
+ 'memberLimit'?: number;
12702
+ /**
12703
+ *
12704
+ * @type {number}
12705
+ * @memberof UpdatePlanCommand
12706
+ */
12707
+ 'unitPrice'?: number;
12708
+ /**
12709
+ *
12710
+ * @type {string}
12711
+ * @memberof UpdatePlanCommand
12712
+ */
12713
+ 'stripePriceId'?: string | null;
12714
+ /**
12715
+ *
12716
+ * @type {RecurringInterval}
12717
+ * @memberof UpdatePlanCommand
12718
+ */
12719
+ 'interval'?: RecurringInterval;
12720
+ /**
12721
+ *
12722
+ * @type {boolean}
12723
+ * @memberof UpdatePlanCommand
12724
+ */
12725
+ 'isActive'?: boolean;
12726
+ /**
12727
+ *
12728
+ * @type {number}
12729
+ * @memberof UpdatePlanCommand
12730
+ */
12731
+ 'order'?: number;
12732
+ }
12733
+ /**
12734
+ *
12735
+ * @export
12736
+ * @interface UpdatePlanHospitalCommand
12737
+ */
12738
+ export interface UpdatePlanHospitalCommand {
12739
+ /**
12740
+ *
12741
+ * @type {number}
12742
+ * @memberof UpdatePlanHospitalCommand
12743
+ */
12744
+ 'order'?: number;
12745
+ }
12746
+ /**
12747
+ *
12748
+ * @export
12749
+ * @interface UpdateServiceCategoryCommand
12750
+ */
12751
+ export interface UpdateServiceCategoryCommand {
12752
+ /**
12753
+ *
12754
+ * @type {string}
12755
+ * @memberof UpdateServiceCategoryCommand
12756
+ */
12757
+ 'id'?: string;
12758
+ /**
12759
+ *
12760
+ * @type {string}
12761
+ * @memberof UpdateServiceCategoryCommand
12762
+ */
12763
+ 'name'?: string | null;
12764
+ /**
12765
+ *
12766
+ * @type {string}
12767
+ * @memberof UpdateServiceCategoryCommand
11967
12768
  */
11968
12769
  'normalizedName'?: string | null;
11969
12770
  /**
@@ -12258,6 +13059,97 @@ export interface User {
12258
13059
  */
12259
13060
  'auditableEntity'?: AuditableEntity;
12260
13061
  }
13062
+ /**
13063
+ *
13064
+ * @export
13065
+ * @interface UserItemModel
13066
+ */
13067
+ export interface UserItemModel {
13068
+ /**
13069
+ *
13070
+ * @type {string}
13071
+ * @memberof UserItemModel
13072
+ */
13073
+ 'id'?: string;
13074
+ /**
13075
+ *
13076
+ * @type {string}
13077
+ * @memberof UserItemModel
13078
+ */
13079
+ 'userName'?: string | null;
13080
+ /**
13081
+ *
13082
+ * @type {string}
13083
+ * @memberof UserItemModel
13084
+ */
13085
+ 'firstName'?: string | null;
13086
+ /**
13087
+ *
13088
+ * @type {string}
13089
+ * @memberof UserItemModel
13090
+ */
13091
+ 'lastName'?: string | null;
13092
+ /**
13093
+ *
13094
+ * @type {string}
13095
+ * @memberof UserItemModel
13096
+ */
13097
+ 'fullname'?: string | null;
13098
+ /**
13099
+ *
13100
+ * @type {string}
13101
+ * @memberof UserItemModel
13102
+ */
13103
+ 'phone'?: string | null;
13104
+ /**
13105
+ *
13106
+ * @type {string}
13107
+ * @memberof UserItemModel
13108
+ */
13109
+ 'email'?: string | null;
13110
+ /**
13111
+ *
13112
+ * @type {string}
13113
+ * @memberof UserItemModel
13114
+ */
13115
+ 'photo'?: string | null;
13116
+ /**
13117
+ *
13118
+ * @type {string}
13119
+ * @memberof UserItemModel
13120
+ */
13121
+ 'photoThumbnail'?: string | null;
13122
+ /**
13123
+ *
13124
+ * @type {Gender}
13125
+ * @memberof UserItemModel
13126
+ */
13127
+ 'gender'?: Gender;
13128
+ /**
13129
+ *
13130
+ * @type {Date}
13131
+ * @memberof UserItemModel
13132
+ */
13133
+ 'dateOfBirth'?: Date | null;
13134
+ /**
13135
+ *
13136
+ * @type {string}
13137
+ * @memberof UserItemModel
13138
+ */
13139
+ 'timeZone'?: string | null;
13140
+ /**
13141
+ *
13142
+ * @type {string}
13143
+ * @memberof UserItemModel
13144
+ */
13145
+ 'communicationUserId'?: string | null;
13146
+ /**
13147
+ *
13148
+ * @type {AuditableEntity}
13149
+ * @memberof UserItemModel
13150
+ */
13151
+ 'auditableEntity'?: AuditableEntity;
13152
+ }
12261
13153
  /**
12262
13154
  *
12263
13155
  * @export
@@ -12432,93 +13324,202 @@ export enum UserLocationType {
12432
13324
  /**
12433
13325
  *
12434
13326
  * @export
12435
- * @enum {string}
12436
- */
12437
-
12438
- export enum VendorType {
12439
- Stripe = 'Stripe',
12440
- WeChat = 'WeChat'
12441
- }
12442
-
12443
- /**
12444
- *
12445
- * @export
12446
- * @interface WeatherForecast
13327
+ * @interface UserModel
12447
13328
  */
12448
- export interface WeatherForecast {
13329
+ export interface UserModel {
12449
13330
  /**
12450
13331
  *
12451
- * @type {Date}
12452
- * @memberof WeatherForecast
13332
+ * @type {string}
13333
+ * @memberof UserModel
12453
13334
  */
12454
- 'date'?: Date;
13335
+ 'id'?: string;
12455
13336
  /**
12456
13337
  *
12457
- * @type {number}
12458
- * @memberof WeatherForecast
13338
+ * @type {string}
13339
+ * @memberof UserModel
12459
13340
  */
12460
- 'temperatureC'?: number;
13341
+ 'userName'?: string | null;
12461
13342
  /**
12462
13343
  *
12463
- * @type {number}
12464
- * @memberof WeatherForecast
13344
+ * @type {string}
13345
+ * @memberof UserModel
12465
13346
  */
12466
- 'temperatureF'?: number;
13347
+ 'firstName'?: string | null;
12467
13348
  /**
12468
13349
  *
12469
13350
  * @type {string}
12470
- * @memberof WeatherForecast
13351
+ * @memberof UserModel
12471
13352
  */
12472
- 'summary'?: string | null;
12473
- }
12474
- /**
12475
- *
12476
- * @export
12477
- * @interface Youtube
12478
- */
12479
- export interface Youtube {
13353
+ 'lastName'?: string | null;
12480
13354
  /**
12481
13355
  *
12482
13356
  * @type {string}
12483
- * @memberof Youtube
13357
+ * @memberof UserModel
12484
13358
  */
12485
- 'id'?: string;
13359
+ 'fullname'?: string | null;
12486
13360
  /**
12487
13361
  *
12488
13362
  * @type {string}
12489
- * @memberof Youtube
13363
+ * @memberof UserModel
12490
13364
  */
12491
- 'title'?: string | null;
13365
+ 'phone'?: string | null;
12492
13366
  /**
12493
13367
  *
12494
13368
  * @type {string}
12495
- * @memberof Youtube
13369
+ * @memberof UserModel
12496
13370
  */
12497
- 'normalizedTitle'?: string | null;
13371
+ 'email'?: string | null;
12498
13372
  /**
12499
13373
  *
12500
13374
  * @type {string}
12501
- * @memberof Youtube
13375
+ * @memberof UserModel
12502
13376
  */
12503
- 'description'?: string | null;
13377
+ 'photo'?: string | null;
12504
13378
  /**
12505
13379
  *
12506
13380
  * @type {string}
12507
- * @memberof Youtube
13381
+ * @memberof UserModel
12508
13382
  */
12509
- 'url'?: string | null;
13383
+ 'photoThumbnail'?: string | null;
12510
13384
  /**
12511
13385
  *
12512
- * @type {Array<YoutubeTag>}
12513
- * @memberof Youtube
13386
+ * @type {Gender}
13387
+ * @memberof UserModel
12514
13388
  */
12515
- 'youtubeTags'?: Array<YoutubeTag> | null;
13389
+ 'gender'?: Gender;
12516
13390
  /**
12517
13391
  *
12518
- * @type {MarketingType}
12519
- * @memberof Youtube
13392
+ * @type {Date}
13393
+ * @memberof UserModel
12520
13394
  */
12521
- 'marketingType'?: MarketingType;
13395
+ 'dateOfBirth'?: Date | null;
13396
+ /**
13397
+ *
13398
+ * @type {string}
13399
+ * @memberof UserModel
13400
+ */
13401
+ 'timeZone'?: string | null;
13402
+ /**
13403
+ *
13404
+ * @type {string}
13405
+ * @memberof UserModel
13406
+ */
13407
+ 'communicationUserId'?: string | null;
13408
+ /**
13409
+ *
13410
+ * @type {AuditableEntity}
13411
+ * @memberof UserModel
13412
+ */
13413
+ 'auditableEntity'?: AuditableEntity;
13414
+ /**
13415
+ *
13416
+ * @type {string}
13417
+ * @memberof UserModel
13418
+ */
13419
+ 'userType'?: string | null;
13420
+ /**
13421
+ *
13422
+ * @type {Array<UserLanguageModel>}
13423
+ * @memberof UserModel
13424
+ */
13425
+ 'languages'?: Array<UserLanguageModel> | null;
13426
+ /**
13427
+ *
13428
+ * @type {Array<UserLocationModel>}
13429
+ * @memberof UserModel
13430
+ */
13431
+ 'locations'?: Array<UserLocationModel> | null;
13432
+ }
13433
+ /**
13434
+ *
13435
+ * @export
13436
+ * @enum {string}
13437
+ */
13438
+
13439
+ export enum VendorType {
13440
+ Stripe = 'Stripe',
13441
+ WeChat = 'WeChat'
13442
+ }
13443
+
13444
+ /**
13445
+ *
13446
+ * @export
13447
+ * @interface WeatherForecast
13448
+ */
13449
+ export interface WeatherForecast {
13450
+ /**
13451
+ *
13452
+ * @type {Date}
13453
+ * @memberof WeatherForecast
13454
+ */
13455
+ 'date'?: Date;
13456
+ /**
13457
+ *
13458
+ * @type {number}
13459
+ * @memberof WeatherForecast
13460
+ */
13461
+ 'temperatureC'?: number;
13462
+ /**
13463
+ *
13464
+ * @type {number}
13465
+ * @memberof WeatherForecast
13466
+ */
13467
+ 'temperatureF'?: number;
13468
+ /**
13469
+ *
13470
+ * @type {string}
13471
+ * @memberof WeatherForecast
13472
+ */
13473
+ 'summary'?: string | null;
13474
+ }
13475
+ /**
13476
+ *
13477
+ * @export
13478
+ * @interface Youtube
13479
+ */
13480
+ export interface Youtube {
13481
+ /**
13482
+ *
13483
+ * @type {string}
13484
+ * @memberof Youtube
13485
+ */
13486
+ 'id'?: string;
13487
+ /**
13488
+ *
13489
+ * @type {string}
13490
+ * @memberof Youtube
13491
+ */
13492
+ 'title'?: string | null;
13493
+ /**
13494
+ *
13495
+ * @type {string}
13496
+ * @memberof Youtube
13497
+ */
13498
+ 'normalizedTitle'?: string | null;
13499
+ /**
13500
+ *
13501
+ * @type {string}
13502
+ * @memberof Youtube
13503
+ */
13504
+ 'description'?: string | null;
13505
+ /**
13506
+ *
13507
+ * @type {string}
13508
+ * @memberof Youtube
13509
+ */
13510
+ 'url'?: string | null;
13511
+ /**
13512
+ *
13513
+ * @type {Array<YoutubeTag>}
13514
+ * @memberof Youtube
13515
+ */
13516
+ 'youtubeTags'?: Array<YoutubeTag> | null;
13517
+ /**
13518
+ *
13519
+ * @type {MarketingType}
13520
+ * @memberof Youtube
13521
+ */
13522
+ 'marketingType'?: MarketingType;
12522
13523
  /**
12523
13524
  *
12524
13525
  * @type {AuditableEntity}
@@ -13864,22 +14865,16 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
13864
14865
  },
13865
14866
  /**
13866
14867
  *
13867
- * @summary GetAll ArticleContributors.
14868
+ * @summary GetAll ArticleTags.
13868
14869
  * @param {string} articleId
13869
- * @param {string} [articleName]
13870
- * @param {string} [contributorId]
13871
- * @param {string} [contributorName]
13872
- * @param {string} [email]
13873
- * @param {string} [description]
13874
- * @param {string} [website]
13875
- * @param {ContributionType} [contributionType]
14870
+ * @param {string} [tagId]
13876
14871
  * @param {number} [page]
13877
14872
  * @param {number} [limit]
13878
14873
  * @param {Date} [lastRetrieved]
13879
14874
  * @param {*} [options] Override http request option.
13880
14875
  * @throws {RequiredError}
13881
14876
  */
13882
- apiV1ArticlesArticleIdTagsGet: async (articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, description?: string, website?: string, contributionType?: ContributionType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14877
+ apiV1ArticlesArticleIdTagsGet: async (articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
13883
14878
  // verify required parameter 'articleId' is not null or undefined
13884
14879
  assertParamExists('apiV1ArticlesArticleIdTagsGet', 'articleId', articleId)
13885
14880
  const localVarPath = `/api/v1/articles/{articleId}/tags`
@@ -13899,32 +14894,8 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
13899
14894
  // oauth required
13900
14895
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
13901
14896
 
13902
- if (articleName !== undefined) {
13903
- localVarQueryParameter['ArticleName'] = articleName;
13904
- }
13905
-
13906
- if (contributorId !== undefined) {
13907
- localVarQueryParameter['ContributorId'] = contributorId;
13908
- }
13909
-
13910
- if (contributorName !== undefined) {
13911
- localVarQueryParameter['ContributorName'] = contributorName;
13912
- }
13913
-
13914
- if (email !== undefined) {
13915
- localVarQueryParameter['Email'] = email;
13916
- }
13917
-
13918
- if (description !== undefined) {
13919
- localVarQueryParameter['Description'] = description;
13920
- }
13921
-
13922
- if (website !== undefined) {
13923
- localVarQueryParameter['Website'] = website;
13924
- }
13925
-
13926
- if (contributionType !== undefined) {
13927
- localVarQueryParameter['ContributionType'] = contributionType;
14897
+ if (tagId !== undefined) {
14898
+ localVarQueryParameter['TagId'] = tagId;
13928
14899
  }
13929
14900
 
13930
14901
  if (page !== undefined) {
@@ -13954,12 +14925,13 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
13954
14925
  },
13955
14926
  /**
13956
14927
  *
14928
+ * @summary Create ArticleTag.
13957
14929
  * @param {string} articleId
13958
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
14930
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
13959
14931
  * @param {*} [options] Override http request option.
13960
14932
  * @throws {RequiredError}
13961
14933
  */
13962
- apiV1ArticlesArticleIdTagsPost: async (articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14934
+ apiV1ArticlesArticleIdTagsPost: async (articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
13963
14935
  // verify required parameter 'articleId' is not null or undefined
13964
14936
  assertParamExists('apiV1ArticlesArticleIdTagsPost', 'articleId', articleId)
13965
14937
  const localVarPath = `/api/v1/articles/{articleId}/tags`
@@ -13986,7 +14958,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
13986
14958
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13987
14959
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13988
14960
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13989
- localVarRequestOptions.data = serializeDataIfNeeded(createArticleContributorCommand, localVarRequestOptions, configuration)
14961
+ localVarRequestOptions.data = serializeDataIfNeeded(createArticleTagCommand, localVarRequestOptions, configuration)
13990
14962
 
13991
14963
  return {
13992
14964
  url: toPathString(localVarUrlObj),
@@ -13995,23 +14967,20 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
13995
14967
  },
13996
14968
  /**
13997
14969
  *
13998
- * @summary Delete ArticleContributor.
14970
+ * @summary Delete ArticleTag.
13999
14971
  * @param {string} articleId
14000
- * @param {string} contributorId
14001
14972
  * @param {string} tagId
14973
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
14002
14974
  * @param {*} [options] Override http request option.
14003
14975
  * @throws {RequiredError}
14004
14976
  */
14005
- apiV1ArticlesArticleIdTagsTagIdDelete: async (articleId: string, contributorId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14977
+ apiV1ArticlesArticleIdTagsTagIdDelete: async (articleId: string, tagId: string, deleteArticleTagCommand?: DeleteArticleTagCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14006
14978
  // verify required parameter 'articleId' is not null or undefined
14007
14979
  assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'articleId', articleId)
14008
- // verify required parameter 'contributorId' is not null or undefined
14009
- assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'contributorId', contributorId)
14010
14980
  // verify required parameter 'tagId' is not null or undefined
14011
14981
  assertParamExists('apiV1ArticlesArticleIdTagsTagIdDelete', 'tagId', tagId)
14012
14982
  const localVarPath = `/api/v1/articles/{articleId}/tags/{tagId}`
14013
14983
  .replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
14014
- .replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)))
14015
14984
  .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
14016
14985
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14017
14986
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14030,9 +14999,12 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
14030
14999
 
14031
15000
 
14032
15001
 
15002
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15003
+
14033
15004
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14034
15005
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14035
15006
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15007
+ localVarRequestOptions.data = serializeDataIfNeeded(deleteArticleTagCommand, localVarRequestOptions, configuration)
14036
15008
 
14037
15009
  return {
14038
15010
  url: toPathString(localVarUrlObj),
@@ -14041,23 +15013,19 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
14041
15013
  },
14042
15014
  /**
14043
15015
  *
14044
- * @summary Get ArticleContributor.
15016
+ * @summary Get ArticleTag.
14045
15017
  * @param {string} articleId
14046
- * @param {string} contributorId
14047
15018
  * @param {string} tagId
14048
15019
  * @param {*} [options] Override http request option.
14049
15020
  * @throws {RequiredError}
14050
15021
  */
14051
- apiV1ArticlesArticleIdTagsTagIdGet: async (articleId: string, contributorId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15022
+ apiV1ArticlesArticleIdTagsTagIdGet: async (articleId: string, tagId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
14052
15023
  // verify required parameter 'articleId' is not null or undefined
14053
15024
  assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'articleId', articleId)
14054
- // verify required parameter 'contributorId' is not null or undefined
14055
- assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'contributorId', contributorId)
14056
15025
  // verify required parameter 'tagId' is not null or undefined
14057
15026
  assertParamExists('apiV1ArticlesArticleIdTagsTagIdGet', 'tagId', tagId)
14058
15027
  const localVarPath = `/api/v1/articles/{articleId}/tags/{tagId}`
14059
15028
  .replace(`{${"articleId"}}`, encodeURIComponent(String(articleId)))
14060
- .replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)))
14061
15029
  .replace(`{${"tagId"}}`, encodeURIComponent(String(tagId)));
14062
15030
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14063
15031
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14537,60 +15505,54 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
14537
15505
  },
14538
15506
  /**
14539
15507
  *
14540
- * @summary GetAll ArticleContributors.
15508
+ * @summary GetAll ArticleTags.
14541
15509
  * @param {string} articleId
14542
- * @param {string} [articleName]
14543
- * @param {string} [contributorId]
14544
- * @param {string} [contributorName]
14545
- * @param {string} [email]
14546
- * @param {string} [description]
14547
- * @param {string} [website]
14548
- * @param {ContributionType} [contributionType]
15510
+ * @param {string} [tagId]
14549
15511
  * @param {number} [page]
14550
15512
  * @param {number} [limit]
14551
15513
  * @param {Date} [lastRetrieved]
14552
15514
  * @param {*} [options] Override http request option.
14553
15515
  * @throws {RequiredError}
14554
15516
  */
14555
- async apiV1ArticlesArticleIdTagsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, description?: string, website?: string, contributionType?: ContributionType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorsModel>> {
14556
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options);
15517
+ async apiV1ArticlesArticleIdTagsGet(articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleTagsModel>> {
15518
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options);
14557
15519
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14558
15520
  },
14559
15521
  /**
14560
15522
  *
15523
+ * @summary Create ArticleTag.
14561
15524
  * @param {string} articleId
14562
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
15525
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
14563
15526
  * @param {*} [options] Override http request option.
14564
15527
  * @throws {RequiredError}
14565
15528
  */
14566
- async apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorModel>> {
14567
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsPost(articleId, createArticleContributorCommand, options);
15529
+ async apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleTagModel>> {
15530
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options);
14568
15531
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14569
15532
  },
14570
15533
  /**
14571
15534
  *
14572
- * @summary Delete ArticleContributor.
15535
+ * @summary Delete ArticleTag.
14573
15536
  * @param {string} articleId
14574
- * @param {string} contributorId
14575
15537
  * @param {string} tagId
15538
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
14576
15539
  * @param {*} [options] Override http request option.
14577
15540
  * @throws {RequiredError}
14578
15541
  */
14579
- async apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, contributorId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
14580
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, contributorId, tagId, options);
15542
+ async apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, tagId: string, deleteArticleTagCommand?: DeleteArticleTagCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
15543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, deleteArticleTagCommand, options);
14581
15544
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14582
15545
  },
14583
15546
  /**
14584
15547
  *
14585
- * @summary Get ArticleContributor.
15548
+ * @summary Get ArticleTag.
14586
15549
  * @param {string} articleId
14587
- * @param {string} contributorId
14588
15550
  * @param {string} tagId
14589
15551
  * @param {*} [options] Override http request option.
14590
15552
  * @throws {RequiredError}
14591
15553
  */
14592
- async apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, contributorId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleContributorModel>> {
14593
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdGet(articleId, contributorId, tagId, options);
15554
+ async apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, tagId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticleTagModel>> {
15555
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options);
14594
15556
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14595
15557
  },
14596
15558
  /**
@@ -14871,57 +15833,51 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
14871
15833
  },
14872
15834
  /**
14873
15835
  *
14874
- * @summary GetAll ArticleContributors.
15836
+ * @summary GetAll ArticleTags.
14875
15837
  * @param {string} articleId
14876
- * @param {string} [articleName]
14877
- * @param {string} [contributorId]
14878
- * @param {string} [contributorName]
14879
- * @param {string} [email]
14880
- * @param {string} [description]
14881
- * @param {string} [website]
14882
- * @param {ContributionType} [contributionType]
15838
+ * @param {string} [tagId]
14883
15839
  * @param {number} [page]
14884
15840
  * @param {number} [limit]
14885
15841
  * @param {Date} [lastRetrieved]
14886
15842
  * @param {*} [options] Override http request option.
14887
15843
  * @throws {RequiredError}
14888
15844
  */
14889
- apiV1ArticlesArticleIdTagsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, description?: string, website?: string, contributionType?: ContributionType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticleContributorsModel> {
14890
- return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
15845
+ apiV1ArticlesArticleIdTagsGet(articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticleTagsModel> {
15846
+ return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
14891
15847
  },
14892
15848
  /**
14893
15849
  *
15850
+ * @summary Create ArticleTag.
14894
15851
  * @param {string} articleId
14895
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
15852
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
14896
15853
  * @param {*} [options] Override http request option.
14897
15854
  * @throws {RequiredError}
14898
15855
  */
14899
- apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options?: any): AxiosPromise<ArticleContributorModel> {
14900
- return localVarFp.apiV1ArticlesArticleIdTagsPost(articleId, createArticleContributorCommand, options).then((request) => request(axios, basePath));
15856
+ apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options?: any): AxiosPromise<ArticleTagModel> {
15857
+ return localVarFp.apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options).then((request) => request(axios, basePath));
14901
15858
  },
14902
15859
  /**
14903
15860
  *
14904
- * @summary Delete ArticleContributor.
15861
+ * @summary Delete ArticleTag.
14905
15862
  * @param {string} articleId
14906
- * @param {string} contributorId
14907
15863
  * @param {string} tagId
15864
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
14908
15865
  * @param {*} [options] Override http request option.
14909
15866
  * @throws {RequiredError}
14910
15867
  */
14911
- apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, contributorId: string, tagId: string, options?: any): AxiosPromise<boolean> {
14912
- return localVarFp.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, contributorId, tagId, options).then((request) => request(axios, basePath));
15868
+ apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, tagId: string, deleteArticleTagCommand?: DeleteArticleTagCommand, options?: any): AxiosPromise<boolean> {
15869
+ return localVarFp.apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, deleteArticleTagCommand, options).then((request) => request(axios, basePath));
14913
15870
  },
14914
15871
  /**
14915
15872
  *
14916
- * @summary Get ArticleContributor.
15873
+ * @summary Get ArticleTag.
14917
15874
  * @param {string} articleId
14918
- * @param {string} contributorId
14919
15875
  * @param {string} tagId
14920
15876
  * @param {*} [options] Override http request option.
14921
15877
  * @throws {RequiredError}
14922
15878
  */
14923
- apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, contributorId: string, tagId: string, options?: any): AxiosPromise<ArticleContributorModel> {
14924
- return localVarFp.apiV1ArticlesArticleIdTagsTagIdGet(articleId, contributorId, tagId, options).then((request) => request(axios, basePath));
15879
+ apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, tagId: string, options?: any): AxiosPromise<ArticleTagModel> {
15880
+ return localVarFp.apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options).then((request) => request(axios, basePath));
14925
15881
  },
14926
15882
  /**
14927
15883
  *
@@ -15234,15 +16190,9 @@ export class ArticlesApi extends BaseAPI {
15234
16190
 
15235
16191
  /**
15236
16192
  *
15237
- * @summary GetAll ArticleContributors.
16193
+ * @summary GetAll ArticleTags.
15238
16194
  * @param {string} articleId
15239
- * @param {string} [articleName]
15240
- * @param {string} [contributorId]
15241
- * @param {string} [contributorName]
15242
- * @param {string} [email]
15243
- * @param {string} [description]
15244
- * @param {string} [website]
15245
- * @param {ContributionType} [contributionType]
16195
+ * @param {string} [tagId]
15246
16196
  * @param {number} [page]
15247
16197
  * @param {number} [limit]
15248
16198
  * @param {Date} [lastRetrieved]
@@ -15250,48 +16200,48 @@ export class ArticlesApi extends BaseAPI {
15250
16200
  * @throws {RequiredError}
15251
16201
  * @memberof ArticlesApi
15252
16202
  */
15253
- public apiV1ArticlesArticleIdTagsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, description?: string, website?: string, contributionType?: ContributionType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
15254
- return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
16203
+ public apiV1ArticlesArticleIdTagsGet(articleId: string, tagId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
16204
+ return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, tagId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
15255
16205
  }
15256
16206
 
15257
16207
  /**
15258
16208
  *
16209
+ * @summary Create ArticleTag.
15259
16210
  * @param {string} articleId
15260
- * @param {CreateArticleContributorCommand} [createArticleContributorCommand]
16211
+ * @param {CreateArticleTagCommand} [createArticleTagCommand]
15261
16212
  * @param {*} [options] Override http request option.
15262
16213
  * @throws {RequiredError}
15263
16214
  * @memberof ArticlesApi
15264
16215
  */
15265
- public apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleContributorCommand?: CreateArticleContributorCommand, options?: AxiosRequestConfig) {
15266
- return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsPost(articleId, createArticleContributorCommand, options).then((request) => request(this.axios, this.basePath));
16216
+ public apiV1ArticlesArticleIdTagsPost(articleId: string, createArticleTagCommand?: CreateArticleTagCommand, options?: AxiosRequestConfig) {
16217
+ return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsPost(articleId, createArticleTagCommand, options).then((request) => request(this.axios, this.basePath));
15267
16218
  }
15268
16219
 
15269
16220
  /**
15270
16221
  *
15271
- * @summary Delete ArticleContributor.
16222
+ * @summary Delete ArticleTag.
15272
16223
  * @param {string} articleId
15273
- * @param {string} contributorId
15274
16224
  * @param {string} tagId
16225
+ * @param {DeleteArticleTagCommand} [deleteArticleTagCommand]
15275
16226
  * @param {*} [options] Override http request option.
15276
16227
  * @throws {RequiredError}
15277
16228
  * @memberof ArticlesApi
15278
16229
  */
15279
- public apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, contributorId: string, tagId: string, options?: AxiosRequestConfig) {
15280
- return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdDelete(articleId, contributorId, tagId, options).then((request) => request(this.axios, this.basePath));
16230
+ public apiV1ArticlesArticleIdTagsTagIdDelete(articleId: string, tagId: string, deleteArticleTagCommand?: DeleteArticleTagCommand, options?: AxiosRequestConfig) {
16231
+ return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdDelete(articleId, tagId, deleteArticleTagCommand, options).then((request) => request(this.axios, this.basePath));
15281
16232
  }
15282
16233
 
15283
16234
  /**
15284
16235
  *
15285
- * @summary Get ArticleContributor.
16236
+ * @summary Get ArticleTag.
15286
16237
  * @param {string} articleId
15287
- * @param {string} contributorId
15288
16238
  * @param {string} tagId
15289
16239
  * @param {*} [options] Override http request option.
15290
16240
  * @throws {RequiredError}
15291
16241
  * @memberof ArticlesApi
15292
16242
  */
15293
- public apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, contributorId: string, tagId: string, options?: AxiosRequestConfig) {
15294
- return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdGet(articleId, contributorId, tagId, options).then((request) => request(this.axios, this.basePath));
16243
+ public apiV1ArticlesArticleIdTagsTagIdGet(articleId: string, tagId: string, options?: AxiosRequestConfig) {
16244
+ return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsTagIdGet(articleId, tagId, options).then((request) => request(this.axios, this.basePath));
15295
16245
  }
15296
16246
 
15297
16247
  /**
@@ -22641,7 +23591,7 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
22641
23591
  * @param {*} [options] Override http request option.
22642
23592
  * @throws {RequiredError}
22643
23593
  */
22644
- async apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
23594
+ async apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorModel>> {
22645
23595
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsPost(createDoctorCommand, options);
22646
23596
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
22647
23597
  },
@@ -23064,7 +24014,7 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
23064
24014
  * @param {*} [options] Override http request option.
23065
24015
  * @throws {RequiredError}
23066
24016
  */
23067
- apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: any): AxiosPromise<string> {
24017
+ apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: any): AxiosPromise<DoctorModel> {
23068
24018
  return localVarFp.apiV1DoctorsPost(createDoctorCommand, options).then((request) => request(axios, basePath));
23069
24019
  },
23070
24020
  /**
@@ -28196,20 +29146,29 @@ export class LanguagesApi extends BaseAPI {
28196
29146
 
28197
29147
 
28198
29148
  /**
28199
- * NotificationsApi - axios parameter creator
29149
+ * ManagersApi - axios parameter creator
28200
29150
  * @export
28201
29151
  */
28202
- export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
29152
+ export const ManagersApiAxiosParamCreator = function (configuration?: Configuration) {
28203
29153
  return {
28204
29154
  /**
28205
29155
  *
28206
- * @summary Check notification.
28207
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
29156
+ * @summary Get all Managers.
29157
+ * @param {string} [hospitalId]
29158
+ * @param {string} [id]
29159
+ * @param {string} [fullname]
29160
+ * @param {string} [email]
29161
+ * @param {Gender} [gender]
29162
+ * @param {Date} [dateOfBirth]
29163
+ * @param {Date} [created]
29164
+ * @param {number} [page]
29165
+ * @param {number} [limit]
29166
+ * @param {Date} [lastRetrieved]
28208
29167
  * @param {*} [options] Override http request option.
28209
29168
  * @throws {RequiredError}
28210
29169
  */
28211
- apiV1NotificationsCheckPost: async (checkNotificationsCommand?: CheckNotificationsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28212
- const localVarPath = `/api/v1/notifications/check`;
29170
+ apiV1ManagersGet: async (hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29171
+ const localVarPath = `/api/v1/managers`;
28213
29172
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28214
29173
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28215
29174
  let baseOptions;
@@ -28217,7 +29176,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
28217
29176
  baseOptions = configuration.baseOptions;
28218
29177
  }
28219
29178
 
28220
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29179
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28221
29180
  const localVarHeaderParameter = {} as any;
28222
29181
  const localVarQueryParameter = {} as any;
28223
29182
 
@@ -28225,33 +29184,1527 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
28225
29184
  // oauth required
28226
29185
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
28227
29186
 
29187
+ if (hospitalId !== undefined) {
29188
+ localVarQueryParameter['HospitalId'] = hospitalId;
29189
+ }
28228
29190
 
28229
-
28230
- localVarHeaderParameter['Content-Type'] = 'application/json';
29191
+ if (id !== undefined) {
29192
+ localVarQueryParameter['Id'] = id;
29193
+ }
28231
29194
 
28232
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28233
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28234
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28235
- localVarRequestOptions.data = serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration)
29195
+ if (fullname !== undefined) {
29196
+ localVarQueryParameter['Fullname'] = fullname;
29197
+ }
28236
29198
 
28237
- return {
28238
- url: toPathString(localVarUrlObj),
28239
- options: localVarRequestOptions,
28240
- };
28241
- },
28242
- /**
28243
- *
28244
- * @summary Get all notifications.
28245
- * @param {NotificationCode} [notificationCode]
28246
- * @param {boolean} [unreadCountOnly]
28247
- * @param {number} [page]
29199
+ if (email !== undefined) {
29200
+ localVarQueryParameter['Email'] = email;
29201
+ }
29202
+
29203
+ if (gender !== undefined) {
29204
+ localVarQueryParameter['Gender'] = gender;
29205
+ }
29206
+
29207
+ if (dateOfBirth !== undefined) {
29208
+ localVarQueryParameter['DateOfBirth'] = (dateOfBirth as any instanceof Date) ?
29209
+ (dateOfBirth as any).toISOString() :
29210
+ dateOfBirth;
29211
+ }
29212
+
29213
+ if (created !== undefined) {
29214
+ localVarQueryParameter['Created'] = (created as any instanceof Date) ?
29215
+ (created as any).toISOString() :
29216
+ created;
29217
+ }
29218
+
29219
+ if (page !== undefined) {
29220
+ localVarQueryParameter['page'] = page;
29221
+ }
29222
+
29223
+ if (limit !== undefined) {
29224
+ localVarQueryParameter['limit'] = limit;
29225
+ }
29226
+
29227
+ if (lastRetrieved !== undefined) {
29228
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
29229
+ (lastRetrieved as any).toISOString() :
29230
+ lastRetrieved;
29231
+ }
29232
+
29233
+
29234
+
29235
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29236
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29237
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29238
+
29239
+ return {
29240
+ url: toPathString(localVarUrlObj),
29241
+ options: localVarRequestOptions,
29242
+ };
29243
+ },
29244
+ /**
29245
+ *
29246
+ * @summary Delete Manager.
29247
+ * @param {string} managerId
29248
+ * @param {*} [options] Override http request option.
29249
+ * @throws {RequiredError}
29250
+ */
29251
+ apiV1ManagersManagerIdDelete: async (managerId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29252
+ // verify required parameter 'managerId' is not null or undefined
29253
+ assertParamExists('apiV1ManagersManagerIdDelete', 'managerId', managerId)
29254
+ const localVarPath = `/api/v1/managers/{managerId}`
29255
+ .replace(`{${"managerId"}}`, encodeURIComponent(String(managerId)));
29256
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29257
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29258
+ let baseOptions;
29259
+ if (configuration) {
29260
+ baseOptions = configuration.baseOptions;
29261
+ }
29262
+
29263
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
29264
+ const localVarHeaderParameter = {} as any;
29265
+ const localVarQueryParameter = {} as any;
29266
+
29267
+ // authentication oauth2 required
29268
+ // oauth required
29269
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29270
+
29271
+
29272
+
29273
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29274
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29275
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29276
+
29277
+ return {
29278
+ url: toPathString(localVarUrlObj),
29279
+ options: localVarRequestOptions,
29280
+ };
29281
+ },
29282
+ /**
29283
+ *
29284
+ * @summary Get Manager.
29285
+ * @param {string} managerId
29286
+ * @param {*} [options] Override http request option.
29287
+ * @throws {RequiredError}
29288
+ */
29289
+ apiV1ManagersManagerIdGet: async (managerId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29290
+ // verify required parameter 'managerId' is not null or undefined
29291
+ assertParamExists('apiV1ManagersManagerIdGet', 'managerId', managerId)
29292
+ const localVarPath = `/api/v1/managers/{managerId}`
29293
+ .replace(`{${"managerId"}}`, encodeURIComponent(String(managerId)));
29294
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29295
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29296
+ let baseOptions;
29297
+ if (configuration) {
29298
+ baseOptions = configuration.baseOptions;
29299
+ }
29300
+
29301
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29302
+ const localVarHeaderParameter = {} as any;
29303
+ const localVarQueryParameter = {} as any;
29304
+
29305
+ // authentication oauth2 required
29306
+ // oauth required
29307
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29308
+
29309
+
29310
+
29311
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29312
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29313
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29314
+
29315
+ return {
29316
+ url: toPathString(localVarUrlObj),
29317
+ options: localVarRequestOptions,
29318
+ };
29319
+ },
29320
+ /**
29321
+ *
29322
+ * @summary Update Manager.
29323
+ * @param {string} managerId
29324
+ * @param {UpdateManagerCommand} [updateManagerCommand]
29325
+ * @param {*} [options] Override http request option.
29326
+ * @throws {RequiredError}
29327
+ */
29328
+ apiV1ManagersManagerIdPut: async (managerId: string, updateManagerCommand?: UpdateManagerCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29329
+ // verify required parameter 'managerId' is not null or undefined
29330
+ assertParamExists('apiV1ManagersManagerIdPut', 'managerId', managerId)
29331
+ const localVarPath = `/api/v1/managers/{managerId}`
29332
+ .replace(`{${"managerId"}}`, encodeURIComponent(String(managerId)));
29333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29334
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29335
+ let baseOptions;
29336
+ if (configuration) {
29337
+ baseOptions = configuration.baseOptions;
29338
+ }
29339
+
29340
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
29341
+ const localVarHeaderParameter = {} as any;
29342
+ const localVarQueryParameter = {} as any;
29343
+
29344
+ // authentication oauth2 required
29345
+ // oauth required
29346
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29347
+
29348
+
29349
+
29350
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29351
+
29352
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29353
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29354
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29355
+ localVarRequestOptions.data = serializeDataIfNeeded(updateManagerCommand, localVarRequestOptions, configuration)
29356
+
29357
+ return {
29358
+ url: toPathString(localVarUrlObj),
29359
+ options: localVarRequestOptions,
29360
+ };
29361
+ },
29362
+ /**
29363
+ *
29364
+ * @summary Create a Manager.
29365
+ * @param {CreateManagerCommand} [createManagerCommand]
29366
+ * @param {*} [options] Override http request option.
29367
+ * @throws {RequiredError}
29368
+ */
29369
+ apiV1ManagersPost: async (createManagerCommand?: CreateManagerCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29370
+ const localVarPath = `/api/v1/managers`;
29371
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29372
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29373
+ let baseOptions;
29374
+ if (configuration) {
29375
+ baseOptions = configuration.baseOptions;
29376
+ }
29377
+
29378
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29379
+ const localVarHeaderParameter = {} as any;
29380
+ const localVarQueryParameter = {} as any;
29381
+
29382
+ // authentication oauth2 required
29383
+ // oauth required
29384
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29385
+
29386
+
29387
+
29388
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29389
+
29390
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29392
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29393
+ localVarRequestOptions.data = serializeDataIfNeeded(createManagerCommand, localVarRequestOptions, configuration)
29394
+
29395
+ return {
29396
+ url: toPathString(localVarUrlObj),
29397
+ options: localVarRequestOptions,
29398
+ };
29399
+ },
29400
+ }
29401
+ };
29402
+
29403
+ /**
29404
+ * ManagersApi - functional programming interface
29405
+ * @export
29406
+ */
29407
+ export const ManagersApiFp = function(configuration?: Configuration) {
29408
+ const localVarAxiosParamCreator = ManagersApiAxiosParamCreator(configuration)
29409
+ return {
29410
+ /**
29411
+ *
29412
+ * @summary Get all Managers.
29413
+ * @param {string} [hospitalId]
29414
+ * @param {string} [id]
29415
+ * @param {string} [fullname]
29416
+ * @param {string} [email]
29417
+ * @param {Gender} [gender]
29418
+ * @param {Date} [dateOfBirth]
29419
+ * @param {Date} [created]
29420
+ * @param {number} [page]
29421
+ * @param {number} [limit]
29422
+ * @param {Date} [lastRetrieved]
29423
+ * @param {*} [options] Override http request option.
29424
+ * @throws {RequiredError}
29425
+ */
29426
+ async apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagersModel>> {
29427
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options);
29428
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29429
+ },
29430
+ /**
29431
+ *
29432
+ * @summary Delete Manager.
29433
+ * @param {string} managerId
29434
+ * @param {*} [options] Override http request option.
29435
+ * @throws {RequiredError}
29436
+ */
29437
+ async apiV1ManagersManagerIdDelete(managerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29438
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersManagerIdDelete(managerId, options);
29439
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29440
+ },
29441
+ /**
29442
+ *
29443
+ * @summary Get Manager.
29444
+ * @param {string} managerId
29445
+ * @param {*} [options] Override http request option.
29446
+ * @throws {RequiredError}
29447
+ */
29448
+ async apiV1ManagersManagerIdGet(managerId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerModel>> {
29449
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersManagerIdGet(managerId, options);
29450
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29451
+ },
29452
+ /**
29453
+ *
29454
+ * @summary Update Manager.
29455
+ * @param {string} managerId
29456
+ * @param {UpdateManagerCommand} [updateManagerCommand]
29457
+ * @param {*} [options] Override http request option.
29458
+ * @throws {RequiredError}
29459
+ */
29460
+ async apiV1ManagersManagerIdPut(managerId: string, updateManagerCommand?: UpdateManagerCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29461
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options);
29462
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29463
+ },
29464
+ /**
29465
+ *
29466
+ * @summary Create a Manager.
29467
+ * @param {CreateManagerCommand} [createManagerCommand]
29468
+ * @param {*} [options] Override http request option.
29469
+ * @throws {RequiredError}
29470
+ */
29471
+ async apiV1ManagersPost(createManagerCommand?: CreateManagerCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerModel>> {
29472
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ManagersPost(createManagerCommand, options);
29473
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29474
+ },
29475
+ }
29476
+ };
29477
+
29478
+ /**
29479
+ * ManagersApi - factory interface
29480
+ * @export
29481
+ */
29482
+ export const ManagersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29483
+ const localVarFp = ManagersApiFp(configuration)
29484
+ return {
29485
+ /**
29486
+ *
29487
+ * @summary Get all Managers.
29488
+ * @param {string} [hospitalId]
29489
+ * @param {string} [id]
29490
+ * @param {string} [fullname]
29491
+ * @param {string} [email]
29492
+ * @param {Gender} [gender]
29493
+ * @param {Date} [dateOfBirth]
29494
+ * @param {Date} [created]
29495
+ * @param {number} [page]
29496
+ * @param {number} [limit]
29497
+ * @param {Date} [lastRetrieved]
29498
+ * @param {*} [options] Override http request option.
29499
+ * @throws {RequiredError}
29500
+ */
29501
+ apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagersModel> {
29502
+ return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
29503
+ },
29504
+ /**
29505
+ *
29506
+ * @summary Delete Manager.
29507
+ * @param {string} managerId
29508
+ * @param {*} [options] Override http request option.
29509
+ * @throws {RequiredError}
29510
+ */
29511
+ apiV1ManagersManagerIdDelete(managerId: string, options?: any): AxiosPromise<boolean> {
29512
+ return localVarFp.apiV1ManagersManagerIdDelete(managerId, options).then((request) => request(axios, basePath));
29513
+ },
29514
+ /**
29515
+ *
29516
+ * @summary Get Manager.
29517
+ * @param {string} managerId
29518
+ * @param {*} [options] Override http request option.
29519
+ * @throws {RequiredError}
29520
+ */
29521
+ apiV1ManagersManagerIdGet(managerId: string, options?: any): AxiosPromise<ManagerModel> {
29522
+ return localVarFp.apiV1ManagersManagerIdGet(managerId, options).then((request) => request(axios, basePath));
29523
+ },
29524
+ /**
29525
+ *
29526
+ * @summary Update Manager.
29527
+ * @param {string} managerId
29528
+ * @param {UpdateManagerCommand} [updateManagerCommand]
29529
+ * @param {*} [options] Override http request option.
29530
+ * @throws {RequiredError}
29531
+ */
29532
+ apiV1ManagersManagerIdPut(managerId: string, updateManagerCommand?: UpdateManagerCommand, options?: any): AxiosPromise<boolean> {
29533
+ return localVarFp.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then((request) => request(axios, basePath));
29534
+ },
29535
+ /**
29536
+ *
29537
+ * @summary Create a Manager.
29538
+ * @param {CreateManagerCommand} [createManagerCommand]
29539
+ * @param {*} [options] Override http request option.
29540
+ * @throws {RequiredError}
29541
+ */
29542
+ apiV1ManagersPost(createManagerCommand?: CreateManagerCommand, options?: any): AxiosPromise<ManagerModel> {
29543
+ return localVarFp.apiV1ManagersPost(createManagerCommand, options).then((request) => request(axios, basePath));
29544
+ },
29545
+ };
29546
+ };
29547
+
29548
+ /**
29549
+ * ManagersApi - object-oriented interface
29550
+ * @export
29551
+ * @class ManagersApi
29552
+ * @extends {BaseAPI}
29553
+ */
29554
+ export class ManagersApi extends BaseAPI {
29555
+ /**
29556
+ *
29557
+ * @summary Get all Managers.
29558
+ * @param {string} [hospitalId]
29559
+ * @param {string} [id]
29560
+ * @param {string} [fullname]
29561
+ * @param {string} [email]
29562
+ * @param {Gender} [gender]
29563
+ * @param {Date} [dateOfBirth]
29564
+ * @param {Date} [created]
29565
+ * @param {number} [page]
29566
+ * @param {number} [limit]
29567
+ * @param {Date} [lastRetrieved]
29568
+ * @param {*} [options] Override http request option.
29569
+ * @throws {RequiredError}
29570
+ * @memberof ManagersApi
29571
+ */
29572
+ public apiV1ManagersGet(hospitalId?: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
29573
+ return ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
29574
+ }
29575
+
29576
+ /**
29577
+ *
29578
+ * @summary Delete Manager.
29579
+ * @param {string} managerId
29580
+ * @param {*} [options] Override http request option.
29581
+ * @throws {RequiredError}
29582
+ * @memberof ManagersApi
29583
+ */
29584
+ public apiV1ManagersManagerIdDelete(managerId: string, options?: AxiosRequestConfig) {
29585
+ return ManagersApiFp(this.configuration).apiV1ManagersManagerIdDelete(managerId, options).then((request) => request(this.axios, this.basePath));
29586
+ }
29587
+
29588
+ /**
29589
+ *
29590
+ * @summary Get Manager.
29591
+ * @param {string} managerId
29592
+ * @param {*} [options] Override http request option.
29593
+ * @throws {RequiredError}
29594
+ * @memberof ManagersApi
29595
+ */
29596
+ public apiV1ManagersManagerIdGet(managerId: string, options?: AxiosRequestConfig) {
29597
+ return ManagersApiFp(this.configuration).apiV1ManagersManagerIdGet(managerId, options).then((request) => request(this.axios, this.basePath));
29598
+ }
29599
+
29600
+ /**
29601
+ *
29602
+ * @summary Update Manager.
29603
+ * @param {string} managerId
29604
+ * @param {UpdateManagerCommand} [updateManagerCommand]
29605
+ * @param {*} [options] Override http request option.
29606
+ * @throws {RequiredError}
29607
+ * @memberof ManagersApi
29608
+ */
29609
+ public apiV1ManagersManagerIdPut(managerId: string, updateManagerCommand?: UpdateManagerCommand, options?: AxiosRequestConfig) {
29610
+ return ManagersApiFp(this.configuration).apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then((request) => request(this.axios, this.basePath));
29611
+ }
29612
+
29613
+ /**
29614
+ *
29615
+ * @summary Create a Manager.
29616
+ * @param {CreateManagerCommand} [createManagerCommand]
29617
+ * @param {*} [options] Override http request option.
29618
+ * @throws {RequiredError}
29619
+ * @memberof ManagersApi
29620
+ */
29621
+ public apiV1ManagersPost(createManagerCommand?: CreateManagerCommand, options?: AxiosRequestConfig) {
29622
+ return ManagersApiFp(this.configuration).apiV1ManagersPost(createManagerCommand, options).then((request) => request(this.axios, this.basePath));
29623
+ }
29624
+ }
29625
+
29626
+
29627
+ /**
29628
+ * NotificationsApi - axios parameter creator
29629
+ * @export
29630
+ */
29631
+ export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
29632
+ return {
29633
+ /**
29634
+ *
29635
+ * @summary Check notification.
29636
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
29637
+ * @param {*} [options] Override http request option.
29638
+ * @throws {RequiredError}
29639
+ */
29640
+ apiV1NotificationsCheckPost: async (checkNotificationsCommand?: CheckNotificationsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29641
+ const localVarPath = `/api/v1/notifications/check`;
29642
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29643
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29644
+ let baseOptions;
29645
+ if (configuration) {
29646
+ baseOptions = configuration.baseOptions;
29647
+ }
29648
+
29649
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29650
+ const localVarHeaderParameter = {} as any;
29651
+ const localVarQueryParameter = {} as any;
29652
+
29653
+ // authentication oauth2 required
29654
+ // oauth required
29655
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29656
+
29657
+
29658
+
29659
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29660
+
29661
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29662
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29663
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29664
+ localVarRequestOptions.data = serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration)
29665
+
29666
+ return {
29667
+ url: toPathString(localVarUrlObj),
29668
+ options: localVarRequestOptions,
29669
+ };
29670
+ },
29671
+ /**
29672
+ *
29673
+ * @summary Get all notifications.
29674
+ * @param {NotificationCode} [notificationCode]
29675
+ * @param {boolean} [unreadCountOnly]
29676
+ * @param {number} [page]
29677
+ * @param {number} [limit]
29678
+ * @param {Date} [lastRetrieved]
29679
+ * @param {*} [options] Override http request option.
29680
+ * @throws {RequiredError}
29681
+ */
29682
+ apiV1NotificationsGet: async (notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29683
+ const localVarPath = `/api/v1/notifications`;
29684
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29685
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29686
+ let baseOptions;
29687
+ if (configuration) {
29688
+ baseOptions = configuration.baseOptions;
29689
+ }
29690
+
29691
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29692
+ const localVarHeaderParameter = {} as any;
29693
+ const localVarQueryParameter = {} as any;
29694
+
29695
+ // authentication oauth2 required
29696
+ // oauth required
29697
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29698
+
29699
+ if (notificationCode !== undefined) {
29700
+ localVarQueryParameter['NotificationCode'] = notificationCode;
29701
+ }
29702
+
29703
+ if (unreadCountOnly !== undefined) {
29704
+ localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
29705
+ }
29706
+
29707
+ if (page !== undefined) {
29708
+ localVarQueryParameter['page'] = page;
29709
+ }
29710
+
29711
+ if (limit !== undefined) {
29712
+ localVarQueryParameter['limit'] = limit;
29713
+ }
29714
+
29715
+ if (lastRetrieved !== undefined) {
29716
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
29717
+ (lastRetrieved as any).toISOString() :
29718
+ lastRetrieved;
29719
+ }
29720
+
29721
+
29722
+
29723
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29724
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29725
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29726
+
29727
+ return {
29728
+ url: toPathString(localVarUrlObj),
29729
+ options: localVarRequestOptions,
29730
+ };
29731
+ },
29732
+ }
29733
+ };
29734
+
29735
+ /**
29736
+ * NotificationsApi - functional programming interface
29737
+ * @export
29738
+ */
29739
+ export const NotificationsApiFp = function(configuration?: Configuration) {
29740
+ const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
29741
+ return {
29742
+ /**
29743
+ *
29744
+ * @summary Check notification.
29745
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
29746
+ * @param {*} [options] Override http request option.
29747
+ * @throws {RequiredError}
29748
+ */
29749
+ async apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
29750
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options);
29751
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29752
+ },
29753
+ /**
29754
+ *
29755
+ * @summary Get all notifications.
29756
+ * @param {NotificationCode} [notificationCode]
29757
+ * @param {boolean} [unreadCountOnly]
29758
+ * @param {number} [page]
29759
+ * @param {number} [limit]
29760
+ * @param {Date} [lastRetrieved]
29761
+ * @param {*} [options] Override http request option.
29762
+ * @throws {RequiredError}
29763
+ */
29764
+ async apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationsModel>> {
29765
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options);
29766
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29767
+ },
29768
+ }
29769
+ };
29770
+
29771
+ /**
29772
+ * NotificationsApi - factory interface
29773
+ * @export
29774
+ */
29775
+ export const NotificationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29776
+ const localVarFp = NotificationsApiFp(configuration)
29777
+ return {
29778
+ /**
29779
+ *
29780
+ * @summary Check notification.
29781
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
29782
+ * @param {*} [options] Override http request option.
29783
+ * @throws {RequiredError}
29784
+ */
29785
+ apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: any): AxiosPromise<boolean> {
29786
+ return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(axios, basePath));
29787
+ },
29788
+ /**
29789
+ *
29790
+ * @summary Get all notifications.
29791
+ * @param {NotificationCode} [notificationCode]
29792
+ * @param {boolean} [unreadCountOnly]
29793
+ * @param {number} [page]
29794
+ * @param {number} [limit]
29795
+ * @param {Date} [lastRetrieved]
29796
+ * @param {*} [options] Override http request option.
29797
+ * @throws {RequiredError}
29798
+ */
29799
+ apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<NotificationsModel> {
29800
+ return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
29801
+ },
29802
+ };
29803
+ };
29804
+
29805
+ /**
29806
+ * NotificationsApi - object-oriented interface
29807
+ * @export
29808
+ * @class NotificationsApi
29809
+ * @extends {BaseAPI}
29810
+ */
29811
+ export class NotificationsApi extends BaseAPI {
29812
+ /**
29813
+ *
29814
+ * @summary Check notification.
29815
+ * @param {CheckNotificationsCommand} [checkNotificationsCommand]
29816
+ * @param {*} [options] Override http request option.
29817
+ * @throws {RequiredError}
29818
+ * @memberof NotificationsApi
29819
+ */
29820
+ public apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig) {
29821
+ return NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(this.axios, this.basePath));
29822
+ }
29823
+
29824
+ /**
29825
+ *
29826
+ * @summary Get all notifications.
29827
+ * @param {NotificationCode} [notificationCode]
29828
+ * @param {boolean} [unreadCountOnly]
29829
+ * @param {number} [page]
29830
+ * @param {number} [limit]
29831
+ * @param {Date} [lastRetrieved]
29832
+ * @param {*} [options] Override http request option.
29833
+ * @throws {RequiredError}
29834
+ * @memberof NotificationsApi
29835
+ */
29836
+ public apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
29837
+ return NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
29838
+ }
29839
+ }
29840
+
29841
+
29842
+ /**
29843
+ * PlansApi - axios parameter creator
29844
+ * @export
29845
+ */
29846
+ export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
29847
+ return {
29848
+ /**
29849
+ *
29850
+ * @summary Get all plans.
29851
+ * @param {string} [id]
29852
+ * @param {string} [name]
29853
+ * @param {number} [page]
29854
+ * @param {number} [limit]
29855
+ * @param {Date} [lastRetrieved]
29856
+ * @param {*} [options] Override http request option.
29857
+ * @throws {RequiredError}
29858
+ */
29859
+ apiV1PlansGet: async (id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29860
+ const localVarPath = `/api/v1/plans`;
29861
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29862
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29863
+ let baseOptions;
29864
+ if (configuration) {
29865
+ baseOptions = configuration.baseOptions;
29866
+ }
29867
+
29868
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29869
+ const localVarHeaderParameter = {} as any;
29870
+ const localVarQueryParameter = {} as any;
29871
+
29872
+ // authentication oauth2 required
29873
+ // oauth required
29874
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29875
+
29876
+ if (id !== undefined) {
29877
+ localVarQueryParameter['Id'] = id;
29878
+ }
29879
+
29880
+ if (name !== undefined) {
29881
+ localVarQueryParameter['Name'] = name;
29882
+ }
29883
+
29884
+ if (page !== undefined) {
29885
+ localVarQueryParameter['page'] = page;
29886
+ }
29887
+
29888
+ if (limit !== undefined) {
29889
+ localVarQueryParameter['limit'] = limit;
29890
+ }
29891
+
29892
+ if (lastRetrieved !== undefined) {
29893
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
29894
+ (lastRetrieved as any).toISOString() :
29895
+ lastRetrieved;
29896
+ }
29897
+
29898
+
29899
+
29900
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29901
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29902
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29903
+
29904
+ return {
29905
+ url: toPathString(localVarUrlObj),
29906
+ options: localVarRequestOptions,
29907
+ };
29908
+ },
29909
+ /**
29910
+ *
29911
+ * @summary Delete plan.
29912
+ * @param {string} planId
29913
+ * @param {*} [options] Override http request option.
29914
+ * @throws {RequiredError}
29915
+ */
29916
+ apiV1PlansPlanIdDelete: async (planId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29917
+ // verify required parameter 'planId' is not null or undefined
29918
+ assertParamExists('apiV1PlansPlanIdDelete', 'planId', planId)
29919
+ const localVarPath = `/api/v1/plans/{planId}`
29920
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
29921
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29922
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29923
+ let baseOptions;
29924
+ if (configuration) {
29925
+ baseOptions = configuration.baseOptions;
29926
+ }
29927
+
29928
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
29929
+ const localVarHeaderParameter = {} as any;
29930
+ const localVarQueryParameter = {} as any;
29931
+
29932
+ // authentication oauth2 required
29933
+ // oauth required
29934
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29935
+
29936
+
29937
+
29938
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29939
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29940
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29941
+
29942
+ return {
29943
+ url: toPathString(localVarUrlObj),
29944
+ options: localVarRequestOptions,
29945
+ };
29946
+ },
29947
+ /**
29948
+ *
29949
+ * @summary Get plan.
29950
+ * @param {string} planId
29951
+ * @param {*} [options] Override http request option.
29952
+ * @throws {RequiredError}
29953
+ */
29954
+ apiV1PlansPlanIdGet: async (planId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29955
+ // verify required parameter 'planId' is not null or undefined
29956
+ assertParamExists('apiV1PlansPlanIdGet', 'planId', planId)
29957
+ const localVarPath = `/api/v1/plans/{planId}`
29958
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
29959
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29960
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29961
+ let baseOptions;
29962
+ if (configuration) {
29963
+ baseOptions = configuration.baseOptions;
29964
+ }
29965
+
29966
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
29967
+ const localVarHeaderParameter = {} as any;
29968
+ const localVarQueryParameter = {} as any;
29969
+
29970
+ // authentication oauth2 required
29971
+ // oauth required
29972
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
29973
+
29974
+
29975
+
29976
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29977
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29978
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29979
+
29980
+ return {
29981
+ url: toPathString(localVarUrlObj),
29982
+ options: localVarRequestOptions,
29983
+ };
29984
+ },
29985
+ /**
29986
+ *
29987
+ * @summary Get all plan hospital.
29988
+ * @param {string} planId
29989
+ * @param {number} [page]
29990
+ * @param {number} [limit]
29991
+ * @param {Date} [lastRetrieved]
29992
+ * @param {*} [options] Override http request option.
29993
+ * @throws {RequiredError}
29994
+ */
29995
+ apiV1PlansPlanIdHospitalsGet: async (planId: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
29996
+ // verify required parameter 'planId' is not null or undefined
29997
+ assertParamExists('apiV1PlansPlanIdHospitalsGet', 'planId', planId)
29998
+ const localVarPath = `/api/v1/plans/{planId}/hospitals`
29999
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
30000
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30001
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30002
+ let baseOptions;
30003
+ if (configuration) {
30004
+ baseOptions = configuration.baseOptions;
30005
+ }
30006
+
30007
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30008
+ const localVarHeaderParameter = {} as any;
30009
+ const localVarQueryParameter = {} as any;
30010
+
30011
+ // authentication oauth2 required
30012
+ // oauth required
30013
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30014
+
30015
+ if (page !== undefined) {
30016
+ localVarQueryParameter['page'] = page;
30017
+ }
30018
+
30019
+ if (limit !== undefined) {
30020
+ localVarQueryParameter['limit'] = limit;
30021
+ }
30022
+
30023
+ if (lastRetrieved !== undefined) {
30024
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
30025
+ (lastRetrieved as any).toISOString() :
30026
+ lastRetrieved;
30027
+ }
30028
+
30029
+
30030
+
30031
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30032
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30033
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30034
+
30035
+ return {
30036
+ url: toPathString(localVarUrlObj),
30037
+ options: localVarRequestOptions,
30038
+ };
30039
+ },
30040
+ /**
30041
+ *
30042
+ * @summary Delete plan hospital.
30043
+ * @param {string} planId
30044
+ * @param {string} hospitalId
30045
+ * @param {*} [options] Override http request option.
30046
+ * @throws {RequiredError}
30047
+ */
30048
+ apiV1PlansPlanIdHospitalsHospitalIdDelete: async (planId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30049
+ // verify required parameter 'planId' is not null or undefined
30050
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'planId', planId)
30051
+ // verify required parameter 'hospitalId' is not null or undefined
30052
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId)
30053
+ const localVarPath = `/api/v1/plans/{planId}/hospitals/{hospitalId}`
30054
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)))
30055
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
30056
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30057
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30058
+ let baseOptions;
30059
+ if (configuration) {
30060
+ baseOptions = configuration.baseOptions;
30061
+ }
30062
+
30063
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
30064
+ const localVarHeaderParameter = {} as any;
30065
+ const localVarQueryParameter = {} as any;
30066
+
30067
+ // authentication oauth2 required
30068
+ // oauth required
30069
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30070
+
30071
+
30072
+
30073
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30075
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30076
+
30077
+ return {
30078
+ url: toPathString(localVarUrlObj),
30079
+ options: localVarRequestOptions,
30080
+ };
30081
+ },
30082
+ /**
30083
+ *
30084
+ * @summary Get plan hospital.
30085
+ * @param {string} planId
30086
+ * @param {string} hospitalId
30087
+ * @param {*} [options] Override http request option.
30088
+ * @throws {RequiredError}
30089
+ */
30090
+ apiV1PlansPlanIdHospitalsHospitalIdGet: async (planId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30091
+ // verify required parameter 'planId' is not null or undefined
30092
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'planId', planId)
30093
+ // verify required parameter 'hospitalId' is not null or undefined
30094
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'hospitalId', hospitalId)
30095
+ const localVarPath = `/api/v1/plans/{planId}/hospitals/{hospitalId}`
30096
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)))
30097
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
30098
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30099
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30100
+ let baseOptions;
30101
+ if (configuration) {
30102
+ baseOptions = configuration.baseOptions;
30103
+ }
30104
+
30105
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30106
+ const localVarHeaderParameter = {} as any;
30107
+ const localVarQueryParameter = {} as any;
30108
+
30109
+ // authentication oauth2 required
30110
+ // oauth required
30111
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30112
+
30113
+
30114
+
30115
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30116
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30117
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30118
+
30119
+ return {
30120
+ url: toPathString(localVarUrlObj),
30121
+ options: localVarRequestOptions,
30122
+ };
30123
+ },
30124
+ /**
30125
+ *
30126
+ * @summary Update plan hospital.
30127
+ * @param {string} planId
30128
+ * @param {string} hospitalId
30129
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
30130
+ * @param {*} [options] Override http request option.
30131
+ * @throws {RequiredError}
30132
+ */
30133
+ apiV1PlansPlanIdHospitalsHospitalIdPut: async (planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30134
+ // verify required parameter 'planId' is not null or undefined
30135
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'planId', planId)
30136
+ // verify required parameter 'hospitalId' is not null or undefined
30137
+ assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'hospitalId', hospitalId)
30138
+ const localVarPath = `/api/v1/plans/{planId}/hospitals/{hospitalId}`
30139
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)))
30140
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
30141
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30142
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30143
+ let baseOptions;
30144
+ if (configuration) {
30145
+ baseOptions = configuration.baseOptions;
30146
+ }
30147
+
30148
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
30149
+ const localVarHeaderParameter = {} as any;
30150
+ const localVarQueryParameter = {} as any;
30151
+
30152
+ // authentication oauth2 required
30153
+ // oauth required
30154
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30155
+
30156
+
30157
+
30158
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30159
+
30160
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30162
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30163
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePlanHospitalCommand, localVarRequestOptions, configuration)
30164
+
30165
+ return {
30166
+ url: toPathString(localVarUrlObj),
30167
+ options: localVarRequestOptions,
30168
+ };
30169
+ },
30170
+ /**
30171
+ *
30172
+ * @summary Create plan hospital.
30173
+ * @param {string} planId
30174
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
30175
+ * @param {*} [options] Override http request option.
30176
+ * @throws {RequiredError}
30177
+ */
30178
+ apiV1PlansPlanIdHospitalsPost: async (planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30179
+ // verify required parameter 'planId' is not null or undefined
30180
+ assertParamExists('apiV1PlansPlanIdHospitalsPost', 'planId', planId)
30181
+ const localVarPath = `/api/v1/plans/{planId}/hospitals`
30182
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
30183
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30184
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30185
+ let baseOptions;
30186
+ if (configuration) {
30187
+ baseOptions = configuration.baseOptions;
30188
+ }
30189
+
30190
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30191
+ const localVarHeaderParameter = {} as any;
30192
+ const localVarQueryParameter = {} as any;
30193
+
30194
+ // authentication oauth2 required
30195
+ // oauth required
30196
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30197
+
30198
+
30199
+
30200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30201
+
30202
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30204
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30205
+ localVarRequestOptions.data = serializeDataIfNeeded(createPlanHospitalCommand, localVarRequestOptions, configuration)
30206
+
30207
+ return {
30208
+ url: toPathString(localVarUrlObj),
30209
+ options: localVarRequestOptions,
30210
+ };
30211
+ },
30212
+ /**
30213
+ *
30214
+ * @summary Update plan.
30215
+ * @param {string} planId
30216
+ * @param {UpdatePlanCommand} [updatePlanCommand]
30217
+ * @param {*} [options] Override http request option.
30218
+ * @throws {RequiredError}
30219
+ */
30220
+ apiV1PlansPlanIdPut: async (planId: string, updatePlanCommand?: UpdatePlanCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30221
+ // verify required parameter 'planId' is not null or undefined
30222
+ assertParamExists('apiV1PlansPlanIdPut', 'planId', planId)
30223
+ const localVarPath = `/api/v1/plans/{planId}`
30224
+ .replace(`{${"planId"}}`, encodeURIComponent(String(planId)));
30225
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30226
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30227
+ let baseOptions;
30228
+ if (configuration) {
30229
+ baseOptions = configuration.baseOptions;
30230
+ }
30231
+
30232
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
30233
+ const localVarHeaderParameter = {} as any;
30234
+ const localVarQueryParameter = {} as any;
30235
+
30236
+ // authentication oauth2 required
30237
+ // oauth required
30238
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30239
+
30240
+
30241
+
30242
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30243
+
30244
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30245
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30246
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30247
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePlanCommand, localVarRequestOptions, configuration)
30248
+
30249
+ return {
30250
+ url: toPathString(localVarUrlObj),
30251
+ options: localVarRequestOptions,
30252
+ };
30253
+ },
30254
+ /**
30255
+ *
30256
+ * @summary Create a plan.
30257
+ * @param {CreatePlanCommand} [createPlanCommand]
30258
+ * @param {*} [options] Override http request option.
30259
+ * @throws {RequiredError}
30260
+ */
30261
+ apiV1PlansPost: async (createPlanCommand?: CreatePlanCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30262
+ const localVarPath = `/api/v1/plans`;
30263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30264
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30265
+ let baseOptions;
30266
+ if (configuration) {
30267
+ baseOptions = configuration.baseOptions;
30268
+ }
30269
+
30270
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30271
+ const localVarHeaderParameter = {} as any;
30272
+ const localVarQueryParameter = {} as any;
30273
+
30274
+ // authentication oauth2 required
30275
+ // oauth required
30276
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30277
+
30278
+
30279
+
30280
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30281
+
30282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30284
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30285
+ localVarRequestOptions.data = serializeDataIfNeeded(createPlanCommand, localVarRequestOptions, configuration)
30286
+
30287
+ return {
30288
+ url: toPathString(localVarUrlObj),
30289
+ options: localVarRequestOptions,
30290
+ };
30291
+ },
30292
+ }
30293
+ };
30294
+
30295
+ /**
30296
+ * PlansApi - functional programming interface
30297
+ * @export
30298
+ */
30299
+ export const PlansApiFp = function(configuration?: Configuration) {
30300
+ const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
30301
+ return {
30302
+ /**
30303
+ *
30304
+ * @summary Get all plans.
30305
+ * @param {string} [id]
30306
+ * @param {string} [name]
30307
+ * @param {number} [page]
30308
+ * @param {number} [limit]
30309
+ * @param {Date} [lastRetrieved]
30310
+ * @param {*} [options] Override http request option.
30311
+ * @throws {RequiredError}
30312
+ */
30313
+ async apiV1PlansGet(id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlansModel>> {
30314
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansGet(id, name, page, limit, lastRetrieved, options);
30315
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30316
+ },
30317
+ /**
30318
+ *
30319
+ * @summary Delete plan.
30320
+ * @param {string} planId
30321
+ * @param {*} [options] Override http request option.
30322
+ * @throws {RequiredError}
30323
+ */
30324
+ async apiV1PlansPlanIdDelete(planId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
30325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdDelete(planId, options);
30326
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30327
+ },
30328
+ /**
30329
+ *
30330
+ * @summary Get plan.
30331
+ * @param {string} planId
30332
+ * @param {*} [options] Override http request option.
30333
+ * @throws {RequiredError}
30334
+ */
30335
+ async apiV1PlansPlanIdGet(planId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanModel>> {
30336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdGet(planId, options);
30337
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30338
+ },
30339
+ /**
30340
+ *
30341
+ * @summary Get all plan hospital.
30342
+ * @param {string} planId
30343
+ * @param {number} [page]
30344
+ * @param {number} [limit]
30345
+ * @param {Date} [lastRetrieved]
30346
+ * @param {*} [options] Override http request option.
30347
+ * @throws {RequiredError}
30348
+ */
30349
+ async apiV1PlansPlanIdHospitalsGet(planId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalsModel>> {
30350
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options);
30351
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30352
+ },
30353
+ /**
30354
+ *
30355
+ * @summary Delete plan hospital.
30356
+ * @param {string} planId
30357
+ * @param {string} hospitalId
30358
+ * @param {*} [options] Override http request option.
30359
+ * @throws {RequiredError}
30360
+ */
30361
+ async apiV1PlansPlanIdHospitalsHospitalIdDelete(planId: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
30362
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options);
30363
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30364
+ },
30365
+ /**
30366
+ *
30367
+ * @summary Get plan hospital.
30368
+ * @param {string} planId
30369
+ * @param {string} hospitalId
30370
+ * @param {*} [options] Override http request option.
30371
+ * @throws {RequiredError}
30372
+ */
30373
+ async apiV1PlansPlanIdHospitalsHospitalIdGet(planId: string, hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalModel>> {
30374
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options);
30375
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30376
+ },
30377
+ /**
30378
+ *
30379
+ * @summary Update plan hospital.
30380
+ * @param {string} planId
30381
+ * @param {string} hospitalId
30382
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
30383
+ * @param {*} [options] Override http request option.
30384
+ * @throws {RequiredError}
30385
+ */
30386
+ async apiV1PlansPlanIdHospitalsHospitalIdPut(planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
30387
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options);
30388
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30389
+ },
30390
+ /**
30391
+ *
30392
+ * @summary Create plan hospital.
30393
+ * @param {string} planId
30394
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
30395
+ * @param {*} [options] Override http request option.
30396
+ * @throws {RequiredError}
30397
+ */
30398
+ async apiV1PlansPlanIdHospitalsPost(planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanHospitalModel>> {
30399
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options);
30400
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30401
+ },
30402
+ /**
30403
+ *
30404
+ * @summary Update plan.
30405
+ * @param {string} planId
30406
+ * @param {UpdatePlanCommand} [updatePlanCommand]
30407
+ * @param {*} [options] Override http request option.
30408
+ * @throws {RequiredError}
30409
+ */
30410
+ async apiV1PlansPlanIdPut(planId: string, updatePlanCommand?: UpdatePlanCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
30411
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPlanIdPut(planId, updatePlanCommand, options);
30412
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30413
+ },
30414
+ /**
30415
+ *
30416
+ * @summary Create a plan.
30417
+ * @param {CreatePlanCommand} [createPlanCommand]
30418
+ * @param {*} [options] Override http request option.
30419
+ * @throws {RequiredError}
30420
+ */
30421
+ async apiV1PlansPost(createPlanCommand?: CreatePlanCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlanModel>> {
30422
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PlansPost(createPlanCommand, options);
30423
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30424
+ },
30425
+ }
30426
+ };
30427
+
30428
+ /**
30429
+ * PlansApi - factory interface
30430
+ * @export
30431
+ */
30432
+ export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30433
+ const localVarFp = PlansApiFp(configuration)
30434
+ return {
30435
+ /**
30436
+ *
30437
+ * @summary Get all plans.
30438
+ * @param {string} [id]
30439
+ * @param {string} [name]
30440
+ * @param {number} [page]
30441
+ * @param {number} [limit]
30442
+ * @param {Date} [lastRetrieved]
30443
+ * @param {*} [options] Override http request option.
30444
+ * @throws {RequiredError}
30445
+ */
30446
+ apiV1PlansGet(id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PlansModel> {
30447
+ return localVarFp.apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
30448
+ },
30449
+ /**
30450
+ *
30451
+ * @summary Delete plan.
30452
+ * @param {string} planId
30453
+ * @param {*} [options] Override http request option.
30454
+ * @throws {RequiredError}
30455
+ */
30456
+ apiV1PlansPlanIdDelete(planId: string, options?: any): AxiosPromise<boolean> {
30457
+ return localVarFp.apiV1PlansPlanIdDelete(planId, options).then((request) => request(axios, basePath));
30458
+ },
30459
+ /**
30460
+ *
30461
+ * @summary Get plan.
30462
+ * @param {string} planId
30463
+ * @param {*} [options] Override http request option.
30464
+ * @throws {RequiredError}
30465
+ */
30466
+ apiV1PlansPlanIdGet(planId: string, options?: any): AxiosPromise<PlanModel> {
30467
+ return localVarFp.apiV1PlansPlanIdGet(planId, options).then((request) => request(axios, basePath));
30468
+ },
30469
+ /**
30470
+ *
30471
+ * @summary Get all plan hospital.
30472
+ * @param {string} planId
30473
+ * @param {number} [page]
28248
30474
  * @param {number} [limit]
28249
30475
  * @param {Date} [lastRetrieved]
28250
30476
  * @param {*} [options] Override http request option.
28251
30477
  * @throws {RequiredError}
28252
30478
  */
28253
- apiV1NotificationsGet: async (notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28254
- const localVarPath = `/api/v1/notifications`;
30479
+ apiV1PlansPlanIdHospitalsGet(planId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PlanHospitalsModel> {
30480
+ return localVarFp.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
30481
+ },
30482
+ /**
30483
+ *
30484
+ * @summary Delete plan hospital.
30485
+ * @param {string} planId
30486
+ * @param {string} hospitalId
30487
+ * @param {*} [options] Override http request option.
30488
+ * @throws {RequiredError}
30489
+ */
30490
+ apiV1PlansPlanIdHospitalsHospitalIdDelete(planId: string, hospitalId: string, options?: any): AxiosPromise<boolean> {
30491
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then((request) => request(axios, basePath));
30492
+ },
30493
+ /**
30494
+ *
30495
+ * @summary Get plan hospital.
30496
+ * @param {string} planId
30497
+ * @param {string} hospitalId
30498
+ * @param {*} [options] Override http request option.
30499
+ * @throws {RequiredError}
30500
+ */
30501
+ apiV1PlansPlanIdHospitalsHospitalIdGet(planId: string, hospitalId: string, options?: any): AxiosPromise<PlanHospitalModel> {
30502
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then((request) => request(axios, basePath));
30503
+ },
30504
+ /**
30505
+ *
30506
+ * @summary Update plan hospital.
30507
+ * @param {string} planId
30508
+ * @param {string} hospitalId
30509
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
30510
+ * @param {*} [options] Override http request option.
30511
+ * @throws {RequiredError}
30512
+ */
30513
+ apiV1PlansPlanIdHospitalsHospitalIdPut(planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options?: any): AxiosPromise<boolean> {
30514
+ return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then((request) => request(axios, basePath));
30515
+ },
30516
+ /**
30517
+ *
30518
+ * @summary Create plan hospital.
30519
+ * @param {string} planId
30520
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
30521
+ * @param {*} [options] Override http request option.
30522
+ * @throws {RequiredError}
30523
+ */
30524
+ apiV1PlansPlanIdHospitalsPost(planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options?: any): AxiosPromise<PlanHospitalModel> {
30525
+ return localVarFp.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then((request) => request(axios, basePath));
30526
+ },
30527
+ /**
30528
+ *
30529
+ * @summary Update plan.
30530
+ * @param {string} planId
30531
+ * @param {UpdatePlanCommand} [updatePlanCommand]
30532
+ * @param {*} [options] Override http request option.
30533
+ * @throws {RequiredError}
30534
+ */
30535
+ apiV1PlansPlanIdPut(planId: string, updatePlanCommand?: UpdatePlanCommand, options?: any): AxiosPromise<boolean> {
30536
+ return localVarFp.apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then((request) => request(axios, basePath));
30537
+ },
30538
+ /**
30539
+ *
30540
+ * @summary Create a plan.
30541
+ * @param {CreatePlanCommand} [createPlanCommand]
30542
+ * @param {*} [options] Override http request option.
30543
+ * @throws {RequiredError}
30544
+ */
30545
+ apiV1PlansPost(createPlanCommand?: CreatePlanCommand, options?: any): AxiosPromise<PlanModel> {
30546
+ return localVarFp.apiV1PlansPost(createPlanCommand, options).then((request) => request(axios, basePath));
30547
+ },
30548
+ };
30549
+ };
30550
+
30551
+ /**
30552
+ * PlansApi - object-oriented interface
30553
+ * @export
30554
+ * @class PlansApi
30555
+ * @extends {BaseAPI}
30556
+ */
30557
+ export class PlansApi extends BaseAPI {
30558
+ /**
30559
+ *
30560
+ * @summary Get all plans.
30561
+ * @param {string} [id]
30562
+ * @param {string} [name]
30563
+ * @param {number} [page]
30564
+ * @param {number} [limit]
30565
+ * @param {Date} [lastRetrieved]
30566
+ * @param {*} [options] Override http request option.
30567
+ * @throws {RequiredError}
30568
+ * @memberof PlansApi
30569
+ */
30570
+ public apiV1PlansGet(id?: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
30571
+ return PlansApiFp(this.configuration).apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
30572
+ }
30573
+
30574
+ /**
30575
+ *
30576
+ * @summary Delete plan.
30577
+ * @param {string} planId
30578
+ * @param {*} [options] Override http request option.
30579
+ * @throws {RequiredError}
30580
+ * @memberof PlansApi
30581
+ */
30582
+ public apiV1PlansPlanIdDelete(planId: string, options?: AxiosRequestConfig) {
30583
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdDelete(planId, options).then((request) => request(this.axios, this.basePath));
30584
+ }
30585
+
30586
+ /**
30587
+ *
30588
+ * @summary Get plan.
30589
+ * @param {string} planId
30590
+ * @param {*} [options] Override http request option.
30591
+ * @throws {RequiredError}
30592
+ * @memberof PlansApi
30593
+ */
30594
+ public apiV1PlansPlanIdGet(planId: string, options?: AxiosRequestConfig) {
30595
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdGet(planId, options).then((request) => request(this.axios, this.basePath));
30596
+ }
30597
+
30598
+ /**
30599
+ *
30600
+ * @summary Get all plan hospital.
30601
+ * @param {string} planId
30602
+ * @param {number} [page]
30603
+ * @param {number} [limit]
30604
+ * @param {Date} [lastRetrieved]
30605
+ * @param {*} [options] Override http request option.
30606
+ * @throws {RequiredError}
30607
+ * @memberof PlansApi
30608
+ */
30609
+ public apiV1PlansPlanIdHospitalsGet(planId: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
30610
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
30611
+ }
30612
+
30613
+ /**
30614
+ *
30615
+ * @summary Delete plan hospital.
30616
+ * @param {string} planId
30617
+ * @param {string} hospitalId
30618
+ * @param {*} [options] Override http request option.
30619
+ * @throws {RequiredError}
30620
+ * @memberof PlansApi
30621
+ */
30622
+ public apiV1PlansPlanIdHospitalsHospitalIdDelete(planId: string, hospitalId: string, options?: AxiosRequestConfig) {
30623
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then((request) => request(this.axios, this.basePath));
30624
+ }
30625
+
30626
+ /**
30627
+ *
30628
+ * @summary Get plan hospital.
30629
+ * @param {string} planId
30630
+ * @param {string} hospitalId
30631
+ * @param {*} [options] Override http request option.
30632
+ * @throws {RequiredError}
30633
+ * @memberof PlansApi
30634
+ */
30635
+ public apiV1PlansPlanIdHospitalsHospitalIdGet(planId: string, hospitalId: string, options?: AxiosRequestConfig) {
30636
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then((request) => request(this.axios, this.basePath));
30637
+ }
30638
+
30639
+ /**
30640
+ *
30641
+ * @summary Update plan hospital.
30642
+ * @param {string} planId
30643
+ * @param {string} hospitalId
30644
+ * @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
30645
+ * @param {*} [options] Override http request option.
30646
+ * @throws {RequiredError}
30647
+ * @memberof PlansApi
30648
+ */
30649
+ public apiV1PlansPlanIdHospitalsHospitalIdPut(planId: string, hospitalId: string, updatePlanHospitalCommand?: UpdatePlanHospitalCommand, options?: AxiosRequestConfig) {
30650
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then((request) => request(this.axios, this.basePath));
30651
+ }
30652
+
30653
+ /**
30654
+ *
30655
+ * @summary Create plan hospital.
30656
+ * @param {string} planId
30657
+ * @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
30658
+ * @param {*} [options] Override http request option.
30659
+ * @throws {RequiredError}
30660
+ * @memberof PlansApi
30661
+ */
30662
+ public apiV1PlansPlanIdHospitalsPost(planId: string, createPlanHospitalCommand?: CreatePlanHospitalCommand, options?: AxiosRequestConfig) {
30663
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then((request) => request(this.axios, this.basePath));
30664
+ }
30665
+
30666
+ /**
30667
+ *
30668
+ * @summary Update plan.
30669
+ * @param {string} planId
30670
+ * @param {UpdatePlanCommand} [updatePlanCommand]
30671
+ * @param {*} [options] Override http request option.
30672
+ * @throws {RequiredError}
30673
+ * @memberof PlansApi
30674
+ */
30675
+ public apiV1PlansPlanIdPut(planId: string, updatePlanCommand?: UpdatePlanCommand, options?: AxiosRequestConfig) {
30676
+ return PlansApiFp(this.configuration).apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then((request) => request(this.axios, this.basePath));
30677
+ }
30678
+
30679
+ /**
30680
+ *
30681
+ * @summary Create a plan.
30682
+ * @param {CreatePlanCommand} [createPlanCommand]
30683
+ * @param {*} [options] Override http request option.
30684
+ * @throws {RequiredError}
30685
+ * @memberof PlansApi
30686
+ */
30687
+ public apiV1PlansPost(createPlanCommand?: CreatePlanCommand, options?: AxiosRequestConfig) {
30688
+ return PlansApiFp(this.configuration).apiV1PlansPost(createPlanCommand, options).then((request) => request(this.axios, this.basePath));
30689
+ }
30690
+ }
30691
+
30692
+
30693
+ /**
30694
+ * ProfilesApi - axios parameter creator
30695
+ * @export
30696
+ */
30697
+ export const ProfilesApiAxiosParamCreator = function (configuration?: Configuration) {
30698
+ return {
30699
+ /**
30700
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
30701
+ * @summary Change user\'s email on both Identity and Api.
30702
+ * @param {ChangeEmailCommand} [changeEmailCommand]
30703
+ * @param {*} [options] Override http request option.
30704
+ * @throws {RequiredError}
30705
+ */
30706
+ apiV1ProfilesChangeemailPost: async (changeEmailCommand?: ChangeEmailCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30707
+ const localVarPath = `/api/v1/profiles/changeemail`;
28255
30708
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28256
30709
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28257
30710
  let baseOptions;
@@ -28259,7 +30712,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
28259
30712
  baseOptions = configuration.baseOptions;
28260
30713
  }
28261
30714
 
28262
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30715
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28263
30716
  const localVarHeaderParameter = {} as any;
28264
30717
  const localVarQueryParameter = {} as any;
28265
30718
 
@@ -28267,28 +30720,81 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
28267
30720
  // oauth required
28268
30721
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
28269
30722
 
28270
- if (notificationCode !== undefined) {
28271
- localVarQueryParameter['NotificationCode'] = notificationCode;
28272
- }
28273
30723
 
28274
- if (unreadCountOnly !== undefined) {
28275
- localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
28276
- }
30724
+
30725
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28277
30726
 
28278
- if (page !== undefined) {
28279
- localVarQueryParameter['page'] = page;
28280
- }
30727
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30728
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30729
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30730
+ localVarRequestOptions.data = serializeDataIfNeeded(changeEmailCommand, localVarRequestOptions, configuration)
28281
30731
 
28282
- if (limit !== undefined) {
28283
- localVarQueryParameter['limit'] = limit;
30732
+ return {
30733
+ url: toPathString(localVarUrlObj),
30734
+ options: localVarRequestOptions,
30735
+ };
30736
+ },
30737
+ /**
30738
+ *
30739
+ * @summary Configm email.
30740
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
30741
+ * @param {*} [options] Override http request option.
30742
+ * @throws {RequiredError}
30743
+ */
30744
+ apiV1ProfilesConfirmemailPost: async (confirmEmailCommand?: ConfirmEmailCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30745
+ const localVarPath = `/api/v1/profiles/confirmemail`;
30746
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30747
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30748
+ let baseOptions;
30749
+ if (configuration) {
30750
+ baseOptions = configuration.baseOptions;
28284
30751
  }
28285
30752
 
28286
- if (lastRetrieved !== undefined) {
28287
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
28288
- (lastRetrieved as any).toISOString() :
28289
- lastRetrieved;
30753
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30754
+ const localVarHeaderParameter = {} as any;
30755
+ const localVarQueryParameter = {} as any;
30756
+
30757
+ // authentication oauth2 required
30758
+ // oauth required
30759
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30760
+
30761
+
30762
+
30763
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30764
+
30765
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30766
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30767
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30768
+ localVarRequestOptions.data = serializeDataIfNeeded(confirmEmailCommand, localVarRequestOptions, configuration)
30769
+
30770
+ return {
30771
+ url: toPathString(localVarUrlObj),
30772
+ options: localVarRequestOptions,
30773
+ };
30774
+ },
30775
+ /**
30776
+ *
30777
+ * @summary Get Profile.
30778
+ * @param {*} [options] Override http request option.
30779
+ * @throws {RequiredError}
30780
+ */
30781
+ apiV1ProfilesGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
30782
+ const localVarPath = `/api/v1/profiles`;
30783
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30784
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30785
+ let baseOptions;
30786
+ if (configuration) {
30787
+ baseOptions = configuration.baseOptions;
28290
30788
  }
28291
30789
 
30790
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
30791
+ const localVarHeaderParameter = {} as any;
30792
+ const localVarQueryParameter = {} as any;
30793
+
30794
+ // authentication oauth2 required
30795
+ // oauth required
30796
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
30797
+
28292
30798
 
28293
30799
 
28294
30800
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -28304,108 +30810,126 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
28304
30810
  };
28305
30811
 
28306
30812
  /**
28307
- * NotificationsApi - functional programming interface
30813
+ * ProfilesApi - functional programming interface
28308
30814
  * @export
28309
30815
  */
28310
- export const NotificationsApiFp = function(configuration?: Configuration) {
28311
- const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
30816
+ export const ProfilesApiFp = function(configuration?: Configuration) {
30817
+ const localVarAxiosParamCreator = ProfilesApiAxiosParamCreator(configuration)
28312
30818
  return {
30819
+ /**
30820
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
30821
+ * @summary Change user\'s email on both Identity and Api.
30822
+ * @param {ChangeEmailCommand} [changeEmailCommand]
30823
+ * @param {*} [options] Override http request option.
30824
+ * @throws {RequiredError}
30825
+ */
30826
+ async apiV1ProfilesChangeemailPost(changeEmailCommand?: ChangeEmailCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
30827
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ProfilesChangeemailPost(changeEmailCommand, options);
30828
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
30829
+ },
28313
30830
  /**
28314
30831
  *
28315
- * @summary Check notification.
28316
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30832
+ * @summary Configm email.
30833
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
28317
30834
  * @param {*} [options] Override http request option.
28318
30835
  * @throws {RequiredError}
28319
30836
  */
28320
- async apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
28321
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options);
30837
+ async apiV1ProfilesConfirmemailPost(confirmEmailCommand?: ConfirmEmailCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
30838
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options);
28322
30839
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28323
30840
  },
28324
30841
  /**
28325
30842
  *
28326
- * @summary Get all notifications.
28327
- * @param {NotificationCode} [notificationCode]
28328
- * @param {boolean} [unreadCountOnly]
28329
- * @param {number} [page]
28330
- * @param {number} [limit]
28331
- * @param {Date} [lastRetrieved]
30843
+ * @summary Get Profile.
28332
30844
  * @param {*} [options] Override http request option.
28333
30845
  * @throws {RequiredError}
28334
30846
  */
28335
- async apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationsModel>> {
28336
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options);
30847
+ async apiV1ProfilesGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserModel>> {
30848
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ProfilesGet(options);
28337
30849
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28338
30850
  },
28339
30851
  }
28340
30852
  };
28341
30853
 
28342
30854
  /**
28343
- * NotificationsApi - factory interface
30855
+ * ProfilesApi - factory interface
28344
30856
  * @export
28345
30857
  */
28346
- export const NotificationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28347
- const localVarFp = NotificationsApiFp(configuration)
30858
+ export const ProfilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
30859
+ const localVarFp = ProfilesApiFp(configuration)
28348
30860
  return {
30861
+ /**
30862
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
30863
+ * @summary Change user\'s email on both Identity and Api.
30864
+ * @param {ChangeEmailCommand} [changeEmailCommand]
30865
+ * @param {*} [options] Override http request option.
30866
+ * @throws {RequiredError}
30867
+ */
30868
+ apiV1ProfilesChangeemailPost(changeEmailCommand?: ChangeEmailCommand, options?: any): AxiosPromise<boolean> {
30869
+ return localVarFp.apiV1ProfilesChangeemailPost(changeEmailCommand, options).then((request) => request(axios, basePath));
30870
+ },
28349
30871
  /**
28350
30872
  *
28351
- * @summary Check notification.
28352
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30873
+ * @summary Configm email.
30874
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
28353
30875
  * @param {*} [options] Override http request option.
28354
30876
  * @throws {RequiredError}
28355
30877
  */
28356
- apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: any): AxiosPromise<boolean> {
28357
- return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(axios, basePath));
30878
+ apiV1ProfilesConfirmemailPost(confirmEmailCommand?: ConfirmEmailCommand, options?: any): AxiosPromise<boolean> {
30879
+ return localVarFp.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then((request) => request(axios, basePath));
28358
30880
  },
28359
30881
  /**
28360
30882
  *
28361
- * @summary Get all notifications.
28362
- * @param {NotificationCode} [notificationCode]
28363
- * @param {boolean} [unreadCountOnly]
28364
- * @param {number} [page]
28365
- * @param {number} [limit]
28366
- * @param {Date} [lastRetrieved]
30883
+ * @summary Get Profile.
28367
30884
  * @param {*} [options] Override http request option.
28368
30885
  * @throws {RequiredError}
28369
30886
  */
28370
- apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<NotificationsModel> {
28371
- return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
30887
+ apiV1ProfilesGet(options?: any): AxiosPromise<UserModel> {
30888
+ return localVarFp.apiV1ProfilesGet(options).then((request) => request(axios, basePath));
28372
30889
  },
28373
30890
  };
28374
30891
  };
28375
30892
 
28376
30893
  /**
28377
- * NotificationsApi - object-oriented interface
30894
+ * ProfilesApi - object-oriented interface
28378
30895
  * @export
28379
- * @class NotificationsApi
30896
+ * @class ProfilesApi
28380
30897
  * @extends {BaseAPI}
28381
30898
  */
28382
- export class NotificationsApi extends BaseAPI {
30899
+ export class ProfilesApi extends BaseAPI {
30900
+ /**
30901
+ * Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
30902
+ * @summary Change user\'s email on both Identity and Api.
30903
+ * @param {ChangeEmailCommand} [changeEmailCommand]
30904
+ * @param {*} [options] Override http request option.
30905
+ * @throws {RequiredError}
30906
+ * @memberof ProfilesApi
30907
+ */
30908
+ public apiV1ProfilesChangeemailPost(changeEmailCommand?: ChangeEmailCommand, options?: AxiosRequestConfig) {
30909
+ return ProfilesApiFp(this.configuration).apiV1ProfilesChangeemailPost(changeEmailCommand, options).then((request) => request(this.axios, this.basePath));
30910
+ }
30911
+
28383
30912
  /**
28384
30913
  *
28385
- * @summary Check notification.
28386
- * @param {CheckNotificationsCommand} [checkNotificationsCommand]
30914
+ * @summary Configm email.
30915
+ * @param {ConfirmEmailCommand} [confirmEmailCommand]
28387
30916
  * @param {*} [options] Override http request option.
28388
30917
  * @throws {RequiredError}
28389
- * @memberof NotificationsApi
30918
+ * @memberof ProfilesApi
28390
30919
  */
28391
- public apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig) {
28392
- return NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(this.axios, this.basePath));
30920
+ public apiV1ProfilesConfirmemailPost(confirmEmailCommand?: ConfirmEmailCommand, options?: AxiosRequestConfig) {
30921
+ return ProfilesApiFp(this.configuration).apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then((request) => request(this.axios, this.basePath));
28393
30922
  }
28394
30923
 
28395
30924
  /**
28396
30925
  *
28397
- * @summary Get all notifications.
28398
- * @param {NotificationCode} [notificationCode]
28399
- * @param {boolean} [unreadCountOnly]
28400
- * @param {number} [page]
28401
- * @param {number} [limit]
28402
- * @param {Date} [lastRetrieved]
30926
+ * @summary Get Profile.
28403
30927
  * @param {*} [options] Override http request option.
28404
30928
  * @throws {RequiredError}
28405
- * @memberof NotificationsApi
30929
+ * @memberof ProfilesApi
28406
30930
  */
28407
- public apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
28408
- return NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
30931
+ public apiV1ProfilesGet(options?: AxiosRequestConfig) {
30932
+ return ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then((request) => request(this.axios, this.basePath));
28409
30933
  }
28410
30934
  }
28411
30935