@moreapp/common-nodejs 0.7.10 → 0.7.11

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/schema.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ export declare const EmailAddressSchema: z.ZodEffects<z.ZodString, string, string>;
2
3
  export declare const FormVersionFieldSchema: z.ZodObject<{
3
4
  uid: z.ZodString;
4
5
  properties: z.ZodObject<{
@@ -113,7 +114,7 @@ export declare const SubmissionSchema: z.ZodObject<{
113
114
  data: z.ZodRecord<z.ZodString, z.ZodAny>;
114
115
  mailStatuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
115
116
  pdfFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
- emailAddresses: z.ZodArray<z.ZodString, "many">;
117
+ emailAddresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
117
118
  }, "strip", z.ZodTypeAny, {
118
119
  emailAddresses: string[];
119
120
  pdfFileId?: string | null | undefined;
@@ -265,7 +266,7 @@ export declare const BaseIntegrationRequestSchema: z.ZodObject<{
265
266
  data: z.ZodRecord<z.ZodString, z.ZodAny>;
266
267
  mailStatuses: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
267
268
  pdfFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
- emailAddresses: z.ZodArray<z.ZodString, "many">;
269
+ emailAddresses: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
269
270
  }, "strip", z.ZodTypeAny, {
270
271
  emailAddresses: string[];
271
272
  pdfFileId?: string | null | undefined;
package/dist/schema.js CHANGED
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BaseIntegrationRequestSchema = exports.SubmissionSchema = exports.FormVersionSchema = exports.FormVersionFieldSchema = void 0;
3
+ exports.BaseIntegrationRequestSchema = exports.SubmissionSchema = exports.FormVersionSchema = exports.FormVersionFieldSchema = exports.EmailAddressSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const utils_1 = require("./utils");
6
+ exports.EmailAddressSchema = zod_1.z
7
+ .string()
8
+ .trim()
9
+ .refine((val) => (0, utils_1.isValidEmail)(val));
5
10
  exports.FormVersionFieldSchema = zod_1.z.object({
6
11
  uid: zod_1.z.string(),
7
12
  properties: zod_1.z.object({
@@ -36,7 +41,7 @@ exports.SubmissionSchema = zod_1.z.object({
36
41
  mailStatuses: zod_1.z
37
42
  .array(zod_1.z.object({
38
43
  pdfFileId: zod_1.z.string().nullish(),
39
- emailAddresses: zod_1.z.array(zod_1.z.string().email()),
44
+ emailAddresses: zod_1.z.array(exports.EmailAddressSchema),
40
45
  }))
41
46
  .nullish(),
42
47
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moreapp/common-nodejs",
3
- "version": "0.7.10",
3
+ "version": "0.7.11",
4
4
  "license": "UNLICENSED",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  "@google-cloud/opentelemetry-cloud-trace-exporter": "2.1.0",
24
24
  "@opentelemetry/api": "1.4.1",
25
25
  "@opentelemetry/instrumentation": "0.41.2",
26
- "@opentelemetry/instrumentation-dns": "0.32.4",
26
+ "@opentelemetry/instrumentation-dns": "0.32.5",
27
27
  "@opentelemetry/instrumentation-express": "0.33.3",
28
28
  "@opentelemetry/instrumentation-http": "0.41.2",
29
29
  "@opentelemetry/instrumentation-winston": "0.32.2",
@@ -37,24 +37,24 @@
37
37
  "zod": "3.22.4"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/jest": "29.5.10",
40
+ "@types/jest": "29.5.11",
41
41
  "@types/lodash": "4.14.202",
42
42
  "@types/node": "18.17.19",
43
- "@typescript-eslint/eslint-plugin": "5.62.0",
44
- "@typescript-eslint/parser": "5.62.0",
43
+ "@typescript-eslint/eslint-plugin": "6.20.0",
44
+ "@typescript-eslint/parser": "6.20.0",
45
45
  "eslint": "8.48.0",
46
46
  "eslint-config-airbnb-typescript": "17.1.0",
47
- "eslint-config-prettier": "8.10.0",
47
+ "eslint-config-prettier": "9.1.0",
48
48
  "eslint-plugin-import": "2.28.1",
49
- "eslint-plugin-prettier": "4.2.1",
50
- "husky": "8.0.3",
49
+ "eslint-plugin-prettier": "5.1.3",
50
+ "husky": "9.0.7",
51
51
  "jest": "29.6.4",
52
52
  "jest-mock-extended": "3.0.5",
53
- "lint-staged": "13.3.0",
53
+ "lint-staged": "15.2.1",
54
54
  "nock": "13.3.8",
55
- "prettier": "2.8.8",
56
- "ts-jest": "29.1.1",
57
- "ts-node": "10.9.1",
55
+ "prettier": "3.2.4",
56
+ "ts-jest": "29.1.2",
57
+ "ts-node": "10.9.2",
58
58
  "typescript": "5.2.2"
59
59
  },
60
60
  "prettier": {