ch-api-client-typescript2 4.1.1 → 4.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/src/api.ts CHANGED
@@ -322,6 +322,37 @@ export interface AdminMessageModel {
322
322
  */
323
323
  'updated_at'?: number;
324
324
  }
325
+ /**
326
+ *
327
+ * @export
328
+ * @interface AppVersionModel
329
+ */
330
+ export interface AppVersionModel {
331
+ /**
332
+ *
333
+ * @type {Platform}
334
+ * @memberof AppVersionModel
335
+ */
336
+ 'platform'?: Platform;
337
+ /**
338
+ *
339
+ * @type {string}
340
+ * @memberof AppVersionModel
341
+ */
342
+ 'latestVersion'?: string | null;
343
+ /**
344
+ *
345
+ * @type {string}
346
+ * @memberof AppVersionModel
347
+ */
348
+ 'minimumVersion'?: string | null;
349
+ /**
350
+ *
351
+ * @type {Date}
352
+ * @memberof AppVersionModel
353
+ */
354
+ 'committedDate'?: Date;
355
+ }
325
356
  /**
326
357
  *
327
358
  * @export
@@ -7628,6 +7659,18 @@ export interface PlansModel {
7628
7659
  */
7629
7660
  'metaData'?: PagedListMetaData;
7630
7661
  }
7662
+ /**
7663
+ *
7664
+ * @export
7665
+ * @enum {string}
7666
+ */
7667
+
7668
+ export enum Platform {
7669
+ Web = 'Web',
7670
+ IOs = 'iOS',
7671
+ Android = 'Android'
7672
+ }
7673
+
7631
7674
  /**
7632
7675
  *
7633
7676
  * @export
@@ -8124,6 +8167,12 @@ export interface ServiceReviewItemModel {
8124
8167
  * @memberof ServiceReviewItemModel
8125
8168
  */
8126
8169
  'serviceSlug'?: string | null;
8170
+ /**
8171
+ *
8172
+ * @type {string}
8173
+ * @memberof ServiceReviewItemModel
8174
+ */
8175
+ 'hospitalId'?: string;
8127
8176
  /**
8128
8177
  *
8129
8178
  * @type {string}
@@ -8251,6 +8300,12 @@ export interface ServiceReviewModel {
8251
8300
  * @memberof ServiceReviewModel
8252
8301
  */
8253
8302
  'serviceSlug'?: string | null;
