@alacard-project/shared 1.1.7 → 1.1.8

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.
Files changed (62) hide show
  1. package/dist/browser.d.ts +6 -0
  2. package/dist/browser.js +23 -0
  3. package/dist/browser.js.map +1 -0
  4. package/dist/constants/microservices.constants.d.ts +4 -0
  5. package/dist/constants/microservices.constants.js +4 -0
  6. package/dist/constants/microservices.constants.js.map +1 -1
  7. package/dist/contracts/auth.contract.d.ts +25 -0
  8. package/dist/contracts/client.contract.d.ts +30 -0
  9. package/dist/contracts/client.contract.js +3 -0
  10. package/dist/contracts/client.contract.js.map +1 -0
  11. package/dist/contracts/iam.contract.d.ts +51 -0
  12. package/dist/contracts/iam.contract.js +3 -0
  13. package/dist/contracts/iam.contract.js.map +1 -0
  14. package/dist/contracts/index.d.ts +6 -0
  15. package/dist/contracts/index.js +6 -0
  16. package/dist/contracts/index.js.map +1 -1
  17. package/dist/contracts/logging.contract.d.ts +28 -14
  18. package/dist/contracts/notification.contract.d.ts +35 -0
  19. package/dist/contracts/notification.contract.js +3 -0
  20. package/dist/contracts/notification.contract.js.map +1 -0
  21. package/dist/contracts/partner.contract.d.ts +42 -0
  22. package/dist/contracts/partner.contract.js +3 -0
  23. package/dist/contracts/partner.contract.js.map +1 -0
  24. package/dist/contracts/terminal.contract.d.ts +25 -0
  25. package/dist/contracts/terminal.contract.js +3 -0
  26. package/dist/contracts/terminal.contract.js.map +1 -0
  27. package/dist/contracts/transaction.contract.d.ts +8 -2
  28. package/dist/contracts/user.contract.d.ts +37 -0
  29. package/dist/contracts/user.contract.js +3 -0
  30. package/dist/contracts/user.contract.js.map +1 -0
  31. package/dist/contracts/wallet.contract.d.ts +114 -0
  32. package/dist/contracts/wallet.contract.js +24 -0
  33. package/dist/contracts/wallet.contract.js.map +1 -0
  34. package/dist/dto/card.dto.d.ts +9 -0
  35. package/dist/dto/card.dto.js +45 -0
  36. package/dist/dto/card.dto.js.map +1 -1
  37. package/dist/dto/partner.dto.d.ts +1 -0
  38. package/dist/dto/partner.dto.js +5 -0
  39. package/dist/dto/partner.dto.js.map +1 -1
  40. package/dist/dto/transaction.dto.d.ts +5 -0
  41. package/dist/dto/transaction.dto.js +21 -0
  42. package/dist/dto/transaction.dto.js.map +1 -1
  43. package/dist/dto/user.dto.d.ts +6 -0
  44. package/dist/dto/user.dto.js +30 -0
  45. package/dist/dto/user.dto.js.map +1 -1
  46. package/dist/enums/card.enum.d.ts +4 -0
  47. package/dist/enums/card.enum.js +9 -0
  48. package/dist/enums/card.enum.js.map +1 -0
  49. package/dist/enums/index.d.ts +2 -0
  50. package/dist/enums/index.js +2 -0
  51. package/dist/enums/index.js.map +1 -1
  52. package/dist/enums/transaction.enum.d.ts +4 -0
  53. package/dist/enums/transaction.enum.js +9 -0
  54. package/dist/enums/transaction.enum.js.map +1 -0
  55. package/dist/resilience/circuit-breaker.service.d.ts +1 -2
  56. package/dist/resilience/circuit-breaker.service.js +4 -1
  57. package/dist/resilience/circuit-breaker.service.js.map +1 -1
  58. package/dist/tsconfig.tsbuildinfo +1 -1
  59. package/dist/types/user.types.d.ts +10 -1
  60. package/dist/utils/app.utils.js +5 -4
  61. package/dist/utils/app.utils.js.map +1 -1
  62. package/package.json +4 -2
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WalletTxType = exports.AllocationStatus = exports.WalletOwnerType = void 0;
4
+ var WalletOwnerType;
5
+ (function (WalletOwnerType) {
6
+ WalletOwnerType[WalletOwnerType["PARTNER"] = 0] = "PARTNER";
7
+ WalletOwnerType[WalletOwnerType["CLIENT"] = 1] = "CLIENT";
8
+ })(WalletOwnerType || (exports.WalletOwnerType = WalletOwnerType = {}));
9
+ var AllocationStatus;
10
+ (function (AllocationStatus) {
11
+ AllocationStatus[AllocationStatus["PENDING"] = 0] = "PENDING";
12
+ AllocationStatus[AllocationStatus["SENT"] = 1] = "SENT";
13
+ AllocationStatus[AllocationStatus["SYNCED"] = 2] = "SYNCED";
14
+ AllocationStatus[AllocationStatus["FAILED"] = 3] = "FAILED";
15
+ AllocationStatus[AllocationStatus["CANCELLED"] = 4] = "CANCELLED";
16
+ })(AllocationStatus || (exports.AllocationStatus = AllocationStatus = {}));
17
+ var WalletTxType;
18
+ (function (WalletTxType) {
19
+ WalletTxType[WalletTxType["CREDIT"] = 0] = "CREDIT";
20
+ WalletTxType[WalletTxType["DEBIT"] = 1] = "DEBIT";
21
+ WalletTxType[WalletTxType["FREEZE"] = 2] = "FREEZE";
22
+ WalletTxType[WalletTxType["UNFREEZE"] = 3] = "UNFREEZE";
23
+ })(WalletTxType || (exports.WalletTxType = WalletTxType = {}));
24
+ //# sourceMappingURL=wallet.contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet.contract.js","sourceRoot":"","sources":["../../src/contracts/wallet.contract.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,2DAAW,CAAA;IACX,yDAAU,CAAA;AACd,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,6DAAW,CAAA;IACX,uDAAQ,CAAA;IACR,2DAAU,CAAA;IACV,2DAAU,CAAA;IACV,iEAAa,CAAA;AACjB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,mDAAU,CAAA;IACV,iDAAS,CAAA;IACT,mDAAU,CAAA;IACV,uDAAY,CAAA;AAChB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
@@ -4,15 +4,24 @@ export declare class CreateCardDto {
4
4
  accountId?: string;
5
5
  cardType?: string;
6
6
  cardStatus?: string;
7
+ phoneNumber?: string;
7
8
  issuedAt?: Date;
8
9
  expiresAt?: Date;
9
10
  balance?: number;
11
+ physicalBalance?: number;
12
+ virtualBalance?: number;
13
+ balanceMode?: string;
10
14
  }
