ggez-banking-sdk 0.0.49 → 0.0.55

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.
@@ -1103,3 +1103,20 @@ export declare enum ValidateType {
1103
1103
  NoValidation = 0,
1104
1104
  ValidateOnly = 1
1105
1105
  }
1106
+ export declare enum PromotionType {
1107
+ Public = 1,
1108
+ Referral = 2
1109
+ }
1110
+ export declare enum PromotionVisibility {
1111
+ Invite = 1,
1112
+ Public = 2
1113
+ }
1114
+ export declare enum PromotionStatus {
1115
+ Active = 1,
1116
+ Suspended = 2,
1117
+ Ended = 3
1118
+ }
1119
+ export declare enum PromotionGames {
1120
+ wheel_of_fortune = 1,
1121
+ rock_paper_scissors = 2
1122
+ }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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;
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.PromotionGames = exports.PromotionStatus = void 0;
4
5
  var RequestStatus;
5
6
  (function (RequestStatus) {
6
7
  RequestStatus[RequestStatus["Undefined"] = 0] = "Undefined";
@@ -1162,3 +1163,24 @@ var ValidateType;
1162
1163
  ValidateType[ValidateType["NoValidation"] = 0] = "NoValidation";
1163
1164
  ValidateType[ValidateType["ValidateOnly"] = 1] = "ValidateOnly";
1164
1165
  })(ValidateType || (exports.ValidateType = ValidateType = {}));
1166
+ var PromotionType;
1167
+ (function (PromotionType) {
1168
+ PromotionType[PromotionType["Public"] = 1] = "Public";
1169
+ PromotionType[PromotionType["Referral"] = 2] = "Referral";
1170
+ })(PromotionType || (exports.PromotionType = PromotionType = {}));
1171
+ var PromotionVisibility;
1172
+ (function (PromotionVisibility) {
1173
+ PromotionVisibility[PromotionVisibility["Invite"] = 1] = "Invite";
1174
+ PromotionVisibility[PromotionVisibility["Public"] = 2] = "Public";
1175
+ })(PromotionVisibility || (exports.PromotionVisibility = PromotionVisibility = {}));
1176
+ var PromotionStatus;
1177
+ (function (PromotionStatus) {
1178
+ PromotionStatus[PromotionStatus["Active"] = 1] = "Active";
1179
+ PromotionStatus[PromotionStatus["Suspended"] = 2] = "Suspended";
1180
+ PromotionStatus[PromotionStatus["Ended"] = 3] = "Ended";
1181
+ })(PromotionStatus || (exports.PromotionStatus = PromotionStatus = {}));
1182
+ var PromotionGames;
1183
+ (function (PromotionGames) {
1184
+ PromotionGames[PromotionGames["wheel_of_fortune"] = 1] = "wheel_of_fortune";
1185
+ PromotionGames[PromotionGames["rock_paper_scissors"] = 2] = "rock_paper_scissors";
1186
+ })(PromotionGames || (exports.PromotionGames = PromotionGames = {}));
@@ -2,3 +2,4 @@ export * from "./bankingSystemInterface";
2
2
  export * from "./signInterface";
3
3
  export * from "./deviceInterface";
4
4
  export * from "./interface";
5
+ export * from "./promotion";
@@ -18,3 +18,4 @@ __exportStar(require("./bankingSystemInterface"), exports);
18
18
  __exportStar(require("./signInterface"), exports);
19
19
  __exportStar(require("./deviceInterface"), exports);
20
20
  __exportStar(require("./interface"), exports);
