@futdevpro/fsm-dynamo 1.5.75 → 1.5.76
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/lib/_constants/error-defaults.const.d.ts +2 -2
- package/lib/_constants/error-defaults.const.js +11 -11
- package/lib/_constants/index.d.ts +3 -3
- package/lib/_constants/index.js +8 -8
- package/lib/_constants/location/country-codes-ISO-3166.json +3239 -3239
- package/lib/_constants/location/country-divisions-ISO-3166-all-list.json +19036 -19036
- package/lib/_constants/location/country-phone-codes.json +1202 -1202
- package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts +2 -2
- package/lib/_constants/module-settings/custom-data-module-settings.const.js +10 -10
- package/lib/_constants/module-settings/index.d.ts +3 -3
- package/lib/_constants/module-settings/index.js +7 -7
- package/lib/_constants/module-settings/test-module-settings.const.d.ts +2 -2
- package/lib/_constants/module-settings/test-module-settings.const.js +14 -14
- package/lib/_constants/module-settings/usage-module-settings.const.d.ts +2 -2
- package/lib/_constants/module-settings/usage-module-settings.const.js +12 -12
- package/lib/_constants/times.const.d.ts +7 -7
- package/lib/_constants/times.const.js +10 -10
- package/lib/_enums/basic-property-type.enum.d.ts +7 -7
- package/lib/_enums/basic-property-type.enum.js +11 -11
- package/lib/_enums/basic-property-type.enum.js.map +1 -1
- package/lib/_enums/data-model-type.enum.d.ts +5 -5
- package/lib/_enums/data-model-type.enum.js +9 -9
- package/lib/_enums/data-model-type.enum.js.map +1 -1
- package/lib/_enums/index.d.ts +6 -6
- package/lib/_enums/index.js +10 -10
- package/lib/_enums/log-style.enum.d.ts +25 -25
- package/lib/_enums/log-style.enum.js +29 -29
- package/lib/_enums/log-style.enum.js.map +1 -1
- package/lib/_enums/region.enum.d.ts +7 -7
- package/lib/_enums/region.enum.js +11 -11
- package/lib/_enums/region.enum.js.map +1 -1
- package/lib/_enums/sub-region.enum.d.ts +19 -19
- package/lib/_enums/sub-region.enum.js +23 -23
- package/lib/_enums/sub-region.enum.js.map +1 -1
- package/lib/_enums/subdivision-region-type.enum.d.ts +40 -40
- package/lib/_enums/subdivision-region-type.enum.js +45 -45
- package/lib/_enums/subdivision-region-type.enum.js.map +1 -1
- package/lib/_models/control-models/daily-usage-data.control-model.d.ts +11 -11
- package/lib/_models/control-models/daily-usage-data.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/daily-usage-data.control-model.js +17 -16
- package/lib/_models/control-models/daily-usage-data.control-model.js.map +1 -1
- package/lib/_models/control-models/data-params.control-model.d.ts +12 -12
- package/lib/_models/control-models/data-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/data-params.control-model.js +22 -19
- package/lib/_models/control-models/data-params.control-model.js.map +1 -1
- package/lib/_models/control-models/data-property-params.control-model.d.ts +28 -28
- package/lib/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/data-property-params.control-model.js +69 -54
- package/lib/_models/control-models/data-property-params.control-model.js.map +1 -1
- package/lib/_models/control-models/error.control-model.d.ts +281 -281
- package/lib/_models/control-models/error.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/error.control-model.js +180 -173
- package/lib/_models/control-models/error.control-model.js.map +1 -1
- package/lib/_models/control-models/error.control-model.spec.d.ts +1 -1
- package/lib/_models/control-models/error.control-model.spec.js +551 -573
- package/lib/_models/control-models/error.control-model.spec.js.map +1 -1
- package/lib/_models/control-models/index.d.ts +9 -9
- package/lib/_models/control-models/index.js +13 -13
- package/lib/_models/control-models/poll.control-model.d.ts +31 -31
- package/lib/_models/control-models/poll.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/poll.control-model.js +95 -87
- package/lib/_models/control-models/poll.control-model.js.map +1 -1
- package/lib/_models/control-models/range-value.control-model.d.ts +7 -7
- package/lib/_models/control-models/range-value.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/range-value.control-model.js +12 -10
- package/lib/_models/control-models/range-value.control-model.js.map +1 -1
- package/lib/_models/control-models/usage-action.control-model.d.ts +6 -6
- package/lib/_models/control-models/usage-action.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/usage-action.control-model.js +14 -12
- package/lib/_models/control-models/usage-action.control-model.js.map +1 -1
- package/lib/_models/control-models/usage-data.control-model.d.ts +10 -10
- package/lib/_models/control-models/usage-data.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/usage-data.control-model.js +15 -12
- package/lib/_models/control-models/usage-data.control-model.js.map +1 -1
- package/lib/_models/data-models/custom-data.data-model.d.ts +9 -9
- package/lib/_models/data-models/custom-data.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/custom-data.data-model.js +21 -20
- package/lib/_models/data-models/custom-data.data-model.js.map +1 -1
- package/lib/_models/data-models/index.d.ts +3 -3
- package/lib/_models/data-models/index.js +7 -7
- package/lib/_models/data-models/metadata.data-model.d.ts +14 -14
- package/lib/_models/data-models/metadata.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/metadata.data-model.js +45 -39
- package/lib/_models/data-models/metadata.data-model.js.map +1 -1
- package/lib/_models/data-models/usage-session.data-model.d.ts +18 -18
- package/lib/_models/data-models/usage-session.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/usage-session.data-model.js +44 -36
- package/lib/_models/data-models/usage-session.data-model.js.map +1 -1
- package/lib/_models/index.d.ts +3 -3
- package/lib/_models/index.js +10 -10
- package/lib/_models/interfaces/error-defaults.interface.d.ts +8 -8
- package/lib/_models/interfaces/error-defaults.interface.js +2 -2
- package/lib/_models/interfaces/index.d.ts +4 -4
- package/lib/_models/interfaces/index.js +9 -9
- package/lib/_models/interfaces/location/country-division.interface.d.ts +5 -5
- package/lib/_models/interfaces/location/country-division.interface.js +2 -2
- package/lib/_models/interfaces/location/country-iso.interface.d.ts +18 -18
- package/lib/_models/interfaces/location/country-iso.interface.js +2 -2
- package/lib/_models/interfaces/location/country-phone-code.interface.d.ts +5 -5
- package/lib/_models/interfaces/location/country-phone-code.interface.js +2 -2
- package/lib/_models/interfaces/location/division-collection.interface.d.ts +8 -8
- package/lib/_models/interfaces/location/division-collection.interface.js +2 -2
- package/lib/_models/interfaces/location/division-region-data.interface.d.ts +5 -5
- package/lib/_models/interfaces/location/division-region-data.interface.js +2 -2
- package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts +25 -25
- package/lib/_models/interfaces/location/geo-ip-location.interface.js +2 -2
- package/lib/_models/interfaces/location/index.d.ts +7 -7
- package/lib/_models/interfaces/location/index.js +11 -11
- package/lib/_models/interfaces/location/location-coordinates.interface.d.ts +4 -4
- package/lib/_models/interfaces/location/location-coordinates.interface.js +2 -2
- package/lib/_models/interfaces/random-weight.interface.d.ts +4 -4
- package/lib/_models/interfaces/random-weight.interface.js +2 -2
- package/lib/_models/interfaces/route-settings.interface.d.ts +8 -8
- package/lib/_models/interfaces/route-settings.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/route-settings.interface.js +2 -2
- package/lib/_modules/collections.index.d.ts +1 -1
- package/lib/_modules/collections.index.js +4 -4
- package/lib/_modules/constants.index.d.ts +1 -1
- package/lib/_modules/constants.index.js +4 -4
- package/lib/_modules/custom-data-module.index.d.ts +2 -2
- package/lib/_modules/custom-data-module.index.js +6 -6
- package/lib/_modules/data-modules.index.d.ts +5 -5
- package/lib/_modules/data-modules.index.js +9 -9
- package/lib/_modules/enums.index.d.ts +1 -1
- package/lib/_modules/enums.index.js +4 -4
- package/lib/_modules/error-module.index.d.ts +3 -3
- package/lib/_modules/error-module.index.js +7 -7
- package/lib/_modules/location.index.d.ts +6 -6
- package/lib/_modules/location.index.js +12 -12
- package/lib/_modules/models.index.d.ts +1 -1
- package/lib/_modules/models.index.js +4 -4
- package/lib/_modules/shared-service.index.d.ts +7 -7
- package/lib/_modules/shared-service.index.js +11 -11
- package/lib/_modules/test-module.index.d.ts +1 -1
- package/lib/_modules/test-module.index.js +5 -5
- package/lib/_modules/usage-module.index.d.ts +5 -5
- package/lib/_modules/usage-module.index.js +9 -9
- package/lib/_utils/array.util.d.ts +7 -7
- package/lib/_utils/array.util.d.ts.map +1 -1
- package/lib/_utils/array.util.js +32 -37
- package/lib/_utils/array.util.js.map +1 -1
- package/lib/_utils/array.util.spec.d.ts +1 -1
- package/lib/_utils/array.util.spec.js +29 -30
- package/lib/_utils/array.util.spec.js.map +1 -1
- package/lib/_utils/index.d.ts +13 -13
- package/lib/_utils/index.js +17 -17
- package/lib/_utils/location.util.d.ts +6 -6
- package/lib/_utils/location.util.d.ts.map +1 -1
- package/lib/_utils/location.util.js +39 -39
- package/lib/_utils/log.util.d.ts +54 -54
- package/lib/_utils/log.util.d.ts.map +1 -1
- package/lib/_utils/log.util.js +189 -189
- package/lib/_utils/log.util.js.map +1 -1
- package/lib/_utils/metadata.util.d.ts +4 -4
- package/lib/_utils/metadata.util.js +24 -24
- package/lib/_utils/random.util.d.ts +8 -8
- package/lib/_utils/random.util.d.ts.map +1 -1
- package/lib/_utils/random.util.js +59 -59
- package/lib/_utils/random.util.js.map +1 -1
- package/lib/_utils/regex.util.d.ts +1 -1
- package/lib/_utils/regex.util.js +4 -4
- package/lib/_utils/regions.util.d.ts +16 -16
- package/lib/_utils/regions.util.d.ts.map +1 -1
- package/lib/_utils/regions.util.js +66 -67
- package/lib/_utils/regions.util.js.map +1 -1
- package/lib/_utils/round-list.util.d.ts +8 -8
- package/lib/_utils/round-list.util.d.ts.map +1 -1
- package/lib/_utils/round-list.util.js +38 -38
- package/lib/_utils/shared.static-service.d.ts +73 -73
- package/lib/_utils/shared.static-service.d.ts.map +1 -1
- package/lib/_utils/shared.static-service.js +150 -150
- package/lib/_utils/shared.static-service.js.map +1 -1
- package/lib/_utils/time.util.d.ts +13 -13
- package/lib/_utils/time.util.d.ts.map +1 -1
- package/lib/_utils/time.util.js +40 -40
- package/lib/_utils/trigonometry.util.d.ts +45 -45
- package/lib/_utils/trigonometry.util.d.ts.map +1 -1
- package/lib/_utils/trigonometry.util.js +61 -61
- package/lib/_utils/utilities.util.d.ts +36 -36
- package/lib/_utils/utilities.util.js +94 -94
- package/lib/_utils/vector.util.d.ts +37 -37
- package/lib/_utils/vector.util.js +109 -106
- package/lib/_utils/vector.util.js.map +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.js +11 -11
- package/lib/tsconfig.tsbuildinfo +1 -3547
- package/package.json +7 -7
- package/src/_models/control-models/error.control-model.spec.ts +1 -1
- package/src/_models/control-models/error.control-model.ts +1 -1
- package/tsconfig.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.util.js","sourceRoot":"","sources":["../../src/_utils/random.util.ts"],"names":[],"mappings":";;;AAIA,MAAa,aAAa;IACxB,MAAM,CAAC,oBAAoB,CAAC,GAAW,EAAE,GAAW,EAAE,OAA+B;QACnF,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,eAAe,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,eAAe,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,GAAG,eAAe,EAAE;YACvB,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC;SAC/E;QAED,MAAM,YAAY,GAAW,IAAI,CAAC,MAAM,EAAE,CAAC;QAC3C,IAAI,MAAc,CAAC;QACnB,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC,EAAE,EAAE;YAC/D,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAC7B,IAAI,YAAY,GAAG,OAAO,EAAE;gBAC1B,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,MA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AM,CAAC,CAAC;QACtD,IAAI,eAAe,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,eAAe,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5D,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC;QAE9E,MAAM,YAAY,GAAW,IAAI,CAAC,MAAM,EAAE,CAAC;QAC3C,IAAI,MAAS,CAAC;QACd,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC,EAAE,EAAE;YAC/D,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAC7B,IAAI,YAAY,GAAG,OAAO,EAAE;gBAC1B,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;aAC5B;SACF;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AA5DD,sCA4DC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const emailRegex: RegExp;
|
|
1
|
+
export declare const emailRegex: RegExp;
|
|
2
2
|
//# sourceMappingURL=regex.util.d.ts.map
|
package/lib/_utils/regex.util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.emailRegex = void 0;
|
|
4
|
-
exports.emailRegex = new RegExp('^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$');
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emailRegex = void 0;
|
|
4
|
+
exports.emailRegex = new RegExp('^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$');
|
|
5
5
|
//# sourceMappingURL=regex.util.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Dynamo_Region } from '../_enums/region.enum';
|
|
2
|
-
import { CountryPhoneCode } from '../_models/interfaces/location/country-phone-code.interface';
|
|
3
|
-
import { CountryISO } from '../_models/interfaces/location/country-iso.interface';
|
|
4
|
-
import { CountryDivision } from '../_models/interfaces/location/country-division.interface';
|
|
5
|
-
export
|
|
6
|
-
export declare class Dynamo_Regions {
|
|
7
|
-
static divisions: CountryDivision[];
|
|
8
|
-
static phoneCodes: CountryPhoneCode[];
|
|
9
|
-
static ISOs: CountryISO[];
|
|
10
|
-
private static getAllDivisions;
|
|
11
|
-
private static getAllPhoneCodes;
|
|
12
|
-
private static getAllCountryISO;
|
|
13
|
-
static isoToCountryIso(iso2: string): CountryISO;
|
|
14
|
-
static isoToRegion(iso2: string): Dynamo_Region;
|
|
15
|
-
static isoToPhoneCode(iso2: string): CountryPhoneCode;
|
|
16
|
-
}
|
|
1
|
+
import { Dynamo_Region } from '../_enums/region.enum';
|
|
2
|
+
import { CountryPhoneCode } from '../_models/interfaces/location/country-phone-code.interface';
|
|
3
|
+
import { CountryISO } from '../_models/interfaces/location/country-iso.interface';
|
|
4
|
+
import { CountryDivision } from '../_models/interfaces/location/country-division.interface';
|
|
5
|
+
export type D_Regions = Dynamo_Regions;
|
|
6
|
+
export declare class Dynamo_Regions {
|
|
7
|
+
static divisions: CountryDivision[];
|
|
8
|
+
static phoneCodes: CountryPhoneCode[];
|
|
9
|
+
static ISOs: CountryISO[];
|
|
10
|
+
private static getAllDivisions;
|
|
11
|
+
private static getAllPhoneCodes;
|
|
12
|
+
private static getAllCountryISO;
|
|
13
|
+
static isoToCountryIso(iso2: string): CountryISO;
|
|
14
|
+
static isoToRegion(iso2: string): Dynamo_Region;
|
|
15
|
+
static isoToPhoneCode(iso2: string): CountryPhoneCode;
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=regions.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regions.util.d.ts","sourceRoot":"","sources":["../../src/_utils/regions.util.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAI5F,
|
|
1
|
+
{"version":3,"file":"regions.util.d.ts","sourceRoot":"","sources":["../../src/_utils/regions.util.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAI5F,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC;AACvC,qBAAa,cAAc;IAEzB,MAAM,CAAC,SAAS,EAAE,eAAe,EAAE,CAAoC;IACvE,MAAM,CAAC,UAAU,EAAE,gBAAgB,EAAE,CAAqC;IAC1E,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,CAAqC;IAE9D,OAAO,CAAC,MAAM,CAAC,eAAe;IAG9B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAM/B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAS/B,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;IAWhD,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa;IAW/C,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB;CAUtD"}
|
|
@@ -1,68 +1,67 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Dynamo_Regions = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const ISOs = tslib_1.__importStar(require("../_constants/location/country-codes-ISO-3166.json"));
|
|
6
|
-
const PhoneCodes = tslib_1.__importStar(require("../_constants/location/country-phone-codes.json"));
|
|
7
|
-
const Divisions = tslib_1.__importStar(require("../_constants/location/country-divisions-ISO-3166-all-list.json"));
|
|
8
|
-
const _models_1 = require("../_models");
|
|
9
|
-
const utilities_util_1 = require("./utilities.util");
|
|
10
|
-
class Dynamo_Regions {
|
|
11
|
-
static
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
static
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
Dynamo_Regions
|
|
67
|
-
Dynamo_Regions.ISOs = Dynamo_Regions.getAllCountryISO();
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Dynamo_Regions = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ISOs = tslib_1.__importStar(require("../_constants/location/country-codes-ISO-3166.json"));
|
|
6
|
+
const PhoneCodes = tslib_1.__importStar(require("../_constants/location/country-phone-codes.json"));
|
|
7
|
+
const Divisions = tslib_1.__importStar(require("../_constants/location/country-divisions-ISO-3166-all-list.json"));
|
|
8
|
+
const _models_1 = require("../_models");
|
|
9
|
+
const utilities_util_1 = require("./utilities.util");
|
|
10
|
+
class Dynamo_Regions {
|
|
11
|
+
/* static divisions: DivisionCollection = Dynamo_Regions.getSubdivisionCollection(); */
|
|
12
|
+
static divisions = Dynamo_Regions.getAllDivisions();
|
|
13
|
+
static phoneCodes = Dynamo_Regions.getAllPhoneCodes();
|
|
14
|
+
static ISOs = Dynamo_Regions.getAllCountryISO();
|
|
15
|
+
static getAllDivisions() {
|
|
16
|
+
return (0, utilities_util_1.JSONListify)(Divisions);
|
|
17
|
+
}
|
|
18
|
+
static getAllPhoneCodes() {
|
|
19
|
+
return (0, utilities_util_1.JSONListify)(PhoneCodes);
|
|
20
|
+
}
|
|
21
|
+
/* private static getSubdivisionCollection(): DivisionCollection {
|
|
22
|
+
return Divisions as DivisionCollection;
|
|
23
|
+
} */
|
|
24
|
+
static getAllCountryISO() {
|
|
25
|
+
const result = (0, utilities_util_1.JSONListify)(ISOs);
|
|
26
|
+
result.forEach((iso) => {
|
|
27
|
+
iso.phoneCode = this.phoneCodes.find((pc) => pc.iso === iso.iso2)?.code;
|
|
28
|
+
iso.divisions = this.divisions.filter((d) => d.iso === iso.iso2);
|
|
29
|
+
});
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
32
|
+
static isoToCountryIso(iso2) {
|
|
33
|
+
const country = this.ISOs.find(iso => iso.iso2 == iso2);
|
|
34
|
+
if (!country) {
|
|
35
|
+
throw new _models_1.Dynamo_Error({
|
|
36
|
+
message: `Cannot find ISO-3166 code for this: ${iso2}`
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return country;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
static isoToRegion(iso2) {
|
|
44
|
+
const region = this.ISOs.find(iso => iso.iso2 == iso2).region;
|
|
45
|
+
if (!region) {
|
|
46
|
+
throw new _models_1.Dynamo_Error({
|
|
47
|
+
message: `Cannot find ISO-3166 code for this: ${iso2}`
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
return region;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
static isoToPhoneCode(iso2) {
|
|
55
|
+
const phoneCode = this.phoneCodes.find(code => code.iso == iso2);
|
|
56
|
+
if (!phoneCode) {
|
|
57
|
+
throw new _models_1.Dynamo_Error({
|
|
58
|
+
message: `Cannot find ISO-3166 code for this: ${iso2}`
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
return phoneCode;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.Dynamo_Regions = Dynamo_Regions;
|
|
68
67
|
//# sourceMappingURL=regions.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regions.util.js","sourceRoot":"","sources":["../../src/_utils/regions.util.ts"],"names":[],"mappings":";;;;AACA,iGAA2E;AAE3E,oGAA8E;AAC9E,mHAA6F;AAG7F,wCAA0C;AAK1C,qDAA+C;AAG/C,MAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"regions.util.js","sourceRoot":"","sources":["../../src/_utils/regions.util.ts"],"names":[],"mappings":";;;;AACA,iGAA2E;AAE3E,oGAA8E;AAC9E,mHAA6F;AAG7F,wCAA0C;AAK1C,qDAA+C;AAG/C,MAAa,cAAc;IACzB,uFAAuF;IACvF,MAAM,CAAC,SAAS,GAAsB,cAAc,CAAC,eAAe,EAAE,CAAC;IACvE,MAAM,CAAC,UAAU,GAAuB,cAAc,CAAC,gBAAgB,EAAE,CAAC;IAC1E,MAAM,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AAI,IAAI,CAAC,CAAC,MAAM,CAAC;QAC7E,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAI,sBAAY,CAAC;gBACrB,OAAO,EAAE,uCAAuC,IAAI,EAAE;aACvD,CAAC,CAAC;SACJ;aAAM;YACL,OAAO,MAAM,CAAC;SACf;IACH,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,IAAY;QAChC,MAAM,SAAS,GAAqB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC;QACnF,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAI,sBAAY,CAAC;gBACrB,OAAO,EAAE,uCAAuC,IAAI,EAAE;aACvD,CAAC,CAAC;SACJ;aAAM;YACL,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;;AAvDH,wCAwDC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare class Dynamo_RoundList {
|
|
3
|
-
static getOutboundedIndex(listLength: number, outboundIndex: number): number;
|
|
4
|
-
static getIndexOpposite(length: number, oppositeOf: number): number;
|
|
5
|
-
static getListIndex<T>(list: T[], outboundIndex: number): T;
|
|
6
|
-
static getListOpposite<T>(list: T[], oppositeOf: T): T;
|
|
7
|
-
static getLast<T>(list: T[]): T;
|
|
8
|
-
}
|
|
1
|
+
export type D_RoundList = Dynamo_RoundList;
|
|
2
|
+
export declare class Dynamo_RoundList {
|
|
3
|
+
static getOutboundedIndex(listLength: number, outboundIndex: number): number;
|
|
4
|
+
static getIndexOpposite(length: number, oppositeOf: number): number;
|
|
5
|
+
static getListIndex<T>(list: T[], outboundIndex: number): T;
|
|
6
|
+
static getListOpposite<T>(list: T[], oppositeOf: T): T;
|
|
7
|
+
static getLast<T>(list: T[]): T;
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=round-list.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"round-list.util.d.ts","sourceRoot":"","sources":["../../src/_utils/round-list.util.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"round-list.util.d.ts","sourceRoot":"","sources":["../../src/_utils/round-list.util.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAC3C,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,MAAM;IAgB5E,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM;IAOnE,MAAM,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;IAI3D,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC;IAItD,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC;CAOhC"}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Dynamo_RoundList = void 0;
|
|
4
|
-
class Dynamo_RoundList {
|
|
5
|
-
static getOutboundedIndex(listLength, outboundIndex) {
|
|
6
|
-
if (!(0 < listLength)) {
|
|
7
|
-
throw new Error('roundListPlusIndex failed. list is empty!');
|
|
8
|
-
}
|
|
9
|
-
if (outboundIndex < 0) {
|
|
10
|
-
outboundIndex = outboundIndex % listLength;
|
|
11
|
-
outboundIndex = listLength + outboundIndex;
|
|
12
|
-
}
|
|
13
|
-
if (listLength <= outboundIndex) {
|
|
14
|
-
outboundIndex = outboundIndex % listLength;
|
|
15
|
-
}
|
|
16
|
-
return outboundIndex;
|
|
17
|
-
}
|
|
18
|
-
static getIndexOpposite(length, oppositeOf) {
|
|
19
|
-
const plusIndex = oppositeOf + Math.round(length / 2);
|
|
20
|
-
const res = this.getOutboundedIndex(length, plusIndex);
|
|
21
|
-
return res;
|
|
22
|
-
}
|
|
23
|
-
static getListIndex(list, outboundIndex) {
|
|
24
|
-
return list[this.getOutboundedIndex(list.length, outboundIndex)];
|
|
25
|
-
}
|
|
26
|
-
static getListOpposite(list, oppositeOf) {
|
|
27
|
-
return list[this.getIndexOpposite(list.length, list.indexOf(oppositeOf))];
|
|
28
|
-
}
|
|
29
|
-
static getLast(list) {
|
|
30
|
-
if (0 < list.length) {
|
|
31
|
-
return list[list.length - 1];
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.Dynamo_RoundList = Dynamo_RoundList;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Dynamo_RoundList = void 0;
|
|
4
|
+
class Dynamo_RoundList {
|
|
5
|
+
static getOutboundedIndex(listLength, outboundIndex) {
|
|
6
|
+
if (!(0 < listLength)) {
|
|
7
|
+
throw new Error('roundListPlusIndex failed. list is empty!');
|
|
8
|
+
}
|
|
9
|
+
if (outboundIndex < 0) {
|
|
10
|
+
outboundIndex = outboundIndex % listLength;
|
|
11
|
+
outboundIndex = listLength + outboundIndex;
|
|
12
|
+
}
|
|
13
|
+
if (listLength <= outboundIndex) {
|
|
14
|
+
outboundIndex = outboundIndex % listLength;
|
|
15
|
+
}
|
|
16
|
+
return outboundIndex;
|
|
17
|
+
}
|
|
18
|
+
static getIndexOpposite(length, oppositeOf) {
|
|
19
|
+
const plusIndex = oppositeOf + Math.round(length / 2);
|
|
20
|
+
const res = this.getOutboundedIndex(length, plusIndex);
|
|
21
|
+
return res;
|
|
22
|
+
}
|
|
23
|
+
static getListIndex(list, outboundIndex) {
|
|
24
|
+
return list[this.getOutboundedIndex(list.length, outboundIndex)];
|
|
25
|
+
}
|
|
26
|
+
static getListOpposite(list, oppositeOf) {
|
|
27
|
+
return list[this.getIndexOpposite(list.length, list.indexOf(oppositeOf))];
|
|
28
|
+
}
|
|
29
|
+
static getLast(list) {
|
|
30
|
+
if (0 < list.length) {
|
|
31
|
+
return list[list.length - 1];
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Dynamo_RoundList = Dynamo_RoundList;
|
|
39
39
|
//# sourceMappingURL=round-list.util.js.map
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare class Dynamo_Shared {
|
|
3
|
-
/**
|
|
4
|
-
* returns remapped object list by path list
|
|
5
|
-
* @param objList object list to map
|
|
6
|
-
* @param paths string list of path etc.:
|
|
7
|
-
* ```ts
|
|
8
|
-
* [ [ 'first', 'sub', 'label' ], [ 'first', 'dif', 'name' ] ]
|
|
9
|
-
* ```
|
|
10
|
-
* will be...
|
|
11
|
-
* from
|
|
12
|
-
* ```ts
|
|
13
|
-
* {
|
|
14
|
-
* first: {
|
|
15
|
-
* sub: {
|
|
16
|
-
* label: 'vlmi'
|
|
17
|
-
* },
|
|
18
|
-
* dif: {
|
|
19
|
-
* name: 'asd'
|
|
20
|
-
* }
|
|
21
|
-
* }
|
|
22
|
-
* }[]
|
|
23
|
-
* ```
|
|
24
|
-
* to
|
|
25
|
-
* ```
|
|
26
|
-
* { label: 'vlmi', name: 'asd' }[]
|
|
27
|
-
* ```
|
|
28
|
-
* @returns remapped object list (the final obj will use the deepest keys)
|
|
29
|
-
*/
|
|
30
|
-
static mapObjList(objList: object[], paths: string[][]): object[];
|
|
31
|
-
/**
|
|
32
|
-
* returns nested value from object
|
|
33
|
-
* @param parentObj data source object
|
|
34
|
-
* @param nestedDataKeys path of value as string list
|
|
35
|
-
* etc.: ['nestLvl1', 'nestLvl2', 'nestLvl3'] as parentObj.nestLvl1.nestLvl2.nestLvl3
|
|
36
|
-
* @returns data from object by path
|
|
37
|
-
*/
|
|
38
|
-
static getNestedData(parentObj: object, nestedDataKeys: string[]): any;
|
|
39
|
-
/**
|
|
40
|
-
* recursive function that nests data
|
|
41
|
-
* @param newData the object that that is needed to be updated
|
|
42
|
-
* @param nestKeys the path where the data should be updated
|
|
43
|
-
* @param dataToSet the actual value that will be setted
|
|
44
|
-
* @returns modified data
|
|
45
|
-
*/
|
|
46
|
-
static nestData(parentObj: object, nestKeys: string[], dataToSet: any): object;
|
|
47
|
-
/**
|
|
48
|
-
* recursive function that adds to nested data
|
|
49
|
-
* @param newData the object that that is needed to be updated
|
|
50
|
-
* @param nestKeys the path where the data should be updated
|
|
51
|
-
* @param dataToAdd the actual value that will be setted
|
|
52
|
-
* @returns modified data
|
|
53
|
-
*/
|
|
54
|
-
static addToNestedData(parentObj: object, nestKeys: string[], dataToAdd: any): object;
|
|
55
|
-
/**
|
|
56
|
-
* recursive function that pushes to nested data
|
|
57
|
-
* @param newData the object that that is needed to be updated
|
|
58
|
-
* @param nestKeys the path where the data should be updated
|
|
59
|
-
* @param dataToPush the actual value that will be setted
|
|
60
|
-
* @returns modified data
|
|
61
|
-
*/
|
|
62
|
-
static pushToNestedData(parentObj: object, nestKeys: string[], dataToPush: any): object;
|
|
63
|
-
/**
|
|
64
|
-
* recursive function that nests data on recursive data structure etc.: xData: { ..., 'nestedListKey': xData[] }
|
|
65
|
-
* @param newData the object that that is needed to be updated
|
|
66
|
-
* @param nestedListKey the location of nested dataList
|
|
67
|
-
* @param nestIndexes path to the subject ect.: xData.listKey[1].listKey[4].listKey[0] will be [1, 4, 0]
|
|
68
|
-
* @param dataToSet the actual value that will be setted on location
|
|
69
|
-
* @returns modified data
|
|
70
|
-
*/
|
|
71
|
-
static nestRecursiveListedData<T>(parentObj: T, nestedListKey: string, nestIndexes: number[], dataToSet: any): T;
|
|
72
|
-
static addMetadataToSchema(schema: any): any;
|
|
73
|
-
}
|
|
1
|
+
export type D_Shared = Dynamo_Shared;
|
|
2
|
+
export declare class Dynamo_Shared {
|
|
3
|
+
/**
|
|
4
|
+
* returns remapped object list by path list
|
|
5
|
+
* @param objList object list to map
|
|
6
|
+
* @param paths string list of path etc.:
|
|
7
|
+
* ```ts
|
|
8
|
+
* [ [ 'first', 'sub', 'label' ], [ 'first', 'dif', 'name' ] ]
|
|
9
|
+
* ```
|
|
10
|
+
* will be...
|
|
11
|
+
* from
|
|
12
|
+
* ```ts
|
|
13
|
+
* {
|
|
14
|
+
* first: {
|
|
15
|
+
* sub: {
|
|
16
|
+
* label: 'vlmi'
|
|
17
|
+
* },
|
|
18
|
+
* dif: {
|
|
19
|
+
* name: 'asd'
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* }[]
|
|
23
|
+
* ```
|
|
24
|
+
* to
|
|
25
|
+
* ```
|
|
26
|
+
* { label: 'vlmi', name: 'asd' }[]
|
|
27
|
+
* ```
|
|
28
|
+
* @returns remapped object list (the final obj will use the deepest keys)
|
|
29
|
+
*/
|
|
30
|
+
static mapObjList(objList: object[], paths: string[][]): object[];
|
|
31
|
+
/**
|
|
32
|
+
* returns nested value from object
|
|
33
|
+
* @param parentObj data source object
|
|
34
|
+
* @param nestedDataKeys path of value as string list
|
|
35
|
+
* etc.: ['nestLvl1', 'nestLvl2', 'nestLvl3'] as parentObj.nestLvl1.nestLvl2.nestLvl3
|
|
36
|
+
* @returns data from object by path
|
|
37
|
+
*/
|
|
38
|
+
static getNestedData(parentObj: object, nestedDataKeys: string[]): any;
|
|
39
|
+
/**
|
|
40
|
+
* recursive function that nests data
|
|
41
|
+
* @param newData the object that that is needed to be updated
|
|
42
|
+
* @param nestKeys the path where the data should be updated
|
|
43
|
+
* @param dataToSet the actual value that will be setted
|
|
44
|
+
* @returns modified data
|
|
45
|
+
*/
|
|
46
|
+
static nestData(parentObj: object, nestKeys: string[], dataToSet: any): object;
|
|
47
|
+
/**
|
|
48
|
+
* recursive function that adds to nested data
|
|
49
|
+
* @param newData the object that that is needed to be updated
|
|
50
|
+
* @param nestKeys the path where the data should be updated
|
|
51
|
+
* @param dataToAdd the actual value that will be setted
|
|
52
|
+
* @returns modified data
|
|
53
|
+
*/
|
|
54
|
+
static addToNestedData(parentObj: object, nestKeys: string[], dataToAdd: any): object;
|
|
55
|
+
/**
|
|
56
|
+
* recursive function that pushes to nested data
|
|
57
|
+
* @param newData the object that that is needed to be updated
|
|
58
|
+
* @param nestKeys the path where the data should be updated
|
|
59
|
+
* @param dataToPush the actual value that will be setted
|
|
60
|
+
* @returns modified data
|
|
61
|
+
*/
|
|
62
|
+
static pushToNestedData(parentObj: object, nestKeys: string[], dataToPush: any): object;
|
|
63
|
+
/**
|
|
64
|
+
* recursive function that nests data on recursive data structure etc.: xData: { ..., 'nestedListKey': xData[] }
|
|
65
|
+
* @param newData the object that that is needed to be updated
|
|
66
|
+
* @param nestedListKey the location of nested dataList
|
|
67
|
+
* @param nestIndexes path to the subject ect.: xData.listKey[1].listKey[4].listKey[0] will be [1, 4, 0]
|
|
68
|
+
* @param dataToSet the actual value that will be setted on location
|
|
69
|
+
* @returns modified data
|
|
70
|
+
*/
|
|
71
|
+
static nestRecursiveListedData<T>(parentObj: T, nestedListKey: string, nestIndexes: number[], dataToSet: any): T;
|
|
72
|
+
static addMetadataToSchema(schema: any): any;
|
|
73
|
+
}
|
|
74
74
|
//# sourceMappingURL=shared.static-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.static-service.d.ts","sourceRoot":"","sources":["../../src/_utils/shared.static-service.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"shared.static-service.d.ts","sourceRoot":"","sources":["../../src/_utils/shared.static-service.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG,aAAa,CAAC;AACrC,qBAAa,aAAa;IAExB;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE;IAYjE;;;;;;OAMG;IACH,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,GAAG;IAUtE;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,GAAG,MAAM;IAY9E;;;;;;OAMG;IACH,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,GAAG,MAAM;IAYrF;;;;;;OAMG;IACH,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,GAAG,GAAG,MAAM;IAgBvF;;;;;;;OAOG;IACH,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,GAAG,CAAC;IAahH,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,GAAG,GAAG,GAAG;CAO7C"}
|