@greensecurity/javascript-sdk 0.40.8-beta.26 → 0.40.8-beta.27
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/README.md +2 -5
- package/dist/commonjs/__tests__/zones.test.js +2 -5
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/models/components/credential.d.ts +6 -4
- package/dist/commonjs/models/components/credential.d.ts.map +1 -1
- package/dist/commonjs/models/components/credential.js +8 -4
- package/dist/commonjs/models/components/credential.js.map +1 -1
- package/dist/commonjs/models/components/credentialstatus.d.ts +3 -0
- package/dist/commonjs/models/components/credentialstatus.d.ts.map +1 -1
- package/dist/commonjs/models/components/credentialstatus.js +1 -0
- package/dist/commonjs/models/components/credentialstatus.js.map +1 -1
- package/dist/commonjs/models/components/facilitycalendarsummary.d.ts +2 -0
- package/dist/commonjs/models/components/facilitycalendarsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/facilitycalendarsummary.js +4 -0
- package/dist/commonjs/models/components/facilitycalendarsummary.js.map +1 -1
- package/dist/commonjs/models/components/facilitysummary.d.ts +2 -0
- package/dist/commonjs/models/components/facilitysummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/facilitysummary.js +4 -0
- package/dist/commonjs/models/components/facilitysummary.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +2 -0
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +4 -0
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredentials.d.ts +4 -4
- package/dist/commonjs/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredentials.js +4 -4
- package/dist/commonjs/models/operations/listvendorcredentials.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts +3 -3
- package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
- package/dist/esm/__tests__/zones.test.js +2 -5
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/models/components/credential.d.ts +6 -4
- package/dist/esm/models/components/credential.d.ts.map +1 -1
- package/dist/esm/models/components/credential.js +8 -4
- package/dist/esm/models/components/credential.js.map +1 -1
- package/dist/esm/models/components/credentialstatus.d.ts +3 -0
- package/dist/esm/models/components/credentialstatus.d.ts.map +1 -1
- package/dist/esm/models/components/credentialstatus.js +1 -0
- package/dist/esm/models/components/credentialstatus.js.map +1 -1
- package/dist/esm/models/components/facilitycalendarsummary.d.ts +2 -0
- package/dist/esm/models/components/facilitycalendarsummary.d.ts.map +1 -1
- package/dist/esm/models/components/facilitycalendarsummary.js +4 -0
- package/dist/esm/models/components/facilitycalendarsummary.js.map +1 -1
- package/dist/esm/models/components/facilitysummary.d.ts +2 -0
- package/dist/esm/models/components/facilitysummary.d.ts.map +1 -1
- package/dist/esm/models/components/facilitysummary.js +4 -0
- package/dist/esm/models/components/facilitysummary.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +2 -0
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +4 -0
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/listvendorcredentials.d.ts +4 -4
- package/dist/esm/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorcredentials.js +4 -4
- package/dist/esm/models/operations/listvendorcredentials.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCredentials.d.ts +3 -3
- package/dist/esm/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/zones.test.ts +2 -5
- package/src/lib/config.ts +4 -4
- package/src/lib/url.ts +1 -1
- package/src/models/components/credential.ts +19 -10
- package/src/models/components/credentialstatus.ts +1 -0
- package/src/models/components/facilitycalendarsummary.ts +6 -0
- package/src/models/components/facilitysummary.ts +6 -0
- package/src/models/components/vendor.ts +6 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/listvendorcredentials.ts +8 -10
- package/src/react-query/vendorsListVendorCredentials.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vendorsListVendorCredentials.d.ts","sourceRoot":"","sources":["../../../src/react-query/vendorsListVendorCredentials.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACX,oBAAoB,EACpB,QAAQ,EAER,sBAAsB,EAEtB,cAAc,EAEd,8BAA8B,EAE9B,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,gCAAgC,EAChC,wBAAwB,EACxB,eAAe,EAChB,MAAM,aAAa,CAAC;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OAAO,CAAC,IAAI,CAAC,CAOf;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE;IACZ,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QACjC,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC;QACnC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAClC,gBAAgB,CAAC,EAAE,UAAU,CAAC,gBAAgB,GAAG,SAAS,CAAC;QAC3D,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"vendorsListVendorCredentials.d.ts","sourceRoot":"","sources":["../../../src/react-query/vendorsListVendorCredentials.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,WAAW,EACX,oBAAoB,EACpB,QAAQ,EAER,sBAAsB,EAEtB,cAAc,EAEd,8BAA8B,EAE9B,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,gCAAgC,EAChC,wBAAwB,EACxB,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,qCAAqC,GAC/C,UAAU,CAAC,6BAA6B,CAAC;AAE3C,MAAM,MAAM,6CAA6C,GAAG,YAAY,CACtE,UAAU,CAAC,6BAA6B,EACxC;IAAE,IAAI,E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AC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,GACA,QAAQ,CAQV"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -36,10 +36,7 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
36
36
|
},
|
|
37
37
|
items: [
|
|
38
38
|
{
|
|
39
|
-
facility: {
|
|
40
|
-
contacts: null,
|
|
41
|
-
vendorGuestPolicy: null,
|
|
42
|
-
},
|
|
39
|
+
facility: {},
|
|
43
40
|
},
|
|
44
41
|
{
|
|
45
42
|
facility: {},
|
|
@@ -61,7 +58,7 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
61
58
|
|
|
62
59
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
63
60
|
qrCode: "<value>",
|
|
64
|
-
zoneId:
|
|
61
|
+
zoneId: 544883,
|
|
65
62
|
});
|
|
66
63
|
expect(result).toBeDefined();
|
|
67
64
|
expect(result).toEqual({});
|
package/src/lib/config.ts
CHANGED
|
@@ -79,9 +79,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
79
79
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
|
-
openapiDocVersion: "0.0.
|
|
83
|
-
sdkVersion: "0.40.8-beta.
|
|
84
|
-
genVersion: "2.
|
|
82
|
+
openapiDocVersion: "0.0.6",
|
|
83
|
+
sdkVersion: "0.40.8-beta.26",
|
|
84
|
+
genVersion: "2.713.0",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.40.8-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.40.8-beta.26 2.713.0 0.0.6 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
package/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
|
@@ -45,11 +45,12 @@ export type CredentialStatus1 = ClosedEnum<typeof CredentialStatus1>;
|
|
|
45
45
|
*/
|
|
46
46
|
export type Credential = {
|
|
47
47
|
id: number;
|
|
48
|
+
appliesToCompany?: boolean | undefined;
|
|
48
49
|
name?: string | null | undefined;
|
|
49
50
|
description?: string | null | undefined;
|
|
50
51
|
credentialType?: CredentialType | undefined;
|
|
51
52
|
validFor?: ValidFor | undefined;
|
|
52
|
-
status?: CredentialStatus1 | undefined;
|
|
53
|
+
status?: CredentialStatus1 | null | undefined;
|
|
53
54
|
hasPricing?: boolean | undefined;
|
|
54
55
|
allowDecline?: boolean | undefined;
|
|
55
56
|
jsSchema?: string | null | undefined;
|
|
@@ -61,7 +62,7 @@ export type Credential = {
|
|
|
61
62
|
declineSubmittingText?: string | null | undefined;
|
|
62
63
|
declineDescription?: string | null | undefined;
|
|
63
64
|
requireDeclineFile?: boolean | undefined;
|
|
64
|
-
credentialDocuments?: Array<CredentialDocument | null> | undefined;
|
|
65
|
+
credentialDocuments?: Array<CredentialDocument | null> | null | undefined;
|
|
65
66
|
fileUrl?: string | null | undefined;
|
|
66
67
|
declineFileUrl?: string | null | undefined;
|
|
67
68
|
};
|
|
@@ -134,11 +135,12 @@ export const Credential$inboundSchema: z.ZodType<
|
|
|
134
135
|
unknown
|
|
135
136
|
> = z.object({
|
|
136
137
|
id: z.number().int(),
|
|
138
|
+
applies_to_company: z.boolean().optional(),
|
|
137
139
|
name: z.nullable(z.string()).optional(),
|
|
138
140
|
description: z.nullable(z.string()).optional(),
|
|
139
141
|
credential_type: CredentialType$inboundSchema.optional(),
|
|
140
142
|
valid_for: ValidFor$inboundSchema.optional(),
|
|
141
|
-
status: CredentialStatus1$inboundSchema.optional(),
|
|
143
|
+
status: z.nullable(CredentialStatus1$inboundSchema).optional(),
|
|
142
144
|
has_pricing: z.boolean().optional(),
|
|
143
145
|
allow_decline: z.boolean().optional(),
|
|
144
146
|
js_schema: z.nullable(z.string()).optional(),
|
|
@@ -150,13 +152,14 @@ export const Credential$inboundSchema: z.ZodType<
|
|
|
150
152
|
decline_submitting_text: z.nullable(z.string()).optional(),
|
|
151
153
|
decline_description: z.nullable(z.string()).optional(),
|
|
152
154
|
require_decline_file: z.boolean().optional(),
|
|
153
|
-
credential_documents: z.
|
|
154
|
-
z.nullable(z.lazy(() => CredentialDocument$inboundSchema)),
|
|
155
|
+
credential_documents: z.nullable(
|
|
156
|
+
z.array(z.nullable(z.lazy(() => CredentialDocument$inboundSchema))),
|
|
155
157
|
).optional(),
|
|
156
158
|
file_url: z.nullable(z.string()).optional(),
|
|
157
159
|
decline_file_url: z.nullable(z.string()).optional(),
|
|
158
160
|
}).transform((v) => {
|
|
159
161
|
return remap$(v, {
|
|
162
|
+
"applies_to_company": "appliesToCompany",
|
|
160
163
|
"credential_type": "credentialType",
|
|
161
164
|
"valid_for": "validFor",
|
|
162
165
|
"has_pricing": "hasPricing",
|
|
@@ -178,11 +181,12 @@ export const Credential$inboundSchema: z.ZodType<
|
|
|
178
181
|
/** @internal */
|
|
179
182
|
export type Credential$Outbound = {
|
|
180
183
|
id: number;
|
|
184
|
+
applies_to_company?: boolean | undefined;
|
|
181
185
|
name?: string | null | undefined;
|
|
182
186
|
description?: string | null | undefined;
|
|
183
187
|
credential_type?: string | undefined;
|
|
184
188
|
valid_for?: string | undefined;
|
|
185
|
-
status?: string | undefined;
|
|
189
|
+
status?: string | null | undefined;
|
|
186
190
|
has_pricing?: boolean | undefined;
|
|
187
191
|
allow_decline?: boolean | undefined;
|
|
188
192
|
js_schema?: string | null | undefined;
|
|
@@ -194,7 +198,10 @@ export type Credential$Outbound = {
|
|
|
194
198
|
decline_submitting_text?: string | null | undefined;
|
|
195
199
|
decline_description?: string | null | undefined;
|
|
196
200
|
require_decline_file?: boolean | undefined;
|
|
197
|
-
credential_documents?:
|
|
201
|
+
credential_documents?:
|
|
202
|
+
| Array<CredentialDocument$Outbound | null>
|
|
203
|
+
| null
|
|
204
|
+
| undefined;
|
|
198
205
|
file_url?: string | null | undefined;
|
|
199
206
|
decline_file_url?: string | null | undefined;
|
|
200
207
|
};
|
|
@@ -206,11 +213,12 @@ export const Credential$outboundSchema: z.ZodType<
|
|
|
206
213
|
Credential
|
|
207
214
|
> = z.object({
|
|
208
215
|
id: z.number().int(),
|
|
216
|
+
appliesToCompany: z.boolean().optional(),
|
|
209
217
|
name: z.nullable(z.string()).optional(),
|
|
210
218
|
description: z.nullable(z.string()).optional(),
|
|
211
219
|
credentialType: CredentialType$outboundSchema.optional(),
|
|
212
220
|
validFor: ValidFor$outboundSchema.optional(),
|
|
213
|
-
status: CredentialStatus1$outboundSchema.optional(),
|
|
221
|
+
status: z.nullable(CredentialStatus1$outboundSchema).optional(),
|
|
214
222
|
hasPricing: z.boolean().optional(),
|
|
215
223
|
allowDecline: z.boolean().optional(),
|
|
216
224
|
jsSchema: z.nullable(z.string()).optional(),
|
|
@@ -222,13 +230,14 @@ export const Credential$outboundSchema: z.ZodType<
|
|
|
222
230
|
declineSubmittingText: z.nullable(z.string()).optional(),
|
|
223
231
|
declineDescription: z.nullable(z.string()).optional(),
|
|
224
232
|
requireDeclineFile: z.boolean().optional(),
|
|
225
|
-
credentialDocuments: z.
|
|
226
|
-
z.nullable(z.lazy(() => CredentialDocument$outboundSchema)),
|
|
233
|
+
credentialDocuments: z.nullable(
|
|
234
|
+
z.array(z.nullable(z.lazy(() => CredentialDocument$outboundSchema))),
|
|
227
235
|
).optional(),
|
|
228
236
|
fileUrl: z.nullable(z.string()).optional(),
|
|
229
237
|
declineFileUrl: z.nullable(z.string()).optional(),
|
|
230
238
|
}).transform((v) => {
|
|
231
239
|
return remap$(v, {
|
|
240
|
+
appliesToCompany: "applies_to_company",
|
|
232
241
|
credentialType: "credential_type",
|
|
233
242
|
validFor: "valid_for",
|
|
234
243
|
hasPricing: "has_pricing",
|
|
@@ -24,6 +24,7 @@ export type FacilityCalendarSummaryVendorPolicy = {
|
|
|
24
24
|
export type FacilityCalendarSummary = {
|
|
25
25
|
id?: number | undefined;
|
|
26
26
|
name?: string | undefined;
|
|
27
|
+
systemId?: number | undefined;
|
|
27
28
|
vendorPolicy?: FacilityCalendarSummaryVendorPolicy | null | undefined;
|
|
28
29
|
allowUserAppointments?: boolean | undefined;
|
|
29
30
|
allowDeptAppointments?: boolean | undefined;
|
|
@@ -104,6 +105,7 @@ export const FacilityCalendarSummary$inboundSchema: z.ZodType<
|
|
|
104
105
|
> = z.object({
|
|
105
106
|
id: z.number().int().optional(),
|
|
106
107
|
name: z.string().optional(),
|
|
108
|
+
system_id: z.number().int().optional(),
|
|
107
109
|
vendor_policy: z.nullable(
|
|
108
110
|
z.lazy(() => FacilityCalendarSummaryVendorPolicy$inboundSchema),
|
|
109
111
|
).optional(),
|
|
@@ -111,6 +113,7 @@ export const FacilityCalendarSummary$inboundSchema: z.ZodType<
|
|
|
111
113
|
allow_dept_appointments: z.boolean().optional(),
|
|
112
114
|
}).transform((v) => {
|
|
113
115
|
return remap$(v, {
|
|
116
|
+
"system_id": "systemId",
|
|
114
117
|
"vendor_policy": "vendorPolicy",
|
|
115
118
|
"allow_user_appointments": "allowUserAppointments",
|
|
116
119
|
"allow_dept_appointments": "allowDeptAppointments",
|
|
@@ -121,6 +124,7 @@ export const FacilityCalendarSummary$inboundSchema: z.ZodType<
|
|
|
121
124
|
export type FacilityCalendarSummary$Outbound = {
|
|
122
125
|
id?: number | undefined;
|
|
123
126
|
name?: string | undefined;
|
|
127
|
+
system_id?: number | undefined;
|
|
124
128
|
vendor_policy?:
|
|
125
129
|
| FacilityCalendarSummaryVendorPolicy$Outbound
|
|
126
130
|
| null
|
|
@@ -137,6 +141,7 @@ export const FacilityCalendarSummary$outboundSchema: z.ZodType<
|
|
|
137
141
|
> = z.object({
|
|
138
142
|
id: z.number().int().optional(),
|
|
139
143
|
name: z.string().optional(),
|
|
144
|
+
systemId: z.number().int().optional(),
|
|
140
145
|
vendorPolicy: z.nullable(
|
|
141
146
|
z.lazy(() => FacilityCalendarSummaryVendorPolicy$outboundSchema),
|
|
142
147
|
).optional(),
|
|
@@ -144,6 +149,7 @@ export const FacilityCalendarSummary$outboundSchema: z.ZodType<
|
|
|
144
149
|
allowDeptAppointments: z.boolean().optional(),
|
|
145
150
|
}).transform((v) => {
|
|
146
151
|
return remap$(v, {
|
|
152
|
+
systemId: "system_id",
|
|
147
153
|
vendorPolicy: "vendor_policy",
|
|
148
154
|
allowUserAppointments: "allow_user_appointments",
|
|
149
155
|
allowDeptAppointments: "allow_dept_appointments",
|
|
@@ -24,6 +24,7 @@ export type VendorPolicy = {
|
|
|
24
24
|
export type FacilitySummary = {
|
|
25
25
|
id?: number | undefined;
|
|
26
26
|
name?: string | undefined;
|
|
27
|
+
systemId?: number | undefined;
|
|
27
28
|
vendorPolicy?: VendorPolicy | null | undefined;
|
|
28
29
|
};
|
|
29
30
|
|
|
@@ -93,10 +94,12 @@ export const FacilitySummary$inboundSchema: z.ZodType<
|
|
|
93
94
|
> = z.object({
|
|
94
95
|
id: z.number().int().optional(),
|
|
95
96
|
name: z.string().optional(),
|
|
97
|
+
system_id: z.number().int().optional(),
|
|
96
98
|
vendor_policy: z.nullable(z.lazy(() => VendorPolicy$inboundSchema))
|
|
97
99
|
.optional(),
|
|
98
100
|
}).transform((v) => {
|
|
99
101
|
return remap$(v, {
|
|
102
|
+
"system_id": "systemId",
|
|
100
103
|
"vendor_policy": "vendorPolicy",
|
|
101
104
|
});
|
|
102
105
|
});
|
|
@@ -105,6 +108,7 @@ export const FacilitySummary$inboundSchema: z.ZodType<
|
|
|
105
108
|
export type FacilitySummary$Outbound = {
|
|
106
109
|
id?: number | undefined;
|
|
107
110
|
name?: string | undefined;
|
|
111
|
+
system_id?: number | undefined;
|
|
108
112
|
vendor_policy?: VendorPolicy$Outbound | null | undefined;
|
|
109
113
|
};
|
|
110
114
|
|
|
@@ -116,10 +120,12 @@ export const FacilitySummary$outboundSchema: z.ZodType<
|
|
|
116
120
|
> = z.object({
|
|
117
121
|
id: z.number().int().optional(),
|
|
118
122
|
name: z.string().optional(),
|
|
123
|
+
systemId: z.number().int().optional(),
|
|
119
124
|
vendorPolicy: z.nullable(z.lazy(() => VendorPolicy$outboundSchema))
|
|
120
125
|
.optional(),
|
|
121
126
|
}).transform((v) => {
|
|
122
127
|
return remap$(v, {
|
|
128
|
+
systemId: "system_id",
|
|
123
129
|
vendorPolicy: "vendor_policy",
|
|
124
130
|
});
|
|
125
131
|
});
|
|
@@ -233,6 +233,7 @@ export type Vendor = {
|
|
|
233
233
|
pendingInvoice?: Invoice | number | null | undefined;
|
|
234
234
|
vendorGroups?: Array<VendorGroup | null> | null | undefined;
|
|
235
235
|
hasCredentialedFacilities?: boolean | null | undefined;
|
|
236
|
+
targetFacilitiesUpdated?: string | null | undefined;
|
|
236
237
|
};
|
|
237
238
|
|
|
238
239
|
/** @internal */
|
|
@@ -1106,6 +1107,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
1106
1107
|
vendor_groups: z.nullable(z.array(z.nullable(VendorGroup$inboundSchema)))
|
|
1107
1108
|
.optional(),
|
|
1108
1109
|
has_credentialed_facilities: z.nullable(z.boolean()).optional(),
|
|
1110
|
+
target_facilities_updated: z.nullable(z.string()).optional(),
|
|
1109
1111
|
}).transform((v) => {
|
|
1110
1112
|
return remap$(v, {
|
|
1111
1113
|
"email_recepient": "emailRecepient",
|
|
@@ -1131,6 +1133,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
1131
1133
|
"pending_invoice": "pendingInvoice",
|
|
1132
1134
|
"vendor_groups": "vendorGroups",
|
|
1133
1135
|
"has_credentialed_facilities": "hasCredentialedFacilities",
|
|
1136
|
+
"target_facilities_updated": "targetFacilitiesUpdated",
|
|
1134
1137
|
});
|
|
1135
1138
|
});
|
|
1136
1139
|
|
|
@@ -1173,6 +1176,7 @@ export type Vendor$Outbound = {
|
|
|
1173
1176
|
pending_invoice?: Invoice$Outbound | number | null | undefined;
|
|
1174
1177
|
vendor_groups?: Array<VendorGroup$Outbound | null> | null | undefined;
|
|
1175
1178
|
has_credentialed_facilities?: boolean | null | undefined;
|
|
1179
|
+
target_facilities_updated?: string | null | undefined;
|
|
1176
1180
|
};
|
|
1177
1181
|
|
|
1178
1182
|
/** @internal */
|
|
@@ -1234,6 +1238,7 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
1234
1238
|
vendorGroups: z.nullable(z.array(z.nullable(VendorGroup$outboundSchema)))
|
|
1235
1239
|
.optional(),
|
|
1236
1240
|
hasCredentialedFacilities: z.nullable(z.boolean()).optional(),
|
|
1241
|
+
targetFacilitiesUpdated: z.nullable(z.string()).optional(),
|
|
1237
1242
|
}).transform((v) => {
|
|
1238
1243
|
return remap$(v, {
|
|
1239
1244
|
emailRecepient: "email_recepient",
|
|
@@ -1259,6 +1264,7 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
1259
1264
|
pendingInvoice: "pending_invoice",
|
|
1260
1265
|
vendorGroups: "vendor_groups",
|
|
1261
1266
|
hasCredentialedFacilities: "has_credentialed_facilities",
|
|
1267
|
+
targetFacilitiesUpdated: "target_facilities_updated",
|
|
1262
1268
|
});
|
|
1263
1269
|
});
|
|
1264
1270
|
|
|
@@ -33,7 +33,7 @@ export type ListVendorCredentialsRequest = {
|
|
|
33
33
|
/**
|
|
34
34
|
* The ID associated with a medical facility
|
|
35
35
|
*/
|
|
36
|
-
facilityId?: number | undefined;
|
|
36
|
+
facilityId?: number | null | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* False will return credentials that apply to vendor's company
|
|
39
39
|
*/
|
|
@@ -66,7 +66,7 @@ export type Pager = {
|
|
|
66
66
|
* Pagination information for a pageable list
|
|
67
67
|
*/
|
|
68
68
|
pager: components.Pager;
|
|
69
|
-
items: Array<components.
|
|
69
|
+
items: Array<components.Credential | null>;
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
/**
|
|
@@ -97,7 +97,7 @@ export const ListVendorCredentialsRequest$inboundSchema: z.ZodType<
|
|
|
97
97
|
page: z.number().int().optional(),
|
|
98
98
|
items_per_page: z.number().int().optional(),
|
|
99
99
|
credential_status: components.CredentialStatus$inboundSchema.optional(),
|
|
100
|
-
facility_id: z.number().optional(),
|
|
100
|
+
facility_id: z.nullable(z.number()).optional(),
|
|
101
101
|
include_vc: z.number().optional(),
|
|
102
102
|
include_cc: z.number().optional(),
|
|
103
103
|
expedited: z.number().optional(),
|
|
@@ -121,7 +121,7 @@ export type ListVendorCredentialsRequest$Outbound = {
|
|
|
121
121
|
page?: number | undefined;
|
|
122
122
|
items_per_page?: number | undefined;
|
|
123
123
|
credential_status?: string | undefined;
|
|
124
|
-
facility_id?: number | undefined;
|
|
124
|
+
facility_id?: number | null | undefined;
|
|
125
125
|
include_vc?: number | undefined;
|
|
126
126
|
include_cc?: number | undefined;
|
|
127
127
|
expedited?: number | undefined;
|
|
@@ -140,7 +140,7 @@ export const ListVendorCredentialsRequest$outboundSchema: z.ZodType<
|
|
|
140
140
|
page: z.number().int().optional(),
|
|
141
141
|
itemsPerPage: z.number().int().optional(),
|
|
142
142
|
credentialStatus: components.CredentialStatus$outboundSchema.optional(),
|
|
143
|
-
facilityId: z.number().optional(),
|
|
143
|
+
facilityId: z.nullable(z.number()).optional(),
|
|
144
144
|
includeVc: z.number().optional(),
|
|
145
145
|
includeCc: z.number().optional(),
|
|
146
146
|
expedited: z.number().optional(),
|
|
@@ -247,15 +247,13 @@ export function credentialsFromJSON(
|
|
|
247
247
|
export const Pager$inboundSchema: z.ZodType<Pager, z.ZodTypeDef, unknown> = z
|
|
248
248
|
.object({
|
|
249
249
|
pager: components.Pager$inboundSchema,
|
|
250
|
-
items: z.array(
|
|
251
|
-
z.nullable(components.VendorCredentialSummary$inboundSchema),
|
|
252
|
-
),
|
|
250
|
+
items: z.array(z.nullable(components.Credential$inboundSchema)),
|
|
253
251
|
});
|
|
254
252
|
|
|
255
253
|
/** @internal */
|
|
256
254
|
export type Pager$Outbound = {
|
|
257
255
|
pager: components.Pager$Outbound;
|
|
258
|
-
items: Array<components.
|
|
256
|
+
items: Array<components.Credential$Outbound | null>;
|
|
259
257
|
};
|
|
260
258
|
|
|
261
259
|
/** @internal */
|
|
@@ -265,7 +263,7 @@ export const Pager$outboundSchema: z.ZodType<
|
|
|
265
263
|
Pager
|
|
266
264
|
> = z.object({
|
|
267
265
|
pager: components.Pager$outboundSchema,
|
|
268
|
-
items: z.array(z.nullable(components.
|
|
266
|
+
items: z.array(z.nullable(components.Credential$outboundSchema)),
|
|
269
267
|
});
|
|
270
268
|
|
|
271
269
|
/**
|
|
@@ -192,7 +192,7 @@ export function setVendorsListVendorCredentialsData(
|
|
|
192
192
|
page?: number | undefined;
|
|
193
193
|
itemsPerPage?: number | undefined;
|
|
194
194
|
credentialStatus?: components.CredentialStatus | undefined;
|
|
195
|
-
facilityId?: number | undefined;
|
|
195
|
+
facilityId?: number | null | undefined;
|
|
196
196
|
includeVc?: number | undefined;
|
|
197
197
|
includeCc?: number | undefined;
|
|
198
198
|
expedited?: number | undefined;
|
|
@@ -217,7 +217,7 @@ export function invalidateVendorsListVendorCredentials(
|
|
|
217
217
|
page?: number | undefined;
|
|
218
218
|
itemsPerPage?: number | undefined;
|
|
219
219
|
credentialStatus?: components.CredentialStatus | undefined;
|
|
220
|
-
facilityId?: number | undefined;
|
|
220
|
+
facilityId?: number | null | undefined;
|
|
221
221
|
includeVc?: number | undefined;
|
|
222
222
|
includeCc?: number | undefined;
|
|
223
223
|
expedited?: number | undefined;
|
|
@@ -356,7 +356,7 @@ export function queryKeyVendorsListVendorCredentials(
|
|
|
356
356
|
page?: number | undefined;
|
|
357
357
|
itemsPerPage?: number | undefined;
|
|
358
358
|
credentialStatus?: components.CredentialStatus | undefined;
|
|
359
|
-
facilityId?: number | undefined;
|
|
359
|
+
facilityId?: number | null | undefined;
|
|
360
360
|
includeVc?: number | undefined;
|
|
361
361
|
includeCc?: number | undefined;
|
|
362
362
|
expedited?: number | undefined;
|