@sortsys/v2-client 0.1.37 → 0.1.39
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/index.d.ts +24 -2767
- package/dist/index.js +3 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -191,6 +191,10 @@ interface ProcedureCallOptions<TContext> {
|
|
|
191
191
|
path: string;
|
|
192
192
|
type: ProcedureType;
|
|
193
193
|
signal: AbortSignal | undefined;
|
|
194
|
+
/**
|
|
195
|
+
* The index of this call in a batch request.
|
|
196
|
+
*/
|
|
197
|
+
batchIndex: number;
|
|
194
198
|
}
|
|
195
199
|
declare const procedureTypes: readonly [
|
|
196
200
|
"query",
|
|
@@ -634,6 +638,7 @@ declare class TRPCClientError<TRouterOrProcedure extends InferrableClientTypes>
|
|
|
634
638
|
});
|
|
635
639
|
static from<TRouterOrProcedure extends InferrableClientTypes>(_cause: Error | TRPCErrorResponse<any> | object, opts?: {
|
|
636
640
|
meta?: Record<string, unknown>;
|
|
641
|
+
cause?: Error;
|
|
637
642
|
}): TRPCClientError<TRouterOrProcedure>;
|
|
638
643
|
}
|
|
639
644
|
interface OperationContext extends Record<string, unknown> {
|
|
@@ -697,16 +702,16 @@ type TRPCClient<TRouter extends AnyRouter> = DecoratedProcedureRecord<{
|
|
|
697
702
|
}, TRouter["_def"]["record"]> & {
|
|
698
703
|
[untypedClientSymbol]: TRPCUntypedClient<TRouter>;
|
|
699
704
|
};
|
|
700
|
-
type
|
|
705
|
+
type TRPCResolverDef = {
|
|
701
706
|
input: any;
|
|
702
707
|
output: any;
|
|
703
708
|
transformer: boolean;
|
|
704
709
|
errorShape: any;
|
|
705
710
|
};
|
|
706
711
|
type coerceAsyncGeneratorToIterable<T> = T extends AsyncGenerator<infer $T, infer $Return, infer $Next> ? AsyncIterable<$T, $Return, $Next> : T;
|
|
707
|
-
type Resolver<TDef extends
|
|
708
|
-
type SubscriptionResolver<TDef extends
|
|
709
|
-
type DecorateProcedure$1<TType extends ProcedureType, TDef extends
|
|
712
|
+
type Resolver<TDef extends TRPCResolverDef> = (input: TDef["input"], opts?: TRPCProcedureOptions) => Promise<coerceAsyncGeneratorToIterable<TDef["output"]>>;
|
|
713
|
+
type SubscriptionResolver<TDef extends TRPCResolverDef> = (input: TDef["input"], opts: Partial<TRPCSubscriptionObserver<TDef["output"], TRPCClientError<TDef>>> & TRPCProcedureOptions) => Unsubscribable;
|
|
714
|
+
type DecorateProcedure$1<TType extends ProcedureType, TDef extends TRPCResolverDef> = TType extends "query" ? {
|
|
710
715
|
query: Resolver<TDef>;
|
|
711
716
|
} : TType extends "mutation" ? {
|
|
712
717
|
mutate: Resolver<TDef>;
|
|
@@ -771,6 +776,7 @@ declare namespace QueryString {
|
|
|
771
776
|
allowEmptyArrays?: boolean | undefined;
|
|
772
777
|
duplicates?: "combine" | "first" | "last" | undefined;
|
|
773
778
|
strictDepth?: boolean | undefined;
|
|
779
|
+
strictMerge?: boolean | undefined;
|
|
774
780
|
throwOnLimitExceeded?: boolean | undefined;
|
|
775
781
|
}
|
|
776
782
|
type IParseDynamicOptions<AllowDots extends BooleanOptional> = AllowDots extends true ? {
|
|
@@ -826,7 +832,11 @@ interface NextFunction {
|
|
|
826
832
|
(deferToNext: "route"): void;
|
|
827
833
|
}
|
|
828
834
|
interface ParamsDictionary {
|
|
829
|
-
[key: string]: string;
|
|
835
|
+
[key: string]: string | string[];
|
|
836
|
+
[key: number]: string;
|
|
837
|
+
}
|
|
838
|
+
interface ParamsFlatDictionary {
|
|
839
|
+
[key: string | number]: string;
|
|
830
840
|
}
|
|
831
841
|
interface Locals extends Express.Locals {
|
|
832
842
|
}
|
|
@@ -839,21 +849,19 @@ type PathParams = string | RegExp | Array<string | RegExp>;
|
|
|
839
849
|
type RequestHandlerParams<P = ParamsDictionary, ResBody = any, ReqBody = any, ReqQuery = QueryString.ParsedQs, LocalsObj extends Record<string, any> = Record<string, any>> = RequestHandler<P, ResBody, ReqBody, ReqQuery, LocalsObj> | ErrorRequestHandler<P, ResBody, ReqBody, ReqQuery, LocalsObj> | Array<RequestHandler<P> | ErrorRequestHandler<P>>;
|
|
840
850
|
type RemoveTail<S extends string, Tail extends string> = S extends `${infer P}${Tail}` ? P : S;
|
|
841
851
|
type GetRouteParameter<S extends string> = RemoveTail<RemoveTail<RemoveTail<S, `/${string}`>, `-${string}`>, `.${string}`>;
|
|
842
|
-
type RouteParameters<Route extends string> = Route extends `${infer Required}{${infer Optional}}${infer Next}` ? ParseRouteParameters<Required> & Partial<ParseRouteParameters<Optional>> & RouteParameters<Next> : ParseRouteParameters<Route
|
|
843
|
-
type ParseRouteParameters<Route extends string> = string extends Route ? ParamsDictionary : Route extends `${string}
|
|
844
|
-
: Route extends `${string}:${infer Rest}` ? (GetRouteParameter<Rest> extends never ? ParamsDictionary : GetRouteParameter<Rest> extends `${infer ParamName}?` ? {
|
|
845
|
-
[P in ParamName]?: string;
|
|
846
|
-
} // TODO: Remove old `?` handling when Express 5 is promoted to "latest"
|
|
847
|
-
: {
|
|
852
|
+
type RouteParameters<Route extends string | RegExp> = Route extends string ? Route extends `${infer Required}{${infer Optional}}${infer Next}` ? ParseRouteParameters<Required> & Partial<ParseRouteParameters<Optional>> & RouteParameters<Next> : ParseRouteParameters<Route> : ParamsFlatDictionary;
|
|
853
|
+
type ParseRouteParameters<Route extends string> = string extends Route ? ParamsDictionary : Route extends `${string}:${infer Rest}` ? (GetRouteParameter<Rest> extends never ? ParamsDictionary : {
|
|
848
854
|
[P in GetRouteParameter<Rest>]: string;
|
|
855
|
+
}) & (Rest extends `${GetRouteParameter<Rest>}${infer Next}` ? RouteParameters<Next> : unknown) : Route extends `${string}*${infer Rest}` ? (GetRouteParameter<Rest> extends never ? ParamsDictionary : {
|
|
856
|
+
[P in GetRouteParameter<Rest>]: string[];
|
|
849
857
|
}) & (Rest extends `${GetRouteParameter<Rest>}${infer Next}` ? RouteParameters<Next> : unknown) : {};
|
|
850
858
|
interface IRouterMatcher<T, Method extends "all" | "get" | "post" | "put" | "delete" | "patch" | "options" | "head" = any> {
|
|
851
|
-
<Route extends string, P = RouteParameters<Route>, ResBody = any, ReqBody = any, ReqQuery = QueryString.ParsedQs, LocalsObj extends Record<string, any> = Record<string, any>>(
|
|
859
|
+
<Route extends string | RegExp, P = RouteParameters<Route>, ResBody = any, ReqBody = any, ReqQuery = QueryString.ParsedQs, LocalsObj extends Record<string, any> = Record<string, any>>(
|
|
852
860
|
// (it's used as the default type parameter for P)
|
|
853
861
|
path: Route,
|
|
854
862
|
// (This generic is meant to be passed explicitly.)
|
|
855
863
|
...handlers: Array<RequestHandler<P, ResBody, ReqBody, ReqQuery, LocalsObj>>): T;
|
|
856
|
-
<Path extends string, P = RouteParameters<Path>, ResBody = any, ReqBody = any, ReqQuery = QueryString.ParsedQs, LocalsObj extends Record<string, any> = Record<string, any>>(
|
|
864
|
+
<Path extends string | RegExp, P = RouteParameters<Path>, ResBody = any, ReqBody = any, ReqQuery = QueryString.ParsedQs, LocalsObj extends Record<string, any> = Record<string, any>>(
|
|
857
865
|
// (it's used as the default type parameter for P)
|
|
858
866
|
path: Path,
|
|
859
867
|
// (This generic is meant to be passed explicitly.)
|
|
@@ -866,7 +874,7 @@ interface IRouterMatcher<T, Method extends "all" | "get" | "post" | "put" | "del
|
|
|
866
874
|
...handlers: Array<RequestHandlerParams<P, ResBody, ReqBody, ReqQuery, LocalsObj>>): T;
|
|
867
875
|
(path: PathParams, subApplication: Application): T;
|
|
868
876
|
}
|
|
869
|
-
interface IRouterHandler<T, Route extends string = string> {
|
|
877
|
+
interface IRouterHandler<T, Route extends string | RegExp = string> {
|
|
870
878
|
(...handlers: Array<RequestHandler<RouteParameters<Route>>>): T;
|
|
871
879
|
(...handlers: Array<RequestHandlerParams<RouteParameters<Route>>>): T;
|
|
872
880
|
<P = RouteParameters<Route>, ResBody = any, ReqBody = any, ReqQuery = QueryString.ParsedQs, LocalsObj extends Record<string, any> = Record<string, any>>(
|
|
@@ -948,7 +956,7 @@ interface IRouter extends RequestHandler {
|
|
|
948
956
|
link: IRouterMatcher<this>;
|
|
949
957
|
unlink: IRouterMatcher<this>;
|
|
950
958
|
use: IRouterHandler<this> & IRouterMatcher<this>;
|
|
951
|
-
route<T extends string>(prefix: T): IRoute<T>;
|
|
959
|
+
route<T extends string | RegExp>(prefix: T): IRoute<T>;
|
|
952
960
|
route(prefix: PathParams): IRoute;
|
|
953
961
|
/**
|
|
954
962
|
* Stack of configured routes
|
|
@@ -965,7 +973,7 @@ interface ILayer {
|
|
|
965
973
|
regexp: RegExp;
|
|
966
974
|
handle: (req: Request$1, res: Response$1, next: NextFunction) => any;
|
|
967
975
|
}
|
|
968
|
-
interface IRoute<Route extends string = string> {
|
|
976
|
+
interface IRoute<Route extends string | RegExp = string> {
|
|
969
977
|
path: string;
|
|
970
978
|
stack: ILayer[];
|
|
971
979
|
all: IRouterHandler<this, Route>;
|
|
@@ -2055,2757 +2063,6 @@ declare const appRouter: BuiltRouter<{
|
|
|
2055
2063
|
output: string;
|
|
2056
2064
|
meta: object;
|
|
2057
2065
|
}>;
|
|
2058
|
-
auth: BuiltRouter<{
|
|
2059
|
-
ctx: TrpcContext;
|
|
2060
|
-
meta: object;
|
|
2061
|
-
errorShape: {
|
|
2062
|
-
message: string;
|
|
2063
|
-
data: {
|
|
2064
|
-
httpCode: error.http.StatusCodeCode;
|
|
2065
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2066
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2067
|
-
path?: string;
|
|
2068
|
-
stack?: string;
|
|
2069
|
-
};
|
|
2070
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2071
|
-
} | {
|
|
2072
|
-
data: {
|
|
2073
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2074
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2075
|
-
path?: string;
|
|
2076
|
-
stack?: string;
|
|
2077
|
-
};
|
|
2078
|
-
message: string;
|
|
2079
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2080
|
-
};
|
|
2081
|
-
transformer: true;
|
|
2082
|
-
}, DecorateCreateRouterOptions<{
|
|
2083
|
-
login: MutationProcedure<{
|
|
2084
|
-
input: {
|
|
2085
|
-
tenant: string;
|
|
2086
|
-
username: string;
|
|
2087
|
-
password: string;
|
|
2088
|
-
};
|
|
2089
|
-
output: {
|
|
2090
|
-
token: string;
|
|
2091
|
-
};
|
|
2092
|
-
meta: object;
|
|
2093
|
-
}>;
|
|
2094
|
-
logout: MutationProcedure<{
|
|
2095
|
-
input: void;
|
|
2096
|
-
output: {
|
|
2097
|
-
success: true;
|
|
2098
|
-
};
|
|
2099
|
-
meta: object;
|
|
2100
|
-
}>;
|
|
2101
|
-
check: QueryProcedure<{
|
|
2102
|
-
input: void;
|
|
2103
|
-
output: {
|
|
2104
|
-
success: true;
|
|
2105
|
-
};
|
|
2106
|
-
meta: object;
|
|
2107
|
-
}>;
|
|
2108
|
-
sessionInfo: QueryProcedure<{
|
|
2109
|
-
input: void;
|
|
2110
|
-
output: {
|
|
2111
|
-
user: {
|
|
2112
|
-
id: string;
|
|
2113
|
-
username: string;
|
|
2114
|
-
salutation: string | null;
|
|
2115
|
-
firstName: string;
|
|
2116
|
-
lastName: string | null;
|
|
2117
|
-
contractType: "internal" | "external" | "subcontractor";
|
|
2118
|
-
phone: string | null;
|
|
2119
|
-
email: string | null;
|
|
2120
|
-
};
|
|
2121
|
-
session: {
|
|
2122
|
-
id: string;
|
|
2123
|
-
inetAddr: string | null;
|
|
2124
|
-
userAgent: string | null;
|
|
2125
|
-
createdAt: Date;
|
|
2126
|
-
expiresAt: Date;
|
|
2127
|
-
};
|
|
2128
|
-
roles: (":admin" | "view:users" | "manage:users" | "delete:users" | "view:projects" | "manage:projects" | "delete:projects" | "view:projectDeployments" | "manage:projectDeployments" | "delete:projectDeployments" | "view:tools" | "manage:tools" | "delete:tools" | "view:toolTrackings" | "manage:toolTrackings" | "delete:toolTrackings" | "view:toolInventories" | "manage:toolInventories" | "delete:toolInventories" | "view:products" | "manage:products" | "delete:products" | "view:deliveryNotes" | "manage:deliveryNotes" | "delete:deliveryNotes" | "view:productVendors" | "manage:productVendors" | "delete:productVendors" | "view:productPriceRecords" | "manage:productPriceRecords" | "delete:productPriceRecords" | "view:customers" | "manage:customers" | "delete:customers" | "view:contacts" | "manage:contacts" | "delete:contacts" | "view:dailyProjectReports" | "manage:dailyProjectReports" | "delete:dailyProjectReports" | "view:regieReports" | "manage:regieReports" | "delete:regieReports")[];
|
|
2129
|
-
tenant: {
|
|
2130
|
-
companyName: string | null;
|
|
2131
|
-
};
|
|
2132
|
-
};
|
|
2133
|
-
meta: object;
|
|
2134
|
-
}>;
|
|
2135
|
-
setPassword: MutationProcedure<{
|
|
2136
|
-
input: {
|
|
2137
|
-
username: string;
|
|
2138
|
-
password: string;
|
|
2139
|
-
};
|
|
2140
|
-
output: {
|
|
2141
|
-
success: true;
|
|
2142
|
-
};
|
|
2143
|
-
meta: object;
|
|
2144
|
-
}>;
|
|
2145
|
-
}>>;
|
|
2146
|
-
admin: BuiltRouter<{
|
|
2147
|
-
ctx: TrpcContext;
|
|
2148
|
-
meta: object;
|
|
2149
|
-
errorShape: {
|
|
2150
|
-
message: string;
|
|
2151
|
-
data: {
|
|
2152
|
-
httpCode: error.http.StatusCodeCode;
|
|
2153
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2154
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2155
|
-
path?: string;
|
|
2156
|
-
stack?: string;
|
|
2157
|
-
};
|
|
2158
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2159
|
-
} | {
|
|
2160
|
-
data: {
|
|
2161
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2162
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2163
|
-
path?: string;
|
|
2164
|
-
stack?: string;
|
|
2165
|
-
};
|
|
2166
|
-
message: string;
|
|
2167
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2168
|
-
};
|
|
2169
|
-
transformer: true;
|
|
2170
|
-
}, DecorateCreateRouterOptions<{
|
|
2171
|
-
login: MutationProcedure<{
|
|
2172
|
-
input: {
|
|
2173
|
-
password: string;
|
|
2174
|
-
tenant?: string | null | undefined;
|
|
2175
|
-
};
|
|
2176
|
-
output: {
|
|
2177
|
-
token: string;
|
|
2178
|
-
};
|
|
2179
|
-
meta: object;
|
|
2180
|
-
}>;
|
|
2181
|
-
tenants: BuiltRouter<{
|
|
2182
|
-
ctx: TrpcContext;
|
|
2183
|
-
meta: object;
|
|
2184
|
-
errorShape: {
|
|
2185
|
-
message: string;
|
|
2186
|
-
data: {
|
|
2187
|
-
httpCode: error.http.StatusCodeCode;
|
|
2188
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2189
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2190
|
-
path?: string;
|
|
2191
|
-
stack?: string;
|
|
2192
|
-
};
|
|
2193
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2194
|
-
} | {
|
|
2195
|
-
data: {
|
|
2196
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2197
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2198
|
-
path?: string;
|
|
2199
|
-
stack?: string;
|
|
2200
|
-
};
|
|
2201
|
-
message: string;
|
|
2202
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2203
|
-
};
|
|
2204
|
-
transformer: true;
|
|
2205
|
-
}, DecorateCreateRouterOptions<{
|
|
2206
|
-
list: QueryProcedure<{
|
|
2207
|
-
input: void;
|
|
2208
|
-
output: {
|
|
2209
|
-
name: string;
|
|
2210
|
-
locked_at: Date | null;
|
|
2211
|
-
deleted_at: Date | null;
|
|
2212
|
-
deactivated_at: Date | null;
|
|
2213
|
-
connection_details: {
|
|
2214
|
-
postgresDSN?: string | null | undefined;
|
|
2215
|
-
};
|
|
2216
|
-
contact_details: {
|
|
2217
|
-
email: string;
|
|
2218
|
-
companyName?: string | null | undefined;
|
|
2219
|
-
address?: {
|
|
2220
|
-
city?: string | null | undefined;
|
|
2221
|
-
zip?: string | null | undefined;
|
|
2222
|
-
country?: string | null | undefined;
|
|
2223
|
-
streetAddress?: string | null | undefined;
|
|
2224
|
-
} | null | undefined;
|
|
2225
|
-
};
|
|
2226
|
-
options: {
|
|
2227
|
-
sso: {
|
|
2228
|
-
"ms-entra-id": {
|
|
2229
|
-
enabled: boolean;
|
|
2230
|
-
importUserUsername: boolean;
|
|
2231
|
-
importUserName: boolean;
|
|
2232
|
-
importUserEmail: boolean;
|
|
2233
|
-
tenantId?: string | null | undefined;
|
|
2234
|
-
clientId?: string | null | undefined;
|
|
2235
|
-
objectId?: string | null | undefined;
|
|
2236
|
-
};
|
|
2237
|
-
};
|
|
2238
|
-
};
|
|
2239
|
-
}[];
|
|
2240
|
-
meta: object;
|
|
2241
|
-
}>;
|
|
2242
|
-
create: MutationProcedure<{
|
|
2243
|
-
input: {
|
|
2244
|
-
name: string;
|
|
2245
|
-
contact_details: {
|
|
2246
|
-
email: string;
|
|
2247
|
-
companyName?: string | null | undefined;
|
|
2248
|
-
address?: {
|
|
2249
|
-
city?: string | null | undefined;
|
|
2250
|
-
zip?: string | null | undefined;
|
|
2251
|
-
country?: string | null | undefined;
|
|
2252
|
-
streetAddress?: string | null | undefined;
|
|
2253
|
-
} | null | undefined;
|
|
2254
|
-
};
|
|
2255
|
-
options?: {
|
|
2256
|
-
sso: {
|
|
2257
|
-
"ms-entra-id": {
|
|
2258
|
-
enabled: boolean;
|
|
2259
|
-
importUserUsername: boolean;
|
|
2260
|
-
importUserName: boolean;
|
|
2261
|
-
importUserEmail: boolean;
|
|
2262
|
-
tenantId?: string | null | undefined;
|
|
2263
|
-
clientId?: string | null | undefined;
|
|
2264
|
-
objectId?: string | null | undefined;
|
|
2265
|
-
};
|
|
2266
|
-
};
|
|
2267
|
-
} | undefined;
|
|
2268
|
-
connection_details?: {
|
|
2269
|
-
postgresDSN?: string | null | undefined;
|
|
2270
|
-
} | undefined;
|
|
2271
|
-
};
|
|
2272
|
-
output: {
|
|
2273
|
-
adminPassword: string;
|
|
2274
|
-
};
|
|
2275
|
-
meta: object;
|
|
2276
|
-
}>;
|
|
2277
|
-
get: QueryProcedure<{
|
|
2278
|
-
input: {
|
|
2279
|
-
name: string;
|
|
2280
|
-
};
|
|
2281
|
-
output: {
|
|
2282
|
-
name: string;
|
|
2283
|
-
locked_at: Date | null;
|
|
2284
|
-
deleted_at: Date | null;
|
|
2285
|
-
deactivated_at: Date | null;
|
|
2286
|
-
connection_details: {
|
|
2287
|
-
postgresDSN?: string | null | undefined;
|
|
2288
|
-
};
|
|
2289
|
-
contact_details: {
|
|
2290
|
-
email: string;
|
|
2291
|
-
companyName?: string | null | undefined;
|
|
2292
|
-
address?: {
|
|
2293
|
-
city?: string | null | undefined;
|
|
2294
|
-
zip?: string | null | undefined;
|
|
2295
|
-
country?: string | null | undefined;
|
|
2296
|
-
streetAddress?: string | null | undefined;
|
|
2297
|
-
} | null | undefined;
|
|
2298
|
-
};
|
|
2299
|
-
options: {
|
|
2300
|
-
sso: {
|
|
2301
|
-
"ms-entra-id": {
|
|
2302
|
-
enabled: boolean;
|
|
2303
|
-
importUserUsername: boolean;
|
|
2304
|
-
importUserName: boolean;
|
|
2305
|
-
importUserEmail: boolean;
|
|
2306
|
-
tenantId?: string | null | undefined;
|
|
2307
|
-
clientId?: string | null | undefined;
|
|
2308
|
-
objectId?: string | null | undefined;
|
|
2309
|
-
};
|
|
2310
|
-
};
|
|
2311
|
-
};
|
|
2312
|
-
};
|
|
2313
|
-
meta: object;
|
|
2314
|
-
}>;
|
|
2315
|
-
update: MutationProcedure<{
|
|
2316
|
-
input: {
|
|
2317
|
-
name: string;
|
|
2318
|
-
data: {
|
|
2319
|
-
contact_details?: {
|
|
2320
|
-
email: string;
|
|
2321
|
-
companyName?: string | null | undefined;
|
|
2322
|
-
address?: {
|
|
2323
|
-
city?: string | null | undefined;
|
|
2324
|
-
zip?: string | null | undefined;
|
|
2325
|
-
country?: string | null | undefined;
|
|
2326
|
-
streetAddress?: string | null | undefined;
|
|
2327
|
-
} | null | undefined;
|
|
2328
|
-
} | undefined;
|
|
2329
|
-
connection_details?: {
|
|
2330
|
-
postgresDSN?: string | null | undefined;
|
|
2331
|
-
} | undefined;
|
|
2332
|
-
options?: {
|
|
2333
|
-
sso: {
|
|
2334
|
-
"ms-entra-id": {
|
|
2335
|
-
enabled: boolean;
|
|
2336
|
-
importUserUsername: boolean;
|
|
2337
|
-
importUserName: boolean;
|
|
2338
|
-
importUserEmail: boolean;
|
|
2339
|
-
tenantId?: string | null | undefined;
|
|
2340
|
-
clientId?: string | null | undefined;
|
|
2341
|
-
objectId?: string | null | undefined;
|
|
2342
|
-
};
|
|
2343
|
-
};
|
|
2344
|
-
} | undefined;
|
|
2345
|
-
};
|
|
2346
|
-
};
|
|
2347
|
-
output: {
|
|
2348
|
-
success: true;
|
|
2349
|
-
};
|
|
2350
|
-
meta: object;
|
|
2351
|
-
}>;
|
|
2352
|
-
activate: MutationProcedure<{
|
|
2353
|
-
input: {
|
|
2354
|
-
name: string;
|
|
2355
|
-
};
|
|
2356
|
-
output: {
|
|
2357
|
-
success: true;
|
|
2358
|
-
};
|
|
2359
|
-
meta: object;
|
|
2360
|
-
}>;
|
|
2361
|
-
deactivate: MutationProcedure<{
|
|
2362
|
-
input: {
|
|
2363
|
-
name: string;
|
|
2364
|
-
};
|
|
2365
|
-
output: {
|
|
2366
|
-
success: true;
|
|
2367
|
-
};
|
|
2368
|
-
meta: object;
|
|
2369
|
-
}>;
|
|
2370
|
-
delete: MutationProcedure<{
|
|
2371
|
-
input: {
|
|
2372
|
-
name: string;
|
|
2373
|
-
};
|
|
2374
|
-
output: {
|
|
2375
|
-
success: true;
|
|
2376
|
-
};
|
|
2377
|
-
meta: object;
|
|
2378
|
-
}>;
|
|
2379
|
-
deleteForever: MutationProcedure<{
|
|
2380
|
-
input: {
|
|
2381
|
-
name: string;
|
|
2382
|
-
};
|
|
2383
|
-
output: {
|
|
2384
|
-
success: true;
|
|
2385
|
-
};
|
|
2386
|
-
meta: object;
|
|
2387
|
-
}>;
|
|
2388
|
-
lock: MutationProcedure<{
|
|
2389
|
-
input: {
|
|
2390
|
-
name: string;
|
|
2391
|
-
};
|
|
2392
|
-
output: {
|
|
2393
|
-
success: true;
|
|
2394
|
-
};
|
|
2395
|
-
meta: object;
|
|
2396
|
-
}>;
|
|
2397
|
-
unlock: MutationProcedure<{
|
|
2398
|
-
input: {
|
|
2399
|
-
name: string;
|
|
2400
|
-
};
|
|
2401
|
-
output: {
|
|
2402
|
-
success: true;
|
|
2403
|
-
};
|
|
2404
|
-
meta: object;
|
|
2405
|
-
}>;
|
|
2406
|
-
undelete: MutationProcedure<{
|
|
2407
|
-
input: {
|
|
2408
|
-
name: string;
|
|
2409
|
-
};
|
|
2410
|
-
output: {
|
|
2411
|
-
success: true;
|
|
2412
|
-
};
|
|
2413
|
-
meta: object;
|
|
2414
|
-
}>;
|
|
2415
|
-
}>>;
|
|
2416
|
-
users: BuiltRouter<{
|
|
2417
|
-
ctx: TrpcContext;
|
|
2418
|
-
meta: object;
|
|
2419
|
-
errorShape: {
|
|
2420
|
-
message: string;
|
|
2421
|
-
data: {
|
|
2422
|
-
httpCode: error.http.StatusCodeCode;
|
|
2423
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2424
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2425
|
-
path?: string;
|
|
2426
|
-
stack?: string;
|
|
2427
|
-
};
|
|
2428
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2429
|
-
} | {
|
|
2430
|
-
data: {
|
|
2431
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2432
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2433
|
-
path?: string;
|
|
2434
|
-
stack?: string;
|
|
2435
|
-
};
|
|
2436
|
-
message: string;
|
|
2437
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2438
|
-
};
|
|
2439
|
-
transformer: true;
|
|
2440
|
-
}, DecorateCreateRouterOptions<{
|
|
2441
|
-
create: MutationProcedure<{
|
|
2442
|
-
input: {
|
|
2443
|
-
tenant: string;
|
|
2444
|
-
username: string;
|
|
2445
|
-
firstName: string;
|
|
2446
|
-
lastName?: string | null | undefined;
|
|
2447
|
-
email?: string | null | undefined;
|
|
2448
|
-
phone?: string | null | undefined;
|
|
2449
|
-
salutation?: string | null | undefined;
|
|
2450
|
-
contractType?: "internal" | "external" | "subcontractor" | null | undefined;
|
|
2451
|
-
password?: string | null | undefined;
|
|
2452
|
-
};
|
|
2453
|
-
output: {
|
|
2454
|
-
userId: string;
|
|
2455
|
-
password: string;
|
|
2456
|
-
};
|
|
2457
|
-
meta: object;
|
|
2458
|
-
}>;
|
|
2459
|
-
resetPassword: MutationProcedure<{
|
|
2460
|
-
input: {
|
|
2461
|
-
tenant: string;
|
|
2462
|
-
userId: string;
|
|
2463
|
-
password?: string | null | undefined;
|
|
2464
|
-
};
|
|
2465
|
-
output: {
|
|
2466
|
-
password: string;
|
|
2467
|
-
};
|
|
2468
|
-
meta: object;
|
|
2469
|
-
}>;
|
|
2470
|
-
}>>;
|
|
2471
|
-
}>>;
|
|
2472
|
-
customers: BuiltRouter<{
|
|
2473
|
-
ctx: TrpcContext;
|
|
2474
|
-
meta: object;
|
|
2475
|
-
errorShape: {
|
|
2476
|
-
message: string;
|
|
2477
|
-
data: {
|
|
2478
|
-
httpCode: error.http.StatusCodeCode;
|
|
2479
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2480
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2481
|
-
path?: string;
|
|
2482
|
-
stack?: string;
|
|
2483
|
-
};
|
|
2484
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2485
|
-
} | {
|
|
2486
|
-
data: {
|
|
2487
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2488
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2489
|
-
path?: string;
|
|
2490
|
-
stack?: string;
|
|
2491
|
-
};
|
|
2492
|
-
message: string;
|
|
2493
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2494
|
-
};
|
|
2495
|
-
transformer: true;
|
|
2496
|
-
}, DecorateCreateRouterOptions<{
|
|
2497
|
-
list: QueryProcedure<{
|
|
2498
|
-
input: {
|
|
2499
|
-
search?: string | null | undefined;
|
|
2500
|
-
};
|
|
2501
|
-
output: {
|
|
2502
|
-
id: string;
|
|
2503
|
-
salutation: string | null;
|
|
2504
|
-
name: string;
|
|
2505
|
-
address: {
|
|
2506
|
-
city: string;
|
|
2507
|
-
streetAddress: string;
|
|
2508
|
-
country?: string | null | undefined;
|
|
2509
|
-
zip?: string | null | undefined;
|
|
2510
|
-
} | null;
|
|
2511
|
-
createdByUserId: string | null;
|
|
2512
|
-
createdAt: Date;
|
|
2513
|
-
modifiedAt: Date;
|
|
2514
|
-
}[];
|
|
2515
|
-
meta: object;
|
|
2516
|
-
}>;
|
|
2517
|
-
get: QueryProcedure<{
|
|
2518
|
-
input: {
|
|
2519
|
-
id: string;
|
|
2520
|
-
};
|
|
2521
|
-
output: {
|
|
2522
|
-
id: string;
|
|
2523
|
-
salutation: string | null;
|
|
2524
|
-
name: string;
|
|
2525
|
-
address: {
|
|
2526
|
-
city: string;
|
|
2527
|
-
streetAddress: string;
|
|
2528
|
-
country?: string | null | undefined;
|
|
2529
|
-
zip?: string | null | undefined;
|
|
2530
|
-
} | null;
|
|
2531
|
-
createdByUserId: string | null;
|
|
2532
|
-
createdAt: Date;
|
|
2533
|
-
modifiedAt: Date;
|
|
2534
|
-
};
|
|
2535
|
-
meta: object;
|
|
2536
|
-
}>;
|
|
2537
|
-
create: MutationProcedure<{
|
|
2538
|
-
input: {
|
|
2539
|
-
name: string;
|
|
2540
|
-
salutation?: string | null | undefined;
|
|
2541
|
-
address?: {
|
|
2542
|
-
city: string;
|
|
2543
|
-
streetAddress: string;
|
|
2544
|
-
country?: string | null | undefined;
|
|
2545
|
-
zip?: string | null | undefined;
|
|
2546
|
-
} | null | undefined;
|
|
2547
|
-
};
|
|
2548
|
-
output: {
|
|
2549
|
-
id: string;
|
|
2550
|
-
};
|
|
2551
|
-
meta: object;
|
|
2552
|
-
}>;
|
|
2553
|
-
update: MutationProcedure<{
|
|
2554
|
-
input: {
|
|
2555
|
-
id: string;
|
|
2556
|
-
data: {
|
|
2557
|
-
salutation?: string | null | undefined;
|
|
2558
|
-
name?: string | undefined;
|
|
2559
|
-
address?: {
|
|
2560
|
-
city: string;
|
|
2561
|
-
streetAddress: string;
|
|
2562
|
-
country?: string | null | undefined;
|
|
2563
|
-
zip?: string | null | undefined;
|
|
2564
|
-
} | null | undefined;
|
|
2565
|
-
};
|
|
2566
|
-
};
|
|
2567
|
-
output: {
|
|
2568
|
-
success: true;
|
|
2569
|
-
};
|
|
2570
|
-
meta: object;
|
|
2571
|
-
}>;
|
|
2572
|
-
delete: MutationProcedure<{
|
|
2573
|
-
input: {
|
|
2574
|
-
id: string;
|
|
2575
|
-
};
|
|
2576
|
-
output: {
|
|
2577
|
-
success: true;
|
|
2578
|
-
};
|
|
2579
|
-
meta: object;
|
|
2580
|
-
}>;
|
|
2581
|
-
contacts: BuiltRouter<{
|
|
2582
|
-
ctx: TrpcContext;
|
|
2583
|
-
meta: object;
|
|
2584
|
-
errorShape: {
|
|
2585
|
-
message: string;
|
|
2586
|
-
data: {
|
|
2587
|
-
httpCode: error.http.StatusCodeCode;
|
|
2588
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2589
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2590
|
-
path?: string;
|
|
2591
|
-
stack?: string;
|
|
2592
|
-
};
|
|
2593
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2594
|
-
} | {
|
|
2595
|
-
data: {
|
|
2596
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2597
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2598
|
-
path?: string;
|
|
2599
|
-
stack?: string;
|
|
2600
|
-
};
|
|
2601
|
-
message: string;
|
|
2602
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2603
|
-
};
|
|
2604
|
-
transformer: true;
|
|
2605
|
-
}, DecorateCreateRouterOptions<{
|
|
2606
|
-
list: QueryProcedure<{
|
|
2607
|
-
input: {
|
|
2608
|
-
customerId: string;
|
|
2609
|
-
};
|
|
2610
|
-
output: {
|
|
2611
|
-
id: string;
|
|
2612
|
-
salutation: string | null;
|
|
2613
|
-
firstName: string;
|
|
2614
|
-
lastName: string | null;
|
|
2615
|
-
phoneNumbers: {
|
|
2616
|
-
number: string;
|
|
2617
|
-
name?: string | null | undefined;
|
|
2618
|
-
}[];
|
|
2619
|
-
emailAddresses: {
|
|
2620
|
-
email: string;
|
|
2621
|
-
name?: string | null | undefined;
|
|
2622
|
-
}[];
|
|
2623
|
-
createdAt: Date;
|
|
2624
|
-
modifiedAt: Date;
|
|
2625
|
-
}[];
|
|
2626
|
-
meta: object;
|
|
2627
|
-
}>;
|
|
2628
|
-
add: MutationProcedure<{
|
|
2629
|
-
input: {
|
|
2630
|
-
customerId: string;
|
|
2631
|
-
contactId: string;
|
|
2632
|
-
};
|
|
2633
|
-
output: {
|
|
2634
|
-
success: true;
|
|
2635
|
-
};
|
|
2636
|
-
meta: object;
|
|
2637
|
-
}>;
|
|
2638
|
-
set: MutationProcedure<{
|
|
2639
|
-
input: {
|
|
2640
|
-
customerId: string;
|
|
2641
|
-
contactIds: string[];
|
|
2642
|
-
};
|
|
2643
|
-
output: {
|
|
2644
|
-
success: true;
|
|
2645
|
-
};
|
|
2646
|
-
meta: object;
|
|
2647
|
-
}>;
|
|
2648
|
-
remove: MutationProcedure<{
|
|
2649
|
-
input: {
|
|
2650
|
-
customerId: string;
|
|
2651
|
-
contactId: string;
|
|
2652
|
-
};
|
|
2653
|
-
output: {
|
|
2654
|
-
success: true;
|
|
2655
|
-
};
|
|
2656
|
-
meta: object;
|
|
2657
|
-
}>;
|
|
2658
|
-
}>>;
|
|
2659
|
-
}>>;
|
|
2660
|
-
projects: BuiltRouter<{
|
|
2661
|
-
ctx: TrpcContext;
|
|
2662
|
-
meta: object;
|
|
2663
|
-
errorShape: {
|
|
2664
|
-
message: string;
|
|
2665
|
-
data: {
|
|
2666
|
-
httpCode: error.http.StatusCodeCode;
|
|
2667
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2668
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2669
|
-
path?: string;
|
|
2670
|
-
stack?: string;
|
|
2671
|
-
};
|
|
2672
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2673
|
-
} | {
|
|
2674
|
-
data: {
|
|
2675
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2676
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2677
|
-
path?: string;
|
|
2678
|
-
stack?: string;
|
|
2679
|
-
};
|
|
2680
|
-
message: string;
|
|
2681
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2682
|
-
};
|
|
2683
|
-
transformer: true;
|
|
2684
|
-
}, DecorateCreateRouterOptions<{
|
|
2685
|
-
list: QueryProcedure<{
|
|
2686
|
-
input: {
|
|
2687
|
-
search?: string | null | undefined;
|
|
2688
|
-
finished?: boolean | null | undefined;
|
|
2689
|
-
customerId?: string | null | undefined;
|
|
2690
|
-
};
|
|
2691
|
-
output: {
|
|
2692
|
-
id: string;
|
|
2693
|
-
title: string;
|
|
2694
|
-
address: {
|
|
2695
|
-
city: string;
|
|
2696
|
-
streetAddress: string;
|
|
2697
|
-
country?: string | null | undefined;
|
|
2698
|
-
zip?: string | null | undefined;
|
|
2699
|
-
} | null;
|
|
2700
|
-
customerId: string | null;
|
|
2701
|
-
createdByUserId: string | null;
|
|
2702
|
-
createdAt: Date;
|
|
2703
|
-
modifiedAt: Date;
|
|
2704
|
-
finishedAt: Date | null;
|
|
2705
|
-
}[];
|
|
2706
|
-
meta: object;
|
|
2707
|
-
}>;
|
|
2708
|
-
get: QueryProcedure<{
|
|
2709
|
-
input: {
|
|
2710
|
-
id: string;
|
|
2711
|
-
};
|
|
2712
|
-
output: {
|
|
2713
|
-
id: string;
|
|
2714
|
-
title: string;
|
|
2715
|
-
address: {
|
|
2716
|
-
city: string;
|
|
2717
|
-
streetAddress: string;
|
|
2718
|
-
country?: string | null | undefined;
|
|
2719
|
-
zip?: string | null | undefined;
|
|
2720
|
-
} | null;
|
|
2721
|
-
customerId: string | null;
|
|
2722
|
-
createdByUserId: string | null;
|
|
2723
|
-
createdAt: Date;
|
|
2724
|
-
modifiedAt: Date;
|
|
2725
|
-
finishedAt: Date | null;
|
|
2726
|
-
};
|
|
2727
|
-
meta: object;
|
|
2728
|
-
}>;
|
|
2729
|
-
create: MutationProcedure<{
|
|
2730
|
-
input: {
|
|
2731
|
-
title: string;
|
|
2732
|
-
address?: {
|
|
2733
|
-
city: string;
|
|
2734
|
-
streetAddress: string;
|
|
2735
|
-
country?: string | null | undefined;
|
|
2736
|
-
zip?: string | null | undefined;
|
|
2737
|
-
} | null | undefined;
|
|
2738
|
-
customerId?: string | null | undefined;
|
|
2739
|
-
};
|
|
2740
|
-
output: {
|
|
2741
|
-
id: string;
|
|
2742
|
-
};
|
|
2743
|
-
meta: object;
|
|
2744
|
-
}>;
|
|
2745
|
-
update: MutationProcedure<{
|
|
2746
|
-
input: {
|
|
2747
|
-
id: string;
|
|
2748
|
-
data: {
|
|
2749
|
-
title?: string | undefined;
|
|
2750
|
-
address?: {
|
|
2751
|
-
city: string;
|
|
2752
|
-
streetAddress: string;
|
|
2753
|
-
country?: string | null | undefined;
|
|
2754
|
-
zip?: string | null | undefined;
|
|
2755
|
-
} | null | undefined;
|
|
2756
|
-
customerId?: string | null | undefined;
|
|
2757
|
-
};
|
|
2758
|
-
};
|
|
2759
|
-
output: {
|
|
2760
|
-
success: true;
|
|
2761
|
-
};
|
|
2762
|
-
meta: object;
|
|
2763
|
-
}>;
|
|
2764
|
-
finish: MutationProcedure<{
|
|
2765
|
-
input: {
|
|
2766
|
-
id: string;
|
|
2767
|
-
};
|
|
2768
|
-
output: {
|
|
2769
|
-
success: true;
|
|
2770
|
-
};
|
|
2771
|
-
meta: object;
|
|
2772
|
-
}>;
|
|
2773
|
-
resume: MutationProcedure<{
|
|
2774
|
-
input: {
|
|
2775
|
-
id: string;
|
|
2776
|
-
};
|
|
2777
|
-
output: {
|
|
2778
|
-
success: true;
|
|
2779
|
-
};
|
|
2780
|
-
meta: object;
|
|
2781
|
-
}>;
|
|
2782
|
-
delete: MutationProcedure<{
|
|
2783
|
-
input: {
|
|
2784
|
-
id: string;
|
|
2785
|
-
};
|
|
2786
|
-
output: {
|
|
2787
|
-
success: true;
|
|
2788
|
-
};
|
|
2789
|
-
meta: object;
|
|
2790
|
-
}>;
|
|
2791
|
-
deployments: BuiltRouter<{
|
|
2792
|
-
ctx: TrpcContext;
|
|
2793
|
-
meta: object;
|
|
2794
|
-
errorShape: {
|
|
2795
|
-
message: string;
|
|
2796
|
-
data: {
|
|
2797
|
-
httpCode: error.http.StatusCodeCode;
|
|
2798
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2799
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2800
|
-
path?: string;
|
|
2801
|
-
stack?: string;
|
|
2802
|
-
};
|
|
2803
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2804
|
-
} | {
|
|
2805
|
-
data: {
|
|
2806
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2807
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2808
|
-
path?: string;
|
|
2809
|
-
stack?: string;
|
|
2810
|
-
};
|
|
2811
|
-
message: string;
|
|
2812
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2813
|
-
};
|
|
2814
|
-
transformer: true;
|
|
2815
|
-
}, DecorateCreateRouterOptions<{
|
|
2816
|
-
list: QueryProcedure<{
|
|
2817
|
-
input: {
|
|
2818
|
-
projectId?: string | null | undefined;
|
|
2819
|
-
userId?: string | null | undefined;
|
|
2820
|
-
active?: boolean | null | undefined;
|
|
2821
|
-
fromAfter?: unknown;
|
|
2822
|
-
fromBefore?: unknown;
|
|
2823
|
-
toAfter?: unknown;
|
|
2824
|
-
toBefore?: unknown;
|
|
2825
|
-
limit?: number | undefined;
|
|
2826
|
-
offset?: number | undefined;
|
|
2827
|
-
};
|
|
2828
|
-
output: {
|
|
2829
|
-
id: string;
|
|
2830
|
-
projectId: string;
|
|
2831
|
-
userId: string;
|
|
2832
|
-
from: Date;
|
|
2833
|
-
to: Date;
|
|
2834
|
-
note: string | null;
|
|
2835
|
-
createdAt: Date;
|
|
2836
|
-
}[];
|
|
2837
|
-
meta: object;
|
|
2838
|
-
}>;
|
|
2839
|
-
create: MutationProcedure<{
|
|
2840
|
-
input: {
|
|
2841
|
-
projectId: string;
|
|
2842
|
-
userId: string;
|
|
2843
|
-
from: unknown;
|
|
2844
|
-
to: unknown;
|
|
2845
|
-
note?: string | null | undefined;
|
|
2846
|
-
};
|
|
2847
|
-
output: {
|
|
2848
|
-
id: string;
|
|
2849
|
-
};
|
|
2850
|
-
meta: object;
|
|
2851
|
-
}>;
|
|
2852
|
-
update: MutationProcedure<{
|
|
2853
|
-
input: {
|
|
2854
|
-
id: string;
|
|
2855
|
-
data: {
|
|
2856
|
-
projectId?: string | null | undefined;
|
|
2857
|
-
userId?: string | null | undefined;
|
|
2858
|
-
from?: unknown;
|
|
2859
|
-
to?: unknown;
|
|
2860
|
-
note?: string | null | undefined;
|
|
2861
|
-
};
|
|
2862
|
-
};
|
|
2863
|
-
output: {
|
|
2864
|
-
success: true;
|
|
2865
|
-
};
|
|
2866
|
-
meta: object;
|
|
2867
|
-
}>;
|
|
2868
|
-
delete: MutationProcedure<{
|
|
2869
|
-
input: {
|
|
2870
|
-
id: string;
|
|
2871
|
-
};
|
|
2872
|
-
output: {
|
|
2873
|
-
success: true;
|
|
2874
|
-
};
|
|
2875
|
-
meta: object;
|
|
2876
|
-
}>;
|
|
2877
|
-
}>>;
|
|
2878
|
-
contacts: BuiltRouter<{
|
|
2879
|
-
ctx: TrpcContext;
|
|
2880
|
-
meta: object;
|
|
2881
|
-
errorShape: {
|
|
2882
|
-
message: string;
|
|
2883
|
-
data: {
|
|
2884
|
-
httpCode: error.http.StatusCodeCode;
|
|
2885
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2886
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2887
|
-
path?: string;
|
|
2888
|
-
stack?: string;
|
|
2889
|
-
};
|
|
2890
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2891
|
-
} | {
|
|
2892
|
-
data: {
|
|
2893
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2894
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2895
|
-
path?: string;
|
|
2896
|
-
stack?: string;
|
|
2897
|
-
};
|
|
2898
|
-
message: string;
|
|
2899
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2900
|
-
};
|
|
2901
|
-
transformer: true;
|
|
2902
|
-
}, DecorateCreateRouterOptions<{
|
|
2903
|
-
list: QueryProcedure<{
|
|
2904
|
-
input: {
|
|
2905
|
-
projectId: string;
|
|
2906
|
-
};
|
|
2907
|
-
output: {
|
|
2908
|
-
id: string;
|
|
2909
|
-
salutation: string | null;
|
|
2910
|
-
firstName: string;
|
|
2911
|
-
lastName: string | null;
|
|
2912
|
-
phoneNumbers: {
|
|
2913
|
-
number: string;
|
|
2914
|
-
name?: string | null | undefined;
|
|
2915
|
-
}[];
|
|
2916
|
-
emailAddresses: {
|
|
2917
|
-
email: string;
|
|
2918
|
-
name?: string | null | undefined;
|
|
2919
|
-
}[];
|
|
2920
|
-
createdAt: Date;
|
|
2921
|
-
modifiedAt: Date;
|
|
2922
|
-
}[];
|
|
2923
|
-
meta: object;
|
|
2924
|
-
}>;
|
|
2925
|
-
add: MutationProcedure<{
|
|
2926
|
-
input: {
|
|
2927
|
-
projectId: string;
|
|
2928
|
-
contactId: string;
|
|
2929
|
-
};
|
|
2930
|
-
output: {
|
|
2931
|
-
success: true;
|
|
2932
|
-
};
|
|
2933
|
-
meta: object;
|
|
2934
|
-
}>;
|
|
2935
|
-
set: MutationProcedure<{
|
|
2936
|
-
input: {
|
|
2937
|
-
projectId: string;
|
|
2938
|
-
contactIds: string[];
|
|
2939
|
-
};
|
|
2940
|
-
output: {
|
|
2941
|
-
success: true;
|
|
2942
|
-
};
|
|
2943
|
-
meta: object;
|
|
2944
|
-
}>;
|
|
2945
|
-
remove: MutationProcedure<{
|
|
2946
|
-
input: {
|
|
2947
|
-
projectId: string;
|
|
2948
|
-
contactId: string;
|
|
2949
|
-
};
|
|
2950
|
-
output: {
|
|
2951
|
-
success: true;
|
|
2952
|
-
};
|
|
2953
|
-
meta: object;
|
|
2954
|
-
}>;
|
|
2955
|
-
}>>;
|
|
2956
|
-
costs: BuiltRouter<{
|
|
2957
|
-
ctx: TrpcContext;
|
|
2958
|
-
meta: object;
|
|
2959
|
-
errorShape: {
|
|
2960
|
-
message: string;
|
|
2961
|
-
data: {
|
|
2962
|
-
httpCode: error.http.StatusCodeCode;
|
|
2963
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2964
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2965
|
-
path?: string;
|
|
2966
|
-
stack?: string;
|
|
2967
|
-
};
|
|
2968
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2969
|
-
} | {
|
|
2970
|
-
data: {
|
|
2971
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
2972
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
2973
|
-
path?: string;
|
|
2974
|
-
stack?: string;
|
|
2975
|
-
};
|
|
2976
|
-
message: string;
|
|
2977
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
2978
|
-
};
|
|
2979
|
-
transformer: true;
|
|
2980
|
-
}, DecorateCreateRouterOptions<{
|
|
2981
|
-
get: QueryProcedure<{
|
|
2982
|
-
input: {
|
|
2983
|
-
projectId: string;
|
|
2984
|
-
from?: unknown;
|
|
2985
|
-
to?: unknown;
|
|
2986
|
-
};
|
|
2987
|
-
output: {
|
|
2988
|
-
deliveryNotes: {
|
|
2989
|
-
noteId: string;
|
|
2990
|
-
autoId: number;
|
|
2991
|
-
effectiveTimestamp: Date;
|
|
2992
|
-
totalCost: number;
|
|
2993
|
-
}[];
|
|
2994
|
-
products: {
|
|
2995
|
-
productId: string;
|
|
2996
|
-
quantity: number;
|
|
2997
|
-
totalCost: number;
|
|
2998
|
-
priceRecord: {
|
|
2999
|
-
id: string;
|
|
3000
|
-
productId: string;
|
|
3001
|
-
vendorId: string | null;
|
|
3002
|
-
timestamp: Date;
|
|
3003
|
-
price: number;
|
|
3004
|
-
isRealPurchase: boolean;
|
|
3005
|
-
comment: string | null;
|
|
3006
|
-
} | null;
|
|
3007
|
-
}[];
|
|
3008
|
-
specialRecords: {
|
|
3009
|
-
id: string;
|
|
3010
|
-
noteId: string;
|
|
3011
|
-
noteAutoId: number;
|
|
3012
|
-
effectiveTimestamp: Date;
|
|
3013
|
-
name: string;
|
|
3014
|
-
unit: string;
|
|
3015
|
-
amount: number;
|
|
3016
|
-
pricePerUnit: number | null;
|
|
3017
|
-
comment: string | null;
|
|
3018
|
-
totalCost: number;
|
|
3019
|
-
}[];
|
|
3020
|
-
workHours: {
|
|
3021
|
-
id: string;
|
|
3022
|
-
userId: string | null;
|
|
3023
|
-
day: Date;
|
|
3024
|
-
hours: number;
|
|
3025
|
-
costPerHour: number | null;
|
|
3026
|
-
totalCost: number;
|
|
3027
|
-
}[];
|
|
3028
|
-
toolTrackings: {
|
|
3029
|
-
id: string;
|
|
3030
|
-
toolId: string;
|
|
3031
|
-
responsibleUserId: string | null;
|
|
3032
|
-
startedByUserId: string | null;
|
|
3033
|
-
endedByUserId: string | null;
|
|
3034
|
-
toolUsageCostPerDay: number | null;
|
|
3035
|
-
comment: string | null;
|
|
3036
|
-
startedAt: Date;
|
|
3037
|
-
endedAt: Date | null;
|
|
3038
|
-
deadlineAt: Date | null;
|
|
3039
|
-
totalCost: number;
|
|
3040
|
-
}[];
|
|
3041
|
-
totalCosts: {
|
|
3042
|
-
deliveryNotes: number;
|
|
3043
|
-
products: number;
|
|
3044
|
-
specialRecords: number;
|
|
3045
|
-
workHours: number;
|
|
3046
|
-
toolTrackings: number;
|
|
3047
|
-
overall: number;
|
|
3048
|
-
};
|
|
3049
|
-
};
|
|
3050
|
-
meta: object;
|
|
3051
|
-
}>;
|
|
3052
|
-
}>>;
|
|
3053
|
-
dailyReports: BuiltRouter<{
|
|
3054
|
-
ctx: TrpcContext;
|
|
3055
|
-
meta: object;
|
|
3056
|
-
errorShape: {
|
|
3057
|
-
message: string;
|
|
3058
|
-
data: {
|
|
3059
|
-
httpCode: error.http.StatusCodeCode;
|
|
3060
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3061
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3062
|
-
path?: string;
|
|
3063
|
-
stack?: string;
|
|
3064
|
-
};
|
|
3065
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3066
|
-
} | {
|
|
3067
|
-
data: {
|
|
3068
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3069
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3070
|
-
path?: string;
|
|
3071
|
-
stack?: string;
|
|
3072
|
-
};
|
|
3073
|
-
message: string;
|
|
3074
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3075
|
-
};
|
|
3076
|
-
transformer: true;
|
|
3077
|
-
}, DecorateCreateRouterOptions<{
|
|
3078
|
-
list: QueryProcedure<{
|
|
3079
|
-
input: {
|
|
3080
|
-
projectId?: string | null | undefined;
|
|
3081
|
-
from?: unknown;
|
|
3082
|
-
to?: unknown;
|
|
3083
|
-
limit?: number | undefined;
|
|
3084
|
-
offset?: number | undefined;
|
|
3085
|
-
};
|
|
3086
|
-
output: {
|
|
3087
|
-
id: string;
|
|
3088
|
-
projectId: string;
|
|
3089
|
-
day: Date;
|
|
3090
|
-
summary: string;
|
|
3091
|
-
weather: {
|
|
3092
|
-
summary?: string | null | undefined;
|
|
3093
|
-
temperatureC?: number | null | undefined;
|
|
3094
|
-
precipitationMm?: number | null | undefined;
|
|
3095
|
-
windKph?: number | null | undefined;
|
|
3096
|
-
} | null;
|
|
3097
|
-
createdByUserId: string | null;
|
|
3098
|
-
createdAt: Date;
|
|
3099
|
-
workHours: {
|
|
3100
|
-
id: string;
|
|
3101
|
-
reportId: string;
|
|
3102
|
-
userId: string | null;
|
|
3103
|
-
hours: number;
|
|
3104
|
-
costPerHour: number | null;
|
|
3105
|
-
}[];
|
|
3106
|
-
}[];
|
|
3107
|
-
meta: object;
|
|
3108
|
-
}>;
|
|
3109
|
-
get: QueryProcedure<{
|
|
3110
|
-
input: {
|
|
3111
|
-
projectId: string;
|
|
3112
|
-
day: unknown;
|
|
3113
|
-
};
|
|
3114
|
-
output: {
|
|
3115
|
-
id: string;
|
|
3116
|
-
projectId: string;
|
|
3117
|
-
day: Date;
|
|
3118
|
-
summary: string;
|
|
3119
|
-
weather: {
|
|
3120
|
-
summary?: string | null | undefined;
|
|
3121
|
-
temperatureC?: number | null | undefined;
|
|
3122
|
-
precipitationMm?: number | null | undefined;
|
|
3123
|
-
windKph?: number | null | undefined;
|
|
3124
|
-
} | null;
|
|
3125
|
-
createdByUserId: string | null;
|
|
3126
|
-
createdAt: Date;
|
|
3127
|
-
workHours: {
|
|
3128
|
-
id: string;
|
|
3129
|
-
reportId: string;
|
|
3130
|
-
userId: string | null;
|
|
3131
|
-
hours: number;
|
|
3132
|
-
costPerHour: number | null;
|
|
3133
|
-
}[];
|
|
3134
|
-
};
|
|
3135
|
-
meta: object;
|
|
3136
|
-
}>;
|
|
3137
|
-
create: MutationProcedure<{
|
|
3138
|
-
input: {
|
|
3139
|
-
projectId: string;
|
|
3140
|
-
day: unknown;
|
|
3141
|
-
summary: string;
|
|
3142
|
-
weather?: {
|
|
3143
|
-
summary?: string | null | undefined;
|
|
3144
|
-
temperatureC?: number | null | undefined;
|
|
3145
|
-
precipitationMm?: number | null | undefined;
|
|
3146
|
-
windKph?: number | null | undefined;
|
|
3147
|
-
} | null | undefined;
|
|
3148
|
-
workHours?: {
|
|
3149
|
-
hours: number;
|
|
3150
|
-
costPerHour: number | null;
|
|
3151
|
-
userId?: string | null | undefined;
|
|
3152
|
-
}[] | undefined;
|
|
3153
|
-
};
|
|
3154
|
-
output: {
|
|
3155
|
-
success: true;
|
|
3156
|
-
};
|
|
3157
|
-
meta: object;
|
|
3158
|
-
}>;
|
|
3159
|
-
update: MutationProcedure<{
|
|
3160
|
-
input: {
|
|
3161
|
-
projectId: string;
|
|
3162
|
-
day: unknown;
|
|
3163
|
-
data: {
|
|
3164
|
-
summary?: string | null | undefined;
|
|
3165
|
-
weather?: {
|
|
3166
|
-
summary?: string | null | undefined;
|
|
3167
|
-
temperatureC?: number | null | undefined;
|
|
3168
|
-
precipitationMm?: number | null | undefined;
|
|
3169
|
-
windKph?: number | null | undefined;
|
|
3170
|
-
} | null | undefined;
|
|
3171
|
-
workHours?: {
|
|
3172
|
-
hours: number;
|
|
3173
|
-
costPerHour: number | null;
|
|
3174
|
-
userId?: string | null | undefined;
|
|
3175
|
-
}[] | null | undefined;
|
|
3176
|
-
};
|
|
3177
|
-
};
|
|
3178
|
-
output: {
|
|
3179
|
-
success: true;
|
|
3180
|
-
};
|
|
3181
|
-
meta: object;
|
|
3182
|
-
}>;
|
|
3183
|
-
delete: MutationProcedure<{
|
|
3184
|
-
input: {
|
|
3185
|
-
projectId: string;
|
|
3186
|
-
day: unknown;
|
|
3187
|
-
};
|
|
3188
|
-
output: {
|
|
3189
|
-
success: true;
|
|
3190
|
-
};
|
|
3191
|
-
meta: object;
|
|
3192
|
-
}>;
|
|
3193
|
-
}>>;
|
|
3194
|
-
}>>;
|
|
3195
|
-
contacts: BuiltRouter<{
|
|
3196
|
-
ctx: TrpcContext;
|
|
3197
|
-
meta: object;
|
|
3198
|
-
errorShape: {
|
|
3199
|
-
message: string;
|
|
3200
|
-
data: {
|
|
3201
|
-
httpCode: error.http.StatusCodeCode;
|
|
3202
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3203
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3204
|
-
path?: string;
|
|
3205
|
-
stack?: string;
|
|
3206
|
-
};
|
|
3207
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3208
|
-
} | {
|
|
3209
|
-
data: {
|
|
3210
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3211
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3212
|
-
path?: string;
|
|
3213
|
-
stack?: string;
|
|
3214
|
-
};
|
|
3215
|
-
message: string;
|
|
3216
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3217
|
-
};
|
|
3218
|
-
transformer: true;
|
|
3219
|
-
}, DecorateCreateRouterOptions<{
|
|
3220
|
-
list: QueryProcedure<{
|
|
3221
|
-
input: {
|
|
3222
|
-
search?: string | null | undefined;
|
|
3223
|
-
};
|
|
3224
|
-
output: {
|
|
3225
|
-
id: string;
|
|
3226
|
-
salutation: string | null;
|
|
3227
|
-
firstName: string;
|
|
3228
|
-
lastName: string | null;
|
|
3229
|
-
phoneNumbers: {
|
|
3230
|
-
number: string;
|
|
3231
|
-
name?: string | null | undefined;
|
|
3232
|
-
}[];
|
|
3233
|
-
emailAddresses: {
|
|
3234
|
-
email: string;
|
|
3235
|
-
name?: string | null | undefined;
|
|
3236
|
-
}[];
|
|
3237
|
-
createdAt: Date;
|
|
3238
|
-
modifiedAt: Date;
|
|
3239
|
-
}[];
|
|
3240
|
-
meta: object;
|
|
3241
|
-
}>;
|
|
3242
|
-
get: QueryProcedure<{
|
|
3243
|
-
input: {
|
|
3244
|
-
id: string;
|
|
3245
|
-
};
|
|
3246
|
-
output: {
|
|
3247
|
-
id: string;
|
|
3248
|
-
salutation: string | null;
|
|
3249
|
-
firstName: string;
|
|
3250
|
-
lastName: string | null;
|
|
3251
|
-
phoneNumbers: {
|
|
3252
|
-
number: string;
|
|
3253
|
-
name?: string | null | undefined;
|
|
3254
|
-
}[];
|
|
3255
|
-
emailAddresses: {
|
|
3256
|
-
email: string;
|
|
3257
|
-
name?: string | null | undefined;
|
|
3258
|
-
}[];
|
|
3259
|
-
createdAt: Date;
|
|
3260
|
-
modifiedAt: Date;
|
|
3261
|
-
};
|
|
3262
|
-
meta: object;
|
|
3263
|
-
}>;
|
|
3264
|
-
create: MutationProcedure<{
|
|
3265
|
-
input: {
|
|
3266
|
-
firstName: string;
|
|
3267
|
-
salutation?: string | null | undefined;
|
|
3268
|
-
lastName?: string | null | undefined;
|
|
3269
|
-
phoneNumbers?: {
|
|
3270
|
-
number: string;
|
|
3271
|
-
name?: string | null | undefined;
|
|
3272
|
-
}[] | undefined;
|
|
3273
|
-
emailAddresses?: {
|
|
3274
|
-
email: string;
|
|
3275
|
-
name?: string | null | undefined;
|
|
3276
|
-
}[] | undefined;
|
|
3277
|
-
};
|
|
3278
|
-
output: {
|
|
3279
|
-
id: string;
|
|
3280
|
-
};
|
|
3281
|
-
meta: object;
|
|
3282
|
-
}>;
|
|
3283
|
-
update: MutationProcedure<{
|
|
3284
|
-
input: {
|
|
3285
|
-
id: string;
|
|
3286
|
-
data: {
|
|
3287
|
-
salutation?: string | null | undefined;
|
|
3288
|
-
firstName?: string | undefined;
|
|
3289
|
-
lastName?: string | null | undefined;
|
|
3290
|
-
phoneNumbers?: {
|
|
3291
|
-
number: string;
|
|
3292
|
-
name?: string | null | undefined;
|
|
3293
|
-
}[] | undefined;
|
|
3294
|
-
emailAddresses?: {
|
|
3295
|
-
email: string;
|
|
3296
|
-
name?: string | null | undefined;
|
|
3297
|
-
}[] | undefined;
|
|
3298
|
-
};
|
|
3299
|
-
};
|
|
3300
|
-
output: {
|
|
3301
|
-
success: true;
|
|
3302
|
-
};
|
|
3303
|
-
meta: object;
|
|
3304
|
-
}>;
|
|
3305
|
-
delete: MutationProcedure<{
|
|
3306
|
-
input: {
|
|
3307
|
-
id: string;
|
|
3308
|
-
};
|
|
3309
|
-
output: {
|
|
3310
|
-
success: true;
|
|
3311
|
-
};
|
|
3312
|
-
meta: object;
|
|
3313
|
-
}>;
|
|
3314
|
-
projects: BuiltRouter<{
|
|
3315
|
-
ctx: TrpcContext;
|
|
3316
|
-
meta: object;
|
|
3317
|
-
errorShape: {
|
|
3318
|
-
message: string;
|
|
3319
|
-
data: {
|
|
3320
|
-
httpCode: error.http.StatusCodeCode;
|
|
3321
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3322
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3323
|
-
path?: string;
|
|
3324
|
-
stack?: string;
|
|
3325
|
-
};
|
|
3326
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3327
|
-
} | {
|
|
3328
|
-
data: {
|
|
3329
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3330
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3331
|
-
path?: string;
|
|
3332
|
-
stack?: string;
|
|
3333
|
-
};
|
|
3334
|
-
message: string;
|
|
3335
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3336
|
-
};
|
|
3337
|
-
transformer: true;
|
|
3338
|
-
}, DecorateCreateRouterOptions<{
|
|
3339
|
-
list: QueryProcedure<{
|
|
3340
|
-
input: {
|
|
3341
|
-
contactId: string;
|
|
3342
|
-
};
|
|
3343
|
-
output: {
|
|
3344
|
-
id: string;
|
|
3345
|
-
title: string;
|
|
3346
|
-
address: {
|
|
3347
|
-
city: string;
|
|
3348
|
-
streetAddress: string;
|
|
3349
|
-
country?: string | null | undefined;
|
|
3350
|
-
zip?: string | null | undefined;
|
|
3351
|
-
} | null;
|
|
3352
|
-
customerId: string | null;
|
|
3353
|
-
createdByUserId: string | null;
|
|
3354
|
-
createdAt: Date;
|
|
3355
|
-
modifiedAt: Date;
|
|
3356
|
-
finishedAt: Date | null;
|
|
3357
|
-
}[];
|
|
3358
|
-
meta: object;
|
|
3359
|
-
}>;
|
|
3360
|
-
}>>;
|
|
3361
|
-
customers: BuiltRouter<{
|
|
3362
|
-
ctx: TrpcContext;
|
|
3363
|
-
meta: object;
|
|
3364
|
-
errorShape: {
|
|
3365
|
-
message: string;
|
|
3366
|
-
data: {
|
|
3367
|
-
httpCode: error.http.StatusCodeCode;
|
|
3368
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3369
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3370
|
-
path?: string;
|
|
3371
|
-
stack?: string;
|
|
3372
|
-
};
|
|
3373
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3374
|
-
} | {
|
|
3375
|
-
data: {
|
|
3376
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3377
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3378
|
-
path?: string;
|
|
3379
|
-
stack?: string;
|
|
3380
|
-
};
|
|
3381
|
-
message: string;
|
|
3382
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3383
|
-
};
|
|
3384
|
-
transformer: true;
|
|
3385
|
-
}, DecorateCreateRouterOptions<{
|
|
3386
|
-
list: QueryProcedure<{
|
|
3387
|
-
input: {
|
|
3388
|
-
contactId: string;
|
|
3389
|
-
};
|
|
3390
|
-
output: {
|
|
3391
|
-
id: string;
|
|
3392
|
-
salutation: string | null;
|
|
3393
|
-
name: string;
|
|
3394
|
-
address: {
|
|
3395
|
-
city: string;
|
|
3396
|
-
streetAddress: string;
|
|
3397
|
-
country?: string | null | undefined;
|
|
3398
|
-
zip?: string | null | undefined;
|
|
3399
|
-
} | null;
|
|
3400
|
-
createdByUserId: string | null;
|
|
3401
|
-
createdAt: Date;
|
|
3402
|
-
modifiedAt: Date;
|
|
3403
|
-
}[];
|
|
3404
|
-
meta: object;
|
|
3405
|
-
}>;
|
|
3406
|
-
}>>;
|
|
3407
|
-
}>>;
|
|
3408
|
-
products: BuiltRouter<{
|
|
3409
|
-
ctx: TrpcContext;
|
|
3410
|
-
meta: object;
|
|
3411
|
-
errorShape: {
|
|
3412
|
-
message: string;
|
|
3413
|
-
data: {
|
|
3414
|
-
httpCode: error.http.StatusCodeCode;
|
|
3415
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3416
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3417
|
-
path?: string;
|
|
3418
|
-
stack?: string;
|
|
3419
|
-
};
|
|
3420
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3421
|
-
} | {
|
|
3422
|
-
data: {
|
|
3423
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3424
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3425
|
-
path?: string;
|
|
3426
|
-
stack?: string;
|
|
3427
|
-
};
|
|
3428
|
-
message: string;
|
|
3429
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3430
|
-
};
|
|
3431
|
-
transformer: true;
|
|
3432
|
-
}, DecorateCreateRouterOptions<{
|
|
3433
|
-
list: QueryProcedure<{
|
|
3434
|
-
input: {
|
|
3435
|
-
category?: string | null | undefined;
|
|
3436
|
-
search?: string | null | undefined;
|
|
3437
|
-
};
|
|
3438
|
-
output: {
|
|
3439
|
-
id: string;
|
|
3440
|
-
customId: number;
|
|
3441
|
-
name: string;
|
|
3442
|
-
description: string | null;
|
|
3443
|
-
brand: string | null;
|
|
3444
|
-
baseUnit: string;
|
|
3445
|
-
otherUnits: Record<string, number>;
|
|
3446
|
-
categories: string[];
|
|
3447
|
-
}[];
|
|
3448
|
-
meta: object;
|
|
3449
|
-
}>;
|
|
3450
|
-
get: QueryProcedure<{
|
|
3451
|
-
input: {
|
|
3452
|
-
id: string;
|
|
3453
|
-
};
|
|
3454
|
-
output: {
|
|
3455
|
-
id: string;
|
|
3456
|
-
customId: number;
|
|
3457
|
-
name: string;
|
|
3458
|
-
description: string | null;
|
|
3459
|
-
brand: string | null;
|
|
3460
|
-
baseUnit: string;
|
|
3461
|
-
otherUnits: Record<string, number>;
|
|
3462
|
-
categories: string[];
|
|
3463
|
-
};
|
|
3464
|
-
meta: object;
|
|
3465
|
-
}>;
|
|
3466
|
-
create: MutationProcedure<{
|
|
3467
|
-
input: {
|
|
3468
|
-
customId: number;
|
|
3469
|
-
name: string;
|
|
3470
|
-
baseUnit: string;
|
|
3471
|
-
brand?: string | null | undefined;
|
|
3472
|
-
description?: string | null | undefined;
|
|
3473
|
-
otherUnits?: Record<string, number> | undefined;
|
|
3474
|
-
};
|
|
3475
|
-
output: {
|
|
3476
|
-
id: string;
|
|
3477
|
-
};
|
|
3478
|
-
meta: object;
|
|
3479
|
-
}>;
|
|
3480
|
-
update: MutationProcedure<{
|
|
3481
|
-
input: {
|
|
3482
|
-
id: string;
|
|
3483
|
-
data: {
|
|
3484
|
-
customId?: number | undefined;
|
|
3485
|
-
name?: string | undefined;
|
|
3486
|
-
brand?: string | null | undefined;
|
|
3487
|
-
description?: string | null | undefined;
|
|
3488
|
-
baseUnit?: string | undefined;
|
|
3489
|
-
otherUnits?: Record<string, number> | undefined;
|
|
3490
|
-
};
|
|
3491
|
-
};
|
|
3492
|
-
output: {
|
|
3493
|
-
success: true;
|
|
3494
|
-
};
|
|
3495
|
-
meta: object;
|
|
3496
|
-
}>;
|
|
3497
|
-
delete: MutationProcedure<{
|
|
3498
|
-
input: {
|
|
3499
|
-
id: string;
|
|
3500
|
-
};
|
|
3501
|
-
output: {
|
|
3502
|
-
success: true;
|
|
3503
|
-
};
|
|
3504
|
-
meta: object;
|
|
3505
|
-
}>;
|
|
3506
|
-
categories: BuiltRouter<{
|
|
3507
|
-
ctx: TrpcContext;
|
|
3508
|
-
meta: object;
|
|
3509
|
-
errorShape: {
|
|
3510
|
-
message: string;
|
|
3511
|
-
data: {
|
|
3512
|
-
httpCode: error.http.StatusCodeCode;
|
|
3513
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3514
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3515
|
-
path?: string;
|
|
3516
|
-
stack?: string;
|
|
3517
|
-
};
|
|
3518
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3519
|
-
} | {
|
|
3520
|
-
data: {
|
|
3521
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3522
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3523
|
-
path?: string;
|
|
3524
|
-
stack?: string;
|
|
3525
|
-
};
|
|
3526
|
-
message: string;
|
|
3527
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3528
|
-
};
|
|
3529
|
-
transformer: true;
|
|
3530
|
-
}, DecorateCreateRouterOptions<{
|
|
3531
|
-
list: QueryProcedure<{
|
|
3532
|
-
input: void;
|
|
3533
|
-
output: string[];
|
|
3534
|
-
meta: object;
|
|
3535
|
-
}>;
|
|
3536
|
-
tag: MutationProcedure<{
|
|
3537
|
-
input: {
|
|
3538
|
-
id: string;
|
|
3539
|
-
category: string;
|
|
3540
|
-
};
|
|
3541
|
-
output: {
|
|
3542
|
-
success: true;
|
|
3543
|
-
};
|
|
3544
|
-
meta: object;
|
|
3545
|
-
}>;
|
|
3546
|
-
untag: MutationProcedure<{
|
|
3547
|
-
input: {
|
|
3548
|
-
id: string;
|
|
3549
|
-
category: string;
|
|
3550
|
-
};
|
|
3551
|
-
output: {
|
|
3552
|
-
success: true;
|
|
3553
|
-
};
|
|
3554
|
-
meta: object;
|
|
3555
|
-
}>;
|
|
3556
|
-
set: MutationProcedure<{
|
|
3557
|
-
input: {
|
|
3558
|
-
id: string;
|
|
3559
|
-
categories: string[];
|
|
3560
|
-
};
|
|
3561
|
-
output: {
|
|
3562
|
-
success: true;
|
|
3563
|
-
};
|
|
3564
|
-
meta: object;
|
|
3565
|
-
}>;
|
|
3566
|
-
}>>;
|
|
3567
|
-
units: BuiltRouter<{
|
|
3568
|
-
ctx: TrpcContext;
|
|
3569
|
-
meta: object;
|
|
3570
|
-
errorShape: {
|
|
3571
|
-
message: string;
|
|
3572
|
-
data: {
|
|
3573
|
-
httpCode: error.http.StatusCodeCode;
|
|
3574
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3575
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3576
|
-
path?: string;
|
|
3577
|
-
stack?: string;
|
|
3578
|
-
};
|
|
3579
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3580
|
-
} | {
|
|
3581
|
-
data: {
|
|
3582
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3583
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3584
|
-
path?: string;
|
|
3585
|
-
stack?: string;
|
|
3586
|
-
};
|
|
3587
|
-
message: string;
|
|
3588
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3589
|
-
};
|
|
3590
|
-
transformer: true;
|
|
3591
|
-
}, DecorateCreateRouterOptions<{
|
|
3592
|
-
list: QueryProcedure<{
|
|
3593
|
-
input: void;
|
|
3594
|
-
output: string[];
|
|
3595
|
-
meta: object;
|
|
3596
|
-
}>;
|
|
3597
|
-
}>>;
|
|
3598
|
-
brands: BuiltRouter<{
|
|
3599
|
-
ctx: TrpcContext;
|
|
3600
|
-
meta: object;
|
|
3601
|
-
errorShape: {
|
|
3602
|
-
message: string;
|
|
3603
|
-
data: {
|
|
3604
|
-
httpCode: error.http.StatusCodeCode;
|
|
3605
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3606
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3607
|
-
path?: string;
|
|
3608
|
-
stack?: string;
|
|
3609
|
-
};
|
|
3610
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3611
|
-
} | {
|
|
3612
|
-
data: {
|
|
3613
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3614
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3615
|
-
path?: string;
|
|
3616
|
-
stack?: string;
|
|
3617
|
-
};
|
|
3618
|
-
message: string;
|
|
3619
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3620
|
-
};
|
|
3621
|
-
transformer: true;
|
|
3622
|
-
}, DecorateCreateRouterOptions<{
|
|
3623
|
-
list: QueryProcedure<{
|
|
3624
|
-
input: void;
|
|
3625
|
-
output: string[];
|
|
3626
|
-
meta: object;
|
|
3627
|
-
}>;
|
|
3628
|
-
}>>;
|
|
3629
|
-
vendors: BuiltRouter<{
|
|
3630
|
-
ctx: TrpcContext;
|
|
3631
|
-
meta: object;
|
|
3632
|
-
errorShape: {
|
|
3633
|
-
message: string;
|
|
3634
|
-
data: {
|
|
3635
|
-
httpCode: error.http.StatusCodeCode;
|
|
3636
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3637
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3638
|
-
path?: string;
|
|
3639
|
-
stack?: string;
|
|
3640
|
-
};
|
|
3641
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3642
|
-
} | {
|
|
3643
|
-
data: {
|
|
3644
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3645
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3646
|
-
path?: string;
|
|
3647
|
-
stack?: string;
|
|
3648
|
-
};
|
|
3649
|
-
message: string;
|
|
3650
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3651
|
-
};
|
|
3652
|
-
transformer: true;
|
|
3653
|
-
}, DecorateCreateRouterOptions<{
|
|
3654
|
-
list: QueryProcedure<{
|
|
3655
|
-
input: {
|
|
3656
|
-
search?: string | null | undefined;
|
|
3657
|
-
};
|
|
3658
|
-
output: {
|
|
3659
|
-
id: string;
|
|
3660
|
-
name: string;
|
|
3661
|
-
description: string | null;
|
|
3662
|
-
createdAt: Date;
|
|
3663
|
-
modifiedAt: Date;
|
|
3664
|
-
}[];
|
|
3665
|
-
meta: object;
|
|
3666
|
-
}>;
|
|
3667
|
-
get: QueryProcedure<{
|
|
3668
|
-
input: {
|
|
3669
|
-
id: string;
|
|
3670
|
-
};
|
|
3671
|
-
output: {
|
|
3672
|
-
id: string;
|
|
3673
|
-
name: string;
|
|
3674
|
-
description: string | null;
|
|
3675
|
-
createdAt: Date;
|
|
3676
|
-
modifiedAt: Date;
|
|
3677
|
-
};
|
|
3678
|
-
meta: object;
|
|
3679
|
-
}>;
|
|
3680
|
-
create: MutationProcedure<{
|
|
3681
|
-
input: {
|
|
3682
|
-
name: string;
|
|
3683
|
-
description?: string | null | undefined;
|
|
3684
|
-
};
|
|
3685
|
-
output: {
|
|
3686
|
-
id: string;
|
|
3687
|
-
};
|
|
3688
|
-
meta: object;
|
|
3689
|
-
}>;
|
|
3690
|
-
update: MutationProcedure<{
|
|
3691
|
-
input: {
|
|
3692
|
-
id: string;
|
|
3693
|
-
data: {
|
|
3694
|
-
name?: string | undefined;
|
|
3695
|
-
description?: string | null | undefined;
|
|
3696
|
-
};
|
|
3697
|
-
};
|
|
3698
|
-
output: {
|
|
3699
|
-
success: true;
|
|
3700
|
-
};
|
|
3701
|
-
meta: object;
|
|
3702
|
-
}>;
|
|
3703
|
-
delete: MutationProcedure<{
|
|
3704
|
-
input: {
|
|
3705
|
-
id: string;
|
|
3706
|
-
};
|
|
3707
|
-
output: {
|
|
3708
|
-
success: true;
|
|
3709
|
-
};
|
|
3710
|
-
meta: object;
|
|
3711
|
-
}>;
|
|
3712
|
-
}>>;
|
|
3713
|
-
priceRecords: BuiltRouter<{
|
|
3714
|
-
ctx: TrpcContext;
|
|
3715
|
-
meta: object;
|
|
3716
|
-
errorShape: {
|
|
3717
|
-
message: string;
|
|
3718
|
-
data: {
|
|
3719
|
-
httpCode: error.http.StatusCodeCode;
|
|
3720
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3721
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3722
|
-
path?: string;
|
|
3723
|
-
stack?: string;
|
|
3724
|
-
};
|
|
3725
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3726
|
-
} | {
|
|
3727
|
-
data: {
|
|
3728
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3729
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3730
|
-
path?: string;
|
|
3731
|
-
stack?: string;
|
|
3732
|
-
};
|
|
3733
|
-
message: string;
|
|
3734
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3735
|
-
};
|
|
3736
|
-
transformer: true;
|
|
3737
|
-
}, DecorateCreateRouterOptions<{
|
|
3738
|
-
list: QueryProcedure<{
|
|
3739
|
-
input: {
|
|
3740
|
-
productId?: string | null | undefined;
|
|
3741
|
-
vendorId?: string | null | undefined;
|
|
3742
|
-
isRealPurchase?: boolean | null | undefined;
|
|
3743
|
-
};
|
|
3744
|
-
output: {
|
|
3745
|
-
id: string;
|
|
3746
|
-
productId: string;
|
|
3747
|
-
vendorId: string | null;
|
|
3748
|
-
timestamp: Date;
|
|
3749
|
-
price: number;
|
|
3750
|
-
isRealPurchase: boolean;
|
|
3751
|
-
comment: string | null;
|
|
3752
|
-
}[];
|
|
3753
|
-
meta: object;
|
|
3754
|
-
}>;
|
|
3755
|
-
create: MutationProcedure<{
|
|
3756
|
-
input: {
|
|
3757
|
-
productId: string;
|
|
3758
|
-
pricePerBaseUnit: number;
|
|
3759
|
-
timestamp: Date;
|
|
3760
|
-
isRealPurchase: boolean;
|
|
3761
|
-
vendorId?: string | null | undefined;
|
|
3762
|
-
comment?: string | null | undefined;
|
|
3763
|
-
};
|
|
3764
|
-
output: {
|
|
3765
|
-
id: string;
|
|
3766
|
-
};
|
|
3767
|
-
meta: object;
|
|
3768
|
-
}>;
|
|
3769
|
-
update: MutationProcedure<{
|
|
3770
|
-
input: {
|
|
3771
|
-
id: string;
|
|
3772
|
-
data: {
|
|
3773
|
-
productId?: string | undefined;
|
|
3774
|
-
vendorId?: string | null | undefined;
|
|
3775
|
-
pricePerBaseUnit?: number | undefined;
|
|
3776
|
-
timestamp?: Date | undefined;
|
|
3777
|
-
isRealPurchase?: boolean | undefined;
|
|
3778
|
-
comment?: string | null | undefined;
|
|
3779
|
-
};
|
|
3780
|
-
};
|
|
3781
|
-
output: {
|
|
3782
|
-
success: true;
|
|
3783
|
-
};
|
|
3784
|
-
meta: object;
|
|
3785
|
-
}>;
|
|
3786
|
-
delete: MutationProcedure<{
|
|
3787
|
-
input: {
|
|
3788
|
-
id: string;
|
|
3789
|
-
};
|
|
3790
|
-
output: {
|
|
3791
|
-
success: true;
|
|
3792
|
-
};
|
|
3793
|
-
meta: object;
|
|
3794
|
-
}>;
|
|
3795
|
-
}>>;
|
|
3796
|
-
suggestNextCustomId: QueryProcedure<{
|
|
3797
|
-
input: void;
|
|
3798
|
-
output: number;
|
|
3799
|
-
meta: object;
|
|
3800
|
-
}>;
|
|
3801
|
-
}>>;
|
|
3802
|
-
deliveryNotes: BuiltRouter<{
|
|
3803
|
-
ctx: TrpcContext;
|
|
3804
|
-
meta: object;
|
|
3805
|
-
errorShape: {
|
|
3806
|
-
message: string;
|
|
3807
|
-
data: {
|
|
3808
|
-
httpCode: error.http.StatusCodeCode;
|
|
3809
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3810
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3811
|
-
path?: string;
|
|
3812
|
-
stack?: string;
|
|
3813
|
-
};
|
|
3814
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3815
|
-
} | {
|
|
3816
|
-
data: {
|
|
3817
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3818
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3819
|
-
path?: string;
|
|
3820
|
-
stack?: string;
|
|
3821
|
-
};
|
|
3822
|
-
message: string;
|
|
3823
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3824
|
-
};
|
|
3825
|
-
transformer: true;
|
|
3826
|
-
}, DecorateCreateRouterOptions<{
|
|
3827
|
-
list: QueryProcedure<{
|
|
3828
|
-
input: {
|
|
3829
|
-
projectId?: string | null | undefined;
|
|
3830
|
-
createdByUserId?: string | null | undefined;
|
|
3831
|
-
};
|
|
3832
|
-
output: {
|
|
3833
|
-
id: string;
|
|
3834
|
-
autoId: number;
|
|
3835
|
-
projectId: string;
|
|
3836
|
-
comment: string | null;
|
|
3837
|
-
createdByUserId: string | null;
|
|
3838
|
-
createdAt: Date;
|
|
3839
|
-
effectiveTimestamp: Date;
|
|
3840
|
-
records: {
|
|
3841
|
-
id: string;
|
|
3842
|
-
noteId: string;
|
|
3843
|
-
productId: string;
|
|
3844
|
-
quantity: number;
|
|
3845
|
-
comment: string | null;
|
|
3846
|
-
}[];
|
|
3847
|
-
specialRecords: {
|
|
3848
|
-
id: string;
|
|
3849
|
-
noteId: string;
|
|
3850
|
-
name: string;
|
|
3851
|
-
unit: string;
|
|
3852
|
-
amount: number;
|
|
3853
|
-
pricePerUnit: number | null;
|
|
3854
|
-
comment: string | null;
|
|
3855
|
-
}[];
|
|
3856
|
-
}[];
|
|
3857
|
-
meta: object;
|
|
3858
|
-
}>;
|
|
3859
|
-
create: MutationProcedure<{
|
|
3860
|
-
input: {
|
|
3861
|
-
projectId: string;
|
|
3862
|
-
effectiveTimestamp?: Date | null | undefined;
|
|
3863
|
-
comment?: string | null | undefined;
|
|
3864
|
-
records?: {
|
|
3865
|
-
productId: string;
|
|
3866
|
-
quantity: number;
|
|
3867
|
-
comment?: string | null | undefined;
|
|
3868
|
-
}[] | undefined;
|
|
3869
|
-
specialRecords?: {
|
|
3870
|
-
name: string;
|
|
3871
|
-
unit: string;
|
|
3872
|
-
amount: number;
|
|
3873
|
-
pricePerUnit: number | null;
|
|
3874
|
-
comment?: string | null | undefined;
|
|
3875
|
-
}[] | undefined;
|
|
3876
|
-
};
|
|
3877
|
-
output: {
|
|
3878
|
-
id: string;
|
|
3879
|
-
};
|
|
3880
|
-
meta: object;
|
|
3881
|
-
}>;
|
|
3882
|
-
update: MutationProcedure<{
|
|
3883
|
-
input: {
|
|
3884
|
-
id: string;
|
|
3885
|
-
data: {
|
|
3886
|
-
projectId?: string | null | undefined;
|
|
3887
|
-
effectiveTimestamp?: Date | null | undefined;
|
|
3888
|
-
comment?: string | null | undefined;
|
|
3889
|
-
records?: {
|
|
3890
|
-
productId: string;
|
|
3891
|
-
quantity: number;
|
|
3892
|
-
comment?: string | null | undefined;
|
|
3893
|
-
}[] | null | undefined;
|
|
3894
|
-
specialRecords?: {
|
|
3895
|
-
name: string;
|
|
3896
|
-
unit: string;
|
|
3897
|
-
amount: number;
|
|
3898
|
-
pricePerUnit: number | null;
|
|
3899
|
-
comment?: string | null | undefined;
|
|
3900
|
-
}[] | null | undefined;
|
|
3901
|
-
};
|
|
3902
|
-
};
|
|
3903
|
-
output: {
|
|
3904
|
-
success: true;
|
|
3905
|
-
};
|
|
3906
|
-
meta: object;
|
|
3907
|
-
}>;
|
|
3908
|
-
get: QueryProcedure<{
|
|
3909
|
-
input: {
|
|
3910
|
-
id: string;
|
|
3911
|
-
} | {
|
|
3912
|
-
autoId: unknown;
|
|
3913
|
-
};
|
|
3914
|
-
output: {
|
|
3915
|
-
id: string;
|
|
3916
|
-
autoId: number;
|
|
3917
|
-
projectId: string;
|
|
3918
|
-
comment: string | null;
|
|
3919
|
-
createdByUserId: string | null;
|
|
3920
|
-
createdAt: Date;
|
|
3921
|
-
effectiveTimestamp: Date;
|
|
3922
|
-
records: {
|
|
3923
|
-
id: string;
|
|
3924
|
-
noteId: string;
|
|
3925
|
-
productId: string;
|
|
3926
|
-
quantity: number;
|
|
3927
|
-
comment: string | null;
|
|
3928
|
-
}[];
|
|
3929
|
-
specialRecords: {
|
|
3930
|
-
id: string;
|
|
3931
|
-
noteId: string;
|
|
3932
|
-
name: string;
|
|
3933
|
-
unit: string;
|
|
3934
|
-
amount: number;
|
|
3935
|
-
pricePerUnit: number | null;
|
|
3936
|
-
comment: string | null;
|
|
3937
|
-
}[];
|
|
3938
|
-
};
|
|
3939
|
-
meta: object;
|
|
3940
|
-
}>;
|
|
3941
|
-
delete: MutationProcedure<{
|
|
3942
|
-
input: {
|
|
3943
|
-
id: string;
|
|
3944
|
-
};
|
|
3945
|
-
output: {
|
|
3946
|
-
success: true;
|
|
3947
|
-
};
|
|
3948
|
-
meta: object;
|
|
3949
|
-
}>;
|
|
3950
|
-
costs: BuiltRouter<{
|
|
3951
|
-
ctx: TrpcContext;
|
|
3952
|
-
meta: object;
|
|
3953
|
-
errorShape: {
|
|
3954
|
-
message: string;
|
|
3955
|
-
data: {
|
|
3956
|
-
httpCode: error.http.StatusCodeCode;
|
|
3957
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3958
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3959
|
-
path?: string;
|
|
3960
|
-
stack?: string;
|
|
3961
|
-
};
|
|
3962
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3963
|
-
} | {
|
|
3964
|
-
data: {
|
|
3965
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
3966
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
3967
|
-
path?: string;
|
|
3968
|
-
stack?: string;
|
|
3969
|
-
};
|
|
3970
|
-
message: string;
|
|
3971
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
3972
|
-
};
|
|
3973
|
-
transformer: true;
|
|
3974
|
-
}, DecorateCreateRouterOptions<{
|
|
3975
|
-
get: QueryProcedure<{
|
|
3976
|
-
input: {
|
|
3977
|
-
id: string;
|
|
3978
|
-
};
|
|
3979
|
-
output: {
|
|
3980
|
-
noteId: string;
|
|
3981
|
-
totalCost: number;
|
|
3982
|
-
records: {
|
|
3983
|
-
recordId: string;
|
|
3984
|
-
productId: string;
|
|
3985
|
-
quantity: number;
|
|
3986
|
-
priceRecord: {
|
|
3987
|
-
id: string;
|
|
3988
|
-
productId: string;
|
|
3989
|
-
vendorId: string | null;
|
|
3990
|
-
timestamp: Date;
|
|
3991
|
-
price: number;
|
|
3992
|
-
isRealPurchase: boolean;
|
|
3993
|
-
comment: string | null;
|
|
3994
|
-
} | null;
|
|
3995
|
-
}[];
|
|
3996
|
-
specialRecords: {
|
|
3997
|
-
recordId: string;
|
|
3998
|
-
name: string;
|
|
3999
|
-
unit: string;
|
|
4000
|
-
amount: number;
|
|
4001
|
-
pricePerUnit: number | null;
|
|
4002
|
-
comment: string | null;
|
|
4003
|
-
totalCost: number;
|
|
4004
|
-
}[];
|
|
4005
|
-
};
|
|
4006
|
-
meta: object;
|
|
4007
|
-
}>;
|
|
4008
|
-
}>>;
|
|
4009
|
-
}>>;
|
|
4010
|
-
regieReports: BuiltRouter<{
|
|
4011
|
-
ctx: TrpcContext;
|
|
4012
|
-
meta: object;
|
|
4013
|
-
errorShape: {
|
|
4014
|
-
message: string;
|
|
4015
|
-
data: {
|
|
4016
|
-
httpCode: error.http.StatusCodeCode;
|
|
4017
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4018
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4019
|
-
path?: string;
|
|
4020
|
-
stack?: string;
|
|
4021
|
-
};
|
|
4022
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4023
|
-
} | {
|
|
4024
|
-
data: {
|
|
4025
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4026
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4027
|
-
path?: string;
|
|
4028
|
-
stack?: string;
|
|
4029
|
-
};
|
|
4030
|
-
message: string;
|
|
4031
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4032
|
-
};
|
|
4033
|
-
transformer: true;
|
|
4034
|
-
}, DecorateCreateRouterOptions<{
|
|
4035
|
-
list: QueryProcedure<{
|
|
4036
|
-
input: {
|
|
4037
|
-
projectId?: string | null | undefined;
|
|
4038
|
-
dayFrom?: unknown;
|
|
4039
|
-
dayTo?: unknown;
|
|
4040
|
-
limit?: number | undefined;
|
|
4041
|
-
offset?: number | undefined;
|
|
4042
|
-
};
|
|
4043
|
-
output: {
|
|
4044
|
-
id: string;
|
|
4045
|
-
projectId: string;
|
|
4046
|
-
day: Date;
|
|
4047
|
-
summary: string | null;
|
|
4048
|
-
createdByUserId: string;
|
|
4049
|
-
createdAt: Date;
|
|
4050
|
-
autoId: number;
|
|
4051
|
-
products: {
|
|
4052
|
-
id: string;
|
|
4053
|
-
reportId: string;
|
|
4054
|
-
productId: string;
|
|
4055
|
-
quantity: number;
|
|
4056
|
-
comment: string | null;
|
|
4057
|
-
}[];
|
|
4058
|
-
specialRecords: {
|
|
4059
|
-
id: string;
|
|
4060
|
-
reportId: string;
|
|
4061
|
-
name: string;
|
|
4062
|
-
unit: string;
|
|
4063
|
-
amount: number;
|
|
4064
|
-
pricePerUnit: number | null;
|
|
4065
|
-
comment: string | null;
|
|
4066
|
-
}[];
|
|
4067
|
-
workHours: {
|
|
4068
|
-
id: string;
|
|
4069
|
-
reportId: string;
|
|
4070
|
-
userId: string | null;
|
|
4071
|
-
hours: number;
|
|
4072
|
-
costPerHour: number | null;
|
|
4073
|
-
}[];
|
|
4074
|
-
}[];
|
|
4075
|
-
meta: object;
|
|
4076
|
-
}>;
|
|
4077
|
-
get: QueryProcedure<{
|
|
4078
|
-
input: {
|
|
4079
|
-
id: string;
|
|
4080
|
-
};
|
|
4081
|
-
output: {
|
|
4082
|
-
id: string;
|
|
4083
|
-
projectId: string;
|
|
4084
|
-
day: Date;
|
|
4085
|
-
summary: string | null;
|
|
4086
|
-
createdByUserId: string;
|
|
4087
|
-
createdAt: Date;
|
|
4088
|
-
autoId: number;
|
|
4089
|
-
products: {
|
|
4090
|
-
id: string;
|
|
4091
|
-
reportId: string;
|
|
4092
|
-
productId: string;
|
|
4093
|
-
quantity: number;
|
|
4094
|
-
comment: string | null;
|
|
4095
|
-
}[];
|
|
4096
|
-
specialRecords: {
|
|
4097
|
-
id: string;
|
|
4098
|
-
reportId: string;
|
|
4099
|
-
name: string;
|
|
4100
|
-
unit: string;
|
|
4101
|
-
amount: number;
|
|
4102
|
-
pricePerUnit: number | null;
|
|
4103
|
-
comment: string | null;
|
|
4104
|
-
}[];
|
|
4105
|
-
workHours: {
|
|
4106
|
-
id: string;
|
|
4107
|
-
reportId: string;
|
|
4108
|
-
userId: string | null;
|
|
4109
|
-
hours: number;
|
|
4110
|
-
costPerHour: number | null;
|
|
4111
|
-
}[];
|
|
4112
|
-
};
|
|
4113
|
-
meta: object;
|
|
4114
|
-
}>;
|
|
4115
|
-
create: MutationProcedure<{
|
|
4116
|
-
input: {
|
|
4117
|
-
projectId: string;
|
|
4118
|
-
day: unknown;
|
|
4119
|
-
summary?: string | null | undefined;
|
|
4120
|
-
products?: {
|
|
4121
|
-
productId: string;
|
|
4122
|
-
quantity: number;
|
|
4123
|
-
comment?: string | null | undefined;
|
|
4124
|
-
}[] | undefined;
|
|
4125
|
-
specialRecords?: {
|
|
4126
|
-
name: string;
|
|
4127
|
-
unit: string;
|
|
4128
|
-
amount: number;
|
|
4129
|
-
pricePerUnit: number | null;
|
|
4130
|
-
comment?: string | null | undefined;
|
|
4131
|
-
}[] | undefined;
|
|
4132
|
-
workHours?: {
|
|
4133
|
-
hours: number;
|
|
4134
|
-
costPerHour: number | null;
|
|
4135
|
-
userId?: string | null | undefined;
|
|
4136
|
-
}[] | undefined;
|
|
4137
|
-
};
|
|
4138
|
-
output: {
|
|
4139
|
-
id: string;
|
|
4140
|
-
};
|
|
4141
|
-
meta: object;
|
|
4142
|
-
}>;
|
|
4143
|
-
update: MutationProcedure<{
|
|
4144
|
-
input: {
|
|
4145
|
-
id: string;
|
|
4146
|
-
data: {
|
|
4147
|
-
day?: unknown;
|
|
4148
|
-
summary?: string | null | undefined;
|
|
4149
|
-
products?: {
|
|
4150
|
-
productId: string;
|
|
4151
|
-
quantity: number;
|
|
4152
|
-
comment?: string | null | undefined;
|
|
4153
|
-
}[] | null | undefined;
|
|
4154
|
-
specialRecords?: {
|
|
4155
|
-
name: string;
|
|
4156
|
-
unit: string;
|
|
4157
|
-
amount: number;
|
|
4158
|
-
pricePerUnit: number | null;
|
|
4159
|
-
comment?: string | null | undefined;
|
|
4160
|
-
}[] | null | undefined;
|
|
4161
|
-
workHours?: {
|
|
4162
|
-
hours: number;
|
|
4163
|
-
costPerHour: number | null;
|
|
4164
|
-
userId?: string | null | undefined;
|
|
4165
|
-
}[] | null | undefined;
|
|
4166
|
-
};
|
|
4167
|
-
};
|
|
4168
|
-
output: {
|
|
4169
|
-
success: true;
|
|
4170
|
-
};
|
|
4171
|
-
meta: object;
|
|
4172
|
-
}>;
|
|
4173
|
-
delete: MutationProcedure<{
|
|
4174
|
-
input: {
|
|
4175
|
-
id: string;
|
|
4176
|
-
};
|
|
4177
|
-
output: {
|
|
4178
|
-
success: true;
|
|
4179
|
-
};
|
|
4180
|
-
meta: object;
|
|
4181
|
-
}>;
|
|
4182
|
-
costs: BuiltRouter<{
|
|
4183
|
-
ctx: TrpcContext;
|
|
4184
|
-
meta: object;
|
|
4185
|
-
errorShape: {
|
|
4186
|
-
message: string;
|
|
4187
|
-
data: {
|
|
4188
|
-
httpCode: error.http.StatusCodeCode;
|
|
4189
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4190
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4191
|
-
path?: string;
|
|
4192
|
-
stack?: string;
|
|
4193
|
-
};
|
|
4194
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4195
|
-
} | {
|
|
4196
|
-
data: {
|
|
4197
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4198
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4199
|
-
path?: string;
|
|
4200
|
-
stack?: string;
|
|
4201
|
-
};
|
|
4202
|
-
message: string;
|
|
4203
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4204
|
-
};
|
|
4205
|
-
transformer: true;
|
|
4206
|
-
}, DecorateCreateRouterOptions<{
|
|
4207
|
-
get: QueryProcedure<{
|
|
4208
|
-
input: {
|
|
4209
|
-
id: string;
|
|
4210
|
-
};
|
|
4211
|
-
output: {
|
|
4212
|
-
reportId: string;
|
|
4213
|
-
totalCost: number;
|
|
4214
|
-
products: {
|
|
4215
|
-
recordId: string;
|
|
4216
|
-
productId: string;
|
|
4217
|
-
quantity: number;
|
|
4218
|
-
priceRecord: {
|
|
4219
|
-
id: string;
|
|
4220
|
-
productId: string;
|
|
4221
|
-
vendorId: string | null;
|
|
4222
|
-
timestamp: Date;
|
|
4223
|
-
price: number;
|
|
4224
|
-
isRealPurchase: boolean;
|
|
4225
|
-
comment: string | null;
|
|
4226
|
-
} | null;
|
|
4227
|
-
}[];
|
|
4228
|
-
specialRecords: {
|
|
4229
|
-
recordId: string;
|
|
4230
|
-
name: string;
|
|
4231
|
-
unit: string;
|
|
4232
|
-
amount: number;
|
|
4233
|
-
pricePerUnit: number | null;
|
|
4234
|
-
comment: string | null;
|
|
4235
|
-
totalCost: number;
|
|
4236
|
-
}[];
|
|
4237
|
-
workHours: {
|
|
4238
|
-
recordId: string;
|
|
4239
|
-
userId: string | null;
|
|
4240
|
-
hours: number;
|
|
4241
|
-
costPerHour: number | null;
|
|
4242
|
-
totalCost: number;
|
|
4243
|
-
}[];
|
|
4244
|
-
};
|
|
4245
|
-
meta: object;
|
|
4246
|
-
}>;
|
|
4247
|
-
}>>;
|
|
4248
|
-
}>>;
|
|
4249
|
-
users: BuiltRouter<{
|
|
4250
|
-
ctx: TrpcContext;
|
|
4251
|
-
meta: object;
|
|
4252
|
-
errorShape: {
|
|
4253
|
-
message: string;
|
|
4254
|
-
data: {
|
|
4255
|
-
httpCode: error.http.StatusCodeCode;
|
|
4256
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4257
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4258
|
-
path?: string;
|
|
4259
|
-
stack?: string;
|
|
4260
|
-
};
|
|
4261
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4262
|
-
} | {
|
|
4263
|
-
data: {
|
|
4264
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4265
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4266
|
-
path?: string;
|
|
4267
|
-
stack?: string;
|
|
4268
|
-
};
|
|
4269
|
-
message: string;
|
|
4270
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4271
|
-
};
|
|
4272
|
-
transformer: true;
|
|
4273
|
-
}, DecorateCreateRouterOptions<{
|
|
4274
|
-
list: QueryProcedure<{
|
|
4275
|
-
input: {
|
|
4276
|
-
search?: string | null | undefined;
|
|
4277
|
-
deactivated?: boolean | null | undefined;
|
|
4278
|
-
includeArchived?: boolean | undefined;
|
|
4279
|
-
};
|
|
4280
|
-
output: {
|
|
4281
|
-
id: string;
|
|
4282
|
-
salutation: string | null;
|
|
4283
|
-
firstName: string;
|
|
4284
|
-
lastName: string | null;
|
|
4285
|
-
username: string;
|
|
4286
|
-
email: string | null;
|
|
4287
|
-
phone: string | null;
|
|
4288
|
-
contractType: "internal" | "external" | "subcontractor";
|
|
4289
|
-
costPerHour: number | null;
|
|
4290
|
-
createdAt: Date;
|
|
4291
|
-
modifiedAt: Date;
|
|
4292
|
-
deactivatedAt: Date | null;
|
|
4293
|
-
archivedAt: Date | null;
|
|
4294
|
-
}[];
|
|
4295
|
-
meta: object;
|
|
4296
|
-
}>;
|
|
4297
|
-
get: QueryProcedure<{
|
|
4298
|
-
input: {
|
|
4299
|
-
id: string;
|
|
4300
|
-
};
|
|
4301
|
-
output: {
|
|
4302
|
-
id: string;
|
|
4303
|
-
salutation: string | null;
|
|
4304
|
-
firstName: string;
|
|
4305
|
-
lastName: string | null;
|
|
4306
|
-
username: string;
|
|
4307
|
-
email: string | null;
|
|
4308
|
-
phone: string | null;
|
|
4309
|
-
contractType: "internal" | "external" | "subcontractor";
|
|
4310
|
-
costPerHour: number | null;
|
|
4311
|
-
createdAt: Date;
|
|
4312
|
-
modifiedAt: Date;
|
|
4313
|
-
deactivatedAt: Date | null;
|
|
4314
|
-
archivedAt: Date | null;
|
|
4315
|
-
};
|
|
4316
|
-
meta: object;
|
|
4317
|
-
}>;
|
|
4318
|
-
create: MutationProcedure<{
|
|
4319
|
-
input: {
|
|
4320
|
-
username: string;
|
|
4321
|
-
firstName: string;
|
|
4322
|
-
lastName?: string | null | undefined;
|
|
4323
|
-
email?: string | null | undefined;
|
|
4324
|
-
phone?: string | null | undefined;
|
|
4325
|
-
contractType?: "internal" | "external" | "subcontractor" | undefined;
|
|
4326
|
-
costPerHour?: number | null | undefined;
|
|
4327
|
-
};
|
|
4328
|
-
output: {
|
|
4329
|
-
id: string;
|
|
4330
|
-
};
|
|
4331
|
-
meta: object;
|
|
4332
|
-
}>;
|
|
4333
|
-
update: MutationProcedure<{
|
|
4334
|
-
input: {
|
|
4335
|
-
id: string;
|
|
4336
|
-
data: {
|
|
4337
|
-
username?: string | undefined;
|
|
4338
|
-
firstName?: string | undefined;
|
|
4339
|
-
lastName?: string | null | undefined;
|
|
4340
|
-
email?: string | null | undefined;
|
|
4341
|
-
phone?: string | null | undefined;
|
|
4342
|
-
contractType?: "internal" | "external" | "subcontractor" | null | undefined;
|
|
4343
|
-
costPerHour?: number | null | undefined;
|
|
4344
|
-
};
|
|
4345
|
-
};
|
|
4346
|
-
output: {
|
|
4347
|
-
success: true;
|
|
4348
|
-
};
|
|
4349
|
-
meta: object;
|
|
4350
|
-
}>;
|
|
4351
|
-
delete: MutationProcedure<{
|
|
4352
|
-
input: {
|
|
4353
|
-
id: string;
|
|
4354
|
-
};
|
|
4355
|
-
output: {
|
|
4356
|
-
success: true;
|
|
4357
|
-
};
|
|
4358
|
-
meta: object;
|
|
4359
|
-
}>;
|
|
4360
|
-
archive: MutationProcedure<{
|
|
4361
|
-
input: {
|
|
4362
|
-
id: string;
|
|
4363
|
-
};
|
|
4364
|
-
output: {
|
|
4365
|
-
success: true;
|
|
4366
|
-
};
|
|
4367
|
-
meta: object;
|
|
4368
|
-
}>;
|
|
4369
|
-
unarchive: MutationProcedure<{
|
|
4370
|
-
input: {
|
|
4371
|
-
id: string;
|
|
4372
|
-
};
|
|
4373
|
-
output: {
|
|
4374
|
-
success: true;
|
|
4375
|
-
};
|
|
4376
|
-
meta: object;
|
|
4377
|
-
}>;
|
|
4378
|
-
activate: MutationProcedure<{
|
|
4379
|
-
input: {
|
|
4380
|
-
id: string;
|
|
4381
|
-
};
|
|
4382
|
-
output: {
|
|
4383
|
-
success: true;
|
|
4384
|
-
};
|
|
4385
|
-
meta: object;
|
|
4386
|
-
}>;
|
|
4387
|
-
deactivate: MutationProcedure<{
|
|
4388
|
-
input: {
|
|
4389
|
-
id: string;
|
|
4390
|
-
};
|
|
4391
|
-
output: {
|
|
4392
|
-
success: true;
|
|
4393
|
-
};
|
|
4394
|
-
meta: object;
|
|
4395
|
-
}>;
|
|
4396
|
-
roles: BuiltRouter<{
|
|
4397
|
-
ctx: TrpcContext;
|
|
4398
|
-
meta: object;
|
|
4399
|
-
errorShape: {
|
|
4400
|
-
message: string;
|
|
4401
|
-
data: {
|
|
4402
|
-
httpCode: error.http.StatusCodeCode;
|
|
4403
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4404
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4405
|
-
path?: string;
|
|
4406
|
-
stack?: string;
|
|
4407
|
-
};
|
|
4408
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4409
|
-
} | {
|
|
4410
|
-
data: {
|
|
4411
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4412
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4413
|
-
path?: string;
|
|
4414
|
-
stack?: string;
|
|
4415
|
-
};
|
|
4416
|
-
message: string;
|
|
4417
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4418
|
-
};
|
|
4419
|
-
transformer: true;
|
|
4420
|
-
}, DecorateCreateRouterOptions<{
|
|
4421
|
-
list: QueryProcedure<{
|
|
4422
|
-
input: void;
|
|
4423
|
-
output: (":admin" | "view:users" | "manage:users" | "delete:users" | "view:projects" | "manage:projects" | "delete:projects" | "view:projectDeployments" | "manage:projectDeployments" | "delete:projectDeployments" | "view:tools" | "manage:tools" | "delete:tools" | "view:toolTrackings" | "manage:toolTrackings" | "delete:toolTrackings" | "view:toolInventories" | "manage:toolInventories" | "delete:toolInventories" | "view:products" | "manage:products" | "delete:products" | "view:deliveryNotes" | "manage:deliveryNotes" | "delete:deliveryNotes" | "view:productVendors" | "manage:productVendors" | "delete:productVendors" | "view:productPriceRecords" | "manage:productPriceRecords" | "delete:productPriceRecords" | "view:customers" | "manage:customers" | "delete:customers" | "view:contacts" | "manage:contacts" | "delete:contacts" | "view:dailyProjectReports" | "manage:dailyProjectReports" | "delete:dailyProjectReports" | "view:regieReports" | "manage:regieReports" | "delete:regieReports")[];
|
|
4424
|
-
meta: object;
|
|
4425
|
-
}>;
|
|
4426
|
-
get: QueryProcedure<{
|
|
4427
|
-
input: {
|
|
4428
|
-
userId: string;
|
|
4429
|
-
};
|
|
4430
|
-
output: (":admin" | "view:users" | "manage:users" | "delete:users" | "view:projects" | "manage:projects" | "delete:projects" | "view:projectDeployments" | "manage:projectDeployments" | "delete:projectDeployments" | "view:tools" | "manage:tools" | "delete:tools" | "view:toolTrackings" | "manage:toolTrackings" | "delete:toolTrackings" | "view:toolInventories" | "manage:toolInventories" | "delete:toolInventories" | "view:products" | "manage:products" | "delete:products" | "view:deliveryNotes" | "manage:deliveryNotes" | "delete:deliveryNotes" | "view:productVendors" | "manage:productVendors" | "delete:productVendors" | "view:productPriceRecords" | "manage:productPriceRecords" | "delete:productPriceRecords" | "view:customers" | "manage:customers" | "delete:customers" | "view:contacts" | "manage:contacts" | "delete:contacts" | "view:dailyProjectReports" | "manage:dailyProjectReports" | "delete:dailyProjectReports" | "view:regieReports" | "manage:regieReports" | "delete:regieReports")[];
|
|
4431
|
-
meta: object;
|
|
4432
|
-
}>;
|
|
4433
|
-
set: MutationProcedure<{
|
|
4434
|
-
input: {
|
|
4435
|
-
userId: string;
|
|
4436
|
-
assignments: Record<":admin" | "view:users" | "manage:users" | "delete:users" | "view:projects" | "manage:projects" | "delete:projects" | "view:projectDeployments" | "manage:projectDeployments" | "delete:projectDeployments" | "view:tools" | "manage:tools" | "delete:tools" | "view:toolTrackings" | "manage:toolTrackings" | "delete:toolTrackings" | "view:toolInventories" | "manage:toolInventories" | "delete:toolInventories" | "view:products" | "manage:products" | "delete:products" | "view:deliveryNotes" | "manage:deliveryNotes" | "delete:deliveryNotes" | "view:productVendors" | "manage:productVendors" | "delete:productVendors" | "view:productPriceRecords" | "manage:productPriceRecords" | "delete:productPriceRecords" | "view:customers" | "manage:customers" | "delete:customers" | "view:contacts" | "manage:contacts" | "delete:contacts" | "view:dailyProjectReports" | "manage:dailyProjectReports" | "delete:dailyProjectReports" | "view:regieReports" | "manage:regieReports" | "delete:regieReports", boolean | null | undefined>;
|
|
4437
|
-
};
|
|
4438
|
-
output: {
|
|
4439
|
-
success: true;
|
|
4440
|
-
};
|
|
4441
|
-
meta: object;
|
|
4442
|
-
}>;
|
|
4443
|
-
}>>;
|
|
4444
|
-
}>>;
|
|
4445
|
-
tools: BuiltRouter<{
|
|
4446
|
-
ctx: TrpcContext;
|
|
4447
|
-
meta: object;
|
|
4448
|
-
errorShape: {
|
|
4449
|
-
message: string;
|
|
4450
|
-
data: {
|
|
4451
|
-
httpCode: error.http.StatusCodeCode;
|
|
4452
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4453
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4454
|
-
path?: string;
|
|
4455
|
-
stack?: string;
|
|
4456
|
-
};
|
|
4457
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4458
|
-
} | {
|
|
4459
|
-
data: {
|
|
4460
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4461
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4462
|
-
path?: string;
|
|
4463
|
-
stack?: string;
|
|
4464
|
-
};
|
|
4465
|
-
message: string;
|
|
4466
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4467
|
-
};
|
|
4468
|
-
transformer: true;
|
|
4469
|
-
}, DecorateCreateRouterOptions<{
|
|
4470
|
-
list: QueryProcedure<{
|
|
4471
|
-
input: {
|
|
4472
|
-
search?: string | null | undefined;
|
|
4473
|
-
status?: "lost" | "broken" | "available" | "unavailable" | null | undefined;
|
|
4474
|
-
brand?: string | null | undefined;
|
|
4475
|
-
category?: string | null | undefined;
|
|
4476
|
-
};
|
|
4477
|
-
output: {
|
|
4478
|
-
id: string;
|
|
4479
|
-
customId: number;
|
|
4480
|
-
brand: string;
|
|
4481
|
-
category: string;
|
|
4482
|
-
label: string | null;
|
|
4483
|
-
purchasePrice: number | null;
|
|
4484
|
-
usageCostPerDay: number | null;
|
|
4485
|
-
status: "lost" | "broken" | null;
|
|
4486
|
-
available: boolean;
|
|
4487
|
-
createdByUserId: string | null;
|
|
4488
|
-
createdAt: Date;
|
|
4489
|
-
modifiedAt: Date;
|
|
4490
|
-
archivedSince: Date | null;
|
|
4491
|
-
}[];
|
|
4492
|
-
meta: object;
|
|
4493
|
-
}>;
|
|
4494
|
-
get: QueryProcedure<{
|
|
4495
|
-
input: {
|
|
4496
|
-
id: string;
|
|
4497
|
-
};
|
|
4498
|
-
output: {
|
|
4499
|
-
id: string;
|
|
4500
|
-
customId: number;
|
|
4501
|
-
brand: string;
|
|
4502
|
-
category: string;
|
|
4503
|
-
label: string | null;
|
|
4504
|
-
purchasePrice: number | null;
|
|
4505
|
-
usageCostPerDay: number | null;
|
|
4506
|
-
status: "lost" | "broken" | null;
|
|
4507
|
-
available: boolean;
|
|
4508
|
-
createdByUserId: string | null;
|
|
4509
|
-
createdAt: Date;
|
|
4510
|
-
modifiedAt: Date;
|
|
4511
|
-
archivedSince: Date | null;
|
|
4512
|
-
};
|
|
4513
|
-
meta: object;
|
|
4514
|
-
}>;
|
|
4515
|
-
create: MutationProcedure<{
|
|
4516
|
-
input: {
|
|
4517
|
-
customId: number;
|
|
4518
|
-
brand: string;
|
|
4519
|
-
category: string;
|
|
4520
|
-
label?: string | null | undefined;
|
|
4521
|
-
purchasePrice?: number | null | undefined;
|
|
4522
|
-
usageCostPerDay?: number | null | undefined;
|
|
4523
|
-
status?: "lost" | "broken" | null | undefined;
|
|
4524
|
-
};
|
|
4525
|
-
output: {
|
|
4526
|
-
id: string;
|
|
4527
|
-
};
|
|
4528
|
-
meta: object;
|
|
4529
|
-
}>;
|
|
4530
|
-
update: MutationProcedure<{
|
|
4531
|
-
input: {
|
|
4532
|
-
id: string;
|
|
4533
|
-
data: {
|
|
4534
|
-
brand?: string | undefined;
|
|
4535
|
-
category?: string | undefined;
|
|
4536
|
-
label?: string | null | undefined;
|
|
4537
|
-
purchasePrice?: number | null | undefined;
|
|
4538
|
-
usageCostPerDay?: number | null | undefined;
|
|
4539
|
-
status?: "lost" | "broken" | null | undefined;
|
|
4540
|
-
};
|
|
4541
|
-
};
|
|
4542
|
-
output: {
|
|
4543
|
-
success: true;
|
|
4544
|
-
};
|
|
4545
|
-
meta: object;
|
|
4546
|
-
}>;
|
|
4547
|
-
delete: MutationProcedure<{
|
|
4548
|
-
input: {
|
|
4549
|
-
id: string;
|
|
4550
|
-
};
|
|
4551
|
-
output: {
|
|
4552
|
-
success: true;
|
|
4553
|
-
};
|
|
4554
|
-
meta: object;
|
|
4555
|
-
}>;
|
|
4556
|
-
archive: MutationProcedure<{
|
|
4557
|
-
input: {
|
|
4558
|
-
id: string;
|
|
4559
|
-
};
|
|
4560
|
-
output: {
|
|
4561
|
-
success: true;
|
|
4562
|
-
};
|
|
4563
|
-
meta: object;
|
|
4564
|
-
}>;
|
|
4565
|
-
unarchive: MutationProcedure<{
|
|
4566
|
-
input: {
|
|
4567
|
-
id: string;
|
|
4568
|
-
};
|
|
4569
|
-
output: {
|
|
4570
|
-
success: true;
|
|
4571
|
-
};
|
|
4572
|
-
meta: object;
|
|
4573
|
-
}>;
|
|
4574
|
-
track: MutationProcedure<{
|
|
4575
|
-
input: {
|
|
4576
|
-
id: string;
|
|
4577
|
-
data: {
|
|
4578
|
-
projectId?: string | null | undefined;
|
|
4579
|
-
responsibleUserId?: string | null | undefined;
|
|
4580
|
-
deadlineAt?: unknown;
|
|
4581
|
-
comment?: string | null | undefined;
|
|
4582
|
-
};
|
|
4583
|
-
};
|
|
4584
|
-
output: {
|
|
4585
|
-
trackingId: string;
|
|
4586
|
-
};
|
|
4587
|
-
meta: object;
|
|
4588
|
-
}>;
|
|
4589
|
-
untrack: MutationProcedure<{
|
|
4590
|
-
input: {
|
|
4591
|
-
id: string;
|
|
4592
|
-
};
|
|
4593
|
-
output: {
|
|
4594
|
-
success: true;
|
|
4595
|
-
};
|
|
4596
|
-
meta: object;
|
|
4597
|
-
}>;
|
|
4598
|
-
trackings: BuiltRouter<{
|
|
4599
|
-
ctx: TrpcContext;
|
|
4600
|
-
meta: object;
|
|
4601
|
-
errorShape: {
|
|
4602
|
-
message: string;
|
|
4603
|
-
data: {
|
|
4604
|
-
httpCode: error.http.StatusCodeCode;
|
|
4605
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4606
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4607
|
-
path?: string;
|
|
4608
|
-
stack?: string;
|
|
4609
|
-
};
|
|
4610
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4611
|
-
} | {
|
|
4612
|
-
data: {
|
|
4613
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4614
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4615
|
-
path?: string;
|
|
4616
|
-
stack?: string;
|
|
4617
|
-
};
|
|
4618
|
-
message: string;
|
|
4619
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4620
|
-
};
|
|
4621
|
-
transformer: true;
|
|
4622
|
-
}, DecorateCreateRouterOptions<{
|
|
4623
|
-
list: QueryProcedure<{
|
|
4624
|
-
input: {
|
|
4625
|
-
finished?: boolean | null | undefined;
|
|
4626
|
-
toolId?: string | null | undefined;
|
|
4627
|
-
projectId?: string | null | undefined;
|
|
4628
|
-
responsibleUserId?: string | null | undefined;
|
|
4629
|
-
startedByUserId?: string | null | undefined;
|
|
4630
|
-
endedByUserId?: string | null | undefined;
|
|
4631
|
-
startedBefore?: unknown;
|
|
4632
|
-
startedAfter?: unknown;
|
|
4633
|
-
endedBefore?: unknown;
|
|
4634
|
-
endedAfter?: unknown;
|
|
4635
|
-
limit?: number | undefined;
|
|
4636
|
-
offset?: number | undefined;
|
|
4637
|
-
};
|
|
4638
|
-
output: {
|
|
4639
|
-
id: string;
|
|
4640
|
-
toolId: string;
|
|
4641
|
-
projectId: string | null;
|
|
4642
|
-
responsibleUserId: string | null;
|
|
4643
|
-
startedByUserId: string | null;
|
|
4644
|
-
endedByUserId: string | null;
|
|
4645
|
-
toolUsageCostPerDay: number | null;
|
|
4646
|
-
comment: string | null;
|
|
4647
|
-
startedAt: Date;
|
|
4648
|
-
endedAt: Date | null;
|
|
4649
|
-
deadlineAt: Date | null;
|
|
4650
|
-
}[];
|
|
4651
|
-
meta: object;
|
|
4652
|
-
}>;
|
|
4653
|
-
transfers: BuiltRouter<{
|
|
4654
|
-
ctx: TrpcContext;
|
|
4655
|
-
meta: object;
|
|
4656
|
-
errorShape: {
|
|
4657
|
-
message: string;
|
|
4658
|
-
data: {
|
|
4659
|
-
httpCode: error.http.StatusCodeCode;
|
|
4660
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4661
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4662
|
-
path?: string;
|
|
4663
|
-
stack?: string;
|
|
4664
|
-
};
|
|
4665
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4666
|
-
} | {
|
|
4667
|
-
data: {
|
|
4668
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4669
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4670
|
-
path?: string;
|
|
4671
|
-
stack?: string;
|
|
4672
|
-
};
|
|
4673
|
-
message: string;
|
|
4674
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4675
|
-
};
|
|
4676
|
-
transformer: true;
|
|
4677
|
-
}, DecorateCreateRouterOptions<{
|
|
4678
|
-
list: QueryProcedure<{
|
|
4679
|
-
input: {
|
|
4680
|
-
toolId?: string | null | undefined;
|
|
4681
|
-
status?: "open" | "denied" | "accepted" | null | undefined;
|
|
4682
|
-
createdByUserId?: string | null | undefined;
|
|
4683
|
-
transferToUserId?: string | null | undefined;
|
|
4684
|
-
projectId?: string | null | undefined;
|
|
4685
|
-
limit?: number | undefined;
|
|
4686
|
-
offset?: number | undefined;
|
|
4687
|
-
};
|
|
4688
|
-
output: {
|
|
4689
|
-
id: string;
|
|
4690
|
-
toolTrackingId: string;
|
|
4691
|
-
toolId: string;
|
|
4692
|
-
transferToUserId: string;
|
|
4693
|
-
createdByUserId: string;
|
|
4694
|
-
projectId: string | null;
|
|
4695
|
-
status: "open" | "denied" | "accepted";
|
|
4696
|
-
notes: string | null;
|
|
4697
|
-
createdAt: Date;
|
|
4698
|
-
responsibleUserId: string | null;
|
|
4699
|
-
toolUsageCostPerDay: number | null;
|
|
4700
|
-
}[];
|
|
4701
|
-
meta: object;
|
|
4702
|
-
}>;
|
|
4703
|
-
request: MutationProcedure<{
|
|
4704
|
-
input: {
|
|
4705
|
-
toolTrackingId: string;
|
|
4706
|
-
transferToUserId?: string | null | undefined;
|
|
4707
|
-
projectId?: string | null | undefined;
|
|
4708
|
-
notes?: string | null | undefined;
|
|
4709
|
-
};
|
|
4710
|
-
output: {
|
|
4711
|
-
id: string;
|
|
4712
|
-
};
|
|
4713
|
-
meta: object;
|
|
4714
|
-
}>;
|
|
4715
|
-
accept: MutationProcedure<{
|
|
4716
|
-
input: {
|
|
4717
|
-
id: string;
|
|
4718
|
-
projectId?: string | null | undefined;
|
|
4719
|
-
};
|
|
4720
|
-
output: {
|
|
4721
|
-
success: true;
|
|
4722
|
-
};
|
|
4723
|
-
meta: object;
|
|
4724
|
-
}>;
|
|
4725
|
-
deny: MutationProcedure<{
|
|
4726
|
-
input: {
|
|
4727
|
-
id: string;
|
|
4728
|
-
};
|
|
4729
|
-
output: {
|
|
4730
|
-
success: true;
|
|
4731
|
-
};
|
|
4732
|
-
meta: object;
|
|
4733
|
-
}>;
|
|
4734
|
-
}>>;
|
|
4735
|
-
}>>;
|
|
4736
|
-
inventories: BuiltRouter<{
|
|
4737
|
-
ctx: TrpcContext;
|
|
4738
|
-
meta: object;
|
|
4739
|
-
errorShape: {
|
|
4740
|
-
message: string;
|
|
4741
|
-
data: {
|
|
4742
|
-
httpCode: error.http.StatusCodeCode;
|
|
4743
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4744
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4745
|
-
path?: string;
|
|
4746
|
-
stack?: string;
|
|
4747
|
-
};
|
|
4748
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4749
|
-
} | {
|
|
4750
|
-
data: {
|
|
4751
|
-
validationErrors: import("zod/v4/core").$ZodIssue[] | undefined;
|
|
4752
|
-
code: TRPC_ERROR_CODE_KEY;
|
|
4753
|
-
path?: string;
|
|
4754
|
-
stack?: string;
|
|
4755
|
-
};
|
|
4756
|
-
message: string;
|
|
4757
|
-
code: TRPC_ERROR_CODE_NUMBER;
|
|
4758
|
-
};
|
|
4759
|
-
transformer: true;
|
|
4760
|
-
}, DecorateCreateRouterOptions<{
|
|
4761
|
-
list: QueryProcedure<{
|
|
4762
|
-
input: {
|
|
4763
|
-
toolId?: string | null | undefined;
|
|
4764
|
-
};
|
|
4765
|
-
output: {
|
|
4766
|
-
id: string;
|
|
4767
|
-
toolId: string;
|
|
4768
|
-
comment: string | null;
|
|
4769
|
-
createdAt: Date;
|
|
4770
|
-
}[];
|
|
4771
|
-
meta: object;
|
|
4772
|
-
}>;
|
|
4773
|
-
create: MutationProcedure<{
|
|
4774
|
-
input: {
|
|
4775
|
-
toolId: string;
|
|
4776
|
-
comment?: string | null | undefined;
|
|
4777
|
-
};
|
|
4778
|
-
output: {
|
|
4779
|
-
id: string;
|
|
4780
|
-
};
|
|
4781
|
-
meta: object;
|
|
4782
|
-
}>;
|
|
4783
|
-
delete: MutationProcedure<{
|
|
4784
|
-
input: {
|
|
4785
|
-
id: string;
|
|
4786
|
-
};
|
|
4787
|
-
output: {
|
|
4788
|
-
success: true;
|
|
4789
|
-
};
|
|
4790
|
-
meta: object;
|
|
4791
|
-
}>;
|
|
4792
|
-
}>>;
|
|
4793
|
-
categories: QueryProcedure<{
|
|
4794
|
-
input: void;
|
|
4795
|
-
output: string[];
|
|
4796
|
-
meta: object;
|
|
4797
|
-
}>;
|
|
4798
|
-
brands: QueryProcedure<{
|
|
4799
|
-
input: void;
|
|
4800
|
-
output: string[];
|
|
4801
|
-
meta: object;
|
|
4802
|
-
}>;
|
|
4803
|
-
suggestNextCustomId: QueryProcedure<{
|
|
4804
|
-
input: void;
|
|
4805
|
-
output: number;
|
|
4806
|
-
meta: object;
|
|
4807
|
-
}>;
|
|
4808
|
-
}>>;
|
|
4809
2066
|
}>>;
|
|
4810
2067
|
export type AppRouter = typeof appRouter;
|
|
4811
2068
|
interface Cache$1 {
|