@gr4vy/sdk 1.1.44 → 1.1.45
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/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/cartitem.d.ts +31 -1
- package/models/components/cartitem.d.ts.map +1 -1
- package/models/components/cartitem.js +22 -0
- package/models/components/cartitem.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/cartitem.ts +53 -1
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
44
44
|
export declare const SDK_METADATA: {
|
|
45
45
|
readonly language: "typescript";
|
|
46
46
|
readonly openapiDocVersion: "1.0.0";
|
|
47
|
-
readonly sdkVersion: "1.1.
|
|
47
|
+
readonly sdkVersion: "1.1.45";
|
|
48
48
|
readonly genVersion: "2.698.4";
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.1.
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.1.45 2.698.4 1.0.0 @gr4vy/sdk";
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -37,8 +37,8 @@ function serverURLFromOptions(options) {
|
|
|
37
37
|
exports.SDK_METADATA = {
|
|
38
38
|
language: "typescript",
|
|
39
39
|
openapiDocVersion: "1.0.0",
|
|
40
|
-
sdkVersion: "1.1.
|
|
40
|
+
sdkVersion: "1.1.45",
|
|
41
41
|
genVersion: "2.698.4",
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 1.1.45 2.698.4 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
|
@@ -28,7 +28,7 @@ export type CartItem = {
|
|
|
28
28
|
*/
|
|
29
29
|
externalIdentifier?: string | null | undefined;
|
|
30
30
|
/**
|
|
31
|
-
* The SKU for the item.
|
|
31
|
+
* The SKU or product code for the item.
|
|
32
32
|
*/
|
|
33
33
|
sku?: string | null | undefined;
|
|
34
34
|
/**
|
|
@@ -51,6 +51,30 @@ export type CartItem = {
|
|
|
51
51
|
* The seller country of the cart item.
|
|
52
52
|
*/
|
|
53
53
|
sellerCountry?: string | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the item is exempt of tax.
|
|
56
|
+
*/
|
|
57
|
+
taxExempt?: boolean | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The unit of measure or the unit of measure code.
|
|
60
|
+
*/
|
|
61
|
+
unitOfMeasure?: string | null | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Item commodity code. Generally a UNSPSC code.
|
|
64
|
+
*/
|
|
65
|
+
commodityCode?: string | null | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Brief item description.
|
|
68
|
+
*/
|
|
69
|
+
description?: string | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Item import or export duties represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`
|
|
72
|
+
*/
|
|
73
|
+
dutyAmount?: number | null | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Freight/shipping amount represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`
|
|
76
|
+
*/
|
|
77
|
+
shippingAmount?: number | null | undefined;
|
|
54
78
|
};
|
|
55
79
|
/** @internal */
|
|
56
80
|
export declare const CartItem$inboundSchema: z.ZodType<CartItem, z.ZodTypeDef, unknown>;
|
|
@@ -68,6 +92,12 @@ export type CartItem$Outbound = {
|
|
|
68
92
|
categories?: Array<string> | null | undefined;
|
|
69
93
|
product_type?: string | null | undefined;
|
|
70
94
|
seller_country?: string | null | undefined;
|
|
95
|
+
tax_exempt?: boolean | null | undefined;
|
|
96
|
+
unit_of_measure?: string | null | undefined;
|
|
97
|
+
commodity_code?: string | null | undefined;
|
|
98
|
+
description?: string | null | undefined;
|
|
99
|
+
duty_amount?: number | null | undefined;
|
|
100
|
+
shipping_amount?: number | null | undefined;
|
|
71
101
|
};
|
|
72
102
|
/** @internal */
|
|
73
103
|
export declare const CartItem$outboundSchema: z.ZodType<CartItem$Outbound, z.ZodTypeDef, CartItem>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartitem.d.ts","sourceRoot":"","sources":["../../src/models/components/cartitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAGZ,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAA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CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAoCR,CAAC;AAEH;;;GAGG;AACH,yBAAiB,SAAS,CAAC;IACzB,wDAAwD;IACjD,MAAM,aAAa,4CAAyB,CAAC;IACpD,yDAAyD;IAClD,MAAM,cAAc,sDAA0B,CAAC;IACtD,mDAAmD;IACnD,KAAY,QAAQ,GAAG,iBAAiB,CAAC;CAC1C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
|
|
@@ -57,6 +57,12 @@ exports.CartItem$inboundSchema = z.object({
|
|
|
57
57
|
categories: z.nullable(z.array(z.string())).optional(),
|
|
58
58
|
product_type: z.nullable(producttype_js_1.ProductType$inboundSchema).optional(),
|
|
59
59
|
seller_country: z.nullable(z.string()).optional(),
|
|
60
|
+
tax_exempt: z.nullable(z.boolean()).optional(),
|
|
61
|
+
unit_of_measure: z.nullable(z.string()).optional(),
|
|
62
|
+
commodity_code: z.nullable(z.string()).optional(),
|
|
63
|
+
description: z.nullable(z.string()).optional(),
|
|
64
|
+
duty_amount: z.nullable(z.number().int()).optional(),
|
|
65
|
+
shipping_amount: z.nullable(z.number().int()).optional(),
|
|
60
66
|
}).transform((v) => {
|
|
61
67
|
return (0, primitives_js_1.remap)(v, {
|
|
62
68
|
"unit_amount": "unitAmount",
|
|
@@ -67,6 +73,11 @@ exports.CartItem$inboundSchema = z.object({
|
|
|
67
73
|
"image_url": "imageUrl",
|
|
68
74
|
"product_type": "productType",
|
|
69
75
|
"seller_country": "sellerCountry",
|
|
76
|
+
"tax_exempt": "taxExempt",
|
|
77
|
+
"unit_of_measure": "unitOfMeasure",
|
|
78
|
+
"commodity_code": "commodityCode",
|
|
79
|
+
"duty_amount": "dutyAmount",
|
|
80
|
+
"shipping_amount": "shippingAmount",
|
|
70
81
|
});
|
|
71
82
|
});
|
|
72
83
|
/** @internal */
|
|
@@ -83,6 +94,12 @@ exports.CartItem$outboundSchema = z.object({
|
|
|
83
94
|
categories: z.nullable(z.array(z.string())).optional(),
|
|
84
95
|
productType: z.nullable(producttype_js_1.ProductType$outboundSchema).optional(),
|
|
85
96
|
sellerCountry: z.nullable(z.string()).optional(),
|
|
97
|
+
taxExempt: z.nullable(z.boolean()).optional(),
|
|
98
|
+
unitOfMeasure: z.nullable(z.string()).optional(),
|
|
99
|
+
commodityCode: z.nullable(z.string()).optional(),
|
|
100
|
+
description: z.nullable(z.string()).optional(),
|
|
101
|
+
dutyAmount: z.nullable(z.number().int()).optional(),
|
|
102
|
+
shippingAmount: z.nullable(z.number().int()).optional(),
|
|
86
103
|
}).transform((v) => {
|
|
87
104
|
return (0, primitives_js_1.remap)(v, {
|
|
88
105
|
unitAmount: "unit_amount",
|
|
@@ -93,6 +110,11 @@ exports.CartItem$outboundSchema = z.object({
|
|
|
93
110
|
imageUrl: "image_url",
|
|
94
111
|
productType: "product_type",
|
|
95
112
|
sellerCountry: "seller_country",
|
|
113
|
+
taxExempt: "tax_exempt",
|
|
114
|
+
unitOfMeasure: "unit_of_measure",
|
|
115
|
+
commodityCode: "commodity_code",
|
|
116
|
+
dutyAmount: "duty_amount",
|
|
117
|
+
shippingAmount: "shipping_amount",
|
|
96
118
|
});
|
|
97
119
|
});
|
|
98
120
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartitem.js","sourceRoot":"","sources":["../../src/models/components/cartitem.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"cartitem.js","sourceRoot":"","sources":["../../src/models/components/cartitem.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+MH,wCAEC;AAED,4CAQC;AAzND,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,qDAI0B;AA6E1B,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC7B,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxD,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC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ACzB,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,SAAS,CAOzB;AAPD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,8BAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,+BAAuB,CAAC;AAGxD,CAAC,EAPgB,SAAS,yBAAT,SAAS,QAOzB;AAED,SAAgB,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
77
77
|
export const SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "1.0.0",
|
|
80
|
-
sdkVersion: "1.1.
|
|
80
|
+
sdkVersion: "1.1.45",
|
|
81
81
|
genVersion: "2.698.4",
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 1.1.
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 1.1.45 2.698.4 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
|
@@ -39,7 +39,7 @@ export type CartItem = {
|
|
|
39
39
|
*/
|
|
40
40
|
externalIdentifier?: string | null | undefined;
|
|
41
41
|
/**
|
|
42
|
-
* The SKU for the item.
|
|
42
|
+
* The SKU or product code for the item.
|
|
43
43
|
*/
|
|
44
44
|
sku?: string | null | undefined;
|
|
45
45
|
/**
|
|
@@ -62,6 +62,30 @@ export type CartItem = {
|
|
|
62
62
|
* The seller country of the cart item.
|
|
63
63
|
*/
|
|
64
64
|
sellerCountry?: string | null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the item is exempt of tax.
|
|
67
|
+
*/
|
|
68
|
+
taxExempt?: boolean | null | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* The unit of measure or the unit of measure code.
|
|
71
|
+
*/
|
|
72
|
+
unitOfMeasure?: string | null | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Item commodity code. Generally a UNSPSC code.
|
|
75
|
+
*/
|
|
76
|
+
commodityCode?: string | null | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Brief item description.
|
|
79
|
+
*/
|
|
80
|
+
description?: string | null | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Item import or export duties represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`
|
|
83
|
+
*/
|
|
84
|
+
dutyAmount?: number | null | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Freight/shipping amount represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`
|
|
87
|
+
*/
|
|
88
|
+
shippingAmount?: number | null | undefined;
|
|
65
89
|
};
|
|
66
90
|
|
|
67
91
|
/** @internal */
|
|
@@ -82,6 +106,12 @@ export const CartItem$inboundSchema: z.ZodType<
|
|
|
82
106
|
categories: z.nullable(z.array(z.string())).optional(),
|
|
83
107
|
product_type: z.nullable(ProductType$inboundSchema).optional(),
|
|
84
108
|
seller_country: z.nullable(z.string()).optional(),
|
|
109
|
+
tax_exempt: z.nullable(z.boolean()).optional(),
|
|
110
|
+
unit_of_measure: z.nullable(z.string()).optional(),
|
|
111
|
+
commodity_code: z.nullable(z.string()).optional(),
|
|
112
|
+
description: z.nullable(z.string()).optional(),
|
|
113
|
+
duty_amount: z.nullable(z.number().int()).optional(),
|
|
114
|
+
shipping_amount: z.nullable(z.number().int()).optional(),
|
|
85
115
|
}).transform((v) => {
|
|
86
116
|
return remap$(v, {
|
|
87
117
|
"unit_amount": "unitAmount",
|
|
@@ -92,6 +122,11 @@ export const CartItem$inboundSchema: z.ZodType<
|
|
|
92
122
|
"image_url": "imageUrl",
|
|
93
123
|
"product_type": "productType",
|
|
94
124
|
"seller_country": "sellerCountry",
|
|
125
|
+
"tax_exempt": "taxExempt",
|
|
126
|
+
"unit_of_measure": "unitOfMeasure",
|
|
127
|
+
"commodity_code": "commodityCode",
|
|
128
|
+
"duty_amount": "dutyAmount",
|
|
129
|
+
"shipping_amount": "shippingAmount",
|
|
95
130
|
});
|
|
96
131
|
});
|
|
97
132
|
|
|
@@ -109,6 +144,12 @@ export type CartItem$Outbound = {
|
|
|
109
144
|
categories?: Array<string> | null | undefined;
|
|
110
145
|
product_type?: string | null | undefined;
|
|
111
146
|
seller_country?: string | null | undefined;
|
|
147
|
+
tax_exempt?: boolean | null | undefined;
|
|
148
|
+
unit_of_measure?: string | null | undefined;
|
|
149
|
+
commodity_code?: string | null | undefined;
|
|
150
|
+
description?: string | null | undefined;
|
|
151
|
+
duty_amount?: number | null | undefined;
|
|
152
|
+
shipping_amount?: number | null | undefined;
|
|
112
153
|
};
|
|
113
154
|
|
|
114
155
|
/** @internal */
|
|
@@ -129,6 +170,12 @@ export const CartItem$outboundSchema: z.ZodType<
|
|
|
129
170
|
categories: z.nullable(z.array(z.string())).optional(),
|
|
130
171
|
productType: z.nullable(ProductType$outboundSchema).optional(),
|
|
131
172
|
sellerCountry: z.nullable(z.string()).optional(),
|
|
173
|
+
taxExempt: z.nullable(z.boolean()).optional(),
|
|
174
|
+
unitOfMeasure: z.nullable(z.string()).optional(),
|
|
175
|
+
commodityCode: z.nullable(z.string()).optional(),
|
|
176
|
+
description: z.nullable(z.string()).optional(),
|
|
177
|
+
dutyAmount: z.nullable(z.number().int()).optional(),
|
|
178
|
+
shippingAmount: z.nullable(z.number().int()).optional(),
|
|
132
179
|
}).transform((v) => {
|
|
133
180
|
return remap$(v, {
|
|
134
181
|
unitAmount: "unit_amount",
|
|
@@ -139,6 +186,11 @@ export const CartItem$outboundSchema: z.ZodType<
|
|
|
139
186
|
imageUrl: "image_url",
|
|
140
187
|
productType: "product_type",
|
|
141
188
|
sellerCountry: "seller_country",
|
|
189
|
+
taxExempt: "tax_exempt",
|
|
190
|
+
unitOfMeasure: "unit_of_measure",
|
|
191
|
+
commodityCode: "commodity_code",
|
|
192
|
+
dutyAmount: "duty_amount",
|
|
193
|
+
shippingAmount: "shipping_amount",
|
|
142
194
|
});
|
|
143
195
|
});
|
|
144
196
|
|