@greensecurity/javascript-sdk 0.48.0-beta.0 → 0.48.0-beta.10
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 +1 -1
- package/dist/commonjs/__tests__/users.test.js +0 -2
- package/dist/commonjs/__tests__/users.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +6 -5
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zoneDevicesCreate.test.js +6 -0
- package/dist/commonjs/__tests__/zoneDevicesCreate.test.js.map +1 -1
- package/dist/commonjs/__tests__/zoneDevicesList.test.js +9 -1
- package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +7 -38
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/doAdmin.d.ts +4 -3
- package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/doAdmin.js +12 -8
- package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -1
- package/dist/commonjs/admin-funcs/networksCreate.d.ts +3 -0
- package/dist/commonjs/admin-funcs/networksCreate.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/networksCreate.js +10 -3
- package/dist/commonjs/admin-funcs/networksCreate.js.map +1 -1
- package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.d.ts +3 -0
- package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.js +9 -0
- package/dist/commonjs/admin-funcs/networksEmailGatewayUpdates.js.map +1 -0
- package/dist/commonjs/admin-funcs/networksUpdate.d.ts +10 -0
- package/dist/commonjs/admin-funcs/networksUpdate.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/networksUpdate.js +14 -0
- package/dist/commonjs/admin-funcs/networksUpdate.js.map +1 -0
- package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts +1 -1
- package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.d.ts +4 -1
- package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.js +3 -8
- package/dist/commonjs/admin-funcs/zoneDevicesProvisioning.js.map +1 -1
- package/dist/commonjs/funcs/alertsListAlerts.js +1 -0
- package/dist/commonjs/funcs/alertsListAlerts.js.map +1 -1
- package/dist/commonjs/funcs/invoicesConvertQuote.d.ts +4 -1
- package/dist/commonjs/funcs/invoicesConvertQuote.d.ts.map +1 -1
- package/dist/commonjs/funcs/invoicesConvertQuote.js +6 -2
- package/dist/commonjs/funcs/invoicesConvertQuote.js.map +1 -1
- package/dist/commonjs/funcs/invoicesListInvoices.d.ts +1 -0
- package/dist/commonjs/funcs/invoicesListInvoices.d.ts.map +1 -1
- package/dist/commonjs/funcs/invoicesListInvoices.js +1 -0
- package/dist/commonjs/funcs/invoicesListInvoices.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js +4 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +1 -4
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +1 -4
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +4 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +5 -1
- package/dist/commonjs/index.extras.js.map +1 -1
- 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/models/components/alert.d.ts +36 -2
- package/dist/commonjs/models/components/alert.d.ts.map +1 -1
- package/dist/commonjs/models/components/alert.js +20 -1
- package/dist/commonjs/models/components/alert.js.map +1 -1
- package/dist/commonjs/models/components/invoice.d.ts +10 -0
- package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoice.js +8 -0
- package/dist/commonjs/models/components/invoice.js.map +1 -1
- package/dist/commonjs/models/components/invoicefinancialstatus.d.ts +1 -0
- package/dist/commonjs/models/components/invoicefinancialstatus.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoicefinancialstatus.js +1 -0
- package/dist/commonjs/models/components/invoicefinancialstatus.js.map +1 -1
- package/dist/commonjs/models/components/userdetails.d.ts +0 -12
- package/dist/commonjs/models/components/userdetails.d.ts.map +1 -1
- package/dist/commonjs/models/components/userdetails.js +0 -4
- package/dist/commonjs/models/components/userdetails.js.map +1 -1
- package/dist/commonjs/models/components/userlocation.d.ts +0 -5
- package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
- package/dist/commonjs/models/components/userlocation.js +0 -4
- package/dist/commonjs/models/components/userlocation.js.map +1 -1
- package/dist/commonjs/models/operations/convertquote.d.ts +21 -0
- package/dist/commonjs/models/operations/convertquote.d.ts.map +1 -1
- package/dist/commonjs/models/operations/convertquote.js +18 -1
- package/dist/commonjs/models/operations/convertquote.js.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.d.ts +25 -0
- package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.js +10 -0
- package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts +19 -0
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.js +16 -1
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.js.map +1 -1
- package/dist/commonjs/models/operations/invoicesexport.d.ts +4 -3
- package/dist/commonjs/models/operations/invoicesexport.d.ts.map +1 -1
- package/dist/commonjs/models/operations/invoicesexport.js +2 -1
- package/dist/commonjs/models/operations/invoicesexport.js.map +1 -1
- package/dist/commonjs/models/operations/listalerts.d.ts +5 -0
- package/dist/commonjs/models/operations/listalerts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listalerts.js +2 -0
- package/dist/commonjs/models/operations/listalerts.js.map +1 -1
- package/dist/commonjs/models/operations/listinvoices.d.ts +1 -1
- package/dist/commonjs/models/operations/listvendorinvoices.d.ts +1 -1
- package/dist/commonjs/react-query/alertsListAlerts.core.d.ts +2 -0
- package/dist/commonjs/react-query/alertsListAlerts.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/alertsListAlerts.core.js +2 -0
- package/dist/commonjs/react-query/alertsListAlerts.core.js.map +1 -1
- package/dist/commonjs/react-query/alertsListAlerts.d.ts +2 -0
- package/dist/commonjs/react-query/alertsListAlerts.d.ts.map +1 -1
- package/dist/commonjs/react-query/alertsListAlerts.js.map +1 -1
- package/dist/commonjs/react-query/invoicesConvertQuote.d.ts +4 -1
- package/dist/commonjs/react-query/invoicesConvertQuote.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesConvertQuote.js +4 -1
- package/dist/commonjs/react-query/invoicesConvertQuote.js.map +1 -1
- package/dist/commonjs/react-query/invoicesListInvoices.d.ts +4 -0
- package/dist/commonjs/react-query/invoicesListInvoices.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesListInvoices.js +4 -0
- package/dist/commonjs/react-query/invoicesListInvoices.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts +3 -1
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.js +5 -2
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.core.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts +12 -2
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +1 -4
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +1 -4
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/commonjs/sdk/invoices.d.ts +5 -1
- package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/invoices.js +5 -1
- package/dist/commonjs/sdk/invoices.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +1 -4
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +1 -4
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/users.test.js +0 -2
- package/dist/esm/__tests__/users.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js +6 -5
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zoneDevicesCreate.test.js +6 -0
- package/dist/esm/__tests__/zoneDevicesCreate.test.js.map +1 -1
- package/dist/esm/__tests__/zoneDevicesList.test.js +9 -1
- package/dist/esm/__tests__/zoneDevicesList.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +7 -38
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/doAdmin.d.ts +4 -3
- package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -1
- package/dist/esm/admin-funcs/doAdmin.js +11 -8
- package/dist/esm/admin-funcs/doAdmin.js.map +1 -1
- package/dist/esm/admin-funcs/networksCreate.d.ts +3 -0
- package/dist/esm/admin-funcs/networksCreate.d.ts.map +1 -1
- package/dist/esm/admin-funcs/networksCreate.js +9 -3
- package/dist/esm/admin-funcs/networksCreate.js.map +1 -1
- package/dist/esm/admin-funcs/networksEmailGatewayUpdates.d.ts +3 -0
- package/dist/esm/admin-funcs/networksEmailGatewayUpdates.d.ts.map +1 -0
- package/dist/esm/admin-funcs/networksEmailGatewayUpdates.js +6 -0
- package/dist/esm/admin-funcs/networksEmailGatewayUpdates.js.map +1 -0
- package/dist/esm/admin-funcs/networksUpdate.d.ts +10 -0
- package/dist/esm/admin-funcs/networksUpdate.d.ts.map +1 -0
- package/dist/esm/admin-funcs/networksUpdate.js +11 -0
- package/dist/esm/admin-funcs/networksUpdate.js.map +1 -0
- package/dist/esm/admin-funcs/registerGeneralInfo.d.ts +1 -1
- package/dist/esm/admin-funcs/registerGeneralInfo.d.ts.map +1 -1
- package/dist/esm/admin-funcs/zoneDevicesProvisioning.d.ts +4 -1
- package/dist/esm/admin-funcs/zoneDevicesProvisioning.d.ts.map +1 -1
- package/dist/esm/admin-funcs/zoneDevicesProvisioning.js +3 -8
- package/dist/esm/admin-funcs/zoneDevicesProvisioning.js.map +1 -1
- package/dist/esm/funcs/alertsListAlerts.js +1 -0
- package/dist/esm/funcs/alertsListAlerts.js.map +1 -1
- package/dist/esm/funcs/invoicesConvertQuote.d.ts +4 -1
- package/dist/esm/funcs/invoicesConvertQuote.d.ts.map +1 -1
- package/dist/esm/funcs/invoicesConvertQuote.js +7 -3
- package/dist/esm/funcs/invoicesConvertQuote.js.map +1 -1
- package/dist/esm/funcs/invoicesListInvoices.d.ts +1 -0
- package/dist/esm/funcs/invoicesListInvoices.d.ts.map +1 -1
- package/dist/esm/funcs/invoicesListInvoices.js +1 -0
- package/dist/esm/funcs/invoicesListInvoices.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js +5 -1
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +1 -4
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js +1 -4
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/esm/index.extras.d.ts +4 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +5 -1
- package/dist/esm/index.extras.js.map +1 -1
- 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/models/components/alert.d.ts +36 -2
- package/dist/esm/models/components/alert.d.ts.map +1 -1
- package/dist/esm/models/components/alert.js +19 -0
- package/dist/esm/models/components/alert.js.map +1 -1
- package/dist/esm/models/components/invoice.d.ts +10 -0
- package/dist/esm/models/components/invoice.d.ts.map +1 -1
- package/dist/esm/models/components/invoice.js +8 -0
- package/dist/esm/models/components/invoice.js.map +1 -1
- package/dist/esm/models/components/invoicefinancialstatus.d.ts +1 -0
- package/dist/esm/models/components/invoicefinancialstatus.d.ts.map +1 -1
- package/dist/esm/models/components/invoicefinancialstatus.js +1 -0
- package/dist/esm/models/components/invoicefinancialstatus.js.map +1 -1
- package/dist/esm/models/components/userdetails.d.ts +0 -12
- package/dist/esm/models/components/userdetails.d.ts.map +1 -1
- package/dist/esm/models/components/userdetails.js +0 -4
- package/dist/esm/models/components/userdetails.js.map +1 -1
- package/dist/esm/models/components/userlocation.d.ts +0 -5
- package/dist/esm/models/components/userlocation.d.ts.map +1 -1
- package/dist/esm/models/components/userlocation.js +0 -4
- package/dist/esm/models/components/userlocation.js.map +1 -1
- package/dist/esm/models/operations/convertquote.d.ts +21 -0
- package/dist/esm/models/operations/convertquote.d.ts.map +1 -1
- package/dist/esm/models/operations/convertquote.js +16 -0
- package/dist/esm/models/operations/convertquote.js.map +1 -1
- package/dist/esm/models/operations/createinvoice.d.ts +25 -0
- package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/createinvoice.js +10 -0
- package/dist/esm/models/operations/createinvoice.js.map +1 -1
- package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts +19 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts.map +1 -1
- package/dist/esm/models/operations/getvendorinvoicereceipt.js +15 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.js.map +1 -1
- package/dist/esm/models/operations/invoicesexport.d.ts +4 -3
- package/dist/esm/models/operations/invoicesexport.d.ts.map +1 -1
- package/dist/esm/models/operations/invoicesexport.js +2 -1
- package/dist/esm/models/operations/invoicesexport.js.map +1 -1
- package/dist/esm/models/operations/listalerts.d.ts +5 -0
- package/dist/esm/models/operations/listalerts.d.ts.map +1 -1
- package/dist/esm/models/operations/listalerts.js +2 -0
- package/dist/esm/models/operations/listalerts.js.map +1 -1
- package/dist/esm/models/operations/listinvoices.d.ts +1 -1
- package/dist/esm/models/operations/listvendorinvoices.d.ts +1 -1
- package/dist/esm/react-query/alertsListAlerts.core.d.ts +2 -0
- package/dist/esm/react-query/alertsListAlerts.core.d.ts.map +1 -1
- package/dist/esm/react-query/alertsListAlerts.core.js +2 -0
- package/dist/esm/react-query/alertsListAlerts.core.js.map +1 -1
- package/dist/esm/react-query/alertsListAlerts.d.ts +2 -0
- package/dist/esm/react-query/alertsListAlerts.d.ts.map +1 -1
- package/dist/esm/react-query/alertsListAlerts.js.map +1 -1
- package/dist/esm/react-query/invoicesConvertQuote.d.ts +4 -1
- package/dist/esm/react-query/invoicesConvertQuote.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesConvertQuote.js +4 -1
- package/dist/esm/react-query/invoicesConvertQuote.js.map +1 -1
- package/dist/esm/react-query/invoicesListInvoices.d.ts +4 -0
- package/dist/esm/react-query/invoicesListInvoices.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesListInvoices.js +4 -0
- package/dist/esm/react-query/invoicesListInvoices.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts +3 -1
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.js +5 -2
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.core.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts +12 -2
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +1 -4
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js +1 -4
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/esm/sdk/invoices.d.ts +5 -1
- package/dist/esm/sdk/invoices.d.ts.map +1 -1
- package/dist/esm/sdk/invoices.js +5 -1
- package/dist/esm/sdk/invoices.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +1 -4
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +1 -4
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/users.test.ts +0 -2
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +6 -5
- package/src/__tests__/zoneDevicesCreate.test.ts +8 -0
- package/src/__tests__/zoneDevicesList.test.ts +9 -1
- package/src/__tests__/zones.test.ts +7 -38
- package/src/admin-funcs/doAdmin.ts +22 -12
- package/src/admin-funcs/networksCreate.ts +13 -3
- package/src/admin-funcs/networksEmailGatewayUpdates.ts +6 -0
- package/src/admin-funcs/networksUpdate.ts +28 -0
- package/src/admin-funcs/registerGeneralInfo.ts +1 -1
- package/src/admin-funcs/zoneDevicesProvisioning.ts +14 -2
- package/src/funcs/alertsListAlerts.ts +1 -0
- package/src/funcs/invoicesConvertQuote.ts +7 -3
- package/src/funcs/invoicesListInvoices.ts +1 -0
- package/src/funcs/vendorsGetVendorInvoiceReceipt.ts +6 -1
- package/src/funcs/vendorsUpdateVendorDetails.ts +1 -4
- package/src/index.extras.ts +5 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/alert.ts +51 -2
- package/src/models/components/invoice.ts +18 -0
- package/src/models/components/invoicefinancialstatus.ts +1 -0
- package/src/models/components/userdetails.ts +0 -16
- package/src/models/components/userlocation.ts +0 -9
- package/src/models/operations/convertquote.ts +46 -0
- package/src/models/operations/createinvoice.ts +35 -0
- package/src/models/operations/getvendorinvoicereceipt.ts +27 -0
- package/src/models/operations/invoicesexport.ts +4 -3
- package/src/models/operations/listalerts.ts +7 -0
- package/src/models/operations/listinvoices.ts +1 -1
- package/src/models/operations/listvendorinvoices.ts +1 -1
- package/src/react-query/alertsListAlerts.core.ts +4 -0
- package/src/react-query/alertsListAlerts.ts +2 -0
- package/src/react-query/invoicesConvertQuote.ts +4 -1
- package/src/react-query/invoicesListInvoices.ts +4 -0
- package/src/react-query/vendorsGetVendorInvoiceReceipt.core.ts +8 -2
- package/src/react-query/vendorsGetVendorInvoiceReceipt.ts +7 -2
- package/src/react-query/vendorsUpdateVendorDetails.ts +1 -4
- package/src/sdk/invoices.ts +5 -1
- package/src/sdk/vendors.ts +1 -4
|
@@ -210,6 +210,7 @@ export function setAlertsListAlertsData(
|
|
|
210
210
|
itemsPerPage?: number | undefined;
|
|
211
211
|
userIdOrMe?: string | undefined;
|
|
212
212
|
alertType?: operations.AlertType | undefined;
|
|
213
|
+
includeDismissedReminders?: boolean | undefined;
|
|
213
214
|
},
|
|
214
215
|
],
|
|
215
216
|
data: AlertsListAlertsQueryData,
|
|
@@ -229,6 +230,7 @@ export function invalidateAlertsListAlerts(
|
|
|
229
230
|
itemsPerPage?: number | undefined;
|
|
230
231
|
userIdOrMe?: string | undefined;
|
|
231
232
|
alertType?: operations.AlertType | undefined;
|
|
233
|
+
includeDismissedReminders?: boolean | undefined;
|
|
232
234
|
}]
|
|
233
235
|
>,
|
|
234
236
|
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
@@ -63,7 +63,10 @@ export type InvoicesConvertQuoteMutationError =
|
|
|
63
63
|
* invoices; a caller allowed to create the invoice but not to update the
|
|
64
64
|
* linked `VendorCredential` responds `401`.
|
|
65
65
|
*
|
|
66
|
-
*
|
|
66
|
+
* Optionally takes `send_to_company_manager`, for a quote linked to a
|
|
67
|
+
* `VendorCredential`: send `true` when the vendor is sending the
|
|
68
|
+
* converted invoice to their company managers to pay instead of paying
|
|
69
|
+
* it themselves. It follows the same rules as on `POST /invoices`.
|
|
67
70
|
*
|
|
68
71
|
* **Permissions.** Requires a valid token. This endpoint is not gated on a named permission—the caller's role and their relationship to the record decide what it returns.
|
|
69
72
|
*/
|
|
@@ -101,6 +101,7 @@ export type InvoicesListInvoicesQueryError =
|
|
|
101
101
|
* - invoice_number
|
|
102
102
|
* - date (processed date)
|
|
103
103
|
* - date_paid
|
|
104
|
+
* - date_created
|
|
104
105
|
* - financial_status
|
|
105
106
|
* - amount
|
|
106
107
|
*/
|
|
@@ -155,6 +156,7 @@ export function useInvoicesListInvoices(
|
|
|
155
156
|
* - invoice_number
|
|
156
157
|
* - date (processed date)
|
|
157
158
|
* - date_paid
|
|
159
|
+
* - date_created
|
|
158
160
|
* - financial_status
|
|
159
161
|
* - amount
|
|
160
162
|
*/
|
|
@@ -209,6 +211,7 @@ export function useInvoicesListInvoicesSuspense(
|
|
|
209
211
|
* - invoice_number
|
|
210
212
|
* - date (processed date)
|
|
211
213
|
* - date_paid
|
|
214
|
+
* - date_created
|
|
212
215
|
* - financial_status
|
|
213
216
|
* - amount
|
|
214
217
|
*/
|
|
@@ -277,6 +280,7 @@ export function useInvoicesListInvoicesInfinite(
|
|
|
277
280
|
* - invoice_number
|
|
278
281
|
* - date (processed date)
|
|
279
282
|
* - date_paid
|
|
283
|
+
* - date_created
|
|
280
284
|
* - financial_status
|
|
281
285
|
* - amount
|
|
282
286
|
*/
|
|
@@ -42,7 +42,9 @@ export function buildVendorsGetVendorInvoiceReceiptQuery(
|
|
|
42
42
|
) => Promise<VendorsGetVendorInvoiceReceiptQueryData>;
|
|
43
43
|
} {
|
|
44
44
|
return {
|
|
45
|
-
queryKey: queryKeyVendorsGetVendorInvoiceReceipt(request.id
|
|
45
|
+
queryKey: queryKeyVendorsGetVendorInvoiceReceipt(request.id, {
|
|
46
|
+
pdfType: request.pdfType,
|
|
47
|
+
}),
|
|
46
48
|
queryFn: async function vendorsGetVendorInvoiceReceiptQueryFn(
|
|
47
49
|
ctx,
|
|
48
50
|
): Promise<VendorsGetVendorInvoiceReceiptQueryData> {
|
|
@@ -66,11 +68,15 @@ export function buildVendorsGetVendorInvoiceReceiptQuery(
|
|
|
66
68
|
};
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
export function queryKeyVendorsGetVendorInvoiceReceipt(
|
|
71
|
+
export function queryKeyVendorsGetVendorInvoiceReceipt(
|
|
72
|
+
id: number,
|
|
73
|
+
parameters: { pdfType?: operations.PdfType | undefined },
|
|
74
|
+
): QueryKey {
|
|
70
75
|
return [
|
|
71
76
|
"@greensecurity/javascript-sdk",
|
|
72
77
|
"vendors",
|
|
73
78
|
"getVendorInvoiceReceipt",
|
|
74
79
|
id,
|
|
80
|
+
parameters,
|
|
75
81
|
];
|
|
76
82
|
}
|
|
@@ -112,7 +112,10 @@ export function useVendorsGetVendorInvoiceReceiptSuspense(
|
|
|
112
112
|
|
|
113
113
|
export function setVendorsGetVendorInvoiceReceiptData(
|
|
114
114
|
client: QueryClient,
|
|
115
|
-
queryKeyBase: [
|
|
115
|
+
queryKeyBase: [
|
|
116
|
+
id: number,
|
|
117
|
+
parameters: { pdfType?: operations.PdfType | undefined },
|
|
118
|
+
],
|
|
116
119
|
data: VendorsGetVendorInvoiceReceiptQueryData,
|
|
117
120
|
): VendorsGetVendorInvoiceReceiptQueryData | undefined {
|
|
118
121
|
const key = queryKeyVendorsGetVendorInvoiceReceipt(...queryKeyBase);
|
|
@@ -125,7 +128,9 @@ export function setVendorsGetVendorInvoiceReceiptData(
|
|
|
125
128
|
|
|
126
129
|
export function invalidateVendorsGetVendorInvoiceReceipt(
|
|
127
130
|
client: QueryClient,
|
|
128
|
-
queryKeyBase: TupleToPrefixes<
|
|
131
|
+
queryKeyBase: TupleToPrefixes<
|
|
132
|
+
[id: number, parameters: { pdfType?: operations.PdfType | undefined }]
|
|
133
|
+
>,
|
|
129
134
|
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
130
135
|
): Promise<void> {
|
|
131
136
|
return client.invalidateQueries({
|
|
@@ -55,15 +55,12 @@ export type VendorsUpdateVendorDetailsMutationError =
|
|
|
55
55
|
* can also remove the vendor from their company by sending `company_id: null`.
|
|
56
56
|
*
|
|
57
57
|
* From `location` this endpoint reads only `timezone`, `address1`, `address2`,
|
|
58
|
-
* `city`, `state`, `zip`, `phone`, `mobile_phone
|
|
58
|
+
* `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
|
|
59
59
|
* `country` properties of the shared `UserLocation` schema have no effect here, and
|
|
60
60
|
* updating them is not supported. `state` accepts a US state or a Canadian
|
|
61
61
|
* province—the vendor's country, set only at registration, is not editable
|
|
62
62
|
* through this endpoint.
|
|
63
63
|
*
|
|
64
|
-
* `location.personal_email` is stored lowercased, and a value that is not a valid
|
|
65
|
-
* email address, or is longer than 255 characters, gets a `422` response.
|
|
66
|
-
*
|
|
67
64
|
* Submitting `location.zip` or `location.state` cross-checks the postal code
|
|
68
65
|
* against the resulting state (using the vendor's existing value for whichever
|
|
69
66
|
* of the two you omit from the request). The server rejects a code that is not shaped like a real
|
package/src/sdk/invoices.ts
CHANGED
|
@@ -76,6 +76,7 @@ export class Invoices extends ClientSDK {
|
|
|
76
76
|
* - invoice_number
|
|
77
77
|
* - date (processed date)
|
|
78
78
|
* - date_paid
|
|
79
|
+
* - date_created
|
|
79
80
|
* - financial_status
|
|
80
81
|
* - amount
|
|
81
82
|
*/
|
|
@@ -184,7 +185,10 @@ export class Invoices extends ClientSDK {
|
|
|
184
185
|
* invoices; a caller allowed to create the invoice but not to update the
|
|
185
186
|
* linked `VendorCredential` responds `401`.
|
|
186
187
|
*
|
|
187
|
-
*
|
|
188
|
+
* Optionally takes `send_to_company_manager`, for a quote linked to a
|
|
189
|
+
* `VendorCredential`: send `true` when the vendor is sending the
|
|
190
|
+
* converted invoice to their company managers to pay instead of paying
|
|
191
|
+
* it themselves. It follows the same rules as on `POST /invoices`.
|
|
188
192
|
*
|
|
189
193
|
* **Permissions.** Requires a valid token. This endpoint is not gated on a named permission—the caller's role and their relationship to the record decide what it returns.
|
|
190
194
|
*/
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -1026,15 +1026,12 @@ export class Vendors extends ClientSDK {
|
|
|
1026
1026
|
* can also remove the vendor from their company by sending `company_id: null`.
|
|
1027
1027
|
*
|
|
1028
1028
|
* From `location` this endpoint reads only `timezone`, `address1`, `address2`,
|
|
1029
|
-
* `city`, `state`, `zip`, `phone`, `mobile_phone
|
|
1029
|
+
* `city`, `state`, `zip`, `phone`, `mobile_phone` and `fax`. The `address` and
|
|
1030
1030
|
* `country` properties of the shared `UserLocation` schema have no effect here, and
|
|
1031
1031
|
* updating them is not supported. `state` accepts a US state or a Canadian
|
|
1032
1032
|
* province—the vendor's country, set only at registration, is not editable
|
|
1033
1033
|
* through this endpoint.
|
|
1034
1034
|
*
|
|
1035
|
-
* `location.personal_email` is stored lowercased, and a value that is not a valid
|
|
1036
|
-
* email address, or is longer than 255 characters, gets a `422` response.
|
|
1037
|
-
*
|
|
1038
1035
|
* Submitting `location.zip` or `location.state` cross-checks the postal code
|
|
1039
1036
|
* against the resulting state (using the vendor's existing value for whichever
|
|
1040
1037
|
* of the two you omit from the request). The server rejects a code that is not shaped like a real
|