ch-admin-api-client-typescript 2.9.9 → 3.1.0
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.d.ts +0 -82
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -106
- package/package.json +1 -1
- package/src/api.ts +0 -125
package/lib/api.js
CHANGED
|
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
76
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
77
77
|
};
|
|
78
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79
|
-
exports.
|
|
79
|
+
exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.DashBoardApi = exports.DashBoardApiFactory = exports.DashBoardApiFp = exports.DashBoardApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.AboutUsApi = exports.AboutUsApiFactory = exports.AboutUsApiFp = exports.AboutUsApiAxiosParamCreator = exports.UserLocationType = exports.SortingOrder = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.Duration = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
80
80
|
var axios_1 = __importDefault(require("axios"));
|
|
81
81
|
// Some imports not used depending on template conditions
|
|
82
82
|
// @ts-ignore
|
|
@@ -35118,108 +35118,3 @@ var TranslationApi = /** @class */ (function (_super) {
|
|
|
35118
35118
|
return TranslationApi;
|
|
35119
35119
|
}(base_1.BaseAPI));
|
|
35120
35120
|
exports.TranslationApi = TranslationApi;
|
|
35121
|
-
/**
|
|
35122
|
-
* WeatherForecastApi - axios parameter creator
|
|
35123
|
-
* @export
|
|
35124
|
-
*/
|
|
35125
|
-
exports.WeatherForecastApiAxiosParamCreator = function (configuration) {
|
|
35126
|
-
var _this = this;
|
|
35127
|
-
return {
|
|
35128
|
-
/**
|
|
35129
|
-
*
|
|
35130
|
-
* @param {*} [options] Override http request option.
|
|
35131
|
-
* @throws {RequiredError}
|
|
35132
|
-
*/
|
|
35133
|
-
apiV1WeatherforecastGet: function (options) {
|
|
35134
|
-
if (options === void 0) { options = {}; }
|
|
35135
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
35136
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
35137
|
-
return __generator(this, function (_a) {
|
|
35138
|
-
localVarPath = "/api/v1/weatherforecast";
|
|
35139
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
35140
|
-
if (configuration) {
|
|
35141
|
-
baseOptions = configuration.baseOptions;
|
|
35142
|
-
}
|
|
35143
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
35144
|
-
localVarHeaderParameter = {};
|
|
35145
|
-
localVarQueryParameter = {};
|
|
35146
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35147
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35148
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
35149
|
-
return [2 /*return*/, {
|
|
35150
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
35151
|
-
options: localVarRequestOptions,
|
|
35152
|
-
}];
|
|
35153
|
-
});
|
|
35154
|
-
});
|
|
35155
|
-
},
|
|
35156
|
-
};
|
|
35157
|
-
};
|
|
35158
|
-
/**
|
|
35159
|
-
* WeatherForecastApi - functional programming interface
|
|
35160
|
-
* @export
|
|
35161
|
-
*/
|
|
35162
|
-
exports.WeatherForecastApiFp = function (configuration) {
|
|
35163
|
-
var localVarAxiosParamCreator = exports.WeatherForecastApiAxiosParamCreator(configuration);
|
|
35164
|
-
return {
|
|
35165
|
-
/**
|
|
35166
|
-
*
|
|
35167
|
-
* @param {*} [options] Override http request option.
|
|
35168
|
-
* @throws {RequiredError}
|
|
35169
|
-
*/
|
|
35170
|
-
apiV1WeatherforecastGet: function (options) {
|
|
35171
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
35172
|
-
var localVarAxiosArgs;
|
|
35173
|
-
return __generator(this, function (_a) {
|
|
35174
|
-
switch (_a.label) {
|
|
35175
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1WeatherforecastGet(options)];
|
|
35176
|
-
case 1:
|
|
35177
|
-
localVarAxiosArgs = _a.sent();
|
|
35178
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
35179
|
-
}
|
|
35180
|
-
});
|
|
35181
|
-
});
|
|
35182
|
-
},
|
|
35183
|
-
};
|
|
35184
|
-
};
|
|
35185
|
-
/**
|
|
35186
|
-
* WeatherForecastApi - factory interface
|
|
35187
|
-
* @export
|
|
35188
|
-
*/
|
|
35189
|
-
exports.WeatherForecastApiFactory = function (configuration, basePath, axios) {
|
|
35190
|
-
var localVarFp = exports.WeatherForecastApiFp(configuration);
|
|
35191
|
-
return {
|
|
35192
|
-
/**
|
|
35193
|
-
*
|
|
35194
|
-
* @param {*} [options] Override http request option.
|
|
35195
|
-
* @throws {RequiredError}
|
|
35196
|
-
*/
|
|
35197
|
-
apiV1WeatherforecastGet: function (options) {
|
|
35198
|
-
return localVarFp.apiV1WeatherforecastGet(options).then(function (request) { return request(axios, basePath); });
|
|
35199
|
-
},
|
|
35200
|
-
};
|
|
35201
|
-
};
|
|
35202
|
-
/**
|
|
35203
|
-
* WeatherForecastApi - object-oriented interface
|
|
35204
|
-
* @export
|
|
35205
|
-
* @class WeatherForecastApi
|
|
35206
|
-
* @extends {BaseAPI}
|
|
35207
|
-
*/
|
|
35208
|
-
var WeatherForecastApi = /** @class */ (function (_super) {
|
|
35209
|
-
__extends(WeatherForecastApi, _super);
|
|
35210
|
-
function WeatherForecastApi() {
|
|
35211
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
35212
|
-
}
|
|
35213
|
-
/**
|
|
35214
|
-
*
|
|
35215
|
-
* @param {*} [options] Override http request option.
|
|
35216
|
-
* @throws {RequiredError}
|
|
35217
|
-
* @memberof WeatherForecastApi
|
|
35218
|
-
*/
|
|
35219
|
-
WeatherForecastApi.prototype.apiV1WeatherforecastGet = function (options) {
|
|
35220
|
-
var _this = this;
|
|
35221
|
-
return exports.WeatherForecastApiFp(this.configuration).apiV1WeatherforecastGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
35222
|
-
};
|
|
35223
|
-
return WeatherForecastApi;
|
|
35224
|
-
}(base_1.BaseAPI));
|
|
35225
|
-
exports.WeatherForecastApi = WeatherForecastApi;
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -13619,37 +13619,6 @@ export interface UserModel {
|
|
|
13619
13619
|
*/
|
|
13620
13620
|
'locations'?: Array<UserLocationModel> | null;
|
|
13621
13621
|
}
|
|
13622
|
-
/**
|
|
13623
|
-
*
|
|
13624
|
-
* @export
|
|
13625
|
-
* @interface WeatherForecast
|
|
13626
|
-
*/
|
|
13627
|
-
export interface WeatherForecast {
|
|
13628
|
-
/**
|
|
13629
|
-
*
|
|
13630
|
-
* @type {Date}
|
|
13631
|
-
* @memberof WeatherForecast
|
|
13632
|
-
*/
|
|
13633
|
-
'date'?: Date;
|
|
13634
|
-
/**
|
|
13635
|
-
*
|
|
13636
|
-
* @type {number}
|
|
13637
|
-
* @memberof WeatherForecast
|
|
13638
|
-
*/
|
|
13639
|
-
'temperatureC'?: number;
|
|
13640
|
-
/**
|
|
13641
|
-
*
|
|
13642
|
-
* @type {number}
|
|
13643
|
-
* @memberof WeatherForecast
|
|
13644
|
-
*/
|
|
13645
|
-
'temperatureF'?: number;
|
|
13646
|
-
/**
|
|
13647
|
-
*
|
|
13648
|
-
* @type {string}
|
|
13649
|
-
* @memberof WeatherForecast
|
|
13650
|
-
*/
|
|
13651
|
-
'summary'?: string | null;
|
|
13652
|
-
}
|
|
13653
13622
|
/**
|
|
13654
13623
|
*
|
|
13655
13624
|
* @export
|
|
@@ -44732,97 +44701,3 @@ export class TranslationApi extends BaseAPI {
|
|
|
44732
44701
|
}
|
|
44733
44702
|
|
|
44734
44703
|
|
|
44735
|
-
/**
|
|
44736
|
-
* WeatherForecastApi - axios parameter creator
|
|
44737
|
-
* @export
|
|
44738
|
-
*/
|
|
44739
|
-
export const WeatherForecastApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44740
|
-
return {
|
|
44741
|
-
/**
|
|
44742
|
-
*
|
|
44743
|
-
* @param {*} [options] Override http request option.
|
|
44744
|
-
* @throws {RequiredError}
|
|
44745
|
-
*/
|
|
44746
|
-
apiV1WeatherforecastGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44747
|
-
const localVarPath = `/api/v1/weatherforecast`;
|
|
44748
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44749
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44750
|
-
let baseOptions;
|
|
44751
|
-
if (configuration) {
|
|
44752
|
-
baseOptions = configuration.baseOptions;
|
|
44753
|
-
}
|
|
44754
|
-
|
|
44755
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
44756
|
-
const localVarHeaderParameter = {} as any;
|
|
44757
|
-
const localVarQueryParameter = {} as any;
|
|
44758
|
-
|
|
44759
|
-
|
|
44760
|
-
|
|
44761
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44762
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44763
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44764
|
-
|
|
44765
|
-
return {
|
|
44766
|
-
url: toPathString(localVarUrlObj),
|
|
44767
|
-
options: localVarRequestOptions,
|
|
44768
|
-
};
|
|
44769
|
-
},
|
|
44770
|
-
}
|
|
44771
|
-
};
|
|
44772
|
-
|
|
44773
|
-
/**
|
|
44774
|
-
* WeatherForecastApi - functional programming interface
|
|
44775
|
-
* @export
|
|
44776
|
-
*/
|
|
44777
|
-
export const WeatherForecastApiFp = function(configuration?: Configuration) {
|
|
44778
|
-
const localVarAxiosParamCreator = WeatherForecastApiAxiosParamCreator(configuration)
|
|
44779
|
-
return {
|
|
44780
|
-
/**
|
|
44781
|
-
*
|
|
44782
|
-
* @param {*} [options] Override http request option.
|
|
44783
|
-
* @throws {RequiredError}
|
|
44784
|
-
*/
|
|
44785
|
-
async apiV1WeatherforecastGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WeatherForecast>>> {
|
|
44786
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1WeatherforecastGet(options);
|
|
44787
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
44788
|
-
},
|
|
44789
|
-
}
|
|
44790
|
-
};
|
|
44791
|
-
|
|
44792
|
-
/**
|
|
44793
|
-
* WeatherForecastApi - factory interface
|
|
44794
|
-
* @export
|
|
44795
|
-
*/
|
|
44796
|
-
export const WeatherForecastApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
44797
|
-
const localVarFp = WeatherForecastApiFp(configuration)
|
|
44798
|
-
return {
|
|
44799
|
-
/**
|
|
44800
|
-
*
|
|
44801
|
-
* @param {*} [options] Override http request option.
|
|
44802
|
-
* @throws {RequiredError}
|
|
44803
|
-
*/
|
|
44804
|
-
apiV1WeatherforecastGet(options?: any): AxiosPromise<Array<WeatherForecast>> {
|
|
44805
|
-
return localVarFp.apiV1WeatherforecastGet(options).then((request) => request(axios, basePath));
|
|
44806
|
-
},
|
|
44807
|
-
};
|
|
44808
|
-
};
|
|
44809
|
-
|
|
44810
|
-
/**
|
|
44811
|
-
* WeatherForecastApi - object-oriented interface
|
|
44812
|
-
* @export
|
|
44813
|
-
* @class WeatherForecastApi
|
|
44814
|
-
* @extends {BaseAPI}
|
|
44815
|
-
*/
|
|
44816
|
-
export class WeatherForecastApi extends BaseAPI {
|
|
44817
|
-
/**
|
|
44818
|
-
*
|
|
44819
|
-
* @param {*} [options] Override http request option.
|
|
44820
|
-
* @throws {RequiredError}
|
|
44821
|
-
* @memberof WeatherForecastApi
|
|
44822
|
-
*/
|
|
44823
|
-
public apiV1WeatherforecastGet(options?: AxiosRequestConfig) {
|
|
44824
|
-
return WeatherForecastApiFp(this.configuration).apiV1WeatherforecastGet(options).then((request) => request(this.axios, this.basePath));
|
|
44825
|
-
}
|
|
44826
|
-
}
|
|
44827
|
-
|
|
44828
|
-
|