@greensecurity/javascript-sdk 0.16.0 → 0.17.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 (159) hide show
  1. package/REACT_QUERY.md +68 -30
  2. package/README.md +43 -0
  3. package/bin/mcp-server.js +694 -51
  4. package/bin/mcp-server.js.map +28 -19
  5. package/funcs/organizationsListOrSearchFacilities.d.ts +4 -1
  6. package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  7. package/funcs/organizationsListOrSearchFacilities.js +46 -9
  8. package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  9. package/funcs/supportArticlesGetSupportArticle.js +1 -1
  10. package/funcs/supportArticlesGetSupportArticle.js.map +1 -1
  11. package/funcs/supportArticlesListOrSearchSupportArticles.d.ts +4 -1
  12. package/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -1
  13. package/funcs/supportArticlesListOrSearchSupportArticles.js +42 -7
  14. package/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -1
  15. package/funcs/vendorsExpediteTimeRemaining.d.ts +17 -0
  16. package/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -0
  17. package/funcs/vendorsExpediteTimeRemaining.js +120 -0
  18. package/funcs/vendorsExpediteTimeRemaining.js.map +1 -0
  19. package/funcs/vendorsListVendorInvoices.d.ts +24 -0
  20. package/funcs/vendorsListVendorInvoices.d.ts.map +1 -0
  21. package/funcs/vendorsListVendorInvoices.js +166 -0
  22. package/funcs/vendorsListVendorInvoices.js.map +1 -0
  23. package/funcs/vendorsListVendorJobTitles.d.ts +4 -1
  24. package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
  25. package/funcs/vendorsListVendorJobTitles.js +39 -6
  26. package/funcs/vendorsListVendorJobTitles.js.map +1 -1
  27. package/jsr.json +1 -1
  28. package/lib/config.d.ts +2 -2
  29. package/lib/config.js +2 -2
  30. package/mcp-server/mcp-server.js +1 -1
  31. package/mcp-server/server.d.ts.map +1 -1
  32. package/mcp-server/server.js +5 -1
  33. package/mcp-server/server.js.map +1 -1
  34. package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
  35. package/mcp-server/tools/organizationsListOrSearchFacilities.js.map +1 -1
  36. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +1 -1
  37. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js.map +1 -1
  38. package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts +8 -0
  39. package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts.map +1 -0
  40. package/mcp-server/tools/vendorsExpediteTimeRemaining.js +64 -0
  41. package/mcp-server/tools/vendorsExpediteTimeRemaining.js.map +1 -0
  42. package/mcp-server/tools/vendorsListVendorInvoices.d.ts +8 -0
  43. package/mcp-server/tools/vendorsListVendorInvoices.d.ts.map +1 -0
  44. package/mcp-server/tools/vendorsListVendorInvoices.js +68 -0
  45. package/mcp-server/tools/vendorsListVendorInvoices.js.map +1 -0
  46. package/mcp-server/tools/vendorsListVendorJobTitles.js +1 -1
  47. package/mcp-server/tools/vendorsListVendorJobTitles.js.map +1 -1
  48. package/models/components/expand.d.ts +3 -0
  49. package/models/components/expand.d.ts.map +1 -1
  50. package/models/components/expand.js +1 -0
  51. package/models/components/expand.js.map +1 -1
  52. package/models/components/index.d.ts +2 -0
  53. package/models/components/index.d.ts.map +1 -1
  54. package/models/components/index.js +2 -0
  55. package/models/components/index.js.map +1 -1
  56. package/models/components/invoice.d.ts +43 -0
  57. package/models/components/invoice.d.ts.map +1 -0
  58. package/models/components/invoice.js +91 -0
  59. package/models/components/invoice.js.map +1 -0
  60. package/models/components/invoiceitem.d.ts +40 -0
  61. package/models/components/invoiceitem.d.ts.map +1 -0
  62. package/models/components/invoiceitem.js +94 -0
  63. package/models/components/invoiceitem.js.map +1 -0
  64. package/models/operations/expeditetimeremaining.d.ts +60 -0
  65. package/models/operations/expeditetimeremaining.d.ts.map +1 -0
  66. package/models/operations/expeditetimeremaining.js +113 -0
  67. package/models/operations/expeditetimeremaining.js.map +1 -0
  68. package/models/operations/index.d.ts +2 -0
  69. package/models/operations/index.d.ts.map +1 -1
  70. package/models/operations/index.js +2 -0
  71. package/models/operations/index.js.map +1 -1
  72. package/models/operations/listorsearchfacilities.d.ts +25 -0
  73. package/models/operations/listorsearchfacilities.d.ts.map +1 -1
  74. package/models/operations/listorsearchfacilities.js +36 -1
  75. package/models/operations/listorsearchfacilities.js.map +1 -1
  76. package/models/operations/listorsearchsupportarticles.d.ts +25 -0
  77. package/models/operations/listorsearchsupportarticles.d.ts.map +1 -1
  78. package/models/operations/listorsearchsupportarticles.js +36 -1
  79. package/models/operations/listorsearchsupportarticles.js.map +1 -1
  80. package/models/operations/listvendorinvoices.d.ts +116 -0
  81. package/models/operations/listvendorinvoices.d.ts.map +1 -0
  82. package/models/operations/listvendorinvoices.js +155 -0
  83. package/models/operations/listvendorinvoices.js.map +1 -0
  84. package/models/operations/listvendorjobtitles.d.ts +25 -0
  85. package/models/operations/listvendorjobtitles.d.ts.map +1 -1
  86. package/models/operations/listvendorjobtitles.js +36 -1
  87. package/models/operations/listvendorjobtitles.js.map +1 -1
  88. package/package.json +1 -1
  89. package/react-query/index.d.ts +2 -0
  90. package/react-query/index.d.ts.map +1 -1
  91. package/react-query/index.js +2 -0
  92. package/react-query/index.js.map +1 -1
  93. package/react-query/organizationsListOrSearchFacilities.d.ts +54 -3
  94. package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  95. package/react-query/organizationsListOrSearchFacilities.js +89 -0
  96. package/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  97. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts +28 -3
  98. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -1
  99. package/react-query/supportArticlesListOrSearchSupportArticles.js +58 -0
  100. package/react-query/supportArticlesListOrSearchSupportArticles.js.map +1 -1
  101. package/react-query/vendorsExpediteTimeRemaining.d.ts +30 -0
  102. package/react-query/vendorsExpediteTimeRemaining.d.ts.map +1 -0
  103. package/react-query/vendorsExpediteTimeRemaining.js +96 -0
  104. package/react-query/vendorsExpediteTimeRemaining.js.map +1 -0
  105. package/react-query/vendorsListVendorInvoices.d.ts +96 -0
  106. package/react-query/vendorsListVendorInvoices.d.ts.map +1 -0
  107. package/react-query/vendorsListVendorInvoices.js +178 -0
  108. package/react-query/vendorsListVendorInvoices.js.map +1 -0
  109. package/react-query/vendorsListVendorJobTitles.d.ts +28 -3
  110. package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
  111. package/react-query/vendorsListVendorJobTitles.js +59 -0
  112. package/react-query/vendorsListVendorJobTitles.js.map +1 -1
  113. package/sdk/organizations.d.ts +4 -1
  114. package/sdk/organizations.d.ts.map +1 -1
  115. package/sdk/organizations.js +2 -1
  116. package/sdk/organizations.js.map +1 -1
  117. package/sdk/supportarticles.d.ts +4 -1
  118. package/sdk/supportarticles.d.ts.map +1 -1
  119. package/sdk/supportarticles.js +2 -1
  120. package/sdk/supportarticles.js.map +1 -1
  121. package/sdk/vendors.d.ts +24 -1
  122. package/sdk/vendors.d.ts.map +1 -1
  123. package/sdk/vendors.js +26 -1
  124. package/sdk/vendors.js.map +1 -1
  125. package/src/__tests__/supportarticles.test.ts +2 -1
  126. package/src/__tests__/vendors.test.ts +58 -1
  127. package/src/funcs/organizationsListOrSearchFacilities.ts +116 -42
  128. package/src/funcs/supportArticlesGetSupportArticle.ts +1 -1
  129. package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +100 -31
  130. package/src/funcs/vendorsExpediteTimeRemaining.ts +171 -0
  131. package/src/funcs/vendorsListVendorInvoices.ts +255 -0
  132. package/src/funcs/vendorsListVendorJobTitles.ts +101 -33
  133. package/src/lib/config.ts +2 -2
  134. package/src/mcp-server/mcp-server.ts +1 -1
  135. package/src/mcp-server/server.ts +5 -1
  136. package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
  137. package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +1 -1
  138. package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +37 -0
  139. package/src/mcp-server/tools/vendorsListVendorInvoices.ts +41 -0
  140. package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +1 -1
  141. package/src/models/components/expand.ts +1 -0
  142. package/src/models/components/index.ts +2 -0
  143. package/src/models/components/invoice.ts +99 -0
  144. package/src/models/components/invoiceitem.ts +98 -0
  145. package/src/models/operations/expeditetimeremaining.ts +152 -0
  146. package/src/models/operations/index.ts +2 -0
  147. package/src/models/operations/listorsearchfacilities.ts +72 -0
  148. package/src/models/operations/listorsearchsupportarticles.ts +75 -0
  149. package/src/models/operations/listvendorinvoices.ts +252 -0
  150. package/src/models/operations/listvendorjobtitles.ts +68 -0
  151. package/src/react-query/index.ts +2 -0
  152. package/src/react-query/organizationsListOrSearchFacilities.ts +179 -1
  153. package/src/react-query/supportArticlesListOrSearchSupportArticles.ts +149 -1
  154. package/src/react-query/vendorsExpediteTimeRemaining.ts +165 -0
  155. package/src/react-query/vendorsListVendorInvoices.ts +364 -0
  156. package/src/react-query/vendorsListVendorJobTitles.ts +149 -1
  157. package/src/sdk/organizations.ts +5 -2
  158. package/src/sdk/supportarticles.ts +8 -2
  159. package/src/sdk/vendors.ts +47 -2
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { vendorsExpediteTimeRemaining } from "../../funcs/vendorsExpediteTimeRemaining.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.ExpediteTimeRemainingRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$vendorsExpediteTimeRemaining: ToolDefinition<typeof args> = {
14
+ name: "vendors_expedite-time-remaining",
15
+ description: `Expedite time remaining
16
+
17
+ For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await vendorsExpediteTimeRemaining(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { vendorsListVendorInvoices } from "../../funcs/vendorsListVendorInvoices.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.ListVendorInvoicesRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$vendorsListVendorInvoices: ToolDefinition<typeof args> = {
14
+ name: "vendors_list-vendor-invoices",
15
+ description: `List vendor invoices
16
+
17
+ List invoices for Vendors
18
+
19
+ Available \`expand\` scopes are:
20
+
21
+ invoice.line_items`,
22
+ args,
23
+ tool: async (client, args, ctx) => {
24
+ const [result, apiCall] = await vendorsListVendorInvoices(
25
+ client,
26
+ args.request,
27
+ { fetchOptions: { signal: ctx.signal } },
28
+ ).$inspect();
29
+
30
+ if (!result.ok) {
31
+ return {
32
+ content: [{ type: "text", text: result.error.message }],
33
+ isError: true,
34
+ };
35
+ }
36
+
37
+ const value = result.value.result;
38
+
39
+ return formatResult(value, apiCall);
40
+ },
41
+ };
@@ -30,7 +30,7 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
30
30
  };
