ch-api-client-typescript2 4.3.6 → 4.3.8

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
@@ -6919,6 +6919,201 @@ export interface InviteSendBirdGroupChannelCommand {
6919
6919
  */
6920
6920
  'user_ids'?: Array<string> | null;
6921
6921
  }
6922
+ /**
6923
+ *
6924
+ * @export
6925
+ * @interface LandingItemModel
6926
+ */
6927
+ export interface LandingItemModel {
6928
+ /**
6929
+ *
6930
+ * @type {string}
6931
+ * @memberof LandingItemModel
6932
+ */
6933
+ 'id'?: string;
6934
+ /**
6935
+ *
6936
+ * @type {string}
6937
+ * @memberof LandingItemModel
6938
+ */
6939
+ 'languageCode'?: string | null;
6940
+ /**
6941
+ *
6942
+ * @type {string}
6943
+ * @memberof LandingItemModel
6944
+ */
6945
+ 'name'?: string | null;
6946
+ /**
6947
+ *
6948
+ * @type {string}
6949
+ * @memberof LandingItemModel
6950
+ */
6951
+ 'slug'?: string | null;
6952
+ /**
6953
+ *
6954
+ * @type {boolean}
6955
+ * @memberof LandingItemModel
6956
+ */
6957
+ 'confirmed'?: boolean;
6958
+ /**
6959
+ *
6960
+ * @type {number}
6961
+ * @memberof LandingItemModel
6962
+ */
6963
+ 'order'?: number;
6964
+ /**
6965
+ *
6966
+ * @type {string}
6967
+ * @memberof LandingItemModel
6968
+ */
6969
+ 'photo'?: string | null;
6970
+ /**
6971
+ *
6972
+ * @type {string}
6973
+ * @memberof LandingItemModel
6974
+ */
6975
+ 'photoThumbnail'?: string | null;
6976
+ /**
6977
+ *
6978
+ * @type {AuditableEntity}
6979
+ * @memberof LandingItemModel
6980
+ */
6981
+ 'auditableEntity'?: AuditableEntity;
6982
+ }
6983
+ /**
6984
+ *
6985
+ * @export
6986
+ * @interface LandingModel
6987
+ */
6988
+ export interface LandingModel {
6989
+ /**
6990
+ *
6991
+ * @type {string}
6992
+ * @memberof LandingModel
6993
+ */
6994
+ 'id'?: string;
6995
+ /**
6996
+ *
6997
+ * @type {string}
6998
+ * @memberof LandingModel
6999
+ */
7000
+ 'languageCode'?: string | null;
7001
+ /**
7002
+ *
7003
+ * @type {string}
7004
+ * @memberof LandingModel
7005
+ */
7006
+ 'name'?: string | null;
7007
+ /**
7008
+ *
7009
+ * @type {string}
7010
+ * @memberof LandingModel
7011
+ */
7012
+ 'slug'?: string | null;
7013
+ /**
7014
+ *
7015
+ * @type {boolean}
7016
+ * @memberof LandingModel
7017
+ */
7018
+ 'confirmed'?: boolean;
7019
+ /**
7020
+ *
7021
+ * @type {number}
7022
+ * @memberof LandingModel
7023
+ */
7024
+ 'order'?: number;
7025
+ /**
7026
+ *
7027
+ * @type {string}
7028
+ * @memberof LandingModel
7029
+ */
7030
+ 'photo'?: string | null;
7031
+ /**
7032
+ *
7033
+ * @type {string}
7034
+ * @memberof LandingModel
7035
+ */
7036
+ 'photoThumbnail'?: string | null;
7037
+ /**
7038
+ *
7039
+ * @type {AuditableEntity}
7040
+ * @memberof LandingModel
7041
+ */
7042
+ 'auditableEntity'?: AuditableEntity;
7043
+ /**
7044
+ *
7045
+ * @type {string}
7046
+ * @memberof LandingModel
7047
+ */
7048
+ 'description'?: string | null;
7049
+ /**
7050
+ *
7051
+ * @type {string}
7052
+ * @memberof LandingModel
7053
+ */
7054
+ 'overview'?: string | null;
7055
+ /**
7056
+ *
7057
+ * @type {string}
7058
+ * @memberof LandingModel
7059
+ */
7060
+ 'content'?: string | null;
7061
+ /**
7062
+ *
7063
+ * @type {string}
7064
+ * @memberof LandingModel
7065
+ */
7066
+ 'hospitalId'?: string;
7067
+ /**
7068
+ *
7069
+ * @type {string}
7070
+ * @memberof LandingModel
7071
+ */
7072
+ 'hospitalName'?: string | null;
7073
+ /**
7074
+ *
7075
+ * @type {string}
7076
+ * @memberof LandingModel
7077
+ */
7078
+ 'hospitalSlug'?: string | null;
7079
+ /**
7080
+ *
7081
+ * @type {string}
7082
+ * @memberof LandingModel
7083
+ */
7084
+ 'customStyle'?: string | null;
7085
+ /**
7086
+ *
7087
+ * @type {Array<LocalizedUrlModel>}
7088
+ * @memberof LandingModel
7089
+ */
7090
+ 'localizedUrls'?: Array<LocalizedUrlModel> | null;
7091
+ /**
7092
+ *
7093
+ * @type {Array<MediaModel>}
7094
+ * @memberof LandingModel
7095
+ */
7096
+ 'medias'?: Array<MediaModel> | null;
7097
+ }
7098
+ /**
7099
+ *
7100
+ * @export
7101
+ * @interface LandingsModel
7102
+ */
7103
+ export interface LandingsModel {
7104
+ /**
7105
+ *
7106
+ * @type {Array<LandingItemModel>}
7107
+ * @memberof LandingsModel
7108
+ */
7109
+ 'items'?: Array<LandingItemModel> | null;
7110
+ /**
7111
+ *
7112
+ * @type {PagedListMetaData}
7113
+ * @memberof LandingsModel
7114
+ */
7115
+ 'metaData'?: PagedListMetaData;
7116
+ }
6922
7117
  /**
6923
7118
  *
6924
7119
  * @export
@@ -20807,6 +21002,160 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
20807
21002
 
20808
21003
 
20809
21004
 
21005
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21006
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21007
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21008
+
21009
+ return {
21010
+ url: toPathString(localVarUrlObj),
21011
+ options: localVarRequestOptions,
21012
+ };
21013
+ },
21014
+ /**
21015
+ *
21016
+ * @param {string} hospitalId
21017
+ * @param {string} [name]
21018
+ * @param {string} [slug]
21019
+ * @param {string} [languageCode]
21020
+ * @param {boolean} [showHidden]
21021
+ * @param {number} [page]
21022
+ * @param {number} [limit]
21023
+ * @param {Date} [lastRetrieved]
21024
+ * @param {*} [options] Override http request option.
21025
+ * @throws {RequiredError}
21026
+ */
21027
+ apiV2HospitalsHospitalIdLandingsGet: async (hospitalId: string, name?: string, slug?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
21028
+ // verify required parameter 'hospitalId' is not null or undefined
21029
+ assertParamExists('apiV2HospitalsHospitalIdLandingsGet', 'hospitalId', hospitalId)
21030
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/landings`
21031
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
21032
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21033
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21034
+ let baseOptions;
21035
+ if (configuration) {
21036
+ baseOptions = configuration.baseOptions;
21037
+ }
21038
+
21039
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21040
+ const localVarHeaderParameter = {} as any;
21041
+ const localVarQueryParameter = {} as any;
21042
+
21043
+ if (name !== undefined) {
21044
+ localVarQueryParameter['Name'] = name;
21045
+ }
21046
+
21047
+ if (slug !== undefined) {
21048
+ localVarQueryParameter['Slug'] = slug;
21049
+ }
21050
+
21051
+ if (languageCode !== undefined) {
21052
+ localVarQueryParameter['LanguageCode'] = languageCode;
21053
+ }
21054
+
21055
+ if (showHidden !== undefined) {
21056
+ localVarQueryParameter['ShowHidden'] = showHidden;
21057
+ }
21058
+
21059
+ if (page !== undefined) {
21060
+ localVarQueryParameter['page'] = page;
21061
+ }
21062
+
21063
+ if (limit !== undefined) {
21064
+ localVarQueryParameter['limit'] = limit;
21065
+ }
21066
+
21067
+ if (lastRetrieved !== undefined) {
21068
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
21069
+ (lastRetrieved as any).toISOString() :
21070
+ lastRetrieved;
21071
+ }
21072
+
21073
+
21074
+
21075
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21076
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21077
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21078
+
21079
+ return {
21080
+ url: toPathString(localVarUrlObj),
21081
+ options: localVarRequestOptions,
21082
+ };
21083
+ },
21084
+ /**
21085
+ *
21086
+ * @param {string} hospitalId
21087
+ * @param {string} landingId
21088
+ * @param {string} [languageCode]
21089
+ * @param {*} [options] Override http request option.
21090
+ * @throws {RequiredError}
21091
+ */
21092
+ apiV2HospitalsHospitalIdLandingsLandingIdGet: async (hospitalId: string, landingId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
21093
+ // verify required parameter 'hospitalId' is not null or undefined
21094
+ assertParamExists('apiV2HospitalsHospitalIdLandingsLandingIdGet', 'hospitalId', hospitalId)
21095
+ // verify required parameter 'landingId' is not null or undefined
21096
+ assertParamExists('apiV2HospitalsHospitalIdLandingsLandingIdGet', 'landingId', landingId)
21097
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/landings/{landingId}`
21098
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
21099
+ .replace(`{${"landingId"}}`, encodeURIComponent(String(landingId)));
21100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21101
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21102
+ let baseOptions;
21103
+ if (configuration) {
21104
+ baseOptions = configuration.baseOptions;
21105
+ }
21106
+
21107
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21108
+ const localVarHeaderParameter = {} as any;
21109
+ const localVarQueryParameter = {} as any;
21110
+
21111
+ if (languageCode !== undefined) {
21112
+ localVarQueryParameter['languageCode'] = languageCode;
21113
+ }
21114
+
21115
+
21116
+
21117
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21118
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21119
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21120
+
21121
+ return {
21122
+ url: toPathString(localVarUrlObj),
21123
+ options: localVarRequestOptions,
21124
+ };
21125
+ },
21126
+ /**
21127
+ *
21128
+ * @param {string} slug
21129
+ * @param {string} hospitalId
21130
+ * @param {string} [languageCode]
21131
+ * @param {*} [options] Override http request option.
21132
+ * @throws {RequiredError}
21133
+ */
21134
+ apiV2HospitalsHospitalIdLandingsSlugGet: async (slug: string, hospitalId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
21135
+ // verify required parameter 'slug' is not null or undefined
21136
+ assertParamExists('apiV2HospitalsHospitalIdLandingsSlugGet', 'slug', slug)
21137
+ // verify required parameter 'hospitalId' is not null or undefined
21138
+ assertParamExists('apiV2HospitalsHospitalIdLandingsSlugGet', 'hospitalId', hospitalId)
21139
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/landings/{slug}`
21140
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)))
21141
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
21142
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21143
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21144
+ let baseOptions;
21145
+ if (configuration) {
21146
+ baseOptions = configuration.baseOptions;
21147
+ }
21148
+
21149
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21150
+ const localVarHeaderParameter = {} as any;
21151
+ const localVarQueryParameter = {} as any;
21152
+
21153
+ if (languageCode !== undefined) {
21154
+ localVarQueryParameter['languageCode'] = languageCode;
21155
+ }
21156
+
21157
+
21158
+
20810
21159
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20811
21160
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20812
21161
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -22051,6 +22400,47 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
22051
22400
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options);
22052
22401
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
22053
22402
  },
22403
+ /**
22404
+ *
22405
+ * @param {string} hospitalId
22406
+ * @param {string} [name]
22407
+ * @param {string} [slug]
22408
+ * @param {string} [languageCode]
22409
+ * @param {boolean} [showHidden]
22410
+ * @param {number} [page]
22411
+ * @param {number} [limit]
22412
+ * @param {Date} [lastRetrieved]
22413
+ * @param {*} [options] Override http request option.
22414
+ * @throws {RequiredError}
22415
+ */
22416
+ async apiV2HospitalsHospitalIdLandingsGet(hospitalId: string, name?: string, slug?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LandingsModel>> {
22417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options);
22418
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
22419
+ },
22420
+ /**
22421
+ *
22422
+ * @param {string} hospitalId
22423
+ * @param {string} landingId
22424
+ * @param {string} [languageCode]
22425
+ * @param {*} [options] Override http request option.
22426
+ * @throws {RequiredError}
22427
+ */
22428
+ async apiV2HospitalsHospitalIdLandingsLandingIdGet(hospitalId: string, landingId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LandingModel>> {
22429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdLandingsLandingIdGet(hospitalId, landingId, languageCode, options);
22430
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
22431
+ },
22432
+ /**
22433
+ *
22434
+ * @param {string} slug
22435
+ * @param {string} hospitalId
22436
+ * @param {string} [languageCode]
22437
+ * @param {*} [options] Override http request option.
22438
+ * @throws {RequiredError}
22439
+ */
22440
+ async apiV2HospitalsHospitalIdLandingsSlugGet(slug: string, hospitalId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LandingModel>> {
22441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options);
22442
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
22443
+ },
22054
22444
  /**
22055
22445
  *
22056
22446
  * @summary Get all HospitalMedias.
@@ -22508,6 +22898,44 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
22508
22898
  apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId: string, handleId: string, options?: any): AxiosPromise<SnsHandleModel> {
22509
22899
  return localVarFp.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then((request) => request(axios, basePath));
22510
22900
  },
22901
+ /**
22902
+ *
22903
+ * @param {string} hospitalId
22904
+ * @param {string} [name]
22905
+ * @param {string} [slug]
22906
+ * @param {string} [languageCode]
22907
+ * @param {boolean} [showHidden]
22908
+ * @param {number} [page]
22909
+ * @param {number} [limit]
22910
+ * @param {Date} [lastRetrieved]
22911
+ * @param {*} [options] Override http request option.
22912
+ * @throws {RequiredError}
22913
+ */
22914
+ apiV2HospitalsHospitalIdLandingsGet(hospitalId: string, name?: string, slug?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<LandingsModel> {
22915
+ return localVarFp.apiV2HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
22916
+ },
22917
+ /**
22918
+ *
22919
+ * @param {string} hospitalId
22920
+ * @param {string} landingId
22921
+ * @param {string} [languageCode]
22922
+ * @param {*} [options] Override http request option.
22923
+ * @throws {RequiredError}
22924
+ */
22925
+ apiV2HospitalsHospitalIdLandingsLandingIdGet(hospitalId: string, landingId: string, languageCode?: string, options?: any): AxiosPromise<LandingModel> {
22926
+ return localVarFp.apiV2HospitalsHospitalIdLandingsLandingIdGet(hospitalId, landingId, languageCode, options).then((request) => request(axios, basePath));
22927
+ },
22928
+ /**
22929
+ *
22930
+ * @param {string} slug
22931
+ * @param {string} hospitalId
22932
+ * @param {string} [languageCode]
22933
+ * @param {*} [options] Override http request option.
22934
+ * @throws {RequiredError}
22935
+ */
22936
+ apiV2HospitalsHospitalIdLandingsSlugGet(slug: string, hospitalId: string, languageCode?: string, options?: any): AxiosPromise<LandingModel> {
22937
+ return localVarFp.apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options).then((request) => request(axios, basePath));
22938
+ },
22511
22939
  /**
22512
22940
  *
22513
22941
  * @summary Get all HospitalMedias.
@@ -22973,6 +23401,50 @@ export class HospitalsApi extends BaseAPI {
22973
23401
  return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then((request) => request(this.axios, this.basePath));
22974
23402
  }
22975
23403
 
23404
+ /**
23405
+ *
23406
+ * @param {string} hospitalId
23407
+ * @param {string} [name]
23408
+ * @param {string} [slug]
23409
+ * @param {string} [languageCode]
23410
+ * @param {boolean} [showHidden]
23411
+ * @param {number} [page]
23412
+ * @param {number} [limit]
23413
+ * @param {Date} [lastRetrieved]
23414
+ * @param {*} [options] Override http request option.
23415
+ * @throws {RequiredError}
23416
+ * @memberof HospitalsApi
23417
+ */
23418
+ public apiV2HospitalsHospitalIdLandingsGet(hospitalId: string, name?: string, slug?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
23419
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
23420
+ }
23421
+
23422
+ /**
23423
+ *
23424
+ * @param {string} hospitalId
23425
+ * @param {string} landingId
23426
+ * @param {string} [languageCode]
23427
+ * @param {*} [options] Override http request option.
23428
+ * @throws {RequiredError}
23429
+ * @memberof HospitalsApi
23430
+ */
23431
+ public apiV2HospitalsHospitalIdLandingsLandingIdGet(hospitalId: string, landingId: string, languageCode?: string, options?: AxiosRequestConfig) {
23432
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdLandingsLandingIdGet(hospitalId, landingId, languageCode, options).then((request) => request(this.axios, this.basePath));
23433
+ }
23434
+
23435
+ /**
23436
+ *
23437
+ * @param {string} slug
23438
+ * @param {string} hospitalId
23439
+ * @param {string} [languageCode]
23440
+ * @param {*} [options] Override http request option.
23441
+ * @throws {RequiredError}
23442
+ * @memberof HospitalsApi
23443
+ */
23444
+ public apiV2HospitalsHospitalIdLandingsSlugGet(slug: string, hospitalId: string, languageCode?: string, options?: AxiosRequestConfig) {
23445
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options).then((request) => request(this.axios, this.basePath));
23446
+ }
23447
+
22976
23448
  /**
22977
23449
  *
22978
23450
  * @summary Get all HospitalMedias.