@redocly/revel-reef 0.130.0-next.1 → 0.130.0-next.2

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 (27) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/cli/stats/collectors/openapi.d.ts +3 -0
  4. package/dist/cli/stats/collectors/openapi.js +1 -0
  5. package/dist/cli/stats/index.d.ts +7 -0
  6. package/dist/cli/stats/index.js +1 -0
  7. package/dist/cli/stats/options.d.ts +3 -0
  8. package/dist/cli/stats/options.js +1 -0
  9. package/dist/cli/telemetry/index.d.ts +1 -1
  10. package/dist/cli/telemetry/index.js +1 -1
  11. package/dist/client/app/Sidebar/Sidebar.js +1 -1
  12. package/dist/server/fs/cache.js +1 -1
  13. package/dist/server/plugins/catalog-entities/database/mappers/map-entity-relation-row.js +1 -1
  14. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-read-repository.js +5 -3
  15. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-local-write-repository.js +1 -1
  16. package/dist/server/plugins/catalog-entities/database/repositories/local/catalog-entities-relations-repository.js +1 -1
  17. package/dist/server/plugins/catalog-entities/database/repositories/remote/catalog-entities-remote-repository.js +1 -1
  18. package/dist/server/plugins/catalog-entities/extensions/extractors/api-description/base.js +1 -1
  19. package/dist/server/plugins/openapi-docs/index.js +1 -1
  20. package/dist/server/providers/database/databases/catalog-sqlite/migrations/0005_catalog-relations-constraint-fix.sql +2 -0
  21. package/dist/server/providers/database/databases/catalog-sqlite/migrations/meta/0005_snapshot.json +393 -0
  22. package/dist/server/providers/database/databases/catalog-sqlite/migrations/meta/_journal.json +7 -0
  23. package/dist/server/providers/database/databases/catalog-sqlite/schemas/entities-relations-table.js +1 -1
  24. package/dist/server/providers/database/databases/sqld-sqlite/migrations/0007_catalog-relations-constraint-fix.sql +2 -0
  25. package/dist/server/providers/database/databases/sqld-sqlite/migrations/meta/0007_snapshot.json +833 -0
  26. package/dist/server/providers/database/databases/sqld-sqlite/migrations/meta/_journal.json +7 -0
  27. package/package.json +6 -6
