@nakafa/aksara-contracts 4.1.3 → 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.
@@ -2,10 +2,11 @@ import { Schema } from "effect";
2
2
  /** Bounded authored revision shared by one catalog source hierarchy. */
3
3
  export declare const CatalogRevisionSchema: Schema.Trimmed;
4
4
  /**
5
- * Navigation role of one track: one exam `year`, one `subject`, or the sets of
6
- * one `institution`, such as a Studienkolleg.
5
+ * The one axis by which an exam divides its tracks into groups: the `year` of
6
+ * a sitting (SNBT), the school `grade` a test is set for (TKA), or the
7
+ * `institution` that sets it, such as a Studienkolleg.
7
8
  */
8
- export declare const TrackKindSchema: Schema.Literals<readonly ["institution", "subject", "year"]>;
9
+ export declare const GroupAxisSchema: Schema.Literals<readonly ["grade", "institution", "year"]>;
9
10
  /**
10
11
  * Public route behavior of one section: `visible` sections have a page of
11
12
  * their own, and an `internal-entry` section is entered from its set.
@@ -30,7 +31,7 @@ export declare const CatalogCountrySchema: Schema.Struct<{
30
31
  readonly order: Schema.Int;
31
32
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
32
33
  }>;
33
- /** One localized exam of a country. */
34
+ /** One localized exam of a country, and the axis that divides its tracks into groups. */
34
35
  export declare const CatalogExamSchema: Schema.Struct<{
35
36
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
36
37
  readonly description: Schema.optionalKey<Schema.String>;
@@ -45,11 +46,37 @@ export declare const CatalogExamSchema: Schema.Struct<{
45
46
  readonly title: Schema.String;
46
47
  readonly countryKey: Schema.String;
47
48
  readonly examKey: Schema.String;
49
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
48
50
  readonly kind: Schema.Literal<"exam">;
49
51
  readonly order: Schema.Int;
50
52
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
51
53
  }>;
52
- /** One localized track of an exam: a year, a subject, or an institution. */
54
+ /** One localized group of an exam on its axis: a year, a grade, or an institution. */
55
+ export declare const CatalogGroupSchema: Schema.Struct<{
56
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
57
+ readonly description: Schema.optionalKey<Schema.String>;
58
+ readonly graph: Schema.Struct<{
59
+ readonly alignmentId: Schema.String;
60
+ readonly assetId: Schema.String;
61
+ readonly conceptId: Schema.String;
62
+ readonly learningObjectId: Schema.String;
63
+ readonly lensId: Schema.String;
64
+ }>;
65
+ readonly sourceRevision: Schema.Trimmed;
66
+ readonly title: Schema.String;
67
+ readonly countryKey: Schema.String;
68
+ readonly examKey: Schema.String;
69
+ readonly groupKey: Schema.String;
70
+ readonly kind: Schema.Literal<"group">;
71
+ readonly order: Schema.Int;
72
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
73
+ }>;
74
+ /**
75
+ * One localized track of an exam, in the group that holds it: one paper
76
+ * format with its sets, such as a subject or a year's test. A track key is
77
+ * unique within its exam, so the rows of a track and of its sets name the
78
+ * track without its group.
79
+ */
53
80
  export declare const CatalogTrackSchema: Schema.Struct<{
54
81
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
55
82
  readonly description: Schema.optionalKey<Schema.String>;
@@ -65,10 +92,10 @@ export declare const CatalogTrackSchema: Schema.Struct<{
65
92
  readonly countryKey: Schema.String;
66
93
  readonly examKey: Schema.String;
67
94
  readonly trackKey: Schema.String;
95
+ readonly groupKey: Schema.String;
68
96
  readonly kind: Schema.Literal<"track">;
69
97
  readonly order: Schema.Int;
70
98
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
71
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
72
99
  }>;
73
100
  /**
74
101
  * One localized set of a track, and the paper a learner sits for it, by
@@ -159,9 +186,28 @@ export declare const CatalogRowSchema: Schema.Union<readonly [Schema.Struct<{
159
186
  readonly title: Schema.String;
160
187
  readonly countryKey: Schema.String;
161
188
  readonly examKey: Schema.String;
189
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
162
190
  readonly kind: Schema.Literal<"exam">;
163
191
  readonly order: Schema.Int;
164
192
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
193
+ }>, Schema.Struct<{
194
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
195
+ readonly description: Schema.optionalKey<Schema.String>;
196
+ readonly graph: Schema.Struct<{
197
+ readonly alignmentId: Schema.String;
198
+ readonly assetId: Schema.String;
199
+ readonly conceptId: Schema.String;
200
+ readonly learningObjectId: Schema.String;
201
+ readonly lensId: Schema.String;
202
+ }>;
203
+ readonly sourceRevision: Schema.Trimmed;
204
+ readonly title: Schema.String;
205
+ readonly countryKey: Schema.String;
206
+ readonly examKey: Schema.String;
207
+ readonly groupKey: Schema.String;
208
+ readonly kind: Schema.Literal<"group">;
209
+ readonly order: Schema.Int;
210
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
165
211
  }>, Schema.Struct<{
166
212
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
167
213
  readonly description: Schema.optionalKey<Schema.String>;
@@ -177,10 +223,10 @@ export declare const CatalogRowSchema: Schema.Union<readonly [Schema.Struct<{
177
223
  readonly countryKey: Schema.String;
178
224
  readonly examKey: Schema.String;
179
225
  readonly trackKey: Schema.String;
226
+ readonly groupKey: Schema.String;
180
227
  readonly kind: Schema.Literal<"track">;
181
228
  readonly order: Schema.Int;
182
229
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
183
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
184
230
  }>, Schema.Struct<{
185
231
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
186
232
  readonly description: Schema.optionalKey<Schema.String>;
@@ -230,6 +276,8 @@ export declare const CatalogRowSchema: Schema.Union<readonly [Schema.Struct<{
230
276
  export type CatalogRow = typeof CatalogRowSchema.Type;
231
277
  /**
232
278
  * The identity of one catalog row, unique within a snapshot: its locale, its
233
- * kind, and the keys of its node and of every node above it.
279
+ * kind, and the keys of its node and of every node above it. A group names
280
+ * its own key; a track is unique within its exam, so a track and the rows
281
+ * under it leave their group out.
234
282
  */
235
283
  export declare function catalogRowIdentity(row: CatalogRow): string;
@@ -8,12 +8,13 @@ const PositiveCountSchema = Schema.Int.check(Schema.isGreaterThan(0));
8
8
  /** Bounded authored revision shared by one catalog source hierarchy. */
9
9
  export const CatalogRevisionSchema = Schema.Trimmed.check(Schema.isNonEmpty(), Schema.isMaxLength(128));
10
10
  /**
11
- * Navigation role of one track: one exam `year`, one `subject`, or the sets of
12
- * one `institution`, such as a Studienkolleg.
11
+ * The one axis by which an exam divides its tracks into groups: the `year` of
12
+ * a sitting (SNBT), the school `grade` a test is set for (TKA), or the
13
+ * `institution` that sets it, such as a Studienkolleg.
13
14
  */
14
- export const TrackKindSchema = Schema.Literals([
15
+ export const GroupAxisSchema = Schema.Literals([
16
+ "grade",
15
17
  "institution",
16
- "subject",
17
18
  "year",
18
19
  ]);
19
20
  /**
@@ -34,6 +35,7 @@ const LocalizedFields = {
34
35
  };
35
36
  const CountryFields = { countryKey: KebabKeySchema };
36
37
  const ExamFields = { ...CountryFields, examKey: KebabKeySchema };
38
+ const GroupFields = { ...ExamFields, groupKey: KebabKeySchema };
37
39
  const TrackFields = { ...ExamFields, trackKey: KebabKeySchema };
38
40
  const SetFields = { ...TrackFields, setKey: KebabKeySchema };
39
41
  /** One localized country of the catalog. */
@@ -45,22 +47,36 @@ export const CatalogCountrySchema = Schema.Struct({
45
47
  order: PositiveCountSchema,
46
48
  publicPath: PublicPathSchema,
47
49
  });
48
- /** One localized exam of a country. */
50
+ /** One localized exam of a country, and the axis that divides its tracks into groups. */
49
51
  export const CatalogExamSchema = Schema.Struct({
50
52
  ...LocalizedFields,
51
53
  ...ExamFields,
54
+ groupAxis: GroupAxisSchema,
52
55
  kind: Schema.Literal("exam"),
53
56
  order: PositiveCountSchema,
54
57
  publicPath: PublicPathSchema,
55
58
  });
56
- /** One localized track of an exam: a year, a subject, or an institution. */
59
+ /** One localized group of an exam on its axis: a year, a grade, or an institution. */
60
+ export const CatalogGroupSchema = Schema.Struct({
61
+ ...LocalizedFields,
62
+ ...GroupFields,
63
+ kind: Schema.Literal("group"),
64
+ order: PositiveCountSchema,
65
+ publicPath: PublicPathSchema,
66
+ });
67
+ /**
68
+ * One localized track of an exam, in the group that holds it: one paper
69
+ * format with its sets, such as a subject or a year's test. A track key is
70
+ * unique within its exam, so the rows of a track and of its sets name the
71
+ * track without its group.
72
+ */
57
73
  export const CatalogTrackSchema = Schema.Struct({
58
74
  ...LocalizedFields,
59
75
  ...TrackFields,
76
+ groupKey: KebabKeySchema,
60
77
  kind: Schema.Literal("track"),
61
78
  order: PositiveCountSchema,
62
79
  publicPath: PublicPathSchema,
63
- trackKind: TrackKindSchema,
64
80
  });
65
81
  /**
66
82
  * One localized set of a track, and the paper a learner sits for it, by
@@ -94,13 +110,16 @@ export const CatalogSectionSchema = Schema.Struct({
94
110
  export const CatalogRowSchema = Schema.Union([
95
111
  CatalogCountrySchema,
96
112
  CatalogExamSchema,
113
+ CatalogGroupSchema,
97
114
  CatalogTrackSchema,
98
115
  CatalogSetSchema,
99
116
  CatalogSectionSchema,
100
117
  ]);
101
118
  /**
102
119
  * The identity of one catalog row, unique within a snapshot: its locale, its
103
- * kind, and the keys of its node and of every node above it.
120
+ * kind, and the keys of its node and of every node above it. A group names
121
+ * its own key; a track is unique within its exam, so a track and the rows
122
+ * under it leave their group out.
104
123
  */
105
124
  export function catalogRowIdentity(row) {
106
125
  return Arr.join([
@@ -108,6 +127,7 @@ export function catalogRowIdentity(row) {
108
127
  row.kind,
109
128
  row.countryKey,
110
129
  "examKey" in row ? row.examKey : "",
130
+ row.kind === "group" ? row.groupKey : "",
111
131
  "trackKey" in row ? row.trackKey : "",
112
132
  "setKey" in row ? row.setKey : "",
113
133
  "sectionKey" in row ? row.sectionKey : "",
@@ -39,9 +39,28 @@ export declare const AssessmentRowSchema: Schema.Union<readonly [Schema.Struct<{
39
39
  readonly title: Schema.String;
40
40
  readonly countryKey: Schema.String;
41
41
  readonly examKey: Schema.String;
42
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
42
43
  readonly kind: Schema.Literal<"exam">;
43
44
  readonly order: Schema.Int;
44
45
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
46
+ }>, Schema.Struct<{
47
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
48
+ readonly description: Schema.optionalKey<Schema.String>;
49
+ readonly graph: Schema.Struct<{
50
+ readonly alignmentId: Schema.String;
51
+ readonly assetId: Schema.String;
52
+ readonly conceptId: Schema.String;
53
+ readonly learningObjectId: Schema.String;
54
+ readonly lensId: Schema.String;
55
+ }>;
56
+ readonly sourceRevision: Schema.Trimmed;
57
+ readonly title: Schema.String;
58
+ readonly countryKey: Schema.String;
59
+ readonly examKey: Schema.String;
60
+ readonly groupKey: Schema.String;
61
+ readonly kind: Schema.Literal<"group">;
62
+ readonly order: Schema.Int;
63
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
45
64
  }>, Schema.Struct<{
46
65
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
47
66
  readonly description: Schema.optionalKey<Schema.String>;
@@ -57,10 +76,10 @@ export declare const AssessmentRowSchema: Schema.Union<readonly [Schema.Struct<{
57
76
  readonly countryKey: Schema.String;
58
77
  readonly examKey: Schema.String;
59
78
  readonly trackKey: Schema.String;
79
+ readonly groupKey: Schema.String;
60
80
  readonly kind: Schema.Literal<"track">;
61
81
  readonly order: Schema.Int;
62
82
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
63
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
64
83
  }>, Schema.Struct<{
65
84
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
66
85
  readonly description: Schema.optionalKey<Schema.String>;
@@ -621,9 +640,28 @@ export declare const AssessmentRecordSchema: Schema.Struct<{
621
640
  readonly title: Schema.String;
622
641
  readonly countryKey: Schema.String;
623
642
  readonly examKey: Schema.String;
643
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
624
644
  readonly kind: Schema.Literal<"exam">;
625
645
  readonly order: Schema.Int;
626
646
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
647
+ }>, Schema.Struct<{
648
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
649
+ readonly description: Schema.optionalKey<Schema.String>;
650
+ readonly graph: Schema.Struct<{
651
+ readonly alignmentId: Schema.String;
652
+ readonly assetId: Schema.String;
653
+ readonly conceptId: Schema.String;
654
+ readonly learningObjectId: Schema.String;
655
+ readonly lensId: Schema.String;
656
+ }>;
657
+ readonly sourceRevision: Schema.Trimmed;
658
+ readonly title: Schema.String;
659
+ readonly countryKey: Schema.String;
660
+ readonly examKey: Schema.String;
661
+ readonly groupKey: Schema.String;
662
+ readonly kind: Schema.Literal<"group">;
663
+ readonly order: Schema.Int;
664
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
627
665
  }>, Schema.Struct<{
628
666
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
629
667
  readonly description: Schema.optionalKey<Schema.String>;
@@ -639,10 +677,10 @@ export declare const AssessmentRecordSchema: Schema.Struct<{
639
677
  readonly countryKey: Schema.String;
640
678
  readonly examKey: Schema.String;
641
679
  readonly trackKey: Schema.String;
680
+ readonly groupKey: Schema.String;
642
681
  readonly kind: Schema.Literal<"track">;
643
682
  readonly order: Schema.Int;
644
683
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
645
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
646
684
  }>, Schema.Struct<{
647
685
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
648
686
  readonly description: Schema.optionalKey<Schema.String>;
@@ -1257,9 +1295,28 @@ export declare const hashAssessmentRow: (row: {
1257
1295
  readonly title: string;
1258
1296
  readonly countryKey: string;
1259
1297
  readonly examKey: string;
1298
+ readonly groupAxis: "grade" | "institution" | "year";
1260
1299
  readonly kind: "exam";
1261
1300
  readonly order: number;
1262
1301
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
1302
+ } | {
1303
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
1304
+ readonly description?: string;
1305
+ readonly graph: {
1306
+ readonly alignmentId: string;
1307
+ readonly assetId: string;
1308
+ readonly conceptId: string;
1309
+ readonly learningObjectId: string;
1310
+ readonly lensId: string;
1311
+ };
1312
+ readonly sourceRevision: string;
1313
+ readonly title: string;
1314
+ readonly countryKey: string;
1315
+ readonly examKey: string;
1316
+ readonly groupKey: string;
1317
+ readonly kind: "group";
1318
+ readonly order: number;
1319
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
1263
1320
  } | {
1264
1321
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
1265
1322
  readonly description?: string;
@@ -1275,10 +1332,10 @@ export declare const hashAssessmentRow: (row: {
1275
1332
  readonly countryKey: string;
1276
1333
  readonly examKey: string;
1277
1334
  readonly trackKey: string;
1335
+ readonly groupKey: string;
1278
1336
  readonly kind: "track";
1279
1337
  readonly order: number;
1280
1338
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
1281
- readonly trackKind: "institution" | "subject" | "year";
1282
1339
  } | {
1283
1340
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
1284
1341
  readonly description?: string;
@@ -2518,9 +2575,28 @@ export declare const digestAssessmentRows: <E, R>(records: Stream.Stream<{
2518
2575
  readonly title: string;
2519
2576
  readonly countryKey: string;
2520
2577
  readonly examKey: string;
2578
+ readonly groupAxis: "grade" | "institution" | "year";
2521
2579
  readonly kind: "exam";
2522
2580
  readonly order: number;
2523
2581
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
2582
+ } | {
2583
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
2584
+ readonly description?: string;
2585
+ readonly graph: {
2586
+ readonly alignmentId: string;
2587
+ readonly assetId: string;
2588
+ readonly conceptId: string;
2589
+ readonly learningObjectId: string;
2590
+ readonly lensId: string;
2591
+ };
2592
+ readonly sourceRevision: string;
2593
+ readonly title: string;
2594
+ readonly countryKey: string;
2595
+ readonly examKey: string;
2596
+ readonly groupKey: string;
2597
+ readonly kind: "group";
2598
+ readonly order: number;
2599
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
2524
2600
  } | {
2525
2601
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
2526
2602
  readonly description?: string;
@@ -2536,10 +2612,10 @@ export declare const digestAssessmentRows: <E, R>(records: Stream.Stream<{
2536
2612
  readonly countryKey: string;
2537
2613
  readonly examKey: string;
2538
2614
  readonly trackKey: string;
2615
+ readonly groupKey: string;
2539
2616
  readonly kind: "track";
2540
2617
  readonly order: number;
2541
2618
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
2542
- readonly trackKind: "institution" | "subject" | "year";
2543
2619
  } | {
2544
2620
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
2545
2621
  readonly description?: string;
@@ -94,9 +94,28 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
94
94
  readonly title: Schema.String;
95
95
  readonly countryKey: Schema.String;
96
96
  readonly examKey: Schema.String;
97
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
97
98
  readonly kind: Schema.Literal<"exam">;
98
99
  readonly order: Schema.Int;
99
100
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
101
+ }>, Schema.Struct<{
102
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
103
+ readonly description: Schema.optionalKey<Schema.String>;
104
+ readonly graph: Schema.Struct<{
105
+ readonly alignmentId: Schema.String;
106
+ readonly assetId: Schema.String;
107
+ readonly conceptId: Schema.String;
108
+ readonly learningObjectId: Schema.String;
109
+ readonly lensId: Schema.String;
110
+ }>;
111
+ readonly sourceRevision: Schema.Trimmed;
112
+ readonly title: Schema.String;
113
+ readonly countryKey: Schema.String;
114
+ readonly examKey: Schema.String;
115
+ readonly groupKey: Schema.String;
116
+ readonly kind: Schema.Literal<"group">;
117
+ readonly order: Schema.Int;
118
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
100
119
  }>, Schema.Struct<{
101
120
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
102
121
  readonly description: Schema.optionalKey<Schema.String>;
@@ -112,10 +131,10 @@ export declare const ContentSnapshotRowSchema: Schema.Union<readonly [Schema.Str
112
131
  readonly countryKey: Schema.String;
113
132
  readonly examKey: Schema.String;
114
133
  readonly trackKey: Schema.String;
134
+ readonly groupKey: Schema.String;
115
135
  readonly kind: Schema.Literal<"track">;
116
136
  readonly order: Schema.Int;
117
137
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
118
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
119
138
  }>, Schema.Struct<{
120
139
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
121
140
  readonly description: Schema.optionalKey<Schema.String>;
@@ -174,9 +174,28 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
174
174
  readonly title: string;
175
175
  readonly countryKey: string;
176
176
  readonly examKey: string;
177
+ readonly groupAxis: "grade" | "institution" | "year";
177
178
  readonly kind: "exam";
178
179
  readonly order: number;
179
180
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
181
+ } | {
182
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
183
+ readonly description?: string;
184
+ readonly graph: {
185
+ readonly alignmentId: string;
186
+ readonly assetId: string;
187
+ readonly conceptId: string;
188
+ readonly learningObjectId: string;
189
+ readonly lensId: string;
190
+ };
191
+ readonly sourceRevision: string;
192
+ readonly title: string;
193
+ readonly countryKey: string;
194
+ readonly examKey: string;
195
+ readonly groupKey: string;
196
+ readonly kind: "group";
197
+ readonly order: number;
198
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
180
199
  } | {
181
200
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
182
201
  readonly description?: string;
@@ -192,10 +211,10 @@ export declare function decodeContentSnapshotRows<E, R>(rows: Stream.Stream<unkn
192
211
  readonly countryKey: string;
193
212
  readonly examKey: string;
194
213
  readonly trackKey: string;
214
+ readonly groupKey: string;
195
215
  readonly kind: "track";
196
216
  readonly order: number;
197
217
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
198
- readonly trackKind: "institution" | "subject" | "year";
199
218
  } | {
200
219
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
201
220
  readonly description?: string;
@@ -265,9 +265,28 @@ export declare const StageOperationSchema: Schema.Union<readonly [Schema.Struct<
265
265
  readonly title: Schema.String;
266
266
  readonly countryKey: Schema.String;
267
267
  readonly examKey: Schema.String;
268
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
268
269
  readonly kind: Schema.Literal<"exam">;
269
270
  readonly order: Schema.Int;
270
271
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
272
+ }>, Schema.Struct<{
273
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
274
+ readonly description: Schema.optionalKey<Schema.String>;
275
+ readonly graph: Schema.Struct<{
276
+ readonly alignmentId: Schema.String;
277
+ readonly assetId: Schema.String;
278
+ readonly conceptId: Schema.String;
279
+ readonly learningObjectId: Schema.String;
280
+ readonly lensId: Schema.String;
281
+ }>;
282
+ readonly sourceRevision: Schema.Trimmed;
283
+ readonly title: Schema.String;
284
+ readonly countryKey: Schema.String;
285
+ readonly examKey: Schema.String;
286
+ readonly groupKey: Schema.String;
287
+ readonly kind: Schema.Literal<"group">;
288
+ readonly order: Schema.Int;
289
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
271
290
  }>, Schema.Struct<{
272
291
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
273
292
  readonly description: Schema.optionalKey<Schema.String>;
@@ -283,10 +302,10 @@ export declare const StageOperationSchema: Schema.Union<readonly [Schema.Struct<
283
302
  readonly countryKey: Schema.String;
284
303
  readonly examKey: Schema.String;
285
304
  readonly trackKey: Schema.String;
305
+ readonly groupKey: Schema.String;
286
306
  readonly kind: Schema.Literal<"track">;
287
307
  readonly order: Schema.Int;
288
308
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
289
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
290
309
  }>, Schema.Struct<{
291
310
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
292
311
  readonly description: Schema.optionalKey<Schema.String>;
@@ -1282,9 +1301,28 @@ export declare const StageGroupInputSchema: Schema.Struct<{
1282
1301
  readonly title: Schema.String;
1283
1302
  readonly countryKey: Schema.String;
1284
1303
  readonly examKey: Schema.String;
1304
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
1285
1305
  readonly kind: Schema.Literal<"exam">;
1286
1306
  readonly order: Schema.Int;
1287
1307
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
1308
+ }>, Schema.Struct<{
1309
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
1310
+ readonly description: Schema.optionalKey<Schema.String>;
1311
+ readonly graph: Schema.Struct<{
1312
+ readonly alignmentId: Schema.String;
1313
+ readonly assetId: Schema.String;
1314
+ readonly conceptId: Schema.String;
1315
+ readonly learningObjectId: Schema.String;
1316
+ readonly lensId: Schema.String;
1317
+ }>;
1318
+ readonly sourceRevision: Schema.Trimmed;
1319
+ readonly title: Schema.String;
1320
+ readonly countryKey: Schema.String;
1321
+ readonly examKey: Schema.String;
1322
+ readonly groupKey: Schema.String;
1323
+ readonly kind: Schema.Literal<"group">;
1324
+ readonly order: Schema.Int;
1325
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
1288
1326
  }>, Schema.Struct<{
1289
1327
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
1290
1328
  readonly description: Schema.optionalKey<Schema.String>;
@@ -1300,10 +1338,10 @@ export declare const StageGroupInputSchema: Schema.Struct<{
1300
1338
  readonly countryKey: Schema.String;
1301
1339
  readonly examKey: Schema.String;
1302
1340
  readonly trackKey: Schema.String;
1341
+ readonly groupKey: Schema.String;
1303
1342
  readonly kind: Schema.Literal<"track">;
1304
1343
  readonly order: Schema.Int;
1305
1344
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
1306
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
1307
1345
  }>, Schema.Struct<{
1308
1346
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
1309
1347
  readonly description: Schema.optionalKey<Schema.String>;
@@ -2300,9 +2338,28 @@ export declare const StageGroupRequestSchema: Schema.Struct<{
2300
2338
  readonly title: Schema.String;
2301
2339
  readonly countryKey: Schema.String;
2302
2340
  readonly examKey: Schema.String;
2341
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
2303
2342
  readonly kind: Schema.Literal<"exam">;
2304
2343
  readonly order: Schema.Int;
2305
2344
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
2345
+ }>, Schema.Struct<{
2346
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
2347
+ readonly description: Schema.optionalKey<Schema.String>;
2348
+ readonly graph: Schema.Struct<{
2349
+ readonly alignmentId: Schema.String;
2350
+ readonly assetId: Schema.String;
2351
+ readonly conceptId: Schema.String;
2352
+ readonly learningObjectId: Schema.String;
2353
+ readonly lensId: Schema.String;
2354
+ }>;
2355
+ readonly sourceRevision: Schema.Trimmed;
2356
+ readonly title: Schema.String;
2357
+ readonly countryKey: Schema.String;
2358
+ readonly examKey: Schema.String;
2359
+ readonly groupKey: Schema.String;
2360
+ readonly kind: Schema.Literal<"group">;
2361
+ readonly order: Schema.Int;
2362
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
2306
2363
  }>, Schema.Struct<{
2307
2364
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
2308
2365
  readonly description: Schema.optionalKey<Schema.String>;
@@ -2318,10 +2375,10 @@ export declare const StageGroupRequestSchema: Schema.Struct<{
2318
2375
  readonly countryKey: Schema.String;
2319
2376
  readonly examKey: Schema.String;
2320
2377
  readonly trackKey: Schema.String;
2378
+ readonly groupKey: Schema.String;
2321
2379
  readonly kind: Schema.Literal<"track">;
2322
2380
  readonly order: Schema.Int;
2323
2381
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
2324
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
2325
2382
  }>, Schema.Struct<{
2326
2383
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
2327
2384
  readonly description: Schema.optionalKey<Schema.String>;
@@ -767,9 +767,28 @@ export declare const PublicationRequestSchema: Schema.Union<readonly [Schema.Str
767
767
  readonly title: Schema.String;
768
768
  readonly countryKey: Schema.String;
769
769
  readonly examKey: Schema.String;
770
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
770
771
  readonly kind: Schema.Literal<"exam">;
771
772
  readonly order: Schema.Int;
772
773
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
774
+ }>, Schema.Struct<{
775
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
776
+ readonly description: Schema.optionalKey<Schema.String>;
777
+ readonly graph: Schema.Struct<{
778
+ readonly alignmentId: Schema.String;
779
+ readonly assetId: Schema.String;
780
+ readonly conceptId: Schema.String;
781
+ readonly learningObjectId: Schema.String;
782
+ readonly lensId: Schema.String;
783
+ }>;
784
+ readonly sourceRevision: Schema.Trimmed;
785
+ readonly title: Schema.String;
786
+ readonly countryKey: Schema.String;
787
+ readonly examKey: Schema.String;
788
+ readonly groupKey: Schema.String;
789
+ readonly kind: Schema.Literal<"group">;
790
+ readonly order: Schema.Int;
791
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
773
792
  }>, Schema.Struct<{
774
793
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
775
794
  readonly description: Schema.optionalKey<Schema.String>;
@@ -785,10 +804,10 @@ export declare const PublicationRequestSchema: Schema.Union<readonly [Schema.Str
785
804
  readonly countryKey: Schema.String;
786
805
  readonly examKey: Schema.String;
787
806
  readonly trackKey: Schema.String;
807
+ readonly groupKey: Schema.String;
788
808
  readonly kind: Schema.Literal<"track">;
789
809
  readonly order: Schema.Int;
790
810
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
791
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
792
811
  }>, Schema.Struct<{
793
812
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
794
813
  readonly description: Schema.optionalKey<Schema.String>;
@@ -1781,9 +1800,28 @@ export declare const PublicationRequestSchema: Schema.Union<readonly [Schema.Str
1781
1800
  readonly title: Schema.String;
1782
1801
  readonly countryKey: Schema.String;
1783
1802
  readonly examKey: Schema.String;
1803
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
1784
1804
  readonly kind: Schema.Literal<"exam">;
1785
1805
  readonly order: Schema.Int;
1786
1806
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
1807
+ }>, Schema.Struct<{
1808
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
1809
+ readonly description: Schema.optionalKey<Schema.String>;
1810
+ readonly graph: Schema.Struct<{
1811
+ readonly alignmentId: Schema.String;
1812
+ readonly assetId: Schema.String;
1813
+ readonly conceptId: Schema.String;
1814
+ readonly learningObjectId: Schema.String;
1815
+ readonly lensId: Schema.String;
1816
+ }>;
1817
+ readonly sourceRevision: Schema.Trimmed;
1818
+ readonly title: Schema.String;
1819
+ readonly countryKey: Schema.String;
1820
+ readonly examKey: Schema.String;
1821
+ readonly groupKey: Schema.String;
1822
+ readonly kind: Schema.Literal<"group">;
1823
+ readonly order: Schema.Int;
1824
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
1787
1825
  }>, Schema.Struct<{
1788
1826
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
1789
1827
  readonly description: Schema.optionalKey<Schema.String>;
@@ -1799,10 +1837,10 @@ export declare const PublicationRequestSchema: Schema.Union<readonly [Schema.Str
1799
1837
  readonly countryKey: Schema.String;
1800
1838
  readonly examKey: Schema.String;
1801
1839
  readonly trackKey: Schema.String;
1840
+ readonly groupKey: Schema.String;
1802
1841
  readonly kind: Schema.Literal<"track">;
1803
1842
  readonly order: Schema.Int;
1804
1843
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
1805
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
1806
1844
  }>, Schema.Struct<{
1807
1845
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
1808
1846
  readonly description: Schema.optionalKey<Schema.String>;
@@ -3391,9 +3429,28 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
3391
3429
  readonly title: string;
3392
3430
  readonly countryKey: string;
3393
3431
  readonly examKey: string;
3432
+ readonly groupAxis: "grade" | "institution" | "year";
3394
3433
  readonly kind: "exam";
3395
3434
  readonly order: number;
3396
3435
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
3436
+ } | {
3437
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
3438
+ readonly description?: string;
3439
+ readonly graph: {
3440
+ readonly alignmentId: string;
3441
+ readonly assetId: string;
3442
+ readonly conceptId: string;
3443
+ readonly learningObjectId: string;
3444
+ readonly lensId: string;
3445
+ };
3446
+ readonly sourceRevision: string;
3447
+ readonly title: string;
3448
+ readonly countryKey: string;
3449
+ readonly examKey: string;
3450
+ readonly groupKey: string;
3451
+ readonly kind: "group";
3452
+ readonly order: number;
3453
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
3397
3454
  } | {
3398
3455
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
3399
3456
  readonly description?: string;
@@ -3409,10 +3466,10 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
3409
3466
  readonly countryKey: string;
3410
3467
  readonly examKey: string;
3411
3468
  readonly trackKey: string;
3469
+ readonly groupKey: string;
3412
3470
  readonly kind: "track";
3413
3471
  readonly order: number;
3414
3472
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
3415
- readonly trackKind: "institution" | "subject" | "year";
3416
3473
  } | {
3417
3474
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
3418
3475
  readonly description?: string;
@@ -4967,9 +5024,28 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
4967
5024
  readonly title: string;
4968
5025
  readonly countryKey: string;
4969
5026
  readonly examKey: string;
5027
+ readonly groupAxis: "grade" | "institution" | "year";
4970
5028
  readonly kind: "exam";
4971
5029
  readonly order: number;
4972
5030
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
5031
+ } | {
5032
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
5033
+ readonly description?: string;
5034
+ readonly graph: {
5035
+ readonly alignmentId: string;
5036
+ readonly assetId: string;
5037
+ readonly conceptId: string;
5038
+ readonly learningObjectId: string;
5039
+ readonly lensId: string;
5040
+ };
5041
+ readonly sourceRevision: string;
5042
+ readonly title: string;
5043
+ readonly countryKey: string;
5044
+ readonly examKey: string;
5045
+ readonly groupKey: string;
5046
+ readonly kind: "group";
5047
+ readonly order: number;
5048
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
4973
5049
  } | {
4974
5050
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
4975
5051
  readonly description?: string;
@@ -4985,10 +5061,10 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
4985
5061
  readonly countryKey: string;
4986
5062
  readonly examKey: string;
4987
5063
  readonly trackKey: string;
5064
+ readonly groupKey: string;
4988
5065
  readonly kind: "track";
4989
5066
  readonly order: number;
4990
5067
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
4991
- readonly trackKind: "institution" | "subject" | "year";
4992
5068
  } | {
4993
5069
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
4994
5070
  readonly description?: string;
@@ -7072,9 +7148,28 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
7072
7148
  readonly title: string;
7073
7149
  readonly countryKey: string;
7074
7150
  readonly examKey: string;
7151
+ readonly groupAxis: "grade" | "institution" | "year";
7075
7152
  readonly kind: "exam";
7076
7153
  readonly order: number;
7077
7154
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
7155
+ } | {
7156
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
7157
+ readonly description?: string;
7158
+ readonly graph: {
7159
+ readonly alignmentId: string;
7160
+ readonly assetId: string;
7161
+ readonly conceptId: string;
7162
+ readonly learningObjectId: string;
7163
+ readonly lensId: string;
7164
+ };
7165
+ readonly sourceRevision: string;
7166
+ readonly title: string;
7167
+ readonly countryKey: string;
7168
+ readonly examKey: string;
7169
+ readonly groupKey: string;
7170
+ readonly kind: "group";
7171
+ readonly order: number;
7172
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
7078
7173
  } | {
7079
7174
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
7080
7175
  readonly description?: string;
@@ -7090,10 +7185,10 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
7090
7185
  readonly countryKey: string;
7091
7186
  readonly examKey: string;
7092
7187
  readonly trackKey: string;
7188
+ readonly groupKey: string;
7093
7189
  readonly kind: "track";
7094
7190
  readonly order: number;
7095
7191
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
7096
- readonly trackKind: "institution" | "subject" | "year";
7097
7192
  } | {
7098
7193
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
7099
7194
  readonly description?: string;
@@ -8648,9 +8743,28 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
8648
8743
  readonly title: string;
8649
8744
  readonly countryKey: string;
8650
8745
  readonly examKey: string;
8746
+ readonly groupAxis: "grade" | "institution" | "year";
8651
8747
  readonly kind: "exam";
8652
8748
  readonly order: number;
8653
8749
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
8750
+ } | {
8751
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
8752
+ readonly description?: string;
8753
+ readonly graph: {
8754
+ readonly alignmentId: string;
8755
+ readonly assetId: string;
8756
+ readonly conceptId: string;
8757
+ readonly learningObjectId: string;
8758
+ readonly lensId: string;
8759
+ };
8760
+ readonly sourceRevision: string;
8761
+ readonly title: string;
8762
+ readonly countryKey: string;
8763
+ readonly examKey: string;
8764
+ readonly groupKey: string;
8765
+ readonly kind: "group";
8766
+ readonly order: number;
8767
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
8654
8768
  } | {
8655
8769
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
8656
8770
  readonly description?: string;
@@ -8666,10 +8780,10 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
8666
8780
  readonly countryKey: string;
8667
8781
  readonly examKey: string;
8668
8782
  readonly trackKey: string;
8783
+ readonly groupKey: string;
8669
8784
  readonly kind: "track";
8670
8785
  readonly order: number;
8671
8786
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
8672
- readonly trackKind: "institution" | "subject" | "year";
8673
8787
  } | {
8674
8788
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
8675
8789
  readonly description?: string;
@@ -10589,9 +10703,28 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
10589
10703
  readonly title: string;
10590
10704
  readonly countryKey: string;
10591
10705
  readonly examKey: string;
10706
+ readonly groupAxis: "grade" | "institution" | "year";
10592
10707
  readonly kind: "exam";
10593
10708
  readonly order: number;
10594
10709
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
10710
+ } | {
10711
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
10712
+ readonly description?: string;
10713
+ readonly graph: {
10714
+ readonly alignmentId: string;
10715
+ readonly assetId: string;
10716
+ readonly conceptId: string;
10717
+ readonly learningObjectId: string;
10718
+ readonly lensId: string;
10719
+ };
10720
+ readonly sourceRevision: string;
10721
+ readonly title: string;
10722
+ readonly countryKey: string;
10723
+ readonly examKey: string;
10724
+ readonly groupKey: string;
10725
+ readonly kind: "group";
10726
+ readonly order: number;
10727
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
10595
10728
  } | {
10596
10729
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
10597
10730
  readonly description?: string;
@@ -10607,10 +10740,10 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
10607
10740
  readonly countryKey: string;
10608
10741
  readonly examKey: string;
10609
10742
  readonly trackKey: string;
10743
+ readonly groupKey: string;
10610
10744
  readonly kind: "track";
10611
10745
  readonly order: number;
10612
10746
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
10613
- readonly trackKind: "institution" | "subject" | "year";
10614
10747
  } | {
10615
10748
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
10616
10749
  readonly description?: string;
@@ -12165,9 +12298,28 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
12165
12298
  readonly title: string;
12166
12299
  readonly countryKey: string;
12167
12300
  readonly examKey: string;
12301
+ readonly groupAxis: "grade" | "institution" | "year";
12168
12302
  readonly kind: "exam";
12169
12303
  readonly order: number;
12170
12304
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
12305
+ } | {
12306
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
12307
+ readonly description?: string;
12308
+ readonly graph: {
12309
+ readonly alignmentId: string;
12310
+ readonly assetId: string;
12311
+ readonly conceptId: string;
12312
+ readonly learningObjectId: string;
12313
+ readonly lensId: string;
12314
+ };
12315
+ readonly sourceRevision: string;
12316
+ readonly title: string;
12317
+ readonly countryKey: string;
12318
+ readonly examKey: string;
12319
+ readonly groupKey: string;
12320
+ readonly kind: "group";
12321
+ readonly order: number;
12322
+ readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
12171
12323
  } | {
12172
12324
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
12173
12325
  readonly description?: string;
@@ -12183,10 +12335,10 @@ export declare const decodePublicationRequest: (input: unknown) => Effect.Effect
12183
12335
  readonly countryKey: string;
12184
12336
  readonly examKey: string;
12185
12337
  readonly trackKey: string;
12338
+ readonly groupKey: string;
12186
12339
  readonly kind: "track";
12187
12340
  readonly order: number;
12188
12341
  readonly publicPath: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
12189
- readonly trackKind: "institution" | "subject" | "year";
12190
12342
  } | {
12191
12343
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
12192
12344
  readonly description?: string;
@@ -161,9 +161,28 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
161
161
  readonly title: Schema.String;
162
162
  readonly countryKey: Schema.String;
163
163
  readonly examKey: Schema.String;
164
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
164
165
  readonly kind: Schema.Literal<"exam">;
165
166
  readonly order: Schema.Int;
166
167
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
168
+ }>, Schema.Struct<{
169
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
170
+ readonly description: Schema.optionalKey<Schema.String>;
171
+ readonly graph: Schema.Struct<{
172
+ readonly alignmentId: Schema.String;
173
+ readonly assetId: Schema.String;
174
+ readonly conceptId: Schema.String;
175
+ readonly learningObjectId: Schema.String;
176
+ readonly lensId: Schema.String;
177
+ }>;
178
+ readonly sourceRevision: Schema.Trimmed;
179
+ readonly title: Schema.String;
180
+ readonly countryKey: Schema.String;
181
+ readonly examKey: Schema.String;
182
+ readonly groupKey: Schema.String;
183
+ readonly kind: Schema.Literal<"group">;
184
+ readonly order: Schema.Int;
185
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
167
186
  }>, Schema.Struct<{
168
187
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
169
188
  readonly description: Schema.optionalKey<Schema.String>;
@@ -179,10 +198,10 @@ export declare const StageSnapshotBatchInputSchema: Schema.Struct<{
179
198
  readonly countryKey: Schema.String;
180
199
  readonly examKey: Schema.String;
181
200
  readonly trackKey: Schema.String;
201
+ readonly groupKey: Schema.String;
182
202
  readonly kind: Schema.Literal<"track">;
183
203
  readonly order: Schema.Int;
184
204
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
185
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
186
205
  }>, Schema.Struct<{
187
206
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
188
207
  readonly description: Schema.optionalKey<Schema.String>;
@@ -950,9 +969,28 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
950
969
  readonly title: Schema.String;
951
970
  readonly countryKey: Schema.String;
952
971
  readonly examKey: Schema.String;
972
+ readonly groupAxis: Schema.Literals<readonly ["grade", "institution", "year"]>;
953
973
  readonly kind: Schema.Literal<"exam">;
954
974
  readonly order: Schema.Int;
955
975
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
976
+ }>, Schema.Struct<{
977
+ readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
978
+ readonly description: Schema.optionalKey<Schema.String>;
979
+ readonly graph: Schema.Struct<{
980
+ readonly alignmentId: Schema.String;
981
+ readonly assetId: Schema.String;
982
+ readonly conceptId: Schema.String;
983
+ readonly learningObjectId: Schema.String;
984
+ readonly lensId: Schema.String;
985
+ }>;
986
+ readonly sourceRevision: Schema.Trimmed;
987
+ readonly title: Schema.String;
988
+ readonly countryKey: Schema.String;
989
+ readonly examKey: Schema.String;
990
+ readonly groupKey: Schema.String;
991
+ readonly kind: Schema.Literal<"group">;
992
+ readonly order: Schema.Int;
993
+ readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
956
994
  }>, Schema.Struct<{
957
995
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
958
996
  readonly description: Schema.optionalKey<Schema.String>;
@@ -968,10 +1006,10 @@ export declare const StageSnapshotBatchRequestSchema: Schema.Struct<{
968
1006
  readonly countryKey: Schema.String;
969
1007
  readonly examKey: Schema.String;
970
1008
  readonly trackKey: Schema.String;
1009
+ readonly groupKey: Schema.String;
971
1010
  readonly kind: Schema.Literal<"track">;
972
1011
  readonly order: Schema.Int;
973
1012
  readonly publicPath: Schema.brand<Schema.String, "@NakafaAI/AksaraPublicPath">;
974
- readonly trackKind: Schema.Literals<readonly ["institution", "subject", "year"]>;
975
1013
  }>, Schema.Struct<{
976
1014
  readonly appLocale: Schema.brand<Schema.Literals<readonly ["en", "id", "de"]>, "@NakafaAI/AksaraAppLocale">;
977
1015
  readonly description: Schema.optionalKey<Schema.String>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakafa/aksara-contracts",
3
- "version": "4.1.3",
3
+ "version": "5.0.0",
4
4
  "description": "Schemas and verification contracts for Nakafa content releases.",
5
5
  "homepage": "https://github.com/nakafaai/aksara#readme",
6
6
  "license": "SEE LICENSE IN LICENSE",