@futdevpro/fsm-dynamo 1.9.9 → 1.9.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/.github/workflows/main.yml +196 -0
- package/HOWTO.md +15 -15
- package/README.md +17 -17
- package/build/_collections/constants/country-divisions.const.d.ts +1 -1
- package/build/_collections/constants/country-divisions.const.d.ts.map +1 -1
- package/build/_collections/constants/country-divisions.const.js +2 -2
- package/build/_collections/constants/country-divisions.const.js.map +1 -1
- package/build/_collections/constants/courtry-isos.const.d.ts +1 -1
- package/build/_collections/constants/courtry-isos.const.d.ts.map +1 -1
- package/build/_collections/constants/courtry-isos.const.js +2 -2
- package/build/_collections/constants/courtry-isos.const.js.map +1 -1
- package/build/_collections/constants/error-defaults.const.d.ts +1 -1
- package/build/_collections/constants/error-defaults.const.d.ts.map +1 -1
- package/build/_collections/constants/module-settings/usage-module-settings.const.js +1 -1
- package/build/_collections/constants/pipe-transforms.const.js +12 -12
- package/build/_collections/constants/pipe-transforms.const.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/division-pipe.util.js +1 -1
- package/build/_collections/utils/pipe-transforms/division-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/list-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/list-pipe.util.js.map +1 -1
- package/build/_collections/utils/pipe-transforms/range-pipe.util.d.ts +2 -2
- package/build/_collections/utils/pipe-transforms/range-pipe.util.d.ts.map +1 -1
- package/build/_collections/utils/pipe-transforms/range-pipe.util.js +11 -11
- package/build/_collections/utils/pipe-transforms/range-pipe.util.js.map +1 -1
- package/build/_collections/utils/regions.util.d.ts.map +1 -1
- package/build/_collections/utils/regions.util.js +3 -0
- package/build/_collections/utils/regions.util.js.map +1 -1
- package/build/_enums/range-pipe-setting.enum.d.ts +1 -1
- package/build/_enums/range-pipe-setting.enum.d.ts.map +1 -1
- package/build/_enums/range-pipe-setting.enum.js +12 -12
- package/build/_enums/range-pipe-setting.enum.js.map +1 -1
- package/build/_models/control-models/error.control-model.js +1 -1
- package/build/_models/control-models/error.control-model.js.map +1 -1
- package/build/_models/control-models/error.control-model.spec.js +25 -6
- package/build/_models/control-models/error.control-model.spec.js.map +1 -1
- package/build/_models/interfaces/index.d.ts +3 -0
- package/build/_models/interfaces/index.d.ts.map +1 -1
- package/build/_models/interfaces/index.js +3 -0
- package/build/_models/interfaces/index.js.map +1 -1
- package/build/_models/interfaces/pipe-transforms.interface.d.ts +2 -2
- package/build/_models/interfaces/pipe-transforms.interface.d.ts.map +1 -1
- package/futdevpro-fsm-dynamo-01.09.12.tgz +0 -0
- package/nodemon.json +11 -11
- package/package.json +151 -151
- package/src/_collections/assets/location/country-codes-ISO-3166.json +3239 -3239
- package/src/_collections/assets/location/country-divisions-ISO-3166-all-list.json +19035 -19035
- package/src/_collections/assets/location/country-divisions-ISO-3166.json +4993 -4993
- package/src/_collections/assets/location/country-phone-codes.json +1203 -1203
- package/src/_collections/constants/country-divisions.const.ts +9 -9
- package/src/_collections/constants/courtry-isos.const.ts +8 -8
- package/src/_collections/constants/error-defaults.const.ts +11 -11
- package/src/_collections/constants/index.ts +15 -15
- package/src/_collections/constants/module-settings/custom-data-module-settings.const.ts +15 -15
- package/src/_collections/constants/module-settings/index.ts +8 -8
- package/src/_collections/constants/module-settings/test-module-settings.const.ts +19 -19
- package/src/_collections/constants/module-settings/usage-module-settings.const.ts +19 -19
- package/src/_collections/constants/pipe-transforms.const.ts +35 -35
- package/src/_collections/constants/times.const.ts +8 -8
- package/src/_collections/index.ts +6 -6
- package/src/_collections/utils/array.util.spec.ts +39 -39
- package/src/_collections/utils/array.util.ts +137 -137
- package/src/_collections/utils/index.ts +18 -18
- package/src/_collections/utils/location.util.ts +55 -55
- package/src/_collections/utils/log.util.ts +239 -239
- package/src/_collections/utils/math/box-bounds.util.ts +85 -85
- package/src/_collections/utils/math/index.ts +5 -5
- package/src/_collections/utils/math/math.util.ts +53 -53
- package/src/_collections/utils/math/random.util.ts +80 -80
- package/src/_collections/utils/math/trigonometry.util.ts +73 -73
- package/src/_collections/utils/math/vector2.util.ts +197 -197
- package/src/_collections/utils/pipe-transforms/country-pipe.util.ts +18 -18
- package/src/_collections/utils/pipe-transforms/custom-pipe.util.ts +9 -9
- package/src/_collections/utils/pipe-transforms/division-pipe.util.ts +20 -20
- package/src/_collections/utils/pipe-transforms/index.ts +15 -15
- package/src/_collections/utils/pipe-transforms/list-pipe.util.ts +10 -14
- package/src/_collections/utils/pipe-transforms/multi-pipe-pipe.util.ts +160 -160
- package/src/_collections/utils/pipe-transforms/obj-key-pipe.util.ts +9 -9
- package/src/_collections/utils/pipe-transforms/range-pipe.util.ts +94 -94
- package/src/_collections/utils/pipe-transforms/region-pipe.util.ts +18 -18
- package/src/_collections/utils/pipe-transforms/replace-pipe.util.ts +11 -11
- package/src/_collections/utils/pipe-transforms/slider-pipe.util.ts +20 -20
- package/src/_collections/utils/pipe-transforms/smart-replace-pipe.util.ts +71 -71
- package/src/_collections/utils/regex/index.ts +4 -4
- package/src/_collections/utils/regex/password-regex.util.ts +52 -52
- package/src/_collections/utils/regex/regex.util.ts +6 -6
- package/src/_collections/utils/regex/username-regex.util.ts +33 -33
- package/src/_collections/utils/regions.util.ts +100 -97
- package/src/_collections/utils/round-list.util.ts +44 -44
- package/src/_collections/utils/shared.static-service.ts +177 -177
- package/src/_collections/utils/time.util.spec.ts +50 -50
- package/src/_collections/utils/time.util.ts +219 -219
- package/src/_collections/utils/type-cloning-facility.util.ts +121 -121
- package/src/_collections/utils/utilities.util.ts +130 -130
- package/src/_enums/basic-property-type.enum.ts +9 -9
- package/src/_enums/data-model-type.enum.ts +13 -13
- package/src/_enums/day-of-week.enum.ts +28 -28
- package/src/_enums/error-level.enum.ts +17 -17
- package/src/_enums/index.ts +16 -16
- package/src/_enums/location/index.ts +3 -3
- package/src/_enums/location/region.enum.ts +9 -9
- package/src/_enums/location/sub-region.enum.ts +26 -26
- package/src/_enums/location/subdivision-region-type.enum.ts +44 -44
- package/src/_enums/log-style.enum.ts +30 -30
- package/src/_enums/month.enum.ts +16 -16
- package/src/_enums/pipe.enum.ts +45 -45
- package/src/_enums/range-pipe-setting.enum.ts +11 -11
- package/src/_enums/time/day-of-week.enum.ts +28 -28
- package/src/_enums/time/index.ts +3 -3
- package/src/_enums/time/month.enum.ts +16 -16
- package/src/_enums/time/relative-date.enum.ts +13 -13
- package/src/_models/control-models/daily-usage-data.control-model.ts +21 -21
- package/src/_models/control-models/data-model-params.control-model.ts +39 -39
- package/src/_models/control-models/data-property-params.control-model.ts +106 -106
- package/src/_models/control-models/error.control-model.spec.ts +753 -716
- package/src/_models/control-models/error.control-model.ts +722 -722
- package/src/_models/control-models/index.ts +10 -10
- package/src/_models/control-models/poll.control-model.ts +113 -113
- package/src/_models/control-models/range-value.control-model.ts +142 -142
- package/src/_models/control-models/usage-action.control-model.ts +15 -15
- package/src/_models/control-models/usage-data.control-model.ts +20 -20
- package/src/_models/data-models/custom-data.data-model.ts +28 -28
- package/src/_models/data-models/index.ts +5 -5
- package/src/_models/data-models/metadata.data-model.ts +83 -83
- package/src/_models/data-models/usage-session.data-model.ts +53 -53
- package/src/_models/index.ts +12 -12
- package/src/_models/interfaces/error-defaults.interface.ts +11 -11
- package/src/_models/interfaces/index.ts +11 -8
- package/src/_models/interfaces/location/country-division.interface.ts +7 -7
- package/src/_models/interfaces/location/country-iso.interface.ts +21 -21
- package/src/_models/interfaces/location/country-phone-code.interface.ts +7 -7
- package/src/_models/interfaces/location/division-collection.interface.ts +10 -10
- package/src/_models/interfaces/location/division-region-data.interface.ts +8 -8
- package/src/_models/interfaces/location/geo-ip-location.interface.ts +26 -26
- package/src/_models/interfaces/location/index.ts +10 -10
- package/src/_models/interfaces/location/location-coordinates.interface.ts +5 -5
- package/src/_models/interfaces/multi-pipe-settings.type.ts +7 -7
- package/src/_models/interfaces/paged.interface.ts +11 -11
- package/src/_models/interfaces/pipe-transforms.interface.ts +29 -29
- package/src/_models/interfaces/random-weight.interface.ts +7 -7
- package/src/_models/interfaces/route-settings.interface.ts +11 -11
- package/src/_modules/collections.index.ts +2 -2
- package/src/_modules/constants.index.ts +2 -2
- package/src/_modules/custom-data-module.index.ts +6 -6
- package/src/_modules/data-modules.index.ts +9 -9
- package/src/_modules/enums.index.ts +2 -2
- package/src/_modules/error-module.index.ts +8 -8
- package/src/_modules/location.index.ts +15 -15
- package/src/_modules/models.index.ts +2 -2
- package/src/_modules/shared-service.index.ts +9 -9
- package/src/_modules/test-module.index.ts +5 -5
- package/src/_modules/usage-module.index.ts +10 -10
- package/tsconfig.json +29 -29
- package/tslint.json +153 -153
- package/build/_enums/region.enum.d.ts +0 -8
- package/build/_enums/region.enum.d.ts.map +0 -1
- package/build/_enums/region.enum.js +0 -12
- package/build/_enums/region.enum.js.map +0 -1
- package/build/_enums/relative-date.enum.d.ts +0 -9
- package/build/_enums/relative-date.enum.d.ts.map +0 -1
- package/build/_enums/relative-date.enum.js +0 -13
- package/build/_enums/relative-date.enum.js.map +0 -1
- package/build/_enums/sub-region.enum.d.ts +0 -20
- package/build/_enums/sub-region.enum.d.ts.map +0 -1
- package/build/_enums/sub-region.enum.js +0 -24
- package/build/_enums/sub-region.enum.js.map +0 -1
- package/build/_enums/subdivision-region-type.enum.d.ts +0 -41
- package/build/_enums/subdivision-region-type.enum.d.ts.map +0 -1
- package/build/_enums/subdivision-region-type.enum.js +0 -46
- package/build/_enums/subdivision-region-type.enum.js.map +0 -1
- package/src/_enums/region.enum.ts +0 -9
- package/src/_enums/relative-date.enum.ts +0 -13
- package/src/_enums/sub-region.enum.ts +0 -26
- package/src/_enums/subdivision-region-type.enum.ts +0 -44
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
export type DFM_Metadata = DynamoFM_Metadata;
|
|
3
|
-
export type DFM_MetaD = DynamoFM_Metadata;
|
|
4
|
-
export class DynamoFM_Metadata {
|
|
5
|
-
_id?: string;
|
|
6
|
-
|
|
7
|
-
__created?: Date;
|
|
8
|
-
__createdBy?: string;
|
|
9
|
-
__lastModified?: Date;
|
|
10
|
-
__lastModifiedBy?: string;
|
|
11
|
-
__v?: number;
|
|
12
|
-
|
|
13
|
-
constructor(
|
|
14
|
-
set?: DynamoFM_Metadata,
|
|
15
|
-
init?: {
|
|
16
|
-
id?: string,
|
|
17
|
-
issuer: string,
|
|
18
|
-
},
|
|
19
|
-
){
|
|
20
|
-
if (set) {
|
|
21
|
-
if (!set._id && set._id !== undefined) {
|
|
22
|
-
set._id = undefined;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
this._id = set._id;
|
|
26
|
-
this.__created = set.__created;
|
|
27
|
-
this.__createdBy = set.__createdBy;
|
|
28
|
-
this.__lastModified = set.__lastModified;
|
|
29
|
-
this.__lastModifiedBy = set.__lastModifiedBy;
|
|
30
|
-
this.__v = set.__v;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (init?.issuer) {
|
|
34
|
-
if (!this._id && init.id) {
|
|
35
|
-
this._id = init.id;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (!this.__created) {
|
|
39
|
-
this.__created = new Date();
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if (!this.__createdBy) {
|
|
43
|
-
this.__createdBy = init.issuer;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (!this.__lastModified) {
|
|
47
|
-
this.__lastModified = new Date();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
if (!this.__lastModifiedBy) {
|
|
51
|
-
this.__lastModifiedBy = init.issuer;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (!this.__v) {
|
|
55
|
-
this.__v = 0;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
static updateMetadata?<T extends DynamoFM_Metadata>(data: T, issuer: string, id?: string): T {
|
|
61
|
-
if (!data) {
|
|
62
|
-
return data;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (!data._id && id) {
|
|
66
|
-
data._id = id;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (!data.__created) {
|
|
70
|
-
data.__created = new Date();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (!data.__createdBy) {
|
|
74
|
-
data.__createdBy = issuer;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
data.__lastModified = new Date();
|
|
78
|
-
data.__lastModifiedBy = issuer;
|
|
79
|
-
data.__v = data.__v ? data.__v + 1 : 1;
|
|
80
|
-
|
|
81
|
-
return data;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
|
|
2
|
+
export type DFM_Metadata = DynamoFM_Metadata;
|
|
3
|
+
export type DFM_MetaD = DynamoFM_Metadata;
|
|
4
|
+
export class DynamoFM_Metadata {
|
|
5
|
+
_id?: string;
|
|
6
|
+
|
|
7
|
+
__created?: Date;
|
|
8
|
+
__createdBy?: string;
|
|
9
|
+
__lastModified?: Date;
|
|
10
|
+
__lastModifiedBy?: string;
|
|
11
|
+
__v?: number;
|
|
12
|
+
|
|
13
|
+
constructor(
|
|
14
|
+
set?: DynamoFM_Metadata,
|
|
15
|
+
init?: {
|
|
16
|
+
id?: string,
|
|
17
|
+
issuer: string,
|
|
18
|
+
},
|
|
19
|
+
){
|
|
20
|
+
if (set) {
|
|
21
|
+
if (!set._id && set._id !== undefined) {
|
|
22
|
+
set._id = undefined;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
this._id = set._id;
|
|
26
|
+
this.__created = set.__created;
|
|
27
|
+
this.__createdBy = set.__createdBy;
|
|
28
|
+
this.__lastModified = set.__lastModified;
|
|
29
|
+
this.__lastModifiedBy = set.__lastModifiedBy;
|
|
30
|
+
this.__v = set.__v;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (init?.issuer) {
|
|
34
|
+
if (!this._id && init.id) {
|
|
35
|
+
this._id = init.id;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (!this.__created) {
|
|
39
|
+
this.__created = new Date();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (!this.__createdBy) {
|
|
43
|
+
this.__createdBy = init.issuer;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (!this.__lastModified) {
|
|
47
|
+
this.__lastModified = new Date();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (!this.__lastModifiedBy) {
|
|
51
|
+
this.__lastModifiedBy = init.issuer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (!this.__v) {
|
|
55
|
+
this.__v = 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static updateMetadata?<T extends DynamoFM_Metadata>(data: T, issuer: string, id?: string): T {
|
|
61
|
+
if (!data) {
|
|
62
|
+
return data;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (!data._id && id) {
|
|
66
|
+
data._id = id;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (!data.__created) {
|
|
70
|
+
data.__created = new Date();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (!data.__createdBy) {
|
|
74
|
+
data.__createdBy = issuer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
data.__lastModified = new Date();
|
|
78
|
+
data.__lastModifiedBy = issuer;
|
|
79
|
+
data.__v = data.__v ? data.__v + 1 : 1;
|
|
80
|
+
|
|
81
|
+
return data;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
import { DynamoFM_Metadata } from './metadata.data-model';
|
|
3
|
-
import { DynamoFM_UsageData } from '../control-models/usage-data.control-model';
|
|
4
|
-
import { DynamoFM_DataModel_Params } from '../control-models/data-model-params.control-model';
|
|
5
|
-
import { DynamoFM_GeoIpLocation } from '../interfaces/location/geo-ip-location.interface';
|
|
6
|
-
|
|
7
|
-
export type DFM_UsageSession = DynamoFM_UsageSession;
|
|
8
|
-
export class DynamoFM_UsageSession extends DynamoFM_Metadata {
|
|
9
|
-
date?: string;
|
|
10
|
-
sessionStart?: Date;
|
|
11
|
-
sessionEnd?: Date;
|
|
12
|
-
address?: string;
|
|
13
|
-
issuer?: string;
|
|
14
|
-
locationData?: DynamoFM_GeoIpLocation;
|
|
15
|
-
|
|
16
|
-
usageData?: DynamoFM_UsageData[] = [];
|
|
17
|
-
totalSessionTime?: number;
|
|
18
|
-
loggedInAs?: string;
|
|
19
|
-
|
|
20
|
-
constructor(
|
|
21
|
-
set?: DynamoFM_UsageSession
|
|
22
|
-
) {
|
|
23
|
-
super(set);
|
|
24
|
-
|
|
25
|
-
if (set) {
|
|
26
|
-
if (!set.date && set.sessionStart) {
|
|
27
|
-
set.date = set.sessionStart.toISOString().substring(0, 10);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
Object.assign(this, set);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export const DynamoFM_usageSessionModel_params: DynamoFM_DataModel_Params =
|
|
36
|
-
new DynamoFM_DataModel_Params({
|
|
37
|
-
dataName: 'usageSession',
|
|
38
|
-
properties: [
|
|
39
|
-
{ key: 'date', type: 'string',
|
|
40
|
-
required: true, index: true
|
|
41
|
-
},
|
|
42
|
-
{ key: 'sessionStart', type: 'Date',
|
|
43
|
-
required: true, index: true
|
|
44
|
-
},
|
|
45
|
-
{ key: 'sessionEnd', type: 'Date' },
|
|
46
|
-
{ key: 'address', type: 'string' },
|
|
47
|
-
{ key: 'issuer', type: 'string' },
|
|
48
|
-
{ key: 'locationData', type: 'IpApiLocation' },
|
|
49
|
-
{ key: 'usageData', type: 'UsageData[]' },
|
|
50
|
-
{ key: 'totalSessionTime', type: 'number' },
|
|
51
|
-
{ key: 'loggedInAs', type: 'string' },
|
|
52
|
-
]
|
|
53
|
-
});
|
|
1
|
+
|
|
2
|
+
import { DynamoFM_Metadata } from './metadata.data-model';
|
|
3
|
+
import { DynamoFM_UsageData } from '../control-models/usage-data.control-model';
|
|
4
|
+
import { DynamoFM_DataModel_Params } from '../control-models/data-model-params.control-model';
|
|
5
|
+
import { DynamoFM_GeoIpLocation } from '../interfaces/location/geo-ip-location.interface';
|
|
6
|
+
|
|
7
|
+
export type DFM_UsageSession = DynamoFM_UsageSession;
|
|
8
|
+
export class DynamoFM_UsageSession extends DynamoFM_Metadata {
|
|
9
|
+
date?: string;
|
|
10
|
+
sessionStart?: Date;
|
|
11
|
+
sessionEnd?: Date;
|
|
12
|
+
address?: string;
|
|
13
|
+
issuer?: string;
|
|
14
|
+
locationData?: DynamoFM_GeoIpLocation;
|
|
15
|
+
|
|
16
|
+
usageData?: DynamoFM_UsageData[] = [];
|
|
17
|
+
totalSessionTime?: number;
|
|
18
|
+
loggedInAs?: string;
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
set?: DynamoFM_UsageSession
|
|
22
|
+
) {
|
|
23
|
+
super(set);
|
|
24
|
+
|
|
25
|
+
if (set) {
|
|
26
|
+
if (!set.date && set.sessionStart) {
|
|
27
|
+
set.date = set.sessionStart.toISOString().substring(0, 10);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
Object.assign(this, set);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const DynamoFM_usageSessionModel_params: DynamoFM_DataModel_Params =
|
|
36
|
+
new DynamoFM_DataModel_Params({
|
|
37
|
+
dataName: 'usageSession',
|
|
38
|
+
properties: [
|
|
39
|
+
{ key: 'date', type: 'string',
|
|
40
|
+
required: true, index: true
|
|
41
|
+
},
|
|
42
|
+
{ key: 'sessionStart', type: 'Date',
|
|
43
|
+
required: true, index: true
|
|
44
|
+
},
|
|
45
|
+
{ key: 'sessionEnd', type: 'Date' },
|
|
46
|
+
{ key: 'address', type: 'string' },
|
|
47
|
+
{ key: 'issuer', type: 'string' },
|
|
48
|
+
{ key: 'locationData', type: 'IpApiLocation' },
|
|
49
|
+
{ key: 'usageData', type: 'UsageData[]' },
|
|
50
|
+
{ key: 'totalSessionTime', type: 'number' },
|
|
51
|
+
{ key: 'loggedInAs', type: 'string' },
|
|
52
|
+
]
|
|
53
|
+
});
|
package/src/_models/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
// MODELS
|
|
3
|
-
|
|
4
|
-
// CONTROL MODELS
|
|
5
|
-
export * from './control-models';
|
|
6
|
-
|
|
7
|
-
// DATA MODELS
|
|
8
|
-
export * from './data-models';
|
|
9
|
-
|
|
10
|
-
// INTERFACES
|
|
11
|
-
export * from './interfaces';
|
|
12
|
-
|
|
1
|
+
|
|
2
|
+
// MODELS
|
|
3
|
+
|
|
4
|
+
// CONTROL MODELS
|
|
5
|
+
export * from './control-models';
|
|
6
|
+
|
|
7
|
+
// DATA MODELS
|
|
8
|
+
export * from './data-models';
|
|
9
|
+
|
|
10
|
+
// INTERFACES
|
|
11
|
+
export * from './interfaces';
|
|
12
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface DynamoFM_Error_Defaults {
|
|
4
|
-
errorCode: string;
|
|
5
|
-
message: string;
|
|
6
|
-
userMessage: string;
|
|
7
|
-
issuer: string;
|
|
8
|
-
issuerService: string;
|
|
9
|
-
issuerSystem: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export interface DynamoFM_Error_Defaults {
|
|
4
|
+
errorCode: string;
|
|
5
|
+
message: string;
|
|
6
|
+
userMessage: string;
|
|
7
|
+
issuer: string;
|
|
8
|
+
issuerService: string;
|
|
9
|
+
issuerSystem: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
// INTERFACES
|
|
3
|
-
export * from './error-defaults.interface';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export * from './
|
|
1
|
+
|
|
2
|
+
// INTERFACES
|
|
3
|
+
export * from './error-defaults.interface';
|
|
4
|
+
export * from './multi-pipe-settings.type';
|
|
5
|
+
export * from './paged.interface';
|
|
6
|
+
export * from './pipe-transforms.interface';
|
|
7
|
+
export * from './random-weight.interface';
|
|
8
|
+
export * from './route-settings.interface';
|
|
9
|
+
|
|
10
|
+
// LOCATION INTERFACES
|
|
11
|
+
export * from './location';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface DynamoFM_CountryDivision {
|
|
4
|
-
iso: string;
|
|
5
|
-
code: string;
|
|
6
|
-
name: string;
|
|
7
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export interface DynamoFM_CountryDivision {
|
|
4
|
+
iso: string;
|
|
5
|
+
code: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { DynamoFM_Region } from '../../../_enums/location/region.enum';
|
|
4
|
-
import { DynamoFM_SubRegion } from '../../../_enums/location/sub-region.enum';
|
|
5
|
-
import { DynamoFM_CountryDivision } from './country-division.interface';
|
|
6
|
-
|
|
7
|
-
export interface DynamoFM_CountryISO {
|
|
8
|
-
name: string;
|
|
9
|
-
iso2: string;
|
|
10
|
-
iso3: string;
|
|
11
|
-
countryCode: string;
|
|
12
|
-
fullIso: string;
|
|
13
|
-
region: DynamoFM_Region;
|
|
14
|
-
regionCode: string;
|
|
15
|
-
subRegion: DynamoFM_SubRegion;
|
|
16
|
-
subRegionCode: string;
|
|
17
|
-
subdivisionRegion: string;
|
|
18
|
-
subdivisionRegionCode: string;
|
|
19
|
-
phoneCode?: string;
|
|
20
|
-
divisions?: DynamoFM_CountryDivision[];
|
|
21
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { DynamoFM_Region } from '../../../_enums/location/region.enum';
|
|
4
|
+
import { DynamoFM_SubRegion } from '../../../_enums/location/sub-region.enum';
|
|
5
|
+
import { DynamoFM_CountryDivision } from './country-division.interface';
|
|
6
|
+
|
|
7
|
+
export interface DynamoFM_CountryISO {
|
|
8
|
+
name: string;
|
|
9
|
+
iso2: string;
|
|
10
|
+
iso3: string;
|
|
11
|
+
countryCode: string;
|
|
12
|
+
fullIso: string;
|
|
13
|
+
region: DynamoFM_Region;
|
|
14
|
+
regionCode: string;
|
|
15
|
+
subRegion: DynamoFM_SubRegion;
|
|
16
|
+
subRegionCode: string;
|
|
17
|
+
subdivisionRegion: string;
|
|
18
|
+
subdivisionRegionCode: string;
|
|
19
|
+
phoneCode?: string;
|
|
20
|
+
divisions?: DynamoFM_CountryDivision[];
|
|
21
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export interface DynamoFM_CountryPhoneCode {
|
|
3
|
-
iso: string;
|
|
4
|
-
country: string;
|
|
5
|
-
code: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
1
|
+
|
|
2
|
+
export interface DynamoFM_CountryPhoneCode {
|
|
3
|
+
iso: string;
|
|
4
|
+
country: string;
|
|
5
|
+
code: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export interface DynamoFM_Division_Collection {
|
|
3
|
-
[iso2: string]: {
|
|
4
|
-
name: string;
|
|
5
|
-
divisions: {
|
|
6
|
-
[divisionCode: string]: string
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
1
|
+
|
|
2
|
+
export interface DynamoFM_Division_Collection {
|
|
3
|
+
[iso2: string]: {
|
|
4
|
+
name: string;
|
|
5
|
+
divisions: {
|
|
6
|
+
[divisionCode: string]: string
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DynamoFM_SubdivisionRegionType } from '../../../_enums/location/subdivision-region-type.enum';
|
|
2
|
-
import { DynamoFM_CountryISO } from './country-iso.interface';
|
|
3
|
-
|
|
4
|
-
export interface DynamoFM_SubdivisionRegionData extends DynamoFM_CountryISO {
|
|
5
|
-
type?: DynamoFM_SubdivisionRegionType;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { DynamoFM_SubdivisionRegionType } from '../../../_enums/location/subdivision-region-type.enum';
|
|
2
|
+
import { DynamoFM_CountryISO } from './country-iso.interface';
|
|
3
|
+
|
|
4
|
+
export interface DynamoFM_SubdivisionRegionData extends DynamoFM_CountryISO {
|
|
5
|
+
type?: DynamoFM_SubdivisionRegionType;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
export interface DynamoFM_GeoIpLocation {
|
|
3
|
-
/** [ <low bound of IP block>, <high bound of IP block> ] */
|
|
4
|
-
range: [number, number];
|
|
5
|
-
/** 2 letter ISO-3166-1 country code https://www.iban.com/country-codes */
|
|
6
|
-
country: string;
|
|
7
|
-
/**
|
|
8
|
-
* Up to 3 alphanumeric variable length characters as ISO 3166-2 code
|
|
9
|
-
* For US states this is the 2 letter state
|
|
10
|
-
* For the United Kingdom this could be ENG as a country like “England
|
|
11
|
-
* FIPS 10-4 subcountry code
|
|
12
|
-
*/
|
|
13
|
-
region: string;
|
|
14
|
-
/** 1 if the country is a member state of the European Union, 0 otherwise. */
|
|
15
|
-
eu: '1' | '0';
|
|
16
|
-
/** "Country/Zone" Timezone from IANA Time Zone Database */
|
|
17
|
-
timezone: string;
|
|
18
|
-
/** This is the full city name */
|
|
19
|
-
city: string;
|
|
20
|
-
/** The latitude and longitude of the city */
|
|
21
|
-
ll: [number, number];
|
|
22
|
-
/** Metro code */
|
|
23
|
-
metro: number;
|
|
24
|
-
/** The approximate accuracy radius (km), around the latitude and longitude */
|
|
25
|
-
area: number;
|
|
26
|
-
}
|
|
1
|
+
|
|
2
|
+
export interface DynamoFM_GeoIpLocation {
|
|
3
|
+
/** [ <low bound of IP block>, <high bound of IP block> ] */
|
|
4
|
+
range: [number, number];
|
|
5
|
+
/** 2 letter ISO-3166-1 country code https://www.iban.com/country-codes */
|
|
6
|
+
country: string;
|
|
7
|
+
/**
|
|
8
|
+
* Up to 3 alphanumeric variable length characters as ISO 3166-2 code
|
|
9
|
+
* For US states this is the 2 letter state
|
|
10
|
+
* For the United Kingdom this could be ENG as a country like “England
|
|
11
|
+
* FIPS 10-4 subcountry code
|
|
12
|
+
*/
|
|
13
|
+
region: string;
|
|
14
|
+
/** 1 if the country is a member state of the European Union, 0 otherwise. */
|
|
15
|
+
eu: '1' | '0';
|
|
16
|
+
/** "Country/Zone" Timezone from IANA Time Zone Database */
|
|
17
|
+
timezone: string;
|
|
18
|
+
/** This is the full city name */
|
|
19
|
+
city: string;
|
|
20
|
+
/** The latitude and longitude of the city */
|
|
21
|
+
ll: [number, number];
|
|
22
|
+
/** Metro code */
|
|
23
|
+
metro: number;
|
|
24
|
+
/** The approximate accuracy radius (km), around the latitude and longitude */
|
|
25
|
+
area: number;
|
|
26
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// LOCATION INTERFACES
|
|
4
|
-
export * from './country-division.interface';
|
|
5
|
-
export * from './country-iso.interface';
|
|
6
|
-
export * from './country-phone-code.interface';
|
|
7
|
-
export * from './division-collection.interface';
|
|
8
|
-
export * from './division-region-data.interface';
|
|
9
|
-
export * from './geo-ip-location.interface';
|
|
10
|
-
export * from './location-coordinates.interface';
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
// LOCATION INTERFACES
|
|
4
|
+
export * from './country-division.interface';
|
|
5
|
+
export * from './country-iso.interface';
|
|
6
|
+
export * from './country-phone-code.interface';
|
|
7
|
+
export * from './division-collection.interface';
|
|
8
|
+
export * from './division-region-data.interface';
|
|
9
|
+
export * from './geo-ip-location.interface';
|
|
10
|
+
export * from './location-coordinates.interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export interface DynamoFM_LocationCoordinates {
|
|
3
|
-
longitude: number;
|
|
4
|
-
latitude: number;
|
|
5
|
-
}
|
|
1
|
+
|
|
2
|
+
export interface DynamoFM_LocationCoordinates {
|
|
3
|
+
longitude: number;
|
|
4
|
+
latitude: number;
|
|
5
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { DynamoFM_MultiPipeAvailable } from '../../_enums/pipe.enum';
|
|
3
|
-
|
|
4
|
-
export type DynamoFM_MultiPipe_Setting = {
|
|
5
|
-
[pipeName in DynamoFM_MultiPipeAvailable]?: any[];
|
|
6
|
-
};
|
|
7
|
-
|
|
1
|
+
|
|
2
|
+
import { DynamoFM_MultiPipeAvailable } from '../../_enums/pipe.enum';
|
|
3
|
+
|
|
4
|
+
export type DynamoFM_MultiPipe_Setting = {
|
|
5
|
+
[pipeName in DynamoFM_MultiPipeAvailable]?: any[];
|
|
6
|
+
};
|
|
7
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface DynamoFM_Paged<T> {
|
|
4
|
-
pageIndex: number;
|
|
5
|
-
pageSize: number;
|
|
6
|
-
total: number;
|
|
7
|
-
totalPageCount?: number;
|
|
8
|
-
items: T[];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export interface DynamoFM_Paged<T> {
|
|
4
|
+
pageIndex: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
total: number;
|
|
7
|
+
totalPageCount?: number;
|
|
8
|
+
items: T[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import { DynamoFM_RangeValue } from '../control-models/range-value.control-model';
|
|
7
|
-
import { DynamoFM_MultiPipe_Setting } from './multi-pipe-settings.type';
|
|
8
|
-
import { DynamoFM_Pipe } from '../../_enums/pipe.enum';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export interface DynamoFM_PipeTransforms {
|
|
12
|
-
[DynamoFM_Pipe.country]: (value: string) => string;
|
|
13
|
-
[DynamoFM_Pipe.custom]: <T, K>(value: T, customTransform: (input: T) => K) => K;
|
|
14
|
-
[DynamoFM_Pipe.division]: (value: string, countryISO: string) => string;
|
|
15
|
-
[DynamoFM_Pipe.list]: (value: any[]) => string;
|
|
16
|
-
[DynamoFM_Pipe.multiPipe]: (value: any, pipes: any[]) => any;
|
|
17
|
-
[DynamoFM_Pipe.objKey]: (value: any, key: string) => any;
|
|
18
|
-
[DynamoFM_Pipe.range]: (
|
|
19
|
-
value: DynamoFM_RangeValue,
|
|
20
|
-
setting:
|
|
21
|
-
multiPipes: DynamoFM_MultiPipe_Setting[]
|
|
22
|
-
) => string | number | DynamoFM_RangeValue;
|
|
23
|
-
[DynamoFM_Pipe.region]: (value: string) => string;
|
|
24
|
-
[DynamoFM_Pipe.replace]: (value: string, from: string, to: string) => string;
|
|
25
|
-
[DynamoFM_Pipe.slider]: (
|
|
26
|
-
value: number | DynamoFM_RangeValue<number> | string
|
|
27
|
-
) => string;
|
|
28
|
-
[DynamoFM_Pipe.smartReplace]: (value: string, replace: any[]) => string;
|
|
29
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
import { DynamoFM_RangePipe_Setting } from '../../_enums/range-pipe-setting.enum';
|
|
6
|
+
import { DynamoFM_RangeValue } from '../control-models/range-value.control-model';
|
|
7
|
+
import { DynamoFM_MultiPipe_Setting } from './multi-pipe-settings.type';
|
|
8
|
+
import { DynamoFM_Pipe } from '../../_enums/pipe.enum';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export interface DynamoFM_PipeTransforms {
|
|
12
|
+
[DynamoFM_Pipe.country]: (value: string) => string;
|
|
13
|
+
[DynamoFM_Pipe.custom]: <T, K>(value: T, customTransform: (input: T) => K) => K;
|
|
14
|
+
[DynamoFM_Pipe.division]: (value: string, countryISO: string) => string;
|
|
15
|
+
[DynamoFM_Pipe.list]: (value: any[]) => string;
|
|
16
|
+
[DynamoFM_Pipe.multiPipe]: (value: any, pipes: any[]) => any;
|
|
17
|
+
[DynamoFM_Pipe.objKey]: (value: any, key: string) => any;
|
|
18
|
+
[DynamoFM_Pipe.range]: (
|
|
19
|
+
value: DynamoFM_RangeValue,
|
|
20
|
+
setting: DynamoFM_RangePipe_Setting,
|
|
21
|
+
multiPipes: DynamoFM_MultiPipe_Setting[]
|
|
22
|
+
) => string | number | DynamoFM_RangeValue;
|
|
23
|
+
[DynamoFM_Pipe.region]: (value: string) => string;
|
|
24
|
+
[DynamoFM_Pipe.replace]: (value: string, from: string, to: string) => string;
|
|
25
|
+
[DynamoFM_Pipe.slider]: (
|
|
26
|
+
value: number | DynamoFM_RangeValue<number> | string
|
|
27
|
+
) => string;
|
|
28
|
+
[DynamoFM_Pipe.smartReplace]: (value: string, replace: any[]) => string;
|
|
29
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface DynamoFM_RandomWeight<T> {
|
|
4
|
-
chance: number;
|
|
5
|
-
result: T;
|
|
6
|
-
}
|
|
7
|
-
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export interface DynamoFM_RandomWeight<T> {
|
|
4
|
+
chance: number;
|
|
5
|
+
result: T;
|
|
6
|
+
}
|
|
7
|
+
|