@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.
@@ -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
+ }[];
@@ -0,0 +1,3 @@
1
+ import { TableSchema } from '@devrev/meerkat-core';
2
+ export declare const ensureTableSchemasAlias: (tableSchemas: TableSchema[]) => Promise<TableSchema[]>;
3
+ export declare const ensureTableSchemaAlias: () => (tableSchemas: TableSchema[]) => Promise<TableSchema[]>;
package/src/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from './duckdb-manager/duckdb-manager';
4
4
  export * from './duckdb-singleton';
5
5
  export * from './file-manager/file-manager';
6
6
  export * from './node-sql-to-serialization';
7
+ export * from './ensure-table-schema-alias/ensure-table-schema-alias';