31
31
  }
32
32
 
33
- const value = result.value;
33
+ const value = result.value.result;
34
34
 
35
35
  return formatResult(value, apiCall);
36
36
  },
@@ -30,6 +30,7 @@ export const Expand = {
30
30
  SupportArticlePublished: "support_article.published",
31
31
  SupportArticleNotes: "support_article.notes",
32
32
  SupportArticleSupportCategory: "support_article.support_category",
33
+ InvoiceLineItems: "invoice.line_items",
33
34
  } as const;
34
35
  /**
35
36
  * An expansion scope that is valid for the object being requested.
@@ -12,6 +12,8 @@ export * from "./expand.js";
12
12
  export * from "./facility.js";
13
13
  export * from "./facilitysummary.js";
14
14
  export * from "./imageset.js";
15
+ export * from "./invoice.js";
16
+ export * from "./invoiceitem.js";
15
17
  export * from "./loginemailandpassword.js";
16
18
  export * from "./loginrequirementsfromemail.js";
17
19
  export * from "./mfarequiredresponse.js";
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ InvoiceItem,
12
+ InvoiceItem$inboundSchema,
13
+ InvoiceItem$Outbound,
14
+ InvoiceItem$outboundSchema,
15
+ } from "./invoiceitem.js";
16
+
17
+ /**
18
+ * A simplified representation of an Invoice
19
+ */
20
+ export type Invoice = {
21
+ id: number;
22
+ invoiceNumber?: string | null | undefined;
23
+ amount?: number | null | undefined;
24
+ status?: string | null | undefined;
25
+ financialStatus?: string | null | undefined;
26
+ items?: Array<InvoiceItem> | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
31
+ z.object({
32
+ id: z.number().int(),
33
+ invoice_number: z.nullable(z.string()).optional(),
34
+ amount: z.nullable(z.number().int()).optional(),
35
+ status: z.nullable(z.string()).optional(),
36
+ financial_status: z.nullable(z.string()).optional(),
37
+ items: z.array(InvoiceItem$inboundSchema).optional(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ "invoice_number": "invoiceNumber",
41
+ "financial_status": "financialStatus",
42
+ });
43
+ });
44
+
45
+ /** @internal */
46
+ export type Invoice$Outbound = {
47
+ id: number;
48
+ invoice_number?: string | null | undefined;
49
+ amount?: number | null | undefined;
50
+ status?: string | null | undefined;
51
+ financial_status?: string | null | undefined;
52
+ items?: Array<InvoiceItem$Outbound> | undefined;
53
+ };
54
+
55
+ /** @internal */
56
+ export const Invoice$outboundSchema: z.ZodType<
57
+ Invoice$Outbound,
58
+ z.ZodTypeDef,
59
+ Invoice
60
+ > = z.object({
61
+ id: z.number().int(),
62
+ invoiceNumber: z.nullable(z.string()).optional(),
63
+ amount: z.nullable(z.number().int()).optional(),
64
+ status: z.nullable(z.string()).optional(),
65
+ financialStatus: z.nullable(z.string()).optional(),
66
+ items: z.array(InvoiceItem$outboundSchema).optional(),
67
+ }).transform((v) => {
68
+ return remap$(v, {
69
+ invoiceNumber: "invoice_number",
70
+ financialStatus: "financial_status",
71
+ });
72
+ });
73
+
74
+ /**
75
+ * @internal
76
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
77
+ */
78
+ export namespace Invoice$ {
79
+ /** @deprecated use `Invoice$inboundSchema` instead. */
80
+ export const inboundSchema = Invoice$inboundSchema;
81
+ /** @deprecated use `Invoice$outboundSchema` instead. */
82
+ export const outboundSchema = Invoice$outboundSchema;
83
+ /** @deprecated use `Invoice$Outbound` instead. */
84
+ export type Outbound = Invoice$Outbound;
85
+ }
86
+
87
+ export function invoiceToJSON(invoice: Invoice): string {
88
+ return JSON.stringify(Invoice$outboundSchema.parse(invoice));
89
+ }
90
+
91
+ export function invoiceFromJSON(
92
+ jsonString: string,
93
+ ): SafeParseResult<Invoice, SDKValidationError> {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) => Invoice$inboundSchema.parse(JSON.parse(x)),
97
+ `Failed to parse 'Invoice' from JSON`,
98
+ );
99
+ }
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Reduced list of attributes of the Invoice line item record
13
+ */
14
+ export type InvoiceItem = {
15
+ itemId?: number | undefined;
16
+ dateStarts?: string | null | undefined;
17
+ dateEnds?: string | null | undefined;
18
+ isSubscription?: boolean | null | undefined;
19
+ productTitle?: string | null | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const InvoiceItem$inboundSchema: z.ZodType<
24
+ InvoiceItem,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ item_id: z.number().int().optional(),
29
+ date_starts: z.nullable(z.string()).optional(),
30
+ date_ends: z.nullable(z.string()).optional(),
31
+ is_subscription: z.nullable(z.boolean()).optional(),
32
+ product_title: z.nullable(z.string()).optional(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ "item_id": "itemId",
36
+ "date_starts": "dateStarts",
37
+ "date_ends": "dateEnds",
38
+ "is_subscription": "isSubscription",
39
+ "product_title": "productTitle",
40
+ });
41
+ });
42
+
43
+ /** @internal */
44
+ export type InvoiceItem$Outbound = {
45
+ item_id?: number | undefined;
46
+ date_starts?: string | null | undefined;
47
+ date_ends?: string | null | undefined;
48
+ is_subscription?: boolean | null | undefined;
49
+ product_title?: string | null | undefined;
50
+ };
51
+
52
+ /** @internal */
53
+ export const InvoiceItem$outboundSchema: z.ZodType<
54
+ InvoiceItem$Outbound,
55
+ z.ZodTypeDef,
56
+ InvoiceItem
57
+ > = z.object({
58
+ itemId: z.number().int().optional(),
59
+ dateStarts: z.nullable(z.string()).optional(),
60
+ dateEnds: z.nullable(z.string()).optional(),
61
+ isSubscription: z.nullable(z.boolean()).optional(),
62
+ productTitle: z.nullable(z.string()).optional(),
63
+ }).transform((v) => {
64
+ return remap$(v, {
65
+ itemId: "item_id",
66
+ dateStarts: "date_starts",
67
+ dateEnds: "date_ends",
68
+ isSubscription: "is_subscription",
69
+ productTitle: "product_title",
70
+ });
71
+ });
72
+
73
+ /**
74
+ * @internal
75
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
+ */
77
+ export namespace InvoiceItem$ {
78
+ /** @deprecated use `InvoiceItem$inboundSchema` instead. */
79
+ export const inboundSchema = InvoiceItem$inboundSchema;
80
+ /** @deprecated use `InvoiceItem$outboundSchema` instead. */
81
+ export const outboundSchema = InvoiceItem$outboundSchema;
82
+ /** @deprecated use `InvoiceItem$Outbound` instead. */
83
+ export type Outbound = InvoiceItem$Outbound;
84
+ }
85
+
86
+ export function invoiceItemToJSON(invoiceItem: InvoiceItem): string {
87
+ return JSON.stringify(InvoiceItem$outboundSchema.parse(invoiceItem));
88
+ }
89
+
90
+ export function invoiceItemFromJSON(
91
+ jsonString: string,
92
+ ): SafeParseResult<InvoiceItem, SDKValidationError> {
93
+ return safeParse(
94
+ jsonString,
95
+ (x) => InvoiceItem$inboundSchema.parse(JSON.parse(x)),
96
+ `Failed to parse 'InvoiceItem' from JSON`,
97
+ );
98
+ }
@@ -0,0 +1,152 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type ExpediteTimeRemainingRequest = {
12
+ /**
13
+ * Either the ID of the vendor rep or the keyword "me" to represent the current vendor.
14
+ */
15
+ vendorIdOrMe: string;
16
+ };
17
+
18
+ /**
19
+ * The request was successful, and the server has returned the requested resource in the response body.
20
+ */
21
+ export type ExpediteTimeRemainingResponseBody = {
22
+ secondsRemaining: number;
23
+ };
24
+
25
+ /** @internal */
26
+ export const ExpediteTimeRemainingRequest$inboundSchema: z.ZodType<
27
+ ExpediteTimeRemainingRequest,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ vendor_id_or_me: z.string(),
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ "vendor_id_or_me": "vendorIdOrMe",
35
+ });
36
+ });
37
+
38
+ /** @internal */
39
+ export type ExpediteTimeRemainingRequest$Outbound = {
40
+ vendor_id_or_me: string;
41
+ };
42
+
43
+ /** @internal */
44
+ export const ExpediteTimeRemainingRequest$outboundSchema: z.ZodType<
45
+ ExpediteTimeRemainingRequest$Outbound,
46
+ z.ZodTypeDef,
47
+ ExpediteTimeRemainingRequest
48
+ > = z.object({
49
+ vendorIdOrMe: z.string(),
50
+ }).transform((v) => {
51
+ return remap$(v, {
52
+ vendorIdOrMe: "vendor_id_or_me",
53
+ });
54
+ });
55
+
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ export namespace ExpediteTimeRemainingRequest$ {
61
+ /** @deprecated use `ExpediteTimeRemainingRequest$inboundSchema` instead. */
62
+ export const inboundSchema = ExpediteTimeRemainingRequest$inboundSchema;
63
+ /** @deprecated use `ExpediteTimeRemainingRequest$outboundSchema` instead. */
64
+ export const outboundSchema = ExpediteTimeRemainingRequest$outboundSchema;
65
+ /** @deprecated use `ExpediteTimeRemainingRequest$Outbound` instead. */
66
+ export type Outbound = ExpediteTimeRemainingRequest$Outbound;
67
+ }
68
+
69
+ export function expediteTimeRemainingRequestToJSON(
70
+ expediteTimeRemainingRequest: ExpediteTimeRemainingRequest,
71
+ ): string {
72
+ return JSON.stringify(
73
+ ExpediteTimeRemainingRequest$outboundSchema.parse(
74
+ expediteTimeRemainingRequest,
75
+ ),
76
+ );
77
+ }
78
+
79
+ export function expediteTimeRemainingRequestFromJSON(
80
+ jsonString: string,
81
+ ): SafeParseResult<ExpediteTimeRemainingRequest, SDKValidationError> {
82
+ return safeParse(
83
+ jsonString,
84
+ (x) => ExpediteTimeRemainingRequest$inboundSchema.parse(JSON.parse(x)),
85
+ `Failed to parse 'ExpediteTimeRemainingRequest' from JSON`,
86
+ );
87
+ }
88
+
89
+ /** @internal */
90
+ export const ExpediteTimeRemainingResponseBody$inboundSchema: z.ZodType<
91
+ ExpediteTimeRemainingResponseBody,
92
+ z.ZodTypeDef,
93
+ unknown
94
+ > = z.object({
95
+ seconds_remaining: z.number().int(),
96
+ }).transform((v) => {
97
+ return remap$(v, {
98
+ "seconds_remaining": "secondsRemaining",
99
+ });
100
+ });
101
+
102
+ /** @internal */
103
+ export type ExpediteTimeRemainingResponseBody$Outbound = {
104
+ seconds_remaining: number;
105
+ };
106
+
107
+ /** @internal */
108
+ export const ExpediteTimeRemainingResponseBody$outboundSchema: z.ZodType<
109
+ ExpediteTimeRemainingResponseBody$Outbound,
110
+ z.ZodTypeDef,
111
+ ExpediteTimeRemainingResponseBody
112
+ > = z.object({
113
+ secondsRemaining: z.number().int(),
114
+ }).transform((v) => {
115
+ return remap$(v, {
116
+ secondsRemaining: "seconds_remaining",
117
+ });
118
+ });
119
+
120
+ /**
121
+ * @internal
122
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
123
+ */
124
+ export namespace ExpediteTimeRemainingResponseBody$ {
125
+ /** @deprecated use `ExpediteTimeRemainingResponseBody$inboundSchema` instead. */
126
+ export const inboundSchema = ExpediteTimeRemainingResponseBody$inboundSchema;
127
+ /** @deprecated use `ExpediteTimeRemainingResponseBody$outboundSchema` instead. */
128
+ export const outboundSchema =
129
+ ExpediteTimeRemainingResponseBody$outboundSchema;
130
+ /** @deprecated use `ExpediteTimeRemainingResponseBody$Outbound` instead. */
131
+ export type Outbound = ExpediteTimeRemainingResponseBody$Outbound;
132
+ }
133
+
134
+ export function expediteTimeRemainingResponseBodyToJSON(
135
+ expediteTimeRemainingResponseBody: ExpediteTimeRemainingResponseBody,
136
+ ): string {
137
+ return JSON.stringify(
138
+ ExpediteTimeRemainingResponseBody$outboundSchema.parse(
139
+ expediteTimeRemainingResponseBody,
140
+ ),
141
+ );
142
+ }
143
+
144
+ export function expediteTimeRemainingResponseBodyFromJSON(
145
+ jsonString: string,
146
+ ): SafeParseResult<ExpediteTimeRemainingResponseBody, SDKValidationError> {
147
+ return safeParse(
148
+ jsonString,
149
+ (x) => ExpediteTimeRemainingResponseBody$inboundSchema.parse(JSON.parse(x)),
150
+ `Failed to parse 'ExpediteTimeRemainingResponseBody' from JSON`,
151
+ );
152
+ }
@@ -3,12 +3,14 @@
3
3
  */
