@customafk/lunas-api-sdk 0.0.1 → 0.0.3
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1694 -1684
- package/dist/index.d.mts +1694 -1684
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Treaty } from "@elysiajs/eden";
|
|
2
2
|
|
|
3
|
-
//#region src/types.d.ts
|
|
3
|
+
//#region ../app/src/types.d.ts
|
|
4
4
|
type TResponsePagination = {
|
|
5
5
|
page: number;
|
|
6
6
|
limit: number;
|
|
@@ -24,278 +24,49 @@ type TResponseMeta = {
|
|
|
24
24
|
pagination?: TResponsePagination;
|
|
25
25
|
};
|
|
26
26
|
//#endregion
|
|
27
|
+
//#region ../app/src/shared/constants/enums.d.ts
|
|
28
|
+
declare enum EMediaEntityType {
|
|
29
|
+
PRODUCT = 'product',
|
|
30
|
+
EXTRA_PRODUCT = 'extra_product',
|
|
31
|
+
VARIANT = 'variant',
|
|
32
|
+
CATEGORY = 'category',
|
|
33
|
+
BRAND = 'brand',
|
|
34
|
+
BLOG_POST = 'blog_post',
|
|
35
|
+
SERIES = 'series',
|
|
36
|
+
}
|
|
37
|
+
declare enum EMimeType {
|
|
38
|
+
IMAGE_WEBP = 'image/webp',
|
|
39
|
+
IMAGE_JPEG = 'image/jpeg',
|
|
40
|
+
IMAGE_JPG = 'image/jpg',
|
|
41
|
+
IMAGE_PNG = 'image/png',
|
|
42
|
+
IMAGE_GIF = 'image/gif',
|
|
43
|
+
IMAGE_AVIF = 'image/avif',
|
|
44
|
+
IMAGE_SVG = 'image/svg+xml',
|
|
45
|
+
}
|
|
46
|
+
declare enum ERole {
|
|
47
|
+
SUPER_ADMIN = 'SUPER_ADMIN',
|
|
48
|
+
ADMIN = 'ADMIN',
|
|
49
|
+
MODERATOR = 'MODERATOR',
|
|
50
|
+
STAFF = 'STAFF',
|
|
51
|
+
EDITOR = 'EDITOR',
|
|
52
|
+
VIEWER = 'VIEWER',
|
|
53
|
+
USER = 'USER',
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
27
56
|
//#region src/utils.d.ts
|
|
28
57
|
type TUser = Treaty.Data<Awaited<ReturnType<Treaty.Create<AppType>['admin']['v1']['auth']['me']['get']>>>['data'];
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
private static _getMeTask;
|
|
42
|
-
private static _refreshTokenTask;
|
|
43
|
-
private static _logoutTask;
|
|
44
|
-
private static _client;
|
|
45
|
-
static client: Treaty.Create<AppType>;
|
|
46
|
-
static _status: 'LOGGED' | 'INITIAL' | 'LOGGING';
|
|
47
|
-
static _user: TUser;
|
|
48
|
-
private static _getMe;
|
|
49
|
-
private static _refreshToken;
|
|
50
|
-
private static _logout;
|
|
51
|
-
constructor({
|
|
52
|
-
baseURL,
|
|
53
|
-
config,
|
|
54
|
-
listeners
|
|
55
|
-
}: Config);
|
|
56
|
-
isLogged(): boolean;
|
|
57
|
-
isInitial(): boolean;
|
|
58
|
-
getUser(): {
|
|
59
|
-
uuid: string | null;
|
|
60
|
-
email: string;
|
|
61
|
-
createdAt: Date | null;
|
|
62
|
-
updatedAt: Date | null;
|
|
63
|
-
username: string;
|
|
64
|
-
role: string;
|
|
65
|
-
networks: {
|
|
66
|
-
createdAt: Date | null;
|
|
67
|
-
updatedAt: Date | null;
|
|
68
|
-
id: number;
|
|
69
|
-
provider: string;
|
|
70
|
-
providerId: string;
|
|
71
|
-
}[];
|
|
72
|
-
profile: {
|
|
73
|
-
createdAt: Date | null;
|
|
74
|
-
updatedAt: Date | null;
|
|
75
|
-
id: number;
|
|
76
|
-
fullname: string;
|
|
77
|
-
phoneNumber: string | null;
|
|
78
|
-
bio: string | null;
|
|
79
|
-
gender: number | null;
|
|
80
|
-
dateOfBirth: Date | null;
|
|
81
|
-
} | null;
|
|
82
|
-
customerAddresses: {
|
|
83
|
-
createdAt: Date | null;
|
|
84
|
-
updatedAt: Date | null;
|
|
85
|
-
id: number;
|
|
86
|
-
fullname: string;
|
|
87
|
-
phoneNumber: string;
|
|
88
|
-
street: string;
|
|
89
|
-
isDefault: boolean | null;
|
|
90
|
-
province: {
|
|
91
|
-
name: string;
|
|
92
|
-
type: string;
|
|
93
|
-
id: string | null;
|
|
94
|
-
};
|
|
95
|
-
ward: {
|
|
96
|
-
name: string;
|
|
97
|
-
type: string;
|
|
98
|
-
id: string | null;
|
|
99
|
-
districtId: string | null;
|
|
100
|
-
};
|
|
101
|
-
district: {
|
|
102
|
-
name: string;
|
|
103
|
-
type: string;
|
|
104
|
-
id: string | null;
|
|
105
|
-
provinceId: string | null;
|
|
106
|
-
};
|
|
107
|
-
}[];
|
|
108
|
-
} | null;
|
|
109
|
-
getClient(): {
|
|
110
|
-
admin: {
|
|
111
|
-
v1: {
|
|
112
|
-
auth: {
|
|
113
|
-
get: (options?: {
|
|
114
|
-
headers?: Record<string, unknown> | undefined;
|
|
115
|
-
query?: Record<string, unknown> | undefined;
|
|
116
|
-
fetch?: RequestInit | undefined;
|
|
117
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
118
|
-
200: string;
|
|
119
|
-
}>>;
|
|
120
|
-
me: {
|
|
121
|
-
get: (options?: {
|
|
122
|
-
headers?: {} | undefined;
|
|
123
|
-
query?: {} | undefined;
|
|
124
|
-
fetch?: RequestInit | undefined;
|
|
125
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
126
|
-
200: {
|
|
127
|
-
success: false;
|
|
128
|
-
statusCode: number;
|
|
129
|
-
data: null;
|
|
130
|
-
message: string;
|
|
131
|
-
error: void 0;
|
|
132
|
-
meta: void 0;
|
|
133
|
-
} | {
|
|
134
|
-
success: true;
|
|
135
|
-
statusCode: number;
|
|
136
|
-
data: undefined;
|
|
137
|
-
message: null;
|
|
138
|
-
error: null;
|
|
139
|
-
meta: void 0;
|
|
140
|
-
} | {
|
|
141
|
-
success: true;
|
|
142
|
-
statusCode: number;
|
|
143
|
-
data: {
|
|
144
|
-
uuid: string | null;
|
|
145
|
-
email: string;
|
|
146
|
-
createdAt: Date | null;
|
|
147
|
-
updatedAt: Date | null;
|
|
148
|
-
username: string;
|
|
149
|
-
role: string;
|
|
150
|
-
networks: {
|
|
151
|
-
createdAt: Date | null;
|
|
152
|
-
updatedAt: Date | null;
|
|
153
|
-
id: number;
|
|
154
|
-
provider: string;
|
|
155
|
-
providerId: string;
|
|
156
|
-
}[];
|
|
157
|
-
profile: {
|
|
158
|
-
createdAt: Date | null;
|
|
159
|
-
updatedAt: Date | null;
|
|
160
|
-
id: number;
|
|
161
|
-
fullname: string;
|
|
162
|
-
phoneNumber: string | null;
|
|
163
|
-
bio: string | null;
|
|
164
|
-
gender: number | null;
|
|
165
|
-
dateOfBirth: Date | null;
|
|
166
|
-
} | null;
|
|
167
|
-
customerAddresses: {
|
|
168
|
-
createdAt: Date | null;
|
|
169
|
-
updatedAt: Date | null;
|
|
170
|
-
id: number;
|
|
171
|
-
fullname: string;
|
|
172
|
-
phoneNumber: string;
|
|
173
|
-
street: string;
|
|
174
|
-
isDefault: boolean | null;
|
|
175
|
-
province: {
|
|
176
|
-
name: string;
|
|
177
|
-
type: string;
|
|
178
|
-
id: string | null;
|
|
179
|
-
};
|
|
180
|
-
ward: {
|
|
181
|
-
name: string;
|
|
182
|
-
type: string;
|
|
183
|
-
id: string | null;
|
|
184
|
-
districtId: string | null;
|
|
185
|
-
};
|
|
186
|
-
district: {
|
|
187
|
-
name: string;
|
|
188
|
-
type: string;
|
|
189
|
-
id: string | null;
|
|
190
|
-
provinceId: string | null;
|
|
191
|
-
};
|
|
192
|
-
}[];
|
|
193
|
-
};
|
|
194
|
-
message: null;
|
|
195
|
-
error: null;
|
|
196
|
-
meta: void 0;
|
|
197
|
-
};
|
|
198
|
-
}>>;
|
|
199
|
-
};
|
|
200
|
-
"refresh-token": {
|
|
201
|
-
get: (options?: {
|
|
202
|
-
headers?: {} | undefined;
|
|
203
|
-
query?: {} | undefined;
|
|
204
|
-
fetch?: RequestInit | undefined;
|
|
205
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
206
|
-
200: {
|
|
207
|
-
success: true;
|
|
208
|
-
statusCode: number;
|
|
209
|
-
data: null;
|
|
210
|
-
message: string;
|
|
211
|
-
error: null;
|
|
212
|
-
meta: void 0;
|
|
213
|
-
} | {
|
|
214
|
-
success: false;
|
|
215
|
-
statusCode: number;
|
|
216
|
-
data: null;
|
|
217
|
-
message: string;
|
|
218
|
-
error: void 0;
|
|
219
|
-
meta: void 0;
|
|
220
|
-
};
|
|
221
|
-
}>>;
|
|
222
|
-
};
|
|
223
|
-
login: {
|
|
224
|
-
post: (body: {
|
|
225
|
-
email: string;
|
|
226
|
-
password: string;
|
|
227
|
-
}, options?: {
|
|
228
|
-
headers?: {} | undefined;
|
|
229
|
-
query?: {} | undefined;
|
|
230
|
-
fetch?: RequestInit | undefined;
|
|
231
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
232
|
-
200: {
|
|
233
|
-
success: true;
|
|
234
|
-
statusCode: number;
|
|
235
|
-
data: null;
|
|
236
|
-
message: string;
|
|
237
|
-
error: null;
|
|
238
|
-
meta: void 0;
|
|
239
|
-
} | {
|
|
240
|
-
success: false;
|
|
241
|
-
statusCode: number;
|
|
242
|
-
data: null;
|
|
243
|
-
message: string;
|
|
244
|
-
error: void 0;
|
|
245
|
-
meta: void 0;
|
|
246
|
-
};
|
|
247
|
-
422: {
|
|
248
|
-
type: "validation";
|
|
249
|
-
on: string;
|
|
250
|
-
summary?: string;
|
|
251
|
-
message?: string;
|
|
252
|
-
found?: unknown;
|
|
253
|
-
property?: string;
|
|
254
|
-
expected?: string;
|
|
255
|
-
};
|
|
256
|
-
}>>;
|
|
257
|
-
};
|
|
258
|
-
logout: {
|
|
259
|
-
delete: (body?: {} | undefined, options?: {
|
|
260
|
-
headers?: {} | undefined;
|
|
261
|
-
query?: {} | undefined;
|
|
262
|
-
fetch?: RequestInit | undefined;
|
|
263
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
264
|
-
200: {
|
|
265
|
-
success: true;
|
|
266
|
-
statusCode: number;
|
|
267
|
-
data: null;
|
|
268
|
-
message: string;
|
|
269
|
-
error: null;
|
|
270
|
-
meta: void 0;
|
|
271
|
-
} | {
|
|
272
|
-
success: false;
|
|
273
|
-
statusCode: number;
|
|
274
|
-
data: null;
|
|
275
|
-
message: string;
|
|
276
|
-
error: void 0;
|
|
277
|
-
meta: void 0;
|
|
278
|
-
} | {
|
|
279
|
-
success: false;
|
|
280
|
-
statusCode: number;
|
|
281
|
-
data: null;
|
|
282
|
-
message: string;
|
|
283
|
-
error: void 0;
|
|
284
|
-
meta: void 0;
|
|
285
|
-
} | {
|
|
286
|
-
success: true;
|
|
287
|
-
statusCode: number;
|
|
288
|
-
data: undefined;
|
|
289
|
-
message: null;
|
|
290
|
-
error: null;
|
|
291
|
-
meta: void 0;
|
|
292
|
-
};
|
|
293
|
-
}>>;
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
|
-
account: ((params: {
|
|
297
|
-
uuid: string | number;
|
|
298
|
-
}) => {
|
|
58
|
+
declare const _: () => {
|
|
59
|
+
admin: {
|
|
60
|
+
v1: {
|
|
61
|
+
auth: {
|
|
62
|
+
get: (options?: {
|
|
63
|
+
headers?: Record<string, unknown> | undefined;
|
|
64
|
+
query?: Record<string, unknown> | undefined;
|
|
65
|
+
fetch?: RequestInit | undefined;
|
|
66
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
67
|
+
200: string;
|
|
68
|
+
}>>;
|
|
69
|
+
me: {
|
|
299
70
|
get: (options?: {
|
|
300
71
|
headers?: {} | undefined;
|
|
301
72
|
query?: {} | undefined;
|
|
@@ -306,8 +77,15 @@ declare class ClientApi {
|
|
|
306
77
|
statusCode: number;
|
|
307
78
|
data: null;
|
|
308
79
|
message: string;
|
|
309
|
-
error:
|
|
310
|
-
meta:
|
|
80
|
+
error: TResponseError;
|
|
81
|
+
meta: TResponseMeta;
|
|
82
|
+
} | {
|
|
83
|
+
success: true;
|
|
84
|
+
statusCode: number;
|
|
85
|
+
data: undefined;
|
|
86
|
+
message: null;
|
|
87
|
+
error: null;
|
|
88
|
+
meta: TResponseMeta;
|
|
311
89
|
} | {
|
|
312
90
|
success: true;
|
|
313
91
|
statusCode: number;
|
|
@@ -318,7 +96,6 @@ declare class ClientApi {
|
|
|
318
96
|
updatedAt: Date | null;
|
|
319
97
|
username: string;
|
|
320
98
|
role: string;
|
|
321
|
-
isActive: boolean | null;
|
|
322
99
|
networks: {
|
|
323
100
|
createdAt: Date | null;
|
|
324
101
|
updatedAt: Date | null;
|
|
@@ -334,101 +111,87 @@ declare class ClientApi {
|
|
|
334
111
|
phoneNumber: string | null;
|
|
335
112
|
bio: string | null;
|
|
336
113
|
gender: number | null;
|
|
337
|
-
socialLinks: unknown;
|
|
338
114
|
dateOfBirth: Date | null;
|
|
339
115
|
} | null;
|
|
116
|
+
customerAddresses: {
|
|
117
|
+
createdAt: Date | null;
|
|
118
|
+
updatedAt: Date | null;
|
|
119
|
+
id: number;
|
|
120
|
+
fullname: string;
|
|
121
|
+
phoneNumber: string;
|
|
122
|
+
street: string;
|
|
123
|
+
isDefault: boolean | null;
|
|
124
|
+
province: {
|
|
125
|
+
name: string;
|
|
126
|
+
type: string;
|
|
127
|
+
id: string | null;
|
|
128
|
+
};
|
|
129
|
+
ward: {
|
|
130
|
+
name: string;
|
|
131
|
+
type: string;
|
|
132
|
+
id: string | null;
|
|
133
|
+
districtId: string | null;
|
|
134
|
+
};
|
|
135
|
+
district: {
|
|
136
|
+
name: string;
|
|
137
|
+
type: string;
|
|
138
|
+
id: string | null;
|
|
139
|
+
provinceId: string | null;
|
|
140
|
+
};
|
|
141
|
+
}[];
|
|
340
142
|
};
|
|
341
143
|
message: null;
|
|
342
144
|
error: null;
|
|
343
|
-
meta:
|
|
344
|
-
};
|
|
345
|
-
422: {
|
|
346
|
-
type: "validation";
|
|
347
|
-
on: string;
|
|
348
|
-
summary?: string;
|
|
349
|
-
message?: string;
|
|
350
|
-
found?: unknown;
|
|
351
|
-
property?: string;
|
|
352
|
-
expected?: string;
|
|
145
|
+
meta: TResponseMeta;
|
|
353
146
|
};
|
|
354
147
|
}>>;
|
|
355
|
-
|
|
148
|
+
};
|
|
149
|
+
"refresh-token": {
|
|
150
|
+
get: (options?: {
|
|
356
151
|
headers?: {} | undefined;
|
|
357
152
|
query?: {} | undefined;
|
|
358
153
|
fetch?: RequestInit | undefined;
|
|
359
154
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
360
155
|
200: {
|
|
361
|
-
success:
|
|
156
|
+
success: true;
|
|
362
157
|
statusCode: number;
|
|
363
158
|
data: null;
|
|
364
159
|
message: string;
|
|
365
|
-
error:
|
|
366
|
-
meta:
|
|
160
|
+
error: null;
|
|
161
|
+
meta: TResponseMeta;
|
|
367
162
|
} | {
|
|
368
|
-
success:
|
|
163
|
+
success: false;
|
|
369
164
|
statusCode: number;
|
|
370
|
-
data:
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
error: null;
|
|
375
|
-
meta: void 0;
|
|
376
|
-
};
|
|
377
|
-
422: {
|
|
378
|
-
type: "validation";
|
|
379
|
-
on: string;
|
|
380
|
-
summary?: string;
|
|
381
|
-
message?: string;
|
|
382
|
-
found?: unknown;
|
|
383
|
-
property?: string;
|
|
384
|
-
expected?: string;
|
|
165
|
+
data: null;
|
|
166
|
+
message: string;
|
|
167
|
+
error: TResponseError;
|
|
168
|
+
meta: TResponseMeta;
|
|
385
169
|
};
|
|
386
170
|
}>>;
|
|
387
|
-
}
|
|
388
|
-
|
|
171
|
+
};
|
|
172
|
+
login: {
|
|
173
|
+
post: (body: {
|
|
174
|
+
email: string;
|
|
175
|
+
password: string;
|
|
176
|
+
}, options?: {
|
|
389
177
|
headers?: {} | undefined;
|
|
390
|
-
query?: {
|
|
391
|
-
page?: number | undefined;
|
|
392
|
-
limit?: number | undefined;
|
|
393
|
-
} | undefined;
|
|
178
|
+
query?: {} | undefined;
|
|
394
179
|
fetch?: RequestInit | undefined;
|
|
395
180
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
396
181
|
200: {
|
|
397
|
-
success:
|
|
182
|
+
success: true;
|
|
398
183
|
statusCode: number;
|
|
399
184
|
data: null;
|
|
400
185
|
message: string;
|
|
401
|
-
error:
|
|
402
|
-
meta:
|
|
186
|
+
error: null;
|
|
187
|
+
meta: TResponseMeta;
|
|
403
188
|
} | {
|
|
404
|
-
success:
|
|
189
|
+
success: false;
|
|
405
190
|
statusCode: number;
|
|
406
|
-
data:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
createdAt: Date | null;
|
|
411
|
-
updatedAt: Date | null;
|
|
412
|
-
username: string;
|
|
413
|
-
role: string;
|
|
414
|
-
isActive: boolean | null;
|
|
415
|
-
profile: {
|
|
416
|
-
fullname: string;
|
|
417
|
-
phoneNumber: string | null;
|
|
418
|
-
} | null;
|
|
419
|
-
}[];
|
|
420
|
-
pagination: {
|
|
421
|
-
page: number;
|
|
422
|
-
limit: number;
|
|
423
|
-
total: number;
|
|
424
|
-
totalPages: number;
|
|
425
|
-
hasNextPage: boolean;
|
|
426
|
-
hasPreviousPage: boolean;
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
message: null;
|
|
430
|
-
error: null;
|
|
431
|
-
meta: void 0;
|
|
191
|
+
data: null;
|
|
192
|
+
message: string;
|
|
193
|
+
error: TResponseError;
|
|
194
|
+
meta: TResponseMeta;
|
|
432
195
|
};
|
|
433
196
|
422: {
|
|
434
197
|
type: "validation";
|
|
@@ -440,35 +203,156 @@ declare class ClientApi {
|
|
|
440
203
|
expected?: string;
|
|
441
204
|
};
|
|
442
205
|
}>>;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
firstName: string;
|
|
447
|
-
lastName: string;
|
|
448
|
-
role: void 0;
|
|
449
|
-
phoneNumber?: string | undefined;
|
|
450
|
-
}, options?: {
|
|
206
|
+
};
|
|
207
|
+
logout: {
|
|
208
|
+
delete: (body?: {} | undefined, options?: {
|
|
451
209
|
headers?: {} | undefined;
|
|
452
210
|
query?: {} | undefined;
|
|
453
211
|
fetch?: RequestInit | undefined;
|
|
454
212
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
455
213
|
200: {
|
|
214
|
+
success: true;
|
|
215
|
+
statusCode: number;
|
|
216
|
+
data: null;
|
|
217
|
+
message: string;
|
|
218
|
+
error: null;
|
|
219
|
+
meta: TResponseMeta;
|
|
220
|
+
} | {
|
|
221
|
+
success: false;
|
|
222
|
+
statusCode: number;
|
|
223
|
+
data: null;
|
|
224
|
+
message: string;
|
|
225
|
+
error: TResponseError;
|
|
226
|
+
meta: TResponseMeta;
|
|
227
|
+
} | {
|
|
456
228
|
success: false;
|
|
457
229
|
statusCode: number;
|
|
458
230
|
data: null;
|
|
459
231
|
message: string;
|
|
460
|
-
error:
|
|
461
|
-
meta:
|
|
232
|
+
error: TResponseError;
|
|
233
|
+
meta: TResponseMeta;
|
|
462
234
|
} | {
|
|
463
235
|
success: true;
|
|
464
236
|
statusCode: number;
|
|
465
237
|
data: undefined;
|
|
466
238
|
message: null;
|
|
467
239
|
error: null;
|
|
468
|
-
meta:
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
|
|
240
|
+
meta: TResponseMeta;
|
|
241
|
+
};
|
|
242
|
+
}>>;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
account: ((params: {
|
|
246
|
+
uuid: string | number;
|
|
247
|
+
}) => {
|
|
248
|
+
get: (options?: {
|
|
249
|
+
headers?: {} | undefined;
|
|
250
|
+
query?: {} | undefined;
|
|
251
|
+
fetch?: RequestInit | undefined;
|
|
252
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
253
|
+
200: {
|
|
254
|
+
success: false;
|
|
255
|
+
statusCode: number;
|
|
256
|
+
data: null;
|
|
257
|
+
message: string;
|
|
258
|
+
error: TResponseError;
|
|
259
|
+
meta: TResponseMeta;
|
|
260
|
+
} | {
|
|
261
|
+
success: true;
|
|
262
|
+
statusCode: number;
|
|
263
|
+
data: {
|
|
264
|
+
uuid: string | null;
|
|
265
|
+
email: string;
|
|
266
|
+
createdAt: Date | null;
|
|
267
|
+
updatedAt: Date | null;
|
|
268
|
+
username: string;
|
|
269
|
+
role: string;
|
|
270
|
+
isActive: boolean | null;
|
|
271
|
+
networks: {
|
|
272
|
+
createdAt: Date | null;
|
|
273
|
+
updatedAt: Date | null;
|
|
274
|
+
id: number;
|
|
275
|
+
provider: string;
|
|
276
|
+
providerId: string;
|
|
277
|
+
}[];
|
|
278
|
+
profile: {
|
|
279
|
+
createdAt: Date | null;
|
|
280
|
+
updatedAt: Date | null;
|
|
281
|
+
id: number;
|
|
282
|
+
fullname: string;
|
|
283
|
+
phoneNumber: string | null;
|
|
284
|
+
bio: string | null;
|
|
285
|
+
gender: number | null;
|
|
286
|
+
socialLinks: unknown;
|
|
287
|
+
dateOfBirth: Date | null;
|
|
288
|
+
} | null;
|
|
289
|
+
};
|
|
290
|
+
message: null;
|
|
291
|
+
error: null;
|
|
292
|
+
meta: TResponseMeta;
|
|
293
|
+
};
|
|
294
|
+
422: {
|
|
295
|
+
type: "validation";
|
|
296
|
+
on: string;
|
|
297
|
+
summary?: string;
|
|
298
|
+
message?: string;
|
|
299
|
+
found?: unknown;
|
|
300
|
+
property?: string;
|
|
301
|
+
expected?: string;
|
|
302
|
+
};
|
|
303
|
+
}>>;
|
|
304
|
+
delete: (body?: {} | undefined, options?: {
|
|
305
|
+
headers?: {} | undefined;
|
|
306
|
+
query?: {} | undefined;
|
|
307
|
+
fetch?: RequestInit | undefined;
|
|
308
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
309
|
+
200: {
|
|
310
|
+
success: false;
|
|
311
|
+
statusCode: number;
|
|
312
|
+
data: null;
|
|
313
|
+
message: string;
|
|
314
|
+
error: TResponseError;
|
|
315
|
+
meta: TResponseMeta;
|
|
316
|
+
} | {
|
|
317
|
+
success: true;
|
|
318
|
+
statusCode: number;
|
|
319
|
+
data: {
|
|
320
|
+
userUuid: string;
|
|
321
|
+
};
|
|
322
|
+
message: null;
|
|
323
|
+
error: null;
|
|
324
|
+
meta: TResponseMeta;
|
|
325
|
+
};
|
|
326
|
+
422: {
|
|
327
|
+
type: "validation";
|
|
328
|
+
on: string;
|
|
329
|
+
summary?: string;
|
|
330
|
+
message?: string;
|
|
331
|
+
found?: unknown;
|
|
332
|
+
property?: string;
|
|
333
|
+
expected?: string;
|
|
334
|
+
};
|
|
335
|
+
}>>;
|
|
336
|
+
}) & {
|
|
337
|
+
get: (options?: {
|
|
338
|
+
headers?: {} | undefined;
|
|
339
|
+
query?: {
|
|
340
|
+
page?: number | undefined;
|
|
341
|
+
limit?: number | undefined;
|
|
342
|
+
} | undefined;
|
|
343
|
+
fetch?: RequestInit | undefined;
|
|
344
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
345
|
+
200: {
|
|
346
|
+
success: false;
|
|
347
|
+
statusCode: number;
|
|
348
|
+
data: null;
|
|
349
|
+
message: string;
|
|
350
|
+
error: TResponseError;
|
|
351
|
+
meta: TResponseMeta;
|
|
352
|
+
} | {
|
|
353
|
+
success: true;
|
|
354
|
+
statusCode: number;
|
|
355
|
+
data: {
|
|
472
356
|
data: {
|
|
473
357
|
uuid: string | null;
|
|
474
358
|
email: string;
|
|
@@ -476,751 +360,248 @@ declare class ClientApi {
|
|
|
476
360
|
updatedAt: Date | null;
|
|
477
361
|
username: string;
|
|
478
362
|
role: string;
|
|
479
|
-
|
|
480
|
-
createdAt: Date | null;
|
|
481
|
-
updatedAt: Date | null;
|
|
482
|
-
id: number;
|
|
483
|
-
provider: string;
|
|
484
|
-
providerId: string;
|
|
485
|
-
}[];
|
|
363
|
+
isActive: boolean | null;
|
|
486
364
|
profile: {
|
|
487
|
-
createdAt: Date | null;
|
|
488
|
-
updatedAt: Date | null;
|
|
489
|
-
id: number;
|
|
490
365
|
fullname: string;
|
|
491
366
|
phoneNumber: string | null;
|
|
492
|
-
bio: string | null;
|
|
493
|
-
gender: number | null;
|
|
494
|
-
dateOfBirth: Date | null;
|
|
495
367
|
} | null;
|
|
496
|
-
customerAddresses: {
|
|
497
|
-
createdAt: Date | null;
|
|
498
|
-
updatedAt: Date | null;
|
|
499
|
-
id: number;
|
|
500
|
-
fullname: string;
|
|
501
|
-
phoneNumber: string;
|
|
502
|
-
street: string;
|
|
503
|
-
isDefault: boolean | null;
|
|
504
|
-
province: {
|
|
505
|
-
name: string;
|
|
506
|
-
type: string;
|
|
507
|
-
id: string | null;
|
|
508
|
-
};
|
|
509
|
-
ward: {
|
|
510
|
-
name: string;
|
|
511
|
-
type: string;
|
|
512
|
-
id: string | null;
|
|
513
|
-
districtId: string | null;
|
|
514
|
-
};
|
|
515
|
-
district: {
|
|
516
|
-
name: string;
|
|
517
|
-
type: string;
|
|
518
|
-
id: string | null;
|
|
519
|
-
provinceId: string | null;
|
|
520
|
-
};
|
|
521
|
-
}[];
|
|
522
|
-
};
|
|
523
|
-
message: null;
|
|
524
|
-
error: null;
|
|
525
|
-
meta: void 0;
|
|
526
|
-
};
|
|
527
|
-
422: {
|
|
528
|
-
type: "validation";
|
|
529
|
-
on: string;
|
|
530
|
-
summary?: string;
|
|
531
|
-
message?: string;
|
|
532
|
-
found?: unknown;
|
|
533
|
-
property?: string;
|
|
534
|
-
expected?: string;
|
|
535
|
-
};
|
|
536
|
-
}>>;
|
|
537
|
-
};
|
|
538
|
-
category: ((params: {
|
|
539
|
-
uuid: string | number;
|
|
540
|
-
}) => {
|
|
541
|
-
get: (options?: {
|
|
542
|
-
headers?: {} | undefined;
|
|
543
|
-
query?: {} | undefined;
|
|
544
|
-
fetch?: RequestInit | undefined;
|
|
545
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
546
|
-
200: {
|
|
547
|
-
success: false;
|
|
548
|
-
statusCode: number;
|
|
549
|
-
data: null;
|
|
550
|
-
message: string;
|
|
551
|
-
error: void 0;
|
|
552
|
-
meta: void 0;
|
|
553
|
-
} | {
|
|
554
|
-
success: true;
|
|
555
|
-
statusCode: number;
|
|
556
|
-
data: {
|
|
557
|
-
name: string;
|
|
558
|
-
uuid: string;
|
|
559
|
-
slug: string;
|
|
560
|
-
description: string | null;
|
|
561
|
-
createdAt: Date;
|
|
562
|
-
updatedAt: Date;
|
|
563
|
-
sub: {
|
|
564
|
-
name: string;
|
|
565
|
-
uuid: string;
|
|
566
|
-
slug: string;
|
|
567
|
-
description: string | null;
|
|
568
|
-
createdAt: Date;
|
|
569
|
-
updatedAt: Date;
|
|
570
|
-
}[];
|
|
571
|
-
};
|
|
572
|
-
message: null;
|
|
573
|
-
error: null;
|
|
574
|
-
meta: void 0;
|
|
575
|
-
};
|
|
576
|
-
422: {
|
|
577
|
-
type: "validation";
|
|
578
|
-
on: string;
|
|
579
|
-
summary?: string;
|
|
580
|
-
message?: string;
|
|
581
|
-
found?: unknown;
|
|
582
|
-
property?: string;
|
|
583
|
-
expected?: string;
|
|
584
|
-
};
|
|
585
|
-
}>>;
|
|
586
|
-
post: (body: {
|
|
587
|
-
name: string;
|
|
588
|
-
description: string;
|
|
589
|
-
}, options?: {
|
|
590
|
-
headers?: {} | undefined;
|
|
591
|
-
query?: {} | undefined;
|
|
592
|
-
fetch?: RequestInit | undefined;
|
|
593
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
594
|
-
200: {
|
|
595
|
-
success: false;
|
|
596
|
-
statusCode: number;
|
|
597
|
-
data: null;
|
|
598
|
-
message: string;
|
|
599
|
-
error: void 0;
|
|
600
|
-
meta: void 0;
|
|
601
|
-
} | {
|
|
602
|
-
success: true;
|
|
603
|
-
statusCode: number;
|
|
604
|
-
data: {
|
|
605
|
-
uuid: string;
|
|
606
|
-
};
|
|
607
|
-
message: null;
|
|
608
|
-
error: null;
|
|
609
|
-
meta: void 0;
|
|
610
|
-
};
|
|
611
|
-
422: {
|
|
612
|
-
type: "validation";
|
|
613
|
-
on: string;
|
|
614
|
-
summary?: string;
|
|
615
|
-
message?: string;
|
|
616
|
-
found?: unknown;
|
|
617
|
-
property?: string;
|
|
618
|
-
expected?: string;
|
|
619
|
-
};
|
|
620
|
-
}>>;
|
|
621
|
-
bulk: {
|
|
622
|
-
post: (body: {
|
|
623
|
-
parentUuid: string;
|
|
624
|
-
categories: {
|
|
625
|
-
name: string;
|
|
626
|
-
description: string;
|
|
627
368
|
}[];
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
statusCode: number;
|
|
636
|
-
data: null;
|
|
637
|
-
message: string;
|
|
638
|
-
error: void 0;
|
|
639
|
-
meta: void 0;
|
|
640
|
-
} | {
|
|
641
|
-
success: true;
|
|
642
|
-
statusCode: number;
|
|
643
|
-
data: {
|
|
644
|
-
categories: {
|
|
645
|
-
uuid: string;
|
|
646
|
-
name: string;
|
|
647
|
-
description: string | null;
|
|
648
|
-
slug: string;
|
|
649
|
-
createdAt: Date;
|
|
650
|
-
updatedAt: Date;
|
|
651
|
-
}[];
|
|
652
|
-
};
|
|
653
|
-
message: null;
|
|
654
|
-
error: null;
|
|
655
|
-
meta: void 0;
|
|
656
|
-
};
|
|
657
|
-
422: {
|
|
658
|
-
type: "validation";
|
|
659
|
-
on: string;
|
|
660
|
-
summary?: string;
|
|
661
|
-
message?: string;
|
|
662
|
-
found?: unknown;
|
|
663
|
-
property?: string;
|
|
664
|
-
expected?: string;
|
|
369
|
+
pagination: {
|
|
370
|
+
page: number;
|
|
371
|
+
limit: number;
|
|
372
|
+
total: number;
|
|
373
|
+
totalPages: number;
|
|
374
|
+
hasNextPage: boolean;
|
|
375
|
+
hasPreviousPage: boolean;
|
|
665
376
|
};
|
|
666
|
-
}>>;
|
|
667
|
-
};
|
|
668
|
-
patch: (body?: {
|
|
669
|
-
name?: string | undefined;
|
|
670
|
-
description?: string | undefined;
|
|
671
|
-
parentUuid?: string | undefined;
|
|
672
|
-
} | undefined, options?: {
|
|
673
|
-
headers?: {} | undefined;
|
|
674
|
-
query?: {} | undefined;
|
|
675
|
-
fetch?: RequestInit | undefined;
|
|
676
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
677
|
-
200: {
|
|
678
|
-
success: false;
|
|
679
|
-
statusCode: number;
|
|
680
|
-
data: null;
|
|
681
|
-
message: string;
|
|
682
|
-
error: void 0;
|
|
683
|
-
meta: void 0;
|
|
684
|
-
} | {
|
|
685
|
-
success: true;
|
|
686
|
-
statusCode: number;
|
|
687
|
-
data: {
|
|
688
|
-
uuid: string;
|
|
689
|
-
};
|
|
690
|
-
message: null;
|
|
691
|
-
error: null;
|
|
692
|
-
meta: void 0;
|
|
693
|
-
};
|
|
694
|
-
422: {
|
|
695
|
-
type: "validation";
|
|
696
|
-
on: string;
|
|
697
|
-
summary?: string;
|
|
698
|
-
message?: string;
|
|
699
|
-
found?: unknown;
|
|
700
|
-
property?: string;
|
|
701
|
-
expected?: string;
|
|
702
|
-
};
|
|
703
|
-
}>>;
|
|
704
|
-
delete: (body?: {} | undefined, options?: {
|
|
705
|
-
headers?: {} | undefined;
|
|
706
|
-
query?: {} | undefined;
|
|
707
|
-
fetch?: RequestInit | undefined;
|
|
708
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
709
|
-
200: {
|
|
710
|
-
success: true;
|
|
711
|
-
statusCode: number;
|
|
712
|
-
data: null;
|
|
713
|
-
message: string;
|
|
714
|
-
error: null;
|
|
715
|
-
meta: void 0;
|
|
716
|
-
} | {
|
|
717
|
-
success: false;
|
|
718
|
-
statusCode: number;
|
|
719
|
-
data: null;
|
|
720
|
-
message: string;
|
|
721
|
-
error: void 0;
|
|
722
|
-
meta: void 0;
|
|
723
|
-
};
|
|
724
|
-
422: {
|
|
725
|
-
type: "validation";
|
|
726
|
-
on: string;
|
|
727
|
-
summary?: string;
|
|
728
|
-
message?: string;
|
|
729
|
-
found?: unknown;
|
|
730
|
-
property?: string;
|
|
731
|
-
expected?: string;
|
|
732
|
-
};
|
|
733
|
-
}>>;
|
|
734
|
-
}) & {
|
|
735
|
-
get: (options?: {
|
|
736
|
-
headers?: {} | undefined;
|
|
737
|
-
query?: {} | undefined;
|
|
738
|
-
fetch?: RequestInit | undefined;
|
|
739
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
740
|
-
200: {
|
|
741
|
-
success: false;
|
|
742
|
-
statusCode: number;
|
|
743
|
-
data: null;
|
|
744
|
-
message: string;
|
|
745
|
-
error: void 0;
|
|
746
|
-
meta: void 0;
|
|
747
|
-
} | {
|
|
748
|
-
success: true;
|
|
749
|
-
statusCode: number;
|
|
750
|
-
data: {
|
|
751
|
-
name: string;
|
|
752
|
-
uuid: string;
|
|
753
|
-
slug: string;
|
|
754
|
-
description: string | null;
|
|
755
|
-
createdAt: Date;
|
|
756
|
-
updatedAt: Date;
|
|
757
|
-
sub: {
|
|
758
|
-
name: string;
|
|
759
|
-
uuid: string;
|
|
760
|
-
slug: string;
|
|
761
|
-
description: string | null;
|
|
762
|
-
createdAt: Date;
|
|
763
|
-
updatedAt: Date;
|
|
764
|
-
}[];
|
|
765
|
-
}[];
|
|
766
|
-
message: null;
|
|
767
|
-
error: null;
|
|
768
|
-
meta: void 0;
|
|
769
|
-
};
|
|
770
|
-
}>>;
|
|
771
|
-
post: (body: {
|
|
772
|
-
name: string;
|
|
773
|
-
description: string;
|
|
774
|
-
}, options?: {
|
|
775
|
-
headers?: {} | undefined;
|
|
776
|
-
query?: {} | undefined;
|
|
777
|
-
fetch?: RequestInit | undefined;
|
|
778
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
779
|
-
200: {
|
|
780
|
-
success: false;
|
|
781
|
-
statusCode: number;
|
|
782
|
-
data: null;
|
|
783
|
-
message: string;
|
|
784
|
-
error: void 0;
|
|
785
|
-
meta: void 0;
|
|
786
|
-
} | {
|
|
787
|
-
success: true;
|
|
788
|
-
statusCode: number;
|
|
789
|
-
data: {
|
|
790
|
-
uuid: string;
|
|
791
|
-
};
|
|
792
|
-
message: null;
|
|
793
|
-
error: null;
|
|
794
|
-
meta: void 0;
|
|
795
|
-
};
|
|
796
|
-
422: {
|
|
797
|
-
type: "validation";
|
|
798
|
-
on: string;
|
|
799
|
-
summary?: string;
|
|
800
|
-
message?: string;
|
|
801
|
-
found?: unknown;
|
|
802
|
-
property?: string;
|
|
803
|
-
expected?: string;
|
|
804
377
|
};
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
categories: {
|
|
809
|
-
name: string;
|
|
810
|
-
description: string;
|
|
811
|
-
}[];
|
|
812
|
-
}, options?: {
|
|
813
|
-
headers?: {} | undefined;
|
|
814
|
-
query?: {} | undefined;
|
|
815
|
-
fetch?: RequestInit | undefined;
|
|
816
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
817
|
-
200: {
|
|
818
|
-
success: false;
|
|
819
|
-
statusCode: number;
|
|
820
|
-
data: null;
|
|
821
|
-
message: string;
|
|
822
|
-
error: void 0;
|
|
823
|
-
meta: void 0;
|
|
824
|
-
} | {
|
|
825
|
-
success: true;
|
|
826
|
-
statusCode: number;
|
|
827
|
-
data: {
|
|
828
|
-
categories: {
|
|
829
|
-
uuid: string;
|
|
830
|
-
name: string;
|
|
831
|
-
description: string | null;
|
|
832
|
-
slug: string;
|
|
833
|
-
createdAt: Date;
|
|
834
|
-
updatedAt: Date;
|
|
835
|
-
}[];
|
|
836
|
-
};
|
|
837
|
-
message: null;
|
|
838
|
-
error: null;
|
|
839
|
-
meta: void 0;
|
|
840
|
-
};
|
|
841
|
-
422: {
|
|
842
|
-
type: "validation";
|
|
843
|
-
on: string;
|
|
844
|
-
summary?: string;
|
|
845
|
-
message?: string;
|
|
846
|
-
found?: unknown;
|
|
847
|
-
property?: string;
|
|
848
|
-
expected?: string;
|
|
849
|
-
};
|
|
850
|
-
}>>;
|
|
851
|
-
delete: (body: {}, options: {
|
|
852
|
-
headers?: {} | undefined;
|
|
853
|
-
query: {
|
|
854
|
-
uuids: string[];
|
|
855
|
-
};
|
|
856
|
-
fetch?: RequestInit | undefined;
|
|
857
|
-
}) => Promise<Treaty.TreatyResponse<{
|
|
858
|
-
200: {
|
|
859
|
-
success: true;
|
|
860
|
-
statusCode: number;
|
|
861
|
-
data: null;
|
|
862
|
-
message: string;
|
|
863
|
-
error: null;
|
|
864
|
-
meta: void 0;
|
|
865
|
-
} | {
|
|
866
|
-
success: false;
|
|
867
|
-
statusCode: number;
|
|
868
|
-
data: null;
|
|
869
|
-
message: string;
|
|
870
|
-
error: void 0;
|
|
871
|
-
meta: void 0;
|
|
872
|
-
};
|
|
873
|
-
422: {
|
|
874
|
-
type: "validation";
|
|
875
|
-
on: string;
|
|
876
|
-
summary?: string;
|
|
877
|
-
message?: string;
|
|
878
|
-
found?: unknown;
|
|
879
|
-
property?: string;
|
|
880
|
-
expected?: string;
|
|
881
|
-
};
|
|
882
|
-
}>>;
|
|
378
|
+
message: null;
|
|
379
|
+
error: null;
|
|
380
|
+
meta: TResponseMeta;
|
|
883
381
|
};
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
382
|
+
422: {
|
|
383
|
+
type: "validation";
|
|
384
|
+
on: string;
|
|
385
|
+
summary?: string;
|
|
386
|
+
message?: string;
|
|
387
|
+
found?: unknown;
|
|
388
|
+
property?: string;
|
|
389
|
+
expected?: string;
|
|
390
|
+
};
|
|
391
|
+
}>>;
|
|
392
|
+
post: (body: {
|
|
393
|
+
email: string;
|
|
394
|
+
password: string;
|
|
395
|
+
firstName: string;
|
|
396
|
+
lastName: string;
|
|
397
|
+
role: ERole;
|
|
398
|
+
phoneNumber?: string | undefined;
|
|
399
|
+
}, options?: {
|
|
400
|
+
headers?: {} | undefined;
|
|
401
|
+
query?: {} | undefined;
|
|
402
|
+
fetch?: RequestInit | undefined;
|
|
403
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
404
|
+
200: {
|
|
405
|
+
success: false;
|
|
406
|
+
statusCode: number;
|
|
407
|
+
data: null;
|
|
408
|
+
message: string;
|
|
409
|
+
error: TResponseError;
|
|
410
|
+
meta: TResponseMeta;
|
|
411
|
+
} | {
|
|
412
|
+
success: true;
|
|
413
|
+
statusCode: number;
|
|
414
|
+
data: undefined;
|
|
415
|
+
message: null;
|
|
416
|
+
error: null;
|
|
417
|
+
meta: TResponseMeta;
|
|
418
|
+
} | {
|
|
419
|
+
success: true;
|
|
420
|
+
statusCode: number;
|
|
421
|
+
data: {
|
|
422
|
+
uuid: string | null;
|
|
423
|
+
email: string;
|
|
424
|
+
createdAt: Date | null;
|
|
425
|
+
updatedAt: Date | null;
|
|
426
|
+
username: string;
|
|
427
|
+
role: string;
|
|
428
|
+
networks: {
|
|
907
429
|
createdAt: Date | null;
|
|
908
430
|
updatedAt: Date | null;
|
|
909
431
|
id: number;
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
error: null;
|
|
915
|
-
meta: void 0;
|
|
916
|
-
};
|
|
917
|
-
422: {
|
|
918
|
-
type: "validation";
|
|
919
|
-
on: string;
|
|
920
|
-
summary?: string;
|
|
921
|
-
message?: string;
|
|
922
|
-
found?: unknown;
|
|
923
|
-
property?: string;
|
|
924
|
-
expected?: string;
|
|
925
|
-
};
|
|
926
|
-
}>>;
|
|
927
|
-
patch: (body?: {
|
|
928
|
-
code?: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL" | undefined;
|
|
929
|
-
name?: string | undefined;
|
|
930
|
-
exchangeRate?: number | undefined;
|
|
931
|
-
} | undefined, options?: {
|
|
932
|
-
headers?: {} | undefined;
|
|
933
|
-
query?: {} | undefined;
|
|
934
|
-
fetch?: RequestInit | undefined;
|
|
935
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
936
|
-
200: {
|
|
937
|
-
success: true;
|
|
938
|
-
statusCode: number;
|
|
939
|
-
data: null;
|
|
940
|
-
message: string;
|
|
941
|
-
error: null;
|
|
942
|
-
meta: void 0;
|
|
943
|
-
} | {
|
|
944
|
-
success: false;
|
|
945
|
-
statusCode: number;
|
|
946
|
-
data: null;
|
|
947
|
-
message: string;
|
|
948
|
-
error: void 0;
|
|
949
|
-
meta: void 0;
|
|
950
|
-
};
|
|
951
|
-
422: {
|
|
952
|
-
type: "validation";
|
|
953
|
-
on: string;
|
|
954
|
-
summary?: string;
|
|
955
|
-
message?: string;
|
|
956
|
-
found?: unknown;
|
|
957
|
-
property?: string;
|
|
958
|
-
expected?: string;
|
|
959
|
-
};
|
|
960
|
-
}>>;
|
|
961
|
-
delete: (body?: {} | undefined, options?: {
|
|
962
|
-
headers?: {} | undefined;
|
|
963
|
-
query?: {} | undefined;
|
|
964
|
-
fetch?: RequestInit | undefined;
|
|
965
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
966
|
-
200: {
|
|
967
|
-
success: true;
|
|
968
|
-
statusCode: number;
|
|
969
|
-
data: null;
|
|
970
|
-
message: string;
|
|
971
|
-
error: null;
|
|
972
|
-
meta: void 0;
|
|
973
|
-
} | {
|
|
974
|
-
success: false;
|
|
975
|
-
statusCode: number;
|
|
976
|
-
data: null;
|
|
977
|
-
message: string;
|
|
978
|
-
error: void 0;
|
|
979
|
-
meta: void 0;
|
|
980
|
-
};
|
|
981
|
-
422: {
|
|
982
|
-
type: "validation";
|
|
983
|
-
on: string;
|
|
984
|
-
summary?: string;
|
|
985
|
-
message?: string;
|
|
986
|
-
found?: unknown;
|
|
987
|
-
property?: string;
|
|
988
|
-
expected?: string;
|
|
989
|
-
};
|
|
990
|
-
}>>;
|
|
991
|
-
}) & {
|
|
992
|
-
get: (options?: {
|
|
993
|
-
headers?: {} | undefined;
|
|
994
|
-
query?: {} | undefined;
|
|
995
|
-
fetch?: RequestInit | undefined;
|
|
996
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
997
|
-
200: {
|
|
998
|
-
success: false;
|
|
999
|
-
statusCode: number;
|
|
1000
|
-
data: null;
|
|
1001
|
-
message: string;
|
|
1002
|
-
error: void 0;
|
|
1003
|
-
meta: void 0;
|
|
1004
|
-
} | {
|
|
1005
|
-
success: true;
|
|
1006
|
-
statusCode: number;
|
|
1007
|
-
data: {
|
|
1008
|
-
name: string;
|
|
432
|
+
provider: string;
|
|
433
|
+
providerId: string;
|
|
434
|
+
}[];
|
|
435
|
+
profile: {
|
|
1009
436
|
createdAt: Date | null;
|
|
1010
437
|
updatedAt: Date | null;
|
|
1011
438
|
id: number;
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
}>>;
|
|
1020
|
-
count: {
|
|
1021
|
-
get: (options?: {
|
|
1022
|
-
headers?: {} | undefined;
|
|
1023
|
-
query?: {} | undefined;
|
|
1024
|
-
fetch?: RequestInit | undefined;
|
|
1025
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1026
|
-
200: {
|
|
1027
|
-
success: false;
|
|
1028
|
-
statusCode: number;
|
|
1029
|
-
data: null;
|
|
1030
|
-
message: string;
|
|
1031
|
-
error: void 0;
|
|
1032
|
-
meta: void 0;
|
|
1033
|
-
} | {
|
|
1034
|
-
success: true;
|
|
1035
|
-
statusCode: number;
|
|
1036
|
-
data: number;
|
|
1037
|
-
message: null;
|
|
1038
|
-
error: null;
|
|
1039
|
-
meta: void 0;
|
|
1040
|
-
};
|
|
1041
|
-
}>>;
|
|
1042
|
-
};
|
|
1043
|
-
post: (body: {
|
|
1044
|
-
code: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1045
|
-
name: string;
|
|
1046
|
-
exchangeRate: number;
|
|
1047
|
-
}, options?: {
|
|
1048
|
-
headers?: {} | undefined;
|
|
1049
|
-
query?: {} | undefined;
|
|
1050
|
-
fetch?: RequestInit | undefined;
|
|
1051
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1052
|
-
200: {
|
|
1053
|
-
success: false;
|
|
1054
|
-
statusCode: number;
|
|
1055
|
-
data: null;
|
|
1056
|
-
message: string;
|
|
1057
|
-
error: void 0;
|
|
1058
|
-
meta: void 0;
|
|
1059
|
-
} | {
|
|
1060
|
-
success: true;
|
|
1061
|
-
statusCode: number;
|
|
1062
|
-
data: {
|
|
1063
|
-
id: number;
|
|
1064
|
-
name: string;
|
|
1065
|
-
code: string;
|
|
1066
|
-
exchangeRate: number;
|
|
439
|
+
fullname: string;
|
|
440
|
+
phoneNumber: string | null;
|
|
441
|
+
bio: string | null;
|
|
442
|
+
gender: number | null;
|
|
443
|
+
dateOfBirth: Date | null;
|
|
444
|
+
} | null;
|
|
445
|
+
customerAddresses: {
|
|
1067
446
|
createdAt: Date | null;
|
|
1068
447
|
updatedAt: Date | null;
|
|
448
|
+
id: number;
|
|
449
|
+
fullname: string;
|
|
450
|
+
phoneNumber: string;
|
|
451
|
+
street: string;
|
|
452
|
+
isDefault: boolean | null;
|
|
453
|
+
province: {
|
|
454
|
+
name: string;
|
|
455
|
+
type: string;
|
|
456
|
+
id: string | null;
|
|
457
|
+
};
|
|
458
|
+
ward: {
|
|
459
|
+
name: string;
|
|
460
|
+
type: string;
|
|
461
|
+
id: string | null;
|
|
462
|
+
districtId: string | null;
|
|
463
|
+
};
|
|
464
|
+
district: {
|
|
465
|
+
name: string;
|
|
466
|
+
type: string;
|
|
467
|
+
id: string | null;
|
|
468
|
+
provinceId: string | null;
|
|
469
|
+
};
|
|
1069
470
|
}[];
|
|
1070
|
-
message: null;
|
|
1071
|
-
error: null;
|
|
1072
|
-
meta: void 0;
|
|
1073
471
|
};
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
summary?: string;
|
|
1078
|
-
message?: string;
|
|
1079
|
-
found?: unknown;
|
|
1080
|
-
property?: string;
|
|
1081
|
-
expected?: string;
|
|
1082
|
-
};
|
|
1083
|
-
}>>;
|
|
1084
|
-
bulk: {
|
|
1085
|
-
post: (body: {
|
|
1086
|
-
currencies: {
|
|
1087
|
-
code: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1088
|
-
name: string;
|
|
1089
|
-
exchangeRate: number;
|
|
1090
|
-
}[];
|
|
1091
|
-
}, options?: {
|
|
1092
|
-
headers?: {} | undefined;
|
|
1093
|
-
query?: {} | undefined;
|
|
1094
|
-
fetch?: RequestInit | undefined;
|
|
1095
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1096
|
-
200: {
|
|
1097
|
-
success: false;
|
|
1098
|
-
statusCode: number;
|
|
1099
|
-
data: null;
|
|
1100
|
-
message: string;
|
|
1101
|
-
error: void 0;
|
|
1102
|
-
meta: void 0;
|
|
1103
|
-
} | {
|
|
1104
|
-
success: true;
|
|
1105
|
-
statusCode: number;
|
|
1106
|
-
data: {
|
|
1107
|
-
id: number;
|
|
1108
|
-
name: string;
|
|
1109
|
-
code: string;
|
|
1110
|
-
exchangeRate: number;
|
|
1111
|
-
createdAt: Date | null;
|
|
1112
|
-
updatedAt: Date | null;
|
|
1113
|
-
}[];
|
|
1114
|
-
message: null;
|
|
1115
|
-
error: null;
|
|
1116
|
-
meta: void 0;
|
|
1117
|
-
};
|
|
1118
|
-
422: {
|
|
1119
|
-
type: "validation";
|
|
1120
|
-
on: string;
|
|
1121
|
-
summary?: string;
|
|
1122
|
-
message?: string;
|
|
1123
|
-
found?: unknown;
|
|
1124
|
-
property?: string;
|
|
1125
|
-
expected?: string;
|
|
1126
|
-
};
|
|
1127
|
-
}>>;
|
|
1128
|
-
delete: (body: {}, options: {
|
|
1129
|
-
headers?: {} | undefined;
|
|
1130
|
-
query: {
|
|
1131
|
-
ids: number[];
|
|
1132
|
-
};
|
|
1133
|
-
fetch?: RequestInit | undefined;
|
|
1134
|
-
}) => Promise<Treaty.TreatyResponse<{
|
|
1135
|
-
200: {
|
|
1136
|
-
success: true;
|
|
1137
|
-
statusCode: number;
|
|
1138
|
-
data: null;
|
|
1139
|
-
message: string;
|
|
1140
|
-
error: null;
|
|
1141
|
-
meta: void 0;
|
|
1142
|
-
} | {
|
|
1143
|
-
success: false;
|
|
1144
|
-
statusCode: number;
|
|
1145
|
-
data: null;
|
|
1146
|
-
message: string;
|
|
1147
|
-
error: void 0;
|
|
1148
|
-
meta: void 0;
|
|
1149
|
-
};
|
|
1150
|
-
422: {
|
|
1151
|
-
type: "validation";
|
|
1152
|
-
on: string;
|
|
1153
|
-
summary?: string;
|
|
1154
|
-
message?: string;
|
|
1155
|
-
found?: unknown;
|
|
1156
|
-
property?: string;
|
|
1157
|
-
expected?: string;
|
|
1158
|
-
};
|
|
1159
|
-
}>>;
|
|
472
|
+
message: null;
|
|
473
|
+
error: null;
|
|
474
|
+
meta: TResponseMeta;
|
|
1160
475
|
};
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
476
|
+
422: {
|
|
477
|
+
type: "validation";
|
|
478
|
+
on: string;
|
|
479
|
+
summary?: string;
|
|
480
|
+
message?: string;
|
|
481
|
+
found?: unknown;
|
|
482
|
+
property?: string;
|
|
483
|
+
expected?: string;
|
|
484
|
+
};
|
|
485
|
+
}>>;
|
|
486
|
+
};
|
|
487
|
+
category: ((params: {
|
|
488
|
+
uuid: string | number;
|
|
489
|
+
}) => {
|
|
490
|
+
get: (options?: {
|
|
491
|
+
headers?: {} | undefined;
|
|
492
|
+
query?: {} | undefined;
|
|
493
|
+
fetch?: RequestInit | undefined;
|
|
494
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
495
|
+
200: {
|
|
496
|
+
success: false;
|
|
497
|
+
statusCode: number;
|
|
498
|
+
data: null;
|
|
499
|
+
message: string;
|
|
500
|
+
error: TResponseError;
|
|
501
|
+
meta: TResponseMeta;
|
|
502
|
+
} | {
|
|
503
|
+
success: true;
|
|
504
|
+
statusCode: number;
|
|
505
|
+
data: {
|
|
506
|
+
name: string;
|
|
507
|
+
uuid: string;
|
|
508
|
+
slug: string;
|
|
509
|
+
description: string | null;
|
|
510
|
+
createdAt: Date;
|
|
511
|
+
updatedAt: Date;
|
|
512
|
+
sub: {
|
|
1181
513
|
name: string;
|
|
1182
514
|
uuid: string;
|
|
1183
|
-
|
|
515
|
+
slug: string;
|
|
1184
516
|
description: string | null;
|
|
1185
|
-
createdAt: Date
|
|
1186
|
-
updatedAt: Date
|
|
1187
|
-
|
|
1188
|
-
mimeType: string;
|
|
1189
|
-
altText: string | null;
|
|
1190
|
-
};
|
|
1191
|
-
message: null;
|
|
1192
|
-
error: null;
|
|
1193
|
-
meta: void 0;
|
|
517
|
+
createdAt: Date;
|
|
518
|
+
updatedAt: Date;
|
|
519
|
+
}[];
|
|
1194
520
|
};
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
521
|
+
message: null;
|
|
522
|
+
error: null;
|
|
523
|
+
meta: TResponseMeta;
|
|
524
|
+
};
|
|
525
|
+
422: {
|
|
526
|
+
type: "validation";
|
|
527
|
+
on: string;
|
|
528
|
+
summary?: string;
|
|
529
|
+
message?: string;
|
|
530
|
+
found?: unknown;
|
|
531
|
+
property?: string;
|
|
532
|
+
expected?: string;
|
|
533
|
+
};
|
|
534
|
+
}>>;
|
|
535
|
+
post: (body: {
|
|
536
|
+
name: string;
|
|
537
|
+
description: string;
|
|
538
|
+
}, options?: {
|
|
539
|
+
headers?: {} | undefined;
|
|
540
|
+
query?: {} | undefined;
|
|
541
|
+
fetch?: RequestInit | undefined;
|
|
542
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
543
|
+
200: {
|
|
544
|
+
success: false;
|
|
545
|
+
statusCode: number;
|
|
546
|
+
data: null;
|
|
547
|
+
message: string;
|
|
548
|
+
error: TResponseError;
|
|
549
|
+
meta: TResponseMeta;
|
|
550
|
+
} | {
|
|
551
|
+
success: true;
|
|
552
|
+
statusCode: number;
|
|
553
|
+
data: {
|
|
554
|
+
uuid: string;
|
|
1203
555
|
};
|
|
1204
|
-
|
|
1205
|
-
|
|
556
|
+
message: null;
|
|
557
|
+
error: null;
|
|
558
|
+
meta: TResponseMeta;
|
|
559
|
+
};
|
|
560
|
+
422: {
|
|
561
|
+
type: "validation";
|
|
562
|
+
on: string;
|
|
563
|
+
summary?: string;
|
|
564
|
+
message?: string;
|
|
565
|
+
found?: unknown;
|
|
566
|
+
property?: string;
|
|
567
|
+
expected?: string;
|
|
568
|
+
};
|
|
569
|
+
}>>;
|
|
570
|
+
bulk: {
|
|
571
|
+
post: (body: {
|
|
572
|
+
parentUuid: string;
|
|
573
|
+
categories: {
|
|
574
|
+
name: string;
|
|
575
|
+
description: string;
|
|
576
|
+
}[];
|
|
577
|
+
}, options?: {
|
|
1206
578
|
headers?: {} | undefined;
|
|
1207
579
|
query?: {} | undefined;
|
|
1208
580
|
fetch?: RequestInit | undefined;
|
|
1209
581
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1210
582
|
200: {
|
|
1211
|
-
success:
|
|
583
|
+
success: false;
|
|
1212
584
|
statusCode: number;
|
|
1213
585
|
data: null;
|
|
1214
586
|
message: string;
|
|
1215
|
-
error:
|
|
1216
|
-
meta:
|
|
587
|
+
error: TResponseError;
|
|
588
|
+
meta: TResponseMeta;
|
|
1217
589
|
} | {
|
|
1218
|
-
success:
|
|
590
|
+
success: true;
|
|
1219
591
|
statusCode: number;
|
|
1220
|
-
data:
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
592
|
+
data: {
|
|
593
|
+
categories: {
|
|
594
|
+
uuid: string;
|
|
595
|
+
name: string;
|
|
596
|
+
description: string | null;
|
|
597
|
+
slug: string;
|
|
598
|
+
createdAt: Date;
|
|
599
|
+
updatedAt: Date;
|
|
600
|
+
}[];
|
|
601
|
+
};
|
|
602
|
+
message: null;
|
|
603
|
+
error: null;
|
|
604
|
+
meta: TResponseMeta;
|
|
1224
605
|
};
|
|
1225
606
|
422: {
|
|
1226
607
|
type: "validation";
|
|
@@ -1232,14 +613,154 @@ declare class ClientApi {
|
|
|
1232
613
|
expected?: string;
|
|
1233
614
|
};
|
|
1234
615
|
}>>;
|
|
1235
|
-
}
|
|
1236
|
-
|
|
616
|
+
};
|
|
617
|
+
patch: (body?: {
|
|
618
|
+
name?: string | undefined;
|
|
619
|
+
description?: string | undefined;
|
|
620
|
+
parentUuid?: string | undefined;
|
|
621
|
+
} | undefined, options?: {
|
|
622
|
+
headers?: {} | undefined;
|
|
623
|
+
query?: {} | undefined;
|
|
624
|
+
fetch?: RequestInit | undefined;
|
|
625
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
626
|
+
200: {
|
|
627
|
+
success: false;
|
|
628
|
+
statusCode: number;
|
|
629
|
+
data: null;
|
|
630
|
+
message: string;
|
|
631
|
+
error: TResponseError;
|
|
632
|
+
meta: TResponseMeta;
|
|
633
|
+
} | {
|
|
634
|
+
success: true;
|
|
635
|
+
statusCode: number;
|
|
636
|
+
data: {
|
|
637
|
+
uuid: string;
|
|
638
|
+
};
|
|
639
|
+
message: null;
|
|
640
|
+
error: null;
|
|
641
|
+
meta: TResponseMeta;
|
|
642
|
+
};
|
|
643
|
+
422: {
|
|
644
|
+
type: "validation";
|
|
645
|
+
on: string;
|
|
646
|
+
summary?: string;
|
|
647
|
+
message?: string;
|
|
648
|
+
found?: unknown;
|
|
649
|
+
property?: string;
|
|
650
|
+
expected?: string;
|
|
651
|
+
};
|
|
652
|
+
}>>;
|
|
653
|
+
delete: (body?: {} | undefined, options?: {
|
|
654
|
+
headers?: {} | undefined;
|
|
655
|
+
query?: {} | undefined;
|
|
656
|
+
fetch?: RequestInit | undefined;
|
|
657
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
658
|
+
200: {
|
|
659
|
+
success: true;
|
|
660
|
+
statusCode: number;
|
|
661
|
+
data: null;
|
|
662
|
+
message: string;
|
|
663
|
+
error: null;
|
|
664
|
+
meta: TResponseMeta;
|
|
665
|
+
} | {
|
|
666
|
+
success: false;
|
|
667
|
+
statusCode: number;
|
|
668
|
+
data: null;
|
|
669
|
+
message: string;
|
|
670
|
+
error: TResponseError;
|
|
671
|
+
meta: TResponseMeta;
|
|
672
|
+
};
|
|
673
|
+
422: {
|
|
674
|
+
type: "validation";
|
|
675
|
+
on: string;
|
|
676
|
+
summary?: string;
|
|
677
|
+
message?: string;
|
|
678
|
+
found?: unknown;
|
|
679
|
+
property?: string;
|
|
680
|
+
expected?: string;
|
|
681
|
+
};
|
|
682
|
+
}>>;
|
|
683
|
+
}) & {
|
|
684
|
+
get: (options?: {
|
|
685
|
+
headers?: {} | undefined;
|
|
686
|
+
query?: {} | undefined;
|
|
687
|
+
fetch?: RequestInit | undefined;
|
|
688
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
689
|
+
200: {
|
|
690
|
+
success: false;
|
|
691
|
+
statusCode: number;
|
|
692
|
+
data: null;
|
|
693
|
+
message: string;
|
|
694
|
+
error: TResponseError;
|
|
695
|
+
meta: TResponseMeta;
|
|
696
|
+
} | {
|
|
697
|
+
success: true;
|
|
698
|
+
statusCode: number;
|
|
699
|
+
data: {
|
|
700
|
+
name: string;
|
|
701
|
+
uuid: string;
|
|
702
|
+
slug: string;
|
|
703
|
+
description: string | null;
|
|
704
|
+
createdAt: Date;
|
|
705
|
+
updatedAt: Date;
|
|
706
|
+
sub: {
|
|
707
|
+
name: string;
|
|
708
|
+
uuid: string;
|
|
709
|
+
slug: string;
|
|
710
|
+
description: string | null;
|
|
711
|
+
createdAt: Date;
|
|
712
|
+
updatedAt: Date;
|
|
713
|
+
}[];
|
|
714
|
+
}[];
|
|
715
|
+
message: null;
|
|
716
|
+
error: null;
|
|
717
|
+
meta: TResponseMeta;
|
|
718
|
+
};
|
|
719
|
+
}>>;
|
|
720
|
+
post: (body: {
|
|
721
|
+
name: string;
|
|
722
|
+
description: string;
|
|
723
|
+
}, options?: {
|
|
724
|
+
headers?: {} | undefined;
|
|
725
|
+
query?: {} | undefined;
|
|
726
|
+
fetch?: RequestInit | undefined;
|
|
727
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
728
|
+
200: {
|
|
729
|
+
success: false;
|
|
730
|
+
statusCode: number;
|
|
731
|
+
data: null;
|
|
732
|
+
message: string;
|
|
733
|
+
error: TResponseError;
|
|
734
|
+
meta: TResponseMeta;
|
|
735
|
+
} | {
|
|
736
|
+
success: true;
|
|
737
|
+
statusCode: number;
|
|
738
|
+
data: {
|
|
739
|
+
uuid: string;
|
|
740
|
+
};
|
|
741
|
+
message: null;
|
|
742
|
+
error: null;
|
|
743
|
+
meta: TResponseMeta;
|
|
744
|
+
};
|
|
745
|
+
422: {
|
|
746
|
+
type: "validation";
|
|
747
|
+
on: string;
|
|
748
|
+
summary?: string;
|
|
749
|
+
message?: string;
|
|
750
|
+
found?: unknown;
|
|
751
|
+
property?: string;
|
|
752
|
+
expected?: string;
|
|
753
|
+
};
|
|
754
|
+
}>>;
|
|
755
|
+
bulk: {
|
|
756
|
+
post: (body: {
|
|
757
|
+
categories: {
|
|
758
|
+
name: string;
|
|
759
|
+
description: string;
|
|
760
|
+
}[];
|
|
761
|
+
}, options?: {
|
|
1237
762
|
headers?: {} | undefined;
|
|
1238
|
-
query?: {
|
|
1239
|
-
page?: number | undefined;
|
|
1240
|
-
limit?: number | undefined;
|
|
1241
|
-
search?: string | undefined;
|
|
1242
|
-
} | undefined;
|
|
763
|
+
query?: {} | undefined;
|
|
1243
764
|
fetch?: RequestInit | undefined;
|
|
1244
765
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1245
766
|
200: {
|
|
@@ -1247,35 +768,24 @@ declare class ClientApi {
|
|
|
1247
768
|
statusCode: number;
|
|
1248
769
|
data: null;
|
|
1249
770
|
message: string;
|
|
1250
|
-
error:
|
|
1251
|
-
meta:
|
|
771
|
+
error: TResponseError;
|
|
772
|
+
meta: TResponseMeta;
|
|
1252
773
|
} | {
|
|
1253
774
|
success: true;
|
|
1254
775
|
statusCode: number;
|
|
1255
776
|
data: {
|
|
1256
|
-
|
|
1257
|
-
name: string;
|
|
777
|
+
categories: {
|
|
1258
778
|
uuid: string;
|
|
1259
|
-
|
|
779
|
+
name: string;
|
|
1260
780
|
description: string | null;
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
mimeType: string;
|
|
1265
|
-
altText: string | null;
|
|
781
|
+
slug: string;
|
|
782
|
+
createdAt: Date;
|
|
783
|
+
updatedAt: Date;
|
|
1266
784
|
}[];
|
|
1267
|
-
pagination: {
|
|
1268
|
-
page: number;
|
|
1269
|
-
limit: number;
|
|
1270
|
-
total: number;
|
|
1271
|
-
totalPages: number;
|
|
1272
|
-
hasNextPage: boolean;
|
|
1273
|
-
hasPreviousPage: boolean;
|
|
1274
|
-
};
|
|
1275
785
|
};
|
|
1276
786
|
message: null;
|
|
1277
787
|
error: null;
|
|
1278
|
-
meta:
|
|
788
|
+
meta: TResponseMeta;
|
|
1279
789
|
};
|
|
1280
790
|
422: {
|
|
1281
791
|
type: "validation";
|
|
@@ -1287,48 +797,27 @@ declare class ClientApi {
|
|
|
1287
797
|
expected?: string;
|
|
1288
798
|
};
|
|
1289
799
|
}>>;
|
|
1290
|
-
|
|
1291
|
-
name: string;
|
|
1292
|
-
size: number;
|
|
1293
|
-
mimeType: void 0;
|
|
1294
|
-
altText: string;
|
|
1295
|
-
description: string;
|
|
1296
|
-
}, options?: {
|
|
800
|
+
delete: (body: {}, options: {
|
|
1297
801
|
headers?: {} | undefined;
|
|
1298
|
-
query
|
|
802
|
+
query: {
|
|
803
|
+
uuids: string[];
|
|
804
|
+
};
|
|
1299
805
|
fetch?: RequestInit | undefined;
|
|
1300
|
-
}
|
|
806
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
1301
807
|
200: {
|
|
1302
|
-
success:
|
|
808
|
+
success: true;
|
|
1303
809
|
statusCode: number;
|
|
1304
810
|
data: null;
|
|
1305
811
|
message: string;
|
|
1306
|
-
error:
|
|
1307
|
-
meta:
|
|
812
|
+
error: null;
|
|
813
|
+
meta: TResponseMeta;
|
|
1308
814
|
} | {
|
|
1309
|
-
success:
|
|
815
|
+
success: false;
|
|
1310
816
|
statusCode: number;
|
|
1311
|
-
data:
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
path: string;
|
|
1316
|
-
description: string | null;
|
|
1317
|
-
createdAt: Date | null;
|
|
1318
|
-
updatedAt: Date | null;
|
|
1319
|
-
size: number;
|
|
1320
|
-
mimeType: string;
|
|
1321
|
-
altText: string | null;
|
|
1322
|
-
}[];
|
|
1323
|
-
preSignedUrls: {
|
|
1324
|
-
uuid: string;
|
|
1325
|
-
order: number;
|
|
1326
|
-
preSignedUrl: string;
|
|
1327
|
-
}[];
|
|
1328
|
-
};
|
|
1329
|
-
message: null;
|
|
1330
|
-
error: null;
|
|
1331
|
-
meta: void 0;
|
|
817
|
+
data: null;
|
|
818
|
+
message: string;
|
|
819
|
+
error: TResponseError;
|
|
820
|
+
meta: TResponseMeta;
|
|
1332
821
|
};
|
|
1333
822
|
422: {
|
|
1334
823
|
type: "validation";
|
|
@@ -1340,164 +829,144 @@ declare class ClientApi {
|
|
|
1340
829
|
expected?: string;
|
|
1341
830
|
};
|
|
1342
831
|
}>>;
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
headers?: {} | undefined;
|
|
1353
|
-
query?: {} | undefined;
|
|
1354
|
-
fetch?: RequestInit | undefined;
|
|
1355
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1356
|
-
200: {
|
|
1357
|
-
success: false;
|
|
1358
|
-
statusCode: number;
|
|
1359
|
-
data: null;
|
|
1360
|
-
message: string;
|
|
1361
|
-
error: void 0;
|
|
1362
|
-
meta: void 0;
|
|
1363
|
-
} | {
|
|
1364
|
-
success: true;
|
|
1365
|
-
statusCode: number;
|
|
1366
|
-
data: {
|
|
1367
|
-
files: {
|
|
1368
|
-
name: string;
|
|
1369
|
-
uuid: string;
|
|
1370
|
-
path: string;
|
|
1371
|
-
description: string | null;
|
|
1372
|
-
createdAt: Date | null;
|
|
1373
|
-
updatedAt: Date | null;
|
|
1374
|
-
size: number;
|
|
1375
|
-
mimeType: string;
|
|
1376
|
-
altText: string | null;
|
|
1377
|
-
}[];
|
|
1378
|
-
preSignedUrls: {
|
|
1379
|
-
uuid: string;
|
|
1380
|
-
order: number;
|
|
1381
|
-
preSignedUrl: string;
|
|
1382
|
-
}[];
|
|
1383
|
-
};
|
|
1384
|
-
message: null;
|
|
1385
|
-
error: null;
|
|
1386
|
-
meta: void 0;
|
|
1387
|
-
};
|
|
1388
|
-
422: {
|
|
1389
|
-
type: "validation";
|
|
1390
|
-
on: string;
|
|
1391
|
-
summary?: string;
|
|
1392
|
-
message?: string;
|
|
1393
|
-
found?: unknown;
|
|
1394
|
-
property?: string;
|
|
1395
|
-
expected?: string;
|
|
1396
|
-
};
|
|
1397
|
-
}>>;
|
|
1398
|
-
delete: (body?: unknown, options?: {
|
|
1399
|
-
headers?: Record<string, unknown> | undefined;
|
|
1400
|
-
query?: Record<string, unknown> | undefined;
|
|
1401
|
-
fetch?: RequestInit | undefined;
|
|
1402
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{}>>;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
currency: ((params: {
|
|
835
|
+
id: string | number;
|
|
836
|
+
}) => {
|
|
837
|
+
get: (options: {
|
|
838
|
+
headers?: {} | undefined;
|
|
839
|
+
query: {
|
|
840
|
+
id: number;
|
|
1403
841
|
};
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
entityUuid: string | null;
|
|
1428
|
-
entityId: string | null;
|
|
1429
|
-
};
|
|
1430
|
-
message: null;
|
|
1431
|
-
error: null;
|
|
1432
|
-
meta: void 0;
|
|
1433
|
-
};
|
|
1434
|
-
422: {
|
|
1435
|
-
type: "validation";
|
|
1436
|
-
on: string;
|
|
1437
|
-
summary?: string;
|
|
1438
|
-
message?: string;
|
|
1439
|
-
found?: unknown;
|
|
1440
|
-
property?: string;
|
|
1441
|
-
expected?: string;
|
|
1442
|
-
};
|
|
1443
|
-
}>>;
|
|
842
|
+
fetch?: RequestInit | undefined;
|
|
843
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
844
|
+
200: {
|
|
845
|
+
success: false;
|
|
846
|
+
statusCode: number;
|
|
847
|
+
data: null;
|
|
848
|
+
message: string;
|
|
849
|
+
error: TResponseError;
|
|
850
|
+
meta: TResponseMeta;
|
|
851
|
+
} | {
|
|
852
|
+
success: true;
|
|
853
|
+
statusCode: number;
|
|
854
|
+
data: {
|
|
855
|
+
name: string;
|
|
856
|
+
createdAt: Date | null;
|
|
857
|
+
updatedAt: Date | null;
|
|
858
|
+
id: number;
|
|
859
|
+
code: string;
|
|
860
|
+
exchangeRate: number;
|
|
861
|
+
};
|
|
862
|
+
message: null;
|
|
863
|
+
error: null;
|
|
864
|
+
meta: TResponseMeta;
|
|
1444
865
|
};
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
query?: {} | undefined;
|
|
1454
|
-
fetch?: RequestInit | undefined;
|
|
1455
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1456
|
-
200: {
|
|
1457
|
-
success: false;
|
|
1458
|
-
statusCode: number;
|
|
1459
|
-
data: null;
|
|
1460
|
-
message: string;
|
|
1461
|
-
error: void 0;
|
|
1462
|
-
meta: void 0;
|
|
1463
|
-
} | {
|
|
1464
|
-
success: true;
|
|
1465
|
-
statusCode: number;
|
|
1466
|
-
data: {
|
|
1467
|
-
mediaUuid: string;
|
|
1468
|
-
entityUuid: string;
|
|
1469
|
-
entityId: null;
|
|
1470
|
-
};
|
|
1471
|
-
message: null;
|
|
1472
|
-
error: null;
|
|
1473
|
-
meta: void 0;
|
|
1474
|
-
} | {
|
|
1475
|
-
success: true;
|
|
1476
|
-
statusCode: number;
|
|
1477
|
-
data: {
|
|
1478
|
-
mediaUuid: string;
|
|
1479
|
-
entityUuid: null;
|
|
1480
|
-
entityId: null;
|
|
1481
|
-
};
|
|
1482
|
-
message: null;
|
|
1483
|
-
error: null;
|
|
1484
|
-
meta: void 0;
|
|
1485
|
-
};
|
|
1486
|
-
422: {
|
|
1487
|
-
type: "validation";
|
|
1488
|
-
on: string;
|
|
1489
|
-
summary?: string;
|
|
1490
|
-
message?: string;
|
|
1491
|
-
found?: unknown;
|
|
1492
|
-
property?: string;
|
|
1493
|
-
expected?: string;
|
|
1494
|
-
};
|
|
1495
|
-
}>>;
|
|
866
|
+
422: {
|
|
867
|
+
type: "validation";
|
|
868
|
+
on: string;
|
|
869
|
+
summary?: string;
|
|
870
|
+
message?: string;
|
|
871
|
+
found?: unknown;
|
|
872
|
+
property?: string;
|
|
873
|
+
expected?: string;
|
|
1496
874
|
};
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
875
|
+
}>>;
|
|
876
|
+
patch: (body?: {
|
|
877
|
+
code?: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL" | undefined;
|
|
878
|
+
name?: string | undefined;
|
|
879
|
+
exchangeRate?: number | undefined;
|
|
880
|
+
} | undefined, options?: {
|
|
881
|
+
headers?: {} | undefined;
|
|
882
|
+
query?: {} | undefined;
|
|
883
|
+
fetch?: RequestInit | undefined;
|
|
884
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
885
|
+
200: {
|
|
886
|
+
success: true;
|
|
887
|
+
statusCode: number;
|
|
888
|
+
data: null;
|
|
889
|
+
message: string;
|
|
890
|
+
error: null;
|
|
891
|
+
meta: TResponseMeta;
|
|
892
|
+
} | {
|
|
893
|
+
success: false;
|
|
894
|
+
statusCode: number;
|
|
895
|
+
data: null;
|
|
896
|
+
message: string;
|
|
897
|
+
error: TResponseError;
|
|
898
|
+
meta: TResponseMeta;
|
|
899
|
+
};
|
|
900
|
+
422: {
|
|
901
|
+
type: "validation";
|
|
902
|
+
on: string;
|
|
903
|
+
summary?: string;
|
|
904
|
+
message?: string;
|
|
905
|
+
found?: unknown;
|
|
906
|
+
property?: string;
|
|
907
|
+
expected?: string;
|
|
908
|
+
};
|
|
909
|
+
}>>;
|
|
910
|
+
delete: (body?: {} | undefined, options?: {
|
|
911
|
+
headers?: {} | undefined;
|
|
912
|
+
query?: {} | undefined;
|
|
913
|
+
fetch?: RequestInit | undefined;
|
|
914
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
915
|
+
200: {
|
|
916
|
+
success: true;
|
|
917
|
+
statusCode: number;
|
|
918
|
+
data: null;
|
|
919
|
+
message: string;
|
|
920
|
+
error: null;
|
|
921
|
+
meta: TResponseMeta;
|
|
922
|
+
} | {
|
|
923
|
+
success: false;
|
|
924
|
+
statusCode: number;
|
|
925
|
+
data: null;
|
|
926
|
+
message: string;
|
|
927
|
+
error: TResponseError;
|
|
928
|
+
meta: TResponseMeta;
|
|
929
|
+
};
|
|
930
|
+
422: {
|
|
931
|
+
type: "validation";
|
|
932
|
+
on: string;
|
|
933
|
+
summary?: string;
|
|
934
|
+
message?: string;
|
|
935
|
+
found?: unknown;
|
|
936
|
+
property?: string;
|
|
937
|
+
expected?: string;
|
|
938
|
+
};
|
|
939
|
+
}>>;
|
|
940
|
+
}) & {
|
|
941
|
+
get: (options?: {
|
|
942
|
+
headers?: {} | undefined;
|
|
943
|
+
query?: {} | undefined;
|
|
944
|
+
fetch?: RequestInit | undefined;
|
|
945
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
946
|
+
200: {
|
|
947
|
+
success: false;
|
|
948
|
+
statusCode: number;
|
|
949
|
+
data: null;
|
|
950
|
+
message: string;
|
|
951
|
+
error: TResponseError;
|
|
952
|
+
meta: TResponseMeta;
|
|
953
|
+
} | {
|
|
954
|
+
success: true;
|
|
955
|
+
statusCode: number;
|
|
956
|
+
data: {
|
|
957
|
+
name: string;
|
|
958
|
+
createdAt: Date | null;
|
|
959
|
+
updatedAt: Date | null;
|
|
960
|
+
id: number;
|
|
961
|
+
code: string;
|
|
962
|
+
exchangeRate: number;
|
|
963
|
+
}[];
|
|
964
|
+
message: null;
|
|
965
|
+
error: null;
|
|
966
|
+
meta: TResponseMeta;
|
|
967
|
+
};
|
|
968
|
+
}>>;
|
|
969
|
+
count: {
|
|
1501
970
|
get: (options?: {
|
|
1502
971
|
headers?: {} | undefined;
|
|
1503
972
|
query?: {} | undefined;
|
|
@@ -1508,56 +977,92 @@ declare class ClientApi {
|
|
|
1508
977
|
statusCode: number;
|
|
1509
978
|
data: null;
|
|
1510
979
|
message: string;
|
|
1511
|
-
error:
|
|
1512
|
-
meta:
|
|
980
|
+
error: TResponseError;
|
|
981
|
+
meta: TResponseMeta;
|
|
1513
982
|
} | {
|
|
1514
983
|
success: true;
|
|
1515
984
|
statusCode: number;
|
|
1516
|
-
data:
|
|
1517
|
-
name: string;
|
|
1518
|
-
uuid: string;
|
|
1519
|
-
slug: string;
|
|
1520
|
-
description: string | null;
|
|
1521
|
-
createdAt: Date | null;
|
|
1522
|
-
updatedAt: Date | null;
|
|
1523
|
-
productTotal: number;
|
|
1524
|
-
};
|
|
985
|
+
data: number;
|
|
1525
986
|
message: null;
|
|
1526
987
|
error: null;
|
|
1527
|
-
meta:
|
|
1528
|
-
};
|
|
1529
|
-
422: {
|
|
1530
|
-
type: "validation";
|
|
1531
|
-
on: string;
|
|
1532
|
-
summary?: string;
|
|
1533
|
-
message?: string;
|
|
1534
|
-
found?: unknown;
|
|
1535
|
-
property?: string;
|
|
1536
|
-
expected?: string;
|
|
988
|
+
meta: TResponseMeta;
|
|
1537
989
|
};
|
|
1538
990
|
}>>;
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
991
|
+
};
|
|
992
|
+
post: (body: {
|
|
993
|
+
code: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
994
|
+
name: string;
|
|
995
|
+
exchangeRate: number;
|
|
996
|
+
}, options?: {
|
|
997
|
+
headers?: {} | undefined;
|
|
998
|
+
query?: {} | undefined;
|
|
999
|
+
fetch?: RequestInit | undefined;
|
|
1000
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1001
|
+
200: {
|
|
1002
|
+
success: false;
|
|
1003
|
+
statusCode: number;
|
|
1004
|
+
data: null;
|
|
1005
|
+
message: string;
|
|
1006
|
+
error: TResponseError;
|
|
1007
|
+
meta: TResponseMeta;
|
|
1008
|
+
} | {
|
|
1009
|
+
success: true;
|
|
1010
|
+
statusCode: number;
|
|
1011
|
+
data: {
|
|
1012
|
+
id: number;
|
|
1013
|
+
name: string;
|
|
1014
|
+
code: string;
|
|
1015
|
+
exchangeRate: number;
|
|
1016
|
+
createdAt: Date | null;
|
|
1017
|
+
updatedAt: Date | null;
|
|
1018
|
+
}[];
|
|
1019
|
+
message: null;
|
|
1020
|
+
error: null;
|
|
1021
|
+
meta: TResponseMeta;
|
|
1022
|
+
};
|
|
1023
|
+
422: {
|
|
1024
|
+
type: "validation";
|
|
1025
|
+
on: string;
|
|
1026
|
+
summary?: string;
|
|
1027
|
+
message?: string;
|
|
1028
|
+
found?: unknown;
|
|
1029
|
+
property?: string;
|
|
1030
|
+
expected?: string;
|
|
1031
|
+
};
|
|
1032
|
+
}>>;
|
|
1033
|
+
bulk: {
|
|
1034
|
+
post: (body: {
|
|
1035
|
+
currencies: {
|
|
1036
|
+
code: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GGP" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "IMP" | "INR" | "IQD" | "IRR" | "ISK" | "JEP" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "STN" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TVD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VED" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XDR" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
1037
|
+
name: string;
|
|
1038
|
+
exchangeRate: number;
|
|
1039
|
+
}[];
|
|
1040
|
+
}, options?: {
|
|
1543
1041
|
headers?: {} | undefined;
|
|
1544
1042
|
query?: {} | undefined;
|
|
1545
1043
|
fetch?: RequestInit | undefined;
|
|
1546
1044
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1547
1045
|
200: {
|
|
1548
|
-
success:
|
|
1046
|
+
success: false;
|
|
1549
1047
|
statusCode: number;
|
|
1550
1048
|
data: null;
|
|
1551
1049
|
message: string;
|
|
1552
|
-
error:
|
|
1553
|
-
meta:
|
|
1050
|
+
error: TResponseError;
|
|
1051
|
+
meta: TResponseMeta;
|
|
1554
1052
|
} | {
|
|
1555
|
-
success:
|
|
1053
|
+
success: true;
|
|
1556
1054
|
statusCode: number;
|
|
1557
|
-
data:
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1055
|
+
data: {
|
|
1056
|
+
id: number;
|
|
1057
|
+
name: string;
|
|
1058
|
+
code: string;
|
|
1059
|
+
exchangeRate: number;
|
|
1060
|
+
createdAt: Date | null;
|
|
1061
|
+
updatedAt: Date | null;
|
|
1062
|
+
}[];
|
|
1063
|
+
message: null;
|
|
1064
|
+
error: null;
|
|
1065
|
+
meta: TResponseMeta;
|
|
1561
1066
|
};
|
|
1562
1067
|
422: {
|
|
1563
1068
|
type: "validation";
|
|
@@ -1569,25 +1074,27 @@ declare class ClientApi {
|
|
|
1569
1074
|
expected?: string;
|
|
1570
1075
|
};
|
|
1571
1076
|
}>>;
|
|
1572
|
-
delete: (body
|
|
1077
|
+
delete: (body: {}, options: {
|
|
1573
1078
|
headers?: {} | undefined;
|
|
1574
|
-
query
|
|
1079
|
+
query: {
|
|
1080
|
+
ids: number[];
|
|
1081
|
+
};
|
|
1575
1082
|
fetch?: RequestInit | undefined;
|
|
1576
|
-
}
|
|
1083
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
1577
1084
|
200: {
|
|
1578
1085
|
success: true;
|
|
1579
1086
|
statusCode: number;
|
|
1580
1087
|
data: null;
|
|
1581
1088
|
message: string;
|
|
1582
1089
|
error: null;
|
|
1583
|
-
meta:
|
|
1090
|
+
meta: TResponseMeta;
|
|
1584
1091
|
} | {
|
|
1585
1092
|
success: false;
|
|
1586
1093
|
statusCode: number;
|
|
1587
1094
|
data: null;
|
|
1588
1095
|
message: string;
|
|
1589
|
-
error:
|
|
1590
|
-
meta:
|
|
1096
|
+
error: TResponseError;
|
|
1097
|
+
meta: TResponseMeta;
|
|
1591
1098
|
};
|
|
1592
1099
|
422: {
|
|
1593
1100
|
type: "validation";
|
|
@@ -1599,73 +1106,197 @@ declare class ClientApi {
|
|
|
1599
1106
|
expected?: string;
|
|
1600
1107
|
};
|
|
1601
1108
|
}>>;
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1109
|
+
};
|
|
1110
|
+
};
|
|
1111
|
+
media: ((params: {
|
|
1112
|
+
uuid: string | number;
|
|
1113
|
+
}) => {
|
|
1114
|
+
get: (options?: {
|
|
1115
|
+
headers?: {} | undefined;
|
|
1116
|
+
query?: {} | undefined;
|
|
1117
|
+
fetch?: RequestInit | undefined;
|
|
1118
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1119
|
+
200: {
|
|
1120
|
+
success: false;
|
|
1121
|
+
statusCode: number;
|
|
1122
|
+
data: null;
|
|
1123
|
+
message: string;
|
|
1124
|
+
error: TResponseError;
|
|
1125
|
+
meta: TResponseMeta;
|
|
1126
|
+
} | {
|
|
1127
|
+
success: true;
|
|
1128
|
+
statusCode: number;
|
|
1129
|
+
data: {
|
|
1130
|
+
name: string;
|
|
1131
|
+
uuid: string;
|
|
1132
|
+
path: string;
|
|
1133
|
+
description: string | null;
|
|
1134
|
+
createdAt: Date | null;
|
|
1135
|
+
updatedAt: Date | null;
|
|
1136
|
+
size: number;
|
|
1137
|
+
mimeType: string;
|
|
1138
|
+
altText: string | null;
|
|
1139
|
+
};
|
|
1140
|
+
message: null;
|
|
1141
|
+
error: null;
|
|
1142
|
+
meta: TResponseMeta;
|
|
1143
|
+
};
|
|
1144
|
+
422: {
|
|
1145
|
+
type: "validation";
|
|
1146
|
+
on: string;
|
|
1147
|
+
summary?: string;
|
|
1148
|
+
message?: string;
|
|
1149
|
+
found?: unknown;
|
|
1150
|
+
property?: string;
|
|
1151
|
+
expected?: string;
|
|
1152
|
+
};
|
|
1153
|
+
}>>;
|
|
1154
|
+
delete: (body?: {} | undefined, options?: {
|
|
1155
|
+
headers?: {} | undefined;
|
|
1156
|
+
query?: {} | undefined;
|
|
1157
|
+
fetch?: RequestInit | undefined;
|
|
1158
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1159
|
+
200: {
|
|
1160
|
+
success: true;
|
|
1161
|
+
statusCode: number;
|
|
1162
|
+
data: null;
|
|
1163
|
+
message: string;
|
|
1164
|
+
error: null;
|
|
1165
|
+
meta: TResponseMeta;
|
|
1166
|
+
} | {
|
|
1167
|
+
success: false;
|
|
1168
|
+
statusCode: number;
|
|
1169
|
+
data: null;
|
|
1170
|
+
message: string;
|
|
1171
|
+
error: TResponseError;
|
|
1172
|
+
meta: TResponseMeta;
|
|
1173
|
+
};
|
|
1174
|
+
422: {
|
|
1175
|
+
type: "validation";
|
|
1176
|
+
on: string;
|
|
1177
|
+
summary?: string;
|
|
1178
|
+
message?: string;
|
|
1179
|
+
found?: unknown;
|
|
1180
|
+
property?: string;
|
|
1181
|
+
expected?: string;
|
|
1182
|
+
};
|
|
1183
|
+
}>>;
|
|
1184
|
+
}) & {
|
|
1185
|
+
get: (options?: {
|
|
1186
|
+
headers?: {} | undefined;
|
|
1187
|
+
query?: {
|
|
1188
|
+
page?: number | undefined;
|
|
1189
|
+
limit?: number | undefined;
|
|
1190
|
+
search?: string | undefined;
|
|
1191
|
+
} | undefined;
|
|
1192
|
+
fetch?: RequestInit | undefined;
|
|
1193
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1194
|
+
200: {
|
|
1195
|
+
success: false;
|
|
1196
|
+
statusCode: number;
|
|
1197
|
+
data: null;
|
|
1198
|
+
message: string;
|
|
1199
|
+
error: TResponseError;
|
|
1200
|
+
meta: TResponseMeta;
|
|
1201
|
+
} | {
|
|
1202
|
+
success: true;
|
|
1203
|
+
statusCode: number;
|
|
1204
|
+
data: {
|
|
1618
1205
|
data: {
|
|
1619
1206
|
name: string;
|
|
1620
1207
|
uuid: string;
|
|
1621
|
-
|
|
1208
|
+
path: string;
|
|
1622
1209
|
description: string | null;
|
|
1623
1210
|
createdAt: Date | null;
|
|
1624
1211
|
updatedAt: Date | null;
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
updatedAt: Date | null;
|
|
1629
|
-
media: {
|
|
1630
|
-
name: string;
|
|
1631
|
-
uuid: string;
|
|
1632
|
-
path: string;
|
|
1633
|
-
createdAt: Date | null;
|
|
1634
|
-
updatedAt: Date | null;
|
|
1635
|
-
};
|
|
1636
|
-
};
|
|
1212
|
+
size: number;
|
|
1213
|
+
mimeType: string;
|
|
1214
|
+
altText: string | null;
|
|
1637
1215
|
}[];
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
headers?: {} | undefined;
|
|
1646
|
-
query?: {} | undefined;
|
|
1647
|
-
fetch?: RequestInit | undefined;
|
|
1648
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1649
|
-
200: {
|
|
1650
|
-
success: false;
|
|
1651
|
-
statusCode: number;
|
|
1652
|
-
data: null;
|
|
1653
|
-
message: string;
|
|
1654
|
-
error: void 0;
|
|
1655
|
-
meta: void 0;
|
|
1656
|
-
} | {
|
|
1657
|
-
success: true;
|
|
1658
|
-
statusCode: number;
|
|
1659
|
-
data: number;
|
|
1660
|
-
message: null;
|
|
1661
|
-
error: null;
|
|
1662
|
-
meta: void 0;
|
|
1216
|
+
pagination: {
|
|
1217
|
+
page: number;
|
|
1218
|
+
limit: number;
|
|
1219
|
+
total: number;
|
|
1220
|
+
totalPages: number;
|
|
1221
|
+
hasNextPage: boolean;
|
|
1222
|
+
hasPreviousPage: boolean;
|
|
1663
1223
|
};
|
|
1664
|
-
}
|
|
1224
|
+
};
|
|
1225
|
+
message: null;
|
|
1226
|
+
error: null;
|
|
1227
|
+
meta: TResponseMeta;
|
|
1228
|
+
};
|
|
1229
|
+
422: {
|
|
1230
|
+
type: "validation";
|
|
1231
|
+
on: string;
|
|
1232
|
+
summary?: string;
|
|
1233
|
+
message?: string;
|
|
1234
|
+
found?: unknown;
|
|
1235
|
+
property?: string;
|
|
1236
|
+
expected?: string;
|
|
1237
|
+
};
|
|
1238
|
+
}>>;
|
|
1239
|
+
post: (body: {
|
|
1240
|
+
name: string;
|
|
1241
|
+
size: number;
|
|
1242
|
+
mimeType: EMimeType;
|
|
1243
|
+
altText: string;
|
|
1244
|
+
description: string;
|
|
1245
|
+
}, options?: {
|
|
1246
|
+
headers?: {} | undefined;
|
|
1247
|
+
query?: {} | undefined;
|
|
1248
|
+
fetch?: RequestInit | undefined;
|
|
1249
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1250
|
+
200: {
|
|
1251
|
+
success: false;
|
|
1252
|
+
statusCode: number;
|
|
1253
|
+
data: null;
|
|
1254
|
+
message: string;
|
|
1255
|
+
error: TResponseError;
|
|
1256
|
+
meta: TResponseMeta;
|
|
1257
|
+
} | {
|
|
1258
|
+
success: true;
|
|
1259
|
+
statusCode: number;
|
|
1260
|
+
data: {
|
|
1261
|
+
files: {
|
|
1262
|
+
name: string;
|
|
1263
|
+
uuid: string;
|
|
1264
|
+
path: string;
|
|
1265
|
+
description: string | null;
|
|
1266
|
+
createdAt: Date | null;
|
|
1267
|
+
updatedAt: Date | null;
|
|
1268
|
+
size: number;
|
|
1269
|
+
mimeType: string;
|
|
1270
|
+
altText: string | null;
|
|
1271
|
+
}[];
|
|
1272
|
+
preSignedUrls: {
|
|
1273
|
+
uuid: string;
|
|
1274
|
+
order: number;
|
|
1275
|
+
preSignedUrl: string;
|
|
1276
|
+
}[];
|
|
1277
|
+
};
|
|
1278
|
+
message: null;
|
|
1279
|
+
error: null;
|
|
1280
|
+
meta: TResponseMeta;
|
|
1665
1281
|
};
|
|
1282
|
+
422: {
|
|
1283
|
+
type: "validation";
|
|
1284
|
+
on: string;
|
|
1285
|
+
summary?: string;
|
|
1286
|
+
message?: string;
|
|
1287
|
+
found?: unknown;
|
|
1288
|
+
property?: string;
|
|
1289
|
+
expected?: string;
|
|
1290
|
+
};
|
|
1291
|
+
}>>;
|
|
1292
|
+
bulk: {
|
|
1666
1293
|
post: (body: {
|
|
1667
|
-
|
|
1668
|
-
|
|
1294
|
+
files: {
|
|
1295
|
+
uuid: string;
|
|
1296
|
+
name: string;
|
|
1297
|
+
mimeType: EMimeType;
|
|
1298
|
+
size: number;
|
|
1299
|
+
}[];
|
|
1669
1300
|
}, options?: {
|
|
1670
1301
|
headers?: {} | undefined;
|
|
1671
1302
|
query?: {} | undefined;
|
|
@@ -1676,24 +1307,32 @@ declare class ClientApi {
|
|
|
1676
1307
|
statusCode: number;
|
|
1677
1308
|
data: null;
|
|
1678
1309
|
message: string;
|
|
1679
|
-
error:
|
|
1680
|
-
meta:
|
|
1310
|
+
error: TResponseError;
|
|
1311
|
+
meta: TResponseMeta;
|
|
1681
1312
|
} | {
|
|
1682
1313
|
success: true;
|
|
1683
1314
|
statusCode: number;
|
|
1684
1315
|
data: {
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1316
|
+
files: {
|
|
1317
|
+
name: string;
|
|
1318
|
+
uuid: string;
|
|
1319
|
+
path: string;
|
|
1320
|
+
description: string | null;
|
|
1321
|
+
createdAt: Date | null;
|
|
1322
|
+
updatedAt: Date | null;
|
|
1323
|
+
size: number;
|
|
1324
|
+
mimeType: string;
|
|
1325
|
+
altText: string | null;
|
|
1326
|
+
}[];
|
|
1327
|
+
preSignedUrls: {
|
|
1328
|
+
uuid: string;
|
|
1329
|
+
order: number;
|
|
1330
|
+
preSignedUrl: string;
|
|
1331
|
+
}[];
|
|
1693
1332
|
};
|
|
1694
1333
|
message: null;
|
|
1695
1334
|
error: null;
|
|
1696
|
-
meta:
|
|
1335
|
+
meta: TResponseMeta;
|
|
1697
1336
|
};
|
|
1698
1337
|
422: {
|
|
1699
1338
|
type: "validation";
|
|
@@ -1705,89 +1344,19 @@ declare class ClientApi {
|
|
|
1705
1344
|
expected?: string;
|
|
1706
1345
|
};
|
|
1707
1346
|
}>>;
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
}[];
|
|
1714
|
-
}, options?: {
|
|
1715
|
-
headers?: {} | undefined;
|
|
1716
|
-
query?: {} | undefined;
|
|
1717
|
-
fetch?: RequestInit | undefined;
|
|
1718
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1719
|
-
200: {
|
|
1720
|
-
success: false;
|
|
1721
|
-
statusCode: number;
|
|
1722
|
-
data: null;
|
|
1723
|
-
message: string;
|
|
1724
|
-
error: void 0;
|
|
1725
|
-
meta: void 0;
|
|
1726
|
-
} | {
|
|
1727
|
-
success: true;
|
|
1728
|
-
statusCode: number;
|
|
1729
|
-
data: {
|
|
1730
|
-
media: null;
|
|
1731
|
-
uuid: string;
|
|
1732
|
-
name: string;
|
|
1733
|
-
slug: string;
|
|
1734
|
-
description: string | null;
|
|
1735
|
-
productTotal: number;
|
|
1736
|
-
createdAt: Date | null;
|
|
1737
|
-
updatedAt: Date | null;
|
|
1738
|
-
}[];
|
|
1739
|
-
message: null;
|
|
1740
|
-
error: null;
|
|
1741
|
-
meta: void 0;
|
|
1742
|
-
};
|
|
1743
|
-
422: {
|
|
1744
|
-
type: "validation";
|
|
1745
|
-
on: string;
|
|
1746
|
-
summary?: string;
|
|
1747
|
-
message?: string;
|
|
1748
|
-
found?: unknown;
|
|
1749
|
-
property?: string;
|
|
1750
|
-
expected?: string;
|
|
1751
|
-
};
|
|
1752
|
-
}>>;
|
|
1753
|
-
delete: (body: {}, options: {
|
|
1754
|
-
headers?: {} | undefined;
|
|
1755
|
-
query: {
|
|
1756
|
-
uuids: string[];
|
|
1757
|
-
};
|
|
1758
|
-
fetch?: RequestInit | undefined;
|
|
1759
|
-
}) => Promise<Treaty.TreatyResponse<{
|
|
1760
|
-
200: {
|
|
1761
|
-
success: true;
|
|
1762
|
-
statusCode: number;
|
|
1763
|
-
data: null;
|
|
1764
|
-
message: string;
|
|
1765
|
-
error: null;
|
|
1766
|
-
meta: void 0;
|
|
1767
|
-
} | {
|
|
1768
|
-
success: false;
|
|
1769
|
-
statusCode: number;
|
|
1770
|
-
data: null;
|
|
1771
|
-
message: string;
|
|
1772
|
-
error: void 0;
|
|
1773
|
-
meta: void 0;
|
|
1774
|
-
};
|
|
1775
|
-
422: {
|
|
1776
|
-
type: "validation";
|
|
1777
|
-
on: string;
|
|
1778
|
-
summary?: string;
|
|
1779
|
-
message?: string;
|
|
1780
|
-
found?: unknown;
|
|
1781
|
-
property?: string;
|
|
1782
|
-
expected?: string;
|
|
1783
|
-
};
|
|
1784
|
-
}>>;
|
|
1785
|
-
};
|
|
1347
|
+
delete: (body?: unknown, options?: {
|
|
1348
|
+
headers?: Record<string, unknown> | undefined;
|
|
1349
|
+
query?: Record<string, unknown> | undefined;
|
|
1350
|
+
fetch?: RequestInit | undefined;
|
|
1351
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{}>>;
|
|
1786
1352
|
};
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1353
|
+
attach: {
|
|
1354
|
+
post: (body: {
|
|
1355
|
+
entityType: EMediaEntityType;
|
|
1356
|
+
mediaUuid: string;
|
|
1357
|
+
entityId?: number | undefined;
|
|
1358
|
+
entityUuid?: string | undefined;
|
|
1359
|
+
}, options?: {
|
|
1791
1360
|
headers?: {} | undefined;
|
|
1792
1361
|
query?: {} | undefined;
|
|
1793
1362
|
fetch?: RequestInit | undefined;
|
|
@@ -1797,17 +1366,19 @@ declare class ClientApi {
|
|
|
1797
1366
|
statusCode: number;
|
|
1798
1367
|
data: null;
|
|
1799
1368
|
message: string;
|
|
1800
|
-
error:
|
|
1801
|
-
meta:
|
|
1369
|
+
error: TResponseError;
|
|
1370
|
+
meta: TResponseMeta;
|
|
1802
1371
|
} | {
|
|
1803
1372
|
success: true;
|
|
1804
1373
|
statusCode: number;
|
|
1805
1374
|
data: {
|
|
1806
|
-
|
|
1375
|
+
mediaUuid: string;
|
|
1376
|
+
entityUuid: string | null;
|
|
1377
|
+
entityId: string | null;
|
|
1807
1378
|
};
|
|
1808
1379
|
message: null;
|
|
1809
1380
|
error: null;
|
|
1810
|
-
meta:
|
|
1381
|
+
meta: TResponseMeta;
|
|
1811
1382
|
};
|
|
1812
1383
|
422: {
|
|
1813
1384
|
type: "validation";
|
|
@@ -1819,13 +1390,16 @@ declare class ClientApi {
|
|
|
1819
1390
|
expected?: string;
|
|
1820
1391
|
};
|
|
1821
1392
|
}>>;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1393
|
+
};
|
|
1394
|
+
detach: {
|
|
1395
|
+
post: (body: {
|
|
1396
|
+
entityType: EMediaEntityType;
|
|
1397
|
+
mediaUuid: string;
|
|
1398
|
+
entityId?: number | undefined;
|
|
1399
|
+
entityUuid?: string | undefined;
|
|
1400
|
+
}, options?: {
|
|
1824
1401
|
headers?: {} | undefined;
|
|
1825
|
-
query?: {
|
|
1826
|
-
page?: number | undefined;
|
|
1827
|
-
limit?: number | undefined;
|
|
1828
|
-
} | undefined;
|
|
1402
|
+
query?: {} | undefined;
|
|
1829
1403
|
fetch?: RequestInit | undefined;
|
|
1830
1404
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1831
1405
|
200: {
|
|
@@ -1833,27 +1407,30 @@ declare class ClientApi {
|
|
|
1833
1407
|
statusCode: number;
|
|
1834
1408
|
data: null;
|
|
1835
1409
|
message: string;
|
|
1836
|
-
error:
|
|
1837
|
-
meta:
|
|
1410
|
+
error: TResponseError;
|
|
1411
|
+
meta: TResponseMeta;
|
|
1838
1412
|
} | {
|
|
1839
1413
|
success: true;
|
|
1840
1414
|
statusCode: number;
|
|
1841
1415
|
data: {
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1416
|
+
mediaUuid: string;
|
|
1417
|
+
entityUuid: string;
|
|
1418
|
+
entityId: null;
|
|
1419
|
+
};
|
|
1420
|
+
message: null;
|
|
1421
|
+
error: null;
|
|
1422
|
+
meta: TResponseMeta;
|
|
1423
|
+
} | {
|
|
1424
|
+
success: true;
|
|
1425
|
+
statusCode: number;
|
|
1426
|
+
data: {
|
|
1427
|
+
mediaUuid: string;
|
|
1428
|
+
entityUuid: null;
|
|
1429
|
+
entityId: null;
|
|
1430
|
+
};
|
|
1854
1431
|
message: null;
|
|
1855
1432
|
error: null;
|
|
1856
|
-
meta:
|
|
1433
|
+
meta: TResponseMeta;
|
|
1857
1434
|
};
|
|
1858
1435
|
422: {
|
|
1859
1436
|
type: "validation";
|
|
@@ -1866,9 +1443,153 @@ declare class ClientApi {
|
|
|
1866
1443
|
};
|
|
1867
1444
|
}>>;
|
|
1868
1445
|
};
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1446
|
+
};
|
|
1447
|
+
series: ((params: {
|
|
1448
|
+
uuid: string | number;
|
|
1449
|
+
}) => {
|
|
1450
|
+
get: (options?: {
|
|
1451
|
+
headers?: {} | undefined;
|
|
1452
|
+
query?: {} | undefined;
|
|
1453
|
+
fetch?: RequestInit | undefined;
|
|
1454
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1455
|
+
200: {
|
|
1456
|
+
success: false;
|
|
1457
|
+
statusCode: number;
|
|
1458
|
+
data: null;
|
|
1459
|
+
message: string;
|
|
1460
|
+
error: TResponseError;
|
|
1461
|
+
meta: TResponseMeta;
|
|
1462
|
+
} | {
|
|
1463
|
+
success: true;
|
|
1464
|
+
statusCode: number;
|
|
1465
|
+
data: {
|
|
1466
|
+
name: string;
|
|
1467
|
+
uuid: string;
|
|
1468
|
+
slug: string;
|
|
1469
|
+
description: string | null;
|
|
1470
|
+
createdAt: Date | null;
|
|
1471
|
+
updatedAt: Date | null;
|
|
1472
|
+
productTotal: number;
|
|
1473
|
+
};
|
|
1474
|
+
message: null;
|
|
1475
|
+
error: null;
|
|
1476
|
+
meta: TResponseMeta;
|
|
1477
|
+
};
|
|
1478
|
+
422: {
|
|
1479
|
+
type: "validation";
|
|
1480
|
+
on: string;
|
|
1481
|
+
summary?: string;
|
|
1482
|
+
message?: string;
|
|
1483
|
+
found?: unknown;
|
|
1484
|
+
property?: string;
|
|
1485
|
+
expected?: string;
|
|
1486
|
+
};
|
|
1487
|
+
}>>;
|
|
1488
|
+
patch: (body?: {
|
|
1489
|
+
name?: string | undefined;
|
|
1490
|
+
description?: string | undefined;
|
|
1491
|
+
} | undefined, options?: {
|
|
1492
|
+
headers?: {} | undefined;
|
|
1493
|
+
query?: {} | undefined;
|
|
1494
|
+
fetch?: RequestInit | undefined;
|
|
1495
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1496
|
+
200: {
|
|
1497
|
+
success: true;
|
|
1498
|
+
statusCode: number;
|
|
1499
|
+
data: null;
|
|
1500
|
+
message: string;
|
|
1501
|
+
error: null;
|
|
1502
|
+
meta: TResponseMeta;
|
|
1503
|
+
} | {
|
|
1504
|
+
success: false;
|
|
1505
|
+
statusCode: number;
|
|
1506
|
+
data: null;
|
|
1507
|
+
message: string;
|
|
1508
|
+
error: TResponseError;
|
|
1509
|
+
meta: TResponseMeta;
|
|
1510
|
+
};
|
|
1511
|
+
422: {
|
|
1512
|
+
type: "validation";
|
|
1513
|
+
on: string;
|
|
1514
|
+
summary?: string;
|
|
1515
|
+
message?: string;
|
|
1516
|
+
found?: unknown;
|
|
1517
|
+
property?: string;
|
|
1518
|
+
expected?: string;
|
|
1519
|
+
};
|
|
1520
|
+
}>>;
|
|
1521
|
+
delete: (body?: {} | undefined, options?: {
|
|
1522
|
+
headers?: {} | undefined;
|
|
1523
|
+
query?: {} | undefined;
|
|
1524
|
+
fetch?: RequestInit | undefined;
|
|
1525
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1526
|
+
200: {
|
|
1527
|
+
success: true;
|
|
1528
|
+
statusCode: number;
|
|
1529
|
+
data: null;
|
|
1530
|
+
message: string;
|
|
1531
|
+
error: null;
|
|
1532
|
+
meta: TResponseMeta;
|
|
1533
|
+
} | {
|
|
1534
|
+
success: false;
|
|
1535
|
+
statusCode: number;
|
|
1536
|
+
data: null;
|
|
1537
|
+
message: string;
|
|
1538
|
+
error: TResponseError;
|
|
1539
|
+
meta: TResponseMeta;
|
|
1540
|
+
};
|
|
1541
|
+
422: {
|
|
1542
|
+
type: "validation";
|
|
1543
|
+
on: string;
|
|
1544
|
+
summary?: string;
|
|
1545
|
+
message?: string;
|
|
1546
|
+
found?: unknown;
|
|
1547
|
+
property?: string;
|
|
1548
|
+
expected?: string;
|
|
1549
|
+
};
|
|
1550
|
+
}>>;
|
|
1551
|
+
}) & {
|
|
1552
|
+
get: (options?: {
|
|
1553
|
+
headers?: {} | undefined;
|
|
1554
|
+
query?: {} | undefined;
|
|
1555
|
+
fetch?: RequestInit | undefined;
|
|
1556
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1557
|
+
200: {
|
|
1558
|
+
success: false;
|
|
1559
|
+
statusCode: number;
|
|
1560
|
+
data: null;
|
|
1561
|
+
message: string;
|
|
1562
|
+
error: TResponseError;
|
|
1563
|
+
meta: TResponseMeta;
|
|
1564
|
+
} | {
|
|
1565
|
+
success: true;
|
|
1566
|
+
statusCode: number;
|
|
1567
|
+
data: {
|
|
1568
|
+
name: string;
|
|
1569
|
+
uuid: string;
|
|
1570
|
+
slug: string;
|
|
1571
|
+
description: string | null;
|
|
1572
|
+
createdAt: Date | null;
|
|
1573
|
+
updatedAt: Date | null;
|
|
1574
|
+
productTotal: number;
|
|
1575
|
+
media: {
|
|
1576
|
+
createdAt: Date | null;
|
|
1577
|
+
updatedAt: Date | null;
|
|
1578
|
+
media: {
|
|
1579
|
+
name: string;
|
|
1580
|
+
uuid: string;
|
|
1581
|
+
path: string;
|
|
1582
|
+
createdAt: Date | null;
|
|
1583
|
+
updatedAt: Date | null;
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
}[];
|
|
1587
|
+
message: null;
|
|
1588
|
+
error: null;
|
|
1589
|
+
meta: TResponseMeta;
|
|
1590
|
+
};
|
|
1591
|
+
}>>;
|
|
1592
|
+
count: {
|
|
1872
1593
|
get: (options?: {
|
|
1873
1594
|
headers?: {} | undefined;
|
|
1874
1595
|
query?: {} | undefined;
|
|
@@ -1879,58 +1600,94 @@ declare class ClientApi {
|
|
|
1879
1600
|
statusCode: number;
|
|
1880
1601
|
data: null;
|
|
1881
1602
|
message: string;
|
|
1882
|
-
error:
|
|
1883
|
-
meta:
|
|
1603
|
+
error: TResponseError;
|
|
1604
|
+
meta: TResponseMeta;
|
|
1884
1605
|
} | {
|
|
1885
1606
|
success: true;
|
|
1886
1607
|
statusCode: number;
|
|
1887
|
-
data:
|
|
1888
|
-
name: string;
|
|
1889
|
-
uuid: string;
|
|
1890
|
-
createdAt: Date | null;
|
|
1891
|
-
updatedAt: Date | null;
|
|
1892
|
-
phoneNumber: string | null;
|
|
1893
|
-
contactEmail: string | null;
|
|
1894
|
-
country: string | null;
|
|
1895
|
-
};
|
|
1608
|
+
data: number;
|
|
1896
1609
|
message: null;
|
|
1897
1610
|
error: null;
|
|
1898
|
-
meta:
|
|
1899
|
-
};
|
|
1900
|
-
422: {
|
|
1901
|
-
type: "validation";
|
|
1902
|
-
on: string;
|
|
1903
|
-
summary?: string;
|
|
1904
|
-
message?: string;
|
|
1905
|
-
found?: unknown;
|
|
1906
|
-
property?: string;
|
|
1907
|
-
expected?: string;
|
|
1611
|
+
meta: TResponseMeta;
|
|
1908
1612
|
};
|
|
1909
1613
|
}>>;
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
} | undefined
|
|
1614
|
+
};
|
|
1615
|
+
post: (body: {
|
|
1616
|
+
name: string;
|
|
1617
|
+
description: string;
|
|
1618
|
+
}, options?: {
|
|
1619
|
+
headers?: {} | undefined;
|
|
1620
|
+
query?: {} | undefined;
|
|
1621
|
+
fetch?: RequestInit | undefined;
|
|
1622
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1623
|
+
200: {
|
|
1624
|
+
success: false;
|
|
1625
|
+
statusCode: number;
|
|
1626
|
+
data: null;
|
|
1627
|
+
message: string;
|
|
1628
|
+
error: TResponseError;
|
|
1629
|
+
meta: TResponseMeta;
|
|
1630
|
+
} | {
|
|
1631
|
+
success: true;
|
|
1632
|
+
statusCode: number;
|
|
1633
|
+
data: {
|
|
1634
|
+
media: null;
|
|
1635
|
+
uuid: string;
|
|
1636
|
+
name: string;
|
|
1637
|
+
slug: string;
|
|
1638
|
+
description: string | null;
|
|
1639
|
+
productTotal: number;
|
|
1640
|
+
createdAt: Date | null;
|
|
1641
|
+
updatedAt: Date | null;
|
|
1642
|
+
};
|
|
1643
|
+
message: null;
|
|
1644
|
+
error: null;
|
|
1645
|
+
meta: TResponseMeta;
|
|
1646
|
+
};
|
|
1647
|
+
422: {
|
|
1648
|
+
type: "validation";
|
|
1649
|
+
on: string;
|
|
1650
|
+
summary?: string;
|
|
1651
|
+
message?: string;
|
|
1652
|
+
found?: unknown;
|
|
1653
|
+
property?: string;
|
|
1654
|
+
expected?: string;
|
|
1655
|
+
};
|
|
1656
|
+
}>>;
|
|
1657
|
+
bulk: {
|
|
1658
|
+
post: (body: {
|
|
1659
|
+
series: {
|
|
1660
|
+
name: string;
|
|
1661
|
+
description: string;
|
|
1662
|
+
}[];
|
|
1663
|
+
}, options?: {
|
|
1916
1664
|
headers?: {} | undefined;
|
|
1917
1665
|
query?: {} | undefined;
|
|
1918
1666
|
fetch?: RequestInit | undefined;
|
|
1919
1667
|
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1920
1668
|
200: {
|
|
1921
|
-
success:
|
|
1669
|
+
success: false;
|
|
1922
1670
|
statusCode: number;
|
|
1923
1671
|
data: null;
|
|
1924
1672
|
message: string;
|
|
1925
|
-
error:
|
|
1926
|
-
meta:
|
|
1673
|
+
error: TResponseError;
|
|
1674
|
+
meta: TResponseMeta;
|
|
1927
1675
|
} | {
|
|
1928
|
-
success:
|
|
1676
|
+
success: true;
|
|
1929
1677
|
statusCode: number;
|
|
1930
|
-
data:
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1678
|
+
data: {
|
|
1679
|
+
media: null;
|
|
1680
|
+
uuid: string;
|
|
1681
|
+
name: string;
|
|
1682
|
+
slug: string;
|
|
1683
|
+
description: string | null;
|
|
1684
|
+
productTotal: number;
|
|
1685
|
+
createdAt: Date | null;
|
|
1686
|
+
updatedAt: Date | null;
|
|
1687
|
+
}[];
|
|
1688
|
+
message: null;
|
|
1689
|
+
error: null;
|
|
1690
|
+
meta: TResponseMeta;
|
|
1934
1691
|
};
|
|
1935
1692
|
422: {
|
|
1936
1693
|
type: "validation";
|
|
@@ -1942,25 +1699,27 @@ declare class ClientApi {
|
|
|
1942
1699
|
expected?: string;
|
|
1943
1700
|
};
|
|
1944
1701
|
}>>;
|
|
1945
|
-
delete: (body
|
|
1702
|
+
delete: (body: {}, options: {
|
|
1946
1703
|
headers?: {} | undefined;
|
|
1947
|
-
query
|
|
1704
|
+
query: {
|
|
1705
|
+
uuids: string[];
|
|
1706
|
+
};
|
|
1948
1707
|
fetch?: RequestInit | undefined;
|
|
1949
|
-
}
|
|
1708
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
1950
1709
|
200: {
|
|
1951
1710
|
success: true;
|
|
1952
1711
|
statusCode: number;
|
|
1953
1712
|
data: null;
|
|
1954
1713
|
message: string;
|
|
1955
1714
|
error: null;
|
|
1956
|
-
meta:
|
|
1715
|
+
meta: TResponseMeta;
|
|
1957
1716
|
} | {
|
|
1958
1717
|
success: false;
|
|
1959
1718
|
statusCode: number;
|
|
1960
1719
|
data: null;
|
|
1961
1720
|
message: string;
|
|
1962
|
-
error:
|
|
1963
|
-
meta:
|
|
1721
|
+
error: TResponseError;
|
|
1722
|
+
meta: TResponseMeta;
|
|
1964
1723
|
};
|
|
1965
1724
|
422: {
|
|
1966
1725
|
type: "validation";
|
|
@@ -1972,7 +1731,227 @@ declare class ClientApi {
|
|
|
1972
1731
|
expected?: string;
|
|
1973
1732
|
};
|
|
1974
1733
|
}>>;
|
|
1975
|
-
}
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
session: ((params: {
|
|
1737
|
+
sessionId: string | number;
|
|
1738
|
+
}) => {
|
|
1739
|
+
delete: (body?: {} | undefined, options?: {
|
|
1740
|
+
headers?: {} | undefined;
|
|
1741
|
+
query?: {} | undefined;
|
|
1742
|
+
fetch?: RequestInit | undefined;
|
|
1743
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1744
|
+
200: {
|
|
1745
|
+
success: false;
|
|
1746
|
+
statusCode: number;
|
|
1747
|
+
data: null;
|
|
1748
|
+
message: string;
|
|
1749
|
+
error: TResponseError;
|
|
1750
|
+
meta: TResponseMeta;
|
|
1751
|
+
} | {
|
|
1752
|
+
success: true;
|
|
1753
|
+
statusCode: number;
|
|
1754
|
+
data: {
|
|
1755
|
+
sessionId: number;
|
|
1756
|
+
};
|
|
1757
|
+
message: null;
|
|
1758
|
+
error: null;
|
|
1759
|
+
meta: TResponseMeta;
|
|
1760
|
+
};
|
|
1761
|
+
422: {
|
|
1762
|
+
type: "validation";
|
|
1763
|
+
on: string;
|
|
1764
|
+
summary?: string;
|
|
1765
|
+
message?: string;
|
|
1766
|
+
found?: unknown;
|
|
1767
|
+
property?: string;
|
|
1768
|
+
expected?: string;
|
|
1769
|
+
};
|
|
1770
|
+
}>>;
|
|
1771
|
+
}) & {
|
|
1772
|
+
get: (options?: {
|
|
1773
|
+
headers?: {} | undefined;
|
|
1774
|
+
query?: {
|
|
1775
|
+
page?: number | undefined;
|
|
1776
|
+
limit?: number | undefined;
|
|
1777
|
+
} | undefined;
|
|
1778
|
+
fetch?: RequestInit | undefined;
|
|
1779
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1780
|
+
200: {
|
|
1781
|
+
success: false;
|
|
1782
|
+
statusCode: number;
|
|
1783
|
+
data: null;
|
|
1784
|
+
message: string;
|
|
1785
|
+
error: TResponseError;
|
|
1786
|
+
meta: TResponseMeta;
|
|
1787
|
+
} | {
|
|
1788
|
+
success: true;
|
|
1789
|
+
statusCode: number;
|
|
1790
|
+
data: {
|
|
1791
|
+
createdAt: Date | null;
|
|
1792
|
+
updatedAt: Date | null;
|
|
1793
|
+
id: number;
|
|
1794
|
+
expiresAt: Date;
|
|
1795
|
+
ipAddress: string;
|
|
1796
|
+
userAgent: string;
|
|
1797
|
+
user: {
|
|
1798
|
+
uuid: string | null;
|
|
1799
|
+
email: string;
|
|
1800
|
+
username: string;
|
|
1801
|
+
};
|
|
1802
|
+
}[];
|
|
1803
|
+
message: null;
|
|
1804
|
+
error: null;
|
|
1805
|
+
meta: TResponseMeta;
|
|
1806
|
+
};
|
|
1807
|
+
422: {
|
|
1808
|
+
type: "validation";
|
|
1809
|
+
on: string;
|
|
1810
|
+
summary?: string;
|
|
1811
|
+
message?: string;
|
|
1812
|
+
found?: unknown;
|
|
1813
|
+
property?: string;
|
|
1814
|
+
expected?: string;
|
|
1815
|
+
};
|
|
1816
|
+
}>>;
|
|
1817
|
+
};
|
|
1818
|
+
supplier: ((params: {
|
|
1819
|
+
uuid: string | number;
|
|
1820
|
+
}) => {
|
|
1821
|
+
get: (options?: {
|
|
1822
|
+
headers?: {} | undefined;
|
|
1823
|
+
query?: {} | undefined;
|
|
1824
|
+
fetch?: RequestInit | undefined;
|
|
1825
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1826
|
+
200: {
|
|
1827
|
+
success: false;
|
|
1828
|
+
statusCode: number;
|
|
1829
|
+
data: null;
|
|
1830
|
+
message: string;
|
|
1831
|
+
error: TResponseError;
|
|
1832
|
+
meta: TResponseMeta;
|
|
1833
|
+
} | {
|
|
1834
|
+
success: true;
|
|
1835
|
+
statusCode: number;
|
|
1836
|
+
data: {
|
|
1837
|
+
name: string;
|
|
1838
|
+
uuid: string;
|
|
1839
|
+
createdAt: Date | null;
|
|
1840
|
+
updatedAt: Date | null;
|
|
1841
|
+
phoneNumber: string | null;
|
|
1842
|
+
contactEmail: string | null;
|
|
1843
|
+
country: string | null;
|
|
1844
|
+
};
|
|
1845
|
+
message: null;
|
|
1846
|
+
error: null;
|
|
1847
|
+
meta: TResponseMeta;
|
|
1848
|
+
};
|
|
1849
|
+
422: {
|
|
1850
|
+
type: "validation";
|
|
1851
|
+
on: string;
|
|
1852
|
+
summary?: string;
|
|
1853
|
+
message?: string;
|
|
1854
|
+
found?: unknown;
|
|
1855
|
+
property?: string;
|
|
1856
|
+
expected?: string;
|
|
1857
|
+
};
|
|
1858
|
+
}>>;
|
|
1859
|
+
patch: (body?: {
|
|
1860
|
+
name?: string | undefined;
|
|
1861
|
+
phoneNumber?: string | undefined;
|
|
1862
|
+
contactEmail?: string | undefined;
|
|
1863
|
+
country?: string | undefined;
|
|
1864
|
+
} | undefined, options?: {
|
|
1865
|
+
headers?: {} | undefined;
|
|
1866
|
+
query?: {} | undefined;
|
|
1867
|
+
fetch?: RequestInit | undefined;
|
|
1868
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1869
|
+
200: {
|
|
1870
|
+
success: true;
|
|
1871
|
+
statusCode: number;
|
|
1872
|
+
data: null;
|
|
1873
|
+
message: string;
|
|
1874
|
+
error: null;
|
|
1875
|
+
meta: TResponseMeta;
|
|
1876
|
+
} | {
|
|
1877
|
+
success: false;
|
|
1878
|
+
statusCode: number;
|
|
1879
|
+
data: null;
|
|
1880
|
+
message: string;
|
|
1881
|
+
error: TResponseError;
|
|
1882
|
+
meta: TResponseMeta;
|
|
1883
|
+
};
|
|
1884
|
+
422: {
|
|
1885
|
+
type: "validation";
|
|
1886
|
+
on: string;
|
|
1887
|
+
summary?: string;
|
|
1888
|
+
message?: string;
|
|
1889
|
+
found?: unknown;
|
|
1890
|
+
property?: string;
|
|
1891
|
+
expected?: string;
|
|
1892
|
+
};
|
|
1893
|
+
}>>;
|
|
1894
|
+
delete: (body?: {} | undefined, options?: {
|
|
1895
|
+
headers?: {} | undefined;
|
|
1896
|
+
query?: {} | undefined;
|
|
1897
|
+
fetch?: RequestInit | undefined;
|
|
1898
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1899
|
+
200: {
|
|
1900
|
+
success: true;
|
|
1901
|
+
statusCode: number;
|
|
1902
|
+
data: null;
|
|
1903
|
+
message: string;
|
|
1904
|
+
error: null;
|
|
1905
|
+
meta: TResponseMeta;
|
|
1906
|
+
} | {
|
|
1907
|
+
success: false;
|
|
1908
|
+
statusCode: number;
|
|
1909
|
+
data: null;
|
|
1910
|
+
message: string;
|
|
1911
|
+
error: TResponseError;
|
|
1912
|
+
meta: TResponseMeta;
|
|
1913
|
+
};
|
|
1914
|
+
422: {
|
|
1915
|
+
type: "validation";
|
|
1916
|
+
on: string;
|
|
1917
|
+
summary?: string;
|
|
1918
|
+
message?: string;
|
|
1919
|
+
found?: unknown;
|
|
1920
|
+
property?: string;
|
|
1921
|
+
expected?: string;
|
|
1922
|
+
};
|
|
1923
|
+
}>>;
|
|
1924
|
+
}) & {
|
|
1925
|
+
get: (options?: {
|
|
1926
|
+
headers?: {} | undefined;
|
|
1927
|
+
query?: {} | undefined;
|
|
1928
|
+
fetch?: RequestInit | undefined;
|
|
1929
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1930
|
+
200: {
|
|
1931
|
+
success: false;
|
|
1932
|
+
statusCode: number;
|
|
1933
|
+
data: null;
|
|
1934
|
+
message: string;
|
|
1935
|
+
error: TResponseError;
|
|
1936
|
+
meta: TResponseMeta;
|
|
1937
|
+
} | {
|
|
1938
|
+
success: true;
|
|
1939
|
+
statusCode: number;
|
|
1940
|
+
data: {
|
|
1941
|
+
name: string;
|
|
1942
|
+
uuid: string;
|
|
1943
|
+
createdAt: Date | null;
|
|
1944
|
+
updatedAt: Date | null;
|
|
1945
|
+
phoneNumber: string | null;
|
|
1946
|
+
contactEmail: string | null;
|
|
1947
|
+
country: string | null;
|
|
1948
|
+
}[];
|
|
1949
|
+
message: null;
|
|
1950
|
+
error: null;
|
|
1951
|
+
meta: TResponseMeta;
|
|
1952
|
+
};
|
|
1953
|
+
}>>;
|
|
1954
|
+
count: {
|
|
1976
1955
|
get: (options?: {
|
|
1977
1956
|
headers?: {} | undefined;
|
|
1978
1957
|
query?: {} | undefined;
|
|
@@ -1983,53 +1962,69 @@ declare class ClientApi {
|
|
|
1983
1962
|
statusCode: number;
|
|
1984
1963
|
data: null;
|
|
1985
1964
|
message: string;
|
|
1986
|
-
error:
|
|
1987
|
-
meta:
|
|
1965
|
+
error: TResponseError;
|
|
1966
|
+
meta: TResponseMeta;
|
|
1988
1967
|
} | {
|
|
1989
1968
|
success: true;
|
|
1990
1969
|
statusCode: number;
|
|
1991
|
-
data:
|
|
1992
|
-
name: string;
|
|
1993
|
-
uuid: string;
|
|
1994
|
-
createdAt: Date | null;
|
|
1995
|
-
updatedAt: Date | null;
|
|
1996
|
-
phoneNumber: string | null;
|
|
1997
|
-
contactEmail: string | null;
|
|
1998
|
-
country: string | null;
|
|
1999
|
-
}[];
|
|
1970
|
+
data: number;
|
|
2000
1971
|
message: null;
|
|
2001
1972
|
error: null;
|
|
2002
|
-
meta:
|
|
1973
|
+
meta: TResponseMeta;
|
|
2003
1974
|
};
|
|
2004
1975
|
}>>;
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
1976
|
+
};
|
|
1977
|
+
post: (body: {
|
|
1978
|
+
name: string;
|
|
1979
|
+
contactEmail: string;
|
|
1980
|
+
phoneNumber: string;
|
|
1981
|
+
country: string;
|
|
1982
|
+
}, options?: {
|
|
1983
|
+
headers?: {} | undefined;
|
|
1984
|
+
query?: {} | undefined;
|
|
1985
|
+
fetch?: RequestInit | undefined;
|
|
1986
|
+
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
1987
|
+
200: {
|
|
1988
|
+
success: false;
|
|
1989
|
+
statusCode: number;
|
|
1990
|
+
data: null;
|
|
1991
|
+
message: string;
|
|
1992
|
+
error: TResponseError;
|
|
1993
|
+
meta: TResponseMeta;
|
|
1994
|
+
} | {
|
|
1995
|
+
success: true;
|
|
1996
|
+
statusCode: number;
|
|
1997
|
+
data: {
|
|
1998
|
+
uuid: string;
|
|
1999
|
+
name: string;
|
|
2000
|
+
contactEmail: string | null;
|
|
2001
|
+
phoneNumber: string | null;
|
|
2002
|
+
country: string | null;
|
|
2003
|
+
createdAt: Date | null;
|
|
2004
|
+
updatedAt: Date | null;
|
|
2005
|
+
}[];
|
|
2006
|
+
message: null;
|
|
2007
|
+
error: null;
|
|
2008
|
+
meta: TResponseMeta;
|
|
2027
2009
|
};
|
|
2010
|
+
422: {
|
|
2011
|
+
type: "validation";
|
|
2012
|
+
on: string;
|
|
2013
|
+
summary?: string;
|
|
2014
|
+
message?: string;
|
|
2015
|
+
found?: unknown;
|
|
2016
|
+
property?: string;
|
|
2017
|
+
expected?: string;
|
|
2018
|
+
};
|
|
2019
|
+
}>>;
|
|
2020
|
+
bulk: {
|
|
2028
2021
|
post: (body: {
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2022
|
+
suppliers: {
|
|
2023
|
+
name: string;
|
|
2024
|
+
contactEmail: string;
|
|
2025
|
+
phoneNumber: string;
|
|
2026
|
+
country: string;
|
|
2027
|
+
}[];
|
|
2033
2028
|
}, options?: {
|
|
2034
2029
|
headers?: {} | undefined;
|
|
2035
2030
|
query?: {} | undefined;
|
|
@@ -2040,8 +2035,8 @@ declare class ClientApi {
|
|
|
2040
2035
|
statusCode: number;
|
|
2041
2036
|
data: null;
|
|
2042
2037
|
message: string;
|
|
2043
|
-
error:
|
|
2044
|
-
meta:
|
|
2038
|
+
error: TResponseError;
|
|
2039
|
+
meta: TResponseMeta;
|
|
2045
2040
|
} | {
|
|
2046
2041
|
success: true;
|
|
2047
2042
|
statusCode: number;
|
|
@@ -2056,7 +2051,39 @@ declare class ClientApi {
|
|
|
2056
2051
|
}[];
|
|
2057
2052
|
message: null;
|
|
2058
2053
|
error: null;
|
|
2059
|
-
meta:
|
|
2054
|
+
meta: TResponseMeta;
|
|
2055
|
+
};
|
|
2056
|
+
422: {
|
|
2057
|
+
type: "validation";
|
|
2058
|
+
on: string;
|
|
2059
|
+
summary?: string;
|
|
2060
|
+
message?: string;
|
|
2061
|
+
found?: unknown;
|
|
2062
|
+
property?: string;
|
|
2063
|
+
expected?: string;
|
|
2064
|
+
};
|
|
2065
|
+
}>>;
|
|
2066
|
+
delete: (body: {}, options: {
|
|
2067
|
+
headers?: {} | undefined;
|
|
2068
|
+
query: {
|
|
2069
|
+
uuids: string[];
|
|
2070
|
+
};
|
|
2071
|
+
fetch?: RequestInit | undefined;
|
|
2072
|
+
}) => Promise<Treaty.TreatyResponse<{
|
|
2073
|
+
200: {
|
|
2074
|
+
success: true;
|
|
2075
|
+
statusCode: number;
|
|
2076
|
+
data: null;
|
|
2077
|
+
message: string;
|
|
2078
|
+
error: null;
|
|
2079
|
+
meta: TResponseMeta;
|
|
2080
|
+
} | {
|
|
2081
|
+
success: false;
|
|
2082
|
+
statusCode: number;
|
|
2083
|
+
data: null;
|
|
2084
|
+
message: string;
|
|
2085
|
+
error: TResponseError;
|
|
2086
|
+
meta: TResponseMeta;
|
|
2060
2087
|
};
|
|
2061
2088
|
422: {
|
|
2062
2089
|
type: "validation";
|
|
@@ -2068,117 +2095,100 @@ declare class ClientApi {
|
|
|
2068
2095
|
expected?: string;
|
|
2069
2096
|
};
|
|
2070
2097
|
}>>;
|
|
2071
|
-
bulk: {
|
|
2072
|
-
post: (body: {
|
|
2073
|
-
suppliers: {
|
|
2074
|
-
name: string;
|
|
2075
|
-
contactEmail: string;
|
|
2076
|
-
phoneNumber: string;
|
|
2077
|
-
country: string;
|
|
2078
|
-
}[];
|
|
2079
|
-
}, options?: {
|
|
2080
|
-
headers?: {} | undefined;
|
|
2081
|
-
query?: {} | undefined;
|
|
2082
|
-
fetch?: RequestInit | undefined;
|
|
2083
|
-
} | undefined) => Promise<Treaty.TreatyResponse<{
|
|
2084
|
-
200: {
|
|
2085
|
-
success: false;
|
|
2086
|
-
statusCode: number;
|
|
2087
|
-
data: null;
|
|
2088
|
-
message: string;
|
|
2089
|
-
error: void 0;
|
|
2090
|
-
meta: void 0;
|
|
2091
|
-
} | {
|
|
2092
|
-
success: true;
|
|
2093
|
-
statusCode: number;
|
|
2094
|
-
data: {
|
|
2095
|
-
uuid: string;
|
|
2096
|
-
name: string;
|
|
2097
|
-
contactEmail: string | null;
|
|
2098
|
-
phoneNumber: string | null;
|
|
2099
|
-
country: string | null;
|
|
2100
|
-
createdAt: Date | null;
|
|
2101
|
-
updatedAt: Date | null;
|
|
2102
|
-
}[];
|
|
2103
|
-
message: null;
|
|
2104
|
-
error: null;
|
|
2105
|
-
meta: void 0;
|
|
2106
|
-
};
|
|
2107
|
-
422: {
|
|
2108
|
-
type: "validation";
|
|
2109
|
-
on: string;
|
|
2110
|
-
summary?: string;
|
|
2111
|
-
message?: string;
|
|
2112
|
-
found?: unknown;
|
|
2113
|
-
property?: string;
|
|
2114
|
-
expected?: string;
|
|
2115
|
-
};
|
|
2116
|
-
}>>;
|
|
2117
|
-
delete: (body: {}, options: {
|
|
2118
|
-
headers?: {} | undefined;
|
|
2119
|
-
query: {
|
|
2120
|
-
uuids: string[];
|
|
2121
|
-
};
|
|
2122
|
-
fetch?: RequestInit | undefined;
|
|
2123
|
-
}) => Promise<Treaty.TreatyResponse<{
|
|
2124
|
-
200: {
|
|
2125
|
-
success: true;
|
|
2126
|
-
statusCode: number;
|
|
2127
|
-
data: null;
|
|
2128
|
-
message: string;
|
|
2129
|
-
error: null;
|
|
2130
|
-
meta: void 0;
|
|
2131
|
-
} | {
|
|
2132
|
-
success: false;
|
|
2133
|
-
statusCode: number;
|
|
2134
|
-
data: null;
|
|
2135
|
-
message: string;
|
|
2136
|
-
error: void 0;
|
|
2137
|
-
meta: void 0;
|
|
2138
|
-
};
|
|
2139
|
-
422: {
|
|
2140
|
-
type: "validation";
|
|
2141
|
-
on: string;
|
|
2142
|
-
summary?: string;
|
|
2143
|
-
message?: string;
|
|
2144
|
-
found?: unknown;
|
|
2145
|
-
property?: string;
|
|
2146
|
-
expected?: string;
|
|
2147
|
-
};
|
|
2148
|
-
}>>;
|
|
2149
|
-
};
|
|
2150
2098
|
};
|
|
2151
2099
|
};
|
|
2152
2100
|
};
|
|
2153
|
-
}
|
|
2101
|
+
};
|
|
2102
|
+
};
|
|
2103
|
+
type TClient = ReturnType<typeof _>;
|
|
2104
|
+
type Config = {
|
|
2105
|
+
baseURL: string;
|
|
2106
|
+
config?: Omit<Treaty.Config, 'onResponse'>;
|
|
2107
|
+
listeners?: {
|
|
2108
|
+
onSetUser?: (user: TUser | null) => void | Promise<void>;
|
|
2109
|
+
onUnauthorized?: () => void | Promise<void>;
|
|
2110
|
+
onLogout?: () => void | Promise<void>;
|
|
2111
|
+
onRefreshToken?: (status: 'SUCCESS' | 'FAILED') => void | Promise<void>;
|
|
2112
|
+
onRefreshFailed?: () => void | Promise<void>;
|
|
2113
|
+
};
|
|
2114
|
+
};
|
|
2115
|
+
declare class ClientApi {
|
|
2116
|
+
private static _getMeTask;
|
|
2117
|
+
private static _refreshTokenTask;
|
|
2118
|
+
private static _logoutTask;
|
|
2119
|
+
private static _client;
|
|
2120
|
+
static client: Treaty.Create<AppType>;
|
|
2121
|
+
static _status: 'LOGGED' | 'INITIAL' | 'LOGGING';
|
|
2122
|
+
static _user: TUser;
|
|
2123
|
+
private static _getMe;
|
|
2124
|
+
private static _refreshToken;
|
|
2125
|
+
private static _logout;
|
|
2126
|
+
constructor({
|
|
2127
|
+
baseURL,
|
|
2128
|
+
config,
|
|
2129
|
+
listeners
|
|
2130
|
+
}: Config);
|
|
2131
|
+
isLogged(): boolean;
|
|
2132
|
+
isInitial(): boolean;
|
|
2133
|
+
getUser(): {
|
|
2134
|
+
uuid: string | null;
|
|
2135
|
+
email: string;
|
|
2136
|
+
createdAt: Date | null;
|
|
2137
|
+
updatedAt: Date | null;
|
|
2138
|
+
username: string;
|
|
2139
|
+
role: string;
|
|
2140
|
+
networks: {
|
|
2141
|
+
createdAt: Date | null;
|
|
2142
|
+
updatedAt: Date | null;
|
|
2143
|
+
id: number;
|
|
2144
|
+
provider: string;
|
|
2145
|
+
providerId: string;
|
|
2146
|
+
}[];
|
|
2147
|
+
profile: {
|
|
2148
|
+
createdAt: Date | null;
|
|
2149
|
+
updatedAt: Date | null;
|
|
2150
|
+
id: number;
|
|
2151
|
+
fullname: string;
|
|
2152
|
+
phoneNumber: string | null;
|
|
2153
|
+
bio: string | null;
|
|
2154
|
+
gender: number | null;
|
|
2155
|
+
dateOfBirth: Date | null;
|
|
2156
|
+
} | null;
|
|
2157
|
+
customerAddresses: {
|
|
2158
|
+
createdAt: Date | null;
|
|
2159
|
+
updatedAt: Date | null;
|
|
2160
|
+
id: number;
|
|
2161
|
+
fullname: string;
|
|
2162
|
+
phoneNumber: string;
|
|
2163
|
+
street: string;
|
|
2164
|
+
isDefault: boolean | null;
|
|
2165
|
+
province: {
|
|
2166
|
+
name: string;
|
|
2167
|
+
type: string;
|
|
2168
|
+
id: string | null;
|
|
2169
|
+
};
|
|
2170
|
+
ward: {
|
|
2171
|
+
name: string;
|
|
2172
|
+
type: string;
|
|
2173
|
+
id: string | null;
|
|
2174
|
+
districtId: string | null;
|
|
2175
|
+
};
|
|
2176
|
+
district: {
|
|
2177
|
+
name: string;
|
|
2178
|
+
type: string;
|
|
2179
|
+
id: string | null;
|
|
2180
|
+
provinceId: string | null;
|
|
2181
|
+
};
|
|
2182
|
+
}[];
|
|
2183
|
+
} | null;
|
|
2184
|
+
getClient(): TClient | undefined;
|
|
2154
2185
|
getUserClient(): void;
|
|
2155
2186
|
logout(): Promise<void>;
|
|
2156
2187
|
fetchApi<TData>({
|
|
2157
2188
|
request
|
|
2158
2189
|
}: {
|
|
2159
|
-
request: (api:
|
|
2160
|
-
}): Promise<{
|
|
2161
|
-
success: true;
|
|
2162
|
-
statusCode: number;
|
|
2163
|
-
data: null;
|
|
2164
|
-
message: string;
|
|
2165
|
-
error: null;
|
|
2166
|
-
meta: TResponseMeta;
|
|
2167
|
-
} | {
|
|
2168
|
-
success: false;
|
|
2169
|
-
statusCode: number;
|
|
2170
|
-
data: null;
|
|
2171
|
-
message: string;
|
|
2172
|
-
error: TResponseError;
|
|
2173
|
-
meta: TResponseMeta;
|
|
2174
|
-
} | {
|
|
2175
|
-
success: true;
|
|
2176
|
-
statusCode: number;
|
|
2177
|
-
data: any;
|
|
2178
|
-
message: null;
|
|
2179
|
-
error: null;
|
|
2180
|
-
meta: TResponseMeta;
|
|
2181
|
-
} | {
|
|
2190
|
+
request: (api: TClient) => Promise<TData>;
|
|
2191
|
+
}): Promise<TData | {
|
|
2182
2192
|
success: boolean;
|
|
2183
2193
|
statusCode: number;
|
|
2184
2194
|
data: null;
|