autosync_backend2 1.0.82 → 1.0.83
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 +1368 -328
- package/dist/index.js +225 -36
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +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
|
+
logic: typeof import("./routes/warehouse/warehouse/logic").default & typeof import("./routes/warehouse/product/logic").default & typeof import("./routes/warehouse/item/logic").default;
|
|
10
10
|
};
|
|
11
11
|
store: {};
|
|
12
12
|
derive: {
|
|
@@ -20,7 +20,7 @@ declare const app: Elysia<"", {
|
|
|
20
20
|
description: string;
|
|
21
21
|
requiresAdmin?: boolean;
|
|
22
22
|
}[];
|
|
23
|
-
logic: typeof import("./routes/warehouse/warehouse/logic").default;
|
|
23
|
+
logic: typeof import("./routes/warehouse/warehouse/logic").default & typeof import("./routes/warehouse/product/logic").default & typeof import("./routes/warehouse/item/logic").default;
|
|
24
24
|
};
|
|
25
25
|
store: {
|
|
26
26
|
startTime?: number | undefined;
|
|
@@ -69,60 +69,6 @@ declare const app: Elysia<"", {
|
|
|
69
69
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
70
70
|
itemId: import("@sinclair/typebox").TString;
|
|
71
71
|
images: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
72
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
73
|
-
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
74
|
-
quantity: import("@sinclair/typebox").TNumber;
|
|
75
|
-
itemId: import("@sinclair/typebox").TString;
|
|
76
|
-
}>>;
|
|
77
|
-
to: import("@sinclair/typebox").TString;
|
|
78
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
79
|
-
name: import("@sinclair/typebox").TString;
|
|
80
|
-
email: import("@sinclair/typebox").TString;
|
|
81
|
-
regNumber: import("@sinclair/typebox").TString;
|
|
82
|
-
phone: import("@sinclair/typebox").TString;
|
|
83
|
-
serviceName: import("@sinclair/typebox").TString;
|
|
84
|
-
logoUrl: import("@sinclair/typebox").TString;
|
|
85
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
86
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
87
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
88
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
89
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
90
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
91
|
-
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
92
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
93
|
-
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
94
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
95
|
-
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
96
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
97
|
-
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
98
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
99
|
-
name: import("@sinclair/typebox").TString;
|
|
100
|
-
email: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
101
|
-
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
102
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
103
|
-
phone: import("@sinclair/typebox").TRegExp;
|
|
104
|
-
logoUrl: import("@sinclair/typebox").TString;
|
|
105
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
106
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
107
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
108
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
109
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
110
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
111
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
112
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
113
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
114
|
-
packageId: import("@sinclair/typebox").TString;
|
|
115
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
116
|
-
name: import("@sinclair/typebox").TString;
|
|
117
|
-
rowCount: import("@sinclair/typebox").TInteger;
|
|
118
|
-
price: import("@sinclair/typebox").TNumber;
|
|
119
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
120
|
-
name: import("@sinclair/typebox").TString;
|
|
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]>>;
|
|
126
72
|
}>;
|
|
127
73
|
readonly update: import("@sinclair/typebox").TObject<{
|
|
128
74
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
|
|
@@ -146,53 +92,6 @@ declare const app: Elysia<"", {
|
|
|
146
92
|
}> & import("@sinclair/typebox").TObject<{
|
|
147
93
|
name: import("@sinclair/typebox").TString;
|
|
148
94
|
image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
149
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
150
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
151
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
152
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
153
|
-
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
154
|
-
serviceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
155
|
-
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
156
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
157
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
158
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
159
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
160
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
161
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
162
|
-
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
163
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
164
|
-
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
165
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
166
|
-
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
167
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
168
|
-
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
169
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
170
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
171
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
172
|
-
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
173
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
174
|
-
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
175
|
-
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
176
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
177
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
178
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
179
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
180
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
181
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
182
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
183
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
184
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
185
|
-
packageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
186
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
187
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
188
|
-
rowCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
189
|
-
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
190
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
191
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
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]>>;
|
|
196
95
|
}>;
|
|
197
96
|
readonly select: import("@sinclair/typebox").TObject<{
|
|
198
97
|
type: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TUnionEnum<["Сэлбэг", "Тос", "Дугуй", "Будаг", "Аккумлятор"]>>;
|
|
@@ -238,7 +137,12 @@ declare const app: Elysia<"", {
|
|
|
238
137
|
page: import("@sinclair/typebox").TInteger;
|
|
239
138
|
size: import("@sinclair/typebox").TInteger;
|
|
240
139
|
}>;
|
|
241
|
-
}
|
|
140
|
+
}>;
|
|
141
|
+
readonly importSchema: import("@sinclair/typebox").TObject<{
|
|
142
|
+
file: import("@sinclair/typebox").TUnsafe<File>;
|
|
143
|
+
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
144
|
+
}>;
|
|
145
|
+
readonly "InventoryTransferModel.select": import("@sinclair/typebox").TObject<{
|
|
242
146
|
createdAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
243
147
|
createdUserId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
244
148
|
inventory: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -259,7 +163,60 @@ declare const app: Elysia<"", {
|
|
|
259
163
|
page: import("@sinclair/typebox").TInteger;
|
|
260
164
|
size: import("@sinclair/typebox").TInteger;
|
|
261
165
|
}>;
|
|
262
|
-
}
|
|
166
|
+
}>;
|
|
167
|
+
readonly "InventoryTransferModel.create": import("@sinclair/typebox").TObject<{
|
|
168
|
+
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
169
|
+
quantity: import("@sinclair/typebox").TNumber;
|
|
170
|
+
itemId: import("@sinclair/typebox").TString;
|
|
171
|
+
}>>;
|
|
172
|
+
to: import("@sinclair/typebox").TString;
|
|
173
|
+
}>;
|
|
174
|
+
readonly "InventoryTransferModel.approve": import("@sinclair/typebox").TObject<{
|
|
175
|
+
id: import("@sinclair/typebox").TString;
|
|
176
|
+
}>;
|
|
177
|
+
readonly "CompanyCompanyModel.create": import("@sinclair/typebox").TObject<{
|
|
178
|
+
name: import("@sinclair/typebox").TString;
|
|
179
|
+
email: import("@sinclair/typebox").TString;
|
|
180
|
+
regNumber: import("@sinclair/typebox").TString;
|
|
181
|
+
phone: import("@sinclair/typebox").TString;
|
|
182
|
+
serviceName: import("@sinclair/typebox").TString;
|
|
183
|
+
logoUrl: import("@sinclair/typebox").TString;
|
|
184
|
+
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
185
|
+
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
186
|
+
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
187
|
+
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
188
|
+
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
189
|
+
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
190
|
+
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
191
|
+
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
192
|
+
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
193
|
+
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
194
|
+
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
195
|
+
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
196
|
+
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
197
|
+
}>;
|
|
198
|
+
readonly "CompanyCompanyModel.update": import("@sinclair/typebox").TObject<{
|
|
199
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
200
|
+
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
201
|
+
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
202
|
+
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
203
|
+
serviceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
204
|
+
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
205
|
+
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
206
|
+
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
207
|
+
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
208
|
+
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
209
|
+
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
210
|
+
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
211
|
+
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
212
|
+
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
213
|
+
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
214
|
+
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
215
|
+
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
216
|
+
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
217
|
+
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
218
|
+
}>;
|
|
219
|
+
readonly "CompanyCompanyModel.select": import("@sinclair/typebox").TObject<{
|
|
263
220
|
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
264
221
|
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRegExp>;
|
|
265
222
|
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -268,7 +225,44 @@ declare const app: Elysia<"", {
|
|
|
268
225
|
page: import("@sinclair/typebox").TInteger;
|
|
269
226
|
size: import("@sinclair/typebox").TInteger;
|
|
270
227
|
}>;
|
|
271
|
-
}
|
|
228
|
+
}>;
|
|
229
|
+
readonly "CompanyBranchModel.create": import("@sinclair/typebox").TObject<{
|
|
230
|
+
name: import("@sinclair/typebox").TString;
|
|
231
|
+
email: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
232
|
+
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
233
|
+
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
234
|
+
phone: import("@sinclair/typebox").TRegExp;
|
|
235
|
+
logoUrl: import("@sinclair/typebox").TString;
|
|
236
|
+
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
237
|
+
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
238
|
+
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
239
|
+
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
240
|
+
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
241
|
+
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
242
|
+
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
243
|
+
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
244
|
+
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
245
|
+
packageId: import("@sinclair/typebox").TString;
|
|
246
|
+
}>;
|
|
247
|
+
readonly "CompanyBranchModel.update": import("@sinclair/typebox").TObject<{
|
|
248
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
249
|
+
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
250
|
+
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
251
|
+
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
252
|
+
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
253
|
+
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
254
|
+
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
255
|
+
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
256
|
+
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
257
|
+
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
258
|
+
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
259
|
+
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
260
|
+
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
261
|
+
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
262
|
+
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
263
|
+
packageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
264
|
+
}>;
|
|
265
|
+
readonly "CompanyBranchModel.select": import("@sinclair/typebox").TObject<{
|
|
272
266
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
273
267
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
274
268
|
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
@@ -293,123 +287,163 @@ declare const app: Elysia<"", {
|
|
|
293
287
|
page: import("@sinclair/typebox").TInteger;
|
|
294
288
|
size: import("@sinclair/typebox").TInteger;
|
|
295
289
|
}>;
|
|
296
|
-
}
|
|
290
|
+
}>;
|
|
291
|
+
readonly "CompanyPackageModel.create": import("@sinclair/typebox").TObject<{
|
|
292
|
+
name: import("@sinclair/typebox").TString;
|
|
293
|
+
rowCount: import("@sinclair/typebox").TInteger;
|
|
294
|
+
price: import("@sinclair/typebox").TNumber;
|
|
295
|
+
}>;
|
|
296
|
+
readonly "CompanyPackageModel.update": import("@sinclair/typebox").TObject<{
|
|
297
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
298
|
+
rowCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
299
|
+
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
300
|
+
}>;
|
|
301
|
+
readonly "PermissionModel.create": import("@sinclair/typebox").TObject<{
|
|
302
|
+
name: import("@sinclair/typebox").TString;
|
|
303
|
+
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
304
|
+
}>;
|
|
305
|
+
readonly "PermissionModel.update": import("@sinclair/typebox").TObject<{
|
|
306
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
307
|
+
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
308
|
+
}>;
|
|
309
|
+
readonly "PermissionModel.select": import("@sinclair/typebox").TObject<{
|
|
297
310
|
pagination: import("@sinclair/typebox").TObject<{
|
|
298
311
|
page: import("@sinclair/typebox").TInteger;
|
|
299
312
|
size: import("@sinclair/typebox").TInteger;
|
|
300
313
|
}>;
|
|
301
|
-
}
|
|
314
|
+
}>;
|
|
315
|
+
readonly "PermissionModel.addPermission": import("@sinclair/typebox").TObject<{
|
|
316
|
+
userId: import("@sinclair/typebox").TString;
|
|
317
|
+
permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
318
|
+
}>;
|
|
319
|
+
readonly "Warehouse.create": import("@sinclair/typebox").TObject<{
|
|
320
|
+
name: import("@sinclair/typebox").TString;
|
|
321
|
+
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
322
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
323
|
+
}>;
|
|
324
|
+
readonly "Warehouse.update": import("@sinclair/typebox").TObject<{
|
|
325
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
326
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
327
|
+
}>;
|
|
328
|
+
readonly "Warehouse.select": import("@sinclair/typebox").TObject<{
|
|
302
329
|
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
303
330
|
pagination: import("@sinclair/typebox").TObject<{
|
|
304
331
|
page: import("@sinclair/typebox").TInteger;
|
|
305
332
|
size: import("@sinclair/typebox").TInteger;
|
|
306
333
|
}>;
|
|
307
334
|
}>;
|
|
308
|
-
readonly
|
|
309
|
-
|
|
310
|
-
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
311
|
-
}>;
|
|
312
|
-
readonly approve: import("@sinclair/typebox").TObject<{
|
|
313
|
-
id: import("@sinclair/typebox").TString;
|
|
314
|
-
}>;
|
|
315
|
-
readonly addPermission: import("@sinclair/typebox").TObject<{
|
|
316
|
-
userId: import("@sinclair/typebox").TString;
|
|
317
|
-
permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
318
|
-
}>;
|
|
319
|
-
};
|
|
320
|
-
error: {};
|
|
321
|
-
} | {
|
|
322
|
-
typebox: {
|
|
323
|
-
Import: <Key extends never>(key: Key, options?: import("@sinclair/typebox").SchemaOptions) => import("@sinclair/typebox").TImport<{}, Key>;
|
|
324
|
-
readonly create: import("@sinclair/typebox").TObject<{
|
|
325
|
-
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
|
|
326
|
-
Сэлбэг: "Сэлбэг";
|
|
327
|
-
Тос: "Тос";
|
|
328
|
-
Дугуй: "Дугуй";
|
|
329
|
-
Будаг: "Будаг";
|
|
330
|
-
Аккумлятор: "Аккумлятор";
|
|
331
|
-
}>, import("@sinclair/typebox").TNull]>>;
|
|
335
|
+
readonly "WarehouseProductModel.create": import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
336
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
332
337
|
name: import("@sinclair/typebox").TString;
|
|
333
|
-
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
334
|
-
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
335
338
|
partNumber: import("@sinclair/typebox").TString;
|
|
336
|
-
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
337
|
-
sellPrice: import("@sinclair/typebox").TNumber;
|
|
338
|
-
buyPrice: import("@sinclair/typebox").TNumber;
|
|
339
339
|
supplierId: import("@sinclair/typebox").TString;
|
|
340
340
|
barCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
341
|
-
safetyStock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
342
341
|
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
343
342
|
oen: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
344
|
-
shelfNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
345
343
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
344
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
345
|
+
priceSell: import("@sinclair/typebox").TNumber;
|
|
346
|
+
priceBuy: import("@sinclair/typebox").TNumber;
|
|
347
|
+
}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
348
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
352
349
|
name: import("@sinclair/typebox").TString;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
350
|
+
partNumber: import("@sinclair/typebox").TString;
|
|
351
|
+
supplierId: import("@sinclair/typebox").TString;
|
|
352
|
+
barCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
353
|
+
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
354
|
+
oen: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
356
355
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
356
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
357
|
+
priceSell: import("@sinclair/typebox").TNumber;
|
|
358
|
+
priceBuy: import("@sinclair/typebox").TNumber;
|
|
359
|
+
}>>]>;
|
|
360
|
+
readonly "WarehouseProductModel.update": import("@sinclair/typebox").TObject<{
|
|
361
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
362
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
363
|
+
partNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
364
|
+
supplierId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
365
|
+
barCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
366
|
+
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
367
|
+
oen: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
368
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
369
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
370
|
+
priceSell: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
371
|
+
priceBuy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
372
|
+
companyId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
373
|
+
}>;
|
|
374
|
+
readonly "WarehouseProductModel.select": import("@sinclair/typebox").TObject<{
|
|
375
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
376
|
+
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
377
|
+
supplierId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
378
|
+
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
379
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
380
|
+
priceSell: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
381
|
+
pagination: import("@sinclair/typebox").TObject<{
|
|
382
|
+
page: import("@sinclair/typebox").TInteger;
|
|
383
|
+
size: import("@sinclair/typebox").TInteger;
|
|
384
|
+
}>;
|
|
385
|
+
}>;
|
|
386
|
+
readonly "WarehouseItemModel.create": import("@sinclair/typebox").TObject<{
|
|
387
|
+
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
388
|
+
safetyStock: import("@sinclair/typebox").TNumber;
|
|
389
|
+
shelfNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
390
|
+
productId: import("@sinclair/typebox").TString;
|
|
391
|
+
warehouseId: import("@sinclair/typebox").TString;
|
|
392
|
+
}>;
|
|
393
|
+
readonly "WarehouseItemModel.update": import("@sinclair/typebox").TObject<{
|
|
394
|
+
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
395
|
+
safetyStock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
396
|
+
shelfNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
397
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
398
|
+
warehouseId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
399
|
+
}>;
|
|
400
|
+
readonly "WarehouseItemModel.createMany": import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
401
|
+
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
402
|
+
safetyStock: import("@sinclair/typebox").TNumber;
|
|
403
|
+
shelfNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
404
|
+
productId: import("@sinclair/typebox").TString;
|
|
405
|
+
warehouseId: import("@sinclair/typebox").TString;
|
|
406
|
+
}>>;
|
|
407
|
+
};
|
|
408
|
+
error: {};
|
|
409
|
+
} | {
|
|
410
|
+
typebox: {
|
|
411
|
+
Import: <Key extends never>(key: Key, options?: import("@sinclair/typebox").SchemaOptions) => import("@sinclair/typebox").TImport<{}, Key>;
|
|
412
|
+
readonly create: import("@sinclair/typebox").TObject<{
|
|
413
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
|
|
414
|
+
Сэлбэг: "Сэлбэг";
|
|
415
|
+
Тос: "Тос";
|
|
416
|
+
Дугуй: "Дугуй";
|
|
417
|
+
Будаг: "Будаг";
|
|
418
|
+
Аккумлятор: "Аккумлятор";
|
|
419
|
+
}>, import("@sinclair/typebox").TNull]>>;
|
|
386
420
|
name: import("@sinclair/typebox").TString;
|
|
387
|
-
email: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
388
421
|
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
packageId: import("@sinclair/typebox").TString;
|
|
422
|
+
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
423
|
+
partNumber: import("@sinclair/typebox").TString;
|
|
424
|
+
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
425
|
+
sellPrice: import("@sinclair/typebox").TNumber;
|
|
426
|
+
buyPrice: import("@sinclair/typebox").TNumber;
|
|
427
|
+
supplierId: import("@sinclair/typebox").TString;
|
|
428
|
+
barCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
429
|
+
safetyStock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
430
|
+
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
431
|
+
oen: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
432
|
+
shelfNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
433
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
402
434
|
}> & import("@sinclair/typebox").TObject<{
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
435
|
+
itemId: import("@sinclair/typebox").TString;
|
|
436
|
+
quantity: import("@sinclair/typebox").TNumber;
|
|
437
|
+
description: import("@sinclair/typebox").TString;
|
|
438
|
+
userId: import("@sinclair/typebox").TString;
|
|
406
439
|
}> & import("@sinclair/typebox").TObject<{
|
|
407
440
|
name: import("@sinclair/typebox").TString;
|
|
408
|
-
|
|
441
|
+
image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
409
442
|
}> & import("@sinclair/typebox").TObject<{
|
|
410
|
-
|
|
411
|
-
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
443
|
+
quantity: import("@sinclair/typebox").TNumber;
|
|
412
444
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
445
|
+
itemId: import("@sinclair/typebox").TString;
|
|
446
|
+
images: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
413
447
|
}>;
|
|
414
448
|
readonly update: import("@sinclair/typebox").TObject<{
|
|
415
449
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
|
|
@@ -433,53 +467,6 @@ declare const app: Elysia<"", {
|
|
|
433
467
|
}> & import("@sinclair/typebox").TObject<{
|
|
434
468
|
name: import("@sinclair/typebox").TString;
|
|
435
469
|
image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
436
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
437
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
438
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
439
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
440
|
-
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
441
|
-
serviceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
442
|
-
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
443
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
444
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
445
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
446
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
447
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
448
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
449
|
-
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
450
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
451
|
-
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
452
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
453
|
-
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
454
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
455
|
-
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
456
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
457
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
458
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
459
|
-
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
460
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
461
|
-
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
462
|
-
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
463
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
464
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
465
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
466
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
467
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
468
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
469
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
470
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
471
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
472
|
-
packageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
473
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
474
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
475
|
-
rowCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
476
|
-
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
477
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
478
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
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]>>;
|
|
483
470
|
}>;
|
|
484
471
|
readonly select: import("@sinclair/typebox").TObject<{
|
|
485
472
|
type: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TUnionEnum<["Сэлбэг", "Тос", "Дугуй", "Будаг", "Аккумлятор"]>>;
|
|
@@ -525,7 +512,12 @@ declare const app: Elysia<"", {
|
|
|
525
512
|
page: import("@sinclair/typebox").TInteger;
|
|
526
513
|
size: import("@sinclair/typebox").TInteger;
|
|
527
514
|
}>;
|
|
528
|
-
}
|
|
515
|
+
}>;
|
|
516
|
+
readonly importSchema: import("@sinclair/typebox").TObject<{
|
|
517
|
+
file: import("@sinclair/typebox").TUnsafe<File>;
|
|
518
|
+
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
519
|
+
}>;
|
|
520
|
+
readonly "InventoryTransferModel.select": import("@sinclair/typebox").TObject<{
|
|
529
521
|
createdAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
530
522
|
createdUserId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
531
523
|
inventory: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -546,7 +538,60 @@ declare const app: Elysia<"", {
|
|
|
546
538
|
page: import("@sinclair/typebox").TInteger;
|
|
547
539
|
size: import("@sinclair/typebox").TInteger;
|
|
548
540
|
}>;
|
|
549
|
-
}
|
|
541
|
+
}>;
|
|
542
|
+
readonly "InventoryTransferModel.create": import("@sinclair/typebox").TObject<{
|
|
543
|
+
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
544
|
+
quantity: import("@sinclair/typebox").TNumber;
|
|
545
|
+
itemId: import("@sinclair/typebox").TString;
|
|
546
|
+
}>>;
|
|
547
|
+
to: import("@sinclair/typebox").TString;
|
|
548
|
+
}>;
|
|
549
|
+
readonly "InventoryTransferModel.approve": import("@sinclair/typebox").TObject<{
|
|
550
|
+
id: import("@sinclair/typebox").TString;
|
|
551
|
+
}>;
|
|
552
|
+
readonly "CompanyCompanyModel.create": import("@sinclair/typebox").TObject<{
|
|
553
|
+
name: import("@sinclair/typebox").TString;
|
|
554
|
+
email: import("@sinclair/typebox").TString;
|
|
555
|
+
regNumber: import("@sinclair/typebox").TString;
|
|
556
|
+
phone: import("@sinclair/typebox").TString;
|
|
557
|
+
serviceName: import("@sinclair/typebox").TString;
|
|
558
|
+
logoUrl: import("@sinclair/typebox").TString;
|
|
559
|
+
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
560
|
+
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
561
|
+
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
562
|
+
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
563
|
+
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
564
|
+
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
565
|
+
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
566
|
+
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
567
|
+
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
568
|
+
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
569
|
+
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
570
|
+
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
571
|
+
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
572
|
+
}>;
|
|
573
|
+
readonly "CompanyCompanyModel.update": import("@sinclair/typebox").TObject<{
|
|
574
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
575
|
+
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
576
|
+
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
577
|
+
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
578
|
+
serviceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
579
|
+
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
580
|
+
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
581
|
+
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
582
|
+
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
583
|
+
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
584
|
+
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
585
|
+
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
586
|
+
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
587
|
+
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
588
|
+
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
589
|
+
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
590
|
+
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
591
|
+
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
592
|
+
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
593
|
+
}>;
|
|
594
|
+
readonly "CompanyCompanyModel.select": import("@sinclair/typebox").TObject<{
|
|
550
595
|
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
551
596
|
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRegExp>;
|
|
552
597
|
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -555,7 +600,44 @@ declare const app: Elysia<"", {
|
|
|
555
600
|
page: import("@sinclair/typebox").TInteger;
|
|
556
601
|
size: import("@sinclair/typebox").TInteger;
|
|
557
602
|
}>;
|
|
558
|
-
}
|
|
603
|
+
}>;
|
|
604
|
+
readonly "CompanyBranchModel.create": import("@sinclair/typebox").TObject<{
|
|
605
|
+
name: import("@sinclair/typebox").TString;
|
|
606
|
+
email: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
607
|
+
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
608
|
+
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
609
|
+
phone: import("@sinclair/typebox").TRegExp;
|
|
610
|
+
logoUrl: import("@sinclair/typebox").TString;
|
|
611
|
+
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
612
|
+
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
613
|
+
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
614
|
+
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
615
|
+
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
616
|
+
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
617
|
+
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
618
|
+
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
619
|
+
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
620
|
+
packageId: import("@sinclair/typebox").TString;
|
|
621
|
+
}>;
|
|
622
|
+
readonly "CompanyBranchModel.update": import("@sinclair/typebox").TObject<{
|
|
623
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
624
|
+
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
625
|
+
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
626
|
+
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
627
|
+
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
628
|
+
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
629
|
+
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
630
|
+
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
631
|
+
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
632
|
+
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
633
|
+
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
634
|
+
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
635
|
+
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
636
|
+
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
637
|
+
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
638
|
+
packageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
639
|
+
}>;
|
|
640
|
+
readonly "CompanyBranchModel.select": import("@sinclair/typebox").TObject<{
|
|
559
641
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
560
642
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
561
643
|
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
@@ -580,41 +662,695 @@ declare const app: Elysia<"", {
|
|
|
580
662
|
page: import("@sinclair/typebox").TInteger;
|
|
581
663
|
size: import("@sinclair/typebox").TInteger;
|
|
582
664
|
}>;
|
|
583
|
-
}
|
|
665
|
+
}>;
|
|
666
|
+
readonly "CompanyPackageModel.create": import("@sinclair/typebox").TObject<{
|
|
667
|
+
name: import("@sinclair/typebox").TString;
|
|
668
|
+
rowCount: import("@sinclair/typebox").TInteger;
|
|
669
|
+
price: import("@sinclair/typebox").TNumber;
|
|
670
|
+
}>;
|
|
671
|
+
readonly "CompanyPackageModel.update": import("@sinclair/typebox").TObject<{
|
|
672
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
673
|
+
rowCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
674
|
+
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
675
|
+
}>;
|
|
676
|
+
readonly "PermissionModel.create": import("@sinclair/typebox").TObject<{
|
|
677
|
+
name: import("@sinclair/typebox").TString;
|
|
678
|
+
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
679
|
+
}>;
|
|
680
|
+
readonly "PermissionModel.update": import("@sinclair/typebox").TObject<{
|
|
681
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
682
|
+
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
683
|
+
}>;
|
|
684
|
+
readonly "PermissionModel.select": import("@sinclair/typebox").TObject<{
|
|
584
685
|
pagination: import("@sinclair/typebox").TObject<{
|
|
585
686
|
page: import("@sinclair/typebox").TInteger;
|
|
586
687
|
size: import("@sinclair/typebox").TInteger;
|
|
587
688
|
}>;
|
|
588
|
-
}
|
|
689
|
+
}>;
|
|
690
|
+
readonly "PermissionModel.addPermission": import("@sinclair/typebox").TObject<{
|
|
691
|
+
userId: import("@sinclair/typebox").TString;
|
|
692
|
+
permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
693
|
+
}>;
|
|
694
|
+
readonly "Warehouse.create": import("@sinclair/typebox").TObject<{
|
|
695
|
+
name: import("@sinclair/typebox").TString;
|
|
696
|
+
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
697
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
698
|
+
}>;
|
|
699
|
+
readonly "Warehouse.update": import("@sinclair/typebox").TObject<{
|
|
700
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
701
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
702
|
+
}>;
|
|
703
|
+
readonly "Warehouse.select": import("@sinclair/typebox").TObject<{
|
|
589
704
|
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
590
705
|
pagination: import("@sinclair/typebox").TObject<{
|
|
591
706
|
page: import("@sinclair/typebox").TInteger;
|
|
592
707
|
size: import("@sinclair/typebox").TInteger;
|
|
593
708
|
}>;
|
|
594
|
-
}>;
|
|
595
|
-
readonly
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
709
|
+
}>;
|
|
710
|
+
readonly "WarehouseProductModel.create": import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
711
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
712
|
+
name: import("@sinclair/typebox").TString;
|
|
713
|
+
partNumber: import("@sinclair/typebox").TString;
|
|
714
|
+
supplierId: import("@sinclair/typebox").TString;
|
|
715
|
+
barCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
716
|
+
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
717
|
+
oen: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
718
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
719
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
720
|
+
priceSell: import("@sinclair/typebox").TNumber;
|
|
721
|
+
priceBuy: import("@sinclair/typebox").TNumber;
|
|
722
|
+
}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
723
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
724
|
+
name: import("@sinclair/typebox").TString;
|
|
725
|
+
partNumber: import("@sinclair/typebox").TString;
|
|
726
|
+
supplierId: import("@sinclair/typebox").TString;
|
|
727
|
+
barCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
728
|
+
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
729
|
+
oen: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
730
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
731
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
732
|
+
priceSell: import("@sinclair/typebox").TNumber;
|
|
733
|
+
priceBuy: import("@sinclair/typebox").TNumber;
|
|
734
|
+
}>>]>;
|
|
735
|
+
readonly "WarehouseProductModel.update": import("@sinclair/typebox").TObject<{
|
|
736
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
737
|
+
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
738
|
+
partNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
739
|
+
supplierId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
740
|
+
barCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
741
|
+
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
742
|
+
oen: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
743
|
+
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
744
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
745
|
+
priceSell: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
746
|
+
priceBuy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
747
|
+
companyId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
748
|
+
}>;
|
|
749
|
+
readonly "WarehouseProductModel.select": import("@sinclair/typebox").TObject<{
|
|
750
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
751
|
+
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
752
|
+
supplierId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
753
|
+
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
754
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
755
|
+
priceSell: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
756
|
+
pagination: import("@sinclair/typebox").TObject<{
|
|
757
|
+
page: import("@sinclair/typebox").TInteger;
|
|
758
|
+
size: import("@sinclair/typebox").TInteger;
|
|
759
|
+
}>;
|
|
760
|
+
}>;
|
|
761
|
+
readonly "WarehouseItemModel.create": import("@sinclair/typebox").TObject<{
|
|
762
|
+
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
763
|
+
safetyStock: import("@sinclair/typebox").TNumber;
|
|
764
|
+
shelfNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
765
|
+
productId: import("@sinclair/typebox").TString;
|
|
766
|
+
warehouseId: import("@sinclair/typebox").TString;
|
|
767
|
+
}>;
|
|
768
|
+
readonly "WarehouseItemModel.update": import("@sinclair/typebox").TObject<{
|
|
769
|
+
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
770
|
+
safetyStock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
771
|
+
shelfNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
772
|
+
productId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
773
|
+
warehouseId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
774
|
+
}>;
|
|
775
|
+
readonly "WarehouseItemModel.createMany": import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
776
|
+
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
777
|
+
safetyStock: import("@sinclair/typebox").TNumber;
|
|
778
|
+
shelfNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
779
|
+
productId: import("@sinclair/typebox").TString;
|
|
780
|
+
warehouseId: import("@sinclair/typebox").TString;
|
|
781
|
+
}>>;
|
|
782
|
+
};
|
|
783
|
+
error: {};
|
|
784
|
+
}, {
|
|
785
|
+
schema: {};
|
|
786
|
+
standaloneSchema: {};
|
|
787
|
+
macro: {
|
|
788
|
+
readonly auth?: boolean | undefined;
|
|
789
|
+
readonly permission?: "INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN" | ("INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN")[] | undefined;
|
|
790
|
+
readonly userKind?: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER")[] | undefined;
|
|
791
|
+
};
|
|
792
|
+
macroFn: {
|
|
793
|
+
readonly auth: {
|
|
794
|
+
readonly resolve: ({ status, request: { headers } }: {
|
|
795
|
+
body: unknown;
|
|
796
|
+
query: Record<string, string>;
|
|
797
|
+
params: Record<string, string>;
|
|
798
|
+
headers: Record<string, string | undefined>;
|
|
799
|
+
cookie: Record<string, import("elysia").Cookie<string | undefined>>;
|
|
800
|
+
server: Bun.Server | null;
|
|
801
|
+
redirect: import("elysia").redirect;
|
|
802
|
+
set: {
|
|
803
|
+
headers: import("elysia/dist/types").HTTPHeaders;
|
|
804
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
805
|
+
redirect?: string;
|
|
806
|
+
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
807
|
+
};
|
|
808
|
+
path: string;
|
|
809
|
+
route: string;
|
|
810
|
+
request: Request;
|
|
811
|
+
store: {};
|
|
812
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 100 | 404 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
813
|
+
readonly 100: "Continue";
|
|
814
|
+
readonly 101: "Switching Protocols";
|
|
815
|
+
readonly 102: "Processing";
|
|
816
|
+
readonly 103: "Early Hints";
|
|
817
|
+
readonly 200: "OK";
|
|
818
|
+
readonly 201: "Created";
|
|
819
|
+
readonly 202: "Accepted";
|
|
820
|
+
readonly 203: "Non-Authoritative Information";
|
|
821
|
+
readonly 204: "No Content";
|
|
822
|
+
readonly 205: "Reset Content";
|
|
823
|
+
readonly 206: "Partial Content";
|
|
824
|
+
readonly 207: "Multi-Status";
|
|
825
|
+
readonly 208: "Already Reported";
|
|
826
|
+
readonly 300: "Multiple Choices";
|
|
827
|
+
readonly 301: "Moved Permanently";
|
|
828
|
+
readonly 302: "Found";
|
|
829
|
+
readonly 303: "See Other";
|
|
830
|
+
readonly 304: "Not Modified";
|
|
831
|
+
readonly 307: "Temporary Redirect";
|
|
832
|
+
readonly 308: "Permanent Redirect";
|
|
833
|
+
readonly 400: "Bad Request";
|
|
834
|
+
readonly 401: "Unauthorized";
|
|
835
|
+
readonly 402: "Payment Required";
|
|
836
|
+
readonly 403: "Forbidden";
|
|
837
|
+
readonly 404: "Not Found";
|
|
838
|
+
readonly 405: "Method Not Allowed";
|
|
839
|
+
readonly 406: "Not Acceptable";
|
|
840
|
+
readonly 407: "Proxy Authentication Required";
|
|
841
|
+
readonly 408: "Request Timeout";
|
|
842
|
+
readonly 409: "Conflict";
|
|
843
|
+
readonly 410: "Gone";
|
|
844
|
+
readonly 411: "Length Required";
|
|
845
|
+
readonly 412: "Precondition Failed";
|
|
846
|
+
readonly 413: "Payload Too Large";
|
|
847
|
+
readonly 414: "URI Too Long";
|
|
848
|
+
readonly 415: "Unsupported Media Type";
|
|
849
|
+
readonly 416: "Range Not Satisfiable";
|
|
850
|
+
readonly 417: "Expectation Failed";
|
|
851
|
+
readonly 418: "I'm a teapot";
|
|
852
|
+
readonly 421: "Misdirected Request";
|
|
853
|
+
readonly 422: "Unprocessable Content";
|
|
854
|
+
readonly 423: "Locked";
|
|
855
|
+
readonly 424: "Failed Dependency";
|
|
856
|
+
readonly 425: "Too Early";
|
|
857
|
+
readonly 426: "Upgrade Required";
|
|
858
|
+
readonly 428: "Precondition Required";
|
|
859
|
+
readonly 429: "Too Many Requests";
|
|
860
|
+
readonly 431: "Request Header Fields Too Large";
|
|
861
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
862
|
+
readonly 500: "Internal Server Error";
|
|
863
|
+
readonly 501: "Not Implemented";
|
|
864
|
+
readonly 502: "Bad Gateway";
|
|
865
|
+
readonly 503: "Service Unavailable";
|
|
866
|
+
readonly 504: "Gateway Timeout";
|
|
867
|
+
readonly 505: "HTTP Version Not Supported";
|
|
868
|
+
readonly 506: "Variant Also Negotiates";
|
|
869
|
+
readonly 507: "Insufficient Storage";
|
|
870
|
+
readonly 508: "Loop Detected";
|
|
871
|
+
readonly 510: "Not Extended";
|
|
872
|
+
readonly 511: "Network Authentication Required";
|
|
873
|
+
}[Code] : Code>(code: Code, response?: T) => import("elysia/dist/error").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
874
|
+
readonly Continue: 100;
|
|
875
|
+
readonly "Switching Protocols": 101;
|
|
876
|
+
readonly Processing: 102;
|
|
877
|
+
readonly "Early Hints": 103;
|
|
878
|
+
readonly OK: 200;
|
|
879
|
+
readonly Created: 201;
|
|
880
|
+
readonly Accepted: 202;
|
|
881
|
+
readonly "Non-Authoritative Information": 203;
|
|
882
|
+
readonly "No Content": 204;
|
|
883
|
+
readonly "Reset Content": 205;
|
|
884
|
+
readonly "Partial Content": 206;
|
|
885
|
+
readonly "Multi-Status": 207;
|
|
886
|
+
readonly "Already Reported": 208;
|
|
887
|
+
readonly "Multiple Choices": 300;
|
|
888
|
+
readonly "Moved Permanently": 301;
|
|
889
|
+
readonly Found: 302;
|
|
890
|
+
readonly "See Other": 303;
|
|
891
|
+
readonly "Not Modified": 304;
|
|
892
|
+
readonly "Temporary Redirect": 307;
|
|
893
|
+
readonly "Permanent Redirect": 308;
|
|
894
|
+
readonly "Bad Request": 400;
|
|
895
|
+
readonly Unauthorized: 401;
|
|
896
|
+
readonly "Payment Required": 402;
|
|
897
|
+
readonly Forbidden: 403;
|
|
898
|
+
readonly "Not Found": 404;
|
|
899
|
+
readonly "Method Not Allowed": 405;
|
|
900
|
+
readonly "Not Acceptable": 406;
|
|
901
|
+
readonly "Proxy Authentication Required": 407;
|
|
902
|
+
readonly "Request Timeout": 408;
|
|
903
|
+
readonly Conflict: 409;
|
|
904
|
+
readonly Gone: 410;
|
|
905
|
+
readonly "Length Required": 411;
|
|
906
|
+
readonly "Precondition Failed": 412;
|
|
907
|
+
readonly "Payload Too Large": 413;
|
|
908
|
+
readonly "URI Too Long": 414;
|
|
909
|
+
readonly "Unsupported Media Type": 415;
|
|
910
|
+
readonly "Range Not Satisfiable": 416;
|
|
911
|
+
readonly "Expectation Failed": 417;
|
|
912
|
+
readonly "I'm a teapot": 418;
|
|
913
|
+
readonly "Misdirected Request": 421;
|
|
914
|
+
readonly "Unprocessable Content": 422;
|
|
915
|
+
readonly Locked: 423;
|
|
916
|
+
readonly "Failed Dependency": 424;
|
|
917
|
+
readonly "Too Early": 425;
|
|
918
|
+
readonly "Upgrade Required": 426;
|
|
919
|
+
readonly "Precondition Required": 428;
|
|
920
|
+
readonly "Too Many Requests": 429;
|
|
921
|
+
readonly "Request Header Fields Too Large": 431;
|
|
922
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
923
|
+
readonly "Internal Server Error": 500;
|
|
924
|
+
readonly "Not Implemented": 501;
|
|
925
|
+
readonly "Bad Gateway": 502;
|
|
926
|
+
readonly "Service Unavailable": 503;
|
|
927
|
+
readonly "Gateway Timeout": 504;
|
|
928
|
+
readonly "HTTP Version Not Supported": 505;
|
|
929
|
+
readonly "Variant Also Negotiates": 506;
|
|
930
|
+
readonly "Insufficient Storage": 507;
|
|
931
|
+
readonly "Loop Detected": 508;
|
|
932
|
+
readonly "Not Extended": 510;
|
|
933
|
+
readonly "Network Authentication Required": 511;
|
|
934
|
+
}[Code] : Code>;
|
|
935
|
+
error: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 100 | 404 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
936
|
+
readonly 100: "Continue";
|
|
937
|
+
readonly 101: "Switching Protocols";
|
|
938
|
+
readonly 102: "Processing";
|
|
939
|
+
readonly 103: "Early Hints";
|
|
940
|
+
readonly 200: "OK";
|
|
941
|
+
readonly 201: "Created";
|
|
942
|
+
readonly 202: "Accepted";
|
|
943
|
+
readonly 203: "Non-Authoritative Information";
|
|
944
|
+
readonly 204: "No Content";
|
|
945
|
+
readonly 205: "Reset Content";
|
|
946
|
+
readonly 206: "Partial Content";
|
|
947
|
+
readonly 207: "Multi-Status";
|
|
948
|
+
readonly 208: "Already Reported";
|
|
949
|
+
readonly 300: "Multiple Choices";
|
|
950
|
+
readonly 301: "Moved Permanently";
|
|
951
|
+
readonly 302: "Found";
|
|
952
|
+
readonly 303: "See Other";
|
|
953
|
+
readonly 304: "Not Modified";
|
|
954
|
+
readonly 307: "Temporary Redirect";
|
|
955
|
+
readonly 308: "Permanent Redirect";
|
|
956
|
+
readonly 400: "Bad Request";
|
|
957
|
+
readonly 401: "Unauthorized";
|
|
958
|
+
readonly 402: "Payment Required";
|
|
959
|
+
readonly 403: "Forbidden";
|
|
960
|
+
readonly 404: "Not Found";
|
|
961
|
+
readonly 405: "Method Not Allowed";
|
|
962
|
+
readonly 406: "Not Acceptable";
|
|
963
|
+
readonly 407: "Proxy Authentication Required";
|
|
964
|
+
readonly 408: "Request Timeout";
|
|
965
|
+
readonly 409: "Conflict";
|
|
966
|
+
readonly 410: "Gone";
|
|
967
|
+
readonly 411: "Length Required";
|
|
968
|
+
readonly 412: "Precondition Failed";
|
|
969
|
+
readonly 413: "Payload Too Large";
|
|
970
|
+
readonly 414: "URI Too Long";
|
|
971
|
+
readonly 415: "Unsupported Media Type";
|
|
972
|
+
readonly 416: "Range Not Satisfiable";
|
|
973
|
+
readonly 417: "Expectation Failed";
|
|
974
|
+
readonly 418: "I'm a teapot";
|
|
975
|
+
readonly 421: "Misdirected Request";
|
|
976
|
+
readonly 422: "Unprocessable Content";
|
|
977
|
+
readonly 423: "Locked";
|
|
978
|
+
readonly 424: "Failed Dependency";
|
|
979
|
+
readonly 425: "Too Early";
|
|
980
|
+
readonly 426: "Upgrade Required";
|
|
981
|
+
readonly 428: "Precondition Required";
|
|
982
|
+
readonly 429: "Too Many Requests";
|
|
983
|
+
readonly 431: "Request Header Fields Too Large";
|
|
984
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
985
|
+
readonly 500: "Internal Server Error";
|
|
986
|
+
readonly 501: "Not Implemented";
|
|
987
|
+
readonly 502: "Bad Gateway";
|
|
988
|
+
readonly 503: "Service Unavailable";
|
|
989
|
+
readonly 504: "Gateway Timeout";
|
|
990
|
+
readonly 505: "HTTP Version Not Supported";
|
|
991
|
+
readonly 506: "Variant Also Negotiates";
|
|
992
|
+
readonly 507: "Insufficient Storage";
|
|
993
|
+
readonly 508: "Loop Detected";
|
|
994
|
+
readonly 510: "Not Extended";
|
|
995
|
+
readonly 511: "Network Authentication Required";
|
|
996
|
+
}[Code] : Code>(code: Code, response?: T) => import("elysia/dist/error").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
997
|
+
readonly Continue: 100;
|
|
998
|
+
readonly "Switching Protocols": 101;
|
|
999
|
+
readonly Processing: 102;
|
|
1000
|
+
readonly "Early Hints": 103;
|
|
1001
|
+
readonly OK: 200;
|
|
1002
|
+
readonly Created: 201;
|
|
1003
|
+
readonly Accepted: 202;
|
|
1004
|
+
readonly "Non-Authoritative Information": 203;
|
|
1005
|
+
readonly "No Content": 204;
|
|
1006
|
+
readonly "Reset Content": 205;
|
|
1007
|
+
readonly "Partial Content": 206;
|
|
1008
|
+
readonly "Multi-Status": 207;
|
|
1009
|
+
readonly "Already Reported": 208;
|
|
1010
|
+
readonly "Multiple Choices": 300;
|
|
1011
|
+
readonly "Moved Permanently": 301;
|
|
1012
|
+
readonly Found: 302;
|
|
1013
|
+
readonly "See Other": 303;
|
|
1014
|
+
readonly "Not Modified": 304;
|
|
1015
|
+
readonly "Temporary Redirect": 307;
|
|
1016
|
+
readonly "Permanent Redirect": 308;
|
|
1017
|
+
readonly "Bad Request": 400;
|
|
1018
|
+
readonly Unauthorized: 401;
|
|
1019
|
+
readonly "Payment Required": 402;
|
|
1020
|
+
readonly Forbidden: 403;
|
|
1021
|
+
readonly "Not Found": 404;
|
|
1022
|
+
readonly "Method Not Allowed": 405;
|
|
1023
|
+
readonly "Not Acceptable": 406;
|
|
1024
|
+
readonly "Proxy Authentication Required": 407;
|
|
1025
|
+
readonly "Request Timeout": 408;
|
|
1026
|
+
readonly Conflict: 409;
|
|
1027
|
+
readonly Gone: 410;
|
|
1028
|
+
readonly "Length Required": 411;
|
|
1029
|
+
readonly "Precondition Failed": 412;
|
|
1030
|
+
readonly "Payload Too Large": 413;
|
|
1031
|
+
readonly "URI Too Long": 414;
|
|
1032
|
+
readonly "Unsupported Media Type": 415;
|
|
1033
|
+
readonly "Range Not Satisfiable": 416;
|
|
1034
|
+
readonly "Expectation Failed": 417;
|
|
1035
|
+
readonly "I'm a teapot": 418;
|
|
1036
|
+
readonly "Misdirected Request": 421;
|
|
1037
|
+
readonly "Unprocessable Content": 422;
|
|
1038
|
+
readonly Locked: 423;
|
|
1039
|
+
readonly "Failed Dependency": 424;
|
|
1040
|
+
readonly "Too Early": 425;
|
|
1041
|
+
readonly "Upgrade Required": 426;
|
|
1042
|
+
readonly "Precondition Required": 428;
|
|
1043
|
+
readonly "Too Many Requests": 429;
|
|
1044
|
+
readonly "Request Header Fields Too Large": 431;
|
|
1045
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
1046
|
+
readonly "Internal Server Error": 500;
|
|
1047
|
+
readonly "Not Implemented": 501;
|
|
1048
|
+
readonly "Bad Gateway": 502;
|
|
1049
|
+
readonly "Service Unavailable": 503;
|
|
1050
|
+
readonly "Gateway Timeout": 504;
|
|
1051
|
+
readonly "HTTP Version Not Supported": 505;
|
|
1052
|
+
readonly "Variant Also Negotiates": 506;
|
|
1053
|
+
readonly "Insufficient Storage": 507;
|
|
1054
|
+
readonly "Loop Detected": 508;
|
|
1055
|
+
readonly "Not Extended": 510;
|
|
1056
|
+
readonly "Network Authentication Required": 511;
|
|
1057
|
+
}[Code] : Code>;
|
|
1058
|
+
}) => Promise<import("elysia/dist/error").ElysiaCustomStatusResponse<401, "Нэвтэрж орно уу.", 401> | {
|
|
1059
|
+
user: {
|
|
1060
|
+
id: string;
|
|
1061
|
+
name: string;
|
|
1062
|
+
email: string;
|
|
1063
|
+
emailVerified: boolean;
|
|
1064
|
+
createdAt: Date;
|
|
1065
|
+
updatedAt: Date;
|
|
1066
|
+
image?: string | null | undefined | undefined;
|
|
1067
|
+
merchantId: string;
|
|
1068
|
+
branchId: string;
|
|
1069
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
1070
|
+
};
|
|
1071
|
+
session: {
|
|
1072
|
+
id: string;
|
|
1073
|
+
createdAt: Date;
|
|
1074
|
+
updatedAt: Date;
|
|
1075
|
+
userId: string;
|
|
1076
|
+
expiresAt: Date;
|
|
1077
|
+
token: string;
|
|
1078
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1079
|
+
userAgent?: string | null | undefined | undefined;
|
|
1080
|
+
};
|
|
1081
|
+
}>;
|
|
1082
|
+
};
|
|
1083
|
+
readonly permission: (input: import("./lib/permissions").PermissionCode | import("./lib/permissions").PermissionCode[]) => {
|
|
1084
|
+
resolve({ status, request: { headers } }: {
|
|
1085
|
+
body: unknown;
|
|
1086
|
+
query: Record<string, string>;
|
|
1087
|
+
params: Record<string, string>;
|
|
1088
|
+
headers: Record<string, string | undefined>;
|
|
1089
|
+
cookie: Record<string, import("elysia").Cookie<string | undefined>>;
|
|
1090
|
+
server: Bun.Server | null;
|
|
1091
|
+
redirect: import("elysia").redirect;
|
|
1092
|
+
set: {
|
|
1093
|
+
headers: import("elysia/dist/types").HTTPHeaders;
|
|
1094
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
1095
|
+
redirect?: string;
|
|
1096
|
+
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
1097
|
+
};
|
|
1098
|
+
path: string;
|
|
1099
|
+
route: string;
|
|
1100
|
+
request: Request;
|
|
1101
|
+
store: {};
|
|
1102
|
+
status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 100 | 404 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
1103
|
+
readonly 100: "Continue";
|
|
1104
|
+
readonly 101: "Switching Protocols";
|
|
1105
|
+
readonly 102: "Processing";
|
|
1106
|
+
readonly 103: "Early Hints";
|
|
1107
|
+
readonly 200: "OK";
|
|
1108
|
+
readonly 201: "Created";
|
|
1109
|
+
readonly 202: "Accepted";
|
|
1110
|
+
readonly 203: "Non-Authoritative Information";
|
|
1111
|
+
readonly 204: "No Content";
|
|
1112
|
+
readonly 205: "Reset Content";
|
|
1113
|
+
readonly 206: "Partial Content";
|
|
1114
|
+
readonly 207: "Multi-Status";
|
|
1115
|
+
readonly 208: "Already Reported";
|
|
1116
|
+
readonly 300: "Multiple Choices";
|
|
1117
|
+
readonly 301: "Moved Permanently";
|
|
1118
|
+
readonly 302: "Found";
|
|
1119
|
+
readonly 303: "See Other";
|
|
1120
|
+
readonly 304: "Not Modified";
|
|
1121
|
+
readonly 307: "Temporary Redirect";
|
|
1122
|
+
readonly 308: "Permanent Redirect";
|
|
1123
|
+
readonly 400: "Bad Request";
|
|
1124
|
+
readonly 401: "Unauthorized";
|
|
1125
|
+
readonly 402: "Payment Required";
|
|
1126
|
+
readonly 403: "Forbidden";
|
|
1127
|
+
readonly 404: "Not Found";
|
|
1128
|
+
readonly 405: "Method Not Allowed";
|
|
1129
|
+
readonly 406: "Not Acceptable";
|
|
1130
|
+
readonly 407: "Proxy Authentication Required";
|
|
1131
|
+
readonly 408: "Request Timeout";
|
|
1132
|
+
readonly 409: "Conflict";
|
|
1133
|
+
readonly 410: "Gone";
|
|
1134
|
+
readonly 411: "Length Required";
|
|
1135
|
+
readonly 412: "Precondition Failed";
|
|
1136
|
+
readonly 413: "Payload Too Large";
|
|
1137
|
+
readonly 414: "URI Too Long";
|
|
1138
|
+
readonly 415: "Unsupported Media Type";
|
|
1139
|
+
readonly 416: "Range Not Satisfiable";
|
|
1140
|
+
readonly 417: "Expectation Failed";
|
|
1141
|
+
readonly 418: "I'm a teapot";
|
|
1142
|
+
readonly 421: "Misdirected Request";
|
|
1143
|
+
readonly 422: "Unprocessable Content";
|
|
1144
|
+
readonly 423: "Locked";
|
|
1145
|
+
readonly 424: "Failed Dependency";
|
|
1146
|
+
readonly 425: "Too Early";
|
|
1147
|
+
readonly 426: "Upgrade Required";
|
|
1148
|
+
readonly 428: "Precondition Required";
|
|
1149
|
+
readonly 429: "Too Many Requests";
|
|
1150
|
+
readonly 431: "Request Header Fields Too Large";
|
|
1151
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
1152
|
+
readonly 500: "Internal Server Error";
|
|
1153
|
+
readonly 501: "Not Implemented";
|
|
1154
|
+
readonly 502: "Bad Gateway";
|
|
1155
|
+
readonly 503: "Service Unavailable";
|
|
1156
|
+
readonly 504: "Gateway Timeout";
|
|
1157
|
+
readonly 505: "HTTP Version Not Supported";
|
|
1158
|
+
readonly 506: "Variant Also Negotiates";
|
|
1159
|
+
readonly 507: "Insufficient Storage";
|
|
1160
|
+
readonly 508: "Loop Detected";
|
|
1161
|
+
readonly 510: "Not Extended";
|
|
1162
|
+
readonly 511: "Network Authentication Required";
|
|
1163
|
+
}[Code] : Code>(code: Code, response?: T) => import("elysia/dist/error").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
1164
|
+
readonly Continue: 100;
|
|
1165
|
+
readonly "Switching Protocols": 101;
|
|
1166
|
+
readonly Processing: 102;
|
|
1167
|
+
readonly "Early Hints": 103;
|
|
1168
|
+
readonly OK: 200;
|
|
1169
|
+
readonly Created: 201;
|
|
1170
|
+
readonly Accepted: 202;
|
|
1171
|
+
readonly "Non-Authoritative Information": 203;
|
|
1172
|
+
readonly "No Content": 204;
|
|
1173
|
+
readonly "Reset Content": 205;
|
|
1174
|
+
readonly "Partial Content": 206;
|
|
1175
|
+
readonly "Multi-Status": 207;
|
|
1176
|
+
readonly "Already Reported": 208;
|
|
1177
|
+
readonly "Multiple Choices": 300;
|
|
1178
|
+
readonly "Moved Permanently": 301;
|
|
1179
|
+
readonly Found: 302;
|
|
1180
|
+
readonly "See Other": 303;
|
|
1181
|
+
readonly "Not Modified": 304;
|
|
1182
|
+
readonly "Temporary Redirect": 307;
|
|
1183
|
+
readonly "Permanent Redirect": 308;
|
|
1184
|
+
readonly "Bad Request": 400;
|
|
1185
|
+
readonly Unauthorized: 401;
|
|
1186
|
+
readonly "Payment Required": 402;
|
|
1187
|
+
readonly Forbidden: 403;
|
|
1188
|
+
readonly "Not Found": 404;
|
|
1189
|
+
readonly "Method Not Allowed": 405;
|
|
1190
|
+
readonly "Not Acceptable": 406;
|
|
1191
|
+
readonly "Proxy Authentication Required": 407;
|
|
1192
|
+
readonly "Request Timeout": 408;
|
|
1193
|
+
readonly Conflict: 409;
|
|
1194
|
+
readonly Gone: 410;
|
|
1195
|
+
readonly "Length Required": 411;
|
|
1196
|
+
readonly "Precondition Failed": 412;
|
|
1197
|
+
readonly "Payload Too Large": 413;
|
|
1198
|
+
readonly "URI Too Long": 414;
|
|
1199
|
+
readonly "Unsupported Media Type": 415;
|
|
1200
|
+
readonly "Range Not Satisfiable": 416;
|
|
1201
|
+
readonly "Expectation Failed": 417;
|
|
1202
|
+
readonly "I'm a teapot": 418;
|
|
1203
|
+
readonly "Misdirected Request": 421;
|
|
1204
|
+
readonly "Unprocessable Content": 422;
|
|
1205
|
+
readonly Locked: 423;
|
|
1206
|
+
readonly "Failed Dependency": 424;
|
|
1207
|
+
readonly "Too Early": 425;
|
|
1208
|
+
readonly "Upgrade Required": 426;
|
|
1209
|
+
readonly "Precondition Required": 428;
|
|
1210
|
+
readonly "Too Many Requests": 429;
|
|
1211
|
+
readonly "Request Header Fields Too Large": 431;
|
|
1212
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
1213
|
+
readonly "Internal Server Error": 500;
|
|
1214
|
+
readonly "Not Implemented": 501;
|
|
1215
|
+
readonly "Bad Gateway": 502;
|
|
1216
|
+
readonly "Service Unavailable": 503;
|
|
1217
|
+
readonly "Gateway Timeout": 504;
|
|
1218
|
+
readonly "HTTP Version Not Supported": 505;
|
|
1219
|
+
readonly "Variant Also Negotiates": 506;
|
|
1220
|
+
readonly "Insufficient Storage": 507;
|
|
1221
|
+
readonly "Loop Detected": 508;
|
|
1222
|
+
readonly "Not Extended": 510;
|
|
1223
|
+
readonly "Network Authentication Required": 511;
|
|
1224
|
+
}[Code] : Code>;
|
|
1225
|
+
error: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 200 | 400 | 100 | 404 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 ? {
|
|
1226
|
+
readonly 100: "Continue";
|
|
1227
|
+
readonly 101: "Switching Protocols";
|
|
1228
|
+
readonly 102: "Processing";
|
|
1229
|
+
readonly 103: "Early Hints";
|
|
1230
|
+
readonly 200: "OK";
|
|
1231
|
+
readonly 201: "Created";
|
|
1232
|
+
readonly 202: "Accepted";
|
|
1233
|
+
readonly 203: "Non-Authoritative Information";
|
|
1234
|
+
readonly 204: "No Content";
|
|
1235
|
+
readonly 205: "Reset Content";
|
|
1236
|
+
readonly 206: "Partial Content";
|
|
1237
|
+
readonly 207: "Multi-Status";
|
|
1238
|
+
readonly 208: "Already Reported";
|
|
1239
|
+
readonly 300: "Multiple Choices";
|
|
1240
|
+
readonly 301: "Moved Permanently";
|
|
1241
|
+
readonly 302: "Found";
|
|
1242
|
+
readonly 303: "See Other";
|
|
1243
|
+
readonly 304: "Not Modified";
|
|
1244
|
+
readonly 307: "Temporary Redirect";
|
|
1245
|
+
readonly 308: "Permanent Redirect";
|
|
1246
|
+
readonly 400: "Bad Request";
|
|
1247
|
+
readonly 401: "Unauthorized";
|
|
1248
|
+
readonly 402: "Payment Required";
|
|
1249
|
+
readonly 403: "Forbidden";
|
|
1250
|
+
readonly 404: "Not Found";
|
|
1251
|
+
readonly 405: "Method Not Allowed";
|
|
1252
|
+
readonly 406: "Not Acceptable";
|
|
1253
|
+
readonly 407: "Proxy Authentication Required";
|
|
1254
|
+
readonly 408: "Request Timeout";
|
|
1255
|
+
readonly 409: "Conflict";
|
|
1256
|
+
readonly 410: "Gone";
|
|
1257
|
+
readonly 411: "Length Required";
|
|
1258
|
+
readonly 412: "Precondition Failed";
|
|
1259
|
+
readonly 413: "Payload Too Large";
|
|
1260
|
+
readonly 414: "URI Too Long";
|
|
1261
|
+
readonly 415: "Unsupported Media Type";
|
|
1262
|
+
readonly 416: "Range Not Satisfiable";
|
|
1263
|
+
readonly 417: "Expectation Failed";
|
|
1264
|
+
readonly 418: "I'm a teapot";
|
|
1265
|
+
readonly 421: "Misdirected Request";
|
|
1266
|
+
readonly 422: "Unprocessable Content";
|
|
1267
|
+
readonly 423: "Locked";
|
|
1268
|
+
readonly 424: "Failed Dependency";
|
|
1269
|
+
readonly 425: "Too Early";
|
|
1270
|
+
readonly 426: "Upgrade Required";
|
|
1271
|
+
readonly 428: "Precondition Required";
|
|
1272
|
+
readonly 429: "Too Many Requests";
|
|
1273
|
+
readonly 431: "Request Header Fields Too Large";
|
|
1274
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
1275
|
+
readonly 500: "Internal Server Error";
|
|
1276
|
+
readonly 501: "Not Implemented";
|
|
1277
|
+
readonly 502: "Bad Gateway";
|
|
1278
|
+
readonly 503: "Service Unavailable";
|
|
1279
|
+
readonly 504: "Gateway Timeout";
|
|
1280
|
+
readonly 505: "HTTP Version Not Supported";
|
|
1281
|
+
readonly 506: "Variant Also Negotiates";
|
|
1282
|
+
readonly 507: "Insufficient Storage";
|
|
1283
|
+
readonly 508: "Loop Detected";
|
|
1284
|
+
readonly 510: "Not Extended";
|
|
1285
|
+
readonly 511: "Network Authentication Required";
|
|
1286
|
+
}[Code] : Code>(code: Code, response?: T) => import("elysia/dist/error").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
|
|
1287
|
+
readonly Continue: 100;
|
|
1288
|
+
readonly "Switching Protocols": 101;
|
|
1289
|
+
readonly Processing: 102;
|
|
1290
|
+
readonly "Early Hints": 103;
|
|
1291
|
+
readonly OK: 200;
|
|
1292
|
+
readonly Created: 201;
|
|
1293
|
+
readonly Accepted: 202;
|
|
1294
|
+
readonly "Non-Authoritative Information": 203;
|
|
1295
|
+
readonly "No Content": 204;
|
|
1296
|
+
readonly "Reset Content": 205;
|
|
1297
|
+
readonly "Partial Content": 206;
|
|
1298
|
+
readonly "Multi-Status": 207;
|
|
1299
|
+
readonly "Already Reported": 208;
|
|
1300
|
+
readonly "Multiple Choices": 300;
|
|
1301
|
+
readonly "Moved Permanently": 301;
|
|
1302
|
+
readonly Found: 302;
|
|
1303
|
+
readonly "See Other": 303;
|
|
1304
|
+
readonly "Not Modified": 304;
|
|
1305
|
+
readonly "Temporary Redirect": 307;
|
|
1306
|
+
readonly "Permanent Redirect": 308;
|
|
1307
|
+
readonly "Bad Request": 400;
|
|
1308
|
+
readonly Unauthorized: 401;
|
|
1309
|
+
readonly "Payment Required": 402;
|
|
1310
|
+
readonly Forbidden: 403;
|
|
1311
|
+
readonly "Not Found": 404;
|
|
1312
|
+
readonly "Method Not Allowed": 405;
|
|
1313
|
+
readonly "Not Acceptable": 406;
|
|
1314
|
+
readonly "Proxy Authentication Required": 407;
|
|
1315
|
+
readonly "Request Timeout": 408;
|
|
1316
|
+
readonly Conflict: 409;
|
|
1317
|
+
readonly Gone: 410;
|
|
1318
|
+
readonly "Length Required": 411;
|
|
1319
|
+
readonly "Precondition Failed": 412;
|
|
1320
|
+
readonly "Payload Too Large": 413;
|
|
1321
|
+
readonly "URI Too Long": 414;
|
|
1322
|
+
readonly "Unsupported Media Type": 415;
|
|
1323
|
+
readonly "Range Not Satisfiable": 416;
|
|
1324
|
+
readonly "Expectation Failed": 417;
|
|
1325
|
+
readonly "I'm a teapot": 418;
|
|
1326
|
+
readonly "Misdirected Request": 421;
|
|
1327
|
+
readonly "Unprocessable Content": 422;
|
|
1328
|
+
readonly Locked: 423;
|
|
1329
|
+
readonly "Failed Dependency": 424;
|
|
1330
|
+
readonly "Too Early": 425;
|
|
1331
|
+
readonly "Upgrade Required": 426;
|
|
1332
|
+
readonly "Precondition Required": 428;
|
|
1333
|
+
readonly "Too Many Requests": 429;
|
|
1334
|
+
readonly "Request Header Fields Too Large": 431;
|
|
1335
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
1336
|
+
readonly "Internal Server Error": 500;
|
|
1337
|
+
readonly "Not Implemented": 501;
|
|
1338
|
+
readonly "Bad Gateway": 502;
|
|
1339
|
+
readonly "Service Unavailable": 503;
|
|
1340
|
+
readonly "Gateway Timeout": 504;
|
|
1341
|
+
readonly "HTTP Version Not Supported": 505;
|
|
1342
|
+
readonly "Variant Also Negotiates": 506;
|
|
1343
|
+
readonly "Insufficient Storage": 507;
|
|
1344
|
+
readonly "Loop Detected": 508;
|
|
1345
|
+
readonly "Not Extended": 510;
|
|
1346
|
+
readonly "Network Authentication Required": 511;
|
|
1347
|
+
}[Code] : Code>;
|
|
1348
|
+
}): Promise<import("elysia/dist/error").ElysiaCustomStatusResponse<"Unauthorized", "Unauthorized", 401> | import("elysia/dist/error").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
1349
|
+
permissions: ("INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN")[];
|
|
1350
|
+
}>;
|
|
1351
|
+
};
|
|
1352
|
+
readonly userKind: (input: ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER") | ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER")[]) => {
|
|
1353
|
+
resolve({ status, request: { headers } }: {
|
|
618
1354
|
body: unknown;
|
|
619
1355
|
query: Record<string, string>;
|
|
620
1356
|
params: Record<string, string>;
|
|
@@ -878,7 +1614,7 @@ declare const app: Elysia<"", {
|
|
|
878
1614
|
readonly "Not Extended": 510;
|
|
879
1615
|
readonly "Network Authentication Required": 511;
|
|
880
1616
|
}[Code] : Code>;
|
|
881
|
-
})
|
|
1617
|
+
}): Promise<import("elysia/dist/error").ElysiaCustomStatusResponse<"Unauthorized", "Unauthorized", 401> | import("elysia/dist/error").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
882
1618
|
user: {
|
|
883
1619
|
id: string;
|
|
884
1620
|
name: string;
|
|
@@ -889,6 +1625,7 @@ declare const app: Elysia<"", {
|
|
|
889
1625
|
image?: string | null | undefined | undefined;
|
|
890
1626
|
merchantId: string;
|
|
891
1627
|
branchId: string;
|
|
1628
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
892
1629
|
};
|
|
893
1630
|
session: {
|
|
894
1631
|
id: string;
|
|
@@ -902,8 +1639,26 @@ declare const app: Elysia<"", {
|
|
|
902
1639
|
};
|
|
903
1640
|
}>;
|
|
904
1641
|
};
|
|
905
|
-
|
|
906
|
-
|
|
1642
|
+
};
|
|
1643
|
+
parser: {};
|
|
1644
|
+
} | {
|
|
1645
|
+
schema: {
|
|
1646
|
+
body: unknown;
|
|
1647
|
+
headers: unknown;
|
|
1648
|
+
query: unknown;
|
|
1649
|
+
params: {};
|
|
1650
|
+
cookie: unknown;
|
|
1651
|
+
response: {};
|
|
1652
|
+
};
|
|
1653
|
+
standaloneSchema: {};
|
|
1654
|
+
macro: {
|
|
1655
|
+
readonly auth?: boolean | undefined;
|
|
1656
|
+
readonly permission?: "INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN" | ("INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN")[] | undefined;
|
|
1657
|
+
readonly userKind?: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER")[] | undefined;
|
|
1658
|
+
};
|
|
1659
|
+
macroFn: {
|
|
1660
|
+
readonly auth: {
|
|
1661
|
+
readonly resolve: ({ status, request: { headers } }: {
|
|
907
1662
|
body: unknown;
|
|
908
1663
|
query: Record<string, string>;
|
|
909
1664
|
params: Record<string, string>;
|
|
@@ -1167,29 +1922,33 @@ declare const app: Elysia<"", {
|
|
|
1167
1922
|
readonly "Not Extended": 510;
|
|
1168
1923
|
readonly "Network Authentication Required": 511;
|
|
1169
1924
|
}[Code] : Code>;
|
|
1170
|
-
})
|
|
1171
|
-
|
|
1925
|
+
}) => Promise<import("elysia/dist/error").ElysiaCustomStatusResponse<401, "Нэвтэрж орно уу.", 401> | {
|
|
1926
|
+
user: {
|
|
1927
|
+
id: string;
|
|
1928
|
+
name: string;
|
|
1929
|
+
email: string;
|
|
1930
|
+
emailVerified: boolean;
|
|
1931
|
+
createdAt: Date;
|
|
1932
|
+
updatedAt: Date;
|
|
1933
|
+
image?: string | null | undefined | undefined;
|
|
1934
|
+
merchantId: string;
|
|
1935
|
+
branchId: string;
|
|
1936
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
1937
|
+
};
|
|
1938
|
+
session: {
|
|
1939
|
+
id: string;
|
|
1940
|
+
createdAt: Date;
|
|
1941
|
+
updatedAt: Date;
|
|
1942
|
+
userId: string;
|
|
1943
|
+
expiresAt: Date;
|
|
1944
|
+
token: string;
|
|
1945
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1946
|
+
userAgent?: string | null | undefined | undefined;
|
|
1947
|
+
};
|
|
1172
1948
|
}>;
|
|
1173
1949
|
};
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
} | {
|
|
1177
|
-
schema: {
|
|
1178
|
-
body: unknown;
|
|
1179
|
-
headers: unknown;
|
|
1180
|
-
query: unknown;
|
|
1181
|
-
params: {};
|
|
1182
|
-
cookie: unknown;
|
|
1183
|
-
response: {};
|
|
1184
|
-
};
|
|
1185
|
-
standaloneSchema: {};
|
|
1186
|
-
macro: {
|
|
1187
|
-
readonly auth?: boolean | undefined;
|
|
1188
|
-
readonly permission?: "INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN" | ("INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN")[] | undefined;
|
|
1189
|
-
};
|
|
1190
|
-
macroFn: {
|
|
1191
|
-
readonly auth: {
|
|
1192
|
-
readonly resolve: ({ status, request: { headers } }: {
|
|
1950
|
+
readonly permission: (input: import("./lib/permissions").PermissionCode | import("./lib/permissions").PermissionCode[]) => {
|
|
1951
|
+
resolve({ status, request: { headers } }: {
|
|
1193
1952
|
body: unknown;
|
|
1194
1953
|
query: Record<string, string>;
|
|
1195
1954
|
params: Record<string, string>;
|
|
@@ -1446,38 +2205,18 @@ declare const app: Elysia<"", {
|
|
|
1446
2205
|
readonly "Bad Gateway": 502;
|
|
1447
2206
|
readonly "Service Unavailable": 503;
|
|
1448
2207
|
readonly "Gateway Timeout": 504;
|
|
1449
|
-
readonly "HTTP Version Not Supported": 505;
|
|
1450
|
-
readonly "Variant Also Negotiates": 506;
|
|
1451
|
-
readonly "Insufficient Storage": 507;
|
|
1452
|
-
readonly "Loop Detected": 508;
|
|
1453
|
-
readonly "Not Extended": 510;
|
|
1454
|
-
readonly "Network Authentication Required": 511;
|
|
1455
|
-
}[Code] : Code>;
|
|
1456
|
-
})
|
|
1457
|
-
|
|
1458
|
-
id: string;
|
|
1459
|
-
name: string;
|
|
1460
|
-
email: string;
|
|
1461
|
-
emailVerified: boolean;
|
|
1462
|
-
createdAt: Date;
|
|
1463
|
-
updatedAt: Date;
|
|
1464
|
-
image?: string | null | undefined | undefined;
|
|
1465
|
-
merchantId: string;
|
|
1466
|
-
branchId: string;
|
|
1467
|
-
};
|
|
1468
|
-
session: {
|
|
1469
|
-
id: string;
|
|
1470
|
-
createdAt: Date;
|
|
1471
|
-
updatedAt: Date;
|
|
1472
|
-
userId: string;
|
|
1473
|
-
expiresAt: Date;
|
|
1474
|
-
token: string;
|
|
1475
|
-
ipAddress?: string | null | undefined | undefined;
|
|
1476
|
-
userAgent?: string | null | undefined | undefined;
|
|
1477
|
-
};
|
|
2208
|
+
readonly "HTTP Version Not Supported": 505;
|
|
2209
|
+
readonly "Variant Also Negotiates": 506;
|
|
2210
|
+
readonly "Insufficient Storage": 507;
|
|
2211
|
+
readonly "Loop Detected": 508;
|
|
2212
|
+
readonly "Not Extended": 510;
|
|
2213
|
+
readonly "Network Authentication Required": 511;
|
|
2214
|
+
}[Code] : Code>;
|
|
2215
|
+
}): Promise<import("elysia/dist/error").ElysiaCustomStatusResponse<"Unauthorized", "Unauthorized", 401> | import("elysia/dist/error").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
2216
|
+
permissions: ("INVENTORY_ITEM_SELECT_OWN" | "INVENTORY_ITEM_SELECT_ADMIN" | "INVENTORY_ITEM_CREATE_OWN" | "INVENTORY_ITEM_CREATE_ADMIN" | "INVENTORY_ITEM_UPDATE_OWN" | "INVENTORY_ITEM_UPDATE_ADMIN" | "INVENTORY_ITEM_DELETE_OWN" | "INVENTORY_ITEM_DELETE_ADMIN" | "INVENTORY_LOG_SELECT_OWN" | "INVENTORY_LOG_SELECT_ADMIN" | "INVENTORY_REFUND_SELECT_OWN" | "INVENTORY_REFUND_SELECT_ADMIN" | "INVENTORY_REFUND_CREATE_OWN" | "INVENTORY_REFUND_APPROVE_ADMIN" | "MERCHANT_BRANCH_SELECT_OWN" | "MERCHANT_BRANCH_SELECT_ADMIN" | "MERCHANT_BRANCH_CREATE" | "MERCHANT_MERCHANT_CREATE" | "MERCHANT_MERCHANT_UPDATE_OWN" | "MERCHANT_MERCHANT_UPDATE_ADMIN" | "PERMISSION_ADD" | "PERMISSION_GROUP_ALL" | "USER_CREATE_OWN" | "USER_CREATE_ADMIN" | "USER_CREATE_BACKOFFICE" | "USER_SELECT_OWN" | "USER_SELECT_ADMIN" | "USER_SELECT_BACKOFFICE" | "BACK_OFFICE_ADMIN")[];
|
|
1478
2217
|
}>;
|
|
1479
2218
|
};
|
|
1480
|
-
readonly
|
|
2219
|
+
readonly userKind: (input: ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER") | ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER")[]) => {
|
|
1481
2220
|
resolve({ status, request: { headers } }: {
|
|
1482
2221
|
body: unknown;
|
|
1483
2222
|
query: Record<string, string>;
|
|
@@ -1743,7 +2482,28 @@ declare const app: Elysia<"", {
|
|
|
1743
2482
|
readonly "Network Authentication Required": 511;
|
|
1744
2483
|
}[Code] : Code>;
|
|
1745
2484
|
}): Promise<import("elysia/dist/error").ElysiaCustomStatusResponse<"Unauthorized", "Unauthorized", 401> | import("elysia/dist/error").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
1746
|
-
|
|
2485
|
+
user: {
|
|
2486
|
+
id: string;
|
|
2487
|
+
name: string;
|
|
2488
|
+
email: string;
|
|
2489
|
+
emailVerified: boolean;
|
|
2490
|
+
createdAt: Date;
|
|
2491
|
+
updatedAt: Date;
|
|
2492
|
+
image?: string | null | undefined | undefined;
|
|
2493
|
+
merchantId: string;
|
|
2494
|
+
branchId: string;
|
|
2495
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
2496
|
+
};
|
|
2497
|
+
session: {
|
|
2498
|
+
id: string;
|
|
2499
|
+
createdAt: Date;
|
|
2500
|
+
updatedAt: Date;
|
|
2501
|
+
userId: string;
|
|
2502
|
+
expiresAt: Date;
|
|
2503
|
+
token: string;
|
|
2504
|
+
ipAddress?: string | null | undefined | undefined;
|
|
2505
|
+
userAgent?: string | null | undefined | undefined;
|
|
2506
|
+
};
|
|
1747
2507
|
}>;
|
|
1748
2508
|
};
|
|
1749
2509
|
};
|
|
@@ -3306,6 +4066,7 @@ declare const app: Elysia<"", {
|
|
|
3306
4066
|
updatedAt: Date;
|
|
3307
4067
|
merchantId: string;
|
|
3308
4068
|
branchId: string;
|
|
4069
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
3309
4070
|
}[];
|
|
3310
4071
|
};
|
|
3311
4072
|
422: {
|
|
@@ -3326,6 +4087,7 @@ declare const app: Elysia<"", {
|
|
|
3326
4087
|
body: {
|
|
3327
4088
|
merchantId?: string | undefined;
|
|
3328
4089
|
branchId?: string | undefined;
|
|
4090
|
+
kind?: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | undefined;
|
|
3329
4091
|
password?: string | undefined;
|
|
3330
4092
|
name: string;
|
|
3331
4093
|
email: string;
|
|
@@ -3378,6 +4140,7 @@ declare const app: Elysia<"", {
|
|
|
3378
4140
|
updatedAt?: Date | undefined;
|
|
3379
4141
|
merchantId?: string | undefined;
|
|
3380
4142
|
branchId?: string | undefined;
|
|
4143
|
+
kind?: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | undefined;
|
|
3381
4144
|
permissions: never[];
|
|
3382
4145
|
};
|
|
3383
4146
|
params: {
|
|
@@ -3396,6 +4159,7 @@ declare const app: Elysia<"", {
|
|
|
3396
4159
|
updatedAt: Date;
|
|
3397
4160
|
merchantId: string;
|
|
3398
4161
|
branchId: string;
|
|
4162
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
3399
4163
|
};
|
|
3400
4164
|
404: "Хэрэглэгч олдсонгүй.";
|
|
3401
4165
|
422: {
|
|
@@ -3554,6 +4318,282 @@ declare const app: Elysia<"", {
|
|
|
3554
4318
|
};
|
|
3555
4319
|
};
|
|
3556
4320
|
};
|
|
4321
|
+
} & {
|
|
4322
|
+
warehouse: {
|
|
4323
|
+
product: {};
|
|
4324
|
+
} & {
|
|
4325
|
+
product: {
|
|
4326
|
+
get: {
|
|
4327
|
+
body: unknown;
|
|
4328
|
+
params: {};
|
|
4329
|
+
query: {
|
|
4330
|
+
search?: string | undefined;
|
|
4331
|
+
branchId?: string | undefined;
|
|
4332
|
+
supplierId?: string | undefined;
|
|
4333
|
+
alias?: string | undefined;
|
|
4334
|
+
productId?: string | undefined;
|
|
4335
|
+
priceSell?: number | undefined;
|
|
4336
|
+
pagination: {
|
|
4337
|
+
size: number;
|
|
4338
|
+
page: number;
|
|
4339
|
+
};
|
|
4340
|
+
};
|
|
4341
|
+
headers: unknown;
|
|
4342
|
+
response: {
|
|
4343
|
+
200: {
|
|
4344
|
+
totalCount: number;
|
|
4345
|
+
totalPage: number;
|
|
4346
|
+
result: {
|
|
4347
|
+
supplierId: string;
|
|
4348
|
+
productId: string | null;
|
|
4349
|
+
name: string;
|
|
4350
|
+
description: string | null;
|
|
4351
|
+
priceSell: number;
|
|
4352
|
+
priceBuy: number;
|
|
4353
|
+
barCode: string | null;
|
|
4354
|
+
oen: string | null;
|
|
4355
|
+
partNumber: string;
|
|
4356
|
+
alias: string | null;
|
|
4357
|
+
companyId: string;
|
|
4358
|
+
type: string | null;
|
|
4359
|
+
id: string;
|
|
4360
|
+
createdAt: string;
|
|
4361
|
+
updatedAt: string;
|
|
4362
|
+
deletedAt: string | null;
|
|
4363
|
+
}[];
|
|
4364
|
+
};
|
|
4365
|
+
422: {
|
|
4366
|
+
type: "validation";
|
|
4367
|
+
on: string;
|
|
4368
|
+
summary?: string;
|
|
4369
|
+
message?: string;
|
|
4370
|
+
found?: unknown;
|
|
4371
|
+
property?: string;
|
|
4372
|
+
expected?: string;
|
|
4373
|
+
};
|
|
4374
|
+
};
|
|
4375
|
+
};
|
|
4376
|
+
};
|
|
4377
|
+
} & {
|
|
4378
|
+
product: {
|
|
4379
|
+
post: {
|
|
4380
|
+
body: {
|
|
4381
|
+
type?: string | null | undefined;
|
|
4382
|
+
barCode?: string | null | undefined;
|
|
4383
|
+
alias?: string | null | undefined;
|
|
4384
|
+
oen?: string | null | undefined;
|
|
4385
|
+
description?: string | null | undefined;
|
|
4386
|
+
productId?: string | null | undefined;
|
|
4387
|
+
name: string;
|
|
4388
|
+
partNumber: string;
|
|
4389
|
+
supplierId: string;
|
|
4390
|
+
priceSell: number;
|
|
4391
|
+
priceBuy: number;
|
|
4392
|
+
} | {
|
|
4393
|
+
type?: string | null | undefined;
|
|
4394
|
+
barCode?: string | null | undefined;
|
|
4395
|
+
alias?: string | null | undefined;
|
|
4396
|
+
oen?: string | null | undefined;
|
|
4397
|
+
description?: string | null | undefined;
|
|
4398
|
+
productId?: string | null | undefined;
|
|
4399
|
+
name: string;
|
|
4400
|
+
partNumber: string;
|
|
4401
|
+
supplierId: string;
|
|
4402
|
+
priceSell: number;
|
|
4403
|
+
priceBuy: number;
|
|
4404
|
+
}[];
|
|
4405
|
+
params: {};
|
|
4406
|
+
query: unknown;
|
|
4407
|
+
headers: unknown;
|
|
4408
|
+
response: {
|
|
4409
|
+
200: AsyncGenerator<{
|
|
4410
|
+
percent: number;
|
|
4411
|
+
count: number;
|
|
4412
|
+
total: number;
|
|
4413
|
+
}, void, unknown>;
|
|
4414
|
+
422: {
|
|
4415
|
+
type: "validation";
|
|
4416
|
+
on: string;
|
|
4417
|
+
summary?: string;
|
|
4418
|
+
message?: string;
|
|
4419
|
+
found?: unknown;
|
|
4420
|
+
property?: string;
|
|
4421
|
+
expected?: string;
|
|
4422
|
+
};
|
|
4423
|
+
};
|
|
4424
|
+
};
|
|
4425
|
+
};
|
|
4426
|
+
} & {
|
|
4427
|
+
product: {
|
|
4428
|
+
":id": {
|
|
4429
|
+
put: {
|
|
4430
|
+
body: {
|
|
4431
|
+
type?: string | null | undefined;
|
|
4432
|
+
name?: string | undefined;
|
|
4433
|
+
partNumber?: string | undefined;
|
|
4434
|
+
supplierId?: string | undefined;
|
|
4435
|
+
barCode?: string | null | undefined;
|
|
4436
|
+
alias?: string | null | undefined;
|
|
4437
|
+
oen?: string | null | undefined;
|
|
4438
|
+
description?: string | null | undefined;
|
|
4439
|
+
productId?: string | null | undefined;
|
|
4440
|
+
priceSell?: number | undefined;
|
|
4441
|
+
priceBuy?: number | undefined;
|
|
4442
|
+
companyId?: string | undefined;
|
|
4443
|
+
};
|
|
4444
|
+
params: {
|
|
4445
|
+
id: string;
|
|
4446
|
+
};
|
|
4447
|
+
query: unknown;
|
|
4448
|
+
headers: unknown;
|
|
4449
|
+
response: {
|
|
4450
|
+
200: {
|
|
4451
|
+
supplierId: string;
|
|
4452
|
+
productId: string | null;
|
|
4453
|
+
name: string;
|
|
4454
|
+
description: string | null;
|
|
4455
|
+
priceSell: number;
|
|
4456
|
+
priceBuy: number;
|
|
4457
|
+
barCode: string | null;
|
|
4458
|
+
oen: string | null;
|
|
4459
|
+
partNumber: string;
|
|
4460
|
+
alias: string | null;
|
|
4461
|
+
companyId: string;
|
|
4462
|
+
type: string | null;
|
|
4463
|
+
id: string;
|
|
4464
|
+
createdAt: string;
|
|
4465
|
+
updatedAt: string;
|
|
4466
|
+
deletedAt: string | null;
|
|
4467
|
+
};
|
|
4468
|
+
404: "Бараа олдсонгүй.";
|
|
4469
|
+
422: {
|
|
4470
|
+
type: "validation";
|
|
4471
|
+
on: string;
|
|
4472
|
+
summary?: string;
|
|
4473
|
+
message?: string;
|
|
4474
|
+
found?: unknown;
|
|
4475
|
+
property?: string;
|
|
4476
|
+
expected?: string;
|
|
4477
|
+
};
|
|
4478
|
+
};
|
|
4479
|
+
};
|
|
4480
|
+
};
|
|
4481
|
+
};
|
|
4482
|
+
};
|
|
4483
|
+
} & {
|
|
4484
|
+
warehouse: {
|
|
4485
|
+
item: {
|
|
4486
|
+
post: {
|
|
4487
|
+
body: {
|
|
4488
|
+
quantity?: number | undefined;
|
|
4489
|
+
shelfNumber?: string | null | undefined;
|
|
4490
|
+
safetyStock: number;
|
|
4491
|
+
productId: string;
|
|
4492
|
+
warehouseId: string;
|
|
4493
|
+
};
|
|
4494
|
+
params: {};
|
|
4495
|
+
query: unknown;
|
|
4496
|
+
headers: unknown;
|
|
4497
|
+
response: {
|
|
4498
|
+
200: {
|
|
4499
|
+
id: string;
|
|
4500
|
+
createdAt: string;
|
|
4501
|
+
updatedAt: string;
|
|
4502
|
+
deletedAt: string | null;
|
|
4503
|
+
quantity: number;
|
|
4504
|
+
safetyStock: number;
|
|
4505
|
+
shelfNumber: string | null;
|
|
4506
|
+
productId: string;
|
|
4507
|
+
warehouseId: string;
|
|
4508
|
+
};
|
|
4509
|
+
422: {
|
|
4510
|
+
type: "validation";
|
|
4511
|
+
on: string;
|
|
4512
|
+
summary?: string;
|
|
4513
|
+
message?: string;
|
|
4514
|
+
found?: unknown;
|
|
4515
|
+
property?: string;
|
|
4516
|
+
expected?: string;
|
|
4517
|
+
};
|
|
4518
|
+
};
|
|
4519
|
+
};
|
|
4520
|
+
};
|
|
4521
|
+
} & {
|
|
4522
|
+
item: {
|
|
4523
|
+
many: {
|
|
4524
|
+
post: {
|
|
4525
|
+
body: {
|
|
4526
|
+
quantity?: number | undefined;
|
|
4527
|
+
shelfNumber?: string | null | undefined;
|
|
4528
|
+
safetyStock: number;
|
|
4529
|
+
productId: string;
|
|
4530
|
+
warehouseId: string;
|
|
4531
|
+
}[];
|
|
4532
|
+
params: {};
|
|
4533
|
+
query: unknown;
|
|
4534
|
+
headers: unknown;
|
|
4535
|
+
response: {
|
|
4536
|
+
200: AsyncGenerator<{
|
|
4537
|
+
percent: number;
|
|
4538
|
+
count: number;
|
|
4539
|
+
total: number;
|
|
4540
|
+
}, void, unknown>;
|
|
4541
|
+
422: {
|
|
4542
|
+
type: "validation";
|
|
4543
|
+
on: string;
|
|
4544
|
+
summary?: string;
|
|
4545
|
+
message?: string;
|
|
4546
|
+
found?: unknown;
|
|
4547
|
+
property?: string;
|
|
4548
|
+
expected?: string;
|
|
4549
|
+
};
|
|
4550
|
+
};
|
|
4551
|
+
};
|
|
4552
|
+
};
|
|
4553
|
+
};
|
|
4554
|
+
} & {
|
|
4555
|
+
item: {
|
|
4556
|
+
":id": {
|
|
4557
|
+
put: {
|
|
4558
|
+
body: {
|
|
4559
|
+
quantity?: number | undefined;
|
|
4560
|
+
safetyStock?: number | undefined;
|
|
4561
|
+
shelfNumber?: string | null | undefined;
|
|
4562
|
+
productId?: string | undefined;
|
|
4563
|
+
warehouseId?: string | undefined;
|
|
4564
|
+
};
|
|
4565
|
+
params: {
|
|
4566
|
+
id: string;
|
|
4567
|
+
};
|
|
4568
|
+
query: unknown;
|
|
4569
|
+
headers: unknown;
|
|
4570
|
+
response: {
|
|
4571
|
+
200: {
|
|
4572
|
+
warehouseId: string;
|
|
4573
|
+
productId: string;
|
|
4574
|
+
quantity: number;
|
|
4575
|
+
safetyStock: number;
|
|
4576
|
+
shelfNumber: string | null;
|
|
4577
|
+
id: string;
|
|
4578
|
+
createdAt: string;
|
|
4579
|
+
updatedAt: string;
|
|
4580
|
+
deletedAt: string | null;
|
|
4581
|
+
};
|
|
4582
|
+
404: "Агуулахын бараа олдсонгүй.";
|
|
4583
|
+
422: {
|
|
4584
|
+
type: "validation";
|
|
4585
|
+
on: string;
|
|
4586
|
+
summary?: string;
|
|
4587
|
+
message?: string;
|
|
4588
|
+
found?: unknown;
|
|
4589
|
+
property?: string;
|
|
4590
|
+
expected?: string;
|
|
4591
|
+
};
|
|
4592
|
+
};
|
|
4593
|
+
};
|
|
4594
|
+
};
|
|
4595
|
+
};
|
|
4596
|
+
};
|
|
3557
4597
|
};
|
|
3558
4598
|
}, {
|
|
3559
4599
|
derive: {};
|