ch-api-client-typescript2 4.9.1 → 4.9.3
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/{v2-about-us-api.d.ts → about-us-api.d.ts} +25 -25
- package/lib/api/about-us-api.d.ts.map +1 -0
- package/lib/api/{v2-about-us-api.js → about-us-api.js} +48 -48
- package/lib/api/{v2-accreditations-api.d.ts → accreditations-api.d.ts} +20 -20
- package/lib/api/accreditations-api.d.ts.map +1 -0
- package/lib/api/{v2-accreditations-api.js → accreditations-api.js} +38 -38
- package/lib/api/{v2-app-version-api.d.ts → app-version-api.d.ts} +15 -15
- package/lib/api/app-version-api.d.ts.map +1 -0
- package/lib/api/{v2-app-version-api.js → app-version-api.js} +29 -29
- package/lib/api/{v2-articles-api.d.ts → articles-api.d.ts} +65 -65
- package/lib/api/articles-api.d.ts.map +1 -0
- package/lib/api/{v2-articles-api.js → articles-api.js} +132 -132
- package/lib/api/{v2-bookings-api.d.ts → bookings-api.d.ts} +35 -35
- package/lib/api/bookings-api.d.ts.map +1 -0
- package/lib/api/{v2-bookings-api.js → bookings-api.js} +68 -68
- package/lib/api/{v2-chat-users-api.d.ts → chat-users-api.d.ts} +40 -40
- package/lib/api/chat-users-api.d.ts.map +1 -0
- package/lib/api/{v2-chat-users-api.js → chat-users-api.js} +74 -74
- package/lib/api/{v2-communications-api.d.ts → communications-api.d.ts} +25 -25
- package/lib/api/communications-api.d.ts.map +1 -0
- package/lib/api/{v2-communications-api.js → communications-api.js} +46 -46
- package/lib/api/{v2-consultations-api.d.ts → consultations-api.d.ts} +35 -35
- package/lib/api/consultations-api.d.ts.map +1 -0
- package/lib/api/{v2-consultations-api.js → consultations-api.js} +68 -68
- package/lib/api/{v2-contributors-api.d.ts → contributors-api.d.ts} +35 -35
- package/lib/api/contributors-api.d.ts.map +1 -0
- package/lib/api/{v2-contributors-api.js → contributors-api.js} +69 -69
- package/lib/api/{v2-countries-api.d.ts → countries-api.d.ts} +35 -35
- package/lib/api/countries-api.d.ts.map +1 -0
- package/lib/api/{v2-countries-api.js → countries-api.js} +69 -69
- package/lib/api/{v2-deals-api.d.ts → deals-api.d.ts} +50 -50
- package/lib/api/deals-api.d.ts.map +1 -0
- package/lib/api/{v2-deals-api.js → deals-api.js} +99 -99
- package/lib/api/{v2-devices-api.d.ts → devices-api.d.ts} +40 -40
- package/lib/api/devices-api.d.ts.map +1 -0
- package/lib/api/{v2-devices-api.js → devices-api.js} +77 -77
- package/lib/api/{v2-doctor-affiliations-api.d.ts → doctor-affiliations-api.d.ts} +35 -35
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -0
- package/lib/api/{v2-doctor-affiliations-api.js → doctor-affiliations-api.js} +69 -69
- package/lib/api/{v2-doctors-api.d.ts → doctors-api.d.ts} +85 -85
- package/lib/api/doctors-api.d.ts.map +1 -0
- package/lib/api/{v2-doctors-api.js → doctors-api.js} +173 -173
- package/lib/api/{v2-external-api.d.ts → external-api.d.ts} +15 -15
- package/lib/api/external-api.d.ts.map +1 -0
- package/lib/api/{v2-external-api.js → external-api.js} +28 -28
- package/lib/api/{v2-faq-categories-api.d.ts → faq-categories-api.d.ts} +25 -25
- package/lib/api/faq-categories-api.d.ts.map +1 -0
- package/lib/api/{v2-faq-categories-api.js → faq-categories-api.js} +48 -48
- package/lib/api/{v2-faqs-api.d.ts → faqs-api.d.ts} +45 -45
- package/lib/api/faqs-api.d.ts.map +1 -0
- package/lib/api/{v2-faqs-api.js → faqs-api.js} +90 -90
- package/lib/api/{v2-group-channels-api.d.ts → group-channels-api.d.ts} +35 -35
- package/lib/api/group-channels-api.d.ts.map +1 -0
- package/lib/api/{v2-group-channels-api.js → group-channels-api.js} +70 -70
- package/lib/api/{v2-header-navigations-api.d.ts → header-navigations-api.d.ts} +15 -15
- package/lib/api/header-navigations-api.d.ts.map +1 -0
- package/lib/api/{v2-header-navigations-api.js → header-navigations-api.js} +29 -29
- package/lib/api/{v2-hospitals-api.d.ts → hospitals-api.d.ts} +170 -170
- package/lib/api/hospitals-api.d.ts.map +1 -0
- package/lib/api/{v2-hospitals-api.js → hospitals-api.js} +361 -361
- package/lib/api/{v2-hospitals-consultation-timetables-api.d.ts → hospitals-consultation-timetables-api.d.ts} +15 -15
- package/lib/api/hospitals-consultation-timetables-api.d.ts.map +1 -0
- package/lib/api/{v2-hospitals-consultation-timetables-api.js → hospitals-consultation-timetables-api.js} +29 -29
- package/lib/api/{v2-images-api.d.ts → images-api.d.ts} +15 -15
- package/lib/api/images-api.d.ts.map +1 -0
- package/lib/api/{v2-images-api.js → images-api.js} +28 -28
- package/lib/api/{v2-languages-api.d.ts → languages-api.d.ts} +20 -20
- package/lib/api/languages-api.d.ts.map +1 -0
- package/lib/api/{v2-languages-api.js → languages-api.js} +38 -38
- package/lib/api/{v2-memberships-api.d.ts → memberships-api.d.ts} +25 -25
- package/lib/api/memberships-api.d.ts.map +1 -0
- package/lib/api/{v2-memberships-api.js → memberships-api.js} +48 -48
- package/lib/api/{v2-notifications-api.d.ts → notifications-api.d.ts} +20 -20
- package/lib/api/notifications-api.d.ts.map +1 -0
- package/lib/api/{v2-notifications-api.js → notifications-api.js} +37 -37
- package/lib/api/{v2-origins-api.d.ts → origins-api.d.ts} +30 -30
- package/lib/api/origins-api.d.ts.map +1 -0
- package/lib/api/{v2-origins-api.js → origins-api.js} +56 -56
- package/lib/api/{v2-patients-api.d.ts → patients-api.d.ts} +40 -40
- package/lib/api/patients-api.d.ts.map +1 -0
- package/lib/api/{v2-patients-api.js → patients-api.js} +78 -78
- package/lib/api/{v2-plans-api.d.ts → plans-api.d.ts} +30 -30
- package/lib/api/plans-api.d.ts.map +1 -0
- package/lib/api/{v2-plans-api.js → plans-api.js} +59 -59
- package/lib/api/{v2-profiles-api.d.ts → profiles-api.d.ts} +40 -40
- package/lib/api/profiles-api.d.ts.map +1 -0
- package/lib/api/{v2-profiles-api.js → profiles-api.js} +74 -74
- package/lib/api/{v2-service-reviews-api.d.ts → service-reviews-api.d.ts} +60 -60
- package/lib/api/service-reviews-api.d.ts.map +1 -0
- package/lib/api/{v2-service-reviews-api.js → service-reviews-api.js} +120 -120
- package/lib/api/{v2-services-api.d.ts → services-api.d.ts} +25 -25
- package/lib/api/services-api.d.ts.map +1 -0
- package/lib/api/{v2-services-api.js → services-api.js} +48 -48
- package/lib/api/{v2-services-categories-api.d.ts → services-categories-api.d.ts} +20 -20
- package/lib/api/services-categories-api.d.ts.map +1 -0
- package/lib/api/{v2-services-categories-api.js → services-categories-api.js} +38 -38
- package/lib/api/{v2-specialties-api.d.ts → specialties-api.d.ts} +40 -40
- package/lib/api/specialties-api.d.ts.map +1 -0
- package/lib/api/{v2-specialties-api.js → specialties-api.js} +78 -78
- package/lib/api/{v2-specialty-types-api.d.ts → specialty-types-api.d.ts} +40 -40
- package/lib/api/specialty-types-api.d.ts.map +1 -0
- package/lib/api/{v2-specialty-types-api.js → specialty-types-api.js} +78 -78
- package/lib/api/{v2-survey-forms-api.d.ts → survey-forms-api.d.ts} +15 -15
- package/lib/api/survey-forms-api.d.ts.map +1 -0
- package/lib/api/{v2-survey-forms-api.js → survey-forms-api.js} +29 -29
- package/lib/api/{v2-survey-results-api.d.ts → survey-results-api.d.ts} +15 -15
- package/lib/api/survey-results-api.d.ts.map +1 -0
- package/lib/api/{v2-survey-results-api.js → survey-results-api.js} +28 -28
- package/lib/api/{v2-tags-api.d.ts → tags-api.d.ts} +20 -20
- package/lib/api/tags-api.d.ts.map +1 -0
- package/lib/api/{v2-tags-api.js → tags-api.js} +38 -38
- package/lib/api.d.ts +37 -37
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +37 -37
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +37 -37
- package/src/api/{v2-about-us-api.ts → about-us-api.ts} +40 -40
- package/src/api/{v2-accreditations-api.ts → accreditations-api.ts} +30 -30
- package/src/api/{v2-app-version-api.ts → app-version-api.ts} +21 -21
- package/src/api/{v2-articles-api.ts → articles-api.ts} +124 -124
- package/src/api/{v2-bookings-api.ts → bookings-api.ts} +60 -60
- package/src/api/{v2-chat-users-api.ts → chat-users-api.ts} +66 -66
- package/src/api/{v2-communications-api.ts → communications-api.ts} +38 -38
- package/src/api/{v2-consultations-api.ts → consultations-api.ts} +60 -60
- package/src/api/{v2-contributors-api.ts → contributors-api.ts} +61 -61
- package/src/api/{v2-countries-api.ts → countries-api.ts} +61 -61
- package/src/api/{v2-deals-api.ts → deals-api.ts} +91 -91
- package/src/api/{v2-devices-api.ts → devices-api.ts} +69 -69
- package/src/api/{v2-doctor-affiliations-api.ts → doctor-affiliations-api.ts} +61 -61
- package/src/api/{v2-doctors-api.ts → doctors-api.ts} +165 -165
- package/src/api/{v2-external-api.ts → external-api.ts} +20 -20
- package/src/api/{v2-faq-categories-api.ts → faq-categories-api.ts} +40 -40
- package/src/api/{v2-faqs-api.ts → faqs-api.ts} +82 -82
- package/src/api/{v2-group-channels-api.ts → group-channels-api.ts} +62 -62
- package/src/api/{v2-header-navigations-api.ts → header-navigations-api.ts} +21 -21
- package/src/api/{v2-hospitals-api.ts → hospitals-api.ts} +353 -353
- package/src/api/{v2-hospitals-consultation-timetables-api.ts → hospitals-consultation-timetables-api.ts} +21 -21
- package/src/api/{v2-images-api.ts → images-api.ts} +20 -20
- package/src/api/{v2-languages-api.ts → languages-api.ts} +30 -30
- package/src/api/{v2-memberships-api.ts → memberships-api.ts} +40 -40
- package/src/api/{v2-notifications-api.ts → notifications-api.ts} +29 -29
- package/src/api/{v2-origins-api.ts → origins-api.ts} +48 -48
- package/src/api/{v2-patients-api.ts → patients-api.ts} +70 -70
- package/src/api/{v2-plans-api.ts → plans-api.ts} +51 -51
- package/src/api/{v2-profiles-api.ts → profiles-api.ts} +66 -66
- package/src/api/{v2-service-reviews-api.ts → service-reviews-api.ts} +112 -112
- package/src/api/{v2-services-api.ts → services-api.ts} +40 -40
- package/src/api/{v2-services-categories-api.ts → services-categories-api.ts} +30 -30
- package/src/api/{v2-specialties-api.ts → specialties-api.ts} +70 -70
- package/src/api/{v2-specialty-types-api.ts → specialty-types-api.ts} +70 -70
- package/src/api/{v2-survey-forms-api.ts → survey-forms-api.ts} +21 -21
- package/src/api/{v2-survey-results-api.ts → survey-results-api.ts} +20 -20
- package/src/api/{v2-tags-api.ts → tags-api.ts} +30 -30
- package/src/api.ts +37 -37
- package/lib/api/v2-about-us-api.d.ts.map +0 -1
- package/lib/api/v2-accreditations-api.d.ts.map +0 -1
- package/lib/api/v2-app-version-api.d.ts.map +0 -1
- package/lib/api/v2-articles-api.d.ts.map +0 -1
- package/lib/api/v2-bookings-api.d.ts.map +0 -1
- package/lib/api/v2-chat-users-api.d.ts.map +0 -1
- package/lib/api/v2-communications-api.d.ts.map +0 -1
- package/lib/api/v2-consultations-api.d.ts.map +0 -1
- package/lib/api/v2-contributors-api.d.ts.map +0 -1
- package/lib/api/v2-countries-api.d.ts.map +0 -1
- package/lib/api/v2-deals-api.d.ts.map +0 -1
- package/lib/api/v2-devices-api.d.ts.map +0 -1
- package/lib/api/v2-doctor-affiliations-api.d.ts.map +0 -1
- package/lib/api/v2-doctors-api.d.ts.map +0 -1
- package/lib/api/v2-external-api.d.ts.map +0 -1
- package/lib/api/v2-faq-categories-api.d.ts.map +0 -1
- package/lib/api/v2-faqs-api.d.ts.map +0 -1
- package/lib/api/v2-group-channels-api.d.ts.map +0 -1
- package/lib/api/v2-header-navigations-api.d.ts.map +0 -1
- package/lib/api/v2-hospitals-api.d.ts.map +0 -1
- package/lib/api/v2-hospitals-consultation-timetables-api.d.ts.map +0 -1
- package/lib/api/v2-images-api.d.ts.map +0 -1
- package/lib/api/v2-languages-api.d.ts.map +0 -1
- package/lib/api/v2-memberships-api.d.ts.map +0 -1
- package/lib/api/v2-notifications-api.d.ts.map +0 -1
- package/lib/api/v2-origins-api.d.ts.map +0 -1
- package/lib/api/v2-patients-api.d.ts.map +0 -1
- package/lib/api/v2-plans-api.d.ts.map +0 -1
- package/lib/api/v2-profiles-api.d.ts.map +0 -1
- package/lib/api/v2-service-reviews-api.d.ts.map +0 -1
- package/lib/api/v2-services-api.d.ts.map +0 -1
- package/lib/api/v2-services-categories-api.d.ts.map +0 -1
- package/lib/api/v2-specialties-api.d.ts.map +0 -1
- package/lib/api/v2-specialty-types-api.d.ts.map +0 -1
- package/lib/api/v2-survey-forms-api.d.ts.map +0 -1
- package/lib/api/v2-survey-results-api.d.ts.map +0 -1
- package/lib/api/v2-tags-api.d.ts.map +0 -1
|
@@ -33,10 +33,10 @@ import { SortingOrder } from '../models';
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { UpdateBookingCommand } from '../models';
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* BookingsApi - axios parameter creator
|
|
37
37
|
* @export
|
|
38
38
|
*/
|
|
39
|
-
export const
|
|
39
|
+
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
@@ -46,10 +46,10 @@ export const V2BookingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
46
46
|
* @param {*} [options] Override http request option.
|
|
47
47
|
* @throws {RequiredError}
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
apiV2BookingsBookingIdGet: async (bookingId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
50
|
// verify required parameter 'bookingId' is not null or undefined
|
|
51
|
-
assertParamExists('
|
|
52
|
-
const localVarPath = `/
|
|
51
|
+
assertParamExists('apiV2BookingsBookingIdGet', 'bookingId', bookingId)
|
|
52
|
+
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
53
53
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
54
54
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
55
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -88,10 +88,10 @@ export const V2BookingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
88
88
|
* @param {*} [options] Override http request option.
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
92
|
// verify required parameter 'bookingId' is not null or undefined
|
|
93
|
-
assertParamExists('
|
|
94
|
-
const localVarPath = `/
|
|
93
|
+
assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
|
|
94
|
+
const localVarPath = `/api/v2/bookings/{bookingId}/pay`
|
|
95
95
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
96
96
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
97
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -127,10 +127,10 @@ export const V2BookingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
127
127
|
* @param {*} [options] Override http request option.
|
|
128
128
|
* @throws {RequiredError}
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
131
131
|
// verify required parameter 'bookingId' is not null or undefined
|
|
132
|
-
assertParamExists('
|
|
133
|
-
const localVarPath = `/
|
|
132
|
+
assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
|
|
133
|
+
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
134
134
|
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
135
135
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
136
136
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -183,8 +183,8 @@ export const V2BookingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
183
183
|
* @param {*} [options] Override http request option.
|
|
184
184
|
* @throws {RequiredError}
|
|
185
185
|
*/
|
|
186
|
-
|
|
187
|
-
const localVarPath = `/
|
|
186
|
+
apiV2BookingsGet: async (hospitalId?: string, hospitalName?: string, dealId?: string, dealName?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, isExternal?: boolean, paymentEnabled?: boolean, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
187
|
+
const localVarPath = `/api/v2/bookings`;
|
|
188
188
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
189
189
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
190
190
|
let baseOptions;
|
|
@@ -285,10 +285,10 @@ export const V2BookingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
285
285
|
* @param {*} [options] Override http request option.
|
|
286
286
|
* @throws {RequiredError}
|
|
287
287
|
*/
|
|
288
|
-
|
|
288
|
+
apiV2BookingsRequestIdPost: async (requestId: string, createBookingCommand?: CreateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
289
289
|
// verify required parameter 'requestId' is not null or undefined
|
|
290
|
-
assertParamExists('
|
|
291
|
-
const localVarPath = `/
|
|
290
|
+
assertParamExists('apiV2BookingsRequestIdPost', 'requestId', requestId)
|
|
291
|
+
const localVarPath = `/api/v2/bookings/{requestId}`
|
|
292
292
|
.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
|
|
293
293
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
294
294
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -323,11 +323,11 @@ export const V2BookingsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
323
323
|
};
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
|
-
*
|
|
326
|
+
* BookingsApi - functional programming interface
|
|
327
327
|
* @export
|
|
328
328
|
*/
|
|
329
|
-
export const
|
|
330
|
-
const localVarAxiosParamCreator =
|
|
329
|
+
export const BookingsApiFp = function(configuration?: Configuration) {
|
|
330
|
+
const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
|
|
331
331
|
return {
|
|
332
332
|
/**
|
|
333
333
|
*
|
|
@@ -337,8 +337,8 @@ export const V2BookingsApiFp = function(configuration?: Configuration) {
|
|
|
337
337
|
* @param {*} [options] Override http request option.
|
|
338
338
|
* @throws {RequiredError}
|
|
339
339
|
*/
|
|
340
|
-
async
|
|
341
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
340
|
+
async apiV2BookingsBookingIdGet(bookingId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
341
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, languageCode, options);
|
|
342
342
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
343
343
|
},
|
|
344
344
|
/**
|
|
@@ -348,8 +348,8 @@ export const V2BookingsApiFp = function(configuration?: Configuration) {
|
|
|
348
348
|
* @param {*} [options] Override http request option.
|
|
349
349
|
* @throws {RequiredError}
|
|
350
350
|
*/
|
|
351
|
-
async
|
|
352
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
351
|
+
async apiV2BookingsBookingIdPayPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
352
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options);
|
|
353
353
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
354
|
},
|
|
355
355
|
/**
|
|
@@ -360,8 +360,8 @@ export const V2BookingsApiFp = function(configuration?: Configuration) {
|
|
|
360
360
|
* @param {*} [options] Override http request option.
|
|
361
361
|
* @throws {RequiredError}
|
|
362
362
|
*/
|
|
363
|
-
async
|
|
364
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
363
|
+
async apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options);
|
|
365
365
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
366
|
},
|
|
367
367
|
/**
|
|
@@ -386,8 +386,8 @@ export const V2BookingsApiFp = function(configuration?: Configuration) {
|
|
|
386
386
|
* @param {*} [options] Override http request option.
|
|
387
387
|
* @throws {RequiredError}
|
|
388
388
|
*/
|
|
389
|
-
async
|
|
390
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
389
|
+
async apiV2BookingsGet(hospitalId?: string, hospitalName?: string, dealId?: string, dealName?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, isExternal?: boolean, paymentEnabled?: boolean, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsModel>> {
|
|
390
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsGet(hospitalId, hospitalName, dealId, dealName, isOpen, isCompleted, status, dealPackageId, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, page, limit, lastRetrieved, options);
|
|
391
391
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
392
392
|
},
|
|
393
393
|
/**
|
|
@@ -398,19 +398,19 @@ export const V2BookingsApiFp = function(configuration?: Configuration) {
|
|
|
398
398
|
* @param {*} [options] Override http request option.
|
|
399
399
|
* @throws {RequiredError}
|
|
400
400
|
*/
|
|
401
|
-
async
|
|
402
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
401
|
+
async apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options);
|
|
403
403
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
404
404
|
},
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
|
-
*
|
|
409
|
+
* BookingsApi - factory interface
|
|
410
410
|
* @export
|
|
411
411
|
*/
|
|
412
|
-
export const
|
|
413
|
-
const localVarFp =
|
|
412
|
+
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
413
|
+
const localVarFp = BookingsApiFp(configuration)
|
|
414
414
|
return {
|
|
415
415
|
/**
|
|
416
416
|
*
|
|
@@ -420,8 +420,8 @@ export const V2BookingsApiFactory = function (configuration?: Configuration, bas
|
|
|
420
420
|
* @param {*} [options] Override http request option.
|
|
421
421
|
* @throws {RequiredError}
|
|
422
422
|
*/
|
|
423
|
-
|
|
424
|
-
return localVarFp.
|
|
423
|
+
apiV2BookingsBookingIdGet(bookingId: string, languageCode?: string, options?: any): AxiosPromise<BookingModel> {
|
|
424
|
+
return localVarFp.apiV2BookingsBookingIdGet(bookingId, languageCode, options).then((request) => request(axios, basePath));
|
|
425
425
|
},
|
|
426
426
|
/**
|
|
427
427
|
*
|
|
@@ -430,8 +430,8 @@ export const V2BookingsApiFactory = function (configuration?: Configuration, bas
|
|
|
430
430
|
* @param {*} [options] Override http request option.
|
|
431
431
|
* @throws {RequiredError}
|
|
432
432
|
*/
|
|
433
|
-
|
|
434
|
-
return localVarFp.
|
|
433
|
+
apiV2BookingsBookingIdPayPost(bookingId: string, options?: any): AxiosPromise<string> {
|
|
434
|
+
return localVarFp.apiV2BookingsBookingIdPayPost(bookingId, options).then((request) => request(axios, basePath));
|
|
435
435
|
},
|
|
436
436
|
/**
|
|
437
437
|
*
|
|
@@ -441,8 +441,8 @@ export const V2BookingsApiFactory = function (configuration?: Configuration, bas
|
|
|
441
441
|
* @param {*} [options] Override http request option.
|
|
442
442
|
* @throws {RequiredError}
|
|
443
443
|
*/
|
|
444
|
-
|
|
445
|
-
return localVarFp.
|
|
444
|
+
apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: any): AxiosPromise<BookingModel> {
|
|
445
|
+
return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(axios, basePath));
|
|
446
446
|
},
|
|
447
447
|
/**
|
|
448
448
|
*
|
|
@@ -466,8 +466,8 @@ export const V2BookingsApiFactory = function (configuration?: Configuration, bas
|
|
|
466
466
|
* @param {*} [options] Override http request option.
|
|
467
467
|
* @throws {RequiredError}
|
|
468
468
|
*/
|
|
469
|
-
|
|
470
|
-
return localVarFp.
|
|
469
|
+
apiV2BookingsGet(hospitalId?: string, hospitalName?: string, dealId?: string, dealName?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, isExternal?: boolean, paymentEnabled?: boolean, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<BookingsModel> {
|
|
470
|
+
return localVarFp.apiV2BookingsGet(hospitalId, hospitalName, dealId, dealName, isOpen, isCompleted, status, dealPackageId, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
471
471
|
},
|
|
472
472
|
/**
|
|
473
473
|
*
|
|
@@ -477,19 +477,19 @@ export const V2BookingsApiFactory = function (configuration?: Configuration, bas
|
|
|
477
477
|
* @param {*} [options] Override http request option.
|
|
478
478
|
* @throws {RequiredError}
|
|
479
479
|
*/
|
|
480
|
-
|
|
481
|
-
return localVarFp.
|
|
480
|
+
apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: any): AxiosPromise<BookingModel> {
|
|
481
|
+
return localVarFp.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options).then((request) => request(axios, basePath));
|
|
482
482
|
},
|
|
483
483
|
};
|
|
484
484
|
};
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
|
-
*
|
|
487
|
+
* BookingsApi - object-oriented interface
|
|
488
488
|
* @export
|
|
489
|
-
* @class
|
|
489
|
+
* @class BookingsApi
|
|
490
490
|
* @extends {BaseAPI}
|
|
491
491
|
*/
|
|
492
|
-
export class
|
|
492
|
+
export class BookingsApi extends BaseAPI {
|
|
493
493
|
/**
|
|
494
494
|
*
|
|
495
495
|
* @summary Get booking.
|
|
@@ -497,10 +497,10 @@ export class V2BookingsApi extends BaseAPI {
|
|
|
497
497
|
* @param {string} [languageCode]
|
|
498
498
|
* @param {*} [options] Override http request option.
|
|
499
499
|
* @throws {RequiredError}
|
|
500
|
-
* @memberof
|
|
500
|
+
* @memberof BookingsApi
|
|
501
501
|
*/
|
|
502
|
-
public
|
|
503
|
-
return
|
|
502
|
+
public apiV2BookingsBookingIdGet(bookingId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
503
|
+
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
/**
|
|
@@ -509,10 +509,10 @@ export class V2BookingsApi extends BaseAPI {
|
|
|
509
509
|
* @param {string} bookingId
|
|
510
510
|
* @param {*} [options] Override http request option.
|
|
511
511
|
* @throws {RequiredError}
|
|
512
|
-
* @memberof
|
|
512
|
+
* @memberof BookingsApi
|
|
513
513
|
*/
|
|
514
|
-
public
|
|
515
|
-
return
|
|
514
|
+
public apiV2BookingsBookingIdPayPost(bookingId: string, options?: AxiosRequestConfig) {
|
|
515
|
+
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPayPost(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
/**
|
|
@@ -522,10 +522,10 @@ export class V2BookingsApi extends BaseAPI {
|
|
|
522
522
|
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
523
523
|
* @param {*} [options] Override http request option.
|
|
524
524
|
* @throws {RequiredError}
|
|
525
|
-
* @memberof
|
|
525
|
+
* @memberof BookingsApi
|
|
526
526
|
*/
|
|
527
|
-
public
|
|
528
|
-
return
|
|
527
|
+
public apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: AxiosRequestConfig) {
|
|
528
|
+
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
/**
|
|
@@ -549,10 +549,10 @@ export class V2BookingsApi extends BaseAPI {
|
|
|
549
549
|
* @param {Date} [lastRetrieved]
|
|
550
550
|
* @param {*} [options] Override http request option.
|
|
551
551
|
* @throws {RequiredError}
|
|
552
|
-
* @memberof
|
|
552
|
+
* @memberof BookingsApi
|
|
553
553
|
*/
|
|
554
|
-
public
|
|
555
|
-
return
|
|
554
|
+
public apiV2BookingsGet(hospitalId?: string, hospitalName?: string, dealId?: string, dealName?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, isExternal?: boolean, paymentEnabled?: boolean, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
555
|
+
return BookingsApiFp(this.configuration).apiV2BookingsGet(hospitalId, hospitalName, dealId, dealName, isOpen, isCompleted, status, dealPackageId, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
/**
|
|
@@ -562,9 +562,9 @@ export class V2BookingsApi extends BaseAPI {
|
|
|
562
562
|
* @param {CreateBookingCommand} [createBookingCommand]
|
|
563
563
|
* @param {*} [options] Override http request option.
|
|
564
564
|
* @throws {RequiredError}
|
|
565
|
-
* @memberof
|
|
565
|
+
* @memberof BookingsApi
|
|
566
566
|
*/
|
|
567
|
-
public
|
|
568
|
-
return
|
|
567
|
+
public apiV2BookingsRequestIdPost(requestId: string, createBookingCommand?: CreateBookingCommand, options?: AxiosRequestConfig) {
|
|
568
|
+
return BookingsApiFp(this.configuration).apiV2BookingsRequestIdPost(requestId, createBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
@@ -29,18 +29,18 @@ import { CreateChatUserCommand } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { UpdateChatUserCommand } from '../models';
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* ChatUsersApi - axios parameter creator
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const ChatUsersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @param {*} [options] Override http request option.
|
|
40
40
|
* @throws {RequiredError}
|
|
41
41
|
*/
|
|
42
|
-
|
|
43
|
-
const localVarPath = `/
|
|
42
|
+
apiV2ChatusersCurrentGet: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
const localVarPath = `/api/v2/chatusers/current`;
|
|
44
44
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
45
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
46
|
let baseOptions;
|
|
@@ -73,8 +73,8 @@ export const V2ChatUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
74
74
|
* @throws {RequiredError}
|
|
75
75
|
*/
|
|
76
|
-
|
|
77
|
-
const localVarPath = `/
|
|
76
|
+
apiV2ChatusersDelete: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
77
|
+
const localVarPath = `/api/v2/chatusers`;
|
|
78
78
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
79
79
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
80
80
|
let baseOptions;
|
|
@@ -112,8 +112,8 @@ export const V2ChatUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
112
112
|
* @param {*} [options] Override http request option.
|
|
113
113
|
* @throws {RequiredError}
|
|
114
114
|
*/
|
|
115
|
-
|
|
116
|
-
const localVarPath = `/
|
|
115
|
+
apiV2ChatusersGet: async (limit?: number, token?: string, userIds?: string, nickname?: string, nicknameStartswith?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
116
|
+
const localVarPath = `/api/v2/chatusers`;
|
|
117
117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
118
118
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
119
119
|
let baseOptions;
|
|
@@ -167,8 +167,8 @@ export const V2ChatUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
167
167
|
* @param {*} [options] Override http request option.
|
|
168
168
|
* @throws {RequiredError}
|
|
169
169
|
*/
|
|
170
|
-
|
|
171
|
-
const localVarPath = `/
|
|
170
|
+
apiV2ChatusersPost: async (createChatUserCommand?: CreateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
171
|
+
const localVarPath = `/api/v2/chatusers`;
|
|
172
172
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
173
173
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
174
174
|
let baseOptions;
|
|
@@ -205,8 +205,8 @@ export const V2ChatUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
205
205
|
* @param {*} [options] Override http request option.
|
|
206
206
|
* @throws {RequiredError}
|
|
207
207
|
*/
|
|
208
|
-
|
|
209
|
-
const localVarPath = `/
|
|
208
|
+
apiV2ChatusersPut: async (updateChatUserCommand?: UpdateChatUserCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
209
|
+
const localVarPath = `/api/v2/chatusers`;
|
|
210
210
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
211
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
212
212
|
let baseOptions;
|
|
@@ -243,10 +243,10 @@ export const V2ChatUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
243
243
|
* @param {*} [options] Override http request option.
|
|
244
244
|
* @throws {RequiredError}
|
|
245
245
|
*/
|
|
246
|
-
|
|
246
|
+
apiV2ChatusersUserIdGet: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
247
247
|
// verify required parameter 'userId' is not null or undefined
|
|
248
|
-
assertParamExists('
|
|
249
|
-
const localVarPath = `/
|
|
248
|
+
assertParamExists('apiV2ChatusersUserIdGet', 'userId', userId)
|
|
249
|
+
const localVarPath = `/api/v2/chatusers/{userId}`
|
|
250
250
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
251
251
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
252
252
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -278,19 +278,19 @@ export const V2ChatUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
278
278
|
};
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
|
-
*
|
|
281
|
+
* ChatUsersApi - functional programming interface
|
|
282
282
|
* @export
|
|
283
283
|
*/
|
|
284
|
-
export const
|
|
285
|
-
const localVarAxiosParamCreator =
|
|
284
|
+
export const ChatUsersApiFp = function(configuration?: Configuration) {
|
|
285
|
+
const localVarAxiosParamCreator = ChatUsersApiAxiosParamCreator(configuration)
|
|
286
286
|
return {
|
|
287
287
|
/**
|
|
288
288
|
*
|
|
289
289
|
* @param {*} [options] Override http request option.
|
|
290
290
|
* @throws {RequiredError}
|
|
291
291
|
*/
|
|
292
|
-
async
|
|
293
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
292
|
+
async apiV2ChatusersCurrentGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersCurrentGet(options);
|
|
294
294
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
295
295
|
},
|
|
296
296
|
/**
|
|
@@ -299,8 +299,8 @@ export const V2ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
299
299
|
* @param {*} [options] Override http request option.
|
|
300
300
|
* @throws {RequiredError}
|
|
301
301
|
*/
|
|
302
|
-
async
|
|
303
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
302
|
+
async apiV2ChatusersDelete(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersDelete(options);
|
|
304
304
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
305
305
|
},
|
|
306
306
|
/**
|
|
@@ -314,8 +314,8 @@ export const V2ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
314
314
|
* @param {*} [options] Override http request option.
|
|
315
315
|
* @throws {RequiredError}
|
|
316
316
|
*/
|
|
317
|
-
async
|
|
318
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
317
|
+
async apiV2ChatusersGet(limit?: number, token?: string, userIds?: string, nickname?: string, nicknameStartswith?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUsersModel>> {
|
|
318
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options);
|
|
319
319
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
320
320
|
},
|
|
321
321
|
/**
|
|
@@ -325,8 +325,8 @@ export const V2ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
325
325
|
* @param {*} [options] Override http request option.
|
|
326
326
|
* @throws {RequiredError}
|
|
327
327
|
*/
|
|
328
|
-
async
|
|
329
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
328
|
+
async apiV2ChatusersPost(createChatUserCommand?: CreateChatUserCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersPost(createChatUserCommand, options);
|
|
330
330
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
331
331
|
},
|
|
332
332
|
/**
|
|
@@ -336,8 +336,8 @@ export const V2ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
336
336
|
* @param {*} [options] Override http request option.
|
|
337
337
|
* @throws {RequiredError}
|
|
338
338
|
*/
|
|
339
|
-
async
|
|
340
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
339
|
+
async apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
340
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersPut(updateChatUserCommand, options);
|
|
341
341
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
342
342
|
},
|
|
343
343
|
/**
|
|
@@ -347,27 +347,27 @@ export const V2ChatUsersApiFp = function(configuration?: Configuration) {
|
|
|
347
347
|
* @param {*} [options] Override http request option.
|
|
348
348
|
* @throws {RequiredError}
|
|
349
349
|
*/
|
|
350
|
-
async
|
|
351
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
350
|
+
async apiV2ChatusersUserIdGet(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatUserModel>> {
|
|
351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ChatusersUserIdGet(userId, options);
|
|
352
352
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
353
353
|
},
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
356
|
|
|
357
357
|
/**
|
|
358
|
-
*
|
|
358
|
+
* ChatUsersApi - factory interface
|
|
359
359
|
* @export
|
|
360
360
|
*/
|
|
361
|
-
export const
|
|
362
|
-
const localVarFp =
|
|
361
|
+
export const ChatUsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
362
|
+
const localVarFp = ChatUsersApiFp(configuration)
|
|
363
363
|
return {
|
|
364
364
|
/**
|
|
365
365
|
*
|
|
366
366
|
* @param {*} [options] Override http request option.
|
|
367
367
|
* @throws {RequiredError}
|
|
368
368
|
*/
|
|
369
|
-
|
|
370
|
-
return localVarFp.
|
|
369
|
+
apiV2ChatusersCurrentGet(options?: any): AxiosPromise<ChatUserModel> {
|
|
370
|
+
return localVarFp.apiV2ChatusersCurrentGet(options).then((request) => request(axios, basePath));
|
|
371
371
|
},
|
|
372
372
|
/**
|
|
373
373
|
*
|
|
@@ -375,8 +375,8 @@ export const V2ChatUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
375
375
|
* @param {*} [options] Override http request option.
|
|
376
376
|
* @throws {RequiredError}
|
|
377
377
|
*/
|
|
378
|
-
|
|
379
|
-
return localVarFp.
|
|
378
|
+
apiV2ChatusersDelete(options?: any): AxiosPromise<boolean> {
|
|
379
|
+
return localVarFp.apiV2ChatusersDelete(options).then((request) => request(axios, basePath));
|
|
380
380
|
},
|
|
381
381
|
/**
|
|
382
382
|
*
|
|
@@ -389,8 +389,8 @@ export const V2ChatUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
389
389
|
* @param {*} [options] Override http request option.
|
|
390
390
|
* @throws {RequiredError}
|
|
391
391
|
*/
|
|
392
|
-
|
|
393
|
-
return localVarFp.
|
|
392
|
+
apiV2ChatusersGet(limit?: number, token?: string, userIds?: string, nickname?: string, nicknameStartswith?: string, options?: any): AxiosPromise<ChatUsersModel> {
|
|
393
|
+
return localVarFp.apiV2ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options).then((request) => request(axios, basePath));
|
|
394
394
|
},
|
|
395
395
|
/**
|
|
396
396
|
*
|
|
@@ -399,8 +399,8 @@ export const V2ChatUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
399
399
|
* @param {*} [options] Override http request option.
|
|
400
400
|
* @throws {RequiredError}
|
|
401
401
|
*/
|
|
402
|
-
|
|
403
|
-
return localVarFp.
|
|
402
|
+
apiV2ChatusersPost(createChatUserCommand?: CreateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
|
|
403
|
+
return localVarFp.apiV2ChatusersPost(createChatUserCommand, options).then((request) => request(axios, basePath));
|
|
404
404
|
},
|
|
405
405
|
/**
|
|
406
406
|
*
|
|
@@ -409,8 +409,8 @@ export const V2ChatUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
409
409
|
* @param {*} [options] Override http request option.
|
|
410
410
|
* @throws {RequiredError}
|
|
411
411
|
*/
|
|
412
|
-
|
|
413
|
-
return localVarFp.
|
|
412
|
+
apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: any): AxiosPromise<ChatUserModel> {
|
|
413
|
+
return localVarFp.apiV2ChatusersPut(updateChatUserCommand, options).then((request) => request(axios, basePath));
|
|
414
414
|
},
|
|
415
415
|
/**
|
|
416
416
|
*
|
|
@@ -419,27 +419,27 @@ export const V2ChatUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
419
419
|
* @param {*} [options] Override http request option.
|
|
420
420
|
* @throws {RequiredError}
|
|
421
421
|
*/
|
|
422
|
-
|
|
423
|
-
return localVarFp.
|
|
422
|
+
apiV2ChatusersUserIdGet(userId: string, options?: any): AxiosPromise<ChatUserModel> {
|
|
423
|
+
return localVarFp.apiV2ChatusersUserIdGet(userId, options).then((request) => request(axios, basePath));
|
|
424
424
|
},
|
|
425
425
|
};
|
|
426
426
|
};
|
|
427
427
|
|
|
428
428
|
/**
|
|
429
|
-
*
|
|
429
|
+
* ChatUsersApi - object-oriented interface
|
|
430
430
|
* @export
|
|
431
|
-
* @class
|
|
431
|
+
* @class ChatUsersApi
|
|
432
432
|
* @extends {BaseAPI}
|
|
433
433
|
*/
|
|
434
|
-
export class
|
|
434
|
+
export class ChatUsersApi extends BaseAPI {
|
|
435
435
|
/**
|
|
436
436
|
*
|
|
437
437
|
* @param {*} [options] Override http request option.
|
|
438
438
|
* @throws {RequiredError}
|
|
439
|
-
* @memberof
|
|
439
|
+
* @memberof ChatUsersApi
|
|
440
440
|
*/
|
|
441
|
-
public
|
|
442
|
-
return
|
|
441
|
+
public apiV2ChatusersCurrentGet(options?: AxiosRequestConfig) {
|
|
442
|
+
return ChatUsersApiFp(this.configuration).apiV2ChatusersCurrentGet(options).then((request) => request(this.axios, this.basePath));
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
/**
|
|
@@ -447,10 +447,10 @@ export class V2ChatUsersApi extends BaseAPI {
|
|
|
447
447
|
* @summary Delete chatUser.
|
|
448
448
|
* @param {*} [options] Override http request option.
|
|
449
449
|
* @throws {RequiredError}
|
|
450
|
-
* @memberof
|
|
450
|
+
* @memberof ChatUsersApi
|
|
451
451
|
*/
|
|
452
|
-
public
|
|
453
|
-
return
|
|
452
|
+
public apiV2ChatusersDelete(options?: AxiosRequestConfig) {
|
|
453
|
+
return ChatUsersApiFp(this.configuration).apiV2ChatusersDelete(options).then((request) => request(this.axios, this.basePath));
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
/**
|
|
@@ -463,10 +463,10 @@ export class V2ChatUsersApi extends BaseAPI {
|
|
|
463
463
|
* @param {string} [nicknameStartswith]
|
|
464
464
|
* @param {*} [options] Override http request option.
|
|
465
465
|
* @throws {RequiredError}
|
|
466
|
-
* @memberof
|
|
466
|
+
* @memberof ChatUsersApi
|
|
467
467
|
*/
|
|
468
|
-
public
|
|
469
|
-
return
|
|
468
|
+
public apiV2ChatusersGet(limit?: number, token?: string, userIds?: string, nickname?: string, nicknameStartswith?: string, options?: AxiosRequestConfig) {
|
|
469
|
+
return ChatUsersApiFp(this.configuration).apiV2ChatusersGet(limit, token, userIds, nickname, nicknameStartswith, options).then((request) => request(this.axios, this.basePath));
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
/**
|
|
@@ -475,10 +475,10 @@ export class V2ChatUsersApi extends BaseAPI {
|
|
|
475
475
|
* @param {CreateChatUserCommand} [createChatUserCommand]
|
|
476
476
|
* @param {*} [options] Override http request option.
|
|
477
477
|
* @throws {RequiredError}
|
|
478
|
-
* @memberof
|
|
478
|
+
* @memberof ChatUsersApi
|
|
479
479
|
*/
|
|
480
|
-
public
|
|
481
|
-
return
|
|
480
|
+
public apiV2ChatusersPost(createChatUserCommand?: CreateChatUserCommand, options?: AxiosRequestConfig) {
|
|
481
|
+
return ChatUsersApiFp(this.configuration).apiV2ChatusersPost(createChatUserCommand, options).then((request) => request(this.axios, this.basePath));
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
/**
|
|
@@ -487,10 +487,10 @@ export class V2ChatUsersApi extends BaseAPI {
|
|
|
487
487
|
* @param {UpdateChatUserCommand} [updateChatUserCommand]
|
|
488
488
|
* @param {*} [options] Override http request option.
|
|
489
489
|
* @throws {RequiredError}
|
|
490
|
-
* @memberof
|
|
490
|
+
* @memberof ChatUsersApi
|
|
491
491
|
*/
|
|
492
|
-
public
|
|
493
|
-
return
|
|
492
|
+
public apiV2ChatusersPut(updateChatUserCommand?: UpdateChatUserCommand, options?: AxiosRequestConfig) {
|
|
493
|
+
return ChatUsersApiFp(this.configuration).apiV2ChatusersPut(updateChatUserCommand, options).then((request) => request(this.axios, this.basePath));
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
/**
|
|
@@ -499,9 +499,9 @@ export class V2ChatUsersApi extends BaseAPI {
|
|
|
499
499
|
* @param {string} userId
|
|
500
500
|
* @param {*} [options] Override http request option.
|
|
501
501
|
* @throws {RequiredError}
|
|
502
|
-
* @memberof
|
|
502
|
+
* @memberof ChatUsersApi
|
|
503
503
|
*/
|
|
504
|
-
public
|
|
505
|
-
return
|
|
504
|
+
public apiV2ChatusersUserIdGet(userId: string, options?: AxiosRequestConfig) {
|
|
505
|
+
return ChatUsersApiFp(this.configuration).apiV2ChatusersUserIdGet(userId, options).then((request) => request(this.axios, this.basePath));
|
|
506
506
|
}
|
|
507
507
|
}
|