autosync_backend2 1.2.50 → 1.2.52
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 +933 -0
- package/dist/index.js +910 -439
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3102,6 +3102,658 @@ export declare const app: Elysia<"", {
|
|
|
3102
3102
|
};
|
|
3103
3103
|
};
|
|
3104
3104
|
};
|
|
3105
|
+
} & {
|
|
3106
|
+
company: {
|
|
3107
|
+
"billing-plan": {};
|
|
3108
|
+
} & {
|
|
3109
|
+
"billing-plan": {
|
|
3110
|
+
get: {
|
|
3111
|
+
body: unknown;
|
|
3112
|
+
params: {};
|
|
3113
|
+
query: {
|
|
3114
|
+
id?: string | undefined;
|
|
3115
|
+
createdAt?: string | undefined;
|
|
3116
|
+
updatedAt?: string | undefined;
|
|
3117
|
+
companyId?: string | undefined;
|
|
3118
|
+
deletedAt?: string | null | undefined;
|
|
3119
|
+
oldId?: number | null | undefined;
|
|
3120
|
+
billingPeriod?: "MONTHLY" | "ANNUAL" | "YEARLY" | undefined;
|
|
3121
|
+
basePrice?: number | undefined;
|
|
3122
|
+
pricePerCar?: number | null | undefined;
|
|
3123
|
+
active?: boolean | undefined;
|
|
3124
|
+
note?: string | null | undefined;
|
|
3125
|
+
pagination: {
|
|
3126
|
+
size: number;
|
|
3127
|
+
page: number;
|
|
3128
|
+
};
|
|
3129
|
+
};
|
|
3130
|
+
headers: unknown;
|
|
3131
|
+
response: {
|
|
3132
|
+
200: {
|
|
3133
|
+
totalCount: number;
|
|
3134
|
+
totalPage: number;
|
|
3135
|
+
result: Omit<{
|
|
3136
|
+
totalCount: number;
|
|
3137
|
+
companyId: string;
|
|
3138
|
+
billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
|
|
3139
|
+
basePrice: number;
|
|
3140
|
+
pricePerCar: number | null;
|
|
3141
|
+
active: boolean;
|
|
3142
|
+
note: string | null;
|
|
3143
|
+
id: string;
|
|
3144
|
+
createdAt: string;
|
|
3145
|
+
updatedAt: string;
|
|
3146
|
+
deletedAt: string | null;
|
|
3147
|
+
oldId: number | null;
|
|
3148
|
+
}, "totalCount">[];
|
|
3149
|
+
};
|
|
3150
|
+
401: "Токен олдсонгүй";
|
|
3151
|
+
422: {
|
|
3152
|
+
type: "validation";
|
|
3153
|
+
on: string;
|
|
3154
|
+
summary?: string;
|
|
3155
|
+
message?: string;
|
|
3156
|
+
found?: unknown;
|
|
3157
|
+
property?: string;
|
|
3158
|
+
expected?: string;
|
|
3159
|
+
};
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
3162
|
+
};
|
|
3163
|
+
} & {
|
|
3164
|
+
"billing-plan": {
|
|
3165
|
+
post: {
|
|
3166
|
+
body: {
|
|
3167
|
+
oldId?: number | null | undefined;
|
|
3168
|
+
billingPeriod?: "MONTHLY" | "ANNUAL" | "YEARLY" | undefined;
|
|
3169
|
+
pricePerCar?: number | null | undefined;
|
|
3170
|
+
active?: boolean | undefined;
|
|
3171
|
+
note?: string | null | undefined;
|
|
3172
|
+
companyId: string;
|
|
3173
|
+
basePrice: number;
|
|
3174
|
+
};
|
|
3175
|
+
params: {};
|
|
3176
|
+
query: {};
|
|
3177
|
+
headers: {};
|
|
3178
|
+
response: {
|
|
3179
|
+
200: {
|
|
3180
|
+
id: string;
|
|
3181
|
+
createdAt: string;
|
|
3182
|
+
updatedAt: string;
|
|
3183
|
+
companyId: string;
|
|
3184
|
+
deletedAt: string | null;
|
|
3185
|
+
oldId: number | null;
|
|
3186
|
+
billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
|
|
3187
|
+
basePrice: number;
|
|
3188
|
+
pricePerCar: number | null;
|
|
3189
|
+
active: boolean;
|
|
3190
|
+
note: string | null;
|
|
3191
|
+
};
|
|
3192
|
+
401: "Токен олдсонгүй";
|
|
3193
|
+
422: {
|
|
3194
|
+
type: "validation";
|
|
3195
|
+
on: string;
|
|
3196
|
+
summary?: string;
|
|
3197
|
+
message?: string;
|
|
3198
|
+
found?: unknown;
|
|
3199
|
+
property?: string;
|
|
3200
|
+
expected?: string;
|
|
3201
|
+
};
|
|
3202
|
+
};
|
|
3203
|
+
};
|
|
3204
|
+
};
|
|
3205
|
+
} & {
|
|
3206
|
+
"billing-plan": {
|
|
3207
|
+
":id": {
|
|
3208
|
+
put: {
|
|
3209
|
+
body: {
|
|
3210
|
+
companyId?: string | undefined;
|
|
3211
|
+
oldId?: number | null | undefined;
|
|
3212
|
+
billingPeriod?: "MONTHLY" | "ANNUAL" | "YEARLY" | undefined;
|
|
3213
|
+
basePrice?: number | undefined;
|
|
3214
|
+
pricePerCar?: number | null | undefined;
|
|
3215
|
+
active?: boolean | undefined;
|
|
3216
|
+
note?: string | null | undefined;
|
|
3217
|
+
};
|
|
3218
|
+
params: {
|
|
3219
|
+
id: string;
|
|
3220
|
+
};
|
|
3221
|
+
query: {};
|
|
3222
|
+
headers: {};
|
|
3223
|
+
response: {
|
|
3224
|
+
200: {
|
|
3225
|
+
companyId: string;
|
|
3226
|
+
billingPeriod: "MONTHLY" | "ANNUAL" | "YEARLY";
|
|
3227
|
+
basePrice: number;
|
|
3228
|
+
pricePerCar: number | null;
|
|
3229
|
+
active: boolean;
|
|
3230
|
+
note: string | null;
|
|
3231
|
+
id: string;
|
|
3232
|
+
createdAt: string;
|
|
3233
|
+
updatedAt: string;
|
|
3234
|
+
deletedAt: string | null;
|
|
3235
|
+
oldId: number | null;
|
|
3236
|
+
};
|
|
3237
|
+
401: "Токен олдсонгүй";
|
|
3238
|
+
404: "Төлбөрийн төлөвлөгөө олдсонгүй.";
|
|
3239
|
+
422: {
|
|
3240
|
+
type: "validation";
|
|
3241
|
+
on: string;
|
|
3242
|
+
summary?: string;
|
|
3243
|
+
message?: string;
|
|
3244
|
+
found?: unknown;
|
|
3245
|
+
property?: string;
|
|
3246
|
+
expected?: string;
|
|
3247
|
+
};
|
|
3248
|
+
};
|
|
3249
|
+
};
|
|
3250
|
+
};
|
|
3251
|
+
};
|
|
3252
|
+
} & {
|
|
3253
|
+
"billing-plan": {
|
|
3254
|
+
":id": {
|
|
3255
|
+
delete: {
|
|
3256
|
+
body: {};
|
|
3257
|
+
params: {
|
|
3258
|
+
id: string;
|
|
3259
|
+
};
|
|
3260
|
+
query: {};
|
|
3261
|
+
headers: {};
|
|
3262
|
+
response: {
|
|
3263
|
+
401: "Токен олдсонгүй";
|
|
3264
|
+
422: {
|
|
3265
|
+
type: "validation";
|
|
3266
|
+
on: string;
|
|
3267
|
+
summary?: string;
|
|
3268
|
+
message?: string;
|
|
3269
|
+
found?: unknown;
|
|
3270
|
+
property?: string;
|
|
3271
|
+
expected?: string;
|
|
3272
|
+
};
|
|
3273
|
+
};
|
|
3274
|
+
};
|
|
3275
|
+
};
|
|
3276
|
+
};
|
|
3277
|
+
};
|
|
3278
|
+
} & {
|
|
3279
|
+
company: {
|
|
3280
|
+
invoice: {};
|
|
3281
|
+
} & {
|
|
3282
|
+
invoice: {
|
|
3283
|
+
payment: {};
|
|
3284
|
+
} & {
|
|
3285
|
+
payment: {
|
|
3286
|
+
get: {
|
|
3287
|
+
body: unknown;
|
|
3288
|
+
params: {};
|
|
3289
|
+
query: {
|
|
3290
|
+
id?: string | undefined;
|
|
3291
|
+
createdAt?: string | undefined;
|
|
3292
|
+
updatedAt?: string | undefined;
|
|
3293
|
+
deletedAt?: string | null | undefined;
|
|
3294
|
+
oldId?: number | null | undefined;
|
|
3295
|
+
note?: string | null | undefined;
|
|
3296
|
+
paidAt?: string | undefined;
|
|
3297
|
+
invoiceId?: string | undefined;
|
|
3298
|
+
amount?: number | undefined;
|
|
3299
|
+
reference?: string | null | undefined;
|
|
3300
|
+
pagination: {
|
|
3301
|
+
size: number;
|
|
3302
|
+
page: number;
|
|
3303
|
+
};
|
|
3304
|
+
};
|
|
3305
|
+
headers: unknown;
|
|
3306
|
+
response: {
|
|
3307
|
+
200: {
|
|
3308
|
+
totalCount: number;
|
|
3309
|
+
totalPage: number;
|
|
3310
|
+
result: Omit<{
|
|
3311
|
+
totalCount: number;
|
|
3312
|
+
invoiceId: string;
|
|
3313
|
+
amount: number;
|
|
3314
|
+
paidAt: string;
|
|
3315
|
+
reference: string | null;
|
|
3316
|
+
note: string | null;
|
|
3317
|
+
id: string;
|
|
3318
|
+
createdAt: string;
|
|
3319
|
+
updatedAt: string;
|
|
3320
|
+
deletedAt: string | null;
|
|
3321
|
+
oldId: number | null;
|
|
3322
|
+
}, "totalCount">[];
|
|
3323
|
+
};
|
|
3324
|
+
401: "Токен олдсонгүй";
|
|
3325
|
+
422: {
|
|
3326
|
+
type: "validation";
|
|
3327
|
+
on: string;
|
|
3328
|
+
summary?: string;
|
|
3329
|
+
message?: string;
|
|
3330
|
+
found?: unknown;
|
|
3331
|
+
property?: string;
|
|
3332
|
+
expected?: string;
|
|
3333
|
+
};
|
|
3334
|
+
};
|
|
3335
|
+
};
|
|
3336
|
+
};
|
|
3337
|
+
} & {
|
|
3338
|
+
payment: {
|
|
3339
|
+
post: {
|
|
3340
|
+
body: {
|
|
3341
|
+
oldId?: number | null | undefined;
|
|
3342
|
+
note?: string | null | undefined;
|
|
3343
|
+
reference?: string | null | undefined;
|
|
3344
|
+
paidAt: string;
|
|
3345
|
+
invoiceId: string;
|
|
3346
|
+
amount: number;
|
|
3347
|
+
};
|
|
3348
|
+
params: {};
|
|
3349
|
+
query: unknown;
|
|
3350
|
+
headers: unknown;
|
|
3351
|
+
response: {
|
|
3352
|
+
200: {
|
|
3353
|
+
id: string;
|
|
3354
|
+
createdAt: string;
|
|
3355
|
+
updatedAt: string;
|
|
3356
|
+
deletedAt: string | null;
|
|
3357
|
+
oldId: number | null;
|
|
3358
|
+
note: string | null;
|
|
3359
|
+
paidAt: string;
|
|
3360
|
+
invoiceId: string;
|
|
3361
|
+
amount: number;
|
|
3362
|
+
reference: string | null;
|
|
3363
|
+
};
|
|
3364
|
+
401: "Токен олдсонгүй";
|
|
3365
|
+
403: "Төлбөр бүртгэх эрхгүй байна.";
|
|
3366
|
+
404: "Төлбөрийн баримт олдсонгүй.";
|
|
3367
|
+
422: {
|
|
3368
|
+
type: "validation";
|
|
3369
|
+
on: string;
|
|
3370
|
+
summary?: string;
|
|
3371
|
+
message?: string;
|
|
3372
|
+
found?: unknown;
|
|
3373
|
+
property?: string;
|
|
3374
|
+
expected?: string;
|
|
3375
|
+
};
|
|
3376
|
+
};
|
|
3377
|
+
};
|
|
3378
|
+
};
|
|
3379
|
+
} & {
|
|
3380
|
+
payment: {
|
|
3381
|
+
invoice: {
|
|
3382
|
+
":invoiceId": {
|
|
3383
|
+
get: {
|
|
3384
|
+
body: unknown;
|
|
3385
|
+
params: {
|
|
3386
|
+
invoiceId: string;
|
|
3387
|
+
};
|
|
3388
|
+
query: unknown;
|
|
3389
|
+
headers: unknown;
|
|
3390
|
+
response: {
|
|
3391
|
+
200: {
|
|
3392
|
+
invoiceId: string;
|
|
3393
|
+
amount: number;
|
|
3394
|
+
paidAt: string;
|
|
3395
|
+
reference: string | null;
|
|
3396
|
+
note: string | null;
|
|
3397
|
+
id: string;
|
|
3398
|
+
createdAt: string;
|
|
3399
|
+
updatedAt: string;
|
|
3400
|
+
deletedAt: string | null;
|
|
3401
|
+
oldId: number | null;
|
|
3402
|
+
}[];
|
|
3403
|
+
401: "Токен олдсонгүй";
|
|
3404
|
+
403: "Хандах эрхгүй байна.";
|
|
3405
|
+
404: "Төлбөрийн баримт олдсонгүй.";
|
|
3406
|
+
422: {
|
|
3407
|
+
type: "validation";
|
|
3408
|
+
on: string;
|
|
3409
|
+
summary?: string;
|
|
3410
|
+
message?: string;
|
|
3411
|
+
found?: unknown;
|
|
3412
|
+
property?: string;
|
|
3413
|
+
expected?: string;
|
|
3414
|
+
};
|
|
3415
|
+
};
|
|
3416
|
+
};
|
|
3417
|
+
};
|
|
3418
|
+
};
|
|
3419
|
+
};
|
|
3420
|
+
} & {
|
|
3421
|
+
payment: {
|
|
3422
|
+
":id": {
|
|
3423
|
+
put: {
|
|
3424
|
+
body: {
|
|
3425
|
+
oldId?: number | null | undefined;
|
|
3426
|
+
note?: string | null | undefined;
|
|
3427
|
+
paidAt?: string | undefined;
|
|
3428
|
+
invoiceId?: string | undefined;
|
|
3429
|
+
amount?: number | undefined;
|
|
3430
|
+
reference?: string | null | undefined;
|
|
3431
|
+
};
|
|
3432
|
+
params: {
|
|
3433
|
+
id: string;
|
|
3434
|
+
};
|
|
3435
|
+
query: {};
|
|
3436
|
+
headers: {};
|
|
3437
|
+
response: {
|
|
3438
|
+
200: {
|
|
3439
|
+
invoiceId: string;
|
|
3440
|
+
amount: number;
|
|
3441
|
+
paidAt: string;
|
|
3442
|
+
reference: string | null;
|
|
3443
|
+
note: string | null;
|
|
3444
|
+
id: string;
|
|
3445
|
+
createdAt: string;
|
|
3446
|
+
updatedAt: string;
|
|
3447
|
+
deletedAt: string | null;
|
|
3448
|
+
oldId: number | null;
|
|
3449
|
+
};
|
|
3450
|
+
401: "Токен олдсонгүй";
|
|
3451
|
+
403: "Төлбөр засах эрхгүй байна.";
|
|
3452
|
+
404: "Төлбөрийн баримт олдсонгүй." | "Төлбөрийн төлбөр олдсонгүй.";
|
|
3453
|
+
422: {
|
|
3454
|
+
type: "validation";
|
|
3455
|
+
on: string;
|
|
3456
|
+
summary?: string;
|
|
3457
|
+
message?: string;
|
|
3458
|
+
found?: unknown;
|
|
3459
|
+
property?: string;
|
|
3460
|
+
expected?: string;
|
|
3461
|
+
};
|
|
3462
|
+
};
|
|
3463
|
+
};
|
|
3464
|
+
};
|
|
3465
|
+
};
|
|
3466
|
+
} & {
|
|
3467
|
+
payment: {
|
|
3468
|
+
":id": {
|
|
3469
|
+
delete: {
|
|
3470
|
+
body: {};
|
|
3471
|
+
params: {
|
|
3472
|
+
id: string;
|
|
3473
|
+
};
|
|
3474
|
+
query: {};
|
|
3475
|
+
headers: {};
|
|
3476
|
+
response: {
|
|
3477
|
+
401: "Токен олдсонгүй";
|
|
3478
|
+
403: "Төлбөр устгах эрхгүй байна.";
|
|
3479
|
+
404: "Төлбөрийн баримт олдсонгүй." | "Төлбөрийн төлбөр олдсонгүй.";
|
|
3480
|
+
422: {
|
|
3481
|
+
type: "validation";
|
|
3482
|
+
on: string;
|
|
3483
|
+
summary?: string;
|
|
3484
|
+
message?: string;
|
|
3485
|
+
found?: unknown;
|
|
3486
|
+
property?: string;
|
|
3487
|
+
expected?: string;
|
|
3488
|
+
};
|
|
3489
|
+
};
|
|
3490
|
+
};
|
|
3491
|
+
};
|
|
3492
|
+
};
|
|
3493
|
+
};
|
|
3494
|
+
} & {
|
|
3495
|
+
invoice: {
|
|
3496
|
+
get: {
|
|
3497
|
+
body: unknown;
|
|
3498
|
+
params: {};
|
|
3499
|
+
query: {
|
|
3500
|
+
id?: string | undefined;
|
|
3501
|
+
createdAt?: string | undefined;
|
|
3502
|
+
updatedAt?: string | undefined;
|
|
3503
|
+
companyId?: string | undefined;
|
|
3504
|
+
deletedAt?: string | null | undefined;
|
|
3505
|
+
oldId?: number | null | undefined;
|
|
3506
|
+
basePrice?: number | undefined;
|
|
3507
|
+
note?: string | null | undefined;
|
|
3508
|
+
billingPlanId?: string | undefined;
|
|
3509
|
+
periodStart?: string | undefined;
|
|
3510
|
+
periodEnd?: string | undefined;
|
|
3511
|
+
carCount?: number | undefined;
|
|
3512
|
+
carPrice?: number | undefined;
|
|
3513
|
+
totalPrice?: number | undefined;
|
|
3514
|
+
status?: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED" | undefined;
|
|
3515
|
+
issuedAt?: string | undefined;
|
|
3516
|
+
paidAt?: string | null | undefined;
|
|
3517
|
+
dueAt?: string | undefined;
|
|
3518
|
+
pagination: {
|
|
3519
|
+
size: number;
|
|
3520
|
+
page: number;
|
|
3521
|
+
};
|
|
3522
|
+
};
|
|
3523
|
+
headers: unknown;
|
|
3524
|
+
response: {
|
|
3525
|
+
200: {
|
|
3526
|
+
totalCount: number;
|
|
3527
|
+
totalPage: number;
|
|
3528
|
+
result: Omit<{
|
|
3529
|
+
totalCount: number;
|
|
3530
|
+
companyId: string;
|
|
3531
|
+
billingPlanId: string;
|
|
3532
|
+
periodStart: string;
|
|
3533
|
+
periodEnd: string;
|
|
3534
|
+
carCount: number;
|
|
3535
|
+
basePrice: number;
|
|
3536
|
+
carPrice: number;
|
|
3537
|
+
totalPrice: number;
|
|
3538
|
+
status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
|
|
3539
|
+
issuedAt: string;
|
|
3540
|
+
paidAt: string | null;
|
|
3541
|
+
dueAt: string;
|
|
3542
|
+
note: string | null;
|
|
3543
|
+
id: string;
|
|
3544
|
+
createdAt: string;
|
|
3545
|
+
updatedAt: string;
|
|
3546
|
+
deletedAt: string | null;
|
|
3547
|
+
oldId: number | null;
|
|
3548
|
+
}, "totalCount">[];
|
|
3549
|
+
};
|
|
3550
|
+
401: "Токен олдсонгүй";
|
|
3551
|
+
422: {
|
|
3552
|
+
type: "validation";
|
|
3553
|
+
on: string;
|
|
3554
|
+
summary?: string;
|
|
3555
|
+
message?: string;
|
|
3556
|
+
found?: unknown;
|
|
3557
|
+
property?: string;
|
|
3558
|
+
expected?: string;
|
|
3559
|
+
};
|
|
3560
|
+
};
|
|
3561
|
+
};
|
|
3562
|
+
};
|
|
3563
|
+
} & {
|
|
3564
|
+
invoice: {
|
|
3565
|
+
generate: {
|
|
3566
|
+
post: {
|
|
3567
|
+
body: {
|
|
3568
|
+
carCount?: number | undefined;
|
|
3569
|
+
companyId: string;
|
|
3570
|
+
billingPlanId: string;
|
|
3571
|
+
periodStart: string;
|
|
3572
|
+
};
|
|
3573
|
+
params: {};
|
|
3574
|
+
query: {};
|
|
3575
|
+
headers: {};
|
|
3576
|
+
response: {
|
|
3577
|
+
200: {
|
|
3578
|
+
id: string;
|
|
3579
|
+
createdAt: string;
|
|
3580
|
+
updatedAt: string;
|
|
3581
|
+
companyId: string;
|
|
3582
|
+
deletedAt: string | null;
|
|
3583
|
+
oldId: number | null;
|
|
3584
|
+
basePrice: number;
|
|
3585
|
+
note: string | null;
|
|
3586
|
+
billingPlanId: string;
|
|
3587
|
+
periodStart: string;
|
|
3588
|
+
periodEnd: string;
|
|
3589
|
+
carCount: number;
|
|
3590
|
+
carPrice: number;
|
|
3591
|
+
totalPrice: number;
|
|
3592
|
+
status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
|
|
3593
|
+
issuedAt: string;
|
|
3594
|
+
paidAt: string | null;
|
|
3595
|
+
dueAt: string;
|
|
3596
|
+
};
|
|
3597
|
+
401: "Токен олдсонгүй";
|
|
3598
|
+
403: "Төлбөрийн баримт үүсгэх эрхгүй байна.";
|
|
3599
|
+
404: "Төлбөрийн төлөвлөгөө олдсонгүй.";
|
|
3600
|
+
422: {
|
|
3601
|
+
type: "validation";
|
|
3602
|
+
on: string;
|
|
3603
|
+
summary?: string;
|
|
3604
|
+
message?: string;
|
|
3605
|
+
found?: unknown;
|
|
3606
|
+
property?: string;
|
|
3607
|
+
expected?: string;
|
|
3608
|
+
};
|
|
3609
|
+
};
|
|
3610
|
+
};
|
|
3611
|
+
};
|
|
3612
|
+
};
|
|
3613
|
+
} & {
|
|
3614
|
+
invoice: {
|
|
3615
|
+
post: {
|
|
3616
|
+
body: {
|
|
3617
|
+
oldId?: number | null | undefined;
|
|
3618
|
+
note?: string | null | undefined;
|
|
3619
|
+
status?: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED" | undefined;
|
|
3620
|
+
paidAt?: string | null | undefined;
|
|
3621
|
+
companyId: string;
|
|
3622
|
+
basePrice: number;
|
|
3623
|
+
billingPlanId: string;
|
|
3624
|
+
periodStart: string;
|
|
3625
|
+
periodEnd: string;
|
|
3626
|
+
carCount: number;
|
|
3627
|
+
carPrice: number;
|
|
3628
|
+
totalPrice: number;
|
|
3629
|
+
issuedAt: string;
|
|
3630
|
+
dueAt: string;
|
|
3631
|
+
};
|
|
3632
|
+
params: {};
|
|
3633
|
+
query: {};
|
|
3634
|
+
headers: {};
|
|
3635
|
+
response: {
|
|
3636
|
+
200: {
|
|
3637
|
+
id: string;
|
|
3638
|
+
createdAt: string;
|
|
3639
|
+
updatedAt: string;
|
|
3640
|
+
companyId: string;
|
|
3641
|
+
deletedAt: string | null;
|
|
3642
|
+
oldId: number | null;
|
|
3643
|
+
basePrice: number;
|
|
3644
|
+
note: string | null;
|
|
3645
|
+
billingPlanId: string;
|
|
3646
|
+
periodStart: string;
|
|
3647
|
+
periodEnd: string;
|
|
3648
|
+
carCount: number;
|
|
3649
|
+
carPrice: number;
|
|
3650
|
+
totalPrice: number;
|
|
3651
|
+
status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
|
|
3652
|
+
issuedAt: string;
|
|
3653
|
+
paidAt: string | null;
|
|
3654
|
+
dueAt: string;
|
|
3655
|
+
};
|
|
3656
|
+
401: "Токен олдсонгүй";
|
|
3657
|
+
403: "Төлбөрийн баримт үүсгэх эрхгүй байна.";
|
|
3658
|
+
422: {
|
|
3659
|
+
type: "validation";
|
|
3660
|
+
on: string;
|
|
3661
|
+
summary?: string;
|
|
3662
|
+
message?: string;
|
|
3663
|
+
found?: unknown;
|
|
3664
|
+
property?: string;
|
|
3665
|
+
expected?: string;
|
|
3666
|
+
};
|
|
3667
|
+
};
|
|
3668
|
+
};
|
|
3669
|
+
};
|
|
3670
|
+
} & {
|
|
3671
|
+
invoice: {
|
|
3672
|
+
":id": {
|
|
3673
|
+
put: {
|
|
3674
|
+
body: {
|
|
3675
|
+
companyId?: string | undefined;
|
|
3676
|
+
oldId?: number | null | undefined;
|
|
3677
|
+
basePrice?: number | undefined;
|
|
3678
|
+
note?: string | null | undefined;
|
|
3679
|
+
billingPlanId?: string | undefined;
|
|
3680
|
+
periodStart?: string | undefined;
|
|
3681
|
+
periodEnd?: string | undefined;
|
|
3682
|
+
carCount?: number | undefined;
|
|
3683
|
+
carPrice?: number | undefined;
|
|
3684
|
+
totalPrice?: number | undefined;
|
|
3685
|
+
status?: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED" | undefined;
|
|
3686
|
+
issuedAt?: string | undefined;
|
|
3687
|
+
paidAt?: string | null | undefined;
|
|
3688
|
+
dueAt?: string | undefined;
|
|
3689
|
+
};
|
|
3690
|
+
params: {
|
|
3691
|
+
id: string;
|
|
3692
|
+
};
|
|
3693
|
+
query: {};
|
|
3694
|
+
headers: {};
|
|
3695
|
+
response: {
|
|
3696
|
+
200: {
|
|
3697
|
+
companyId: string;
|
|
3698
|
+
billingPlanId: string;
|
|
3699
|
+
periodStart: string;
|
|
3700
|
+
periodEnd: string;
|
|
3701
|
+
carCount: number;
|
|
3702
|
+
basePrice: number;
|
|
3703
|
+
carPrice: number;
|
|
3704
|
+
totalPrice: number;
|
|
3705
|
+
status: "PENDING" | "PAID" | "OVERDUE" | "CANCELLED";
|
|
3706
|
+
issuedAt: string;
|
|
3707
|
+
paidAt: string | null;
|
|
3708
|
+
dueAt: string;
|
|
3709
|
+
note: string | null;
|
|
3710
|
+
id: string;
|
|
3711
|
+
createdAt: string;
|
|
3712
|
+
updatedAt: string;
|
|
3713
|
+
deletedAt: string | null;
|
|
3714
|
+
oldId: number | null;
|
|
3715
|
+
};
|
|
3716
|
+
401: "Токен олдсонгүй";
|
|
3717
|
+
404: "Төлбөрийн баримт олдсонгүй.";
|
|
3718
|
+
422: {
|
|
3719
|
+
type: "validation";
|
|
3720
|
+
on: string;
|
|
3721
|
+
summary?: string;
|
|
3722
|
+
message?: string;
|
|
3723
|
+
found?: unknown;
|
|
3724
|
+
property?: string;
|
|
3725
|
+
expected?: string;
|
|
3726
|
+
};
|
|
3727
|
+
};
|
|
3728
|
+
};
|
|
3729
|
+
};
|
|
3730
|
+
};
|
|
3731
|
+
} & {
|
|
3732
|
+
invoice: {
|
|
3733
|
+
":id": {
|
|
3734
|
+
delete: {
|
|
3735
|
+
body: {};
|
|
3736
|
+
params: {
|
|
3737
|
+
id: string;
|
|
3738
|
+
};
|
|
3739
|
+
query: {};
|
|
3740
|
+
headers: {};
|
|
3741
|
+
response: {
|
|
3742
|
+
401: "Токен олдсонгүй";
|
|
3743
|
+
422: {
|
|
3744
|
+
type: "validation";
|
|
3745
|
+
on: string;
|
|
3746
|
+
summary?: string;
|
|
3747
|
+
message?: string;
|
|
3748
|
+
found?: unknown;
|
|
3749
|
+
property?: string;
|
|
3750
|
+
expected?: string;
|
|
3751
|
+
};
|
|
3752
|
+
};
|
|
3753
|
+
};
|
|
3754
|
+
};
|
|
3755
|
+
};
|
|
3756
|
+
};
|
|
3105
3757
|
};
|
|
3106
3758
|
} & {
|
|
3107
3759
|
api: {
|
|
@@ -9215,6 +9867,44 @@ export declare const app: Elysia<"", {
|
|
|
9215
9867
|
};
|
|
9216
9868
|
};
|
|
9217
9869
|
};
|
|
9870
|
+
} & {
|
|
9871
|
+
template: {
|
|
9872
|
+
field: {
|
|
9873
|
+
":id": {
|
|
9874
|
+
put: {
|
|
9875
|
+
body: {
|
|
9876
|
+
required?: boolean | undefined;
|
|
9877
|
+
code?: string | null | undefined;
|
|
9878
|
+
oldId?: number | null | undefined;
|
|
9879
|
+
description?: string | null | undefined;
|
|
9880
|
+
metadata?: import("drizzle-typebox").Json | undefined;
|
|
9881
|
+
fieldGroup?: string | null | undefined;
|
|
9882
|
+
sortIndex?: number | null | undefined;
|
|
9883
|
+
templateId?: string | undefined;
|
|
9884
|
+
fieldGroupId?: string | null | undefined;
|
|
9885
|
+
fieldId?: string | null | undefined;
|
|
9886
|
+
fieldType?: "BOOLEAN" | "NUMERIC" | "TEXT" | "DATE" | "RATE" | "MULTI_CHOICE" | undefined;
|
|
9887
|
+
};
|
|
9888
|
+
params: {
|
|
9889
|
+
id: string;
|
|
9890
|
+
};
|
|
9891
|
+
query: unknown;
|
|
9892
|
+
headers: unknown;
|
|
9893
|
+
response: {
|
|
9894
|
+
422: {
|
|
9895
|
+
type: "validation";
|
|
9896
|
+
on: string;
|
|
9897
|
+
summary?: string;
|
|
9898
|
+
message?: string;
|
|
9899
|
+
found?: unknown;
|
|
9900
|
+
property?: string;
|
|
9901
|
+
expected?: string;
|
|
9902
|
+
};
|
|
9903
|
+
};
|
|
9904
|
+
};
|
|
9905
|
+
};
|
|
9906
|
+
};
|
|
9907
|
+
};
|
|
9218
9908
|
} & {
|
|
9219
9909
|
template: {
|
|
9220
9910
|
":id": {
|
|
@@ -10138,6 +10828,249 @@ export declare const app: Elysia<"", {
|
|
|
10138
10828
|
};
|
|
10139
10829
|
};
|
|
10140
10830
|
};
|
|
10831
|
+
} & {
|
|
10832
|
+
fleet: {
|
|
10833
|
+
ms: {
|
|
10834
|
+
record: {
|
|
10835
|
+
product: {};
|
|
10836
|
+
} & {
|
|
10837
|
+
product: {
|
|
10838
|
+
get: {
|
|
10839
|
+
body: unknown;
|
|
10840
|
+
params: {};
|
|
10841
|
+
query: {
|
|
10842
|
+
recordId: string;
|
|
10843
|
+
};
|
|
10844
|
+
headers: unknown;
|
|
10845
|
+
response: {
|
|
10846
|
+
200: {
|
|
10847
|
+
msRecordId: string;
|
|
10848
|
+
companyProductId: string;
|
|
10849
|
+
uomId: string;
|
|
10850
|
+
quantity: number | null;
|
|
10851
|
+
id: string;
|
|
10852
|
+
createdAt: string;
|
|
10853
|
+
updatedAt: string;
|
|
10854
|
+
deletedAt: string | null;
|
|
10855
|
+
oldId: number | null;
|
|
10856
|
+
}[];
|
|
10857
|
+
401: "Токен олдсонгүй";
|
|
10858
|
+
422: {
|
|
10859
|
+
type: "validation";
|
|
10860
|
+
on: string;
|
|
10861
|
+
summary?: string;
|
|
10862
|
+
message?: string;
|
|
10863
|
+
found?: unknown;
|
|
10864
|
+
property?: string;
|
|
10865
|
+
expected?: string;
|
|
10866
|
+
};
|
|
10867
|
+
};
|
|
10868
|
+
};
|
|
10869
|
+
};
|
|
10870
|
+
} & {
|
|
10871
|
+
product: {
|
|
10872
|
+
post: {
|
|
10873
|
+
body: unknown;
|
|
10874
|
+
params: {};
|
|
10875
|
+
query: unknown;
|
|
10876
|
+
headers: unknown;
|
|
10877
|
+
response: {
|
|
10878
|
+
401: "Токен олдсонгүй";
|
|
10879
|
+
};
|
|
10880
|
+
};
|
|
10881
|
+
};
|
|
10882
|
+
} & {
|
|
10883
|
+
product: {
|
|
10884
|
+
":id": {
|
|
10885
|
+
put: {
|
|
10886
|
+
body: unknown;
|
|
10887
|
+
params: {
|
|
10888
|
+
id: string;
|
|
10889
|
+
};
|
|
10890
|
+
query: unknown;
|
|
10891
|
+
headers: unknown;
|
|
10892
|
+
response: {
|
|
10893
|
+
401: "Токен олдсонгүй";
|
|
10894
|
+
422: {
|
|
10895
|
+
type: "validation";
|
|
10896
|
+
on: string;
|
|
10897
|
+
summary?: string;
|
|
10898
|
+
message?: string;
|
|
10899
|
+
found?: unknown;
|
|
10900
|
+
property?: string;
|
|
10901
|
+
expected?: string;
|
|
10902
|
+
};
|
|
10903
|
+
};
|
|
10904
|
+
};
|
|
10905
|
+
};
|
|
10906
|
+
};
|
|
10907
|
+
} & {
|
|
10908
|
+
product: {
|
|
10909
|
+
":id": {
|
|
10910
|
+
delete: {
|
|
10911
|
+
body: unknown;
|
|
10912
|
+
params: {
|
|
10913
|
+
id: string;
|
|
10914
|
+
};
|
|
10915
|
+
query: unknown;
|
|
10916
|
+
headers: unknown;
|
|
10917
|
+
response: {
|
|
10918
|
+
401: "Токен олдсонгүй";
|
|
10919
|
+
422: {
|
|
10920
|
+
type: "validation";
|
|
10921
|
+
on: string;
|
|
10922
|
+
summary?: string;
|
|
10923
|
+
message?: string;
|
|
10924
|
+
found?: unknown;
|
|
10925
|
+
property?: string;
|
|
10926
|
+
expected?: string;
|
|
10927
|
+
};
|
|
10928
|
+
};
|
|
10929
|
+
};
|
|
10930
|
+
};
|
|
10931
|
+
};
|
|
10932
|
+
};
|
|
10933
|
+
} & {
|
|
10934
|
+
record: {};
|
|
10935
|
+
} & {
|
|
10936
|
+
record: {
|
|
10937
|
+
get: {
|
|
10938
|
+
body: unknown;
|
|
10939
|
+
params: {};
|
|
10940
|
+
query: {
|
|
10941
|
+
pagination: {
|
|
10942
|
+
size: number;
|
|
10943
|
+
page: number;
|
|
10944
|
+
};
|
|
10945
|
+
};
|
|
10946
|
+
headers: unknown;
|
|
10947
|
+
response: {
|
|
10948
|
+
200: {
|
|
10949
|
+
totalCount: number;
|
|
10950
|
+
totalPage: number;
|
|
10951
|
+
result: Omit<{
|
|
10952
|
+
totalCount: number;
|
|
10953
|
+
machineId: string;
|
|
10954
|
+
serviceKindId: string;
|
|
10955
|
+
pmPlanId: string | null;
|
|
10956
|
+
pmPlanMachineId: string | null;
|
|
10957
|
+
employeeTechnicianId: string;
|
|
10958
|
+
state: string;
|
|
10959
|
+
note: string | null;
|
|
10960
|
+
timeCompleted: Date | null;
|
|
10961
|
+
id: string;
|
|
10962
|
+
createdAt: string;
|
|
10963
|
+
updatedAt: string;
|
|
10964
|
+
deletedAt: string | null;
|
|
10965
|
+
oldId: number | null;
|
|
10966
|
+
}, "totalCount">[];
|
|
10967
|
+
};
|
|
10968
|
+
401: "Токен олдсонгүй";
|
|
10969
|
+
422: {
|
|
10970
|
+
type: "validation";
|
|
10971
|
+
on: string;
|
|
10972
|
+
summary?: string;
|
|
10973
|
+
message?: string;
|
|
10974
|
+
found?: unknown;
|
|
10975
|
+
property?: string;
|
|
10976
|
+
expected?: string;
|
|
10977
|
+
};
|
|
10978
|
+
};
|
|
10979
|
+
};
|
|
10980
|
+
};
|
|
10981
|
+
} & {
|
|
10982
|
+
record: {
|
|
10983
|
+
post: {
|
|
10984
|
+
body: {
|
|
10985
|
+
oldId?: number | null | undefined;
|
|
10986
|
+
note?: string | null | undefined;
|
|
10987
|
+
timeCompleted?: Date | null | undefined;
|
|
10988
|
+
pmPlanId?: string | null | undefined;
|
|
10989
|
+
pmPlanMachineId?: string | null | undefined;
|
|
10990
|
+
serviceKindId: string;
|
|
10991
|
+
state: string;
|
|
10992
|
+
machineId: string;
|
|
10993
|
+
employeeTechnicianId: string;
|
|
10994
|
+
};
|
|
10995
|
+
params: {};
|
|
10996
|
+
query: unknown;
|
|
10997
|
+
headers: unknown;
|
|
10998
|
+
response: {
|
|
10999
|
+
401: "Токен олдсонгүй";
|
|
11000
|
+
422: {
|
|
11001
|
+
type: "validation";
|
|
11002
|
+
on: string;
|
|
11003
|
+
summary?: string;
|
|
11004
|
+
message?: string;
|
|
11005
|
+
found?: unknown;
|
|
11006
|
+
property?: string;
|
|
11007
|
+
expected?: string;
|
|
11008
|
+
};
|
|
11009
|
+
};
|
|
11010
|
+
};
|
|
11011
|
+
};
|
|
11012
|
+
} & {
|
|
11013
|
+
record: {
|
|
11014
|
+
":id": {
|
|
11015
|
+
put: {
|
|
11016
|
+
body: {
|
|
11017
|
+
oldId?: number | null | undefined;
|
|
11018
|
+
serviceKindId?: string | undefined;
|
|
11019
|
+
note?: string | null | undefined;
|
|
11020
|
+
state?: string | undefined;
|
|
11021
|
+
timeCompleted?: Date | null | undefined;
|
|
11022
|
+
machineId?: string | undefined;
|
|
11023
|
+
pmPlanId?: string | null | undefined;
|
|
11024
|
+
pmPlanMachineId?: string | null | undefined;
|
|
11025
|
+
employeeTechnicianId?: string | undefined;
|
|
11026
|
+
};
|
|
11027
|
+
params: {
|
|
11028
|
+
id: string;
|
|
11029
|
+
};
|
|
11030
|
+
query: unknown;
|
|
11031
|
+
headers: unknown;
|
|
11032
|
+
response: {
|
|
11033
|
+
401: "Токен олдсонгүй";
|
|
11034
|
+
422: {
|
|
11035
|
+
type: "validation";
|
|
11036
|
+
on: string;
|
|
11037
|
+
summary?: string;
|
|
11038
|
+
message?: string;
|
|
11039
|
+
found?: unknown;
|
|
11040
|
+
property?: string;
|
|
11041
|
+
expected?: string;
|
|
11042
|
+
};
|
|
11043
|
+
};
|
|
11044
|
+
};
|
|
11045
|
+
};
|
|
11046
|
+
};
|
|
11047
|
+
} & {
|
|
11048
|
+
record: {
|
|
11049
|
+
":id": {
|
|
11050
|
+
delete: {
|
|
11051
|
+
body: unknown;
|
|
11052
|
+
params: {
|
|
11053
|
+
id: string;
|
|
11054
|
+
};
|
|
11055
|
+
query: unknown;
|
|
11056
|
+
headers: unknown;
|
|
11057
|
+
response: {
|
|
11058
|
+
401: "Токен олдсонгүй";
|
|
11059
|
+
422: {
|
|
11060
|
+
type: "validation";
|
|
11061
|
+
on: string;
|
|
11062
|
+
summary?: string;
|
|
11063
|
+
message?: string;
|
|
11064
|
+
found?: unknown;
|
|
11065
|
+
property?: string;
|
|
11066
|
+
expected?: string;
|
|
11067
|
+
};
|
|
11068
|
+
};
|
|
11069
|
+
};
|
|
11070
|
+
};
|
|
11071
|
+
};
|
|
11072
|
+
};
|
|
11073
|
+
};
|
|
10141
11074
|
};
|
|
10142
11075
|
} & {
|
|
10143
11076
|
api: {
|