@lssm/example.learning-journey-crm-onboarding 0.0.0-canary-20251217054315 → 0.0.0-canary-20251217060433
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/.turbo/turbo-build$colon$bundle.log +29 -0
- package/CHANGELOG.md +5 -33
- package/dist/contracts/index.d.ts +270 -0
- package/dist/docs/crm-onboarding.docblock.d.ts +1 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/example.d.ts +32 -0
- package/dist/handlers/demo.handlers.d.ts +24 -0
- package/dist/index.d.ts +7 -0
- package/dist/learning-journey-crm-onboarding.feature.d.ts +11 -0
- package/dist/presentations/index.d.ts +8 -0
- package/dist/track.d.ts +7 -0
- package/package.json +7 -7
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
[0m[2m[35m$[0m [2m[1mtsdown[0m
|
|
3
|
+
[34mℹ[39m tsdown [2mv0.17.4[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
4
|
+
[34mℹ[39m config file: [4m/Users/tboutron/Documents/clients/lssm/monorepo-lssm/packages/contractspec/packages/examples/learning-journey-crm-onboarding/tsdown.config.js[24m (unrun)
|
|
5
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/learning-journey-crm-onboarding.feature.ts, src/track.ts, src/contracts/index.ts, src/docs/crm-onboarding.docblock.ts, src/docs/index.ts, src/handlers/demo.handlers.ts, src/presentations/index.ts[39m
|
|
6
|
+
[34mℹ[39m target: [34mesnext[39m
|
|
7
|
+
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
8
|
+
[34mℹ[39m Build start
|
|
9
|
+
[34mℹ[39m Cleaning 22 files
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mcontracts/index.js[22m [2m2.79 kB[22m [2m│ gzip: 0.92 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mtrack.js[22m [2m1.94 kB[22m [2m│ gzip: 0.69 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/crm-onboarding.docblock.js[22m [2m1.27 kB[22m [2m│ gzip: 0.67 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.05 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mlearning-journey-crm-onboarding.feature.js[22m [2m1.01 kB[22m [2m│ gzip: 0.41 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mpresentations/index.js[22m [2m0.77 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.55 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mhandlers/demo.handlers.js[22m [2m0.41 kB[22m [2m│ gzip: 0.26 kB[22m
|
|
18
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
19
|
+
[34mℹ[39m [2mdist/[22m[32m[1mcontracts/index.d.ts[22m[39m [2m8.12 kB[22m [2m│ gzip: 0.89 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m0.99 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.97 kB[22m [2m│ gzip: 0.29 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mhandlers/demo.handlers.d.ts[22m[39m [2m0.91 kB[22m [2m│ gzip: 0.38 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mpresentations/index.d.ts[22m[39m [2m0.43 kB[22m [2m│ gzip: 0.19 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22m[32m[1mlearning-journey-crm-onboarding.feature.d.ts[22m[39m [2m0.38 kB[22m [2m│ gzip: 0.24 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtrack.d.ts[22m[39m [2m0.29 kB[22m [2m│ gzip: 0.17 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/crm-onboarding.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
27
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
28
|
+
[34mℹ[39m 18 files, total: 21.94 kB
|
|
29
|
+
[32m✔[39m Build complete in [32m4869ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lssm/example.learning-journey-crm-onboarding
|
|
2
2
|
|
|
3
|
-
## 0.0.0-canary-
|
|
3
|
+
## 0.0.0-canary-20251217060433
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -9,35 +9,7 @@
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
11
|
- Updated dependencies [66a5dfd]
|
|
12
|
-
- @lssm/example.crm-pipeline@0.0.0-canary-
|
|
13
|
-
- @lssm/lib.contracts@0.0.0-canary-
|
|
14
|
-
- @lssm/lib.schema@0.0.0-canary-
|
|
15
|
-
- @lssm/module.learning-journey@0.0.0-canary-
|
|
16
|
-
|
|
17
|
-
## 1.42.0
|
|
18
|
-
|
|
19
|
-
### Minor Changes
|
|
20
|
-
|
|
21
|
-
- 66a5dfd: initial release
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- Updated dependencies [66a5dfd]
|
|
26
|
-
- @lssm/example.crm-pipeline@1.42.0
|
|
27
|
-
- @lssm/lib.contracts@1.42.0
|
|
28
|
-
- @lssm/lib.schema@1.42.0
|
|
29
|
-
- @lssm/module.learning-journey@1.42.0
|
|
30
|
-
|
|
31
|
-
## 0.0.0-canary-20251217053014
|
|
32
|
-
|
|
33
|
-
### Minor Changes
|
|
34
|
-
|
|
35
|
-
- 66a5dfd: initial release
|
|
36
|
-
|
|
37
|
-
### Patch Changes
|
|
38
|
-
|
|
39
|
-
- Updated dependencies [66a5dfd]
|
|
40
|
-
- @lssm/example.crm-pipeline@0.0.0-canary-20251217053014
|
|
41
|
-
- @lssm/lib.contracts@0.0.0-canary-20251217053014
|
|
42
|
-
- @lssm/lib.schema@0.0.0-canary-20251217053014
|
|
43
|
-
- @lssm/module.learning-journey@0.0.0-canary-20251217053014
|
|
12
|
+
- @lssm/example.crm-pipeline@0.0.0-canary-20251217060433
|
|
13
|
+
- @lssm/lib.contracts@0.0.0-canary-20251217060433
|
|
14
|
+
- @lssm/lib.schema@0.0.0-canary-20251217060433
|
|
15
|
+
- @lssm/module.learning-journey@0.0.0-canary-20251217060433
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
|
+
import * as _lssm_module_learning_journey_track_spec0 from "@lssm/module.learning-journey/track-spec";
|
|
4
|
+
|
|
5
|
+
//#region src/contracts/index.d.ts
|
|
6
|
+
declare const CrmOnboardingTrackModel: _lssm_lib_schema0.SchemaModel<{
|
|
7
|
+
id: {
|
|
8
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
9
|
+
isOptional: false;
|
|
10
|
+
};
|
|
11
|
+
name: {
|
|
12
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
13
|
+
isOptional: false;
|
|
14
|
+
};
|
|
15
|
+
description: {
|
|
16
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
17
|
+
isOptional: true;
|
|
18
|
+
};
|
|
19
|
+
totalXp: {
|
|
20
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
21
|
+
isOptional: true;
|
|
22
|
+
};
|
|
23
|
+
completionXpBonus: {
|
|
24
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
25
|
+
isOptional: true;
|
|
26
|
+
};
|
|
27
|
+
completionBadgeKey: {
|
|
28
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
29
|
+
isOptional: true;
|
|
30
|
+
};
|
|
31
|
+
streakHoursWindow: {
|
|
32
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
33
|
+
isOptional: true;
|
|
34
|
+
};
|
|
35
|
+
streakBonusXp: {
|
|
36
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
37
|
+
isOptional: true;
|
|
38
|
+
};
|
|
39
|
+
steps: {
|
|
40
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
41
|
+
id: {
|
|
42
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
43
|
+
isOptional: false;
|
|
44
|
+
};
|
|
45
|
+
title: {
|
|
46
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
47
|
+
isOptional: false;
|
|
48
|
+
};
|
|
49
|
+
description: {
|
|
50
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
51
|
+
isOptional: true;
|
|
52
|
+
};
|
|
53
|
+
completionEvent: {
|
|
54
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
55
|
+
isOptional: false;
|
|
56
|
+
};
|
|
57
|
+
sourceModule: {
|
|
58
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
59
|
+
isOptional: true;
|
|
60
|
+
};
|
|
61
|
+
xpReward: {
|
|
62
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
63
|
+
isOptional: true;
|
|
64
|
+
};
|
|
65
|
+
order: {
|
|
66
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
67
|
+
isOptional: true;
|
|
68
|
+
};
|
|
69
|
+
}>;
|
|
70
|
+
isArray: true;
|
|
71
|
+
isOptional: false;
|
|
72
|
+
};
|
|
73
|
+
}>;
|
|
74
|
+
declare const GetCrmOnboardingTrack: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{}>, _lssm_lib_schema0.SchemaModel<{
|
|
75
|
+
track: {
|
|
76
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
77
|
+
id: {
|
|
78
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
79
|
+
isOptional: false;
|
|
80
|
+
};
|
|
81
|
+
name: {
|
|
82
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
83
|
+
isOptional: false;
|
|
84
|
+
};
|
|
85
|
+
description: {
|
|
86
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
87
|
+
isOptional: true;
|
|
88
|
+
};
|
|
89
|
+
totalXp: {
|
|
90
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
91
|
+
isOptional: true;
|
|
92
|
+
};
|
|
93
|
+
completionXpBonus: {
|
|
94
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
95
|
+
isOptional: true;
|
|
96
|
+
};
|
|
97
|
+
completionBadgeKey: {
|
|
98
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
99
|
+
isOptional: true;
|
|
100
|
+
};
|
|
101
|
+
streakHoursWindow: {
|
|
102
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
103
|
+
isOptional: true;
|
|
104
|
+
};
|
|
105
|
+
streakBonusXp: {
|
|
106
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
107
|
+
isOptional: true;
|
|
108
|
+
};
|
|
109
|
+
steps: {
|
|
110
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
111
|
+
id: {
|
|
112
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
113
|
+
isOptional: false;
|
|
114
|
+
};
|
|
115
|
+
title: {
|
|
116
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
117
|
+
isOptional: false;
|
|
118
|
+
};
|
|
119
|
+
description: {
|
|
120
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
121
|
+
isOptional: true;
|
|
122
|
+
};
|
|
123
|
+
completionEvent: {
|
|
124
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
125
|
+
isOptional: false;
|
|
126
|
+
};
|
|
127
|
+
sourceModule: {
|
|
128
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
129
|
+
isOptional: true;
|
|
130
|
+
};
|
|
131
|
+
xpReward: {
|
|
132
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
133
|
+
isOptional: true;
|
|
134
|
+
};
|
|
135
|
+
order: {
|
|
136
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
137
|
+
isOptional: true;
|
|
138
|
+
};
|
|
139
|
+
}>;
|
|
140
|
+
isArray: true;
|
|
141
|
+
isOptional: false;
|
|
142
|
+
};
|
|
143
|
+
}>;
|
|
144
|
+
isOptional: false;
|
|
145
|
+
};
|
|
146
|
+
}>, undefined>;
|
|
147
|
+
declare const RecordCrmOnboardingEvent: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
148
|
+
learnerId: {
|
|
149
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
150
|
+
isOptional: false;
|
|
151
|
+
};
|
|
152
|
+
eventName: {
|
|
153
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
154
|
+
isOptional: false;
|
|
155
|
+
};
|
|
156
|
+
payload: {
|
|
157
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
158
|
+
isOptional: true;
|
|
159
|
+
};
|
|
160
|
+
occurredAt: {
|
|
161
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
162
|
+
isOptional: true;
|
|
163
|
+
};
|
|
164
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
165
|
+
success: {
|
|
166
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
167
|
+
isOptional: false;
|
|
168
|
+
};
|
|
169
|
+
}>, undefined>;
|
|
170
|
+
declare const crmOnboardingContracts: {
|
|
171
|
+
GetCrmOnboardingTrack: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{}>, _lssm_lib_schema0.SchemaModel<{
|
|
172
|
+
track: {
|
|
173
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
174
|
+
id: {
|
|
175
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
176
|
+
isOptional: false;
|
|
177
|
+
};
|
|
178
|
+
name: {
|
|
179
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
180
|
+
isOptional: false;
|
|
181
|
+
};
|
|
182
|
+
description: {
|
|
183
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
184
|
+
isOptional: true;
|
|
185
|
+
};
|
|
186
|
+
totalXp: {
|
|
187
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
188
|
+
isOptional: true;
|
|
189
|
+
};
|
|
190
|
+
completionXpBonus: {
|
|
191
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
192
|
+
isOptional: true;
|
|
193
|
+
};
|
|
194
|
+
completionBadgeKey: {
|
|
195
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
196
|
+
isOptional: true;
|
|
197
|
+
};
|
|
198
|
+
streakHoursWindow: {
|
|
199
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
200
|
+
isOptional: true;
|
|
201
|
+
};
|
|
202
|
+
streakBonusXp: {
|
|
203
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
204
|
+
isOptional: true;
|
|
205
|
+
};
|
|
206
|
+
steps: {
|
|
207
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
208
|
+
id: {
|
|
209
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
210
|
+
isOptional: false;
|
|
211
|
+
};
|
|
212
|
+
title: {
|
|
213
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
214
|
+
isOptional: false;
|
|
215
|
+
};
|
|
216
|
+
description: {
|
|
217
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
218
|
+
isOptional: true;
|
|
219
|
+
};
|
|
220
|
+
completionEvent: {
|
|
221
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
222
|
+
isOptional: false;
|
|
223
|
+
};
|
|
224
|
+
sourceModule: {
|
|
225
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
226
|
+
isOptional: true;
|
|
227
|
+
};
|
|
228
|
+
xpReward: {
|
|
229
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
230
|
+
isOptional: true;
|
|
231
|
+
};
|
|
232
|
+
order: {
|
|
233
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
234
|
+
isOptional: true;
|
|
235
|
+
};
|
|
236
|
+
}>;
|
|
237
|
+
isArray: true;
|
|
238
|
+
isOptional: false;
|
|
239
|
+
};
|
|
240
|
+
}>;
|
|
241
|
+
isOptional: false;
|
|
242
|
+
};
|
|
243
|
+
}>, undefined>;
|
|
244
|
+
RecordCrmOnboardingEvent: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
245
|
+
learnerId: {
|
|
246
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
247
|
+
isOptional: false;
|
|
248
|
+
};
|
|
249
|
+
eventName: {
|
|
250
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
251
|
+
isOptional: false;
|
|
252
|
+
};
|
|
253
|
+
payload: {
|
|
254
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
255
|
+
isOptional: true;
|
|
256
|
+
};
|
|
257
|
+
occurredAt: {
|
|
258
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
259
|
+
isOptional: true;
|
|
260
|
+
};
|
|
261
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
262
|
+
success: {
|
|
263
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
264
|
+
isOptional: false;
|
|
265
|
+
};
|
|
266
|
+
}>, undefined>;
|
|
267
|
+
track: _lssm_module_learning_journey_track_spec0.LearningJourneyTrackSpec;
|
|
268
|
+
};
|
|
269
|
+
//#endregion
|
|
270
|
+
export { CrmOnboardingTrackModel, GetCrmOnboardingTrack, RecordCrmOnboardingEvent, crmOnboardingContracts };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//#region src/example.d.ts
|
|
2
|
+
declare const example: {
|
|
3
|
+
readonly id: "learning-journey-crm-onboarding";
|
|
4
|
+
readonly title: "Learning Journey — CRM First Win";
|
|
5
|
+
readonly summary: "Onboarding track for CRM Pipeline driving users from empty CRM to first closed-won deal.";
|
|
6
|
+
readonly tags: readonly ["learning", "crm", "onboarding"];
|
|
7
|
+
readonly kind: "template";
|
|
8
|
+
readonly visibility: "public";
|
|
9
|
+
readonly docs: {
|
|
10
|
+
readonly rootDocId: "docs.learning-journey.crm-onboarding";
|
|
11
|
+
};
|
|
12
|
+
readonly entrypoints: {
|
|
13
|
+
readonly packageName: "@lssm/example.learning-journey-crm-onboarding";
|
|
14
|
+
readonly docs: "./docs";
|
|
15
|
+
};
|
|
16
|
+
readonly surfaces: {
|
|
17
|
+
readonly templates: true;
|
|
18
|
+
readonly sandbox: {
|
|
19
|
+
readonly enabled: true;
|
|
20
|
+
readonly modes: readonly ["playground", "markdown"];
|
|
21
|
+
};
|
|
22
|
+
readonly studio: {
|
|
23
|
+
readonly enabled: true;
|
|
24
|
+
readonly installable: true;
|
|
25
|
+
};
|
|
26
|
+
readonly mcp: {
|
|
27
|
+
readonly enabled: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { example as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/handlers/demo.handlers.d.ts
|
|
2
|
+
interface EmitParams {
|
|
3
|
+
learnerId: string;
|
|
4
|
+
occurredAt?: Date;
|
|
5
|
+
payload?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
interface LearningJourneyEvent {
|
|
8
|
+
learnerId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
occurredAt: Date;
|
|
11
|
+
trackId: string;
|
|
12
|
+
payload?: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
type RecordEvent = (event: LearningJourneyEvent) => unknown;
|
|
15
|
+
declare const crmOnboardingEvents: readonly ["pipeline.created", "contact.created", "deal.created", "deal.moved", "deal.won", "task.completed"];
|
|
16
|
+
type CrmEvent = (typeof crmOnboardingEvents)[number];
|
|
17
|
+
declare const emitCrmOnboardingEvent: (eventName: CrmEvent, {
|
|
18
|
+
learnerId,
|
|
19
|
+
occurredAt,
|
|
20
|
+
payload
|
|
21
|
+
}: EmitParams, record?: RecordEvent) => unknown;
|
|
22
|
+
declare const emitAllCrmOnboardingEvents: (params: EmitParams, record?: RecordEvent) => unknown[];
|
|
23
|
+
//#endregion
|
|
24
|
+
export { CrmEvent, crmOnboardingEvents, emitAllCrmOnboardingEvents, emitCrmOnboardingEvent };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CrmOnboardingTrackModel, GetCrmOnboardingTrack, RecordCrmOnboardingEvent, crmOnboardingContracts } from "./contracts/index.js";
|
|
2
|
+
import example from "./example.js";
|
|
3
|
+
import { CrmEvent, crmOnboardingEvents, emitAllCrmOnboardingEvents, emitCrmOnboardingEvent } from "./handlers/demo.handlers.js";
|
|
4
|
+
import { crmFirstWinTrack, crmLearningTracks } from "./track.js";
|
|
5
|
+
import { CrmOnboardingTrackPresentation, CrmOnboardingWidgetPresentation, crmOnboardingPresentations } from "./presentations/index.js";
|
|
6
|
+
import { LearningJourneyCrmOnboardingFeature } from "./learning-journey-crm-onboarding.feature.js";
|
|
7
|
+
export { CrmEvent, CrmOnboardingTrackModel, CrmOnboardingTrackPresentation, CrmOnboardingWidgetPresentation, GetCrmOnboardingTrack, LearningJourneyCrmOnboardingFeature, RecordCrmOnboardingEvent, crmFirstWinTrack, crmLearningTracks, crmOnboardingContracts, crmOnboardingEvents, crmOnboardingPresentations, emitAllCrmOnboardingEvents, emitCrmOnboardingEvent, example };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FeatureModuleSpec } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/learning-journey-crm-onboarding.feature.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Learning Journey CRM Onboarding feature module that bundles
|
|
7
|
+
* CRM-specific onboarding track operations and presentations.
|
|
8
|
+
*/
|
|
9
|
+
declare const LearningJourneyCrmOnboardingFeature: FeatureModuleSpec;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { LearningJourneyCrmOnboardingFeature };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/presentations/index.d.ts
|
|
4
|
+
declare const CrmOnboardingTrackPresentation: PresentationDescriptorV2;
|
|
5
|
+
declare const CrmOnboardingWidgetPresentation: PresentationDescriptorV2;
|
|
6
|
+
declare const crmOnboardingPresentations: PresentationDescriptorV2[];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { CrmOnboardingTrackPresentation, CrmOnboardingWidgetPresentation, crmOnboardingPresentations };
|
package/dist/track.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LearningJourneyTrackSpec } from "@lssm/module.learning-journey/track-spec";
|
|
2
|
+
|
|
3
|
+
//#region src/track.d.ts
|
|
4
|
+
declare const crmFirstWinTrack: LearningJourneyTrackSpec;
|
|
5
|
+
declare const crmLearningTracks: LearningJourneyTrackSpec[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { crmFirstWinTrack, crmLearningTracks };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.learning-journey-crm-onboarding",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251217060433",
|
|
4
4
|
"description": "Learning journey track that onboards users to the CRM pipeline example.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"lint:check": "eslint src"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
34
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
35
|
-
"@lssm/module.learning-journey": "0.0.0-canary-
|
|
36
|
-
"@lssm/example.crm-pipeline": "0.0.0-canary-
|
|
33
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251217060433",
|
|
34
|
+
"@lssm/lib.schema": "0.0.0-canary-20251217060433",
|
|
35
|
+
"@lssm/module.learning-journey": "0.0.0-canary-20251217060433",
|
|
36
|
+
"@lssm/example.crm-pipeline": "0.0.0-canary-20251217060433"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
40
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
39
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251217060433",
|
|
40
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251217060433",
|
|
41
41
|
"tsdown": "^0.17.4",
|
|
42
42
|
"typescript": "^5.9.3"
|
|
43
43
|
},
|