@finos/legend-data-cube 0.1.8 → 0.1.9

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/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-data-cube v0.1.8
1
+ /** @license @finos/legend-data-cube v0.1.9
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-data-cube",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Legend DataCube",
5
5
  "keywords": [
6
6
  "legend",
@@ -21,10 +21,17 @@ export declare class AdhocQueryDataCubeSource extends DataCubeSource {
21
21
  model: PlainObject<V1_PureModelContext>;
22
22
  }
23
23
  export declare const ADHOC_QUERY_DATA_CUBE_SOURCE_TYPE = "adhocQuery";
24
+ export declare const ADHOC_FUNCTION_DATA_CUBE_SOURCE_TYPE = "userDefinedFunction";
24
25
  export declare class RawAdhocQueryDataCubeSource {
25
26
  query: string;
26
27
  runtime: string;
27
28
  model: PlainObject<V1_PureModelContext>;
28
29
  static readonly serialization: SerializationFactory<RawAdhocQueryDataCubeSource>;
29
30
  }
31
+ export declare class RawUserDefinedFunctionDataCubeSource {
32
+ runtime?: string;
33
+ model: PlainObject;
34
+ functionPath: string;
35
+ static readonly serialization: SerializationFactory<RawUserDefinedFunctionDataCubeSource>;
36
+ }
30
37
  //# sourceMappingURL=AdhocQueryDataCubeSource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AdhocQueryDataCubeSource.d.ts","sourceRoot":"","sources":["../../../../src/stores/core/model/AdhocQueryDataCubeSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EAEpB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,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B,YAAY,EAAG,MAAM,CAAC;IAEtB,MAAM,CAAC,QAAQ,CAAC,aAAa,6DAO3B;CACH"}
@@ -15,12 +15,13 @@
15
15
  */
16
16
  import { SerializationFactory, usingConstantValueSchema, } from '@finos/legend-shared';
17
17
  import { DataCubeSource } from './DataCubeSource.js';
18
- import { createModelSchema, primitive, raw } from 'serializr';
18
+ import { createModelSchema, optional, primitive, raw } from 'serializr';
19
19
  export class AdhocQueryDataCubeSource extends DataCubeSource {
20
20
  runtime;
21
21
  model;
22
22
  }
23
23
  export const ADHOC_QUERY_DATA_CUBE_SOURCE_TYPE = 'adhocQuery';
24
+ export const ADHOC_FUNCTION_DATA_CUBE_SOURCE_TYPE = 'userDefinedFunction';
24
25
  export class RawAdhocQueryDataCubeSource {
25
26
  query;
26
27
  runtime;
@@ -32,4 +33,15 @@ export class RawAdhocQueryDataCubeSource {
32
33
  runtime: primitive(),
33
34
  }));
34
35
  }
36
+ export class RawUserDefinedFunctionDataCubeSource {
37
+ runtime;
38
+ model;
39
+ functionPath;
40
+ static serialization = new SerializationFactory(createModelSchema(RawUserDefinedFunctionDataCubeSource, {
41
+ _type: usingConstantValueSchema(ADHOC_FUNCTION_DATA_CUBE_SOURCE_TYPE),
42
+ model: raw(),
43
+ runtime: optional(primitive()),
44
+ functionPath: primitive(),
45
+ }));
46
+ }
35
47
  //# sourceMappingURL=AdhocQueryDataCubeSource.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AdhocQueryDataCubeSource.js","sourceRoot":"","sources":["../../../../src/stores/core/model/AdhocQueryDataCubeSource.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,oBAAoB,EACpB,wBAAwB,GAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAG9D,MAAM,OAAO,wB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S,EAAE;QAClB,OAAO,EAAE,SAAS,EAAE;KACrB,CAAC,CACH,CAAC;;AAGJ,MAAM,OAAO,oCAAoC;IAC/C,OAAO,CAAU;IACjB,KAAK,CAAe;IACpB,YAAY,CAAU;IAEtB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,KAAK,EAAE,wBAAwB,CAAC,oCAAoC,CAAC;QACrE,KAAK,EAAE,GAAG,EAAE;QACZ,OAAO,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAC;QAC9B,YAAY,EAAE,SAAS,EAAE;KAC1B,CAAC,CACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-data-cube",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Legend DataCube",
5
5
  "keywords": [
6
6
  "legend",
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@finos/legend-art": "7.1.84",
46
- "@finos/legend-code-editor": "2.0.48",
47
- "@finos/legend-graph": "32.1.6",
46
+ "@finos/legend-code-editor": "2.0.49",
47
+ "@finos/legend-graph": "32.1.7",
48
48
  "@finos/legend-shared": "11.0.6",
49
49
  "@types/react": "19.0.10",
50
50
  "ag-grid-community": "33.1.0",
@@ -20,7 +20,7 @@ import {
20
20
  type PlainObject,
21
21
  } from '@finos/legend-shared';
22
22
  import { DataCubeSource } from './DataCubeSource.js';
23
- import { createModelSchema, primitive, raw } from 'serializr';
23
+ import { createModelSchema, optional, primitive, raw } from 'serializr';
24
24
  import type { V1_PureModelContext } from '@finos/legend-graph';
25
25
 
26
26
  export class AdhocQueryDataCubeSource extends DataCubeSource {
@@ -29,6 +29,7 @@ export class AdhocQueryDataCubeSource extends DataCubeSource {
29
29
  }
30
30
 
31
31
  export const ADHOC_QUERY_DATA_CUBE_SOURCE_TYPE = 'adhocQuery';
32
+ export const ADHOC_FUNCTION_DATA_CUBE_SOURCE_TYPE = 'userDefinedFunction';
32
33
 
33
34
  export class RawAdhocQueryDataCubeSource {
34
35
  query!: string;
@@ -44,3 +45,18 @@ export class RawAdhocQueryDataCubeSource {
44
45
  }),
45
46
  );
46
47
  }
48
+
49
+ export class RawUserDefinedFunctionDataCubeSource {
50
+ runtime?: string;
51
+ model!: PlainObject;
52
+ functionPath!: string;
53
+
54
+ static readonly serialization = new SerializationFactory(
55
+ createModelSchema(RawUserDefinedFunctionDataCubeSource, {
56
+ _type: usingConstantValueSchema(ADHOC_FUNCTION_DATA_CUBE_SOURCE_TYPE),
57
+ model: raw(),
58
+ runtime: optional(primitive()),
59
+ functionPath: primitive(),
60
+ }),
61
+ );
62
+ }