karibu-layer 1.0.0

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.
Files changed (113) hide show
  1. package/README.md +236 -0
  2. package/api/api.d.ts +23 -0
  3. package/api/authentication.service.d.ts +143 -0
  4. package/api/board.service.d.ts +267 -0
  5. package/api/establishment.service.d.ts +181 -0
  6. package/api/establishmentAccessor.service.d.ts +161 -0
  7. package/api/invoice.service.d.ts +180 -0
  8. package/api/order.service.d.ts +183 -0
  9. package/api/orderItem.service.d.ts +202 -0
  10. package/api/payment.service.d.ts +222 -0
  11. package/api/product.service.d.ts +161 -0
  12. package/api/role.service.d.ts +117 -0
  13. package/api/user.service.d.ts +271 -0
  14. package/api.base.service.d.ts +12 -0
  15. package/api.module.d.ts +11 -0
  16. package/configuration.d.ts +106 -0
  17. package/encoder.d.ts +11 -0
  18. package/esm2022/api/api.mjs +24 -0
  19. package/esm2022/api/authentication.service.mjs +304 -0
  20. package/esm2022/api/board.service.mjs +495 -0
  21. package/esm2022/api/establishment.service.mjs +345 -0
  22. package/esm2022/api/establishmentAccessor.service.mjs +295 -0
  23. package/esm2022/api/invoice.service.mjs +349 -0
  24. package/esm2022/api/order.service.mjs +355 -0
  25. package/esm2022/api/orderItem.service.mjs +381 -0
  26. package/esm2022/api/payment.service.mjs +417 -0
  27. package/esm2022/api/product.service.mjs +312 -0
  28. package/esm2022/api/role.service.mjs +237 -0
  29. package/esm2022/api/user.service.mjs +507 -0
  30. package/esm2022/api.base.service.mjs +68 -0
  31. package/esm2022/api.module.mjs +40 -0
  32. package/esm2022/configuration.mjs +133 -0
  33. package/esm2022/encoder.mjs +19 -0
  34. package/esm2022/index.mjs +7 -0
  35. package/esm2022/karibu-api-client.mjs +5 -0
  36. package/esm2022/model/board.mjs +8 -0
  37. package/esm2022/model/boardRequestDTO.mjs +17 -0
  38. package/esm2022/model/boardResponseDTO.mjs +8 -0
  39. package/esm2022/model/dashboard.mjs +11 -0
  40. package/esm2022/model/establishment.mjs +34 -0
  41. package/esm2022/model/establishmentAccessor.mjs +2 -0
  42. package/esm2022/model/establishmentAccessorDTO.mjs +11 -0
  43. package/esm2022/model/establishmentAccessorRequestDTO.mjs +11 -0
  44. package/esm2022/model/establishmentAccessorResponseDTO.mjs +34 -0
  45. package/esm2022/model/establishmentRequestDTO.mjs +43 -0
  46. package/esm2022/model/establishmentResponseDTO.mjs +43 -0
  47. package/esm2022/model/invoice.mjs +2 -0
  48. package/esm2022/model/invoiceDTO.mjs +11 -0
  49. package/esm2022/model/loginAccessorRequestDTO.mjs +11 -0
  50. package/esm2022/model/loginRequestDTO.mjs +11 -0
  51. package/esm2022/model/loginResponseDTO.mjs +2 -0
  52. package/esm2022/model/models.mjs +35 -0
  53. package/esm2022/model/order.mjs +8 -0
  54. package/esm2022/model/orderItem.mjs +2 -0
  55. package/esm2022/model/orderItemRequestDTO.mjs +2 -0
  56. package/esm2022/model/orderItemResponseDTO.mjs +2 -0
  57. package/esm2022/model/orderRequestDTO.mjs +17 -0
  58. package/esm2022/model/orderResponseDTO.mjs +8 -0
  59. package/esm2022/model/payment.mjs +12 -0
  60. package/esm2022/model/paymentDTO.mjs +21 -0
  61. package/esm2022/model/product.mjs +10 -0
  62. package/esm2022/model/productRequestDTO.mjs +19 -0
  63. package/esm2022/model/productResponseDTO.mjs +10 -0
  64. package/esm2022/model/role.mjs +11 -0
  65. package/esm2022/model/roleDTO.mjs +20 -0
  66. package/esm2022/model/tokenRequest.mjs +11 -0
  67. package/esm2022/model/tokenResponse.mjs +11 -0
  68. package/esm2022/model/user.mjs +11 -0
  69. package/esm2022/model/userRequestDTO.mjs +2 -0
  70. package/esm2022/model/userResponseDTO.mjs +11 -0
  71. package/esm2022/param.mjs +2 -0
  72. package/esm2022/variables.mjs +9 -0
  73. package/fesm2022/karibu-layer.mjs +4608 -0
  74. package/fesm2022/karibu-layer.mjs.map +1 -0
  75. package/index.d.ts +6 -0
  76. package/model/board.d.ts +30 -0
  77. package/model/boardRequestDTO.d.ts +24 -0
  78. package/model/boardResponseDTO.d.ts +28 -0
  79. package/model/dashboard.d.ts +13 -0
  80. package/model/establishment.d.ts +73 -0
  81. package/model/establishmentAccessor.d.ts +23 -0
  82. package/model/establishmentAccessorDTO.d.ts +22 -0
  83. package/model/establishmentAccessorRequestDTO.d.ts +18 -0
  84. package/model/establishmentAccessorResponseDTO.d.ts +64 -0
  85. package/model/establishmentRequestDTO.d.ts +59 -0
  86. package/model/establishmentResponseDTO.d.ts +62 -0
  87. package/model/invoice.d.ts +19 -0
  88. package/model/invoiceDTO.d.ts +16 -0
  89. package/model/loginAccessorRequestDTO.d.ts +13 -0
  90. package/model/loginRequestDTO.d.ts +13 -0
  91. package/model/loginResponseDTO.d.ts +21 -0
  92. package/model/models.d.ts +34 -0
  93. package/model/order.d.ts +32 -0
  94. package/model/orderItem.d.ts +18 -0
  95. package/model/orderItemRequestDTO.d.ts +18 -0
  96. package/model/orderItemResponseDTO.d.ts +18 -0
  97. package/model/orderRequestDTO.d.ts +21 -0
  98. package/model/orderResponseDTO.d.ts +31 -0
  99. package/model/payment.d.ts +30 -0
  100. package/model/paymentDTO.d.ts +30 -0
  101. package/model/product.d.ts +33 -0
  102. package/model/productRequestDTO.d.ts +32 -0
  103. package/model/productResponseDTO.d.ts +35 -0
  104. package/model/role.d.ts +26 -0
  105. package/model/roleDTO.d.ts +24 -0
  106. package/model/tokenRequest.d.ts +12 -0
  107. package/model/tokenResponse.d.ts +12 -0
  108. package/model/user.d.ts +40 -0
  109. package/model/userRequestDTO.d.ts +19 -0
  110. package/model/userResponseDTO.d.ts +36 -0
  111. package/package.json +46 -0
  112. package/param.d.ts +37 -0
  113. package/variables.d.ts +8 -0