4
4
 
5
5
  export * from "./createvendorregistration.js";
6
+ export * from "./expeditetimeremaining.js";
6
7
  export * from "./getfacility.js";
7
8
  export * from "./getsupportarticle.js";
8
9
  export * from "./getuserbyid.js";
9
10
  export * from "./listorsearchfacilities.js";
10
11
  export * from "./listorsearchsupportarticles.js";
11
12
  export * from "./listvendorcredentials.js";
13
+ export * from "./listvendorinvoices.js";
12
14
  export * from "./listvendorjobtitles.js";
13
15
  export * from "./logsuserintothesystem.js";
14
16
  export * from "./magiclink.js";
@@ -63,6 +63,10 @@ export type ListOrSearchFacilitiesListOrSearchFacilitiesOk = {
63
63
  items: Array<components.Facility>;
64
64
  };
65
65
 
66
+ export type ListOrSearchFacilitiesResponse = {
67
+ result: ListOrSearchFacilitiesListOrSearchFacilitiesOk;
68
+ };
69
+
66
70
  /** @internal */
67
71
  export const ListOrSearchFacilitiesRequest$inboundSchema: z.ZodType<
68
72
  ListOrSearchFacilitiesRequest,
@@ -229,3 +233,71 @@ export function listOrSearchFacilitiesListOrSearchFacilitiesOkFromJSON(
229
233
  `Failed to parse 'ListOrSearchFacilitiesListOrSearchFacilitiesOk' from JSON`,
230
234
  );
