ch-admin-api-client-typescript 2.1.3 → 2.1.4
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 +515 -20
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +630 -30
- package/package.json +1 -1
- package/src/api.ts +783 -30
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
|
|
@@ -8124,6 +8143,111 @@ export interface HospitalsModel {
|
|
|
8124
8143
|
*/
|
|
8125
8144
|
'metaData'?: PagedListMetaData;
|
|
8126
8145
|
}
|
|
8146
|
+
/**
|
|
8147
|
+
*
|
|
8148
|
+
* @export
|
|
8149
|
+
* @interface LanguageItemModel
|
|
8150
|
+
*/
|
|
8151
|
+
export interface LanguageItemModel {
|
|
8152
|
+
/**
|
|
8153
|
+
*
|
|
8154
|
+
* @type {string}
|
|
8155
|
+
* @memberof LanguageItemModel
|
|
8156
|
+
*/
|
|
8157
|
+
'id'?: string;
|
|
8158
|
+
/**
|
|
8159
|
+
*
|
|
8160
|
+
* @type {string}
|
|
8161
|
+
* @memberof LanguageItemModel
|
|
8162
|
+
*/
|
|
8163
|
+
'code'?: string | null;
|
|
8164
|
+
/**
|
|
8165
|
+
*
|
|
8166
|
+
* @type {string}
|
|
8167
|
+
* @memberof LanguageItemModel
|
|
8168
|
+
*/
|
|
8169
|
+
'name'?: string | null;
|
|
8170
|
+
/**
|
|
8171
|
+
*
|
|
8172
|
+
* @type {string}
|
|
8173
|
+
* @memberof LanguageItemModel
|
|
8174
|
+
*/
|
|
8175
|
+
'description'?: string | null;
|
|
8176
|
+
/**
|
|
8177
|
+
*
|
|
8178
|
+
* @type {boolean}
|
|
8179
|
+
* @memberof LanguageItemModel
|
|
8180
|
+
*/
|
|
8181
|
+
'published'?: boolean;
|
|
8182
|
+
/**
|
|
8183
|
+
*
|
|
8184
|
+
* @type {number}
|
|
8185
|
+
* @memberof LanguageItemModel
|
|
8186
|
+
*/
|
|
8187
|
+
'order'?: number;
|
|
8188
|
+
}
|
|
8189
|
+
/**
|
|
8190
|
+
*
|
|
8191
|
+
* @export
|
|
8192
|
+
* @interface LanguageModel
|
|
8193
|
+
*/
|
|
8194
|
+
export interface LanguageModel {
|
|
8195
|
+
/**
|
|
8196
|
+
*
|
|
8197
|
+
* @type {string}
|
|
8198
|
+
* @memberof LanguageModel
|
|
8199
|
+
*/
|
|
8200
|
+
'id'?: string;
|
|
8201
|
+
/**
|
|
8202
|
+
*
|
|
8203
|
+
* @type {string}
|
|
8204
|
+
* @memberof LanguageModel
|
|
8205
|
+
*/
|
|
8206
|
+
'code'?: string | null;
|
|
8207
|
+
/**
|
|
8208
|
+
*
|
|
8209
|
+
* @type {string}
|
|
8210
|
+
* @memberof LanguageModel
|
|
8211
|
+
*/
|
|
8212
|
+
'name'?: string | null;
|
|
8213
|
+
/**
|
|
8214
|
+
*
|
|
8215
|
+
* @type {string}
|
|
8216
|
+
* @memberof LanguageModel
|
|
8217
|
+
*/
|
|
8218
|
+
'description'?: string | null;
|
|
8219
|
+
/**
|
|
8220
|
+
*
|
|
8221
|
+
* @type {boolean}
|
|
8222
|
+
* @memberof LanguageModel
|
|
8223
|
+
*/
|
|
8224
|
+
'published'?: boolean;
|
|
8225
|
+
/**
|
|
8226
|
+
*
|
|
8227
|
+
* @type {number}
|
|
8228
|
+
* @memberof LanguageModel
|
|
8229
|
+
*/
|
|
8230
|
+
'order'?: number;
|
|
8231
|
+
}
|
|
8232
|
+
/**
|
|
8233
|
+
*
|
|
8234
|
+
* @export
|
|
8235
|
+
* @interface LanguagesModel
|
|
8236
|
+
*/
|
|
8237
|
+
export interface LanguagesModel {
|
|
8238
|
+
/**
|
|
8239
|
+
*
|
|
8240
|
+
* @type {Array<LanguageItemModel>}
|
|
8241
|
+
* @memberof LanguagesModel
|
|
8242
|
+
*/
|
|
8243
|
+
'items'?: Array<LanguageItemModel> | null;
|
|
8244
|
+
/**
|
|
8245
|
+
*
|
|
8246
|
+
* @type {PagedListMetaData}
|
|
8247
|
+
* @memberof LanguagesModel
|
|
8248
|
+
*/
|
|
8249
|
+
'metaData'?: PagedListMetaData;
|
|
8250
|
+
}
|
|
8127
8251
|
/**
|
|
8128
8252
|
*
|
|
8129
8253
|
* @export
|
|
@@ -8669,6 +8793,126 @@ export interface MembershipInvitation {
|
|
|
8669
8793
|
*/
|
|
8670
8794
|
'email'?: string | null;
|
|
8671
8795
|
}
|
|
8796
|
+
/**
|
|
8797
|
+
*
|
|
8798
|
+
* @export
|
|
8799
|
+
* @enum {string}
|
|
8800
|
+
*/
|
|
8801
|
+
|
|
8802
|
+
export enum NotificationCode {
|
|
8803
|
+
WelcomeEmail = 'WelcomeEmail',
|
|
8804
|
+
DirectMessageSent = 'DirectMessageSent',
|
|
8805
|
+
BookingNew = 'BookingNew',
|
|
8806
|
+
BookingUpdated = 'BookingUpdated',
|
|
8807
|
+
BookingRejected = 'BookingRejected',
|
|
8808
|
+
BookingApproved = 'BookingApproved',
|
|
8809
|
+
BookingPaid = 'BookingPaid',
|
|
8810
|
+
BookingCanceled = 'BookingCanceled',
|
|
8811
|
+
BookingRefundRequested = 'BookingRefundRequested',
|
|
8812
|
+
BookingRefunded = 'BookingRefunded',
|
|
8813
|
+
ConsultationNew = 'ConsultationNew',
|
|
8814
|
+
ConsultationUpdated = 'ConsultationUpdated',
|
|
8815
|
+
ConsultationRejected = 'ConsultationRejected',
|
|
8816
|
+
ConsultationApproved = 'ConsultationApproved',
|
|
8817
|
+
ConsultationPaid = 'ConsultationPaid',
|
|
8818
|
+
ConsultationCanceled = 'ConsultationCanceled',
|
|
8819
|
+
ConsultationRefundRequested = 'ConsultationRefundRequested',
|
|
8820
|
+
ConsultationRefunded = 'ConsultationRefunded',
|
|
8821
|
+
ConsultationReady = 'ConsultationReady'
|
|
8822
|
+
}
|
|
8823
|
+
|
|
8824
|
+
/**
|
|
8825
|
+
*
|
|
8826
|
+
* @export
|
|
8827
|
+
* @interface NotificationModel
|
|
8828
|
+
*/
|
|
8829
|
+
export interface NotificationModel {
|
|
8830
|
+
/**
|
|
8831
|
+
*
|
|
8832
|
+
* @type {string}
|
|
8833
|
+
* @memberof NotificationModel
|
|
8834
|
+
*/
|
|
8835
|
+
'id'?: string;
|
|
8836
|
+
/**
|
|
8837
|
+
*
|
|
8838
|
+
* @type {NotificationCode}
|
|
8839
|
+
* @memberof NotificationModel
|
|
8840
|
+
*/
|
|
8841
|
+
'notificationCode'?: NotificationCode;
|
|
8842
|
+
/**
|
|
8843
|
+
*
|
|
8844
|
+
* @type {string}
|
|
8845
|
+
* @memberof NotificationModel
|
|
8846
|
+
*/
|
|
8847
|
+
'notificationTargetId'?: string;
|
|
8848
|
+
/**
|
|
8849
|
+
*
|
|
8850
|
+
* @type {string}
|
|
8851
|
+
* @memberof NotificationModel
|
|
8852
|
+
*/
|
|
8853
|
+
'senderId'?: string | null;
|
|
8854
|
+
/**
|
|
8855
|
+
*
|
|
8856
|
+
* @type {string}
|
|
8857
|
+
* @memberof NotificationModel
|
|
8858
|
+
*/
|
|
8859
|
+
'senderName'?: string | null;
|
|
8860
|
+
/**
|
|
8861
|
+
*
|
|
8862
|
+
* @type {string}
|
|
8863
|
+
* @memberof NotificationModel
|
|
8864
|
+
*/
|
|
8865
|
+
'receiverId'?: string | null;
|
|
8866
|
+
/**
|
|
8867
|
+
*
|
|
8868
|
+
* @type {string}
|
|
8869
|
+
* @memberof NotificationModel
|
|
8870
|
+
*/
|
|
8871
|
+
'receiverName'?: string | null;
|
|
8872
|
+
/**
|
|
8873
|
+
*
|
|
8874
|
+
* @type {string}
|
|
8875
|
+
* @memberof NotificationModel
|
|
8876
|
+
*/
|
|
8877
|
+
'message'?: string | null;
|
|
8878
|
+
/**
|
|
8879
|
+
*
|
|
8880
|
+
* @type {Date}
|
|
8881
|
+
* @memberof NotificationModel
|
|
8882
|
+
*/
|
|
8883
|
+
'createdAt'?: Date;
|
|
8884
|
+
/**
|
|
8885
|
+
*
|
|
8886
|
+
* @type {boolean}
|
|
8887
|
+
* @memberof NotificationModel
|
|
8888
|
+
*/
|
|
8889
|
+
'isChecked'?: boolean;
|
|
8890
|
+
}
|
|
8891
|
+
/**
|
|
8892
|
+
*
|
|
8893
|
+
* @export
|
|
8894
|
+
* @interface NotificationsModel
|
|
8895
|
+
*/
|
|
8896
|
+
export interface NotificationsModel {
|
|
8897
|
+
/**
|
|
8898
|
+
*
|
|
8899
|
+
* @type {Array<NotificationModel>}
|
|
8900
|
+
* @memberof NotificationsModel
|
|
8901
|
+
*/
|
|
8902
|
+
'items'?: Array<NotificationModel> | null;
|
|
8903
|
+
/**
|
|
8904
|
+
*
|
|
8905
|
+
* @type {PagedListMetaData}
|
|
8906
|
+
* @memberof NotificationsModel
|
|
8907
|
+
*/
|
|
8908
|
+
'metaData'?: PagedListMetaData;
|
|
8909
|
+
/**
|
|
8910
|
+
*
|
|
8911
|
+
* @type {number}
|
|
8912
|
+
* @memberof NotificationsModel
|
|
8913
|
+
*/
|
|
8914
|
+
'unreadCount'?: number;
|
|
8915
|
+
}
|
|
8672
8916
|
/**
|
|
8673
8917
|
*
|
|
8674
8918
|
* @export
|
|
@@ -20915,7 +21159,7 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
20915
21159
|
},
|
|
20916
21160
|
/**
|
|
20917
21161
|
*
|
|
20918
|
-
* @summary Get all
|
|
21162
|
+
* @summary Get all Doctors.
|
|
20919
21163
|
* @param {string} [countryId]
|
|
20920
21164
|
* @param {string} [hospitalId]
|
|
20921
21165
|
* @param {MarketingType} [marketingType]
|
|
@@ -21523,7 +21767,7 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
|
|
|
21523
21767
|
},
|
|
21524
21768
|
/**
|
|
21525
21769
|
*
|
|
21526
|
-
* @summary Get all
|
|
21770
|
+
* @summary Get all Doctors.
|
|
21527
21771
|
* @param {string} [countryId]
|
|
21528
21772
|
* @param {string} [hospitalId]
|
|
21529
21773
|
* @param {MarketingType} [marketingType]
|
|
@@ -21938,7 +22182,7 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
|
|
|
21938
22182
|
},
|
|
21939
22183
|
/**
|
|
21940
22184
|
*
|
|
21941
|
-
* @summary Get all
|
|
22185
|
+
* @summary Get all Doctors.
|
|
21942
22186
|
* @param {string} [countryId]
|
|
21943
22187
|
* @param {string} [hospitalId]
|
|
21944
22188
|
* @param {MarketingType} [marketingType]
|
|
@@ -22408,7 +22652,7 @@ export class DoctorsApi extends BaseAPI {
|
|
|
22408
22652
|
|
|
22409
22653
|
/**
|
|
22410
22654
|
*
|
|
22411
|
-
* @summary Get all
|
|
22655
|
+
* @summary Get all Doctors.
|
|
22412
22656
|
* @param {string} [countryId]
|
|
22413
22657
|
* @param {string} [hospitalId]
|
|
22414
22658
|
* @param {MarketingType} [marketingType]
|
|
@@ -22673,9 +22917,8 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
22673
22917
|
},
|
|
22674
22918
|
/**
|
|
22675
22919
|
*
|
|
22676
|
-
* @summary Get all
|
|
22677
|
-
* @param {string}
|
|
22678
|
-
* @param {string} [hospitalId]
|
|
22920
|
+
* @summary Get all HospitalAccreditations.
|
|
22921
|
+
* @param {string} hospitalId
|
|
22679
22922
|
* @param {string} [hospitalName]
|
|
22680
22923
|
* @param {string} [accreditationId]
|
|
22681
22924
|
* @param {string} [accreditationName]
|
|
@@ -22685,11 +22928,11 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
22685
22928
|
* @param {*} [options] Override http request option.
|
|
22686
22929
|
* @throws {RequiredError}
|
|
22687
22930
|
*/
|
|
22688
|
-
apiV1HospitalsHospitalIdAccreditationsGet: async (
|
|
22689
|
-
// verify required parameter '
|
|
22690
|
-
assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', '
|
|
22931
|
+
apiV1HospitalsHospitalIdAccreditationsGet: async (hospitalId: string, hospitalName?: string, accreditationId?: string, accreditationName?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22932
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
22933
|
+
assertParamExists('apiV1HospitalsHospitalIdAccreditationsGet', 'hospitalId', hospitalId)
|
|
22691
22934
|
const localVarPath = `/api/v1/hospitals/{hospitalId}/accreditations`
|
|
22692
|
-
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(
|
|
22935
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
22693
22936
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22694
22937
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22695
22938
|
let baseOptions;
|
|
@@ -22705,10 +22948,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
22705
22948
|
// oauth required
|
|
22706
22949
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
22707
22950
|
|
|
22708
|
-
if (hospitalId !== undefined) {
|
|
22709
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
22710
|
-
}
|
|
22711
|
-
|
|
22712
22951
|
if (hospitalName !== undefined) {
|
|
22713
22952
|
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
22714
22953
|
}
|
|
@@ -24520,9 +24759,8 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
24520
24759
|
},
|
|
24521
24760
|
/**
|
|
24522
24761
|
*
|
|
24523
|
-
* @summary Get all
|
|
24524
|
-
* @param {string}
|
|
24525
|
-
* @param {string} [hospitalId]
|
|
24762
|
+
* @summary Get all HospitalAccreditations.
|
|
24763
|
+
* @param {string} hospitalId
|
|
24526
24764
|
* @param {string} [hospitalName]
|
|
24527
24765
|
* @param {string} [accreditationId]
|
|
24528
24766
|
* @param {string} [accreditationName]
|
|
@@ -24532,8 +24770,8 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
24532
24770
|
* @param {*} [options] Override http request option.
|
|
24533
24771
|
* @throws {RequiredError}
|
|
24534
24772
|
*/
|
|
24535
|
-
async apiV1HospitalsHospitalIdAccreditationsGet(
|
|
24536
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(
|
|
24773
|
+
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>> {
|
|
24774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options);
|
|
24537
24775
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
24538
24776
|
},
|
|
24539
24777
|
/**
|
|
@@ -25056,9 +25294,8 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
25056
25294
|
},
|
|
25057
25295
|
/**
|
|
25058
25296
|
*
|
|
25059
|
-
* @summary Get all
|
|
25060
|
-
* @param {string}
|
|
25061
|
-
* @param {string} [hospitalId]
|
|
25297
|
+
* @summary Get all HospitalAccreditations.
|
|
25298
|
+
* @param {string} hospitalId
|
|
25062
25299
|
* @param {string} [hospitalName]
|
|
25063
25300
|
* @param {string} [accreditationId]
|
|
25064
25301
|
* @param {string} [accreditationName]
|
|
@@ -25068,8 +25305,8 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
25068
25305
|
* @param {*} [options] Override http request option.
|
|
25069
25306
|
* @throws {RequiredError}
|
|
25070
25307
|
*/
|
|
25071
|
-
apiV1HospitalsHospitalIdAccreditationsGet(
|
|
25072
|
-
return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(
|
|
25308
|
+
apiV1HospitalsHospitalIdAccreditationsGet(hospitalId: string, hospitalName?: string, accreditationId?: string, accreditationName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalAccreditationsModel> {
|
|
25309
|
+
return localVarFp.apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
25073
25310
|
},
|
|
25074
25311
|
/**
|
|
25075
25312
|
*
|
|
@@ -25563,9 +25800,8 @@ export class HospitalsApi extends BaseAPI {
|
|
|
25563
25800
|
|
|
25564
25801
|
/**
|
|
25565
25802
|
*
|
|
25566
|
-
* @summary Get all
|
|
25567
|
-
* @param {string}
|
|
25568
|
-
* @param {string} [hospitalId]
|
|
25803
|
+
* @summary Get all HospitalAccreditations.
|
|
25804
|
+
* @param {string} hospitalId
|
|
25569
25805
|
* @param {string} [hospitalName]
|
|
25570
25806
|
* @param {string} [accreditationId]
|
|
25571
25807
|
* @param {string} [accreditationName]
|
|
@@ -25576,8 +25812,8 @@ export class HospitalsApi extends BaseAPI {
|
|
|
25576
25812
|
* @throws {RequiredError}
|
|
25577
25813
|
* @memberof HospitalsApi
|
|
25578
25814
|
*/
|
|
25579
|
-
public apiV1HospitalsHospitalIdAccreditationsGet(
|
|
25580
|
-
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(
|
|
25815
|
+
public apiV1HospitalsHospitalIdAccreditationsGet(hospitalId: string, hospitalName?: string, accreditationId?: string, accreditationName?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
25816
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdAccreditationsGet(hospitalId, hospitalName, accreditationId, accreditationName, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
25581
25817
|
}
|
|
25582
25818
|
|
|
25583
25819
|
/**
|
|
@@ -26175,6 +26411,523 @@ export class ImagesApi extends BaseAPI {
|
|
|
26175
26411
|
}
|
|
26176
26412
|
|
|
26177
26413
|
|
|
26414
|
+
/**
|
|
26415
|
+
* LanguagesApi - axios parameter creator
|
|
26416
|
+
* @export
|
|
26417
|
+
*/
|
|
26418
|
+
export const LanguagesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26419
|
+
return {
|
|
26420
|
+
/**
|
|
26421
|
+
*
|
|
26422
|
+
* @summary Get Language by code.
|
|
26423
|
+
* @param {string} code
|
|
26424
|
+
* @param {*} [options] Override http request option.
|
|
26425
|
+
* @throws {RequiredError}
|
|
26426
|
+
*/
|
|
26427
|
+
apiV1LanguagesCodeGet: async (code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26428
|
+
// verify required parameter 'code' is not null or undefined
|
|
26429
|
+
assertParamExists('apiV1LanguagesCodeGet', 'code', code)
|
|
26430
|
+
const localVarPath = `/api/v1/languages/{code}`
|
|
26431
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
26432
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26433
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26434
|
+
let baseOptions;
|
|
26435
|
+
if (configuration) {
|
|
26436
|
+
baseOptions = configuration.baseOptions;
|
|
26437
|
+
}
|
|
26438
|
+
|
|
26439
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26440
|
+
const localVarHeaderParameter = {} as any;
|
|
26441
|
+
const localVarQueryParameter = {} as any;
|
|
26442
|
+
|
|
26443
|
+
// authentication oauth2 required
|
|
26444
|
+
// oauth required
|
|
26445
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26446
|
+
|
|
26447
|
+
|
|
26448
|
+
|
|
26449
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26450
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26451
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26452
|
+
|
|
26453
|
+
return {
|
|
26454
|
+
url: toPathString(localVarUrlObj),
|
|
26455
|
+
options: localVarRequestOptions,
|
|
26456
|
+
};
|
|
26457
|
+
},
|
|
26458
|
+
/**
|
|
26459
|
+
*
|
|
26460
|
+
* @summary Get all Languages.
|
|
26461
|
+
* @param {string} [id]
|
|
26462
|
+
* @param {string} [name]
|
|
26463
|
+
* @param {string} [code]
|
|
26464
|
+
* @param {string} [description]
|
|
26465
|
+
* @param {number} [page]
|
|
26466
|
+
* @param {number} [limit]
|
|
26467
|
+
* @param {Date} [lastRetrieved]
|
|
26468
|
+
* @param {*} [options] Override http request option.
|
|
26469
|
+
* @throws {RequiredError}
|
|
26470
|
+
*/
|
|
26471
|
+
apiV1LanguagesGet: async (id?: string, name?: string, code?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26472
|
+
const localVarPath = `/api/v1/languages`;
|
|
26473
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26474
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26475
|
+
let baseOptions;
|
|
26476
|
+
if (configuration) {
|
|
26477
|
+
baseOptions = configuration.baseOptions;
|
|
26478
|
+
}
|
|
26479
|
+
|
|
26480
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26481
|
+
const localVarHeaderParameter = {} as any;
|
|
26482
|
+
const localVarQueryParameter = {} as any;
|
|
26483
|
+
|
|
26484
|
+
// authentication oauth2 required
|
|
26485
|
+
// oauth required
|
|
26486
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26487
|
+
|
|
26488
|
+
if (id !== undefined) {
|
|
26489
|
+
localVarQueryParameter['Id'] = id;
|
|
26490
|
+
}
|
|
26491
|
+
|
|
26492
|
+
if (name !== undefined) {
|
|
26493
|
+
localVarQueryParameter['Name'] = name;
|
|
26494
|
+
}
|
|
26495
|
+
|
|
26496
|
+
if (code !== undefined) {
|
|
26497
|
+
localVarQueryParameter['Code'] = code;
|
|
26498
|
+
}
|
|
26499
|
+
|
|
26500
|
+
if (description !== undefined) {
|
|
26501
|
+
localVarQueryParameter['Description'] = description;
|
|
26502
|
+
}
|
|
26503
|
+
|
|
26504
|
+
if (page !== undefined) {
|
|
26505
|
+
localVarQueryParameter['page'] = page;
|
|
26506
|
+
}
|
|
26507
|
+
|
|
26508
|
+
if (limit !== undefined) {
|
|
26509
|
+
localVarQueryParameter['limit'] = limit;
|
|
26510
|
+
}
|
|
26511
|
+
|
|
26512
|
+
if (lastRetrieved !== undefined) {
|
|
26513
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
26514
|
+
(lastRetrieved as any).toISOString() :
|
|
26515
|
+
lastRetrieved;
|
|
26516
|
+
}
|
|
26517
|
+
|
|
26518
|
+
|
|
26519
|
+
|
|
26520
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26521
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26522
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26523
|
+
|
|
26524
|
+
return {
|
|
26525
|
+
url: toPathString(localVarUrlObj),
|
|
26526
|
+
options: localVarRequestOptions,
|
|
26527
|
+
};
|
|
26528
|
+
},
|
|
26529
|
+
/**
|
|
26530
|
+
*
|
|
26531
|
+
* @summary Get Language.
|
|
26532
|
+
* @param {string} id
|
|
26533
|
+
* @param {*} [options] Override http request option.
|
|
26534
|
+
* @throws {RequiredError}
|
|
26535
|
+
*/
|
|
26536
|
+
apiV1LanguagesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26537
|
+
// verify required parameter 'id' is not null or undefined
|
|
26538
|
+
assertParamExists('apiV1LanguagesIdGet', 'id', id)
|
|
26539
|
+
const localVarPath = `/api/v1/languages/{id}`
|
|
26540
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
26541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26542
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26543
|
+
let baseOptions;
|
|
26544
|
+
if (configuration) {
|
|
26545
|
+
baseOptions = configuration.baseOptions;
|
|
26546
|
+
}
|
|
26547
|
+
|
|
26548
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26549
|
+
const localVarHeaderParameter = {} as any;
|
|
26550
|
+
const localVarQueryParameter = {} as any;
|
|
26551
|
+
|
|
26552
|
+
// authentication oauth2 required
|
|
26553
|
+
// oauth required
|
|
26554
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26555
|
+
|
|
26556
|
+
|
|
26557
|
+
|
|
26558
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26559
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26560
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26561
|
+
|
|
26562
|
+
return {
|
|
26563
|
+
url: toPathString(localVarUrlObj),
|
|
26564
|
+
options: localVarRequestOptions,
|
|
26565
|
+
};
|
|
26566
|
+
},
|
|
26567
|
+
}
|
|
26568
|
+
};
|
|
26569
|
+
|
|
26570
|
+
/**
|
|
26571
|
+
* LanguagesApi - functional programming interface
|
|
26572
|
+
* @export
|
|
26573
|
+
*/
|
|
26574
|
+
export const LanguagesApiFp = function(configuration?: Configuration) {
|
|
26575
|
+
const localVarAxiosParamCreator = LanguagesApiAxiosParamCreator(configuration)
|
|
26576
|
+
return {
|
|
26577
|
+
/**
|
|
26578
|
+
*
|
|
26579
|
+
* @summary Get Language by code.
|
|
26580
|
+
* @param {string} code
|
|
26581
|
+
* @param {*} [options] Override http request option.
|
|
26582
|
+
* @throws {RequiredError}
|
|
26583
|
+
*/
|
|
26584
|
+
async apiV1LanguagesCodeGet(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LanguageModel>> {
|
|
26585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesCodeGet(code, options);
|
|
26586
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26587
|
+
},
|
|
26588
|
+
/**
|
|
26589
|
+
*
|
|
26590
|
+
* @summary Get all Languages.
|
|
26591
|
+
* @param {string} [id]
|
|
26592
|
+
* @param {string} [name]
|
|
26593
|
+
* @param {string} [code]
|
|
26594
|
+
* @param {string} [description]
|
|
26595
|
+
* @param {number} [page]
|
|
26596
|
+
* @param {number} [limit]
|
|
26597
|
+
* @param {Date} [lastRetrieved]
|
|
26598
|
+
* @param {*} [options] Override http request option.
|
|
26599
|
+
* @throws {RequiredError}
|
|
26600
|
+
*/
|
|
26601
|
+
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>> {
|
|
26602
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options);
|
|
26603
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26604
|
+
},
|
|
26605
|
+
/**
|
|
26606
|
+
*
|
|
26607
|
+
* @summary Get Language.
|
|
26608
|
+
* @param {string} id
|
|
26609
|
+
* @param {*} [options] Override http request option.
|
|
26610
|
+
* @throws {RequiredError}
|
|
26611
|
+
*/
|
|
26612
|
+
async apiV1LanguagesIdGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LanguageModel>> {
|
|
26613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1LanguagesIdGet(id, options);
|
|
26614
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26615
|
+
},
|
|
26616
|
+
}
|
|
26617
|
+
};
|
|
26618
|
+
|
|
26619
|
+
/**
|
|
26620
|
+
* LanguagesApi - factory interface
|
|
26621
|
+
* @export
|
|
26622
|
+
*/
|
|
26623
|
+
export const LanguagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26624
|
+
const localVarFp = LanguagesApiFp(configuration)
|
|
26625
|
+
return {
|
|
26626
|
+
/**
|
|
26627
|
+
*
|
|
26628
|
+
* @summary Get Language by code.
|
|
26629
|
+
* @param {string} code
|
|
26630
|
+
* @param {*} [options] Override http request option.
|
|
26631
|
+
* @throws {RequiredError}
|
|
26632
|
+
*/
|
|
26633
|
+
apiV1LanguagesCodeGet(code: string, options?: any): AxiosPromise<LanguageModel> {
|
|
26634
|
+
return localVarFp.apiV1LanguagesCodeGet(code, options).then((request) => request(axios, basePath));
|
|
26635
|
+
},
|
|
26636
|
+
/**
|
|
26637
|
+
*
|
|
26638
|
+
* @summary Get all Languages.
|
|
26639
|
+
* @param {string} [id]
|
|
26640
|
+
* @param {string} [name]
|
|
26641
|
+
* @param {string} [code]
|
|
26642
|
+
* @param {string} [description]
|
|
26643
|
+
* @param {number} [page]
|
|
26644
|
+
* @param {number} [limit]
|
|
26645
|
+
* @param {Date} [lastRetrieved]
|
|
26646
|
+
* @param {*} [options] Override http request option.
|
|
26647
|
+
* @throws {RequiredError}
|
|
26648
|
+
*/
|
|
26649
|
+
apiV1LanguagesGet(id?: string, name?: string, code?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<LanguagesModel> {
|
|
26650
|
+
return localVarFp.apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
26651
|
+
},
|
|
26652
|
+
/**
|
|
26653
|
+
*
|
|
26654
|
+
* @summary Get Language.
|
|
26655
|
+
* @param {string} id
|
|
26656
|
+
* @param {*} [options] Override http request option.
|
|
26657
|
+
* @throws {RequiredError}
|
|
26658
|
+
*/
|
|
26659
|
+
apiV1LanguagesIdGet(id: string, options?: any): AxiosPromise<LanguageModel> {
|
|
26660
|
+
return localVarFp.apiV1LanguagesIdGet(id, options).then((request) => request(axios, basePath));
|
|
26661
|
+
},
|
|
26662
|
+
};
|
|
26663
|
+
};
|
|
26664
|
+
|
|
26665
|
+
/**
|
|
26666
|
+
* LanguagesApi - object-oriented interface
|
|
26667
|
+
* @export
|
|
26668
|
+
* @class LanguagesApi
|
|
26669
|
+
* @extends {BaseAPI}
|
|
26670
|
+
*/
|
|
26671
|
+
export class LanguagesApi extends BaseAPI {
|
|
26672
|
+
/**
|
|
26673
|
+
*
|
|
26674
|
+
* @summary Get Language by code.
|
|
26675
|
+
* @param {string} code
|
|
26676
|
+
* @param {*} [options] Override http request option.
|
|
26677
|
+
* @throws {RequiredError}
|
|
26678
|
+
* @memberof LanguagesApi
|
|
26679
|
+
*/
|
|
26680
|
+
public apiV1LanguagesCodeGet(code: string, options?: AxiosRequestConfig) {
|
|
26681
|
+
return LanguagesApiFp(this.configuration).apiV1LanguagesCodeGet(code, options).then((request) => request(this.axios, this.basePath));
|
|
26682
|
+
}
|
|
26683
|
+
|
|
26684
|
+
/**
|
|
26685
|
+
*
|
|
26686
|
+
* @summary Get all Languages.
|
|
26687
|
+
* @param {string} [id]
|
|
26688
|
+
* @param {string} [name]
|
|
26689
|
+
* @param {string} [code]
|
|
26690
|
+
* @param {string} [description]
|
|
26691
|
+
* @param {number} [page]
|
|
26692
|
+
* @param {number} [limit]
|
|
26693
|
+
* @param {Date} [lastRetrieved]
|
|
26694
|
+
* @param {*} [options] Override http request option.
|
|
26695
|
+
* @throws {RequiredError}
|
|
26696
|
+
* @memberof LanguagesApi
|
|
26697
|
+
*/
|
|
26698
|
+
public apiV1LanguagesGet(id?: string, name?: string, code?: string, description?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
26699
|
+
return LanguagesApiFp(this.configuration).apiV1LanguagesGet(id, name, code, description, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
26700
|
+
}
|
|
26701
|
+
|
|
26702
|
+
/**
|
|
26703
|
+
*
|
|
26704
|
+
* @summary Get Language.
|
|
26705
|
+
* @param {string} id
|
|
26706
|
+
* @param {*} [options] Override http request option.
|
|
26707
|
+
* @throws {RequiredError}
|
|
26708
|
+
* @memberof LanguagesApi
|
|
26709
|
+
*/
|
|
26710
|
+
public apiV1LanguagesIdGet(id: string, options?: AxiosRequestConfig) {
|
|
26711
|
+
return LanguagesApiFp(this.configuration).apiV1LanguagesIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
26712
|
+
}
|
|
26713
|
+
}
|
|
26714
|
+
|
|
26715
|
+
|
|
26716
|
+
/**
|
|
26717
|
+
* NotificationsApi - axios parameter creator
|
|
26718
|
+
* @export
|
|
26719
|
+
*/
|
|
26720
|
+
export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26721
|
+
return {
|
|
26722
|
+
/**
|
|
26723
|
+
*
|
|
26724
|
+
* @summary Check notification.
|
|
26725
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
26726
|
+
* @param {*} [options] Override http request option.
|
|
26727
|
+
* @throws {RequiredError}
|
|
26728
|
+
*/
|
|
26729
|
+
apiV1NotificationsCheckPost: async (checkNotificationsCommand?: CheckNotificationsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26730
|
+
const localVarPath = `/api/v1/notifications/check`;
|
|
26731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26732
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26733
|
+
let baseOptions;
|
|
26734
|
+
if (configuration) {
|
|
26735
|
+
baseOptions = configuration.baseOptions;
|
|
26736
|
+
}
|
|
26737
|
+
|
|
26738
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
26739
|
+
const localVarHeaderParameter = {} as any;
|
|
26740
|
+
const localVarQueryParameter = {} as any;
|
|
26741
|
+
|
|
26742
|
+
// authentication oauth2 required
|
|
26743
|
+
// oauth required
|
|
26744
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26745
|
+
|
|
26746
|
+
|
|
26747
|
+
|
|
26748
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26749
|
+
|
|
26750
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26751
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26752
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26753
|
+
localVarRequestOptions.data = serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration)
|
|
26754
|
+
|
|
26755
|
+
return {
|
|
26756
|
+
url: toPathString(localVarUrlObj),
|
|
26757
|
+
options: localVarRequestOptions,
|
|
26758
|
+
};
|
|
26759
|
+
},
|
|
26760
|
+
/**
|
|
26761
|
+
*
|
|
26762
|
+
* @summary Get all notifications.
|
|
26763
|
+
* @param {NotificationCode} [notificationCode]
|
|
26764
|
+
* @param {boolean} [unreadCountOnly]
|
|
26765
|
+
* @param {number} [page]
|
|
26766
|
+
* @param {number} [limit]
|
|
26767
|
+
* @param {Date} [lastRetrieved]
|
|
26768
|
+
* @param {*} [options] Override http request option.
|
|
26769
|
+
* @throws {RequiredError}
|
|
26770
|
+
*/
|
|
26771
|
+
apiV1NotificationsGet: async (notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26772
|
+
const localVarPath = `/api/v1/notifications`;
|
|
26773
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26774
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26775
|
+
let baseOptions;
|
|
26776
|
+
if (configuration) {
|
|
26777
|
+
baseOptions = configuration.baseOptions;
|
|
26778
|
+
}
|
|
26779
|
+
|
|
26780
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26781
|
+
const localVarHeaderParameter = {} as any;
|
|
26782
|
+
const localVarQueryParameter = {} as any;
|
|
26783
|
+
|
|
26784
|
+
// authentication oauth2 required
|
|
26785
|
+
// oauth required
|
|
26786
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
26787
|
+
|
|
26788
|
+
if (notificationCode !== undefined) {
|
|
26789
|
+
localVarQueryParameter['NotificationCode'] = notificationCode;
|
|
26790
|
+
}
|
|
26791
|
+
|
|
26792
|
+
if (unreadCountOnly !== undefined) {
|
|
26793
|
+
localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
|
|
26794
|
+
}
|
|
26795
|
+
|
|
26796
|
+
if (page !== undefined) {
|
|
26797
|
+
localVarQueryParameter['page'] = page;
|
|
26798
|
+
}
|
|
26799
|
+
|
|
26800
|
+
if (limit !== undefined) {
|
|
26801
|
+
localVarQueryParameter['limit'] = limit;
|
|
26802
|
+
}
|
|
26803
|
+
|
|
26804
|
+
if (lastRetrieved !== undefined) {
|
|
26805
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
26806
|
+
(lastRetrieved as any).toISOString() :
|
|
26807
|
+
lastRetrieved;
|
|
26808
|
+
}
|
|
26809
|
+
|
|
26810
|
+
|
|
26811
|
+
|
|
26812
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26813
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26814
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26815
|
+
|
|
26816
|
+
return {
|
|
26817
|
+
url: toPathString(localVarUrlObj),
|
|
26818
|
+
options: localVarRequestOptions,
|
|
26819
|
+
};
|
|
26820
|
+
},
|
|
26821
|
+
}
|
|
26822
|
+
};
|
|
26823
|
+
|
|
26824
|
+
/**
|
|
26825
|
+
* NotificationsApi - functional programming interface
|
|
26826
|
+
* @export
|
|
26827
|
+
*/
|
|
26828
|
+
export const NotificationsApiFp = function(configuration?: Configuration) {
|
|
26829
|
+
const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration)
|
|
26830
|
+
return {
|
|
26831
|
+
/**
|
|
26832
|
+
*
|
|
26833
|
+
* @summary Check notification.
|
|
26834
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
26835
|
+
* @param {*} [options] Override http request option.
|
|
26836
|
+
* @throws {RequiredError}
|
|
26837
|
+
*/
|
|
26838
|
+
async apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
26839
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options);
|
|
26840
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26841
|
+
},
|
|
26842
|
+
/**
|
|
26843
|
+
*
|
|
26844
|
+
* @summary Get all notifications.
|
|
26845
|
+
* @param {NotificationCode} [notificationCode]
|
|
26846
|
+
* @param {boolean} [unreadCountOnly]
|
|
26847
|
+
* @param {number} [page]
|
|
26848
|
+
* @param {number} [limit]
|
|
26849
|
+
* @param {Date} [lastRetrieved]
|
|
26850
|
+
* @param {*} [options] Override http request option.
|
|
26851
|
+
* @throws {RequiredError}
|
|
26852
|
+
*/
|
|
26853
|
+
async apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotificationsModel>> {
|
|
26854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options);
|
|
26855
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26856
|
+
},
|
|
26857
|
+
}
|
|
26858
|
+
};
|
|
26859
|
+
|
|
26860
|
+
/**
|
|
26861
|
+
* NotificationsApi - factory interface
|
|
26862
|
+
* @export
|
|
26863
|
+
*/
|
|
26864
|
+
export const NotificationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26865
|
+
const localVarFp = NotificationsApiFp(configuration)
|
|
26866
|
+
return {
|
|
26867
|
+
/**
|
|
26868
|
+
*
|
|
26869
|
+
* @summary Check notification.
|
|
26870
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
26871
|
+
* @param {*} [options] Override http request option.
|
|
26872
|
+
* @throws {RequiredError}
|
|
26873
|
+
*/
|
|
26874
|
+
apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: any): AxiosPromise<boolean> {
|
|
26875
|
+
return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(axios, basePath));
|
|
26876
|
+
},
|
|
26877
|
+
/**
|
|
26878
|
+
*
|
|
26879
|
+
* @summary Get all notifications.
|
|
26880
|
+
* @param {NotificationCode} [notificationCode]
|
|
26881
|
+
* @param {boolean} [unreadCountOnly]
|
|
26882
|
+
* @param {number} [page]
|
|
26883
|
+
* @param {number} [limit]
|
|
26884
|
+
* @param {Date} [lastRetrieved]
|
|
26885
|
+
* @param {*} [options] Override http request option.
|
|
26886
|
+
* @throws {RequiredError}
|
|
26887
|
+
*/
|
|
26888
|
+
apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<NotificationsModel> {
|
|
26889
|
+
return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
26890
|
+
},
|
|
26891
|
+
};
|
|
26892
|
+
};
|
|
26893
|
+
|
|
26894
|
+
/**
|
|
26895
|
+
* NotificationsApi - object-oriented interface
|
|
26896
|
+
* @export
|
|
26897
|
+
* @class NotificationsApi
|
|
26898
|
+
* @extends {BaseAPI}
|
|
26899
|
+
*/
|
|
26900
|
+
export class NotificationsApi extends BaseAPI {
|
|
26901
|
+
/**
|
|
26902
|
+
*
|
|
26903
|
+
* @summary Check notification.
|
|
26904
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
26905
|
+
* @param {*} [options] Override http request option.
|
|
26906
|
+
* @throws {RequiredError}
|
|
26907
|
+
* @memberof NotificationsApi
|
|
26908
|
+
*/
|
|
26909
|
+
public apiV1NotificationsCheckPost(checkNotificationsCommand?: CheckNotificationsCommand, options?: AxiosRequestConfig) {
|
|
26910
|
+
return NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then((request) => request(this.axios, this.basePath));
|
|
26911
|
+
}
|
|
26912
|
+
|
|
26913
|
+
/**
|
|
26914
|
+
*
|
|
26915
|
+
* @summary Get all notifications.
|
|
26916
|
+
* @param {NotificationCode} [notificationCode]
|
|
26917
|
+
* @param {boolean} [unreadCountOnly]
|
|
26918
|
+
* @param {number} [page]
|
|
26919
|
+
* @param {number} [limit]
|
|
26920
|
+
* @param {Date} [lastRetrieved]
|
|
26921
|
+
* @param {*} [options] Override http request option.
|
|
26922
|
+
* @throws {RequiredError}
|
|
26923
|
+
* @memberof NotificationsApi
|
|
26924
|
+
*/
|
|
26925
|
+
public apiV1NotificationsGet(notificationCode?: NotificationCode, unreadCountOnly?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
26926
|
+
return NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
26927
|
+
}
|
|
26928
|
+
}
|
|
26929
|
+
|
|
26930
|
+
|
|
26178
26931
|
/**
|
|
26179
26932
|
* ServicesApi - axios parameter creator
|
|
26180
26933
|
* @export
|