@epcc-sdk/sdks-shopper 0.11.0 → 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 +151 -4
- package/dist/client/@tanstack/react-query.gen.d.ts +151 -4
- 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 +79 -4
- package/dist/client/sdk.gen.d.ts +79 -4
- 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 +265 -5
- package/dist/client/types.gen.d.ts +265 -5
- package/dist/client/zod.gen.cjs +169 -9
- package/dist/client/zod.gen.cjs.map +1 -1
- package/dist/client/zod.gen.d.cts +232 -19
- package/dist/client/zod.gen.d.ts +232 -19
- package/dist/client/zod.gen.mjs +152 -9
- 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.mjs
CHANGED
|
@@ -1561,15 +1561,9 @@ const zResponsePageLinks = z.object({
|
|
|
1561
1561
|
first: z.string().register(z.globalRegistry, {
|
|
1562
1562
|
description: "Always the first page."
|
|
1563
1563
|
}).optional(),
|
|
1564
|
-
last: z.string().
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
next: z.string().register(z.globalRegistry, {
|
|
1568
|
-
description: "If there is only one page, it is `null`."
|
|
1569
|
-
}).optional(),
|
|
1570
|
-
prev: z.string().register(z.globalRegistry, {
|
|
1571
|
-
description: "if the user is on the first page, it is `null`."
|
|
1572
|
-
}).optional()
|
|
1564
|
+
last: z.string().nullish(),
|
|
1565
|
+
next: z.string().nullish(),
|
|
1566
|
+
prev: z.string().nullish()
|
|
1573
1567
|
});
|
|
1574
1568
|
const zResponsePaginationPage = z.object({
|
|
1575
1569
|
current: z.int().register(z.globalRegistry, {
|
|
@@ -2972,6 +2966,51 @@ const zOrdersTransactionsCancelRequest = z.object({
|
|
|
2972
2966
|
}).optional()
|
|
2973
2967
|
}).optional()
|
|
2974
2968
|
});
|
|
2969
|
+
const zTransactionNoteResponse = z.object({
|
|
2970
|
+
type: z.literal("note").optional(),
|
|
2971
|
+
id: z.string().optional(),
|
|
2972
|
+
text: z.string().max(250).optional(),
|
|
2973
|
+
relationships: z.object({
|
|
2974
|
+
transaction: z.object({
|
|
2975
|
+
data: z.object({
|
|
2976
|
+
type: z.literal("transaction").optional(),
|
|
2977
|
+
id: z.string().optional()
|
|
2978
|
+
}).optional()
|
|
2979
|
+
}).optional()
|
|
2980
|
+
}).optional(),
|
|
2981
|
+
meta: z.object({
|
|
2982
|
+
timestamps: z.object({
|
|
2983
|
+
created_at: z.iso.datetime().optional(),
|
|
2984
|
+
updated_at: z.iso.datetime().optional()
|
|
2985
|
+
}).optional(),
|
|
2986
|
+
created_by: z.string().register(z.globalRegistry, {
|
|
2987
|
+
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."
|
|
2988
|
+
}).optional(),
|
|
2989
|
+
updated_by: z.string().register(z.globalRegistry, {
|
|
2990
|
+
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."
|
|
2991
|
+
}).optional()
|
|
2992
|
+
}).optional()
|
|
2993
|
+
});
|
|
2994
|
+
const zResponseMetaNotes = z.object({
|
|
2995
|
+
page: zResponsePaginationPage.optional(),
|
|
2996
|
+
results: zResponsePaginationResults.optional()
|
|
2997
|
+
});
|
|
2998
|
+
const zCreateTransactionNoteRequest = z.object({
|
|
2999
|
+
data: z.object({
|
|
3000
|
+
type: z.literal("note"),
|
|
3001
|
+
text: z.string().min(1).max(250).register(z.globalRegistry, {
|
|
3002
|
+
description: "The note's text content."
|
|
3003
|
+
})
|
|
3004
|
+
})
|
|
3005
|
+
});
|
|
3006
|
+
const zUpdateTransactionNoteRequest = z.object({
|
|
3007
|
+
data: z.object({
|
|
3008
|
+
type: z.literal("note"),
|
|
3009
|
+
text: z.string().min(1).max(250).register(z.globalRegistry, {
|
|
3010
|
+
description: "The note's new text content, replacing the existing text."
|
|
3011
|
+
})
|
|
3012
|
+
})
|
|
3013
|
+
});
|
|
2975
3014
|
const zUpdateOrderShippingGroupRequest = z.object({
|
|
2976
3015
|
data: z.object({
|
|
2977
3016
|
type: z.literal("shipping_group").optional(),
|
|
@@ -10514,6 +10553,9 @@ const zGetCustomerOrdersQuery = z.object({
|
|
|
10514
10553
|
}).optional(),
|
|
10515
10554
|
filter: z.string().register(z.globalRegistry, {
|
|
10516
10555
|
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"
|
|
10556
|
+
}).optional(),
|
|
10557
|
+
sort: z.string().register(z.globalRegistry, {
|
|
10558
|
+
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."
|
|
10517
10559
|
}).optional()
|
|
10518
10560
|
});
|
|
10519
10561
|
const zGetCustomerOrdersResponse = zOrderCollectionResponse;
|
|
@@ -10618,6 +10660,90 @@ const zCancelATransactionPath = z.object({
|
|
|
10618
10660
|
})
|
|
10619
10661
|
});
|
|
10620
10662
|
const zCancelATransactionResponse = zTransactionEntityResponse;
|
|
10663
|
+
const zGetTransactionNotesPath = z.object({
|
|
10664
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
10665
|
+
description: "The ID of the order"
|
|
10666
|
+
}),
|
|
10667
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
10668
|
+
description: "The ID of the transaction"
|
|
10669
|
+
})
|
|
10670
|
+
});
|
|
10671
|
+
const zGetTransactionNotesQuery = z.object({
|
|
10672
|
+
"page[limit]": z.int().gte(1).lte(100).register(z.globalRegistry, {
|
|
10673
|
+
description: "The maximum number of records per page."
|
|
10674
|
+
}).optional(),
|
|
10675
|
+
"page[offset]": z.int().gte(0).lte(1e4).register(z.globalRegistry, {
|
|
10676
|
+
description: "The number of records to offset the results by."
|
|
10677
|
+
}).optional().default(0)
|
|
10678
|
+
});
|
|
10679
|
+
const zGetTransactionNotesResponse = z.object({
|
|
10680
|
+
data: z.array(zTransactionNoteResponse).optional(),
|
|
10681
|
+
links: zResponsePageLinks.optional(),
|
|
10682
|
+
meta: zResponseMetaNotes.optional()
|
|
10683
|
+
}).register(z.globalRegistry, {
|
|
10684
|
+
description: "A list of transaction notes"
|
|
10685
|
+
});
|
|
10686
|
+
const zCreateTransactionNoteBody = zCreateTransactionNoteRequest;
|
|
10687
|
+
const zCreateTransactionNotePath = z.object({
|
|
10688
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
10689
|
+
description: "The ID of the order"
|
|
10690
|
+
}),
|
|
10691
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
10692
|
+
description: "The ID of the transaction"
|
|
10693
|
+
})
|
|
10694
|
+
});
|
|
10695
|
+
const zCreateTransactionNoteResponse = z.object({
|
|
10696
|
+
data: zTransactionNoteResponse.optional()
|
|
10697
|
+
}).register(z.globalRegistry, {
|
|
10698
|
+
description: "Note created"
|
|
10699
|
+
});
|
|
10700
|
+
const zDeleteTransactionNotePath = z.object({
|
|
10701
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
10702
|
+
description: "The ID of the order"
|
|
10703
|
+
}),
|
|
10704
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
10705
|
+
description: "The ID of the transaction"
|
|
10706
|
+
}),
|
|
10707
|
+
noteID: z.string().register(z.globalRegistry, {
|
|
10708
|
+
description: "The ID of the note to delete"
|
|
10709
|
+
})
|
|
10710
|
+
});
|
|
10711
|
+
const zDeleteTransactionNoteResponse = z.void().register(z.globalRegistry, {
|
|
10712
|
+
description: "Successfully deleted the note"
|
|
10713
|
+
});
|
|
10714
|
+
const zGetTransactionNotePath = z.object({
|
|
10715
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
10716
|
+
description: "The ID of the order"
|
|
10717
|
+
}),
|
|
10718
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
10719
|
+
description: "The ID of the transaction"
|
|
10720
|
+
}),
|
|
10721
|
+
noteID: z.string().register(z.globalRegistry, {
|
|
10722
|
+
description: "The ID of the note"
|
|
10723
|
+
})
|
|
10724
|
+
});
|
|
10725
|
+
const zGetTransactionNoteResponse = z.object({
|
|
10726
|
+
data: zTransactionNoteResponse.optional()
|
|
10727
|
+
}).register(z.globalRegistry, {
|
|
10728
|
+
description: "Transaction note details"
|
|
10729
|
+
});
|
|
10730
|
+
const zUpdateTransactionNoteBody = zUpdateTransactionNoteRequest;
|
|
10731
|
+
const zUpdateTransactionNotePath = z.object({
|
|
10732
|
+
orderID: z.string().register(z.globalRegistry, {
|
|
10733
|
+
description: "The ID of the order"
|
|
10734
|
+
}),
|
|
10735
|
+
transactionID: z.string().register(z.globalRegistry, {
|
|
10736
|
+
description: "The ID of the transaction"
|
|
10737
|
+
}),
|
|
10738
|
+
noteID: z.string().register(z.globalRegistry, {
|
|
10739
|
+
description: "The ID of the note"
|
|
10740
|
+
})
|
|
10741
|
+
});
|
|
10742
|
+
const zUpdateTransactionNoteResponse = z.object({
|
|
10743
|
+
data: zTransactionNoteResponse.optional()
|
|
10744
|
+
}).register(z.globalRegistry, {
|
|
10745
|
+
description: "Note updated successfully"
|
|
10746
|
+
});
|
|
10621
10747
|
const zGetOrderShippingGroupsPath = z.object({
|
|
10622
10748
|
orderID: z.string().register(z.globalRegistry, {
|
|
10623
10749
|
description: "The ID of the order"
|
|
@@ -12270,6 +12396,10 @@ export {
|
|
|
12270
12396
|
zCreateSubscriptionStatePath,
|
|
12271
12397
|
zCreateSubscriptionStateResponse,
|
|
12272
12398
|
zCreateSynonymSetRequest,
|
|
12399
|
+
zCreateTransactionNoteBody,
|
|
12400
|
+
zCreateTransactionNotePath,
|
|
12401
|
+
zCreateTransactionNoteRequest,
|
|
12402
|
+
zCreateTransactionNoteResponse,
|
|
12273
12403
|
zCurrencies,
|
|
12274
12404
|
zCurrency,
|
|
12275
12405
|
zCurrencyIdentifier,
|
|
@@ -12336,6 +12466,8 @@ export {
|
|
|
12336
12466
|
zDeleteRuleByIdResponse,
|
|
12337
12467
|
zDeleteTaxItemFromCartItemComponentPath,
|
|
12338
12468
|
zDeleteTaxItemFromCartItemComponentResponse,
|
|
12469
|
+
zDeleteTransactionNotePath,
|
|
12470
|
+
zDeleteTransactionNoteResponse,
|
|
12339
12471
|
zDeleteV2AccountAddressPath,
|
|
12340
12472
|
zDeleteV2AccountAddressResponse,
|
|
12341
12473
|
zDeliveryEstimate,
|
|
@@ -12594,6 +12726,11 @@ export {
|
|
|
12594
12726
|
zGetSubscriptionResponse,
|
|
12595
12727
|
zGetSubscriptionStatePath,
|
|
12596
12728
|
zGetSubscriptionStateResponse,
|
|
12729
|
+
zGetTransactionNotePath,
|
|
12730
|
+
zGetTransactionNoteResponse,
|
|
12731
|
+
zGetTransactionNotesPath,
|
|
12732
|
+
zGetTransactionNotesQuery,
|
|
12733
|
+
zGetTransactionNotesResponse,
|
|
12597
12734
|
zGetV2AccountAddressPath,
|
|
12598
12735
|
zGetV2AccountAddressResponse,
|
|
12599
12736
|
zGetV2AccountAddressesPath,
|
|
@@ -13014,6 +13151,7 @@ export {
|
|
|
13014
13151
|
zResponseErrorResponse,
|
|
13015
13152
|
zResponseMetaCarts,
|
|
13016
13153
|
zResponseMetaCurrency,
|
|
13154
|
+
zResponseMetaNotes,
|
|
13017
13155
|
zResponseMetaOrders,
|
|
13018
13156
|
zResponsePageLinks,
|
|
13019
13157
|
zResponsePaginationPage,
|
|
@@ -13234,6 +13372,7 @@ export {
|
|
|
13234
13372
|
zTransactionEntityResponseWritable,
|
|
13235
13373
|
zTransactionListResponse,
|
|
13236
13374
|
zTransactionListResponseWritable,
|
|
13375
|
+
zTransactionNoteResponse,
|
|
13237
13376
|
zTransactionResponse,
|
|
13238
13377
|
zTransactionResponseAttributes,
|
|
13239
13378
|
zTransactionResponseWritable,
|
|
@@ -13286,6 +13425,10 @@ export {
|
|
|
13286
13425
|
zUpdateTaxItemFromCartItemComponentBody,
|
|
13287
13426
|
zUpdateTaxItemFromCartItemComponentPath,
|
|
13288
13427
|
zUpdateTaxItemFromCartItemComponentResponse,
|
|
13428
|
+
zUpdateTransactionNoteBody,
|
|
13429
|
+
zUpdateTransactionNotePath,
|
|
13430
|
+
zUpdateTransactionNoteRequest,
|
|
13431
|
+
zUpdateTransactionNoteResponse,
|
|
13289
13432
|
zUserAuthenticationInfo,
|
|
13290
13433
|
zUserAuthenticationInfoResponse,
|
|
13291
13434
|
zUserAuthenticationInfoUpdateInput,
|