@teemill/platform 0.65.2 → 0.66.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/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.65.2
5
+ * The version of the OpenAPI document: 0.66.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -163,6 +163,72 @@ export interface Client {
163
163
  'ref'?: string;
164
164
  'name'?: string;
165
165
  }
166
+ /**
167
+ * A concierge candidate. This is a potentially high value person who has interacted with the platform in some way.
168
+ */
169
+ export interface ConciergeCandidate {
170
+ /**
171
+ * Unique object identifier
172
+ */
173
+ 'id': string;
174
+ /**
175
+ * The first name of the concierge candidate
176
+ */
177
+ 'firstName': string;
178
+ /**
179
+ * The last name of the concierge candidate
180
+ */
181
+ 'lastName': string;
182
+ /**
183
+ * The email of the concierge candidate
184
+ */
185
+ 'email': string;
186
+ 'source': ConciergeCandidateSource;
187
+ /**
188
+ * ISO 8601 Timestamp
189
+ */
190
+ 'createdAt': string;
191
+ /**
192
+ * ISO 8601 Timestamp
193
+ */
194
+ 'dismissedAt'?: string;
195
+ /**
196
+ * A reference to the project being ordered
197
+ */
198
+ 'clientRef': string;
199
+ /**
200
+ * A reference to the origin of the concierge candidate. The structure of the origin ref can be inferred from the concierge candidate source.
201
+ */
202
+ 'originRef': string;
203
+ /**
204
+ * Reference to the user resource
205
+ */
206
+ 'assignedUserRef'?: string;
207
+ }
208
+ /**
209
+ * The source of the concierge candidate. This is the channel through which the concierge candidate interacted with the platform.
210
+ */
211
+ export interface ConciergeCandidateSource {
212
+ /**
213
+ * The type of the source
214
+ */
215
+ 'type': ConciergeCandidateSourceTypeEnum;
216
+ /**
217
+ * The name of the source
218
+ */
219
+ 'name': string;
220
+ /**
221
+ * The description of the source
222
+ */
223
+ 'description': string;
224
+ }
225
+ export declare const ConciergeCandidateSourceTypeEnum: {
226
+ readonly ContactForm: "contact_form";
227
+ readonly SignedUp: "signed_up";
228
+ readonly CustomOrder: "custom_order";
229
+ readonly QuoteForm: "quote_form";
230
+ };
231
+ export type ConciergeCandidateSourceTypeEnum = typeof ConciergeCandidateSourceTypeEnum[keyof typeof ConciergeCandidateSourceTypeEnum];
166
232
  export interface ConfirmOrderFulfillment {
167
233
  /**
168
234
  * Unique object identifier
@@ -571,6 +637,10 @@ export interface Image {
571
637
  'alt'?: string;
572
638
  'sortOrder'?: number;
573
639
  }
640
+ export interface ListConciergeCandidates200Response {
641
+ 'candidates': Array<ConciergeCandidate>;
642
+ 'nextPageToken': number | null;
643
+ }
574
644
  export interface ListCustomerEnquiries200Response {
575
645
  'enquiries'?: Array<Enquiry>;
576
646
  'nextPageToken'?: number | null;
@@ -1126,6 +1196,16 @@ export interface Terms {
1126
1196
  'createdAt': string;
1127
1197
  'updatedAt': string;
1128
1198
  }
1199
+ export interface UpdateConciergeCandidateRequest {
1200
+ /**
1201
+ * Whether the concierge candidate has been dismissed or not.
1202
+ */
1203
+ 'dismiss'?: boolean;
1204
+ /**
1205
+ * Reference to the user resource
1206
+ */
1207
+ 'assignedUserRef'?: string | null;
1208
+ }
1129
1209
  export interface UpdateCustomerEnquiryRequest {
1130
1210
  /**
1131
1211
  * The unique id of the user who owns the enquiry
@@ -1209,6 +1289,182 @@ export interface Variant {
1209
1289
  */
1210
1290
  'warehouseVariantRef': string | null;
1211
1291
  }
