@sortsys/v2-client 0.1.20 → 0.1.22
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 +49 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2518,6 +2518,16 @@ declare const appRouter: BuiltRouter<{
|
|
|
2518
2518
|
};
|
|
2519
2519
|
meta: object;
|
|
2520
2520
|
}>;
|
|
2521
|
+
set: MutationProcedure<{
|
|
2522
|
+
input: {
|
|
2523
|
+
customerId: string;
|
|
2524
|
+
contactIds: string[];
|
|
2525
|
+
};
|
|
2526
|
+
output: {
|
|
2527
|
+
success: true;
|
|
2528
|
+
};
|
|
2529
|
+
meta: object;
|
|
2530
|
+
}>;
|
|
2521
2531
|
remove: MutationProcedure<{
|
|
2522
2532
|
input: {
|
|
2523
2533
|
customerId: string;
|
|
@@ -3437,21 +3447,45 @@ declare const appRouter: BuiltRouter<{
|
|
|
3437
3447
|
};
|
|
3438
3448
|
meta: object;
|
|
3439
3449
|
}>;
|
|
3440
|
-
roles:
|
|
3441
|
-
|
|
3442
|
-
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:contacts" | "manage:contacts" | "delete:contacts" | "view:productPriceRecords" | "manage:productPriceRecords" | "delete:productPriceRecords" | "view:customers" | "manage:customers" | "delete:customers")[];
|
|
3450
|
+
roles: BuiltRouter<{
|
|
3451
|
+
ctx: TrpcContext;
|
|
3443
3452
|
meta: object;
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3453
|
+
errorShape: DefaultErrorShape | {
|
|
3454
|
+
message: string;
|
|
3455
|
+
data: {
|
|
3456
|
+
httpCode: error.http.StatusCodeCode;
|
|
3457
|
+
code: TRPC_ERROR_CODE_KEY;
|
|
3458
|
+
httpStatus: number;
|
|
3459
|
+
path?: string;
|
|
3460
|
+
stack?: string;
|
|
3461
|
+
};
|
|
3462
|
+
code: TRPC_ERROR_CODE_NUMBER;
|
|
3452
3463
|
};
|
|
3453
|
-
|
|
3454
|
-
}
|
|
3464
|
+
transformer: true;
|
|
3465
|
+
}, DecorateCreateRouterOptions<{
|
|
3466
|
+
list: QueryProcedure<{
|
|
3467
|
+
input: void;
|
|
3468
|
+
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:contacts" | "manage:contacts" | "delete:contacts" | "view:productPriceRecords" | "manage:productPriceRecords" | "delete:productPriceRecords" | "view:customers" | "manage:customers" | "delete:customers")[];
|
|
3469
|
+
meta: object;
|
|
3470
|
+
}>;
|
|
3471
|
+
get: QueryProcedure<{
|
|
3472
|
+
input: {
|
|
3473
|
+
userId: string;
|
|
3474
|
+
};
|
|
3475
|
+
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:contacts" | "manage:contacts" | "delete:contacts" | "view:productPriceRecords" | "manage:productPriceRecords" | "delete:productPriceRecords" | "view:customers" | "manage:customers" | "delete:customers")[];
|
|
3476
|
+
meta: object;
|
|
3477
|
+
}>;
|
|
3478
|
+
set: MutationProcedure<{
|
|
3479
|
+
input: {
|
|
3480
|
+
userId: string;
|
|
3481
|
+
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:contacts" | "manage:contacts" | "delete:contacts" | "view:productPriceRecords" | "manage:productPriceRecords" | "delete:productPriceRecords" | "view:customers" | "manage:customers" | "delete:customers", boolean | null | undefined>;
|
|
3482
|
+
};
|
|
3483
|
+
output: {
|
|
3484
|
+
success: true;
|
|
3485
|
+
};
|
|
3486
|
+
meta: object;
|
|
3487
|
+
}>;
|
|
3488
|
+
}>>;
|
|
3455
3489
|
}>>;
|
|
3456
3490
|
tools: BuiltRouter<{
|
|
3457
3491
|
ctx: TrpcContext;
|
|
@@ -3660,7 +3694,7 @@ declare const appRouter: BuiltRouter<{
|
|
|
3660
3694
|
list: QueryProcedure<{
|
|
3661
3695
|
input: {
|
|
3662
3696
|
toolId?: string | null | undefined;
|
|
3663
|
-
status?: "open" | "
|
|
3697
|
+
status?: "open" | "denied" | "accepted" | null | undefined;
|
|
3664
3698
|
createdByUserId?: string | null | undefined;
|
|
3665
3699
|
transferToUserId?: string | null | undefined;
|
|
3666
3700
|
projectId?: string | null | undefined;
|
|
@@ -3674,7 +3708,7 @@ declare const appRouter: BuiltRouter<{
|
|
|
3674
3708
|
transferToUserId: string;
|
|
3675
3709
|
createdByUserId: string;
|
|
3676
3710
|
projectId: string | null;
|
|
3677
|
-
status: "open" | "
|
|
3711
|
+
status: "open" | "denied" | "accepted";
|
|
3678
3712
|
notes: string | null;
|
|
3679
3713
|
createdAt: Date;
|
|
3680
3714
|
responsibleUserId: string | null;
|