@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.
@@ -44,6 +44,7 @@ __export(react_query_gen_exports, {
44
44
  createRuleMutation: () => createRuleMutation,
45
45
  createShippingGroupMutation: () => createShippingGroupMutation,
46
46
  createSubscriptionStateMutation: () => createSubscriptionStateMutation,
47
+ createTransactionNoteMutation: () => createTransactionNoteMutation,
47
48
  deleteACartItemMutation: () => deleteACartItemMutation,
48
49
  deleteACartMutation: () => deleteACartMutation,
49
50
  deleteAPromotionViaPromotionCodeMutation: () => deleteAPromotionViaPromotionCodeMutation,
@@ -59,6 +60,7 @@ __export(react_query_gen_exports, {
59
60
  deleteReleasesMutation: () => deleteReleasesMutation,
60
61
  deleteRuleByIdMutation: () => deleteRuleByIdMutation,
61
62
  deleteTaxItemFromCartItemComponentMutation: () => deleteTaxItemFromCartItemComponentMutation,
63
+ deleteTransactionNoteMutation: () => deleteTransactionNoteMutation,
62
64
  deleteV2AccountAddressMutation: () => deleteV2AccountAddressMutation,
63
65
  getACartOptions: () => getACartOptions,
64
66
  getACartQueryKey: () => getACartQueryKey,
@@ -178,6 +180,10 @@ __export(react_query_gen_exports, {
178
180
  getSubscriptionQueryKey: () => getSubscriptionQueryKey,
179
181
  getSubscriptionStateOptions: () => getSubscriptionStateOptions,
180
182
  getSubscriptionStateQueryKey: () => getSubscriptionStateQueryKey,
183
+ getTransactionNoteOptions: () => getTransactionNoteOptions,
184
+ getTransactionNoteQueryKey: () => getTransactionNoteQueryKey,
185
+ getTransactionNotesOptions: () => getTransactionNotesOptions,
186
+ getTransactionNotesQueryKey: () => getTransactionNotesQueryKey,
181
187
  getV2AccountAddressOptions: () => getV2AccountAddressOptions,
182
188
  getV2AccountAddressQueryKey: () => getV2AccountAddressQueryKey,
183
189
  getV2AccountAddressesOptions: () => getV2AccountAddressesOptions,
@@ -250,6 +256,7 @@ __export(react_query_gen_exports, {
250
256
  updateRuleMutation: () => updateRuleMutation,
251
257
  updateShippingGroupMutation: () => updateShippingGroupMutation,
252
258
  updateTaxItemFromCartItemComponentMutation: () => updateTaxItemFromCartItemComponentMutation,
259
+ updateTransactionNoteMutation: () => updateTransactionNoteMutation,
253
260
  validateCatalogRulesMutation: () => validateCatalogRulesMutation
254
261
  });
255
262
  module.exports = __toCommonJS(react_query_gen_exports);
@@ -1555,6 +1562,71 @@ const cancelATransactionMutation = (options) => {
1555
1562
  };
1556
1563
  return mutationOptions;
1557
1564
  };
1565
+ const getTransactionNotesQueryKey = (options) => createQueryKey("getTransactionNotes", options);
1566
+ const getTransactionNotesOptions = (options) => (0, import_react_query.queryOptions)({
1567
+ queryFn: async ({ queryKey, signal }) => {
1568
+ const { data } = await (0, import_sdk.getTransactionNotes)({
1569
+ ...options,
1570
+ ...queryKey[0],
1571
+ signal,
1572
+ throwOnError: true
1573
+ });
1574
+ return data;
1575
+ },
1576
+ queryKey: getTransactionNotesQueryKey(options)
1577
+ });
1578
+ const createTransactionNoteMutation = (options) => {
1579
+ const mutationOptions = {
1580
+ mutationFn: async (fnOptions) => {
1581
+ const { data } = await (0, import_sdk.createTransactionNote)({
1582
+ ...options,
1583
+ ...fnOptions,
1584
+ throwOnError: true
1585
+ });
1586
+ return data;
1587
+ }
1588
+ };
1589
+ return mutationOptions;
1590
+ };
1591
+ const deleteTransactionNoteMutation = (options) => {
1592
+ const mutationOptions = {
1593
+ mutationFn: async (fnOptions) => {
1594
+ const { data } = await (0, import_sdk.deleteTransactionNote)({
1595
+ ...options,
1596
+ ...fnOptions,
1597
+ throwOnError: true
1598
+ });
1599
+ return data;
1600
+ }
1601
+ };
1602
+ return mutationOptions;
1603
+ };
1604
+ const getTransactionNoteQueryKey = (options) => createQueryKey("getTransactionNote", options);
1605
+ const getTransactionNoteOptions = (options) => (0, import_react_query.queryOptions)({
1606
+ queryFn: async ({ queryKey, signal }) => {
1607
+ const { data } = await (0, import_sdk.getTransactionNote)({
1608
+ ...options,
1609
+ ...queryKey[0],
1610
+ signal,
1611
+ throwOnError: true
1612
+ });
1613
+ return data;
1614
+ },
1615
+ queryKey: getTransactionNoteQueryKey(options)
1616
+ });
1617
+ const updateTransactionNoteMutation = (options) => {
1618
+ const mutationOptions = {
1619
+ mutationFn: async (fnOptions) => {
1620
+ const { data } = await (0, import_sdk.updateTransactionNote)({
1621
+ ...options,
1622
+ ...fnOptions,
1623
+ throwOnError: true
1624
+ });
1625
+ return data;
1626
+ }
1627
+ };
1628
+ return mutationOptions;
1629
+ };
1558
1630
  const getOrderShippingGroupsQueryKey = (options) => createQueryKey("getOrderShippingGroups", options);
1559
1631
  const getOrderShippingGroupsOptions = (options) => (0, import_react_query.queryOptions)({
1560
1632
  queryFn: async ({ queryKey, signal }) => {
@@ -2274,6 +2346,7 @@ const postMultiSearchMutation = (options) => {
2274
2346
  createRuleMutation,
2275
2347
  createShippingGroupMutation,
2276
2348
  createSubscriptionStateMutation,
2349
+ createTransactionNoteMutation,
2277
2350
  deleteACartItemMutation,
2278
2351
  deleteACartMutation,
2279
2352
  deleteAPromotionViaPromotionCodeMutation,
@@ -2289,6 +2362,7 @@ const postMultiSearchMutation = (options) => {
2289
2362
  deleteReleasesMutation,
2290
2363
  deleteRuleByIdMutation,
2291
2364
  deleteTaxItemFromCartItemComponentMutation,
2365
+ deleteTransactionNoteMutation,
2292
2366
  deleteV2AccountAddressMutation,
2293
2367
  getACartOptions,
2294
2368
  getACartQueryKey,
@@ -2408,6 +2482,10 @@ const postMultiSearchMutation = (options) => {
2408
2482
  getSubscriptionQueryKey,
2409
2483
  getSubscriptionStateOptions,
2410
2484
  getSubscriptionStateQueryKey,
2485
+ getTransactionNoteOptions,
2486
+ getTransactionNoteQueryKey,
2487
+ getTransactionNotesOptions,
2488
+ getTransactionNotesQueryKey,
2411
2489
  getV2AccountAddressOptions,
2412
2490
  getV2AccountAddressQueryKey,
2413
2491
  getV2AccountAddressesOptions,
@@ -2480,6 +2558,7 @@ const postMultiSearchMutation = (options) => {
2480
2558
  updateRuleMutation,
2481
2559
  updateShippingGroupMutation,
2482
2560
  updateTaxItemFromCartItemComponentMutation,
2561
+ updateTransactionNoteMutation,
2483
2562
  validateCatalogRulesMutation
2484
2563
  });
2485
2564
  //# sourceMappingURL=react-query.gen.cjs.map