autosync_backend2 1.1.67 → 1.1.69
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 +693 -227
- package/dist/index.js +538 -95
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -3013,6 +3013,139 @@ export declare const app: Elysia<"", {
|
|
3013
3013
|
} & {
|
3014
3014
|
"cp-order": {
|
3015
3015
|
item: {};
|
3016
|
+
} & {
|
3017
|
+
item: {
|
3018
|
+
employee: {};
|
3019
|
+
} & {
|
3020
|
+
employee: {
|
3021
|
+
get: {
|
3022
|
+
body: unknown;
|
3023
|
+
params: {};
|
3024
|
+
query: {
|
3025
|
+
cpOrderItemId: string;
|
3026
|
+
};
|
3027
|
+
headers: unknown;
|
3028
|
+
response: {
|
3029
|
+
200: {
|
3030
|
+
cpOrderItemId: string;
|
3031
|
+
employeeId: string;
|
3032
|
+
amount: number;
|
3033
|
+
id: string;
|
3034
|
+
createdAt: string;
|
3035
|
+
updatedAt: string;
|
3036
|
+
deletedAt: string | null;
|
3037
|
+
}[];
|
3038
|
+
422: {
|
3039
|
+
type: "validation";
|
3040
|
+
on: string;
|
3041
|
+
summary?: string;
|
3042
|
+
message?: string;
|
3043
|
+
found?: unknown;
|
3044
|
+
property?: string;
|
3045
|
+
expected?: string;
|
3046
|
+
};
|
3047
|
+
};
|
3048
|
+
};
|
3049
|
+
};
|
3050
|
+
} & {
|
3051
|
+
employee: {
|
3052
|
+
post: {
|
3053
|
+
body: {
|
3054
|
+
amount?: number | undefined;
|
3055
|
+
employeeId: string;
|
3056
|
+
cpOrderItemId: string;
|
3057
|
+
};
|
3058
|
+
params: {};
|
3059
|
+
query: unknown;
|
3060
|
+
headers: unknown;
|
3061
|
+
response: {
|
3062
|
+
200: {
|
3063
|
+
id: string;
|
3064
|
+
createdAt: string;
|
3065
|
+
updatedAt: string;
|
3066
|
+
employeeId: string;
|
3067
|
+
deletedAt: string | null;
|
3068
|
+
cpOrderItemId: string;
|
3069
|
+
amount: number;
|
3070
|
+
};
|
3071
|
+
400: "Энэ үйлчилгээнд ажилтан аль хэдийн хуваарилагдсан байна.";
|
3072
|
+
422: {
|
3073
|
+
type: "validation";
|
3074
|
+
on: string;
|
3075
|
+
summary?: string;
|
3076
|
+
message?: string;
|
3077
|
+
found?: unknown;
|
3078
|
+
property?: string;
|
3079
|
+
expected?: string;
|
3080
|
+
};
|
3081
|
+
};
|
3082
|
+
};
|
3083
|
+
};
|
3084
|
+
} & {
|
3085
|
+
employee: {
|
3086
|
+
":id": {
|
3087
|
+
put: {
|
3088
|
+
body: {
|
3089
|
+
amount?: number | undefined;
|
3090
|
+
};
|
3091
|
+
params: {
|
3092
|
+
id: string;
|
3093
|
+
};
|
3094
|
+
query: unknown;
|
3095
|
+
headers: unknown;
|
3096
|
+
response: {
|
3097
|
+
200: {
|
3098
|
+
cpOrderItemId: string;
|
3099
|
+
employeeId: string;
|
3100
|
+
amount: number;
|
3101
|
+
id: string;
|
3102
|
+
createdAt: string;
|
3103
|
+
updatedAt: string;
|
3104
|
+
deletedAt: string | null;
|
3105
|
+
};
|
3106
|
+
404: "Ажилтны мэдээлэл олдсонгүй.";
|
3107
|
+
422: {
|
3108
|
+
type: "validation";
|
3109
|
+
on: string;
|
3110
|
+
summary?: string;
|
3111
|
+
message?: string;
|
3112
|
+
found?: unknown;
|
3113
|
+
property?: string;
|
3114
|
+
expected?: string;
|
3115
|
+
};
|
3116
|
+
};
|
3117
|
+
};
|
3118
|
+
};
|
3119
|
+
};
|
3120
|
+
} & {
|
3121
|
+
employee: {
|
3122
|
+
":id": {
|
3123
|
+
delete: {
|
3124
|
+
body: unknown;
|
3125
|
+
params: {
|
3126
|
+
id: string;
|
3127
|
+
};
|
3128
|
+
query: unknown;
|
3129
|
+
headers: unknown;
|
3130
|
+
response: {
|
3131
|
+
200: {
|
3132
|
+
id: string;
|
3133
|
+
};
|
3134
|
+
404: "Ажилтны мэдээлэл олдсонгүй.";
|
3135
|
+
422: {
|
3136
|
+
type: "validation";
|
3137
|
+
on: string;
|
3138
|
+
summary?: string;
|
3139
|
+
message?: string;
|
3140
|
+
found?: unknown;
|
3141
|
+
property?: string;
|
3142
|
+
expected?: string;
|
3143
|
+
};
|
3144
|
+
};
|
3145
|
+
};
|
3146
|
+
};
|
3147
|
+
};
|
3148
|
+
};
|
3016
3149
|
} & {
|
3017
3150
|
item: {
|
3018
3151
|
get: {
|
@@ -3207,28 +3340,78 @@ export declare const app: Elysia<"", {
|
|
3207
3340
|
};
|
3208
3341
|
};
|
3209
3342
|
};
|
3343
|
+
};
|
3344
|
+
} & {
|
3345
|
+
"cp-order": {
|
3346
|
+
payment: {};
|
3210
3347
|
} & {
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3214
|
-
|
3215
|
-
|
3216
|
-
|
3348
|
+
payment: {
|
3349
|
+
ws: {
|
3350
|
+
subscribe: {
|
3351
|
+
body: {
|
3352
|
+
state: "PENDING" | "PAID" | "CANCELED";
|
3353
|
+
};
|
3217
3354
|
params: {};
|
3218
3355
|
query: {
|
3219
|
-
|
3356
|
+
paymentId: string;
|
3357
|
+
};
|
3358
|
+
headers: unknown;
|
3359
|
+
response: unknown;
|
3360
|
+
};
|
3361
|
+
};
|
3362
|
+
};
|
3363
|
+
} & {
|
3364
|
+
payment: {
|
3365
|
+
post: {
|
3366
|
+
body: {
|
3367
|
+
paymentPackageId?: string | null | undefined;
|
3368
|
+
state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
|
3369
|
+
cpOrderId: string;
|
3370
|
+
amount: number;
|
3371
|
+
paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
|
3372
|
+
paymentChannel: string;
|
3373
|
+
};
|
3374
|
+
params: {};
|
3375
|
+
query: unknown;
|
3376
|
+
headers: unknown;
|
3377
|
+
response: {
|
3378
|
+
200: {
|
3379
|
+
id: string;
|
3380
|
+
createdAt: string;
|
3381
|
+
updatedAt: string;
|
3382
|
+
deletedAt: string | null;
|
3383
|
+
state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
|
3384
|
+
cpOrderId: string;
|
3385
|
+
amount: number;
|
3386
|
+
paymentPackageId: string | null;
|
3387
|
+
paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
|
3388
|
+
paymentChannel: string;
|
3389
|
+
invoiceNumber: string | null;
|
3390
|
+
};
|
3391
|
+
422: {
|
3392
|
+
type: "validation";
|
3393
|
+
on: string;
|
3394
|
+
summary?: string;
|
3395
|
+
message?: string;
|
3396
|
+
found?: unknown;
|
3397
|
+
property?: string;
|
3398
|
+
expected?: string;
|
3399
|
+
};
|
3400
|
+
};
|
3401
|
+
};
|
3402
|
+
};
|
3403
|
+
} & {
|
3404
|
+
payment: {
|
3405
|
+
":id": {
|
3406
|
+
delete: {
|
3407
|
+
body: unknown;
|
3408
|
+
params: {
|
3409
|
+
id: string;
|
3220
3410
|
};
|
3411
|
+
query: unknown;
|
3221
3412
|
headers: unknown;
|
3222
3413
|
response: {
|
3223
|
-
200:
|
3224
|
-
cpOrderItemId: string;
|
3225
|
-
employeeId: string;
|
3226
|
-
amount: number;
|
3227
|
-
id: string;
|
3228
|
-
createdAt: string;
|
3229
|
-
updatedAt: string;
|
3230
|
-
deletedAt: string | null;
|
3231
|
-
}[];
|
3414
|
+
200: void;
|
3232
3415
|
422: {
|
3233
3416
|
type: "validation";
|
3234
3417
|
on: string;
|
@@ -3241,13 +3424,16 @@ export declare const app: Elysia<"", {
|
|
3241
3424
|
};
|
3242
3425
|
};
|
3243
3426
|
};
|
3244
|
-
}
|
3245
|
-
|
3427
|
+
};
|
3428
|
+
} & {
|
3429
|
+
payment: {
|
3430
|
+
storepay: {
|
3246
3431
|
post: {
|
3247
3432
|
body: {
|
3248
|
-
|
3249
|
-
|
3250
|
-
|
3433
|
+
paymentPackageId?: string | null | undefined;
|
3434
|
+
phone: number;
|
3435
|
+
cpOrderId: string;
|
3436
|
+
amount: number;
|
3251
3437
|
};
|
3252
3438
|
params: {};
|
3253
3439
|
query: unknown;
|
@@ -3257,12 +3443,18 @@ export declare const app: Elysia<"", {
|
|
3257
3443
|
id: string;
|
3258
3444
|
createdAt: string;
|
3259
3445
|
updatedAt: string;
|
3260
|
-
employeeId: string;
|
3261
3446
|
deletedAt: string | null;
|
3262
|
-
|
3447
|
+
state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
|
3448
|
+
cpOrderId: string;
|
3263
3449
|
amount: number;
|
3450
|
+
paymentPackageId: string | null;
|
3451
|
+
paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
|
3452
|
+
paymentChannel: string;
|
3453
|
+
invoiceNumber: string | null;
|
3264
3454
|
};
|
3265
|
-
|
3455
|
+
404: "Төлбөрийн тохиргоо олдсонгүй.";
|
3456
|
+
400: string;
|
3457
|
+
500: "Сервер алдаа гарлаа";
|
3266
3458
|
422: {
|
3267
3459
|
type: "validation";
|
3268
3460
|
on: string;
|
@@ -3275,205 +3467,13 @@ export declare const app: Elysia<"", {
|
|
3275
3467
|
};
|
3276
3468
|
};
|
3277
3469
|
};
|
3278
|
-
}
|
3279
|
-
|
3470
|
+
};
|
3471
|
+
} & {
|
3472
|
+
payment: {
|
3473
|
+
storepay: {
|
3280
3474
|
":id": {
|
3281
|
-
|
3282
|
-
body:
|
3283
|
-
amount?: number | undefined;
|
3284
|
-
};
|
3285
|
-
params: {
|
3286
|
-
id: string;
|
3287
|
-
};
|
3288
|
-
query: unknown;
|
3289
|
-
headers: unknown;
|
3290
|
-
response: {
|
3291
|
-
200: {
|
3292
|
-
cpOrderItemId: string;
|
3293
|
-
employeeId: string;
|
3294
|
-
amount: number;
|
3295
|
-
id: string;
|
3296
|
-
createdAt: string;
|
3297
|
-
updatedAt: string;
|
3298
|
-
deletedAt: string | null;
|
3299
|
-
};
|
3300
|
-
404: "Ажилтны мэдээлэл олдсонгүй.";
|
3301
|
-
422: {
|
3302
|
-
type: "validation";
|
3303
|
-
on: string;
|
3304
|
-
summary?: string;
|
3305
|
-
message?: string;
|
3306
|
-
found?: unknown;
|
3307
|
-
property?: string;
|
3308
|
-
expected?: string;
|
3309
|
-
};
|
3310
|
-
};
|
3311
|
-
};
|
3312
|
-
};
|
3313
|
-
};
|
3314
|
-
} & {
|
3315
|
-
employee: {
|
3316
|
-
":id": {
|
3317
|
-
delete: {
|
3318
|
-
body: unknown;
|
3319
|
-
params: {
|
3320
|
-
id: string;
|
3321
|
-
};
|
3322
|
-
query: unknown;
|
3323
|
-
headers: unknown;
|
3324
|
-
response: {
|
3325
|
-
200: {
|
3326
|
-
id: string;
|
3327
|
-
};
|
3328
|
-
404: "Ажилтны мэдээлэл олдсонгүй.";
|
3329
|
-
422: {
|
3330
|
-
type: "validation";
|
3331
|
-
on: string;
|
3332
|
-
summary?: string;
|
3333
|
-
message?: string;
|
3334
|
-
found?: unknown;
|
3335
|
-
property?: string;
|
3336
|
-
expected?: string;
|
3337
|
-
};
|
3338
|
-
};
|
3339
|
-
};
|
3340
|
-
};
|
3341
|
-
};
|
3342
|
-
};
|
3343
|
-
};
|
3344
|
-
} & {
|
3345
|
-
"cp-order": {
|
3346
|
-
payment: {};
|
3347
|
-
} & {
|
3348
|
-
payment: {
|
3349
|
-
ws: {
|
3350
|
-
subscribe: {
|
3351
|
-
body: {
|
3352
|
-
state: "PENDING" | "PAID" | "CANCELED";
|
3353
|
-
};
|
3354
|
-
params: {};
|
3355
|
-
query: {
|
3356
|
-
paymentId: string;
|
3357
|
-
};
|
3358
|
-
headers: unknown;
|
3359
|
-
response: unknown;
|
3360
|
-
};
|
3361
|
-
};
|
3362
|
-
};
|
3363
|
-
} & {
|
3364
|
-
payment: {
|
3365
|
-
post: {
|
3366
|
-
body: {
|
3367
|
-
paymentPackageId?: string | null | undefined;
|
3368
|
-
state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
|
3369
|
-
cpOrderId: string;
|
3370
|
-
amount: number;
|
3371
|
-
paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
|
3372
|
-
paymentChannel: string;
|
3373
|
-
};
|
3374
|
-
params: {};
|
3375
|
-
query: unknown;
|
3376
|
-
headers: unknown;
|
3377
|
-
response: {
|
3378
|
-
200: {
|
3379
|
-
id: string;
|
3380
|
-
createdAt: string;
|
3381
|
-
updatedAt: string;
|
3382
|
-
deletedAt: string | null;
|
3383
|
-
state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
|
3384
|
-
cpOrderId: string;
|
3385
|
-
amount: number;
|
3386
|
-
paymentPackageId: string | null;
|
3387
|
-
paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
|
3388
|
-
paymentChannel: string;
|
3389
|
-
invoiceNumber: string | null;
|
3390
|
-
};
|
3391
|
-
422: {
|
3392
|
-
type: "validation";
|
3393
|
-
on: string;
|
3394
|
-
summary?: string;
|
3395
|
-
message?: string;
|
3396
|
-
found?: unknown;
|
3397
|
-
property?: string;
|
3398
|
-
expected?: string;
|
3399
|
-
};
|
3400
|
-
};
|
3401
|
-
};
|
3402
|
-
};
|
3403
|
-
} & {
|
3404
|
-
payment: {
|
3405
|
-
":id": {
|
3406
|
-
delete: {
|
3407
|
-
body: unknown;
|
3408
|
-
params: {
|
3409
|
-
id: string;
|
3410
|
-
};
|
3411
|
-
query: unknown;
|
3412
|
-
headers: unknown;
|
3413
|
-
response: {
|
3414
|
-
200: void;
|
3415
|
-
422: {
|
3416
|
-
type: "validation";
|
3417
|
-
on: string;
|
3418
|
-
summary?: string;
|
3419
|
-
message?: string;
|
3420
|
-
found?: unknown;
|
3421
|
-
property?: string;
|
3422
|
-
expected?: string;
|
3423
|
-
};
|
3424
|
-
};
|
3425
|
-
};
|
3426
|
-
};
|
3427
|
-
};
|
3428
|
-
} & {
|
3429
|
-
payment: {
|
3430
|
-
storepay: {
|
3431
|
-
post: {
|
3432
|
-
body: {
|
3433
|
-
paymentPackageId?: string | null | undefined;
|
3434
|
-
phone: number;
|
3435
|
-
cpOrderId: string;
|
3436
|
-
amount: number;
|
3437
|
-
};
|
3438
|
-
params: {};
|
3439
|
-
query: unknown;
|
3440
|
-
headers: unknown;
|
3441
|
-
response: {
|
3442
|
-
200: {
|
3443
|
-
id: string;
|
3444
|
-
createdAt: string;
|
3445
|
-
updatedAt: string;
|
3446
|
-
deletedAt: string | null;
|
3447
|
-
state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
|
3448
|
-
cpOrderId: string;
|
3449
|
-
amount: number;
|
3450
|
-
paymentPackageId: string | null;
|
3451
|
-
paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
|
3452
|
-
paymentChannel: string;
|
3453
|
-
invoiceNumber: string | null;
|
3454
|
-
};
|
3455
|
-
404: "Төлбөрийн тохиргоо олдсонгүй.";
|
3456
|
-
400: string;
|
3457
|
-
500: "Сервер алдаа гарлаа";
|
3458
|
-
422: {
|
3459
|
-
type: "validation";
|
3460
|
-
on: string;
|
3461
|
-
summary?: string;
|
3462
|
-
message?: string;
|
3463
|
-
found?: unknown;
|
3464
|
-
property?: string;
|
3465
|
-
expected?: string;
|
3466
|
-
};
|
3467
|
-
};
|
3468
|
-
};
|
3469
|
-
};
|
3470
|
-
};
|
3471
|
-
} & {
|
3472
|
-
payment: {
|
3473
|
-
storepay: {
|
3474
|
-
":id": {
|
3475
|
-
get: {
|
3476
|
-
body: unknown;
|
3475
|
+
get: {
|
3476
|
+
body: unknown;
|
3477
3477
|
params: {
|
3478
3478
|
id: string;
|
3479
3479
|
};
|
@@ -3854,12 +3854,13 @@ export declare const app: Elysia<"", {
|
|
3854
3854
|
companyId: string;
|
3855
3855
|
companyBranchId: string;
|
3856
3856
|
customerId: string | null;
|
3857
|
-
vehicleId: string;
|
3857
|
+
vehicleId: string | null;
|
3858
3858
|
orderId: string;
|
3859
3859
|
state: "CREATED" | "PROGRESSING" | "COMPLETE";
|
3860
3860
|
isNoat: boolean | null;
|
3861
3861
|
timeCompleted: string | null;
|
3862
3862
|
km: number;
|
3863
|
+
type: "Service" | "ProductSale";
|
3863
3864
|
id: string;
|
3864
3865
|
createdAt: string;
|
3865
3866
|
updatedAt: string;
|
@@ -3965,12 +3966,13 @@ export declare const app: Elysia<"", {
|
|
3965
3966
|
companyId: string;
|
3966
3967
|
companyBranchId: string;
|
3967
3968
|
customerId: string | null;
|
3968
|
-
vehicleId: string;
|
3969
|
+
vehicleId: string | null;
|
3969
3970
|
orderId: string;
|
3970
3971
|
state: "CREATED" | "PROGRESSING" | "COMPLETE";
|
3971
3972
|
isNoat: boolean | null;
|
3972
3973
|
timeCompleted: string | null;
|
3973
3974
|
km: number;
|
3975
|
+
type: "Service" | "ProductSale";
|
3974
3976
|
id: string;
|
3975
3977
|
createdAt: string;
|
3976
3978
|
updatedAt: string;
|
@@ -4100,12 +4102,13 @@ export declare const app: Elysia<"", {
|
|
4100
4102
|
companyId: string;
|
4101
4103
|
companyBranchId: string;
|
4102
4104
|
customerId: string | null;
|
4103
|
-
vehicleId: string;
|
4105
|
+
vehicleId: string | null;
|
4104
4106
|
orderId: string;
|
4105
4107
|
state: "CREATED" | "PROGRESSING" | "COMPLETE";
|
4106
4108
|
isNoat: boolean | null;
|
4107
4109
|
timeCompleted: string | null;
|
4108
4110
|
km: number;
|
4111
|
+
type: "Service" | "ProductSale";
|
4109
4112
|
id: string;
|
4110
4113
|
createdAt: string;
|
4111
4114
|
updatedAt: string;
|
@@ -4130,11 +4133,12 @@ export declare const app: Elysia<"", {
|
|
4130
4133
|
":id": {
|
4131
4134
|
put: {
|
4132
4135
|
body: {
|
4136
|
+
type?: "Service" | "ProductSale" | undefined;
|
4133
4137
|
companyId?: string | undefined;
|
4134
4138
|
isNoat?: boolean | null | undefined;
|
4135
4139
|
companyBranchId?: string | undefined;
|
4136
4140
|
customerId?: string | null | undefined;
|
4137
|
-
vehicleId?: string | undefined;
|
4141
|
+
vehicleId?: string | null | undefined;
|
4138
4142
|
km?: number | undefined;
|
4139
4143
|
orderId?: string | undefined;
|
4140
4144
|
state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
|
@@ -4150,12 +4154,13 @@ export declare const app: Elysia<"", {
|
|
4150
4154
|
companyId: string;
|
4151
4155
|
companyBranchId: string;
|
4152
4156
|
customerId: string | null;
|
4153
|
-
vehicleId: string;
|
4157
|
+
vehicleId: string | null;
|
4154
4158
|
orderId: string;
|
4155
4159
|
state: "CREATED" | "PROGRESSING" | "COMPLETE";
|
4156
4160
|
isNoat: boolean | null;
|
4157
4161
|
timeCompleted: string | null;
|
4158
4162
|
km: number;
|
4163
|
+
type: "Service" | "ProductSale";
|
4159
4164
|
id: string;
|
4160
4165
|
createdAt: string;
|
4161
4166
|
updatedAt: string;
|
@@ -6176,6 +6181,467 @@ export declare const app: Elysia<"", {
|
|
6176
6181
|
};
|
6177
6182
|
};
|
6178
6183
|
};
|
6184
|
+
} & {
|
6185
|
+
crm: {
|
6186
|
+
reports: {};
|
6187
|
+
} & {
|
6188
|
+
reports: {
|
6189
|
+
sales: {
|
6190
|
+
get: {
|
6191
|
+
body: unknown;
|
6192
|
+
params: {};
|
6193
|
+
query: {
|
6194
|
+
employeeId?: string | undefined;
|
6195
|
+
companyBranchId?: string | undefined;
|
6196
|
+
state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
|
6197
|
+
startDate?: string | undefined;
|
6198
|
+
endDate?: string | undefined;
|
6199
|
+
includeItems?: boolean | undefined;
|
6200
|
+
includePayments?: boolean | undefined;
|
6201
|
+
pagination: {
|
6202
|
+
size: number;
|
6203
|
+
page: number;
|
6204
|
+
};
|
6205
|
+
};
|
6206
|
+
headers: unknown;
|
6207
|
+
response: {
|
6208
|
+
200: {
|
6209
|
+
totalCount: number;
|
6210
|
+
order: {
|
6211
|
+
companyId: string;
|
6212
|
+
companyBranchId: string;
|
6213
|
+
customerId: string | null;
|
6214
|
+
vehicleId: string | null;
|
6215
|
+
orderId: string;
|
6216
|
+
state: "CREATED" | "PROGRESSING" | "COMPLETE";
|
6217
|
+
isNoat: boolean | null;
|
6218
|
+
timeCompleted: string | null;
|
6219
|
+
km: number;
|
6220
|
+
type: "Service" | "ProductSale";
|
6221
|
+
id: string;
|
6222
|
+
createdAt: string;
|
6223
|
+
updatedAt: string;
|
6224
|
+
deletedAt: string | null;
|
6225
|
+
};
|
6226
|
+
customer: {
|
6227
|
+
companyId: string | null;
|
6228
|
+
firstname: string | null;
|
6229
|
+
lastname: string | null;
|
6230
|
+
phoneNumber: string;
|
6231
|
+
email: string | null;
|
6232
|
+
regNum: string | null;
|
6233
|
+
id: string;
|
6234
|
+
createdAt: string;
|
6235
|
+
updatedAt: string;
|
6236
|
+
deletedAt: string | null;
|
6237
|
+
} | null;
|
6238
|
+
vehicle: {
|
6239
|
+
customerId: string | null;
|
6240
|
+
vehicleKindId: string;
|
6241
|
+
vin: string | null;
|
6242
|
+
licensePlate: string | null;
|
6243
|
+
color: string | null;
|
6244
|
+
engineCc: string | null;
|
6245
|
+
cylinder: string | null;
|
6246
|
+
gasType: string | null;
|
6247
|
+
transmissionType: string | null;
|
6248
|
+
vehicleType: string | null;
|
6249
|
+
yearManufacture: number | null;
|
6250
|
+
yearImport: number | null;
|
6251
|
+
steering: string | null;
|
6252
|
+
engineCode: string | null;
|
6253
|
+
transmissionCode: string | null;
|
6254
|
+
driveTrain: string | null;
|
6255
|
+
km: number;
|
6256
|
+
companyId: string | null;
|
6257
|
+
id: string;
|
6258
|
+
createdAt: string;
|
6259
|
+
updatedAt: string;
|
6260
|
+
deletedAt: string | null;
|
6261
|
+
} | null;
|
6262
|
+
vehicleKind: {
|
6263
|
+
vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
|
6264
|
+
parentId: string | null;
|
6265
|
+
name: string;
|
6266
|
+
description: string | null;
|
6267
|
+
yearStart: number | null;
|
6268
|
+
yearEnd: number | null;
|
6269
|
+
imagePath: string | null;
|
6270
|
+
id: string;
|
6271
|
+
createdAt: string;
|
6272
|
+
updatedAt: string;
|
6273
|
+
deletedAt: string | null;
|
6274
|
+
} | null;
|
6275
|
+
totalAmount: number;
|
6276
|
+
paidAmount: number;
|
6277
|
+
}[];
|
6278
|
+
422: {
|
6279
|
+
type: "validation";
|
6280
|
+
on: string;
|
6281
|
+
summary?: string;
|
6282
|
+
message?: string;
|
6283
|
+
found?: unknown;
|
6284
|
+
property?: string;
|
6285
|
+
expected?: string;
|
6286
|
+
};
|
6287
|
+
};
|
6288
|
+
};
|
6289
|
+
};
|
6290
|
+
};
|
6291
|
+
} & {
|
6292
|
+
reports: {
|
6293
|
+
sales: {
|
6294
|
+
summary: {
|
6295
|
+
get: {
|
6296
|
+
body: unknown;
|
6297
|
+
params: {};
|
6298
|
+
query: {
|
6299
|
+
companyBranchId?: string | undefined;
|
6300
|
+
startDate?: string | undefined;
|
6301
|
+
endDate?: string | undefined;
|
6302
|
+
};
|
6303
|
+
headers: unknown;
|
6304
|
+
response: {
|
6305
|
+
200: {
|
6306
|
+
totalOrders: number;
|
6307
|
+
totalRevenue: number;
|
6308
|
+
totalPaidAmount: number;
|
6309
|
+
totalPendingAmount: number;
|
6310
|
+
averageOrderValue: number;
|
6311
|
+
ordersCompleted: number;
|
6312
|
+
ordersPending: number;
|
6313
|
+
ordersCancelled: number;
|
6314
|
+
};
|
6315
|
+
422: {
|
6316
|
+
type: "validation";
|
6317
|
+
on: string;
|
6318
|
+
summary?: string;
|
6319
|
+
message?: string;
|
6320
|
+
found?: unknown;
|
6321
|
+
property?: string;
|
6322
|
+
expected?: string;
|
6323
|
+
};
|
6324
|
+
};
|
6325
|
+
};
|
6326
|
+
};
|
6327
|
+
};
|
6328
|
+
};
|
6329
|
+
} & {
|
6330
|
+
reports: {
|
6331
|
+
sales: {
|
6332
|
+
"by-period": {
|
6333
|
+
get: {
|
6334
|
+
body: unknown;
|
6335
|
+
params: {};
|
6336
|
+
query: {
|
6337
|
+
companyBranchId?: string | undefined;
|
6338
|
+
startDate?: string | undefined;
|
6339
|
+
endDate?: string | undefined;
|
6340
|
+
groupBy: "day" | "week" | "month" | "year";
|
6341
|
+
};
|
6342
|
+
headers: unknown;
|
6343
|
+
response: {
|
6344
|
+
200: {
|
6345
|
+
totalOrders: number;
|
6346
|
+
totalRevenue: number;
|
6347
|
+
totalPaidAmount: number;
|
6348
|
+
period: string;
|
6349
|
+
}[];
|
6350
|
+
422: {
|
6351
|
+
type: "validation";
|
6352
|
+
on: string;
|
6353
|
+
summary?: string;
|
6354
|
+
message?: string;
|
6355
|
+
found?: unknown;
|
6356
|
+
property?: string;
|
6357
|
+
expected?: string;
|
6358
|
+
};
|
6359
|
+
};
|
6360
|
+
};
|
6361
|
+
};
|
6362
|
+
};
|
6363
|
+
};
|
6364
|
+
} & {
|
6365
|
+
reports: {
|
6366
|
+
sales: {
|
6367
|
+
"by-employee": {
|
6368
|
+
get: {
|
6369
|
+
body: unknown;
|
6370
|
+
params: {};
|
6371
|
+
query: {
|
6372
|
+
companyBranchId?: string | undefined;
|
6373
|
+
startDate?: string | undefined;
|
6374
|
+
endDate?: string | undefined;
|
6375
|
+
pagination: {
|
6376
|
+
size: number;
|
6377
|
+
page: number;
|
6378
|
+
};
|
6379
|
+
};
|
6380
|
+
headers: unknown;
|
6381
|
+
response: {
|
6382
|
+
200: {
|
6383
|
+
totalCount: number;
|
6384
|
+
employeeId: string;
|
6385
|
+
employeeName: string;
|
6386
|
+
totalOrders: number;
|
6387
|
+
totalRevenue: number;
|
6388
|
+
totalCommission: number;
|
6389
|
+
}[];
|
6390
|
+
422: {
|
6391
|
+
type: "validation";
|
6392
|
+
on: string;
|
6393
|
+
summary?: string;
|
6394
|
+
message?: string;
|
6395
|
+
found?: unknown;
|
6396
|
+
property?: string;
|
6397
|
+
expected?: string;
|
6398
|
+
};
|
6399
|
+
};
|
6400
|
+
};
|
6401
|
+
};
|
6402
|
+
};
|
6403
|
+
};
|
6404
|
+
} & {
|
6405
|
+
reports: {
|
6406
|
+
payments: {
|
6407
|
+
get: {
|
6408
|
+
body: unknown;
|
6409
|
+
params: {};
|
6410
|
+
query: {
|
6411
|
+
method?: string | undefined;
|
6412
|
+
companyBranchId?: string | undefined;
|
6413
|
+
state?: string | undefined;
|
6414
|
+
startDate?: string | undefined;
|
6415
|
+
endDate?: string | undefined;
|
6416
|
+
pagination: {
|
6417
|
+
size: number;
|
6418
|
+
page: number;
|
6419
|
+
};
|
6420
|
+
};
|
6421
|
+
headers: unknown;
|
6422
|
+
response: {
|
6423
|
+
200: {
|
6424
|
+
totalCount: number;
|
6425
|
+
payment: {
|
6426
|
+
cpOrderId: string;
|
6427
|
+
paymentPackageId: string | null;
|
6428
|
+
paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
|
6429
|
+
paymentChannel: string;
|
6430
|
+
amount: number;
|
6431
|
+
state: "NOT_PAID" | "PENDING" | "FAILED" | "EXPIRED" | "PAID" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
|
6432
|
+
invoiceNumber: string | null;
|
6433
|
+
id: string;
|
6434
|
+
createdAt: string;
|
6435
|
+
updatedAt: string;
|
6436
|
+
deletedAt: string | null;
|
6437
|
+
};
|
6438
|
+
order: {
|
6439
|
+
companyId: string;
|
6440
|
+
companyBranchId: string;
|
6441
|
+
customerId: string | null;
|
6442
|
+
vehicleId: string | null;
|
6443
|
+
orderId: string;
|
6444
|
+
state: "CREATED" | "PROGRESSING" | "COMPLETE";
|
6445
|
+
isNoat: boolean | null;
|
6446
|
+
timeCompleted: string | null;
|
6447
|
+
km: number;
|
6448
|
+
type: "Service" | "ProductSale";
|
6449
|
+
id: string;
|
6450
|
+
createdAt: string;
|
6451
|
+
updatedAt: string;
|
6452
|
+
deletedAt: string | null;
|
6453
|
+
};
|
6454
|
+
customer: {
|
6455
|
+
companyId: string | null;
|
6456
|
+
firstname: string | null;
|
6457
|
+
lastname: string | null;
|
6458
|
+
phoneNumber: string;
|
6459
|
+
email: string | null;
|
6460
|
+
regNum: string | null;
|
6461
|
+
id: string;
|
6462
|
+
createdAt: string;
|
6463
|
+
updatedAt: string;
|
6464
|
+
deletedAt: string | null;
|
6465
|
+
} | null;
|
6466
|
+
}[];
|
6467
|
+
422: {
|
6468
|
+
type: "validation";
|
6469
|
+
on: string;
|
6470
|
+
summary?: string;
|
6471
|
+
message?: string;
|
6472
|
+
found?: unknown;
|
6473
|
+
property?: string;
|
6474
|
+
expected?: string;
|
6475
|
+
};
|
6476
|
+
};
|
6477
|
+
};
|
6478
|
+
};
|
6479
|
+
};
|
6480
|
+
} & {
|
6481
|
+
reports: {
|
6482
|
+
sales: {
|
6483
|
+
csv: {
|
6484
|
+
get: {
|
6485
|
+
body: unknown;
|
6486
|
+
params: {};
|
6487
|
+
query: {
|
6488
|
+
employeeId?: string | undefined;
|
6489
|
+
method?: string | undefined;
|
6490
|
+
companyBranchId?: string | undefined;
|
6491
|
+
state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
|
6492
|
+
limit?: number | undefined;
|
6493
|
+
startDate?: string | undefined;
|
6494
|
+
endDate?: string | undefined;
|
6495
|
+
};
|
6496
|
+
headers: unknown;
|
6497
|
+
response: {
|
6498
|
+
200: string;
|
6499
|
+
422: {
|
6500
|
+
type: "validation";
|
6501
|
+
on: string;
|
6502
|
+
summary?: string;
|
6503
|
+
message?: string;
|
6504
|
+
found?: unknown;
|
6505
|
+
property?: string;
|
6506
|
+
expected?: string;
|
6507
|
+
};
|
6508
|
+
};
|
6509
|
+
};
|
6510
|
+
};
|
6511
|
+
};
|
6512
|
+
};
|
6513
|
+
} & {
|
6514
|
+
reports: {
|
6515
|
+
sales: {
|
6516
|
+
summary: {
|
6517
|
+
csv: {
|
6518
|
+
get: {
|
6519
|
+
body: unknown;
|
6520
|
+
params: {};
|
6521
|
+
query: {
|
6522
|
+
companyBranchId?: string | undefined;
|
6523
|
+
startDate?: string | undefined;
|
6524
|
+
endDate?: string | undefined;
|
6525
|
+
};
|
6526
|
+
headers: unknown;
|
6527
|
+
response: {
|
6528
|
+
200: string;
|
6529
|
+
422: {
|
6530
|
+
type: "validation";
|
6531
|
+
on: string;
|
6532
|
+
summary?: string;
|
6533
|
+
message?: string;
|
6534
|
+
found?: unknown;
|
6535
|
+
property?: string;
|
6536
|
+
expected?: string;
|
6537
|
+
};
|
6538
|
+
};
|
6539
|
+
};
|
6540
|
+
};
|
6541
|
+
};
|
6542
|
+
};
|
6543
|
+
};
|
6544
|
+
} & {
|
6545
|
+
reports: {
|
6546
|
+
sales: {
|
6547
|
+
"by-period": {
|
6548
|
+
csv: {
|
6549
|
+
get: {
|
6550
|
+
body: unknown;
|
6551
|
+
params: {};
|
6552
|
+
query: {
|
6553
|
+
companyBranchId?: string | undefined;
|
6554
|
+
startDate?: string | undefined;
|
6555
|
+
endDate?: string | undefined;
|
6556
|
+
groupBy: "day" | "week" | "month" | "year";
|
6557
|
+
};
|
6558
|
+
headers: unknown;
|
6559
|
+
response: {
|
6560
|
+
200: string;
|
6561
|
+
422: {
|
6562
|
+
type: "validation";
|
6563
|
+
on: string;
|
6564
|
+
summary?: string;
|
6565
|
+
message?: string;
|
6566
|
+
found?: unknown;
|
6567
|
+
property?: string;
|
6568
|
+
expected?: string;
|
6569
|
+
};
|
6570
|
+
};
|
6571
|
+
};
|
6572
|
+
};
|
6573
|
+
};
|
6574
|
+
};
|
6575
|
+
};
|
6576
|
+
} & {
|
6577
|
+
reports: {
|
6578
|
+
sales: {
|
6579
|
+
"by-employee": {
|
6580
|
+
csv: {
|
6581
|
+
get: {
|
6582
|
+
body: unknown;
|
6583
|
+
params: {};
|
6584
|
+
query: {
|
6585
|
+
employeeId?: string | undefined;
|
6586
|
+
method?: string | undefined;
|
6587
|
+
companyBranchId?: string | undefined;
|
6588
|
+
state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
|
6589
|
+
limit?: number | undefined;
|
6590
|
+
startDate?: string | undefined;
|
6591
|
+
endDate?: string | undefined;
|
6592
|
+
};
|
6593
|
+
headers: unknown;
|
6594
|
+
response: {
|
6595
|
+
200: string;
|
6596
|
+
422: {
|
6597
|
+
type: "validation";
|
6598
|
+
on: string;
|
6599
|
+
summary?: string;
|
6600
|
+
message?: string;
|
6601
|
+
found?: unknown;
|
6602
|
+
property?: string;
|
6603
|
+
expected?: string;
|
6604
|
+
};
|
6605
|
+
};
|
6606
|
+
};
|
6607
|
+
};
|
6608
|
+
};
|
6609
|
+
};
|
6610
|
+
};
|
6611
|
+
} & {
|
6612
|
+
reports: {
|
6613
|
+
payments: {
|
6614
|
+
csv: {
|
6615
|
+
get: {
|
6616
|
+
body: unknown;
|
6617
|
+
params: {};
|
6618
|
+
query: {
|
6619
|
+
employeeId?: string | undefined;
|
6620
|
+
method?: string | undefined;
|
6621
|
+
companyBranchId?: string | undefined;
|
6622
|
+
state?: "CREATED" | "PROGRESSING" | "COMPLETE" | undefined;
|
6623
|
+
limit?: number | undefined;
|
6624
|
+
startDate?: string | undefined;
|
6625
|
+
endDate?: string | undefined;
|
6626
|
+
};
|
6627
|
+
headers: unknown;
|
6628
|
+
response: {
|
6629
|
+
200: string;
|
6630
|
+
422: {
|
6631
|
+
type: "validation";
|
6632
|
+
on: string;
|
6633
|
+
summary?: string;
|
6634
|
+
message?: string;
|
6635
|
+
found?: unknown;
|
6636
|
+
property?: string;
|
6637
|
+
expected?: string;
|
6638
|
+
};
|
6639
|
+
};
|
6640
|
+
};
|
6641
|
+
};
|
6642
|
+
};
|
6643
|
+
};
|
6644
|
+
};
|
6179
6645
|
};
|
6180
6646
|
} & {
|
6181
6647
|
api: {
|