@greensecurity/javascript-sdk 0.18.0 → 0.19.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 (151) hide show
  1. package/README.md +6 -0
  2. package/bin/mcp-server.js +522 -58
  3. package/bin/mcp-server.js.map +38 -30
  4. package/funcs/supportArticlesListOrSearchSupportArticles.js +2 -0
  5. package/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -1
  6. package/funcs/vendorsGetVendorInvoiceDetails.d.ts +23 -0
  7. package/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -0
  8. package/funcs/vendorsGetVendorInvoiceDetails.js +130 -0
  9. package/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -0
  10. package/funcs/vendorsListVendorFacilityStatuses.d.ts +20 -0
  11. package/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
  12. package/funcs/vendorsListVendorFacilityStatuses.js +154 -0
  13. package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -0
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +3 -3
  16. package/lib/config.js +3 -3
  17. package/lib/sdks.d.ts.map +1 -1
  18. package/lib/sdks.js +2 -8
  19. package/lib/sdks.js.map +1 -1
  20. package/mcp-server/mcp-server.js +1 -1
  21. package/mcp-server/server.d.ts.map +1 -1
  22. package/mcp-server/server.js +5 -1
  23. package/mcp-server/server.js.map +1 -1
  24. package/mcp-server/tools/organizationsGetFacility.js +1 -1
  25. package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
  26. package/mcp-server/tools/supportArticlesGetSupportArticle.js +1 -1
  27. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +1 -1
  28. package/mcp-server/tools/usersGetCurrentUser.js +1 -1
  29. package/mcp-server/tools/usersGetUserById.js +1 -1
  30. package/mcp-server/tools/usersLogsUserIntoTheSystem.js +1 -1
  31. package/mcp-server/tools/usersMagiclink.js +1 -1
  32. package/mcp-server/tools/usersPassword.js +1 -1
  33. package/mcp-server/tools/usersPasswordResetRequest.js +1 -1
  34. package/mcp-server/tools/vendorsCreateVendorRegistration.js +1 -1
  35. package/mcp-server/tools/vendorsExpediteTimeRemaining.js +1 -1
  36. package/mcp-server/tools/vendorsGetVendorInvoiceDetails.d.ts +8 -0
  37. package/mcp-server/tools/vendorsGetVendorInvoiceDetails.d.ts.map +1 -0
  38. package/mcp-server/tools/vendorsGetVendorInvoiceDetails.js +69 -0
  39. package/mcp-server/tools/vendorsGetVendorInvoiceDetails.js.map +1 -0
  40. package/mcp-server/tools/vendorsListVendorCredentials.js +1 -1
  41. package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts +8 -0
  42. package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
  43. package/mcp-server/tools/vendorsListVendorFacilityStatuses.js +64 -0
  44. package/mcp-server/tools/vendorsListVendorFacilityStatuses.js.map +1 -0
  45. package/mcp-server/tools/vendorsListVendorInvoices.js +1 -1
  46. package/mcp-server/tools/vendorsListVendorJobTitles.js +1 -1
  47. package/mcp-server/tools.d.ts.map +1 -1
  48. package/mcp-server/tools.js +3 -0
  49. package/mcp-server/tools.js.map +1 -1
  50. package/models/components/expand.d.ts +3 -0
  51. package/models/components/expand.d.ts.map +1 -1
  52. package/models/components/expand.js +1 -0
  53. package/models/components/expand.js.map +1 -1
  54. package/models/components/index.d.ts +2 -0
  55. package/models/components/index.d.ts.map +1 -1
  56. package/models/components/index.js +2 -0
  57. package/models/components/index.js.map +1 -1
  58. package/models/components/invoice.d.ts +13 -2
  59. package/models/components/invoice.d.ts.map +1 -1
  60. package/models/components/invoice.js +19 -2
  61. package/models/components/invoice.js.map +1 -1
  62. package/models/components/invoiceitem.d.ts +8 -0
  63. package/models/components/invoiceitem.d.ts.map +1 -1
  64. package/models/components/invoiceitem.js +12 -0
  65. package/models/components/invoiceitem.js.map +1 -1
  66. package/models/components/invoicetransaction.d.ts +44 -0
  67. package/models/components/invoicetransaction.d.ts.map +1 -0
  68. package/models/components/invoicetransaction.js +96 -0
  69. package/models/components/invoicetransaction.js.map +1 -0
  70. package/models/components/vendorfacilitystatusview.d.ts +42 -0
  71. package/models/components/vendorfacilitystatusview.d.ts.map +1 -0
  72. package/models/components/vendorfacilitystatusview.js +98 -0
  73. package/models/components/vendorfacilitystatusview.js.map +1 -0
  74. package/models/operations/getvendorinvoicedetails.d.ts +38 -0
  75. package/models/operations/getvendorinvoicedetails.d.ts.map +1 -0
  76. package/models/operations/getvendorinvoicedetails.js +72 -0
  77. package/models/operations/getvendorinvoicedetails.js.map +1 -0
  78. package/models/operations/index.d.ts +2 -0
  79. package/models/operations/index.d.ts.map +1 -1
  80. package/models/operations/index.js +2 -0
  81. package/models/operations/index.js.map +1 -1
  82. package/models/operations/listorsearchsupportarticles.d.ts +10 -0
  83. package/models/operations/listorsearchsupportarticles.d.ts.map +1 -1
  84. package/models/operations/listorsearchsupportarticles.js +4 -0
  85. package/models/operations/listorsearchsupportarticles.js.map +1 -1
  86. package/models/operations/listvendorfacilitystatuses.d.ts +106 -0
  87. package/models/operations/listvendorfacilitystatuses.d.ts.map +1 -0
  88. package/models/operations/listvendorfacilitystatuses.js +149 -0
  89. package/models/operations/listvendorfacilitystatuses.js.map +1 -0
  90. package/package.json +1 -1
  91. package/react-query/index.d.ts +2 -0
  92. package/react-query/index.d.ts.map +1 -1
  93. package/react-query/index.js +2 -0
  94. package/react-query/index.js.map +1 -1
  95. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts +6 -0
  96. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -1
  97. package/react-query/supportArticlesListOrSearchSupportArticles.js +4 -0
  98. package/react-query/supportArticlesListOrSearchSupportArticles.js.map +1 -1
  99. package/react-query/vendorsGetVendorInvoiceDetails.d.ts +53 -0
  100. package/react-query/vendorsGetVendorInvoiceDetails.d.ts.map +1 -0
  101. package/react-query/vendorsGetVendorInvoiceDetails.js +109 -0
  102. package/react-query/vendorsGetVendorInvoiceDetails.js.map +1 -0
  103. package/react-query/vendorsListVendorFacilityStatuses.d.ts +75 -0
  104. package/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
  105. package/react-query/vendorsListVendorFacilityStatuses.js +159 -0
  106. package/react-query/vendorsListVendorFacilityStatuses.js.map +1 -0
  107. package/sdk/vendors.d.ts +22 -0
  108. package/sdk/vendors.d.ts.map +1 -1
  109. package/sdk/vendors.js +25 -0
  110. package/sdk/vendors.js.map +1 -1
  111. package/src/__tests__/vendors.test.ts +58 -0
  112. package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +2 -0
  113. package/src/funcs/vendorsGetVendorInvoiceDetails.ts +180 -0
  114. package/src/funcs/vendorsListVendorFacilityStatuses.ts +240 -0
  115. package/src/lib/config.ts +3 -3
  116. package/src/lib/sdks.ts +2 -7
  117. package/src/mcp-server/mcp-server.ts +1 -1
  118. package/src/mcp-server/server.ts +5 -1
  119. package/src/mcp-server/tools/organizationsGetFacility.ts +1 -1
  120. package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
  121. package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +1 -1
  122. package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +1 -1
  123. package/src/mcp-server/tools/usersGetCurrentUser.ts +1 -1
  124. package/src/mcp-server/tools/usersGetUserById.ts +1 -1
  125. package/src/mcp-server/tools/usersLogsUserIntoTheSystem.ts +1 -1
  126. package/src/mcp-server/tools/usersMagiclink.ts +1 -1
  127. package/src/mcp-server/tools/usersPassword.ts +1 -1
  128. package/src/mcp-server/tools/usersPasswordResetRequest.ts +1 -1
  129. package/src/mcp-server/tools/vendorsCreateVendorRegistration.ts +1 -1
  130. package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +1 -1
  131. package/src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts +43 -0
  132. package/src/mcp-server/tools/vendorsListVendorCredentials.ts +1 -1
  133. package/src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts +39 -0
  134. package/src/mcp-server/tools/vendorsListVendorInvoices.ts +1 -1
  135. package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +1 -1
  136. package/src/mcp-server/tools.ts +4 -0
  137. package/src/models/components/expand.ts +1 -0
  138. package/src/models/components/index.ts +2 -0
  139. package/src/models/components/invoice.ts +36 -4
  140. package/src/models/components/invoiceitem.ts +20 -0
  141. package/src/models/components/invoicetransaction.ts +108 -0
  142. package/src/models/components/vendorfacilitystatusview.ts +108 -0
  143. package/src/models/operations/getvendorinvoicedetails.ts +79 -0
  144. package/src/models/operations/index.ts +2 -0
  145. package/src/models/operations/listorsearchsupportarticles.ts +14 -0
  146. package/src/models/operations/listvendorfacilitystatuses.ts +247 -0
  147. package/src/react-query/index.ts +2 -0
  148. package/src/react-query/supportArticlesListOrSearchSupportArticles.ts +10 -0
  149. package/src/react-query/vendorsGetVendorInvoiceDetails.ts +187 -0
  150. package/src/react-query/vendorsListVendorFacilityStatuses.ts +342 -0
  151. package/src/sdk/vendors.ts +47 -0
