@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.mjs
CHANGED
|
@@ -2387,6 +2387,9 @@ const zShippingGroupResponse = z.object({
|
|
|
2387
2387
|
}).optional(),
|
|
2388
2388
|
address: zShippingAddress.optional(),
|
|
2389
2389
|
delivery_estimate: zDeliveryEstimate.optional(),
|
|
2390
|
+
anonymized: z.boolean().register(z.globalRegistry, {
|
|
2391
|
+
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."
|
|
2392
|
+
}).optional(),
|
|
2390
2393
|
created_at: z.iso.datetime().optional(),
|
|
2391
2394
|
updated_at: z.iso.datetime().optional(),
|
|
2392
2395
|
relationships: z.object({
|
|
@@ -2680,14 +2683,11 @@ const zResponseMetaOrders = z.object({
|
|
|
2680
2683
|
});
|
|
2681
2684
|
const zOrdersAddressData = z.object({
|
|
2682
2685
|
type: z.string().register(z.globalRegistry, {
|
|
2683
|
-
description:
|
|
2686
|
+
description: "The type of the resource. You must use `order`."
|
|
2684
2687
|
}),
|
|
2685
2688
|
order_number: z.string().register(z.globalRegistry, {
|
|
2686
2689
|
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."
|
|
2687
2690
|
}).optional(),
|
|
2688
|
-
external_ref: z.string().register(z.globalRegistry, {
|
|
2689
|
-
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."
|
|
2690
|
-
}).optional(),
|
|
2691
2691
|
shipping_address: z.object({
|
|
2692
2692
|
first_name: z.string().register(z.globalRegistry, {
|
|
2693
2693
|
description: "Specifies the first name of the address holder."
|
|
@@ -2731,33 +2731,34 @@ const zOrdersAddressData = z.object({
|
|
|
2731
2731
|
})
|
|
2732
2732
|
});
|
|
2733
2733
|
const zOrdersCancelData = z.object({
|
|
2734
|
-
status: z.string().register(z.globalRegistry, {
|
|
2735
|
-
description: "The status of the order. You can only update the status to `cancelled`."
|
|
2736
|
-
}),
|
|
2737
2734
|
type: z.string().register(z.globalRegistry, {
|
|
2738
|
-
description: "The type of the resource. You must use order
|
|
2735
|
+
description: "The type of the resource. You must use `order`."
|
|
2739
2736
|
}),
|
|
2740
|
-
|
|
2741
|
-
description: "
|
|
2742
|
-
})
|
|
2737
|
+
status: z.string().register(z.globalRegistry, {
|
|
2738
|
+
description: "The status of the order. You can only update the status to `cancelled`."
|
|
2739
|
+
})
|
|
2743
2740
|
});
|
|
2744
2741
|
const zOrdersFulfilledData = z.object({
|
|
2745
|
-
shipping: z.string().register(z.globalRegistry, {
|
|
2746
|
-
description: "The shipping status of the order. You can only update the shipping status to `fulfilled`."
|
|
2747
|
-
}),
|
|
2748
2742
|
type: z.string().register(z.globalRegistry, {
|
|
2749
|
-
description: "The type of the resource. You must use order
|
|
2743
|
+
description: "The type of the resource. You must use `order`."
|
|
2750
2744
|
}),
|
|
2751
|
-
|
|
2752
|
-
description: "
|
|
2753
|
-
})
|
|
2745
|
+
shipping: z.string().register(z.globalRegistry, {
|
|
2746
|
+
description: "The shipping status of the order. You can only update the shipping status to `fulfilled`."
|
|
2747
|
+
})
|
|
2754
2748
|
});
|
|
2755
2749
|
const zOrdersUpdateRequest = z.object({
|
|
2756
|
-
data: z.
|
|
2750
|
+
data: z.intersection(
|
|
2751
|
+
z.union([zOrdersAddressData, zOrdersCancelData, zOrdersFulfilledData]),
|
|
2752
|
+
z.object({
|
|
2753
|
+
external_ref: z.string().register(z.globalRegistry, {
|
|
2754
|
+
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."
|
|
2755
|
+
}).optional()
|
|
2756
|
+
})
|
|
2757
|
+
).optional()
|
|
2757
2758
|
});
|
|
2758
2759
|
const zOrdersAnonymizeData = z.object({
|
|
2759
|
-
order_ids: z.array(z.string()).register(z.globalRegistry, {
|
|
2760
|
-
description: "The unique identifiers of the orders to be anonymized. You can anonymize
|
|
2760
|
+
order_ids: z.array(z.string()).min(1).max(25).register(z.globalRegistry, {
|
|
2761
|
+
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."
|
|
2761
2762
|
}).optional()
|
|
2762
2763
|
});
|
|
2763
2764
|
const zOrdersAnonymizeRequest = z.object({
|
|
@@ -3212,6 +3213,52 @@ const zCartItemResponse = z.object({
|
|
|
3212
3213
|
}).readonly().optional(),
|
|
3213
3214
|
custom_attributes: zCustomAttributes.readonly().optional()
|
|
3214
3215
|
});
|
|
3216
|
+
const zCartItemListResponse = z.object({
|
|
3217
|
+
data: z.array(zCartItemResponse),
|
|
3218
|
+
included: z.object({
|
|
3219
|
+
custom_discounts: z.array(zCustomDiscountResponse).optional(),
|
|
3220
|
+
promotions: z.array(
|
|
3221
|
+
z.object({
|
|
3222
|
+
automatic: z.boolean().optional(),
|
|
3223
|
+
description: z.string().optional(),
|
|
3224
|
+
end: z.iso.datetime().optional(),
|
|
3225
|
+
id: z.uuid().optional(),
|
|
3226
|
+
name: z.string().optional(),
|
|
3227
|
+
promotion_type: z.string().optional(),
|
|
3228
|
+
promotion_source: z.string().register(z.globalRegistry, {
|
|
3229
|
+
description: "The source of the promotion"
|
|
3230
|
+
}).optional(),
|
|
3231
|
+
start: z.iso.datetime().optional(),
|
|
3232
|
+
type: z.literal("promotion").optional()
|
|
3233
|
+
})
|
|
3234
|
+
).optional(),
|
|
3235
|
+
tax_items: z.array(zTaxItemResponse).register(z.globalRegistry, {
|
|
3236
|
+
description: "Array of tax items included in the response."
|
|
3237
|
+
}).optional()
|
|
3238
|
+
}).register(z.globalRegistry, {
|
|
3239
|
+
description: "Related objects that are included in the response."
|
|
3240
|
+
}).optional(),
|
|
3241
|
+
meta: z.object({
|
|
3242
|
+
display_price: z.object({
|
|
3243
|
+
with_tax: zFormattedPriceData.optional(),
|
|
3244
|
+
without_tax: zFormattedPriceData.optional(),
|
|
3245
|
+
tax: zFormattedPriceData.optional(),
|
|
3246
|
+
discount: zFormattedPriceData.optional(),
|
|
3247
|
+
without_discount: zFormattedPriceData.optional(),
|
|
3248
|
+
shipping: zFormattedPriceData.optional(),
|
|
3249
|
+
shipping_discount: zFormattedPriceData.optional(),
|
|
3250
|
+
authorized: zFormattedPriceData.optional(),
|
|
3251
|
+
balance_owing: zFormattedPriceData.optional(),
|
|
3252
|
+
paid: zFormattedPriceData.optional()
|
|
3253
|
+
}).optional(),
|
|
3254
|
+
timestamps: zCartTimestamps.optional()
|
|
3255
|
+
}).register(z.globalRegistry, {
|
|
3256
|
+
description: "Additional meta information about the cart items collection."
|
|
3257
|
+
}).optional(),
|
|
3258
|
+
errors: z.array(zResponseErrorItem).register(z.globalRegistry, {
|
|
3259
|
+
description: "Array of error objects, if any errors occurred."
|
|
3260
|
+
}).optional()
|
|
3261
|
+
});
|
|
3215
3262
|
const zCartItemCollectionResponse = z.object({
|
|
3216
3263
|
data: z.array(zCartItemResponse),
|
|
3217
3264
|
included: z.object({
|
|
@@ -7897,6 +7944,52 @@ const zTaxItemResponseWritable = z.object({
|
|
|
7897
7944
|
description: "The tax amount in the smallest currency unit."
|
|
7898
7945
|
}).optional()
|
|
7899
7946
|
});
|
|
7947
|
+
const zCartItemListResponseWritable = z.object({
|
|
7948
|
+
data: z.array(zCartItemResponseWritable),
|
|
7949
|
+
included: z.object({
|
|
7950
|
+
custom_discounts: z.array(zCustomDiscountResponse).optional(),
|
|
7951
|
+
promotions: z.array(
|
|
7952
|
+
z.object({
|
|
7953
|
+
automatic: z.boolean().optional(),
|
|
7954
|
+
description: z.string().optional(),
|
|
7955
|
+
end: z.iso.datetime().optional(),
|
|
7956
|
+
id: z.uuid().optional(),
|
|
7957
|
+
name: z.string().optional(),
|
|
7958
|
+
promotion_type: z.string().optional(),
|
|
7959
|
+
promotion_source: z.string().register(z.globalRegistry, {
|
|
7960
|
+
description: "The source of the promotion"
|
|
7961
|
+
}).optional(),
|
|
7962
|
+
start: z.iso.datetime().optional(),
|
|
7963
|
+
type: z.literal("promotion").optional()
|
|
7964
|
+
})
|
|
7965
|
+
).optional(),
|
|
7966
|
+
tax_items: z.array(zTaxItemResponseWritable).register(z.globalRegistry, {
|
|
7967
|
+
description: "Array of tax items included in the response."
|
|
7968
|
+
}).optional()
|
|
7969
|
+
}).register(z.globalRegistry, {
|
|
7970
|
+
description: "Related objects that are included in the response."
|
|
7971
|
+
}).optional(),
|
|
7972
|
+
meta: z.object({
|
|
7973
|
+
display_price: z.object({
|
|
7974
|
+
with_tax: zFormattedPriceData.optional(),
|
|
7975
|
+
without_tax: zFormattedPriceData.optional(),
|
|
7976
|
+
tax: zFormattedPriceData.optional(),
|
|
7977
|
+
discount: zFormattedPriceData.optional(),
|
|
7978
|
+
without_discount: zFormattedPriceData.optional(),
|
|
7979
|
+
shipping: zFormattedPriceData.optional(),
|
|
7980
|
+
shipping_discount: zFormattedPriceData.optional(),
|
|
7981
|
+
authorized: zFormattedPriceData.optional(),
|
|
7982
|
+
balance_owing: zFormattedPriceData.optional(),
|
|
7983
|
+
paid: zFormattedPriceData.optional()
|
|
7984
|
+
}).optional(),
|
|
7985
|
+
timestamps: zCartTimestamps.optional()
|
|
7986
|
+
}).register(z.globalRegistry, {
|
|
7987
|
+
description: "Additional meta information about the cart items collection."
|
|
7988
|
+
}).optional(),
|
|
7989
|
+
errors: z.array(zResponseErrorItem).register(z.globalRegistry, {
|
|
7990
|
+
description: "Array of error objects, if any errors occurred."
|
|
7991
|
+
}).optional()
|
|
7992
|
+
});
|
|
7900
7993
|
const zCartItemCollectionResponseWritable = z.object({
|
|
7901
7994
|
data: z.array(zCartItemResponseWritable),
|
|
7902
7995
|
included: z.object({
|
|
@@ -12051,6 +12144,8 @@ export {
|
|
|
12051
12144
|
zCartItemCollectionResponse,
|
|
12052
12145
|
zCartItemCollectionResponseWritable,
|
|
12053
12146
|
zCartItemFormattedPriceData,
|
|
12147
|
+
zCartItemListResponse,
|
|
12148
|
+
zCartItemListResponseWritable,
|
|
12054
12149
|
zCartItemObject,
|
|
12055
12150
|
zCartItemObjectData,
|
|
12056
12151
|
zCartItemObjectRequest,
|