@hpcc-js/marshaller 2.28.11 → 3.1.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.
Files changed (172) hide show
  1. package/dist/index.js +2 -18051
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.umd.cjs +3 -0
  4. package/dist/index.umd.cjs.map +1 -0
  5. package/package.json +46 -46
  6. package/src/__package__.ts +3 -3
  7. package/src/dashy.css +45 -34
  8. package/src/dashy.ts +20 -18
  9. package/src/ddl1/FlyoutButton.ts +3 -2
  10. package/src/ddl1/Graph.ts +8 -5
  11. package/src/ddl1/HTML.ts +1 -1
  12. package/src/ddl1/HipieDDL.ts +5 -1
  13. package/src/ddl1/HipieDDLMixin.ts +31 -20
  14. package/src/ddl1/Tabbed.ts +1 -1
  15. package/src/ddl1/TargetMarshaller.ts +1 -1
  16. package/src/ddl2/PopupManager.ts +2 -2
  17. package/src/ddl2/activities/activity.ts +1 -1
  18. package/src/ddl2/activities/databomb.ts +3 -3
  19. package/src/ddl2/activities/datasource.ts +25 -18
  20. package/src/ddl2/activities/dspicker.ts +38 -29
  21. package/src/ddl2/activities/filter.ts +79 -56
  22. package/src/ddl2/activities/form.ts +29 -20
  23. package/src/ddl2/activities/groupby.ts +55 -37
  24. package/src/ddl2/activities/hipiepipeline.ts +61 -74
  25. package/src/ddl2/activities/limit.ts +8 -6
  26. package/src/ddl2/activities/logicalfile.ts +14 -10
  27. package/src/ddl2/activities/nullview.ts +1 -1
  28. package/src/ddl2/activities/project.ts +78 -50
  29. package/src/ddl2/activities/rest.ts +95 -70
  30. package/src/ddl2/activities/roxie.ts +55 -41
  31. package/src/ddl2/activities/sort.ts +23 -14
  32. package/src/ddl2/activities/wuresult.ts +78 -54
  33. package/src/ddl2/dashboard.css +8 -8
  34. package/src/ddl2/dashboard.ts +17 -17
  35. package/src/ddl2/dashboardDockPanel.ts +3 -3
  36. package/src/ddl2/dashboardGrid.ts +4 -4
  37. package/src/ddl2/ddl.ts +19 -21
  38. package/src/ddl2/dsTable.ts +22 -18
  39. package/src/ddl2/dvTable.ts +1 -1
  40. package/src/ddl2/graphadapter.ts +11 -11
  41. package/src/ddl2/javascriptadapter.ts +4 -4
  42. package/src/ddl2/model/element.ts +56 -42
  43. package/src/ddl2/model/visualization.ts +92 -70
  44. package/src/ddl2/pipelinePanel.ts +26 -18
  45. package/src/index.ts +25 -25
  46. package/types/__package__.d.ts +3 -4
  47. package/types/dashy.d.ts +9 -7
  48. package/types/ddl2/PopupManager.d.ts +2 -3
  49. package/types/ddl2/activities/activity.d.ts +0 -1
  50. package/types/ddl2/activities/databomb.d.ts +3 -4
  51. package/types/ddl2/activities/datasource.d.ts +12 -10
  52. package/types/ddl2/activities/dspicker.d.ts +11 -8
  53. package/types/ddl2/activities/filter.d.ts +45 -26
  54. package/types/ddl2/activities/form.d.ts +19 -10
  55. package/types/ddl2/activities/groupby.d.ts +29 -15
  56. package/types/ddl2/activities/hipiepipeline.d.ts +27 -20
  57. package/types/ddl2/activities/limit.d.ts +6 -5
  58. package/types/ddl2/activities/logicalfile.d.ts +10 -7
  59. package/types/ddl2/activities/nullview.d.ts +1 -2
  60. package/types/ddl2/activities/project.d.ts +42 -21
  61. package/types/ddl2/activities/rest.d.ts +49 -30
  62. package/types/ddl2/activities/roxie.d.ts +28 -18
  63. package/types/ddl2/activities/sort.d.ts +13 -7
  64. package/types/ddl2/activities/wuresult.d.ts +24 -16
  65. package/types/ddl2/dashboard.d.ts +3 -4
  66. package/types/ddl2/dashboardDockPanel.d.ts +2 -3
  67. package/types/ddl2/dashboardGrid.d.ts +3 -4
  68. package/types/ddl2/ddl.d.ts +11 -12
  69. package/types/ddl2/ddleditor.d.ts +2 -2
  70. package/types/ddl2/dsTable.d.ts +2 -3
  71. package/types/ddl2/dvTable.d.ts +1 -2
  72. package/types/ddl2/graphadapter.d.ts +4 -5
  73. package/types/ddl2/javascriptadapter.d.ts +2 -3
  74. package/types/ddl2/model/element.d.ts +22 -14
  75. package/types/ddl2/model/visualization.d.ts +28 -20
  76. package/types/ddl2/model/vizChartPanel.d.ts +0 -1
  77. package/types/ddl2/pipelinePanel.d.ts +5 -3
  78. package/types/index.d.ts +25 -26
  79. package/dist/index.es6.js +0 -17994
  80. package/dist/index.es6.js.map +0 -1
  81. package/dist/index.min.js +0 -3
  82. package/dist/index.min.js.map +0 -1
  83. package/types/__package__.d.ts.map +0 -1
  84. package/types/dashy.d.ts.map +0 -1
  85. package/types/ddl1/DDLApi.d.ts +0 -179
  86. package/types/ddl1/DDLApi.d.ts.map +0 -1
  87. package/types/ddl1/FlyoutButton.d.ts +0 -24
  88. package/types/ddl1/FlyoutButton.d.ts.map +0 -1
  89. package/types/ddl1/Graph.d.ts +0 -22
  90. package/types/ddl1/Graph.d.ts.map +0 -1
  91. package/types/ddl1/HTML.d.ts +0 -12
  92. package/types/ddl1/HTML.d.ts.map +0 -1
  93. package/types/ddl1/HipieDDL.d.ts +0 -100
  94. package/types/ddl1/HipieDDL.d.ts.map +0 -1
  95. package/types/ddl1/HipieDDLMixin.d.ts +0 -77
  96. package/types/ddl1/HipieDDLMixin.d.ts.map +0 -1
  97. package/types/ddl1/Tabbed.d.ts +0 -12
  98. package/types/ddl1/Tabbed.d.ts.map +0 -1
  99. package/types/ddl1/TargetMarshaller.d.ts +0 -5
  100. package/types/ddl1/TargetMarshaller.d.ts.map +0 -1
  101. package/types/ddl2/PopupManager.d.ts.map +0 -1
  102. package/types/ddl2/activities/activity.d.ts.map +0 -1
  103. package/types/ddl2/activities/databomb.d.ts.map +0 -1
  104. package/types/ddl2/activities/datasource.d.ts.map +0 -1
  105. package/types/ddl2/activities/dspicker.d.ts.map +0 -1
  106. package/types/ddl2/activities/filter.d.ts.map +0 -1
  107. package/types/ddl2/activities/form.d.ts.map +0 -1
  108. package/types/ddl2/activities/groupby.d.ts.map +0 -1
  109. package/types/ddl2/activities/hipiepipeline.d.ts.map +0 -1
  110. package/types/ddl2/activities/limit.d.ts.map +0 -1
  111. package/types/ddl2/activities/logicalfile.d.ts.map +0 -1
  112. package/types/ddl2/activities/nullview.d.ts.map +0 -1
  113. package/types/ddl2/activities/project.d.ts.map +0 -1
  114. package/types/ddl2/activities/rest.d.ts.map +0 -1
  115. package/types/ddl2/activities/roxie.d.ts.map +0 -1
  116. package/types/ddl2/activities/sort.d.ts.map +0 -1
  117. package/types/ddl2/activities/wuresult.d.ts.map +0 -1
  118. package/types/ddl2/dashboard.d.ts.map +0 -1
  119. package/types/ddl2/dashboardDockPanel.d.ts.map +0 -1
  120. package/types/ddl2/dashboardGrid.d.ts.map +0 -1
  121. package/types/ddl2/ddl.d.ts.map +0 -1
  122. package/types/ddl2/ddleditor.d.ts.map +0 -1
  123. package/types/ddl2/dsTable.d.ts.map +0 -1
  124. package/types/ddl2/dvTable.d.ts.map +0 -1
  125. package/types/ddl2/graphadapter.d.ts.map +0 -1
  126. package/types/ddl2/javascriptadapter.d.ts.map +0 -1
  127. package/types/ddl2/model/element.d.ts.map +0 -1
  128. package/types/ddl2/model/visualization.d.ts.map +0 -1
  129. package/types/ddl2/model/vizChartPanel.d.ts.map +0 -1
  130. package/types/ddl2/pipelinePanel.d.ts.map +0 -1
  131. package/types/index.d.ts.map +0 -1
  132. package/types-3.4/__package__.d.ts +0 -4
  133. package/types-3.4/dashy.d.ts +0 -54
  134. package/types-3.4/ddl1/DDLApi.d.ts +0 -179
  135. package/types-3.4/ddl1/FlyoutButton.d.ts +0 -24
  136. package/types-3.4/ddl1/Graph.d.ts +0 -22
  137. package/types-3.4/ddl1/HTML.d.ts +0 -12
  138. package/types-3.4/ddl1/HipieDDL.d.ts +0 -100
  139. package/types-3.4/ddl1/HipieDDLMixin.d.ts +0 -77
  140. package/types-3.4/ddl1/Tabbed.d.ts +0 -12
  141. package/types-3.4/ddl1/TargetMarshaller.d.ts +0 -5
  142. package/types-3.4/ddl2/PopupManager.d.ts +0 -20
  143. package/types-3.4/ddl2/activities/activity.d.ts +0 -106
  144. package/types-3.4/ddl2/activities/databomb.d.ts +0 -46
  145. package/types-3.4/ddl2/activities/datasource.d.ts +0 -24
  146. package/types-3.4/ddl2/activities/dspicker.d.ts +0 -29
  147. package/types-3.4/ddl2/activities/filter.d.ts +0 -113
  148. package/types-3.4/ddl2/activities/form.d.ts +0 -40
  149. package/types-3.4/ddl2/activities/groupby.d.ts +0 -85
  150. package/types-3.4/ddl2/activities/hipiepipeline.d.ts +0 -37
  151. package/types-3.4/ddl2/activities/limit.d.ts +0 -15
  152. package/types-3.4/ddl2/activities/logicalfile.d.ts +0 -19
  153. package/types-3.4/ddl2/activities/nullview.d.ts +0 -6
  154. package/types-3.4/ddl2/activities/project.d.ts +0 -122
  155. package/types-3.4/ddl2/activities/rest.d.ts +0 -142
  156. package/types-3.4/ddl2/activities/roxie.d.ts +0 -112
  157. package/types-3.4/ddl2/activities/sort.d.ts +0 -38
  158. package/types-3.4/ddl2/activities/wuresult.d.ts +0 -87
  159. package/types-3.4/ddl2/dashboard.d.ts +0 -53
  160. package/types-3.4/ddl2/dashboardDockPanel.d.ts +0 -19
  161. package/types-3.4/ddl2/dashboardGrid.d.ts +0 -29
  162. package/types-3.4/ddl2/ddl.d.ts +0 -44
  163. package/types-3.4/ddl2/ddleditor.d.ts +0 -14
  164. package/types-3.4/ddl2/dsTable.d.ts +0 -21
  165. package/types-3.4/ddl2/dvTable.d.ts +0 -10
  166. package/types-3.4/ddl2/graphadapter.d.ts +0 -30
  167. package/types-3.4/ddl2/javascriptadapter.d.ts +0 -31
  168. package/types-3.4/ddl2/model/element.d.ts +0 -99
  169. package/types-3.4/ddl2/model/visualization.d.ts +0 -48
  170. package/types-3.4/ddl2/model/vizChartPanel.d.ts +0 -44
  171. package/types-3.4/ddl2/pipelinePanel.d.ts +0 -16
  172. package/types-3.4/index.d.ts +0 -27
