@carlosdiazz/lottodiz-shared 3.2.9 → 3.3.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.
@@ -1,10 +1,5 @@
1
- import { AccountOwnerType } from "../../enum";
2
1
  export interface UpdateAccountInterface {
3
2
  id: string;
4
- id_account_type?: string;
5
- owner_type?: AccountOwnerType;
6
- owner_id?: string;
7
- balance?: number;
8
3
  currency?: string;
9
4
  active?: boolean;
10
5
  }
@@ -1,3 +1,4 @@
1
+ import { AccountInterface } from "../account";
1
2
  import { GroupInterface } from "../group";
2
3
  export interface CompanyInterface {
3
4
  id: string;
@@ -6,6 +7,7 @@ export interface CompanyInterface {
6
7
  active: boolean;
7
8
  code: string;
8
9
  group?: GroupInterface[];
10
+ account?: AccountInterface;
9
11
  create_at: Date;
10
12
  update_at: Date;
11
13
  }
@@ -15,4 +17,5 @@ export interface CompanyFormInterface {
15
17
  image?: string;
16
18
  active: boolean;
17
19
  code: string;
20
+ id_account?: string;
18
21
  }
@@ -4,4 +4,5 @@ export interface CreateGroupInterface {
4
4
  active?: boolean;
5
5
  code: string;
6
6
  id_company: string;
7
+ id_account?: string;
7
8
  }
@@ -1,3 +1,4 @@
1
+ import { AccountInterface } from "../account";
1
2
  import { CompanyInterface } from "../company";
2
3
  import { PosInterface } from "../pos";
3
4
  export interface GroupInterface {
@@ -8,6 +9,7 @@ export interface GroupInterface {
8
9
  code: string;
9
10
  company?: CompanyInterface;
10
11
  pos?: PosInterface[];
12
+ account?: AccountInterface;
11
13
  create_at: Date;
12
14
  update_at: Date;
13
15
  }
@@ -18,4 +20,5 @@ export interface GroupFormInterface {
18
20
  active: boolean;
19
21
  code: string;
20
22
  id_company: string;
23
+ id_account?: string;
21
24
  }
@@ -29,7 +29,6 @@ export * from "./pos_monitor";
29
29
  export * from "./pos_user";
30
30
  export * from "./position_result";
31
31
  export * from "./queue";
32
- export * from "./report";
33
32
  export * from "./role";
34
33
  export * from "./template_draw_webscraping";
35
34
  export * from "./template_draw";
@@ -40,6 +39,5 @@ export * from "./template_video";
40
39
  export * from "./ticket";
41
40
  export * from "./transaction";
42
41
  export * from "./user";
43
- export * from "./wallet";
44
42
  export * from "./webscraping";
45
43
  export * from "./youtube";
@@ -45,7 +45,6 @@ __exportStar(require("./pos_monitor"), exports);
45
45
  __exportStar(require("./pos_user"), exports);
46
46
  __exportStar(require("./position_result"), exports);
47
47
  __exportStar(require("./queue"), exports);
48
- __exportStar(require("./report"), exports);
49
48
  __exportStar(require("./role"), exports);
50
49
  __exportStar(require("./template_draw_webscraping"), exports);
51
50
  __exportStar(require("./template_draw"), exports);
@@ -56,6 +55,5 @@ __exportStar(require("./template_video"), exports);
56
55
  __exportStar(require("./ticket"), exports);
57
56
  __exportStar(require("./transaction"), exports);
58
57
  __exportStar(require("./user"), exports);
59
- __exportStar(require("./wallet"), exports);
60
58
  __exportStar(require("./webscraping"), exports);
61
59
  __exportStar(require("./youtube"), exports);
@@ -6,6 +6,7 @@ export interface CreatePosInterface {
6
6
  code: string;
7
7
  id_group: string;
8
8
  wallet_mode: WalletMode;
9
+ id_account?: string;
9
10
  }
10
11
  export interface checkPosCodeDtoInterface {
11
12
  nickname: string;
@@ -3,6 +3,7 @@ import { GroupInterface } from "../group";
3
3
  import { PosUserInterface } from "../pos_user";
4
4
  import { PosMonitorInterface } from "../pos_monitor";
5
5
  import { PosCodeInterface } from "../pos_code";
6
+ import { AccountInterface } from "../account";
6
7
  export interface PosInterface {
7
8
  id: string;
8
9
  name: string;
@@ -13,6 +14,7 @@ export interface PosInterface {
13
14
  pos_user?: PosUserInterface[];
14
15
  pos_monitor?: PosMonitorInterface;
15
16
  pos_code?: PosCodeInterface;
17
+ account?: AccountInterface;
16
18
  wallet_mode: WalletMode;
17
19
  create_at: Date;
18
20
  update_at: Date;
@@ -1,4 +1,3 @@
1
- import { WalletMode } from "../../enum";
2
1
  export interface UpdatePosInterface {
3
2
  id: string;
4
3
  name?: string;
@@ -6,5 +5,4 @@ export interface UpdatePosInterface {
6
5
  active?: boolean;
7
6
  code?: string;
8
7
  id_group?: string;
9
- wallet_mode?: WalletMode;
10
8
  }
@@ -1,10 +1,11 @@
1
+ import { UserInterface } from "../user";
1
2
  export interface CreateTicketDetailInterface {
2
3
  number_played: number[];
3
4
  amount: number;
4
5
  id_game_type: number;
5
6
  }
6
7
  export interface CreateTicketInterface {
7
- id_pos: string;
8
8
  id_draw: number;
9
9
  details: CreateTicketDetailInterface[];
10
+ user?: UserInterface;
10
11
  }
@@ -6,5 +6,5 @@ export interface CreateTransactionInterface {
6
6
  transaction_type: TransactionType;
7
7
  description: string;
8
8
  reference_id: string;
9
- operator_id: string;
9
+ operator_id?: string;
10
10
  }
@@ -2,12 +2,16 @@ import { TransactionType } from "../../enum";
2
2
  export interface TransactionInterface {
3
3
  id: string;
4
4
  sequence_number: number;
5
- id_debit_account: string;
6
- id_credit_account: string;
7
5
  amount: number;
8
6
  transaction_type: TransactionType;
9
7
  description: string;
10
8
  reference_id: string;
11
- operator_id: string;
9
+ operator_id?: string;
10
+ id_debit_account: string;
11
+ old_balance_debit: number;
12
+ new_balance_debit: number;
13
+ id_credit_account: string;
14
+ new_balance_credit: number;
15
+ old_balance_credit: number;
12
16
  create_at: Date;
13
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "3.2.9",
3
+ "version": "3.3.1",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,