@igstack/app-catalog-backend-core 0.3.1-alpha-20260405015231 → 0.4.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.
- package/dist/db/syncAppCatalog.d.mts +3 -5
- package/dist/db/syncAppCatalog.d.mts.map +1 -1
- package/dist/db/syncAppCatalog.mjs +49 -57
- package/dist/db/syncAppCatalog.mjs.map +1 -1
- package/dist/db/tableSyncMagazine.d.mts +3 -7
- package/dist/db/tableSyncMagazine.d.mts.map +1 -1
- package/dist/db/tableSyncMagazine.mjs +3 -7
- package/dist/db/tableSyncMagazine.mjs.map +1 -1
- package/dist/db/tableSyncPrismaAdapter.mjs.map +1 -1
- package/dist/generated/prisma/client.mjs.map +1 -1
- package/dist/generated/prisma/internal/class.d.mts +5 -17
- package/dist/generated/prisma/internal/class.d.mts.map +1 -1
- package/dist/generated/prisma/internal/class.mjs +4 -4
- package/dist/generated/prisma/internal/class.mjs.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespace.d.mts +46 -132
- package/dist/generated/prisma/internal/prismaNamespace.d.mts.map +1 -1
- package/dist/generated/prisma/models/DbResource.d.mts +2433 -0
- package/dist/generated/prisma/models/DbResource.d.mts.map +1 -0
- package/dist/generated/prisma/models/SourceReference.d.mts +90 -90
- package/dist/generated/prisma/models/SourceReference.d.mts.map +1 -1
- package/dist/generated/prisma/models.d.mts +2 -3
- package/dist/index.d.mts +3 -4
- package/dist/modules/appCatalog/checkLinks.mjs +1 -1
- package/dist/modules/appCatalog/checkLinks.mjs.map +1 -1
- package/dist/modules/appCatalog/service.mjs +26 -34
- package/dist/modules/appCatalog/service.mjs.map +1 -1
- package/dist/modules/assets/screenshotRestController.mjs +2 -2
- package/dist/modules/assets/screenshotRestController.mjs.map +1 -1
- package/dist/modules/assets/syncAssets.mjs +4 -4
- package/dist/modules/assets/syncAssets.mjs.map +1 -1
- package/dist/modules/lighthouseKeeper/tools.mjs +1 -1
- package/dist/modules/lighthouseKeeper/tools.mjs.map +1 -1
- package/dist/server/controller.d.mts +2 -2
- package/dist/server/controller.mjs.map +1 -1
- package/dist/types/common/appCatalogTypes.d.mts +26 -9
- package/dist/types/common/appCatalogTypes.d.mts.map +1 -1
- package/dist/types/common/approvalMethodTypes.d.mts +5 -1
- package/dist/types/common/approvalMethodTypes.d.mts.map +1 -1
- package/package.json +3 -3
- package/prisma/schema.prisma +53 -62
- package/src/db/syncAppCatalog.ts +68 -73
- package/src/db/tableSyncMagazine.ts +3 -7
- package/src/db/tableSyncPrismaAdapter.ts +1 -1
- package/src/generated/prisma/browser.ts +2 -7
- package/src/generated/prisma/client.ts +2 -7
- package/src/generated/prisma/internal/class.ts +8 -18
- package/src/generated/prisma/internal/prismaNamespace.ts +43 -131
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +7 -20
- package/src/generated/prisma/models/DbResource.ts +2701 -0
- package/src/generated/prisma/models/SourceReference.ts +89 -89
- package/src/generated/prisma/models.ts +1 -2
- package/src/index.ts +1 -1
- package/src/modules/appCatalog/checkLinks.ts +7 -7
- package/src/modules/appCatalog/service.ts +51 -62
- package/src/modules/assets/screenshotRestController.ts +2 -2
- package/src/modules/assets/screenshotRouter.ts +2 -2
- package/src/modules/assets/syncAssets.ts +4 -4
- package/src/modules/lighthouseKeeper/tools.ts +1 -1
- package/src/prisma-json-types.d.ts +8 -8
- package/src/server/controller.ts +2 -2
- package/src/types/common/appCatalogTypes.ts +28 -9
- package/src/types/common/approvalMethodTypes.ts +6 -0
- package/src/types/index.ts +0 -1
- package/dist/generated/prisma/models/DbAppForCatalog.d.mts +0 -1778
- package/dist/generated/prisma/models/DbAppForCatalog.d.mts.map +0 -1
- package/dist/generated/prisma/models/DbSubResource.d.mts +0 -1468
- package/dist/generated/prisma/models/DbSubResource.d.mts.map +0 -1
- package/dist/types/common/subResourceTypes.d.mts +0 -24
- package/dist/types/common/subResourceTypes.d.mts.map +0 -1
- package/src/generated/prisma/models/DbAppForCatalog.ts +0 -2014
- package/src/generated/prisma/models/DbSubResource.ts +0 -1692
- package/src/types/common/subResourceTypes.ts +0 -20
|
@@ -39,7 +39,7 @@ export type SourceReferenceSumAggregateOutputType = {
|
|
|
39
39
|
export type SourceReferenceMinAggregateOutputType = {
|
|
40
40
|
id: number | null
|
|
41
41
|
sourceSlug: string | null
|
|
42
|
-
|
|
42
|
+
resourceId: string | null
|
|
43
43
|
url: string | null
|
|
44
44
|
parseDate: Date | null
|
|
45
45
|
userPrompt: string | null
|
|
@@ -48,7 +48,7 @@ export type SourceReferenceMinAggregateOutputType = {
|
|
|
48
48
|
export type SourceReferenceMaxAggregateOutputType = {
|
|
49
49
|
id: number | null
|
|
50
50
|
sourceSlug: string | null
|
|
51
|
-
|
|
51
|
+
resourceId: string | null
|
|
52
52
|
url: string | null
|
|
53
53
|
parseDate: Date | null
|
|
54
54
|
userPrompt: string | null
|
|
@@ -57,7 +57,7 @@ export type SourceReferenceMaxAggregateOutputType = {
|
|
|
57
57
|
export type SourceReferenceCountAggregateOutputType = {
|
|
58
58
|
id: number
|
|
59
59
|
sourceSlug: number
|
|
60
|
-
|
|
60
|
+
resourceId: number
|
|
61
61
|
url: number
|
|
62
62
|
parseDate: number
|
|
63
63
|
excerpts: number
|
|
@@ -77,7 +77,7 @@ export type SourceReferenceSumAggregateInputType = {
|
|
|
77
77
|
export type SourceReferenceMinAggregateInputType = {
|
|
78
78
|
id?: true
|
|
79
79
|
sourceSlug?: true
|
|
80
|
-
|
|
80
|
+
resourceId?: true
|
|
81
81
|
url?: true
|
|
82
82
|
parseDate?: true
|
|
83
83
|
userPrompt?: true
|
|
@@ -86,7 +86,7 @@ export type SourceReferenceMinAggregateInputType = {
|
|
|
86
86
|
export type SourceReferenceMaxAggregateInputType = {
|
|
87
87
|
id?: true
|
|
88
88
|
sourceSlug?: true
|
|
89
|
-
|
|
89
|
+
resourceId?: true
|
|
90
90
|
url?: true
|
|
91
91
|
parseDate?: true
|
|
92
92
|
userPrompt?: true
|
|
@@ -95,7 +95,7 @@ export type SourceReferenceMaxAggregateInputType = {
|
|
|
95
95
|
export type SourceReferenceCountAggregateInputType = {
|
|
96
96
|
id?: true
|
|
97
97
|
sourceSlug?: true
|
|
98
|
-
|
|
98
|
+
resourceId?: true
|
|
99
99
|
url?: true
|
|
100
100
|
parseDate?: true
|
|
101
101
|
excerpts?: true
|
|
@@ -192,7 +192,7 @@ export type SourceReferenceGroupByArgs<ExtArgs extends runtime.Types.Extensions.
|
|
|
192
192
|
export type SourceReferenceGroupByOutputType = {
|
|
193
193
|
id: number
|
|
194
194
|
sourceSlug: string
|
|
195
|
-
|
|
195
|
+
resourceId: string
|
|
196
196
|
url: string
|
|
197
197
|
parseDate: Date | null
|
|
198
198
|
excerpts: string[]
|
|
@@ -225,47 +225,47 @@ export type SourceReferenceWhereInput = {
|
|
|
225
225
|
NOT?: Prisma.SourceReferenceWhereInput | Prisma.SourceReferenceWhereInput[]
|
|
226
226
|
id?: Prisma.IntFilter<"SourceReference"> | number
|
|
227
227
|
sourceSlug?: Prisma.StringFilter<"SourceReference"> | string
|
|
228
|
-
|
|
228
|
+
resourceId?: Prisma.StringFilter<"SourceReference"> | string
|
|
229
229
|
url?: Prisma.StringFilter<"SourceReference"> | string
|
|
230
230
|
parseDate?: Prisma.DateTimeNullableFilter<"SourceReference"> | Date | string | null
|
|
231
231
|
excerpts?: Prisma.StringNullableListFilter<"SourceReference">
|
|
232
232
|
userPrompt?: Prisma.StringNullableFilter<"SourceReference"> | string | null
|
|
233
233
|
source?: Prisma.XOR<Prisma.SourceScalarRelationFilter, Prisma.SourceWhereInput>
|
|
234
|
-
|
|
234
|
+
resource?: Prisma.XOR<Prisma.DbResourceScalarRelationFilter, Prisma.DbResourceWhereInput>
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
export type SourceReferenceOrderByWithRelationInput = {
|
|
238
238
|
id?: Prisma.SortOrder
|
|
239
239
|
sourceSlug?: Prisma.SortOrder
|
|
240
|
-
|
|
240
|
+
resourceId?: Prisma.SortOrder
|
|
241
241
|
url?: Prisma.SortOrder
|
|
242
242
|
parseDate?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
243
243
|
excerpts?: Prisma.SortOrder
|
|
244
244
|
userPrompt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
245
245
|
source?: Prisma.SourceOrderByWithRelationInput
|
|
246
|
-
|
|
246
|
+
resource?: Prisma.DbResourceOrderByWithRelationInput
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
export type SourceReferenceWhereUniqueInput = Prisma.AtLeast<{
|
|
250
250
|
id?: number
|
|
251
|
-
|
|
251
|
+
resourceId_url?: Prisma.SourceReferenceResourceIdUrlCompoundUniqueInput
|
|
252
252
|
AND?: Prisma.SourceReferenceWhereInput | Prisma.SourceReferenceWhereInput[]
|
|
253
253
|
OR?: Prisma.SourceReferenceWhereInput[]
|
|
254
254
|
NOT?: Prisma.SourceReferenceWhereInput | Prisma.SourceReferenceWhereInput[]
|
|
255
255
|
sourceSlug?: Prisma.StringFilter<"SourceReference"> | string
|
|
256
|
-
|
|
256
|
+
resourceId?: Prisma.StringFilter<"SourceReference"> | string
|
|
257
257
|
url?: Prisma.StringFilter<"SourceReference"> | string
|
|
258
258
|
parseDate?: Prisma.DateTimeNullableFilter<"SourceReference"> | Date | string | null
|
|
259
259
|
excerpts?: Prisma.StringNullableListFilter<"SourceReference">
|
|
260
260
|
userPrompt?: Prisma.StringNullableFilter<"SourceReference"> | string | null
|
|
261
261
|
source?: Prisma.XOR<Prisma.SourceScalarRelationFilter, Prisma.SourceWhereInput>
|
|
262
|
-
|
|
263
|
-
}, "id" | "
|
|
262
|
+
resource?: Prisma.XOR<Prisma.DbResourceScalarRelationFilter, Prisma.DbResourceWhereInput>
|
|
263
|
+
}, "id" | "resourceId_url">
|
|
264
264
|
|
|
265
265
|
export type SourceReferenceOrderByWithAggregationInput = {
|
|
266
266
|
id?: Prisma.SortOrder
|
|
267
267
|
sourceSlug?: Prisma.SortOrder
|
|
268
|
-
|
|
268
|
+
resourceId?: Prisma.SortOrder
|
|
269
269
|
url?: Prisma.SortOrder
|
|
270
270
|
parseDate?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
271
271
|
excerpts?: Prisma.SortOrder
|
|
@@ -283,7 +283,7 @@ export type SourceReferenceScalarWhereWithAggregatesInput = {
|
|
|
283
283
|
NOT?: Prisma.SourceReferenceScalarWhereWithAggregatesInput | Prisma.SourceReferenceScalarWhereWithAggregatesInput[]
|
|
284
284
|
id?: Prisma.IntWithAggregatesFilter<"SourceReference"> | number
|
|
285
285
|
sourceSlug?: Prisma.StringWithAggregatesFilter<"SourceReference"> | string
|
|
286
|
-
|
|
286
|
+
resourceId?: Prisma.StringWithAggregatesFilter<"SourceReference"> | string
|
|
287
287
|
url?: Prisma.StringWithAggregatesFilter<"SourceReference"> | string
|
|
288
288
|
parseDate?: Prisma.DateTimeNullableWithAggregatesFilter<"SourceReference"> | Date | string | null
|
|
289
289
|
excerpts?: Prisma.StringNullableListFilter<"SourceReference">
|
|
@@ -296,13 +296,13 @@ export type SourceReferenceCreateInput = {
|
|
|
296
296
|
excerpts?: Prisma.SourceReferenceCreateexcerptsInput | string[]
|
|
297
297
|
userPrompt?: string | null
|
|
298
298
|
source: Prisma.SourceCreateNestedOneWithoutReferencesInput
|
|
299
|
-
|
|
299
|
+
resource: Prisma.DbResourceCreateNestedOneWithoutSourceRefsInput
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
export type SourceReferenceUncheckedCreateInput = {
|
|
303
303
|
id?: number
|
|
304
304
|
sourceSlug: string
|
|
305
|
-
|
|
305
|
+
resourceId: string
|
|
306
306
|
url: string
|
|
307
307
|
parseDate?: Date | string | null
|
|
308
308
|
excerpts?: Prisma.SourceReferenceCreateexcerptsInput | string[]
|
|
@@ -315,13 +315,13 @@ export type SourceReferenceUpdateInput = {
|
|
|
315
315
|
excerpts?: Prisma.SourceReferenceUpdateexcerptsInput | string[]
|
|
316
316
|
userPrompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
317
317
|
source?: Prisma.SourceUpdateOneRequiredWithoutReferencesNestedInput
|
|
318
|
-
|
|
318
|
+
resource?: Prisma.DbResourceUpdateOneRequiredWithoutSourceRefsNestedInput
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
export type SourceReferenceUncheckedUpdateInput = {
|
|
322
322
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
323
323
|
sourceSlug?: Prisma.StringFieldUpdateOperationsInput | string
|
|
324
|
-
|
|
324
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
325
325
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
326
326
|
parseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
327
327
|
excerpts?: Prisma.SourceReferenceUpdateexcerptsInput | string[]
|
|
@@ -331,7 +331,7 @@ export type SourceReferenceUncheckedUpdateInput = {
|
|
|
331
331
|
export type SourceReferenceCreateManyInput = {
|
|
332
332
|
id?: number
|
|
333
333
|
sourceSlug: string
|
|
334
|
-
|
|
334
|
+
resourceId: string
|
|
335
335
|
url: string
|
|
336
336
|
parseDate?: Date | string | null
|
|
337
337
|
excerpts?: Prisma.SourceReferenceCreateexcerptsInput | string[]
|
|
@@ -348,7 +348,7 @@ export type SourceReferenceUpdateManyMutationInput = {
|
|
|
348
348
|
export type SourceReferenceUncheckedUpdateManyInput = {
|
|
349
349
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
350
350
|
sourceSlug?: Prisma.StringFieldUpdateOperationsInput | string
|
|
351
|
-
|
|
351
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
352
352
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
353
353
|
parseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
354
354
|
excerpts?: Prisma.SourceReferenceUpdateexcerptsInput | string[]
|
|
@@ -365,15 +365,15 @@ export type SourceReferenceOrderByRelationAggregateInput = {
|
|
|
365
365
|
_count?: Prisma.SortOrder
|
|
366
366
|
}
|
|
367
367
|
|
|
368
|
-
export type
|
|
369
|
-
|
|
368
|
+
export type SourceReferenceResourceIdUrlCompoundUniqueInput = {
|
|
369
|
+
resourceId: string
|
|
370
370
|
url: string
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
export type SourceReferenceCountOrderByAggregateInput = {
|
|
374
374
|
id?: Prisma.SortOrder
|
|
375
375
|
sourceSlug?: Prisma.SortOrder
|
|
376
|
-
|
|
376
|
+
resourceId?: Prisma.SortOrder
|
|
377
377
|
url?: Prisma.SortOrder
|
|
378
378
|
parseDate?: Prisma.SortOrder
|
|
379
379
|
excerpts?: Prisma.SortOrder
|
|
@@ -387,7 +387,7 @@ export type SourceReferenceAvgOrderByAggregateInput = {
|
|
|
387
387
|
export type SourceReferenceMaxOrderByAggregateInput = {
|
|
388
388
|
id?: Prisma.SortOrder
|
|
389
389
|
sourceSlug?: Prisma.SortOrder
|
|
390
|
-
|
|
390
|
+
resourceId?: Prisma.SortOrder
|
|
391
391
|
url?: Prisma.SortOrder
|
|
392
392
|
parseDate?: Prisma.SortOrder
|
|
393
393
|
userPrompt?: Prisma.SortOrder
|
|
@@ -396,7 +396,7 @@ export type SourceReferenceMaxOrderByAggregateInput = {
|
|
|
396
396
|
export type SourceReferenceMinOrderByAggregateInput = {
|
|
397
397
|
id?: Prisma.SortOrder
|
|
398
398
|
sourceSlug?: Prisma.SortOrder
|
|
399
|
-
|
|
399
|
+
resourceId?: Prisma.SortOrder
|
|
400
400
|
url?: Prisma.SortOrder
|
|
401
401
|
parseDate?: Prisma.SortOrder
|
|
402
402
|
userPrompt?: Prisma.SortOrder
|
|
@@ -406,45 +406,45 @@ export type SourceReferenceSumOrderByAggregateInput = {
|
|
|
406
406
|
id?: Prisma.SortOrder
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
export type
|
|
410
|
-
create?: Prisma.XOR<Prisma.
|
|
411
|
-
connectOrCreate?: Prisma.
|
|
412
|
-
createMany?: Prisma.
|
|
409
|
+
export type SourceReferenceCreateNestedManyWithoutResourceInput = {
|
|
410
|
+
create?: Prisma.XOR<Prisma.SourceReferenceCreateWithoutResourceInput, Prisma.SourceReferenceUncheckedCreateWithoutResourceInput> | Prisma.SourceReferenceCreateWithoutResourceInput[] | Prisma.SourceReferenceUncheckedCreateWithoutResourceInput[]
|
|
411
|
+
connectOrCreate?: Prisma.SourceReferenceCreateOrConnectWithoutResourceInput | Prisma.SourceReferenceCreateOrConnectWithoutResourceInput[]
|
|
412
|
+
createMany?: Prisma.SourceReferenceCreateManyResourceInputEnvelope
|
|
413
413
|
connect?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
export type
|
|
417
|
-
create?: Prisma.XOR<Prisma.
|
|
418
|
-
connectOrCreate?: Prisma.
|
|
419
|
-
createMany?: Prisma.
|
|
416
|
+
export type SourceReferenceUncheckedCreateNestedManyWithoutResourceInput = {
|
|
417
|
+
create?: Prisma.XOR<Prisma.SourceReferenceCreateWithoutResourceInput, Prisma.SourceReferenceUncheckedCreateWithoutResourceInput> | Prisma.SourceReferenceCreateWithoutResourceInput[] | Prisma.SourceReferenceUncheckedCreateWithoutResourceInput[]
|
|
418
|
+
connectOrCreate?: Prisma.SourceReferenceCreateOrConnectWithoutResourceInput | Prisma.SourceReferenceCreateOrConnectWithoutResourceInput[]
|
|
419
|
+
createMany?: Prisma.SourceReferenceCreateManyResourceInputEnvelope
|
|
420
420
|
connect?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
export type
|
|
424
|
-
create?: Prisma.XOR<Prisma.
|
|
425
|
-
connectOrCreate?: Prisma.
|
|
426
|
-
upsert?: Prisma.
|
|
427
|
-
createMany?: Prisma.
|
|
423
|
+
export type SourceReferenceUpdateManyWithoutResourceNestedInput = {
|
|
424
|
+
create?: Prisma.XOR<Prisma.SourceReferenceCreateWithoutResourceInput, Prisma.SourceReferenceUncheckedCreateWithoutResourceInput> | Prisma.SourceReferenceCreateWithoutResourceInput[] | Prisma.SourceReferenceUncheckedCreateWithoutResourceInput[]
|
|
425
|
+
connectOrCreate?: Prisma.SourceReferenceCreateOrConnectWithoutResourceInput | Prisma.SourceReferenceCreateOrConnectWithoutResourceInput[]
|
|
426
|
+
upsert?: Prisma.SourceReferenceUpsertWithWhereUniqueWithoutResourceInput | Prisma.SourceReferenceUpsertWithWhereUniqueWithoutResourceInput[]
|
|
427
|
+
createMany?: Prisma.SourceReferenceCreateManyResourceInputEnvelope
|
|
428
428
|
set?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
429
429
|
disconnect?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
430
430
|
delete?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
431
431
|
connect?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
432
|
-
update?: Prisma.
|
|
433
|
-
updateMany?: Prisma.
|
|
432
|
+
update?: Prisma.SourceReferenceUpdateWithWhereUniqueWithoutResourceInput | Prisma.SourceReferenceUpdateWithWhereUniqueWithoutResourceInput[]
|
|
433
|
+
updateMany?: Prisma.SourceReferenceUpdateManyWithWhereWithoutResourceInput | Prisma.SourceReferenceUpdateManyWithWhereWithoutResourceInput[]
|
|
434
434
|
deleteMany?: Prisma.SourceReferenceScalarWhereInput | Prisma.SourceReferenceScalarWhereInput[]
|
|
435
435
|
}
|
|
436
436
|
|
|
437
|
-
export type
|
|
438
|
-
create?: Prisma.XOR<Prisma.
|
|
439
|
-
connectOrCreate?: Prisma.
|
|
440
|
-
upsert?: Prisma.
|
|
441
|
-
createMany?: Prisma.
|
|
437
|
+
export type SourceReferenceUncheckedUpdateManyWithoutResourceNestedInput = {
|
|
438
|
+
create?: Prisma.XOR<Prisma.SourceReferenceCreateWithoutResourceInput, Prisma.SourceReferenceUncheckedCreateWithoutResourceInput> | Prisma.SourceReferenceCreateWithoutResourceInput[] | Prisma.SourceReferenceUncheckedCreateWithoutResourceInput[]
|
|
439
|
+
connectOrCreate?: Prisma.SourceReferenceCreateOrConnectWithoutResourceInput | Prisma.SourceReferenceCreateOrConnectWithoutResourceInput[]
|
|
440
|
+
upsert?: Prisma.SourceReferenceUpsertWithWhereUniqueWithoutResourceInput | Prisma.SourceReferenceUpsertWithWhereUniqueWithoutResourceInput[]
|
|
441
|
+
createMany?: Prisma.SourceReferenceCreateManyResourceInputEnvelope
|
|
442
442
|
set?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
443
443
|
disconnect?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
444
444
|
delete?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
445
445
|
connect?: Prisma.SourceReferenceWhereUniqueInput | Prisma.SourceReferenceWhereUniqueInput[]
|
|
446
|
-
update?: Prisma.
|
|
447
|
-
updateMany?: Prisma.
|
|
446
|
+
update?: Prisma.SourceReferenceUpdateWithWhereUniqueWithoutResourceInput | Prisma.SourceReferenceUpdateWithWhereUniqueWithoutResourceInput[]
|
|
447
|
+
updateMany?: Prisma.SourceReferenceUpdateManyWithWhereWithoutResourceInput | Prisma.SourceReferenceUpdateManyWithWhereWithoutResourceInput[]
|
|
448
448
|
deleteMany?: Prisma.SourceReferenceScalarWhereInput | Prisma.SourceReferenceScalarWhereInput[]
|
|
449
449
|
}
|
|
450
450
|
|
|
@@ -499,7 +499,7 @@ export type SourceReferenceUpdateexcerptsInput = {
|
|
|
499
499
|
push?: string | string[]
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
export type
|
|
502
|
+
export type SourceReferenceCreateWithoutResourceInput = {
|
|
503
503
|
url: string
|
|
504
504
|
parseDate?: Date | string | null
|
|
505
505
|
excerpts?: Prisma.SourceReferenceCreateexcerptsInput | string[]
|
|
@@ -507,7 +507,7 @@ export type SourceReferenceCreateWithoutAppInput = {
|
|
|
507
507
|
source: Prisma.SourceCreateNestedOneWithoutReferencesInput
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
-
export type
|
|
510
|
+
export type SourceReferenceUncheckedCreateWithoutResourceInput = {
|
|
511
511
|
id?: number
|
|
512
512
|
sourceSlug: string
|
|
513
513
|
url: string
|
|
@@ -516,30 +516,30 @@ export type SourceReferenceUncheckedCreateWithoutAppInput = {
|
|
|
516
516
|
userPrompt?: string | null
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
export type
|
|
519
|
+
export type SourceReferenceCreateOrConnectWithoutResourceInput = {
|
|
520
520
|
where: Prisma.SourceReferenceWhereUniqueInput
|
|
521
|
-
create: Prisma.XOR<Prisma.
|
|
521
|
+
create: Prisma.XOR<Prisma.SourceReferenceCreateWithoutResourceInput, Prisma.SourceReferenceUncheckedCreateWithoutResourceInput>
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
export type
|
|
525
|
-
data: Prisma.
|
|
524
|
+
export type SourceReferenceCreateManyResourceInputEnvelope = {
|
|
525
|
+
data: Prisma.SourceReferenceCreateManyResourceInput | Prisma.SourceReferenceCreateManyResourceInput[]
|
|
526
526
|
skipDuplicates?: boolean
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
export type
|
|
529
|
+
export type SourceReferenceUpsertWithWhereUniqueWithoutResourceInput = {
|
|
530
530
|
where: Prisma.SourceReferenceWhereUniqueInput
|
|
531
|
-
update: Prisma.XOR<Prisma.
|
|
532
|
-
create: Prisma.XOR<Prisma.
|
|
531
|
+
update: Prisma.XOR<Prisma.SourceReferenceUpdateWithoutResourceInput, Prisma.SourceReferenceUncheckedUpdateWithoutResourceInput>
|
|
532
|
+
create: Prisma.XOR<Prisma.SourceReferenceCreateWithoutResourceInput, Prisma.SourceReferenceUncheckedCreateWithoutResourceInput>
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
export type
|
|
535
|
+
export type SourceReferenceUpdateWithWhereUniqueWithoutResourceInput = {
|
|
536
536
|
where: Prisma.SourceReferenceWhereUniqueInput
|
|
537
|
-
data: Prisma.XOR<Prisma.
|
|
537
|
+
data: Prisma.XOR<Prisma.SourceReferenceUpdateWithoutResourceInput, Prisma.SourceReferenceUncheckedUpdateWithoutResourceInput>
|
|
538
538
|
}
|
|
539
539
|
|
|
540
|
-
export type
|
|
540
|
+
export type SourceReferenceUpdateManyWithWhereWithoutResourceInput = {
|
|
541
541
|
where: Prisma.SourceReferenceScalarWhereInput
|
|
542
|
-
data: Prisma.XOR<Prisma.SourceReferenceUpdateManyMutationInput, Prisma.
|
|
542
|
+
data: Prisma.XOR<Prisma.SourceReferenceUpdateManyMutationInput, Prisma.SourceReferenceUncheckedUpdateManyWithoutResourceInput>
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
export type SourceReferenceScalarWhereInput = {
|
|
@@ -548,7 +548,7 @@ export type SourceReferenceScalarWhereInput = {
|
|
|
548
548
|
NOT?: Prisma.SourceReferenceScalarWhereInput | Prisma.SourceReferenceScalarWhereInput[]
|
|
549
549
|
id?: Prisma.IntFilter<"SourceReference"> | number
|
|
550
550
|
sourceSlug?: Prisma.StringFilter<"SourceReference"> | string
|
|
551
|
-
|
|
551
|
+
resourceId?: Prisma.StringFilter<"SourceReference"> | string
|
|
552
552
|
url?: Prisma.StringFilter<"SourceReference"> | string
|
|
553
553
|
parseDate?: Prisma.DateTimeNullableFilter<"SourceReference"> | Date | string | null
|
|
554
554
|
excerpts?: Prisma.StringNullableListFilter<"SourceReference">
|
|
@@ -560,12 +560,12 @@ export type SourceReferenceCreateWithoutSourceInput = {
|
|
|
560
560
|
parseDate?: Date | string | null
|
|
561
561
|
excerpts?: Prisma.SourceReferenceCreateexcerptsInput | string[]
|
|
562
562
|
userPrompt?: string | null
|
|
563
|
-
|
|
563
|
+
resource: Prisma.DbResourceCreateNestedOneWithoutSourceRefsInput
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
export type SourceReferenceUncheckedCreateWithoutSourceInput = {
|
|
567
567
|
id?: number
|
|
568
|
-
|
|
568
|
+
resourceId: string
|
|
569
569
|
url: string
|
|
570
570
|
parseDate?: Date | string | null
|
|
571
571
|
excerpts?: Prisma.SourceReferenceCreateexcerptsInput | string[]
|
|
@@ -598,7 +598,7 @@ export type SourceReferenceUpdateManyWithWhereWithoutSourceInput = {
|
|
|
598
598
|
data: Prisma.XOR<Prisma.SourceReferenceUpdateManyMutationInput, Prisma.SourceReferenceUncheckedUpdateManyWithoutSourceInput>
|
|
599
599
|
}
|
|
600
600
|
|
|
601
|
-
export type
|
|
601
|
+
export type SourceReferenceCreateManyResourceInput = {
|
|
602
602
|
id?: number
|
|
603
603
|
sourceSlug: string
|
|
604
604
|
url: string
|
|
@@ -607,7 +607,7 @@ export type SourceReferenceCreateManyAppInput = {
|
|
|
607
607
|
userPrompt?: string | null
|
|
608
608
|
}
|
|
609
609
|
|
|
610
|
-
export type
|
|
610
|
+
export type SourceReferenceUpdateWithoutResourceInput = {
|
|
611
611
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
612
612
|
parseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
613
613
|
excerpts?: Prisma.SourceReferenceUpdateexcerptsInput | string[]
|
|
@@ -615,7 +615,7 @@ export type SourceReferenceUpdateWithoutAppInput = {
|
|
|
615
615
|
source?: Prisma.SourceUpdateOneRequiredWithoutReferencesNestedInput
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
export type
|
|
618
|
+
export type SourceReferenceUncheckedUpdateWithoutResourceInput = {
|
|
619
619
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
620
620
|
sourceSlug?: Prisma.StringFieldUpdateOperationsInput | string
|
|
621
621
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -624,7 +624,7 @@ export type SourceReferenceUncheckedUpdateWithoutAppInput = {
|
|
|
624
624
|
userPrompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
625
625
|
}
|
|
626
626
|
|
|
627
|
-
export type
|
|
627
|
+
export type SourceReferenceUncheckedUpdateManyWithoutResourceInput = {
|
|
628
628
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
629
629
|
sourceSlug?: Prisma.StringFieldUpdateOperationsInput | string
|
|
630
630
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
@@ -635,7 +635,7 @@ export type SourceReferenceUncheckedUpdateManyWithoutAppInput = {
|
|
|
635
635
|
|
|
636
636
|
export type SourceReferenceCreateManySourceInput = {
|
|
637
637
|
id?: number
|
|
638
|
-
|
|
638
|
+
resourceId: string
|
|
639
639
|
url: string
|
|
640
640
|
parseDate?: Date | string | null
|
|
641
641
|
excerpts?: Prisma.SourceReferenceCreateexcerptsInput | string[]
|
|
@@ -647,12 +647,12 @@ export type SourceReferenceUpdateWithoutSourceInput = {
|
|
|
647
647
|
parseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
648
648
|
excerpts?: Prisma.SourceReferenceUpdateexcerptsInput | string[]
|
|
649
649
|
userPrompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
650
|
-
|
|
650
|
+
resource?: Prisma.DbResourceUpdateOneRequiredWithoutSourceRefsNestedInput
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
export type SourceReferenceUncheckedUpdateWithoutSourceInput = {
|
|
654
654
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
655
|
-
|
|
655
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
656
656
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
657
657
|
parseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
658
658
|
excerpts?: Prisma.SourceReferenceUpdateexcerptsInput | string[]
|
|
@@ -661,7 +661,7 @@ export type SourceReferenceUncheckedUpdateWithoutSourceInput = {
|
|
|
661
661
|
|
|
662
662
|
export type SourceReferenceUncheckedUpdateManyWithoutSourceInput = {
|
|
663
663
|
id?: Prisma.IntFieldUpdateOperationsInput | number
|
|
664
|
-
|
|
664
|
+
resourceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
665
665
|
url?: Prisma.StringFieldUpdateOperationsInput | string
|
|
666
666
|
parseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
667
667
|
excerpts?: Prisma.SourceReferenceUpdateexcerptsInput | string[]
|
|
@@ -673,73 +673,73 @@ export type SourceReferenceUncheckedUpdateManyWithoutSourceInput = {
|
|
|
673
673
|
export type SourceReferenceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
674
674
|
id?: boolean
|
|
675
675
|
sourceSlug?: boolean
|
|
676
|
-
|
|
676
|
+
resourceId?: boolean
|
|
677
677
|
url?: boolean
|
|
678
678
|
parseDate?: boolean
|
|
679
679
|
excerpts?: boolean
|
|
680
680
|
userPrompt?: boolean
|
|
681
681
|
source?: boolean | Prisma.SourceDefaultArgs<ExtArgs>
|
|
682
|
-
|
|
682
|
+
resource?: boolean | Prisma.DbResourceDefaultArgs<ExtArgs>
|
|
683
683
|
}, ExtArgs["result"]["sourceReference"]>
|
|
684
684
|
|
|
685
685
|
export type SourceReferenceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
686
686
|
id?: boolean
|
|
687
687
|
sourceSlug?: boolean
|
|
688
|
-
|
|
688
|
+
resourceId?: boolean
|
|
689
689
|
url?: boolean
|
|
690
690
|
parseDate?: boolean
|
|
691
691
|
excerpts?: boolean
|
|
692
692
|
userPrompt?: boolean
|
|
693
693
|
source?: boolean | Prisma.SourceDefaultArgs<ExtArgs>
|
|
694
|
-
|
|
694
|
+
resource?: boolean | Prisma.DbResourceDefaultArgs<ExtArgs>
|
|
695
695
|
}, ExtArgs["result"]["sourceReference"]>
|
|
696
696
|
|
|
697
697
|
export type SourceReferenceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
698
698
|
id?: boolean
|
|
699
699
|
sourceSlug?: boolean
|
|
700
|
-
|
|
700
|
+
resourceId?: boolean
|
|
701
701
|
url?: boolean
|
|
702
702
|
parseDate?: boolean
|
|
703
703
|
excerpts?: boolean
|
|
704
704
|
userPrompt?: boolean
|
|
705
705
|
source?: boolean | Prisma.SourceDefaultArgs<ExtArgs>
|
|
706
|
-
|
|
706
|
+
resource?: boolean | Prisma.DbResourceDefaultArgs<ExtArgs>
|
|
707
707
|
}, ExtArgs["result"]["sourceReference"]>
|
|
708
708
|
|
|
709
709
|
export type SourceReferenceSelectScalar = {
|
|
710
710
|
id?: boolean
|
|
711
711
|
sourceSlug?: boolean
|
|
712
|
-
|
|
712
|
+
resourceId?: boolean
|
|
713
713
|
url?: boolean
|
|
714
714
|
parseDate?: boolean
|
|
715
715
|
excerpts?: boolean
|
|
716
716
|
userPrompt?: boolean
|
|
717
717
|
}
|
|
718
718
|
|
|
719
|
-
export type SourceReferenceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sourceSlug" | "
|
|
719
|
+
export type SourceReferenceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sourceSlug" | "resourceId" | "url" | "parseDate" | "excerpts" | "userPrompt", ExtArgs["result"]["sourceReference"]>
|
|
720
720
|
export type SourceReferenceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
721
721
|
source?: boolean | Prisma.SourceDefaultArgs<ExtArgs>
|
|
722
|
-
|
|
722
|
+
resource?: boolean | Prisma.DbResourceDefaultArgs<ExtArgs>
|
|
723
723
|
}
|
|
724
724
|
export type SourceReferenceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
725
725
|
source?: boolean | Prisma.SourceDefaultArgs<ExtArgs>
|
|
726
|
-
|
|
726
|
+
resource?: boolean | Prisma.DbResourceDefaultArgs<ExtArgs>
|
|
727
727
|
}
|
|
728
728
|
export type SourceReferenceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
729
729
|
source?: boolean | Prisma.SourceDefaultArgs<ExtArgs>
|
|
730
|
-
|
|
730
|
+
resource?: boolean | Prisma.DbResourceDefaultArgs<ExtArgs>
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
export type $SourceReferencePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
734
734
|
name: "SourceReference"
|
|
735
735
|
objects: {
|
|
736
736
|
source: Prisma.$SourcePayload<ExtArgs>
|
|
737
|
-
|
|
737
|
+
resource: Prisma.$DbResourcePayload<ExtArgs>
|
|
738
738
|
}
|
|
739
739
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
740
740
|
id: number
|
|
741
741
|
sourceSlug: string
|
|
742
|
-
|
|
742
|
+
resourceId: string
|
|
743
743
|
url: string
|
|
744
744
|
parseDate: Date | null
|
|
745
745
|
excerpts: string[]
|
|
@@ -1139,7 +1139,7 @@ readonly fields: SourceReferenceFieldRefs;
|
|
|
1139
1139
|
export interface Prisma__SourceReferenceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1140
1140
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1141
1141
|
source<T extends Prisma.SourceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SourceDefaultArgs<ExtArgs>>): Prisma.Prisma__SourceClient<runtime.Types.Result.GetResult<Prisma.$SourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1142
|
-
|
|
1142
|
+
resource<T extends Prisma.DbResourceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DbResourceDefaultArgs<ExtArgs>>): Prisma.Prisma__DbResourceClient<runtime.Types.Result.GetResult<Prisma.$DbResourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1145
1145
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1171,7 +1171,7 @@ export interface Prisma__SourceReferenceClient<T, Null = never, ExtArgs extends
|
|
|
1171
1171
|
export interface SourceReferenceFieldRefs {
|
|
1172
1172
|
readonly id: Prisma.FieldRef<"SourceReference", 'Int'>
|
|
1173
1173
|
readonly sourceSlug: Prisma.FieldRef<"SourceReference", 'String'>
|
|
1174
|
-
readonly
|
|
1174
|
+
readonly resourceId: Prisma.FieldRef<"SourceReference", 'String'>
|
|
1175
1175
|
readonly url: Prisma.FieldRef<"SourceReference", 'String'>
|
|
1176
1176
|
readonly parseDate: Prisma.FieldRef<"SourceReference", 'DateTime'>
|
|
1177
1177
|
readonly excerpts: Prisma.FieldRef<"SourceReference", 'String[]'>
|
|
@@ -16,8 +16,7 @@ export type * from './models/DbPerson'
|
|
|
16
16
|
export type * from './models/DbGroup'
|
|
17
17
|
export type * from './models/DbGroupMembership'
|
|
18
18
|
export type * from './models/DbApprovalMethod'
|
|
19
|
-
export type * from './models/
|
|
20
|
-
export type * from './models/DbSubResource'
|
|
19
|
+
export type * from './models/DbResource'
|
|
21
20
|
export type * from './models/DbAppTagDefinition'
|
|
22
21
|
export type * from './models/DbAsset'
|
|
23
22
|
export type * from './models/Source'
|
package/src/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type { AcStaticControllerContract } from './server/acStaticControllerCont
|
|
|
15
15
|
|
|
16
16
|
// backend-only
|
|
17
17
|
|
|
18
|
-
export type {
|
|
18
|
+
export type { Resource } from './types/common/appCatalogTypes'
|
|
19
19
|
export * from './types/index'
|
|
20
20
|
|
|
21
21
|
// Auth
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Resource } from '../../types/common/appCatalogTypes'
|
|
2
2
|
import { getDbClient } from '../../db/client'
|
|
3
3
|
|
|
4
4
|
interface LinkCheck {
|
|
@@ -147,9 +147,9 @@ function formatStatus(status: number | null, error?: string): string {
|
|
|
147
147
|
return `${status}`
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
async function getAppsFromDb(): Promise<
|
|
150
|
+
async function getAppsFromDb(): Promise<Resource[]> {
|
|
151
151
|
const prisma = getDbClient()
|
|
152
|
-
const rows = await prisma.
|
|
152
|
+
const rows = await prisma.dbResource.findMany({
|
|
153
153
|
include: {
|
|
154
154
|
sourceRefs: true,
|
|
155
155
|
},
|
|
@@ -157,11 +157,11 @@ async function getAppsFromDb(): Promise<AppForCatalog[]> {
|
|
|
157
157
|
|
|
158
158
|
return rows.map((row) => {
|
|
159
159
|
const accessRequest =
|
|
160
|
-
row.accessRequest as unknown as
|
|
160
|
+
row.accessRequest as unknown as Resource['accessRequest']
|
|
161
161
|
const teams = (row.teams as unknown as string[] | null) ?? []
|
|
162
|
-
const tags = (row.tags as unknown as
|
|
162
|
+
const tags = (row.tags as unknown as Resource['tags']) ?? []
|
|
163
163
|
const screenshotIds =
|
|
164
|
-
(row.screenshotIds as unknown as
|
|
164
|
+
(row.screenshotIds as unknown as Resource['screenshotIds']) ?? []
|
|
165
165
|
const sources = row.sourceRefs.map((ref) => ({
|
|
166
166
|
sourceSlug: ref.sourceSlug,
|
|
167
167
|
url: ref.url,
|
|
@@ -173,7 +173,7 @@ async function getAppsFromDb(): Promise<AppForCatalog[]> {
|
|
|
173
173
|
const deprecated =
|
|
174
174
|
row.deprecated == null
|
|
175
175
|
? undefined
|
|
176
|
-
: (row.deprecated as unknown as
|
|
176
|
+
: (row.deprecated as unknown as Resource['deprecated'])
|
|
177
177
|
|
|
178
178
|
return {
|
|
179
179
|
id: row.id,
|