@or-sdk/idw 4.11.0-beta.2296.0 → 5.0.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/CHANGELOG.md +55 -0
- package/dist/cjs/dto/flowUpsert.dto.js +1 -1
- package/dist/cjs/dto/flowUpsert.dto.js.map +1 -1
- package/dist/cjs/types/common.js.map +1 -1
- package/dist/esm/dto/flowUpsert.dto.js +1 -1
- package/dist/esm/dto/flowUpsert.dto.js.map +1 -1
- package/dist/esm/types/common.js.map +1 -1
- package/dist/types/dto/flowUpsert.dto.d.ts +2 -6
- package/dist/types/dto/flowUpsert.dto.d.ts.map +1 -1
- package/dist/types/types/channel.d.ts +8 -1
- package/dist/types/types/channel.d.ts.map +1 -1
- package/dist/types/types/common.d.ts +0 -1
- package/dist/types/types/common.d.ts.map +1 -1
- package/dist/types/types/flow.d.ts +12 -8
- package/dist/types/types/flow.d.ts.map +1 -1
- package/dist/types/types/skill.d.ts +1 -1
- package/dist/types/types/skill.d.ts.map +1 -1
- package/package.json +6 -5
- package/src/dto/flowUpsert.dto.ts +1 -1
- package/src/types/channel.ts +9 -1
- package/src/types/common.ts +1 -2
- package/src/types/flow.ts +14 -8
- package/src/types/skill.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,61 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.0.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.10.8...@or-sdk/idw@5.0.0) (2024-02-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* process skills on flow action
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* process skills on flow action ([d0f7741](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/d0f77412ab024b6ae36657ae7988bedc54362cd4))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [4.10.8](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.10.7...@or-sdk/idw@4.10.8) (2024-02-02)
|
|
20
|
+
|
|
21
|
+
**Note:** Version bump only for package @or-sdk/idw
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [4.10.7](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.10.6...@or-sdk/idw@4.10.7) (2024-02-01)
|
|
28
|
+
|
|
29
|
+
**Note:** Version bump only for package @or-sdk/idw
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## [4.10.6](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.10.5...@or-sdk/idw@4.10.6) (2024-02-01)
|
|
36
|
+
|
|
37
|
+
**Note:** Version bump only for package @or-sdk/idw
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## [4.10.5](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.10.4...@or-sdk/idw@4.10.5) (2024-01-23)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* channel-icons ([bc824e7](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/bc824e7fa4c7b441ff0f70c4af6ba1b39455414d))
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## [4.10.4](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.10.3...@or-sdk/idw@4.10.4) (2024-01-23)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* **@or-sdk/idw:** Restrict skill's uid from updating ([f515a9d](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/f515a9dda47468a4dbe699988c77edf0a9eb5b84))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
6
61
|
## [4.10.3](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/idw@4.10.2...@or-sdk/idw@4.10.3) (2024-01-16)
|
|
7
62
|
|
|
8
63
|
|
|
@@ -23,7 +23,7 @@ function flowUpsertDataDto(flow) {
|
|
|
23
23
|
}
|
|
24
24
|
exports.flowUpsertDataDto = flowUpsertDataDto;
|
|
25
25
|
function flowActivateDataDto(flow) {
|
|
26
|
-
var _a = flow.data.meta, _b = _a.
|
|
26
|
+
var _a = flow.data.meta, _b = _a.skills, skills = _b === void 0 ? [] : _b, _c = _a.channel, channel = _c === void 0 ? undefined : _c;
|
|
27
27
|
return {
|
|
28
28
|
channel: channel,
|
|
29
29
|
skills: skills,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowUpsert.dto.js","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":";;;AAGA,IAAM,YAAY,GAAG,UAAC,KAAgC;IACpD,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,IAAI;;QAC3C,OAAO,MAAA,GAAG,IAAG,MAAA,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,CAAC,IAAI,KAAK,OAAO,EAArB,CAAqB,CAAC,CAAC,0CAAE,MAAM,CAAA,mCAAI,CAAC,CAAC;IACvF,CAAC,EAAE,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AAEF,SAAgB,iBAAiB,CAAC,IAAc;IACxC,IAAA,KAAsC,IAAI,CAAC,IAAI,EAA7C,WAAW,iBAA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IAAI,aAAT,CAAU;IACtD,OAAO;QACL,EAAE,IAAA;QACF,KAAK,OAAA;QACL,WAAW,aAAA;QACX,YAAY,cAAA;QACZ,WAAW,aAAA;QACX,KAAK,OAAA;QACL,SAAS,EAAE,YAAY,CAAC,KAAK,CAAC;QAC9B,IAAI,MAAA;KACL,CAAC;AACJ,CAAC;AAbD,8CAaC;AAGD,SAAgB,mBAAmB,CAAC,IAAc;IACxC,IAAA,KAA+C,IAAI,CAAC,IAAI,KAAd,EAAlC,cAAW,EAAX,MAAM,mBAAG,EAAE,KAAA,EAAE,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAE,CAAe;IACjE,OAAO;QACL,OAAO,SAAA;QACP,MAAM,QAAA;KACP,CAAC;AACJ,CAAC;AAND,kDAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":";;;AAoBA,IAAY,MAMX;AAND,WAAY,MAAM;IAChB,yBAAe,CAAA;IACf,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;IACjB,uBAAa,CAAA;IACb,2BAAiB,CAAA;AACnB,CAAC,EANW,MAAM,GAAN,cAAM,KAAN,cAAM,QAMjB;AAGD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,yCAAyB,CAAA;IACzB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;AACzB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
|
|
@@ -19,7 +19,7 @@ export function flowUpsertDataDto(flow) {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
export function flowActivateDataDto(flow) {
|
|
22
|
-
const { meta: {
|
|
22
|
+
const { meta: { skills = [], channel = undefined } } = flow.data;
|
|
23
23
|
return {
|
|
24
24
|
channel,
|
|
25
25
|
skills,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowUpsert.dto.js","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":"AAGA,MAAM,YAAY,GAAG,CAAC,KAAgC,EAAU,EAAE;IAChE,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;;QAC/C,OAAO,MAAA,GAAG,IAAG,MAAA,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,0CAAE,MAAM,CAAA,mCAAI,CAAC,CAAC;IACvF,CAAC,EAAE,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AAEF,MAAM,UAAU,iBAAiB,CAAC,IAAc;IAC9C,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;IACtD,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACtD,OAAO;QACL,EAAE;QACF,KAAK;QACL,WAAW;QACX,YAAY;QACZ,WAAW;QACX,KAAK;QACL,SAAS,EAAE,YAAY,CAAC,KAAK,CAAC;QAC9B,IAAI;KACL,CAAC;AACJ,CAAC;AAGD,MAAM,UAAU,mBAAmB,CAAC,IAAc;IAChD,MAAM,EAAE,IAAI,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"flowUpsert.dto.js","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":"AAGA,MAAM,YAAY,GAAG,CAAC,KAAgC,EAAU,EAAE;IAChE,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;;QAC/C,OAAO,MAAA,GAAG,IAAG,MAAA,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,0CAAE,MAAM,CAAA,mCAAI,CAAC,CAAC;IACvF,CAAC,EAAE,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AAEF,MAAM,UAAU,iBAAiB,CAAC,IAAc;IAC9C,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;IACtD,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACtD,OAAO;QACL,EAAE;QACF,KAAK;QACL,WAAW;QACX,YAAY;QACZ,WAAW;QACX,KAAK;QACL,SAAS,EAAE,YAAY,CAAC,KAAK,CAAC;QAC9B,IAAI;KACL,CAAC;AACJ,CAAC;AAGD,MAAM,UAAU,mBAAmB,CAAC,IAAc;IAChD,MAAM,EAAE,IAAI,EAAE,EAAE,MAAM,GAAG,EAAE,EAAE,OAAO,GAAG,SAAS,EAAE,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;IACjE,OAAO;QACL,OAAO;QACP,MAAM;KACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,MAMX;AAND,WAAY,MAAM;IAChB,yBAAe,CAAA;IACf,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;IACjB,uBAAa,CAAA;IACb,2BAAiB,CAAA;AACnB,CAAC,EANW,MAAM,KAAN,MAAM,QAMjB;AAGD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,yCAAyB,CAAA;IACzB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;AACzB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
|
|
@@ -12,11 +12,7 @@ export declare function flowUpsertDataDto(flow: FlowType): {
|
|
|
12
12
|
} & import("../types").IDWFlowMeta;
|
|
13
13
|
};
|
|
14
14
|
export declare function flowActivateDataDto(flow: FlowType): {
|
|
15
|
-
channel:
|
|
16
|
-
|
|
17
|
-
id: string;
|
|
18
|
-
url?: string | undefined;
|
|
19
|
-
} | undefined;
|
|
20
|
-
skills: string[];
|
|
15
|
+
channel: import("../types").IDWFlowMetaChannel | undefined;
|
|
16
|
+
skills: import("../types").IDWFlowMetaSkill[];
|
|
21
17
|
};
|
|
22
18
|
//# sourceMappingURL=flowUpsert.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowUpsert.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AASpC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ;;;;;;;;;;;EAa/C;AAGD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ
|
|
1
|
+
{"version":3,"file":"flowUpsert.dto.d.ts","sourceRoot":"","sources":["../../../src/dto/flowUpsert.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AASpC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ;;;;;;;;;;;EAa/C;AAGD,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ;;;EAMjD"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { EntityWithStatistic, SimpleNode } from './common';
|
|
2
2
|
import { FlowWithRelationshipStatus } from './flow';
|
|
3
|
+
interface ChannelIcons {
|
|
4
|
+
light: string;
|
|
5
|
+
dark: string;
|
|
6
|
+
}
|
|
3
7
|
export type ChannelFlowWithRelationshipStatus = FlowWithRelationshipStatus & {
|
|
4
8
|
isPrimary: boolean;
|
|
5
9
|
};
|
|
@@ -13,7 +17,9 @@ export type ChannelCreateData = Omit<Channel, '__createdAt'> & {
|
|
|
13
17
|
flowId: string;
|
|
14
18
|
};
|
|
15
19
|
export type ChannelUpdateData = Partial<Omit<ChannelCreateData, 'flowId'>>;
|
|
16
|
-
export type Channel = Omit<SimpleNode, 'description'
|
|
20
|
+
export type Channel = Omit<SimpleNode, 'description'> & {
|
|
21
|
+
icon?: ChannelIcons;
|
|
22
|
+
};
|
|
17
23
|
export type ChannelWithFlow = {
|
|
18
24
|
channel: Channel;
|
|
19
25
|
flows: ChannelFlowWithRelationshipStatus[];
|
|
@@ -24,4 +30,5 @@ export type SuggestedChannels = {
|
|
|
24
30
|
export type ChannelPrimaryFlowData = {
|
|
25
31
|
flowId: string;
|
|
26
32
|
};
|
|
33
|
+
export {};
|
|
27
34
|
//# sourceMappingURL=channel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/types/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AAEpD,MAAM,MAAM,iCAAiC,GAAG,0BAA0B,GAAG;IAAE,SAAS,EAAE,OAAO,CAAC;CAAE,CAAC;AACrG,MAAM,MAAM,YAAY,GAAG,mBAAmB,CAAC;IAAE,QAAQ,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;KAAE,EAAE,CAAC;CAAE,CAAC,CAAC;AAC1G,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,EAAE,aAAa,CAAC,GAAG;IAAE,MAAM,EAAE,MAA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,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC;CAAE,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAC9C;KAAG,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAC9C;KAAG,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC;CAAG,GAC3B,sBAAsB,GACtB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,oBAAY,MAAM;IAChB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAGD,oBAAY,YAAY;IACtB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,SAAS,cAAc;CACxB"}
|
|
@@ -7,15 +7,19 @@ export type FlowType = FlowDeployerType & {
|
|
|
7
7
|
meta: IDWFlowMeta;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
export interface IDWFlowMetaSkill {
|
|
11
|
+
id?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
meta?: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
export interface IDWFlowMetaChannel {
|
|
16
|
+
appId?: string;
|
|
17
|
+
id: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
}
|
|
10
20
|
export interface IDWFlowMeta {
|
|
11
|
-
channel?:
|
|
12
|
-
|
|
13
|
-
id: string;
|
|
14
|
-
url?: string;
|
|
15
|
-
};
|
|
16
|
-
idw: {
|
|
17
|
-
skills?: string[];
|
|
18
|
-
};
|
|
21
|
+
channel?: IDWFlowMetaChannel;
|
|
22
|
+
skills?: IDWFlowMetaSkill[];
|
|
19
23
|
}
|
|
20
24
|
export interface Flow {
|
|
21
25
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/types/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,IAAI,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAG5D,MAAM,MAAM,QAAQ,GAAG,gBAAgB,GAAG;IAAE,IAAI,EAAE;QAAE,IAAI,EAAE,WAAW,CAAC;KAAE,CAAC;CAAE,CAAC;AAE5E,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/types/flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,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,0BAA2B,SAAQ,IAAI;IACtD,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,MAAM,cAAc,GACxB,IAAI,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,EAAE,aAAa,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAAE,CAAC;AACpG,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -13,7 +13,7 @@ export type SkillCreateData = Pick<SimpleNode, 'id' | 'name' | 'description'> &
|
|
|
13
13
|
meta?: Record<string, unknown>;
|
|
14
14
|
};
|
|
15
15
|
export type SkillUpdateData = Partial<Omit<SkillCreateData, 'uid'>>;
|
|
16
|
-
export type Skill =
|
|
16
|
+
export type Skill = SimpleNode & {
|
|
17
17
|
uid: string;
|
|
18
18
|
abbreviation: string;
|
|
19
19
|
number?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../src/types/skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../src/types/skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;IAAE,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;KAAE,EAAE,CAAC;CAAE,CAAC,CAAC;AAClG,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,MAAM,GAAG,aAAa,CAAC,GAAG;IAC9E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC,CAAC;AACpE,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,0BAA0B,EAAE,CAAC;CAAE,CAAC;AACnF,MAAM,MAAM,eAAe,GAAG,MAAM,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "5.0.0",
|
|
3
3
|
"name": "@or-sdk/idw",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@or-sdk/base": "^0.
|
|
28
|
-
"@or-sdk/deployer": "^1.2.
|
|
29
|
-
"@or-sdk/providers": "^0.2.
|
|
30
|
-
}
|
|
27
|
+
"@or-sdk/base": "^0.31.0",
|
|
28
|
+
"@or-sdk/deployer": "^1.2.5",
|
|
29
|
+
"@or-sdk/providers": "^0.2.12"
|
|
30
|
+
},
|
|
31
|
+
"gitHead": "1d44e65706007400c5b4eec7c0bd29b37f26645a"
|
|
31
32
|
}
|
|
@@ -24,7 +24,7 @@ export function flowUpsertDataDto(flow: FlowType) {
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
export function flowActivateDataDto(flow: FlowType) {
|
|
27
|
-
const { meta: {
|
|
27
|
+
const { meta: { skills = [], channel = undefined } } = flow.data;
|
|
28
28
|
return {
|
|
29
29
|
channel,
|
|
30
30
|
skills,
|
package/src/types/channel.ts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { EntityWithStatistic, SimpleNode } from './common';
|
|
2
2
|
import { FlowWithRelationshipStatus } from './flow';
|
|
3
3
|
|
|
4
|
+
interface ChannelIcons {
|
|
5
|
+
light: string;
|
|
6
|
+
dark: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
4
9
|
export type ChannelFlowWithRelationshipStatus = FlowWithRelationshipStatus & { isPrimary: boolean; };
|
|
5
10
|
export type ListChannels = EntityWithStatistic<{ channels: { stepCount: number; channel: Channel; }[]; }>;
|
|
6
11
|
export type ChannelCreateData = Omit<Channel, '__createdAt'> & { flowId: string; };
|
|
7
12
|
export type ChannelUpdateData = Partial<Omit<ChannelCreateData, 'flowId'>>;
|
|
8
|
-
export type Channel = Omit<SimpleNode, 'description'
|
|
13
|
+
export type Channel = Omit<SimpleNode, 'description'> & {
|
|
14
|
+
icon?: ChannelIcons;
|
|
15
|
+
};
|
|
16
|
+
|
|
9
17
|
export type ChannelWithFlow = { channel: Channel; flows: ChannelFlowWithRelationshipStatus[]; };
|
|
10
18
|
export type SuggestedChannels = { channels: (Omit<Channel, '__createdAt'>)[]; };
|
|
11
19
|
export type ChannelPrimaryFlowData = { flowId: string; };
|
package/src/types/common.ts
CHANGED
|
@@ -7,14 +7,13 @@ export interface TotalStepsCounter {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export type EntityWithStatistic<T extends object> =
|
|
10
|
-
{ [key in keyof T]: T[key];}
|
|
10
|
+
{ [key in keyof T]: T[key]; }
|
|
11
11
|
& ActiveFlowTotalCounter
|
|
12
12
|
& TotalStepsCounter;
|
|
13
13
|
|
|
14
14
|
export interface SimpleNode {
|
|
15
15
|
id: string;
|
|
16
16
|
name: string;
|
|
17
|
-
icon?: string;
|
|
18
17
|
description?: string;
|
|
19
18
|
__createdAt: number;
|
|
20
19
|
}
|
package/src/types/flow.ts
CHANGED
|
@@ -6,15 +6,21 @@ import { Flow as FlowDeployerType } from '@or-sdk/deployer';
|
|
|
6
6
|
|
|
7
7
|
export type FlowType = FlowDeployerType & { data: { meta: IDWFlowMeta; }; };
|
|
8
8
|
|
|
9
|
+
export interface IDWFlowMetaSkill {
|
|
10
|
+
id?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
meta?: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IDWFlowMetaChannel {
|
|
16
|
+
appId?: string;
|
|
17
|
+
id: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
9
21
|
export interface IDWFlowMeta {
|
|
10
|
-
channel?:
|
|
11
|
-
|
|
12
|
-
id: string;
|
|
13
|
-
url?: string;
|
|
14
|
-
};
|
|
15
|
-
idw: {
|
|
16
|
-
skills?: string[];
|
|
17
|
-
};
|
|
22
|
+
channel?: IDWFlowMetaChannel;
|
|
23
|
+
skills?: IDWFlowMetaSkill[];
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
export interface Flow {
|
package/src/types/skill.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityWithStatistic, SimpleNode } from './common';
|
|
2
2
|
import { FlowWithRelationshipStatus } from './flow';
|
|
3
3
|
|
|
4
|
-
export type ListSkills = EntityWithStatistic<{skills: {stepCount: number; skill: Skill;}[];}>;
|
|
4
|
+
export type ListSkills = EntityWithStatistic<{ skills: { stepCount: number; skill: Skill; }[]; }>;
|
|
5
5
|
export type SkillCreateData = Pick<SimpleNode, 'id' | 'name' | 'description'> & {
|
|
6
6
|
uid?: string;
|
|
7
7
|
abbreviation?: string;
|
|
@@ -9,11 +9,11 @@ export type SkillCreateData = Pick<SimpleNode, 'id' | 'name' | 'description'> &
|
|
|
9
9
|
meta?: Record<string, unknown>;
|
|
10
10
|
};
|
|
11
11
|
export type SkillUpdateData = Partial<Omit<SkillCreateData, 'uid'>>;
|
|
12
|
-
export type Skill =
|
|
12
|
+
export type Skill = SimpleNode & {
|
|
13
13
|
uid: string;
|
|
14
14
|
abbreviation: string;
|
|
15
15
|
number?: number;
|
|
16
16
|
meta?: Record<string, unknown>;
|
|
17
17
|
};
|
|
18
|
-
export type SkillWithFlow = {skill: Skill; flows: FlowWithRelationshipStatus[];};
|
|
18
|
+
export type SkillWithFlow = { skill: Skill; flows: FlowWithRelationshipStatus[]; };
|
|
19
19
|
export type SuggestedSkills = string[];
|