@greensecurity/javascript-sdk 0.44.0-beta.15 → 0.44.0-beta.16

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 (200) hide show
  1. package/README.md +9 -0
  2. package/dist/commonjs/__tests__/organizations.test.js +72 -6
  3. package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  5. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/zones.test.js +4 -31
  7. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  8. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +34 -0
  9. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js +145 -0
  11. package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -0
  12. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts +28 -0
  13. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js +138 -0
  15. package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  16. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts +42 -0
  17. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js +194 -0
  19. package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js.map +1 -0
  20. package/dist/commonjs/lib/config.d.ts +2 -2
  21. package/dist/commonjs/lib/config.js +2 -2
  22. package/dist/commonjs/models/components/companytargetfacility.d.ts +54 -0
  23. package/dist/commonjs/models/components/companytargetfacility.d.ts.map +1 -0
  24. package/dist/commonjs/models/components/companytargetfacility.js +80 -0
  25. package/dist/commonjs/models/components/companytargetfacility.js.map +1 -0
  26. package/dist/commonjs/models/components/index.d.ts +1 -0
  27. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/index.js +1 -0
  29. package/dist/commonjs/models/components/index.js.map +1 -1
  30. package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts +50 -0
  31. package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts.map +1 -0
  32. package/dist/commonjs/models/operations/createcompanytargetfacility.js +84 -0
  33. package/dist/commonjs/models/operations/createcompanytargetfacility.js.map +1 -0
  34. package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts +20 -0
  35. package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
  36. package/dist/commonjs/models/operations/deletecompanytargetfacility.js +55 -0
  37. package/dist/commonjs/models/operations/deletecompanytargetfacility.js.map +1 -0
  38. package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts +16 -16
  39. package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/exportcompanytargetfacilities.js +14 -15
  41. package/dist/commonjs/models/operations/exportcompanytargetfacilities.js.map +1 -1
  42. package/dist/commonjs/models/operations/index.d.ts +3 -0
  43. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/index.js +3 -0
  45. package/dist/commonjs/models/operations/index.js.map +1 -1
  46. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +173 -0
  47. package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
  48. package/dist/commonjs/models/operations/listcompanytargetfacilities.js +150 -0
  49. package/dist/commonjs/models/operations/listcompanytargetfacilities.js.map +1 -0
  50. package/dist/commonjs/models/operations/listfacilityvendors.d.ts +4 -4
  51. package/dist/commonjs/models/operations/listfacilityvendors.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/listfacilityvendors.js +4 -4
  53. package/dist/commonjs/models/operations/listfacilityvendors.js.map +1 -1
  54. package/dist/commonjs/react-query/index.d.ts +3 -0
  55. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  56. package/dist/commonjs/react-query/index.js +3 -0
  57. package/dist/commonjs/react-query/index.js.map +1 -1
  58. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
  59. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  60. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +65 -0
  61. package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
  62. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
  63. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  64. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js +59 -0
  65. package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  66. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +4 -4
  67. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -1
  68. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -1
  69. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts +8 -8
  70. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -1
  71. package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -1
  72. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts +54 -0
  73. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
  74. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +111 -0
  75. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
  76. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +154 -0
  77. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  78. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +180 -0
  79. package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
  80. package/dist/commonjs/react-query/organizationsListFacilityVendors.core.d.ts +2 -2
  81. package/dist/commonjs/react-query/organizationsListFacilityVendors.core.d.ts.map +1 -1
  82. package/dist/commonjs/react-query/organizationsListFacilityVendors.d.ts +2 -2
  83. package/dist/commonjs/react-query/organizationsListFacilityVendors.d.ts.map +1 -1
  84. package/dist/commonjs/sdk/organizations.d.ts +64 -0
  85. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  86. package/dist/commonjs/sdk/organizations.js +71 -0
  87. package/dist/commonjs/sdk/organizations.js.map +1 -1
  88. package/dist/esm/__tests__/organizations.test.js +73 -7
  89. package/dist/esm/__tests__/organizations.test.js.map +1 -1
  90. package/dist/esm/__tests__/webhooks.test.js +1 -1
  91. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  92. package/dist/esm/__tests__/zones.test.js +4 -31
  93. package/dist/esm/__tests__/zones.test.js.map +1 -1
  94. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +34 -0
  95. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  96. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js +109 -0
  97. package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -0
  98. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts +28 -0
  99. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  100. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js +102 -0
  101. package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  102. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts +42 -0
  103. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  104. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +158 -0
  105. package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js.map +1 -0
  106. package/dist/esm/lib/config.d.ts +2 -2
  107. package/dist/esm/lib/config.js +2 -2
  108. package/dist/esm/models/components/companytargetfacility.d.ts +54 -0
  109. package/dist/esm/models/components/companytargetfacility.d.ts.map +1 -0
  110. package/dist/esm/models/components/companytargetfacility.js +41 -0
  111. package/dist/esm/models/components/companytargetfacility.js.map +1 -0
  112. package/dist/esm/models/components/index.d.ts +1 -0
  113. package/dist/esm/models/components/index.d.ts.map +1 -1
  114. package/dist/esm/models/components/index.js +1 -0
  115. package/dist/esm/models/components/index.js.map +1 -1
  116. package/dist/esm/models/operations/createcompanytargetfacility.d.ts +50 -0
  117. package/dist/esm/models/operations/createcompanytargetfacility.d.ts.map +1 -0
  118. package/dist/esm/models/operations/createcompanytargetfacility.js +45 -0
  119. package/dist/esm/models/operations/createcompanytargetfacility.js.map +1 -0
  120. package/dist/esm/models/operations/deletecompanytargetfacility.d.ts +20 -0
  121. package/dist/esm/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
  122. package/dist/esm/models/operations/deletecompanytargetfacility.js +18 -0
  123. package/dist/esm/models/operations/deletecompanytargetfacility.js.map +1 -0
  124. package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts +16 -16
  125. package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts.map +1 -1
  126. package/dist/esm/models/operations/exportcompanytargetfacilities.js +13 -14
  127. package/dist/esm/models/operations/exportcompanytargetfacilities.js.map +1 -1
  128. package/dist/esm/models/operations/index.d.ts +3 -0
  129. package/dist/esm/models/operations/index.d.ts.map +1 -1
  130. package/dist/esm/models/operations/index.js +3 -0
  131. package/dist/esm/models/operations/index.js.map +1 -1
  132. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +173 -0
  133. package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
  134. package/dist/esm/models/operations/listcompanytargetfacilities.js +111 -0
  135. package/dist/esm/models/operations/listcompanytargetfacilities.js.map +1 -0
  136. package/dist/esm/models/operations/listfacilityvendors.d.ts +4 -4
  137. package/dist/esm/models/operations/listfacilityvendors.d.ts.map +1 -1
  138. package/dist/esm/models/operations/listfacilityvendors.js +3 -3
  139. package/dist/esm/models/operations/listfacilityvendors.js.map +1 -1
  140. package/dist/esm/react-query/index.d.ts +3 -0
  141. package/dist/esm/react-query/index.d.ts.map +1 -1
  142. package/dist/esm/react-query/index.js +3 -0
  143. package/dist/esm/react-query/index.js.map +1 -1
  144. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
  145. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
  146. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +60 -0
  147. package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
  148. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
  149. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
  150. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js +54 -0
  151. package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
  152. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +4 -4
  153. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -1
  154. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -1
  155. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts +8 -8
  156. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -1
  157. package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -1
  158. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts +54 -0
  159. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
  160. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +103 -0
  161. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
  162. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +154 -0
  163. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
  164. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +165 -0
  165. package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
  166. package/dist/esm/react-query/organizationsListFacilityVendors.core.d.ts +2 -2
  167. package/dist/esm/react-query/organizationsListFacilityVendors.core.d.ts.map +1 -1
  168. package/dist/esm/react-query/organizationsListFacilityVendors.d.ts +2 -2
  169. package/dist/esm/react-query/organizationsListFacilityVendors.d.ts.map +1 -1
  170. package/dist/esm/sdk/organizations.d.ts +64 -0
  171. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  172. package/dist/esm/sdk/organizations.js +71 -0
  173. package/dist/esm/sdk/organizations.js.map +1 -1
  174. package/jsr.json +1 -1
  175. package/package.json +1 -1
  176. package/src/__tests__/organizations.test.ts +79 -13
  177. package/src/__tests__/webhooks.test.ts +1 -1
  178. package/src/__tests__/zones.test.ts +4 -31
  179. package/src/funcs/organizationsCreateCompanyTargetFacility.ts +204 -0
  180. package/src/funcs/organizationsDeleteCompanyTargetFacility.ts +193 -0
  181. package/src/funcs/organizationsListCompanyTargetFacilities.ts +291 -0
  182. package/src/lib/config.ts +2 -2
  183. package/src/models/components/companytargetfacility.ts +124 -0
  184. package/src/models/components/index.ts +1 -0
  185. package/src/models/operations/createcompanytargetfacility.ts +132 -0
  186. package/src/models/operations/deletecompanytargetfacility.ts +47 -0
  187. package/src/models/operations/exportcompanytargetfacilities.ts +34 -31
  188. package/src/models/operations/index.ts +3 -0
  189. package/src/models/operations/listcompanytargetfacilities.ts +293 -0
  190. package/src/models/operations/listfacilityvendors.ts +10 -7
  191. package/src/react-query/index.ts +3 -0
  192. package/src/react-query/organizationsCreateCompanyTargetFacility.ts +129 -0
  193. package/src/react-query/organizationsDeleteCompanyTargetFacility.ts +122 -0
  194. package/src/react-query/organizationsExportCompanyTargetFacilities.core.ts +4 -6
  195. package/src/react-query/organizationsExportCompanyTargetFacilities.ts +12 -10
  196. package/src/react-query/organizationsListCompanyTargetFacilities.core.ts +239 -0
  197. package/src/react-query/organizationsListCompanyTargetFacilities.ts +369 -0
  198. package/src/react-query/organizationsListFacilityVendors.core.ts +2 -2
  199. package/src/react-query/organizationsListFacilityVendors.ts +2 -2
  200. package/src/sdk/organizations.ts +102 -0
