@indigina/myseko-api 0.0.11 → 0.0.12
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 +2 -2
- package/fesm2022/indigina-myseko-api.mjs +302 -8
- package/fesm2022/indigina-myseko-api.mjs.map +1 -1
- package/index.d.ts +352 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/myseko-api@0.0.
|
|
1
|
+
# @indigina/myseko-api@0.0.12
|
|
2
2
|
|
|
3
3
|
MySeko 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/myseko-api@0.0.
|
|
27
|
+
npm install @indigina/myseko-api@0.0.12 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -261,9 +261,7 @@ class AuthService extends BaseService {
|
|
|
261
261
|
}
|
|
262
262
|
userLogin(observe = 'body', reportProgress = false, options) {
|
|
263
263
|
let localVarHeaders = this.defaultHeaders;
|
|
264
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
265
|
-
'application/json'
|
|
266
|
-
]);
|
|
264
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
267
265
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
268
266
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
269
267
|
}
|
|
@@ -310,6 +308,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
310
308
|
type: Optional
|
|
311
309
|
}] }] });
|
|
312
310
|
|
|
311
|
+
/**
|
|
312
|
+
* MySeko.API.Client
|
|
313
|
+
*
|
|
314
|
+
*
|
|
315
|
+
*
|
|
316
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
317
|
+
* https://openapi-generator.tech
|
|
318
|
+
* Do not edit the class manually.
|
|
319
|
+
*/
|
|
320
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
321
|
+
class CalendarService extends BaseService {
|
|
322
|
+
httpClient;
|
|
323
|
+
constructor(httpClient, basePath, configuration) {
|
|
324
|
+
super(basePath, configuration);
|
|
325
|
+
this.httpClient = httpClient;
|
|
326
|
+
}
|
|
327
|
+
getCalendarRange(calendar, startDate, endDate, observe = 'body', reportProgress = false, options) {
|
|
328
|
+
if (calendar === null || calendar === undefined) {
|
|
329
|
+
throw new Error('Required parameter calendar was null or undefined when calling getCalendarRange.');
|
|
330
|
+
}
|
|
331
|
+
if (startDate === null || startDate === undefined) {
|
|
332
|
+
throw new Error('Required parameter startDate was null or undefined when calling getCalendarRange.');
|
|
333
|
+
}
|
|
334
|
+
if (endDate === null || endDate === undefined) {
|
|
335
|
+
throw new Error('Required parameter endDate was null or undefined when calling getCalendarRange.');
|
|
336
|
+
}
|
|
337
|
+
let localVarHeaders = this.defaultHeaders;
|
|
338
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
339
|
+
'application/json'
|
|
340
|
+
]);
|
|
341
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
342
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
343
|
+
}
|
|
344
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
345
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
346
|
+
let responseType_ = 'json';
|
|
347
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
348
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
349
|
+
responseType_ = 'text';
|
|
350
|
+
}
|
|
351
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
352
|
+
responseType_ = 'json';
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
responseType_ = 'blob';
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
let localVarPath = `/myseko/calendar/${this.configuration.encodeParam({ name: "calendar", value: calendar, in: "path", style: "simple", explode: false, dataType: "CalendarType", dataFormat: undefined })}/range/${this.configuration.encodeParam({ name: "startDate", value: startDate, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "date" })}/${this.configuration.encodeParam({ name: "endDate", value: endDate, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "date" })}`;
|
|
359
|
+
const { basePath, withCredentials } = this.configuration;
|
|
360
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
361
|
+
context: localVarHttpContext,
|
|
362
|
+
responseType: responseType_,
|
|
363
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
364
|
+
headers: localVarHeaders,
|
|
365
|
+
observe: observe,
|
|
366
|
+
transferCache: localVarTransferCache,
|
|
367
|
+
reportProgress: reportProgress
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CalendarService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
371
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
|
|
372
|
+
}
|
|
373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CalendarService, decorators: [{
|
|
374
|
+
type: Injectable,
|
|
375
|
+
args: [{
|
|
376
|
+
providedIn: 'root'
|
|
377
|
+
}]
|
|
378
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
379
|
+
type: Optional
|
|
380
|
+
}, {
|
|
381
|
+
type: Inject,
|
|
382
|
+
args: [BASE_PATH]
|
|
383
|
+
}] }, { type: Configuration, decorators: [{
|
|
384
|
+
type: Optional
|
|
385
|
+
}] }] });
|
|
386
|
+
|
|
313
387
|
/**
|
|
314
388
|
* MySeko.API.Client
|
|
315
389
|
*
|
|
@@ -730,6 +804,154 @@ class ShipmentService extends BaseService {
|
|
|
730
804
|
super(basePath, configuration);
|
|
731
805
|
this.httpClient = httpClient;
|
|
732
806
|
}
|
|
807
|
+
getShipmentPackageDetails(ordOrderID, observe = 'body', reportProgress = false, options) {
|
|
808
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
809
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentPackageDetails.');
|
|
810
|
+
}
|
|
811
|
+
let localVarHeaders = this.defaultHeaders;
|
|
812
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
813
|
+
'application/json'
|
|
814
|
+
]);
|
|
815
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
816
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
817
|
+
}
|
|
818
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
819
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
820
|
+
let responseType_ = 'json';
|
|
821
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
822
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
823
|
+
responseType_ = 'text';
|
|
824
|
+
}
|
|
825
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
826
|
+
responseType_ = 'json';
|
|
827
|
+
}
|
|
828
|
+
else {
|
|
829
|
+
responseType_ = 'blob';
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/package-details`;
|
|
833
|
+
const { basePath, withCredentials } = this.configuration;
|
|
834
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
835
|
+
context: localVarHttpContext,
|
|
836
|
+
responseType: responseType_,
|
|
837
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
838
|
+
headers: localVarHeaders,
|
|
839
|
+
observe: observe,
|
|
840
|
+
transferCache: localVarTransferCache,
|
|
841
|
+
reportProgress: reportProgress
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
getShipmentPurchaseOrderDetails(ordOrderID, observe = 'body', reportProgress = false, options) {
|
|
845
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
846
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentPurchaseOrderDetails.');
|
|
847
|
+
}
|
|
848
|
+
let localVarHeaders = this.defaultHeaders;
|
|
849
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
850
|
+
'application/json'
|
|
851
|
+
]);
|
|
852
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
853
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
854
|
+
}
|
|
855
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
856
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
857
|
+
let responseType_ = 'json';
|
|
858
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
859
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
860
|
+
responseType_ = 'text';
|
|
861
|
+
}
|
|
862
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
863
|
+
responseType_ = 'json';
|
|
864
|
+
}
|
|
865
|
+
else {
|
|
866
|
+
responseType_ = 'blob';
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/purchase-order-details`;
|
|
870
|
+
const { basePath, withCredentials } = this.configuration;
|
|
871
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
872
|
+
context: localVarHttpContext,
|
|
873
|
+
responseType: responseType_,
|
|
874
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
875
|
+
headers: localVarHeaders,
|
|
876
|
+
observe: observe,
|
|
877
|
+
transferCache: localVarTransferCache,
|
|
878
|
+
reportProgress: reportProgress
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
getShipmentSummary(ordOrderID, observe = 'body', reportProgress = false, options) {
|
|
882
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
883
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentSummary.');
|
|
884
|
+
}
|
|
885
|
+
let localVarHeaders = this.defaultHeaders;
|
|
886
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
887
|
+
'application/json'
|
|
888
|
+
]);
|
|
889
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
890
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
891
|
+
}
|
|
892
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
893
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
894
|
+
let responseType_ = 'json';
|
|
895
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
896
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
897
|
+
responseType_ = 'text';
|
|
898
|
+
}
|
|
899
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
900
|
+
responseType_ = 'json';
|
|
901
|
+
}
|
|
902
|
+
else {
|
|
903
|
+
responseType_ = 'blob';
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/summary`;
|
|
907
|
+
const { basePath, withCredentials } = this.configuration;
|
|
908
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
909
|
+
context: localVarHttpContext,
|
|
910
|
+
responseType: responseType_,
|
|
911
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
912
|
+
headers: localVarHeaders,
|
|
913
|
+
observe: observe,
|
|
914
|
+
transferCache: localVarTransferCache,
|
|
915
|
+
reportProgress: reportProgress
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
getShipmentTimeline(ordOrderID, observe = 'body', reportProgress = false, options) {
|
|
919
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
920
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentTimeline.');
|
|
921
|
+
}
|
|
922
|
+
let localVarHeaders = this.defaultHeaders;
|
|
923
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
924
|
+
'application/json'
|
|
925
|
+
]);
|
|
926
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
927
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
928
|
+
}
|
|
929
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
930
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
931
|
+
let responseType_ = 'json';
|
|
932
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
933
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
934
|
+
responseType_ = 'text';
|
|
935
|
+
}
|
|
936
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
937
|
+
responseType_ = 'json';
|
|
938
|
+
}
|
|
939
|
+
else {
|
|
940
|
+
responseType_ = 'blob';
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/timeline`;
|
|
944
|
+
const { basePath, withCredentials } = this.configuration;
|
|
945
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
946
|
+
context: localVarHttpContext,
|
|
947
|
+
responseType: responseType_,
|
|
948
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
949
|
+
headers: localVarHeaders,
|
|
950
|
+
observe: observe,
|
|
951
|
+
transferCache: localVarTransferCache,
|
|
952
|
+
reportProgress: reportProgress
|
|
953
|
+
});
|
|
954
|
+
}
|
|
733
955
|
getShipments($skip, $top, $orderby, $filter, observe = 'body', reportProgress = false, options) {
|
|
734
956
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
735
957
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
@@ -952,9 +1174,7 @@ class UsergroupService extends BaseService {
|
|
|
952
1174
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
953
1175
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, regGroupID, 'regGroupID');
|
|
954
1176
|
let localVarHeaders = this.defaultHeaders;
|
|
955
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
956
|
-
'application/json'
|
|
957
|
-
]);
|
|
1177
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
958
1178
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
959
1179
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
960
1180
|
}
|
|
@@ -1002,7 +1222,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
1002
1222
|
type: Optional
|
|
1003
1223
|
}] }] });
|
|
1004
1224
|
|
|
1005
|
-
const APIS = [AuthService, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService];
|
|
1225
|
+
const APIS = [AuthService, CalendarService, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService];
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* MySeko.API.Client
|
|
1229
|
+
*
|
|
1230
|
+
*
|
|
1231
|
+
*
|
|
1232
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1233
|
+
* https://openapi-generator.tech
|
|
1234
|
+
* Do not edit the class manually.
|
|
1235
|
+
*/
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* MySeko.API.Client
|
|
1239
|
+
*
|
|
1240
|
+
*
|
|
1241
|
+
*
|
|
1242
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1243
|
+
* https://openapi-generator.tech
|
|
1244
|
+
* Do not edit the class manually.
|
|
1245
|
+
*/
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* MySeko.API.Client
|
|
1249
|
+
*
|
|
1250
|
+
*
|
|
1251
|
+
*
|
|
1252
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1253
|
+
* https://openapi-generator.tech
|
|
1254
|
+
* Do not edit the class manually.
|
|
1255
|
+
*/
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* MySeko.API.Client
|
|
1259
|
+
*
|
|
1260
|
+
*
|
|
1261
|
+
*
|
|
1262
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1263
|
+
* https://openapi-generator.tech
|
|
1264
|
+
* Do not edit the class manually.
|
|
1265
|
+
*/
|
|
1266
|
+
const CalendarType = {
|
|
1267
|
+
NorthAmerican: 'NorthAmerican',
|
|
1268
|
+
International: 'International'
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* MySeko.API.Client
|
|
1273
|
+
*
|
|
1274
|
+
*
|
|
1275
|
+
*
|
|
1276
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1277
|
+
* https://openapi-generator.tech
|
|
1278
|
+
* Do not edit the class manually.
|
|
1279
|
+
*/
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* MySeko.API.Client
|
|
1283
|
+
*
|
|
1284
|
+
*
|
|
1285
|
+
*
|
|
1286
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1287
|
+
* https://openapi-generator.tech
|
|
1288
|
+
* Do not edit the class manually.
|
|
1289
|
+
*/
|
|
1290
|
+
|
|
1291
|
+
/**
|
|
1292
|
+
* MySeko.API.Client
|
|
1293
|
+
*
|
|
1294
|
+
*
|
|
1295
|
+
*
|
|
1296
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1297
|
+
* https://openapi-generator.tech
|
|
1298
|
+
* Do not edit the class manually.
|
|
1299
|
+
*/
|
|
1006
1300
|
|
|
1007
1301
|
/**
|
|
1008
1302
|
* MySeko.API.Client
|
|
@@ -1136,5 +1430,5 @@ function provideApi(configOrBasePath) {
|
|
|
1136
1430
|
* Generated bundle index. Do not edit.
|
|
1137
1431
|
*/
|
|
1138
1432
|
|
|
1139
|
-
export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService, provideApi };
|
|
1433
|
+
export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarType, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService, provideApi };
|
|
1140
1434
|
//# sourceMappingURL=indigina-myseko-api.mjs.map
|