autosync_backend2 1.1.12 → 1.1.14

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 +415 -313
  2. package/dist/index.js +995 -780
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -311,6 +311,36 @@ 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<{
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
+ 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
+ quantity: import("@sinclair/typebox").TInteger;
332
+ companyProductId: import("@sinclair/typebox").TString;
333
+ cpOrderId: import("@sinclair/typebox").TString;
334
+ cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
335
+ priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
336
+ }>;
337
+ readonly "CrmCpOrderProductModel.update": import("@sinclair/typebox").TObject<{
338
+ quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
339
+ priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
340
+ }>;
341
+ readonly "CrmCpOrderProductModel.select": import("@sinclair/typebox").TObject<{
342
+ cpOrderId: import("@sinclair/typebox").TString;
343
+ }>;
314
344
  readonly "CrmCpOrderModel.create": import("@sinclair/typebox").TObject<{
315
345
  phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
316
346
  vin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -338,13 +368,6 @@ declare const app: Elysia<"", {
338
368
  model: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
339
369
  }>;
340
370
  readonly "CrmSpPackageServiceModel.create": import("@sinclair/typebox").TObject<{
341
- name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
342
- quantity: import("@sinclair/typebox").TInteger;
343
- cpOrderId: import("@sinclair/typebox").TString;
344
- cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
345
- companyServiceKindId: import("@sinclair/typebox").TString;
346
- priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
347
- }> & import("@sinclair/typebox").TObject<{
348
371
  quantity: import("@sinclair/typebox").TInteger;
349
372
  priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
350
373
  spPackageId: import("@sinclair/typebox").TString;
@@ -352,9 +375,6 @@ declare const app: Elysia<"", {
352
375
  priceUnit: import("@sinclair/typebox").TNumber;
353
376
  }>;
354
377
  readonly "CrmSpPackageServiceModel.update": import("@sinclair/typebox").TObject<{
355
- quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
356
- priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
357
- }> & import("@sinclair/typebox").TObject<{
358
378
  quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
359
379
  priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
360
380
  spPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -362,18 +382,9 @@ declare const app: Elysia<"", {
362
382
  priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
363
383
  }>;
364
384
  readonly "CrmSpPackageServiceModel.select": import("@sinclair/typebox").TObject<{
365
- cpOrderId: import("@sinclair/typebox").TString;
366
- }> & import("@sinclair/typebox").TObject<{
367
385
  spPackageId: import("@sinclair/typebox").TString;
368
386
  }>;
369
387
  readonly "CrmSpPackageProductModel.create": import("@sinclair/typebox").TObject<{
370
- name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
371
- quantity: import("@sinclair/typebox").TInteger;
372
- companyProductId: import("@sinclair/typebox").TString;
373
- cpOrderId: import("@sinclair/typebox").TString;
374
- cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
375
- priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
376
- }> & import("@sinclair/typebox").TObject<{
377
388
  quantity: import("@sinclair/typebox").TInteger;
378
389
  priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
379
390
  spPackageId: import("@sinclair/typebox").TString;
@@ -381,9 +392,6 @@ declare const app: Elysia<"", {
381
392
  companyProductId: import("@sinclair/typebox").TString;
382
393
  }>;
383
394
  readonly "CrmSpPackageProductModel.update": import("@sinclair/typebox").TObject<{
384
- quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
385
- priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
386
- }> & import("@sinclair/typebox").TObject<{
387
395
  quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
388
396
  priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
389
397
  spPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -391,8 +399,6 @@ declare const app: Elysia<"", {
391
399
  companyProductId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
392
400
  }>;
393
401
  readonly "CrmSpPackageProductModel.select": import("@sinclair/typebox").TObject<{
394
- cpOrderId: import("@sinclair/typebox").TString;
395
- }> & import("@sinclair/typebox").TObject<{
396
402
  spPackageId: import("@sinclair/typebox").TString;
397
403
  }>;
398
404
  readonly "CrmSpPackageModel.create": import("@sinclair/typebox").TObject<{
@@ -416,6 +422,21 @@ declare const app: Elysia<"", {
416
422
  companyBranchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
417
423
  priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
418
424
  }>;
425
+ readonly "CrmCustomerModel.create": import("@sinclair/typebox").TObject<{
426
+ email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
427
+ companyId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
428
+ firstname: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
429
+ lastname: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
430
+ phoneNumber: import("@sinclair/typebox").TString;
431
+ regNum: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
432
+ }>;
433
+ readonly "CrmCustomerModel.select": import("@sinclair/typebox").TObject<{
434
+ phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
435
+ pagination: import("@sinclair/typebox").TObject<{
436
+ page: import("@sinclair/typebox").TInteger;
437
+ size: import("@sinclair/typebox").TInteger;
438
+ }>;
439
+ }>;
419
440
  };
420
441
  error: {};
421
442
  }, {
@@ -3059,309 +3080,86 @@ declare const app: Elysia<"", {
3059
3080
  "cp-order": {};
3060
3081
  } & {
3061
3082
  "cp-order": {
3062
- get: {
3063
- body: unknown;
3064
- params: {};
3065
- query: {
3066
- id?: string | undefined;
3067
- createdAt?: string | undefined;
3068
- phone?: string | undefined;
3069
- orderId?: string | undefined;
3070
- state?: "CREATED" | "COMPLETE" | "PROGRESSING" | undefined;
3071
- vin?: string | undefined;
3072
- licensePlate?: string | undefined;
3073
- timeCompleted?: string | undefined;
3074
- model?: string | undefined;
3075
- pagination: {
3076
- size: number;
3077
- page: number;
3083
+ service: {};
3084
+ } & {
3085
+ service: {
3086
+ get: {
3087
+ body: unknown;
3088
+ params: {};
3089
+ query: {
3090
+ cpOrderId: string;
3078
3091
  };
3079
- };
3080
- headers: unknown;
3081
- response: {
3082
- 200: {
3083
- totalCount: number;
3084
- totalPages: number;
3085
- result: {
3086
- order: {
3092
+ headers: unknown;
3093
+ response: {
3094
+ 200: {
3095
+ service_kind: {
3096
+ serviceKindId: string | null;
3087
3097
  companyId: string;
3088
- companyBranchId: string;
3089
- customerId: string | null;
3090
- vehicleId: string;
3091
- orderId: string;
3092
- state: "CREATED" | "COMPLETE" | "PROGRESSING";
3093
- timeCompleted: Date | null;
3094
- id: string;
3095
- createdAt: string;
3096
- updatedAt: string;
3097
- deletedAt: string | null;
3098
- };
3099
- vehicle: {
3100
- customerId: string | null;
3101
- vehicleKindId: string;
3102
- vin: string | null;
3103
- licensePlate: string | null;
3104
- color: string | null;
3105
- engineCc: string | null;
3106
- cylinder: string | null;
3107
- gasType: string | null;
3108
- transmissionType: string | null;
3109
- vehicleType: string | null;
3110
- yearManufacture: number | null;
3111
- yearImport: number | null;
3112
- steering: string | null;
3113
- engineCode: string | null;
3114
- transmissionCode: string | null;
3115
- driveTrain: string | null;
3116
- id: string;
3117
- createdAt: string;
3118
- updatedAt: string;
3119
- deletedAt: string | null;
3120
- };
3121
- make: {
3122
- vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
3123
- parentId: string | null;
3124
- name: string;
3125
- description: string | null;
3126
- yearStart: number | null;
3127
- yearEnd: number | null;
3128
- imagePath: string | null;
3129
- id: string;
3130
- createdAt: string;
3131
- updatedAt: string;
3132
- deletedAt: string | null;
3133
- } | null;
3134
- model: {
3135
- vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
3136
- parentId: string | null;
3098
+ branchId: string | null;
3137
3099
  name: string;
3138
3100
  description: string | null;
3139
- yearStart: number | null;
3140
- yearEnd: number | null;
3141
- imagePath: string | null;
3101
+ enabled: boolean;
3102
+ price: number;
3142
3103
  id: string;
3143
3104
  createdAt: string;
3144
3105
  updatedAt: string;
3145
3106
  deletedAt: string | null;
3146
- } | null;
3147
- customer: {
3148
- companyId: string | null;
3149
- firstname: string | null;
3150
- lastname: string | null;
3151
- phoneNumber: string;
3152
- email: string | null;
3153
- regNum: string | null;
3107
+ };
3108
+ cp_order_service: {
3109
+ cpOrderId: string;
3110
+ cpOrderSpPackageId: string | null;
3111
+ companyServiceKindId: string;
3112
+ quantity: number;
3113
+ priceUnit: number;
3114
+ priceTotal: number;
3115
+ name: string | null;
3154
3116
  id: string;
3155
3117
  createdAt: string;
3156
3118
  updatedAt: string;
3157
3119
  deletedAt: string | null;
3158
- } | null;
3159
- isDeleteAble: unknown;
3120
+ };
3160
3121
  }[];
3161
- };
3162
- 422: {
3163
- type: "validation";
3164
- on: string;
3165
- summary?: string;
3166
- message?: string;
3167
- found?: unknown;
3168
- property?: string;
3169
- expected?: string;
3170
- };
3171
- };
3172
- };
3173
- };
3174
- } & {
3175
- "cp-order": {
3176
- post: {
3177
- body: {
3178
- phone?: string | undefined;
3179
- vehicleKindId?: string | undefined;
3180
- vin?: string | undefined;
3181
- licensePlate?: string | undefined;
3182
- };
3183
- params: {};
3184
- query: unknown;
3185
- headers: unknown;
3186
- response: {
3187
- 200: {
3188
- id: string;
3189
- createdAt: string;
3190
- updatedAt: string;
3191
- companyId: string;
3192
- deletedAt: string | null;
3193
- orderId: string;
3194
- state: "CREATED" | "COMPLETE" | "PROGRESSING";
3195
- customerId: string | null;
3196
- vehicleId: string;
3197
- companyBranchId: string;
3198
- timeCompleted: Date | null;
3199
- };
3200
- 502: string;
3201
- 400: "Машины дугаар болон VIN хоёроос нэгийг нь оруулна уу." | "Машины VIN оруулсан бол машины төрөл оруулна уу.";
3202
- 422: {
3203
- type: "validation";
3204
- on: string;
3205
- summary?: string;
3206
- message?: string;
3207
- found?: unknown;
3208
- property?: string;
3209
- expected?: string;
3122
+ 422: {
3123
+ type: "validation";
3124
+ on: string;
3125
+ summary?: string;
3126
+ message?: string;
3127
+ found?: unknown;
3128
+ property?: string;
3129
+ expected?: string;
3130
+ };
3210
3131
  };
3211
3132
  };
3212
3133
  };
3213
- };
3214
- } & {
3215
- "cp-order": {
3216
- package: {
3134
+ } & {
3135
+ service: {
3217
3136
  post: {
3218
3137
  body: {
3138
+ name?: string | null | undefined;
3139
+ priceUnit?: number | undefined;
3140
+ cpOrderSpPackageId?: string | null | undefined;
3219
3141
  quantity: number;
3220
- spPackageId: string;
3221
3142
  cpOrderId: string;
3143
+ companyServiceKindId: string;
3222
3144
  };
3223
3145
  params: {};
3224
3146
  query: unknown;
3225
3147
  headers: unknown;
3226
3148
  response: {
3227
- 200: undefined;
3228
- 404: "Багцийн үйлчилгээ олдсонгүй." | "Засвар үйлчилгээ олдсонгүй.";
3229
- 400: "Суурь багцад бараа эсвэл үйлчилгээ байхгүй байна.";
3230
- 422: {
3231
- type: "validation";
3232
- on: string;
3233
- summary?: string;
3234
- message?: string;
3235
- found?: unknown;
3236
- property?: string;
3237
- expected?: string;
3238
- };
3239
- };
3240
- };
3241
- };
3242
- };
3243
- } & {
3244
- "cp-order": {
3245
- ":id": {
3246
- complete: {
3247
- post: {
3248
- body: unknown;
3249
- params: {
3250
- id: string;
3251
- };
3252
- query: unknown;
3253
- headers: unknown;
3254
- response: {
3255
- 200: undefined;
3256
- 404: "Засвар үйлчилгээ олдсонгүй.";
3257
- 422: {
3258
- type: "validation";
3259
- on: string;
3260
- summary?: string;
3261
- message?: string;
3262
- found?: unknown;
3263
- property?: string;
3264
- expected?: string;
3265
- };
3266
- };
3267
- };
3268
- };
3269
- };
3270
- };
3271
- } & {
3272
- "cp-order": {
3273
- ":id": {
3274
- delete: {
3275
- body: unknown;
3276
- params: {
3277
- id: string;
3278
- };
3279
- query: unknown;
3280
- headers: unknown;
3281
- response: {
3282
- 200: undefined;
3283
- 404: "Засвар үйлчилгээ олдсонгүй.";
3284
- 400: "Үйлчилгээ хоосон биш байна.";
3285
- 422: {
3286
- type: "validation";
3287
- on: string;
3288
- summary?: string;
3289
- message?: string;
3290
- found?: unknown;
3291
- property?: string;
3292
- expected?: string;
3293
- };
3294
- };
3295
- };
3296
- };
3297
- };
3298
- } & {
3299
- "cp-order": {
3300
- service: {};
3301
- } & {
3302
- service: {
3303
- get: {
3304
- body: unknown;
3305
- params: {};
3306
- query: {
3307
- cpOrderId: string;
3308
- };
3309
- headers: unknown;
3310
- response: {
3311
- 200: {
3312
- cpOrderId: string;
3313
- cpOrderSpPackageId: string | null;
3314
- companyServiceKindId: string;
3315
- quantity: number;
3316
- priceUnit: number;
3317
- priceTotal: number;
3318
- name: string | null;
3319
- id: string;
3320
- createdAt: string;
3321
- updatedAt: string;
3322
- deletedAt: string | null;
3323
- }[];
3324
- 422: {
3325
- type: "validation";
3326
- on: string;
3327
- summary?: string;
3328
- message?: string;
3329
- found?: unknown;
3330
- property?: string;
3331
- expected?: string;
3332
- };
3333
- };
3334
- };
3335
- };
3336
- } & {
3337
- service: {
3338
- post: {
3339
- body: {
3340
- name?: string | null | undefined;
3341
- priceUnit?: number | undefined;
3342
- cpOrderSpPackageId?: string | null | undefined;
3343
- quantity: number;
3344
- cpOrderId: string;
3345
- companyServiceKindId: string;
3346
- };
3347
- params: {};
3348
- query: unknown;
3349
- headers: unknown;
3350
- response: {
3351
- 200: {
3352
- name: string | null;
3353
- id: string;
3354
- createdAt: string;
3355
- updatedAt: string;
3356
- deletedAt: string | null;
3357
- quantity: number;
3358
- priceTotal: number;
3359
- priceUnit: number;
3360
- cpOrderId: string;
3361
- cpOrderSpPackageId: string | null;
3362
- companyServiceKindId: string;
3363
- };
3364
- 404: "Үйлчилгээний төрөл олдсонгүй.";
3149
+ 200: {
3150
+ name: string | null;
3151
+ id: string;
3152
+ createdAt: string;
3153
+ updatedAt: string;
3154
+ deletedAt: string | null;
3155
+ quantity: number;
3156
+ priceTotal: number;
3157
+ priceUnit: number;
3158
+ cpOrderId: string;
3159
+ cpOrderSpPackageId: string | null;
3160
+ companyServiceKindId: string;
3161
+ };
3162
+ 404: "Үйлчилгээний төрөл олдсонгүй.";
3365
3163
  422: {
3366
3164
  type: "validation";
3367
3165
  on: string;
@@ -3455,17 +3253,37 @@ declare const app: Elysia<"", {
3455
3253
  headers: unknown;
3456
3254
  response: {
3457
3255
  200: {
3458
- cpOrderId: string;
3459
- companyProductId: string;
3460
- cpOrderSpPackageId: string | null;
3461
- quantity: number;
3462
- priceUnit: number;
3463
- priceTotal: number;
3464
- name: string | null;
3465
- id: string;
3466
- createdAt: string;
3467
- updatedAt: string;
3468
- deletedAt: string | null;
3256
+ product: {
3257
+ supplierId: string;
3258
+ productId: string | null;
3259
+ name: string;
3260
+ description: string | null;
3261
+ priceSell: number;
3262
+ priceBuy: number;
3263
+ barCode: string | null;
3264
+ oen: string | null;
3265
+ partNumber: string;
3266
+ alias: string | null;
3267
+ companyId: string;
3268
+ type: string | null;
3269
+ id: string;
3270
+ createdAt: string;
3271
+ updatedAt: string;
3272
+ deletedAt: string | null;
3273
+ };
3274
+ cp_order_product: {
3275
+ cpOrderId: string;
3276
+ companyProductId: string;
3277
+ cpOrderSpPackageId: string | null;
3278
+ quantity: number;
3279
+ priceUnit: number;
3280
+ priceTotal: number;
3281
+ name: string | null;
3282
+ id: string;
3283
+ createdAt: string;
3284
+ updatedAt: string;
3285
+ deletedAt: string | null;
3286
+ };
3469
3287
  }[];
3470
3288
  422: {
3471
3289
  type: "validation";
@@ -3587,6 +3405,244 @@ declare const app: Elysia<"", {
3587
3405
  };
3588
3406
  };
3589
3407
  };
3408
+ } & {
3409
+ "cp-order": {
3410
+ get: {
3411
+ body: unknown;
3412
+ params: {};
3413
+ query: {
3414
+ id?: string | undefined;
3415
+ createdAt?: string | undefined;
3416
+ phone?: string | undefined;
3417
+ orderId?: string | undefined;
3418
+ state?: "CREATED" | "COMPLETE" | "PROGRESSING" | undefined;
3419
+ vin?: string | undefined;
3420
+ licensePlate?: string | undefined;
3421
+ timeCompleted?: string | undefined;
3422
+ model?: string | undefined;
3423
+ pagination: {
3424
+ size: number;
3425
+ page: number;
3426
+ };
3427
+ };
3428
+ headers: unknown;
3429
+ response: {
3430
+ 200: {
3431
+ totalCount: number;
3432
+ totalPage: number;
3433
+ result: {
3434
+ order: {
3435
+ companyId: string;
3436
+ companyBranchId: string;
3437
+ customerId: string | null;
3438
+ vehicleId: string;
3439
+ orderId: string;
3440
+ state: "CREATED" | "COMPLETE" | "PROGRESSING";
3441
+ timeCompleted: Date | null;
3442
+ id: string;
3443
+ createdAt: string;
3444
+ updatedAt: string;
3445
+ deletedAt: string | null;
3446
+ };
3447
+ vehicle: {
3448
+ customerId: string | null;
3449
+ vehicleKindId: string;
3450
+ vin: string | null;
3451
+ licensePlate: string | null;
3452
+ color: string | null;
3453
+ engineCc: string | null;
3454
+ cylinder: string | null;
3455
+ gasType: string | null;
3456
+ transmissionType: string | null;
3457
+ vehicleType: string | null;
3458
+ yearManufacture: number | null;
3459
+ yearImport: number | null;
3460
+ steering: string | null;
3461
+ engineCode: string | null;
3462
+ transmissionCode: string | null;
3463
+ driveTrain: string | null;
3464
+ id: string;
3465
+ createdAt: string;
3466
+ updatedAt: string;
3467
+ deletedAt: string | null;
3468
+ };
3469
+ make: {
3470
+ vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
3471
+ parentId: string | null;
3472
+ name: string;
3473
+ description: string | null;
3474
+ yearStart: number | null;
3475
+ yearEnd: number | null;
3476
+ imagePath: string | null;
3477
+ id: string;
3478
+ createdAt: string;
3479
+ updatedAt: string;
3480
+ deletedAt: string | null;
3481
+ } | null;
3482
+ model: {
3483
+ vehicleKindEnum: "MAKE" | "MODEL_GROUP" | "MODEL";
3484
+ parentId: string | null;
3485
+ name: string;
3486
+ description: string | null;
3487
+ yearStart: number | null;
3488
+ yearEnd: number | null;
3489
+ imagePath: string | null;
3490
+ id: string;
3491
+ createdAt: string;
3492
+ updatedAt: string;
3493
+ deletedAt: string | null;
3494
+ } | null;
3495
+ customer: {
3496
+ companyId: string | null;
3497
+ firstname: string | null;
3498
+ lastname: string | null;
3499
+ phoneNumber: string;
3500
+ email: string | null;
3501
+ regNum: string | null;
3502
+ id: string;
3503
+ createdAt: string;
3504
+ updatedAt: string;
3505
+ deletedAt: string | null;
3506
+ } | null;
3507
+ isDeleteAble: unknown;
3508
+ }[];
3509
+ };
3510
+ 422: {
3511
+ type: "validation";
3512
+ on: string;
3513
+ summary?: string;
3514
+ message?: string;
3515
+ found?: unknown;
3516
+ property?: string;
3517
+ expected?: string;
3518
+ };
3519
+ };
3520
+ };
3521
+ };
3522
+ } & {
3523
+ "cp-order": {
3524
+ post: {
3525
+ body: {
3526
+ phone?: string | undefined;
3527
+ vehicleKindId?: string | undefined;
3528
+ vin?: string | undefined;
3529
+ licensePlate?: string | undefined;
3530
+ };
3531
+ params: {};
3532
+ query: unknown;
3533
+ headers: unknown;
3534
+ response: {
3535
+ 200: {
3536
+ id: string;
3537
+ createdAt: string;
3538
+ updatedAt: string;
3539
+ companyId: string;
3540
+ deletedAt: string | null;
3541
+ orderId: string;
3542
+ state: "CREATED" | "COMPLETE" | "PROGRESSING";
3543
+ customerId: string | null;
3544
+ vehicleId: string;
3545
+ companyBranchId: string;
3546
+ timeCompleted: Date | null;
3547
+ };
3548
+ 502: string;
3549
+ 400: "Машины дугаар болон VIN хоёроос нэгийг нь оруулна уу." | "Машины VIN оруулсан бол машины төрөл оруулна уу.";
3550
+ 422: {
3551
+ type: "validation";
3552
+ on: string;
3553
+ summary?: string;
3554
+ message?: string;
3555
+ found?: unknown;
3556
+ property?: string;
3557
+ expected?: string;
3558
+ };
3559
+ };
3560
+ };
3561
+ };
3562
+ } & {
3563
+ "cp-order": {
3564
+ package: {
3565
+ post: {
3566
+ body: {
3567
+ quantity: number;
3568
+ spPackageId: string;
3569
+ cpOrderId: string;
3570
+ };
3571
+ params: {};
3572
+ query: unknown;
3573
+ headers: unknown;
3574
+ response: {
3575
+ 200: undefined;
3576
+ 404: "Багцийн үйлчилгээ олдсонгүй." | "Засвар үйлчилгээ олдсонгүй.";
3577
+ 400: "Суурь багцад бараа эсвэл үйлчилгээ байхгүй байна.";
3578
+ 422: {
3579
+ type: "validation";
3580
+ on: string;
3581
+ summary?: string;
3582
+ message?: string;
3583
+ found?: unknown;
3584
+ property?: string;
3585
+ expected?: string;
3586
+ };
3587
+ };
3588
+ };
3589
+ };
3590
+ };
3591
+ } & {
3592
+ "cp-order": {
3593
+ ":id": {
3594
+ complete: {
3595
+ post: {
3596
+ body: unknown;
3597
+ params: {
3598
+ id: string;
3599
+ };
3600
+ query: unknown;
3601
+ headers: unknown;
3602
+ response: {
3603
+ 200: undefined;
3604
+ 404: "Засвар үйлчилгээ олдсонгүй.";
3605
+ 422: {
3606
+ type: "validation";
3607
+ on: string;
3608
+ summary?: string;
3609
+ message?: string;
3610
+ found?: unknown;
3611
+ property?: string;
3612
+ expected?: string;
3613
+ };
3614
+ };
3615
+ };
3616
+ };
3617
+ };
3618
+ };
3619
+ } & {
3620
+ "cp-order": {
3621
+ ":id": {
3622
+ delete: {
3623
+ body: unknown;
3624
+ params: {
3625
+ id: string;
3626
+ };
3627
+ query: unknown;
3628
+ headers: unknown;
3629
+ response: {
3630
+ 200: undefined;
3631
+ 404: "Засвар үйлчилгээ олдсонгүй.";
3632
+ 400: "Үйлчилгээ хоосон биш байна.";
3633
+ 422: {
3634
+ type: "validation";
3635
+ on: string;
3636
+ summary?: string;
3637
+ message?: string;
3638
+ found?: unknown;
3639
+ property?: string;
3640
+ expected?: string;
3641
+ };
3642
+ };
3643
+ };
3644
+ };
3645
+ };
3590
3646
  };
3591
3647
  } & {
3592
3648
  crm: {
@@ -4172,6 +4228,52 @@ declare const app: Elysia<"", {
4172
4228
  };
4173
4229
  };
4174
4230
  };
4231
+ } & {
4232
+ crm: {
4233
+ customer: {};
4234
+ } & {
4235
+ customer: {
4236
+ get: {
4237
+ body: unknown;
4238
+ params: {};
4239
+ query: {
4240
+ phone?: string | undefined;
4241
+ pagination: {
4242
+ size: number;
4243
+ page: number;
4244
+ };
4245
+ };
4246
+ headers: unknown;
4247
+ response: {
4248
+ 200: {
4249
+ totalCount: number;
4250
+ totalPage: number;
4251
+ result: {
4252
+ companyId: string | null;
4253
+ firstname: string | null;
4254
+ lastname: string | null;
4255
+ phoneNumber: string;
4256
+ email: string | null;
4257
+ regNum: string | null;
4258
+ id: string;
4259
+ createdAt: string;
4260
+ updatedAt: string;
4261
+ deletedAt: string | null;
4262
+ }[];
4263
+ };
4264
+ 422: {
4265
+ type: "validation";
4266
+ on: string;
4267
+ summary?: string;
4268
+ message?: string;
4269
+ found?: unknown;
4270
+ property?: string;
4271
+ expected?: string;
4272
+ };
4273
+ };
4274
+ };
4275
+ };
4276
+ };
4175
4277
  };
4176
4278
  }, {
4177
4279
  derive: {};