8303
+ /**
8304
+ *
8305
+ * @type {string}
8306
+ * @memberof ServiceReviewModel
8307
+ */
8308
+ 'hospitalId'?: string;
8254
8309
  /**
8255
8310
  *
8256
8311
  * @type {string}
@@ -10295,6 +10350,107 @@ export class AccreditationsApi extends BaseAPI {
10295
10350
  }
10296
10351
 
10297
10352
 
10353
+ /**
10354
+ * AppVersionApi - axios parameter creator
10355
+ * @export
10356
+ */
10357
+ export const AppVersionApiAxiosParamCreator = function (configuration?: Configuration) {
10358
+ return {
10359
+ /**
10360
+ *
10361
+ * @param {Platform} platform
10362
+ * @param {*} [options] Override http request option.
10363
+ * @throws {RequiredError}
10364
+ */
10365
+ apiV2AppversionPlatformGet: async (platform: Platform, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10366
+ // verify required parameter 'platform' is not null or undefined
10367
+ assertParamExists('apiV2AppversionPlatformGet', 'platform', platform)
10368
+ const localVarPath = `/api/v2/appversion/{platform}`
10369
+ .replace(`{${"platform"}}`, encodeURIComponent(String(platform)));
10370
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10371
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10372
+ let baseOptions;
10373
+ if (configuration) {
10374
+ baseOptions = configuration.baseOptions;
10375
+ }
10376
+
10377
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10378
+ const localVarHeaderParameter = {} as any;
10379
+ const localVarQueryParameter = {} as any;
10380
+
10381
+
10382
+
10383
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10384
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10385
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10386
+
10387
+ return {
10388
+ url: toPathString(localVarUrlObj),
10389
+ options: localVarRequestOptions,
10390
+ };
10391
+ },
10392
+ }
10393
+ };
10394
+
10395
+ /**
10396
+ * AppVersionApi - functional programming interface
10397
+ * @export
10398
+ */
10399
+ export const AppVersionApiFp = function(configuration?: Configuration) {
10400
+ const localVarAxiosParamCreator = AppVersionApiAxiosParamCreator(configuration)
10401
+ return {
10402
+ /**
10403
+ *
10404
+ * @param {Platform} platform
10405
+ * @param {*} [options] Override http request option.
10406
+ * @throws {RequiredError}
10407
+ */
10408
+ async apiV2AppversionPlatformGet(platform: Platform, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppVersionModel>> {
10409
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppversionPlatformGet(platform, options);
10410
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10411
+ },
10412
+ }
10413
+ };
10414
+
10415
+ /**
10416
+ * AppVersionApi - factory interface
10417
+ * @export
10418
+ */
10419
+ export const AppVersionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
10420
+ const localVarFp = AppVersionApiFp(configuration)
10421
+ return {
10422
+ /**
10423
+ *
10424
+ * @param {Platform} platform
10425
+ * @param {*} [options] Override http request option.
10426
+ * @throws {RequiredError}
10427
+ */
10428
+ apiV2AppversionPlatformGet(platform: Platform, options?: any): AxiosPromise<AppVersionModel> {
10429
+ return localVarFp.apiV2AppversionPlatformGet(platform, options).then((request) => request(axios, basePath));
10430
+ },
10431
+ };
10432
+ };
10433
+
10434
+ /**
10435
+ * AppVersionApi - object-oriented interface
10436
+ * @export
10437
+ * @class AppVersionApi
10438
+ * @extends {BaseAPI}
10439
+ */
10440
+ export class AppVersionApi extends BaseAPI {
10441
+ /**
10442
+ *
10443
+ * @param {Platform} platform
10444
+ * @param {*} [options] Override http request option.
10445
+ * @throws {RequiredError}
10446
+ * @memberof AppVersionApi
10447
+ */
10448
+ public apiV2AppversionPlatformGet(platform: Platform, options?: AxiosRequestConfig) {
10449
+ return AppVersionApiFp(this.configuration).apiV2AppversionPlatformGet(platform, options).then((request) => request(this.axios, this.basePath));
10450
+ }
10451
+ }
10452
+
10453
+
10298
10454
  /**
10299
10455
  * ArticlesApi - axios parameter creator
10300
10456
  * @export
@@ -18695,10 +18851,11 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18695
18851
  *
18696
18852
  * @param {string} dealId
18697
18853
  * @param {string} [hospitalId]
18854
+ * @param {boolean} [isExternal]
18698
18855
  * @param {*} [options] Override http request option.
18699
18856
  * @throws {RequiredError}
18700
18857
  */
