ggez-banking-sdk 0.0.11 → 0.0.13
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,4 +1,4 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: {
|
|
2
2
|
ID: number;
|
|
3
3
|
Code: number;
|
|
4
4
|
Name: string;
|
|
@@ -9,16 +9,5 @@ declare const _default: ({
|
|
|
9
9
|
Position: number;
|
|
10
10
|
Region: string;
|
|
11
11
|
Advanced_Region: string;
|
|
12
|
-
}
|
|
13
|
-
ID: number;
|
|
14
|
-
Code: number;
|
|
15
|
-
Name: string;
|
|
16
|
-
Local_Name: string;
|
|
17
|
-
ISO_Name: string;
|
|
18
|
-
ISO_A2: string;
|
|
19
|
-
ISO_A3: string;
|
|
20
|
-
Position: string;
|
|
21
|
-
Region: string;
|
|
22
|
-
Advanced_Region: string;
|
|
23
|
-
})[];
|
|
12
|
+
}[];
|
|
24
13
|
export default _default;
|
|
@@ -4345,18 +4345,6 @@ exports.default = [
|
|
|
4345
4345
|
Region: "EUROPE",
|
|
4346
4346
|
Advanced_Region: "SEPA",
|
|
4347
4347
|
},
|
|
4348
|
-
{
|
|
4349
|
-
ID: 75,
|
|
4350
|
-
Code: 249,
|
|
4351
|
-
Name: "France",
|
|
4352
|
-
Local_Name: "Metropolitan",
|
|
4353
|
-
ISO_Name: "France",
|
|
4354
|
-
ISO_A2: "Metropolitan",
|
|
4355
|
-
ISO_A3: "FRANCE",
|
|
4356
|
-
Position: "METROPOLITAN",
|
|
4357
|
-
Region: "FX",
|
|
4358
|
-
Advanced_Region: "FXX",
|
|
4359
|
-
},
|
|
4360
4348
|
{
|
|
4361
4349
|
ID: 76,
|
|
4362
4350
|
Code: 250,
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.GenerateSourceID = GenerateSourceID;
|
|
7
|
+
const dayjs_1 = __importDefault(require("dayjs"));
|
|
4
8
|
function GenerateSourceID() {
|
|
5
9
|
var _a;
|
|
6
10
|
const now = new Date();
|
|
7
|
-
const timestamp = now.
|
|
8
|
-
const randomNumber = Math.floor(Math.random() * 100);
|
|
11
|
+
const timestamp = `${(0, dayjs_1.default)(now).format("DDMMYYYY")}.${(0, dayjs_1.default)(now).format("HHmmss")}.${(0, dayjs_1.default)(now).format("SSS")}`;
|
|
9
12
|
const userId = (_a = localStorage.getItem("user_id")) !== null && _a !== void 0 ? _a : "0";
|
|
10
|
-
const source_id = `
|
|
13
|
+
const source_id = `U.${userId}${timestamp}`;
|
|
11
14
|
return source_id;
|
|
12
15
|
}
|
|
@@ -37,7 +37,7 @@ const useRegExp = () => {
|
|
|
37
37
|
TypeRegexPattern: /^[0-9]{1,1}$/,
|
|
38
38
|
IDRegexPattern: /^[0-9]{1,10}$/,
|
|
39
39
|
CurrencyCodeRegexPattern: /^[0-9a-zA-Z]{3,10}$/,
|
|
40
|
-
AccountNumberRegexPattern: /^[0-9]{
|
|
40
|
+
AccountNumberRegexPattern: /^[0-9]{6,25}$/,
|
|
41
41
|
CreditCardNumberRegexPattern: /^[0-9]{1,16}$/,
|
|
42
42
|
Numeric2DigitRegexPattern: /^(-1|[0-9]{1,2})$/,
|
|
43
43
|
AlphanumericCode20CharRegexPattern: /^[a-zA-Z0-9-]{1,20}$/,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
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",
|