@@ -1,10 +1,8 @@
1
- import { PropertyExt, publish } from "@hpcc-js/common";
1
+ import { PropertyExt } from "@hpcc-js/common";
2
2
  import { DDL2 } from "@hpcc-js/ddl-shim";
3
- import { Activity, IActivityError, ReferencedFields } from "./activity";
3
+ import { Activity, IActivityError, ReferencedFields } from "./activity.ts";
4
4
  export declare class GroupByColumn extends PropertyExt {
5
5
  private _owner;
6
- label: publish<this, string>;
7
- label_valid: () => boolean;
8
6
  validate(prefix: string): IActivityError[];
9
7
  constructor();
10
8
  owner(): GroupBy;
@@ -16,17 +14,16 @@ export declare class GroupByColumn extends PropertyExt {
16
14
  hash(): string;
17
15
  columns(): string[];
18
16
  }
17
+ export interface GroupByColumn {
18
+ label(): string;
19
+ label(_: string): this;
20
+ label_valid(): boolean;
21
+ }
19
22
  export type AggrFuncCallback = (item: any) => number;
20
23
  export type AggrFunc = (leaves: any[], callback: AggrFuncCallback) => number;
21
24
  export type AggregateType = "count" | "min" | "max" | "sum" | "mean" | "median" | "variance" | "deviation";
22
25
  export declare class AggregateField extends PropertyExt {
23
26
  private _owner;
24
- fieldID: publish<this, string>;
25
- aggrType: publish<this, AggregateType>;
26
- aggrColumn: publish<this, string>;
27
- aggrColumn_valid: () => boolean;
28
- baseCountColumn: publish<this, string>;
29
- baseCountColumn_valid: () => boolean;
30
27
  disableAggrColumn(): boolean;
31
28
  disableBaseCountColumn(): boolean;
32
29
  validate(prefix: string): IActivityError[];
@@ -45,11 +42,19 @@ export declare class AggregateField extends PropertyExt {
45
42
  }>): number;
46
43
  aggrFunc(): (leaves: any[]) => number;
47
44
  }
