@indigina/dcm-api 0.0.42 → 0.0.43
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/fesm2022/indigina-dcm-api.mjs +37 -93
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/approvalShipmentTimelineItem.d.ts +0 -1
- package/model/approvalTypes.d.ts +0 -1
- package/model/auditLog.d.ts +0 -1
- package/model/auditLogs.d.ts +0 -1
- package/model/bookingsCount.d.ts +0 -1
- package/model/column.d.ts +0 -1
- package/model/commandStatusResult.d.ts +0 -1
- package/model/company.d.ts +0 -1
- package/model/consignee.d.ts +0 -1
- package/model/containerTypes.d.ts +0 -1
- package/model/containersCount.d.ts +0 -1
- package/model/containersToDeliverCount.d.ts +0 -1
- package/model/country.d.ts +0 -1
- package/model/currentUser.d.ts +0 -1
- package/model/dashboardReportGroup.d.ts +0 -1
- package/model/dashboardReports.d.ts +0 -1
- package/model/deliveryShipmentTimelineItem.d.ts +0 -1
- package/model/departmentShipment.d.ts +0 -1
- package/model/document.d.ts +0 -1
- package/model/documentType.d.ts +0 -1
- package/model/documents.d.ts +0 -1
- package/model/embedReport.d.ts +0 -1
- package/model/embedReportInfoModel.d.ts +0 -1
- package/model/embedTokenDto.d.ts +0 -1
- package/model/entityList.d.ts +0 -1
- package/model/entityState.d.ts +0 -1
- package/model/failures.d.ts +0 -1
- package/model/journeySegmentTypes.d.ts +0 -1
- package/model/modelError.d.ts +0 -1
- package/model/note.d.ts +0 -1
- package/model/noteSourceTypes.d.ts +0 -1
- package/model/noteView.d.ts +0 -1
- package/model/notes.d.ts +0 -1
- package/model/pendingMessagesCount.d.ts +0 -1
- package/model/port.d.ts +0 -1
- package/model/powerBiTenant.d.ts +0 -1
- package/model/recordTypes.d.ts +0 -1
- package/model/setNewFeaturesVisibilityCommand.d.ts +0 -1
- package/model/settingValue.d.ts +0 -1
- package/model/settingView.d.ts +0 -1
- package/model/shipment.d.ts +0 -1
- package/model/shipmentAirRouting.d.ts +0 -1
- package/model/shipmentApproval.d.ts +0 -1
- package/model/shipmentApprovalType.d.ts +0 -1
- package/model/shipmentApprovals.d.ts +0 -1
- package/model/shipmentContainer.d.ts +0 -1
- package/model/shipmentContainers.d.ts +0 -1
- package/model/shipmentItem.d.ts +0 -1
- package/model/shipmentItems.d.ts +0 -1
- package/model/shipmentProduct.d.ts +0 -1
- package/model/shipmentProductTotals.d.ts +0 -1
- package/model/shipmentProducts.d.ts +0 -1
- package/model/shipmentRoadRouting.d.ts +0 -1
- package/model/shipmentRouting.d.ts +0 -1
- package/model/shipmentRoutingsInner.d.ts +0 -1
- package/model/shipmentSeaRouting.d.ts +0 -1
- package/model/shipmentState.d.ts +0 -1
- package/model/shipmentSummary.d.ts +0 -1
- package/model/shipmentTerm.d.ts +0 -1
- package/model/shipmentTimelineItem.d.ts +0 -1
- package/model/shipmentType.d.ts +0 -1
- package/model/shipments.d.ts +0 -1
- package/model/shipmentsApprovalCount.d.ts +0 -1
- package/model/shipmentsCount.d.ts +0 -1
- package/model/shipmentsInTransitCount.d.ts +0 -1
- package/model/summaryDashboardReports.d.ts +0 -1
- package/model/supplier.d.ts +0 -1
- package/model/timelineEventStates.d.ts +0 -1
- package/model/timelineEventTypes.d.ts +0 -1
- package/model/transportCarrier.d.ts +0 -1
- package/model/transportLocation.d.ts +0 -1
- package/model/transportationShipmentTimelineItem.d.ts +0 -1
- package/model/user.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/model/workflowArtifacts.d.ts +0 -1
- package/package.json +2 -4
- package/esm2022/api/api.mjs +0 -24
- package/esm2022/api/auditLogs.service.mjs +0 -165
- package/esm2022/api/bookings.service.mjs +0 -142
- package/esm2022/api/containers.service.mjs +0 -470
- package/esm2022/api/documents.service.mjs +0 -165
- package/esm2022/api/health.service.mjs +0 -143
- package/esm2022/api/notes.service.mjs +0 -218
- package/esm2022/api/permissions.service.mjs +0 -142
- package/esm2022/api/reports.service.mjs +0 -186
- package/esm2022/api/settings.service.mjs +0 -394
- package/esm2022/api/shipments.service.mjs +0 -917
- package/esm2022/api/user.service.mjs +0 -327
- 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-dcm-api.mjs +0 -5
- package/esm2022/model/approvalShipmentTimelineItem.mjs +0 -2
- package/esm2022/model/approvalTypes.mjs +0 -17
- package/esm2022/model/auditLog.mjs +0 -2
- package/esm2022/model/auditLogs.mjs +0 -2
- package/esm2022/model/bookingsCount.mjs +0 -12
- package/esm2022/model/column.mjs +0 -2
- package/esm2022/model/commandStatusResult.mjs +0 -12
- package/esm2022/model/company.mjs +0 -12
- package/esm2022/model/consignee.mjs +0 -12
- package/esm2022/model/containerTypes.mjs +0 -16
- package/esm2022/model/containersCount.mjs +0 -12
- package/esm2022/model/containersToDeliverCount.mjs +0 -12
- package/esm2022/model/country.mjs +0 -12
- package/esm2022/model/currentUser.mjs +0 -12
- package/esm2022/model/dashboardReportGroup.mjs +0 -2
- package/esm2022/model/dashboardReports.mjs +0 -2
- package/esm2022/model/deliveryShipmentTimelineItem.mjs +0 -2
- package/esm2022/model/departmentShipment.mjs +0 -12
- package/esm2022/model/document.mjs +0 -2
- package/esm2022/model/documentType.mjs +0 -26
- package/esm2022/model/documents.mjs +0 -2
- package/esm2022/model/embedReport.mjs +0 -2
- package/esm2022/model/embedReportInfoModel.mjs +0 -2
- package/esm2022/model/embedTokenDto.mjs +0 -12
- package/esm2022/model/entityList.mjs +0 -12
- package/esm2022/model/entityState.mjs +0 -18
- package/esm2022/model/failures.mjs +0 -12
- package/esm2022/model/journeySegmentTypes.mjs +0 -15
- package/esm2022/model/modelError.mjs +0 -2
- package/esm2022/model/models.mjs +0 -79
- package/esm2022/model/note.mjs +0 -12
- package/esm2022/model/noteSourceTypes.mjs +0 -14
- package/esm2022/model/noteView.mjs +0 -12
- package/esm2022/model/notes.mjs +0 -2
- package/esm2022/model/pendingMessagesCount.mjs +0 -12
- package/esm2022/model/port.mjs +0 -2
- package/esm2022/model/powerBiTenant.mjs +0 -15
- package/esm2022/model/recordTypes.mjs +0 -14
- package/esm2022/model/setNewFeaturesVisibilityCommand.mjs +0 -12
- package/esm2022/model/settingValue.mjs +0 -12
- package/esm2022/model/settingView.mjs +0 -12
- package/esm2022/model/shipment.mjs +0 -2
- package/esm2022/model/shipmentAirRouting.mjs +0 -2
- package/esm2022/model/shipmentApproval.mjs +0 -2
- package/esm2022/model/shipmentApprovalType.mjs +0 -15
- package/esm2022/model/shipmentApprovals.mjs +0 -2
- package/esm2022/model/shipmentContainer.mjs +0 -2
- package/esm2022/model/shipmentContainers.mjs +0 -2
- package/esm2022/model/shipmentItem.mjs +0 -12
- package/esm2022/model/shipmentItems.mjs +0 -2
- package/esm2022/model/shipmentProduct.mjs +0 -12
- package/esm2022/model/shipmentProductTotals.mjs +0 -12
- package/esm2022/model/shipmentProducts.mjs +0 -2
- package/esm2022/model/shipmentRoadRouting.mjs +0 -2
- package/esm2022/model/shipmentRouting.mjs +0 -2
- package/esm2022/model/shipmentRoutingsInner.mjs +0 -2
- package/esm2022/model/shipmentSeaRouting.mjs +0 -2
- package/esm2022/model/shipmentState.mjs +0 -22
- package/esm2022/model/shipmentSummary.mjs +0 -2
- package/esm2022/model/shipmentTerm.mjs +0 -27
- package/esm2022/model/shipmentTimelineInner.mjs +0 -2
- package/esm2022/model/shipmentTimelineItem.mjs +0 -2
- package/esm2022/model/shipmentType.mjs +0 -16
- package/esm2022/model/shipments.mjs +0 -2
- package/esm2022/model/shipmentsApprovalCount.mjs +0 -12
- package/esm2022/model/shipmentsCount.mjs +0 -12
- package/esm2022/model/shipmentsInTransitCount.mjs +0 -12
- package/esm2022/model/summaryDashboardReports.mjs +0 -2
- package/esm2022/model/supplier.mjs +0 -12
- package/esm2022/model/timelineEventStates.mjs +0 -17
- package/esm2022/model/timelineEventTypes.mjs +0 -22
- package/esm2022/model/transportCarrier.mjs +0 -12
- package/esm2022/model/transportLocation.mjs +0 -12
- package/esm2022/model/transportationShipmentTimelineItem.mjs +0 -2
- package/esm2022/model/user.mjs +0 -12
- package/esm2022/model/userApplication.mjs +0 -12
- package/esm2022/model/userApplications.mjs +0 -2
- package/esm2022/model/userPermissions.mjs +0 -12
- package/esm2022/model/workflowArtifacts.mjs +0 -19
- package/esm2022/param.mjs +0 -2
- package/esm2022/variables.mjs +0 -9
package/README.md
CHANGED
|
@@ -1,32 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
# @indigina/dcm-api@0.0.43
|
|
2
|
+
|
|
3
|
+
DCM 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/dcm-api@0.0.
|
|
26
|
+
```console
|
|
27
|
+
npm install @indigina/dcm-api@0.0.43 --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/dcm-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/dcm-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/dcm-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/dcm-api';
|
|
99
102
|
|
|
@@ -118,7 +121,7 @@ import { ApiModule, Configuration } from '@indigina/dcm-api';
|
|
|
118
121
|
export class AppModule {}
|
|
119
122
|
```
|
|
120
123
|
|
|
121
|
-
```
|
|
124
|
+
```typescript
|
|
122
125
|
import { DefaultApi } from '@indigina/dcm-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/dcm-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/dcm-api';
|
|
170
176
|
|
|
171
177
|
@NgModule({
|
|
@@ -177,11 +183,11 @@ import { BASE_PATH } from '@indigina/dcm-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/dcm-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),
|