@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.
Files changed (179) hide show
  1. package/README.md +35 -27
  2. package/fesm2022/indigina-dcm-api.mjs +37 -93
  3. package/fesm2022/indigina-dcm-api.mjs.map +1 -1
  4. package/model/approvalShipmentTimelineItem.d.ts +0 -1
  5. package/model/approvalTypes.d.ts +0 -1
  6. package/model/auditLog.d.ts +0 -1
  7. package/model/auditLogs.d.ts +0 -1
  8. package/model/bookingsCount.d.ts +0 -1
  9. package/model/column.d.ts +0 -1
  10. package/model/commandStatusResult.d.ts +0 -1
  11. package/model/company.d.ts +0 -1
  12. package/model/consignee.d.ts +0 -1
  13. package/model/containerTypes.d.ts +0 -1
  14. package/model/containersCount.d.ts +0 -1
  15. package/model/containersToDeliverCount.d.ts +0 -1
  16. package/model/country.d.ts +0 -1
  17. package/model/currentUser.d.ts +0 -1
  18. package/model/dashboardReportGroup.d.ts +0 -1
  19. package/model/dashboardReports.d.ts +0 -1
  20. package/model/deliveryShipmentTimelineItem.d.ts +0 -1
  21. package/model/departmentShipment.d.ts +0 -1
  22. package/model/document.d.ts +0 -1
  23. package/model/documentType.d.ts +0 -1
  24. package/model/documents.d.ts +0 -1
  25. package/model/embedReport.d.ts +0 -1
  26. package/model/embedReportInfoModel.d.ts +0 -1
  27. package/model/embedTokenDto.d.ts +0 -1
  28. package/model/entityList.d.ts +0 -1
  29. package/model/entityState.d.ts +0 -1
  30. package/model/failures.d.ts +0 -1
  31. package/model/journeySegmentTypes.d.ts +0 -1
  32. package/model/modelError.d.ts +0 -1
  33. package/model/note.d.ts +0 -1
  34. package/model/noteSourceTypes.d.ts +0 -1
  35. package/model/noteView.d.ts +0 -1
  36. package/model/notes.d.ts +0 -1
  37. package/model/pendingMessagesCount.d.ts +0 -1
  38. package/model/port.d.ts +0 -1
  39. package/model/powerBiTenant.d.ts +0 -1
  40. package/model/recordTypes.d.ts +0 -1
  41. package/model/setNewFeaturesVisibilityCommand.d.ts +0 -1
  42. package/model/settingValue.d.ts +0 -1
  43. package/model/settingView.d.ts +0 -1
  44. package/model/shipment.d.ts +0 -1
  45. package/model/shipmentAirRouting.d.ts +0 -1
  46. package/model/shipmentApproval.d.ts +0 -1
  47. package/model/shipmentApprovalType.d.ts +0 -1
  48. package/model/shipmentApprovals.d.ts +0 -1
  49. package/model/shipmentContainer.d.ts +0 -1
  50. package/model/shipmentContainers.d.ts +0 -1
  51. package/model/shipmentItem.d.ts +0 -1
  52. package/model/shipmentItems.d.ts +0 -1
  53. package/model/shipmentProduct.d.ts +0 -1
  54. package/model/shipmentProductTotals.d.ts +0 -1
  55. package/model/shipmentProducts.d.ts +0 -1
  56. package/model/shipmentRoadRouting.d.ts +0 -1
  57. package/model/shipmentRouting.d.ts +0 -1
  58. package/model/shipmentRoutingsInner.d.ts +0 -1
  59. package/model/shipmentSeaRouting.d.ts +0 -1
  60. package/model/shipmentState.d.ts +0 -1
  61. package/model/shipmentSummary.d.ts +0 -1
  62. package/model/shipmentTerm.d.ts +0 -1
  63. package/model/shipmentTimelineItem.d.ts +0 -1
  64. package/model/shipmentType.d.ts +0 -1
  65. package/model/shipments.d.ts +0 -1
  66. package/model/shipmentsApprovalCount.d.ts +0 -1
  67. package/model/shipmentsCount.d.ts +0 -1
  68. package/model/shipmentsInTransitCount.d.ts +0 -1
  69. package/model/summaryDashboardReports.d.ts +0 -1
  70. package/model/supplier.d.ts +0 -1
  71. package/model/timelineEventStates.d.ts +0 -1
  72. package/model/timelineEventTypes.d.ts +0 -1
  73. package/model/transportCarrier.d.ts +0 -1
  74. package/model/transportLocation.d.ts +0 -1
  75. package/model/transportationShipmentTimelineItem.d.ts +0 -1
  76. package/model/user.d.ts +0 -1
  77. package/model/userApplication.d.ts +0 -1
  78. package/model/userApplications.d.ts +0 -1
  79. package/model/userPermissions.d.ts +0 -1
  80. package/model/workflowArtifacts.d.ts +0 -1
  81. package/package.json +2 -4
  82. package/esm2022/api/api.mjs +0 -24
  83. package/esm2022/api/auditLogs.service.mjs +0 -165
  84. package/esm2022/api/bookings.service.mjs +0 -142
  85. package/esm2022/api/containers.service.mjs +0 -470
  86. package/esm2022/api/documents.service.mjs +0 -165
  87. package/esm2022/api/health.service.mjs +0 -143
  88. package/esm2022/api/notes.service.mjs +0 -218
  89. package/esm2022/api/permissions.service.mjs +0 -142
  90. package/esm2022/api/reports.service.mjs +0 -186
  91. package/esm2022/api/settings.service.mjs +0 -394
  92. package/esm2022/api/shipments.service.mjs +0 -917
  93. package/esm2022/api/user.service.mjs +0 -327
  94. package/esm2022/api.module.mjs +0 -40
  95. package/esm2022/configuration.mjs +0 -121
  96. package/esm2022/encoder.mjs +0 -19
  97. package/esm2022/index.mjs +0 -7
  98. package/esm2022/indigina-dcm-api.mjs +0 -5
  99. package/esm2022/model/approvalShipmentTimelineItem.mjs +0 -2
  100. package/esm2022/model/approvalTypes.mjs +0 -17
  101. package/esm2022/model/auditLog.mjs +0 -2
  102. package/esm2022/model/auditLogs.mjs +0 -2
  103. package/esm2022/model/bookingsCount.mjs +0 -12
  104. package/esm2022/model/column.mjs +0 -2
  105. package/esm2022/model/commandStatusResult.mjs +0 -12
  106. package/esm2022/model/company.mjs +0 -12
  107. package/esm2022/model/consignee.mjs +0 -12
  108. package/esm2022/model/containerTypes.mjs +0 -16
  109. package/esm2022/model/containersCount.mjs +0 -12
  110. package/esm2022/model/containersToDeliverCount.mjs +0 -12
  111. package/esm2022/model/country.mjs +0 -12
  112. package/esm2022/model/currentUser.mjs +0 -12
  113. package/esm2022/model/dashboardReportGroup.mjs +0 -2
  114. package/esm2022/model/dashboardReports.mjs +0 -2
  115. package/esm2022/model/deliveryShipmentTimelineItem.mjs +0 -2
  116. package/esm2022/model/departmentShipment.mjs +0 -12
  117. package/esm2022/model/document.mjs +0 -2
  118. package/esm2022/model/documentType.mjs +0 -26
  119. package/esm2022/model/documents.mjs +0 -2
  120. package/esm2022/model/embedReport.mjs +0 -2
  121. package/esm2022/model/embedReportInfoModel.mjs +0 -2
  122. package/esm2022/model/embedTokenDto.mjs +0 -12
  123. package/esm2022/model/entityList.mjs +0 -12
  124. package/esm2022/model/entityState.mjs +0 -18
  125. package/esm2022/model/failures.mjs +0 -12
  126. package/esm2022/model/journeySegmentTypes.mjs +0 -15
  127. package/esm2022/model/modelError.mjs +0 -2
  128. package/esm2022/model/models.mjs +0 -79
  129. package/esm2022/model/note.mjs +0 -12
  130. package/esm2022/model/noteSourceTypes.mjs +0 -14
  131. package/esm2022/model/noteView.mjs +0 -12
  132. package/esm2022/model/notes.mjs +0 -2
  133. package/esm2022/model/pendingMessagesCount.mjs +0 -12
  134. package/esm2022/model/port.mjs +0 -2
  135. package/esm2022/model/powerBiTenant.mjs +0 -15
  136. package/esm2022/model/recordTypes.mjs +0 -14
  137. package/esm2022/model/setNewFeaturesVisibilityCommand.mjs +0 -12
  138. package/esm2022/model/settingValue.mjs +0 -12
  139. package/esm2022/model/settingView.mjs +0 -12
  140. package/esm2022/model/shipment.mjs +0 -2
  141. package/esm2022/model/shipmentAirRouting.mjs +0 -2
  142. package/esm2022/model/shipmentApproval.mjs +0 -2
  143. package/esm2022/model/shipmentApprovalType.mjs +0 -15
  144. package/esm2022/model/shipmentApprovals.mjs +0 -2
  145. package/esm2022/model/shipmentContainer.mjs +0 -2
  146. package/esm2022/model/shipmentContainers.mjs +0 -2
  147. package/esm2022/model/shipmentItem.mjs +0 -12
  148. package/esm2022/model/shipmentItems.mjs +0 -2
  149. package/esm2022/model/shipmentProduct.mjs +0 -12
  150. package/esm2022/model/shipmentProductTotals.mjs +0 -12
  151. package/esm2022/model/shipmentProducts.mjs +0 -2
  152. package/esm2022/model/shipmentRoadRouting.mjs +0 -2
  153. package/esm2022/model/shipmentRouting.mjs +0 -2
  154. package/esm2022/model/shipmentRoutingsInner.mjs +0 -2
  155. package/esm2022/model/shipmentSeaRouting.mjs +0 -2
  156. package/esm2022/model/shipmentState.mjs +0 -22
  157. package/esm2022/model/shipmentSummary.mjs +0 -2
  158. package/esm2022/model/shipmentTerm.mjs +0 -27
  159. package/esm2022/model/shipmentTimelineInner.mjs +0 -2
  160. package/esm2022/model/shipmentTimelineItem.mjs +0 -2
  161. package/esm2022/model/shipmentType.mjs +0 -16
  162. package/esm2022/model/shipments.mjs +0 -2
  163. package/esm2022/model/shipmentsApprovalCount.mjs +0 -12
  164. package/esm2022/model/shipmentsCount.mjs +0 -12
  165. package/esm2022/model/shipmentsInTransitCount.mjs +0 -12
  166. package/esm2022/model/summaryDashboardReports.mjs +0 -2
  167. package/esm2022/model/supplier.mjs +0 -12
  168. package/esm2022/model/timelineEventStates.mjs +0 -17
  169. package/esm2022/model/timelineEventTypes.mjs +0 -22
  170. package/esm2022/model/transportCarrier.mjs +0 -12
  171. package/esm2022/model/transportLocation.mjs +0 -12
  172. package/esm2022/model/transportationShipmentTimelineItem.mjs +0 -2
  173. package/esm2022/model/user.mjs +0 -12
  174. package/esm2022/model/userApplication.mjs +0 -12
  175. package/esm2022/model/userApplications.mjs +0 -2
  176. package/esm2022/model/userPermissions.mjs +0 -12
  177. package/esm2022/model/workflowArtifacts.mjs +0 -19
  178. package/esm2022/param.mjs +0 -2
  179. package/esm2022/variables.mjs +0 -9
package/README.md CHANGED
@@ -1,32 +1,35 @@
1
- ## @indigina/dcm-api@0.0.42
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
- ### Building
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
- ### publishing
16
+ ## Publishing
14
17
 
15
- First build the package then run ```npm publish dist``` (don't forget to specify the `dist` folder!)
18
+ First build the package then run `npm publish dist` (don't forget to specify the `dist` folder!)
16
19
 
17
- ### consuming
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.42 --save
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
- #### Using multiple OpenAPI files / APIs / ApiModules
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),