ggez-banking-sdk 0.1.23 → 0.1.25
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.
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.PromotionVisibility = exports.PromotionType = exports.ValidateType = exports.VariantType = exports.CurrencyConversionType = exports.TransactionClassification = exports.WireTransferType = exports.ProgramTypes = exports.UserTrustLevelRange = exports.SourceApp = exports.CommerceProductSourceType = exports.OrderType = exports.PaymentMethodType = exports.ForgetPasswordSecurityTypes = exports.ForgetUserSecurityTypes = exports.ResponseStatusCode = exports.CountryCode = exports.DocumentType = exports.AccountStatus = exports.UserType = exports.BusinessType = exports.OrganizationRequestTypes = exports.SecurityOperationMethod = exports.TransactionInquiryStatus = exports.DeviceType = exports.TransactionType = exports.SettlementTransactionType = exports.AuthorizationOperationRequestType = exports.TransactionRequestStatus = exports.EntityStatus = exports.OperationStatus = exports.BankBeneficiaryType = exports.BankAccountTypes = exports.SecurityQuestion2 = exports.SecurityQuestion1 = exports.TrustLimits = exports.EntityVerificationStatus = exports.DocumentStatus = exports.IdentificationTypes = exports.AddressType = exports.Gender = exports.ChainRequestType = exports.ServiceProvider = exports.SecurityAuthenticationTypes = exports.ActivityType = exports.EntityData = exports.Entity = exports.ErrorLevel = exports.OrderStatus = exports.RequestStatus = void 0;
|
4
|
-
exports.TicketType = exports.ExternalHostMode = exports.ExternalHostMessageType = exports.GGEZGiftType = exports.PromotionGames = exports.PromotionStatus = void 0;
|
4
|
+
exports.VerificationMethod = exports.TicketType = exports.ExternalHostMode = exports.ExternalHostMessageType = exports.GGEZGiftType = exports.PromotionGames = exports.PromotionStatus = void 0;
|
5
5
|
var RequestStatus;
|
6
6
|
(function (RequestStatus) {
|
7
7
|
RequestStatus[RequestStatus["Undefined"] = 0] = "Undefined";
|
@@ -1220,3 +1220,9 @@ var TicketType;
|
|
1220
1220
|
TicketType[TicketType["Ticket"] = 1] = "Ticket";
|
1221
1221
|
TicketType[TicketType["Note"] = 2] = "Note";
|
1222
1222
|
})(TicketType || (exports.TicketType = TicketType = {}));
|
1223
|
+
var VerificationMethod;
|
1224
|
+
(function (VerificationMethod) {
|
1225
|
+
VerificationMethod[VerificationMethod["Whats_App"] = 1] = "Whats_App";
|
1226
|
+
VerificationMethod[VerificationMethod["Telegram"] = 2] = "Telegram";
|
1227
|
+
VerificationMethod[VerificationMethod["Phone_Call"] = 3] = "Phone_Call";
|
1228
|
+
})(VerificationMethod || (exports.VerificationMethod = VerificationMethod = {}));
|
@@ -1,13 +1,21 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.GenerateSourceID = GenerateSourceID;
|
7
|
-
const dayjs_1 = __importDefault(require("dayjs"));
|
8
4
|
function GenerateSourceID() {
|
9
5
|
const now = new Date();
|
10
|
-
|
6
|
+
// Helper function to format numbers as two digits
|
7
|
+
const pad = (number) => String(number).padStart(2, "0");
|
8
|
+
// Helper function to format milliseconds as three digits
|
9
|
+
const padMilliseconds = (number) => String(number).padStart(3, "0");
|
10
|
+
// Format date and time components
|
11
|
+
const day = pad(now.getDate());
|
12
|
+
const month = pad(now.getMonth() + 1); // Months are zero-based
|
13
|
+
const year = now.getFullYear();
|
14
|
+
const hours = pad(now.getHours());
|
15
|
+
const minutes = pad(now.getMinutes());
|
16
|
+
const seconds = pad(now.getSeconds());
|
17
|
+
const milliseconds = padMilliseconds(now.getMilliseconds());
|
18
|
+
const timestamp = `${day}${month}${year}.${hours}${minutes}${seconds}.${milliseconds}`;
|
11
19
|
const userId = localStorage.getItem("user_id") ?? "0";
|
12
20
|
const source_id = `U.${userId}.${timestamp}`;
|
13
21
|
return source_id;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ggez-banking-sdk",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.25",
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|