@greensecurity/javascript-sdk 0.44.0-beta.8 → 0.44.0-beta.9

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.
Files changed (71) hide show
  1. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  2. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  3. package/dist/commonjs/__tests__/zones.test.js +29 -3
  4. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  5. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts +4 -0
  6. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -1
  7. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js +8 -0
  8. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js.map +1 -1
  9. package/dist/commonjs/lib/config.d.ts +2 -2
  10. package/dist/commonjs/lib/config.js +2 -2
  11. package/dist/commonjs/models/components/companytargetfacility.d.ts +2 -2
  12. package/dist/commonjs/models/components/companytargetfacility.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/companytargetfacility.js +1 -1
  14. package/dist/commonjs/models/components/companytargetfacility.js.map +1 -1
  15. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +38 -3
  16. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +1 -1
  17. package/dist/commonjs/models/operations/listcompanytargetfacilities.js +21 -2
  18. package/dist/commonjs/models/operations/listcompanytargetfacilities.js.map +1 -1
  19. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts +8 -0
  20. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -1
  21. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +8 -0
  22. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -1
  23. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +24 -0
  24. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -1
  25. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +16 -0
  26. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js.map +1 -1
  27. package/dist/commonjs/sdk/organizations.d.ts +4 -0
  28. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  29. package/dist/commonjs/sdk/organizations.js +4 -0
  30. package/dist/commonjs/sdk/organizations.js.map +1 -1
  31. package/dist/esm/__tests__/webhooks.test.js +1 -1
  32. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  33. package/dist/esm/__tests__/zones.test.js +29 -3
  34. package/dist/esm/__tests__/zones.test.js.map +1 -1
  35. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts +4 -0
  36. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -1
  37. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +8 -0
  38. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js.map +1 -1
  39. package/dist/esm/lib/config.d.ts +2 -2
  40. package/dist/esm/lib/config.js +2 -2
  41. package/dist/esm/models/components/companytargetfacility.d.ts +2 -2
  42. package/dist/esm/models/components/companytargetfacility.d.ts.map +1 -1
  43. package/dist/esm/models/components/companytargetfacility.js +1 -1
  44. package/dist/esm/models/components/companytargetfacility.js.map +1 -1
  45. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +38 -3
  46. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +1 -1
  47. package/dist/esm/models/operations/listcompanytargetfacilities.js +20 -1
  48. package/dist/esm/models/operations/listcompanytargetfacilities.js.map +1 -1
  49. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts +8 -0
  50. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -1
  51. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +8 -0
  52. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -1
  53. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +24 -0
  54. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -1
  55. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +16 -0
  56. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js.map +1 -1
  57. package/dist/esm/sdk/organizations.d.ts +4 -0
  58. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  59. package/dist/esm/sdk/organizations.js +4 -0
  60. package/dist/esm/sdk/organizations.js.map +1 -1
  61. package/jsr.json +1 -1
  62. package/package.json +1 -1
  63. package/src/__tests__/webhooks.test.ts +1 -1
  64. package/src/__tests__/zones.test.ts +29 -3
  65. package/src/funcs/organizationsListCompanyTargetFacilities.ts +8 -0
  66. package/src/lib/config.ts +2 -2
  67. package/src/models/components/companytargetfacility.ts +3 -3
  68. package/src/models/operations/listcompanytargetfacilities.ts +52 -3
  69. package/src/react-query/organizationsListCompanyTargetFacilities.core.ts +16 -0
  70. package/src/react-query/organizationsListCompanyTargetFacilities.ts +26 -0
  71. package/src/sdk/organizations.ts +4 -0
@@ -19,6 +19,10 @@ export type OrganizationsListCompanyTargetFacilitiesQueryError = errors.ApiError
19
19
  * and parent system), the link status, and per-facility counts of the
20
20
  * company's individuals targeting it.
21
21
  *
22
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
23
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
24
+ * rows have `id: null` and `status: "Not Targeted"`.
25
+ *
22
26
  * Access control: the URL's `company_id` must be in the caller's read scope
23
27
  * for Company (a company manager's or vendor's own company, or a company
24
28
  * whose app is activated for the API user). Callers outside that scope
@@ -41,6 +45,10 @@ export declare function useOrganizationsListCompanyTargetFacilities(request: ope
41
45
  * and parent system), the link status, and per-facility counts of the
