bruce-models 7.1.32 → 7.1.34

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.
@@ -59,6 +59,7 @@ __exportStar(require("./entity/entity-coords"), exports);
59
59
  __exportStar(require("./entity/entity-attribute"), exports);
60
60
  __exportStar(require("./entity/entity-historic-data"), exports);
61
61
  __exportStar(require("./entity/entity-table-view"), exports);
62
+ __exportStar(require("./dashboard/dashboard-view"), exports);
62
63
  __exportStar(require("./entity-type-model/comment"), exports);
63
64
  __exportStar(require("./client-file/client-file"), exports);
64
65
  __exportStar(require("./program-key/program-key"), exports);
@@ -97,6 +98,7 @@ __exportStar(require("./util/object-utils"), exports);
97
98
  __exportStar(require("./util/path-utils"), exports);
98
99
  __exportStar(require("./util/url-utils"), exports);
99
100
  __exportStar(require("./data-lab/data-lab"), exports);
101
+ __exportStar(require("./data-transform/data-transform"), exports);
100
102
  __exportStar(require("./data-lab/data-lab-group"), exports);
101
103
  __exportStar(require("./data-feed/data-feed"), exports);
102
104
  __exportStar(require("./import/import-assembly"), exports);
@@ -120,5 +122,5 @@ __exportStar(require("./mcp/navigator-chat"), exports);
120
122
  __exportStar(require("./mcp/navigator-mcp-websocket"), exports);
121
123
  __exportStar(require("./change-set/change-set"), exports);
122
124
  // This is updated with the package.json version on build.
123
- exports.VERSION = "7.1.32";
125
+ exports.VERSION = "7.1.34";
124
126
  //# sourceMappingURL=bruce-models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bruce-models.js","sourceRoot":"","sources":["../../src/bruce-models.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8DAA4C;AAE5C,4DAA0C;AAC1C,oEAAkD;AAElD,qDAAmC;AACnC,4CAA0B;AAC1B,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,oDAAkC;AAElC,0DAAwC;AAExC,kDAAgC;AAChC,uDAAqC;AACrC,iDAA+B;AAC/B,kDAAgC;AACh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;AAC9B,4DAA0C;AAC1C,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AACrC,gEAA8C;AAE9C,0DAAwC;AAExC,0DAA0D;AAC7C,QAAA,OAAO,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"bruce-models.js","sourceRoot":"","sources":["../../src/bruce-models.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8DAA4C;AAE5C,4DAA0C;AAC1C,oEAAkD;AAElD,qDAAmC;AACnC,4CAA0B;AAC1B,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,oDAAkC;AAElC,0DAAwC;AAExC,kDAAgC;AAChC,uDAAqC;AACrC,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,iDAA+B;AAC/B,uDAAqC;AACrC,sDAAoC;AACpC,oDAAkC;AAClC,qDAAmC;AACnC,+CAA6B;AAC7B,0DAAwC;AACxC,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AAEjC,kEAAgD;AAChD,6DAA2C;AAC3C,0DAAwC;AACxC,uDAAqC;AACrC,sDAAoC;AACpC,+DAA6C;AAC7C,gEAA8C;AAC9C,2DAAyC;AACzC,yDAAuC;AACvC,sDAAoC;AACpC,+DAA6C;AAC7C,uDAAqC;AACrC,kDAAgC;AAChC,yDAAuC;AACvC,4DAA0C;AAC1C,gEAA8C;AAC9C,6DAA2C;AAC3C,6DAA2C;AAE3C,8DAA4C;AAE5C,4DAA0C;AAE1C,4DAA0C;AAE1C,yDAAuC;AACvC,sDAAoC;AACpC,kEAAgD;AAChD,yDAAuC;AACvC,qEAAmD;AACnD,8DAA4C;AAC5C,mEAAiD;AACjD,gEAA8C;AAC9C,yEAAuD;AACvD,wEAAsD;AAEtD,0DAAwC;AACxC,0DAAwC;AACxC,4DAA0C;AAC1C,2DAAyC;AACzC,+DAA6C;AAE7C,gDAA8B;AAE9B,oDAAkC;AAElC,oDAAkC;AAClC,iDAA+B;AAC/B,oDAAkC;AAClC,8CAA4B;AAC5B,yDAAuC;AAEvC,oDAAkC;AAClC,6DAA2C;AAC3C,2DAAyC;AACzC,6DAA2C;AAC3C,2DAAyC;AACzC,6DAA2C;AAC3C,yDAAuC;AAEvC,uDAAqC;AACrC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,mDAAiC;AACjC,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AACrC,0DAAwC;AACxC,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;AAEvC,sDAAoC;AACpC,sDAAoC;AAEpC,kDAAgC;AAChC,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B;AAC9B,4DAA0C;AAC1C,sDAAoC;AACpC,sDAAoC;AACpC,uDAAqC;AACrC,gEAA8C;AAE9C,0DAAwC;AAExC,0DAA0D;AAC7C,QAAA,OAAO,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DashboardView = void 0;
