@transai/connector-runner-api 0.13.0 → 0.15.0

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 (75) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/index.cjs +1 -1
  3. package/index.cjs.map +3 -3
  4. package/libs/connector-runner-api/src/lib/actions.service.d.ts +1 -2
  5. package/libs/connector-runner-api/src/lib/connector-runner-api.d.ts +1 -2
  6. package/libs/connector-runner-api/src/lib/types.d.ts +1 -2
  7. package/libs/connector-runtime-sdk/src/lib/sdk/offset-store.sdk.interface.d.ts +1 -0
  8. package/libs/connector-runtime-sdk/src/lib/sdk/processing.sdk.interface.d.ts +17 -0
  9. package/package.json +1 -1
  10. package/index.js +0 -2
  11. package/index.js.map +0 -7
  12. package/libs/types/src/index.d.ts +0 -7
  13. package/libs/types/src/lib/cube-query-config.types.d.ts +0 -20
  14. package/libs/types/src/lib/file-action.types.d.ts +0 -5
  15. package/libs/types/src/lib/http-status-codes.enum.d.ts +0 -64
  16. package/libs/types/src/lib/management-api/action-definition.interface.d.ts +0 -12
  17. package/libs/types/src/lib/management-api/author.interface.d.ts +0 -11
  18. package/libs/types/src/lib/management-api/chart.interface.d.ts +0 -9
  19. package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +0 -52
  20. package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +0 -38
  21. package/libs/types/src/lib/management-api/connector-orchestrator-config.interface.d.ts +0 -14
  22. package/libs/types/src/lib/management-api/cube-dataset.interface.d.ts +0 -94
  23. package/libs/types/src/lib/management-api/dashboard.interface.d.ts +0 -35
  24. package/libs/types/src/lib/management-api/dataset/collection.interface.d.ts +0 -10
  25. package/libs/types/src/lib/management-api/dataset/dataset-record.interface.d.ts +0 -41
  26. package/libs/types/src/lib/management-api/dataset/dataset.interface.d.ts +0 -118
  27. package/libs/types/src/lib/management-api/dataset/datasets.interface.d.ts +0 -96
  28. package/libs/types/src/lib/management-api/dataset/dimension.interface.d.ts +0 -53
  29. package/libs/types/src/lib/management-api/dataset/dimensions.interface.d.ts +0 -33
  30. package/libs/types/src/lib/management-api/dataset/filter-group.interface.d.ts +0 -8
  31. package/libs/types/src/lib/management-api/dataset/filter.interface.d.ts +0 -14
  32. package/libs/types/src/lib/management-api/dataset/filters.interface.d.ts +0 -7
  33. package/libs/types/src/lib/management-api/dataset/measure.interface.d.ts +0 -27
  34. package/libs/types/src/lib/management-api/dataset/measures.interface.d.ts +0 -17
  35. package/libs/types/src/lib/management-api/dataset/meta.interface.d.ts +0 -9
  36. package/libs/types/src/lib/management-api/dataset/pre-aggregate.interface.d.ts +0 -41
  37. package/libs/types/src/lib/management-api/dataset/pre-aggregations.interface.d.ts +0 -26
  38. package/libs/types/src/lib/management-api/dataset/relation.interface.d.ts +0 -16
  39. package/libs/types/src/lib/management-api/dataset/relations.interface.d.ts +0 -12
  40. package/libs/types/src/lib/management-api/dataset/segment.interface.d.ts +0 -17
  41. package/libs/types/src/lib/management-api/dataset/segments.interface.d.ts +0 -15
  42. package/libs/types/src/lib/management-api/dataset/switch.interface.d.ts +0 -20
  43. package/libs/types/src/lib/management-api/dataset/when-item.interface.d.ts +0 -15
  44. package/libs/types/src/lib/management-api/dataset/when-items.interface.d.ts +0 -14
  45. package/libs/types/src/lib/management-api/event-origin.interface.d.ts +0 -24
  46. package/libs/types/src/lib/management-api/index.d.ts +0 -40
  47. package/libs/types/src/lib/management-api/semantic-trigger/custom-cron-trigger-record.interface.d.ts +0 -6
  48. package/libs/types/src/lib/management-api/semantic-trigger/index.d.ts +0 -6
  49. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts +0 -12
  50. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts +0 -10
  51. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-record.interface.d.ts +0 -6
  52. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger.interface.d.ts +0 -35
  53. package/libs/types/src/lib/management-api/semantic-trigger/semantic-triggers.interface.d.ts +0 -22
  54. package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +0 -150
  55. package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +0 -314
  56. package/libs/types/src/lib/management-api/template.interface.d.ts +0 -190
  57. package/libs/types/src/lib/management-api/tenant.interface.d.ts +0 -8
  58. package/libs/types/src/lib/management-api/type-enums.d.ts +0 -91
  59. package/libs/types/src/lib/management-api/web/generic-filter.dto.d.ts +0 -37
  60. package/libs/types/src/lib/management-api/web/index.d.ts +0 -2
  61. package/libs/types/src/lib/management-api/web/paginated-response.interface.d.ts +0 -17
  62. package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +0 -71
  63. package/libs/types/src/lib/management-api/workflow/enums/index.d.ts +0 -3
  64. package/libs/types/src/lib/management-api/workflow/enums/node-types.enum.d.ts +0 -14
  65. package/libs/types/src/lib/management-api/workflow/enums/trigger-types.enum.d.ts +0 -14
  66. package/libs/types/src/lib/management-api/workflow/enums/workflow-status.enum.d.ts +0 -16
  67. package/libs/types/src/lib/management-api/workflow/index.d.ts +0 -7
  68. package/libs/types/src/lib/management-api/workflow/offset.interface.d.ts +0 -14
  69. package/libs/types/src/lib/management-api/workflow/parameter-mapper.interface.d.ts +0 -26
  70. package/libs/types/src/lib/management-api/workflow/workflow-definition.interface.d.ts +0 -66
  71. package/libs/types/src/lib/management-api/workflow/workflow-drawing.interface.d.ts +0 -96
  72. package/libs/types/src/lib/management-api/workflow/workflow-run.interface.d.ts +0 -57
  73. package/libs/types/src/lib/message.types.d.ts +0 -59
  74. package/libs/types/src/lib/response.types.d.ts +0 -27
  75. package/libs/types/src/lib/types.d.ts +0 -134
