@nakafa/aksara-contracts 4.1.1 → 4.1.3

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.
@@ -4,6 +4,23 @@ import { type QuranRowPayload } from "#contracts/quran/snapshot/row";
4
4
  export declare function canonicalizeQuranRow(payload: QuranRowPayload): string;
5
5
  /** Computes one current row's domain-separated identity. */
6
6
  export declare const hashQuranRow: (payload: {
7
+ readonly name: {
8
+ readonly arabic: string;
9
+ readonly meaning: {
10
+ readonly de: string;
11
+ readonly en: string;
12
+ readonly id: string;
13
+ };
14
+ readonly transliteration: string;
15
+ };
16
+ readonly number: number;
17
+ readonly numberOfVerses: number;
18
+ readonly revelation: {
19
+ readonly order: number;
20
+ readonly place: "Meccan" | "Medinan";
21
+ };
22
+ readonly kind: "quran-surah";
23
+ } | {
7
24
  readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
8
25
  readonly kind: "quran-attribution";
9
26
  readonly sources: readonly [{
@@ -110,30 +127,30 @@ export declare const hashQuranRow: (payload: {
110
127
  };
111
128
  })[]];
112
129
  readonly tafsirAccess: readonly [{
113
- readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
114
- readonly kind: "external";
115
- readonly notice: string;
116
- readonly sourceId: "mokhtasar-english";
117
- } | {
118
130
  readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
119
131
  readonly kind: "embedded";
120
132
  readonly notice: string;
121
133
  readonly sourceId: "quranenc-tafsir";
122
134
  } | {
123
- readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
124
- readonly kind: "external";
125
- readonly notice: string;
126
- readonly sourceId: "mokhtasar-german";
127
- }, ...({
128
135
  readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
129
136
  readonly kind: "external";
130
137
  readonly notice: string;
131
138
  readonly sourceId: "mokhtasar-english";
132
139
  } | {
140
+ readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
141
+ readonly kind: "external";
142
+ readonly notice: string;
143
+ readonly sourceId: "mokhtasar-german";
144
+ }, ...({
133
145
  readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
134
146
  readonly kind: "embedded";
135
147
  readonly notice: string;
136
148
  readonly sourceId: "quranenc-tafsir";
149
+ } | {
150
+ readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
151
+ readonly kind: "external";
152
+ readonly notice: string;
153
+ readonly sourceId: "mokhtasar-english";
137
154
  } | {
138
155
  readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
139
156
  readonly kind: "external";
@@ -216,6 +233,22 @@ export declare const hashQuranRow: (payload: {
216
233
  }[]];
217
234
  }[]];
218
235
  } | {
236
+ readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
237
+ readonly graph: {
238
+ readonly alignmentId: string;
239
+ readonly assetId: string;
240
+ readonly conceptId: string;
241
+ readonly learningObjectId: string;
242
+ readonly lensId: string;
243
+ };
244
+ readonly kind: "quran-search";
245
+ readonly route: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
246
+ readonly surahNumber: number;
247
+ readonly text: string;
248
+ readonly title: string;
249
+ }) => Effect.Effect<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, never, never>;
250
+ /** Creates one snapshot-bound current row. */
251
+ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, payload: {
219
252
  readonly name: {
220
253
  readonly arabic: string;
221
254
  readonly meaning: {
@@ -233,22 +266,6 @@ export declare const hashQuranRow: (payload: {
233
266
  };
234
267
  readonly kind: "quran-surah";
235
268
  } | {
236
- readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
237
- readonly graph: {
238
- readonly alignmentId: string;
239
- readonly assetId: string;
240
- readonly conceptId: string;
241
- readonly learningObjectId: string;
242
- readonly lensId: string;
243
- };
244
- readonly kind: "quran-search";
245
- readonly route: string & import("effect/Brand").Brand<"@NakafaAI/AksaraPublicPath">;
246
- readonly surahNumber: number;
247
- readonly text: string;
248
- readonly title: string;
249
- }) => Effect.Effect<string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, never, never>;
250
- /** Creates one snapshot-bound current row. */
251
- export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").Brand<"@NakafaAI/AksaraSha256Hash">, payload: {
252
269
  readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
253
270
  readonly kind: "quran-attribution";
254
271
  readonly sources: readonly [{
@@ -355,30 +372,30 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
355
372
  };
356
373
  })[]];
357
374
  readonly tafsirAccess: readonly [{
358
- readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
359
- readonly kind: "external";
360
- readonly notice: string;
361
- readonly sourceId: "mokhtasar-english";
362
- } | {
363
375
  readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
364
376
  readonly kind: "embedded";
365
377
  readonly notice: string;
366
378
  readonly sourceId: "quranenc-tafsir";
367
379
  } | {
368
- readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
369
- readonly kind: "external";
370
- readonly notice: string;
371
- readonly sourceId: "mokhtasar-german";
372
- }, ...({
373
380
  readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
374
381
  readonly kind: "external";
375
382
  readonly notice: string;
376
383
  readonly sourceId: "mokhtasar-english";
377
384
  } | {
385
+ readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
386
+ readonly kind: "external";
387
+ readonly notice: string;
388
+ readonly sourceId: "mokhtasar-german";
389
+ }, ...({
378
390
  readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
379
391
  readonly kind: "embedded";
380
392
  readonly notice: string;
381
393
  readonly sourceId: "quranenc-tafsir";
394
+ } | {
395
+ readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
396
+ readonly kind: "external";
397
+ readonly notice: string;
398
+ readonly sourceId: "mokhtasar-english";
382
399
  } | {
383
400
  readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
384
401
  readonly kind: "external";
@@ -460,23 +477,6 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
460
477
  };
461
478
  }[]];
462
479
  }[]];
463
- } | {
464
- readonly name: {
465
- readonly arabic: string;
466
- readonly meaning: {
467
- readonly de: string;
468
- readonly en: string;
469
- readonly id: string;
470
- };
471
- readonly transliteration: string;
472
- };
473
- readonly number: number;
474
- readonly numberOfVerses: number;
475
- readonly revelation: {
476
- readonly order: number;
477
- readonly place: "Meccan" | "Medinan";
478
- };
479
- readonly kind: "quran-surah";
480
480
  } | {
481
481
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
482
482
  readonly graph: {
@@ -493,6 +493,23 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
493
493
  readonly title: string;
494
494
  }) => Effect.Effect<{
495
495
  readonly payload: {
496
+ readonly name: {
497
+ readonly arabic: string;
498
+ readonly meaning: {
499
+ readonly de: string;
500
+ readonly en: string;
501
+ readonly id: string;
502
+ };
503
+ readonly transliteration: string;
504
+ };
505
+ readonly number: number;
506
+ readonly numberOfVerses: number;
507
+ readonly revelation: {
508
+ readonly order: number;
509
+ readonly place: "Meccan" | "Medinan";
510
+ };
511
+ readonly kind: "quran-surah";
512
+ } | {
496
513
  readonly activeAppLocales: readonly [("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">, ...(("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">)[]];
497
514
  readonly kind: "quran-attribution";
498
515
  readonly sources: readonly [{
@@ -599,30 +616,30 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
599
616
  };
600
617
  })[]];
601
618
  readonly tafsirAccess: readonly [{
602
- readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
603
- readonly kind: "external";
604
- readonly notice: string;
605
- readonly sourceId: "mokhtasar-english";
606
- } | {
607
619
  readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
608
620
  readonly kind: "embedded";
609
621
  readonly notice: string;
610
622
  readonly sourceId: "quranenc-tafsir";
611
623
  } | {
612
- readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
613
- readonly kind: "external";
614
- readonly notice: string;
615
- readonly sourceId: "mokhtasar-german";
616
- }, ...({
617
624
  readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
618
625
  readonly kind: "external";
619
626
  readonly notice: string;
620
627
  readonly sourceId: "mokhtasar-english";
621
628
  } | {
629
+ readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
630
+ readonly kind: "external";
631
+ readonly notice: string;
632
+ readonly sourceId: "mokhtasar-german";
633
+ }, ...({
622
634
  readonly appLocale: "id" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
623
635
  readonly kind: "embedded";
624
636
  readonly notice: string;
625
637
  readonly sourceId: "quranenc-tafsir";
638
+ } | {
639
+ readonly appLocale: "en" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
640
+ readonly kind: "external";
641
+ readonly notice: string;
642
+ readonly sourceId: "mokhtasar-english";
626
643
  } | {
627
644
  readonly appLocale: "de" & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
628
645
  readonly kind: "external";
@@ -704,23 +721,6 @@ export declare const bindQuranRow: (snapshotId: string & import("effect/Brand").
704
721
  };
705
722
  }[]];
706
723
  }[]];
707
- } | {
708
- readonly name: {
709
- readonly arabic: string;
710
- readonly meaning: {
711
- readonly de: string;
712
- readonly en: string;
713
- readonly id: string;
714
- };
715
- readonly transliteration: string;
716
- };
717
- readonly number: number;
718
- readonly numberOfVerses: number;
719
- readonly revelation: {
720
- readonly order: number;
721
- readonly place: "Meccan" | "Medinan";
722
- };
723
- readonly kind: "quran-surah";
724
724
  } | {
725
725
  readonly appLocale: ("de" | "en" | "id") & import("effect/Brand").Brand<"@NakafaAI/AksaraAppLocale">;
726
726
  readonly graph: {