42
46
  * company's individuals targeting it.
43
47
  *
48
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
49
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
50
+ * rows have `id: null` and `status: "Not Targeted"`.
51
+ *
44
52
  * Access control: the URL's `company_id` must be in the caller's read scope
45
53
  * for Company (a company manager's or vendor's own company, or a company
46
54
  * whose app is activated for the API user). Callers outside that scope
@@ -63,6 +71,10 @@ export declare function useOrganizationsListCompanyTargetFacilitiesSuspense(requ
63
71
  * and parent system), the link status, and per-facility counts of the
64
72
  * company's individuals targeting it.
65
73
  *
74
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
75
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
76
+ * rows have `id: null` and `status: "Not Targeted"`.
77
+ *
66
78
  * Access control: the URL's `company_id` must be in the caller's read scope
67
79
  * for Company (a company manager's or vendor's own company, or a company
68
80
  * whose app is activated for the API user). Callers outside that scope
@@ -85,6 +97,10 @@ export declare function useOrganizationsListCompanyTargetFacilitiesInfinite(requ
85
97
  * and parent system), the link status, and per-facility counts of the
86
98
  * company's individuals targeting it.
87
99
  *
100
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
101
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
102
+ * rows have `id: null` and `status: "Not Targeted"`.
103
+ *
88
104
  * Access control: the URL's `company_id` must be in the caller's read scope
89
105
  * for Company (a company manager's or vendor's own company, or a company
90
106
  * whose app is activated for the API user). Callers outside that scope
