@neuralinnovations/dataisland-sdk 0.6.8 → 0.6.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/dist/package.json +1 -1
- package/dist/src/storages/queryFlows/queryFlows.impl.d.ts.map +1 -1
- package/dist/src/storages/queryFlows/queryFlows.impl.js +3 -6
- package/dist/src/storages/queryFlows/queryFlows.impl.js.map +1 -1
- package/package.json +1 -1
- package/src/storages/queryFlows/queryFlows.impl.ts +4 -7
package/dist/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queryFlows.impl.d.ts","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAGrE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAMtD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,qBAAa,cAAe,SAAQ,UAAU;aAK1B,YAAY,EAAE,gBAAgB;aAC9B,OAAO,EAAE,OAAO;IAJlC,OAAO,CAAC,WAAW,CAAkB;gBAGnB,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,OAAO;IAI5B,aAAa,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"queryFlows.impl.d.ts","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAA;AAGrE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAMtD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,qBAAa,cAAe,SAAQ,UAAU;aAK1B,YAAY,EAAE,gBAAgB;aAC9B,OAAO,EAAE,OAAO;IAJlC,OAAO,CAAC,WAAW,CAAkB;gBAGnB,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,OAAO;IAI5B,aAAa,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAkCrC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;IAmDpG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAoCxC"}
|
@@ -23,6 +23,8 @@ class QueryFlowsImpl extends queryFlows_1.QueryFlows {
|
|
23
23
|
// parse flows from the server's response
|
24
24
|
const flows = (await response.json())
|
25
25
|
.flowIds;
|
26
|
+
// Clear collection before add new elementss
|
27
|
+
this._collection = [];
|
26
28
|
// init flows from the server's response
|
27
29
|
for (const flow of flows) {
|
28
30
|
// create workspace implementation
|
@@ -31,11 +33,6 @@ class QueryFlowsImpl extends queryFlows_1.QueryFlows {
|
|
31
33
|
await flowImpl.initFrom(flow);
|
32
34
|
// add workspace to the collection
|
33
35
|
this._collection.push(flowImpl);
|
34
|
-
// dispatch event
|
35
|
-
this.dispatch({
|
36
|
-
type: queryFlows_1.QueryFlowsEvent.ADDED,
|
37
|
-
data: flowImpl
|
38
|
-
});
|
39
36
|
}
|
40
37
|
return this._collection;
|
41
38
|
}
|
@@ -45,7 +42,7 @@ class QueryFlowsImpl extends queryFlows_1.QueryFlows {
|
|
45
42
|
throw new Error("Name is required, must be not empty");
|
46
43
|
}
|
47
44
|
if (workspaceId === undefined || workspaceId === null || workspaceId.trim() === "") {
|
48
|
-
throw new Error("
|
45
|
+
throw new Error("WorkspaceIds is required, must be not empty");
|
49
46
|
}
|
50
47
|
if (file === undefined || file === null) {
|
51
48
|
throw new Error("Create query flow, file is undefined or null");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queryFlows.impl.js","sourceRoot":"","sources":["../../../../src/storages/queryFlows/queryFlows.impl.ts"],"names":[],"mappings":";;;AACA,6CAAkE;AAGlE,0DAAsD;AACtD,gEAA4D;AAM5D,qDAAgD;AAGhD,MAAa,cAAe,SAAQ,uBAAU;IAI5C,YACkB,YAA8B,EAC9B,OAAgB;QAChC,KAAK,EAAE,CAAA;QAFS,iBAAY,GAAZ,YAAY,CAAkB;QAC9B,YAAO,GAAP,OAAO,CAAS;QAJ1B,gBAAW,GAAgB,EAAE,CAAA;IAMrC,CAAC;IAED,KAAK,CAAC,aAAa;;QACjB,MAAM,QAAQ,GAAG,MAAM,CAAA,MAAA,IAAI,CAAC,OAAO;aAChC,OAAO,CAAC,uBAAU,CAAC,0CAClB,cAAc,CAAC,wBAAwB,EACxC,WAAW,CAAC,gBAAgB,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,EAClD,OAAO,EAAE,CAAA,CAAA;QAEZ,wBAAwB;QACxB,IAAI,6BAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnC,MAAM,6BAAa,CAAC,UAAU,CAAC,uCAAuC,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;QACzG,CAAC;QAED,yCAAyC;QACzC,MAAM,KAAK,GAAI,CAAC,MAAM,QAAS,CAAC,IAAI,EAAE,CAA2B;aAC9D,OAAO,CAAA;QAEV,wCAAwC;QACxC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,kCAAkC;YAClC,MAAM,QAAQ,GAAG,IAAI,8BAAa,CAAC,IA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,eAAe,CAAC,CAAA;QAClD,CAAC;QAED,oCAAoC;QACpC,MAAM,QAAQ,GAAG,MAAM,CAAA,MAAA,IAAI,CAAC,OAAO;aAChC,OAAO,CAAC,uBAAU,CAAC,0CAClB,cAAc,CAAC,mBAAmB,EACnC,WAAW,CAAC,QAAQ,EAAE,EAAE,EACxB,UAAU,EAAE,CAAA,CAAA;QAEf,wBAAwB;QACxB,IAAI,6BAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;YACnC,MAAM,6BAAa,CAAC,UAAU,CAC5B,+BAA+B,EAAE,qBAAqB,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAC5E,QAAQ,CACT,CAAA;QACH,CAAC;QAED,wCAAwC;QACxC,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QAC5C,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,cAAc,EAAE,eAAe,CAAC,CAAA;QAClD,CAAC;QACD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;QAEjC,iBAAiB;QACjB,IAAI,CAAC,QAAQ,CAAC;YACZ,IAAI,EAAE,4BAAe,CAAC,OAAO;YAC7B,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CAEF;AAnID,wCAmIC"}
|
package/package.json
CHANGED
@@ -38,6 +38,9 @@ export class QueryFlowsImpl extends QueryFlows {
|
|
38
38
|
const flows = ((await response!.json()) as QueryFlowListResponse)
|
39
39
|
.flowIds
|
40
40
|
|
41
|
+
// Clear collection before add new elementss
|
42
|
+
this._collection = []
|
43
|
+
|
41
44
|
// init flows from the server's response
|
42
45
|
for (const flow of flows) {
|
43
46
|
// create workspace implementation
|
@@ -48,12 +51,6 @@ export class QueryFlowsImpl extends QueryFlows {
|
|
48
51
|
|
49
52
|
// add workspace to the collection
|
50
53
|
this._collection.push(flowImpl)
|
51
|
-
|
52
|
-
// dispatch event
|
53
|
-
this.dispatch({
|
54
|
-
type: QueryFlowsEvent.ADDED,
|
55
|
-
data: flowImpl
|
56
|
-
})
|
57
54
|
}
|
58
55
|
|
59
56
|
return this._collection
|
@@ -64,7 +61,7 @@ export class QueryFlowsImpl extends QueryFlows {
|
|
64
61
|
throw new Error("Name is required, must be not empty")
|
65
62
|
}
|
66
63
|
if (workspaceId === undefined || workspaceId === null || workspaceId.trim() === "") {
|
67
|
-
throw new Error("
|
64
|
+
throw new Error("WorkspaceIds is required, must be not empty")
|
68
65
|
}
|
69
66
|
if (file === undefined || file === null) {
|
70
67
|
throw new Error("Create query flow, file is undefined or null")
|