@everylanguage/shared-types 1.0.1 → 1.0.4

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/README.md CHANGED
@@ -298,29 +298,3 @@ npm run type-check
298
298
  # Run CI checks locally
299
299
  npm run lint && npm run format:check && npm run type-check && npm test
300
300
  ```
301
-
302
- ## 📚 Documentation
303
-
304
- - [Development Setup](./docs/development-setup.md)
305
- - [CI/CD Pipeline](./docs/ci-cd-pipeline.md)
306
- - [GitHub Setup Guide](./docs/github-setup-guide.md)
307
- - [Project Setup Checklist](./docs/project-setup-checklist.md)
308
-
309
- ## 🤝 Contributing
310
-
311
- 1. Read the [GitHub Setup Guide](./docs/github-setup-guide.md)
312
- 2. Follow the development workflow above
313
- 3. Ensure all CI checks pass
314
- 4. Request review from team members
315
- 5. Keep PRs small and focused
316
-
317
- ## 📄 License
318
-
319
- This project is licensed under the ISC License - see the [LICENSE](LICENSE) file for details.
320
-
321
- ## 🆘 Support
322
-
323
- - Check [troubleshooting section](#-troubleshooting) above
324
- - Review documentation in `docs/` folder
325
- - Create an issue for bugs or feature requests
326
- - Ask team members for help with setup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everylanguage/shared-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "types/database.js",
6
6
  "types": "types/database.d.ts",
@@ -63,7 +63,6 @@
63
63
  "license": "ISC",
64
64
  "description": "Supabase backend for EL audio translation platform",
65
65
  "dependencies": {
66
- "@types/node": "^24.0.3",
67
66
  "@typescript-eslint/eslint-plugin": "^8.34.1",
68
67
  "@typescript-eslint/parser": "^8.34.1",
69
68
  "eslint": "^9.29.0",
@@ -80,7 +79,9 @@
80
79
  "devDependencies": {
81
80
  "@commitlint/cli": "^19.8.1",
82
81
  "@commitlint/config-conventional": "^19.8.1",
82
+ "@supabase/supabase-js": "^2.50.2",
83
83
  "@types/jest": "^30.0.0",
84
+ "@types/node": "^24.0.7",
84
85
  "commitizen": "^4.3.1",
85
86
  "cz-conventional-changelog": "^3.3.0",
86
87
  "ts-jest": "^29.4.0"
@@ -29,206 +29,243 @@ export type Database = {
29
29
  };
30
30
  public: {
31
31
  Tables: {
32
- analytics_events: {
32
+ bases: {
33
33
  Row: {
34
34
  created_at: string | null;
35
- device_info: Json | null;
36
- event_data: Json | null;
37
- event_type: string;
38
35
  id: string;
39
- session_id: string | null;
40
- user_id: string | null;
36
+ location: unknown | null;
37
+ name: string;
38
+ region_id: string | null;
39
+ updated_at: string | null;
41
40
  };
42
41
  Insert: {
43
42
  created_at?: string | null;
44
- device_info?: Json | null;
45
- event_data?: Json | null;
46
- event_type: string;
47
43
  id?: string;
48
- session_id?: string | null;
49
- user_id?: string | null;
44
+ location?: unknown | null;
45
+ name: string;
46
+ region_id?: string | null;
47
+ updated_at?: string | null;
50
48
  };
51
49
  Update: {
52
50
  created_at?: string | null;
53
- device_info?: Json | null;
54
- event_data?: Json | null;
55
- event_type?: string;
56
51
  id?: string;
57
- session_id?: string | null;
58
- user_id?: string | null;
52
+ location?: unknown | null;
53
+ name?: string;
54
+ region_id?: string | null;
55
+ updated_at?: string | null;
59
56
  };
60
57
  Relationships: [];
61
58
  };
62
- audio_recordings: {
59
+ bases_teams: {
63
60
  Row: {
64
- audio_file_url: string;
61
+ base_id: string;
65
62
  created_at: string | null;
66
- description: string | null;
67
- duration_seconds: number | null;
68
63
  id: string;
69
- original_language: string;
70
- status: string | null;
71
- target_language: string;
72
- title: string;
64
+ role_id: string;
65
+ team_id: string;
73
66
  updated_at: string | null;
74
- user_id: string | null;
75
67
  };
76
68
  Insert: {
77
- audio_file_url: string;
69
+ base_id: string;
78
70
  created_at?: string | null;
79
- description?: string | null;
80
- duration_seconds?: number | null;
81
71
  id?: string;
82
- original_language: string;
83
- status?: string | null;
84
- target_language: string;
85
- title: string;
72
+ role_id: string;
73
+ team_id: string;
86
74
  updated_at?: string | null;
87
- user_id?: string | null;
88
75
  };
89
76
  Update: {
90
- audio_file_url?: string;
77
+ base_id?: string;
91
78
  created_at?: string | null;
92
- description?: string | null;
93
- duration_seconds?: number | null;
94
79
  id?: string;
95
- original_language?: string;
96
- status?: string | null;
97
- target_language?: string;
98
- title?: string;
80
+ role_id?: string;
81
+ team_id?: string;
99
82
  updated_at?: string | null;
100
- user_id?: string | null;
101
83
  };
102
- Relationships: [];
84
+ Relationships: [
85
+ {
86
+ foreignKeyName: "bases_teams_base_id_fkey";
87
+ columns: ["base_id"];
88
+ isOneToOne: false;
89
+ referencedRelation: "bases";
90
+ referencedColumns: ["id"];
91
+ },
92
+ {
93
+ foreignKeyName: "bases_teams_role_id_fkey";
94
+ columns: ["role_id"];
95
+ isOneToOne: false;
96
+ referencedRelation: "roles";
97
+ referencedColumns: ["id"];
98
+ },
99
+ {
100
+ foreignKeyName: "bases_teams_team_id_fkey";
101
+ columns: ["team_id"];
102
+ isOneToOne: false;
103
+ referencedRelation: "teams";
104
+ referencedColumns: ["id"];
105
+ }
106
+ ];
103
107
  };
104
- npm_test_projects: {
108
+ permissions: {
109
+ Row: {
110
+ allow_deny: boolean;
111
+ context_id: string | null;
112
+ context_type: string;
113
+ created_at: string | null;
114
+ description: string;
115
+ id: string;
116
+ role_id: string;
117
+ updated_at: string | null;
118
+ };
119
+ Insert: {
120
+ allow_deny?: boolean;
121
+ context_id?: string | null;
122
+ context_type: string;
123
+ created_at?: string | null;
124
+ description: string;
125
+ id?: string;
126
+ role_id: string;
127
+ updated_at?: string | null;
128
+ };
129
+ Update: {
130
+ allow_deny?: boolean;
131
+ context_id?: string | null;
132
+ context_type?: string;
133
+ created_at?: string | null;
134
+ description?: string;
135
+ id?: string;
136
+ role_id?: string;
137
+ updated_at?: string | null;
138
+ };
139
+ Relationships: [
140
+ {
141
+ foreignKeyName: "permissions_role_id_fkey";
142
+ columns: ["role_id"];
143
+ isOneToOne: false;
144
+ referencedRelation: "roles";
145
+ referencedColumns: ["id"];
146
+ }
147
+ ];
148
+ };
149
+ roles: {
105
150
  Row: {
106
151
  created_at: string | null;
107
- description: string | null;
108
152
  id: string;
109
153
  name: string;
110
- status: string | null;
111
154
  updated_at: string | null;
112
155
  };
113
156
  Insert: {
114
157
  created_at?: string | null;
115
- description?: string | null;
116
158
  id?: string;
117
159
  name: string;
118
- status?: string | null;
119
160
  updated_at?: string | null;
120
161
  };
121
162
  Update: {
122
163
  created_at?: string | null;
123
- description?: string | null;
124
164
  id?: string;
125
165
  name?: string;
126
- status?: string | null;
127
166
  updated_at?: string | null;
128
167
  };
129
168
  Relationships: [];
130
169
  };
131
- profiles: {
170
+ teams: {
132
171
  Row: {
133
- avatar_url: string | null;
134
172
  created_at: string | null;
135
- email: string;
136
- full_name: string | null;
137
173
  id: string;
174
+ name: string;
175
+ type: string | null;
138
176
  updated_at: string | null;
139
- user_id: string | null;
140
177
  };
141
178
  Insert: {
142
- avatar_url?: string | null;
143
179
  created_at?: string | null;
144
- email: string;
145
- full_name?: string | null;
146
180
  id?: string;
181
+ name: string;
182
+ type?: string | null;
147
183
  updated_at?: string | null;
148
- user_id?: string | null;
149
184
  };
150
185
  Update: {
151
- avatar_url?: string | null;
152
186
  created_at?: string | null;
153
- email?: string;
154
- full_name?: string | null;
155
187
  id?: string;
188
+ name?: string;
189
+ type?: string | null;
156
190
  updated_at?: string | null;
157
- user_id?: string | null;
158
191
  };
159
192
  Relationships: [];
160
193
  };
161
- translation_segments: {
194
+ user_roles: {
162
195
  Row: {
163
- confidence_score: number | null;
196
+ context_id: string | null;
197
+ context_type: string | null;
164
198
  created_at: string | null;
165
- end_time_seconds: number;
166
199
  id: string;
167
- original_text: string | null;
168
- recording_id: string | null;
169
- speaker_id: string | null;
170
- start_time_seconds: number;
171
- translated_text: string | null;
200
+ role_id: string;
201
+ updated_at: string | null;
202
+ user_id: string;
172
203
  };
173
204
  Insert: {
174
- confidence_score?: number | null;
205
+ context_id?: string | null;
206
+ context_type?: string | null;
175
207
  created_at?: string | null;
176
- end_time_seconds: number;
177
208
  id?: string;
178
- original_text?: string | null;
179
- recording_id?: string | null;
180
- speaker_id?: string | null;
181
- start_time_seconds: number;
182
- translated_text?: string | null;
209
+ role_id: string;
210
+ updated_at?: string | null;
211
+ user_id: string;
183
212
  };
184
213
  Update: {
185
- confidence_score?: number | null;
214
+ context_id?: string | null;
215
+ context_type?: string | null;
186
216
  created_at?: string | null;
187
- end_time_seconds?: number;
188
217
  id?: string;
189
- original_text?: string | null;
190
- recording_id?: string | null;
191
- speaker_id?: string | null;
192
- start_time_seconds?: number;
193
- translated_text?: string | null;
218
+ role_id?: string;
219
+ updated_at?: string | null;
220
+ user_id?: string;
194
221
  };
195
222
  Relationships: [
196
223
  {
197
- foreignKeyName: "translation_segments_recording_id_fkey";
198
- columns: ["recording_id"];
224
+ foreignKeyName: "user_roles_role_id_fkey";
225
+ columns: ["role_id"];
226
+ isOneToOne: false;
227
+ referencedRelation: "roles";
228
+ referencedColumns: ["id"];
229
+ },
230
+ {
231
+ foreignKeyName: "user_roles_user_id_fkey";
232
+ columns: ["user_id"];
199
233
  isOneToOne: false;
200
- referencedRelation: "audio_recordings";
234
+ referencedRelation: "users";
201
235
  referencedColumns: ["id"];
202
236
  }
203
237
  ];
204
238
  };
205
- workflow_test_v2: {
239
+ users: {
206
240
  Row: {
241
+ auth_uid: string;
207
242
  created_at: string | null;
208
- description: string | null;
243
+ email: string;
244
+ first_name: string | null;
209
245
  id: string;
210
- name: string;
211
- test_status: string | null;
246
+ last_name: string | null;
247
+ phone_number: string | null;
212
248
  updated_at: string | null;
213
- workflow_version: string | null;
214
249
  };
215
250
  Insert: {
251
+ auth_uid: string;
216
252
  created_at?: string | null;
217
- description?: string | null;
253
+ email: string;
254
+ first_name?: string | null;
218
255
  id?: string;
219
- name: string;
220
- test_status?: string | null;
256
+ last_name?: string | null;
257
+ phone_number?: string | null;
221
258
  updated_at?: string | null;
222
- workflow_version?: string | null;
223
259
  };
224
260
  Update: {
261
+ auth_uid?: string;
225
262
  created_at?: string | null;
226
- description?: string | null;
263
+ email?: string;
264
+ first_name?: string | null;
227
265
  id?: string;
228
- name?: string;
229
- test_status?: string | null;
266
+ last_name?: string | null;
267
+ phone_number?: string | null;
230
268
  updated_at?: string | null;
231
- workflow_version?: string | null;
232
269
  };
233
270
  Relationships: [];
234
271
  };