@syngrisi/core-api
Advanced tools
Comparing version 2.2.0 to 2.2.3
@@ -63,13 +63,13 @@ import { z } from 'zod'; | ||
viewport: string; | ||
browserName: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
browserName: string; | ||
}, { | ||
name: string; | ||
viewport: string; | ||
browserName: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
browserName: string; | ||
}>; | ||
@@ -170,23 +170,23 @@ export type BaselineParams = z.infer<typeof BaselineParamsSchema>; | ||
}, "strip", z.ZodTypeAny, { | ||
_id: string; | ||
name: string; | ||
createdDate: string; | ||
status: (string | string[]) & (string | string[] | undefined); | ||
run: string; | ||
suite: string; | ||
name: string; | ||
viewport: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
browserName: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
browserName: string; | ||
updatedDate: string; | ||
_id: string; | ||
test: string; | ||
suite: string; | ||
baselineId: string; | ||
actualSnapshotId: string; | ||
updatedDate: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
result: string; | ||
run: string; | ||
creatorId: string; | ||
creatorUsername: string; | ||
failReasons: any[]; | ||
createdDate: string; | ||
currentSnapshot: { | ||
@@ -208,23 +208,23 @@ _id?: string | undefined; | ||
}, { | ||
_id: string; | ||
name: string; | ||
createdDate: string; | ||
status: (string | string[]) & (string | string[] | undefined); | ||
run: string; | ||
suite: string; | ||
name: string; | ||
viewport: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
browserName: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
browserName: string; | ||
updatedDate: string; | ||
_id: string; | ||
test: string; | ||
suite: string; | ||
baselineId: string; | ||
actualSnapshotId: string; | ||
updatedDate: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
result: string; | ||
run: string; | ||
creatorId: string; | ||
creatorUsername: string; | ||
failReasons: any[]; | ||
createdDate: string; | ||
currentSnapshot: { | ||
@@ -261,11 +261,11 @@ _id?: string | undefined; | ||
}, "strip", z.ZodTypeAny, { | ||
suite: string; | ||
name: string; | ||
viewport: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
browserName: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
browserName: string; | ||
suite: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
testId: string; | ||
@@ -275,11 +275,11 @@ hashCode: string; | ||
}, { | ||
suite: string; | ||
name: string; | ||
viewport: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
browserName: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
browserName: string; | ||
suite: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
testId: string; | ||
@@ -304,26 +304,26 @@ hashCode: string; | ||
}, "strip", z.ZodTypeAny, { | ||
run: string; | ||
suite: string; | ||
runident: string; | ||
name: string; | ||
viewport: string; | ||
browser: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
suite: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
run: string; | ||
runident: string; | ||
browser: string; | ||
tags?: string[] | undefined; | ||
}, { | ||
run: string; | ||
suite: string; | ||
runident: string; | ||
name: string; | ||
viewport: string; | ||
browser: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
suite: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
run: string; | ||
runident: string; | ||
browser: string; | ||
tags?: string[] | undefined; | ||
@@ -346,25 +346,25 @@ }>; | ||
}, "strip", z.ZodTypeAny, { | ||
run: string; | ||
suite: string; | ||
runident: string; | ||
name: string; | ||
viewport: string; | ||
browser: string; | ||
browserVersion: string | number; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
suite: string; | ||
browserVersion: string | number; | ||
run: string; | ||
runident: string; | ||
browser: string; | ||
tags?: string[] | undefined; | ||
browserFullVersion?: string | undefined; | ||
}, { | ||
run: string; | ||
suite: string; | ||
runident: string; | ||
name: string; | ||
viewport: string; | ||
browser: string; | ||
browserVersion: string | number; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
suite: string; | ||
browserVersion: string | number; | ||
run: string; | ||
runident: string; | ||
browser: string; | ||
tags?: string[] | undefined; | ||
@@ -418,36 +418,36 @@ browserFullVersion?: string | undefined; | ||
}, "strip", z.ZodTypeAny, { | ||
_id: string; | ||
name: string; | ||
status: string; | ||
run: string; | ||
suite: string; | ||
name: string; | ||
viewport: string; | ||
browserVersion: string; | ||
browserName: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
suite: string; | ||
updatedDate: string; | ||
browserVersion: string; | ||
run: string; | ||
tags: string[]; | ||
branch: string; | ||
browserName: string; | ||
blinking: number; | ||
updatedDate: string; | ||
startDate: string; | ||
checks: string[][]; | ||
_id: string; | ||
id: string; | ||
}, { | ||
_id: string; | ||
name: string; | ||
status: string; | ||
run: string; | ||
suite: string; | ||
name: string; | ||
viewport: string; | ||
browserVersion: string; | ||
browserName: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
suite: string; | ||
updatedDate: string; | ||
browserVersion: string; | ||
run: string; | ||
tags: string[]; | ||
branch: string; | ||
browserName: string; | ||
blinking: number; | ||
updatedDate: string; | ||
startDate: string; | ||
checks: string[][]; | ||
_id: string; | ||
id: string; | ||
@@ -454,0 +454,0 @@ }>; |
@@ -46,3 +46,3 @@ "use strict"; | ||
actualSnapshotId: idString, | ||
updatedDate: zod_1.z.string().min(1), | ||
updatedDate: zod_1.z.string().min(1), // This assumes ISO date string format | ||
status: checkStatusSchema, | ||
@@ -57,9 +57,9 @@ browserName: zod_1.z.string().min(1), | ||
os: zod_1.z.string().min(1), | ||
result: zod_1.z.string().min(1), | ||
result: zod_1.z.string().min(1), // Adjusted if a JSON object is needed | ||
run: idString, | ||
creatorId: idString, | ||
creatorUsername: zod_1.z.string().min(1), | ||
failReasons: zod_1.z.array(zod_1.z.any()), | ||
failReasons: zod_1.z.array(zod_1.z.any()), // Allows an array of any type, assuming failure reasons can vary in type | ||
_id: idString, | ||
createdDate: zod_1.z.string().min(1), | ||
createdDate: zod_1.z.string().min(1), // This assumes ISO date string format | ||
currentSnapshot: exports.SnapshotSchema, | ||
@@ -136,15 +136,15 @@ expectedSnapshot: exports.SnapshotSchema, | ||
branch: zod_1.z.string().min(1), | ||
tags: zod_1.z.array(zod_1.z.string()).min(1), | ||
tags: zod_1.z.array(zod_1.z.string()).min(1), // Assuming that an empty array is not allowed | ||
viewport: viewPort, | ||
os: zod_1.z.string().min(1), | ||
app: idString, | ||
app: idString, // Fixed length string for IDs | ||
blinking: zod_1.z.number(), | ||
updatedDate: zod_1.z.string().min(1), | ||
startDate: zod_1.z.string().min(1), | ||
checks: zod_1.z.array(zod_1.z.array(zod_1.z.string())), | ||
suite: idString, | ||
run: idString, | ||
_id: idString, | ||
updatedDate: zod_1.z.string().min(1), // You may want to refine this to a date-time string format | ||
startDate: zod_1.z.string().min(1), // Similar to updatedDate | ||
checks: zod_1.z.array(zod_1.z.array(zod_1.z.string())), // Placeholder for any type as specifics are not given | ||
suite: idString, // Fixed length string for IDs | ||
run: idString, // Fixed length string for IDs | ||
_id: idString, // Fixed length string for IDs | ||
id: idString, // Fixed length string for IDs | ||
}); | ||
//# sourceMappingURL=SyngrisiApi.schema.js.map |
@@ -285,4 +285,5 @@ "use strict"; | ||
(0, utils_1.paramsGuard)(params, 'getBaselines, params', SyngrisiApi_schema_1.BaselineParamsSchema); | ||
console.log('✅✅✅✅✅', params); | ||
try { | ||
const filter = JSON.stringify(params); | ||
const filter = encodeURIComponent(JSON.stringify(params)); | ||
const url = `${this.url('baselines')}?filter=${filter}&apikey=${this.config.apiHash}`; | ||
@@ -289,0 +290,0 @@ const result = await (0, got_cjs_1.default)(url) |
{ | ||
"name": "@syngrisi/core-api", | ||
"version": "2.2.0", | ||
"version": "2.2.3", | ||
"description": "Syngrisi Core JS client", | ||
@@ -54,3 +54,3 @@ "main": "dist/src/SyngrisiApi.js", | ||
}, | ||
"gitHead": "8d481deccdc1e5c0c053168812a12792aa674c66" | ||
"gitHead": "d5b7c9661e69189fcbb7f8e3ff119a725c69c737" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1452
165127