@@ -17,6 +17,10 @@ export type InvoiceItem = {
17
17
  dateEnds?: string | null | undefined;
18
18
  isSubscription?: boolean | null | undefined;
19
19
  productTitle?: string | null | undefined;
20
+ itemTitle?: string | null | undefined;
21
+ quantity?: number | null | undefined;
22
+ unitPrice?: number | null | undefined;
23
+ subtotal?: number | null | undefined;
20
24
  };
21
25
 
22
26
  /** @internal */
@@ -30,6 +34,10 @@ export const InvoiceItem$inboundSchema: z.ZodType<
30
34
  date_ends: z.nullable(z.string()).optional(),
31
35
  is_subscription: z.nullable(z.boolean()).optional(),
32
36
  product_title: z.nullable(z.string()).optional(),
37
+ item_title: z.nullable(z.string()).optional(),
38
+ quantity: z.nullable(z.number()).optional(),
39
+ unit_price: z.nullable(z.number().int()).optional(),
40
+ subtotal: z.nullable(z.number().int()).optional(),
33
41
  }).transform((v) => {
34
42
  return remap$(v, {
35
43
  "item_id": "itemId",
@@ -37,6 +45,8 @@ export const InvoiceItem$inboundSchema: z.ZodType<
37
45
  "date_ends": "dateEnds",
38
46
  "is_subscription": "isSubscription",
39
47
  "product_title": "productTitle",
48
+ "item_title": "itemTitle",
49
+ "unit_price": "unitPrice",
40
50
  });
41
51
  });
42
52
 
@@ -47,6 +57,10 @@ export type InvoiceItem$Outbound = {
47
57
  date_ends?: string | null | undefined;
48
58
  is_subscription?: boolean | null | undefined;
49
59
  product_title?: string | null | undefined;
60
+ item_title?: string | null | undefined;
61
+ quantity?: number | null | undefined;
62
+ unit_price?: number | null | undefined;
63
+ subtotal?: number | null | undefined;
50
64
  };
51
65
 
52
66
  /** @internal */
@@ -60,6 +74,10 @@ export const InvoiceItem$outboundSchema: z.ZodType<
60
74
  dateEnds: z.nullable(z.string()).optional(),
61
75
  isSubscription: z.nullable(z.boolean()).optional(),
62
76
  productTitle: z.nullable(z.string()).optional(),
77
+ itemTitle: z.nullable(z.string()).optional(),
78
+ quantity: z.nullable(z.number()).optional(),
79
+ unitPrice: z.nullable(z.number().int()).optional(),
80
+ subtotal: z.nullable(z.number().int()).optional(),
63
81
  }).transform((v) => {
64
82
  return remap$(v, {
65
83
  itemId: "item_id",
@@ -67,6 +85,8 @@ export const InvoiceItem$outboundSchema: z.ZodType<
67
85
  dateEnds: "date_ends",
68
86
  isSubscription: "is_subscription",
69
87
  productTitle: "product_title",
88
+ itemTitle: "item_title",
89
+ unitPrice: "unit_price",
70
90
  });
71
91
  });
72
92
 
