@carlosdiazz/lottodiz-shared 3.2.0 → 3.2.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.
Files changed (122) hide show
  1. package/dist/enum/account-owner-type.enum.d.ts +5 -0
  2. package/dist/enum/account-owner-type.enum.js +9 -0
  3. package/dist/enum/index.d.ts +4 -0
  4. package/dist/enum/index.js +4 -0
  5. package/dist/enum/method-valid.d.ts +22 -0
  6. package/dist/enum/method-valid.js +29 -0
  7. package/dist/enum/permission-valid.d.ts +16 -0
  8. package/dist/enum/permission-valid.js +22 -0
  9. package/dist/enum/ticket-status.enum.d.ts +7 -0
  10. package/dist/enum/ticket-status.enum.js +11 -0
  11. package/dist/enum/transaction-type.enum.d.ts +10 -0
  12. package/dist/enum/transaction-type.enum.js +14 -0
  13. package/dist/enum/valid-job.enum.d.ts +5 -1
  14. package/dist/enum/valid-job.enum.js +4 -0
  15. package/dist/enum/wallet-mode.enum.d.ts +4 -0
  16. package/dist/enum/wallet-mode.enum.js +8 -0
  17. package/dist/models/account/account.base.d.ts +21 -0
  18. package/dist/models/account/account.base.js +2 -0
  19. package/dist/models/account/account.controller.d.ts +13 -0
  20. package/dist/models/account/account.controller.js +2 -0
  21. package/dist/models/account/account.datasource.d.ts +13 -0
  22. package/dist/models/account/account.datasource.js +2 -0
  23. package/dist/models/account/account.resolver.d.ts +14 -0
  24. package/dist/models/account/account.resolver.js +2 -0
  25. package/dist/models/account/account.service.d.ts +13 -0
  26. package/dist/models/account/account.service.js +2 -0
  27. package/dist/models/account/create-account.base.d.ts +9 -0
  28. package/dist/models/account/create-account.base.js +2 -0
  29. package/dist/models/account/index.d.ts +9 -0
  30. package/dist/models/account/index.js +25 -0
  31. package/dist/models/account/params-account.base.d.ts +10 -0
  32. package/dist/models/account/params-account.base.js +2 -0
  33. package/dist/models/account/response-account.base.d.ts +5 -0
  34. package/dist/models/account/response-account.base.js +2 -0
  35. package/dist/models/account/update-account.base.d.ts +10 -0
  36. package/dist/models/account/update-account.base.js +2 -0
  37. package/dist/models/account_type/account-type.base.d.ts +22 -0
  38. package/dist/models/account_type/account-type.base.js +2 -0
  39. package/dist/models/account_type/account-type.controller.d.ts +13 -0
  40. package/dist/models/account_type/account-type.controller.js +2 -0
  41. package/dist/models/account_type/account-type.datasource.d.ts +13 -0
  42. package/dist/models/account_type/account-type.datasource.js +2 -0
  43. package/dist/models/account_type/account-type.resolver.d.ts +14 -0
  44. package/dist/models/account_type/account-type.resolver.js +2 -0
  45. package/dist/models/account_type/account-type.service.d.ts +13 -0
  46. package/dist/models/account_type/account-type.service.js +2 -0
  47. package/dist/models/account_type/create-account-type.base.d.ts +9 -0
  48. package/dist/models/account_type/create-account-type.base.js +2 -0
  49. package/dist/models/account_type/index.d.ts +9 -0
  50. package/dist/models/account_type/index.js +25 -0
  51. package/dist/models/account_type/params-account-type.base.d.ts +6 -0
  52. package/dist/models/account_type/params-account-type.base.js +2 -0
  53. package/dist/models/account_type/response-account-type.base.d.ts +5 -0
  54. package/dist/models/account_type/response-account-type.base.js +2 -0
  55. package/dist/models/account_type/update-account-type.base.d.ts +10 -0
  56. package/dist/models/account_type/update-account-type.base.js +2 -0
  57. package/dist/models/index.d.ts +6 -0
  58. package/dist/models/index.js +6 -0
  59. package/dist/models/pos/pos.base.d.ts +2 -0
  60. package/dist/models/report/index.d.ts +6 -0
  61. package/dist/models/report/index.js +22 -0
  62. package/dist/models/report/params-report.base.d.ts +14 -0
  63. package/dist/models/report/params-report.base.js +2 -0
  64. package/dist/models/report/report.base.d.ts +16 -0
  65. package/dist/models/report/report.base.js +2 -0
  66. package/dist/models/report/report.controller.d.ts +6 -0
  67. package/dist/models/report/report.controller.js +2 -0
  68. package/dist/models/report/report.resolver.d.ts +7 -0
  69. package/dist/models/report/report.resolver.js +2 -0
  70. package/dist/models/report/report.service.d.ts +8 -0
  71. package/dist/models/report/report.service.js +2 -0
  72. package/dist/models/report/response-report.base.d.ts +5 -0
  73. package/dist/models/report/response-report.base.js +2 -0
  74. package/dist/models/ticket/create-ticket.base.d.ts +12 -0
  75. package/dist/models/ticket/create-ticket.base.js +2 -0
  76. package/dist/models/ticket/index.d.ts +9 -0
  77. package/dist/models/ticket/index.js +25 -0
  78. package/dist/models/ticket/params-ticket.base.d.ts +12 -0
  79. package/dist/models/ticket/params-ticket.base.js +2 -0
  80. package/dist/models/ticket/response-ticket.base.d.ts +5 -0
  81. package/dist/models/ticket/response-ticket.base.js +2 -0
  82. package/dist/models/ticket/ticket-detail.base.d.ts +10 -0
  83. package/dist/models/ticket/ticket-detail.base.js +2 -0
  84. package/dist/models/ticket/ticket.base.d.ts +16 -0
  85. package/dist/models/ticket/ticket.base.js +2 -0
  86. package/dist/models/ticket/ticket.controller.d.ts +9 -0
  87. package/dist/models/ticket/ticket.controller.js +2 -0
  88. package/dist/models/ticket/ticket.datasource.d.ts +9 -0
  89. package/dist/models/ticket/ticket.datasource.js +2 -0
  90. package/dist/models/ticket/ticket.resolver.d.ts +10 -0
  91. package/dist/models/ticket/ticket.resolver.js +2 -0
  92. package/dist/models/ticket/ticket.service.d.ts +9 -0
  93. package/dist/models/ticket/ticket.service.js +2 -0
  94. package/dist/models/transaction/create-transaction.base.d.ts +10 -0
  95. package/dist/models/transaction/create-transaction.base.js +2 -0
  96. package/dist/models/transaction/index.d.ts +8 -0
  97. package/dist/models/transaction/index.js +24 -0
  98. package/dist/models/transaction/params-transaction.base.d.ts +13 -0
  99. package/dist/models/transaction/params-transaction.base.js +2 -0
  100. package/dist/models/transaction/response-transaction.base.d.ts +5 -0
  101. package/dist/models/transaction/response-transaction.base.js +2 -0
  102. package/dist/models/transaction/transaction.base.d.ts +13 -0
  103. package/dist/models/transaction/transaction.base.js +2 -0
  104. package/dist/models/transaction/transaction.controller.d.ts +7 -0
  105. package/dist/models/transaction/transaction.controller.js +2 -0
  106. package/dist/models/transaction/transaction.datasource.d.ts +9 -0
  107. package/dist/models/transaction/transaction.datasource.js +2 -0
  108. package/dist/models/transaction/transaction.resolver.d.ts +8 -0
  109. package/dist/models/transaction/transaction.resolver.js +2 -0
  110. package/dist/models/transaction/transaction.service.d.ts +9 -0
  111. package/dist/models/transaction/transaction.service.js +2 -0
  112. package/dist/models/wallet/index.d.ts +4 -0
  113. package/dist/models/wallet/index.js +20 -0
  114. package/dist/models/wallet/wallet.base.d.ts +29 -0
  115. package/dist/models/wallet/wallet.base.js +2 -0
  116. package/dist/models/wallet/wallet.controller.d.ts +9 -0
  117. package/dist/models/wallet/wallet.controller.js +2 -0
  118. package/dist/models/wallet/wallet.resolver.d.ts +10 -0
  119. package/dist/models/wallet/wallet.resolver.js +2 -0
  120. package/dist/models/wallet/wallet.service.d.ts +9 -0
  121. package/dist/models/wallet/wallet.service.js +2 -0
  122. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ export declare enum AccountOwnerType {
2
+ POS = "POS",
3
+ GROUP = "GROUP",
4
+ COMPANY = "COMPANY"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountOwnerType = void 0;
4
+ var AccountOwnerType;
5
+ (function (AccountOwnerType) {
6
+ AccountOwnerType["POS"] = "POS";
7
+ AccountOwnerType["GROUP"] = "GROUP";
8
+ AccountOwnerType["COMPANY"] = "COMPANY";
9
+ })(AccountOwnerType || (exports.AccountOwnerType = AccountOwnerType = {}));
@@ -1,4 +1,8 @@
1
+ export * from "./account-owner-type.enum";
1
2
  export * from "./method-obs";
2
3
  export * from "./method-valid";
3
4
  export * from "./permission-valid";
4
5
  export * from "./valid-job.enum";
6
+ export * from "./transaction-type.enum";
7
+ export * from "./ticket-status.enum";
8
+ export * from "./wallet-mode.enum";
@@ -14,7 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./account-owner-type.enum"), exports);
17
18
  __exportStar(require("./method-obs"), exports);
18
19
  __exportStar(require("./method-valid"), exports);
19
20
  __exportStar(require("./permission-valid"), exports);
20
21
  __exportStar(require("./valid-job.enum"), exports);
22
+ __exportStar(require("./transaction-type.enum"), exports);
23
+ __exportStar(require("./ticket-status.enum"), exports);
24
+ __exportStar(require("./wallet-mode.enum"), exports);
@@ -222,4 +222,26 @@ export declare class MethodValid {
222
222
  static TEMPLATE_DRAW_GAME_TYPE_UPDATE: string;
223
223
  static TEMPLATE_DRAW_GAME_TYPE_REMOVE: string;
224
224
  static OBS_EXECUTE_ACTION: string;
225
+ static ACCOUNT_TYPE_CREATE: string;
226
+ static ACCOUNT_TYPE_FIND_ONE: string;
227
+ static ACCOUNT_TYPE_FIND_ALL: string;
228
+ static ACCOUNT_TYPE_UPDATE: string;
229
+ static ACCOUNT_TYPE_REMOVE: string;
230
+ static ACCOUNT_CREATE: string;
231
+ static ACCOUNT_FIND_ONE: string;
232
+ static ACCOUNT_FIND_ALL: string;
233
+ static ACCOUNT_UPDATE: string;
234
+ static TRANSACTION_FIND_ALL: string;
235
+ static TRANSACTION_FIND_ONE: string;
236
+ static TICKET_CREATE: string;
237
+ static TICKET_FIND_ONE: string;
238
+ static TICKET_FIND_ALL: string;
239
+ static WALLET_ADELANTO: string;
240
+ static WALLET_RETIRO: string;
241
+ static WALLET_CUADRE: string;
242
+ static WALLET_RECHARGE: string;
243
+ static WALLET_TRANSFER: string;
244
+ static REPORT_SALES: string;
245
+ static REPORT_PRIZES: string;
246
+ static DAILY_ACCOUNTING_CLOSE: string;
225
247
  }
@@ -266,3 +266,32 @@ MethodValid.TEMPLATE_DRAW_GAME_TYPE_UPDATE = "TEMPLATE_DRAW_GAME_TYPE_UPDATE";
266
266
  MethodValid.TEMPLATE_DRAW_GAME_TYPE_REMOVE = "TEMPLATE_DRAW_GAME_TYPE_REMOVE";
267
267
  //OBS
268
268
  MethodValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
269
+ // Account Type
270
+ MethodValid.ACCOUNT_TYPE_CREATE = "ACCOUNT_TYPE_CREATE";
271
+ MethodValid.ACCOUNT_TYPE_FIND_ONE = "ACCOUNT_TYPE_FIND_ONE";
272
+ MethodValid.ACCOUNT_TYPE_FIND_ALL = "ACCOUNT_TYPE_FIND_ALL";
273
+ MethodValid.ACCOUNT_TYPE_UPDATE = "ACCOUNT_TYPE_UPDATE";
274
+ MethodValid.ACCOUNT_TYPE_REMOVE = "ACCOUNT_TYPE_REMOVE";
275
+ // Account
276
+ MethodValid.ACCOUNT_CREATE = "ACCOUNT_CREATE";
277
+ MethodValid.ACCOUNT_FIND_ONE = "ACCOUNT_FIND_ONE";
278
+ MethodValid.ACCOUNT_FIND_ALL = "ACCOUNT_FIND_ALL";
279
+ MethodValid.ACCOUNT_UPDATE = "ACCOUNT_UPDATE";
280
+ // Transaction
281
+ MethodValid.TRANSACTION_FIND_ALL = "TRANSACTION_FIND_ALL";
282
+ MethodValid.TRANSACTION_FIND_ONE = "TRANSACTION_FIND_ONE";
283
+ // Ticket
284
+ MethodValid.TICKET_CREATE = "TICKET_CREATE";
285
+ MethodValid.TICKET_FIND_ONE = "TICKET_FIND_ONE";
286
+ MethodValid.TICKET_FIND_ALL = "TICKET_FIND_ALL";
287
+ // Wallet Operations
288
+ MethodValid.WALLET_ADELANTO = "WALLET_ADELANTO";
289
+ MethodValid.WALLET_RETIRO = "WALLET_RETIRO";
290
+ MethodValid.WALLET_CUADRE = "WALLET_CUADRE";
291
+ MethodValid.WALLET_RECHARGE = "WALLET_RECHARGE";
292
+ MethodValid.WALLET_TRANSFER = "WALLET_TRANSFER";
293
+ // Reports
294
+ MethodValid.REPORT_SALES = "REPORT_SALES";
295
+ MethodValid.REPORT_PRIZES = "REPORT_PRIZES";
296
+ // Daily Close
297
+ MethodValid.DAILY_ACCOUNTING_CLOSE = "DAILY_ACCOUNTING_CLOSE";
@@ -148,4 +148,20 @@ export declare class PermissionValid {
148
148
  static TEMPLATE_DRAW_GAME_TYPE_UPDATE: string;
149
149
  static TEMPLATE_DRAW_GAME_TYPE_DELETE: string;
150
150
  static OBS_EXECUTE_ACTION: string;
151
+ static ACCOUNT_TYPE_CREATE: string;
152
+ static ACCOUNT_TYPE_VIEW: string;
153
+ static ACCOUNT_TYPE_UPDATE: string;
154
+ static ACCOUNT_TYPE_DELETE: string;
155
+ static ACCOUNT_CREATE: string;
156
+ static ACCOUNT_VIEW: string;
157
+ static ACCOUNT_UPDATE: string;
158
+ static TRANSACTION_VIEW: string;
159
+ static TICKET_CREATE: string;
160
+ static TICKET_VIEW: string;
161
+ static WALLET_ADELANTO: string;
162
+ static WALLET_RETIRO: string;
163
+ static WALLET_CUADRE: string;
164
+ static WALLET_RECHARGE: string;
165
+ static WALLET_TRANSFER: string;
166
+ static REPORT_VIEW: string;
151
167
  }
@@ -189,3 +189,25 @@ PermissionValid.TEMPLATE_DRAW_GAME_TYPE_UPDATE = "TEMPLATE_DRAW_GAME_TYPE_UPDATE
189
189
  PermissionValid.TEMPLATE_DRAW_GAME_TYPE_DELETE = "TEMPLATE_DRAW_GAME_TYPE_DELETE";
190
190
  //OBS
191
191
  PermissionValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
192
+ // Account Type
193
+ PermissionValid.ACCOUNT_TYPE_CREATE = "ACCOUNT_TYPE_CREATE";
194
+ PermissionValid.ACCOUNT_TYPE_VIEW = "ACCOUNT_TYPE_VIEW";
195
+ PermissionValid.ACCOUNT_TYPE_UPDATE = "ACCOUNT_TYPE_UPDATE";
196
+ PermissionValid.ACCOUNT_TYPE_DELETE = "ACCOUNT_TYPE_DELETE";
197
+ // Account
198
+ PermissionValid.ACCOUNT_CREATE = "ACCOUNT_CREATE";
199
+ PermissionValid.ACCOUNT_VIEW = "ACCOUNT_VIEW";
200
+ PermissionValid.ACCOUNT_UPDATE = "ACCOUNT_UPDATE";
201
+ // Transaction
202
+ PermissionValid.TRANSACTION_VIEW = "TRANSACTION_VIEW";
203
+ // Ticket
204
+ PermissionValid.TICKET_CREATE = "TICKET_CREATE";
205
+ PermissionValid.TICKET_VIEW = "TICKET_VIEW";
206
+ // Wallet
207
+ PermissionValid.WALLET_ADELANTO = "WALLET_ADELANTO";
208
+ PermissionValid.WALLET_RETIRO = "WALLET_RETIRO";
209
+ PermissionValid.WALLET_CUADRE = "WALLET_CUADRE";
210
+ PermissionValid.WALLET_RECHARGE = "WALLET_RECHARGE";
211
+ PermissionValid.WALLET_TRANSFER = "WALLET_TRANSFER";
212
+ // Report
213
+ PermissionValid.REPORT_VIEW = "REPORT_VIEW";
@@ -0,0 +1,7 @@
1
+ export declare enum TicketStatus {
2
+ PENDING = "PENDING",
3
+ CONFIRMED = "CONFIRMED",
4
+ CANCELLED = "CANCELLED",
5
+ WINNER = "WINNER",
6
+ LOSER = "LOSER"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TicketStatus = void 0;
4
+ var TicketStatus;
5
+ (function (TicketStatus) {
6
+ TicketStatus["PENDING"] = "PENDING";
7
+ TicketStatus["CONFIRMED"] = "CONFIRMED";
8
+ TicketStatus["CANCELLED"] = "CANCELLED";
9
+ TicketStatus["WINNER"] = "WINNER";
10
+ TicketStatus["LOSER"] = "LOSER";
11
+ })(TicketStatus || (exports.TicketStatus = TicketStatus = {}));
@@ -0,0 +1,10 @@
1
+ export declare enum TransactionType {
2
+ TICKET_SALE = "TICKET_SALE",
3
+ PRIZE_PAYMENT = "PRIZE_PAYMENT",
4
+ ADELANTO = "ADELANTO",
5
+ RETIRO = "RETIRO",
6
+ CUADRE = "CUADRE",
7
+ RECHARGE = "RECHARGE",
8
+ TRANSFER_PAYMENTS_TO_CREDIT = "TRANSFER_PAYMENTS_TO_CREDIT",
9
+ TRANSFER_COMPANY_TO_GROUP = "TRANSFER_COMPANY_TO_GROUP"
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionType = void 0;
4
+ var TransactionType;
5
+ (function (TransactionType) {
6
+ TransactionType["TICKET_SALE"] = "TICKET_SALE";
7
+ TransactionType["PRIZE_PAYMENT"] = "PRIZE_PAYMENT";
8
+ TransactionType["ADELANTO"] = "ADELANTO";
9
+ TransactionType["RETIRO"] = "RETIRO";
10
+ TransactionType["CUADRE"] = "CUADRE";
11
+ TransactionType["RECHARGE"] = "RECHARGE";
12
+ TransactionType["TRANSFER_PAYMENTS_TO_CREDIT"] = "TRANSFER_PAYMENTS_TO_CREDIT";
13
+ TransactionType["TRANSFER_COMPANY_TO_GROUP"] = "TRANSFER_COMPANY_TO_GROUP";
14
+ })(TransactionType || (exports.TransactionType = TransactionType = {}));
@@ -7,5 +7,9 @@ export declare enum ValidJobEnum {
7
7
  DECREASE_DAY_PLATFORM_MESSAGE = "DECREASE_DAY_PLATFORM_MESSAGE",
8
8
  UPDATE_VIDEO_ID_AUTOMATIC = "UPDATE_VIDEO_ID_AUTOMATIC",
9
9
  EXECUTE_ACTION_OBS = "EXECUTE_ACTION_OBS",
10
- REMOVE_TEMPORARY_CODE = "REMOVE_TEMPORARY_CODE"
10
+ REMOVE_TEMPORARY_CODE = "REMOVE_TEMPORARY_CODE",
11
+ CREATE_TICKET = "CREATE_TICKET",
12
+ PROCESS_PRIZE = "PROCESS_PRIZE",
13
+ UPDATE_SUMMARY = "UPDATE_SUMMARY",
14
+ DAILY_CLOSE = "DAILY_CLOSE"
11
15
  }
@@ -12,4 +12,8 @@ var ValidJobEnum;
12
12
  ValidJobEnum["UPDATE_VIDEO_ID_AUTOMATIC"] = "UPDATE_VIDEO_ID_AUTOMATIC";
13
13
  ValidJobEnum["EXECUTE_ACTION_OBS"] = "EXECUTE_ACTION_OBS";
14
14
  ValidJobEnum["REMOVE_TEMPORARY_CODE"] = "REMOVE_TEMPORARY_CODE";
15
+ ValidJobEnum["CREATE_TICKET"] = "CREATE_TICKET";
16
+ ValidJobEnum["PROCESS_PRIZE"] = "PROCESS_PRIZE";
17
+ ValidJobEnum["UPDATE_SUMMARY"] = "UPDATE_SUMMARY";
18
+ ValidJobEnum["DAILY_CLOSE"] = "DAILY_CLOSE";
15
19
  })(ValidJobEnum || (exports.ValidJobEnum = ValidJobEnum = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum WalletMode {
2
+ MODO_RIFERO = "MODO_RIFERO",
3
+ VENTA_CREDITO = "VENTA_CREDITO"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WalletMode = void 0;
4
+ var WalletMode;
5
+ (function (WalletMode) {
6
+ WalletMode["MODO_RIFERO"] = "MODO_RIFERO";
7
+ WalletMode["VENTA_CREDITO"] = "VENTA_CREDITO";
8
+ })(WalletMode || (exports.WalletMode = WalletMode = {}));
@@ -0,0 +1,21 @@
1
+ import { AccountOwnerType } from "../../enum";
2
+ export interface AccountInterface {
3
+ id: string;
4
+ id_account_type: string;
5
+ owner_type: AccountOwnerType;
6
+ owner_id: string;
7
+ balance: number;
8
+ currency: string;
9
+ active: boolean;
10
+ create_at: Date;
11
+ update_at: Date;
12
+ }
13
+ export interface AccountFormInterface {
14
+ id: string;
15
+ id_account_type: string;
16
+ owner_type: AccountOwnerType;
17
+ owner_id: string;
18
+ balance: number;
19
+ currency: string;
20
+ active: boolean;
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { AccountInterface } from "./account.base";
2
+ import { CreateAccountInterface } from "./create-account.base";
3
+ import { ParamsAccountInterface } from "./params-account.base";
4
+ import { ResponseAccountInterface } from "./response-account.base";
5
+ import { UpdateAccountInterface } from "./update-account.base";
6
+ import { ResponseInterface } from "../common";
7
+ export interface AccountControllerInterface {
8
+ create(dto: CreateAccountInterface): Promise<AccountInterface>;
9
+ findAll(pagination: ParamsAccountInterface): Promise<ResponseAccountInterface>;
10
+ findOne(id: string): Promise<AccountInterface>;
11
+ update(dto: UpdateAccountInterface): Promise<AccountInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { AccountInterface } from "./account.base";
2
+ import { CreateAccountInterface } from "./create-account.base";
3
+ import { ParamsAccountInterface } from "./params-account.base";
4
+ import { ResponseAccountInterface } from "./response-account.base";
5
+ import { UpdateAccountInterface } from "./update-account.base";
6
+ import { ResponseInterface } from "../common";
7
+ export interface AccountDatasourceInterface {
8
+ create(dto: CreateAccountInterface): Promise<AccountInterface>;
9
+ findAll(pagination: ParamsAccountInterface): Promise<ResponseAccountInterface>;
10
+ findOne(id: string): Promise<AccountInterface>;
11
+ update(dto: UpdateAccountInterface): Promise<AccountInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { ResponseInterface } from "../common";
2
+ import { UserInterface } from "../user";
3
+ import { AccountInterface } from "./account.base";
4
+ import { CreateAccountInterface } from "./create-account.base";
5
+ import { ParamsAccountInterface } from "./params-account.base";
6
+ import { ResponseAccountInterface } from "./response-account.base";
7
+ import { UpdateAccountInterface } from "./update-account.base";
8
+ export interface AccountResolverInterface {
9
+ create(dto: CreateAccountInterface, user?: UserInterface): Promise<AccountInterface>;
10
+ findAll(pagination: ParamsAccountInterface, user?: UserInterface): Promise<ResponseAccountInterface>;
11
+ findOne(id: string, user?: UserInterface): Promise<AccountInterface>;
12
+ update(dto: UpdateAccountInterface, user?: UserInterface): Promise<AccountInterface>;
13
+ remove(id: string, user?: UserInterface): Promise<ResponseInterface>;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { ResponseInterface } from "../common";
2
+ import { AccountInterface } from "./account.base";
3
+ import { CreateAccountInterface } from "./create-account.base";
4
+ import { ParamsAccountInterface } from "./params-account.base";
5
+ import { ResponseAccountInterface } from "./response-account.base";
6
+ import { UpdateAccountInterface } from "./update-account.base";
7
+ export interface AccountServiceInterface {
8
+ create(dto: CreateAccountInterface): Promise<AccountInterface>;
9
+ findAll(pagination: ParamsAccountInterface): Promise<ResponseAccountInterface>;
10
+ findOne(id: string): Promise<AccountInterface>;
11
+ update(dto: UpdateAccountInterface): Promise<AccountInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { AccountOwnerType } from "../../enum";
2
+ export interface CreateAccountInterface {
3
+ id_account_type: string;
4
+ owner_type: AccountOwnerType;
5
+ owner_id: string;
6
+ balance?: number;
7
+ currency?: string;
8
+ active?: boolean;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export * from "./account.base";
2
+ export * from "./account.controller";
3
+ export * from "./account.datasource";
4
+ export * from "./account.resolver";
5
+ export * from "./account.service";
6
+ export * from "./create-account.base";
7
+ export * from "./params-account.base";
8
+ export * from "./response-account.base";
9
+ export * from "./update-account.base";
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./account.base"), exports);
18
+ __exportStar(require("./account.controller"), exports);
19
+ __exportStar(require("./account.datasource"), exports);
20
+ __exportStar(require("./account.resolver"), exports);
21
+ __exportStar(require("./account.service"), exports);
22
+ __exportStar(require("./create-account.base"), exports);
23
+ __exportStar(require("./params-account.base"), exports);
24
+ __exportStar(require("./response-account.base"), exports);
25
+ __exportStar(require("./update-account.base"), exports);
@@ -0,0 +1,10 @@
1
+ import { AccountOwnerType } from "../../enum";
2
+ import { PaginationInterface } from "../common";
3
+ export interface ParamsAccountInterface extends PaginationInterface {
4
+ offset: number;
5
+ limit: number;
6
+ active: boolean;
7
+ owner_type?: AccountOwnerType;
8
+ owner_id?: string;
9
+ id_account_type?: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { AccountInterface } from "./account.base";
2
+ export interface ResponseAccountInterface {
3
+ items: AccountInterface[];
4
+ total: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { AccountOwnerType } from "../../enum";
2
+ export interface UpdateAccountInterface {
3
+ id: string;
4
+ id_account_type?: string;
5
+ owner_type?: AccountOwnerType;
6
+ owner_id?: string;
7
+ balance?: number;
8
+ currency?: string;
9
+ active?: boolean;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ export interface AccountTypeInterface {
2
+ id: string;
3
+ name: string;
4
+ code: string;
5
+ description?: string;
6
+ allows_negative_balance: boolean;
7
+ requires_preload: boolean;
8
+ allows_withdrawal: boolean;
9
+ active: boolean;
10
+ create_at: Date;
11
+ update_at: Date;
12
+ }
13
+ export interface AccountTypeFormInterface {
14
+ id: string;
15
+ name: string;
16
+ code: string;
17
+ description?: string;
18
+ allows_negative_balance: boolean;
19
+ requires_preload: boolean;
20
+ allows_withdrawal: boolean;
21
+ active: boolean;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { AccountTypeInterface } from "./account-type.base";
2
+ import { CreateAccountTypeInterface } from "./create-account-type.base";
3
+ import { ParamsAccountTypeInterface } from "./params-account-type.base";
4
+ import { ResponseAccountTypeInterface } from "./response-account-type.base";
5
+ import { UpdateAccountTypeInterface } from "./update-account-type.base";
6
+ import { ResponseInterface } from "../common";
7
+ export interface AccountTypeControllerInterface {
8
+ create(dto: CreateAccountTypeInterface): Promise<AccountTypeInterface>;
9
+ findAll(pagination: ParamsAccountTypeInterface): Promise<ResponseAccountTypeInterface>;
10
+ findOne(id: string): Promise<AccountTypeInterface>;
11
+ update(dto: UpdateAccountTypeInterface): Promise<AccountTypeInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { AccountTypeInterface } from "./account-type.base";
2
+ import { CreateAccountTypeInterface } from "./create-account-type.base";
3
+ import { ParamsAccountTypeInterface } from "./params-account-type.base";
4
+ import { ResponseAccountTypeInterface } from "./response-account-type.base";
5
+ import { UpdateAccountTypeInterface } from "./update-account-type.base";
6
+ import { ResponseInterface } from "../common";
7
+ export interface AccountTypeDatasourceInterface {
8
+ create(dto: CreateAccountTypeInterface): Promise<AccountTypeInterface>;
9
+ findAll(pagination: ParamsAccountTypeInterface): Promise<ResponseAccountTypeInterface>;
10
+ findOne(id: string): Promise<AccountTypeInterface>;
11
+ update(dto: UpdateAccountTypeInterface): Promise<AccountTypeInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { ResponseInterface } from "../common";
2
+ import { UserInterface } from "../user";
3
+ import { AccountTypeInterface } from "./account-type.base";
4
+ import { CreateAccountTypeInterface } from "./create-account-type.base";
5
+ import { ParamsAccountTypeInterface } from "./params-account-type.base";
6
+ import { ResponseAccountTypeInterface } from "./response-account-type.base";
7
+ import { UpdateAccountTypeInterface } from "./update-account-type.base";
8
+ export interface AccountTypeResolverInterface {
9
+ create(dto: CreateAccountTypeInterface, user?: UserInterface): Promise<AccountTypeInterface>;
10
+ findAll(pagination: ParamsAccountTypeInterface, user?: UserInterface): Promise<ResponseAccountTypeInterface>;
11
+ findOne(id: string, user?: UserInterface): Promise<AccountTypeInterface>;
12
+ update(dto: UpdateAccountTypeInterface, user?: UserInterface): Promise<AccountTypeInterface>;
13
+ remove(id: string, user?: UserInterface): Promise<ResponseInterface>;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { ResponseInterface } from "../common";
2
+ import { AccountTypeInterface } from "./account-type.base";
3
+ import { CreateAccountTypeInterface } from "./create-account-type.base";
4
+ import { ParamsAccountTypeInterface } from "./params-account-type.base";
5
+ import { ResponseAccountTypeInterface } from "./response-account-type.base";
6
+ import { UpdateAccountTypeInterface } from "./update-account-type.base";
7
+ export interface AccountTypeServiceInterface {
8
+ create(dto: CreateAccountTypeInterface): Promise<AccountTypeInterface>;
9
+ findAll(pagination: ParamsAccountTypeInterface): Promise<ResponseAccountTypeInterface>;
10
+ findOne(id: string): Promise<AccountTypeInterface>;
11
+ update(dto: UpdateAccountTypeInterface): Promise<AccountTypeInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface CreateAccountTypeInterface {
2
+ name: string;
3
+ code: string;
4
+ description?: string;
5
+ allows_negative_balance?: boolean;
6
+ requires_preload?: boolean;
7
+ allows_withdrawal?: boolean;
8
+ active?: boolean;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export * from "./account-type.base";
2
+ export * from "./account-type.controller";
3
+ export * from "./account-type.datasource";
4
+ export * from "./account-type.resolver";
5
+ export * from "./account-type.service";
6
+ export * from "./create-account-type.base";
7
+ export * from "./params-account-type.base";
8
+ export * from "./response-account-type.base";
9
+ export * from "./update-account-type.base";
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./account-type.base"), exports);
18
+ __exportStar(require("./account-type.controller"), exports);
19
+ __exportStar(require("./account-type.datasource"), exports);
20
+ __exportStar(require("./account-type.resolver"), exports);
21
+ __exportStar(require("./account-type.service"), exports);
22
+ __exportStar(require("./create-account-type.base"), exports);
23
+ __exportStar(require("./params-account-type.base"), exports);
24
+ __exportStar(require("./response-account-type.base"), exports);
25
+ __exportStar(require("./update-account-type.base"), exports);
@@ -0,0 +1,6 @@
1
+ import { PaginationInterface } from "../common";
2
+ export interface ParamsAccountTypeInterface extends PaginationInterface {
3
+ offset: number;
4
+ limit: number;
5
+ active: boolean;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { AccountTypeInterface } from "./account-type.base";
2
+ export interface ResponseAccountTypeInterface {
3
+ items: AccountTypeInterface[];
4
+ total: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export interface UpdateAccountTypeInterface {
2
+ id: string;
3
+ name?: string;
4
+ code?: string;
5
+ description?: string;
6
+ allows_negative_balance?: boolean;
7
+ requires_preload?: boolean;
8
+ allows_withdrawal?: boolean;
9
+ active?: boolean;
10
+ }