@teemill/orders 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +7 -25
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +1539 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1116 -0
- package/dist/api.js +632 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1116 -0
- package/dist/esm/api.js +625 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/{models/Status.d.ts → esm/index.d.ts} +3 -16
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/{src/models/Status.ts → index.ts} +3 -26
- package/package.json +18 -4
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +4 -6
- package/dist/apis/OrdersApi.d.ts +0 -115
- package/dist/apis/OrdersApi.js +0 -531
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -19
- package/dist/models/Address.d.ts +0 -73
- package/dist/models/Address.js +0 -67
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/ConfirmOrderFulfillment.d.ts +0 -37
- package/dist/models/ConfirmOrderFulfillment.js +0 -51
- package/dist/models/ConfirmOrderRequest.d.ts +0 -32
- package/dist/models/ConfirmOrderRequest.js +0 -48
- package/dist/models/ConfirmOrderValidationError.d.ts +0 -47
- package/dist/models/ConfirmOrderValidationError.js +0 -60
- package/dist/models/ContactInformation.d.ts +0 -37
- package/dist/models/ContactInformation.js +0 -49
- package/dist/models/DeliveryEstimates.d.ts +0 -37
- package/dist/models/DeliveryEstimates.js +0 -47
- package/dist/models/ExportOrders202Response.d.ts +0 -31
- package/dist/models/ExportOrders202Response.js +0 -45
- package/dist/models/Fulfillment.d.ts +0 -71
- package/dist/models/Fulfillment.js +0 -61
- package/dist/models/FulfillmentItem.d.ts +0 -43
- package/dist/models/FulfillmentItem.js +0 -49
- package/dist/models/Order.d.ts +0 -135
- package/dist/models/Order.js +0 -90
- package/dist/models/OrderItem.d.ts +0 -75
- package/dist/models/OrderItem.js +0 -61
- package/dist/models/OrderItemTaxPrice.d.ts +0 -37
- package/dist/models/OrderItemTaxPrice.js +0 -47
- package/dist/models/OrderTracking.d.ts +0 -43
- package/dist/models/OrderTracking.js +0 -49
- package/dist/models/OrdersResponse.d.ts +0 -38
- package/dist/models/OrdersResponse.js +0 -48
- package/dist/models/Origin.d.ts +0 -37
- package/dist/models/Origin.js +0 -47
- package/dist/models/Price.d.ts +0 -37
- package/dist/models/Price.js +0 -47
- package/dist/models/ShippingMethod.d.ts +0 -75
- package/dist/models/ShippingMethod.js +0 -61
- package/dist/models/Status.js +0 -39
- package/dist/models/StatusHistoryItem.d.ts +0 -38
- package/dist/models/StatusHistoryItem.js +0 -48
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -38
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -565
- package/src/apis/OrdersApi.ts +0 -511
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/Address.ts +0 -120
- package/src/models/ApiError.ts +0 -69
- package/src/models/ConfirmOrderFulfillment.ts +0 -70
- package/src/models/ConfirmOrderRequest.ts +0 -68
- package/src/models/ConfirmOrderValidationError.ts +0 -83
- package/src/models/ContactInformation.ts +0 -69
- package/src/models/DeliveryEstimates.ts +0 -68
- package/src/models/ExportOrders202Response.ts +0 -60
- package/src/models/Fulfillment.ts +0 -133
- package/src/models/FulfillmentItem.ts +0 -76
- package/src/models/Order.ts +0 -239
- package/src/models/OrderItem.ts +0 -127
- package/src/models/OrderItemTaxPrice.ts +0 -68
- package/src/models/OrderTracking.ts +0 -76
- package/src/models/OrdersResponse.ts +0 -75
- package/src/models/Origin.ts +0 -68
- package/src/models/Price.ts +0 -68
- package/src/models/ShippingMethod.ts +0 -129
- package/src/models/StatusHistoryItem.ts +0 -75
- package/src/models/index.ts +0 -22
- package/src/runtime.ts +0 -441
package/src/models/Price.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
5
|
-
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* Standard price definition that defines the amount and currency.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface Price
|
|
20
|
-
*/
|
|
21
|
-
export interface Price {
|
|
22
|
-
/**
|
|
23
|
-
* Price including tax in the specified currency.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof Price
|
|
26
|
-
*/
|
|
27
|
-
amount?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Currency code for the currency the price is valued in.
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof Price
|
|
32
|
-
*/
|
|
33
|
-
currencyCode?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the Price interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfPrice(value: object): boolean {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function PriceFromJSON(json: any): Price {
|
|
44
|
-
return PriceFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
|
|
53
|
-
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
54
|
-
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function PriceToJSON(value?: Price | null): any {
|
|
59
|
-
if (value == null) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
|
|
64
|
-
'amount': value['amount'],
|
|
65
|
-
'currencyCode': value['currencyCode'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
5
|
-
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { DeliveryEstimates } from './DeliveryEstimates';
|
|
17
|
-
import {
|
|
18
|
-
DeliveryEstimatesFromJSON,
|
|
19
|
-
DeliveryEstimatesFromJSONTyped,
|
|
20
|
-
DeliveryEstimatesToJSON,
|
|
21
|
-
} from './DeliveryEstimates';
|
|
22
|
-
import type { Price } from './Price';
|
|
23
|
-
import {
|
|
24
|
-
PriceFromJSON,
|
|
25
|
-
PriceFromJSONTyped,
|
|
26
|
-
PriceToJSON,
|
|
27
|
-
} from './Price';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @export
|
|
32
|
-
* @interface ShippingMethod
|
|
33
|
-
*/
|
|
34
|
-
export interface ShippingMethod {
|
|
35
|
-
/**
|
|
36
|
-
* Unique object identifier
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof ShippingMethod
|
|
39
|
-
*/
|
|
40
|
-
id?: string;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof ShippingMethod
|
|
45
|
-
*/
|
|
46
|
-
name?: string;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof ShippingMethod
|
|
51
|
-
*/
|
|
52
|
-
description?: string;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {DeliveryEstimates}
|
|
56
|
-
* @memberof ShippingMethod
|
|
57
|
-
*/
|
|
58
|
-
deliveryEstimates?: DeliveryEstimates;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {Price}
|
|
62
|
-
* @memberof ShippingMethod
|
|
63
|
-
*/
|
|
64
|
-
totalPrice?: Price;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {Price}
|
|
68
|
-
* @memberof ShippingMethod
|
|
69
|
-
*/
|
|
70
|
-
taxPrice?: Price;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {Price}
|
|
74
|
-
* @memberof ShippingMethod
|
|
75
|
-
*/
|
|
76
|
-
subtotalPrice?: Price;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {Price}
|
|
80
|
-
* @memberof ShippingMethod
|
|
81
|
-
*/
|
|
82
|
-
discountPrice?: Price;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Check if a given object implements the ShippingMethod interface.
|
|
87
|
-
*/
|
|
88
|
-
export function instanceOfShippingMethod(value: object): boolean {
|
|
89
|
-
return true;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function ShippingMethodFromJSON(json: any): ShippingMethod {
|
|
93
|
-
return ShippingMethodFromJSONTyped(json, false);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function ShippingMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShippingMethod {
|
|
97
|
-
if (json == null) {
|
|
98
|
-
return json;
|
|
99
|
-
}
|
|
100
|
-
return {
|
|
101
|
-
|
|
102
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
103
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
104
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
105
|
-
'deliveryEstimates': json['deliveryEstimates'] == null ? undefined : DeliveryEstimatesFromJSON(json['deliveryEstimates']),
|
|
106
|
-
'totalPrice': json['totalPrice'] == null ? undefined : PriceFromJSON(json['totalPrice']),
|
|
107
|
-
'taxPrice': json['taxPrice'] == null ? undefined : PriceFromJSON(json['taxPrice']),
|
|
108
|
-
'subtotalPrice': json['subtotalPrice'] == null ? undefined : PriceFromJSON(json['subtotalPrice']),
|
|
109
|
-
'discountPrice': json['discountPrice'] == null ? undefined : PriceFromJSON(json['discountPrice']),
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export function ShippingMethodToJSON(value?: ShippingMethod | null): any {
|
|
114
|
-
if (value == null) {
|
|
115
|
-
return value;
|
|
116
|
-
}
|
|
117
|
-
return {
|
|
118
|
-
|
|
119
|
-
'id': value['id'],
|
|
120
|
-
'name': value['name'],
|
|
121
|
-
'description': value['description'],
|
|
122
|
-
'deliveryEstimates': DeliveryEstimatesToJSON(value['deliveryEstimates']),
|
|
123
|
-
'totalPrice': PriceToJSON(value['totalPrice']),
|
|
124
|
-
'taxPrice': PriceToJSON(value['taxPrice']),
|
|
125
|
-
'subtotalPrice': PriceToJSON(value['subtotalPrice']),
|
|
126
|
-
'discountPrice': PriceToJSON(value['discountPrice']),
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Orders API
|
|
5
|
-
* Use this API to create and retrieve updates for print-on-demand orders. Use it to request fulfillment for variants of products attached to the given project. You can fetch details and references to these products and variants from the Product Catalog API. For full documentation on functionality and account auth settings go to [teemill.com](https://teemill.com/api-docs/orders)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.6.0
|
|
8
|
-
* Contact: hello@teemill.com
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { Status } from './Status';
|
|
17
|
-
import {
|
|
18
|
-
StatusFromJSON,
|
|
19
|
-
StatusFromJSONTyped,
|
|
20
|
-
StatusToJSON,
|
|
21
|
-
} from './Status';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @export
|
|
26
|
-
* @interface StatusHistoryItem
|
|
27
|
-
*/
|
|
28
|
-
export interface StatusHistoryItem {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {Status}
|
|
32
|
-
* @memberof StatusHistoryItem
|
|
33
|
-
*/
|
|
34
|
-
status?: Status;
|
|
35
|
-
/**
|
|
36
|
-
* ISO 8601 Timestamp
|
|
37
|
-
* @type {Date}
|
|
38
|
-
* @memberof StatusHistoryItem
|
|
39
|
-
*/
|
|
40
|
-
createdAt?: Date;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the StatusHistoryItem interface.
|
|
45
|
-
*/
|
|
46
|
-
export function instanceOfStatusHistoryItem(value: object): boolean {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function StatusHistoryItemFromJSON(json: any): StatusHistoryItem {
|
|
51
|
-
return StatusHistoryItemFromJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function StatusHistoryItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusHistoryItem {
|
|
55
|
-
if (json == null) {
|
|
56
|
-
return json;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
|
|
60
|
-
'status': json['status'] == null ? undefined : StatusFromJSON(json['status']),
|
|
61
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function StatusHistoryItemToJSON(value?: StatusHistoryItem | null): any {
|
|
66
|
-
if (value == null) {
|
|
67
|
-
return value;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'status': StatusToJSON(value['status']),
|
|
72
|
-
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
package/src/models/index.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export * from './Address';
|
|
4
|
-
export * from './ApiError';
|
|
5
|
-
export * from './ConfirmOrderFulfillment';
|
|
6
|
-
export * from './ConfirmOrderRequest';
|
|
7
|
-
export * from './ConfirmOrderValidationError';
|
|
8
|
-
export * from './ContactInformation';
|
|
9
|
-
export * from './DeliveryEstimates';
|
|
10
|
-
export * from './ExportOrders202Response';
|
|
11
|
-
export * from './Fulfillment';
|
|
12
|
-
export * from './FulfillmentItem';
|
|
13
|
-
export * from './Order';
|
|
14
|
-
export * from './OrderItem';
|
|
15
|
-
export * from './OrderItemTaxPrice';
|
|
16
|
-
export * from './OrderTracking';
|
|
17
|
-
export * from './OrdersResponse';
|
|
18
|
-
export * from './Origin';
|
|
19
|
-
export * from './Price';
|
|
20
|
-
export * from './ShippingMethod';
|
|
21
|
-
export * from './Status';
|
|
22
|
-
export * from './StatusHistoryItem';
|