@@ -0,0 +1,108 @@
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 transaction record
13
+ */
14
+ export type InvoiceTransaction = {
15
+ dateProcessed?: string | null | undefined;
16
+ payee?: string | null | undefined;
17
+ amount?: number | null | undefined;
18
+ creditId?: number | null | undefined;
19
+ transactionId?: string | null | undefined;
20
+ success?: boolean | null | undefined;
21
+ cardLast4?: string | null | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const InvoiceTransaction$inboundSchema: z.ZodType<
26
+ InvoiceTransaction,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ date_processed: z.nullable(z.string()).optional(),
31
+ payee: z.nullable(z.string()).optional(),
32
+ amount: z.nullable(z.number().int()).optional(),
33
+ credit_id: z.nullable(z.number().int()).optional(),
34
+ transaction_id: z.nullable(z.string()).optional(),
35
+ success: z.nullable(z.boolean()).optional(),
36
+ card_last4: z.nullable(z.string()).optional(),
37
+ }).transform((v) => {
38
+ return remap$(v, {
39
+ "date_processed": "dateProcessed",
40
+ "credit_id": "creditId",
41
+ "transaction_id": "transactionId",
42
+ "card_last4": "cardLast4",
43
+ });
44
+ });
45
+
46
+ /** @internal */
47
+ export type InvoiceTransaction$Outbound = {
48
+ date_processed?: string | null | undefined;
49
+ payee?: string | null | undefined;
50
+ amount?: number | null | undefined;
51
+ credit_id?: number | null | undefined;
52
+ transaction_id?: string | null | undefined;
53
+ success?: boolean | null | undefined;
54
+ card_last4?: string | null | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export const InvoiceTransaction$outboundSchema: z.ZodType<
59
+ InvoiceTransaction$Outbound,
60
+ z.ZodTypeDef,
61
+ InvoiceTransaction
62
+ > = z.object({
63
+ dateProcessed: z.nullable(z.string()).optional(),
64
+ payee: z.nullable(z.string()).optional(),
65
+ amount: z.nullable(z.number().int()).optional(),
66
+ creditId: z.nullable(z.number().int()).optional(),
67
+ transactionId: z.nullable(z.string()).optional(),
68
+ success: z.nullable(z.boolean()).optional(),
69
+ cardLast4: z.nullable(z.string()).optional(),
70
+ }).transform((v) => {
71
+ return remap$(v, {
72
+ dateProcessed: "date_processed",
73
+ creditId: "credit_id",
74
+ transactionId: "transaction_id",
75
+ cardLast4: "card_last4",
76
+ });
77
+ });
78
+
79
+ /**
80
+ * @internal
81
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
82
+ */
83
+ export namespace InvoiceTransaction$ {
84
+ /** @deprecated use `InvoiceTransaction$inboundSchema` instead. */
85
+ export const inboundSchema = InvoiceTransaction$inboundSchema;
86
+ /** @deprecated use `InvoiceTransaction$outboundSchema` instead. */
87
+ export const outboundSchema = InvoiceTransaction$outboundSchema;
88
+ /** @deprecated use `InvoiceTransaction$Outbound` instead. */
89
+ export type Outbound = InvoiceTransaction$Outbound;
90
+ }
91
+
92
+ export function invoiceTransactionToJSON(
93
+ invoiceTransaction: InvoiceTransaction,
94
+ ): string {
95
+ return JSON.stringify(
96
+ InvoiceTransaction$outboundSchema.parse(invoiceTransaction),
97
+ );
98
+ }
99
+
100
+ export function invoiceTransactionFromJSON(
101
+ jsonString: string,
102
+ ): SafeParseResult<InvoiceTransaction, SDKValidationError> {
103
+ return safeParse(
104
+ jsonString,
105
+ (x) => InvoiceTransaction$inboundSchema.parse(JSON.parse(x)),
106
+ `Failed to parse 'InvoiceTransaction' from JSON`,
107
+ );
108
+ }
@@ -0,0 +1,108 @@
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
+ * A representation of a vendor facility status view
13
+ */
14
+ export type VendorFacilityStatusView = {
15
+ vendorId?: number | undefined;
16
+ facilityId?: number | undefined;
17
+ facilityName?: string | undefined;
18
+ facilityStatus?: string | null | undefined;
19
+ vendorScanId?: number | null | undefined;
20
+ vendorScanType?: number | null | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const VendorFacilityStatusView$inboundSchema: z.ZodType<
25
+ VendorFacilityStatusView,
26
+ z.ZodTypeDef,
27
+ unknown
28
+ > = z.object({
29
+ vendor_id: z.number().int().optional(),
30
+ facility_id: z.number().int().optional(),
31
+ facility_name: z.string().optional(),
32
+ facility_status: z.nullable(z.string()).optional(),
33
+ vendor_scan_id: z.nullable(z.number().int()).optional(),
34
+ vendor_scan_type: z.nullable(z.number().int()).optional(),
35
+ }).transform((v) => {
36
+ return remap$(v, {
37
+ "vendor_id": "vendorId",
38
+ "facility_id": "facilityId",
39
+ "facility_name": "facilityName",
40
+ "facility_status": "facilityStatus",
41
+ "vendor_scan_id": "vendorScanId",
42
+ "vendor_scan_type": "vendorScanType",
43
+ });
44
+ });
45
+
46
+ /** @internal */
47
+ export type VendorFacilityStatusView$Outbound = {
48
+ vendor_id?: number | undefined;
49
+ facility_id?: number | undefined;
50
+ facility_name?: string | undefined;
51
+ facility_status?: string | null | undefined;
52
+ vendor_scan_id?: number | null | undefined;
53
+ vendor_scan_type?: number | null | undefined;
54
+ };
55
+
56
+ /** @internal */
57
+ export const VendorFacilityStatusView$outboundSchema: z.ZodType<
58
+ VendorFacilityStatusView$Outbound,
59
+ z.ZodTypeDef,
60
+ VendorFacilityStatusView
61
+ > = z.object({
62
+ vendorId: z.number().int().optional(),
63
+ facilityId: z.number().int().optional(),
64
+ facilityName: z.string().optional(),
65
+ facilityStatus: z.nullable(z.string()).optional(),
66
+ vendorScanId: z.nullable(z.number().int()).optional(),
67
+ vendorScanType: z.nullable(z.number().int()).optional(),
68
+ }).transform((v) => {
69
+ return remap$(v, {
70
+ vendorId: "vendor_id",
71
+ facilityId: "facility_id",
72
+ facilityName: "facility_name",
73
+ facilityStatus: "facility_status",
74
+ vendorScanId: "vendor_scan_id",
75
+ vendorScanType: "vendor_scan_type",
76
+ });
77
+ });
78
+
79
+ /**
80
+ * @internal
81
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
82
+ */
83
+ export namespace VendorFacilityStatusView$ {
84
+ /** @deprecated use `VendorFacilityStatusView$inboundSchema` instead. */
85
+ export const inboundSchema = VendorFacilityStatusView$inboundSchema;
86
+ /** @deprecated use `VendorFacilityStatusView$outboundSchema` instead. */
87
+ export const outboundSchema = VendorFacilityStatusView$outboundSchema;
88
+ /** @deprecated use `VendorFacilityStatusView$Outbound` instead. */
89
+ export type Outbound = VendorFacilityStatusView$Outbound;
90
+ }
91
+
92
+ export function vendorFacilityStatusViewToJSON(
93
+ vendorFacilityStatusView: VendorFacilityStatusView,
94
+ ): string {
95
+ return JSON.stringify(
96
+ VendorFacilityStatusView$outboundSchema.parse(vendorFacilityStatusView),
97
+ );
98
+ }
99
+
100
+ export function vendorFacilityStatusViewFromJSON(
101
+ jsonString: string,
102
+ ): SafeParseResult<VendorFacilityStatusView, SDKValidationError> {
103
+ return safeParse(
104
+ jsonString,
105
+ (x) => VendorFacilityStatusView$inboundSchema.parse(JSON.parse(x)),
106
+ `Failed to parse 'VendorFacilityStatusView' from JSON`,
107
+ );
108
+ }
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as components from "../components/index.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type GetVendorInvoiceDetailsRequest = {
12
+ /**
13
+ * The identifier of the object
14
+ */
15
+ id: 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
+ };
21
+
22
+ /** @internal */
23
+ export const GetVendorInvoiceDetailsRequest$inboundSchema: z.ZodType<
24
+ GetVendorInvoiceDetailsRequest,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ id: z.number().int(),
29
+ expand: z.array(components.Expand$inboundSchema).optional(),
30
+ });
31
+
32
+ /** @internal */
33
+ export type GetVendorInvoiceDetailsRequest$Outbound = {
34
+ id: number;
35
+ expand?: Array<string> | undefined;
36
+ };
37
+
38
+ /** @internal */
39
+ export const GetVendorInvoiceDetailsRequest$outboundSchema: z.ZodType<
40
+ GetVendorInvoiceDetailsRequest$Outbound,
41
+ z.ZodTypeDef,
42
+ GetVendorInvoiceDetailsRequest
43
+ > = z.object({
44
+ id: z.number().int(),
45
+ expand: z.array(components.Expand$outboundSchema).optional(),
46
+ });
47
+
48
+ /**
49
+ * @internal
50
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
+ */
52
+ export namespace GetVendorInvoiceDetailsRequest$ {
53
+ /** @deprecated use `GetVendorInvoiceDetailsRequest$inboundSchema` instead. */
54
+ export const inboundSchema = GetVendorInvoiceDetailsRequest$inboundSchema;
55
+ /** @deprecated use `GetVendorInvoiceDetailsRequest$outboundSchema` instead. */
56
+ export const outboundSchema = GetVendorInvoiceDetailsRequest$outboundSchema;
57
+ /** @deprecated use `GetVendorInvoiceDetailsRequest$Outbound` instead. */
58
+ export type Outbound = GetVendorInvoiceDetailsRequest$Outbound;
59
+ }
60
+
61
+ export function getVendorInvoiceDetailsRequestToJSON(
62
+ getVendorInvoiceDetailsRequest: GetVendorInvoiceDetailsRequest,
63
+ ): string {
64
+ return JSON.stringify(
65
+ GetVendorInvoiceDetailsRequest$outboundSchema.parse(
66
+ getVendorInvoiceDetailsRequest,
67
+ ),
68
+ );
69
+ }
70
+
71
+ export function getVendorInvoiceDetailsRequestFromJSON(
72
+ jsonString: string,
73
+ ): SafeParseResult<GetVendorInvoiceDetailsRequest, SDKValidationError> {
74
+ return safeParse(
75
+ jsonString,
76
+ (x) => GetVendorInvoiceDetailsRequest$inboundSchema.parse(JSON.parse(x)),
77
+ `Failed to parse 'GetVendorInvoiceDetailsRequest' from JSON`,
78
+ );
79
+ }
@@ -7,9 +7,11 @@ export * from "./expeditetimeremaining.js";
7
7
  export * from "./getfacility.js";