231
235
  }
236
+
237
+ /** @internal */
238
+ export const ListOrSearchFacilitiesResponse$inboundSchema: z.ZodType<
239
+ ListOrSearchFacilitiesResponse,
240
+ z.ZodTypeDef,
241
+ unknown
242
+ > = z.object({
243
+ Result: z.lazy(() =>
244
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema
245
+ ),
246
+ }).transform((v) => {
247
+ return remap$(v, {
248
+ "Result": "result",
249
+ });
250
+ });
251
+
252
+ /** @internal */
253
+ export type ListOrSearchFacilitiesResponse$Outbound = {
254
+ Result: ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound;
255
+ };
256
+
257
+ /** @internal */
258
+ export const ListOrSearchFacilitiesResponse$outboundSchema: z.ZodType<
259
+ ListOrSearchFacilitiesResponse$Outbound,
260
+ z.ZodTypeDef,
261
+ ListOrSearchFacilitiesResponse
262
+ > = z.object({
263
+ result: z.lazy(() =>
264
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema
265
+ ),
266
+ }).transform((v) => {
267
+ return remap$(v, {
268
+ result: "Result",
269
+ });
270
+ });
271
+
272
+ /**
273
+ * @internal
274
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
275
+ */
276
+ export namespace ListOrSearchFacilitiesResponse$ {
277
+ /** @deprecated use `ListOrSearchFacilitiesResponse$inboundSchema` instead. */
278
+ export const inboundSchema = ListOrSearchFacilitiesResponse$inboundSchema;
279
+ /** @deprecated use `ListOrSearchFacilitiesResponse$outboundSchema` instead. */
280
+ export const outboundSchema = ListOrSearchFacilitiesResponse$outboundSchema;
281
+ /** @deprecated use `ListOrSearchFacilitiesResponse$Outbound` instead. */
282
+ export type Outbound = ListOrSearchFacilitiesResponse$Outbound;
283
+ }
284
+
285
+ export function listOrSearchFacilitiesResponseToJSON(
286
+ listOrSearchFacilitiesResponse: ListOrSearchFacilitiesResponse,
287
+ ): string {
288
+ return JSON.stringify(
289
+ ListOrSearchFacilitiesResponse$outboundSchema.parse(
290
+ listOrSearchFacilitiesResponse,
291
+ ),
292
+ );
293
+ }
294
+
295
+ export function listOrSearchFacilitiesResponseFromJSON(
296
+ jsonString: string,
297
+ ): SafeParseResult<ListOrSearchFacilitiesResponse, SDKValidationError> {
298
+ return safeParse(
299
+ jsonString,
300
+ (x) => ListOrSearchFacilitiesResponse$inboundSchema.parse(JSON.parse(x)),
301
+ `Failed to parse 'ListOrSearchFacilitiesResponse' from JSON`,
302
+ );
303
+ }
@@ -39,6 +39,10 @@ export type ListOrSearchSupportArticlesListOrSearchArticlesOk = {
39
39
  items: Array<components.SupportArticle>;
40
40
  };
