autosync_backend2 1.0.81 → 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 +2419 -1208
- package/dist/index.js +1001 -494
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +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 & typeof import("./routes/warehouse/product/logic").default & typeof import("./routes/warehouse/item/logic").default;
|
|
9
10
|
};
|
|
10
11
|
store: {};
|
|
11
12
|
derive: {
|
|
@@ -19,6 +20,7 @@ declare const app: Elysia<"", {
|
|
|
19
20
|
description: string;
|
|
20
21
|
requiresAdmin?: boolean;
|
|
21
22
|
}[];
|
|
23
|
+
logic: typeof import("./routes/warehouse/warehouse/logic").default & typeof import("./routes/warehouse/product/logic").default & typeof import("./routes/warehouse/item/logic").default;
|
|
22
24
|
};
|
|
23
25
|
store: {
|
|
24
26
|
startTime?: number | undefined;
|
|
@@ -67,56 +69,6 @@ declare const app: Elysia<"", {
|
|
|
67
69
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
68
70
|
itemId: import("@sinclair/typebox").TString;
|
|
69
71
|
images: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
70
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
71
|
-
items: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
72
|
-
quantity: import("@sinclair/typebox").TNumber;
|
|
73
|
-
itemId: import("@sinclair/typebox").TString;
|
|
74
|
-
}>>;
|
|
75
|
-
to: import("@sinclair/typebox").TString;
|
|
76
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
77
|
-
name: import("@sinclair/typebox").TString;
|
|
78
|
-
email: import("@sinclair/typebox").TString;
|
|
79
|
-
regNumber: import("@sinclair/typebox").TString;
|
|
80
|
-
phone: import("@sinclair/typebox").TString;
|
|
81
|
-
serviceName: import("@sinclair/typebox").TString;
|
|
82
|
-
logoUrl: import("@sinclair/typebox").TString;
|
|
83
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
84
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
85
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
86
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
87
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
88
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
89
|
-
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
90
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
91
|
-
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
92
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
93
|
-
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
94
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
95
|
-
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
96
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
97
|
-
name: import("@sinclair/typebox").TString;
|
|
98
|
-
email: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
99
|
-
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
100
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
101
|
-
phone: import("@sinclair/typebox").TRegExp;
|
|
102
|
-
logoUrl: import("@sinclair/typebox").TString;
|
|
103
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
104
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
105
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
106
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
107
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
108
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
109
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
110
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
111
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
112
|
-
packageId: import("@sinclair/typebox").TString;
|
|
113
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
114
|
-
name: import("@sinclair/typebox").TString;
|
|
115
|
-
rowCount: import("@sinclair/typebox").TInteger;
|
|
116
|
-
price: import("@sinclair/typebox").TNumber;
|
|
117
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
118
|
-
name: import("@sinclair/typebox").TString;
|
|
119
|
-
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
120
72
|
}>;
|
|
121
73
|
readonly update: import("@sinclair/typebox").TObject<{
|
|
122
74
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
|
|
@@ -140,50 +92,6 @@ declare const app: Elysia<"", {
|
|
|
140
92
|
}> & import("@sinclair/typebox").TObject<{
|
|
141
93
|
name: import("@sinclair/typebox").TString;
|
|
142
94
|
image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
143
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
144
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
145
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
146
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
147
|
-
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
148
|
-
serviceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
149
|
-
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
150
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
151
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
152
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
153
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
154
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
155
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
156
|
-
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
157
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
158
|
-
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
159
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
160
|
-
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
161
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
162
|
-
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
163
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
164
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
165
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
166
|
-
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
167
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
168
|
-
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
169
|
-
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
170
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
171
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
172
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
173
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
174
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
175
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
176
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
177
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
178
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
179
|
-
packageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
180
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
181
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
182
|
-
rowCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
183
|
-
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
184
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
185
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
186
|
-
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
187
95
|
}>;
|
|
188
96
|
readonly select: import("@sinclair/typebox").TObject<{
|
|
189
97
|
type: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TUnionEnum<["Сэлбэг", "Тос", "Дугуй", "Будаг", "Аккумлятор"]>>;
|
|
@@ -229,7 +137,12 @@ declare const app: Elysia<"", {
|
|
|
229
137
|
page: import("@sinclair/typebox").TInteger;
|
|
230
138
|
size: import("@sinclair/typebox").TInteger;
|
|
231
139
|
}>;
|
|
232
|
-
}
|
|
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<{
|
|
233
146
|
createdAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
234
147
|
createdUserId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
235
148
|
inventory: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -250,7 +163,60 @@ declare const app: Elysia<"", {
|
|
|
250
163
|
page: import("@sinclair/typebox").TInteger;
|
|
251
164
|
size: import("@sinclair/typebox").TInteger;
|
|
252
165
|
}>;
|
|
253
|
-
}
|
|
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<{
|
|
254
220
|
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
255
221
|
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRegExp>;
|
|
256
222
|
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -259,7 +225,44 @@ declare const app: Elysia<"", {
|
|
|
259
225
|
page: import("@sinclair/typebox").TInteger;
|
|
260
226
|
size: import("@sinclair/typebox").TInteger;
|
|
261
227
|
}>;
|
|
262
|
-
}
|
|
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<{
|
|
263
266
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
264
267
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
265
268
|
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
@@ -284,113 +287,163 @@ declare const app: Elysia<"", {
|
|
|
284
287
|
page: import("@sinclair/typebox").TInteger;
|
|
285
288
|
size: import("@sinclair/typebox").TInteger;
|
|
286
289
|
}>;
|
|
287
|
-
}
|
|
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<{
|
|
288
310
|
pagination: import("@sinclair/typebox").TObject<{
|
|
289
311
|
page: import("@sinclair/typebox").TInteger;
|
|
290
312
|
size: import("@sinclair/typebox").TInteger;
|
|
291
313
|
}>;
|
|
292
314
|
}>;
|
|
293
|
-
readonly
|
|
294
|
-
file: import("@sinclair/typebox").TUnsafe<File>;
|
|
295
|
-
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
296
|
-
}>;
|
|
297
|
-
readonly approve: import("@sinclair/typebox").TObject<{
|
|
298
|
-
id: import("@sinclair/typebox").TString;
|
|
299
|
-
}>;
|
|
300
|
-
readonly addPermission: import("@sinclair/typebox").TObject<{
|
|
315
|
+
readonly "PermissionModel.addPermission": import("@sinclair/typebox").TObject<{
|
|
301
316
|
userId: import("@sinclair/typebox").TString;
|
|
302
317
|
permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
303
318
|
}>;
|
|
304
|
-
|
|
305
|
-
error: {};
|
|
306
|
-
} | {
|
|
307
|
-
typebox: {
|
|
308
|
-
Import: <Key extends never>(key: Key, options?: import("@sinclair/typebox").SchemaOptions) => import("@sinclair/typebox").TImport<{}, Key>;
|
|
309
|
-
readonly create: import("@sinclair/typebox").TObject<{
|
|
310
|
-
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
|
|
311
|
-
Сэлбэг: "Сэлбэг";
|
|
312
|
-
Тос: "Тос";
|
|
313
|
-
Дугуй: "Дугуй";
|
|
314
|
-
Будаг: "Будаг";
|
|
315
|
-
Аккумлятор: "Аккумлятор";
|
|
316
|
-
}>, import("@sinclair/typebox").TNull]>>;
|
|
319
|
+
readonly "Warehouse.create": import("@sinclair/typebox").TObject<{
|
|
317
320
|
name: import("@sinclair/typebox").TString;
|
|
318
|
-
|
|
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<{
|
|
319
329
|
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
330
|
+
pagination: import("@sinclair/typebox").TObject<{
|
|
331
|
+
page: import("@sinclair/typebox").TInteger;
|
|
332
|
+
size: import("@sinclair/typebox").TInteger;
|
|
333
|
+
}>;
|
|
334
|
+
}>;
|
|
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]>>;
|
|
337
|
+
name: import("@sinclair/typebox").TString;
|
|
320
338
|
partNumber: import("@sinclair/typebox").TString;
|
|
321
|
-
quantity: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
322
|
-
sellPrice: import("@sinclair/typebox").TNumber;
|
|
323
|
-
buyPrice: import("@sinclair/typebox").TNumber;
|
|
324
339
|
supplierId: import("@sinclair/typebox").TString;
|
|
325
340
|
barCode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
326
|
-
safetyStock: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>>;
|
|
327
341
|
alias: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
328
342
|
oen: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
329
|
-
shelfNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
330
343
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}> & 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]>>;
|
|
337
349
|
name: import("@sinclair/typebox").TString;
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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]>>;
|
|
341
355
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
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]>>;
|
|
371
420
|
name: import("@sinclair/typebox").TString;
|
|
372
|
-
email: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
373
421
|
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
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]>>;
|
|
387
434
|
}> & import("@sinclair/typebox").TObject<{
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
435
|
+
itemId: import("@sinclair/typebox").TString;
|
|
436
|
+
quantity: import("@sinclair/typebox").TNumber;
|
|
437
|
+
description: import("@sinclair/typebox").TString;
|
|
438
|
+
userId: import("@sinclair/typebox").TString;
|
|
391
439
|
}> & import("@sinclair/typebox").TObject<{
|
|
392
440
|
name: import("@sinclair/typebox").TString;
|
|
393
|
-
|
|
441
|
+
image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
442
|
+
}> & import("@sinclair/typebox").TObject<{
|
|
443
|
+
quantity: import("@sinclair/typebox").TNumber;
|
|
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>;
|
|
394
447
|
}>;
|
|
395
448
|
readonly update: import("@sinclair/typebox").TObject<{
|
|
396
449
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
|
|
@@ -414,50 +467,6 @@ declare const app: Elysia<"", {
|
|
|
414
467
|
}> & import("@sinclair/typebox").TObject<{
|
|
415
468
|
name: import("@sinclair/typebox").TString;
|
|
416
469
|
image: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
417
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
418
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
419
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
420
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
421
|
-
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
422
|
-
serviceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
423
|
-
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
424
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
425
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
426
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
427
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
428
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
429
|
-
ceoName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
430
|
-
webUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
431
|
-
googleMapUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
432
|
-
isContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
433
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
434
|
-
isNexus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
435
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
436
|
-
branchCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
437
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
438
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
439
|
-
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
440
|
-
merchantId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
441
|
-
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
442
|
-
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
443
|
-
logoUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
444
|
-
province: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
445
|
-
district: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
446
|
-
khoroo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
447
|
-
street: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
448
|
-
socialUrls: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
449
|
-
ceoName: 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
|
-
isNoat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
452
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
453
|
-
packageId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
454
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
455
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
456
|
-
rowCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
457
|
-
price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
458
|
-
}> & import("@sinclair/typebox").TObject<{
|
|
459
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
460
|
-
permissions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
461
470
|
}>;
|
|
462
471
|
readonly select: import("@sinclair/typebox").TObject<{
|
|
463
472
|
type: import("@sinclair/typebox").TOptional<import("elysia/dist/type-system/types").TUnionEnum<["Сэлбэг", "Тос", "Дугуй", "Будаг", "Аккумлятор"]>>;
|
|
@@ -503,7 +512,12 @@ declare const app: Elysia<"", {
|
|
|
503
512
|
page: import("@sinclair/typebox").TInteger;
|
|
504
513
|
size: import("@sinclair/typebox").TInteger;
|
|
505
514
|
}>;
|
|
506
|
-
}
|
|
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<{
|
|
507
521
|
createdAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
508
522
|
createdUserId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
509
523
|
inventory: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
@@ -524,7 +538,60 @@ declare const app: Elysia<"", {
|
|
|
524
538
|
page: import("@sinclair/typebox").TInteger;
|
|
525
539
|
size: import("@sinclair/typebox").TInteger;
|
|
526
540
|
}>;
|
|
527
|
-
}
|
|
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<{
|
|
528
595
|
regNumber: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
529
596
|
phone: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRegExp>;
|
|
530
597
|
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -533,7 +600,44 @@ declare const app: Elysia<"", {
|
|
|
533
600
|
page: import("@sinclair/typebox").TInteger;
|
|
534
601
|
size: import("@sinclair/typebox").TInteger;
|
|
535
602
|
}>;
|
|
536
|
-
}
|
|
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<{
|
|
537
641
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
538
642
|
id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
539
643
|
email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
@@ -558,23 +662,123 @@ declare const app: Elysia<"", {
|
|
|
558
662
|
page: import("@sinclair/typebox").TInteger;
|
|
559
663
|
size: import("@sinclair/typebox").TInteger;
|
|
560
664
|
}>;
|
|
561
|
-
}
|
|
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<{
|
|
562
685
|
pagination: import("@sinclair/typebox").TObject<{
|
|
563
686
|
page: import("@sinclair/typebox").TInteger;
|
|
564
687
|
size: import("@sinclair/typebox").TInteger;
|
|
565
688
|
}>;
|
|
566
689
|
}>;
|
|
567
|
-
readonly
|
|
568
|
-
|
|
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<{
|
|
569
704
|
branchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
705
|
+
pagination: import("@sinclair/typebox").TObject<{
|
|
706
|
+
page: import("@sinclair/typebox").TInteger;
|
|
707
|
+
size: import("@sinclair/typebox").TInteger;
|
|
708
|
+
}>;
|
|
570
709
|
}>;
|
|
571
|
-
readonly
|
|
572
|
-
|
|
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>;
|
|
573
748
|
}>;
|
|
574
|
-
readonly
|
|
575
|
-
|
|
576
|
-
|
|
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>;
|
|
577
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
|
+
}>>;
|
|
578
782
|
};
|
|
579
783
|
error: {};
|
|
580
784
|
}, {
|
|
@@ -583,6 +787,7 @@ declare const app: Elysia<"", {
|
|
|
583
787
|
macro: {
|
|
584
788
|
readonly auth?: boolean | undefined;
|
|
585
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;
|
|
586
791
|
};
|
|
587
792
|
macroFn: {
|
|
588
793
|
readonly auth: {
|
|
@@ -861,6 +1066,7 @@ declare const app: Elysia<"", {
|
|
|
861
1066
|
image?: string | null | undefined | undefined;
|
|
862
1067
|
merchantId: string;
|
|
863
1068
|
branchId: string;
|
|
1069
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
864
1070
|
};
|
|
865
1071
|
session: {
|
|
866
1072
|
id: string;
|
|
@@ -1143,25 +1349,8 @@ declare const app: Elysia<"", {
|
|
|
1143
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")[];
|
|
1144
1350
|
}>;
|
|
1145
1351
|
};
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
} | {
|
|
1149
|
-
schema: {
|
|
1150
|
-
body: unknown;
|
|
1151
|
-
headers: unknown;
|
|
1152
|
-
query: unknown;
|
|
1153
|
-
params: {};
|
|
1154
|
-
cookie: unknown;
|
|
1155
|
-
response: {};
|
|
1156
|
-
};
|
|
1157
|
-
standaloneSchema: {};
|
|
1158
|
-
macro: {
|
|
1159
|
-
readonly auth?: boolean | undefined;
|
|
1160
|
-
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;
|
|
1161
|
-
};
|
|
1162
|
-
macroFn: {
|
|
1163
|
-
readonly auth: {
|
|
1164
|
-
readonly resolve: ({ status, request: { headers } }: {
|
|
1352
|
+
readonly userKind: (input: ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER") | ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER")[]) => {
|
|
1353
|
+
resolve({ status, request: { headers } }: {
|
|
1165
1354
|
body: unknown;
|
|
1166
1355
|
query: Record<string, string>;
|
|
1167
1356
|
params: Record<string, string>;
|
|
@@ -1425,7 +1614,7 @@ declare const app: Elysia<"", {
|
|
|
1425
1614
|
readonly "Not Extended": 510;
|
|
1426
1615
|
readonly "Network Authentication Required": 511;
|
|
1427
1616
|
}[Code] : Code>;
|
|
1428
|
-
})
|
|
1617
|
+
}): Promise<import("elysia/dist/error").ElysiaCustomStatusResponse<"Unauthorized", "Unauthorized", 401> | import("elysia/dist/error").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
1429
1618
|
user: {
|
|
1430
1619
|
id: string;
|
|
1431
1620
|
name: string;
|
|
@@ -1436,6 +1625,7 @@ declare const app: Elysia<"", {
|
|
|
1436
1625
|
image?: string | null | undefined | undefined;
|
|
1437
1626
|
merchantId: string;
|
|
1438
1627
|
branchId: string;
|
|
1628
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
1439
1629
|
};
|
|
1440
1630
|
session: {
|
|
1441
1631
|
id: string;
|
|
@@ -1449,8 +1639,26 @@ declare const app: Elysia<"", {
|
|
|
1449
1639
|
};
|
|
1450
1640
|
}>;
|
|
1451
1641
|
};
|
|
1452
|
-
|
|
1453
|
-
|
|
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 } }: {
|
|
1454
1662
|
body: unknown;
|
|
1455
1663
|
query: Record<string, string>;
|
|
1456
1664
|
params: Record<string, string>;
|
|
@@ -1714,151 +1922,1014 @@ declare const app: Elysia<"", {
|
|
|
1714
1922
|
readonly "Not Extended": 510;
|
|
1715
1923
|
readonly "Network Authentication Required": 511;
|
|
1716
1924
|
}[Code] : Code>;
|
|
1717
|
-
})
|
|
1718
|
-
|
|
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
|
+
};
|
|
1719
1948
|
}>;
|
|
1720
1949
|
};
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
branchId?: string | undefined;
|
|
1736
|
-
sellPrice?: number | undefined;
|
|
1737
|
-
supplierId?: string | undefined;
|
|
1738
|
-
safetyStock?: number | undefined;
|
|
1739
|
-
alias?: string | undefined;
|
|
1740
|
-
shelfNumber?: string | undefined;
|
|
1741
|
-
pagination: {
|
|
1742
|
-
size: number;
|
|
1743
|
-
page: number;
|
|
1744
|
-
};
|
|
1745
|
-
};
|
|
1746
|
-
headers: unknown;
|
|
1747
|
-
response: {
|
|
1748
|
-
200: {
|
|
1749
|
-
pageQuantity: number;
|
|
1750
|
-
totalQuantity: number;
|
|
1751
|
-
pagePrice: number;
|
|
1752
|
-
totalPrice: number;
|
|
1753
|
-
totalCount: number;
|
|
1754
|
-
totalPage: number;
|
|
1755
|
-
result: {
|
|
1756
|
-
name: string;
|
|
1757
|
-
partNumber: string;
|
|
1758
|
-
quantity: number;
|
|
1759
|
-
sellPrice: number;
|
|
1760
|
-
buyPrice: number;
|
|
1761
|
-
supplierId: string;
|
|
1762
|
-
merchantId: string;
|
|
1763
|
-
branchId: string;
|
|
1764
|
-
type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null;
|
|
1765
|
-
barCode: string | null;
|
|
1766
|
-
safetyStock: number | null;
|
|
1767
|
-
alias: string | null;
|
|
1768
|
-
oen: string | null;
|
|
1769
|
-
shelfNumber: string | null;
|
|
1770
|
-
description: string | null;
|
|
1771
|
-
id: string;
|
|
1772
|
-
createdAt: string;
|
|
1773
|
-
updatedAt: string;
|
|
1774
|
-
deletedAt: string | null;
|
|
1775
|
-
}[];
|
|
1776
|
-
};
|
|
1777
|
-
422: {
|
|
1778
|
-
type: "validation";
|
|
1779
|
-
on: string;
|
|
1780
|
-
summary?: string;
|
|
1781
|
-
message?: string;
|
|
1782
|
-
found?: unknown;
|
|
1783
|
-
property?: string;
|
|
1784
|
-
expected?: string;
|
|
1785
|
-
};
|
|
1786
|
-
};
|
|
1950
|
+
readonly permission: (input: import("./lib/permissions").PermissionCode | import("./lib/permissions").PermissionCode[]) => {
|
|
1951
|
+
resolve({ status, request: { headers } }: {
|
|
1952
|
+
body: unknown;
|
|
1953
|
+
query: Record<string, string>;
|
|
1954
|
+
params: Record<string, string>;
|
|
1955
|
+
headers: Record<string, string | undefined>;
|
|
1956
|
+
cookie: Record<string, import("elysia").Cookie<string | undefined>>;
|
|
1957
|
+
server: Bun.Server | null;
|
|
1958
|
+
redirect: import("elysia").redirect;
|
|
1959
|
+
set: {
|
|
1960
|
+
headers: import("elysia/dist/types").HTTPHeaders;
|
|
1961
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
1962
|
+
redirect?: string;
|
|
1963
|
+
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
1787
1964
|
};
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1965
|
+
path: string;
|
|
1966
|
+
route: string;
|
|
1967
|
+
request: Request;
|
|
1968
|
+
store: {};
|
|
1969
|
+
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 ? {
|
|
1970
|
+
readonly 100: "Continue";
|
|
1971
|
+
readonly 101: "Switching Protocols";
|
|
1972
|
+
readonly 102: "Processing";
|
|
1973
|
+
readonly 103: "Early Hints";
|
|
1974
|
+
readonly 200: "OK";
|
|
1975
|
+
readonly 201: "Created";
|
|
1976
|
+
readonly 202: "Accepted";
|
|
1977
|
+
readonly 203: "Non-Authoritative Information";
|
|
1978
|
+
readonly 204: "No Content";
|
|
1979
|
+
readonly 205: "Reset Content";
|
|
1980
|
+
readonly 206: "Partial Content";
|
|
1981
|
+
readonly 207: "Multi-Status";
|
|
1982
|
+
readonly 208: "Already Reported";
|
|
1983
|
+
readonly 300: "Multiple Choices";
|
|
1984
|
+
readonly 301: "Moved Permanently";
|
|
1985
|
+
readonly 302: "Found";
|
|
1986
|
+
readonly 303: "See Other";
|
|
1987
|
+
readonly 304: "Not Modified";
|
|
1988
|
+
readonly 307: "Temporary Redirect";
|
|
1989
|
+
readonly 308: "Permanent Redirect";
|
|
1990
|
+
readonly 400: "Bad Request";
|
|
1991
|
+
readonly 401: "Unauthorized";
|
|
1992
|
+
readonly 402: "Payment Required";
|
|
1993
|
+
readonly 403: "Forbidden";
|
|
1994
|
+
readonly 404: "Not Found";
|
|
1995
|
+
readonly 405: "Method Not Allowed";
|
|
1996
|
+
readonly 406: "Not Acceptable";
|
|
1997
|
+
readonly 407: "Proxy Authentication Required";
|
|
1998
|
+
readonly 408: "Request Timeout";
|
|
1999
|
+
readonly 409: "Conflict";
|
|
2000
|
+
readonly 410: "Gone";
|
|
2001
|
+
readonly 411: "Length Required";
|
|
2002
|
+
readonly 412: "Precondition Failed";
|
|
2003
|
+
readonly 413: "Payload Too Large";
|
|
2004
|
+
readonly 414: "URI Too Long";
|
|
2005
|
+
readonly 415: "Unsupported Media Type";
|
|
2006
|
+
readonly 416: "Range Not Satisfiable";
|
|
2007
|
+
readonly 417: "Expectation Failed";
|
|
2008
|
+
readonly 418: "I'm a teapot";
|
|
2009
|
+
readonly 421: "Misdirected Request";
|
|
2010
|
+
readonly 422: "Unprocessable Content";
|
|
2011
|
+
readonly 423: "Locked";
|
|
2012
|
+
readonly 424: "Failed Dependency";
|
|
2013
|
+
readonly 425: "Too Early";
|
|
2014
|
+
readonly 426: "Upgrade Required";
|
|
2015
|
+
readonly 428: "Precondition Required";
|
|
2016
|
+
readonly 429: "Too Many Requests";
|
|
2017
|
+
readonly 431: "Request Header Fields Too Large";
|
|
2018
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
2019
|
+
readonly 500: "Internal Server Error";
|
|
2020
|
+
readonly 501: "Not Implemented";
|
|
2021
|
+
readonly 502: "Bad Gateway";
|
|
2022
|
+
readonly 503: "Service Unavailable";
|
|
2023
|
+
readonly 504: "Gateway Timeout";
|
|
2024
|
+
readonly 505: "HTTP Version Not Supported";
|
|
2025
|
+
readonly 506: "Variant Also Negotiates";
|
|
2026
|
+
readonly 507: "Insufficient Storage";
|
|
2027
|
+
readonly 508: "Loop Detected";
|
|
2028
|
+
readonly 510: "Not Extended";
|
|
2029
|
+
readonly 511: "Network Authentication Required";
|
|
2030
|
+
}[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" ? {
|
|
2031
|
+
readonly Continue: 100;
|
|
2032
|
+
readonly "Switching Protocols": 101;
|
|
2033
|
+
readonly Processing: 102;
|
|
2034
|
+
readonly "Early Hints": 103;
|
|
2035
|
+
readonly OK: 200;
|
|
2036
|
+
readonly Created: 201;
|
|
2037
|
+
readonly Accepted: 202;
|
|
2038
|
+
readonly "Non-Authoritative Information": 203;
|
|
2039
|
+
readonly "No Content": 204;
|
|
2040
|
+
readonly "Reset Content": 205;
|
|
2041
|
+
readonly "Partial Content": 206;
|
|
2042
|
+
readonly "Multi-Status": 207;
|
|
2043
|
+
readonly "Already Reported": 208;
|
|
2044
|
+
readonly "Multiple Choices": 300;
|
|
2045
|
+
readonly "Moved Permanently": 301;
|
|
2046
|
+
readonly Found: 302;
|
|
2047
|
+
readonly "See Other": 303;
|
|
2048
|
+
readonly "Not Modified": 304;
|
|
2049
|
+
readonly "Temporary Redirect": 307;
|
|
2050
|
+
readonly "Permanent Redirect": 308;
|
|
2051
|
+
readonly "Bad Request": 400;
|
|
2052
|
+
readonly Unauthorized: 401;
|
|
2053
|
+
readonly "Payment Required": 402;
|
|
2054
|
+
readonly Forbidden: 403;
|
|
2055
|
+
readonly "Not Found": 404;
|
|
2056
|
+
readonly "Method Not Allowed": 405;
|
|
2057
|
+
readonly "Not Acceptable": 406;
|
|
2058
|
+
readonly "Proxy Authentication Required": 407;
|
|
2059
|
+
readonly "Request Timeout": 408;
|
|
2060
|
+
readonly Conflict: 409;
|
|
2061
|
+
readonly Gone: 410;
|
|
2062
|
+
readonly "Length Required": 411;
|
|
2063
|
+
readonly "Precondition Failed": 412;
|
|
2064
|
+
readonly "Payload Too Large": 413;
|
|
2065
|
+
readonly "URI Too Long": 414;
|
|
2066
|
+
readonly "Unsupported Media Type": 415;
|
|
2067
|
+
readonly "Range Not Satisfiable": 416;
|
|
2068
|
+
readonly "Expectation Failed": 417;
|
|
2069
|
+
readonly "I'm a teapot": 418;
|
|
2070
|
+
readonly "Misdirected Request": 421;
|
|
2071
|
+
readonly "Unprocessable Content": 422;
|
|
2072
|
+
readonly Locked: 423;
|
|
2073
|
+
readonly "Failed Dependency": 424;
|
|
2074
|
+
readonly "Too Early": 425;
|
|
2075
|
+
readonly "Upgrade Required": 426;
|
|
2076
|
+
readonly "Precondition Required": 428;
|
|
2077
|
+
readonly "Too Many Requests": 429;
|
|
2078
|
+
readonly "Request Header Fields Too Large": 431;
|
|
2079
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
2080
|
+
readonly "Internal Server Error": 500;
|
|
2081
|
+
readonly "Not Implemented": 501;
|
|
2082
|
+
readonly "Bad Gateway": 502;
|
|
2083
|
+
readonly "Service Unavailable": 503;
|
|
2084
|
+
readonly "Gateway Timeout": 504;
|
|
2085
|
+
readonly "HTTP Version Not Supported": 505;
|
|
2086
|
+
readonly "Variant Also Negotiates": 506;
|
|
2087
|
+
readonly "Insufficient Storage": 507;
|
|
2088
|
+
readonly "Loop Detected": 508;
|
|
2089
|
+
readonly "Not Extended": 510;
|
|
2090
|
+
readonly "Network Authentication Required": 511;
|
|
2091
|
+
}[Code] : Code>;
|
|
2092
|
+
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 ? {
|
|
2093
|
+
readonly 100: "Continue";
|
|
2094
|
+
readonly 101: "Switching Protocols";
|
|
2095
|
+
readonly 102: "Processing";
|
|
2096
|
+
readonly 103: "Early Hints";
|
|
2097
|
+
readonly 200: "OK";
|
|
2098
|
+
readonly 201: "Created";
|
|
2099
|
+
readonly 202: "Accepted";
|
|
2100
|
+
readonly 203: "Non-Authoritative Information";
|
|
2101
|
+
readonly 204: "No Content";
|
|
2102
|
+
readonly 205: "Reset Content";
|
|
2103
|
+
readonly 206: "Partial Content";
|
|
2104
|
+
readonly 207: "Multi-Status";
|
|
2105
|
+
readonly 208: "Already Reported";
|
|
2106
|
+
readonly 300: "Multiple Choices";
|
|
2107
|
+
readonly 301: "Moved Permanently";
|
|
2108
|
+
readonly 302: "Found";
|
|
2109
|
+
readonly 303: "See Other";
|
|
2110
|
+
readonly 304: "Not Modified";
|
|
2111
|
+
readonly 307: "Temporary Redirect";
|
|
2112
|
+
readonly 308: "Permanent Redirect";
|
|
2113
|
+
readonly 400: "Bad Request";
|
|
2114
|
+
readonly 401: "Unauthorized";
|
|
2115
|
+
readonly 402: "Payment Required";
|
|
2116
|
+
readonly 403: "Forbidden";
|
|
2117
|
+
readonly 404: "Not Found";
|
|
2118
|
+
readonly 405: "Method Not Allowed";
|
|
2119
|
+
readonly 406: "Not Acceptable";
|
|
2120
|
+
readonly 407: "Proxy Authentication Required";
|
|
2121
|
+
readonly 408: "Request Timeout";
|
|
2122
|
+
readonly 409: "Conflict";
|
|
2123
|
+
readonly 410: "Gone";
|
|
2124
|
+
readonly 411: "Length Required";
|
|
2125
|
+
readonly 412: "Precondition Failed";
|
|
2126
|
+
readonly 413: "Payload Too Large";
|
|
2127
|
+
readonly 414: "URI Too Long";
|
|
2128
|
+
readonly 415: "Unsupported Media Type";
|
|
2129
|
+
readonly 416: "Range Not Satisfiable";
|
|
2130
|
+
readonly 417: "Expectation Failed";
|
|
2131
|
+
readonly 418: "I'm a teapot";
|
|
2132
|
+
readonly 421: "Misdirected Request";
|
|
2133
|
+
readonly 422: "Unprocessable Content";
|
|
2134
|
+
readonly 423: "Locked";
|
|
2135
|
+
readonly 424: "Failed Dependency";
|
|
2136
|
+
readonly 425: "Too Early";
|
|
2137
|
+
readonly 426: "Upgrade Required";
|
|
2138
|
+
readonly 428: "Precondition Required";
|
|
2139
|
+
readonly 429: "Too Many Requests";
|
|
2140
|
+
readonly 431: "Request Header Fields Too Large";
|
|
2141
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
2142
|
+
readonly 500: "Internal Server Error";
|
|
2143
|
+
readonly 501: "Not Implemented";
|
|
2144
|
+
readonly 502: "Bad Gateway";
|
|
2145
|
+
readonly 503: "Service Unavailable";
|
|
2146
|
+
readonly 504: "Gateway Timeout";
|
|
2147
|
+
readonly 505: "HTTP Version Not Supported";
|
|
2148
|
+
readonly 506: "Variant Also Negotiates";
|
|
2149
|
+
readonly 507: "Insufficient Storage";
|
|
2150
|
+
readonly 508: "Loop Detected";
|
|
2151
|
+
readonly 510: "Not Extended";
|
|
2152
|
+
readonly 511: "Network Authentication Required";
|
|
2153
|
+
}[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" ? {
|
|
2154
|
+
readonly Continue: 100;
|
|
2155
|
+
readonly "Switching Protocols": 101;
|
|
2156
|
+
readonly Processing: 102;
|
|
2157
|
+
readonly "Early Hints": 103;
|
|
2158
|
+
readonly OK: 200;
|
|
2159
|
+
readonly Created: 201;
|
|
2160
|
+
readonly Accepted: 202;
|
|
2161
|
+
readonly "Non-Authoritative Information": 203;
|
|
2162
|
+
readonly "No Content": 204;
|
|
2163
|
+
readonly "Reset Content": 205;
|
|
2164
|
+
readonly "Partial Content": 206;
|
|
2165
|
+
readonly "Multi-Status": 207;
|
|
2166
|
+
readonly "Already Reported": 208;
|
|
2167
|
+
readonly "Multiple Choices": 300;
|
|
2168
|
+
readonly "Moved Permanently": 301;
|
|
2169
|
+
readonly Found: 302;
|
|
2170
|
+
readonly "See Other": 303;
|
|
2171
|
+
readonly "Not Modified": 304;
|
|
2172
|
+
readonly "Temporary Redirect": 307;
|
|
2173
|
+
readonly "Permanent Redirect": 308;
|
|
2174
|
+
readonly "Bad Request": 400;
|
|
2175
|
+
readonly Unauthorized: 401;
|
|
2176
|
+
readonly "Payment Required": 402;
|
|
2177
|
+
readonly Forbidden: 403;
|
|
2178
|
+
readonly "Not Found": 404;
|
|
2179
|
+
readonly "Method Not Allowed": 405;
|
|
2180
|
+
readonly "Not Acceptable": 406;
|
|
2181
|
+
readonly "Proxy Authentication Required": 407;
|
|
2182
|
+
readonly "Request Timeout": 408;
|
|
2183
|
+
readonly Conflict: 409;
|
|
2184
|
+
readonly Gone: 410;
|
|
2185
|
+
readonly "Length Required": 411;
|
|
2186
|
+
readonly "Precondition Failed": 412;
|
|
2187
|
+
readonly "Payload Too Large": 413;
|
|
2188
|
+
readonly "URI Too Long": 414;
|
|
2189
|
+
readonly "Unsupported Media Type": 415;
|
|
2190
|
+
readonly "Range Not Satisfiable": 416;
|
|
2191
|
+
readonly "Expectation Failed": 417;
|
|
2192
|
+
readonly "I'm a teapot": 418;
|
|
2193
|
+
readonly "Misdirected Request": 421;
|
|
2194
|
+
readonly "Unprocessable Content": 422;
|
|
2195
|
+
readonly Locked: 423;
|
|
2196
|
+
readonly "Failed Dependency": 424;
|
|
2197
|
+
readonly "Too Early": 425;
|
|
2198
|
+
readonly "Upgrade Required": 426;
|
|
2199
|
+
readonly "Precondition Required": 428;
|
|
2200
|
+
readonly "Too Many Requests": 429;
|
|
2201
|
+
readonly "Request Header Fields Too Large": 431;
|
|
2202
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
2203
|
+
readonly "Internal Server Error": 500;
|
|
2204
|
+
readonly "Not Implemented": 501;
|
|
2205
|
+
readonly "Bad Gateway": 502;
|
|
2206
|
+
readonly "Service Unavailable": 503;
|
|
2207
|
+
readonly "Gateway Timeout": 504;
|
|
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")[];
|
|
2217
|
+
}>;
|
|
2218
|
+
};
|
|
2219
|
+
readonly userKind: (input: ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER") | ("ADMIN" | "COMPANY_ADMIN" | "CUSTOMER")[]) => {
|
|
2220
|
+
resolve({ status, request: { headers } }: {
|
|
2221
|
+
body: unknown;
|
|
2222
|
+
query: Record<string, string>;
|
|
2223
|
+
params: Record<string, string>;
|
|
2224
|
+
headers: Record<string, string | undefined>;
|
|
2225
|
+
cookie: Record<string, import("elysia").Cookie<string | undefined>>;
|
|
2226
|
+
server: Bun.Server | null;
|
|
2227
|
+
redirect: import("elysia").redirect;
|
|
2228
|
+
set: {
|
|
2229
|
+
headers: import("elysia/dist/types").HTTPHeaders;
|
|
2230
|
+
status?: number | keyof import("elysia").StatusMap;
|
|
2231
|
+
redirect?: string;
|
|
2232
|
+
cookie?: Record<string, import("elysia/dist/cookies").ElysiaCookie>;
|
|
2233
|
+
};
|
|
2234
|
+
path: string;
|
|
2235
|
+
route: string;
|
|
2236
|
+
request: Request;
|
|
2237
|
+
store: {};
|
|
2238
|
+
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 ? {
|
|
2239
|
+
readonly 100: "Continue";
|
|
2240
|
+
readonly 101: "Switching Protocols";
|
|
2241
|
+
readonly 102: "Processing";
|
|
2242
|
+
readonly 103: "Early Hints";
|
|
2243
|
+
readonly 200: "OK";
|
|
2244
|
+
readonly 201: "Created";
|
|
2245
|
+
readonly 202: "Accepted";
|
|
2246
|
+
readonly 203: "Non-Authoritative Information";
|
|
2247
|
+
readonly 204: "No Content";
|
|
2248
|
+
readonly 205: "Reset Content";
|
|
2249
|
+
readonly 206: "Partial Content";
|
|
2250
|
+
readonly 207: "Multi-Status";
|
|
2251
|
+
readonly 208: "Already Reported";
|
|
2252
|
+
readonly 300: "Multiple Choices";
|
|
2253
|
+
readonly 301: "Moved Permanently";
|
|
2254
|
+
readonly 302: "Found";
|
|
2255
|
+
readonly 303: "See Other";
|
|
2256
|
+
readonly 304: "Not Modified";
|
|
2257
|
+
readonly 307: "Temporary Redirect";
|
|
2258
|
+
readonly 308: "Permanent Redirect";
|
|
2259
|
+
readonly 400: "Bad Request";
|
|
2260
|
+
readonly 401: "Unauthorized";
|
|
2261
|
+
readonly 402: "Payment Required";
|
|
2262
|
+
readonly 403: "Forbidden";
|
|
2263
|
+
readonly 404: "Not Found";
|
|
2264
|
+
readonly 405: "Method Not Allowed";
|
|
2265
|
+
readonly 406: "Not Acceptable";
|
|
2266
|
+
readonly 407: "Proxy Authentication Required";
|
|
2267
|
+
readonly 408: "Request Timeout";
|
|
2268
|
+
readonly 409: "Conflict";
|
|
2269
|
+
readonly 410: "Gone";
|
|
2270
|
+
readonly 411: "Length Required";
|
|
2271
|
+
readonly 412: "Precondition Failed";
|
|
2272
|
+
readonly 413: "Payload Too Large";
|
|
2273
|
+
readonly 414: "URI Too Long";
|
|
2274
|
+
readonly 415: "Unsupported Media Type";
|
|
2275
|
+
readonly 416: "Range Not Satisfiable";
|
|
2276
|
+
readonly 417: "Expectation Failed";
|
|
2277
|
+
readonly 418: "I'm a teapot";
|
|
2278
|
+
readonly 421: "Misdirected Request";
|
|
2279
|
+
readonly 422: "Unprocessable Content";
|
|
2280
|
+
readonly 423: "Locked";
|
|
2281
|
+
readonly 424: "Failed Dependency";
|
|
2282
|
+
readonly 425: "Too Early";
|
|
2283
|
+
readonly 426: "Upgrade Required";
|
|
2284
|
+
readonly 428: "Precondition Required";
|
|
2285
|
+
readonly 429: "Too Many Requests";
|
|
2286
|
+
readonly 431: "Request Header Fields Too Large";
|
|
2287
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
2288
|
+
readonly 500: "Internal Server Error";
|
|
2289
|
+
readonly 501: "Not Implemented";
|
|
2290
|
+
readonly 502: "Bad Gateway";
|
|
2291
|
+
readonly 503: "Service Unavailable";
|
|
2292
|
+
readonly 504: "Gateway Timeout";
|
|
2293
|
+
readonly 505: "HTTP Version Not Supported";
|
|
2294
|
+
readonly 506: "Variant Also Negotiates";
|
|
2295
|
+
readonly 507: "Insufficient Storage";
|
|
2296
|
+
readonly 508: "Loop Detected";
|
|
2297
|
+
readonly 510: "Not Extended";
|
|
2298
|
+
readonly 511: "Network Authentication Required";
|
|
2299
|
+
}[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" ? {
|
|
2300
|
+
readonly Continue: 100;
|
|
2301
|
+
readonly "Switching Protocols": 101;
|
|
2302
|
+
readonly Processing: 102;
|
|
2303
|
+
readonly "Early Hints": 103;
|
|
2304
|
+
readonly OK: 200;
|
|
2305
|
+
readonly Created: 201;
|
|
2306
|
+
readonly Accepted: 202;
|
|
2307
|
+
readonly "Non-Authoritative Information": 203;
|
|
2308
|
+
readonly "No Content": 204;
|
|
2309
|
+
readonly "Reset Content": 205;
|
|
2310
|
+
readonly "Partial Content": 206;
|
|
2311
|
+
readonly "Multi-Status": 207;
|
|
2312
|
+
readonly "Already Reported": 208;
|
|
2313
|
+
readonly "Multiple Choices": 300;
|
|
2314
|
+
readonly "Moved Permanently": 301;
|
|
2315
|
+
readonly Found: 302;
|
|
2316
|
+
readonly "See Other": 303;
|
|
2317
|
+
readonly "Not Modified": 304;
|
|
2318
|
+
readonly "Temporary Redirect": 307;
|
|
2319
|
+
readonly "Permanent Redirect": 308;
|
|
2320
|
+
readonly "Bad Request": 400;
|
|
2321
|
+
readonly Unauthorized: 401;
|
|
2322
|
+
readonly "Payment Required": 402;
|
|
2323
|
+
readonly Forbidden: 403;
|
|
2324
|
+
readonly "Not Found": 404;
|
|
2325
|
+
readonly "Method Not Allowed": 405;
|
|
2326
|
+
readonly "Not Acceptable": 406;
|
|
2327
|
+
readonly "Proxy Authentication Required": 407;
|
|
2328
|
+
readonly "Request Timeout": 408;
|
|
2329
|
+
readonly Conflict: 409;
|
|
2330
|
+
readonly Gone: 410;
|
|
2331
|
+
readonly "Length Required": 411;
|
|
2332
|
+
readonly "Precondition Failed": 412;
|
|
2333
|
+
readonly "Payload Too Large": 413;
|
|
2334
|
+
readonly "URI Too Long": 414;
|
|
2335
|
+
readonly "Unsupported Media Type": 415;
|
|
2336
|
+
readonly "Range Not Satisfiable": 416;
|
|
2337
|
+
readonly "Expectation Failed": 417;
|
|
2338
|
+
readonly "I'm a teapot": 418;
|
|
2339
|
+
readonly "Misdirected Request": 421;
|
|
2340
|
+
readonly "Unprocessable Content": 422;
|
|
2341
|
+
readonly Locked: 423;
|
|
2342
|
+
readonly "Failed Dependency": 424;
|
|
2343
|
+
readonly "Too Early": 425;
|
|
2344
|
+
readonly "Upgrade Required": 426;
|
|
2345
|
+
readonly "Precondition Required": 428;
|
|
2346
|
+
readonly "Too Many Requests": 429;
|
|
2347
|
+
readonly "Request Header Fields Too Large": 431;
|
|
2348
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
2349
|
+
readonly "Internal Server Error": 500;
|
|
2350
|
+
readonly "Not Implemented": 501;
|
|
2351
|
+
readonly "Bad Gateway": 502;
|
|
2352
|
+
readonly "Service Unavailable": 503;
|
|
2353
|
+
readonly "Gateway Timeout": 504;
|
|
2354
|
+
readonly "HTTP Version Not Supported": 505;
|
|
2355
|
+
readonly "Variant Also Negotiates": 506;
|
|
2356
|
+
readonly "Insufficient Storage": 507;
|
|
2357
|
+
readonly "Loop Detected": 508;
|
|
2358
|
+
readonly "Not Extended": 510;
|
|
2359
|
+
readonly "Network Authentication Required": 511;
|
|
2360
|
+
}[Code] : Code>;
|
|
2361
|
+
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 ? {
|
|
2362
|
+
readonly 100: "Continue";
|
|
2363
|
+
readonly 101: "Switching Protocols";
|
|
2364
|
+
readonly 102: "Processing";
|
|
2365
|
+
readonly 103: "Early Hints";
|
|
2366
|
+
readonly 200: "OK";
|
|
2367
|
+
readonly 201: "Created";
|
|
2368
|
+
readonly 202: "Accepted";
|
|
2369
|
+
readonly 203: "Non-Authoritative Information";
|
|
2370
|
+
readonly 204: "No Content";
|
|
2371
|
+
readonly 205: "Reset Content";
|
|
2372
|
+
readonly 206: "Partial Content";
|
|
2373
|
+
readonly 207: "Multi-Status";
|
|
2374
|
+
readonly 208: "Already Reported";
|
|
2375
|
+
readonly 300: "Multiple Choices";
|
|
2376
|
+
readonly 301: "Moved Permanently";
|
|
2377
|
+
readonly 302: "Found";
|
|
2378
|
+
readonly 303: "See Other";
|
|
2379
|
+
readonly 304: "Not Modified";
|
|
2380
|
+
readonly 307: "Temporary Redirect";
|
|
2381
|
+
readonly 308: "Permanent Redirect";
|
|
2382
|
+
readonly 400: "Bad Request";
|
|
2383
|
+
readonly 401: "Unauthorized";
|
|
2384
|
+
readonly 402: "Payment Required";
|
|
2385
|
+
readonly 403: "Forbidden";
|
|
2386
|
+
readonly 404: "Not Found";
|
|
2387
|
+
readonly 405: "Method Not Allowed";
|
|
2388
|
+
readonly 406: "Not Acceptable";
|
|
2389
|
+
readonly 407: "Proxy Authentication Required";
|
|
2390
|
+
readonly 408: "Request Timeout";
|
|
2391
|
+
readonly 409: "Conflict";
|
|
2392
|
+
readonly 410: "Gone";
|
|
2393
|
+
readonly 411: "Length Required";
|
|
2394
|
+
readonly 412: "Precondition Failed";
|
|
2395
|
+
readonly 413: "Payload Too Large";
|
|
2396
|
+
readonly 414: "URI Too Long";
|
|
2397
|
+
readonly 415: "Unsupported Media Type";
|
|
2398
|
+
readonly 416: "Range Not Satisfiable";
|
|
2399
|
+
readonly 417: "Expectation Failed";
|
|
2400
|
+
readonly 418: "I'm a teapot";
|
|
2401
|
+
readonly 421: "Misdirected Request";
|
|
2402
|
+
readonly 422: "Unprocessable Content";
|
|
2403
|
+
readonly 423: "Locked";
|
|
2404
|
+
readonly 424: "Failed Dependency";
|
|
2405
|
+
readonly 425: "Too Early";
|
|
2406
|
+
readonly 426: "Upgrade Required";
|
|
2407
|
+
readonly 428: "Precondition Required";
|
|
2408
|
+
readonly 429: "Too Many Requests";
|
|
2409
|
+
readonly 431: "Request Header Fields Too Large";
|
|
2410
|
+
readonly 451: "Unavailable For Legal Reasons";
|
|
2411
|
+
readonly 500: "Internal Server Error";
|
|
2412
|
+
readonly 501: "Not Implemented";
|
|
2413
|
+
readonly 502: "Bad Gateway";
|
|
2414
|
+
readonly 503: "Service Unavailable";
|
|
2415
|
+
readonly 504: "Gateway Timeout";
|
|
2416
|
+
readonly 505: "HTTP Version Not Supported";
|
|
2417
|
+
readonly 506: "Variant Also Negotiates";
|
|
2418
|
+
readonly 507: "Insufficient Storage";
|
|
2419
|
+
readonly 508: "Loop Detected";
|
|
2420
|
+
readonly 510: "Not Extended";
|
|
2421
|
+
readonly 511: "Network Authentication Required";
|
|
2422
|
+
}[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" ? {
|
|
2423
|
+
readonly Continue: 100;
|
|
2424
|
+
readonly "Switching Protocols": 101;
|
|
2425
|
+
readonly Processing: 102;
|
|
2426
|
+
readonly "Early Hints": 103;
|
|
2427
|
+
readonly OK: 200;
|
|
2428
|
+
readonly Created: 201;
|
|
2429
|
+
readonly Accepted: 202;
|
|
2430
|
+
readonly "Non-Authoritative Information": 203;
|
|
2431
|
+
readonly "No Content": 204;
|
|
2432
|
+
readonly "Reset Content": 205;
|
|
2433
|
+
readonly "Partial Content": 206;
|
|
2434
|
+
readonly "Multi-Status": 207;
|
|
2435
|
+
readonly "Already Reported": 208;
|
|
2436
|
+
readonly "Multiple Choices": 300;
|
|
2437
|
+
readonly "Moved Permanently": 301;
|
|
2438
|
+
readonly Found: 302;
|
|
2439
|
+
readonly "See Other": 303;
|
|
2440
|
+
readonly "Not Modified": 304;
|
|
2441
|
+
readonly "Temporary Redirect": 307;
|
|
2442
|
+
readonly "Permanent Redirect": 308;
|
|
2443
|
+
readonly "Bad Request": 400;
|
|
2444
|
+
readonly Unauthorized: 401;
|
|
2445
|
+
readonly "Payment Required": 402;
|
|
2446
|
+
readonly Forbidden: 403;
|
|
2447
|
+
readonly "Not Found": 404;
|
|
2448
|
+
readonly "Method Not Allowed": 405;
|
|
2449
|
+
readonly "Not Acceptable": 406;
|
|
2450
|
+
readonly "Proxy Authentication Required": 407;
|
|
2451
|
+
readonly "Request Timeout": 408;
|
|
2452
|
+
readonly Conflict: 409;
|
|
2453
|
+
readonly Gone: 410;
|
|
2454
|
+
readonly "Length Required": 411;
|
|
2455
|
+
readonly "Precondition Failed": 412;
|
|
2456
|
+
readonly "Payload Too Large": 413;
|
|
2457
|
+
readonly "URI Too Long": 414;
|
|
2458
|
+
readonly "Unsupported Media Type": 415;
|
|
2459
|
+
readonly "Range Not Satisfiable": 416;
|
|
2460
|
+
readonly "Expectation Failed": 417;
|
|
2461
|
+
readonly "I'm a teapot": 418;
|
|
2462
|
+
readonly "Misdirected Request": 421;
|
|
2463
|
+
readonly "Unprocessable Content": 422;
|
|
2464
|
+
readonly Locked: 423;
|
|
2465
|
+
readonly "Failed Dependency": 424;
|
|
2466
|
+
readonly "Too Early": 425;
|
|
2467
|
+
readonly "Upgrade Required": 426;
|
|
2468
|
+
readonly "Precondition Required": 428;
|
|
2469
|
+
readonly "Too Many Requests": 429;
|
|
2470
|
+
readonly "Request Header Fields Too Large": 431;
|
|
2471
|
+
readonly "Unavailable For Legal Reasons": 451;
|
|
2472
|
+
readonly "Internal Server Error": 500;
|
|
2473
|
+
readonly "Not Implemented": 501;
|
|
2474
|
+
readonly "Bad Gateway": 502;
|
|
2475
|
+
readonly "Service Unavailable": 503;
|
|
2476
|
+
readonly "Gateway Timeout": 504;
|
|
2477
|
+
readonly "HTTP Version Not Supported": 505;
|
|
2478
|
+
readonly "Variant Also Negotiates": 506;
|
|
2479
|
+
readonly "Insufficient Storage": 507;
|
|
2480
|
+
readonly "Loop Detected": 508;
|
|
2481
|
+
readonly "Not Extended": 510;
|
|
2482
|
+
readonly "Network Authentication Required": 511;
|
|
2483
|
+
}[Code] : Code>;
|
|
2484
|
+
}): Promise<import("elysia/dist/error").ElysiaCustomStatusResponse<"Unauthorized", "Unauthorized", 401> | import("elysia/dist/error").ElysiaCustomStatusResponse<"Forbidden", "Хандах эрхгүй байна.", 403> | {
|
|
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
|
+
};
|
|
2507
|
+
}>;
|
|
2508
|
+
};
|
|
2509
|
+
};
|
|
2510
|
+
parser: {};
|
|
2511
|
+
}, {
|
|
2512
|
+
api: {
|
|
2513
|
+
inventory: {
|
|
2514
|
+
item: {};
|
|
2515
|
+
} & {
|
|
2516
|
+
item: {
|
|
2517
|
+
get: {
|
|
2518
|
+
body: unknown;
|
|
2519
|
+
params: {};
|
|
2520
|
+
query: {
|
|
2521
|
+
type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | undefined;
|
|
2522
|
+
search?: string | undefined;
|
|
2523
|
+
branchId?: string | undefined;
|
|
2524
|
+
sellPrice?: number | undefined;
|
|
2525
|
+
supplierId?: string | undefined;
|
|
2526
|
+
safetyStock?: number | undefined;
|
|
2527
|
+
alias?: string | undefined;
|
|
2528
|
+
shelfNumber?: string | undefined;
|
|
2529
|
+
pagination: {
|
|
2530
|
+
size: number;
|
|
2531
|
+
page: number;
|
|
2532
|
+
};
|
|
2533
|
+
};
|
|
2534
|
+
headers: unknown;
|
|
2535
|
+
response: {
|
|
2536
|
+
200: {
|
|
2537
|
+
pageQuantity: number;
|
|
2538
|
+
totalQuantity: number;
|
|
2539
|
+
pagePrice: number;
|
|
2540
|
+
totalPrice: number;
|
|
2541
|
+
totalCount: number;
|
|
2542
|
+
totalPage: number;
|
|
2543
|
+
result: {
|
|
2544
|
+
name: string;
|
|
2545
|
+
partNumber: string;
|
|
2546
|
+
quantity: number;
|
|
2547
|
+
sellPrice: number;
|
|
2548
|
+
buyPrice: number;
|
|
2549
|
+
supplierId: string;
|
|
2550
|
+
merchantId: string;
|
|
2551
|
+
branchId: string;
|
|
2552
|
+
type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null;
|
|
2553
|
+
barCode: string | null;
|
|
2554
|
+
safetyStock: number | null;
|
|
2555
|
+
alias: string | null;
|
|
2556
|
+
oen: string | null;
|
|
2557
|
+
shelfNumber: string | null;
|
|
2558
|
+
description: string | null;
|
|
2559
|
+
id: string;
|
|
2560
|
+
createdAt: string;
|
|
2561
|
+
updatedAt: string;
|
|
2562
|
+
deletedAt: string | null;
|
|
2563
|
+
}[];
|
|
2564
|
+
};
|
|
2565
|
+
422: {
|
|
2566
|
+
type: "validation";
|
|
2567
|
+
on: string;
|
|
2568
|
+
summary?: string;
|
|
2569
|
+
message?: string;
|
|
2570
|
+
found?: unknown;
|
|
2571
|
+
property?: string;
|
|
2572
|
+
expected?: string;
|
|
2573
|
+
};
|
|
2574
|
+
};
|
|
2575
|
+
};
|
|
2576
|
+
};
|
|
2577
|
+
} & {
|
|
2578
|
+
item: {
|
|
2579
|
+
post: {
|
|
2580
|
+
body: {
|
|
2581
|
+
type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null | undefined;
|
|
2582
|
+
merchantId?: string | undefined;
|
|
2583
|
+
branchId?: string | undefined;
|
|
2584
|
+
quantity?: number | undefined;
|
|
2585
|
+
barCode?: string | null | undefined;
|
|
2586
|
+
safetyStock?: number | null | undefined;
|
|
2587
|
+
alias?: string | null | undefined;
|
|
2588
|
+
oen?: string | null | undefined;
|
|
2589
|
+
shelfNumber?: string | null | undefined;
|
|
2590
|
+
description?: string | null | undefined;
|
|
2591
|
+
name: string;
|
|
2592
|
+
partNumber: string;
|
|
2593
|
+
sellPrice: number;
|
|
2594
|
+
buyPrice: number;
|
|
2595
|
+
supplierId: string;
|
|
2596
|
+
};
|
|
2597
|
+
params: {};
|
|
2598
|
+
query: unknown;
|
|
2599
|
+
headers: unknown;
|
|
2600
|
+
response: {
|
|
2601
|
+
200: {
|
|
2602
|
+
type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null;
|
|
2603
|
+
name: string;
|
|
2604
|
+
id: string;
|
|
2605
|
+
createdAt: string;
|
|
2606
|
+
updatedAt: string;
|
|
2607
|
+
merchantId: string;
|
|
2608
|
+
branchId: string;
|
|
2609
|
+
deletedAt: string | null;
|
|
2610
|
+
partNumber: string;
|
|
2611
|
+
quantity: number;
|
|
2612
|
+
sellPrice: number;
|
|
2613
|
+
buyPrice: number;
|
|
2614
|
+
supplierId: string;
|
|
2615
|
+
barCode: string | null;
|
|
2616
|
+
safetyStock: number | null;
|
|
2617
|
+
alias: string | null;
|
|
2618
|
+
oen: string | null;
|
|
2619
|
+
shelfNumber: string | null;
|
|
2620
|
+
description: string | null;
|
|
2621
|
+
};
|
|
2622
|
+
422: {
|
|
2623
|
+
type: "validation";
|
|
2624
|
+
on: string;
|
|
2625
|
+
summary?: string;
|
|
2626
|
+
message?: string;
|
|
2627
|
+
found?: unknown;
|
|
2628
|
+
property?: string;
|
|
2629
|
+
expected?: string;
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
};
|
|
2633
|
+
};
|
|
2634
|
+
} & {
|
|
2635
|
+
item: {
|
|
2636
|
+
excel: {
|
|
2637
|
+
post: {
|
|
2638
|
+
body: {
|
|
2639
|
+
branchId?: string | undefined;
|
|
2640
|
+
file: File;
|
|
2641
|
+
};
|
|
2642
|
+
params: {};
|
|
2643
|
+
query: unknown;
|
|
2644
|
+
headers: unknown;
|
|
2645
|
+
response: {
|
|
2646
|
+
200: AsyncGenerator<{
|
|
2647
|
+
percent: number;
|
|
2648
|
+
count: number;
|
|
2649
|
+
}, import("elysia/dist/error").ElysiaCustomStatusResponse<"Bad Request", readonly import("@sinclair/typebox/build/cjs/errors").ValueError[], 400> | undefined, unknown>;
|
|
2650
|
+
422: {
|
|
2651
|
+
type: "validation";
|
|
2652
|
+
on: string;
|
|
2653
|
+
summary?: string;
|
|
2654
|
+
message?: string;
|
|
2655
|
+
found?: unknown;
|
|
2656
|
+
property?: string;
|
|
2657
|
+
expected?: string;
|
|
2658
|
+
};
|
|
2659
|
+
};
|
|
2660
|
+
};
|
|
2661
|
+
};
|
|
2662
|
+
};
|
|
2663
|
+
} & {
|
|
2664
|
+
item: {
|
|
2665
|
+
excel: {
|
|
2666
|
+
get: {
|
|
2667
|
+
body: unknown;
|
|
2668
|
+
params: {};
|
|
2669
|
+
query: unknown;
|
|
2670
|
+
headers: unknown;
|
|
2671
|
+
response: {
|
|
2672
|
+
200: string;
|
|
2673
|
+
};
|
|
2674
|
+
};
|
|
2675
|
+
};
|
|
2676
|
+
};
|
|
2677
|
+
} & {
|
|
2678
|
+
item: {
|
|
2679
|
+
":id": {
|
|
2680
|
+
put: {
|
|
2681
|
+
body: {
|
|
2682
|
+
type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null | undefined;
|
|
2683
|
+
name?: string | undefined;
|
|
2684
|
+
partNumber?: string | undefined;
|
|
2685
|
+
sellPrice?: number | undefined;
|
|
2686
|
+
buyPrice?: number | undefined;
|
|
2687
|
+
supplierId?: string | undefined;
|
|
2688
|
+
barCode?: string | null | undefined;
|
|
2689
|
+
safetyStock?: number | null | undefined;
|
|
2690
|
+
alias?: string | null | undefined;
|
|
2691
|
+
oen?: string | null | undefined;
|
|
2692
|
+
shelfNumber?: string | null | undefined;
|
|
2693
|
+
description?: string | null | undefined;
|
|
2694
|
+
};
|
|
2695
|
+
params: {
|
|
2696
|
+
id: string;
|
|
2697
|
+
};
|
|
2698
|
+
query: unknown;
|
|
2699
|
+
headers: unknown;
|
|
2700
|
+
response: {
|
|
2701
|
+
200: {
|
|
2702
|
+
name: string;
|
|
2703
|
+
partNumber: string;
|
|
2704
|
+
quantity: number;
|
|
2705
|
+
sellPrice: number;
|
|
2706
|
+
buyPrice: number;
|
|
2707
|
+
supplierId: string;
|
|
2708
|
+
merchantId: string;
|
|
2709
|
+
branchId: string;
|
|
2710
|
+
type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null;
|
|
2711
|
+
barCode: string | null;
|
|
2712
|
+
safetyStock: number | null;
|
|
2713
|
+
alias: string | null;
|
|
2714
|
+
oen: string | null;
|
|
2715
|
+
shelfNumber: string | null;
|
|
2716
|
+
description: string | null;
|
|
2717
|
+
id: string;
|
|
2718
|
+
createdAt: string;
|
|
2719
|
+
updatedAt: string;
|
|
2720
|
+
deletedAt: string | null;
|
|
2721
|
+
};
|
|
2722
|
+
404: "Агуулахын бараа олдсонгүй.";
|
|
2723
|
+
422: {
|
|
2724
|
+
type: "validation";
|
|
2725
|
+
on: string;
|
|
2726
|
+
summary?: string;
|
|
2727
|
+
message?: string;
|
|
2728
|
+
found?: unknown;
|
|
2729
|
+
property?: string;
|
|
2730
|
+
expected?: string;
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2733
|
+
};
|
|
2734
|
+
};
|
|
2735
|
+
};
|
|
2736
|
+
} & {
|
|
2737
|
+
item: {
|
|
2738
|
+
":id": {
|
|
2739
|
+
delete: {
|
|
2740
|
+
body: unknown;
|
|
2741
|
+
params: {
|
|
2742
|
+
id: string;
|
|
2743
|
+
};
|
|
2744
|
+
query: unknown;
|
|
2745
|
+
headers: unknown;
|
|
2746
|
+
response: {
|
|
2747
|
+
200: void;
|
|
2748
|
+
422: {
|
|
2749
|
+
type: "validation";
|
|
2750
|
+
on: string;
|
|
2751
|
+
summary?: string;
|
|
2752
|
+
message?: string;
|
|
2753
|
+
found?: unknown;
|
|
2754
|
+
property?: string;
|
|
2755
|
+
expected?: string;
|
|
2756
|
+
};
|
|
2757
|
+
};
|
|
2758
|
+
};
|
|
2759
|
+
};
|
|
2760
|
+
};
|
|
2761
|
+
};
|
|
2762
|
+
} & {
|
|
2763
|
+
inventory: {
|
|
2764
|
+
log: {};
|
|
2765
|
+
} & {
|
|
2766
|
+
log: {
|
|
2767
|
+
get: {
|
|
2768
|
+
body: unknown;
|
|
2769
|
+
params: {};
|
|
2770
|
+
query: {
|
|
2771
|
+
search?: string | undefined;
|
|
2772
|
+
createdAt?: string | undefined;
|
|
2773
|
+
branchId?: string | undefined;
|
|
2774
|
+
sellPrice?: number | undefined;
|
|
2775
|
+
supplierId?: string | undefined;
|
|
2776
|
+
alias?: string | undefined;
|
|
2777
|
+
shelfNumber?: string | undefined;
|
|
2778
|
+
createdUserId?: string | undefined;
|
|
2779
|
+
pagination: {
|
|
2780
|
+
size: number;
|
|
2781
|
+
page: number;
|
|
2782
|
+
};
|
|
2783
|
+
};
|
|
2784
|
+
headers: unknown;
|
|
2785
|
+
response: {
|
|
2786
|
+
200: {
|
|
2787
|
+
pageQuantity: number;
|
|
2788
|
+
totalQuantity: number;
|
|
2789
|
+
pagePrice: number;
|
|
2790
|
+
totalPrice: number;
|
|
2791
|
+
totalCount: number;
|
|
2792
|
+
totalPage: number;
|
|
2793
|
+
result: {
|
|
2794
|
+
inventory: {
|
|
2795
|
+
name: string;
|
|
2796
|
+
partNumber: string;
|
|
2797
|
+
quantity: number;
|
|
2798
|
+
sellPrice: number;
|
|
2799
|
+
buyPrice: number;
|
|
2800
|
+
supplierId: string;
|
|
2801
|
+
merchantId: string;
|
|
2802
|
+
branchId: string;
|
|
2803
|
+
type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null;
|
|
2804
|
+
barCode: string | null;
|
|
2805
|
+
safetyStock: number | null;
|
|
2806
|
+
alias: string | null;
|
|
2807
|
+
oen: string | null;
|
|
2808
|
+
shelfNumber: string | null;
|
|
2809
|
+
description: string | null;
|
|
2810
|
+
id: string;
|
|
2811
|
+
createdAt: string;
|
|
2812
|
+
updatedAt: string;
|
|
2813
|
+
deletedAt: string | null;
|
|
2814
|
+
};
|
|
2815
|
+
itemId: string;
|
|
2816
|
+
quantity: number;
|
|
2817
|
+
sellPrice: number;
|
|
2818
|
+
buyPrice: number;
|
|
2819
|
+
createdUserId: string;
|
|
2820
|
+
description: string | null;
|
|
2821
|
+
afterQuantity: number;
|
|
2822
|
+
id: string;
|
|
2823
|
+
createdAt: string;
|
|
2824
|
+
updatedAt: string;
|
|
2825
|
+
deletedAt: string | null;
|
|
2826
|
+
}[];
|
|
2827
|
+
};
|
|
2828
|
+
422: {
|
|
2829
|
+
type: "validation";
|
|
2830
|
+
on: string;
|
|
2831
|
+
summary?: string;
|
|
2832
|
+
message?: string;
|
|
2833
|
+
found?: unknown;
|
|
2834
|
+
property?: string;
|
|
2835
|
+
expected?: string;
|
|
2836
|
+
};
|
|
2837
|
+
};
|
|
2838
|
+
};
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2841
|
+
} & {
|
|
2842
|
+
inventory: {
|
|
2843
|
+
supplier: {
|
|
2844
|
+
get: {
|
|
2845
|
+
body: unknown;
|
|
2846
|
+
params: {};
|
|
2847
|
+
query: {
|
|
2848
|
+
pagination: {
|
|
2849
|
+
size: number;
|
|
2850
|
+
page: number;
|
|
2851
|
+
};
|
|
2852
|
+
};
|
|
2853
|
+
headers: unknown;
|
|
2854
|
+
response: {
|
|
2855
|
+
200: {
|
|
2856
|
+
totalCount: number;
|
|
2857
|
+
totalPage: number;
|
|
2858
|
+
result: {
|
|
2859
|
+
name: string;
|
|
2860
|
+
image: string | null;
|
|
2861
|
+
id: string;
|
|
2862
|
+
createdAt: string;
|
|
2863
|
+
updatedAt: string;
|
|
2864
|
+
deletedAt: string | null;
|
|
2865
|
+
}[];
|
|
2866
|
+
};
|
|
2867
|
+
422: {
|
|
2868
|
+
type: "validation";
|
|
2869
|
+
on: string;
|
|
2870
|
+
summary?: string;
|
|
2871
|
+
message?: string;
|
|
2872
|
+
found?: unknown;
|
|
2873
|
+
property?: string;
|
|
1841
2874
|
expected?: string;
|
|
1842
2875
|
};
|
|
1843
2876
|
};
|
|
1844
2877
|
};
|
|
1845
2878
|
};
|
|
1846
2879
|
} & {
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
2880
|
+
supplier: {
|
|
2881
|
+
post: {
|
|
2882
|
+
body: {
|
|
2883
|
+
image?: string | null | undefined;
|
|
2884
|
+
name: string;
|
|
2885
|
+
};
|
|
2886
|
+
params: {};
|
|
2887
|
+
query: unknown;
|
|
2888
|
+
headers: unknown;
|
|
2889
|
+
response: {
|
|
2890
|
+
200: {
|
|
2891
|
+
name: string;
|
|
2892
|
+
id: string;
|
|
2893
|
+
image: string | null;
|
|
2894
|
+
createdAt: string;
|
|
2895
|
+
updatedAt: string;
|
|
2896
|
+
deletedAt: string | null;
|
|
2897
|
+
};
|
|
2898
|
+
422: {
|
|
2899
|
+
type: "validation";
|
|
2900
|
+
on: string;
|
|
2901
|
+
summary?: string;
|
|
2902
|
+
message?: string;
|
|
2903
|
+
found?: unknown;
|
|
2904
|
+
property?: string;
|
|
2905
|
+
expected?: string;
|
|
2906
|
+
};
|
|
2907
|
+
};
|
|
2908
|
+
};
|
|
2909
|
+
};
|
|
2910
|
+
} & {
|
|
2911
|
+
supplier: {
|
|
2912
|
+
":id": {
|
|
2913
|
+
put: {
|
|
1850
2914
|
body: {
|
|
1851
|
-
|
|
1852
|
-
|
|
2915
|
+
image?: string | null | undefined;
|
|
2916
|
+
name: string;
|
|
2917
|
+
};
|
|
2918
|
+
params: {
|
|
2919
|
+
id: string;
|
|
1853
2920
|
};
|
|
1854
|
-
params: {};
|
|
1855
2921
|
query: unknown;
|
|
1856
2922
|
headers: unknown;
|
|
1857
2923
|
response: {
|
|
1858
|
-
200:
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
2924
|
+
200: {
|
|
2925
|
+
name: string;
|
|
2926
|
+
image: string | null;
|
|
2927
|
+
id: string;
|
|
2928
|
+
createdAt: string;
|
|
2929
|
+
updatedAt: string;
|
|
2930
|
+
deletedAt: string | null;
|
|
2931
|
+
};
|
|
2932
|
+
404: "Нийлүүлэгч олдсонгүй.";
|
|
1862
2933
|
422: {
|
|
1863
2934
|
type: "validation";
|
|
1864
2935
|
on: string;
|
|
@@ -1873,98 +2944,191 @@ declare const app: Elysia<"", {
|
|
|
1873
2944
|
};
|
|
1874
2945
|
};
|
|
1875
2946
|
} & {
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
2947
|
+
supplier: {
|
|
2948
|
+
":id": {
|
|
2949
|
+
delete: {
|
|
1879
2950
|
body: unknown;
|
|
1880
|
-
params: {
|
|
2951
|
+
params: {
|
|
2952
|
+
id: string;
|
|
2953
|
+
};
|
|
1881
2954
|
query: unknown;
|
|
1882
2955
|
headers: unknown;
|
|
1883
2956
|
response: {
|
|
1884
|
-
200:
|
|
2957
|
+
200: undefined;
|
|
2958
|
+
404: "Нийлүүлэгч олдсонгүй.";
|
|
2959
|
+
422: {
|
|
2960
|
+
type: "validation";
|
|
2961
|
+
on: string;
|
|
2962
|
+
summary?: string;
|
|
2963
|
+
message?: string;
|
|
2964
|
+
found?: unknown;
|
|
2965
|
+
property?: string;
|
|
2966
|
+
expected?: string;
|
|
2967
|
+
};
|
|
1885
2968
|
};
|
|
1886
2969
|
};
|
|
1887
2970
|
};
|
|
1888
2971
|
};
|
|
2972
|
+
};
|
|
2973
|
+
} & {
|
|
2974
|
+
inventory: {
|
|
2975
|
+
refund: {};
|
|
1889
2976
|
} & {
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
2977
|
+
refund: {
|
|
2978
|
+
get: {
|
|
2979
|
+
body: unknown;
|
|
2980
|
+
params: {};
|
|
2981
|
+
query: {
|
|
2982
|
+
date?: string | undefined;
|
|
2983
|
+
branchId?: string | undefined;
|
|
2984
|
+
inventory?: {
|
|
2985
|
+
type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | undefined;
|
|
2986
|
+
search?: string | undefined;
|
|
2987
|
+
branchId?: string | undefined;
|
|
1897
2988
|
sellPrice?: number | undefined;
|
|
1898
|
-
buyPrice?: number | undefined;
|
|
1899
2989
|
supplierId?: string | undefined;
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
id: string;
|
|
2990
|
+
safetyStock?: number | undefined;
|
|
2991
|
+
alias?: string | undefined;
|
|
2992
|
+
shelfNumber?: string | undefined;
|
|
2993
|
+
} | undefined;
|
|
2994
|
+
isApproved?: boolean | undefined;
|
|
2995
|
+
pagination: {
|
|
2996
|
+
size: number;
|
|
2997
|
+
page: number;
|
|
1909
2998
|
};
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
2999
|
+
};
|
|
3000
|
+
headers: unknown;
|
|
3001
|
+
response: {
|
|
3002
|
+
200: {
|
|
3003
|
+
totalCount: number;
|
|
3004
|
+
totalPage: number;
|
|
3005
|
+
result: {
|
|
3006
|
+
inventory: {
|
|
3007
|
+
name: string;
|
|
3008
|
+
partNumber: string;
|
|
3009
|
+
quantity: number;
|
|
3010
|
+
sellPrice: number;
|
|
3011
|
+
buyPrice: number;
|
|
3012
|
+
supplierId: string;
|
|
3013
|
+
merchantId: string;
|
|
3014
|
+
branchId: string;
|
|
3015
|
+
type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null;
|
|
3016
|
+
barCode: string | null;
|
|
3017
|
+
safetyStock: number | null;
|
|
3018
|
+
alias: string | null;
|
|
3019
|
+
oen: string | null;
|
|
3020
|
+
shelfNumber: string | null;
|
|
3021
|
+
description: string | null;
|
|
3022
|
+
id: string;
|
|
3023
|
+
createdAt: string;
|
|
3024
|
+
updatedAt: string;
|
|
3025
|
+
deletedAt: string | null;
|
|
3026
|
+
};
|
|
3027
|
+
itemId: string;
|
|
1916
3028
|
quantity: number;
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
supplierId: string;
|
|
3029
|
+
images: string[];
|
|
3030
|
+
description: string | null;
|
|
1920
3031
|
merchantId: string;
|
|
1921
3032
|
branchId: string;
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
alias: string | null;
|
|
1926
|
-
oen: string | null;
|
|
1927
|
-
shelfNumber: string | null;
|
|
1928
|
-
description: string | null;
|
|
3033
|
+
isApproved: boolean | null;
|
|
3034
|
+
userId: string;
|
|
3035
|
+
approvedUserId: string | null;
|
|
1929
3036
|
id: string;
|
|
1930
3037
|
createdAt: string;
|
|
1931
3038
|
updatedAt: string;
|
|
1932
3039
|
deletedAt: string | null;
|
|
1933
|
-
};
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
3040
|
+
}[];
|
|
3041
|
+
};
|
|
3042
|
+
422: {
|
|
3043
|
+
type: "validation";
|
|
3044
|
+
on: string;
|
|
3045
|
+
summary?: string;
|
|
3046
|
+
message?: string;
|
|
3047
|
+
found?: unknown;
|
|
3048
|
+
property?: string;
|
|
3049
|
+
expected?: string;
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
3052
|
+
};
|
|
3053
|
+
};
|
|
3054
|
+
} & {
|
|
3055
|
+
refund: {
|
|
3056
|
+
post: {
|
|
3057
|
+
body: {
|
|
3058
|
+
description?: string | null | undefined;
|
|
3059
|
+
quantity: number;
|
|
3060
|
+
itemId: string;
|
|
3061
|
+
images: string[];
|
|
3062
|
+
};
|
|
3063
|
+
params: {};
|
|
3064
|
+
query: unknown;
|
|
3065
|
+
headers: unknown;
|
|
3066
|
+
response: {
|
|
3067
|
+
200: {
|
|
3068
|
+
id: string;
|
|
3069
|
+
createdAt: string;
|
|
3070
|
+
updatedAt: string;
|
|
3071
|
+
merchantId: string;
|
|
3072
|
+
branchId: string;
|
|
3073
|
+
userId: string;
|
|
3074
|
+
deletedAt: string | null;
|
|
3075
|
+
quantity: number;
|
|
3076
|
+
description: string | null;
|
|
3077
|
+
itemId: string;
|
|
3078
|
+
images: string[];
|
|
3079
|
+
isApproved: boolean | null;
|
|
3080
|
+
approvedUserId: string | null;
|
|
3081
|
+
};
|
|
3082
|
+
422: {
|
|
3083
|
+
type: "validation";
|
|
3084
|
+
on: string;
|
|
3085
|
+
summary?: string;
|
|
3086
|
+
message?: string;
|
|
3087
|
+
found?: unknown;
|
|
3088
|
+
property?: string;
|
|
3089
|
+
expected?: string;
|
|
1944
3090
|
};
|
|
1945
3091
|
};
|
|
1946
3092
|
};
|
|
1947
3093
|
};
|
|
1948
3094
|
} & {
|
|
1949
|
-
|
|
3095
|
+
refund: {
|
|
1950
3096
|
":id": {
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
3097
|
+
approve: {
|
|
3098
|
+
post: {
|
|
3099
|
+
body: unknown;
|
|
3100
|
+
params: {
|
|
3101
|
+
id: string;
|
|
3102
|
+
};
|
|
3103
|
+
query: unknown;
|
|
3104
|
+
headers: unknown;
|
|
3105
|
+
response: {
|
|
3106
|
+
200: {
|
|
3107
|
+
itemId: string;
|
|
3108
|
+
quantity: number;
|
|
3109
|
+
images: string[];
|
|
3110
|
+
description: string | null;
|
|
3111
|
+
merchantId: string;
|
|
3112
|
+
branchId: string;
|
|
3113
|
+
isApproved: boolean | null;
|
|
3114
|
+
userId: string;
|
|
3115
|
+
approvedUserId: string | null;
|
|
3116
|
+
id: string;
|
|
3117
|
+
createdAt: string;
|
|
3118
|
+
updatedAt: string;
|
|
3119
|
+
deletedAt: string | null;
|
|
3120
|
+
};
|
|
3121
|
+
404: "Буцаалт олдсонгүй.";
|
|
3122
|
+
400: "Буцаалт зөвшөөрөгдсөн байна.";
|
|
3123
|
+
422: {
|
|
3124
|
+
type: "validation";
|
|
3125
|
+
on: string;
|
|
3126
|
+
summary?: string;
|
|
3127
|
+
message?: string;
|
|
3128
|
+
found?: unknown;
|
|
3129
|
+
property?: string;
|
|
3130
|
+
expected?: string;
|
|
3131
|
+
};
|
|
1968
3132
|
};
|
|
1969
3133
|
};
|
|
1970
3134
|
};
|
|
@@ -1973,20 +3137,28 @@ declare const app: Elysia<"", {
|
|
|
1973
3137
|
};
|
|
1974
3138
|
} & {
|
|
1975
3139
|
inventory: {
|
|
1976
|
-
|
|
3140
|
+
tranfer: {};
|
|
1977
3141
|
} & {
|
|
1978
|
-
|
|
3142
|
+
tranfer: {
|
|
1979
3143
|
get: {
|
|
1980
3144
|
body: unknown;
|
|
1981
3145
|
params: {};
|
|
1982
3146
|
query: {
|
|
1983
|
-
search?: string | undefined;
|
|
1984
3147
|
createdAt?: string | undefined;
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
3148
|
+
inventory?: {
|
|
3149
|
+
type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | undefined;
|
|
3150
|
+
search?: string | undefined;
|
|
3151
|
+
branchId?: string | undefined;
|
|
3152
|
+
sellPrice?: number | undefined;
|
|
3153
|
+
supplierId?: string | undefined;
|
|
3154
|
+
safetyStock?: number | undefined;
|
|
3155
|
+
alias?: string | undefined;
|
|
3156
|
+
shelfNumber?: string | undefined;
|
|
3157
|
+
pagination: {
|
|
3158
|
+
size: number;
|
|
3159
|
+
page: number;
|
|
3160
|
+
};
|
|
3161
|
+
} | undefined;
|
|
1990
3162
|
createdUserId?: string | undefined;
|
|
1991
3163
|
pagination: {
|
|
1992
3164
|
size: number;
|
|
@@ -1996,41 +3168,14 @@ declare const app: Elysia<"", {
|
|
|
1996
3168
|
headers: unknown;
|
|
1997
3169
|
response: {
|
|
1998
3170
|
200: {
|
|
1999
|
-
pageQuantity: number;
|
|
2000
|
-
totalQuantity: number;
|
|
2001
|
-
pagePrice: number;
|
|
2002
|
-
totalPrice: number;
|
|
2003
3171
|
totalCount: number;
|
|
2004
3172
|
totalPage: number;
|
|
2005
3173
|
result: {
|
|
2006
|
-
|
|
2007
|
-
name: string;
|
|
2008
|
-
partNumber: string;
|
|
2009
|
-
quantity: number;
|
|
2010
|
-
sellPrice: number;
|
|
2011
|
-
buyPrice: number;
|
|
2012
|
-
supplierId: string;
|
|
2013
|
-
merchantId: string;
|
|
2014
|
-
branchId: string;
|
|
2015
|
-
type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null;
|
|
2016
|
-
barCode: string | null;
|
|
2017
|
-
safetyStock: number | null;
|
|
2018
|
-
alias: string | null;
|
|
2019
|
-
oen: string | null;
|
|
2020
|
-
shelfNumber: string | null;
|
|
2021
|
-
description: string | null;
|
|
2022
|
-
id: string;
|
|
2023
|
-
createdAt: string;
|
|
2024
|
-
updatedAt: string;
|
|
2025
|
-
deletedAt: string | null;
|
|
2026
|
-
};
|
|
2027
|
-
itemId: string;
|
|
2028
|
-
quantity: number;
|
|
2029
|
-
sellPrice: number;
|
|
2030
|
-
buyPrice: number;
|
|
3174
|
+
status: "Зөвшөөрөгдсөн" | "Цуцлагдсан" | "Хүлээгдэж буй";
|
|
2031
3175
|
createdUserId: string;
|
|
2032
|
-
|
|
2033
|
-
|
|
3176
|
+
branchId: string;
|
|
3177
|
+
merchantId: string;
|
|
3178
|
+
to: string;
|
|
2034
3179
|
id: string;
|
|
2035
3180
|
createdAt: string;
|
|
2036
3181
|
updatedAt: string;
|
|
@@ -2049,14 +3194,88 @@ declare const app: Elysia<"", {
|
|
|
2049
3194
|
};
|
|
2050
3195
|
};
|
|
2051
3196
|
};
|
|
3197
|
+
} & {
|
|
3198
|
+
tranfer: {
|
|
3199
|
+
post: {
|
|
3200
|
+
body: {
|
|
3201
|
+
items: {
|
|
3202
|
+
quantity: number;
|
|
3203
|
+
itemId: string;
|
|
3204
|
+
}[];
|
|
3205
|
+
to: string;
|
|
3206
|
+
};
|
|
3207
|
+
params: {};
|
|
3208
|
+
query: unknown;
|
|
3209
|
+
headers: unknown;
|
|
3210
|
+
response: {
|
|
3211
|
+
200: {
|
|
3212
|
+
id: string;
|
|
3213
|
+
createdAt: string;
|
|
3214
|
+
updatedAt: string;
|
|
3215
|
+
merchantId: string;
|
|
3216
|
+
branchId: string;
|
|
3217
|
+
deletedAt: string | null;
|
|
3218
|
+
createdUserId: string;
|
|
3219
|
+
status: "Зөвшөөрөгдсөн" | "Цуцлагдсан" | "Хүлээгдэж буй";
|
|
3220
|
+
to: string;
|
|
3221
|
+
};
|
|
3222
|
+
422: {
|
|
3223
|
+
type: "validation";
|
|
3224
|
+
on: string;
|
|
3225
|
+
summary?: string;
|
|
3226
|
+
message?: string;
|
|
3227
|
+
found?: unknown;
|
|
3228
|
+
property?: string;
|
|
3229
|
+
expected?: string;
|
|
3230
|
+
};
|
|
3231
|
+
};
|
|
3232
|
+
};
|
|
3233
|
+
};
|
|
3234
|
+
} & {
|
|
3235
|
+
tranfer: {
|
|
3236
|
+
":id": {
|
|
3237
|
+
approve: {
|
|
3238
|
+
post: {
|
|
3239
|
+
body: unknown;
|
|
3240
|
+
params: {
|
|
3241
|
+
id: string;
|
|
3242
|
+
};
|
|
3243
|
+
query: unknown;
|
|
3244
|
+
headers: unknown;
|
|
3245
|
+
response: {
|
|
3246
|
+
200: undefined;
|
|
3247
|
+
404: "Хүсэлт олдсонгүй.";
|
|
3248
|
+
400: "Хүсэлт аль хэдийн зөвшөөрөгдсөн байна." | "Хүсэлт цуцлагдсан байна.";
|
|
3249
|
+
422: {
|
|
3250
|
+
type: "validation";
|
|
3251
|
+
on: string;
|
|
3252
|
+
summary?: string;
|
|
3253
|
+
message?: string;
|
|
3254
|
+
found?: unknown;
|
|
3255
|
+
property?: string;
|
|
3256
|
+
expected?: string;
|
|
3257
|
+
};
|
|
3258
|
+
};
|
|
3259
|
+
};
|
|
3260
|
+
};
|
|
3261
|
+
};
|
|
3262
|
+
};
|
|
2052
3263
|
};
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
|
-
|
|
3264
|
+
};
|
|
3265
|
+
} & {
|
|
3266
|
+
api: {
|
|
3267
|
+
company: {
|
|
3268
|
+
company: {};
|
|
3269
|
+
} & {
|
|
3270
|
+
company: {
|
|
2056
3271
|
get: {
|
|
2057
3272
|
body: unknown;
|
|
2058
3273
|
params: {};
|
|
2059
3274
|
query: {
|
|
3275
|
+
regNumber?: string | undefined;
|
|
3276
|
+
phone?: string | undefined;
|
|
3277
|
+
serviceName?: string | undefined;
|
|
3278
|
+
isActive?: boolean | undefined;
|
|
2060
3279
|
pagination: {
|
|
2061
3280
|
size: number;
|
|
2062
3281
|
page: number;
|
|
@@ -2067,14 +3286,33 @@ declare const app: Elysia<"", {
|
|
|
2067
3286
|
200: {
|
|
2068
3287
|
totalCount: number;
|
|
2069
3288
|
totalPage: number;
|
|
2070
|
-
result: {
|
|
3289
|
+
result: Omit<{
|
|
2071
3290
|
name: string;
|
|
2072
|
-
image: string | null;
|
|
2073
3291
|
id: string;
|
|
3292
|
+
email: string;
|
|
2074
3293
|
createdAt: string;
|
|
2075
3294
|
updatedAt: string;
|
|
2076
3295
|
deletedAt: string | null;
|
|
2077
|
-
|
|
3296
|
+
regNumber: string;
|
|
3297
|
+
phone: string;
|
|
3298
|
+
serviceName: string;
|
|
3299
|
+
logoUrl: string;
|
|
3300
|
+
province: string | null;
|
|
3301
|
+
district: string | null;
|
|
3302
|
+
khoroo: string | null;
|
|
3303
|
+
street: string | null;
|
|
3304
|
+
socialUrls: string[] | null;
|
|
3305
|
+
ceoName: string | null;
|
|
3306
|
+
webUrl: string | null;
|
|
3307
|
+
googleMapUrl: string | null;
|
|
3308
|
+
isContract: boolean;
|
|
3309
|
+
isNoat: boolean;
|
|
3310
|
+
isNexus: boolean;
|
|
3311
|
+
isActive: boolean;
|
|
3312
|
+
branchCount: number;
|
|
3313
|
+
} & {
|
|
3314
|
+
totalCount: number;
|
|
3315
|
+
}, "totalCount">[];
|
|
2078
3316
|
};
|
|
2079
3317
|
422: {
|
|
2080
3318
|
type: "validation";
|
|
@@ -2089,11 +3327,28 @@ declare const app: Elysia<"", {
|
|
|
2089
3327
|
};
|
|
2090
3328
|
};
|
|
2091
3329
|
} & {
|
|
2092
|
-
|
|
3330
|
+
company: {
|
|
2093
3331
|
post: {
|
|
2094
3332
|
body: {
|
|
2095
|
-
|
|
3333
|
+
province?: string | null | undefined;
|
|
3334
|
+
district?: string | null | undefined;
|
|
3335
|
+
khoroo?: string | null | undefined;
|
|
3336
|
+
street?: string | null | undefined;
|
|
3337
|
+
socialUrls?: string[] | null | undefined;
|
|
3338
|
+
ceoName?: string | null | undefined;
|
|
3339
|
+
webUrl?: string | null | undefined;
|
|
3340
|
+
googleMapUrl?: string | null | undefined;
|
|
3341
|
+
isContract?: boolean | undefined;
|
|
3342
|
+
isNoat?: boolean | undefined;
|
|
3343
|
+
isNexus?: boolean | undefined;
|
|
3344
|
+
isActive?: boolean | undefined;
|
|
3345
|
+
branchCount?: number | undefined;
|
|
2096
3346
|
name: string;
|
|
3347
|
+
email: string;
|
|
3348
|
+
regNumber: string;
|
|
3349
|
+
phone: string;
|
|
3350
|
+
serviceName: string;
|
|
3351
|
+
logoUrl: string;
|
|
2097
3352
|
};
|
|
2098
3353
|
params: {};
|
|
2099
3354
|
query: unknown;
|
|
@@ -2102,10 +3357,27 @@ declare const app: Elysia<"", {
|
|
|
2102
3357
|
200: {
|
|
2103
3358
|
name: string;
|
|
2104
3359
|
id: string;
|
|
2105
|
-
|
|
3360
|
+
email: string;
|
|
2106
3361
|
createdAt: string;
|
|
2107
3362
|
updatedAt: string;
|
|
2108
3363
|
deletedAt: string | null;
|
|
3364
|
+
regNumber: string;
|
|
3365
|
+
phone: string;
|
|
3366
|
+
serviceName: string;
|
|
3367
|
+
logoUrl: string;
|
|
3368
|
+
province: string | null;
|
|
3369
|
+
district: string | null;
|
|
3370
|
+
khoroo: string | null;
|
|
3371
|
+
street: string | null;
|
|
3372
|
+
socialUrls: string[] | null;
|
|
3373
|
+
ceoName: string | null;
|
|
3374
|
+
webUrl: string | null;
|
|
3375
|
+
googleMapUrl: string | null;
|
|
3376
|
+
isContract: boolean;
|
|
3377
|
+
isNoat: boolean;
|
|
3378
|
+
isNexus: boolean;
|
|
3379
|
+
isActive: boolean;
|
|
3380
|
+
branchCount: number;
|
|
2109
3381
|
};
|
|
2110
3382
|
422: {
|
|
2111
3383
|
type: "validation";
|
|
@@ -2120,12 +3392,29 @@ declare const app: Elysia<"", {
|
|
|
2120
3392
|
};
|
|
2121
3393
|
};
|
|
2122
3394
|
} & {
|
|
2123
|
-
|
|
3395
|
+
company: {
|
|
2124
3396
|
":id": {
|
|
2125
3397
|
put: {
|
|
2126
3398
|
body: {
|
|
2127
|
-
|
|
2128
|
-
|
|
3399
|
+
name?: string | undefined;
|
|
3400
|
+
email?: string | undefined;
|
|
3401
|
+
regNumber?: string | undefined;
|
|
3402
|
+
phone?: string | undefined;
|
|
3403
|
+
serviceName?: string | undefined;
|
|
3404
|
+
logoUrl?: string | undefined;
|
|
3405
|
+
province?: string | null | undefined;
|
|
3406
|
+
district?: string | null | undefined;
|
|
3407
|
+
khoroo?: string | null | undefined;
|
|
3408
|
+
street?: string | null | undefined;
|
|
3409
|
+
socialUrls?: string[] | null | undefined;
|
|
3410
|
+
ceoName?: string | null | undefined;
|
|
3411
|
+
webUrl?: string | null | undefined;
|
|
3412
|
+
googleMapUrl?: string | null | undefined;
|
|
3413
|
+
isContract?: boolean | undefined;
|
|
3414
|
+
isNoat?: boolean | undefined;
|
|
3415
|
+
isNexus?: boolean | undefined;
|
|
3416
|
+
isActive?: boolean | undefined;
|
|
3417
|
+
branchCount?: number | undefined;
|
|
2129
3418
|
};
|
|
2130
3419
|
params: {
|
|
2131
3420
|
id: string;
|
|
@@ -2135,13 +3424,30 @@ declare const app: Elysia<"", {
|
|
|
2135
3424
|
response: {
|
|
2136
3425
|
200: {
|
|
2137
3426
|
name: string;
|
|
2138
|
-
image: string | null;
|
|
2139
3427
|
id: string;
|
|
3428
|
+
email: string;
|
|
2140
3429
|
createdAt: string;
|
|
2141
3430
|
updatedAt: string;
|
|
2142
3431
|
deletedAt: string | null;
|
|
3432
|
+
regNumber: string;
|
|
3433
|
+
phone: string;
|
|
3434
|
+
serviceName: string;
|
|
3435
|
+
logoUrl: string;
|
|
3436
|
+
province: string | null;
|
|
3437
|
+
district: string | null;
|
|
3438
|
+
khoroo: string | null;
|
|
3439
|
+
street: string | null;
|
|
3440
|
+
socialUrls: string[] | null;
|
|
3441
|
+
ceoName: string | null;
|
|
3442
|
+
webUrl: string | null;
|
|
3443
|
+
googleMapUrl: string | null;
|
|
3444
|
+
isContract: boolean;
|
|
3445
|
+
isNoat: boolean;
|
|
3446
|
+
isNexus: boolean;
|
|
3447
|
+
isActive: boolean;
|
|
3448
|
+
branchCount: number;
|
|
2143
3449
|
};
|
|
2144
|
-
404:
|
|
3450
|
+
404: string;
|
|
2145
3451
|
422: {
|
|
2146
3452
|
type: "validation";
|
|
2147
3453
|
on: string;
|
|
@@ -2156,7 +3462,7 @@ declare const app: Elysia<"", {
|
|
|
2156
3462
|
};
|
|
2157
3463
|
};
|
|
2158
3464
|
} & {
|
|
2159
|
-
|
|
3465
|
+
company: {
|
|
2160
3466
|
":id": {
|
|
2161
3467
|
delete: {
|
|
2162
3468
|
body: unknown;
|
|
@@ -2167,7 +3473,7 @@ declare const app: Elysia<"", {
|
|
|
2167
3473
|
headers: unknown;
|
|
2168
3474
|
response: {
|
|
2169
3475
|
200: undefined;
|
|
2170
|
-
404:
|
|
3476
|
+
404: string;
|
|
2171
3477
|
422: {
|
|
2172
3478
|
type: "validation";
|
|
2173
3479
|
on: string;
|
|
@@ -2183,27 +3489,34 @@ declare const app: Elysia<"", {
|
|
|
2183
3489
|
};
|
|
2184
3490
|
};
|
|
2185
3491
|
} & {
|
|
2186
|
-
|
|
2187
|
-
|
|
3492
|
+
company: {
|
|
3493
|
+
branch: {};
|
|
2188
3494
|
} & {
|
|
2189
|
-
|
|
3495
|
+
branch: {
|
|
2190
3496
|
get: {
|
|
2191
3497
|
body: unknown;
|
|
2192
3498
|
params: {};
|
|
2193
3499
|
query: {
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
3500
|
+
name?: string | undefined;
|
|
3501
|
+
id?: string | undefined;
|
|
3502
|
+
email?: string | null | undefined;
|
|
3503
|
+
createdAt?: string | undefined;
|
|
3504
|
+
updatedAt?: string | undefined;
|
|
3505
|
+
merchantId?: string | undefined;
|
|
3506
|
+
deletedAt?: string | null | undefined;
|
|
3507
|
+
regNumber?: string | null | undefined;
|
|
3508
|
+
phone?: string | undefined;
|
|
3509
|
+
logoUrl?: string | undefined;
|
|
3510
|
+
province?: string | null | undefined;
|
|
3511
|
+
district?: string | null | undefined;
|
|
3512
|
+
khoroo?: string | null | undefined;
|
|
3513
|
+
street?: string | null | undefined;
|
|
3514
|
+
socialUrls?: string[] | null | undefined;
|
|
3515
|
+
ceoName?: string | null | undefined;
|
|
3516
|
+
googleMapUrl?: string | null | undefined;
|
|
3517
|
+
isNoat?: boolean | undefined;
|
|
3518
|
+
isActive?: boolean | undefined;
|
|
3519
|
+
packageId?: string | undefined;
|
|
2207
3520
|
pagination: {
|
|
2208
3521
|
size: number;
|
|
2209
3522
|
page: number;
|
|
@@ -2214,42 +3527,30 @@ declare const app: Elysia<"", {
|
|
|
2214
3527
|
200: {
|
|
2215
3528
|
totalCount: number;
|
|
2216
3529
|
totalPage: number;
|
|
2217
|
-
result: {
|
|
2218
|
-
|
|
2219
|
-
name: string;
|
|
2220
|
-
partNumber: string;
|
|
2221
|
-
quantity: number;
|
|
2222
|
-
sellPrice: number;
|
|
2223
|
-
buyPrice: number;
|
|
2224
|
-
supplierId: string;
|
|
2225
|
-
merchantId: string;
|
|
2226
|
-
branchId: string;
|
|
2227
|
-
type: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | null;
|
|
2228
|
-
barCode: string | null;
|
|
2229
|
-
safetyStock: number | null;
|
|
2230
|
-
alias: string | null;
|
|
2231
|
-
oen: string | null;
|
|
2232
|
-
shelfNumber: string | null;
|
|
2233
|
-
description: string | null;
|
|
2234
|
-
id: string;
|
|
2235
|
-
createdAt: string;
|
|
2236
|
-
updatedAt: string;
|
|
2237
|
-
deletedAt: string | null;
|
|
2238
|
-
};
|
|
2239
|
-
itemId: string;
|
|
2240
|
-
quantity: number;
|
|
2241
|
-
images: string[];
|
|
2242
|
-
description: string | null;
|
|
2243
|
-
merchantId: string;
|
|
2244
|
-
branchId: string;
|
|
2245
|
-
isApproved: boolean | null;
|
|
2246
|
-
userId: string;
|
|
2247
|
-
approvedUserId: string | null;
|
|
3530
|
+
result: Omit<{
|
|
3531
|
+
name: string;
|
|
2248
3532
|
id: string;
|
|
3533
|
+
email: string | null;
|
|
2249
3534
|
createdAt: string;
|
|
2250
3535
|
updatedAt: string;
|
|
3536
|
+
merchantId: string;
|
|
2251
3537
|
deletedAt: string | null;
|
|
2252
|
-
|
|
3538
|
+
regNumber: string | null;
|
|
3539
|
+
phone: string;
|
|
3540
|
+
logoUrl: string;
|
|
3541
|
+
province: string | null;
|
|
3542
|
+
district: string | null;
|
|
3543
|
+
khoroo: string | null;
|
|
3544
|
+
street: string | null;
|
|
3545
|
+
socialUrls: string[] | null;
|
|
3546
|
+
ceoName: string | null;
|
|
3547
|
+
googleMapUrl: string | null;
|
|
3548
|
+
isNoat: boolean;
|
|
3549
|
+
isActive: boolean;
|
|
3550
|
+
packageId: string;
|
|
3551
|
+
} & {
|
|
3552
|
+
totalCount: number;
|
|
3553
|
+
}, "totalCount">[];
|
|
2253
3554
|
};
|
|
2254
3555
|
422: {
|
|
2255
3556
|
type: "validation";
|
|
@@ -2264,32 +3565,51 @@ declare const app: Elysia<"", {
|
|
|
2264
3565
|
};
|
|
2265
3566
|
};
|
|
2266
3567
|
} & {
|
|
2267
|
-
|
|
3568
|
+
branch: {
|
|
2268
3569
|
post: {
|
|
2269
3570
|
body: {
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
3571
|
+
merchantId?: string | undefined;
|
|
3572
|
+
regNumber?: string | null | undefined;
|
|
3573
|
+
province?: string | null | undefined;
|
|
3574
|
+
district?: string | null | undefined;
|
|
3575
|
+
khoroo?: string | null | undefined;
|
|
3576
|
+
street?: string | null | undefined;
|
|
3577
|
+
socialUrls?: string[] | null | undefined;
|
|
3578
|
+
ceoName?: string | null | undefined;
|
|
3579
|
+
googleMapUrl?: string | null | undefined;
|
|
3580
|
+
isNoat?: boolean | undefined;
|
|
3581
|
+
isActive?: boolean | undefined;
|
|
3582
|
+
name: string;
|
|
3583
|
+
email: string | null;
|
|
3584
|
+
phone: string;
|
|
3585
|
+
logoUrl: string;
|
|
3586
|
+
packageId: string;
|
|
2274
3587
|
};
|
|
2275
3588
|
params: {};
|
|
2276
3589
|
query: unknown;
|
|
2277
3590
|
headers: unknown;
|
|
2278
3591
|
response: {
|
|
2279
3592
|
200: {
|
|
3593
|
+
name: string;
|
|
2280
3594
|
id: string;
|
|
3595
|
+
email: string | null;
|
|
2281
3596
|
createdAt: string;
|
|
2282
3597
|
updatedAt: string;
|
|
2283
3598
|
merchantId: string;
|
|
2284
|
-
branchId: string;
|
|
2285
|
-
userId: string;
|
|
2286
3599
|
deletedAt: string | null;
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
3600
|
+
regNumber: string | null;
|
|
3601
|
+
phone: string;
|
|
3602
|
+
logoUrl: string;
|
|
3603
|
+
province: string | null;
|
|
3604
|
+
district: string | null;
|
|
3605
|
+
khoroo: string | null;
|
|
3606
|
+
street: string | null;
|
|
3607
|
+
socialUrls: string[] | null;
|
|
3608
|
+
ceoName: string | null;
|
|
3609
|
+
googleMapUrl: string | null;
|
|
3610
|
+
isNoat: boolean;
|
|
3611
|
+
isActive: boolean;
|
|
3612
|
+
packageId: string;
|
|
2293
3613
|
};
|
|
2294
3614
|
422: {
|
|
2295
3615
|
type: "validation";
|
|
@@ -2304,43 +3624,90 @@ declare const app: Elysia<"", {
|
|
|
2304
3624
|
};
|
|
2305
3625
|
};
|
|
2306
3626
|
} & {
|
|
2307
|
-
|
|
3627
|
+
branch: {
|
|
2308
3628
|
":id": {
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
3629
|
+
put: {
|
|
3630
|
+
body: {
|
|
3631
|
+
name?: string | undefined;
|
|
3632
|
+
email?: string | null | undefined;
|
|
3633
|
+
merchantId?: string | undefined;
|
|
3634
|
+
regNumber?: string | null | undefined;
|
|
3635
|
+
phone?: string | undefined;
|
|
3636
|
+
logoUrl?: string | undefined;
|
|
3637
|
+
province?: string | null | undefined;
|
|
3638
|
+
district?: string | null | undefined;
|
|
3639
|
+
khoroo?: string | null | undefined;
|
|
3640
|
+
street?: string | null | undefined;
|
|
3641
|
+
socialUrls?: string[] | null | undefined;
|
|
3642
|
+
ceoName?: string | null | undefined;
|
|
3643
|
+
googleMapUrl?: string | null | undefined;
|
|
3644
|
+
isNoat?: boolean | undefined;
|
|
3645
|
+
isActive?: boolean | undefined;
|
|
3646
|
+
packageId?: string | undefined;
|
|
3647
|
+
};
|
|
3648
|
+
params: {
|
|
3649
|
+
id: string;
|
|
3650
|
+
};
|
|
3651
|
+
query: unknown;
|
|
3652
|
+
headers: unknown;
|
|
3653
|
+
response: {
|
|
3654
|
+
200: {
|
|
3655
|
+
name: string;
|
|
2313
3656
|
id: string;
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
3657
|
+
email: string | null;
|
|
3658
|
+
createdAt: string;
|
|
3659
|
+
updatedAt: string;
|
|
3660
|
+
merchantId: string;
|
|
3661
|
+
deletedAt: string | null;
|
|
3662
|
+
regNumber: string | null;
|
|
3663
|
+
phone: string;
|
|
3664
|
+
logoUrl: string;
|
|
3665
|
+
province: string | null;
|
|
3666
|
+
district: string | null;
|
|
3667
|
+
khoroo: string | null;
|
|
3668
|
+
street: string | null;
|
|
3669
|
+
socialUrls: string[] | null;
|
|
3670
|
+
ceoName: string | null;
|
|
3671
|
+
googleMapUrl: string | null;
|
|
3672
|
+
isNoat: boolean;
|
|
3673
|
+
isActive: boolean;
|
|
3674
|
+
packageId: string;
|
|
3675
|
+
};
|
|
3676
|
+
404: string;
|
|
3677
|
+
422: {
|
|
3678
|
+
type: "validation";
|
|
3679
|
+
on: string;
|
|
3680
|
+
summary?: string;
|
|
3681
|
+
message?: string;
|
|
3682
|
+
found?: unknown;
|
|
3683
|
+
property?: string;
|
|
3684
|
+
expected?: string;
|
|
3685
|
+
};
|
|
3686
|
+
};
|
|
3687
|
+
};
|
|
3688
|
+
};
|
|
3689
|
+
};
|
|
3690
|
+
} & {
|
|
3691
|
+
branch: {
|
|
3692
|
+
":id": {
|
|
3693
|
+
delete: {
|
|
3694
|
+
body: unknown;
|
|
3695
|
+
params: {
|
|
3696
|
+
id: string;
|
|
3697
|
+
};
|
|
3698
|
+
query: unknown;
|
|
3699
|
+
headers: unknown;
|
|
3700
|
+
response: {
|
|
3701
|
+
200: undefined;
|
|
3702
|
+
404: string;
|
|
3703
|
+
422: {
|
|
3704
|
+
type: "validation";
|
|
3705
|
+
on: string;
|
|
3706
|
+
summary?: string;
|
|
3707
|
+
message?: string;
|
|
3708
|
+
found?: unknown;
|
|
3709
|
+
property?: string;
|
|
3710
|
+
expected?: string;
|
|
2344
3711
|
};
|
|
2345
3712
|
};
|
|
2346
3713
|
};
|
|
@@ -2348,30 +3715,14 @@ declare const app: Elysia<"", {
|
|
|
2348
3715
|
};
|
|
2349
3716
|
};
|
|
2350
3717
|
} & {
|
|
2351
|
-
|
|
2352
|
-
|
|
3718
|
+
company: {
|
|
3719
|
+
package: {};
|
|
2353
3720
|
} & {
|
|
2354
|
-
|
|
3721
|
+
package: {
|
|
2355
3722
|
get: {
|
|
2356
3723
|
body: unknown;
|
|
2357
3724
|
params: {};
|
|
2358
3725
|
query: {
|
|
2359
|
-
createdAt?: string | undefined;
|
|
2360
|
-
inventory?: {
|
|
2361
|
-
type?: "Сэлбэг" | "Тос" | "Дугуй" | "Будаг" | "Аккумлятор" | undefined;
|
|
2362
|
-
search?: string | undefined;
|
|
2363
|
-
branchId?: string | undefined;
|
|
2364
|
-
sellPrice?: number | undefined;
|
|
2365
|
-
supplierId?: string | undefined;
|
|
2366
|
-
safetyStock?: number | undefined;
|
|
2367
|
-
alias?: string | undefined;
|
|
2368
|
-
shelfNumber?: string | undefined;
|
|
2369
|
-
pagination: {
|
|
2370
|
-
size: number;
|
|
2371
|
-
page: number;
|
|
2372
|
-
};
|
|
2373
|
-
} | undefined;
|
|
2374
|
-
createdUserId?: string | undefined;
|
|
2375
3726
|
pagination: {
|
|
2376
3727
|
size: number;
|
|
2377
3728
|
page: number;
|
|
@@ -2382,17 +3733,17 @@ declare const app: Elysia<"", {
|
|
|
2382
3733
|
200: {
|
|
2383
3734
|
totalCount: number;
|
|
2384
3735
|
totalPage: number;
|
|
2385
|
-
result: {
|
|
2386
|
-
|
|
2387
|
-
createdUserId: string;
|
|
2388
|
-
branchId: string;
|
|
2389
|
-
merchantId: string;
|
|
2390
|
-
to: string;
|
|
3736
|
+
result: Omit<{
|
|
3737
|
+
name: string;
|
|
2391
3738
|
id: string;
|
|
2392
3739
|
createdAt: string;
|
|
2393
3740
|
updatedAt: string;
|
|
2394
3741
|
deletedAt: string | null;
|
|
2395
|
-
|
|
3742
|
+
rowCount: number;
|
|
3743
|
+
price: number;
|
|
3744
|
+
} & {
|
|
3745
|
+
totalCount: number;
|
|
3746
|
+
}, "totalCount">[];
|
|
2396
3747
|
};
|
|
2397
3748
|
422: {
|
|
2398
3749
|
type: "validation";
|
|
@@ -2407,29 +3758,25 @@ declare const app: Elysia<"", {
|
|
|
2407
3758
|
};
|
|
2408
3759
|
};
|
|
2409
3760
|
} & {
|
|
2410
|
-
|
|
3761
|
+
package: {
|
|
2411
3762
|
post: {
|
|
2412
3763
|
body: {
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
}[];
|
|
2417
|
-
to: string;
|
|
3764
|
+
name: string;
|
|
3765
|
+
rowCount: number;
|
|
3766
|
+
price: number;
|
|
2418
3767
|
};
|
|
2419
3768
|
params: {};
|
|
2420
3769
|
query: unknown;
|
|
2421
3770
|
headers: unknown;
|
|
2422
3771
|
response: {
|
|
2423
3772
|
200: {
|
|
3773
|
+
name: string;
|
|
2424
3774
|
id: string;
|
|
2425
3775
|
createdAt: string;
|
|
2426
3776
|
updatedAt: string;
|
|
2427
|
-
merchantId: string;
|
|
2428
|
-
branchId: string;
|
|
2429
3777
|
deletedAt: string | null;
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
to: string;
|
|
3778
|
+
rowCount: number;
|
|
3779
|
+
price: number;
|
|
2433
3780
|
};
|
|
2434
3781
|
422: {
|
|
2435
3782
|
type: "validation";
|
|
@@ -2444,29 +3791,64 @@ declare const app: Elysia<"", {
|
|
|
2444
3791
|
};
|
|
2445
3792
|
};
|
|
2446
3793
|
} & {
|
|
2447
|
-
|
|
3794
|
+
package: {
|
|
2448
3795
|
":id": {
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
3796
|
+
put: {
|
|
3797
|
+
body: {
|
|
3798
|
+
name?: string | undefined;
|
|
3799
|
+
rowCount?: number | undefined;
|
|
3800
|
+
price?: number | undefined;
|
|
3801
|
+
};
|
|
3802
|
+
params: {
|
|
3803
|
+
id: string;
|
|
3804
|
+
};
|
|
3805
|
+
query: unknown;
|
|
3806
|
+
headers: unknown;
|
|
3807
|
+
response: {
|
|
3808
|
+
200: {
|
|
3809
|
+
name: string;
|
|
2453
3810
|
id: string;
|
|
3811
|
+
createdAt: string;
|
|
3812
|
+
updatedAt: string;
|
|
3813
|
+
deletedAt: string | null;
|
|
3814
|
+
rowCount: number;
|
|
3815
|
+
price: number;
|
|
2454
3816
|
};
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
3817
|
+
404: string;
|
|
3818
|
+
422: {
|
|
3819
|
+
type: "validation";
|
|
3820
|
+
on: string;
|
|
3821
|
+
summary?: string;
|
|
3822
|
+
message?: string;
|
|
3823
|
+
found?: unknown;
|
|
3824
|
+
property?: string;
|
|
3825
|
+
expected?: string;
|
|
3826
|
+
};
|
|
3827
|
+
};
|
|
3828
|
+
};
|
|
3829
|
+
};
|
|
3830
|
+
};
|
|
3831
|
+
} & {
|
|
3832
|
+
package: {
|
|
3833
|
+
":id": {
|
|
3834
|
+
delete: {
|
|
3835
|
+
body: unknown;
|
|
3836
|
+
params: {
|
|
3837
|
+
id: string;
|
|
3838
|
+
};
|
|
3839
|
+
query: unknown;
|
|
3840
|
+
headers: unknown;
|
|
3841
|
+
response: {
|
|
3842
|
+
200: undefined;
|
|
3843
|
+
404: string;
|
|
3844
|
+
422: {
|
|
3845
|
+
type: "validation";
|
|
3846
|
+
on: string;
|
|
3847
|
+
summary?: string;
|
|
3848
|
+
message?: string;
|
|
3849
|
+
found?: unknown;
|
|
3850
|
+
property?: string;
|
|
3851
|
+
expected?: string;
|
|
2470
3852
|
};
|
|
2471
3853
|
};
|
|
2472
3854
|
};
|
|
@@ -2476,18 +3858,48 @@ declare const app: Elysia<"", {
|
|
|
2476
3858
|
};
|
|
2477
3859
|
} & {
|
|
2478
3860
|
api: {
|
|
2479
|
-
|
|
2480
|
-
|
|
3861
|
+
permission: {
|
|
3862
|
+
get: {
|
|
3863
|
+
body: unknown;
|
|
3864
|
+
params: {};
|
|
3865
|
+
query: unknown;
|
|
3866
|
+
headers: unknown;
|
|
3867
|
+
response: {
|
|
3868
|
+
200: {
|
|
3869
|
+
readonly code: import("./lib/permissions").PermissionCode;
|
|
3870
|
+
description: string;
|
|
3871
|
+
requiresAdmin?: boolean;
|
|
3872
|
+
}[];
|
|
3873
|
+
};
|
|
3874
|
+
};
|
|
2481
3875
|
} & {
|
|
2482
|
-
|
|
3876
|
+
post: {
|
|
3877
|
+
body: {
|
|
3878
|
+
userId: string;
|
|
3879
|
+
permissions: string[];
|
|
3880
|
+
};
|
|
3881
|
+
params: {};
|
|
3882
|
+
query: unknown;
|
|
3883
|
+
headers: unknown;
|
|
3884
|
+
response: {
|
|
3885
|
+
200: void;
|
|
3886
|
+
422: {
|
|
3887
|
+
type: "validation";
|
|
3888
|
+
on: string;
|
|
3889
|
+
summary?: string;
|
|
3890
|
+
message?: string;
|
|
3891
|
+
found?: unknown;
|
|
3892
|
+
property?: string;
|
|
3893
|
+
expected?: string;
|
|
3894
|
+
};
|
|
3895
|
+
};
|
|
3896
|
+
};
|
|
3897
|
+
} & {
|
|
3898
|
+
group: {
|
|
2483
3899
|
get: {
|
|
2484
3900
|
body: unknown;
|
|
2485
3901
|
params: {};
|
|
2486
3902
|
query: {
|
|
2487
|
-
regNumber?: string | undefined;
|
|
2488
|
-
phone?: string | undefined;
|
|
2489
|
-
serviceName?: string | undefined;
|
|
2490
|
-
isActive?: boolean | undefined;
|
|
2491
3903
|
pagination: {
|
|
2492
3904
|
size: number;
|
|
2493
3905
|
page: number;
|
|
@@ -2498,33 +3910,19 @@ declare const app: Elysia<"", {
|
|
|
2498
3910
|
200: {
|
|
2499
3911
|
totalCount: number;
|
|
2500
3912
|
totalPage: number;
|
|
2501
|
-
result:
|
|
3913
|
+
result: {
|
|
3914
|
+
permissions: {
|
|
3915
|
+
readonly code: import("./lib/permissions").PermissionCode;
|
|
3916
|
+
description: string;
|
|
3917
|
+
requiresAdmin?: boolean;
|
|
3918
|
+
}[];
|
|
3919
|
+
totalCount: number;
|
|
2502
3920
|
name: string;
|
|
2503
3921
|
id: string;
|
|
2504
|
-
email: string;
|
|
2505
3922
|
createdAt: string;
|
|
2506
3923
|
updatedAt: string;
|
|
2507
3924
|
deletedAt: string | null;
|
|
2508
|
-
|
|
2509
|
-
phone: string;
|
|
2510
|
-
serviceName: string;
|
|
2511
|
-
logoUrl: string;
|
|
2512
|
-
province: string | null;
|
|
2513
|
-
district: string | null;
|
|
2514
|
-
khoroo: string | null;
|
|
2515
|
-
street: string | null;
|
|
2516
|
-
socialUrls: string[] | null;
|
|
2517
|
-
ceoName: string | null;
|
|
2518
|
-
webUrl: string | null;
|
|
2519
|
-
googleMapUrl: string | null;
|
|
2520
|
-
isContract: boolean;
|
|
2521
|
-
isNoat: boolean;
|
|
2522
|
-
isNexus: boolean;
|
|
2523
|
-
isActive: boolean;
|
|
2524
|
-
branchCount: number;
|
|
2525
|
-
} & {
|
|
2526
|
-
totalCount: number;
|
|
2527
|
-
}, "totalCount">[];
|
|
3925
|
+
}[];
|
|
2528
3926
|
};
|
|
2529
3927
|
422: {
|
|
2530
3928
|
type: "validation";
|
|
@@ -2539,28 +3937,11 @@ declare const app: Elysia<"", {
|
|
|
2539
3937
|
};
|
|
2540
3938
|
};
|
|
2541
3939
|
} & {
|
|
2542
|
-
|
|
3940
|
+
group: {
|
|
2543
3941
|
post: {
|
|
2544
3942
|
body: {
|
|
2545
|
-
|
|
2546
|
-
district?: string | null | undefined;
|
|
2547
|
-
khoroo?: string | null | undefined;
|
|
2548
|
-
street?: string | null | undefined;
|
|
2549
|
-
socialUrls?: string[] | null | undefined;
|
|
2550
|
-
ceoName?: string | null | undefined;
|
|
2551
|
-
webUrl?: string | null | undefined;
|
|
2552
|
-
googleMapUrl?: string | null | undefined;
|
|
2553
|
-
isContract?: boolean | undefined;
|
|
2554
|
-
isNoat?: boolean | undefined;
|
|
2555
|
-
isNexus?: boolean | undefined;
|
|
2556
|
-
isActive?: boolean | undefined;
|
|
2557
|
-
branchCount?: number | undefined;
|
|
3943
|
+
permissions?: string[] | undefined;
|
|
2558
3944
|
name: string;
|
|
2559
|
-
email: string;
|
|
2560
|
-
regNumber: string;
|
|
2561
|
-
phone: string;
|
|
2562
|
-
serviceName: string;
|
|
2563
|
-
logoUrl: string;
|
|
2564
3945
|
};
|
|
2565
3946
|
params: {};
|
|
2566
3947
|
query: unknown;
|
|
@@ -2569,27 +3950,10 @@ declare const app: Elysia<"", {
|
|
|
2569
3950
|
200: {
|
|
2570
3951
|
name: string;
|
|
2571
3952
|
id: string;
|
|
2572
|
-
email: string;
|
|
2573
3953
|
createdAt: string;
|
|
2574
3954
|
updatedAt: string;
|
|
2575
3955
|
deletedAt: string | null;
|
|
2576
|
-
|
|
2577
|
-
phone: string;
|
|
2578
|
-
serviceName: string;
|
|
2579
|
-
logoUrl: string;
|
|
2580
|
-
province: string | null;
|
|
2581
|
-
district: string | null;
|
|
2582
|
-
khoroo: string | null;
|
|
2583
|
-
street: string | null;
|
|
2584
|
-
socialUrls: string[] | null;
|
|
2585
|
-
ceoName: string | null;
|
|
2586
|
-
webUrl: string | null;
|
|
2587
|
-
googleMapUrl: string | null;
|
|
2588
|
-
isContract: boolean;
|
|
2589
|
-
isNoat: boolean;
|
|
2590
|
-
isNexus: boolean;
|
|
2591
|
-
isActive: boolean;
|
|
2592
|
-
branchCount: number;
|
|
3956
|
+
permissions: string[];
|
|
2593
3957
|
};
|
|
2594
3958
|
422: {
|
|
2595
3959
|
type: "validation";
|
|
@@ -2604,60 +3968,26 @@ declare const app: Elysia<"", {
|
|
|
2604
3968
|
};
|
|
2605
3969
|
};
|
|
2606
3970
|
} & {
|
|
2607
|
-
|
|
3971
|
+
group: {
|
|
2608
3972
|
":id": {
|
|
2609
3973
|
put: {
|
|
2610
3974
|
body: {
|
|
2611
3975
|
name?: string | undefined;
|
|
2612
|
-
|
|
2613
|
-
regNumber?: string | undefined;
|
|
2614
|
-
phone?: string | undefined;
|
|
2615
|
-
serviceName?: string | undefined;
|
|
2616
|
-
logoUrl?: string | undefined;
|
|
2617
|
-
province?: string | null | undefined;
|
|
2618
|
-
district?: string | null | undefined;
|
|
2619
|
-
khoroo?: string | null | undefined;
|
|
2620
|
-
street?: string | null | undefined;
|
|
2621
|
-
socialUrls?: string[] | null | undefined;
|
|
2622
|
-
ceoName?: string | null | undefined;
|
|
2623
|
-
webUrl?: string | null | undefined;
|
|
2624
|
-
googleMapUrl?: string | null | undefined;
|
|
2625
|
-
isContract?: boolean | undefined;
|
|
2626
|
-
isNoat?: boolean | undefined;
|
|
2627
|
-
isNexus?: boolean | undefined;
|
|
2628
|
-
isActive?: boolean | undefined;
|
|
2629
|
-
branchCount?: number | undefined;
|
|
3976
|
+
permissions?: string[] | undefined;
|
|
2630
3977
|
};
|
|
2631
3978
|
params: {
|
|
2632
3979
|
id: string;
|
|
2633
|
-
};
|
|
3980
|
+
} & {};
|
|
2634
3981
|
query: unknown;
|
|
2635
3982
|
headers: unknown;
|
|
2636
3983
|
response: {
|
|
2637
3984
|
200: {
|
|
2638
3985
|
name: string;
|
|
2639
3986
|
id: string;
|
|
2640
|
-
email: string;
|
|
2641
3987
|
createdAt: string;
|
|
2642
3988
|
updatedAt: string;
|
|
2643
3989
|
deletedAt: string | null;
|
|
2644
|
-
|
|
2645
|
-
phone: string;
|
|
2646
|
-
serviceName: string;
|
|
2647
|
-
logoUrl: string;
|
|
2648
|
-
province: string | null;
|
|
2649
|
-
district: string | null;
|
|
2650
|
-
khoroo: string | null;
|
|
2651
|
-
street: string | null;
|
|
2652
|
-
socialUrls: string[] | null;
|
|
2653
|
-
ceoName: string | null;
|
|
2654
|
-
webUrl: string | null;
|
|
2655
|
-
googleMapUrl: string | null;
|
|
2656
|
-
isContract: boolean;
|
|
2657
|
-
isNoat: boolean;
|
|
2658
|
-
isNexus: boolean;
|
|
2659
|
-
isActive: boolean;
|
|
2660
|
-
branchCount: number;
|
|
3990
|
+
permissions: string[];
|
|
2661
3991
|
};
|
|
2662
3992
|
404: string;
|
|
2663
3993
|
422: {
|
|
@@ -2674,13 +4004,13 @@ declare const app: Elysia<"", {
|
|
|
2674
4004
|
};
|
|
2675
4005
|
};
|
|
2676
4006
|
} & {
|
|
2677
|
-
|
|
4007
|
+
group: {
|
|
2678
4008
|
":id": {
|
|
2679
4009
|
delete: {
|
|
2680
4010
|
body: unknown;
|
|
2681
4011
|
params: {
|
|
2682
4012
|
id: string;
|
|
2683
|
-
};
|
|
4013
|
+
} & {};
|
|
2684
4014
|
query: unknown;
|
|
2685
4015
|
headers: unknown;
|
|
2686
4016
|
response: {
|
|
@@ -2700,129 +4030,138 @@ declare const app: Elysia<"", {
|
|
|
2700
4030
|
};
|
|
2701
4031
|
};
|
|
2702
4032
|
};
|
|
4033
|
+
};
|
|
4034
|
+
} & {
|
|
4035
|
+
api: {
|
|
4036
|
+
user: {};
|
|
2703
4037
|
} & {
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
id?: string | undefined;
|
|
2714
|
-
email?: string | null | undefined;
|
|
2715
|
-
createdAt?: string | undefined;
|
|
2716
|
-
updatedAt?: string | undefined;
|
|
2717
|
-
merchantId?: string | undefined;
|
|
2718
|
-
deletedAt?: string | null | undefined;
|
|
2719
|
-
regNumber?: string | null | undefined;
|
|
2720
|
-
phone?: string | undefined;
|
|
2721
|
-
logoUrl?: string | undefined;
|
|
2722
|
-
province?: string | null | undefined;
|
|
2723
|
-
district?: string | null | undefined;
|
|
2724
|
-
khoroo?: string | null | undefined;
|
|
2725
|
-
street?: string | null | undefined;
|
|
2726
|
-
socialUrls?: string[] | null | undefined;
|
|
2727
|
-
ceoName?: string | null | undefined;
|
|
2728
|
-
googleMapUrl?: string | null | undefined;
|
|
2729
|
-
isNoat?: boolean | undefined;
|
|
2730
|
-
isActive?: boolean | undefined;
|
|
2731
|
-
packageId?: string | undefined;
|
|
2732
|
-
pagination: {
|
|
2733
|
-
size: number;
|
|
2734
|
-
page: number;
|
|
2735
|
-
};
|
|
4038
|
+
user: {
|
|
4039
|
+
get: {
|
|
4040
|
+
body: unknown;
|
|
4041
|
+
params: {};
|
|
4042
|
+
query: {
|
|
4043
|
+
branchId?: string | undefined;
|
|
4044
|
+
pagination: {
|
|
4045
|
+
size: number;
|
|
4046
|
+
page: number;
|
|
2736
4047
|
};
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
on: string;
|
|
2770
|
-
summary?: string;
|
|
2771
|
-
message?: string;
|
|
2772
|
-
found?: unknown;
|
|
2773
|
-
property?: string;
|
|
2774
|
-
expected?: string;
|
|
2775
|
-
};
|
|
4048
|
+
};
|
|
4049
|
+
headers: unknown;
|
|
4050
|
+
response: {
|
|
4051
|
+
200: {
|
|
4052
|
+
totalCount: number;
|
|
4053
|
+
totalPage: number;
|
|
4054
|
+
result: {
|
|
4055
|
+
permissions: {
|
|
4056
|
+
readonly code: import("./lib/permissions").PermissionCode;
|
|
4057
|
+
description: string;
|
|
4058
|
+
requiresAdmin?: boolean;
|
|
4059
|
+
}[];
|
|
4060
|
+
id: string;
|
|
4061
|
+
name: string;
|
|
4062
|
+
email: string;
|
|
4063
|
+
emailVerified: boolean;
|
|
4064
|
+
image: string | null;
|
|
4065
|
+
createdAt: Date;
|
|
4066
|
+
updatedAt: Date;
|
|
4067
|
+
merchantId: string;
|
|
4068
|
+
branchId: string;
|
|
4069
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
4070
|
+
}[];
|
|
4071
|
+
};
|
|
4072
|
+
422: {
|
|
4073
|
+
type: "validation";
|
|
4074
|
+
on: string;
|
|
4075
|
+
summary?: string;
|
|
4076
|
+
message?: string;
|
|
4077
|
+
found?: unknown;
|
|
4078
|
+
property?: string;
|
|
4079
|
+
expected?: string;
|
|
2776
4080
|
};
|
|
2777
4081
|
};
|
|
2778
4082
|
};
|
|
2779
|
-
}
|
|
2780
|
-
|
|
2781
|
-
|
|
4083
|
+
};
|
|
4084
|
+
} & {
|
|
4085
|
+
user: {
|
|
4086
|
+
post: {
|
|
4087
|
+
body: {
|
|
4088
|
+
merchantId?: string | undefined;
|
|
4089
|
+
branchId?: string | undefined;
|
|
4090
|
+
kind?: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | undefined;
|
|
4091
|
+
password?: string | undefined;
|
|
4092
|
+
name: string;
|
|
4093
|
+
email: string;
|
|
4094
|
+
permissions: never[];
|
|
4095
|
+
};
|
|
4096
|
+
params: {};
|
|
4097
|
+
query: unknown;
|
|
4098
|
+
headers: unknown;
|
|
4099
|
+
response: {
|
|
4100
|
+
200: {
|
|
4101
|
+
id: string;
|
|
4102
|
+
email: string;
|
|
4103
|
+
name: string;
|
|
4104
|
+
image: string | null | undefined;
|
|
4105
|
+
emailVerified: boolean;
|
|
4106
|
+
createdAt: Date;
|
|
4107
|
+
updatedAt: Date;
|
|
4108
|
+
} | {
|
|
4109
|
+
id: string;
|
|
4110
|
+
email: string;
|
|
4111
|
+
name: string;
|
|
4112
|
+
image: string | null | undefined;
|
|
4113
|
+
emailVerified: boolean;
|
|
4114
|
+
createdAt: Date;
|
|
4115
|
+
updatedAt: Date;
|
|
4116
|
+
};
|
|
4117
|
+
422: {
|
|
4118
|
+
type: "validation";
|
|
4119
|
+
on: string;
|
|
4120
|
+
summary?: string;
|
|
4121
|
+
message?: string;
|
|
4122
|
+
found?: unknown;
|
|
4123
|
+
property?: string;
|
|
4124
|
+
expected?: string;
|
|
4125
|
+
};
|
|
4126
|
+
};
|
|
4127
|
+
};
|
|
4128
|
+
};
|
|
4129
|
+
} & {
|
|
4130
|
+
user: {
|
|
4131
|
+
":id": {
|
|
4132
|
+
put: {
|
|
2782
4133
|
body: {
|
|
4134
|
+
name?: string | undefined;
|
|
4135
|
+
id?: string | undefined;
|
|
4136
|
+
email?: string | undefined;
|
|
4137
|
+
emailVerified?: boolean | undefined;
|
|
4138
|
+
image?: string | null | undefined;
|
|
4139
|
+
createdAt?: Date | undefined;
|
|
4140
|
+
updatedAt?: Date | undefined;
|
|
2783
4141
|
merchantId?: string | undefined;
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
ceoName?: string | null | undefined;
|
|
2791
|
-
googleMapUrl?: string | null | undefined;
|
|
2792
|
-
isNoat?: boolean | undefined;
|
|
2793
|
-
isActive?: boolean | undefined;
|
|
2794
|
-
name: string;
|
|
2795
|
-
email: string | null;
|
|
2796
|
-
phone: string;
|
|
2797
|
-
logoUrl: string;
|
|
2798
|
-
packageId: string;
|
|
4142
|
+
branchId?: string | undefined;
|
|
4143
|
+
kind?: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER" | undefined;
|
|
4144
|
+
permissions: never[];
|
|
4145
|
+
};
|
|
4146
|
+
params: {
|
|
4147
|
+
id: string;
|
|
2799
4148
|
};
|
|
2800
|
-
params: {};
|
|
2801
4149
|
query: unknown;
|
|
2802
4150
|
headers: unknown;
|
|
2803
4151
|
response: {
|
|
2804
4152
|
200: {
|
|
2805
|
-
name: string;
|
|
2806
4153
|
id: string;
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
4154
|
+
name: string;
|
|
4155
|
+
email: string;
|
|
4156
|
+
emailVerified: boolean;
|
|
4157
|
+
image: string | null;
|
|
4158
|
+
createdAt: Date;
|
|
4159
|
+
updatedAt: Date;
|
|
2810
4160
|
merchantId: string;
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
phone: string;
|
|
2814
|
-
logoUrl: string;
|
|
2815
|
-
province: string | null;
|
|
2816
|
-
district: string | null;
|
|
2817
|
-
khoroo: string | null;
|
|
2818
|
-
street: string | null;
|
|
2819
|
-
socialUrls: string[] | null;
|
|
2820
|
-
ceoName: string | null;
|
|
2821
|
-
googleMapUrl: string | null;
|
|
2822
|
-
isNoat: boolean;
|
|
2823
|
-
isActive: boolean;
|
|
2824
|
-
packageId: string;
|
|
4161
|
+
branchId: string;
|
|
4162
|
+
kind: "ADMIN" | "COMPANY_ADMIN" | "CUSTOMER";
|
|
2825
4163
|
};
|
|
4164
|
+
404: "Хэрэглэгч олдсонгүй.";
|
|
2826
4165
|
422: {
|
|
2827
4166
|
type: "validation";
|
|
2828
4167
|
on: string;
|
|
@@ -2835,106 +4174,19 @@ declare const app: Elysia<"", {
|
|
|
2835
4174
|
};
|
|
2836
4175
|
};
|
|
2837
4176
|
};
|
|
2838
|
-
} & {
|
|
2839
|
-
branch: {
|
|
2840
|
-
":id": {
|
|
2841
|
-
put: {
|
|
2842
|
-
body: {
|
|
2843
|
-
name?: string | undefined;
|
|
2844
|
-
email?: string | null | undefined;
|
|
2845
|
-
merchantId?: string | undefined;
|
|
2846
|
-
regNumber?: string | null | undefined;
|
|
2847
|
-
phone?: string | undefined;
|
|
2848
|
-
logoUrl?: string | undefined;
|
|
2849
|
-
province?: string | null | undefined;
|
|
2850
|
-
district?: string | null | undefined;
|
|
2851
|
-
khoroo?: string | null | undefined;
|
|
2852
|
-
street?: string | null | undefined;
|
|
2853
|
-
socialUrls?: string[] | null | undefined;
|
|
2854
|
-
ceoName?: string | null | undefined;
|
|
2855
|
-
googleMapUrl?: string | null | undefined;
|
|
2856
|
-
isNoat?: boolean | undefined;
|
|
2857
|
-
isActive?: boolean | undefined;
|
|
2858
|
-
packageId?: string | undefined;
|
|
2859
|
-
};
|
|
2860
|
-
params: {
|
|
2861
|
-
id: string;
|
|
2862
|
-
};
|
|
2863
|
-
query: unknown;
|
|
2864
|
-
headers: unknown;
|
|
2865
|
-
response: {
|
|
2866
|
-
200: {
|
|
2867
|
-
name: string;
|
|
2868
|
-
id: string;
|
|
2869
|
-
email: string | null;
|
|
2870
|
-
createdAt: string;
|
|
2871
|
-
updatedAt: string;
|
|
2872
|
-
merchantId: string;
|
|
2873
|
-
deletedAt: string | null;
|
|
2874
|
-
regNumber: string | null;
|
|
2875
|
-
phone: string;
|
|
2876
|
-
logoUrl: string;
|
|
2877
|
-
province: string | null;
|
|
2878
|
-
district: string | null;
|
|
2879
|
-
khoroo: string | null;
|
|
2880
|
-
street: string | null;
|
|
2881
|
-
socialUrls: string[] | null;
|
|
2882
|
-
ceoName: string | null;
|
|
2883
|
-
googleMapUrl: string | null;
|
|
2884
|
-
isNoat: boolean;
|
|
2885
|
-
isActive: boolean;
|
|
2886
|
-
packageId: string;
|
|
2887
|
-
};
|
|
2888
|
-
404: string;
|
|
2889
|
-
422: {
|
|
2890
|
-
type: "validation";
|
|
2891
|
-
on: string;
|
|
2892
|
-
summary?: string;
|
|
2893
|
-
message?: string;
|
|
2894
|
-
found?: unknown;
|
|
2895
|
-
property?: string;
|
|
2896
|
-
expected?: string;
|
|
2897
|
-
};
|
|
2898
|
-
};
|
|
2899
|
-
};
|
|
2900
|
-
};
|
|
2901
|
-
};
|
|
2902
|
-
} & {
|
|
2903
|
-
branch: {
|
|
2904
|
-
":id": {
|
|
2905
|
-
delete: {
|
|
2906
|
-
body: unknown;
|
|
2907
|
-
params: {
|
|
2908
|
-
id: string;
|
|
2909
|
-
};
|
|
2910
|
-
query: unknown;
|
|
2911
|
-
headers: unknown;
|
|
2912
|
-
response: {
|
|
2913
|
-
200: undefined;
|
|
2914
|
-
404: string;
|
|
2915
|
-
422: {
|
|
2916
|
-
type: "validation";
|
|
2917
|
-
on: string;
|
|
2918
|
-
summary?: string;
|
|
2919
|
-
message?: string;
|
|
2920
|
-
found?: unknown;
|
|
2921
|
-
property?: string;
|
|
2922
|
-
expected?: string;
|
|
2923
|
-
};
|
|
2924
|
-
};
|
|
2925
|
-
};
|
|
2926
|
-
};
|
|
2927
|
-
};
|
|
2928
4177
|
};
|
|
2929
|
-
}
|
|
2930
|
-
|
|
2931
|
-
|
|
4178
|
+
};
|
|
4179
|
+
} & {
|
|
4180
|
+
api: {
|
|
4181
|
+
warehouse: {
|
|
4182
|
+
warehouse: {};
|
|
2932
4183
|
} & {
|
|
2933
|
-
|
|
4184
|
+
warehouse: {
|
|
2934
4185
|
get: {
|
|
2935
4186
|
body: unknown;
|
|
2936
4187
|
params: {};
|
|
2937
4188
|
query: {
|
|
4189
|
+
branchId?: string | undefined;
|
|
2938
4190
|
pagination: {
|
|
2939
4191
|
size: number;
|
|
2940
4192
|
page: number;
|
|
@@ -2945,17 +4197,16 @@ declare const app: Elysia<"", {
|
|
|
2945
4197
|
200: {
|
|
2946
4198
|
totalCount: number;
|
|
2947
4199
|
totalPage: number;
|
|
2948
|
-
result:
|
|
4200
|
+
result: {
|
|
4201
|
+
companyId: string;
|
|
4202
|
+
branchId: string | null;
|
|
2949
4203
|
name: string;
|
|
4204
|
+
description: string | null;
|
|
2950
4205
|
id: string;
|
|
2951
4206
|
createdAt: string;
|
|
2952
4207
|
updatedAt: string;
|
|
2953
4208
|
deletedAt: string | null;
|
|
2954
|
-
|
|
2955
|
-
price: number;
|
|
2956
|
-
} & {
|
|
2957
|
-
totalCount: number;
|
|
2958
|
-
}, "totalCount">[];
|
|
4209
|
+
}[];
|
|
2959
4210
|
};
|
|
2960
4211
|
422: {
|
|
2961
4212
|
type: "validation";
|
|
@@ -2970,12 +4221,12 @@ declare const app: Elysia<"", {
|
|
|
2970
4221
|
};
|
|
2971
4222
|
};
|
|
2972
4223
|
} & {
|
|
2973
|
-
|
|
4224
|
+
warehouse: {
|
|
2974
4225
|
post: {
|
|
2975
4226
|
body: {
|
|
4227
|
+
branchId?: string | null | undefined;
|
|
4228
|
+
description?: string | null | undefined;
|
|
2976
4229
|
name: string;
|
|
2977
|
-
rowCount: number;
|
|
2978
|
-
price: number;
|
|
2979
4230
|
};
|
|
2980
4231
|
params: {};
|
|
2981
4232
|
query: unknown;
|
|
@@ -2986,9 +4237,10 @@ declare const app: Elysia<"", {
|
|
|
2986
4237
|
id: string;
|
|
2987
4238
|
createdAt: string;
|
|
2988
4239
|
updatedAt: string;
|
|
4240
|
+
branchId: string | null;
|
|
2989
4241
|
deletedAt: string | null;
|
|
2990
|
-
|
|
2991
|
-
|
|
4242
|
+
description: string | null;
|
|
4243
|
+
companyId: string;
|
|
2992
4244
|
};
|
|
2993
4245
|
422: {
|
|
2994
4246
|
type: "validation";
|
|
@@ -3003,13 +4255,12 @@ declare const app: Elysia<"", {
|
|
|
3003
4255
|
};
|
|
3004
4256
|
};
|
|
3005
4257
|
} & {
|
|
3006
|
-
|
|
4258
|
+
warehouse: {
|
|
3007
4259
|
":id": {
|
|
3008
4260
|
put: {
|
|
3009
4261
|
body: {
|
|
3010
4262
|
name?: string | undefined;
|
|
3011
|
-
|
|
3012
|
-
price?: number | undefined;
|
|
4263
|
+
description?: string | null | undefined;
|
|
3013
4264
|
};
|
|
3014
4265
|
params: {
|
|
3015
4266
|
id: string;
|
|
@@ -3018,15 +4269,16 @@ declare const app: Elysia<"", {
|
|
|
3018
4269
|
headers: unknown;
|
|
3019
4270
|
response: {
|
|
3020
4271
|
200: {
|
|
4272
|
+
companyId: string;
|
|
4273
|
+
branchId: string | null;
|
|
3021
4274
|
name: string;
|
|
4275
|
+
description: string | null;
|
|
3022
4276
|
id: string;
|
|
3023
4277
|
createdAt: string;
|
|
3024
4278
|
updatedAt: string;
|
|
3025
4279
|
deletedAt: string | null;
|
|
3026
|
-
rowCount: number;
|
|
3027
|
-
price: number;
|
|
3028
4280
|
};
|
|
3029
|
-
404:
|
|
4281
|
+
404: "Агуулах олдсонгүй.";
|
|
3030
4282
|
422: {
|
|
3031
4283
|
type: "validation";
|
|
3032
4284
|
on: string;
|
|
@@ -3041,7 +4293,7 @@ declare const app: Elysia<"", {
|
|
|
3041
4293
|
};
|
|
3042
4294
|
};
|
|
3043
4295
|
} & {
|
|
3044
|
-
|
|
4296
|
+
warehouse: {
|
|
3045
4297
|
":id": {
|
|
3046
4298
|
delete: {
|
|
3047
4299
|
body: unknown;
|
|
@@ -3051,8 +4303,7 @@ declare const app: Elysia<"", {
|
|
|
3051
4303
|
query: unknown;
|
|
3052
4304
|
headers: unknown;
|
|
3053
4305
|
response: {
|
|
3054
|
-
200:
|
|
3055
|
-
404: string;
|
|
4306
|
+
200: void;
|
|
3056
4307
|
422: {
|
|
3057
4308
|
type: "validation";
|
|
3058
4309
|
on: string;
|
|
@@ -3067,51 +4318,21 @@ declare const app: Elysia<"", {
|
|
|
3067
4318
|
};
|
|
3068
4319
|
};
|
|
3069
4320
|
};
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
permission: {
|
|
3074
|
-
get: {
|
|
3075
|
-
body: unknown;
|
|
3076
|
-
params: {};
|
|
3077
|
-
query: unknown;
|
|
3078
|
-
headers: unknown;
|
|
3079
|
-
response: {
|
|
3080
|
-
200: {
|
|
3081
|
-
readonly code: import("./lib/permissions").PermissionCode;
|
|
3082
|
-
description: string;
|
|
3083
|
-
requiresAdmin?: boolean;
|
|
3084
|
-
}[];
|
|
3085
|
-
};
|
|
3086
|
-
};
|
|
3087
|
-
} & {
|
|
3088
|
-
post: {
|
|
3089
|
-
body: {
|
|
3090
|
-
userId: string;
|
|
3091
|
-
permissions: string[];
|
|
3092
|
-
};
|
|
3093
|
-
params: {};
|
|
3094
|
-
query: unknown;
|
|
3095
|
-
headers: unknown;
|
|
3096
|
-
response: {
|
|
3097
|
-
200: void;
|
|
3098
|
-
422: {
|
|
3099
|
-
type: "validation";
|
|
3100
|
-
on: string;
|
|
3101
|
-
summary?: string;
|
|
3102
|
-
message?: string;
|
|
3103
|
-
found?: unknown;
|
|
3104
|
-
property?: string;
|
|
3105
|
-
expected?: string;
|
|
3106
|
-
};
|
|
3107
|
-
};
|
|
3108
|
-
};
|
|
4321
|
+
} & {
|
|
4322
|
+
warehouse: {
|
|
4323
|
+
product: {};
|
|
3109
4324
|
} & {
|
|
3110
|
-
|
|
4325
|
+
product: {
|
|
3111
4326
|
get: {
|
|
3112
4327
|
body: unknown;
|
|
3113
4328
|
params: {};
|
|
3114
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;
|
|
3115
4336
|
pagination: {
|
|
3116
4337
|
size: number;
|
|
3117
4338
|
page: number;
|
|
@@ -3123,13 +4344,18 @@ declare const app: Elysia<"", {
|
|
|
3123
4344
|
totalCount: number;
|
|
3124
4345
|
totalPage: number;
|
|
3125
4346
|
result: {
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
description: string;
|
|
3129
|
-
requiresAdmin?: boolean;
|
|
3130
|
-
}[];
|
|
3131
|
-
totalCount: number;
|
|
4347
|
+
supplierId: string;
|
|
4348
|
+
productId: string | null;
|
|
3132
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;
|
|
3133
4359
|
id: string;
|
|
3134
4360
|
createdAt: string;
|
|
3135
4361
|
updatedAt: string;
|
|
@@ -3149,23 +4375,136 @@ declare const app: Elysia<"", {
|
|
|
3149
4375
|
};
|
|
3150
4376
|
};
|
|
3151
4377
|
} & {
|
|
3152
|
-
|
|
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: {
|
|
3153
4486
|
post: {
|
|
3154
4487
|
body: {
|
|
3155
|
-
|
|
3156
|
-
|
|
4488
|
+
quantity?: number | undefined;
|
|
4489
|
+
shelfNumber?: string | null | undefined;
|
|
4490
|
+
safetyStock: number;
|
|
4491
|
+
productId: string;
|
|
4492
|
+
warehouseId: string;
|
|
3157
4493
|
};
|
|
3158
4494
|
params: {};
|
|
3159
4495
|
query: unknown;
|
|
3160
4496
|
headers: unknown;
|
|
3161
4497
|
response: {
|
|
3162
4498
|
200: {
|
|
3163
|
-
name: string;
|
|
3164
4499
|
id: string;
|
|
3165
4500
|
createdAt: string;
|
|
3166
4501
|
updatedAt: string;
|
|
3167
4502
|
deletedAt: string | null;
|
|
3168
|
-
|
|
4503
|
+
quantity: number;
|
|
4504
|
+
safetyStock: number;
|
|
4505
|
+
shelfNumber: string | null;
|
|
4506
|
+
productId: string;
|
|
4507
|
+
warehouseId: string;
|
|
3169
4508
|
};
|
|
3170
4509
|
422: {
|
|
3171
4510
|
type: "validation";
|
|
@@ -3180,28 +4519,25 @@ declare const app: Elysia<"", {
|
|
|
3180
4519
|
};
|
|
3181
4520
|
};
|
|
3182
4521
|
} & {
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
4522
|
+
item: {
|
|
4523
|
+
many: {
|
|
4524
|
+
post: {
|
|
3186
4525
|
body: {
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
}
|
|
4526
|
+
quantity?: number | undefined;
|
|
4527
|
+
shelfNumber?: string | null | undefined;
|
|
4528
|
+
safetyStock: number;
|
|
4529
|
+
productId: string;
|
|
4530
|
+
warehouseId: string;
|
|
4531
|
+
}[];
|
|
4532
|
+
params: {};
|
|
3193
4533
|
query: unknown;
|
|
3194
4534
|
headers: unknown;
|
|
3195
4535
|
response: {
|
|
3196
|
-
200: {
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
deletedAt: string | null;
|
|
3202
|
-
permissions: string[];
|
|
3203
|
-
};
|
|
3204
|
-
404: string;
|
|
4536
|
+
200: AsyncGenerator<{
|
|
4537
|
+
percent: number;
|
|
4538
|
+
count: number;
|
|
4539
|
+
total: number;
|
|
4540
|
+
}, void, unknown>;
|
|
3205
4541
|
422: {
|
|
3206
4542
|
type: "validation";
|
|
3207
4543
|
on: string;
|
|
@@ -3216,18 +4552,34 @@ declare const app: Elysia<"", {
|
|
|
3216
4552
|
};
|
|
3217
4553
|
};
|
|
3218
4554
|
} & {
|
|
3219
|
-
|
|
4555
|
+
item: {
|
|
3220
4556
|
":id": {
|
|
3221
|
-
|
|
3222
|
-
body:
|
|
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
|
+
};
|
|
3223
4565
|
params: {
|
|
3224
4566
|
id: string;
|
|
3225
|
-
}
|
|
4567
|
+
};
|
|
3226
4568
|
query: unknown;
|
|
3227
4569
|
headers: unknown;
|
|
3228
4570
|
response: {
|
|
3229
|
-
200:
|
|
3230
|
-
|
|
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: "Агуулахын бараа олдсонгүй.";
|
|
3231
4583
|
422: {
|
|
3232
4584
|
type: "validation";
|
|
3233
4585
|
on: string;
|
|
@@ -3243,147 +4595,6 @@ declare const app: Elysia<"", {
|
|
|
3243
4595
|
};
|
|
3244
4596
|
};
|
|
3245
4597
|
};
|
|
3246
|
-
} & {
|
|
3247
|
-
api: {
|
|
3248
|
-
user: {};
|
|
3249
|
-
} & {
|
|
3250
|
-
user: {
|
|
3251
|
-
get: {
|
|
3252
|
-
body: unknown;
|
|
3253
|
-
params: {};
|
|
3254
|
-
query: {
|
|
3255
|
-
branchId?: string | undefined;
|
|
3256
|
-
pagination: {
|
|
3257
|
-
size: number;
|
|
3258
|
-
page: number;
|
|
3259
|
-
};
|
|
3260
|
-
};
|
|
3261
|
-
headers: unknown;
|
|
3262
|
-
response: {
|
|
3263
|
-
200: {
|
|
3264
|
-
totalCount: number;
|
|
3265
|
-
totalPage: number;
|
|
3266
|
-
result: {
|
|
3267
|
-
permissions: {
|
|
3268
|
-
readonly code: import("./lib/permissions").PermissionCode;
|
|
3269
|
-
description: string;
|
|
3270
|
-
requiresAdmin?: boolean;
|
|
3271
|
-
}[];
|
|
3272
|
-
id: string;
|
|
3273
|
-
name: string;
|
|
3274
|
-
email: string;
|
|
3275
|
-
emailVerified: boolean;
|
|
3276
|
-
image: string | null;
|
|
3277
|
-
createdAt: Date;
|
|
3278
|
-
updatedAt: Date;
|
|
3279
|
-
merchantId: string;
|
|
3280
|
-
branchId: string;
|
|
3281
|
-
}[];
|
|
3282
|
-
};
|
|
3283
|
-
422: {
|
|
3284
|
-
type: "validation";
|
|
3285
|
-
on: string;
|
|
3286
|
-
summary?: string;
|
|
3287
|
-
message?: string;
|
|
3288
|
-
found?: unknown;
|
|
3289
|
-
property?: string;
|
|
3290
|
-
expected?: string;
|
|
3291
|
-
};
|
|
3292
|
-
};
|
|
3293
|
-
};
|
|
3294
|
-
};
|
|
3295
|
-
} & {
|
|
3296
|
-
user: {
|
|
3297
|
-
post: {
|
|
3298
|
-
body: {
|
|
3299
|
-
merchantId?: string | undefined;
|
|
3300
|
-
branchId?: string | undefined;
|
|
3301
|
-
password?: string | undefined;
|
|
3302
|
-
name: string;
|
|
3303
|
-
email: string;
|
|
3304
|
-
permissions: never[];
|
|
3305
|
-
};
|
|
3306
|
-
params: {};
|
|
3307
|
-
query: unknown;
|
|
3308
|
-
headers: unknown;
|
|
3309
|
-
response: {
|
|
3310
|
-
200: {
|
|
3311
|
-
id: string;
|
|
3312
|
-
email: string;
|
|
3313
|
-
name: string;
|
|
3314
|
-
image: string | null | undefined;
|
|
3315
|
-
emailVerified: boolean;
|
|
3316
|
-
createdAt: Date;
|
|
3317
|
-
updatedAt: Date;
|
|
3318
|
-
} | {
|
|
3319
|
-
id: string;
|
|
3320
|
-
email: string;
|
|
3321
|
-
name: string;
|
|
3322
|
-
image: string | null | undefined;
|
|
3323
|
-
emailVerified: boolean;
|
|
3324
|
-
createdAt: Date;
|
|
3325
|
-
updatedAt: Date;
|
|
3326
|
-
};
|
|
3327
|
-
422: {
|
|
3328
|
-
type: "validation";
|
|
3329
|
-
on: string;
|
|
3330
|
-
summary?: string;
|
|
3331
|
-
message?: string;
|
|
3332
|
-
found?: unknown;
|
|
3333
|
-
property?: string;
|
|
3334
|
-
expected?: string;
|
|
3335
|
-
};
|
|
3336
|
-
};
|
|
3337
|
-
};
|
|
3338
|
-
};
|
|
3339
|
-
} & {
|
|
3340
|
-
user: {
|
|
3341
|
-
":id": {
|
|
3342
|
-
put: {
|
|
3343
|
-
body: {
|
|
3344
|
-
name?: string | undefined;
|
|
3345
|
-
id?: string | undefined;
|
|
3346
|
-
email?: string | undefined;
|
|
3347
|
-
emailVerified?: boolean | undefined;
|
|
3348
|
-
image?: string | null | undefined;
|
|
3349
|
-
createdAt?: Date | undefined;
|
|
3350
|
-
updatedAt?: Date | undefined;
|
|
3351
|
-
merchantId?: string | undefined;
|
|
3352
|
-
branchId?: string | undefined;
|
|
3353
|
-
permissions: never[];
|
|
3354
|
-
};
|
|
3355
|
-
params: {
|
|
3356
|
-
id: string;
|
|
3357
|
-
};
|
|
3358
|
-
query: unknown;
|
|
3359
|
-
headers: unknown;
|
|
3360
|
-
response: {
|
|
3361
|
-
200: {
|
|
3362
|
-
id: string;
|
|
3363
|
-
name: string;
|
|
3364
|
-
email: string;
|
|
3365
|
-
emailVerified: boolean;
|
|
3366
|
-
image: string | null;
|
|
3367
|
-
createdAt: Date;
|
|
3368
|
-
updatedAt: Date;
|
|
3369
|
-
merchantId: string;
|
|
3370
|
-
branchId: string;
|
|
3371
|
-
};
|
|
3372
|
-
404: "Хэрэглэгч олдсонгүй.";
|
|
3373
|
-
422: {
|
|
3374
|
-
type: "validation";
|
|
3375
|
-
on: string;
|
|
3376
|
-
summary?: string;
|
|
3377
|
-
message?: string;
|
|
3378
|
-
found?: unknown;
|
|
3379
|
-
property?: string;
|
|
3380
|
-
expected?: string;
|
|
3381
|
-
};
|
|
3382
|
-
};
|
|
3383
|
-
};
|
|
3384
|
-
};
|
|
3385
|
-
};
|
|
3386
|
-
};
|
|
3387
4598
|
}, {
|
|
3388
4599
|
derive: {};
|
|
3389
4600
|
resolve: {};
|