11
15
  export declare class UpdateCardDto {
16
+ id: string;
12
17
  clientId?: string;
13
18
  accountId?: string;
14
19
  cardType?: string;
15
20
  cardStatus?: string;
21
+ phoneNumber?: string;
16
22
  expiresAt?: Date;
17
23
  balance?: number;
24
+ physicalBalance?: number;
25
+ virtualBalance?: number;
26
+ balanceMode?: string;
18
27
  }
@@ -39,6 +39,11 @@ __decorate([
39
39
  (0, class_validator_1.IsString)(),
40
40
  __metadata("design:type", String)
41
41
  ], CreateCardDto.prototype, "cardStatus", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsString)(),
45
+ __metadata("design:type", String)
46
+ ], CreateCardDto.prototype, "phoneNumber", void 0);
42
47
  __decorate([
43
48
  (0, class_validator_1.IsOptional)(),
44
49
  (0, class_transformer_1.Type)(() => Date),
@@ -56,9 +61,29 @@ __decorate([
56
61
  (0, class_validator_1.IsNumber)(),
57
62
  __metadata("design:type", Number)
58
63
  ], CreateCardDto.prototype, "balance", void 0);
64
+ __decorate([
65
+ (0, class_validator_1.IsOptional)(),
66
+ (0, class_validator_1.IsNumber)(),
67
+ __metadata("design:type", Number)
68
+ ], CreateCardDto.prototype, "physicalBalance", void 0);
69
+ __decorate([
70
+ (0, class_validator_1.IsOptional)(),
71
+ (0, class_validator_1.IsNumber)(),
72
+ __metadata("design:type", Number)
73
+ ], CreateCardDto.prototype, "virtualBalance", void 0);
74
+ __decorate([
75
+ (0, class_validator_1.IsOptional)(),
76
+ (0, class_validator_1.IsString)(),
77
+ __metadata("design:type", String)
78
+ ], CreateCardDto.prototype, "balanceMode", void 0);
59
79
  class UpdateCardDto {
60
80
  }
61
81
  exports.UpdateCardDto = UpdateCardDto;
82
+ __decorate([
83
+ (0, class_validator_1.IsOptional)(),
84
+ (0, class_validator_1.IsString)(),
85
+ __metadata("design:type", String)
86
+ ], UpdateCardDto.prototype, "id", void 0);
62
87
  __decorate([
63
88
  (0, class_validator_1.IsOptional)(),
64
89
  (0, class_validator_1.IsString)(),
@@ -79,6 +104,11 @@ __decorate([
79
104
  (0, class_validator_1.IsString)(),
80
105
  __metadata("design:type", String)
81
106
  ], UpdateCardDto.prototype, "cardStatus", void 0);
107
+ __decorate([
108
+ (0, class_validator_1.IsOptional)(),
109
+ (0, class_validator_1.IsString)(),
110
+ __metadata("design:type", String)
111
+ ], UpdateCardDto.prototype, "phoneNumber", void 0);
82
112
  __decorate([
83
113
  (0, class_validator_1.IsOptional)(),
84
114
  (0, class_transformer_1.Type)(() => Date),
@@ -90,4 +120,19 @@ __decorate([
90
120
  (0, class_validator_1.IsNumber)(),
91
121
  __metadata("design:type", Number)
92
122
  ], UpdateCardDto.prototype, "balance", void 0);
123
+ __decorate([
124
+ (0, class_validator_1.IsOptional)(),
125
+ (0, class_validator_1.IsNumber)(),
126
+ __metadata("design:type", Number)
127
+ ], UpdateCardDto.prototype, "physicalBalance", void 0);
128
+ __decorate([
129
+ (0, class_validator_1.IsOptional)(),
130
+ (0, class_validator_1.IsNumber)(),
131
+ __metadata("design:type", Number)
132
+ ], UpdateCardDto.prototype, "virtualBalance", void 0);
133
+ __decorate([
134
+ (0, class_validator_1.IsOptional)(),
135
+ (0, class_validator_1.IsString)(),
136
+ __metadata("design:type", String)
137
+ ], UpdateCardDto.prototype, "balanceMode", void 0);
93
138
  //# sourceMappingURL=card.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.dto.js","sourceRoot":"","sources":["../../src/dto/card.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,yDAAyC;AAEzC,MAAa,aAAa;CAiCzB;AAjCD,sCAiCC;AA/BG;IADC,IAAA,0BAAQ,GAAE;;iDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ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AE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAChB,IAAA,wBAAM,GAAE;8BACG,IAAI;gDAAC;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACc;AAIzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACa;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACU"}
@@ -3,5 +3,6 @@ export declare class PartnerDto {
3
3
  name: string;
4
4
  type: string;
5
5
  isActive?: boolean;
6
+ status?: string;
6
7
  adminUser?: RegisterDto;
7
8
  }
@@ -29,6 +29,11 @@ __decorate([
29
29
  (0, class_validator_1.IsBoolean)(),
30
30
  __metadata("design:type", Boolean)
31
31
  ], PartnerDto.prototype, "isActive", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], PartnerDto.prototype, "status", void 0);
32
37
  __decorate([
33
38
  (0, class_validator_1.IsObject)(),
34
39
  (0, class_transformer_1.Type)(() => auth_dto_1.RegisterDto),
@@ -1 +1 @@
1
- {"version":3,"file":"partner.dto.js","sourceRoot":"","sources":["../../src/dto/partner.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4F;AAC5F,yDAAyC;AACzC,yCAAyC;AAEzC,MAAa,UAAU;CAatB;AAbD,gCAaC;AAXG;IADC,IAAA,0BAAQ,GAAE;;wCACG;AAGd;IADC,IAAA,0BAAQ,GAAE;;wCACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;4CACO;AAGnB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAW,CAAC;8BACZ,sBAAW;6CAAC"}
1
+ {"version":3,"file":"partner.dto.js","sourceRoot":"","sources":["../../src/dto/partner.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4F;AAC5F,yDAAyC;AACzC,yCAAyC;AAEzC,MAAa,UAAU;CAiBtB;AAjBD,gCAiBC;AAfG;IADC,IAAA,0BAAQ,GAAE;;wCACG;AAGd;IADC,IAAA,0BAAQ,GAAE;;wCACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;4CACO;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACK;AAGhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAW,CAAC;8BACZ,sBAAW;6CAAC"}
@@ -1,3 +1,4 @@
1
+ import { ProcessingMode } from '../enums/transaction.enum';
1
2
  import type { JsonValue } from '../types/common.types';
2
3
  export declare class CreateTransactionDto {
3
4
  externalId?: string;
@@ -10,6 +11,10 @@ export declare class CreateTransactionDto {
10
11
  id?: string;
11
12
  transactionDate?: Date;
12
13
  metadata?: any;
14
+ processingMode?: ProcessingMode;
15
+ source?: string;
16
+ terminalTxId?: string;
17
+ posId?: string;
13
18
  }
14
19
  export declare class UpdateTransactionDto {
15
20
  status?: string;
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdateTransactionDto = exports.CreateTransactionDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
+ const transaction_enum_1 = require("../enums/transaction.enum");
15
16
  class CreateTransactionDto {
16
17
  }
17
18
  exports.CreateTransactionDto = CreateTransactionDto;
@@ -63,6 +64,26 @@ __decorate([
63
64
  (0, class_validator_1.IsOptional)(),
64
65
  __metadata("design:type", Object)
65
66
  ], CreateTransactionDto.prototype, "metadata", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsOptional)(),
69
+ (0, class_validator_1.IsString)(),
70
+ __metadata("design:type", String)
71
+ ], CreateTransactionDto.prototype, "processingMode", void 0);
72
+ __decorate([
73
+ (0, class_validator_1.IsOptional)(),
74
+ (0, class_validator_1.IsString)(),
75
+ __metadata("design:type", String)
76
+ ], CreateTransactionDto.prototype, "source", void 0);
77
+ __decorate([
78
+ (0, class_validator_1.IsOptional)(),
79
+ (0, class_validator_1.IsString)(),
80
+ __metadata("design:type", String)
81
+ ], CreateTransactionDto.prototype, "terminalTxId", void 0);
82
+ __decorate([
83
+ (0, class_validator_1.IsOptional)(),
84
+ (0, class_validator_1.IsString)(),
85
+ __metadata("design:type", String)
86
+ ], CreateTransactionDto.prototype, "posId", void 0);
66
87
  class UpdateTransactionDto {
67
88
  }
68
89
  exports.UpdateTransactionDto = UpdateTransactionDto;
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.dto.js","sourceRoot":"","sources":["../../src/dto/transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8E;AAC9E,yDAAyC;AAGzC,MAAa,oBAAoB;CAsChC;AAtCD,oDAsCC;AAnCG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAG,EAAC,CAAC,CAAC;;oDACS;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACO;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACU;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gDACG;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,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;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACI;AAGnB,MAAa,oBAAoB;CAOhC;AAPD,oDAOC;AAJG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACK;AAGhB;IADC,IAAA,4BAAU,GAAE;;sDACQ"}
@@ -6,6 +6,12 @@ export declare class UserDto {
6
6
  lastName?: string;
7
7
  role: UserRole;
8
8
  phoneNumber?: string;
9
+ middleName?: string;
10
+ companyName?: string;
11
+ taxId?: string;
12
+ position?: string;
13
+ department?: string;
14
+ avatar?: string;
9
15
  createdAt: Date;
10
16
  updatedAt: Date;
11
17
  }
@@ -42,4 +42,34 @@ __decorate([
42
42
  (0, class_validator_1.IsOptional)(),
43
43
  __metadata("design:type", String)
44
44
  ], UserDto.prototype, "phoneNumber", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_validator_1.IsOptional)(),
48
+ __metadata("design:type", String)
49
+ ], UserDto.prototype, "middleName", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsString)(),
52
+ (0, class_validator_1.IsOptional)(),
53
+ __metadata("design:type", String)
54
+ ], UserDto.prototype, "companyName", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsString)(),
57
+ (0, class_validator_1.IsOptional)(),
58
+ __metadata("design:type", String)
59
+ ], UserDto.prototype, "taxId", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.IsString)(),
62
+ (0, class_validator_1.IsOptional)(),
63
+ __metadata("design:type", String)
64
+ ], UserDto.prototype, "position", void 0);
65
+ __decorate([
66
+ (0, class_validator_1.IsString)(),
67
+ (0, class_validator_1.IsOptional)(),
68
+ __metadata("design:type", String)
69
+ ], UserDto.prototype, "department", void 0);
70
+ __decorate([
71
+ (0, class_validator_1.IsString)(),
72
+ (0, class_validator_1.IsOptional)(),
73
+ __metadata("design:type", String)
74
+ ], UserDto.prototype, "avatar", void 0);
45
75
  //# sourceMappingURL=user.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.dto.js","sourceRoot":"","sources":["../../src/dto/user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,oCAAoC;AAEpC,MAAa,OAAO;CAwBnB;AAxBD,0BAwBC;AAtBG;IADC,IAAA,wBAAM,GAAE;;mCACG;AAGZ;IADC,IAAA,yBAAO,GAAE;;sCACK;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0CACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACK;AAGlB;IADC,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;qCACD;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACQ"}
1
+ {"version":3,"file":"user.dto.js","sourceRoot":"","sources":["../../src/dto/user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAChF,oCAAoC;AAEpC,MAAa,OAAO;CAgDnB;AAhDD,0BAgDC;AA9CG;IADC,IAAA,wBAAM,GAAE;;mCACG;AAGZ;IADC,IAAA,yBAAO,GAAE;;sCACK;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0CACM;AAInB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACK;AAGlB;IADC,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;qCACD;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACQ;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACQ;AAIrB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sCACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yCACK;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2CACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uCACG"}
@@ -0,0 +1,4 @@
1
+ export declare enum CardType {
2
+ PHYSICAL = "PHYSICAL",
3
+ VIRTUAL = "VIRTUAL"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardType = void 0;
4
+ var CardType;
5
+ (function (CardType) {
6
+ CardType["PHYSICAL"] = "PHYSICAL";
7
+ CardType["VIRTUAL"] = "VIRTUAL";
8
+ })(CardType || (exports.CardType = CardType = {}));
9
+ //# sourceMappingURL=card.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.enum.js","sourceRoot":"","sources":["../../src/enums/card.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAGX;AAHD,WAAY,QAAQ;IAChB,iCAAqB,CAAA;IACrB,+BAAmB,CAAA;AACvB,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB"}
@@ -8,3 +8,5 @@ export * from './error.enum';
8
8
  export * from './auth.enum';
9
9
  export * from './permission.enum';
10
10
  export * from './events.enum';
11
+ export * from './card.enum';
12
+ export * from './transaction.enum';
@@ -24,4 +24,6 @@ __exportStar(require("./error.enum"), exports);
24
24
  __exportStar(require("./auth.enum"), exports);
25
25
  __exportStar(require("./permission.enum"), exports);
26
26
  __exportStar(require("./events.enum"), exports);
27
+ __exportStar(require("./card.enum"), exports);
28
+ __exportStar(require("./transaction.enum"), exports);
27
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;AAC9B,iDAA+B;AAC/B,sDAAoC;AACpC,+CAA6B;AAC7B,8CAA4B;AAC5B,oDAAkC;AAClC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,6CAA2B;AAC3B,gDAA8B;AAC9B,iDAA+B;AAC/B,sDAAoC;AACpC,+CAA6B;AAC7B,8CAA4B;AAC5B,oDAAkC;AAClC,gDAA8B;AAC9B,8CAA4B;AAC5B,qDAAmC"}
@@ -0,0 +1,4 @@
1
+ export declare enum ProcessingMode {
2
+ OFFLINE = "OFFLINE",
3
+ ONLINE = "ONLINE"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProcessingMode = void 0;
4
+ var ProcessingMode;
5
+ (function (ProcessingMode) {
6
+ ProcessingMode["OFFLINE"] = "OFFLINE";
7
+ ProcessingMode["ONLINE"] = "ONLINE";
8
+ })(ProcessingMode || (exports.ProcessingMode = ProcessingMode = {}));
9
+ //# sourceMappingURL=transaction.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.enum.js","sourceRoot":"","sources":["../../src/enums/transaction.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,qCAAmB,CAAA;IACnB,mCAAiB,CAAA;AACrB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
@@ -1,6 +1,5 @@
1
- import CircuitBreaker from 'opossum';
2
1
  export declare class CircuitBreakerService {
3
2
  private readonly logger;
4
3
  private readonly breakers;
5
- execute<T>(key: string, fn: () => Promise<T>, options?: CircuitBreaker.Options): Promise<T>;
4
+ execute<T>(key: string, fn: () => Promise<T>, options?: any): Promise<T>;
6
5
  }
@@ -5,11 +5,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
8
11
  var CircuitBreakerService_1;
9
12
  Object.defineProperty(exports, "__esModule", { value: true });
10
13
  exports.CircuitBreakerService = void 0;
11
14
  const common_1 = require("@nestjs/common");
12
- const opossum_1 = require("opossum");
15
+ const opossum_1 = __importDefault(require("opossum"));
13
16
  let CircuitBreakerService = CircuitBreakerService_1 = class CircuitBreakerService {
14
17
  constructor() {
15
18
  this.logger = new common_1.Logger(CircuitBreakerService_1.name);
@@ -1 +1 @@
1
- {"version":3,"file":"circuit-breaker.service.js","sourceRoot":"","sources":["../../src/resilience/circuit-breaker.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,qCAAqC;AAG9B,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAA3B;QACc,WAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAC;QAChD,aAAQ,GAAG,IAAI,GAAG,EAA0B,CAAC;IAsBlE,CAAC;IApBG,KAAK,CAAC,OAAO,CAAI,GAAW,EAAE,EAAoB,EAAE,UAAkC,EAAE;QACpF,IAAI,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAErC,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO,GAAG,IAAI,iBAAc,CAAC,EAAE,EAAE;gBAC7B,OAAO,EAAE,KAAK;gBACd,wBAAwB,EAAE,EAAE;gBAC5B,YAAY,EAAE,KAAK;gBACnB,GAAG,OAAO;aACb,CAAC,CAAC;YAEH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE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