ch-api-client-typescript2 3.1.4 → 3.1.5

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
@@ -17826,6 +17826,87 @@ var SpecialtiesApiAxiosParamCreator = function (configuration) {
17826
17826
  });
17827
17827
  });
17828
17828
  },
17829
+ /**
17830
+ *
17831
+ * @summary Get all Specialties Simple.
17832
+ * @param {string} [id]
17833
+ * @param {string} [name]
17834
+ * @param {string} [description]
17835
+ * @param {string} [specialtyTypeId]
17836
+ * @param {string} [hospitalId]
17837
+ * @param {Date} [created]
17838
+ * @param {string} [languageCode]
17839
+ * @param {Array<string>} [ids]
17840
+ * @param {boolean} [returnDefaultValue]
17841
+ * @param {number} [page]
17842
+ * @param {number} [limit]
17843
+ * @param {Date} [lastRetrieved]
17844
+ * @param {*} [options] Override http request option.
17845
+ * @throws {RequiredError}
17846
+ */
17847
+ apiV2SpecialtiesSimpleGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
17848
+ if (options === void 0) { options = {}; }
17849
+ return __awaiter(_this, void 0, void 0, function () {
17850
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17851
+ return __generator(this, function (_a) {
17852
+ localVarPath = "/api/v2/specialties/simple";
17853
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17854
+ if (configuration) {
17855
+ baseOptions = configuration.baseOptions;
17856
+ }
17857
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
17858
+ localVarHeaderParameter = {};
17859
+ localVarQueryParameter = {};
17860
+ if (id !== undefined) {
17861
+ localVarQueryParameter['Id'] = id;
17862
+ }
17863
+ if (name !== undefined) {
17864
+ localVarQueryParameter['Name'] = name;
17865
+ }
17866
+ if (description !== undefined) {
17867
+ localVarQueryParameter['Description'] = description;
17868
+ }
17869
+ if (specialtyTypeId !== undefined) {
17870
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
17871
+ }
17872
+ if (hospitalId !== undefined) {
17873
+ localVarQueryParameter['HospitalId'] = hospitalId;
17874
+ }
17875
+ if (created !== undefined) {
17876
+ localVarQueryParameter['Created'] = (created instanceof Date) ?
17877
+ created.toISOString() :
17878
+ created;
17879
+ }
17880
+ if (languageCode !== undefined) {
17881
+ localVarQueryParameter['LanguageCode'] = languageCode;
17882
+ }
17883
+ if (ids) {
17884
+ localVarQueryParameter['Ids'] = ids;
17885
+ }
17886
+ if (returnDefaultValue !== undefined) {
17887
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
17888
+ }
17889
+ if (page !== undefined) {
17890
+ localVarQueryParameter['page'] = page;
17891
+ }
17892
+ if (limit !== undefined) {
17893
+ localVarQueryParameter['limit'] = limit;
17894
+ }
17895
+ if (lastRetrieved !== undefined) {
17896
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
17897
+ lastRetrieved.toISOString() :
17898
+ lastRetrieved;
17899
+ }
17900
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
17901
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17902
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17903
+ return [2 /*return*/, {
17904
+ url: (0, common_1.toPathString)(localVarUrlObj),
17905
+ options: localVarRequestOptions,
17906
+ }];
17907
+ });
17908
+ });
17909
+ },
17829
17910
  /**
17830
17911
  *
17831
17912
  * @param {string} slug
@@ -18039,6 +18120,37 @@ var SpecialtiesApiFp = function (configuration) {
18039
18120
  });
18040
18121
  });
18041
18122
  },
18123
+ /**
18124
+ *
18125
+ * @summary Get all Specialties Simple.
18126
+ * @param {string} [id]
18127
+ * @param {string} [name]
18128
+ * @param {string} [description]
18129
+ * @param {string} [specialtyTypeId]
18130
+ * @param {string} [hospitalId]
18131
+ * @param {Date} [created]
18132
+ * @param {string} [languageCode]
18133
+ * @param {Array<string>} [ids]
18134
+ * @param {boolean} [returnDefaultValue]
18135
+ * @param {number} [page]
18136
+ * @param {number} [limit]
18137
+ * @param {Date} [lastRetrieved]
18138
+ * @param {*} [options] Override http request option.
18139
+ * @throws {RequiredError}
18140
+ */
18141
+ apiV2SpecialtiesSimpleGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
18142
+ return __awaiter(this, void 0, void 0, function () {
18143
+ var localVarAxiosArgs;
18144
+ return __generator(this, function (_a) {
18145
+ switch (_a.label) {
18146
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options)];
18147
+ case 1:
18148
+ localVarAxiosArgs = _a.sent();
18149
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18150
+ }
18151
+ });
18152
+ });
18153
+ },
18042
18154
  /**
18043
18155
  *
18044
18156
  * @param {string} slug
@@ -18158,6 +18270,27 @@ var SpecialtiesApiFactory = function (configuration, basePath, axios) {
18158
18270
  apiV2SpecialtiesGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
18159
18271
  return localVarFp.apiV2SpecialtiesGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18160
18272
  },
18273
+ /**
18274
+ *
18275
+ * @summary Get all Specialties Simple.
18276
+ * @param {string} [id]
18277
+ * @param {string} [name]
18278
+ * @param {string} [description]
18279
+ * @param {string} [specialtyTypeId]
18280
+ * @param {string} [hospitalId]
18281
+ * @param {Date} [created]
18282
+ * @param {string} [languageCode]
18283
+ * @param {Array<string>} [ids]
18284
+ * @param {boolean} [returnDefaultValue]
18285
+ * @param {number} [page]
18286
+ * @param {number} [limit]
18287
+ * @param {Date} [lastRetrieved]
18288
+ * @param {*} [options] Override http request option.
18289
+ * @throws {RequiredError}
18290
+ */
18291
+ apiV2SpecialtiesSimpleGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
18292
+ return localVarFp.apiV2SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18293
+ },
18161
18294
  /**
18162
18295
  *
18163
18296
  * @param {string} slug
@@ -18243,6 +18376,29 @@ var SpecialtiesApi = /** @class */ (function (_super) {
18243
18376
  var _this = this;
18244
18377
  return (0, exports.SpecialtiesApiFp)(this.configuration).apiV2SpecialtiesGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18245
18378
  };
18379
+ /**
18380
+ *
18381
+ * @summary Get all Specialties Simple.
18382
+ * @param {string} [id]
18383
+ * @param {string} [name]
18384
+ * @param {string} [description]
18385
+ * @param {string} [specialtyTypeId]
18386
+ * @param {string} [hospitalId]
18387
+ * @param {Date} [created]
18388
+ * @param {string} [languageCode]
18389
+ * @param {Array<string>} [ids]
18390
+ * @param {boolean} [returnDefaultValue]
18391
+ * @param {number} [page]
18392
+ * @param {number} [limit]
18393
+ * @param {Date} [lastRetrieved]
18394
+ * @param {*} [options] Override http request option.
18395
+ * @throws {RequiredError}
18396
+ * @memberof SpecialtiesApi
18397
+ */
18398
+ SpecialtiesApi.prototype.apiV2SpecialtiesSimpleGet = function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
18399
+ var _this = this;
18400
+ return (0, exports.SpecialtiesApiFp)(this.configuration).apiV2SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18401
+ };
18246
18402
  /**
18247
18403
  *
18248
18404
  * @param {string} slug
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -8964,6 +8964,25 @@ export interface SpecialtiesModel {
8964
8964
  */
