@everylanguage/shared-types 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/package.json +2 -1
  2. package/types/database.d.ts +116 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everylanguage/shared-types",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "main": "types/database.js",
6
6
  "types": "types/database.d.ts",
@@ -47,6 +47,7 @@
47
47
  "format:check": "prettier --check .",
48
48
  "sql:format": "sql-formatter --config .sqlformatterrc.json supabase/migrations/*.sql",
49
49
  "type-check": "tsc --noEmit",
50
+ "type-check:functions": "cd supabase/functions && deno check **/*.ts",
50
51
  "prepare": "husky",
51
52
  "commit": "cz",
52
53
  "version:patch": "npm version patch",
@@ -197,6 +197,7 @@ export type Database = {
197
197
  global_order: number | null;
198
198
  id: string;
199
199
  name: string;
200
+ testament: Database["public"]["Enums"]["testament"] | null;
200
201
  updated_at: string | null;
201
202
  };
202
203
  Insert: {
@@ -206,6 +207,7 @@ export type Database = {
206
207
  global_order?: number | null;
207
208
  id: string;
208
209
  name: string;
210
+ testament?: Database["public"]["Enums"]["testament"] | null;
209
211
  updated_at?: string | null;
210
212
  };
211
213
  Update: {
@@ -215,6 +217,7 @@ export type Database = {
215
217
  global_order?: number | null;
216
218
  id?: string;
217
219
  name?: string;
220
+ testament?: Database["public"]["Enums"]["testament"] | null;
218
221
  updated_at?: string | null;
219
222
  };
220
223
  Relationships: [
@@ -333,6 +336,98 @@ export type Database = {
333
336
  }
334
337
  ];
335
338
  };
339
+ image_sets: {
340
+ Row: {
341
+ created_at: string | null;
342
+ created_by: string | null;
343
+ id: string;
344
+ name: string;
345
+ remote_path: string;
346
+ updated_at: string | null;
347
+ };
348
+ Insert: {
349
+ created_at?: string | null;
350
+ created_by?: string | null;
351
+ id?: string;
352
+ name: string;
353
+ remote_path: string;
354
+ updated_at?: string | null;
355
+ };
356
+ Update: {
357
+ created_at?: string | null;
358
+ created_by?: string | null;
359
+ id?: string;
360
+ name?: string;
361
+ remote_path?: string;
362
+ updated_at?: string | null;
363
+ };
364
+ Relationships: [
365
+ {
366
+ foreignKeyName: "image_sets_created_by_fkey";
367
+ columns: ["created_by"];
368
+ isOneToOne: false;
369
+ referencedRelation: "users";
370
+ referencedColumns: ["id"];
371
+ }
372
+ ];
373
+ };
374
+ images: {
375
+ Row: {
376
+ created_at: string | null;
377
+ created_by: string | null;
378
+ deleted_at: string | null;
379
+ id: string;
380
+ publish_status: Database["public"]["Enums"]["publish_status"];
381
+ remote_path: string;
382
+ set_id: string | null;
383
+ target_id: string;
384
+ target_type: Database["public"]["Enums"]["target_type"];
385
+ updated_at: string | null;
386
+ version: number;
387
+ };
388
+ Insert: {
389
+ created_at?: string | null;
390
+ created_by?: string | null;
391
+ deleted_at?: string | null;
392
+ id?: string;
393
+ publish_status?: Database["public"]["Enums"]["publish_status"];
394
+ remote_path: string;
395
+ set_id?: string | null;
396
+ target_id: string;
397
+ target_type: Database["public"]["Enums"]["target_type"];
398
+ updated_at?: string | null;
399
+ version?: number;
400
+ };
401
+ Update: {
402
+ created_at?: string | null;
403
+ created_by?: string | null;
404
+ deleted_at?: string | null;
405
+ id?: string;
406
+ publish_status?: Database["public"]["Enums"]["publish_status"];
407
+ remote_path?: string;
408
+ set_id?: string | null;
409
+ target_id?: string;
410
+ target_type?: Database["public"]["Enums"]["target_type"];
411
+ updated_at?: string | null;
412
+ version?: number;
413
+ };
414
+ Relationships: [
415
+ {
416
+ foreignKeyName: "images_created_by_fkey";
417
+ columns: ["created_by"];
418
+ isOneToOne: false;
419
+ referencedRelation: "users";
420
+ referencedColumns: ["id"];
421
+ },
422
+ {
423
+ foreignKeyName: "images_set_id_fkey";
424
+ columns: ["set_id"];
425
+ isOneToOne: false;
426
+ referencedRelation: "image_sets";
427
+ referencedColumns: ["id"];
428
+ }
429
+ ];
430
+ };
336
431
  language_aliases: {
337
432
  Row: {
338
433
  alias_name: string;
@@ -2626,30 +2721,39 @@ export type Database = {
2626
2721
  created_by: string | null;
2627
2722
  deleted_at: string | null;
2628
2723
  id: string;
2629
- text_version_id: string;
2724
+ project_id: string | null;
2725
+ publish_status: Database["public"]["Enums"]["publish_status"];
2726
+ text_version_id: string | null;
2630
2727
  updated_at: string | null;
2631
2728
  verse_id: string;
2632
2729
  verse_text: string;
2730
+ version: number;
2633
2731
  };
2634
2732
  Insert: {
2635
2733
  created_at?: string | null;
2636
2734
  created_by?: string | null;
2637
2735
  deleted_at?: string | null;
2638
2736
  id?: string;
2639
- text_version_id: string;
2737
+ project_id?: string | null;
2738
+ publish_status?: Database["public"]["Enums"]["publish_status"];
2739
+ text_version_id?: string | null;
2640
2740
  updated_at?: string | null;
2641
2741
  verse_id: string;
2642
2742
  verse_text: string;
2743
+ version?: number;
2643
2744
  };
2644
2745
  Update: {
2645
2746
  created_at?: string | null;
2646
2747
  created_by?: string | null;
2647
2748
  deleted_at?: string | null;
2648
2749
  id?: string;
2649
- text_version_id?: string;
2750
+ project_id?: string | null;
2751
+ publish_status?: Database["public"]["Enums"]["publish_status"];
2752
+ text_version_id?: string | null;
2650
2753
  updated_at?: string | null;
2651
2754
  verse_id?: string;
2652
2755
  verse_text?: string;
2756
+ version?: number;
2653
2757
  };
2654
2758
  Relationships: [
2655
2759
  {
@@ -2659,6 +2763,13 @@ export type Database = {
2659
2763
  referencedRelation: "users";
2660
2764
  referencedColumns: ["id"];
2661
2765
  },
2766
+ {
2767
+ foreignKeyName: "verse_texts_project_id_fkey";
2768
+ columns: ["project_id"];
2769
+ isOneToOne: false;
2770
+ referencedRelation: "projects";
2771
+ referencedColumns: ["id"];
2772
+ },
2662
2773
  {
2663
2774
  foreignKeyName: "verse_texts_text_version_id_fkey";
2664
2775
  columns: ["text_version_id"];
@@ -5517,6 +5628,7 @@ export type Database = {
5517
5628
  segment_type: "source" | "target";
5518
5629
  share_entity_type: "app" | "chapter" | "playlist" | "verse" | "passage";
5519
5630
  target_type: "chapter" | "book" | "sermon" | "passage" | "verse" | "podcast" | "film_segment" | "audio_segment";
5631
+ testament: "old" | "new";
5520
5632
  text_version_source: "official_translation" | "ai_transcription" | "user_submitted";
5521
5633
  upload_status: "pending" | "uploading" | "completed" | "failed";
5522
5634
  };
@@ -5600,6 +5712,7 @@ export declare const Constants: {
5600
5712
  readonly segment_type: readonly ["source", "target"];
5601
5713
  readonly share_entity_type: readonly ["app", "chapter", "playlist", "verse", "passage"];
5602
5714
  readonly target_type: readonly ["chapter", "book", "sermon", "passage", "verse", "podcast", "film_segment", "audio_segment"];
5715
+ readonly testament: readonly ["old", "new"];
5603
5716
  readonly text_version_source: readonly ["official_translation", "ai_transcription", "user_submitted"];
5604
5717
  readonly upload_status: readonly ["pending", "uploading", "completed", "failed"];
5605
5718
  };