@sortsys/v2-client 0.1.24 → 0.1.26
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 +289 -69
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1769,6 +1769,9 @@ declare const ROLES: readonly [
|
|
|
1769
1769
|
"view:users",
|
|
1770
1770
|
"manage:users",
|
|
1771
1771
|
"delete:users",
|
|
1772
|
+
"view:userWorkHours",
|
|
1773
|
+
"manage:userWorkHours",
|
|
1774
|
+
"delete:userWorkHours",
|
|
1772
1775
|
"view:projects",
|
|
1773
1776
|
"manage:projects",
|
|
1774
1777
|
"delete:projects",
|
|
@@ -2101,7 +2104,7 @@ declare const appRouter: BuiltRouter<{
|
|
|
2101
2104
|
createdAt: Date;
|
|
2102
2105
|
expiresAt: Date;
|
|
2103
2106
|
};
|
|
2104
|
-
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:contacts" | "manage:contacts" | "delete:contacts" | "view:productPriceRecords" | "manage:productPriceRecords" | "delete:productPriceRecords" | "view:customers" | "manage:customers" | "delete:customers")[];
|
|
2107
|
+
roles: (":admin" | "view:users" | "manage:users" | "delete:users" | "view:userWorkHours" | "manage:userWorkHours" | "delete:userWorkHours" | "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")[];
|
|
2105
2108
|
tenant: {
|
|
2106
2109
|
companyName: string | null;
|
|
2107
2110
|
};
|
|
@@ -2807,6 +2810,52 @@ declare const appRouter: BuiltRouter<{
|
|
|
2807
2810
|
meta: object;
|
|
2808
2811
|
}>;
|
|
2809
2812
|
}>>;
|
|
2813
|
+
costs: BuiltRouter<{
|
|
2814
|
+
ctx: TrpcContext;
|
|
2815
|
+
meta: object;
|
|
2816
|
+
errorShape: DefaultErrorShape | {
|
|
2817
|
+
message: string;
|
|
2818
|
+
data: {
|
|
2819
|
+
httpCode: error.http.StatusCodeCode;
|
|
2820
|
+
code: TRPC_ERROR_CODE_KEY;
|
|
2821
|
+
httpStatus: number;
|
|
2822
|
+
path?: string;
|
|
2823
|
+
stack?: string;
|
|
2824
|
+
};
|
|
2825
|
+
code: TRPC_ERROR_CODE_NUMBER;
|
|
2826
|
+
};
|
|
2827
|
+
transformer: true;
|
|
2828
|
+
}, DecorateCreateRouterOptions<{
|
|
2829
|
+
get: QueryProcedure<{
|
|
2830
|
+
input: {
|
|
2831
|
+
projectId: string;
|
|
2832
|
+
from?: unknown;
|
|
2833
|
+
to?: unknown;
|
|
2834
|
+
};
|
|
2835
|
+
output: {
|
|
2836
|
+
deliveryNotes: {
|
|
2837
|
+
noteId: string;
|
|
2838
|
+
effectiveTimestamp: Date;
|
|
2839
|
+
totalCost: number;
|
|
2840
|
+
}[];
|
|
2841
|
+
products: {
|
|
2842
|
+
productId: string;
|
|
2843
|
+
quantity: number;
|
|
2844
|
+
totalCost: number;
|
|
2845
|
+
priceRecord: {
|
|
2846
|
+
id: string;
|
|
2847
|
+
productId: string;
|
|
2848
|
+
vendorId: string | null;
|
|
2849
|
+
timestamp: Date;
|
|
2850
|
+
price: number;
|
|
2851
|
+
isRealPurchase: boolean;
|
|
2852
|
+
comment: string | null;
|
|
2853
|
+
} | null;
|
|
2854
|
+
}[];
|
|
2855
|
+
};
|
|
2856
|
+
meta: object;
|
|
2857
|
+
}>;
|
|
2858
|
+
}>>;
|
|
2810
2859
|
}>>;
|
|
2811
2860
|
contacts: BuiltRouter<{
|
|
2812
2861
|
ctx: TrpcContext;
|
|
@@ -2955,6 +3004,42 @@ declare const appRouter: BuiltRouter<{
|
|
|
2955
3004
|
meta: object;
|
|
2956
3005
|
}>;
|
|
2957
3006
|
}>>;
|
|
3007
|
+
customers: BuiltRouter<{
|
|
3008
|
+
ctx: TrpcContext;
|
|
3009
|
+
meta: object;
|
|
3010
|
+
errorShape: DefaultErrorShape | {
|
|
3011
|
+
message: string;
|
|
3012
|
+
data: {
|
|
3013
|
+
httpCode: error.http.StatusCodeCode;
|
|
3014
|
+
code: TRPC_ERROR_CODE_KEY;
|
|
3015
|
+
httpStatus: number;
|
|
3016
|
+
path?: string;
|
|
3017
|
+
stack?: string;
|
|
3018
|
+
};
|
|
3019
|
+
code: TRPC_ERROR_CODE_NUMBER;
|
|
3020
|
+
};
|
|
3021
|
+
transformer: true;
|
|
3022
|
+
}, DecorateCreateRouterOptions<{
|
|
3023
|
+
list: QueryProcedure<{
|
|
3024
|
+
input: {
|
|
3025
|
+
contactId: string;
|
|
3026
|
+
};
|
|
3027
|
+
output: {
|
|
3028
|
+
id: string;
|
|
3029
|
+
salutation: string | null;
|
|
3030
|
+
name: string;
|
|
3031
|
+
address: {
|
|
3032
|
+
city: string;
|
|
3033
|
+
streetAddress: string;
|
|
3034
|
+
country?: string | null | undefined;
|
|
3035
|
+
zip?: string | null | undefined;
|
|
3036
|
+
} | null;
|
|
3037
|
+
createdAt: Date;
|
|
3038
|
+
modifiedAt: Date;
|
|
3039
|
+
}[];
|
|
3040
|
+
meta: object;
|
|
3041
|
+
}>;
|
|
3042
|
+
}>>;
|
|
2958
3043
|
}>>;
|
|
2959
3044
|
products: BuiltRouter<{
|
|
2960
3045
|
ctx: TrpcContext;
|
|
@@ -3211,7 +3296,7 @@ declare const appRouter: BuiltRouter<{
|
|
|
3211
3296
|
productId: string;
|
|
3212
3297
|
vendorId: string | null;
|
|
3213
3298
|
timestamp: Date;
|
|
3214
|
-
|
|
3299
|
+
price: number;
|
|
3215
3300
|
isRealPurchase: boolean;
|
|
3216
3301
|
comment: string | null;
|
|
3217
3302
|
}[];
|
|
@@ -3258,7 +3343,101 @@ declare const appRouter: BuiltRouter<{
|
|
|
3258
3343
|
meta: object;
|
|
3259
3344
|
}>;
|
|
3260
3345
|
}>>;
|
|
3261
|
-
|
|
3346
|
+
suggestNextCustomId: QueryProcedure<{
|
|
3347
|
+
input: void;
|
|
3348
|
+
output: number;
|
|
3349
|
+
meta: object;
|
|
3350
|
+
}>;
|
|
3351
|
+
}>>;
|
|
3352
|
+
deliveryNotes: BuiltRouter<{
|
|
3353
|
+
ctx: TrpcContext;
|
|
3354
|
+
meta: object;
|
|
3355
|
+
errorShape: DefaultErrorShape | {
|
|
3356
|
+
message: string;
|
|
3357
|
+
data: {
|
|
3358
|
+
httpCode: error.http.StatusCodeCode;
|
|
3359
|
+
code: TRPC_ERROR_CODE_KEY;
|
|
3360
|
+
httpStatus: number;
|
|
3361
|
+
path?: string;
|
|
3362
|
+
stack?: string;
|
|
3363
|
+
};
|
|
3364
|
+
code: TRPC_ERROR_CODE_NUMBER;
|
|
3365
|
+
};
|
|
3366
|
+
transformer: true;
|
|
3367
|
+
}, DecorateCreateRouterOptions<{
|
|
3368
|
+
list: QueryProcedure<{
|
|
3369
|
+
input: {
|
|
3370
|
+
projectId?: string | null | undefined;
|
|
3371
|
+
createdByUserId?: string | null | undefined;
|
|
3372
|
+
};
|
|
3373
|
+
output: {
|
|
3374
|
+
id: string;
|
|
3375
|
+
autoId: number;
|
|
3376
|
+
projectId: string;
|
|
3377
|
+
comment: string | null;
|
|
3378
|
+
createdByUserId: string | null;
|
|
3379
|
+
createdAt: Date;
|
|
3380
|
+
effectiveTimestamp: Date;
|
|
3381
|
+
records: {
|
|
3382
|
+
id: string;
|
|
3383
|
+
noteId: string;
|
|
3384
|
+
productId: string;
|
|
3385
|
+
quantity: number;
|
|
3386
|
+
comment: string | null;
|
|
3387
|
+
}[];
|
|
3388
|
+
}[];
|
|
3389
|
+
meta: object;
|
|
3390
|
+
}>;
|
|
3391
|
+
create: MutationProcedure<{
|
|
3392
|
+
input: {
|
|
3393
|
+
projectId: string;
|
|
3394
|
+
records: {
|
|
3395
|
+
productId: string;
|
|
3396
|
+
quantity: number;
|
|
3397
|
+
comment?: string | null | undefined;
|
|
3398
|
+
}[];
|
|
3399
|
+
effectiveTimestamp?: Date | null | undefined;
|
|
3400
|
+
comment?: string | null | undefined;
|
|
3401
|
+
};
|
|
3402
|
+
output: {
|
|
3403
|
+
id: string;
|
|
3404
|
+
};
|
|
3405
|
+
meta: object;
|
|
3406
|
+
}>;
|
|
3407
|
+
get: QueryProcedure<{
|
|
3408
|
+
input: {
|
|
3409
|
+
id: string;
|
|
3410
|
+
} | {
|
|
3411
|
+
autoId: unknown;
|
|
3412
|
+
};
|
|
3413
|
+
output: {
|
|
3414
|
+
id: string;
|
|
3415
|
+
autoId: number;
|
|
3416
|
+
projectId: string;
|
|
3417
|
+
comment: string | null;
|
|
3418
|
+
createdByUserId: string | null;
|
|
3419
|
+
createdAt: Date;
|
|
3420
|
+
effectiveTimestamp: Date;
|
|
3421
|
+
records: {
|
|
3422
|
+
id: string;
|
|
3423
|
+
noteId: string;
|
|
3424
|
+
productId: string;
|
|
3425
|
+
quantity: number;
|
|
3426
|
+
comment: string | null;
|
|
3427
|
+
}[];
|
|
3428
|
+
};
|
|
3429
|
+
meta: object;
|
|
3430
|
+
}>;
|
|
3431
|
+
delete: MutationProcedure<{
|
|
3432
|
+
input: {
|
|
3433
|
+
id: string;
|
|
3434
|
+
};
|
|
3435
|
+
output: {
|
|
3436
|
+
success: true;
|
|
3437
|
+
};
|
|
3438
|
+
meta: object;
|
|
3439
|
+
}>;
|
|
3440
|
+
costs: BuiltRouter<{
|
|
3262
3441
|
ctx: TrpcContext;
|
|
3263
3442
|
meta: object;
|
|
3264
3443
|
errorShape: DefaultErrorShape | {
|
|
@@ -3274,82 +3453,31 @@ declare const appRouter: BuiltRouter<{
|
|
|
3274
3453
|
};
|
|
3275
3454
|
transformer: true;
|
|
3276
3455
|
}, DecorateCreateRouterOptions<{
|
|
3277
|
-
list: QueryProcedure<{
|
|
3278
|
-
input: {
|
|
3279
|
-
projectId?: string | null | undefined;
|
|
3280
|
-
createdByUserId?: string | null | undefined;
|
|
3281
|
-
};
|
|
3282
|
-
output: {
|
|
3283
|
-
id: string;
|
|
3284
|
-
autoId: number;
|
|
3285
|
-
projectId: string;
|
|
3286
|
-
comment: string | null;
|
|
3287
|
-
createdByUserId: string | null;
|
|
3288
|
-
createdAt: Date;
|
|
3289
|
-
effectiveTimestamp: Date;
|
|
3290
|
-
records: {
|
|
3291
|
-
id: string;
|
|
3292
|
-
noteId: string;
|
|
3293
|
-
productId: string;
|
|
3294
|
-
quantity: number;
|
|
3295
|
-
comment: string | null;
|
|
3296
|
-
}[];
|
|
3297
|
-
}[];
|
|
3298
|
-
meta: object;
|
|
3299
|
-
}>;
|
|
3300
|
-
create: MutationProcedure<{
|
|
3301
|
-
input: {
|
|
3302
|
-
projectId: string;
|
|
3303
|
-
records: {
|
|
3304
|
-
productId: string;
|
|
3305
|
-
quantity: number;
|
|
3306
|
-
comment?: string | null | undefined;
|
|
3307
|
-
}[];
|
|
3308
|
-
effectiveTimestamp?: Date | null | undefined;
|
|
3309
|
-
comment?: string | null | undefined;
|
|
3310
|
-
};
|
|
3311
|
-
output: {
|
|
3312
|
-
id: string;
|
|
3313
|
-
};
|
|
3314
|
-
meta: object;
|
|
3315
|
-
}>;
|
|
3316
3456
|
get: QueryProcedure<{
|
|
3317
3457
|
input: {
|
|
3318
3458
|
id: string;
|
|
3319
3459
|
};
|
|
3320
3460
|
output: {
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
projectId: string;
|
|
3324
|
-
comment: string | null;
|
|
3325
|
-
createdByUserId: string | null;
|
|
3326
|
-
createdAt: Date;
|
|
3327
|
-
effectiveTimestamp: Date;
|
|
3461
|
+
noteId: string;
|
|
3462
|
+
totalCost: number;
|
|
3328
3463
|
records: {
|
|
3329
|
-
|
|
3330
|
-
noteId: string;
|
|
3464
|
+
recordId: string;
|
|
3331
3465
|
productId: string;
|
|
3332
3466
|
quantity: number;
|
|
3333
|
-
|
|
3467
|
+
priceRecord: {
|
|
3468
|
+
id: string;
|
|
3469
|
+
productId: string;
|
|
3470
|
+
vendorId: string | null;
|
|
3471
|
+
timestamp: Date;
|
|
3472
|
+
price: number;
|
|
3473
|
+
isRealPurchase: boolean;
|
|
3474
|
+
comment: string | null;
|
|
3475
|
+
} | null;
|
|
3334
3476
|
}[];
|
|
3335
3477
|
};
|
|
3336
3478
|
meta: object;
|
|
3337
3479
|
}>;
|
|
3338
|
-
delete: MutationProcedure<{
|
|
3339
|
-
input: {
|
|
3340
|
-
id: string;
|
|
3341
|
-
};
|
|
3342
|
-
output: {
|
|
3343
|
-
success: true;
|
|
3344
|
-
};
|
|
3345
|
-
meta: object;
|
|
3346
|
-
}>;
|
|
3347
3480
|
}>>;
|
|
3348
|
-
suggestNextCustomId: QueryProcedure<{
|
|
3349
|
-
input: void;
|
|
3350
|
-
output: number;
|
|
3351
|
-
meta: object;
|
|
3352
|
-
}>;
|
|
3353
3481
|
}>>;
|
|
3354
3482
|
users: BuiltRouter<{
|
|
3355
3483
|
ctx: TrpcContext;
|
|
@@ -3382,6 +3510,7 @@ declare const appRouter: BuiltRouter<{
|
|
|
3382
3510
|
email: string | null;
|
|
3383
3511
|
phone: string | null;
|
|
3384
3512
|
contractType: "internal" | "external" | "subcontractor";
|
|
3513
|
+
costPerHour: number | null;
|
|
3385
3514
|
createdAt: Date;
|
|
3386
3515
|
modifiedAt: Date;
|
|
3387
3516
|
deactivatedAt: Date | null;
|
|
@@ -3402,6 +3531,7 @@ declare const appRouter: BuiltRouter<{
|
|
|
3402
3531
|
email: string | null;
|
|
3403
3532
|
phone: string | null;
|
|
3404
3533
|
contractType: "internal" | "external" | "subcontractor";
|
|
3534
|
+
costPerHour: number | null;
|
|
3405
3535
|
createdAt: Date;
|
|
3406
3536
|
modifiedAt: Date;
|
|
3407
3537
|
deactivatedAt: Date | null;
|
|
@@ -3417,6 +3547,7 @@ declare const appRouter: BuiltRouter<{
|
|
|
3417
3547
|
email?: string | null | undefined;
|
|
3418
3548
|
phone?: string | null | undefined;
|
|
3419
3549
|
contractType?: "internal" | "external" | "subcontractor" | undefined;
|
|
3550
|
+
costPerHour?: number | null | undefined;
|
|
3420
3551
|
};
|
|
3421
3552
|
output: {
|
|
3422
3553
|
id: string;
|
|
@@ -3433,6 +3564,7 @@ declare const appRouter: BuiltRouter<{
|
|
|
3433
3564
|
email?: string | null | undefined;
|
|
3434
3565
|
phone?: string | null | undefined;
|
|
3435
3566
|
contractType?: "internal" | "external" | "subcontractor" | null | undefined;
|
|
3567
|
+
costPerHour?: number | null | undefined;
|
|
3436
3568
|
};
|
|
3437
3569
|
};
|
|
3438
3570
|
output: {
|
|
@@ -3485,6 +3617,94 @@ declare const appRouter: BuiltRouter<{
|
|
|
3485
3617
|
};
|
|
3486
3618
|
meta: object;
|
|
3487
3619
|
}>;
|
|
3620
|
+
workHours: BuiltRouter<{
|
|
3621
|
+
ctx: TrpcContext;
|
|
3622
|
+
meta: object;
|
|
3623
|
+
errorShape: DefaultErrorShape | {
|
|
3624
|
+
message: string;
|
|
3625
|
+
data: {
|
|
3626
|
+
httpCode: error.http.StatusCodeCode;
|
|
3627
|
+
code: TRPC_ERROR_CODE_KEY;
|
|
3628
|
+
httpStatus: number;
|
|
3629
|
+
path?: string;
|
|
3630
|
+
stack?: string;
|
|
3631
|
+
};
|
|
3632
|
+
code: TRPC_ERROR_CODE_NUMBER;
|
|
3633
|
+
};
|
|
3634
|
+
transformer: true;
|
|
3635
|
+
}, DecorateCreateRouterOptions<{
|
|
3636
|
+
list: QueryProcedure<{
|
|
3637
|
+
input: {
|
|
3638
|
+
userId?: string | null | undefined;
|
|
3639
|
+
projectId?: string | null | undefined;
|
|
3640
|
+
dayFrom?: unknown;
|
|
3641
|
+
dayTo?: unknown;
|
|
3642
|
+
limit?: number | undefined;
|
|
3643
|
+
offset?: number | undefined;
|
|
3644
|
+
};
|
|
3645
|
+
output: {
|
|
3646
|
+
id: string;
|
|
3647
|
+
userId: string;
|
|
3648
|
+
projectId: string;
|
|
3649
|
+
day: Date;
|
|
3650
|
+
hours: number;
|
|
3651
|
+
createdAt: Date;
|
|
3652
|
+
modifiedAt: Date;
|
|
3653
|
+
}[];
|
|
3654
|
+
meta: object;
|
|
3655
|
+
}>;
|
|
3656
|
+
get: QueryProcedure<{
|
|
3657
|
+
input: {
|
|
3658
|
+
id: string;
|
|
3659
|
+
};
|
|
3660
|
+
output: {
|
|
3661
|
+
id: string;
|
|
3662
|
+
userId: string;
|
|
3663
|
+
projectId: string;
|
|
3664
|
+
day: Date;
|
|
3665
|
+
hours: number;
|
|
3666
|
+
createdAt: Date;
|
|
3667
|
+
modifiedAt: Date;
|
|
3668
|
+
};
|
|
3669
|
+
meta: object;
|
|
3670
|
+
}>;
|
|
3671
|
+
create: MutationProcedure<{
|
|
3672
|
+
input: {
|
|
3673
|
+
userId: string;
|
|
3674
|
+
projectId: string;
|
|
3675
|
+
hours: number;
|
|
3676
|
+
day?: unknown;
|
|
3677
|
+
};
|
|
3678
|
+
output: {
|
|
3679
|
+
id: string;
|
|
3680
|
+
};
|
|
3681
|
+
meta: object;
|
|
3682
|
+
}>;
|
|
3683
|
+
update: MutationProcedure<{
|
|
3684
|
+
input: {
|
|
3685
|
+
id: string;
|
|
3686
|
+
data: {
|
|
3687
|
+
userId?: string | null | undefined;
|
|
3688
|
+
projectId?: string | null | undefined;
|
|
3689
|
+
day?: unknown;
|
|
3690
|
+
hours?: number | null | undefined;
|
|
3691
|
+
};
|
|
3692
|
+
};
|
|
3693
|
+
output: {
|
|
3694
|
+
success: true;
|
|
3695
|
+
};
|
|
3696
|
+
meta: object;
|
|
3697
|
+
}>;
|
|
3698
|
+
delete: MutationProcedure<{
|
|
3699
|
+
input: {
|
|
3700
|
+
id: string;
|
|
3701
|
+
};
|
|
3702
|
+
output: {
|
|
3703
|
+
success: true;
|
|
3704
|
+
};
|
|
3705
|
+
meta: object;
|
|
3706
|
+
}>;
|
|
3707
|
+
}>>;
|
|
3488
3708
|
roles: BuiltRouter<{
|
|
3489
3709
|
ctx: TrpcContext;
|
|
3490
3710
|
meta: object;
|
|
@@ -3503,20 +3723,20 @@ declare const appRouter: BuiltRouter<{
|
|
|
3503
3723
|
}, DecorateCreateRouterOptions<{
|
|
3504
3724
|
list: QueryProcedure<{
|
|
3505
3725
|
input: void;
|
|
3506
|
-
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")[];
|
|
3726
|
+
output: (":admin" | "view:users" | "manage:users" | "delete:users" | "view:userWorkHours" | "manage:userWorkHours" | "delete:userWorkHours" | "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")[];
|
|
3507
3727
|
meta: object;
|
|
3508
3728
|
}>;
|
|
3509
3729
|
get: QueryProcedure<{
|
|
3510
3730
|
input: {
|
|
3511
3731
|
userId: string;
|
|
3512
3732
|
};
|
|
3513
|
-
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")[];
|
|
3733
|
+
output: (":admin" | "view:users" | "manage:users" | "delete:users" | "view:userWorkHours" | "manage:userWorkHours" | "delete:userWorkHours" | "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")[];
|
|
3514
3734
|
meta: object;
|
|
3515
3735
|
}>;
|
|
3516
3736
|
set: MutationProcedure<{
|
|
3517
3737
|
input: {
|
|
3518
3738
|
userId: string;
|
|
3519
|
-
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>;
|
|
3739
|
+
assignments: Record<":admin" | "view:users" | "manage:users" | "delete:users" | "view:userWorkHours" | "manage:userWorkHours" | "delete:userWorkHours" | "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>;
|
|
3520
3740
|
};
|
|
3521
3741
|
output: {
|
|
3522
3742
|
success: true;
|