@teemill/platform 0.65.2 → 0.67.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/.openapi-generator/FILES +4 -0
- package/README.md +9 -2
- package/api.ts +566 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +319 -1
- package/dist/api.js +383 -3
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +319 -1
- package/dist/esm/api.js +377 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ConciergeCandidate.md +41 -0
- package/docs/ConciergeCandidateSource.md +25 -0
- package/docs/ConciergeCandidatesApi.md +265 -0
- package/docs/ListConciergeCandidates200Response.md +22 -0
- package/docs/UpdateConciergeCandidateRequest.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.67.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = void 0;
|
|
25
|
+
exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersSortByEnum = exports.ListOrdersDateFilterTypeEnum = exports.ExportOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.ModerationApi = exports.ModerationApiFactory = exports.ModerationApiFp = exports.ModerationApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.ConciergeCandidatesApi = exports.ConciergeCandidatesApiFactory = exports.ConciergeCandidatesApiFp = exports.ConciergeCandidatesApiAxiosParamCreator = exports.UpdateModerationItemRequestJudgementEnum = exports.ReturnOrderRequestReturnsInnerActionEnum = exports.PriorityLevel = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.FulfillmentFrozenReasonsEnum = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.CreateOrderPaymentMethodTypeEnum = exports.ConciergeCandidateSourceTypeEnum = exports.ApplicationPlacementEnum = exports.AmendmentLogAmendmentTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
|
|
26
|
+
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PixelsApi = exports.PixelsApiFactory = exports.PixelsApiFp = exports.PixelsApiAxiosParamCreator = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -43,6 +43,12 @@ exports.ApplicationPlacementEnum = {
|
|
|
43
43
|
Front: 'front',
|
|
44
44
|
Back: 'back',
|
|
45
45
|
};
|
|
46
|
+
exports.ConciergeCandidateSourceTypeEnum = {
|
|
47
|
+
ContactForm: 'contact_form',
|
|
48
|
+
SignedUp: 'signed_up',
|
|
49
|
+
CustomOrder: 'custom_order',
|
|
50
|
+
QuoteForm: 'quote_form',
|
|
51
|
+
};
|
|
46
52
|
exports.CreateOrderPaymentMethodTypeEnum = {
|
|
47
53
|
Card: 'card',
|
|
48
54
|
Bacs: 'bacs',
|
|
@@ -101,6 +107,380 @@ exports.UpdateModerationItemRequestJudgementEnum = {
|
|
|
101
107
|
Approved: 'approved',
|
|
102
108
|
Denied: 'denied',
|
|
103
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* ConciergeCandidatesApi - axios parameter creator
|
|
112
|
+
*/
|
|
113
|
+
const ConciergeCandidatesApiAxiosParamCreator = function (configuration) {
|
|
114
|
+
return {
|
|
115
|
+
/**
|
|
116
|
+
* Approve a concierge candidate by a given concierge candidate ID. This will create a task that cann be assigned to a user.
|
|
117
|
+
* @summary Approve concierge candidate
|
|
118
|
+
* @param {string} project Project unique identifier
|
|
119
|
+
* @param {string} platformId The platform identifier
|
|
120
|
+
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
approveConciergeCandidate: (project_1, platformId_1, conciergeCandidateId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, conciergeCandidateId_1, ...args_1], void 0, function* (project, platformId, conciergeCandidateId, options = {}) {
|
|
125
|
+
// verify required parameter 'project' is not null or undefined
|
|
126
|
+
(0, common_1.assertParamExists)('approveConciergeCandidate', 'project', project);
|
|
127
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
128
|
+
(0, common_1.assertParamExists)('approveConciergeCandidate', 'platformId', platformId);
|
|
129
|
+
// verify required parameter 'conciergeCandidateId' is not null or undefined
|
|
130
|
+
(0, common_1.assertParamExists)('approveConciergeCandidate', 'conciergeCandidateId', conciergeCandidateId);
|
|
131
|
+
const localVarPath = `/v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}/approve`
|
|
132
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
133
|
+
.replace(`{${"conciergeCandidateId"}}`, encodeURIComponent(String(conciergeCandidateId)));
|
|
134
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
135
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
136
|
+
let baseOptions;
|
|
137
|
+
if (configuration) {
|
|
138
|
+
baseOptions = configuration.baseOptions;
|
|
139
|
+
}
|
|
140
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
141
|
+
const localVarHeaderParameter = {};
|
|
142
|
+
const localVarQueryParameter = {};
|
|
143
|
+
// authentication session-oauth required
|
|
144
|
+
// oauth required
|
|
145
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
146
|
+
// authentication api-key required
|
|
147
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
148
|
+
if (project !== undefined) {
|
|
149
|
+
localVarQueryParameter['project'] = project;
|
|
150
|
+
}
|
|
151
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
152
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
155
|
+
return {
|
|
156
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
157
|
+
options: localVarRequestOptions,
|
|
158
|
+
};
|
|
159
|
+
}),
|
|
160
|
+
/**
|
|
161
|
+
* Delete a concierge candidate by a given concierge candidate ID.
|
|
162
|
+
* @summary Delete concierge candidate
|
|
163
|
+
* @param {string} project Project unique identifier
|
|
164
|
+
* @param {string} platformId The platform identifier
|
|
165
|
+
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
deleteConciergeCandidate: (project_1, platformId_1, conciergeCandidateId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, conciergeCandidateId_1, ...args_1], void 0, function* (project, platformId, conciergeCandidateId, options = {}) {
|
|
170
|
+
// verify required parameter 'project' is not null or undefined
|
|
171
|
+
(0, common_1.assertParamExists)('deleteConciergeCandidate', 'project', project);
|
|
172
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
173
|
+
(0, common_1.assertParamExists)('deleteConciergeCandidate', 'platformId', platformId);
|
|
174
|
+
// verify required parameter 'conciergeCandidateId' is not null or undefined
|
|
175
|
+
(0, common_1.assertParamExists)('deleteConciergeCandidate', 'conciergeCandidateId', conciergeCandidateId);
|
|
176
|
+
const localVarPath = `/v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}`
|
|
177
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
178
|
+
.replace(`{${"conciergeCandidateId"}}`, encodeURIComponent(String(conciergeCandidateId)));
|
|
179
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
180
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
181
|
+
let baseOptions;
|
|
182
|
+
if (configuration) {
|
|
183
|
+
baseOptions = configuration.baseOptions;
|
|
184
|
+
}
|
|
185
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
186
|
+
const localVarHeaderParameter = {};
|
|
187
|
+
const localVarQueryParameter = {};
|
|
188
|
+
// authentication session-oauth required
|
|
189
|
+
// oauth required
|
|
190
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
191
|
+
// authentication api-key required
|
|
192
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
193
|
+
if (project !== undefined) {
|
|
194
|
+
localVarQueryParameter['project'] = project;
|
|
195
|
+
}
|
|
196
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
197
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
200
|
+
return {
|
|
201
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
202
|
+
options: localVarRequestOptions,
|
|
203
|
+
};
|
|
204
|
+
}),
|
|
205
|
+
/**
|
|
206
|
+
* Get a concierge candidate by a given concierge candidate ID.
|
|
207
|
+
* @summary Get concierge candidate
|
|
208
|
+
* @param {string} project Project unique identifier
|
|
209
|
+
* @param {string} platformId The platform identifier
|
|
210
|
+
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
getConciergeCandidate: (project_1, platformId_1, conciergeCandidateId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, conciergeCandidateId_1, ...args_1], void 0, function* (project, platformId, conciergeCandidateId, options = {}) {
|
|
215
|
+
// verify required parameter 'project' is not null or undefined
|
|
216
|
+
(0, common_1.assertParamExists)('getConciergeCandidate', 'project', project);
|
|
217
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
218
|
+
(0, common_1.assertParamExists)('getConciergeCandidate', 'platformId', platformId);
|
|
219
|
+
// verify required parameter 'conciergeCandidateId' is not null or undefined
|
|
220
|
+
(0, common_1.assertParamExists)('getConciergeCandidate', 'conciergeCandidateId', conciergeCandidateId);
|
|
221
|
+
const localVarPath = `/v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}`
|
|
222
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
223
|
+
.replace(`{${"conciergeCandidateId"}}`, encodeURIComponent(String(conciergeCandidateId)));
|
|
224
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
225
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
226
|
+
let baseOptions;
|
|
227
|
+
if (configuration) {
|
|
228
|
+
baseOptions = configuration.baseOptions;
|
|
229
|
+
}
|
|
230
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
231
|
+
const localVarHeaderParameter = {};
|
|
232
|
+
const localVarQueryParameter = {};
|
|
233
|
+
// authentication session-oauth required
|
|
234
|
+
// oauth required
|
|
235
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
236
|
+
// authentication api-key required
|
|
237
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
238
|
+
if (project !== undefined) {
|
|
239
|
+
localVarQueryParameter['project'] = project;
|
|
240
|
+
}
|
|
241
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
242
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
243
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
245
|
+
return {
|
|
246
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
247
|
+
options: localVarRequestOptions,
|
|
248
|
+
};
|
|
249
|
+
}),
|
|
250
|
+
/**
|
|
251
|
+
* List concierge candidates
|
|
252
|
+
* @summary List concierge candidates
|
|
253
|
+
* @param {string} project Project unique identifier
|
|
254
|
+
* @param {string} platformId The platform identifier
|
|
255
|
+
* @param {string} [search] Search term to filter results
|
|
256
|
+
* @param {number} [pageToken] Page reference token
|
|
257
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
listConciergeCandidates: (project_1, platformId_1, search_1, pageToken_1, pageSize_1, ...args_1) => __awaiter(this, [project_1, platformId_1, search_1, pageToken_1, pageSize_1, ...args_1], void 0, function* (project, platformId, search, pageToken, pageSize, options = {}) {
|
|
262
|
+
// verify required parameter 'project' is not null or undefined
|
|
263
|
+
(0, common_1.assertParamExists)('listConciergeCandidates', 'project', project);
|
|
264
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
265
|
+
(0, common_1.assertParamExists)('listConciergeCandidates', 'platformId', platformId);
|
|
266
|
+
const localVarPath = `/v1/platform/{platformId}/concierge-candidates`
|
|
267
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
268
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
269
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
270
|
+
let baseOptions;
|
|
271
|
+
if (configuration) {
|
|
272
|
+
baseOptions = configuration.baseOptions;
|
|
273
|
+
}
|
|
274
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
275
|
+
const localVarHeaderParameter = {};
|
|
276
|
+
const localVarQueryParameter = {};
|
|
277
|
+
// authentication session-oauth required
|
|
278
|
+
// oauth required
|
|
279
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
280
|
+
// authentication api-key required
|
|
281
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
282
|
+
if (project !== undefined) {
|
|
283
|
+
localVarQueryParameter['project'] = project;
|
|
284
|
+
}
|
|
285
|
+
if (search !== undefined) {
|
|
286
|
+
localVarQueryParameter['search'] = search;
|
|
287
|
+
}
|
|
288
|
+
if (pageToken !== undefined) {
|
|
289
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
290
|
+
}
|
|
291
|
+
if (pageSize !== undefined) {
|
|
292
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
293
|
+
}
|
|
294
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
295
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
296
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
297
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
298
|
+
return {
|
|
299
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
300
|
+
options: localVarRequestOptions,
|
|
301
|
+
};
|
|
302
|
+
}),
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
exports.ConciergeCandidatesApiAxiosParamCreator = ConciergeCandidatesApiAxiosParamCreator;
|
|
306
|
+
/**
|
|
307
|
+
* ConciergeCandidatesApi - functional programming interface
|
|
308
|
+
*/
|
|
309
|
+
const ConciergeCandidatesApiFp = function (configuration) {
|
|
310
|
+
const localVarAxiosParamCreator = (0, exports.ConciergeCandidatesApiAxiosParamCreator)(configuration);
|
|
311
|
+
return {
|
|
312
|
+
/**
|
|
313
|
+
* Approve a concierge candidate by a given concierge candidate ID. This will create a task that cann be assigned to a user.
|
|
314
|
+
* @summary Approve concierge candidate
|
|
315
|
+
* @param {string} project Project unique identifier
|
|
316
|
+
* @param {string} platformId The platform identifier
|
|
317
|
+
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
approveConciergeCandidate(project, platformId, conciergeCandidateId, options) {
|
|
322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
323
|
+
var _a, _b, _c;
|
|
324
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.approveConciergeCandidate(project, platformId, conciergeCandidateId, options);
|
|
325
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
326
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConciergeCandidatesApi.approveConciergeCandidate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
327
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
328
|
+
});
|
|
329
|
+
},
|
|
330
|
+
/**
|
|
331
|
+
* Delete a concierge candidate by a given concierge candidate ID.
|
|
332
|
+
* @summary Delete concierge candidate
|
|
333
|
+
* @param {string} project Project unique identifier
|
|
334
|
+
* @param {string} platformId The platform identifier
|
|
335
|
+
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
deleteConciergeCandidate(project, platformId, conciergeCandidateId, options) {
|
|
340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
341
|
+
var _a, _b, _c;
|
|
342
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteConciergeCandidate(project, platformId, conciergeCandidateId, options);
|
|
343
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
344
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConciergeCandidatesApi.deleteConciergeCandidate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
345
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
346
|
+
});
|
|
347
|
+
},
|
|
348
|
+
/**
|
|
349
|
+
* Get a concierge candidate by a given concierge candidate ID.
|
|
350
|
+
* @summary Get concierge candidate
|
|
351
|
+
* @param {string} project Project unique identifier
|
|
352
|
+
* @param {string} platformId The platform identifier
|
|
353
|
+
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
getConciergeCandidate(project, platformId, conciergeCandidateId, options) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
var _a, _b, _c;
|
|
360
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getConciergeCandidate(project, platformId, conciergeCandidateId, options);
|
|
361
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
362
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConciergeCandidatesApi.getConciergeCandidate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
363
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
364
|
+
});
|
|
365
|
+
},
|
|
366
|
+
/**
|
|
367
|
+
* List concierge candidates
|
|
368
|
+
* @summary List concierge candidates
|
|
369
|
+
* @param {string} project Project unique identifier
|
|
370
|
+
* @param {string} platformId The platform identifier
|
|
371
|
+
* @param {string} [search] Search term to filter results
|
|
372
|
+
* @param {number} [pageToken] Page reference token
|
|
373
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
listConciergeCandidates(project, platformId, search, pageToken, pageSize, options) {
|
|
378
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
379
|
+
var _a, _b, _c;
|
|
380
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listConciergeCandidates(project, platformId, search, pageToken, pageSize, options);
|
|
381
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
382
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConciergeCandidatesApi.listConciergeCandidates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
383
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
384
|
+
});
|
|
385
|
+
},
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
exports.ConciergeCandidatesApiFp = ConciergeCandidatesApiFp;
|
|
389
|
+
/**
|
|
390
|
+
* ConciergeCandidatesApi - factory interface
|
|
391
|
+
*/
|
|
392
|
+
const ConciergeCandidatesApiFactory = function (configuration, basePath, axios) {
|
|
393
|
+
const localVarFp = (0, exports.ConciergeCandidatesApiFp)(configuration);
|
|
394
|
+
return {
|
|
395
|
+
/**
|
|
396
|
+
* Approve a concierge candidate by a given concierge candidate ID. This will create a task that cann be assigned to a user.
|
|
397
|
+
* @summary Approve concierge candidate
|
|
398
|
+
* @param {ConciergeCandidatesApiApproveConciergeCandidateRequest} requestParameters Request parameters.
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
approveConciergeCandidate(requestParameters, options) {
|
|
403
|
+
return localVarFp.approveConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(axios, basePath));
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
* Delete a concierge candidate by a given concierge candidate ID.
|
|
407
|
+
* @summary Delete concierge candidate
|
|
408
|
+
* @param {ConciergeCandidatesApiDeleteConciergeCandidateRequest} requestParameters Request parameters.
|
|
409
|
+
* @param {*} [options] Override http request option.
|
|
410
|
+
* @throws {RequiredError}
|
|
411
|
+
*/
|
|
412
|
+
deleteConciergeCandidate(requestParameters, options) {
|
|
413
|
+
return localVarFp.deleteConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(axios, basePath));
|
|
414
|
+
},
|
|
415
|
+
/**
|
|
416
|
+
* Get a concierge candidate by a given concierge candidate ID.
|
|
417
|
+
* @summary Get concierge candidate
|
|
418
|
+
* @param {ConciergeCandidatesApiGetConciergeCandidateRequest} requestParameters Request parameters.
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
getConciergeCandidate(requestParameters, options) {
|
|
423
|
+
return localVarFp.getConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(axios, basePath));
|
|
424
|
+
},
|
|
425
|
+
/**
|
|
426
|
+
* List concierge candidates
|
|
427
|
+
* @summary List concierge candidates
|
|
428
|
+
* @param {ConciergeCandidatesApiListConciergeCandidatesRequest} requestParameters Request parameters.
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
listConciergeCandidates(requestParameters, options) {
|
|
433
|
+
return localVarFp.listConciergeCandidates(requestParameters.project, requestParameters.platformId, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
434
|
+
},
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
exports.ConciergeCandidatesApiFactory = ConciergeCandidatesApiFactory;
|
|
438
|
+
/**
|
|
439
|
+
* ConciergeCandidatesApi - object-oriented interface
|
|
440
|
+
*/
|
|
441
|
+
class ConciergeCandidatesApi extends base_1.BaseAPI {
|
|
442
|
+
/**
|
|
443
|
+
* Approve a concierge candidate by a given concierge candidate ID. This will create a task that cann be assigned to a user.
|
|
444
|
+
* @summary Approve concierge candidate
|
|
445
|
+
* @param {ConciergeCandidatesApiApproveConciergeCandidateRequest} requestParameters Request parameters.
|
|
446
|
+
* @param {*} [options] Override http request option.
|
|
447
|
+
* @throws {RequiredError}
|
|
448
|
+
*/
|
|
449
|
+
approveConciergeCandidate(requestParameters, options) {
|
|
450
|
+
return (0, exports.ConciergeCandidatesApiFp)(this.configuration).approveConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(this.axios, this.basePath));
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Delete a concierge candidate by a given concierge candidate ID.
|
|
454
|
+
* @summary Delete concierge candidate
|
|
455
|
+
* @param {ConciergeCandidatesApiDeleteConciergeCandidateRequest} requestParameters Request parameters.
|
|
456
|
+
* @param {*} [options] Override http request option.
|
|
457
|
+
* @throws {RequiredError}
|
|
458
|
+
*/
|
|
459
|
+
deleteConciergeCandidate(requestParameters, options) {
|
|
460
|
+
return (0, exports.ConciergeCandidatesApiFp)(this.configuration).deleteConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(this.axios, this.basePath));
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Get a concierge candidate by a given concierge candidate ID.
|
|
464
|
+
* @summary Get concierge candidate
|
|
465
|
+
* @param {ConciergeCandidatesApiGetConciergeCandidateRequest} requestParameters Request parameters.
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
getConciergeCandidate(requestParameters, options) {
|
|
470
|
+
return (0, exports.ConciergeCandidatesApiFp)(this.configuration).getConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(this.axios, this.basePath));
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* List concierge candidates
|
|
474
|
+
* @summary List concierge candidates
|
|
475
|
+
* @param {ConciergeCandidatesApiListConciergeCandidatesRequest} requestParameters Request parameters.
|
|
476
|
+
* @param {*} [options] Override http request option.
|
|
477
|
+
* @throws {RequiredError}
|
|
478
|
+
*/
|
|
479
|
+
listConciergeCandidates(requestParameters, options) {
|
|
480
|
+
return (0, exports.ConciergeCandidatesApiFp)(this.configuration).listConciergeCandidates(requestParameters.project, requestParameters.platformId, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
exports.ConciergeCandidatesApi = ConciergeCandidatesApi;
|
|
104
484
|
/**
|
|
105
485
|
* CustomersApi - axios parameter creator
|
|
106
486
|
*/
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED