@indigina/myseko-api 0.0.52 → 0.0.53
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/myseko-api@0.0.
|
|
1
|
+
# @indigina/myseko-api@0.0.53
|
|
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.53 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -145,8 +145,8 @@ class Configuration {
|
|
|
145
145
|
* @return True if the given MIME is JSON, false otherwise.
|
|
146
146
|
*/
|
|
147
147
|
isJsonMime(mime) {
|
|
148
|
-
const jsonMime =
|
|
149
|
-
return mime !== null &&
|
|
148
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
149
|
+
return mime !== null && jsonMime.test(mime);
|
|
150
150
|
}
|
|
151
151
|
lookupCredential(key) {
|
|
152
152
|
const value = this.credentials[key];
|
|
@@ -359,17 +359,18 @@ class BaseService {
|
|
|
359
359
|
else if (value instanceof Date) {
|
|
360
360
|
return httpParams.append(key, value.toISOString());
|
|
361
361
|
}
|
|
362
|
-
else if (Array.isArray(value)) {
|
|
363
|
-
// Otherwise, if it's an array, add each element.
|
|
362
|
+
else if (Array.isArray(value) || value instanceof Set) {
|
|
363
|
+
// Otherwise, if it's an array or set, add each element.
|
|
364
|
+
const array = Array.isArray(value) ? value : Array.from(value);
|
|
364
365
|
if (paramStyle === QueryParamStyle.Form) {
|
|
365
|
-
return httpParams.set(key,
|
|
366
|
+
return httpParams.set(key, array, { explode: explode, delimiter: ',' });
|
|
366
367
|
}
|
|
367
368
|
else if (paramStyle === QueryParamStyle.SpaceDelimited) {
|
|
368
|
-
return httpParams.set(key,
|
|
369
|
+
return httpParams.set(key, array, { explode: explode, delimiter: ' ' });
|
|
369
370
|
}
|
|
370
371
|
else {
|
|
371
372
|
// PipeDelimited
|
|
372
|
-
return httpParams.set(key,
|
|
373
|
+
return httpParams.set(key, array, { explode: explode, delimiter: '|' });
|
|
373
374
|
}
|
|
374
375
|
}
|
|
375
376
|
else {
|
|
@@ -445,10 +446,10 @@ class AuthService extends BaseService {
|
|
|
445
446
|
reportProgress: reportProgress
|
|
446
447
|
});
|
|
447
448
|
}
|
|
448
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
449
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AuthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
450
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
450
451
|
}
|
|
451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: AuthService, decorators: [{
|
|
452
453
|
type: Injectable,
|
|
453
454
|
args: [{
|
|
454
455
|
providedIn: 'root'
|
|
@@ -531,10 +532,10 @@ class CalendarService extends BaseService {
|
|
|
531
532
|
reportProgress: reportProgress
|
|
532
533
|
});
|
|
533
534
|
}
|
|
534
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
535
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
535
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CalendarService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
536
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CalendarService, providedIn: 'root' });
|
|
536
537
|
}
|
|
537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: CalendarService, decorators: [{
|
|
538
539
|
type: Injectable,
|
|
539
540
|
args: [{
|
|
540
541
|
providedIn: 'root'
|
|
@@ -666,10 +667,10 @@ class DashboardService extends BaseService {
|
|
|
666
667
|
reportProgress: reportProgress
|
|
667
668
|
});
|
|
668
669
|
}
|
|
669
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
670
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
670
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DashboardService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
671
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DashboardService, providedIn: 'root' });
|
|
671
672
|
}
|
|
672
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DashboardService, decorators: [{
|
|
673
674
|
type: Injectable,
|
|
674
675
|
args: [{
|
|
675
676
|
providedIn: 'root'
|
|
@@ -857,10 +858,10 @@ class DocumentService extends BaseService {
|
|
|
857
858
|
reportProgress: reportProgress
|
|
858
859
|
});
|
|
859
860
|
}
|
|
860
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
861
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
861
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DocumentService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
862
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
862
863
|
}
|
|
863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
864
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: DocumentService, decorators: [{
|
|
864
865
|
type: Injectable,
|
|
865
866
|
args: [{
|
|
866
867
|
providedIn: 'root'
|
|
@@ -1078,10 +1079,10 @@ class ExceptionsService extends BaseService {
|
|
|
1078
1079
|
reportProgress: reportProgress
|
|
1079
1080
|
});
|
|
1080
1081
|
}
|
|
1081
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1082
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1082
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ExceptionsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1083
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ExceptionsService, providedIn: 'root' });
|
|
1083
1084
|
}
|
|
1084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ExceptionsService, decorators: [{
|
|
1085
1086
|
type: Injectable,
|
|
1086
1087
|
args: [{
|
|
1087
1088
|
providedIn: 'root'
|
|
@@ -1146,10 +1147,10 @@ class HealthService extends BaseService {
|
|
|
1146
1147
|
reportProgress: reportProgress
|
|
1147
1148
|
});
|
|
1148
1149
|
}
|
|
1149
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1150
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1150
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1151
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: HealthService, providedIn: 'root' });
|
|
1151
1152
|
}
|
|
1152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: HealthService, decorators: [{
|
|
1153
1154
|
type: Injectable,
|
|
1154
1155
|
args: [{
|
|
1155
1156
|
providedIn: 'root'
|
|
@@ -1415,10 +1416,10 @@ class SettingsService extends BaseService {
|
|
|
1415
1416
|
reportProgress: reportProgress
|
|
1416
1417
|
});
|
|
1417
1418
|
}
|
|
1418
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1419
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1419
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SettingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1420
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SettingsService, providedIn: 'root' });
|
|
1420
1421
|
}
|
|
1421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: SettingsService, decorators: [{
|
|
1422
1423
|
type: Injectable,
|
|
1423
1424
|
args: [{
|
|
1424
1425
|
providedIn: 'root'
|
|
@@ -1978,10 +1979,10 @@ class ShipmentService extends BaseService {
|
|
|
1978
1979
|
reportProgress: reportProgress
|
|
1979
1980
|
});
|
|
1980
1981
|
}
|
|
1981
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1982
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1982
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ShipmentService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1983
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ShipmentService, providedIn: 'root' });
|
|
1983
1984
|
}
|
|
1984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ShipmentService, decorators: [{
|
|
1985
1986
|
type: Injectable,
|
|
1986
1987
|
args: [{
|
|
1987
1988
|
providedIn: 'root'
|
|
@@ -2045,10 +2046,10 @@ class UserService extends BaseService {
|
|
|
2045
2046
|
reportProgress: reportProgress
|
|
2046
2047
|
});
|
|
2047
2048
|
}
|
|
2048
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2049
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2049
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2050
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
2050
2051
|
}
|
|
2051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UserService, decorators: [{
|
|
2052
2053
|
type: Injectable,
|
|
2053
2054
|
args: [{
|
|
2054
2055
|
providedIn: 'root'
|
|
@@ -2150,10 +2151,10 @@ class UsergroupService extends BaseService {
|
|
|
2150
2151
|
reportProgress: reportProgress
|
|
2151
2152
|
});
|
|
2152
2153
|
}
|
|
2153
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2154
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UsergroupService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2155
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UsergroupService, providedIn: 'root' });
|
|
2155
2156
|
}
|
|
2156
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: UsergroupService, decorators: [{
|
|
2157
2158
|
type: Injectable,
|
|
2158
2159
|
args: [{
|
|
2159
2160
|
providedIn: 'root'
|
|
@@ -2636,11 +2637,11 @@ class ApiModule {
|
|
|
2636
2637
|
'See also https://github.com/angular/angular/issues/20575');
|
|
2637
2638
|
}
|
|
2638
2639
|
}
|
|
2639
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2640
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2641
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2640
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2641
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.1", ngImport: i0, type: ApiModule });
|
|
2642
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ApiModule });
|
|
2642
2643
|
}
|
|
2643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: ApiModule, decorators: [{
|
|
2644
2645
|
type: NgModule,
|
|
2645
2646
|
args: [{
|
|
2646
2647
|
imports: [],
|