@teemill/inserts 0.4.2 → 0.4.3
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 +4 -4
- package/api.ts +19 -310
- package/base.ts +1 -25
- package/common.ts +1 -2
- package/configuration.ts +1 -18
- package/dist/api.d.ts +25 -316
- package/dist/api.js +1 -19
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -18
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +25 -316
- package/dist/esm/api.js +1 -19
- package/dist/esm/base.d.ts +1 -25
- package/dist/esm/base.js +1 -20
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -18
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/InsertsApi.md +2 -2
- package/docs/InsertsTypesApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.4.
|
|
8
|
+
* The version of the OpenAPI document: 0.4.3
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -46,7 +46,6 @@ exports.UpdateInsertRequestConfigCouponTypeEnum = {
|
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* InsertsApi - axios parameter creator
|
|
49
|
-
* @export
|
|
50
49
|
*/
|
|
51
50
|
const InsertsApiAxiosParamCreator = function (configuration) {
|
|
52
51
|
return {
|
|
@@ -229,7 +228,6 @@ const InsertsApiAxiosParamCreator = function (configuration) {
|
|
|
229
228
|
exports.InsertsApiAxiosParamCreator = InsertsApiAxiosParamCreator;
|
|
230
229
|
/**
|
|
231
230
|
* InsertsApi - functional programming interface
|
|
232
|
-
* @export
|
|
233
231
|
*/
|
|
234
232
|
const InsertsApiFp = function (configuration) {
|
|
235
233
|
const localVarAxiosParamCreator = (0, exports.InsertsApiAxiosParamCreator)(configuration);
|
|
@@ -310,7 +308,6 @@ const InsertsApiFp = function (configuration) {
|
|
|
310
308
|
exports.InsertsApiFp = InsertsApiFp;
|
|
311
309
|
/**
|
|
312
310
|
* InsertsApi - factory interface
|
|
313
|
-
* @export
|
|
314
311
|
*/
|
|
315
312
|
const InsertsApiFactory = function (configuration, basePath, axios) {
|
|
316
313
|
const localVarFp = (0, exports.InsertsApiFp)(configuration);
|
|
@@ -360,9 +357,6 @@ const InsertsApiFactory = function (configuration, basePath, axios) {
|
|
|
360
357
|
exports.InsertsApiFactory = InsertsApiFactory;
|
|
361
358
|
/**
|
|
362
359
|
* InsertsApi - object-oriented interface
|
|
363
|
-
* @export
|
|
364
|
-
* @class InsertsApi
|
|
365
|
-
* @extends {BaseAPI}
|
|
366
360
|
*/
|
|
367
361
|
class InsertsApi extends base_1.BaseAPI {
|
|
368
362
|
/**
|
|
@@ -371,7 +365,6 @@ class InsertsApi extends base_1.BaseAPI {
|
|
|
371
365
|
* @param {InsertsApiCreateInsertRequest} requestParameters Request parameters.
|
|
372
366
|
* @param {*} [options] Override http request option.
|
|
373
367
|
* @throws {RequiredError}
|
|
374
|
-
* @memberof InsertsApi
|
|
375
368
|
*/
|
|
376
369
|
createInsert(requestParameters, options) {
|
|
377
370
|
return (0, exports.InsertsApiFp)(this.configuration).createInsert(requestParameters.project, requestParameters.createInsertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -382,7 +375,6 @@ class InsertsApi extends base_1.BaseAPI {
|
|
|
382
375
|
* @param {InsertsApiGetInsertRequest} requestParameters Request parameters.
|
|
383
376
|
* @param {*} [options] Override http request option.
|
|
384
377
|
* @throws {RequiredError}
|
|
385
|
-
* @memberof InsertsApi
|
|
386
378
|
*/
|
|
387
379
|
getInsert(requestParameters, options) {
|
|
388
380
|
return (0, exports.InsertsApiFp)(this.configuration).getInsert(requestParameters.insertId, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -393,7 +385,6 @@ class InsertsApi extends base_1.BaseAPI {
|
|
|
393
385
|
* @param {InsertsApiListInsertsRequest} requestParameters Request parameters.
|
|
394
386
|
* @param {*} [options] Override http request option.
|
|
395
387
|
* @throws {RequiredError}
|
|
396
|
-
* @memberof InsertsApi
|
|
397
388
|
*/
|
|
398
389
|
listInserts(requestParameters, options) {
|
|
399
390
|
return (0, exports.InsertsApiFp)(this.configuration).listInserts(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -404,7 +395,6 @@ class InsertsApi extends base_1.BaseAPI {
|
|
|
404
395
|
* @param {InsertsApiUpdateInsertRequest} requestParameters Request parameters.
|
|
405
396
|
* @param {*} [options] Override http request option.
|
|
406
397
|
* @throws {RequiredError}
|
|
407
|
-
* @memberof InsertsApi
|
|
408
398
|
*/
|
|
409
399
|
updateInsert(requestParameters, options) {
|
|
410
400
|
return (0, exports.InsertsApiFp)(this.configuration).updateInsert(requestParameters.insertId, requestParameters.project, requestParameters.updateInsertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -413,7 +403,6 @@ class InsertsApi extends base_1.BaseAPI {
|
|
|
413
403
|
exports.InsertsApi = InsertsApi;
|
|
414
404
|
/**
|
|
415
405
|
* InsertsTypesApi - axios parameter creator
|
|
416
|
-
* @export
|
|
417
406
|
*/
|
|
418
407
|
const InsertsTypesApiAxiosParamCreator = function (configuration) {
|
|
419
408
|
return {
|
|
@@ -510,7 +499,6 @@ const InsertsTypesApiAxiosParamCreator = function (configuration) {
|
|
|
510
499
|
exports.InsertsTypesApiAxiosParamCreator = InsertsTypesApiAxiosParamCreator;
|
|
511
500
|
/**
|
|
512
501
|
* InsertsTypesApi - functional programming interface
|
|
513
|
-
* @export
|
|
514
502
|
*/
|
|
515
503
|
const InsertsTypesApiFp = function (configuration) {
|
|
516
504
|
const localVarAxiosParamCreator = (0, exports.InsertsTypesApiAxiosParamCreator)(configuration);
|
|
@@ -556,7 +544,6 @@ const InsertsTypesApiFp = function (configuration) {
|
|
|
556
544
|
exports.InsertsTypesApiFp = InsertsTypesApiFp;
|
|
557
545
|
/**
|
|
558
546
|
* InsertsTypesApi - factory interface
|
|
559
|
-
* @export
|
|
560
547
|
*/
|
|
561
548
|
const InsertsTypesApiFactory = function (configuration, basePath, axios) {
|
|
562
549
|
const localVarFp = (0, exports.InsertsTypesApiFp)(configuration);
|
|
@@ -586,9 +573,6 @@ const InsertsTypesApiFactory = function (configuration, basePath, axios) {
|
|
|
586
573
|
exports.InsertsTypesApiFactory = InsertsTypesApiFactory;
|
|
587
574
|
/**
|
|
588
575
|
* InsertsTypesApi - object-oriented interface
|
|
589
|
-
* @export
|
|
590
|
-
* @class InsertsTypesApi
|
|
591
|
-
* @extends {BaseAPI}
|
|
592
576
|
*/
|
|
593
577
|
class InsertsTypesApi extends base_1.BaseAPI {
|
|
594
578
|
/**
|
|
@@ -597,7 +581,6 @@ class InsertsTypesApi extends base_1.BaseAPI {
|
|
|
597
581
|
* @param {InsertsTypesApiGetInsertTypeRequest} requestParameters Request parameters.
|
|
598
582
|
* @param {*} [options] Override http request option.
|
|
599
583
|
* @throws {RequiredError}
|
|
600
|
-
* @memberof InsertsTypesApi
|
|
601
584
|
*/
|
|
602
585
|
getInsertType(requestParameters, options) {
|
|
603
586
|
return (0, exports.InsertsTypesApiFp)(this.configuration).getInsertType(requestParameters.insertTypeId, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -608,7 +591,6 @@ class InsertsTypesApi extends base_1.BaseAPI {
|
|
|
608
591
|
* @param {InsertsTypesApiListInsertTypesRequest} requestParameters Request parameters.
|
|
609
592
|
* @param {*} [options] Override http request option.
|
|
610
593
|
* @throws {RequiredError}
|
|
611
|
-
* @memberof InsertsTypesApi
|
|
612
594
|
*/
|
|
613
595
|
listInsertTypes(requestParameters, options) {
|
|
614
596
|
return (0, exports.InsertsTypesApiFp)(this.configuration).listInsertTypes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
package/dist/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.4.
|
|
8
|
+
* The version of the OpenAPI document: 0.4.3
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,21 +16,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
18
|
exports.BASE_PATH = "https://api.localhost:8080".replace(/\/+$/, "");
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
*/
|
|
23
19
|
exports.COLLECTION_FORMATS = {
|
|
24
20
|
csv: ",",
|
|
25
21
|
ssv: " ",
|
|
26
22
|
tsv: "\t",
|
|
27
23
|
pipes: "|",
|
|
28
24
|
};
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @export
|
|
32
|
-
* @class BaseAPI
|
|
33
|
-
*/
|
|
34
25
|
class BaseAPI {
|
|
35
26
|
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
36
27
|
var _a;
|
|
@@ -44,12 +35,6 @@ class BaseAPI {
|
|
|
44
35
|
}
|
|
45
36
|
exports.BaseAPI = BaseAPI;
|
|
46
37
|
;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @export
|
|
50
|
-
* @class RequiredError
|
|
51
|
-
* @extends {Error}
|
|
52
|
-
*/
|
|
53
38
|
class RequiredError extends Error {
|
|
54
39
|
constructor(field, msg) {
|
|
55
40
|
super(msg);
|
|
@@ -58,8 +43,4 @@ class RequiredError extends Error {
|
|
|
58
43
|
}
|
|
59
44
|
}
|
|
60
45
|
exports.RequiredError = RequiredError;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
46
|
exports.operationServerMap = {};
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Inserts API
|
|
3
3
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.3
|
|
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
|
* Inserts API
|
|
6
6
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.4.
|
|
8
|
+
* The version of the OpenAPI document: 0.4.3
|
|
9
9
|
*
|
|
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
|
* Inserts API
|
|
3
3
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.4.
|
|
5
|
+
* The version of the OpenAPI document: 0.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -23,49 +23,32 @@ export declare class Configuration {
|
|
|
23
23
|
/**
|
|
24
24
|
* parameter for apiKey security
|
|
25
25
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
26
|
*/
|
|
28
27
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
28
|
/**
|
|
30
29
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
30
|
*/
|
|
35
31
|
username?: string;
|
|
36
32
|
/**
|
|
37
33
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
34
|
*/
|
|
42
35
|
password?: string;
|
|
43
36
|
/**
|
|
44
37
|
* parameter for oauth2 security
|
|
45
38
|
* @param name security name
|
|
46
39
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
40
|
*/
|
|
49
41
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
42
|
/**
|
|
51
43
|
* override base path
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof Configuration
|
|
55
44
|
*/
|
|
56
45
|
basePath?: string;
|
|
57
46
|
/**
|
|
58
47
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
48
|
*/
|
|
63
49
|
serverIndex?: number;
|
|
64
50
|
/**
|
|
65
51
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
52
|
*/
|
|
70
53
|
baseOptions?: any;
|
|
71
54
|
/**
|
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Inserts API
|
|
6
6
|
* An API for managing order inserts in PodOS that automatically adds a free item to a customer\'s order when specific conditions are met, such as a first-time purchase.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.4.
|
|
8
|
+
* The version of the OpenAPI document: 0.4.3
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|