@greensecurity/javascript-sdk 0.44.0-beta.13 → 0.44.0-beta.14
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 +3 -0
- package/dist/commonjs/__tests__/organizations.test.js +29 -0
- package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +7 -8
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.d.ts +3 -0
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.js +9 -0
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.js.map +1 -0
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.d.ts +3 -0
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.js +9 -0
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.js.map +1 -0
- package/dist/commonjs/funcs/organizationsListFacilityVendors.d.ts +42 -0
- package/dist/commonjs/funcs/organizationsListFacilityVendors.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsListFacilityVendors.js +187 -0
- package/dist/commonjs/funcs/organizationsListFacilityVendors.js.map +1 -0
- package/dist/commonjs/index.extras.d.ts +8 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +8 -0
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts +4 -4
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts.map +1 -1
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.js +6 -4
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listfacilityvendors.d.ts +162 -0
- package/dist/commonjs/models/operations/listfacilityvendors.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listfacilityvendors.js +150 -0
- package/dist/commonjs/models/operations/listfacilityvendors.js.map +1 -0
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts +4 -4
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js +6 -7
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +1 -1
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -1
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts +2 -2
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -1
- package/dist/commonjs/react-query/organizationsListFacilityVendors.core.d.ts +42 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.core.js +99 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.d.ts +142 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.js +180 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.js.map +1 -0
- package/dist/commonjs/sdk/organizations.d.ts +28 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +29 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +29 -0
- package/dist/esm/__tests__/organizations.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +7 -8
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.d.ts +3 -0
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.d.ts.map +1 -0
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.js +6 -0
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.js.map +1 -0
- package/dist/esm/admin-funcs/vendorGetPaymentForm.d.ts +3 -0
- package/dist/esm/admin-funcs/vendorGetPaymentForm.d.ts.map +1 -0
- package/dist/esm/admin-funcs/vendorGetPaymentForm.js +6 -0
- package/dist/esm/admin-funcs/vendorGetPaymentForm.js.map +1 -0
- package/dist/esm/funcs/organizationsListFacilityVendors.d.ts +42 -0
- package/dist/esm/funcs/organizationsListFacilityVendors.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsListFacilityVendors.js +151 -0
- package/dist/esm/funcs/organizationsListFacilityVendors.js.map +1 -0
- package/dist/esm/index.extras.d.ts +8 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +8 -0
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts +4 -4
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts.map +1 -1
- package/dist/esm/models/operations/exportcompanytargetfacilities.js +5 -3
- package/dist/esm/models/operations/exportcompanytargetfacilities.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listfacilityvendors.d.ts +162 -0
- package/dist/esm/models/operations/listfacilityvendors.d.ts.map +1 -0
- package/dist/esm/models/operations/listfacilityvendors.js +109 -0
- package/dist/esm/models/operations/listfacilityvendors.js.map +1 -0
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts +4 -4
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js +4 -5
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +1 -1
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -1
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts +2 -2
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -1
- package/dist/esm/react-query/organizationsListFacilityVendors.core.d.ts +42 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.core.js +91 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.core.js.map +1 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.d.ts +142 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.js +165 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.js.map +1 -0
- package/dist/esm/sdk/organizations.d.ts +28 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +29 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/organizations.test.ts +32 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +7 -8
- package/src/admin-funcs/companyManagerGetPaymentForm.ts +6 -0
- package/src/admin-funcs/vendorGetPaymentForm.ts +6 -0
- package/src/funcs/organizationsListFacilityVendors.ts +279 -0
- package/src/index.extras.ts +13 -3
- package/src/lib/config.ts +2 -2
- package/src/models/operations/exportcompanytargetfacilities.ts +10 -7
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listfacilityvendors.ts +307 -0
- package/src/models/operations/listvendoradditionalfacilityfields.ts +26 -15
- package/src/react-query/index.ts +1 -0
- package/src/react-query/organizationsExportCompanyTargetFacilities.core.ts +3 -1
- package/src/react-query/organizationsExportCompanyTargetFacilities.ts +6 -2
- package/src/react-query/organizationsListFacilityVendors.core.ts +207 -0
- package/src/react-query/organizationsListFacilityVendors.ts +351 -0
- package/src/sdk/organizations.ts +39 -0
|
@@ -40,7 +40,7 @@ export declare function useOrganizationsExportCompanyTargetFacilitiesSuspense(re
|
|
|
40
40
|
export declare function setOrganizationsExportCompanyTargetFacilitiesData(client: QueryClient, queryKeyBase: [
|
|
41
41
|
companyId: number,
|
|
42
42
|
parameters: {
|
|
43
|
-
status?: operations.
|
|
43
|
+
status?: operations.ExportCompanyTargetFacilitiesQueryParamStatus | undefined;
|
|
44
44
|
hasIndividual?: operations.HasIndividual | undefined;
|
|
45
45
|
hasActiveIndividual?: operations.HasActiveIndividual | undefined;
|
|
46
46
|
facilityNameLike?: string | undefined;
|
|
@@ -52,7 +52,7 @@ export declare function setOrganizationsExportCompanyTargetFacilitiesData(client
|
|
|
52
52
|
export declare function invalidateOrganizationsExportCompanyTargetFacilities(client: QueryClient, queryKeyBase: TupleToPrefixes<[
|
|
53
53
|
companyId: number,
|
|
54
54
|
parameters: {
|
|
55
|
-
status?: operations.
|
|
55
|
+
status?: operations.ExportCompanyTargetFacilitiesQueryParamStatus | undefined;
|
|
56
56
|
hasIndividual?: operations.HasIndividual | undefined;
|
|
57
57
|
hasActiveIndividual?: operations.HasActiveIndividual | undefined;
|
|
58
58
|
facilityNameLike?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationsExportCompanyTargetFacilities.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsExportCompanyTargetFacilities.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EACtB,WAAW,EAEX,cAAc,EAEd,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,oDAAoD,EACpD,mDAAmD,EACnD,kDAAkD,EAClD,kDAAkD,EACnD,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,oDAAoD,EACpD,KAAK,mDAAmD,EACxD,kDAAkD,EAClD,kDAAkD,GACnD,CAAC;AAEF,MAAM,MAAM,oDAAoD,GAC5D,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;;;;;;;;GAYG;AACH,wBAAgB,6CAA6C,CAC3D,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,gBAAgB,CACxB,mDAAmD,EACnD,oDAAoD,CACrD,GACA,cAAc,CACf,mDAAmD,EACnD,oDAAoD,CACrD,CAUA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,qDAAqD,CACnE,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,wBAAwB,CAChC,mDAAmD,EACnD,oDAAoD,CACrD,GACA,sBAAsB,CACvB,mDAAmD,EACnD,oDAAoD,CACrD,CAUA;AAED,wBAAgB,iDAAiD,CAC/D,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE;IACZ,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE;QACV,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"organizationsExportCompanyTargetFacilities.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsExportCompanyTargetFacilities.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EACtB,WAAW,EAEX,cAAc,EAEd,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,w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SAAS,CAAC;QACtC,IAAI,CAAC,EAAE,UAAU,CAAC,cAAc,GAAG,SAAS,CAAC;QAC7C,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC;QACnC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACnC;CACF,EACD,IAAI,EAAE,mDAAmD,GACxD,mDAAmD,GAAG,SAAS,CAQjE;AAED,wBAAgB,oDAAoD,CAClE,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,eAAe,CAC3B;IACE,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE;QACV,MAAM,CAAC,EACH,UAAU,CAAC,6CAA6C,GACxD,SAAS,CAAC;QACd,aAAa,CAAC,EAAE,UAAU,CAAC,aAAa,GAAG,SAAS,CAAC;QACrD,mBAAmB,CAAC,EAAE,UAAU,CAAC,mBAAmB,GAAG,SAAS,CAAC;QACjE,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACtC,IAAI,CAAC,EAAE,UAAU,CAAC,cAAc,GAAG,SAAS,CAAC;QAC7C,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC;QACnC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACnC;CACF,CACF,EACD,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAgB,uDAAuD,CACrE,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CASf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizationsExportCompanyTargetFacilities.js","sourceRoot":"","sources":["../../../src/react-query/organizationsExportCompanyTargetFacilities.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAiEH,sGAmBC;AAeD,sHAmBC;AAED,
|
|
1
|
+
{"version":3,"file":"organizationsExportCompanyTargetFacilities.js","sourceRoot":"","sources":["../../../src/react-query/organizationsExportCompanyTargetFacilities.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAiEH,sGAmBC;AAeD,sHAmBC;AAED,8GAyBC;AAED,oHA6BC;AAED,0HAYC;AA5LD,uDAO+B;AAa/B,+CAAwD;AAMxD,6HAK8D;AAE5D,qIANA,yGAAoD,OAMA;AAEpD,mIANA,uGAAkD,OAMA;AAClD,mIANA,uGAAkD,OAMA;AAcpD;;;;;;;;;;;;GAYG;AACH,SAAgB,6CAA6C,CAC3D,OAAwD,EACxD,OAGC;IAKD,MAAM,MAAM,GAAG,IAAA,qCAAuB,GAAE,CAAC;IACzC,OAAO,IAAA,sBAAQ,EAAC;QACd,GAAG,IAAA,yGAAoD,EACrD,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,qDAAqD,CACnE,OAAwD,EACxD,OAGC;IAKD,MAAM,MAAM,GAAG,IAAA,qCAAuB,GAAE,CAAC;IACzC,OAAO,IAAA,8BAAgB,EAAC;QACtB,GAAG,IAAA,yGAAoD,EACrD,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,iDAAiD,CAC/D,MAAmB,EACnB,YAaC,EACD,IAAyD;IAEzD,MAAM,GAAG,GAAG,IAAA,uGAAkD,EAC5D,GAAG,YAAY,CAChB,CAAC;IAEF,OAAO,MAAM,CAAC,YAAY,CAExB,GAAG,EAAE,IAAI,CAAC,CAAC;AACf,CAAC;AAED,SAAgB,oDAAoD,CAClE,MAAmB,EACnB,YAeC,EACD,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,eAAe;YACf,+BAA+B;YAC/B,GAAG,YAAY;SAChB;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,uDAAuD,CACrE,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,eAAe;YACf,+BAA+B;SAChC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { QueryClient, QueryFunctionContext, QueryKey } from "@tanstack/react-query";
|
|
2
|
+
import { GreenSecurityCore } from "../core.js";
|
|
3
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
4
|
+
import * as components from "../models/components/index.js";
|
|
5
|
+
import * as operations from "../models/operations/index.js";
|
|
6
|
+
import { PageIterator } from "../types/operations.js";
|
|
7
|
+
export type OrganizationsListFacilityVendorsQueryData = operations.ListFacilityVendorsResponse;
|
|
8
|
+
export type OrganizationsListFacilityVendorsInfiniteQueryData = PageIterator<operations.ListFacilityVendorsResponse, {
|
|
9
|
+
page: number;
|
|
10
|
+
}>;
|
|
11
|
+
export type OrganizationsListFacilityVendorsPageParams = PageIterator<operations.ListFacilityVendorsResponse, {
|
|
12
|
+
page: number;
|
|
13
|
+
}>["~next"];
|
|
14
|
+
export declare function prefetchOrganizationsListFacilityVendors(queryClient: QueryClient, client$: GreenSecurityCore, request: operations.ListFacilityVendorsRequest, options?: RequestOptions): Promise<void>;
|
|
15
|
+
export declare function prefetchOrganizationsListFacilityVendorsInfinite(queryClient: QueryClient, client$: GreenSecurityCore, request: operations.ListFacilityVendorsRequest, options?: RequestOptions): Promise<void>;
|
|
16
|
+
export declare function buildOrganizationsListFacilityVendorsQuery(client$: GreenSecurityCore, request: operations.ListFacilityVendorsRequest, options?: RequestOptions): {
|
|
17
|
+
queryKey: QueryKey;
|
|
18
|
+
queryFn: (context: QueryFunctionContext) => Promise<OrganizationsListFacilityVendorsQueryData>;
|
|
19
|
+
};
|
|
20
|
+
export declare function buildOrganizationsListFacilityVendorsInfiniteQuery(client$: GreenSecurityCore, request: operations.ListFacilityVendorsRequest, options?: RequestOptions): {
|
|
21
|
+
queryKey: QueryKey;
|
|
22
|
+
queryFn: (context: QueryFunctionContext<QueryKey, OrganizationsListFacilityVendorsPageParams>) => Promise<OrganizationsListFacilityVendorsInfiniteQueryData>;
|
|
23
|
+
};
|
|
24
|
+
export declare function queryKeyOrganizationsListFacilityVendors(id: number, parameters: {
|
|
25
|
+
companyId?: number | undefined;
|
|
26
|
+
status?: operations.QueryParamStatus | undefined;
|
|
27
|
+
search?: string | undefined;
|
|
28
|
+
page?: number | undefined;
|
|
29
|
+
itemsPerPage?: number | undefined;
|
|
30
|
+
sort?: operations.ListFacilityVendorsQueryParamSort | undefined;
|
|
31
|
+
desc?: components.Desc | undefined;
|
|
32
|
+
}): QueryKey;
|
|
33
|
+
export declare function queryKeyOrganizationsListFacilityVendorsInfinite(id: number, parameters: {
|
|
34
|
+
companyId?: number | undefined;
|
|
35
|
+
status?: operations.QueryParamStatus | undefined;
|
|
36
|
+
search?: string | undefined;
|
|
37
|
+
page?: number | undefined;
|
|
38
|
+
itemsPerPage?: number | undefined;
|
|
39
|
+
sort?: operations.ListFacilityVendorsQueryParamSort | undefined;
|
|
40
|
+
desc?: components.Desc | undefined;
|
|
41
|
+
}): QueryKey;
|
|
42
|
+
//# sourceMappingURL=organizationsListFacilityVendors.core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsListFacilityVendors.core.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsListFacilityVendors.core.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,QAAQ,EACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB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Module", { value: true });
|
|
6
|
+
exports.prefetchOrganizationsListFacilityVendors = prefetchOrganizationsListFacilityVendors;
|
|
7
|
+
exports.prefetchOrganizationsListFacilityVendorsInfinite = prefetchOrganizationsListFacilityVendorsInfinite;
|
|
8
|
+
exports.buildOrganizationsListFacilityVendorsQuery = buildOrganizationsListFacilityVendorsQuery;
|
|
9
|
+
exports.buildOrganizationsListFacilityVendorsInfiniteQuery = buildOrganizationsListFacilityVendorsInfiniteQuery;
|
|
10
|
+
exports.queryKeyOrganizationsListFacilityVendors = queryKeyOrganizationsListFacilityVendors;
|
|
11
|
+
exports.queryKeyOrganizationsListFacilityVendorsInfinite = queryKeyOrganizationsListFacilityVendorsInfinite;
|
|
12
|
+
const organizationsListFacilityVendors_js_1 = require("../funcs/organizationsListFacilityVendors.js");
|
|
13
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
14
|
+
const fp_js_1 = require("../types/fp.js");
|
|
15
|
+
const operations_js_1 = require("../types/operations.js");
|
|
16
|
+
const _types_js_1 = require("./_types.js");
|
|
17
|
+
function prefetchOrganizationsListFacilityVendors(queryClient, client$, request, options) {
|
|
18
|
+
return queryClient.prefetchQuery({
|
|
19
|
+
...buildOrganizationsListFacilityVendorsQuery(client$, request, options),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function prefetchOrganizationsListFacilityVendorsInfinite(queryClient, client$, request, options) {
|
|
23
|
+
return queryClient.prefetchInfiniteQuery({
|
|
24
|
+
...buildOrganizationsListFacilityVendorsInfiniteQuery(client$, request, options),
|
|
25
|
+
initialPageParam: undefined,
|
|
26
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function buildOrganizationsListFacilityVendorsQuery(client$, request, options) {
|
|
30
|
+
return {
|
|
31
|
+
queryKey: queryKeyOrganizationsListFacilityVendors(request.id, {
|
|
32
|
+
companyId: request.companyId,
|
|
33
|
+
status: request.status,
|
|
34
|
+
search: request.search,
|
|
35
|
+
page: request.page,
|
|
36
|
+
itemsPerPage: request.itemsPerPage,
|
|
37
|
+
sort: request.sort,
|
|
38
|
+
desc: request.desc,
|
|
39
|
+
}),
|
|
40
|
+
queryFn: async function organizationsListFacilityVendorsQueryFn(ctx) {
|
|
41
|
+
const sig = (0, primitives_js_1.combineSignals)(ctx.signal, options?.signal, options?.fetchOptions?.signal);
|
|
42
|
+
const mergedOptions = {
|
|
43
|
+
...options?.fetchOptions,
|
|
44
|
+
...options,
|
|
45
|
+
signal: sig,
|
|
46
|
+
};
|
|
47
|
+
return (0, fp_js_1.unwrapAsync)((0, organizationsListFacilityVendors_js_1.organizationsListFacilityVendors)(client$, request, mergedOptions));
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function buildOrganizationsListFacilityVendorsInfiniteQuery(client$, request, options) {
|
|
52
|
+
return {
|
|
53
|
+
queryKey: queryKeyOrganizationsListFacilityVendorsInfinite(request.id, {
|
|
54
|
+
companyId: request.companyId,
|
|
55
|
+
status: request.status,
|
|
56
|
+
search: request.search,
|
|
57
|
+
page: request.page,
|
|
58
|
+
itemsPerPage: request.itemsPerPage,
|
|
59
|
+
sort: request.sort,
|
|
60
|
+
desc: request.desc,
|
|
61
|
+
}),
|
|
62
|
+
queryFn: async function organizationsListFacilityVendorsQuery(ctx) {
|
|
63
|
+
const sig = (0, primitives_js_1.combineSignals)(ctx.signal, options?.fetchOptions?.signal);
|
|
64
|
+
const mergedOptions = {
|
|
65
|
+
...options,
|
|
66
|
+
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
67
|
+
};
|
|
68
|
+
if (!ctx.pageParam) {
|
|
69
|
+
const pageResult = await (0, operations_js_1.unwrapResultIterator)((0, organizationsListFacilityVendors_js_1.organizationsListFacilityVendors)(client$, request, mergedOptions));
|
|
70
|
+
return (0, _types_js_1.pageIteratorToJSON)(pageResult);
|
|
71
|
+
}
|
|
72
|
+
const pageResult = await (0, operations_js_1.unwrapResultIterator)((0, organizationsListFacilityVendors_js_1.organizationsListFacilityVendors)(client$, {
|
|
73
|
+
...request,
|
|
74
|
+
page: ctx.pageParam.page,
|
|
75
|
+
}, mergedOptions));
|
|
76
|
+
return (0, _types_js_1.pageIteratorToJSON)(pageResult);
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function queryKeyOrganizationsListFacilityVendors(id, parameters) {
|
|
81
|
+
return [
|
|
82
|
+
"@greensecurity/javascript-sdk",
|
|
83
|
+
"organizations",
|
|
84
|
+
"listFacilityVendors",
|
|
85
|
+
id,
|
|
86
|
+
parameters,
|
|
87
|
+
];
|
|
88
|
+
}
|
|
89
|
+
function queryKeyOrganizationsListFacilityVendorsInfinite(id, parameters) {
|
|
90
|
+
return [
|
|
91
|
+
"@greensecurity/javascript-sdk",
|
|
92
|
+
"organizations",
|
|
93
|
+
"listFacilityVendors",
|
|
94
|
+
"infinite",
|
|
95
|
+
id,
|
|
96
|
+
parameters,
|
|
97
|
+
];
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=organizationsListFacilityVendors.core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsListFacilityVendors.core.js","sourceRoot":"","sources":["../../../src/react-query/organizationsListFacilityVendors.core.ts"],"names":[],"mappings":";AAAA;;GAEG;;AA6BH,4FAaC;AAED,4GAiBC;AAED,gGAyCC;AAED,gHAuDC;AAED,4FAmBC;AAED,4GAoBC;AApMD,sGAAgG;AAChG,wDAAsD;AAItD,0CAA6C;AAC7C,0DAA4E;AAC5E,2CAAiD;AAcjD,SAAgB,wCAAwC,CACtD,WAAwB,EACxB,OAA0B,EAC1B,OAA8C,EAC9C,OAAwB;IAExB,OAAO,WAAW,CAAC,aAAa,CAAC;QAC/B,GAAG,0CAA0C,CAC3C,OAAO,EACP,OAAO,EACP,OAAO,CACR;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,gDAAgD,CAC9D,WAAwB,EACxB,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OAAO;QACL,+BAA+B;QAC/B,eAAe;QACf,qBAAqB;QACrB,UAAU;QACV,EAAE;QACF,UAAU;KACX,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { InfiniteData, InvalidateQueryFilters, QueryClient, UseInfiniteQueryResult, UseQueryResult, UseSuspenseInfiniteQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
2
|
+
import * as components from "../models/components/index.js";
|
|
3
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { InfiniteQueryHookOptions, QueryHookOptions, SuspenseInfiniteQueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
|
|
10
|
+
import { buildOrganizationsListFacilityVendorsInfiniteQuery, buildOrganizationsListFacilityVendorsQuery, OrganizationsListFacilityVendorsInfiniteQueryData, OrganizationsListFacilityVendorsPageParams, OrganizationsListFacilityVendorsQueryData, prefetchOrganizationsListFacilityVendors, prefetchOrganizationsListFacilityVendorsInfinite, queryKeyOrganizationsListFacilityVendors, queryKeyOrganizationsListFacilityVendorsInfinite } from "./organizationsListFacilityVendors.core.js";
|
|
11
|
+
export { buildOrganizationsListFacilityVendorsInfiniteQuery, buildOrganizationsListFacilityVendorsQuery, type OrganizationsListFacilityVendorsInfiniteQueryData, type OrganizationsListFacilityVendorsPageParams, type OrganizationsListFacilityVendorsQueryData, prefetchOrganizationsListFacilityVendors, prefetchOrganizationsListFacilityVendorsInfinite, queryKeyOrganizationsListFacilityVendors, queryKeyOrganizationsListFacilityVendorsInfinite, };
|
|
12
|
+
export type OrganizationsListFacilityVendorsQueryError = errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
13
|
+
/**
|
|
14
|
+
* List vendors targeting a facility
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
18
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
19
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
20
|
+
* last visit to this facility, their facility access status, and any
|
|
21
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
22
|
+
* is where the "Employee ID" column on the UI lives).
|
|
23
|
+
*
|
|
24
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
25
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
26
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
27
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
28
|
+
* requirement).
|
|
29
|
+
*
|
|
30
|
+
* Access control:
|
|
31
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
32
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
33
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
34
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
35
|
+
* must be activated for the caller's marketplace app
|
|
36
|
+
* (`MarketplaceAppActivation`).
|
|
37
|
+
*/
|
|
38
|
+
export declare function useOrganizationsListFacilityVendors(request: operations.ListFacilityVendorsRequest, options?: QueryHookOptions<OrganizationsListFacilityVendorsQueryData, OrganizationsListFacilityVendorsQueryError>): UseQueryResult<OrganizationsListFacilityVendorsQueryData, OrganizationsListFacilityVendorsQueryError>;
|
|
39
|
+
/**
|
|
40
|
+
* List vendors targeting a facility
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
44
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
45
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
46
|
+
* last visit to this facility, their facility access status, and any
|
|
47
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
48
|
+
* is where the "Employee ID" column on the UI lives).
|
|
49
|
+
*
|
|
50
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
51
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
52
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
53
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
54
|
+
* requirement).
|
|
55
|
+
*
|
|
56
|
+
* Access control:
|
|
57
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
58
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
59
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
60
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
61
|
+
* must be activated for the caller's marketplace app
|
|
62
|
+
* (`MarketplaceAppActivation`).
|
|
63
|
+
*/
|
|
64
|
+
export declare function useOrganizationsListFacilityVendorsSuspense(request: operations.ListFacilityVendorsRequest, options?: SuspenseQueryHookOptions<OrganizationsListFacilityVendorsQueryData, OrganizationsListFacilityVendorsQueryError>): UseSuspenseQueryResult<OrganizationsListFacilityVendorsQueryData, OrganizationsListFacilityVendorsQueryError>;
|
|
65
|
+
/**
|
|
66
|
+
* List vendors targeting a facility
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
70
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
71
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
72
|
+
* last visit to this facility, their facility access status, and any
|
|
73
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
74
|
+
* is where the "Employee ID" column on the UI lives).
|
|
75
|
+
*
|
|
76
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
77
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
78
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
79
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
80
|
+
* requirement).
|
|
81
|
+
*
|
|
82
|
+
* Access control:
|
|
83
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
84
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
85
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
86
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
87
|
+
* must be activated for the caller's marketplace app
|
|
88
|
+
* (`MarketplaceAppActivation`).
|
|
89
|
+
*/
|
|
90
|
+
export declare function useOrganizationsListFacilityVendorsInfinite(request: operations.ListFacilityVendorsRequest, options?: InfiniteQueryHookOptions<OrganizationsListFacilityVendorsInfiniteQueryData, OrganizationsListFacilityVendorsQueryError>): UseInfiniteQueryResult<InfiniteData<OrganizationsListFacilityVendorsInfiniteQueryData, OrganizationsListFacilityVendorsPageParams>, OrganizationsListFacilityVendorsQueryError>;
|
|
91
|
+
/**
|
|
92
|
+
* List vendors targeting a facility
|
|
93
|
+
*
|
|
94
|
+
* @remarks
|
|
95
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
96
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
97
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
98
|
+
* last visit to this facility, their facility access status, and any
|
|
99
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
100
|
+
* is where the "Employee ID" column on the UI lives).
|
|
101
|
+
*
|
|
102
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
103
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
104
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
105
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
106
|
+
* requirement).
|
|
107
|
+
*
|
|
108
|
+
* Access control:
|
|
109
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
110
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
111
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
112
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
113
|
+
* must be activated for the caller's marketplace app
|
|
114
|
+
* (`MarketplaceAppActivation`).
|
|
115
|
+
*/
|
|
116
|
+
export declare function useOrganizationsListFacilityVendorsInfiniteSuspense(request: operations.ListFacilityVendorsRequest, options?: SuspenseInfiniteQueryHookOptions<OrganizationsListFacilityVendorsInfiniteQueryData, OrganizationsListFacilityVendorsQueryError>): UseSuspenseInfiniteQueryResult<InfiniteData<OrganizationsListFacilityVendorsInfiniteQueryData, OrganizationsListFacilityVendorsPageParams>, OrganizationsListFacilityVendorsQueryError>;
|
|
117
|
+
export declare function setOrganizationsListFacilityVendorsData(client: QueryClient, queryKeyBase: [
|
|
118
|
+
id: number,
|
|
119
|
+
parameters: {
|
|
120
|
+
companyId?: number | undefined;
|
|
121
|
+
status?: operations.QueryParamStatus | undefined;
|
|
122
|
+
search?: string | undefined;
|
|
123
|
+
page?: number | undefined;
|
|
124
|
+
itemsPerPage?: number | undefined;
|
|
125
|
+
sort?: operations.ListFacilityVendorsQueryParamSort | undefined;
|
|
126
|
+
desc?: components.Desc | undefined;
|
|
127
|
+
}
|
|
128
|
+
], data: OrganizationsListFacilityVendorsQueryData): OrganizationsListFacilityVendorsQueryData | undefined;
|
|
129
|
+
export declare function invalidateOrganizationsListFacilityVendors(client: QueryClient, queryKeyBase: TupleToPrefixes<[
|
|
130
|
+
id: number,
|
|
131
|
+
parameters: {
|
|
132
|
+
companyId?: number | undefined;
|
|
133
|
+
status?: operations.QueryParamStatus | undefined;
|
|
134
|
+
search?: string | undefined;
|
|
135
|
+
page?: number | undefined;
|
|
136
|
+
itemsPerPage?: number | undefined;
|
|
137
|
+
sort?: operations.ListFacilityVendorsQueryParamSort | undefined;
|
|
138
|
+
desc?: components.Desc | undefined;
|
|
139
|
+
}
|
|
140
|
+
]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
141
|
+
export declare function invalidateAllOrganizationsListFacilityVendors(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
142
|
+
//# sourceMappingURL=organizationsListFacilityVendors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsListFacilityVendors.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsListFacilityVendors.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,WAAW,EAGX,sBAAsB,EAEtB,cAAc,EAEd,8BAA8B,EAE9B,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,gCAAgC,EAChC,wBAAwB,EACxB,eAAe,EAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kDAAkD,EAClD,0CAA0C,EAC1C,iDAAiD,EACjD,0CAA0C,EAC1C,yCAAyC,EACzC,wCAAwC,EACxC,gDAAgD,EAChD,wCAAwC,EACxC,gDAAgD,EACjD,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,kDAAkD,EAClD,0CAA0C,EAC1C,KAAK,iDAAiD,EACtD,K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M,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CASf"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.queryKeyOrganizationsListFacilityVendorsInfinite = exports.queryKeyOrganizationsListFacilityVendors = exports.prefetchOrganizationsListFacilityVendorsInfinite = exports.prefetchOrganizationsListFacilityVendors = exports.buildOrganizationsListFacilityVendorsQuery = exports.buildOrganizationsListFacilityVendorsInfiniteQuery = void 0;
|
|
7
|
+
exports.useOrganizationsListFacilityVendors = useOrganizationsListFacilityVendors;
|
|
8
|
+
exports.useOrganizationsListFacilityVendorsSuspense = useOrganizationsListFacilityVendorsSuspense;
|
|
9
|
+
exports.useOrganizationsListFacilityVendorsInfinite = useOrganizationsListFacilityVendorsInfinite;
|
|
10
|
+
exports.useOrganizationsListFacilityVendorsInfiniteSuspense = useOrganizationsListFacilityVendorsInfiniteSuspense;
|
|
11
|
+
exports.setOrganizationsListFacilityVendorsData = setOrganizationsListFacilityVendorsData;
|
|
12
|
+
exports.invalidateOrganizationsListFacilityVendors = invalidateOrganizationsListFacilityVendors;
|
|
13
|
+
exports.invalidateAllOrganizationsListFacilityVendors = invalidateAllOrganizationsListFacilityVendors;
|
|
14
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
15
|
+
const _context_js_1 = require("./_context.js");
|
|
16
|
+
const organizationsListFacilityVendors_core_js_1 = require("./organizationsListFacilityVendors.core.js");
|
|
17
|
+
Object.defineProperty(exports, "buildOrganizationsListFacilityVendorsInfiniteQuery", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsInfiniteQuery; } });
|
|
18
|
+
Object.defineProperty(exports, "buildOrganizationsListFacilityVendorsQuery", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsQuery; } });
|
|
19
|
+
Object.defineProperty(exports, "prefetchOrganizationsListFacilityVendors", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.prefetchOrganizationsListFacilityVendors; } });
|
|
20
|
+
Object.defineProperty(exports, "prefetchOrganizationsListFacilityVendorsInfinite", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.prefetchOrganizationsListFacilityVendorsInfinite; } });
|
|
21
|
+
Object.defineProperty(exports, "queryKeyOrganizationsListFacilityVendors", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.queryKeyOrganizationsListFacilityVendors; } });
|
|
22
|
+
Object.defineProperty(exports, "queryKeyOrganizationsListFacilityVendorsInfinite", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.queryKeyOrganizationsListFacilityVendorsInfinite; } });
|
|
23
|
+
/**
|
|
24
|
+
* List vendors targeting a facility
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
28
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
29
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
30
|
+
* last visit to this facility, their facility access status, and any
|
|
31
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
32
|
+
* is where the "Employee ID" column on the UI lives).
|
|
33
|
+
*
|
|
34
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
35
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
36
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
37
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
38
|
+
* requirement).
|
|
39
|
+
*
|
|
40
|
+
* Access control:
|
|
41
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
42
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
43
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
44
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
45
|
+
* must be activated for the caller's marketplace app
|
|
46
|
+
* (`MarketplaceAppActivation`).
|
|
47
|
+
*/
|
|
48
|
+
function useOrganizationsListFacilityVendors(request, options) {
|
|
49
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
50
|
+
return (0, react_query_1.useQuery)({
|
|
51
|
+
...(0, organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsQuery)(client, request, options),
|
|
52
|
+
...options,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* List vendors targeting a facility
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
60
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
61
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
62
|
+
* last visit to this facility, their facility access status, and any
|
|
63
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
64
|
+
* is where the "Employee ID" column on the UI lives).
|
|
65
|
+
*
|
|
66
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
67
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
68
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
69
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
70
|
+
* requirement).
|
|
71
|
+
*
|
|
72
|
+
* Access control:
|
|
73
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
74
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
75
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
76
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
77
|
+
* must be activated for the caller's marketplace app
|
|
78
|
+
* (`MarketplaceAppActivation`).
|
|
79
|
+
*/
|
|
80
|
+
function useOrganizationsListFacilityVendorsSuspense(request, options) {
|
|
81
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
82
|
+
return (0, react_query_1.useSuspenseQuery)({
|
|
83
|
+
...(0, organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsQuery)(client, request, options),
|
|
84
|
+
...options,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* List vendors targeting a facility
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
92
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
93
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
94
|
+
* last visit to this facility, their facility access status, and any
|
|
95
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
96
|
+
* is where the "Employee ID" column on the UI lives).
|
|
97
|
+
*
|
|
98
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
99
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
100
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
101
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
102
|
+
* requirement).
|
|
103
|
+
*
|
|
104
|
+
* Access control:
|
|
105
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
106
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
107
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
108
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
109
|
+
* must be activated for the caller's marketplace app
|
|
110
|
+
* (`MarketplaceAppActivation`).
|
|
111
|
+
*/
|
|
112
|
+
function useOrganizationsListFacilityVendorsInfinite(request, options) {
|
|
113
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
114
|
+
return (0, react_query_1.useInfiniteQuery)({
|
|
115
|
+
...(0, organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsInfiniteQuery)(client, request, options),
|
|
116
|
+
initialPageParam: options?.initialPageParam,
|
|
117
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
118
|
+
...options,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* List vendors targeting a facility
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
126
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
127
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
128
|
+
* last visit to this facility, their facility access status, and any
|
|
129
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
130
|
+
* is where the "Employee ID" column on the UI lives).
|
|
131
|
+
*
|
|
132
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
133
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
134
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
135
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
136
|
+
* requirement).
|
|
137
|
+
*
|
|
138
|
+
* Access control:
|
|
139
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
140
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
141
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
142
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
143
|
+
* must be activated for the caller's marketplace app
|
|
144
|
+
* (`MarketplaceAppActivation`).
|
|
145
|
+
*/
|
|
146
|
+
function useOrganizationsListFacilityVendorsInfiniteSuspense(request, options) {
|
|
147
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
148
|
+
return (0, react_query_1.useSuspenseInfiniteQuery)({
|
|
149
|
+
...(0, organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsInfiniteQuery)(client, request, options),
|
|
150
|
+
initialPageParam: options?.initialPageParam,
|
|
151
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
152
|
+
...options,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
function setOrganizationsListFacilityVendorsData(client, queryKeyBase, data) {
|
|
156
|
+
const key = (0, organizationsListFacilityVendors_core_js_1.queryKeyOrganizationsListFacilityVendors)(...queryKeyBase);
|
|
157
|
+
return client.setQueryData(key, data);
|
|
158
|
+
}
|
|
159
|
+
function invalidateOrganizationsListFacilityVendors(client, queryKeyBase, filters) {
|
|
160
|
+
return client.invalidateQueries({
|
|
161
|
+
...filters,
|
|
162
|
+
queryKey: [
|
|
163
|
+
"@greensecurity/javascript-sdk",
|
|
164
|
+
"organizations",
|
|
165
|
+
"listFacilityVendors",
|
|
166
|
+
...queryKeyBase,
|
|
167
|
+
],
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
function invalidateAllOrganizationsListFacilityVendors(client, filters) {
|
|
171
|
+
return client.invalidateQueries({
|
|
172
|
+
...filters,
|
|
173
|
+
queryKey: [
|
|
174
|
+
"@greensecurity/javascript-sdk",
|
|
175
|
+
"organizations",
|
|
176
|
+
"listFacilityVendors",
|
|
177
|
+
],
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=organizationsListFacilityVendors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsListFacilityVendors.js","sourceRoot":"","sources":["../../../src/react-query/organizationsListFacilityVendors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAgGH,kFAmBC;AA2BD,kGAmBC;AA2BD,kGAiCC;AA2BD,kHAiCC;AAED,0FAsBC;AAED,gGA2BC;AAED,sGAYC;AA1VD,uDAa+B;AAc/B,+CAAwD;AAQxD,yGAUoD;AAElD,mIAXA,6FAAkD,OAWA;AAClD,2HAXA,qFAA0C,OAWA;AAI1C,yHAXA,mFAAwC,OAWA;AACxC,iIAXA,2FAAgD,OAWA;AAChD,yHAXA,mFAAwC,OAWA;AACxC,iIAXA,2FAAgD,OAWA;AAclD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,mCAAmC,CACjD,OAA8C,E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zD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,uCAAuC,CACrD,MAAmB,EACnB,YAWC,EACD,IAA+C;IAE/C,MAAM,GAAG,GAAG,IAAA,mFAAwC,EAAC,GAAG,YAAY,CAAC,CAAC;IAEtE,OAAO,MAAM,CAAC,YAAY,CACxB,GAAG,EACH,IAAI,CACL,CAAC;AACJ,CAAC;AAED,SAAgB,0CAA0C,CACxD,MAAmB,EACnB,YAaC,EACD,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,eAAe;YACf,qBAAqB;YACrB,GAAG,YAAY;SAChB;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,6CAA6C,CAC3D,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,eAAe;YACf,qBAAqB;SACtB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -71,6 +71,34 @@ export declare class Organizations extends ClientSDK {
|
|
|
71
71
|
* If the export is still being generated, returns 202 with a JSON `{ ready: false }` payload.
|
|
72
72
|
*/
|
|
73
73
|
downloadCompanyTargetFacilitiesExport(request: operations.DownloadCompanyTargetFacilitiesExportRequest, options?: RequestOptions): Promise<operations.DownloadCompanyTargetFacilitiesExportResponse | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* List vendors targeting a facility
|
|
76
|
+
*
|
|
77
|
+
* @remarks
|
|
78
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
79
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
80
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
81
|
+
* last visit to this facility, their facility access status, and any
|
|
82
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
83
|
+
* is where the "Employee ID" column on the UI lives).
|
|
84
|
+
*
|
|
85
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
86
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
87
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
88
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
89
|
+
* requirement).
|
|
90
|
+
*
|
|
91
|
+
* Access control:
|
|
92
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
93
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
94
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
95
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
96
|
+
* must be activated for the caller's marketplace app
|
|
97
|
+
* (`MarketplaceAppActivation`).
|
|
98
|
+
*/
|
|
99
|
+
listFacilityVendors(request: operations.ListFacilityVendorsRequest, options?: RequestOptions): Promise<PageIterator<operations.ListFacilityVendorsResponse, {
|
|
100
|
+
page: number;
|
|
101
|
+
}>>;
|
|
74
102
|
/**
|
|
75
103
|
* List or search department contacts
|
|
76
104
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,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AU,CAAC,sCAAsC,EACjD;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CACjB,CACF;CAOF"}
|
|
@@ -8,6 +8,7 @@ const organizationsDownloadCompanyTargetFacilitiesExport_js_1 = require("../func
|
|
|
8
8
|
const organizationsExportCompanyTargetFacilities_js_1 = require("../funcs/organizationsExportCompanyTargetFacilities.js");
|
|
9
9
|
const organizationsGetCompanyTargetFacilitiesExportStatus_js_1 = require("../funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js");
|
|
10
10
|
const organizationsGetFacility_js_1 = require("../funcs/organizationsGetFacility.js");
|
|
11
|
+
const organizationsListFacilityVendors_js_1 = require("../funcs/organizationsListFacilityVendors.js");
|
|
11
12
|
const organizationsListOrSearchDepartmentContacts_js_1 = require("../funcs/organizationsListOrSearchDepartmentContacts.js");
|
|
12
13
|
const organizationsListOrSearchDepartments_js_1 = require("../funcs/organizationsListOrSearchDepartments.js");
|
|
13
14
|
const organizationsListOrSearchFacilities_js_1 = require("../funcs/organizationsListOrSearchFacilities.js");
|
|
@@ -91,6 +92,34 @@ class Organizations extends sdks_js_1.ClientSDK {
|
|
|
91
92
|
async downloadCompanyTargetFacilitiesExport(request, options) {
|
|
92
93
|
return (0, fp_js_1.unwrapAsync)((0, organizationsDownloadCompanyTargetFacilitiesExport_js_1.organizationsDownloadCompanyTargetFacilitiesExport)(this, request, options));
|
|
93
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* List vendors targeting a facility
|
|
97
|
+
*
|
|
98
|
+
* @remarks
|
|
99
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
100
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
101
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
102
|
+
* last visit to this facility, their facility access status, and any
|
|
103
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
104
|
+
* is where the "Employee ID" column on the UI lives).
|
|
105
|
+
*
|
|
106
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
107
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
108
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
109
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
110
|
+
* requirement).
|
|
111
|
+
*
|
|
112
|
+
* Access control:
|
|
113
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
114
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
115
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
116
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
117
|
+
* must be activated for the caller's marketplace app
|
|
118
|
+
* (`MarketplaceAppActivation`).
|
|
119
|
+
*/
|
|
120
|
+
async listFacilityVendors(request, options) {
|
|
121
|
+
return (0, operations_js_1.unwrapResultIterator)((0, organizationsListFacilityVendors_js_1.organizationsListFacilityVendors)(this, request, options));
|
|
122
|
+
}
|
|
94
123
|
/**
|
|
95
124
|
* List or search department contacts
|
|
96
125
|
*
|