@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.
@@ -272,6 +272,10 @@ __export(zod_gen_exports, {
272
272
  zCreateSubscriptionStatePath: () => zCreateSubscriptionStatePath,
273
273
  zCreateSubscriptionStateResponse: () => zCreateSubscriptionStateResponse,
274
274
  zCreateSynonymSetRequest: () => zCreateSynonymSetRequest,
275
+ zCreateTransactionNoteBody: () => zCreateTransactionNoteBody,
276
+ zCreateTransactionNotePath: () => zCreateTransactionNotePath,
277
+ zCreateTransactionNoteRequest: () => zCreateTransactionNoteRequest,
278
+ zCreateTransactionNoteResponse: () => zCreateTransactionNoteResponse,
275
279
  zCurrencies: () => zCurrencies,
276
280
  zCurrency: () => zCurrency,
277
281
  zCurrencyIdentifier: () => zCurrencyIdentifier,
@@ -338,6 +342,8 @@ __export(zod_gen_exports, {
338
342
  zDeleteRuleByIdResponse: () => zDeleteRuleByIdResponse,
339
343
  zDeleteTaxItemFromCartItemComponentPath: () => zDeleteTaxItemFromCartItemComponentPath,
340
344
  zDeleteTaxItemFromCartItemComponentResponse: () => zDeleteTaxItemFromCartItemComponentResponse,
345
+ zDeleteTransactionNotePath: () => zDeleteTransactionNotePath,
346
+ zDeleteTransactionNoteResponse: () => zDeleteTransactionNoteResponse,
341
347
  zDeleteV2AccountAddressPath: () => zDeleteV2AccountAddressPath,
342
348
  zDeleteV2AccountAddressResponse: () => zDeleteV2AccountAddressResponse,
343
349
  zDeliveryEstimate: () => zDeliveryEstimate,
@@ -596,6 +602,11 @@ __export(zod_gen_exports, {
596
602
  zGetSubscriptionResponse: () => zGetSubscriptionResponse,
597
603
  zGetSubscriptionStatePath: () => zGetSubscriptionStatePath,
598
604
  zGetSubscriptionStateResponse: () => zGetSubscriptionStateResponse,
605
+ zGetTransactionNotePath: () => zGetTransactionNotePath,
606
+ zGetTransactionNoteResponse: () => zGetTransactionNoteResponse,
607
+ zGetTransactionNotesPath: () => zGetTransactionNotesPath,
608
+ zGetTransactionNotesQuery: () => zGetTransactionNotesQuery,
609
+ zGetTransactionNotesResponse: () => zGetTransactionNotesResponse,
599
610
  zGetV2AccountAddressPath: () => zGetV2AccountAddressPath,
600
611
  zGetV2AccountAddressResponse: () => zGetV2AccountAddressResponse,
601
612
  zGetV2AccountAddressesPath: () => zGetV2AccountAddressesPath,
@@ -1016,6 +1027,7 @@ __export(zod_gen_exports, {
1016
1027
  zResponseErrorResponse: () => zResponseErrorResponse,
1017
1028
  zResponseMetaCarts: () => zResponseMetaCarts,
1018
1029
  zResponseMetaCurrency: () => zResponseMetaCurrency,
1030
+ zResponseMetaNotes: () => zResponseMetaNotes,
1019
1031
  zResponseMetaOrders: () => zResponseMetaOrders,
1020
1032
  zResponsePageLinks: () => zResponsePageLinks,
1021
1033
  zResponsePaginationPage: () => zResponsePaginationPage,
@@ -1236,6 +1248,7 @@ __export(zod_gen_exports, {
1236
1248
  zTransactionEntityResponseWritable: () => zTransactionEntityResponseWritable,
1237
1249
  zTransactionListResponse: () => zTransactionListResponse,
1238
1250
  zTransactionListResponseWritable: () => zTransactionListResponseWritable,
1251
+ zTransactionNoteResponse: () => zTransactionNoteResponse,
1239
1252
  zTransactionResponse: () => zTransactionResponse,
1240
1253
  zTransactionResponseAttributes: () => zTransactionResponseAttributes,
1241
1254
  zTransactionResponseWritable: () => zTransactionResponseWritable,
@@ -1288,6 +1301,10 @@ __export(zod_gen_exports, {
1288
1301
  zUpdateTaxItemFromCartItemComponentBody: () => zUpdateTaxItemFromCartItemComponentBody,
1289
1302
  zUpdateTaxItemFromCartItemComponentPath: () => zUpdateTaxItemFromCartItemComponentPath,
1290
1303
  zUpdateTaxItemFromCartItemComponentResponse: () => zUpdateTaxItemFromCartItemComponentResponse,
1304
+ zUpdateTransactionNoteBody: () => zUpdateTransactionNoteBody,
1305
+ zUpdateTransactionNotePath: () => zUpdateTransactionNotePath,
1306
+ zUpdateTransactionNoteRequest: () => zUpdateTransactionNoteRequest,
1307
+ zUpdateTransactionNoteResponse: () => zUpdateTransactionNoteResponse,
1291
1308
  zUserAuthenticationInfo: () => zUserAuthenticationInfo,
1292
1309
  zUserAuthenticationInfoResponse: () => zUserAuthenticationInfoResponse,
1293
1310
  zUserAuthenticationInfoUpdateInput: () => zUserAuthenticationInfoUpdateInput,
@@ -2869,15 +2886,9 @@ const zResponsePageLinks = z.object({
2869
2886
  first: z.string().register(z.globalRegistry, {
2870
2887
  description: "Always the first page."
2871
2888
  }).optional(),
2872
- last: z.string().register(z.globalRegistry, {
2873
- description: "If there is only one page, it is `null`."
2874
- }).optional(),
2875
- next: z.string().register(z.globalRegistry, {
2876
- description: "If there is only one page, it is `null`."
2877
- }).optional(),
2878
- prev: z.string().register(z.globalRegistry, {
2879
- description: "if the user is on the first page, it is `null`."
2880
- }).optional()
2889
+ last: z.string().nullish(),
2890
+ next: z.string().nullish(),
2891
+ prev: z.string().nullish()
2881
2892
  });
2882
2893
  const zResponsePaginationPage = z.object({
2883
2894
  current: z.int().register(z.globalRegistry, {
@@ -4280,6 +4291,51 @@ const zOrdersTransactionsCancelRequest = z.object({
4280
4291
  }).optional()
4281
4292
  }).optional()
4282
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
+ });
4283
4339
  const zUpdateOrderShippingGroupRequest = z.object({
4284
4340
  data: z.object({
4285
4341
  type: z.literal("shipping_group").optional(),
@@ -11822,6 +11878,9 @@ const zGetCustomerOrdersQuery = z.object({
11822
11878
  }).optional(),
11823
11879
  filter: z.string().register(z.globalRegistry, {
11824
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."
11825
11884
  }).optional()
11826
11885
  });
11827
11886
  const zGetCustomerOrdersResponse = zOrderCollectionResponse;
@@ -11926,6 +11985,90 @@ const zCancelATransactionPath = z.object({
11926
11985
  })
11927
11986
  });
11928
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
+ });
11929
12072
  const zGetOrderShippingGroupsPath = z.object({
11930
12073
  orderID: z.string().register(z.globalRegistry, {
11931
12074
  description: "The ID of the order"
@@ -13579,6 +13722,10 @@ const zGetProductsForNodeResponse = zProductListData;
13579
13722
  zCreateSubscriptionStatePath,
13580
13723
  zCreateSubscriptionStateResponse,
13581
13724
  zCreateSynonymSetRequest,
13725
+ zCreateTransactionNoteBody,
13726
+ zCreateTransactionNotePath,
13727
+ zCreateTransactionNoteRequest,
13728
+ zCreateTransactionNoteResponse,
13582
13729
  zCurrencies,
13583
13730
  zCurrency,
13584
13731
  zCurrencyIdentifier,
@@ -13645,6 +13792,8 @@ const zGetProductsForNodeResponse = zProductListData;
13645
13792
  zDeleteRuleByIdResponse,
13646
13793
  zDeleteTaxItemFromCartItemComponentPath,
13647
13794
  zDeleteTaxItemFromCartItemComponentResponse,
13795
+ zDeleteTransactionNotePath,
13796
+ zDeleteTransactionNoteResponse,
13648
13797
  zDeleteV2AccountAddressPath,
13649
13798
  zDeleteV2AccountAddressResponse,
13650
13799
  zDeliveryEstimate,
@@ -13903,6 +14052,11 @@ const zGetProductsForNodeResponse = zProductListData;
13903
14052
  zGetSubscriptionResponse,
13904
14053
  zGetSubscriptionStatePath,
13905
14054
  zGetSubscriptionStateResponse,
14055
+ zGetTransactionNotePath,
14056
+ zGetTransactionNoteResponse,
14057
+ zGetTransactionNotesPath,
14058
+ zGetTransactionNotesQuery,
14059
+ zGetTransactionNotesResponse,
13906
14060
  zGetV2AccountAddressPath,
13907
14061
  zGetV2AccountAddressResponse,
13908
14062
  zGetV2AccountAddressesPath,
@@ -14323,6 +14477,7 @@ const zGetProductsForNodeResponse = zProductListData;
14323
14477
  zResponseErrorResponse,
14324
14478
  zResponseMetaCarts,
14325
14479
  zResponseMetaCurrency,
14480
+ zResponseMetaNotes,
14326
14481
  zResponseMetaOrders,
14327
14482
  zResponsePageLinks,
14328
14483
  zResponsePaginationPage,
@@ -14543,6 +14698,7 @@ const zGetProductsForNodeResponse = zProductListData;
14543
14698
  zTransactionEntityResponseWritable,
14544
14699
  zTransactionListResponse,
14545
14700
  zTransactionListResponseWritable,
14701
+ zTransactionNoteResponse,
14546
14702
  zTransactionResponse,
14547
14703
  zTransactionResponseAttributes,
14548
14704
  zTransactionResponseWritable,
@@ -14595,6 +14751,10 @@ const zGetProductsForNodeResponse = zProductListData;
14595
14751
  zUpdateTaxItemFromCartItemComponentBody,
14596
14752
  zUpdateTaxItemFromCartItemComponentPath,
14597
14753
  zUpdateTaxItemFromCartItemComponentResponse,
14754
+ zUpdateTransactionNoteBody,
14755
+ zUpdateTransactionNotePath,
14756
+ zUpdateTransactionNoteRequest,
14757
+ zUpdateTransactionNoteResponse,
14598
14758
  zUserAuthenticationInfo,
14599
14759
  zUserAuthenticationInfoResponse,
14600
14760
  zUserAuthenticationInfoUpdateInput,