@@ -0,0 +1,102 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { encodeSimple } from "../lib/encodings.js";
5
+ import { matchStatusCode } from "../lib/http.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import * as errors from "../models/errors/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { APIPromise } from "../types/async.js";
14
+ import * as types$ from "../types/primitives.js";
15
+ /**
16
+ * Remove a company target facility
17
+ *
18
+ * @remarks
19
+ * Removes a CompanyTargetFacility link. Blocked when any of the company's
20
+ * individuals still target the same facility (to avoid orphaning their
21
+ * vendor-scoped target rows). Only the link row is removed — the Facility
22
+ * entity itself is never touched.
23
+ *
24
+ * Access control: the URL's `company_id` must be in the caller's update
25
+ * scope for Company (a company manager's or vendor's own company, or a
26
+ * company whose app is activated for the API user). Callers outside that
27
+ * scope receive `404 Company not found`.
28
+ *
29
+ * If set, this operation will use {@link Security.bearerJwt} from the global security.
30
+ */
31
+ export function organizationsDeleteCompanyTargetFacility(client, request, options) {
32
+ return new APIPromise($do(client, request, options));
33
+ }
34
+ async function $do(client, request, options) {
35
+ const parsed = safeParse(request, (value) => operations.DeleteCompanyTargetFacilityRequest$outboundSchema.parse(value), "Input validation failed");
36
+ if (!parsed.ok) {
37
+ return [parsed, { status: "invalid" }];
38
+ }
39
+ const payload = parsed.value;
40
+ const body = null;
41
+ const pathParams = {
42
+ company_id: encodeSimple("company_id", payload.company_id, {
43
+ explode: false,
44
+ charEncoding: "percent",
45
+ }),
46
+ id: encodeSimple("id", payload.id, {
47
+ explode: false,
48
+ charEncoding: "percent",
49
+ }),
50
+ };
51
+ const path = pathToFunc("/companies/{company_id}/target-facilities/{id}")(pathParams);
52
+ const headers = new Headers(compactMap({
53
+ Accept: "application/json",
54
+ }));
55
+ const securityInput = await extractSecurity(client._options.security);
56
+ const requestSecurity = resolveGlobalSecurity(securityInput, [1]);
57
+ const context = {
58
+ options: client._options,
59
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
60
+ operationID: "deleteCompanyTargetFacility",
61
+ oAuth2Scopes: null,
62
+ resolvedSecurity: requestSecurity,
63
+ securitySource: client._options.security,
64
+ retryConfig: options?.retries
65
+ || client._options.retryConfig
66
+ || { strategy: "none" },
67
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
68
+ };
69
+ const requestRes = client._createRequest(context, {
70
+ security: requestSecurity,
71
+ method: "DELETE",
72
+ baseURL: options?.serverURL,
73
+ path: path,
74
+ headers: headers,
75
+ body: body,
76
+ userAgent: client._options.userAgent,
77
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
78
+ }, options);
79
+ if (!requestRes.ok) {
80
+ return [requestRes, { status: "invalid" }];
81
+ }
82
+ const req = requestRes.value;
83
+ const doResult = await client._do(req, {
84
+ context,
85
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
86
+ retryConfig: context.retryConfig,
87
+ retryCodes: context.retryCodes,
88
+ });
89
+ if (!doResult.ok) {
90
+ return [doResult, { status: "request-error", request: req }];
91
+ }
92
+ const response = doResult.value;
93
+ const responseFields = {
94
+ HttpMeta: { Response: response, Request: req },
95
+ };
96
+ const [result] = await M.match(M.json(200, types$.boolean()), M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
97
+ if (!result.ok) {
98
+ return [result, { status: "complete", request: req, response }];
99
+ }
100
+ return [result, { status: "complete", request: req, response }];
101
+ }
102
+ //# sourceMappingURL=organizationsDeleteCompanyTargetFacility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizationsDeleteCompanyTargetFacility.js","sourceRoot":"","sources":["../../../src/funcs/organizationsDeleteCompanyTargetFacility.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,wCAAwC,CACtD,MAAyB,EACzB,OAAsD,EACtD,OAAwB;IAexB,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAAsD,EACtD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,SAAS,CACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,C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AAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,EAC7B,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,8BAA8B,CAAC,EAC3E,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CACrB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { GreenSecurityCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import * as errors from "../models/errors/index.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ import { PageIterator } from "../types/operations.js";
12
+ /**
13
+ * List company target facilities
14
+ *
15
+ * @remarks
16
+ * Lists the CompanyTargetFacility links for a company — the facilities the
17
+ * company is targeting. Each row carries the linked facility (with location
18
+ * and parent system), the link status, and per-facility counts of the
19
+ * company's individuals targeting it.
20
+ *
21
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
22
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
23
+ * rows have `id: null` and `status: "Not Targeted"`.
24
+ *
25
+ * Access control: the URL's `company_id` must be in the caller's read scope
26
+ * for Company (a company manager's or vendor's own company, or a company
27
+ * whose app is activated for the API user). Callers outside that scope
28
+ * receive `404 Company not found`.
29
+ *
30
+ * Filter with `has_individual` / `has_active_individual` to drive the
31
+ * facility roster views.
32
+ *
33
+ * Available `expand` scopes are:
34
+ *
35
+ * - company_target_facility.facility
36
+ *
37
+ * If set, this operation will use {@link Security.bearerJwt} from the global security.
38
+ */
39
+ export declare function organizationsListCompanyTargetFacilities(client: GreenSecurityCore, request: operations.ListCompanyTargetFacilitiesRequest, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListCompanyTargetFacilitiesResponse, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
40
+ page: number;
41
+ }>>;
42
+ //# sourceMappingURL=organizationsListCompanyTargetFacilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizationsListCompanyTargetFacilities.d.ts","sourceRoot":"","sources":["../../../src/funcs/organizationsListCompanyTargetFacilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAO/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,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;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAGL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,kCAAkC,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,YAAY,CACV,MAAM,CACJ,UAAU,CAAC,mCAAmC,EAC5C,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,EACD;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CACjB,CACF,CAMA"}
@@ -0,0 +1,158 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { dlv } from "../lib/dlv.js";
5
+ import { encodeFormQuery, encodeSimple, queryJoin } from "../lib/encodings.js";
6
+ import { matchStatusCode } from "../lib/http.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as errors from "../models/errors/index.js";
13
+ import * as operations from "../models/operations/index.js";
14
+ import { APIPromise } from "../types/async.js";
15
+ import { createPageIterator, haltIterator, } from "../types/operations.js";
16
+ /**
17
+ * List company target facilities
18
+ *
19
+ * @remarks
20
+ * Lists the CompanyTargetFacility links for a company — the facilities the
21
+ * company is targeting. Each row carries the linked facility (with location
22
+ * and parent system), the link status, and per-facility counts of the
23
+ * company's individuals targeting it.
24
+ *
25
+ * When `include_potential_targets=true`, returns ALL non-deleted facilities
26
+ * via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
27
+ * rows have `id: null` and `status: "Not Targeted"`.
28
+ *
29
+ * Access control: the URL's `company_id` must be in the caller's read scope
30
+ * for Company (a company manager's or vendor's own company, or a company
31
+ * whose app is activated for the API user). Callers outside that scope
32
+ * receive `404 Company not found`.
33
+ *
34
+ * Filter with `has_individual` / `has_active_individual` to drive the
35
+ * facility roster views.
36
+ *
37
+ * Available `expand` scopes are:
38
+ *
39
+ * - company_target_facility.facility
40
+ *
41
+ * If set, this operation will use {@link Security.bearerJwt} from the global security.
42
+ */
43
+ export function organizationsListCompanyTargetFacilities(client, request, options) {
44
+ return new APIPromise($do(client, request, options));
45
+ }
46
+ async function $do(client, request, options) {
47
+ const parsed = safeParse(request, (value) => operations.ListCompanyTargetFacilitiesRequest$outboundSchema.parse(value), "Input validation failed");
48
+ if (!parsed.ok) {
49
+ return [haltIterator(parsed), { status: "invalid" }];
50
+ }
51
+ const payload = parsed.value;
52
+ const body = null;
53
+ const pathParams = {
54
+ company_id: encodeSimple("company_id", payload.company_id, {
55
+ explode: false,
56
+ charEncoding: "percent",
57
+ }),
58
+ };
59
+ const path = pathToFunc("/companies/{company_id}/target-facilities")(pathParams);
60
+ const query = queryJoin(encodeFormQuery({
61
+ "expand": payload.expand,
62
+ }, { explode: false }), encodeFormQuery({
63
+ "address_like": payload.address_like,
64
+ "city_like": payload.city_like,
65
+ "desc": payload.desc,
66
+ "facility_name_like": payload.facility_name_like,
67
+ "has_active_individual": payload.has_active_individual,
68
+ "has_individual": payload.has_individual,
69
+ "include_potential_targets": payload.include_potential_targets,
70
+ "items_per_page": payload.items_per_page,
71
+ "page": payload.page,
72
+ "sort": payload.sort,
73
+ "status": payload.status,
74
+ "system_name_like": payload.system_name_like,
75
+ }));
76
+ const headers = new Headers(compactMap({
77
+ Accept: "application/json",
78
+ }));
79
+ const securityInput = await extractSecurity(client._options.security);
80
+ const requestSecurity = resolveGlobalSecurity(securityInput, [1]);
81
+ const context = {
82
+ options: client._options,
83
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
84
+ operationID: "listCompanyTargetFacilities",
85
+ oAuth2Scopes: null,
86
+ resolvedSecurity: requestSecurity,
87
+ securitySource: client._options.security,
88
+ retryConfig: options?.retries
89
+ || client._options.retryConfig
90
+ || { strategy: "none" },
91
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
92
+ };
93
+ const requestRes = client._createRequest(context, {
94
+ security: requestSecurity,
95
+ method: "GET",
96
+ baseURL: options?.serverURL,
97
+ path: path,
98
+ headers: headers,
99
+ query: query,
100
+ body: body,
101
+ userAgent: client._options.userAgent,
102
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
103
+ }, options);
104
+ if (!requestRes.ok) {
105
+ return [haltIterator(requestRes), { status: "invalid" }];
106
+ }
107
+ const req = requestRes.value;
108
+ const doResult = await client._do(req, {
109
+ context,
110
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
111
+ retryConfig: context.retryConfig,
112
+ retryCodes: context.retryCodes,
113
+ });
114
+ if (!doResult.ok) {
115
+ return [haltIterator(doResult), { status: "request-error", request: req }];
116
+ }
117
+ const response = doResult.value;
118
+ const responseFields = {
119
+ HttpMeta: { Response: response, Request: req },
120
+ };
121
+ const [result, raw] = await M.match(M.json(200, operations.ListCompanyTargetFacilitiesResponse$inboundSchema, {
122
+ key: "Result",
123
+ }), M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
124
+ if (!result.ok) {
125
+ return [haltIterator(result), {
126
+ status: "complete",
127
+ request: req,
128
+ response,
129
+ }];
130
+ }
131
+ const nextFunc = (responseData) => {
132
+ const page = request?.page ?? 1;
133
+ const nextPage = page + 1;
134
+ if (!responseData) {
135
+ return { next: () => null };
136
+ }
137
+ const results = dlv(responseData, "items");
138
+ if (!Array.isArray(results) || !results.length) {
139
+ return { next: () => null };
140
+ }
141
+ const limit = request?.itemsPerPage ?? 0;
142
+ if (results.length < limit) {
143
+ return { next: () => null };
144
+ }
145
+ const nextVal = () => organizationsListCompanyTargetFacilities(client, {
146
+ ...request,
147
+ page: nextPage,
148
+ }, options);
149
+ return { next: nextVal, "~next": { page: nextPage } };
150
+ };
151
+ const page = { ...result, ...nextFunc(raw) };
152
+ return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
153
+ status: "complete",
154
+ request: req,
155
+ response,
156
+ }];
157
+ }
158
+ //# sourceMappingURL=organizationsListCompanyTargetFacilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizationsListCompanyTargetFacilities.js","sourceRoot":"","sources":["../../../src/funcs/organizationsListCompanyTargetFacilities.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;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C;YAC/C,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;QACD,MAAM,KAAK,GAAG,OAAO,EAAE,YAAY,IAAI,CAAC,CAAC;QACzC,IAAI,OAAO,CAAC,MAAM,GAAG,KAAK,EAAE,CAAC;YAC3B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;QAED,MAAM,OAAO,GAAG,GAAG,EAAE,CACnB,wCAAwC,CACtC,MAAM,EACN;YACE,GAAG,OAAO;YACV,IAAI,EAAE,QAAQ;SACf,EACD,OAAO,CACR,CAAC;QAEJ,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC;IACxD,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7C,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,kBAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAC9D,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,GAAG;YACZ,QAAQ;SACT,CAAC,CAAC;AACL,CAAC"}
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
35
35
  export declare const SDK_METADATA: {
36
36
  readonly language: "typescript";
37
37
  readonly openapiDocVersion: "0.43.5";
38
- readonly sdkVersion: "0.44.0-beta.15";
38
+ readonly sdkVersion: "0.44.0-beta.16";
39
39
  readonly genVersion: "2.897.1";
40
- readonly userAgent: "speakeasy-sdk/typescript 0.44.0-beta.15 2.897.1 0.43.5 @greensecurity/javascript-sdk";
40
+ readonly userAgent: "speakeasy-sdk/typescript 0.44.0-beta.16 2.897.1 0.43.5 @greensecurity/javascript-sdk";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
39
39
  export const SDK_METADATA = {
40
40
  language: "typescript",
41
41
  openapiDocVersion: "0.43.5",
42
- sdkVersion: "0.44.0-beta.15",
42
+ sdkVersion: "0.44.0-beta.16",
43
43
  genVersion: "2.897.1",
44
- userAgent: "speakeasy-sdk/typescript 0.44.0-beta.15 2.897.1 0.43.5 @greensecurity/javascript-sdk",
44
+ userAgent: "speakeasy-sdk/typescript 0.44.0-beta.16 2.897.1 0.43.5 @greensecurity/javascript-sdk",
45
45
  };
46
46
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,54 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { Facility } from "./facility.js";
5
+ /**
6
+ * The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
7
+ */
8
+ export type CompanyTargetFacilityFacility = Facility | number;
9
+ /**
10
+ * Per-facility counts of the company's individuals (vendors) currently targeting this facility.
11
+ */
12
+ export type IndividualCounts = {
13
+ /**
14
+ * Total individuals from the company targeting this facility.
15
+ */
16
+ total?: number | undefined;
17
+ /**
18
+ * Individuals targeting this facility whose credentialing subscription is active.
19
+ */
20
+ active?: number | undefined;
21
+ };
22
+ /**
23
+ * Describes the facilities that a company would like to do business with. These are called "target facilities" for the company. A company may target/untarget any number of facilities which will kick off the process of becoming compliant with that facility's vendor policies.
24
+ */
25
+ export type CompanyTargetFacility = {
26
+ /**
27
+ * CompanyTargetFacility row ID. Null when returned via `include_potential_targets=true` for a facility not yet targeted by the company.
28
+ */
29
+ id: number | null;
30
+ /**
31
+ * The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
32
+ */
33
+ facility: Facility | number | null;
34
+ /**
35
+ * Link status (Approved, Pending, or Denied). This value is computed by the daily background job from the company's credential state — it is not directly settable through the API.
36
+ */
37
+ status: string | null;
38
+ contracted?: boolean | undefined;
39
+ dateCreated?: Date | null | undefined;
40
+ /**
41
+ * Per-facility counts of the company's individuals (vendors) currently targeting this facility.
42
+ */
43
+ individualCounts?: IndividualCounts | null | undefined;
44
+ };
45
+ /** @internal */
46
+ export declare const CompanyTargetFacilityFacility$inboundSchema: z.ZodType<CompanyTargetFacilityFacility, z.ZodTypeDef, unknown>;
47
+ export declare function companyTargetFacilityFacilityFromJSON(jsonString: string): SafeParseResult<CompanyTargetFacilityFacility, SDKValidationError>;
48
+ /** @internal */
49
+ export declare const IndividualCounts$inboundSchema: z.ZodType<IndividualCounts, z.ZodTypeDef, unknown>;
50
+ export declare function individualCountsFromJSON(jsonString: string): SafeParseResult<IndividualCounts, SDKValidationError>;
51
+ /** @internal */
52
+ export declare const CompanyTargetFacility$inboundSchema: z.ZodType<CompanyTargetFacility, z.ZodTypeDef, unknown>;
53
+ export declare function companyTargetFacilityFromJSON(jsonString: string): SafeParseResult<CompanyTargetFacility, SDKValidationError>;
54
+ //# sourceMappingURL=companytargetfacility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companytargetfacility.d.ts","sourceRoot":"","sources":["../../../../src/models/components/companytargetfacility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAA0B,MAAM,eAAe,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,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v3";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as types from "../../types/primitives.js";
8
+ import { smartUnion } from "../../types/smartUnion.js";
9
+ import { Facility$inboundSchema } from "./facility.js";
10
+ /** @internal */
11
+ export const CompanyTargetFacilityFacility$inboundSchema = smartUnion([Facility$inboundSchema, types.number()]);
12
+ export function companyTargetFacilityFacilityFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => CompanyTargetFacilityFacility$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompanyTargetFacilityFacility' from JSON`);
14
+ }
15
+ /** @internal */
16
+ export const IndividualCounts$inboundSchema = z.object({
17
+ total: types.optional(types.number()),
18
+ active: types.optional(types.number()),
19
+ });
20
+ export function individualCountsFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => IndividualCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IndividualCounts' from JSON`);
22
+ }
23
+ /** @internal */
24
+ export const CompanyTargetFacility$inboundSchema = z.object({
25
+ id: types.nullable(types.number()),
26
+ facility: types.nullable(smartUnion([Facility$inboundSchema, types.number()])),
27
+ status: types.nullable(types.string()),
28
+ contracted: types.optional(types.boolean()),
29
+ date_created: z.nullable(types.date()).optional(),
30
+ individual_counts: z.nullable(z.lazy(() => IndividualCounts$inboundSchema))
31
+ .optional(),
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ "date_created": "dateCreated",
35
+ "individual_counts": "individualCounts",
36
+ });
37
+ });
38
+ export function companyTargetFacilityFromJSON(jsonString) {
39
+ return safeParse(jsonString, (x) => CompanyTargetFacility$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompanyTargetFacility' from JSON`);
40
+ }
41
+ //# sourceMappingURL=companytargetfacility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companytargetfacility.js","sourceRoot":"","sources":["../../../../src/models/components/companytargetfacility.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAA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CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CACtB,UAAU,CAAC,CAAC,sBAAsB,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CACrD;IACD,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACtC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IAC3C,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC,CAAC;SACxE,QAAQ,EAAE;CACd,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,mBAAmB,EAAE,kBAAkB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
@@ -6,6 +6,7 @@ export * from "./company.js";
6
6
  export * from "./companycredentiallistitem.js";
7
7
  export * from "./companylookup.js";
8
8
  export * from "./companymanager.js";
9
+ export * from "./companytargetfacility.js";
9
10
  export * from "./companyvendorfield.js";
10
11
  export * from "./companyvendortyperestriction.js";
11
12
  export * from "./contact.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3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AyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
@@ -9,6 +9,7 @@ export * from "./company.js";
9
9
  export * from "./companycredentiallistitem.js";
10
10
  export * from "./companylookup.js";
11
11
  export * from "./companymanager.js";
12
+ export * from "./companytargetfacility.js";
12
13
  export * from "./companyvendorfield.js";
13
14
  export * from "./companyvendortyperestriction.js";
14
15
  export * from "./contact.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;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,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kDAAkD,CAAC;AACjE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,50 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type CreateCompanyTargetFacilityRequestBody = {
6
+ /**
7
+ * The existing facility to target.
8
+ */
9
+ facilityId: number;
10
+ };
11
+ export type CreateCompanyTargetFacilityRequest = {
12
+ /**
13
+ * The company that will target the facility.
14
+ */
15
+ companyId: number;
16
+ /**
17
+ * An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
18
+ */
19
+ expand?: Array<components.Expand> | undefined;
20
+ requestBody: CreateCompanyTargetFacilityRequestBody;
21
+ };
22
+ /**
23
+ * The CompanyTargetFacility link was created.
24
+ */
25
+ export type CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk = {
26
+ /**
27
+ * Describes the facilities that a company would like to do business with. These are called "target facilities" for the company. A company may target/untarget any number of facilities which will kick off the process of becoming compliant with that facility's vendor policies.
28
+ */
29
+ companyTargetFacility: components.CompanyTargetFacility;
30
+ };
31
+ /** @internal */
32
+ export type CreateCompanyTargetFacilityRequestBody$Outbound = {
33
+ facility_id: number;
34
+ };
35
+ /** @internal */
36
+ export declare const CreateCompanyTargetFacilityRequestBody$outboundSchema: z.ZodType<CreateCompanyTargetFacilityRequestBody$Outbound, z.ZodTypeDef, CreateCompanyTargetFacilityRequestBody>;
37
+ export declare function createCompanyTargetFacilityRequestBodyToJSON(createCompanyTargetFacilityRequestBody: CreateCompanyTargetFacilityRequestBody): string;
38
+ /** @internal */
39
+ export type CreateCompanyTargetFacilityRequest$Outbound = {
40
+ company_id: number;
41
+ expand?: Array<string> | undefined;
42
+ RequestBody: CreateCompanyTargetFacilityRequestBody$Outbound;
43
+ };
44
+ /** @internal */
45
+ export declare const CreateCompanyTargetFacilityRequest$outboundSchema: z.ZodType<CreateCompanyTargetFacilityRequest$Outbound, z.ZodTypeDef, CreateCompanyTargetFacilityRequest>;
46
+ export declare function createCompanyTargetFacilityRequestToJSON(createCompanyTargetFacilityRequest: CreateCompanyTargetFacilityRequest): string;
47
+ /** @internal */
48
+ export declare const CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema: z.ZodType<CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk, z.ZodTypeDef, unknown>;
49
+ export declare function createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON(jsonString: string): SafeParseResult<CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk, SDKValidationError>;
50
+ //# sourceMappingURL=createcompanytargetfacility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createcompanytargetfacility.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/createcompanytargetfacility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,m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AO,MAAM,sEAAsE,EACjF,CAAC,CAAC,OAAO,CACP,wDAAwD,EACxD,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEL,wBAAgB,gEAAgE,CAC9E,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,wDAAwD,EACxD,kBAAkB,CACnB,CAQA"}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v3";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as components from "../components/index.js";
8
+ /** @internal */
9
+ export const CreateCompanyTargetFacilityRequestBody$outboundSchema = z.object({
10
+ facilityId: z.number().int(),
11
+ }).transform((v) => {
12
+ return remap$(v, {
13
+ facilityId: "facility_id",
14
+ });
15
+ });
16
+ export function createCompanyTargetFacilityRequestBodyToJSON(createCompanyTargetFacilityRequestBody) {
17
+ return JSON.stringify(CreateCompanyTargetFacilityRequestBody$outboundSchema.parse(createCompanyTargetFacilityRequestBody));
18
+ }
19
+ /** @internal */
20
+ export const CreateCompanyTargetFacilityRequest$outboundSchema = z.object({
21
+ companyId: z.number().int(),
22
+ expand: z.array(components.Expand$outboundSchema).optional(),
23
+ requestBody: z.lazy(() => CreateCompanyTargetFacilityRequestBody$outboundSchema),
24
+ }).transform((v) => {
25
+ return remap$(v, {
26
+ companyId: "company_id",
27
+ requestBody: "RequestBody",
28
+ });
29
+ });
30
+ export function createCompanyTargetFacilityRequestToJSON(createCompanyTargetFacilityRequest) {
31
+ return JSON.stringify(CreateCompanyTargetFacilityRequest$outboundSchema.parse(createCompanyTargetFacilityRequest));
32
+ }
33
+ /** @internal */
34
+ export const CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema = z.object({
35
+ company_target_facility: components.CompanyTargetFacility$inboundSchema,
36
+ }).transform((v) => {
37
+ return remap$(v, {
38
+ "company_target_facility": "companyTargetFacility",
39
+ });
40
+ });
41
+ export function createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON(jsonString) {
42
+ return safeParse(jsonString, (x) => CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema
43
+ .parse(JSON.parse(x)), `Failed to parse 'CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk' from JSON`);
44
+ }
45
+ //# sourceMappingURL=createcompanytargetfacility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createcompanytargetfacility.js","sourceRoot":"","sources":["../../../../src/models/operations/createcompanytargetfacility.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAqCrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,qDAAqD,GAI9D,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,4CAA4C,CAC1D,sCACwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,qDAAqD,CAAC,KAAK,CACzD,sCAAsC,CACvC,CACF,CAAC;AACJ,CAAC;AASD,gBAAgB;AAChB,MAAM,CAAC,MAAM,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAA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