autosync_backend2 1.2.99 → 1.2.100

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/index.d.ts CHANGED
@@ -5861,6 +5861,71 @@ export declare const app: Elysia<"", {
5861
5861
  };
5862
5862
  };
5863
5863
  };
5864
+ } & {
5865
+ payment: {
5866
+ "pocket-data": {
5867
+ get: {
5868
+ body: unknown;
5869
+ params: {};
5870
+ query: {
5871
+ date?: string | undefined;
5872
+ companyId?: string | undefined;
5873
+ };
5874
+ headers: unknown;
5875
+ response: {
5876
+ 200: {
5877
+ payments: {
5878
+ cp_order: {
5879
+ companyId: string;
5880
+ companyBranchId: string;
5881
+ customerId: string | null;
5882
+ vehicleId: string | null;
5883
+ orderId: string;
5884
+ state: "CREATED" | "PROGRESSING" | "COMPLETE";
5885
+ isNoat: boolean | null;
5886
+ timeCompleted: string | null;
5887
+ km: number;
5888
+ type: "Service" | "ProductSell";
5889
+ description: string | null;
5890
+ id: string;
5891
+ createdAt: string;
5892
+ updatedAt: string;
5893
+ deletedAt: string | null;
5894
+ oldId: number | null;
5895
+ };
5896
+ cp_order_payment: {
5897
+ cpOrderId: string;
5898
+ paymentPackageId: string | null;
5899
+ paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
5900
+ paymentChannel: string;
5901
+ amount: number;
5902
+ state: "PENDING" | "FAILED" | "PAID" | "NOT_PAID" | "EXPIRED" | "DECLINED" | "CANCELED" | "REFUNDING" | "REFUNDED";
5903
+ invoiceNumber: string | null;
5904
+ description: string | null;
5905
+ id: string;
5906
+ createdAt: string;
5907
+ updatedAt: string;
5908
+ deletedAt: string | null;
5909
+ oldId: number | null;
5910
+ };
5911
+ }[];
5912
+ totalAmount: string | number;
5913
+ };
5914
+ 401: "Токен олдсонгүй";
5915
+ 403: "Хандах эрхгүй байна.";
5916
+ 422: {
5917
+ type: "validation";
5918
+ on: string;
5919
+ summary?: string;
5920
+ message?: string;
5921
+ found?: unknown;
5922
+ property?: string;
5923
+ expected?: string;
5924
+ };
5925
+ };
5926
+ };
5927
+ };
5928
+ };
5864
5929
  } & {
5865
5930
  payment: {
5866
5931
  info: {
package/dist/index.js CHANGED
@@ -327374,6 +327374,8 @@ var paymentRoutes2 = new Elysia({
327374
327374
  auth: true
327375
327375
  }).guard({
327376
327376
  userKind: "ADMIN"
327377
+ }).get("/pocket-data", async ({ query }) => logic_default22.getPocketData(query), {
327378
+ query: model_default20.getPocketData
327377
327379
  }).get("/info", async () => logic_default22.selectPaymentInfo()).post("/info", async ({ body }) => logic_default22.createPaymentInfo(body), {
327378
327380
  body: model_default20.createPaymentInfo
327379
327381
  }).delete("/info/:id", async ({ params: { id } }) => logic_default22.removePaymentInfo(id), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autosync_backend2",
3
- "version": "1.2.99",
3
+ "version": "1.2.100",
4
4
  "module": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",