@epcc-sdk/sdks-shopper 0.6.0 → 0.6.1
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/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +42 -40
- package/dist/client/types.gen.d.ts +42 -40
- package/dist/client/zod.gen.cjs +66 -48
- package/dist/client/zod.gen.cjs.map +1 -1
- package/dist/client/zod.gen.d.cts +29581 -25691
- package/dist/client/zod.gen.d.ts +29581 -25691
- package/dist/client/zod.gen.mjs +66 -48
- package/dist/client/zod.gen.mjs.map +1 -1
- package/package.json +1 -1
package/dist/client/zod.gen.mjs
CHANGED
|
@@ -1473,7 +1473,7 @@ const zCustomerCheckout = z.object({
|
|
|
1473
1473
|
id: z.string().optional(),
|
|
1474
1474
|
email: z.string().optional(),
|
|
1475
1475
|
name: z.string().optional()
|
|
1476
|
-
})
|
|
1476
|
+
}),
|
|
1477
1477
|
billing_address: zBillingAddress.optional(),
|
|
1478
1478
|
shipping_address: zShippingAddress.optional()
|
|
1479
1479
|
}).optional()
|
|
@@ -1489,7 +1489,7 @@ const zAccountCheckout = z.object({
|
|
|
1489
1489
|
contact: z.object({
|
|
1490
1490
|
name: z.string().optional(),
|
|
1491
1491
|
email: z.string().email().optional()
|
|
1492
|
-
})
|
|
1492
|
+
}),
|
|
1493
1493
|
billing_address: zBillingAddress.optional(),
|
|
1494
1494
|
shipping_address: zShippingAddress.optional()
|
|
1495
1495
|
}).optional()
|
|
@@ -1936,7 +1936,7 @@ const zOrderItemResponse = z.object({
|
|
|
1936
1936
|
type: z.string().optional(),
|
|
1937
1937
|
id: z.string().uuid().readonly().optional(),
|
|
1938
1938
|
quantity: z.number().optional(),
|
|
1939
|
-
product_id: z.string().
|
|
1939
|
+
product_id: z.string().readonly().optional(),
|
|
1940
1940
|
subscription_offering_id: z.string().uuid().readonly().optional(),
|
|
1941
1941
|
name: z.string().optional(),
|
|
1942
1942
|
sku: z.string().optional(),
|
|
@@ -2096,43 +2096,22 @@ const zTransactionListResponse = z.object({
|
|
|
2096
2096
|
data: z.array(zTransactionResponse)
|
|
2097
2097
|
});
|
|
2098
2098
|
const zCartItemObject = zCartItemObjectData.and(zCartItemResponse);
|
|
2099
|
-
const
|
|
2100
|
-
data: z.array(
|
|
2101
|
-
z.union([
|
|
2102
|
-
zCartItemObject,
|
|
2103
|
-
zCustomItemObject,
|
|
2104
|
-
zSubscriptionItemObject,
|
|
2105
|
-
zPromotionItemObject
|
|
2106
|
-
])
|
|
2107
|
-
).optional()
|
|
2108
|
-
});
|
|
2109
|
-
const zDataStripeConnectPayment = zDataBasePayments.and(
|
|
2099
|
+
const zCustomItemCartObject = zCartItemResponse.and(
|
|
2110
2100
|
z.object({
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
receipt_email: z.string().optional()
|
|
2114
|
-
}).optional(),
|
|
2115
|
-
payment: z.string().optional()
|
|
2101
|
+
type: z.literal("custom_item"),
|
|
2102
|
+
quantity: z.number().int()
|
|
2116
2103
|
})
|
|
2117
2104
|
);
|
|
2118
|
-
const
|
|
2119
|
-
id: z.string().uuid(),
|
|
2120
|
-
name: z.string(),
|
|
2121
|
-
description: z.string().optional(),
|
|
2122
|
-
automatic: z.boolean(),
|
|
2123
|
-
promotion_source: z.string(),
|
|
2124
|
-
start: z.string().datetime(),
|
|
2125
|
-
end: z.string().datetime()
|
|
2126
|
-
});
|
|
2127
|
-
const zSubscriptionItemCartObject = zSubscriptionItemObjectData.and(zCartItemResponse);
|
|
2128
|
-
const zPromotionItemCartObject = zPromotionItemObjectData.and(zCartItemResponse).and(
|
|
2105
|
+
const zSubscriptionItemCartObject = zCartItemResponse.and(
|
|
2129
2106
|
z.object({
|
|
2130
|
-
|
|
2107
|
+
type: z.literal("subscription_item"),
|
|
2108
|
+
quantity: z.number().int()
|
|
2131
2109
|
})
|
|
2132
2110
|
);
|
|
2133
|
-
const
|
|
2111
|
+
const zPromotionItemCartObject = zCartItemResponse.and(
|
|
2134
2112
|
z.object({
|
|
2135
|
-
|
|
2113
|
+
type: z.literal("promotion_item"),
|
|
2114
|
+
quantity: z.number().int()
|
|
2136
2115
|
})
|
|
2137
2116
|
);
|
|
2138
2117
|
const zCartsResponse = z.object({
|
|
@@ -2151,6 +2130,8 @@ const zCartsResponse = z.object({
|
|
|
2151
2130
|
tax: zFormattedPriceData.optional(),
|
|
2152
2131
|
discount: zFormattedPriceData.optional(),
|
|
2153
2132
|
without_discount: zFormattedPriceData.optional(),
|
|
2133
|
+
shipping: zFormattedPriceData.optional(),
|
|
2134
|
+
shipping_discount: zFormattedPriceData.optional(),
|
|
2154
2135
|
discounts: z.record(
|
|
2155
2136
|
z.object({
|
|
2156
2137
|
amount: z.number().optional(),
|
|
@@ -2162,6 +2143,34 @@ const zCartsResponse = z.object({
|
|
|
2162
2143
|
timestamps: zCartTimestamps.optional()
|
|
2163
2144
|
}).optional()
|
|
2164
2145
|
});
|
|
2146
|
+
const zCartItemsResponse = z.object({
|
|
2147
|
+
data: z.array(
|
|
2148
|
+
z.union([
|
|
2149
|
+
zCartItemObject,
|
|
2150
|
+
zCustomItemCartObject,
|
|
2151
|
+
zSubscriptionItemCartObject,
|
|
2152
|
+
zPromotionItemCartObject
|
|
2153
|
+
])
|
|
2154
|
+
).optional()
|
|
2155
|
+
});
|
|
2156
|
+
const zDataStripeConnectPayment = zDataBasePayments.and(
|
|
2157
|
+
z.object({
|
|
2158
|
+
gateway: z.enum(["stripe_connect"]),
|
|
2159
|
+
options: z.object({
|
|
2160
|
+
receipt_email: z.string().optional()
|
|
2161
|
+
}).optional(),
|
|
2162
|
+
payment: z.string().optional()
|
|
2163
|
+
})
|
|
2164
|
+
);
|
|
2165
|
+
const zCartIncludedPromotion = z.object({
|
|
2166
|
+
id: z.string().uuid(),
|
|
2167
|
+
name: z.string(),
|
|
2168
|
+
description: z.string().optional(),
|
|
2169
|
+
automatic: z.boolean(),
|
|
2170
|
+
promotion_source: z.string(),
|
|
2171
|
+
start: z.string().datetime(),
|
|
2172
|
+
end: z.string().datetime()
|
|
2173
|
+
});
|
|
2165
2174
|
const zCartIncluded = z.object({
|
|
2166
2175
|
items: z.array(
|
|
2167
2176
|
z.union([
|
|
@@ -5157,25 +5166,22 @@ const zSettingsCartWritable = z.object({
|
|
|
5157
5166
|
const zCartItemObjectWritable = zCartItemObjectData.and(
|
|
5158
5167
|
zCartItemResponseWritable
|
|
5159
5168
|
);
|
|
5160
|
-
const
|
|
5161
|
-
|
|
5162
|
-
z.
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
])
|
|
5168
|
-
).optional()
|
|
5169
|
-
});
|
|
5170
|
-
const zSubscriptionItemCartObjectWritable = zSubscriptionItemObjectData.and(zCartItemResponseWritable);
|
|
5171
|
-
const zPromotionItemCartObjectWritable = zPromotionItemObjectData.and(zCartItemResponseWritable).and(
|
|
5169
|
+
const zCustomItemCartObjectWritable = zCartItemResponseWritable.and(
|
|
5170
|
+
z.object({
|
|
5171
|
+
type: z.literal("custom_item"),
|
|
5172
|
+
quantity: z.number().int()
|
|
5173
|
+
})
|
|
5174
|
+
);
|
|
5175
|
+
const zSubscriptionItemCartObjectWritable = zCartItemResponseWritable.and(
|
|
5172
5176
|
z.object({
|
|
5173
|
-
|
|
5177
|
+
type: z.literal("subscription_item"),
|
|
5178
|
+
quantity: z.number().int()
|
|
5174
5179
|
})
|
|
5175
5180
|
);
|
|
5176
|
-
const
|
|
5181
|
+
const zPromotionItemCartObjectWritable = zCartItemResponseWritable.and(
|
|
5177
5182
|
z.object({
|
|
5178
|
-
|
|
5183
|
+
type: z.literal("promotion_item"),
|
|
5184
|
+
quantity: z.number().int()
|
|
5179
5185
|
})
|
|
5180
5186
|
);
|
|
5181
5187
|
const zCartsResponseWritable = z.object({
|
|
@@ -5194,6 +5200,8 @@ const zCartsResponseWritable = z.object({
|
|
|
5194
5200
|
tax: zFormattedPriceData.optional(),
|
|
5195
5201
|
discount: zFormattedPriceData.optional(),
|
|
5196
5202
|
without_discount: zFormattedPriceData.optional(),
|
|
5203
|
+
shipping: zFormattedPriceData.optional(),
|
|
5204
|
+
shipping_discount: zFormattedPriceData.optional(),
|
|
5197
5205
|
discounts: z.record(
|
|
5198
5206
|
z.object({
|
|
5199
5207
|
amount: z.number().optional(),
|
|
@@ -5205,6 +5213,16 @@ const zCartsResponseWritable = z.object({
|
|
|
5205
5213
|
timestamps: zCartTimestamps.optional()
|
|
5206
5214
|
}).optional()
|
|
5207
5215
|
});
|
|
5216
|
+
const zCartItemsResponseWritable = z.object({
|
|
5217
|
+
data: z.array(
|
|
5218
|
+
z.union([
|
|
5219
|
+
zCartItemObjectWritable,
|
|
5220
|
+
zCustomItemCartObjectWritable,
|
|
5221
|
+
zSubscriptionItemCartObjectWritable,
|
|
5222
|
+
zPromotionItemCartObjectWritable
|
|
5223
|
+
])
|
|
5224
|
+
).optional()
|
|
5225
|
+
});
|
|
5208
5226
|
const zCartIncludedWritable = z.object({
|
|
5209
5227
|
items: z.array(
|
|
5210
5228
|
z.union([
|