@lssm/example.learning-journey-platform-tour 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/.turbo/turbo-build.log +1 -12
- package/CHANGELOG.md +4 -30
- package/dist/contracts/index.d.ts +270 -0
- package/dist/docs/index.d.ts +1 -0
- package/dist/docs/platform-tour.docblock.d.ts +1 -0
- package/dist/example.d.ts +34 -0
- package/dist/handlers/demo.handlers.d.ts +24 -0
- package/dist/index.d.ts +7 -0
- package/dist/learning-journey-platform-tour.feature.d.ts +11 -0
- package/dist/presentations/index.d.ts +8 -0
- package/dist/track.d.ts +7 -0
- package/package.json +6 -6
|
@@ -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-platform-tour/tsdown.config.js[24m (unrun)
|
|
5
|
+
[34mℹ[39m entry: [34msrc/example.ts, src/index.ts, src/learning-journey-platform-tour.feature.ts, src/track.ts, src/contracts/index.ts, src/docs/index.ts, src/docs/platform-tour.docblock.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.81 kB[22m [2m│ gzip: 0.91 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mtrack.js[22m [2m2.18 kB[22m [2m│ gzip: 0.80 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mdocs/platform-tour.docblock.js[22m [2m1.38 kB[22m [2m│ gzip: 0.73 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.06 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[1mlearning-journey-platform-tour.feature.js[22m [2m1.02 kB[22m [2m│ gzip: 0.40 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22m[1mpresentations/index.js[22m [2m0.78 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.63 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
17
|
+
[34mℹ[39m [2mdist/[22m[1mhandlers/demo.handlers.js[22m [2m0.45 kB[22m [2m│ gzip: 0.30 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.11 kB[22m [2m│ gzip: 0.89 kB[22m
|
|
20
|
+
[34mℹ[39m [2mdist/[22m[32m[1mexample.d.ts[22m[39m [2m1.09 kB[22m [2m│ gzip: 0.42 kB[22m
|
|
21
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m0.99 kB[22m [2m│ gzip: 0.30 kB[22m
|
|
22
|
+
[34mℹ[39m [2mdist/[22m[32m[1mhandlers/demo.handlers.d.ts[22m[39m [2m0.95 kB[22m [2m│ gzip: 0.41 kB[22m
|
|
23
|
+
[34mℹ[39m [2mdist/[22m[32m[1mpresentations/index.d.ts[22m[39m [2m0.43 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
24
|
+
[34mℹ[39m [2mdist/[22m[32m[1mlearning-journey-platform-tour.feature.d.ts[22m[39m [2m0.38 kB[22m [2m│ gzip: 0.23 kB[22m
|
|
25
|
+
[34mℹ[39m [2mdist/[22m[32m[1mtrack.d.ts[22m[39m [2m0.32 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
26
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/index.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
27
|
+
[34mℹ[39m [2mdist/[22m[32m[1mdocs/platform-tour.docblock.d.ts[22m[39m [2m0.01 kB[22m [2m│ gzip: 0.03 kB[22m
|
|
28
|
+
[34mℹ[39m 18 files, total: 22.63 kB
|
|
29
|
+
[32m✔[39m Build complete in [32m8084ms[39m
|
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,15 +8,4 @@
|
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
10
|
[34mℹ[39m Cleaning 13 files
|
|
11
|
-
[
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[1mtrack.js[22m [2m2.18 kB[22m [2m│ gzip: 0.80 kB[22m
|
|
13
|
-
[34mℹ[39m [2mdist/[22m[1mdocs/platform-tour.docblock.js[22m [2m1.38 kB[22m [2m│ gzip: 0.73 kB[22m
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.06 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
15
|
-
[34mℹ[39m [2mdist/[22m[1mlearning-journey-platform-tour.feature.js[22m [2m1.02 kB[22m [2m│ gzip: 0.40 kB[22m
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[1mpresentations/index.js[22m [2m0.78 kB[22m [2m│ gzip: 0.37 kB[22m
|
|
17
|
-
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.63 kB[22m [2m│ gzip: 0.35 kB[22m
|
|
18
|
-
[34mℹ[39m [2mdist/[22m[1mhandlers/demo.handlers.js[22m [2m0.45 kB[22m [2m│ gzip: 0.30 kB[22m
|
|
19
|
-
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
20
|
-
[34mℹ[39m 9 files, total: 10.34 kB
|
|
21
|
-
[32m✔[39m Build complete in [32m45ms[39m
|
|
22
|
-
[0m[2m[35m$[0m [2m[1mtsc --noEmit[0m
|
|
11
|
+
[0m[31merror[0m[2m:[0m script [1m"build"[0m was terminated by signal SIGHUP [2m(Terminal hung up)[0m[0m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lssm/example.learning-journey-platform-tour
|
|
2
2
|
|
|
3
|
-
## 0.0.0-canary-
|
|
3
|
+
## 0.0.0-canary-20251217060433
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -9,32 +9,6 @@
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
11
|
- Updated dependencies [66a5dfd]
|
|
12
|
-
- @lssm/lib.contracts@0.0.0-canary-
|
|
13
|
-
- @lssm/lib.schema@0.0.0-canary-
|
|
14
|
-
- @lssm/module.learning-journey@0.0.0-canary-
|
|
15
|
-
|
|
16
|
-
## 1.42.0
|
|
17
|
-
|
|
18
|
-
### Minor Changes
|
|
19
|
-
|
|
20
|
-
- 66a5dfd: initial release
|
|
21
|
-
|
|
22
|
-
### Patch Changes
|
|
23
|
-
|
|
24
|
-
- Updated dependencies [66a5dfd]
|
|
25
|
-
- @lssm/lib.contracts@1.42.0
|
|
26
|
-
- @lssm/lib.schema@1.42.0
|
|
27
|
-
- @lssm/module.learning-journey@1.42.0
|
|
28
|
-
|
|
29
|
-
## 0.0.0-canary-20251217053014
|
|
30
|
-
|
|
31
|
-
### Minor Changes
|
|
32
|
-
|
|
33
|
-
- 66a5dfd: initial release
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- Updated dependencies [66a5dfd]
|
|
38
|
-
- @lssm/lib.contracts@0.0.0-canary-20251217053014
|
|
39
|
-
- @lssm/lib.schema@0.0.0-canary-20251217053014
|
|
40
|
-
- @lssm/module.learning-journey@0.0.0-canary-20251217053014
|
|
12
|
+
- @lssm/lib.contracts@0.0.0-canary-20251217060433
|
|
13
|
+
- @lssm/lib.schema@0.0.0-canary-20251217060433
|
|
14
|
+
- @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 PlatformTourTrackModel: _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 GetPlatformTourTrack: _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 RecordPlatformTourEvent: _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 platformTourContracts: {
|
|
171
|
+
GetPlatformTourTrack: _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
|
+
RecordPlatformTourEvent: _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 { GetPlatformTourTrack, PlatformTourTrackModel, RecordPlatformTourEvent, platformTourContracts };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/example.d.ts
|
|
2
|
+
declare const example: {
|
|
3
|
+
readonly id: "learning-journey-platform-tour";
|
|
4
|
+
readonly title: "Learning Journey — Platform Tour";
|
|
5
|
+
readonly summary: "Learning journey track + contracts + presentations for a platform tour.";
|
|
6
|
+
readonly tags: readonly ["learning", "journey", "platform-tour"];
|
|
7
|
+
readonly kind: "template";
|
|
8
|
+
readonly visibility: "public";
|
|
9
|
+
readonly docs: {
|
|
10
|
+
readonly rootDocId: "docs.examples.platform-tour";
|
|
11
|
+
readonly goalDocId: "docs.examples.platform-tour.goal";
|
|
12
|
+
readonly usageDocId: "docs.examples.platform-tour.usage";
|
|
13
|
+
};
|
|
14
|
+
readonly entrypoints: {
|
|
15
|
+
readonly packageName: "@lssm/example.learning-journey-platform-tour";
|
|
16
|
+
readonly docs: "./docs";
|
|
17
|
+
};
|
|
18
|
+
readonly surfaces: {
|
|
19
|
+
readonly templates: true;
|
|
20
|
+
readonly sandbox: {
|
|
21
|
+
readonly enabled: true;
|
|
22
|
+
readonly modes: readonly ["markdown", "playground"];
|
|
23
|
+
};
|
|
24
|
+
readonly studio: {
|
|
25
|
+
readonly enabled: true;
|
|
26
|
+
readonly installable: true;
|
|
27
|
+
};
|
|
28
|
+
readonly mcp: {
|
|
29
|
+
readonly enabled: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
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 platformTourEvents: readonly ["org.member.added", "audit_log.created", "notification.sent", "job.completed", "flag.toggled", "attachment.attached", "usage.recorded"];
|
|
16
|
+
type PlatformEvent = (typeof platformTourEvents)[number];
|
|
17
|
+
declare const emitPlatformTourEvent: (eventName: PlatformEvent, {
|
|
18
|
+
learnerId,
|
|
19
|
+
occurredAt,
|
|
20
|
+
payload
|
|
21
|
+
}: EmitParams, record?: RecordEvent) => unknown;
|
|
22
|
+
declare const emitAllPlatformTourEvents: (params: EmitParams, record?: RecordEvent) => unknown[];
|
|
23
|
+
//#endregion
|
|
24
|
+
export { PlatformEvent, emitAllPlatformTourEvents, emitPlatformTourEvent, platformTourEvents };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetPlatformTourTrack, PlatformTourTrackModel, RecordPlatformTourEvent, platformTourContracts } from "./contracts/index.js";
|
|
2
|
+
import example from "./example.js";
|
|
3
|
+
import { PlatformEvent, emitAllPlatformTourEvents, emitPlatformTourEvent, platformTourEvents } from "./handlers/demo.handlers.js";
|
|
4
|
+
import { platformLearningTracks, platformPrimitivesTourTrack } from "./track.js";
|
|
5
|
+
import { PlatformTourTrackPresentation, PlatformTourWidgetPresentation, platformTourPresentations } from "./presentations/index.js";
|
|
6
|
+
import { LearningJourneyPlatformTourFeature } from "./learning-journey-platform-tour.feature.js";
|
|
7
|
+
export { GetPlatformTourTrack, LearningJourneyPlatformTourFeature, PlatformEvent, PlatformTourTrackModel, PlatformTourTrackPresentation, PlatformTourWidgetPresentation, RecordPlatformTourEvent, emitAllPlatformTourEvents, emitPlatformTourEvent, example, platformLearningTracks, platformPrimitivesTourTrack, platformTourContracts, platformTourEvents, platformTourPresentations };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FeatureModuleSpec } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/learning-journey-platform-tour.feature.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Learning Journey Platform Tour feature module that bundles
|
|
7
|
+
* platform-specific tour track operations and presentations.
|
|
8
|
+
*/
|
|
9
|
+
declare const LearningJourneyPlatformTourFeature: FeatureModuleSpec;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { LearningJourneyPlatformTourFeature };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
|
|
2
|
+
|
|
3
|
+
//#region src/presentations/index.d.ts
|
|
4
|
+
declare const PlatformTourTrackPresentation: PresentationDescriptorV2;
|
|
5
|
+
declare const PlatformTourWidgetPresentation: PresentationDescriptorV2;
|
|
6
|
+
declare const platformTourPresentations: PresentationDescriptorV2[];
|
|
7
|
+
//#endregion
|
|
8
|
+
export { PlatformTourTrackPresentation, PlatformTourWidgetPresentation, platformTourPresentations };
|
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 platformPrimitivesTourTrack: LearningJourneyTrackSpec;
|
|
5
|
+
declare const platformLearningTracks: LearningJourneyTrackSpec[];
|
|
6
|
+
//#endregion
|
|
7
|
+
export { platformLearningTracks, platformPrimitivesTourTrack };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.learning-journey-platform-tour",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251217060433",
|
|
4
4
|
"description": "Learning journey track covering ContractSpec platform primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,13 +30,13 @@
|
|
|
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-
|
|
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
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
39
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
38
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251217060433",
|
|
39
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251217060433",
|
|
40
40
|
"tsdown": "^0.17.4",
|
|
41
41
|
"typescript": "^5.9.3"
|
|
42
42
|
},
|