@greensecurity/javascript-sdk 0.12.1 → 0.14.0

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 (39) hide show
  1. package/bin/mcp-server.js +196 -48
  2. package/bin/mcp-server.js.map +11 -10
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/components/company.d.ts +177 -0
  9. package/models/components/company.d.ts.map +1 -0
  10. package/models/components/company.js +270 -0
  11. package/models/components/company.js.map +1 -0
  12. package/models/components/facility.d.ts +15 -15
  13. package/models/components/facility.d.ts.map +1 -1
  14. package/models/components/facility.js +18 -18
  15. package/models/components/facility.js.map +1 -1
  16. package/models/components/index.d.ts +1 -0
  17. package/models/components/index.d.ts.map +1 -1
  18. package/models/components/index.js +1 -0
  19. package/models/components/index.js.map +1 -1
  20. package/models/components/user.d.ts +6 -0
  21. package/models/components/user.d.ts.map +1 -1
  22. package/models/components/user.js +3 -0
  23. package/models/components/user.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/__tests__/organizations.test.ts +6 -2
  26. package/src/__tests__/user.test.ts +18 -6
  27. package/src/__tests__/vendors.test.ts +6 -2
  28. package/src/lib/config.ts +3 -3
  29. package/src/mcp-server/mcp-server.ts +1 -1
  30. package/src/mcp-server/server.ts +1 -1
  31. package/src/models/components/company.ts +403 -0
  32. package/src/models/components/facility.ts +28 -24
  33. package/src/models/components/index.ts +1 -0
  34. package/src/models/components/user.ts +13 -0
  35. package/src/vitest.config.js +0 -5
  36. package/vitest.config.d.ts +0 -7
  37. package/vitest.config.d.ts.map +0 -1
  38. package/vitest.config.js +0 -8
  39. package/vitest.config.js.map +0 -1
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@greensecurity/javascript-sdk",
5
- "version": "0.12.1",
5
+ "version": "0.14.0",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "0.0.3";
34
- readonly sdkVersion: "0.12.1";
35
- readonly genVersion: "2.529.2";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.12.1 2.529.2 0.0.3 @greensecurity/javascript-sdk";
34
+ readonly sdkVersion: "0.14.0";
35
+ readonly genVersion: "2.536.0";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.14.0 2.536.0 0.0.3 @greensecurity/javascript-sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -39,8 +39,8 @@ function serverURLFromOptions(options) {
39
39
  exports.SDK_METADATA = {
40
40
  language: "typescript",
41
41
  openapiDocVersion: "0.0.3",
42
- sdkVersion: "0.12.1",
43
- genVersion: "2.529.2",
44
- userAgent: "speakeasy-sdk/typescript 0.12.1 2.529.2 0.0.3 @greensecurity/javascript-sdk",
42
+ sdkVersion: "0.14.0",
43
+ genVersion: "2.536.0",
44
+ userAgent: "speakeasy-sdk/typescript 0.14.0 2.536.0 0.0.3 @greensecurity/javascript-sdk",
45
45
  };
46
46
  //# sourceMappingURL=config.js.map
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
22
22
  exports.app = (0, core_1.buildApplication)(routes, {
23
23
  name: "mcp",
24
24
  versionInfo: {
25
- currentVersion: "0.12.1",
25
+ currentVersion: "0.14.0",
26
26
  },
27
27
  });
28
28
  (0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
@@ -21,7 +21,7 @@ const vendorsListVendorJobTitles_js_1 = require("./tools/vendorsListVendorJobTit
21
21
  function createMCPServer(deps) {
22
22
  const server = new mcp_js_1.McpServer({
23
23
  name: "GreenSecurity",
24
- version: "0.12.1",
24
+ version: "0.14.0",
25
25
  });
26
26
  const client = new core_js_1.GreenSecurityCore({
27
27
  security: deps.security,
@@ -0,0 +1,177 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { RFCDate } from "../../types/rfcdate.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type Location = {
6
+ address: string | null;
7
+ phone?: string | null | undefined;
8
+ city?: string | null | undefined;
9
+ state?: string | null | undefined;
10
+ zip?: string | null | undefined;
11
+ country?: string | null | undefined;
12
+ };
13
+ export type CompanyContact = {
14
+ name: string | null;
15
+ email?: string | null | undefined;
16
+ };
17
+ export type Tax = {
18
+ taxId: string | null;
19
+ taxExempt?: boolean | null | undefined;
20
+ taxExemptCode?: string | null | undefined;
21
+ w9FileName?: string | null | undefined;
22
+ w9ContentType?: string | null | undefined;
23
+ w9FileSize?: string | null | undefined;
24
+ w9UpdatedAt?: RFCDate | null | undefined;
25
+ };
26
+ export type Stats = {
27
+ vendorInactiveCount?: number | null | undefined;
28
+ vendorActiveCount?: number | null | undefined;
29
+ facilityTargetedCount?: number | null | undefined;
30
+ facilityApprovedCount?: number | null | undefined;
31
+ };
32
+ /**
33
+ * A simplified representation of a Company, typically used in list views.
34
+ */
35
+ export type Company = {
36
+ id: number;
37
+ name: string | null;
38
+ status?: string | null | undefined;
39
+ creditBalance?: string | null | undefined;
40
+ location?: Location | null | undefined;
41
+ contact?: CompanyContact | undefined;
42
+ tax?: Tax | undefined;
43
+ stats?: Stats | undefined;
44
+ };
45
+ /** @internal */
46
+ export declare const Location$inboundSchema: z.ZodType<Location, z.ZodTypeDef, unknown>;
47
+ /** @internal */
48
+ export type Location$Outbound = {
49
+ address: string | null;
50
+ phone?: string | null | undefined;
51
+ city?: string | null | undefined;
52
+ state?: string | null | undefined;
53
+ zip?: string | null | undefined;
54
+ country?: string | null | undefined;
55
+ };
56
+ /** @internal */
57
+ export declare const Location$outboundSchema: z.ZodType<Location$Outbound, z.ZodTypeDef, Location>;
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ export declare namespace Location$ {
63
+ /** @deprecated use `Location$inboundSchema` instead. */
64
+ const inboundSchema: z.ZodType<Location, z.ZodTypeDef, unknown>;
65
+ /** @deprecated use `Location$outboundSchema` instead. */
66
+ const outboundSchema: z.ZodType<Location$Outbound, z.ZodTypeDef, Location>;
67
+ /** @deprecated use `Location$Outbound` instead. */
68
+ type Outbound = Location$Outbound;
69
+ }
70
+ export declare function locationToJSON(location: Location): string;
71
+ export declare function locationFromJSON(jsonString: string): SafeParseResult<Location, SDKValidationError>;
72
+ /** @internal */
73
+ export declare const CompanyContact$inboundSchema: z.ZodType<CompanyContact, z.ZodTypeDef, unknown>;
74
+ /** @internal */
75
+ export type CompanyContact$Outbound = {
76
+ name: string | null;
77
+ email?: string | null | undefined;
78
+ };
79
+ /** @internal */
80
+ export declare const CompanyContact$outboundSchema: z.ZodType<CompanyContact$Outbound, z.ZodTypeDef, CompanyContact>;
81
+ /**
82
+ * @internal
83
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
84
+ */
85
+ export declare namespace CompanyContact$ {
86
+ /** @deprecated use `CompanyContact$inboundSchema` instead. */
87
+ const inboundSchema: z.ZodType<CompanyContact, z.ZodTypeDef, unknown>;
88
+ /** @deprecated use `CompanyContact$outboundSchema` instead. */
89
+ const outboundSchema: z.ZodType<CompanyContact$Outbound, z.ZodTypeDef, CompanyContact>;
90
+ /** @deprecated use `CompanyContact$Outbound` instead. */
91
+ type Outbound = CompanyContact$Outbound;
92
+ }
93
+ export declare function companyContactToJSON(companyContact: CompanyContact): string;
94
+ export declare function companyContactFromJSON(jsonString: string): SafeParseResult<CompanyContact, SDKValidationError>;
95
+ /** @internal */
96
+ export declare const Tax$inboundSchema: z.ZodType<Tax, z.ZodTypeDef, unknown>;
97
+ /** @internal */
98
+ export type Tax$Outbound = {
99
+ tax_id: string | null;
100
+ tax_exempt?: boolean | null | undefined;
101
+ tax_exempt_code?: string | null | undefined;
102
+ w9_file_name?: string | null | undefined;
103
+ w9_content_type?: string | null | undefined;
104
+ w9_file_size?: string | null | undefined;
105
+ w9_updated_at?: string | null | undefined;
106
+ };
107
+ /** @internal */
108
+ export declare const Tax$outboundSchema: z.ZodType<Tax$Outbound, z.ZodTypeDef, Tax>;
109
+ /**
110
+ * @internal
111
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
112
+ */
113
+ export declare namespace Tax$ {
114
+ /** @deprecated use `Tax$inboundSchema` instead. */
115
+ const inboundSchema: z.ZodType<Tax, z.ZodTypeDef, unknown>;
116
+ /** @deprecated use `Tax$outboundSchema` instead. */
117
+ const outboundSchema: z.ZodType<Tax$Outbound, z.ZodTypeDef, Tax>;
118
+ /** @deprecated use `Tax$Outbound` instead. */
119
+ type Outbound = Tax$Outbound;
120
+ }
121
+ export declare function taxToJSON(tax: Tax): string;
122
+ export declare function taxFromJSON(jsonString: string): SafeParseResult<Tax, SDKValidationError>;
123
+ /** @internal */
124
+ export declare const Stats$inboundSchema: z.ZodType<Stats, z.ZodTypeDef, unknown>;
125
+ /** @internal */
126
+ export type Stats$Outbound = {
127
+ vendor_inactive_count?: number | null | undefined;
128
+ vendor_active_count?: number | null | undefined;
129
+ facility_targeted_count?: number | null | undefined;
130
+ facility_approved_count?: number | null | undefined;
131
+ };
132
+ /** @internal */
133
+ export declare const Stats$outboundSchema: z.ZodType<Stats$Outbound, z.ZodTypeDef, Stats>;
134
+ /**
135
+ * @internal
136
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
137
+ */
138
+ export declare namespace Stats$ {
139
+ /** @deprecated use `Stats$inboundSchema` instead. */
140
+ const inboundSchema: z.ZodType<Stats, z.ZodTypeDef, unknown>;
141
+ /** @deprecated use `Stats$outboundSchema` instead. */
142
+ const outboundSchema: z.ZodType<Stats$Outbound, z.ZodTypeDef, Stats>;
143
+ /** @deprecated use `Stats$Outbound` instead. */
144
+ type Outbound = Stats$Outbound;
145
+ }
146
+ export declare function statsToJSON(stats: Stats): string;
147
+ export declare function statsFromJSON(jsonString: string): SafeParseResult<Stats, SDKValidationError>;
148
+ /** @internal */
149
+ export declare const Company$inboundSchema: z.ZodType<Company, z.ZodTypeDef, unknown>;
150
+ /** @internal */
151
+ export type Company$Outbound = {
152
+ id: number;
153
+ name: string | null;
154
+ status?: string | null | undefined;
155
+ credit_balance?: string | null | undefined;
156
+ location?: Location$Outbound | null | undefined;
157
+ contact?: CompanyContact$Outbound | undefined;
158
+ tax?: Tax$Outbound | undefined;
159
+ stats?: Stats$Outbound | undefined;
160
+ };
161
+ /** @internal */
162
+ export declare const Company$outboundSchema: z.ZodType<Company$Outbound, z.ZodTypeDef, Company>;
163
+ /**
164
+ * @internal
165
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
166
+ */
167
+ export declare namespace Company$ {
168
+ /** @deprecated use `Company$inboundSchema` instead. */
169
+ const inboundSchema: z.ZodType<Company, z.ZodTypeDef, unknown>;
170
+ /** @deprecated use `Company$outboundSchema` instead. */
171
+ const outboundSchema: z.ZodType<Company$Outbound, z.ZodTypeDef, Company>;
172
+ /** @deprecated use `Company$Outbound` instead. */
173
+ type Outbound = Company$Outbound;
174
+ }
175
+ export declare function companyToJSON(company: Company): string;
176
+ export declare function companyFromJSON(jsonString: string): SafeParseResult<Company, SDKValidationError>;
177
+ //# sourceMappingURL=company.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"company.d.ts","sourceRoot":"","sources":["../../src/models/components/company.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EA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sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH;;;GAGG;AACH,yBAAiB,QAAQ,CAAC;IACxB,uDAAuD;IAChD,MAAM,aAAa,2CAAwB,CAAC;IACnD,wDAAwD;IACjD,MAAM,cAAc,oDAAyB,CAAC;IACrD,kDAAkD;IAClD,KAAY,QAAQ,GAAG,gBAAgB,CAAC;CACzC;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEtD;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
@@ -0,0 +1,270 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Company$ = exports.Company$outboundSchema = exports.Company$inboundSchema = exports.Stats$ = exports.Stats$outboundSchema = exports.Stats$inboundSchema = exports.Tax$ = exports.Tax$outboundSchema = exports.Tax$inboundSchema = exports.CompanyContact$ = exports.CompanyContact$outboundSchema = exports.CompanyContact$inboundSchema = exports.Location$ = exports.Location$outboundSchema = exports.Location$inboundSchema = void 0;
40
+ exports.locationToJSON = locationToJSON;
41
+ exports.locationFromJSON = locationFromJSON;
42
+ exports.companyContactToJSON = companyContactToJSON;
43
+ exports.companyContactFromJSON = companyContactFromJSON;
44
+ exports.taxToJSON = taxToJSON;
45
+ exports.taxFromJSON = taxFromJSON;
46
+ exports.statsToJSON = statsToJSON;
47
+ exports.statsFromJSON = statsFromJSON;
48
+ exports.companyToJSON = companyToJSON;
49
+ exports.companyFromJSON = companyFromJSON;
50
+ const z = __importStar(require("zod"));
51
+ const primitives_js_1 = require("../../lib/primitives.js");
52
+ const schemas_js_1 = require("../../lib/schemas.js");
53
+ const rfcdate_js_1 = require("../../types/rfcdate.js");
54
+ /** @internal */
55
+ exports.Location$inboundSchema = z.object({
56
+ address: z.nullable(z.string()),
57
+ phone: z.nullable(z.string()).optional(),
58
+ city: z.nullable(z.string()).optional(),
59
+ state: z.nullable(z.string()).optional(),
60
+ zip: z.nullable(z.string()).optional(),
61
+ country: z.nullable(z.string()).optional(),
62
+ });
63
+ /** @internal */
64
+ exports.Location$outboundSchema = z.object({
65
+ address: z.nullable(z.string()),
66
+ phone: z.nullable(z.string()).optional(),
67
+ city: z.nullable(z.string()).optional(),
68
+ state: z.nullable(z.string()).optional(),
69
+ zip: z.nullable(z.string()).optional(),
70
+ country: z.nullable(z.string()).optional(),
71
+ });
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ var Location$;
77
+ (function (Location$) {
78
+ /** @deprecated use `Location$inboundSchema` instead. */
79
+ Location$.inboundSchema = exports.Location$inboundSchema;
80
+ /** @deprecated use `Location$outboundSchema` instead. */
81
+ Location$.outboundSchema = exports.Location$outboundSchema;
82
+ })(Location$ || (exports.Location$ = Location$ = {}));
83
+ function locationToJSON(location) {
84
+ return JSON.stringify(exports.Location$outboundSchema.parse(location));
85
+ }
86
+ function locationFromJSON(jsonString) {
87
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Location$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Location' from JSON`);
88
+ }
89
+ /** @internal */
90
+ exports.CompanyContact$inboundSchema = z.object({
91
+ name: z.nullable(z.string()),
92
+ email: z.nullable(z.string()).optional(),
93
+ });
94
+ /** @internal */
95
+ exports.CompanyContact$outboundSchema = z.object({
96
+ name: z.nullable(z.string()),
97
+ email: z.nullable(z.string()).optional(),
98
+ });
99
+ /**
100
+ * @internal
101
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
102
+ */
103
+ var CompanyContact$;
104
+ (function (CompanyContact$) {
105
+ /** @deprecated use `CompanyContact$inboundSchema` instead. */
106
+ CompanyContact$.inboundSchema = exports.CompanyContact$inboundSchema;
107
+ /** @deprecated use `CompanyContact$outboundSchema` instead. */
108
+ CompanyContact$.outboundSchema = exports.CompanyContact$outboundSchema;
109
+ })(CompanyContact$ || (exports.CompanyContact$ = CompanyContact$ = {}));
110
+ function companyContactToJSON(companyContact) {
111
+ return JSON.stringify(exports.CompanyContact$outboundSchema.parse(companyContact));
112
+ }
113
+ function companyContactFromJSON(jsonString) {
114
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CompanyContact$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompanyContact' from JSON`);
115
+ }
116
+ /** @internal */
117
+ exports.Tax$inboundSchema = z
118
+ .object({
119
+ tax_id: z.nullable(z.string()),
120
+ tax_exempt: z.nullable(z.boolean()).optional(),
121
+ tax_exempt_code: z.nullable(z.string()).optional(),
122
+ w9_file_name: z.nullable(z.string()).optional(),
123
+ w9_content_type: z.nullable(z.string()).optional(),
124
+ w9_file_size: z.nullable(z.string()).optional(),
125
+ w9_updated_at: z.nullable(z.string().transform(v => new rfcdate_js_1.RFCDate(v)))
126
+ .optional(),
127
+ }).transform((v) => {
128
+ return (0, primitives_js_1.remap)(v, {
129
+ "tax_id": "taxId",
130
+ "tax_exempt": "taxExempt",
131
+ "tax_exempt_code": "taxExemptCode",
132
+ "w9_file_name": "w9FileName",
133
+ "w9_content_type": "w9ContentType",
134
+ "w9_file_size": "w9FileSize",
135
+ "w9_updated_at": "w9UpdatedAt",
136
+ });
137
+ });
138
+ /** @internal */
139
+ exports.Tax$outboundSchema = z
140
+ .object({
141
+ taxId: z.nullable(z.string()),
142
+ taxExempt: z.nullable(z.boolean()).optional(),
143
+ taxExemptCode: z.nullable(z.string()).optional(),
144
+ w9FileName: z.nullable(z.string()).optional(),
145
+ w9ContentType: z.nullable(z.string()).optional(),
146
+ w9FileSize: z.nullable(z.string()).optional(),
147
+ w9UpdatedAt: z.nullable(z.instanceof(rfcdate_js_1.RFCDate).transform(v => v.toString()))
148
+ .optional(),
149
+ }).transform((v) => {
150
+ return (0, primitives_js_1.remap)(v, {
151
+ taxId: "tax_id",
152
+ taxExempt: "tax_exempt",
153
+ taxExemptCode: "tax_exempt_code",
154
+ w9FileName: "w9_file_name",
155
+ w9ContentType: "w9_content_type",
156
+ w9FileSize: "w9_file_size",
157
+ w9UpdatedAt: "w9_updated_at",
158
+ });
159
+ });
160
+ /**
161
+ * @internal
162
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
163
+ */
164
+ var Tax$;
165
+ (function (Tax$) {
166
+ /** @deprecated use `Tax$inboundSchema` instead. */
167
+ Tax$.inboundSchema = exports.Tax$inboundSchema;
168
+ /** @deprecated use `Tax$outboundSchema` instead. */
169
+ Tax$.outboundSchema = exports.Tax$outboundSchema;
170
+ })(Tax$ || (exports.Tax$ = Tax$ = {}));
171
+ function taxToJSON(tax) {
172
+ return JSON.stringify(exports.Tax$outboundSchema.parse(tax));
173
+ }
174
+ function taxFromJSON(jsonString) {
175
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Tax$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Tax' from JSON`);
176
+ }
177
+ /** @internal */
178
+ exports.Stats$inboundSchema = z
179
+ .object({
180
+ vendor_inactive_count: z.nullable(z.number().int()).optional(),
181
+ vendor_active_count: z.nullable(z.number().int()).optional(),
182
+ facility_targeted_count: z.nullable(z.number().int()).optional(),
183
+ facility_approved_count: z.nullable(z.number().int()).optional(),
184
+ }).transform((v) => {
185
+ return (0, primitives_js_1.remap)(v, {
186
+ "vendor_inactive_count": "vendorInactiveCount",
187
+ "vendor_active_count": "vendorActiveCount",
188
+ "facility_targeted_count": "facilityTargetedCount",
189
+ "facility_approved_count": "facilityApprovedCount",
190
+ });
191
+ });
192
+ /** @internal */
193
+ exports.Stats$outboundSchema = z.object({
194
+ vendorInactiveCount: z.nullable(z.number().int()).optional(),
195
+ vendorActiveCount: z.nullable(z.number().int()).optional(),
196
+ facilityTargetedCount: z.nullable(z.number().int()).optional(),
197
+ facilityApprovedCount: z.nullable(z.number().int()).optional(),
198
+ }).transform((v) => {
199
+ return (0, primitives_js_1.remap)(v, {
200
+ vendorInactiveCount: "vendor_inactive_count",
201
+ vendorActiveCount: "vendor_active_count",
202
+ facilityTargetedCount: "facility_targeted_count",
203
+ facilityApprovedCount: "facility_approved_count",
204
+ });
205
+ });
206
+ /**
207
+ * @internal
208
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
209
+ */
210
+ var Stats$;
211
+ (function (Stats$) {
212
+ /** @deprecated use `Stats$inboundSchema` instead. */
213
+ Stats$.inboundSchema = exports.Stats$inboundSchema;
214
+ /** @deprecated use `Stats$outboundSchema` instead. */
215
+ Stats$.outboundSchema = exports.Stats$outboundSchema;
216
+ })(Stats$ || (exports.Stats$ = Stats$ = {}));
217
+ function statsToJSON(stats) {
218
+ return JSON.stringify(exports.Stats$outboundSchema.parse(stats));
219
+ }
220
+ function statsFromJSON(jsonString) {
221
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Stats$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Stats' from JSON`);
222
+ }
223
+ /** @internal */
224
+ exports.Company$inboundSchema = z.object({
225
+ id: z.number().int(),
226
+ name: z.nullable(z.string()),
227
+ status: z.nullable(z.string()).optional(),
228
+ credit_balance: z.nullable(z.string()).optional(),
229
+ location: z.nullable(z.lazy(() => exports.Location$inboundSchema)).optional(),
230
+ contact: z.lazy(() => exports.CompanyContact$inboundSchema).optional(),
231
+ tax: z.lazy(() => exports.Tax$inboundSchema).optional(),
232
+ stats: z.lazy(() => exports.Stats$inboundSchema).optional(),
233
+ }).transform((v) => {
234
+ return (0, primitives_js_1.remap)(v, {
235
+ "credit_balance": "creditBalance",
236
+ });
237
+ });
238
+ /** @internal */
239
+ exports.Company$outboundSchema = z.object({
240
+ id: z.number().int(),
241
+ name: z.nullable(z.string()),
242
+ status: z.nullable(z.string()).optional(),
243
+ creditBalance: z.nullable(z.string()).optional(),
244
+ location: z.nullable(z.lazy(() => exports.Location$outboundSchema)).optional(),
245
+ contact: z.lazy(() => exports.CompanyContact$outboundSchema).optional(),
246
+ tax: z.lazy(() => exports.Tax$outboundSchema).optional(),
247
+ stats: z.lazy(() => exports.Stats$outboundSchema).optional(),
248
+ }).transform((v) => {
249
+ return (0, primitives_js_1.remap)(v, {
250
+ creditBalance: "credit_balance",
251
+ });
252
+ });
253
+ /**
254
+ * @internal
255
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
256
+ */
257
+ var Company$;
258
+ (function (Company$) {
259
+ /** @deprecated use `Company$inboundSchema` instead. */
260
+ Company$.inboundSchema = exports.Company$inboundSchema;
261
+ /** @deprecated use `Company$outboundSchema` instead. */
262
+ Company$.outboundSchema = exports.Company$outboundSchema;
263
+ })(Company$ || (exports.Company$ = Company$ = {}));
264
+ function companyToJSON(company) {
265
+ return JSON.stringify(exports.Company$outboundSchema.parse(company));
266
+ }
267
+ function companyFromJSON(jsonString) {
268
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Company$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Company' from JSON`);
269
+ }
270
+ //# sourceMappingURL=company.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"company.js","sourceRoot":"","sources":["../../src/models/components/company.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyGH,wCAEC;AAED,4CAQC;AAyCD,oDAEC;AAED,wDAQC;AAwED,8BAEC;AAED,kCAQC;AA0DD,kCAEC;AAED,sCAQC;AAgED,sCAEC;AAED,0CAQC;AA9YD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,uDAAiD;AAgDjD,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,OAAO,EAAE,CAAC,CAAC,QAAQ,CA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AAG,EAAE,CAAC,qCAA6B,CAAC,CAAC,QAAQ,EAAE;IAC/D,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC,CAAC,QAAQ,EAAE;IAChD,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,4BAAoB,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACvB,uDAAuD;IAC1C,sBAAa,GAAG,6BAAqB,CAAC;IACnD,wDAAwD;IAC3C,uBAAc,GAAG,8BAAsB,CAAC;AAGvD,CAAC,EAPgB,QAAQ,wBAAR,QAAQ,QAOxB;AAED,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,8BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,eAAe,CAC7B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
@@ -54,7 +54,7 @@ export type FluCredential = {
54
54
  fluDateBegins?: RFCDate | null | undefined;
55
55
  fluDateEnds?: RFCDate | null | undefined;
56
56
  };
57
- export type Location = {
57
+ export type FacilityLocation = {
58
58
  streetAddress?: string | null | undefined;
59
59
  city?: string | null | undefined;
60
60
  state?: string | null | undefined;
@@ -130,7 +130,7 @@ export type Facility = {
130
130
  * A set of images in different sizes
131
131
  */
132
132
  imageUrls?: ImageSet | undefined;
133
- location?: Location | undefined;
133
+ location?: FacilityLocation | undefined;
134
134
  name?: string | undefined;
135
135
  scrubsPolicy?: ScrubsPolicy | null | undefined;
136
136
  status?: string | undefined;
@@ -270,9 +270,9 @@ export declare namespace FluCredential$ {
270
270
  export declare function fluCredentialToJSON(fluCredential: FluCredential): string;
271
271
  export declare function fluCredentialFromJSON(jsonString: string): SafeParseResult<FluCredential, SDKValidationError>;
272
272
  /** @internal */
273
- export declare const Location$inboundSchema: z.ZodType<Location, z.ZodTypeDef, unknown>;
273
+ export declare const FacilityLocation$inboundSchema: z.ZodType<FacilityLocation, z.ZodTypeDef, unknown>;
274
274
  /** @internal */
275
- export type Location$Outbound = {
275
+ export type FacilityLocation$Outbound = {
276
276
  street_address?: string | null | undefined;
277
277
  city?: string | null | undefined;
278
278
  state?: string | null | undefined;
@@ -285,21 +285,21 @@ export type Location$Outbound = {
285
285
  timezone?: string | null | undefined;
286
286
  };
287
287
  /** @internal */
288
- export declare const Location$outboundSchema: z.ZodType<Location$Outbound, z.ZodTypeDef, Location>;
288
+ export declare const FacilityLocation$outboundSchema: z.ZodType<FacilityLocation$Outbound, z.ZodTypeDef, FacilityLocation>;
289
289
  /**
290
290
  * @internal
291
291
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
292
292
  */
293
- export declare namespace Location$ {
294
- /** @deprecated use `Location$inboundSchema` instead. */
295
- const inboundSchema: z.ZodType<Location, z.ZodTypeDef, unknown>;
296
- /** @deprecated use `Location$outboundSchema` instead. */
297
- const outboundSchema: z.ZodType<Location$Outbound, z.ZodTypeDef, Location>;
298
- /** @deprecated use `Location$Outbound` instead. */
299
- type Outbound = Location$Outbound;
293
+ export declare namespace FacilityLocation$ {
294
+ /** @deprecated use `FacilityLocation$inboundSchema` instead. */
295
+ const inboundSchema: z.ZodType<FacilityLocation, z.ZodTypeDef, unknown>;
296
+ /** @deprecated use `FacilityLocation$outboundSchema` instead. */
297
+ const outboundSchema: z.ZodType<FacilityLocation$Outbound, z.ZodTypeDef, FacilityLocation>;
298
+ /** @deprecated use `FacilityLocation$Outbound` instead. */
299
+ type Outbound = FacilityLocation$Outbound;
300
300
  }
301
- export declare function locationToJSON(location: Location): string;
302
- export declare function locationFromJSON(jsonString: string): SafeParseResult<Location, SDKValidationError>;
301
+ export declare function facilityLocationToJSON(facilityLocation: FacilityLocation): string;
302
+ export declare function facilityLocationFromJSON(jsonString: string): SafeParseResult<FacilityLocation, SDKValidationError>;
303
303
  /** @internal */
304
304
  export declare const ScrubsPolicy$inboundSchema: z.ZodType<ScrubsPolicy, z.ZodTypeDef, unknown>;
305
305
  /** @internal */
@@ -509,7 +509,7 @@ export type Facility$Outbound = {
509
509
  flu_credential?: FluCredential$Outbound | undefined;
510
510
  id?: number | undefined;
511
511
  image_urls?: ImageSet$Outbound | undefined;
512
- location?: Location$Outbound | undefined;
512
+ location?: FacilityLocation$Outbound | undefined;
513
513
  name?: string | undefined;
514
514
  scrubs_policy?: ScrubsPolicy$Outbound | null | undefined;
515
515
  status?: string | undefined;