ch-admin-api-client-typescript 2.4.7 → 2.4.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/lib/api.js CHANGED
@@ -12259,6 +12259,53 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
12259
12259
  });
12260
12260
  });
12261
12261
  },
12262
+ /**
12263
+ *
12264
+ * @summary Get Doctor by slug.
12265
+ * @param {string} slug
12266
+ * @param {string} [languageCode]
12267
+ * @param {*} [options] Override http request option.
12268
+ * @throws {RequiredError}
12269
+ */
12270
+ apiV1DoctorsSlugGet: function (slug, languageCode, options) {
12271
+ if (options === void 0) { options = {}; }
12272
+ return __awaiter(_this, void 0, void 0, function () {
12273
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12274
+ return __generator(this, function (_a) {
12275
+ switch (_a.label) {
12276
+ case 0:
12277
+ // verify required parameter 'slug' is not null or undefined
12278
+ common_1.assertParamExists('apiV1DoctorsSlugGet', 'slug', slug);
12279
+ localVarPath = "/api/v1/doctors/{slug}"
12280
+ .replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
12281
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12282
+ if (configuration) {
12283
+ baseOptions = configuration.baseOptions;
12284
+ }
12285
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12286
+ localVarHeaderParameter = {};
12287
+ localVarQueryParameter = {};
12288
+ // authentication oauth2 required
12289
+ // oauth required
12290
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
12291
+ case 1:
12292
+ // authentication oauth2 required
12293
+ // oauth required
12294
+ _a.sent();
12295
+ if (languageCode !== undefined) {
12296
+ localVarQueryParameter['languageCode'] = languageCode;
12297
+ }
12298
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
12299
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12300
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12301
+ return [2 /*return*/, {
12302
+ url: common_1.toPathString(localVarUrlObj),
12303
+ options: localVarRequestOptions,
12304
+ }];
12305
+ }
12306
+ });
12307
+ });
12308
+ },
12262
12309
  };
12263
12310
  };
12264
12311
  /**
@@ -13024,6 +13071,27 @@ exports.DoctorsApiFp = function (configuration) {
13024
13071
  });
13025
13072
  });
13026
13073
  },
13074
+ /**
13075
+ *
13076
+ * @summary Get Doctor by slug.
13077
+ * @param {string} slug
13078
+ * @param {string} [languageCode]
13079
+ * @param {*} [options] Override http request option.
13080
+ * @throws {RequiredError}
13081
+ */
13082
+ apiV1DoctorsSlugGet: function (slug, languageCode, options) {
13083
+ return __awaiter(this, void 0, void 0, function () {
13084
+ var localVarAxiosArgs;
13085
+ return __generator(this, function (_a) {
13086
+ switch (_a.label) {
13087
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsSlugGet(slug, languageCode, options)];
13088
+ case 1:
13089
+ localVarAxiosArgs = _a.sent();
13090
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13091
+ }
13092
+ });
13093
+ });
13094
+ },
13027
13095
  };
13028
13096
  };
13029
13097
  /**
@@ -13449,6 +13517,17 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13449
13517
  apiV1DoctorsPost: function (createDoctorCommand, options) {
13450
13518
  return localVarFp.apiV1DoctorsPost(createDoctorCommand, options).then(function (request) { return request(axios, basePath); });
13451
13519
  },
13520
+ /**
13521
+ *
13522
+ * @summary Get Doctor by slug.
13523
+ * @param {string} slug
13524
+ * @param {string} [languageCode]
13525
+ * @param {*} [options] Override http request option.
13526
+ * @throws {RequiredError}
13527
+ */
13528
+ apiV1DoctorsSlugGet: function (slug, languageCode, options) {
13529
+ return localVarFp.apiV1DoctorsSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
13530
+ },
13452
13531
  };
13453
13532
  };
