@greensecurity/javascript-sdk 0.37.12 → 0.38.2
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.
- package/README.md +6 -0
- package/bin/mcp-server.js +858 -436
- package/bin/mcp-server.js.map +18 -10
- package/dist/commonjs/__tests__/organizations.test.js +42 -0
- package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +16 -0
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +4 -19
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.d.ts +26 -0
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.js +168 -0
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.d.ts +18 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js +125 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js +69 -0
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorInvoiceReceipt.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorInvoiceReceipt.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/commonjs/models/components/contact.d.ts +30 -4
- package/dist/commonjs/models/components/contact.d.ts.map +1 -1
- package/dist/commonjs/models/components/contact.js +35 -5
- package/dist/commonjs/models/components/contact.js.map +1 -1
- package/dist/commonjs/models/components/departmentmembership.d.ts +80 -0
- package/dist/commonjs/models/components/departmentmembership.d.ts.map +1 -0
- package/dist/commonjs/models/components/departmentmembership.js +123 -0
- package/dist/commonjs/models/components/departmentmembership.js.map +1 -0
- package/dist/commonjs/models/components/expand.d.ts +6 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +2 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/usersummary.d.ts +34 -0
- package/dist/commonjs/models/components/usersummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/usersummary.js +71 -0
- package/dist/commonjs/models/components/usersummary.js.map +1 -0
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts +32 -0
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.js +69 -0
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.d.ts +121 -0
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.js +155 -0
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.d.ts +103 -0
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.js +184 -0
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts +30 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.js +96 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/commonjs/sdk/organizations.d.ts +14 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +15 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +7 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +10 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +42 -0
- package/dist/esm/__tests__/organizations.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +16 -0
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +4 -19
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.d.ts +26 -0
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.js +132 -0
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.d.ts +18 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js +89 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts +8 -0
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js +33 -0
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorInvoiceReceipt.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorInvoiceReceipt.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/esm/models/components/contact.d.ts +30 -4
- package/dist/esm/models/components/contact.d.ts.map +1 -1
- package/dist/esm/models/components/contact.js +32 -4
- package/dist/esm/models/components/contact.js.map +1 -1
- package/dist/esm/models/components/departmentmembership.d.ts +80 -0
- package/dist/esm/models/components/departmentmembership.d.ts.map +1 -0
- package/dist/esm/models/components/departmentmembership.js +81 -0
- package/dist/esm/models/components/departmentmembership.js.map +1 -0
- package/dist/esm/models/components/expand.d.ts +6 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +2 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/usersummary.d.ts +34 -0
- package/dist/esm/models/components/usersummary.d.ts.map +1 -0
- package/dist/esm/models/components/usersummary.js +33 -0
- package/dist/esm/models/components/usersummary.js.map +1 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts +32 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts.map +1 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.js +31 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.d.ts +121 -0
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.d.ts.map +1 -0
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.js +113 -0
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.d.ts +103 -0
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.js +171 -0
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts +30 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.js +86 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/esm/sdk/organizations.d.ts +14 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +15 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +7 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +10 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/examples/vendorsCreateVendorRegistration.example.ts +2 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/organizations.test.ts +45 -0
- package/src/__tests__/vendors.test.ts +21 -0
- package/src/__tests__/zones.test.ts +4 -19
- package/src/funcs/organizationsListOrSearchDepartmentContacts.ts +270 -0
- package/src/funcs/vendorsGetVendorInvoiceReceipt.ts +179 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/organizationsListOrSearchDepartmentContacts.ts +44 -0
- package/src/mcp-server/tools/vendorsGetVendorInvoiceReceipt.ts +38 -0
- package/src/models/components/contact.ts +74 -8
- package/src/models/components/departmentmembership.ts +201 -0
- package/src/models/components/expand.ts +2 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/usersummary.ts +69 -0
- package/src/models/operations/getvendorinvoicereceipt.ts +71 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listorsearchdepartmentcontacts.ts +280 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/organizationsListOrSearchDepartmentContacts.ts +386 -0
- package/src/react-query/vendorsGetVendorInvoiceReceipt.ts +167 -0
- package/src/sdk/organizations.ts +28 -0
- package/src/sdk/vendors.ts +18 -0
package/README.md
CHANGED
|
@@ -284,6 +284,7 @@ run();
|
|
|
284
284
|
* [listOrSearchFacilities](docs/sdks/organizations/README.md#listorsearchfacilities) - List or search facilities
|
|
285
285
|
* [getFacility](docs/sdks/organizations/README.md#getfacility) - Get facility
|
|
286
286
|
* [listOrSearchDepartments](docs/sdks/organizations/README.md#listorsearchdepartments) - List or search departments
|
|
287
|
+
* [listOrSearchDepartmentContacts](docs/sdks/organizations/README.md#listorsearchdepartmentcontacts) - List or search department contacts
|
|
287
288
|
|
|
288
289
|
### [supportArticles](docs/sdks/supportarticles/README.md)
|
|
289
290
|
|
|
@@ -332,6 +333,7 @@ run();
|
|
|
332
333
|
* [getSubscription](docs/sdks/vendors/README.md#getsubscription) - Vendor subscription
|
|
333
334
|
* [changeSubscription](docs/sdks/vendors/README.md#changesubscription) - Change subscription
|
|
334
335
|
* [listVendorInvoices](docs/sdks/vendors/README.md#listvendorinvoices) - List vendor invoices
|
|
336
|
+
* [getVendorInvoiceReceipt](docs/sdks/vendors/README.md#getvendorinvoicereceipt) - Get invoice receipt for vendor
|
|
335
337
|
* [getVendorInvoiceDetails](docs/sdks/vendors/README.md#getvendorinvoicedetails) - Get vendor invoice details
|
|
336
338
|
* [listVendorFacilityStatuses](docs/sdks/vendors/README.md#listvendorfacilitystatuses) - List vendor facility statuses
|
|
337
339
|
* [listVendorScrubPurchases](docs/sdks/vendors/README.md#listvendorscrubpurchases) - List vendor scrub purchases
|
|
@@ -392,6 +394,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
392
394
|
- [`invoicesMakePayment`](docs/sdks/invoices/README.md#makepayment) - Make payment for the invoice
|
|
393
395
|
- [`invoicesUpdateInvoice`](docs/sdks/invoices/README.md#updateinvoice) - Update invoice
|
|
394
396
|
- [`organizationsGetFacility`](docs/sdks/organizations/README.md#getfacility) - Get facility
|
|
397
|
+
- [`organizationsListOrSearchDepartmentContacts`](docs/sdks/organizations/README.md#listorsearchdepartmentcontacts) - List or search department contacts
|
|
395
398
|
- [`organizationsListOrSearchDepartments`](docs/sdks/organizations/README.md#listorsearchdepartments) - List or search departments
|
|
396
399
|
- [`organizationsListOrSearchFacilities`](docs/sdks/organizations/README.md#listorsearchfacilities) - List or search facilities
|
|
397
400
|
- [`supportArticlesGetSupportArticle`](docs/sdks/supportarticles/README.md#getsupportarticle) - Get support article
|
|
@@ -424,6 +427,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
424
427
|
- [`vendorsGetVendorCredentialDetails`](docs/sdks/vendors/README.md#getvendorcredentialdetails) - Get Vendor Credential details
|
|
425
428
|
- [`vendorsGetVendorCredentialFile`](docs/sdks/vendors/README.md#getvendorcredentialfile) - Get vendor credential file
|
|
426
429
|
- [`vendorsGetVendorInvoiceDetails`](docs/sdks/vendors/README.md#getvendorinvoicedetails) - Get vendor invoice details
|
|
430
|
+
- [`vendorsGetVendorInvoiceReceipt`](docs/sdks/vendors/README.md#getvendorinvoicereceipt) - Get invoice receipt for vendor
|
|
427
431
|
- [`vendorsGetVendorLegalName`](docs/sdks/vendors/README.md#getvendorlegalname) - Get Vendor legal name
|
|
428
432
|
- [`vendorsGetVendorsDetails`](docs/sdks/vendors/README.md#getvendorsdetails) - Get vendors details
|
|
429
433
|
- [`vendorsListVendorAdditionalFacilityFields`](docs/sdks/vendors/README.md#listvendoradditionalfacilityfields) - List of vendor's additional facility fields
|
|
@@ -488,6 +492,7 @@ To learn about this feature and how to get started, check
|
|
|
488
492
|
- [`useInvoicesMakePaymentMutation`](docs/sdks/invoices/README.md#makepayment) - Make payment for the invoice
|
|
489
493
|
- [`useInvoicesUpdateInvoiceMutation`](docs/sdks/invoices/README.md#updateinvoice) - Update invoice
|
|
490
494
|
- [`useOrganizationsGetFacility`](docs/sdks/organizations/README.md#getfacility) - Get facility
|
|
495
|
+
- [`useOrganizationsListOrSearchDepartmentContacts`](docs/sdks/organizations/README.md#listorsearchdepartmentcontacts) - List or search department contacts
|
|
491
496
|
- [`useOrganizationsListOrSearchDepartments`](docs/sdks/organizations/README.md#listorsearchdepartments) - List or search departments
|
|
492
497
|
- [`useOrganizationsListOrSearchFacilities`](docs/sdks/organizations/README.md#listorsearchfacilities) - List or search facilities
|
|
493
498
|
- [`useSupportArticlesGetSupportArticle`](docs/sdks/supportarticles/README.md#getsupportarticle) - Get support article
|
|
@@ -520,6 +525,7 @@ To learn about this feature and how to get started, check
|
|
|
520
525
|
- [`useVendorsGetVendorCredentialDetails`](docs/sdks/vendors/README.md#getvendorcredentialdetails) - Get Vendor Credential details
|
|
521
526
|
- [`useVendorsGetVendorCredentialFile`](docs/sdks/vendors/README.md#getvendorcredentialfile) - Get vendor credential file
|
|
522
527
|
- [`useVendorsGetVendorInvoiceDetails`](docs/sdks/vendors/README.md#getvendorinvoicedetails) - Get vendor invoice details
|
|
528
|
+
- [`useVendorsGetVendorInvoiceReceipt`](docs/sdks/vendors/README.md#getvendorinvoicereceipt) - Get invoice receipt for vendor
|
|
523
529
|
- [`useVendorsGetVendorLegalName`](docs/sdks/vendors/README.md#getvendorlegalname) - Get Vendor legal name
|
|
524
530
|
- [`useVendorsGetVendorsDetails`](docs/sdks/vendors/README.md#getvendorsdetails) - Get vendors details
|
|
525
531
|
- [`useVendorsListVendorAdditionalFacilityFields`](docs/sdks/vendors/README.md#listvendoradditionalfacilityfields) - List of vendor's additional facility fields
|