@or-sdk/idw 7.1.3 → 7.1.4-beta.2589.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.
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/types/rwcPayload.js +22 -0
- package/dist/cjs/types/rwcPayload.js.map +1 -0
- package/dist/esm/types/index.js +1 -0
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/rwcPayload.js +19 -0
- package/dist/esm/types/rwcPayload.js.map +1 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/dist/types/types/rwcPayload.d.ts +31 -0
- package/dist/types/types/rwcPayload.d.ts.map +1 -0
- package/package.json +2 -3
- package/src/types/index.ts +1 -0
- package/src/types/rwcPayload.ts +36 -0
package/dist/cjs/types/index.js
CHANGED
|
@@ -24,4 +24,5 @@ __exportStar(require("./memory"), exports);
|
|
|
24
24
|
__exportStar(require("./idwInfo"), exports);
|
|
25
25
|
__exportStar(require("./idwRwc"), exports);
|
|
26
26
|
__exportStar(require("./tag"), exports);
|
|
27
|
+
__exportStar(require("./rwcPayload"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB;AACzB,wCAAsB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,yCAAuB;AACvB,2CAAyB;AACzB,4CAA0B;AAC1B,2CAAyB;AACzB,wCAAsB;AACtB,+CAA6B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdwEntities = exports.RwcActions = void 0;
|
|
4
|
+
var RwcActions;
|
|
5
|
+
(function (RwcActions) {
|
|
6
|
+
RwcActions["ADD"] = "ADD";
|
|
7
|
+
RwcActions["EDIT"] = "EDIT";
|
|
8
|
+
RwcActions["DELETE"] = "DELETE";
|
|
9
|
+
RwcActions["ACTIVATE"] = "ACTIVATE";
|
|
10
|
+
RwcActions["DEACTIVATE"] = "DEACTIVATE";
|
|
11
|
+
})(RwcActions = exports.RwcActions || (exports.RwcActions = {}));
|
|
12
|
+
var IdwEntities;
|
|
13
|
+
(function (IdwEntities) {
|
|
14
|
+
IdwEntities["IDW"] = "IDW";
|
|
15
|
+
IdwEntities["Skill"] = "Skill";
|
|
16
|
+
IdwEntities["Flow"] = "Flow";
|
|
17
|
+
IdwEntities["Tag"] = "Tag";
|
|
18
|
+
IdwEntities["Channel"] = "Channel";
|
|
19
|
+
IdwEntities["Domain"] = "Domain";
|
|
20
|
+
IdwEntities["Memory"] = "Memory";
|
|
21
|
+
})(IdwEntities = exports.IdwEntities || (exports.IdwEntities = {}));
|
|
22
|
+
//# sourceMappingURL=rwcPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rwcPayload.js","sourceRoot":"","sources":["../../../src/types/rwcPayload.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,uCAAyB,CAAA;AAC3B,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,0BAAW,CAAA;IACX,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB"}
|
package/dist/esm/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export var RwcActions;
|
|
2
|
+
(function (RwcActions) {
|
|
3
|
+
RwcActions["ADD"] = "ADD";
|
|
4
|
+
RwcActions["EDIT"] = "EDIT";
|
|
5
|
+
RwcActions["DELETE"] = "DELETE";
|
|
6
|
+
RwcActions["ACTIVATE"] = "ACTIVATE";
|
|
7
|
+
RwcActions["DEACTIVATE"] = "DEACTIVATE";
|
|
8
|
+
})(RwcActions || (RwcActions = {}));
|
|
9
|
+
export var IdwEntities;
|
|
10
|
+
(function (IdwEntities) {
|
|
11
|
+
IdwEntities["IDW"] = "IDW";
|
|
12
|
+
IdwEntities["Skill"] = "Skill";
|
|
13
|
+
IdwEntities["Flow"] = "Flow";
|
|
14
|
+
IdwEntities["Tag"] = "Tag";
|
|
15
|
+
IdwEntities["Channel"] = "Channel";
|
|
16
|
+
IdwEntities["Domain"] = "Domain";
|
|
17
|
+
IdwEntities["Memory"] = "Memory";
|
|
18
|
+
})(IdwEntities || (IdwEntities = {}));
|
|
19
|
+
//# sourceMappingURL=rwcPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rwcPayload.js","sourceRoot":"","sources":["../../../src/types/rwcPayload.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,uCAAyB,CAAA;AAC3B,CAAC,EANW,UAAU,KAAV,UAAU,QAMrB;AAED,MAAM,CAAN,IAAY,WAQX;AARD,WAAY,WAAW;IACrB,0BAAW,CAAA;IACX,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,0BAAW,CAAA;IACX,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;AACnB,CAAC,EARW,WAAW,KAAX,WAAW,QAQtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare enum RwcActions {
|
|
2
|
+
ADD = "ADD",
|
|
3
|
+
EDIT = "EDIT",
|
|
4
|
+
DELETE = "DELETE",
|
|
5
|
+
ACTIVATE = "ACTIVATE",
|
|
6
|
+
DEACTIVATE = "DEACTIVATE"
|
|
7
|
+
}
|
|
8
|
+
export declare enum IdwEntities {
|
|
9
|
+
IDW = "IDW",
|
|
10
|
+
Skill = "Skill",
|
|
11
|
+
Flow = "Flow",
|
|
12
|
+
Tag = "Tag",
|
|
13
|
+
Channel = "Channel",
|
|
14
|
+
Domain = "Domain",
|
|
15
|
+
Memory = "Memory"
|
|
16
|
+
}
|
|
17
|
+
export type RwcActionPayload = {
|
|
18
|
+
action: RwcActions;
|
|
19
|
+
entity: IdwEntities;
|
|
20
|
+
id: string;
|
|
21
|
+
relatedEntity?: IdwEntities;
|
|
22
|
+
changes?: {
|
|
23
|
+
before: {
|
|
24
|
+
[field: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
after: {
|
|
27
|
+
[field: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=rwcPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rwcPayload.d.ts","sourceRoot":"","sources":["../../../src/types/rwcPayload.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AAED,oBAAY,WAAW;IACrB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IAEpB,EAAE,EAAE,MAAM,CAAC;IAGX,aAAa,CAAC,EAAE,WAAW,CAAC;IAE5B,OAAO,CAAC,EAAE;QACR,MAAM,EAAE;YACN,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;SAC1B,CAAC;QACF,KAAK,EAAE;YACL,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;SAC1B,CAAC;KACH,CAAC;CACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "7.1.
|
|
2
|
+
"version": "7.1.4-beta.2589.0",
|
|
3
3
|
"name": "@or-sdk/idw",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
@@ -27,6 +27,5 @@
|
|
|
27
27
|
"@or-sdk/base": "^0.35.1",
|
|
28
28
|
"@or-sdk/deployer": "^1.2.12",
|
|
29
29
|
"@or-sdk/providers": "^0.2.21"
|
|
30
|
-
}
|
|
31
|
-
"gitHead": "4c3e70112b23d5a2d575fff0590c4c96f1d68ba3"
|
|
30
|
+
}
|
|
32
31
|
}
|
package/src/types/index.ts
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export enum RwcActions {
|
|
2
|
+
ADD = 'ADD',
|
|
3
|
+
EDIT = 'EDIT',
|
|
4
|
+
DELETE = 'DELETE',
|
|
5
|
+
ACTIVATE = 'ACTIVATE',
|
|
6
|
+
DEACTIVATE = 'DEACTIVATE',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum IdwEntities {
|
|
10
|
+
IDW = 'IDW',
|
|
11
|
+
Skill = 'Skill',
|
|
12
|
+
Flow = 'Flow',
|
|
13
|
+
Tag = 'Tag',
|
|
14
|
+
Channel = 'Channel',
|
|
15
|
+
Domain = 'Domain',
|
|
16
|
+
Memory = 'Memory',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type RwcActionPayload = {
|
|
20
|
+
action: RwcActions;
|
|
21
|
+
entity: IdwEntities;
|
|
22
|
+
// identifier of current entity id|slug|uid
|
|
23
|
+
id: string;
|
|
24
|
+
// determinate if some other entity involved in this action.
|
|
25
|
+
// adds skill to domain || tag skill || implements flow for skill etc...
|
|
26
|
+
relatedEntity?: IdwEntities;
|
|
27
|
+
// describe what was changed if needed.
|
|
28
|
+
changes?: {
|
|
29
|
+
before: {
|
|
30
|
+
[field: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
after: {
|
|
33
|
+
[field: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|