@epcc-sdk/sdks-shopper 0.10.1 → 0.12.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 +79 -0
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +153 -6
- package/dist/client/@tanstack/react-query.gen.d.ts +153 -6
- package/dist/client/@tanstack/react-query.gen.mjs +77 -0
- package/dist/client/@tanstack/react-query.gen.mjs.map +1 -1
- package/dist/client/index.cjs +10 -0
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.mjs +10 -0
- package/dist/client/index.mjs.map +1 -1
- package/dist/client/sdk.gen.cjs +73 -0
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +80 -5
- package/dist/client/sdk.gen.d.ts +80 -5
- package/dist/client/sdk.gen.mjs +68 -0
- 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 +460 -94
- package/dist/client/types.gen.d.ts +460 -94
- package/dist/client/zod.gen.cjs +287 -30
- package/dist/client/zod.gen.cjs.map +1 -1
- package/dist/client/zod.gen.d.cts +880 -203
- package/dist/client/zod.gen.d.ts +880 -203
- package/dist/client/zod.gen.mjs +268 -30
- package/dist/client/zod.gen.mjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/react-query.d.cts +1 -1
- package/dist/react-query.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,
|
|
@@ -270,6 +272,10 @@ __export(zod_gen_exports, {
|
|
|
270
272
|
zCreateSubscriptionStatePath: () => zCreateSubscriptionStatePath,
|
|
271
273
|
zCreateSubscriptionStateResponse: () => zCreateSubscriptionStateResponse,
|
|
272
274
|
zCreateSynonymSetRequest: () => zCreateSynonymSetRequest,
|
|
275
|
+
zCreateTransactionNoteBody: () => zCreateTransactionNoteBody,
|
|
276
|
+
zCreateTransactionNotePath: () => zCreateTransactionNotePath,
|
|
277
|
+
zCreateTransactionNoteRequest: () => zCreateTransactionNoteRequest,
|
|
278
|
+
zCreateTransactionNoteResponse: () => zCreateTransactionNoteResponse,
|
|
273
279
|
zCurrencies: () => zCurrencies,
|
|
274
280
|
zCurrency: () => zCurrency,
|
|
275
281
|
zCurrencyIdentifier: () => zCurrencyIdentifier,
|
|
@@ -336,6 +342,8 @@ __export(zod_gen_exports, {
|
|
|
336
342
|
zDeleteRuleByIdResponse: () => zDeleteRuleByIdResponse,
|
|
337
343
|
zDeleteTaxItemFromCartItemComponentPath: () => zDeleteTaxItemFromCartItemComponentPath,
|
|
338
344
|
zDeleteTaxItemFromCartItemComponentResponse: () => zDeleteTaxItemFromCartItemComponentResponse,
|
|
345
|
+
zDeleteTransactionNotePath: () => zDeleteTransactionNotePath,
|
|
346
|
+
zDeleteTransactionNoteResponse: () => zDeleteTransactionNoteResponse,
|
|
339
347
|
zDeleteV2AccountAddressPath: () => zDeleteV2AccountAddressPath,
|
|
340
348
|
zDeleteV2AccountAddressResponse: () => zDeleteV2AccountAddressResponse,
|
|
341
349
|
zDeliveryEstimate: () => zDeliveryEstimate,
|
|
@@ -594,6 +602,11 @@ __export(zod_gen_exports, {
|
|
|
594
602
|
zGetSubscriptionResponse: () => zGetSubscriptionResponse,
|
|
595
603
|
zGetSubscriptionStatePath: () => zGetSubscriptionStatePath,
|
|
596
604
|
zGetSubscriptionStateResponse: () => zGetSubscriptionStateResponse,
|
|
605
|
+
zGetTransactionNotePath: () => zGetTransactionNotePath,
|
|
606
|
+
zGetTransactionNoteResponse: () => zGetTransactionNoteResponse,
|
|
607
|
+
zGetTransactionNotesPath: () => zGetTransactionNotesPath,
|
|
608
|
+
zGetTransactionNotesQuery: () => zGetTransactionNotesQuery,
|
|
609
|
+
zGetTransactionNotesResponse: () => zGetTransactionNotesResponse,
|
|
597
610
|
zGetV2AccountAddressPath: () => zGetV2AccountAddressPath,
|
|
598
611
|
zGetV2AccountAddressResponse: () => zGetV2AccountAddressResponse,
|
|
599
612
|
zGetV2AccountAddressesPath: () => zGetV2AccountAddressesPath,
|
|
@@ -1014,6 +1027,7 @@ __export(zod_gen_exports, {
|
|
|
1014
1027
|
zResponseErrorResponse: () => zResponseErrorResponse,
|
|
1015
1028
|
zResponseMetaCarts: () => zResponseMetaCarts,
|
|
1016
1029
|
zResponseMetaCurrency: () => zResponseMetaCurrency,
|
|
1030
|
+
zResponseMetaNotes: () => zResponseMetaNotes,
|
|
1017
1031
|
zResponseMetaOrders: () => zResponseMetaOrders,
|
|
1018
1032
|
zResponsePageLinks: () => zResponsePageLinks,
|
|
1019
1033
|
zResponsePaginationPage: () => zResponsePaginationPage,
|
|
@@ -1234,6 +1248,7 @@ __export(zod_gen_exports, {
|
|
|
1234
1248
|
zTransactionEntityResponseWritable: () => zTransactionEntityResponseWritable,
|
|
1235
1249
|
zTransactionListResponse: () => zTransactionListResponse,
|
|
1236
1250
|
zTransactionListResponseWritable: () => zTransactionListResponseWritable,
|
|
1251
|
+
zTransactionNoteResponse: () => zTransactionNoteResponse,
|
|
1237
1252
|
zTransactionResponse: () => zTransactionResponse,
|
|
1238
1253
|
zTransactionResponseAttributes: () => zTransactionResponseAttributes,
|
|
1239
1254
|
zTransactionResponseWritable: () => zTransactionResponseWritable,
|
|
@@ -1286,6 +1301,10 @@ __export(zod_gen_exports, {
|
|
|
1286
1301
|
zUpdateTaxItemFromCartItemComponentBody: () => zUpdateTaxItemFromCartItemComponentBody,
|
|
1287
1302
|
zUpdateTaxItemFromCartItemComponentPath: () => zUpdateTaxItemFromCartItemComponentPath,
|
|
1288
1303
|
zUpdateTaxItemFromCartItemComponentResponse: () => zUpdateTaxItemFromCartItemComponentResponse,
|
|
1304
|
+
zUpdateTransactionNoteBody: () => zUpdateTransactionNoteBody,
|
|
1305
|
+
zUpdateTransactionNotePath: () => zUpdateTransactionNotePath,
|
|
1306
|
+
zUpdateTransactionNoteRequest: () => zUpdateTransactionNoteRequest,
|
|
1307
|
+
zUpdateTransactionNoteResponse: () => zUpdateTransactionNoteResponse,
|
|
1289
1308
|
zUserAuthenticationInfo: () => zUserAuthenticationInfo,
|
|
1290
1309
|
zUserAuthenticationInfoResponse: () => zUserAuthenticationInfoResponse,
|
|
1291
1310
|
zUserAuthenticationInfoUpdateInput: () => zUserAuthenticationInfoUpdateInput,
|
|
@@ -2867,15 +2886,9 @@ const zResponsePageLinks = z.object({
|
|
|
2867
2886
|
first: z.string().register(z.globalRegistry, {
|
|
2868
2887
|
description: "Always the first page."
|
|
2869
2888
|
}).optional(),
|
|
2870
|
-
last: z.string().
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
next: z.string().register(z.globalRegistry, {
|
|
2874
|
-
description: "If there is only one page, it is `null`."
|
|
2875
|
-
}).optional(),
|
|
2876
|
-
prev: z.string().register(z.globalRegistry, {
|
|
2877
|
-
description: "if the user is on the first page, it is `null`."
|
|
2878
|
-
}).optional()
|
|
2889
|
+
last: z.string().nullish(),
|
|
2890
|
+
next: z.string().nullish(),
|
|
2891
|
+
prev: z.string().nullish()
|
|
2879
2892
|
});
|
|
2880
2893
|
const zResponsePaginationPage = z.object({
|
|
2881
2894
|
current: z.int().register(z.globalRegistry, {
|
|
@@ -3693,6 +3706,9 @@ const zShippingGroupResponse = z.object({
|
|
|
3693
3706
|
}).optional(),
|
|
3694
3707
|
address: zShippingAddress.optional(),
|
|
3695
3708
|
delivery_estimate: zDeliveryEstimate.optional(),
|
|
3709
|
+
anonymized: z.boolean().register(z.globalRegistry, {
|
|
3710
|
+
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."
|
|
3711
|
+
}).optional(),
|
|
3696
3712
|
created_at: z.iso.datetime().optional(),
|
|
3697
3713
|
updated_at: z.iso.datetime().optional(),
|
|
3698
3714
|
relationships: z.object({
|
|
@@ -3986,14 +4002,11 @@ const zResponseMetaOrders = z.object({
|
|
|
3986
4002
|
});
|
|
3987
4003
|
const zOrdersAddressData = z.object({
|
|
3988
4004
|
type: z.string().register(z.globalRegistry, {
|
|
3989
|
-
description:
|
|
4005
|
+
description: "The type of the resource. You must use `order`."
|
|
3990
4006
|
}),
|
|
3991
4007
|
order_number: z.string().register(z.globalRegistry, {
|
|
3992
4008
|
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
4009
|
}).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
4010
|
shipping_address: z.object({
|
|
3998
4011
|
first_name: z.string().register(z.globalRegistry, {
|
|
3999
4012
|
description: "Specifies the first name of the address holder."
|
|
@@ -4037,33 +4050,34 @@ const zOrdersAddressData = z.object({
|
|
|
4037
4050
|
})
|
|
4038
4051
|
});
|
|
4039
4052
|
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
4053
|
type: z.string().register(z.globalRegistry, {
|
|
4044
|
-
description: "The type of the resource. You must use order
|
|
4054
|
+
description: "The type of the resource. You must use `order`."
|
|
4045
4055
|
}),
|
|
4046
|
-
|
|
4047
|
-
description: "
|
|
4048
|
-
})
|
|
4056
|
+
status: z.string().register(z.globalRegistry, {
|
|
4057
|
+
description: "The status of the order. You can only update the status to `cancelled`."
|
|
4058
|
+
})
|
|
4049
4059
|
});
|
|
4050
4060
|
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
4061
|
type: z.string().register(z.globalRegistry, {
|
|
4055
|
-
description: "The type of the resource. You must use order
|
|
4062
|
+
description: "The type of the resource. You must use `order`."
|
|
4056
4063
|
}),
|
|
4057
|
-
|
|
4058
|
-
description: "
|
|
4059
|
-
})
|
|
4064
|
+
shipping: z.string().register(z.globalRegistry, {
|
|
4065
|
+
description: "The shipping status of the order. You can only update the shipping status to `fulfilled`."
|
|
4066
|
+
})
|
|
4060
4067
|
});
|
|
4061
4068
|
const zOrdersUpdateRequest = z.object({
|
|
4062
|
-
data: z.
|
|
4069
|
+
data: z.intersection(
|
|
4070
|
+
z.union([zOrdersAddressData, zOrdersCancelData, zOrdersFulfilledData]),
|
|
4071
|
+
z.object({
|
|
4072
|
+
external_ref: z.string().register(z.globalRegistry, {
|
|
4073
|
+
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."
|
|
4074
|
+
}).optional()
|
|
4075
|
+
})
|
|
4076
|
+
).optional()
|
|
4063
4077
|
});
|
|
4064
4078
|
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
|
|
4079
|
+
order_ids: z.array(z.string()).min(1).max(25).register(z.globalRegistry, {
|
|
4080
|
+
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
4081
|
}).optional()
|
|
4068
4082
|
});
|
|
4069
4083
|
const zOrdersAnonymizeRequest = z.object({
|
|
@@ -4277,6 +4291,51 @@ const zOrdersTransactionsCancelRequest = z.object({
|
|
|
4277
4291
|
}).optional()
|
|
4278
4292
|
}).optional()
|
|
4279
4293
|
});
|
|
4294
|
+
const zTransactionNoteResponse = z.object({
|
|
4295
|
+
type: z.literal("note").optional(),
|
|
4296
|
+
id: z.string().optional(),
|
|
4297
|
+
text: z.string().max(250).optional(),
|
|
4298
|
+
relationships: z.object({
|
|
4299
|
+
transaction: z.object({
|
|
4300
|
+
data: z.object({
|
|
4301
|
+
type: z.literal("transaction").optional(),
|
|
4302
|
+
id: z.string().optional()
|
|
4303
|
+
}).optional()
|
|
4304
|
+
}).optional()
|
|
4305
|
+
}).optional(),
|
|
4306
|
+
meta: z.object({
|
|
4307
|
+
timestamps: z.object({
|
|
4308
|
+
created_at: z.iso.datetime().optional(),
|
|
4309
|
+
updated_at: z.iso.datetime().optional()
|
|
4310
|
+
}).optional(),
|
|
4311
|
+
created_by: z.string().register(z.globalRegistry, {
|
|
4312
|
+
description: "The ID of the Commerce Manager user who created the note. Empty when the note was not created by a user, for example with a client credentials token."
|
|
4313
|
+
}).optional(),
|
|
4314
|
+
updated_by: z.string().register(z.globalRegistry, {
|
|
4315
|
+
description: "The ID of the Commerce Manager user who last edited the note. Empty when the last edit was not made by a user, for example with a client credentials token."
|
|
4316
|
+
}).optional()
|
|
4317
|
+
}).optional()
|
|
4318
|
+
});
|
|
4319
|
+
const zResponseMetaNotes = z.object({
|
|
4320
|
+
page: zResponsePaginationPage.optional(),
|
|
4321
|
+
results: zResponsePaginationResults.optional()
|
|
4322
|
+
});
|
|
4323
|
+
const zCreateTransactionNoteRequest = z.object({
|
|
4324
|
+
data: z.object({
|
|
4325
|
+
type: z.literal("note"),
|
|
4326
|
+
text: z.string().min(1).max(250).register(z.globalRegistry, {
|
|
4327
|
+
description: "The note's text content."
|
|
4328
|
+
})
|
|
4329
|
+
})
|
|
4330
|
+
});
|
|
4331
|
+
const zUpdateTransactionNoteRequest = z.object({
|
|
4332
|
+
data: z.object({
|
|
4333
|
+
type: z.literal("note"),
|
|
4334
|
+
text: z.string().min(1).max(250).register(z.globalRegistry, {
|
|
4335
|
+
description: "The note's new text content, replacing the existing text."
|
|
4336
|
+
})
|
|
4337
|
+
})
|
|
4338
|
+
});
|
|
4280
4339
|
const zUpdateOrderShippingGroupRequest = z.object({
|
|
4281
4340
|
data: z.object({
|
|
4282
4341
|
type: z.literal("shipping_group").optional(),
|
|
@@ -4518,6 +4577,52 @@ const zCartItemResponse = z.object({
|
|
|
4518
4577
|
}).readonly().optional(),
|
|
4519
4578
|
custom_attributes: zCustomAttributes.readonly().optional()
|
|
4520
4579
|
});
|
|
4580
|
+
const zCartItemListResponse = z.object({
|
|
4581
|
+
data: z.array(zCartItemResponse),
|
|
4582
|
+
included: z.object({
|
|
4583
|
+
custom_discounts: z.array(zCustomDiscountResponse).optional(),
|
|
4584
|
+
promotions: z.array(
|
|
4585
|
+
z.object({
|
|
4586
|
+
automatic: z.boolean().optional(),
|
|
4587
|
+
description: z.string().optional(),
|
|
4588
|
+
end: z.iso.datetime().optional(),
|
|
4589
|
+
id: z.uuid().optional(),
|
|
4590
|
+
name: z.string().optional(),
|
|
4591
|
+
promotion_type: z.string().optional(),
|
|
4592
|
+
promotion_source: z.string().register(z.globalRegistry, {
|
|
4593
|
+
description: "The source of the promotion"
|
|
4594
|
+
}).optional(),
|
|
4595
|
+
start: z.iso.datetime().optional(),
|
|
4596
|
+
type: z.literal("promotion").optional()
|
|
4597
|
+
})
|
|
4598
|
+
).optional(),
|
|
4599
|
+
tax_items: z.array(zTaxItemResponse).register(z.globalRegistry, {
|
|
4600
|
+
description: "Array of tax items included in the response."
|
|
4601
|
+
}).optional()
|
|
4602
|
+
}).register(z.globalRegistry, {
|
|
4603
|
+
description: "Related objects that are included in the response."
|
|
4604
|
+
}).optional(),
|
|
4605
|
+
meta: z.object({
|
|
4606
|
+
display_price: z.object({
|
|
4607
|
+
with_tax: zFormattedPriceData.optional(),
|
|
4608
|
+
without_tax: zFormattedPriceData.optional(),
|
|
4609
|
+
tax: zFormattedPriceData.optional(),
|
|
4610
|
+
discount: zFormattedPriceData.optional(),
|
|
4611
|
+
without_discount: zFormattedPriceData.optional(),
|
|
4612
|
+
shipping: zFormattedPriceData.optional(),
|
|
4613
|
+
shipping_discount: zFormattedPriceData.optional(),
|
|
4614
|
+
authorized: zFormattedPriceData.optional(),
|
|
4615
|
+
balance_owing: zFormattedPriceData.optional(),
|
|
4616
|
+
paid: zFormattedPriceData.optional()
|
|
4617
|
+
}).optional(),
|
|
4618
|
+
timestamps: zCartTimestamps.optional()
|
|
4619
|
+
}).register(z.globalRegistry, {
|
|
4620
|
+
description: "Additional meta information about the cart items collection."
|
|
4621
|
+
}).optional(),
|
|
4622
|
+
errors: z.array(zResponseErrorItem).register(z.globalRegistry, {
|
|
4623
|
+
description: "Array of error objects, if any errors occurred."
|
|
4624
|
+
}).optional()
|
|
4625
|
+
});
|
|
4521
4626
|
const zCartItemCollectionResponse = z.object({
|
|
4522
4627
|
data: z.array(zCartItemResponse),
|
|
4523
4628
|
included: z.object({
|
|
@@ -9203,6 +9308,52 @@ const zTaxItemResponseWritable = z.object({
|
|
|
9203
9308
|
description: "The tax amount in the smallest currency unit."
|
|
9204
9309
|
}).optional()
|
|
9205
9310
|
});
|
|
9311
|
+
const zCartItemListResponseWritable = z.object({
|
|
9312
|
+
data: z.array(zCartItemResponseWritable),
|
|
9313
|
+
included: z.object({
|
|
9314
|
+
custom_discounts: z.array(zCustomDiscountResponse).optional(),
|
|
9315
|
+
promotions: z.array(
|
|
9316
|
+
z.object({
|
|
9317
|
+
automatic: z.boolean().optional(),
|
|
9318
|
+
description: z.string().optional(),
|
|
9319
|
+
end: z.iso.datetime().optional(),
|
|
9320
|
+
id: z.uuid().optional(),
|
|
9321
|
+
name: z.string().optional(),
|
|
9322
|
+
promotion_type: z.string().optional(),
|
|
9323
|
+
promotion_source: z.string().register(z.globalRegistry, {
|
|
9324
|
+
description: "The source of the promotion"
|
|
9325
|
+
}).optional(),
|
|
9326
|
+
start: z.iso.datetime().optional(),
|
|
9327
|
+
type: z.literal("promotion").optional()
|
|
9328
|
+
})
|
|
9329
|
+
).optional(),
|
|
9330
|
+
tax_items: z.array(zTaxItemResponseWritable).register(z.globalRegistry, {
|
|
9331
|
+
description: "Array of tax items included in the response."
|
|
9332
|
+
}).optional()
|
|
9333
|
+
}).register(z.globalRegistry, {
|
|
9334
|
+
description: "Related objects that are included in the response."
|
|
9335
|
+
}).optional(),
|
|
9336
|
+
meta: z.object({
|
|
9337
|
+
display_price: z.object({
|
|
9338
|
+
with_tax: zFormattedPriceData.optional(),
|
|
9339
|
+
without_tax: zFormattedPriceData.optional(),
|
|
9340
|
+
tax: zFormattedPriceData.optional(),
|
|
9341
|
+
discount: zFormattedPriceData.optional(),
|
|
9342
|
+
without_discount: zFormattedPriceData.optional(),
|
|
9343
|
+
shipping: zFormattedPriceData.optional(),
|
|
9344
|
+
shipping_discount: zFormattedPriceData.optional(),
|
|
9345
|
+
authorized: zFormattedPriceData.optional(),
|
|
9346
|
+
balance_owing: zFormattedPriceData.optional(),
|
|
9347
|
+
paid: zFormattedPriceData.optional()
|
|
9348
|
+
}).optional(),
|
|
9349
|
+
timestamps: zCartTimestamps.optional()
|
|
9350
|
+
}).register(z.globalRegistry, {
|
|
9351
|
+
description: "Additional meta information about the cart items collection."
|
|
9352
|
+
}).optional(),
|
|
9353
|
+
errors: z.array(zResponseErrorItem).register(z.globalRegistry, {
|
|
9354
|
+
description: "Array of error objects, if any errors occurred."
|
|
9355
|
+
}).optional()
|
|
9356
|
+
});
|
|
9206
9357
|
const zCartItemCollectionResponseWritable = z.object({
|
|
9207
9358
|
data: z.array(zCartItemResponseWritable),
|
|
9208
9359
|
included: z.object({
|
|
@@ -11727,6 +11878,9 @@ const zGetCustomerOrdersQuery = z.object({
|
|
|
11727
11878
|
}).optional(),
|
|
11728
11879
|
filter: z.string().register(z.globalRegistry, {
|
|
11729
11880
|
description: "For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering), but you must go to a specific endpoint documentation to understand the attributes and operators an endpoint supports.\n"
|
|
11881
|
+
}).optional(),
|
|
11882
|
+
sort: z.string().register(z.globalRegistry, {
|
|
11883
|
+
description: "The attribute to sort results by, ascending. Prefix the attribute name with `-` to sort descending, for example `sort=-created_at`. Supported attributes are `status`, `payment`, `shipping`, `name`, `email`, `customer_id`, `shipping_postcode`, `billing_postcode`, `created_at`, `updated_at` and `currency`. The default sort is `-created_at`. Only one attribute can be specified, otherwise the default is applied."
|
|
11730
11884
|
}).optional()
|
|
11731
11885
|
});
|
|
11732
11886
|
const zGetCustomerOrdersResponse = zOrderCollectionResponse;
|
|
@@ -11831,6 +11985,90 @@ const zCancelATransactionPath = z.object({
|
|
|
11831
11985
|
})
|
|
11832
11986
|
});
|
|
11833
11987
|
const zCancelATransactionResponse = zTransactionEntityResponse;
|
|
11988
|
+
const zGetTransactionNotesPath = z.object({
|
|
11989
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
11990
|
+
description: "The ID of the order"
|
|
11991
|
+
}),
|
|
11992
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
11993
|
+
description: "The ID of the transaction"
|
|
11994
|
+
})
|
|
11995
|
+
});
|
|
11996
|
+
const zGetTransactionNotesQuery = z.object({
|
|
11997
|
+
"page[limit]": z.int().gte(1).lte(100).register(z.globalRegistry, {
|
|
11998
|
+
description: "The maximum number of records per page."
|
|
11999
|
+
}).optional(),
|
|
12000
|
+
"page[offset]": z.int().gte(0).lte(1e4).register(z.globalRegistry, {
|
|
12001
|
+
description: "The number of records to offset the results by."
|
|
12002
|
+
}).optional().default(0)
|
|
12003
|
+
});
|
|
12004
|
+
const zGetTransactionNotesResponse = z.object({
|
|
12005
|
+
data: z.array(zTransactionNoteResponse).optional(),
|
|
12006
|
+
links: zResponsePageLinks.optional(),
|
|
12007
|
+
meta: zResponseMetaNotes.optional()
|
|
12008
|
+
}).register(z.globalRegistry, {
|
|
12009
|
+
description: "A list of transaction notes"
|
|
12010
|
+
});
|
|
12011
|
+
const zCreateTransactionNoteBody = zCreateTransactionNoteRequest;
|
|
12012
|
+
const zCreateTransactionNotePath = z.object({
|
|
12013
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
12014
|
+
description: "The ID of the order"
|
|
12015
|
+
}),
|
|
12016
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
12017
|
+
description: "The ID of the transaction"
|
|
12018
|
+
})
|
|
12019
|
+
});
|
|
12020
|
+
const zCreateTransactionNoteResponse = z.object({
|
|
12021
|
+
data: zTransactionNoteResponse.optional()
|
|
12022
|
+
}).register(z.globalRegistry, {
|
|
12023
|
+
description: "Note created"
|
|
12024
|
+
});
|
|
12025
|
+
const zDeleteTransactionNotePath = z.object({
|
|
12026
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
12027
|
+
description: "The ID of the order"
|
|
12028
|
+
}),
|
|
12029
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
12030
|
+
description: "The ID of the transaction"
|
|
12031
|
+
}),
|
|
12032
|
+
noteID: z.string().register(z.globalRegistry, {
|
|
12033
|
+
description: "The ID of the note to delete"
|
|
12034
|
+
})
|
|
12035
|
+
});
|
|
12036
|
+
const zDeleteTransactionNoteResponse = z.void().register(z.globalRegistry, {
|
|
12037
|
+
description: "Successfully deleted the note"
|
|
12038
|
+
});
|
|
12039
|
+
const zGetTransactionNotePath = z.object({
|
|
12040
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
12041
|
+
description: "The ID of the order"
|
|
12042
|
+
}),
|
|
12043
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
12044
|
+
description: "The ID of the transaction"
|
|
12045
|
+
}),
|
|
12046
|
+
noteID: z.string().register(z.globalRegistry, {
|
|
12047
|
+
description: "The ID of the note"
|
|
12048
|
+
})
|
|
12049
|
+
});
|
|
12050
|
+
const zGetTransactionNoteResponse = z.object({
|
|
12051
|
+
data: zTransactionNoteResponse.optional()
|
|
12052
|
+
}).register(z.globalRegistry, {
|
|
12053
|
+
description: "Transaction note details"
|
|
12054
|
+
});
|
|
12055
|
+
const zUpdateTransactionNoteBody = zUpdateTransactionNoteRequest;
|
|
12056
|
+
const zUpdateTransactionNotePath = z.object({
|
|
12057
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
12058
|
+
description: "The ID of the order"
|
|
12059
|
+
}),
|
|
12060
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
12061
|
+
description: "The ID of the transaction"
|
|
12062
|
+
}),
|
|
12063
|
+
noteID: z.string().register(z.globalRegistry, {
|
|
12064
|
+
description: "The ID of the note"
|
|
12065
|
+
})
|
|
12066
|
+
});
|
|
12067
|
+
const zUpdateTransactionNoteResponse = z.object({
|
|
12068
|
+
data: zTransactionNoteResponse.optional()
|
|
12069
|
+
}).register(z.globalRegistry, {
|
|
12070
|
+
description: "Note updated successfully"
|
|
12071
|
+
});
|
|
11834
12072
|
const zGetOrderShippingGroupsPath = z.object({
|
|
11835
12073
|
orderID: z.string().register(z.globalRegistry, {
|
|
11836
12074
|
description: "The ID of the order"
|
|
@@ -13358,6 +13596,8 @@ const zGetProductsForNodeResponse = zProductListData;
|
|
|
13358
13596
|
zCartItemCollectionResponse,
|
|
13359
13597
|
zCartItemCollectionResponseWritable,
|
|
13360
13598
|
zCartItemFormattedPriceData,
|
|
13599
|
+
zCartItemListResponse,
|
|
13600
|
+
zCartItemListResponseWritable,
|
|
13361
13601
|
zCartItemObject,
|
|
13362
13602
|
zCartItemObjectData,
|
|
13363
13603
|
zCartItemObjectRequest,
|
|
@@ -13482,6 +13722,10 @@ const zGetProductsForNodeResponse = zProductListData;
|
|
|
13482
13722
|
zCreateSubscriptionStatePath,
|
|
13483
13723
|
zCreateSubscriptionStateResponse,
|
|
13484
13724
|
zCreateSynonymSetRequest,
|
|
13725
|
+
zCreateTransactionNoteBody,
|
|
13726
|
+
zCreateTransactionNotePath,
|
|
13727
|
+
zCreateTransactionNoteRequest,
|
|
13728
|
+
zCreateTransactionNoteResponse,
|
|
13485
13729
|
zCurrencies,
|
|
13486
13730
|
zCurrency,
|
|
13487
13731
|
zCurrencyIdentifier,
|
|
@@ -13548,6 +13792,8 @@ const zGetProductsForNodeResponse = zProductListData;
|
|
|
13548
13792
|
zDeleteRuleByIdResponse,
|
|
13549
13793
|
zDeleteTaxItemFromCartItemComponentPath,
|
|
13550
13794
|
zDeleteTaxItemFromCartItemComponentResponse,
|
|
13795
|
+
zDeleteTransactionNotePath,
|
|
13796
|
+
zDeleteTransactionNoteResponse,
|
|
13551
13797
|
zDeleteV2AccountAddressPath,
|
|
13552
13798
|
zDeleteV2AccountAddressResponse,
|
|
13553
13799
|
zDeliveryEstimate,
|
|
@@ -13806,6 +14052,11 @@ const zGetProductsForNodeResponse = zProductListData;
|
|
|
13806
14052
|
zGetSubscriptionResponse,
|
|
13807
14053
|
zGetSubscriptionStatePath,
|
|
13808
14054
|
zGetSubscriptionStateResponse,
|
|
14055
|
+
zGetTransactionNotePath,
|
|
14056
|
+
zGetTransactionNoteResponse,
|
|
14057
|
+
zGetTransactionNotesPath,
|
|
14058
|
+
zGetTransactionNotesQuery,
|
|
14059
|
+
zGetTransactionNotesResponse,
|
|
13809
14060
|
zGetV2AccountAddressPath,
|
|
13810
14061
|
zGetV2AccountAddressResponse,
|
|
13811
14062
|
zGetV2AccountAddressesPath,
|
|
@@ -14226,6 +14477,7 @@ const zGetProductsForNodeResponse = zProductListData;
|
|
|
14226
14477
|
zResponseErrorResponse,
|
|
14227
14478
|
zResponseMetaCarts,
|
|
14228
14479
|
zResponseMetaCurrency,
|
|
14480
|
+
zResponseMetaNotes,
|
|
14229
14481
|
zResponseMetaOrders,
|
|
14230
14482
|
zResponsePageLinks,
|
|
14231
14483
|
zResponsePaginationPage,
|
|
@@ -14446,6 +14698,7 @@ const zGetProductsForNodeResponse = zProductListData;
|
|
|
14446
14698
|
zTransactionEntityResponseWritable,
|
|
14447
14699
|
zTransactionListResponse,
|
|
14448
14700
|
zTransactionListResponseWritable,
|
|
14701
|
+
zTransactionNoteResponse,
|
|
14449
14702
|
zTransactionResponse,
|
|
14450
14703
|
zTransactionResponseAttributes,
|
|
14451
14704
|
zTransactionResponseWritable,
|
|
@@ -14498,6 +14751,10 @@ const zGetProductsForNodeResponse = zProductListData;
|
|
|
14498
14751
|
zUpdateTaxItemFromCartItemComponentBody,
|
|
14499
14752
|
zUpdateTaxItemFromCartItemComponentPath,
|
|
14500
14753
|
zUpdateTaxItemFromCartItemComponentResponse,
|
|
14754
|
+
zUpdateTransactionNoteBody,
|
|
14755
|
+
zUpdateTransactionNotePath,
|
|
14756
|
+
zUpdateTransactionNoteRequest,
|
|
14757
|
+
zUpdateTransactionNoteResponse,
|
|
14501
14758
|
zUserAuthenticationInfo,
|
|
14502
14759
|
zUserAuthenticationInfoResponse,
|
|
14503
14760
|
zUserAuthenticationInfoUpdateInput,
|