@horpynka/api-sdk 1.0.3 → 1.0.5
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/README.md +2 -4
- package/dist/index.cjs +153 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +675 -6
- package/dist/index.d.ts +675 -6
- package/dist/index.js +153 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -21
- package/dist/api-CnGxH9SJ.d.cts +0 -640
- package/dist/api-CnGxH9SJ.d.ts +0 -640
- package/dist/client/index.cjs +0 -455
- package/dist/client/index.cjs.map +0 -1
- package/dist/client/index.d.cts +0 -9
- package/dist/client/index.d.ts +0 -9
- package/dist/client/index.js +0 -449
- package/dist/client/index.js.map +0 -1
- package/dist/hooks/index.cjs +0 -31
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.d.cts +0 -34
- package/dist/hooks/index.d.ts +0 -34
- package/dist/hooks/index.js +0 -29
- package/dist/hooks/index.js.map +0 -1
package/dist/api-CnGxH9SJ.d.ts
DELETED
|
@@ -1,640 +0,0 @@
|
|
|
1
|
-
import * as axios from 'axios';
|
|
2
|
-
import { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Horpynka API
|
|
6
|
-
* Backend API for Horpynka POS
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
interface ConfigurationParameters {
|
|
16
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
17
|
-
username?: string;
|
|
18
|
-
password?: string;
|
|
19
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
20
|
-
basePath?: string;
|
|
21
|
-
serverIndex?: number;
|
|
22
|
-
baseOptions?: any;
|
|
23
|
-
formDataCtor?: new () => any;
|
|
24
|
-
}
|
|
25
|
-
declare class Configuration {
|
|
26
|
-
/**
|
|
27
|
-
* parameter for apiKey security
|
|
28
|
-
* @param name security name
|
|
29
|
-
* @memberof Configuration
|
|
30
|
-
*/
|
|
31
|
-
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
32
|
-
/**
|
|
33
|
-
* parameter for basic security
|
|
34
|
-
*
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof Configuration
|
|
37
|
-
*/
|
|
38
|
-
username?: string;
|
|
39
|
-
/**
|
|
40
|
-
* parameter for basic security
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof Configuration
|
|
44
|
-
*/
|
|
45
|
-
password?: string;
|
|
46
|
-
/**
|
|
47
|
-
* parameter for oauth2 security
|
|
48
|
-
* @param name security name
|
|
49
|
-
* @param scopes oauth2 scope
|
|
50
|
-
* @memberof Configuration
|
|
51
|
-
*/
|
|
52
|
-
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
53
|
-
/**
|
|
54
|
-
* override base path
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof Configuration
|
|
58
|
-
*/
|
|
59
|
-
basePath?: string;
|
|
60
|
-
/**
|
|
61
|
-
* override server index
|
|
62
|
-
*
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof Configuration
|
|
65
|
-
*/
|
|
66
|
-
serverIndex?: number;
|
|
67
|
-
/**
|
|
68
|
-
* base options for axios calls
|
|
69
|
-
*
|
|
70
|
-
* @type {any}
|
|
71
|
-
* @memberof Configuration
|
|
72
|
-
*/
|
|
73
|
-
baseOptions?: any;
|
|
74
|
-
/**
|
|
75
|
-
* The FormData constructor that will be used to create multipart form data
|
|
76
|
-
* requests. You can inject this here so that execution environments that
|
|
77
|
-
* do not support the FormData class can still run the generated client.
|
|
78
|
-
*
|
|
79
|
-
* @type {new () => FormData}
|
|
80
|
-
*/
|
|
81
|
-
formDataCtor?: new () => any;
|
|
82
|
-
constructor(param?: ConfigurationParameters);
|
|
83
|
-
/**
|
|
84
|
-
* Check if the given MIME is a JSON MIME.
|
|
85
|
-
* JSON MIME examples:
|
|
86
|
-
* application/json
|
|
87
|
-
* application/json; charset=UTF8
|
|
88
|
-
* APPLICATION/JSON
|
|
89
|
-
* application/vnd.company+json
|
|
90
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
91
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
92
|
-
*/
|
|
93
|
-
isJsonMime(mime: string): boolean;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Horpynka API
|
|
98
|
-
* Backend API for Horpynka POS
|
|
99
|
-
*
|
|
100
|
-
* The version of the OpenAPI document: 1.0
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
104
|
-
* https://openapi-generator.tech
|
|
105
|
-
* Do not edit the class manually.
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @export
|
|
111
|
-
* @class BaseAPI
|
|
112
|
-
*/
|
|
113
|
-
declare class BaseAPI {
|
|
114
|
-
protected basePath: string;
|
|
115
|
-
protected axios: AxiosInstance;
|
|
116
|
-
protected configuration: Configuration | undefined;
|
|
117
|
-
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @export
|
|
123
|
-
* @interface Category
|
|
124
|
-
*/
|
|
125
|
-
interface Category {
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {number}
|
|
129
|
-
* @memberof Category
|
|
130
|
-
*/
|
|
131
|
-
'id': number;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof Category
|
|
136
|
-
*/
|
|
137
|
-
'name': string;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {Array<Dish>}
|
|
141
|
-
* @memberof Category
|
|
142
|
-
*/
|
|
143
|
-
'dishes': Array<Dish>;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @type {Array<Product>}
|
|
147
|
-
* @memberof Category
|
|
148
|
-
*/
|
|
149
|
-
'products': Array<Product>;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
* @export
|
|
154
|
-
* @interface CreateOrderDto
|
|
155
|
-
*/
|
|
156
|
-
interface CreateOrderDto {
|
|
157
|
-
/**
|
|
158
|
-
* @default CREATED
|
|
159
|
-
* @type {string}
|
|
160
|
-
* @memberof CreateOrderDto
|
|
161
|
-
*/
|
|
162
|
-
'status'?: CreateOrderDtoStatusEnum;
|
|
163
|
-
/**
|
|
164
|
-
*
|
|
165
|
-
* @type {number}
|
|
166
|
-
* @memberof CreateOrderDto
|
|
167
|
-
*/
|
|
168
|
-
'orderPrice': number;
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @type {number}
|
|
172
|
-
* @memberof CreateOrderDto
|
|
173
|
-
*/
|
|
174
|
-
'paidWithCash': number;
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
177
|
-
* @type {number}
|
|
178
|
-
* @memberof CreateOrderDto
|
|
179
|
-
*/
|
|
180
|
-
'paidWithCard': number;
|
|
181
|
-
/**
|
|
182
|
-
*
|
|
183
|
-
* @type {number}
|
|
184
|
-
* @memberof CreateOrderDto
|
|
185
|
-
*/
|
|
186
|
-
'refundedWithCash': number;
|
|
187
|
-
/**
|
|
188
|
-
*
|
|
189
|
-
* @type {number}
|
|
190
|
-
* @memberof CreateOrderDto
|
|
191
|
-
*/
|
|
192
|
-
'refundedWithCard': number;
|
|
193
|
-
}
|
|
194
|
-
declare const CreateOrderDtoStatusEnum: {
|
|
195
|
-
readonly Created: "CREATED";
|
|
196
|
-
readonly Paid: "PAID";
|
|
197
|
-
readonly Cancelled: "CANCELLED";
|
|
198
|
-
readonly Deleted: "DELETED";
|
|
199
|
-
readonly Refunded: "REFUNDED";
|
|
200
|
-
readonly Completed: "COMPLETED";
|
|
201
|
-
};
|
|
202
|
-
type CreateOrderDtoStatusEnum = typeof CreateOrderDtoStatusEnum[keyof typeof CreateOrderDtoStatusEnum];
|
|
203
|
-
/**
|
|
204
|
-
*
|
|
205
|
-
* @export
|
|
206
|
-
* @interface Dish
|
|
207
|
-
*/
|
|
208
|
-
interface Dish {
|
|
209
|
-
/**
|
|
210
|
-
*
|
|
211
|
-
* @type {number}
|
|
212
|
-
* @memberof Dish
|
|
213
|
-
*/
|
|
214
|
-
'id': number;
|
|
215
|
-
/**
|
|
216
|
-
*
|
|
217
|
-
* @type {string}
|
|
218
|
-
* @memberof Dish
|
|
219
|
-
*/
|
|
220
|
-
'name': string;
|
|
221
|
-
/**
|
|
222
|
-
*
|
|
223
|
-
* @type {number}
|
|
224
|
-
* @memberof Dish
|
|
225
|
-
*/
|
|
226
|
-
'categoryId': number | null;
|
|
227
|
-
/**
|
|
228
|
-
*
|
|
229
|
-
* @type {Category}
|
|
230
|
-
* @memberof Dish
|
|
231
|
-
*/
|
|
232
|
-
'category': Category;
|
|
233
|
-
/**
|
|
234
|
-
*
|
|
235
|
-
* @type {number}
|
|
236
|
-
* @memberof Dish
|
|
237
|
-
*/
|
|
238
|
-
'ownPrice': number;
|
|
239
|
-
/**
|
|
240
|
-
*
|
|
241
|
-
* @type {number}
|
|
242
|
-
* @memberof Dish
|
|
243
|
-
*/
|
|
244
|
-
'sellingPrice': number;
|
|
245
|
-
/**
|
|
246
|
-
*
|
|
247
|
-
* @type {boolean}
|
|
248
|
-
* @memberof Dish
|
|
249
|
-
*/
|
|
250
|
-
'selling': boolean;
|
|
251
|
-
/**
|
|
252
|
-
*
|
|
253
|
-
* @type {string}
|
|
254
|
-
* @memberof Dish
|
|
255
|
-
*/
|
|
256
|
-
'createdAt': string;
|
|
257
|
-
/**
|
|
258
|
-
*
|
|
259
|
-
* @type {string}
|
|
260
|
-
* @memberof Dish
|
|
261
|
-
*/
|
|
262
|
-
'updatedAt': string;
|
|
263
|
-
/**
|
|
264
|
-
*
|
|
265
|
-
* @type {Array<DishIngredient>}
|
|
266
|
-
* @memberof Dish
|
|
267
|
-
*/
|
|
268
|
-
'dishIngredients': Array<DishIngredient>;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
*
|
|
272
|
-
* @export
|
|
273
|
-
* @interface DishIngredient
|
|
274
|
-
*/
|
|
275
|
-
interface DishIngredient {
|
|
276
|
-
/**
|
|
277
|
-
*
|
|
278
|
-
* @type {number}
|
|
279
|
-
* @memberof DishIngredient
|
|
280
|
-
*/
|
|
281
|
-
'id': number;
|
|
282
|
-
/**
|
|
283
|
-
*
|
|
284
|
-
* @type {number}
|
|
285
|
-
* @memberof DishIngredient
|
|
286
|
-
*/
|
|
287
|
-
'dishId': number | null;
|
|
288
|
-
/**
|
|
289
|
-
*
|
|
290
|
-
* @type {number}
|
|
291
|
-
* @memberof DishIngredient
|
|
292
|
-
*/
|
|
293
|
-
'ingredientId': number | null;
|
|
294
|
-
/**
|
|
295
|
-
*
|
|
296
|
-
* @type {Dish}
|
|
297
|
-
* @memberof DishIngredient
|
|
298
|
-
*/
|
|
299
|
-
'dish': Dish;
|
|
300
|
-
/**
|
|
301
|
-
*
|
|
302
|
-
* @type {Ingredient}
|
|
303
|
-
* @memberof DishIngredient
|
|
304
|
-
*/
|
|
305
|
-
'ingredient': Ingredient;
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
*
|
|
309
|
-
* @export
|
|
310
|
-
* @interface Ingredient
|
|
311
|
-
*/
|
|
312
|
-
interface Ingredient {
|
|
313
|
-
/**
|
|
314
|
-
*
|
|
315
|
-
* @type {number}
|
|
316
|
-
* @memberof Ingredient
|
|
317
|
-
*/
|
|
318
|
-
'id': number;
|
|
319
|
-
/**
|
|
320
|
-
*
|
|
321
|
-
* @type {string}
|
|
322
|
-
* @memberof Ingredient
|
|
323
|
-
*/
|
|
324
|
-
'measurementUnit': string;
|
|
325
|
-
/**
|
|
326
|
-
*
|
|
327
|
-
* @type {Array<DishIngredient>}
|
|
328
|
-
* @memberof Ingredient
|
|
329
|
-
*/
|
|
330
|
-
'dishIngredients': Array<DishIngredient>;
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
*
|
|
334
|
-
* @export
|
|
335
|
-
* @interface Order
|
|
336
|
-
*/
|
|
337
|
-
interface Order {
|
|
338
|
-
/**
|
|
339
|
-
*
|
|
340
|
-
* @type {number}
|
|
341
|
-
* @memberof Order
|
|
342
|
-
*/
|
|
343
|
-
'id': number;
|
|
344
|
-
/**
|
|
345
|
-
*
|
|
346
|
-
* @type {string}
|
|
347
|
-
* @memberof Order
|
|
348
|
-
*/
|
|
349
|
-
'status': OrderStatusEnum;
|
|
350
|
-
/**
|
|
351
|
-
*
|
|
352
|
-
* @type {string}
|
|
353
|
-
* @memberof Order
|
|
354
|
-
*/
|
|
355
|
-
'createdAt': string;
|
|
356
|
-
/**
|
|
357
|
-
*
|
|
358
|
-
* @type {string}
|
|
359
|
-
* @memberof Order
|
|
360
|
-
*/
|
|
361
|
-
'updatedAt': string;
|
|
362
|
-
/**
|
|
363
|
-
*
|
|
364
|
-
* @type {number}
|
|
365
|
-
* @memberof Order
|
|
366
|
-
*/
|
|
367
|
-
'orderPrice': number;
|
|
368
|
-
/**
|
|
369
|
-
*
|
|
370
|
-
* @type {number}
|
|
371
|
-
* @memberof Order
|
|
372
|
-
*/
|
|
373
|
-
'paidWithCash': number;
|
|
374
|
-
/**
|
|
375
|
-
*
|
|
376
|
-
* @type {number}
|
|
377
|
-
* @memberof Order
|
|
378
|
-
*/
|
|
379
|
-
'paidWithCard': number;
|
|
380
|
-
/**
|
|
381
|
-
*
|
|
382
|
-
* @type {number}
|
|
383
|
-
* @memberof Order
|
|
384
|
-
*/
|
|
385
|
-
'refundedWithCash': number;
|
|
386
|
-
/**
|
|
387
|
-
*
|
|
388
|
-
* @type {number}
|
|
389
|
-
* @memberof Order
|
|
390
|
-
*/
|
|
391
|
-
'refundedWithCard': number;
|
|
392
|
-
/**
|
|
393
|
-
*
|
|
394
|
-
* @type {Array<OrderItem>}
|
|
395
|
-
* @memberof Order
|
|
396
|
-
*/
|
|
397
|
-
'orderItems': Array<OrderItem>;
|
|
398
|
-
}
|
|
399
|
-
declare const OrderStatusEnum: {
|
|
400
|
-
readonly Created: "CREATED";
|
|
401
|
-
readonly Paid: "PAID";
|
|
402
|
-
readonly Cancelled: "CANCELLED";
|
|
403
|
-
readonly Deleted: "DELETED";
|
|
404
|
-
readonly Refunded: "REFUNDED";
|
|
405
|
-
readonly Completed: "COMPLETED";
|
|
406
|
-
};
|
|
407
|
-
type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
|
|
408
|
-
/**
|
|
409
|
-
*
|
|
410
|
-
* @export
|
|
411
|
-
* @interface OrderItem
|
|
412
|
-
*/
|
|
413
|
-
interface OrderItem {
|
|
414
|
-
/**
|
|
415
|
-
*
|
|
416
|
-
* @type {number}
|
|
417
|
-
* @memberof OrderItem
|
|
418
|
-
*/
|
|
419
|
-
'id': number;
|
|
420
|
-
/**
|
|
421
|
-
*
|
|
422
|
-
* @type {number}
|
|
423
|
-
* @memberof OrderItem
|
|
424
|
-
*/
|
|
425
|
-
'sellingPrice': number;
|
|
426
|
-
/**
|
|
427
|
-
*
|
|
428
|
-
* @type {string}
|
|
429
|
-
* @memberof OrderItem
|
|
430
|
-
*/
|
|
431
|
-
'discount': string | null;
|
|
432
|
-
/**
|
|
433
|
-
*
|
|
434
|
-
* @type {string}
|
|
435
|
-
* @memberof OrderItem
|
|
436
|
-
*/
|
|
437
|
-
'discountType': string;
|
|
438
|
-
/**
|
|
439
|
-
*
|
|
440
|
-
* @type {number}
|
|
441
|
-
* @memberof OrderItem
|
|
442
|
-
*/
|
|
443
|
-
'dishId': number | null;
|
|
444
|
-
/**
|
|
445
|
-
*
|
|
446
|
-
* @type {number}
|
|
447
|
-
* @memberof OrderItem
|
|
448
|
-
*/
|
|
449
|
-
'productId': number | null;
|
|
450
|
-
/**
|
|
451
|
-
*
|
|
452
|
-
* @type {number}
|
|
453
|
-
* @memberof OrderItem
|
|
454
|
-
*/
|
|
455
|
-
'orderId': number | null;
|
|
456
|
-
/**
|
|
457
|
-
*
|
|
458
|
-
* @type {Dish}
|
|
459
|
-
* @memberof OrderItem
|
|
460
|
-
*/
|
|
461
|
-
'dish': Dish | null;
|
|
462
|
-
/**
|
|
463
|
-
*
|
|
464
|
-
* @type {Product}
|
|
465
|
-
* @memberof OrderItem
|
|
466
|
-
*/
|
|
467
|
-
'product': Product | null;
|
|
468
|
-
/**
|
|
469
|
-
*
|
|
470
|
-
* @type {Order}
|
|
471
|
-
* @memberof OrderItem
|
|
472
|
-
*/
|
|
473
|
-
'order': Order;
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
*
|
|
477
|
-
* @export
|
|
478
|
-
* @interface Product
|
|
479
|
-
*/
|
|
480
|
-
interface Product {
|
|
481
|
-
/**
|
|
482
|
-
*
|
|
483
|
-
* @type {number}
|
|
484
|
-
* @memberof Product
|
|
485
|
-
*/
|
|
486
|
-
'id': number;
|
|
487
|
-
/**
|
|
488
|
-
*
|
|
489
|
-
* @type {string}
|
|
490
|
-
* @memberof Product
|
|
491
|
-
*/
|
|
492
|
-
'name': string;
|
|
493
|
-
/**
|
|
494
|
-
*
|
|
495
|
-
* @type {number}
|
|
496
|
-
* @memberof Product
|
|
497
|
-
*/
|
|
498
|
-
'ownPrice': number;
|
|
499
|
-
/**
|
|
500
|
-
*
|
|
501
|
-
* @type {number}
|
|
502
|
-
* @memberof Product
|
|
503
|
-
*/
|
|
504
|
-
'sellingPrice': number;
|
|
505
|
-
/**
|
|
506
|
-
*
|
|
507
|
-
* @type {number}
|
|
508
|
-
* @memberof Product
|
|
509
|
-
*/
|
|
510
|
-
'categoryId': number | null;
|
|
511
|
-
/**
|
|
512
|
-
*
|
|
513
|
-
* @type {Category}
|
|
514
|
-
* @memberof Product
|
|
515
|
-
*/
|
|
516
|
-
'category': Category;
|
|
517
|
-
/**
|
|
518
|
-
*
|
|
519
|
-
* @type {boolean}
|
|
520
|
-
* @memberof Product
|
|
521
|
-
*/
|
|
522
|
-
'selling': boolean;
|
|
523
|
-
/**
|
|
524
|
-
*
|
|
525
|
-
* @type {string}
|
|
526
|
-
* @memberof Product
|
|
527
|
-
*/
|
|
528
|
-
'createdAt': string;
|
|
529
|
-
/**
|
|
530
|
-
*
|
|
531
|
-
* @type {string}
|
|
532
|
-
* @memberof Product
|
|
533
|
-
*/
|
|
534
|
-
'updatedAt': string;
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
*
|
|
538
|
-
* @export
|
|
539
|
-
* @interface UpdateOrderDto
|
|
540
|
-
*/
|
|
541
|
-
interface UpdateOrderDto {
|
|
542
|
-
/**
|
|
543
|
-
* @default CREATED
|
|
544
|
-
* @type {string}
|
|
545
|
-
* @memberof UpdateOrderDto
|
|
546
|
-
*/
|
|
547
|
-
'status'?: UpdateOrderDtoStatusEnum;
|
|
548
|
-
/**
|
|
549
|
-
*
|
|
550
|
-
* @type {number}
|
|
551
|
-
* @memberof UpdateOrderDto
|
|
552
|
-
*/
|
|
553
|
-
'orderPrice'?: number;
|
|
554
|
-
/**
|
|
555
|
-
*
|
|
556
|
-
* @type {number}
|
|
557
|
-
* @memberof UpdateOrderDto
|
|
558
|
-
*/
|
|
559
|
-
'paidWithCash'?: number;
|
|
560
|
-
/**
|
|
561
|
-
*
|
|
562
|
-
* @type {number}
|
|
563
|
-
* @memberof UpdateOrderDto
|
|
564
|
-
*/
|
|
565
|
-
'paidWithCard'?: number;
|
|
566
|
-
/**
|
|
567
|
-
*
|
|
568
|
-
* @type {number}
|
|
569
|
-
* @memberof UpdateOrderDto
|
|
570
|
-
*/
|
|
571
|
-
'refundedWithCash'?: number;
|
|
572
|
-
/**
|
|
573
|
-
*
|
|
574
|
-
* @type {number}
|
|
575
|
-
* @memberof UpdateOrderDto
|
|
576
|
-
*/
|
|
577
|
-
'refundedWithCard'?: number;
|
|
578
|
-
}
|
|
579
|
-
declare const UpdateOrderDtoStatusEnum: {
|
|
580
|
-
readonly Created: "CREATED";
|
|
581
|
-
readonly Paid: "PAID";
|
|
582
|
-
readonly Cancelled: "CANCELLED";
|
|
583
|
-
readonly Deleted: "DELETED";
|
|
584
|
-
readonly Refunded: "REFUNDED";
|
|
585
|
-
readonly Completed: "COMPLETED";
|
|
586
|
-
};
|
|
587
|
-
type UpdateOrderDtoStatusEnum = typeof UpdateOrderDtoStatusEnum[keyof typeof UpdateOrderDtoStatusEnum];
|
|
588
|
-
/**
|
|
589
|
-
* OrdersApi - object-oriented interface
|
|
590
|
-
* @export
|
|
591
|
-
* @class OrdersApi
|
|
592
|
-
* @extends {BaseAPI}
|
|
593
|
-
*/
|
|
594
|
-
declare class OrdersApi extends BaseAPI {
|
|
595
|
-
/**
|
|
596
|
-
*
|
|
597
|
-
* @param {CreateOrderDto} createOrderDto
|
|
598
|
-
* @param {*} [options] Override http request option.
|
|
599
|
-
* @throws {RequiredError}
|
|
600
|
-
* @memberof OrdersApi
|
|
601
|
-
*/
|
|
602
|
-
create(createOrderDto: CreateOrderDto, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Order, any, {}, any>>;
|
|
603
|
-
/**
|
|
604
|
-
*
|
|
605
|
-
* @param {number} [page]
|
|
606
|
-
* @param {number} [limit]
|
|
607
|
-
* @param {string} [status]
|
|
608
|
-
* @param {*} [options] Override http request option.
|
|
609
|
-
* @throws {RequiredError}
|
|
610
|
-
* @memberof OrdersApi
|
|
611
|
-
*/
|
|
612
|
-
findAll(page?: number, limit?: number, status?: string, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Order[], any, {}, any>>;
|
|
613
|
-
/**
|
|
614
|
-
*
|
|
615
|
-
* @param {number} id
|
|
616
|
-
* @param {*} [options] Override http request option.
|
|
617
|
-
* @throws {RequiredError}
|
|
618
|
-
* @memberof OrdersApi
|
|
619
|
-
*/
|
|
620
|
-
findOne(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Order, any, {}, any>>;
|
|
621
|
-
/**
|
|
622
|
-
*
|
|
623
|
-
* @param {number} id
|
|
624
|
-
* @param {*} [options] Override http request option.
|
|
625
|
-
* @throws {RequiredError}
|
|
626
|
-
* @memberof OrdersApi
|
|
627
|
-
*/
|
|
628
|
-
removeActiveReceipt(id: number, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Order, any, {}, any>>;
|
|
629
|
-
/**
|
|
630
|
-
*
|
|
631
|
-
* @param {number} id
|
|
632
|
-
* @param {UpdateOrderDto} updateOrderDto
|
|
633
|
-
* @param {*} [options] Override http request option.
|
|
634
|
-
* @throws {RequiredError}
|
|
635
|
-
* @memberof OrdersApi
|
|
636
|
-
*/
|
|
637
|
-
update(id: number, updateOrderDto: UpdateOrderDto, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<Order, any, {}, any>>;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
export { OrdersApi as O, type Order as a };
|