autosync_backend2 1.0.81 → 1.0.82

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 +171 -0
  2. package/dist/index.js +783 -465
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ declare const app: Elysia<"", {
6
6
  description: string;
7
7
  requiresAdmin?: boolean;
8
8
  }[];
9
+ logic: typeof import("./routes/warehouse/warehouse/logic").default;
9
10
  };
10
11
  store: {};
11
12
  derive: {
@@ -19,6 +20,7 @@ declare const app: Elysia<"", {
19
20
  description: string;
20
21
  requiresAdmin?: boolean;
21
22
  }[];
23
+ logic: typeof import("./routes/warehouse/warehouse/logic").default;
22
24
  };
23
25
  store: {
24
26
  startTime?: number | undefined;
@@ -117,6 +119,10 @@ declare const app: Elysia<"", {
117
119
  }> & import("@sinclair/typebox").TObject<{
118
120
  name: import("@sinclair/typebox").TString;
119
121
  permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
122
+ }> & import("@sinclair/typebox").TObject<{
123
+ name: import("@sinclair/typebox").TString;
124
+ branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
125
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
120
126
  }>;
121
127
  readonly update: import("@sinclair/typebox").TObject<{
122
128
  type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
@@ -184,6 +190,9 @@ declare const app: Elysia<"", {
184
190
  }> & import("@sinclair/typebox").TObject<{
185
191
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
186
192
  permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
193
+ }> & import("@sinclair/typebox").TObject<{
194
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
195
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
187
196
  }>;
188
197
  readonly select: import("@sinclair/typebox").TObject<{
189
198
  type: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TUnionEnum<["Сэлбэг", "Тос", "Дугуй", "Будаг", "Аккумлятор"]>>;
@@ -289,6 +298,12 @@ declare const app: Elysia<"", {
289
298
  page: import("@sinclair/typebox").TInteger;
290
299
  size: import("@sinclair/typebox").TInteger;
291
300
  }>;
301
+ }> & import("@sinclair/typebox").TObject<{
302
+ branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
303
+ pagination: import("@sinclair/typebox").TObject<{
304
+ page: import("@sinclair/typebox").TInteger;
305
+ size: import("@sinclair/typebox").TInteger;
306
+ }>;
292
307
  }>;
293
308
  readonly importSchema: import("@sinclair/typebox").TObject<{
294
309
  file: import("@sinclair/typebox").TUnsafe<File>;
@@ -391,6 +406,10 @@ declare const app: Elysia<"", {
391
406
  }> & import("@sinclair/typebox").TObject<{
392
407
  name: import("@sinclair/typebox").TString;
393
408
  permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
409
+ }> & import("@sinclair/typebox").TObject<{
410
+ name: import("@sinclair/typebox").TString;
411
+ branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
412
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
394
413
  }>;
395
414
  readonly update: import("@sinclair/typebox").TObject<{
396
415
  type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
@@ -458,6 +477,9 @@ declare const app: Elysia<"", {
458
477
  }> & import("@sinclair/typebox").TObject<{
459
478
  name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
460
479
  permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
480
+ }> & import("@sinclair/typebox").TObject<{
481
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
482
+ description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
461
483
  }>;
462
484
  readonly select: import("@sinclair/typebox").TObject<{
463
485
  type: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TUnionEnum<["Сэлбэг", "Тос", "Дугуй", "Будаг", "Аккумлятор"]>>;
@@ -563,6 +585,12 @@ declare const app: Elysia<"", {
563
585
  page: import("@sinclair/typebox").TInteger;
564
586
  size: import("@sinclair/typebox").TInteger;
565
587
  }>;
588
+ }> & import("@sinclair/typebox").TObject<{
589
+ branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
590
+ pagination: import("@sinclair/typebox").TObject<{
591
+ page: import("@sinclair/typebox").TInteger;
592
+ size: import("@sinclair/typebox").TInteger;
593
+ }>;
566
594
  }>;
567
595
  readonly importSchema: import("@sinclair/typebox").TObject<{
568
596
  file: import("@sinclair/typebox").TUnsafe<File>;
@@ -3384,6 +3412,149 @@ declare const app: Elysia<"", {
3384
3412
  };
3385
3413
  };
3386
3414
  };
3415
+ } & {
3416
+ api: {
3417
+ warehouse: {
3418
+ warehouse: {};
3419
+ } & {
3420
+ warehouse: {
3421
+ get: {
3422
+ body: unknown;
3423
+ params: {};
3424
+ query: {
3425
+ branchId?: string | undefined;
3426
+ pagination: {
3427
+ size: number;
3428
+ page: number;
3429
+ };
3430
+ };
3431
+ headers: unknown;
3432
+ response: {
3433
+ 200: {
3434
+ totalCount: number;
3435
+ totalPage: number;
3436
+ result: {
3437
+ companyId: string;
3438
+ branchId: string | null;
3439
+ name: string;
3440
+ description: string | null;
3441
+ id: string;
3442
+ createdAt: string;
3443
+ updatedAt: string;
3444
+ deletedAt: string | null;
3445
+ }[];
3446
+ };
3447
+ 422: {
3448
+ type: "validation";
3449
+ on: string;
3450
+ summary?: string;
3451
+ message?: string;
3452
+ found?: unknown;
3453
+ property?: string;
3454
+ expected?: string;
3455
+ };
3456
+ };
3457
+ };
3458
+ };
3459
+ } & {
3460
+ warehouse: {
3461
+ post: {
3462
+ body: {
3463
+ branchId?: string | null | undefined;
3464
+ description?: string | null | undefined;
3465
+ name: string;
3466
+ };
3467
+ params: {};
3468
+ query: unknown;
3469
+ headers: unknown;
3470
+ response: {
3471
+ 200: {
3472
+ name: string;
3473
+ id: string;
3474
+ createdAt: string;
3475
+ updatedAt: string;
3476
+ branchId: string | null;
3477
+ deletedAt: string | null;
3478
+ description: string | null;
3479
+ companyId: string;
3480
+ };
3481
+ 422: {
3482
+ type: "validation";
3483
+ on: string;
3484
+ summary?: string;
3485
+ message?: string;
3486
+ found?: unknown;
3487
+ property?: string;
3488
+ expected?: string;
3489
+ };
3490
+ };
3491
+ };
3492
+ };
3493
+ } & {
3494
+ warehouse: {
3495
+ ":id": {
3496
+ put: {
3497
+ body: {
3498
+ name?: string | undefined;
3499
+ description?: string | null | undefined;
3500
+ };
3501
+ params: {
3502
+ id: string;
3503
+ };
3504
+ query: unknown;
3505
+ headers: unknown;
3506
+ response: {
3507
+ 200: {
3508
+ companyId: string;
3509
+ branchId: string | null;
3510
+ name: string;
3511
+ description: string | null;
3512
+ id: string;
3513
+ createdAt: string;
3514
+ updatedAt: string;
3515
+ deletedAt: string | null;
3516
+ };
3517
+ 404: "Агуулах олдсонгүй.";
3518
+ 422: {
3519
+ type: "validation";
3520
+ on: string;
3521
+ summary?: string;
3522
+ message?: string;
3523
+ found?: unknown;
3524
+ property?: string;
3525
+ expected?: string;
3526
+ };
3527
+ };
3528
+ };
3529
+ };
3530
+ };
3531
+ } & {
3532
+ warehouse: {
3533
+ ":id": {
3534
+ delete: {
3535
+ body: unknown;
3536
+ params: {
3537
+ id: string;
3538
+ };
3539
+ query: unknown;
3540
+ headers: unknown;
3541
+ response: {
3542
+ 200: void;
3543
+ 422: {
3544
+ type: "validation";
3545
+ on: string;
3546
+ summary?: string;
3547
+ message?: string;
3548
+ found?: unknown;
3549
+ property?: string;
3550
+ expected?: string;
3551
+ };
3552
+ };
3553
+ };
3554
+ };
3555
+ };
3556
+ };
3557
+ };
3387
3558
  }, {
3388
3559
  derive: {};
3389
3560
  resolve: {};