8
8
  export * from "./getsupportarticle.js";
9
9
  export * from "./getuserbyid.js";
10
+ export * from "./getvendorinvoicedetails.js";
10
11
  export * from "./listorsearchfacilities.js";
11
12
  export * from "./listorsearchsupportarticles.js";
12
13
  export * from "./listvendorcredentials.js";
14
+ export * from "./listvendorfacilitystatuses.js";
13
15
  export * from "./listvendorinvoices.js";
14
16
  export * from "./listvendorjobtitles.js";
15
17
  export * from "./logsuserintothesystem.js";
@@ -26,6 +26,14 @@ export type ListOrSearchSupportArticlesRequest = {
26
26
  * Number of items to show in a given page
27
27
  */
28
28
  itemsPerPage?: number | undefined;
29
+ /**
30
+ * Search for objects in the same category as the search string
31
+ */
32
+ category?: string | undefined;
33
+ /**
34
+ * Search for objects by the search string
35
+ */
36
+ search?: string | undefined;
29
37
  };
30
38
 
31
39
  /**
@@ -53,6 +61,8 @@ export const ListOrSearchSupportArticlesRequest$inboundSchema: z.ZodType<
53
61
  desc: components.Desc$inboundSchema.optional(),
54
62
  page: z.number().int().optional(),
55
63
  items_per_page: z.number().int().optional(),
64
+ category: z.string().optional(),
65
+ search: z.string().optional(),
56
66
  }).transform((v) => {
57
67
  return remap$(v, {
58
68
  "items_per_page": "itemsPerPage",
@@ -65,6 +75,8 @@ export type ListOrSearchSupportArticlesRequest$Outbound = {
65
75
  desc?: components.Desc$Outbound | undefined;
66
76
  page?: number | undefined;
67
77
  items_per_page?: number | undefined;
78
+ category?: string | undefined;
79
+ search?: string | undefined;
68
80
  };
69
81
 
70
82
  /** @internal */
