ch-api-client-typescript2 4.1.6 → 4.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts CHANGED
@@ -2301,6 +2301,12 @@ export interface ContributorItemModel {
2301
2301
  * @memberof ContributorItemModel
2302
2302
  */
2303
2303
  'confirmed'?: boolean;
2304
+ /**
2305
+ *
2306
+ * @type {string}
2307
+ * @memberof ContributorItemModel
2308
+ */
2309
+ 'description'?: string | null;
2304
2310
  /**
2305
2311
  *
2306
2312
  * @type {string}
@@ -2392,6 +2398,12 @@ export interface ContributorModel {
2392
2398
  * @memberof ContributorModel
2393
2399
  */
2394
2400
  'confirmed'?: boolean;
2401
+ /**
2402
+ *
2403
+ * @type {string}
2404
+ * @memberof ContributorModel
2405
+ */
2406
+ 'description'?: string | null;
2395
2407
  /**
2396
2408
  *
2397
2409
  * @type {string}
@@ -2446,12 +2458,6 @@ export interface ContributorModel {
2446
2458
  * @memberof ContributorModel
2447
2459
  */
2448
2460
  'auditableEntity'?: AuditableEntity;
2449
- /**
2450
- *
2451
- * @type {string}
2452
- * @memberof ContributorModel
2453
- */
2454
- 'description'?: string | null;
2455
2461
  /**
2456
2462
  *
2457
2463
  * @type {string}
@@ -2911,6 +2917,74 @@ export interface CreateConsultationCommand {
2911
2917
  */
2912
2918
  'isExternal'?: boolean;
2913
2919
  }
2920
+ /**
2921
+ *
2922
+ * @export
2923
+ * @interface CreateDeviceCommand
2924
+ */
2925
+ export interface CreateDeviceCommand {
2926
+ /**
2927
+ *
2928
+ * @type {string}
2929
+ * @memberof CreateDeviceCommand
2930
+ */
2931
+ 'id'?: string;
2932
+ /**
2933
+ *
2934
+ * @type {string}
2935
+ * @memberof CreateDeviceCommand
2936
+ */
2937
+ 'token'?: string | null;
2938
+ /**
2939
+ *
2940
+ * @type {Platform}
2941
+ * @memberof CreateDeviceCommand
2942
+ */
2943
+ 'platform'?: Platform;
2944
+ /**
2945
+ *
2946
+ * @type {Array<string>}
2947
+ * @memberof CreateDeviceCommand
2948
+ */
2949
+ 'tags'?: Array<string> | null;
2950
+ /**
2951
+ *
2952
+ * @type {boolean}
2953
+ * @memberof CreateDeviceCommand
2954
+ */
2955
+ 'appAlert'?: boolean;
2956
+ /**
2957
+ *
2958
+ * @type {boolean}
2959
+ * @memberof CreateDeviceCommand
2960
+ */
2961
+ 'eventAlert'?: boolean;
2962
+ /**
2963
+ *
2964
+ * @type {boolean}
2965
+ * @memberof CreateDeviceCommand
2966
+ */
2967
+ 'noticeAlert'?: boolean;
2968
+ }
2969
+ /**
2970
+ *
2971
+ * @export
2972
+ * @interface CreateDeviceLoginCommand
2973
+ */
2974
+ export interface CreateDeviceLoginCommand {
2975
+ /**
2976
+ *
2977
+ * @type {string}
2978
+ * @memberof CreateDeviceLoginCommand
2979
+ */
2980
+ 'version'?: string | null;
2981
+ /**
2982
+ *
2983
+ * @type {LocationModel}
2984
+ * @memberof CreateDeviceLoginCommand
2985
+ */
2986
+ 'location'?: LocationModel;
2987
+ }
2914
2988
  /**
2915
2989
  *
2916
2990
  * @export
@@ -3705,6 +3779,117 @@ export interface DealsSimpleModel {
3705
3779
  */
