autosync_backend2 1.2.104 → 1.2.106

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
@@ -211,6 +211,7 @@ export declare const app: Elysia<"", {
211
211
  token: string;
212
212
  ipAddress?: string | null | undefined | undefined;
213
213
  userAgent?: string | null | undefined | undefined;
214
+ impersonatedBy?: string | null | undefined;
214
215
  };
215
216
  company: {
216
217
  type: "AutoService" | "MiningFleet" | "UrbanTransportFleet" | "Long-haul/Logistics" | "Emergency/Medical/Police" | "CorporateFleet";
@@ -396,6 +397,7 @@ export declare const app: Elysia<"", {
396
397
  token: string;
397
398
  ipAddress?: string | null | undefined | undefined;
398
399
  userAgent?: string | null | undefined | undefined;
400
+ impersonatedBy?: string | null | undefined;
399
401
  };
400
402
  company: {
401
403
  type: "AutoService" | "MiningFleet" | "UrbanTransportFleet" | "Long-haul/Logistics" | "Emergency/Medical/Police" | "CorporateFleet";
@@ -581,6 +583,7 @@ export declare const app: Elysia<"", {
581
583
  token: string;
582
584
  ipAddress?: string | null | undefined | undefined;
583
585
  userAgent?: string | null | undefined | undefined;
586
+ impersonatedBy?: string | null | undefined;
584
587
  };
585
588
  company: {
586
589
  type: "AutoService" | "MiningFleet" | "UrbanTransportFleet" | "Long-haul/Logistics" | "Emergency/Medical/Police" | "CorporateFleet";
@@ -4989,6 +4992,7 @@ export declare const app: Elysia<"", {
4989
4992
  params: {};
4990
4993
  query: {
4991
4994
  branchId?: string | undefined;
4995
+ banned?: boolean | null | undefined;
4992
4996
  pagination: {
4993
4997
  size: number;
4994
4998
  page: number;
@@ -5016,6 +5020,10 @@ export declare const app: Elysia<"", {
5016
5020
  branchId: string;
5017
5021
  kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
5018
5022
  employeeId: string | null;
5023
+ role: string | null;
5024
+ banned: boolean | null;
5025
+ banReason: string | null;
5026
+ banExpires: Date | null;
5019
5027
  }[];
5020
5028
  };
5021
5029
  401: "Токен олдсонгүй";
@@ -5066,6 +5074,10 @@ export declare const app: Elysia<"", {
5066
5074
  branchId: string;
5067
5075
  kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
5068
5076
  employeeId?: string | null | undefined;
5077
+ banned: boolean | null | undefined;
5078
+ role?: string | null | undefined;
5079
+ banReason?: string | null | undefined;
5080
+ banExpires?: Date | null | undefined;
5069
5081
  };
5070
5082
  401: "Токен олдсонгүй";
5071
5083
  402: "Системийн төлбөр хийгдээгүй байна. 88046194";
@@ -5132,6 +5144,10 @@ export declare const app: Elysia<"", {
5132
5144
  branchId?: string | undefined;
5133
5145
  kind?: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION" | undefined;
5134
5146
  employeeId?: string | null | undefined;
5147
+ role?: string | null | undefined;
5148
+ banned?: boolean | null | undefined;
5149
+ banReason?: string | null | undefined;
5150
+ banExpires?: Date | null | undefined;
5135
5151
  password?: string | undefined;
5136
5152
  permissions: never[];
5137
5153
  };
@@ -5153,6 +5169,10 @@ export declare const app: Elysia<"", {
5153
5169
  branchId: string;
5154
5170
  kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
5155
5171
  employeeId: string | null;
5172
+ role: string | null;
5173
+ banned: boolean | null;
5174
+ banReason: string | null;
5175
+ banExpires: Date | null;
5156
5176
  };
5157
5177
  401: "Токен олдсонгүй";
5158
5178
  402: "Системийн төлбөр хийгдээгүй байна. 88046194";
@@ -6027,28 +6047,77 @@ export declare const app: Elysia<"", {
6027
6047
  params: {};
6028
6048
  query: {};
6029
6049
  headers: {};
6050
+ response: {
6051
+ 200: {};
6052
+ 401: "Токен олдсонгүй";
6053
+ 402: "Системийн төлбөр хийгдээгүй байна. 88046194";
6054
+ 422: {
6055
+ type: "validation";
6056
+ on: string;
6057
+ summary?: string;
6058
+ message?: string;
6059
+ found?: unknown;
6060
+ property?: string;
6061
+ expected?: string;
6062
+ };
6063
+ };
6064
+ };
6065
+ };
6066
+ };
6067
+ } & {
6068
+ payment: {
6069
+ "cabpay-data": {
6070
+ get: {
6071
+ body: {};
6072
+ params: {};
6073
+ query: {
6074
+ date?: string | undefined;
6075
+ companyId?: string | undefined;
6076
+ };
6077
+ headers: {};
6030
6078
  response: {
6031
6079
  200: {
6032
- qrCode: string;
6033
- deeplink: string;
6034
- id: string;
6035
- createdAt: string;
6036
- updatedAt: string;
6037
- deletedAt: string | null;
6038
- oldId: number | null;
6039
- state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
6040
- amount: number;
6041
- paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
6042
- paymentChannel: string;
6043
- description: string | null;
6044
- cpOrderId: string;
6045
- paymentPackageId: string | null;
6046
- invoiceNumber: string | null;
6047
- pocketOrderNumber: string | null;
6080
+ payments: {
6081
+ cp_order: {
6082
+ companyId: string;
6083
+ companyBranchId: string;
6084
+ customerId: string | null;
6085
+ vehicleId: string | null;
6086
+ orderId: string;
6087
+ state: "CREATED" | "PROGRESSING" | "COMPLETE";
6088
+ isNoat: boolean | null;
6089
+ timeCompleted: string | null;
6090
+ km: number;
6091
+ type: "Service" | "ProductSell";
6092
+ description: string | null;
6093
+ id: string;
6094
+ createdAt: string;
6095
+ updatedAt: string;
6096
+ deletedAt: string | null;
6097
+ oldId: number | null;
6098
+ };
6099
+ cp_order_payment: {
6100
+ cpOrderId: string;
6101
+ paymentPackageId: string | null;
6102
+ paymentMethod: "CASH" | "BANK_TRANSFER" | "POS_TERMINAL" | "PAYMENT_PACKAGE" | "CARD";
6103
+ paymentChannel: string;
6104
+ amount: number;
6105
+ state: "PENDING" | "EXPIRED" | "PAID" | "FAILED" | "REFUNDED" | "NOT_PAID" | "DECLINED" | "CANCELED" | "REFUNDING";
6106
+ invoiceNumber: string | null;
6107
+ description: string | null;
6108
+ pocketOrderNumber: string | null;
6109
+ id: string;
6110
+ createdAt: string;
6111
+ updatedAt: string;
6112
+ deletedAt: string | null;
6113
+ oldId: number | null;
6114
+ };
6115
+ }[];
6116
+ totalAmount: string | number;
6048
6117
  };
6049
- 400: string;
6050
6118
  401: "Токен олдсонгүй";
6051
6119
  402: "Системийн төлбөр хийгдээгүй байна. 88046194";
6120
+ 403: "Хандах эрхгүй байна.";
6052
6121
  422: {
6053
6122
  type: "validation";
6054
6123
  on: string;
@@ -6058,7 +6127,6 @@ export declare const app: Elysia<"", {
6058
6127
  property?: string;
6059
6128
  expected?: string;
6060
6129
  };
6061
- 500: "Сервер алдаа гарлаа";
6062
6130
  };
6063
6131
  };
6064
6132
  };
@@ -14714,6 +14782,10 @@ export declare const app: Elysia<"", {
14714
14782
  branchId: string;
14715
14783
  kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | "INSPECTION";
14716
14784
  employeeId: string | null;
14785
+ role: string | null;
14786
+ banned: boolean | null;
14787
+ banReason: string | null;
14788
+ banExpires: Date | null;
14717
14789
  };
14718
14790
  channel_auth_user: {
14719
14791
  nmChannelId: string;