autosync_backend2 1.2.72 → 1.2.75
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 +305 -17
- package/dist/index.js +328 -219
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6453,7 +6453,9 @@ export declare const app: Elysia<"", {
|
|
|
6453
6453
|
get: {
|
|
6454
6454
|
body: unknown;
|
|
6455
6455
|
params: {};
|
|
6456
|
-
query:
|
|
6456
|
+
query: {
|
|
6457
|
+
branchId?: string | undefined;
|
|
6458
|
+
};
|
|
6457
6459
|
headers: unknown;
|
|
6458
6460
|
response: {
|
|
6459
6461
|
200: {
|
|
@@ -6461,6 +6463,15 @@ export declare const app: Elysia<"", {
|
|
|
6461
6463
|
month: string;
|
|
6462
6464
|
}[];
|
|
6463
6465
|
401: "Токен олдсонгүй";
|
|
6466
|
+
422: {
|
|
6467
|
+
type: "validation";
|
|
6468
|
+
on: string;
|
|
6469
|
+
summary?: string;
|
|
6470
|
+
message?: string;
|
|
6471
|
+
found?: unknown;
|
|
6472
|
+
property?: string;
|
|
6473
|
+
expected?: string;
|
|
6474
|
+
};
|
|
6464
6475
|
};
|
|
6465
6476
|
};
|
|
6466
6477
|
};
|
|
@@ -6471,7 +6482,9 @@ export declare const app: Elysia<"", {
|
|
|
6471
6482
|
get: {
|
|
6472
6483
|
body: unknown;
|
|
6473
6484
|
params: {};
|
|
6474
|
-
query:
|
|
6485
|
+
query: {
|
|
6486
|
+
branchId?: string | undefined;
|
|
6487
|
+
};
|
|
6475
6488
|
headers: unknown;
|
|
6476
6489
|
response: {
|
|
6477
6490
|
200: {
|
|
@@ -6479,6 +6492,15 @@ export declare const app: Elysia<"", {
|
|
|
6479
6492
|
month: string;
|
|
6480
6493
|
}[];
|
|
6481
6494
|
401: "Токен олдсонгүй";
|
|
6495
|
+
422: {
|
|
6496
|
+
type: "validation";
|
|
6497
|
+
on: string;
|
|
6498
|
+
summary?: string;
|
|
6499
|
+
message?: string;
|
|
6500
|
+
found?: unknown;
|
|
6501
|
+
property?: string;
|
|
6502
|
+
expected?: string;
|
|
6503
|
+
};
|
|
6482
6504
|
};
|
|
6483
6505
|
};
|
|
6484
6506
|
};
|
|
@@ -6489,7 +6511,9 @@ export declare const app: Elysia<"", {
|
|
|
6489
6511
|
get: {
|
|
6490
6512
|
body: unknown;
|
|
6491
6513
|
params: {};
|
|
6492
|
-
query:
|
|
6514
|
+
query: {
|
|
6515
|
+
branchId?: string | undefined;
|
|
6516
|
+
};
|
|
6493
6517
|
headers: unknown;
|
|
6494
6518
|
response: {
|
|
6495
6519
|
200: {
|
|
@@ -6497,6 +6521,15 @@ export declare const app: Elysia<"", {
|
|
|
6497
6521
|
month: string;
|
|
6498
6522
|
}[];
|
|
6499
6523
|
401: "Токен олдсонгүй";
|
|
6524
|
+
422: {
|
|
6525
|
+
type: "validation";
|
|
6526
|
+
on: string;
|
|
6527
|
+
summary?: string;
|
|
6528
|
+
message?: string;
|
|
6529
|
+
found?: unknown;
|
|
6530
|
+
property?: string;
|
|
6531
|
+
expected?: string;
|
|
6532
|
+
};
|
|
6500
6533
|
};
|
|
6501
6534
|
};
|
|
6502
6535
|
};
|
|
@@ -6507,7 +6540,9 @@ export declare const app: Elysia<"", {
|
|
|
6507
6540
|
get: {
|
|
6508
6541
|
body: unknown;
|
|
6509
6542
|
params: {};
|
|
6510
|
-
query:
|
|
6543
|
+
query: {
|
|
6544
|
+
branchId?: string | undefined;
|
|
6545
|
+
};
|
|
6511
6546
|
headers: unknown;
|
|
6512
6547
|
response: {
|
|
6513
6548
|
200: {
|
|
@@ -6515,6 +6550,15 @@ export declare const app: Elysia<"", {
|
|
|
6515
6550
|
month: string;
|
|
6516
6551
|
}[];
|
|
6517
6552
|
401: "Токен олдсонгүй";
|
|
6553
|
+
422: {
|
|
6554
|
+
type: "validation";
|
|
6555
|
+
on: string;
|
|
6556
|
+
summary?: string;
|
|
6557
|
+
message?: string;
|
|
6558
|
+
found?: unknown;
|
|
6559
|
+
property?: string;
|
|
6560
|
+
expected?: string;
|
|
6561
|
+
};
|
|
6518
6562
|
};
|
|
6519
6563
|
};
|
|
6520
6564
|
};
|
|
@@ -6525,7 +6569,9 @@ export declare const app: Elysia<"", {
|
|
|
6525
6569
|
get: {
|
|
6526
6570
|
body: unknown;
|
|
6527
6571
|
params: {};
|
|
6528
|
-
query:
|
|
6572
|
+
query: {
|
|
6573
|
+
branchId?: string | undefined;
|
|
6574
|
+
};
|
|
6529
6575
|
headers: unknown;
|
|
6530
6576
|
response: {
|
|
6531
6577
|
200: {
|
|
@@ -6537,6 +6583,15 @@ export declare const app: Elysia<"", {
|
|
|
6537
6583
|
};
|
|
6538
6584
|
}[];
|
|
6539
6585
|
401: "Токен олдсонгүй";
|
|
6586
|
+
422: {
|
|
6587
|
+
type: "validation";
|
|
6588
|
+
on: string;
|
|
6589
|
+
summary?: string;
|
|
6590
|
+
message?: string;
|
|
6591
|
+
found?: unknown;
|
|
6592
|
+
property?: string;
|
|
6593
|
+
expected?: string;
|
|
6594
|
+
};
|
|
6540
6595
|
};
|
|
6541
6596
|
};
|
|
6542
6597
|
};
|
|
@@ -6547,7 +6602,9 @@ export declare const app: Elysia<"", {
|
|
|
6547
6602
|
get: {
|
|
6548
6603
|
body: unknown;
|
|
6549
6604
|
params: {};
|
|
6550
|
-
query:
|
|
6605
|
+
query: {
|
|
6606
|
+
branchId?: string | undefined;
|
|
6607
|
+
};
|
|
6551
6608
|
headers: unknown;
|
|
6552
6609
|
response: {
|
|
6553
6610
|
200: {
|
|
@@ -6558,6 +6615,15 @@ export declare const app: Elysia<"", {
|
|
|
6558
6615
|
};
|
|
6559
6616
|
}[];
|
|
6560
6617
|
401: "Токен олдсонгүй";
|
|
6618
|
+
422: {
|
|
6619
|
+
type: "validation";
|
|
6620
|
+
on: string;
|
|
6621
|
+
summary?: string;
|
|
6622
|
+
message?: string;
|
|
6623
|
+
found?: unknown;
|
|
6624
|
+
property?: string;
|
|
6625
|
+
expected?: string;
|
|
6626
|
+
};
|
|
6561
6627
|
};
|
|
6562
6628
|
};
|
|
6563
6629
|
};
|
|
@@ -6568,7 +6634,9 @@ export declare const app: Elysia<"", {
|
|
|
6568
6634
|
get: {
|
|
6569
6635
|
body: unknown;
|
|
6570
6636
|
params: {};
|
|
6571
|
-
query:
|
|
6637
|
+
query: {
|
|
6638
|
+
branchId?: string | undefined;
|
|
6639
|
+
};
|
|
6572
6640
|
headers: unknown;
|
|
6573
6641
|
response: {
|
|
6574
6642
|
200: {
|
|
@@ -6579,6 +6647,15 @@ export declare const app: Elysia<"", {
|
|
|
6579
6647
|
};
|
|
6580
6648
|
}[];
|
|
6581
6649
|
401: "Токен олдсонгүй";
|
|
6650
|
+
422: {
|
|
6651
|
+
type: "validation";
|
|
6652
|
+
on: string;
|
|
6653
|
+
summary?: string;
|
|
6654
|
+
message?: string;
|
|
6655
|
+
found?: unknown;
|
|
6656
|
+
property?: string;
|
|
6657
|
+
expected?: string;
|
|
6658
|
+
};
|
|
6582
6659
|
};
|
|
6583
6660
|
};
|
|
6584
6661
|
};
|
|
@@ -6589,7 +6666,9 @@ export declare const app: Elysia<"", {
|
|
|
6589
6666
|
get: {
|
|
6590
6667
|
body: unknown;
|
|
6591
6668
|
params: {};
|
|
6592
|
-
query:
|
|
6669
|
+
query: {
|
|
6670
|
+
branchId?: string | undefined;
|
|
6671
|
+
};
|
|
6593
6672
|
headers: unknown;
|
|
6594
6673
|
response: {
|
|
6595
6674
|
200: {
|
|
@@ -6597,6 +6676,15 @@ export declare const app: Elysia<"", {
|
|
|
6597
6676
|
date: string;
|
|
6598
6677
|
}[];
|
|
6599
6678
|
401: "Токен олдсонгүй";
|
|
6679
|
+
422: {
|
|
6680
|
+
type: "validation";
|
|
6681
|
+
on: string;
|
|
6682
|
+
summary?: string;
|
|
6683
|
+
message?: string;
|
|
6684
|
+
found?: unknown;
|
|
6685
|
+
property?: string;
|
|
6686
|
+
expected?: string;
|
|
6687
|
+
};
|
|
6600
6688
|
};
|
|
6601
6689
|
};
|
|
6602
6690
|
};
|
|
@@ -8866,6 +8954,153 @@ export declare const app: Elysia<"", {
|
|
|
8866
8954
|
techdoc: {
|
|
8867
8955
|
product: {};
|
|
8868
8956
|
};
|
|
8957
|
+
} & {
|
|
8958
|
+
techdoc: {
|
|
8959
|
+
"service-kind": {};
|
|
8960
|
+
} & {
|
|
8961
|
+
"service-kind": {
|
|
8962
|
+
get: {
|
|
8963
|
+
body: unknown;
|
|
8964
|
+
params: {};
|
|
8965
|
+
query: {
|
|
8966
|
+
name?: string | undefined;
|
|
8967
|
+
id?: string | undefined;
|
|
8968
|
+
pagination: {
|
|
8969
|
+
size: number;
|
|
8970
|
+
page: number;
|
|
8971
|
+
};
|
|
8972
|
+
};
|
|
8973
|
+
headers: unknown;
|
|
8974
|
+
response: {
|
|
8975
|
+
200: {
|
|
8976
|
+
totalCount: number;
|
|
8977
|
+
totalPage: number;
|
|
8978
|
+
result: Omit<{
|
|
8979
|
+
totalCount: number;
|
|
8980
|
+
name: string;
|
|
8981
|
+
description: string | null;
|
|
8982
|
+
id: string;
|
|
8983
|
+
createdAt: string;
|
|
8984
|
+
updatedAt: string;
|
|
8985
|
+
deletedAt: string | null;
|
|
8986
|
+
oldId: number | null;
|
|
8987
|
+
}, "totalCount">[];
|
|
8988
|
+
};
|
|
8989
|
+
401: "Токен олдсонгүй";
|
|
8990
|
+
422: {
|
|
8991
|
+
type: "validation";
|
|
8992
|
+
on: string;
|
|
8993
|
+
summary?: string;
|
|
8994
|
+
message?: string;
|
|
8995
|
+
found?: unknown;
|
|
8996
|
+
property?: string;
|
|
8997
|
+
expected?: string;
|
|
8998
|
+
};
|
|
8999
|
+
};
|
|
9000
|
+
};
|
|
9001
|
+
};
|
|
9002
|
+
} & {
|
|
9003
|
+
"service-kind": {
|
|
9004
|
+
post: {
|
|
9005
|
+
body: {
|
|
9006
|
+
oldId?: number | null | undefined;
|
|
9007
|
+
description?: string | null | undefined;
|
|
9008
|
+
name: string;
|
|
9009
|
+
};
|
|
9010
|
+
params: {};
|
|
9011
|
+
query: unknown;
|
|
9012
|
+
headers: unknown;
|
|
9013
|
+
response: {
|
|
9014
|
+
200: {
|
|
9015
|
+
name: string;
|
|
9016
|
+
id: string;
|
|
9017
|
+
createdAt: string;
|
|
9018
|
+
updatedAt: string;
|
|
9019
|
+
deletedAt: string | null;
|
|
9020
|
+
oldId: number | null;
|
|
9021
|
+
description: string | null;
|
|
9022
|
+
};
|
|
9023
|
+
401: "Токен олдсонгүй";
|
|
9024
|
+
403: "Хандах эрхгүй байна.";
|
|
9025
|
+
422: {
|
|
9026
|
+
type: "validation";
|
|
9027
|
+
on: string;
|
|
9028
|
+
summary?: string;
|
|
9029
|
+
message?: string;
|
|
9030
|
+
found?: unknown;
|
|
9031
|
+
property?: string;
|
|
9032
|
+
expected?: string;
|
|
9033
|
+
};
|
|
9034
|
+
};
|
|
9035
|
+
};
|
|
9036
|
+
};
|
|
9037
|
+
} & {
|
|
9038
|
+
"service-kind": {
|
|
9039
|
+
":id": {
|
|
9040
|
+
put: {
|
|
9041
|
+
body: {
|
|
9042
|
+
name?: string | undefined;
|
|
9043
|
+
oldId?: number | null | undefined;
|
|
9044
|
+
description?: string | null | undefined;
|
|
9045
|
+
};
|
|
9046
|
+
params: {
|
|
9047
|
+
id: string;
|
|
9048
|
+
};
|
|
9049
|
+
query: unknown;
|
|
9050
|
+
headers: unknown;
|
|
9051
|
+
response: {
|
|
9052
|
+
200: {
|
|
9053
|
+
name: string;
|
|
9054
|
+
description: string | null;
|
|
9055
|
+
id: string;
|
|
9056
|
+
createdAt: string;
|
|
9057
|
+
updatedAt: string;
|
|
9058
|
+
deletedAt: string | null;
|
|
9059
|
+
oldId: number | null;
|
|
9060
|
+
};
|
|
9061
|
+
401: "Токен олдсонгүй";
|
|
9062
|
+
403: "Хандах эрхгүй байна.";
|
|
9063
|
+
404: "Үйлчилгээний төрөл олдсонгүй.";
|
|
9064
|
+
422: {
|
|
9065
|
+
type: "validation";
|
|
9066
|
+
on: string;
|
|
9067
|
+
summary?: string;
|
|
9068
|
+
message?: string;
|
|
9069
|
+
found?: unknown;
|
|
9070
|
+
property?: string;
|
|
9071
|
+
expected?: string;
|
|
9072
|
+
};
|
|
9073
|
+
};
|
|
9074
|
+
};
|
|
9075
|
+
};
|
|
9076
|
+
};
|
|
9077
|
+
} & {
|
|
9078
|
+
"service-kind": {
|
|
9079
|
+
":id": {
|
|
9080
|
+
delete: {
|
|
9081
|
+
body: unknown;
|
|
9082
|
+
params: {
|
|
9083
|
+
id: string;
|
|
9084
|
+
};
|
|
9085
|
+
query: unknown;
|
|
9086
|
+
headers: unknown;
|
|
9087
|
+
response: {
|
|
9088
|
+
401: "Токен олдсонгүй";
|
|
9089
|
+
403: "Хандах эрхгүй байна.";
|
|
9090
|
+
422: {
|
|
9091
|
+
type: "validation";
|
|
9092
|
+
on: string;
|
|
9093
|
+
summary?: string;
|
|
9094
|
+
message?: string;
|
|
9095
|
+
found?: unknown;
|
|
9096
|
+
property?: string;
|
|
9097
|
+
expected?: string;
|
|
9098
|
+
};
|
|
9099
|
+
};
|
|
9100
|
+
};
|
|
9101
|
+
};
|
|
9102
|
+
};
|
|
9103
|
+
};
|
|
8869
9104
|
};
|
|
8870
9105
|
} & {
|
|
8871
9106
|
api: {
|
|
@@ -11272,7 +11507,7 @@ export declare const app: Elysia<"", {
|
|
|
11272
11507
|
body: unknown;
|
|
11273
11508
|
params: {};
|
|
11274
11509
|
query: {
|
|
11275
|
-
workOrderId?: string | undefined;
|
|
11510
|
+
workOrderId?: string | null | undefined;
|
|
11276
11511
|
pagination: {
|
|
11277
11512
|
size: number;
|
|
11278
11513
|
page: number;
|
|
@@ -11285,9 +11520,13 @@ export declare const app: Elysia<"", {
|
|
|
11285
11520
|
totalPage: number;
|
|
11286
11521
|
result: Omit<{
|
|
11287
11522
|
task: {
|
|
11288
|
-
|
|
11523
|
+
machineId: string | null;
|
|
11524
|
+
sourceType: string | null;
|
|
11525
|
+
priority: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "PLANNED" | null;
|
|
11526
|
+
workOrderId: string | null;
|
|
11289
11527
|
templateId: string | null;
|
|
11290
|
-
serviceKindId: string;
|
|
11528
|
+
serviceKindId: string | null;
|
|
11529
|
+
companyServiceKindId: string | null;
|
|
11291
11530
|
description: string | null;
|
|
11292
11531
|
manHour: number | null;
|
|
11293
11532
|
state: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED";
|
|
@@ -11298,6 +11537,15 @@ export declare const app: Elysia<"", {
|
|
|
11298
11537
|
oldId: number | null;
|
|
11299
11538
|
};
|
|
11300
11539
|
serviceKind: {
|
|
11540
|
+
name: string;
|
|
11541
|
+
description: string | null;
|
|
11542
|
+
id: string;
|
|
11543
|
+
createdAt: string;
|
|
11544
|
+
updatedAt: string;
|
|
11545
|
+
deletedAt: string | null;
|
|
11546
|
+
oldId: number | null;
|
|
11547
|
+
} | null;
|
|
11548
|
+
companyServiceKind: {
|
|
11301
11549
|
serviceKindId: string | null;
|
|
11302
11550
|
companyId: string;
|
|
11303
11551
|
branchId: string | null;
|
|
@@ -11311,6 +11559,34 @@ export declare const app: Elysia<"", {
|
|
|
11311
11559
|
deletedAt: string | null;
|
|
11312
11560
|
oldId: number | null;
|
|
11313
11561
|
} | null;
|
|
11562
|
+
machine: {
|
|
11563
|
+
companyId: string | null;
|
|
11564
|
+
machineKindId: string;
|
|
11565
|
+
customerId: string | null;
|
|
11566
|
+
name: string | null;
|
|
11567
|
+
assetCode: string | null;
|
|
11568
|
+
vin: string | null;
|
|
11569
|
+
licensePlate: string | null;
|
|
11570
|
+
color: string | null;
|
|
11571
|
+
engineCc: string | null;
|
|
11572
|
+
cylinder: string | null;
|
|
11573
|
+
gasType: string | null;
|
|
11574
|
+
transmissionType: string | null;
|
|
11575
|
+
vehicleType: string | null;
|
|
11576
|
+
yearManufacture: number | null;
|
|
11577
|
+
yearImport: number | null;
|
|
11578
|
+
steering: string | null;
|
|
11579
|
+
engineCode: string | null;
|
|
11580
|
+
transmissionCode: string | null;
|
|
11581
|
+
driveTrain: string | null;
|
|
11582
|
+
km: number;
|
|
11583
|
+
customData: unknown;
|
|
11584
|
+
id: string;
|
|
11585
|
+
createdAt: string;
|
|
11586
|
+
updatedAt: string;
|
|
11587
|
+
deletedAt: string | null;
|
|
11588
|
+
oldId: number | null;
|
|
11589
|
+
} | null;
|
|
11314
11590
|
totalCount: number;
|
|
11315
11591
|
}, "totalCount">[];
|
|
11316
11592
|
};
|
|
@@ -11333,11 +11609,15 @@ export declare const app: Elysia<"", {
|
|
|
11333
11609
|
body: {
|
|
11334
11610
|
oldId?: number | null | undefined;
|
|
11335
11611
|
description?: string | null | undefined;
|
|
11612
|
+
serviceKindId?: string | null | undefined;
|
|
11336
11613
|
state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
|
|
11614
|
+
companyServiceKindId?: string | null | undefined;
|
|
11337
11615
|
templateId?: string | null | undefined;
|
|
11616
|
+
machineId?: string | null | undefined;
|
|
11617
|
+
sourceType?: string | null | undefined;
|
|
11618
|
+
priority?: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "PLANNED" | null | undefined;
|
|
11619
|
+
workOrderId?: string | null | undefined;
|
|
11338
11620
|
manHour?: number | null | undefined;
|
|
11339
|
-
serviceKindId: string;
|
|
11340
|
-
workOrderId: string;
|
|
11341
11621
|
};
|
|
11342
11622
|
params: {};
|
|
11343
11623
|
query: unknown;
|
|
@@ -11350,10 +11630,14 @@ export declare const app: Elysia<"", {
|
|
|
11350
11630
|
deletedAt: string | null;
|
|
11351
11631
|
oldId: number | null;
|
|
11352
11632
|
description: string | null;
|
|
11353
|
-
serviceKindId: string;
|
|
11633
|
+
serviceKindId: string | null;
|
|
11354
11634
|
state: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED";
|
|
11635
|
+
companyServiceKindId: string | null;
|
|
11355
11636
|
templateId: string | null;
|
|
11356
|
-
|
|
11637
|
+
machineId: string | null;
|
|
11638
|
+
sourceType: string | null;
|
|
11639
|
+
priority: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "PLANNED" | null;
|
|
11640
|
+
workOrderId: string | null;
|
|
11357
11641
|
manHour: number | null;
|
|
11358
11642
|
};
|
|
11359
11643
|
401: "Токен олдсонгүй";
|
|
@@ -11376,10 +11660,14 @@ export declare const app: Elysia<"", {
|
|
|
11376
11660
|
body: {
|
|
11377
11661
|
oldId?: number | null | undefined;
|
|
11378
11662
|
description?: string | null | undefined;
|
|
11379
|
-
serviceKindId?: string | undefined;
|
|
11663
|
+
serviceKindId?: string | null | undefined;
|
|
11380
11664
|
state?: "IN_PROGRESS" | "COMPLETED" | "OPEN" | "CLOSED" | undefined;
|
|
11665
|
+
companyServiceKindId?: string | null | undefined;
|
|
11381
11666
|
templateId?: string | null | undefined;
|
|
11382
|
-
|
|
11667
|
+
machineId?: string | null | undefined;
|
|
11668
|
+
sourceType?: string | null | undefined;
|
|
11669
|
+
priority?: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "PLANNED" | null | undefined;
|
|
11670
|
+
workOrderId?: string | null | undefined;
|
|
11383
11671
|
manHour?: number | null | undefined;
|
|
11384
11672
|
};
|
|
11385
11673
|
params: {
|