autosync_backend2 1.2.91 → 1.2.96

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.
package/dist/env.d.ts CHANGED
@@ -3,8 +3,6 @@ declare const EnvSchema: import("@sinclair/typebox").TObject<{
3
3
  PORT: import("@sinclair/typebox").TNumber;
4
4
  BETTER_AUTH_SECRET: import("@sinclair/typebox").TString;
5
5
  DATABASE_URL: import("@sinclair/typebox").TString;
6
- UPSTASH_REDIS_REST_URL: import("@sinclair/typebox").TString;
7
- UPSTASH_REDIS_REST_TOKEN: import("@sinclair/typebox").TString;
8
6
  SMTP_USER: import("@sinclair/typebox").TString;
9
7
  SMTP_PASSWORD: import("@sinclair/typebox").TString;
10
8
  ATUT_TOKEN: import("@sinclair/typebox").TString;
@@ -16,6 +14,7 @@ declare const EnvSchema: import("@sinclair/typebox").TObject<{
16
14
  MBANK_PASSWORD: import("@sinclair/typebox").TString;
17
15
  POCKET_CLIENT_ID: import("@sinclair/typebox").TString;
18
16
  POCKET_CLIENT_SECRET: import("@sinclair/typebox").TString;
17
+ REDIS_URL: import("@sinclair/typebox").TString;
19
18
  }>;
20
19
  export type env = typeof EnvSchema.static;
21
20
  declare let env: env;
package/dist/index.d.ts CHANGED
@@ -3696,6 +3696,19 @@ export declare const app: Elysia<"", {
3696
3696
  query: {};
3697
3697
  headers: {};
3698
3698
  response: {
3699
+ 200: {
3700
+ id: string;
3701
+ name: string;
3702
+ email: string;
3703
+ emailVerified: boolean;
3704
+ image: string | null;
3705
+ createdAt: Date;
3706
+ updatedAt: Date;
3707
+ companyId: string;
3708
+ branchId: string;
3709
+ kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
3710
+ employeeId: string | null;
3711
+ };
3699
3712
  401: "Токен олдсонгүй";
3700
3713
  403: "Хандах эрхгүй байна.";
3701
3714
  422: {
@@ -4497,6 +4510,84 @@ export declare const app: Elysia<"", {
4497
4510
  };
4498
4511
  };
4499
4512
  };
4513
+ } & {
4514
+ payment: {
4515
+ pocket: {
4516
+ ":id": {
4517
+ get: {
4518
+ body: unknown;
4519
+ params: {
4520
+ id: string;
4521
+ } & {};
4522
+ query: unknown;
4523
+ headers: unknown;
4524
+ response: {
4525
+ 400: string;
4526
+ 422: {
4527
+ type: "validation";
4528
+ on: string;
4529
+ summary?: string;
4530
+ message?: string;
4531
+ found?: unknown;
4532
+ property?: string;
4533
+ expected?: string;
4534
+ };
4535
+ 500: "Сервер алдаа гарлаа";
4536
+ };
4537
+ };
4538
+ };
4539
+ };
4540
+ };
4541
+ } & {
4542
+ payment: {
4543
+ pocket: {
4544
+ post: {
4545
+ body: {
4546
+ oldId?: number | null | undefined;
4547
+ description?: string | null | undefined;
4548
+ paymentPackageId?: string | null | undefined;
4549
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4550
+ amount: number;
4551
+ cpOrderId: string;
4552
+ paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
4553
+ paymentChannel: string;
4554
+ };
4555
+ params: {};
4556
+ query: {};
4557
+ headers: {};
4558
+ response: {
4559
+ 200: {
4560
+ qrCode: string | undefined;
4561
+ id: string;
4562
+ createdAt: string;
4563
+ updatedAt: string;
4564
+ deletedAt: string | null;
4565
+ oldId: number | null;
4566
+ description: string | null;
4567
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
4568
+ amount: number;
4569
+ cpOrderId: string;
4570
+ paymentPackageId: string | null;
4571
+ paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
4572
+ paymentChannel: string;
4573
+ invoiceNumber: string | null;
4574
+ };
4575
+ 400: string;
4576
+ 401: "Токен олдсонгүй";
4577
+ 422: {
4578
+ type: "validation";
4579
+ on: string;
4580
+ summary?: string;
4581
+ message?: string;
4582
+ found?: unknown;
4583
+ property?: string;
4584
+ expected?: string;
4585
+ };
4586
+ 500: "Сервер алдаа гарлаа";
4587
+ };
4588
+ };
4589
+ };
4590
+ };
4500
4591
  } & {
4501
4592
  payment: {
4502
4593
  info: {
@@ -11232,6 +11323,18 @@ export declare const app: Elysia<"", {
11232
11323
  query: unknown;
11233
11324
  headers: unknown;
11234
11325
  response: {
11326
+ 200: {
11327
+ companyId: string;
11328
+ name: string;
11329
+ description: string | null;
11330
+ dateStart: Date | null;
11331
+ dateEnd: Date | null;
11332
+ id: string;
11333
+ createdAt: string;
11334
+ updatedAt: string;
11335
+ deletedAt: string | null;
11336
+ oldId: number | null;
11337
+ };
11235
11338
  401: "Токен олдсонгүй";
11236
11339
  403: "Хандах эрхгүй байна.";
11237
11340
  422: {
@@ -11742,7 +11845,8 @@ export declare const app: Elysia<"", {
11742
11845
  body: unknown;
11743
11846
  params: {};
11744
11847
  query: {
11745
- workOrderId?: string | null | undefined;
11848
+ workOrderId?: string | undefined;
11849
+ isWorkOrderId?: boolean | undefined;
11746
11850
  pagination: {
11747
11851
  size: number;
11748
11852
  page: number;