ch-admin-api-client-typescript 5.4.6 → 5.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/deals-api.d.ts +0 -303
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +0 -424
- package/lib/api/vonage-accounts-api.d.ts +220 -129
- package/lib/api/vonage-accounts-api.d.ts.map +1 -1
- package/lib/api/vonage-accounts-api.js +309 -178
- package/lib/api/vonage-applications-api.d.ts +12 -4
- package/lib/api/vonage-applications-api.d.ts.map +1 -1
- package/lib/api/vonage-applications-api.js +12 -4
- package/lib/api/vonage-numbers-api.d.ts +8 -4
- package/lib/api/vonage-numbers-api.d.ts.map +1 -1
- package/lib/api/vonage-numbers-api.js +8 -4
- package/lib/api/vonage-users-api.d.ts +95 -5
- package/lib/api/vonage-users-api.d.ts.map +1 -1
- package/lib/api/vonage-users-api.js +120 -7
- package/lib/models/appointment-type.d.ts +0 -1
- package/lib/models/appointment-type.d.ts.map +1 -1
- package/lib/models/appointment-type.js +0 -1
- package/lib/models/create-deal-command.d.ts +0 -20
- package/lib/models/create-deal-command.d.ts.map +1 -1
- package/lib/models/create-doctor-affiliation-command.d.ts +0 -13
- package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/create-hospital-command.d.ts +3 -9
- package/lib/models/create-hospital-command.d.ts.map +1 -1
- package/lib/models/deal-item-model.d.ts +0 -13
- package/lib/models/deal-item-model.d.ts.map +1 -1
- package/lib/models/deal-model.d.ts +0 -13
- package/lib/models/deal-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-item-model.d.ts +6 -19
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +6 -19
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/hospital-domain-input-model.d.ts +50 -0
- package/lib/models/hospital-domain-input-model.d.ts.map +1 -0
- package/lib/models/hospital-domain-model.d.ts +50 -0
- package/lib/models/hospital-domain-model.d.ts.map +1 -0
- package/lib/models/hospital-feature-detail-input-model.d.ts +49 -0
- package/lib/models/hospital-feature-detail-input-model.d.ts.map +1 -0
- package/lib/models/hospital-feature-detail-model.d.ts +56 -0
- package/lib/models/hospital-feature-detail-model.d.ts.map +1 -0
- package/lib/models/hospital-feature-input-model.d.ts +32 -0
- package/lib/models/hospital-feature-input-model.d.ts.map +1 -0
- package/lib/models/{feature-model.d.ts → hospital-feature-model.d.ts} +10 -15
- package/lib/models/hospital-feature-model.d.ts.map +1 -0
- package/lib/models/hospital-item-model.d.ts +28 -4
- package/lib/models/hospital-item-model.d.ts.map +1 -1
- package/lib/models/hospital-model.d.ts +28 -4
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +12 -8
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +12 -8
- package/lib/models/links.d.ts +19 -9
- package/lib/models/links.d.ts.map +1 -1
- package/lib/models/{get-users-result-embedded.d.ts → list-users-result-embedded.d.ts} +4 -4
- package/lib/models/list-users-result-embedded.d.ts.map +1 -0
- package/lib/models/{get-users-result.d.ts → list-users-result.d.ts} +10 -10
- package/lib/models/list-users-result.d.ts.map +1 -0
- package/lib/models/survey-form-simple-mapping-model.d.ts +39 -0
- package/lib/models/survey-form-simple-mapping-model.d.ts.map +1 -0
- package/lib/models/survey-form-simple-mapping-model.js +15 -0
- package/lib/models/transfer-number-command.d.ts +43 -0
- package/lib/models/transfer-number-command.d.ts.map +1 -0
- package/lib/models/transfer-number-command.js +15 -0
- package/lib/models/transfer-number-result.d.ts +49 -0
- package/lib/models/transfer-number-result.d.ts.map +1 -0
- package/lib/models/transfer-number-result.js +15 -0
- package/lib/models/translation-simple-model.d.ts +55 -0
- package/lib/models/translation-simple-model.d.ts.map +1 -0
- package/lib/models/translation-simple-model.js +15 -0
- package/lib/models/update-deal-command.d.ts +0 -20
- package/lib/models/update-deal-command.d.ts.map +1 -1
- package/lib/models/update-doctor-affiliation-command.d.ts +0 -13
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-command.d.ts +3 -9
- package/lib/models/update-hospital-command.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +12 -8
- package/src/api/deals-api.ts +0 -532
- package/src/api/vonage-accounts-api.ts +354 -227
- package/src/api/vonage-applications-api.ts +12 -4
- package/src/api/vonage-numbers-api.ts +8 -4
- package/src/api/vonage-users-api.ts +153 -8
- package/src/models/appointment-type.ts +0 -1
- package/src/models/create-deal-command.ts +0 -24
- package/src/models/create-doctor-affiliation-command.ts +0 -15
- package/src/models/create-hospital-command.ts +4 -10
- package/src/models/deal-item-model.ts +0 -15
- package/src/models/deal-model.ts +0 -15
- package/src/models/doctor-affiliation-item-model.ts +6 -21
- package/src/models/doctor-affiliation-model.ts +6 -21
- package/src/models/hospital-domain-input-model.ts +57 -0
- package/src/models/hospital-domain-model.ts +57 -0
- package/src/models/hospital-feature-detail-input-model.ts +54 -0
- package/src/models/hospital-feature-detail-model.ts +63 -0
- package/src/models/hospital-feature-input-model.ts +39 -0
- package/src/models/{save-deal-appointment-timetable-overrides-command.ts → hospital-feature-model.ts} +12 -6
- package/src/models/hospital-item-model.ts +30 -6
- package/src/models/hospital-model.ts +30 -6
- package/src/models/index.ts +12 -8
- package/src/models/links.ts +19 -13
- package/src/models/{get-users-result-embedded.ts → list-users-result-embedded.ts} +3 -3
- package/src/models/{get-users-result.ts → list-users-result.ts} +10 -10
- package/src/models/survey-form-simple-mapping-model.ts +48 -0
- package/src/models/{feature-model.ts → transfer-number-command.ts} +17 -11
- package/src/models/transfer-number-result.ts +54 -0
- package/src/models/translation-simple-model.ts +60 -0
- package/src/models/update-deal-command.ts +0 -24
- package/src/models/update-doctor-affiliation-command.ts +0 -15
- package/src/models/update-hospital-command.ts +4 -10
- package/lib/models/batch-deal-appointment-timetables-command.d.ts +0 -39
- package/lib/models/batch-deal-appointment-timetables-command.d.ts.map +0 -1
- package/lib/models/feature-model.d.ts.map +0 -1
- package/lib/models/first.d.ts +0 -25
- package/lib/models/first.d.ts.map +0 -1
- package/lib/models/get-users-result-embedded.d.ts.map +0 -1
- package/lib/models/get-users-result.d.ts.map +0 -1
- package/lib/models/last.d.ts +0 -25
- package/lib/models/last.d.ts.map +0 -1
- package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts +0 -26
- package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts.map +0 -1
- package/lib/models/self.d.ts +0 -25
- package/lib/models/self.d.ts.map +0 -1
- package/src/models/batch-deal-appointment-timetables-command.ts +0 -48
- package/src/models/first.ts +0 -30
- package/src/models/last.ts +0 -30
- package/src/models/self.ts +0 -30
- /package/lib/models/{batch-deal-appointment-timetables-command.js → hospital-domain-input-model.js} +0 -0
- /package/lib/models/{feature-model.js → hospital-domain-model.js} +0 -0
- /package/lib/models/{first.js → hospital-feature-detail-input-model.js} +0 -0
- /package/lib/models/{get-users-result-embedded.js → hospital-feature-detail-model.js} +0 -0
- /package/lib/models/{get-users-result.js → hospital-feature-input-model.js} +0 -0
- /package/lib/models/{last.js → hospital-feature-model.js} +0 -0
- /package/lib/models/{save-deal-appointment-timetable-overrides-command.js → list-users-result-embedded.js} +0 -0
- /package/lib/models/{self.js → list-users-result.js} +0 -0
package/lib/api/deals-api.js
CHANGED
|
@@ -92,236 +92,6 @@ var base_1 = require("../base");
|
|
|
92
92
|
var DealsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @summary Get DealAppointment tiemtable overrides
|
|
98
|
-
* @param {string} dealId
|
|
99
|
-
* @param {boolean} [includesPreviousItems]
|
|
100
|
-
* @param {Date} [startDate]
|
|
101
|
-
* @param {Date} [endDate]
|
|
102
|
-
* @param {DayOfWeek} [dayOfWeek]
|
|
103
|
-
* @param {number} [page]
|
|
104
|
-
* @param {number} [limit]
|
|
105
|
-
* @param {Date} [lastRetrieved]
|
|
106
|
-
* @param {*} [options] Override http request option.
|
|
107
|
-
* @throws {RequiredError}
|
|
108
|
-
*/
|
|
109
|
-
apiV1DealsDealIdAppointmenttimetableoverridesGet: function (dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
110
|
-
if (options === void 0) { options = {}; }
|
|
111
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
113
|
-
return __generator(this, function (_a) {
|
|
114
|
-
switch (_a.label) {
|
|
115
|
-
case 0:
|
|
116
|
-
// verify required parameter 'dealId' is not null or undefined
|
|
117
|
-
(0, common_1.assertParamExists)('apiV1DealsDealIdAppointmenttimetableoverridesGet', 'dealId', dealId);
|
|
118
|
-
localVarPath = "/api/v1/deals/{dealId}/appointmenttimetableoverrides"
|
|
119
|
-
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
|
|
120
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
121
|
-
if (configuration) {
|
|
122
|
-
baseOptions = configuration.baseOptions;
|
|
123
|
-
}
|
|
124
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
125
|
-
localVarHeaderParameter = {};
|
|
126
|
-
localVarQueryParameter = {};
|
|
127
|
-
// authentication oauth2 required
|
|
128
|
-
// oauth required
|
|
129
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
130
|
-
case 1:
|
|
131
|
-
// authentication oauth2 required
|
|
132
|
-
// oauth required
|
|
133
|
-
_a.sent();
|
|
134
|
-
if (includesPreviousItems !== undefined) {
|
|
135
|
-
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
136
|
-
}
|
|
137
|
-
if (startDate !== undefined) {
|
|
138
|
-
localVarQueryParameter['StartDate'] = (startDate instanceof Date) ?
|
|
139
|
-
startDate.toISOString() :
|
|
140
|
-
startDate;
|
|
141
|
-
}
|
|
142
|
-
if (endDate !== undefined) {
|
|
143
|
-
localVarQueryParameter['EndDate'] = (endDate instanceof Date) ?
|
|
144
|
-
endDate.toISOString() :
|
|
145
|
-
endDate;
|
|
146
|
-
}
|
|
147
|
-
if (dayOfWeek !== undefined) {
|
|
148
|
-
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
149
|
-
}
|
|
150
|
-
if (page !== undefined) {
|
|
151
|
-
localVarQueryParameter['page'] = page;
|
|
152
|
-
}
|
|
153
|
-
if (limit !== undefined) {
|
|
154
|
-
localVarQueryParameter['limit'] = limit;
|
|
155
|
-
}
|
|
156
|
-
if (lastRetrieved !== undefined) {
|
|
157
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
158
|
-
lastRetrieved.toISOString() :
|
|
159
|
-
lastRetrieved;
|
|
160
|
-
}
|
|
161
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
162
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
163
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
164
|
-
return [2 /*return*/, {
|
|
165
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
166
|
-
options: localVarRequestOptions,
|
|
167
|
-
}];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
},
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @summary Save Deal appointment timetable overrides
|
|
175
|
-
* @param {string} dealId
|
|
176
|
-
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
177
|
-
* @param {*} [options] Override http request option.
|
|
178
|
-
* @throws {RequiredError}
|
|
179
|
-
*/
|
|
180
|
-
apiV1DealsDealIdAppointmenttimetableoverridesPost: function (dealId, saveDealAppointmentTimetableOverridesCommand, options) {
|
|
181
|
-
if (options === void 0) { options = {}; }
|
|
182
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
183
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
184
|
-
return __generator(this, function (_a) {
|
|
185
|
-
switch (_a.label) {
|
|
186
|
-
case 0:
|
|
187
|
-
// verify required parameter 'dealId' is not null or undefined
|
|
188
|
-
(0, common_1.assertParamExists)('apiV1DealsDealIdAppointmenttimetableoverridesPost', 'dealId', dealId);
|
|
189
|
-
localVarPath = "/api/v1/deals/{dealId}/appointmenttimetableoverrides"
|
|
190
|
-
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
|
|
191
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
192
|
-
if (configuration) {
|
|
193
|
-
baseOptions = configuration.baseOptions;
|
|
194
|
-
}
|
|
195
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
196
|
-
localVarHeaderParameter = {};
|
|
197
|
-
localVarQueryParameter = {};
|
|
198
|
-
// authentication oauth2 required
|
|
199
|
-
// oauth required
|
|
200
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
201
|
-
case 1:
|
|
202
|
-
// authentication oauth2 required
|
|
203
|
-
// oauth required
|
|
204
|
-
_a.sent();
|
|
205
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
206
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
207
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
209
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveDealAppointmentTimetableOverridesCommand, localVarRequestOptions, configuration);
|
|
210
|
-
return [2 /*return*/, {
|
|
211
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
212
|
-
options: localVarRequestOptions,
|
|
213
|
-
}];
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
});
|
|
217
|
-
},
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
* @summary Add, update and delete deal appointment timetable
|
|
221
|
-
* @param {string} dealId
|
|
222
|
-
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
223
|
-
* @param {*} [options] Override http request option.
|
|
224
|
-
* @throws {RequiredError}
|
|
225
|
-
*/
|
|
226
|
-
apiV1DealsDealIdAppointmenttimetablesBatchPost: function (dealId, batchDealAppointmentTimetablesCommand, options) {
|
|
227
|
-
if (options === void 0) { options = {}; }
|
|
228
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
229
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
230
|
-
return __generator(this, function (_a) {
|
|
231
|
-
switch (_a.label) {
|
|
232
|
-
case 0:
|
|
233
|
-
// verify required parameter 'dealId' is not null or undefined
|
|
234
|
-
(0, common_1.assertParamExists)('apiV1DealsDealIdAppointmenttimetablesBatchPost', 'dealId', dealId);
|
|
235
|
-
localVarPath = "/api/v1/deals/{dealId}/appointmenttimetables/batch"
|
|
236
|
-
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
|
|
237
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
238
|
-
if (configuration) {
|
|
239
|
-
baseOptions = configuration.baseOptions;
|
|
240
|
-
}
|
|
241
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
242
|
-
localVarHeaderParameter = {};
|
|
243
|
-
localVarQueryParameter = {};
|
|
244
|
-
// authentication oauth2 required
|
|
245
|
-
// oauth required
|
|
246
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
247
|
-
case 1:
|
|
248
|
-
// authentication oauth2 required
|
|
249
|
-
// oauth required
|
|
250
|
-
_a.sent();
|
|
251
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
252
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
253
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
255
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchDealAppointmentTimetablesCommand, localVarRequestOptions, configuration);
|
|
256
|
-
return [2 /*return*/, {
|
|
257
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
258
|
-
options: localVarRequestOptions,
|
|
259
|
-
}];
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
});
|
|
263
|
-
},
|
|
264
|
-
/**
|
|
265
|
-
*
|
|
266
|
-
* @summary Get deal appointment timetables
|
|
267
|
-
* @param {string} dealId
|
|
268
|
-
* @param {DayOfWeek} [dayOfWeek]
|
|
269
|
-
* @param {number} [page]
|
|
270
|
-
* @param {number} [limit]
|
|
271
|
-
* @param {Date} [lastRetrieved]
|
|
272
|
-
* @param {*} [options] Override http request option.
|
|
273
|
-
* @throws {RequiredError}
|
|
274
|
-
*/
|
|
275
|
-
apiV1DealsDealIdAppointmenttimetablesGet: function (dealId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
276
|
-
if (options === void 0) { options = {}; }
|
|
277
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
278
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
279
|
-
return __generator(this, function (_a) {
|
|
280
|
-
switch (_a.label) {
|
|
281
|
-
case 0:
|
|
282
|
-
// verify required parameter 'dealId' is not null or undefined
|
|
283
|
-
(0, common_1.assertParamExists)('apiV1DealsDealIdAppointmenttimetablesGet', 'dealId', dealId);
|
|
284
|
-
localVarPath = "/api/v1/deals/{dealId}/appointmenttimetables"
|
|
285
|
-
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
|
|
286
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
287
|
-
if (configuration) {
|
|
288
|
-
baseOptions = configuration.baseOptions;
|
|
289
|
-
}
|
|
290
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
291
|
-
localVarHeaderParameter = {};
|
|
292
|
-
localVarQueryParameter = {};
|
|
293
|
-
// authentication oauth2 required
|
|
294
|
-
// oauth required
|
|
295
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
296
|
-
case 1:
|
|
297
|
-
// authentication oauth2 required
|
|
298
|
-
// oauth required
|
|
299
|
-
_a.sent();
|
|
300
|
-
if (dayOfWeek !== undefined) {
|
|
301
|
-
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
302
|
-
}
|
|
303
|
-
if (page !== undefined) {
|
|
304
|
-
localVarQueryParameter['page'] = page;
|
|
305
|
-
}
|
|
306
|
-
if (limit !== undefined) {
|
|
307
|
-
localVarQueryParameter['limit'] = limit;
|
|
308
|
-
}
|
|
309
|
-
if (lastRetrieved !== undefined) {
|
|
310
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
311
|
-
lastRetrieved.toISOString() :
|
|
312
|
-
lastRetrieved;
|
|
313
|
-
}
|
|
314
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
315
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
316
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
317
|
-
return [2 /*return*/, {
|
|
318
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
319
|
-
options: localVarRequestOptions,
|
|
320
|
-
}];
|
|
321
|
-
}
|
|
322
|
-
});
|
|
323
|
-
});
|
|
324
|
-
},
|
|
325
95
|
/**
|
|
326
96
|
*
|
|
327
97
|
* @summary Delete deal.
|
|
@@ -1658,99 +1428,6 @@ exports.DealsApiAxiosParamCreator = DealsApiAxiosParamCreator;
|
|
|
1658
1428
|
var DealsApiFp = function (configuration) {
|
|
1659
1429
|
var localVarAxiosParamCreator = (0, exports.DealsApiAxiosParamCreator)(configuration);
|
|
1660
1430
|
return {
|
|
1661
|
-
/**
|
|
1662
|
-
*
|
|
1663
|
-
* @summary Get DealAppointment tiemtable overrides
|
|
1664
|
-
* @param {string} dealId
|
|
1665
|
-
* @param {boolean} [includesPreviousItems]
|
|
1666
|
-
* @param {Date} [startDate]
|
|
1667
|
-
* @param {Date} [endDate]
|
|
1668
|
-
* @param {DayOfWeek} [dayOfWeek]
|
|
1669
|
-
* @param {number} [page]
|
|
1670
|
-
* @param {number} [limit]
|
|
1671
|
-
* @param {Date} [lastRetrieved]
|
|
1672
|
-
* @param {*} [options] Override http request option.
|
|
1673
|
-
* @throws {RequiredError}
|
|
1674
|
-
*/
|
|
1675
|
-
apiV1DealsDealIdAppointmenttimetableoverridesGet: function (dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
1676
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1677
|
-
var localVarAxiosArgs;
|
|
1678
|
-
return __generator(this, function (_a) {
|
|
1679
|
-
switch (_a.label) {
|
|
1680
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options)];
|
|
1681
|
-
case 1:
|
|
1682
|
-
localVarAxiosArgs = _a.sent();
|
|
1683
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1684
|
-
}
|
|
1685
|
-
});
|
|
1686
|
-
});
|
|
1687
|
-
},
|
|
1688
|
-
/**
|
|
1689
|
-
*
|
|
1690
|
-
* @summary Save Deal appointment timetable overrides
|
|
1691
|
-
* @param {string} dealId
|
|
1692
|
-
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
1693
|
-
* @param {*} [options] Override http request option.
|
|
1694
|
-
* @throws {RequiredError}
|
|
1695
|
-
*/
|
|
1696
|
-
apiV1DealsDealIdAppointmenttimetableoverridesPost: function (dealId, saveDealAppointmentTimetableOverridesCommand, options) {
|
|
1697
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1698
|
-
var localVarAxiosArgs;
|
|
1699
|
-
return __generator(this, function (_a) {
|
|
1700
|
-
switch (_a.label) {
|
|
1701
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options)];
|
|
1702
|
-
case 1:
|
|
1703
|
-
localVarAxiosArgs = _a.sent();
|
|
1704
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1705
|
-
}
|
|
1706
|
-
});
|
|
1707
|
-
});
|
|
1708
|
-
},
|
|
1709
|
-
/**
|
|
1710
|
-
*
|
|
1711
|
-
* @summary Add, update and delete deal appointment timetable
|
|
1712
|
-
* @param {string} dealId
|
|
1713
|
-
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
1714
|
-
* @param {*} [options] Override http request option.
|
|
1715
|
-
* @throws {RequiredError}
|
|
1716
|
-
*/
|
|
1717
|
-
apiV1DealsDealIdAppointmenttimetablesBatchPost: function (dealId, batchDealAppointmentTimetablesCommand, options) {
|
|
1718
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1719
|
-
var localVarAxiosArgs;
|
|
1720
|
-
return __generator(this, function (_a) {
|
|
1721
|
-
switch (_a.label) {
|
|
1722
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options)];
|
|
1723
|
-
case 1:
|
|
1724
|
-
localVarAxiosArgs = _a.sent();
|
|
1725
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1726
|
-
}
|
|
1727
|
-
});
|
|
1728
|
-
});
|
|
1729
|
-
},
|
|
1730
|
-
/**
|
|
1731
|
-
*
|
|
1732
|
-
* @summary Get deal appointment timetables
|
|
1733
|
-
* @param {string} dealId
|
|
1734
|
-
* @param {DayOfWeek} [dayOfWeek]
|
|
1735
|
-
* @param {number} [page]
|
|
1736
|
-
* @param {number} [limit]
|
|
1737
|
-
* @param {Date} [lastRetrieved]
|
|
1738
|
-
* @param {*} [options] Override http request option.
|
|
1739
|
-
* @throws {RequiredError}
|
|
1740
|
-
*/
|
|
1741
|
-
apiV1DealsDealIdAppointmenttimetablesGet: function (dealId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
1742
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1743
|
-
var localVarAxiosArgs;
|
|
1744
|
-
return __generator(this, function (_a) {
|
|
1745
|
-
switch (_a.label) {
|
|
1746
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options)];
|
|
1747
|
-
case 1:
|
|
1748
|
-
localVarAxiosArgs = _a.sent();
|
|
1749
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1750
|
-
}
|
|
1751
|
-
});
|
|
1752
|
-
});
|
|
1753
|
-
},
|
|
1754
1431
|
/**
|
|
1755
1432
|
*
|
|
1756
1433
|
* @summary Delete deal.
|
|
@@ -2294,59 +1971,6 @@ exports.DealsApiFp = DealsApiFp;
|
|
|
2294
1971
|
var DealsApiFactory = function (configuration, basePath, axios) {
|
|
2295
1972
|
var localVarFp = (0, exports.DealsApiFp)(configuration);
|
|
2296
1973
|
return {
|
|
2297
|
-
/**
|
|
2298
|
-
*
|
|
2299
|
-
* @summary Get DealAppointment tiemtable overrides
|
|
2300
|
-
* @param {string} dealId
|
|
2301
|
-
* @param {boolean} [includesPreviousItems]
|
|
2302
|
-
* @param {Date} [startDate]
|
|
2303
|
-
* @param {Date} [endDate]
|
|
2304
|
-
* @param {DayOfWeek} [dayOfWeek]
|
|
2305
|
-
* @param {number} [page]
|
|
2306
|
-
* @param {number} [limit]
|
|
2307
|
-
* @param {Date} [lastRetrieved]
|
|
2308
|
-
* @param {*} [options] Override http request option.
|
|
2309
|
-
* @throws {RequiredError}
|
|
2310
|
-
*/
|
|
2311
|
-
apiV1DealsDealIdAppointmenttimetableoverridesGet: function (dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2312
|
-
return localVarFp.apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2313
|
-
},
|
|
2314
|
-
/**
|
|
2315
|
-
*
|
|
2316
|
-
* @summary Save Deal appointment timetable overrides
|
|
2317
|
-
* @param {string} dealId
|
|
2318
|
-
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
2319
|
-
* @param {*} [options] Override http request option.
|
|
2320
|
-
* @throws {RequiredError}
|
|
2321
|
-
*/
|
|
2322
|
-
apiV1DealsDealIdAppointmenttimetableoverridesPost: function (dealId, saveDealAppointmentTimetableOverridesCommand, options) {
|
|
2323
|
-
return localVarFp.apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2324
|
-
},
|
|
2325
|
-
/**
|
|
2326
|
-
*
|
|
2327
|
-
* @summary Add, update and delete deal appointment timetable
|
|
2328
|
-
* @param {string} dealId
|
|
2329
|
-
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
2330
|
-
* @param {*} [options] Override http request option.
|
|
2331
|
-
* @throws {RequiredError}
|
|
2332
|
-
*/
|
|
2333
|
-
apiV1DealsDealIdAppointmenttimetablesBatchPost: function (dealId, batchDealAppointmentTimetablesCommand, options) {
|
|
2334
|
-
return localVarFp.apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2335
|
-
},
|
|
2336
|
-
/**
|
|
2337
|
-
*
|
|
2338
|
-
* @summary Get deal appointment timetables
|
|
2339
|
-
* @param {string} dealId
|
|
2340
|
-
* @param {DayOfWeek} [dayOfWeek]
|
|
2341
|
-
* @param {number} [page]
|
|
2342
|
-
* @param {number} [limit]
|
|
2343
|
-
* @param {Date} [lastRetrieved]
|
|
2344
|
-
* @param {*} [options] Override http request option.
|
|
2345
|
-
* @throws {RequiredError}
|
|
2346
|
-
*/
|
|
2347
|
-
apiV1DealsDealIdAppointmenttimetablesGet: function (dealId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2348
|
-
return localVarFp.apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2349
|
-
},
|
|
2350
1974
|
/**
|
|
2351
1975
|
*
|
|
2352
1976
|
* @summary Delete deal.
|
|
@@ -2674,54 +2298,6 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
2674
2298
|
function DealsApi() {
|
|
2675
2299
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2676
2300
|
}
|
|
2677
|
-
/**
|
|
2678
|
-
*
|
|
2679
|
-
* @summary Get DealAppointment tiemtable overrides
|
|
2680
|
-
* @param {DealsApiApiV1DealsDealIdAppointmenttimetableoverridesGetRequest} requestParameters Request parameters.
|
|
2681
|
-
* @param {*} [options] Override http request option.
|
|
2682
|
-
* @throws {RequiredError}
|
|
2683
|
-
* @memberof DealsApi
|
|
2684
|
-
*/
|
|
2685
|
-
DealsApi.prototype.apiV1DealsDealIdAppointmenttimetableoverridesGet = function (requestParameters, options) {
|
|
2686
|
-
var _this = this;
|
|
2687
|
-
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdAppointmenttimetableoverridesGet(requestParameters.dealId, requestParameters.includesPreviousItems, requestParameters.startDate, requestParameters.endDate, requestParameters.dayOfWeek, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2688
|
-
};
|
|
2689
|
-
/**
|
|
2690
|
-
*
|
|
2691
|
-
* @summary Save Deal appointment timetable overrides
|
|
2692
|
-
* @param {DealsApiApiV1DealsDealIdAppointmenttimetableoverridesPostRequest} requestParameters Request parameters.
|
|
2693
|
-
* @param {*} [options] Override http request option.
|
|
2694
|
-
* @throws {RequiredError}
|
|
2695
|
-
* @memberof DealsApi
|
|
2696
|
-
*/
|
|
2697
|
-
DealsApi.prototype.apiV1DealsDealIdAppointmenttimetableoverridesPost = function (requestParameters, options) {
|
|
2698
|
-
var _this = this;
|
|
2699
|
-
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdAppointmenttimetableoverridesPost(requestParameters.dealId, requestParameters.saveDealAppointmentTimetableOverridesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2700
|
-
};
|
|
2701
|
-
/**
|
|
2702
|
-
*
|
|
2703
|
-
* @summary Add, update and delete deal appointment timetable
|
|
2704
|
-
* @param {DealsApiApiV1DealsDealIdAppointmenttimetablesBatchPostRequest} requestParameters Request parameters.
|
|
2705
|
-
* @param {*} [options] Override http request option.
|
|
2706
|
-
* @throws {RequiredError}
|
|
2707
|
-
* @memberof DealsApi
|
|
2708
|
-
*/
|
|
2709
|
-
DealsApi.prototype.apiV1DealsDealIdAppointmenttimetablesBatchPost = function (requestParameters, options) {
|
|
2710
|
-
var _this = this;
|
|
2711
|
-
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdAppointmenttimetablesBatchPost(requestParameters.dealId, requestParameters.batchDealAppointmentTimetablesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2712
|
-
};
|
|
2713
|
-
/**
|
|
2714
|
-
*
|
|
2715
|
-
* @summary Get deal appointment timetables
|
|
2716
|
-
* @param {DealsApiApiV1DealsDealIdAppointmenttimetablesGetRequest} requestParameters Request parameters.
|
|
2717
|
-
* @param {*} [options] Override http request option.
|
|
2718
|
-
* @throws {RequiredError}
|
|
2719
|
-
* @memberof DealsApi
|
|
2720
|
-
*/
|
|
2721
|
-
DealsApi.prototype.apiV1DealsDealIdAppointmenttimetablesGet = function (requestParameters, options) {
|
|
2722
|
-
var _this = this;
|
|
2723
|
-
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdAppointmenttimetablesGet(requestParameters.dealId, requestParameters.dayOfWeek, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2724
|
-
};
|
|
2725
2301
|
/**
|
|
2726
2302
|
*
|
|
2727
2303
|
* @summary Delete deal.
|