8965
8965
  'metaData'?: PagedListMetaData;
8966
8966
  }
8967
+ /**
8968
+ *
8969
+ * @export
8970
+ * @interface SpecialtiesSimpleModel
8971
+ */
8972
+ export interface SpecialtiesSimpleModel {
8973
+ /**
8974
+ *
8975
+ * @type {Array<SpecialtyItemSimpleModel>}
8976
+ * @memberof SpecialtiesSimpleModel
8977
+ */
8978
+ 'items'?: Array<SpecialtyItemSimpleModel> | null;
8979
+ /**
8980
+ *
8981
+ * @type {PagedListMetaData}
8982
+ * @memberof SpecialtiesSimpleModel
8983
+ */
8984
+ 'metaData'?: PagedListMetaData;
8985
+ }
8967
8986
  /**
8968
8987
  *
8969
8988
  * @export
@@ -9055,6 +9074,43 @@ export interface SpecialtyItemModel {
9055
9074
  */
9056
9075
  'medias'?: Array<MediaModel> | null;
9057
9076
  }
9077
+ /**
9078
+ *
9079
+ * @export
9080
+ * @interface SpecialtyItemSimpleModel
9081
+ */
9082
+ export interface SpecialtyItemSimpleModel {
9083
+ /**
9084
+ *
9085
+ * @type {string}
9086
+ * @memberof SpecialtyItemSimpleModel
9087
+ */
9088
+ 'id'?: string;
9089
+ /**
9090
+ *
9091
+ * @type {string}
9092
+ * @memberof SpecialtyItemSimpleModel
9093
+ */
9094
+ 'name'?: string | null;
9095
+ /**
9096
+ *
9097
+ * @type {string}
9098
+ * @memberof SpecialtyItemSimpleModel
9099
+ */
9100
+ 'slug'?: string | null;
9101
+ /**
9102
+ *
9103
+ * @type {string}
9104
+ * @memberof SpecialtyItemSimpleModel
9105
+ */
9106
+ 'specialtyTypeId'?: string;
9107
+ /**
9108
+ *
9109
+ * @type {boolean}
9110
+ * @memberof SpecialtyItemSimpleModel
9111
+ */
9112
+ 'confirmed'?: boolean;
9113
+ }
9058
9114
  /**
9059
9115
  *
9060
9116
  * @export
@@ -26653,6 +26709,100 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
26653
26709
 
26654
26710
 
26655
26711
 
26712
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26713
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26714
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26715
+
26716
+ return {
26717
+ url: toPathString(localVarUrlObj),
26718
+ options: localVarRequestOptions,
26719
+ };
26720
+ },
26721
+ /**
26722
+ *
26723
+ * @summary Get all Specialties Simple.
26724
+ * @param {string} [id]
26725
+ * @param {string} [name]
26726
+ * @param {string} [description]
26727
+ * @param {string} [specialtyTypeId]
26728
+ * @param {string} [hospitalId]
26729
+ * @param {Date} [created]
26730
+ * @param {string} [languageCode]
26731
+ * @param {Array<string>} [ids]
26732
+ * @param {boolean} [returnDefaultValue]
26733
+ * @param {number} [page]
26734
+ * @param {number} [limit]
26735
+ * @param {Date} [lastRetrieved]
26736
+ * @param {*} [options] Override http request option.
26737
+ * @throws {RequiredError}
26738
+ */
26739
+ apiV2SpecialtiesSimpleGet: async (id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26740
+ const localVarPath = `/api/v2/specialties/simple`;
26741
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26742
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26743
+ let baseOptions;
26744
+ if (configuration) {
26745
+ baseOptions = configuration.baseOptions;
26746
+ }
26747
+
26748
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26749
+ const localVarHeaderParameter = {} as any;
26750
+ const localVarQueryParameter = {} as any;
26751
+
26752
+ if (id !== undefined) {
26753
+ localVarQueryParameter['Id'] = id;
26754
+ }
26755
+
26756
+ if (name !== undefined) {
26757
+ localVarQueryParameter['Name'] = name;
26758
+ }
26759
+
26760
+ if (description !== undefined) {
26761
+ localVarQueryParameter['Description'] = description;
26762
+ }
26763
+
26764
+ if (specialtyTypeId !== undefined) {
26765
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
26766
+ }
26767
+
26768
+ if (hospitalId !== undefined) {
26769
+ localVarQueryParameter['HospitalId'] = hospitalId;
26770
+ }
26771
+
26772
+ if (created !== undefined) {
26773
+ localVarQueryParameter['Created'] = (created as any instanceof Date) ?
26774
+ (created as any).toISOString() :
26775
+ created;
26776
+ }
26777
+
26778
+ if (languageCode !== undefined) {
26779
+ localVarQueryParameter['LanguageCode'] = languageCode;
26780
+ }
26781
+
26782
+ if (ids) {
26783
+ localVarQueryParameter['Ids'] = ids;
26784
+ }
26785
+
26786
+ if (returnDefaultValue !== undefined) {
26787
+ localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
26788
+ }
26789
+
26790
+ if (page !== undefined) {
26791
+ localVarQueryParameter['page'] = page;
26792
+ }
26793
+
26794
+ if (limit !== undefined) {
26795
+ localVarQueryParameter['limit'] = limit;
26796
+ }
26797
+
26798
+ if (lastRetrieved !== undefined) {
26799
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
26800
+ (lastRetrieved as any).toISOString() :
26801
+ lastRetrieved;
26802
+ }
26803
+
26804
+
26805
+
26656
26806
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26657
26807
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26658
26808
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -26879,6 +27029,28 @@ export const SpecialtiesApiFp = function(configuration?: Configuration) {
26879
27029
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SpecialtiesGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options);
26880
27030
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26881
27031
  },