45
+ export interface AggregateField {
46
+ fieldID(): string;
47
+ fieldID(_: string): this;
48
+ aggrType(): AggregateType;
49
+ aggrType(_: AggregateType): this;
50
+ aggrColumn(): string;
51
+ aggrColumn(_: string): this;
52
+ aggrColumn_valid(): boolean;
53
+ baseCountColumn(): string;
54
+ baseCountColumn(_: string): this;
55
+ baseCountColumn_valid(): boolean;
56
+ }
48
57
  export declare class GroupBy extends Activity {
49
- column: publish<this, GroupByColumn[]>;
50
- computedFields: publish<this, AggregateField[]>;
51
- details: publish<this, boolean>;
52
- fullDetails: publish<this, boolean>;
53
58
  validate(): IActivityError[];
54
59
  constructor();
55
60
  toDDL(): DDL2.IGroupBy;
@@ -78,4 +83,13 @@ export declare class GroupBy extends Activity {
78
83
  referencedFields(refs: ReferencedFields): void;
79
84
  computeData(): ReadonlyArray<object>;
80
85
  }
81
- //# sourceMappingURL=groupby.d.ts.map
86
+ export interface GroupBy {
87
+ column(): GroupByColumn[];
88
+ column(_: GroupByColumn[]): this;
89
+ computedFields(): AggregateField[];
90
+ computedFields(_: AggregateField[]): this;
91
+ details(): boolean;
92
+ details(_: boolean): this;
93
+ fullDetails(): boolean;
94
+ fullDetails(_: boolean): this;
95
+ }
@@ -1,37 +1,44 @@
1
1
  import { DDL2 } from "@hpcc-js/ddl-shim";
2
- import { ElementContainer } from "../model/element";
3
- import { Activity, ActivityPipeline } from "./activity";
4
- import { DatasourceRefType } from "./datasource";
5
- import { DSPicker } from "./dspicker";
6
- import { Filters } from "./filter";
7
- import { GroupBy } from "./groupby";
8
- import { Limit } from "./limit";
9
- import { Project } from "./project";
10
- import { Sort } from "./sort";
2
+ import { ElementContainer } from "../model/element.ts";
3
+ import { Activity, ActivityPipeline } from "./activity.ts";
4
+ import { DatasourceRefType } from "./datasource.ts";
5
+ import { DSPicker } from "./dspicker.ts";
6
+ import { Filters } from "./filter.ts";
7
+ import { GroupBy } from "./groupby.ts";
8
+ import { Limit } from "./limit.ts";
9
+ import { Project } from "./project.ts";
10
+ import { Sort } from "./sort.ts";
11
11
  export declare class HipiePipeline extends ActivityPipeline {
12
12
  private _ec;
13
+ _origDatasource: any;
14
+ _origFilters: any;
15
+ _origProject: any;
16
+ _origGroupBy: any;
17
+ _origSort: any;
18
+ _origLimit: any;
13
19
  _datasource: DSPicker | DatasourceRefType;
20
+ _filters: Filters;
21
+ _project: Project;
22
+ _groupBy: GroupBy;
23
+ _sort: Sort;
24
+ _limit: Limit;
25
+ constructor(_ec: ElementContainer, viewID: string);
26
+ activities(): Activity[];
27
+ activities(_: Activity[]): this;
28
+ private updateSequence;
29
+ selectionFields(): ReadonlyArray<DDL2.IField>;
30
+ }
31
+ export interface HipiePipeline {
14
32
  datasource(): DSPicker | DatasourceRefType;
15
33
  datasource(_: DSPicker | DatasourceRefType): this;
16
- _filters: Filters;
17
34
  filters(): Filters;
18
35
  filters(_: Filters): this;
19
- _project: Project;
20
36
  project(): Project;
21
37
  project(_: Project): this;
22
- _groupBy: GroupBy;
23
38
  groupBy(): GroupBy;
24
39
  groupBy(_: GroupBy): this;
25
- _sort: Sort;
26
40
  sort(): Sort;
27
41
  sort(_: Sort): this;
28
- _limit: Limit;
29
42
  limit(): Limit;
30
43
  limit(_: Limit): this;
31
- constructor(_ec: ElementContainer, viewID: string);
32
- activities(): Activity[];
33
- activities(_: Activity[]): this;
34
- private updateSequence;
35
- selectionFields(): ReadonlyArray<DDL2.IField>;
36
44
  }
37
- //# sourceMappingURL=hipiepipeline.d.ts.map
@@ -1,9 +1,6 @@
1
- import { publish } from "@hpcc-js/common";
2
1
  import { DDL2 } from "@hpcc-js/ddl-shim";
3
- import { Activity } from "./activity";
2
+ import { Activity } from "./activity.ts";
4
3
  export declare class Limit extends Activity {
5
- rows: publish<this, number | undefined>;
6
- rows_exists: () => boolean;
7
4
  constructor();
8
5
  toDDL(): DDL2.ILimit;
9
6
  fromDDL(ddl: DDL2.ILimit): this;
@@ -12,4 +9,8 @@ export declare class Limit extends Activity {
12
9
  exists(): boolean;
13
10
  computeData(): ReadonlyArray<object>;
14
11
  }
15
- //# sourceMappingURL=limit.d.ts.map
12
+ export interface Limit {
13
+ rows(): number | undefined;
14
+ rows(_: number | undefined): this;
15
+ rows_exists(): boolean;
16
+ }
@@ -1,12 +1,8 @@
1
- import { publish } from "@hpcc-js/common";
2
1
  import { Result } from "@hpcc-js/comms";
3
2
  import { DDL2 } from "@hpcc-js/ddl-shim";
4
- import { ElementContainer } from "../model/element";
5
- import { ESPResult } from "./wuresult";
3
+ import { ElementContainer } from "../model/element.ts";
4
+ import { ESPResult } from "./wuresult.ts";
6
5
  export declare class LogicalFile extends ESPResult {
7
- url: publish<this, string>;
8
- nodeGroup: publish<this, string>;
9
- logicalFile: publish<this, string>;
10
6
  constructor(_ec: ElementContainer);
11
7
  toDDL(): DDL2.ILogicalFile;
12
8
  fromDDL(ddl: DDL2.ILogicalFile, skipID?: boolean): this;
@@ -16,4 +12,11 @@ export declare class LogicalFile extends ESPResult {
16
12
  hash(more: object): string;
17
13
  label(): string;
18
14
  }
19
- //# sourceMappingURL=logicalfile.d.ts.map
15
+ export interface LogicalFile {
16
+ url(): string;
17
+ url(_: string): this;
18
+ nodeGroup(): string;
19
+ nodeGroup(_: string): this;
20
+ logicalFile(): string;
21
+ logicalFile(_: string): this;
22
+ }
@@ -1,6 +1,5 @@
1
- import { HipiePipeline } from "./hipiepipeline";
1
+ import { HipiePipeline } from "./hipiepipeline.ts";
2
2
  export declare class NullView extends HipiePipeline {
3
3
  hash(): string;
4
4
  _fetch(from: number, count: number): Promise<any[]>;
5
5
  }
6
- //# sourceMappingURL=nullview.d.ts.map
@@ -1,12 +1,8 @@
1
- import { PropertyExt, publish } from "@hpcc-js/common";
1
+ import { PropertyExt } from "@hpcc-js/common";
2
2
  import { DDL2 } from "@hpcc-js/ddl-shim";
3
- import { Activity, IActivityError, ReferencedFields } from "./activity";
3
+ import { Activity, IActivityError, ReferencedFields } from "./activity.ts";
4
4
  export declare class ComputedMapping extends PropertyExt {
5
5
  protected _owner: ComputedField;
6
- value: publish<this, any>;
7
- value_valid: () => boolean;
8
- newValue: publish<this, any>;
9
- newValue_valid: () => boolean;
10
6
  validate(prefix: string): IActivityError[];
11
7
  constructor();
12
8
  owner(): ComputedField;
@@ -16,6 +12,14 @@ export declare class ComputedMapping extends PropertyExt {
16
12
  fromDDL(ddl: DDL2.IMapMapping): this;
17
13
  static fromDDL(ddl: DDL2.IMapMapping): ComputedMapping;
18
14
  }
15
+ export interface ComputedMapping {
16
+ value(): any;
17
+ value(_: any): this;
18
+ value_valid(): boolean;
19
+ newValue(): any;
20
+ newValue(_: any): this;
21
+ newValue_valid(): boolean;
22
+ }
19
23
  export type ComputedType = "=" | "*" | "/" | "+" | "-" | "scale" | "template" | "map";
20
24
  export interface IComputedFieldOwner extends PropertyExt {
21
25
  fieldIDs(): string[];
@@ -23,17 +27,6 @@ export interface IComputedFieldOwner extends PropertyExt {
23
27
  }
24
28
  export declare class ComputedField extends PropertyExt {
25
29
  private _owner;
26
- label: publish<this, string>;
27
- type: publish<this, ComputedType>;
28
- column1: publish<this, string>;
29
- column1_valid: () => boolean;
30
- column2: publish<this, string>;
31
- column2_valid: () => boolean;
32
- constValue: publish<this, number>;
33
- template: publish<this, string>;
34
- default: publish<this, any>;
35
- mapping: publish<this, ComputedMapping[]>;
36
- childField: publish<this, ComputedField[]>;
37
30
  disableColumn1(): boolean;
38
31
  disableColumn2(): boolean;
39
32
  disableMapping(): boolean;
@@ -59,10 +52,30 @@ export declare class ComputedField extends PropertyExt {
59
52
  fieldIDs(): string[];
60
53
  field(fieldID: string): DDL2.IField | undefined;
61
54
  }
55
+ export interface ComputedField {
56
+ label(): string;
57
+ label(_: string): this;
58
+ type(): ComputedType;
59
+ type(_: ComputedType): this;
60
+ column1(): string;
61
+ column1(_: string): this;
62
+ column1_valid(): boolean;
63
+ column2(): string;
64
+ column2(_: string): this;
65
+ column2_valid(): boolean;
66
+ constValue(): number;
67
+ constValue(_: number): this;
68
+ template(): string;
69
+ template(_: string): this;
70
+ default(): any;
71
+ default(_: any): this;
72
+ mapping(): ComputedMapping[];
73
+ mapping(_: ComputedMapping[]): this;
74
+ childField(): ComputedField[];
75
+ childField(_: ComputedField[]): this;
76
+ }
62
77
  export declare class MultiField extends PropertyExt implements IComputedFieldOwner {
63
78
  private _owner;
64
- label: publish<this, string>;
65
- multiFields: publish<this, ComputedField[]>;
66
79
  constructor();
67
80
  hash(): string;
68
81
  owner(): IComputedFieldOwner;
@@ -78,11 +91,16 @@ export declare class MultiField extends PropertyExt implements IComputedFieldOwn
78
91
  fieldIDs(): string[];
79
92
  field(fieldID: string): DDL2.IField | null;
80
93
  }
94
+ export interface MultiField {
95
+ label(): string;
96
+ label(_: string): this;
97
+ multiFields(): ComputedField[];
98
+ multiFields(_: ComputedField[]): this;
99
+ }
81
100
  export declare class ProjectBase extends Activity {
82
101
  static ComputedField: typeof ComputedField;
83
102
  _includeLParam: boolean;
84
103
  _trim: boolean;
85
- computedFields: publish<this, Array<ComputedField | MultiField>>;
86
104
  validate(): IActivityError[];
87
105
  constructor();
88
106
  transformations(): DDL2.ProjectTransformationType[];
@@ -117,4 +135,7 @@ export declare class Mappings extends ProjectBase {
117
135
  hash(more?: object): string;
118
136
  referencedFields(refs: ReferencedFields): void;
119
137
  }
120
- //# sourceMappingURL=project.d.ts.map
138
+ export interface ProjectBase {
139
+ computedFields(): Array<ComputedField | MultiField>;
140
+ computedFields(_: Array<ComputedField | MultiField>): this;
141
+ }
@@ -1,11 +1,10 @@
1
- import { PropertyExt, publish } from "@hpcc-js/common";
1
+ import { PropertyExt } from "@hpcc-js/common";
2
2
  import { DDL2 } from "@hpcc-js/ddl-shim";
3
- import { Element, ElementContainer } from "../model/element";
4
- import { IActivityError, ReferencedFields } from "./activity";
5
- import { Datasource, DatasourceRef } from "./datasource";
3
+ import { Element, ElementContainer } from "../model/element.ts";
4
+ import { IActivityError, ReferencedFields } from "./activity.ts";
5
+ import { Datasource, DatasourceRef } from "./datasource.ts";
6
6
  export declare class RestField extends PropertyExt {
7
7
  protected _owner: RestService;
8
- fieldID: publish<this, string>;
9
8
  constructor();
10
9
  toDDL(): DDL2.IFieldString;
11
10
  fromDDL(ddl: DDL2.IFieldString): this;
@@ -17,10 +16,6 @@ export declare class RestField extends PropertyExt {
17
16
  export declare class RestService extends Datasource {
18
17
  readonly _ec: ElementContainer;
19
18
  private _responseFields;
20
- url: publish<this, string>;
21
- action: publish<this, string>;
22
- mode: publish<this, "get" | "post">;
23
- requestFields: publish<this, RestField[]>;
24
19
  constructor(_ec: ElementContainer);
25
20
  toDDL(): DDL2.IRestService;
26
21
  fromDDL(ddl: DDL2.IRestService, skipID?: boolean): this;
@@ -43,10 +38,8 @@ export declare class RestService extends Datasource {
43
38
  }
44
39
  export declare class RestResult extends Datasource {
45
40
  private _ec;
41
+ _origService: any;
46
42
  _service: RestService;
47
- service(): RestService;
48
- service(_: RestService): this;
49
- resultName: publish<this, string>;
50
43
  constructor(_ec: ElementContainer);
51
44
  validRequestFields(): RestField[];
52
45
  toDDL(): DDL2.IRestService;
@@ -73,20 +66,6 @@ export declare class RestResult extends Datasource {
73
66
  }
74
67
  export declare class Param extends PropertyExt {
75
68
  private _ec;
76
- localField: publish<this, string>;
77
- localField_exists: () => boolean;
78
- source: publish<this, string>;
79
- source_exists: () => boolean;
80
- source_valid: () => boolean;
81
- source_disabled: () => boolean;
82
- remoteField: publish<this, string>;
83
- remoteField_exists: () => boolean;
84
- remoteField_valid: () => boolean;
85
- remoteField_disabled: () => boolean;
86
- value: publish<this, string>;
87
- value_exists: () => boolean;
88
- value_valid: () => boolean;
89
- value_disabled: () => boolean;
90
69
  validate(prefix: string): IActivityError[];
91
70
  constructor(_ec: ElementContainer);
92
71
  toDDL(): DDL2.IRequestField;
@@ -110,9 +89,6 @@ export declare class RestResultRef extends DatasourceRef {
110
89
  url(): string;
111
90
  action(): string;
112
91
  resultName(): string;
113
- _request: Param[];
114
- request(): Param[];
115
- request(_: Param[]): this;
116
92
  validate(): IActivityError[];
117
93
  constructor(_ec: ElementContainer);
118
94
  toDDL(): DDL2.IRoxieServiceRef;
@@ -139,4 +115,47 @@ export declare class RestResultRef extends DatasourceRef {
139
115
  inData(): ReadonlyArray<object>;
140
116
  computeData(): ReadonlyArray<object>;
141
117
  }
142
- //# sourceMappingURL=rest.d.ts.map
118
+ export interface RestField {
119
+ fieldID(): string;
120
+ fieldID(_: string): this;
121
+ }
122
+ export interface RestService {
123
+ url(): string;
124
+ url(_: string): this;
125
+ action(): string;
126
+ action(_: string): this;
127
+ mode(): "get" | "post";
128
+ mode(_: "get" | "post"): this;
129
+ requestFields(): RestField[];
130
+ requestFields(_: RestField[]): this;
131
+ }
132
+ export interface RestResult {
133
+ service(): RestService;
134
+ service(_: RestService): this;
135
+ resultName(): string;
136
+ resultName(_: string): this;
137
+ }
138
+ export interface Param {
139
+ localField(): string;
140
+ localField(_: string): this;
141
+ localField_exists(): boolean;
142
+ source(): string;
143
+ source(_: string): this;
144
+ source_exists(): boolean;
145
+ source_valid(): boolean;
146
+ source_disabled(): boolean;
147
+ remoteField(): string;
148
+ remoteField(_: string): this;
149
+ remoteField_exists(): boolean;
150
+ remoteField_valid(): boolean;
151
+ remoteField_disabled(): boolean;
152
+ value(): string;
153
+ value(_: string): this;
154
+ value_exists(): boolean;
155
+ value_valid(): boolean;
156
+ value_disabled(): boolean;
157
+ }
158
+ export interface RestResultRef {
159
+ request(): Param[];
160
+ request(_: Param[]): this;
161
+ }
@@ -1,20 +1,14 @@
1
- import { publish } from "@hpcc-js/common";
2
1
  import { DDL2 } from "@hpcc-js/ddl-shim";
3
- import { ElementContainer } from "../model/element";
4
- import { IActivityError, ReferencedFields } from "./activity";
5
- import { Datasource, DatasourceRef } from "./datasource";
6
- import { Param } from "./rest";
2
+ import { ElementContainer } from "../model/element.ts";
3
+ import { IActivityError, ReferencedFields } from "./activity.ts";
4
+ import { Datasource, DatasourceRef } from "./datasource.ts";
5
+ import { Param } from "./rest.ts";
7
6
  export declare class RoxieService extends Datasource {
8
7
  private _ec;
9
8
  private _query;
10
9
  private _requestFields;
11
10
  private _responseFields;
12
11
  private _type;
13
- url: publish<this, string>;
14
- querySet: publish<this, string>;
15
- queryID: publish<this, string>;
16
- ignoreHipieRequest: publish<this, boolean>;
17
- ignoreHipieResponse: publish<this, boolean>;
18
12
  constructor(_ec: ElementContainer);
19
13
  toDDL(): DDL2.IRoxieService | DDL2.IHipieService;
20
14
  fromDDL(ddl: DDL2.IRoxieService | DDL2.IHipieService, skipID?: boolean): this;
@@ -39,12 +33,22 @@ export declare class RoxieService extends Datasource {
39
33
  resultNames(): string[];
40
34
  outputDDL(): DDL2.OutputDict;
41
35
  }
36
+ export interface RoxieService {
37
+ url(): string;
38
+ url(_: string): this;
39
+ querySet(): string;
40
+ querySet(_: string): this;
41
+ queryID(): string;
42
+ queryID(_: string): this;
43
+ ignoreHipieRequest(): boolean;
44
+ ignoreHipieRequest(_: boolean): this;
45
+ ignoreHipieResponse(): boolean;
46
+ ignoreHipieResponse(_: boolean): this;
47
+ }
42
48
  export declare class RoxieResult extends Datasource {
43
49
  private _ec;
50
+ _origService: any;
44
51
  _service: RoxieService;
45
- service(): RoxieService;
46
- service(_: RoxieService): this;
47
- resultName: publish<this, string>;
48
52
  constructor(_ec: ElementContainer);
49
53
  toDDL(): DDL2.IRoxieService | DDL2.IHipieService;
50
54
  fromDDL(ddl: DDL2.IRoxieService): this;
@@ -64,6 +68,12 @@ export declare class RoxieResult extends Datasource {
64
68
  [key: string]: any;
65
69
  }>;
66
70
  }
71
+ export interface RoxieResult {
72
+ service(): RoxieService;
73
+ service(_: RoxieService): this;
74
+ resultName(): string;
75
+ resultName(_: string): this;
76
+ }
67
77
  export declare class RoxieResultRef extends DatasourceRef {
68
78
  private _ec;
69
79
  serviceID(): string;
@@ -74,9 +84,6 @@ export declare class RoxieResultRef extends DatasourceRef {
74
84
  querySet(): string;
75
85
  queryID(): string;
76
86
  resultName(): string;
77
- _request: Param[];
78
- request(): Param[];
79
- request(_: Param[]): this;
80
87
  validate(): IActivityError[];
81
88
  constructor(_ec: ElementContainer);
82
89
  toDDL(): DDL2.IRoxieServiceRef;
@@ -88,7 +95,7 @@ export declare class RoxieResultRef extends DatasourceRef {
88
95
  hash(): string;
89
96
  label(): string;
90
97
  elementIDs(): string[];
91
- element(source: any): import("../model/element").Element;
98
+ element(source: any): import("../model/element.ts").Element;
92
99
  referencedFields(refs: ReferencedFields): void;
93
100
  validParams(): Param[];
94
101
  refreshMeta(): Promise<void>;
@@ -103,10 +110,13 @@ export declare class RoxieResultRef extends DatasourceRef {
103
110
  inData(): ReadonlyArray<object>;
104
111
  computeData(): ReadonlyArray<object>;
105
112
  }
113
+ export interface RoxieResultRef {
114
+ request(): Param[];
115
+ request(_: Param[]): this;
116
+ }
106
117
  export declare class HipieResultRef extends RoxieResultRef {
107
118
  fullUrl(_: string): this;
108
119
  formatRequest(): {
109
120
  [key: string]: any;
110
121
  };
111
122
  }
112
- //# sourceMappingURL=roxie.d.ts.map
@@ -1,11 +1,8 @@
1
- import { PropertyExt, publish } from "@hpcc-js/common";
1
+ import { PropertyExt } from "@hpcc-js/common";
2
2
  import { DDL2 } from "@hpcc-js/ddl-shim";
3
- import { Activity, IActivityError, ReferencedFields } from "./activity";
3
+ import { Activity, IActivityError, ReferencedFields } from "./activity.ts";
4
4
  export declare class SortColumn extends PropertyExt {
5
5
  private _owner;
6
- fieldID: publish<this, string>;
7
- fieldID_valid: () => boolean;
8
- descending: publish<this, boolean>;
9
6
  validate(prefix: string): IActivityError[];
10
7
  constructor();
11
8
  owner(): Sort;
@@ -18,9 +15,15 @@ export declare class SortColumn extends PropertyExt {
18
15
  fieldIDs(): string[];
19
16
  field(id: string): DDL2.IField | undefined;
20
17
  }
18
+ export interface SortColumn {
19
+ fieldID(): string;
20
+ fieldID(_: string): this;
21
+ fieldID_valid(): boolean;
22
+ descending(): boolean;
23
+ descending(_: boolean): this;
24
+ }
21
25
  export declare class Sort extends Activity {
22
26
  static Column: typeof SortColumn;
23
- column: publish<this, SortColumn[]>;
24
27
  validate(): IActivityError[];
25
28
  constructor();
26
29
  toDDL(): DDL2.ISort;
@@ -35,4 +38,7 @@ export declare class Sort extends Activity {
35
38
  fieldIDs(): string[];
36
39
  computeData(): ReadonlyArray<object>;
37
40
  }
38
- //# sourceMappingURL=sort.d.ts.map
41
+ export interface Sort {
42
+ column(): SortColumn[];
43
+ column(_: SortColumn[]): this;
44
+ }
@@ -1,8 +1,7 @@
1
- import { publish } from "@hpcc-js/common";
2
1
  import { Result, Workunit, XSDXMLNode } from "@hpcc-js/comms";
3
2
  import { DDL2 } from "@hpcc-js/ddl-shim";
4
- import { ElementContainer } from "../model/element";
5
- import { Datasource, DatasourceRef } from "./datasource";
3
+ import { ElementContainer } from "../model/element.ts";
4
+ import { Datasource, DatasourceRef } from "./datasource.ts";
6
5
  export declare abstract class ESPResult extends Datasource {
7
6
  protected _ec: ElementContainer;
8
7
  protected _result: Result;
@@ -10,8 +9,6 @@ export declare abstract class ESPResult extends Datasource {
10
9
  protected _meta: DDL2.IField[];
11
10
  protected _total: number;
12
11
  private _data;
13
- samples: publish<this, number>;
14
- sampleSize: publish<this, number>;
15
12
  constructor(_ec: ElementContainer);
16
13
  hash(more?: object): string;
17
14
  abstract _createResult(): Result;
@@ -32,13 +29,17 @@ export declare abstract class ESPResult extends Datasource {
32
29
  private _fetch;
33
30
  private sample;
34
31
  }
32
+ export interface ESPResult {
33
+ samples(): number;
34
+ samples(_: number): this;
35
+ sampleSize(): number;
36
+ sampleSize(_: number): this;
37
+ }
35
38
  export declare class WUResult extends ESPResult {
39
+ _origWu: any;
40
+ _origResultName: any;
36
41
  _wu: WU;
37
- wu(): WU;
38
- wu(_: WU): this;
39
42
  _resultName: string;
40
- resultName(_: string): this;
41
- resultName(): string;
42
43
  constructor(_ec: ElementContainer);
43
44
  url(): string;
44
45
  wuid(): string;
@@ -50,14 +51,16 @@ export declare class WUResult extends ESPResult {
50
51
  hash(more: object): string;
51
52
  label(): string;
52
53
  }
54
+ export interface WUResult {
55
+ wu(): WU;
56
+ wu(_: WU): this;
57
+ resultName(): string;
58
+ resultName(_: string): this;
59
+ }
53
60
  export declare class WU extends Datasource {
54
61
  private _ec;
55
- _url: string;
56
- url(): string;
57
- url(_: string): this;
58
- _wuid: string;
59
- wuid(): string;
60
- wuid(_: string): this;
62
+ _origUrl: any;
63
+ _origWuid: any;
61
64
  protected _workunit: Workunit;
62
65
  protected _outputs: {
63
66
  [id: string]: WUResult;
@@ -77,6 +80,12 @@ export declare class WU extends Datasource {
77
80
  refreshMeta(): Promise<void>;
78
81
  resultNames(): string[];
79
82
  }
83
+ export interface WU {
84
+ url(): string;
85
+ url(_: string): this;
86
+ wuid(): string;
87
+ wuid(_: string): this;
88
+ }
80
89
  export declare class WUResultRef extends DatasourceRef {
81
90
  datasource(): WUResult;
82
91
  datasource(_: WUResult): this;
@@ -84,4 +93,3 @@ export declare class WUResultRef extends DatasourceRef {
84
93
  resultName(_: string): this;
85
94
  toDDL(): DDL2.IWUResultRef;
86
95
  }
87
- //# sourceMappingURL=wuresult.d.ts.map
@@ -1,9 +1,9 @@
1
1
  import { Widget } from "@hpcc-js/common";
2
2
  import { DDL1, DDL2 } from "@hpcc-js/ddl-shim";
3
3
  import { ChartPanel } from "@hpcc-js/layout";
4
- import { Activity } from "./activities/activity";
5
- import { FormField } from "./activities/form";
6
- import { Element, ElementContainer } from "./model/element";
4
+ import { Activity } from "./activities/activity.ts";
5
+ import { FormField } from "./activities/form.ts";
6
+ import { Element, ElementContainer } from "./model/element.ts";
7
7
  import "../../src/ddl2/dashboard.css";
8
8
  export interface IDockPanel {
9
9
  layoutObj(_: object | null): this;
@@ -50,4 +50,3 @@ export declare class Dashboard extends ChartPanel {
50
50
  vizStateChanged(viz: Element): void;
51
51
  render(callback?: any): this;
52
52
  }
53
- //# sourceMappingURL=dashboard.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { Widget } from "@hpcc-js/common";
2
2
  import { DockPanel, IClosable, WidgetAdapter } from "@hpcc-js/phosphor";
3
- import { Element, ElementContainer } from "./model/element";
4
- import { IVizPopupPanelOwner } from "./model/vizChartPanel";
3
+ import { Element, ElementContainer } from "./model/element.ts";
4
+ import { IVizPopupPanelOwner } from "./model/vizChartPanel.ts";
5
5
  export declare class DashboardDockPanel extends DockPanel implements IClosable, IVizPopupPanelOwner {
6
6
  private _ec;
7
7
  constructor(_ec: ElementContainer);
@@ -16,4 +16,3 @@ export declare class DashboardDockPanel extends DockPanel implements IClosable,
16
16
  canClose(w: Widget, wa: WidgetAdapter): boolean;
17
17
  syncPopups(): void;
18
18
  }
19
- //# sourceMappingURL=dashboardDockPanel.d.ts.map