@greensecurity/javascript-sdk 0.45.0-beta.3 → 0.45.0-beta.5
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.
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +4 -5
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +9 -10
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.d.ts +4 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.js +5 -1
- package/dist/commonjs/funcs/vendorsVendorsExport.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/expand.d.ts +1 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +1 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +5 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +9 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/commonjs/models/operations/vendorsexport.d.ts +6 -1
- package/dist/commonjs/models/operations/vendorsexport.d.ts.map +1 -1
- package/dist/commonjs/models/operations/vendorsexport.js +2 -0
- package/dist/commonjs/models/operations/vendorsexport.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts +1 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.core.js +1 -0
- package/dist/commonjs/react-query/vendorsVendorsExport.core.js.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.d.ts +10 -2
- package/dist/commonjs/react-query/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsVendorsExport.js +8 -2
- package/dist/commonjs/react-query/vendorsVendorsExport.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +5 -1
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +5 -1
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js +4 -5
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +9 -10
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +1 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +1 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsVendorsExport.d.ts +4 -1
- package/dist/esm/funcs/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsVendorsExport.js +5 -1
- package/dist/esm/funcs/vendorsVendorsExport.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/expand.d.ts +1 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +1 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +5 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +7 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/esm/models/operations/vendorsexport.d.ts +6 -1
- package/dist/esm/models/operations/vendorsexport.d.ts.map +1 -1
- package/dist/esm/models/operations/vendorsexport.js +2 -0
- package/dist/esm/models/operations/vendorsexport.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts +2 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +2 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.core.d.ts +1 -0
- package/dist/esm/react-query/vendorsVendorsExport.core.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.core.js +1 -0
- package/dist/esm/react-query/vendorsVendorsExport.core.js.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.d.ts +10 -2
- package/dist/esm/react-query/vendorsVendorsExport.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsVendorsExport.js +8 -2
- package/dist/esm/react-query/vendorsVendorsExport.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +5 -1
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +5 -1
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +4 -5
- package/src/__tests__/zones.test.ts +9 -10
- package/src/funcs/vendorsGetVendorCredentialDetails.ts +1 -0
- package/src/funcs/vendorsVendorsExport.ts +6 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/expand.ts +1 -0
- package/src/models/components/vendorcredentialsummary.ts +19 -0
- package/src/models/operations/vendorsexport.ts +8 -1
- package/src/react-query/vendorsGetVendorCredentialDetails.ts +2 -0
- package/src/react-query/vendorsVendorsExport.core.ts +2 -0
- package/src/react-query/vendorsVendorsExport.ts +10 -2
- package/src/sdk/vendors.ts +5 -1
package/src/lib/config.ts
CHANGED
|
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "0.44.0",
|
|
83
|
-
sdkVersion: "0.45.0-beta.
|
|
83
|
+
sdkVersion: "0.45.0-beta.5",
|
|
84
84
|
genVersion: "2.933.0",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.45.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.45.0-beta.5 2.933.0 0.44.0 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
|
@@ -71,6 +71,7 @@ export const Expand = {
|
|
|
71
71
|
VendorCredentialCredential: "vendor_credential.credential",
|
|
72
72
|
VendorCredentialVendor: "vendor_credential.vendor",
|
|
73
73
|
VendorCredentialInvoice: "vendor_credential.invoice",
|
|
74
|
+
VendorCredentialQuote: "vendor_credential.quote",
|
|
74
75
|
VendorCredentialVendorCredentialFiles:
|
|
75
76
|
"vendor_credential.vendor_credential_files",
|
|
76
77
|
VendorCredentialLatestVendorCredentialId:
|
|
@@ -33,6 +33,8 @@ export type VendorCredentialSummaryVendor = Vendor | number;
|
|
|
33
33
|
|
|
34
34
|
export type VendorCredentialSummaryInvoice = Invoice | number;
|
|
35
35
|
|
|
36
|
+
export type Quote = Invoice | number;
|
|
37
|
+
|
|
36
38
|
export type UnsatisfiedDependencies = {
|
|
37
39
|
credentialId?: number | null | undefined;
|
|
38
40
|
dependsOnId?: number | null | undefined;
|
|
@@ -87,6 +89,7 @@ export type VendorCredentialSummary = {
|
|
|
87
89
|
credential?: Credential | number | null | undefined;
|
|
88
90
|
vendor?: Vendor | number | null | undefined;
|
|
89
91
|
invoice?: Invoice | number | null | undefined;
|
|
92
|
+
quote?: Invoice | number | null | undefined;
|
|
90
93
|
vendorCredentialFiles?: Array<VendorCredentialFile | null> | undefined;
|
|
91
94
|
latestVendorCredentialId?: number | null | undefined;
|
|
92
95
|
previouslyApproved?: boolean | null | undefined;
|
|
@@ -164,6 +167,20 @@ export function vendorCredentialSummaryInvoiceFromJSON(
|
|
|
164
167
|
);
|
|
165
168
|
}
|
|
166
169
|
|
|
170
|
+
/** @internal */
|
|
171
|
+
export const Quote$inboundSchema: z.ZodType<Quote, z.ZodTypeDef, unknown> =
|
|
172
|
+
smartUnion([Invoice$inboundSchema, types.number()]);
|
|
173
|
+
|
|
174
|
+
export function quoteFromJSON(
|
|
175
|
+
jsonString: string,
|
|
176
|
+
): SafeParseResult<Quote, SDKValidationError> {
|
|
177
|
+
return safeParse(
|
|
178
|
+
jsonString,
|
|
179
|
+
(x) => Quote$inboundSchema.parse(JSON.parse(x)),
|
|
180
|
+
`Failed to parse 'Quote' from JSON`,
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
167
184
|
/** @internal */
|
|
168
185
|
export const UnsatisfiedDependencies$inboundSchema: z.ZodType<
|
|
169
186
|
UnsatisfiedDependencies,
|
|
@@ -296,6 +313,8 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
|
|
|
296
313
|
.optional(),
|
|
297
314
|
invoice: z.nullable(smartUnion([Invoice$inboundSchema, types.number()]))
|
|
298
315
|
.optional(),
|
|
316
|
+
quote: z.nullable(smartUnion([Invoice$inboundSchema, types.number()]))
|
|
317
|
+
.optional(),
|
|
299
318
|
vendor_credential_files: types.optional(
|
|
300
319
|
z.array(types.nullable(z.lazy(() => VendorCredentialFile$inboundSchema))),
|
|
301
320
|
),
|
|
@@ -56,9 +56,13 @@ export type VendorsExportRequest = {
|
|
|
56
56
|
*/
|
|
57
57
|
status?: string | undefined;
|
|
58
58
|
/**
|
|
59
|
-
* Scope to a specific company (API users must be authorized by MarketplaceAppActivation).
|
|
59
|
+
* Scope to a specific company (API users must be authorized by MarketplaceAppActivation). Cannot be combined with externally_managed_by_company_id.
|
|
60
60
|
*/
|
|
61
61
|
companyId?: number | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Only export *external* vendors who can be managed by the specified company. Cannot be combined with company_id.
|
|
64
|
+
*/
|
|
65
|
+
externallyManagedByCompanyId?: number | undefined;
|
|
62
66
|
/**
|
|
63
67
|
* Filter to vendors with (or without) a credentialing subscription.
|
|
64
68
|
*/
|
|
@@ -132,6 +136,7 @@ export type VendorsExportRequest$Outbound = {
|
|
|
132
136
|
zip_like?: string | undefined;
|
|
133
137
|
status?: string | undefined;
|
|
134
138
|
company_id?: number | undefined;
|
|
139
|
+
externally_managed_by_company_id?: number | undefined;
|
|
135
140
|
credentialing_subscription_id_null?: string | undefined;
|
|
136
141
|
scrubs_subscription_id_null?: string | undefined;
|
|
137
142
|
credentialing_subscription_status?: string | undefined;
|
|
@@ -167,6 +172,7 @@ export const VendorsExportRequest$outboundSchema: z.ZodType<
|
|
|
167
172
|
zipLike: z.string().optional(),
|
|
168
173
|
status: z.string().optional(),
|
|
169
174
|
companyId: z.number().int().optional(),
|
|
175
|
+
externallyManagedByCompanyId: z.number().int().optional(),
|
|
170
176
|
credentialingSubscriptionIdNull: z.string().optional(),
|
|
171
177
|
scrubsSubscriptionIdNull: z.string().optional(),
|
|
172
178
|
credentialingSubscriptionStatus: z.string().optional(),
|
|
@@ -203,6 +209,7 @@ export const VendorsExportRequest$outboundSchema: z.ZodType<
|
|
|
203
209
|
stateLike: "state_like",
|
|
204
210
|
zipLike: "zip_like",
|
|
205
211
|
companyId: "company_id",
|
|
212
|
+
externallyManagedByCompanyId: "externally_managed_by_company_id",
|
|
206
213
|
credentialingSubscriptionIdNull: "credentialing_subscription_id_null",
|
|
207
214
|
scrubsSubscriptionIdNull: "scrubs_subscription_id_null",
|
|
208
215
|
credentialingSubscriptionStatus: "credentialing_subscription_status",
|
|
@@ -63,6 +63,7 @@ export type VendorsGetVendorCredentialDetailsQueryError =
|
|
|
63
63
|
* - vendor_credential.credential
|
|
64
64
|
* - vendor_credential.vendor
|
|
65
65
|
* - vendor_credential.invoice
|
|
66
|
+
* - vendor_credential.quote
|
|
66
67
|
* - vendor_credential.vendor_credential_files
|
|
67
68
|
* - vendor_credential.latest_vendor_credential_id
|
|
68
69
|
* - vendor_credential.previously_approved
|
|
@@ -118,6 +119,7 @@ export function useVendorsGetVendorCredentialDetails(
|
|
|
118
119
|
* - vendor_credential.credential
|
|
119
120
|
* - vendor_credential.vendor
|
|
120
121
|
* - vendor_credential.invoice
|
|
122
|
+
* - vendor_credential.quote
|
|
121
123
|
* - vendor_credential.vendor_credential_files
|
|
122
124
|
* - vendor_credential.latest_vendor_credential_id
|
|
123
125
|
* - vendor_credential.previously_approved
|
|
@@ -57,6 +57,7 @@ export function buildVendorsVendorsExportQuery(
|
|
|
57
57
|
zipLike: request.zipLike,
|
|
58
58
|
status: request.status,
|
|
59
59
|
companyId: request.companyId,
|
|
60
|
+
externallyManagedByCompanyId: request.externallyManagedByCompanyId,
|
|
60
61
|
credentialingSubscriptionIdNull: request.credentialingSubscriptionIdNull,
|
|
61
62
|
scrubsSubscriptionIdNull: request.scrubsSubscriptionIdNull,
|
|
62
63
|
credentialingSubscriptionStatus: request.credentialingSubscriptionStatus,
|
|
@@ -110,6 +111,7 @@ export function queryKeyVendorsVendorsExport(
|
|
|
110
111
|
zipLike?: string | undefined;
|
|
111
112
|
status?: string | undefined;
|
|
112
113
|
companyId?: number | undefined;
|
|
114
|
+
externallyManagedByCompanyId?: number | undefined;
|
|
113
115
|
credentialingSubscriptionIdNull?: string | undefined;
|
|
114
116
|
scrubsSubscriptionIdNull?: string | undefined;
|
|
115
117
|
credentialingSubscriptionStatus?: string | undefined;
|
|
@@ -58,7 +58,10 @@ export type VendorsVendorsExportQueryError =
|
|
|
58
58
|
*
|
|
59
59
|
* @remarks
|
|
60
60
|
* Enqueues an asynchronous job to generate a CSV export of vendors based on the
|
|
61
|
-
* provided filters (the same filters supported by the vendors list endpoint)
|
|
61
|
+
* provided filters (the same filters supported by the vendors list endpoint), in the same
|
|
62
|
+
* credential-inclusive format as the portal's "Download Full Report" button - one column per
|
|
63
|
+
* applicable credential (status, due date, expiration), plus counts and percentage approved,
|
|
64
|
+
* alongside the vendor's identity, contact, and company details.
|
|
62
65
|
* Returns a `status_url` to poll until the export is ready, plus a
|
|
63
66
|
* `download_url` and `status_id`.
|
|
64
67
|
*/
|
|
@@ -88,7 +91,10 @@ export function useVendorsVendorsExport(
|
|
|
88
91
|
*
|
|
89
92
|
* @remarks
|
|
90
93
|
* Enqueues an asynchronous job to generate a CSV export of vendors based on the
|
|
91
|
-
* provided filters (the same filters supported by the vendors list endpoint)
|
|
94
|
+
* provided filters (the same filters supported by the vendors list endpoint), in the same
|
|
95
|
+
* credential-inclusive format as the portal's "Download Full Report" button - one column per
|
|
96
|
+
* applicable credential (status, due date, expiration), plus counts and percentage approved,
|
|
97
|
+
* alongside the vendor's identity, contact, and company details.
|
|
92
98
|
* Returns a `status_url` to poll until the export is ready, plus a
|
|
93
99
|
* `download_url` and `status_id`.
|
|
94
100
|
*/
|
|
@@ -130,6 +136,7 @@ export function setVendorsVendorsExportData(
|
|
|
130
136
|
zipLike?: string | undefined;
|
|
131
137
|
status?: string | undefined;
|
|
132
138
|
companyId?: number | undefined;
|
|
139
|
+
externallyManagedByCompanyId?: number | undefined;
|
|
133
140
|
credentialingSubscriptionIdNull?: string | undefined;
|
|
134
141
|
scrubsSubscriptionIdNull?: string | undefined;
|
|
135
142
|
credentialingSubscriptionStatus?: string | undefined;
|
|
@@ -170,6 +177,7 @@ export function invalidateVendorsVendorsExport(
|
|
|
170
177
|
zipLike?: string | undefined;
|
|
171
178
|
status?: string | undefined;
|
|
172
179
|
companyId?: number | undefined;
|
|
180
|
+
externallyManagedByCompanyId?: number | undefined;
|
|
173
181
|
credentialingSubscriptionIdNull?: string | undefined;
|
|
174
182
|
scrubsSubscriptionIdNull?: string | undefined;
|
|
175
183
|
credentialingSubscriptionStatus?: string | undefined;
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -273,6 +273,7 @@ export class Vendors extends ClientSDK {
|
|
|
273
273
|
* - vendor_credential.credential
|
|
274
274
|
* - vendor_credential.vendor
|
|
275
275
|
* - vendor_credential.invoice
|
|
276
|
+
* - vendor_credential.quote
|
|
276
277
|
* - vendor_credential.vendor_credential_files
|
|
277
278
|
* - vendor_credential.latest_vendor_credential_id
|
|
278
279
|
* - vendor_credential.previously_approved
|
|
@@ -1078,7 +1079,10 @@ export class Vendors extends ClientSDK {
|
|
|
1078
1079
|
*
|
|
1079
1080
|
* @remarks
|
|
1080
1081
|
* Enqueues an asynchronous job to generate a CSV export of vendors based on the
|
|
1081
|
-
* provided filters (the same filters supported by the vendors list endpoint)
|
|
1082
|
+
* provided filters (the same filters supported by the vendors list endpoint), in the same
|
|
1083
|
+
* credential-inclusive format as the portal's "Download Full Report" button - one column per
|
|
1084
|
+
* applicable credential (status, due date, expiration), plus counts and percentage approved,
|
|
1085
|
+
* alongside the vendor's identity, contact, and company details.
|
|
1082
1086
|
* Returns a `status_url` to poll until the export is ready, plus a
|
|
1083
1087
|
* `download_url` and `status_id`.
|
|
1084
1088
|
*/
|