13
+ const api_1 = require("../api/api");
14
+ const environment_1 = require("../environment");
15
+ /**
16
+ * Represents a Dashboard View record.
17
+ */
18
+ var DashboardView;
19
+ (function (DashboardView) {
20
+ /**
21
+ * Returns a record matching the given viewId.
22
+ * @param params
23
+ */
24
+ function Get(params) {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ let { viewId, api, req } = params;
27
+ if (!api) {
28
+ api = environment_1.ENVIRONMENT.Api().GetBruceApi();
29
+ }
30
+ req = api_1.Api.PrepReqParams(req);
31
+ const res = yield api.GET(`ui.dashboardview/${viewId}`, req);
32
+ return {
33
+ view: res
34
+ };
35
+ });
36
+ }
37
+ DashboardView.Get = Get;
38
+ /**
39
+ * Returns the list of all available Dashboard Views.
40
+ * @param params
41
+ */
42
+ function GetList(params) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ if (!params) {
45
+ params = {};
46
+ }
47
+ let { api, req } = params;
48
+ if (!api) {
49
+ api = environment_1.ENVIRONMENT.Api().GetBruceApi();
50
+ }
51
+ req = api_1.Api.PrepReqParams(req);
52
+ const res = yield api.GET("ui.dashboardviews", req);
53
+ let items = res === null || res === void 0 ? void 0 : res.Items;
54
+ if (!items) {
55
+ items = [];
56
+ }
57
+ return {
58
+ views: items
59
+ };
60
+ });
61
+ }
62
+ DashboardView.GetList = GetList;
63
+ /**
64
+ * Creates or updates a Dashboard View record.
65
+ */
66
+ function Update(params) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ let { view, api, req } = params;
69
+ if (!api) {
70
+ api = environment_1.ENVIRONMENT.Api().GetBruceApi();
71
+ }
72
+ req = api_1.Api.PrepReqParams(req);
73
+ let viewId = view.ID;
74
+ if (!viewId) {
75
+ viewId = 0;
76
+ }
77
+ const res = yield api.POST(`ui.dashboardview/${viewId}`, view, req);
78
+ return {
79
+ view: res
80
+ };
81
+ });
82
+ }
83
+ DashboardView.Update = Update;
84
+ /**
85
+ * Deletes a Dashboard View record.
86
+ * @param params
87
+ */
88
+ function Delete(params) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ let { viewId, api, req } = params;
91
+ if (!api) {
92
+ api = environment_1.ENVIRONMENT.Api().GetBruceApi();
93
+ }
94
+ req = api_1.Api.PrepReqParams(req);
95
+ return yield api.DELETE(`ui.dashboardview/${viewId}`, req);
96
+ });
97
+ }
98
+ DashboardView.Delete = Delete;
99
+ })(DashboardView = exports.DashboardView || (exports.DashboardView = {}));
100
+ //# sourceMappingURL=dashboard-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-view.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-view.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAiC;AAEjC,gDAA6C;AAE7C;;GAEG;AACH,IAAiB,aAAa,CAyG7B;AAzGD,WAAiB,aAAa;IAQ1B;;;OAGG;IACH,SAAsB,GAAG,CAAC,MAIzB;;YAGG,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;YAClC,IAAI,CAAC,GAAG,EAAE;gBACN,GAAG,GAAG,yBAAW,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;aACzC;YACD,GAAG,GAAG,SAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;YAE7B,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,oBAAoB,MAAM,EAAE,EAAE,GAAG,CAAC,CAAC;YAE7D,OAAO;gBACH,IAAI,EAAE,GAAG;aACZ,CAAC;QACN,CAAC;KAAA;IAlBqB,iBAAG,MAkBxB,CAAA;IAED;;;OAGG;IACH,SAAsB,OAAO,CAAC,MAG7B;;YAGG,IAAI,CAAC,MAAM,EAAE;gBACT,MAAM,GAAG,EAAE,CAAC;aACf;YACD,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;YAC1B,IAAI,CAAC,GAAG,EAAE;gBACN,GAAG,GAAG,yBAAW,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC;aACzC;YACD,GAAG,GAAG,SAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;YAE7B,MAAM,GAAG,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,GAAG,CAAC,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AAM,SAW3B,CAAA;AACL,CAAC,EAzGgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAyG7B"}
@@ -0,0 +1,120 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.DataTransform = void 0;
13
+ const api_1 = require("../api/api");
14
+ const environment_1 = require("../environment");
15
+ /**
16
+ * Describes the "Data Transform" concept within Nextspace.
17
+ */
18
+ var DataTransform;
19
+ (function (DataTransform) {
20
+ /**
21
+ * Supported Logic Flow diagram item types.
22
+ */
23
+ let ELogicFlowDiagramItemType;
24
+ (function (ELogicFlowDiagramItemType) {
25
+ ELogicFlowDiagramItemType["InputValue"] = "input-value";
26
+ ELogicFlowDiagramItemType["OutputValue"] = "output-value";
27
+ ELogicFlowDiagramItemType["If"] = "if";
28
+ ELogicFlowDiagramItemType["Formula"] = "formula";
29
+ ELogicFlowDiagramItemType["Switch"] = "switch";
30
+ })(ELogicFlowDiagramItemType = DataTransform.ELogicFlowDiagramItemType || (DataTransform.ELogicFlowDiagramItemType = {}));
31
+ /**
32
+ * Supported Logic Flow connection point types.
33
+ */
34
+ let ELogicFlowConnectionPointType;
35
+ (function (ELogicFlowConnectionPointType) {
36
+ ELogicFlowConnectionPointType["Input"] = "input";
37
+ ELogicFlowConnectionPointType["Output"] = "output";
38
+ })(ELogicFlowConnectionPointType = DataTransform.ELogicFlowConnectionPointType || (DataTransform.ELogicFlowConnectionPointType = {}));
39
+ /**
40
+ * Supported Logic Flow connection end roles.
41
+ */
42
+ let ELogicFlowConnectionEndRole;
43
+ (function (ELogicFlowConnectionEndRole) {
44
+ ELogicFlowConnectionEndRole["From"] = "from";
45
+ ELogicFlowConnectionEndRole["To"] = "to";
46
+ })(ELogicFlowConnectionEndRole = DataTransform.ELogicFlowConnectionEndRole || (DataTransform.ELogicFlowConnectionEndRole = {}));
47
+ /**
48
+ * Requests a suggested Logic Flow diagram from a natural-language prompt.
49
+ * Route: POST v1/entityType/{entityType_id}/DataTransform/SuggestLogicFlowDiagram
50
+ */
51
+ function SuggestLogicFlowDiagramByPrompt(params) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ let { api, entityTypeId, prompt, model, maxNodes, dataTransformId, dataTransform, dataTransformContext, sourceDataSchema, destinationDataSchema, inputAttributes, outputAttributes, req: reqParams } = params;
54
+ if (!entityTypeId) {
55
+ throw ("Entity Type ID is required.");
56
+ }
57
+ prompt = prompt === null || prompt === void 0 ? void 0 : prompt.trim();
58
+ if (!prompt) {
59
+ throw ("Prompt is required.");
60
+ }
61
+ if (!api) {
62
+ api = environment_1.ENVIRONMENT.Api().GetBruceApi();
63
+ }
64
+ const body = {
65
+ Prompt: prompt
66
+ };
67
+ if (model) {
68
+ body.Model = model;
69
+ }
70
+ if (typeof maxNodes == "number" && !isNaN(maxNodes)) {
71
+ body.MaxNodes = maxNodes;
72
+ }
73
+ if (typeof dataTransformId == "number" && dataTransformId > 0) {
74
+ body["DataTransform.ID"] = dataTransformId;
75
+ }
76
+ if (dataTransform != null) {
77
+ body.DataTransform = dataTransform;
78
+ }
79
+ if (dataTransformContext != null) {
80
+ body.DataTransformContext = dataTransformContext;
81
+ }
82
+ if (sourceDataSchema != null) {
83
+ body.SourceDataSchema = sourceDataSchema;
84
+ }
85
+ if (destinationDataSchema != null) {
86
+ body.DestinationDataSchema = destinationDataSchema;
87
+ }
88
+ if (inputAttributes === null || inputAttributes === void 0 ? void 0 : inputAttributes.length) {
89
+ body.InputAttributes = inputAttributes;
90
+ }
91
+ if (outputAttributes === null || outputAttributes === void 0 ? void 0 : outputAttributes.length) {
92
+ body.OutputAttributes = outputAttributes;
93
+ }
94
+ const route = `v1/entityType/${api_1.Api.Encode(entityTypeId)}/DataTransform/SuggestLogicFlowDiagram`;
95
+ const response = yield api.POST(route, body, api_1.Api.PrepReqParams(reqParams));
96
+ let diagram = (response === null || response === void 0 ? void 0 : response.diagram)
97
+ || (response === null || response === void 0 ? void 0 : response.Diagram)
98
+ || (response === null || response === void 0 ? void 0 : response.LogicFlowDiagram)
99
+ || (response === null || response === void 0 ? void 0 : response.result)
100
+ || (response === null || response === void 0 ? void 0 : response.Result)
101
+ || response;
102
+ if (typeof diagram == "string") {
103
+ try {
104
+ diagram = JSON.parse(diagram);
105
+ }
106
+ catch (e) {
107
+ // Keep original shape if parse fails.
108
+ }
109
+ }
110
+ if (!diagram || typeof diagram != "object") {
111
+ throw ("No Logic Flow Diagram was returned by the suggestion API.");
112
+ }
113
+ return {
114
+ diagram: diagram
115
+ };
116
+ });
117
+ }
118
+ DataTransform.SuggestLogicFlowDiagramByPrompt = SuggestLogicFlowDiagramByPrompt;
119
+ })(DataTransform = exports.DataTransform || (exports.DataTransform = {}));
120
+ //# sourceMappingURL=data-transform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-transform.js","sourceRoot":"","sources":["../../../src/data-transform/data-transform.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAiC;AAEjC,gDAA6C;AAE7C;;GAEG;AACH,IAAiB,aAAa,CA2O7B;AA3OD,WAAiB,aAAa;IAC1B;;OAEG;IACH,IAAY,yBAMX;IAND,WAAY,yBAAyB;QACjC,uDAA0B,CAAA;QAC1B,yDAA4B,CAAA;QAC5B,sCAAS,CAAA;QACT,gDAAmB,CAAA;QACnB,8CAAiB,CAAA;IACrB,CAAC,EANW,yBAAyB,GAAzB,uCAAyB,KAAzB,uCAAyB,QAMpC;IAGD;;OAEG;IACH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B,IAAI;oBACA,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;iBACjC;gBACD,OAAO,CAAC,EAAE;oBACN,sCAAsC;iBACzC;aACJ;YACD,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,IAAI,QAAQ,EAAE;gBACxC,MAAK,CAAC,2DAA2D,CAAC,CAAC;aACtE;YAED,OAAO;gBACH,OAAO,EAAE,OAA4B;aACxC,CAAC;QACN,CAAC;KAAA;IAjHqB,6CAA+B,kCAiHpD,CAAA;AACL,CAAC,EA3OgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA2O7B"}
@@ -42,6 +42,7 @@ export * from "./entity/entity-coords";
42
42
  export * from "./entity/entity-attribute";