41
41
 
42
+ export type ListOrSearchSupportArticlesResponse = {
43
+ result: ListOrSearchSupportArticlesListOrSearchArticlesOk;
44
+ };
45
+
42
46
  /** @internal */
43
47
  export const ListOrSearchSupportArticlesRequest$inboundSchema: z.ZodType<
44
48
  ListOrSearchSupportArticlesRequest,
@@ -184,3 +188,74 @@ export function listOrSearchSupportArticlesListOrSearchArticlesOkFromJSON(
184
188
  `Failed to parse 'ListOrSearchSupportArticlesListOrSearchArticlesOk' from JSON`,
185
189
  );
186
190
  }
191
+
192
+ /** @internal */
193
+ export const ListOrSearchSupportArticlesResponse$inboundSchema: z.ZodType<
194
+ ListOrSearchSupportArticlesResponse,
195
+ z.ZodTypeDef,
196
+ unknown
197
+ > = z.object({
198
+ Result: z.lazy(() =>
199
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema
200
+ ),
201
+ }).transform((v) => {
202
+ return remap$(v, {
203
+ "Result": "result",
204
+ });
205
+ });
206
+
207
+ /** @internal */
208
+ export type ListOrSearchSupportArticlesResponse$Outbound = {
209
+ Result: ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound;
210
+ };
211
+
212
+ /** @internal */
213
+ export const ListOrSearchSupportArticlesResponse$outboundSchema: z.ZodType<
214
+ ListOrSearchSupportArticlesResponse$Outbound,
215
+ z.ZodTypeDef,
216
+ ListOrSearchSupportArticlesResponse
217
+ > = z.object({
218
+ result: z.lazy(() =>
219
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema
220
+ ),
221
+ }).transform((v) => {
222
+ return remap$(v, {
223
+ result: "Result",
224
+ });
225
+ });
226
+
227
+ /**
228
+ * @internal
229
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
230
+ */
231
+ export namespace ListOrSearchSupportArticlesResponse$ {
232
+ /** @deprecated use `ListOrSearchSupportArticlesResponse$inboundSchema` instead. */
233
+ export const inboundSchema =
234
+ ListOrSearchSupportArticlesResponse$inboundSchema;
235
+ /** @deprecated use `ListOrSearchSupportArticlesResponse$outboundSchema` instead. */
236
+ export const outboundSchema =
237
+ ListOrSearchSupportArticlesResponse$outboundSchema;
238
+ /** @deprecated use `ListOrSearchSupportArticlesResponse$Outbound` instead. */
239
+ export type Outbound = ListOrSearchSupportArticlesResponse$Outbound;
240
+ }
241
+
242
+ export function listOrSearchSupportArticlesResponseToJSON(
243
+ listOrSearchSupportArticlesResponse: ListOrSearchSupportArticlesResponse,
244
+ ): string {
245
+ return JSON.stringify(
246
+ ListOrSearchSupportArticlesResponse$outboundSchema.parse(
247
+ listOrSearchSupportArticlesResponse,
248
+ ),
249
+ );
250
+ }
251
+
252
+ export function listOrSearchSupportArticlesResponseFromJSON(
253
+ jsonString: string,
254
+ ): SafeParseResult<ListOrSearchSupportArticlesResponse, SDKValidationError> {
255
+ return safeParse(
256
+ jsonString,
257
+ (x) =>
258
+ ListOrSearchSupportArticlesResponse$inboundSchema.parse(JSON.parse(x)),
259
+ `Failed to parse 'ListOrSearchSupportArticlesResponse' from JSON`,
260
+ );
261
+ }