@igstack/app-catalog-backend-core 6.10.2 → 6.11.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.mjs +1 -1
- package/dist/generated/prisma/client.d.mts +1 -1
- package/dist/generated/prisma/client.mjs.map +1 -1
- package/dist/generated/prisma/commonInputTypes.d.mts +33 -3
- package/dist/generated/prisma/commonInputTypes.d.mts.map +1 -1
- package/dist/generated/prisma/enums.d.mts +6 -1
- package/dist/generated/prisma/enums.d.mts.map +1 -1
- package/dist/generated/prisma/internal/class.d.mts +84 -0
- 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 +617 -4
- package/dist/generated/prisma/internal/prismaNamespace.d.mts.map +1 -1
- package/dist/generated/prisma/models/DbCommunityTool.d.mts +2852 -0
- package/dist/generated/prisma/models/DbCommunityTool.d.mts.map +1 -0
- package/dist/generated/prisma/models/DbCommunityToolLike.d.mts +1102 -0
- package/dist/generated/prisma/models/DbCommunityToolLike.d.mts.map +1 -0
- package/dist/generated/prisma/models/DbCommunityToolNamedOwner.d.mts +1034 -0
- package/dist/generated/prisma/models/DbCommunityToolNamedOwner.d.mts.map +1 -0
- package/dist/generated/prisma/models/DbCommunityToolOwner.d.mts +1034 -0
- package/dist/generated/prisma/models/DbCommunityToolOwner.d.mts.map +1 -0
- package/dist/generated/prisma/models/DbCommunityToolPin.d.mts +1110 -0
- package/dist/generated/prisma/models/DbCommunityToolPin.d.mts.map +1 -0
- package/dist/generated/prisma/models/DbCommunityToolTag.d.mts +1073 -0
- package/dist/generated/prisma/models/DbCommunityToolTag.d.mts.map +1 -0
- package/dist/generated/prisma/models/DbCommunityToolView.d.mts +1149 -0
- package/dist/generated/prisma/models/DbCommunityToolView.d.mts.map +1 -0
- package/dist/generated/prisma/models/DbFeedback.d.mts +361 -2
- package/dist/generated/prisma/models/DbFeedback.d.mts.map +1 -1
- package/dist/generated/prisma/models.d.mts +9 -2
- package/dist/index.d.mts +5 -2
- package/dist/index.mjs +3 -1
- package/dist/middleware/createAcMiddleware.d.mts.map +1 -1
- package/dist/middleware/createAcMiddleware.mjs +15 -1
- package/dist/middleware/createAcMiddleware.mjs.map +1 -1
- package/dist/middleware/database.d.mts +1 -1
- package/dist/middleware/types.d.mts +20 -1
- package/dist/middleware/types.d.mts.map +1 -1
- package/dist/modules/communityTools/capture.d.mts +27 -0
- package/dist/modules/communityTools/capture.d.mts.map +1 -0
- package/dist/modules/communityTools/capture.mjs +192 -0
- package/dist/modules/communityTools/capture.mjs.map +1 -0
- package/dist/modules/communityTools/healthJob.mjs +132 -0
- package/dist/modules/communityTools/healthJob.mjs.map +1 -0
- package/dist/modules/communityTools/router.d.mts +150 -0
- package/dist/modules/communityTools/router.d.mts.map +1 -0
- package/dist/modules/communityTools/router.mjs +91 -0
- package/dist/modules/communityTools/router.mjs.map +1 -0
- package/dist/modules/communityTools/service.mjs +252 -0
- package/dist/modules/communityTools/service.mjs.map +1 -0
- package/dist/modules/communityTools/toView.mjs +81 -0
- package/dist/modules/communityTools/toView.mjs.map +1 -0
- package/dist/modules/communityTools/writeService.d.mts +55 -0
- package/dist/modules/communityTools/writeService.d.mts.map +1 -0
- package/dist/modules/communityTools/writeService.mjs +280 -0
- package/dist/modules/communityTools/writeService.mjs.map +1 -0
- package/dist/modules/feedback/feedbackRouter.d.mts +3 -0
- package/dist/modules/feedback/feedbackRouter.mjs +6 -2
- package/dist/modules/feedback/feedbackRouter.mjs.map +1 -1
- package/dist/modules/feedback/service.d.mts +3 -0
- package/dist/modules/feedback/service.d.mts.map +1 -1
- package/dist/modules/feedback/service.mjs +50 -17
- package/dist/modules/feedback/service.mjs.map +1 -1
- package/dist/server/controller.d.mts +143 -0
- package/dist/server/controller.d.mts.map +1 -1
- package/dist/server/controller.mjs +2 -0
- package/dist/server/controller.mjs.map +1 -1
- package/dist/server/trpcSetup.mjs +1 -1
- package/package.json +12 -5
- package/prisma/schema.prisma +161 -0
- package/src/__tests__/communityTools.test.ts +781 -0
- package/src/__tests__/communityToolsCapture.test.ts +319 -0
- package/src/__tests__/communityToolsHealth.test.ts +154 -0
- package/src/__tests__/communityToolsRouter.test.ts +58 -0
- package/src/__tests__/communityToolsWrite.test.ts +561 -0
- package/src/__tests__/feedbackService.test.ts +160 -0
- package/src/generated/prisma/browser.ts +35 -0
- package/src/generated/prisma/client.ts +35 -0
- package/src/generated/prisma/commonInputTypes.ts +34 -0
- package/src/generated/prisma/enums.ts +8 -0
- package/src/generated/prisma/internal/class.ts +74 -4
- package/src/generated/prisma/internal/prismaNamespace.ts +635 -2
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +95 -1
- package/src/generated/prisma/models/DbCommunityTool.ts +3135 -0
- package/src/generated/prisma/models/DbCommunityToolLike.ts +1313 -0
- package/src/generated/prisma/models/DbCommunityToolNamedOwner.ts +1243 -0
- package/src/generated/prisma/models/DbCommunityToolOwner.ts +1243 -0
- package/src/generated/prisma/models/DbCommunityToolPin.ts +1325 -0
- package/src/generated/prisma/models/DbCommunityToolTag.ts +1283 -0
- package/src/generated/prisma/models/DbCommunityToolView.ts +1361 -0
- package/src/generated/prisma/models/DbFeedback.ts +379 -1
- package/src/generated/prisma/models.ts +7 -0
- package/src/index.ts +16 -0
- package/src/middleware/createAcMiddleware.ts +20 -0
- package/src/middleware/types.ts +21 -0
- package/src/modules/communityTools/capture.ts +332 -0
- package/src/modules/communityTools/healthJob.ts +191 -0
- package/src/modules/communityTools/router.ts +172 -0
- package/src/modules/communityTools/service.ts +380 -0
- package/src/modules/communityTools/toView.ts +112 -0
- package/src/modules/communityTools/writeService.ts +408 -0
- package/src/modules/feedback/feedbackRouter.ts +20 -6
- package/src/modules/feedback/service.ts +68 -12
- package/src/server/controller.ts +8 -1
|
@@ -107,3 +107,38 @@ export type Source = Prisma.SourceModel
|
|
|
107
107
|
*
|
|
108
108
|
*/
|
|
109
109
|
export type SourceReference = Prisma.SourceReferenceModel
|
|
110
|
+
/**
|
|
111
|
+
* Model DbCommunityTool
|
|
112
|
+
* A community-contributed tool or resource shared by catalog users.
|
|
113
|
+
*/
|
|
114
|
+
export type DbCommunityTool = Prisma.DbCommunityToolModel
|
|
115
|
+
/**
|
|
116
|
+
* Model DbCommunityToolOwner
|
|
117
|
+
* Many-to-many join between community tools and their owners.
|
|
118
|
+
*/
|
|
119
|
+
export type DbCommunityToolOwner = Prisma.DbCommunityToolOwnerModel
|
|
120
|
+
/**
|
|
121
|
+
* Model DbCommunityToolLike
|
|
122
|
+
* A signed-in person liked the tool; their name is kept for "Liked by".
|
|
123
|
+
*/
|
|
124
|
+
export type DbCommunityToolLike = Prisma.DbCommunityToolLikeModel
|
|
125
|
+
/**
|
|
126
|
+
* Model DbCommunityToolNamedOwner
|
|
127
|
+
* An owner outside the person directory: shown by name, never an editor.
|
|
128
|
+
*/
|
|
129
|
+
export type DbCommunityToolNamedOwner = Prisma.DbCommunityToolNamedOwnerModel
|
|
130
|
+
/**
|
|
131
|
+
* Model DbCommunityToolTag
|
|
132
|
+
* Tags attached to community tools (app associations and topics).
|
|
133
|
+
*/
|
|
134
|
+
export type DbCommunityToolTag = Prisma.DbCommunityToolTagModel
|
|
135
|
+
/**
|
|
136
|
+
* Model DbCommunityToolView
|
|
137
|
+
* View tracking for community tools (one row per viewer per tool per day).
|
|
138
|
+
*/
|
|
139
|
+
export type DbCommunityToolView = Prisma.DbCommunityToolViewModel
|
|
140
|
+
/**
|
|
141
|
+
* Model DbCommunityToolPin
|
|
142
|
+
* User-specific tool pins for personalized ordering.
|
|
143
|
+
*/
|
|
144
|
+
export type DbCommunityToolPin = Prisma.DbCommunityToolPinModel
|
|
@@ -131,3 +131,38 @@ export type Source = Prisma.SourceModel
|
|
|
131
131
|
*
|
|
132
132
|
*/
|
|
133
133
|
export type SourceReference = Prisma.SourceReferenceModel
|
|
134
|
+
/**
|
|
135
|
+
* Model DbCommunityTool
|
|
136
|
+
* A community-contributed tool or resource shared by catalog users.
|
|
137
|
+
*/
|
|
138
|
+
export type DbCommunityTool = Prisma.DbCommunityToolModel
|
|
139
|
+
/**
|
|
140
|
+
* Model DbCommunityToolOwner
|
|
141
|
+
* Many-to-many join between community tools and their owners.
|
|
142
|
+
*/
|
|
143
|
+
export type DbCommunityToolOwner = Prisma.DbCommunityToolOwnerModel
|
|
144
|
+
/**
|
|
145
|
+
* Model DbCommunityToolLike
|
|
146
|
+
* A signed-in person liked the tool; their name is kept for "Liked by".
|
|
147
|
+
*/
|
|
148
|
+
export type DbCommunityToolLike = Prisma.DbCommunityToolLikeModel
|
|
149
|
+
/**
|
|
150
|
+
* Model DbCommunityToolNamedOwner
|
|
151
|
+
* An owner outside the person directory: shown by name, never an editor.
|
|
152
|
+
*/
|
|
153
|
+
export type DbCommunityToolNamedOwner = Prisma.DbCommunityToolNamedOwnerModel
|
|
154
|
+
/**
|
|
155
|
+
* Model DbCommunityToolTag
|
|
156
|
+
* Tags attached to community tools (app associations and topics).
|
|
157
|
+
*/
|
|
158
|
+
export type DbCommunityToolTag = Prisma.DbCommunityToolTagModel
|
|
159
|
+
/**
|
|
160
|
+
* Model DbCommunityToolView
|
|
161
|
+
* View tracking for community tools (one row per viewer per tool per day).
|
|
162
|
+
*/
|
|
163
|
+
export type DbCommunityToolView = Prisma.DbCommunityToolViewModel
|
|
164
|
+
/**
|
|
165
|
+
* Model DbCommunityToolPin
|
|
166
|
+
* User-specific tool pins for personalized ordering.
|
|
167
|
+
*/
|
|
168
|
+
export type DbCommunityToolPin = Prisma.DbCommunityToolPinModel
|
|
@@ -372,6 +372,23 @@ export type EnumAssetTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
372
372
|
_max?: Prisma.NestedEnumAssetTypeFilter<$PrismaModel>
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
+
export type EnumCommunityTagKindFilter<$PrismaModel = never> = {
|
|
376
|
+
equals?: $Enums.CommunityTagKind | Prisma.EnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
377
|
+
in?: $Enums.CommunityTagKind[] | Prisma.ListEnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
378
|
+
notIn?: $Enums.CommunityTagKind[] | Prisma.ListEnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
379
|
+
not?: Prisma.NestedEnumCommunityTagKindFilter<$PrismaModel> | $Enums.CommunityTagKind
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export type EnumCommunityTagKindWithAggregatesFilter<$PrismaModel = never> = {
|
|
383
|
+
equals?: $Enums.CommunityTagKind | Prisma.EnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
384
|
+
in?: $Enums.CommunityTagKind[] | Prisma.ListEnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
385
|
+
notIn?: $Enums.CommunityTagKind[] | Prisma.ListEnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
386
|
+
not?: Prisma.NestedEnumCommunityTagKindWithAggregatesFilter<$PrismaModel> | $Enums.CommunityTagKind
|
|
387
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
388
|
+
_min?: Prisma.NestedEnumCommunityTagKindFilter<$PrismaModel>
|
|
389
|
+
_max?: Prisma.NestedEnumCommunityTagKindFilter<$PrismaModel>
|
|
390
|
+
}
|
|
391
|
+
|
|
375
392
|
export type NestedStringFilter<$PrismaModel = never> = {
|
|
376
393
|
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
|
377
394
|
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
|
@@ -689,4 +706,21 @@ export type NestedEnumAssetTypeWithAggregatesFilter<$PrismaModel = never> = {
|
|
|
689
706
|
_max?: Prisma.NestedEnumAssetTypeFilter<$PrismaModel>
|
|
690
707
|
}
|
|
691
708
|
|
|
709
|
+
export type NestedEnumCommunityTagKindFilter<$PrismaModel = never> = {
|
|
710
|
+
equals?: $Enums.CommunityTagKind | Prisma.EnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
711
|
+
in?: $Enums.CommunityTagKind[] | Prisma.ListEnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
712
|
+
notIn?: $Enums.CommunityTagKind[] | Prisma.ListEnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
713
|
+
not?: Prisma.NestedEnumCommunityTagKindFilter<$PrismaModel> | $Enums.CommunityTagKind
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export type NestedEnumCommunityTagKindWithAggregatesFilter<$PrismaModel = never> = {
|
|
717
|
+
equals?: $Enums.CommunityTagKind | Prisma.EnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
718
|
+
in?: $Enums.CommunityTagKind[] | Prisma.ListEnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
719
|
+
notIn?: $Enums.CommunityTagKind[] | Prisma.ListEnumCommunityTagKindFieldRefInput<$PrismaModel>
|
|
720
|
+
not?: Prisma.NestedEnumCommunityTagKindWithAggregatesFilter<$PrismaModel> | $Enums.CommunityTagKind
|
|
721
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
|
722
|
+
_min?: Prisma.NestedEnumCommunityTagKindFilter<$PrismaModel>
|
|
723
|
+
_max?: Prisma.NestedEnumCommunityTagKindFilter<$PrismaModel>
|
|
724
|
+
}
|
|
725
|
+
|
|
692
726
|
|
|
@@ -34,3 +34,11 @@ export const AssetType = {
|
|
|
34
34
|
} as const
|
|
35
35
|
|
|
36
36
|
export type AssetType = (typeof AssetType)[keyof typeof AssetType]
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export const CommunityTagKind = {
|
|
40
|
+
app: 'app',
|
|
41
|
+
topic: 'topic'
|
|
42
|
+
} as const
|
|
43
|
+
|
|
44
|
+
export type CommunityTagKind = (typeof CommunityTagKind)[keyof typeof CommunityTagKind]
|