@env-hopper/frontend-core 2.0.1-alpha.6 → 2.0.1-alpha.8
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/esm/__tests__/integration/factories/BackendMagazine.d.ts +359 -189
- package/dist/esm/__tests__/integration/factories/simpleDSL.d.ts +359 -189
- package/dist/esm/api/infra/trpc.d.ts +540 -285
- package/dist/esm/errors/AuthorizationError.d.ts +19 -0
- package/dist/esm/errors/AuthorizationError.js +20 -0
- package/dist/esm/errors/AuthorizationError.js.map +1 -0
- package/dist/esm/errors/index.d.ts +1 -0
- package/dist/esm/modules/admin-base/components/AdminLayout.js +6 -1
- package/dist/esm/modules/admin-base/components/AdminLayout.js.map +1 -1
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.js +2 -10
- package/dist/esm/modules/appCatalog/AppCatalogAdminPage.js.map +1 -1
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.js +42 -33
- package/dist/esm/modules/appCatalog/ui/components/AppDetailModal.js.map +1 -1
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.js +9 -3
- package/dist/esm/modules/appCatalog/ui/grid/AppCatalogGrid.js.map +1 -1
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.js +10 -3
- package/dist/esm/modules/appCatalog/ui/pages/AppCatalogPage.js.map +1 -1
- package/dist/esm/modules/approvalMethod/ApprovalDetailsFormFields.d.ts +7 -0
- package/dist/esm/modules/approvalMethod/ApprovalDetailsFormFields.js +323 -0
- package/dist/esm/modules/approvalMethod/ApprovalDetailsFormFields.js.map +1 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodForm.d.ts +14 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodForm.js +227 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodForm.js.map +1 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodSelector.d.ts +7 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodSelector.js +124 -0
- package/dist/esm/modules/approvalMethod/ApprovalMethodSelector.js.map +1 -0
- package/dist/esm/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.d.ts +213 -0
- package/dist/esm/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.js +26 -0
- package/dist/esm/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.js.map +1 -0
- package/dist/esm/modules/auth/AuthContext.js +9 -1
- package/dist/esm/modules/auth/AuthContext.js.map +1 -1
- package/dist/esm/modules/auth/authUtils.d.ts +4 -0
- package/dist/esm/modules/auth/authUtils.js +30 -0
- package/dist/esm/modules/auth/authUtils.js.map +1 -0
- package/dist/esm/modules/icons/IconManagementPage.js +14 -15
- package/dist/esm/modules/icons/IconManagementPage.js.map +1 -1
- package/dist/esm/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/schemas.js +1 -1
- package/dist/esm/routeTree.gen.d.ts +58 -12
- package/dist/esm/routeTree.gen.js +43 -26
- package/dist/esm/routeTree.gen.js.map +1 -1
- package/dist/esm/routes/__root.js +2 -3
- package/dist/esm/routes/__root.js.map +1 -1
- package/dist/esm/routes/admin/app-for-catalog/$id.d.ts +1 -1
- package/dist/esm/routes/admin/app-for-catalog/_id.js +26 -17
- package/dist/esm/routes/admin/app-for-catalog/_id.js.map +1 -1
- package/dist/esm/routes/admin/app-for-catalog/_id2.js +84 -129
- package/dist/esm/routes/admin/app-for-catalog/_id2.js.map +1 -1
- package/dist/esm/routes/admin/app-for-catalog/index.d.ts +1 -1
- package/dist/esm/routes/admin/app-for-catalog.d.ts +1 -1
- package/dist/esm/routes/admin/approval-methods/index.d.ts +19 -0
- package/dist/esm/routes/admin/approval-methods/index.js +24 -0
- package/dist/esm/routes/admin/approval-methods/index.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods/index2.js +100 -0
- package/dist/esm/routes/admin/approval-methods/index2.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods.d.ts +1 -0
- package/dist/esm/routes/admin/approval-methods.js +14 -0
- package/dist/esm/routes/admin/approval-methods.js.map +1 -0
- package/dist/esm/routes/admin/approval-methods2.js +7 -0
- package/dist/esm/routes/admin/approval-methods2.js.map +1 -0
- package/dist/esm/routes/admin/chat.d.ts +1 -1
- package/dist/esm/routes/admin/icons.d.ts +1 -1
- package/dist/esm/routes/admin/index.d.ts +1 -1
- package/dist/esm/routes/admin.d.ts +1 -1
- package/dist/esm/routes/admin.js +25 -0
- package/dist/esm/routes/admin.js.map +1 -1
- package/dist/esm/routes/admin2.js.map +1 -1
- package/dist/esm/ui/alert-dialog.d.ts +14 -0
- package/dist/esm/ui/alert-dialog.js +141 -0
- package/dist/esm/ui/alert-dialog.js.map +1 -0
- package/dist/esm/ui/command.js +1 -1
- package/dist/esm/ui/components/error/BaseErrorPage.d.ts +10 -0
- package/dist/esm/ui/components/error/BaseErrorPage.js +16 -0
- package/dist/esm/ui/components/error/BaseErrorPage.js.map +1 -0
- package/dist/esm/ui/components/error/DefaultErrorComponent.js +18 -25
- package/dist/esm/ui/components/error/DefaultErrorComponent.js.map +1 -1
- package/dist/esm/ui/components/error/ForbiddenErrorPage.d.ts +5 -0
- package/dist/esm/ui/components/error/ForbiddenErrorPage.js +54 -0
- package/dist/esm/ui/components/error/ForbiddenErrorPage.js.map +1 -0
- package/dist/esm/ui/components/error/RootErrorPage.d.ts +3 -0
- package/dist/esm/ui/components/error/RootErrorPage.js +6 -0
- package/dist/esm/ui/components/error/RootErrorPage.js.map +1 -1
- package/dist/esm/ui/crud-list/CrudList.d.ts +2 -0
- package/dist/esm/ui/crud-list/CrudList.js +189 -0
- package/dist/esm/ui/crud-list/CrudList.js.map +1 -0
- package/dist/esm/ui/crud-list/index.d.ts +2 -0
- package/dist/esm/ui/crud-list/types.d.ts +35 -0
- package/dist/esm/ui/editable-list/EditableListField.d.ts +2 -0
- package/dist/esm/ui/editable-list/EditableListField.js +130 -0
- package/dist/esm/ui/editable-list/EditableListField.js.map +1 -0
- package/dist/esm/ui/editable-list/index.d.ts +2 -0
- package/dist/esm/ui/editable-list/types.d.ts +17 -0
- package/dist/esm/ui/markdown-editor/MarkdownEditor.d.ts +9 -0
- package/dist/esm/ui/markdown-editor/MarkdownEditor.js +116 -0
- package/dist/esm/ui/markdown-editor/MarkdownEditor.js.map +1 -0
- package/dist/esm/ui/markdown-editor/MarkdownToolbar.d.ts +6 -0
- package/dist/esm/ui/markdown-editor/MarkdownToolbar.js +99 -0
- package/dist/esm/ui/markdown-editor/MarkdownToolbar.js.map +1 -0
- package/dist/esm/ui/markdown-editor/index.d.ts +2 -0
- package/dist/esm/ui/popover.js +40 -0
- package/dist/esm/ui/popover.js.map +1 -0
- package/package.json +8 -2
- package/src/errors/AuthorizationError.ts +32 -0
- package/src/errors/index.ts +1 -0
- package/src/modules/admin-base/components/AdminLayout.tsx +7 -1
- package/src/modules/appCatalog/AppCatalogAdminPage.tsx +2 -9
- package/src/modules/appCatalog/ui/components/AppDetailModal.tsx +47 -27
- package/src/modules/appCatalog/ui/grid/AppCatalogGrid.tsx +15 -3
- package/src/modules/appCatalog/ui/pages/AppCatalogPage.tsx +11 -5
- package/src/modules/approvalMethod/ApprovalDetailsFormFields.tsx +393 -0
- package/src/modules/approvalMethod/ApprovalMethodForm.tsx +323 -0
- package/src/modules/approvalMethod/ApprovalMethodSelector.tsx +150 -0
- package/src/modules/approvalMethod/api/ApiQueryMagazineApprovalMethod.ts +34 -0
- package/src/modules/auth/AuthContext.tsx +13 -0
- package/src/modules/auth/authUtils.ts +50 -0
- package/src/modules/icons/IconManagementPage.tsx +51 -43
- package/src/routeTree.gen.ts +50 -0
- package/src/routes/__root.tsx +4 -7
- package/src/routes/admin/app-for-catalog/$id.tsx +96 -168
- package/src/routes/admin/approval-methods/index.tsx +161 -0
- package/src/routes/admin/approval-methods.tsx +10 -0
- package/src/routes/admin.tsx +31 -0
- package/src/ui/alert-dialog.tsx +155 -0
- package/src/ui/components/error/BaseErrorPage.tsx +26 -0
- package/src/ui/components/error/DefaultErrorComponent.tsx +26 -33
- package/src/ui/components/error/ForbiddenErrorPage.tsx +89 -0
- package/src/ui/components/error/RootErrorPage.tsx +13 -0
- package/src/ui/crud-list/CrudList.tsx +274 -0
- package/src/ui/crud-list/index.ts +2 -0
- package/src/ui/crud-list/types.ts +44 -0
- package/src/ui/editable-list/EditableListField.tsx +188 -0
- package/src/ui/editable-list/index.ts +2 -0
- package/src/ui/editable-list/types.ts +18 -0
- package/src/ui/markdown-editor/MarkdownEditor.tsx +132 -0
- package/src/ui/markdown-editor/MarkdownToolbar.tsx +90 -0
- package/src/ui/markdown-editor/index.ts +2 -0
- package/dist/esm/modules/appCatalog/AppCatalogEditDialog.d.ts +0 -17
- package/dist/esm/modules/appCatalog/admin/ApproverFormFields.d.ts +0 -8
- package/dist/esm/modules/appCatalog/admin/ApproverFormFields.js +0 -266
- package/dist/esm/modules/appCatalog/admin/ApproverFormFields.js.map +0 -1
- package/dist/esm/modules/appCatalog/ui/components/ApproverDisplay.js +0 -138
- package/dist/esm/modules/appCatalog/ui/components/ApproverDisplay.js.map +0 -1
- package/src/modules/appCatalog/AppCatalogEditDialog.tsx +0 -268
- package/src/modules/appCatalog/admin/ApproverFormFields.tsx +0 -296
|
@@ -5,19 +5,19 @@ export declare const BackendMagazine: {
|
|
|
5
5
|
setupNetwork: (server: import('msw/node').SetupServerApi) => void;
|
|
6
6
|
overrideBackendNetwork: (fn: (server: import('msw/node').SetupServerApi, mswTrpc: import('msw-trpc/dist/types').ProcedureHandlerRecord<import('@trpc/server').TRPCBuiltRouter<{
|
|
7
7
|
ctx: import('@env-hopper/backend-core').EhTrpcContext;
|
|
8
|
-
meta:
|
|
8
|
+
meta: object;
|
|
9
9
|
errorShape: import('@trpc/server').TRPCDefaultErrorShape;
|
|
10
10
|
transformer: false;
|
|
11
11
|
}, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
|
|
12
12
|
bootstrap: import('@trpc/server').TRPCQueryProcedure<{
|
|
13
13
|
input: void;
|
|
14
14
|
output: import('@env-hopper/backend-core').BootstrapConfigData;
|
|
15
|
-
meta:
|
|
15
|
+
meta: object;
|
|
16
16
|
}>;
|
|
17
17
|
availabilityMatrix: import('@trpc/server').TRPCQueryProcedure<{
|
|
18
18
|
input: void;
|
|
19
19
|
output: import('@env-hopper/backend-core').AvailabilityMatrixData;
|
|
20
|
-
meta:
|
|
20
|
+
meta: object;
|
|
21
21
|
}>;
|
|
22
22
|
tryFindRenameRule: import('@trpc/server').TRPCQueryProcedure<{
|
|
23
23
|
input: {
|
|
@@ -25,17 +25,17 @@ export declare const BackendMagazine: {
|
|
|
25
25
|
resourceSlug?: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
output: false | import('@env-hopper/backend-core').RenameRule;
|
|
28
|
-
meta:
|
|
28
|
+
meta: object;
|
|
29
29
|
}>;
|
|
30
30
|
resourceJumps: import('@trpc/server').TRPCQueryProcedure<{
|
|
31
31
|
input: void;
|
|
32
32
|
output: import('@env-hopper/backend-core').ResourceJumpsData;
|
|
33
|
-
meta:
|
|
33
|
+
meta: object;
|
|
34
34
|
}>;
|
|
35
35
|
resourceJumpsExtended: import('@trpc/server').TRPCQueryProcedure<{
|
|
36
36
|
input: void;
|
|
37
37
|
output: import('@env-hopper/backend-core').ResourceJumpsExtendedData;
|
|
38
|
-
meta:
|
|
38
|
+
meta: object;
|
|
39
39
|
}>;
|
|
40
40
|
resourceJumpBySlugAndEnv: import('@trpc/server').TRPCQueryProcedure<{
|
|
41
41
|
input: {
|
|
@@ -43,16 +43,16 @@ export declare const BackendMagazine: {
|
|
|
43
43
|
envSlug: string;
|
|
44
44
|
};
|
|
45
45
|
output: import('@env-hopper/backend-core').ResourceJumpsData;
|
|
46
|
-
meta:
|
|
46
|
+
meta: object;
|
|
47
47
|
}>;
|
|
48
48
|
appCatalog: import('@trpc/server').TRPCQueryProcedure<{
|
|
49
49
|
input: void;
|
|
50
50
|
output: import('@env-hopper/backend-core').AppCatalogData;
|
|
51
|
-
meta:
|
|
51
|
+
meta: object;
|
|
52
52
|
}>;
|
|
53
53
|
icon: import('@trpc/server').TRPCBuiltRouter<{
|
|
54
54
|
ctx: import('@env-hopper/backend-core').EhTrpcContext;
|
|
55
|
-
meta:
|
|
55
|
+
meta: object;
|
|
56
56
|
errorShape: import('@trpc/server').TRPCDefaultErrorShape;
|
|
57
57
|
transformer: false;
|
|
58
58
|
}, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
|
|
@@ -66,7 +66,7 @@ export declare const BackendMagazine: {
|
|
|
66
66
|
mimeType: string;
|
|
67
67
|
fileSize: number;
|
|
68
68
|
}[];
|
|
69
|
-
meta:
|
|
69
|
+
meta: object;
|
|
70
70
|
}>;
|
|
71
71
|
getOne: import('@trpc/server').TRPCQueryProcedure<{
|
|
72
72
|
input: {
|
|
@@ -80,7 +80,7 @@ export declare const BackendMagazine: {
|
|
|
80
80
|
mimeType: string;
|
|
81
81
|
fileSize: number;
|
|
82
82
|
} | null;
|
|
83
|
-
meta:
|
|
83
|
+
meta: object;
|
|
84
84
|
}>;
|
|
85
85
|
create: import('@trpc/server').TRPCMutationProcedure<{
|
|
86
86
|
input: {
|
|
@@ -102,7 +102,7 @@ export declare const BackendMagazine: {
|
|
|
102
102
|
width: number | null;
|
|
103
103
|
height: number | null;
|
|
104
104
|
};
|
|
105
|
-
meta:
|
|
105
|
+
meta: object;
|
|
106
106
|
}>;
|
|
107
107
|
update: import('@trpc/server').TRPCMutationProcedure<{
|
|
108
108
|
input: {
|
|
@@ -125,7 +125,7 @@ export declare const BackendMagazine: {
|
|
|
125
125
|
width: number | null;
|
|
126
126
|
height: number | null;
|
|
127
127
|
};
|
|
128
|
-
meta:
|
|
128
|
+
meta: object;
|
|
129
129
|
}>;
|
|
130
130
|
delete: import('@trpc/server').TRPCMutationProcedure<{
|
|
131
131
|
input: {
|
|
@@ -144,14 +144,14 @@ export declare const BackendMagazine: {
|
|
|
144
144
|
width: number | null;
|
|
145
145
|
height: number | null;
|
|
146
146
|
};
|
|
147
|
-
meta:
|
|
147
|
+
meta: object;
|
|
148
148
|
}>;
|
|
149
149
|
deleteMany: import('@trpc/server').TRPCMutationProcedure<{
|
|
150
150
|
input: {
|
|
151
151
|
ids: string[];
|
|
152
152
|
};
|
|
153
153
|
output: import("@prisma/client").Prisma.BatchPayload;
|
|
154
|
-
meta:
|
|
154
|
+
meta: object;
|
|
155
155
|
}>;
|
|
156
156
|
getContent: import('@trpc/server').TRPCQueryProcedure<{
|
|
157
157
|
input: {
|
|
@@ -162,12 +162,12 @@ export declare const BackendMagazine: {
|
|
|
162
162
|
mimeType: string;
|
|
163
163
|
name: string;
|
|
164
164
|
};
|
|
165
|
-
meta:
|
|
165
|
+
meta: object;
|
|
166
166
|
}>;
|
|
167
167
|
}>>;
|
|
168
168
|
screenshot: import('@trpc/server').TRPCBuiltRouter<{
|
|
169
169
|
ctx: import('@env-hopper/backend-core').EhTrpcContext;
|
|
170
|
-
meta:
|
|
170
|
+
meta: object;
|
|
171
171
|
errorShape: import('@trpc/server').TRPCDefaultErrorShape;
|
|
172
172
|
transformer: false;
|
|
173
173
|
}, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
|
|
@@ -183,7 +183,7 @@ export declare const BackendMagazine: {
|
|
|
183
183
|
width: number | null;
|
|
184
184
|
height: number | null;
|
|
185
185
|
}[];
|
|
186
|
-
meta:
|
|
186
|
+
meta: object;
|
|
187
187
|
}>;
|
|
188
188
|
getOne: import('@trpc/server').TRPCQueryProcedure<{
|
|
189
189
|
input: {
|
|
@@ -199,7 +199,7 @@ export declare const BackendMagazine: {
|
|
|
199
199
|
width: number | null;
|
|
200
200
|
height: number | null;
|
|
201
201
|
} | null;
|
|
202
|
-
meta:
|
|
202
|
+
meta: object;
|
|
203
203
|
}>;
|
|
204
204
|
getByAppSlug: import('@trpc/server').TRPCQueryProcedure<{
|
|
205
205
|
input: {
|
|
@@ -215,7 +215,7 @@ export declare const BackendMagazine: {
|
|
|
215
215
|
width: number | null;
|
|
216
216
|
height: number | null;
|
|
217
217
|
}[];
|
|
218
|
-
meta:
|
|
218
|
+
meta: object;
|
|
219
219
|
}>;
|
|
220
220
|
getFirstByAppSlug: import('@trpc/server').TRPCQueryProcedure<{
|
|
221
221
|
input: {
|
|
@@ -231,12 +231,12 @@ export declare const BackendMagazine: {
|
|
|
231
231
|
width: number | null;
|
|
232
232
|
height: number | null;
|
|
233
233
|
} | null;
|
|
234
|
-
meta:
|
|
234
|
+
meta: object;
|
|
235
235
|
}>;
|
|
236
236
|
}>>;
|
|
237
237
|
appCatalogAdmin: import('@trpc/server').TRPCBuiltRouter<{
|
|
238
238
|
ctx: import('@env-hopper/backend-core').EhTrpcContext;
|
|
239
|
-
meta:
|
|
239
|
+
meta: object;
|
|
240
240
|
errorShape: import('@trpc/server').TRPCDefaultErrorShape;
|
|
241
241
|
transformer: false;
|
|
242
242
|
}, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
|
|
@@ -251,7 +251,7 @@ export declare const BackendMagazine: {
|
|
|
251
251
|
displayName: string;
|
|
252
252
|
access: PrismaJson.AccessMethod | null;
|
|
253
253
|
teams: string[];
|
|
254
|
-
|
|
254
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
255
255
|
notes: string | null;
|
|
256
256
|
tags: string[];
|
|
257
257
|
appUrl: string | null;
|
|
@@ -259,7 +259,7 @@ export declare const BackendMagazine: {
|
|
|
259
259
|
iconName: string | null;
|
|
260
260
|
screenshotIds: string[];
|
|
261
261
|
}[];
|
|
262
|
-
meta:
|
|
262
|
+
meta: object;
|
|
263
263
|
}>;
|
|
264
264
|
getById: import('@trpc/server').TRPCQueryProcedure<{
|
|
265
265
|
input: {
|
|
@@ -274,7 +274,7 @@ export declare const BackendMagazine: {
|
|
|
274
274
|
displayName: string;
|
|
275
275
|
access: PrismaJson.AccessMethod | null;
|
|
276
276
|
teams: string[];
|
|
277
|
-
|
|
277
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
278
278
|
notes: string | null;
|
|
279
279
|
tags: string[];
|
|
280
280
|
appUrl: string | null;
|
|
@@ -282,7 +282,30 @@ export declare const BackendMagazine: {
|
|
|
282
282
|
iconName: string | null;
|
|
283
283
|
screenshotIds: string[];
|
|
284
284
|
} | null;
|
|
285
|
-
meta:
|
|
285
|
+
meta: object;
|
|
286
|
+
}>;
|
|
287
|
+
getBySlug: import('@trpc/server').TRPCQueryProcedure<{
|
|
288
|
+
input: {
|
|
289
|
+
slug: string;
|
|
290
|
+
};
|
|
291
|
+
output: {
|
|
292
|
+
id: string;
|
|
293
|
+
createdAt: Date;
|
|
294
|
+
updatedAt: Date;
|
|
295
|
+
description: string;
|
|
296
|
+
slug: string;
|
|
297
|
+
displayName: string;
|
|
298
|
+
access: PrismaJson.AccessMethod | null;
|
|
299
|
+
teams: string[];
|
|
300
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
301
|
+
notes: string | null;
|
|
302
|
+
tags: string[];
|
|
303
|
+
appUrl: string | null;
|
|
304
|
+
links: PrismaJson.AppLink[] | null;
|
|
305
|
+
iconName: string | null;
|
|
306
|
+
screenshotIds: string[];
|
|
307
|
+
} | null;
|
|
308
|
+
meta: object;
|
|
286
309
|
}>;
|
|
287
310
|
create: import('@trpc/server').TRPCMutationProcedure<{
|
|
288
311
|
input: {
|
|
@@ -294,43 +317,24 @@ export declare const BackendMagazine: {
|
|
|
294
317
|
type: "email" | "bot" | "ticketing" | "self-service" | "documentation" | "manual";
|
|
295
318
|
} | undefined;
|
|
296
319
|
teams?: string[] | undefined;
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
name: string;
|
|
302
|
-
description?: string | undefined;
|
|
303
|
-
}[] | undefined;
|
|
304
|
-
approvalPolicy?: string | undefined;
|
|
320
|
+
approvalDetails?: {
|
|
321
|
+
approvalMethodId: string;
|
|
322
|
+
comments?: string | undefined;
|
|
323
|
+
requestPrompt?: string | undefined;
|
|
305
324
|
postApprovalInstructions?: string | undefined;
|
|
306
|
-
seeMoreUrls?: string[] | undefined;
|
|
307
|
-
url?: string | undefined;
|
|
308
|
-
prompt?: string | undefined;
|
|
309
|
-
} | {
|
|
310
|
-
type: "ticket";
|
|
311
|
-
comment?: string | undefined;
|
|
312
325
|
roles?: {
|
|
313
326
|
name: string;
|
|
314
327
|
description?: string | undefined;
|
|
315
328
|
}[] | undefined;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
url?: string | undefined;
|
|
320
|
-
requestFormTemplate?: string | undefined;
|
|
321
|
-
} | {
|
|
322
|
-
type: "person";
|
|
323
|
-
comment?: string | undefined;
|
|
324
|
-
roles?: {
|
|
325
|
-
name: string;
|
|
326
|
-
description?: string | undefined;
|
|
329
|
+
approvers?: {
|
|
330
|
+
displayName: string;
|
|
331
|
+
contact?: string | undefined;
|
|
327
332
|
}[] | undefined;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
description?: string | undefined;
|
|
333
|
+
urls?: {
|
|
334
|
+
url: string;
|
|
335
|
+
label?: string | undefined;
|
|
336
|
+
}[] | undefined;
|
|
337
|
+
whoToReachOut?: string | undefined;
|
|
334
338
|
} | undefined;
|
|
335
339
|
notes?: string | undefined;
|
|
336
340
|
tags?: string[] | undefined;
|
|
@@ -351,7 +355,7 @@ export declare const BackendMagazine: {
|
|
|
351
355
|
displayName: string;
|
|
352
356
|
access: PrismaJson.AccessMethod | null;
|
|
353
357
|
teams: string[];
|
|
354
|
-
|
|
358
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
355
359
|
notes: string | null;
|
|
356
360
|
tags: string[];
|
|
357
361
|
appUrl: string | null;
|
|
@@ -359,7 +363,7 @@ export declare const BackendMagazine: {
|
|
|
359
363
|
iconName: string | null;
|
|
360
364
|
screenshotIds: string[];
|
|
361
365
|
};
|
|
362
|
-
meta:
|
|
366
|
+
meta: object;
|
|
363
367
|
}>;
|
|
364
368
|
update: import('@trpc/server').TRPCMutationProcedure<{
|
|
365
369
|
input: {
|
|
@@ -372,43 +376,24 @@ export declare const BackendMagazine: {
|
|
|
372
376
|
type: "email" | "bot" | "ticketing" | "self-service" | "documentation" | "manual";
|
|
373
377
|
} | undefined;
|
|
374
378
|
teams?: string[] | undefined;
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
name: string;
|
|
380
|
-
description?: string | undefined;
|
|
381
|
-
}[] | undefined;
|
|
382
|
-
approvalPolicy?: string | undefined;
|
|
379
|
+
approvalDetails?: {
|
|
380
|
+
approvalMethodId: string;
|
|
381
|
+
comments?: string | undefined;
|
|
382
|
+
requestPrompt?: string | undefined;
|
|
383
383
|
postApprovalInstructions?: string | undefined;
|
|
384
|
-
seeMoreUrls?: string[] | undefined;
|
|
385
|
-
url?: string | undefined;
|
|
386
|
-
prompt?: string | undefined;
|
|
387
|
-
} | {
|
|
388
|
-
type: "ticket";
|
|
389
|
-
comment?: string | undefined;
|
|
390
384
|
roles?: {
|
|
391
385
|
name: string;
|
|
392
386
|
description?: string | undefined;
|
|
393
387
|
}[] | undefined;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
url?: string | undefined;
|
|
398
|
-
requestFormTemplate?: string | undefined;
|
|
399
|
-
} | {
|
|
400
|
-
type: "person";
|
|
401
|
-
comment?: string | undefined;
|
|
402
|
-
roles?: {
|
|
403
|
-
name: string;
|
|
404
|
-
description?: string | undefined;
|
|
388
|
+
approvers?: {
|
|
389
|
+
displayName: string;
|
|
390
|
+
contact?: string | undefined;
|
|
405
391
|
}[] | undefined;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
description?: string | undefined;
|
|
392
|
+
urls?: {
|
|
393
|
+
url: string;
|
|
394
|
+
label?: string | undefined;
|
|
395
|
+
}[] | undefined;
|
|
396
|
+
whoToReachOut?: string | undefined;
|
|
412
397
|
} | undefined;
|
|
413
398
|
notes?: string | undefined;
|
|
414
399
|
tags?: string[] | undefined;
|
|
@@ -429,7 +414,7 @@ export declare const BackendMagazine: {
|
|
|
429
414
|
displayName: string;
|
|
430
415
|
access: PrismaJson.AccessMethod | null;
|
|
431
416
|
teams: string[];
|
|
432
|
-
|
|
417
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
433
418
|
notes: string | null;
|
|
434
419
|
tags: string[];
|
|
435
420
|
appUrl: string | null;
|
|
@@ -437,7 +422,31 @@ export declare const BackendMagazine: {
|
|
|
437
422
|
iconName: string | null;
|
|
438
423
|
screenshotIds: string[];
|
|
439
424
|
};
|
|
440
|
-
meta:
|
|
425
|
+
meta: object;
|
|
426
|
+
}>;
|
|
427
|
+
updateScreenshots: import('@trpc/server').TRPCMutationProcedure<{
|
|
428
|
+
input: {
|
|
429
|
+
id: string;
|
|
430
|
+
screenshotIds: string[];
|
|
431
|
+
};
|
|
432
|
+
output: {
|
|
433
|
+
id: string;
|
|
434
|
+
createdAt: Date;
|
|
435
|
+
updatedAt: Date;
|
|
436
|
+
description: string;
|
|
437
|
+
slug: string;
|
|
438
|
+
displayName: string;
|
|
439
|
+
access: PrismaJson.AccessMethod | null;
|
|
440
|
+
teams: string[];
|
|
441
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
442
|
+
notes: string | null;
|
|
443
|
+
tags: string[];
|
|
444
|
+
appUrl: string | null;
|
|
445
|
+
links: PrismaJson.AppLink[] | null;
|
|
446
|
+
iconName: string | null;
|
|
447
|
+
screenshotIds: string[];
|
|
448
|
+
};
|
|
449
|
+
meta: object;
|
|
441
450
|
}>;
|
|
442
451
|
delete: import('@trpc/server').TRPCMutationProcedure<{
|
|
443
452
|
input: {
|
|
@@ -452,7 +461,7 @@ export declare const BackendMagazine: {
|
|
|
452
461
|
displayName: string;
|
|
453
462
|
access: PrismaJson.AccessMethod | null;
|
|
454
463
|
teams: string[];
|
|
455
|
-
|
|
464
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
456
465
|
notes: string | null;
|
|
457
466
|
tags: string[];
|
|
458
467
|
appUrl: string | null;
|
|
@@ -460,7 +469,75 @@ export declare const BackendMagazine: {
|
|
|
460
469
|
iconName: string | null;
|
|
461
470
|
screenshotIds: string[];
|
|
462
471
|
};
|
|
463
|
-
meta:
|
|
472
|
+
meta: object;
|
|
473
|
+
}>;
|
|
474
|
+
}>>;
|
|
475
|
+
approvalMethod: import('@trpc/server').TRPCBuiltRouter<{
|
|
476
|
+
ctx: import('@env-hopper/backend-core').EhTrpcContext;
|
|
477
|
+
meta: object;
|
|
478
|
+
errorShape: import('@trpc/server').TRPCDefaultErrorShape;
|
|
479
|
+
transformer: false;
|
|
480
|
+
}, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
|
|
481
|
+
list: import('@trpc/server').TRPCQueryProcedure<{
|
|
482
|
+
input: void;
|
|
483
|
+
output: import('@env-hopper/backend-core').ApprovalMethod[];
|
|
484
|
+
meta: object;
|
|
485
|
+
}>;
|
|
486
|
+
getById: import('@trpc/server').TRPCQueryProcedure<{
|
|
487
|
+
input: {
|
|
488
|
+
id: string;
|
|
489
|
+
};
|
|
490
|
+
output: import('@env-hopper/backend-core').ApprovalMethod | null;
|
|
491
|
+
meta: object;
|
|
492
|
+
}>;
|
|
493
|
+
create: import('@trpc/server').TRPCMutationProcedure<{
|
|
494
|
+
input: {
|
|
495
|
+
type: "service" | "personTeam" | "custom";
|
|
496
|
+
displayName: string;
|
|
497
|
+
config?: Record<string, never> | {
|
|
498
|
+
url?: string | undefined;
|
|
499
|
+
icon?: string | undefined;
|
|
500
|
+
} | {
|
|
501
|
+
reachOutContacts?: {
|
|
502
|
+
displayName: string;
|
|
503
|
+
contact: string;
|
|
504
|
+
}[] | undefined;
|
|
505
|
+
} | undefined;
|
|
506
|
+
};
|
|
507
|
+
output: import('@env-hopper/backend-core').ApprovalMethod;
|
|
508
|
+
meta: object;
|
|
509
|
+
}>;
|
|
510
|
+
update: import('@trpc/server').TRPCMutationProcedure<{
|
|
511
|
+
input: {
|
|
512
|
+
id: string;
|
|
513
|
+
type?: "service" | "personTeam" | "custom" | undefined;
|
|
514
|
+
displayName?: string | undefined;
|
|
515
|
+
config?: Record<string, never> | {
|
|
516
|
+
url?: string | undefined;
|
|
517
|
+
icon?: string | undefined;
|
|
518
|
+
} | {
|
|
519
|
+
reachOutContacts?: {
|
|
520
|
+
displayName: string;
|
|
521
|
+
contact: string;
|
|
522
|
+
}[] | undefined;
|
|
523
|
+
} | undefined;
|
|
524
|
+
};
|
|
525
|
+
output: import('@env-hopper/backend-core').ApprovalMethod;
|
|
526
|
+
meta: object;
|
|
527
|
+
}>;
|
|
528
|
+
delete: import('@trpc/server').TRPCMutationProcedure<{
|
|
529
|
+
input: {
|
|
530
|
+
id: string;
|
|
531
|
+
};
|
|
532
|
+
output: import('@env-hopper/backend-core').ApprovalMethod;
|
|
533
|
+
meta: object;
|
|
534
|
+
}>;
|
|
535
|
+
listByType: import('@trpc/server').TRPCQueryProcedure<{
|
|
536
|
+
input: {
|
|
537
|
+
type: "service" | "personTeam" | "custom";
|
|
538
|
+
};
|
|
539
|
+
output: import('@env-hopper/backend-core').ApprovalMethod[];
|
|
540
|
+
meta: object;
|
|
464
541
|
}>;
|
|
465
542
|
}>>;
|
|
466
543
|
auth: import('@trpc/server').TRPCBuiltRouter<{
|
|
@@ -472,7 +549,15 @@ export declare const BackendMagazine: {
|
|
|
472
549
|
getSession: import('@trpc/server').TRPCQueryProcedure<{
|
|
473
550
|
input: void;
|
|
474
551
|
output: {
|
|
475
|
-
user: {
|
|
552
|
+
user: {
|
|
553
|
+
id: string;
|
|
554
|
+
createdAt: Date;
|
|
555
|
+
updatedAt: Date;
|
|
556
|
+
email: string;
|
|
557
|
+
emailVerified: boolean;
|
|
558
|
+
name: string;
|
|
559
|
+
image?: string | null | undefined;
|
|
560
|
+
} | null;
|
|
476
561
|
isAuthenticated: boolean;
|
|
477
562
|
};
|
|
478
563
|
meta: {};
|
|
@@ -489,12 +574,12 @@ export declare const BackendMagazine: {
|
|
|
489
574
|
bootstrap: import('@trpc/server').TRPCQueryProcedure<{
|
|
490
575
|
input: void;
|
|
491
576
|
output: import('@env-hopper/backend-core').BootstrapConfigData;
|
|
492
|
-
meta:
|
|
577
|
+
meta: object;
|
|
493
578
|
}>;
|
|
494
579
|
availabilityMatrix: import('@trpc/server').TRPCQueryProcedure<{
|
|
495
580
|
input: void;
|
|
496
581
|
output: import('@env-hopper/backend-core').AvailabilityMatrixData;
|
|
497
|
-
meta:
|
|
582
|
+
meta: object;
|
|
498
583
|
}>;
|
|
499
584
|
tryFindRenameRule: import('@trpc/server').TRPCQueryProcedure<{
|
|
500
585
|
input: {
|
|
@@ -502,17 +587,17 @@ export declare const BackendMagazine: {
|
|
|
502
587
|
resourceSlug?: string | undefined;
|
|
503
588
|
};
|
|
504
589
|
output: false | import('@env-hopper/backend-core').RenameRule;
|
|
505
|
-
meta:
|
|
590
|
+
meta: object;
|
|
506
591
|
}>;
|
|
507
592
|
resourceJumps: import('@trpc/server').TRPCQueryProcedure<{
|
|
508
593
|
input: void;
|
|
509
594
|
output: import('@env-hopper/backend-core').ResourceJumpsData;
|
|
510
|
-
meta:
|
|
595
|
+
meta: object;
|
|
511
596
|
}>;
|
|
512
597
|
resourceJumpsExtended: import('@trpc/server').TRPCQueryProcedure<{
|
|
513
598
|
input: void;
|
|
514
599
|
output: import('@env-hopper/backend-core').ResourceJumpsExtendedData;
|
|
515
|
-
meta:
|
|
600
|
+
meta: object;
|
|
516
601
|
}>;
|
|
517
602
|
resourceJumpBySlugAndEnv: import('@trpc/server').TRPCQueryProcedure<{
|
|
518
603
|
input: {
|
|
@@ -520,16 +605,16 @@ export declare const BackendMagazine: {
|
|
|
520
605
|
envSlug: string;
|
|
521
606
|
};
|
|
522
607
|
output: import('@env-hopper/backend-core').ResourceJumpsData;
|
|
523
|
-
meta:
|
|
608
|
+
meta: object;
|
|
524
609
|
}>;
|
|
525
610
|
appCatalog: import('@trpc/server').TRPCQueryProcedure<{
|
|
526
611
|
input: void;
|
|
527
612
|
output: import('@env-hopper/backend-core').AppCatalogData;
|
|
528
|
-
meta:
|
|
613
|
+
meta: object;
|
|
529
614
|
}>;
|
|
530
615
|
icon: import('@trpc/server').TRPCBuiltRouter<{
|
|
531
616
|
ctx: import('@env-hopper/backend-core').EhTrpcContext;
|
|
532
|
-
meta:
|
|
617
|
+
meta: object;
|
|
533
618
|
errorShape: import('@trpc/server').TRPCDefaultErrorShape;
|
|
534
619
|
transformer: false;
|
|
535
620
|
}, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
|
|
@@ -543,7 +628,7 @@ export declare const BackendMagazine: {
|
|
|
543
628
|
mimeType: string;
|
|
544
629
|
fileSize: number;
|
|
545
630
|
}[];
|
|
546
|
-
meta:
|
|
631
|
+
meta: object;
|
|
547
632
|
}>;
|
|
548
633
|
getOne: import('@trpc/server').TRPCQueryProcedure<{
|
|
549
634
|
input: {
|
|
@@ -557,7 +642,7 @@ export declare const BackendMagazine: {
|
|
|
557
642
|
mimeType: string;
|
|
558
643
|
fileSize: number;
|
|
559
644
|
} | null;
|
|
560
|
-
meta:
|
|
645
|
+
meta: object;
|
|
561
646
|
}>;
|
|
562
647
|
create: import('@trpc/server').TRPCMutationProcedure<{
|
|
563
648
|
input: {
|
|
@@ -579,7 +664,7 @@ export declare const BackendMagazine: {
|
|
|
579
664
|
width: number | null;
|
|
580
665
|
height: number | null;
|
|
581
666
|
};
|
|
582
|
-
meta:
|
|
667
|
+
meta: object;
|
|
583
668
|
}>;
|
|
584
669
|
update: import('@trpc/server').TRPCMutationProcedure<{
|
|
585
670
|
input: {
|
|
@@ -602,7 +687,7 @@ export declare const BackendMagazine: {
|
|
|
602
687
|
width: number | null;
|
|
603
688
|
height: number | null;
|
|
604
689
|
};
|
|
605
|
-
meta:
|
|
690
|
+
meta: object;
|
|
606
691
|
}>;
|
|
607
692
|
delete: import('@trpc/server').TRPCMutationProcedure<{
|
|
608
693
|
input: {
|
|
@@ -621,14 +706,14 @@ export declare const BackendMagazine: {
|
|
|
621
706
|
width: number | null;
|
|
622
707
|
height: number | null;
|
|
623
708
|
};
|
|
624
|
-
meta:
|
|
709
|
+
meta: object;
|
|
625
710
|
}>;
|
|
626
711
|
deleteMany: import('@trpc/server').TRPCMutationProcedure<{
|
|
627
712
|
input: {
|
|
628
713
|
ids: string[];
|
|
629
714
|
};
|
|
630
715
|
output: import("@prisma/client").Prisma.BatchPayload;
|
|
631
|
-
meta:
|
|
716
|
+
meta: object;
|
|
632
717
|
}>;
|
|
633
718
|
getContent: import('@trpc/server').TRPCQueryProcedure<{
|
|
634
719
|
input: {
|
|
@@ -639,12 +724,12 @@ export declare const BackendMagazine: {
|
|
|
639
724
|
mimeType: string;
|
|
640
725
|
name: string;
|
|
641
726
|
};
|
|
642
|
-
meta:
|
|
727
|
+
meta: object;
|
|
643
728
|
}>;
|
|
644
729
|
}>>;
|
|
645
730
|
screenshot: import('@trpc/server').TRPCBuiltRouter<{
|
|
646
731
|
ctx: import('@env-hopper/backend-core').EhTrpcContext;
|
|
647
|
-
meta:
|
|
732
|
+
meta: object;
|
|
648
733
|
errorShape: import('@trpc/server').TRPCDefaultErrorShape;
|
|
649
734
|
transformer: false;
|
|
650
735
|
}, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
|
|
@@ -660,7 +745,7 @@ export declare const BackendMagazine: {
|
|
|
660
745
|
width: number | null;
|
|
661
746
|
height: number | null;
|
|
662
747
|
}[];
|
|
663
|
-
meta:
|
|
748
|
+
meta: object;
|
|
664
749
|
}>;
|
|
665
750
|
getOne: import('@trpc/server').TRPCQueryProcedure<{
|
|
666
751
|
input: {
|
|
@@ -676,7 +761,7 @@ export declare const BackendMagazine: {
|
|
|
676
761
|
width: number | null;
|
|
677
762
|
height: number | null;
|
|
678
763
|
} | null;
|
|
679
|
-
meta:
|
|
764
|
+
meta: object;
|
|
680
765
|
}>;
|
|
681
766
|
getByAppSlug: import('@trpc/server').TRPCQueryProcedure<{
|
|
682
767
|
input: {
|
|
@@ -692,7 +777,7 @@ export declare const BackendMagazine: {
|
|
|
692
777
|
width: number | null;
|
|
693
778
|
height: number | null;
|
|
694
779
|
}[];
|
|
695
|
-
meta:
|
|
780
|
+
meta: object;
|
|
696
781
|
}>;
|
|
697
782
|
getFirstByAppSlug: import('@trpc/server').TRPCQueryProcedure<{
|
|
698
783
|
input: {
|
|
@@ -708,12 +793,12 @@ export declare const BackendMagazine: {
|
|
|
708
793
|
width: number | null;
|
|
709
794
|
height: number | null;
|
|
710
795
|
} | null;
|
|
711
|
-
meta:
|
|
796
|
+
meta: object;
|
|
712
797
|
}>;
|
|
713
798
|
}>>;
|
|
714
799
|
appCatalogAdmin: import('@trpc/server').TRPCBuiltRouter<{
|
|
715
800
|
ctx: import('@env-hopper/backend-core').EhTrpcContext;
|
|
716
|
-
meta:
|
|
801
|
+
meta: object;
|
|
717
802
|
errorShape: import('@trpc/server').TRPCDefaultErrorShape;
|
|
718
803
|
transformer: false;
|
|
719
804
|
}, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
|
|
@@ -728,7 +813,7 @@ export declare const BackendMagazine: {
|
|
|
728
813
|
displayName: string;
|
|
729
814
|
access: PrismaJson.AccessMethod | null;
|
|
730
815
|
teams: string[];
|
|
731
|
-
|
|
816
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
732
817
|
notes: string | null;
|
|
733
818
|
tags: string[];
|
|
734
819
|
appUrl: string | null;
|
|
@@ -736,7 +821,7 @@ export declare const BackendMagazine: {
|
|
|
736
821
|
iconName: string | null;
|
|
737
822
|
screenshotIds: string[];
|
|
738
823
|
}[];
|
|
739
|
-
meta:
|
|
824
|
+
meta: object;
|
|
740
825
|
}>;
|
|
741
826
|
getById: import('@trpc/server').TRPCQueryProcedure<{
|
|
742
827
|
input: {
|
|
@@ -751,7 +836,7 @@ export declare const BackendMagazine: {
|
|
|
751
836
|
displayName: string;
|
|
752
837
|
access: PrismaJson.AccessMethod | null;
|
|
753
838
|
teams: string[];
|
|
754
|
-
|
|
839
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
755
840
|
notes: string | null;
|
|
756
841
|
tags: string[];
|
|
757
842
|
appUrl: string | null;
|
|
@@ -759,7 +844,30 @@ export declare const BackendMagazine: {
|
|
|
759
844
|
iconName: string | null;
|
|
760
845
|
screenshotIds: string[];
|
|
761
846
|
} | null;
|
|
762
|
-
meta:
|
|
847
|
+
meta: object;
|
|
848
|
+
}>;
|
|
849
|
+
getBySlug: import('@trpc/server').TRPCQueryProcedure<{
|
|
850
|
+
input: {
|
|
851
|
+
slug: string;
|
|
852
|
+
};
|
|
853
|
+
output: {
|
|
854
|
+
id: string;
|
|
855
|
+
createdAt: Date;
|
|
856
|
+
updatedAt: Date;
|
|
857
|
+
description: string;
|
|
858
|
+
slug: string;
|
|
859
|
+
displayName: string;
|
|
860
|
+
access: PrismaJson.AccessMethod | null;
|
|
861
|
+
teams: string[];
|
|
862
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
863
|
+
notes: string | null;
|
|
864
|
+
tags: string[];
|
|
865
|
+
appUrl: string | null;
|
|
866
|
+
links: PrismaJson.AppLink[] | null;
|
|
867
|
+
iconName: string | null;
|
|
868
|
+
screenshotIds: string[];
|
|
869
|
+
} | null;
|
|
870
|
+
meta: object;
|
|
763
871
|
}>;
|
|
764
872
|
create: import('@trpc/server').TRPCMutationProcedure<{
|
|
765
873
|
input: {
|
|
@@ -771,43 +879,24 @@ export declare const BackendMagazine: {
|
|
|
771
879
|
type: "email" | "bot" | "ticketing" | "self-service" | "documentation" | "manual";
|
|
772
880
|
} | undefined;
|
|
773
881
|
teams?: string[] | undefined;
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
name: string;
|
|
779
|
-
description?: string | undefined;
|
|
780
|
-
}[] | undefined;
|
|
781
|
-
approvalPolicy?: string | undefined;
|
|
882
|
+
approvalDetails?: {
|
|
883
|
+
approvalMethodId: string;
|
|
884
|
+
comments?: string | undefined;
|
|
885
|
+
requestPrompt?: string | undefined;
|
|
782
886
|
postApprovalInstructions?: string | undefined;
|
|
783
|
-
seeMoreUrls?: string[] | undefined;
|
|
784
|
-
url?: string | undefined;
|
|
785
|
-
prompt?: string | undefined;
|
|
786
|
-
} | {
|
|
787
|
-
type: "ticket";
|
|
788
|
-
comment?: string | undefined;
|
|
789
887
|
roles?: {
|
|
790
888
|
name: string;
|
|
791
889
|
description?: string | undefined;
|
|
792
890
|
}[] | undefined;
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
url?: string | undefined;
|
|
797
|
-
requestFormTemplate?: string | undefined;
|
|
798
|
-
} | {
|
|
799
|
-
type: "person";
|
|
800
|
-
comment?: string | undefined;
|
|
801
|
-
roles?: {
|
|
802
|
-
name: string;
|
|
803
|
-
description?: string | undefined;
|
|
891
|
+
approvers?: {
|
|
892
|
+
displayName: string;
|
|
893
|
+
contact?: string | undefined;
|
|
804
894
|
}[] | undefined;
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
description?: string | undefined;
|
|
895
|
+
urls?: {
|
|
896
|
+
url: string;
|
|
897
|
+
label?: string | undefined;
|
|
898
|
+
}[] | undefined;
|
|
899
|
+
whoToReachOut?: string | undefined;
|
|
811
900
|
} | undefined;
|
|
812
901
|
notes?: string | undefined;
|
|
813
902
|
tags?: string[] | undefined;
|
|
@@ -828,7 +917,7 @@ export declare const BackendMagazine: {
|
|
|
828
917
|
displayName: string;
|
|
829
918
|
access: PrismaJson.AccessMethod | null;
|
|
830
919
|
teams: string[];
|
|
831
|
-
|
|
920
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
832
921
|
notes: string | null;
|
|
833
922
|
tags: string[];
|
|
834
923
|
appUrl: string | null;
|
|
@@ -836,7 +925,7 @@ export declare const BackendMagazine: {
|
|
|
836
925
|
iconName: string | null;
|
|
837
926
|
screenshotIds: string[];
|
|
838
927
|
};
|
|
839
|
-
meta:
|
|
928
|
+
meta: object;
|
|
840
929
|
}>;
|
|
841
930
|
update: import('@trpc/server').TRPCMutationProcedure<{
|
|
842
931
|
input: {
|
|
@@ -849,43 +938,24 @@ export declare const BackendMagazine: {
|
|
|
849
938
|
type: "email" | "bot" | "ticketing" | "self-service" | "documentation" | "manual";
|
|
850
939
|
} | undefined;
|
|
851
940
|
teams?: string[] | undefined;
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
name: string;
|
|
857
|
-
description?: string | undefined;
|
|
858
|
-
}[] | undefined;
|
|
859
|
-
approvalPolicy?: string | undefined;
|
|
941
|
+
approvalDetails?: {
|
|
942
|
+
approvalMethodId: string;
|
|
943
|
+
comments?: string | undefined;
|
|
944
|
+
requestPrompt?: string | undefined;
|
|
860
945
|
postApprovalInstructions?: string | undefined;
|
|
861
|
-
seeMoreUrls?: string[] | undefined;
|
|
862
|
-
url?: string | undefined;
|
|
863
|
-
prompt?: string | undefined;
|
|
864
|
-
} | {
|
|
865
|
-
type: "ticket";
|
|
866
|
-
comment?: string | undefined;
|
|
867
946
|
roles?: {
|
|
868
947
|
name: string;
|
|
869
948
|
description?: string | undefined;
|
|
870
949
|
}[] | undefined;
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
url?: string | undefined;
|
|
875
|
-
requestFormTemplate?: string | undefined;
|
|
876
|
-
} | {
|
|
877
|
-
type: "person";
|
|
878
|
-
comment?: string | undefined;
|
|
879
|
-
roles?: {
|
|
880
|
-
name: string;
|
|
881
|
-
description?: string | undefined;
|
|
950
|
+
approvers?: {
|
|
951
|
+
displayName: string;
|
|
952
|
+
contact?: string | undefined;
|
|
882
953
|
}[] | undefined;
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
description?: string | undefined;
|
|
954
|
+
urls?: {
|
|
955
|
+
url: string;
|
|
956
|
+
label?: string | undefined;
|
|
957
|
+
}[] | undefined;
|
|
958
|
+
whoToReachOut?: string | undefined;
|
|
889
959
|
} | undefined;
|
|
890
960
|
notes?: string | undefined;
|
|
891
961
|
tags?: string[] | undefined;
|
|
@@ -906,7 +976,7 @@ export declare const BackendMagazine: {
|
|
|
906
976
|
displayName: string;
|
|
907
977
|
access: PrismaJson.AccessMethod | null;
|
|
908
978
|
teams: string[];
|
|
909
|
-
|
|
979
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
910
980
|
notes: string | null;
|
|
911
981
|
tags: string[];
|
|
912
982
|
appUrl: string | null;
|
|
@@ -914,7 +984,31 @@ export declare const BackendMagazine: {
|
|
|
914
984
|
iconName: string | null;
|
|
915
985
|
screenshotIds: string[];
|
|
916
986
|
};
|
|
917
|
-
meta:
|
|
987
|
+
meta: object;
|
|
988
|
+
}>;
|
|
989
|
+
updateScreenshots: import('@trpc/server').TRPCMutationProcedure<{
|
|
990
|
+
input: {
|
|
991
|
+
id: string;
|
|
992
|
+
screenshotIds: string[];
|
|
993
|
+
};
|
|
994
|
+
output: {
|
|
995
|
+
id: string;
|
|
996
|
+
createdAt: Date;
|
|
997
|
+
updatedAt: Date;
|
|
998
|
+
description: string;
|
|
999
|
+
slug: string;
|
|
1000
|
+
displayName: string;
|
|
1001
|
+
access: PrismaJson.AccessMethod | null;
|
|
1002
|
+
teams: string[];
|
|
1003
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
1004
|
+
notes: string | null;
|
|
1005
|
+
tags: string[];
|
|
1006
|
+
appUrl: string | null;
|
|
1007
|
+
links: PrismaJson.AppLink[] | null;
|
|
1008
|
+
iconName: string | null;
|
|
1009
|
+
screenshotIds: string[];
|
|
1010
|
+
};
|
|
1011
|
+
meta: object;
|
|
918
1012
|
}>;
|
|
919
1013
|
delete: import('@trpc/server').TRPCMutationProcedure<{
|
|
920
1014
|
input: {
|
|
@@ -929,7 +1023,7 @@ export declare const BackendMagazine: {
|
|
|
929
1023
|
displayName: string;
|
|
930
1024
|
access: PrismaJson.AccessMethod | null;
|
|
931
1025
|
teams: string[];
|
|
932
|
-
|
|
1026
|
+
approvalDetails: PrismaJson.AppApprovalDetails | null;
|
|
933
1027
|
notes: string | null;
|
|
934
1028
|
tags: string[];
|
|
935
1029
|
appUrl: string | null;
|
|
@@ -937,7 +1031,75 @@ export declare const BackendMagazine: {
|
|
|
937
1031
|
iconName: string | null;
|
|
938
1032
|
screenshotIds: string[];
|
|
939
1033
|
};
|
|
940
|
-
meta:
|
|
1034
|
+
meta: object;
|
|
1035
|
+
}>;
|
|
1036
|
+
}>>;
|
|
1037
|
+
approvalMethod: import('@trpc/server').TRPCBuiltRouter<{
|
|
1038
|
+
ctx: import('@env-hopper/backend-core').EhTrpcContext;
|
|
1039
|
+
meta: object;
|
|
1040
|
+
errorShape: import('@trpc/server').TRPCDefaultErrorShape;
|
|
1041
|
+
transformer: false;
|
|
1042
|
+
}, import('@trpc/server').TRPCDecorateCreateRouterOptions<{
|
|
1043
|
+
list: import('@trpc/server').TRPCQueryProcedure<{
|
|
1044
|
+
input: void;
|
|
1045
|
+
output: import('@env-hopper/backend-core').ApprovalMethod[];
|
|
1046
|
+
meta: object;
|
|
1047
|
+
}>;
|
|
1048
|
+
getById: import('@trpc/server').TRPCQueryProcedure<{
|
|
1049
|
+
input: {
|
|
1050
|
+
id: string;
|
|
1051
|
+
};
|
|
1052
|
+
output: import('@env-hopper/backend-core').ApprovalMethod | null;
|
|
1053
|
+
meta: object;
|
|
1054
|
+
}>;
|
|
1055
|
+
create: import('@trpc/server').TRPCMutationProcedure<{
|
|
1056
|
+
input: {
|
|
1057
|
+
type: "service" | "personTeam" | "custom";
|
|
1058
|
+
displayName: string;
|
|
1059
|
+
config?: Record<string, never> | {
|
|
1060
|
+
url?: string | undefined;
|
|
1061
|
+
icon?: string | undefined;
|
|
1062
|
+
} | {
|
|
1063
|
+
reachOutContacts?: {
|
|
1064
|
+
displayName: string;
|
|
1065
|
+
contact: string;
|
|
1066
|
+
}[] | undefined;
|
|
1067
|
+
} | undefined;
|
|
1068
|
+
};
|
|
1069
|
+
output: import('@env-hopper/backend-core').ApprovalMethod;
|
|
1070
|
+
meta: object;
|
|
1071
|
+
}>;
|
|
1072
|
+
update: import('@trpc/server').TRPCMutationProcedure<{
|
|
1073
|
+
input: {
|
|
1074
|
+
id: string;
|
|
1075
|
+
type?: "service" | "personTeam" | "custom" | undefined;
|
|
1076
|
+
displayName?: string | undefined;
|
|
1077
|
+
config?: Record<string, never> | {
|
|
1078
|
+
url?: string | undefined;
|
|
1079
|
+
icon?: string | undefined;
|
|
1080
|
+
} | {
|
|
1081
|
+
reachOutContacts?: {
|
|
1082
|
+
displayName: string;
|
|
1083
|
+
contact: string;
|
|
1084
|
+
}[] | undefined;
|
|
1085
|
+
} | undefined;
|
|
1086
|
+
};
|
|
1087
|
+
output: import('@env-hopper/backend-core').ApprovalMethod;
|
|
1088
|
+
meta: object;
|
|
1089
|
+
}>;
|
|
1090
|
+
delete: import('@trpc/server').TRPCMutationProcedure<{
|
|
1091
|
+
input: {
|
|
1092
|
+
id: string;
|
|
1093
|
+
};
|
|
1094
|
+
output: import('@env-hopper/backend-core').ApprovalMethod;
|
|
1095
|
+
meta: object;
|
|
1096
|
+
}>;
|
|
1097
|
+
listByType: import('@trpc/server').TRPCQueryProcedure<{
|
|
1098
|
+
input: {
|
|
1099
|
+
type: "service" | "personTeam" | "custom";
|
|
1100
|
+
};
|
|
1101
|
+
output: import('@env-hopper/backend-core').ApprovalMethod[];
|
|
1102
|
+
meta: object;
|
|
941
1103
|
}>;
|
|
942
1104
|
}>>;
|
|
943
1105
|
auth: import('@trpc/server').TRPCBuiltRouter<{
|
|
@@ -949,7 +1111,15 @@ export declare const BackendMagazine: {
|
|
|
949
1111
|
getSession: import('@trpc/server').TRPCQueryProcedure<{
|
|
950
1112
|
input: void;
|
|
951
1113
|
output: {
|
|
952
|
-
user: {
|
|
1114
|
+
user: {
|
|
1115
|
+
id: string;
|
|
1116
|
+
createdAt: Date;
|
|
1117
|
+
updatedAt: Date;
|
|
1118
|
+
email: string;
|
|
1119
|
+
emailVerified: boolean;
|
|
1120
|
+
name: string;
|
|
1121
|
+
image?: string | null | undefined;
|
|
1122
|
+
} | null;
|
|
953
1123
|
isAuthenticated: boolean;
|
|
954
1124
|
};
|
|
955
1125
|
meta: {};
|