@greensecurity/javascript-sdk 0.44.0-beta.18 → 0.44.0-beta.19
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 +9 -0
- package/dist/commonjs/__tests__/organizations.test.js +57 -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 +27 -6
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/organizationsDownloadFacilityVendorsExport.d.ts +22 -0
- package/dist/commonjs/funcs/organizationsDownloadFacilityVendorsExport.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsDownloadFacilityVendorsExport.js +132 -0
- package/dist/commonjs/funcs/organizationsDownloadFacilityVendorsExport.js.map +1 -0
- package/dist/commonjs/funcs/organizationsExportFacilityVendors.d.ts +34 -0
- package/dist/commonjs/funcs/organizationsExportFacilityVendors.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsExportFacilityVendors.js +148 -0
- package/dist/commonjs/funcs/organizationsExportFacilityVendors.js.map +1 -0
- package/dist/commonjs/funcs/organizationsGetFacilityVendorsExportStatus.d.ts +22 -0
- package/dist/commonjs/funcs/organizationsGetFacilityVendorsExportStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsGetFacilityVendorsExportStatus.js +131 -0
- package/dist/commonjs/funcs/organizationsGetFacilityVendorsExportStatus.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/csvexportstatusresponse.d.ts +43 -0
- package/dist/commonjs/models/components/csvexportstatusresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/csvexportstatusresponse.js +65 -0
- package/dist/commonjs/models/components/csvexportstatusresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/downloadfacilityvendorsexport.d.ts +47 -0
- package/dist/commonjs/models/operations/downloadfacilityvendorsexport.d.ts.map +1 -0
- package/dist/commonjs/models/operations/downloadfacilityvendorsexport.js +80 -0
- package/dist/commonjs/models/operations/downloadfacilityvendorsexport.js.map +1 -0
- package/dist/commonjs/models/operations/exportfacilityvendors.d.ts +118 -0
- package/dist/commonjs/models/operations/exportfacilityvendors.d.ts.map +1 -0
- package/dist/commonjs/models/operations/exportfacilityvendors.js +115 -0
- package/dist/commonjs/models/operations/exportfacilityvendors.js.map +1 -0
- package/dist/commonjs/models/operations/getfacilityvendorsexportstatus.d.ts +20 -0
- package/dist/commonjs/models/operations/getfacilityvendorsexportstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfacilityvendorsexportstatus.js +55 -0
- package/dist/commonjs/models/operations/getfacilityvendorsexportstatus.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.core.d.ts +12 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.core.js +40 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.d.ts +33 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.js +73 -0
- package/dist/commonjs/react-query/organizationsDownloadFacilityVendorsExport.js.map +1 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.core.d.ts +19 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.core.js +47 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.d.ts +77 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.js +97 -0
- package/dist/commonjs/react-query/organizationsExportFacilityVendors.js.map +1 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.core.d.ts +13 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.core.js +40 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.d.ts +31 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.js +71 -0
- package/dist/commonjs/react-query/organizationsGetFacilityVendorsExportStatus.js.map +1 -0
- package/dist/commonjs/sdk/organizations.d.ts +38 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +47 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +57 -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 +27 -6
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/organizationsDownloadFacilityVendorsExport.d.ts +22 -0
- package/dist/esm/funcs/organizationsDownloadFacilityVendorsExport.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsDownloadFacilityVendorsExport.js +96 -0
- package/dist/esm/funcs/organizationsDownloadFacilityVendorsExport.js.map +1 -0
- package/dist/esm/funcs/organizationsExportFacilityVendors.d.ts +34 -0
- package/dist/esm/funcs/organizationsExportFacilityVendors.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsExportFacilityVendors.js +112 -0
- package/dist/esm/funcs/organizationsExportFacilityVendors.js.map +1 -0
- package/dist/esm/funcs/organizationsGetFacilityVendorsExportStatus.d.ts +22 -0
- package/dist/esm/funcs/organizationsGetFacilityVendorsExportStatus.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsGetFacilityVendorsExportStatus.js +95 -0
- package/dist/esm/funcs/organizationsGetFacilityVendorsExportStatus.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/csvexportstatusresponse.d.ts +43 -0
- package/dist/esm/models/components/csvexportstatusresponse.d.ts.map +1 -0
- package/dist/esm/models/components/csvexportstatusresponse.js +28 -0
- package/dist/esm/models/components/csvexportstatusresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/downloadfacilityvendorsexport.d.ts +47 -0
- package/dist/esm/models/operations/downloadfacilityvendorsexport.d.ts.map +1 -0
- package/dist/esm/models/operations/downloadfacilityvendorsexport.js +41 -0
- package/dist/esm/models/operations/downloadfacilityvendorsexport.js.map +1 -0
- package/dist/esm/models/operations/exportfacilityvendors.d.ts +118 -0
- package/dist/esm/models/operations/exportfacilityvendors.d.ts.map +1 -0
- package/dist/esm/models/operations/exportfacilityvendors.js +76 -0
- package/dist/esm/models/operations/exportfacilityvendors.js.map +1 -0
- package/dist/esm/models/operations/getfacilityvendorsexportstatus.d.ts +20 -0
- package/dist/esm/models/operations/getfacilityvendorsexportstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/getfacilityvendorsexportstatus.js +18 -0
- package/dist/esm/models/operations/getfacilityvendorsexportstatus.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.core.d.ts +12 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.core.js +35 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.core.js.map +1 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.d.ts +33 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.js +63 -0
- package/dist/esm/react-query/organizationsDownloadFacilityVendorsExport.js.map +1 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.core.d.ts +19 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.core.js +42 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.core.js.map +1 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.d.ts +77 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.js +87 -0
- package/dist/esm/react-query/organizationsExportFacilityVendors.js.map +1 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.core.d.ts +13 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.core.js +35 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.core.js.map +1 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.d.ts +31 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.js +61 -0
- package/dist/esm/react-query/organizationsGetFacilityVendorsExportStatus.js.map +1 -0
- package/dist/esm/sdk/organizations.d.ts +38 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +47 -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 +66 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +27 -6
- package/src/funcs/organizationsDownloadFacilityVendorsExport.ts +202 -0
- package/src/funcs/organizationsExportFacilityVendors.ts +202 -0
- package/src/funcs/organizationsGetFacilityVendorsExportStatus.ts +188 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/csvexportstatusresponse.ts +79 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/downloadfacilityvendorsexport.ts +124 -0
- package/src/models/operations/exportfacilityvendors.ts +206 -0
- package/src/models/operations/getfacilityvendorsexportstatus.ts +47 -0
- package/src/models/operations/index.ts +3 -0
- package/src/react-query/index.ts +3 -0
- package/src/react-query/organizationsDownloadFacilityVendorsExport.core.ts +84 -0
- package/src/react-query/organizationsDownloadFacilityVendorsExport.ts +155 -0
- package/src/react-query/organizationsExportFacilityVendors.core.ts +94 -0
- package/src/react-query/organizationsExportFacilityVendors.ts +200 -0
- package/src/react-query/organizationsGetFacilityVendorsExportStatus.core.ts +84 -0
- package/src/react-query/organizationsGetFacilityVendorsExportStatus.ts +153 -0
- package/src/sdk/organizations.ts +71 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
2
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
|
|
9
|
+
import { buildOrganizationsExportFacilityVendorsQuery, OrganizationsExportFacilityVendorsQueryData, prefetchOrganizationsExportFacilityVendors, queryKeyOrganizationsExportFacilityVendors } from "./organizationsExportFacilityVendors.core.js";
|
|
10
|
+
export { buildOrganizationsExportFacilityVendorsQuery, type OrganizationsExportFacilityVendorsQueryData, prefetchOrganizationsExportFacilityVendors, queryKeyOrganizationsExportFacilityVendors, };
|
|
11
|
+
export type OrganizationsExportFacilityVendorsQueryError = errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
12
|
+
/**
|
|
13
|
+
* Export facility vendors to CSV (async)
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Enqueues an asynchronous job to generate a CSV export of the vendors (vendor reps)
|
|
17
|
+
* targeting the given facility, applying the same access scope and filter parameters as
|
|
18
|
+
* the listing endpoint. The CSV contains: Name, Email, one column per company custom field
|
|
19
|
+
* flagged `show_to_vendor` (e.g. Employee ID), Last Visit, and Status.
|
|
20
|
+
*
|
|
21
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url`
|
|
22
|
+
* and `status_id`.
|
|
23
|
+
*
|
|
24
|
+
* Access control mirrors the list endpoint:
|
|
25
|
+
* * Regular users — facility must be in the caller's read scope (via
|
|
26
|
+
* `has_facility_access_policy`); company resolved from the session. Out-of-scope or
|
|
27
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
28
|
+
* * API users — `company_id` required; both the company AND the facility must be
|
|
29
|
+
* activated for the caller's marketplace app via the join-scoped
|
|
30
|
+
* `MarketplaceAppActivation` check.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useOrganizationsExportFacilityVendors(request: operations.ExportFacilityVendorsRequest, options?: QueryHookOptions<OrganizationsExportFacilityVendorsQueryData, OrganizationsExportFacilityVendorsQueryError>): UseQueryResult<OrganizationsExportFacilityVendorsQueryData, OrganizationsExportFacilityVendorsQueryError>;
|
|
33
|
+
/**
|
|
34
|
+
* Export facility vendors to CSV (async)
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Enqueues an asynchronous job to generate a CSV export of the vendors (vendor reps)
|
|
38
|
+
* targeting the given facility, applying the same access scope and filter parameters as
|
|
39
|
+
* the listing endpoint. The CSV contains: Name, Email, one column per company custom field
|
|
40
|
+
* flagged `show_to_vendor` (e.g. Employee ID), Last Visit, and Status.
|
|
41
|
+
*
|
|
42
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url`
|
|
43
|
+
* and `status_id`.
|
|
44
|
+
*
|
|
45
|
+
* Access control mirrors the list endpoint:
|
|
46
|
+
* * Regular users — facility must be in the caller's read scope (via
|
|
47
|
+
* `has_facility_access_policy`); company resolved from the session. Out-of-scope or
|
|
48
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
49
|
+
* * API users — `company_id` required; both the company AND the facility must be
|
|
50
|
+
* activated for the caller's marketplace app via the join-scoped
|
|
51
|
+
* `MarketplaceAppActivation` check.
|
|
52
|
+
*/
|
|
53
|
+
export declare function useOrganizationsExportFacilityVendorsSuspense(request: operations.ExportFacilityVendorsRequest, options?: SuspenseQueryHookOptions<OrganizationsExportFacilityVendorsQueryData, OrganizationsExportFacilityVendorsQueryError>): UseSuspenseQueryResult<OrganizationsExportFacilityVendorsQueryData, OrganizationsExportFacilityVendorsQueryError>;
|
|
54
|
+
export declare function setOrganizationsExportFacilityVendorsData(client: QueryClient, queryKeyBase: [
|
|
55
|
+
id: number,
|
|
56
|
+
parameters: {
|
|
57
|
+
companyId?: number | undefined;
|
|
58
|
+
status?: operations.ExportFacilityVendorsQueryParamStatus | undefined;
|
|
59
|
+
search?: string | undefined;
|
|
60
|
+
sort?: operations.ExportFacilityVendorsQueryParamSort | undefined;
|
|
61
|
+
desc?: operations.QueryParamDesc | undefined;
|
|
62
|
+
itemsPerPage?: number | undefined;
|
|
63
|
+
}
|
|
64
|
+
], data: OrganizationsExportFacilityVendorsQueryData): OrganizationsExportFacilityVendorsQueryData | undefined;
|
|
65
|
+
export declare function invalidateOrganizationsExportFacilityVendors(client: QueryClient, queryKeyBase: TupleToPrefixes<[
|
|
66
|
+
id: number,
|
|
67
|
+
parameters: {
|
|
68
|
+
companyId?: number | undefined;
|
|
69
|
+
status?: operations.ExportFacilityVendorsQueryParamStatus | undefined;
|
|
70
|
+
search?: string | undefined;
|
|
71
|
+
sort?: operations.ExportFacilityVendorsQueryParamSort | undefined;
|
|
72
|
+
desc?: operations.QueryParamDesc | undefined;
|
|
73
|
+
itemsPerPage?: number | undefined;
|
|
74
|
+
}
|
|
75
|
+
]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
76
|
+
export declare function invalidateAllOrganizationsExportFacilityVendors(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
77
|
+
//# sourceMappingURL=organizationsExportFacilityVendors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsExportFacilityVendors.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsExportFacilityVendors.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,4CAA4C,EAC5C,2CAA2C,EAC3C,0CAA0C,EAC1C,0CAA0C,EAC3C,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,4CAA4C,EAC5C,KAAK,2CAA2C,EAChD,0CAA0C,EAC1C,0CAA0C,GAC3C,CAAC;AAEF,MAAM,MAAM,4CAA4C,GACpD,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qCAAqC,CACnD,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,gBAAgB,CACxB,2CAA2C,EAC3C,4CAA4C,CAC7C,GACA,cAAc,CACf,2CAA2C,EAC3C,4CAA4C,CAC7C,CAUA;AAED;;;;;;;;;;;;;;;;;;;GAm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AAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAgB,+CAA+C,CAC7D,MAAM,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,97 @@
|
|
|
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.queryKeyOrganizationsExportFacilityVendors = exports.prefetchOrganizationsExportFacilityVendors = exports.buildOrganizationsExportFacilityVendorsQuery = void 0;
|
|
7
|
+
exports.useOrganizationsExportFacilityVendors = useOrganizationsExportFacilityVendors;
|
|
8
|
+
exports.useOrganizationsExportFacilityVendorsSuspense = useOrganizationsExportFacilityVendorsSuspense;
|
|
9
|
+
exports.setOrganizationsExportFacilityVendorsData = setOrganizationsExportFacilityVendorsData;
|
|
10
|
+
exports.invalidateOrganizationsExportFacilityVendors = invalidateOrganizationsExportFacilityVendors;
|
|
11
|
+
exports.invalidateAllOrganizationsExportFacilityVendors = invalidateAllOrganizationsExportFacilityVendors;
|
|
12
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
+
const _context_js_1 = require("./_context.js");
|
|
14
|
+
const organizationsExportFacilityVendors_core_js_1 = require("./organizationsExportFacilityVendors.core.js");
|
|
15
|
+
Object.defineProperty(exports, "buildOrganizationsExportFacilityVendorsQuery", { enumerable: true, get: function () { return organizationsExportFacilityVendors_core_js_1.buildOrganizationsExportFacilityVendorsQuery; } });
|
|
16
|
+
Object.defineProperty(exports, "prefetchOrganizationsExportFacilityVendors", { enumerable: true, get: function () { return organizationsExportFacilityVendors_core_js_1.prefetchOrganizationsExportFacilityVendors; } });
|
|
17
|
+
Object.defineProperty(exports, "queryKeyOrganizationsExportFacilityVendors", { enumerable: true, get: function () { return organizationsExportFacilityVendors_core_js_1.queryKeyOrganizationsExportFacilityVendors; } });
|
|
18
|
+
/**
|
|
19
|
+
* Export facility vendors to CSV (async)
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Enqueues an asynchronous job to generate a CSV export of the vendors (vendor reps)
|
|
23
|
+
* targeting the given facility, applying the same access scope and filter parameters as
|
|
24
|
+
* the listing endpoint. The CSV contains: Name, Email, one column per company custom field
|
|
25
|
+
* flagged `show_to_vendor` (e.g. Employee ID), Last Visit, and Status.
|
|
26
|
+
*
|
|
27
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url`
|
|
28
|
+
* and `status_id`.
|
|
29
|
+
*
|
|
30
|
+
* Access control mirrors the list endpoint:
|
|
31
|
+
* * Regular users — facility must be in the caller's read scope (via
|
|
32
|
+
* `has_facility_access_policy`); company resolved from the session. Out-of-scope or
|
|
33
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
34
|
+
* * API users — `company_id` required; both the company AND the facility must be
|
|
35
|
+
* activated for the caller's marketplace app via the join-scoped
|
|
36
|
+
* `MarketplaceAppActivation` check.
|
|
37
|
+
*/
|
|
38
|
+
function useOrganizationsExportFacilityVendors(request, options) {
|
|
39
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
40
|
+
return (0, react_query_1.useQuery)({
|
|
41
|
+
...(0, organizationsExportFacilityVendors_core_js_1.buildOrganizationsExportFacilityVendorsQuery)(client, request, options),
|
|
42
|
+
...options,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Export facility vendors to CSV (async)
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* Enqueues an asynchronous job to generate a CSV export of the vendors (vendor reps)
|
|
50
|
+
* targeting the given facility, applying the same access scope and filter parameters as
|
|
51
|
+
* the listing endpoint. The CSV contains: Name, Email, one column per company custom field
|
|
52
|
+
* flagged `show_to_vendor` (e.g. Employee ID), Last Visit, and Status.
|
|
53
|
+
*
|
|
54
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url`
|
|
55
|
+
* and `status_id`.
|
|
56
|
+
*
|
|
57
|
+
* Access control mirrors the list endpoint:
|
|
58
|
+
* * Regular users — facility must be in the caller's read scope (via
|
|
59
|
+
* `has_facility_access_policy`); company resolved from the session. Out-of-scope or
|
|
60
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
61
|
+
* * API users — `company_id` required; both the company AND the facility must be
|
|
62
|
+
* activated for the caller's marketplace app via the join-scoped
|
|
63
|
+
* `MarketplaceAppActivation` check.
|
|
64
|
+
*/
|
|
65
|
+
function useOrganizationsExportFacilityVendorsSuspense(request, options) {
|
|
66
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
67
|
+
return (0, react_query_1.useSuspenseQuery)({
|
|
68
|
+
...(0, organizationsExportFacilityVendors_core_js_1.buildOrganizationsExportFacilityVendorsQuery)(client, request, options),
|
|
69
|
+
...options,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function setOrganizationsExportFacilityVendorsData(client, queryKeyBase, data) {
|
|
73
|
+
const key = (0, organizationsExportFacilityVendors_core_js_1.queryKeyOrganizationsExportFacilityVendors)(...queryKeyBase);
|
|
74
|
+
return client.setQueryData(key, data);
|
|
75
|
+
}
|
|
76
|
+
function invalidateOrganizationsExportFacilityVendors(client, queryKeyBase, filters) {
|
|
77
|
+
return client.invalidateQueries({
|
|
78
|
+
...filters,
|
|
79
|
+
queryKey: [
|
|
80
|
+
"@greensecurity/javascript-sdk",
|
|
81
|
+
"organizations",
|
|
82
|
+
"exportFacilityVendors",
|
|
83
|
+
...queryKeyBase,
|
|
84
|
+
],
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function invalidateAllOrganizationsExportFacilityVendors(client, filters) {
|
|
88
|
+
return client.invalidateQueries({
|
|
89
|
+
...filters,
|
|
90
|
+
queryKey: [
|
|
91
|
+
"@greensecurity/javascript-sdk",
|
|
92
|
+
"organizations",
|
|
93
|
+
"exportFacilityVendors",
|
|
94
|
+
],
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=organizationsExportFacilityVendors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsExportFacilityVendors.js","sourceRoot":"","sources":["../../../src/react-query/organizationsExportFacilityVendors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAwEH,sFAmBC;AAsBD,sGAmBC;AAED,8FAqBC;AAED,oGA0BC;AAED,0GAYC;AAnMD,uDAO+B;AAa/B,+CAAwD;AAMxD,6GAKsD;AAEpD,6HANA,yFAA4C,OAMA;AAE5C,2HANA,uFAA0C,OAMA;AAC1C,2HANA,uFAA0C,OAMA;AAc5C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,qCAAqC,CACnD,OAAgD,EAChD,OAGC;IAKD,MAAM,MAAM,GAAG,IAAA,qCAAuB,GAAE,CAAC;IACzC,OAAO,IAAA,sBAAQ,EAAC;QACd,GAAG,IAAA,yFAA4C,EAC7C,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,6CAA6C,CAC3D,OAAgD,EAChD,OAGC;IAKD,MAAM,MAAM,GAAG,IAAA,qCAAuB,GAAE,CAAC;IACzC,OAAO,IAAA,8BAAgB,EAAC;QACtB,GAAG,IAAA,yFAA4C,EAC7C,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,yCAAyC,CACvD,MAAmB,EACnB,YAUC,EACD,IAAiD;IAEjD,MAAM,GAAG,GAAG,IAAA,uFAA0C,EAAC,GAAG,YAAY,CAAC,CAAC;IAExE,OAAO,MAAM,CAAC,YAAY,CACxB,GAAG,EACH,IAAI,CACL,CAAC;AACJ,CAAC;AAED,SAAgB,4CAA4C,CAC1D,MAAmB,EACnB,YAYC,EACD,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,eAAe;YACf,uBAAuB;YACvB,GAAG,YAAY;SAChB;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,+CAA+C,CAC7D,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,eAAe;YACf,uBAAuB;SACxB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export type OrganizationsGetFacilityVendorsExportStatusQueryData = components.CsvExportStatusResponse;
|
|
7
|
+
export declare function prefetchOrganizationsGetFacilityVendorsExportStatus(queryClient: QueryClient, client$: GreenSecurityCore, request: operations.GetFacilityVendorsExportStatusRequest, options?: RequestOptions): Promise<void>;
|
|
8
|
+
export declare function buildOrganizationsGetFacilityVendorsExportStatusQuery(client$: GreenSecurityCore, request: operations.GetFacilityVendorsExportStatusRequest, options?: RequestOptions): {
|
|
9
|
+
queryKey: QueryKey;
|
|
10
|
+
queryFn: (context: QueryFunctionContext) => Promise<OrganizationsGetFacilityVendorsExportStatusQueryData>;
|
|
11
|
+
};
|
|
12
|
+
export declare function queryKeyOrganizationsGetFacilityVendorsExportStatus(id: number, exportId: string): QueryKey;
|
|
13
|
+
//# sourceMappingURL=organizationsGetFacilityVendorsExportStatus.core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsGetFacilityVendorsExportStatus.core.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsGetFacilityVendorsExportStatus.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,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,MAAM,MAAM,oDAAoD,GAC9D,UAAU,CAAC,uBAAuB,CAAC;AAErC,wBAAgB,mDAAmD,CACjE,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAQf;AAED,wBAAgB,qDAAqD,CACnE,OAAO,EAAE,iBAAiB,EAC1B,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB;IACD,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,CACP,OAAO,EAAE,oBAAoB,KAC1B,OAAO,CAAC,oDAAoD,CAAC,CAAC;CACpE,CA2BA;AAED,wBAAgB,mDAAmD,CACjE,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,GACf,QAAQ,CAQV"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.prefetchOrganizationsGetFacilityVendorsExportStatus = prefetchOrganizationsGetFacilityVendorsExportStatus;
|
|
7
|
+
exports.buildOrganizationsGetFacilityVendorsExportStatusQuery = buildOrganizationsGetFacilityVendorsExportStatusQuery;
|
|
8
|
+
exports.queryKeyOrganizationsGetFacilityVendorsExportStatus = queryKeyOrganizationsGetFacilityVendorsExportStatus;
|
|
9
|
+
const organizationsGetFacilityVendorsExportStatus_js_1 = require("../funcs/organizationsGetFacilityVendorsExportStatus.js");
|
|
10
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
11
|
+
const fp_js_1 = require("../types/fp.js");
|
|
12
|
+
function prefetchOrganizationsGetFacilityVendorsExportStatus(queryClient, client$, request, options) {
|
|
13
|
+
return queryClient.prefetchQuery({
|
|
14
|
+
...buildOrganizationsGetFacilityVendorsExportStatusQuery(client$, request, options),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function buildOrganizationsGetFacilityVendorsExportStatusQuery(client$, request, options) {
|
|
18
|
+
return {
|
|
19
|
+
queryKey: queryKeyOrganizationsGetFacilityVendorsExportStatus(request.id, request.exportId),
|
|
20
|
+
queryFn: async function organizationsGetFacilityVendorsExportStatusQueryFn(ctx) {
|
|
21
|
+
const sig = (0, primitives_js_1.combineSignals)(ctx.signal, options?.signal, options?.fetchOptions?.signal);
|
|
22
|
+
const mergedOptions = {
|
|
23
|
+
...options?.fetchOptions,
|
|
24
|
+
...options,
|
|
25
|
+
signal: sig,
|
|
26
|
+
};
|
|
27
|
+
return (0, fp_js_1.unwrapAsync)((0, organizationsGetFacilityVendorsExportStatus_js_1.organizationsGetFacilityVendorsExportStatus)(client$, request, mergedOptions));
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function queryKeyOrganizationsGetFacilityVendorsExportStatus(id, exportId) {
|
|
32
|
+
return [
|
|
33
|
+
"@greensecurity/javascript-sdk",
|
|
34
|
+
"organizations",
|
|
35
|
+
"getFacilityVendorsExportStatus",
|
|
36
|
+
id,
|
|
37
|
+
exportId,
|
|
38
|
+
];
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=organizationsGetFacilityVendorsExportStatus.core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsGetFacilityVendorsExportStatus.core.js","sourceRoot":"","sources":["../../../src/react-query/organizationsGetFacilityVendorsExportStatus.core.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAiBH,kHAaC;AAED,sHAoCC;AAED,kHAWC;AAzED,4HAAsH;AACtH,wDAAsD;AAItD,0CAA6C;AAI7C,SAAgB,mDAAmD,CACjE,WAAwB,EACxB,OAA0B,EAC1B,OAAyD,EACzD,OAAwB;IAExB,OAAO,WAAW,CAAC,aAAa,CAAC;QAC/B,GAAG,qDAAqD,CACtD,OAAO,EACP,OAAO,EACP,OAAO,CACR;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,qDAAqD,CACnE,OAA0B,EAC1B,OAAyD,EACzD,OAAwB;IAOxB,OAAO;QACL,QAAQ,EAAE,mDAAmD,CAC3D,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,QAAQ,CACjB;QACD,OAAO,EAAE,KAAK,UAAU,kDAAkD,CACxE,GAAG;YAEH,MAAM,GAAG,GAAG,IAAA,8BAAc,EACxB,GAAG,CAAC,MAAM,EACV,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,YAAY,EAAE,MAAM,CAC9B,CAAC;YACF,MAAM,aAAa,GAAG;gBACpB,GAAG,OAAO,EAAE,YAAY;gBACxB,GAAG,OAAO;gBACV,MAAM,EAAE,GAAG;aACZ,CAAC;YAEF,OAAO,IAAA,mBAAW,EAAC,IAAA,4FAA2C,EAC5D,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC;AAED,SAAgB,mDAAmD,CACjE,EAAU,EACV,QAAgB;IAEhB,OAAO;QACL,+BAA+B;QAC/B,eAAe;QACf,gCAAgC;QAChC,EAAE;QACF,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
2
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
+
import * as errors from "../models/errors/index.js";
|
|
5
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
|
|
9
|
+
import { buildOrganizationsGetFacilityVendorsExportStatusQuery, OrganizationsGetFacilityVendorsExportStatusQueryData, prefetchOrganizationsGetFacilityVendorsExportStatus, queryKeyOrganizationsGetFacilityVendorsExportStatus } from "./organizationsGetFacilityVendorsExportStatus.core.js";
|
|
10
|
+
export { buildOrganizationsGetFacilityVendorsExportStatusQuery, type OrganizationsGetFacilityVendorsExportStatusQueryData, prefetchOrganizationsGetFacilityVendorsExportStatus, queryKeyOrganizationsGetFacilityVendorsExportStatus, };
|
|
11
|
+
export type OrganizationsGetFacilityVendorsExportStatusQueryError = errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
12
|
+
/**
|
|
13
|
+
* Get facility vendors export status
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Poll the state of an asynchronous facility vendors export job. When `ready` is true,
|
|
17
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useOrganizationsGetFacilityVendorsExportStatus(request: operations.GetFacilityVendorsExportStatusRequest, options?: QueryHookOptions<OrganizationsGetFacilityVendorsExportStatusQueryData, OrganizationsGetFacilityVendorsExportStatusQueryError>): UseQueryResult<OrganizationsGetFacilityVendorsExportStatusQueryData, OrganizationsGetFacilityVendorsExportStatusQueryError>;
|
|
20
|
+
/**
|
|
21
|
+
* Get facility vendors export status
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Poll the state of an asynchronous facility vendors export job. When `ready` is true,
|
|
25
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useOrganizationsGetFacilityVendorsExportStatusSuspense(request: operations.GetFacilityVendorsExportStatusRequest, options?: SuspenseQueryHookOptions<OrganizationsGetFacilityVendorsExportStatusQueryData, OrganizationsGetFacilityVendorsExportStatusQueryError>): UseSuspenseQueryResult<OrganizationsGetFacilityVendorsExportStatusQueryData, OrganizationsGetFacilityVendorsExportStatusQueryError>;
|
|
28
|
+
export declare function setOrganizationsGetFacilityVendorsExportStatusData(client: QueryClient, queryKeyBase: [id: number, exportId: string], data: OrganizationsGetFacilityVendorsExportStatusQueryData): OrganizationsGetFacilityVendorsExportStatusQueryData | undefined;
|
|
29
|
+
export declare function invalidateOrganizationsGetFacilityVendorsExportStatus(client: QueryClient, queryKeyBase: TupleToPrefixes<[id: number, exportId: string]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
30
|
+
export declare function invalidateAllOrganizationsGetFacilityVendorsExportStatus(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
31
|
+
//# sourceMappingURL=organizationsGetFacilityVendorsExportStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsGetFacilityVendorsExportStatus.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsGetFacilityVendorsExportStatus.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EACtB,WAAW,EAEX,cAAc,EAEd,sBAAsB,EACvB,MA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,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,EAC5C,IAAI,EAAE,oDAAoD,GACzD,oDAAoD,GAAG,SAAS,CAQlE;AAED,wBAAgB,qDAAqD,CACnE,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,eAAe,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,EAC7D,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAgB,wDAAwD,CACtE,MAAM,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,71 @@
|
|
|
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.queryKeyOrganizationsGetFacilityVendorsExportStatus = exports.prefetchOrganizationsGetFacilityVendorsExportStatus = exports.buildOrganizationsGetFacilityVendorsExportStatusQuery = void 0;
|
|
7
|
+
exports.useOrganizationsGetFacilityVendorsExportStatus = useOrganizationsGetFacilityVendorsExportStatus;
|
|
8
|
+
exports.useOrganizationsGetFacilityVendorsExportStatusSuspense = useOrganizationsGetFacilityVendorsExportStatusSuspense;
|
|
9
|
+
exports.setOrganizationsGetFacilityVendorsExportStatusData = setOrganizationsGetFacilityVendorsExportStatusData;
|
|
10
|
+
exports.invalidateOrganizationsGetFacilityVendorsExportStatus = invalidateOrganizationsGetFacilityVendorsExportStatus;
|
|
11
|
+
exports.invalidateAllOrganizationsGetFacilityVendorsExportStatus = invalidateAllOrganizationsGetFacilityVendorsExportStatus;
|
|
12
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
+
const _context_js_1 = require("./_context.js");
|
|
14
|
+
const organizationsGetFacilityVendorsExportStatus_core_js_1 = require("./organizationsGetFacilityVendorsExportStatus.core.js");
|
|
15
|
+
Object.defineProperty(exports, "buildOrganizationsGetFacilityVendorsExportStatusQuery", { enumerable: true, get: function () { return organizationsGetFacilityVendorsExportStatus_core_js_1.buildOrganizationsGetFacilityVendorsExportStatusQuery; } });
|
|
16
|
+
Object.defineProperty(exports, "prefetchOrganizationsGetFacilityVendorsExportStatus", { enumerable: true, get: function () { return organizationsGetFacilityVendorsExportStatus_core_js_1.prefetchOrganizationsGetFacilityVendorsExportStatus; } });
|
|
17
|
+
Object.defineProperty(exports, "queryKeyOrganizationsGetFacilityVendorsExportStatus", { enumerable: true, get: function () { return organizationsGetFacilityVendorsExportStatus_core_js_1.queryKeyOrganizationsGetFacilityVendorsExportStatus; } });
|
|
18
|
+
/**
|
|
19
|
+
* Get facility vendors export status
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Poll the state of an asynchronous facility vendors export job. When `ready` is true,
|
|
23
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
24
|
+
*/
|
|
25
|
+
function useOrganizationsGetFacilityVendorsExportStatus(request, options) {
|
|
26
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
27
|
+
return (0, react_query_1.useQuery)({
|
|
28
|
+
...(0, organizationsGetFacilityVendorsExportStatus_core_js_1.buildOrganizationsGetFacilityVendorsExportStatusQuery)(client, request, options),
|
|
29
|
+
...options,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get facility vendors export status
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Poll the state of an asynchronous facility vendors export job. When `ready` is true,
|
|
37
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
38
|
+
*/
|
|
39
|
+
function useOrganizationsGetFacilityVendorsExportStatusSuspense(request, options) {
|
|
40
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
41
|
+
return (0, react_query_1.useSuspenseQuery)({
|
|
42
|
+
...(0, organizationsGetFacilityVendorsExportStatus_core_js_1.buildOrganizationsGetFacilityVendorsExportStatusQuery)(client, request, options),
|
|
43
|
+
...options,
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function setOrganizationsGetFacilityVendorsExportStatusData(client, queryKeyBase, data) {
|
|
47
|
+
const key = (0, organizationsGetFacilityVendorsExportStatus_core_js_1.queryKeyOrganizationsGetFacilityVendorsExportStatus)(...queryKeyBase);
|
|
48
|
+
return client.setQueryData(key, data);
|
|
49
|
+
}
|
|
50
|
+
function invalidateOrganizationsGetFacilityVendorsExportStatus(client, queryKeyBase, filters) {
|
|
51
|
+
return client.invalidateQueries({
|
|
52
|
+
...filters,
|
|
53
|
+
queryKey: [
|
|
54
|
+
"@greensecurity/javascript-sdk",
|
|
55
|
+
"organizations",
|
|
56
|
+
"getFacilityVendorsExportStatus",
|
|
57
|
+
...queryKeyBase,
|
|
58
|
+
],
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function invalidateAllOrganizationsGetFacilityVendorsExportStatus(client, filters) {
|
|
62
|
+
return client.invalidateQueries({
|
|
63
|
+
...filters,
|
|
64
|
+
queryKey: [
|
|
65
|
+
"@greensecurity/javascript-sdk",
|
|
66
|
+
"organizations",
|
|
67
|
+
"getFacilityVendorsExportStatus",
|
|
68
|
+
],
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=organizationsGetFacilityVendorsExportStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsGetFacilityVendorsExportStatus.js","sourceRoot":"","sources":["../../../src/react-query/organizationsGetFacilityVendorsExportStatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA2DH,wGAmBC;AASD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V,QAAQ,EAAE;YACR,+BAA+B;YAC/B,eAAe;YACf,gCAAgC;SACjC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -163,6 +163,44 @@ export declare class Organizations extends ClientSDK {
|
|
|
163
163
|
listFacilityVendors(request: operations.ListFacilityVendorsRequest, options?: RequestOptions): Promise<PageIterator<operations.ListFacilityVendorsResponse, {
|
|
164
164
|
page: number;
|
|
165
165
|
}>>;
|
|
166
|
+
/**
|
|
167
|
+
* Export facility vendors to CSV (async)
|
|
168
|
+
*
|
|
169
|
+
* @remarks
|
|
170
|
+
* Enqueues an asynchronous job to generate a CSV export of the vendors (vendor reps)
|
|
171
|
+
* targeting the given facility, applying the same access scope and filter parameters as
|
|
172
|
+
* the listing endpoint. The CSV contains: Name, Email, one column per company custom field
|
|
173
|
+
* flagged `show_to_vendor` (e.g. Employee ID), Last Visit, and Status.
|
|
174
|
+
*
|
|
175
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url`
|
|
176
|
+
* and `status_id`.
|
|
177
|
+
*
|
|
178
|
+
* Access control mirrors the list endpoint:
|
|
179
|
+
* * Regular users — facility must be in the caller's read scope (via
|
|
180
|
+
* `has_facility_access_policy`); company resolved from the session. Out-of-scope or
|
|
181
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
182
|
+
* * API users — `company_id` required; both the company AND the facility must be
|
|
183
|
+
* activated for the caller's marketplace app via the join-scoped
|
|
184
|
+
* `MarketplaceAppActivation` check.
|
|
185
|
+
*/
|
|
186
|
+
exportFacilityVendors(request: operations.ExportFacilityVendorsRequest, options?: RequestOptions): Promise<operations.ExportFacilityVendorsResponseBody>;
|
|
187
|
+
/**
|
|
188
|
+
* Get facility vendors export status
|
|
189
|
+
*
|
|
190
|
+
* @remarks
|
|
191
|
+
* Poll the state of an asynchronous facility vendors export job. When `ready` is true,
|
|
192
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
193
|
+
*/
|
|
194
|
+
getFacilityVendorsExportStatus(request: operations.GetFacilityVendorsExportStatusRequest, options?: RequestOptions): Promise<components.CsvExportStatusResponse>;
|
|
195
|
+
/**
|
|
196
|
+
* Download facility vendors CSV
|
|
197
|
+
*
|
|
198
|
+
* @remarks
|
|
199
|
+
* Returns the exported facility vendors CSV via a 302 redirect to a short-lived
|
|
200
|
+
* presigned S3 URL. If the export is still being generated, returns 202 with a JSON
|
|
201
|
+
* `{ ready: false }` payload.
|
|
202
|
+
*/
|
|
203
|
+
downloadFacilityVendorsExport(request: operations.DownloadFacilityVendorsExportRequest, options?: RequestOptions): Promise<operations.DownloadFacilityVendorsExportResponse | undefined>;
|
|
166
204
|
/**
|
|
167
205
|
* List or search department contacts
|
|
168
206
|
*
|
|
@@ -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":"AAkBA,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,CAAC,8BAA8B,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAC1E;IAQD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;IAQ/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AAmB,CACvB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,2BAA2B,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CACvE;IAQD;;;;;;;;;;;;;;;;;;;OAmBG;IACG,qBAAqB,CACzB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iCAAiC,CAAC;IAQxD;;;;;;OAMG;IACG,8BAA8B,CAClC,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;;;OAOG;IACG,6BAA6B,CACjC,OAAO,EAAE,UAAU,CAAC,oCAAoC,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,GAAG,SAAS,CAAC;IAQxE;;;;;;;;;;OAUG;IACG,8BAA8B,CAClC,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CACV,UAAU,CAAC,sCAAsC,EACjD;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CACjB,CACF;CAOF"}
|
|
@@ -7,9 +7,12 @@ exports.Organizations = void 0;
|
|
|
7
7
|
const organizationsCreateCompanyTargetFacility_js_1 = require("../funcs/organizationsCreateCompanyTargetFacility.js");
|
|
8
8
|
const organizationsDeleteCompanyTargetFacility_js_1 = require("../funcs/organizationsDeleteCompanyTargetFacility.js");
|
|
9
9
|
const organizationsDownloadCompanyTargetFacilitiesExport_js_1 = require("../funcs/organizationsDownloadCompanyTargetFacilitiesExport.js");
|
|
10
|
+
const organizationsDownloadFacilityVendorsExport_js_1 = require("../funcs/organizationsDownloadFacilityVendorsExport.js");
|
|
10
11
|
const organizationsExportCompanyTargetFacilities_js_1 = require("../funcs/organizationsExportCompanyTargetFacilities.js");
|
|
12
|
+
const organizationsExportFacilityVendors_js_1 = require("../funcs/organizationsExportFacilityVendors.js");
|
|
11
13
|
const organizationsGetCompanyTargetFacilitiesExportStatus_js_1 = require("../funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js");
|
|
12
14
|
const organizationsGetFacility_js_1 = require("../funcs/organizationsGetFacility.js");
|
|
15
|
+
const organizationsGetFacilityVendorsExportStatus_js_1 = require("../funcs/organizationsGetFacilityVendorsExportStatus.js");
|
|
13
16
|
const organizationsListCompanyTargetFacilities_js_1 = require("../funcs/organizationsListCompanyTargetFacilities.js");
|
|
14
17
|
const organizationsListFacilityVendors_js_1 = require("../funcs/organizationsListFacilityVendors.js");
|
|
15
18
|
const organizationsListOrSearchDepartmentContacts_js_1 = require("../funcs/organizationsListOrSearchDepartmentContacts.js");
|
|
@@ -191,6 +194,50 @@ class Organizations extends sdks_js_1.ClientSDK {
|
|
|
191
194
|
async listFacilityVendors(request, options) {
|
|
192
195
|
return (0, operations_js_1.unwrapResultIterator)((0, organizationsListFacilityVendors_js_1.organizationsListFacilityVendors)(this, request, options));
|
|
193
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* Export facility vendors to CSV (async)
|
|
199
|
+
*
|
|
200
|
+
* @remarks
|
|
201
|
+
* Enqueues an asynchronous job to generate a CSV export of the vendors (vendor reps)
|
|
202
|
+
* targeting the given facility, applying the same access scope and filter parameters as
|
|
203
|
+
* the listing endpoint. The CSV contains: Name, Email, one column per company custom field
|
|
204
|
+
* flagged `show_to_vendor` (e.g. Employee ID), Last Visit, and Status.
|
|
205
|
+
*
|
|
206
|
+
* Returns a `status_url` for polling until the export is ready, along with a `download_url`
|
|
207
|
+
* and `status_id`.
|
|
208
|
+
*
|
|
209
|
+
* Access control mirrors the list endpoint:
|
|
210
|
+
* * Regular users — facility must be in the caller's read scope (via
|
|
211
|
+
* `has_facility_access_policy`); company resolved from the session. Out-of-scope or
|
|
212
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
213
|
+
* * API users — `company_id` required; both the company AND the facility must be
|
|
214
|
+
* activated for the caller's marketplace app via the join-scoped
|
|
215
|
+
* `MarketplaceAppActivation` check.
|
|
216
|
+
*/
|
|
217
|
+
async exportFacilityVendors(request, options) {
|
|
218
|
+
return (0, fp_js_1.unwrapAsync)((0, organizationsExportFacilityVendors_js_1.organizationsExportFacilityVendors)(this, request, options));
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Get facility vendors export status
|
|
222
|
+
*
|
|
223
|
+
* @remarks
|
|
224
|
+
* Poll the state of an asynchronous facility vendors export job. When `ready` is true,
|
|
225
|
+
* the export is complete and can be downloaded via the download endpoint.
|
|
226
|
+
*/
|
|
227
|
+
async getFacilityVendorsExportStatus(request, options) {
|
|
228
|
+
return (0, fp_js_1.unwrapAsync)((0, organizationsGetFacilityVendorsExportStatus_js_1.organizationsGetFacilityVendorsExportStatus)(this, request, options));
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Download facility vendors CSV
|
|
232
|
+
*
|
|
233
|
+
* @remarks
|
|
234
|
+
* Returns the exported facility vendors CSV via a 302 redirect to a short-lived
|
|
235
|
+
* presigned S3 URL. If the export is still being generated, returns 202 with a JSON
|
|
236
|
+
* `{ ready: false }` payload.
|
|
237
|
+
*/
|
|
238
|
+
async downloadFacilityVendorsExport(request, options) {
|
|
239
|
+
return (0, fp_js_1.unwrapAsync)((0, organizationsDownloadFacilityVendorsExport_js_1.organizationsDownloadFacilityVendorsExport)(this, request, options));
|
|
240
|
+
}
|
|
194
241
|
/**
|
|
195
242
|
* List or search department contacts
|
|
196
243
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sHAAgH;AAChH,sHAAgH;AAChH,0IAAoI;AACpI,0H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A,mBAAW,EAAC,IAAA,sFAAwC,EACzD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0FAA0C,EAC3D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,sCAAsC,CAC1C,OAAiE,EACjE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4GAAmD,EACpE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,qCAAqC,CACzC,OAAgE,EAChE,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,0GAAkD,EACnE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAIxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,sEAAgC,EAC1D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAOxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,4FAA2C,EACrE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sHAAgH;AAChH,sHAAgH;AAChH,0IAAoI;AACpI,0HAAoH;AACpH,0HAAoH;AACpH,0GAAoG;AACpG,4IAAsI;AACtI,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,6BAA6B,CACjC,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0FAA0C,EAC3D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAOxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,4FAA2C,EACrE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA1WD,sCA0WC"}
|
|
@@ -238,4 +238,61 @@ test("Organizations List Facility Vendors", async () => {
|
|
|
238
238
|
items: [],
|
|
239
239
|
});
|
|
240
240
|
});
|
|
241
|
+
test("Organizations Export Facility Vendors", async () => {
|
|
242
|
+
const testHttpClient = createTestHTTPClient("exportFacilityVendors");
|
|
243
|
+
const greenSecurity = new GreenSecurity({
|
|
244
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
245
|
+
httpClient: testHttpClient,
|
|
246
|
+
security: {
|
|
247
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
248
|
+
},
|
|
249
|
+
});
|
|
250
|
+
const result = await greenSecurity.organizations.exportFacilityVendors({
|
|
251
|
+
id: 657024,
|
|
252
|
+
});
|
|
253
|
+
expect(result).toBeDefined();
|
|
254
|
+
expect(result).toEqual({
|
|
255
|
+
statusUrl: "https://classic-nectarine.net",
|
|
256
|
+
downloadUrl: "https://smooth-custody.org/",
|
|
257
|
+
statusId: "<id>",
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
test("Organizations Get Facility Vendors Export Status", async () => {
|
|
261
|
+
const testHttpClient = createTestHTTPClient("getFacilityVendorsExportStatus");
|
|
262
|
+
const greenSecurity = new GreenSecurity({
|
|
263
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
264
|
+
httpClient: testHttpClient,
|
|
265
|
+
security: {
|
|
266
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
267
|
+
},
|
|
268
|
+
});
|
|
269
|
+
const result = await greenSecurity.organizations
|
|
270
|
+
.getFacilityVendorsExportStatus({
|
|
271
|
+
id: 453991,
|
|
272
|
+
exportId: "<id>",
|
|
273
|
+
});
|
|
274
|
+
expect(result).toBeDefined();
|
|
275
|
+
expect(result).toEqual({
|
|
276
|
+
ready: true,
|
|
277
|
+
statusId: "<id>",
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
test("Organizations Download Facility Vendors Export", async () => {
|
|
281
|
+
const testHttpClient = createTestHTTPClient("downloadFacilityVendorsExport");
|
|
282
|
+
const greenSecurity = new GreenSecurity({
|
|
283
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
284
|
+
httpClient: testHttpClient,
|
|
285
|
+
security: {
|
|
286
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
287
|
+
},
|
|
288
|
+
});
|
|
289
|
+
const result = await greenSecurity.organizations
|
|
290
|
+
.downloadFacilityVendorsExport({
|
|
291
|
+
id: 615627,
|
|
292
|
+
exportId: "<id>",
|
|
293
|
+
});
|
|
294
|
+
expect(result).toBeDefined();
|
|
295
|
+
expect(result.result).toBeDefined();
|
|
296
|
+
expect(result.result).toEqual({});
|
|
297
|
+
});
|
|
241
298
|
//# sourceMappingURL=organizations.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.test.js","sourceRoot":"","sources":["../../../src/__tests__/organizations.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;I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AE,CAAC;IAC7B,MAAM,CAAC,MAAO,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IACrC,MAAM,CAAC,MAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
|
|
|
16
16
|
const testWebhookListForVendorUserResult = await greenSecurity.webhooks
|
|
17
17
|
.listAllWebhookEndpoints({
|
|
18
18
|
itemsPerPage: 25,
|
|
19
|
-
desc:
|
|
19
|
+
desc: true,
|
|
20
20
|
sort: "",
|
|
21
21
|
});
|
|
22
22
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|