@8ms/helpers 3.2.3 → 3.2.5

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.
Files changed (29) hide show
  1. package/dist/environment/_shared/environment.cjs +8 -4
  2. package/dist/environment/_shared/environment.d.cts +1 -0
  3. package/dist/environment/_shared/environment.d.mts +1 -0
  4. package/dist/environment/_shared/environment.mjs +8 -5
  5. package/dist/environment/_shared/index.cjs +1 -0
  6. package/dist/environment/_shared/index.d.cts +2 -2
  7. package/dist/environment/_shared/index.d.mts +2 -2
  8. package/dist/environment/_shared/index.mjs +2 -2
  9. package/dist/environment/client/index.cjs +1 -0
  10. package/dist/environment/client/index.d.cts +2 -2
  11. package/dist/environment/client/index.d.mts +2 -2
  12. package/dist/environment/client/index.mjs +2 -2
  13. package/dist/environment/server/index.cjs +1 -0
  14. package/dist/environment/server/index.d.cts +2 -2
  15. package/dist/environment/server/index.d.mts +2 -2
  16. package/dist/environment/server/index.mjs +2 -2
  17. package/dist/googleCloud/bigquery/_shared/field/bqNullableString.cjs +11 -0
  18. package/dist/googleCloud/bigquery/_shared/field/bqNullableString.d.cts +9 -0
  19. package/dist/googleCloud/bigquery/_shared/field/bqNullableString.d.mts +9 -0
  20. package/dist/googleCloud/bigquery/_shared/field/bqNullableString.mjs +10 -0
  21. package/dist/googleCloud/bigquery/_shared/lookup/country.cjs +3 -2
  22. package/dist/googleCloud/bigquery/_shared/lookup/country.d.cts +2 -2
  23. package/dist/googleCloud/bigquery/_shared/lookup/country.d.mts +2 -2
  24. package/dist/googleCloud/bigquery/_shared/lookup/country.mjs +3 -2
  25. package/dist/googleCloud/bigquery/_shared/lookup/language.cjs +3 -2
  26. package/dist/googleCloud/bigquery/_shared/lookup/language.d.cts +2 -2
  27. package/dist/googleCloud/bigquery/_shared/lookup/language.d.mts +2 -2
  28. package/dist/googleCloud/bigquery/_shared/lookup/language.mjs +3 -2
  29. package/package.json +5 -1
@@ -34,12 +34,15 @@ const getEnvironment = () => {
34
34
  }
35
35
  return response;
36
36
  };
37
+ const getPlatform = () => {
38
+ return (process.env?.["EMS_PLATFORM"] ?? process.env?.["NEXT_PUBLIC_EMS_PLATFORM"] ?? "").toUpperCase();
39
+ };
37
40
  /**
38
41
  * Check to see if we are working on AWS Lambda.
39
42
  */
40
- const isAws = () => platform.AWS === process.env["EMS_PLATFORM"];
41
- const isVercel = () => platform.VERCEL === process.env["EMS_PLATFORM"];
42
- const isGoogleCloud = () => platform.GCP === process.env["EMS_PLATFORM"];
43
+ const isAws = () => platform.AWS === getPlatform();
44
+ const isVercel = () => platform.VERCEL === getPlatform();
45
+ const isGoogleCloud = () => platform.GCP === getPlatform();
43
46
  /**
44
47
  * Some code should only run on the server side to protect the data.
45
48
  */
@@ -53,10 +56,11 @@ const isProduction = () => environment.PRODUCTION === getEnvironment();
53
56
  /**
54
57
  * Check to see if we are developing locally or on the hosted platform.
55
58
  */
56
- const isLocalhost = () => platform.LOCALHOST === process.env["EMS_PLATFORM"];
59
+ const isLocalhost = () => platform.LOCALHOST === getPlatform();
57
60
  //#endregion
58
61
  exports.environment = environment;
59
62
  exports.getEnvironment = getEnvironment;
63
+ exports.getPlatform = getPlatform;
60
64
  exports.isAws = isAws;
