@greensecurity/javascript-sdk 0.35.3 → 0.35.7

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 (170) hide show
  1. package/README.md +9 -0
  2. package/bin/mcp-server.js +784 -371
  3. package/bin/mcp-server.js.map +14 -8
  4. package/dist/commonjs/__tests__/invoices.test.d.ts +2 -0
  5. package/dist/commonjs/__tests__/invoices.test.d.ts.map +1 -0
  6. package/dist/commonjs/__tests__/invoices.test.js +25 -0
  7. package/dist/commonjs/__tests__/invoices.test.js.map +1 -0
  8. package/dist/commonjs/__tests__/vendors.test.js +17 -0
  9. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  11. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  12. package/dist/commonjs/__tests__/zones.test.js +33 -7
  13. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  14. package/dist/commonjs/funcs/invoicesMakePayment.d.ts +17 -0
  15. package/dist/commonjs/funcs/invoicesMakePayment.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/invoicesMakePayment.js +123 -0
  17. package/dist/commonjs/funcs/invoicesMakePayment.js.map +1 -0
  18. package/dist/commonjs/funcs/vendorsUpdateVendorCredentialData.d.ts +17 -0
  19. package/dist/commonjs/funcs/vendorsUpdateVendorCredentialData.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/vendorsUpdateVendorCredentialData.js +128 -0
  21. package/dist/commonjs/funcs/vendorsUpdateVendorCredentialData.js.map +1 -0
  22. package/dist/commonjs/lib/config.d.ts +2 -2
  23. package/dist/commonjs/lib/config.js +2 -2
  24. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  25. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  26. package/dist/commonjs/mcp-server/server.js +5 -1
  27. package/dist/commonjs/mcp-server/server.js.map +1 -1
  28. package/dist/commonjs/mcp-server/tools/invoicesMakePayment.d.ts +8 -0
  29. package/dist/commonjs/mcp-server/tools/invoicesMakePayment.d.ts.map +1 -0
  30. package/dist/commonjs/mcp-server/tools/invoicesMakePayment.js +64 -0
  31. package/dist/commonjs/mcp-server/tools/invoicesMakePayment.js.map +1 -0
  32. package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorCredentialData.d.ts +8 -0
  33. package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorCredentialData.d.ts.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorCredentialData.js +64 -0
  35. package/dist/commonjs/mcp-server/tools/vendorsUpdateVendorCredentialData.js.map +1 -0
  36. package/dist/commonjs/models/components/credential.d.ts +4 -0
  37. package/dist/commonjs/models/components/credential.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/credential.js +8 -0
  39. package/dist/commonjs/models/components/credential.js.map +1 -1
  40. package/dist/commonjs/models/operations/index.d.ts +2 -0
  41. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  42. package/dist/commonjs/models/operations/index.js +2 -0
  43. package/dist/commonjs/models/operations/index.js.map +1 -1
  44. package/dist/commonjs/models/operations/makepayment.d.ts +91 -0
  45. package/dist/commonjs/models/operations/makepayment.d.ts.map +1 -0
  46. package/dist/commonjs/models/operations/makepayment.js +146 -0
  47. package/dist/commonjs/models/operations/makepayment.js.map +1 -0
  48. package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts +186 -0
  49. package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts.map +1 -0
  50. package/dist/commonjs/models/operations/updatevendorcredentialdata.js +217 -0
  51. package/dist/commonjs/models/operations/updatevendorcredentialdata.js.map +1 -0
  52. package/dist/commonjs/react-query/index.d.ts +2 -0
  53. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  54. package/dist/commonjs/react-query/index.js +2 -0
  55. package/dist/commonjs/react-query/index.js.map +1 -1
  56. package/dist/commonjs/react-query/invoicesMakePayment.d.ts +23 -0
  57. package/dist/commonjs/react-query/invoicesMakePayment.d.ts.map +1 -0
  58. package/dist/commonjs/react-query/invoicesMakePayment.js +47 -0
  59. package/dist/commonjs/react-query/invoicesMakePayment.js.map +1 -0
  60. package/dist/commonjs/react-query/vendorsUpdateVendorCredentialData.d.ts +23 -0
  61. package/dist/commonjs/react-query/vendorsUpdateVendorCredentialData.d.ts.map +1 -0
  62. package/dist/commonjs/react-query/vendorsUpdateVendorCredentialData.js +51 -0
  63. package/dist/commonjs/react-query/vendorsUpdateVendorCredentialData.js.map +1 -0
  64. package/dist/commonjs/sdk/invoices.d.ts +12 -0
  65. package/dist/commonjs/sdk/invoices.d.ts.map +1 -0
  66. package/dist/commonjs/sdk/invoices.js +22 -0
  67. package/dist/commonjs/sdk/invoices.js.map +1 -0
  68. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  69. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  70. package/dist/commonjs/sdk/sdk.js +4 -0
  71. package/dist/commonjs/sdk/sdk.js.map +1 -1
  72. package/dist/commonjs/sdk/vendors.d.ts +7 -0
  73. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  74. package/dist/commonjs/sdk/vendors.js +10 -0
  75. package/dist/commonjs/sdk/vendors.js.map +1 -1
  76. package/dist/esm/__tests__/invoices.test.d.ts +2 -0
  77. package/dist/esm/__tests__/invoices.test.d.ts.map +1 -0
  78. package/dist/esm/__tests__/invoices.test.js +23 -0
  79. package/dist/esm/__tests__/invoices.test.js.map +1 -0
  80. package/dist/esm/__tests__/vendors.test.js +17 -0
  81. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  82. package/dist/esm/__tests__/webhooks.test.js +1 -1
  83. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  84. package/dist/esm/__tests__/zones.test.js +33 -7
  85. package/dist/esm/__tests__/zones.test.js.map +1 -1
  86. package/dist/esm/funcs/invoicesMakePayment.d.ts +17 -0
  87. package/dist/esm/funcs/invoicesMakePayment.d.ts.map +1 -0
  88. package/dist/esm/funcs/invoicesMakePayment.js +87 -0
  89. package/dist/esm/funcs/invoicesMakePayment.js.map +1 -0
  90. package/dist/esm/funcs/vendorsUpdateVendorCredentialData.d.ts +17 -0
  91. package/dist/esm/funcs/vendorsUpdateVendorCredentialData.d.ts.map +1 -0
  92. package/dist/esm/funcs/vendorsUpdateVendorCredentialData.js +92 -0
  93. package/dist/esm/funcs/vendorsUpdateVendorCredentialData.js.map +1 -0
  94. package/dist/esm/lib/config.d.ts +2 -2
  95. package/dist/esm/lib/config.js +2 -2
  96. package/dist/esm/mcp-server/mcp-server.js +1 -1
  97. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  98. package/dist/esm/mcp-server/server.js +5 -1
  99. package/dist/esm/mcp-server/server.js.map +1 -1
  100. package/dist/esm/mcp-server/tools/invoicesMakePayment.d.ts +8 -0
  101. package/dist/esm/mcp-server/tools/invoicesMakePayment.d.ts.map +1 -0
  102. package/dist/esm/mcp-server/tools/invoicesMakePayment.js +28 -0
  103. package/dist/esm/mcp-server/tools/invoicesMakePayment.js.map +1 -0
  104. package/dist/esm/mcp-server/tools/vendorsUpdateVendorCredentialData.d.ts +8 -0
  105. package/dist/esm/mcp-server/tools/vendorsUpdateVendorCredentialData.d.ts.map +1 -0
  106. package/dist/esm/mcp-server/tools/vendorsUpdateVendorCredentialData.js +28 -0
  107. package/dist/esm/mcp-server/tools/vendorsUpdateVendorCredentialData.js.map +1 -0
  108. package/dist/esm/models/components/credential.d.ts +4 -0
  109. package/dist/esm/models/components/credential.d.ts.map +1 -1
  110. package/dist/esm/models/components/credential.js +8 -0
  111. package/dist/esm/models/components/credential.js.map +1 -1
  112. package/dist/esm/models/operations/index.d.ts +2 -0
  113. package/dist/esm/models/operations/index.d.ts.map +1 -1
  114. package/dist/esm/models/operations/index.js +2 -0
  115. package/dist/esm/models/operations/index.js.map +1 -1
  116. package/dist/esm/models/operations/makepayment.d.ts +91 -0
  117. package/dist/esm/models/operations/makepayment.d.ts.map +1 -0
  118. package/dist/esm/models/operations/makepayment.js +104 -0
  119. package/dist/esm/models/operations/makepayment.js.map +1 -0
  120. package/dist/esm/models/operations/updatevendorcredentialdata.d.ts +186 -0
  121. package/dist/esm/models/operations/updatevendorcredentialdata.d.ts.map +1 -0
  122. package/dist/esm/models/operations/updatevendorcredentialdata.js +177 -0
  123. package/dist/esm/models/operations/updatevendorcredentialdata.js.map +1 -0
  124. package/dist/esm/react-query/index.d.ts +2 -0
  125. package/dist/esm/react-query/index.d.ts.map +1 -1
  126. package/dist/esm/react-query/index.js +2 -0
  127. package/dist/esm/react-query/index.js.map +1 -1
  128. package/dist/esm/react-query/invoicesMakePayment.d.ts +23 -0
  129. package/dist/esm/react-query/invoicesMakePayment.d.ts.map +1 -0
  130. package/dist/esm/react-query/invoicesMakePayment.js +42 -0
  131. package/dist/esm/react-query/invoicesMakePayment.js.map +1 -0
  132. package/dist/esm/react-query/vendorsUpdateVendorCredentialData.d.ts +23 -0
  133. package/dist/esm/react-query/vendorsUpdateVendorCredentialData.d.ts.map +1 -0
  134. package/dist/esm/react-query/vendorsUpdateVendorCredentialData.js +46 -0
  135. package/dist/esm/react-query/vendorsUpdateVendorCredentialData.js.map +1 -0
  136. package/dist/esm/sdk/invoices.d.ts +12 -0
  137. package/dist/esm/sdk/invoices.d.ts.map +1 -0
  138. package/dist/esm/sdk/invoices.js +18 -0
  139. package/dist/esm/sdk/invoices.js.map +1 -0
  140. package/dist/esm/sdk/sdk.d.ts +3 -0
  141. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  142. package/dist/esm/sdk/sdk.js +4 -0
  143. package/dist/esm/sdk/sdk.js.map +1 -1
  144. package/dist/esm/sdk/vendors.d.ts +7 -0
  145. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  146. package/dist/esm/sdk/vendors.js +10 -0
  147. package/dist/esm/sdk/vendors.js.map +1 -1
  148. package/jsr.json +1 -1
  149. package/package.json +1 -1
  150. package/src/__tests__/invoices.test.ts +26 -0
  151. package/src/__tests__/vendors.test.ts +20 -0
  152. package/src/__tests__/webhooks.test.ts +1 -1
  153. package/src/__tests__/zones.test.ts +33 -7
  154. package/src/funcs/invoicesMakePayment.ts +172 -0
  155. package/src/funcs/vendorsUpdateVendorCredentialData.ts +180 -0
  156. package/src/lib/config.ts +2 -2
  157. package/src/mcp-server/mcp-server.ts +1 -1
  158. package/src/mcp-server/server.ts +5 -1
  159. package/src/mcp-server/tools/invoicesMakePayment.ts +37 -0
  160. package/src/mcp-server/tools/vendorsUpdateVendorCredentialData.ts +39 -0
  161. package/src/models/components/credential.ts +12 -0
  162. package/src/models/operations/index.ts +2 -0
  163. package/src/models/operations/makepayment.ts +217 -0
  164. package/src/models/operations/updatevendorcredentialdata.ts +305 -0
  165. package/src/react-query/index.ts +2 -0
  166. package/src/react-query/invoicesMakePayment.ts +89 -0
  167. package/src/react-query/vendorsUpdateVendorCredentialData.ts +92 -0
  168. package/src/sdk/invoices.ts +27 -0
  169. package/src/sdk/sdk.ts +6 -0
  170. package/src/sdk/vendors.ts +18 -0
