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.
- package/README.md +236 -0
- package/api/api.d.ts +23 -0
- package/api/authentication.service.d.ts +143 -0
- package/api/board.service.d.ts +267 -0
- package/api/establishment.service.d.ts +181 -0
- package/api/establishmentAccessor.service.d.ts +161 -0
- package/api/invoice.service.d.ts +180 -0
- package/api/order.service.d.ts +183 -0
- package/api/orderItem.service.d.ts +202 -0
- package/api/payment.service.d.ts +222 -0
- package/api/product.service.d.ts +161 -0
- package/api/role.service.d.ts +117 -0
- package/api/user.service.d.ts +271 -0
- package/api.base.service.d.ts +12 -0
- package/api.module.d.ts +11 -0
- package/configuration.d.ts +106 -0
- package/encoder.d.ts +11 -0
- package/esm2022/api/api.mjs +24 -0
- package/esm2022/api/authentication.service.mjs +304 -0
- package/esm2022/api/board.service.mjs +495 -0
- package/esm2022/api/establishment.service.mjs +345 -0
- package/esm2022/api/establishmentAccessor.service.mjs +295 -0
- package/esm2022/api/invoice.service.mjs +349 -0
- package/esm2022/api/order.service.mjs +355 -0
- package/esm2022/api/orderItem.service.mjs +381 -0
- package/esm2022/api/payment.service.mjs +417 -0
- package/esm2022/api/product.service.mjs +312 -0
- package/esm2022/api/role.service.mjs +237 -0
- package/esm2022/api/user.service.mjs +507 -0
- package/esm2022/api.base.service.mjs +68 -0
- package/esm2022/api.module.mjs +40 -0
- package/esm2022/configuration.mjs +133 -0
- package/esm2022/encoder.mjs +19 -0
- package/esm2022/index.mjs +7 -0
- package/esm2022/karibu-api-client.mjs +5 -0
- package/esm2022/model/board.mjs +8 -0
- package/esm2022/model/boardRequestDTO.mjs +17 -0
- package/esm2022/model/boardResponseDTO.mjs +8 -0
- package/esm2022/model/dashboard.mjs +11 -0
- package/esm2022/model/establishment.mjs +34 -0
- package/esm2022/model/establishmentAccessor.mjs +2 -0
- package/esm2022/model/establishmentAccessorDTO.mjs +11 -0
- package/esm2022/model/establishmentAccessorRequestDTO.mjs +11 -0
- package/esm2022/model/establishmentAccessorResponseDTO.mjs +34 -0
- package/esm2022/model/establishmentRequestDTO.mjs +43 -0
- package/esm2022/model/establishmentResponseDTO.mjs +43 -0
- package/esm2022/model/invoice.mjs +2 -0
- package/esm2022/model/invoiceDTO.mjs +11 -0
- package/esm2022/model/loginAccessorRequestDTO.mjs +11 -0
- package/esm2022/model/loginRequestDTO.mjs +11 -0
- package/esm2022/model/loginResponseDTO.mjs +2 -0
- package/esm2022/model/models.mjs +35 -0
- package/esm2022/model/order.mjs +8 -0
- package/esm2022/model/orderItem.mjs +2 -0
- package/esm2022/model/orderItemRequestDTO.mjs +2 -0
- package/esm2022/model/orderItemResponseDTO.mjs +2 -0
- package/esm2022/model/orderRequestDTO.mjs +17 -0
- package/esm2022/model/orderResponseDTO.mjs +8 -0
- package/esm2022/model/payment.mjs +12 -0
- package/esm2022/model/paymentDTO.mjs +21 -0
- package/esm2022/model/product.mjs +10 -0
- package/esm2022/model/productRequestDTO.mjs +19 -0
- package/esm2022/model/productResponseDTO.mjs +10 -0
- package/esm2022/model/role.mjs +11 -0
- package/esm2022/model/roleDTO.mjs +20 -0
- package/esm2022/model/tokenRequest.mjs +11 -0
- package/esm2022/model/tokenResponse.mjs +11 -0
- package/esm2022/model/user.mjs +11 -0
- package/esm2022/model/userRequestDTO.mjs +2 -0
- package/esm2022/model/userResponseDTO.mjs +11 -0
- package/esm2022/param.mjs +2 -0
- package/esm2022/variables.mjs +9 -0
- package/fesm2022/karibu-layer.mjs +4608 -0
- package/fesm2022/karibu-layer.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/model/board.d.ts +30 -0
- package/model/boardRequestDTO.d.ts +24 -0
- package/model/boardResponseDTO.d.ts +28 -0
- package/model/dashboard.d.ts +13 -0
- package/model/establishment.d.ts +73 -0
- package/model/establishmentAccessor.d.ts +23 -0
- package/model/establishmentAccessorDTO.d.ts +22 -0
- package/model/establishmentAccessorRequestDTO.d.ts +18 -0
- package/model/establishmentAccessorResponseDTO.d.ts +64 -0
- package/model/establishmentRequestDTO.d.ts +59 -0
- package/model/establishmentResponseDTO.d.ts +62 -0
- package/model/invoice.d.ts +19 -0
- package/model/invoiceDTO.d.ts +16 -0
- package/model/loginAccessorRequestDTO.d.ts +13 -0
- package/model/loginRequestDTO.d.ts +13 -0
- package/model/loginResponseDTO.d.ts +21 -0
- package/model/models.d.ts +34 -0
- package/model/order.d.ts +32 -0
- package/model/orderItem.d.ts +18 -0
- package/model/orderItemRequestDTO.d.ts +18 -0
- package/model/orderItemResponseDTO.d.ts +18 -0
- package/model/orderRequestDTO.d.ts +21 -0
- package/model/orderResponseDTO.d.ts +31 -0
- package/model/payment.d.ts +30 -0
- package/model/paymentDTO.d.ts +30 -0
- package/model/product.d.ts +33 -0
- package/model/productRequestDTO.d.ts +32 -0
- package/model/productResponseDTO.d.ts +35 -0
- package/model/role.d.ts +26 -0
- package/model/roleDTO.d.ts +24 -0
- package/model/tokenRequest.d.ts +12 -0
- package/model/tokenResponse.d.ts +12 -0
- package/model/user.d.ts +40 -0
- package/model/userRequestDTO.d.ts +19 -0
- package/model/userResponseDTO.d.ts +36 -0
- package/package.json +46 -0
- package/param.d.ts +37 -0
- package/variables.d.ts +8 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { EstablishmentRequestDTO } from '../model/establishmentRequestDTO';
|
|
4
|
+
import { EstablishmentResponseDTO } from '../model/establishmentResponseDTO';
|
|
5
|
+
import { Configuration } from '../configuration';
|
|
6
|
+
import { BaseService } from '../api.base.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class EstablishmentService extends BaseService {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
11
|
+
/**
|
|
12
|
+
* Créer un nouvel établissement
|
|
13
|
+
* @param establishmentRequestDTO
|
|
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
|
+
createEstablishment(establishmentRequestDTO: EstablishmentRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
18
|
+
httpHeaderAccept?: 'application/json';
|
|
19
|
+
context?: HttpContext;
|
|
20
|
+
transferCache?: boolean;
|
|
21
|
+
}): Observable<EstablishmentResponseDTO>;
|
|
22
|
+
createEstablishment(establishmentRequestDTO: EstablishmentRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
23
|
+
httpHeaderAccept?: 'application/json';
|
|
24
|
+
context?: HttpContext;
|
|
25
|
+
transferCache?: boolean;
|
|
26
|
+
}): Observable<HttpResponse<EstablishmentResponseDTO>>;
|
|
27
|
+
createEstablishment(establishmentRequestDTO: EstablishmentRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
28
|
+
httpHeaderAccept?: 'application/json';
|
|
29
|
+
context?: HttpContext;
|
|
30
|
+
transferCache?: boolean;
|
|
31
|
+
}): Observable<HttpEvent<EstablishmentResponseDTO>>;
|
|
32
|
+
/**
|
|
33
|
+
* Supprimer un établissement
|
|
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
|
+
removeEstablishment(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
39
|
+
httpHeaderAccept?: undefined;
|
|
40
|
+
context?: HttpContext;
|
|
41
|
+
transferCache?: boolean;
|
|
42
|
+
}): Observable<any>;
|
|
43
|
+
removeEstablishment(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
44
|
+
httpHeaderAccept?: undefined;
|
|
45
|
+
context?: HttpContext;
|
|
46
|
+
transferCache?: boolean;
|
|
47
|
+
}): Observable<HttpResponse<any>>;
|
|
48
|
+
removeEstablishment(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 établissements
|
|
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
|
+
retrieveAllEstablishment(observe?: 'body', reportProgress?: boolean, options?: {
|
|
59
|
+
httpHeaderAccept?: 'application/json';
|
|
60
|
+
context?: HttpContext;
|
|
61
|
+
transferCache?: boolean;
|
|
62
|
+
}): Observable<Array<EstablishmentResponseDTO>>;
|
|
63
|
+
retrieveAllEstablishment(observe?: 'response', reportProgress?: boolean, options?: {
|
|
64
|
+
httpHeaderAccept?: 'application/json';
|
|
65
|
+
context?: HttpContext;
|
|
66
|
+
transferCache?: boolean;
|
|
67
|
+
}): Observable<HttpResponse<Array<EstablishmentResponseDTO>>>;
|
|
68
|
+
retrieveAllEstablishment(observe?: 'events', reportProgress?: boolean, options?: {
|
|
69
|
+
httpHeaderAccept?: 'application/json';
|
|
70
|
+
context?: HttpContext;
|
|
71
|
+
transferCache?: boolean;
|
|
72
|
+
}): Observable<HttpEvent<Array<EstablishmentResponseDTO>>>;
|
|
73
|
+
/**
|
|
74
|
+
* Récupérer un établissement 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
|
+
retrieveEstablishment(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
80
|
+
httpHeaderAccept?: 'application/json';
|
|
81
|
+
context?: HttpContext;
|
|
82
|
+
transferCache?: boolean;
|
|
83
|
+
}): Observable<EstablishmentResponseDTO>;
|
|
84
|
+
retrieveEstablishment(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
85
|
+
httpHeaderAccept?: 'application/json';
|
|
86
|
+
context?: HttpContext;
|
|
87
|
+
transferCache?: boolean;
|
|
88
|
+
}): Observable<HttpResponse<EstablishmentResponseDTO>>;
|
|
89
|
+
retrieveEstablishment(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
90
|
+
httpHeaderAccept?: 'application/json';
|
|
91
|
+
context?: HttpContext;
|
|
92
|
+
transferCache?: boolean;
|
|
93
|
+
}): Observable<HttpEvent<EstablishmentResponseDTO>>;
|
|
94
|
+
/**
|
|
95
|
+
* Rechercher des établissements par adresse
|
|
96
|
+
* @param address
|
|
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
|
+
retrieveEstablishmentByAddress(address: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
101
|
+
httpHeaderAccept?: 'application/json';
|
|
102
|
+
context?: HttpContext;
|
|
103
|
+
transferCache?: boolean;
|
|
104
|
+
}): Observable<Array<EstablishmentResponseDTO>>;
|
|
105
|
+
retrieveEstablishmentByAddress(address: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
106
|
+
httpHeaderAccept?: 'application/json';
|
|
107
|
+
context?: HttpContext;
|
|
108
|
+
transferCache?: boolean;
|
|
109
|
+
}): Observable<HttpResponse<Array<EstablishmentResponseDTO>>>;
|
|
110
|
+
retrieveEstablishmentByAddress(address: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
111
|
+
httpHeaderAccept?: 'application/json';
|
|
112
|
+
context?: HttpContext;
|
|
113
|
+
transferCache?: boolean;
|
|
114
|
+
}): Observable<HttpEvent<Array<EstablishmentResponseDTO>>>;
|
|
115
|
+
/**
|
|
116
|
+
* Rechercher des établissements par nom
|
|
117
|
+
* @param name
|
|
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
|
+
retrieveEstablishmentByName(name: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
122
|
+
httpHeaderAccept?: 'application/json';
|
|
123
|
+
context?: HttpContext;
|
|
124
|
+
transferCache?: boolean;
|
|
125
|
+
}): Observable<Array<EstablishmentResponseDTO>>;
|
|
126
|
+
retrieveEstablishmentByName(name: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
127
|
+
httpHeaderAccept?: 'application/json';
|
|
128
|
+
context?: HttpContext;
|
|
129
|
+
transferCache?: boolean;
|
|
130
|
+
}): Observable<HttpResponse<Array<EstablishmentResponseDTO>>>;
|
|
131
|
+
retrieveEstablishmentByName(name: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
132
|
+
httpHeaderAccept?: 'application/json';
|
|
133
|
+
context?: HttpContext;
|
|
134
|
+
transferCache?: boolean;
|
|
135
|
+
}): Observable<HttpEvent<Array<EstablishmentResponseDTO>>>;
|
|
136
|
+
/**
|
|
137
|
+
* Récupérer les établissements par type
|
|
138
|
+
* @param type
|
|
139
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
140
|
+
* @param reportProgress flag to report request and response progress.
|
|
141
|
+
*/
|
|
142
|
+
retrieveEstablishmentByType(type: 'RESTAURANT' | 'BAR' | 'CAFE' | 'PUB' | 'BAKERY' | 'PASTRY_SHOP' | 'ICE_CREAM_PARLOUR' | 'FOOD_TRUCK' | 'FOOD_STAND' | 'FOOD_COURT' | 'CATERING' | 'CAFETERIA' | 'BUFFET' | 'SWEET_SHOP' | 'CONFECTIONERY' | 'CHOCOLATE_SHOP' | 'CANDY_STORE' | 'BISTRO' | 'BRASSERIE' | 'INN' | 'HOTEL' | 'MOTEL' | 'HOSTEL' | 'GUEST_HOUSE' | 'BED_AND_BREAKFAST' | 'RESORT' | 'SPA' | 'OTHER', observe?: 'body', reportProgress?: boolean, options?: {
|
|
143
|
+
httpHeaderAccept?: 'application/json';
|
|
144
|
+
context?: HttpContext;
|
|
145
|
+
transferCache?: boolean;
|
|
146
|
+
}): Observable<Array<EstablishmentResponseDTO>>;
|
|
147
|
+
retrieveEstablishmentByType(type: 'RESTAURANT' | 'BAR' | 'CAFE' | 'PUB' | 'BAKERY' | 'PASTRY_SHOP' | 'ICE_CREAM_PARLOUR' | 'FOOD_TRUCK' | 'FOOD_STAND' | 'FOOD_COURT' | 'CATERING' | 'CAFETERIA' | 'BUFFET' | 'SWEET_SHOP' | 'CONFECTIONERY' | 'CHOCOLATE_SHOP' | 'CANDY_STORE' | 'BISTRO' | 'BRASSERIE' | 'INN' | 'HOTEL' | 'MOTEL' | 'HOSTEL' | 'GUEST_HOUSE' | 'BED_AND_BREAKFAST' | 'RESORT' | 'SPA' | 'OTHER', observe?: 'response', reportProgress?: boolean, options?: {
|
|
148
|
+
httpHeaderAccept?: 'application/json';
|
|
149
|
+
context?: HttpContext;
|
|
150
|
+
transferCache?: boolean;
|
|
151
|
+
}): Observable<HttpResponse<Array<EstablishmentResponseDTO>>>;
|
|
152
|
+
retrieveEstablishmentByType(type: 'RESTAURANT' | 'BAR' | 'CAFE' | 'PUB' | 'BAKERY' | 'PASTRY_SHOP' | 'ICE_CREAM_PARLOUR' | 'FOOD_TRUCK' | 'FOOD_STAND' | 'FOOD_COURT' | 'CATERING' | 'CAFETERIA' | 'BUFFET' | 'SWEET_SHOP' | 'CONFECTIONERY' | 'CHOCOLATE_SHOP' | 'CANDY_STORE' | 'BISTRO' | 'BRASSERIE' | 'INN' | 'HOTEL' | 'MOTEL' | 'HOSTEL' | 'GUEST_HOUSE' | 'BED_AND_BREAKFAST' | 'RESORT' | 'SPA' | 'OTHER', observe?: 'events', reportProgress?: boolean, options?: {
|
|
153
|
+
httpHeaderAccept?: 'application/json';
|
|
154
|
+
context?: HttpContext;
|
|
155
|
+
transferCache?: boolean;
|
|
156
|
+
}): Observable<HttpEvent<Array<EstablishmentResponseDTO>>>;
|
|
157
|
+
/**
|
|
158
|
+
* Mettre à jour un établissement
|
|
159
|
+
* @param id
|
|
160
|
+
* @param establishmentRequestDTO
|
|
161
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
162
|
+
* @param reportProgress flag to report request and response progress.
|
|
163
|
+
*/
|
|
164
|
+
updateEstablishment(id: number, establishmentRequestDTO: EstablishmentRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
165
|
+
httpHeaderAccept?: 'application/json';
|
|
166
|
+
context?: HttpContext;
|
|
167
|
+
transferCache?: boolean;
|
|
168
|
+
}): Observable<EstablishmentResponseDTO>;
|
|
169
|
+
updateEstablishment(id: number, establishmentRequestDTO: EstablishmentRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
170
|
+
httpHeaderAccept?: 'application/json';
|
|
171
|
+
context?: HttpContext;
|
|
172
|
+
transferCache?: boolean;
|
|
173
|
+
}): Observable<HttpResponse<EstablishmentResponseDTO>>;
|
|
174
|
+
updateEstablishment(id: number, establishmentRequestDTO: EstablishmentRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
175
|
+
httpHeaderAccept?: 'application/json';
|
|
176
|
+
context?: HttpContext;
|
|
177
|
+
transferCache?: boolean;
|
|
178
|
+
}): Observable<HttpEvent<EstablishmentResponseDTO>>;
|
|
179
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EstablishmentService, [null, { optional: true; }, { optional: true; }]>;
|
|
180
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EstablishmentService>;
|
|
181
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { EstablishmentAccessorDTO } from '../model/establishmentAccessorDTO';
|
|
4
|
+
import { EstablishmentAccessorResponseDTO } from '../model/establishmentAccessorResponseDTO';
|
|
5
|
+
import { LoginAccessorRequestDTO } from '../model/loginAccessorRequestDTO';
|
|
6
|
+
import { Configuration } from '../configuration';
|
|
7
|
+
import { BaseService } from '../api.base.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class EstablishmentAccessorService extends BaseService {
|
|
10
|
+
protected httpClient: HttpClient;
|
|
11
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
12
|
+
/**
|
|
13
|
+
* Créer un nouvel accès pour un établissement
|
|
14
|
+
* @param establishmentId
|
|
15
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
16
|
+
* @param reportProgress flag to report request and response progress.
|
|
17
|
+
*/
|
|
18
|
+
createAccessor(establishmentId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
19
|
+
httpHeaderAccept?: 'application/json';
|
|
20
|
+
context?: HttpContext;
|
|
21
|
+
transferCache?: boolean;
|
|
22
|
+
}): Observable<EstablishmentAccessorDTO>;
|
|
23
|
+
createAccessor(establishmentId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
24
|
+
httpHeaderAccept?: 'application/json';
|
|
25
|
+
context?: HttpContext;
|
|
26
|
+
transferCache?: boolean;
|
|
27
|
+
}): Observable<HttpResponse<EstablishmentAccessorDTO>>;
|
|
28
|
+
createAccessor(establishmentId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
29
|
+
httpHeaderAccept?: 'application/json';
|
|
30
|
+
context?: HttpContext;
|
|
31
|
+
transferCache?: boolean;
|
|
32
|
+
}): Observable<HttpEvent<EstablishmentAccessorDTO>>;
|
|
33
|
+
/**
|
|
34
|
+
* Supprimer un accès
|
|
35
|
+
* @param id
|
|
36
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
37
|
+
* @param reportProgress flag to report request and response progress.
|
|
38
|
+
*/
|
|
39
|
+
deleteAccessor(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
40
|
+
httpHeaderAccept?: undefined;
|
|
41
|
+
context?: HttpContext;
|
|
42
|
+
transferCache?: boolean;
|
|
43
|
+
}): Observable<any>;
|
|
44
|
+
deleteAccessor(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
45
|
+
httpHeaderAccept?: undefined;
|
|
46
|
+
context?: HttpContext;
|
|
47
|
+
transferCache?: boolean;
|
|
48
|
+
}): Observable<HttpResponse<any>>;
|
|
49
|
+
deleteAccessor(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
50
|
+
httpHeaderAccept?: undefined;
|
|
51
|
+
context?: HttpContext;
|
|
52
|
+
transferCache?: boolean;
|
|
53
|
+
}): Observable<HttpEvent<any>>;
|
|
54
|
+
/**
|
|
55
|
+
* Récupérer un accès par ID
|
|
56
|
+
* @param id
|
|
57
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
58
|
+
* @param reportProgress flag to report request and response progress.
|
|
59
|
+
*/
|
|
60
|
+
getAccessorById(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
61
|
+
httpHeaderAccept?: 'application/json';
|
|
62
|
+
context?: HttpContext;
|
|
63
|
+
transferCache?: boolean;
|
|
64
|
+
}): Observable<EstablishmentAccessorDTO>;
|
|
65
|
+
getAccessorById(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
66
|
+
httpHeaderAccept?: 'application/json';
|
|
67
|
+
context?: HttpContext;
|
|
68
|
+
transferCache?: boolean;
|
|
69
|
+
}): Observable<HttpResponse<EstablishmentAccessorDTO>>;
|
|
70
|
+
getAccessorById(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
71
|
+
httpHeaderAccept?: 'application/json';
|
|
72
|
+
context?: HttpContext;
|
|
73
|
+
transferCache?: boolean;
|
|
74
|
+
}): Observable<HttpEvent<EstablishmentAccessorDTO>>;
|
|
75
|
+
/**
|
|
76
|
+
* Récupérer tous les accès aux établissements
|
|
77
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
78
|
+
* @param reportProgress flag to report request and response progress.
|
|
79
|
+
*/
|
|
80
|
+
getAllAccessors(observe?: 'body', reportProgress?: boolean, options?: {
|
|
81
|
+
httpHeaderAccept?: 'application/json';
|
|
82
|
+
context?: HttpContext;
|
|
83
|
+
transferCache?: boolean;
|
|
84
|
+
}): Observable<Array<EstablishmentAccessorDTO>>;
|
|
85
|
+
getAllAccessors(observe?: 'response', reportProgress?: boolean, options?: {
|
|
86
|
+
httpHeaderAccept?: 'application/json';
|
|
87
|
+
context?: HttpContext;
|
|
88
|
+
transferCache?: boolean;
|
|
89
|
+
}): Observable<HttpResponse<Array<EstablishmentAccessorDTO>>>;
|
|
90
|
+
getAllAccessors(observe?: 'events', reportProgress?: boolean, options?: {
|
|
91
|
+
httpHeaderAccept?: 'application/json';
|
|
92
|
+
context?: HttpContext;
|
|
93
|
+
transferCache?: boolean;
|
|
94
|
+
}): Observable<HttpEvent<Array<EstablishmentAccessorDTO>>>;
|
|
95
|
+
/**
|
|
96
|
+
* Récupérer un établissement par identifiants d\'accès
|
|
97
|
+
* @param loginAccessorRequestDTO
|
|
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
|
+
getEstablishmentByCredentials(loginAccessorRequestDTO: LoginAccessorRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
102
|
+
httpHeaderAccept?: 'application/json';
|
|
103
|
+
context?: HttpContext;
|
|
104
|
+
transferCache?: boolean;
|
|
105
|
+
}): Observable<EstablishmentAccessorResponseDTO>;
|
|
106
|
+
getEstablishmentByCredentials(loginAccessorRequestDTO: LoginAccessorRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
107
|
+
httpHeaderAccept?: 'application/json';
|
|
108
|
+
context?: HttpContext;
|
|
109
|
+
transferCache?: boolean;
|
|
110
|
+
}): Observable<HttpResponse<EstablishmentAccessorResponseDTO>>;
|
|
111
|
+
getEstablishmentByCredentials(loginAccessorRequestDTO: LoginAccessorRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
112
|
+
httpHeaderAccept?: 'application/json';
|
|
113
|
+
context?: HttpContext;
|
|
114
|
+
transferCache?: boolean;
|
|
115
|
+
}): Observable<HttpEvent<EstablishmentAccessorResponseDTO>>;
|
|
116
|
+
/**
|
|
117
|
+
* Enregistrer un accès
|
|
118
|
+
* @param id
|
|
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
|
+
logAccess(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
123
|
+
httpHeaderAccept?: undefined;
|
|
124
|
+
context?: HttpContext;
|
|
125
|
+
transferCache?: boolean;
|
|
126
|
+
}): Observable<any>;
|
|
127
|
+
logAccess(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
128
|
+
httpHeaderAccept?: undefined;
|
|
129
|
+
context?: HttpContext;
|
|
130
|
+
transferCache?: boolean;
|
|
131
|
+
}): Observable<HttpResponse<any>>;
|
|
132
|
+
logAccess(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
133
|
+
httpHeaderAccept?: undefined;
|
|
134
|
+
context?: HttpContext;
|
|
135
|
+
transferCache?: boolean;
|
|
136
|
+
}): Observable<HttpEvent<any>>;
|
|
137
|
+
/**
|
|
138
|
+
* Mettre à jour le statut d\'un accès
|
|
139
|
+
* @param id
|
|
140
|
+
* @param status
|
|
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
|
+
updateAccessorStatus(id: number, status: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
145
|
+
httpHeaderAccept?: 'application/json';
|
|
146
|
+
context?: HttpContext;
|
|
147
|
+
transferCache?: boolean;
|
|
148
|
+
}): Observable<EstablishmentAccessorDTO>;
|
|
149
|
+
updateAccessorStatus(id: number, status: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
150
|
+
httpHeaderAccept?: 'application/json';
|
|
151
|
+
context?: HttpContext;
|
|
152
|
+
transferCache?: boolean;
|
|
153
|
+
}): Observable<HttpResponse<EstablishmentAccessorDTO>>;
|
|
154
|
+
updateAccessorStatus(id: number, status: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
155
|
+
httpHeaderAccept?: 'application/json';
|
|
156
|
+
context?: HttpContext;
|
|
157
|
+
transferCache?: boolean;
|
|
158
|
+
}): Observable<HttpEvent<EstablishmentAccessorDTO>>;
|
|
159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EstablishmentAccessorService, [null, { optional: true; }, { optional: true; }]>;
|
|
160
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EstablishmentAccessorService>;
|
|
161
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { InvoiceDTO } from '../model/invoiceDTO';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import { BaseService } from '../api.base.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class InvoiceService extends BaseService {
|
|
8
|
+
protected httpClient: HttpClient;
|
|
9
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
10
|
+
/**
|
|
11
|
+
* Créer une nouvelle facture
|
|
12
|
+
* @param invoiceDTO
|
|
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
|
+
createInvoice(invoiceDTO: InvoiceDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
17
|
+
httpHeaderAccept?: 'application/json';
|
|
18
|
+
context?: HttpContext;
|
|
19
|
+
transferCache?: boolean;
|
|
20
|
+
}): Observable<InvoiceDTO>;
|
|
21
|
+
createInvoice(invoiceDTO: InvoiceDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
22
|
+
httpHeaderAccept?: 'application/json';
|
|
23
|
+
context?: HttpContext;
|
|
24
|
+
transferCache?: boolean;
|
|
25
|
+
}): Observable<HttpResponse<InvoiceDTO>>;
|
|
26
|
+
createInvoice(invoiceDTO: InvoiceDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
27
|
+
httpHeaderAccept?: 'application/json';
|
|
28
|
+
context?: HttpContext;
|
|
29
|
+
transferCache?: boolean;
|
|
30
|
+
}): Observable<HttpEvent<InvoiceDTO>>;
|
|
31
|
+
/**
|
|
32
|
+
* Supprimer une facture
|
|
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
|
+
removeInvoice(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
38
|
+
httpHeaderAccept?: undefined;
|
|
39
|
+
context?: HttpContext;
|
|
40
|
+
transferCache?: boolean;
|
|
41
|
+
}): Observable<any>;
|
|
42
|
+
removeInvoice(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
43
|
+
httpHeaderAccept?: undefined;
|
|
44
|
+
context?: HttpContext;
|
|
45
|
+
transferCache?: boolean;
|
|
46
|
+
}): Observable<HttpResponse<any>>;
|
|
47
|
+
removeInvoice(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 toutes les factures
|
|
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
|
+
retrieveAllInvoices(observe?: 'body', reportProgress?: boolean, options?: {
|
|
58
|
+
httpHeaderAccept?: 'application/json';
|
|
59
|
+
context?: HttpContext;
|
|
60
|
+
transferCache?: boolean;
|
|
61
|
+
}): Observable<Array<InvoiceDTO>>;
|
|
62
|
+
retrieveAllInvoices(observe?: 'response', reportProgress?: boolean, options?: {
|
|
63
|
+
httpHeaderAccept?: 'application/json';
|
|
64
|
+
context?: HttpContext;
|
|
65
|
+
transferCache?: boolean;
|
|
66
|
+
}): Observable<HttpResponse<Array<InvoiceDTO>>>;
|
|
67
|
+
retrieveAllInvoices(observe?: 'events', reportProgress?: boolean, options?: {
|
|
68
|
+
httpHeaderAccept?: 'application/json';
|
|
69
|
+
context?: HttpContext;
|
|
70
|
+
transferCache?: boolean;
|
|
71
|
+
}): Observable<HttpEvent<Array<InvoiceDTO>>>;
|
|
72
|
+
/**
|
|
73
|
+
* Récupérer une facture 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
|
+
retrieveInvoiceById(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
79
|
+
httpHeaderAccept?: 'application/json';
|
|
80
|
+
context?: HttpContext;
|
|
81
|
+
transferCache?: boolean;
|
|
82
|
+
}): Observable<InvoiceDTO>;
|
|
83
|
+
retrieveInvoiceById(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
84
|
+
httpHeaderAccept?: 'application/json';
|
|
85
|
+
context?: HttpContext;
|
|
86
|
+
transferCache?: boolean;
|
|
87
|
+
}): Observable<HttpResponse<InvoiceDTO>>;
|
|
88
|
+
retrieveInvoiceById(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
89
|
+
httpHeaderAccept?: 'application/json';
|
|
90
|
+
context?: HttpContext;
|
|
91
|
+
transferCache?: boolean;
|
|
92
|
+
}): Observable<HttpEvent<InvoiceDTO>>;
|
|
93
|
+
/**
|
|
94
|
+
* Récupérer les factures par plage de dates
|
|
95
|
+
* @param start
|
|
96
|
+
* @param end
|
|
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
|
+
retrieveInvoicesByDateBetween(start: string, end: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
101
|
+
httpHeaderAccept?: 'application/json';
|
|
102
|
+
context?: HttpContext;
|
|
103
|
+
transferCache?: boolean;
|
|
104
|
+
}): Observable<Array<InvoiceDTO>>;
|
|
105
|
+
retrieveInvoicesByDateBetween(start: string, end: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
106
|
+
httpHeaderAccept?: 'application/json';
|
|
107
|
+
context?: HttpContext;
|
|
108
|
+
transferCache?: boolean;
|
|
109
|
+
}): Observable<HttpResponse<Array<InvoiceDTO>>>;
|
|
110
|
+
retrieveInvoicesByDateBetween(start: string, end: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
111
|
+
httpHeaderAccept?: 'application/json';
|
|
112
|
+
context?: HttpContext;
|
|
113
|
+
transferCache?: boolean;
|
|
114
|
+
}): Observable<HttpEvent<Array<InvoiceDTO>>>;
|
|
115
|
+
/**
|
|
116
|
+
* Récupérer les factures par commande
|
|
117
|
+
* @param orderId
|
|
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
|
+
retrieveInvoicesByOrderId(orderId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
122
|
+
httpHeaderAccept?: 'application/json';
|
|
123
|
+
context?: HttpContext;
|
|
124
|
+
transferCache?: boolean;
|
|
125
|
+
}): Observable<Array<InvoiceDTO>>;
|
|
126
|
+
retrieveInvoicesByOrderId(orderId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
127
|
+
httpHeaderAccept?: 'application/json';
|
|
128
|
+
context?: HttpContext;
|
|
129
|
+
transferCache?: boolean;
|
|
130
|
+
}): Observable<HttpResponse<Array<InvoiceDTO>>>;
|
|
131
|
+
retrieveInvoicesByOrderId(orderId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
132
|
+
httpHeaderAccept?: 'application/json';
|
|
133
|
+
context?: HttpContext;
|
|
134
|
+
transferCache?: boolean;
|
|
135
|
+
}): Observable<HttpEvent<Array<InvoiceDTO>>>;
|
|
136
|
+
/**
|
|
137
|
+
* Récupérer le montant total des factures
|
|
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
|
+
retrieveTotalAmount(observe?: 'body', reportProgress?: boolean, options?: {
|
|
142
|
+
httpHeaderAccept?: 'application/json';
|
|
143
|
+
context?: HttpContext;
|
|
144
|
+
transferCache?: boolean;
|
|
145
|
+
}): Observable<number>;
|
|
146
|
+
retrieveTotalAmount(observe?: 'response', reportProgress?: boolean, options?: {
|
|
147
|
+
httpHeaderAccept?: 'application/json';
|
|
148
|
+
context?: HttpContext;
|
|
149
|
+
transferCache?: boolean;
|
|
150
|
+
}): Observable<HttpResponse<number>>;
|
|
151
|
+
retrieveTotalAmount(observe?: 'events', reportProgress?: boolean, options?: {
|
|
152
|
+
httpHeaderAccept?: 'application/json';
|
|
153
|
+
context?: HttpContext;
|
|
154
|
+
transferCache?: boolean;
|
|
155
|
+
}): Observable<HttpEvent<number>>;
|
|
156
|
+
/**
|
|
157
|
+
* Mettre à jour une facture client
|
|
158
|
+
* @param id
|
|
159
|
+
* @param invoiceDTO
|
|
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
|
+
updateInvoice(id: number, invoiceDTO: InvoiceDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
164
|
+
httpHeaderAccept?: 'application/json';
|
|
165
|
+
context?: HttpContext;
|
|
166
|
+
transferCache?: boolean;
|
|
167
|
+
}): Observable<InvoiceDTO>;
|
|
168
|
+
updateInvoice(id: number, invoiceDTO: InvoiceDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
169
|
+
httpHeaderAccept?: 'application/json';
|
|
170
|
+
context?: HttpContext;
|
|
171
|
+
transferCache?: boolean;
|
|
172
|
+
}): Observable<HttpResponse<InvoiceDTO>>;
|
|
173
|
+
updateInvoice(id: number, invoiceDTO: InvoiceDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
174
|
+
httpHeaderAccept?: 'application/json';
|
|
175
|
+
context?: HttpContext;
|
|
176
|
+
transferCache?: boolean;
|
|
177
|
+
}): Observable<HttpEvent<InvoiceDTO>>;
|
|
178
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceService, [null, { optional: true; }, { optional: true; }]>;
|
|
179
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceService>;
|
|
180
|
+
}
|