@@ -0,0 +1,183 @@
1
+ import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { OrderRequestDTO } from '../model/orderRequestDTO';
4
+ import { OrderResponseDTO } from '../model/orderResponseDTO';
5
+ import { Configuration } from '../configuration';
6
+ import { BaseService } from '../api.base.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class OrderService extends BaseService {
9
+ protected httpClient: HttpClient;
10
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
11
+ /**
12
+ * Créer une nouvelle commande
13
+ * @param orderRequestDTO
14
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
15
+ * @param reportProgress flag to report request and response progress.
16
+ */
17
+ createOrder(orderRequestDTO: OrderRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
18
+ httpHeaderAccept?: 'application/json';
19
+ context?: HttpContext;
20
+ transferCache?: boolean;
21
+ }): Observable<OrderResponseDTO>;
22
+ createOrder(orderRequestDTO: OrderRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
23
+ httpHeaderAccept?: 'application/json';
24
+ context?: HttpContext;
25
+ transferCache?: boolean;
26
+ }): Observable<HttpResponse<OrderResponseDTO>>;
27
+ createOrder(orderRequestDTO: OrderRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
28
+ httpHeaderAccept?: 'application/json';
29
+ context?: HttpContext;
30
+ transferCache?: boolean;
31
+ }): Observable<HttpEvent<OrderResponseDTO>>;
32
+ /**
33
+ * Supprimer une commande
34
+ * @param id
35
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
36
+ * @param reportProgress flag to report request and response progress.
37
+ */
38
+ removeOrder(id: number, observe?: 'body', reportProgress?: boolean, options?: {
39
+ httpHeaderAccept?: undefined;
40
+ context?: HttpContext;
41
+ transferCache?: boolean;
42
+ }): Observable<any>;
43
+ removeOrder(id: number, observe?: 'response', reportProgress?: boolean, options?: {
44
+ httpHeaderAccept?: undefined;
45
+ context?: HttpContext;
46
+ transferCache?: boolean;
47
+ }): Observable<HttpResponse<any>>;
48
+ removeOrder(id: number, observe?: 'events', reportProgress?: boolean, options?: {
49
+ httpHeaderAccept?: undefined;
50
+ context?: HttpContext;
51
+ transferCache?: boolean;
52
+ }): Observable<HttpEvent<any>>;
53
+ /**
54
+ * Récupérer toutes les commandes
55
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
56
+ * @param reportProgress flag to report request and response progress.
57
+ */
58
+ retrieveAllOrders(observe?: 'body', reportProgress?: boolean, options?: {
59
+ httpHeaderAccept?: 'application/json';
60
+ context?: HttpContext;
61
+ transferCache?: boolean;
62
+ }): Observable<Array<OrderResponseDTO>>;
63
+ retrieveAllOrders(observe?: 'response', reportProgress?: boolean, options?: {
64
+ httpHeaderAccept?: 'application/json';
65
+ context?: HttpContext;
66
+ transferCache?: boolean;
67
+ }): Observable<HttpResponse<Array<OrderResponseDTO>>>;
68
+ retrieveAllOrders(observe?: 'events', reportProgress?: boolean, options?: {
69
+ httpHeaderAccept?: 'application/json';
70
+ context?: HttpContext;
71
+ transferCache?: boolean;
72
+ }): Observable<HttpEvent<Array<OrderResponseDTO>>>;
73
+ /**
74
+ * Récupérer une commande par ID
75
+ * @param id
76
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
77
+ * @param reportProgress flag to report request and response progress.
78
+ */
79
+ retrieveOrderById(id: number, observe?: 'body', reportProgress?: boolean, options?: {
80
+ httpHeaderAccept?: 'application/json';
81
+ context?: HttpContext;
82
+ transferCache?: boolean;
83
+ }): Observable<OrderResponseDTO>;
84
+ retrieveOrderById(id: number, observe?: 'response', reportProgress?: boolean, options?: {
85
+ httpHeaderAccept?: 'application/json';
86
+ context?: HttpContext;
87
+ transferCache?: boolean;
88
+ }): Observable<HttpResponse<OrderResponseDTO>>;
89
+ retrieveOrderById(id: number, observe?: 'events', reportProgress?: boolean, options?: {
90
+ httpHeaderAccept?: 'application/json';
91
+ context?: HttpContext;
92
+ transferCache?: boolean;
93
+ }): Observable<HttpEvent<OrderResponseDTO>>;
94
+ /**
95
+ * Récupérer les commandes par plage de dates
96
+ * @param start
97
+ * @param end
98
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
99
+ * @param reportProgress flag to report request and response progress.
100
+ */
101
+ retrieveOrdersByDateRange(start: string, end: string, observe?: 'body', reportProgress?: boolean, options?: {
102
+ httpHeaderAccept?: 'application/json';
103
+ context?: HttpContext;
104
+ transferCache?: boolean;
105
+ }): Observable<Array<OrderResponseDTO>>;
106
+ retrieveOrdersByDateRange(start: string, end: string, observe?: 'response', reportProgress?: boolean, options?: {
107
+ httpHeaderAccept?: 'application/json';
108
+ context?: HttpContext;
109
+ transferCache?: boolean;
110
+ }): Observable<HttpResponse<Array<OrderResponseDTO>>>;
111
+ retrieveOrdersByDateRange(start: string, end: string, observe?: 'events', reportProgress?: boolean, options?: {
112
+ httpHeaderAccept?: 'application/json';
113
+ context?: HttpContext;
114
+ transferCache?: boolean;
115
+ }): Observable<HttpEvent<Array<OrderResponseDTO>>>;
116
+ /**
117
+ * Récupérer les commandes par statut
118
+ * @param status
119
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
120
+ * @param reportProgress flag to report request and response progress.
121
+ */
122
+ retrieveOrdersByStatus(status: 'IN_PROGRESS' | 'PAID', observe?: 'body', reportProgress?: boolean, options?: {
123
+ httpHeaderAccept?: 'application/json';
124
+ context?: HttpContext;
125
+ transferCache?: boolean;
126
+ }): Observable<Array<OrderResponseDTO>>;
127
+ retrieveOrdersByStatus(status: 'IN_PROGRESS' | 'PAID', observe?: 'response', reportProgress?: boolean, options?: {
128
+ httpHeaderAccept?: 'application/json';
129
+ context?: HttpContext;
130
+ transferCache?: boolean;
131
+ }): Observable<HttpResponse<Array<OrderResponseDTO>>>;
132
+ retrieveOrdersByStatus(status: 'IN_PROGRESS' | 'PAID', observe?: 'events', reportProgress?: boolean, options?: {
133
+ httpHeaderAccept?: 'application/json';
134
+ context?: HttpContext;
135
+ transferCache?: boolean;
136
+ }): Observable<HttpEvent<Array<OrderResponseDTO>>>;
137
+ /**
138
+ * Mettre à jour une commande
139
+ * @param id
140
+ * @param orderRequestDTO
141
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
142
+ * @param reportProgress flag to report request and response progress.
143
+ */
144
+ updateOrder(id: number, orderRequestDTO: OrderRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
145
+ httpHeaderAccept?: 'application/json';
146
+ context?: HttpContext;
147
+ transferCache?: boolean;
148
+ }): Observable<OrderResponseDTO>;
149
+ updateOrder(id: number, orderRequestDTO: OrderRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
150
+ httpHeaderAccept?: 'application/json';
151
+ context?: HttpContext;
152
+ transferCache?: boolean;
153
+ }): Observable<HttpResponse<OrderResponseDTO>>;
154
+ updateOrder(id: number, orderRequestDTO: OrderRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
155
+ httpHeaderAccept?: 'application/json';
156
+ context?: HttpContext;
157
+ transferCache?: boolean;
158
+ }): Observable<HttpEvent<OrderResponseDTO>>;
159
+ /**
160
+ * Changer le statut d\&#39;une commande
161
+ * @param id
162
+ * @param status
163
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
164
+ * @param reportProgress flag to report request and response progress.
165
+ */
166
+ updateOrderStatus(id: number, status: 'IN_PROGRESS' | 'PAID', observe?: 'body', reportProgress?: boolean, options?: {
167
+ httpHeaderAccept?: 'application/json';
168
+ context?: HttpContext;
169
+ transferCache?: boolean;
170
+ }): Observable<OrderResponseDTO>;
171
+ updateOrderStatus(id: number, status: 'IN_PROGRESS' | 'PAID', observe?: 'response', reportProgress?: boolean, options?: {
172
+ httpHeaderAccept?: 'application/json';
173
+ context?: HttpContext;
174
+ transferCache?: boolean;
175
+ }): Observable<HttpResponse<OrderResponseDTO>>;
176
+ updateOrderStatus(id: number, status: 'IN_PROGRESS' | 'PAID', observe?: 'events', reportProgress?: boolean, options?: {
177
+ httpHeaderAccept?: 'application/json';
178
+ context?: HttpContext;
179
+ transferCache?: boolean;
180
+ }): Observable<HttpEvent<OrderResponseDTO>>;
181
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderService, [null, { optional: true; }, { optional: true; }]>;
182
+ static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
183
+ }
@@ -0,0 +1,202 @@
1
+ import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { OrderItemRequestDTO } from '../model/orderItemRequestDTO';
4
+ import { OrderItemResponseDTO } from '../model/orderItemResponseDTO';
5
+ import { Configuration } from '../configuration';
6
+ import { BaseService } from '../api.base.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class OrderItemService extends BaseService {
9
+ protected httpClient: HttpClient;
10
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
11
+ /**
12
+ * Créer un nouvel élément de commande
13
+ * @param orderItemRequestDTO
14
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
15
+ * @param reportProgress flag to report request and response progress.
16
+ */
17
+ createOrderItem(orderItemRequestDTO: OrderItemRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
18
+ httpHeaderAccept?: 'application/json';
19
+ context?: HttpContext;
20
+ transferCache?: boolean;
21
+ }): Observable<OrderItemResponseDTO>;
22
+ createOrderItem(orderItemRequestDTO: OrderItemRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
23
+ httpHeaderAccept?: 'application/json';
24
+ context?: HttpContext;
25
+ transferCache?: boolean;
26
+ }): Observable<HttpResponse<OrderItemResponseDTO>>;
27
+ createOrderItem(orderItemRequestDTO: OrderItemRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
28
+ httpHeaderAccept?: 'application/json';
29
+ context?: HttpContext;
30
+ transferCache?: boolean;
31
+ }): Observable<HttpEvent<OrderItemResponseDTO>>;
32
+ /**
33
+ * Supprimer un élément de commande
34
+ * @param id
35
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
36
+ * @param reportProgress flag to report request and response progress.
37
+ */
38
+ removeOrderItem(id: number, observe?: 'body', reportProgress?: boolean, options?: {
39
+ httpHeaderAccept?: undefined;
40
+ context?: HttpContext;
41
+ transferCache?: boolean;
42
+ }): Observable<any>;
43
+ removeOrderItem(id: number, observe?: 'response', reportProgress?: boolean, options?: {
44
+ httpHeaderAccept?: undefined;
45
+ context?: HttpContext;
46
+ transferCache?: boolean;
47
+ }): Observable<HttpResponse<any>>;
48
+ removeOrderItem(id: number, observe?: 'events', reportProgress?: boolean, options?: {
49
+ httpHeaderAccept?: undefined;
50
+ context?: HttpContext;
51
+ transferCache?: boolean;
52
+ }): Observable<HttpEvent<any>>;
53
+ /**
54
+ * Récupérer tous les éléments de commande
55
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
56
+ * @param reportProgress flag to report request and response progress.
57
+ */
58
+ retrieveAllOrderItems(observe?: 'body', reportProgress?: boolean, options?: {
59
+ httpHeaderAccept?: 'application/json';
60
+ context?: HttpContext;
61
+ transferCache?: boolean;
62
+ }): Observable<Array<OrderItemResponseDTO>>;
63
+ retrieveAllOrderItems(observe?: 'response', reportProgress?: boolean, options?: {
64
+ httpHeaderAccept?: 'application/json';
65
+ context?: HttpContext;
66
+ transferCache?: boolean;
67
+ }): Observable<HttpResponse<Array<OrderItemResponseDTO>>>;
68
+ retrieveAllOrderItems(observe?: 'events', reportProgress?: boolean, options?: {
69
+ httpHeaderAccept?: 'application/json';
70
+ context?: HttpContext;
71
+ transferCache?: boolean;
72
+ }): Observable<HttpEvent<Array<OrderItemResponseDTO>>>;
73
+ /**
74
+ * Récupérer un élément de commande par ID
75
+ * @param id
76
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
77
+ * @param reportProgress flag to report request and response progress.
78
+ */
79
+ retrieveOrderItemById(id: number, observe?: 'body', reportProgress?: boolean, options?: {
80
+ httpHeaderAccept?: 'application/json';
81
+ context?: HttpContext;
82
+ transferCache?: boolean;
83
+ }): Observable<OrderItemResponseDTO>;
84
+ retrieveOrderItemById(id: number, observe?: 'response', reportProgress?: boolean, options?: {
85
+ httpHeaderAccept?: 'application/json';
86
+ context?: HttpContext;
87
+ transferCache?: boolean;
88
+ }): Observable<HttpResponse<OrderItemResponseDTO>>;
89
+ retrieveOrderItemById(id: number, observe?: 'events', reportProgress?: boolean, options?: {
90
+ httpHeaderAccept?: 'application/json';
91
+ context?: HttpContext;
92
+ transferCache?: boolean;
93
+ }): Observable<HttpEvent<OrderItemResponseDTO>>;
94
+ /**
95
+ * Récupérer les éléments par commande
96
+ * @param orderId
97
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
98
+ * @param reportProgress flag to report request and response progress.
99
+ */
100
+ retrieveOrderItemsByOrderId(orderId: number, observe?: 'body', reportProgress?: boolean, options?: {
101
+ httpHeaderAccept?: 'application/json';
102
+ context?: HttpContext;
103
+ transferCache?: boolean;
104
+ }): Observable<Array<OrderItemResponseDTO>>;
105
+ retrieveOrderItemsByOrderId(orderId: number, observe?: 'response', reportProgress?: boolean, options?: {
106
+ httpHeaderAccept?: 'application/json';
107
+ context?: HttpContext;
108
+ transferCache?: boolean;
109
+ }): Observable<HttpResponse<Array<OrderItemResponseDTO>>>;
110
+ retrieveOrderItemsByOrderId(orderId: number, observe?: 'events', reportProgress?: boolean, options?: {
111
+ httpHeaderAccept?: 'application/json';
112
+ context?: HttpContext;
113
+ transferCache?: boolean;
114
+ }): Observable<HttpEvent<Array<OrderItemResponseDTO>>>;
115
+ /**
116
+ * Récupérer les éléments par produit
117
+ * @param productId
118
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
119
+ * @param reportProgress flag to report request and response progress.
120
+ */
121
+ retrieveOrderItemsByProductId(productId: number, observe?: 'body', reportProgress?: boolean, options?: {
122
+ httpHeaderAccept?: 'application/json';
123
+ context?: HttpContext;
124
+ transferCache?: boolean;
125
+ }): Observable<Array<OrderItemResponseDTO>>;
126
+ retrieveOrderItemsByProductId(productId: number, observe?: 'response', reportProgress?: boolean, options?: {
127
+ httpHeaderAccept?: 'application/json';
128
+ context?: HttpContext;
129
+ transferCache?: boolean;
130
+ }): Observable<HttpResponse<Array<OrderItemResponseDTO>>>;
131
+ retrieveOrderItemsByProductId(productId: number, observe?: 'events', reportProgress?: boolean, options?: {
132
+ httpHeaderAccept?: 'application/json';
133
+ context?: HttpContext;
134
+ transferCache?: boolean;
135
+ }): Observable<HttpEvent<Array<OrderItemResponseDTO>>>;
136
+ /**
137
+ * Récupérer les produits les plus vendus
138
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
139
+ * @param reportProgress flag to report request and response progress.
140
+ */
141
+ retrieveTopSellingProducts(observe?: 'body', reportProgress?: boolean, options?: {
142
+ httpHeaderAccept?: 'application/json';
143
+ context?: HttpContext;
144
+ transferCache?: boolean;
145
+ }): Observable<Array<Array<object>>>;
146
+ retrieveTopSellingProducts(observe?: 'response', reportProgress?: boolean, options?: {
147
+ httpHeaderAccept?: 'application/json';
148
+ context?: HttpContext;
149
+ transferCache?: boolean;
150
+ }): Observable<HttpResponse<Array<Array<object>>>>;
151
+ retrieveTopSellingProducts(observe?: 'events', reportProgress?: boolean, options?: {
152
+ httpHeaderAccept?: 'application/json';
153
+ context?: HttpContext;
154
+ transferCache?: boolean;
155
+ }): Observable<HttpEvent<Array<Array<object>>>>;
156
+ /**
157
+ * Mettre à jour un élément de commande
158
+ * @param id
159
+ * @param orderItemRequestDTO
160
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
161
+ * @param reportProgress flag to report request and response progress.
162
+ */
163
+ updateOrderItem(id: number, orderItemRequestDTO: OrderItemRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
164
+ httpHeaderAccept?: 'application/json';
165
+ context?: HttpContext;
166
+ transferCache?: boolean;
167
+ }): Observable<OrderItemResponseDTO>;
168
+ updateOrderItem(id: number, orderItemRequestDTO: OrderItemRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
169
+ httpHeaderAccept?: 'application/json';
170
+ context?: HttpContext;
171
+ transferCache?: boolean;
172
+ }): Observable<HttpResponse<OrderItemResponseDTO>>;
173
+ updateOrderItem(id: number, orderItemRequestDTO: OrderItemRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
174
+ httpHeaderAccept?: 'application/json';
175
+ context?: HttpContext;
176
+ transferCache?: boolean;
177
+ }): Observable<HttpEvent<OrderItemResponseDTO>>;
178
+ /**
179
+ * Mettre à jour la quantité d\&#39;un élément
180
+ * @param id
181
+ * @param quantity
182
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
183
+ * @param reportProgress flag to report request and response progress.
184
+ */
185
+ updateOrderItemQuantity(id: number, quantity: number, observe?: 'body', reportProgress?: boolean, options?: {
186
+ httpHeaderAccept?: 'application/json';
187
+ context?: HttpContext;
188
+ transferCache?: boolean;
189
+ }): Observable<OrderItemResponseDTO>;
190
+ updateOrderItemQuantity(id: number, quantity: number, observe?: 'response', reportProgress?: boolean, options?: {
191
+ httpHeaderAccept?: 'application/json';
192
+ context?: HttpContext;
193
+ transferCache?: boolean;
194
+ }): Observable<HttpResponse<OrderItemResponseDTO>>;
195
+ updateOrderItemQuantity(id: number, quantity: number, observe?: 'events', reportProgress?: boolean, options?: {
196
+ httpHeaderAccept?: 'application/json';
197
+ context?: HttpContext;
198
+ transferCache?: boolean;
199
+ }): Observable<HttpEvent<OrderItemResponseDTO>>;
200
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderItemService, [null, { optional: true; }, { optional: true; }]>;
201
+ static ɵprov: i0.ɵɵInjectableDeclaration<OrderItemService>;
202
+ }
@@ -0,0 +1,222 @@
1
+ import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { PaymentDTO } from '../model/paymentDTO';
4
+ import { Configuration } from '../configuration';
5
+ import { BaseService } from '../api.base.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class PaymentService extends BaseService {
8
+ protected httpClient: HttpClient;
9
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
10
+ /**
11
+ * Créer un nouveau paiement
12
+ * @param paymentDTO
13
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
14
+ * @param reportProgress flag to report request and response progress.
15
+ */
16
+ createPayment(paymentDTO: PaymentDTO, observe?: 'body', reportProgress?: boolean, options?: {
17
+ httpHeaderAccept?: 'application/json';
18
+ context?: HttpContext;
19
+ transferCache?: boolean;
20
+ }): Observable<PaymentDTO>;
21
+ createPayment(paymentDTO: PaymentDTO, observe?: 'response', reportProgress?: boolean, options?: {
22
+ httpHeaderAccept?: 'application/json';
23
+ context?: HttpContext;
24
+ transferCache?: boolean;
25
+ }): Observable<HttpResponse<PaymentDTO>>;
26
+ createPayment(paymentDTO: PaymentDTO, observe?: 'events', reportProgress?: boolean, options?: {
27
+ httpHeaderAccept?: 'application/json';
28
+ context?: HttpContext;
29
+ transferCache?: boolean;
30
+ }): Observable<HttpEvent<PaymentDTO>>;
31
+ /**
32
+ * Supprimer un paiement
33
+ * @param id
34
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
35
+ * @param reportProgress flag to report request and response progress.
36
+ */
37
+ removePayment(id: number, observe?: 'body', reportProgress?: boolean, options?: {
38
+ httpHeaderAccept?: undefined;
39
+ context?: HttpContext;
40
+ transferCache?: boolean;
41
+ }): Observable<any>;
42
+ removePayment(id: number, observe?: 'response', reportProgress?: boolean, options?: {
43
+ httpHeaderAccept?: undefined;
44
+ context?: HttpContext;
45
+ transferCache?: boolean;
46
+ }): Observable<HttpResponse<any>>;
47
+ removePayment(id: number, observe?: 'events', reportProgress?: boolean, options?: {
48
+ httpHeaderAccept?: undefined;
49
+ context?: HttpContext;
50
+ transferCache?: boolean;
51
+ }): Observable<HttpEvent<any>>;
52
+ /**
53
+ * Récupérer tous les paiements
54
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
55
+ * @param reportProgress flag to report request and response progress.
56
+ */
57
+ retrieveAllPayments(observe?: 'body', reportProgress?: boolean, options?: {
58
+ httpHeaderAccept?: 'application/json';
59
+ context?: HttpContext;
60
+ transferCache?: boolean;
61
+ }): Observable<Array<PaymentDTO>>;
62
+ retrieveAllPayments(observe?: 'response', reportProgress?: boolean, options?: {
63
+ httpHeaderAccept?: 'application/json';
64
+ context?: HttpContext;
65
+ transferCache?: boolean;
66
+ }): Observable<HttpResponse<Array<PaymentDTO>>>;
67
+ retrieveAllPayments(observe?: 'events', reportProgress?: boolean, options?: {
68
+ httpHeaderAccept?: 'application/json';
69
+ context?: HttpContext;
70
+ transferCache?: boolean;
71
+ }): Observable<HttpEvent<Array<PaymentDTO>>>;
72
+ /**
73
+ * Récupérer un paiement par ID
74
+ * @param id
75
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
76
+ * @param reportProgress flag to report request and response progress.
77
+ */
78
+ retrievePaymentById(id: number, observe?: 'body', reportProgress?: boolean, options?: {
79
+ httpHeaderAccept?: 'application/json';
80
+ context?: HttpContext;
81
+ transferCache?: boolean;
82
+ }): Observable<PaymentDTO>;
83
+ retrievePaymentById(id: number, observe?: 'response', reportProgress?: boolean, options?: {
84
+ httpHeaderAccept?: 'application/json';
85
+ context?: HttpContext;
86
+ transferCache?: boolean;
87
+ }): Observable<HttpResponse<PaymentDTO>>;
88
+ retrievePaymentById(id: number, observe?: 'events', reportProgress?: boolean, options?: {
89
+ httpHeaderAccept?: 'application/json';
90
+ context?: HttpContext;
91
+ transferCache?: boolean;
92
+ }): Observable<HttpEvent<PaymentDTO>>;
93
+ /**
94
+ * Récupérer les paiements par méthode
95
+ * @param method
96
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
97
+ * @param reportProgress flag to report request and response progress.
98
+ */
99
+ retrievePaymentByMethod(method: 'CASH' | 'CARD', observe?: 'body', reportProgress?: boolean, options?: {
100
+ httpHeaderAccept?: 'application/json';
101
+ context?: HttpContext;
102
+ transferCache?: boolean;
103
+ }): Observable<Array<PaymentDTO>>;
104
+ retrievePaymentByMethod(method: 'CASH' | 'CARD', observe?: 'response', reportProgress?: boolean, options?: {
105
+ httpHeaderAccept?: 'application/json';
106
+ context?: HttpContext;
107
+ transferCache?: boolean;
108
+ }): Observable<HttpResponse<Array<PaymentDTO>>>;
109
+ retrievePaymentByMethod(method: 'CASH' | 'CARD', observe?: 'events', reportProgress?: boolean, options?: {
110
+ httpHeaderAccept?: 'application/json';
111
+ context?: HttpContext;
112
+ transferCache?: boolean;
113
+ }): Observable<HttpEvent<Array<PaymentDTO>>>;
114
+ /**
115
+ * Récupérer les paiements par commande
116
+ * @param orderId
117
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
118
+ * @param reportProgress flag to report request and response progress.
119
+ */
120
+ retrievePaymentByOrderId(orderId: number, observe?: 'body', reportProgress?: boolean, options?: {
121
+ httpHeaderAccept?: 'application/json';
122
+ context?: HttpContext;
123
+ transferCache?: boolean;
124
+ }): Observable<Array<PaymentDTO>>;
125
+ retrievePaymentByOrderId(orderId: number, observe?: 'response', reportProgress?: boolean, options?: {
126
+ httpHeaderAccept?: 'application/json';
127
+ context?: HttpContext;
128
+ transferCache?: boolean;
129
+ }): Observable<HttpResponse<Array<PaymentDTO>>>;
130
+ retrievePaymentByOrderId(orderId: number, observe?: 'events', reportProgress?: boolean, options?: {
131
+ httpHeaderAccept?: 'application/json';
132
+ context?: HttpContext;
133
+ transferCache?: boolean;
134
+ }): Observable<HttpEvent<Array<PaymentDTO>>>;
135
+ /**
136
+ * Récupérer les paiements par statut
137
+ * @param status
138
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
139
+ * @param reportProgress flag to report request and response progress.
140
+ */
141
+ retrievePaymentByStatus(status: 'PENDING' | 'VALIDATED', observe?: 'body', reportProgress?: boolean, options?: {
142
+ httpHeaderAccept?: 'application/json';
143
+ context?: HttpContext;
144
+ transferCache?: boolean;
145
+ }): Observable<Array<PaymentDTO>>;
146
+ retrievePaymentByStatus(status: 'PENDING' | 'VALIDATED', observe?: 'response', reportProgress?: boolean, options?: {
147
+ httpHeaderAccept?: 'application/json';
148
+ context?: HttpContext;
149
+ transferCache?: boolean;
150
+ }): Observable<HttpResponse<Array<PaymentDTO>>>;
151
+ retrievePaymentByStatus(status: 'PENDING' | 'VALIDATED', observe?: 'events', reportProgress?: boolean, options?: {
152
+ httpHeaderAccept?: 'application/json';
153
+ context?: HttpContext;
154
+ transferCache?: boolean;
155
+ }): Observable<HttpEvent<Array<PaymentDTO>>>;
156
+ /**
157
+ * Récupérer le total des paiements validés
158
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
159
+ * @param reportProgress flag to report request and response progress.
160
+ */
161
+ retrieveTotalValidatedPayments(observe?: 'body', reportProgress?: boolean, options?: {
162
+ httpHeaderAccept?: 'application/json';
163
+ context?: HttpContext;
164
+ transferCache?: boolean;
165
+ }): Observable<number>;
166
+ retrieveTotalValidatedPayments(observe?: 'response', reportProgress?: boolean, options?: {
167
+ httpHeaderAccept?: 'application/json';
168
+ context?: HttpContext;
169
+ transferCache?: boolean;
170
+ }): Observable<HttpResponse<number>>;
171
+ retrieveTotalValidatedPayments(observe?: 'events', reportProgress?: boolean, options?: {
172
+ httpHeaderAccept?: 'application/json';
173
+ context?: HttpContext;
174
+ transferCache?: boolean;
175
+ }): Observable<HttpEvent<number>>;
176
+ /**
177
+ * Mettre à jour un paiement
178
+ * @param id
179
+ * @param paymentDTO
180
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
181
+ * @param reportProgress flag to report request and response progress.
182
+ */
183
+ updatePayment(id: number, paymentDTO: PaymentDTO, observe?: 'body', reportProgress?: boolean, options?: {
184
+ httpHeaderAccept?: 'application/json';
185
+ context?: HttpContext;
186
+ transferCache?: boolean;
187
+ }): Observable<PaymentDTO>;
188
+ updatePayment(id: number, paymentDTO: PaymentDTO, observe?: 'response', reportProgress?: boolean, options?: {
189
+ httpHeaderAccept?: 'application/json';
190
+ context?: HttpContext;
191
+ transferCache?: boolean;
192
+ }): Observable<HttpResponse<PaymentDTO>>;
193
+ updatePayment(id: number, paymentDTO: PaymentDTO, observe?: 'events', reportProgress?: boolean, options?: {
194
+ httpHeaderAccept?: 'application/json';
195
+ context?: HttpContext;
196
+ transferCache?: boolean;
197
+ }): Observable<HttpEvent<PaymentDTO>>;
198
+ /**
199
+ * Mettre à jour le statut d\&#39;un paiement
200
+ * @param id
201
+ * @param status
202
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
203
+ * @param reportProgress flag to report request and response progress.
204
+ */
205
+ updatePaymentStatus(id: number, status: 'PENDING' | 'VALIDATED', observe?: 'body', reportProgress?: boolean, options?: {
206
+ httpHeaderAccept?: 'application/json';
207
+ context?: HttpContext;
208
+ transferCache?: boolean;
209
+ }): Observable<PaymentDTO>;
210
+ updatePaymentStatus(id: number, status: 'PENDING' | 'VALIDATED', observe?: 'response', reportProgress?: boolean, options?: {
211
+ httpHeaderAccept?: 'application/json';
212
+ context?: HttpContext;
213
+ transferCache?: boolean;
214
+ }): Observable<HttpResponse<PaymentDTO>>;
215
+ updatePaymentStatus(id: number, status: 'PENDING' | 'VALIDATED', observe?: 'events', reportProgress?: boolean, options?: {
216
+ httpHeaderAccept?: 'application/json';
217
+ context?: HttpContext;
218
+ transferCache?: boolean;
219
+ }): Observable<HttpEvent<PaymentDTO>>;
220
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaymentService, [null, { optional: true; }, { optional: true; }]>;
221
+ static ɵprov: i0.ɵɵInjectableDeclaration<PaymentService>;
222
+ }