@@ -105,7 +121,11 @@ export declare function setOrganizationsListCompanyTargetFacilitiesData(client:
105
121
  status?: operations.QueryParamStatus | undefined;
106
122
  hasIndividual?: operations.HasIndividual | undefined;
107
123
  hasActiveIndividual?: operations.HasActiveIndividual | undefined;
124
+ includePotentialTargets?: operations.IncludePotentialTargets | undefined;
108
125
  facilityNameLike?: string | undefined;
126
+ cityLike?: string | undefined;
127
+ addressLike?: string | undefined;
128
+ systemNameLike?: string | undefined;
109
129
  sort?: operations.QueryParamSort | undefined;
110
130
  desc?: components.Desc | undefined;
111
131
  page?: number | undefined;
@@ -119,7 +139,11 @@ export declare function invalidateOrganizationsListCompanyTargetFacilities(clien
119
139
  status?: operations.QueryParamStatus | undefined;
120
140
  hasIndividual?: operations.HasIndividual | undefined;
121
141
  hasActiveIndividual?: operations.HasActiveIndividual | undefined;
142
+ includePotentialTargets?: operations.IncludePotentialTargets | undefined;
122
143
  facilityNameLike?: string | undefined;
144
+ cityLike?: string | undefined;
145
+ addressLike?: string | undefined;
146
+ systemNameLike?: string | undefined;
123
147
  sort?: operations.QueryParamSort | undefined;
124
148
  desc?: components.Desc | undefined;
125
149
  page?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"organizationsListCompanyTargetFacilities.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsListCompanyTargetFacilities.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,0DAA0D,EAC1D,kDAAkD,EAClD,yDAAyD,EACzD,kDAAkD,EAClD,iDAAiD,EACjD,gDAAgD,EAChD,wDAAwD,EACxD,gDAAgD,EAChD,wDAAwD,E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,EAAE,UAAU,CAAC,cAAc,GAAG,SAAS,CAAC;QAC7C,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;KACnC;CACF,CACF,EACD,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAgB,qDAAqD,CACnE,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CASf"}
1
+ {"version":3,"file":"organizationsListCompanyTargetFacilities.d.ts","sourceRoot":"","sources":["../../../src/react-query/organizationsListCompanyTargetFacilities.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,e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nB,YAAY,EAAE,eAAe,CAC3B;IACE,SAAS,EAAE,MAAM;IACjB,UAAU,EAAE;QACV,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;QAC9C,MAAM,CAAC,EAAE,UAAU,CAAC,gBAAgB,GAAG,SAAS,CAAC;QACjD,aAAa,CAAC,EAAE,UAAU,CAAC,aAAa,GAAG,SAAS,CAAC;QACrD,mBAAmB,CAAC,EAAE,UAAU,CAAC,mBAAmB,GAAG,SAAS,CAAC;QACjE,uBAAuB,CAAC,EACpB,UAAU,CAAC,uBAAuB,GAClC,SAAS,CAAC;QACd,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACtC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACjC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,IAAI,CAAC,EAAE,UAAU,CAAC,cAAc,GAAG,SAAS,CAAC;QAC7C,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;KACnC;CACF,CACF,EACD,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAgB,qDAAqD,CACnE,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CASf"}
@@ -14,6 +14,10 @@ export { buildOrganizationsListCompanyTargetFacilitiesInfiniteQuery, buildOrgani
14
14
  * and parent system), the link status, and per-facility counts of the
15
15
  * company's individuals targeting it.
16
16
  *
17
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
18
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
19
+ * rows have `id: null` and `status: "Not Targeted"`.
20
+ *
17
21
  * Access control: the URL's `company_id` must be in the caller's read scope
18
22
  * for Company (a company manager's or vendor's own company, or a company
19
23
  * whose app is activated for the API user). Callers outside that scope
@@ -42,6 +46,10 @@ export function useOrganizationsListCompanyTargetFacilities(request, options) {
42
46
  * and parent system), the link status, and per-facility counts of the
43
47
  * company's individuals targeting it.
44
48
  *
49
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
50
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
51
+ * rows have `id: null` and `status: "Not Targeted"`.
52
+ *
45
53
  * Access control: the URL's `company_id` must be in the caller's read scope
46
54
  * for Company (a company manager's or vendor's own company, or a company
47
55
  * whose app is activated for the API user). Callers outside that scope
@@ -70,6 +78,10 @@ export function useOrganizationsListCompanyTargetFacilitiesSuspense(request, opt
70
78
  * and parent system), the link status, and per-facility counts of the
71
79
  * company's individuals targeting it.
72
80
  *
81
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
82
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
83
+ * rows have `id: null` and `status: "Not Targeted"`.
84
+ *
73
85
  * Access control: the URL's `company_id` must be in the caller's read scope
74
86
  * for Company (a company manager's or vendor's own company, or a company
75
87
  * whose app is activated for the API user). Callers outside that scope
@@ -100,6 +112,10 @@ export function useOrganizationsListCompanyTargetFacilitiesInfinite(request, opt
100
112
  * and parent system), the link status, and per-facility counts of the
101
113
  * company's individuals targeting it.
102
114
  *
115
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
116
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
117
+ * rows have `id: null` and `status: "Not Targeted"`.
118
+ *
103
119
  * Access control: the URL's `company_id` must be in the caller's read scope
104
120
  * for Company (a company manager's or vendor's own company, or a company
105
121
  * whose app is activated for the API user). Callers outside that scope
@@ -1 +1 @@
1
- {"version":3,"file":"organizationsListCompanyTargetFacilities.js","sourceRoot":"","sources":["../../../src/react-query/organizationsListCompanyTargetFacilities.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,0DAA0D,EAC1D,kDAAkD,EAIlD,gDAAgD,EAChD,wDAAwD,EACxD,gDAAgD,EAChD,wDAAwD,GACzD,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,0DAA0D,EAC1D,kDAAkD,EAIlD,gDAAgD,EAChD,wDAAwD,EACxD,gDAAgD,EAChD,wDAAwD,GACzD,CAAC;AAaF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,2CAA2C,CACzD,OAAsD,EACtD,OAGC;IAKD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,QAAQ,CAAC;QACd,GAAG,kDAAkD,CACnD,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,mDAAmD,CACjE,OAAsD,EACtD,OAGC;IAKD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,gBAAgB,CAAC;QACtB,GAAG,kDAAkD,CACnD,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,mDAAmD,CACjE,OAAsD,EACtD,OAGC;IAQD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,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AC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"organizationsListCompanyTargetFacilities.js","sourceRoot":"","sources":["../../../src/react-query/organizationsListCompanyTargetFacilities.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,0DAA0D,EAC1D,kDAAkD,EAIlD,gDAAgD,EAChD,wDAAwD,EACxD,gDAAgD,EAChD,wDAAwD,GACzD,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,0DAA0D,EAC1D,kDAAkD,EAIlD,gDAAgD,EAChD,wDAAwD,EACxD,gDAAgD,EAChD,wDAAwD,GACzD,CAAC;AAaF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,2CAA2C,CACzD,OAAsD,EACtD,OAGC;IAKD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,QAAQ,CAAC;QACd,GAAG,kDAAkD,CACnD,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,mDAAmD,CACjE,OAAsD,EACtD,OAGC;IAKD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,gBAAgB,CAAC;QACtB,GAAG,kDAAkD,CACnD,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,mDAAmD,CACjE,OAAsD,EACtD,OAGC;IAQD,MAAM,MAAM,GAAG,uBAAuB,EAAE,CAAC;IACzC,OAAO,gBAAgB,CASrB;QACA,GAAG,0D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}
@@ -50,6 +50,10 @@ export declare class Organizations extends ClientSDK {
50
50
  * and parent system), the link status, and per-facility counts of the
51
51
  * company's individuals targeting it.
52
52
  *
53
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
54
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
55
+ * rows have `id: null` and `status: "Not Targeted"`.
56
+ *
53
57
  * Access control: the URL's `company_id` must be in the caller's read scope
54
58
  * for Company (a company manager's or vendor's own company, or a company
55
59
  * whose app is activated for the API user). Callers outside that scope
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAWA,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/B;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,+BAA+B,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAC3E;I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,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/B;;;;;OAKG;IACG,uBAAuB,CAC3B,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,+BAA+B,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAC3E;IAQD;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,2BAA2B,CAC/B,OAAO,EAAE,UAAU,CAAC,kCAAkC,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CACV,UAAU,CAAC,mCAAmC,EAC9C;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CACjB,CACF;IAQD;;;;;;;;;;;;;;;;;;;OAmBG;IACG,2BAA2B,CAC/B,OAAO,EAAE,UAAU,CAAC,kCAAkC,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,wDAAwD,CACpE;IAQD;;;;;;;;;;;;;OAaG;IACG,2BAA2B,CAC/B,OAAO,EAAE,UAAU,CAAC,kCAAkC,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,OAAO,CAAC;IAQnB;;;;;;;;;;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"}
@@ -61,6 +61,10 @@ export class Organizations extends ClientSDK {
61
61
  * and parent system), the link status, and per-facility counts of the
62
62
  * company's individuals targeting it.
63
63
  *
64
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
65
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
66
+ * rows have `id: null` and `status: "Not Targeted"`.
67
+ *
64
68
  * Access control: the URL's `company_id` must be in the caller's read scope
65
69
  * for Company (a company manager's or vendor's own company, or a company
66
70
  * whose app is activated for the API user). Callers outside that scope
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EAAE,2CAA2C,EAAE,MAAM,yDAAyD,CAAC;AACtH,OAAO,EAAE,oCAAoC,EAAE,MAAM,kDAAkD,CAAC;AACxG,OAAO,EAAE,mCAAmC,EAAE,MAAM,iDAAiD,CAAC;AACtG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,mCAAmC,CAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAkD,EAClD,OAAwB;QAIxB,OAAO,oBAAoB,CAAC,oCAAoC,CAC9D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAAsD,EACtD,OAAwB;QAOxB,OAAO,oBAAoB,CAAC,wCAAwC,CAClE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAAsD,EACtD,OAAwB;QAIxB,OAAO,WAAW,CAAC,wCAAwC,CACzD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAAsD,EACtD,OAAwB;QAExB,OAAO,WAAW,CAAC,wCAAwC,CACzD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAOxB,OAAO,oBAAoB,CAAC,2CAA2C,CACrE,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,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wCAAwC,EAAE,MAAM,sDAAsD,CAAC;AAChH,OAAO,EAAE,2CAA2C,EAAE,M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AaG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAAsD,EACtD,OAAwB;QAExB,OAAO,WAAW,CAAC,wCAAwC,CACzD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAOxB,OAAO,oBAAoB,CAAC,2CAA2C,CACrE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@greensecurity/javascript-sdk",
5
- "version": "0.44.0-beta.8",
5
+ "version": "0.44.0-beta.9",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greensecurity/javascript-sdk",
3
- "version": "0.44.0-beta.8",
3
+ "version": "0.44.0-beta.9",
4
4
  "author": "Green Security LLC",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -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: true,
23
+ desc: 0,
24
24
  sort: "",
25
25
  });
26
26
  expect(testWebhookListForVendorUserResult).toBeDefined();
@@ -39,7 +39,32 @@ test("Zones List Or Search Security Zones", async () => {
39
39
  facility: {},
40
40
  },
41
41
  {
42
- facility: {},
42
+ facility: {
43
+ contacts: {
44
+ contact: {
45
+ status: "Inactive",
46
+ department: 123,
47
+ },
48
+ adminContact: {
49
+ status: "Deleted",
50
+ department: 123,
51
+ },
52
+ techContact: {
53
+ status: "Deleted",
54
+ department: 123,
55
+ },
56
+ greenSecurityCsm: null,
57
+ accountManager: {
58
+ status: "Deleted",
59
+ department: 123,
60
+ },
61
+ },
62
+ vendorGuestPolicy: {
63
+ enabled: false,
64
+ vendorGuestLimitAndOr: "and",
65
+ vendorGuestRequireEmail: false,
66
+ },
67
+ },
43
68
  },
44
69
  ],
45
70
  });