@@ -1,94 +0,0 @@
1
- import { MetaInterface } from './dataset/meta.interface';
2
- export interface CubePreAggregationInterface {
3
- type?: 'rollup' | 'original_sql' | 'rollup_join';
4
- measures?: Array<string>;
5
- dimensions?: Array<string>;
6
- segments?: Array<string>;
7
- timeDimension?: string;
8
- granularity?: string;
9
- rollups?: Array<string>;
10
- refreshKeySql?: string;
11
- refreshKeyEvery?: string;
12
- refreshKeyIncremental?: boolean;
13
- refreshKeyUpdateWindow?: string;
14
- lambdaAggregation?: boolean;
15
- }
16
- export interface CubePreAggregationsInterface {
17
- [key: string]: CubePreAggregationInterface;
18
- }
19
- export interface CubeDatasetInterface {
20
- id: string;
21
- dataSource: string;
22
- name: string;
23
- description: string;
24
- tenantId: string;
25
- parentId?: string;
26
- sql?: string;
27
- refreshSql?: string;
28
- meta?: MetaInterface;
29
- dimensions: CubeDimensionsInterface;
30
- segments?: CubeSegmentsInterface;
31
- relations?: CubeRelationsInterface;
32
- measures?: CubeMeasuresInterface;
33
- preAggregations?: CubePreAggregationsInterface;
34
- }
35
- export interface CubeDimensionsInterface {
36
- [key: string]: CubeDimensionInterface;
37
- }
38
- export interface CubeDimensionInterface {
39
- title: string;
40
- description: string;
41
- index?: boolean;
42
- upperIndex?: boolean;
43
- type: string;
44
- format?: string;
45
- primaryKey?: boolean;
46
- public?: boolean;
47
- subQuery?: boolean;
48
- sql?: string;
49
- case?: CubeDimensionCaseInterface;
50
- meta?: MetaInterface;
51
- granularities?: {
52
- [key: string]: {
53
- interval: string;
54
- };
55
- };
56
- }
57
- export interface CubeDimensionCaseInterface {
58
- when: Array<CubeDimensionCaseWhenInterface>;
59
- else: {
60
- label: string;
61
- };
62
- }
63
- export interface CubeDimensionCaseWhenInterface {
64
- label: string;
65
- sql: string;
66
- }
67
- export interface CubeRelationsInterface {
68
- [key: string]: CubeRelationInterface;
69
- }
70
- export interface CubeRelationInterface {
71
- relationship: string;
72
- sql: string;
73
- }
74
- export interface CubeSegmentsInterface {
75
- [key: string]: CubeSegmentInterface;
76
- }
77
- export interface CubeSegmentInterface {
78
- public: boolean;
79
- sql: string;
80
- title?: string;
81
- description?: string;
82
- }
83
- export interface CubeMeasuresInterface {
84
- [key: string]: CubeMeasureInterface;
85
- }
86
- export interface CubeMeasureInterface {
87
- title: string;
88
- description?: string;
89
- public?: boolean;
90
- type: string;
91
- format?: string;
92
- sql: string;
93
- meta?: MetaInterface;
94
- }
@@ -1,35 +0,0 @@
1
- export type DashboardPositionValue = string | number | boolean | null | Record<string, unknown> | Array<unknown>;
2
- export interface DashboardPositionJson {
3
- [key: string]: DashboardPositionValue;
4
- }
5
- export interface CreateDashboardInterface {
6
- id: number;
7
- title: string | null;
8
- slug: string | null;
9
- description: string | null;
10
- positionJson: DashboardPositionJson | null;
11
- isPublished: boolean;
12
- tenantIdentifier: string;
13
- charts: Array<number>;
14
- roles: Array<string>;
15
- supersetId: number | null;
16
- }
17
- export interface UpdateDashboardInterface {
18
- title: string | null;
19
- slug: string | null;
20
- description: string | null;
21
- positionJson: DashboardPositionJson | null;
22
- isPublished: boolean;
23
- roles: Array<string>;
24
- charts: Array<number>;
25
- supersetId: number | null;
26
- }
27
- export interface DashboardInterface extends CreateDashboardInterface {
28
- createdAt: Date;
29
- updatedAt: Date;
30
- }
31
- export interface DashboardExportInterface {
32
- exportData: DashboardInterface;
33
- exportType: string;
34
- exportedAt: string;
35
- }
@@ -1,10 +0,0 @@
1
- import { z } from 'zod';
2
- import { FiltersInterface } from './filters.interface';
3
- export declare const CollectionSchema: z.ZodObject<{
4
- collection: z.ZodString;
5
- filters: z.ZodOptional<z.ZodType<FiltersInterface, unknown, z.core.$ZodTypeInternals<FiltersInterface, unknown>>>;
6
- }, z.core.$strip>;
7
- export interface CollectionInterface {
8
- collection: string;
9
- filters?: FiltersInterface;
10
- }
@@ -1,41 +0,0 @@
1
- import { DatasetStatusEnum, DatasetTypeEnum } from '../type-enums';
2
- import { DatasetInterface } from './dataset.interface';
3
- import { MetaInterface } from './meta.interface';
4
- export interface DatasetRecordInterface extends DatasetInterface {
5
- id: string;
6
- tenantId: string;
7
- }
8
- export interface DatasetRecordFiltersInterface {
9
- name: string;
10
- status: DatasetStatusEnum;
11
- type: DatasetTypeEnum;
12
- integration: string;
13
- }
14
- export interface ShallowDatasetRecordInterface {
15
- id: string;
16
- key: string;
17
- name: string;
18
- description: string;
19
- status: DatasetStatusEnum;
20
- type: DatasetTypeEnum;
21
- prefix: string;
22
- createdat: Date;
23
- updatedat: Date;
24
- meta?: MetaInterface;
25
- templateimplementationname?: string;
26
- templateimplementationdescription?: string;
27
- templateimplementationtemplateversion?: string;
28
- integration?: string;
29
- templatename?: string;
30
- templatedescription?: string;
31
- templateversion?: string;
32
- }
33
- export interface DetailedDatasetRecordInterface extends Omit<DatasetRecordInterface, 'tenantId'> {
34
- templateimplementationname?: string;
35
- templateimplementationdescription?: string;
36
- templateimplementationtemplateversion?: string;
37
- integration?: string;
38
- templatename?: string;
39
- templatedescription?: string;
40
- templateversion?: string;
41
- }
@@ -1,118 +0,0 @@
1
- import { z } from 'zod';
2
- import { DatasetStatusEnum, DatasetTypeEnum } from '../type-enums';
3
- import { CollectionInterface } from './collection.interface';
4
- import { DimensionsInterface } from './dimensions.interface';
5
- import { MeasuresInterface } from './measures.interface';
6
- import { MetaInterface } from './meta.interface';
7
- import { PreAggregationsInterface } from './pre-aggregations.interface';
8
- import { RelationsInterface } from './relations.interface';
9
- import { SegmentsInterface } from './segments.interface';
10
- export declare const DatasetSchema: z.ZodObject<{
11
- name: z.ZodString;
12
- description: z.ZodString;
13
- type: z.ZodEnum<typeof DatasetTypeEnum>;
14
- prefix: z.ZodString;
15
- parent: z.ZodOptional<z.ZodString>;
16
- sql: z.ZodOptional<z.ZodString>;
17
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
18
- collection: z.ZodOptional<z.ZodObject<{
19
- collection: z.ZodString;
20
- filters: z.ZodOptional<z.ZodType<import("./filters.interface").FiltersInterface, unknown, z.core.$ZodTypeInternals<import("./filters.interface").FiltersInterface, unknown>>>;
21
- }, z.core.$strip>>;
22
- dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
23
- name: z.ZodString;
24
- description: z.ZodString;
25
- type: z.ZodEnum<typeof import("../type-enums").DimensionTypesEnum>;
26
- format: z.ZodOptional<z.ZodEnum<typeof import("../type-enums").DimensionFormatsEnum>>;
27
- explode: z.ZodOptional<z.ZodBoolean>;
28
- index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
29
- upperIndex: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
30
- switch: z.ZodOptional<z.ZodObject<{
31
- when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
32
- sql: z.ZodOptional<z.ZodString>;
33
- dimension: z.ZodOptional<z.ZodString>;
34
- operator: z.ZodOptional<z.ZodEnum<typeof import("../type-enums").FilterOperatorsEnum>>;
35
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
36
- }, z.core.$strip>, z.ZodObject<{
37
- label: z.ZodString;
38
- description: z.ZodOptional<z.ZodString>;
39
- }, z.core.$strip>>, z.ZodLiteral<false>]>>;
40
- else: z.ZodOptional<z.ZodString>;
41
- segment: z.ZodOptional<z.ZodBoolean>;
42
- }, z.core.$strip>>;
43
- field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
44
- sql: z.ZodOptional<z.ZodString>;
45
- public: z.ZodOptional<z.ZodBoolean>;
46
- primaryKey: z.ZodOptional<z.ZodBoolean>;
47
- subQuery: z.ZodOptional<z.ZodBoolean>;
48
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
49
- }, z.core.$strip>, z.ZodLiteral<false>]>>>;
50
- segments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
51
- sql: z.ZodOptional<z.ZodString>;
52
- dimension: z.ZodOptional<z.ZodString>;
53
- operator: z.ZodOptional<z.ZodEnum<typeof import("../type-enums").FilterOperatorsEnum>>;
54
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
55
- }, z.core.$strip>, z.ZodObject<{
56
- name: z.ZodOptional<z.ZodString>;
57
- description: z.ZodOptional<z.ZodString>;
58
- public: z.ZodOptional<z.ZodBoolean>;
59
- }, z.core.$strip>>, z.ZodLiteral<false>]>>>;
60
- relations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
61
- type: z.ZodEnum<typeof import("../type-enums").RelationTypesEnum>;
62
- dimension: z.ZodOptional<z.ZodString>;
63
- targetDataset: z.ZodString;
64
- targetDimension: z.ZodOptional<z.ZodString>;
65
- sql: z.ZodOptional<z.ZodString>;
66
- }, z.core.$strip>, z.ZodLiteral<false>]>>>;
67
- measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
68
- name: z.ZodString;
69
- description: z.ZodOptional<z.ZodString>;
70
- type: z.ZodEnum<typeof import("../type-enums").MeasureTypesEnum>;
71
- format: z.ZodOptional<z.ZodEnum<typeof import("../type-enums").MeasureFormatsEnum>>;
72
- index: z.ZodOptional<z.ZodString>;
73
- upperIndex: z.ZodOptional<z.ZodString>;
74
- sql: z.ZodOptional<z.ZodString>;
75
- dimension: z.ZodOptional<z.ZodString>;
76
- public: z.ZodOptional<z.ZodBoolean>;
77
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
78
- }, z.core.$strip>, z.ZodLiteral<false>]>>>;
79
- preAggregations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
80
- type: z.ZodOptional<z.ZodEnum<{
81
- rollup: "rollup";
82
- original_sql: "original_sql";
83
- rollup_join: "rollup_join";
84
- }>>;
85
- measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
- dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
- segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
88
- timeDimension: z.ZodOptional<z.ZodString>;
89
- granularity: z.ZodOptional<z.ZodString>;
90
- partitionGranularity: z.ZodOptional<z.ZodString>;
91
- rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
- refreshKeySql: z.ZodOptional<z.ZodString>;
93
- refreshKeyEvery: z.ZodOptional<z.ZodString>;
94
- refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
95
- refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
96
- buildRangeStartSql: z.ZodOptional<z.ZodString>;
97
- buildRangeEndSql: z.ZodOptional<z.ZodString>;
98
- lambda: z.ZodOptional<z.ZodBoolean>;
99
- }, z.core.$strip>, z.ZodLiteral<false>]>>>;
100
- }, z.core.$strip>;
101
- export interface DatasetInterface {
102
- key: string;
103
- name: string;
104
- description: string;
105
- status: DatasetStatusEnum;
106
- type: DatasetTypeEnum;
107
- prefix: string;
108
- parent?: string;
109
- sql?: string;
110
- refreshSql?: string;
111
- meta?: MetaInterface;
112
- collection?: CollectionInterface;
113
- dimensions?: DimensionsInterface;
114
- segments?: SegmentsInterface;
115
- relations?: RelationsInterface;
116
- measures?: MeasuresInterface;
117
- preAggregations?: PreAggregationsInterface;
118
- }
@@ -1,96 +0,0 @@
1
- import { z } from 'zod';
2
- import { DatasetInterface } from './dataset.interface';
3
- export declare const DatasetsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
4
- name: z.ZodString;
5
- description: z.ZodString;
6
- type: z.ZodEnum<typeof import("..").DatasetTypeEnum>;
7
- prefix: z.ZodString;
8
- parent: z.ZodOptional<z.ZodString>;
9
- sql: z.ZodOptional<z.ZodString>;
10
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
11
- collection: z.ZodOptional<z.ZodObject<{
12
- collection: z.ZodString;
13
- filters: z.ZodOptional<z.ZodType<import("./filters.interface").FiltersInterface, unknown, z.core.$ZodTypeInternals<import("./filters.interface").FiltersInterface, unknown>>>;
14
- }, z.core.$strip>>;
15
- dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
16
- name: z.ZodString;
17
- description: z.ZodString;
18
- type: z.ZodEnum<typeof import("..").DimensionTypesEnum>;
19
- format: z.ZodOptional<z.ZodEnum<typeof import("..").DimensionFormatsEnum>>;
20
- explode: z.ZodOptional<z.ZodBoolean>;
21
- index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
22
- upperIndex: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
23
- switch: z.ZodOptional<z.ZodObject<{
24
- when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
25
- sql: z.ZodOptional<z.ZodString>;
26
- dimension: z.ZodOptional<z.ZodString>;
27
- operator: z.ZodOptional<z.ZodEnum<typeof import("..").FilterOperatorsEnum>>;
28
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
29
- }, z.core.$strip>, z.ZodObject<{
30
- label: z.ZodString;
31
- description: z.ZodOptional<z.ZodString>;
32
- }, z.core.$strip>>, z.ZodLiteral<false>]>>;
33
- else: z.ZodOptional<z.ZodString>;
34
- segment: z.ZodOptional<z.ZodBoolean>;
35
- }, z.core.$strip>>;
36
- field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
37
- sql: z.ZodOptional<z.ZodString>;
38
- public: z.ZodOptional<z.ZodBoolean>;
39
- primaryKey: z.ZodOptional<z.ZodBoolean>;
40
- subQuery: z.ZodOptional<z.ZodBoolean>;
41
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
42
- }, z.core.$strip>, z.ZodLiteral<false>]>>>;
43
- segments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
44
- sql: z.ZodOptional<z.ZodString>;
45
- dimension: z.ZodOptional<z.ZodString>;
46
- operator: z.ZodOptional<z.ZodEnum<typeof import("..").FilterOperatorsEnum>>;
47
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
48
- }, z.core.$strip>, z.ZodObject<{
49
- name: z.ZodOptional<z.ZodString>;
50
- description: z.ZodOptional<z.ZodString>;
51
- public: z.ZodOptional<z.ZodBoolean>;
52
- }, z.core.$strip>>, z.ZodLiteral<false>]>>>;
53
- relations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
54
- type: z.ZodEnum<typeof import("..").RelationTypesEnum>;
55
- dimension: z.ZodOptional<z.ZodString>;
56
- targetDataset: z.ZodString;
57
- targetDimension: z.ZodOptional<z.ZodString>;
58
- sql: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strip>, z.ZodLiteral<false>]>>>;
60
- measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
61
- name: z.ZodString;
62
- description: z.ZodOptional<z.ZodString>;
63
- type: z.ZodEnum<typeof import("..").MeasureTypesEnum>;
64
- format: z.ZodOptional<z.ZodEnum<typeof import("..").MeasureFormatsEnum>>;
65
- index: z.ZodOptional<z.ZodString>;
66
- upperIndex: z.ZodOptional<z.ZodString>;
67
- sql: z.ZodOptional<z.ZodString>;
68
- dimension: z.ZodOptional<z.ZodString>;
69
- public: z.ZodOptional<z.ZodBoolean>;
70
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
71
- }, z.core.$strip>, z.ZodLiteral<false>]>>>;
72
- preAggregations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
73
- type: z.ZodOptional<z.ZodEnum<{
74
- rollup: "rollup";
75
- original_sql: "original_sql";
76
- rollup_join: "rollup_join";
77
- }>>;
78
- measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
- dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
- segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
81
- timeDimension: z.ZodOptional<z.ZodString>;
82
- granularity: z.ZodOptional<z.ZodString>;
83
- partitionGranularity: z.ZodOptional<z.ZodString>;
84
- rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
- refreshKeySql: z.ZodOptional<z.ZodString>;
86
- refreshKeyEvery: z.ZodOptional<z.ZodString>;
87
- refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
88
- refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
89
- buildRangeStartSql: z.ZodOptional<z.ZodString>;
90
- buildRangeEndSql: z.ZodOptional<z.ZodString>;
91
- lambda: z.ZodOptional<z.ZodBoolean>;
92
- }, z.core.$strip>, z.ZodLiteral<false>]>>>;
93
- }, z.core.$strip>, z.ZodBoolean]>>;
94
- export interface DatasetsInterface {
95
- [key: string]: DatasetInterface | boolean;
96
- }
@@ -1,53 +0,0 @@
1
- import { z } from 'zod';
2
- import { DimensionFormatsEnum, DimensionTypesEnum } from '../type-enums';
3
- import { SwitchInterface } from './switch.interface';
4
- import { MetaInterface } from './meta.interface';
5
- export declare const DimensionSchema: z.ZodObject<{
6
- name: z.ZodString;
7
- description: z.ZodString;
8
- type: z.ZodEnum<typeof DimensionTypesEnum>;
9
- format: z.ZodOptional<z.ZodEnum<typeof DimensionFormatsEnum>>;
10
- explode: z.ZodOptional<z.ZodBoolean>;
11
- index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
12
- upperIndex: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
13
- switch: z.ZodOptional<z.ZodObject<{
14
- when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
15
- sql: z.ZodOptional<z.ZodString>;
16
- dimension: z.ZodOptional<z.ZodString>;
17
- operator: z.ZodOptional<z.ZodEnum<typeof import("../type-enums").FilterOperatorsEnum>>;
18
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
19
- }, z.core.$strip>, z.ZodObject<{
20
- label: z.ZodString;
21
- description: z.ZodOptional<z.ZodString>;
22
- }, z.core.$strip>>, z.ZodLiteral<false>]>>;
23
- else: z.ZodOptional<z.ZodString>;
24
- segment: z.ZodOptional<z.ZodBoolean>;
25
- }, z.core.$strip>>;
26
- field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
27
- sql: z.ZodOptional<z.ZodString>;
28
- public: z.ZodOptional<z.ZodBoolean>;
29
- primaryKey: z.ZodOptional<z.ZodBoolean>;
30
- subQuery: z.ZodOptional<z.ZodBoolean>;
31
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
32
- }, z.core.$strip>;
33
- export interface DimensionInterface {
34
- name: string;
35
- description: string;
36
- type: DimensionTypesEnum;
37
- format?: DimensionFormatsEnum;
38
- explode?: boolean;
39
- index?: boolean | string;
40
- upperIndex?: boolean | string;
41
- switch?: SwitchInterface;
42
- field?: string | Array<string>;
43
- sql?: string;
44
- public?: boolean;
45
- primaryKey?: boolean;
46
- subQuery?: boolean;
47
- meta?: MetaInterface;
48
- granularities?: {
49
- [key: string]: {
50
- interval: string;
51
- };
52
- };
53
- }
@@ -1,33 +0,0 @@
1
- import { z } from 'zod';
2
- import { DimensionInterface } from './dimension.interface';
3
- export declare const DimensionsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
4
- name: z.ZodString;
5
- description: z.ZodString;
6
- type: z.ZodEnum<typeof import("..").DimensionTypesEnum>;
7
- format: z.ZodOptional<z.ZodEnum<typeof import("..").DimensionFormatsEnum>>;
8
- explode: z.ZodOptional<z.ZodBoolean>;
9
- index: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
10
- upperIndex: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
11
- switch: z.ZodOptional<z.ZodObject<{
12
- when: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
13
- sql: z.ZodOptional<z.ZodString>;
14
- dimension: z.ZodOptional<z.ZodString>;
15
- operator: z.ZodOptional<z.ZodEnum<typeof import("..").FilterOperatorsEnum>>;
16
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
17
- }, z.core.$strip>, z.ZodObject<{
18
- label: z.ZodString;
19
- description: z.ZodOptional<z.ZodString>;
20
- }, z.core.$strip>>, z.ZodLiteral<false>]>>;
21
- else: z.ZodOptional<z.ZodString>;
22
- segment: z.ZodOptional<z.ZodBoolean>;
23
- }, z.core.$strip>>;
24
- field: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
25
- sql: z.ZodOptional<z.ZodString>;
26
- public: z.ZodOptional<z.ZodBoolean>;
27
- primaryKey: z.ZodOptional<z.ZodBoolean>;
28
- subQuery: z.ZodOptional<z.ZodBoolean>;
29
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
30
- }, z.core.$strip>, z.ZodLiteral<false>]>>;
31
- export interface DimensionsInterface {
32
- [key: string]: DimensionInterface | false;
33
- }
@@ -1,8 +0,0 @@
1
- import { z } from 'zod';
2
- import { FiltersInterface } from './filters.interface';
3
- import { FilterGroupTypesEnum } from '../type-enums';
4
- export declare const FilterGroupSchema: z.ZodType<FilterGroupInterface>;
5
- export interface FilterGroupInterface {
6
- type: FilterGroupTypesEnum;
7
- filters: FiltersInterface;
8
- }
@@ -1,14 +0,0 @@
1
- import { z } from 'zod';
2
- import { FilterOperatorsEnum, FilterValueType } from '../type-enums';
3
- export declare const FilterSchema: z.ZodObject<{
4
- sql: z.ZodOptional<z.ZodString>;
5
- dimension: z.ZodOptional<z.ZodString>;
6
- operator: z.ZodOptional<z.ZodEnum<typeof FilterOperatorsEnum>>;
7
- value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
8
- }, z.core.$strip>;
9
- export interface FilterInterface {
10
- dimension?: string;
11
- operator?: FilterOperatorsEnum;
12
- value?: FilterValueType;
13
- sql?: string;
14
- }
@@ -1,7 +0,0 @@
1
- import { z } from 'zod';
2
- import { FilterGroupInterface } from './filter-group.interface';
3
- import { FilterInterface } from './filter.interface';
4
- export declare const FiltersSchema: z.ZodType<FiltersInterface>;
5
- export interface FiltersInterface {
6
- [key: string]: FilterGroupInterface | FilterInterface | false;
7
- }
@@ -1,27 +0,0 @@
1
- import { z } from 'zod';
2
- import { MeasureFormatsEnum, MeasureTypesEnum } from '../type-enums';
3
- import { MetaInterface } from './meta.interface';
4
- export declare const MeasureSchema: z.ZodObject<{
5
- name: z.ZodString;
6
- description: z.ZodOptional<z.ZodString>;
7
- type: z.ZodEnum<typeof MeasureTypesEnum>;
8
- format: z.ZodOptional<z.ZodEnum<typeof MeasureFormatsEnum>>;
9
- index: z.ZodOptional<z.ZodString>;
10
- upperIndex: z.ZodOptional<z.ZodString>;
11
- sql: z.ZodOptional<z.ZodString>;
12
- dimension: z.ZodOptional<z.ZodString>;
13
- public: z.ZodOptional<z.ZodBoolean>;
14
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
15
- }, z.core.$strip>;
16
- export interface MeasureInterface {
17
- name: string;
18
- description?: string;
19
- type: MeasureTypesEnum;
20
- format?: MeasureFormatsEnum;
21
- index?: string;
22
- upperIndex?: string;
23
- sql?: string;
24
- dimension?: string;
25
- public?: boolean;
26
- meta?: MetaInterface;
27
- }
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
- import { MeasureInterface } from './measure.interface';
3
- export declare const MeasuresSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
4
- name: z.ZodString;
5
- description: z.ZodOptional<z.ZodString>;
6
- type: z.ZodEnum<typeof import("..").MeasureTypesEnum>;
7
- format: z.ZodOptional<z.ZodEnum<typeof import("..").MeasureFormatsEnum>>;
8
- index: z.ZodOptional<z.ZodString>;
9
- upperIndex: z.ZodOptional<z.ZodString>;
10
- sql: z.ZodOptional<z.ZodString>;
11
- dimension: z.ZodOptional<z.ZodString>;
12
- public: z.ZodOptional<z.ZodBoolean>;
13
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
14
- }, z.core.$strip>, z.ZodLiteral<false>]>>;
15
- export interface MeasuresInterface {
16
- [key: string]: MeasureInterface | false;
17
- }
@@ -1,9 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const LocaleSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
3
- export declare const MetaSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
4
- export interface LocaleInterface {
5
- [key: string]: Record<string, string>;
6
- }
7
- export interface MetaInterface {
8
- [key: string]: string | LocaleInterface;
9
- }
@@ -1,41 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const PreAggregateSchema: z.ZodObject<{
3
- type: z.ZodOptional<z.ZodEnum<{
4
- rollup: "rollup";
5
- original_sql: "original_sql";
6
- rollup_join: "rollup_join";
7
- }>>;
8
- measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
- dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
- segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
- timeDimension: z.ZodOptional<z.ZodString>;
12
- granularity: z.ZodOptional<z.ZodString>;
13
- partitionGranularity: z.ZodOptional<z.ZodString>;
14
- rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
15
- refreshKeySql: z.ZodOptional<z.ZodString>;
16
- refreshKeyEvery: z.ZodOptional<z.ZodString>;
17
- refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
18
- refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
19
- buildRangeStartSql: z.ZodOptional<z.ZodString>;
20
- buildRangeEndSql: z.ZodOptional<z.ZodString>;
21
- lambda: z.ZodOptional<z.ZodBoolean>;
22
- }, z.core.$strip>;
23
- export interface PreAggregateInterface {
24
- type?: 'rollup' | 'original_sql' | 'rollup_join';
25
- measures?: Array<string>;
26
- dimensions?: Array<string>;
27
- segments?: Array<string>;
28
- drillDown?: Array<string>;
29
- timeDimension?: string;
30
- granularity?: string;
31
- partitionGranularity?: string;
32
- rollups?: Array<string>;
33
- refreshKeySql?: string;
34
- refreshKeyEvery?: string;
35
- refreshKeyIncremental?: boolean;
36
- refreshKeyUpdateWindow?: string;
37
- buildRangeStartSql?: string;
38
- buildRangeEndSql?: string;
39
- lambda?: boolean;
40
- external?: boolean;
41
- }
@@ -1,26 +0,0 @@
1
- import { z } from 'zod';
2
- import { PreAggregateInterface } from './pre-aggregate.interface';
3
- export declare const PreAggregationsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
4
- type: z.ZodOptional<z.ZodEnum<{
5
- rollup: "rollup";
6
- original_sql: "original_sql";
7
- rollup_join: "rollup_join";
8
- }>>;
9
- measures: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
- dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
- segments: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
- timeDimension: z.ZodOptional<z.ZodString>;
13
- granularity: z.ZodOptional<z.ZodString>;
14
- partitionGranularity: z.ZodOptional<z.ZodString>;
15
- rollups: z.ZodOptional<z.ZodArray<z.ZodString>>;
16
- refreshKeySql: z.ZodOptional<z.ZodString>;
17
- refreshKeyEvery: z.ZodOptional<z.ZodString>;
18
- refreshKeyIncremental: z.ZodOptional<z.ZodBoolean>;
19
- refreshKeyUpdateWindow: z.ZodOptional<z.ZodString>;
20
- buildRangeStartSql: z.ZodOptional<z.ZodString>;
21
- buildRangeEndSql: z.ZodOptional<z.ZodString>;
22
- lambda: z.ZodOptional<z.ZodBoolean>;
23
- }, z.core.$strip>, z.ZodLiteral<false>]>>;
24
- export interface PreAggregationsInterface {
25
- [key: string]: PreAggregateInterface | false;
26
- }