pg-manipulator 1.0.56 → 1.0.58

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 (41) hide show
  1. package/dist/@types/admin/atributo_fields.d.ts +1 -0
  2. package/dist/@types/admin/atributo_order.d.ts +1 -0
  3. package/dist/@types/admin/atributo_select.d.ts +1 -0
  4. package/dist/@types/admin/atributo_update.d.ts +1 -0
  5. package/dist/@types/admin/atributo_where.d.ts +1 -0
  6. package/dist/@types/admin/categoria_fields.d.ts +1 -0
  7. package/dist/@types/admin/categoria_order.d.ts +1 -0
  8. package/dist/@types/admin/categoria_select.d.ts +1 -0
  9. package/dist/@types/admin/categoria_update.d.ts +1 -0
  10. package/dist/@types/admin/categoria_where.d.ts +1 -0
  11. package/dist/@types/admin/entidade_fields.d.ts +1 -0
  12. package/dist/@types/admin/entidade_order.d.ts +1 -0
  13. package/dist/@types/admin/entidade_select.d.ts +1 -0
  14. package/dist/@types/admin/entidade_update.d.ts +1 -0
  15. package/dist/@types/admin/entidade_where.d.ts +1 -0
  16. package/dist/@types/admin/item_fields.d.ts +1 -0
  17. package/dist/@types/admin/item_order.d.ts +1 -0
  18. package/dist/@types/admin/item_select.d.ts +1 -0
  19. package/dist/@types/admin/item_update.d.ts +1 -0
  20. package/dist/@types/admin/item_where.d.ts +1 -0
  21. package/dist/@types/admin/marca_fields.d.ts +1 -0
  22. package/dist/@types/admin/marca_order.d.ts +1 -0
  23. package/dist/@types/admin/marca_select.d.ts +1 -0
  24. package/dist/@types/admin/marca_update.d.ts +1 -0
  25. package/dist/@types/admin/marca_where.d.ts +1 -0
  26. package/dist/@types/admin/operacao_fields.d.ts +1 -0
  27. package/dist/@types/admin/operacao_order.d.ts +1 -0
  28. package/dist/@types/admin/operacao_select.d.ts +1 -0
  29. package/dist/@types/admin/operacao_update.d.ts +1 -0
  30. package/dist/@types/admin/operacao_where.d.ts +1 -0
  31. package/dist/class/admin/index.d.ts +20 -20
  32. package/dist/class/admin/index.js +20 -20
  33. package/dist/mapping/admin/atributo.js +11 -0
  34. package/dist/mapping/admin/categoria.js +11 -0
  35. package/dist/mapping/admin/entidade.js +15 -4
  36. package/dist/mapping/admin/index.d.ts +73 -73
  37. package/dist/mapping/admin/index.js +20 -20
  38. package/dist/mapping/admin/item.js +11 -0
  39. package/dist/mapping/admin/marca.js +11 -0
  40. package/dist/mapping/admin/operacao.js +11 -0
  41. package/package.json +1 -1
@@ -5,4 +5,5 @@ export type atributo_fields = {
5
5
  descricao?: string;
6
6
  valor: string;
7
7
  situacao?: boolean;
8
+ empresa?: number;
8
9
  };
@@ -5,4 +5,5 @@ export type atributo_order = {
5
5
  descricao?: 'desc' | 'asc';
6
6
  valor?: 'desc' | 'asc';
7
7
  situacao?: 'desc' | 'asc';
8
+ empresa?: 'desc' | 'asc';
8
9
  };
@@ -7,6 +7,7 @@ export type atributo_select = {
7
7
  descricao?: string;
8
8
  valor?: string;
9
9
  situacao?: boolean;
10
+ empresa?: number;
10
11
  where: atributo_where;
11
12
  order?: atributo_order;
12
13
  };
@@ -6,5 +6,6 @@ export type atributo_update = {
6
6
  descricao?: string;
7
7
  valor?: string;
8
8
  situacao?: boolean;
9
+ empresa?: number;
9
10
  where: atributo_where;
10
11
  };
