@ogateway/shared-types 1.0.0 → 1.0.1

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/dist/dtos.d.ts ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=dtos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../src/dtos.ts"],"names":[],"mappings":""}
package/dist/dtos.js ADDED
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ // import { IsDefined, IsEmail, IsEnum, IsIn, IsNotEmpty, IsNumber, IsObject, IsOptional, IsString, IsUUID } from 'class-validator';
3
+ // import { Currencies, VirtualAccountTypes } from './types';
4
+ // export class DebitMomoDto {
5
+ // @IsOptional()
6
+ // @IsUUID()
7
+ // id?: string;
8
+ // @IsNumber()
9
+ // amount: number;
10
+ // @IsString()
11
+ // @IsDefined()
12
+ // @IsNotEmpty()
13
+ // @IsIn(Object.values(Currencies))
14
+ // currency: string;
15
+ // @IsOptional()
16
+ // @IsString()
17
+ // reason: string;
18
+ // // @IsEnum(['MTN', 'VOD', 'ATM'], {
19
+ // // message: 'Network must be one of MTN, VOD, ATM',
20
+ // // })
21
+ // @IsString()
22
+ // @IsDefined()
23
+ // @IsNotEmpty()
24
+ // network: string;
25
+ // @IsString()
26
+ // accountName: string;
27
+ // @IsString()
28
+ // accountNumber: string;
29
+ // @IsString()
30
+ // reference: string;
31
+ // @IsOptional()
32
+ // @IsObject()
33
+ // metadata: object;
34
+ // }
35
+ // export class CreditMomoDto {
36
+ // @IsOptional()
37
+ // @IsUUID()
38
+ // id?: string;
39
+ // @IsNumber()
40
+ // amount: number;
41
+ // @IsString()
42
+ // @IsDefined()
43
+ // @IsNotEmpty()
44
+ // @IsIn(Object.keys(Currencies), {
45
+ // message: `Currency must be one of: ${Object.values(Currencies).join(', ')}`,
46
+ // })
47
+ // currency: string;
48
+ // @IsOptional()
49
+ // @IsString()
50
+ // reason?: string;
51
+ // @IsString()
52
+ // @IsEnum(['MTN', 'VOD', 'ATM'], {
53
+ // message: 'Network must be one of MTN, VOD, ATM',
54
+ // })
55
+ // network: string;
56
+ // @IsString()
57
+ // accountName: string;
58
+ // @IsString()
59
+ // accountNumber: string;
60
+ // @IsString()
61
+ // reference: string;
62
+ // }
63
+ // export class CreditBankDto {
64
+ // @IsDefined()
65
+ // @IsNotEmpty()
66
+ // senderName: string;
67
+ // @IsOptional()
68
+ // @IsUUID()
69
+ // id?: string;
70
+ // @IsNumber()
71
+ // amount: number;
72
+ // @IsString()
73
+ // @IsDefined()
74
+ // @IsNotEmpty()
75
+ // @IsIn(Object.values(Currencies), {
76
+ // message: `Currency must be one of: ${Object.values(Currencies).join(', ')}`,
77
+ // })
78
+ // currency: string;
79
+ // @IsOptional()
80
+ // @IsString()
81
+ // reason?: string;
82
+ // @IsString()
83
+ // bankCode: string;
84
+ // @IsString()
85
+ // accountName: string;
86
+ // @IsString()
87
+ // accountNumber: string;
88
+ // @IsString()
89
+ // reference: string;
90
+ // }
91
+ // export class VirtualAccountDto {
92
+ // @IsString()
93
+ // name: string;
94
+ // @IsEmail()
95
+ // email: string;
96
+ // @IsString()
97
+ // bank_code: string;
98
+ // @IsString()
99
+ // bank_name: string;
100
+ // @IsOptional()
101
+ // @IsNumber()
102
+ // pay_amount?: number;
103
+ // @IsString()
104
+ // phone_number: string;
105
+ // @IsOptional()
106
+ // @IsString()
107
+ // bvn?: string;
108
+ // @IsEnum(VirtualAccountTypes)
109
+ // holder_account_type: VirtualAccountTypes;
110
+ // }
111
+ // export class VerifyTransactionDto {
112
+ // @IsString()
113
+ // id: string;
114
+ // @IsEnum(['DEBIT', 'CREDIT'], {
115
+ // message: 'Transaction type must be one of DEBIT, CREDIT',
116
+ // })
117
+ // type: string;
118
+ // }
@@ -0,0 +1,3 @@
1
+ import { TrxStatus } from './types';
2
+ export declare const parseStatus: (status: string, statusPending: string[], statusSuccess: string[]) => TrxStatus.INITIATED | TrxStatus.FAILED | TrxStatus.COMPLETED;
3
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,eAAe,MAAM,EAAE,EAAE,eAAe,MAAM,EAAE,iEAK3F,CAAA"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseStatus = void 0;
4
+ const types_1 = require("./types");
5
+ const parseStatus = (status, statusPending, statusSuccess) => {
6
+ if (!statusPending.includes(status)) {
7
+ return statusSuccess.includes(status) ? types_1.TrxStatus.COMPLETED : types_1.TrxStatus.FAILED;
8
+ }
9
+ return types_1.TrxStatus.INITIATED;
10
+ };
11
+ exports.parseStatus = parseStatus;
package/dist/index.d.ts CHANGED
@@ -1,92 +1,4 @@
1
- export declare enum TrxChannels {
2
- MOMO = "MOMO",
3
- BANK = "BANK",
4
- CARD = "CARD",
5
- CRYPTO = "CRYPTO"
6
- }
7
- export declare enum TrxTypes {
8
- CREDIT = "CREDIT",
9
- DEBIT = "DEBIT",
10
- SETTLEMENT = "SETTLEMENT"
11
- }
12
- export declare enum Currencies {
13
- GHS = "GHS",
14
- NGN = "NGN",
15
- UGX = "UGX",
16
- XOF = "XOF",
17
- XAF = "XAF",
18
- KES = "KES",
19
- TZS = "TZS",
20
- ZMW = "ZMW",
21
- GBP = "GBP",
22
- EUR = "EUR",
23
- USD = "USD",
24
- USDC = "USDC",
25
- USDT = "USDT"
26
- }
27
- export declare enum TrxStatus {
28
- OTP = "OTP",
29
- INITIATED = "INITIATED",
30
- PROCESSING = "PROCESSING",
31
- FAILED = "FAILED",
32
- COMPLETED = "COMPLETED",
33
- CANCELLED = "CANCELLED",
34
- RECONCILE = "RECONCILE",
35
- REVERSAL = "REVERSAL"
36
- }
37
- /**
38
- * Integration Response Interface
39
- * for creditMomo, debitMomo, creditBank, etc.
40
- */
41
- interface IntegrationResponseDefault {
42
- data: object;
43
- status: TrxStatus;
44
- reference: string;
45
- checkout_url?: string;
46
- }
47
- export type IntegrationResponse = IntegrationResponseDefault | undefined;
48
- /**
49
- * Verify Response Interface
50
- */
51
- interface VerifyResponseDefault {
52
- data: {
53
- mmessage: string;
54
- [key: string]: any;
55
- };
56
- status: TrxStatus;
57
- reference: string;
58
- }
59
- export type VerifyResponse = VerifyResponseDefault | undefined;
60
- /**
61
- * Resolve Response Interface
62
- */
63
- interface ResolveResponseDefault {
64
- accountName: string;
65
- }
66
- export type ResolveResponse = ResolveResponseDefault | undefined;
67
- /**
68
- * Balance Response Interface
69
- */
70
- interface BalanceResponseDefault {
71
- currency: Currencies;
72
- balance: number;
73
- }
74
- export type BalanceResponse = BalanceResponseDefault[] | undefined;
75
- /**
76
- * Virtual Account Interface
77
- */
78
- export declare enum VirtualAccountTypes {
79
- TEMPORARY = "TEMPORARY",
80
- PERMANENT = "PERMANENT"
81
- }
82
- interface VirtualAccountResponseDefault {
83
- type: VirtualAccountTypes;
84
- bank_code: string;
85
- bank_name: string;
86
- account_name: string;
87
- account_number: string;
88
- provider_data: any;
89
- }
90
- export type VirtualAccountResponse = VirtualAccountResponseDefault[] | undefined;
91
- export {};
1
+ import * as OG_Types from './types';
2
+ import * as OG_Helpers from './helpers';
3
+ export { OG_Types, OG_Helpers };
92
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,WAAW;CACpB;AAED,oBAAY,QAAQ;IAChB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,UAAU,eAAe;CAC5B;AAED,oBAAY,UAAU;IAClB,GAAG,QAAQ;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AAc;CAC1B;AAED,UAAU,6BAA6B;IACnC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC;CACtB;AAED,MAAM,MAAM,sBAAsB,GAAG,6BAA6B,EAAE,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1,51 +1,7 @@
1
- export var TrxChannels;
2
- (function (TrxChannels) {
3
- TrxChannels["MOMO"] = "MOMO";
4
- TrxChannels["BANK"] = "BANK";
5
- TrxChannels["CARD"] = "CARD";
6
- TrxChannels["CRYPTO"] = "CRYPTO";
7
- })(TrxChannels || (TrxChannels = {}));
8
- export var TrxTypes;
9
- (function (TrxTypes) {
10
- TrxTypes["CREDIT"] = "CREDIT";
11
- TrxTypes["DEBIT"] = "DEBIT";
12
- TrxTypes["SETTLEMENT"] = "SETTLEMENT";
13
- })(TrxTypes || (TrxTypes = {}));
14
- export var Currencies;
15
- (function (Currencies) {
16
- Currencies["GHS"] = "GHS";
17
- Currencies["NGN"] = "NGN";
18
- Currencies["UGX"] = "UGX";
19
- Currencies["XOF"] = "XOF";
20
- Currencies["XAF"] = "XAF";
21
- Currencies["KES"] = "KES";
22
- Currencies["TZS"] = "TZS";
23
- Currencies["ZMW"] = "ZMW";
24
- Currencies["GBP"] = "GBP";
25
- Currencies["EUR"] = "EUR";
26
- Currencies["USD"] = "USD";
27
- Currencies["USDC"] = "USDC";
28
- Currencies["USDT"] = "USDT";
29
- })(Currencies || (Currencies = {}));
30
- export var TrxStatus;
31
- (function (TrxStatus) {
32
- TrxStatus["OTP"] = "OTP";
33
- TrxStatus["INITIATED"] = "INITIATED";
34
- TrxStatus["PROCESSING"] = "PROCESSING";
35
- TrxStatus["FAILED"] = "FAILED";
36
- TrxStatus["COMPLETED"] = "COMPLETED";
37
- TrxStatus["CANCELLED"] = "CANCELLED";
38
- TrxStatus["RECONCILE"] = "RECONCILE";
39
- TrxStatus["REVERSAL"] = "REVERSAL";
40
- })(TrxStatus || (TrxStatus = {}));
41
- ;
42
- ;
43
- ;
44
- /**
45
- * Virtual Account Interface
46
- */
47
- export var VirtualAccountTypes;
48
- (function (VirtualAccountTypes) {
49
- VirtualAccountTypes["TEMPORARY"] = "TEMPORARY";
50
- VirtualAccountTypes["PERMANENT"] = "PERMANENT";
51
- })(VirtualAccountTypes || (VirtualAccountTypes = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OG_Helpers = exports.OG_Types = void 0;
4
+ const OG_Types = require("./types");
5
+ exports.OG_Types = OG_Types;
6
+ const OG_Helpers = require("./helpers");
7
+ exports.OG_Helpers = OG_Helpers;
@@ -0,0 +1,101 @@
1
+ export declare enum TrxChannels {
2
+ MOMO = "MOMO",
3
+ BANK = "BANK",
4
+ CARD = "CARD",
5
+ CRYPTO = "CRYPTO"
6
+ }
7
+ export declare enum TrxTypes {
8
+ CREDIT = "CREDIT",
9
+ DEBIT = "DEBIT",
10
+ SETTLEMENT = "SETTLEMENT"
11
+ }
12
+ export declare enum Currencies {
13
+ GHS = "GHS",
14
+ NGN = "NGN",
15
+ UGX = "UGX",
16
+ XOF = "XOF",
17
+ XAF = "XAF",
18
+ KES = "KES",
19
+ TZS = "TZS",
20
+ ZMW = "ZMW",
21
+ GBP = "GBP",
22
+ EUR = "EUR",
23
+ USD = "USD",
24
+ USDC = "USDC",
25
+ USDT = "USDT"
26
+ }
27
+ export declare enum TrxStatus {
28
+ OTP = "OTP",
29
+ INITIATED = "INITIATED",
30
+ PROCESSING = "PROCESSING",
31
+ FAILED = "FAILED",
32
+ COMPLETED = "COMPLETED",
33
+ CANCELLED = "CANCELLED",
34
+ RECONCILE = "RECONCILE",
35
+ REVERSAL = "REVERSAL"
36
+ }
37
+ /**
38
+ *
39
+ * Integration Response Interface
40
+ * for creditMomo, debitMomo, creditBank, etc.
41
+ *
42
+ */
43
+ export type IntegrationResponse = {
44
+ data: object;
45
+ status: TrxStatus;
46
+ reference: string;
47
+ checkout_url?: string;
48
+ } | undefined;
49
+ /**
50
+ *
51
+ * Verify Response Interface
52
+ *
53
+ */
54
+ export type VerifyResponse = {
55
+ data: {
56
+ mmessage: string;
57
+ [key: string]: any;
58
+ };
59
+ status: TrxStatus;
60
+ reference: string;
61
+ } | undefined;
62
+ /**
63
+ *
64
+ * Resolve Response Interface
65
+ *
66
+ */
67
+ export type ResolveResponse = {
68
+ accountName: string;
69
+ } | undefined;
70
+ /**
71
+ *
72
+ * Balance Response Interface
73
+ *
74
+ */
75
+ export type BalanceResponse = {
76
+ country?: string;
77
+ currency: Currencies;
78
+ balance: number;
79
+ }[] | undefined;
80
+ /**
81
+ *
82
+ * Virtual Account Interface
83
+ *
84
+ */
85
+ export declare enum VirtualAccountTypes {
86
+ TEMPORARY = "TEMPORARY",
87
+ PERMANENT = "PERMANENT"
88
+ }
89
+ export type VirtualAccountResponse = {
90
+ type: VirtualAccountTypes;
91
+ bank_code: string;
92
+ bank_name: string;
93
+ account_name: string;
94
+ account_number: string;
95
+ provider_data: any;
96
+ }[] | undefined;
97
+ export declare enum ErrorMessages {
98
+ verify = "Failed to verify ",
99
+ balance = "Error fetching balance"
100
+ }
101
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,WAAW;CACpB;AAED,oBA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,mBAAmB;IAC3B,SAAS,cAAc;IACvB,SAAS,cAAc;CAC1B;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,GAAG,CAAC;CACtB,EAAE,GAAG,SAAS,CAAC;AAEhB,oBAAY,aAAa;IACrB,MAAM,sBAAsB;IAC5B,OAAO,2BAA2B;CACrC"}
package/dist/types.js ADDED
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorMessages = exports.VirtualAccountTypes = exports.TrxStatus = exports.Currencies = exports.TrxTypes = exports.TrxChannels = void 0;
4
+ var TrxChannels;
5
+ (function (TrxChannels) {
6
+ TrxChannels["MOMO"] = "MOMO";
7
+ TrxChannels["BANK"] = "BANK";
8
+ TrxChannels["CARD"] = "CARD";
9
+ TrxChannels["CRYPTO"] = "CRYPTO";
10
+ })(TrxChannels || (exports.TrxChannels = TrxChannels = {}));
11
+ var TrxTypes;
12
+ (function (TrxTypes) {
13
+ TrxTypes["CREDIT"] = "CREDIT";
14
+ TrxTypes["DEBIT"] = "DEBIT";
15
+ TrxTypes["SETTLEMENT"] = "SETTLEMENT";
16
+ })(TrxTypes || (exports.TrxTypes = TrxTypes = {}));
17
+ var Currencies;
18
+ (function (Currencies) {
19
+ Currencies["GHS"] = "GHS";
20
+ Currencies["NGN"] = "NGN";
21
+ Currencies["UGX"] = "UGX";
22
+ Currencies["XOF"] = "XOF";
23
+ Currencies["XAF"] = "XAF";
24
+ Currencies["KES"] = "KES";
25
+ Currencies["TZS"] = "TZS";
26
+ Currencies["ZMW"] = "ZMW";
27
+ Currencies["GBP"] = "GBP";
28
+ Currencies["EUR"] = "EUR";
29
+ Currencies["USD"] = "USD";
30
+ Currencies["USDC"] = "USDC";
31
+ Currencies["USDT"] = "USDT";
32
+ })(Currencies || (exports.Currencies = Currencies = {}));
33
+ var TrxStatus;
34
+ (function (TrxStatus) {
35
+ TrxStatus["OTP"] = "OTP";
36
+ TrxStatus["INITIATED"] = "INITIATED";
37
+ TrxStatus["PROCESSING"] = "PROCESSING";
38
+ TrxStatus["FAILED"] = "FAILED";
39
+ TrxStatus["COMPLETED"] = "COMPLETED";
40
+ TrxStatus["CANCELLED"] = "CANCELLED";
41
+ TrxStatus["RECONCILE"] = "RECONCILE";
42
+ TrxStatus["REVERSAL"] = "REVERSAL";
43
+ })(TrxStatus || (exports.TrxStatus = TrxStatus = {}));
44
+ /**
45
+ *
46
+ * Virtual Account Interface
47
+ *
48
+ */
49
+ var VirtualAccountTypes;
50
+ (function (VirtualAccountTypes) {
51
+ VirtualAccountTypes["TEMPORARY"] = "TEMPORARY";
52
+ VirtualAccountTypes["PERMANENT"] = "PERMANENT";
53
+ })(VirtualAccountTypes || (exports.VirtualAccountTypes = VirtualAccountTypes = {}));
54
+ var ErrorMessages;
55
+ (function (ErrorMessages) {
56
+ ErrorMessages["verify"] = "Failed to verify ";
57
+ ErrorMessages["balance"] = "Error fetching balance";
58
+ })(ErrorMessages || (exports.ErrorMessages = ErrorMessages = {}));
59
+ ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ogateway/shared-types",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "description": "Open Gateway Shared Interfaces",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,6 @@
22
22
  "keywords": [],
23
23
  "author": "",
24
24
  "license": "ISC",
25
- "type": "module",
26
25
  "files": [
27
26
  "dist"
28
27
  ],
@@ -30,6 +29,7 @@
30
29
  "typescript": "^5.9.3"
31
30
  },
32
31
  "dependencies": {
32
+ "class-validator": "^0.14.3",
33
33
  "tsup": "^8.5.1"
34
34
  }
35
- }
35
+ }