@teemill/platform 0.66.0 → 0.67.1
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 +0 -1
- package/README.md +4 -4
- package/api.ts +215 -88
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +119 -57
- package/dist/api.js +159 -67
- 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 +119 -57
- package/dist/esm/api.js +159 -67
- 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 +6 -4
- package/docs/ConciergeCandidatesApi.md +91 -23
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/platform@0.
|
|
1
|
+
## @teemill/platform@0.67.1
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/platform@0.
|
|
39
|
+
npm install @teemill/platform@0.67.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -51,9 +51,10 @@ All URIs are relative to *https://localhost:8080*
|
|
|
51
51
|
|
|
52
52
|
Class | Method | HTTP request | Description
|
|
53
53
|
------------ | ------------- | ------------- | -------------
|
|
54
|
+
*ConciergeCandidatesApi* | [**approveConciergeCandidate**](docs/ConciergeCandidatesApi.md#approveconciergecandidate) | **POST** /v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}/approve | Approve concierge candidate
|
|
55
|
+
*ConciergeCandidatesApi* | [**deleteConciergeCandidate**](docs/ConciergeCandidatesApi.md#deleteconciergecandidate) | **DELETE** /v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId} | Delete concierge candidate
|
|
54
56
|
*ConciergeCandidatesApi* | [**getConciergeCandidate**](docs/ConciergeCandidatesApi.md#getconciergecandidate) | **GET** /v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId} | Get concierge candidate
|
|
55
57
|
*ConciergeCandidatesApi* | [**listConciergeCandidates**](docs/ConciergeCandidatesApi.md#listconciergecandidates) | **GET** /v1/platform/{platformId}/concierge-candidates | List concierge candidates
|
|
56
|
-
*ConciergeCandidatesApi* | [**updateConciergeCandidate**](docs/ConciergeCandidatesApi.md#updateconciergecandidate) | **PATCH** /v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId} | Update concierge candidate
|
|
57
58
|
*CustomersApi* | [**createCustomerChatChannel**](docs/CustomersApi.md#createcustomerchatchannel) | **POST** /v1/platform/{platformId}/customers/{customerId}/chat-channel | Create chat channel
|
|
58
59
|
*CustomersApi* | [**createCustomerDataDeletionRequest**](docs/CustomersApi.md#createcustomerdatadeletionrequest) | **POST** /v1/platform/{platformId}/customers/{customerId}/data-deletion-request | Create data deletion request
|
|
59
60
|
*CustomersApi* | [**exportCustomers**](docs/CustomersApi.md#exportcustomers) | **GET** /v1/platform/{platformId}/customers/export | Export customers
|
|
@@ -210,7 +211,6 @@ Class | Method | HTTP request | Description
|
|
|
210
211
|
- [Statistics](docs/Statistics.md)
|
|
211
212
|
- [StatusHistoryItem](docs/StatusHistoryItem.md)
|
|
212
213
|
- [Terms](docs/Terms.md)
|
|
213
|
-
- [UpdateConciergeCandidateRequest](docs/UpdateConciergeCandidateRequest.md)
|
|
214
214
|
- [UpdateCustomerEnquiryRequest](docs/UpdateCustomerEnquiryRequest.md)
|
|
215
215
|
- [UpdateCustomerRequest](docs/UpdateCustomerRequest.md)
|
|
216
216
|
- [UpdateFulfillmentRequest](docs/UpdateFulfillmentRequest.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.67.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -210,7 +210,11 @@ export interface ConciergeCandidate {
|
|
|
210
210
|
/**
|
|
211
211
|
* ISO 8601 Timestamp
|
|
212
212
|
*/
|
|
213
|
-
'
|
|
213
|
+
'approvedAt': string | null;
|
|
214
|
+
/**
|
|
215
|
+
* ISO 8601 Timestamp
|
|
216
|
+
*/
|
|
217
|
+
'completedAt': string | null;
|
|
214
218
|
/**
|
|
215
219
|
* A reference to the project being ordered
|
|
216
220
|
*/
|
|
@@ -220,9 +224,9 @@ export interface ConciergeCandidate {
|
|
|
220
224
|
*/
|
|
221
225
|
'originRef': string;
|
|
222
226
|
/**
|
|
223
|
-
* Reference to the
|
|
227
|
+
* Reference to the task resource
|
|
224
228
|
*/
|
|
225
|
-
'
|
|
229
|
+
'taskRef'?: string | null;
|
|
226
230
|
}
|
|
227
231
|
/**
|
|
228
232
|
* The source of the concierge candidate. This is the channel through which the concierge candidate interacted with the platform.
|
|
@@ -1249,16 +1253,6 @@ export interface Terms {
|
|
|
1249
1253
|
'createdAt': string;
|
|
1250
1254
|
'updatedAt': string;
|
|
1251
1255
|
}
|
|
1252
|
-
export interface UpdateConciergeCandidateRequest {
|
|
1253
|
-
/**
|
|
1254
|
-
* Whether the concierge candidate has been dismissed or not.
|
|
1255
|
-
*/
|
|
1256
|
-
'dismiss'?: boolean;
|
|
1257
|
-
/**
|
|
1258
|
-
* Reference to the user resource
|
|
1259
|
-
*/
|
|
1260
|
-
'assignedUserRef'?: string | null;
|
|
1261
|
-
}
|
|
1262
1256
|
export interface UpdateCustomerEnquiryRequest {
|
|
1263
1257
|
/**
|
|
1264
1258
|
* The unique id of the user who owns the enquiry
|
|
@@ -1354,22 +1348,22 @@ export interface Variant {
|
|
|
1354
1348
|
export const ConciergeCandidatesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1355
1349
|
return {
|
|
1356
1350
|
/**
|
|
1357
|
-
*
|
|
1358
|
-
* @summary
|
|
1351
|
+
* Approve a concierge candidate by a given concierge candidate ID. This will create a task with #concierge tag that can be assigned to a user.
|
|
1352
|
+
* @summary Approve concierge candidate
|
|
1359
1353
|
* @param {string} project Project unique identifier
|
|
1360
1354
|
* @param {string} platformId The platform identifier
|
|
1361
1355
|
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
1362
1356
|
* @param {*} [options] Override http request option.
|
|
1363
1357
|
* @throws {RequiredError}
|
|
1364
1358
|
*/
|
|
1365
|
-
|
|
1359
|
+
approveConciergeCandidate: async (project: string, platformId: string, conciergeCandidateId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1366
1360
|
// verify required parameter 'project' is not null or undefined
|
|
1367
|
-
assertParamExists('
|
|
1361
|
+
assertParamExists('approveConciergeCandidate', 'project', project)
|
|
1368
1362
|
// verify required parameter 'platformId' is not null or undefined
|
|
1369
|
-
assertParamExists('
|
|
1363
|
+
assertParamExists('approveConciergeCandidate', 'platformId', platformId)
|
|
1370
1364
|
// verify required parameter 'conciergeCandidateId' is not null or undefined
|
|
1371
|
-
assertParamExists('
|
|
1372
|
-
const localVarPath = `/v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}`
|
|
1365
|
+
assertParamExists('approveConciergeCandidate', 'conciergeCandidateId', conciergeCandidateId)
|
|
1366
|
+
const localVarPath = `/v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}/approve`
|
|
1373
1367
|
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1374
1368
|
.replace(`{${"conciergeCandidateId"}}`, encodeURIComponent(String(conciergeCandidateId)));
|
|
1375
1369
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1379,7 +1373,7 @@ export const ConciergeCandidatesApiAxiosParamCreator = function (configuration?:
|
|
|
1379
1373
|
baseOptions = configuration.baseOptions;
|
|
1380
1374
|
}
|
|
1381
1375
|
|
|
1382
|
-
const localVarRequestOptions = { method: '
|
|
1376
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1383
1377
|
const localVarHeaderParameter = {} as any;
|
|
1384
1378
|
const localVarQueryParameter = {} as any;
|
|
1385
1379
|
|
|
@@ -1406,20 +1400,24 @@ export const ConciergeCandidatesApiAxiosParamCreator = function (configuration?:
|
|
|
1406
1400
|
};
|
|
1407
1401
|
},
|
|
1408
1402
|
/**
|
|
1409
|
-
*
|
|
1410
|
-
* @summary
|
|
1403
|
+
* Delete a concierge candidate by a given concierge candidate ID.
|
|
1404
|
+
* @summary Delete concierge candidate
|
|
1411
1405
|
* @param {string} project Project unique identifier
|
|
1412
1406
|
* @param {string} platformId The platform identifier
|
|
1407
|
+
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
1413
1408
|
* @param {*} [options] Override http request option.
|
|
1414
1409
|
* @throws {RequiredError}
|
|
1415
1410
|
*/
|
|
1416
|
-
|
|
1411
|
+
deleteConciergeCandidate: async (project: string, platformId: string, conciergeCandidateId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1417
1412
|
// verify required parameter 'project' is not null or undefined
|
|
1418
|
-
assertParamExists('
|
|
1413
|
+
assertParamExists('deleteConciergeCandidate', 'project', project)
|
|
1419
1414
|
// verify required parameter 'platformId' is not null or undefined
|
|
1420
|
-
assertParamExists('
|
|
1421
|
-
|
|
1422
|
-
|
|
1415
|
+
assertParamExists('deleteConciergeCandidate', 'platformId', platformId)
|
|
1416
|
+
// verify required parameter 'conciergeCandidateId' is not null or undefined
|
|
1417
|
+
assertParamExists('deleteConciergeCandidate', 'conciergeCandidateId', conciergeCandidateId)
|
|
1418
|
+
const localVarPath = `/v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}`
|
|
1419
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1420
|
+
.replace(`{${"conciergeCandidateId"}}`, encodeURIComponent(String(conciergeCandidateId)));
|
|
1423
1421
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1424
1422
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1425
1423
|
let baseOptions;
|
|
@@ -1427,7 +1425,7 @@ export const ConciergeCandidatesApiAxiosParamCreator = function (configuration?:
|
|
|
1427
1425
|
baseOptions = configuration.baseOptions;
|
|
1428
1426
|
}
|
|
1429
1427
|
|
|
1430
|
-
const localVarRequestOptions = { method: '
|
|
1428
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
1431
1429
|
const localVarHeaderParameter = {} as any;
|
|
1432
1430
|
const localVarQueryParameter = {} as any;
|
|
1433
1431
|
|
|
@@ -1454,24 +1452,21 @@ export const ConciergeCandidatesApiAxiosParamCreator = function (configuration?:
|
|
|
1454
1452
|
};
|
|
1455
1453
|
},
|
|
1456
1454
|
/**
|
|
1457
|
-
*
|
|
1458
|
-
* @summary
|
|
1455
|
+
* Get a concierge candidate by a given concierge candidate ID.
|
|
1456
|
+
* @summary Get concierge candidate
|
|
1459
1457
|
* @param {string} project Project unique identifier
|
|
1460
1458
|
* @param {string} platformId The platform identifier
|
|
1461
1459
|
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
1462
|
-
* @param {UpdateConciergeCandidateRequest} updateConciergeCandidateRequest
|
|
1463
1460
|
* @param {*} [options] Override http request option.
|
|
1464
1461
|
* @throws {RequiredError}
|
|
1465
1462
|
*/
|
|
1466
|
-
|
|
1463
|
+
getConciergeCandidate: async (project: string, platformId: string, conciergeCandidateId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1467
1464
|
// verify required parameter 'project' is not null or undefined
|
|
1468
|
-
assertParamExists('
|
|
1465
|
+
assertParamExists('getConciergeCandidate', 'project', project)
|
|
1469
1466
|
// verify required parameter 'platformId' is not null or undefined
|
|
1470
|
-
assertParamExists('
|
|
1467
|
+
assertParamExists('getConciergeCandidate', 'platformId', platformId)
|
|
1471
1468
|
// verify required parameter 'conciergeCandidateId' is not null or undefined
|
|
1472
|
-
assertParamExists('
|
|
1473
|
-
// verify required parameter 'updateConciergeCandidateRequest' is not null or undefined
|
|
1474
|
-
assertParamExists('updateConciergeCandidate', 'updateConciergeCandidateRequest', updateConciergeCandidateRequest)
|
|
1469
|
+
assertParamExists('getConciergeCandidate', 'conciergeCandidateId', conciergeCandidateId)
|
|
1475
1470
|
const localVarPath = `/v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}`
|
|
1476
1471
|
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
1477
1472
|
.replace(`{${"conciergeCandidateId"}}`, encodeURIComponent(String(conciergeCandidateId)));
|
|
@@ -1482,7 +1477,7 @@ export const ConciergeCandidatesApiAxiosParamCreator = function (configuration?:
|
|
|
1482
1477
|
baseOptions = configuration.baseOptions;
|
|
1483
1478
|
}
|
|
1484
1479
|
|
|
1485
|
-
const localVarRequestOptions = { method: '
|
|
1480
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1486
1481
|
const localVarHeaderParameter = {} as any;
|
|
1487
1482
|
const localVarQueryParameter = {} as any;
|
|
1488
1483
|
|
|
@@ -1497,13 +1492,74 @@ export const ConciergeCandidatesApiAxiosParamCreator = function (configuration?:
|
|
|
1497
1492
|
localVarQueryParameter['project'] = project;
|
|
1498
1493
|
}
|
|
1499
1494
|
|
|
1500
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1501
1495
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1502
1496
|
|
|
1503
1497
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1504
1498
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1505
1499
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1506
|
-
|
|
1500
|
+
|
|
1501
|
+
return {
|
|
1502
|
+
url: toPathString(localVarUrlObj),
|
|
1503
|
+
options: localVarRequestOptions,
|
|
1504
|
+
};
|
|
1505
|
+
},
|
|
1506
|
+
/**
|
|
1507
|
+
* List concierge candidates
|
|
1508
|
+
* @summary List concierge candidates
|
|
1509
|
+
* @param {string} project Project unique identifier
|
|
1510
|
+
* @param {string} platformId The platform identifier
|
|
1511
|
+
* @param {string} [search] Search term to filter results
|
|
1512
|
+
* @param {number} [pageToken] Page reference token
|
|
1513
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1514
|
+
* @param {*} [options] Override http request option.
|
|
1515
|
+
* @throws {RequiredError}
|
|
1516
|
+
*/
|
|
1517
|
+
listConciergeCandidates: async (project: string, platformId: string, search?: string, pageToken?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1518
|
+
// verify required parameter 'project' is not null or undefined
|
|
1519
|
+
assertParamExists('listConciergeCandidates', 'project', project)
|
|
1520
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
1521
|
+
assertParamExists('listConciergeCandidates', 'platformId', platformId)
|
|
1522
|
+
const localVarPath = `/v1/platform/{platformId}/concierge-candidates`
|
|
1523
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
1524
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1525
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1526
|
+
let baseOptions;
|
|
1527
|
+
if (configuration) {
|
|
1528
|
+
baseOptions = configuration.baseOptions;
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1532
|
+
const localVarHeaderParameter = {} as any;
|
|
1533
|
+
const localVarQueryParameter = {} as any;
|
|
1534
|
+
|
|
1535
|
+
// authentication session-oauth required
|
|
1536
|
+
// oauth required
|
|
1537
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1538
|
+
|
|
1539
|
+
// authentication api-key required
|
|
1540
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1541
|
+
|
|
1542
|
+
if (project !== undefined) {
|
|
1543
|
+
localVarQueryParameter['project'] = project;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
if (search !== undefined) {
|
|
1547
|
+
localVarQueryParameter['search'] = search;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
if (pageToken !== undefined) {
|
|
1551
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
if (pageSize !== undefined) {
|
|
1555
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1559
|
+
|
|
1560
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1561
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1562
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1507
1563
|
|
|
1508
1564
|
return {
|
|
1509
1565
|
url: toPathString(localVarUrlObj),
|
|
@@ -1520,48 +1576,65 @@ export const ConciergeCandidatesApiFp = function(configuration?: Configuration)
|
|
|
1520
1576
|
const localVarAxiosParamCreator = ConciergeCandidatesApiAxiosParamCreator(configuration)
|
|
1521
1577
|
return {
|
|
1522
1578
|
/**
|
|
1523
|
-
*
|
|
1524
|
-
* @summary
|
|
1579
|
+
* Approve a concierge candidate by a given concierge candidate ID. This will create a task with #concierge tag that can be assigned to a user.
|
|
1580
|
+
* @summary Approve concierge candidate
|
|
1525
1581
|
* @param {string} project Project unique identifier
|
|
1526
1582
|
* @param {string} platformId The platform identifier
|
|
1527
1583
|
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
1528
1584
|
* @param {*} [options] Override http request option.
|
|
1529
1585
|
* @throws {RequiredError}
|
|
1530
1586
|
*/
|
|
1531
|
-
async
|
|
1532
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1587
|
+
async approveConciergeCandidate(project: string, platformId: string, conciergeCandidateId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConciergeCandidate>> {
|
|
1588
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.approveConciergeCandidate(project, platformId, conciergeCandidateId, options);
|
|
1533
1589
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1534
|
-
const localVarOperationServerBasePath = operationServerMap['ConciergeCandidatesApi.
|
|
1590
|
+
const localVarOperationServerBasePath = operationServerMap['ConciergeCandidatesApi.approveConciergeCandidate']?.[localVarOperationServerIndex]?.url;
|
|
1535
1591
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1536
1592
|
},
|
|
1537
1593
|
/**
|
|
1538
|
-
*
|
|
1539
|
-
* @summary
|
|
1594
|
+
* Delete a concierge candidate by a given concierge candidate ID.
|
|
1595
|
+
* @summary Delete concierge candidate
|
|
1540
1596
|
* @param {string} project Project unique identifier
|
|
1541
1597
|
* @param {string} platformId The platform identifier
|
|
1598
|
+
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
1542
1599
|
* @param {*} [options] Override http request option.
|
|
1543
1600
|
* @throws {RequiredError}
|
|
1544
1601
|
*/
|
|
1545
|
-
async
|
|
1546
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1602
|
+
async deleteConciergeCandidate(project: string, platformId: string, conciergeCandidateId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1603
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteConciergeCandidate(project, platformId, conciergeCandidateId, options);
|
|
1547
1604
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1548
|
-
const localVarOperationServerBasePath = operationServerMap['ConciergeCandidatesApi.
|
|
1605
|
+
const localVarOperationServerBasePath = operationServerMap['ConciergeCandidatesApi.deleteConciergeCandidate']?.[localVarOperationServerIndex]?.url;
|
|
1549
1606
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1550
1607
|
},
|
|
1551
1608
|
/**
|
|
1552
|
-
*
|
|
1553
|
-
* @summary
|
|
1609
|
+
* Get a concierge candidate by a given concierge candidate ID.
|
|
1610
|
+
* @summary Get concierge candidate
|
|
1554
1611
|
* @param {string} project Project unique identifier
|
|
1555
1612
|
* @param {string} platformId The platform identifier
|
|
1556
1613
|
* @param {string} conciergeCandidateId The concierge candidate identifier
|
|
1557
|
-
* @param {UpdateConciergeCandidateRequest} updateConciergeCandidateRequest
|
|
1558
1614
|
* @param {*} [options] Override http request option.
|
|
1559
1615
|
* @throws {RequiredError}
|
|
1560
1616
|
*/
|
|
1561
|
-
async
|
|
1562
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1617
|
+
async getConciergeCandidate(project: string, platformId: string, conciergeCandidateId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConciergeCandidate>> {
|
|
1618
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getConciergeCandidate(project, platformId, conciergeCandidateId, options);
|
|
1563
1619
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1564
|
-
const localVarOperationServerBasePath = operationServerMap['ConciergeCandidatesApi.
|
|
1620
|
+
const localVarOperationServerBasePath = operationServerMap['ConciergeCandidatesApi.getConciergeCandidate']?.[localVarOperationServerIndex]?.url;
|
|
1621
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1622
|
+
},
|
|
1623
|
+
/**
|
|
1624
|
+
* List concierge candidates
|
|
1625
|
+
* @summary List concierge candidates
|
|
1626
|
+
* @param {string} project Project unique identifier
|
|
1627
|
+
* @param {string} platformId The platform identifier
|
|
1628
|
+
* @param {string} [search] Search term to filter results
|
|
1629
|
+
* @param {number} [pageToken] Page reference token
|
|
1630
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1631
|
+
* @param {*} [options] Override http request option.
|
|
1632
|
+
* @throws {RequiredError}
|
|
1633
|
+
*/
|
|
1634
|
+
async listConciergeCandidates(project: string, platformId: string, search?: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListConciergeCandidates200Response>> {
|
|
1635
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listConciergeCandidates(project, platformId, search, pageToken, pageSize, options);
|
|
1636
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1637
|
+
const localVarOperationServerBasePath = operationServerMap['ConciergeCandidatesApi.listConciergeCandidates']?.[localVarOperationServerIndex]?.url;
|
|
1565
1638
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1566
1639
|
},
|
|
1567
1640
|
}
|
|
@@ -1573,6 +1646,26 @@ export const ConciergeCandidatesApiFp = function(configuration?: Configuration)
|
|
|
1573
1646
|
export const ConciergeCandidatesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1574
1647
|
const localVarFp = ConciergeCandidatesApiFp(configuration)
|
|
1575
1648
|
return {
|
|
1649
|
+
/**
|
|
1650
|
+
* Approve a concierge candidate by a given concierge candidate ID. This will create a task with #concierge tag that can be assigned to a user.
|
|
1651
|
+
* @summary Approve concierge candidate
|
|
1652
|
+
* @param {ConciergeCandidatesApiApproveConciergeCandidateRequest} requestParameters Request parameters.
|
|
1653
|
+
* @param {*} [options] Override http request option.
|
|
1654
|
+
* @throws {RequiredError}
|
|
1655
|
+
*/
|
|
1656
|
+
approveConciergeCandidate(requestParameters: ConciergeCandidatesApiApproveConciergeCandidateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConciergeCandidate> {
|
|
1657
|
+
return localVarFp.approveConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(axios, basePath));
|
|
1658
|
+
},
|
|
1659
|
+
/**
|
|
1660
|
+
* Delete a concierge candidate by a given concierge candidate ID.
|
|
1661
|
+
* @summary Delete concierge candidate
|
|
1662
|
+
* @param {ConciergeCandidatesApiDeleteConciergeCandidateRequest} requestParameters Request parameters.
|
|
1663
|
+
* @param {*} [options] Override http request option.
|
|
1664
|
+
* @throws {RequiredError}
|
|
1665
|
+
*/
|
|
1666
|
+
deleteConciergeCandidate(requestParameters: ConciergeCandidatesApiDeleteConciergeCandidateRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1667
|
+
return localVarFp.deleteConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(axios, basePath));
|
|
1668
|
+
},
|
|
1576
1669
|
/**
|
|
1577
1670
|
* Get a concierge candidate by a given concierge candidate ID.
|
|
1578
1671
|
* @summary Get concierge candidate
|
|
@@ -1591,25 +1684,15 @@ export const ConciergeCandidatesApiFactory = function (configuration?: Configura
|
|
|
1591
1684
|
* @throws {RequiredError}
|
|
1592
1685
|
*/
|
|
1593
1686
|
listConciergeCandidates(requestParameters: ConciergeCandidatesApiListConciergeCandidatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListConciergeCandidates200Response> {
|
|
1594
|
-
return localVarFp.listConciergeCandidates(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
1595
|
-
},
|
|
1596
|
-
/**
|
|
1597
|
-
* Update a concierge candidate by a given concierge candidate ID.
|
|
1598
|
-
* @summary Update concierge candidate
|
|
1599
|
-
* @param {ConciergeCandidatesApiUpdateConciergeCandidateRequest} requestParameters Request parameters.
|
|
1600
|
-
* @param {*} [options] Override http request option.
|
|
1601
|
-
* @throws {RequiredError}
|
|
1602
|
-
*/
|
|
1603
|
-
updateConciergeCandidate(requestParameters: ConciergeCandidatesApiUpdateConciergeCandidateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConciergeCandidate> {
|
|
1604
|
-
return localVarFp.updateConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, requestParameters.updateConciergeCandidateRequest, options).then((request) => request(axios, basePath));
|
|
1687
|
+
return localVarFp.listConciergeCandidates(requestParameters.project, requestParameters.platformId, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
1605
1688
|
},
|
|
1606
1689
|
};
|
|
1607
1690
|
};
|
|
1608
1691
|
|
|
1609
1692
|
/**
|
|
1610
|
-
* Request parameters for
|
|
1693
|
+
* Request parameters for approveConciergeCandidate operation in ConciergeCandidatesApi.
|
|
1611
1694
|
*/
|
|
1612
|
-
export interface
|
|
1695
|
+
export interface ConciergeCandidatesApiApproveConciergeCandidateRequest {
|
|
1613
1696
|
/**
|
|
1614
1697
|
* Project unique identifier
|
|
1615
1698
|
*/
|
|
@@ -1627,9 +1710,9 @@ export interface ConciergeCandidatesApiGetConciergeCandidateRequest {
|
|
|
1627
1710
|
}
|
|
1628
1711
|
|
|
1629
1712
|
/**
|
|
1630
|
-
* Request parameters for
|
|
1713
|
+
* Request parameters for deleteConciergeCandidate operation in ConciergeCandidatesApi.
|
|
1631
1714
|
*/
|
|
1632
|
-
export interface
|
|
1715
|
+
export interface ConciergeCandidatesApiDeleteConciergeCandidateRequest {
|
|
1633
1716
|
/**
|
|
1634
1717
|
* Project unique identifier
|
|
1635
1718
|
*/
|
|
@@ -1639,12 +1722,17 @@ export interface ConciergeCandidatesApiListConciergeCandidatesRequest {
|
|
|
1639
1722
|
* The platform identifier
|
|
1640
1723
|
*/
|
|
1641
1724
|
readonly platformId: string
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* The concierge candidate identifier
|
|
1728
|
+
*/
|
|
1729
|
+
readonly conciergeCandidateId: string
|
|
1642
1730
|
}
|
|
1643
1731
|
|
|
1644
1732
|
/**
|
|
1645
|
-
* Request parameters for
|
|
1733
|
+
* Request parameters for getConciergeCandidate operation in ConciergeCandidatesApi.
|
|
1646
1734
|
*/
|
|
1647
|
-
export interface
|
|
1735
|
+
export interface ConciergeCandidatesApiGetConciergeCandidateRequest {
|
|
1648
1736
|
/**
|
|
1649
1737
|
* Project unique identifier
|
|
1650
1738
|
*/
|
|
@@ -1659,14 +1747,64 @@ export interface ConciergeCandidatesApiUpdateConciergeCandidateRequest {
|
|
|
1659
1747
|
* The concierge candidate identifier
|
|
1660
1748
|
*/
|
|
1661
1749
|
readonly conciergeCandidateId: string
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* Request parameters for listConciergeCandidates operation in ConciergeCandidatesApi.
|
|
1754
|
+
*/
|
|
1755
|
+
export interface ConciergeCandidatesApiListConciergeCandidatesRequest {
|
|
1756
|
+
/**
|
|
1757
|
+
* Project unique identifier
|
|
1758
|
+
*/
|
|
1759
|
+
readonly project: string
|
|
1662
1760
|
|
|
1663
|
-
|
|
1761
|
+
/**
|
|
1762
|
+
* The platform identifier
|
|
1763
|
+
*/
|
|
1764
|
+
readonly platformId: string
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Search term to filter results
|
|
1768
|
+
*/
|
|
1769
|
+
readonly search?: string
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Page reference token
|
|
1773
|
+
*/
|
|
1774
|
+
readonly pageToken?: number
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
1778
|
+
*/
|
|
1779
|
+
readonly pageSize?: number
|
|
1664
1780
|
}
|
|
1665
1781
|
|
|
1666
1782
|
/**
|
|
1667
1783
|
* ConciergeCandidatesApi - object-oriented interface
|
|
1668
1784
|
*/
|
|
1669
1785
|
export class ConciergeCandidatesApi extends BaseAPI {
|
|
1786
|
+
/**
|
|
1787
|
+
* Approve a concierge candidate by a given concierge candidate ID. This will create a task with #concierge tag that can be assigned to a user.
|
|
1788
|
+
* @summary Approve concierge candidate
|
|
1789
|
+
* @param {ConciergeCandidatesApiApproveConciergeCandidateRequest} requestParameters Request parameters.
|
|
1790
|
+
* @param {*} [options] Override http request option.
|
|
1791
|
+
* @throws {RequiredError}
|
|
1792
|
+
*/
|
|
1793
|
+
public approveConciergeCandidate(requestParameters: ConciergeCandidatesApiApproveConciergeCandidateRequest, options?: RawAxiosRequestConfig) {
|
|
1794
|
+
return ConciergeCandidatesApiFp(this.configuration).approveConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(this.axios, this.basePath));
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* Delete a concierge candidate by a given concierge candidate ID.
|
|
1799
|
+
* @summary Delete concierge candidate
|
|
1800
|
+
* @param {ConciergeCandidatesApiDeleteConciergeCandidateRequest} requestParameters Request parameters.
|
|
1801
|
+
* @param {*} [options] Override http request option.
|
|
1802
|
+
* @throws {RequiredError}
|
|
1803
|
+
*/
|
|
1804
|
+
public deleteConciergeCandidate(requestParameters: ConciergeCandidatesApiDeleteConciergeCandidateRequest, options?: RawAxiosRequestConfig) {
|
|
1805
|
+
return ConciergeCandidatesApiFp(this.configuration).deleteConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(this.axios, this.basePath));
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1670
1808
|
/**
|
|
1671
1809
|
* Get a concierge candidate by a given concierge candidate ID.
|
|
1672
1810
|
* @summary Get concierge candidate
|
|
@@ -1686,18 +1824,7 @@ export class ConciergeCandidatesApi extends BaseAPI {
|
|
|
1686
1824
|
* @throws {RequiredError}
|
|
1687
1825
|
*/
|
|
1688
1826
|
public listConciergeCandidates(requestParameters: ConciergeCandidatesApiListConciergeCandidatesRequest, options?: RawAxiosRequestConfig) {
|
|
1689
|
-
return ConciergeCandidatesApiFp(this.configuration).listConciergeCandidates(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
/**
|
|
1693
|
-
* Update a concierge candidate by a given concierge candidate ID.
|
|
1694
|
-
* @summary Update concierge candidate
|
|
1695
|
-
* @param {ConciergeCandidatesApiUpdateConciergeCandidateRequest} requestParameters Request parameters.
|
|
1696
|
-
* @param {*} [options] Override http request option.
|
|
1697
|
-
* @throws {RequiredError}
|
|
1698
|
-
*/
|
|
1699
|
-
public updateConciergeCandidate(requestParameters: ConciergeCandidatesApiUpdateConciergeCandidateRequest, options?: RawAxiosRequestConfig) {
|
|
1700
|
-
return ConciergeCandidatesApiFp(this.configuration).updateConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, requestParameters.updateConciergeCandidateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1827
|
+
return ConciergeCandidatesApiFp(this.configuration).listConciergeCandidates(requestParameters.project, requestParameters.platformId, requestParameters.search, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1701
1828
|
}
|
|
1702
1829
|
}
|
|
1703
1830
|
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED