autosync_backend2 1.1.7 → 1.1.8

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 +607 -518
  2. package/dist/index.js +47 -24
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -311,27 +311,38 @@ 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 "CrmSpPackageServiceModel.create": import("@sinclair/typebox").TObject<{
315
- quantity: import("@sinclair/typebox").TInteger;
316
- priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
314
+ readonly "CrmCpOrderModel.create": import("@sinclair/typebox").TObject<{
315
+ phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
316
+ vin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
317
+ licensePlate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
318
+ vehicleKindId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
319
+ }>;
320
+ readonly "CrmCpOrderModel.addPackage": import("@sinclair/typebox").TObject<{
317
321
  spPackageId: import("@sinclair/typebox").TString;
318
- kindId: import("@sinclair/typebox").TString;
319
- priceUnit: import("@sinclair/typebox").TNumber;
320
- }> & import("@sinclair/typebox").TObject<{
322
+ cpOrderId: import("@sinclair/typebox").TString;
323
+ quantity: import("@sinclair/typebox").TNumber;
324
+ }>;
325
+ readonly "CrmCpOrderModel.select": import("@sinclair/typebox").TObject<{
326
+ pagination: import("@sinclair/typebox").TObject<{
327
+ page: import("@sinclair/typebox").TInteger;
328
+ size: import("@sinclair/typebox").TInteger;
329
+ }>;
330
+ }>;
331
+ readonly "CrmSpPackageServiceModel.create": import("@sinclair/typebox").TObject<{
321
332
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
322
333
  quantity: import("@sinclair/typebox").TInteger;
323
334
  cpOrderId: import("@sinclair/typebox").TString;
324
335
  cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
325
336
  companyServiceKindId: import("@sinclair/typebox").TString;
326
337
  priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
338
+ }> & import("@sinclair/typebox").TObject<{
339
+ quantity: import("@sinclair/typebox").TInteger;
340
+ priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
341
+ spPackageId: import("@sinclair/typebox").TString;
342
+ kindId: import("@sinclair/typebox").TString;
343
+ priceUnit: import("@sinclair/typebox").TNumber;
327
344
  }>;
328
345
  readonly "CrmSpPackageServiceModel.update": import("@sinclair/typebox").TObject<{
329
- quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
330
- priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
331
- spPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
332
- kindId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
333
- priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
334
- }> & import("@sinclair/typebox").TObject<{
335
346
  quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
336
347
  state: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
337
348
  CREATED: "CREATED";
@@ -340,33 +351,33 @@ declare const app: Elysia<"", {
340
351
  }>>;
341
352
  priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
342
353
  timeCompleted: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>>;
354
+ }> & import("@sinclair/typebox").TObject<{
355
+ quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
356
+ priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
357
+ spPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
358
+ kindId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
359
+ priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
343
360
  }>;
344
361
  readonly "CrmSpPackageServiceModel.select": import("@sinclair/typebox").TObject<{
345
- spPackageId: import("@sinclair/typebox").TString;
346
- }> & import("@sinclair/typebox").TObject<{
347
362
  cpOrderId: import("@sinclair/typebox").TString;
363
+ }> & import("@sinclair/typebox").TObject<{
364
+ spPackageId: import("@sinclair/typebox").TString;
348
365
  }>;
349
366
  readonly "CrmSpPackageProductModel.create": import("@sinclair/typebox").TObject<{
350
- quantity: import("@sinclair/typebox").TInteger;
351
- priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
352
- spPackageId: import("@sinclair/typebox").TString;
353
- priceUnit: import("@sinclair/typebox").TNumber;
354
- companyProductId: import("@sinclair/typebox").TString;
355
- }> & import("@sinclair/typebox").TObject<{
356
367
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
357
368
  quantity: import("@sinclair/typebox").TInteger;
358
369
  companyProductId: import("@sinclair/typebox").TString;
359
370
  cpOrderId: import("@sinclair/typebox").TString;
360
371
  cpOrderSpPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
361
372
  priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
373
+ }> & import("@sinclair/typebox").TObject<{
374
+ quantity: import("@sinclair/typebox").TInteger;
375
+ priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
376
+ spPackageId: import("@sinclair/typebox").TString;
377
+ priceUnit: import("@sinclair/typebox").TNumber;
378
+ companyProductId: import("@sinclair/typebox").TString;
362
379
  }>;
363
380
  readonly "CrmSpPackageProductModel.update": import("@sinclair/typebox").TObject<{
364
- quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
365
- priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
366
- spPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
367
- priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
368
- companyProductId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
369
- }> & import("@sinclair/typebox").TObject<{
370
381
  quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
371
382
  state: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
372
383
  CREATED: "CREATED";
@@ -374,11 +385,17 @@ declare const app: Elysia<"", {
374
385
  PROGRESSING: "PROGRESSING";
375
386
  }>>;
376
387
  priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
388
+ }> & import("@sinclair/typebox").TObject<{
389
+ quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
390
+ priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
391
+ spPackageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
392
+ priceUnit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
393
+ companyProductId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
377
394
  }>;
378
395
  readonly "CrmSpPackageProductModel.select": import("@sinclair/typebox").TObject<{
379
- spPackageId: import("@sinclair/typebox").TString;
380
- }> & import("@sinclair/typebox").TObject<{
381
396
  cpOrderId: import("@sinclair/typebox").TString;
397
+ }> & import("@sinclair/typebox").TObject<{
398
+ spPackageId: import("@sinclair/typebox").TString;
382
399
  }>;
383
400
  readonly "CrmSpPackageModel.create": import("@sinclair/typebox").TObject<{
384
401
  name: import("@sinclair/typebox").TString;
@@ -401,21 +418,17 @@ declare const app: Elysia<"", {
401
418
  companyBranchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
402
419
  priceTotal: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
403
420
  }>;
404
- readonly "CrmCpOrderModel.create": import("@sinclair/typebox").TObject<{
405
- phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
406
- vin: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
407
- licensePlate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
408
- vehicleKindId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
409
- }>;
410
- readonly "CrmCpOrderModel.addPackage": import("@sinclair/typebox").TObject<{
411
- spPackageId: import("@sinclair/typebox").TString;
412
- cpOrderId: import("@sinclair/typebox").TString;
413
- quantity: import("@sinclair/typebox").TNumber;
414
- }>;
415
421
  };
416
422
  error: {};
417
423
  }, {
418
- schema: {};
424
+ schema: {
425
+ body: unknown;
426
+ headers: unknown;
427
+ query: unknown;
428
+ params: {};
429
+ cookie: unknown;
430
+ response: {};
431
+ };
419
432
  standaloneSchema: {};
420
433
  macro: {
421
434
  readonly auth?: boolean | undefined;
@@ -3045,9 +3058,152 @@ declare const app: Elysia<"", {
3045
3058
  } & {
3046
3059
  api: {
3047
3060
  crm: {
3048
- "sp-package": {};
3061
+ "cp-order": {};
3049
3062
  } & {
3050
- "sp-package": {
3063
+ "cp-order": {
3064
+ get: {
3065
+ body: unknown;
3066
+ params: {};
3067
+ query: {
3068
+ pagination: {
3069
+ size: number;
3070
+ page: number;
3071
+ };
3072
+ };
3073
+ headers: unknown;
3074
+ response: {
3075
+ 200: {
3076
+ totalCount: number;
3077
+ totalPages: number;
3078
+ result: {
3079
+ order: {
3080
+ companyId: string;
3081
+ companyBranchId: string;
3082
+ customerId: string | null;
3083
+ vehicleId: string;
3084
+ orderId: string;
3085
+ id: string;
3086
+ createdAt: string;
3087
+ updatedAt: string;
3088
+ deletedAt: string | null;
3089
+ };
3090
+ vehicle: {
3091
+ customerId: string | null;
3092
+ vehicleKindId: string;
3093
+ vin: string | null;
3094
+ licensePlate: string | null;
3095
+ color: string | null;
3096
+ engineCc: string | null;
3097
+ cylinder: string | null;
3098
+ gasType: string | null;
3099
+ transmissionType: string | null;
3100
+ vehicleType: string | null;
3101
+ yearManufacture: number | null;
3102
+ yearImport: number | null;
3103
+ steering: string | null;
3104
+ engineCode: string | null;
3105
+ transmissionCode: string | null;
3106
+ driveTrain: string | null;
3107
+ id: string;
3108
+ createdAt: string;
3109
+ updatedAt: string;
3110
+ deletedAt: string | null;
3111
+ };
3112
+ customer: {
3113
+ companyId: string | null;
3114
+ firstname: string | null;
3115
+ lastname: string | null;
3116
+ phoneNumber: string;
3117
+ email: string | null;
3118
+ regNum: string | null;
3119
+ id: string;
3120
+ createdAt: string;
3121
+ updatedAt: string;
3122
+ deletedAt: string | null;
3123
+ } | null;
3124
+ }[];
3125
+ };
3126
+ 422: {
3127
+ type: "validation";
3128
+ on: string;
3129
+ summary?: string;
3130
+ message?: string;
3131
+ found?: unknown;
3132
+ property?: string;
3133
+ expected?: string;
3134
+ };
3135
+ };
3136
+ };
3137
+ };
3138
+ } & {
3139
+ "cp-order": {
3140
+ post: {
3141
+ body: {
3142
+ phone?: string | undefined;
3143
+ vehicleKindId?: string | undefined;
3144
+ vin?: string | undefined;
3145
+ licensePlate?: string | undefined;
3146
+ };
3147
+ params: {};
3148
+ query: unknown;
3149
+ headers: unknown;
3150
+ response: {
3151
+ 200: {
3152
+ id: string;
3153
+ createdAt: string;
3154
+ updatedAt: string;
3155
+ companyId: string;
3156
+ deletedAt: string | null;
3157
+ orderId: string;
3158
+ customerId: string | null;
3159
+ vehicleId: string;
3160
+ companyBranchId: string;
3161
+ };
3162
+ 502: string;
3163
+ 400: "Машины дугаар болон VIN хоёроос нэгийг нь оруулна уу." | "Машины VIN оруулсан бол машины төрөл оруулна уу.";
3164
+ 422: {
3165
+ type: "validation";
3166
+ on: string;
3167
+ summary?: string;
3168
+ message?: string;
3169
+ found?: unknown;
3170
+ property?: string;
3171
+ expected?: string;
3172
+ };
3173
+ };
3174
+ };
3175
+ };
3176
+ } & {
3177
+ "cp-order": {
3178
+ package: {
3179
+ post: {
3180
+ body: {
3181
+ quantity: number;
3182
+ spPackageId: string;
3183
+ cpOrderId: string;
3184
+ };
3185
+ params: {};
3186
+ query: unknown;
3187
+ headers: unknown;
3188
+ response: {
3189
+ 200: undefined;
3190
+ 404: "Багцийн үйлчилгээ олдсонгүй." | "Засвар үйлчилгээ олдсонгүй.";
3191
+ 400: "Суурь багцад бараа эсвэл үйлчилгээ байхгүй байна.";
3192
+ 422: {
3193
+ type: "validation";
3194
+ on: string;
3195
+ summary?: string;
3196
+ message?: string;
3197
+ found?: unknown;
3198
+ property?: string;
3199
+ expected?: string;
3200
+ };
3201
+ };
3202
+ };
3203
+ };
3204
+ };
3205
+ } & {
3206
+ "cp-order": {
3051
3207
  service: {};
3052
3208
  } & {
3053
3209
  service: {
@@ -3055,29 +3211,20 @@ declare const app: Elysia<"", {
3055
3211
  body: unknown;
3056
3212
  params: {};
3057
3213
  query: {
3058
- spPackageId: string;
3214
+ cpOrderId: string;
3059
3215
  };
3060
3216
  headers: unknown;
3061
3217
  response: {
3062
3218
  200: {
3063
- kind: {
3064
- serviceKindId: string | null;
3065
- companyId: string;
3066
- branchId: string | null;
3067
- name: string;
3068
- description: string | null;
3069
- enabled: boolean;
3070
- price: number;
3071
- id: string;
3072
- createdAt: string;
3073
- updatedAt: string;
3074
- deletedAt: string | null;
3075
- };
3076
- spPackageId: string;
3077
- kindId: string;
3219
+ cpOrderId: string;
3220
+ cpOrderSpPackageId: string | null;
3221
+ companyServiceKindId: string;
3078
3222
  quantity: number;
3079
3223
  priceUnit: number;
3080
3224
  priceTotal: number;
3225
+ name: string | null;
3226
+ timeCompleted: Date | null;
3227
+ state: "CREATED" | "COMPLETE" | "PROGRESSING";
3081
3228
  id: string;
3082
3229
  createdAt: string;
3083
3230
  updatedAt: string;
@@ -3099,27 +3246,33 @@ declare const app: Elysia<"", {
3099
3246
  service: {
3100
3247
  post: {
3101
3248
  body: {
3102
- priceTotal?: number | undefined;
3249
+ name?: string | null | undefined;
3250
+ priceUnit?: number | undefined;
3251
+ cpOrderSpPackageId?: string | null | undefined;
3103
3252
  quantity: number;
3104
- spPackageId: string;
3105
- kindId: string;
3106
- priceUnit: number;
3253
+ cpOrderId: string;
3254
+ companyServiceKindId: string;
3107
3255
  };
3108
3256
  params: {};
3109
3257
  query: unknown;
3110
3258
  headers: unknown;
3111
3259
  response: {
3112
3260
  200: {
3261
+ name: string | null;
3113
3262
  id: string;
3114
3263
  createdAt: string;
3115
3264
  updatedAt: string;
3116
3265
  deletedAt: string | null;
3117
3266
  quantity: number;
3267
+ state: "CREATED" | "COMPLETE" | "PROGRESSING";
3118
3268
  priceTotal: number;
3119
- spPackageId: string;
3120
- kindId: string;
3121
3269
  priceUnit: number;
3270
+ cpOrderId: string;
3271
+ cpOrderSpPackageId: string | null;
3272
+ companyServiceKindId: string;
3273
+ timeCompleted: Date | null;
3122
3274
  };
3275
+ 404: "Үйлчилгээний төрөл олдсонгүй.";
3123
3276
  422: {
3124
3277
  type: "validation";
3125
3278
  on: string;
@@ -3134,21 +3287,36 @@ declare const app: Elysia<"", {
3134
3287
  };
3135
3288
  } & {
3136
3289
  service: {
3137
- many: {
3138
- post: {
3290
+ ":id": {
3291
+ put: {
3139
3292
  body: {
3140
- priceTotal?: number | undefined;
3141
- quantity: number;
3142
- spPackageId: string;
3143
- kindId: string;
3144
- priceUnit: number;
3145
- }[];
3146
- params: {};
3293
+ quantity?: number | undefined;
3294
+ state?: "CREATED" | "COMPLETE" | "PROGRESSING" | undefined;
3295
+ priceUnit?: number | undefined;
3296
+ timeCompleted?: Date | null | undefined;
3297
+ };
3298
+ params: {
3299
+ id: string;
3300
+ };
3147
3301
  query: unknown;
3148
3302
  headers: unknown;
3149
3303
  response: {
3150
- 200: undefined;
3151
- 400: "Үйлчилгээ оруулах мэдээлэл байхгүй байна.";
3304
+ 200: {
3305
+ cpOrderId: string;
3306
+ cpOrderSpPackageId: string | null;
3307
+ companyServiceKindId: string;
3308
+ quantity: number;
3309
+ priceUnit: number;
3310
+ priceTotal: number;
3311
+ name: string | null;
3312
+ timeCompleted: Date | null;
3313
+ state: "CREATED" | "COMPLETE" | "PROGRESSING";
3314
+ id: string;
3315
+ createdAt: string;
3316
+ updatedAt: string;
3317
+ deletedAt: string | null;
3318
+ };
3319
+ 404: "Үйлчилгээ олдсонгүй.";
3152
3320
  422: {
3153
3321
  type: "validation";
3154
3322
  on: string;
@@ -3164,13 +3332,118 @@ declare const app: Elysia<"", {
3164
3332
  };
3165
3333
  } & {
3166
3334
  service: {
3335
+ ":id": {
3336
+ delete: {
3337
+ body: unknown;
3338
+ params: {
3339
+ id: string;
3340
+ };
3341
+ query: unknown;
3342
+ headers: unknown;
3343
+ response: {
3344
+ 200: void;
3345
+ 422: {
3346
+ type: "validation";
3347
+ on: string;
3348
+ summary?: string;
3349
+ message?: string;
3350
+ found?: unknown;
3351
+ property?: string;
3352
+ expected?: string;
3353
+ };
3354
+ };
3355
+ };
3356
+ };
3357
+ };
3358
+ };
3359
+ } & {
3360
+ "cp-order": {
3361
+ product: {};
3362
+ } & {
3363
+ product: {
3364
+ get: {
3365
+ body: unknown;
3366
+ params: {};
3367
+ query: {
3368
+ cpOrderId: string;
3369
+ };
3370
+ headers: unknown;
3371
+ response: {
3372
+ 200: {
3373
+ cpOrderId: string;
3374
+ companyProductId: string;
3375
+ cpOrderSpPackageId: string | null;
3376
+ quantity: number;
3377
+ priceUnit: number;
3378
+ priceTotal: number;
3379
+ name: string | null;
3380
+ state: "CREATED" | "COMPLETE" | "PROGRESSING";
3381
+ id: string;
3382
+ createdAt: string;
3383
+ updatedAt: string;
3384
+ deletedAt: string | null;
3385
+ }[];
3386
+ 422: {
3387
+ type: "validation";
3388
+ on: string;
3389
+ summary?: string;
3390
+ message?: string;
3391
+ found?: unknown;
3392
+ property?: string;
3393
+ expected?: string;
3394
+ };
3395
+ };
3396
+ };
3397
+ };
3398
+ } & {
3399
+ product: {
3400
+ post: {
3401
+ body: {
3402
+ name?: string | null | undefined;
3403
+ priceUnit?: number | undefined;
3404
+ cpOrderSpPackageId?: string | null | undefined;
3405
+ quantity: number;
3406
+ companyProductId: string;
3407
+ cpOrderId: string;
3408
+ };
3409
+ params: {};
3410
+ query: unknown;
3411
+ headers: unknown;
3412
+ response: {
3413
+ 200: {
3414
+ name: string | null;
3415
+ id: string;
3416
+ createdAt: string;
3417
+ updatedAt: string;
3418
+ deletedAt: string | null;
3419
+ quantity: number;
3420
+ state: "CREATED" | "COMPLETE" | "PROGRESSING";
3421
+ priceTotal: number;
3422
+ priceUnit: number;
3423
+ companyProductId: string;
3424
+ cpOrderId: string;
3425
+ cpOrderSpPackageId: string | null;
3426
+ };
3427
+ 404: "Бараа олдсонгүй.";
3428
+ 422: {
3429
+ type: "validation";
3430
+ on: string;
3431
+ summary?: string;
3432
+ message?: string;
3433
+ found?: unknown;
3434
+ property?: string;
3435
+ expected?: string;
3436
+ };
3437
+ };
3438
+ };
3439
+ };
3440
+ } & {
3441
+ product: {
3167
3442
  ":id": {
3168
3443
  put: {
3169
3444
  body: {
3170
3445
  quantity?: number | undefined;
3171
- priceTotal?: number | undefined;
3172
- spPackageId?: string | undefined;
3173
- kindId?: string | undefined;
3446
+ state?: "CREATED" | "COMPLETE" | "PROGRESSING" | undefined;
3174
3447
  priceUnit?: number | undefined;
3175
3448
  };
3176
3449
  params: {
@@ -3180,17 +3453,20 @@ declare const app: Elysia<"", {
3180
3453
  headers: unknown;
3181
3454
  response: {
3182
3455
  200: {
3183
- spPackageId: string;
3184
- kindId: string;
3456
+ cpOrderId: string;
3457
+ companyProductId: string;
3458
+ cpOrderSpPackageId: string | null;
3185
3459
  quantity: number;
3186
3460
  priceUnit: number;
3187
3461
  priceTotal: number;
3462
+ name: string | null;
3463
+ state: "CREATED" | "COMPLETE" | "PROGRESSING";
3188
3464
  id: string;
3189
3465
  createdAt: string;
3190
3466
  updatedAt: string;
3191
3467
  deletedAt: string | null;
3192
3468
  };
3193
- 404: "Үйлчилгээ олдсонгүй.";
3469
+ 404: "Барааны захиалга олдсонгүй.";
3194
3470
  422: {
3195
3471
  type: "validation";
3196
3472
  on: string;
@@ -3205,7 +3481,7 @@ declare const app: Elysia<"", {
3205
3481
  };
3206
3482
  };
3207
3483
  } & {
3208
- service: {
3484
+ product: {
3209
3485
  ":id": {
3210
3486
  delete: {
3211
3487
  body: unknown;
@@ -3230,11 +3506,15 @@ declare const app: Elysia<"", {
3230
3506
  };
3231
3507
  };
3232
3508
  };
3509
+ };
3510
+ } & {
3511
+ crm: {
3512
+ "sp-package": {};
3233
3513
  } & {
3234
3514
  "sp-package": {
3235
- product: {};
3515
+ service: {};
3236
3516
  } & {
3237
- product: {
3517
+ service: {
3238
3518
  get: {
3239
3519
  body: unknown;
3240
3520
  params: {};
@@ -3244,26 +3524,21 @@ declare const app: Elysia<"", {
3244
3524
  headers: unknown;
3245
3525
  response: {
3246
3526
  200: {
3247
- warehouseProductTable: {
3248
- supplierId: string;
3249
- productId: string | null;
3527
+ kind: {
3528
+ serviceKindId: string | null;
3529
+ companyId: string;
3530
+ branchId: string | null;
3250
3531
  name: string;
3251
3532
  description: string | null;
3252
- priceSell: number;
3253
- priceBuy: number;
3254
- barCode: string | null;
3255
- oen: string | null;
3256
- partNumber: string;
3257
- alias: string | null;
3258
- companyId: string;
3259
- type: string | null;
3533
+ enabled: boolean;
3534
+ price: number;
3260
3535
  id: string;
3261
3536
  createdAt: string;
3262
3537
  updatedAt: string;
3263
3538
  deletedAt: string | null;
3264
3539
  };
3265
3540
  spPackageId: string;
3266
- companyProductId: string;
3541
+ kindId: string;
3267
3542
  quantity: number;
3268
3543
  priceUnit: number;
3269
3544
  priceTotal: number;
@@ -3285,14 +3560,14 @@ declare const app: Elysia<"", {
3285
3560
  };
3286
3561
  };
3287
3562
  } & {
3288
- product: {
3563
+ service: {
3289
3564
  post: {
3290
3565
  body: {
3291
3566
  priceTotal?: number | undefined;
3292
3567
  quantity: number;
3293
3568
  spPackageId: string;
3569
+ kindId: string;
3294
3570
  priceUnit: number;
3295
- companyProductId: string;
3296
3571
  };
3297
3572
  params: {};
3298
3573
  query: unknown;
@@ -3306,8 +3581,8 @@ declare const app: Elysia<"", {
3306
3581
  quantity: number;
3307
3582
  priceTotal: number;
3308
3583
  spPackageId: string;
3584
+ kindId: string;
3309
3585
  priceUnit: number;
3310
- companyProductId: string;
3311
3586
  };
3312
3587
  422: {
3313
3588
  type: "validation";
@@ -3322,22 +3597,22 @@ declare const app: Elysia<"", {
3322
3597
  };
3323
3598
  };
3324
3599
  } & {
3325
- product: {
3600
+ service: {
3326
3601
  many: {
3327
3602
  post: {
3328
3603
  body: {
3329
3604
  priceTotal?: number | undefined;
3330
3605
  quantity: number;
3331
3606
  spPackageId: string;
3607
+ kindId: string;
3332
3608
  priceUnit: number;
3333
- companyProductId: string;
3334
3609
  }[];
3335
3610
  params: {};
3336
3611
  query: unknown;
3337
3612
  headers: unknown;
3338
3613
  response: {
3339
3614
  200: undefined;
3340
- 400: "Бүтээгдэхүүн оруулах мэдээлэл байхгүй байна.";
3615
+ 400: "Үйлчилгээ оруулах мэдээлэл байхгүй байна.";
3341
3616
  422: {
3342
3617
  type: "validation";
3343
3618
  on: string;
@@ -3352,15 +3627,15 @@ declare const app: Elysia<"", {
3352
3627
  };
3353
3628
  };
3354
3629
  } & {
3355
- product: {
3630
+ service: {
3356
3631
  ":id": {
3357
3632
  put: {
3358
3633
  body: {
3359
3634
  quantity?: number | undefined;
3360
3635
  priceTotal?: number | undefined;
3361
3636
  spPackageId?: string | undefined;
3637
+ kindId?: string | undefined;
3362
3638
  priceUnit?: number | undefined;
3363
- companyProductId?: string | undefined;
3364
3639
  };
3365
3640
  params: {
3366
3641
  id: string;
@@ -3370,7 +3645,7 @@ declare const app: Elysia<"", {
3370
3645
  response: {
3371
3646
  200: {
3372
3647
  spPackageId: string;
3373
- companyProductId: string;
3648
+ kindId: string;
3374
3649
  quantity: number;
3375
3650
  priceUnit: number;
3376
3651
  priceTotal: number;
@@ -3379,7 +3654,7 @@ declare const app: Elysia<"", {
3379
3654
  updatedAt: string;
3380
3655
  deletedAt: string | null;
3381
3656
  };
3382
- 404: "Үйлчилгээний багцын бүтээгдэхүүн олдсонгүй.";
3657
+ 404: "Үйлчилгээ олдсонгүй.";
3383
3658
  422: {
3384
3659
  type: "validation";
3385
3660
  on: string;
@@ -3394,7 +3669,7 @@ declare const app: Elysia<"", {
3394
3669
  };
3395
3670
  };
3396
3671
  } & {
3397
- product: {
3672
+ service: {
3398
3673
  ":id": {
3399
3674
  delete: {
3400
3675
  body: unknown;
@@ -3421,391 +3696,41 @@ declare const app: Elysia<"", {
3421
3696
  };
3422
3697
  } & {
3423
3698
  "sp-package": {
3424
- get: {
3425
- body: unknown;
3426
- params: {};
3427
- query: {
3428
- name?: string | undefined;
3429
- companyBranchId?: string | null | undefined;
3430
- priceTotal?: number | undefined;
3431
- pagination: {
3432
- size: number;
3433
- page: number;
3699
+ product: {};
3700
+ } & {
3701
+ product: {
3702
+ get: {
3703
+ body: unknown;
3704
+ params: {};
3705
+ query: {
3706
+ spPackageId: string;
3434
3707
  };
3435
- };
3436
- headers: unknown;
3437
- response: {
3438
- 200: {
3439
- totalCount: number;
3440
- totalPage: number;
3441
- result: {
3442
- branch: {
3708
+ headers: unknown;
3709
+ response: {
3710
+ 200: {
3711
+ warehouseProductTable: {
3712
+ supplierId: string;
3713
+ productId: string | null;
3443
3714
  name: string;
3444
- phone: string;
3445
- logoUrl: string;
3446
- email: string | null;
3447
- regNumber: string | null;
3448
- province: string | null;
3449
- district: string | null;
3450
- khoroo: string | null;
3451
- street: string | null;
3452
- socialUrls: string[] | null;
3453
- ceoName: string | null;
3454
- googleMapUrl: string | null;
3455
- isNoat: boolean;
3456
- isActive: boolean;
3457
- packageId: string;
3458
- merchantId: string;
3715
+ description: string | null;
3716
+ priceSell: number;
3717
+ priceBuy: number;
3718
+ barCode: string | null;
3719
+ oen: string | null;
3720
+ partNumber: string;
3721
+ alias: string | null;
3722
+ companyId: string;
3723
+ type: string | null;
3459
3724
  id: string;
3460
3725
  createdAt: string;
3461
3726
  updatedAt: string;
3462
3727
  deletedAt: string | null;
3463
- } | null;
3464
- companyId: string;
3465
- companyBranchId: string | null;
3466
- name: string;
3467
- description: string | null;
3468
- priceTotal: number;
3469
- id: string;
3470
- createdAt: string;
3471
- updatedAt: string;
3472
- deletedAt: string | null;
3473
- }[];
3474
- };
3475
- 422: {
3476
- type: "validation";
3477
- on: string;
3478
- summary?: string;
3479
- message?: string;
3480
- found?: unknown;
3481
- property?: string;
3482
- expected?: string;
3483
- };
3484
- };
3485
- };
3486
- };
3487
- } & {
3488
- "sp-package": {
3489
- post: {
3490
- body: {
3491
- description?: string | null | undefined;
3492
- companyBranchId?: string | null | undefined;
3493
- priceTotal?: number | undefined;
3494
- name: string;
3495
- };
3496
- params: {};
3497
- query: unknown;
3498
- headers: unknown;
3499
- response: {
3500
- 200: {
3501
- name: string;
3502
- id: string;
3503
- createdAt: string;
3504
- updatedAt: string;
3505
- companyId: string;
3506
- deletedAt: string | null;
3507
- description: string | null;
3508
- companyBranchId: string | null;
3509
- priceTotal: number;
3510
- };
3511
- 422: {
3512
- type: "validation";
3513
- on: string;
3514
- summary?: string;
3515
- message?: string;
3516
- found?: unknown;
3517
- property?: string;
3518
- expected?: string;
3519
- };
3520
- };
3521
- };
3522
- };
3523
- } & {
3524
- "sp-package": {
3525
- ":id": {
3526
- put: {
3527
- body: {
3528
- name?: string | undefined;
3529
- description?: string | null | undefined;
3530
- companyBranchId?: string | null | undefined;
3531
- priceTotal?: number | undefined;
3532
- };
3533
- params: {
3534
- id: string;
3535
- };
3536
- query: unknown;
3537
- headers: unknown;
3538
- response: {
3539
- 200: {
3540
- companyId: string;
3541
- companyBranchId: string | null;
3542
- name: string;
3543
- description: string | null;
3544
- priceTotal: number;
3545
- id: string;
3546
- createdAt: string;
3547
- updatedAt: string;
3548
- deletedAt: string | null;
3549
- };
3550
- 404: "Багцийн үйлчилгээ олдсонгүй.";
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
- } & {
3565
- "sp-package": {
3566
- ":id": {
3567
- delete: {
3568
- body: unknown;
3569
- params: {
3570
- id: string;
3571
- };
3572
- query: unknown;
3573
- headers: unknown;
3574
- response: {
3575
- 200: void;
3576
- 422: {
3577
- type: "validation";
3578
- on: string;
3579
- summary?: string;
3580
- message?: string;
3581
- found?: unknown;
3582
- property?: string;
3583
- expected?: string;
3584
- };
3585
- };
3586
- };
3587
- };
3588
- };
3589
- };
3590
- } & {
3591
- crm: {
3592
- vehicle: {
3593
- get: {
3594
- body: unknown;
3595
- params: {};
3596
- query: {
3597
- licensePlate: string;
3598
- };
3599
- headers: unknown;
3600
- response: {
3601
- 200: {
3602
- plate_no: string;
3603
- cabin_no: string;
3604
- imported_date: string;
3605
- build_year: string;
3606
- mark_name: string;
3607
- model_name: string;
3608
- purpose_name: string;
3609
- color_name: string;
3610
- engine_model_name: string;
3611
- fuel_type_name: string;
3612
- capacity?: string | undefined;
3613
- owner_id: string;
3614
- borrower_id: null;
3615
- };
3616
- 502: string;
3617
- 422: {
3618
- type: "validation";
3619
- on: string;
3620
- summary?: string;
3621
- message?: string;
3622
- found?: unknown;
3623
- property?: string;
3624
- expected?: string;
3625
- };
3626
- };
3627
- };
3628
- };
3629
- };
3630
- } & {
3631
- crm: {
3632
- "cp-order": {};
3633
- } & {
3634
- "cp-order": {
3635
- service: {};
3636
- } & {
3637
- service: {
3638
- get: {
3639
- body: unknown;
3640
- params: {};
3641
- query: {
3642
- cpOrderId: string;
3643
- };
3644
- headers: unknown;
3645
- response: {
3646
- 200: {
3647
- cpOrderId: string;
3648
- cpOrderSpPackageId: string | null;
3649
- companyServiceKindId: string;
3650
- quantity: number;
3651
- priceUnit: number;
3652
- priceTotal: number;
3653
- name: string | null;
3654
- timeCompleted: Date | null;
3655
- state: "CREATED" | "COMPLETE" | "PROGRESSING";
3656
- id: string;
3657
- createdAt: string;
3658
- updatedAt: string;
3659
- deletedAt: string | null;
3660
- }[];
3661
- 422: {
3662
- type: "validation";
3663
- on: string;
3664
- summary?: string;
3665
- message?: string;
3666
- found?: unknown;
3667
- property?: string;
3668
- expected?: string;
3669
- };
3670
- };
3671
- };
3672
- };
3673
- } & {
3674
- service: {
3675
- post: {
3676
- body: {
3677
- name?: string | null | undefined;
3678
- priceUnit?: number | undefined;
3679
- cpOrderSpPackageId?: string | null | undefined;
3680
- quantity: number;
3681
- cpOrderId: string;
3682
- companyServiceKindId: string;
3683
- };
3684
- params: {};
3685
- query: unknown;
3686
- headers: unknown;
3687
- response: {
3688
- 200: {
3689
- name: string | null;
3690
- id: string;
3691
- createdAt: string;
3692
- updatedAt: string;
3693
- deletedAt: string | null;
3694
- quantity: number;
3695
- state: "CREATED" | "COMPLETE" | "PROGRESSING";
3696
- priceTotal: number;
3697
- priceUnit: number;
3698
- cpOrderId: string;
3699
- cpOrderSpPackageId: string | null;
3700
- companyServiceKindId: string;
3701
- timeCompleted: Date | null;
3702
- };
3703
- 404: "Үйлчилгээний төрөл олдсонгүй.";
3704
- 422: {
3705
- type: "validation";
3706
- on: string;
3707
- summary?: string;
3708
- message?: string;
3709
- found?: unknown;
3710
- property?: string;
3711
- expected?: string;
3712
- };
3713
- };
3714
- };
3715
- };
3716
- } & {
3717
- service: {
3718
- ":id": {
3719
- put: {
3720
- body: {
3721
- quantity?: number | undefined;
3722
- state?: "CREATED" | "COMPLETE" | "PROGRESSING" | undefined;
3723
- priceUnit?: number | undefined;
3724
- timeCompleted?: Date | null | undefined;
3725
- };
3726
- params: {
3727
- id: string;
3728
- };
3729
- query: unknown;
3730
- headers: unknown;
3731
- response: {
3732
- 200: {
3733
- cpOrderId: string;
3734
- cpOrderSpPackageId: string | null;
3735
- companyServiceKindId: string;
3736
- quantity: number;
3737
- priceUnit: number;
3738
- priceTotal: number;
3739
- name: string | null;
3740
- timeCompleted: Date | null;
3741
- state: "CREATED" | "COMPLETE" | "PROGRESSING";
3742
- id: string;
3743
- createdAt: string;
3744
- updatedAt: string;
3745
- deletedAt: string | null;
3746
- };
3747
- 404: "Үйлчилгээ олдсонгүй.";
3748
- 422: {
3749
- type: "validation";
3750
- on: string;
3751
- summary?: string;
3752
- message?: string;
3753
- found?: unknown;
3754
- property?: string;
3755
- expected?: string;
3756
- };
3757
- };
3758
- };
3759
- };
3760
- };
3761
- } & {
3762
- service: {
3763
- ":id": {
3764
- delete: {
3765
- body: unknown;
3766
- params: {
3767
- id: string;
3768
- };
3769
- query: unknown;
3770
- headers: unknown;
3771
- response: {
3772
- 200: void;
3773
- 422: {
3774
- type: "validation";
3775
- on: string;
3776
- summary?: string;
3777
- message?: string;
3778
- found?: unknown;
3779
- property?: string;
3780
- expected?: string;
3781
- };
3782
- };
3783
- };
3784
- };
3785
- };
3786
- };
3787
- } & {
3788
- "cp-order": {
3789
- product: {};
3790
- } & {
3791
- product: {
3792
- get: {
3793
- body: unknown;
3794
- params: {};
3795
- query: {
3796
- cpOrderId: string;
3797
- };
3798
- headers: unknown;
3799
- response: {
3800
- 200: {
3801
- cpOrderId: string;
3728
+ };
3729
+ spPackageId: string;
3802
3730
  companyProductId: string;
3803
- cpOrderSpPackageId: string | null;
3804
3731
  quantity: number;
3805
3732
  priceUnit: number;
3806
3733
  priceTotal: number;
3807
- name: string | null;
3808
- state: "CREATED" | "COMPLETE" | "PROGRESSING";
3809
3734
  id: string;
3810
3735
  createdAt: string;
3811
3736
  updatedAt: string;
@@ -3827,32 +3752,27 @@ declare const app: Elysia<"", {
3827
3752
  product: {
3828
3753
  post: {
3829
3754
  body: {
3830
- name?: string | null | undefined;
3831
- priceUnit?: number | undefined;
3832
- cpOrderSpPackageId?: string | null | undefined;
3755
+ priceTotal?: number | undefined;
3833
3756
  quantity: number;
3757
+ spPackageId: string;
3758
+ priceUnit: number;
3834
3759
  companyProductId: string;
3835
- cpOrderId: string;
3836
3760
  };
3837
3761
  params: {};
3838
3762
  query: unknown;
3839
3763
  headers: unknown;
3840
3764
  response: {
3841
3765
  200: {
3842
- name: string | null;
3843
3766
  id: string;
3844
3767
  createdAt: string;
3845
3768
  updatedAt: string;
3846
3769
  deletedAt: string | null;
3847
3770
  quantity: number;
3848
- state: "CREATED" | "COMPLETE" | "PROGRESSING";
3849
3771
  priceTotal: number;
3772
+ spPackageId: string;
3850
3773
  priceUnit: number;
3851
3774
  companyProductId: string;
3852
- cpOrderId: string;
3853
- cpOrderSpPackageId: string | null;
3854
3775
  };
3855
- 404: "Бараа олдсонгүй.";
3856
3776
  422: {
3857
3777
  type: "validation";
3858
3778
  on: string;
@@ -3865,14 +3785,46 @@ declare const app: Elysia<"", {
3865
3785
  };
3866
3786
  };
3867
3787
  };
3788
+ } & {
3789
+ product: {
3790
+ many: {
3791
+ post: {
3792
+ body: {
3793
+ priceTotal?: number | undefined;
3794
+ quantity: number;
3795
+ spPackageId: string;
3796
+ priceUnit: number;
3797
+ companyProductId: string;
3798
+ }[];
3799
+ params: {};
3800
+ query: unknown;
3801
+ headers: unknown;
3802
+ response: {
3803
+ 200: undefined;
3804
+ 400: "Бүтээгдэхүүн оруулах мэдээлэл байхгүй байна.";
3805
+ 422: {
3806
+ type: "validation";
3807
+ on: string;
3808
+ summary?: string;
3809
+ message?: string;
3810
+ found?: unknown;
3811
+ property?: string;
3812
+ expected?: string;
3813
+ };
3814
+ };
3815
+ };
3816
+ };
3817
+ };
3868
3818
  } & {
3869
3819
  product: {
3870
3820
  ":id": {
3871
3821
  put: {
3872
3822
  body: {
3873
3823
  quantity?: number | undefined;
3874
- state?: "CREATED" | "COMPLETE" | "PROGRESSING" | undefined;
3824
+ priceTotal?: number | undefined;
3825
+ spPackageId?: string | undefined;
3875
3826
  priceUnit?: number | undefined;
3827
+ companyProductId?: string | undefined;
3876
3828
  };
3877
3829
  params: {
3878
3830
  id: string;
@@ -3881,20 +3833,17 @@ declare const app: Elysia<"", {
3881
3833
  headers: unknown;
3882
3834
  response: {
3883
3835
  200: {
3884
- cpOrderId: string;
3836
+ spPackageId: string;
3885
3837
  companyProductId: string;
3886
- cpOrderSpPackageId: string | null;
3887
3838
  quantity: number;
3888
3839
  priceUnit: number;
3889
3840
  priceTotal: number;
3890
- name: string | null;
3891
- state: "CREATED" | "COMPLETE" | "PROGRESSING";
3892
3841
  id: string;
3893
3842
  createdAt: string;
3894
3843
  updatedAt: string;
3895
3844
  deletedAt: string | null;
3896
3845
  };
3897
- 404: "Барааны захиалга олдсонгүй.";
3846
+ 404: "Үйлчилгээний багцын бүтээгдэхүүн олдсонгүй.";
3898
3847
  422: {
3899
3848
  type: "validation";
3900
3849
  on: string;
@@ -3935,31 +3884,94 @@ declare const app: Elysia<"", {
3935
3884
  };
3936
3885
  };
3937
3886
  } & {
3938
- "cp-order": {
3887
+ "sp-package": {
3888
+ get: {
3889
+ body: unknown;
3890
+ params: {};
3891
+ query: {
3892
+ name?: string | undefined;
3893
+ companyBranchId?: string | null | undefined;
3894
+ priceTotal?: number | undefined;
3895
+ pagination: {
3896
+ size: number;
3897
+ page: number;
3898
+ };
3899
+ };
3900
+ headers: unknown;
3901
+ response: {
3902
+ 200: {
3903
+ totalCount: number;
3904
+ totalPage: number;
3905
+ result: {
3906
+ branch: {
3907
+ name: string;
3908
+ phone: string;
3909
+ logoUrl: string;
3910
+ email: string | null;
3911
+ regNumber: string | null;
3912
+ province: string | null;
3913
+ district: string | null;
3914
+ khoroo: string | null;
3915
+ street: string | null;
3916
+ socialUrls: string[] | null;
3917
+ ceoName: string | null;
3918
+ googleMapUrl: string | null;
3919
+ isNoat: boolean;
3920
+ isActive: boolean;
3921
+ packageId: string;
3922
+ merchantId: string;
3923
+ id: string;
3924
+ createdAt: string;
3925
+ updatedAt: string;
3926
+ deletedAt: string | null;
3927
+ } | null;
3928
+ companyId: string;
3929
+ companyBranchId: string | null;
3930
+ name: string;
3931
+ description: string | null;
3932
+ priceTotal: number;
3933
+ id: string;
3934
+ createdAt: string;
3935
+ updatedAt: string;
3936
+ deletedAt: string | null;
3937
+ }[];
3938
+ };
3939
+ 422: {
3940
+ type: "validation";
3941
+ on: string;
3942
+ summary?: string;
3943
+ message?: string;
3944
+ found?: unknown;
3945
+ property?: string;
3946
+ expected?: string;
3947
+ };
3948
+ };
3949
+ };
3950
+ };
3951
+ } & {
3952
+ "sp-package": {
3939
3953
  post: {
3940
3954
  body: {
3941
- phone?: string | undefined;
3942
- vehicleKindId?: string | undefined;
3943
- vin?: string | undefined;
3944
- licensePlate?: string | undefined;
3955
+ description?: string | null | undefined;
3956
+ companyBranchId?: string | null | undefined;
3957
+ priceTotal?: number | undefined;
3958
+ name: string;
3945
3959
  };
3946
3960
  params: {};
3947
3961
  query: unknown;
3948
3962
  headers: unknown;
3949
3963
  response: {
3950
3964
  200: {
3965
+ name: string;
3951
3966
  id: string;
3952
3967
  createdAt: string;
3953
3968
  updatedAt: string;
3954
3969
  companyId: string;
3955
3970
  deletedAt: string | null;
3956
- orderId: string;
3957
- customerId: string | null;
3958
- vehicleId: string;
3959
- companyBranchId: string;
3971
+ description: string | null;
3972
+ companyBranchId: string | null;
3973
+ priceTotal: number;
3960
3974
  };
3961
- 502: string;
3962
- 400: "Машины дугаар болон VIN хоёроос нэгийг нь оруулна уу." | "Машины VIN оруулсан бол машины төрөл оруулна уу.";
3963
3975
  422: {
3964
3976
  type: "validation";
3965
3977
  on: string;
@@ -3973,21 +3985,58 @@ declare const app: Elysia<"", {
3973
3985
  };
3974
3986
  };
3975
3987
  } & {
3976
- "cp-order": {
3977
- package: {
3978
- post: {
3988
+ "sp-package": {
3989
+ ":id": {
3990
+ put: {
3979
3991
  body: {
3980
- quantity: number;
3981
- spPackageId: string;
3982
- cpOrderId: string;
3992
+ name?: string | undefined;
3993
+ description?: string | null | undefined;
3994
+ companyBranchId?: string | null | undefined;
3995
+ priceTotal?: number | undefined;
3996
+ };
3997
+ params: {
3998
+ id: string;
3983
3999
  };
3984
- params: {};
3985
4000
  query: unknown;
3986
4001
  headers: unknown;
3987
4002
  response: {
3988
- 200: undefined;
3989
- 404: "Багцийн үйлчилгээ олдсонгүй." | "Засвар үйлчилгээ олдсонгүй.";
3990
- 400: "Суурь багцад бараа эсвэл үйлчилгээ байхгүй байна.";
4003
+ 200: {
4004
+ companyId: string;
4005
+ companyBranchId: string | null;
4006
+ name: string;
4007
+ description: string | null;
4008
+ priceTotal: number;
4009
+ id: string;
4010
+ createdAt: string;
4011
+ updatedAt: string;
4012
+ deletedAt: string | null;
4013
+ };
4014
+ 404: "Багцийн үйлчилгээ олдсонгүй.";
4015
+ 422: {
4016
+ type: "validation";
4017
+ on: string;
4018
+ summary?: string;
4019
+ message?: string;
4020
+ found?: unknown;
4021
+ property?: string;
4022
+ expected?: string;
4023
+ };
4024
+ };
4025
+ };
4026
+ };
4027
+ };
4028
+ } & {
4029
+ "sp-package": {
4030
+ ":id": {
4031
+ delete: {
4032
+ body: unknown;
4033
+ params: {
4034
+ id: string;
4035
+ };
4036
+ query: unknown;
4037
+ headers: unknown;
4038
+ response: {
4039
+ 200: void;
3991
4040
  422: {
3992
4041
  type: "validation";
3993
4042
  on: string;
@@ -4002,6 +4051,46 @@ declare const app: Elysia<"", {
4002
4051
  };
4003
4052
  };
4004
4053
  };
4054
+ } & {
4055
+ crm: {
4056
+ vehicle: {
4057
+ get: {
4058
+ body: unknown;
4059
+ params: {};
4060
+ query: {
4061
+ licensePlate: string;
4062
+ };
4063
+ headers: unknown;
4064
+ response: {
4065
+ 200: {
4066
+ plate_no: string;
4067
+ cabin_no: string;
4068
+ imported_date: string;
4069
+ build_year: string;
4070
+ mark_name: string;
4071
+ model_name: string;
4072
+ purpose_name: string;
4073
+ color_name: string;
4074
+ engine_model_name: string;
4075
+ fuel_type_name: string;
4076
+ capacity?: string | undefined;
4077
+ owner_id: string;
4078
+ borrower_id: null;
4079
+ };
4080
+ 502: string;
4081
+ 422: {
4082
+ type: "validation";
4083
+ on: string;
4084
+ summary?: string;
4085
+ message?: string;
4086
+ found?: unknown;
4087
+ property?: string;
4088
+ expected?: string;
4089
+ };
4090
+ };
4091
+ };
4092
+ };
4093
+ };
4005
4094
  };
4006
4095
  }, {
4007
4096
  derive: {};