autosync_backend2 1.2.10 → 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.
- package/dist/index.d.ts +10 -82
- package/dist/index.js +12544 -3491
- 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
|
-
}
|
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
|
};
|
@@ -3839,6 +3766,7 @@ export declare const app: Elysia<"", {
|
|
3839
3766
|
type?: "Service" | "ProductSell" | undefined;
|
3840
3767
|
id?: string | undefined;
|
3841
3768
|
createdAt?: string | undefined;
|
3769
|
+
oldId?: number | undefined;
|
3842
3770
|
phone?: string | undefined;
|
3843
3771
|
vehicleId?: string | undefined;
|
3844
3772
|
licensePlate?: string | undefined;
|