61
65
  exports.isDevelopment = isDevelopment;
62
66
  exports.isGoogleCloud = isGoogleCloud;
@@ -16,6 +16,7 @@ export type Platform = typeof platform[keyof typeof platform];
16
16
  * Determine the environment we're using.
17
17
  */
18
18
  export declare const getEnvironment: () => Environment;
19
+ export declare const getPlatform: () => string;
19
20
  /**
20
21
  * Check to see if we are working on AWS Lambda.
21
22
  */
@@ -16,6 +16,7 @@ export type Platform = typeof platform[keyof typeof platform];
16
16
  * Determine the environment we're using.
17
17
  */
18
18
  export declare const getEnvironment: () => Environment;
19
+ export declare const getPlatform: () => string;
19
20
  /**
20
21
  * Check to see if we are working on AWS Lambda.
21
22
  */
@@ -33,12 +33,15 @@ const getEnvironment = () => {
33
33
  }
34
34
  return response;
35
35
  };
36
+ const getPlatform = () => {
37
+ return (process.env?.["EMS_PLATFORM"] ?? process.env?.["NEXT_PUBLIC_EMS_PLATFORM"] ?? "").toUpperCase();
38
+ };
36
39
  /**
37
40
  * Check to see if we are working on AWS Lambda.
38
41
  */
39
- const isAws = () => platform.AWS === process.env["EMS_PLATFORM"];
40
- const isVercel = () => platform.VERCEL === process.env["EMS_PLATFORM"];
41
- const isGoogleCloud = () => platform.GCP === process.env["EMS_PLATFORM"];
42
+ const isAws = () => platform.AWS === getPlatform();
43
+ const isVercel = () => platform.VERCEL === getPlatform();
44
+ const isGoogleCloud = () => platform.GCP === getPlatform();
42
45
  /**
43
46
  * Some code should only run on the server side to protect the data.
44
47
  */
@@ -52,6 +55,6 @@ const isProduction = () => environment.PRODUCTION === getEnvironment();
52
55
  /**
53
56
  * Check to see if we are developing locally or on the hosted platform.
54
57
  */
55
- const isLocalhost = () => platform.LOCALHOST === process.env["EMS_PLATFORM"];
58
+ const isLocalhost = () => platform.LOCALHOST === getPlatform();
56
59
  //#endregion
