@yamato-daiwa/es-extensions 1.6.1 → 1.6.2
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/Distributable/cjs/DataMocking/DataMocking.js +27 -0
- package/Distributable/cjs/DataMocking/MockGatewayHelpler/MockGatewayHelper.js +75 -0
- package/Distributable/cjs/DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english.js +27 -0
- package/Distributable/cjs/DateTime/TimePoint.js +1 -0
- package/Distributable/cjs/RandomValuesGenerators/getRandomInteger.js +11 -1
- package/Distributable/cjs/RandomValuesGenerators/getRandomString/GetRandomStringOperationLocalization__English.js +5 -5
- package/Distributable/cjs/index.js +10 -4
- package/Distributable/esm/DataMocking/DataMocking.d.ts +15 -0
- package/Distributable/esm/DataMocking/DataMocking.js +22 -0
- package/Distributable/esm/DataMocking/MockGatewayHelpler/MockGatewayHelper.d.ts +58 -0
- package/Distributable/esm/DataMocking/MockGatewayHelpler/MockGatewayHelper.js +70 -0
- package/Distributable/esm/DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english.d.ts +3 -0
- package/Distributable/esm/DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english.js +22 -0
- package/Distributable/esm/DateTime/TimePoint.d.ts +0 -0
- package/Distributable/esm/DateTime/TimePoint.js +1 -0
- package/Distributable/esm/RandomValuesGenerators/getRandomInteger.d.ts +2 -2
- package/Distributable/esm/RandomValuesGenerators/getRandomInteger.js +11 -1
- package/Distributable/esm/RandomValuesGenerators/getRandomString/GetRandomStringOperationLocalization__English.js +5 -5
- package/Distributable/esm/index.d.ts +3 -0
- package/Distributable/esm/index.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const getRandomBoolean_1 = __importDefault(require("../RandomValuesGenerators/getRandomBoolean"));
|
|
7
|
+
class DataMocking {
|
|
8
|
+
static decideOptionalValue(sourceDataAndOptions) {
|
|
9
|
+
switch (sourceDataAndOptions.strategy) {
|
|
10
|
+
case DataMocking.OptionalPropertiesDecisionStrategies.mustGenerateAll:
|
|
11
|
+
return sourceDataAndOptions.preDefinedValue ?? sourceDataAndOptions.randomValueGenerator();
|
|
12
|
+
case DataMocking.OptionalPropertiesDecisionStrategies.mustSkipIfHasNotBeenPreDefined:
|
|
13
|
+
return sourceDataAndOptions.preDefinedValue;
|
|
14
|
+
case DataMocking.OptionalPropertiesDecisionStrategies.mustGenerateWith50PercentageProbability:
|
|
15
|
+
return (0, getRandomBoolean_1.default)() ? sourceDataAndOptions.randomValueGenerator() : void 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
(function (DataMocking) {
|
|
20
|
+
let OptionalPropertiesDecisionStrategies;
|
|
21
|
+
(function (OptionalPropertiesDecisionStrategies) {
|
|
22
|
+
OptionalPropertiesDecisionStrategies["mustGenerateAll"] = "MUST_GENERATE_ALL";
|
|
23
|
+
OptionalPropertiesDecisionStrategies["mustGenerateWith50PercentageProbability"] = "MUST_GENERATE_WITH_50_PERCENTAGE_PROBABILITY";
|
|
24
|
+
OptionalPropertiesDecisionStrategies["mustSkipIfHasNotBeenPreDefined"] = "MUST_SKIP_IF_HAS_NOT_BEEN_PRE_DEFINED";
|
|
25
|
+
})(OptionalPropertiesDecisionStrategies = DataMocking.OptionalPropertiesDecisionStrategies || (DataMocking.OptionalPropertiesDecisionStrategies = {}));
|
|
26
|
+
})(DataMocking || (DataMocking = {}));
|
|
27
|
+
exports.default = DataMocking;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Logger_1 = __importDefault(require("../../Logging/Logger"));
|
|
7
|
+
const DataRetrievingFailedError_1 = __importDefault(require("../../Errors/DataRetrievingFailed/DataRetrievingFailedError"));
|
|
8
|
+
const DataSubmittingFailedError_1 = __importDefault(require("../../Errors/DataSubmittingFailed/DataSubmittingFailedError"));
|
|
9
|
+
const getRandomInteger_1 = __importDefault(require("../../RandomValuesGenerators/getRandomInteger"));
|
|
10
|
+
const secondsToMilliseconds_1 = __importDefault(require("../../DateTime/secondsToMilliseconds"));
|
|
11
|
+
const stringifyAndFormatArbitraryValue_1 = __importDefault(require("../../Strings/stringifyAndFormatArbitraryValue"));
|
|
12
|
+
const isNeitherUndefinedNorNull_1 = __importDefault(require("../../TypeGuards/Nullables/isNeitherUndefinedNorNull"));
|
|
13
|
+
const MockGatewayHelperLocalization_english_1 = __importDefault(require("./MockGatewayHelperLocalization.english"));
|
|
14
|
+
class MockGatewayHelper {
|
|
15
|
+
static localization = MockGatewayHelperLocalization_english_1.default;
|
|
16
|
+
static MINIMAL_PENDING_PERIOD__SECONDS = 1;
|
|
17
|
+
static MAXIMAL_PENDING_PERIOD__SECONDS = 2;
|
|
18
|
+
static async simulateDataRetrieving(dataRetrievingSimulationConfiguration) {
|
|
19
|
+
const { requestParameters, getResponseData, minimalPendingPeriod__seconds = MockGatewayHelper.MINIMAL_PENDING_PERIOD__SECONDS, maximalPendingPeriod__seconds = MockGatewayHelper.MAXIMAL_PENDING_PERIOD__SECONDS, mustSimulateError = false, mustLogResponseData = false, gatewayName, transactionName } = dataRetrievingSimulationConfiguration;
|
|
20
|
+
return new Promise((resolve, reject) => {
|
|
21
|
+
setTimeout(() => {
|
|
22
|
+
if (mustSimulateError) {
|
|
23
|
+
reject(new DataRetrievingFailedError_1.default({
|
|
24
|
+
customMessage: MockGatewayHelper.localization.generateErrorSimulationCompletedLog({
|
|
25
|
+
transactionName, gatewayName
|
|
26
|
+
})
|
|
27
|
+
}));
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const responseData = getResponseData();
|
|
31
|
+
Logger_1.default.logSuccess(MockGatewayHelper.localization.generateDataRetrievingSimulationCompletedLog({
|
|
32
|
+
gatewayName,
|
|
33
|
+
transactionName,
|
|
34
|
+
...(0, isNeitherUndefinedNorNull_1.default)(requestParameters) ?
|
|
35
|
+
{ formattedRequestParameters: (0, stringifyAndFormatArbitraryValue_1.default)(requestParameters) } : null,
|
|
36
|
+
...mustLogResponseData && (0, isNeitherUndefinedNorNull_1.default)(responseData) ?
|
|
37
|
+
{ formattedResponseData: (0, stringifyAndFormatArbitraryValue_1.default)(responseData) } : null
|
|
38
|
+
}));
|
|
39
|
+
resolve(responseData);
|
|
40
|
+
}, (0, secondsToMilliseconds_1.default)((0, getRandomInteger_1.default)({
|
|
41
|
+
minimalValue: minimalPendingPeriod__seconds,
|
|
42
|
+
maximalValue: maximalPendingPeriod__seconds
|
|
43
|
+
})));
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
static async simulateDataSubmitting(dataSubmittingSimulationConfiguration) {
|
|
47
|
+
const { requestData, getResponseData, minimalPendingPeriod__seconds = MockGatewayHelper.MINIMAL_PENDING_PERIOD__SECONDS, maximalPendingPeriod__seconds = MockGatewayHelper.MAXIMAL_PENDING_PERIOD__SECONDS, mustSimulateError = false, mustLogResponseData = false, gatewayName, transactionName } = dataSubmittingSimulationConfiguration;
|
|
48
|
+
return new Promise((resolve, reject) => {
|
|
49
|
+
setTimeout(() => {
|
|
50
|
+
if (mustSimulateError) {
|
|
51
|
+
reject(new DataSubmittingFailedError_1.default({
|
|
52
|
+
customMessage: MockGatewayHelper.localization.generateErrorSimulationCompletedLog({
|
|
53
|
+
transactionName, gatewayName
|
|
54
|
+
})
|
|
55
|
+
}));
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const responseData = getResponseData();
|
|
59
|
+
Logger_1.default.logSuccess(MockGatewayHelper.localization.generateDataSubmittingSimulationCompletedLog({
|
|
60
|
+
gatewayName,
|
|
61
|
+
transactionName,
|
|
62
|
+
...(0, isNeitherUndefinedNorNull_1.default)(requestData) ?
|
|
63
|
+
{ formattedRequestData: (0, stringifyAndFormatArbitraryValue_1.default)(requestData) } : null,
|
|
64
|
+
...mustLogResponseData && (0, isNeitherUndefinedNorNull_1.default)(responseData) ?
|
|
65
|
+
{ formattedResponseData: (0, stringifyAndFormatArbitraryValue_1.default)(responseData) } : null
|
|
66
|
+
}));
|
|
67
|
+
resolve(responseData);
|
|
68
|
+
}, (0, secondsToMilliseconds_1.default)((0, getRandomInteger_1.default)({
|
|
69
|
+
minimalValue: minimalPendingPeriod__seconds,
|
|
70
|
+
maximalValue: maximalPendingPeriod__seconds
|
|
71
|
+
})));
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.default = MockGatewayHelper;
|
package/Distributable/cjs/DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const isNonEmptyString_1 = __importDefault(require("../../TypeGuards/Strings/isNonEmptyString"));
|
|
7
|
+
const MockGatewayHelperLocalization__English = {
|
|
8
|
+
generateErrorSimulationCompletedLog: ({ gatewayName, transactionName }) => `Class "MockGatewayHelper" has simulated the error for the transaction "${gatewayName}.${transactionName}" ` +
|
|
9
|
+
"because option \"mustSimulateError\" has been set to true.",
|
|
10
|
+
generateDataRetrievingSimulationCompletedLog: ({ gatewayName, transactionName, formattedRequestParameters, formattedResponseData }) => ({
|
|
11
|
+
title: `"${gatewayName}.${transactionName}", the simulation of the data retrieving completed`,
|
|
12
|
+
description: "The \"MockGatewayHelper\" class finished the simulation of data retrieving for the transaction " +
|
|
13
|
+
`"${gatewayName}.${transactionName}".` +
|
|
14
|
+
`${(0, isNonEmptyString_1.default)(formattedRequestParameters) ?
|
|
15
|
+
`\n\nRequest parameters:\n${formattedRequestParameters}` : ""}` +
|
|
16
|
+
`${(0, isNonEmptyString_1.default)(formattedResponseData) ?
|
|
17
|
+
`\n\nResponse data:\n${formattedResponseData}` : ""}`
|
|
18
|
+
}),
|
|
19
|
+
generateDataSubmittingSimulationCompletedLog: ({ gatewayName, transactionName, formattedRequestData, formattedResponseData }) => ({
|
|
20
|
+
title: `"${gatewayName}.${transactionName}", the simulation of the data submitting completed`,
|
|
21
|
+
description: "The \"MockGatewayHelper\" class finished the simulation of data submitting for the transaction " +
|
|
22
|
+
`"${gatewayName}.${transactionName}"` +
|
|
23
|
+
`${(0, isNonEmptyString_1.default)(formattedRequestData) ? `\n\nRequest data:\n${formattedRequestData}` : ""}` +
|
|
24
|
+
`${(0, isNonEmptyString_1.default)(formattedResponseData) ? `\n\nResponse data:\n${formattedResponseData}` : ""}`
|
|
25
|
+
})
|
|
26
|
+
};
|
|
27
|
+
exports.default = MockGatewayHelperLocalization__English;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
function getRandomInteger(
|
|
3
|
+
function getRandomInteger(compoundParameter) {
|
|
4
|
+
let minimalValue;
|
|
5
|
+
let maximalValue;
|
|
6
|
+
if (compoundParameter.minimalValue < compoundParameter.maximalValue) {
|
|
7
|
+
minimalValue = compoundParameter.minimalValue;
|
|
8
|
+
maximalValue = compoundParameter.maximalValue;
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
minimalValue = compoundParameter.maximalValue;
|
|
12
|
+
maximalValue = compoundParameter.minimalValue;
|
|
13
|
+
}
|
|
4
14
|
return Math.floor((Math.random() * (maximalValue - minimalValue + 1)) + minimalValue);
|
|
5
15
|
}
|
|
6
16
|
exports.default = getRandomInteger;
|
|
@@ -5,14 +5,14 @@ const GetRandomStringOperationLocalization__English = {
|
|
|
5
5
|
minimalCharactersCountMustBeGreaterThan0: (actualValue) => `The 'minimalCharactersCount' property must be greater than 0 while really it's ${actualValue}`,
|
|
6
6
|
sumOfCharactersCountOfAffixesAndMinimalRandomlyGeneratedCharactersCountIsExceedsMaximalCharactersCount: (namedParameters) => "The sum of characters count of 'prefix', 'infix' and 'postfix' and also 'minimalRandomlyGeneratedCharactersCount' are " +
|
|
7
7
|
"exceeds the 'maximalCharactersCount':\n" +
|
|
8
|
-
` prefix.length: ${namedParameters.prefix.length}` +
|
|
9
|
-
` infix.length: ${namedParameters.infix.length}` +
|
|
10
|
-
` postfix.length: ${namedParameters.postfix.length}` +
|
|
11
|
-
`minimalRandomlyGeneratedCharactersCount: ${namedParameters.minimalRandomlyGeneratedCharactersCount}` +
|
|
8
|
+
` prefix.length: ${namedParameters.prefix.length}\n` +
|
|
9
|
+
` infix.length: ${namedParameters.infix.length}\n` +
|
|
10
|
+
` postfix.length: ${namedParameters.postfix.length}\n` +
|
|
11
|
+
`minimalRandomlyGeneratedCharactersCount: ${namedParameters.minimalRandomlyGeneratedCharactersCount}\n` +
|
|
12
12
|
` SUBTOTAL: ${namedParameters.prefix.length +
|
|
13
13
|
namedParameters.infix.length +
|
|
14
14
|
namedParameters.postfix.length +
|
|
15
|
-
namedParameters.minimalRandomlyGeneratedCharactersCount}` +
|
|
15
|
+
namedParameters.minimalRandomlyGeneratedCharactersCount}\n` +
|
|
16
16
|
` maximalCharactersCount: ${namedParameters.maximalCharactersCount}`,
|
|
17
17
|
explicitlySpecifiedMinimalCharactersCountExceedsMaximalCharactersCount: ({ minimalCharactersCount, maximalCharactersCount }) => `The explicitly specified minimal characters count (${minimalCharactersCount}) exceeds the maximal characters ` +
|
|
18
18
|
`count ${maximalCharactersCount}`,
|
|
@@ -8,10 +8,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.convertPotentialStringToFloatIfPossible = exports.convertPotentialStringToIntegerIfPossible = exports.convertPotentialStringToNumberIfPossible = exports.RawObjectDataProcessorLocalization__English = exports.RawObjectDataProcessor = exports.PromisesQueue = exports.splitToPaginationCollection = exports.computeLastItemNumberForSpecificPaginationPage = exports.computeFirstItemNumberForSpecificPaginationPage = exports.removeRandomArrayElement = exports.getSpecificBooleanValueWithProbability = exports.getRandomSubarray = exports.getRandomObjectPropertyValue = exports.getRandomLatinCharacter = exports.getRandomInteger = exports.getRandomBoolean = exports.getRandomArrayElement = exports.RandomStringsGenerator = exports.getRandomString = exports.undefinedToNull = exports.undefinedToEmptyString = exports.undefinedToEmptyArray = exports.nullToZero = exports.nullToUndefined = exports.nullToEmptyString = exports.emptyStringToNull = exports.isFunctionLike = exports.isElementOfEnumeration = exports.isBoolean = exports.isUndefined = exports.isNull = exports.isNotUndefined = exports.isNotNull = exports.isEitherUndefinedOrNull = exports.isNeitherUndefinedNorNull = exports.isNonEmptyArray = exports.isEmptyArray = exports.IsArrayOfLengthCheckingOperation = exports.isArrayOfLength = exports.isArrayOfCertainTypeElements = exports.isNonNullObject = exports.isNonEmptyObject = exports.isNonEmptyArbitraryObject = void 0;
|
|
11
|
+
exports.ClassRequiredInitializationHasNotBeenExecutedErrorLocalization__English = exports.ClassRequiredInitializationHasNotBeenExecutedError = exports.ClassRedundantSubsequentInitializationErrorLocalization__English = exports.ClassRedundantSubsequentInitializationError = exports.AlgorithmMismatchErrorLocalization__English = exports.AlgorithmMismatchError = exports.substituteWhenUndefined = exports.substituteWhenNull = exports.Timer = exports.TimePoint = exports.secondsToMilliseconds = exports.millisecondsToSeconds = exports.hasTimeCome = exports.getYearOfPreviousMonth = exports.getYearOfNextMonth = exports.getPreviousMonthNumber = exports.getNextMonthNumber = exports.getMonthNumberByName = exports.getMonthNameByNumber = exports.getDaysCountInSpecificMonth = exports.CalendarBuilder = exports.MockGatewayHelperLocalization__English = exports.MockGatewayHelper = exports.DataMocking = exports.YDEE_BUG_REPORTING_PAGE_URI = exports.ServerErrorsHTTP_StatusCodes = exports.ClientErrorsHTTP_StatusCodes = exports.RedirectionResponsesHTTP_StatusCodes = exports.SuccessfulResponsesHTTP_StatusCodes = exports.InformationalResponsesHTTP_StatusCodes = exports.HTTP_StatusCodes = exports.HTTP_Methods = exports.SECONDS_PER_MINUTE = exports.MonthsNames = exports.MONTHS_PER_YEAR = exports.MINUTES_PER_HOUR = exports.MAXIMAL_DAYS_AT_MONTH = exports.HOURS_PER_STELLAR_DAY = exports.DaysOfWeek = exports.CHARACTERS_COUNT_OF_DATE_PART_IN_ISO8601_STRING = exports.twoDimensionalizeArray = exports.replaceArrayElementsByPredicates = exports.replaceArrayElementsByIndexesImmutably = exports.removeArrayElementsByPredicates = exports.removeArrayElementsByIndexes = exports.getLastElementOfArray = exports.getIndexOfArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne = exports.getIndexesOfArrayElementsWhichSatisfiesThePredicate = exports.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne = exports.addElementsToArray = void 0;
|
|
12
|
+
exports.getURI_Fragment = exports.getURI_PartWithoutFragment = exports.appendFragmentToURI = exports.appendLastFileNameExtension = exports.getMatchingWithFirstRegularExpressionCapturingGroup = exports.separateEach4DigitsGroupWithComma = exports.separateEach3DigitsGroupWithComma = exports.roundUpToSpecificIntegerPlaceValue = exports.roundToSpecifiedNearestDecimalPlaceValue = exports.roundToSpecificNearestIntegerPlaceValue = exports.roundDownToSpecificIntegerPlaceValue = exports.isStringifiedNonNegativeIntegerOfRegularNotation = exports.getArithmeticMean = exports.formatNumberWith4KetaKanji = exports.LoggerLocalization__English = exports.Logger = exports.PoliteErrorsMessagesBuilder__English = exports.PoliteErrorsMessagesBuilder = exports.UnsupportedScenarioErrorLocalization__English = exports.UnsupportedScenarioError = exports.UnexpectedEventErrorLocalization__English = exports.UnexpectedEventError = exports.ModuleDynamicLoadingFailedErrorLocalization__English = exports.ModuleDynamicLoadingFailedError = exports.InvalidParameterValueErrorLocalization__English = exports.InvalidParameterValueError = exports.InvalidExternalDataErrorLocalization__English = exports.InvalidExternalDataError = exports.InvalidConfigErrorLocalization__English = exports.InvalidConfigError = exports.InterProcessInteractionFailedErrorLocalization__English = exports.InterProcessInteractionFailedError = exports.IncompatiblePropertiesInObjectTypeParameterErrorLocalization__English = exports.IncompatiblePropertiesInObjectTypeParameterError = exports.ImproperUsageErrorLocalization__English = exports.ImproperUsageError = exports.FileWritingFailedErrorLocalization__English = exports.FileWritingFailedError = exports.FileReadingFailedErrorLocalization__English = exports.FileReadingFailedError = exports.DOM_ElementRetrievingFailedErrorLocalization__English = exports.DOM_ElementRetrievingFailedError = exports.DataSubmittingFailedErrorLocalization__English = exports.DataSubmittingFailedError = exports.DataRetrievingFailedErrorLocalization__English = exports.DataRetrievingFailedError = exports.CrossBrowserIssueErrorLocalization__English = exports.CrossBrowserIssueError = exports.ConfigFileNotFoundErrorLocalization__English = exports.ConfigFileNotFoundError = void 0;
|
|
13
|
+
exports.isStringOfLength = exports.isString = exports.isNonEmptyString = exports.isEmptyString = exports.isPositiveDecimalFraction = exports.isNumber = exports.isNonNegativeInteger = exports.isNegativeIntegerOrZero = exports.isNegativeInteger = exports.isNegativeDecimalFraction = exports.isNaturalNumber = exports.isDecimalFractionOfAnySign = exports.filterMap = exports.createMapBasedOnOtherMap = exports.addMultiplePairsToMap = exports.addMultipleElementsToSet = exports.getObjectPropertySafely = exports.trimSpaces = exports.toUpperCamelCase = exports.toScreamingSnakeCase = exports.toLowerCamelCase = exports.stringifyAndFormatArbitraryValue = exports.splitString = exports.reverseString = exports.replaceDoubleBackslashesWithForwardSlashes = exports.replaceBrHTML_TagToNewLineEscapeSequence = exports.replace2OrMoreSpacesTo1 = exports.removeSpecificCharacterFromCertainPosition = exports.removeNthCharacter = exports.removeNonDigitsCharacters = exports.removeLastCharacter = exports.removeAllSpecifiedCharacters = exports.isIPv4AddressLiesInRange = exports.insertSubstringIf = exports.insertSubstring = exports.hasStringOnlySpecificCharacters = exports.getPositionsOfAllSubstringOccurrences = exports.getLastCharacter = exports.getEnglishAbbreviatedOrdinalNumber = exports.extractMatchingsWithRegularExpression = exports.explodeCasedPhraseToWords = exports.EmailAddress = exports.capitalizeFirstCharacter = exports.areStringifiedDigitsOnly = exports.stringifiedDigits = exports.SpaceCharactersStringifiedHexCharactersForRegularExpressionWithUnicodeFlag = exports.SpaceCharacters = exports.uppercaseLatinCharacters = exports.lowercaseLatinCharacters = exports.EscapeCharacters = void 0;
|
|
14
|
+
exports.convertPotentialStringToFloatIfPossible = exports.convertPotentialStringToIntegerIfPossible = exports.convertPotentialStringToNumberIfPossible = exports.RawObjectDataProcessorLocalization__English = exports.RawObjectDataProcessor = exports.PromisesQueue = exports.splitToPaginationCollection = exports.computeLastItemNumberForSpecificPaginationPage = exports.computeFirstItemNumberForSpecificPaginationPage = exports.removeRandomArrayElement = exports.getSpecificBooleanValueWithProbability = exports.getRandomSubarray = exports.getRandomObjectPropertyValue = exports.getRandomLatinCharacter = exports.getRandomInteger = exports.getRandomBoolean = exports.getRandomArrayElement = exports.RandomStringsGenerator = exports.getRandomString = exports.undefinedToNull = exports.undefinedToEmptyString = exports.undefinedToEmptyArray = exports.nullToZero = exports.nullToUndefined = exports.nullToEmptyString = exports.emptyStringToNull = exports.isFunctionLike = exports.isElementOfEnumeration = exports.isBoolean = exports.isUndefined = exports.isNull = exports.isNotUndefined = exports.isNotNull = exports.isEitherUndefinedOrNull = exports.isNeitherUndefinedNorNull = exports.isNonEmptyArray = exports.isEmptyArray = exports.IsArrayOfLengthCheckingOperation = exports.isArrayOfLength = exports.isArrayOfCertainTypeElements = exports.isNonNullObject = exports.isNonEmptyObject = exports.isNonEmptyArbitraryObject = exports.isEmptyObject = exports.isArbitraryObject = exports.IsStringOfLengthCheckingOperation = void 0;
|
|
15
15
|
var addElementsToArray_1 = require("./Arrays/addElementsToArray");
|
|
16
16
|
Object.defineProperty(exports, "addElementsToArray", { enumerable: true, get: function () { return __importDefault(addElementsToArray_1).default; } });
|
|
17
17
|
var getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne_1 = require("./Arrays/getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne");
|
|
@@ -59,6 +59,12 @@ Object.defineProperty(exports, "ClientErrorsHTTP_StatusCodes", { enumerable: tru
|
|
|
59
59
|
Object.defineProperty(exports, "ServerErrorsHTTP_StatusCodes", { enumerable: true, get: function () { return HTTP_StatusCodes_1.ServerErrorsHTTP_StatusCodes; } });
|
|
60
60
|
var YDEE_BUG_REPORTING_PAGE_URI_1 = require("./ConstantsAndEnumerations/YDEE_BUG_REPORTING_PAGE_URI");
|
|
61
61
|
Object.defineProperty(exports, "YDEE_BUG_REPORTING_PAGE_URI", { enumerable: true, get: function () { return __importDefault(YDEE_BUG_REPORTING_PAGE_URI_1).default; } });
|
|
62
|
+
var DataMocking_1 = require("./DataMocking/DataMocking");
|
|
63
|
+
Object.defineProperty(exports, "DataMocking", { enumerable: true, get: function () { return __importDefault(DataMocking_1).default; } });
|
|
64
|
+
var MockGatewayHelper_1 = require("./DataMocking/MockGatewayHelpler/MockGatewayHelper");
|
|
65
|
+
Object.defineProperty(exports, "MockGatewayHelper", { enumerable: true, get: function () { return __importDefault(MockGatewayHelper_1).default; } });
|
|
66
|
+
var MockGatewayHelperLocalization_english_1 = require("./DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english");
|
|
67
|
+
Object.defineProperty(exports, "MockGatewayHelperLocalization__English", { enumerable: true, get: function () { return __importDefault(MockGatewayHelperLocalization_english_1).default; } });
|
|
62
68
|
var CalendarBuilder_1 = require("./DateTime/CalendarBuilder");
|
|
63
69
|
Object.defineProperty(exports, "CalendarBuilder", { enumerable: true, get: function () { return __importDefault(CalendarBuilder_1).default; } });
|
|
64
70
|
var getDaysCountInSpecificMonth_1 = require("./DateTime/getDaysCountInSpecificMonth");
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare class DataMocking {
|
|
2
|
+
static decideOptionalValue<ValueType>(sourceDataAndOptions: Readonly<{
|
|
3
|
+
strategy: DataMocking.OptionalPropertiesDecisionStrategies;
|
|
4
|
+
randomValueGenerator: () => ValueType;
|
|
5
|
+
preDefinedValue?: ValueType;
|
|
6
|
+
}>): ValueType | undefined;
|
|
7
|
+
}
|
|
8
|
+
declare namespace DataMocking {
|
|
9
|
+
enum OptionalPropertiesDecisionStrategies {
|
|
10
|
+
mustGenerateAll = "MUST_GENERATE_ALL",
|
|
11
|
+
mustGenerateWith50PercentageProbability = "MUST_GENERATE_WITH_50_PERCENTAGE_PROBABILITY",
|
|
12
|
+
mustSkipIfHasNotBeenPreDefined = "MUST_SKIP_IF_HAS_NOT_BEEN_PRE_DEFINED"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export default DataMocking;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import getRandomBoolean from "../RandomValuesGenerators/getRandomBoolean";
|
|
2
|
+
class DataMocking {
|
|
3
|
+
static decideOptionalValue(sourceDataAndOptions) {
|
|
4
|
+
switch (sourceDataAndOptions.strategy) {
|
|
5
|
+
case DataMocking.OptionalPropertiesDecisionStrategies.mustGenerateAll:
|
|
6
|
+
return sourceDataAndOptions.preDefinedValue ?? sourceDataAndOptions.randomValueGenerator();
|
|
7
|
+
case DataMocking.OptionalPropertiesDecisionStrategies.mustSkipIfHasNotBeenPreDefined:
|
|
8
|
+
return sourceDataAndOptions.preDefinedValue;
|
|
9
|
+
case DataMocking.OptionalPropertiesDecisionStrategies.mustGenerateWith50PercentageProbability:
|
|
10
|
+
return getRandomBoolean() ? sourceDataAndOptions.randomValueGenerator() : void 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
(function (DataMocking) {
|
|
15
|
+
let OptionalPropertiesDecisionStrategies;
|
|
16
|
+
(function (OptionalPropertiesDecisionStrategies) {
|
|
17
|
+
OptionalPropertiesDecisionStrategies["mustGenerateAll"] = "MUST_GENERATE_ALL";
|
|
18
|
+
OptionalPropertiesDecisionStrategies["mustGenerateWith50PercentageProbability"] = "MUST_GENERATE_WITH_50_PERCENTAGE_PROBABILITY";
|
|
19
|
+
OptionalPropertiesDecisionStrategies["mustSkipIfHasNotBeenPreDefined"] = "MUST_SKIP_IF_HAS_NOT_BEEN_PRE_DEFINED";
|
|
20
|
+
})(OptionalPropertiesDecisionStrategies = DataMocking.OptionalPropertiesDecisionStrategies || (DataMocking.OptionalPropertiesDecisionStrategies = {}));
|
|
21
|
+
})(DataMocking || (DataMocking = {}));
|
|
22
|
+
export default DataMocking;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SuccessLog } from "../../Logging/Logs";
|
|
2
|
+
declare abstract class MockGatewayHelper {
|
|
3
|
+
static readonly localization: MockGatewayHelper.Localization;
|
|
4
|
+
private static readonly MINIMAL_PENDING_PERIOD__SECONDS;
|
|
5
|
+
private static readonly MAXIMAL_PENDING_PERIOD__SECONDS;
|
|
6
|
+
static simulateDataRetrieving<RequestParameters, ResponseData>(dataRetrievingSimulationConfiguration: MockGatewayHelper.DataRetrievingSimulationConfiguration<RequestParameters, ResponseData>): Promise<ResponseData>;
|
|
7
|
+
static simulateDataSubmitting<RequestData, ResponseData>(dataSubmittingSimulationConfiguration: MockGatewayHelper.DataSubmittingSimulationConfiguration<RequestData, ResponseData>): Promise<ResponseData>;
|
|
8
|
+
}
|
|
9
|
+
declare namespace MockGatewayHelper {
|
|
10
|
+
type DataRetrievingSimulationConfiguration<RequestParameters, ResponseData> = Readonly<{
|
|
11
|
+
requestParameters: RequestParameters;
|
|
12
|
+
getResponseData: () => ResponseData;
|
|
13
|
+
}> & SimulationOptions;
|
|
14
|
+
type DataSubmittingSimulationConfiguration<RequestData, ResponseData> = Readonly<{
|
|
15
|
+
requestData: RequestData;
|
|
16
|
+
getResponseData: () => ResponseData;
|
|
17
|
+
}> & SimulationOptions;
|
|
18
|
+
type SimulationOptions = Readonly<{
|
|
19
|
+
minimalPendingPeriod__seconds?: number;
|
|
20
|
+
maximalPendingPeriod__seconds?: number;
|
|
21
|
+
mustSimulateError?: boolean;
|
|
22
|
+
mustLogResponseData?: boolean;
|
|
23
|
+
gatewayName: string;
|
|
24
|
+
transactionName: string;
|
|
25
|
+
}>;
|
|
26
|
+
type Localization = Readonly<{
|
|
27
|
+
generateErrorSimulationCompletedLog: (compoundParameter: Localization.ErrorSimulationCompletedLog.CompoundParameter) => string;
|
|
28
|
+
generateDataRetrievingSimulationCompletedLog: (compoundParameter: Localization.DataRetrievingSimulationCompletedLog.CompoundParameter) => Localization.DataRetrievingSimulationCompletedLog;
|
|
29
|
+
generateDataSubmittingSimulationCompletedLog: (compoundParameter: Localization.DataSubmittingSimulationCompletedLog.CompoundParameter) => Localization.DataSubmittingSimulationCompletedLog;
|
|
30
|
+
}>;
|
|
31
|
+
namespace Localization {
|
|
32
|
+
namespace ErrorSimulationCompletedLog {
|
|
33
|
+
type CompoundParameter = Readonly<{
|
|
34
|
+
gatewayName: string;
|
|
35
|
+
transactionName: string;
|
|
36
|
+
}>;
|
|
37
|
+
}
|
|
38
|
+
type DataRetrievingSimulationCompletedLog = Pick<SuccessLog, "title" | "description">;
|
|
39
|
+
namespace DataRetrievingSimulationCompletedLog {
|
|
40
|
+
type CompoundParameter = Readonly<{
|
|
41
|
+
gatewayName: string;
|
|
42
|
+
transactionName: string;
|
|
43
|
+
formattedRequestParameters?: string;
|
|
44
|
+
formattedResponseData?: string;
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
47
|
+
type DataSubmittingSimulationCompletedLog = Pick<SuccessLog, "title" | "description">;
|
|
48
|
+
namespace DataSubmittingSimulationCompletedLog {
|
|
49
|
+
type CompoundParameter = Readonly<{
|
|
50
|
+
gatewayName: string;
|
|
51
|
+
transactionName: string;
|
|
52
|
+
formattedRequestData?: string;
|
|
53
|
+
formattedResponseData?: string;
|
|
54
|
+
}>;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
export default MockGatewayHelper;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import Logger from "../../Logging/Logger";
|
|
2
|
+
import DataRetrievingFailedError from "../../Errors/DataRetrievingFailed/DataRetrievingFailedError";
|
|
3
|
+
import DataSubmittingFailedError from "../../Errors/DataSubmittingFailed/DataSubmittingFailedError";
|
|
4
|
+
import getRandomInteger from "../../RandomValuesGenerators/getRandomInteger";
|
|
5
|
+
import secondsToMilliseconds from "../../DateTime/secondsToMilliseconds";
|
|
6
|
+
import stringifyAndFormatArbitraryValue from "../../Strings/stringifyAndFormatArbitraryValue";
|
|
7
|
+
import isNeitherUndefinedNorNull from "../../TypeGuards/Nullables/isNeitherUndefinedNorNull";
|
|
8
|
+
import MockGatewayHelperLocalization__English from "./MockGatewayHelperLocalization.english";
|
|
9
|
+
class MockGatewayHelper {
|
|
10
|
+
static localization = MockGatewayHelperLocalization__English;
|
|
11
|
+
static MINIMAL_PENDING_PERIOD__SECONDS = 1;
|
|
12
|
+
static MAXIMAL_PENDING_PERIOD__SECONDS = 2;
|
|
13
|
+
static async simulateDataRetrieving(dataRetrievingSimulationConfiguration) {
|
|
14
|
+
const { requestParameters, getResponseData, minimalPendingPeriod__seconds = MockGatewayHelper.MINIMAL_PENDING_PERIOD__SECONDS, maximalPendingPeriod__seconds = MockGatewayHelper.MAXIMAL_PENDING_PERIOD__SECONDS, mustSimulateError = false, mustLogResponseData = false, gatewayName, transactionName } = dataRetrievingSimulationConfiguration;
|
|
15
|
+
return new Promise((resolve, reject) => {
|
|
16
|
+
setTimeout(() => {
|
|
17
|
+
if (mustSimulateError) {
|
|
18
|
+
reject(new DataRetrievingFailedError({
|
|
19
|
+
customMessage: MockGatewayHelper.localization.generateErrorSimulationCompletedLog({
|
|
20
|
+
transactionName, gatewayName
|
|
21
|
+
})
|
|
22
|
+
}));
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const responseData = getResponseData();
|
|
26
|
+
Logger.logSuccess(MockGatewayHelper.localization.generateDataRetrievingSimulationCompletedLog({
|
|
27
|
+
gatewayName,
|
|
28
|
+
transactionName,
|
|
29
|
+
...isNeitherUndefinedNorNull(requestParameters) ?
|
|
30
|
+
{ formattedRequestParameters: stringifyAndFormatArbitraryValue(requestParameters) } : null,
|
|
31
|
+
...mustLogResponseData && isNeitherUndefinedNorNull(responseData) ?
|
|
32
|
+
{ formattedResponseData: stringifyAndFormatArbitraryValue(responseData) } : null
|
|
33
|
+
}));
|
|
34
|
+
resolve(responseData);
|
|
35
|
+
}, secondsToMilliseconds(getRandomInteger({
|
|
36
|
+
minimalValue: minimalPendingPeriod__seconds,
|
|
37
|
+
maximalValue: maximalPendingPeriod__seconds
|
|
38
|
+
})));
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
static async simulateDataSubmitting(dataSubmittingSimulationConfiguration) {
|
|
42
|
+
const { requestData, getResponseData, minimalPendingPeriod__seconds = MockGatewayHelper.MINIMAL_PENDING_PERIOD__SECONDS, maximalPendingPeriod__seconds = MockGatewayHelper.MAXIMAL_PENDING_PERIOD__SECONDS, mustSimulateError = false, mustLogResponseData = false, gatewayName, transactionName } = dataSubmittingSimulationConfiguration;
|
|
43
|
+
return new Promise((resolve, reject) => {
|
|
44
|
+
setTimeout(() => {
|
|
45
|
+
if (mustSimulateError) {
|
|
46
|
+
reject(new DataSubmittingFailedError({
|
|
47
|
+
customMessage: MockGatewayHelper.localization.generateErrorSimulationCompletedLog({
|
|
48
|
+
transactionName, gatewayName
|
|
49
|
+
})
|
|
50
|
+
}));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const responseData = getResponseData();
|
|
54
|
+
Logger.logSuccess(MockGatewayHelper.localization.generateDataSubmittingSimulationCompletedLog({
|
|
55
|
+
gatewayName,
|
|
56
|
+
transactionName,
|
|
57
|
+
...isNeitherUndefinedNorNull(requestData) ?
|
|
58
|
+
{ formattedRequestData: stringifyAndFormatArbitraryValue(requestData) } : null,
|
|
59
|
+
...mustLogResponseData && isNeitherUndefinedNorNull(responseData) ?
|
|
60
|
+
{ formattedResponseData: stringifyAndFormatArbitraryValue(responseData) } : null
|
|
61
|
+
}));
|
|
62
|
+
resolve(responseData);
|
|
63
|
+
}, secondsToMilliseconds(getRandomInteger({
|
|
64
|
+
minimalValue: minimalPendingPeriod__seconds,
|
|
65
|
+
maximalValue: maximalPendingPeriod__seconds
|
|
66
|
+
})));
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export default MockGatewayHelper;
|
package/Distributable/esm/DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import isNonEmptyString from "../../TypeGuards/Strings/isNonEmptyString";
|
|
2
|
+
const MockGatewayHelperLocalization__English = {
|
|
3
|
+
generateErrorSimulationCompletedLog: ({ gatewayName, transactionName }) => `Class "MockGatewayHelper" has simulated the error for the transaction "${gatewayName}.${transactionName}" ` +
|
|
4
|
+
"because option \"mustSimulateError\" has been set to true.",
|
|
5
|
+
generateDataRetrievingSimulationCompletedLog: ({ gatewayName, transactionName, formattedRequestParameters, formattedResponseData }) => ({
|
|
6
|
+
title: `"${gatewayName}.${transactionName}", the simulation of the data retrieving completed`,
|
|
7
|
+
description: "The \"MockGatewayHelper\" class finished the simulation of data retrieving for the transaction " +
|
|
8
|
+
`"${gatewayName}.${transactionName}".` +
|
|
9
|
+
`${isNonEmptyString(formattedRequestParameters) ?
|
|
10
|
+
`\n\nRequest parameters:\n${formattedRequestParameters}` : ""}` +
|
|
11
|
+
`${isNonEmptyString(formattedResponseData) ?
|
|
12
|
+
`\n\nResponse data:\n${formattedResponseData}` : ""}`
|
|
13
|
+
}),
|
|
14
|
+
generateDataSubmittingSimulationCompletedLog: ({ gatewayName, transactionName, formattedRequestData, formattedResponseData }) => ({
|
|
15
|
+
title: `"${gatewayName}.${transactionName}", the simulation of the data submitting completed`,
|
|
16
|
+
description: "The \"MockGatewayHelper\" class finished the simulation of data submitting for the transaction " +
|
|
17
|
+
`"${gatewayName}.${transactionName}"` +
|
|
18
|
+
`${isNonEmptyString(formattedRequestData) ? `\n\nRequest data:\n${formattedRequestData}` : ""}` +
|
|
19
|
+
`${isNonEmptyString(formattedResponseData) ? `\n\nResponse data:\n${formattedResponseData}` : ""}`
|
|
20
|
+
})
|
|
21
|
+
};
|
|
22
|
+
export default MockGatewayHelperLocalization__English;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
export default function getRandomInteger(
|
|
1
|
+
export default function getRandomInteger(compoundParameter) {
|
|
2
|
+
let minimalValue;
|
|
3
|
+
let maximalValue;
|
|
4
|
+
if (compoundParameter.minimalValue < compoundParameter.maximalValue) {
|
|
5
|
+
minimalValue = compoundParameter.minimalValue;
|
|
6
|
+
maximalValue = compoundParameter.maximalValue;
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
minimalValue = compoundParameter.maximalValue;
|
|
10
|
+
maximalValue = compoundParameter.minimalValue;
|
|
11
|
+
}
|
|
2
12
|
return Math.floor((Math.random() * (maximalValue - minimalValue + 1)) + minimalValue);
|
|
3
13
|
}
|
|
@@ -3,14 +3,14 @@ const GetRandomStringOperationLocalization__English = {
|
|
|
3
3
|
minimalCharactersCountMustBeGreaterThan0: (actualValue) => `The 'minimalCharactersCount' property must be greater than 0 while really it's ${actualValue}`,
|
|
4
4
|
sumOfCharactersCountOfAffixesAndMinimalRandomlyGeneratedCharactersCountIsExceedsMaximalCharactersCount: (namedParameters) => "The sum of characters count of 'prefix', 'infix' and 'postfix' and also 'minimalRandomlyGeneratedCharactersCount' are " +
|
|
5
5
|
"exceeds the 'maximalCharactersCount':\n" +
|
|
6
|
-
` prefix.length: ${namedParameters.prefix.length}` +
|
|
7
|
-
` infix.length: ${namedParameters.infix.length}` +
|
|
8
|
-
` postfix.length: ${namedParameters.postfix.length}` +
|
|
9
|
-
`minimalRandomlyGeneratedCharactersCount: ${namedParameters.minimalRandomlyGeneratedCharactersCount}` +
|
|
6
|
+
` prefix.length: ${namedParameters.prefix.length}\n` +
|
|
7
|
+
` infix.length: ${namedParameters.infix.length}\n` +
|
|
8
|
+
` postfix.length: ${namedParameters.postfix.length}\n` +
|
|
9
|
+
`minimalRandomlyGeneratedCharactersCount: ${namedParameters.minimalRandomlyGeneratedCharactersCount}\n` +
|
|
10
10
|
` SUBTOTAL: ${namedParameters.prefix.length +
|
|
11
11
|
namedParameters.infix.length +
|
|
12
12
|
namedParameters.postfix.length +
|
|
13
|
-
namedParameters.minimalRandomlyGeneratedCharactersCount}` +
|
|
13
|
+
namedParameters.minimalRandomlyGeneratedCharactersCount}\n` +
|
|
14
14
|
` maximalCharactersCount: ${namedParameters.maximalCharactersCount}`,
|
|
15
15
|
explicitlySpecifiedMinimalCharactersCountExceedsMaximalCharactersCount: ({ minimalCharactersCount, maximalCharactersCount }) => `The explicitly specified minimal characters count (${minimalCharactersCount}) exceeds the maximal characters ` +
|
|
16
16
|
`count ${maximalCharactersCount}`,
|
|
@@ -24,6 +24,9 @@ export { default as SECONDS_PER_MINUTE } from "./ConstantsAndEnumerations/DateTi
|
|
|
24
24
|
export { default as HTTP_Methods } from "./ConstantsAndEnumerations/HTTP/HTTP_Methods";
|
|
25
25
|
export { HTTP_StatusCodes, InformationalResponsesHTTP_StatusCodes, SuccessfulResponsesHTTP_StatusCodes, RedirectionResponsesHTTP_StatusCodes, ClientErrorsHTTP_StatusCodes, ServerErrorsHTTP_StatusCodes } from "./ConstantsAndEnumerations/HTTP/HTTP_StatusCodes";
|
|
26
26
|
export { default as YDEE_BUG_REPORTING_PAGE_URI } from "./ConstantsAndEnumerations/YDEE_BUG_REPORTING_PAGE_URI";
|
|
27
|
+
export { default as DataMocking } from "./DataMocking/DataMocking";
|
|
28
|
+
export { default as MockGatewayHelper } from "./DataMocking/MockGatewayHelpler/MockGatewayHelper";
|
|
29
|
+
export { default as MockGatewayHelperLocalization__English } from "./DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english";
|
|
27
30
|
export { default as CalendarBuilder } from "./DateTime/CalendarBuilder";
|
|
28
31
|
export { default as getDaysCountInSpecificMonth } from "./DateTime/getDaysCountInSpecificMonth";
|
|
29
32
|
export { default as getMonthNameByNumber } from "./DateTime/getMonthNameByNumber";
|
|
@@ -24,6 +24,9 @@ export { default as SECONDS_PER_MINUTE } from "./ConstantsAndEnumerations/DateTi
|
|
|
24
24
|
export { default as HTTP_Methods } from "./ConstantsAndEnumerations/HTTP/HTTP_Methods";
|
|
25
25
|
export { HTTP_StatusCodes, InformationalResponsesHTTP_StatusCodes, SuccessfulResponsesHTTP_StatusCodes, RedirectionResponsesHTTP_StatusCodes, ClientErrorsHTTP_StatusCodes, ServerErrorsHTTP_StatusCodes } from "./ConstantsAndEnumerations/HTTP/HTTP_StatusCodes";
|
|
26
26
|
export { default as YDEE_BUG_REPORTING_PAGE_URI } from "./ConstantsAndEnumerations/YDEE_BUG_REPORTING_PAGE_URI";
|
|
27
|
+
export { default as DataMocking } from "./DataMocking/DataMocking";
|
|
28
|
+
export { default as MockGatewayHelper } from "./DataMocking/MockGatewayHelpler/MockGatewayHelper";
|
|
29
|
+
export { default as MockGatewayHelperLocalization__English } from "./DataMocking/MockGatewayHelpler/MockGatewayHelperLocalization.english";
|
|
27
30
|
export { default as CalendarBuilder } from "./DateTime/CalendarBuilder";
|
|
28
31
|
export { default as getDaysCountInSpecificMonth } from "./DateTime/getDaysCountInSpecificMonth";
|
|
29
32
|
export { default as getMonthNameByNumber } from "./DateTime/getMonthNameByNumber";
|