@indigina/wms-api 0.0.81 → 0.0.82
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/fesm2022/indigina-wms-api.mjs +972 -3144
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/index.d.ts +3781 -6
- package/package.json +2 -2
- package/api/analytics.service.d.ts +0 -210
- package/api/api.d.ts +0 -45
- package/api/carrierProviderIntegrations.service.d.ts +0 -42
- package/api/companies.service.d.ts +0 -63
- package/api/dcs.service.d.ts +0 -161
- package/api/deliveries.service.d.ts +0 -287
- package/api/deliveryItems.service.d.ts +0 -130
- package/api/dispatchItems.service.d.ts +0 -43
- package/api/dispatches.service.d.ts +0 -178
- package/api/health.service.d.ts +0 -36
- package/api/notes.service.d.ts +0 -96
- package/api/permissions.service.d.ts +0 -37
- package/api/productMasters.service.d.ts +0 -42
- package/api/productQuantities.service.d.ts +0 -42
- package/api/reasons.service.d.ts +0 -42
- package/api/replenishment.service.d.ts +0 -42
- package/api/settings.service.d.ts +0 -147
- package/api/summary.service.d.ts +0 -38
- package/api/taskCompletionTime.service.d.ts +0 -128
- package/api/taskOperations.service.d.ts +0 -128
- package/api/taskUserRecords.service.d.ts +0 -201
- package/api/user.service.d.ts +0 -103
- package/api/usersInternal.service.d.ts +0 -42
- package/api.module.d.ts +0 -11
- package/configuration.d.ts +0 -104
- package/encoder.d.ts +0 -11
- package/model/access.d.ts +0 -14
- package/model/applicationSetting.d.ts +0 -14
- package/model/carrierProviderIntegration.d.ts +0 -18
- package/model/carrierProviderIntegrations.d.ts +0 -14
- package/model/commandStatusResult.d.ts +0 -12
- package/model/companies.d.ts +0 -14
- package/model/company.d.ts +0 -14
- package/model/countingSummary.d.ts +0 -16
- package/model/currentUser.d.ts +0 -24
- package/model/dc.d.ts +0 -16
- package/model/dcs.d.ts +0 -14
- package/model/deliveries.d.ts +0 -14
- package/model/delivery.d.ts +0 -37
- package/model/deliveryGridView.d.ts +0 -44
- package/model/deliveryItem.d.ts +0 -31
- package/model/deliveryItemView.d.ts +0 -29
- package/model/deliveryItems.d.ts +0 -14
- package/model/deliverySummary.d.ts +0 -36
- package/model/deliveryType.d.ts +0 -17
- package/model/deliveryView.d.ts +0 -32
- package/model/deviceType.d.ts +0 -15
- package/model/dispatch.d.ts +0 -85
- package/model/dispatchGridView.d.ts +0 -60
- package/model/dispatchItemView.d.ts +0 -32
- package/model/dispatchItems.d.ts +0 -14
- package/model/dispatchSummary.d.ts +0 -17
- package/model/dispatchSummaryView.d.ts +0 -86
- package/model/dispatchView.d.ts +0 -53
- package/model/dispatches.d.ts +0 -14
- package/model/embedReport.d.ts +0 -18
- package/model/embedTokenDto.d.ts +0 -13
- package/model/entityList.d.ts +0 -13
- package/model/failures.d.ts +0 -16
- package/model/group.d.ts +0 -20
- package/model/modelError.d.ts +0 -15
- package/model/models.d.ts +0 -75
- package/model/note.d.ts +0 -20
- package/model/noteCategory.d.ts +0 -16
- package/model/noteSourceType.d.ts +0 -14
- package/model/noteView.d.ts +0 -16
- package/model/notes.d.ts +0 -14
- package/model/orderStatus.d.ts +0 -30
- package/model/orderType.d.ts +0 -20
- package/model/packingProcesses.d.ts +0 -20
- package/model/pickingProcesses.d.ts +0 -20
- package/model/productMaster.d.ts +0 -20
- package/model/productMasters.d.ts +0 -14
- package/model/productQuantities.d.ts +0 -14
- package/model/productQuantity.d.ts +0 -14
- package/model/qcType.d.ts +0 -13
- package/model/reason.d.ts +0 -17
- package/model/reasonType.d.ts +0 -14
- package/model/reasons.d.ts +0 -14
- package/model/receivingSummary.d.ts +0 -16
- package/model/recordType.d.ts +0 -14
- package/model/replenishmentAccessGridView.d.ts +0 -18
- package/model/replenishmentAccessView.d.ts +0 -14
- package/model/replenishmentSummary.d.ts +0 -16
- package/model/report.d.ts +0 -26
- package/model/setNewFeaturesVisibilityCommand.d.ts +0 -12
- package/model/settingValue.d.ts +0 -13
- package/model/settingView.d.ts +0 -14
- package/model/taskCompletionTime.d.ts +0 -16
- package/model/taskCompletionTimes.d.ts +0 -14
- package/model/taskOperation.d.ts +0 -18
- package/model/taskOperations.d.ts +0 -14
- package/model/taskUserRecord.d.ts +0 -24
- package/model/taskUserRecordSelf.d.ts +0 -17
- package/model/taskUserRecordView.d.ts +0 -29
- package/model/taskUserRecords.d.ts +0 -14
- package/model/userApplication.d.ts +0 -13
- package/model/userApplications.d.ts +0 -13
- package/model/userCompanyType.d.ts +0 -22
- package/model/userInfo.d.ts +0 -14
- package/model/userInfos.d.ts +0 -14
- package/model/userPermissions.d.ts +0 -12
- package/param.d.ts +0 -37
- package/variables.d.ts +0 -8
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/wms-api@0.0.
|
|
1
|
+
# @indigina/wms-api@0.0.82
|
|
2
2
|
|
|
3
3
|
WMS API Client for Angular applications
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Navigate to the folder of your consuming project and run one of next commands.
|
|
|
24
24
|
_published:_
|
|
25
25
|
|
|
26
26
|
```console
|
|
27
|
-
npm install @indigina/wms-api@0.0.
|
|
27
|
+
npm install @indigina/wms-api@0.0.82 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -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 '@indigina/wms-api';
|
|
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 '@indigina/wms-api';
|
|
98
65
|
|
|
99
|
-
|
|
100
|
-
// configuring providers with an authentication service that manages your access tokens
|
|
101
|
-
import { ApiModule, Configuration } from '@indigina/wms-api';
|
|
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 '@indigina/wms-api';
|
|
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 '@indigina/wms-api';
|
|
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 '@indigina/wms-api';
|
|
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 '@indigina/wms-api';
|
|
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
|