@teemill/website 0.3.0 → 0.4.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 +678 -15
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +665 -12
- package/dist/api.js +37 -11
- 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 +665 -12
- package/dist/esm/api.js +36 -10
- 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/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.4.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,17 +22,43 @@ 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.CrossSellApi = exports.CrossSellApiFactory = exports.CrossSellApiFp = exports.CrossSellApiAxiosParamCreator = 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.PriceCurrencyCodeEnum = exports.PaymentAccountMethodEnum = exports.AttributeThumbnailTypeEnum = exports.ApplicationPlacementEnum = exports.ApplicationTechnologyEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
const common_1 = require("./common");
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("./base");
|
|
32
|
+
exports.ApplicationTechnologyEnum = {
|
|
33
|
+
Dtg: 'dtg',
|
|
34
|
+
Embroidery: 'embroidery',
|
|
35
|
+
Dtf: 'dtf',
|
|
36
|
+
Pretreat: 'pretreat',
|
|
37
|
+
MugSublimation: 'mug_sublimation',
|
|
38
|
+
ManualPrint: 'manual_print',
|
|
39
|
+
AdditionalApplication: 'additional_application',
|
|
40
|
+
NotebookSublimation: 'notebook_sublimation',
|
|
41
|
+
DuplexPrint: 'duplex_print'
|
|
42
|
+
};
|
|
43
|
+
exports.ApplicationPlacementEnum = {
|
|
44
|
+
Front: 'front',
|
|
45
|
+
Back: 'back',
|
|
46
|
+
Left: 'left',
|
|
47
|
+
Right: 'right',
|
|
48
|
+
Neck: 'neck'
|
|
49
|
+
};
|
|
50
|
+
exports.AttributeThumbnailTypeEnum = {
|
|
51
|
+
Text: 'text',
|
|
52
|
+
Color: 'color',
|
|
53
|
+
Image: 'image'
|
|
54
|
+
};
|
|
32
55
|
exports.PaymentAccountMethodEnum = {
|
|
33
56
|
Stripe: 'stripe',
|
|
34
57
|
Paypal: 'paypal'
|
|
35
58
|
};
|
|
59
|
+
exports.PriceCurrencyCodeEnum = {
|
|
60
|
+
Gbp: 'GBP'
|
|
61
|
+
};
|
|
36
62
|
/**
|
|
37
63
|
* CrossSellApi - axios parameter creator
|
|
38
64
|
* @export
|
|
@@ -44,11 +70,11 @@ const CrossSellApiAxiosParamCreator = function (configuration) {
|
|
|
44
70
|
* @summary Attach cross-sell products
|
|
45
71
|
* @param {string} project What project it is
|
|
46
72
|
* @param {string} productId Product\'s unique identifier
|
|
47
|
-
* @param {
|
|
73
|
+
* @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
|
|
48
74
|
* @param {*} [options] Override http request option.
|
|
49
75
|
* @throws {RequiredError}
|
|
50
76
|
*/
|
|
51
|
-
attachCrossSellProducts: (project_1, productId_1,
|
|
77
|
+
attachCrossSellProducts: (project_1, productId_1, attachCrossSellProductsRequest_1, ...args_1) => __awaiter(this, [project_1, productId_1, attachCrossSellProductsRequest_1, ...args_1], void 0, function* (project, productId, attachCrossSellProductsRequest, options = {}) {
|
|
52
78
|
// verify required parameter 'project' is not null or undefined
|
|
53
79
|
(0, common_1.assertParamExists)('attachCrossSellProducts', 'project', project);
|
|
54
80
|
// verify required parameter 'productId' is not null or undefined
|
|
@@ -61,7 +87,7 @@ const CrossSellApiAxiosParamCreator = function (configuration) {
|
|
|
61
87
|
if (configuration) {
|
|
62
88
|
baseOptions = configuration.baseOptions;
|
|
63
89
|
}
|
|
64
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
90
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
65
91
|
const localVarHeaderParameter = {};
|
|
66
92
|
const localVarQueryParameter = {};
|
|
67
93
|
// authentication session-oauth required
|
|
@@ -76,7 +102,7 @@ const CrossSellApiAxiosParamCreator = function (configuration) {
|
|
|
76
102
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
77
103
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
104
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
79
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
105
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(attachCrossSellProductsRequest, localVarRequestOptions, configuration);
|
|
80
106
|
return {
|
|
81
107
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
82
108
|
options: localVarRequestOptions,
|
|
@@ -137,14 +163,14 @@ const CrossSellApiFp = function (configuration) {
|
|
|
137
163
|
* @summary Attach cross-sell products
|
|
138
164
|
* @param {string} project What project it is
|
|
139
165
|
* @param {string} productId Product\'s unique identifier
|
|
140
|
-
* @param {
|
|
166
|
+
* @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
|
|
141
167
|
* @param {*} [options] Override http request option.
|
|
142
168
|
* @throws {RequiredError}
|
|
143
169
|
*/
|
|
144
|
-
attachCrossSellProducts(project, productId,
|
|
170
|
+
attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options) {
|
|
145
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
146
172
|
var _a, _b, _c;
|
|
147
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachCrossSellProducts(project, productId,
|
|
173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options);
|
|
148
174
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
149
175
|
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
176
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -185,7 +211,7 @@ const CrossSellApiFactory = function (configuration, basePath, axios) {
|
|
|
185
211
|
* @throws {RequiredError}
|
|
186
212
|
*/
|
|
187
213
|
attachCrossSellProducts(requestParameters, options) {
|
|
188
|
-
return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.
|
|
214
|
+
return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(axios, basePath));
|
|
189
215
|
},
|
|
190
216
|
/**
|
|
191
217
|
*
|
|
@@ -216,7 +242,7 @@ class CrossSellApi extends base_1.BaseAPI {
|
|
|
216
242
|
* @memberof CrossSellApi
|
|
217
243
|
*/
|
|
218
244
|
attachCrossSellProducts(requestParameters, options) {
|
|
219
|
-
return (0, exports.CrossSellApiFp)(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.
|
|
245
|
+
return (0, exports.CrossSellApiFp)(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
220
246
|
}
|
|
221
247
|
/**
|
|
222
248
|
*
|
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.4.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.4.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.4.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.4.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.4.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.4.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|