3706
3780
  'metaData'?: PagedListMetaData;
3707
3781
  }
3782
+ /**
3783
+ *
3784
+ * @export
3785
+ * @interface DeviceItemModel
3786
+ */
3787
+ export interface DeviceItemModel {
3788
+ /**
3789
+ *
3790
+ * @type {string}
3791
+ * @memberof DeviceItemModel
3792
+ */
3793
+ 'id'?: string;
3794
+ /**
3795
+ *
3796
+ * @type {string}
3797
+ * @memberof DeviceItemModel
3798
+ */
3799
+ 'token'?: string | null;
3800
+ /**
3801
+ *
3802
+ * @type {Platform}
3803
+ * @memberof DeviceItemModel
3804
+ */
3805
+ 'platform'?: Platform;
3806
+ /**
3807
+ *
3808
+ * @type {boolean}
3809
+ * @memberof DeviceItemModel
3810
+ */
3811
+ 'appAlert'?: boolean;
3812
+ /**
3813
+ *
3814
+ * @type {boolean}
3815
+ * @memberof DeviceItemModel
3816
+ */
3817
+ 'eventAlert'?: boolean;
3818
+ /**
3819
+ *
3820
+ * @type {boolean}
3821
+ * @memberof DeviceItemModel
3822
+ */
3823
+ 'noticeAlert'?: boolean;
3824
+ }
3825
+ /**
3826
+ *
3827
+ * @export
3828
+ * @interface DeviceModel
3829
+ */
3830
+ export interface DeviceModel {
3831
+ /**
3832
+ *
3833
+ * @type {string}
3834
+ * @memberof DeviceModel
3835
+ */
3836
+ 'id'?: string;
3837
+ /**
3838
+ *
3839
+ * @type {string}
3840
+ * @memberof DeviceModel
3841
+ */
3842
+ 'token'?: string | null;
3843
+ /**
3844
+ *
3845
+ * @type {Platform}
3846
+ * @memberof DeviceModel
3847
+ */
3848
+ 'platform'?: Platform;
3849
+ /**
3850
+ *
3851
+ * @type {boolean}
3852
+ * @memberof DeviceModel
3853
+ */
3854
+ 'appAlert'?: boolean;
3855
+ /**
3856
+ *
3857
+ * @type {boolean}
3858
+ * @memberof DeviceModel
3859
+ */
3860
+ 'eventAlert'?: boolean;
3861
+ /**
3862
+ *
3863
+ * @type {boolean}
3864
+ * @memberof DeviceModel
3865
+ */
3866
+ 'noticeAlert'?: boolean;
3867
+ /**
3868
+ *
3869
+ * @type {Array<string>}
3870
+ * @memberof DeviceModel
3871
+ */
3872
+ 'tags'?: Array<string> | null;
3873
+ }
3874
+ /**
3875
+ *
3876
+ * @export
3877
+ * @interface DevicesModel
3878
+ */
3879
+ export interface DevicesModel {
3880
+ /**
3881
+ *
3882
+ * @type {Array<DeviceItemModel>}
3883
+ * @memberof DevicesModel
3884
+ */
3885
+ 'items'?: Array<DeviceItemModel> | null;
3886
+ /**
3887
+ *
3888
+ * @type {PagedListMetaData}
3889
+ * @memberof DevicesModel
3890
+ */
3891
+ 'metaData'?: PagedListMetaData;
3892
+ }
3708
3893
  /**
3709
3894
  *
3710
3895
  * @export
@@ -7671,45 +7856,6 @@ export enum Platform {
7671
7856
  Android = 'Android'
7672
7857
  }
7673
7858
 
7674
- /**
7675
- *
7676
- * @export
7677
- * @interface ProblemDetails
7678
- */
7679
- export interface ProblemDetails {
7680
- [key: string]: any | any;
7681
-
7682
- /**
7683
- *
7684
- * @type {string}
7685
- * @memberof ProblemDetails
7686
- */
7687
- 'type'?: string | null;
7688
- /**
7689
- *
7690
- * @type {string}
7691
- * @memberof ProblemDetails
7692
- */
7693
- 'title'?: string | null;
7694
- /**
7695
- *
7696
- * @type {number}
7697
- * @memberof ProblemDetails
7698
- */
7699
- 'status'?: number | null;
7700
- /**
7701
- *
7702
- * @type {string}
7703
- * @memberof ProblemDetails
7704
- */
7705
- 'detail'?: string | null;
7706
- /**
7707
- *
7708
- * @type {string}
7709
- * @memberof ProblemDetails
7710
- */
7711
- 'instance'?: string | null;
7712
- }
7713
7859
  /**
7714
7860
  *
7715
7861
  * @export
@@ -9242,6 +9388,43 @@ export interface UpdateConsultationCommand {
9242
9388
  */