@@ -57,8 +82,9 @@ test("Zones Security Zone Checkin", async () => {
57
82
  });
58
83
 
59
84
  const result = await greenSecurity.zones.securityZoneCheckin({
60
- qrCode: "<value>",
61
- zoneId: 997849,
85
+ longitude: 8873.74,
86
+ latitude: 3624.26,
87
+ zoneId: 95913,
62
88
  });
63
89
  expect(result).toBeDefined();
64
90
  expect(result).toEqual({});
@@ -42,6 +42,10 @@ import {
42
42
  * and parent system), the link status, and per-facility counts of the
43
43
  * company's individuals targeting it.
44
44
  *
45
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
46
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
47
+ * rows have `id: null` and `status: "Not Targeted"`.
48
+ *
45
49
  * Access control: the URL's `company_id` must be in the caller's read scope
46
50
  * for Company (a company manager's or vendor's own company, or a company
47
51
  * whose app is activated for the API user). Callers outside that scope
@@ -135,14 +139,18 @@ async function $do(
135
139
  "expand": payload.expand,
136
140
  }, { explode: false }),
137
141
  encodeFormQuery({
142
+ "address_like": payload.address_like,
143
+ "city_like": payload.city_like,
138
144
  "desc": payload.desc,
139
145
  "facility_name_like": payload.facility_name_like,
140
146
  "has_active_individual": payload.has_active_individual,
141
147
  "has_individual": payload.has_individual,
148
+ "include_potential_targets": payload.include_potential_targets,
142
149
  "items_per_page": payload.items_per_page,
143
150
  "page": payload.page,
144
151
  "sort": payload.sort,
145
152
  "status": payload.status,
153
+ "system_name_like": payload.system_name_like,
146
154
  }),