@@ -6,4 +6,5 @@ export type atributo_where = {
6
6
  descricao?: where_string | string;
7
7
  valor?: where_string | string;
8
8
  situacao?: where_boolean | boolean;
9
+ empresa?: where_number | number;
9
10
  };
@@ -6,4 +6,5 @@ export type categoria_fields = {
6
6
  imagem?: string;
7
7
  icone?: string;
8
8
  is_padrao?: boolean;
9
+ empresa?: number;
9
10
  };
@@ -6,4 +6,5 @@ export type categoria_order = {
6
6
  imagem?: 'desc' | 'asc';
7
7
  icone?: 'desc' | 'asc';
8
8
  is_padrao?: 'desc' | 'asc';
9
+ empresa?: 'desc' | 'asc';
9
10
  };
@@ -8,6 +8,7 @@ export type categoria_select = {
8
8
  imagem?: string;
9
9
  icone?: string;
10
10
  is_padrao?: boolean;
11
+ empresa?: number;
11
12
  where: categoria_where;
12
13
  order?: categoria_order;
13
14
  };
@@ -7,5 +7,6 @@ export type categoria_update = {
7
7
  imagem?: string;
8
8
  icone?: string;
9
9
  is_padrao?: boolean;
10
+ empresa?: number;
10
11
  where: categoria_where;
11
12
  };
@@ -7,4 +7,5 @@ export type categoria_where = {
7
7
  imagem?: where_string | string;
8
8
  icone?: where_string | string;
9
9
  is_padrao?: where_boolean | boolean;
10
+ empresa?: where_number | number;
10
11
  };
@@ -10,4 +10,5 @@ export type entidade_fields = {
10
10
  is_cliente?: boolean;
11
11
  id_externo?: string;
12
12
  ultimo_acesso?: Date;
13
+ empresa?: number;
13
14
  };
@@ -10,4 +10,5 @@ export type entidade_order = {
10
10
  is_cliente?: 'desc' | 'asc';
11
11
  id_externo?: 'desc' | 'asc';
12
12
  ultimo_acesso?: 'desc' | 'asc';
13
+ empresa?: 'desc' | 'asc';
13
14
  };
@@ -12,6 +12,7 @@ export type entidade_select = {
12
12
  is_cliente?: boolean;
13
13
  id_externo?: string;
14
14
  ultimo_acesso?: Date;
15
+ empresa?: number;
15
16
  where: entidade_where;
16
17
  order?: entidade_order;
17
18
  };
@@ -11,5 +11,6 @@ export type entidade_update = {
11
11
  is_cliente?: boolean;
12
12
  id_externo?: string;
13
13
  ultimo_acesso?: Date;
14
+ empresa?: number;
14
15
  where: entidade_where;
15
16
  };
@@ -11,4 +11,5 @@ export type entidade_where = {
11
11
  is_cliente?: where_boolean | boolean;
12
12
  id_externo?: where_string | string;
13
13
  ultimo_acesso?: where_date | Date;
14
+ empresa?: where_number | number;
14
15
  };
@@ -21,5 +21,6 @@ export type item_fields = {
21
21
  ativo?: boolean;
22
22
  cfopi: string;
23
23
  cfope: string;
24
+ empresa?: number;
24
25
  destaque?: boolean;
25
26
  };
@@ -21,5 +21,6 @@ export type item_order = {
21
21
  ativo?: 'desc' | 'asc';
22
22
  cfopi?: 'desc' | 'asc';
23
23
  cfope?: 'desc' | 'asc';
24
+ empresa?: 'desc' | 'asc';
24
25
  destaque?: 'desc' | 'asc';
25
26
  };
