@voucherify/sdk 1.2.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 (56) hide show
  1. package/CHANGELOG.md +110 -0
  2. package/README.md +1258 -0
  3. package/dist/AsyncActions.d.ts +15 -0
  4. package/dist/Balance.d.ts +12 -0
  5. package/dist/Campaigns.d.ts +45 -0
  6. package/dist/ClientSide.d.ts +40 -0
  7. package/dist/Consents.d.ts +10 -0
  8. package/dist/Customers.d.ts +43 -0
  9. package/dist/Distributions.d.ts +22 -0
  10. package/dist/Events.d.ts +7 -0
  11. package/dist/Exports.d.ts +18 -0
  12. package/dist/Loyalties.d.ts +82 -0
  13. package/dist/Orders.d.ts +22 -0
  14. package/dist/Products.d.ts +54 -0
  15. package/dist/PromotionTiers.d.ts +30 -0
  16. package/dist/Promotions.d.ts +16 -0
  17. package/dist/Redemptions.d.ts +26 -0
  18. package/dist/RequestController.d.ts +20 -0
  19. package/dist/Rewards.d.ts +39 -0
  20. package/dist/Segments.d.ts +22 -0
  21. package/dist/ValidationRules.d.ts +39 -0
  22. package/dist/Validations.d.ts +13 -0
  23. package/dist/VoucherifyClientSide.d.ts +76 -0
  24. package/dist/VoucherifyError.d.ts +6 -0
  25. package/dist/VoucherifyServerSide.d.ts +111 -0
  26. package/dist/Vouchers.d.ts +64 -0
  27. package/dist/helpers.d.ts +19 -0
  28. package/dist/index.d.ts +24 -0
  29. package/dist/types/AsyncActions.d.ts +18 -0
  30. package/dist/types/Balance.d.ts +14 -0
  31. package/dist/types/Campaigns.d.ts +117 -0
  32. package/dist/types/ClientSide.d.ts +135 -0
  33. package/dist/types/Consents.d.ts +33 -0
  34. package/dist/types/Customers.d.ts +113 -0
  35. package/dist/types/Distributions.d.ts +141 -0
  36. package/dist/types/Events.d.ts +17 -0
  37. package/dist/types/Exports.d.ts +30 -0
  38. package/dist/types/Loyalties.d.ts +462 -0
  39. package/dist/types/Orders.d.ts +61 -0
  40. package/dist/types/Products.d.ts +97 -0
  41. package/dist/types/PromotionTiers.d.ts +107 -0
  42. package/dist/types/Promotions.d.ts +90 -0
  43. package/dist/types/Redemptions.d.ts +150 -0
  44. package/dist/types/Rewards.d.ts +114 -0
  45. package/dist/types/Segments.d.ts +32 -0
  46. package/dist/types/ValidationRules.d.ts +74 -0
  47. package/dist/types/Validations.d.ts +66 -0
  48. package/dist/types/Vouchers.d.ts +227 -0
  49. package/dist/types/index.d.ts +19 -0
  50. package/dist/voucherifysdk.esm.js +1567 -0
  51. package/dist/voucherifysdk.esm.js.map +1 -0
  52. package/dist/voucherifysdk.umd.development.js +1578 -0
  53. package/dist/voucherifysdk.umd.development.js.map +1 -0
  54. package/dist/voucherifysdk.umd.production.min.js +2 -0
  55. package/dist/voucherifysdk.umd.production.min.js.map +1 -0
  56. package/package.json +48 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,110 @@
