@8ms/helpers 3.2.14 → 3.2.16
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/adverity/server/getJobs.cjs +1 -1
- package/dist/adverity/server/getJobs.mjs +1 -1
- package/dist/api/_shared/index.cjs +1 -1
- package/dist/api/_shared/index.mjs +1 -1
- package/dist/api/client/index.cjs +1 -1
- package/dist/api/client/index.mjs +1 -1
- package/dist/api/server/index.cjs +1 -1
- package/dist/api/server/index.mjs +1 -1
- package/dist/aws/s3/server/AwsS3.cjs +1 -1
- package/dist/aws/s3/server/AwsS3.mjs +1 -1
- package/dist/googleCloud/bigquery/_shared/lookup/account.cjs +2 -4
- package/dist/googleCloud/bigquery/_shared/lookup/account.d.cts +1 -3
- package/dist/googleCloud/bigquery/_shared/lookup/account.d.mts +1 -3
- package/dist/googleCloud/bigquery/_shared/lookup/account.mjs +2 -4
- package/dist/googleCloud/bigquery/_shared/lookup/googleCloud.cjs +2 -2
- package/dist/googleCloud/bigquery/_shared/lookup/googleCloud.d.cts +2 -2
- package/dist/googleCloud/bigquery/_shared/lookup/googleCloud.d.mts +2 -2
- package/dist/googleCloud/bigquery/_shared/lookup/googleCloud.mjs +2 -2
- package/dist/xlsx/_shared/createXlsx.cjs +1 -1
- package/dist/xlsx/_shared/createXlsx.mjs +1 -1
- package/package.json +1 -5
- package/dist/googleCloud/bigquery/_shared/lookup/googleAdsAccount.cjs +0 -17
- package/dist/googleCloud/bigquery/_shared/lookup/googleAdsAccount.d.cts +0 -19
- package/dist/googleCloud/bigquery/_shared/lookup/googleAdsAccount.d.mts +0 -19
- package/dist/googleCloud/bigquery/_shared/lookup/googleAdsAccount.mjs +0 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_api__shared_get = require("../../api/_shared/get.cjs");
|
|
3
2
|
const require_date__shared_calculation = require("../../date/_shared/calculation.cjs");
|
|
4
3
|
const require_date__shared_format = require("../../date/_shared/format.cjs");
|
|
4
|
+
const require_api__shared_get = require("../../api/_shared/get.cjs");
|
|
5
5
|
//#region src/adverity/server/getJobs.ts
|
|
6
6
|
/**
|
|
7
7
|
* Fetch all the jobs that ran yesterday by default.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { get } from "../../api/_shared/get.mjs";
|
|
2
1
|
import { getLuxonDate, getToday, getYesterday } from "../../date/_shared/calculation.mjs";
|
|
3
2
|
import { getYmdString } from "../../date/_shared/format.mjs";
|
|
3
|
+
import { get } from "../../api/_shared/get.mjs";
|
|
4
4
|
//#region src/adverity/server/getJobs.ts
|
|
5
5
|
/**
|
|
6
6
|
* Fetch all the jobs that ran yesterday by default.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_api__shared_api = require("./api.cjs");
|
|
3
3
|
const require_api__shared_ApiResponseClass = require("./ApiResponseClass.cjs");
|
|
4
|
+
const require_api__shared_get = require("./get.cjs");
|
|
4
5
|
const require_api__shared_deleteRequest = require("./deleteRequest.cjs");
|
|
5
6
|
const require_api__shared_functions = require("./functions.cjs");
|
|
6
|
-
const require_api__shared_get = require("./get.cjs");
|
|
7
7
|
const require_api__shared_httpMethod = require("./httpMethod.cjs");
|
|
8
8
|
const require_api__shared_post = require("./post.cjs");
|
|
9
9
|
exports.ApiResponseClass = require_api__shared_ApiResponseClass.ApiResponseClass;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { apiState, defaultResponse, unexpectedError } from "./api.mjs";
|
|
2
2
|
import { ApiResponseClass } from "./ApiResponseClass.mjs";
|
|
3
|
+
import { get } from "./get.mjs";
|
|
3
4
|
import { deleteRequest } from "./deleteRequest.mjs";
|
|
4
5
|
import { isCancelled, isError, isIdle, isPending, isSuccess, isValidationError } from "./functions.mjs";
|
|
5
|
-
import { get } from "./get.mjs";
|
|
6
6
|
import { httpMethod } from "./httpMethod.mjs";
|
|
7
7
|
import { post } from "./post.mjs";
|
|
8
8
|
export { ApiResponseClass, apiState, defaultResponse, deleteRequest, get, httpMethod, isCancelled, isError, isIdle, isPending, isSuccess, isValidationError, post, unexpectedError };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_api__shared_api = require("../_shared/api.cjs");
|
|
3
3
|
const require_api__shared_ApiResponseClass = require("../_shared/ApiResponseClass.cjs");
|
|
4
|
+
const require_api__shared_get = require("../_shared/get.cjs");
|
|
4
5
|
const require_api__shared_deleteRequest = require("../_shared/deleteRequest.cjs");
|
|
5
6
|
const require_api__shared_functions = require("../_shared/functions.cjs");
|
|
6
|
-
const require_api__shared_get = require("../_shared/get.cjs");
|
|
7
7
|
const require_api__shared_httpMethod = require("../_shared/httpMethod.cjs");
|
|
8
8
|
const require_api__shared_post = require("../_shared/post.cjs");
|
|
9
9
|
require("../_shared/index.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { apiState, defaultResponse, unexpectedError } from "../_shared/api.mjs";
|
|
2
2
|
import { ApiResponseClass } from "../_shared/ApiResponseClass.mjs";
|
|
3
|
+
import { get } from "../_shared/get.mjs";
|
|
3
4
|
import { deleteRequest } from "../_shared/deleteRequest.mjs";
|
|
4
5
|
import { isCancelled, isError, isIdle, isPending, isSuccess, isValidationError } from "../_shared/functions.mjs";
|
|
5
|
-
import { get } from "../_shared/get.mjs";
|
|
6
6
|
import { httpMethod } from "../_shared/httpMethod.mjs";
|
|
7
7
|
import { post } from "../_shared/post.mjs";
|
|
8
8
|
import "../_shared/index.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_api__shared_api = require("../_shared/api.cjs");
|
|
3
3
|
const require_api__shared_ApiResponseClass = require("../_shared/ApiResponseClass.cjs");
|
|
4
|
+
const require_api__shared_get = require("../_shared/get.cjs");
|
|
4
5
|
const require_api__shared_deleteRequest = require("../_shared/deleteRequest.cjs");
|
|
5
6
|
const require_api__shared_functions = require("../_shared/functions.cjs");
|
|
6
|
-
const require_api__shared_get = require("../_shared/get.cjs");
|
|
7
7
|
const require_api__shared_httpMethod = require("../_shared/httpMethod.cjs");
|
|
8
8
|
const require_api__shared_post = require("../_shared/post.cjs");
|
|
9
9
|
require("../_shared/index.cjs");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { apiState, defaultResponse, unexpectedError } from "../_shared/api.mjs";
|
|
2
2
|
import { ApiResponseClass } from "../_shared/ApiResponseClass.mjs";
|
|
3
|
+
import { get } from "../_shared/get.mjs";
|
|
3
4
|
import { deleteRequest } from "../_shared/deleteRequest.mjs";
|
|
4
5
|
import { isCancelled, isError, isIdle, isPending, isSuccess, isValidationError } from "../_shared/functions.mjs";
|
|
5
|
-
import { get } from "../_shared/get.mjs";
|
|
6
6
|
import { httpMethod } from "../_shared/httpMethod.mjs";
|
|
7
7
|
import { post } from "../_shared/post.mjs";
|
|
8
8
|
import "../_shared/index.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_runtime = require("../../../_virtual/_rolldown/runtime.cjs");
|
|
3
3
|
const require__class__shared_BaseNamespace = require("../../../_class/_shared/BaseNamespace.cjs");
|
|
4
|
-
const require_aws_server_isResponse200 = require("../../server/isResponse200.cjs");
|
|
5
4
|
const require_date__shared_calculation = require("../../../date/_shared/calculation.cjs");
|
|
6
5
|
const require_date__shared_format = require("../../../date/_shared/format.cjs");
|
|
7
6
|
const require_date__shared_date = require("../../../date/_shared/date.cjs");
|
|
8
7
|
require("../../../date/_shared/index.cjs");
|
|
8
|
+
const require_aws_server_isResponse200 = require("../../server/isResponse200.cjs");
|
|
9
9
|
const require_stream_server_json_read = require("../../../stream/server/json/read.cjs");
|
|
10
10
|
const require_stream_server_json_write = require("../../../stream/server/json/write.cjs");
|
|
11
11
|
require("../../../stream/server/index.cjs");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../../_class/_shared/BaseNamespace.mjs";
|
|
2
|
-
import { isResponse200 } from "../../server/isResponse200.mjs";
|
|
3
2
|
import { getToday } from "../../../date/_shared/calculation.mjs";
|
|
4
3
|
import { getYmdHisString } from "../../../date/_shared/format.mjs";
|
|
5
4
|
import { defaultDateTime } from "../../../date/_shared/date.mjs";
|
|
6
5
|
import "../../../date/_shared/index.mjs";
|
|
6
|
+
import { isResponse200 } from "../../server/isResponse200.mjs";
|
|
7
7
|
import { readJsonGzipStream, readJsonStream } from "../../../stream/server/json/read.mjs";
|
|
8
8
|
import { writeJsonGzipStream, writeJsonStream } from "../../../stream/server/json/write.mjs";
|
|
9
9
|
import "../../../stream/server/index.mjs";
|
|
@@ -12,7 +12,6 @@ let zod = require("zod");
|
|
|
12
12
|
* regexes) and are deliberately free-form JSON.
|
|
13
13
|
*/
|
|
14
14
|
const accountBQRow = zod.z.object({
|
|
15
|
-
id: zod.z.string(),
|
|
16
15
|
account_group: zod.z.string().nullable(),
|
|
17
16
|
platform: zod.z.string(),
|
|
18
17
|
account_name: zod.z.string(),
|
|
@@ -21,9 +20,8 @@ const accountBQRow = zod.z.object({
|
|
|
21
20
|
account_excludes: require_googleCloud_bigquery__shared_field_bqJson.zBQJson.nullable(),
|
|
22
21
|
currency: zod.z.string().nullable(),
|
|
23
22
|
is_all_conversions: zod.z.boolean(),
|
|
24
|
-
is_active: zod.z.boolean(),
|
|
25
23
|
is_mdo: zod.z.boolean(),
|
|
26
|
-
|
|
24
|
+
google_website_id: zod.z.string(),
|
|
27
25
|
inserted_at: zod.z.date(),
|
|
28
26
|
updated_at: zod.z.date()
|
|
29
27
|
});
|
|
@@ -34,7 +32,7 @@ const accountDefinition = {
|
|
|
34
32
|
tableId: "account",
|
|
35
33
|
options: {
|
|
36
34
|
schema: require_googleCloud_bigquery__shared_zodToBQDefinition.zodToBQSchema(accountBQRow),
|
|
37
|
-
clustering: { fields: [accountField.
|
|
35
|
+
clustering: { fields: [accountField.google_website_id, accountField.platform] }
|
|
38
36
|
}
|
|
39
37
|
};
|
|
40
38
|
const accountTableId = `${accountDefinition.projectId}.${accountDefinition.datasetId}.${accountDefinition.tableId}`;
|
|
@@ -10,7 +10,6 @@ import { z } from "zod";
|
|
|
10
10
|
* regexes) and are deliberately free-form JSON.
|
|
11
11
|
*/
|
|
12
12
|
export declare const accountBQRow: z.ZodObject<{
|
|
13
|
-
id: z.ZodString;
|
|
14
13
|
account_group: z.ZodNullable<z.ZodString>;
|
|
15
14
|
platform: z.ZodString;
|
|
16
15
|
account_name: z.ZodString;
|
|
@@ -19,9 +18,8 @@ export declare const accountBQRow: z.ZodObject<{
|
|
|
19
18
|
account_excludes: z.ZodNullable<z.ZodUnknown>;
|
|
20
19
|
currency: z.ZodNullable<z.ZodString>;
|
|
21
20
|
is_all_conversions: z.ZodBoolean;
|
|
22
|
-
is_active: z.ZodBoolean;
|
|
23
21
|
is_mdo: z.ZodBoolean;
|
|
24
|
-
|
|
22
|
+
google_website_id: z.ZodString;
|
|
25
23
|
inserted_at: z.ZodDate;
|
|
26
24
|
updated_at: z.ZodDate;
|
|
27
25
|
}, z.core.$strip>;
|
|
@@ -10,7 +10,6 @@ import { z } from "zod";
|
|
|
10
10
|
* regexes) and are deliberately free-form JSON.
|
|
11
11
|
*/
|
|
12
12
|
export declare const accountBQRow: z.ZodObject<{
|
|
13
|
-
id: z.ZodString;
|
|
14
13
|
account_group: z.ZodNullable<z.ZodString>;
|
|
15
14
|
platform: z.ZodString;
|
|
16
15
|
account_name: z.ZodString;
|
|
@@ -19,9 +18,8 @@ export declare const accountBQRow: z.ZodObject<{
|
|
|
19
18
|
account_excludes: z.ZodNullable<z.ZodUnknown>;
|
|
20
19
|
currency: z.ZodNullable<z.ZodString>;
|
|
21
20
|
is_all_conversions: z.ZodBoolean;
|
|
22
|
-
is_active: z.ZodBoolean;
|
|
23
21
|
is_mdo: z.ZodBoolean;
|
|
24
|
-
|
|
22
|
+
google_website_id: z.ZodString;
|
|
25
23
|
inserted_at: z.ZodDate;
|
|
26
24
|
updated_at: z.ZodDate;
|
|
27
25
|
}, z.core.$strip>;
|
|
@@ -11,7 +11,6 @@ import { z } from "zod";
|
|
|
11
11
|
* regexes) and are deliberately free-form JSON.
|
|
12
12
|
*/
|
|
13
13
|
const accountBQRow = z.object({
|
|
14
|
-
id: z.string(),
|
|
15
14
|
account_group: z.string().nullable(),
|
|
16
15
|
platform: z.string(),
|
|
17
16
|
account_name: z.string(),
|
|
@@ -20,9 +19,8 @@ const accountBQRow = z.object({
|
|
|
20
19
|
account_excludes: zBQJson.nullable(),
|
|
21
20
|
currency: z.string().nullable(),
|
|
22
21
|
is_all_conversions: z.boolean(),
|
|
23
|
-
is_active: z.boolean(),
|
|
24
22
|
is_mdo: z.boolean(),
|
|
25
|
-
|
|
23
|
+
google_website_id: z.string(),
|
|
26
24
|
inserted_at: z.date(),
|
|
27
25
|
updated_at: z.date()
|
|
28
26
|
});
|
|
@@ -33,7 +31,7 @@ const accountDefinition = {
|
|
|
33
31
|
tableId: "account",
|
|
34
32
|
options: {
|
|
35
33
|
schema: zodToBQSchema(accountBQRow),
|
|
36
|
-
clustering: { fields: [accountField.
|
|
34
|
+
clustering: { fields: [accountField.google_website_id, accountField.platform] }
|
|
37
35
|
}
|
|
38
36
|
};
|
|
39
37
|
const accountTableId = `${accountDefinition.projectId}.${accountDefinition.datasetId}.${accountDefinition.tableId}`;
|
|
@@ -8,8 +8,8 @@ let zod = require("zod");
|
|
|
8
8
|
* Maps the different websites to the relevant service account.
|
|
9
9
|
*/
|
|
10
10
|
const googleCloudBQRow = zod.z.object({
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
google_project_id: zod.z.string(),
|
|
12
|
+
google_website_id: zod.z.string(),
|
|
13
13
|
codex_service_account: zod.z.string().nullable(),
|
|
14
14
|
inserted_at: require_googleCloud_bigquery__shared_field_bqDateTime.BQDateTime.transform(require_googleCloud_bigquery__shared_field_bqDateTime.decodeBQDateTime)
|
|
15
15
|
});
|
|
@@ -6,8 +6,8 @@ import { z } from "zod";
|
|
|
6
6
|
* Maps the different websites to the relevant service account.
|
|
7
7
|
*/
|
|
8
8
|
export declare const googleCloudBQRow: z.ZodObject<{
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
google_project_id: z.ZodString;
|
|
10
|
+
google_website_id: z.ZodString;
|
|
11
11
|
codex_service_account: z.ZodNullable<z.ZodString>;
|
|
12
12
|
inserted_at: z.ZodPipe<z.ZodObject<{
|
|
13
13
|
value: z.ZodISODateTime;
|
|
@@ -6,8 +6,8 @@ import { z } from "zod";
|
|
|
6
6
|
* Maps the different websites to the relevant service account.
|
|
7
7
|
*/
|
|
8
8
|
export declare const googleCloudBQRow: z.ZodObject<{
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
google_project_id: z.ZodString;
|
|
10
|
+
google_website_id: z.ZodString;
|
|
11
11
|
codex_service_account: z.ZodNullable<z.ZodString>;
|
|
12
12
|
inserted_at: z.ZodPipe<z.ZodObject<{
|
|
13
13
|
value: z.ZodISODateTime;
|
|
@@ -7,8 +7,8 @@ import { z } from "zod";
|
|
|
7
7
|
* Maps the different websites to the relevant service account.
|
|
8
8
|
*/
|
|
9
9
|
const googleCloudBQRow = z.object({
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
google_project_id: z.string(),
|
|
11
|
+
google_website_id: z.string(),
|
|
12
12
|
codex_service_account: z.string().nullable(),
|
|
13
13
|
inserted_at: BQDateTime.transform(decodeBQDateTime)
|
|
14
14
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_xlsx__shared_column = require("./column.cjs");
|
|
3
3
|
const require_xlsx__shared_cell = require("./cell.cjs");
|
|
4
|
-
const require_xlsx__shared_sheet = require("./sheet.cjs");
|
|
5
4
|
const require_zip__shared_ZipArchive = require("../../zip/_shared/ZipArchive.cjs");
|
|
5
|
+
const require_xlsx__shared_sheet = require("./sheet.cjs");
|
|
6
6
|
//#region src/xlsx/_shared/createXlsx.ts
|
|
7
7
|
/**
|
|
8
8
|
* Builds a complete .xlsx workbook from scratch, using hand-written OOXML rather
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getColumLetter, getColumnWidth } from "./column.mjs";
|
|
2
2
|
import { buildCellXml, getCellValue, getEscapedXml } from "./cell.mjs";
|
|
3
|
-
import { getUniqueSheetNames } from "./sheet.mjs";
|
|
4
3
|
import { ZipArchive } from "../../zip/_shared/ZipArchive.mjs";
|
|
4
|
+
import { getUniqueSheetNames } from "./sheet.mjs";
|
|
5
5
|
//#region src/xlsx/_shared/createXlsx.ts
|
|
6
6
|
/**
|
|
7
7
|
* Builds a complete .xlsx workbook from scratch, using hand-written OOXML rather
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@8ms/helpers",
|
|
3
3
|
"license": "UNLICENSED",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.16",
|
|
5
5
|
"packageManager": "yarn@4.18.1",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -1031,10 +1031,6 @@
|
|
|
1031
1031
|
"import": "./dist/googleCloud/bigquery/_shared/lookup/country.mjs",
|
|
1032
1032
|
"require": "./dist/googleCloud/bigquery/_shared/lookup/country.cjs"
|
|
1033
1033
|
},
|
|
1034
|
-
"./googleCloud/bigquery/_shared/lookup/googleAdsAccount": {
|
|
1035
|
-
"import": "./dist/googleCloud/bigquery/_shared/lookup/googleAdsAccount.mjs",
|
|
1036
|
-
"require": "./dist/googleCloud/bigquery/_shared/lookup/googleAdsAccount.cjs"
|
|
1037
|
-
},
|
|
1038
1034
|
"./googleCloud/bigquery/_shared/lookup/googleCloud": {
|
|
1039
1035
|
"import": "./dist/googleCloud/bigquery/_shared/lookup/googleCloud.mjs",
|
|
1040
1036
|
"require": "./dist/googleCloud/bigquery/_shared/lookup/googleCloud.cjs"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_googleCloud_bigquery__shared_field_bqDateTime = require("../field/bqDateTime.cjs");
|
|
3
|
-
let zod = require("zod");
|
|
4
|
-
//#region src/googleCloud/bigquery/_shared/lookup/googleAdsAccount.ts
|
|
5
|
-
/**
|
|
6
|
-
* ems-shared.ems_lookup.google_ads_account
|
|
7
|
-
*
|
|
8
|
-
* Maps the different countries to the platform-specific codes.
|
|
9
|
-
*/
|
|
10
|
-
const googleAdsAccountBQRow = zod.z.object({
|
|
11
|
-
account_id: zod.z.string(),
|
|
12
|
-
account_name: zod.z.string(),
|
|
13
|
-
codex_website_id: zod.z.string().nullable(),
|
|
14
|
-
inserted_at: require_googleCloud_bigquery__shared_field_bqDateTime.BQDateTime.transform(require_googleCloud_bigquery__shared_field_bqDateTime.decodeBQDateTime)
|
|
15
|
-
});
|
|
16
|
-
//#endregion
|
|
17
|
-
exports.googleAdsAccountBQRow = googleAdsAccountBQRow;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
//#region src/googleCloud/bigquery/_shared/lookup/googleAdsAccount.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* ems-shared.ems_lookup.google_ads_account
|
|
5
|
-
*
|
|
6
|
-
* Maps the different countries to the platform-specific codes.
|
|
7
|
-
*/
|
|
8
|
-
export declare const googleAdsAccountBQRow: z.ZodObject<{
|
|
9
|
-
account_id: z.ZodString;
|
|
10
|
-
account_name: z.ZodString;
|
|
11
|
-
codex_website_id: z.ZodNullable<z.ZodString>;
|
|
12
|
-
inserted_at: z.ZodPipe<z.ZodObject<{
|
|
13
|
-
value: z.ZodISODateTime;
|
|
14
|
-
}, z.core.$strip>, z.ZodTransform<import("luxon").DateTime<boolean>, {
|
|
15
|
-
value: string;
|
|
16
|
-
}>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export type GoogleAdsAccountBQRow = z.infer<typeof googleAdsAccountBQRow>;
|
|
19
|
-
//#endregion
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
//#region src/googleCloud/bigquery/_shared/lookup/googleAdsAccount.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* ems-shared.ems_lookup.google_ads_account
|
|
5
|
-
*
|
|
6
|
-
* Maps the different countries to the platform-specific codes.
|
|
7
|
-
*/
|
|
8
|
-
export declare const googleAdsAccountBQRow: z.ZodObject<{
|
|
9
|
-
account_id: z.ZodString;
|
|
10
|
-
account_name: z.ZodString;
|
|
11
|
-
codex_website_id: z.ZodNullable<z.ZodString>;
|
|
12
|
-
inserted_at: z.ZodPipe<z.ZodObject<{
|
|
13
|
-
value: z.ZodISODateTime;
|
|
14
|
-
}, z.core.$strip>, z.ZodTransform<import("luxon").DateTime<boolean>, {
|
|
15
|
-
value: string;
|
|
16
|
-
}>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export type GoogleAdsAccountBQRow = z.infer<typeof googleAdsAccountBQRow>;
|
|
19
|
-
//#endregion
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BQDateTime, decodeBQDateTime } from "../field/bqDateTime.mjs";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
//#region src/googleCloud/bigquery/_shared/lookup/googleAdsAccount.ts
|
|
4
|
-
/**
|
|
5
|
-
* ems-shared.ems_lookup.google_ads_account
|
|
6
|
-
*
|
|
7
|
-
* Maps the different countries to the platform-specific codes.
|
|
8
|
-
*/
|
|
9
|
-
const googleAdsAccountBQRow = z.object({
|
|
10
|
-
account_id: z.string(),
|
|
11
|
-
account_name: z.string(),
|
|
12
|
-
codex_website_id: z.string().nullable(),
|
|
13
|
-
inserted_at: BQDateTime.transform(decodeBQDateTime)
|
|
14
|
-
});
|
|
15
|
-
//#endregion
|
|
16
|
-
export { googleAdsAccountBQRow };
|