@@ -23,6 +23,7 @@ export type item_select = {
23
23
  ativo?: boolean;
24
24
  cfopi?: string;
25
25
  cfope?: string;
26
+ empresa?: number;
26
27
  destaque?: boolean;
27
28
  where: item_where;
28
29
  order?: item_order;
@@ -22,6 +22,7 @@ export type item_update = {
22
22
  ativo?: boolean;
23
23
  cfopi?: string;
24
24
  cfope?: string;
25
+ empresa?: number;
25
26
  destaque?: boolean;
26
27
  where: item_where;
27
28
  };
@@ -22,5 +22,6 @@ export type item_where = {
22
22
  ativo?: where_boolean | boolean;
23
23
  cfopi?: where_string | string;
24
24
  cfope?: where_string | string;
25
+ empresa?: where_number | number;
25
26
  destaque?: where_boolean | boolean;
26
27
  };
@@ -5,4 +5,5 @@ export type marca_fields = {
5
5
  imagem?: string;
6
6
  icone?: string;
7
7
  is_padrao?: boolean;
8
+ empresa?: number;
8
9
  };
@@ -5,4 +5,5 @@ export type marca_order = {
5
5
  imagem?: 'desc' | 'asc';
6
6
  icone?: 'desc' | 'asc';
7
7
  is_padrao?: 'desc' | 'asc';
8
+ empresa?: 'desc' | 'asc';
8
9
  };
@@ -7,6 +7,7 @@ export type marca_select = {
7
7
  imagem?: string;
8
8
  icone?: string;
9
9
  is_padrao?: boolean;
10
+ empresa?: number;
10
11
  where: marca_where;
11
12
  order?: marca_order;
12
13
  };
@@ -6,5 +6,6 @@ export type marca_update = {
6
6
  imagem?: string;
7
7
  icone?: string;
8
8
  is_padrao?: boolean;
9
+ empresa?: number;
9
10
  where: marca_where;
10
11
  };
@@ -6,4 +6,5 @@ export type marca_where = {
6
6
  imagem?: where_string | string;
7
7
  icone?: where_string | string;
8
8
  is_padrao?: where_boolean | boolean;
9
+ empresa?: where_number | number;
9
10
  };
@@ -23,4 +23,5 @@ export type operacao_fields = {
23
23
  frete?: any;
24
24
  etiquetas?: any;
25
25
  entidade_endereco?: number;
26
+ empresa?: number;
26
27
  };
@@ -23,4 +23,5 @@ export type operacao_order = {
23
23
  frete?: 'desc' | 'asc';
24
24
  etiquetas?: 'desc' | 'asc';
25
25
  entidade_endereco?: 'desc' | 'asc';
26
+ empresa?: 'desc' | 'asc';
26
27
  };
@@ -25,6 +25,7 @@ export type operacao_select = {
25
25
  frete?: any;
26
26
  etiquetas?: any;
27
27
  entidade_endereco?: number;
28
+ empresa?: number;
28
29
  where: operacao_where;
29
30
  order?: operacao_order;
30
31
  };
@@ -24,5 +24,6 @@ export type operacao_update = {
24
24
  frete?: any;
25
25
  etiquetas?: any;
26
26
  entidade_endereco?: number;
27
+ empresa?: number;
27
28
  where: operacao_where;
28
29
  };
@@ -24,4 +24,5 @@ export type operacao_where = {
24
24
  frete?: any;
25
25
  etiquetas?: any;
26
26
  entidade_endereco?: where_number | number;
27
+ empresa?: where_number | number;
27
28
  };
@@ -1,37 +1,37 @@
1
1
  import { PoolClient } from 'pg';
2
2
  import { pool_tsx } from '../../@types';
3
- import atributo from './atributo';
4
- import item_variacao_atributo from './item_variacao_atributo';
5
- import entidade_endereco from './entidade_endereco';
6
- import operacao_pagamento from './operacao_pagamento';
7
- import entidade from './entidade';
8
3
  import usuario from './usuario';
9
- import entidade_cartao from './entidade_cartao';
4
+ import entidade from './entidade';
5
+ import empresa from './empresa';
6
+ import operacao_item from './operacao_item';
7
+ import operacao_pagamento from './operacao_pagamento';
10
8
  import item from './item';
11
- import item_variacao from './item_variacao';
12
9
  import categoria from './categoria';
10
+ import entidade_endereco from './entidade_endereco';
11
+ import operacao from './operacao';
12
+ import item_variacao_atributo from './item_variacao_atributo';
13
13
  import item_variacao_imagem from './item_variacao_imagem';
14
- import operacao_item from './operacao_item';
14
+ import atributo from './atributo';
15
+ import entidade_cartao from './entidade_cartao';
15
16
  import marca from './marca';
16
- import empresa from './empresa';
17
- import operacao from './operacao';
17
+ import item_variacao from './item_variacao';
18
18
  declare const _default: {
19
19
  query(query_string: string, query_params: Array<any>, transaction?: PoolClient | any): Promise<any>;
20
20
  transaction(callback: pool_tsx): Promise<void>;
21
- atributo: typeof atributo;
22
- item_variacao_atributo: typeof item_variacao_atributo;
23
- entidade_endereco: typeof entidade_endereco;
24
- operacao_pagamento: typeof operacao_pagamento;
25
- entidade: typeof entidade;
26
21
  usuario: typeof usuario;
27
- entidade_cartao: typeof entidade_cartao;
22
+ entidade: typeof entidade;
23
+ empresa: typeof empresa;
24
+ operacao_item: typeof operacao_item;
25
+ operacao_pagamento: typeof operacao_pagamento;
28
26
  item: typeof item;
29
- item_variacao: typeof item_variacao;
30
27
  categoria: typeof categoria;
28
+ entidade_endereco: typeof entidade_endereco;
29
+ operacao: typeof operacao;
30
+ item_variacao_atributo: typeof item_variacao_atributo;
31
31
  item_variacao_imagem: typeof item_variacao_imagem;
32
- operacao_item: typeof operacao_item;
32
+ atributo: typeof atributo;
33
+ entidade_cartao: typeof entidade_cartao;
33
34
  marca: typeof marca;
34
- empresa: typeof empresa;
35
- operacao: typeof operacao;
35
+ item_variacao: typeof item_variacao;
36
36
  };
37
37
  export default _default;
@@ -4,21 +4,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const database_1 = __importDefault(require("../../database"));
7
- const atributo_1 = __importDefault(require("./atributo"));
8
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
9
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
10
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
11
- const entidade_1 = __importDefault(require("./entidade"));
12
7
  const usuario_1 = __importDefault(require("./usuario"));
13
- const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
8
+ const entidade_1 = __importDefault(require("./entidade"));
9
+ const empresa_1 = __importDefault(require("./empresa"));
10
+ const operacao_item_1 = __importDefault(require("./operacao_item"));
11
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
14
12
  const item_1 = __importDefault(require("./item"));
15
- const item_variacao_1 = __importDefault(require("./item_variacao"));
16
13
  const categoria_1 = __importDefault(require("./categoria"));
14
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
15
+ const operacao_1 = __importDefault(require("./operacao"));
16
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
17
17
  const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
18
- const operacao_item_1 = __importDefault(require("./operacao_item"));
18
+ const atributo_1 = __importDefault(require("./atributo"));
19
+ const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
19
20
  const marca_1 = __importDefault(require("./marca"));
20
- const empresa_1 = __importDefault(require("./empresa"));
21
- const operacao_1 = __importDefault(require("./operacao"));
21
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
22
22
  exports.default = {
23
23
  async query(query_string, query_params, transaction = undefined) {
24
24
  return await database_1.default.query('admin', query_string, query_params, transaction);
@@ -26,19 +26,19 @@ exports.default = {
26
26
  async transaction(callback) {
27
27
  return await database_1.default.transaction('admin', callback);
28
28
  },
29
- atributo: atributo_1.default,
30
- item_variacao_atributo: item_variacao_atributo_1.default,
31
- entidade_endereco: entidade_endereco_1.default,
32
- operacao_pagamento: operacao_pagamento_1.default,
33
- entidade: entidade_1.default,
34
29
  usuario: usuario_1.default,
35
- entidade_cartao: entidade_cartao_1.default,
30
+ entidade: entidade_1.default,
31
+ empresa: empresa_1.default,
32
+ operacao_item: operacao_item_1.default,
33
+ operacao_pagamento: operacao_pagamento_1.default,
36
34
  item: item_1.default,
37
- item_variacao: item_variacao_1.default,
38
35
  categoria: categoria_1.default,
36
+ entidade_endereco: entidade_endereco_1.default,
37
+ operacao: operacao_1.default,
38
+ item_variacao_atributo: item_variacao_atributo_1.default,
39
39
  item_variacao_imagem: item_variacao_imagem_1.default,
40
- operacao_item: operacao_item_1.default,
40
+ atributo: atributo_1.default,
41
+ entidade_cartao: entidade_cartao_1.default,
41
42
  marca: marca_1.default,
42
- empresa: empresa_1.default,
43
- operacao: operacao_1.default
43
+ item_variacao: item_variacao_1.default
44
44
  };
@@ -67,6 +67,17 @@ exports.default = {
67
67
  "fk_table": null,
68
68
  "fk_reference": null,
69
69
  "pk": false
70
+ },
71
+ {
72
+ "name": "empresa",
73
+ "value": {
74
+ "type": "integer",
75
+ "is_null": "YES",
76
+ "maxlength": null
77
+ },
78
+ "fk_table": null,
79
+ "fk_reference": null,
80
+ "pk": false
70
81
  }
71
82
  ],
72
83
  "fathers": [],
@@ -78,6 +78,17 @@ exports.default = {
78
78
  "fk_table": null,
79
79
  "fk_reference": null,
80
80
  "pk": false
81
+ },
82
+ {
83
+ "name": "empresa",
84
+ "value": {
85
+ "type": "integer",
86
+ "is_null": "YES",
87
+ "maxlength": null
88
+ },
89
+ "fk_table": null,
90
+ "fk_reference": null,
91
+ "pk": false
81
92
  }
82
93
  ],
83
94
  "fathers": [],
@@ -122,6 +122,17 @@ exports.default = {
122
122
  "fk_table": null,
123
123
  "fk_reference": null,
124
124
  "pk": false
125
+ },
126
+ {
127
+ "name": "empresa",
128
+ "value": {
129
+ "type": "integer",
130
+ "is_null": "YES",
131
+ "maxlength": null
132
+ },
133
+ "fk_table": null,
134
+ "fk_reference": null,
135
+ "pk": false
125
136
  }
126
137
  ],