1292
+ /**
1293
+ * ConciergeCandidatesApi - axios parameter creator
1294
+ */
1295
+ export declare const ConciergeCandidatesApiAxiosParamCreator: (configuration?: Configuration) => {
1296
+ /**
1297
+ * Get a concierge candidate by a given concierge candidate ID.
1298
+ * @summary Get concierge candidate
1299
+ * @param {string} project Project unique identifier
1300
+ * @param {string} platformId The platform identifier
1301
+ * @param {string} conciergeCandidateId The concierge candidate identifier
1302
+ * @param {*} [options] Override http request option.
1303
+ * @throws {RequiredError}
1304
+ */
1305
+ getConciergeCandidate: (project: string, platformId: string, conciergeCandidateId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1306
+ /**
1307
+ * List concierge candidates
1308
+ * @summary List concierge candidates
1309
+ * @param {string} project Project unique identifier
1310
+ * @param {string} platformId The platform identifier
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ */
1314
+ listConciergeCandidates: (project: string, platformId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1315
+ /**
1316
+ * Update a concierge candidate by a given concierge candidate ID.
1317
+ * @summary Update concierge candidate
1318
+ * @param {string} project Project unique identifier
1319
+ * @param {string} platformId The platform identifier
1320
+ * @param {string} conciergeCandidateId The concierge candidate identifier
1321
+ * @param {UpdateConciergeCandidateRequest} updateConciergeCandidateRequest
1322
+ * @param {*} [options] Override http request option.
1323
+ * @throws {RequiredError}
1324
+ */
1325
+ updateConciergeCandidate: (project: string, platformId: string, conciergeCandidateId: string, updateConciergeCandidateRequest: UpdateConciergeCandidateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1326
+ };
1327
+ /**
1328
+ * ConciergeCandidatesApi - functional programming interface
1329
+ */
1330
+ export declare const ConciergeCandidatesApiFp: (configuration?: Configuration) => {
1331
+ /**
1332
+ * Get a concierge candidate by a given concierge candidate ID.
1333
+ * @summary Get concierge candidate
1334
+ * @param {string} project Project unique identifier
1335
+ * @param {string} platformId The platform identifier
1336
+ * @param {string} conciergeCandidateId The concierge candidate identifier
1337
+ * @param {*} [options] Override http request option.
1338
+ * @throws {RequiredError}
1339
+ */
1340
+ getConciergeCandidate(project: string, platformId: string, conciergeCandidateId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConciergeCandidate>>;
1341
+ /**
1342
+ * List concierge candidates
1343
+ * @summary List concierge candidates
1344
+ * @param {string} project Project unique identifier
1345
+ * @param {string} platformId The platform identifier
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ */
1349
+ listConciergeCandidates(project: string, platformId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListConciergeCandidates200Response>>;
1350
+ /**
1351
+ * Update a concierge candidate by a given concierge candidate ID.
1352
+ * @summary Update concierge candidate
1353
+ * @param {string} project Project unique identifier
1354
+ * @param {string} platformId The platform identifier
1355
+ * @param {string} conciergeCandidateId The concierge candidate identifier
1356
+ * @param {UpdateConciergeCandidateRequest} updateConciergeCandidateRequest
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ updateConciergeCandidate(project: string, platformId: string, conciergeCandidateId: string, updateConciergeCandidateRequest: UpdateConciergeCandidateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConciergeCandidate>>;
1361
+ };
1362
+ /**
1363
+ * ConciergeCandidatesApi - factory interface
1364
+ */
1365
+ export declare const ConciergeCandidatesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1366
+ /**
1367
+ * Get a concierge candidate by a given concierge candidate ID.
1368
+ * @summary Get concierge candidate
1369
+ * @param {ConciergeCandidatesApiGetConciergeCandidateRequest} requestParameters Request parameters.
1370
+ * @param {*} [options] Override http request option.
1371
+ * @throws {RequiredError}
1372
+ */
1373
+ getConciergeCandidate(requestParameters: ConciergeCandidatesApiGetConciergeCandidateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConciergeCandidate>;
1374
+ /**
1375
+ * List concierge candidates
1376
+ * @summary List concierge candidates
1377
+ * @param {ConciergeCandidatesApiListConciergeCandidatesRequest} requestParameters Request parameters.
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ */
1381
+ listConciergeCandidates(requestParameters: ConciergeCandidatesApiListConciergeCandidatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListConciergeCandidates200Response>;
1382
+ /**
1383
+ * Update a concierge candidate by a given concierge candidate ID.
1384
+ * @summary Update concierge candidate
1385
+ * @param {ConciergeCandidatesApiUpdateConciergeCandidateRequest} requestParameters Request parameters.
1386
+ * @param {*} [options] Override http request option.
1387
+ * @throws {RequiredError}
1388
+ */
1389
+ updateConciergeCandidate(requestParameters: ConciergeCandidatesApiUpdateConciergeCandidateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConciergeCandidate>;
1390
+ };
1391
+ /**
1392
+ * Request parameters for getConciergeCandidate operation in ConciergeCandidatesApi.
1393
+ */
1394
+ export interface ConciergeCandidatesApiGetConciergeCandidateRequest {
1395
+ /**
1396
+ * Project unique identifier
1397
+ */
1398
+ readonly project: string;
1399
+ /**
1400
+ * The platform identifier
1401
+ */
1402
+ readonly platformId: string;
1403
+ /**
1404
+ * The concierge candidate identifier
1405
+ */
1406
+ readonly conciergeCandidateId: string;
1407
+ }
1408
+ /**
1409
+ * Request parameters for listConciergeCandidates operation in ConciergeCandidatesApi.
1410
+ */
1411
+ export interface ConciergeCandidatesApiListConciergeCandidatesRequest {
1412
+ /**
1413
+ * Project unique identifier
1414
+ */
1415
+ readonly project: string;
1416
+ /**
1417
+ * The platform identifier
1418
+ */
1419
+ readonly platformId: string;
1420
+ }
1421
+ /**
1422
+ * Request parameters for updateConciergeCandidate operation in ConciergeCandidatesApi.
1423
+ */
1424
+ export interface ConciergeCandidatesApiUpdateConciergeCandidateRequest {
1425
+ /**
1426
+ * Project unique identifier
1427
+ */
1428
+ readonly project: string;
1429
+ /**
1430
+ * The platform identifier
1431
+ */
1432
+ readonly platformId: string;
1433
+ /**
1434
+ * The concierge candidate identifier
1435
+ */
1436
+ readonly conciergeCandidateId: string;
1437
+ readonly updateConciergeCandidateRequest: UpdateConciergeCandidateRequest;
1438
+ }
1439
+ /**
1440
+ * ConciergeCandidatesApi - object-oriented interface
1441
+ */
1442
+ export declare class ConciergeCandidatesApi extends BaseAPI {
1443
+ /**
1444
+ * Get a concierge candidate by a given concierge candidate ID.
1445
+ * @summary Get concierge candidate
1446
+ * @param {ConciergeCandidatesApiGetConciergeCandidateRequest} requestParameters Request parameters.
1447
+ * @param {*} [options] Override http request option.
1448
+ * @throws {RequiredError}
1449
+ */
1450
+ getConciergeCandidate(requestParameters: ConciergeCandidatesApiGetConciergeCandidateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConciergeCandidate, any, {}>>;
1451
+ /**
1452
+ * List concierge candidates
1453
+ * @summary List concierge candidates
1454
+ * @param {ConciergeCandidatesApiListConciergeCandidatesRequest} requestParameters Request parameters.
1455
+ * @param {*} [options] Override http request option.
1456
+ * @throws {RequiredError}
1457
+ */
1458
+ listConciergeCandidates(requestParameters: ConciergeCandidatesApiListConciergeCandidatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListConciergeCandidates200Response, any, {}>>;
1459
+ /**
1460
+ * Update a concierge candidate by a given concierge candidate ID.
1461
+ * @summary Update concierge candidate
1462
+ * @param {ConciergeCandidatesApiUpdateConciergeCandidateRequest} requestParameters Request parameters.
1463
+ * @param {*} [options] Override http request option.
1464
+ * @throws {RequiredError}
1465
+ */
1466
+ updateConciergeCandidate(requestParameters: ConciergeCandidatesApiUpdateConciergeCandidateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConciergeCandidate, any, {}>>;
1467
+ }
1212
1468
  /**
1213
1469
  * CustomersApi - axios parameter creator
1214
1470
  */
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.65.2
8
+ * The version of the OpenAPI document: 0.66.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.PlatformApiAxiosParamCreator = exports.PixelsApi = exports.PixelsApiFactory = exports.PixelsApiFp = exports.PixelsApiAxiosParamCreator = 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.UpdateModerationItemRequestJudgementEnum = exports.ReturnOrderRequestReturnsInnerActionEnum = exports.PriorityLevel = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.FulfillmentFrozenReasonsEnum = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.CreateOrderPaymentMethodTypeEnum = 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 = 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,288 @@ 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
+ * Get a concierge candidate by a given concierge candidate ID.
117
+ * @summary Get 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
+ 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 = {}) {
125
+ // verify required parameter 'project' is not null or undefined
126
+ (0, common_1.assertParamExists)('getConciergeCandidate', 'project', project);
127
+ // verify required parameter 'platformId' is not null or undefined
128
+ (0, common_1.assertParamExists)('getConciergeCandidate', 'platformId', platformId);
129
+ // verify required parameter 'conciergeCandidateId' is not null or undefined
130
+ (0, common_1.assertParamExists)('getConciergeCandidate', 'conciergeCandidateId', conciergeCandidateId);
131
+ const localVarPath = `/v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}`
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: 'GET' }, 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
+ * List concierge candidates
162
+ * @summary List concierge candidates
163
+ * @param {string} project Project unique identifier
164
+ * @param {string} platformId The platform identifier
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ listConciergeCandidates: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
169
+ // verify required parameter 'project' is not null or undefined
170
+ (0, common_1.assertParamExists)('listConciergeCandidates', 'project', project);
171
+ // verify required parameter 'platformId' is not null or undefined
172
+ (0, common_1.assertParamExists)('listConciergeCandidates', 'platformId', platformId);
173
+ const localVarPath = `/v1/platform/{platformId}/concierge-candidates`
174
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
176
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
177
+ let baseOptions;
178
+ if (configuration) {
179
+ baseOptions = configuration.baseOptions;
180
+ }
181
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
182
+ const localVarHeaderParameter = {};
183
+ const localVarQueryParameter = {};
184
+ // authentication session-oauth required
185
+ // oauth required
186
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
187
+ // authentication api-key required
188
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
189
+ if (project !== undefined) {
190
+ localVarQueryParameter['project'] = project;
191
+ }
192
+ localVarHeaderParameter['Accept'] = 'application/json';
193
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
196
+ return {
197
+ url: (0, common_1.toPathString)(localVarUrlObj),
198
+ options: localVarRequestOptions,
199
+ };
200
+ }),
201
+ /**
202
+ * Update a concierge candidate by a given concierge candidate ID.
203
+ * @summary Update concierge candidate
204
+ * @param {string} project Project unique identifier
205
+ * @param {string} platformId The platform identifier
206
+ * @param {string} conciergeCandidateId The concierge candidate identifier
207
+ * @param {UpdateConciergeCandidateRequest} updateConciergeCandidateRequest
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ updateConciergeCandidate: (project_1, platformId_1, conciergeCandidateId_1, updateConciergeCandidateRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, conciergeCandidateId_1, updateConciergeCandidateRequest_1, ...args_1], void 0, function* (project, platformId, conciergeCandidateId, updateConciergeCandidateRequest, options = {}) {
212
+ // verify required parameter 'project' is not null or undefined
213
+ (0, common_1.assertParamExists)('updateConciergeCandidate', 'project', project);
214
+ // verify required parameter 'platformId' is not null or undefined
215
+ (0, common_1.assertParamExists)('updateConciergeCandidate', 'platformId', platformId);
216
+ // verify required parameter 'conciergeCandidateId' is not null or undefined
217
+ (0, common_1.assertParamExists)('updateConciergeCandidate', 'conciergeCandidateId', conciergeCandidateId);
218
+ // verify required parameter 'updateConciergeCandidateRequest' is not null or undefined
219
+ (0, common_1.assertParamExists)('updateConciergeCandidate', 'updateConciergeCandidateRequest', updateConciergeCandidateRequest);
220
+ const localVarPath = `/v1/platform/{platformId}/concierge-candidates/{conciergeCandidateId}`
221
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
222
+ .replace(`{${"conciergeCandidateId"}}`, encodeURIComponent(String(conciergeCandidateId)));
223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
224
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
225
+ let baseOptions;
226
+ if (configuration) {
227
+ baseOptions = configuration.baseOptions;
228
+ }
229
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
230
+ const localVarHeaderParameter = {};
231
+ const localVarQueryParameter = {};
232
+ // authentication session-oauth required
233
+ // oauth required
234
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
235
+ // authentication api-key required
236
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
237
+ if (project !== undefined) {
238
+ localVarQueryParameter['project'] = project;
239
+ }
240
+ localVarHeaderParameter['Content-Type'] = 'application/json';
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
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateConciergeCandidateRequest, localVarRequestOptions, configuration);
246
+ return {
247
+ url: (0, common_1.toPathString)(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ };
250
+ }),
251
+ };
252
+ };
253
+ exports.ConciergeCandidatesApiAxiosParamCreator = ConciergeCandidatesApiAxiosParamCreator;
254
+ /**
255
+ * ConciergeCandidatesApi - functional programming interface
256
+ */
257
+ const ConciergeCandidatesApiFp = function (configuration) {
258
+ const localVarAxiosParamCreator = (0, exports.ConciergeCandidatesApiAxiosParamCreator)(configuration);
259
+ return {
260
+ /**
261
+ * Get a concierge candidate by a given concierge candidate ID.
262
+ * @summary Get concierge candidate
263
+ * @param {string} project Project unique identifier
264
+ * @param {string} platformId The platform identifier
265
+ * @param {string} conciergeCandidateId The concierge candidate identifier
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ getConciergeCandidate(project, platformId, conciergeCandidateId, options) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ var _a, _b, _c;
272
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getConciergeCandidate(project, platformId, conciergeCandidateId, options);
273
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
274
+ 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;
275
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
276
+ });
277
+ },
278
+ /**
279
+ * List concierge candidates
280
+ * @summary List concierge candidates
281
+ * @param {string} project Project unique identifier
282
+ * @param {string} platformId The platform identifier
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ listConciergeCandidates(project, platformId, options) {
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ var _a, _b, _c;
289
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listConciergeCandidates(project, platformId, options);
290
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
291
+ 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;
292
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
293
+ });
294
+ },
295
+ /**
296
+ * Update a concierge candidate by a given concierge candidate ID.
297
+ * @summary Update concierge candidate
298
+ * @param {string} project Project unique identifier
299
+ * @param {string} platformId The platform identifier
300
+ * @param {string} conciergeCandidateId The concierge candidate identifier
301
+ * @param {UpdateConciergeCandidateRequest} updateConciergeCandidateRequest
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ updateConciergeCandidate(project, platformId, conciergeCandidateId, updateConciergeCandidateRequest, options) {
306
+ return __awaiter(this, void 0, void 0, function* () {
307
+ var _a, _b, _c;
308
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateConciergeCandidate(project, platformId, conciergeCandidateId, updateConciergeCandidateRequest, options);
309
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
310
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConciergeCandidatesApi.updateConciergeCandidate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
311
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
312
+ });
313
+ },
314
+ };
315
+ };
316
+ exports.ConciergeCandidatesApiFp = ConciergeCandidatesApiFp;
317
+ /**
318
+ * ConciergeCandidatesApi - factory interface
319
+ */
320
+ const ConciergeCandidatesApiFactory = function (configuration, basePath, axios) {
321
+ const localVarFp = (0, exports.ConciergeCandidatesApiFp)(configuration);
322
+ return {
323
+ /**
324
+ * Get a concierge candidate by a given concierge candidate ID.
325
+ * @summary Get concierge candidate
326
+ * @param {ConciergeCandidatesApiGetConciergeCandidateRequest} requestParameters Request parameters.
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ getConciergeCandidate(requestParameters, options) {
331
+ return localVarFp.getConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(axios, basePath));
332
+ },
333
+ /**
334
+ * List concierge candidates
335
+ * @summary List concierge candidates
336
+ * @param {ConciergeCandidatesApiListConciergeCandidatesRequest} requestParameters Request parameters.
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ listConciergeCandidates(requestParameters, options) {
341
+ return localVarFp.listConciergeCandidates(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
342
+ },
343
+ /**
344
+ * Update a concierge candidate by a given concierge candidate ID.
345
+ * @summary Update concierge candidate
346
+ * @param {ConciergeCandidatesApiUpdateConciergeCandidateRequest} requestParameters Request parameters.
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ updateConciergeCandidate(requestParameters, options) {
351
+ return localVarFp.updateConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, requestParameters.updateConciergeCandidateRequest, options).then((request) => request(axios, basePath));
352
+ },
353
+ };
354
+ };
355
+ exports.ConciergeCandidatesApiFactory = ConciergeCandidatesApiFactory;
356
+ /**
357
+ * ConciergeCandidatesApi - object-oriented interface
358
+ */
359
+ class ConciergeCandidatesApi extends base_1.BaseAPI {
360
+ /**
361
+ * Get a concierge candidate by a given concierge candidate ID.
362
+ * @summary Get concierge candidate
363
+ * @param {ConciergeCandidatesApiGetConciergeCandidateRequest} requestParameters Request parameters.
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ */
367
+ getConciergeCandidate(requestParameters, options) {
368
+ return (0, exports.ConciergeCandidatesApiFp)(this.configuration).getConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, options).then((request) => request(this.axios, this.basePath));
369
+ }
370
+ /**
371
+ * List concierge candidates
372
+ * @summary List concierge candidates
373
+ * @param {ConciergeCandidatesApiListConciergeCandidatesRequest} requestParameters Request parameters.
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ listConciergeCandidates(requestParameters, options) {
378
+ return (0, exports.ConciergeCandidatesApiFp)(this.configuration).listConciergeCandidates(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
379
+ }
380
+ /**
381
+ * Update a concierge candidate by a given concierge candidate ID.
382
+ * @summary Update concierge candidate
383
+ * @param {ConciergeCandidatesApiUpdateConciergeCandidateRequest} requestParameters Request parameters.
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ updateConciergeCandidate(requestParameters, options) {
388
+ return (0, exports.ConciergeCandidatesApiFp)(this.configuration).updateConciergeCandidate(requestParameters.project, requestParameters.platformId, requestParameters.conciergeCandidateId, requestParameters.updateConciergeCandidateRequest, options).then((request) => request(this.axios, this.basePath));
389
+ }
390
+ }
391
+ exports.ConciergeCandidatesApi = ConciergeCandidatesApi;
104
392
  /**
105
393
  * CustomersApi - axios parameter creator
106
394
  */
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.65.2
5
+ * The version of the OpenAPI document: 0.66.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.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.65.2
8
+ * The version of the OpenAPI document: 0.66.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.65.2
5
+ * The version of the OpenAPI document: 0.66.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.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.65.2
8
+ * The version of the OpenAPI document: 0.66.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Platform
3
3
  * Manage Your podOS platform
4
4
  *
5
- * The version of the OpenAPI document: 0.65.2
5
+ * The version of the OpenAPI document: 0.66.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).