@devrev/meerkat-node 0.0.123 → 0.0.124
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/__tests__/comprehensive/helpers/test-helpers.js +214 -0
- package/__tests__/comprehensive/helpers/test-helpers.js.map +1 -0
- package/__tests__/comprehensive/synthetic/schema-setup.js +256 -0
- package/__tests__/comprehensive/synthetic/schema-setup.js.map +1 -0
- package/__tests__/comprehensive/synthetic/table-schemas.js +453 -0
- package/__tests__/comprehensive/synthetic/table-schemas.js.map +1 -0
- package/ensure-table-schema-alias/ensure-table-schema-alias.js +39 -0
- package/ensure-table-schema-alias/ensure-table-schema-alias.js.map +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/comprehensive/helpers/test-helpers.d.ts +106 -0
- package/src/__tests__/comprehensive/synthetic/schema-setup.d.ts +31 -0
- package/src/__tests__/comprehensive/synthetic/table-schemas.d.ts +123 -0
- package/src/ensure-table-schema-alias/ensure-table-schema-alias.d.ts +3 -0
- package/src/index.d.ts +1 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TableSchema Definitions for Synthetic Test Tables
|
|
3
|
+
*
|
|
4
|
+
* These schemas match the synthetic tables created in schema-setup.ts
|
|
5
|
+
* and follow the same conventions as production Meerkat schemas.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FACT_ALL_TYPES_SCHEMA: {
|
|
8
|
+
name: string;
|
|
9
|
+
sql: string;
|
|
10
|
+
measures: {
|
|
11
|
+
name: string;
|
|
12
|
+
sql: string;
|
|
13
|
+
type: string;
|
|
14
|
+
}[];
|
|
15
|
+
dimensions: {
|
|
16
|
+
name: string;
|
|
17
|
+
sql: string;
|
|
18
|
+
type: string;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
export declare const DIM_USER_SCHEMA: {
|
|
22
|
+
name: string;
|
|
23
|
+
sql: string;
|
|
24
|
+
measures: {
|
|
25
|
+
name: string;
|
|
26
|
+
sql: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
dimensions: {
|
|
30
|
+
name: string;
|
|
31
|
+
sql: string;
|
|
32
|
+
type: string;
|
|
33
|
+
}[];
|
|
34
|
+
joins: {
|
|
35
|
+
name: string;
|
|
36
|
+
relationship: string;
|
|
37
|
+
sql: string;
|
|
38
|
+
}[];
|
|
39
|
+
};
|
|
40
|
+
export declare const DIM_PART_SCHEMA: {
|
|
41
|
+
name: string;
|
|
42
|
+
sql: string;
|
|
43
|
+
measures: {
|
|
44
|
+
name: string;
|
|
45
|
+
sql: string;
|
|
46
|
+
type: string;
|
|
47
|
+
}[];
|
|
48
|
+
dimensions: {
|
|
49
|
+
name: string;
|
|
50
|
+
sql: string;
|
|
51
|
+
type: string;
|
|
52
|
+
}[];
|
|
53
|
+
joins: {
|
|
54
|
+
name: string;
|
|
55
|
+
relationship: string;
|
|
56
|
+
sql: string;
|
|
57
|
+
}[];
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Helper to get all schemas as an array
|
|
61
|
+
*/
|
|
62
|
+
export declare function getAllSchemas(): {
|
|
63
|
+
name: string;
|
|
64
|
+
sql: string;
|
|
65
|
+
measures: {
|
|
66
|
+
name: string;
|
|
67
|
+
sql: string;
|
|
68
|
+
type: string;
|
|
69
|
+
}[];
|
|
70
|
+
dimensions: {
|
|
71
|
+
name: string;
|
|
72
|
+
sql: string;
|
|
73
|
+
type: string;
|
|
74
|
+
}[];
|
|
75
|
+
}[];
|
|
76
|
+
/**
|
|
77
|
+
* Helper to get just the fact schema
|
|
78
|
+
*/
|
|
79
|
+
export declare function getFactSchema(): {
|
|
80
|
+
name: string;
|
|
81
|
+
sql: string;
|
|
82
|
+
measures: {
|
|
83
|
+
name: string;
|
|
84
|
+
sql: string;
|
|
85
|
+
type: string;
|
|
86
|
+
}[];
|
|
87
|
+
dimensions: {
|
|
88
|
+
name: string;
|
|
89
|
+
sql: string;
|
|
90
|
+
type: string;
|
|
91
|
+
}[];
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Helper to get fact + one dimension
|
|
95
|
+
*/
|
|
96
|
+
export declare function getFactWithUserSchema(): {
|
|
97
|
+
name: string;
|
|
98
|
+
sql: string;
|
|
99
|
+
measures: {
|
|
100
|
+
name: string;
|
|
101
|
+
sql: string;
|
|
102
|
+
type: string;
|
|
103
|
+
}[];
|
|
104
|
+
dimensions: {
|
|
105
|
+
name: string;
|
|
106
|
+
sql: string;
|
|
107
|
+
type: string;
|
|
108
|
+
}[];
|
|
109
|
+
}[];
|
|
110
|
+
export declare function getFactWithPartSchema(): {
|
|
111
|
+
name: string;
|
|
112
|
+
sql: string;
|
|
113
|
+
measures: {
|
|
114
|
+
name: string;
|
|
115
|
+
sql: string;
|
|
116
|
+
type: string;
|
|
117
|
+
}[];
|
|
118
|
+
dimensions: {
|
|
119
|
+
name: string;
|
|
120
|
+
sql: string;
|
|
121
|
+
type: string;
|
|
122
|
+
}[];
|
|
123
|
+
}[];
|
package/src/index.d.ts
CHANGED