127
138
  "fathers": [],
@@ -149,10 +160,10 @@ exports.default = {
149
160
  "pk": false
150
161
  },
151
162
  {
152
- "name": "id_entidade",
163
+ "name": "transportadora",
153
164
  "value": {
154
165
  "type": "integer",
155
- "is_null": "NO",
166
+ "is_null": "YES",
156
167
  "maxlength": null
157
168
  },
158
169
  "fk_table": "entidade",
@@ -160,10 +171,10 @@ exports.default = {
160
171
  "pk": false
161
172
  },
162
173
  {
163
- "name": "transportadora",
174
+ "name": "id_entidade",
164
175
  "value": {
165
176
  "type": "integer",
166
- "is_null": "YES",
177
+ "is_null": "NO",
167
178
  "maxlength": null
168
179
  },
169
180
  "fk_table": "entidade",
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- atributo: {
2
+ usuario: {
3
3
  columns: ({
4
4
  name: string;
5
5
  value: {
@@ -22,7 +22,11 @@ declare const _default: {
22
22
  pk: boolean;
23
23
  })[];
24
24
  fathers: never[];
25
- childrens: {
25
+ childrens: never[];
26
+ name: string;
27
+ };
28
+ entidade: {
29
+ columns: ({
26
30
  name: string;
27
31
  value: {
28
32
  type: string;
@@ -32,22 +36,19 @@ declare const _default: {
32
36
  fk_table: string;
33
37
  fk_reference: string;
34
38
  pk: boolean;
35
- }[];
36
- name: string;
37
- };
38
- item_variacao_atributo: {
39
- columns: {
39
+ } | {
40
40
  name: string;
41
41
  value: {
42
42
  type: string;
43
43
  is_null: string;
44
44
  maxlength: null;
45
45
  };
46
- fk_table: string;
47
- fk_reference: string;
46
+ fk_table: null;
47
+ fk_reference: null;
48
48
  pk: boolean;
49
- }[];
50
- fathers: {
49
+ })[];
50
+ fathers: never[];
51
+ childrens: {
51
52
  name: string;
52
53
  value: {
53
54
  type: string;
@@ -58,10 +59,9 @@ declare const _default: {
58
59
  fk_reference: string;
59
60
  pk: boolean;
60
61
  }[];
61
- childrens: never[];
62
62
  name: string;
63
63
  };
64
- entidade_endereco: {
64
+ empresa: {
65
65
  columns: ({
66
66
  name: string;
67
67
  value: {
@@ -83,7 +83,12 @@ declare const _default: {
83
83
  fk_reference: null;
84
84
  pk: boolean;
85
85
  })[];
86
- fathers: {
86
+ fathers: never[];
87
+ childrens: never[];
88
+ name: string;
89
+ };
90
+ operacao_item: {
91
+ columns: ({
87
92
  name: string;
88
93
  value: {
89
94
  type: string;
@@ -93,8 +98,18 @@ declare const _default: {
93
98
  fk_table: string;
94
99
  fk_reference: string;
95
100
  pk: boolean;
96
- }[];
97
- childrens: {
101
+ } | {
102
+ name: string;
103
+ value: {
104
+ type: string;
105
+ is_null: string;
106
+ maxlength: null;
107
+ };
108
+ fk_table: null;
109
+ fk_reference: null;
110
+ pk: boolean;
111
+ })[];
112
+ fathers: {
98
113
  name: string;
99
114
  value: {
100
115
  type: string;
@@ -105,6 +120,7 @@ declare const _default: {
105
120
  fk_reference: string;
106
121
  pk: boolean;
107
122
  }[];
123
+ childrens: never[];
108
124
  name: string;
109
125
  };
110
126
  operacao_pagamento: {
@@ -143,7 +159,7 @@ declare const _default: {
143
159
  childrens: never[];
144
160
  name: string;
145
161
  };
146
- entidade: {
162
+ item: {
147
163
  columns: ({
148
164
  name: string;
149
165
  value: {
@@ -165,8 +181,7 @@ declare const _default: {
165
181
  fk_reference: null;
166
182
  pk: boolean;
167
183
  })[];
168
- fathers: never[];
169
- childrens: {
184
+ fathers: {
170
185
  name: string;
171
186
  value: {
172
187
  type: string;
@@ -177,10 +192,7 @@ declare const _default: {
177
192
  fk_reference: string;
178
193
  pk: boolean;
179
194
  }[];
180
- name: string;
181
- };
182
- usuario: {
183
- columns: ({
195
+ childrens: {
184
196
  name: string;
185
197
  value: {
186
198
  type: string;
@@ -190,22 +202,10 @@ declare const _default: {
190
202
  fk_table: string;
191
203
  fk_reference: string;
192
204
  pk: boolean;
193
- } | {
194
- name: string;
195
- value: {
196
- type: string;
197
- is_null: string;
198
- maxlength: null;
199
- };
200
- fk_table: null;
201
- fk_reference: null;
202
- pk: boolean;
203
- })[];
204
- fathers: never[];
205
- childrens: never[];
205
+ }[];
206
206
  name: string;
207
207
  };
208
- entidade_cartao: {
208
+ categoria: {
209
209
  columns: ({
210
210
  name: string;
211
211
  value: {
@@ -227,17 +227,7 @@ declare const _default: {
227
227
  fk_reference: null;
228
228
  pk: boolean;
229
229
  })[];
230
- fathers: {
231
- name: string;
232
- value: {
233
- type: string;
234
- is_null: string;
235
- maxlength: null;
236
- };
237
- fk_table: string;
238
- fk_reference: string;
239
- pk: boolean;
240
- }[];
230
+ fathers: never[];
241
231
  childrens: {
242
232
  name: string;
243
233
  value: {
@@ -251,7 +241,7 @@ declare const _default: {
251
241
  }[];
252
242
  name: string;
253
243
  };
254
- item: {
244
+ entidade_endereco: {
255
245
  columns: ({
256
246
  name: string;
257
247
  value: {
@@ -297,7 +287,7 @@ declare const _default: {
297
287
  }[];
298
288
  name: string;
299
289
  };
300
- item_variacao: {
290
+ operacao: {
301
291
  columns: ({
302
292
  name: string;
303
293
  value: {
@@ -343,8 +333,8 @@ declare const _default: {
343
333
  }[];
344
334
  name: string;
345
335
  };
346
- categoria: {
347
- columns: ({
336
+ item_variacao_atributo: {
337
+ columns: {
348
338
  name: string;
349
339
  value: {
350
340
  type: string;
@@ -354,19 +344,8 @@ declare const _default: {
354
344
  fk_table: string;
355
345
  fk_reference: string;
356
346
  pk: boolean;
357
- } | {
358
- name: string;
359
- value: {
360
- type: string;
361
- is_null: string;
362
- maxlength: null;
363
- };
364
- fk_table: null;
365
- fk_reference: null;
366
- pk: boolean;
367
- })[];
368
- fathers: never[];
369
- childrens: {
347
+ }[];
348
+ fathers: {
370
349
  name: string;
371
350
  value: {
372
351
  type: string;
@@ -377,6 +356,7 @@ declare const _default: {
377
356
  fk_reference: string;
378
357
  pk: boolean;
379
358
  }[];
359
+ childrens: never[];
380
360
  name: string;
381
361
  };
382
362
  item_variacao_imagem: {
@@ -415,7 +395,7 @@ declare const _default: {
415
395
  childrens: never[];
416
396
  name: string;
417
397
  };
418
- operacao_item: {
398
+ atributo: {
419
399
  columns: ({
420
400
  name: string;
421
401
  value: {
@@ -437,7 +417,8 @@ declare const _default: {
437
417
  fk_reference: null;
438
418
  pk: boolean;
439
419
  })[];
440
- fathers: {
420
+ fathers: never[];
421
+ childrens: {
441
422
  name: string;
442
423
  value: {
443
424
  type: string;
@@ -448,10 +429,9 @@ declare const _default: {
448
429
  fk_reference: string;
449
430
  pk: boolean;
450
431
  }[];
451
- childrens: never[];
452
432
  name: string;
453
433
  };
454
- marca: {
434
+ entidade_cartao: {
455
435
  columns: ({
456
436
  name: string;
457
437
  value: {
@@ -473,7 +453,17 @@ declare const _default: {
473
453
  fk_reference: null;
474
454
  pk: boolean;
475
455
  })[];
476
- fathers: never[];
456
+ fathers: {
457
+ name: string;
458
+ value: {
459
+ type: string;
460
+ is_null: string;
461
+ maxlength: null;
462
+ };
463
+ fk_table: string;
464
+ fk_reference: string;
465
+ pk: boolean;
466
+ }[];
477
467
  childrens: {
478
468
  name: string;
479
469
  value: {
@@ -487,7 +477,7 @@ declare const _default: {
487
477
  }[];
488
478
  name: string;
489
479
  };
490
- empresa: {
480
+ marca: {
491
481
  columns: ({
492
482
  name: string;
493
483
  value: {
@@ -510,10 +500,20 @@ declare const _default: {
510
500
  pk: boolean;
511
501
  })[];
512
502
  fathers: never[];
513
- childrens: never[];
503
+ childrens: {
504
+ name: string;
505
+ value: {
506
+ type: string;
507
+ is_null: string;
508
+ maxlength: null;
509
+ };
510
+ fk_table: string;
511
+ fk_reference: string;
512
+ pk: boolean;
513
+ }[];
514
514
  name: string;
515
515
  };
516
- operacao: {
516
+ item_variacao: {
517
517
  columns: ({
518
518
  name: string;
519
519
  value: {
@@ -3,35 +3,35 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const atributo_1 = __importDefault(require("./atributo"));
7
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
8
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
9
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
10
- const entidade_1 = __importDefault(require("./entidade"));
11
6
  const usuario_1 = __importDefault(require("./usuario"));
12
- const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
7
+ const entidade_1 = __importDefault(require("./entidade"));
8
+ const empresa_1 = __importDefault(require("./empresa"));
9
+ const operacao_item_1 = __importDefault(require("./operacao_item"));
10
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
13
11
  const item_1 = __importDefault(require("./item"));
14
- const item_variacao_1 = __importDefault(require("./item_variacao"));
15
12
  const categoria_1 = __importDefault(require("./categoria"));
13
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
14
+ const operacao_1 = __importDefault(require("./operacao"));
15
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
16
16
  const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
17
- const operacao_item_1 = __importDefault(require("./operacao_item"));
17
+ const atributo_1 = __importDefault(require("./atributo"));
18
+ const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
18
19
  const marca_1 = __importDefault(require("./marca"));
19
- const empresa_1 = __importDefault(require("./empresa"));
20
- const operacao_1 = __importDefault(require("./operacao"));
20
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
21
21
  exports.default = {
22
- atributo: atributo_1.default,
23
- item_variacao_atributo: item_variacao_atributo_1.default,
24
- entidade_endereco: entidade_endereco_1.default,
25
- operacao_pagamento: operacao_pagamento_1.default,
26
- entidade: entidade_1.default,
27
22
  usuario: usuario_1.default,
28
- entidade_cartao: entidade_cartao_1.default,
23
+ entidade: entidade_1.default,
24
+ empresa: empresa_1.default,
25
+ operacao_item: operacao_item_1.default,
26
+ operacao_pagamento: operacao_pagamento_1.default,
29
27
  item: item_1.default,
30
- item_variacao: item_variacao_1.default,
31
28
  categoria: categoria_1.default,
29
+ entidade_endereco: entidade_endereco_1.default,
30
+ operacao: operacao_1.default,
31
+ item_variacao_atributo: item_variacao_atributo_1.default,
32
32
  item_variacao_imagem: item_variacao_imagem_1.default,
33
- operacao_item: operacao_item_1.default,
33
+ atributo: atributo_1.default,
34
+ entidade_cartao: entidade_cartao_1.default,
34
35
  marca: marca_1.default,
35
- empresa: empresa_1.default,
36
- operacao: operacao_1.default
36
+ item_variacao: item_variacao_1.default
37
37
  };
@@ -244,6 +244,17 @@ exports.default = {
244
244
  "fk_reference": null,
245
245
  "pk": false
246
246
  },
247
+ {
248
+ "name": "empresa",
249
+ "value": {
250
+ "type": "integer",
251
+ "is_null": "YES",
252
+ "maxlength": null
253
+ },
254
+ "fk_table": null,
255
+ "fk_reference": null,
256
+ "pk": false
257
+ },
247
258
  {
248
259
  "name": "destaque",
249
260
  "value": {
@@ -67,6 +67,17 @@ exports.default = {
67
67
  "fk_table": null,
68
68
  "fk_reference": null,
69
69
  "pk": false
70
+ },
71
+ {
72
+ "name": "empresa",
73
+ "value": {
74
+ "type": "integer",
75
+ "is_null": "YES",
76
+ "maxlength": null
77
+ },
78
+ "fk_table": null,
79
+ "fk_reference": null,
80
+ "pk": false
70
81
  }
71
82
  ],
72
83
  "fathers": [],
@@ -265,6 +265,17 @@ exports.default = {
265
265
  "fk_table": "entidade_endereco",
266
266
  "fk_reference": "id",
267
267
  "pk": false
268
+ },
269
+ {
270
+ "name": "empresa",
271
+ "value": {
272
+ "type": "integer",
273
+ "is_null": "YES",
274
+ "maxlength": null
275
+ },
276
+ "fk_table": null,
277
+ "fk_reference": null,
278
+ "pk": false
268
279
  }
269
280
  ],
270
281
  "fathers": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-manipulator",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "postgresql database handler",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",