@wopee-io/wopee.pw 4.17.1 → 4.17.2

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.
@@ -3,5 +3,5 @@ export interface VisualAssertOptions {
3
3
  page?: Page;
4
4
  imageBase64?: string;
5
5
  prompt: string;
6
- context: string;
6
+ context?: string | null;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"visualAssert.interface.js","sourceRoot":"","sources":["../../../../lib/core/domain/valueObjects/visualAssert.interface.ts"],"names":[],"mappings":"","sourcesContent":["import { Page } from '@playwright/test';\n\nexport interface VisualAssertOptions {\n page?: Page;\n imageBase64?: string;\n prompt: string;\n context: string;\n}\n"]}
1
+ {"version":3,"file":"visualAssert.interface.js","sourceRoot":"","sources":["../../../../lib/core/domain/valueObjects/visualAssert.interface.ts"],"names":[],"mappings":"","sourcesContent":["import { Page } from '@playwright/test';\n\nexport interface VisualAssertOptions {\n page?: Page;\n imageBase64?: string;\n prompt: string;\n context?: string | null;\n}\n"]}
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.logVersionMetadata = void 0;
4
4
  const child_process_1 = require("child_process");
5
5
  const logVersionMetadata = () => {
6
- let version = "4.17.1"
7
- let hash = "e32568a3a2dcda18950b097c2c27cf3a67cda7e5"
6
+ let version = "4.17.2"
7
+ let hash = "0b00e8019f7b2813bef5cf0ec6898704929dd380"
8
8
  if (version === '__LOCAL__') {
9
9
  version = process.env.npm_package_version || '__LOCAL__';
10
10
  }
@@ -1,16 +1,16 @@
1
1
  import { z } from 'zod';
2
2
  declare const VisualAssertPayloadSchema: z.ZodObject<{
3
- context: z.ZodString;
3
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
4
  prompt: z.ZodString;
5
5
  imageBase64: z.ZodString;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  prompt: string;
8
8
  imageBase64: string;
9
- context: string;
9
+ context?: string | null | undefined;
10
10
  }, {
11
11
  prompt: string;
12
12
  imageBase64: string;
13
- context: string;
13
+ context?: string | null | undefined;
14
14
  }>;
15
15
  type VisualAssertPayload = z.infer<typeof VisualAssertPayloadSchema>;
16
16
  export { VisualAssertPayload, VisualAssertPayloadSchema };
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VisualAssertPayloadSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const VisualAssertPayloadSchema = zod_1.z.object({
6
- context: zod_1.z.string(),
6
+ context: zod_1.z.string().nullable().optional(),
7
7
  prompt: zod_1.z.string(),
8
8
  imageBase64: zod_1.z.string(),
9
9
  });
@@ -246,33 +246,33 @@ type CreateIntegrationStepApolloResponse = z.infer<typeof CreateIntegrationStepA
246
246
  declare const VisualAssertApolloPayloadSchema: z.ZodObject<{
247
247
  input: z.ZodObject<{
248
248
  prompt: z.ZodString;
249
- context: z.ZodString;
249
+ context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
250
  imageBase64: z.ZodString;
251
251
  projectUuid: z.ZodString;
252
252
  }, "strip", z.ZodTypeAny, {
253
253
  prompt: string;
254
254
  imageBase64: string;
255
- context: string;
256
255
  projectUuid: string;
256
+ context?: string | null | undefined;
257
257
  }, {
258
258
  prompt: string;
259
259
  imageBase64: string;
260
- context: string;
261
260
  projectUuid: string;
261
+ context?: string | null | undefined;
262
262
  }>;
263
263
  }, "strip", z.ZodTypeAny, {
264
264
  input: {
265
265
  prompt: string;
266
266
  imageBase64: string;
267
- context: string;
268
267
  projectUuid: string;
268
+ context?: string | null | undefined;
269
269
  };
270
270
  }, {
271
271
  input: {
272
272
  prompt: string;
273
273
  imageBase64: string;
274
- context: string;
275
274
  projectUuid: string;
275
+ context?: string | null | undefined;
276
276
  };
277
277
  }>;
278
278
  type VisualAssertApolloPayload = z.infer<typeof VisualAssertApolloPayloadSchema>;
@@ -86,7 +86,7 @@ exports.CreateIntegrationStepApolloResponseSchema = CreateIntegrationStepApolloR
86
86
  const VisualAssertApolloPayloadSchema = zod_1.z.object({
87
87
  input: zod_1.z.object({
88
88
  prompt: zod_1.z.string(),
89
- context: zod_1.z.string(),
89
+ context: zod_1.z.string().nullable().optional(),
90
90
  imageBase64: zod_1.z.string(),
91
91
  projectUuid: zod_1.z.string(),
92
92
  }),
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hash = exports.version = void 0;
4
- exports.version = "3.5.1"
5
- exports.hash = "ab3ccb53c9699b3472cb99a2dfeb25ef8290f475"
4
+ exports.version = "3.5.2"
5
+ exports.hash = "0cf39a6e836e45ee70d7abc52e6608749fb6693c"
6
6
  //# sourceMappingURL=versionMetadata.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autonomous-testing/sdk",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
4
4
  "scripts": {
5
5
  "build:win": "rm -rf ./build/ && npx tsc && node utils/addVersionToBuild.mjs"
6
6
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wopee-io/wopee.pw",
3
- "version": "4.17.1",
3
+ "version": "4.17.2",
4
4
  "description": "Wopee's Playwright integration.",
5
5
  "keywords": [
6
6
  "visual testing",
@@ -26,8 +26,8 @@
26
26
  "types": "./build/index.d.ts",
27
27
  "type": "commonjs",
28
28
  "dependencies": {
29
- "@autonomous-testing/sdk": "3.5.1",
30
- "dotenv": "^16.4.7",
29
+ "@autonomous-testing/sdk": "3.5.2",
30
+ "dotenv": "^16.5.0",
31
31
  "lodash": "^4.17.21"
32
32
  },
33
33
  "devDependencies": {