147
155
  );
148
156
 
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.43.1",
83
- sdkVersion: "0.44.0-beta.8",
83
+ sdkVersion: "0.44.0-beta.9",
84
84
  genVersion: "2.893.0",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.44.0-beta.8 2.893.0 0.43.1 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.44.0-beta.9 2.893.0 0.43.1 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -35,9 +35,9 @@ export type IndividualCounts = {
35
35
  */
36
36
  export type CompanyTargetFacility = {
37
37
  /**
38
- * CompanyTargetFacility row ID.
38
+ * CompanyTargetFacility row ID. Null when returned via `include_potential_targets=true` for a facility not yet targeted by the company.
39
39
  */
40
- id: number;
40
+ id: number | null;
41
41
  /**
42
42
  * The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
43
43
  */
@@ -97,7 +97,7 @@ export const CompanyTargetFacility$inboundSchema: z.ZodType<
97
97
  z.ZodTypeDef,
98
98
  unknown
99
99
  > = z.object({
100
- id: types.number(),
100
+ id: types.nullable(types.number()),
101
101
  facility: types.nullable(
102
102
  smartUnion([Facility$inboundSchema, types.number()]),
103
103
  ),
@@ -48,16 +48,32 @@ export const HasActiveIndividual = {
48
48
  export type HasActiveIndividual = ClosedEnum<typeof HasActiveIndividual>;
49
49
 
50
50
  /**
51
- * Sort field (defaults to `facility_name`).
51
+ * When `true`, returns ALL non-deleted facilities via LEFT JOIN. Targeted rows carry their CTF id and status; non-targeted rows have `id: null` and `status: "Not Targeted"`.
52
+ */
53
+ export const IncludePotentialTargets = {
54
+ True: "true",
55
+ False: "false",
56
+ } as const;
57
+ /**
58
+ * When `true`, returns ALL non-deleted facilities via LEFT JOIN. Targeted rows carry their CTF id and status; non-targeted rows have `id: null` and `status: "Not Targeted"`.
59
+ */
60
+ export type IncludePotentialTargets = ClosedEnum<
61
+ typeof IncludePotentialTargets
62
+ >;
63
+
64
+ /**
65
+ * Sort field (defaults to `facility_name`). When `include_potential_targets=true`, only `facility_name`, `system_name`, `city`, and `status` are applicable.
52
66
  */
53
67
  export const QueryParamSort = {
54
68
  Id: "id",
55
69
  FacilityName: "facility_name",
70
+ SystemName: "system_name",
56
71
  Status: "status",
57
72
  DateCreated: "date_created",
73
+ City: "city",
58
74
  } as const;
59
75
  /**
60
- * Sort field (defaults to `facility_name`).
76
+ * Sort field (defaults to `facility_name`). When `include_potential_targets=true`, only `facility_name`, `system_name`, `city`, and `status` are applicable.
61
77
  */
62
78
  export type QueryParamSort = ClosedEnum<typeof QueryParamSort>;
63
79
 
@@ -82,12 +98,28 @@ export type ListCompanyTargetFacilitiesRequest = {
82
98
  * Like `has_individual`, but only counts individuals whose credentialing subscription is active.
83
99
  */
84
100
  hasActiveIndividual?: HasActiveIndividual | undefined;
101
+ /**
102
+ * When `true`, returns ALL non-deleted facilities via LEFT JOIN. Targeted rows carry their CTF id and status; non-targeted rows have `id: null` and `status: "Not Targeted"`.
103
+ */
104
+ includePotentialTargets?: IncludePotentialTargets | undefined;
85
105
  /**
86
106
  * Case-insensitive partial match on facility name.
87
107
  */
88
108
  facilityNameLike?: string | undefined;
89
109
  /**
90
- * Sort field (defaults to `facility_name`).
110
+ * Case-insensitive partial match on facility city.
111
+ */
112
+ cityLike?: string | undefined;
113
+ /**
114
+ * Case-insensitive partial match on facility street address.
115
+ */
116
+ addressLike?: string | undefined;
117
+ /**
118
+ * Case-insensitive partial match on the facility's parent system name.
119
+ */
120
+ systemNameLike?: string | undefined;
121
+ /**
122
+ * Sort field (defaults to `facility_name`). When `include_potential_targets=true`, only `facility_name`, `system_name`, `city`, and `status` are applicable.
91
123
  */
92
124
  sort?: QueryParamSort | undefined;
93
125
  /**
@@ -134,6 +166,11 @@ export const HasActiveIndividual$outboundSchema: z.ZodNativeEnum<
134
166
  typeof HasActiveIndividual
135
167
  > = z.nativeEnum(HasActiveIndividual);
136
168
 
169
+ /** @internal */
170
+ export const IncludePotentialTargets$outboundSchema: z.ZodNativeEnum<
171
+ typeof IncludePotentialTargets
172
+ > = z.nativeEnum(IncludePotentialTargets);
173
+
137
174
  /** @internal */
138
175
  export const QueryParamSort$outboundSchema: z.ZodNativeEnum<
139
176
  typeof QueryParamSort
@@ -146,7 +183,11 @@ export type ListCompanyTargetFacilitiesRequest$Outbound = {
146
183
  status?: string | undefined;
147
184
  has_individual?: string | undefined;
148
185
  has_active_individual?: string | undefined;
186
+ include_potential_targets?: string | undefined;
149
187
  facility_name_like?: string | undefined;
188
+ city_like?: string | undefined;
189
+ address_like?: string | undefined;
190
+ system_name_like?: string | undefined;
150
191
  sort?: string | undefined;
151
192
  desc?: components.Desc$Outbound | undefined;
152
193
  page?: number | undefined;
@@ -164,7 +205,11 @@ export const ListCompanyTargetFacilitiesRequest$outboundSchema: z.ZodType<
164
205
  status: QueryParamStatus$outboundSchema.optional(),
165
206
  hasIndividual: HasIndividual$outboundSchema.optional(),
166
207
  hasActiveIndividual: HasActiveIndividual$outboundSchema.optional(),
208
+ includePotentialTargets: IncludePotentialTargets$outboundSchema.optional(),
167
209
  facilityNameLike: z.string().optional(),
210
+ cityLike: z.string().optional(),
211
+ addressLike: z.string().optional(),
212
+ systemNameLike: z.string().optional(),
168
213
  sort: QueryParamSort$outboundSchema.optional(),
169
214
  desc: components.Desc$outboundSchema.optional(),
170
215
  page: z.number().int().optional(),
@@ -174,7 +219,11 @@ export const ListCompanyTargetFacilitiesRequest$outboundSchema: z.ZodType<
174
219
  companyId: "company_id",
175
220
  hasIndividual: "has_individual",
176
221
  hasActiveIndividual: "has_active_individual",
222
+ includePotentialTargets: "include_potential_targets",
177
223
  facilityNameLike: "facility_name_like",
224
+ cityLike: "city_like",
225
+ addressLike: "address_like",
226
+ systemNameLike: "system_name_like",
178
227
  itemsPerPage: "items_per_page",
179
228
  });
180
229
  });
@@ -83,7 +83,11 @@ export function buildOrganizationsListCompanyTargetFacilitiesQuery(
83
83
  status: request.status,
84
84
  hasIndividual: request.hasIndividual,
85
85
  hasActiveIndividual: request.hasActiveIndividual,
86
+ includePotentialTargets: request.includePotentialTargets,
86
87
  facilityNameLike: request.facilityNameLike,
88
+ cityLike: request.cityLike,
89
+ addressLike: request.addressLike,
90
+ systemNameLike: request.systemNameLike,
87
91
  sort: request.sort,
88
92
  desc: request.desc,
89
93
  page: request.page,
@@ -134,7 +138,11 @@ export function buildOrganizationsListCompanyTargetFacilitiesInfiniteQuery(
134
138
  status: request.status,
135
139
  hasIndividual: request.hasIndividual,
136
140
  hasActiveIndividual: request.hasActiveIndividual,
141
+ includePotentialTargets: request.includePotentialTargets,
137
142
  facilityNameLike: request.facilityNameLike,
143
+ cityLike: request.cityLike,
144
+ addressLike: request.addressLike,
145
+ systemNameLike: request.systemNameLike,
138
146
  sort: request.sort,
139
147
  desc: request.desc,
140
148
  page: request.page,
@@ -182,7 +190,11 @@ export function queryKeyOrganizationsListCompanyTargetFacilities(
182
190
  status?: operations.QueryParamStatus | undefined;
183
191
  hasIndividual?: operations.HasIndividual | undefined;
184
192
  hasActiveIndividual?: operations.HasActiveIndividual | undefined;
193
+ includePotentialTargets?: operations.IncludePotentialTargets | undefined;
185
194
  facilityNameLike?: string | undefined;
195
+ cityLike?: string | undefined;
196
+ addressLike?: string | undefined;
197
+ systemNameLike?: string | undefined;
186
198
  sort?: operations.QueryParamSort | undefined;
187
199
  desc?: components.Desc | undefined;
188
200
  page?: number | undefined;
@@ -205,7 +217,11 @@ export function queryKeyOrganizationsListCompanyTargetFacilitiesInfinite(
205
217
  status?: operations.QueryParamStatus | undefined;
206
218
  hasIndividual?: operations.HasIndividual | undefined;
207
219
  hasActiveIndividual?: operations.HasActiveIndividual | undefined;
220
+ includePotentialTargets?: operations.IncludePotentialTargets | undefined;
208
221
  facilityNameLike?: string | undefined;
222
+ cityLike?: string | undefined;
223
+ addressLike?: string | undefined;
224
+ systemNameLike?: string | undefined;
209
225
  sort?: operations.QueryParamSort | undefined;
210
226
  desc?: components.Desc | undefined;
211
227
  page?: number | undefined;
@@ -80,6 +80,10 @@ export type OrganizationsListCompanyTargetFacilitiesQueryError =
80
80
  * and parent system), the link status, and per-facility counts of the
81
81
  * company's individuals targeting it.
82
82
  *
83
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
84
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
85
+ * rows have `id: null` and `status: "Not Targeted"`.
86
+ *
83
87
  * Access control: the URL's `company_id` must be in the caller's read scope
84
88
  * for Company (a company manager's or vendor's own company, or a company
85
89
  * whose app is activated for the API user). Callers outside that scope
@@ -122,6 +126,10 @@ export function useOrganizationsListCompanyTargetFacilities(
122
126
  * and parent system), the link status, and per-facility counts of the
123
127
  * company's individuals targeting it.
124
128
  *
129
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
130
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
131
+ * rows have `id: null` and `status: "Not Targeted"`.
132
+ *
125
133
  * Access control: the URL's `company_id` must be in the caller's read scope
126
134
  * for Company (a company manager's or vendor's own company, or a company
127
135
  * whose app is activated for the API user). Callers outside that scope
@@ -164,6 +172,10 @@ export function useOrganizationsListCompanyTargetFacilitiesSuspense(
164
172
  * and parent system), the link status, and per-facility counts of the
165
173
  * company's individuals targeting it.
166
174
  *
175
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
176
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
177
+ * rows have `id: null` and `status: "Not Targeted"`.
178
+ *
167
179
  * Access control: the URL's `company_id` must be in the caller's read scope
168
180
  * for Company (a company manager's or vendor's own company, or a company
169
181
  * whose app is activated for the API user). Callers outside that scope
@@ -220,6 +232,10 @@ export function useOrganizationsListCompanyTargetFacilitiesInfinite(
220
232
  * and parent system), the link status, and per-facility counts of the
221
233
  * company's individuals targeting it.
222
234
  *
235
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
236
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
237
+ * rows have `id: null` and `status: "Not Targeted"`.
238
+ *
223
239
  * Access control: the URL's `company_id` must be in the caller's read scope
224
240
  * for Company (a company manager's or vendor's own company, or a company
225
241
  * whose app is activated for the API user). Callers outside that scope
@@ -276,7 +292,11 @@ export function setOrganizationsListCompanyTargetFacilitiesData(
276
292
  status?: operations.QueryParamStatus | undefined;
277
293
  hasIndividual?: operations.HasIndividual | undefined;
278
294
  hasActiveIndividual?: operations.HasActiveIndividual | undefined;
295
+ includePotentialTargets?: operations.IncludePotentialTargets | undefined;
279
296
  facilityNameLike?: string | undefined;
297
+ cityLike?: string | undefined;
298
+ addressLike?: string | undefined;
299
+ systemNameLike?: string | undefined;
280
300
  sort?: operations.QueryParamSort | undefined;
281
301
  desc?: components.Desc | undefined;
282
302
  page?: number | undefined;
@@ -303,7 +323,13 @@ export function invalidateOrganizationsListCompanyTargetFacilities(
303
323
  status?: operations.QueryParamStatus | undefined;
304
324
  hasIndividual?: operations.HasIndividual | undefined;
305
325
  hasActiveIndividual?: operations.HasActiveIndividual | undefined;
326
+ includePotentialTargets?:
327
+ | operations.IncludePotentialTargets
328
+ | undefined;
306
329
  facilityNameLike?: string | undefined;
330
+ cityLike?: string | undefined;
331
+ addressLike?: string | undefined;
332
+ systemNameLike?: string | undefined;
307
333
  sort?: operations.QueryParamSort | undefined;
308
334
  desc?: components.Desc | undefined;
309
335
  page?: number | undefined;
@@ -93,6 +93,10 @@ export class Organizations extends ClientSDK {
93
93
  * and parent system), the link status, and per-facility counts of the
94
94
  * company's individuals targeting it.
95
95
  *
96
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
97
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
98
+ * rows have `id: null` and `status: "Not Targeted"`.
99
+ *
96
100
  * Access control: the URL's `company_id` must be in the caller's read scope
97
101
  * for Company (a company manager's or vendor's own company, or a company
98
102
  * whose app is activated for the API user). Callers outside that scope