13454
13533
  /**
@@ -13946,6 +14025,19 @@ var DoctorsApi = /** @class */ (function (_super) {
13946
14025
  var _this = this;
13947
14026
  return exports.DoctorsApiFp(this.configuration).apiV1DoctorsPost(createDoctorCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
13948
14027
  };
14028
+ /**
14029
+ *
14030
+ * @summary Get Doctor by slug.
14031
+ * @param {string} slug
14032
+ * @param {string} [languageCode]
14033
+ * @param {*} [options] Override http request option.
14034
+ * @throws {RequiredError}
14035
+ * @memberof DoctorsApi
14036
+ */
14037
+ DoctorsApi.prototype.apiV1DoctorsSlugGet = function (slug, languageCode, options) {
14038
+ var _this = this;
14039
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsSlugGet(slug, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
14040
+ };
13949
14041
  return DoctorsApi;
13950
14042
  }(base_1.BaseAPI));
13951
14043
  exports.DoctorsApi = DoctorsApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "2.4.7",
3
+ "version": "2.4.8",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -5046,6 +5046,24 @@ export interface DoctorItemModel {
5046
5046
  * @memberof DoctorItemModel
5047
5047
  */
5048
5048
  'auditableEntity'?: AuditableEntity;
5049
+ /**
5050
+ *
5051
+ * @type {string}
5052
+ * @memberof DoctorItemModel
5053
+ */
5054
+ 'userType'?: string | null;
5055
+ /**
5056
+ *
5057
+ * @type {Array<UserLanguageModel>}
5058
+ * @memberof DoctorItemModel
5059
+ */
5060
+ 'languages'?: Array<UserLanguageModel> | null;
5061
+ /**
5062
+ *
5063
+ * @type {Array<UserLocationModel>}
5064
+ * @memberof DoctorItemModel
5065
+ */
5066
+ 'locations'?: Array<UserLocationModel> | null;
5049
5067
  /**
5050
5068
  *
5051
5069
  * @type {string}
@@ -5064,12 +5082,30 @@ export interface DoctorItemModel {
5064
5082
  * @memberof DoctorItemModel
5065
5083
  */
5066
5084
  'hospitalName'?: string | null;
5085
+ /**
5086
+ *
5087
+ * @type {Date}
5088
+ * @memberof DoctorItemModel
5089
+ */
5090
+ 'startPracticeDate'?: Date | null;
5067
5091
  /**
5068
5092
  *
5069
5093
  * @type {string}
5070
5094
  * @memberof DoctorItemModel
5071
5095
  */
5072
5096
  'overview'?: string | null;
5097
+ /**
5098
+ *
5099
+ * @type {boolean}
5100
+ * @memberof DoctorItemModel
5101
+ */
5102
+ 'consultationEnabled'?: boolean | null;
5103
+ /**
5104
+ *
5105
+ * @type {number}
5106
+ * @memberof DoctorItemModel
5107
+ */
5108
+ 'consultationFee'?: number | null;
5073
5109
  /**
5074
5110
  *
5075
5111
  * @type {boolean}
@@ -5193,16 +5229,40 @@ export interface DoctorModel {
5193
5229
  'slug'?: string | null;
5194
5230
  /**
5195
5231
  *
5196
- * @type {number}
5232
+ * @type {string}
5197
5233
  * @memberof DoctorModel
5198
5234
  */
5199
- 'affiliationsCount'?: number;
5235
+ 'hospitalId'?: string | null;
5236
+ /**
5237
+ *
5238
+ * @type {string}
5239
+ * @memberof DoctorModel
5240
+ */
5241
+ 'hospitalName'?: string | null;
5242
+ /**
5243
+ *
5244
+ * @type {Date}
5245
+ * @memberof DoctorModel
5246
+ */
5247
+ 'startPracticeDate'?: Date | null;
5200
5248
  /**
5201
5249
  *
5202
5250
  * @type {string}
5203
5251
  * @memberof DoctorModel
5204
5252
  */
5205
5253
  'overview'?: string | null;
5254
+ /**
5255
+ *
5256
+ * @type {boolean}
5257
+ * @memberof DoctorModel
5258
+ */
5259
+ 'consultationEnabled'?: boolean | null;
5260
+ /**
5261
+ *
5262
+ * @type {number}
5263
+ * @memberof DoctorModel
5264
+ */
5265
+ 'consultationFee'?: number | null;
5206
5266
  /**
5207
5267
  *
5208
5268
  * @type {boolean}
@@ -7010,6 +7070,24 @@ export interface ManagerItemModel {
7010
7070
  * @memberof ManagerItemModel
7011
7071
  */
7012
7072
  'auditableEntity'?: AuditableEntity;
7073
+ /**
7074
+ *
7075
+ * @type {string}
7076
+ * @memberof ManagerItemModel
7077
+ */
7078
+ 'userType'?: string | null;
7079
+ /**
7080
+ *
7081
+ * @type {Array<UserLanguageModel>}
7082
+ * @memberof ManagerItemModel
7083
+ */
7084
+ 'languages'?: Array<UserLanguageModel> | null;
7085
+ /**
7086
+ *
7087
+ * @type {Array<UserLocationModel>}
7088
+ * @memberof ManagerItemModel
7089
+ */
7090
+ 'locations'?: Array<UserLocationModel> | null;
7013
7091
  /**
7014
7092
  *
7015
7093
  * @type {string}
@@ -7022,6 +7100,12 @@ export interface ManagerItemModel {
7022
7100
  * @memberof ManagerItemModel
7023
7101
  */
7024
7102
  'hospitalName'?: string | null;
7103
+ /**
7104
+ *
7105
+ * @type {number}
7106
+ * @memberof ManagerItemModel
7107
+ */
7108
+ 'affiliationsCount'?: number;
7025
7109
  }
7026
7110
  /**
7027
7111
  *
@@ -7131,6 +7215,18 @@ export interface ManagerModel {
7131
7215
  * @memberof ManagerModel
7132
7216
  */
7133
7217
  'locations'?: Array<UserLocationModel> | null;
7218
+ /**
7219
+ *
7220
+ * @type {string}
7221
+ * @memberof ManagerModel
7222
+ */
7223
+ 'hospitalId'?: string | null;
7224
+ /**
7225
+ *
7226
+ * @type {string}
7227
+ * @memberof ManagerModel
7228
+ */
7229
+ 'hospitalName'?: string | null;
7134
7230
  /**
7135
7231
  *
7136
7232
  * @type {number}
@@ -21158,6 +21254,49 @@ export const DoctorsApiAxiosParamCreator = function (configuration?: Configurati
21158
21254
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21159
21255
  localVarRequestOptions.data = serializeDataIfNeeded(createDoctorCommand, localVarRequestOptions, configuration)
21160
21256
 
21257
+ return {
21258
+ url: toPathString(localVarUrlObj),
21259
+ options: localVarRequestOptions,
21260
+ };
21261
+ },
21262
+ /**
21263
+ *
21264
+ * @summary Get Doctor by slug.
21265
+ * @param {string} slug
21266
+ * @param {string} [languageCode]
21267
+ * @param {*} [options] Override http request option.
21268
+ * @throws {RequiredError}
21269
+ */
21270
+ apiV1DoctorsSlugGet: async (slug: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
21271
+ // verify required parameter 'slug' is not null or undefined
21272
+ assertParamExists('apiV1DoctorsSlugGet', 'slug', slug)
21273
+ const localVarPath = `/api/v1/doctors/{slug}`
21274
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
21275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21276
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21277
+ let baseOptions;
21278
+ if (configuration) {
21279
+ baseOptions = configuration.baseOptions;
21280
+ }
21281
+
21282
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21283
+ const localVarHeaderParameter = {} as any;
21284
+ const localVarQueryParameter = {} as any;
21285
+
21286
+ // authentication oauth2 required
21287
+ // oauth required
21288
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
21289
+
21290
+ if (languageCode !== undefined) {
21291
+ localVarQueryParameter['languageCode'] = languageCode;
21292
+ }
21293
+
21294
+
21295
+
21296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21298
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21299
+
21161
21300
  return {
21162
21301
  url: toPathString(localVarUrlObj),
21163
21302
  options: localVarRequestOptions,
@@ -21623,6 +21762,18 @@ export const DoctorsApiFp = function(configuration?: Configuration) {
21623
21762
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsPost(createDoctorCommand, options);
21624
21763
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21625
21764
  },
21765
+ /**
21766
+ *
21767
+ * @summary Get Doctor by slug.
21768
+ * @param {string} slug
21769
+ * @param {string} [languageCode]
21770
+ * @param {*} [options] Override http request option.
21771
+ * @throws {RequiredError}
21772
+ */
21773
+ async apiV1DoctorsSlugGet(slug: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DoctorModel>> {
21774
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DoctorsSlugGet(slug, languageCode, options);
21775
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
21776
+ },
21626
21777
  }
21627
21778
  };
21628
21779
 
@@ -22049,6 +22200,17 @@ export const DoctorsApiFactory = function (configuration?: Configuration, basePa
22049
22200
  apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: any): AxiosPromise<DoctorModel> {
22050
22201
  return localVarFp.apiV1DoctorsPost(createDoctorCommand, options).then((request) => request(axios, basePath));
22051
22202
  },
22203
+ /**
22204
+ *
22205
+ * @summary Get Doctor by slug.
22206
+ * @param {string} slug
22207
+ * @param {string} [languageCode]
22208
+ * @param {*} [options] Override http request option.
22209
+ * @throws {RequiredError}
22210
+ */
22211
+ apiV1DoctorsSlugGet(slug: string, languageCode?: string, options?: any): AxiosPromise<DoctorModel> {
22212
+ return localVarFp.apiV1DoctorsSlugGet(slug, languageCode, options).then((request) => request(axios, basePath));
22213
+ },
22052
22214
  };
22053
22215
  };
22054
22216
 
@@ -22542,6 +22704,19 @@ export class DoctorsApi extends BaseAPI {
22542
22704
  public apiV1DoctorsPost(createDoctorCommand?: CreateDoctorCommand, options?: AxiosRequestConfig) {
22543
22705
  return DoctorsApiFp(this.configuration).apiV1DoctorsPost(createDoctorCommand, options).then((request) => request(this.axios, this.basePath));
22544
22706
  }
22707
+
22708
+ /**
22709
+ *
22710
+ * @summary Get Doctor by slug.
22711
+ * @param {string} slug
22712
+ * @param {string} [languageCode]
22713
+ * @param {*} [options] Override http request option.
22714
+ * @throws {RequiredError}
22715
+ * @memberof DoctorsApi
22716
+ */
22717
+ public apiV1DoctorsSlugGet(slug: string, languageCode?: string, options?: AxiosRequestConfig) {
22718
+ return DoctorsApiFp(this.configuration).apiV1DoctorsSlugGet(slug, languageCode, options).then((request) => request(this.axios, this.basePath));
22719
+ }
22545
22720
  }
22546
22721
 
22547
22722