@indigina/wms-api 0.0.36 → 0.0.38
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 +35 -27
- package/api/api.d.ts +9 -1
- package/api/companies.service.d.ts +63 -0
- package/api/deliveries.service.d.ts +69 -0
- package/api/deliveryItems.service.d.ts +43 -0
- package/api/notes.service.d.ts +96 -0
- package/fesm2022/indigina-wms-api.mjs +1018 -67
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/model/applicationSetting.d.ts +0 -1
- package/model/commandStatusResult.d.ts +0 -1
- package/model/companies.d.ts +14 -0
- package/model/company.d.ts +14 -0
- package/model/countingSummary.d.ts +0 -1
- package/model/currentUser.d.ts +0 -1
- package/model/deliveries.d.ts +14 -0
- package/model/deliveryItemView.d.ts +23 -0
- package/model/deliveryItems.d.ts +14 -0
- package/model/deliveryType.d.ts +17 -0
- package/model/deliveryView.d.ts +42 -0
- package/model/dispatchSummary.d.ts +0 -1
- package/model/embedReport.d.ts +0 -1
- package/model/embedTokenDto.d.ts +0 -1
- package/model/entityList.d.ts +13 -0
- package/model/failures.d.ts +0 -1
- package/model/group.d.ts +0 -1
- package/model/modelError.d.ts +0 -1
- package/model/models.d.ts +15 -0
- package/model/note.d.ts +20 -0
- package/model/noteCategory.d.ts +16 -0
- package/model/noteSourceType.d.ts +14 -0
- package/model/noteView.d.ts +16 -0
- package/model/notes.d.ts +14 -0
- package/model/orderStatus.d.ts +30 -0
- package/model/receivingSummary.d.ts +0 -1
- package/model/recordType.d.ts +14 -0
- package/model/replenishmentSummary.d.ts +0 -1
- package/model/report.d.ts +0 -1
- package/model/setNewFeaturesVisibilityCommand.d.ts +0 -1
- package/model/summaryDashboardReports.d.ts +0 -1
- package/model/userApplication.d.ts +0 -1
- package/model/userApplications.d.ts +0 -1
- package/model/userPermissions.d.ts +0 -1
- package/package.json +2 -4
- package/esm2022/api/analytics.service.mjs +0 -570
- package/esm2022/api/api.mjs +0 -14
- package/esm2022/api/dcs.service.mjs +0 -274
- package/esm2022/api/health.service.mjs +0 -143
- package/esm2022/api/permissions.service.mjs +0 -142
- package/esm2022/api/summary.service.mjs +0 -142
- package/esm2022/api/user.service.mjs +0 -286
- package/esm2022/api.module.mjs +0 -40
- package/esm2022/configuration.mjs +0 -121
- package/esm2022/encoder.mjs +0 -19
- package/esm2022/index.mjs +0 -7
- package/esm2022/indigina-wms-api.mjs +0 -5
- package/esm2022/model/applicationSetting.mjs +0 -12
- package/esm2022/model/commandStatusResult.mjs +0 -12
- package/esm2022/model/countingSummary.mjs +0 -12
- package/esm2022/model/currentUser.mjs +0 -12
- package/esm2022/model/dispatchSummary.mjs +0 -12
- package/esm2022/model/embedReport.mjs +0 -2
- package/esm2022/model/embedTokenDto.mjs +0 -12
- package/esm2022/model/failures.mjs +0 -12
- package/esm2022/model/group.mjs +0 -2
- package/esm2022/model/modelError.mjs +0 -2
- package/esm2022/model/models.mjs +0 -19
- package/esm2022/model/receivingSummary.mjs +0 -12
- package/esm2022/model/replenishmentSummary.mjs +0 -12
- package/esm2022/model/report.mjs +0 -12
- package/esm2022/model/setNewFeaturesVisibilityCommand.mjs +0 -12
- package/esm2022/model/summaryDashboardReports.mjs +0 -2
- package/esm2022/model/userApplication.mjs +0 -12
- package/esm2022/model/userApplications.mjs +0 -2
- package/esm2022/model/userPermissions.mjs +0 -12
- package/esm2022/param.mjs +0 -2
- package/esm2022/variables.mjs +0 -9
package/README.md
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
# @indigina/wms-api@0.0.38
|
|
2
|
+
|
|
3
|
+
WMS API Client for Angular applications
|
|
2
4
|
|
|
3
5
|
The version of the OpenAPI document: v1
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
## Building
|
|
6
8
|
|
|
7
9
|
To install the required dependencies and to build the typescript sources run:
|
|
8
|
-
|
|
10
|
+
|
|
11
|
+
```console
|
|
9
12
|
npm install
|
|
10
13
|
npm run build
|
|
11
14
|
```
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
## Publishing
|
|
14
17
|
|
|
15
|
-
First build the package then run
|
|
18
|
+
First build the package then run `npm publish dist` (don't forget to specify the `dist` folder!)
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
## Consuming
|
|
18
21
|
|
|
19
22
|
Navigate to the folder of your consuming project and run one of next commands.
|
|
20
23
|
|
|
21
24
|
_published:_
|
|
22
25
|
|
|
23
|
-
```
|
|
24
|
-
npm install @indigina/wms-api@0.0.
|
|
26
|
+
```console
|
|
27
|
+
npm install @indigina/wms-api@0.0.38 --save
|
|
25
28
|
```
|
|
26
29
|
|
|
27
30
|
_without publishing (not recommended):_
|
|
28
31
|
|
|
29
|
-
```
|
|
32
|
+
```console
|
|
30
33
|
npm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save
|
|
31
34
|
```
|
|
32
35
|
|
|
@@ -35,26 +38,26 @@ _It's important to take the tgz file, otherwise you'll get trouble with links on
|
|
|
35
38
|
_using `npm link`:_
|
|
36
39
|
|
|
37
40
|
In PATH_TO_GENERATED_PACKAGE/dist:
|
|
38
|
-
|
|
41
|
+
|
|
42
|
+
```console
|
|
39
43
|
npm link
|
|
40
44
|
```
|
|
41
45
|
|
|
42
46
|
In your project:
|
|
43
|
-
|
|
47
|
+
|
|
48
|
+
```console
|
|
44
49
|
npm link @indigina/wms-api
|
|
45
50
|
```
|
|
46
51
|
|
|
47
52
|
__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.
|
|
48
|
-
Please refer to this issue https://github.com/angular/angular-cli/issues/8284 for a solution / workaround.
|
|
53
|
+
Please refer to this issue <https://github.com/angular/angular-cli/issues/8284> for a solution / workaround.
|
|
49
54
|
Published packages are not effected by this issue.
|
|
50
55
|
|
|
51
|
-
|
|
52
|
-
#### General usage
|
|
56
|
+
### General usage
|
|
53
57
|
|
|
54
58
|
In your Angular project:
|
|
55
59
|
|
|
56
|
-
|
|
57
|
-
```
|
|
60
|
+
```typescript
|
|
58
61
|
// without configuring providers
|
|
59
62
|
import { ApiModule } from '@indigina/wms-api';
|
|
60
63
|
import { HttpClientModule } from '@angular/common/http';
|
|
@@ -73,7 +76,7 @@ import { HttpClientModule } from '@angular/common/http';
|
|
|
73
76
|
export class AppModule {}
|
|
74
77
|
```
|
|
75
78
|
|
|
76
|
-
```
|
|
79
|
+
```typescript
|
|
77
80
|
// configuring providers
|
|
78
81
|
import { ApiModule, Configuration, ConfigurationParameters } from '@indigina/wms-api';
|
|
79
82
|
|
|
@@ -93,7 +96,7 @@ export function apiConfigFactory (): Configuration {
|
|
|
93
96
|
export class AppModule {}
|
|
94
97
|
```
|
|
95
98
|
|
|
96
|
-
```
|
|
99
|
+
```typescript
|
|
97
100
|
// configuring providers with an authentication service that manages your access tokens
|
|
98
101
|
import { ApiModule, Configuration } from '@indigina/wms-api';
|
|
99
102
|
|
|
@@ -118,7 +121,7 @@ import { ApiModule, Configuration } from '@indigina/wms-api';
|
|
|
118
121
|
export class AppModule {}
|
|
119
122
|
```
|
|
120
123
|
|
|
121
|
-
```
|
|
124
|
+
```typescript
|
|
122
125
|
import { DefaultApi } from '@indigina/wms-api';
|
|
123
126
|
|
|
124
127
|
export class AppComponent {
|
|
@@ -129,11 +132,13 @@ export class AppComponent {
|
|
|
129
132
|
Note: The ApiModule is restricted to being instantiated once app wide.
|
|
130
133
|
This is to ensure that all services are treated as singletons.
|
|
131
134
|
|
|
132
|
-
|
|
135
|
+
### Using multiple OpenAPI files / APIs / ApiModules
|
|
136
|
+
|
|
133
137
|
In order to use multiple `ApiModules` generated from different OpenAPI files,
|
|
134
138
|
you can create an alias name when importing the modules
|
|
135
139
|
in order to avoid naming conflicts:
|
|
136
|
-
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
137
142
|
import { ApiModule } from 'my-api-path';
|
|
138
143
|
import { ApiModule as OtherApiModule } from 'my-other-api-path';
|
|
139
144
|
import { HttpClientModule } from '@angular/common/http';
|
|
@@ -152,20 +157,21 @@ export class AppModule {
|
|
|
152
157
|
}
|
|
153
158
|
```
|
|
154
159
|
|
|
155
|
-
|
|
156
160
|
### Set service base path
|
|
161
|
+
|
|
157
162
|
If different than the generated base path, during app bootstrap, you can provide the base path to your service.
|
|
158
163
|
|
|
159
|
-
```
|
|
164
|
+
```typescript
|
|
160
165
|
import { BASE_PATH } from '@indigina/wms-api';
|
|
161
166
|
|
|
162
167
|
bootstrap(AppComponent, [
|
|
163
168
|
{ provide: BASE_PATH, useValue: 'https://your-web-service.com' },
|
|
164
169
|
]);
|
|
165
170
|
```
|
|
171
|
+
|
|
166
172
|
or
|
|
167
173
|
|
|
168
|
-
```
|
|
174
|
+
```typescript
|
|
169
175
|
import { BASE_PATH } from '@indigina/wms-api';
|
|
170
176
|
|
|
171
177
|
@NgModule({
|
|
@@ -177,11 +183,11 @@ import { BASE_PATH } from '@indigina/wms-api';
|
|
|
177
183
|
export class AppModule {}
|
|
178
184
|
```
|
|
179
185
|
|
|
186
|
+
### Using @angular/cli
|
|
180
187
|
|
|
181
|
-
#### Using @angular/cli
|
|
182
188
|
First extend your `src/environments/*.ts` files by adding the corresponding base path:
|
|
183
189
|
|
|
184
|
-
```
|
|
190
|
+
```typescript
|
|
185
191
|
export const environment = {
|
|
186
192
|
production: false,
|
|
187
193
|
API_BASE_PATH: 'http://127.0.0.1:8080'
|
|
@@ -189,7 +195,8 @@ export const environment = {
|
|
|
189
195
|
```
|
|
190
196
|
|
|
191
197
|
In the src/app/app.module.ts:
|
|
192
|
-
|
|
198
|
+
|
|
199
|
+
```typescript
|
|
193
200
|
import { BASE_PATH } from '@indigina/wms-api';
|
|
194
201
|
import { environment } from '../environments/environment';
|
|
195
202
|
|
|
@@ -217,6 +224,7 @@ pass an arrow-function or method-reference to the `encodeParam` property of the
|
|
|
217
224
|
(see [General Usage](#general-usage) above).
|
|
218
225
|
|
|
219
226
|
Example value for use in your Configuration-Provider:
|
|
227
|
+
|
|
220
228
|
```typescript
|
|
221
229
|
new Configuration({
|
|
222
230
|
encodeParam: (param: Param) => myFancyParamEncoder(param),
|
package/api/api.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
export * from './analytics.service';
|
|
2
2
|
import { AnalyticsService } from './analytics.service';
|
|
3
|
+
export * from './companies.service';
|
|
4
|
+
import { CompaniesService } from './companies.service';
|
|
3
5
|
export * from './dcs.service';
|
|
4
6
|
import { DcsService } from './dcs.service';
|
|
7
|
+
export * from './deliveries.service';
|
|
8
|
+
import { DeliveriesService } from './deliveries.service';
|
|
9
|
+
export * from './deliveryItems.service';
|
|
10
|
+
import { DeliveryItemsService } from './deliveryItems.service';
|
|
5
11
|
export * from './health.service';
|
|
6
12
|
import { HealthService } from './health.service';
|
|
13
|
+
export * from './notes.service';
|
|
14
|
+
import { NotesService } from './notes.service';
|
|
7
15
|
export * from './permissions.service';
|
|
8
16
|
import { PermissionsService } from './permissions.service';
|
|
9
17
|
export * from './summary.service';
|
|
10
18
|
import { SummaryService } from './summary.service';
|
|
11
19
|
export * from './user.service';
|
|
12
20
|
import { UserService } from './user.service';
|
|
13
|
-
export declare const APIS: (typeof AnalyticsService | typeof DcsService | typeof HealthService | typeof PermissionsService | typeof SummaryService | typeof UserService)[];
|
|
21
|
+
export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof SummaryService | typeof UserService)[];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Companies } from '../model/companies';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CompaniesService {
|
|
7
|
+
protected httpClient: HttpClient;
|
|
8
|
+
protected basePath: string;
|
|
9
|
+
defaultHeaders: HttpHeaders;
|
|
10
|
+
configuration: Configuration;
|
|
11
|
+
encoder: HttpParameterCodec;
|
|
12
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
13
|
+
private addToHttpParams;
|
|
14
|
+
private addToHttpParamsRecursive;
|
|
15
|
+
/**
|
|
16
|
+
* Getting clients
|
|
17
|
+
* @param $skip
|
|
18
|
+
* @param $top
|
|
19
|
+
* @param $orderby
|
|
20
|
+
* @param $filter
|
|
21
|
+
* @param $search
|
|
22
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
23
|
+
* @param reportProgress flag to report request and response progress.
|
|
24
|
+
*/
|
|
25
|
+
getClients($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
26
|
+
httpHeaderAccept?: 'application/json';
|
|
27
|
+
context?: HttpContext;
|
|
28
|
+
transferCache?: boolean;
|
|
29
|
+
}): Observable<Companies>;
|
|
30
|
+
getClients($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
31
|
+
httpHeaderAccept?: 'application/json';
|
|
32
|
+
context?: HttpContext;
|
|
33
|
+
transferCache?: boolean;
|
|
34
|
+
}): Observable<HttpResponse<Companies>>;
|
|
35
|
+
getClients($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
36
|
+
httpHeaderAccept?: 'application/json';
|
|
37
|
+
context?: HttpContext;
|
|
38
|
+
transferCache?: boolean;
|
|
39
|
+
}): Observable<HttpEvent<Companies>>;
|
|
40
|
+
/**
|
|
41
|
+
* Getting suppliers
|
|
42
|
+
* @param id
|
|
43
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
44
|
+
* @param reportProgress flag to report request and response progress.
|
|
45
|
+
*/
|
|
46
|
+
getSuppliers(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
47
|
+
httpHeaderAccept?: 'application/json';
|
|
48
|
+
context?: HttpContext;
|
|
49
|
+
transferCache?: boolean;
|
|
50
|
+
}): Observable<Companies>;
|
|
51
|
+
getSuppliers(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
52
|
+
httpHeaderAccept?: 'application/json';
|
|
53
|
+
context?: HttpContext;
|
|
54
|
+
transferCache?: boolean;
|
|
55
|
+
}): Observable<HttpResponse<Companies>>;
|
|
56
|
+
getSuppliers(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
57
|
+
httpHeaderAccept?: 'application/json';
|
|
58
|
+
context?: HttpContext;
|
|
59
|
+
transferCache?: boolean;
|
|
60
|
+
}): Observable<HttpEvent<Companies>>;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompaniesService, [null, { optional: true; }, { optional: true; }]>;
|
|
62
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CompaniesService>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Deliveries } from '../model/deliveries';
|
|
4
|
+
import { OrderStatus } from '../model/orderStatus';
|
|
5
|
+
import { Configuration } from '../configuration';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DeliveriesService {
|
|
8
|
+
protected httpClient: HttpClient;
|
|
9
|
+
protected basePath: string;
|
|
10
|
+
defaultHeaders: HttpHeaders;
|
|
11
|
+
configuration: Configuration;
|
|
12
|
+
encoder: HttpParameterCodec;
|
|
13
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
14
|
+
private addToHttpParams;
|
|
15
|
+
private addToHttpParamsRecursive;
|
|
16
|
+
/**
|
|
17
|
+
* Getting deliveries
|
|
18
|
+
* @param $skip
|
|
19
|
+
* @param $top
|
|
20
|
+
* @param $orderby
|
|
21
|
+
* @param $filter
|
|
22
|
+
* @param $search
|
|
23
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
24
|
+
* @param reportProgress flag to report request and response progress.
|
|
25
|
+
*/
|
|
26
|
+
getDeliveries($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
27
|
+
httpHeaderAccept?: 'application/json';
|
|
28
|
+
context?: HttpContext;
|
|
29
|
+
transferCache?: boolean;
|
|
30
|
+
}): Observable<Deliveries>;
|
|
31
|
+
getDeliveries($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
32
|
+
httpHeaderAccept?: 'application/json';
|
|
33
|
+
context?: HttpContext;
|
|
34
|
+
transferCache?: boolean;
|
|
35
|
+
}): Observable<HttpResponse<Deliveries>>;
|
|
36
|
+
getDeliveries($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
37
|
+
httpHeaderAccept?: 'application/json';
|
|
38
|
+
context?: HttpContext;
|
|
39
|
+
transferCache?: boolean;
|
|
40
|
+
}): Observable<HttpEvent<Deliveries>>;
|
|
41
|
+
/**
|
|
42
|
+
* Getting deliveries
|
|
43
|
+
* @param deliveryStatus
|
|
44
|
+
* @param $skip
|
|
45
|
+
* @param $top
|
|
46
|
+
* @param $orderby
|
|
47
|
+
* @param $filter
|
|
48
|
+
* @param $search
|
|
49
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
50
|
+
* @param reportProgress flag to report request and response progress.
|
|
51
|
+
*/
|
|
52
|
+
getDeliveriesByOrderStatus(deliveryStatus: OrderStatus, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
53
|
+
httpHeaderAccept?: 'application/json';
|
|
54
|
+
context?: HttpContext;
|
|
55
|
+
transferCache?: boolean;
|
|
56
|
+
}): Observable<Deliveries>;
|
|
57
|
+
getDeliveriesByOrderStatus(deliveryStatus: OrderStatus, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
58
|
+
httpHeaderAccept?: 'application/json';
|
|
59
|
+
context?: HttpContext;
|
|
60
|
+
transferCache?: boolean;
|
|
61
|
+
}): Observable<HttpResponse<Deliveries>>;
|
|
62
|
+
getDeliveriesByOrderStatus(deliveryStatus: OrderStatus, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
63
|
+
httpHeaderAccept?: 'application/json';
|
|
64
|
+
context?: HttpContext;
|
|
65
|
+
transferCache?: boolean;
|
|
66
|
+
}): Observable<HttpEvent<Deliveries>>;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeliveriesService, [null, { optional: true; }, { optional: true; }]>;
|
|
68
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DeliveriesService>;
|
|
69
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { DeliveryItems } from '../model/deliveryItems';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DeliveryItemsService {
|
|
7
|
+
protected httpClient: HttpClient;
|
|
8
|
+
protected basePath: string;
|
|
9
|
+
defaultHeaders: HttpHeaders;
|
|
10
|
+
configuration: Configuration;
|
|
11
|
+
encoder: HttpParameterCodec;
|
|
12
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
13
|
+
private addToHttpParams;
|
|
14
|
+
private addToHttpParamsRecursive;
|
|
15
|
+
/**
|
|
16
|
+
* Getting delivery items
|
|
17
|
+
* @param id
|
|
18
|
+
* @param $skip
|
|
19
|
+
* @param $top
|
|
20
|
+
* @param $orderby
|
|
21
|
+
* @param $filter
|
|
22
|
+
* @param $search
|
|
23
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
24
|
+
* @param reportProgress flag to report request and response progress.
|
|
25
|
+
*/
|
|
26
|
+
getDeliveryItems(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
27
|
+
httpHeaderAccept?: 'application/json';
|
|
28
|
+
context?: HttpContext;
|
|
29
|
+
transferCache?: boolean;
|
|
30
|
+
}): Observable<DeliveryItems>;
|
|
31
|
+
getDeliveryItems(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
32
|
+
httpHeaderAccept?: 'application/json';
|
|
33
|
+
context?: HttpContext;
|
|
34
|
+
transferCache?: boolean;
|
|
35
|
+
}): Observable<HttpResponse<DeliveryItems>>;
|
|
36
|
+
getDeliveryItems(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
37
|
+
httpHeaderAccept?: 'application/json';
|
|
38
|
+
context?: HttpContext;
|
|
39
|
+
transferCache?: boolean;
|
|
40
|
+
}): Observable<HttpEvent<DeliveryItems>>;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeliveryItemsService, [null, { optional: true; }, { optional: true; }]>;
|
|
42
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DeliveryItemsService>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Note } from '../model/note';
|
|
4
|
+
import { NoteCategory } from '../model/noteCategory';
|
|
5
|
+
import { NoteSourceType } from '../model/noteSourceType';
|
|
6
|
+
import { Notes } from '../model/notes';
|
|
7
|
+
import { Configuration } from '../configuration';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class NotesService {
|
|
10
|
+
protected httpClient: HttpClient;
|
|
11
|
+
protected basePath: string;
|
|
12
|
+
defaultHeaders: HttpHeaders;
|
|
13
|
+
configuration: Configuration;
|
|
14
|
+
encoder: HttpParameterCodec;
|
|
15
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
16
|
+
private addToHttpParams;
|
|
17
|
+
private addToHttpParamsRecursive;
|
|
18
|
+
/**
|
|
19
|
+
* Create new note
|
|
20
|
+
* @param note
|
|
21
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
22
|
+
* @param reportProgress flag to report request and response progress.
|
|
23
|
+
*/
|
|
24
|
+
createNote(note?: Note, observe?: 'body', reportProgress?: boolean, options?: {
|
|
25
|
+
httpHeaderAccept?: 'application/json';
|
|
26
|
+
context?: HttpContext;
|
|
27
|
+
transferCache?: boolean;
|
|
28
|
+
}): Observable<Note>;
|
|
29
|
+
createNote(note?: Note, observe?: 'response', reportProgress?: boolean, options?: {
|
|
30
|
+
httpHeaderAccept?: 'application/json';
|
|
31
|
+
context?: HttpContext;
|
|
32
|
+
transferCache?: boolean;
|
|
33
|
+
}): Observable<HttpResponse<Note>>;
|
|
34
|
+
createNote(note?: Note, observe?: 'events', reportProgress?: boolean, options?: {
|
|
35
|
+
httpHeaderAccept?: 'application/json';
|
|
36
|
+
context?: HttpContext;
|
|
37
|
+
transferCache?: boolean;
|
|
38
|
+
}): Observable<HttpEvent<Note>>;
|
|
39
|
+
/**
|
|
40
|
+
* Getting notes
|
|
41
|
+
* @param sourceId
|
|
42
|
+
* @param type
|
|
43
|
+
* @param $skip
|
|
44
|
+
* @param $top
|
|
45
|
+
* @param $orderby
|
|
46
|
+
* @param $filter
|
|
47
|
+
* @param $search
|
|
48
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
49
|
+
* @param reportProgress flag to report request and response progress.
|
|
50
|
+
*/
|
|
51
|
+
getNotes(sourceId: string, type: NoteSourceType, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
52
|
+
httpHeaderAccept?: 'application/json';
|
|
53
|
+
context?: HttpContext;
|
|
54
|
+
transferCache?: boolean;
|
|
55
|
+
}): Observable<Notes>;
|
|
56
|
+
getNotes(sourceId: string, type: NoteSourceType, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
57
|
+
httpHeaderAccept?: 'application/json';
|
|
58
|
+
context?: HttpContext;
|
|
59
|
+
transferCache?: boolean;
|
|
60
|
+
}): Observable<HttpResponse<Notes>>;
|
|
61
|
+
getNotes(sourceId: string, type: NoteSourceType, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
62
|
+
httpHeaderAccept?: 'application/json';
|
|
63
|
+
context?: HttpContext;
|
|
64
|
+
transferCache?: boolean;
|
|
65
|
+
}): Observable<HttpEvent<Notes>>;
|
|
66
|
+
/**
|
|
67
|
+
* Getting notes by category
|
|
68
|
+
* @param sourceId
|
|
69
|
+
* @param type
|
|
70
|
+
* @param category
|
|
71
|
+
* @param $skip
|
|
72
|
+
* @param $top
|
|
73
|
+
* @param $orderby
|
|
74
|
+
* @param $filter
|
|
75
|
+
* @param $search
|
|
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
|
+
getNotesByCategory(sourceId: string, type: NoteSourceType, category: NoteCategory, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
80
|
+
httpHeaderAccept?: 'application/json';
|
|
81
|
+
context?: HttpContext;
|
|
82
|
+
transferCache?: boolean;
|
|
83
|
+
}): Observable<Notes>;
|
|
84
|
+
getNotesByCategory(sourceId: string, type: NoteSourceType, category: NoteCategory, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
85
|
+
httpHeaderAccept?: 'application/json';
|
|
86
|
+
context?: HttpContext;
|
|
87
|
+
transferCache?: boolean;
|
|
88
|
+
}): Observable<HttpResponse<Notes>>;
|
|
89
|
+
getNotesByCategory(sourceId: string, type: NoteSourceType, category: NoteCategory, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
90
|
+
httpHeaderAccept?: 'application/json';
|
|
91
|
+
context?: HttpContext;
|
|
92
|
+
transferCache?: boolean;
|
|
93
|
+
}): Observable<HttpEvent<Notes>>;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotesService, [null, { optional: true; }, { optional: true; }]>;
|
|
95
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotesService>;
|
|
96
|
+
}
|