@ehrenkind/shopify-lib 0.2.1 → 0.3.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.
Files changed (45) hide show
  1. package/dist/generated-api-types/2025-04/admin.generated.d.ts +14 -2
  2. package/dist/generated-api-types/2025-04/admin.generated.d.ts.map +1 -1
  3. package/dist/generated-api-types/2025-04/admin.types.d.ts +12 -11
  4. package/dist/generated-api-types/2025-04/admin.types.d.ts.map +1 -1
  5. package/dist/generated-api-types/2025-04/admin.types.js +3 -3
  6. package/dist/generated-api-types/2025-04/admin.types.js.map +1 -1
  7. package/dist/index.cjs +63 -44
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +89 -39
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +2 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/index.mjs +60 -42
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/mutations/orders/cancelOrderById.d.ts +23 -0
  17. package/dist/mutations/orders/cancelOrderById.d.ts.map +1 -0
  18. package/dist/mutations/orders/cancelOrderById.js +63 -0
  19. package/dist/mutations/orders/cancelOrderById.js.map +1 -0
  20. package/dist/mutations/orders/cancelOrderById.mock.d.ts +15 -0
  21. package/dist/mutations/orders/cancelOrderById.mock.d.ts.map +1 -0
  22. package/dist/mutations/orders/cancelOrderById.mock.js +17 -0
  23. package/dist/mutations/orders/cancelOrderById.mock.js.map +1 -0
  24. package/dist/mutations/orders/cancelOrderById.test.d.ts +2 -0
  25. package/dist/mutations/orders/cancelOrderById.test.d.ts.map +1 -0
  26. package/dist/mutations/orders/cancelOrderById.test.js +42 -0
  27. package/dist/mutations/orders/cancelOrderById.test.js.map +1 -0
  28. package/dist/queries/orders/getOrderById.d.ts +2 -2
  29. package/dist/queries/orders/getOrderById.d.ts.map +1 -1
  30. package/dist/queries/orders/getOrderById.mock.d.ts +1 -1
  31. package/dist/queries/orders/getOrderById.mock.d.ts.map +1 -1
  32. package/dist/queries/orders/getOrderById.mock.js +1 -0
  33. package/dist/queries/orders/getOrderById.mock.js.map +1 -1
  34. package/dist/queries/orders/getOrderById.queries.d.ts.map +1 -1
  35. package/dist/queries/orders/getOrderById.queries.js +1 -0
  36. package/dist/queries/orders/getOrderById.queries.js.map +1 -1
  37. package/dist/utils/mswHandlers.d.ts +6 -0
  38. package/dist/utils/mswHandlers.d.ts.map +1 -1
  39. package/dist/utils/mswHandlers.js +5 -2
  40. package/dist/utils/mswHandlers.js.map +1 -1
  41. package/dist/utils/shopifyFetch.d.ts +24 -3
  42. package/dist/utils/shopifyFetch.d.ts.map +1 -1
  43. package/dist/utils/shopifyFetch.js +23 -1
  44. package/dist/utils/shopifyFetch.js.map +1 -1
  45. package/package.json +1 -1
@@ -6764,7 +6764,7 @@ export var OrderTransactionErrorCode;
6764
6764
  OrderTransactionErrorCode["AmazonPaymentsOrderReferenceCanceled"] = "AMAZON_PAYMENTS_ORDER_REFERENCE_CANCELED";
6765
6765
  /** The order was not confirmed within three hours. */
6766
6766
  OrderTransactionErrorCode["AmazonPaymentsStale"] = "AMAZON_PAYMENTS_STALE";
6767
- /** Call the card issuer. */
6767
+ /** The issuer declined the transaction, the customer should contact their issuer for more details. */
6768
6768
  OrderTransactionErrorCode["CallIssuer"] = "CALL_ISSUER";
6769
6769
  /** The card was declined. */
6770
6770
  OrderTransactionErrorCode["CardDeclined"] = "CARD_DECLINED";
@@ -6784,7 +6784,7 @@ export var OrderTransactionErrorCode;
6784
6784
  OrderTransactionErrorCode["IncorrectPin"] = "INCORRECT_PIN";
6785
6785
  /** The ZIP or postal code doesn't match the one on file. */
6786
6786
  OrderTransactionErrorCode["IncorrectZip"] = "INCORRECT_ZIP";
6787
- /** The amount is either too high or too low for the provider. */
6787
+ /** The amount is invalid. */
6788
6788
  OrderTransactionErrorCode["InvalidAmount"] = "INVALID_AMOUNT";
6789
6789
  /** The payment method is not available in the customer's country. */
6790
6790
  OrderTransactionErrorCode["InvalidCountry"] = "INVALID_COUNTRY";
@@ -11009,7 +11009,7 @@ export var WebhookSubscriptionTopic;
11009
11009
  WebhookSubscriptionTopic["CollectionsCreate"] = "COLLECTIONS_CREATE";
11010
11010
  /** The webhook topic for `collections/delete` events. Occurs whenever a collection is deleted. Requires the `read_products` scope. */
11011
11011
  WebhookSubscriptionTopic["CollectionsDelete"] = "COLLECTIONS_DELETE";
11012
- /** The webhook topic for `collections/update` events. Occurs whenever a collection is updated, including whenever products are added or removed from the collection. Occurs once if multiple products are added or removed from a collection at the same time. Requires the `read_products` scope. */
11012
+ /** The webhook topic for `collections/update` events. Occurs whenever a collection is updated, including when a product is manually added or removed from the collection or when the collection rules change. Occurs once if multiple products are manually added or removed from a collection at the same time. Not fired when attribute changes affect whether a product matches a collection's rules. Requires the `read_products` scope. */
11013
11013
  WebhookSubscriptionTopic["CollectionsUpdate"] = "COLLECTIONS_UPDATE";
11014
11014
  /** The webhook topic for `collection_listings/add` events. Occurs whenever a collection listing is added. Requires the `read_product_listings` scope. */
11015
11015
  WebhookSubscriptionTopic["CollectionListingsAdd"] = "COLLECTION_LISTINGS_ADD";