@epcc-sdk/sdks-shopper 0.10.0 → 0.11.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/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +2 -2
- package/dist/client/@tanstack/react-query.gen.d.ts +2 -2
- package/dist/client/@tanstack/react-query.gen.mjs.map +1 -1
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.mjs.map +1 -1
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +2 -2
- package/dist/client/sdk.gen.d.ts +2 -2
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +200 -94
- package/dist/client/types.gen.d.ts +200 -94
- package/dist/client/zod.gen.cjs +118 -21
- package/dist/client/zod.gen.cjs.map +1 -1
- package/dist/client/zod.gen.d.cts +482 -18
- package/dist/client/zod.gen.d.ts +482 -18
- package/dist/client/zod.gen.mjs +116 -21
- package/dist/client/zod.gen.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/zod.d.cts +1 -1
- package/dist/zod.d.ts +1 -1
- package/package.json +1 -1
package/dist/client/zod.gen.cjs
CHANGED
|
@@ -146,6 +146,8 @@ __export(zod_gen_exports, {
|
|
|
146
146
|
zCartItemCollectionResponse: () => zCartItemCollectionResponse,
|
|
147
147
|
zCartItemCollectionResponseWritable: () => zCartItemCollectionResponseWritable,
|
|
148
148
|
zCartItemFormattedPriceData: () => zCartItemFormattedPriceData,
|
|
149
|
+
zCartItemListResponse: () => zCartItemListResponse,
|
|
150
|
+
zCartItemListResponseWritable: () => zCartItemListResponseWritable,
|
|
149
151
|
zCartItemObject: () => zCartItemObject,
|
|
150
152
|
zCartItemObjectData: () => zCartItemObjectData,
|
|
151
153
|
zCartItemObjectRequest: () => zCartItemObjectRequest,
|
|
@@ -3693,6 +3695,9 @@ const zShippingGroupResponse = z.object({
|
|
|
3693
3695
|
}).optional(),
|
|
3694
3696
|
address: zShippingAddress.optional(),
|
|
3695
3697
|
delivery_estimate: zDeliveryEstimate.optional(),
|
|
3698
|
+
anonymized: z.boolean().register(z.globalRegistry, {
|
|
3699
|
+
description: "Specifies if the shipping group is anonymized. A shipping group is anonymized together with its order, which redacts the shipping group's address and tracking reference."
|
|
3700
|
+
}).optional(),
|
|
3696
3701
|
created_at: z.iso.datetime().optional(),
|
|
3697
3702
|
updated_at: z.iso.datetime().optional(),
|
|
3698
3703
|
relationships: z.object({
|
|
@@ -3986,14 +3991,11 @@ const zResponseMetaOrders = z.object({
|
|
|
3986
3991
|
});
|
|
3987
3992
|
const zOrdersAddressData = z.object({
|
|
3988
3993
|
type: z.string().register(z.globalRegistry, {
|
|
3989
|
-
description:
|
|
3994
|
+
description: "The type of the resource. You must use `order`."
|
|
3990
3995
|
}),
|
|
3991
3996
|
order_number: z.string().register(z.globalRegistry, {
|
|
3992
3997
|
description: "Specifies a user-managed, optional field used as an alternative to the existing order_id. If provided, the order-number will be sent to Authorize.net instead of the order_id, and will appear as the invoice number in Authorize.net transactions."
|
|
3993
3998
|
}).optional(),
|
|
3994
|
-
external_ref: z.string().register(z.globalRegistry, {
|
|
3995
|
-
description: "Represents an optional external ID reference for an order. It can contain alphanumeric characters, special characters, and spaces, and is not required to be unique. The maximum allowed length is 64 characters. It can be used to include an external reference from a separate company system."
|
|
3996
|
-
}).optional(),
|
|
3997
3999
|
shipping_address: z.object({
|
|
3998
4000
|
first_name: z.string().register(z.globalRegistry, {
|
|
3999
4001
|
description: "Specifies the first name of the address holder."
|
|
@@ -4037,33 +4039,34 @@ const zOrdersAddressData = z.object({
|
|
|
4037
4039
|
})
|
|
4038
4040
|
});
|
|
4039
4041
|
const zOrdersCancelData = z.object({
|
|
4040
|
-
status: z.string().register(z.globalRegistry, {
|
|
4041
|
-
description: "The status of the order. You can only update the status to `cancelled`."
|
|
4042
|
-
}),
|
|
4043
4042
|
type: z.string().register(z.globalRegistry, {
|
|
4044
|
-
description: "The type of the resource. You must use order
|
|
4043
|
+
description: "The type of the resource. You must use `order`."
|
|
4045
4044
|
}),
|
|
4046
|
-
|
|
4047
|
-
description: "
|
|
4048
|
-
})
|
|
4045
|
+
status: z.string().register(z.globalRegistry, {
|
|
4046
|
+
description: "The status of the order. You can only update the status to `cancelled`."
|
|
4047
|
+
})
|
|
4049
4048
|
});
|
|
4050
4049
|
const zOrdersFulfilledData = z.object({
|
|
4051
|
-
shipping: z.string().register(z.globalRegistry, {
|
|
4052
|
-
description: "The shipping status of the order. You can only update the shipping status to `fulfilled`."
|
|
4053
|
-
}),
|
|
4054
4050
|
type: z.string().register(z.globalRegistry, {
|
|
4055
|
-
description: "The type of the resource. You must use order
|
|
4051
|
+
description: "The type of the resource. You must use `order`."
|
|
4056
4052
|
}),
|
|
4057
|
-
|
|
4058
|
-
description: "
|
|
4059
|
-
})
|
|
4053
|
+
shipping: z.string().register(z.globalRegistry, {
|
|
4054
|
+
description: "The shipping status of the order. You can only update the shipping status to `fulfilled`."
|
|
4055
|
+
})
|
|
4060
4056
|
});
|
|
4061
4057
|
const zOrdersUpdateRequest = z.object({
|
|
4062
|
-
data: z.
|
|
4058
|
+
data: z.intersection(
|
|
4059
|
+
z.union([zOrdersAddressData, zOrdersCancelData, zOrdersFulfilledData]),
|
|
4060
|
+
z.object({
|
|
4061
|
+
external_ref: z.string().register(z.globalRegistry, {
|
|
4062
|
+
description: "Represents an optional external ID reference for an order. It can contain alphanumeric characters, special characters, and spaces, and is not required to be unique. The maximum allowed length is 64 characters. It can be used to include an external reference from a separate company system."
|
|
4063
|
+
}).optional()
|
|
4064
|
+
})
|
|
4065
|
+
).optional()
|
|
4063
4066
|
});
|
|
4064
4067
|
const zOrdersAnonymizeData = z.object({
|
|
4065
|
-
order_ids: z.array(z.string()).register(z.globalRegistry, {
|
|
4066
|
-
description: "The unique identifiers of the orders to be anonymized. You can anonymize
|
|
4068
|
+
order_ids: z.array(z.string()).min(1).max(25).register(z.globalRegistry, {
|
|
4069
|
+
description: "The unique identifiers of the orders to be anonymized. You can anonymize up to 25 orders in one request; split larger sets across requests."
|
|
4067
4070
|
}).optional()
|
|
4068
4071
|
});
|
|
4069
4072
|
const zOrdersAnonymizeRequest = z.object({
|
|
@@ -4518,6 +4521,52 @@ const zCartItemResponse = z.object({
|
|
|
4518
4521
|
}).readonly().optional(),
|
|
4519
4522
|
custom_attributes: zCustomAttributes.readonly().optional()
|
|
4520
4523
|
});
|
|
4524
|
+
const zCartItemListResponse = z.object({
|
|
4525
|
+
data: z.array(zCartItemResponse),
|
|
4526
|
+
included: z.object({
|
|
4527
|
+
custom_discounts: z.array(zCustomDiscountResponse).optional(),
|
|
4528
|
+
promotions: z.array(
|
|
4529
|
+
z.object({
|
|
4530
|
+
automatic: z.boolean().optional(),
|
|
4531
|
+
description: z.string().optional(),
|
|
4532
|
+
end: z.iso.datetime().optional(),
|
|
4533
|
+
id: z.uuid().optional(),
|
|
4534
|
+
name: z.string().optional(),
|
|
4535
|
+
promotion_type: z.string().optional(),
|
|
4536
|
+
promotion_source: z.string().register(z.globalRegistry, {
|
|
4537
|
+
description: "The source of the promotion"
|
|
4538
|
+
}).optional(),
|
|
4539
|
+
start: z.iso.datetime().optional(),
|
|
4540
|
+
type: z.literal("promotion").optional()
|
|
4541
|
+
})
|
|
4542
|
+
).optional(),
|
|
4543
|
+
tax_items: z.array(zTaxItemResponse).register(z.globalRegistry, {
|
|
4544
|
+
description: "Array of tax items included in the response."
|
|
4545
|
+
}).optional()
|
|
4546
|
+
}).register(z.globalRegistry, {
|
|
4547
|
+
description: "Related objects that are included in the response."
|
|
4548
|
+
}).optional(),
|
|
4549
|
+
meta: z.object({
|
|
4550
|
+
display_price: z.object({
|
|
4551
|
+
with_tax: zFormattedPriceData.optional(),
|
|
4552
|
+
without_tax: zFormattedPriceData.optional(),
|
|
4553
|
+
tax: zFormattedPriceData.optional(),
|
|
4554
|
+
discount: zFormattedPriceData.optional(),
|
|
4555
|
+
without_discount: zFormattedPriceData.optional(),
|
|
4556
|
+
shipping: zFormattedPriceData.optional(),
|
|
4557
|
+
shipping_discount: zFormattedPriceData.optional(),
|
|
4558
|
+
authorized: zFormattedPriceData.optional(),
|
|
4559
|
+
balance_owing: zFormattedPriceData.optional(),
|
|
4560
|
+
paid: zFormattedPriceData.optional()
|
|
4561
|
+
}).optional(),
|
|
4562
|
+
timestamps: zCartTimestamps.optional()
|
|
4563
|
+
}).register(z.globalRegistry, {
|
|
4564
|
+
description: "Additional meta information about the cart items collection."
|
|
4565
|
+
}).optional(),
|
|
4566
|
+
errors: z.array(zResponseErrorItem).register(z.globalRegistry, {
|
|
4567
|
+
description: "Array of error objects, if any errors occurred."
|
|
4568
|
+
}).optional()
|
|
4569
|
+
});
|
|
4521
4570
|
const zCartItemCollectionResponse = z.object({
|
|
4522
4571
|
data: z.array(zCartItemResponse),
|
|
4523
4572
|
included: z.object({
|
|
@@ -9203,6 +9252,52 @@ const zTaxItemResponseWritable = z.object({
|
|
|
9203
9252
|
description: "The tax amount in the smallest currency unit."
|
|
9204
9253
|
}).optional()
|
|
9205
9254
|
});
|
|
9255
|
+
const zCartItemListResponseWritable = z.object({
|
|
9256
|
+
data: z.array(zCartItemResponseWritable),
|
|
9257
|
+
included: z.object({
|
|
9258
|
+
custom_discounts: z.array(zCustomDiscountResponse).optional(),
|
|
9259
|
+
promotions: z.array(
|
|
9260
|
+
z.object({
|
|
9261
|
+
automatic: z.boolean().optional(),
|
|
9262
|
+
description: z.string().optional(),
|
|
9263
|
+
end: z.iso.datetime().optional(),
|
|
9264
|
+
id: z.uuid().optional(),
|
|
9265
|
+
name: z.string().optional(),
|
|
9266
|
+
promotion_type: z.string().optional(),
|
|
9267
|
+
promotion_source: z.string().register(z.globalRegistry, {
|
|
9268
|
+
description: "The source of the promotion"
|
|
9269
|
+
}).optional(),
|
|
9270
|
+
start: z.iso.datetime().optional(),
|
|
9271
|
+
type: z.literal("promotion").optional()
|
|
9272
|
+
})
|
|
9273
|
+
).optional(),
|
|
9274
|
+
tax_items: z.array(zTaxItemResponseWritable).register(z.globalRegistry, {
|
|
9275
|
+
description: "Array of tax items included in the response."
|
|
9276
|
+
}).optional()
|
|
9277
|
+
}).register(z.globalRegistry, {
|
|
9278
|
+
description: "Related objects that are included in the response."
|
|
9279
|
+
}).optional(),
|
|
9280
|
+
meta: z.object({
|
|
9281
|
+
display_price: z.object({
|
|
9282
|
+
with_tax: zFormattedPriceData.optional(),
|
|
9283
|
+
without_tax: zFormattedPriceData.optional(),
|
|
9284
|
+
tax: zFormattedPriceData.optional(),
|
|
9285
|
+
discount: zFormattedPriceData.optional(),
|
|
9286
|
+
without_discount: zFormattedPriceData.optional(),
|
|
9287
|
+
shipping: zFormattedPriceData.optional(),
|
|
9288
|
+
shipping_discount: zFormattedPriceData.optional(),
|
|
9289
|
+
authorized: zFormattedPriceData.optional(),
|
|
9290
|
+
balance_owing: zFormattedPriceData.optional(),
|
|
9291
|
+
paid: zFormattedPriceData.optional()
|
|
9292
|
+
}).optional(),
|
|
9293
|
+
timestamps: zCartTimestamps.optional()
|
|
9294
|
+
}).register(z.globalRegistry, {
|
|
9295
|
+
description: "Additional meta information about the cart items collection."
|
|
9296
|
+
}).optional(),
|
|
9297
|
+
errors: z.array(zResponseErrorItem).register(z.globalRegistry, {
|
|
9298
|
+
description: "Array of error objects, if any errors occurred."
|
|
9299
|
+
}).optional()
|
|
9300
|
+
});
|
|
9206
9301
|
const zCartItemCollectionResponseWritable = z.object({
|
|
9207
9302
|
data: z.array(zCartItemResponseWritable),
|
|
9208
9303
|
included: z.object({
|
|
@@ -13358,6 +13453,8 @@ const zGetProductsForNodeResponse = zProductListData;
|
|
|
13358
13453
|
zCartItemCollectionResponse,
|
|
13359
13454
|
zCartItemCollectionResponseWritable,
|
|
13360
13455
|
zCartItemFormattedPriceData,
|
|
13456
|
+
zCartItemListResponse,
|
|
13457
|
+
zCartItemListResponseWritable,
|
|
13361
13458
|
zCartItemObject,
|
|
13362
13459
|
zCartItemObjectData,
|
|
13363
13460
|
zCartItemObjectRequest,
|