1
+ # @voucherify/sdk
2
+
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`0425e2b`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0425e2b27b9bead05c828af9c6b4e369e6df2b21) [#88](https://github.com/voucherifyio/voucherify-js-sdk/pull/88) Thanks [@darekg11](https://github.com/darekg11)! - Allow to pass additional headers to requests made to Voucherify API. Custom headers can be passed via 'customHeaders' option available in VoucherifyServerSideOptions and VoucherifyClientSideOptions. Such option might prove to be useful when debugging
8
+
9
+ ## 1.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`16019cf`](https://github.com/voucherifyio/voucherify-js-sdk/commit/16019cf22b4604c609b3baac488b46a334279424) [#79](https://github.com/voucherifyio/voucherify-js-sdk/pull/79) Thanks [@mandraszyk](https://github.com/mandraszyk)! - Async Actions API support added
14
+
15
+ ## 1.0.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [`39276e4`](https://github.com/voucherifyio/voucherify-js-sdk/commit/39276e4e5d199fe4a15e0a64f55b07949c23be30) [#74](https://github.com/voucherifyio/voucherify-js-sdk/pull/74) Thanks [@pannga](https://github.com/pannga)! - Updated changesets/cli to the latest version
20
+
21
+ * [`39276e4`](https://github.com/voucherifyio/voucherify-js-sdk/commit/39276e4e5d199fe4a15e0a64f55b07949c23be30) [#74](https://github.com/voucherifyio/voucherify-js-sdk/pull/74) Thanks [@pannga](https://github.com/pannga)! - Removed \$FixMe types
22
+
23
+ - [`0d5b2c0`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0d5b2c06087f15d0bfcbd67d50ee4deaf5d9883e) [#70](https://github.com/voucherifyio/voucherify-js-sdk/pull/70) Thanks [@pannga](https://github.com/pannga)! - Updated examples and documentation.
24
+
25
+ ## 1.0.0
26
+
27
+ ### Major Changes
28
+
29
+ - [`2a00746`](https://github.com/voucherifyio/voucherify-js-sdk/commit/2a00746599004b6a649bc6d892e9adbd8f413f81) [#69](https://github.com/voucherifyio/voucherify-js-sdk/pull/69) Thanks [@pannga](https://github.com/pannga)! - The first major version combines previously maintained Voucherify Node.js SDK and Voucherify.js. See Migration Guide to see what is changed.
30
+
31
+ ### Patch Changes
32
+
33
+ - [`7c491eb`](https://github.com/voucherifyio/voucherify-js-sdk/commit/7c491eb9a3a786e044a7f5e31c1a1529157d69e8) [#19](https://github.com/voucherifyio/voucherify-js-sdk/pull/19) Thanks [@pannga](https://github.com/pannga)! - Distributions types
34
+
35
+ - Used FixMe convention for unknown types
36
+ - Added Distributions types
37
+ - Removed deprecated method
38
+ - Updated Distribution types
39
+
40
+ * [`29f69e1`](https://github.com/voucherifyio/voucherify-js-sdk/commit/29f69e1a499c1576058e915bd683812b6c7a363c) [#28](https://github.com/voucherifyio/voucherify-js-sdk/pull/28) Thanks [@pannga](https://github.com/pannga)! - Added Rewards types
41
+
42
+ - [`dec48a0`](https://github.com/voucherifyio/voucherify-js-sdk/commit/dec48a08f5d3b2907a9533c95e3e15f3d2c10dd4) [#20](https://github.com/voucherifyio/voucherify-js-sdk/pull/20) Thanks [@pannga](https://github.com/pannga)! - Added Campaigns types
43
+
44
+ * [`4d01aad`](https://github.com/voucherifyio/voucherify-js-sdk/commit/4d01aad667312797c83e027d0d871afaeb7e4d12) [#18](https://github.com/voucherifyio/voucherify-js-sdk/pull/18) Thanks [@pannga](https://github.com/pannga)! - Updated Consents types
45
+
46
+ - [`0098874`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0098874bb15c1b902fdb5f4ecff19d72beec0596) [#15](https://github.com/voucherifyio/voucherify-js-sdk/pull/15) Thanks [@pannga](https://github.com/pannga)! - Added ClientSide types
47
+
48
+ * [`1dec176`](https://github.com/voucherifyio/voucherify-js-sdk/commit/1dec176817f2d1b5e6a5c959f0cbca3c7ae63a6b) [#30](https://github.com/voucherifyio/voucherify-js-sdk/pull/30) Thanks [@pannga](https://github.com/pannga)! - Added Validation Rules types
49
+
50
+ - [`0098874`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0098874bb15c1b902fdb5f4ecff19d72beec0596) [#15](https://github.com/voucherifyio/voucherify-js-sdk/pull/15) Thanks [@pannga](https://github.com/pannga)! - Updated types for client side publish method
51
+
52
+ * [`dec48a0`](https://github.com/voucherifyio/voucherify-js-sdk/commit/dec48a08f5d3b2907a9533c95e3e15f3d2c10dd4) [#20](https://github.com/voucherifyio/voucherify-js-sdk/pull/20) Thanks [@pannga](https://github.com/pannga)! - added missing method for publishing a ceratin voucher to selected campaign
53
+
54
+ - [`18bd006`](https://github.com/voucherifyio/voucherify-js-sdk/commit/18bd0061268a44b4cf00f431d55913df8b7087ce) [#25](https://github.com/voucherifyio/voucherify-js-sdk/pull/25) Thanks [@pannga](https://github.com/pannga)! - Added Promotions types
55
+
56
+ * [`3276101`](https://github.com/voucherifyio/voucherify-js-sdk/commit/32761019b9653ea00c9af8cd76b20e8736779ddf) [#29](https://github.com/voucherifyio/voucherify-js-sdk/pull/29) Thanks [@pannga](https://github.com/pannga)! - Added Segments types & missing Segment List method
57
+
58
+ - [`93adf99`](https://github.com/voucherifyio/voucherify-js-sdk/commit/93adf99c55cc43c09e0deaf8fae025676ac3b0a7) [#23](https://github.com/voucherifyio/voucherify-js-sdk/pull/23) Thanks [@pannga](https://github.com/pannga)! - Added Orders types
59
+
60
+ * [`c27f5b2`](https://github.com/voucherifyio/voucherify-js-sdk/commit/c27f5b28651602afc5800f71bba83c9aaf7bc7fe) [#24](https://github.com/voucherifyio/voucherify-js-sdk/pull/24) Thanks [@pannga](https://github.com/pannga)! - Added Products types
61
+
62
+ - [`2321908`](https://github.com/voucherifyio/voucherify-js-sdk/commit/2321908bf2f72ad696bc97e0ceff4d34c10f106d) [#31](https://github.com/voucherifyio/voucherify-js-sdk/pull/31) Thanks [@pannga](https://github.com/pannga)! - Added Validation types
63
+
64
+ * [`0098874`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0098874bb15c1b902fdb5f4ecff19d72beec0596) [#15](https://github.com/voucherifyio/voucherify-js-sdk/pull/15) Thanks [@pannga](https://github.com/pannga)! - Used FixMe convention for unknown types
65
+
66
+ - [`e90cdec`](https://github.com/voucherifyio/voucherify-js-sdk/commit/e90cdec6a6d0f786d3a9cc5bbe7649ea5d2eec46) [#33](https://github.com/voucherifyio/voucherify-js-sdk/pull/33) Thanks [@pannga](https://github.com/pannga)! - Added Vouchers types
67
+
68
+ * [`4d01aad`](https://github.com/voucherifyio/voucherify-js-sdk/commit/4d01aad667312797c83e027d0d871afaeb7e4d12) [#18](https://github.com/voucherifyio/voucherify-js-sdk/pull/18) Thanks [@pannga](https://github.com/pannga)! - Added Consents type
69
+
70
+ - [`8628825`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8628825df7e5a2ddfd746923277d162abd4ca516) [#27](https://github.com/voucherifyio/voucherify-js-sdk/pull/27) Thanks [@pannga](https://github.com/pannga)! - Added Redemptions types
71
+
72
+ * [`0098874`](https://github.com/voucherifyio/voucherify-js-sdk/commit/0098874bb15c1b902fdb5f4ecff19d72beec0596) [#15](https://github.com/voucherifyio/voucherify-js-sdk/pull/15) Thanks [@pannga](https://github.com/pannga)! - Added missing ClientSide types
73
+
74
+ - [`022b037`](https://github.com/voucherifyio/voucherify-js-sdk/commit/022b03753898801b083f45e6633a5ed97d22c2f6) [#17](https://github.com/voucherifyio/voucherify-js-sdk/pull/17) Thanks [@pannga](https://github.com/pannga)! - Added Events types
75
+
76
+ * [`022b037`](https://github.com/voucherifyio/voucherify-js-sdk/commit/022b03753898801b083f45e6633a5ed97d22c2f6) [#17](https://github.com/voucherifyio/voucherify-js-sdk/pull/17) Thanks [@pannga](https://github.com/pannga)! - Updated Events types
77
+
78
+ - [`920b5dd`](https://github.com/voucherifyio/voucherify-js-sdk/commit/920b5dd1c95bc7b3b3b85b60d4b8aa7ebbddcaa9) [#26](https://github.com/voucherifyio/voucherify-js-sdk/pull/26) Thanks [@pannga](https://github.com/pannga)! - Added Promotion Tiers types
79
+
80
+ * [`ed1de95`](https://github.com/voucherifyio/voucherify-js-sdk/commit/ed1de95e84282971c6f3fcc0875e67d2962194b6) [#21](https://github.com/voucherifyio/voucherify-js-sdk/pull/21) Thanks [@pannga](https://github.com/pannga)! - Added Loyalties types
81
+
82
+ - [`20752b9`](https://github.com/voucherifyio/voucherify-js-sdk/commit/20752b921f824c8bbbfc4b7197b0b87612eb760d) [#22](https://github.com/voucherifyio/voucherify-js-sdk/pull/22) Thanks [@pannga](https://github.com/pannga)! - Added Exports types
83
+
84
+ ## 0.0.5
85
+
86
+ ### Patch Changes
87
+
88
+ - [`1036e5d`](https://github.com/voucherifyio/voucherify-js-sdk/commit/1036e5d7507421faf4bea80bfe6bab9cf6a5f0b3) [#12](https://github.com/voucherifyio/voucherify-js-sdk/pull/12) Thanks [@eddyw](https://github.com/eddyw)! - Generate UMD bundle
89
+
90
+ ## 0.0.4
91
+
92
+ ### Patch Changes
93
+
94
+ - [`e3285c5`](https://github.com/voucherifyio/voucherify-js-sdk/commit/e3285c5c2f20d65a4b767c3d9eebdef9172259a1) [#10](https://github.com/voucherifyio/voucherify-js-sdk/pull/10) Thanks [@eddyw](https://github.com/eddyw)! - Export missing types
95
+
96
+ - export missing type `CustomerRequest`
97
+ - export missing type `CustomersCommonListRequest`
98
+
99
+ ## 0.0.3
100
+
101
+ ### Patch Changes
102
+
103
+ - [`ca8e470`](https://github.com/voucherifyio/voucherify-js-sdk/commit/ca8e470c1cb5bfb33d642069f40f3315d89b89d2) [#6](https://github.com/voucherifyio/voucherify-js-sdk/pull/6) Thanks [@eddyw](https://github.com/eddyw)! - - Add JSDoc comments to all namespaces with links to https://docs.voucherify.io/
104
+ - setup typedoc to generate automatic documentation
105
+
106
+ ## 0.0.2
107
+
108
+ ### Patch Changes
109
+
110
+ - [`8e49408`](https://github.com/voucherifyio/voucherify-js-sdk/commit/8e494083837e8e932c26b3cad08479f4015ec2fc) [#5](https://github.com/voucherifyio/voucherify-js-sdk/pull/5) Thanks [@eddyw](https://github.com/eddyw)! - First SDK release