18701
- apiV2GroupchannelsDealDealIdGet: async (dealId: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18858
+ apiV2GroupchannelsDealDealIdGet: async (dealId: string, hospitalId?: string, isExternal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18702
18859
  // verify required parameter 'dealId' is not null or undefined
18703
18860
  assertParamExists('apiV2GroupchannelsDealDealIdGet', 'dealId', dealId)
18704
18861
  const localVarPath = `/api/v2/groupchannels/deal/{dealId}`
@@ -18722,6 +18879,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18722
18879
  localVarQueryParameter['hospitalId'] = hospitalId;
18723
18880
  }
18724
18881
 
18882
+ if (isExternal !== undefined) {
18883
+ localVarQueryParameter['isExternal'] = isExternal;
18884
+ }
18885
+
18725
18886
 
18726
18887
 
18727
18888
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18737,10 +18898,11 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18737
18898
  *
18738
18899
  * @param {string} doctorId
18739
18900
  * @param {string} [hospitalId]
18901
+ * @param {boolean} [isExternal]
18740
18902
  * @param {*} [options] Override http request option.
18741
18903
  * @throws {RequiredError}
18742
18904
  */
18743
- apiV2GroupchannelsDoctorDoctorIdGet: async (doctorId: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18905
+ apiV2GroupchannelsDoctorDoctorIdGet: async (doctorId: string, hospitalId?: string, isExternal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18744
18906
  // verify required parameter 'doctorId' is not null or undefined
18745
18907
  assertParamExists('apiV2GroupchannelsDoctorDoctorIdGet', 'doctorId', doctorId)
18746
18908
  const localVarPath = `/api/v2/groupchannels/doctor/{doctorId}`
@@ -18764,6 +18926,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18764
18926
  localVarQueryParameter['hospitalId'] = hospitalId;
18765
18927
  }
18766
18928
 
18929
+ if (isExternal !== undefined) {
18930
+ localVarQueryParameter['isExternal'] = isExternal;
18931
+ }
18932
+
18767
18933
 
18768
18934
 
18769
18935
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18778,10 +18944,11 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18778
18944
  /**
18779
18945
  *
18780
18946
  * @param {string} hospitalId
18947
+ * @param {boolean} [isExternal]
18781
18948
  * @param {*} [options] Override http request option.
18782
18949
  * @throws {RequiredError}
18783
18950
  */
18784
- apiV2GroupchannelsHospitalHospitalIdGet: async (hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18951
+ apiV2GroupchannelsHospitalHospitalIdGet: async (hospitalId: string, isExternal?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18785
18952
  // verify required parameter 'hospitalId' is not null or undefined
18786
18953
  assertParamExists('apiV2GroupchannelsHospitalHospitalIdGet', 'hospitalId', hospitalId)
18787
18954
  const localVarPath = `/api/v2/groupchannels/hospital/{hospitalId}`
@@ -18801,6 +18968,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18801
18968
  // oauth required
18802
18969
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
18803
18970
 
18971
+ if (isExternal !== undefined) {
18972
+ localVarQueryParameter['isExternal'] = isExternal;
18973
+ }
18974
+
18804
18975
 
18805
18976
 
18806
18977
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18837,32 +19008,35 @@ export const GroupChannelsApiFp = function(configuration?: Configuration) {
18837
19008
  *
18838
19009
  * @param {string} dealId
18839
19010
  * @param {string} [hospitalId]
19011
+ * @param {boolean} [isExternal]
18840
19012
  * @param {*} [options] Override http request option.
18841
19013
  * @throws {RequiredError}
18842
19014
  */
18843
- async apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18844
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options);
19015
+ async apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, isExternal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
19016
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, isExternal, options);
18845
19017
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18846
19018
  },
18847
19019
  /**
18848
19020
  *
18849
19021
  * @param {string} doctorId
18850
19022
  * @param {string} [hospitalId]
19023
+ * @param {boolean} [isExternal]
18851
19024
  * @param {*} [options] Override http request option.
18852
19025
  * @throws {RequiredError}
18853
19026
  */
18854
- async apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18855
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options);
19027
+ async apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, isExternal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
19028
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, isExternal, options);
18856
19029
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18857
19030
  },
18858
19031
  /**
18859
19032
  *
18860
19033
  * @param {string} hospitalId
19034
+ * @param {boolean} [isExternal]
18861
19035
  * @param {*} [options] Override http request option.
18862
19036
  * @throws {RequiredError}
18863
19037
  */
18864
- async apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18865
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options);
19038
+ async apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, isExternal?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
19039
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, isExternal, options);
18866
19040
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18867
19041
  },
18868
19042
  }
