autosync_backend2 1.1.25 → 1.1.27

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +110 -191
  2. package/dist/index.js +607 -650
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -311,34 +311,20 @@ export declare const app: Elysia<"", {
311
311
  userId: import("@sinclair/typebox").TString;
312
312
  permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
313
313
  }>;
314
- readonly "CrmCpOrderServiceModel.create": import("@sinclair/typebox").TObject<{
314
+ readonly "CrmCpOrderItemModel.create": import("@sinclair/typebox").TObject<{
315
315
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
316
- quantity: import("@sinclair/typebox").TInteger;
317
- cpOrderId: import("@sinclair/typebox").TString;
318
- cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
319
- companyServiceKindId: import("@sinclair/typebox").TString;
320
- priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
321
- }>;
322
- readonly "CrmCpOrderServiceModel.update": import("@sinclair/typebox").TObject<{
323
- quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
324
- priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
325
- }>;
326
- readonly "CrmCpOrderServiceModel.select": import("@sinclair/typebox").TObject<{
327
316
  cpOrderId: import("@sinclair/typebox").TString;
328
- }>;
329
- readonly "CrmCpOrderProductModel.create": import("@sinclair/typebox").TObject<{
330
- name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
331
317
  quantity: import("@sinclair/typebox").TInteger;
332
- companyProductId: import("@sinclair/typebox").TString;
333
- cpOrderId: import("@sinclair/typebox").TString;
318
+ companyProductId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
319
+ companyServiceKindId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
334
320
  cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
335
321
  priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
336
322
  }>;
337
- readonly "CrmCpOrderProductModel.update": import("@sinclair/typebox").TObject<{
323
+ readonly "CrmCpOrderItemModel.update": import("@sinclair/typebox").TObject<{
338
324
  quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
339
325
  priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
340
326
  }>;
341
- readonly "CrmCpOrderProductModel.select": import("@sinclair/typebox").TObject<{
327
+ readonly "CrmCpOrderItemModel.select": import("@sinclair/typebox").TObject<{
342
328
  cpOrderId: import("@sinclair/typebox").TString;
343
329
  }>;
344
330
  readonly "CrmCpOrderPaymentModel.create": import("@sinclair/typebox").TObject<{
@@ -491,6 +477,14 @@ export declare const app: Elysia<"", {
491
477
  phoneNumber: import("@sinclair/typebox").TString;
492
478
  regNum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
493
479
  }>;
480
+ readonly "CrmCustomerModel.update": import("@sinclair/typebox").TObject<{
481
+ email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
482
+ companyId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
483
+ firstname: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
484
+ lastname: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
485
+ phoneNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
486
+ regNum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
487
+ }>;
494
488
  readonly "CrmCustomerModel.select": import("@sinclair/typebox").TObject<{
495
489
  phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
496
490
  pagination: import("@sinclair/typebox").TObject<{
@@ -3208,9 +3202,9 @@ export declare const app: Elysia<"", {
3208
3202
  "cp-order": {};
3209
3203
  } & {
3210
3204
  "cp-order": {
3211
- service: {};
3205
+ item: {};
3212
3206
  } & {
3213
- service: {
3207
+ item: {
3214
3208
  get: {
3215
3209
  body: unknown;
3216
3210
  params: {};
@@ -3232,158 +3226,11 @@ export declare const app: Elysia<"", {
3232
3226
  createdAt: string;
3233
3227
  updatedAt: string;
3234
3228
  deletedAt: string | null;
3235
- };
3236
- cp_order_service: {
3237
- cpOrderId: string;
3238
- cpOrderSpPackageId: string | null;
3239
- companyServiceKindId: string;
3240
- quantity: number;
3241
- priceUnit: number;
3242
- priceTotal: number;
3243
- name: string | null;
3244
- id: string;
3245
- createdAt: string;
3246
- updatedAt: string;
3247
- deletedAt: string | null;
3248
- };
3249
- }[];
3250
- 422: {
3251
- type: "validation";
3252
- on: string;
3253
- summary?: string;
3254
- message?: string;
3255
- found?: unknown;
3256
- property?: string;
3257
- expected?: string;
3258
- };
3259
- };
3260
- };
3261
- };
3262
- } & {
3263
- service: {
3264
- post: {
3265
- body: {
3266
- name?: string | null | undefined;
3267
- priceUnit?: number | undefined;
3268
- cpOrderSpPackageId?: string | null | undefined;
3269
- quantity: number;
3270
- cpOrderId: string;
3271
- companyServiceKindId: string;
3272
- };
3273
- params: {};
3274
- query: unknown;
3275
- headers: unknown;
3276
- response: {
3277
- 200: {
3278
- name: string | null;
3279
- id: string;
3280
- createdAt: string;
3281
- updatedAt: string;
3282
- deletedAt: string | null;
3283
- priceTotal: number;
3284
- quantity: number;
3285
- priceUnit: number;
3286
- cpOrderId: string;
3287
- cpOrderSpPackageId: string | null;
3288
- companyServiceKindId: string;
3289
- };
3290
- 404: "Үйлчилгээний төрөл олдсонгүй.";
3291
- 422: {
3292
- type: "validation";
3293
- on: string;
3294
- summary?: string;
3295
- message?: string;
3296
- found?: unknown;
3297
- property?: string;
3298
- expected?: string;
3299
- };
3300
- };
3301
- };
3302
- };
3303
- } & {
3304
- service: {
3305
- ":id": {
3306
- put: {
3307
- body: {
3308
- quantity?: number | undefined;
3309
- priceUnit?: number | undefined;
3310
- };
3311
- params: {
3312
- id: string;
3313
- };
3314
- query: unknown;
3315
- headers: unknown;
3316
- response: {
3317
- 200: {
3318
- cpOrderId: string;
3319
- cpOrderSpPackageId: string | null;
3320
- companyServiceKindId: string;
3321
- quantity: number;
3322
- priceUnit: number;
3323
- priceTotal: number;
3324
- name: string | null;
3325
- id: string;
3326
- createdAt: string;
3327
- updatedAt: string;
3328
- deletedAt: string | null;
3329
- };
3330
- 404: "Үйлчилгээ олдсонгүй.";
3331
- 422: {
3332
- type: "validation";
3333
- on: string;
3334
- summary?: string;
3335
- message?: string;
3336
- found?: unknown;
3337
- property?: string;
3338
- expected?: string;
3339
- };
3340
- };
3341
- };
3342
- };
3343
- };
3344
- } & {
3345
- service: {
3346
- ":id": {
3347
- delete: {
3348
- body: unknown;
3349
- params: {
3350
- id: string;
3351
- };
3352
- query: unknown;
3353
- headers: unknown;
3354
- response: {
3355
- 200: void;
3356
- 422: {
3357
- type: "validation";
3358
- on: string;
3359
- summary?: string;
3360
- message?: string;
3361
- found?: unknown;
3362
- property?: string;
3363
- expected?: string;
3364
- };
3365
- };
3366
- };
3367
- };
3368
- };
3369
- };
3370
- } & {
3371
- "cp-order": {
3372
- product: {};
3373
- } & {
3374
- product: {
3375
- get: {
3376
- body: unknown;
3377
- params: {};
3378
- query: {
3379
- cpOrderId: string;
3380
- };
3381
- headers: unknown;
3382
- response: {
3383
- 200: {
3384
- cp_order_product: {
3229
+ } | null;
3230
+ cp_order_item: {
3385
3231
  cpOrderId: string;
3386
- companyProductId: string;
3232
+ companyProductId: string | null;
3233
+ companyServiceKindId: string | null;
3387
3234
  cpOrderSpPackageId: string | null;
3388
3235
  quantity: number;
3389
3236
  priceUnit: number;
@@ -3411,7 +3258,7 @@ export declare const app: Elysia<"", {
3411
3258
  createdAt: string;
3412
3259
  updatedAt: string;
3413
3260
  deletedAt: string | null;
3414
- };
3261
+ } | null;
3415
3262
  }[];
3416
3263
  422: {
3417
3264
  type: "validation";
@@ -3426,14 +3273,15 @@ export declare const app: Elysia<"", {
3426
3273
  };
3427
3274
  };
3428
3275
  } & {
3429
- product: {
3276
+ item: {
3430
3277
  post: {
3431
3278
  body: {
3432
3279
  name?: string | null | undefined;
3433
3280
  priceUnit?: number | undefined;
3281
+ companyProductId?: string | null | undefined;
3282
+ companyServiceKindId?: string | null | undefined;
3434
3283
  cpOrderSpPackageId?: string | null | undefined;
3435
3284
  quantity: number;
3436
- companyProductId: string;
3437
3285
  cpOrderId: string;
3438
3286
  };
3439
3287
  params: {};
@@ -3449,11 +3297,13 @@ export declare const app: Elysia<"", {
3449
3297
  priceTotal: number;
3450
3298
  quantity: number;
3451
3299
  priceUnit: number;
3452
- companyProductId: string;
3300
+ companyProductId: string | null;
3453
3301
  cpOrderId: string;
3302
+ companyServiceKindId: string | null;
3454
3303
  cpOrderSpPackageId: string | null;
3455
3304
  };
3456
- 404: "Бараа олдсонгүй.";
3305
+ 404: "Бараа олдсонгүй." | "Үйлчилгээний төрөл олдсонгүй.";
3306
+ 400: "Үйлчилгээний төрөл эсвэл бараа сонгоно уу.";
3457
3307
  422: {
3458
3308
  type: "validation";
3459
3309
  on: string;
@@ -3467,7 +3317,7 @@ export declare const app: Elysia<"", {
3467
3317
  };
3468
3318
  };
3469
3319
  } & {
3470
- product: {
3320
+ item: {
3471
3321
  ":id": {
3472
3322
  put: {
3473
3323
  body: {
@@ -3482,7 +3332,8 @@ export declare const app: Elysia<"", {
3482
3332
  response: {
3483
3333
  200: {
3484
3334
  cpOrderId: string;
3485
- companyProductId: string;
3335
+ companyProductId: string | null;
3336
+ companyServiceKindId: string | null;
3486
3337
  cpOrderSpPackageId: string | null;
3487
3338
  quantity: number;
3488
3339
  priceUnit: number;
@@ -3493,7 +3344,7 @@ export declare const app: Elysia<"", {
3493
3344
  updatedAt: string;
3494
3345
  deletedAt: string | null;
3495
3346
  };
3496
- 404: "Барааны захиалга олдсонгүй.";
3347
+ 404: "Үйлчилгээ олдсонгүй.";
3497
3348
  422: {
3498
3349
  type: "validation";
3499
3350
  on: string;
@@ -3508,7 +3359,7 @@ export declare const app: Elysia<"", {
3508
3359
  };
3509
3360
  };
3510
3361
  } & {
3511
- product: {
3362
+ item: {
3512
3363
  ":id": {
3513
3364
  delete: {
3514
3365
  body: unknown;
@@ -4847,16 +4698,40 @@ export declare const app: Elysia<"", {
4847
4698
  totalCount: number;
4848
4699
  totalPage: number;
4849
4700
  result: {
4850
- companyId: string | null;
4851
- firstname: string | null;
4852
- lastname: string | null;
4853
- phoneNumber: string;
4854
- email: string | null;
4855
- regNum: string | null;
4856
- id: string;
4857
- createdAt: string;
4858
- updatedAt: string;
4859
- deletedAt: string | null;
4701
+ customer: {
4702
+ companyId: string | null;
4703
+ firstname: string | null;
4704
+ lastname: string | null;
4705
+ phoneNumber: string;
4706
+ email: string | null;
4707
+ regNum: string | null;
4708
+ id: string;
4709
+ createdAt: string;
4710
+ updatedAt: string;
4711
+ deletedAt: string | null;
4712
+ };
4713
+ vehicles: {
4714
+ id: string;
4715
+ createdAt: string;
4716
+ updatedAt: string;
4717
+ deletedAt: string | null;
4718
+ customerId: string | null;
4719
+ vehicleKindId: string;
4720
+ vin: string | null;
4721
+ licensePlate: string | null;
4722
+ color: string | null;
4723
+ engineCc: string | null;
4724
+ cylinder: string | null;
4725
+ gasType: string | null;
4726
+ transmissionType: string | null;
4727
+ vehicleType: string | null;
4728
+ yearManufacture: number | null;
4729
+ yearImport: number | null;
4730
+ steering: string | null;
4731
+ engineCode: string | null;
4732
+ transmissionCode: string | null;
4733
+ driveTrain: string | null;
4734
+ }[];
4860
4735
  }[];
4861
4736
  };
4862
4737
  422: {
@@ -4871,6 +4746,50 @@ export declare const app: Elysia<"", {
4871
4746
  };
4872
4747
  };
4873
4748
  };
4749
+ } & {
4750
+ customer: {
4751
+ ":id": {
4752
+ put: {
4753
+ body: {
4754
+ email?: string | null | undefined;
4755
+ companyId?: string | null | undefined;
4756
+ firstname?: string | null | undefined;
4757
+ lastname?: string | null | undefined;
4758
+ phoneNumber?: string | undefined;
4759
+ regNum?: string | null | undefined;
4760
+ };
4761
+ params: {
4762
+ id: string;
4763
+ };
4764
+ query: unknown;
4765
+ headers: unknown;
4766
+ response: {
4767
+ 200: {
4768
+ companyId: string | null;
4769
+ firstname: string | null;
4770
+ lastname: string | null;
4771
+ phoneNumber: string;
4772
+ email: string | null;
4773
+ regNum: string | null;
4774
+ id: string;
4775
+ createdAt: string;
4776
+ updatedAt: string;
4777
+ deletedAt: string | null;
4778
+ };
4779
+ 404: "Хэрэглэгч олдсонгүй.";
4780
+ 422: {
4781
+ type: "validation";
4782
+ on: string;
4783
+ summary?: string;
4784
+ message?: string;
4785
+ found?: unknown;
4786
+ property?: string;
4787
+ expected?: string;
4788
+ };
4789
+ };
4790
+ };
4791
+ };
4792
+ };
4874
4793
  };
4875
4794
  };
4876
4795
  } & {