27032
+ /**
27033
+ *
27034
+ * @summary Get all Specialties Simple.
27035
+ * @param {string} [id]
27036
+ * @param {string} [name]
27037
+ * @param {string} [description]
27038
+ * @param {string} [specialtyTypeId]
27039
+ * @param {string} [hospitalId]
27040
+ * @param {Date} [created]
27041
+ * @param {string} [languageCode]
27042
+ * @param {Array<string>} [ids]
27043
+ * @param {boolean} [returnDefaultValue]
27044
+ * @param {number} [page]
27045
+ * @param {number} [limit]
27046
+ * @param {Date} [lastRetrieved]
27047
+ * @param {*} [options] Override http request option.
27048
+ * @throws {RequiredError}
27049
+ */
27050
+ async apiV2SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtiesSimpleModel>> {
27051
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options);
27052
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27053
+ },
26882
27054
  /**
26883
27055
  *
26884
27056
  * @param {string} slug
@@ -26962,6 +27134,27 @@ export const SpecialtiesApiFactory = function (configuration?: Configuration, ba
26962
27134
  apiV2SpecialtiesGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtiesModel> {
26963
27135
  return localVarFp.apiV2SpecialtiesGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
26964
27136
  },
27137
+ /**
27138
+ *
27139
+ * @summary Get all Specialties Simple.
27140
+ * @param {string} [id]
27141
+ * @param {string} [name]
27142
+ * @param {string} [description]
27143
+ * @param {string} [specialtyTypeId]
27144
+ * @param {string} [hospitalId]
27145
+ * @param {Date} [created]
27146
+ * @param {string} [languageCode]
27147
+ * @param {Array<string>} [ids]
27148
+ * @param {boolean} [returnDefaultValue]
27149
+ * @param {number} [page]
27150
+ * @param {number} [limit]
27151
+ * @param {Date} [lastRetrieved]
27152
+ * @param {*} [options] Override http request option.
27153
+ * @throws {RequiredError}
27154
+ */
27155
+ apiV2SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtiesSimpleModel> {
27156
+ return localVarFp.apiV2SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
27157
+ },
26965
27158
  /**
26966
27159
  *
26967
27160
  * @param {string} slug
@@ -27043,6 +27236,29 @@ export class SpecialtiesApi extends BaseAPI {
27043
27236
  return SpecialtiesApiFp(this.configuration).apiV2SpecialtiesGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
27044
27237
  }
27045
27238
 
27239
+ /**
27240
+ *
27241
+ * @summary Get all Specialties Simple.
27242
+ * @param {string} [id]
27243
+ * @param {string} [name]
27244
+ * @param {string} [description]
27245
+ * @param {string} [specialtyTypeId]
27246
+ * @param {string} [hospitalId]
27247
+ * @param {Date} [created]
27248
+ * @param {string} [languageCode]
27249
+ * @param {Array<string>} [ids]
27250
+ * @param {boolean} [returnDefaultValue]
27251
+ * @param {number} [page]
27252
+ * @param {number} [limit]
27253
+ * @param {Date} [lastRetrieved]
27254
+ * @param {*} [options] Override http request option.
27255
+ * @throws {RequiredError}
27256
+ * @memberof SpecialtiesApi
27257
+ */
27258
+ public apiV2SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
27259
+ return SpecialtiesApiFp(this.configuration).apiV2SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
27260
+ }
27261
+
27046
27262
  /**
27047
27263
  *
27048
27264
  * @param {string} slug