43
43
  export * from "./entity/entity-historic-data";
44
44
  export * from "./entity/entity-table-view";
45
+ export * from "./dashboard/dashboard-view";
45
46
  export * from "./entity-type-model/comment";
46
47
  export * from "./client-file/client-file";
47
48
  export * from "./program-key/program-key";
@@ -80,6 +81,7 @@ export * from "./util/object-utils";
80
81
  export * from "./util/path-utils";
81
82
  export * from "./util/url-utils";
82
83
  export * from "./data-lab/data-lab";
84
+ export * from "./data-transform/data-transform";
83
85
  export * from "./data-lab/data-lab-group";
84
86
  export * from "./data-feed/data-feed";
85
87
  export * from "./import/import-assembly";
@@ -102,4 +104,4 @@ export * from "./tracking/tracking";
102
104
  export * from "./mcp/navigator-chat";
103
105
  export * from "./mcp/navigator-mcp-websocket";
104
106
  export * from "./change-set/change-set";
105
- export declare const VERSION = "7.1.32";
107
+ export declare const VERSION = "7.1.34";
@@ -0,0 +1,53 @@
1
+ import { Api } from "../api/api";
2
+ import { BruceApi } from "../api/bruce-api";
3
+ /**
4
+ * Represents a Dashboard View record.
5
+ */
6
+ export declare namespace DashboardView {
7
+ interface IView {
8
+ ID?: number;
9
+ DisplayName: string;
10
+ Description?: string;
11
+ Settings?: any;
12
+ }
13
+ /**
14
+ * Returns a record matching the given viewId.
15
+ * @param params
16
+ */
17
+ function Get(params: {
18
+ viewId: number;
19
+ api?: BruceApi.Api;
20
+ req?: Api.IReqParams;
21
+ }): Promise<{
22
+ view: IView;
23
+ }>;
24
+ /**
25
+ * Returns the list of all available Dashboard Views.
26
+ * @param params
27
+ */
28
+ function GetList(params?: {
29
+ api?: BruceApi.Api;
30
+ req?: Api.IReqParams;
31
+ }): Promise<{
32
+ views?: IView[];
33
+ }>;
34
+ /**
35
+ * Creates or updates a Dashboard View record.
36
+ */
37
+ function Update(params: {
38
+ view: IView;
39
+ api?: BruceApi.Api;
40
+ req?: Api.IReqParams;
41
+ }): Promise<{
42
+ view: IView;
43
+ }>;
44
+ /**
45
+ * Deletes a Dashboard View record.
46
+ * @param params
47
+ */
48
+ function Delete(params: {
49
+ viewId: number;
50
+ api?: BruceApi.Api;
51
+ req?: Api.IReqParams;
52
+ }): Promise<void>;
53
+ }
@@ -0,0 +1,133 @@
1
+ import { Api } from "../api/api";
2
+ import { BruceApi } from "../api/bruce-api";
3
+ /**
4
+ * Describes the "Data Transform" concept within Nextspace.
5
+ */
6
+ export declare namespace DataTransform {
7
+ /**
8
+ * Supported Logic Flow diagram item types.
9
+ */
10
+ enum ELogicFlowDiagramItemType {
11
+ InputValue = "input-value",
12
+ OutputValue = "output-value",
13
+ If = "if",
14
+ Formula = "formula",
15
+ Switch = "switch"
16
+ }
17
+ type LogicFlowDiagramItemType = ELogicFlowDiagramItemType | string;
18
+ /**
19
+ * Supported Logic Flow connection point types.
20
+ */
21
+ enum ELogicFlowConnectionPointType {
22
+ Input = "input",
23
+ Output = "output"
24
+ }
25
+ type LogicFlowConnectionPointType = ELogicFlowConnectionPointType | string;
26
+ /**
27
+ * Supported Logic Flow connection end roles.
28
+ */
29
+ enum ELogicFlowConnectionEndRole {
30
+ From = "from",
31
+ To = "to"
32
+ }
33
+ type LogicFlowConnectionEndRole = ELogicFlowConnectionEndRole | string;
34
+ /**
35
+ * Describes an attribute reference used by the Logic Flow suggestion endpoint.
36
+ */
37
+ interface IAttributeRef {
38
+ Key?: string;
39
+ Path?: string;
40
+ Name?: string;
41
+ Type?: string;
42
+ }
43
+ /**
44
+ * Describes 2D coordinates on a Logic Flow diagram canvas.
45
+ */
46
+ interface IDiagramPoint {
47
+ x: number;
48
+ y: number;
49
+ }
50
+ /**
51
+ * Describes a diagram connection point.
52
+ */
53
+ interface IDiagramConnectionPoint {
54
+ key: string;
55
+ type: LogicFlowConnectionPointType;
56
+ payload?: any;
57
+ }
58
+ /**
59
+ * Describes a node within a Logic Flow diagram.
60
+ */
61
+ interface ILogicFlowDiagramItem {
62
+ key: string;
63
+ type: LogicFlowDiagramItemType;
64
+ position: IDiagramPoint;
65
+ payload?: any;
66
+ Settings?: any;
67
+ connectionPoints?: IDiagramConnectionPoint[];
68
+ }
69
+ /**
70
+ * Describes one end of a diagram connection.
71
+ */
72
+ interface IDiagramConnectionEnd {
73
+ role: LogicFlowConnectionEndRole;
74
+ itemKey: string;
75
+ pointKey: string;
76
+ pointType: LogicFlowConnectionPointType;
77
+ }
78
+ /**
79
+ * Describes a connection between two diagram items.
80
+ */
81
+ interface ILogicFlowDiagramConnection {
82
+ key: string;
83
+ type: string;
84
+ payload?: any;
85
+ from: IDiagramConnectionEnd;
86
+ to: IDiagramConnectionEnd;
87
+ }
88
+ /**
89
+ * Describes counters for generated diagram keys.
90
+ */
91
+ interface ILogicFlowDiagramCounters {
92
+ input?: number;
93
+ output?: number;
94
+ if?: number;
95
+ formula?: number;
96
+ switch?: number;
97
+ connection?: number;
98
+ }
99
+ /**
100
+ * Describes the logic flow diagram payload returned by the API.
101
+ */
102
+ interface ILogicFlowDiagram {
103
+ version?: number;
104
+ exportedAt?: string;
105
+ viewport?: any;
106
+ transform?: any;
107
+ toolMode?: string;
108
+ counters?: ILogicFlowDiagramCounters;
109
+ diagramItems?: ILogicFlowDiagramItem[];
110
+ diagramConnections?: ILogicFlowDiagramConnection[];
111
+ }
112
+ /**
113
+ * Requests a suggested Logic Flow diagram from a natural-language prompt.
114
+ * Route: POST v1/entityType/{entityType_id}/DataTransform/SuggestLogicFlowDiagram
115
+ */
116
+ function SuggestLogicFlowDiagramByPrompt(params: {
117
+ api?: BruceApi.Api;
118
+ entityTypeId: string;
119
+ prompt: string;
120
+ model?: string;
121
+ maxNodes?: number;
122
+ dataTransformId?: number;
123
+ dataTransform?: any;
124
+ dataTransformContext?: any;
125
+ sourceDataSchema?: any;
126
+ destinationDataSchema?: any;
127
+ inputAttributes?: IAttributeRef[];
128
+ outputAttributes?: IAttributeRef[];
129
+ req?: Api.IReqParams;
130
+ }): Promise<{
131
+ diagram: ILogicFlowDiagram;
132
+ }>;
133
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "7.1.32",
3
+ "version": "7.1.34",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",