@teemill/website 0.2.6 → 0.3.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/README.md +2 -2
- package/api.ts +262 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +143 -1
- package/dist/api.js +200 -2
- 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 +143 -1
- package/dist/esm/api.js +195 -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/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/website@0.
|
|
1
|
+
## @teemill/website@0.3.0
|
|
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/website@0.
|
|
39
|
+
npm install @teemill/website@0.3.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -325,6 +325,267 @@ export interface UpdateMenuRequestSubmenuItem {
|
|
|
325
325
|
'order': number;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
+
/**
|
|
329
|
+
* CrossSellApi - axios parameter creator
|
|
330
|
+
* @export
|
|
331
|
+
*/
|
|
332
|
+
export const CrossSellApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
333
|
+
return {
|
|
334
|
+
/**
|
|
335
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
336
|
+
* @summary Attach cross-sell products
|
|
337
|
+
* @param {string} project What project it is
|
|
338
|
+
* @param {string} productId Product\'s unique identifier
|
|
339
|
+
* @param {Array<string>} [requestBody]
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
attachCrossSellProducts: async (project: string, productId: string, requestBody?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
344
|
+
// verify required parameter 'project' is not null or undefined
|
|
345
|
+
assertParamExists('attachCrossSellProducts', 'project', project)
|
|
346
|
+
// verify required parameter 'productId' is not null or undefined
|
|
347
|
+
assertParamExists('attachCrossSellProducts', 'productId', productId)
|
|
348
|
+
const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
|
|
349
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
350
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
351
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
352
|
+
let baseOptions;
|
|
353
|
+
if (configuration) {
|
|
354
|
+
baseOptions = configuration.baseOptions;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
358
|
+
const localVarHeaderParameter = {} as any;
|
|
359
|
+
const localVarQueryParameter = {} as any;
|
|
360
|
+
|
|
361
|
+
// authentication session-oauth required
|
|
362
|
+
// oauth required
|
|
363
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
364
|
+
|
|
365
|
+
// authentication api-key required
|
|
366
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
367
|
+
|
|
368
|
+
if (project !== undefined) {
|
|
369
|
+
localVarQueryParameter['project'] = project;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
375
|
+
|
|
376
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
379
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
380
|
+
|
|
381
|
+
return {
|
|
382
|
+
url: toPathString(localVarUrlObj),
|
|
383
|
+
options: localVarRequestOptions,
|
|
384
|
+
};
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @summary Get cross-sell products linked to a product
|
|
389
|
+
* @param {string} project What project it is
|
|
390
|
+
* @param {string} productId Product\'s unique identifier
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
getCrossSellProducts: async (project: string, productId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
395
|
+
// verify required parameter 'project' is not null or undefined
|
|
396
|
+
assertParamExists('getCrossSellProducts', 'project', project)
|
|
397
|
+
// verify required parameter 'productId' is not null or undefined
|
|
398
|
+
assertParamExists('getCrossSellProducts', 'productId', productId)
|
|
399
|
+
const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
|
|
400
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
402
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
403
|
+
let baseOptions;
|
|
404
|
+
if (configuration) {
|
|
405
|
+
baseOptions = configuration.baseOptions;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
409
|
+
const localVarHeaderParameter = {} as any;
|
|
410
|
+
const localVarQueryParameter = {} as any;
|
|
411
|
+
|
|
412
|
+
// authentication session-oauth required
|
|
413
|
+
// oauth required
|
|
414
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
415
|
+
|
|
416
|
+
// authentication api-key required
|
|
417
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
418
|
+
|
|
419
|
+
if (project !== undefined) {
|
|
420
|
+
localVarQueryParameter['project'] = project;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
426
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
427
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
428
|
+
|
|
429
|
+
return {
|
|
430
|
+
url: toPathString(localVarUrlObj),
|
|
431
|
+
options: localVarRequestOptions,
|
|
432
|
+
};
|
|
433
|
+
},
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* CrossSellApi - functional programming interface
|
|
439
|
+
* @export
|
|
440
|
+
*/
|
|
441
|
+
export const CrossSellApiFp = function(configuration?: Configuration) {
|
|
442
|
+
const localVarAxiosParamCreator = CrossSellApiAxiosParamCreator(configuration)
|
|
443
|
+
return {
|
|
444
|
+
/**
|
|
445
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
446
|
+
* @summary Attach cross-sell products
|
|
447
|
+
* @param {string} project What project it is
|
|
448
|
+
* @param {string} productId Product\'s unique identifier
|
|
449
|
+
* @param {Array<string>} [requestBody]
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
*/
|
|
453
|
+
async attachCrossSellProducts(project: string, productId: string, requestBody?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.attachCrossSellProducts(project, productId, requestBody, options);
|
|
455
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
456
|
+
const localVarOperationServerBasePath = operationServerMap['CrossSellApi.attachCrossSellProducts']?.[localVarOperationServerIndex]?.url;
|
|
457
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
458
|
+
},
|
|
459
|
+
/**
|
|
460
|
+
*
|
|
461
|
+
* @summary Get cross-sell products linked to a product
|
|
462
|
+
* @param {string} project What project it is
|
|
463
|
+
* @param {string} productId Product\'s unique identifier
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
*/
|
|
467
|
+
async getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
468
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
|
|
469
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
470
|
+
const localVarOperationServerBasePath = operationServerMap['CrossSellApi.getCrossSellProducts']?.[localVarOperationServerIndex]?.url;
|
|
471
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
472
|
+
},
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* CrossSellApi - factory interface
|
|
478
|
+
* @export
|
|
479
|
+
*/
|
|
480
|
+
export const CrossSellApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
481
|
+
const localVarFp = CrossSellApiFp(configuration)
|
|
482
|
+
return {
|
|
483
|
+
/**
|
|
484
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
485
|
+
* @summary Attach cross-sell products
|
|
486
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
491
|
+
return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
492
|
+
},
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @summary Get cross-sell products linked to a product
|
|
496
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
501
|
+
return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
502
|
+
},
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Request parameters for attachCrossSellProducts operation in CrossSellApi.
|
|
508
|
+
* @export
|
|
509
|
+
* @interface CrossSellApiAttachCrossSellProductsRequest
|
|
510
|
+
*/
|
|
511
|
+
export interface CrossSellApiAttachCrossSellProductsRequest {
|
|
512
|
+
/**
|
|
513
|
+
* What project it is
|
|
514
|
+
* @type {string}
|
|
515
|
+
* @memberof CrossSellApiAttachCrossSellProducts
|
|
516
|
+
*/
|
|
517
|
+
readonly project: string
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Product\'s unique identifier
|
|
521
|
+
* @type {string}
|
|
522
|
+
* @memberof CrossSellApiAttachCrossSellProducts
|
|
523
|
+
*/
|
|
524
|
+
readonly productId: string
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @type {Array<string>}
|
|
529
|
+
* @memberof CrossSellApiAttachCrossSellProducts
|
|
530
|
+
*/
|
|
531
|
+
readonly requestBody?: Array<string>
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Request parameters for getCrossSellProducts operation in CrossSellApi.
|
|
536
|
+
* @export
|
|
537
|
+
* @interface CrossSellApiGetCrossSellProductsRequest
|
|
538
|
+
*/
|
|
539
|
+
export interface CrossSellApiGetCrossSellProductsRequest {
|
|
540
|
+
/**
|
|
541
|
+
* What project it is
|
|
542
|
+
* @type {string}
|
|
543
|
+
* @memberof CrossSellApiGetCrossSellProducts
|
|
544
|
+
*/
|
|
545
|
+
readonly project: string
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Product\'s unique identifier
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof CrossSellApiGetCrossSellProducts
|
|
551
|
+
*/
|
|
552
|
+
readonly productId: string
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* CrossSellApi - object-oriented interface
|
|
557
|
+
* @export
|
|
558
|
+
* @class CrossSellApi
|
|
559
|
+
* @extends {BaseAPI}
|
|
560
|
+
*/
|
|
561
|
+
export class CrossSellApi extends BaseAPI {
|
|
562
|
+
/**
|
|
563
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
564
|
+
* @summary Attach cross-sell products
|
|
565
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
* @memberof CrossSellApi
|
|
569
|
+
*/
|
|
570
|
+
public attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
|
|
571
|
+
return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @summary Get cross-sell products linked to a product
|
|
577
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
* @memberof CrossSellApi
|
|
581
|
+
*/
|
|
582
|
+
public getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig) {
|
|
583
|
+
return CrossSellApiFp(this.configuration).getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
328
589
|
/**
|
|
329
590
|
* MenuApi - axios parameter creator
|
|
330
591
|
* @export
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -313,6 +313,148 @@ export interface UpdateMenuRequestSubmenuItem {
|
|
|
313
313
|
*/
|
|
314
314
|
'order': number;
|
|
315
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* CrossSellApi - axios parameter creator
|
|
318
|
+
* @export
|
|
319
|
+
*/
|
|
320
|
+
export declare const CrossSellApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
321
|
+
/**
|
|
322
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
323
|
+
* @summary Attach cross-sell products
|
|
324
|
+
* @param {string} project What project it is
|
|
325
|
+
* @param {string} productId Product\'s unique identifier
|
|
326
|
+
* @param {Array<string>} [requestBody]
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
attachCrossSellProducts: (project: string, productId: string, requestBody?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @summary Get cross-sell products linked to a product
|
|
334
|
+
* @param {string} project What project it is
|
|
335
|
+
* @param {string} productId Product\'s unique identifier
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
getCrossSellProducts: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* CrossSellApi - functional programming interface
|
|
343
|
+
* @export
|
|
344
|
+
*/
|
|
345
|
+
export declare const CrossSellApiFp: (configuration?: Configuration) => {
|
|
346
|
+
/**
|
|
347
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
348
|
+
* @summary Attach cross-sell products
|
|
349
|
+
* @param {string} project What project it is
|
|
350
|
+
* @param {string} productId Product\'s unique identifier
|
|
351
|
+
* @param {Array<string>} [requestBody]
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
attachCrossSellProducts(project: string, productId: string, requestBody?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @summary Get cross-sell products linked to a product
|
|
359
|
+
* @param {string} project What project it is
|
|
360
|
+
* @param {string} productId Product\'s unique identifier
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* CrossSellApi - factory interface
|
|
368
|
+
* @export
|
|
369
|
+
*/
|
|
370
|
+
export declare const CrossSellApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
371
|
+
/**
|
|
372
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
373
|
+
* @summary Attach cross-sell products
|
|
374
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary Get cross-sell products linked to a product
|
|
382
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
*/
|
|
386
|
+
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* Request parameters for attachCrossSellProducts operation in CrossSellApi.
|
|
390
|
+
* @export
|
|
391
|
+
* @interface CrossSellApiAttachCrossSellProductsRequest
|
|
392
|
+
*/
|
|
393
|
+
export interface CrossSellApiAttachCrossSellProductsRequest {
|
|
394
|
+
/**
|
|
395
|
+
* What project it is
|
|
396
|
+
* @type {string}
|
|
397
|
+
* @memberof CrossSellApiAttachCrossSellProducts
|
|
398
|
+
*/
|
|
399
|
+
readonly project: string;
|
|
400
|
+
/**
|
|
401
|
+
* Product\'s unique identifier
|
|
402
|
+
* @type {string}
|
|
403
|
+
* @memberof CrossSellApiAttachCrossSellProducts
|
|
404
|
+
*/
|
|
405
|
+
readonly productId: string;
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @type {Array<string>}
|
|
409
|
+
* @memberof CrossSellApiAttachCrossSellProducts
|
|
410
|
+
*/
|
|
411
|
+
readonly requestBody?: Array<string>;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Request parameters for getCrossSellProducts operation in CrossSellApi.
|
|
415
|
+
* @export
|
|
416
|
+
* @interface CrossSellApiGetCrossSellProductsRequest
|
|
417
|
+
*/
|
|
418
|
+
export interface CrossSellApiGetCrossSellProductsRequest {
|
|
419
|
+
/**
|
|
420
|
+
* What project it is
|
|
421
|
+
* @type {string}
|
|
422
|
+
* @memberof CrossSellApiGetCrossSellProducts
|
|
423
|
+
*/
|
|
424
|
+
readonly project: string;
|
|
425
|
+
/**
|
|
426
|
+
* Product\'s unique identifier
|
|
427
|
+
* @type {string}
|
|
428
|
+
* @memberof CrossSellApiGetCrossSellProducts
|
|
429
|
+
*/
|
|
430
|
+
readonly productId: string;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* CrossSellApi - object-oriented interface
|
|
434
|
+
* @export
|
|
435
|
+
* @class CrossSellApi
|
|
436
|
+
* @extends {BaseAPI}
|
|
437
|
+
*/
|
|
438
|
+
export declare class CrossSellApi extends BaseAPI {
|
|
439
|
+
/**
|
|
440
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
441
|
+
* @summary Attach cross-sell products
|
|
442
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
* @memberof CrossSellApi
|
|
446
|
+
*/
|
|
447
|
+
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @summary Get cross-sell products linked to a product
|
|
451
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
452
|
+
* @param {*} [options] Override http request option.
|
|
453
|
+
* @throws {RequiredError}
|
|
454
|
+
* @memberof CrossSellApi
|
|
455
|
+
*/
|
|
456
|
+
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
|
|
457
|
+
}
|
|
316
458
|
/**
|
|
317
459
|
* MenuApi - axios parameter creator
|
|
318
460
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website API
|
|
6
6
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.MenuApi = exports.MenuApiFactory = exports.MenuApiFp = exports.MenuApiAxiosParamCreator = exports.PaymentAccountMethodEnum = void 0;
|
|
25
|
+
exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.MenuApi = exports.MenuApiFactory = exports.MenuApiFp = exports.MenuApiAxiosParamCreator = exports.CrossSellApi = exports.CrossSellApiFactory = exports.CrossSellApiFp = exports.CrossSellApiAxiosParamCreator = exports.PaymentAccountMethodEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -33,6 +33,204 @@ exports.PaymentAccountMethodEnum = {
|
|
|
33
33
|
Stripe: 'stripe',
|
|
34
34
|
Paypal: 'paypal'
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* CrossSellApi - axios parameter creator
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
const CrossSellApiAxiosParamCreator = function (configuration) {
|
|
41
|
+
return {
|
|
42
|
+
/**
|
|
43
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
44
|
+
* @summary Attach cross-sell products
|
|
45
|
+
* @param {string} project What project it is
|
|
46
|
+
* @param {string} productId Product\'s unique identifier
|
|
47
|
+
* @param {Array<string>} [requestBody]
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
attachCrossSellProducts: (project_1, productId_1, requestBody_1, ...args_1) => __awaiter(this, [project_1, productId_1, requestBody_1, ...args_1], void 0, function* (project, productId, requestBody, options = {}) {
|
|
52
|
+
// verify required parameter 'project' is not null or undefined
|
|
53
|
+
(0, common_1.assertParamExists)('attachCrossSellProducts', 'project', project);
|
|
54
|
+
// verify required parameter 'productId' is not null or undefined
|
|
55
|
+
(0, common_1.assertParamExists)('attachCrossSellProducts', 'productId', productId);
|
|
56
|
+
const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
|
|
57
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
58
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
60
|
+
let baseOptions;
|
|
61
|
+
if (configuration) {
|
|
62
|
+
baseOptions = configuration.baseOptions;
|
|
63
|
+
}
|
|
64
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
65
|
+
const localVarHeaderParameter = {};
|
|
66
|
+
const localVarQueryParameter = {};
|
|
67
|
+
// authentication session-oauth required
|
|
68
|
+
// oauth required
|
|
69
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
70
|
+
// authentication api-key required
|
|
71
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
72
|
+
if (project !== undefined) {
|
|
73
|
+
localVarQueryParameter['project'] = project;
|
|
74
|
+
}
|
|
75
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
76
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
77
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
79
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
|
|
80
|
+
return {
|
|
81
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
82
|
+
options: localVarRequestOptions,
|
|
83
|
+
};
|
|
84
|
+
}),
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @summary Get cross-sell products linked to a product
|
|
88
|
+
* @param {string} project What project it is
|
|
89
|
+
* @param {string} productId Product\'s unique identifier
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
getCrossSellProducts: (project_1, productId_1, ...args_1) => __awaiter(this, [project_1, productId_1, ...args_1], void 0, function* (project, productId, options = {}) {
|
|
94
|
+
// verify required parameter 'project' is not null or undefined
|
|
95
|
+
(0, common_1.assertParamExists)('getCrossSellProducts', 'project', project);
|
|
96
|
+
// verify required parameter 'productId' is not null or undefined
|
|
97
|
+
(0, common_1.assertParamExists)('getCrossSellProducts', 'productId', productId);
|
|
98
|
+
const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
|
|
99
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
100
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
102
|
+
let baseOptions;
|
|
103
|
+
if (configuration) {
|
|
104
|
+
baseOptions = configuration.baseOptions;
|
|
105
|
+
}
|
|
106
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
107
|
+
const localVarHeaderParameter = {};
|
|
108
|
+
const localVarQueryParameter = {};
|
|
109
|
+
// authentication session-oauth required
|
|
110
|
+
// oauth required
|
|
111
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
112
|
+
// authentication api-key required
|
|
113
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
114
|
+
if (project !== undefined) {
|
|
115
|
+
localVarQueryParameter['project'] = project;
|
|
116
|
+
}
|
|
117
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
119
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
120
|
+
return {
|
|
121
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
122
|
+
options: localVarRequestOptions,
|
|
123
|
+
};
|
|
124
|
+
}),
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
exports.CrossSellApiAxiosParamCreator = CrossSellApiAxiosParamCreator;
|
|
128
|
+
/**
|
|
129
|
+
* CrossSellApi - functional programming interface
|
|
130
|
+
* @export
|
|
131
|
+
*/
|
|
132
|
+
const CrossSellApiFp = function (configuration) {
|
|
133
|
+
const localVarAxiosParamCreator = (0, exports.CrossSellApiAxiosParamCreator)(configuration);
|
|
134
|
+
return {
|
|
135
|
+
/**
|
|
136
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
137
|
+
* @summary Attach cross-sell products
|
|
138
|
+
* @param {string} project What project it is
|
|
139
|
+
* @param {string} productId Product\'s unique identifier
|
|
140
|
+
* @param {Array<string>} [requestBody]
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
attachCrossSellProducts(project, productId, requestBody, options) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
var _a, _b, _c;
|
|
147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachCrossSellProducts(project, productId, requestBody, options);
|
|
148
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
149
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CrossSellApi.attachCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
150
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
151
|
+
});
|
|
152
|
+
},
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @summary Get cross-sell products linked to a product
|
|
156
|
+
* @param {string} project What project it is
|
|
157
|
+
* @param {string} productId Product\'s unique identifier
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
getCrossSellProducts(project, productId, options) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
var _a, _b, _c;
|
|
164
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
|
|
165
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
166
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CrossSellApi.getCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
167
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
168
|
+
});
|
|
169
|
+
},
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
exports.CrossSellApiFp = CrossSellApiFp;
|
|
173
|
+
/**
|
|
174
|
+
* CrossSellApi - factory interface
|
|
175
|
+
* @export
|
|
176
|
+
*/
|
|
177
|
+
const CrossSellApiFactory = function (configuration, basePath, axios) {
|
|
178
|
+
const localVarFp = (0, exports.CrossSellApiFp)(configuration);
|
|
179
|
+
return {
|
|
180
|
+
/**
|
|
181
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
182
|
+
* @summary Attach cross-sell products
|
|
183
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
attachCrossSellProducts(requestParameters, options) {
|
|
188
|
+
return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @summary Get cross-sell products linked to a product
|
|
193
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
getCrossSellProducts(requestParameters, options) {
|
|
198
|
+
return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
199
|
+
},
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
exports.CrossSellApiFactory = CrossSellApiFactory;
|
|
203
|
+
/**
|
|
204
|
+
* CrossSellApi - object-oriented interface
|
|
205
|
+
* @export
|
|
206
|
+
* @class CrossSellApi
|
|
207
|
+
* @extends {BaseAPI}
|
|
208
|
+
*/
|
|
209
|
+
class CrossSellApi extends base_1.BaseAPI {
|
|
210
|
+
/**
|
|
211
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
212
|
+
* @summary Attach cross-sell products
|
|
213
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
* @memberof CrossSellApi
|
|
217
|
+
*/
|
|
218
|
+
attachCrossSellProducts(requestParameters, options) {
|
|
219
|
+
return (0, exports.CrossSellApiFp)(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @summary Get cross-sell products linked to a product
|
|
224
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
225
|
+
* @param {*} [options] Override http request option.
|
|
226
|
+
* @throws {RequiredError}
|
|
227
|
+
* @memberof CrossSellApi
|
|
228
|
+
*/
|
|
229
|
+
getCrossSellProducts(requestParameters, options) {
|
|
230
|
+
return (0, exports.CrossSellApiFp)(this.configuration).getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.CrossSellApi = CrossSellApi;
|
|
36
234
|
/**
|
|
37
235
|
* MenuApi - axios parameter creator
|
|
38
236
|
* @export
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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
|
* Website API
|
|
6
6
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
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
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
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
|
* Website API
|
|
6
6
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website API
|
|
6
6
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -313,6 +313,148 @@ export interface UpdateMenuRequestSubmenuItem {
|
|
|
313
313
|
*/
|
|
314
314
|
'order': number;
|
|
315
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* CrossSellApi - axios parameter creator
|
|
318
|
+
* @export
|
|
319
|
+
*/
|
|
320
|
+
export declare const CrossSellApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
321
|
+
/**
|
|
322
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
323
|
+
* @summary Attach cross-sell products
|
|
324
|
+
* @param {string} project What project it is
|
|
325
|
+
* @param {string} productId Product\'s unique identifier
|
|
326
|
+
* @param {Array<string>} [requestBody]
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
attachCrossSellProducts: (project: string, productId: string, requestBody?: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @summary Get cross-sell products linked to a product
|
|
334
|
+
* @param {string} project What project it is
|
|
335
|
+
* @param {string} productId Product\'s unique identifier
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
getCrossSellProducts: (project: string, productId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* CrossSellApi - functional programming interface
|
|
343
|
+
* @export
|
|
344
|
+
*/
|
|
345
|
+
export declare const CrossSellApiFp: (configuration?: Configuration) => {
|
|
346
|
+
/**
|
|
347
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
348
|
+
* @summary Attach cross-sell products
|
|
349
|
+
* @param {string} project What project it is
|
|
350
|
+
* @param {string} productId Product\'s unique identifier
|
|
351
|
+
* @param {Array<string>} [requestBody]
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
attachCrossSellProducts(project: string, productId: string, requestBody?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @summary Get cross-sell products linked to a product
|
|
359
|
+
* @param {string} project What project it is
|
|
360
|
+
* @param {string} productId Product\'s unique identifier
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
getCrossSellProducts(project: string, productId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* CrossSellApi - factory interface
|
|
368
|
+
* @export
|
|
369
|
+
*/
|
|
370
|
+
export declare const CrossSellApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
371
|
+
/**
|
|
372
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
373
|
+
* @summary Attach cross-sell products
|
|
374
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary Get cross-sell products linked to a product
|
|
382
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
*/
|
|
386
|
+
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* Request parameters for attachCrossSellProducts operation in CrossSellApi.
|
|
390
|
+
* @export
|
|
391
|
+
* @interface CrossSellApiAttachCrossSellProductsRequest
|
|
392
|
+
*/
|
|
393
|
+
export interface CrossSellApiAttachCrossSellProductsRequest {
|
|
394
|
+
/**
|
|
395
|
+
* What project it is
|
|
396
|
+
* @type {string}
|
|
397
|
+
* @memberof CrossSellApiAttachCrossSellProducts
|
|
398
|
+
*/
|
|
399
|
+
readonly project: string;
|
|
400
|
+
/**
|
|
401
|
+
* Product\'s unique identifier
|
|
402
|
+
* @type {string}
|
|
403
|
+
* @memberof CrossSellApiAttachCrossSellProducts
|
|
404
|
+
*/
|
|
405
|
+
readonly productId: string;
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @type {Array<string>}
|
|
409
|
+
* @memberof CrossSellApiAttachCrossSellProducts
|
|
410
|
+
*/
|
|
411
|
+
readonly requestBody?: Array<string>;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Request parameters for getCrossSellProducts operation in CrossSellApi.
|
|
415
|
+
* @export
|
|
416
|
+
* @interface CrossSellApiGetCrossSellProductsRequest
|
|
417
|
+
*/
|
|
418
|
+
export interface CrossSellApiGetCrossSellProductsRequest {
|
|
419
|
+
/**
|
|
420
|
+
* What project it is
|
|
421
|
+
* @type {string}
|
|
422
|
+
* @memberof CrossSellApiGetCrossSellProducts
|
|
423
|
+
*/
|
|
424
|
+
readonly project: string;
|
|
425
|
+
/**
|
|
426
|
+
* Product\'s unique identifier
|
|
427
|
+
* @type {string}
|
|
428
|
+
* @memberof CrossSellApiGetCrossSellProducts
|
|
429
|
+
*/
|
|
430
|
+
readonly productId: string;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* CrossSellApi - object-oriented interface
|
|
434
|
+
* @export
|
|
435
|
+
* @class CrossSellApi
|
|
436
|
+
* @extends {BaseAPI}
|
|
437
|
+
*/
|
|
438
|
+
export declare class CrossSellApi extends BaseAPI {
|
|
439
|
+
/**
|
|
440
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
441
|
+
* @summary Attach cross-sell products
|
|
442
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
* @memberof CrossSellApi
|
|
446
|
+
*/
|
|
447
|
+
attachCrossSellProducts(requestParameters: CrossSellApiAttachCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @summary Get cross-sell products linked to a product
|
|
451
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
452
|
+
* @param {*} [options] Override http request option.
|
|
453
|
+
* @throws {RequiredError}
|
|
454
|
+
* @memberof CrossSellApi
|
|
455
|
+
*/
|
|
456
|
+
getCrossSellProducts(requestParameters: CrossSellApiGetCrossSellProductsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
|
|
457
|
+
}
|
|
316
458
|
/**
|
|
317
459
|
* MenuApi - axios parameter creator
|
|
318
460
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,6 +30,200 @@ export const PaymentAccountMethodEnum = {
|
|
|
30
30
|
Stripe: 'stripe',
|
|
31
31
|
Paypal: 'paypal'
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* CrossSellApi - axios parameter creator
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export const CrossSellApiAxiosParamCreator = function (configuration) {
|
|
38
|
+
return {
|
|
39
|
+
/**
|
|
40
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
41
|
+
* @summary Attach cross-sell products
|
|
42
|
+
* @param {string} project What project it is
|
|
43
|
+
* @param {string} productId Product\'s unique identifier
|
|
44
|
+
* @param {Array<string>} [requestBody]
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
attachCrossSellProducts: (project_1, productId_1, requestBody_1, ...args_1) => __awaiter(this, [project_1, productId_1, requestBody_1, ...args_1], void 0, function* (project, productId, requestBody, options = {}) {
|
|
49
|
+
// verify required parameter 'project' is not null or undefined
|
|
50
|
+
assertParamExists('attachCrossSellProducts', 'project', project);
|
|
51
|
+
// verify required parameter 'productId' is not null or undefined
|
|
52
|
+
assertParamExists('attachCrossSellProducts', 'productId', productId);
|
|
53
|
+
const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
|
|
54
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
baseOptions = configuration.baseOptions;
|
|
60
|
+
}
|
|
61
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
62
|
+
const localVarHeaderParameter = {};
|
|
63
|
+
const localVarQueryParameter = {};
|
|
64
|
+
// authentication session-oauth required
|
|
65
|
+
// oauth required
|
|
66
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
67
|
+
// authentication api-key required
|
|
68
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
69
|
+
if (project !== undefined) {
|
|
70
|
+
localVarQueryParameter['project'] = project;
|
|
71
|
+
}
|
|
72
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
76
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
77
|
+
return {
|
|
78
|
+
url: toPathString(localVarUrlObj),
|
|
79
|
+
options: localVarRequestOptions,
|
|
80
|
+
};
|
|
81
|
+
}),
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary Get cross-sell products linked to a product
|
|
85
|
+
* @param {string} project What project it is
|
|
86
|
+
* @param {string} productId Product\'s unique identifier
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
getCrossSellProducts: (project_1, productId_1, ...args_1) => __awaiter(this, [project_1, productId_1, ...args_1], void 0, function* (project, productId, options = {}) {
|
|
91
|
+
// verify required parameter 'project' is not null or undefined
|
|
92
|
+
assertParamExists('getCrossSellProducts', 'project', project);
|
|
93
|
+
// verify required parameter 'productId' is not null or undefined
|
|
94
|
+
assertParamExists('getCrossSellProducts', 'productId', productId);
|
|
95
|
+
const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
|
|
96
|
+
.replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
|
|
97
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
99
|
+
let baseOptions;
|
|
100
|
+
if (configuration) {
|
|
101
|
+
baseOptions = configuration.baseOptions;
|
|
102
|
+
}
|
|
103
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
104
|
+
const localVarHeaderParameter = {};
|
|
105
|
+
const localVarQueryParameter = {};
|
|
106
|
+
// authentication session-oauth required
|
|
107
|
+
// oauth required
|
|
108
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
109
|
+
// authentication api-key required
|
|
110
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
111
|
+
if (project !== undefined) {
|
|
112
|
+
localVarQueryParameter['project'] = project;
|
|
113
|
+
}
|
|
114
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
115
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
116
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
117
|
+
return {
|
|
118
|
+
url: toPathString(localVarUrlObj),
|
|
119
|
+
options: localVarRequestOptions,
|
|
120
|
+
};
|
|
121
|
+
}),
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* CrossSellApi - functional programming interface
|
|
126
|
+
* @export
|
|
127
|
+
*/
|
|
128
|
+
export const CrossSellApiFp = function (configuration) {
|
|
129
|
+
const localVarAxiosParamCreator = CrossSellApiAxiosParamCreator(configuration);
|
|
130
|
+
return {
|
|
131
|
+
/**
|
|
132
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
133
|
+
* @summary Attach cross-sell products
|
|
134
|
+
* @param {string} project What project it is
|
|
135
|
+
* @param {string} productId Product\'s unique identifier
|
|
136
|
+
* @param {Array<string>} [requestBody]
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
attachCrossSellProducts(project, productId, requestBody, options) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
var _a, _b, _c;
|
|
143
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachCrossSellProducts(project, productId, requestBody, options);
|
|
144
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
145
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrossSellApi.attachCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
146
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
147
|
+
});
|
|
148
|
+
},
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @summary Get cross-sell products linked to a product
|
|
152
|
+
* @param {string} project What project it is
|
|
153
|
+
* @param {string} productId Product\'s unique identifier
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
getCrossSellProducts(project, productId, options) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
var _a, _b, _c;
|
|
160
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
|
|
161
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
162
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrossSellApi.getCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
163
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
164
|
+
});
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* CrossSellApi - factory interface
|
|
170
|
+
* @export
|
|
171
|
+
*/
|
|
172
|
+
export const CrossSellApiFactory = function (configuration, basePath, axios) {
|
|
173
|
+
const localVarFp = CrossSellApiFp(configuration);
|
|
174
|
+
return {
|
|
175
|
+
/**
|
|
176
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
177
|
+
* @summary Attach cross-sell products
|
|
178
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
attachCrossSellProducts(requestParameters, options) {
|
|
183
|
+
return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(axios, basePath));
|
|
184
|
+
},
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @summary Get cross-sell products linked to a product
|
|
188
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
getCrossSellProducts(requestParameters, options) {
|
|
193
|
+
return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* CrossSellApi - object-oriented interface
|
|
199
|
+
* @export
|
|
200
|
+
* @class CrossSellApi
|
|
201
|
+
* @extends {BaseAPI}
|
|
202
|
+
*/
|
|
203
|
+
export class CrossSellApi extends BaseAPI {
|
|
204
|
+
/**
|
|
205
|
+
* Attaches a list of products to the given product as cross-sell products.
|
|
206
|
+
* @summary Attach cross-sell products
|
|
207
|
+
* @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
* @memberof CrossSellApi
|
|
211
|
+
*/
|
|
212
|
+
attachCrossSellProducts(requestParameters, options) {
|
|
213
|
+
return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @summary Get cross-sell products linked to a product
|
|
218
|
+
* @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
* @memberof CrossSellApi
|
|
222
|
+
*/
|
|
223
|
+
getCrossSellProducts(requestParameters, options) {
|
|
224
|
+
return CrossSellApiFp(this.configuration).getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
|
|
225
|
+
}
|
|
226
|
+
}
|
|
33
227
|
/**
|
|
34
228
|
* MenuApi - axios parameter creator
|
|
35
229
|
* @export
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Website API
|
|
3
3
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website API
|
|
6
6
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|