21
+ __exportStar(require("./promotion"), exports);
@@ -0,0 +1,34 @@
1
+ import { PromotionType, PromotionVisibility, PromotionStatus, PromotionGames } from "../constants";
2
+ export type Amount = {
3
+ amount: number;
4
+ asset: string;
5
+ };
6
+ export type LotteryPrize = {
7
+ prize_name: string;
8
+ prize_locale: string;
9
+ prize_desc: string;
10
+ prize_desc_locale: string;
11
+ number_of_prizes: bigint;
12
+ prize_amount: Amount;
13
+ };
14
+ export type PromotionDetails = {
15
+ id: bigint;
16
+ code: string;
17
+ name: string;
18
+ locale_name: string;
19
+ type: PromotionType;
20
+ referral_user_id?: string;
21
+ visibility: PromotionVisibility;
22
+ status: PromotionStatus;
23
+ start_date: Date;
24
+ end_date: Date;
25
+ allowed_participants: bigint;
26
+ claimed_participants: bigint;
27
+ total_promotion_amount: Amount;
28
+ min_prize: number;
29
+ max_prize: number;
30
+ claimed_amounts: number;
31
+ enabled_games: PromotionGames[];
32
+ enable_lottery: boolean;
33
+ lottery_prizes?: LotteryPrize[];
34
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/bank-system/constants/enum.ts","../src/bank-system/constants/index.ts","../src/bank-system/content/accountcurrencies.ts","../src/bank-system/content/countries.ts","../src/bank-system/content/currencies.ts","../src/bank-system/content/index.ts","../src/bank-system/content/state.ts","../src/bank-system/helper/data.tsx","../src/bank-system/helper/datastructure.tsx","../src/bank-system/helper/index.tsx","../src/bank-system/interfaces/accountinterface.ts","../src/bank-system/interfaces/bankingsysteminterface.ts","../src/bank-system/interfaces/deviceinterface.ts","../src/bank-system/interfaces/index.ts","../src/bank-system/interfaces/interface.ts","../src/bank-system/interfaces/organizationinterface.ts","../src/bank-system/interfaces/signinterface.ts","../src/bank-system/interfaces/transactioninterface.ts","../src/bank-system/restapi/index.tsx","../src/bank-system/services/account.ts","../src/bank-system/services/addresses.ts","../src/bank-system/services/auth.ts","../src/bank-system/services/bankaccount.ts","../src/bank-system/services/device.ts","../src/bank-system/services/document.ts","../src/bank-system/services/email.ts","../src/bank-system/services/history.ts","../src/bank-system/services/identification.ts","../src/bank-system/services/index.ts","../src/bank-system/services/organization.ts","../src/bank-system/services/personalinfo.ts","../src/bank-system/services/phone.ts","../src/bank-system/services/security.ts","../src/bank-system/services/token.ts","../src/bank-system/services/transaction.ts","../src/bank-system/services/verifyandconfirm.ts","../src/bank-system/utils/chainaddressmasking.ts","../src/bank-system/utils/copytext.ts","../src/bank-system/utils/countryandcurrencydata.ts","../src/bank-system/utils/enumtooption.ts","../src/bank-system/utils/filldevicedetails.ts","../src/bank-system/utils/generateoneliner.ts","../src/bank-system/utils/generatesourceid.ts","../src/bank-system/utils/getcountryname.ts","../src/bank-system/utils/getenumname.ts","../src/bank-system/utils/getstatebycountrycode.ts","../src/bank-system/utils/index.ts","../src/bank-system/utils/info.ts","../src/bank-system/utils/maskingfunction.ts","../src/bank-system/utils/regex.ts","../src/bank-system/utils/sortuserinfo.ts","../src/bank-system/utils/handleencryption/decryptdata.tsx","../src/bank-system/utils/handleencryption/encryptdata.tsx","../src/bank-system/utils/handleencryption/index.ts","../src/bank-system/utils/handleencryption/key.ts","../src/keplr-config/chaininfo.ts"],"version":"5.6.3"}
1
+ {"root":["../src/index.ts","../src/bank-system/constants/enum.ts","../src/bank-system/constants/index.ts","../src/bank-system/content/accountCurrencies.ts","../src/bank-system/content/countries.ts","../src/bank-system/content/currencies.ts","../src/bank-system/content/index.ts","../src/bank-system/content/state.ts","../src/bank-system/helper/data.tsx","../src/bank-system/helper/dataStructure.tsx","../src/bank-system/helper/index.tsx","../src/bank-system/interfaces/accountInterface.ts","../src/bank-system/interfaces/bankingSystemInterface.ts","../src/bank-system/interfaces/deviceInterface.ts","../src/bank-system/interfaces/index.ts","../src/bank-system/interfaces/interface.ts","../src/bank-system/interfaces/organizationInterface.ts","../src/bank-system/interfaces/promotion.ts","../src/bank-system/interfaces/signInterface.ts","../src/bank-system/interfaces/transactionInterface.ts","../src/bank-system/restApi/index.tsx","../src/bank-system/services/account.ts","../src/bank-system/services/addresses.ts","../src/bank-system/services/auth.ts","../src/bank-system/services/bankAccount.ts","../src/bank-system/services/device.ts","../src/bank-system/services/document.ts","../src/bank-system/services/email.ts","../src/bank-system/services/history.ts","../src/bank-system/services/identification.ts","../src/bank-system/services/index.ts","../src/bank-system/services/organization.ts","../src/bank-system/services/personalInfo.ts","../src/bank-system/services/phone.ts","../src/bank-system/services/security.ts","../src/bank-system/services/token.ts","../src/bank-system/services/transaction.ts","../src/bank-system/services/verifyAndConfirm.ts","../src/bank-system/utils/chainAddressMasking.ts","../src/bank-system/utils/copyText.ts","../src/bank-system/utils/countryAndCurrencyData.ts","../src/bank-system/utils/enumToOption.ts","../src/bank-system/utils/fillDeviceDetails.ts","../src/bank-system/utils/generateOneLiner.ts","../src/bank-system/utils/generateSourceId.ts","../src/bank-system/utils/getCountryName.ts","../src/bank-system/utils/getEnumName.ts","../src/bank-system/utils/getStateByCountryCode.ts","../src/bank-system/utils/index.ts","../src/bank-system/utils/info.ts","../src/bank-system/utils/maskingFunction.ts","../src/bank-system/utils/regex.ts","../src/bank-system/utils/sortUserInfo.ts","../src/bank-system/utils/handleEncryption/decryptData.tsx","../src/bank-system/utils/handleEncryption/encryptData.tsx","../src/bank-system/utils/handleEncryption/index.ts","../src/bank-system/utils/handleEncryption/key.ts","../src/keplr-config/chainInfo.ts"],"version":"5.6.3"}
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
- {
2
- "name": "ggez-banking-sdk",
3
- "version": "0.0.49",
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
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "/dist"
9
- ],
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/GGEZLabs/ggez-banking-sdk"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/GGEZLabs/ggez-banking-sdk/issues"
16
- },
17
- "homepage": "https://github.com/GGEZLabs/ggez-banking-sdk#readme",
18
- "scripts": {
19
- "test": "echo \"Error: no test specified\" && exit 1",
20
- "build": "tsc --build",
21
- "start": "react-app-rewired start"
22
- },
23
- "keywords": [
24
- "REST",
25
- "CRUD",
26
- "API",
27
- "endpoints",
28
- "update",
29
- "delete",
30
- "get",
31
- "post",
32
- "Node.js"
33
- ],
34
- "author": "GGEZ1 Foundation DAO LLC",
35
- "license": "ISC",
36
- "dependencies": {
37
- "@keplr-wallet/types": "^0.12.39",
38
- "@types/qs": "^6.9.9",
39
- "clientjs": "^0.2.1",
40
- "dayjs": "^1.11.10",
41
- "dotenv": "^16.3.1",
42
- "qs": "^6.11.2",
43
- "react": "^18.2.0",
44
- "uuid": "^9.0.1"
45
- },
46
- "devDependencies": {
47
- "@types/axios": "^0.14.0",
48
- "@types/jest": "^29.5.6",
49
- "@types/node": "^20.8.8",
50
- "@types/react": "^18.2.35",
51
- "axios": "^1.5.1",
52
- "jest": "^29.7.0",
53
- "ts-jest": "^29.1.1",
54
- "typescript": "^5.6.3"
55
- }
56
- }
1
+ {
2
+ "name": "ggez-banking-sdk",
3
+ "version": "0.0.55",
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
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "/dist"
9
+ ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/GGEZLabs/ggez-banking-sdk"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/GGEZLabs/ggez-banking-sdk/issues"
16
+ },
17
+ "homepage": "https://github.com/GGEZLabs/ggez-banking-sdk#readme",
18
+ "scripts": {
19
+ "test": "echo \"Error: no test specified\" && exit 1",
20
+ "build": "tsc --build",
21
+ "start": "react-app-rewired start"
22
+ },
23
+ "keywords": [
24
+ "REST",
25
+ "CRUD",
26
+ "API",
27
+ "endpoints",
28
+ "update",
29
+ "delete",
30
+ "get",
31
+ "post",
32
+ "Node.js"
33
+ ],
34
+ "author": "GGEZ1 Foundation DAO LLC",
35
+ "license": "ISC",
36
+ "dependencies": {
37
+ "@keplr-wallet/types": "^0.12.39",
38
+ "@types/qs": "^6.9.9",
39
+ "clientjs": "^0.2.1",
40
+ "dayjs": "^1.11.10",
41
+ "dotenv": "^16.3.1",
42
+ "qs": "^6.11.2",
43
+ "react": "^18.2.0",
44
+ "uuid": "^9.0.1"
45
+ },
46
+ "devDependencies": {
47
+ "@types/axios": "^0.14.0",
48
+ "@types/jest": "^29.5.6",
49
+ "@types/node": "^20.8.8",
50
+ "@types/react": "^18.2.35",
51
+ "axios": "^1.5.1",
52
+ "jest": "^29.7.0",
53
+ "ts-jest": "^29.1.1",
54
+ "typescript": "^5.6.3"
55
+ }
56
+ }