ch-admin-api-client-typescript 2.1.2 → 2.1.6
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/lib/api.d.ts +1204 -115
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1861 -204
- package/package.json +1 -1
- package/src/api.ts +2074 -255
package/src/api.ts
CHANGED
|
@@ -1701,6 +1701,25 @@ export enum ChargeStatus {
|
|
|
1701
1701
|
Failed = 'Failed'
|
|
1702
1702
|
}
|
|
1703
1703
|
|
|
1704
|
+
/**
|
|
1705
|
+
*
|
|
1706
|
+
* @export
|
|
1707
|
+
* @interface CheckNotificationsCommand
|
|
1708
|
+
*/
|
|
1709
|
+
export interface CheckNotificationsCommand {
|
|
1710
|
+
/**
|
|
1711
|
+
*
|
|
1712
|
+
* @type {string}
|
|
1713
|
+
* @memberof CheckNotificationsCommand
|
|
1714
|
+
*/
|
|
1715
|
+
'notificationId'?: string | null;
|
|
1716
|
+
/**
|
|
1717
|
+
*
|
|
1718
|
+
* @type {boolean}
|
|
1719
|
+
* @memberof CheckNotificationsCommand
|
|
1720
|
+
*/
|
|
1721
|
+
'isDelete'?: boolean;
|
|
1722
|
+
}
|
|
1704
1723
|
/**
|
|
1705
1724
|
*
|
|
1706
1725
|
* @export
|
|
@@ -3408,6 +3427,19 @@ export interface CreateDealServiceCommand {
|
|
|
3408
3427
|
*/
|
|
3409
3428
|
'order'?: number;
|
|
3410
3429
|
}
|
|
3430
|
+
/**
|
|
3431
|
+
*
|
|
3432
|
+
* @export
|
|
3433
|
+
* @interface CreateDoctorAffiliationCommand
|
|
3434
|
+
*/
|
|
3435
|
+
export interface CreateDoctorAffiliationCommand {
|
|
3436
|
+
/**
|
|
3437
|
+
*
|
|
3438
|
+
* @type {string}
|
|
3439
|
+
* @memberof CreateDoctorAffiliationCommand
|
|
3440
|
+
*/
|
|
3441
|
+
'hospitalId'?: string;
|
|
3442
|
+
}
|
|
3411
3443
|
/**
|
|
3412
3444
|
*
|
|
3413
3445
|
* @export
|
|
@@ -3628,6 +3660,25 @@ export interface CreateDoctorPortfolioCommand {
|
|
|
3628
3660
|
*/
|
|
3629
3661
|
'photoAfterThumbnail'?: string | null;
|
|
3630
3662
|
}
|
|
3663
|
+
/**
|
|
3664
|
+
*
|
|
3665
|
+
* @export
|
|
3666
|
+
* @interface CreateDoctorSpecialtyCommand
|
|
3667
|
+
*/
|
|
3668
|
+
export interface CreateDoctorSpecialtyCommand {
|
|
3669
|
+
/**
|
|
3670
|
+
*
|
|
3671
|
+
* @type {string}
|
|
3672
|
+
* @memberof CreateDoctorSpecialtyCommand
|
|
3673
|
+
*/
|
|
3674
|
+
'specialtyId'?: string;
|
|
3675
|
+
/**
|
|
3676
|
+
*
|
|
3677
|
+
* @type {number}
|
|
3678
|
+
* @memberof CreateDoctorSpecialtyCommand
|
|
3679
|
+
*/
|
|
3680
|
+
'order'?: number;
|
|
3681
|
+
}
|
|
3631
3682
|
/**
|
|
3632
3683
|
*
|
|
3633
3684
|
* @export
|
|
@@ -4744,6 +4795,19 @@ export interface DealsModel {
|
|
|
4744
4795
|
*/
|
|
4745
4796
|
'metaData'?: PagedListMetaData;
|
|
4746
4797
|
}
|
|
4798
|
+
/**
|
|
4799
|
+
*
|
|
4800
|
+
* @export
|
|
4801
|
+
* @interface DeleteDoctorAffiliationCommand
|
|
4802
|
+
*/
|
|
4803
|
+
export interface DeleteDoctorAffiliationCommand {
|
|
4804
|
+
/**
|
|
4805
|
+
*
|
|
4806
|
+
* @type {string}
|
|
4807
|
+
* @memberof DeleteDoctorAffiliationCommand
|
|
4808
|
+
*/
|
|
4809
|
+
'hospitalId'?: string;
|
|
4810
|
+
}
|
|
4747
4811
|
/**
|
|
4748
4812
|
*
|
|
4749
4813
|
* @export
|
|
@@ -5133,6 +5197,73 @@ export interface DoctorAffiliation {
|
|
|
5133
5197
|
*/
|
|
5134
5198
|
'order'?: number;
|
|
5135
5199
|
}
|
|
5200
|
+
/**
|
|
5201
|
+
*
|
|
5202
|
+
* @export
|
|
5203
|
+
* @interface DoctorAffiliationModel
|
|
5204
|
+
*/
|
|
5205
|
+
export interface DoctorAffiliationModel {
|
|
5206
|
+
/**
|
|
5207
|
+
*
|
|
5208
|
+
* @type {string}
|
|
5209
|
+
* @memberof DoctorAffiliationModel
|
|
5210
|
+
*/
|
|
5211
|
+
'hospitalId'?: string;
|
|
5212
|
+
/**
|
|
5213
|
+
*
|
|
5214
|
+
* @type {string}
|
|
5215
|
+
* @memberof DoctorAffiliationModel
|
|
5216
|
+
*/
|
|
5217
|
+
'hospitalName'?: string | null;
|
|
5218
|
+
/**
|
|
5219
|
+
*
|
|
5220
|
+
* @type {string}
|
|
5221
|
+
* @memberof DoctorAffiliationModel
|
|
5222
|
+
*/
|
|
5223
|
+
'hospitalSlug'?: string | null;
|
|
5224
|
+
/**
|
|
5225
|
+
*
|
|
5226
|
+
* @type {string}
|
|
5227
|
+
* @memberof DoctorAffiliationModel
|
|
5228
|
+
*/
|
|
5229
|
+
'countryId'?: string;
|
|
5230
|
+
/**
|
|
5231
|
+
*
|
|
5232
|
+
* @type {string}
|
|
5233
|
+
* @memberof DoctorAffiliationModel
|
|
5234
|
+
*/
|
|
5235
|
+
'countryName'?: string | null;
|
|
5236
|
+
/**
|
|
5237
|
+
*
|
|
5238
|
+
* @type {string}
|
|
5239
|
+
* @memberof DoctorAffiliationModel
|
|
5240
|
+
*/
|
|
5241
|
+
'stateName'?: string | null;
|
|
5242
|
+
/**
|
|
5243
|
+
*
|
|
5244
|
+
* @type {string}
|
|
5245
|
+
* @memberof DoctorAffiliationModel
|
|
5246
|
+
*/
|
|
5247
|
+
'cityName'?: string | null;
|
|
5248
|
+
/**
|
|
5249
|
+
*
|
|
5250
|
+
* @type {string}
|
|
5251
|
+
* @memberof DoctorAffiliationModel
|
|
5252
|
+
*/
|
|
5253
|
+
'doctorId'?: string;
|
|
5254
|
+
/**
|
|
5255
|
+
*
|
|
5256
|
+
* @type {string}
|
|
5257
|
+
* @memberof DoctorAffiliationModel
|
|
5258
|
+
*/
|
|
5259
|
+
'doctorName'?: string | null;
|
|
5260
|
+
/**
|
|
5261
|
+
*
|
|
5262
|
+
* @type {number}
|
|
5263
|
+
* @memberof DoctorAffiliationModel
|
|
5264
|
+
*/
|
|
5265
|
+
'order'?: number;
|
|
5266
|
+
}
|
|
5136
5267
|
/**
|
|
5137
5268
|
*
|
|
5138
5269
|
* @export
|
|
@@ -8031,6 +8162,111 @@ export interface HospitalsModel {
|
|
|
8031
8162
|
*/
|
|
8032
8163
|
'metaData'?: PagedListMetaData;
|
|
8033
8164
|
}
|
|
8165
|
+
/**
|
|
8166
|
+
*
|
|
8167
|
+
* @export
|
|
8168
|
+
* @interface LanguageItemModel
|
|
8169
|
+
*/
|
|
8170
|
+
export interface LanguageItemModel {
|
|
8171
|
+
/**
|
|
8172
|
+
*
|
|
8173
|
+
* @type {string}
|
|
8174
|
+
* @memberof LanguageItemModel
|
|
8175
|
+
*/
|
|
8176
|
+
'id'?: string;
|
|
8177
|
+
/**
|
|
8178
|
+
*
|
|
8179
|
+
* @type {string}
|
|
8180
|
+
* @memberof LanguageItemModel
|
|
8181
|
+
*/
|
|
8182
|
+
'code'?: string | null;
|
|
8183
|
+
/**
|
|
8184
|
+
*
|
|
8185
|
+
* @type {string}
|
|
8186
|
+
* @memberof LanguageItemModel
|
|
8187
|
+
*/
|
|
8188
|
+
'name'?: string | null;
|
|
8189
|
+
/**
|
|
8190
|
+
*
|
|
8191
|
+
* @type {string}
|
|
8192
|
+
* @memberof LanguageItemModel
|
|
8193
|
+
*/
|
|
8194
|
+
'description'?: string | null;
|
|
8195
|
+
/**
|
|
8196
|
+
*
|
|
8197
|
+
* @type {boolean}
|
|
8198
|
+
* @memberof LanguageItemModel
|
|
8199
|
+
*/
|
|
8200
|
+
'published'?: boolean;
|
|
8201
|
+
/**
|
|
8202
|
+
*
|
|
8203
|
+
* @type {number}
|
|
8204
|
+
* @memberof LanguageItemModel
|
|
8205
|
+
*/
|
|
8206
|
+
'order'?: number;
|
|
8207
|
+
}
|
|
8208
|
+
/**
|
|
8209
|
+
*
|
|
8210
|
+
* @export
|
|
8211
|
+
* @interface LanguageModel
|
|
8212
|
+
*/
|
|
8213
|
+
export interface LanguageModel {
|
|
8214
|
+
/**
|
|
8215
|
+
*
|
|
8216
|
+
* @type {string}
|
|
8217
|
+
* @memberof LanguageModel
|
|
8218
|
+
*/
|
|
8219
|
+
'id'?: string;
|
|
8220
|
+
/**
|
|
8221
|
+
*
|
|
8222
|
+
* @type {string}
|
|
8223
|
+
* @memberof LanguageModel
|
|
8224
|
+
*/
|
|
8225
|
+
'code'?: string | null;
|
|
8226
|
+
/**
|
|
8227
|
+
*
|
|
8228
|
+
* @type {string}
|
|
8229
|
+
* @memberof LanguageModel
|
|
8230
|
+
*/
|
|
8231
|
+
'name'?: string | null;
|
|
8232
|
+
/**
|
|
8233
|
+
*
|
|
8234
|
+
* @type {string}
|
|
8235
|
+
* @memberof LanguageModel
|
|
8236
|
+
*/
|
|
8237
|
+
'description'?: string | null;
|
|
8238
|
+
/**
|
|
8239
|
+
*
|
|
8240
|
+
* @type {boolean}
|
|
8241
|
+
* @memberof LanguageModel
|
|
8242
|
+
*/
|
|
8243
|
+
'published'?: boolean;
|
|
8244
|
+
/**
|
|
8245
|
+
*
|
|
8246
|
+
* @type {number}
|
|
8247
|
+
* @memberof LanguageModel
|
|
8248
|
+
*/
|
|
8249
|
+
'order'?: number;
|
|
8250
|
+
}
|
|
8251
|
+
/**
|
|
8252
|
+
*
|
|
8253
|
+
* @export
|
|
8254
|
+
* @interface LanguagesModel
|
|
8255
|
+
*/
|
|
8256
|
+
export interface LanguagesModel {
|
|
8257
|
+
/**
|
|
8258
|
+
*
|
|
8259
|
+
* @type {Array<LanguageItemModel>}
|
|
8260
|
+
* @memberof LanguagesModel
|
|
8261
|
+
*/
|
|
8262
|
+
'items'?: Array<LanguageItemModel> | null;
|
|
8263
|
+
/**
|
|
8264
|
+
*
|
|
8265
|
+
* @type {PagedListMetaData}
|
|
8266
|
+
* @memberof LanguagesModel
|
|
8267
|
+
*/
|
|
8268
|
+
'metaData'?: PagedListMetaData;
|
|
8269
|
+
}
|
|
8034
8270
|
/**
|
|
8035
8271
|
*
|
|
8036
8272
|
* @export
|
|
@@ -8576,6 +8812,126 @@ export interface MembershipInvitation {
|
|
|
8576
8812
|
*/
|
|
8577
8813
|
'email'?: string | null;
|
|
8578
8814
|
}
|
|
8815
|
+
/**
|
|
8816
|
+
*
|
|
8817
|
+
* @export
|
|
8818
|
+
* @enum {string}
|
|
8819
|
+
*/
|
|
8820
|
+
|
|
8821
|
+
export enum NotificationCode {
|
|
8822
|
+
WelcomeEmail = 'WelcomeEmail',
|
|
8823
|
+
DirectMessageSent = 'DirectMessageSent',
|
|
8824
|
+
BookingNew = 'BookingNew',
|
|
8825
|
+
BookingUpdated = 'BookingUpdated',
|
|
8826
|
+
BookingRejected = 'BookingRejected',
|
|
8827
|
+
BookingApproved = 'BookingApproved',
|
|
8828
|
+
BookingPaid = 'BookingPaid',
|
|
8829
|
+
BookingCanceled = 'BookingCanceled',
|
|
8830
|
+
BookingRefundRequested = 'BookingRefundRequested',
|
|
8831
|
+
BookingRefunded = 'BookingRefunded',
|
|
8832
|
+
ConsultationNew = 'ConsultationNew',
|
|
8833
|
+
ConsultationUpdated = 'ConsultationUpdated',
|
|
8834
|
+
ConsultationRejected = 'ConsultationRejected',
|
|
8835
|
+
ConsultationApproved = 'ConsultationApproved',
|
|
8836
|
+
ConsultationPaid = 'ConsultationPaid',
|
|
8837
|
+
ConsultationCanceled = 'ConsultationCanceled',
|
|
8838
|
+
ConsultationRefundRequested = 'ConsultationRefundRequested',
|
|
8839
|
+
ConsultationRefunded = 'ConsultationRefunded',
|
|
8840
|
+
ConsultationReady = 'ConsultationReady'
|
|
8841
|
+
}
|
|
8842
|
+
|
|
8843
|
+
/**
|
|
8844
|
+
*
|
|
8845
|
+
* @export
|
|
8846
|
+
* @interface NotificationModel
|
|
8847
|
+
*/
|
|
8848
|
+
export interface NotificationModel {
|
|
8849
|
+
/**
|
|
8850
|
+
*
|
|
8851
|
+
* @type {string}
|
|
8852
|
+
* @memberof NotificationModel
|
|
8853
|
+
*/
|
|
8854
|
+
'id'?: string;
|
|
8855
|
+
/**
|
|
8856
|
+
*
|
|
8857
|
+
* @type {NotificationCode}
|
|
8858
|
+
* @memberof NotificationModel
|
|
8859
|
+
*/
|
|
8860
|
+
'notificationCode'?: NotificationCode;
|
|
8861
|
+
/**
|
|
8862
|
+
*
|
|
8863
|
+
* @type {string}
|
|
8864
|
+
* @memberof NotificationModel
|
|
8865
|
+
*/
|
|
8866
|
+
'notificationTargetId'?: string;
|
|
8867
|
+
/**
|
|
8868
|
+
*
|
|
8869
|
+
* @type {string}
|
|
8870
|
+
* @memberof NotificationModel
|
|
8871
|
+
*/
|
|
8872
|
+
'senderId'?: string | null;
|
|
8873
|
+
/**
|
|
8874
|
+
*
|
|
8875
|
+
* @type {string}
|
|
8876
|
+
* @memberof NotificationModel
|
|
8877
|
+
*/
|
|
8878
|
+
'senderName'?: string | null;
|
|
8879
|
+
/**
|
|
8880
|
+
*
|
|
8881
|
+
* @type {string}
|
|
8882
|
+
* @memberof NotificationModel
|
|
8883
|
+
*/
|
|
8884
|
+
'receiverId'?: string | null;
|
|
8885
|
+
/**
|
|
8886
|
+
*
|
|
8887
|
+
* @type {string}
|
|
8888
|
+
* @memberof NotificationModel
|
|
8889
|
+
*/
|
|
8890
|
+
'receiverName'?: string | null;
|
|
8891
|
+
/**
|
|
8892
|
+
*
|
|
8893
|
+
* @type {string}
|
|
8894
|
+
* @memberof NotificationModel
|
|
8895
|
+
*/
|
|
8896
|
+
'message'?: string | null;
|
|
8897
|
+
/**
|
|
8898
|
+
*
|
|
8899
|
+
* @type {Date}
|
|
8900
|
+
* @memberof NotificationModel
|
|
8901
|
+
*/
|
|
8902
|
+
'createdAt'?: Date;
|
|
8903
|
+
/**
|
|
8904
|
+
*
|
|
8905
|
+
* @type {boolean}
|
|
8906
|
+
* @memberof NotificationModel
|
|
8907
|
+
*/
|
|
8908
|
+
'isChecked'?: boolean;
|
|
8909
|
+
}
|
|
8910
|
+
/**
|
|
8911
|
+
*
|
|
8912
|
+
* @export
|
|
8913
|
+
* @interface NotificationsModel
|
|
8914
|
+
*/
|
|
8915
|
+
export interface NotificationsModel {
|
|
8916
|
+
/**
|
|
8917
|
+
*
|
|
8918
|
+
* @type {Array<NotificationModel>}
|
|
8919
|
+
* @memberof NotificationsModel
|
|
8920
|
+
*/
|
|
8921
|
+
'items'?: Array<NotificationModel> | null;
|
|
8922
|
+
/**
|
|
8923
|
+
*
|
|
8924
|
+
* @type {PagedListMetaData}
|
|
8925
|
+
* @memberof NotificationsModel
|
|
8926
|
+
*/
|
|
8927
|
+
'metaData'?: PagedListMetaData;
|
|
8928
|
+
/**
|
|
8929
|
+
*
|
|
8930
|
+
* @type {number}
|
|
8931
|
+
* @memberof NotificationsModel
|
|
8932
|
+
*/
|
|
8933
|
+
'unreadCount'?: number;
|
|
8934
|
+
}
|
|
8579
8935
|
/**
|
|
8580
8936
|
*
|
|
8581
8937
|
* @export
|
|
@@ -10857,13 +11213,32 @@ export interface UpdateContributorCommand {
|
|
|
10857
11213
|
/**
|
|
10858
11214
|
*
|
|
10859
11215
|
* @export
|
|
10860
|
-
* @interface
|
|
11216
|
+
* @interface UpdateContributorSnsHandleCommand
|
|
10861
11217
|
*/
|
|
10862
|
-
export interface
|
|
11218
|
+
export interface UpdateContributorSnsHandleCommand {
|
|
10863
11219
|
/**
|
|
10864
11220
|
*
|
|
10865
|
-
* @type {
|
|
10866
|
-
* @memberof
|
|
11221
|
+
* @type {SnsType}
|
|
11222
|
+
* @memberof UpdateContributorSnsHandleCommand
|
|
11223
|
+
*/
|
|
11224
|
+
'snsType'?: SnsType;
|
|
11225
|
+
/**
|
|
11226
|
+
*
|
|
11227
|
+
* @type {string}
|
|
11228
|
+
* @memberof UpdateContributorSnsHandleCommand
|
|
11229
|
+
*/
|
|
11230
|
+
'handle'?: string | null;
|
|
11231
|
+
}
|
|
11232
|
+
/**
|
|
11233
|
+
*
|
|
11234
|
+
* @export
|
|
11235
|
+
* @interface UpdateCountryCommand
|
|
11236
|
+
*/
|
|
11237
|
+
export interface UpdateCountryCommand {
|
|
11238
|
+
/**
|
|
11239
|
+
*
|
|
11240
|
+
* @type {string}
|
|
11241
|
+
* @memberof UpdateCountryCommand
|
|
10867
11242
|
*/
|
|
10868
11243
|
'name'?: string | null;
|
|
10869
11244
|
/**
|
|
@@ -11192,6 +11567,19 @@ export interface UpdateDoctorPortfolioCommand {
|
|
|
11192
11567
|
*/
|
|
11193
11568
|
'photoAfterThumbnail'?: string | null;
|
|
11194
11569
|
}
|
|
11570
|
+
/**
|
|
11571
|
+
*
|
|
11572
|
+
* @export
|
|
11573
|
+
* @interface UpdateDoctorSpecialtyCommand
|
|
11574
|
+
*/
|
|
11575
|
+
export interface UpdateDoctorSpecialtyCommand {
|
|
11576
|
+
/**
|
|
11577
|
+
*
|
|
11578
|
+
* @type {number}
|
|
11579
|
+
* @memberof UpdateDoctorSpecialtyCommand
|
|
11580
|
+
*/
|
|
11581
|
+
'order'?: number;
|
|
11582
|
+
}
|
|
11195
11583
|
/**
|
|
11196
11584
|
*
|
|
11197
11585
|
* @export
|
|
@@ -11501,6 +11889,19 @@ export interface UpdateHospitalServiceCommand {
|
|
|
11501
11889
|
*/
|
|
11502
11890
|
'order'?: number;
|
|
11503
11891
|
}
|
|
11892
|
+
/**
|
|
11893
|
+
*
|
|
11894
|
+
* @export
|
|
11895
|
+
* @interface UpdateHospitalSpecialtyCommand
|
|
11896
|
+
*/
|
|
11897
|
+
export interface UpdateHospitalSpecialtyCommand {
|
|
11898
|
+
/**
|
|
11899
|
+
*
|
|
11900
|
+
* @type {number}
|
|
11901
|
+
* @memberof UpdateHospitalSpecialtyCommand
|
|
11902
|
+
*/
|
|
11903
|
+
'order'?: number;
|
|
11904
|
+
}
|
|
11504
11905
|
/**
|
|
11505
11906
|
*
|
|
11506
11907
|
* @export
|
|
@@ -12743,7 +13144,6 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12743
13144
|
*
|
|
12744
13145
|
* @summary GetAll ArticleContributors.
|
|
12745
13146
|
* @param {string} articleId
|
|
12746
|
-
* @param {string} [articleId2]
|
|
12747
13147
|
* @param {string} [articleName]
|
|
12748
13148
|
* @param {string} [contributorId]
|
|
12749
13149
|
* @param {string} [contributorName]
|
|
@@ -12757,7 +13157,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12757
13157
|
* @param {*} [options] Override http request option.
|
|
12758
13158
|
* @throws {RequiredError}
|
|
12759
13159
|
*/
|
|
12760
|
-
apiV1ArticlesArticleIdContributorsGet: async (articleId: string,
|
|
13160
|
+
apiV1ArticlesArticleIdContributorsGet: 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> => {
|
|
12761
13161
|
// verify required parameter 'articleId' is not null or undefined
|
|
12762
13162
|
assertParamExists('apiV1ArticlesArticleIdContributorsGet', 'articleId', articleId)
|
|
12763
13163
|
const localVarPath = `/api/v1/articles/{articleId}/contributors`
|
|
@@ -12777,10 +13177,6 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12777
13177
|
// oauth required
|
|
12778
13178
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
12779
13179
|
|
|
12780
|
-
if (articleId2 !== undefined) {
|
|
12781
|
-
localVarQueryParameter['ArticleId'] = articleId2;
|
|
12782
|
-
}
|
|
12783
|
-
|
|
12784
13180
|
if (articleName !== undefined) {
|
|
12785
13181
|
localVarQueryParameter['ArticleName'] = articleName;
|
|
12786
13182
|
}
|
|
@@ -13467,7 +13863,6 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
13467
13863
|
*
|
|
13468
13864
|
* @summary GetAll ArticleContributors.
|
|
13469
13865
|
* @param {string} articleId
|
|
13470
|
-
* @param {string} [articleId2]
|
|
13471
13866
|
* @param {string} [articleName]
|
|
13472
13867
|
* @param {string} [contributorId]
|
|
13473
13868
|
* @param {string} [contributorName]
|
|
@@ -13481,7 +13876,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
13481
13876
|
* @param {*} [options] Override http request option.
|
|
13482
13877
|
* @throws {RequiredError}
|
|
13483
13878
|
*/
|
|
13484
|
-
apiV1ArticlesArticleIdTagsGet: async (articleId: string,
|
|
13879
|
+
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> => {
|
|
13485
13880
|
// verify required parameter 'articleId' is not null or undefined
|
|
13486
13881
|
assertParamExists('apiV1ArticlesArticleIdTagsGet', 'articleId', articleId)
|
|
13487
13882
|
const localVarPath = `/api/v1/articles/{articleId}/tags`
|
|
@@ -13501,10 +13896,6 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
13501
13896
|
// oauth required
|
|
13502
13897
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
13503
13898
|
|
|
13504
|
-
if (articleId2 !== undefined) {
|
|
13505
|
-
localVarQueryParameter['ArticleId'] = articleId2;
|
|
13506
|
-
}
|
|
13507
|
-
|
|
13508
13899
|
if (articleName !== undefined) {
|
|
13509
13900
|
localVarQueryParameter['ArticleName'] = articleName;
|
|
13510
13901
|
}
|
|
@@ -13949,7 +14340,6 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
|
|
|
13949
14340
|
*
|
|
13950
14341
|
* @summary GetAll ArticleContributors.
|
|
13951
14342
|
* @param {string} articleId
|
|
13952
|
-
* @param {string} [articleId2]
|
|
13953
14343
|
* @param {string} [articleName]
|
|
13954
14344
|
* @param {string} [contributorId]
|
|
13955
14345
|
* @param {string} [contributorName]
|
|
@@ -13963,8 +14353,8 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
|
|
|
13963
14353
|
* @param {*} [options] Override http request option.
|
|
13964
14354
|
* @throws {RequiredError}
|
|
13965
14355
|
*/
|
|
13966
|
-
async apiV1ArticlesArticleIdContributorsGet(articleId: string,
|
|
13967
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsGet(articleId,
|
|
14356
|
+
async apiV1ArticlesArticleIdContributorsGet(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>> {
|
|
14357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options);
|
|
13968
14358
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13969
14359
|
},
|
|
13970
14360
|
/**
|
|
@@ -14146,7 +14536,6 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
|
|
|
14146
14536
|
*
|
|
14147
14537
|
* @summary GetAll ArticleContributors.
|
|
14148
14538
|
* @param {string} articleId
|
|
14149
|
-
* @param {string} [articleId2]
|
|
14150
14539
|
* @param {string} [articleName]
|
|
14151
14540
|
* @param {string} [contributorId]
|
|
14152
14541
|
* @param {string} [contributorName]
|
|
@@ -14160,8 +14549,8 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
|
|
|
14160
14549
|
* @param {*} [options] Override http request option.
|
|
14161
14550
|
* @throws {RequiredError}
|
|
14162
14551
|
*/
|
|
14163
|
-
async apiV1ArticlesArticleIdTagsGet(articleId: string,
|
|
14164
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId,
|
|
14552
|
+
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>> {
|
|
14553
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options);
|
|
14165
14554
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
14166
14555
|
},
|
|
14167
14556
|
/**
|
|
@@ -14300,7 +14689,6 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
|
|
|
14300
14689
|
*
|
|
14301
14690
|
* @summary GetAll ArticleContributors.
|
|
14302
14691
|
* @param {string} articleId
|
|
14303
|
-
* @param {string} [articleId2]
|
|
14304
14692
|
* @param {string} [articleName]
|
|
14305
14693
|
* @param {string} [contributorId]
|
|
14306
14694
|
* @param {string} [contributorName]
|
|
@@ -14314,8 +14702,8 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
|
|
|
14314
14702
|
* @param {*} [options] Override http request option.
|
|
14315
14703
|
* @throws {RequiredError}
|
|
14316
14704
|
*/
|
|
14317
|
-
apiV1ArticlesArticleIdContributorsGet(articleId: string,
|
|
14318
|
-
return localVarFp.apiV1ArticlesArticleIdContributorsGet(articleId,
|
|
14705
|
+
apiV1ArticlesArticleIdContributorsGet(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> {
|
|
14706
|
+
return localVarFp.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
14319
14707
|
},
|
|
14320
14708
|
/**
|
|
14321
14709
|
*
|
|
@@ -14482,7 +14870,6 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
|
|
|
14482
14870
|
*
|
|
14483
14871
|
* @summary GetAll ArticleContributors.
|
|
14484
14872
|
* @param {string} articleId
|
|
14485
|
-
* @param {string} [articleId2]
|
|
14486
14873
|
* @param {string} [articleName]
|
|
14487
14874
|
* @param {string} [contributorId]
|
|
14488
14875
|
* @param {string} [contributorName]
|
|
@@ -14496,8 +14883,8 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
|
|
|
14496
14883
|
* @param {*} [options] Override http request option.
|
|
14497
14884
|
* @throws {RequiredError}
|
|
14498
14885
|
*/
|
|
14499
|
-
apiV1ArticlesArticleIdTagsGet(articleId: string,
|
|
14500
|
-
return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId,
|
|
14886
|
+
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> {
|
|
14887
|
+
return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
14501
14888
|
},
|
|
14502
14889
|
/**
|
|
14503
14890
|
*
|
|
@@ -14635,7 +15022,6 @@ export class ArticlesApi extends BaseAPI {
|
|
|
14635
15022
|
*
|
|
14636
15023
|
* @summary GetAll ArticleContributors.
|
|
14637
15024
|
* @param {string} articleId
|
|
14638
|
-
* @param {string} [articleId2]
|
|
14639
15025
|
* @param {string} [articleName]
|
|
14640
15026
|
* @param {string} [contributorId]
|
|
14641
15027
|
* @param {string} [contributorName]
|
|
@@ -14650,8 +15036,8 @@ export class ArticlesApi extends BaseAPI {
|
|
|
14650
15036
|
* @throws {RequiredError}
|
|
14651
15037
|
* @memberof ArticlesApi
|
|
14652
15038
|
*/
|
|
14653
|
-
public apiV1ArticlesArticleIdContributorsGet(articleId: string,
|
|
14654
|
-
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsGet(articleId,
|
|
15039
|
+
public apiV1ArticlesArticleIdContributorsGet(articleId: string, articleName?: string, contributorId?: string, contributorName?: string, email?: string, description?: string, website?: string, contributionType?: ContributionType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
15040
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
14655
15041
|
}
|
|
14656
15042
|
|
|
14657
15043
|
/**
|
|
@@ -14847,7 +15233,6 @@ export class ArticlesApi extends BaseAPI {
|
|
|
14847
15233
|
*
|
|
14848
15234
|
* @summary GetAll ArticleContributors.
|
|
14849
15235
|
* @param {string} articleId
|
|
14850
|
-
* @param {string} [articleId2]
|
|
14851
15236
|
* @param {string} [articleName]
|
|
14852
15237
|
* @param {string} [contributorId]
|
|
14853
15238
|
* @param {string} [contributorName]
|
|
@@ -14862,8 +15247,8 @@ export class ArticlesApi extends BaseAPI {
|
|
|
14862
15247
|
* @throws {RequiredError}
|
|
14863
15248
|
* @memberof ArticlesApi
|
|
14864
15249
|
*/
|
|
14865
|
-
public apiV1ArticlesArticleIdTagsGet(articleId: string,
|
|
14866
|
-
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId,
|
|
15250
|
+
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) {
|
|
15251
|
+
return ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
14867
15252
|
}
|
|
14868
15253
|
|
|
14869
15254
|
/**
|
|
@@ -16274,6 +16659,52 @@ export const ContributorsApiAxiosParamCreator = function (configuration?: Config
|
|
|
16274
16659
|
options: localVarRequestOptions,
|
|
16275
16660
|
};
|
|
16276
16661
|
},
|
|
16662
|
+
/**
|
|
16663
|
+
*
|
|
16664
|
+
* @summary Update ContributorHandle.
|
|
16665
|
+
* @param {string} contributorId
|
|
16666
|
+
* @param {string} handleId
|
|
16667
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
16668
|
+
* @param {*} [options] Override http request option.
|
|
16669
|
+
* @throws {RequiredError}
|
|
16670
|
+
*/
|
|
16671
|
+
apiV1ContributorsContributorIdHandlesHandleIdPut: async (contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16672
|
+
// verify required parameter 'contributorId' is not null or undefined
|
|
16673
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'contributorId', contributorId)
|
|
16674
|
+
// verify required parameter 'handleId' is not null or undefined
|
|
16675
|
+
assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'handleId', handleId)
|
|
16676
|
+
const localVarPath = `/api/v1/contributors/{contributorId}/handles/{handleId}`
|
|
16677
|
+
.replace(`{${"contributorId"}}`, encodeURIComponent(String(contributorId)))
|
|
16678
|
+
.replace(`{${"handleId"}}`, encodeURIComponent(String(handleId)));
|
|
16679
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16680
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16681
|
+
let baseOptions;
|
|
16682
|
+
if (configuration) {
|
|
16683
|
+
baseOptions = configuration.baseOptions;
|
|
16684
|
+
}
|
|
16685
|
+
|
|
16686
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
16687
|
+
const localVarHeaderParameter = {} as any;
|
|
16688
|
+
const localVarQueryParameter = {} as any;
|
|
16689
|
+
|
|
16690
|
+
// authentication oauth2 required
|
|
16691
|
+
// oauth required
|
|
16692
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
16693
|
+
|
|
16694
|
+
|
|
16695
|
+
|
|
16696
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16697
|
+
|
|
16698
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16699
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16700
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16701
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateContributorSnsHandleCommand, localVarRequestOptions, configuration)
|
|
16702
|
+
|
|
16703
|
+
return {
|
|
16704
|
+
url: toPathString(localVarUrlObj),
|
|
16705
|
+
options: localVarRequestOptions,
|
|
16706
|
+
};
|
|
16707
|
+
},
|
|
16277
16708
|
/**
|
|
16278
16709
|
*
|
|
16279
16710
|
* @summary Get ContributorHandle.
|
|
@@ -16610,6 +17041,19 @@ export const ContributorsApiFp = function(configuration?: Configuration) {
|
|
|
16610
17041
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options);
|
|
16611
17042
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16612
17043
|
},
|
|
17044
|
+
/**
|
|
17045
|
+
*
|
|
17046
|
+
* @summary Update ContributorHandle.
|
|
17047
|
+
* @param {string} contributorId
|
|
17048
|
+
* @param {string} handleId
|
|
17049
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
17050
|
+
* @param {*} [options] Override http request option.
|
|
17051
|
+
* @throws {RequiredError}
|
|
17052
|
+
*/
|
|
17053
|
+
async apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SnsHandleModel>> {
|
|
17054
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options);
|
|
17055
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17056
|
+
},
|
|
16613
17057
|
/**
|
|
16614
17058
|
*
|
|
16615
17059
|
* @summary Get ContributorHandle.
|
|
@@ -16749,6 +17193,18 @@ export const ContributorsApiFactory = function (configuration?: Configuration, b
|
|
|
16749
17193
|
apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId: string, handleId: string, options?: any): AxiosPromise<SnsHandleModel> {
|
|
16750
17194
|
return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then((request) => request(axios, basePath));
|
|
16751
17195
|
},
|
|
17196
|
+
/**
|
|
17197
|
+
*
|
|
17198
|
+
* @summary Update ContributorHandle.
|
|
17199
|
+
* @param {string} contributorId
|
|
17200
|
+
* @param {string} handleId
|
|
17201
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
17202
|
+
* @param {*} [options] Override http request option.
|
|
17203
|
+
* @throws {RequiredError}
|
|
17204
|
+
*/
|
|
17205
|
+
apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options?: any): AxiosPromise<SnsHandleModel> {
|
|
17206
|
+
return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then((request) => request(axios, basePath));
|
|
17207
|
+
},
|
|
16752
17208
|
/**
|
|
16753
17209
|
*
|
|
16754
17210
|
* @summary Get ContributorHandle.
|
|
@@ -16893,6 +17349,20 @@ export class ContributorsApi extends BaseAPI {
|
|
|
16893
17349
|
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then((request) => request(this.axios, this.basePath));
|
|
16894
17350
|
}
|
|
16895
17351
|
|
|
17352
|
+
/**
|
|
17353
|
+
*
|
|
17354
|
+
* @summary Update ContributorHandle.
|
|
17355
|
+
* @param {string} contributorId
|
|
17356
|
+
* @param {string} handleId
|
|
17357
|
+
* @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
|
|
17358
|
+
* @param {*} [options] Override http request option.
|
|
17359
|
+
* @throws {RequiredError}
|
|
17360
|
+
* @memberof ContributorsApi
|
|
17361
|
+
*/
|
|
17362
|
+
public apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId: string, handleId: string, updateContributorSnsHandleCommand?: UpdateContributorSnsHandleCommand, options?: AxiosRequestConfig) {
|
|
17363
|
+
return ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then((request) => request(this.axios, this.basePath));
|
|
17364
|
+
}
|
|
17365
|
+
|
|
16896
17366
|
/**
|
|
16897
17367
|
*
|
|
16898
17368
|
* @summary Get ContributorHandle.
|
|
@@ -19413,6 +19883,90 @@ export class DealsApi extends BaseAPI {
|
|
|
19413
19883
|
*/
|
|
19414
19884
|
export const DoctorsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
19415
19885
|
return {
|
|
19886
|
+
/**
|
|
19887
|
+
*
|
|
19888
|
+
* @summary Delete DoctorAffiliation.
|
|
19889
|
+
* @param {string} doctorId
|
|
19890
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
19891
|
+
* @param {*} [options] Override http request option.
|
|
19892
|
+
* @throws {RequiredError}
|
|
19893
|
+
*/
|
|
19894
|
+
apiV1DoctorsDoctorIdAffiliationsDelete: async (doctorId: string, deleteDoctorAffiliationCommand?: DeleteDoctorAffiliationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19895
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
19896
|
+
assertParamExists('apiV1DoctorsDoctorIdAffiliationsDelete', 'doctorId', doctorId)
|
|
19897
|
+
const localVarPath = `/api/v1/doctors/{doctorId}/affiliations`
|
|
19898
|
+
.replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
|
|
19899
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19900
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19901
|
+
let baseOptions;
|
|
19902
|
+
if (configuration) {
|
|
19903
|
+
baseOptions = configuration.baseOptions;
|
|
19904
|
+
}
|
|
19905
|
+
|
|
19906
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
19907
|
+
const localVarHeaderParameter = {} as any;
|
|
19908
|
+
const localVarQueryParameter = {} as any;
|
|
19909
|
+
|
|
19910
|
+
// authentication oauth2 required
|
|
19911
|
+
// oauth required
|
|
19912
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
19913
|
+
|
|
19914
|
+
|
|
19915
|
+
|
|
19916
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19917
|
+
|
|
19918
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19919
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19920
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19921
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteDoctorAffiliationCommand, localVarRequestOptions, configuration)
|
|
19922
|
+
|
|
19923
|
+
return {
|
|
19924
|
+
url: toPathString(localVarUrlObj),
|
|
19925
|
+
options: localVarRequestOptions,
|
|
19926
|
+
};
|
|
19927
|
+
},
|
|
19928
|
+
/**
|
|
19929
|
+
*
|
|
19930
|
+
* @summary Create DoctorAffiliation.
|
|
19931
|
+
* @param {string} doctorId
|
|
19932
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
19933
|
+
* @param {*} [options] Override http request option.
|
|
19934
|
+
* @throws {RequiredError}
|
|
19935
|
+
*/
|
|
19936
|
+
apiV1DoctorsDoctorIdAffiliationsPost: async (doctorId: string, createDoctorAffiliationCommand?: CreateDoctorAffiliationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19937
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
19938
|
+
assertParamExists('apiV1DoctorsDoctorIdAffiliationsPost', 'doctorId', doctorId)
|
|
19939
|
+
const localVarPath = `/api/v1/doctors/{doctorId}/affiliations`
|
|
19940
|
+
.replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
|
|
19941
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19942
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19943
|
+
let baseOptions;
|
|
19944
|
+
if (configuration) {
|
|
19945
|
+
baseOptions = configuration.baseOptions;
|
|
19946
|
+
}
|
|
19947
|
+
|
|
19948
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
19949
|
+
const localVarHeaderParameter = {} as any;
|
|
19950
|
+
const localVarQueryParameter = {} as any;
|
|
19951
|
+
|
|
19952
|
+
// authentication oauth2 required
|
|
19953
|
+
// oauth required
|
|
19954
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
19955
|
+
|
|
19956
|
+
|
|
19957
|
+
|
|
19958
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19959
|
+
|
|
19960
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19961
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19962
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19963
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDoctorAffiliationCommand, localVarRequestOptions, configuration)
|
|
19964
|
+
|
|
19965
|
+
return {
|
|
19966
|
+
url: toPathString(localVarUrlObj),
|
|
19967
|
+
options: localVarRequestOptions,
|
|
19968
|
+
};
|
|
19969
|
+
},
|
|
19416
19970
|
/**
|
|
19417
19971
|
*
|
|
19418
19972
|
* @summary Delete DoctorCertificate.
|
|
@@ -20539,7 +21093,6 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20539
21093
|
*
|
|
20540
21094
|
* @summary Get All DoctorSpecialties.
|
|
20541
21095
|
* @param {string} doctorId
|
|
20542
|
-
* @param {string} [doctorId2]
|
|
20543
21096
|
* @param {string} [doctorName]
|
|
20544
21097
|
* @param {string} [specialtyId]
|
|
20545
21098
|
* @param {string} [specialtyName]
|
|
@@ -20549,7 +21102,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20549
21102
|
* @param {*} [options] Override http request option.
|
|
20550
21103
|
* @throws {RequiredError}
|
|
20551
21104
|
*/
|
|
20552
|
-
apiV1DoctorsDoctorIdSpecialtiesGet: async (doctorId: string,
|
|
21105
|
+
apiV1DoctorsDoctorIdSpecialtiesGet: async (doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20553
21106
|
// verify required parameter 'doctorId' is not null or undefined
|
|
20554
21107
|
assertParamExists('apiV1DoctorsDoctorIdSpecialtiesGet', 'doctorId', doctorId)
|
|
20555
21108
|
const localVarPath = `/api/v1/doctors/{doctorId}/specialties`
|
|
@@ -20569,10 +21122,6 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20569
21122
|
// oauth required
|
|
20570
21123
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
20571
21124
|
|
|
20572
|
-
if (doctorId2 !== undefined) {
|
|
20573
|
-
localVarQueryParameter['DoctorId'] = doctorId2;
|
|
20574
|
-
}
|
|
20575
|
-
|
|
20576
21125
|
if (doctorName !== undefined) {
|
|
20577
21126
|
localVarQueryParameter['DoctorName'] = doctorName;
|
|
20578
21127
|
}
|
|
@@ -20610,6 +21159,48 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20610
21159
|
options: localVarRequestOptions,
|
|
20611
21160
|
};
|
|
20612
21161
|
},
|
|
21162
|
+
/**
|
|
21163
|
+
*
|
|
21164
|
+
* @summary Link a doctor to a specialty.
|
|
21165
|
+
* @param {string} doctorId
|
|
21166
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
21167
|
+
* @param {*} [options] Override http request option.
|
|
21168
|
+
* @throws {RequiredError}
|
|
21169
|
+
*/
|
|
21170
|
+
apiV1DoctorsDoctorIdSpecialtiesPost: async (doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21171
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
21172
|
+
assertParamExists('apiV1DoctorsDoctorIdSpecialtiesPost', 'doctorId', doctorId)
|
|
21173
|
+
const localVarPath = `/api/v1/doctors/{doctorId}/specialties`
|
|
21174
|
+
.replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
|
|
21175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21176
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21177
|
+
let baseOptions;
|
|
21178
|
+
if (configuration) {
|
|
21179
|
+
baseOptions = configuration.baseOptions;
|
|
21180
|
+
}
|
|
21181
|
+
|
|
21182
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
21183
|
+
const localVarHeaderParameter = {} as any;
|
|
21184
|
+
const localVarQueryParameter = {} as any;
|
|
21185
|
+
|
|
21186
|
+
// authentication oauth2 required
|
|
21187
|
+
// oauth required
|
|
21188
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
21189
|
+
|
|
21190
|
+
|
|
21191
|
+
|
|
21192
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21193
|
+
|
|
21194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21196
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21197
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDoctorSpecialtyCommand, localVarRequestOptions, configuration)
|
|
21198
|
+
|
|
21199
|
+
return {
|
|
21200
|
+
url: toPathString(localVarUrlObj),
|
|
21201
|
+
options: localVarRequestOptions,
|
|
21202
|
+
};
|
|
21203
|
+
},
|
|
20613
21204
|
/**
|
|
20614
21205
|
*
|
|
20615
21206
|
* @summary Remove link between the doctor and the specialty.
|
|
@@ -20696,17 +21287,18 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20696
21287
|
},
|
|
20697
21288
|
/**
|
|
20698
21289
|
*
|
|
20699
|
-
* @summary
|
|
21290
|
+
* @summary Update DoctorSpecialty.
|
|
20700
21291
|
* @param {string} doctorId
|
|
20701
21292
|
* @param {string} specialtyId
|
|
21293
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
20702
21294
|
* @param {*} [options] Override http request option.
|
|
20703
21295
|
* @throws {RequiredError}
|
|
20704
21296
|
*/
|
|
20705
|
-
|
|
21297
|
+
apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: async (doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20706
21298
|
// verify required parameter 'doctorId' is not null or undefined
|
|
20707
|
-
assertParamExists('
|
|
21299
|
+
assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'doctorId', doctorId)
|
|
20708
21300
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
20709
|
-
assertParamExists('
|
|
21301
|
+
assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId)
|
|
20710
21302
|
const localVarPath = `/api/v1/doctors/{doctorId}/specialties/{specialtyId}`
|
|
20711
21303
|
.replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)))
|
|
20712
21304
|
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
|
|
@@ -20717,7 +21309,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20717
21309
|
baseOptions = configuration.baseOptions;
|
|
20718
21310
|
}
|
|
20719
21311
|
|
|
20720
|
-
const localVarRequestOptions = { method: '
|
|
21312
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
20721
21313
|
const localVarHeaderParameter = {} as any;
|
|
20722
21314
|
const localVarQueryParameter = {} as any;
|
|
20723
21315
|
|
|
@@ -20727,9 +21319,12 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20727
21319
|
|
|
20728
21320
|
|
|
20729
21321
|
|
|
21322
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21323
|
+
|
|
20730
21324
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20731
21325
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20732
21326
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21327
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDoctorSpecialtyCommand, localVarRequestOptions, configuration)
|
|
20733
21328
|
|
|
20734
21329
|
return {
|
|
20735
21330
|
url: toPathString(localVarUrlObj),
|
|
@@ -20738,7 +21333,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20738
21333
|
},
|
|
20739
21334
|
/**
|
|
20740
21335
|
*
|
|
20741
|
-
* @summary Get all
|
|
21336
|
+
* @summary Get all Doctors.
|
|
20742
21337
|
* @param {string} [countryId]
|
|
20743
21338
|
* @param {string} [hospitalId]
|
|
20744
21339
|
* @param {MarketingType} [marketingType]
|
|
@@ -20962,6 +21557,30 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20962
21557
|
export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
20963
21558
|
const localVarAxiosParamCreator = DoctorsApiAxiosParamCreator(configuration)
|
|
20964
21559
|
return {
|
|
21560
|
+
/**
|
|
21561
|
+
*
|
|
21562
|
+
* @summary Delete DoctorAffiliation.
|
|
21563
|
+
* @param {string} doctorId
|
|
21564
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
21565
|
+
* @param {*} [options] Override http request option.
|
|
21566
|
+
* @throws {RequiredError}
|
|
21567
|
+
*/
|
|
21568
|
+
async apiV1DoctorsDoctorIdAffiliationsDelete(doctorId: string, deleteDoctorAffiliationCommand?: DeleteDoctorAffiliationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
21569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options);
|
|
21570
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21571
|
+
},
|
|
21572
|
+
/**
|
|
21573
|
+
*
|
|
21574
|
+
* @summary Create DoctorAffiliation.
|
|
21575
|
+
* @param {string} doctorId
|
|
21576
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
21577
|
+
* @param {*} [options] Override http request option.
|
|
21578
|
+
* @throws {RequiredError}
|
|
21579
|
+
*/
|
|
21580
|
+
async apiV1DoctorsDoctorIdAffiliationsPost(doctorId: string, createDoctorAffiliationCommand?: CreateDoctorAffiliationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorAffiliationModel>> {
|
|
21581
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options);
|
|
21582
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21583
|
+
},
|
|
20965
21584
|
/**
|
|
20966
21585
|
*
|
|
20967
21586
|
* @summary Delete DoctorCertificate.
|
|
@@ -21262,7 +21881,7 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21262
21881
|
* @param {*} [options] Override http request option.
|
|
21263
21882
|
* @throws {RequiredError}
|
|
21264
21883
|
*/
|
|
21265
|
-
async apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
21884
|
+
async apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
21266
21885
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdPut(doctorId, updateDoctorCommand, options);
|
|
21267
21886
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21268
21887
|
},
|
|
@@ -21270,7 +21889,6 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21270
21889
|
*
|
|
21271
21890
|
* @summary Get All DoctorSpecialties.
|
|
21272
21891
|
* @param {string} doctorId
|
|
21273
|
-
* @param {string} [doctorId2]
|
|
21274
21892
|
* @param {string} [doctorName]
|
|
21275
21893
|
* @param {string} [specialtyId]
|
|
21276
21894
|
* @param {string} [specialtyName]
|
|
@@ -21280,8 +21898,20 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21280
21898
|
* @param {*} [options] Override http request option.
|
|
21281
21899
|
* @throws {RequiredError}
|
|
21282
21900
|
*/
|
|
21283
|
-
async apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string,
|
|
21284
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId,
|
|
21901
|
+
async apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtiesModel>> {
|
|
21902
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options);
|
|
21903
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21904
|
+
},
|
|
21905
|
+
/**
|
|
21906
|
+
*
|
|
21907
|
+
* @summary Link a doctor to a specialty.
|
|
21908
|
+
* @param {string} doctorId
|
|
21909
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
21910
|
+
* @param {*} [options] Override http request option.
|
|
21911
|
+
* @throws {RequiredError}
|
|
21912
|
+
*/
|
|
21913
|
+
async apiV1DoctorsDoctorIdSpecialtiesPost(doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtyModel>> {
|
|
21914
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options);
|
|
21285
21915
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21286
21916
|
},
|
|
21287
21917
|
/**
|
|
@@ -21310,19 +21940,20 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21310
21940
|
},
|
|
21311
21941
|
/**
|
|
21312
21942
|
*
|
|
21313
|
-
* @summary
|
|
21943
|
+
* @summary Update DoctorSpecialty.
|
|
21314
21944
|
* @param {string} doctorId
|
|
21315
21945
|
* @param {string} specialtyId
|
|
21946
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
21316
21947
|
* @param {*} [options] Override http request option.
|
|
21317
21948
|
* @throws {RequiredError}
|
|
21318
21949
|
*/
|
|
21319
|
-
async
|
|
21320
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
21950
|
+
async apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorSpecialtyModel>> {
|
|
21951
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options);
|
|
21321
21952
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
21322
21953
|
},
|
|
21323
21954
|
/**
|
|
21324
21955
|
*
|
|
21325
|
-
* @summary Get all
|
|
21956
|
+
* @summary Get all Doctors.
|
|
21326
21957
|
* @param {string} [countryId]
|
|
21327
21958
|
* @param {string} [hospitalId]
|
|
21328
21959
|
* @param {MarketingType} [marketingType]
|
|
@@ -21382,6 +22013,28 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21382
22013
|
export const DoctorsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
21383
22014
|
const localVarFp = DoctorsApiFp(configuration)
|
|
21384
22015
|
return {
|
|
22016
|
+
/**
|
|
22017
|
+
*
|
|
22018
|
+
* @summary Delete DoctorAffiliation.
|
|
22019
|
+
* @param {string} doctorId
|
|
22020
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
22021
|
+
* @param {*} [options] Override http request option.
|
|
22022
|
+
* @throws {RequiredError}
|
|
22023
|
+
*/
|
|
22024
|
+
apiV1DoctorsDoctorIdAffiliationsDelete(doctorId: string, deleteDoctorAffiliationCommand?: DeleteDoctorAffiliationCommand, options?: any): AxiosPromise<boolean> {
|
|
22025
|
+
return localVarFp.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then((request) => request(axios, basePath));
|
|
22026
|
+
},
|
|
22027
|
+
/**
|
|
22028
|
+
*
|
|
22029
|
+
* @summary Create DoctorAffiliation.
|
|
22030
|
+
* @param {string} doctorId
|
|
22031
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
22032
|
+
* @param {*} [options] Override http request option.
|
|
22033
|
+
* @throws {RequiredError}
|
|
22034
|
+
*/
|
|
22035
|
+
apiV1DoctorsDoctorIdAffiliationsPost(doctorId: string, createDoctorAffiliationCommand?: CreateDoctorAffiliationCommand, options?: any): AxiosPromise<DoctorAffiliationModel> {
|
|
22036
|
+
return localVarFp.apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options).then((request) => request(axios, basePath));
|
|
22037
|
+
},
|
|
21385
22038
|
/**
|
|
21386
22039
|
*
|
|
21387
22040
|
* @summary Delete DoctorCertificate.
|
|
@@ -21660,14 +22313,13 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
21660
22313
|
* @param {*} [options] Override http request option.
|
|
21661
22314
|
* @throws {RequiredError}
|
|
21662
22315
|
*/
|
|
21663
|
-
apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: any): AxiosPromise<
|
|
22316
|
+
apiV1DoctorsDoctorIdPut(doctorId: string, updateDoctorCommand?: UpdateDoctorCommand, options?: any): AxiosPromise<boolean> {
|
|
21664
22317
|
return localVarFp.apiV1DoctorsDoctorIdPut(doctorId, updateDoctorCommand, options).then((request) => request(axios, basePath));
|
|
21665
22318
|
},
|
|
21666
22319
|
/**
|
|
21667
22320
|
*
|
|
21668
22321
|
* @summary Get All DoctorSpecialties.
|
|
21669
22322
|
* @param {string} doctorId
|
|
21670
|
-
* @param {string} [doctorId2]
|
|
21671
22323
|
* @param {string} [doctorName]
|
|
21672
22324
|
* @param {string} [specialtyId]
|
|
21673
22325
|
* @param {string} [specialtyName]
|
|
@@ -21677,8 +22329,19 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
21677
22329
|
* @param {*} [options] Override http request option.
|
|
21678
22330
|
* @throws {RequiredError}
|
|
21679
22331
|
*/
|
|
21680
|
-
apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string,
|
|
21681
|
-
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId,
|
|
22332
|
+
apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DoctorSpecialtiesModel> {
|
|
22333
|
+
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
22334
|
+
},
|
|
22335
|
+
/**
|
|
22336
|
+
*
|
|
22337
|
+
* @summary Link a doctor to a specialty.
|
|
22338
|
+
* @param {string} doctorId
|
|
22339
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
22340
|
+
* @param {*} [options] Override http request option.
|
|
22341
|
+
* @throws {RequiredError}
|
|
22342
|
+
*/
|
|
22343
|
+
apiV1DoctorsDoctorIdSpecialtiesPost(doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options?: any): AxiosPromise<DoctorSpecialtyModel> {
|
|
22344
|
+
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then((request) => request(axios, basePath));
|
|
21682
22345
|
},
|
|
21683
22346
|
/**
|
|
21684
22347
|
*
|
|
@@ -21704,18 +22367,19 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
21704
22367
|
},
|
|
21705
22368
|
/**
|
|
21706
22369
|
*
|
|
21707
|
-
* @summary
|
|
22370
|
+
* @summary Update DoctorSpecialty.
|
|
21708
22371
|
* @param {string} doctorId
|
|
21709
22372
|
* @param {string} specialtyId
|
|
22373
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
21710
22374
|
* @param {*} [options] Override http request option.
|
|
21711
22375
|
* @throws {RequiredError}
|
|
21712
22376
|
*/
|
|
21713
|
-
|
|
21714
|
-
return localVarFp.
|
|
22377
|
+
apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options?: any): AxiosPromise<DoctorSpecialtyModel> {
|
|
22378
|
+
return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then((request) => request(axios, basePath));
|
|
21715
22379
|
},
|
|
21716
22380
|
/**
|
|
21717
22381
|
*
|
|
21718
|
-
* @summary Get all
|
|
22382
|
+
* @summary Get all Doctors.
|
|
21719
22383
|
* @param {string} [countryId]
|
|
21720
22384
|
* @param {string} [hospitalId]
|
|
21721
22385
|
* @param {MarketingType} [marketingType]
|
|
@@ -21772,6 +22436,32 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
21772
22436
|
* @extends {BaseAPI}
|
|
21773
22437
|
*/
|
|
21774
22438
|
export class DoctorsApi extends BaseAPI {
|
|
22439
|
+
/**
|
|
22440
|
+
*
|
|
22441
|
+
* @summary Delete DoctorAffiliation.
|
|
22442
|
+
* @param {string} doctorId
|
|
22443
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
22444
|
+
* @param {*} [options] Override http request option.
|
|
22445
|
+
* @throws {RequiredError}
|
|
22446
|
+
* @memberof DoctorsApi
|
|
22447
|
+
*/
|
|
22448
|
+
public apiV1DoctorsDoctorIdAffiliationsDelete(doctorId: string, deleteDoctorAffiliationCommand?: DeleteDoctorAffiliationCommand, options?: AxiosRequestConfig) {
|
|
22449
|
+
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22450
|
+
}
|
|
22451
|
+
|
|
22452
|
+
/**
|
|
22453
|
+
*
|
|
22454
|
+
* @summary Create DoctorAffiliation.
|
|
22455
|
+
* @param {string} doctorId
|
|
22456
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
22457
|
+
* @param {*} [options] Override http request option.
|
|
22458
|
+
* @throws {RequiredError}
|
|
22459
|
+
* @memberof DoctorsApi
|
|
22460
|
+
*/
|
|
22461
|
+
public apiV1DoctorsDoctorIdAffiliationsPost(doctorId: string, createDoctorAffiliationCommand?: CreateDoctorAffiliationCommand, options?: AxiosRequestConfig) {
|
|
22462
|
+
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22463
|
+
}
|
|
22464
|
+
|
|
21775
22465
|
/**
|
|
21776
22466
|
*
|
|
21777
22467
|
* @summary Delete DoctorCertificate.
|
|
@@ -22103,7 +22793,6 @@ export class DoctorsApi extends BaseAPI {
|
|
|
22103
22793
|
*
|
|
22104
22794
|
* @summary Get All DoctorSpecialties.
|
|
22105
22795
|
* @param {string} doctorId
|
|
22106
|
-
* @param {string} [doctorId2]
|
|
22107
22796
|
* @param {string} [doctorName]
|
|
22108
22797
|
* @param {string} [specialtyId]
|
|
22109
22798
|
* @param {string} [specialtyName]
|
|
@@ -22114,8 +22803,21 @@ export class DoctorsApi extends BaseAPI {
|
|
|
22114
22803
|
* @throws {RequiredError}
|
|
22115
22804
|
* @memberof DoctorsApi
|
|
22116
22805
|
*/
|
|
22117
|
-
public apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string,
|
|
22118
|
-
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId,
|
|
22806
|
+
public apiV1DoctorsDoctorIdSpecialtiesGet(doctorId: string, doctorName?: string, specialtyId?: string, specialtyName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
22807
|
+
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
22808
|
+
}
|
|
22809
|
+
|
|
22810
|
+
/**
|
|
22811
|
+
*
|
|
22812
|
+
* @summary Link a doctor to a specialty.
|
|
22813
|
+
* @param {string} doctorId
|
|
22814
|
+
* @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
|
|
22815
|
+
* @param {*} [options] Override http request option.
|
|
22816
|
+
* @throws {RequiredError}
|
|
22817
|
+
* @memberof DoctorsApi
|
|
22818
|
+
*/
|
|
22819
|
+
public apiV1DoctorsDoctorIdSpecialtiesPost(doctorId: string, createDoctorSpecialtyCommand?: CreateDoctorSpecialtyCommand, options?: AxiosRequestConfig) {
|
|
22820
|
+
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22119
22821
|
}
|
|
22120
22822
|
|
|
22121
22823
|
/**
|
|
@@ -22146,20 +22848,21 @@ export class DoctorsApi extends BaseAPI {
|
|
|
22146
22848
|
|
|
22147
22849
|
/**
|
|
22148
22850
|
*
|
|
22149
|
-
* @summary
|
|
22851
|
+
* @summary Update DoctorSpecialty.
|
|
22150
22852
|
* @param {string} doctorId
|
|
22151
22853
|
* @param {string} specialtyId
|
|
22854
|
+
* @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
|
|
22152
22855
|
* @param {*} [options] Override http request option.
|
|
22153
22856
|
* @throws {RequiredError}
|
|
22154
22857
|
* @memberof DoctorsApi
|
|
22155
22858
|
*/
|
|
22156
|
-
public
|
|
22157
|
-
return DoctorsApiFp(this.configuration).
|
|
22859
|
+
public apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId: string, specialtyId: string, updateDoctorSpecialtyCommand?: UpdateDoctorSpecialtyCommand, options?: AxiosRequestConfig) {
|
|
22860
|
+
return DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
|
|
22158
22861
|
}
|
|
22159
22862
|
|
|
22160
22863
|
/**
|
|
22161
22864
|
*
|
|
22162
|
-
* @summary Get all
|
|
22865
|
+
* @summary Get all Doctors.
|
|
22163
22866
|
* @param {string} [countryId]
|
|
22164
22867
|
* @param {string} [hospitalId]
|
|
22165
22868
|
* @param {MarketingType} [marketingType]
|
|
@@ -22424,9 +23127,8 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
22424
23127
|
},
|
|
22425
23128
|
/**
|
|
22426
23129
|
*
|
|
22427
|
-
* @summary Get all
|
|
22428
|
-
* @param {string}
|
|
22429
|
-
* @param {string} [hospitalId]
|
|
23130
|
+
* @summary Get all HospitalAccreditations.
|
|
23131
|
+
* @param {string} hospitalId
|
|
22430
23132
|
* @param {string} [hospitalName]
|
|
22431
23133
|
* @param {string} [accreditationId]
|
|
22432
23134
|
* @param {string} [accreditationName]
|
|
@@ -22436,11 +23138,11 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
22436
23138
|
* @param {*} [options] Override http request option.
|
|
22437
23139
|
* @throws {RequiredError}
|
|
22438
23140
|
*/
|
|
22439
|
-
apiV1HospitalsHospitalIdAccreditationsGet: async (
|
|
22440
|
-
// verify required parameter '
|
|
22441
|
-
assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', '
|
|
23141
|
+
apiV1HospitalsHospitalIdAccreditationsGet: async (hospitalId: string, hospitalName?: string, accreditationId?: string, accreditationName?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
23142
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
23143
|
+
assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', 'hospitalId', hospitalId)
|
|
22442
23144
|
const localVarPath = `/api/v1/hospitals/{hospitalId}/accreditations`
|
|
22443
|
-
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(
|
|
23145
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
22444
23146
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22445
23147
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22446
23148
|
let baseOptions;
|
|
@@ -22456,10 +23158,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
22456
23158
|
// oauth required
|
|
22457
23159
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
22458
23160
|
|
|
22459
|
-
if (hospitalId !== undefined) {
|
|
22460
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
22461
|
-
}
|
|
22462
|
-
|
|
22463
23161
|
if (hospitalName !== undefined) {
|
|
22464
23162
|
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
22465
23163
|
}
|
|
@@ -23614,13 +24312,12 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
23614
24312
|
/**
|
|
23615
24313
|
*
|
|
23616
24314
|
* @summary Get all HospitalServices.
|
|
23617
|
-
* @param {string}
|
|
24315
|
+
* @param {string} hospitalId
|
|
24316
|
+
* @param {string} [hospitalName]
|
|
24317
|
+
* @param {string} [hospitalSlug]
|
|
23618
24318
|
* @param {string} [id]
|
|
23619
24319
|
* @param {string} [name]
|
|
23620
24320
|
* @param {string} [description]
|
|
23621
|
-
* @param {string} [hospitalId]
|
|
23622
|
-
* @param {string} [hospitalName]
|
|
23623
|
-
* @param {string} [hospitalSlug]
|
|
23624
24321
|
* @param {string} [specialtyId]
|
|
23625
24322
|
* @param {string} [specialtyTypeId]
|
|
23626
24323
|
* @param {string} [specialtyTypeName]
|
|
@@ -23634,11 +24331,11 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
23634
24331
|
* @param {*} [options] Override http request option.
|
|
23635
24332
|
* @throws {RequiredError}
|
|
23636
24333
|
*/
|
|
23637
|
-
apiV1HospitalsHospitalIdServicesGet: async (
|
|
23638
|
-
// verify required parameter '
|
|
23639
|
-
assertParamExists('apiV1HospitalsHospitalIdServicesGet', '
|
|
24334
|
+
apiV1HospitalsHospitalIdServicesGet: async (hospitalId: string, hospitalName?: string, hospitalSlug?: string, id?: string, name?: string, description?: string, specialtyId?: string, specialtyTypeId?: string, specialtyTypeName?: string, marketingType?: MarketingType, procedure?: Procedure, created?: Date, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24335
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
24336
|
+
assertParamExists('apiV1HospitalsHospitalIdServicesGet', 'hospitalId', hospitalId)
|
|
23640
24337
|
const localVarPath = `/api/v1/hospitals/{hospitalId}/services`
|
|
23641
|
-
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(
|
|
24338
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
23642
24339
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23643
24340
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23644
24341
|
let baseOptions;
|
|
@@ -23654,6 +24351,14 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
23654
24351
|
// oauth required
|
|
23655
24352
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
23656
24353
|
|
|
24354
|
+
if (hospitalName !== undefined) {
|
|
24355
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
24356
|
+
}
|
|
24357
|
+
|
|
24358
|
+
if (hospitalSlug !== undefined) {
|
|
24359
|
+
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
24360
|
+
}
|
|
24361
|
+
|
|
23657
24362
|
if (id !== undefined) {
|
|
23658
24363
|
localVarQueryParameter['Id'] = id;
|
|
23659
24364
|
}
|
|
@@ -23666,18 +24371,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
23666
24371
|
localVarQueryParameter['Description'] = description;
|
|
23667
24372
|
}
|
|
23668
24373
|
|
|
23669
|
-
if (hospitalId !== undefined) {
|
|
23670
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
23671
|
-
}
|
|
23672
|
-
|
|
23673
|
-
if (hospitalName !== undefined) {
|
|
23674
|
-
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
23675
|
-
}
|
|
23676
|
-
|
|
23677
|
-
if (hospitalSlug !== undefined) {
|
|
23678
|
-
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
23679
|
-
}
|
|
23680
|
-
|
|
23681
24374
|
if (specialtyId !== undefined) {
|
|
23682
24375
|
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
23683
24376
|
}
|
|
@@ -24128,6 +24821,52 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
24128
24821
|
options: localVarRequestOptions,
|
|
24129
24822
|
};
|
|
24130
24823
|
},
|
|
24824
|
+
/**
|
|
24825
|
+
*
|
|
24826
|
+
* @summary Update HospitalSpecialty.
|
|
24827
|
+
* @param {string} hospitalId
|
|
24828
|
+
* @param {string} specialtyId
|
|
24829
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
24830
|
+
* @param {*} [options] Override http request option.
|
|
24831
|
+
* @throws {RequiredError}
|
|
24832
|
+
*/
|
|
24833
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: async (hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24834
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
24835
|
+
assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId)
|
|
24836
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
24837
|
+
assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId)
|
|
24838
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}`
|
|
24839
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
24840
|
+
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
|
|
24841
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24842
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24843
|
+
let baseOptions;
|
|
24844
|
+
if (configuration) {
|
|
24845
|
+
baseOptions = configuration.baseOptions;
|
|
24846
|
+
}
|
|
24847
|
+
|
|
24848
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
24849
|
+
const localVarHeaderParameter = {} as any;
|
|
24850
|
+
const localVarQueryParameter = {} as any;
|
|
24851
|
+
|
|
24852
|
+
// authentication oauth2 required
|
|
24853
|
+
// oauth required
|
|
24854
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
24855
|
+
|
|
24856
|
+
|
|
24857
|
+
|
|
24858
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24859
|
+
|
|
24860
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24861
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24862
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24863
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration)
|
|
24864
|
+
|
|
24865
|
+
return {
|
|
24866
|
+
url: toPathString(localVarUrlObj),
|
|
24867
|
+
options: localVarRequestOptions,
|
|
24868
|
+
};
|
|
24869
|
+
},
|
|
24131
24870
|
/**
|
|
24132
24871
|
*
|
|
24133
24872
|
* @summary Create Hospital.
|
|
@@ -24271,9 +25010,8 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
24271
25010
|
},
|
|
24272
25011
|
/**
|
|
24273
25012
|
*
|
|
24274
|
-
* @summary Get all
|
|
24275
|
-
* @param {string}
|
|
24276
|
-
* @param {string} [hospitalId]
|
|
25013
|
+
* @summary Get all HospitalAccreditations.
|
|
25014
|
+
* @param {string} hospitalId
|
|
24277
25015
|
* @param {string} [hospitalName]
|
|
24278
25016
|
* @param {string} [accreditationId]
|
|
24279
25017
|
* @param {string} [accreditationName]
|
|
@@ -24283,8 +25021,8 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
24283
25021
|
* @param {*} [options] Override http request option.
|
|
24284
25022
|
* @throws {RequiredError}
|
|
24285
25023
|
*/
|
|
24286
|
-
async apiV1HospitalsHospitalIdAccreditationsGet(
|
|
24287
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(
|
|
25024
|
+
async apiV1HospitalsHospitalIdAccreditationsGet(hospitalId: string, hospitalName?: string, accreditationId?: string, accreditationName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalAccreditationsModel>> {
|
|
25025
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options);
|
|
24288
25026
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24289
25027
|
},
|
|
24290
25028
|
/**
|
|
@@ -24594,13 +25332,12 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
24594
25332
|
/**
|
|
24595
25333
|
*
|
|
24596
25334
|
* @summary Get all HospitalServices.
|
|
24597
|
-
* @param {string}
|
|
25335
|
+
* @param {string} hospitalId
|
|
25336
|
+
* @param {string} [hospitalName]
|
|
25337
|
+
* @param {string} [hospitalSlug]
|
|
24598
25338
|
* @param {string} [id]
|
|
24599
25339
|
* @param {string} [name]
|
|
24600
25340
|
* @param {string} [description]
|
|
24601
|
-
* @param {string} [hospitalId]
|
|
24602
|
-
* @param {string} [hospitalName]
|
|
24603
|
-
* @param {string} [hospitalSlug]
|
|
24604
25341
|
* @param {string} [specialtyId]
|
|
24605
25342
|
* @param {string} [specialtyTypeId]
|
|
24606
25343
|
* @param {string} [specialtyTypeName]
|
|
@@ -24614,8 +25351,8 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
24614
25351
|
* @param {*} [options] Override http request option.
|
|
24615
25352
|
* @throws {RequiredError}
|
|
24616
25353
|
*/
|
|
24617
|
-
async apiV1HospitalsHospitalIdServicesGet(
|
|
24618
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesGet(
|
|
25354
|
+
async apiV1HospitalsHospitalIdServicesGet(hospitalId: string, hospitalName?: string, hospitalSlug?: string, id?: string, name?: string, description?: string, specialtyId?: string, specialtyTypeId?: string, specialtyTypeName?: string, marketingType?: MarketingType, procedure?: Procedure, created?: Date, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalServicesModel>> {
|
|
25355
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options);
|
|
24619
25356
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24620
25357
|
},
|
|
24621
25358
|
/**
|
|
@@ -24725,6 +25462,19 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
24725
25462
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options);
|
|
24726
25463
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24727
25464
|
},
|
|
25465
|
+
/**
|
|
25466
|
+
*
|
|
25467
|
+
* @summary Update HospitalSpecialty.
|
|
25468
|
+
* @param {string} hospitalId
|
|
25469
|
+
* @param {string} specialtyId
|
|
25470
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
25471
|
+
* @param {*} [options] Override http request option.
|
|
25472
|
+
* @throws {RequiredError}
|
|
25473
|
+
*/
|
|
25474
|
+
async apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalSpecialtyModel>> {
|
|
25475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options);
|
|
25476
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
25477
|
+
},
|
|
24728
25478
|
/**
|
|
24729
25479
|
*
|
|
24730
25480
|
* @summary Create Hospital.
|
|
@@ -24807,9 +25557,8 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
24807
25557
|
},
|
|
24808
25558
|
/**
|
|
24809
25559
|
*
|
|
24810
|
-
* @summary Get all
|
|
24811
|
-
* @param {string}
|
|
24812
|
-
* @param {string} [hospitalId]
|
|
25560
|
+
* @summary Get all HospitalAccreditations.
|
|
25561
|
+
* @param {string} hospitalId
|
|
24813
25562
|
* @param {string} [hospitalName]
|
|
24814
25563
|
* @param {string} [accreditationId]
|
|
24815
25564
|
* @param {string} [accreditationName]
|
|
@@ -24819,8 +25568,8 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
24819
25568
|
* @param {*} [options] Override http request option.
|
|
24820
25569
|
* @throws {RequiredError}
|
|
24821
25570
|
*/
|
|
24822
|
-
apiV1HospitalsHospitalIdAccreditationsGet(
|
|
24823
|
-
return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(
|
|
25571
|
+
apiV1HospitalsHospitalIdAccreditationsGet(hospitalId: string, hospitalName?: string, accreditationId?: string, accreditationName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalAccreditationsModel> {
|
|
25572
|
+
return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
24824
25573
|
},
|
|
24825
25574
|
/**
|
|
24826
25575
|
*
|
|
@@ -25106,13 +25855,12 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
25106
25855
|
/**
|
|
25107
25856
|
*
|
|
25108
25857
|
* @summary Get all HospitalServices.
|
|
25109
|
-
* @param {string}
|
|
25858
|
+
* @param {string} hospitalId
|
|
25859
|
+
* @param {string} [hospitalName]
|
|
25860
|
+
* @param {string} [hospitalSlug]
|
|
25110
25861
|
* @param {string} [id]
|
|
25111
25862
|
* @param {string} [name]
|
|
25112
25863
|
* @param {string} [description]
|
|
25113
|
-
* @param {string} [hospitalId]
|
|
25114
|
-
* @param {string} [hospitalName]
|
|
25115
|
-
* @param {string} [hospitalSlug]
|
|
25116
25864
|
* @param {string} [specialtyId]
|
|
25117
25865
|
* @param {string} [specialtyTypeId]
|
|
25118
25866
|
* @param {string} [specialtyTypeName]
|
|
@@ -25126,8 +25874,8 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
25126
25874
|
* @param {*} [options] Override http request option.
|
|
25127
25875
|
* @throws {RequiredError}
|
|
25128
25876
|
*/
|
|
25129
|
-
apiV1HospitalsHospitalIdServicesGet(
|
|
25130
|
-
return localVarFp.apiV1HospitalsHospitalIdServicesGet(
|
|
25877
|
+
apiV1HospitalsHospitalIdServicesGet(hospitalId: string, hospitalName?: string, hospitalSlug?: string, id?: string, name?: string, description?: string, specialtyId?: string, specialtyTypeId?: string, specialtyTypeName?: string, marketingType?: MarketingType, procedure?: Procedure, created?: Date, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalServicesModel> {
|
|
25878
|
+
return localVarFp.apiV1HospitalsHospitalIdServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
25131
25879
|
},
|
|
25132
25880
|
/**
|
|
25133
25881
|
*
|
|
@@ -25228,6 +25976,18 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
25228
25976
|
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId: string, specialtyId: string, options?: any): AxiosPromise<HospitalSpecialtyModel> {
|
|
25229
25977
|
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then((request) => request(axios, basePath));
|
|
25230
25978
|
},
|
|
25979
|
+
/**
|
|
25980
|
+
*
|
|
25981
|
+
* @summary Update HospitalSpecialty.
|
|
25982
|
+
* @param {string} hospitalId
|
|
25983
|
+
* @param {string} specialtyId
|
|
25984
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
25985
|
+
* @param {*} [options] Override http request option.
|
|
25986
|
+
* @throws {RequiredError}
|
|
25987
|
+
*/
|
|
25988
|
+
apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: any): AxiosPromise<HospitalSpecialtyModel> {
|
|
25989
|
+
return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then((request) => request(axios, basePath));
|
|
25990
|
+
},
|
|
25231
25991
|
/**
|
|
25232
25992
|
*
|
|
25233
25993
|
* @summary Create Hospital.
|
|
@@ -25314,9 +26074,8 @@ export class HospitalsApi extends BaseAPI {
|
|
|
25314
26074
|
|
|
25315
26075
|
/**
|
|
25316
26076
|
*
|
|
25317
|
-
* @summary Get all
|
|
25318
|
-
* @param {string}
|
|
25319
|
-
* @param {string} [hospitalId]
|
|
26077
|
+
* @summary Get all HospitalAccreditations.
|
|
26078
|
+
* @param {string} hospitalId
|
|
25320
26079
|
* @param {string} [hospitalName]
|
|
25321
26080
|
* @param {string} [accreditationId]
|
|
25322
26081
|
* @param {string} [accreditationName]
|
|
@@ -25327,8 +26086,8 @@ export class HospitalsApi extends BaseAPI {
|
|
|
25327
26086
|
* @throws {RequiredError}
|
|
25328
26087
|
* @memberof HospitalsApi
|
|
25329
26088
|
*/
|
|
25330
|
-
public apiV1HospitalsHospitalIdAccreditationsGet(
|
|
25331
|
-
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(
|
|
26089
|
+
public apiV1HospitalsHospitalIdAccreditationsGet(hospitalId: string, hospitalName?: string, accreditationId?: string, accreditationName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
26090
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
25332
26091
|
}
|
|
25333
26092
|
|
|
25334
26093
|
/**
|
|
@@ -25661,13 +26420,12 @@ export class HospitalsApi extends BaseAPI {
|
|
|
25661
26420
|
/**
|
|
25662
26421
|
*
|
|
25663
26422
|
* @summary Get all HospitalServices.
|
|
25664
|
-
* @param {string}
|
|
26423
|
+
* @param {string} hospitalId
|
|
26424
|
+
* @param {string} [hospitalName]
|
|
26425
|
+
* @param {string} [hospitalSlug]
|
|
25665
26426
|
* @param {string} [id]
|
|
25666
26427
|
* @param {string} [name]
|
|
25667
26428
|
* @param {string} [description]
|
|
25668
|
-
* @param {string} [hospitalId]
|
|
25669
|
-
* @param {string} [hospitalName]
|
|
25670
|
-
* @param {string} [hospitalSlug]
|
|
25671
26429
|
* @param {string} [specialtyId]
|
|
25672
26430
|
* @param {string} [specialtyTypeId]
|
|
25673
26431
|
* @param {string} [specialtyTypeName]
|
|
@@ -25682,8 +26440,8 @@ export class HospitalsApi extends BaseAPI {
|
|
|
25682
26440
|
* @throws {RequiredError}
|
|
25683
26441
|
* @memberof HospitalsApi
|
|
25684
26442
|
*/
|
|
25685
|
-
public apiV1HospitalsHospitalIdServicesGet(
|
|
25686
|
-
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesGet(
|
|
26443
|
+
public apiV1HospitalsHospitalIdServicesGet(hospitalId: string, hospitalName?: string, hospitalSlug?: string, id?: string, name?: string, description?: string, specialtyId?: string, specialtyTypeId?: string, specialtyTypeName?: string, marketingType?: MarketingType, procedure?: Procedure, created?: Date, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
26444
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
25687
26445
|
}
|
|
25688
26446
|
|
|
25689
26447
|
/**
|
|
@@ -25801,6 +26559,20 @@ export class HospitalsApi extends BaseAPI {
|
|
|
25801
26559
|
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then((request) => request(this.axios, this.basePath));
|
|
25802
26560
|
}
|
|
25803
26561
|
|
|
26562
|
+
/**
|
|
26563
|
+
*
|
|
26564
|
+
* @summary Update HospitalSpecialty.
|
|
26565
|
+
* @param {string} hospitalId
|
|
26566
|
+
* @param {string} specialtyId
|
|
26567
|
+
* @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
|
|
26568
|
+
* @param {*} [options] Override http request option.
|
|
26569
|
+
* @throws {RequiredError}
|
|
26570
|
+
* @memberof HospitalsApi
|
|
26571
|
+
*/
|
|
26572
|
+
public apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId: string, specialtyId: string, updateHospitalSpecialtyCommand?: UpdateHospitalSpecialtyCommand, options?: AxiosRequestConfig) {
|
|
26573
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
|
|
26574
|
+
}
|
|
26575
|
+
|
|
25804
26576
|
/**
|
|
25805
26577
|
*
|
|
25806
26578
|
* @summary Create Hospital.
|
|
@@ -25829,35 +26601,18 @@ export class HospitalsApi extends BaseAPI {
|
|
|
25829
26601
|
|
|
25830
26602
|
|
|
25831
26603
|
/**
|
|
25832
|
-
*
|
|
26604
|
+
* ImagesApi - axios parameter creator
|
|
25833
26605
|
* @export
|
|
25834
26606
|
*/
|
|
25835
|
-
export const
|
|
26607
|
+
export const ImagesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25836
26608
|
return {
|
|
25837
26609
|
/**
|
|
25838
|
-
*
|
|
25839
|
-
* @summary Get all services.
|
|
25840
|
-
* @param {string} [id]
|
|
25841
|
-
* @param {string} [name]
|
|
25842
|
-
* @param {string} [description]
|
|
25843
|
-
* @param {string} [hospitalId]
|
|
25844
|
-
* @param {string} [hospitalName]
|
|
25845
|
-
* @param {string} [hospitalSlug]
|
|
25846
|
-
* @param {string} [specialtyId]
|
|
25847
|
-
* @param {string} [specialtyTypeId]
|
|
25848
|
-
* @param {string} [specialtyTypeName]
|
|
25849
|
-
* @param {MarketingType} [marketingType]
|
|
25850
|
-
* @param {Procedure} [procedure]
|
|
25851
|
-
* @param {Date} [created]
|
|
25852
|
-
* @param {string} [languageCode]
|
|
25853
|
-
* @param {number} [page]
|
|
25854
|
-
* @param {number} [limit]
|
|
25855
|
-
* @param {Date} [lastRetrieved]
|
|
26610
|
+
*
|
|
25856
26611
|
* @param {*} [options] Override http request option.
|
|
25857
26612
|
* @throws {RequiredError}
|
|
25858
26613
|
*/
|
|
25859
|
-
|
|
25860
|
-
const localVarPath = `/api/v1/
|
|
26614
|
+
apiV1ImagesPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26615
|
+
const localVarPath = `/api/v1/images`;
|
|
25861
26616
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25862
26617
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25863
26618
|
let baseOptions;
|
|
@@ -25865,7 +26620,7 @@ export const ServicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25865
26620
|
baseOptions = configuration.baseOptions;
|
|
25866
26621
|
}
|
|
25867
26622
|
|
|
25868
|
-
const localVarRequestOptions = { method: '
|
|
26623
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
25869
26624
|
const localVarHeaderParameter = {} as any;
|
|
25870
26625
|
const localVarQueryParameter = {} as any;
|
|
25871
26626
|
|
|
@@ -25873,35 +26628,667 @@ export const ServicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
25873
26628
|
// oauth required
|
|
25874
26629
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
25875
26630
|
|
|
25876
|
-
if (id !== undefined) {
|
|
25877
|
-
localVarQueryParameter['Id'] = id;
|
|
25878
|
-
}
|
|
25879
|
-
|
|
25880
|
-
if (name !== undefined) {
|
|
25881
|
-
localVarQueryParameter['Name'] = name;
|
|
25882
|
-
}
|
|
25883
|
-
|
|
25884
|
-
if (description !== undefined) {
|
|
25885
|
-
localVarQueryParameter['Description'] = description;
|
|
25886
|
-
}
|
|
25887
|
-
|
|
25888
|
-
if (hospitalId !== undefined) {
|
|
25889
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
25890
|
-
}
|
|
25891
26631
|
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
}
|
|
26632
|
+
|
|
26633
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26634
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26635
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
25895
26636
|
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
|
|
26637
|
+
return {
|
|
26638
|
+
url: toPathString(localVarUrlObj),
|
|
26639
|
+
options: localVarRequestOptions,
|
|
26640
|
+
};
|
|
26641
|
+
},
|
|
26642
|
+
}
|
|
26643
|
+
};
|
|
25899
26644
|
|
|
25900
|
-
|
|
25901
|
-
|
|
25902
|
-
|
|
26645
|
+
/**
|
|
26646
|
+
* ImagesApi - functional programming interface
|
|
26647
|
+
* @export
|
|
26648
|
+
*/
|
|
26649
|
+
export const ImagesApiFp = function(configuration?: Configuration) {
|
|
26650
|
+
const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration)
|
|
26651
|
+
return {
|
|
26652
|
+
/**
|
|
26653
|
+
*
|
|
26654
|
+
* @param {*} [options] Override http request option.
|
|
26655
|
+
* @throws {RequiredError}
|
|
26656
|
+
*/
|
|
26657
|
+
async apiV1ImagesPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MediaModel>>> {
|
|
26658
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ImagesPost(options);
|
|
26659
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26660
|
+
},
|
|
26661
|
+
}
|
|
26662
|
+
};
|
|
25903
26663
|
|
|
25904
|
-
|
|
26664
|
+
/**
|
|
26665
|
+
* ImagesApi - factory interface
|
|
26666
|
+
* @export
|
|
26667
|
+
*/
|
|
26668
|
+
export const ImagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26669
|
+
const localVarFp = ImagesApiFp(configuration)
|
|
26670
|
+
return {
|
|
26671
|
+
/**
|
|
26672
|
+
*
|
|
26673
|
+
* @param {*} [options] Override http request option.
|
|
26674
|
+
* @throws {RequiredError}
|
|
26675
|
+
*/
|
|
26676
|
+
apiV1ImagesPost(options?: any): AxiosPromise<Array<MediaModel>> {
|
|
26677
|
+
return localVarFp.apiV1ImagesPost(options).then((request) => request(axios, basePath));
|
|
26678
|
+
},
|
|
26679
|
+
};
|
|
26680
|
+
};
|
|
26681
|
+
|
|
26682
|
+
/**
|
|
26683
|
+
* ImagesApi - object-oriented interface
|
|
26684
|
+
* @export
|
|
26685
|
+
* @class ImagesApi
|
|
26686
|
+
* @extends {BaseAPI}
|
|
26687
|
+
*/
|
|
26688
|
+
export class ImagesApi extends BaseAPI {
|
|
26689
|
+
/**
|
|
26690
|
+
*
|
|
26691
|
+
* @param {*} [options] Override http request option.
|
|
26692
|
+
* @throws {RequiredError}
|
|
26693
|
+
* @memberof ImagesApi
|
|
26694
|
+
*/
|
|
26695
|
+
public apiV1ImagesPost(options?: AxiosRequestConfig) {
|
|
26696
|
+
return ImagesApiFp(this.configuration).apiV1ImagesPost(options).then((request) => request(this.axios, this.basePath));
|
|
26697
|
+
}
|
|
26698
|
+
}
|
|
26699
|
+
|
|
26700
|
+
|
|
26701
|
+
/**
|
|
26702
|
+
* LanguagesApi - axios parameter creator
|
|
26703
|
+
* @export
|
|
26704
|
+
*/
|
|
26705
|
+
export const LanguagesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26706
|
+
return {
|
|
26707
|
+
/**
|
|
26708
|
+
*
|
|
26709
|
+
* @summary Get Language by code.
|
|
26710
|
+
* @param {string} code
|
|
26711
|
+
* @param {*} [options] Override http request option.
|
|
26712
|
+
* @throws {RequiredError}
|
|
26713
|
+
*/
|
|
26714
|
+
apiV1LanguagesCodeGet: async (code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26715
|
+
// verify required parameter 'code' is not null or undefined
|
|
26716
|
+
assertParamExists('apiV1LanguagesCodeGet', 'code', code)
|
|
26717
|
+
const localVarPath = `/api/v1/languages/{code}`
|
|
26718
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
26719
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26720
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26721
|
+
let baseOptions;
|
|
26722
|
+
if (configuration) {
|
|
26723
|
+
baseOptions = configuration.baseOptions;
|
|
26724
|
+
}
|
|
26725
|
+
|
|
26726
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26727
|
+
const localVarHeaderParameter = {} as any;
|
|
26728
|
+
const localVarQueryParameter = {} as any;
|
|
26729
|
+
|
|
26730
|
+
// authentication oauth2 required
|
|
26731
|
+
// oauth required
|
|
26732
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26733
|
+
|
|
26734
|
+
|
|
26735
|
+
|
|
26736
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26738
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26739
|
+
|
|
26740
|
+
return {
|
|
26741
|
+
url: toPathString(localVarUrlObj),
|
|
26742
|
+
options: localVarRequestOptions,
|
|
26743
|
+
};
|
|
26744
|
+
},
|
|
26745
|
+
/**
|
|
26746
|
+
*
|
|
26747
|
+
* @summary Get all Languages.
|
|
26748
|
+
* @param {string} [id]
|
|
26749
|
+
* @param {string} [name]
|
|
26750
|
+
* @param {string} [code]
|
|
26751
|
+
* @param {string} [description]
|
|
26752
|
+
* @param {number} [page]
|
|
26753
|
+
* @param {number} [limit]
|
|
26754
|
+
* @param {Date} [lastRetrieved]
|
|
26755
|
+
* @param {*} [options] Override http request option.
|
|
26756
|
+
* @throws {RequiredError}
|
|
26757
|
+
*/
|
|
26758
|
+
apiV1LanguagesGet: async (id?: string, name?: string, code?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26759
|
+
const localVarPath = `/api/v1/languages`;
|
|
26760
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26761
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26762
|
+
let baseOptions;
|
|
26763
|
+
if (configuration) {
|
|
26764
|
+
baseOptions = configuration.baseOptions;
|
|
26765
|
+
}
|
|
26766
|
+
|
|
26767
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26768
|
+
const localVarHeaderParameter = {} as any;
|
|
26769
|
+
const localVarQueryParameter = {} as any;
|
|
26770
|
+
|
|
26771
|
+
// authentication oauth2 required
|
|
26772
|
+
// oauth required
|
|
26773
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26774
|
+
|
|
26775
|
+
if (id !== undefined) {
|
|
26776
|
+
localVarQueryParameter['Id'] = id;
|
|
26777
|
+
}
|
|
26778
|
+
|
|
26779
|
+
if (name !== undefined) {
|
|
26780
|
+
localVarQueryParameter['Name'] = name;
|
|
26781
|
+
}
|
|
26782
|
+
|
|
26783
|
+
if (code !== undefined) {
|
|
26784
|
+
localVarQueryParameter['Code'] = code;
|
|
26785
|
+
}
|
|
26786
|
+
|
|
26787
|
+
if (description !== undefined) {
|
|
26788
|
+
localVarQueryParameter['Description'] = description;
|
|
26789
|
+
}
|
|
26790
|
+
|
|
26791
|
+
if (page !== undefined) {
|
|
26792
|
+
localVarQueryParameter['page'] = page;
|
|
26793
|
+
}
|
|
26794
|
+
|
|
26795
|
+
if (limit !== undefined) {
|
|
26796
|
+
localVarQueryParameter['limit'] = limit;
|
|
26797
|
+
}
|
|
26798
|
+
|
|
26799
|
+
if (lastRetrieved !== undefined) {
|
|
26800
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
26801
|
+
(lastRetrieved as any).toISOString() :
|
|
26802
|
+
lastRetrieved;
|
|
26803
|
+
}
|
|
26804
|
+
|
|
26805
|
+
|
|
26806
|
+
|
|
26807
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26808
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26809
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26810
|
+
|
|
26811
|
+
return {
|
|
26812
|
+
url: toPathString(localVarUrlObj),
|
|
26813
|
+
options: localVarRequestOptions,
|
|
26814
|
+
};
|
|
26815
|
+
},
|
|
26816
|
+
/**
|
|
26817
|
+
*
|
|
26818
|
+
* @summary Get Language.
|
|
26819
|
+
* @param {string} id
|
|
26820
|
+
* @param {*} [options] Override http request option.
|
|
26821
|
+
* @throws {RequiredError}
|
|
26822
|
+
*/
|
|
26823
|
+
apiV1LanguagesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26824
|
+
// verify required parameter 'id' is not null or undefined
|
|
26825
|
+
assertParamExists('apiV1LanguagesIdGet', 'id', id)
|
|
26826
|
+
const localVarPath = `/api/v1/languages/{id}`
|
|
26827
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
26828
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26829
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26830
|
+
let baseOptions;
|
|
26831
|
+
if (configuration) {
|
|
26832
|
+
baseOptions = configuration.baseOptions;
|
|
26833
|
+
}
|
|
26834
|
+
|
|
26835
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26836
|
+
const localVarHeaderParameter = {} as any;
|
|
26837
|
+
const localVarQueryParameter = {} as any;
|
|
26838
|
+
|
|
26839
|
+
// authentication oauth2 required
|
|
26840
|
+
// oauth required
|
|
26841
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26842
|
+
|
|
26843
|
+
|
|
26844
|
+
|
|
26845
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26846
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26847
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26848
|
+
|
|
26849
|
+
return {
|
|
26850
|
+
url: toPathString(localVarUrlObj),
|
|
26851
|
+
options: localVarRequestOptions,
|
|
26852
|
+
};
|
|
26853
|
+
},
|
|
26854
|
+
}
|
|
26855
|
+
};
|
|
26856
|
+
|
|
26857
|
+
/**
|
|
26858
|
+
* LanguagesApi - functional programming interface
|
|
26859
|
+
* @export
|
|
26860
|
+
*/
|
|
26861
|
+
export const LanguagesApiFp = function(configuration?: Configuration) {
|
|
26862
|
+
const localVarAxiosParamCreator = LanguagesApiAxiosParamCreator(configuration)
|
|
26863
|
+
return {
|
|
26864
|
+
/**
|
|
26865
|
+
*
|
|
26866
|
+
* @summary Get Language by code.
|
|
26867
|
+
* @param {string} code
|
|
26868
|
+
* @param {*} [options] Override http request option.
|
|
26869
|
+
* @throws {RequiredError}
|
|
26870
|
+
*/
|
|
26871
|
+
async apiV1LanguagesCodeGet(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LanguageModel>> {
|
|
26872
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesCodeGet(code, options);
|
|
26873
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26874
|
+
},
|
|
26875
|
+
/**
|
|
26876
|
+
*
|
|
26877
|
+
* @summary Get all Languages.
|
|
26878
|
+
* @param {string} [id]
|
|
26879
|
+
* @param {string} [name]
|
|
26880
|
+
* @param {string} [code]
|
|
26881
|
+
* @param {string} [description]
|
|
26882
|
+
* @param {number} [page]
|
|
26883
|
+
* @param {number} [limit]
|
|
26884
|
+
* @param {Date} [lastRetrieved]
|
|
26885
|
+
* @param {*} [options] Override http request option.
|
|
26886
|
+
* @throws {RequiredError}
|
|
26887
|
+
*/
|
|
26888
|
+
async apiV1LanguagesGet(id?: string, name?: string, code?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LanguagesModel>> {
|
|
26889
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options);
|
|
26890
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26891
|
+
},
|
|
26892
|
+
/**
|
|
26893
|
+
*
|
|
26894
|
+
* @summary Get Language.
|
|
26895
|
+
* @param {string} id
|
|
26896
|
+
* @param {*} [options] Override http request option.
|
|
26897
|
+
* @throws {RequiredError}
|
|
26898
|
+
*/
|
|
26899
|
+
async apiV1LanguagesIdGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LanguageModel>> {
|
|
26900
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesIdGet(id, options);
|
|
26901
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26902
|
+
},
|
|
26903
|
+
}
|
|
26904
|
+
};
|
|
26905
|
+
|
|
26906
|
+
/**
|
|
26907
|
+
* LanguagesApi - factory interface
|
|
26908
|
+
* @export
|
|
26909
|
+
*/
|
|
26910
|
+
export const LanguagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26911
|
+
const localVarFp = LanguagesApiFp(configuration)
|
|
26912
|
+
return {
|
|
26913
|
+
/**
|
|
26914
|
+
*
|
|
26915
|
+
* @summary Get Language by code.
|
|
26916
|
+
* @param {string} code
|
|
26917
|
+
* @param {*} [options] Override http request option.
|
|
26918
|
+
* @throws {RequiredError}
|
|
26919
|
+
*/
|
|
26920
|
+
apiV1LanguagesCodeGet(code: string, options?: any): AxiosPromise<LanguageModel> {
|
|
26921
|
+
return localVarFp.apiV1LanguagesCodeGet(code, options).then((request) => request(axios, basePath));
|
|
26922
|
+
},
|
|
26923
|
+
/**
|
|
26924
|
+
*
|
|
26925
|
+
* @summary Get all Languages.
|
|
26926
|
+
* @param {string} [id]
|
|
26927
|
+
* @param {string} [name]
|
|
26928
|
+
* @param {string} [code]
|
|
26929
|
+
* @param {string} [description]
|
|
26930
|
+
* @param {number} [page]
|
|
26931
|
+
* @param {number} [limit]
|
|
26932
|
+
* @param {Date} [lastRetrieved]
|
|
26933
|
+
* @param {*} [options] Override http request option.
|
|
26934
|
+
* @throws {RequiredError}
|
|
26935
|
+
*/
|
|
26936
|
+
apiV1LanguagesGet(id?: string, name?: string, code?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<LanguagesModel> {
|
|
26937
|
+
return localVarFp.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
26938
|
+
},
|
|
26939
|
+
/**
|
|
26940
|
+
*
|
|
26941
|
+
* @summary Get Language.
|
|
26942
|
+
* @param {string} id
|
|
26943
|
+
* @param {*} [options] Override http request option.
|
|
26944
|
+
* @throws {RequiredError}
|
|
26945
|
+
*/
|
|
26946
|
+
apiV1LanguagesIdGet(id: string, options?: any): AxiosPromise<LanguageModel> {
|
|
26947
|
+
return localVarFp.apiV1LanguagesIdGet(id, options).then((request) => request(axios, basePath));
|
|
26948
|
+
},
|
|
26949
|
+
};
|
|
26950
|
+
};
|
|
26951
|
+
|
|
26952
|
+
/**
|
|
26953
|
+
* LanguagesApi - object-oriented interface
|
|
26954
|
+
* @export
|
|
26955
|
+
* @class LanguagesApi
|
|
26956
|
+
* @extends {BaseAPI}
|
|
26957
|
+
*/
|
|
26958
|
+
export class LanguagesApi extends BaseAPI {
|
|
26959
|
+
/**
|
|
26960
|
+
*
|
|
26961
|
+
* @summary Get Language by code.
|
|
26962
|
+
* @param {string} code
|
|
26963
|
+
* @param {*} [options] Override http request option.
|
|
26964
|
+
* @throws {RequiredError}
|
|
26965
|
+
* @memberof LanguagesApi
|
|
26966
|
+
*/
|
|
26967
|
+
public apiV1LanguagesCodeGet(code: string, options?: AxiosRequestConfig) {
|
|
26968
|
+
return LanguagesApiFp(this.configuration).apiV1LanguagesCodeGet(code, options).then((request) => request(this.axios, this.basePath));
|
|
26969
|
+
}
|
|
26970
|
+
|
|
26971
|
+
/**
|
|
26972
|
+
*
|
|
26973
|
+
* @summary Get all Languages.
|
|
26974
|
+
* @param {string} [id]
|
|
26975
|
+
* @param {string} [name]
|
|
26976
|
+
* @param {string} [code]
|
|
26977
|
+
* @param {string} [description]
|
|
26978
|
+
* @param {number} [page]
|
|
26979
|
+
* @param {number} [limit]
|
|
26980
|
+
* @param {Date} [lastRetrieved]
|
|
26981
|
+
* @param {*} [options] Override http request option.
|
|
26982
|
+
* @throws {RequiredError}
|
|
26983
|
+
* @memberof LanguagesApi
|
|
26984
|
+
*/
|
|
26985
|
+
public apiV1LanguagesGet(id?: string, name?: string, code?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
26986
|
+
return LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
26987
|
+
}
|
|
26988
|
+
|
|
26989
|
+
/**
|
|
26990
|
+
*
|
|
26991
|
+
* @summary Get Language.
|
|
26992
|
+
* @param {string} id
|
|
26993
|
+
* @param {*} [options] Override http request option.
|
|
26994
|
+
* @throws {RequiredError}
|
|
26995
|
+
* @memberof LanguagesApi
|
|
26996
|
+
*/
|
|
26997
|
+
public apiV1LanguagesIdGet(id: string, options?: AxiosRequestConfig) {
|
|
26998
|
+
return LanguagesApiFp(this.configuration).apiV1LanguagesIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
26999
|
+
}
|
|
27000
|
+
}
|
|
27001
|
+
|
|
27002
|
+
|
|
27003
|
+
/**
|
|
27004
|
+
* NotificationsApi - axios parameter creator
|
|
27005
|
+
* @export
|
|
27006
|
+
*/
|
|
27007
|
+
export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
27008
|
+
return {
|
|
27009
|
+
/**
|
|
27010
|
+
*
|
|
27011
|
+
* @summary Check notification.
|
|
27012
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
27013
|
+
* @param {*} [options] Override http request option.
|
|
27014
|
+
* @throws {RequiredError}
|
|
27015
|
+
*/
|
|
27016
|
+
apiV1NotificationsCheckPost: async (checkNotificationsCommand?: CheckNotificationsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27017
|
+
const localVarPath = `/api/v1/notifications/check`;
|
|
27018
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27019
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27020
|
+
let baseOptions;
|
|
27021
|
+
if (configuration) {
|
|
27022
|
+
baseOptions = configuration.baseOptions;
|
|
27023
|
+
}
|
|
27024
|
+
|
|
27025
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
27026
|
+
const localVarHeaderParameter = {} as any;
|
|
27027
|
+
const localVarQueryParameter = {} as any;
|
|
27028
|
+
|
|
27029
|
+
// authentication oauth2 required
|
|
27030
|
+
// oauth required
|
|
27031
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
27032
|
+
|
|
27033
|
+
|
|
27034
|
+
|
|
27035
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27036
|
+
|
|
27037
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27038
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27039
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27040
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration)
|
|
27041
|
+
|
|
27042
|
+
return {
|
|
27043
|
+
url: toPathString(localVarUrlObj),
|
|
27044
|
+
options: localVarRequestOptions,
|
|
27045
|
+
};
|
|
27046
|
+
},
|
|
27047
|
+
/**
|
|
27048
|
+
*
|
|
27049
|
+
* @summary Get all notifications.
|
|
27050
|
+
* @param {NotificationCode} [notificationCode]
|
|
27051
|
+
* @param {boolean} [unreadCountOnly]
|
|
27052
|
+
* @param {number} [page]
|
|
27053
|
+
* @param {number} [limit]
|
|
27054
|
+
* @param {Date} [lastRetrieved]
|
|
27055
|
+
* @param {*} [options] Override http request option.
|
|
27056
|
+
* @throws {RequiredError}
|
|
27057
|
+
*/
|
|
27058
|
+
apiV1NotificationsGet: async (notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27059
|
+
const localVarPath = `/api/v1/notifications`;
|
|
27060
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27061
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27062
|
+
let baseOptions;
|
|
27063
|
+
if (configuration) {
|
|
27064
|
+
baseOptions = configuration.baseOptions;
|
|
27065
|
+
}
|
|
27066
|
+
|
|
27067
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27068
|
+
const localVarHeaderParameter = {} as any;
|
|
27069
|
+
const localVarQueryParameter = {} as any;
|
|
27070
|
+
|
|
27071
|
+
// authentication oauth2 required
|
|
27072
|
+
// oauth required
|
|
27073
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
27074
|
+
|
|
27075
|
+
if (notificationCode !== undefined) {
|
|
27076
|
+
localVarQueryParameter['NotificationCode'] = notificationCode;
|
|
27077
|
+
}
|
|
27078
|
+
|
|
27079
|
+
if (unreadCountOnly !== undefined) {
|
|
27080
|
+
localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
|
|
27081
|
+
}
|
|
27082
|
+
|
|
27083
|
+
if (page !== undefined) {
|
|
27084
|
+
localVarQueryParameter['page'] = page;
|
|
27085
|
+
}
|
|
27086
|
+
|
|
27087
|
+
if (limit !== undefined) {
|
|
27088
|
+
localVarQueryParameter['limit'] = limit;
|
|
27089
|
+
}
|
|
27090
|
+
|
|
27091
|
+
if (lastRetrieved !== undefined) {
|
|
27092
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
27093
|
+
(lastRetrieved as any).toISOString() :
|
|
27094
|
+
lastRetrieved;
|
|
27095
|
+
}
|
|
27096
|
+
|
|
27097
|
+
|
|
27098
|
+
|
|
27099
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27101
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27102
|
+
|
|
27103
|
+
return {
|
|
27104
|
+
url: toPathString(localVarUrlObj),
|
|
27105
|
+
options: localVarRequestOptions,
|
|
27106
|
+
};
|
|
27107
|
+
},
|
|
27108
|
+
}
|
|
27109
|
+
};
|
|
27110
|
+
|
|
27111
|
+
/**
|
|
27112
|
+
* NotificationsApi - functional programming interface
|
|
27113
|
+
* @export
|
|
27114
|
+
*/
|
|
27115
|
+
export const NotificationsApiFp = function(configuration?: Configuration) {
|
|
27116
|
+
const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
|
|
27117
|
+
return {
|
|
27118
|
+
/**
|
|
27119
|
+
*
|
|
27120
|
+
* @summary Check notification.
|
|
27121
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
27122
|
+
* @param {*} [options] Override http request option.
|
|
27123
|
+
* @throws {RequiredError}
|
|
27124
|
+
*/
|
|
27125
|
+
async apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
27126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options);
|
|
27127
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
27128
|
+
},
|
|
27129
|
+
/**
|
|
27130
|
+
*
|
|
27131
|
+
* @summary Get all notifications.
|
|
27132
|
+
* @param {NotificationCode} [notificationCode]
|
|
27133
|
+
* @param {boolean} [unreadCountOnly]
|
|
27134
|
+
* @param {number} [page]
|
|
27135
|
+
* @param {number} [limit]
|
|
27136
|
+
* @param {Date} [lastRetrieved]
|
|
27137
|
+
* @param {*} [options] Override http request option.
|
|
27138
|
+
* @throws {RequiredError}
|
|
27139
|
+
*/
|
|
27140
|
+
async apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationsModel>> {
|
|
27141
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options);
|
|
27142
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
27143
|
+
},
|
|
27144
|
+
}
|
|
27145
|
+
};
|
|
27146
|
+
|
|
27147
|
+
/**
|
|
27148
|
+
* NotificationsApi - factory interface
|
|
27149
|
+
* @export
|
|
27150
|
+
*/
|
|
27151
|
+
export const NotificationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
27152
|
+
const localVarFp = NotificationsApiFp(configuration)
|
|
27153
|
+
return {
|
|
27154
|
+
/**
|
|
27155
|
+
*
|
|
27156
|
+
* @summary Check notification.
|
|
27157
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
27158
|
+
* @param {*} [options] Override http request option.
|
|
27159
|
+
* @throws {RequiredError}
|
|
27160
|
+
*/
|
|
27161
|
+
apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: any): AxiosPromise<boolean> {
|
|
27162
|
+
return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(axios, basePath));
|
|
27163
|
+
},
|
|
27164
|
+
/**
|
|
27165
|
+
*
|
|
27166
|
+
* @summary Get all notifications.
|
|
27167
|
+
* @param {NotificationCode} [notificationCode]
|
|
27168
|
+
* @param {boolean} [unreadCountOnly]
|
|
27169
|
+
* @param {number} [page]
|
|
27170
|
+
* @param {number} [limit]
|
|
27171
|
+
* @param {Date} [lastRetrieved]
|
|
27172
|
+
* @param {*} [options] Override http request option.
|
|
27173
|
+
* @throws {RequiredError}
|
|
27174
|
+
*/
|
|
27175
|
+
apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<NotificationsModel> {
|
|
27176
|
+
return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
27177
|
+
},
|
|
27178
|
+
};
|
|
27179
|
+
};
|
|
27180
|
+
|
|
27181
|
+
/**
|
|
27182
|
+
* NotificationsApi - object-oriented interface
|
|
27183
|
+
* @export
|
|
27184
|
+
* @class NotificationsApi
|
|
27185
|
+
* @extends {BaseAPI}
|
|
27186
|
+
*/
|
|
27187
|
+
export class NotificationsApi extends BaseAPI {
|
|
27188
|
+
/**
|
|
27189
|
+
*
|
|
27190
|
+
* @summary Check notification.
|
|
27191
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
27192
|
+
* @param {*} [options] Override http request option.
|
|
27193
|
+
* @throws {RequiredError}
|
|
27194
|
+
* @memberof NotificationsApi
|
|
27195
|
+
*/
|
|
27196
|
+
public apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig) {
|
|
27197
|
+
return NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(this.axios, this.basePath));
|
|
27198
|
+
}
|
|
27199
|
+
|
|
27200
|
+
/**
|
|
27201
|
+
*
|
|
27202
|
+
* @summary Get all notifications.
|
|
27203
|
+
* @param {NotificationCode} [notificationCode]
|
|
27204
|
+
* @param {boolean} [unreadCountOnly]
|
|
27205
|
+
* @param {number} [page]
|
|
27206
|
+
* @param {number} [limit]
|
|
27207
|
+
* @param {Date} [lastRetrieved]
|
|
27208
|
+
* @param {*} [options] Override http request option.
|
|
27209
|
+
* @throws {RequiredError}
|
|
27210
|
+
* @memberof NotificationsApi
|
|
27211
|
+
*/
|
|
27212
|
+
public apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
27213
|
+
return NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
27214
|
+
}
|
|
27215
|
+
}
|
|
27216
|
+
|
|
27217
|
+
|
|
27218
|
+
/**
|
|
27219
|
+
* ServicesApi - axios parameter creator
|
|
27220
|
+
* @export
|
|
27221
|
+
*/
|
|
27222
|
+
export const ServicesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
27223
|
+
return {
|
|
27224
|
+
/**
|
|
27225
|
+
* Sample request: GET /api/v1/hospitals/services
|
|
27226
|
+
* @summary Get all services.
|
|
27227
|
+
* @param {string} [id]
|
|
27228
|
+
* @param {string} [name]
|
|
27229
|
+
* @param {string} [description]
|
|
27230
|
+
* @param {string} [hospitalId]
|
|
27231
|
+
* @param {string} [hospitalName]
|
|
27232
|
+
* @param {string} [hospitalSlug]
|
|
27233
|
+
* @param {string} [specialtyId]
|
|
27234
|
+
* @param {string} [specialtyTypeId]
|
|
27235
|
+
* @param {string} [specialtyTypeName]
|
|
27236
|
+
* @param {MarketingType} [marketingType]
|
|
27237
|
+
* @param {Procedure} [procedure]
|
|
27238
|
+
* @param {Date} [created]
|
|
27239
|
+
* @param {string} [languageCode]
|
|
27240
|
+
* @param {number} [page]
|
|
27241
|
+
* @param {number} [limit]
|
|
27242
|
+
* @param {Date} [lastRetrieved]
|
|
27243
|
+
* @param {*} [options] Override http request option.
|
|
27244
|
+
* @throws {RequiredError}
|
|
27245
|
+
*/
|
|
27246
|
+
apiV1ServicesGet: async (id?: string, name?: string, description?: string, hospitalId?: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyTypeId?: string, specialtyTypeName?: string, marketingType?: MarketingType, procedure?: Procedure, created?: Date, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27247
|
+
const localVarPath = `/api/v1/services`;
|
|
27248
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27249
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27250
|
+
let baseOptions;
|
|
27251
|
+
if (configuration) {
|
|
27252
|
+
baseOptions = configuration.baseOptions;
|
|
27253
|
+
}
|
|
27254
|
+
|
|
27255
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27256
|
+
const localVarHeaderParameter = {} as any;
|
|
27257
|
+
const localVarQueryParameter = {} as any;
|
|
27258
|
+
|
|
27259
|
+
// authentication oauth2 required
|
|
27260
|
+
// oauth required
|
|
27261
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
27262
|
+
|
|
27263
|
+
if (id !== undefined) {
|
|
27264
|
+
localVarQueryParameter['Id'] = id;
|
|
27265
|
+
}
|
|
27266
|
+
|
|
27267
|
+
if (name !== undefined) {
|
|
27268
|
+
localVarQueryParameter['Name'] = name;
|
|
27269
|
+
}
|
|
27270
|
+
|
|
27271
|
+
if (description !== undefined) {
|
|
27272
|
+
localVarQueryParameter['Description'] = description;
|
|
27273
|
+
}
|
|
27274
|
+
|
|
27275
|
+
if (hospitalId !== undefined) {
|
|
27276
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
27277
|
+
}
|
|
27278
|
+
|
|
27279
|
+
if (hospitalName !== undefined) {
|
|
27280
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
27281
|
+
}
|
|
27282
|
+
|
|
27283
|
+
if (hospitalSlug !== undefined) {
|
|
27284
|
+
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
27285
|
+
}
|
|
27286
|
+
|
|
27287
|
+
if (specialtyId !== undefined) {
|
|
27288
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
27289
|
+
}
|
|
27290
|
+
|
|
27291
|
+
if (specialtyTypeId !== undefined) {
|
|
25905
27292
|
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
25906
27293
|
}
|
|
25907
27294
|
|
|
@@ -26604,23 +27991,276 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26604
27991
|
return {
|
|
26605
27992
|
/**
|
|
26606
27993
|
*
|
|
26607
|
-
* @summary Get all Specialties.
|
|
27994
|
+
* @summary Get all Specialties.
|
|
27995
|
+
* @param {string} [id]
|
|
27996
|
+
* @param {string} [name]
|
|
27997
|
+
* @param {string} [description]
|
|
27998
|
+
* @param {string} [specialtyTypeId]
|
|
27999
|
+
* @param {string} [hospitalId]
|
|
28000
|
+
* @param {Date} [created]
|
|
28001
|
+
* @param {string} [languageCode]
|
|
28002
|
+
* @param {Array<string>} [ids]
|
|
28003
|
+
* @param {number} [page]
|
|
28004
|
+
* @param {number} [limit]
|
|
28005
|
+
* @param {Date} [lastRetrieved]
|
|
28006
|
+
* @param {*} [options] Override http request option.
|
|
28007
|
+
* @throws {RequiredError}
|
|
28008
|
+
*/
|
|
28009
|
+
apiV1SpecialtiesGet: async (id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28010
|
+
const localVarPath = `/api/v1/specialties`;
|
|
28011
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28012
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28013
|
+
let baseOptions;
|
|
28014
|
+
if (configuration) {
|
|
28015
|
+
baseOptions = configuration.baseOptions;
|
|
28016
|
+
}
|
|
28017
|
+
|
|
28018
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28019
|
+
const localVarHeaderParameter = {} as any;
|
|
28020
|
+
const localVarQueryParameter = {} as any;
|
|
28021
|
+
|
|
28022
|
+
// authentication oauth2 required
|
|
28023
|
+
// oauth required
|
|
28024
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
28025
|
+
|
|
28026
|
+
if (id !== undefined) {
|
|
28027
|
+
localVarQueryParameter['Id'] = id;
|
|
28028
|
+
}
|
|
28029
|
+
|
|
28030
|
+
if (name !== undefined) {
|
|
28031
|
+
localVarQueryParameter['Name'] = name;
|
|
28032
|
+
}
|
|
28033
|
+
|
|
28034
|
+
if (description !== undefined) {
|
|
28035
|
+
localVarQueryParameter['Description'] = description;
|
|
28036
|
+
}
|
|
28037
|
+
|
|
28038
|
+
if (specialtyTypeId !== undefined) {
|
|
28039
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
28040
|
+
}
|
|
28041
|
+
|
|
28042
|
+
if (hospitalId !== undefined) {
|
|
28043
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
28044
|
+
}
|
|
28045
|
+
|
|
28046
|
+
if (created !== undefined) {
|
|
28047
|
+
localVarQueryParameter['Created'] = (created as any instanceof Date) ?
|
|
28048
|
+
(created as any).toISOString() :
|
|
28049
|
+
created;
|
|
28050
|
+
}
|
|
28051
|
+
|
|
28052
|
+
if (languageCode !== undefined) {
|
|
28053
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
28054
|
+
}
|
|
28055
|
+
|
|
28056
|
+
if (ids) {
|
|
28057
|
+
localVarQueryParameter['Ids'] = ids;
|
|
28058
|
+
}
|
|
28059
|
+
|
|
28060
|
+
if (page !== undefined) {
|
|
28061
|
+
localVarQueryParameter['page'] = page;
|
|
28062
|
+
}
|
|
28063
|
+
|
|
28064
|
+
if (limit !== undefined) {
|
|
28065
|
+
localVarQueryParameter['limit'] = limit;
|
|
28066
|
+
}
|
|
28067
|
+
|
|
28068
|
+
if (lastRetrieved !== undefined) {
|
|
28069
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
28070
|
+
(lastRetrieved as any).toISOString() :
|
|
28071
|
+
lastRetrieved;
|
|
28072
|
+
}
|
|
28073
|
+
|
|
28074
|
+
|
|
28075
|
+
|
|
28076
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28077
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28078
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28079
|
+
|
|
28080
|
+
return {
|
|
28081
|
+
url: toPathString(localVarUrlObj),
|
|
28082
|
+
options: localVarRequestOptions,
|
|
28083
|
+
};
|
|
28084
|
+
},
|
|
28085
|
+
/**
|
|
28086
|
+
*
|
|
28087
|
+
* @summary Create a Specialty.
|
|
28088
|
+
* @param {CreateSpecialtyCommand} [createSpecialtyCommand]
|
|
28089
|
+
* @param {*} [options] Override http request option.
|
|
28090
|
+
* @throws {RequiredError}
|
|
28091
|
+
*/
|
|
28092
|
+
apiV1SpecialtiesPost: async (createSpecialtyCommand?: CreateSpecialtyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28093
|
+
const localVarPath = `/api/v1/specialties`;
|
|
28094
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28095
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28096
|
+
let baseOptions;
|
|
28097
|
+
if (configuration) {
|
|
28098
|
+
baseOptions = configuration.baseOptions;
|
|
28099
|
+
}
|
|
28100
|
+
|
|
28101
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28102
|
+
const localVarHeaderParameter = {} as any;
|
|
28103
|
+
const localVarQueryParameter = {} as any;
|
|
28104
|
+
|
|
28105
|
+
// authentication oauth2 required
|
|
28106
|
+
// oauth required
|
|
28107
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
28108
|
+
|
|
28109
|
+
|
|
28110
|
+
|
|
28111
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28112
|
+
|
|
28113
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28115
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28116
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSpecialtyCommand, localVarRequestOptions, configuration)
|
|
28117
|
+
|
|
28118
|
+
return {
|
|
28119
|
+
url: toPathString(localVarUrlObj),
|
|
28120
|
+
options: localVarRequestOptions,
|
|
28121
|
+
};
|
|
28122
|
+
},
|
|
28123
|
+
/**
|
|
28124
|
+
*
|
|
28125
|
+
* @summary Get Specialty by slug.
|
|
28126
|
+
* @param {string} slug
|
|
28127
|
+
* @param {string} [languageCode]
|
|
28128
|
+
* @param {*} [options] Override http request option.
|
|
28129
|
+
* @throws {RequiredError}
|
|
28130
|
+
*/
|
|
28131
|
+
apiV1SpecialtiesSlugGet: async (slug: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28132
|
+
// verify required parameter 'slug' is not null or undefined
|
|
28133
|
+
assertParamExists('apiV1SpecialtiesSlugGet', 'slug', slug)
|
|
28134
|
+
const localVarPath = `/api/v1/specialties/{slug}`
|
|
28135
|
+
.replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
|
|
28136
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28137
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28138
|
+
let baseOptions;
|
|
28139
|
+
if (configuration) {
|
|
28140
|
+
baseOptions = configuration.baseOptions;
|
|
28141
|
+
}
|
|
28142
|
+
|
|
28143
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28144
|
+
const localVarHeaderParameter = {} as any;
|
|
28145
|
+
const localVarQueryParameter = {} as any;
|
|
28146
|
+
|
|
28147
|
+
// authentication oauth2 required
|
|
28148
|
+
// oauth required
|
|
28149
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
28150
|
+
|
|
28151
|
+
if (languageCode !== undefined) {
|
|
28152
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
28153
|
+
}
|
|
28154
|
+
|
|
28155
|
+
|
|
28156
|
+
|
|
28157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28159
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28160
|
+
|
|
28161
|
+
return {
|
|
28162
|
+
url: toPathString(localVarUrlObj),
|
|
28163
|
+
options: localVarRequestOptions,
|
|
28164
|
+
};
|
|
28165
|
+
},
|
|
28166
|
+
/**
|
|
28167
|
+
*
|
|
28168
|
+
* @summary Delete Specialty.
|
|
28169
|
+
* @param {string} specialtyId
|
|
28170
|
+
* @param {*} [options] Override http request option.
|
|
28171
|
+
* @throws {RequiredError}
|
|
28172
|
+
*/
|
|
28173
|
+
apiV1SpecialtiesSpecialtyIdDelete: async (specialtyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28174
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
28175
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId)
|
|
28176
|
+
const localVarPath = `/api/v1/specialties/{specialtyId}`
|
|
28177
|
+
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
|
|
28178
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28179
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28180
|
+
let baseOptions;
|
|
28181
|
+
if (configuration) {
|
|
28182
|
+
baseOptions = configuration.baseOptions;
|
|
28183
|
+
}
|
|
28184
|
+
|
|
28185
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
28186
|
+
const localVarHeaderParameter = {} as any;
|
|
28187
|
+
const localVarQueryParameter = {} as any;
|
|
28188
|
+
|
|
28189
|
+
// authentication oauth2 required
|
|
28190
|
+
// oauth required
|
|
28191
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
28192
|
+
|
|
28193
|
+
|
|
28194
|
+
|
|
28195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28197
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28198
|
+
|
|
28199
|
+
return {
|
|
28200
|
+
url: toPathString(localVarUrlObj),
|
|
28201
|
+
options: localVarRequestOptions,
|
|
28202
|
+
};
|
|
28203
|
+
},
|
|
28204
|
+
/**
|
|
28205
|
+
*
|
|
28206
|
+
* @summary Get Specialty.
|
|
28207
|
+
* @param {string} specialtyId
|
|
28208
|
+
* @param {string} [languageCode]
|
|
28209
|
+
* @param {*} [options] Override http request option.
|
|
28210
|
+
* @throws {RequiredError}
|
|
28211
|
+
*/
|
|
28212
|
+
apiV1SpecialtiesSpecialtyIdGet: async (specialtyId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28213
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
28214
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId)
|
|
28215
|
+
const localVarPath = `/api/v1/specialties/{specialtyId}`
|
|
28216
|
+
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
|
|
28217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28219
|
+
let baseOptions;
|
|
28220
|
+
if (configuration) {
|
|
28221
|
+
baseOptions = configuration.baseOptions;
|
|
28222
|
+
}
|
|
28223
|
+
|
|
28224
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28225
|
+
const localVarHeaderParameter = {} as any;
|
|
28226
|
+
const localVarQueryParameter = {} as any;
|
|
28227
|
+
|
|
28228
|
+
// authentication oauth2 required
|
|
28229
|
+
// oauth required
|
|
28230
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
28231
|
+
|
|
28232
|
+
if (languageCode !== undefined) {
|
|
28233
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
28234
|
+
}
|
|
28235
|
+
|
|
28236
|
+
|
|
28237
|
+
|
|
28238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28240
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28241
|
+
|
|
28242
|
+
return {
|
|
28243
|
+
url: toPathString(localVarUrlObj),
|
|
28244
|
+
options: localVarRequestOptions,
|
|
28245
|
+
};
|
|
28246
|
+
},
|
|
28247
|
+
/**
|
|
28248
|
+
*
|
|
28249
|
+
* @summary Get all SpecialtyMedias.
|
|
28250
|
+
* @param {string} specialtyId
|
|
26608
28251
|
* @param {string} [id]
|
|
26609
|
-
* @param {
|
|
26610
|
-
* @param {string} [description]
|
|
26611
|
-
* @param {string} [specialtyTypeId]
|
|
26612
|
-
* @param {string} [hospitalId]
|
|
26613
|
-
* @param {Date} [created]
|
|
26614
|
-
* @param {string} [languageCode]
|
|
26615
|
-
* @param {Array<string>} [ids]
|
|
28252
|
+
* @param {MediaType} [mediaType]
|
|
26616
28253
|
* @param {number} [page]
|
|
26617
28254
|
* @param {number} [limit]
|
|
26618
28255
|
* @param {Date} [lastRetrieved]
|
|
26619
28256
|
* @param {*} [options] Override http request option.
|
|
26620
28257
|
* @throws {RequiredError}
|
|
26621
28258
|
*/
|
|
26622
|
-
|
|
26623
|
-
|
|
28259
|
+
apiV1SpecialtiesSpecialtyIdMediasGet: async (specialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28260
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
28261
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdMediasGet', 'specialtyId', specialtyId)
|
|
28262
|
+
const localVarPath = `/api/v1/specialties/{specialtyId}/medias`
|
|
28263
|
+
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
|
|
26624
28264
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26625
28265
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26626
28266
|
let baseOptions;
|
|
@@ -26640,34 +28280,8 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26640
28280
|
localVarQueryParameter['Id'] = id;
|
|
26641
28281
|
}
|
|
26642
28282
|
|
|
26643
|
-
if (
|
|
26644
|
-
localVarQueryParameter['
|
|
26645
|
-
}
|
|
26646
|
-
|
|
26647
|
-
if (description !== undefined) {
|
|
26648
|
-
localVarQueryParameter['Description'] = description;
|
|
26649
|
-
}
|
|
26650
|
-
|
|
26651
|
-
if (specialtyTypeId !== undefined) {
|
|
26652
|
-
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
26653
|
-
}
|
|
26654
|
-
|
|
26655
|
-
if (hospitalId !== undefined) {
|
|
26656
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
26657
|
-
}
|
|
26658
|
-
|
|
26659
|
-
if (created !== undefined) {
|
|
26660
|
-
localVarQueryParameter['Created'] = (created as any instanceof Date) ?
|
|
26661
|
-
(created as any).toISOString() :
|
|
26662
|
-
created;
|
|
26663
|
-
}
|
|
26664
|
-
|
|
26665
|
-
if (languageCode !== undefined) {
|
|
26666
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
26667
|
-
}
|
|
26668
|
-
|
|
26669
|
-
if (ids) {
|
|
26670
|
-
localVarQueryParameter['Ids'] = ids;
|
|
28283
|
+
if (mediaType !== undefined) {
|
|
28284
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
26671
28285
|
}
|
|
26672
28286
|
|
|
26673
28287
|
if (page !== undefined) {
|
|
@@ -26697,13 +28311,20 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26697
28311
|
},
|
|
26698
28312
|
/**
|
|
26699
28313
|
*
|
|
26700
|
-
* @summary
|
|
26701
|
-
* @param {
|
|
28314
|
+
* @summary Delete SpecialtyMedia
|
|
28315
|
+
* @param {string} specialtyId
|
|
28316
|
+
* @param {string} mediaId
|
|
26702
28317
|
* @param {*} [options] Override http request option.
|
|
26703
28318
|
* @throws {RequiredError}
|
|
26704
28319
|
*/
|
|
26705
|
-
|
|
26706
|
-
|
|
28320
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete: async (specialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28321
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
28322
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete', 'specialtyId', specialtyId)
|
|
28323
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
28324
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete', 'mediaId', mediaId)
|
|
28325
|
+
const localVarPath = `/api/v1/specialties/{specialtyId}/medias/{mediaId}`
|
|
28326
|
+
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)))
|
|
28327
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
26707
28328
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26708
28329
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26709
28330
|
let baseOptions;
|
|
@@ -26711,7 +28332,7 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26711
28332
|
baseOptions = configuration.baseOptions;
|
|
26712
28333
|
}
|
|
26713
28334
|
|
|
26714
|
-
const localVarRequestOptions = { method: '
|
|
28335
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
26715
28336
|
const localVarHeaderParameter = {} as any;
|
|
26716
28337
|
const localVarQueryParameter = {} as any;
|
|
26717
28338
|
|
|
@@ -26721,12 +28342,9 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26721
28342
|
|
|
26722
28343
|
|
|
26723
28344
|
|
|
26724
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26725
|
-
|
|
26726
28345
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26727
28346
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26728
28347
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26729
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createSpecialtyCommand, localVarRequestOptions, configuration)
|
|
26730
28348
|
|
|
26731
28349
|
return {
|
|
26732
28350
|
url: toPathString(localVarUrlObj),
|
|
@@ -26735,17 +28353,20 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26735
28353
|
},
|
|
26736
28354
|
/**
|
|
26737
28355
|
*
|
|
26738
|
-
* @summary Get
|
|
26739
|
-
* @param {string}
|
|
26740
|
-
* @param {string}
|
|
28356
|
+
* @summary Get SpecialtyMedia.
|
|
28357
|
+
* @param {string} specialtyId
|
|
28358
|
+
* @param {string} mediaId
|
|
26741
28359
|
* @param {*} [options] Override http request option.
|
|
26742
28360
|
* @throws {RequiredError}
|
|
26743
28361
|
*/
|
|
26744
|
-
|
|
26745
|
-
// verify required parameter '
|
|
26746
|
-
assertParamExists('
|
|
26747
|
-
|
|
26748
|
-
|
|
28362
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdGet: async (specialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28363
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
28364
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdGet', 'specialtyId', specialtyId)
|
|
28365
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
28366
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId)
|
|
28367
|
+
const localVarPath = `/api/v1/specialties/{specialtyId}/medias/{mediaId}`
|
|
28368
|
+
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)))
|
|
28369
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
26749
28370
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26750
28371
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26751
28372
|
let baseOptions;
|
|
@@ -26761,10 +28382,6 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26761
28382
|
// oauth required
|
|
26762
28383
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26763
28384
|
|
|
26764
|
-
if (languageCode !== undefined) {
|
|
26765
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
26766
|
-
}
|
|
26767
|
-
|
|
26768
28385
|
|
|
26769
28386
|
|
|
26770
28387
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -26778,16 +28395,21 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26778
28395
|
},
|
|
26779
28396
|
/**
|
|
26780
28397
|
*
|
|
26781
|
-
* @summary
|
|
28398
|
+
* @summary Update SpecialtyMedia.
|
|
26782
28399
|
* @param {string} specialtyId
|
|
28400
|
+
* @param {string} mediaId
|
|
28401
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
26783
28402
|
* @param {*} [options] Override http request option.
|
|
26784
28403
|
* @throws {RequiredError}
|
|
26785
28404
|
*/
|
|
26786
|
-
|
|
28405
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdPut: async (specialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26787
28406
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
26788
|
-
assertParamExists('
|
|
26789
|
-
|
|
26790
|
-
|
|
28407
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdPut', 'specialtyId', specialtyId)
|
|
28408
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
28409
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdPut', 'mediaId', mediaId)
|
|
28410
|
+
const localVarPath = `/api/v1/specialties/{specialtyId}/medias/{mediaId}`
|
|
28411
|
+
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)))
|
|
28412
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
26791
28413
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26792
28414
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26793
28415
|
let baseOptions;
|
|
@@ -26795,7 +28417,7 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26795
28417
|
baseOptions = configuration.baseOptions;
|
|
26796
28418
|
}
|
|
26797
28419
|
|
|
26798
|
-
const localVarRequestOptions = { method: '
|
|
28420
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
26799
28421
|
const localVarHeaderParameter = {} as any;
|
|
26800
28422
|
const localVarQueryParameter = {} as any;
|
|
26801
28423
|
|
|
@@ -26805,9 +28427,12 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26805
28427
|
|
|
26806
28428
|
|
|
26807
28429
|
|
|
28430
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28431
|
+
|
|
26808
28432
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26809
28433
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26810
28434
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28435
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration)
|
|
26811
28436
|
|
|
26812
28437
|
return {
|
|
26813
28438
|
url: toPathString(localVarUrlObj),
|
|
@@ -26816,16 +28441,16 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26816
28441
|
},
|
|
26817
28442
|
/**
|
|
26818
28443
|
*
|
|
26819
|
-
* @summary
|
|
28444
|
+
* @summary Create SpecialtyMedia.
|
|
26820
28445
|
* @param {string} specialtyId
|
|
26821
|
-
* @param {
|
|
28446
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
26822
28447
|
* @param {*} [options] Override http request option.
|
|
26823
28448
|
* @throws {RequiredError}
|
|
26824
28449
|
*/
|
|
26825
|
-
|
|
28450
|
+
apiV1SpecialtiesSpecialtyIdMediasPost: async (specialtyId: string, createMediaCommand?: CreateMediaCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26826
28451
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
26827
|
-
assertParamExists('
|
|
26828
|
-
const localVarPath = `/api/v1/specialties/{specialtyId}`
|
|
28452
|
+
assertParamExists('apiV1SpecialtiesSpecialtyIdMediasPost', 'specialtyId', specialtyId)
|
|
28453
|
+
const localVarPath = `/api/v1/specialties/{specialtyId}/medias`
|
|
26829
28454
|
.replace(`{${"specialtyId"}}`, encodeURIComponent(String(specialtyId)));
|
|
26830
28455
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26831
28456
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26834,7 +28459,7 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26834
28459
|
baseOptions = configuration.baseOptions;
|
|
26835
28460
|
}
|
|
26836
28461
|
|
|
26837
|
-
const localVarRequestOptions = { method: '
|
|
28462
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
26838
28463
|
const localVarHeaderParameter = {} as any;
|
|
26839
28464
|
const localVarQueryParameter = {} as any;
|
|
26840
28465
|
|
|
@@ -26842,15 +28467,14 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
26842
28467
|
// oauth required
|
|
26843
28468
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26844
28469
|
|
|
26845
|
-
if (languageCode !== undefined) {
|
|
26846
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
26847
|
-
}
|
|
26848
|
-
|
|
26849
28470
|
|
|
26850
28471
|
|
|
28472
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28473
|
+
|
|
26851
28474
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26852
28475
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26853
28476
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28477
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration)
|
|
26854
28478
|
|
|
26855
28479
|
return {
|
|
26856
28480
|
url: toPathString(localVarUrlObj),
|
|
@@ -26976,6 +28600,71 @@ export const SpecialtiesApiFp = function(configuration?: Configuration) {
|
|
|
26976
28600
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdGet(specialtyId, languageCode, options);
|
|
26977
28601
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26978
28602
|
},
|
|
28603
|
+
/**
|
|
28604
|
+
*
|
|
28605
|
+
* @summary Get all SpecialtyMedias.
|
|
28606
|
+
* @param {string} specialtyId
|
|
28607
|
+
* @param {string} [id]
|
|
28608
|
+
* @param {MediaType} [mediaType]
|
|
28609
|
+
* @param {number} [page]
|
|
28610
|
+
* @param {number} [limit]
|
|
28611
|
+
* @param {Date} [lastRetrieved]
|
|
28612
|
+
* @param {*} [options] Override http request option.
|
|
28613
|
+
* @throws {RequiredError}
|
|
28614
|
+
*/
|
|
28615
|
+
async apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
|
|
28616
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId, id, mediaType, page, limit, lastRetrieved, options);
|
|
28617
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28618
|
+
},
|
|
28619
|
+
/**
|
|
28620
|
+
*
|
|
28621
|
+
* @summary Delete SpecialtyMedia
|
|
28622
|
+
* @param {string} specialtyId
|
|
28623
|
+
* @param {string} mediaId
|
|
28624
|
+
* @param {*} [options] Override http request option.
|
|
28625
|
+
* @throws {RequiredError}
|
|
28626
|
+
*/
|
|
28627
|
+
async apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
28628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId, mediaId, options);
|
|
28629
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28630
|
+
},
|
|
28631
|
+
/**
|
|
28632
|
+
*
|
|
28633
|
+
* @summary Get SpecialtyMedia.
|
|
28634
|
+
* @param {string} specialtyId
|
|
28635
|
+
* @param {string} mediaId
|
|
28636
|
+
* @param {*} [options] Override http request option.
|
|
28637
|
+
* @throws {RequiredError}
|
|
28638
|
+
*/
|
|
28639
|
+
async apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
28640
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId, mediaId, options);
|
|
28641
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28642
|
+
},
|
|
28643
|
+
/**
|
|
28644
|
+
*
|
|
28645
|
+
* @summary Update SpecialtyMedia.
|
|
28646
|
+
* @param {string} specialtyId
|
|
28647
|
+
* @param {string} mediaId
|
|
28648
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
28649
|
+
* @param {*} [options] Override http request option.
|
|
28650
|
+
* @throws {RequiredError}
|
|
28651
|
+
*/
|
|
28652
|
+
async apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
28653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId, mediaId, updateMediaCommand, options);
|
|
28654
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28655
|
+
},
|
|
28656
|
+
/**
|
|
28657
|
+
*
|
|
28658
|
+
* @summary Create SpecialtyMedia.
|
|
28659
|
+
* @param {string} specialtyId
|
|
28660
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
28661
|
+
* @param {*} [options] Override http request option.
|
|
28662
|
+
* @throws {RequiredError}
|
|
28663
|
+
*/
|
|
28664
|
+
async apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
28665
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId, createMediaCommand, options);
|
|
28666
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
28667
|
+
},
|
|
26979
28668
|
/**
|
|
26980
28669
|
*
|
|
26981
28670
|
* @summary Update Specialty.
|
|
@@ -27060,6 +28749,66 @@ export const SpecialtiesApiFactory = function (configuration?: Configuration, ba
|
|
|
27060
28749
|
apiV1SpecialtiesSpecialtyIdGet(specialtyId: string, languageCode?: string, options?: any): AxiosPromise<SpecialtyModel> {
|
|
27061
28750
|
return localVarFp.apiV1SpecialtiesSpecialtyIdGet(specialtyId, languageCode, options).then((request) => request(axios, basePath));
|
|
27062
28751
|
},
|
|
28752
|
+
/**
|
|
28753
|
+
*
|
|
28754
|
+
* @summary Get all SpecialtyMedias.
|
|
28755
|
+
* @param {string} specialtyId
|
|
28756
|
+
* @param {string} [id]
|
|
28757
|
+
* @param {MediaType} [mediaType]
|
|
28758
|
+
* @param {number} [page]
|
|
28759
|
+
* @param {number} [limit]
|
|
28760
|
+
* @param {Date} [lastRetrieved]
|
|
28761
|
+
* @param {*} [options] Override http request option.
|
|
28762
|
+
* @throws {RequiredError}
|
|
28763
|
+
*/
|
|
28764
|
+
apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
|
|
28765
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
28766
|
+
},
|
|
28767
|
+
/**
|
|
28768
|
+
*
|
|
28769
|
+
* @summary Delete SpecialtyMedia
|
|
28770
|
+
* @param {string} specialtyId
|
|
28771
|
+
* @param {string} mediaId
|
|
28772
|
+
* @param {*} [options] Override http request option.
|
|
28773
|
+
* @throws {RequiredError}
|
|
28774
|
+
*/
|
|
28775
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId: string, mediaId: string, options?: any): AxiosPromise<boolean> {
|
|
28776
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId, mediaId, options).then((request) => request(axios, basePath));
|
|
28777
|
+
},
|
|
28778
|
+
/**
|
|
28779
|
+
*
|
|
28780
|
+
* @summary Get SpecialtyMedia.
|
|
28781
|
+
* @param {string} specialtyId
|
|
28782
|
+
* @param {string} mediaId
|
|
28783
|
+
* @param {*} [options] Override http request option.
|
|
28784
|
+
* @throws {RequiredError}
|
|
28785
|
+
*/
|
|
28786
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
28787
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId, mediaId, options).then((request) => request(axios, basePath));
|
|
28788
|
+
},
|
|
28789
|
+
/**
|
|
28790
|
+
*
|
|
28791
|
+
* @summary Update SpecialtyMedia.
|
|
28792
|
+
* @param {string} specialtyId
|
|
28793
|
+
* @param {string} mediaId
|
|
28794
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
28795
|
+
* @param {*} [options] Override http request option.
|
|
28796
|
+
* @throws {RequiredError}
|
|
28797
|
+
*/
|
|
28798
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: any): AxiosPromise<MediaModel> {
|
|
28799
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId, mediaId, updateMediaCommand, options).then((request) => request(axios, basePath));
|
|
28800
|
+
},
|
|
28801
|
+
/**
|
|
28802
|
+
*
|
|
28803
|
+
* @summary Create SpecialtyMedia.
|
|
28804
|
+
* @param {string} specialtyId
|
|
28805
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
28806
|
+
* @param {*} [options] Override http request option.
|
|
28807
|
+
* @throws {RequiredError}
|
|
28808
|
+
*/
|
|
28809
|
+
apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
|
|
28810
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId, createMediaCommand, options).then((request) => request(axios, basePath));
|
|
28811
|
+
},
|
|
27063
28812
|
/**
|
|
27064
28813
|
*
|
|
27065
28814
|
* @summary Update Specialty.
|
|
@@ -27153,6 +28902,76 @@ export class SpecialtiesApi extends BaseAPI {
|
|
|
27153
28902
|
return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdGet(specialtyId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
27154
28903
|
}
|
|
27155
28904
|
|
|
28905
|
+
/**
|
|
28906
|
+
*
|
|
28907
|
+
* @summary Get all SpecialtyMedias.
|
|
28908
|
+
* @param {string} specialtyId
|
|
28909
|
+
* @param {string} [id]
|
|
28910
|
+
* @param {MediaType} [mediaType]
|
|
28911
|
+
* @param {number} [page]
|
|
28912
|
+
* @param {number} [limit]
|
|
28913
|
+
* @param {Date} [lastRetrieved]
|
|
28914
|
+
* @param {*} [options] Override http request option.
|
|
28915
|
+
* @throws {RequiredError}
|
|
28916
|
+
* @memberof SpecialtiesApi
|
|
28917
|
+
*/
|
|
28918
|
+
public apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
28919
|
+
return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
28920
|
+
}
|
|
28921
|
+
|
|
28922
|
+
/**
|
|
28923
|
+
*
|
|
28924
|
+
* @summary Delete SpecialtyMedia
|
|
28925
|
+
* @param {string} specialtyId
|
|
28926
|
+
* @param {string} mediaId
|
|
28927
|
+
* @param {*} [options] Override http request option.
|
|
28928
|
+
* @throws {RequiredError}
|
|
28929
|
+
* @memberof SpecialtiesApi
|
|
28930
|
+
*/
|
|
28931
|
+
public apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
28932
|
+
return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
28933
|
+
}
|
|
28934
|
+
|
|
28935
|
+
/**
|
|
28936
|
+
*
|
|
28937
|
+
* @summary Get SpecialtyMedia.
|
|
28938
|
+
* @param {string} specialtyId
|
|
28939
|
+
* @param {string} mediaId
|
|
28940
|
+
* @param {*} [options] Override http request option.
|
|
28941
|
+
* @throws {RequiredError}
|
|
28942
|
+
* @memberof SpecialtiesApi
|
|
28943
|
+
*/
|
|
28944
|
+
public apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
28945
|
+
return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
28946
|
+
}
|
|
28947
|
+
|
|
28948
|
+
/**
|
|
28949
|
+
*
|
|
28950
|
+
* @summary Update SpecialtyMedia.
|
|
28951
|
+
* @param {string} specialtyId
|
|
28952
|
+
* @param {string} mediaId
|
|
28953
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
28954
|
+
* @param {*} [options] Override http request option.
|
|
28955
|
+
* @throws {RequiredError}
|
|
28956
|
+
* @memberof SpecialtiesApi
|
|
28957
|
+
*/
|
|
28958
|
+
public apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId: string, mediaId: string, updateMediaCommand?: UpdateMediaCommand, options?: AxiosRequestConfig) {
|
|
28959
|
+
return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId, mediaId, updateMediaCommand, options).then((request) => request(this.axios, this.basePath));
|
|
28960
|
+
}
|
|
28961
|
+
|
|
28962
|
+
/**
|
|
28963
|
+
*
|
|
28964
|
+
* @summary Create SpecialtyMedia.
|
|
28965
|
+
* @param {string} specialtyId
|
|
28966
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
28967
|
+
* @param {*} [options] Override http request option.
|
|
28968
|
+
* @throws {RequiredError}
|
|
28969
|
+
* @memberof SpecialtiesApi
|
|
28970
|
+
*/
|
|
28971
|
+
public apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId: string, createMediaCommand?: CreateMediaCommand, options?: AxiosRequestConfig) {
|
|
28972
|
+
return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId, createMediaCommand, options).then((request) => request(this.axios, this.basePath));
|
|
28973
|
+
}
|
|
28974
|
+
|
|
27156
28975
|
/**
|
|
27157
28976
|
*
|
|
27158
28977
|
* @summary Update Specialty.
|