@commercelayer/cli-plugin-triggers 4.7.1 → 4.9.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 (43) hide show
  1. package/README.md +263 -50
  2. package/lib/commands/authorization/cancel.d.ts +9 -0
  3. package/lib/commands/authorization/cancel.js +22 -0
  4. package/lib/commands/capture/cancel.d.ts +9 -0
  5. package/lib/commands/capture/cancel.js +22 -0
  6. package/lib/commands/flex_promotion/disable.d.ts +9 -0
  7. package/lib/commands/flex_promotion/disable.js +22 -0
  8. package/lib/commands/flex_promotion/enable.d.ts +9 -0
  9. package/lib/commands/flex_promotion/enable.js +22 -0
  10. package/lib/commands/flex_promotion/index.d.ts +9 -0
  11. package/lib/commands/flex_promotion/index.js +40 -0
  12. package/lib/commands/refund/forward.d.ts +9 -0
  13. package/lib/commands/refund/forward.js +22 -0
  14. package/lib/commands/refund/index.d.ts +9 -0
  15. package/lib/commands/refund/index.js +40 -0
  16. package/lib/commands/void/forward.d.ts +9 -0
  17. package/lib/commands/void/forward.js +22 -0
  18. package/lib/commands/void/index.d.ts +9 -0
  19. package/lib/commands/void/index.js +40 -0
  20. package/lib/index.js +0 -1
  21. package/lib/triggers/authorizations.d.ts +1 -1
  22. package/lib/triggers/authorizations.js +5 -0
  23. package/lib/triggers/captures.d.ts +1 -1
  24. package/lib/triggers/captures.js +5 -0
  25. package/lib/triggers/events.js +1 -1
  26. package/lib/triggers/external_gateways.js +1 -1
  27. package/lib/triggers/external_promotions.js +1 -1
  28. package/lib/triggers/external_tax_calculators.js +1 -1
  29. package/lib/triggers/flex_promotions.d.ts +3 -0
  30. package/lib/triggers/flex_promotions.js +15 -0
  31. package/lib/triggers/line_items.js +2 -2
  32. package/lib/triggers/orders.js +9 -9
  33. package/lib/triggers/refunds.d.ts +3 -0
  34. package/lib/triggers/refunds.js +10 -0
  35. package/lib/triggers/shipments.js +5 -5
  36. package/lib/triggers/shipping_methods.js +1 -1
  37. package/lib/triggers/stock_items.js +1 -1
  38. package/lib/triggers/stock_line_items.js +3 -3
  39. package/lib/triggers/voids.d.ts +3 -0
  40. package/lib/triggers/voids.js +10 -0
  41. package/lib/triggers/webhooks.js +1 -1
  42. package/oclif.manifest.json +941 -149
  43. package/package.json +14 -14
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.triggers = void 0;
4
+ exports.triggers = {
5
+ forward: {
6
+ action: 'forward',
7
+ trigger: '_forward',
8
+ description: 'Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.',
9
+ },
10
+ };
@@ -15,6 +15,6 @@ exports.triggers = {
15
15
  reset_circuit: {
16
16
  action: 'reset_circuit',
17
17
  trigger: '_reset_circuit',
18
- description: 'Send this attribute if you want to reset the circuit breaker associated to this resource to \'closed\' state and zero failures count.',
18
+ description: 'Send this attribute if you want to reset the circuit breaker associated to this resource to \'closed\' state and zero failures count. Cannot be passed by sales channels.',
19
19
  },
20
20
  };