@syngrisi/core-api
Advanced tools
Comparing version 2.1.39-alpha.0 to 2.1.41-alpha.0
@@ -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; | ||
status: (string | string[]) & (string | string[] | undefined); | ||
run: string; | ||
suite: string; | ||
name: string; | ||
createdDate: string; | ||
status: (string | string[]) & (string | string[] | undefined); | ||
viewport: string; | ||
browserName: string; | ||
browserVersion: string | number; | ||
browserFullVersion: 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; | ||
status: (string | string[]) & (string | string[] | undefined); | ||
run: string; | ||
suite: string; | ||
name: string; | ||
createdDate: string; | ||
status: (string | string[]) & (string | string[] | undefined); | ||
viewport: string; | ||
browserName: string; | ||
browserVersion: string | number; | ||
browserFullVersion: 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; | ||
browserName: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
suite: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
browserName: string; | ||
testId: string; | ||
@@ -275,11 +275,11 @@ hashCode: string; | ||
}, { | ||
suite: string; | ||
name: string; | ||
viewport: string; | ||
browserName: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
os: string; | ||
app: string; | ||
branch: string; | ||
suite: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
browserName: 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; | ||
tags?: string[] | undefined; | ||
}, { | ||
run: string; | ||
suite: string; | ||
browserVersion: string | number; | ||
browserFullVersion: string; | ||
run: string; | ||
runident: string; | ||
browser: string; | ||
tags?: string[] | undefined; | ||
}, { | ||
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; | ||
status: string; | ||
run: string; | ||
suite: string; | ||
name: string; | ||
status: string; | ||
viewport: string; | ||
browserName: string; | ||
browserVersion: string; | ||
os: string; | ||
app: string; | ||
tags: string[]; | ||
branch: string; | ||
suite: string; | ||
browserName: string; | ||
blinking: number; | ||
updatedDate: string; | ||
browserVersion: string; | ||
run: string; | ||
tags: string[]; | ||
blinking: number; | ||
startDate: string; | ||
checks: string[][]; | ||
_id: string; | ||
id: string; | ||
}, { | ||
_id: string; | ||
status: string; | ||
run: string; | ||
suite: string; | ||
name: string; | ||
status: string; | ||
viewport: string; | ||
browserName: string; | ||
browserVersion: string; | ||
os: string; | ||
app: string; | ||
tags: string[]; | ||
branch: string; | ||
suite: string; | ||
browserName: string; | ||
blinking: number; | ||
updatedDate: string; | ||
browserVersion: string; | ||
run: string; | ||
tags: string[]; | ||
blinking: number; | ||
startDate: string; | ||
checks: string[][]; | ||
_id: string; | ||
id: string; | ||
@@ -454,0 +454,0 @@ }>; |
@@ -114,3 +114,3 @@ /// <reference types="node" /> | ||
private performCheck; | ||
getIdent(apiKey: string): Promise<string[] | ErrorObject>; | ||
getIdent(): Promise<string[] | ErrorObject>; | ||
/** | ||
@@ -117,0 +117,0 @@ * Retrieves the baselines associated with given filter from the Syngrisi service. |
@@ -252,4 +252,4 @@ "use strict"; | ||
} | ||
async getIdent(apiKey) { | ||
const url = `${this.url('getIdent')}?apikey=${(0, hasha_1.default)(apiKey)}`; | ||
async getIdent() { | ||
const url = `${this.url('getIdent')}?apikey=${this.config.apiHash}`; | ||
try { | ||
@@ -287,4 +287,4 @@ const result = await (0, got_cjs_1.default)(url).json(); | ||
try { | ||
const filter = JSON.stringify({ ...params, apikey: this.config.apiHash }); | ||
const url = `${this.url('baselines')}?filter=${filter}`; | ||
const filter = JSON.stringify(params); | ||
const url = `${this.url('baselines')}?filter=${filter}&apikey=${this.config.apiHash}`; | ||
const result = await (0, got_cjs_1.default)(url) | ||
@@ -295,3 +295,3 @@ .json(); | ||
catch (e) { | ||
log.error(`❌ Error getting baselines, params: ${JSON.stringify(params)} data, error: '${e.stack || e}'`); | ||
log.error(`❌ Error getting baselines, params: '${JSON.stringify(params)}' data, error: '${e.stack || e}'`); | ||
if (e.response) | ||
@@ -321,4 +321,4 @@ (0, utils_1.printErrorResponseBody)(e); | ||
(0, utils_1.paramsGuard)(params, 'getSnapshots, params', SyngrisiApi_schema_1.SnapshotSchema); | ||
const filter = JSON.stringify({ ...params, apikey: this.config.apiHash }); | ||
const url = `${this.url('snapshots')}?filter=${filter}`; | ||
const filter = JSON.stringify(params); | ||
const url = `${this.url('snapshots')}?filter=${filter}&apikey=${this.config.apiHash}`; | ||
const result = await got_cjs_1.default.get(url) | ||
@@ -329,3 +329,3 @@ .json(); | ||
catch (e) { | ||
log.error(`❌ Error getting snapshots, params: ${JSON.stringify(params)} data, error: '${e.stack || e}'`); | ||
log.error(`❌ Error getting snapshots, params: '${JSON.stringify(params)}' data, error: '${e.stack || e}'`); | ||
if (e.response) | ||
@@ -332,0 +332,0 @@ (0, utils_1.printErrorResponseBody)(e); |
{ | ||
"name": "@syngrisi/core-api", | ||
"version": "2.1.39-alpha.0", | ||
"version": "2.1.41-alpha.0", | ||
"description": "Syngrisi Core JS client", | ||
@@ -54,3 +54,3 @@ "main": "dist/src/SyngrisiApi.js", | ||
}, | ||
"gitHead": "d52d27e57b8015bffab869d0b32f4dea815c640f" | ||
"gitHead": "d3ce1d9e57edac9d8a32249dfc3f307c5c8fec55" | ||
} |
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
165717