@@ -0,0 +1,393 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "26cb7c34-fb67-4b31-bf14-8f0ae1b63595",
5
+ "prevId": "a1b2c3d4-e5f6-4789-a012-3456789abcde",
6
+ "tables": {
7
+ "entities_relations": {
8
+ "name": "entities_relations",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "organization_id": {
18
+ "name": "organization_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "project_id": {
25
+ "name": "project_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "source_key": {
32
+ "name": "source_key",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "autoincrement": false
37
+ },
38
+ "source_version": {
39
+ "name": "source_version",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false,
44
+ "default": "''"
45
+ },
46
+ "source_revision": {
47
+ "name": "source_revision",
48
+ "type": "text",
49
+ "primaryKey": false,
50
+ "notNull": true,
51
+ "autoincrement": false,
52
+ "default": "''"
53
+ },
54
+ "source_to_target_relation": {
55
+ "name": "source_to_target_relation",
56
+ "type": "text",
57
+ "primaryKey": false,
58
+ "notNull": true,
59
+ "autoincrement": false
60
+ },
61
+ "target_key": {
62
+ "name": "target_key",
63
+ "type": "text",
64
+ "primaryKey": false,
65
+ "notNull": true,
66
+ "autoincrement": false
67
+ },
68
+ "target_version": {
69
+ "name": "target_version",
70
+ "type": "text",
71
+ "primaryKey": false,
72
+ "notNull": true,
73
+ "autoincrement": false,
74
+ "default": "''"
75
+ },
76
+ "target_revision": {
77
+ "name": "target_revision",
78
+ "type": "text",
79
+ "primaryKey": false,
80
+ "notNull": true,
81
+ "autoincrement": false,
82
+ "default": "''"
83
+ },
84
+ "target_to_source_relation": {
85
+ "name": "target_to_source_relation",
86
+ "type": "text",
87
+ "primaryKey": false,
88
+ "notNull": true,
89
+ "autoincrement": false
90
+ },
91
+ "source_file": {
92
+ "name": "source_file",
93
+ "type": "text",
94
+ "primaryKey": false,
95
+ "notNull": false,
96
+ "autoincrement": false
97
+ },
98
+ "file_hash": {
99
+ "name": "file_hash",
100
+ "type": "text",
101
+ "primaryKey": false,
102
+ "notNull": false,
103
+ "autoincrement": false
104
+ },
105
+ "is_deleted": {
106
+ "name": "is_deleted",
107
+ "type": "integer",
108
+ "primaryKey": false,
109
+ "notNull": false,
110
+ "autoincrement": false,
111
+ "default": false
112
+ },
113
+ "created_at": {
114
+ "name": "created_at",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false
119
+ },
120
+ "updated_at": {
121
+ "name": "updated_at",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": true,
125
+ "autoincrement": false
126
+ }
127
+ },
128
+ "indexes": {
129
+ "idx_entities_relations_source_key": {
130
+ "name": "idx_entities_relations_source_key",
131
+ "columns": ["source_key", "is_deleted"],
132
+ "isUnique": false
133
+ },
134
+ "idx_entities_relations_target_key": {
135
+ "name": "idx_entities_relations_target_key",
136
+ "columns": ["target_key", "is_deleted"],
137
+ "isUnique": false
138
+ },
139
+ "idx_entities_relations_source_target": {
140
+ "name": "idx_entities_relations_source_target",
141
+ "columns": ["source_to_target_relation"],
142
+ "isUnique": false
143
+ },
144
+ "idx_entities_relations_target_source": {
145
+ "name": "idx_entities_relations_target_source",
146
+ "columns": ["target_to_source_relation"],
147
+ "isUnique": false
148
+ },
149
+ "idx_entities_relations_unique": {
150
+ "name": "idx_entities_relations_unique",
151
+ "columns": [
152
+ "source_key",
153
+ "target_key",
154
+ "source_version",
155
+ "target_version",
156
+ "source_revision",
157
+ "target_revision",
158
+ "source_to_target_relation"
159
+ ],
160
+ "isUnique": true
161
+ }
162
+ },
163
+ "foreignKeys": {},
164
+ "compositePrimaryKeys": {},
165
+ "uniqueConstraints": {},
166
+ "checkConstraints": {}
167
+ },
168
+ "entities": {
169
+ "name": "entities",
170
+ "columns": {
171
+ "id": {
172
+ "name": "id",
173
+ "type": "text",
174
+ "primaryKey": true,
175
+ "notNull": true,
176
+ "autoincrement": false
177
+ },
178
+ "organization_id": {
179
+ "name": "organization_id",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": true,
183
+ "autoincrement": false
184
+ },
185
+ "project_id": {
186
+ "name": "project_id",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "autoincrement": false
191
+ },
192
+ "key": {
193
+ "name": "key",
194
+ "type": "text",
195
+ "primaryKey": false,
196
+ "notNull": true,
197
+ "autoincrement": false
198
+ },
199
+ "type": {
200
+ "name": "type",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": true,
204
+ "autoincrement": false
205
+ },
206
+ "title": {
207
+ "name": "title",
208
+ "type": "text",
209
+ "primaryKey": false,
210
+ "notNull": true,
211
+ "autoincrement": false
212
+ },
213
+ "summary": {
214
+ "name": "summary",
215
+ "type": "text",
216
+ "primaryKey": false,
217
+ "notNull": false,
218
+ "autoincrement": false
219
+ },
220
+ "tags": {
221
+ "name": "tags",
222
+ "type": "text",
223
+ "primaryKey": false,
224
+ "notNull": false,
225
+ "autoincrement": false
226
+ },
227
+ "metadata": {
228
+ "name": "metadata",
229
+ "type": "text",
230
+ "primaryKey": false,
231
+ "notNull": false,
232
+ "autoincrement": false
233
+ },
234
+ "git": {
235
+ "name": "git",
236
+ "type": "text",
237
+ "primaryKey": false,
238
+ "notNull": false,
239
+ "autoincrement": false
240
+ },
241
+ "contact": {
242
+ "name": "contact",
243
+ "type": "text",
244
+ "primaryKey": false,
245
+ "notNull": false,
246
+ "autoincrement": false
247
+ },
248
+ "links": {
249
+ "name": "links",
250
+ "type": "text",
251
+ "primaryKey": false,
252
+ "notNull": false,
253
+ "autoincrement": false
254
+ },
255
+ "created_at": {
256
+ "name": "created_at",
257
+ "type": "text",
258
+ "primaryKey": false,
259
+ "notNull": true,
260
+ "autoincrement": false
261
+ },
262
+ "updated_at": {
263
+ "name": "updated_at",
264
+ "type": "text",
265
+ "primaryKey": false,
266
+ "notNull": true,
267
+ "autoincrement": false
268
+ },
269
+ "source": {
270
+ "name": "source",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": false,
274
+ "autoincrement": false,
275
+ "default": "'file'"
276
+ },
277
+ "source_file": {
278
+ "name": "source_file",
279
+ "type": "text",
280
+ "primaryKey": false,
281
+ "notNull": false,
282
+ "autoincrement": false
283
+ },
284
+ "file_hash": {
285
+ "name": "file_hash",
286
+ "type": "text",
287
+ "primaryKey": false,
288
+ "notNull": false,
289
+ "autoincrement": false
290
+ },
291
+ "version": {
292
+ "name": "version",
293
+ "type": "text",
294
+ "primaryKey": false,
295
+ "notNull": true,
296
+ "autoincrement": false,
297
+ "default": "'not_specified_version'"
298
+ },
299
+ "revision": {
300
+ "name": "revision",
301
+ "type": "text",
302
+ "primaryKey": false,
303
+ "notNull": true,
304
+ "autoincrement": false
305
+ },
306
+ "hash": {
307
+ "name": "hash",
308
+ "type": "text",
309
+ "primaryKey": false,
310
+ "notNull": false,
311
+ "autoincrement": false
312
+ },
313
+ "is_current": {
314
+ "name": "is_current",
315
+ "type": "integer",
316
+ "primaryKey": false,
317
+ "notNull": false,
318
+ "autoincrement": false,
319
+ "default": true
320
+ },
321
+ "is_default_version": {
322
+ "name": "is_default_version",
323
+ "type": "integer",
324
+ "primaryKey": false,
325
+ "notNull": false,
326
+ "autoincrement": false,
327
+ "default": false
328
+ },
329
+ "is_deleted": {
330
+ "name": "is_deleted",
331
+ "type": "integer",
332
+ "primaryKey": false,
333
+ "notNull": false,
334
+ "autoincrement": false,
335
+ "default": false
336
+ },
337
+ "scorecards_status": {
338
+ "name": "scorecards_status",
339
+ "type": "text",
340
+ "primaryKey": false,
341
+ "notNull": false,
342
+ "autoincrement": false
343
+ }
344
+ },
345
+ "indexes": {
346
+ "idx_entities_type": {
347
+ "name": "idx_entities_type",
348
+ "columns": ["type"],
349
+ "isUnique": false
350
+ },
351
+ "idx_entities_hash": {
352
+ "name": "idx_entities_hash",
353
+ "columns": ["hash"],
354
+ "isUnique": false
355
+ },
356
+ "idx_entities_key_source_created_at": {
357
+ "name": "idx_entities_key_source_created_at",
358
+ "columns": ["key", "created_at"],
359
+ "isUnique": false
360
+ },
361
+ "idx_entities_key_source_is_current": {
362
+ "name": "idx_entities_key_source_is_current",
363
+ "columns": ["key", "is_current", "is_deleted"],
364
+ "isUnique": false
365
+ },
366
+ "idx_entities_key_source_is_default": {
367
+ "name": "idx_entities_key_source_is_default",
368
+ "columns": ["key", "is_default_version"],
369
+ "isUnique": false
370
+ },
371
+ "idx_entities_key_source": {
372
+ "name": "idx_entities_key_source",
373
+ "columns": ["key", "source", "revision", "version"],
374
+ "isUnique": true
375
+ }
376
+ },
377
+ "foreignKeys": {},
378
+ "compositePrimaryKeys": {},
379
+ "uniqueConstraints": {},
380
+ "checkConstraints": {}
381
+ }
382
+ },
383
+ "views": {},
384
+ "enums": {},
385
+ "_meta": {
386
+ "schemas": {},
387
+ "tables": {},
388
+ "columns": {}
389
+ },
390
+ "internal": {
391
+ "indexes": {}
392
+ }
393
+ }
@@ -36,6 +36,13 @@
36
36
  "when": 1734624000000,
