autosync_backend2 1.1.51 → 1.1.53
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 +362 -43
- package/dist/index.js +377 -143
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -52,11 +52,11 @@ export declare const app: Elysia<"", {
|
|
52
52
|
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
53
53
|
}>;
|
54
54
|
readonly "WarehouseProductModel.select": import("@sinclair/typebox").TObject<{
|
55
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
55
56
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
56
57
|
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
57
58
|
ids: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
58
59
|
type: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TUnionEnum<["Сэлбэг", "Тос", "Дугуй", "Будаг", "Аккумлятор"]>>;
|
59
|
-
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
60
60
|
supplierId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
61
61
|
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
62
62
|
priceSell: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
@@ -108,11 +108,11 @@ export declare const app: Elysia<"", {
|
|
108
108
|
size: import("@sinclair/typebox").TInteger;
|
109
109
|
}>;
|
110
110
|
product: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
111
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
111
112
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
112
113
|
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
113
114
|
ids: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
114
115
|
type: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TUnionEnum<["Сэлбэг", "Тос", "Дугуй", "Будаг", "Аккумлятор"]>>;
|
115
|
-
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
116
116
|
supplierId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
117
117
|
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
118
118
|
priceSell: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
@@ -465,9 +465,9 @@ export declare const app: Elysia<"", {
|
|
465
465
|
readonly "CrmCpOrderModel.update": import("@sinclair/typebox").TObject<{
|
466
466
|
companyId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
467
467
|
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>>;
|
468
|
+
vehicleId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
468
469
|
customerId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
469
470
|
km: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
470
|
-
vehicleId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
471
471
|
companyBranchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
472
472
|
orderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
473
473
|
state: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
@@ -482,12 +482,12 @@ export declare const app: Elysia<"", {
|
|
482
482
|
page: import("@sinclair/typebox").TInteger;
|
483
483
|
size: import("@sinclair/typebox").TInteger;
|
484
484
|
}>;
|
485
|
+
licensePlate: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TTransform<import("@sinclair/typebox").TString, string>>;
|
485
486
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
486
487
|
createdAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
487
488
|
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
488
489
|
orderId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
489
490
|
vin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
490
|
-
licensePlate: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TTransform<import("@sinclair/typebox").TString, string>>;
|
491
491
|
state: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TUnionEnum<["CREATED", "PROGRESSING", "COMPLETE"]>>;
|
492
492
|
timeCompleted: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
493
493
|
model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
@@ -698,6 +698,38 @@ export declare const app: Elysia<"", {
|
|
698
698
|
note: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
699
699
|
authUserId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
700
700
|
}>;
|
701
|
+
readonly "CrmInspectionModel.create": import("@sinclair/typebox").TObject<{
|
702
|
+
employeeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
703
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
704
|
+
inspection: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
705
|
+
type: import("@sinclair/typebox").TString;
|
706
|
+
values: import("@sinclair/typebox").TObject<{
|
707
|
+
question: import("@sinclair/typebox").TString;
|
708
|
+
answer: import("@sinclair/typebox").TString;
|
709
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
710
|
+
}>;
|
711
|
+
employeeId: import("@sinclair/typebox").TString;
|
712
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
713
|
+
isApproved: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
714
|
+
}>>;
|
715
|
+
experience: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
716
|
+
rank: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
717
|
+
licensePlate: import("@sinclair/typebox").TString;
|
718
|
+
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
719
|
+
CREATED: "CREATED";
|
720
|
+
APPROVED: "APPROVED";
|
721
|
+
CANCELLED: "CANCELLED";
|
722
|
+
}>>;
|
723
|
+
}>;
|
724
|
+
readonly "CrmInspectionModel.select": import("@sinclair/typebox").TObject<{
|
725
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
726
|
+
licensePlate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
727
|
+
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
728
|
+
pagination: import("@sinclair/typebox").TObject<{
|
729
|
+
page: import("@sinclair/typebox").TInteger;
|
730
|
+
size: import("@sinclair/typebox").TInteger;
|
731
|
+
}>;
|
732
|
+
}>;
|
701
733
|
readonly "TechdocSupplierModel.select": import("@sinclair/typebox").TObject<{
|
702
734
|
pagination: import("@sinclair/typebox").TObject<{
|
703
735
|
page: import("@sinclair/typebox").TInteger;
|
@@ -756,7 +788,7 @@ export declare const app: Elysia<"", {
|
|
756
788
|
route: string;
|
757
789
|
request: Request;
|
758
790
|
store: {};
|
759
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 301 | 302 | 303 | 307 | 308 |
|
791
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 200 | 400 | 301 | 302 | 303 | 307 | 308 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 304 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
760
792
|
readonly 100: "Continue";
|
761
793
|
readonly 101: "Switching Protocols";
|
762
794
|
readonly 102: "Processing";
|
@@ -879,7 +911,7 @@ export declare const app: Elysia<"", {
|
|
879
911
|
readonly "Not Extended": 510;
|
880
912
|
readonly "Network Authentication Required": 511;
|
881
913
|
}[Code] : Code>;
|
882
|
-
error: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 301 | 302 | 303 | 307 | 308 |
|
914
|
+
error: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 200 | 400 | 301 | 302 | 303 | 307 | 308 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 304 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
883
915
|
readonly 100: "Continue";
|
884
916
|
readonly 101: "Switching Protocols";
|
885
917
|
readonly 102: "Processing";
|
@@ -1047,7 +1079,7 @@ export declare const app: Elysia<"", {
|
|
1047
1079
|
route: string;
|
1048
1080
|
request: Request;
|
1049
1081
|
store: {};
|
1050
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 301 | 302 | 303 | 307 | 308 |
|
1082
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 200 | 400 | 301 | 302 | 303 | 307 | 308 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 304 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
1051
1083
|
readonly 100: "Continue";
|
1052
1084
|
readonly 101: "Switching Protocols";
|
1053
1085
|
readonly 102: "Processing";
|
@@ -1170,7 +1202,7 @@ export declare const app: Elysia<"", {
|
|
1170
1202
|
readonly "Not Extended": 510;
|
1171
1203
|
readonly "Network Authentication Required": 511;
|
1172
1204
|
}[Code] : Code>;
|
1173
|
-
error: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 301 | 302 | 303 | 307 | 308 |
|
1205
|
+
error: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 200 | 400 | 301 | 302 | 303 | 307 | 308 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 304 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
1174
1206
|
readonly 100: "Continue";
|
1175
1207
|
readonly 101: "Switching Protocols";
|
1176
1208
|
readonly 102: "Processing";
|
@@ -1338,7 +1370,7 @@ export declare const app: Elysia<"", {
|
|
1338
1370
|
route: string;
|
1339
1371
|
request: Request;
|
1340
1372
|
store: {};
|
1341
|
-
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 301 | 302 | 303 | 307 | 308 |
|
1373
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 200 | 400 | 301 | 302 | 303 | 307 | 308 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 304 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
1342
1374
|
readonly 100: "Continue";
|
1343
1375
|
readonly 101: "Switching Protocols";
|
1344
1376
|
readonly 102: "Processing";
|
@@ -1461,7 +1493,7 @@ export declare const app: Elysia<"", {
|
|
1461
1493
|
readonly "Not Extended": 510;
|
1462
1494
|
readonly "Network Authentication Required": 511;
|
1463
1495
|
}[Code] : Code>;
|
1464
|
-
error: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 301 | 302 | 303 | 307 | 308 |
|
1496
|
+
error: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 200 | 400 | 301 | 302 | 303 | 307 | 308 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 304 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
1465
1497
|
readonly 100: "Continue";
|
1466
1498
|
readonly 101: "Switching Protocols";
|
1467
1499
|
readonly 102: "Processing";
|
@@ -2218,10 +2250,11 @@ export declare const app: Elysia<"", {
|
|
2218
2250
|
query: unknown;
|
2219
2251
|
headers: unknown;
|
2220
2252
|
response: {
|
2221
|
-
200: AsyncGenerator<{
|
2253
|
+
200: AsyncGenerator<import("elysia/dist/error").ElysiaCustomStatusResponse<"Not Found", "Агуулахын бараа олдсонгүй.", 404> | import("elysia/dist/error").ElysiaCustomStatusResponse<"Bad Request", "Ажилтны мэдээлэл шаардлагатай.", 400> | import("elysia/dist/error").ElysiaCustomStatusResponse<"Bad Request", "Барааны үлдэгдэл хүрэлцэхгүй байна.", 400> | {
|
2222
2254
|
percent: number;
|
2223
2255
|
count: number;
|
2224
2256
|
total: number;
|
2257
|
+
type: string;
|
2225
2258
|
}, void, unknown>;
|
2226
2259
|
422: {
|
2227
2260
|
type: "validation";
|
@@ -3579,6 +3612,33 @@ export declare const app: Elysia<"", {
|
|
3579
3612
|
headers: unknown;
|
3580
3613
|
response: {
|
3581
3614
|
200: {
|
3615
|
+
company: Omit<{
|
3616
|
+
name: string;
|
3617
|
+
id: string;
|
3618
|
+
email: string;
|
3619
|
+
createdAt: string;
|
3620
|
+
updatedAt: string;
|
3621
|
+
deletedAt: string | null;
|
3622
|
+
regNumber: string;
|
3623
|
+
phone: string;
|
3624
|
+
serviceName: string;
|
3625
|
+
logoUrl: string;
|
3626
|
+
province: string | null;
|
3627
|
+
district: string | null;
|
3628
|
+
khoroo: string | null;
|
3629
|
+
street: string | null;
|
3630
|
+
socialUrls: string[] | null;
|
3631
|
+
ceoName: string | null;
|
3632
|
+
webUrl: string | null;
|
3633
|
+
googleMapUrl: string | null;
|
3634
|
+
isContract: boolean;
|
3635
|
+
isNoat: boolean;
|
3636
|
+
isNexus: boolean;
|
3637
|
+
isActive: boolean;
|
3638
|
+
branchCount: number;
|
3639
|
+
} & {
|
3640
|
+
totalCount: number;
|
3641
|
+
}, "totalCount">;
|
3582
3642
|
id: string;
|
3583
3643
|
name: string;
|
3584
3644
|
emailVerified: boolean;
|
@@ -3620,15 +3680,9 @@ export declare const app: Elysia<"", {
|
|
3620
3680
|
emailVerified: boolean;
|
3621
3681
|
createdAt: Date;
|
3622
3682
|
updatedAt: Date;
|
3623
|
-
} | {
|
3624
|
-
id: string;
|
3625
|
-
email: string;
|
3626
|
-
name: string;
|
3627
|
-
image: string | null | undefined;
|
3628
|
-
emailVerified: boolean;
|
3629
|
-
createdAt: Date;
|
3630
|
-
updatedAt: Date;
|
3631
3683
|
};
|
3684
|
+
400: string;
|
3685
|
+
500: "Хэрэглэгч бүртгэхэд алдаа гарлаа.";
|
3632
3686
|
422: {
|
3633
3687
|
type: "validation";
|
3634
3688
|
on: string;
|
@@ -4378,8 +4432,8 @@ export declare const app: Elysia<"", {
|
|
4378
4432
|
id?: string | undefined;
|
4379
4433
|
createdAt?: string | undefined;
|
4380
4434
|
phone?: string | undefined;
|
4381
|
-
vin?: string | undefined;
|
4382
4435
|
licensePlate?: string | undefined;
|
4436
|
+
vin?: string | undefined;
|
4383
4437
|
orderId?: string | undefined;
|
4384
4438
|
state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
|
4385
4439
|
timeCompleted?: string | undefined;
|
@@ -4494,9 +4548,9 @@ export declare const app: Elysia<"", {
|
|
4494
4548
|
post: {
|
4495
4549
|
body: {
|
4496
4550
|
phone?: string | undefined;
|
4551
|
+
licensePlate?: string | undefined;
|
4497
4552
|
vehicleKindId?: string | undefined;
|
4498
4553
|
vin?: string | undefined;
|
4499
|
-
licensePlate?: string | undefined;
|
4500
4554
|
};
|
4501
4555
|
params: {};
|
4502
4556
|
query: unknown;
|
@@ -4633,22 +4687,13 @@ export declare const app: Elysia<"", {
|
|
4633
4687
|
};
|
4634
4688
|
} & {
|
4635
4689
|
"cp-order": {
|
4636
|
-
|
4637
|
-
|
4690
|
+
complete: {
|
4691
|
+
post: {
|
4638
4692
|
body: {
|
4639
|
-
companyId?: string | undefined;
|
4640
|
-
isNoat?: boolean | null | undefined;
|
4641
|
-
customerId?: string | null | undefined;
|
4642
|
-
km?: number | undefined;
|
4643
|
-
vehicleId?: string | undefined;
|
4644
|
-
companyBranchId?: string | undefined;
|
4645
|
-
orderId?: string | undefined;
|
4646
|
-
state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
|
4647
|
-
timeCompleted?: string | null | undefined;
|
4648
|
-
};
|
4649
|
-
params: {
|
4650
4693
|
id: string;
|
4694
|
+
km: number;
|
4651
4695
|
};
|
4696
|
+
params: {};
|
4652
4697
|
query: unknown;
|
4653
4698
|
headers: unknown;
|
4654
4699
|
response: {
|
@@ -4683,11 +4728,18 @@ export declare const app: Elysia<"", {
|
|
4683
4728
|
};
|
4684
4729
|
} & {
|
4685
4730
|
"cp-order": {
|
4686
|
-
|
4687
|
-
|
4731
|
+
":id": {
|
4732
|
+
put: {
|
4688
4733
|
body: {
|
4689
|
-
|
4690
|
-
|
4734
|
+
companyId?: string | undefined;
|
4735
|
+
isNoat?: boolean | null | undefined;
|
4736
|
+
vehicleId?: string | undefined;
|
4737
|
+
customerId?: string | null | undefined;
|
4738
|
+
km?: number | undefined;
|
4739
|
+
companyBranchId?: string | undefined;
|
4740
|
+
orderId?: string | undefined;
|
4741
|
+
state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
|
4742
|
+
timeCompleted?: string | null | undefined;
|
4691
4743
|
};
|
4692
4744
|
params: {
|
4693
4745
|
id: string;
|
@@ -5415,8 +5467,8 @@ export declare const app: Elysia<"", {
|
|
5415
5467
|
params: {};
|
5416
5468
|
query: {
|
5417
5469
|
id?: string | undefined;
|
5418
|
-
vin?: string | undefined;
|
5419
5470
|
licensePlate?: string | undefined;
|
5471
|
+
vin?: string | undefined;
|
5420
5472
|
pagination: {
|
5421
5473
|
size: number;
|
5422
5474
|
page: number;
|
@@ -5497,9 +5549,9 @@ export declare const app: Elysia<"", {
|
|
5497
5549
|
post: {
|
5498
5550
|
body: {
|
5499
5551
|
companyId?: string | null | undefined;
|
5552
|
+
licensePlate?: string | null | undefined;
|
5500
5553
|
customerId?: string | null | undefined;
|
5501
5554
|
vin?: string | null | undefined;
|
5502
|
-
licensePlate?: string | null | undefined;
|
5503
5555
|
color?: string | null | undefined;
|
5504
5556
|
engineCc?: string | null | undefined;
|
5505
5557
|
cylinder?: string | null | undefined;
|
@@ -5525,10 +5577,10 @@ export declare const app: Elysia<"", {
|
|
5525
5577
|
updatedAt: string;
|
5526
5578
|
companyId: string | null;
|
5527
5579
|
deletedAt: string | null;
|
5580
|
+
licensePlate: string | null;
|
5528
5581
|
customerId: string | null;
|
5529
5582
|
vehicleKindId: string;
|
5530
5583
|
vin: string | null;
|
5531
|
-
licensePlate: string | null;
|
5532
5584
|
color: string | null;
|
5533
5585
|
engineCc: string | null;
|
5534
5586
|
cylinder: string | null;
|
@@ -5650,10 +5702,10 @@ export declare const app: Elysia<"", {
|
|
5650
5702
|
put: {
|
5651
5703
|
body: {
|
5652
5704
|
companyId?: string | null | undefined;
|
5705
|
+
licensePlate?: string | null | undefined;
|
5653
5706
|
customerId?: string | null | undefined;
|
5654
5707
|
vehicleKindId?: string | undefined;
|
5655
5708
|
vin?: string | null | undefined;
|
5656
|
-
licensePlate?: string | null | undefined;
|
5657
5709
|
color?: string | null | undefined;
|
5658
5710
|
engineCc?: string | null | undefined;
|
5659
5711
|
cylinder?: string | null | undefined;
|
@@ -5802,10 +5854,10 @@ export declare const app: Elysia<"", {
|
|
5802
5854
|
updatedAt: string;
|
5803
5855
|
companyId: string | null;
|
5804
5856
|
deletedAt: string | null;
|
5857
|
+
licensePlate: string | null;
|
5805
5858
|
customerId: string | null;
|
5806
5859
|
vehicleKindId: string;
|
5807
5860
|
vin: string | null;
|
5808
|
-
licensePlate: string | null;
|
5809
5861
|
color: string | null;
|
5810
5862
|
engineCc: string | null;
|
5811
5863
|
cylinder: string | null;
|
@@ -6334,6 +6386,273 @@ export declare const app: Elysia<"", {
|
|
6334
6386
|
};
|
6335
6387
|
};
|
6336
6388
|
};
|
6389
|
+
} & {
|
6390
|
+
crm: {
|
6391
|
+
inspection: {};
|
6392
|
+
} & {
|
6393
|
+
inspection: {
|
6394
|
+
get: {
|
6395
|
+
body: unknown;
|
6396
|
+
params: {};
|
6397
|
+
query: {
|
6398
|
+
search?: string | undefined;
|
6399
|
+
licensePlate?: string | undefined;
|
6400
|
+
status?: string | undefined;
|
6401
|
+
pagination: {
|
6402
|
+
size: number;
|
6403
|
+
page: number;
|
6404
|
+
};
|
6405
|
+
};
|
6406
|
+
headers: unknown;
|
6407
|
+
response: {
|
6408
|
+
200: {
|
6409
|
+
totalCount: number;
|
6410
|
+
totalPage: number;
|
6411
|
+
result: {
|
6412
|
+
inspection: {
|
6413
|
+
companyId: string;
|
6414
|
+
branchId: string;
|
6415
|
+
vehicleId: string;
|
6416
|
+
inspection: {
|
6417
|
+
description?: string | undefined;
|
6418
|
+
isApproved?: boolean | undefined;
|
6419
|
+
type: string;
|
6420
|
+
employeeId: string;
|
6421
|
+
values: {
|
6422
|
+
description?: string | undefined;
|
6423
|
+
question: string;
|
6424
|
+
answer: string;
|
6425
|
+
};
|
6426
|
+
}[] | null;
|
6427
|
+
employeeId: string | null;
|
6428
|
+
expireAt: Date;
|
6429
|
+
experience: string | null;
|
6430
|
+
rank: string | null;
|
6431
|
+
licensePlate: string;
|
6432
|
+
description: string | null;
|
6433
|
+
status: "CREATED" | "APPROVED" | "CANCELLED";
|
6434
|
+
id: string;
|
6435
|
+
createdAt: string;
|
6436
|
+
updatedAt: string;
|
6437
|
+
deletedAt: string | null;
|
6438
|
+
};
|
6439
|
+
vehicle: {
|
6440
|
+
customerId: string | null;
|
6441
|
+
vehicleKindId: string;
|
6442
|
+
vin: string | null;
|
6443
|
+
licensePlate: string | null;
|
6444
|
+
color: string | null;
|
6445
|
+
engineCc: string | null;
|
6446
|
+
cylinder: string | null;
|
6447
|
+
gasType: string | null;
|
6448
|
+
transmissionType: string | null;
|
6449
|
+
vehicleType: string | null;
|
6450
|
+
yearManufacture: number | null;
|
6451
|
+
yearImport: number | null;
|
6452
|
+
steering: string | null;
|
6453
|
+
engineCode: string | null;
|
6454
|
+
transmissionCode: string | null;
|
6455
|
+
driveTrain: string | null;
|
6456
|
+
km: number;
|
6457
|
+
companyId: string | null;
|
6458
|
+
id: string;
|
6459
|
+
createdAt: string;
|
6460
|
+
updatedAt: string;
|
6461
|
+
deletedAt: string | null;
|
6462
|
+
} | null;
|
6463
|
+
}[];
|
6464
|
+
};
|
6465
|
+
422: {
|
6466
|
+
type: "validation";
|
6467
|
+
on: string;
|
6468
|
+
summary?: string;
|
6469
|
+
message?: string;
|
6470
|
+
found?: unknown;
|
6471
|
+
property?: string;
|
6472
|
+
expected?: string;
|
6473
|
+
};
|
6474
|
+
};
|
6475
|
+
};
|
6476
|
+
};
|
6477
|
+
} & {
|
6478
|
+
inspection: {
|
6479
|
+
":id": {
|
6480
|
+
get: {
|
6481
|
+
body: unknown;
|
6482
|
+
params: {
|
6483
|
+
id: string;
|
6484
|
+
};
|
6485
|
+
query: unknown;
|
6486
|
+
headers: unknown;
|
6487
|
+
response: {
|
6488
|
+
200: {
|
6489
|
+
inspection: {
|
6490
|
+
companyId: string;
|
6491
|
+
branchId: string;
|
6492
|
+
vehicleId: string;
|
6493
|
+
inspection: {
|
6494
|
+
description?: string | undefined;
|
6495
|
+
isApproved?: boolean | undefined;
|
6496
|
+
type: string;
|
6497
|
+
employeeId: string;
|
6498
|
+
values: {
|
6499
|
+
description?: string | undefined;
|
6500
|
+
question: string;
|
6501
|
+
answer: string;
|
6502
|
+
};
|
6503
|
+
}[] | null;
|
6504
|
+
employeeId: string | null;
|
6505
|
+
expireAt: Date;
|
6506
|
+
experience: string | null;
|
6507
|
+
rank: string | null;
|
6508
|
+
licensePlate: string;
|
6509
|
+
description: string | null;
|
6510
|
+
status: "CREATED" | "APPROVED" | "CANCELLED";
|
6511
|
+
id: string;
|
6512
|
+
createdAt: string;
|
6513
|
+
updatedAt: string;
|
6514
|
+
deletedAt: string | null;
|
6515
|
+
};
|
6516
|
+
vehicle: {
|
6517
|
+
customerId: string | null;
|
6518
|
+
vehicleKindId: string;
|
6519
|
+
vin: string | null;
|
6520
|
+
licensePlate: string | null;
|
6521
|
+
color: string | null;
|
6522
|
+
engineCc: string | null;
|
6523
|
+
cylinder: string | null;
|
6524
|
+
gasType: string | null;
|
6525
|
+
transmissionType: string | null;
|
6526
|
+
vehicleType: string | null;
|
6527
|
+
yearManufacture: number | null;
|
6528
|
+
yearImport: number | null;
|
6529
|
+
steering: string | null;
|
6530
|
+
engineCode: string | null;
|
6531
|
+
transmissionCode: string | null;
|
6532
|
+
driveTrain: string | null;
|
6533
|
+
km: number;
|
6534
|
+
companyId: string | null;
|
6535
|
+
id: string;
|
6536
|
+
createdAt: string;
|
6537
|
+
updatedAt: string;
|
6538
|
+
deletedAt: string | null;
|
6539
|
+
} | null;
|
6540
|
+
};
|
6541
|
+
404: "Үзлэг олдсонгүй.";
|
6542
|
+
422: {
|
6543
|
+
type: "validation";
|
6544
|
+
on: string;
|
6545
|
+
summary?: string;
|
6546
|
+
message?: string;
|
6547
|
+
found?: unknown;
|
6548
|
+
property?: string;
|
6549
|
+
expected?: string;
|
6550
|
+
};
|
6551
|
+
};
|
6552
|
+
};
|
6553
|
+
};
|
6554
|
+
};
|
6555
|
+
} & {
|
6556
|
+
inspection: {
|
6557
|
+
post: {
|
6558
|
+
body: {
|
6559
|
+
employeeId?: string | null | undefined;
|
6560
|
+
description?: string | null | undefined;
|
6561
|
+
experience?: string | null | undefined;
|
6562
|
+
rank?: string | null | undefined;
|
6563
|
+
status?: "CREATED" | "APPROVED" | "CANCELLED" | undefined;
|
6564
|
+
inspection: {
|
6565
|
+
description?: string | undefined;
|
6566
|
+
isApproved?: boolean | undefined;
|
6567
|
+
type: string;
|
6568
|
+
employeeId: string;
|
6569
|
+
values: {
|
6570
|
+
description?: string | undefined;
|
6571
|
+
question: string;
|
6572
|
+
answer: string;
|
6573
|
+
};
|
6574
|
+
}[];
|
6575
|
+
licensePlate: string;
|
6576
|
+
};
|
6577
|
+
params: {};
|
6578
|
+
query: unknown;
|
6579
|
+
headers: unknown;
|
6580
|
+
response: {
|
6581
|
+
200: {
|
6582
|
+
id: string;
|
6583
|
+
createdAt: string;
|
6584
|
+
updatedAt: string;
|
6585
|
+
companyId: string;
|
6586
|
+
branchId: string;
|
6587
|
+
employeeId: string | null;
|
6588
|
+
deletedAt: string | null;
|
6589
|
+
description: string | null;
|
6590
|
+
vehicleId: string;
|
6591
|
+
inspection: {
|
6592
|
+
description?: string | undefined;
|
6593
|
+
isApproved?: boolean | undefined;
|
6594
|
+
type: string;
|
6595
|
+
employeeId: string;
|
6596
|
+
values: {
|
6597
|
+
description?: string | undefined;
|
6598
|
+
question: string;
|
6599
|
+
answer: string;
|
6600
|
+
};
|
6601
|
+
}[] | null;
|
6602
|
+
expireAt: Date;
|
6603
|
+
experience: string | null;
|
6604
|
+
rank: string | null;
|
6605
|
+
licensePlate: string;
|
6606
|
+
status: "CREATED" | "APPROVED" | "CANCELLED";
|
6607
|
+
};
|
6608
|
+
502: string;
|
6609
|
+
400: "Машины дугаар болон VIN хоёроос нэгийг нь оруулна уу." | "Машины VIN оруулсан бол машины төрөл оруулна уу.";
|
6610
|
+
422: {
|
6611
|
+
type: "validation";
|
6612
|
+
on: string;
|
6613
|
+
summary?: string;
|
6614
|
+
message?: string;
|
6615
|
+
found?: unknown;
|
6616
|
+
property?: string;
|
6617
|
+
expected?: string;
|
6618
|
+
};
|
6619
|
+
};
|
6620
|
+
};
|
6621
|
+
};
|
6622
|
+
} & {
|
6623
|
+
inspection: {
|
6624
|
+
":id": {
|
6625
|
+
"service-order": {
|
6626
|
+
post: {
|
6627
|
+
body: unknown;
|
6628
|
+
params: {
|
6629
|
+
id: string;
|
6630
|
+
};
|
6631
|
+
query: unknown;
|
6632
|
+
headers: unknown;
|
6633
|
+
response: {
|
6634
|
+
200: {
|
6635
|
+
cpOrderId: string;
|
6636
|
+
};
|
6637
|
+
502: string;
|
6638
|
+
400: string;
|
6639
|
+
404: "Үзлэг олдсонгүй.";
|
6640
|
+
500: "Алдаа гарлаа. Дахин оролдоно уу.";
|
6641
|
+
422: {
|
6642
|
+
type: "validation";
|
6643
|
+
on: string;
|
6644
|
+
summary?: string;
|
6645
|
+
message?: string;
|
6646
|
+
found?: unknown;
|
6647
|
+
property?: string;
|
6648
|
+
expected?: string;
|
6649
|
+
};
|
6650
|
+
};
|
6651
|
+
};
|
6652
|
+
};
|
6653
|
+
};
|
6654
|
+
};
|
6655
|
+
};
|
6337
6656
|
};
|
6338
6657
|
} & {
|
6339
6658
|
api: {
|