@channel.io/app-sdk-core 0.34.0 → 0.36.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/dist/extensions/commerce.d.ts +38 -38
- package/dist/extensions/function-schemas.d.ts.map +1 -1
- package/dist/extensions/function-schemas.js +6 -1
- package/dist/extensions/function-schemas.js.map +1 -1
- package/dist/extensions/index.d.ts +1 -1
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +1 -1
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/proto-contracts.d.ts +6 -1
- package/dist/extensions/proto-contracts.d.ts.map +1 -1
- package/dist/extensions/wms.d.ts +752 -4
- package/dist/extensions/wms.d.ts.map +1 -1
- package/dist/extensions/wms.js +52 -2
- package/dist/extensions/wms.js.map +1 -1
- package/dist/gen/channel/app/sdk/v1/extension.d.ts +61 -1
- package/dist/gen/channel/app/sdk/v1/extension.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/extension.zod.d.ts +857 -142
- package/dist/gen/channel/app/sdk/v1/extension.zod.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/extension.zod.js +35 -1
- package/dist/gen/channel/app/sdk/v1/extension.zod.js.map +1 -1
- package/package.json +1 -1
package/dist/extensions/wms.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { WmsChangeShippingAddressRequest as ProtoChangeWmsShippingAddressInput, WmsDelivery as ProtoWmsDelivery, WmsGetOrderRequest as ProtoGetWmsOrderInput, WmsGetOrderResult as ProtoGetWmsOrderOutput, WmsGetOrdersRequest as ProtoGetWmsOrdersInput, WmsGetOrdersResult as ProtoGetWmsOrdersOutput, WmsGetShopIDRequest as ProtoGetWmsShopIdInput, WmsGetShopIDResult as ProtoGetWmsShopIdOutput, WmsGetSupportedCommercesRequest as ProtoGetWmsSupportedCommercesInput, WmsGetSupportedCommercesResult as ProtoGetWmsSupportedCommercesOutput, WmsOrder as ProtoWmsOrder, WmsOrderItem as ProtoWmsOrderItem, WmsOrderStateRequest as ProtoWmsOrderStateRequest, WmsRestoreOrderRequest as ProtoRestoreWmsOrderInput, WmsShippingInfo as ProtoWmsShippingInfo, WmsSuccessResult as ProtoWmsSuccessOutput, WmsAppCapabilities as ProtoWmsAppCapabilities, WmsDeliveryV2 as ProtoWmsDeliveryV2, WmsGetAppConfigsInput as ProtoWmsGetAppConfigsInput, WmsGetAppConfigsOutput as ProtoWmsGetAppConfigsOutput, WmsIdentifier as ProtoWmsIdentifier, WmsOperationOptions as ProtoWmsOperationOptions, WmsOrderActionRequest as ProtoWmsOrderActionRequest, WmsOrderActionResult as ProtoWmsOrderActionResult, WmsOrderCancelRequest as ProtoWmsOrderCancelRequest, WmsOrderChangeShippingAddressInput as ProtoWmsOrderChangeShippingAddressInput, WmsOrderClaimItem as ProtoWmsOrderClaimItem, WmsOrderExchangeRequest as ProtoWmsOrderExchangeRequest, WmsOrderReturnRequest as ProtoWmsOrderReturnRequest, WmsOrderGetOrdersRequest as ProtoWmsOrderGetOrdersRequest, WmsOrderGetOrdersResult as ProtoWmsOrderGetOrdersResult, WmsOrderItemV2 as ProtoWmsOrderItemV2, WmsOrderV2 as ProtoWmsOrderV2 } from "../gen/channel/app/sdk/v1/extension.js";
|
|
2
|
+
import type { WmsChangeShippingAddressRequest as ProtoChangeWmsShippingAddressInput, WmsDelivery as ProtoWmsDelivery, WmsGetOrderRequest as ProtoGetWmsOrderInput, WmsGetOrderResult as ProtoGetWmsOrderOutput, WmsGetOrdersRequest as ProtoGetWmsOrdersInput, WmsGetOrdersResult as ProtoGetWmsOrdersOutput, WmsGetShopIDRequest as ProtoGetWmsShopIdInput, WmsGetShopIDResult as ProtoGetWmsShopIdOutput, WmsGetSupportedCommercesRequest as ProtoGetWmsSupportedCommercesInput, WmsGetSupportedCommercesResult as ProtoGetWmsSupportedCommercesOutput, WmsOrder as ProtoWmsOrder, WmsOrderItem as ProtoWmsOrderItem, WmsOrderStateRequest as ProtoWmsOrderStateRequest, WmsRestoreOrderRequest as ProtoRestoreWmsOrderInput, WmsShippingInfo as ProtoWmsShippingInfo, WmsSuccessResult as ProtoWmsSuccessOutput, WmsAppCapabilities as ProtoWmsAppCapabilities, WmsDeliveryV2 as ProtoWmsDeliveryV2, WmsGetAppConfigsInput as ProtoWmsGetAppConfigsInput, WmsGetAppConfigsOutput as ProtoWmsGetAppConfigsOutput, WmsIdentifier as ProtoWmsIdentifier, WmsOperationOptions as ProtoWmsOperationOptions, WmsOrderActionRequest as ProtoWmsOrderActionRequest, WmsOrderActionResult as ProtoWmsOrderActionResult, WmsOrderCancelRequest as ProtoWmsOrderCancelRequest, WmsOrderChangeShippingAddressInput as ProtoWmsOrderChangeShippingAddressInput, WmsOrderClaimItem as ProtoWmsOrderClaimItem, WmsOrderExchangeRequest as ProtoWmsOrderExchangeRequest, WmsOrderGetExchangeableItemsRequest as ProtoWmsOrderGetExchangeableItemsRequest, WmsOrderGetExchangeableItemsResult as ProtoWmsOrderGetExchangeableItemsResult, WmsExchangeableItem as ProtoWmsExchangeableItem, WmsExchangeableVariant as ProtoWmsExchangeableVariant, WmsVariantOption as ProtoWmsVariantOption, WmsOrderReturnRequest as ProtoWmsOrderReturnRequest, WmsOrderGetOrdersRequest as ProtoWmsOrderGetOrdersRequest, WmsOrderGetOrdersResult as ProtoWmsOrderGetOrdersResult, WmsOrderItemV2 as ProtoWmsOrderItemV2, WmsOrderV2 as ProtoWmsOrderV2 } from "../gen/channel/app/sdk/v1/extension.js";
|
|
3
3
|
type ProtoBacked<T, Proto> = T & Proto;
|
|
4
4
|
/**
|
|
5
5
|
* WMS shipping information schema
|
|
@@ -1049,26 +1049,41 @@ export declare const WmsOrderItemV2Schema: z.ZodObject<{
|
|
|
1049
1049
|
estimatedShipDate: z.ZodOptional<z.ZodString>;
|
|
1050
1050
|
invoiceNumber: z.ZodOptional<z.ZodString>;
|
|
1051
1051
|
deliveryCompany: z.ZodOptional<z.ZodString>;
|
|
1052
|
+
option: z.ZodOptional<z.ZodString>;
|
|
1053
|
+
shippingAvailability: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
estimatedRestockDate: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
variantId: z.ZodOptional<z.ZodString>;
|
|
1056
|
+
barcode: z.ZodOptional<z.ZodString>;
|
|
1052
1057
|
}, "strip", z.ZodTypeAny, {
|
|
1053
1058
|
id: string;
|
|
1054
1059
|
commerceOrderItemId: string;
|
|
1055
1060
|
state?: string | undefined;
|
|
1056
1061
|
quantity?: number | undefined;
|
|
1062
|
+
option?: string | undefined;
|
|
1063
|
+
variantId?: string | undefined;
|
|
1057
1064
|
estimatedShipDate?: string | undefined;
|
|
1058
1065
|
productName?: string | undefined;
|
|
1059
1066
|
packageId?: string | undefined;
|
|
1060
1067
|
invoiceNumber?: string | undefined;
|
|
1061
1068
|
deliveryCompany?: string | undefined;
|
|
1069
|
+
shippingAvailability?: string | undefined;
|
|
1070
|
+
estimatedRestockDate?: string | undefined;
|
|
1071
|
+
barcode?: string | undefined;
|
|
1062
1072
|
}, {
|
|
1063
1073
|
id: string;
|
|
1064
1074
|
commerceOrderItemId: string;
|
|
1065
1075
|
state?: string | undefined;
|
|
1066
1076
|
quantity?: number | undefined;
|
|
1077
|
+
option?: string | undefined;
|
|
1078
|
+
variantId?: string | undefined;
|
|
1067
1079
|
estimatedShipDate?: string | undefined;
|
|
1068
1080
|
productName?: string | undefined;
|
|
1069
1081
|
packageId?: string | undefined;
|
|
1070
1082
|
invoiceNumber?: string | undefined;
|
|
1071
1083
|
deliveryCompany?: string | undefined;
|
|
1084
|
+
shippingAvailability?: string | undefined;
|
|
1085
|
+
estimatedRestockDate?: string | undefined;
|
|
1086
|
+
barcode?: string | undefined;
|
|
1072
1087
|
}>;
|
|
1073
1088
|
export type WmsOrderItemV2 = ProtoBacked<z.infer<typeof WmsOrderItemV2Schema>, ProtoWmsOrderItemV2>;
|
|
1074
1089
|
export declare const WmsOrderV2Schema: z.ZodObject<{
|
|
@@ -1100,26 +1115,41 @@ export declare const WmsOrderV2Schema: z.ZodObject<{
|
|
|
1100
1115
|
estimatedShipDate: z.ZodOptional<z.ZodString>;
|
|
1101
1116
|
invoiceNumber: z.ZodOptional<z.ZodString>;
|
|
1102
1117
|
deliveryCompany: z.ZodOptional<z.ZodString>;
|
|
1118
|
+
option: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
shippingAvailability: z.ZodOptional<z.ZodString>;
|
|
1120
|
+
estimatedRestockDate: z.ZodOptional<z.ZodString>;
|
|
1121
|
+
variantId: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
barcode: z.ZodOptional<z.ZodString>;
|
|
1103
1123
|
}, "strip", z.ZodTypeAny, {
|
|
1104
1124
|
id: string;
|
|
1105
1125
|
commerceOrderItemId: string;
|
|
1106
1126
|
state?: string | undefined;
|
|
1107
1127
|
quantity?: number | undefined;
|
|
1128
|
+
option?: string | undefined;
|
|
1129
|
+
variantId?: string | undefined;
|
|
1108
1130
|
estimatedShipDate?: string | undefined;
|
|
1109
1131
|
productName?: string | undefined;
|
|
1110
1132
|
packageId?: string | undefined;
|
|
1111
1133
|
invoiceNumber?: string | undefined;
|
|
1112
1134
|
deliveryCompany?: string | undefined;
|
|
1135
|
+
shippingAvailability?: string | undefined;
|
|
1136
|
+
estimatedRestockDate?: string | undefined;
|
|
1137
|
+
barcode?: string | undefined;
|
|
1113
1138
|
}, {
|
|
1114
1139
|
id: string;
|
|
1115
1140
|
commerceOrderItemId: string;
|
|
1116
1141
|
state?: string | undefined;
|
|
1117
1142
|
quantity?: number | undefined;
|
|
1143
|
+
option?: string | undefined;
|
|
1144
|
+
variantId?: string | undefined;
|
|
1118
1145
|
estimatedShipDate?: string | undefined;
|
|
1119
1146
|
productName?: string | undefined;
|
|
1120
1147
|
packageId?: string | undefined;
|
|
1121
1148
|
invoiceNumber?: string | undefined;
|
|
1122
1149
|
deliveryCompany?: string | undefined;
|
|
1150
|
+
shippingAvailability?: string | undefined;
|
|
1151
|
+
estimatedRestockDate?: string | undefined;
|
|
1152
|
+
barcode?: string | undefined;
|
|
1123
1153
|
}>, "many">;
|
|
1124
1154
|
deliveries: z.ZodArray<z.ZodObject<{
|
|
1125
1155
|
id: z.ZodString;
|
|
@@ -1131,6 +1161,52 @@ export declare const WmsOrderV2Schema: z.ZodObject<{
|
|
|
1131
1161
|
id: string;
|
|
1132
1162
|
itemIds: string[];
|
|
1133
1163
|
}>, "many">;
|
|
1164
|
+
shippingAddress: z.ZodOptional<z.ZodObject<{
|
|
1165
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1166
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1168
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1169
|
+
cellPhoneNumber: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
zipcode: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
address1: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
shippingMessage: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
city: z.ZodOptional<z.ZodString>;
|
|
1176
|
+
province: z.ZodOptional<z.ZodString>;
|
|
1177
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
}, "strip", z.ZodTypeAny, {
|
|
1179
|
+
email?: string | undefined;
|
|
1180
|
+
countryCode?: string | undefined;
|
|
1181
|
+
address1?: string | undefined;
|
|
1182
|
+
address2?: string | undefined;
|
|
1183
|
+
firstName?: string | undefined;
|
|
1184
|
+
lastName?: string | undefined;
|
|
1185
|
+
phoneNumber?: string | undefined;
|
|
1186
|
+
cellPhoneNumber?: string | undefined;
|
|
1187
|
+
zipcode?: string | undefined;
|
|
1188
|
+
shippingMessage?: string | undefined;
|
|
1189
|
+
country?: string | undefined;
|
|
1190
|
+
city?: string | undefined;
|
|
1191
|
+
province?: string | undefined;
|
|
1192
|
+
}, {
|
|
1193
|
+
email?: string | undefined;
|
|
1194
|
+
countryCode?: string | undefined;
|
|
1195
|
+
address1?: string | undefined;
|
|
1196
|
+
address2?: string | undefined;
|
|
1197
|
+
firstName?: string | undefined;
|
|
1198
|
+
lastName?: string | undefined;
|
|
1199
|
+
phoneNumber?: string | undefined;
|
|
1200
|
+
cellPhoneNumber?: string | undefined;
|
|
1201
|
+
zipcode?: string | undefined;
|
|
1202
|
+
shippingMessage?: string | undefined;
|
|
1203
|
+
country?: string | undefined;
|
|
1204
|
+
city?: string | undefined;
|
|
1205
|
+
province?: string | undefined;
|
|
1206
|
+
}>>;
|
|
1207
|
+
orderedAt: z.ZodOptional<z.ZodNumber>;
|
|
1208
|
+
shopId: z.ZodOptional<z.ZodString>;
|
|
1209
|
+
shopName: z.ZodOptional<z.ZodString>;
|
|
1134
1210
|
}, "strip", z.ZodTypeAny, {
|
|
1135
1211
|
id: string;
|
|
1136
1212
|
items: {
|
|
@@ -1138,23 +1214,46 @@ export declare const WmsOrderV2Schema: z.ZodObject<{
|
|
|
1138
1214
|
commerceOrderItemId: string;
|
|
1139
1215
|
state?: string | undefined;
|
|
1140
1216
|
quantity?: number | undefined;
|
|
1217
|
+
option?: string | undefined;
|
|
1218
|
+
variantId?: string | undefined;
|
|
1141
1219
|
estimatedShipDate?: string | undefined;
|
|
1142
1220
|
productName?: string | undefined;
|
|
1143
1221
|
packageId?: string | undefined;
|
|
1144
1222
|
invoiceNumber?: string | undefined;
|
|
1145
1223
|
deliveryCompany?: string | undefined;
|
|
1224
|
+
shippingAvailability?: string | undefined;
|
|
1225
|
+
estimatedRestockDate?: string | undefined;
|
|
1226
|
+
barcode?: string | undefined;
|
|
1146
1227
|
}[];
|
|
1147
1228
|
deliveries: {
|
|
1148
1229
|
id: string;
|
|
1149
1230
|
itemIds: string[];
|
|
1150
1231
|
}[];
|
|
1151
1232
|
commerceOrderId: string;
|
|
1233
|
+
shippingAddress?: {
|
|
1234
|
+
email?: string | undefined;
|
|
1235
|
+
countryCode?: string | undefined;
|
|
1236
|
+
address1?: string | undefined;
|
|
1237
|
+
address2?: string | undefined;
|
|
1238
|
+
firstName?: string | undefined;
|
|
1239
|
+
lastName?: string | undefined;
|
|
1240
|
+
phoneNumber?: string | undefined;
|
|
1241
|
+
cellPhoneNumber?: string | undefined;
|
|
1242
|
+
zipcode?: string | undefined;
|
|
1243
|
+
shippingMessage?: string | undefined;
|
|
1244
|
+
country?: string | undefined;
|
|
1245
|
+
city?: string | undefined;
|
|
1246
|
+
province?: string | undefined;
|
|
1247
|
+
} | undefined;
|
|
1248
|
+
shopId?: string | undefined;
|
|
1152
1249
|
buyer?: {
|
|
1153
1250
|
name?: string | undefined;
|
|
1154
1251
|
email?: string | undefined;
|
|
1155
1252
|
phone?: string | undefined;
|
|
1156
1253
|
memberId?: string | undefined;
|
|
1157
1254
|
} | undefined;
|
|
1255
|
+
orderedAt?: number | undefined;
|
|
1256
|
+
shopName?: string | undefined;
|
|
1158
1257
|
}, {
|
|
1159
1258
|
id: string;
|
|
1160
1259
|
items: {
|
|
@@ -1162,23 +1261,46 @@ export declare const WmsOrderV2Schema: z.ZodObject<{
|
|
|
1162
1261
|
commerceOrderItemId: string;
|
|
1163
1262
|
state?: string | undefined;
|
|
1164
1263
|
quantity?: number | undefined;
|
|
1264
|
+
option?: string | undefined;
|
|
1265
|
+
variantId?: string | undefined;
|
|
1165
1266
|
estimatedShipDate?: string | undefined;
|
|
1166
1267
|
productName?: string | undefined;
|
|
1167
1268
|
packageId?: string | undefined;
|
|
1168
1269
|
invoiceNumber?: string | undefined;
|
|
1169
1270
|
deliveryCompany?: string | undefined;
|
|
1271
|
+
shippingAvailability?: string | undefined;
|
|
1272
|
+
estimatedRestockDate?: string | undefined;
|
|
1273
|
+
barcode?: string | undefined;
|
|
1170
1274
|
}[];
|
|
1171
1275
|
deliveries: {
|
|
1172
1276
|
id: string;
|
|
1173
1277
|
itemIds: string[];
|
|
1174
1278
|
}[];
|
|
1175
1279
|
commerceOrderId: string;
|
|
1280
|
+
shippingAddress?: {
|
|
1281
|
+
email?: string | undefined;
|
|
1282
|
+
countryCode?: string | undefined;
|
|
1283
|
+
address1?: string | undefined;
|
|
1284
|
+
address2?: string | undefined;
|
|
1285
|
+
firstName?: string | undefined;
|
|
1286
|
+
lastName?: string | undefined;
|
|
1287
|
+
phoneNumber?: string | undefined;
|
|
1288
|
+
cellPhoneNumber?: string | undefined;
|
|
1289
|
+
zipcode?: string | undefined;
|
|
1290
|
+
shippingMessage?: string | undefined;
|
|
1291
|
+
country?: string | undefined;
|
|
1292
|
+
city?: string | undefined;
|
|
1293
|
+
province?: string | undefined;
|
|
1294
|
+
} | undefined;
|
|
1295
|
+
shopId?: string | undefined;
|
|
1176
1296
|
buyer?: {
|
|
1177
1297
|
name?: string | undefined;
|
|
1178
1298
|
email?: string | undefined;
|
|
1179
1299
|
phone?: string | undefined;
|
|
1180
1300
|
memberId?: string | undefined;
|
|
1181
1301
|
} | undefined;
|
|
1302
|
+
orderedAt?: number | undefined;
|
|
1303
|
+
shopName?: string | undefined;
|
|
1182
1304
|
}>;
|
|
1183
1305
|
export type WmsOrderV2 = ProtoBacked<z.infer<typeof WmsOrderV2Schema>, ProtoWmsOrderV2>;
|
|
1184
1306
|
export declare const WmsIdentifierSchema: z.ZodObject<{
|
|
@@ -1257,26 +1379,41 @@ export declare const WmsOrderGetOrdersOutputSchema: z.ZodObject<{
|
|
|
1257
1379
|
estimatedShipDate: z.ZodOptional<z.ZodString>;
|
|
1258
1380
|
invoiceNumber: z.ZodOptional<z.ZodString>;
|
|
1259
1381
|
deliveryCompany: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
option: z.ZodOptional<z.ZodString>;
|
|
1383
|
+
shippingAvailability: z.ZodOptional<z.ZodString>;
|
|
1384
|
+
estimatedRestockDate: z.ZodOptional<z.ZodString>;
|
|
1385
|
+
variantId: z.ZodOptional<z.ZodString>;
|
|
1386
|
+
barcode: z.ZodOptional<z.ZodString>;
|
|
1260
1387
|
}, "strip", z.ZodTypeAny, {
|
|
1261
1388
|
id: string;
|
|
1262
1389
|
commerceOrderItemId: string;
|
|
1263
1390
|
state?: string | undefined;
|
|
1264
1391
|
quantity?: number | undefined;
|
|
1392
|
+
option?: string | undefined;
|
|
1393
|
+
variantId?: string | undefined;
|
|
1265
1394
|
estimatedShipDate?: string | undefined;
|
|
1266
1395
|
productName?: string | undefined;
|
|
1267
1396
|
packageId?: string | undefined;
|
|
1268
1397
|
invoiceNumber?: string | undefined;
|
|
1269
1398
|
deliveryCompany?: string | undefined;
|
|
1399
|
+
shippingAvailability?: string | undefined;
|
|
1400
|
+
estimatedRestockDate?: string | undefined;
|
|
1401
|
+
barcode?: string | undefined;
|
|
1270
1402
|
}, {
|
|
1271
1403
|
id: string;
|
|
1272
1404
|
commerceOrderItemId: string;
|
|
1273
1405
|
state?: string | undefined;
|
|
1274
1406
|
quantity?: number | undefined;
|
|
1407
|
+
option?: string | undefined;
|
|
1408
|
+
variantId?: string | undefined;
|
|
1275
1409
|
estimatedShipDate?: string | undefined;
|
|
1276
1410
|
productName?: string | undefined;
|
|
1277
1411
|
packageId?: string | undefined;
|
|
1278
1412
|
invoiceNumber?: string | undefined;
|
|
1279
1413
|
deliveryCompany?: string | undefined;
|
|
1414
|
+
shippingAvailability?: string | undefined;
|
|
1415
|
+
estimatedRestockDate?: string | undefined;
|
|
1416
|
+
barcode?: string | undefined;
|
|
1280
1417
|
}>, "many">;
|
|
1281
1418
|
deliveries: z.ZodArray<z.ZodObject<{
|
|
1282
1419
|
id: z.ZodString;
|
|
@@ -1288,6 +1425,52 @@ export declare const WmsOrderGetOrdersOutputSchema: z.ZodObject<{
|
|
|
1288
1425
|
id: string;
|
|
1289
1426
|
itemIds: string[];
|
|
1290
1427
|
}>, "many">;
|
|
1428
|
+
shippingAddress: z.ZodOptional<z.ZodObject<{
|
|
1429
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1432
|
+
email: z.ZodOptional<z.ZodString>;
|
|
1433
|
+
cellPhoneNumber: z.ZodOptional<z.ZodString>;
|
|
1434
|
+
zipcode: z.ZodOptional<z.ZodString>;
|
|
1435
|
+
address1: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
shippingMessage: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1439
|
+
city: z.ZodOptional<z.ZodString>;
|
|
1440
|
+
province: z.ZodOptional<z.ZodString>;
|
|
1441
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
1442
|
+
}, "strip", z.ZodTypeAny, {
|
|
1443
|
+
email?: string | undefined;
|
|
1444
|
+
countryCode?: string | undefined;
|
|
1445
|
+
address1?: string | undefined;
|
|
1446
|
+
address2?: string | undefined;
|
|
1447
|
+
firstName?: string | undefined;
|
|
1448
|
+
lastName?: string | undefined;
|
|
1449
|
+
phoneNumber?: string | undefined;
|
|
1450
|
+
cellPhoneNumber?: string | undefined;
|
|
1451
|
+
zipcode?: string | undefined;
|
|
1452
|
+
shippingMessage?: string | undefined;
|
|
1453
|
+
country?: string | undefined;
|
|
1454
|
+
city?: string | undefined;
|
|
1455
|
+
province?: string | undefined;
|
|
1456
|
+
}, {
|
|
1457
|
+
email?: string | undefined;
|
|
1458
|
+
countryCode?: string | undefined;
|
|
1459
|
+
address1?: string | undefined;
|
|
1460
|
+
address2?: string | undefined;
|
|
1461
|
+
firstName?: string | undefined;
|
|
1462
|
+
lastName?: string | undefined;
|
|
1463
|
+
phoneNumber?: string | undefined;
|
|
1464
|
+
cellPhoneNumber?: string | undefined;
|
|
1465
|
+
zipcode?: string | undefined;
|
|
1466
|
+
shippingMessage?: string | undefined;
|
|
1467
|
+
country?: string | undefined;
|
|
1468
|
+
city?: string | undefined;
|
|
1469
|
+
province?: string | undefined;
|
|
1470
|
+
}>>;
|
|
1471
|
+
orderedAt: z.ZodOptional<z.ZodNumber>;
|
|
1472
|
+
shopId: z.ZodOptional<z.ZodString>;
|
|
1473
|
+
shopName: z.ZodOptional<z.ZodString>;
|
|
1291
1474
|
}, "strip", z.ZodTypeAny, {
|
|
1292
1475
|
id: string;
|
|
1293
1476
|
items: {
|
|
@@ -1295,23 +1478,46 @@ export declare const WmsOrderGetOrdersOutputSchema: z.ZodObject<{
|
|
|
1295
1478
|
commerceOrderItemId: string;
|
|
1296
1479
|
state?: string | undefined;
|
|
1297
1480
|
quantity?: number | undefined;
|
|
1481
|
+
option?: string | undefined;
|
|
1482
|
+
variantId?: string | undefined;
|
|
1298
1483
|
estimatedShipDate?: string | undefined;
|
|
1299
1484
|
productName?: string | undefined;
|
|
1300
1485
|
packageId?: string | undefined;
|
|
1301
1486
|
invoiceNumber?: string | undefined;
|
|
1302
1487
|
deliveryCompany?: string | undefined;
|
|
1488
|
+
shippingAvailability?: string | undefined;
|
|
1489
|
+
estimatedRestockDate?: string | undefined;
|
|
1490
|
+
barcode?: string | undefined;
|
|
1303
1491
|
}[];
|
|
1304
1492
|
deliveries: {
|
|
1305
1493
|
id: string;
|
|
1306
1494
|
itemIds: string[];
|
|
1307
1495
|
}[];
|
|
1308
1496
|
commerceOrderId: string;
|
|
1497
|
+
shippingAddress?: {
|
|
1498
|
+
email?: string | undefined;
|
|
1499
|
+
countryCode?: string | undefined;
|
|
1500
|
+
address1?: string | undefined;
|
|
1501
|
+
address2?: string | undefined;
|
|
1502
|
+
firstName?: string | undefined;
|
|
1503
|
+
lastName?: string | undefined;
|
|
1504
|
+
phoneNumber?: string | undefined;
|
|
1505
|
+
cellPhoneNumber?: string | undefined;
|
|
1506
|
+
zipcode?: string | undefined;
|
|
1507
|
+
shippingMessage?: string | undefined;
|
|
1508
|
+
country?: string | undefined;
|
|
1509
|
+
city?: string | undefined;
|
|
1510
|
+
province?: string | undefined;
|
|
1511
|
+
} | undefined;
|
|
1512
|
+
shopId?: string | undefined;
|
|
1309
1513
|
buyer?: {
|
|
1310
1514
|
name?: string | undefined;
|
|
1311
1515
|
email?: string | undefined;
|
|
1312
1516
|
phone?: string | undefined;
|
|
1313
1517
|
memberId?: string | undefined;
|
|
1314
1518
|
} | undefined;
|
|
1519
|
+
orderedAt?: number | undefined;
|
|
1520
|
+
shopName?: string | undefined;
|
|
1315
1521
|
}, {
|
|
1316
1522
|
id: string;
|
|
1317
1523
|
items: {
|
|
@@ -1319,23 +1525,46 @@ export declare const WmsOrderGetOrdersOutputSchema: z.ZodObject<{
|
|
|
1319
1525
|
commerceOrderItemId: string;
|
|
1320
1526
|
state?: string | undefined;
|
|
1321
1527
|
quantity?: number | undefined;
|
|
1528
|
+
option?: string | undefined;
|
|
1529
|
+
variantId?: string | undefined;
|
|
1322
1530
|
estimatedShipDate?: string | undefined;
|
|
1323
1531
|
productName?: string | undefined;
|
|
1324
1532
|
packageId?: string | undefined;
|
|
1325
1533
|
invoiceNumber?: string | undefined;
|
|
1326
1534
|
deliveryCompany?: string | undefined;
|
|
1535
|
+
shippingAvailability?: string | undefined;
|
|
1536
|
+
estimatedRestockDate?: string | undefined;
|
|
1537
|
+
barcode?: string | undefined;
|
|
1327
1538
|
}[];
|
|
1328
1539
|
deliveries: {
|
|
1329
1540
|
id: string;
|
|
1330
1541
|
itemIds: string[];
|
|
1331
1542
|
}[];
|
|
1332
1543
|
commerceOrderId: string;
|
|
1544
|
+
shippingAddress?: {
|
|
1545
|
+
email?: string | undefined;
|
|
1546
|
+
countryCode?: string | undefined;
|
|
1547
|
+
address1?: string | undefined;
|
|
1548
|
+
address2?: string | undefined;
|
|
1549
|
+
firstName?: string | undefined;
|
|
1550
|
+
lastName?: string | undefined;
|
|
1551
|
+
phoneNumber?: string | undefined;
|
|
1552
|
+
cellPhoneNumber?: string | undefined;
|
|
1553
|
+
zipcode?: string | undefined;
|
|
1554
|
+
shippingMessage?: string | undefined;
|
|
1555
|
+
country?: string | undefined;
|
|
1556
|
+
city?: string | undefined;
|
|
1557
|
+
province?: string | undefined;
|
|
1558
|
+
} | undefined;
|
|
1559
|
+
shopId?: string | undefined;
|
|
1333
1560
|
buyer?: {
|
|
1334
1561
|
name?: string | undefined;
|
|
1335
1562
|
email?: string | undefined;
|
|
1336
1563
|
phone?: string | undefined;
|
|
1337
1564
|
memberId?: string | undefined;
|
|
1338
1565
|
} | undefined;
|
|
1566
|
+
orderedAt?: number | undefined;
|
|
1567
|
+
shopName?: string | undefined;
|
|
1339
1568
|
}>, "many">;
|
|
1340
1569
|
next: z.ZodOptional<z.ZodString>;
|
|
1341
1570
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1346,23 +1575,46 @@ export declare const WmsOrderGetOrdersOutputSchema: z.ZodObject<{
|
|
|
1346
1575
|
commerceOrderItemId: string;
|
|
1347
1576
|
state?: string | undefined;
|
|
1348
1577
|
quantity?: number | undefined;
|
|
1578
|
+
option?: string | undefined;
|
|
1579
|
+
variantId?: string | undefined;
|
|
1349
1580
|
estimatedShipDate?: string | undefined;
|
|
1350
1581
|
productName?: string | undefined;
|
|
1351
1582
|
packageId?: string | undefined;
|
|
1352
1583
|
invoiceNumber?: string | undefined;
|
|
1353
1584
|
deliveryCompany?: string | undefined;
|
|
1585
|
+
shippingAvailability?: string | undefined;
|
|
1586
|
+
estimatedRestockDate?: string | undefined;
|
|
1587
|
+
barcode?: string | undefined;
|
|
1354
1588
|
}[];
|
|
1355
1589
|
deliveries: {
|
|
1356
1590
|
id: string;
|
|
1357
1591
|
itemIds: string[];
|
|
1358
1592
|
}[];
|
|
1359
1593
|
commerceOrderId: string;
|
|
1594
|
+
shippingAddress?: {
|
|
1595
|
+
email?: string | undefined;
|
|
1596
|
+
countryCode?: string | undefined;
|
|
1597
|
+
address1?: string | undefined;
|
|
1598
|
+
address2?: string | undefined;
|
|
1599
|
+
firstName?: string | undefined;
|
|
1600
|
+
lastName?: string | undefined;
|
|
1601
|
+
phoneNumber?: string | undefined;
|
|
1602
|
+
cellPhoneNumber?: string | undefined;
|
|
1603
|
+
zipcode?: string | undefined;
|
|
1604
|
+
shippingMessage?: string | undefined;
|
|
1605
|
+
country?: string | undefined;
|
|
1606
|
+
city?: string | undefined;
|
|
1607
|
+
province?: string | undefined;
|
|
1608
|
+
} | undefined;
|
|
1609
|
+
shopId?: string | undefined;
|
|
1360
1610
|
buyer?: {
|
|
1361
1611
|
name?: string | undefined;
|
|
1362
1612
|
email?: string | undefined;
|
|
1363
1613
|
phone?: string | undefined;
|
|
1364
1614
|
memberId?: string | undefined;
|
|
1365
1615
|
} | undefined;
|
|
1616
|
+
orderedAt?: number | undefined;
|
|
1617
|
+
shopName?: string | undefined;
|
|
1366
1618
|
}[];
|
|
1367
1619
|
next?: string | undefined;
|
|
1368
1620
|
}, {
|
|
@@ -1373,23 +1625,46 @@ export declare const WmsOrderGetOrdersOutputSchema: z.ZodObject<{
|
|
|
1373
1625
|
commerceOrderItemId: string;
|
|
1374
1626
|
state?: string | undefined;
|
|
1375
1627
|
quantity?: number | undefined;
|
|
1628
|
+
option?: string | undefined;
|
|
1629
|
+
variantId?: string | undefined;
|
|
1376
1630
|
estimatedShipDate?: string | undefined;
|
|
1377
1631
|
productName?: string | undefined;
|
|
1378
1632
|
packageId?: string | undefined;
|
|
1379
1633
|
invoiceNumber?: string | undefined;
|
|
1380
1634
|
deliveryCompany?: string | undefined;
|
|
1635
|
+
shippingAvailability?: string | undefined;
|
|
1636
|
+
estimatedRestockDate?: string | undefined;
|
|
1637
|
+
barcode?: string | undefined;
|
|
1381
1638
|
}[];
|
|
1382
1639
|
deliveries: {
|
|
1383
1640
|
id: string;
|
|
1384
1641
|
itemIds: string[];
|
|
1385
1642
|
}[];
|
|
1386
1643
|
commerceOrderId: string;
|
|
1644
|
+
shippingAddress?: {
|
|
1645
|
+
email?: string | undefined;
|
|
1646
|
+
countryCode?: string | undefined;
|
|
1647
|
+
address1?: string | undefined;
|
|
1648
|
+
address2?: string | undefined;
|
|
1649
|
+
firstName?: string | undefined;
|
|
1650
|
+
lastName?: string | undefined;
|
|
1651
|
+
phoneNumber?: string | undefined;
|
|
1652
|
+
cellPhoneNumber?: string | undefined;
|
|
1653
|
+
zipcode?: string | undefined;
|
|
1654
|
+
shippingMessage?: string | undefined;
|
|
1655
|
+
country?: string | undefined;
|
|
1656
|
+
city?: string | undefined;
|
|
1657
|
+
province?: string | undefined;
|
|
1658
|
+
} | undefined;
|
|
1659
|
+
shopId?: string | undefined;
|
|
1387
1660
|
buyer?: {
|
|
1388
1661
|
name?: string | undefined;
|
|
1389
1662
|
email?: string | undefined;
|
|
1390
1663
|
phone?: string | undefined;
|
|
1391
1664
|
memberId?: string | undefined;
|
|
1392
1665
|
} | undefined;
|
|
1666
|
+
orderedAt?: number | undefined;
|
|
1667
|
+
shopName?: string | undefined;
|
|
1393
1668
|
}[];
|
|
1394
1669
|
next?: string | undefined;
|
|
1395
1670
|
}>;
|
|
@@ -1554,7 +1829,7 @@ export declare const WmsOrderExchangeInputSchema: z.ZodObject<{
|
|
|
1554
1829
|
reason: z.ZodOptional<z.ZodString>;
|
|
1555
1830
|
memo: z.ZodOptional<z.ZodString>;
|
|
1556
1831
|
} & {
|
|
1557
|
-
|
|
1832
|
+
beforeExchangeItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1558
1833
|
id: z.ZodString;
|
|
1559
1834
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
1560
1835
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1564,6 +1839,20 @@ export declare const WmsOrderExchangeInputSchema: z.ZodObject<{
|
|
|
1564
1839
|
id: string;
|
|
1565
1840
|
quantity?: number | undefined;
|
|
1566
1841
|
}>, "many">>;
|
|
1842
|
+
afterExchangeItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1843
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
1844
|
+
} & {
|
|
1845
|
+
variantId: z.ZodString;
|
|
1846
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
1847
|
+
}, "strip", z.ZodTypeAny, {
|
|
1848
|
+
variantId: string;
|
|
1849
|
+
quantity?: number | undefined;
|
|
1850
|
+
productId?: string | undefined;
|
|
1851
|
+
}, {
|
|
1852
|
+
variantId: string;
|
|
1853
|
+
quantity?: number | undefined;
|
|
1854
|
+
productId?: string | undefined;
|
|
1855
|
+
}>, "many">>;
|
|
1567
1856
|
}, "strip", z.ZodTypeAny, {
|
|
1568
1857
|
orderIds: string[];
|
|
1569
1858
|
reason?: string | undefined;
|
|
@@ -1572,10 +1861,15 @@ export declare const WmsOrderExchangeInputSchema: z.ZodObject<{
|
|
|
1572
1861
|
type: "email" | "phone" | "membership";
|
|
1573
1862
|
value: string;
|
|
1574
1863
|
} | undefined;
|
|
1575
|
-
|
|
1864
|
+
beforeExchangeItems?: {
|
|
1576
1865
|
id: string;
|
|
1577
1866
|
quantity?: number | undefined;
|
|
1578
1867
|
}[] | undefined;
|
|
1868
|
+
afterExchangeItems?: {
|
|
1869
|
+
variantId: string;
|
|
1870
|
+
quantity?: number | undefined;
|
|
1871
|
+
productId?: string | undefined;
|
|
1872
|
+
}[] | undefined;
|
|
1579
1873
|
}, {
|
|
1580
1874
|
orderIds: string[];
|
|
1581
1875
|
reason?: string | undefined;
|
|
@@ -1584,12 +1878,254 @@ export declare const WmsOrderExchangeInputSchema: z.ZodObject<{
|
|
|
1584
1878
|
type: "email" | "phone" | "membership";
|
|
1585
1879
|
value: string;
|
|
1586
1880
|
} | undefined;
|
|
1587
|
-
|
|
1881
|
+
beforeExchangeItems?: {
|
|
1588
1882
|
id: string;
|
|
1589
1883
|
quantity?: number | undefined;
|
|
1590
1884
|
}[] | undefined;
|
|
1885
|
+
afterExchangeItems?: {
|
|
1886
|
+
variantId: string;
|
|
1887
|
+
quantity?: number | undefined;
|
|
1888
|
+
productId?: string | undefined;
|
|
1889
|
+
}[] | undefined;
|
|
1591
1890
|
}>;
|
|
1592
1891
|
export type WmsOrderExchangeInput = ProtoBacked<z.infer<typeof WmsOrderExchangeInputSchema>, ProtoWmsOrderExchangeRequest>;
|
|
1892
|
+
export declare const WmsOrderGetExchangeableItemsInputSchema: z.ZodObject<{
|
|
1893
|
+
identifier: z.ZodOptional<z.ZodObject<{
|
|
1894
|
+
type: z.ZodEnum<["membership", "phone", "email"]>;
|
|
1895
|
+
value: z.ZodString;
|
|
1896
|
+
}, "strip", z.ZodTypeAny, {
|
|
1897
|
+
type: "email" | "phone" | "membership";
|
|
1898
|
+
value: string;
|
|
1899
|
+
}, {
|
|
1900
|
+
type: "email" | "phone" | "membership";
|
|
1901
|
+
value: string;
|
|
1902
|
+
}>>;
|
|
1903
|
+
orderId: z.ZodString;
|
|
1904
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1905
|
+
id: z.ZodString;
|
|
1906
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
1907
|
+
}, "strip", z.ZodTypeAny, {
|
|
1908
|
+
id: string;
|
|
1909
|
+
quantity?: number | undefined;
|
|
1910
|
+
}, {
|
|
1911
|
+
id: string;
|
|
1912
|
+
quantity?: number | undefined;
|
|
1913
|
+
}>, "many">>;
|
|
1914
|
+
}, "strip", z.ZodTypeAny, {
|
|
1915
|
+
orderId: string;
|
|
1916
|
+
items?: {
|
|
1917
|
+
id: string;
|
|
1918
|
+
quantity?: number | undefined;
|
|
1919
|
+
}[] | undefined;
|
|
1920
|
+
identifier?: {
|
|
1921
|
+
type: "email" | "phone" | "membership";
|
|
1922
|
+
value: string;
|
|
1923
|
+
} | undefined;
|
|
1924
|
+
}, {
|
|
1925
|
+
orderId: string;
|
|
1926
|
+
items?: {
|
|
1927
|
+
id: string;
|
|
1928
|
+
quantity?: number | undefined;
|
|
1929
|
+
}[] | undefined;
|
|
1930
|
+
identifier?: {
|
|
1931
|
+
type: "email" | "phone" | "membership";
|
|
1932
|
+
value: string;
|
|
1933
|
+
} | undefined;
|
|
1934
|
+
}>;
|
|
1935
|
+
export type WmsOrderGetExchangeableItemsInput = ProtoBacked<z.infer<typeof WmsOrderGetExchangeableItemsInputSchema>, ProtoWmsOrderGetExchangeableItemsRequest>;
|
|
1936
|
+
export declare const WmsVariantOptionSchema: z.ZodObject<{
|
|
1937
|
+
name: z.ZodString;
|
|
1938
|
+
value: z.ZodString;
|
|
1939
|
+
}, "strip", z.ZodTypeAny, {
|
|
1940
|
+
value: string;
|
|
1941
|
+
name: string;
|
|
1942
|
+
}, {
|
|
1943
|
+
value: string;
|
|
1944
|
+
name: string;
|
|
1945
|
+
}>;
|
|
1946
|
+
export type WmsVariantOption = ProtoBacked<z.infer<typeof WmsVariantOptionSchema>, ProtoWmsVariantOption>;
|
|
1947
|
+
export declare const WmsExchangeableVariantSchema: z.ZodObject<{
|
|
1948
|
+
id: z.ZodString;
|
|
1949
|
+
additionalAmount: z.ZodOptional<z.ZodNumber>;
|
|
1950
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1951
|
+
name: z.ZodString;
|
|
1952
|
+
value: z.ZodString;
|
|
1953
|
+
}, "strip", z.ZodTypeAny, {
|
|
1954
|
+
value: string;
|
|
1955
|
+
name: string;
|
|
1956
|
+
}, {
|
|
1957
|
+
value: string;
|
|
1958
|
+
name: string;
|
|
1959
|
+
}>, "many">>;
|
|
1960
|
+
stockQuantity: z.ZodOptional<z.ZodNumber>;
|
|
1961
|
+
}, "strip", z.ZodTypeAny, {
|
|
1962
|
+
id: string;
|
|
1963
|
+
options?: {
|
|
1964
|
+
value: string;
|
|
1965
|
+
name: string;
|
|
1966
|
+
}[] | undefined;
|
|
1967
|
+
additionalAmount?: number | undefined;
|
|
1968
|
+
stockQuantity?: number | undefined;
|
|
1969
|
+
}, {
|
|
1970
|
+
id: string;
|
|
1971
|
+
options?: {
|
|
1972
|
+
value: string;
|
|
1973
|
+
name: string;
|
|
1974
|
+
}[] | undefined;
|
|
1975
|
+
additionalAmount?: number | undefined;
|
|
1976
|
+
stockQuantity?: number | undefined;
|
|
1977
|
+
}>;
|
|
1978
|
+
export type WmsExchangeableVariant = ProtoBacked<z.infer<typeof WmsExchangeableVariantSchema>, ProtoWmsExchangeableVariant>;
|
|
1979
|
+
export declare const WmsExchangeableItemSchema: z.ZodObject<{
|
|
1980
|
+
id: z.ZodString;
|
|
1981
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
1982
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1983
|
+
id: z.ZodString;
|
|
1984
|
+
additionalAmount: z.ZodOptional<z.ZodNumber>;
|
|
1985
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1986
|
+
name: z.ZodString;
|
|
1987
|
+
value: z.ZodString;
|
|
1988
|
+
}, "strip", z.ZodTypeAny, {
|
|
1989
|
+
value: string;
|
|
1990
|
+
name: string;
|
|
1991
|
+
}, {
|
|
1992
|
+
value: string;
|
|
1993
|
+
name: string;
|
|
1994
|
+
}>, "many">>;
|
|
1995
|
+
stockQuantity: z.ZodOptional<z.ZodNumber>;
|
|
1996
|
+
}, "strip", z.ZodTypeAny, {
|
|
1997
|
+
id: string;
|
|
1998
|
+
options?: {
|
|
1999
|
+
value: string;
|
|
2000
|
+
name: string;
|
|
2001
|
+
}[] | undefined;
|
|
2002
|
+
additionalAmount?: number | undefined;
|
|
2003
|
+
stockQuantity?: number | undefined;
|
|
2004
|
+
}, {
|
|
2005
|
+
id: string;
|
|
2006
|
+
options?: {
|
|
2007
|
+
value: string;
|
|
2008
|
+
name: string;
|
|
2009
|
+
}[] | undefined;
|
|
2010
|
+
additionalAmount?: number | undefined;
|
|
2011
|
+
stockQuantity?: number | undefined;
|
|
2012
|
+
}>, "many">>;
|
|
2013
|
+
}, "strip", z.ZodTypeAny, {
|
|
2014
|
+
id: string;
|
|
2015
|
+
productId?: string | undefined;
|
|
2016
|
+
variants?: {
|
|
2017
|
+
id: string;
|
|
2018
|
+
options?: {
|
|
2019
|
+
value: string;
|
|
2020
|
+
name: string;
|
|
2021
|
+
}[] | undefined;
|
|
2022
|
+
additionalAmount?: number | undefined;
|
|
2023
|
+
stockQuantity?: number | undefined;
|
|
2024
|
+
}[] | undefined;
|
|
2025
|
+
}, {
|
|
2026
|
+
id: string;
|
|
2027
|
+
productId?: string | undefined;
|
|
2028
|
+
variants?: {
|
|
2029
|
+
id: string;
|
|
2030
|
+
options?: {
|
|
2031
|
+
value: string;
|
|
2032
|
+
name: string;
|
|
2033
|
+
}[] | undefined;
|
|
2034
|
+
additionalAmount?: number | undefined;
|
|
2035
|
+
stockQuantity?: number | undefined;
|
|
2036
|
+
}[] | undefined;
|
|
2037
|
+
}>;
|
|
2038
|
+
export type WmsExchangeableItem = ProtoBacked<z.infer<typeof WmsExchangeableItemSchema>, ProtoWmsExchangeableItem>;
|
|
2039
|
+
export declare const WmsOrderGetExchangeableItemsOutputSchema: z.ZodObject<{
|
|
2040
|
+
exchangeableItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2041
|
+
id: z.ZodString;
|
|
2042
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2044
|
+
id: z.ZodString;
|
|
2045
|
+
additionalAmount: z.ZodOptional<z.ZodNumber>;
|
|
2046
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2047
|
+
name: z.ZodString;
|
|
2048
|
+
value: z.ZodString;
|
|
2049
|
+
}, "strip", z.ZodTypeAny, {
|
|
2050
|
+
value: string;
|
|
2051
|
+
name: string;
|
|
2052
|
+
}, {
|
|
2053
|
+
value: string;
|
|
2054
|
+
name: string;
|
|
2055
|
+
}>, "many">>;
|
|
2056
|
+
stockQuantity: z.ZodOptional<z.ZodNumber>;
|
|
2057
|
+
}, "strip", z.ZodTypeAny, {
|
|
2058
|
+
id: string;
|
|
2059
|
+
options?: {
|
|
2060
|
+
value: string;
|
|
2061
|
+
name: string;
|
|
2062
|
+
}[] | undefined;
|
|
2063
|
+
additionalAmount?: number | undefined;
|
|
2064
|
+
stockQuantity?: number | undefined;
|
|
2065
|
+
}, {
|
|
2066
|
+
id: string;
|
|
2067
|
+
options?: {
|
|
2068
|
+
value: string;
|
|
2069
|
+
name: string;
|
|
2070
|
+
}[] | undefined;
|
|
2071
|
+
additionalAmount?: number | undefined;
|
|
2072
|
+
stockQuantity?: number | undefined;
|
|
2073
|
+
}>, "many">>;
|
|
2074
|
+
}, "strip", z.ZodTypeAny, {
|
|
2075
|
+
id: string;
|
|
2076
|
+
productId?: string | undefined;
|
|
2077
|
+
variants?: {
|
|
2078
|
+
id: string;
|
|
2079
|
+
options?: {
|
|
2080
|
+
value: string;
|
|
2081
|
+
name: string;
|
|
2082
|
+
}[] | undefined;
|
|
2083
|
+
additionalAmount?: number | undefined;
|
|
2084
|
+
stockQuantity?: number | undefined;
|
|
2085
|
+
}[] | undefined;
|
|
2086
|
+
}, {
|
|
2087
|
+
id: string;
|
|
2088
|
+
productId?: string | undefined;
|
|
2089
|
+
variants?: {
|
|
2090
|
+
id: string;
|
|
2091
|
+
options?: {
|
|
2092
|
+
value: string;
|
|
2093
|
+
name: string;
|
|
2094
|
+
}[] | undefined;
|
|
2095
|
+
additionalAmount?: number | undefined;
|
|
2096
|
+
stockQuantity?: number | undefined;
|
|
2097
|
+
}[] | undefined;
|
|
2098
|
+
}>, "many">>;
|
|
2099
|
+
}, "strip", z.ZodTypeAny, {
|
|
2100
|
+
exchangeableItems?: {
|
|
2101
|
+
id: string;
|
|
2102
|
+
productId?: string | undefined;
|
|
2103
|
+
variants?: {
|
|
2104
|
+
id: string;
|
|
2105
|
+
options?: {
|
|
2106
|
+
value: string;
|
|
2107
|
+
name: string;
|
|
2108
|
+
}[] | undefined;
|
|
2109
|
+
additionalAmount?: number | undefined;
|
|
2110
|
+
stockQuantity?: number | undefined;
|
|
2111
|
+
}[] | undefined;
|
|
2112
|
+
}[] | undefined;
|
|
2113
|
+
}, {
|
|
2114
|
+
exchangeableItems?: {
|
|
2115
|
+
id: string;
|
|
2116
|
+
productId?: string | undefined;
|
|
2117
|
+
variants?: {
|
|
2118
|
+
id: string;
|
|
2119
|
+
options?: {
|
|
2120
|
+
value: string;
|
|
2121
|
+
name: string;
|
|
2122
|
+
}[] | undefined;
|
|
2123
|
+
additionalAmount?: number | undefined;
|
|
2124
|
+
stockQuantity?: number | undefined;
|
|
2125
|
+
}[] | undefined;
|
|
2126
|
+
}[] | undefined;
|
|
2127
|
+
}>;
|
|
2128
|
+
export type WmsOrderGetExchangeableItemsOutput = ProtoBacked<z.infer<typeof WmsOrderGetExchangeableItemsOutputSchema>, ProtoWmsOrderGetExchangeableItemsResult>;
|
|
1593
2129
|
export declare const WmsOrderActionOutputSchema: z.ZodObject<{
|
|
1594
2130
|
result: z.ZodObject<{
|
|
1595
2131
|
success: z.ZodBoolean;
|
|
@@ -2296,6 +2832,70 @@ export declare const WmsAppCapabilitiesSchema: z.ZodObject<{
|
|
|
2296
2832
|
description?: string | undefined;
|
|
2297
2833
|
}> | undefined;
|
|
2298
2834
|
}>>;
|
|
2835
|
+
getExchangeableItemsOptions: z.ZodOptional<z.ZodObject<{
|
|
2836
|
+
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2837
|
+
optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2838
|
+
fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2839
|
+
type: z.ZodLiteral<"enum">;
|
|
2840
|
+
allowedValues: z.ZodArray<z.ZodObject<{
|
|
2841
|
+
value: z.ZodString;
|
|
2842
|
+
label: z.ZodString;
|
|
2843
|
+
}, "strip", z.ZodTypeAny, {
|
|
2844
|
+
value: string;
|
|
2845
|
+
label: string;
|
|
2846
|
+
}, {
|
|
2847
|
+
value: string;
|
|
2848
|
+
label: string;
|
|
2849
|
+
}>, "many">;
|
|
2850
|
+
}, "strip", z.ZodTypeAny, {
|
|
2851
|
+
type: "enum";
|
|
2852
|
+
allowedValues: {
|
|
2853
|
+
value: string;
|
|
2854
|
+
label: string;
|
|
2855
|
+
}[];
|
|
2856
|
+
}, {
|
|
2857
|
+
type: "enum";
|
|
2858
|
+
allowedValues: {
|
|
2859
|
+
value: string;
|
|
2860
|
+
label: string;
|
|
2861
|
+
}[];
|
|
2862
|
+
}>, z.ZodObject<{
|
|
2863
|
+
type: z.ZodLiteral<"freeform">;
|
|
2864
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2865
|
+
}, "strip", z.ZodTypeAny, {
|
|
2866
|
+
type: "freeform";
|
|
2867
|
+
description?: string | undefined;
|
|
2868
|
+
}, {
|
|
2869
|
+
type: "freeform";
|
|
2870
|
+
description?: string | undefined;
|
|
2871
|
+
}>]>>>;
|
|
2872
|
+
}, "strip", z.ZodTypeAny, {
|
|
2873
|
+
required?: string[] | undefined;
|
|
2874
|
+
optional?: string[] | undefined;
|
|
2875
|
+
fieldConfigs?: Record<string, {
|
|
2876
|
+
type: "enum";
|
|
2877
|
+
allowedValues: {
|
|
2878
|
+
value: string;
|
|
2879
|
+
label: string;
|
|
2880
|
+
}[];
|
|
2881
|
+
} | {
|
|
2882
|
+
type: "freeform";
|
|
2883
|
+
description?: string | undefined;
|
|
2884
|
+
}> | undefined;
|
|
2885
|
+
}, {
|
|
2886
|
+
required?: string[] | undefined;
|
|
2887
|
+
optional?: string[] | undefined;
|
|
2888
|
+
fieldConfigs?: Record<string, {
|
|
2889
|
+
type: "enum";
|
|
2890
|
+
allowedValues: {
|
|
2891
|
+
value: string;
|
|
2892
|
+
label: string;
|
|
2893
|
+
}[];
|
|
2894
|
+
} | {
|
|
2895
|
+
type: "freeform";
|
|
2896
|
+
description?: string | undefined;
|
|
2897
|
+
}> | undefined;
|
|
2898
|
+
}>>;
|
|
2299
2899
|
}, "strip", z.ZodTypeAny, {
|
|
2300
2900
|
getOrdersOptions?: {
|
|
2301
2901
|
required?: string[] | undefined;
|
|
@@ -2409,6 +3009,20 @@ export declare const WmsAppCapabilitiesSchema: z.ZodObject<{
|
|
|
2409
3009
|
description?: string | undefined;
|
|
2410
3010
|
}> | undefined;
|
|
2411
3011
|
} | undefined;
|
|
3012
|
+
getExchangeableItemsOptions?: {
|
|
3013
|
+
required?: string[] | undefined;
|
|
3014
|
+
optional?: string[] | undefined;
|
|
3015
|
+
fieldConfigs?: Record<string, {
|
|
3016
|
+
type: "enum";
|
|
3017
|
+
allowedValues: {
|
|
3018
|
+
value: string;
|
|
3019
|
+
label: string;
|
|
3020
|
+
}[];
|
|
3021
|
+
} | {
|
|
3022
|
+
type: "freeform";
|
|
3023
|
+
description?: string | undefined;
|
|
3024
|
+
}> | undefined;
|
|
3025
|
+
} | undefined;
|
|
2412
3026
|
}, {
|
|
2413
3027
|
getOrdersOptions?: {
|
|
2414
3028
|
required?: string[] | undefined;
|
|
@@ -2522,6 +3136,20 @@ export declare const WmsAppCapabilitiesSchema: z.ZodObject<{
|
|
|
2522
3136
|
description?: string | undefined;
|
|
2523
3137
|
}> | undefined;
|
|
2524
3138
|
} | undefined;
|
|
3139
|
+
getExchangeableItemsOptions?: {
|
|
3140
|
+
required?: string[] | undefined;
|
|
3141
|
+
optional?: string[] | undefined;
|
|
3142
|
+
fieldConfigs?: Record<string, {
|
|
3143
|
+
type: "enum";
|
|
3144
|
+
allowedValues: {
|
|
3145
|
+
value: string;
|
|
3146
|
+
label: string;
|
|
3147
|
+
}[];
|
|
3148
|
+
} | {
|
|
3149
|
+
type: "freeform";
|
|
3150
|
+
description?: string | undefined;
|
|
3151
|
+
}> | undefined;
|
|
3152
|
+
} | undefined;
|
|
2525
3153
|
}>;
|
|
2526
3154
|
export type WmsAppCapabilities = ProtoBacked<z.infer<typeof WmsAppCapabilitiesSchema>, ProtoWmsAppCapabilities>;
|
|
2527
3155
|
export declare const WmsGetAppConfigsInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
@@ -3040,6 +3668,70 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
|
|
|
3040
3668
|
description?: string | undefined;
|
|
3041
3669
|
}> | undefined;
|
|
3042
3670
|
}>>;
|
|
3671
|
+
getExchangeableItemsOptions: z.ZodOptional<z.ZodObject<{
|
|
3672
|
+
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3673
|
+
optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3674
|
+
fieldConfigs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3675
|
+
type: z.ZodLiteral<"enum">;
|
|
3676
|
+
allowedValues: z.ZodArray<z.ZodObject<{
|
|
3677
|
+
value: z.ZodString;
|
|
3678
|
+
label: z.ZodString;
|
|
3679
|
+
}, "strip", z.ZodTypeAny, {
|
|
3680
|
+
value: string;
|
|
3681
|
+
label: string;
|
|
3682
|
+
}, {
|
|
3683
|
+
value: string;
|
|
3684
|
+
label: string;
|
|
3685
|
+
}>, "many">;
|
|
3686
|
+
}, "strip", z.ZodTypeAny, {
|
|
3687
|
+
type: "enum";
|
|
3688
|
+
allowedValues: {
|
|
3689
|
+
value: string;
|
|
3690
|
+
label: string;
|
|
3691
|
+
}[];
|
|
3692
|
+
}, {
|
|
3693
|
+
type: "enum";
|
|
3694
|
+
allowedValues: {
|
|
3695
|
+
value: string;
|
|
3696
|
+
label: string;
|
|
3697
|
+
}[];
|
|
3698
|
+
}>, z.ZodObject<{
|
|
3699
|
+
type: z.ZodLiteral<"freeform">;
|
|
3700
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3701
|
+
}, "strip", z.ZodTypeAny, {
|
|
3702
|
+
type: "freeform";
|
|
3703
|
+
description?: string | undefined;
|
|
3704
|
+
}, {
|
|
3705
|
+
type: "freeform";
|
|
3706
|
+
description?: string | undefined;
|
|
3707
|
+
}>]>>>;
|
|
3708
|
+
}, "strip", z.ZodTypeAny, {
|
|
3709
|
+
required?: string[] | undefined;
|
|
3710
|
+
optional?: string[] | undefined;
|
|
3711
|
+
fieldConfigs?: Record<string, {
|
|
3712
|
+
type: "enum";
|
|
3713
|
+
allowedValues: {
|
|
3714
|
+
value: string;
|
|
3715
|
+
label: string;
|
|
3716
|
+
}[];
|
|
3717
|
+
} | {
|
|
3718
|
+
type: "freeform";
|
|
3719
|
+
description?: string | undefined;
|
|
3720
|
+
}> | undefined;
|
|
3721
|
+
}, {
|
|
3722
|
+
required?: string[] | undefined;
|
|
3723
|
+
optional?: string[] | undefined;
|
|
3724
|
+
fieldConfigs?: Record<string, {
|
|
3725
|
+
type: "enum";
|
|
3726
|
+
allowedValues: {
|
|
3727
|
+
value: string;
|
|
3728
|
+
label: string;
|
|
3729
|
+
}[];
|
|
3730
|
+
} | {
|
|
3731
|
+
type: "freeform";
|
|
3732
|
+
description?: string | undefined;
|
|
3733
|
+
}> | undefined;
|
|
3734
|
+
}>>;
|
|
3043
3735
|
}, "strip", z.ZodTypeAny, {
|
|
3044
3736
|
getOrdersOptions?: {
|
|
3045
3737
|
required?: string[] | undefined;
|
|
@@ -3153,6 +3845,20 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
|
|
|
3153
3845
|
description?: string | undefined;
|
|
3154
3846
|
}> | undefined;
|
|
3155
3847
|
} | undefined;
|
|
3848
|
+
getExchangeableItemsOptions?: {
|
|
3849
|
+
required?: string[] | undefined;
|
|
3850
|
+
optional?: string[] | undefined;
|
|
3851
|
+
fieldConfigs?: Record<string, {
|
|
3852
|
+
type: "enum";
|
|
3853
|
+
allowedValues: {
|
|
3854
|
+
value: string;
|
|
3855
|
+
label: string;
|
|
3856
|
+
}[];
|
|
3857
|
+
} | {
|
|
3858
|
+
type: "freeform";
|
|
3859
|
+
description?: string | undefined;
|
|
3860
|
+
}> | undefined;
|
|
3861
|
+
} | undefined;
|
|
3156
3862
|
}, {
|
|
3157
3863
|
getOrdersOptions?: {
|
|
3158
3864
|
required?: string[] | undefined;
|
|
@@ -3266,6 +3972,20 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
|
|
|
3266
3972
|
description?: string | undefined;
|
|
3267
3973
|
}> | undefined;
|
|
3268
3974
|
} | undefined;
|
|
3975
|
+
getExchangeableItemsOptions?: {
|
|
3976
|
+
required?: string[] | undefined;
|
|
3977
|
+
optional?: string[] | undefined;
|
|
3978
|
+
fieldConfigs?: Record<string, {
|
|
3979
|
+
type: "enum";
|
|
3980
|
+
allowedValues: {
|
|
3981
|
+
value: string;
|
|
3982
|
+
label: string;
|
|
3983
|
+
}[];
|
|
3984
|
+
} | {
|
|
3985
|
+
type: "freeform";
|
|
3986
|
+
description?: string | undefined;
|
|
3987
|
+
}> | undefined;
|
|
3988
|
+
} | undefined;
|
|
3269
3989
|
}>>;
|
|
3270
3990
|
}, "strip", z.ZodTypeAny, {
|
|
3271
3991
|
appCapabilities?: {
|
|
@@ -3381,6 +4101,20 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
|
|
|
3381
4101
|
description?: string | undefined;
|
|
3382
4102
|
}> | undefined;
|
|
3383
4103
|
} | undefined;
|
|
4104
|
+
getExchangeableItemsOptions?: {
|
|
4105
|
+
required?: string[] | undefined;
|
|
4106
|
+
optional?: string[] | undefined;
|
|
4107
|
+
fieldConfigs?: Record<string, {
|
|
4108
|
+
type: "enum";
|
|
4109
|
+
allowedValues: {
|
|
4110
|
+
value: string;
|
|
4111
|
+
label: string;
|
|
4112
|
+
}[];
|
|
4113
|
+
} | {
|
|
4114
|
+
type: "freeform";
|
|
4115
|
+
description?: string | undefined;
|
|
4116
|
+
}> | undefined;
|
|
4117
|
+
} | undefined;
|
|
3384
4118
|
} | undefined;
|
|
3385
4119
|
}, {
|
|
3386
4120
|
appCapabilities?: {
|
|
@@ -3496,6 +4230,20 @@ export declare const WmsGetAppConfigsOutputSchema: z.ZodObject<{
|
|
|
3496
4230
|
description?: string | undefined;
|
|
3497
4231
|
}> | undefined;
|
|
3498
4232
|
} | undefined;
|
|
4233
|
+
getExchangeableItemsOptions?: {
|
|
4234
|
+
required?: string[] | undefined;
|
|
4235
|
+
optional?: string[] | undefined;
|
|
4236
|
+
fieldConfigs?: Record<string, {
|
|
4237
|
+
type: "enum";
|
|
4238
|
+
allowedValues: {
|
|
4239
|
+
value: string;
|
|
4240
|
+
label: string;
|
|
4241
|
+
}[];
|
|
4242
|
+
} | {
|
|
4243
|
+
type: "freeform";
|
|
4244
|
+
description?: string | undefined;
|
|
4245
|
+
}> | undefined;
|
|
4246
|
+
} | undefined;
|
|
3499
4247
|
} | undefined;
|
|
3500
4248
|
}>;
|
|
3501
4249
|
export type WmsGetAppConfigsOutput = ProtoBacked<z.infer<typeof WmsGetAppConfigsOutputSchema>, ProtoWmsGetAppConfigsOutput>;
|