37
37
  "tag": "0004_normalize_relation_types",
38
38
  "breakpoints": true
39
+ },
40
+ {
41
+ "idx": 5,
42
+ "version": "6",
43
+ "when": 1768307645659,
44
+ "tag": "0005_catalog-relations-constraint-fix",
45
+ "breakpoints": true
39
46
  }
40
47
  ]
41
48
  }
@@ -1 +1 @@
1
- import{sqliteTable as i,text as e,integer as r,index as o,uniqueIndex as n}from"drizzle-orm/sqlite-core";const l=i("entities_relations",{id:e("id").primaryKey(),organizationId:e("organization_id").notNull(),projectId:e("project_id").notNull(),sourceKey:e("source_key").notNull(),sourceVersion:e("source_version").default("").notNull(),sourceRevision:e("source_revision").default("").notNull(),sourceToTargetRelation:e("source_to_target_relation").notNull(),targetKey:e("target_key").notNull(),targetVersion:e("target_version").default("").notNull(),targetRevision:e("target_revision").default("").notNull(),targetToSourceRelation:e("target_to_source_relation").notNull(),sourceFile:e("source_file"),fileHash:e("file_hash"),isDeleted:r("is_deleted",{mode:"boolean"}).default(!1),createdAt:e("created_at").notNull(),updatedAt:e("updated_at").notNull()},t=>[o("idx_entities_relations_source_key").on(t.sourceKey,t.isDeleted),o("idx_entities_relations_target_key").on(t.targetKey,t.isDeleted),o("idx_entities_relations_source_target").on(t.sourceToTargetRelation),o("idx_entities_relations_target_source").on(t.targetToSourceRelation),n("idx_entities_relations_unique").on(t.sourceKey,t.targetKey,t.sourceVersion,t.targetVersion,t.sourceRevision,t.targetRevision)]);export{l as entitiesRelationsTable};
1
+ import{sqliteTable as i,text as e,integer as r,index as o,uniqueIndex as n}from"drizzle-orm/sqlite-core";const u=i("entities_relations",{id:e("id").primaryKey(),organizationId:e("organization_id").notNull(),projectId:e("project_id").notNull(),sourceKey:e("source_key").notNull(),sourceVersion:e("source_version").default("").notNull(),sourceRevision:e("source_revision").default("").notNull(),sourceToTargetRelation:e("source_to_target_relation").notNull(),targetKey:e("target_key").notNull(),targetVersion:e("target_version").default("").notNull(),targetRevision:e("target_revision").default("").notNull(),targetToSourceRelation:e("target_to_source_relation").notNull(),sourceFile:e("source_file"),fileHash:e("file_hash"),isDeleted:r("is_deleted",{mode:"boolean"}).default(!1),createdAt:e("created_at").notNull(),updatedAt:e("updated_at").notNull()},t=>[o("idx_entities_relations_source_key").on(t.sourceKey,t.isDeleted),o("idx_entities_relations_target_key").on(t.targetKey,t.isDeleted),o("idx_entities_relations_source_target").on(t.sourceToTargetRelation),o("idx_entities_relations_target_source").on(t.targetToSourceRelation),n("idx_entities_relations_unique").on(t.sourceKey,t.targetKey,t.sourceVersion,t.targetVersion,t.sourceRevision,t.targetRevision,t.sourceToTargetRelation)]);export{u as entitiesRelationsTable};
@@ -0,0 +1,2 @@
1
+ DROP INDEX `idx_entities_relations_unique`;--> statement-breakpoint
2
+ CREATE UNIQUE INDEX `idx_entities_relations_unique` ON `entities_relations` (`source_key`,`target_key`,`source_version`,`target_version`,`source_revision`,`target_revision`,`source_to_target_relation`);