@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.
Files changed (109) hide show
  1. package/README.md +75 -126
  2. package/fesm2022/indigina-wms-api.mjs +972 -3144
  3. package/fesm2022/indigina-wms-api.mjs.map +1 -1
  4. package/index.d.ts +3781 -6
  5. package/package.json +2 -2
  6. package/api/analytics.service.d.ts +0 -210
  7. package/api/api.d.ts +0 -45
  8. package/api/carrierProviderIntegrations.service.d.ts +0 -42
  9. package/api/companies.service.d.ts +0 -63
  10. package/api/dcs.service.d.ts +0 -161
  11. package/api/deliveries.service.d.ts +0 -287
  12. package/api/deliveryItems.service.d.ts +0 -130
  13. package/api/dispatchItems.service.d.ts +0 -43
  14. package/api/dispatches.service.d.ts +0 -178
  15. package/api/health.service.d.ts +0 -36
  16. package/api/notes.service.d.ts +0 -96
  17. package/api/permissions.service.d.ts +0 -37
  18. package/api/productMasters.service.d.ts +0 -42
  19. package/api/productQuantities.service.d.ts +0 -42
  20. package/api/reasons.service.d.ts +0 -42
  21. package/api/replenishment.service.d.ts +0 -42
  22. package/api/settings.service.d.ts +0 -147
  23. package/api/summary.service.d.ts +0 -38
  24. package/api/taskCompletionTime.service.d.ts +0 -128
  25. package/api/taskOperations.service.d.ts +0 -128
  26. package/api/taskUserRecords.service.d.ts +0 -201
  27. package/api/user.service.d.ts +0 -103
  28. package/api/usersInternal.service.d.ts +0 -42
  29. package/api.module.d.ts +0 -11
  30. package/configuration.d.ts +0 -104
  31. package/encoder.d.ts +0 -11
  32. package/model/access.d.ts +0 -14
  33. package/model/applicationSetting.d.ts +0 -14
  34. package/model/carrierProviderIntegration.d.ts +0 -18
  35. package/model/carrierProviderIntegrations.d.ts +0 -14
  36. package/model/commandStatusResult.d.ts +0 -12
  37. package/model/companies.d.ts +0 -14
  38. package/model/company.d.ts +0 -14
  39. package/model/countingSummary.d.ts +0 -16
  40. package/model/currentUser.d.ts +0 -24
  41. package/model/dc.d.ts +0 -16
  42. package/model/dcs.d.ts +0 -14
  43. package/model/deliveries.d.ts +0 -14
  44. package/model/delivery.d.ts +0 -37
  45. package/model/deliveryGridView.d.ts +0 -44
  46. package/model/deliveryItem.d.ts +0 -31
  47. package/model/deliveryItemView.d.ts +0 -29
  48. package/model/deliveryItems.d.ts +0 -14
  49. package/model/deliverySummary.d.ts +0 -36
  50. package/model/deliveryType.d.ts +0 -17
  51. package/model/deliveryView.d.ts +0 -32
  52. package/model/deviceType.d.ts +0 -15
  53. package/model/dispatch.d.ts +0 -85
  54. package/model/dispatchGridView.d.ts +0 -60
  55. package/model/dispatchItemView.d.ts +0 -32
  56. package/model/dispatchItems.d.ts +0 -14
  57. package/model/dispatchSummary.d.ts +0 -17
  58. package/model/dispatchSummaryView.d.ts +0 -86
  59. package/model/dispatchView.d.ts +0 -53
  60. package/model/dispatches.d.ts +0 -14
  61. package/model/embedReport.d.ts +0 -18
  62. package/model/embedTokenDto.d.ts +0 -13
  63. package/model/entityList.d.ts +0 -13
  64. package/model/failures.d.ts +0 -16
  65. package/model/group.d.ts +0 -20
  66. package/model/modelError.d.ts +0 -15
  67. package/model/models.d.ts +0 -75
  68. package/model/note.d.ts +0 -20
  69. package/model/noteCategory.d.ts +0 -16
  70. package/model/noteSourceType.d.ts +0 -14
  71. package/model/noteView.d.ts +0 -16
  72. package/model/notes.d.ts +0 -14
  73. package/model/orderStatus.d.ts +0 -30
  74. package/model/orderType.d.ts +0 -20
  75. package/model/packingProcesses.d.ts +0 -20
  76. package/model/pickingProcesses.d.ts +0 -20
  77. package/model/productMaster.d.ts +0 -20
  78. package/model/productMasters.d.ts +0 -14
  79. package/model/productQuantities.d.ts +0 -14
  80. package/model/productQuantity.d.ts +0 -14
  81. package/model/qcType.d.ts +0 -13
  82. package/model/reason.d.ts +0 -17
  83. package/model/reasonType.d.ts +0 -14
  84. package/model/reasons.d.ts +0 -14
  85. package/model/receivingSummary.d.ts +0 -16
  86. package/model/recordType.d.ts +0 -14
  87. package/model/replenishmentAccessGridView.d.ts +0 -18
  88. package/model/replenishmentAccessView.d.ts +0 -14
  89. package/model/replenishmentSummary.d.ts +0 -16
  90. package/model/report.d.ts +0 -26
  91. package/model/setNewFeaturesVisibilityCommand.d.ts +0 -12
  92. package/model/settingValue.d.ts +0 -13
  93. package/model/settingView.d.ts +0 -14
  94. package/model/taskCompletionTime.d.ts +0 -16
  95. package/model/taskCompletionTimes.d.ts +0 -14
  96. package/model/taskOperation.d.ts +0 -18
  97. package/model/taskOperations.d.ts +0 -14
  98. package/model/taskUserRecord.d.ts +0 -24
  99. package/model/taskUserRecordSelf.d.ts +0 -17
  100. package/model/taskUserRecordView.d.ts +0 -29
  101. package/model/taskUserRecords.d.ts +0 -14
  102. package/model/userApplication.d.ts +0 -13
  103. package/model/userApplications.d.ts +0 -13
  104. package/model/userCompanyType.d.ts +0 -22
  105. package/model/userInfo.d.ts +0 -14
  106. package/model/userInfos.d.ts +0 -14
  107. package/model/userPermissions.d.ts +0 -12
  108. package/param.d.ts +0 -37
  109. package/variables.d.ts +0 -8
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @indigina/wms-api@0.0.81
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.81 --save
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
- ```typescript
80
- // configuring providers
81
- import { ApiModule, Configuration, ConfigurationParameters } from '@indigina/wms-api';
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
- ```typescript
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
- provide: Configuration,
109
- useFactory: (authService: AuthService) => new Configuration(
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
- bootstrap: [ AppComponent ]
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 { DefaultApi } from '@indigina/wms-api';
126
-
127
- export class AppComponent {
128
- constructor(private apiGateway: DefaultApi) { }
129
- }
78
+ import { ApiModule } from '@indigina/wms-api';
130
79
  ```
131
80
 
132
- Note: The ApiModule is restricted to being instantiated once app wide.
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 { ApiModule } from 'my-api-path';
143
- import { ApiModule as OtherApiModule } from 'my-other-api-path';
144
- import { HttpClientModule } from '@angular/common/http';
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
- import { BASE_PATH } from '@indigina/wms-api';
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
- bootstrap(AppComponent, [
168
- { provide: BASE_PATH, useValue: 'https://your-web-service.com' },
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
- import { BASE_PATH } from '@indigina/wms-api';
176
-
177
- @NgModule({
178
- imports: [],
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
- ```typescript
191
- export const environment = {
192
- production: false,
193
- API_BASE_PATH: 'http://127.0.0.1:8080'
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
- In the src/app/app.module.ts:
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 { BASE_PATH } from '@indigina/wms-api';
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
- @NgModule({
204
- declarations: [
205
- AppComponent
206
- ],
207
- imports: [ ],
208
- providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],
209
- bootstrap: [ AppComponent ]
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