@@ -18889,30 +19063,33 @@ export const GroupChannelsApiFactory = function (configuration?: Configuration,
18889
19063
  *
18890
19064
  * @param {string} dealId
18891
19065
  * @param {string} [hospitalId]
19066
+ * @param {boolean} [isExternal]
18892
19067
  * @param {*} [options] Override http request option.
18893
19068
  * @throws {RequiredError}
18894
19069
  */
18895
- apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18896
- return localVarFp.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then((request) => request(axios, basePath));
19070
+ apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, isExternal?: boolean, options?: any): AxiosPromise<string> {
19071
+ return localVarFp.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, isExternal, options).then((request) => request(axios, basePath));
18897
19072
  },
18898
19073
  /**
18899
19074
  *
18900
19075
  * @param {string} doctorId
18901
19076
  * @param {string} [hospitalId]
19077
+ * @param {boolean} [isExternal]
18902
19078
  * @param {*} [options] Override http request option.
18903
19079
  * @throws {RequiredError}
18904
19080
  */
18905
- apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18906
- return localVarFp.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then((request) => request(axios, basePath));
19081
+ apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, isExternal?: boolean, options?: any): AxiosPromise<string> {
19082
+ return localVarFp.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, isExternal, options).then((request) => request(axios, basePath));
18907
19083
  },
18908
19084
  /**
18909
19085
  *
18910
19086
  * @param {string} hospitalId
19087
+ * @param {boolean} [isExternal]
18911
19088
  * @param {*} [options] Override http request option.
18912
19089
  * @throws {RequiredError}
18913
19090
  */
18914
- apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18915
- return localVarFp.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(axios, basePath));
19091
+ apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, isExternal?: boolean, options?: any): AxiosPromise<string> {
19092
+ return localVarFp.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, isExternal, options).then((request) => request(axios, basePath));
18916
19093
  },
18917
19094
  };
18918
19095
  };
@@ -18940,35 +19117,38 @@ export class GroupChannelsApi extends BaseAPI {
18940
19117
  *
18941
19118
  * @param {string} dealId
18942
19119
  * @param {string} [hospitalId]
19120
+ * @param {boolean} [isExternal]
18943
19121
  * @param {*} [options] Override http request option.
18944
19122
  * @throws {RequiredError}
18945
19123
  * @memberof GroupChannelsApi
18946
19124
  */
18947
- public apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, options?: AxiosRequestConfig) {
18948
- return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then((request) => request(this.axios, this.basePath));
19125
+ public apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, isExternal?: boolean, options?: AxiosRequestConfig) {
19126
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, isExternal, options).then((request) => request(this.axios, this.basePath));
18949
19127
  }
18950
19128
 
18951
19129
  /**
18952
19130
  *
18953
19131
  * @param {string} doctorId
18954
19132
  * @param {string} [hospitalId]
19133
+ * @param {boolean} [isExternal]
18955
19134
  * @param {*} [options] Override http request option.
18956
19135
  * @throws {RequiredError}
18957
19136
  * @memberof GroupChannelsApi
18958
19137
  */
18959
- public apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, options?: AxiosRequestConfig) {
18960
- return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then((request) => request(this.axios, this.basePath));
19138
+ public apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, isExternal?: boolean, options?: AxiosRequestConfig) {
19139
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, isExternal, options).then((request) => request(this.axios, this.basePath));
18961
19140
  }
18962
19141
 
18963
19142
  /**
18964
19143
  *
18965
19144
  * @param {string} hospitalId
19145
+ * @param {boolean} [isExternal]
18966
19146
  * @param {*} [options] Override http request option.
18967
19147
  * @throws {RequiredError}
18968
19148
  * @memberof GroupChannelsApi
18969
19149
  */
18970
- public apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig) {
18971
- return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(this.axios, this.basePath));
19150
+ public apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, isExternal?: boolean, options?: AxiosRequestConfig) {
19151
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, isExternal, options).then((request) => request(this.axios, this.basePath));
18972
19152
  }
18973
19153
  }
18974
19154