autosync_backend2 1.2.9 → 1.2.11

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 +50 -97
  2. package/dist/index.js +12567 -3512
  3. package/package.json +5 -4
package/dist/index.d.ts CHANGED
@@ -167,19 +167,7 @@ export declare const app: Elysia<"", {
167
167
  readonly "Network Authentication Required": 511;
168
168
  }[Code] : Code>;
169
169
  }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | {
170
- user: {
171
- id: string;
172
- createdAt: Date;
173
- updatedAt: Date;
174
- email: string;
175
- emailVerified: boolean;
176
- name: string;
177
- image?: string | null | undefined | undefined;
178
- companyId: string;
179
- branchId: string;
180
- kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
181
- employeeId?: string | null | undefined;
182
- };
170
+ user: import("./lib/auth").User;
183
171
  session: {
184
172
  id: string;
185
173
  createdAt: Date;
@@ -336,20 +324,8 @@ export declare const app: Elysia<"", {
336
324
  readonly "Not Extended": 510;
337
325
  readonly "Network Authentication Required": 511;
338
326
  }[Code] : Code>;
339
- }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | {
340
- user: {
341
- id: string;
342
- createdAt: Date;
343
- updatedAt: Date;
344
- email: string;
345
- emailVerified: boolean;
346
- name: string;
347
- image?: string | null | undefined | undefined;
348
- companyId: string;
349
- branchId: string;
350
- kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
351
- employeeId?: string | null | undefined;
352
- };
327
+ }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
328
+ user: import("./lib/auth").User;
353
329
  session: {
354
330
  id: string;
355
331
  createdAt: Date;
@@ -360,7 +336,7 @@ export declare const app: Elysia<"", {
360
336
  ipAddress?: string | null | undefined | undefined;
361
337
  userAgent?: string | null | undefined | undefined;
362
338
  };
363
- } | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403>>;
339
+ }>;
364
340
  };
365
341
  readonly permission: (input: import("./lib/permissions").PermissionCode | import("./lib/permissions").PermissionCode[]) => {
366
342
  readonly resolve: ({ request: { headers } }: {
@@ -507,19 +483,7 @@ export declare const app: Elysia<"", {
507
483
  readonly "Network Authentication Required": 511;
508
484
  }[Code] : Code>;
509
485
  }) => Promise<import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "Session not found", 401> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
510
- user: {
511
- id: string;
512
- createdAt: Date;
513
- updatedAt: Date;
514
- email: string;
515
- emailVerified: boolean;
516
- name: string;
517
- image?: string | null | undefined | undefined;
518
- companyId: string;
519
- branchId: string;
520
- kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
521
- employeeId?: string | null | undefined;
522
- };
486
+ user: import("./lib/auth").User;
523
487
  session: {
524
488
  id: string;
525
489
  createdAt: Date;
@@ -1241,6 +1205,10 @@ export declare const app: Elysia<"", {
1241
1205
  deletedAt: string | null;
1242
1206
  oldId: number | null;
1243
1207
  } | null;
1208
+ user: {
1209
+ name: string;
1210
+ kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
1211
+ } | null;
1244
1212
  itemId: string;
1245
1213
  productId: string | null;
1246
1214
  transactionType: "IN" | "OUT";
@@ -2770,47 +2738,6 @@ export declare const app: Elysia<"", {
2770
2738
  query: unknown;
2771
2739
  headers: unknown;
2772
2740
  response: {
2773
- 200: {
2774
- company: Omit<{
2775
- name: string;
2776
- id: string;
2777
- email: string;
2778
- createdAt: string;
2779
- updatedAt: string;
2780
- deletedAt: string | null;
2781
- oldId: number | null;
2782
- regNumber: string;
2783
- phone: string;
2784
- serviceName: string;
2785
- logoUrl: string;
2786
- province: string | null;
2787
- district: string | null;
2788
- khoroo: string | null;
2789
- street: string | null;
2790
- socialUrls: string[] | null;
2791
- ceoName: string | null;
2792
- webUrl: string | null;
2793
- googleMapUrl: string | null;
2794
- isContract: boolean;
2795
- isNoat: boolean;
2796
- isNexus: boolean;
2797
- isActive: boolean;
2798
- branchCount: number;
2799
- } & {
2800
- totalCount: number;
2801
- }, "totalCount">;
2802
- id: string;
2803
- createdAt: Date;
2804
- updatedAt: Date;
2805
- email: string;
2806
- emailVerified: boolean;
2807
- name: string;
2808
- image?: string | null | undefined | undefined;
2809
- companyId: string;
2810
- branchId: string;
2811
- kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
2812
- employeeId?: string | null | undefined;
2813
- };
2814
2741
  401: "Session not found";
2815
2742
  };
2816
2743
  };
@@ -3056,18 +2983,6 @@ export declare const app: Elysia<"", {
3056
2983
  headers: unknown;
3057
2984
  response: {
3058
2985
  200: ({
3059
- item: {
3060
- warehouseId: string;
3061
- productId: string;
3062
- quantity: number;
3063
- safetyStock: number;
3064
- shelfNumber: string | null;
3065
- id: string;
3066
- createdAt: string;
3067
- updatedAt: string;
3068
- deletedAt: string | null;
3069
- oldId: number | null;
3070
- } | null;
3071
2986
  service_kind: {
3072
2987
  serviceKindId: string | null;
3073
2988
  companyId: string;
@@ -3096,6 +3011,32 @@ export declare const app: Elysia<"", {
3096
3011
  deletedAt: string | null;
3097
3012
  oldId: number | null;
3098
3013
  } | null;
3014
+ sp_package: {
3015
+ companyId: string;
3016
+ companyBranchId: string | null;
3017
+ name: string;
3018
+ description: string | null;
3019
+ priceTotal: number;
3020
+ id: string;
3021
+ createdAt: string;
3022
+ updatedAt: string;
3023
+ deletedAt: string | null;
3024
+ oldId: number | null;
3025
+ } | null;
3026
+ cp_order_sp_package: {
3027
+ cpOrderId: string;
3028
+ spPackageId: string;
3029
+ quantity: number;
3030
+ priceUnit: number;
3031
+ priceTotal: number;
3032
+ name: string;
3033
+ description: string | null;
3034
+ id: string;
3035
+ createdAt: string;
3036
+ updatedAt: string;
3037
+ deletedAt: string | null;
3038
+ oldId: number | null;
3039
+ } | null;
3099
3040
  cp_order_item: {
3100
3041
  cpOrderId: string;
3101
3042
  companyProductId: string | null;
@@ -3825,6 +3766,7 @@ export declare const app: Elysia<"", {
3825
3766
  type?: "Service" | "ProductSell" | undefined;
3826
3767
  id?: string | undefined;
3827
3768
  createdAt?: string | undefined;
3769
+ oldId?: number | undefined;
3828
3770
  phone?: string | undefined;
3829
3771
  vehicleId?: string | undefined;
3830
3772
  licensePlate?: string | undefined;
@@ -3881,6 +3823,7 @@ export declare const app: Elysia<"", {
3881
3823
  transmissionCode: string | null;
3882
3824
  driveTrain: string | null;
3883
3825
  km: number;
3826
+ customData: unknown;
3884
3827
  companyId: string | null;
3885
3828
  id: string;
3886
3829
  createdAt: string;
@@ -3929,7 +3872,7 @@ export declare const app: Elysia<"", {
3929
3872
  deletedAt: string | null;
3930
3873
  oldId: number | null;
3931
3874
  } | null;
3932
- isDeleteAble: boolean;
3875
+ isDeleteAble: unknown;
3933
3876
  }[];
3934
3877
  };
3935
3878
  401: "Session not found";
@@ -3999,6 +3942,7 @@ export declare const app: Elysia<"", {
3999
3942
  transmissionCode: string | null;
4000
3943
  driveTrain: string | null;
4001
3944
  km: number;
3945
+ customData: unknown;
4002
3946
  companyId: string | null;
4003
3947
  id: string;
4004
3948
  createdAt: string;
@@ -4047,7 +3991,7 @@ export declare const app: Elysia<"", {
4047
3991
  deletedAt: string | null;
4048
3992
  oldId: number | null;
4049
3993
  } | null;
4050
- isDeleteAble: boolean;
3994
+ isDeleteAble: unknown;
4051
3995
  }[];
4052
3996
  };
4053
3997
  400: "Машины дугаар болон VIN хоёроос нэгийг нь оруулна уу." | "Машины VIN оруулсан бол машины төрөл оруулна уу.";
@@ -5040,6 +4984,7 @@ export declare const app: Elysia<"", {
5040
4984
  transmissionCode: string | null;
5041
4985
  driveTrain: string | null;
5042
4986
  km: number;
4987
+ customData: unknown;
5043
4988
  companyId: string | null;
5044
4989
  id: string;
5045
4990
  createdAt: string;
@@ -5129,6 +5074,7 @@ export declare const app: Elysia<"", {
5129
5074
  transmissionCode: string | null;
5130
5075
  driveTrain: string | null;
5131
5076
  km: number;
5077
+ customData: unknown;
5132
5078
  };
5133
5079
  400: "Машины дугаар болон VIN хоёроос нэгийг нь оруулна уу." | "Машины VIN оруулсан бол машины төрөл оруулна уу.";
5134
5080
  401: "Session not found";
@@ -5177,6 +5123,7 @@ export declare const app: Elysia<"", {
5177
5123
  transmissionCode: string | null;
5178
5124
  driveTrain: string | null;
5179
5125
  km: number;
5126
+ customData: unknown;
5180
5127
  companyId: string | null;
5181
5128
  id: string;
5182
5129
  createdAt: string;
@@ -5267,6 +5214,7 @@ export declare const app: Elysia<"", {
5267
5214
  transmissionCode?: string | null | undefined;
5268
5215
  driveTrain?: string | null | undefined;
5269
5216
  km?: number | undefined;
5217
+ customData?: import("drizzle-typebox").Json | undefined;
5270
5218
  };
5271
5219
  params: {
5272
5220
  id: string;
@@ -5292,6 +5240,7 @@ export declare const app: Elysia<"", {
5292
5240
  transmissionCode: string | null;
5293
5241
  driveTrain: string | null;
5294
5242
  km: number;
5243
+ customData: unknown;
5295
5244
  companyId: string | null;
5296
5245
  id: string;
5297
5246
  createdAt: string;
@@ -5345,6 +5294,7 @@ export declare const app: Elysia<"", {
5345
5294
  transmissionCode: string | null;
5346
5295
  driveTrain: string | null;
5347
5296
  km: number;
5297
+ customData: unknown;
5348
5298
  companyId: string | null;
5349
5299
  id: string;
5350
5300
  createdAt: string;
@@ -5427,6 +5377,7 @@ export declare const app: Elysia<"", {
5427
5377
  transmissionCode: string | null;
5428
5378
  driveTrain: string | null;
5429
5379
  km: number;
5380
+ customData: unknown;
5430
5381
  }[];
5431
5382
  }[];
5432
5383
  };
@@ -6291,6 +6242,7 @@ export declare const app: Elysia<"", {
6291
6242
  transmissionCode: string | null;
6292
6243
  driveTrain: string | null;
6293
6244
  km: number;
6245
+ customData: unknown;
6294
6246
  companyId: string | null;
6295
6247
  id: string;
6296
6248
  createdAt: string;
@@ -6522,7 +6474,7 @@ export declare const app: Elysia<"", {
6522
6474
  };
6523
6475
  400: string;
6524
6476
  401: "Session not found";
6525
- 404: "Үзлэг олдсонгүй.";
6477
+ 404: "Бараа олдсонгүй." | "Үйлчилгээний төрөл олдсонгүй." | "Үзлэг олдсонгүй.";
6526
6478
  422: {
6527
6479
  type: "validation";
6528
6480
  on: string;
@@ -6614,6 +6566,7 @@ export declare const app: Elysia<"", {
6614
6566
  transmissionCode: string | null;
6615
6567
  driveTrain: string | null;
6616
6568
  km: number;
6569
+ customData: unknown;
6617
6570
  companyId: string | null;
6618
6571
  id: string;
6619
6572
  createdAt: string;