@shippo/shippo-mcp 0.8.10 → 0.8.24
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/bin/mcp-server.js +55 -39
- package/bin/mcp-server.js.map +15 -15
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/models/address.d.ts +1 -1
- package/esm/models/address.d.ts.map +1 -1
- package/esm/models/address.js +1 -1
- package/esm/models/address.js.map +1 -1
- package/esm/models/customsitem.d.ts +5 -5
- package/esm/models/customsitem.d.ts.map +1 -1
- package/esm/models/customsitem.js +5 -5
- package/esm/models/customsitem.js.map +1 -1
- package/esm/models/customsitemcreaterequest.d.ts +5 -5
- package/esm/models/customsitemcreaterequest.d.ts.map +1 -1
- package/esm/models/customsitemcreaterequest.js +5 -5
- package/esm/models/customsitemcreaterequest.js.map +1 -1
- package/esm/models/defaultparceltemplate.d.ts +19 -2
- package/esm/models/defaultparceltemplate.d.ts.map +1 -1
- package/esm/models/defaultparceltemplate.js +18 -2
- package/esm/models/defaultparceltemplate.js.map +1 -1
- package/esm/models/parcel.d.ts +1 -1
- package/esm/models/parcel.d.ts.map +1 -1
- package/esm/models/parcel.js +1 -1
- package/esm/models/parcel.js.map +1 -1
- package/esm/models/servicegroup.d.ts +3 -3
- package/esm/models/servicegroup.d.ts.map +1 -1
- package/esm/models/servicegroup.js +4 -3
- package/esm/models/servicegroup.js.map +1 -1
- package/esm/models/servicegroupcreaterequest.d.ts +2 -2
- package/esm/models/servicegroupcreaterequest.d.ts.map +1 -1
- package/esm/models/servicegroupcreaterequest.js +2 -2
- package/esm/models/servicegroupcreaterequest.js.map +1 -1
- package/esm/models/servicegroupupdaterequest.d.ts +2 -2
- package/esm/models/servicegroupupdaterequest.d.ts.map +1 -1
- package/esm/models/servicegroupupdaterequest.js +2 -2
- package/esm/models/servicegroupupdaterequest.js.map +1 -1
- package/esm/models/userparceltemplate.js +2 -2
- package/esm/models/userparceltemplate.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/address.ts +2 -2
- package/src/models/customsitem.ts +10 -10
- package/src/models/customsitemcreaterequest.ts +10 -10
- package/src/models/defaultparceltemplate.ts +49 -5
- package/src/models/parcel.ts +2 -2
- package/src/models/servicegroup.ts +7 -6
- package/src/models/servicegroupcreaterequest.ts +4 -4
- package/src/models/servicegroupupdaterequest.ts +4 -4
- package/src/models/userparceltemplate.ts +2 -2
|
@@ -7,15 +7,15 @@ import { WeightUnitEnum, WeightUnitEnum$zodSchema } from "./weightunitenum.js";
|
|
|
7
7
|
|
|
8
8
|
export type CustomsItemCreateRequest = {
|
|
9
9
|
description: string;
|
|
10
|
-
eccn_ear99?: string | undefined;
|
|
10
|
+
eccn_ear99?: string | null | undefined;
|
|
11
11
|
mass_unit: WeightUnitEnum;
|
|
12
|
-
metadata?: string | undefined;
|
|
12
|
+
metadata?: string | null | undefined;
|
|
13
13
|
net_weight: string;
|
|
14
14
|
origin_country: string;
|
|
15
15
|
quantity: number;
|
|
16
|
-
sku_code?: string | undefined;
|
|
17
|
-
hs_code?: string | undefined;
|
|
18
|
-
tariff_number?: string | undefined;
|
|
16
|
+
sku_code?: string | null | undefined;
|
|
17
|
+
hs_code?: string | null | undefined;
|
|
18
|
+
tariff_number?: string | null | undefined;
|
|
19
19
|
value_amount: string;
|
|
20
20
|
value_currency: string;
|
|
21
21
|
};
|
|
@@ -26,15 +26,15 @@ export const CustomsItemCreateRequest$zodSchema: z.ZodType<
|
|
|
26
26
|
unknown
|
|
27
27
|
> = z.object({
|
|
28
28
|
description: z.string(),
|
|
29
|
-
eccn_ear99: z.string().optional(),
|
|
30
|
-
hs_code: z.string().optional(),
|
|
29
|
+
eccn_ear99: z.string().nullable().optional(),
|
|
30
|
+
hs_code: z.string().nullable().optional(),
|
|
31
31
|
mass_unit: WeightUnitEnum$zodSchema,
|
|
32
|
-
metadata: z.string().optional(),
|
|
32
|
+
metadata: z.string().nullable().optional(),
|
|
33
33
|
net_weight: z.string(),
|
|
34
34
|
origin_country: z.string(),
|
|
35
35
|
quantity: z.number().int(),
|
|
36
|
-
sku_code: z.string().optional(),
|
|
37
|
-
tariff_number: z.string().optional(),
|
|
36
|
+
sku_code: z.string().nullable().optional(),
|
|
37
|
+
tariff_number: z.string().nullable().optional(),
|
|
38
38
|
value_amount: z.string(),
|
|
39
39
|
value_currency: z.string(),
|
|
40
40
|
});
|
|
@@ -4,16 +4,60 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
CarrierParcelTemplate,
|
|
8
|
+
CarrierParcelTemplate$zodSchema,
|
|
9
|
+
} from "./carrierparceltemplate.js";
|
|
10
|
+
import {
|
|
11
|
+
DistanceUnitEnum,
|
|
12
|
+
DistanceUnitEnum$zodSchema,
|
|
13
|
+
} from "./distanceunitenum.js";
|
|
14
|
+
import { WeightUnitEnum, WeightUnitEnum$zodSchema } from "./weightunitenum.js";
|
|
15
|
+
|
|
16
|
+
export type TheFieldsOfAParcelTemplateBeforeSavingItToTheDb = {
|
|
17
|
+
distance_unit?: DistanceUnitEnum | undefined;
|
|
18
|
+
height?: string | undefined;
|
|
19
|
+
length?: string | undefined;
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
weight?: string | undefined;
|
|
22
|
+
weight_unit?: WeightUnitEnum | undefined;
|
|
23
|
+
width?: string | undefined;
|
|
24
|
+
object_created?: string | undefined;
|
|
25
|
+
object_id?: string | undefined;
|
|
26
|
+
object_owner?: string | undefined;
|
|
27
|
+
object_updated?: string | undefined;
|
|
28
|
+
template?: CarrierParcelTemplate | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const TheFieldsOfAParcelTemplateBeforeSavingItToTheDb$zodSchema:
|
|
32
|
+
z.ZodType<
|
|
33
|
+
TheFieldsOfAParcelTemplateBeforeSavingItToTheDb,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({
|
|
37
|
+
distance_unit: DistanceUnitEnum$zodSchema.optional(),
|
|
38
|
+
height: z.string().optional(),
|
|
39
|
+
length: z.string().optional(),
|
|
40
|
+
name: z.string().optional(),
|
|
41
|
+
object_created: z.string().optional(),
|
|
42
|
+
object_id: z.string().optional(),
|
|
43
|
+
object_owner: z.string().optional(),
|
|
44
|
+
object_updated: z.string().optional(),
|
|
45
|
+
template: CarrierParcelTemplate$zodSchema.optional(),
|
|
46
|
+
weight: z.string().optional(),
|
|
47
|
+
weight_unit: WeightUnitEnum$zodSchema.optional(),
|
|
48
|
+
width: z.string().optional(),
|
|
49
|
+
});
|
|
10
50
|
|
|
11
|
-
export type DefaultParcelTemplate = {
|
|
51
|
+
export type DefaultParcelTemplate = {
|
|
52
|
+
result?: TheFieldsOfAParcelTemplateBeforeSavingItToTheDb | null | undefined;
|
|
53
|
+
};
|
|
12
54
|
|
|
13
55
|
export const DefaultParcelTemplate$zodSchema: z.ZodType<
|
|
14
56
|
DefaultParcelTemplate,
|
|
15
57
|
z.ZodTypeDef,
|
|
16
58
|
unknown
|
|
17
59
|
> = z.object({
|
|
18
|
-
result:
|
|
60
|
+
result: z.lazy(() =>
|
|
61
|
+
TheFieldsOfAParcelTemplateBeforeSavingItToTheDb$zodSchema
|
|
62
|
+
).nullable().optional(),
|
|
19
63
|
});
|
package/src/models/parcel.ts
CHANGED
|
@@ -40,7 +40,7 @@ export type Parcel = {
|
|
|
40
40
|
object_state?: ObjectState | undefined;
|
|
41
41
|
object_updated?: string | undefined;
|
|
42
42
|
template?: ParcelTemplateEnumSet | null | undefined;
|
|
43
|
-
test?: boolean | undefined;
|
|
43
|
+
test?: boolean | null | undefined;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export const Parcel$zodSchema: z.ZodType<Parcel, z.ZodTypeDef, unknown> = z
|
|
@@ -57,7 +57,7 @@ export const Parcel$zodSchema: z.ZodType<Parcel, z.ZodTypeDef, unknown> = z
|
|
|
57
57
|
object_state: ObjectState$zodSchema.optional(),
|
|
58
58
|
object_updated: z.string().datetime({ offset: true }).optional(),
|
|
59
59
|
template: ParcelTemplateEnumSet$zodSchema.nullable().optional(),
|
|
60
|
-
test: z.boolean().optional(),
|
|
60
|
+
test: z.boolean().nullable().optional(),
|
|
61
61
|
weight: z.string(),
|
|
62
62
|
width: z.string(),
|
|
63
63
|
});
|
|
@@ -16,14 +16,14 @@ export type ServiceGroup = {
|
|
|
16
16
|
description: string;
|
|
17
17
|
flat_rate?: string | undefined;
|
|
18
18
|
flat_rate_currency?: string | undefined;
|
|
19
|
-
free_shipping_threshold_currency?: string | undefined;
|
|
20
|
-
free_shipping_threshold_min?: string | undefined;
|
|
19
|
+
free_shipping_threshold_currency?: string | null | undefined;
|
|
20
|
+
free_shipping_threshold_min?: string | null | undefined;
|
|
21
21
|
name: string;
|
|
22
22
|
rate_adjustment?: number | undefined;
|
|
23
23
|
type: ServiceGroupTypeEnum;
|
|
24
24
|
object_id: string;
|
|
25
25
|
is_active?: boolean | undefined;
|
|
26
|
-
service_levels: Array<ServiceGroupAccountAndServiceLevel
|
|
26
|
+
service_levels: Array<ServiceGroupAccountAndServiceLevel> | null;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export const ServiceGroup$zodSchema: z.ZodType<
|
|
@@ -34,12 +34,13 @@ export const ServiceGroup$zodSchema: z.ZodType<
|
|
|
34
34
|
description: z.string(),
|
|
35
35
|
flat_rate: z.string().optional(),
|
|
36
36
|
flat_rate_currency: z.string().optional(),
|
|
37
|
-
free_shipping_threshold_currency: z.string().optional(),
|
|
38
|
-
free_shipping_threshold_min: z.string().optional(),
|
|
37
|
+
free_shipping_threshold_currency: z.string().nullable().optional(),
|
|
38
|
+
free_shipping_threshold_min: z.string().nullable().optional(),
|
|
39
39
|
is_active: z.boolean().optional(),
|
|
40
40
|
name: z.string(),
|
|
41
41
|
object_id: z.string(),
|
|
42
42
|
rate_adjustment: z.number().int().optional(),
|
|
43
|
-
service_levels: z.array(ServiceGroupAccountAndServiceLevel$zodSchema)
|
|
43
|
+
service_levels: z.array(ServiceGroupAccountAndServiceLevel$zodSchema)
|
|
44
|
+
.nullable(),
|
|
44
45
|
type: ServiceGroupTypeEnum$zodSchema,
|
|
45
46
|
});
|
|
@@ -16,8 +16,8 @@ export type ServiceGroupCreateRequest = {
|
|
|
16
16
|
description: string;
|
|
17
17
|
flat_rate?: string | undefined;
|
|
18
18
|
flat_rate_currency?: string | undefined;
|
|
19
|
-
free_shipping_threshold_currency?: string | undefined;
|
|
20
|
-
free_shipping_threshold_min?: string | undefined;
|
|
19
|
+
free_shipping_threshold_currency?: string | null | undefined;
|
|
20
|
+
free_shipping_threshold_min?: string | null | undefined;
|
|
21
21
|
name: string;
|
|
22
22
|
rate_adjustment?: number | undefined;
|
|
23
23
|
type: ServiceGroupTypeEnum;
|
|
@@ -32,8 +32,8 @@ export const ServiceGroupCreateRequest$zodSchema: z.ZodType<
|
|
|
32
32
|
description: z.string(),
|
|
33
33
|
flat_rate: z.string().optional(),
|
|
34
34
|
flat_rate_currency: z.string().optional(),
|
|
35
|
-
free_shipping_threshold_currency: z.string().optional(),
|
|
36
|
-
free_shipping_threshold_min: z.string().optional(),
|
|
35
|
+
free_shipping_threshold_currency: z.string().nullable().optional(),
|
|
36
|
+
free_shipping_threshold_min: z.string().nullable().optional(),
|
|
37
37
|
name: z.string(),
|
|
38
38
|
rate_adjustment: z.number().int().optional(),
|
|
39
39
|
service_levels: z.array(ServiceGroupAccountAndServiceLevel$zodSchema),
|
|
@@ -16,8 +16,8 @@ export type ServiceGroupUpdateRequest = {
|
|
|
16
16
|
description: string;
|
|
17
17
|
flat_rate?: string | undefined;
|
|
18
18
|
flat_rate_currency?: string | undefined;
|
|
19
|
-
free_shipping_threshold_currency?: string | undefined;
|
|
20
|
-
free_shipping_threshold_min?: string | undefined;
|
|
19
|
+
free_shipping_threshold_currency?: string | null | undefined;
|
|
20
|
+
free_shipping_threshold_min?: string | null | undefined;
|
|
21
21
|
name: string;
|
|
22
22
|
rate_adjustment?: number | undefined;
|
|
23
23
|
type: ServiceGroupTypeEnum;
|
|
@@ -34,8 +34,8 @@ export const ServiceGroupUpdateRequest$zodSchema: z.ZodType<
|
|
|
34
34
|
description: z.string(),
|
|
35
35
|
flat_rate: z.string().optional(),
|
|
36
36
|
flat_rate_currency: z.string().optional(),
|
|
37
|
-
free_shipping_threshold_currency: z.string().optional(),
|
|
38
|
-
free_shipping_threshold_min: z.string().optional(),
|
|
37
|
+
free_shipping_threshold_currency: z.string().nullable().optional(),
|
|
38
|
+
free_shipping_threshold_min: z.string().nullable().optional(),
|
|
39
39
|
is_active: z.boolean(),
|
|
40
40
|
name: z.string(),
|
|
41
41
|
object_id: z.string(),
|
|
@@ -37,10 +37,10 @@ export const UserParcelTemplate$zodSchema: z.ZodType<
|
|
|
37
37
|
height: z.string().optional(),
|
|
38
38
|
length: z.string().optional(),
|
|
39
39
|
name: z.string().optional(),
|
|
40
|
-
object_created: z.string().
|
|
40
|
+
object_created: z.string().optional(),
|
|
41
41
|
object_id: z.string().optional(),
|
|
42
42
|
object_owner: z.string().optional(),
|
|
43
|
-
object_updated: z.string().
|
|
43
|
+
object_updated: z.string().optional(),
|
|
44
44
|
template: CarrierParcelTemplate$zodSchema.optional(),
|
|
45
45
|
weight: z.string().optional(),
|
|
46
46
|
weight_unit: WeightUnitEnum$zodSchema.optional(),
|