9243
9389
  'timeZone'?: string | null;
9244
9390
  }
9391
+ /**
9392
+ *
9393
+ * @export
9394
+ * @interface UpdateDeviceCommand
9395
+ */
9396
+ export interface UpdateDeviceCommand {
9397
+ /**
9398
+ *
9399
+ * @type {string}
9400
+ * @memberof UpdateDeviceCommand
9401
+ */
9402
+ 'token'?: string | null;
9403
+ /**
9404
+ *
9405
+ * @type {Array<string>}
9406
+ * @memberof UpdateDeviceCommand
9407
+ */
9408
+ 'tags'?: Array<string> | null;
9409
+ /**
9410
+ *
9411
+ * @type {boolean}
9412
+ * @memberof UpdateDeviceCommand
9413
+ */
9414
+ 'appAlert'?: boolean;
9415
+ /**
9416
+ *
9417
+ * @type {boolean}
9418
+ * @memberof UpdateDeviceCommand
9419
+ */
9420
+ 'eventAlert'?: boolean;
9421
+ /**
9422
+ *
9423
+ * @type {boolean}
9424
+ * @memberof UpdateDeviceCommand
9425
+ */
9426
+ 'noticeAlert'?: boolean;
9427
+ }
9245
9428
  /**
9246
9429
  *
9247
9430
  * @export
@@ -15568,6 +15751,551 @@ export class DealsApi extends BaseAPI {
15568
15751
  }
15569
15752
 
15570
15753
 
15754
+ /**
15755
+ * DevicesApi - axios parameter creator
15756
+ * @export
15757
+ */
15758
+ export const DevicesApiAxiosParamCreator = function (configuration?: Configuration) {
15759
+ return {
15760
+ /**
15761
+ *
15762
+ * @summary Get all devices.
15763
+ * @param {string} [id]
15764
+ * @param {string} [token]
15765
+ * @param {Platform} [platform]
15766
+ * @param {boolean} [appAlert]
15767
+ * @param {boolean} [eventAlert]
15768
+ * @param {boolean} [noticeAlert]
15769
+ * @param {number} [page]
15770
+ * @param {number} [limit]
15771
+ * @param {Date} [lastRetrieved]
15772
+ * @param {*} [options] Override http request option.
15773
+ * @throws {RequiredError}
15774
+ */
15775
+ apiV2DevicesGet: async (id?: string, token?: string, platform?: Platform, appAlert?: boolean, eventAlert?: boolean, noticeAlert?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15776
+ const localVarPath = `/api/v2/devices`;
15777
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15778
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15779
+ let baseOptions;
15780
+ if (configuration) {
15781
+ baseOptions = configuration.baseOptions;
15782
+ }
15783
+
15784
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15785
+ const localVarHeaderParameter = {} as any;
15786
+ const localVarQueryParameter = {} as any;
15787
+
15788
+ // authentication oauth2 required
15789
+ // oauth required
15790
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
15791
+
15792
+ if (id !== undefined) {
15793
+ localVarQueryParameter['Id'] = id;
15794
+ }
15795
+
15796
+ if (token !== undefined) {
15797
+ localVarQueryParameter['Token'] = token;
15798
+ }
15799
+
15800
+ if (platform !== undefined) {
15801
+ localVarQueryParameter['Platform'] = platform;
15802
+ }
15803
+
15804
+ if (appAlert !== undefined) {
15805
+ localVarQueryParameter['AppAlert'] = appAlert;
15806
+ }
15807
+
15808
+ if (eventAlert !== undefined) {
15809
+ localVarQueryParameter['EventAlert'] = eventAlert;
15810
+ }
15811
+
15812
+ if (noticeAlert !== undefined) {
15813
+ localVarQueryParameter['NoticeAlert'] = noticeAlert;
15814
+ }
15815
+
15816
+ if (page !== undefined) {
15817
+ localVarQueryParameter['page'] = page;
15818
+ }
15819
+
15820
+ if (limit !== undefined) {
15821
+ localVarQueryParameter['limit'] = limit;
15822
+ }
15823
+
15824
+ if (lastRetrieved !== undefined) {
15825
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
15826
+ (lastRetrieved as any).toISOString() :
15827
+ lastRetrieved;
15828
+ }
15829
+
15830
+
15831
+
15832
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15833
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15834
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15835
+
15836
+ return {
15837
+ url: toPathString(localVarUrlObj),
15838
+ options: localVarRequestOptions,
15839
+ };
15840
+ },
15841
+ /**
15842
+ *
15843
+ * @summary Delete device.
15844
+ * @param {string} id
15845
+ * @param {*} [options] Override http request option.
15846
+ * @throws {RequiredError}
15847
+ */
15848
+ apiV2DevicesIdDelete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15849
+ // verify required parameter 'id' is not null or undefined
15850
+ assertParamExists('apiV2DevicesIdDelete', 'id', id)
15851
+ const localVarPath = `/api/v2/devices/{id}`
15852
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15853
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15854
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15855
+ let baseOptions;
15856
+ if (configuration) {
15857
+ baseOptions = configuration.baseOptions;
15858
+ }
15859
+
15860
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
15861
+ const localVarHeaderParameter = {} as any;
15862
+ const localVarQueryParameter = {} as any;
15863
+
15864
+ // authentication oauth2 required
15865
+ // oauth required
15866
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
15867
+
15868
+
15869
+
15870
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15871
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15872
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15873
+
15874
+ return {
15875
+ url: toPathString(localVarUrlObj),
15876
+ options: localVarRequestOptions,
15877
+ };
15878
+ },
15879
+ /**
15880
+ *
15881
+ * @summary Get device.
15882
+ * @param {string} id
15883
+ * @param {*} [options] Override http request option.
15884
+ * @throws {RequiredError}
15885
+ */
15886
+ apiV2DevicesIdGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15887
+ // verify required parameter 'id' is not null or undefined
15888
+ assertParamExists('apiV2DevicesIdGet', 'id', id)
15889
+ const localVarPath = `/api/v2/devices/{id}`
15890
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15891
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15892
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15893
+ let baseOptions;
15894
+ if (configuration) {
15895
+ baseOptions = configuration.baseOptions;
15896
+ }
15897
+
15898
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15899
+ const localVarHeaderParameter = {} as any;
15900
+ const localVarQueryParameter = {} as any;
15901
+
15902
+ // authentication oauth2 required
15903
+ // oauth required
15904
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
15905
+
15906
+
15907
+
15908
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15909
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15910
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15911
+
15912
+ return {
15913
+ url: toPathString(localVarUrlObj),
15914
+ options: localVarRequestOptions,
15915
+ };
15916
+ },
15917
+ /**
15918
+ *
15919
+ * @summary Create device login.
15920
+ * @param {string} id
15921
+ * @param {CreateDeviceLoginCommand} [createDeviceLoginCommand]
15922
+ * @param {*} [options] Override http request option.
15923
+ * @throws {RequiredError}
15924
+ */
15925
+ apiV2DevicesIdLoginsPost: async (id: string, createDeviceLoginCommand?: CreateDeviceLoginCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15926
+ // verify required parameter 'id' is not null or undefined
15927
+ assertParamExists('apiV2DevicesIdLoginsPost', 'id', id)
15928
+ const localVarPath = `/api/v2/devices/{id}/logins`
15929
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15930
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15931
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15932
+ let baseOptions;
15933
+ if (configuration) {
15934
+ baseOptions = configuration.baseOptions;
15935
+ }
15936
+
15937
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15938
+ const localVarHeaderParameter = {} as any;
15939
+ const localVarQueryParameter = {} as any;
15940
+
15941
+ // authentication oauth2 required
15942
+ // oauth required
15943
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
15944
+
15945
+
15946
+
15947
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15948
+
15949
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15950
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15951
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15952
+ localVarRequestOptions.data = serializeDataIfNeeded(createDeviceLoginCommand, localVarRequestOptions, configuration)
15953
+
15954
+ return {
15955
+ url: toPathString(localVarUrlObj),
15956
+ options: localVarRequestOptions,
15957
+ };
15958
+ },
15959
+ /**
15960
+ *
15961
+ * @summary Update device.
15962
+ * @param {string} id
15963
+ * @param {UpdateDeviceCommand} [updateDeviceCommand]
15964
+ * @param {*} [options] Override http request option.
15965
+ * @throws {RequiredError}
15966
+ */
15967
+ apiV2DevicesIdPut: async (id: string, updateDeviceCommand?: UpdateDeviceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15968
+ // verify required parameter 'id' is not null or undefined
15969
+ assertParamExists('apiV2DevicesIdPut', 'id', id)
15970
+ const localVarPath = `/api/v2/devices/{id}`
15971
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15972
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15973
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15974
+ let baseOptions;
15975
+ if (configuration) {
15976
+ baseOptions = configuration.baseOptions;
15977
+ }
15978
+
15979
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15980
+ const localVarHeaderParameter = {} as any;
15981
+ const localVarQueryParameter = {} as any;
15982
+
15983
+ // authentication oauth2 required
15984
+ // oauth required
15985
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
15986
+
15987
+
15988
+
15989
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15990
+
15991
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15993
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15994
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDeviceCommand, localVarRequestOptions, configuration)
15995
+
15996
+ return {
15997
+ url: toPathString(localVarUrlObj),
15998
+ options: localVarRequestOptions,
15999
+ };
16000
+ },
16001
+ /**
16002
+ *
16003
+ * @summary Create device.
16004
+ * @param {CreateDeviceCommand} [createDeviceCommand]
16005
+ * @param {*} [options] Override http request option.
16006
+ * @throws {RequiredError}
16007
+ */
16008
+ apiV2DevicesPost: async (createDeviceCommand?: CreateDeviceCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
16009
+ const localVarPath = `/api/v2/devices`;
16010
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16011
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16012
+ let baseOptions;
16013
+ if (configuration) {
16014
+ baseOptions = configuration.baseOptions;
16015
+ }
16016
+
16017
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16018
+ const localVarHeaderParameter = {} as any;
16019
+ const localVarQueryParameter = {} as any;
16020
+
16021
+ // authentication oauth2 required
16022
+ // oauth required
16023
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
16024
+
16025
+
16026
+
16027
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16028
+
16029
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16030
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16031
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16032
+ localVarRequestOptions.data = serializeDataIfNeeded(createDeviceCommand, localVarRequestOptions, configuration)
16033
+
16034
+ return {
16035
+ url: toPathString(localVarUrlObj),
16036
+ options: localVarRequestOptions,
16037
+ };
16038
+ },
16039
+ }
16040
+ };
16041
+
16042
+ /**
16043
+ * DevicesApi - functional programming interface
16044
+ * @export
16045
+ */
16046
+ export const DevicesApiFp = function(configuration?: Configuration) {
16047
+ const localVarAxiosParamCreator = DevicesApiAxiosParamCreator(configuration)
16048
+ return {
16049
+ /**
16050
+ *
16051
+ * @summary Get all devices.
16052
+ * @param {string} [id]
16053
+ * @param {string} [token]
16054
+ * @param {Platform} [platform]
16055
+ * @param {boolean} [appAlert]
16056
+ * @param {boolean} [eventAlert]
16057
+ * @param {boolean} [noticeAlert]
16058
+ * @param {number} [page]
16059
+ * @param {number} [limit]
16060
+ * @param {Date} [lastRetrieved]
16061
+ * @param {*} [options] Override http request option.
16062
+ * @throws {RequiredError}
16063
+ */
16064
+ async apiV2DevicesGet(id?: string, token?: string, platform?: Platform, appAlert?: boolean, eventAlert?: boolean, noticeAlert?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DevicesModel>> {
16065
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DevicesGet(id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options);
16066
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
16067
+ },
16068
+ /**
16069
+ *
16070
+ * @summary Delete device.
16071
+ * @param {string} id
16072
+ * @param {*} [options] Override http request option.
16073
+ * @throws {RequiredError}
16074
+ */
16075
+ async apiV2DevicesIdDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
16076
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DevicesIdDelete(id, options);
16077
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
16078
+ },
16079
+ /**
16080
+ *
16081
+ * @summary Get device.
16082
+ * @param {string} id
16083
+ * @param {*} [options] Override http request option.
16084
+ * @throws {RequiredError}
16085
+ */
16086
+ async apiV2DevicesIdGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceModel>> {
16087
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DevicesIdGet(id, options);
16088
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
16089
+ },
16090
+ /**
16091
+ *
16092
+ * @summary Create device login.
16093
+ * @param {string} id
16094
+ * @param {CreateDeviceLoginCommand} [createDeviceLoginCommand]
16095
+ * @param {*} [options] Override http request option.
16096
+ * @throws {RequiredError}
16097
+ */
16098
+ async apiV2DevicesIdLoginsPost(id: string, createDeviceLoginCommand?: CreateDeviceLoginCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
16099
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DevicesIdLoginsPost(id, createDeviceLoginCommand, options);
16100
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
16101
+ },
16102
+ /**
16103
+ *
16104
+ * @summary Update device.
16105
+ * @param {string} id
16106
+ * @param {UpdateDeviceCommand} [updateDeviceCommand]
16107
+ * @param {*} [options] Override http request option.
16108
+ * @throws {RequiredError}
16109
+ */
16110
+ async apiV2DevicesIdPut(id: string, updateDeviceCommand?: UpdateDeviceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
16111
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DevicesIdPut(id, updateDeviceCommand, options);
16112
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
16113
+ },
16114
+ /**
16115
+ *
16116
+ * @summary Create device.
16117
+ * @param {CreateDeviceCommand} [createDeviceCommand]
16118
+ * @param {*} [options] Override http request option.
16119
+ * @throws {RequiredError}
16120
+ */
16121
+ async apiV2DevicesPost(createDeviceCommand?: CreateDeviceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceModel>> {
16122
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DevicesPost(createDeviceCommand, options);
16123
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
16124
+ },
16125
+ }
16126
+ };
16127
+
16128
+ /**
16129
+ * DevicesApi - factory interface
16130
+ * @export
16131
+ */
16132
+ export const DevicesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16133
+ const localVarFp = DevicesApiFp(configuration)
16134
+ return {
16135
+ /**
16136
+ *
16137
+ * @summary Get all devices.
16138
+ * @param {string} [id]
16139
+ * @param {string} [token]
16140
+ * @param {Platform} [platform]
16141
+ * @param {boolean} [appAlert]
16142
+ * @param {boolean} [eventAlert]
16143
+ * @param {boolean} [noticeAlert]
16144
+ * @param {number} [page]
16145
+ * @param {number} [limit]
16146
+ * @param {Date} [lastRetrieved]
16147
+ * @param {*} [options] Override http request option.
16148
+ * @throws {RequiredError}
16149
+ */
16150
+ apiV2DevicesGet(id?: string, token?: string, platform?: Platform, appAlert?: boolean, eventAlert?: boolean, noticeAlert?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DevicesModel> {
16151
+ return localVarFp.apiV2DevicesGet(id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
16152
+ },
16153
+ /**
16154
+ *
16155
+ * @summary Delete device.
16156
+ * @param {string} id
16157
+ * @param {*} [options] Override http request option.
16158
+ * @throws {RequiredError}
16159
+ */
16160
+ apiV2DevicesIdDelete(id: string, options?: any): AxiosPromise<boolean> {
16161
+ return localVarFp.apiV2DevicesIdDelete(id, options).then((request) => request(axios, basePath));
16162
+ },
16163
+ /**
16164
+ *
16165
+ * @summary Get device.
16166
+ * @param {string} id
16167
+ * @param {*} [options] Override http request option.
16168
+ * @throws {RequiredError}
16169
+ */
16170
+ apiV2DevicesIdGet(id: string, options?: any): AxiosPromise<DeviceModel> {
16171
+ return localVarFp.apiV2DevicesIdGet(id, options).then((request) => request(axios, basePath));
16172
+ },
16173
+ /**
16174
+ *
16175
+ * @summary Create device login.
16176
+ * @param {string} id
16177
+ * @param {CreateDeviceLoginCommand} [createDeviceLoginCommand]
16178
+ * @param {*} [options] Override http request option.
16179
+ * @throws {RequiredError}
16180
+ */
16181
+ apiV2DevicesIdLoginsPost(id: string, createDeviceLoginCommand?: CreateDeviceLoginCommand, options?: any): AxiosPromise<string> {
16182
+ return localVarFp.apiV2DevicesIdLoginsPost(id, createDeviceLoginCommand, options).then((request) => request(axios, basePath));
16183
+ },
16184
+ /**
16185
+ *
16186
+ * @summary Update device.
16187
+ * @param {string} id
16188
+ * @param {UpdateDeviceCommand} [updateDeviceCommand]
16189
+ * @param {*} [options] Override http request option.
16190
+ * @throws {RequiredError}
16191
+ */
16192
+ apiV2DevicesIdPut(id: string, updateDeviceCommand?: UpdateDeviceCommand, options?: any): AxiosPromise<boolean> {
16193
+ return localVarFp.apiV2DevicesIdPut(id, updateDeviceCommand, options).then((request) => request(axios, basePath));
16194
+ },
16195
+ /**
16196
+ *
16197
+ * @summary Create device.
16198
+ * @param {CreateDeviceCommand} [createDeviceCommand]
16199
+ * @param {*} [options] Override http request option.
16200
+ * @throws {RequiredError}
16201
+ */
16202
+ apiV2DevicesPost(createDeviceCommand?: CreateDeviceCommand, options?: any): AxiosPromise<DeviceModel> {
16203
+ return localVarFp.apiV2DevicesPost(createDeviceCommand, options).then((request) => request(axios, basePath));
16204
+ },
16205
+ };
16206
+ };
16207
+
16208
+ /**
16209
+ * DevicesApi - object-oriented interface
16210
+ * @export
16211
+ * @class DevicesApi
16212
+ * @extends {BaseAPI}
16213
+ */
16214
+ export class DevicesApi extends BaseAPI {
16215
+ /**
16216
+ *
16217
+ * @summary Get all devices.
16218
+ * @param {string} [id]
16219
+ * @param {string} [token]
16220
+ * @param {Platform} [platform]
16221
+ * @param {boolean} [appAlert]
16222
+ * @param {boolean} [eventAlert]
16223
+ * @param {boolean} [noticeAlert]
16224
+ * @param {number} [page]
16225
+ * @param {number} [limit]
16226
+ * @param {Date} [lastRetrieved]
16227
+ * @param {*} [options] Override http request option.
16228
+ * @throws {RequiredError}
16229
+ * @memberof DevicesApi
16230
+ */
16231
+ public apiV2DevicesGet(id?: string, token?: string, platform?: Platform, appAlert?: boolean, eventAlert?: boolean, noticeAlert?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
16232
+ return DevicesApiFp(this.configuration).apiV2DevicesGet(id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
16233
+ }
16234
+
16235
+ /**
16236
+ *
16237
+ * @summary Delete device.
16238
+ * @param {string} id
16239
+ * @param {*} [options] Override http request option.
16240
+ * @throws {RequiredError}
16241
+ * @memberof DevicesApi
16242
+ */
16243
+ public apiV2DevicesIdDelete(id: string, options?: AxiosRequestConfig) {
16244
+ return DevicesApiFp(this.configuration).apiV2DevicesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
16245
+ }
16246
+
16247
+ /**
16248
+ *
16249
+ * @summary Get device.
16250
+ * @param {string} id
16251
+ * @param {*} [options] Override http request option.
16252
+ * @throws {RequiredError}
16253
+ * @memberof DevicesApi
16254
+ */
16255
+ public apiV2DevicesIdGet(id: string, options?: AxiosRequestConfig) {
16256
+ return DevicesApiFp(this.configuration).apiV2DevicesIdGet(id, options).then((request) => request(this.axios, this.basePath));
16257
+ }
16258
+
16259
+ /**
16260
+ *
16261
+ * @summary Create device login.
16262
+ * @param {string} id
16263
+ * @param {CreateDeviceLoginCommand} [createDeviceLoginCommand]
16264
+ * @param {*} [options] Override http request option.
16265
+ * @throws {RequiredError}
16266
+ * @memberof DevicesApi
16267
+ */
16268
+ public apiV2DevicesIdLoginsPost(id: string, createDeviceLoginCommand?: CreateDeviceLoginCommand, options?: AxiosRequestConfig) {
16269
+ return DevicesApiFp(this.configuration).apiV2DevicesIdLoginsPost(id, createDeviceLoginCommand, options).then((request) => request(this.axios, this.basePath));
16270
+ }
16271
+
16272
+ /**
16273
+ *
16274
+ * @summary Update device.
16275
+ * @param {string} id
16276
+ * @param {UpdateDeviceCommand} [updateDeviceCommand]
16277
+ * @param {*} [options] Override http request option.
16278
+ * @throws {RequiredError}
16279
+ * @memberof DevicesApi
16280
+ */
16281
+ public apiV2DevicesIdPut(id: string, updateDeviceCommand?: UpdateDeviceCommand, options?: AxiosRequestConfig) {
16282
+ return DevicesApiFp(this.configuration).apiV2DevicesIdPut(id, updateDeviceCommand, options).then((request) => request(this.axios, this.basePath));
16283
+ }
16284
+
16285
+ /**
16286
+ *
16287
+ * @summary Create device.
16288
+ * @param {CreateDeviceCommand} [createDeviceCommand]
16289
+ * @param {*} [options] Override http request option.
16290
+ * @throws {RequiredError}
16291
+ * @memberof DevicesApi
16292
+ */
16293
+ public apiV2DevicesPost(createDeviceCommand?: CreateDeviceCommand, options?: AxiosRequestConfig) {
16294
+ return DevicesApiFp(this.configuration).apiV2DevicesPost(createDeviceCommand, options).then((request) => request(this.axios, this.basePath));
16295
+ }
16296
+ }
16297
+
16298
+
15571
16299
  /**
15572
16300
  * DoctorAffiliationsApi - axios parameter creator
15573
16301
  * @export