karibu-layer 1.0.13 → 1.0.15
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 +75 -126
- package/api/api.d.ts +19 -23
- package/api/app.service.d.ts +30 -0
- package/api/authentication.service.d.ts +57 -60
- package/api/{role.service.d.ts → boards.service.d.ts} +50 -48
- package/api/categories.service.d.ts +119 -0
- package/api/establishments.service.d.ts +119 -0
- package/api/invoices.service.d.ts +119 -0
- package/api/{payment.service.d.ts → orders.service.d.ts} +81 -97
- package/api/payments.service.d.ts +119 -0
- package/api/products.service.d.ts +231 -0
- package/api/users.service.d.ts +186 -0
- package/api.base.service.d.ts +11 -2
- package/configuration.d.ts +1 -1
- package/esm2022/api/api.mjs +20 -24
- package/esm2022/api/app.service.mjs +73 -0
- package/esm2022/api/authentication.service.mjs +51 -82
- package/esm2022/api/boards.service.mjs +242 -0
- package/esm2022/api/categories.service.mjs +242 -0
- package/esm2022/api/establishments.service.mjs +242 -0
- package/esm2022/api/invoices.service.mjs +242 -0
- package/esm2022/api/orders.service.mjs +397 -0
- package/esm2022/api/payments.service.mjs +242 -0
- package/esm2022/api/products.service.mjs +438 -0
- package/esm2022/api/users.service.mjs +368 -0
- package/esm2022/api.base.service.mjs +17 -6
- package/esm2022/configuration.mjs +21 -17
- package/esm2022/index.mjs +2 -1
- package/esm2022/model/authResponseDto.mjs +11 -0
- package/esm2022/model/boardResponseDto.mjs +19 -0
- package/esm2022/model/categoryResponseDto.mjs +21 -0
- package/esm2022/model/createBoardDto.mjs +11 -0
- package/esm2022/model/createCategoryDto.mjs +21 -0
- package/esm2022/model/createEstablishmentDto.mjs +20 -0
- package/esm2022/model/createInvoiceDto.mjs +11 -0
- package/esm2022/model/createOrderDto.mjs +2 -0
- package/esm2022/model/createOrderItemDto.mjs +11 -0
- package/esm2022/model/createPaymentDto.mjs +19 -0
- package/esm2022/model/createProductDto.mjs +11 -0
- package/esm2022/model/establishmentResponseDto.mjs +20 -0
- package/esm2022/model/invoiceResponseDto.mjs +11 -0
- package/esm2022/model/loginDto.mjs +11 -0
- package/esm2022/model/models.mjs +28 -38
- package/esm2022/model/orderItemResponseDto.mjs +11 -0
- package/esm2022/model/orderResponseDto.mjs +13 -0
- package/esm2022/model/paymentResponseDto.mjs +25 -0
- package/esm2022/model/productResponseDto.mjs +11 -0
- package/esm2022/model/registerDto.mjs +11 -0
- package/esm2022/model/updateBoardDto.mjs +19 -0
- package/esm2022/model/updateCategoryDto.mjs +21 -0
- package/esm2022/model/updateEstablishmentDto.mjs +20 -0
- package/esm2022/model/updateInvoiceDto.mjs +11 -0
- package/esm2022/model/updateOrderDto.mjs +11 -0
- package/esm2022/model/updatePaymentDto.mjs +19 -0
- package/esm2022/model/updateProductDto.mjs +11 -0
- package/esm2022/model/userResponseDto.mjs +20 -0
- package/esm2022/provide-api.mjs +15 -0
- package/fesm2022/karibu-layer.mjs +1009 -2786
- package/fesm2022/karibu-layer.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/model/{tokenRequest.d.ts → authResponseDto.d.ts} +5 -4
- package/model/boardResponseDto.d.ts +28 -0
- package/model/categoryResponseDto.d.ts +30 -0
- package/model/createBoardDto.d.ts +27 -0
- package/model/createCategoryDto.d.ts +38 -0
- package/model/createEstablishmentDto.d.ts +45 -0
- package/model/createInvoiceDto.d.ts +31 -0
- package/model/createOrderDto.d.ts +28 -0
- package/model/createOrderItemDto.d.ts +23 -0
- package/model/createPaymentDto.d.ts +40 -0
- package/model/createProductDto.d.ts +47 -0
- package/model/establishmentResponseDto.d.ts +31 -0
- package/model/invoiceResponseDto.d.ts +21 -0
- package/model/{tokenResponse.d.ts → loginDto.d.ts} +5 -4
- package/model/models.d.ts +27 -37
- package/model/orderItemResponseDto.d.ts +17 -0
- package/model/orderResponseDto.d.ts +34 -0
- package/model/paymentResponseDto.d.ts +37 -0
- package/model/productResponseDto.d.ts +23 -0
- package/model/{categoryRequestDTO.d.ts → registerDto.d.ts} +8 -9
- package/model/updateBoardDto.d.ts +36 -0
- package/model/updateCategoryDto.d.ts +38 -0
- package/model/updateEstablishmentDto.d.ts +45 -0
- package/model/updateInvoiceDto.d.ts +27 -0
- package/model/{dashboard.d.ts → updateOrderDto.d.ts} +11 -5
- package/model/updatePaymentDto.d.ts +32 -0
- package/model/updateProductDto.d.ts +43 -0
- package/model/userResponseDto.d.ts +34 -0
- package/package.json +1 -1
- package/provide-api.d.ts +3 -0
- package/api/board.service.d.ts +0 -267
- package/api/category.service.d.ts +0 -245
- package/api/establishment.service.d.ts +0 -181
- package/api/establishmentAccessor.service.d.ts +0 -183
- package/api/invoice.service.d.ts +0 -180
- package/api/order.service.d.ts +0 -203
- package/api/orderItem.service.d.ts +0 -202
- package/api/product.service.d.ts +0 -161
- package/api/user.service.d.ts +0 -271
- package/esm2022/api/board.service.mjs +0 -495
- package/esm2022/api/category.service.mjs +0 -468
- package/esm2022/api/establishment.service.mjs +0 -345
- package/esm2022/api/establishmentAccessor.service.mjs +0 -337
- package/esm2022/api/invoice.service.mjs +0 -349
- package/esm2022/api/order.service.mjs +0 -388
- package/esm2022/api/orderItem.service.mjs +0 -381
- package/esm2022/api/payment.service.mjs +0 -417
- package/esm2022/api/product.service.mjs +0 -312
- package/esm2022/api/role.service.mjs +0 -237
- package/esm2022/api/user.service.mjs +0 -507
- package/esm2022/model/board.mjs +0 -8
- package/esm2022/model/boardRequestDTO.mjs +0 -17
- package/esm2022/model/boardResponseDTO.mjs +0 -8
- package/esm2022/model/category.mjs +0 -2
- package/esm2022/model/categoryRequestDTO.mjs +0 -11
- package/esm2022/model/categoryResponseDTO.mjs +0 -11
- package/esm2022/model/dashboard.mjs +0 -11
- package/esm2022/model/establishment.mjs +0 -34
- package/esm2022/model/establishmentAccessor.mjs +0 -2
- package/esm2022/model/establishmentAccessorDTO.mjs +0 -11
- package/esm2022/model/establishmentAccessorRequestDTO.mjs +0 -11
- package/esm2022/model/establishmentAccessorResponseDTO.mjs +0 -34
- package/esm2022/model/establishmentRequestDTO.mjs +0 -43
- package/esm2022/model/establishmentResponseDTO.mjs +0 -43
- package/esm2022/model/invoice.mjs +0 -2
- package/esm2022/model/invoiceDTO.mjs +0 -11
- package/esm2022/model/loginAccessorRequestDTO.mjs +0 -11
- package/esm2022/model/loginRequestDTO.mjs +0 -11
- package/esm2022/model/loginResponseDTO.mjs +0 -2
- package/esm2022/model/order.mjs +0 -8
- package/esm2022/model/orderItem.mjs +0 -2
- package/esm2022/model/orderItemRequestDTO.mjs +0 -11
- package/esm2022/model/orderItemResponseDTO.mjs +0 -2
- package/esm2022/model/orderRequestDTO.mjs +0 -17
- package/esm2022/model/orderResponseDTO.mjs +0 -8
- package/esm2022/model/payment.mjs +0 -12
- package/esm2022/model/paymentDTO.mjs +0 -21
- package/esm2022/model/product.mjs +0 -2
- package/esm2022/model/productRequestDTO.mjs +0 -11
- package/esm2022/model/productResponseDTO.mjs +0 -2
- package/esm2022/model/role.mjs +0 -11
- package/esm2022/model/roleDTO.mjs +0 -20
- package/esm2022/model/tokenRequest.mjs +0 -11
- package/esm2022/model/tokenResponse.mjs +0 -11
- package/esm2022/model/user.mjs +0 -11
- package/esm2022/model/userRequestDTO.mjs +0 -2
- package/esm2022/model/userResponseDTO.mjs +0 -11
- package/model/board.d.ts +0 -30
- package/model/boardRequestDTO.d.ts +0 -24
- package/model/boardResponseDTO.d.ts +0 -26
- package/model/category.d.ts +0 -23
- package/model/categoryResponseDTO.d.ts +0 -17
- package/model/establishment.d.ts +0 -75
- package/model/establishmentAccessor.d.ts +0 -23
- package/model/establishmentAccessorDTO.d.ts +0 -23
- package/model/establishmentAccessorRequestDTO.d.ts +0 -19
- package/model/establishmentAccessorResponseDTO.d.ts +0 -64
- package/model/establishmentRequestDTO.d.ts +0 -59
- package/model/establishmentResponseDTO.d.ts +0 -62
- package/model/invoice.d.ts +0 -19
- package/model/invoiceDTO.d.ts +0 -16
- package/model/loginAccessorRequestDTO.d.ts +0 -13
- package/model/loginRequestDTO.d.ts +0 -13
- package/model/loginResponseDTO.d.ts +0 -21
- package/model/order.d.ts +0 -33
- package/model/orderItem.d.ts +0 -18
- package/model/orderItemRequestDTO.d.ts +0 -16
- package/model/orderItemResponseDTO.d.ts +0 -17
- package/model/orderRequestDTO.d.ts +0 -21
- package/model/orderResponseDTO.d.ts +0 -33
- package/model/payment.d.ts +0 -30
- package/model/paymentDTO.d.ts +0 -30
- package/model/product.d.ts +0 -25
- package/model/productRequestDTO.d.ts +0 -23
- package/model/productResponseDTO.d.ts +0 -22
- package/model/role.d.ts +0 -26
- package/model/roleDTO.d.ts +0 -24
- package/model/user.d.ts +0 -40
- package/model/userRequestDTO.d.ts +0 -19
- package/model/userResponseDTO.d.ts +0 -36
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# karibu-layer@1.0.0
|
|
2
2
|
|
|
3
|
-
API
|
|
3
|
+
API description of karibu
|
|
4
4
|
|
|
5
|
-
The version of the OpenAPI document: 1
|
|
5
|
+
The version of the OpenAPI document: 0.1-SNAPSHOT
|
|
6
6
|
|
|
7
7
|
## Building
|
|
8
8
|
|
|
@@ -58,157 +58,106 @@ Published packages are not effected by this issue.
|
|
|
58
58
|
In your Angular project:
|
|
59
59
|
|
|
60
60
|
```typescript
|
|
61
|
-
// without configuring providers
|
|
62
|
-
import { ApiModule } from 'karibu-layer';
|
|
63
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
64
|
-
|
|
65
|
-
@NgModule({
|
|
66
|
-
imports: [
|
|
67
|
-
ApiModule,
|
|
68
|
-
// make sure to import the HttpClientModule in the AppModule only,
|
|
69
|
-
// see https://github.com/angular/angular/issues/20575
|
|
70
|
-
HttpClientModule
|
|
71
|
-
],
|
|
72
|
-
declarations: [ AppComponent ],
|
|
73
|
-
providers: [],
|
|
74
|
-
bootstrap: [ AppComponent ]
|
|
75
|
-
})
|
|
76
|
-
export class AppModule {}
|
|
77
|
-
```
|
|
78
61
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
import {
|
|
82
|
-
|
|
83
|
-
export function apiConfigFactory (): Configuration {
|
|
84
|
-
const params: ConfigurationParameters = {
|
|
85
|
-
// set configuration parameters here.
|
|
86
|
-
}
|
|
87
|
-
return new Configuration(params);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
@NgModule({
|
|
91
|
-
imports: [ ApiModule.forRoot(apiConfigFactory) ],
|
|
92
|
-
declarations: [ AppComponent ],
|
|
93
|
-
providers: [],
|
|
94
|
-
bootstrap: [ AppComponent ]
|
|
95
|
-
})
|
|
96
|
-
export class AppModule {}
|
|
97
|
-
```
|
|
62
|
+
import { ApplicationConfig } from '@angular/core';
|
|
63
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
64
|
+
import { provideApi } from 'karibu-layer';
|
|
98
65
|
|
|
99
|
-
|
|
100
|
-
// configuring providers with an authentication service that manages your access tokens
|
|
101
|
-
import { ApiModule, Configuration } from 'karibu-layer';
|
|
102
|
-
|
|
103
|
-
@NgModule({
|
|
104
|
-
imports: [ ApiModule ],
|
|
105
|
-
declarations: [ AppComponent ],
|
|
66
|
+
export const appConfig: ApplicationConfig = {
|
|
106
67
|
providers: [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
{
|
|
111
|
-
basePath: environment.apiUrl,
|
|
112
|
-
accessToken: authService.getAccessToken.bind(authService)
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
deps: [AuthService],
|
|
116
|
-
multi: false
|
|
117
|
-
}
|
|
68
|
+
// ...
|
|
69
|
+
provideHttpClient(),
|
|
70
|
+
provideApi()
|
|
118
71
|
],
|
|
119
|
-
|
|
120
|
-
})
|
|
121
|
-
export class AppModule {}
|
|
72
|
+
};
|
|
122
73
|
```
|
|
123
74
|
|
|
75
|
+
**NOTE**
|
|
76
|
+
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
|
|
124
77
|
```typescript
|
|
125
|
-
import {
|
|
126
|
-
|
|
127
|
-
export class AppComponent {
|
|
128
|
-
constructor(private apiGateway: DefaultApi) { }
|
|
129
|
-
}
|
|
78
|
+
import { ApiModule } from 'karibu-layer';
|
|
130
79
|
```
|
|
131
80
|
|
|
132
|
-
|
|
133
|
-
This is to ensure that all services are treated as singletons.
|
|
134
|
-
|
|
135
|
-
### Using multiple OpenAPI files / APIs / ApiModules
|
|
136
|
-
|
|
137
|
-
In order to use multiple `ApiModules` generated from different OpenAPI files,
|
|
138
|
-
you can create an alias name when importing the modules
|
|
139
|
-
in order to avoid naming conflicts:
|
|
81
|
+
If different from the generated base path, during app bootstrap, you can provide the base path to your service.
|
|
140
82
|
|
|
141
83
|
```typescript
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
|
|
146
|
-
@NgModule({
|
|
147
|
-
imports: [
|
|
148
|
-
ApiModule,
|
|
149
|
-
OtherApiModule,
|
|
150
|
-
// make sure to import the HttpClientModule in the AppModule only,
|
|
151
|
-
// see https://github.com/angular/angular/issues/20575
|
|
152
|
-
HttpClientModule
|
|
153
|
-
]
|
|
154
|
-
})
|
|
155
|
-
export class AppModule {
|
|
84
|
+
import { ApplicationConfig } from '@angular/core';
|
|
85
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
86
|
+
import { provideApi } from 'karibu-layer';
|
|
156
87
|
|
|
157
|
-
|
|
88
|
+
export const appConfig: ApplicationConfig = {
|
|
89
|
+
providers: [
|
|
90
|
+
// ...
|
|
91
|
+
provideHttpClient(),
|
|
92
|
+
provideApi('http://localhost:9999')
|
|
93
|
+
],
|
|
94
|
+
};
|
|
158
95
|
```
|
|
159
96
|
|
|
160
|
-
### Set service base path
|
|
161
|
-
|
|
162
|
-
If different than the generated base path, during app bootstrap, you can provide the base path to your service.
|
|
163
|
-
|
|
164
97
|
```typescript
|
|
165
|
-
|
|
98
|
+
// with a custom configuration
|
|
99
|
+
import { ApplicationConfig } from '@angular/core';
|
|
100
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
101
|
+
import { provideApi } from 'karibu-layer';
|
|
166
102
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
103
|
+
export const appConfig: ApplicationConfig = {
|
|
104
|
+
providers: [
|
|
105
|
+
// ...
|
|
106
|
+
provideHttpClient(),
|
|
107
|
+
provideApi({
|
|
108
|
+
withCredentials: true,
|
|
109
|
+
username: 'user',
|
|
110
|
+
password: 'password'
|
|
111
|
+
})
|
|
112
|
+
],
|
|
113
|
+
};
|
|
170
114
|
```
|
|
171
115
|
|
|
172
|
-
or
|
|
173
|
-
|
|
174
116
|
```typescript
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
@
|
|
178
|
-
|
|
179
|
-
declarations: [ AppComponent ],
|
|
180
|
-
providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],
|
|
181
|
-
bootstrap: [ AppComponent ]
|
|
182
|
-
})
|
|
183
|
-
export class AppModule {}
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
### Using @angular/cli
|
|
187
|
-
|
|
188
|
-
First extend your `src/environments/*.ts` files by adding the corresponding base path:
|
|
117
|
+
// with factory building a custom configuration
|
|
118
|
+
import { ApplicationConfig } from '@angular/core';
|
|
119
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
120
|
+
import { provideApi, Configuration } from 'karibu-layer';
|
|
189
121
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
122
|
+
export const appConfig: ApplicationConfig = {
|
|
123
|
+
providers: [
|
|
124
|
+
// ...
|
|
125
|
+
provideHttpClient(),
|
|
126
|
+
{
|
|
127
|
+
provide: Configuration,
|
|
128
|
+
useFactory: (authService: AuthService) => new Configuration({
|
|
129
|
+
basePath: 'http://localhost:9999',
|
|
130
|
+
withCredentials: true,
|
|
131
|
+
username: authService.getUsername(),
|
|
132
|
+
password: authService.getPassword(),
|
|
133
|
+
}),
|
|
134
|
+
deps: [AuthService],
|
|
135
|
+
multi: false
|
|
136
|
+
}
|
|
137
|
+
],
|
|
194
138
|
};
|
|
195
139
|
```
|
|
196
140
|
|
|
197
|
-
|
|
141
|
+
### Using multiple OpenAPI files / APIs
|
|
142
|
+
|
|
143
|
+
In order to use multiple APIs generated from different OpenAPI files,
|
|
144
|
+
you can create an alias name when importing the modules
|
|
145
|
+
in order to avoid naming conflicts:
|
|
198
146
|
|
|
199
147
|
```typescript
|
|
200
|
-
import {
|
|
148
|
+
import { provideApi as provideUserApi } from 'my-user-api-path';
|
|
149
|
+
import { provideApi as provideAdminApi } from 'my-admin-api-path';
|
|
150
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
201
151
|
import { environment } from '../environments/environment';
|
|
202
152
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
export class AppModule { }
|
|
153
|
+
export const appConfig: ApplicationConfig = {
|
|
154
|
+
providers: [
|
|
155
|
+
// ...
|
|
156
|
+
provideHttpClient(),
|
|
157
|
+
provideUserApi(environment.basePath),
|
|
158
|
+
provideAdminApi(environment.basePath),
|
|
159
|
+
],
|
|
160
|
+
};
|
|
212
161
|
```
|
|
213
162
|
|
|
214
163
|
### Customizing path parameter encoding
|
package/api/api.d.ts
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
|
+
export * from './app.service';
|
|
2
|
+
import { AppService } from './app.service';
|
|
1
3
|
export * from './authentication.service';
|
|
2
4
|
import { AuthenticationService } from './authentication.service';
|
|
3
|
-
export * from './
|
|
4
|
-
import {
|
|
5
|
-
export * from './
|
|
6
|
-
import {
|
|
7
|
-
export * from './
|
|
8
|
-
import {
|
|
9
|
-
export * from './
|
|
10
|
-
import {
|
|
11
|
-
export * from './
|
|
12
|
-
import {
|
|
13
|
-
export * from './
|
|
14
|
-
import {
|
|
15
|
-
export * from './
|
|
16
|
-
import {
|
|
17
|
-
export * from './
|
|
18
|
-
import {
|
|
19
|
-
export
|
|
20
|
-
import { ProductService } from './product.service';
|
|
21
|
-
export * from './role.service';
|
|
22
|
-
import { RoleService } from './role.service';
|
|
23
|
-
export * from './user.service';
|
|
24
|
-
import { UserService } from './user.service';
|
|
25
|
-
export declare const APIS: (typeof AuthenticationService | typeof BoardService | typeof CategoryService | typeof EstablishmentService | typeof EstablishmentAccessorService | typeof InvoiceService | typeof OrderService | typeof OrderItemService | typeof PaymentService | typeof ProductService | typeof RoleService | typeof UserService)[];
|
|
5
|
+
export * from './boards.service';
|
|
6
|
+
import { BoardsService } from './boards.service';
|
|
7
|
+
export * from './categories.service';
|
|
8
|
+
import { CategoriesService } from './categories.service';
|
|
9
|
+
export * from './establishments.service';
|
|
10
|
+
import { EstablishmentsService } from './establishments.service';
|
|
11
|
+
export * from './invoices.service';
|
|
12
|
+
import { InvoicesService } from './invoices.service';
|
|
13
|
+
export * from './orders.service';
|
|
14
|
+
import { OrdersService } from './orders.service';
|
|
15
|
+
export * from './payments.service';
|
|
16
|
+
import { PaymentsService } from './payments.service';
|
|
17
|
+
export * from './products.service';
|
|
18
|
+
import { ProductsService } from './products.service';
|
|
19
|
+
export * from './users.service';
|
|
20
|
+
import { UsersService } from './users.service';
|
|
21
|
+
export declare const APIS: (typeof AppService | typeof AuthenticationService | typeof BoardsService | typeof CategoriesService | typeof EstablishmentsService | typeof InvoicesService | typeof OrdersService | typeof PaymentsService | typeof ProductsService | typeof UsersService)[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Configuration } from '../configuration';
|
|
4
|
+
import { BaseService } from '../api.base.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AppService extends BaseService {
|
|
7
|
+
protected httpClient: HttpClient;
|
|
8
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
9
|
+
/**
|
|
10
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
11
|
+
* @param reportProgress flag to report request and response progress.
|
|
12
|
+
*/
|
|
13
|
+
appControllerGetHello(observe?: 'body', reportProgress?: boolean, options?: {
|
|
14
|
+
httpHeaderAccept?: undefined;
|
|
15
|
+
context?: HttpContext;
|
|
16
|
+
transferCache?: boolean;
|
|
17
|
+
}): Observable<any>;
|
|
18
|
+
appControllerGetHello(observe?: 'response', reportProgress?: boolean, options?: {
|
|
19
|
+
httpHeaderAccept?: undefined;
|
|
20
|
+
context?: HttpContext;
|
|
21
|
+
transferCache?: boolean;
|
|
22
|
+
}): Observable<HttpResponse<any>>;
|
|
23
|
+
appControllerGetHello(observe?: 'events', reportProgress?: boolean, options?: {
|
|
24
|
+
httpHeaderAccept?: undefined;
|
|
25
|
+
context?: HttpContext;
|
|
26
|
+
transferCache?: boolean;
|
|
27
|
+
}): Observable<HttpEvent<any>>;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppService, [null, { optional: true; }, { optional: true; }]>;
|
|
29
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppService>;
|
|
30
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { TokenResponse } from '../model/tokenResponse';
|
|
3
|
+
import { AuthResponseDto } from '../model/authResponseDto';
|
|
4
|
+
import { LoginDto } from '../model/loginDto';
|
|
5
|
+
import { RegisterDto } from '../model/registerDto';
|
|
7
6
|
import { Configuration } from '../configuration';
|
|
8
7
|
import { BaseService } from '../api.base.service';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
@@ -11,129 +10,127 @@ export declare class AuthenticationService extends BaseService {
|
|
|
11
10
|
protected httpClient: HttpClient;
|
|
12
11
|
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
13
12
|
/**
|
|
14
|
-
*
|
|
15
|
-
* @param
|
|
13
|
+
* Supprimer un utilisateur
|
|
14
|
+
* @param id ID de l\'utilisateur
|
|
16
15
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
17
16
|
* @param reportProgress flag to report request and response progress.
|
|
18
17
|
*/
|
|
19
|
-
|
|
20
|
-
httpHeaderAccept?:
|
|
18
|
+
authControllerDeleteUser(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
19
|
+
httpHeaderAccept?: undefined;
|
|
21
20
|
context?: HttpContext;
|
|
22
21
|
transferCache?: boolean;
|
|
23
|
-
}): Observable<
|
|
24
|
-
|
|
25
|
-
httpHeaderAccept?:
|
|
22
|
+
}): Observable<any>;
|
|
23
|
+
authControllerDeleteUser(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
24
|
+
httpHeaderAccept?: undefined;
|
|
26
25
|
context?: HttpContext;
|
|
27
26
|
transferCache?: boolean;
|
|
28
|
-
}): Observable<HttpResponse<
|
|
29
|
-
|
|
30
|
-
httpHeaderAccept?:
|
|
27
|
+
}): Observable<HttpResponse<any>>;
|
|
28
|
+
authControllerDeleteUser(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
29
|
+
httpHeaderAccept?: undefined;
|
|
31
30
|
context?: HttpContext;
|
|
32
31
|
transferCache?: boolean;
|
|
33
|
-
}): Observable<HttpEvent<
|
|
32
|
+
}): Observable<HttpEvent<any>>;
|
|
34
33
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @param
|
|
34
|
+
* Verrouiller un compte utilisateur
|
|
35
|
+
* @param id ID de l\'utilisateur
|
|
37
36
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
38
37
|
* @param reportProgress flag to report request and response progress.
|
|
39
38
|
*/
|
|
40
|
-
|
|
41
|
-
httpHeaderAccept?:
|
|
39
|
+
authControllerLockUser(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
40
|
+
httpHeaderAccept?: undefined;
|
|
42
41
|
context?: HttpContext;
|
|
43
42
|
transferCache?: boolean;
|
|
44
|
-
}): Observable<
|
|
45
|
-
|
|
46
|
-
httpHeaderAccept?:
|
|
43
|
+
}): Observable<any>;
|
|
44
|
+
authControllerLockUser(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
45
|
+
httpHeaderAccept?: undefined;
|
|
47
46
|
context?: HttpContext;
|
|
48
47
|
transferCache?: boolean;
|
|
49
|
-
}): Observable<HttpResponse<
|
|
50
|
-
|
|
51
|
-
httpHeaderAccept?:
|
|
48
|
+
}): Observable<HttpResponse<any>>;
|
|
49
|
+
authControllerLockUser(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
50
|
+
httpHeaderAccept?: undefined;
|
|
52
51
|
context?: HttpContext;
|
|
53
52
|
transferCache?: boolean;
|
|
54
|
-
}): Observable<HttpEvent<
|
|
53
|
+
}): Observable<HttpEvent<any>>;
|
|
55
54
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @param
|
|
55
|
+
* Login user
|
|
56
|
+
* @param loginDto
|
|
58
57
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
59
58
|
* @param reportProgress flag to report request and response progress.
|
|
60
59
|
*/
|
|
61
|
-
|
|
60
|
+
authControllerLogin(loginDto: LoginDto, observe?: 'body', reportProgress?: boolean, options?: {
|
|
62
61
|
httpHeaderAccept?: 'application/json';
|
|
63
62
|
context?: HttpContext;
|
|
64
63
|
transferCache?: boolean;
|
|
65
|
-
}): Observable<
|
|
66
|
-
|
|
64
|
+
}): Observable<AuthResponseDto>;
|
|
65
|
+
authControllerLogin(loginDto: LoginDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
67
66
|
httpHeaderAccept?: 'application/json';
|
|
68
67
|
context?: HttpContext;
|
|
69
68
|
transferCache?: boolean;
|
|
70
|
-
}): Observable<HttpResponse<
|
|
71
|
-
|
|
69
|
+
}): Observable<HttpResponse<AuthResponseDto>>;
|
|
70
|
+
authControllerLogin(loginDto: LoginDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
72
71
|
httpHeaderAccept?: 'application/json';
|
|
73
72
|
context?: HttpContext;
|
|
74
73
|
transferCache?: boolean;
|
|
75
|
-
}): Observable<HttpEvent<
|
|
74
|
+
}): Observable<HttpEvent<AuthResponseDto>>;
|
|
76
75
|
/**
|
|
77
|
-
*
|
|
78
|
-
* @param
|
|
79
|
-
* @param role
|
|
80
|
-
* @param establishmentAccess
|
|
76
|
+
* Validate user account
|
|
77
|
+
* @param email
|
|
81
78
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
82
79
|
* @param reportProgress flag to report request and response progress.
|
|
83
80
|
*/
|
|
84
|
-
|
|
85
|
-
httpHeaderAccept?:
|
|
81
|
+
authControllerReSendValidationEmail(email: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
82
|
+
httpHeaderAccept?: undefined;
|
|
86
83
|
context?: HttpContext;
|
|
87
84
|
transferCache?: boolean;
|
|
88
|
-
}): Observable<
|
|
89
|
-
|
|
90
|
-
httpHeaderAccept?:
|
|
85
|
+
}): Observable<any>;
|
|
86
|
+
authControllerReSendValidationEmail(email: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
87
|
+
httpHeaderAccept?: undefined;
|
|
91
88
|
context?: HttpContext;
|
|
92
89
|
transferCache?: boolean;
|
|
93
|
-
}): Observable<HttpResponse<
|
|
94
|
-
|
|
95
|
-
httpHeaderAccept?:
|
|
90
|
+
}): Observable<HttpResponse<any>>;
|
|
91
|
+
authControllerReSendValidationEmail(email: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
92
|
+
httpHeaderAccept?: undefined;
|
|
96
93
|
context?: HttpContext;
|
|
97
94
|
transferCache?: boolean;
|
|
98
|
-
}): Observable<HttpEvent<
|
|
95
|
+
}): Observable<HttpEvent<any>>;
|
|
99
96
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @param
|
|
97
|
+
* Register a new user
|
|
98
|
+
* @param registerDto
|
|
102
99
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
103
100
|
* @param reportProgress flag to report request and response progress.
|
|
104
101
|
*/
|
|
105
|
-
|
|
102
|
+
authControllerRegister(registerDto: RegisterDto, observe?: 'body', reportProgress?: boolean, options?: {
|
|
106
103
|
httpHeaderAccept?: 'application/json';
|
|
107
104
|
context?: HttpContext;
|
|
108
105
|
transferCache?: boolean;
|
|
109
|
-
}): Observable<
|
|
110
|
-
|
|
106
|
+
}): Observable<AuthResponseDto>;
|
|
107
|
+
authControllerRegister(registerDto: RegisterDto, observe?: 'response', reportProgress?: boolean, options?: {
|
|
111
108
|
httpHeaderAccept?: 'application/json';
|
|
112
109
|
context?: HttpContext;
|
|
113
110
|
transferCache?: boolean;
|
|
114
|
-
}): Observable<HttpResponse<
|
|
115
|
-
|
|
111
|
+
}): Observable<HttpResponse<AuthResponseDto>>;
|
|
112
|
+
authControllerRegister(registerDto: RegisterDto, observe?: 'events', reportProgress?: boolean, options?: {
|
|
116
113
|
httpHeaderAccept?: 'application/json';
|
|
117
114
|
context?: HttpContext;
|
|
118
115
|
transferCache?: boolean;
|
|
119
|
-
}): Observable<HttpEvent<
|
|
116
|
+
}): Observable<HttpEvent<AuthResponseDto>>;
|
|
120
117
|
/**
|
|
121
|
-
*
|
|
122
|
-
* @param
|
|
118
|
+
* Déverrouiller un compte utilisateur
|
|
119
|
+
* @param id ID de l\'utilisateur
|
|
123
120
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
124
121
|
* @param reportProgress flag to report request and response progress.
|
|
125
122
|
*/
|
|
126
|
-
|
|
123
|
+
authControllerUnlockUser(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
|
127
124
|
httpHeaderAccept?: undefined;
|
|
128
125
|
context?: HttpContext;
|
|
129
126
|
transferCache?: boolean;
|
|
130
127
|
}): Observable<any>;
|
|
131
|
-
|
|
128
|
+
authControllerUnlockUser(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
|
132
129
|
httpHeaderAccept?: undefined;
|
|
133
130
|
context?: HttpContext;
|
|
134
131
|
transferCache?: boolean;
|
|
135
132
|
}): Observable<HttpResponse<any>>;
|
|
136
|
-
|
|
133
|
+
authControllerUnlockUser(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
|
137
134
|
httpHeaderAccept?: undefined;
|
|
138
135
|
context?: HttpContext;
|
|
139
136
|
transferCache?: boolean;
|