@greensecurity/javascript-sdk 0.49.0-beta.0 → 0.49.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +6 -5
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +9 -2
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressAutocomplete.d.ts +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressAutocomplete.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressAutocomplete.js +2 -1
- package/dist/commonjs/admin-funcs/lookupsAddressAutocomplete.js.map +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressPlace.d.ts +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressPlace.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressPlace.js +4 -5
- package/dist/commonjs/admin-funcs/lookupsAddressPlace.js.map +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressValidation.d.ts +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressValidation.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressValidation.js +1 -1
- package/dist/commonjs/admin-funcs/lookupsAddressValidation.js.map +1 -1
- package/dist/commonjs/admin-funcs/registerCompanies.d.ts +16 -1
- package/dist/commonjs/admin-funcs/registerCompanies.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/registerCompanies.js +10 -0
- package/dist/commonjs/admin-funcs/registerCompanies.js.map +1 -1
- package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts +5 -4
- package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/registerGeneralInfo.js.map +1 -1
- package/dist/commonjs/admin-funcs/registerPassword.d.ts +2 -1
- package/dist/commonjs/admin-funcs/registerPassword.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/registerPassword.js.map +1 -1
- package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.d.ts +2 -0
- package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.js.map +1 -1
- package/dist/commonjs/funcs/companiesLookupCompanies.js +2 -0
- package/dist/commonjs/funcs/companiesLookupCompanies.js.map +1 -1
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts +1 -1
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js +1 -1
- package/dist/commonjs/index.extras.d.ts +3 -5
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +3 -5
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +4 -1
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/models/components/companylookup.d.ts +21 -1
- package/dist/commonjs/models/components/companylookup.d.ts.map +1 -1
- package/dist/commonjs/models/components/companylookup.js +5 -0
- package/dist/commonjs/models/components/companylookup.js.map +1 -1
- package/dist/commonjs/models/operations/createvendor.d.ts +0 -5
- package/dist/commonjs/models/operations/createvendor.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createvendor.js +0 -1
- package/dist/commonjs/models/operations/createvendor.js.map +1 -1
- package/dist/commonjs/models/operations/lookupcompanies.d.ts +13 -0
- package/dist/commonjs/models/operations/lookupcompanies.d.ts.map +1 -1
- package/dist/commonjs/models/operations/lookupcompanies.js +4 -0
- package/dist/commonjs/models/operations/lookupcompanies.js.map +1 -1
- package/dist/commonjs/react-query/companiesLookupCompanies.core.d.ts +4 -0
- package/dist/commonjs/react-query/companiesLookupCompanies.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/companiesLookupCompanies.core.js +4 -0
- package/dist/commonjs/react-query/companiesLookupCompanies.core.js.map +1 -1
- package/dist/commonjs/react-query/companiesLookupCompanies.d.ts +4 -0
- package/dist/commonjs/react-query/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/commonjs/react-query/companiesLookupCompanies.js.map +1 -1
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts +1 -1
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js +1 -1
- package/dist/commonjs/sdk/zones.d.ts +1 -1
- package/dist/commonjs/sdk/zones.js +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js +6 -5
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +9 -2
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/lookupsAddressAutocomplete.d.ts +1 -1
- package/dist/esm/admin-funcs/lookupsAddressAutocomplete.d.ts.map +1 -1
- package/dist/esm/admin-funcs/lookupsAddressAutocomplete.js +2 -1
- package/dist/esm/admin-funcs/lookupsAddressAutocomplete.js.map +1 -1
- package/dist/esm/admin-funcs/lookupsAddressPlace.d.ts +1 -1
- package/dist/esm/admin-funcs/lookupsAddressPlace.d.ts.map +1 -1
- package/dist/esm/admin-funcs/lookupsAddressPlace.js +4 -5
- package/dist/esm/admin-funcs/lookupsAddressPlace.js.map +1 -1
- package/dist/esm/admin-funcs/lookupsAddressValidation.d.ts +1 -1
- package/dist/esm/admin-funcs/lookupsAddressValidation.d.ts.map +1 -1
- package/dist/esm/admin-funcs/lookupsAddressValidation.js +1 -1
- package/dist/esm/admin-funcs/lookupsAddressValidation.js.map +1 -1
- package/dist/esm/admin-funcs/registerCompanies.d.ts +16 -1
- package/dist/esm/admin-funcs/registerCompanies.d.ts.map +1 -1
- package/dist/esm/admin-funcs/registerCompanies.js +9 -1
- package/dist/esm/admin-funcs/registerCompanies.js.map +1 -1
- package/dist/esm/admin-funcs/registerGeneralInfo.d.ts +5 -4
- package/dist/esm/admin-funcs/registerGeneralInfo.d.ts.map +1 -1
- package/dist/esm/admin-funcs/registerGeneralInfo.js.map +1 -1
- package/dist/esm/admin-funcs/registerPassword.d.ts +2 -1
- package/dist/esm/admin-funcs/registerPassword.d.ts.map +1 -1
- package/dist/esm/admin-funcs/registerPassword.js.map +1 -1
- package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.d.ts +2 -0
- package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.d.ts.map +1 -1
- package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.js.map +1 -1
- package/dist/esm/funcs/companiesLookupCompanies.js +2 -0
- package/dist/esm/funcs/companiesLookupCompanies.js.map +1 -1
- package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts +1 -1
- package/dist/esm/funcs/zonesSecurityZoneCheckin.js +1 -1
- package/dist/esm/index.extras.d.ts +3 -5
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +4 -6
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +4 -1
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/models/components/companylookup.d.ts +21 -1
- package/dist/esm/models/components/companylookup.d.ts.map +1 -1
- package/dist/esm/models/components/companylookup.js +5 -0
- package/dist/esm/models/components/companylookup.js.map +1 -1
- package/dist/esm/models/operations/createvendor.d.ts +0 -5
- package/dist/esm/models/operations/createvendor.d.ts.map +1 -1
- package/dist/esm/models/operations/createvendor.js +0 -1
- package/dist/esm/models/operations/createvendor.js.map +1 -1
- package/dist/esm/models/operations/lookupcompanies.d.ts +13 -0
- package/dist/esm/models/operations/lookupcompanies.d.ts.map +1 -1
- package/dist/esm/models/operations/lookupcompanies.js +4 -0
- package/dist/esm/models/operations/lookupcompanies.js.map +1 -1
- package/dist/esm/react-query/companiesLookupCompanies.core.d.ts +4 -0
- package/dist/esm/react-query/companiesLookupCompanies.core.d.ts.map +1 -1
- package/dist/esm/react-query/companiesLookupCompanies.core.js +4 -0
- package/dist/esm/react-query/companiesLookupCompanies.core.js.map +1 -1
- package/dist/esm/react-query/companiesLookupCompanies.d.ts +4 -0
- package/dist/esm/react-query/companiesLookupCompanies.d.ts.map +1 -1
- package/dist/esm/react-query/companiesLookupCompanies.js.map +1 -1
- package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts +1 -1
- package/dist/esm/react-query/zonesSecurityZoneCheckin.js +1 -1
- package/dist/esm/sdk/zones.d.ts +1 -1
- package/dist/esm/sdk/zones.js +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +6 -5
- package/src/__tests__/zones.test.ts +9 -2
- package/src/admin-funcs/lookupsAddressAutocomplete.ts +2 -2
- package/src/admin-funcs/lookupsAddressPlace.ts +4 -6
- package/src/admin-funcs/lookupsAddressValidation.ts +3 -2
- package/src/admin-funcs/registerCompanies.ts +22 -2
- package/src/admin-funcs/registerGeneralInfo.ts +5 -4
- package/src/admin-funcs/registerPassword.ts +2 -1
- package/src/admin-funcs/subscriptionUpdatePaymentProfile.ts +3 -0
- package/src/funcs/companiesLookupCompanies.ts +2 -0
- package/src/funcs/zonesSecurityZoneCheckin.ts +1 -1
- package/src/index.extras.ts +8 -6
- package/src/lib/config.ts +3 -3
- package/src/lib/env.ts +7 -1
- package/src/models/components/companylookup.ts +26 -1
- package/src/models/operations/createvendor.ts +0 -6
- package/src/models/operations/lookupcompanies.ts +17 -0
- package/src/react-query/companiesLookupCompanies.core.ts +8 -0
- package/src/react-query/companiesLookupCompanies.ts +4 -0
- package/src/react-query/zonesSecurityZoneCheckin.ts +1 -1
- package/src/sdk/zones.ts +1 -1
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.d.ts +0 -3
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.d.ts.map +0 -1
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.js +0 -9
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.js.map +0 -1
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.d.ts +0 -3
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.d.ts.map +0 -1
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.js +0 -9
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.js.map +0 -1
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.d.ts +0 -3
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.d.ts.map +0 -1
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.js +0 -6
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.js.map +0 -1
- package/dist/esm/admin-funcs/vendorGetPaymentForm.d.ts +0 -3
- package/dist/esm/admin-funcs/vendorGetPaymentForm.d.ts.map +0 -1
- package/dist/esm/admin-funcs/vendorGetPaymentForm.js +0 -6
- package/dist/esm/admin-funcs/vendorGetPaymentForm.js.map +0 -1
- package/src/admin-funcs/companyManagerGetPaymentForm.ts +0 -6
- package/src/admin-funcs/vendorGetPaymentForm.ts +0 -6
|
@@ -26,6 +26,8 @@ export function buildCompaniesLookupCompaniesQuery(client$, request, options) {
|
|
|
26
26
|
page: request.page,
|
|
27
27
|
itemsPerPage: request.itemsPerPage,
|
|
28
28
|
nameLike: request.nameLike,
|
|
29
|
+
taxId: request.taxId,
|
|
30
|
+
matchEmailDomain: request.matchEmailDomain,
|
|
29
31
|
}),
|
|
30
32
|
queryFn: async function companiesLookupCompaniesQueryFn(ctx) {
|
|
31
33
|
const sig = combineSignals(ctx.signal, options?.signal, options?.fetchOptions?.signal);
|
|
@@ -46,6 +48,8 @@ export function buildCompaniesLookupCompaniesInfiniteQuery(client$, request, opt
|
|
|
46
48
|
page: request.page,
|
|
47
49
|
itemsPerPage: request.itemsPerPage,
|
|
48
50
|
nameLike: request.nameLike,
|
|
51
|
+
taxId: request.taxId,
|
|
52
|
+
matchEmailDomain: request.matchEmailDomain,
|
|
49
53
|
}),
|
|
50
54
|
queryFn: async function companiesLookupCompaniesQuery(ctx) {
|
|
51
55
|
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companiesLookupCompanies.core.js","sourceRoot":"","sources":["../../../src/react-query/companiesLookupCompanies.core.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAItD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAcjD,MAAM,UAAU,gCAAgC,CAC9C,WAAwB,EACxB,OAA0B,EAC1B,OAA0C,EAC1C,OAAwB;IAExB,OAAO,WAAW,CAAC,aAAa,CAAC;QAC/B,GAAG,kCAAkC,CACnC,OAAO,EACP,OAAO,EACP,OAAO,CACR;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,WAAwB,EACxB,OAA0B,EAC1B,OAA0C,EAC1C,OAAwB;IAExB,OAAO,WAAW,CAAC,qBAAqB,CAAC;QACvC,GAAG,0CAA0C,CAC3C,OAAO,EACP,OAAO,EACP,OAAO,CACR;QACD,gBAAgB,EAAE,SAA+C;QACjE,gBAAgB,EAAE,CAChB,YAAuD,EACvD,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC;KAC3B,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAA0B,EAC1B,OAA0C,EAC1C,OAAwB;IAOxB,OAAO;QACL,QAAQ,EAAE,gCAAgC,CAAC;YACzC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,QAAQ,EAAE,OAAO,CAAC,QAAQ;
|
|
1
|
+
{"version":3,"file":"companiesLookupCompanies.core.js","sourceRoot":"","sources":["../../../src/react-query/companiesLookupCompanies.core.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAItD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAcjD,MAAM,UAAU,gCAAgC,CAC9C,WAAwB,EACxB,OAA0B,EAC1B,OAA0C,EAC1C,OAAwB;IAExB,OAAO,WAAW,CAAC,aAAa,CAAC;QAC/B,GAAG,kCAAkC,CACnC,OAAO,EACP,OAAO,EACP,OAAO,CACR;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,WAAwB,EACxB,OAA0B,EAC1B,OAA0C,EAC1C,OAAwB;IAExB,OAAO,WAAW,CAAC,qBAAqB,CAAC;QACvC,GAAG,0CAA0C,CAC3C,OAAO,EACP,OAAO,EACP,OAAO,CACR;QACD,gBAAgB,EAAE,SAA+C;QACjE,gBAAgB,EAAE,CAChB,YAAuD,EACvD,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC;KAC3B,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAA0B,EAC1B,OAA0C,EAC1C,OA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E,YAAY,EAAE,MAAM,CAAC,CAAC;YACtE,MAAM,aAAa,GAAG;gBACpB,GAAG,OAAO;gBACV,YAAY,EAAE,EAAE,GAAG,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE;aACxD,CAAC;YAEF,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;gBACnB,MAAM,UAAU,GAAG,MAAM,oBAAoB,CAAC,wBAAwB,CACpE,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;gBACH,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC;YACxC,CAAC;YACD,MAAM,UAAU,GAAG,MAAM,oBAAoB,CAAC,wBAAwB,CACpE,OAAO,EACP;gBACE,GAAG,OAAO;gBACV,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,IAAI;aACzB,EACD,aAAa,CACd,CAAC,CAAC;YACH,OAAO,kBAAkB,CAAC,UAAU,CAAC,CAAC;QACxC,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,UAQC;IAED,OAAO;QACL,+BAA+B;QAC/B,WAAW;QACX,iBAAiB;QACjB,UAAU;KACX,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,UAQC;IAED,OAAO;QACL,+BAA+B;QAC/B,WAAW;QACX,iBAAiB;QACjB,UAAU;QACV,UAAU;KACX,CAAC;AACJ,CAAC"}
|
|
@@ -65,6 +65,8 @@ export declare function setCompaniesLookupCompaniesData(client: QueryClient, que
|
|
|
65
65
|
page?: number | undefined;
|
|
66
66
|
itemsPerPage?: number | undefined;
|
|
67
67
|
nameLike?: string | undefined;
|
|
68
|
+
taxId?: string | undefined;
|
|
69
|
+
matchEmailDomain?: boolean | undefined;
|
|
68
70
|
}
|
|
69
71
|
], data: CompaniesLookupCompaniesQueryData): CompaniesLookupCompaniesQueryData | undefined;
|
|
70
72
|
export declare function invalidateCompaniesLookupCompanies(client: QueryClient, queryKeyBase: TupleToPrefixes<[
|
|
@@ -74,6 +76,8 @@ export declare function invalidateCompaniesLookupCompanies(client: QueryClient,
|
|
|
74
76
|
page?: number | undefined;
|
|
75
77
|
itemsPerPage?: number | undefined;
|
|
76
78
|
nameLike?: string | undefined;
|
|
79
|
+
taxId?: string | undefined;
|
|
80
|
+
matchEmailDomain?: boolean | undefined;
|
|
77
81
|
}
|
|
78
82
|
]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
79
83
|
export declare function invalidateAllCompaniesLookupCompanies(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companiesLookupCompanies.d.ts","sourceRoot":"","sources":["../../../src/react-query/companiesLookupCompanies.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,0CAA0C,EAC1C,kCAAkC,EAClC,yCAAyC,EACzC,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,kCAAkC,CACnC,GACA,8BAA8B,CAC/B,YAAY,CACV,yCAAyC,EACzC,kCAAkC,CACnC,EACD,kCAAkC,CACnC,CAqBA;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE;IACZ,UAAU,EAAE;QACV,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QACjC,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC;QACnC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"companiesLookupCompanies.d.ts","sourceRoot":"","sources":["../../../src/react-query/companiesLookupCompanies.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,0CAA0C,EAC1C,kC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AAI,CAAC,CAUf;AAED,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companiesLookupCompanies.js","sourceRoot":"","sources":["../../../src/react-query/companiesLookupCompanies.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAKL,gBAAgB,EAEhB,QAAQ,EAER,wBAAwB,EAExB,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC;AAc/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAQxD,OAAO,EACL,0CAA0C,EAC1C,kCAAkC,EAIlC,gCAAgC,EAChC,wCAAwC,EACxC,gCAAgC,EAChC,wCAAwC,GACzC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,0CAA0C,EAC1C,kCAAkC,EAIlC,gCAAgC,EAChC,wCAAwC,EACxC,gCAAgC,EAChC,wCAAwC,GACzC,CAAC;AAaF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,2BAA2B,CACzC,OAA0C,EAC1C,OAGC;IAKD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,QAAQ,CAAC;QACd,GAAG,kCAAkC,CACnC,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mCAAmC,CACjD,OAA0C,EAC1C,OAGC;IAKD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,gBAAgB,CAAC;QACtB,GAAG,kCAAkC,CACnC,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mCAAmC,CACjD,OAA0C,EAC1C,OAGC;IAQD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,gBAAgB,CASrB;QACA,GAAG,0CAA0C,CAC3C,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,gBAAgB,EAAE,OAAO,EAAE,gBAAgB;QAC3C,gBAAgB,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC;QACzD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,2CAA2C,CACzD,OAA0C,EAC1C,OAGC;IAQD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,wBAAwB,CAS7B;QACA,GAAG,0CAA0C,CAC3C,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,gBAAgB,EAAE,OAAO,EAAE,gBAAgB;QAC3C,gBAAgB,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC;QACzD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,MAAmB,EACnB,
|
|
1
|
+
{"version":3,"file":"companiesLookupCompanies.js","sourceRoot":"","sources":["../../../src/react-query/companiesLookupCompanies.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAKL,gBAAgB,EAEhB,QAAQ,EAER,wBAAwB,EAExB,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC;AAc/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAQxD,OAAO,EACL,0CAA0C,EAC1C,kCAAkC,EAIlC,gCAAgC,EAChC,wCAAwC,EACxC,gCAAgC,EAChC,wCAAwC,GACzC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,0CAA0C,EAC1C,kCAAkC,EAIlC,gCAAgC,EAChC,wCAAwC,EACxC,gCAAgC,EAChC,wCAA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L,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,MAAmB,EACnB,YAUC,EACD,IAAuC;IAEvC,MAAM,GAAG,GAAG,gCAAgC,CAAC,GAAG,YAAY,CAAC,CAAC;IAE9D,OAAO,MAAM,CAAC,YAAY,CAAoC,GAAG,EAAE,IAAI,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,MAAmB,EACnB,YAUC,EACD,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,WAAW;YACX,iBAAiB;YACjB,GAAG,YAAY;SAChB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qCAAqC,CACnD,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE,CAAC,+BAA+B,EAAE,WAAW,EAAE,iBAAiB,CAAC;KAC5E,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -20,7 +20,7 @@ export type ZonesSecurityZoneCheckinMutationError = errors.ApiErrorResponse | Gr
|
|
|
20
20
|
* @remarks
|
|
21
21
|
* Requests a check-in to a security zone.
|
|
22
22
|
*
|
|
23
|
-
* **Permissions.** Requires
|
|
23
|
+
* **Permissions.** Requires the `vendor_scans.add` permission, including for a vendor checking themselves in. App tokens (`gsu_`, `gsi_`) get `403`.
|
|
24
24
|
*/
|
|
25
25
|
export declare function useZonesSecurityZoneCheckinMutation(options?: MutationHookOptions<ZonesSecurityZoneCheckinMutationData, ZonesSecurityZoneCheckinMutationError, ZonesSecurityZoneCheckinMutationVariables>): UseMutationResult<ZonesSecurityZoneCheckinMutationData, ZonesSecurityZoneCheckinMutationError, ZonesSecurityZoneCheckinMutationVariables>;
|
|
26
26
|
export declare function mutationKeyZonesSecurityZoneCheckin(): MutationKey;
|
|
@@ -12,7 +12,7 @@ import { useGreenSecurityContext } from "./_context.js";
|
|
|
12
12
|
* @remarks
|
|
13
13
|
* Requests a check-in to a security zone.
|
|
14
14
|
*
|
|
15
|
-
* **Permissions.** Requires
|
|
15
|
+
* **Permissions.** Requires the `vendor_scans.add` permission, including for a vendor checking themselves in. App tokens (`gsu_`, `gsi_`) get `403`.
|
|
16
16
|
*/
|
|
17
17
|
export function useZonesSecurityZoneCheckinMutation(options) {
|
|
18
18
|
const client = useGreenSecurityContext();
|
package/dist/esm/sdk/zones.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare class Zones extends ClientSDK {
|
|
|
40
40
|
* @remarks
|
|
41
41
|
* Requests a check-in to a security zone.
|
|
42
42
|
*
|
|
43
|
-
* **Permissions.** Requires
|
|
43
|
+
* **Permissions.** Requires the `vendor_scans.add` permission, including for a vendor checking themselves in. App tokens (`gsu_`, `gsi_`) get `403`.
|
|
44
44
|
*/
|
|
45
45
|
securityZoneCheckin(request: operations.SecurityZoneCheckinRequestBody, options?: RequestOptions): Promise<operations.SecurityZoneCheckinSecurityZoneCheckinOk>;
|
|
46
46
|
}
|
package/dist/esm/sdk/zones.js
CHANGED
|
@@ -47,7 +47,7 @@ export class Zones extends ClientSDK {
|
|
|
47
47
|
* @remarks
|
|
48
48
|
* Requests a check-in to a security zone.
|
|
49
49
|
*
|
|
50
|
-
* **Permissions.** Requires
|
|
50
|
+
* **Permissions.** Requires the `vendor_scans.add` permission, including for a vendor checking themselves in. App tokens (`gsu_`, `gsi_`) get `403`.
|
|
51
51
|
*/
|
|
52
52
|
async securityZoneCheckin(request, options) {
|
|
53
53
|
return unwrapAsync(zonesSecurityZoneCheckin(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greensecurity/javascript-sdk",
|
|
3
|
-
"version": "0.49.0-beta.
|
|
3
|
+
"version": "0.49.0-beta.10",
|
|
4
4
|
"author": "Green Security LLC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"tshy": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@quilted/threads": "^4.1.0",
|
|
69
69
|
"@remote-dom/core": "^1.12.0",
|
|
70
|
-
"zod": "^3.25.0 || ^4.
|
|
70
|
+
"zod": "^3.25.0 || ^4.6.6"
|
|
71
71
|
},
|
|
72
72
|
"exports": {
|
|
73
73
|
".": {
|
|
@@ -20,7 +20,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
|
|
|
20
20
|
const testWebhookListForVendorUserResult = await greenSecurity.webhooks
|
|
21
21
|
.listAllWebhookEndpoints({
|
|
22
22
|
itemsPerPage: 25,
|
|
23
|
-
desc:
|
|
23
|
+
desc: true,
|
|
24
24
|
sort: "",
|
|
25
25
|
});
|
|
26
26
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|
|
@@ -62,10 +62,11 @@ test("Webhooks Updates The Webhook Endpoint With The Given Id", async () => {
|
|
|
62
62
|
id: 220782,
|
|
63
63
|
webhookEndpointUpdate: {
|
|
64
64
|
webhookUrl: "https://example.com/webhook/incoming",
|
|
65
|
-
subscriptions:
|
|
66
|
-
"Vendor
|
|
67
|
-
"
|
|
68
|
-
|
|
65
|
+
subscriptions: {
|
|
66
|
+
model: "Vendor",
|
|
67
|
+
action: "updated",
|
|
68
|
+
expands: "vendor.company,vendor.user",
|
|
69
|
+
},
|
|
69
70
|
consumers: {
|
|
70
71
|
systemId: 1,
|
|
71
72
|
facilityId: 1,
|
|
@@ -39,7 +39,14 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
39
39
|
facility: {},
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
facility: {
|
|
42
|
+
facility: {
|
|
43
|
+
contacts: null,
|
|
44
|
+
vendorGuestPolicy: {
|
|
45
|
+
enabled: true,
|
|
46
|
+
vendorGuestLimitAndOr: "and",
|
|
47
|
+
vendorGuestRequireEmail: false,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
43
50
|
},
|
|
44
51
|
],
|
|
45
52
|
});
|
|
@@ -58,7 +65,7 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
58
65
|
|
|
59
66
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
60
67
|
qrCode: "<value>",
|
|
61
|
-
zoneId:
|
|
68
|
+
zoneId: 679291,
|
|
62
69
|
});
|
|
63
70
|
expect(result).toBeDefined();
|
|
64
71
|
expect(result).toEqual({});
|
|
@@ -4,17 +4,17 @@ import { $doGetSingle, hashToQueryString, internalApiResult } from "./doAdmin.js
|
|
|
4
4
|
|
|
5
5
|
// Returns Google Places address suggestions for a partly typed street address.
|
|
6
6
|
export function lookupsAddressAutocomplete(
|
|
7
|
-
vendorCredentialId: number,
|
|
7
|
+
vendorCredentialId: number | null | undefined,
|
|
8
8
|
input: string,
|
|
9
9
|
sessionToken: string,
|
|
10
10
|
country?: string,
|
|
11
11
|
options?: RequestOptions,
|
|
12
12
|
): internalApiResult {
|
|
13
13
|
const params: Record<string, string> = {
|
|
14
|
-
vendor_credential_id: String(vendorCredentialId),
|
|
15
14
|
input,
|
|
16
15
|
session_token: sessionToken,
|
|
17
16
|
};
|
|
17
|
+
if (vendorCredentialId != null) params["vendor_credential_id"] = String(vendorCredentialId);
|
|
18
18
|
if (country) params["country"] = country;
|
|
19
19
|
|
|
20
20
|
return new APIPromise(
|
|
@@ -5,16 +5,14 @@ import { $doGetSingle, hashToQueryString, internalApiResult } from "./doAdmin.js
|
|
|
5
5
|
// Returns the address fields for an autocomplete suggestion the user picked. Pass the same sessionToken used for
|
|
6
6
|
// the autocomplete requests.
|
|
7
7
|
export function lookupsAddressPlace(
|
|
8
|
-
vendorCredentialId: number,
|
|
8
|
+
vendorCredentialId: number | null | undefined,
|
|
9
9
|
placeId: string,
|
|
10
10
|
sessionToken: string,
|
|
11
11
|
options?: RequestOptions,
|
|
12
12
|
): internalApiResult {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
session_token: sessionToken,
|
|
17
|
-
});
|
|
13
|
+
const params: Record<string, string> = { place_id: placeId, session_token: sessionToken };
|
|
14
|
+
if (vendorCredentialId != null) params["vendor_credential_id"] = String(vendorCredentialId);
|
|
15
|
+
const query = hashToQueryString(params);
|
|
18
16
|
|
|
19
17
|
return new APIPromise($doGetSingle(`/lookups/address-place?${query}`, {}, options));
|
|
20
18
|
}
|
|
@@ -3,7 +3,8 @@ import { RequestOptions } from "../lib/sdks.js";
|
|
|
3
3
|
import { $doPost, internalApiResult } from "./doAdmin.js";
|
|
4
4
|
|
|
5
5
|
export type lookupsAddressValidationRequest = {
|
|
6
|
-
|
|
6
|
+
// Omit for a billing address on a payment form, which has no credential.
|
|
7
|
+
vendor_credential_id?: number;
|
|
7
8
|
address1: string;
|
|
8
9
|
address2?: string;
|
|
9
10
|
city?: string;
|
|
@@ -12,7 +13,7 @@ export type lookupsAddressValidationRequest = {
|
|
|
12
13
|
country?: string;
|
|
13
14
|
};
|
|
14
15
|
|
|
15
|
-
// Checks a shipping address with Google's Address Validation API
|
|
16
|
+
// Checks a shipping or billing address with Google's Address Validation API
|
|
16
17
|
export function lookupsAddressValidation(
|
|
17
18
|
request: lookupsAddressValidationRequest,
|
|
18
19
|
options?: RequestOptions,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { APIPromise } from "../types/async.js";
|
|
2
|
-
import { $doPost, internalApiResult } from "./doAdmin.js";
|
|
2
|
+
import { $doGetSingle, $doPost, internalApiResult } from "./doAdmin.js";
|
|
3
3
|
|
|
4
4
|
export type companyPayload = {
|
|
5
5
|
name: string;
|
|
6
|
-
contact_name
|
|
6
|
+
contact_name?: string;
|
|
7
7
|
contact_email: string;
|
|
8
8
|
address: string;
|
|
9
9
|
city: string;
|
|
@@ -21,3 +21,23 @@ export function submitCompany(request: companyPayload): internalApiResult {
|
|
|
21
21
|
request
|
|
22
22
|
));
|
|
23
23
|
}
|
|
24
|
+
|
|
25
|
+
/** Add-company values read from a website's JSON-LD. Resolves to `{ company }`, `{}` when nothing was found. */
|
|
26
|
+
export function prefillCompany(request: { website: string }): internalApiResult {
|
|
27
|
+
return new APIPromise($doGetSingle("/vendors/register/companies/prefill", request));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type registrationSupervisor = {
|
|
31
|
+
name: string;
|
|
32
|
+
email: string;
|
|
33
|
+
phone: string | null;
|
|
34
|
+
kind: "company_manager" | "supervisor";
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** Supervisor suggestions for a company whose name has a word starting with `q` (2+ chars). Resolves to `{ items }`. */
|
|
38
|
+
export function getCompanySupervisors(request: { company_id: number; q: string }): internalApiResult {
|
|
39
|
+
return new APIPromise($doGetSingle(
|
|
40
|
+
"/vendors/register/companies/" + request.company_id + "/supervisors",
|
|
41
|
+
{ q: request.q }
|
|
42
|
+
));
|
|
43
|
+
}
|
|
@@ -2,7 +2,6 @@ import { APIPromise } from "../types/async.js";
|
|
|
2
2
|
import { $doPost, internalApiResult } from "./doAdmin.js";
|
|
3
3
|
|
|
4
4
|
export type formInputs = {
|
|
5
|
-
federal: string;
|
|
6
5
|
first_name: string;
|
|
7
6
|
last_name: string;
|
|
8
7
|
vendor_job_id: number;
|
|
@@ -11,9 +10,11 @@ export type formInputs = {
|
|
|
11
10
|
fax: string;
|
|
12
11
|
timezone: string;
|
|
13
12
|
company_id: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
/** When true the supervisor fields are omitted and cleared. */
|
|
14
|
+
no_supervisor?: boolean;
|
|
15
|
+
supervisor_name?: string;
|
|
16
|
+
supervisor_email?: string;
|
|
17
|
+
supervisor_phone?: string;
|
|
17
18
|
/** Contact emails; the login stays the email the vendor registered with, which must be one of the two. */
|
|
18
19
|
work_email?: string;
|
|
19
20
|
personal_email?: string;
|
|
@@ -3,7 +3,8 @@ import { $doPost, internalApiResult } from "./doAdmin.js";
|
|
|
3
3
|
|
|
4
4
|
export type passwordRegisterData = {
|
|
5
5
|
password: string | null;
|
|
6
|
-
|
|
6
|
+
/** Omitted by the single-field form. */
|
|
7
|
+
password_confirm?: string | null;
|
|
7
8
|
};
|
|
8
9
|
|
|
9
10
|
export function submitPassword(request: passwordRegisterData): internalApiResult {
|
|
@@ -8,6 +8,9 @@ export type subscriptionUpdatePaymentProfileRequest = {
|
|
|
8
8
|
first_name?: string;
|
|
9
9
|
last_name?: string;
|
|
10
10
|
address?: string;
|
|
11
|
+
address2?: string;
|
|
12
|
+
// From POST /lookups/address-validation. Required when the country is one Google can validate.
|
|
13
|
+
address_verification_hash?: string;
|
|
11
14
|
city?: string;
|
|
12
15
|
state?: string;
|
|
13
16
|
zip?: string;
|
|
@@ -113,9 +113,11 @@ async function $do(
|
|
|
113
113
|
const query = encodeFormQuery({
|
|
114
114
|
"desc": payload.desc,
|
|
115
115
|
"items_per_page": payload.items_per_page,
|
|
116
|
+
"match_email_domain": payload.match_email_domain,
|
|
116
117
|
"name_like": payload.name_like,
|
|
117
118
|
"page": payload.page,
|
|
118
119
|
"sort": payload.sort,
|
|
120
|
+
"tax_id": payload.tax_id,
|
|
119
121
|
});
|
|
120
122
|
|
|
121
123
|
const headers = new Headers(compactMap({
|
|
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* Requests a check-in to a security zone.
|
|
34
34
|
*
|
|
35
|
-
* **Permissions.** Requires
|
|
35
|
+
* **Permissions.** Requires the `vendor_scans.add` permission, including for a vendor checking themselves in. App tokens (`gsu_`, `gsi_`) get `403`.
|
|
36
36
|
*
|
|
37
37
|
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
38
38
|
*/
|
package/src/index.extras.ts
CHANGED
|
@@ -32,7 +32,11 @@ import { handoffStayAlive } from "./admin-funcs/handoffStayAlive.js";
|
|
|
32
32
|
import { submitEmailStep } from "./admin-funcs/registerEmail.js";
|
|
33
33
|
import { submitPassword } from "./admin-funcs/registerPassword.js";
|
|
34
34
|
import { submitGeneralInfo } from "./admin-funcs/registerGeneralInfo.js";
|
|
35
|
-
import {
|
|
35
|
+
import {
|
|
36
|
+
getCompanySupervisors,
|
|
37
|
+
prefillCompany,
|
|
38
|
+
submitCompany,
|
|
39
|
+
} from "./admin-funcs/registerCompanies.js";
|
|
36
40
|
import {
|
|
37
41
|
clearComplete,
|
|
38
42
|
clearCreateSession,
|
|
@@ -49,10 +53,8 @@ import { smartBadgeReportVerifiedPsk } from "./admin-funcs/smartBadgeReportVerif
|
|
|
49
53
|
import { notifyVendorCredentialFileUploaded } from "./admin-funcs/notifyVendorCredentialFileUploaded.js";
|
|
50
54
|
import { vendorCredentialGetFormLineItems } from "./admin-funcs/vendorCredentialGetFormLineItems.js";
|
|
51
55
|
import { vendorCredentialCreateFormQuote } from "./admin-funcs/vendorCredentialCreateFormQuote.js";
|
|
52
|
-
import { companyManagerGetPaymentForm } from "./admin-funcs/companyManagerGetPaymentForm.js";
|
|
53
56
|
import { companyManagerGetAutopay } from "./admin-funcs/companyManagerGetAutopay.js";
|
|
54
57
|
import { companyManagerUpdateAutopay } from "./admin-funcs/companyManagerUpdateAutopay.js";
|
|
55
|
-
import { vendorGetPaymentForm } from "./admin-funcs/vendorGetPaymentForm.js";
|
|
56
58
|
import { vendorGetSystemsRequiringSmartBadge } from "./admin-funcs/vendorGetSystemsRequiringSmartBadge.js";
|
|
57
59
|
import { vendorGetCompanyCredentialsSummary } from "./admin-funcs/vendorGetCompanyCredentialsSummary.js";
|
|
58
60
|
|
|
@@ -136,7 +138,9 @@ export const __internal = {
|
|
|
136
138
|
submitEmailStep,
|
|
137
139
|
submitPassword,
|
|
138
140
|
submitGeneralInfo,
|
|
139
|
-
submitCompany
|
|
141
|
+
submitCompany,
|
|
142
|
+
prefillCompany,
|
|
143
|
+
getCompanySupervisors
|
|
140
144
|
},
|
|
141
145
|
|
|
142
146
|
clear: {
|
|
@@ -183,13 +187,11 @@ export const __internal = {
|
|
|
183
187
|
},
|
|
184
188
|
|
|
185
189
|
companyManager: {
|
|
186
|
-
getPaymentForm: companyManagerGetPaymentForm,
|
|
187
190
|
getAutopay: companyManagerGetAutopay,
|
|
188
191
|
updateAutopay: companyManagerUpdateAutopay,
|
|
189
192
|
},
|
|
190
193
|
|
|
191
194
|
vendor: {
|
|
192
|
-
getPaymentForm: vendorGetPaymentForm,
|
|
193
195
|
getSystemsRequiringSmartBadge: vendorGetSystemsRequiringSmartBadge,
|
|
194
196
|
getCompanyCredentialsSummary: vendorGetCompanyCredentialsSummary
|
|
195
197
|
},
|
package/src/lib/config.ts
CHANGED
|
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "0.48.0",
|
|
83
|
-
sdkVersion: "0.49.0-beta.
|
|
84
|
-
genVersion: "2.
|
|
83
|
+
sdkVersion: "0.49.0-beta.10",
|
|
84
|
+
genVersion: "2.960.8",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.49.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.49.0-beta.10 2.960.8 0.48.0 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
package/src/lib/env.ts
CHANGED
|
@@ -15,9 +15,15 @@ export const envSchema: z.ZodType<Env, z.ZodTypeDef, unknown> = z.object({
|
|
|
15
15
|
GREEN_SECURITY_TOKEN: z.string().optional(),
|
|
16
16
|
GREEN_SECURITY_BEARER_JWT: z.string().optional(),
|
|
17
17
|
|
|
18
|
-
GREEN_SECURITY_DEBUG: z.
|
|
18
|
+
GREEN_SECURITY_DEBUG: z.unknown().transform(parseEnvFlag).optional(),
|
|
19
19
|
});
|
|
20
20
|
|
|
21
|
+
function parseEnvFlag(value: unknown): boolean {
|
|
22
|
+
return ["true", "1", "yes", "on"].includes(
|
|
23
|
+
String(value).trim().toLowerCase(),
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
/**
|
|
22
28
|
* Checks for the existence of the Deno global object to determine the environment.
|
|
23
29
|
* @returns {boolean} True if the runtime is Deno, false otherwise.
|
|
@@ -9,7 +9,7 @@ import * as types from "../../types/primitives.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* A minimal reference to a company, used in lookups.
|
|
12
|
+
* A minimal reference to a company, used in lookups. Never includes the tax ID.
|
|
13
13
|
*/
|
|
14
14
|
export type CompanyLookup = {
|
|
15
15
|
/**
|
|
@@ -20,6 +20,26 @@ export type CompanyLookup = {
|
|
|
20
20
|
* The name of the company, or `null` if none.
|
|
21
21
|
*/
|
|
22
22
|
name: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The company status, such as `Active`, or `Inactive` while it awaits review.
|
|
25
|
+
*/
|
|
26
|
+
status?: string | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The company's first email domain, else its website host, or `null` if neither.
|
|
29
|
+
*/
|
|
30
|
+
domain?: string | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The company website, or `null` if none.
|
|
33
|
+
*/
|
|
34
|
+
website?: string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The company city, or `null` if none.
|
|
37
|
+
*/
|
|
38
|
+
city?: string | null | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* The company state or province, or `null` if none.
|
|
41
|
+
*/
|
|
42
|
+
state?: string | null | undefined;
|
|
23
43
|
};
|
|
24
44
|
|
|
25
45
|
/** @internal */
|
|
@@ -30,6 +50,11 @@ export const CompanyLookup$inboundSchema: z.ZodType<
|
|
|
30
50
|
> = z.object({
|
|
31
51
|
id: types.number(),
|
|
32
52
|
name: types.nullable(types.string()),
|
|
53
|
+
status: z.nullable(types.string()).optional(),
|
|
54
|
+
domain: z.nullable(types.string()).optional(),
|
|
55
|
+
website: z.nullable(types.string()).optional(),
|
|
56
|
+
city: z.nullable(types.string()).optional(),
|
|
57
|
+
state: z.nullable(types.string()).optional(),
|
|
33
58
|
});
|
|
34
59
|
|
|
35
60
|
export function companyLookupFromJSON(
|
|
@@ -49,10 +49,6 @@ export type CreateVendorRequestBody = {
|
|
|
49
49
|
* Rails timezone name (for example, Eastern Time (US and Canada))
|
|
50
50
|
*/
|
|
51
51
|
timezone?: string | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Whether a federal agency has listed the vendor as disbarred or excluded
|
|
54
|
-
*/
|
|
55
|
-
federal?: boolean | undefined;
|
|
56
52
|
/**
|
|
57
53
|
* ID of the vendor's primary facility
|
|
58
54
|
*/
|
|
@@ -122,7 +118,6 @@ export type CreateVendorRequestBody$Outbound = {
|
|
|
122
118
|
mobile_phone?: string | undefined;
|
|
123
119
|
fax?: string | undefined;
|
|
124
120
|
timezone?: string | undefined;
|
|
125
|
-
federal?: boolean | undefined;
|
|
126
121
|
primary_facility_id: number;
|
|
127
122
|
supervisor_name: string;
|
|
128
123
|
supervisor_email: string;
|
|
@@ -150,7 +145,6 @@ export const CreateVendorRequestBody$outboundSchema: z.ZodType<
|
|
|
150
145
|
mobilePhone: z.string().optional(),
|
|
151
146
|
fax: z.string().optional(),
|
|
152
147
|
timezone: z.string().optional(),
|
|
153
|
-
federal: z.boolean().optional(),
|
|
154
148
|
primaryFacilityId: z.number().int(),
|
|
155
149
|
supervisorName: z.string(),
|
|
156
150
|
supervisorEmail: z.string(),
|
|
@@ -30,6 +30,17 @@ export type LookupCompaniesRequest = {
|
|
|
30
30
|
* A partial string to search in the object name. Do not include any wildcard characters. Searches are not case-sensitive by default.
|
|
31
31
|
*/
|
|
32
32
|
nameLike?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Only the company holding this federal tax ID (EIN or SSN format, dash optional).
|
|
35
|
+
*/
|
|
36
|
+
taxId?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Only companies that own the caller's login email domain, or whose vendors sign in with it.
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* Free-mail domains such as gmail.com match nothing.
|
|
42
|
+
*/
|
|
43
|
+
matchEmailDomain?: boolean | undefined;
|
|
33
44
|
};
|
|
34
45
|
|
|
35
46
|
/**
|
|
@@ -54,6 +65,8 @@ export type LookupCompaniesRequest$Outbound = {
|
|
|
54
65
|
page?: number | undefined;
|
|
55
66
|
items_per_page: number;
|
|
56
67
|
name_like?: string | undefined;
|
|
68
|
+
tax_id?: string | undefined;
|
|
69
|
+
match_email_domain?: boolean | undefined;
|
|
57
70
|
};
|
|
58
71
|
|
|
59
72
|
/** @internal */
|
|
@@ -67,10 +80,14 @@ export const LookupCompaniesRequest$outboundSchema: z.ZodType<
|
|
|
67
80
|
page: z.number().int().optional(),
|
|
68
81
|
itemsPerPage: z.number().int().default(25),
|
|
69
82
|
nameLike: z.string().optional(),
|
|
83
|
+
taxId: z.string().optional(),
|
|
84
|
+
matchEmailDomain: z.boolean().optional(),
|
|
70
85
|
}).transform((v) => {
|
|
71
86
|
return remap$(v, {
|
|
72
87
|
itemsPerPage: "items_per_page",
|
|
73
88
|
nameLike: "name_like",
|
|
89
|
+
taxId: "tax_id",
|
|
90
|
+
matchEmailDomain: "match_email_domain",
|
|
74
91
|
});
|
|
75
92
|
});
|
|
76
93
|
|
|
@@ -80,6 +80,8 @@ export function buildCompaniesLookupCompaniesQuery(
|
|
|
80
80
|
page: request.page,
|
|
81
81
|
itemsPerPage: request.itemsPerPage,
|
|
82
82
|
nameLike: request.nameLike,
|
|
83
|
+
taxId: request.taxId,
|
|
84
|
+
matchEmailDomain: request.matchEmailDomain,
|
|
83
85
|
}),
|
|
84
86
|
queryFn: async function companiesLookupCompaniesQueryFn(
|
|
85
87
|
ctx,
|
|
@@ -121,6 +123,8 @@ export function buildCompaniesLookupCompaniesInfiniteQuery(
|
|
|
121
123
|
page: request.page,
|
|
122
124
|
itemsPerPage: request.itemsPerPage,
|
|
123
125
|
nameLike: request.nameLike,
|
|
126
|
+
taxId: request.taxId,
|
|
127
|
+
matchEmailDomain: request.matchEmailDomain,
|
|
124
128
|
}),
|
|
125
129
|
queryFn: async function companiesLookupCompaniesQuery(
|
|
126
130
|
ctx,
|
|
@@ -159,6 +163,8 @@ export function queryKeyCompaniesLookupCompanies(
|
|
|
159
163
|
page?: number | undefined;
|
|
160
164
|
itemsPerPage?: number | undefined;
|
|
161
165
|
nameLike?: string | undefined;
|
|
166
|
+
taxId?: string | undefined;
|
|
167
|
+
matchEmailDomain?: boolean | undefined;
|
|
162
168
|
},
|
|
163
169
|
): QueryKey {
|
|
164
170
|
return [
|
|
@@ -176,6 +182,8 @@ export function queryKeyCompaniesLookupCompaniesInfinite(
|
|
|
176
182
|
page?: number | undefined;
|
|
177
183
|
itemsPerPage?: number | undefined;
|
|
178
184
|
nameLike?: string | undefined;
|
|
185
|
+
taxId?: string | undefined;
|
|
186
|
+
matchEmailDomain?: boolean | undefined;
|
|
179
187
|
},
|
|
180
188
|
): QueryKey {
|
|
181
189
|
return [
|
|
@@ -236,6 +236,8 @@ export function setCompaniesLookupCompaniesData(
|
|
|
236
236
|
page?: number | undefined;
|
|
237
237
|
itemsPerPage?: number | undefined;
|
|
238
238
|
nameLike?: string | undefined;
|
|
239
|
+
taxId?: string | undefined;
|
|
240
|
+
matchEmailDomain?: boolean | undefined;
|
|
239
241
|
},
|
|
240
242
|
],
|
|
241
243
|
data: CompaniesLookupCompaniesQueryData,
|
|
@@ -254,6 +256,8 @@ export function invalidateCompaniesLookupCompanies(
|
|
|
254
256
|
page?: number | undefined;
|
|
255
257
|
itemsPerPage?: number | undefined;
|
|
256
258
|
nameLike?: string | undefined;
|
|
259
|
+
taxId?: string | undefined;
|
|
260
|
+
matchEmailDomain?: boolean | undefined;
|
|
257
261
|
}]
|
|
258
262
|
>,
|
|
259
263
|
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
@@ -52,7 +52,7 @@ export type ZonesSecurityZoneCheckinMutationError =
|
|
|
52
52
|
* @remarks
|
|
53
53
|
* Requests a check-in to a security zone.
|
|
54
54
|
*
|
|
55
|
-
* **Permissions.** Requires
|
|
55
|
+
* **Permissions.** Requires the `vendor_scans.add` permission, including for a vendor checking themselves in. App tokens (`gsu_`, `gsi_`) get `403`.
|
|
56
56
|
*/
|
|
57
57
|
export function useZonesSecurityZoneCheckinMutation(
|
|
58
58
|
options?: MutationHookOptions<
|