57
- export { environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
60
+ export { environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -2,6 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_environment__shared_environment = require("./environment.cjs");
3
3
  exports.environment = require_environment__shared_environment.environment;
4
4
  exports.getEnvironment = require_environment__shared_environment.getEnvironment;
5
+ exports.getPlatform = require_environment__shared_environment.getPlatform;
5
6
  exports.isAws = require_environment__shared_environment.isAws;
6
7
  exports.isDevelopment = require_environment__shared_environment.isDevelopment;
7
8
  exports.isGoogleCloud = require_environment__shared_environment.isGoogleCloud;
@@ -1,2 +1,2 @@
1
- import { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "./environment.cjs";
2
- export { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
1
+ import { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "./environment.cjs";
2
+ export { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -1,2 +1,2 @@
1
- import { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "./environment.mjs";
2
- export { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
1
+ import { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "./environment.mjs";
2
+ export { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -1,2 +1,2 @@
1
- import { environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "./environment.mjs";
2
- export { environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
1
+ import { environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "./environment.mjs";
2
+ export { environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -2,6 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_environment__shared_environment = require("../_shared/environment.cjs");
3
3
  exports.environment = require_environment__shared_environment.environment;
4
4
  exports.getEnvironment = require_environment__shared_environment.getEnvironment;
5
+ exports.getPlatform = require_environment__shared_environment.getPlatform;
5
6
  exports.isAws = require_environment__shared_environment.isAws;
6
7
  exports.isDevelopment = require_environment__shared_environment.isDevelopment;
7
8
  exports.isGoogleCloud = require_environment__shared_environment.isGoogleCloud;
@@ -1,2 +1,2 @@
1
- import { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.cjs";
2
- export { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
1
+ import { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.cjs";
2
+ export { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -1,2 +1,2 @@
1
- import { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.mjs";
2
- export { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
1
+ import { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.mjs";
2
+ export { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -1,2 +1,2 @@
1
- import { environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.mjs";
2
- export { environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
1
+ import { environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.mjs";
2
+ export { environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -2,6 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_environment__shared_environment = require("../_shared/environment.cjs");
3
3
  exports.environment = require_environment__shared_environment.environment;
4
4
  exports.getEnvironment = require_environment__shared_environment.getEnvironment;
5
+ exports.getPlatform = require_environment__shared_environment.getPlatform;
5
6
  exports.isAws = require_environment__shared_environment.isAws;
6
7
  exports.isDevelopment = require_environment__shared_environment.isDevelopment;
7
8
  exports.isGoogleCloud = require_environment__shared_environment.isGoogleCloud;
@@ -1,2 +1,2 @@
1
- import { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.cjs";
2
- export { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
1
+ import { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.cjs";
2
+ export { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -1,2 +1,2 @@
1
- import { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.mjs";
2
- export { Environment, Platform, environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
1
+ import { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.mjs";
2
+ export { Environment, Platform, environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -1,2 +1,2 @@
1
- import { environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.mjs";
2
- export { environment, getEnvironment, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
1
+ import { environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform } from "../_shared/environment.mjs";
2
+ export { environment, getEnvironment, getPlatform, isAws, isDevelopment, isGoogleCloud, isLocalhost, isProduction, isServer, isStaging, isVercel, platform };
@@ -0,0 +1,11 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let zod = require("zod");
3
+ //#region src/googleCloud/bigquery/_shared/field/bqNullableString.ts
4
+ /**
5
+ * BigQuery's Node client returns small INT64 values as a native `number` and only falls back to
6
+ * `string` once precision would be lost - so an INT64/NUMERIC column stored as an id (e.g.
7
+ * google_ads_id) can't be trusted to always arrive as a string. Coerce defensively instead.
8
+ */
9
+ const BQNullableStringCoerce = zod.z.preprocess((value) => null === value || void 0 === value ? null : String(value), zod.z.string().nullable());
10
+ //#endregion
11
+ exports.BQNullableStringCoerce = BQNullableStringCoerce;
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ //#region src/googleCloud/bigquery/_shared/field/bqNullableString.d.ts
3
+ /**
4
+ * BigQuery's Node client returns small INT64 values as a native `number` and only falls back to
5
+ * `string` once precision would be lost - so an INT64/NUMERIC column stored as an id (e.g.
6
+ * google_ads_id) can't be trusted to always arrive as a string. Coerce defensively instead.
7
+ */
8
+ export declare const BQNullableStringCoerce: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
9
+ //#endregion
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ //#region src/googleCloud/bigquery/_shared/field/bqNullableString.d.ts
3
+ /**
4
+ * BigQuery's Node client returns small INT64 values as a native `number` and only falls back to
5
+ * `string` once precision would be lost - so an INT64/NUMERIC column stored as an id (e.g.
6
+ * google_ads_id) can't be trusted to always arrive as a string. Coerce defensively instead.
7
+ */
8
+ export declare const BQNullableStringCoerce: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
9
+ //#endregion
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ //#region src/googleCloud/bigquery/_shared/field/bqNullableString.ts
3
+ /**
4
+ * BigQuery's Node client returns small INT64 values as a native `number` and only falls back to
5
+ * `string` once precision would be lost - so an INT64/NUMERIC column stored as an id (e.g.
6
+ * google_ads_id) can't be trusted to always arrive as a string. Coerce defensively instead.
7
+ */
8
+ const BQNullableStringCoerce = z.preprocess((value) => null === value || void 0 === value ? null : String(value), z.string().nullable());
9
+ //#endregion
10
+ export { BQNullableStringCoerce };
@@ -1,5 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_googleCloud_bigquery__shared_field_bqDateTime = require("../field/bqDateTime.cjs");
3
+ const require_googleCloud_bigquery__shared_field_bqNullableString = require("../field/bqNullableString.cjs");
3
4
  let zod = require("zod");
4
5
  //#region src/googleCloud/bigquery/_shared/lookup/country.ts
5
6
  /**
@@ -11,8 +12,8 @@ const countryBQRow = zod.z.object({
11
12
  country: zod.z.string(),
12
13
  alpha2: zod.z.string().nullable(),
13
14
  alpha3: zod.z.string().nullable(),
14
- google_ads_id: zod.z.string().nullable(),
15
- meta_id: zod.z.string().nullable(),
15
+ google_ads_id: require_googleCloud_bigquery__shared_field_bqNullableString.BQNullableStringCoerce,
16
+ meta_id: require_googleCloud_bigquery__shared_field_bqNullableString.BQNullableStringCoerce,
16
17
  inserted_at: require_googleCloud_bigquery__shared_field_bqDateTime.BQDateTime.transform(require_googleCloud_bigquery__shared_field_bqDateTime.decodeBQDateTime)
17
18
  });
18
19
  //#endregion
@@ -9,8 +9,8 @@ export declare const countryBQRow: z.ZodObject<{
9
9
  country: z.ZodString;
10
10
  alpha2: z.ZodNullable<z.ZodString>;
11
11
  alpha3: z.ZodNullable<z.ZodString>;
12
- google_ads_id: z.ZodNullable<z.ZodString>;
13
- meta_id: z.ZodNullable<z.ZodString>;
12
+ google_ads_id: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
13
+ meta_id: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
14
14
  inserted_at: z.ZodPipe<z.ZodObject<{
15
15
  value: z.ZodISODateTime;
16
16
  }, z.core.$strip>, z.ZodTransform<import("luxon").DateTime<boolean>, {
@@ -9,8 +9,8 @@ export declare const countryBQRow: z.ZodObject<{
9
9
  country: z.ZodString;
10
10
  alpha2: z.ZodNullable<z.ZodString>;
11
11
  alpha3: z.ZodNullable<z.ZodString>;
12
- google_ads_id: z.ZodNullable<z.ZodString>;
13
- meta_id: z.ZodNullable<z.ZodString>;
12
+ google_ads_id: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
13
+ meta_id: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
14
14
  inserted_at: z.ZodPipe<z.ZodObject<{
15
15
  value: z.ZodISODateTime;
16
16
  }, z.core.$strip>, z.ZodTransform<import("luxon").DateTime<boolean>, {
@@ -1,4 +1,5 @@
1
1
  import { BQDateTime, decodeBQDateTime } from "../field/bqDateTime.mjs";
2
+ import { BQNullableStringCoerce } from "../field/bqNullableString.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/googleCloud/bigquery/_shared/lookup/country.ts
4
5
  /**
@@ -10,8 +11,8 @@ const countryBQRow = z.object({
10
11
  country: z.string(),
11
12
  alpha2: z.string().nullable(),
12
13
  alpha3: z.string().nullable(),
13
- google_ads_id: z.string().nullable(),
14
- meta_id: z.string().nullable(),
14
+ google_ads_id: BQNullableStringCoerce,
15
+ meta_id: BQNullableStringCoerce,
15
16
  inserted_at: BQDateTime.transform(decodeBQDateTime)
16
17
  });
17
18
  //#endregion
@@ -1,5 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_googleCloud_bigquery__shared_field_bqDateTime = require("../field/bqDateTime.cjs");
3
+ const require_googleCloud_bigquery__shared_field_bqNullableString = require("../field/bqNullableString.cjs");
3
4
  let zod = require("zod");
4
5
  //#region src/googleCloud/bigquery/_shared/lookup/language.ts
5
6
  /**
@@ -10,8 +11,8 @@ let zod = require("zod");
10
11
  const languageBQRow = zod.z.object({
11
12
  language: zod.z.string(),
12
13
  iso2: zod.z.string().nullable(),
13
- google_ads_id: zod.z.string().nullable(),
14
- meta_id: zod.z.string().nullable(),
14
+ google_ads_id: require_googleCloud_bigquery__shared_field_bqNullableString.BQNullableStringCoerce,
15
+ meta_id: require_googleCloud_bigquery__shared_field_bqNullableString.BQNullableStringCoerce,
15
16
  inserted_at: require_googleCloud_bigquery__shared_field_bqDateTime.BQDateTime.transform(require_googleCloud_bigquery__shared_field_bqDateTime.decodeBQDateTime)
16
17
  });
17
18
  //#endregion
@@ -8,8 +8,8 @@ import { z } from "zod";
8
8
  export declare const languageBQRow: z.ZodObject<{
9
9
  language: z.ZodString;
10
10
  iso2: z.ZodNullable<z.ZodString>;
11
- google_ads_id: z.ZodNullable<z.ZodString>;
12
- meta_id: z.ZodNullable<z.ZodString>;
11
+ google_ads_id: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
12
+ meta_id: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
13
13
  inserted_at: z.ZodPipe<z.ZodObject<{
14
14
  value: z.ZodISODateTime;
15
15
  }, z.core.$strip>, z.ZodTransform<import("luxon").DateTime<boolean>, {
@@ -8,8 +8,8 @@ import { z } from "zod";
8
8
  export declare const languageBQRow: z.ZodObject<{
9
9
  language: z.ZodString;
10
10
  iso2: z.ZodNullable<z.ZodString>;
11
- google_ads_id: z.ZodNullable<z.ZodString>;
12
- meta_id: z.ZodNullable<z.ZodString>;
11
+ google_ads_id: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
12
+ meta_id: z.ZodPreprocess<z.ZodNullable<z.ZodString>, unknown>;
13
13
  inserted_at: z.ZodPipe<z.ZodObject<{
14
14
  value: z.ZodISODateTime;
15
15
  }, z.core.$strip>, z.ZodTransform<import("luxon").DateTime<boolean>, {
@@ -1,4 +1,5 @@
1
1
  import { BQDateTime, decodeBQDateTime } from "../field/bqDateTime.mjs";
2
+ import { BQNullableStringCoerce } from "../field/bqNullableString.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/googleCloud/bigquery/_shared/lookup/language.ts
4
5
  /**
@@ -9,8 +10,8 @@ import { z } from "zod";
9
10
  const languageBQRow = z.object({
10
11
  language: z.string(),
11
12
  iso2: z.string().nullable(),
12
- google_ads_id: z.string().nullable(),
13
- meta_id: z.string().nullable(),
13
+ google_ads_id: BQNullableStringCoerce,
14
+ meta_id: BQNullableStringCoerce,
14
15
  inserted_at: BQDateTime.transform(decodeBQDateTime)
15
16
  });
16
17
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
3
  "license": "UNLICENSED",
4
- "version": "3.2.3",
4
+ "version": "3.2.5",
5
5
  "packageManager": "yarn@4.18.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -991,6 +991,10 @@
991
991
  "import": "./dist/googleCloud/bigquery/_shared/field/bqInt64.mjs",
992
992
  "require": "./dist/googleCloud/bigquery/_shared/field/bqInt64.cjs"
993
993
  },
994
+ "./googleCloud/bigquery/_shared/field/bqNullableString": {
995
+ "import": "./dist/googleCloud/bigquery/_shared/field/bqNullableString.mjs",
996
+ "require": "./dist/googleCloud/bigquery/_shared/field/bqNullableString.cjs"
997
+ },
994
998
  "./googleCloud/bigquery/_shared/field/bqNumeric": {
995
999
  "import": "./dist/googleCloud/bigquery/_shared/field/bqNumeric.mjs",
996
1000
  "require": "./dist/googleCloud/bigquery/_shared/field/bqNumeric.cjs"