erpnext-queue-client 1.0.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/dist/client.d.ts +25 -0
- package/dist/client.js +141 -0
- package/dist/constants.d.ts +6 -0
- package/dist/constants.js +26 -0
- package/dist/erpnext/decryptFromErpNext.server.d.ts +2 -0
- package/dist/erpnext/decryptFromErpNext.server.js +17 -0
- package/dist/erpnext/decryptFromErpNext.server.test.d.ts +1 -0
- package/dist/erpnext/decryptFromErpNext.server.test.js +30 -0
- package/dist/erpnext/erpnextRequestWrapper.d.ts +5 -0
- package/dist/erpnext/erpnextRequestWrapper.js +91 -0
- package/dist/erpnext/erpnextRequests.d.ts +1786 -0
- package/dist/erpnext/erpnextRequests.js +339 -0
- package/dist/erpnext/model/Address.d.ts +349 -0
- package/dist/erpnext/model/Address.js +99 -0
- package/dist/erpnext/model/Contact.d.ts +546 -0
- package/dist/erpnext/model/Contact.js +118 -0
- package/dist/erpnext/model/Country.d.ts +78 -0
- package/dist/erpnext/model/Country.js +30 -0
- package/dist/erpnext/model/Customer.d.ts +99 -0
- package/dist/erpnext/model/Customer.js +42 -0
- package/dist/erpnext/model/DateSchema.d.ts +2 -0
- package/dist/erpnext/model/DateSchema.js +8 -0
- package/dist/erpnext/model/DeliveryNote.d.ts +1648 -0
- package/dist/erpnext/model/DeliveryNote.js +219 -0
- package/dist/erpnext/model/DispatchRun.d.ts +688 -0
- package/dist/erpnext/model/DispatchRun.js +167 -0
- package/dist/erpnext/model/DispatcherPreset.d.ts +159 -0
- package/dist/erpnext/model/DispatcherPreset.js +43 -0
- package/dist/erpnext/model/ERPNextQueue.d.ts +48 -0
- package/dist/erpnext/model/ERPNextQueue.js +5 -0
- package/dist/erpnext/model/ERPNextRequest.d.ts +29 -0
- package/dist/erpnext/model/ERPNextRequest.js +2 -0
- package/dist/erpnext/model/ERPNextResponse.d.ts +17 -0
- package/dist/erpnext/model/ERPNextResponse.js +18 -0
- package/dist/erpnext/model/File.d.ts +146 -0
- package/dist/erpnext/model/File.js +36 -0
- package/dist/erpnext/model/Fulfiller.d.ts +175 -0
- package/dist/erpnext/model/Fulfiller.js +79 -0
- package/dist/erpnext/model/FulfillerSettings.d.ts +130 -0
- package/dist/erpnext/model/FulfillerSettings.js +34 -0
- package/dist/erpnext/model/FulfillmentStation.d.ts +9 -0
- package/dist/erpnext/model/FulfillmentStation.js +9 -0
- package/dist/erpnext/model/Item.d.ts +1710 -0
- package/dist/erpnext/model/Item.js +239 -0
- package/dist/erpnext/model/ProjectedQuantityReport.d.ts +281 -0
- package/dist/erpnext/model/ProjectedQuantityReport.js +72 -0
- package/dist/erpnext/model/PurchaseOrder.d.ts +906 -0
- package/dist/erpnext/model/PurchaseOrder.js +248 -0
- package/dist/erpnext/model/Receipt.d.ts +790 -0
- package/dist/erpnext/model/Receipt.js +212 -0
- package/dist/erpnext/model/ReceiptDraft.d.ts +541 -0
- package/dist/erpnext/model/ReceiptDraft.js +149 -0
- package/dist/erpnext/model/Shipment.d.ts +1139 -0
- package/dist/erpnext/model/Shipment.js +191 -0
- package/dist/erpnext/model/ShippingProvider.d.ts +434 -0
- package/dist/erpnext/model/ShippingProvider.js +204 -0
- package/dist/erpnext/model/StockDict.d.ts +3 -0
- package/dist/erpnext/model/StockDict.js +7 -0
- package/dist/erpnext/model/WarehouseCategory.d.ts +20 -0
- package/dist/erpnext/model/WarehouseCategory.js +15 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +18 -0
- package/dist/utils/fernet.server.d.ts +150 -0
- package/dist/utils/fernet.server.js +344 -0
- package/dist/utils/logger.d.ts +5 -0
- package/dist/utils/logger.js +45 -0
- package/dist/utils/request.d.ts +28 -0
- package/dist/utils/request.js +107 -0
- package/dist/utils/utils.d.ts +4 -0
- package/dist/utils/utils.js +23 -0
- package/dist/utils/zodUtils.d.ts +2 -0
- package/dist/utils/zodUtils.js +17 -0
- package/package.json +32 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const Fulfiller: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
owner: z.ZodString;
|
|
5
|
+
creation: z.ZodString;
|
|
6
|
+
modified: z.ZodString;
|
|
7
|
+
modified_by: z.ZodString;
|
|
8
|
+
idx: z.ZodNumber;
|
|
9
|
+
docstatus: z.ZodNumber;
|
|
10
|
+
active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
create_shipping_labels: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
13
|
+
create_delivery_notes: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
14
|
+
create_picking_list: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
15
|
+
create_csv_file: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
16
|
+
csv_file_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
is_dropshipping: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
18
|
+
warehouse: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
19
|
+
fulfillment_warehouse: z.ZodString;
|
|
20
|
+
supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
language: z.ZodString;
|
|
22
|
+
pickinglist_sorting: z.ZodString;
|
|
23
|
+
send_email: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
24
|
+
email_address_field: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
email_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
doctype: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
name?: string;
|
|
29
|
+
owner?: string;
|
|
30
|
+
creation?: string;
|
|
31
|
+
modified?: string;
|
|
32
|
+
modified_by?: string;
|
|
33
|
+
idx?: number;
|
|
34
|
+
docstatus?: number;
|
|
35
|
+
doctype?: string;
|
|
36
|
+
supplier?: string;
|
|
37
|
+
warehouse?: string;
|
|
38
|
+
language?: string;
|
|
39
|
+
title?: string;
|
|
40
|
+
active?: boolean;
|
|
41
|
+
create_shipping_labels?: boolean;
|
|
42
|
+
create_delivery_notes?: boolean;
|
|
43
|
+
create_picking_list?: boolean;
|
|
44
|
+
create_csv_file?: boolean;
|
|
45
|
+
csv_file_type?: string;
|
|
46
|
+
is_dropshipping?: boolean;
|
|
47
|
+
fulfillment_warehouse?: string;
|
|
48
|
+
pickinglist_sorting?: string;
|
|
49
|
+
send_email?: boolean;
|
|
50
|
+
email_address_field?: string;
|
|
51
|
+
email_template?: string;
|
|
52
|
+
}, {
|
|
53
|
+
name?: string;
|
|
54
|
+
owner?: string;
|
|
55
|
+
creation?: string;
|
|
56
|
+
modified?: string;
|
|
57
|
+
modified_by?: string;
|
|
58
|
+
idx?: number;
|
|
59
|
+
docstatus?: number;
|
|
60
|
+
doctype?: string;
|
|
61
|
+
supplier?: string;
|
|
62
|
+
warehouse?: string;
|
|
63
|
+
language?: string;
|
|
64
|
+
title?: string;
|
|
65
|
+
active?: number;
|
|
66
|
+
create_shipping_labels?: number;
|
|
67
|
+
create_delivery_notes?: number;
|
|
68
|
+
create_picking_list?: number;
|
|
69
|
+
create_csv_file?: number;
|
|
70
|
+
csv_file_type?: string;
|
|
71
|
+
is_dropshipping?: number;
|
|
72
|
+
fulfillment_warehouse?: string;
|
|
73
|
+
pickinglist_sorting?: string;
|
|
74
|
+
send_email?: number;
|
|
75
|
+
email_address_field?: string;
|
|
76
|
+
email_template?: string;
|
|
77
|
+
}>;
|
|
78
|
+
export type FulfillerType = z.infer<typeof Fulfiller>;
|
|
79
|
+
export declare const fulfillerLeanFieldList: readonly ["name", "active", "supplier", "create_delivery_notes", "create_shipping_labels", "create_picking_list", "create_csv_file", "csv_file_type", "is_dropshipping", "warehouse", "fulfillment_warehouse", "send_email", "email_template", "email_address_field", "language", "title"];
|
|
80
|
+
export declare const FulfillerLean: z.ZodObject<Pick<{
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
owner: z.ZodString;
|
|
83
|
+
creation: z.ZodString;
|
|
84
|
+
modified: z.ZodString;
|
|
85
|
+
modified_by: z.ZodString;
|
|
86
|
+
idx: z.ZodNumber;
|
|
87
|
+
docstatus: z.ZodNumber;
|
|
88
|
+
active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
89
|
+
title: z.ZodString;
|
|
90
|
+
create_shipping_labels: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
91
|
+
create_delivery_notes: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
92
|
+
create_picking_list: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
93
|
+
create_csv_file: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
94
|
+
csv_file_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
95
|
+
is_dropshipping: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
96
|
+
warehouse: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
97
|
+
fulfillment_warehouse: z.ZodString;
|
|
98
|
+
supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
99
|
+
language: z.ZodString;
|
|
100
|
+
pickinglist_sorting: z.ZodString;
|
|
101
|
+
send_email: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
102
|
+
email_address_field: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
103
|
+
email_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
104
|
+
doctype: z.ZodString;
|
|
105
|
+
}, "name" | "supplier" | "warehouse" | "language" | "title" | "active" | "create_shipping_labels" | "create_delivery_notes" | "create_picking_list" | "create_csv_file" | "csv_file_type" | "is_dropshipping" | "fulfillment_warehouse" | "send_email" | "email_address_field" | "email_template">, "strip", z.ZodTypeAny, {
|
|
106
|
+
name?: string;
|
|
107
|
+
supplier?: string;
|
|
108
|
+
warehouse?: string;
|
|
109
|
+
language?: string;
|
|
110
|
+
title?: string;
|
|
111
|
+
active?: boolean;
|
|
112
|
+
create_shipping_labels?: boolean;
|
|
113
|
+
create_delivery_notes?: boolean;
|
|
114
|
+
create_picking_list?: boolean;
|
|
115
|
+
create_csv_file?: boolean;
|
|
116
|
+
csv_file_type?: string;
|
|
117
|
+
is_dropshipping?: boolean;
|
|
118
|
+
fulfillment_warehouse?: string;
|
|
119
|
+
send_email?: boolean;
|
|
120
|
+
email_address_field?: string;
|
|
121
|
+
email_template?: string;
|
|
122
|
+
}, {
|
|
123
|
+
name?: string;
|
|
124
|
+
supplier?: string;
|
|
125
|
+
warehouse?: string;
|
|
126
|
+
language?: string;
|
|
127
|
+
title?: string;
|
|
128
|
+
active?: number;
|
|
129
|
+
create_shipping_labels?: number;
|
|
130
|
+
create_delivery_notes?: number;
|
|
131
|
+
create_picking_list?: number;
|
|
132
|
+
create_csv_file?: number;
|
|
133
|
+
csv_file_type?: string;
|
|
134
|
+
is_dropshipping?: number;
|
|
135
|
+
fulfillment_warehouse?: string;
|
|
136
|
+
send_email?: number;
|
|
137
|
+
email_address_field?: string;
|
|
138
|
+
email_template?: string;
|
|
139
|
+
}>;
|
|
140
|
+
export type FulfillerLeanType = z.infer<typeof FulfillerLean>;
|
|
141
|
+
declare const FulfillerListItem: z.ZodObject<{
|
|
142
|
+
name: z.ZodString;
|
|
143
|
+
warehouse: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
144
|
+
is_dropshipping: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
145
|
+
active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
name?: string;
|
|
148
|
+
warehouse?: string;
|
|
149
|
+
active?: boolean;
|
|
150
|
+
is_dropshipping?: boolean;
|
|
151
|
+
}, {
|
|
152
|
+
name?: string;
|
|
153
|
+
warehouse?: string;
|
|
154
|
+
active?: number;
|
|
155
|
+
is_dropshipping?: number;
|
|
156
|
+
}>;
|
|
157
|
+
export type FulfillerListItemType = z.infer<typeof FulfillerListItem>;
|
|
158
|
+
export declare const FulfillerList: z.ZodArray<z.ZodObject<{
|
|
159
|
+
name: z.ZodString;
|
|
160
|
+
warehouse: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
161
|
+
is_dropshipping: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
162
|
+
active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
name?: string;
|
|
165
|
+
warehouse?: string;
|
|
166
|
+
active?: boolean;
|
|
167
|
+
is_dropshipping?: boolean;
|
|
168
|
+
}, {
|
|
169
|
+
name?: string;
|
|
170
|
+
warehouse?: string;
|
|
171
|
+
active?: number;
|
|
172
|
+
is_dropshipping?: number;
|
|
173
|
+
}>, "many">;
|
|
174
|
+
export type FulfillerListType = z.infer<typeof FulfillerList>;
|
|
175
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FulfillerList = exports.FulfillerLean = exports.fulfillerLeanFieldList = exports.Fulfiller = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.Fulfiller = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
owner: zod_1.z.string(),
|
|
9
|
+
creation: zod_1.z.string(),
|
|
10
|
+
modified: zod_1.z.string(),
|
|
11
|
+
modified_by: zod_1.z.string(),
|
|
12
|
+
idx: zod_1.z.number(),
|
|
13
|
+
docstatus: zod_1.z.number(),
|
|
14
|
+
active: zod_1.z.number().transform(Boolean),
|
|
15
|
+
title: zod_1.z.string(),
|
|
16
|
+
create_shipping_labels: zod_1.z.number().transform(Boolean),
|
|
17
|
+
create_delivery_notes: zod_1.z.number().transform(Boolean),
|
|
18
|
+
create_picking_list: zod_1.z.number().transform(Boolean),
|
|
19
|
+
create_csv_file: zod_1.z.number().transform(Boolean),
|
|
20
|
+
csv_file_type: zod_1.z.string().optional().nullable(),
|
|
21
|
+
is_dropshipping: zod_1.z.number().transform(Boolean),
|
|
22
|
+
warehouse: zod_1.z.string().optional().nullable(),
|
|
23
|
+
fulfillment_warehouse: zod_1.z.string(),
|
|
24
|
+
supplier: zod_1.z.string().optional().nullable(),
|
|
25
|
+
language: zod_1.z.string(),
|
|
26
|
+
pickinglist_sorting: zod_1.z.string(),
|
|
27
|
+
send_email: zod_1.z.number().transform(Boolean),
|
|
28
|
+
email_address_field: zod_1.z.string().optional().nullable(),
|
|
29
|
+
email_template: zod_1.z.string().optional().nullable(),
|
|
30
|
+
doctype: zod_1.z.string(),
|
|
31
|
+
})
|
|
32
|
+
.describe("Fulfiller");
|
|
33
|
+
exports.fulfillerLeanFieldList = [
|
|
34
|
+
"name",
|
|
35
|
+
"active",
|
|
36
|
+
"supplier",
|
|
37
|
+
"create_delivery_notes",
|
|
38
|
+
"create_shipping_labels",
|
|
39
|
+
"create_picking_list",
|
|
40
|
+
"create_csv_file",
|
|
41
|
+
"csv_file_type",
|
|
42
|
+
"is_dropshipping",
|
|
43
|
+
"warehouse",
|
|
44
|
+
"fulfillment_warehouse",
|
|
45
|
+
"send_email",
|
|
46
|
+
"email_template",
|
|
47
|
+
"email_address_field",
|
|
48
|
+
"language",
|
|
49
|
+
"title",
|
|
50
|
+
];
|
|
51
|
+
exports.FulfillerLean = exports.Fulfiller.pick({
|
|
52
|
+
name: true,
|
|
53
|
+
active: true,
|
|
54
|
+
supplier: true,
|
|
55
|
+
create_delivery_notes: true,
|
|
56
|
+
create_shipping_labels: true,
|
|
57
|
+
create_picking_list: true,
|
|
58
|
+
create_csv_file: true,
|
|
59
|
+
csv_file_type: true,
|
|
60
|
+
is_dropshipping: true,
|
|
61
|
+
warehouse: true,
|
|
62
|
+
fulfillment_warehouse: true,
|
|
63
|
+
send_email: true,
|
|
64
|
+
email_template: true,
|
|
65
|
+
email_address_field: true,
|
|
66
|
+
language: true,
|
|
67
|
+
title: true,
|
|
68
|
+
});
|
|
69
|
+
const FulfillerListItem = zod_1.z
|
|
70
|
+
.object({
|
|
71
|
+
name: zod_1.z.string(),
|
|
72
|
+
warehouse: zod_1.z.string().optional().nullable(),
|
|
73
|
+
is_dropshipping: zod_1.z.number().transform(Boolean),
|
|
74
|
+
active: zod_1.z.number().transform(Boolean),
|
|
75
|
+
})
|
|
76
|
+
.describe("Fulfiller List Item");
|
|
77
|
+
exports.FulfillerList = zod_1.z
|
|
78
|
+
.array(FulfillerListItem)
|
|
79
|
+
.describe("Fulfiller List");
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FulfillerShippingSettingsItem: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
5
|
+
parent: z.ZodString;
|
|
6
|
+
fulfiller: z.ZodString;
|
|
7
|
+
is_ship_individually: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
8
|
+
bundle_size: z.ZodNumber;
|
|
9
|
+
shipping_provider: z.ZodString;
|
|
10
|
+
can_be_bundled_with: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
|
+
bundle_type: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Inside box">, z.ZodLiteral<"Outside box">]>>>;
|
|
12
|
+
max_bundle_with_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
name?: string;
|
|
15
|
+
parent?: string;
|
|
16
|
+
shipping_provider?: string;
|
|
17
|
+
fulfiller?: string;
|
|
18
|
+
is_active?: boolean;
|
|
19
|
+
is_ship_individually?: boolean;
|
|
20
|
+
bundle_size?: number;
|
|
21
|
+
can_be_bundled_with?: string;
|
|
22
|
+
bundle_type?: "Inside box" | "Outside box";
|
|
23
|
+
max_bundle_with_amount?: number;
|
|
24
|
+
}, {
|
|
25
|
+
name?: string;
|
|
26
|
+
parent?: string;
|
|
27
|
+
shipping_provider?: string;
|
|
28
|
+
fulfiller?: string;
|
|
29
|
+
is_active?: number;
|
|
30
|
+
is_ship_individually?: number;
|
|
31
|
+
bundle_size?: number;
|
|
32
|
+
can_be_bundled_with?: string;
|
|
33
|
+
bundle_type?: "Inside box" | "Outside box";
|
|
34
|
+
max_bundle_with_amount?: number;
|
|
35
|
+
}>;
|
|
36
|
+
export type FulfillerShippingSettingsItemType = z.infer<typeof FulfillerShippingSettingsItem>;
|
|
37
|
+
export declare const FulfillerShippingSettings: z.ZodArray<z.ZodObject<{
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
40
|
+
parent: z.ZodString;
|
|
41
|
+
fulfiller: z.ZodString;
|
|
42
|
+
is_ship_individually: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
43
|
+
bundle_size: z.ZodNumber;
|
|
44
|
+
shipping_provider: z.ZodString;
|
|
45
|
+
can_be_bundled_with: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
46
|
+
bundle_type: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Inside box">, z.ZodLiteral<"Outside box">]>>>;
|
|
47
|
+
max_bundle_with_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
name?: string;
|
|
50
|
+
parent?: string;
|
|
51
|
+
shipping_provider?: string;
|
|
52
|
+
fulfiller?: string;
|
|
53
|
+
is_active?: boolean;
|
|
54
|
+
is_ship_individually?: boolean;
|
|
55
|
+
bundle_size?: number;
|
|
56
|
+
can_be_bundled_with?: string;
|
|
57
|
+
bundle_type?: "Inside box" | "Outside box";
|
|
58
|
+
max_bundle_with_amount?: number;
|
|
59
|
+
}, {
|
|
60
|
+
name?: string;
|
|
61
|
+
parent?: string;
|
|
62
|
+
shipping_provider?: string;
|
|
63
|
+
fulfiller?: string;
|
|
64
|
+
is_active?: number;
|
|
65
|
+
is_ship_individually?: number;
|
|
66
|
+
bundle_size?: number;
|
|
67
|
+
can_be_bundled_with?: string;
|
|
68
|
+
bundle_type?: "Inside box" | "Outside box";
|
|
69
|
+
max_bundle_with_amount?: number;
|
|
70
|
+
}>, "many">;
|
|
71
|
+
export type FulfillerShippingSettingsType = z.infer<typeof FulfillerShippingSettings>;
|
|
72
|
+
export declare const FulfillerShippingSettingsWithSkus: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
75
|
+
parent: z.ZodString;
|
|
76
|
+
fulfiller: z.ZodString;
|
|
77
|
+
is_ship_individually: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
78
|
+
bundle_size: z.ZodNumber;
|
|
79
|
+
shipping_provider: z.ZodString;
|
|
80
|
+
can_be_bundled_with: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
81
|
+
bundle_type: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Inside box">, z.ZodLiteral<"Outside box">]>>>;
|
|
82
|
+
max_bundle_with_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
83
|
+
}, {
|
|
84
|
+
skus: z.ZodArray<z.ZodString, "many">;
|
|
85
|
+
}>, "strip", z.ZodTypeAny, {
|
|
86
|
+
name?: string;
|
|
87
|
+
parent?: string;
|
|
88
|
+
shipping_provider?: string;
|
|
89
|
+
fulfiller?: string;
|
|
90
|
+
is_active?: boolean;
|
|
91
|
+
skus?: string[];
|
|
92
|
+
is_ship_individually?: boolean;
|
|
93
|
+
bundle_size?: number;
|
|
94
|
+
can_be_bundled_with?: string;
|
|
95
|
+
bundle_type?: "Inside box" | "Outside box";
|
|
96
|
+
max_bundle_with_amount?: number;
|
|
97
|
+
}, {
|
|
98
|
+
name?: string;
|
|
99
|
+
parent?: string;
|
|
100
|
+
shipping_provider?: string;
|
|
101
|
+
fulfiller?: string;
|
|
102
|
+
is_active?: number;
|
|
103
|
+
skus?: string[];
|
|
104
|
+
is_ship_individually?: number;
|
|
105
|
+
bundle_size?: number;
|
|
106
|
+
can_be_bundled_with?: string;
|
|
107
|
+
bundle_type?: "Inside box" | "Outside box";
|
|
108
|
+
max_bundle_with_amount?: number;
|
|
109
|
+
}>, "many">;
|
|
110
|
+
export type FulfillerShippingSettingsWithSkusType = z.infer<typeof FulfillerShippingSettingsWithSkus>;
|
|
111
|
+
declare const FulfillerShippingSettingsMinimal: z.ZodArray<z.ZodObject<Pick<{
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
is_active: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
114
|
+
parent: z.ZodString;
|
|
115
|
+
fulfiller: z.ZodString;
|
|
116
|
+
is_ship_individually: z.ZodEffects<z.ZodNumber, boolean, number>;
|
|
117
|
+
bundle_size: z.ZodNumber;
|
|
118
|
+
shipping_provider: z.ZodString;
|
|
119
|
+
can_be_bundled_with: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
120
|
+
bundle_type: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Inside box">, z.ZodLiteral<"Outside box">]>>>;
|
|
121
|
+
max_bundle_with_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
122
|
+
}, "parent" | "fulfiller">, "strip", z.ZodTypeAny, {
|
|
123
|
+
parent?: string;
|
|
124
|
+
fulfiller?: string;
|
|
125
|
+
}, {
|
|
126
|
+
parent?: string;
|
|
127
|
+
fulfiller?: string;
|
|
128
|
+
}>, "many">;
|
|
129
|
+
export type FulfillerShippingSettingsMinimalType = z.infer<typeof FulfillerShippingSettingsMinimal>;
|
|
130
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FulfillerShippingSettingsWithSkus = exports.FulfillerShippingSettings = exports.FulfillerShippingSettingsItem = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.FulfillerShippingSettingsItem = zod_1.z
|
|
6
|
+
.object({
|
|
7
|
+
name: zod_1.z.string(),
|
|
8
|
+
is_active: zod_1.z.number().transform(Boolean),
|
|
9
|
+
parent: zod_1.z.string(),
|
|
10
|
+
fulfiller: zod_1.z.string(),
|
|
11
|
+
is_ship_individually: zod_1.z.number().transform(Boolean),
|
|
12
|
+
bundle_size: zod_1.z.number().min(1),
|
|
13
|
+
shipping_provider: zod_1.z.string(),
|
|
14
|
+
can_be_bundled_with: zod_1.z.string().optional().nullable(),
|
|
15
|
+
bundle_type: zod_1.z
|
|
16
|
+
.literal("Inside box")
|
|
17
|
+
.or(zod_1.z.literal("Outside box"))
|
|
18
|
+
.optional()
|
|
19
|
+
.nullable(),
|
|
20
|
+
max_bundle_with_amount: zod_1.z.number().optional().nullable(),
|
|
21
|
+
})
|
|
22
|
+
.describe("FulfillerShippingSettingsItem");
|
|
23
|
+
exports.FulfillerShippingSettings = zod_1.z
|
|
24
|
+
.array(exports.FulfillerShippingSettingsItem)
|
|
25
|
+
.describe("FulfillerShippingSettings");
|
|
26
|
+
exports.FulfillerShippingSettingsWithSkus = zod_1.z
|
|
27
|
+
.array(exports.FulfillerShippingSettingsItem.extend({
|
|
28
|
+
skus: zod_1.z.array(zod_1.z.string()),
|
|
29
|
+
}))
|
|
30
|
+
.describe("FulfillerShippingSettingsWithSkus");
|
|
31
|
+
const FulfillerShippingSettingsMinimal = zod_1.z.array(exports.FulfillerShippingSettingsItem.pick({
|
|
32
|
+
parent: true,
|
|
33
|
+
fulfiller: true,
|
|
34
|
+
}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FulfillmentStations: z.ZodArray<z.ZodObject<{
|
|
3
|
+
fulfillment_station: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
fulfillment_station?: string;
|
|
6
|
+
}, {
|
|
7
|
+
fulfillment_station?: string;
|
|
8
|
+
}>, "many">;
|
|
9
|
+
export type FulfillmentStationsType = z.infer<typeof FulfillmentStations>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FulfillmentStations = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.FulfillmentStations = zod_1.z
|
|
6
|
+
.array(zod_1.z.object({
|
|
7
|
+
fulfillment_station: zod_1.z.string(),
|
|
8
|
+
}))
|
|
9
|
+
.describe("Fulfillment Stations");
|