@@ -77,6 +89,8 @@ export const ListOrSearchSupportArticlesRequest$outboundSchema: z.ZodType<
77
89
  desc: components.Desc$outboundSchema.optional(),
78
90
  page: z.number().int().optional(),
79
91
  itemsPerPage: z.number().int().optional(),
92
+ category: z.string().optional(),
93
+ search: z.string().optional(),
80
94
  }).transform((v) => {
81
95
  return remap$(v, {
82
96
  itemsPerPage: "items_per_page",
@@ -0,0 +1,247 @@
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 * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ListVendorFacilityStatusesRequest = {
13
+ /**
14
+ * A comma-separated list of object attributes to sort on.
15
+ */
16
+ sort?: string | null | undefined;
17
+ /**
18
+ * Sort desc
19
+ */
20
+ desc?: components.Desc | undefined;
21
+ /**
22
+ * A 1-based offset for which page to request (defaults to 1)
23
+ */
24
+ page?: number | undefined;
25
+ /**
26
+ * Number of items to show in a given page
27
+ */
28
+ itemsPerPage?: number | undefined;
29
+ };
30
+
31
+ /**
32
+ * The request was successful, and the server has returned the requested resource in the response body.
33
+ */
34
+ export type ListVendorFacilityStatusesResponseBody = {
35
+ items: Array<components.VendorFacilityStatusView>;
36
+ /**
37
+ * Pagination information for a pageable list
38
+ */
39
+ pager: components.Pager;
40
+ };
41
+
42
+ export type ListVendorFacilityStatusesResponse = {
43
+ result: ListVendorFacilityStatusesResponseBody;
44
+ };
45
+
46
+ /** @internal */
47
+ export const ListVendorFacilityStatusesRequest$inboundSchema: z.ZodType<
48
+ ListVendorFacilityStatusesRequest,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = z.object({
52
+ sort: z.nullable(z.string()).optional(),
53
+ desc: components.Desc$inboundSchema.optional(),
54
+ page: z.number().int().optional(),
55
+ items_per_page: z.number().int().optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ "items_per_page": "itemsPerPage",
59
+ });
60
+ });
61
+
62
+ /** @internal */
63
+ export type ListVendorFacilityStatusesRequest$Outbound = {
64
+ sort?: string | null | undefined;
65
+ desc?: components.Desc$Outbound | undefined;
66
+ page?: number | undefined;
67
+ items_per_page?: number | undefined;
68
+ };
69
+
70
+ /** @internal */
71
+ export const ListVendorFacilityStatusesRequest$outboundSchema: z.ZodType<
72
+ ListVendorFacilityStatusesRequest$Outbound,
73
+ z.ZodTypeDef,
74
+ ListVendorFacilityStatusesRequest
75
+ > = z.object({
76
+ sort: z.nullable(z.string()).optional(),
77
+ desc: components.Desc$outboundSchema.optional(),
78
+ page: z.number().int().optional(),
79
+ itemsPerPage: z.number().int().optional(),
80
+ }).transform((v) => {
81
+ return remap$(v, {
82
+ itemsPerPage: "items_per_page",
83
+ });
84
+ });
85
+
86
+ /**
87
+ * @internal
88
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
+ */
90
+ export namespace ListVendorFacilityStatusesRequest$ {
91
+ /** @deprecated use `ListVendorFacilityStatusesRequest$inboundSchema` instead. */
92
+ export const inboundSchema = ListVendorFacilityStatusesRequest$inboundSchema;
93
+ /** @deprecated use `ListVendorFacilityStatusesRequest$outboundSchema` instead. */
94
+ export const outboundSchema =
95
+ ListVendorFacilityStatusesRequest$outboundSchema;
96
+ /** @deprecated use `ListVendorFacilityStatusesRequest$Outbound` instead. */
97
+ export type Outbound = ListVendorFacilityStatusesRequest$Outbound;
98
+ }
99
+
100
+ export function listVendorFacilityStatusesRequestToJSON(
101
+ listVendorFacilityStatusesRequest: ListVendorFacilityStatusesRequest,
102
+ ): string {
103
+ return JSON.stringify(
104
+ ListVendorFacilityStatusesRequest$outboundSchema.parse(
105
+ listVendorFacilityStatusesRequest,
106
+ ),
107
+ );
108
+ }
109
+
110
+ export function listVendorFacilityStatusesRequestFromJSON(
111
+ jsonString: string,
112
+ ): SafeParseResult<ListVendorFacilityStatusesRequest, SDKValidationError> {
113
+ return safeParse(
114
+ jsonString,
115
+ (x) => ListVendorFacilityStatusesRequest$inboundSchema.parse(JSON.parse(x)),
116
+ `Failed to parse 'ListVendorFacilityStatusesRequest' from JSON`,
117
+ );
118
+ }
119
+
120
+ /** @internal */
121
+ export const ListVendorFacilityStatusesResponseBody$inboundSchema: z.ZodType<
122
+ ListVendorFacilityStatusesResponseBody,
123
+ z.ZodTypeDef,
124
+ unknown
125
+ > = z.object({
126
+ items: z.array(components.VendorFacilityStatusView$inboundSchema),
127
+ pager: components.Pager$inboundSchema,
128
+ });
129
+
130
+ /** @internal */
131
+ export type ListVendorFacilityStatusesResponseBody$Outbound = {
132
+ items: Array<components.VendorFacilityStatusView$Outbound>;
133
+ pager: components.Pager$Outbound;
134
+ };
135
+
136
+ /** @internal */
137
+ export const ListVendorFacilityStatusesResponseBody$outboundSchema: z.ZodType<
138
+ ListVendorFacilityStatusesResponseBody$Outbound,
139
+ z.ZodTypeDef,
140
+ ListVendorFacilityStatusesResponseBody
141
+ > = z.object({
142
+ items: z.array(components.VendorFacilityStatusView$outboundSchema),
143
+ pager: components.Pager$outboundSchema,
144
+ });
145
+
146
+ /**
147
+ * @internal
148
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
149
+ */
150
+ export namespace ListVendorFacilityStatusesResponseBody$ {
151
+ /** @deprecated use `ListVendorFacilityStatusesResponseBody$inboundSchema` instead. */
152
+ export const inboundSchema =
153
+ ListVendorFacilityStatusesResponseBody$inboundSchema;
154
+ /** @deprecated use `ListVendorFacilityStatusesResponseBody$outboundSchema` instead. */
155
+ export const outboundSchema =
156
+ ListVendorFacilityStatusesResponseBody$outboundSchema;
157
+ /** @deprecated use `ListVendorFacilityStatusesResponseBody$Outbound` instead. */
158
+ export type Outbound = ListVendorFacilityStatusesResponseBody$Outbound;
159
+ }
160
+
161
+ export function listVendorFacilityStatusesResponseBodyToJSON(
162
+ listVendorFacilityStatusesResponseBody:
163
+ ListVendorFacilityStatusesResponseBody,
164
+ ): string {
165
+ return JSON.stringify(
166
+ ListVendorFacilityStatusesResponseBody$outboundSchema.parse(
167
+ listVendorFacilityStatusesResponseBody,
168
+ ),
169
+ );
170
+ }
171
+
172
+ export function listVendorFacilityStatusesResponseBodyFromJSON(
173
+ jsonString: string,
174
+ ): SafeParseResult<ListVendorFacilityStatusesResponseBody, SDKValidationError> {
175
+ return safeParse(
176
+ jsonString,
177
+ (x) =>
178
+ ListVendorFacilityStatusesResponseBody$inboundSchema.parse(JSON.parse(x)),
179
+ `Failed to parse 'ListVendorFacilityStatusesResponseBody' from JSON`,
180
+ );
181
+ }
182
+
183
+ /** @internal */
184
+ export const ListVendorFacilityStatusesResponse$inboundSchema: z.ZodType<
185
+ ListVendorFacilityStatusesResponse,
186
+ z.ZodTypeDef,
187
+ unknown
188
+ > = z.object({
189
+ Result: z.lazy(() => ListVendorFacilityStatusesResponseBody$inboundSchema),
190
+ }).transform((v) => {
191
+ return remap$(v, {
192
+ "Result": "result",
193
+ });
194
+ });
195
+
196
+ /** @internal */
197
+ export type ListVendorFacilityStatusesResponse$Outbound = {
198
+ Result: ListVendorFacilityStatusesResponseBody$Outbound;
199
+ };
200
+
201
+ /** @internal */
202
+ export const ListVendorFacilityStatusesResponse$outboundSchema: z.ZodType<
203
+ ListVendorFacilityStatusesResponse$Outbound,
204
+ z.ZodTypeDef,
205
+ ListVendorFacilityStatusesResponse
206
+ > = z.object({
207
+ result: z.lazy(() => ListVendorFacilityStatusesResponseBody$outboundSchema),
208
+ }).transform((v) => {
209
+ return remap$(v, {
210
+ result: "Result",
211
+ });
212
+ });
213
+
214
+ /**
215
+ * @internal
216
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
217
+ */
218
+ export namespace ListVendorFacilityStatusesResponse$ {
219
+ /** @deprecated use `ListVendorFacilityStatusesResponse$inboundSchema` instead. */
220
+ export const inboundSchema = ListVendorFacilityStatusesResponse$inboundSchema;
221
+ /** @deprecated use `ListVendorFacilityStatusesResponse$outboundSchema` instead. */
222
+ export const outboundSchema =
223
+ ListVendorFacilityStatusesResponse$outboundSchema;
224
+ /** @deprecated use `ListVendorFacilityStatusesResponse$Outbound` instead. */
225
+ export type Outbound = ListVendorFacilityStatusesResponse$Outbound;
226
+ }
227
+
228
+ export function listVendorFacilityStatusesResponseToJSON(
229
+ listVendorFacilityStatusesResponse: ListVendorFacilityStatusesResponse,
230
+ ): string {
231
+ return JSON.stringify(
232
+ ListVendorFacilityStatusesResponse$outboundSchema.parse(
233
+ listVendorFacilityStatusesResponse,
234
+ ),
235
+ );
236
+ }
237
+
238
+ export function listVendorFacilityStatusesResponseFromJSON(
239
+ jsonString: string,
240
+ ): SafeParseResult<ListVendorFacilityStatusesResponse, SDKValidationError> {
241
+ return safeParse(
242
+ jsonString,
243
+ (x) =>
244
+ ListVendorFacilityStatusesResponse$inboundSchema.parse(JSON.parse(x)),
245
+ `Failed to parse 'ListVendorFacilityStatusesResponse' from JSON`,
246
+ );
247
+ }
@@ -17,6 +17,8 @@ export * from "./usersPassword.js";
17
17
  export * from "./usersPasswordResetRequest.js";
18
18
  export * from "./vendorsCreateVendorRegistration.js";
19
19
  export * from "./vendorsExpediteTimeRemaining.js";
20
+ export * from "./vendorsGetVendorInvoiceDetails.js";
20
21
  export * from "./vendorsListVendorCredentials.js";
22
+ export * from "./vendorsListVendorFacilityStatuses.js";
21
23
  export * from "./vendorsListVendorInvoices.js";
22
24
  export * from "./vendorsListVendorJobTitles.js";