@etohq/utils 2.0.0 → 2.0.1
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/LICENSE +21 -0
- package/dist/analytics/get-import-error-logs.d.ts +10 -2
- package/dist/analytics/get-import-error-logs.d.ts.map +1 -1
- package/dist/analytics/get-lead-events.d.ts +38 -2
- package/dist/analytics/get-lead-events.d.ts.map +1 -1
- package/dist/analytics/get-webhook-events.d.ts +9 -2
- package/dist/analytics/get-webhook-events.d.ts.map +1 -1
- package/dist/analytics/log-conversion-events.d.ts +21 -2
- package/dist/analytics/log-conversion-events.d.ts.map +1 -1
- package/dist/analytics/log-import-error.d.ts +19 -2
- package/dist/analytics/log-import-error.d.ts.map +1 -1
- package/dist/analytics/record-approval.d.ts +40 -2
- package/dist/analytics/record-approval.d.ts.map +1 -1
- package/dist/analytics/record-link.d.ts +54 -2
- package/dist/analytics/record-link.d.ts.map +1 -1
- package/dist/analytics/record-sale.d.ts +63 -4
- package/dist/analytics/record-sale.d.ts.map +1 -1
- package/dist/analytics/record-webhook-event.d.ts +20 -2
- package/dist/analytics/record-webhook-event.d.ts.map +1 -1
- package/dist/analytics/schemas.d.ts +2 -2
- package/dist/modules-sdk/loaders/load-models.d.ts.map +1 -1
- package/dist/modules-sdk/loaders/load-models.js +2 -1
- package/dist/modules-sdk/loaders/load-models.js.map +1 -1
- package/dist/modules-sdk/migration-scripts/service-migration-generate.d.ts.map +1 -1
- package/dist/modules-sdk/migration-scripts/service-migration-generate.js +6 -1
- package/dist/modules-sdk/migration-scripts/service-migration-generate.js.map +1 -1
- package/dist/zod/schemas/approvals.d.ts +2 -2
- package/dist/zod/schemas/leads.d.ts +2 -2
- package/package.json +46 -46
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Etohq
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Tinybird } from "@chronark/zod-bird";
|
|
2
|
-
export declare function createGetImportErrorLogs(tb: Tinybird): (params:
|
|
2
|
+
export declare function createGetImportErrorLogs(tb: Tinybird): (params: {
|
|
3
|
+
projectId: string;
|
|
4
|
+
importId: string;
|
|
5
|
+
}) => Promise<{
|
|
3
6
|
meta: {
|
|
4
7
|
name: string;
|
|
5
8
|
type: string;
|
|
@@ -12,6 +15,11 @@ export declare function createGetImportErrorLogs(tb: Tinybird): (params: any) =>
|
|
|
12
15
|
bytes_read?: number | undefined;
|
|
13
16
|
} | undefined;
|
|
14
17
|
} & {
|
|
15
|
-
data:
|
|
18
|
+
data: {
|
|
19
|
+
error: string;
|
|
20
|
+
project_id: string;
|
|
21
|
+
import_id: string;
|
|
22
|
+
context: string;
|
|
23
|
+
}[];
|
|
16
24
|
}>;
|
|
17
25
|
//# sourceMappingURL=get-import-error-logs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-import-error-logs.d.ts","sourceRoot":"","sources":["../../src/analytics/get-import-error-logs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAS7C,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,QAAQ
|
|
1
|
+
{"version":3,"file":"get-import-error-logs.d.ts","sourceRoot":"","sources":["../../src/analytics/get-import-error-logs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAS7C,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;;eAYyhB,CAAC;iBAAuC,CAAC;kBAAwC,CAAC;;;;;;;;;GAD/pB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Tinybird } from "@chronark/zod-bird";
|
|
2
|
-
export declare function createGetLeadEvents(tb: Tinybird): (params:
|
|
2
|
+
export declare function createGetLeadEvents(tb: Tinybird): (params: {
|
|
3
|
+
userIds: string[];
|
|
4
|
+
}) => Promise<{
|
|
3
5
|
meta: {
|
|
4
6
|
name: string;
|
|
5
7
|
type: string;
|
|
@@ -12,6 +14,40 @@ export declare function createGetLeadEvents(tb: Tinybird): (params: any) => Prom
|
|
|
12
14
|
bytes_read?: number | undefined;
|
|
13
15
|
} | undefined;
|
|
14
16
|
} & {
|
|
15
|
-
data:
|
|
17
|
+
data: {
|
|
18
|
+
qr: number | null;
|
|
19
|
+
bot: number | null;
|
|
20
|
+
continent: string | null;
|
|
21
|
+
country: string | null;
|
|
22
|
+
region: string | null;
|
|
23
|
+
city: string | null;
|
|
24
|
+
latitude: string | null;
|
|
25
|
+
longitude: string | null;
|
|
26
|
+
url: string;
|
|
27
|
+
ip: string | null;
|
|
28
|
+
referer: string | null;
|
|
29
|
+
metadata: string;
|
|
30
|
+
click_id: string;
|
|
31
|
+
link_id: string;
|
|
32
|
+
user_id: string | null;
|
|
33
|
+
project_id: string | null;
|
|
34
|
+
event_id: string;
|
|
35
|
+
event_name: string;
|
|
36
|
+
customer_id: string;
|
|
37
|
+
identity_hash: string;
|
|
38
|
+
device: string | null;
|
|
39
|
+
device_model: string | null;
|
|
40
|
+
device_vendor: string | null;
|
|
41
|
+
browser: string | null;
|
|
42
|
+
browser_version: string | null;
|
|
43
|
+
os: string | null;
|
|
44
|
+
os_version: string | null;
|
|
45
|
+
engine: string | null;
|
|
46
|
+
engine_version: string | null;
|
|
47
|
+
cpu_architecture: string | null;
|
|
48
|
+
ua: string | null;
|
|
49
|
+
referer_url: string | null;
|
|
50
|
+
trigger?: string | null | undefined;
|
|
51
|
+
}[];
|
|
16
52
|
}>;
|
|
17
53
|
//# sourceMappingURL=get-lead-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-lead-events.d.ts","sourceRoot":"","sources":["../../src/analytics/get-lead-events.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG7C,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,QAAQ
|
|
1
|
+
{"version":3,"file":"get-lead-events.d.ts","sourceRoot":"","sources":["../../src/analytics/get-lead-events.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG7C,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;eAWgqB,CAAC;iBAAuC,CAAC;kBAAwC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GADjyB"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Tinybird } from "@chronark/zod-bird";
|
|
2
|
-
export declare function createGetWebhookEvents(tb: Tinybird): (params:
|
|
2
|
+
export declare function createGetWebhookEvents(tb: Tinybird): (params: {
|
|
3
|
+
webhookId: string;
|
|
4
|
+
}) => Promise<{
|
|
3
5
|
meta: {
|
|
4
6
|
name: string;
|
|
5
7
|
type: string;
|
|
@@ -12,6 +14,11 @@ export declare function createGetWebhookEvents(tb: Tinybird): (params: any) => P
|
|
|
12
14
|
bytes_read?: number | undefined;
|
|
13
15
|
} | undefined;
|
|
14
16
|
} & {
|
|
15
|
-
data:
|
|
17
|
+
data: {
|
|
18
|
+
status: string;
|
|
19
|
+
webhook_id: string;
|
|
20
|
+
event_type: string;
|
|
21
|
+
payload: string;
|
|
22
|
+
}[];
|
|
16
23
|
}>;
|
|
17
24
|
//# sourceMappingURL=get-webhook-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-webhook-events.d.ts","sourceRoot":"","sources":["../../src/analytics/get-webhook-events.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAS7C,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,QAAQ
|
|
1
|
+
{"version":3,"file":"get-webhook-events.d.ts","sourceRoot":"","sources":["../../src/analytics/get-webhook-events.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAS7C,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;eAWskB,CAAC;iBAAuC,CAAC;kBAAwC,CAAC;;;;;;;;;GAD1sB"}
|
|
@@ -1,6 +1,25 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { Tinybird } from "@chronark/zod-bird";
|
|
2
|
-
export declare function createLogConversionEvent(tb: Tinybird): (events:
|
|
3
|
+
export declare function createLogConversionEvent(tb: Tinybird): (events: {
|
|
4
|
+
project_id: string;
|
|
5
|
+
path: string;
|
|
6
|
+
link_id?: string | undefined;
|
|
7
|
+
body?: string | undefined;
|
|
8
|
+
error?: string | undefined;
|
|
9
|
+
} | {
|
|
10
|
+
project_id: string;
|
|
11
|
+
path: string;
|
|
12
|
+
link_id?: string | undefined;
|
|
13
|
+
body?: string | undefined;
|
|
14
|
+
error?: string | undefined;
|
|
15
|
+
}[]) => Promise<z.infer<z.ZodObject<{
|
|
16
|
+
successful_rows: z.ZodNumber;
|
|
17
|
+
quarantined_rows: z.ZodNumber;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
3
19
|
successful_rows: number;
|
|
4
20
|
quarantined_rows: number;
|
|
5
|
-
}
|
|
21
|
+
}, {
|
|
22
|
+
successful_rows: number;
|
|
23
|
+
quarantined_rows: number;
|
|
24
|
+
}>>>;
|
|
6
25
|
//# sourceMappingURL=log-conversion-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-conversion-events.d.ts","sourceRoot":"","sources":["../../src/analytics/log-conversion-events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log-conversion-events.d.ts","sourceRoot":"","sources":["../../src/analytics/log-conversion-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAW7C,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;KAMpD"}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { Tinybird } from "@chronark/zod-bird";
|
|
2
|
-
export declare function createLogImportError(tb: Tinybird): (events:
|
|
3
|
+
export declare function createLogImportError(tb: Tinybird): (events: {
|
|
4
|
+
error: string;
|
|
5
|
+
project_id: string;
|
|
6
|
+
import_id: string;
|
|
7
|
+
context?: string | undefined;
|
|
8
|
+
} | {
|
|
9
|
+
error: string;
|
|
10
|
+
project_id: string;
|
|
11
|
+
import_id: string;
|
|
12
|
+
context?: string | undefined;
|
|
13
|
+
}[]) => Promise<z.infer<z.ZodObject<{
|
|
14
|
+
successful_rows: z.ZodNumber;
|
|
15
|
+
quarantined_rows: z.ZodNumber;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
3
17
|
successful_rows: number;
|
|
4
18
|
quarantined_rows: number;
|
|
5
|
-
}
|
|
19
|
+
}, {
|
|
20
|
+
successful_rows: number;
|
|
21
|
+
quarantined_rows: number;
|
|
22
|
+
}>>>;
|
|
6
23
|
//# sourceMappingURL=log-import-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-import-error.d.ts","sourceRoot":"","sources":["../../src/analytics/log-import-error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log-import-error.d.ts","sourceRoot":"","sources":["../../src/analytics/log-import-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAS7C,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;KAMhD"}
|
|
@@ -49,8 +49,46 @@ export declare const approvalEventSchemaTB: z.ZodObject<{
|
|
|
49
49
|
requested_at: Date;
|
|
50
50
|
processed_at: Date | null;
|
|
51
51
|
}>;
|
|
52
|
-
export declare function createRecordApproval(tb: Tinybird): (events:
|
|
52
|
+
export declare function createRecordApproval(tb: Tinybird): (events: {
|
|
53
|
+
continent: string | null;
|
|
54
|
+
country: string | null;
|
|
55
|
+
region: string | null;
|
|
56
|
+
city: string | null;
|
|
57
|
+
ip: string | null;
|
|
58
|
+
link_id: string;
|
|
59
|
+
project_id: string | null;
|
|
60
|
+
approval_id: string;
|
|
61
|
+
requester_id: string;
|
|
62
|
+
approver_id: string | null;
|
|
63
|
+
resource_type: string;
|
|
64
|
+
resource_id: string;
|
|
65
|
+
decision: "approve" | "reject" | "pending";
|
|
66
|
+
requested_at: Date;
|
|
67
|
+
processed_at: Date | null;
|
|
68
|
+
} | {
|
|
69
|
+
continent: string | null;
|
|
70
|
+
country: string | null;
|
|
71
|
+
region: string | null;
|
|
72
|
+
city: string | null;
|
|
73
|
+
ip: string | null;
|
|
74
|
+
link_id: string;
|
|
75
|
+
project_id: string | null;
|
|
76
|
+
approval_id: string;
|
|
77
|
+
requester_id: string;
|
|
78
|
+
approver_id: string | null;
|
|
79
|
+
resource_type: string;
|
|
80
|
+
resource_id: string;
|
|
81
|
+
decision: "approve" | "reject" | "pending";
|
|
82
|
+
requested_at: Date;
|
|
83
|
+
processed_at: Date | null;
|
|
84
|
+
}[]) => Promise<z.infer<z.ZodObject<{
|
|
85
|
+
successful_rows: z.ZodNumber;
|
|
86
|
+
quarantined_rows: z.ZodNumber;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
88
|
successful_rows: number;
|
|
54
89
|
quarantined_rows: number;
|
|
55
|
-
}
|
|
90
|
+
}, {
|
|
91
|
+
successful_rows: number;
|
|
92
|
+
quarantined_rows: number;
|
|
93
|
+
}>>>;
|
|
56
94
|
//# sourceMappingURL=record-approval.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-approval.d.ts","sourceRoot":"","sources":["../../src/analytics/record-approval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG7C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhC,CAAA;AAEF,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,QAAQ
|
|
1
|
+
{"version":3,"file":"record-approval.d.ts","sourceRoot":"","sources":["../../src/analytics/record-approval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG7C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhC,CAAA;AAEF,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAOhD"}
|
|
@@ -71,10 +71,62 @@ export declare const accessLinksMetadataSchema: z.ZodObject<{
|
|
|
71
71
|
created_at: Date;
|
|
72
72
|
deleted?: boolean | undefined;
|
|
73
73
|
}>;
|
|
74
|
-
export declare function createRecordLink(tb: Tinybird): (events:
|
|
74
|
+
export declare function createRecordLink(tb: Tinybird): (events: {
|
|
75
|
+
domain: string;
|
|
76
|
+
key: string;
|
|
77
|
+
url: string;
|
|
78
|
+
link_id: string;
|
|
79
|
+
project_id: string;
|
|
80
|
+
short_link: string;
|
|
81
|
+
external_id: string | null;
|
|
82
|
+
tenant_id: string | null;
|
|
83
|
+
target_resource_type: string | null;
|
|
84
|
+
target_resource_id: string | null;
|
|
85
|
+
access_role: string | null;
|
|
86
|
+
max_uses: number | null;
|
|
87
|
+
current_uses: number;
|
|
88
|
+
expires_at: Date | null;
|
|
89
|
+
creator_user_id: string;
|
|
90
|
+
creator_role: string | null;
|
|
91
|
+
purpose: string;
|
|
92
|
+
auto_approve: boolean;
|
|
93
|
+
requires_approval: boolean;
|
|
94
|
+
password_protected: boolean;
|
|
95
|
+
created_at: Date;
|
|
96
|
+
deleted?: boolean | undefined;
|
|
97
|
+
} | {
|
|
98
|
+
domain: string;
|
|
99
|
+
key: string;
|
|
100
|
+
url: string;
|
|
101
|
+
link_id: string;
|
|
102
|
+
project_id: string;
|
|
103
|
+
short_link: string;
|
|
104
|
+
external_id: string | null;
|
|
105
|
+
tenant_id: string | null;
|
|
106
|
+
target_resource_type: string | null;
|
|
107
|
+
target_resource_id: string | null;
|
|
108
|
+
access_role: string | null;
|
|
109
|
+
max_uses: number | null;
|
|
110
|
+
current_uses: number;
|
|
111
|
+
expires_at: Date | null;
|
|
112
|
+
creator_user_id: string;
|
|
113
|
+
creator_role: string | null;
|
|
114
|
+
purpose: string;
|
|
115
|
+
auto_approve: boolean;
|
|
116
|
+
requires_approval: boolean;
|
|
117
|
+
password_protected: boolean;
|
|
118
|
+
created_at: Date;
|
|
119
|
+
deleted?: boolean | undefined;
|
|
120
|
+
}[]) => Promise<z.infer<z.ZodObject<{
|
|
121
|
+
successful_rows: z.ZodNumber;
|
|
122
|
+
quarantined_rows: z.ZodNumber;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
124
|
successful_rows: number;
|
|
76
125
|
quarantined_rows: number;
|
|
77
|
-
}
|
|
126
|
+
}, {
|
|
127
|
+
successful_rows: number;
|
|
128
|
+
quarantined_rows: number;
|
|
129
|
+
}>>>;
|
|
78
130
|
export declare const transformLinkTB: (link: AccessLinkDTO) => {
|
|
79
131
|
link_id: string;
|
|
80
132
|
domain: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-link.d.ts","sourceRoot":"","sources":["../../src/analytics/record-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAG5C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBpC,CAAA;AAEF,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,QAAQ
|
|
1
|
+
{"version":3,"file":"record-link.d.ts","sourceRoot":"","sources":["../../src/analytics/record-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAG5C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBpC,CAAA;AAEF,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAO5C;AAGD,eAAO,MAAM,eAAe,GAAI,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;CAyBlD,CAAA;AAGD,eAAO,MAAM,UAAU,GACrB,IAAI,QAAQ,EACZ,SAAS,aAAa,GAAG,aAAa,EAAE;;;EASzC,CAAA"}
|
|
@@ -1,10 +1,69 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { Tinybird } from "@chronark/zod-bird";
|
|
2
|
-
export declare function createRecordSale(tb: Tinybird): (events:
|
|
3
|
+
export declare function createRecordSale(tb: Tinybird): (events: {
|
|
4
|
+
click_id: string;
|
|
5
|
+
link_id: string;
|
|
6
|
+
user_id: string | null;
|
|
7
|
+
project_id: string | null;
|
|
8
|
+
event_id: string;
|
|
9
|
+
event_name: string;
|
|
10
|
+
customer_id: string;
|
|
11
|
+
sale_amount: number;
|
|
12
|
+
currency?: string | undefined;
|
|
13
|
+
metadata?: string | undefined;
|
|
14
|
+
} | {
|
|
15
|
+
click_id: string;
|
|
16
|
+
link_id: string;
|
|
17
|
+
user_id: string | null;
|
|
18
|
+
project_id: string | null;
|
|
19
|
+
event_id: string;
|
|
20
|
+
event_name: string;
|
|
21
|
+
customer_id: string;
|
|
22
|
+
sale_amount: number;
|
|
23
|
+
currency?: string | undefined;
|
|
24
|
+
metadata?: string | undefined;
|
|
25
|
+
}[]) => Promise<z.infer<z.ZodObject<{
|
|
26
|
+
successful_rows: z.ZodNumber;
|
|
27
|
+
quarantined_rows: z.ZodNumber;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
3
29
|
successful_rows: number;
|
|
4
30
|
quarantined_rows: number;
|
|
5
|
-
}
|
|
6
|
-
export declare function createRecordSaleWithTimestamp(tb: Tinybird): (events: any) => Promise<{
|
|
31
|
+
}, {
|
|
7
32
|
successful_rows: number;
|
|
8
33
|
quarantined_rows: number;
|
|
9
|
-
}
|
|
34
|
+
}>>>;
|
|
35
|
+
export declare function createRecordSaleWithTimestamp(tb: Tinybird): (events: {
|
|
36
|
+
timestamp: string;
|
|
37
|
+
click_id: string;
|
|
38
|
+
link_id: string;
|
|
39
|
+
user_id: string | null;
|
|
40
|
+
project_id: string | null;
|
|
41
|
+
event_id: string;
|
|
42
|
+
event_name: string;
|
|
43
|
+
customer_id: string;
|
|
44
|
+
sale_amount: number;
|
|
45
|
+
metadata?: string | undefined;
|
|
46
|
+
currency?: string | undefined;
|
|
47
|
+
} | {
|
|
48
|
+
timestamp: string;
|
|
49
|
+
click_id: string;
|
|
50
|
+
link_id: string;
|
|
51
|
+
user_id: string | null;
|
|
52
|
+
project_id: string | null;
|
|
53
|
+
event_id: string;
|
|
54
|
+
event_name: string;
|
|
55
|
+
customer_id: string;
|
|
56
|
+
sale_amount: number;
|
|
57
|
+
metadata?: string | undefined;
|
|
58
|
+
currency?: string | undefined;
|
|
59
|
+
}[]) => Promise<z.infer<z.ZodObject<{
|
|
60
|
+
successful_rows: z.ZodNumber;
|
|
61
|
+
quarantined_rows: z.ZodNumber;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
successful_rows: number;
|
|
64
|
+
quarantined_rows: number;
|
|
65
|
+
}, {
|
|
66
|
+
successful_rows: number;
|
|
67
|
+
quarantined_rows: number;
|
|
68
|
+
}>>>;
|
|
10
69
|
//# sourceMappingURL=record-sale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-sale.d.ts","sourceRoot":"","sources":["../../src/analytics/record-sale.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"record-sale.d.ts","sourceRoot":"","sources":["../../src/analytics/record-sale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAgB7C,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAM5C;AAED,wBAAgB,6BAA6B,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQzD"}
|
|
@@ -19,8 +19,26 @@ export declare const webhookEventSchemaTB: z.ZodObject<{
|
|
|
19
19
|
event_type: string;
|
|
20
20
|
payload: string;
|
|
21
21
|
}>;
|
|
22
|
-
export declare function createRecordWebhookEvent(tb: Tinybird): (events:
|
|
22
|
+
export declare function createRecordWebhookEvent(tb: Tinybird): (events: {
|
|
23
|
+
project_id: string | null;
|
|
24
|
+
status: string;
|
|
25
|
+
webhook_id: string;
|
|
26
|
+
event_type: string;
|
|
27
|
+
payload: string;
|
|
28
|
+
} | {
|
|
29
|
+
project_id: string | null;
|
|
30
|
+
status: string;
|
|
31
|
+
webhook_id: string;
|
|
32
|
+
event_type: string;
|
|
33
|
+
payload: string;
|
|
34
|
+
}[]) => Promise<z.infer<z.ZodObject<{
|
|
35
|
+
successful_rows: z.ZodNumber;
|
|
36
|
+
quarantined_rows: z.ZodNumber;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
38
|
successful_rows: number;
|
|
24
39
|
quarantined_rows: number;
|
|
25
|
-
}
|
|
40
|
+
}, {
|
|
41
|
+
successful_rows: number;
|
|
42
|
+
quarantined_rows: number;
|
|
43
|
+
}>>>;
|
|
26
44
|
//# sourceMappingURL=record-webhook-event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-webhook-event.d.ts","sourceRoot":"","sources":["../../src/analytics/record-webhook-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG7C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAA;AAEF,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,QAAQ
|
|
1
|
+
{"version":3,"file":"record-webhook-event.d.ts","sourceRoot":"","sources":["../../src/analytics/record-webhook-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG7C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAA;AAEF,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;KAOpD"}
|
|
@@ -242,8 +242,8 @@ export declare const accessGrantEventResponseSchema: z.ZodObject<{
|
|
|
242
242
|
resourceType: string;
|
|
243
243
|
resourceId: string;
|
|
244
244
|
role: string;
|
|
245
|
-
event: "access_grant";
|
|
246
245
|
grantId: string;
|
|
246
|
+
event: "access_grant";
|
|
247
247
|
}, {
|
|
248
248
|
linkId: string;
|
|
249
249
|
userId: string;
|
|
@@ -251,7 +251,7 @@ export declare const accessGrantEventResponseSchema: z.ZodObject<{
|
|
|
251
251
|
resourceType: string;
|
|
252
252
|
resourceId: string;
|
|
253
253
|
role: string;
|
|
254
|
-
event: "access_grant";
|
|
255
254
|
grantId: string;
|
|
255
|
+
event: "access_grant";
|
|
256
256
|
}>;
|
|
257
257
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-models.d.ts","sourceRoot":"","sources":["../../../src/modules-sdk/loaders/load-models.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"load-models.d.ts","sourceRoot":"","sources":["../../../src/modules-sdk/loaders/load-models.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAiCnB,GAAG,EAAE,CAC5B"}
|
|
@@ -16,7 +16,8 @@ function loadModels(basePath) {
|
|
|
16
16
|
catch (e) { }
|
|
17
17
|
return modelsFiles
|
|
18
18
|
.flatMap((file) => {
|
|
19
|
-
if (file.startsWith("
|
|
19
|
+
if (file.startsWith(".") ||
|
|
20
|
+
file.startsWith("index.") ||
|
|
20
21
|
excludedExtensions.some((ext) => file.endsWith(ext))) {
|
|
21
22
|
return;
|
|
22
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-models.js","sourceRoot":"","sources":["../../../src/modules-sdk/loaders/load-models.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"load-models.js","sourceRoot":"","sources":["../../../src/modules-sdk/loaders/load-models.ts"],"names":[],"mappings":";;AAOA,gCAkCC;AAzCD,2BAA0C;AAC1C,+BAA2B;AAE3B;;;GAGG;AACH,SAAgB,UAAU,CAAC,QAAgB;IACzC,MAAM,kBAAkB,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;IAE1D,IAAI,WAAW,GAAU,EAAE,CAAA;IAC3B,IAAI,CAAC;QACH,WAAW,GAAG,IAAA,gBAAW,EAAC,QAAQ,CAAC,CAAA;IACrC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;IAEd,OAAO,WAAW;SACf,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAChB,IACE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;YACpB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YACzB,kBAAkB,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EACpD,CAAC;YACD,OAAM;QACR,CAAC;QAED,MAAM,QAAQ,GAAG,IAAA,WAAI,EAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;QACrC,MAAM,KAAK,GAAG,IAAA,aAAQ,EAAC,QAAQ,CAAC,CAAA;QAEhC,IAAI,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;YACnB,IAAI,CAAC;gBACH,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;gBAElC,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CACnC,CAAC,QAAa,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CACnC,CAAA;YACH,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;QAChB,CAAC;QAED,OAAM;IACR,CAAC,CAAC;SACD,MAAM,CAAC,OAAO,CAAU,CAAA;AAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-migration-generate.d.ts","sourceRoot":"","sources":["../../../src/modules-sdk/migration-scripts/service-migration-generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,eAAe,EAAE,MAAM,cAAc,CAAA;AAQrE,wBAAgB,mCAAmC,CAAC,EAClD,UAAU,EACV,MAAM,EACN,gBAAgB,GACjB;;;;CAAA,IACwB,uBAGpB,IAAI,CACL,aAAa,CAAC,eAAe,CAAC,8BAA8B,CAAC,EAC7D,SAAS,GAAG,QAAQ,CAChB,
|
|
1
|
+
{"version":3,"file":"service-migration-generate.d.ts","sourceRoot":"","sources":["../../../src/modules-sdk/migration-scripts/service-migration-generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,eAAe,EAAE,MAAM,cAAc,CAAA;AAQrE,wBAAgB,mCAAmC,CAAC,EAClD,UAAU,EACV,MAAM,EACN,gBAAgB,GACjB;;;;CAAA,IACwB,uBAGpB,IAAI,CACL,aAAa,CAAC,eAAe,CAAC,8BAA8B,CAAC,EAC7D,SAAS,GAAG,QAAQ,CAChB,mBA+DP"}
|
|
@@ -42,7 +42,12 @@ function buildServiceGenerateMigrationScript({ moduleName, models, pathToMigrati
|
|
|
42
42
|
logger.error(`[Service Migration Mode] Failed with error ${error.message}`, error);
|
|
43
43
|
}
|
|
44
44
|
finally {
|
|
45
|
-
|
|
45
|
+
try {
|
|
46
|
+
await orm.close();
|
|
47
|
+
}
|
|
48
|
+
catch (closeError) {
|
|
49
|
+
logger.warn?.(`[Service Migration Mode] Ignoring connection close error: ${closeError.message}`);
|
|
50
|
+
}
|
|
46
51
|
}
|
|
47
52
|
};
|
|
48
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-migration-generate.js","sourceRoot":"","sources":["../../../src/modules-sdk/migration-scripts/service-migration-generate.ts"],"names":[],"mappings":";;AAQA,
|
|
1
|
+
{"version":3,"file":"service-migration-generate.js","sourceRoot":"","sources":["../../../src/modules-sdk/migration-scripts/service-migration-generate.ts"],"names":[],"mappings":";;AAQA,kFA0EC;AAjFD,mCAAoD;AACpD,gFAAmE;AACnE,iDAA6C;AAC7C,mCAA8C;AAC9C,8DAAsD;AACtD,yFAAmF;AAEnF,SAAgB,mCAAmC,CAAC,EAClD,UAAU,EACV,MAAM,EACN,gBAAgB,GACjB;IACC,OAAO,KAAK,WAAW,EACrB,OAAO,EACP,MAAM,MAIJ,EAAE;QACJ,MAAM,KAAK,OAA4B,CAAA;QAEvC,MAAM,CAAC,IAAI,CAAC,WAAW,UAAU,2BAA2B,CAAC,CAAA;QAE7D,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;YACvB,qFAAqF;YACrF,MAAM,CAAC,IAAI,CACT,yBAAyB,UAAU,iCAAiC,CACrE,CAAA;YACD,OAAM;QACR,CAAC;QAED,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAA;YAC3D,OAAM;QACR,CAAC;QAED,uCAAuC;QACvC,MAAM,MAAM,GAAG,IAAA,gDAAkB,EAAC,UAAU,EAAE,OAAO,CAAE,CAAA;QACvD,MAAM,gBAAgB,GAAG,IAAA,wBAAkB,EAAC,MAAM,CAAC,CAAA;QACnD,MAAM,qBAAqB,GAAG,gBAAgB,IAAI,cAAc,CAAA;QAEhE,MAAM,GAAG,GAAG,MAAM,IAAA,8BAAwB,EACxC;YACE,GAAG,MAAM;YACT,YAAY,EAAE,iBAAiB,IAAA,yBAAS,EACtC,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAClC,EAAE;SACJ,EACD,gBAAgB,EAChB,qBAAqB,EACrB,+CAAqB,CACtB,CAAA;QAED,MAAM,UAAU,GAAG,IAAI,uBAAU,CAAC,GAAG,CAAC,CAAA;QAEtC,IAAI,CAAC;YACH,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,UAAU,CAAC,QAAQ,EAAE,CAAA;YAChD,IAAI,QAAQ,EAAE,CAAC;gBACb,MAAM,CAAC,IAAI,CACT,6DAA6D,QAAQ,EAAE,CACxE,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,IAAI,CACT,uEAAuE,CACxE,CAAA;YACH,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CACV,8CAA8C,KAAK,CAAC,OAAO,EAAE,EAC7D,KAAK,CACN,CAAA;QACH,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC;gBACH,MAAM,GAAG,CAAC,KAAK,EAAE,CAAA;YACnB,CAAC;YAAC,OAAO,UAAU,EAAE,CAAC;gBACpB,MAAM,CAAC,IAAI,EAAE,CACX,6DAA6D,UAAU,CAAC,OAAO,EAAE,CAClF,CAAA;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -68,8 +68,8 @@ export declare const approvalEventResponseSchema: z.ZodObject<{
|
|
|
68
68
|
timestamp: string;
|
|
69
69
|
resourceType: string;
|
|
70
70
|
resourceId: string;
|
|
71
|
-
event: "approval";
|
|
72
71
|
decision: "approve" | "reject" | "pending";
|
|
72
|
+
event: "approval";
|
|
73
73
|
approvalId: string;
|
|
74
74
|
requesterId: string;
|
|
75
75
|
approverId: string | null;
|
|
@@ -80,8 +80,8 @@ export declare const approvalEventResponseSchema: z.ZodObject<{
|
|
|
80
80
|
timestamp: string;
|
|
81
81
|
resourceType: string;
|
|
82
82
|
resourceId: string;
|
|
83
|
-
event: "approval";
|
|
84
83
|
decision: "approve" | "reject" | "pending";
|
|
84
|
+
event: "approval";
|
|
85
85
|
approvalId: string;
|
|
86
86
|
requesterId: string;
|
|
87
87
|
approverId: string | null;
|
|
@@ -157,11 +157,11 @@ export declare const leadEventSchemaTBEndpoint: z.ZodObject<{
|
|
|
157
157
|
event_id: string;
|
|
158
158
|
event_name: string;
|
|
159
159
|
customer_id: string;
|
|
160
|
-
event: "lead";
|
|
161
160
|
device: string | null;
|
|
162
161
|
browser: string | null;
|
|
163
162
|
os: string | null;
|
|
164
163
|
referer_url: string | null;
|
|
164
|
+
event: "lead";
|
|
165
165
|
}, {
|
|
166
166
|
continent: string | null;
|
|
167
167
|
country: string | null;
|
|
@@ -176,11 +176,11 @@ export declare const leadEventSchemaTBEndpoint: z.ZodObject<{
|
|
|
176
176
|
event_id: string;
|
|
177
177
|
event_name: string;
|
|
178
178
|
customer_id: string;
|
|
179
|
-
event: "lead";
|
|
180
179
|
device: string | null;
|
|
181
180
|
browser: string | null;
|
|
182
181
|
os: string | null;
|
|
183
182
|
referer_url: string | null;
|
|
183
|
+
event: "lead";
|
|
184
184
|
}>;
|
|
185
185
|
export declare const leadEventResponseSchema: z.ZodObject<{
|
|
186
186
|
event: z.ZodLiteral<"lead">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etohq/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Eto utilities functions shared by Eto core and Modules",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -26,54 +26,54 @@
|
|
|
26
26
|
"author": "Eto",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@mikro-orm/core": "
|
|
30
|
-
"@mikro-orm/knex": "
|
|
31
|
-
"@mikro-orm/migrations": "
|
|
32
|
-
"@mikro-orm/postgresql": "
|
|
33
|
-
"@swc/core": "
|
|
34
|
-
"@swc/jest": "
|
|
35
|
-
"@types/jest": "
|
|
36
|
-
"@types/node": "
|
|
37
|
-
"autocannon": "
|
|
38
|
-
"awilix": "
|
|
39
|
-
"expect-type": "
|
|
40
|
-
"jest": "
|
|
41
|
-
"pg": "
|
|
42
|
-
"pg-god": "
|
|
43
|
-
"tsc-alias": "
|
|
44
|
-
"rimraf": "
|
|
45
|
-
"typescript": "
|
|
29
|
+
"@mikro-orm/core": "6.4.3",
|
|
30
|
+
"@mikro-orm/knex": "6.4.3",
|
|
31
|
+
"@mikro-orm/migrations": "6.4.3",
|
|
32
|
+
"@mikro-orm/postgresql": "6.4.3",
|
|
33
|
+
"@swc/core": "1.7.28",
|
|
34
|
+
"@swc/jest": "0.2.36",
|
|
35
|
+
"@types/jest": "29.5.14",
|
|
36
|
+
"@types/node": "22.10.5",
|
|
37
|
+
"autocannon": "8.0.0",
|
|
38
|
+
"awilix": "8.0.1",
|
|
39
|
+
"expect-type": "0.20.0",
|
|
40
|
+
"jest": "29.7.0",
|
|
41
|
+
"pg": "8.13.0",
|
|
42
|
+
"pg-god": "1.0.12",
|
|
43
|
+
"tsc-alias": "1.8.6",
|
|
44
|
+
"rimraf": "5.0.2",
|
|
45
|
+
"typescript": "5.8.3"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@casl/ability": "
|
|
49
|
-
"@
|
|
50
|
-
"@graphql-codegen/
|
|
51
|
-
"@graphql-
|
|
52
|
-
"@graphql-tools/
|
|
53
|
-
"@
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"dotenv": "
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
48
|
+
"@casl/ability": "^6.5.0",
|
|
49
|
+
"@graphql-codegen/core": "4.0.2",
|
|
50
|
+
"@graphql-codegen/typescript": "4.0.9",
|
|
51
|
+
"@graphql-tools/merge": "9.0.7",
|
|
52
|
+
"@graphql-tools/schema": "10.0.6",
|
|
53
|
+
"@types/pluralize": "0.0.33",
|
|
54
|
+
"bignumber.js": "9.1.2",
|
|
55
|
+
"dotenv": "16.4.5",
|
|
56
|
+
"dotenv-expand": "11.0.6",
|
|
57
|
+
"graphql": "16.9.0",
|
|
58
|
+
"jsonwebtoken": "9.0.2",
|
|
59
|
+
"pg-connection-string": "2.7.0",
|
|
60
|
+
"pluralize": "8.0.0",
|
|
61
|
+
"fs-extra": "10.0.0",
|
|
62
|
+
"@chronark/zod-bird": "0.3.10",
|
|
63
|
+
"zod": "3.22.4",
|
|
64
|
+
"ulid": "2.3.0",
|
|
65
|
+
"nanoid": "5.1.6",
|
|
66
|
+
"@sindresorhus/slugify": "2.2.1",
|
|
67
|
+
"geojson": "^0.5.0",
|
|
68
|
+
"@etohq/types": "2.0.1"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@mikro-orm/core": "
|
|
72
|
-
"@mikro-orm/knex": "
|
|
73
|
-
"@mikro-orm/migrations": "
|
|
74
|
-
"@mikro-orm/postgresql": "
|
|
75
|
-
"awilix": "
|
|
76
|
-
"pg": "
|
|
71
|
+
"@mikro-orm/core": "6.4.3",
|
|
72
|
+
"@mikro-orm/knex": "6.4.3",
|
|
73
|
+
"@mikro-orm/migrations": "6.4.3",
|
|
74
|
+
"@mikro-orm/postgresql": "6.4.3",
|
|
75
|
+
"awilix": "8.0.1",
|
|
76
|
+
"pg": "8.13.0"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"build": "rimraf dist && tsc --build && npm run resolve:aliases",
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
"test": "jest --silent --bail --maxWorkers=50% --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts",
|
|
83
83
|
"test:integration": "jest --silent --bail --runInBand --forceExit -- src/**/integration-tests/__tests__/**/*.ts"
|
|
84
84
|
}
|
|
85
|
-
}
|
|
85
|
+
}
|