package/README.md CHANGED
@@ -273,6 +273,10 @@ run();
273
273
  * [updateDataRequest](docs/sdks/datarequests/README.md#updatedatarequest) - Update vendor credential data request
274
274
 
275
275
 
276
+ ### [invoices](docs/sdks/invoices/README.md)
277
+
278
+ * [makePayment](docs/sdks/invoices/README.md#makepayment) - Make payment for the invoice
279
+
276
280
  ### [organizations](docs/sdks/organizations/README.md)
277
281
 
278
282
  * [listOrSearchFacilities](docs/sdks/organizations/README.md#listorsearchfacilities) - List or search facilities
@@ -299,6 +303,7 @@ run();
299
303
  * [listVendorJobTitles](docs/sdks/vendors/README.md#listvendorjobtitles) - List vendor job titles
300
304
  * [listVendorCredentials](docs/sdks/vendors/README.md#listvendorcredentials) - List Vendor Credentials
301
305
  * [getVendorCredentialDetails](docs/sdks/vendors/README.md#getvendorcredentialdetails) - Get Vendor Credential details
306
+ * [updateVendorCredentialData](docs/sdks/vendors/README.md#updatevendorcredentialdata) - Update vendor credential data
302
307
  * [getVendorCredentialFile](docs/sdks/vendors/README.md#getvendorcredentialfile) - Get vendor credential file
303
308
  * [updateVendorCredentialFile](docs/sdks/vendors/README.md#updatevendorcredentialfile) - Update vendor credential file
304
309
  * [deleteVendorCredentialFile](docs/sdks/vendors/README.md#deletevendorcredentialfile) - Delete vendor credential file
@@ -369,6 +374,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
369
374
  - [`dataRequestsAddDataRequestFile`](docs/sdks/datarequests/README.md#adddatarequestfile) - Add vendor credential data request
370
375
  - [`dataRequestsDeleteDataRequestFile`](docs/sdks/datarequests/README.md#deletedatarequestfile) - Delete vendor credential data request file
371
376
  - [`dataRequestsUpdateDataRequest`](docs/sdks/datarequests/README.md#updatedatarequest) - Update vendor credential data request
377
+ - [`invoicesMakePayment`](docs/sdks/invoices/README.md#makepayment) - Make payment for the invoice
372
378
  - [`organizationsGetFacility`](docs/sdks/organizations/README.md#getfacility) - Get facility
373
379
  - [`organizationsListOrSearchFacilities`](docs/sdks/organizations/README.md#listorsearchfacilities) - List or search facilities
374
380
  - [`supportArticlesGetSupportArticle`](docs/sdks/supportarticles/README.md#getsupportarticle) - Get support article
@@ -413,6 +419,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
413
419
  - [`vendorsPurchaseScrubCredits`](docs/sdks/vendors/README.md#purchasescrubcredits) - Purchase scrub credits
414
420
  - [`vendorsSendDownloadCode`](docs/sdks/vendors/README.md#senddownloadcode) - Send download code for vendor credential
415
421
  - [`vendorsSubmitVendorCredential`](docs/sdks/vendors/README.md#submitvendorcredential) - Submit vendor credential
422
+ - [`vendorsUpdateVendorCredentialData`](docs/sdks/vendors/README.md#updatevendorcredentialdata) - Update vendor credential data
416
423
  - [`vendorsUpdateVendorCredentialFile`](docs/sdks/vendors/README.md#updatevendorcredentialfile) - Update vendor credential file
417
424
  - [`vendorsUpdateVendorDetails`](docs/sdks/vendors/README.md#updatevendordetails) - Update vendor details
418
425
  - [`vendorsUpdateVendorManagedByCompany`](docs/sdks/vendors/README.md#updatevendormanagedbycompany) - Update vendor managed by company access rights
@@ -452,6 +459,7 @@ To learn about this feature and how to get started, check
452
459
  - [`useDataRequestsAddDataRequestFileMutation`](docs/sdks/datarequests/README.md#adddatarequestfile) - Add vendor credential data request
453
460
  - [`useDataRequestsDeleteDataRequestFileMutation`](docs/sdks/datarequests/README.md#deletedatarequestfile) - Delete vendor credential data request file
454
461
  - [`useDataRequestsUpdateDataRequestMutation`](docs/sdks/datarequests/README.md#updatedatarequest) - Update vendor credential data request
462
+ - [`useInvoicesMakePaymentMutation`](docs/sdks/invoices/README.md#makepayment) - Make payment for the invoice
455
463
  - [`useOrganizationsGetFacility`](docs/sdks/organizations/README.md#getfacility) - Get facility
456
464
  - [`useOrganizationsListOrSearchFacilities`](docs/sdks/organizations/README.md#listorsearchfacilities) - List or search facilities
457
465
  - [`useSupportArticlesGetSupportArticle`](docs/sdks/supportarticles/README.md#getsupportarticle) - Get support article
@@ -496,6 +504,7 @@ To learn about this feature and how to get started, check
496
504
  - [`useVendorsPurchaseScrubCreditsMutation`](docs/sdks/vendors/README.md#purchasescrubcredits) - Purchase scrub credits
497
505
  - [`useVendorsSendDownloadCodeMutation`](docs/sdks/vendors/README.md#senddownloadcode) - Send download code for vendor credential
498
506
  - [`useVendorsSubmitVendorCredentialMutation`](docs/sdks/vendors/README.md#submitvendorcredential) - Submit vendor credential
507
+ - [`useVendorsUpdateVendorCredentialDataMutation`](docs/sdks/vendors/README.md#updatevendorcredentialdata) - Update vendor credential data
499
508
  - [`useVendorsUpdateVendorCredentialFileMutation`](docs/sdks/vendors/README.md#updatevendorcredentialfile) - Update vendor credential file
500
509
  - [`useVendorsUpdateVendorDetailsMutation`](docs/sdks/vendors/README.md#updatevendordetails) - Update vendor details
501
510
  - [`useVendorsUpdateVendorManagedByCompanyMutation`](docs/sdks/vendors/README.md#updatevendormanagedbycompany) - Update vendor managed by company access rights