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,161 @@
|
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ProductRequestDTO } from '../model/productRequestDTO';
|
|
4
|
+
import { ProductResponseDTO } from '../model/productResponseDTO';
|
|
5
|
+
import { Configuration } from '../configuration';
|
|
6
|
+
import { BaseService } from '../api.base.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ProductService extends BaseService {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
11
|
+
/**
|
|
12
|
+
* Créer un nouveau produit
|
|
13
|
+
* @param productRequestDTO
|
|
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
|
+
createProduct(productRequestDTO: ProductRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
18
|
+
httpHeaderAccept?: 'application/json';
|
|
19
|
+
context?: HttpContext;
|
|
20
|
+
transferCache?: boolean;
|
|
21
|
+
}): Observable<ProductResponseDTO>;
|
|
22
|
+
createProduct(productRequestDTO: ProductRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
23
|
+
httpHeaderAccept?: 'application/json';
|
|
24
|
+
context?: HttpContext;
|
|
25
|
+
transferCache?: boolean;
|
|
26
|
+
}): Observable<HttpResponse<ProductResponseDTO>>;
|
|
27
|
+
createProduct(productRequestDTO: ProductRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
28
|
+
httpHeaderAccept?: 'application/json';
|
|
29
|
+
context?: HttpContext;
|
|
30
|
+
transferCache?: boolean;
|
|
31
|
+
}): Observable<HttpEvent<ProductResponseDTO>>;
|
|
32
|
+
/**
|
|
33
|
+
* Supprimer un produit
|
|
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
|
+
removeProduct(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
39
|
+
httpHeaderAccept?: undefined;
|
|
40
|
+
context?: HttpContext;
|
|
41
|
+
transferCache?: boolean;
|
|
42
|
+
}): Observable<any>;
|
|
43
|
+
removeProduct(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
44
|
+
httpHeaderAccept?: undefined;
|
|
45
|
+
context?: HttpContext;
|
|
46
|
+
transferCache?: boolean;
|
|
47
|
+
}): Observable<HttpResponse<any>>;
|
|
48
|
+
removeProduct(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 produits
|
|
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
|
+
retrieveAllProducts(observe?: 'body', reportProgress?: boolean, options?: {
|
|
59
|
+
httpHeaderAccept?: 'application/json';
|
|
60
|
+
context?: HttpContext;
|
|
61
|
+
transferCache?: boolean;
|
|
62
|
+
}): Observable<Array<ProductResponseDTO>>;
|
|
63
|
+
retrieveAllProducts(observe?: 'response', reportProgress?: boolean, options?: {
|
|
64
|
+
httpHeaderAccept?: 'application/json';
|
|
65
|
+
context?: HttpContext;
|
|
66
|
+
transferCache?: boolean;
|
|
67
|
+
}): Observable<HttpResponse<Array<ProductResponseDTO>>>;
|
|
68
|
+
retrieveAllProducts(observe?: 'events', reportProgress?: boolean, options?: {
|
|
69
|
+
httpHeaderAccept?: 'application/json';
|
|
70
|
+
context?: HttpContext;
|
|
71
|
+
transferCache?: boolean;
|
|
72
|
+
}): Observable<HttpEvent<Array<ProductResponseDTO>>>;
|
|
73
|
+
/**
|
|
74
|
+
* Récupérer les produits par catégorie
|
|
75
|
+
* @param category
|
|
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
|
+
retrieveProductByCategory(category: 'DRINK' | 'MEAL' | 'DESSERT' | 'SNACK', observe?: 'body', reportProgress?: boolean, options?: {
|
|
80
|
+
httpHeaderAccept?: 'application/json';
|
|
81
|
+
context?: HttpContext;
|
|
82
|
+
transferCache?: boolean;
|
|
83
|
+
}): Observable<Array<ProductResponseDTO>>;
|
|
84
|
+
retrieveProductByCategory(category: 'DRINK' | 'MEAL' | 'DESSERT' | 'SNACK', observe?: 'response', reportProgress?: boolean, options?: {
|
|
85
|
+
httpHeaderAccept?: 'application/json';
|
|
86
|
+
context?: HttpContext;
|
|
87
|
+
transferCache?: boolean;
|
|
88
|
+
}): Observable<HttpResponse<Array<ProductResponseDTO>>>;
|
|
89
|
+
retrieveProductByCategory(category: 'DRINK' | 'MEAL' | 'DESSERT' | 'SNACK', observe?: 'events', reportProgress?: boolean, options?: {
|
|
90
|
+
httpHeaderAccept?: 'application/json';
|
|
91
|
+
context?: HttpContext;
|
|
92
|
+
transferCache?: boolean;
|
|
93
|
+
}): Observable<HttpEvent<Array<ProductResponseDTO>>>;
|
|
94
|
+
/**
|
|
95
|
+
* Récupérer un produit par ID
|
|
96
|
+
* @param id
|
|
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
|
+
retrieveProductById(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
101
|
+
httpHeaderAccept?: 'application/json';
|
|
102
|
+
context?: HttpContext;
|
|
103
|
+
transferCache?: boolean;
|
|
104
|
+
}): Observable<ProductResponseDTO>;
|
|
105
|
+
retrieveProductById(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
106
|
+
httpHeaderAccept?: 'application/json';
|
|
107
|
+
context?: HttpContext;
|
|
108
|
+
transferCache?: boolean;
|
|
109
|
+
}): Observable<HttpResponse<ProductResponseDTO>>;
|
|
110
|
+
retrieveProductById(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
111
|
+
httpHeaderAccept?: 'application/json';
|
|
112
|
+
context?: HttpContext;
|
|
113
|
+
transferCache?: boolean;
|
|
114
|
+
}): Observable<HttpEvent<ProductResponseDTO>>;
|
|
115
|
+
/**
|
|
116
|
+
* Mettre à jour un produit
|
|
117
|
+
* @param id
|
|
118
|
+
* @param productRequestDTO
|
|
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
|
+
updateProduct(id: number, productRequestDTO: ProductRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
123
|
+
httpHeaderAccept?: 'application/json';
|
|
124
|
+
context?: HttpContext;
|
|
125
|
+
transferCache?: boolean;
|
|
126
|
+
}): Observable<ProductResponseDTO>;
|
|
127
|
+
updateProduct(id: number, productRequestDTO: ProductRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
128
|
+
httpHeaderAccept?: 'application/json';
|
|
129
|
+
context?: HttpContext;
|
|
130
|
+
transferCache?: boolean;
|
|
131
|
+
}): Observable<HttpResponse<ProductResponseDTO>>;
|
|
132
|
+
updateProduct(id: number, productRequestDTO: ProductRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
133
|
+
httpHeaderAccept?: 'application/json';
|
|
134
|
+
context?: HttpContext;
|
|
135
|
+
transferCache?: boolean;
|
|
136
|
+
}): Observable<HttpEvent<ProductResponseDTO>>;
|
|
137
|
+
/**
|
|
138
|
+
* Mettre à jour le stock d\'un produit
|
|
139
|
+
* @param id
|
|
140
|
+
* @param quantity
|
|
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
|
+
updateProductStock(id: number, quantity: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
145
|
+
httpHeaderAccept?: 'application/json';
|
|
146
|
+
context?: HttpContext;
|
|
147
|
+
transferCache?: boolean;
|
|
148
|
+
}): Observable<ProductResponseDTO>;
|
|
149
|
+
updateProductStock(id: number, quantity: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
150
|
+
httpHeaderAccept?: 'application/json';
|
|
151
|
+
context?: HttpContext;
|
|
152
|
+
transferCache?: boolean;
|
|
153
|
+
}): Observable<HttpResponse<ProductResponseDTO>>;
|
|
154
|
+
updateProductStock(id: number, quantity: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
155
|
+
httpHeaderAccept?: 'application/json';
|
|
156
|
+
context?: HttpContext;
|
|
157
|
+
transferCache?: boolean;
|
|
158
|
+
}): Observable<HttpEvent<ProductResponseDTO>>;
|
|
159
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductService, [null, { optional: true; }, { optional: true; }]>;
|
|
160
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductService>;
|
|
161
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RoleDTO } from '../model/roleDTO';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import { BaseService } from '../api.base.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class RoleService extends BaseService {
|
|
8
|
+
protected httpClient: HttpClient;
|
|
9
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
10
|
+
/**
|
|
11
|
+
* Créer un nouveau rôle
|
|
12
|
+
* @param roleDTO
|
|
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
|
+
createRole(roleDTO: RoleDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
17
|
+
httpHeaderAccept?: 'application/json';
|
|
18
|
+
context?: HttpContext;
|
|
19
|
+
transferCache?: boolean;
|
|
20
|
+
}): Observable<RoleDTO>;
|
|
21
|
+
createRole(roleDTO: RoleDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
22
|
+
httpHeaderAccept?: 'application/json';
|
|
23
|
+
context?: HttpContext;
|
|
24
|
+
transferCache?: boolean;
|
|
25
|
+
}): Observable<HttpResponse<RoleDTO>>;
|
|
26
|
+
createRole(roleDTO: RoleDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
27
|
+
httpHeaderAccept?: 'application/json';
|
|
28
|
+
context?: HttpContext;
|
|
29
|
+
transferCache?: boolean;
|
|
30
|
+
}): Observable<HttpEvent<RoleDTO>>;
|
|
31
|
+
/**
|
|
32
|
+
* Supprimer un rôle
|
|
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
|
+
deleteRole(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
38
|
+
httpHeaderAccept?: undefined;
|
|
39
|
+
context?: HttpContext;
|
|
40
|
+
transferCache?: boolean;
|
|
41
|
+
}): Observable<any>;
|
|
42
|
+
deleteRole(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
43
|
+
httpHeaderAccept?: undefined;
|
|
44
|
+
context?: HttpContext;
|
|
45
|
+
transferCache?: boolean;
|
|
46
|
+
}): Observable<HttpResponse<any>>;
|
|
47
|
+
deleteRole(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 rôles
|
|
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
|
+
getAllRoles(observe?: 'body', reportProgress?: boolean, options?: {
|
|
58
|
+
httpHeaderAccept?: 'application/json';
|
|
59
|
+
context?: HttpContext;
|
|
60
|
+
transferCache?: boolean;
|
|
61
|
+
}): Observable<Array<RoleDTO>>;
|
|
62
|
+
getAllRoles(observe?: 'response', reportProgress?: boolean, options?: {
|
|
63
|
+
httpHeaderAccept?: 'application/json';
|
|
64
|
+
context?: HttpContext;
|
|
65
|
+
transferCache?: boolean;
|
|
66
|
+
}): Observable<HttpResponse<Array<RoleDTO>>>;
|
|
67
|
+
getAllRoles(observe?: 'events', reportProgress?: boolean, options?: {
|
|
68
|
+
httpHeaderAccept?: 'application/json';
|
|
69
|
+
context?: HttpContext;
|
|
70
|
+
transferCache?: boolean;
|
|
71
|
+
}): Observable<HttpEvent<Array<RoleDTO>>>;
|
|
72
|
+
/**
|
|
73
|
+
* Récupérer un rôle 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
|
+
getRoleById(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
79
|
+
httpHeaderAccept?: 'application/json';
|
|
80
|
+
context?: HttpContext;
|
|
81
|
+
transferCache?: boolean;
|
|
82
|
+
}): Observable<RoleDTO>;
|
|
83
|
+
getRoleById(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
84
|
+
httpHeaderAccept?: 'application/json';
|
|
85
|
+
context?: HttpContext;
|
|
86
|
+
transferCache?: boolean;
|
|
87
|
+
}): Observable<HttpResponse<RoleDTO>>;
|
|
88
|
+
getRoleById(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
89
|
+
httpHeaderAccept?: 'application/json';
|
|
90
|
+
context?: HttpContext;
|
|
91
|
+
transferCache?: boolean;
|
|
92
|
+
}): Observable<HttpEvent<RoleDTO>>;
|
|
93
|
+
/**
|
|
94
|
+
* Mettre à jour un rôle
|
|
95
|
+
* @param id
|
|
96
|
+
* @param roleDTO
|
|
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
|
+
updateRole(id: number, roleDTO: RoleDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
101
|
+
httpHeaderAccept?: 'application/json';
|
|
102
|
+
context?: HttpContext;
|
|
103
|
+
transferCache?: boolean;
|
|
104
|
+
}): Observable<RoleDTO>;
|
|
105
|
+
updateRole(id: number, roleDTO: RoleDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
106
|
+
httpHeaderAccept?: 'application/json';
|
|
107
|
+
context?: HttpContext;
|
|
108
|
+
transferCache?: boolean;
|
|
109
|
+
}): Observable<HttpResponse<RoleDTO>>;
|
|
110
|
+
updateRole(id: number, roleDTO: RoleDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
111
|
+
httpHeaderAccept?: 'application/json';
|
|
112
|
+
context?: HttpContext;
|
|
113
|
+
transferCache?: boolean;
|
|
114
|
+
}): Observable<HttpEvent<RoleDTO>>;
|
|
115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoleService, [null, { optional: true; }, { optional: true; }]>;
|
|
116
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RoleService>;
|
|
117
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { UserRequestDTO } from '../model/userRequestDTO';
|
|
4
|
+
import { UserResponseDTO } from '../model/userResponseDTO';
|
|
5
|
+
import { Configuration } from '../configuration';
|
|
6
|
+
import { BaseService } from '../api.base.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class UserService extends BaseService {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
11
|
+
/**
|
|
12
|
+
* Créer un nouvel utilisateur
|
|
13
|
+
* @param userRequestDTO
|
|
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
|
+
createUser(userRequestDTO: UserRequestDTO, observe?: 'body', reportProgress?: boolean, options?: {
|
|
18
|
+
httpHeaderAccept?: 'application/json';
|
|
19
|
+
context?: HttpContext;
|
|
20
|
+
transferCache?: boolean;
|
|
21
|
+
}): Observable<UserResponseDTO>;
|
|
22
|
+
createUser(userRequestDTO: UserRequestDTO, observe?: 'response', reportProgress?: boolean, options?: {
|
|
23
|
+
httpHeaderAccept?: 'application/json';
|
|
24
|
+
context?: HttpContext;
|
|
25
|
+
transferCache?: boolean;
|
|
26
|
+
}): Observable<HttpResponse<UserResponseDTO>>;
|
|
27
|
+
createUser(userRequestDTO: UserRequestDTO, observe?: 'events', reportProgress?: boolean, options?: {
|
|
28
|
+
httpHeaderAccept?: 'application/json';
|
|
29
|
+
context?: HttpContext;
|
|
30
|
+
transferCache?: boolean;
|
|
31
|
+
}): Observable<HttpEvent<UserResponseDTO>>;
|
|
32
|
+
/**
|
|
33
|
+
* Supprimer un utilisateur
|
|
34
|
+
* @param uid
|
|
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
|
+
deleteUser(uid: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
39
|
+
httpHeaderAccept?: undefined;
|
|
40
|
+
context?: HttpContext;
|
|
41
|
+
transferCache?: boolean;
|
|
42
|
+
}): Observable<any>;
|
|
43
|
+
deleteUser(uid: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
44
|
+
httpHeaderAccept?: undefined;
|
|
45
|
+
context?: HttpContext;
|
|
46
|
+
transferCache?: boolean;
|
|
47
|
+
}): Observable<HttpResponse<any>>;
|
|
48
|
+
deleteUser(uid: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
49
|
+
httpHeaderAccept?: undefined;
|
|
50
|
+
context?: HttpContext;
|
|
51
|
+
transferCache?: boolean;
|
|
52
|
+
}): Observable<HttpEvent<any>>;
|
|
53
|
+
/**
|
|
54
|
+
* Récupérer les utilisateurs d\'un établissement
|
|
55
|
+
* @param establishmentId
|
|
56
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
57
|
+
* @param reportProgress flag to report request and response progress.
|
|
58
|
+
*/
|
|
59
|
+
getAllUsersByEstablishment(establishmentId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
60
|
+
httpHeaderAccept?: 'application/json';
|
|
61
|
+
context?: HttpContext;
|
|
62
|
+
transferCache?: boolean;
|
|
63
|
+
}): Observable<Array<UserResponseDTO>>;
|
|
64
|
+
getAllUsersByEstablishment(establishmentId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
65
|
+
httpHeaderAccept?: 'application/json';
|
|
66
|
+
context?: HttpContext;
|
|
67
|
+
transferCache?: boolean;
|
|
68
|
+
}): Observable<HttpResponse<Array<UserResponseDTO>>>;
|
|
69
|
+
getAllUsersByEstablishment(establishmentId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
70
|
+
httpHeaderAccept?: 'application/json';
|
|
71
|
+
context?: HttpContext;
|
|
72
|
+
transferCache?: boolean;
|
|
73
|
+
}): Observable<HttpEvent<Array<UserResponseDTO>>>;
|
|
74
|
+
/**
|
|
75
|
+
* Récupérer un utilisateur par UID
|
|
76
|
+
* @param uid
|
|
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
|
+
getUser(uid: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
81
|
+
httpHeaderAccept?: 'application/json';
|
|
82
|
+
context?: HttpContext;
|
|
83
|
+
transferCache?: boolean;
|
|
84
|
+
}): Observable<UserResponseDTO>;
|
|
85
|
+
getUser(uid: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
86
|
+
httpHeaderAccept?: 'application/json';
|
|
87
|
+
context?: HttpContext;
|
|
88
|
+
transferCache?: boolean;
|
|
89
|
+
}): Observable<HttpResponse<UserResponseDTO>>;
|
|
90
|
+
getUser(uid: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
91
|
+
httpHeaderAccept?: 'application/json';
|
|
92
|
+
context?: HttpContext;
|
|
93
|
+
transferCache?: boolean;
|
|
94
|
+
}): Observable<HttpEvent<UserResponseDTO>>;
|
|
95
|
+
/**
|
|
96
|
+
* Récupérer un utilisateur par email
|
|
97
|
+
* @param email
|
|
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
|
+
getUserByEmail(email: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
102
|
+
httpHeaderAccept?: 'application/json';
|
|
103
|
+
context?: HttpContext;
|
|
104
|
+
transferCache?: boolean;
|
|
105
|
+
}): Observable<UserResponseDTO>;
|
|
106
|
+
getUserByEmail(email: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
107
|
+
httpHeaderAccept?: 'application/json';
|
|
108
|
+
context?: HttpContext;
|
|
109
|
+
transferCache?: boolean;
|
|
110
|
+
}): Observable<HttpResponse<UserResponseDTO>>;
|
|
111
|
+
getUserByEmail(email: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
112
|
+
httpHeaderAccept?: 'application/json';
|
|
113
|
+
context?: HttpContext;
|
|
114
|
+
transferCache?: boolean;
|
|
115
|
+
}): Observable<HttpEvent<UserResponseDTO>>;
|
|
116
|
+
/**
|
|
117
|
+
* Verrouiller un compte utilisateur
|
|
118
|
+
* @param uid
|
|
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
|
+
lockUser(uid: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
123
|
+
httpHeaderAccept?: undefined;
|
|
124
|
+
context?: HttpContext;
|
|
125
|
+
transferCache?: boolean;
|
|
126
|
+
}): Observable<any>;
|
|
127
|
+
lockUser(uid: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
128
|
+
httpHeaderAccept?: undefined;
|
|
129
|
+
context?: HttpContext;
|
|
130
|
+
transferCache?: boolean;
|
|
131
|
+
}): Observable<HttpResponse<any>>;
|
|
132
|
+
lockUser(uid: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
133
|
+
httpHeaderAccept?: undefined;
|
|
134
|
+
context?: HttpContext;
|
|
135
|
+
transferCache?: boolean;
|
|
136
|
+
}): Observable<HttpEvent<any>>;
|
|
137
|
+
/**
|
|
138
|
+
* Déverrouiller un compte utilisateur
|
|
139
|
+
* @param uid
|
|
140
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
141
|
+
* @param reportProgress flag to report request and response progress.
|
|
142
|
+
*/
|
|
143
|
+
unlockUser(uid: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
144
|
+
httpHeaderAccept?: undefined;
|
|
145
|
+
context?: HttpContext;
|
|
146
|
+
transferCache?: boolean;
|
|
147
|
+
}): Observable<any>;
|
|
148
|
+
unlockUser(uid: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
149
|
+
httpHeaderAccept?: undefined;
|
|
150
|
+
context?: HttpContext;
|
|
151
|
+
transferCache?: boolean;
|
|
152
|
+
}): Observable<HttpResponse<any>>;
|
|
153
|
+
unlockUser(uid: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
154
|
+
httpHeaderAccept?: undefined;
|
|
155
|
+
context?: HttpContext;
|
|
156
|
+
transferCache?: boolean;
|
|
157
|
+
}): Observable<HttpEvent<any>>;
|
|
158
|
+
/**
|
|
159
|
+
* Mettre à jour l\'email d\'un utilisateur
|
|
160
|
+
* @param uid
|
|
161
|
+
* @param email
|
|
162
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
163
|
+
* @param reportProgress flag to report request and response progress.
|
|
164
|
+
*/
|
|
165
|
+
updateUserEmail(uid: string, email: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
166
|
+
httpHeaderAccept?: 'application/json';
|
|
167
|
+
context?: HttpContext;
|
|
168
|
+
transferCache?: boolean;
|
|
169
|
+
}): Observable<UserResponseDTO>;
|
|
170
|
+
updateUserEmail(uid: string, email: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
171
|
+
httpHeaderAccept?: 'application/json';
|
|
172
|
+
context?: HttpContext;
|
|
173
|
+
transferCache?: boolean;
|
|
174
|
+
}): Observable<HttpResponse<UserResponseDTO>>;
|
|
175
|
+
updateUserEmail(uid: string, email: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
176
|
+
httpHeaderAccept?: 'application/json';
|
|
177
|
+
context?: HttpContext;
|
|
178
|
+
transferCache?: boolean;
|
|
179
|
+
}): Observable<HttpEvent<UserResponseDTO>>;
|
|
180
|
+
/**
|
|
181
|
+
* Mettre à jour les informations de connexion d\'un utilisateur
|
|
182
|
+
* @param uid
|
|
183
|
+
* @param email
|
|
184
|
+
* @param password
|
|
185
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
186
|
+
* @param reportProgress flag to report request and response progress.
|
|
187
|
+
*/
|
|
188
|
+
updateUserLoginInfo(uid: string, email: string, password: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
189
|
+
httpHeaderAccept?: 'application/json';
|
|
190
|
+
context?: HttpContext;
|
|
191
|
+
transferCache?: boolean;
|
|
192
|
+
}): Observable<UserResponseDTO>;
|
|
193
|
+
updateUserLoginInfo(uid: string, email: string, password: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
194
|
+
httpHeaderAccept?: 'application/json';
|
|
195
|
+
context?: HttpContext;
|
|
196
|
+
transferCache?: boolean;
|
|
197
|
+
}): Observable<HttpResponse<UserResponseDTO>>;
|
|
198
|
+
updateUserLoginInfo(uid: string, email: string, password: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
199
|
+
httpHeaderAccept?: 'application/json';
|
|
200
|
+
context?: HttpContext;
|
|
201
|
+
transferCache?: boolean;
|
|
202
|
+
}): Observable<HttpEvent<UserResponseDTO>>;
|
|
203
|
+
/**
|
|
204
|
+
* Mettre à jour le mot de passe d\'un utilisateur
|
|
205
|
+
* @param uid
|
|
206
|
+
* @param password
|
|
207
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
208
|
+
* @param reportProgress flag to report request and response progress.
|
|
209
|
+
*/
|
|
210
|
+
updateUserPassword(uid: string, password: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
211
|
+
httpHeaderAccept?: 'application/json';
|
|
212
|
+
context?: HttpContext;
|
|
213
|
+
transferCache?: boolean;
|
|
214
|
+
}): Observable<UserResponseDTO>;
|
|
215
|
+
updateUserPassword(uid: string, password: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
216
|
+
httpHeaderAccept?: 'application/json';
|
|
217
|
+
context?: HttpContext;
|
|
218
|
+
transferCache?: boolean;
|
|
219
|
+
}): Observable<HttpResponse<UserResponseDTO>>;
|
|
220
|
+
updateUserPassword(uid: string, password: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
221
|
+
httpHeaderAccept?: 'application/json';
|
|
222
|
+
context?: HttpContext;
|
|
223
|
+
transferCache?: boolean;
|
|
224
|
+
}): Observable<HttpEvent<UserResponseDTO>>;
|
|
225
|
+
/**
|
|
226
|
+
* Mettre à jour le téléphone d\'un utilisateur
|
|
227
|
+
* @param uid
|
|
228
|
+
* @param phone
|
|
229
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
230
|
+
* @param reportProgress flag to report request and response progress.
|
|
231
|
+
*/
|
|
232
|
+
updateUserPhone(uid: string, phone: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
233
|
+
httpHeaderAccept?: 'application/json';
|
|
234
|
+
context?: HttpContext;
|
|
235
|
+
transferCache?: boolean;
|
|
236
|
+
}): Observable<UserResponseDTO>;
|
|
237
|
+
updateUserPhone(uid: string, phone: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
238
|
+
httpHeaderAccept?: 'application/json';
|
|
239
|
+
context?: HttpContext;
|
|
240
|
+
transferCache?: boolean;
|
|
241
|
+
}): Observable<HttpResponse<UserResponseDTO>>;
|
|
242
|
+
updateUserPhone(uid: string, phone: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
243
|
+
httpHeaderAccept?: 'application/json';
|
|
244
|
+
context?: HttpContext;
|
|
245
|
+
transferCache?: boolean;
|
|
246
|
+
}): Observable<HttpEvent<UserResponseDTO>>;
|
|
247
|
+
/**
|
|
248
|
+
* Mettre à jour le statut d\'un utilisateur
|
|
249
|
+
* @param uid
|
|
250
|
+
* @param status
|
|
251
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
252
|
+
* @param reportProgress flag to report request and response progress.
|
|
253
|
+
*/
|
|
254
|
+
updateUserStatus(uid: string, status: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
255
|
+
httpHeaderAccept?: 'application/json';
|
|
256
|
+
context?: HttpContext;
|
|
257
|
+
transferCache?: boolean;
|
|
258
|
+
}): Observable<UserResponseDTO>;
|
|
259
|
+
updateUserStatus(uid: string, status: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
260
|
+
httpHeaderAccept?: 'application/json';
|
|
261
|
+
context?: HttpContext;
|
|
262
|
+
transferCache?: boolean;
|
|
263
|
+
}): Observable<HttpResponse<UserResponseDTO>>;
|
|
264
|
+
updateUserStatus(uid: string, status: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
265
|
+
httpHeaderAccept?: 'application/json';
|
|
266
|
+
context?: HttpContext;
|
|
267
|
+
transferCache?: boolean;
|
|
268
|
+
}): Observable<HttpEvent<UserResponseDTO>>;
|
|
269
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, [null, { optional: true; }, { optional: true; }]>;
|
|
270
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
271
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
|
2
|
+
import { Configuration } from './configuration';
|
|
3
|
+
export declare class BaseService {
|
|
4
|
+
protected basePath: string;
|
|
5
|
+
defaultHeaders: HttpHeaders;
|
|
6
|
+
configuration: Configuration;
|
|
7
|
+
encoder: HttpParameterCodec;
|
|
8
|
+
constructor(basePath?: string | string[], configuration?: Configuration);
|
|
9
|
+
protected canConsumeForm(consumes: string[]): boolean;
|
|
10
|
+
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams;
|
|
11
|
+
protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams;
|
|
12
|
+
}
|
package/api.module.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { Configuration } from './configuration';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ApiModule {
|
|
6
|
+
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
|
|
7
|
+
constructor(parentModule: ApiModule, http: HttpClient);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ApiModule, never, never, never>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
|
|
11
|
+
}
|