@chift/chift-nodejs 1.0.16 → 1.0.17

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 (90) hide show
  1. package/.github/workflows/ci.yml +10 -10
  2. package/CHANGELOG.md +12 -2
  3. package/README.md +3 -3
  4. package/dist/src/modules/accounting.d.ts +3 -3
  5. package/dist/src/modules/api.d.ts +4322 -2766
  6. package/dist/src/modules/consumer.d.ts +821 -512
  7. package/dist/src/modules/consumer.js +3 -0
  8. package/dist/src/modules/consumers.d.ts +4349 -2796
  9. package/dist/src/modules/datastores.d.ts +2 -2
  10. package/dist/src/modules/ecommerce.d.ts +2 -2
  11. package/dist/src/modules/integrations.d.ts +6 -6
  12. package/dist/src/modules/invoicing.d.ts +3 -3
  13. package/dist/src/modules/payment.d.ts +14 -0
  14. package/dist/src/modules/payment.js +41 -0
  15. package/dist/src/modules/sync.d.ts +3471 -2231
  16. package/dist/src/modules/sync.js +1 -1
  17. package/dist/src/modules/webhooks.d.ts +4 -1
  18. package/dist/src/types/sync.d.ts +22 -5
  19. package/dist/test/modules/accounting.test.js +58 -50
  20. package/dist/test/modules/consumer.test.js +4 -4
  21. package/dist/test/modules/consumers.test.js +4 -4
  22. package/dist/test/modules/ecommerce.test.js +23 -19
  23. package/dist/test/modules/integrations.test.js +4 -4
  24. package/dist/test/modules/invoicing.test.js +16 -9
  25. package/dist/test/modules/payment.test.d.ts +1 -0
  26. package/dist/test/modules/payment.test.js +88 -0
  27. package/dist/test/modules/pms.test.d.ts +1 -0
  28. package/dist/test/modules/pms.test.js +90 -0
  29. package/dist/test/modules/pos.test.js +31 -34
  30. package/dist/test/modules/sync.test.js +31 -19
  31. package/dist/test/modules/syncs.test.js +4 -4
  32. package/dist/test/modules/webhooks.test.js +4 -4
  33. package/package.json +1 -1
  34. package/src/modules/accounting.ts +3 -3
  35. package/src/modules/consumer.ts +4 -1
  36. package/src/modules/ecommerce.ts +4 -2
  37. package/src/modules/invoicing.ts +7 -3
  38. package/src/modules/payment.ts +59 -0
  39. package/src/modules/sync.ts +1 -1
  40. package/src/types/public-api/schema.d.ts +4071 -850
  41. package/src/types/sync.ts +20 -5
  42. package/test/modules/accounting.test.ts +69 -50
  43. package/test/modules/consumer.test.ts +5 -5
  44. package/test/modules/consumers.test.ts +4 -4
  45. package/test/modules/ecommerce.test.ts +25 -20
  46. package/test/modules/integrations.test.ts +4 -4
  47. package/test/modules/invoicing.test.ts +20 -10
  48. package/test/modules/payment.test.ts +65 -0
  49. package/test/modules/pms.test.ts +69 -0
  50. package/test/modules/pos.test.ts +32 -34
  51. package/test/modules/sync.test.ts +33 -19
  52. package/test/modules/syncs.test.ts +4 -4
  53. package/test/modules/webhooks.test.ts +4 -4
  54. package/.eslintcache +0 -1
  55. package/coverage/clover.xml +0 -1645
  56. package/coverage/coverage-final.json +0 -19
  57. package/coverage/lcov-report/base.css +0 -224
  58. package/coverage/lcov-report/block-navigation.js +0 -87
  59. package/coverage/lcov-report/favicon.png +0 -0
  60. package/coverage/lcov-report/index.html +0 -146
  61. package/coverage/lcov-report/prettify.css +0 -1
  62. package/coverage/lcov-report/prettify.js +0 -2
  63. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  64. package/coverage/lcov-report/sorter.js +0 -196
  65. package/coverage/lcov-report/src/helpers/index.html +0 -131
  66. package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
  67. package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
  68. package/coverage/lcov-report/src/index.html +0 -116
  69. package/coverage/lcov-report/src/index.ts.html +0 -88
  70. package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
  71. package/coverage/lcov-report/src/modules/api.ts.html +0 -190
  72. package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
  73. package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
  74. package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
  75. package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
  76. package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
  77. package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
  78. package/coverage/lcov-report/src/modules/index.html +0 -326
  79. package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
  80. package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
  81. package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
  82. package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
  83. package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
  84. package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
  85. package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
  86. package/coverage/lcov.info +0 -1976
  87. package/dist/src/types/public-api/schema.d.ts +0 -12003
  88. package/dist/src/types/public-api/schema.js +0 -6
  89. package/src/types/public-api/schema.ts +0 -12073
  90. package/test/set_envs.sh +0 -14
package/test/set_envs.sh DELETED
@@ -1,14 +0,0 @@
1
- #!/bin/bash
2
- export CHIFT_ACCOUNT_ID="c16e37b6-b816-4265-8924-f2aeefcbe7fe"
3
- export CHIFT_AXONAUT_CONSUMER_ID="05a68dfd-4fcd-45d5-93c5-c987587ebad5"
4
- export CHIFT_BASE_URL="https://api.chift.site"
5
- export CHIFT_CASHPAD_CONSUMER_ID="a6572100-fbb6-4d9d-a507-773dbe6b1042"
6
- export CHIFT_CLIENT_ID="IzagGvQFLKnFRsW"
7
- export CHIFT_CLIENT_SECRET="NvroyDxDjjA6ylxmotjz"
8
- export CHIFT_LIGHTSPEED_CONSUMER_ID="d0b5d8c6-b7b0-4714-af0d-eec857e91feb"
9
- export CHIFT_ODOO_CONSUMER_ID="84a6cb97-a641-43ab-ac63-d9bd7ecb85e0"
10
- export CHIFT_TEST_SYNC_ID="1174849b-f710-454b-b088-df0ea38089f7"
11
- export CHIFT_WOOCOMMERCE_CONSUMER_ID="dd168ff5-3a40-4b65-bd83-4dde1efb316b"
12
- export CHIFT_SYNC_CONSUMER_ID="05a68dfd-4fcd-45d5-93c5-c987587ebad5"
13
- export CHIFT_TEST_DATASTORE_NAME="CONTACTS"
14
- export CHIFT_TEST_DATASTORE_ID="06794cc1-011e-4a49-8f83-cf98e04ce64d"