pg-manipulator 1.0.47 → 1.0.49

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/README.md CHANGED
@@ -1,2 +1,30 @@
1
1
  # pg-manipulator
2
+
2
3
  postgresql database handler
4
+
5
+ !PARA RODAR O PROJETO
6
+
7
+ criar arquivo env.json na raiz com o conteudo
8
+
9
+ {
10
+ "nome do seu banco 1": "url de conexao",
11
+ "nome do seu banco 2": "url de conexao",
12
+ "nome do seu banco 2": "url de conexao",
13
+ ...(obs informe quantos bancos de dados quiser)
14
+ }
15
+
16
+ apos criar o arquivo rodar
17
+
18
+ npx tsc
19
+
20
+ npm run dump
21
+
22
+ npx tsc
23
+
24
+ com isso tudo pronto para utilizar seu banco de dados
25
+
26
+ ! para criar arquivo de rodar scripts novos no banco
27
+
28
+ npm run updater
29
+
30
+ com isso o arquivo sera criar e siga as instrucoes para uso
@@ -23,4 +23,11 @@ export type empresa_fields = {
23
23
  endereco_numero: string;
24
24
  endereco_complemento?: string;
25
25
  endereco_telefone: string;
26
+ certificado_status?: string;
27
+ melhor_envio_token?: string;
28
+ melhor_envio_refresh_token?: string;
29
+ melhor_envio_validade_token?: Date;
30
+ pagarme_sk?: string;
31
+ pagarme_pk?: string;
32
+ nfeio_sk?: string;
26
33
  };
@@ -23,4 +23,11 @@ export type empresa_order = {
23
23
  endereco_numero?: 'desc' | 'asc';
24
24
  endereco_complemento?: 'desc' | 'asc';
25
25
  endereco_telefone?: 'desc' | 'asc';
26
+ certificado_status?: 'desc' | 'asc';
27
+ melhor_envio_token?: 'desc' | 'asc';
28
+ melhor_envio_refresh_token?: 'desc' | 'asc';
29
+ melhor_envio_validade_token?: 'desc' | 'asc';
30
+ pagarme_sk?: 'desc' | 'asc';
31
+ pagarme_pk?: 'desc' | 'asc';
32
+ nfeio_sk?: 'desc' | 'asc';
26
33
  };
@@ -25,6 +25,13 @@ export type empresa_select = {
25
25
  endereco_numero?: string;
26
26
  endereco_complemento?: string;
27
27
  endereco_telefone?: string;
28
+ certificado_status?: string;
29
+ melhor_envio_token?: string;
30
+ melhor_envio_refresh_token?: string;
31
+ melhor_envio_validade_token?: Date;
32
+ pagarme_sk?: string;
33
+ pagarme_pk?: string;
34
+ nfeio_sk?: string;
28
35
  where: empresa_where;
29
36
  order?: empresa_order;
30
37
  };
@@ -24,5 +24,12 @@ export type empresa_update = {
24
24
  endereco_numero?: string;
25
25
  endereco_complemento?: string;
26
26
  endereco_telefone?: string;
27
+ certificado_status?: string;
28
+ melhor_envio_token?: string;
29
+ melhor_envio_refresh_token?: string;
30
+ melhor_envio_validade_token?: Date;
31
+ pagarme_sk?: string;
32
+ pagarme_pk?: string;
33
+ nfeio_sk?: string;
27
34
  where: empresa_where;
28
35
  };
@@ -24,4 +24,11 @@ export type empresa_where = {
24
24
  endereco_numero?: where_string | string;
25
25
  endereco_complemento?: where_string | string;
26
26
  endereco_telefone?: where_string | string;
27
+ certificado_status?: where_string | string;
28
+ melhor_envio_token?: where_string | string;
29
+ melhor_envio_refresh_token?: where_string | string;
30
+ melhor_envio_validade_token?: where_date | Date;
31
+ pagarme_sk?: where_string | string;
32
+ pagarme_pk?: where_string | string;
33
+ nfeio_sk?: where_string | string;
27
34
  };
@@ -0,0 +1,8 @@
1
+ export type entidade_cartao_fields = {
2
+ id_entidade_cartao?: number;
3
+ last_numbers: string;
4
+ brand: string;
5
+ name: string;
6
+ id_entidade: number;
7
+ id_cartao_externo: string;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export type entidade_cartao_order = {
2
+ id_entidade_cartao?: 'desc' | 'asc';
3
+ last_numbers?: 'desc' | 'asc';
4
+ brand?: 'desc' | 'asc';
5
+ name?: 'desc' | 'asc';
6
+ id_entidade?: 'desc' | 'asc';
7
+ id_cartao_externo?: 'desc' | 'asc';
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { entidade_cartao_where } from './entidade_cartao_where';
2
+ import { entidade_cartao_order } from './entidade_cartao_order';
3
+ export type entidade_cartao_select = {
4
+ id_entidade_cartao?: number;
5
+ last_numbers?: string;
6
+ brand?: string;
7
+ name?: string;
8
+ id_entidade?: number;
9
+ id_cartao_externo?: string;
10
+ where: entidade_cartao_where;
11
+ order?: entidade_cartao_order;
12
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { entidade_cartao_where } from './entidade_cartao_where';
2
+ export type entidade_cartao_update = {
3
+ id_entidade_cartao?: number;
4
+ last_numbers?: string;
5
+ brand?: string;
6
+ name?: string;
7
+ id_entidade?: number;
8
+ id_cartao_externo?: string;
9
+ where: entidade_cartao_where;
10
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { where_number, where_string } from '../';
2
+ export type entidade_cartao_where = {
3
+ id_entidade_cartao?: where_number | number;
4
+ last_numbers?: where_string | string;
5
+ brand?: where_string | string;
6
+ name?: where_string | string;
7
+ id_entidade?: where_number | number;
8
+ id_cartao_externo?: where_string | string;
9
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { entidade_cartao_select } from '../../@types/admin/entidade_cartao_select';
4
+ import { entidade_cartao_where } from '../../@types/admin/entidade_cartao_where';
5
+ import { entidade_cartao_update } from '../../@types/admin/entidade_cartao_update';
6
+ import { entidade_cartao_fields } from '../../@types/admin/entidade_cartao_fields';
7
+ export default class entidade_cartao extends base {
8
+ static get(fields: entidade_cartao_select, transaction?: PoolClient | any): Promise<entidade_cartao_fields>;
9
+ static get_all(fields: entidade_cartao_select, transaction?: PoolClient | any): Promise<entidade_cartao_fields[]>;
10
+ static create(fields: entidade_cartao_fields, transaction?: PoolClient | any): Promise<entidade_cartao_fields>;
11
+ static update(fields: entidade_cartao_update, transaction?: PoolClient | any): Promise<any>;
12
+ static delete(fields: entidade_cartao_where, transaction?: PoolClient | any): Promise<any>;
13
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const base_1 = __importDefault(require("../../base"));
7
+ class entidade_cartao extends base_1.default {
8
+ static async get(fields, transaction = undefined) {
9
+ return await super.b_get('admin', fields, 'entidade_cartao', transaction);
10
+ }
11
+ static async get_all(fields, transaction = undefined) {
12
+ return await super.b_get_all('admin', fields, 'entidade_cartao', transaction);
13
+ }
14
+ static async create(fields, transaction = undefined) {
15
+ return await super.b_create('admin', fields, 'entidade_cartao', transaction);
16
+ }
17
+ static async update(fields, transaction = undefined) {
18
+ return await super.b_update('admin', fields, 'entidade_cartao', transaction);
19
+ }
20
+ static async delete(fields, transaction = undefined) {
21
+ return await super.b_delete('admin', fields, 'entidade_cartao', transaction);
22
+ }
23
+ }
24
+ exports.default = entidade_cartao;
@@ -1,39 +1,41 @@
1
1
  import { PoolClient } from 'pg';
2
2
  import { pool_tsx } from '../../@types';
3
- import operacao_item from './operacao_item';
3
+ import ecommerce from './ecommerce';
4
4
  import item from './item';
5
- import operacao_pagamento from './operacao_pagamento';
5
+ import empresa from './empresa';
6
6
  import entidade from './entidade';
7
- import item_variacao_atributo from './item_variacao_atributo';
8
7
  import categoria from './categoria';
9
- import empresa from './empresa';
10
- import marca from './marca';
11
- import item_variacao from './item_variacao';
12
- import ecommerce from './ecommerce';
8
+ import entidade_endereco from './entidade_endereco';
13
9
  import item_variacao_imagem from './item_variacao_imagem';
10
+ import marca from './marca';
11
+ import usuario from './usuario';
12
+ import operacao_item from './operacao_item';
13
+ import entidade_cartao from './entidade_cartao';
14
14
  import ecommerce_item from './ecommerce_item';
15
- import operacao from './operacao';
15
+ import operacao_pagamento from './operacao_pagamento';
16
16
  import atributo from './atributo';
17
- import entidade_endereco from './entidade_endereco';
18
- import usuario from './usuario';
17
+ import item_variacao from './item_variacao';
18
+ import item_variacao_atributo from './item_variacao_atributo';
19
+ import operacao from './operacao';
19
20
  declare const _default: {
20
21
  query(query_string: string, query_params: Array<any>, transaction?: PoolClient | any): Promise<any>;
21
22
  transaction(callback: pool_tsx): Promise<void>;
22
- operacao_item: typeof operacao_item;
23
+ ecommerce: typeof ecommerce;
23
24
  item: typeof item;
24
- operacao_pagamento: typeof operacao_pagamento;
25
+ empresa: typeof empresa;
25
26
  entidade: typeof entidade;
26
- item_variacao_atributo: typeof item_variacao_atributo;
27
27
  categoria: typeof categoria;
28
- empresa: typeof empresa;
29
- marca: typeof marca;
30
- item_variacao: typeof item_variacao;
31
- ecommerce: typeof ecommerce;
28
+ entidade_endereco: typeof entidade_endereco;
32
29
  item_variacao_imagem: typeof item_variacao_imagem;
30
+ marca: typeof marca;
31
+ usuario: typeof usuario;
32
+ operacao_item: typeof operacao_item;
33
+ entidade_cartao: typeof entidade_cartao;
33
34
  ecommerce_item: typeof ecommerce_item;
34
- operacao: typeof operacao;
35
+ operacao_pagamento: typeof operacao_pagamento;
35
36
  atributo: typeof atributo;
36
- entidade_endereco: typeof entidade_endereco;
37
- usuario: typeof usuario;
37
+ item_variacao: typeof item_variacao;
38
+ item_variacao_atributo: typeof item_variacao_atributo;
39
+ operacao: typeof operacao;
38
40
  };
39
41
  export default _default;
@@ -4,22 +4,23 @@ 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 operacao_item_1 = __importDefault(require("./operacao_item"));
7
+ const ecommerce_1 = __importDefault(require("./ecommerce"));
8
8
  const item_1 = __importDefault(require("./item"));
9
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
9
+ const empresa_1 = __importDefault(require("./empresa"));
10
10
  const entidade_1 = __importDefault(require("./entidade"));
11
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
12
11
  const categoria_1 = __importDefault(require("./categoria"));
13
- const empresa_1 = __importDefault(require("./empresa"));
14
- const marca_1 = __importDefault(require("./marca"));
15
- const item_variacao_1 = __importDefault(require("./item_variacao"));
16
- const ecommerce_1 = __importDefault(require("./ecommerce"));
12
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
17
13
  const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
14
+ const marca_1 = __importDefault(require("./marca"));
15
+ const usuario_1 = __importDefault(require("./usuario"));
16
+ const operacao_item_1 = __importDefault(require("./operacao_item"));
17
+ const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
18
18
  const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
19
- const operacao_1 = __importDefault(require("./operacao"));
19
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
20
20
  const atributo_1 = __importDefault(require("./atributo"));
21
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
22
- const usuario_1 = __importDefault(require("./usuario"));
21
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
22
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
23
+ const operacao_1 = __importDefault(require("./operacao"));
23
24
  exports.default = {
24
25
  async query(query_string, query_params, transaction = undefined) {
25
26
  return await database_1.default.query('admin', query_string, query_params, transaction);
@@ -27,20 +28,21 @@ exports.default = {
27
28
  async transaction(callback) {
28
29
  return await database_1.default.transaction('admin', callback);
29
30
  },
30
- operacao_item: operacao_item_1.default,
31
+ ecommerce: ecommerce_1.default,
31
32
  item: item_1.default,
32
- operacao_pagamento: operacao_pagamento_1.default,
33
+ empresa: empresa_1.default,
33
34
  entidade: entidade_1.default,
34
- item_variacao_atributo: item_variacao_atributo_1.default,
35
35
  categoria: categoria_1.default,
36
- empresa: empresa_1.default,
37
- marca: marca_1.default,
38
- item_variacao: item_variacao_1.default,
39
- ecommerce: ecommerce_1.default,
36
+ entidade_endereco: entidade_endereco_1.default,
40
37
  item_variacao_imagem: item_variacao_imagem_1.default,
38
+ marca: marca_1.default,
39
+ usuario: usuario_1.default,
40
+ operacao_item: operacao_item_1.default,
41
+ entidade_cartao: entidade_cartao_1.default,
41
42
  ecommerce_item: ecommerce_item_1.default,
42
- operacao: operacao_1.default,
43
+ operacao_pagamento: operacao_pagamento_1.default,
43
44
  atributo: atributo_1.default,
44
- entidade_endereco: entidade_endereco_1.default,
45
- usuario: usuario_1.default
45
+ item_variacao: item_variacao_1.default,
46
+ item_variacao_atributo: item_variacao_atributo_1.default,
47
+ operacao: operacao_1.default
46
48
  };
@@ -265,6 +265,83 @@ exports.default = {
265
265
  "fk_table": null,
266
266
  "fk_reference": null,
267
267
  "pk": false
268
+ },
269
+ {
270
+ "name": "certificado_status",
271
+ "value": {
272
+ "type": "character varying",
273
+ "is_null": "YES",
274
+ "maxlength": null
275
+ },
276
+ "fk_table": null,
277
+ "fk_reference": null,
278
+ "pk": false
279
+ },
280
+ {
281
+ "name": "melhor_envio_token",
282
+ "value": {
283
+ "type": "text",
284
+ "is_null": "YES",
285
+ "maxlength": null
286
+ },
287
+ "fk_table": null,
288
+ "fk_reference": null,
289
+ "pk": false
290
+ },
291
+ {
292
+ "name": "melhor_envio_refresh_token",
293
+ "value": {
294
+ "type": "text",
295
+ "is_null": "YES",
296
+ "maxlength": null
297
+ },
298
+ "fk_table": null,
299
+ "fk_reference": null,
300
+ "pk": false
301
+ },
302
+ {
303
+ "name": "melhor_envio_validade_token",
304
+ "value": {
305
+ "type": "timestamp without time zone",
306
+ "is_null": "YES",
307
+ "maxlength": null
308
+ },
309
+ "fk_table": null,
310
+ "fk_reference": null,
311
+ "pk": false
312
+ },
313
+ {
314
+ "name": "pagarme_sk",
315
+ "value": {
316
+ "type": "text",
317
+ "is_null": "YES",
318
+ "maxlength": null
319
+ },
320
+ "fk_table": null,
321
+ "fk_reference": null,
322
+ "pk": false
323
+ },
324
+ {
325
+ "name": "pagarme_pk",
326
+ "value": {
327
+ "type": "text",
328
+ "is_null": "YES",
329
+ "maxlength": null
330
+ },
331
+ "fk_table": null,
332
+ "fk_reference": null,
333
+ "pk": false
334
+ },
335
+ {
336
+ "name": "nfeio_sk",
337
+ "value": {
338
+ "type": "text",
339
+ "is_null": "YES",
340
+ "maxlength": null
341
+ },
342
+ "fk_table": null,
343
+ "fk_reference": null,
344
+ "pk": false
268
345
  }
269
346
  ],
270
347
  "fathers": [],
@@ -126,6 +126,17 @@ exports.default = {
126
126
  "fk_reference": "id",
127
127
  "pk": false
128
128
  },
129
+ {
130
+ "name": "id_entidade",
131
+ "value": {
132
+ "type": "integer",
133
+ "is_null": "NO",
134
+ "maxlength": null
135
+ },
136
+ "fk_table": "entidade",
137
+ "fk_reference": "id",
138
+ "pk": false
139
+ },
129
140
  {
130
141
  "name": "transportadora",
131
142
  "value": {
@@ -0,0 +1,37 @@
1
+ declare const _default: {
2
+ columns: ({
3
+ name: string;
4
+ value: {
5
+ type: string;
6
+ is_null: string;
7
+ maxlength: null;
8
+ };
9
+ fk_table: string;
10
+ fk_reference: string;
11
+ pk: boolean;
12
+ } | {
13
+ name: string;
14
+ value: {
15
+ type: string;
16
+ is_null: string;
17
+ maxlength: null;
18
+ };
19
+ fk_table: null;
20
+ fk_reference: null;
21
+ pk: boolean;
22
+ })[];
23
+ fathers: {
24
+ name: string;
25
+ value: {
26
+ type: string;
27
+ is_null: string;
28
+ maxlength: null;
29
+ };
30
+ fk_table: string;
31
+ fk_reference: string;
32
+ pk: boolean;
33
+ }[];
34
+ childrens: never[];
35
+ name: string;
36
+ };
37
+ export default _default;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ "columns": [
5
+ {
6
+ "name": "id_entidade_cartao",
7
+ "value": {
8
+ "type": "integer",
9
+ "is_null": "YES",
10
+ "maxlength": null
11
+ },
12
+ "fk_table": "entidade_cartao",
13
+ "fk_reference": "id_entidade_cartao",
14
+ "pk": true
15
+ },
16
+ {
17
+ "name": "last_numbers",
18
+ "value": {
19
+ "type": "character varying",
20
+ "is_null": "NO",
21
+ "maxlength": null
22
+ },
23
+ "fk_table": null,
24
+ "fk_reference": null,
25
+ "pk": false
26
+ },
27
+ {
28
+ "name": "brand",
29
+ "value": {
30
+ "type": "character varying",
31
+ "is_null": "NO",
32
+ "maxlength": null
33
+ },
34
+ "fk_table": null,
35
+ "fk_reference": null,
36
+ "pk": false
37
+ },
38
+ {
39
+ "name": "name",
40
+ "value": {
41
+ "type": "character varying",
42
+ "is_null": "NO",
43
+ "maxlength": null
44
+ },
45
+ "fk_table": null,
46
+ "fk_reference": null,
47
+ "pk": false
48
+ },
49
+ {
50
+ "name": "id_entidade",
51
+ "value": {
52
+ "type": "integer",
53
+ "is_null": "NO",
54
+ "maxlength": null
55
+ },
56
+ "fk_table": "entidade",
57
+ "fk_reference": "id",
58
+ "pk": false
59
+ },
60
+ {
61
+ "name": "id_cartao_externo",
62
+ "value": {
63
+ "type": "character varying",
64
+ "is_null": "NO",
65
+ "maxlength": null
66
+ },
67
+ "fk_table": null,
68
+ "fk_reference": null,
69
+ "pk": false
70
+ }
71
+ ],
72
+ "fathers": [
73
+ {
74
+ "name": "id_entidade",
75
+ "value": {
76
+ "type": "integer",
77
+ "is_null": "NO",
78
+ "maxlength": null
79
+ },
80
+ "fk_table": "entidade",
81
+ "fk_reference": "id",
82
+ "pk": false
83
+ }
84
+ ],
85
+ "childrens": [],
86
+ "name": "entidade_cartao"
87
+ };
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- operacao_item: {
2
+ ecommerce: {
3
3
  columns: ({
4
4
  name: string;
5
5
  value: {
@@ -32,7 +32,17 @@ declare const _default: {
32
32
  fk_reference: string;
33
33
  pk: boolean;
34
34
  }[];
35
- childrens: never[];
35
+ childrens: {
36
+ name: string;
37
+ value: {
38
+ type: string;
39
+ is_null: string;
40
+ maxlength: null;
41
+ };
42
+ fk_table: string;
43
+ fk_reference: string;
44
+ pk: boolean;
45
+ }[];
36
46
  name: string;
37
47
  };
38
48
  item: {
@@ -81,7 +91,7 @@ declare const _default: {
81
91
  }[];
82
92
  name: string;
83
93
  };
84
- operacao_pagamento: {
94
+ empresa: {
85
95
  columns: ({
86
96
  name: string;
87
97
  value: {
@@ -103,7 +113,8 @@ declare const _default: {
103
113
  fk_reference: null;
104
114
  pk: boolean;
105
115
  })[];
106
- fathers: {
116
+ fathers: never[];
117
+ childrens: {
107
118
  name: string;
108
119
  value: {
109
120
  type: string;
@@ -114,7 +125,6 @@ declare const _default: {
114
125
  fk_reference: string;
115
126
  pk: boolean;
116
127
  }[];
117
- childrens: never[];
118
128
  name: string;
119
129
  };
120
130
  entidade: {
@@ -153,8 +163,8 @@ declare const _default: {
153
163
  }[];
154
164
  name: string;
155
165
  };
156
- item_variacao_atributo: {
157
- columns: {
166
+ categoria: {
167
+ columns: ({
158
168
  name: string;
159
169
  value: {
160
170
  type: string;
@@ -164,8 +174,19 @@ declare const _default: {
164
174
  fk_table: string;
165
175
  fk_reference: string;
166
176
  pk: boolean;
167
- }[];
168
- fathers: {
177
+ } | {
178
+ name: string;
179
+ value: {
180
+ type: string;
181
+ is_null: string;
182
+ maxlength: null;
183
+ };
184
+ fk_table: null;
185
+ fk_reference: null;
186
+ pk: boolean;
187
+ })[];
188
+ fathers: never[];
189
+ childrens: {
169
190
  name: string;
170
191
  value: {
171
192
  type: string;
@@ -176,10 +197,9 @@ declare const _default: {
176
197
  fk_reference: string;
177
198
  pk: boolean;
178
199
  }[];
179
- childrens: never[];
180
200
  name: string;
181
201
  };
182
- categoria: {
202
+ entidade_endereco: {
183
203
  columns: ({
184
204
  name: string;
185
205
  value: {
@@ -201,8 +221,7 @@ declare const _default: {
201
221
  fk_reference: null;
202
222
  pk: boolean;
203
223
  })[];
204
- fathers: never[];
205
- childrens: {
224
+ fathers: {
206
225
  name: string;
207
226
  value: {
208
227
  type: string;
@@ -213,9 +232,10 @@ declare const _default: {
213
232
  fk_reference: string;
214
233
  pk: boolean;
215
234
  }[];
235
+ childrens: never[];
216
236
  name: string;
217
237
  };
218
- empresa: {
238
+ item_variacao_imagem: {
219
239
  columns: ({
220
240
  name: string;
221
241
  value: {
@@ -237,8 +257,7 @@ declare const _default: {
237
257
  fk_reference: null;
238
258
  pk: boolean;
239
259
  })[];
240
- fathers: never[];
241
- childrens: {
260
+ fathers: {
242
261
  name: string;
243
262
  value: {
244
263
  type: string;
@@ -249,6 +268,7 @@ declare const _default: {
249
268
  fk_reference: string;
250
269
  pk: boolean;
251
270
  }[];
271
+ childrens: never[];
252
272
  name: string;
253
273
  };
254
274
  marca: {
@@ -287,7 +307,7 @@ declare const _default: {
287
307
  }[];
288
308
  name: string;
289
309
  };
290
- item_variacao: {
310
+ usuario: {
291
311
  columns: ({
292
312
  name: string;
293
313
  value: {
@@ -309,7 +329,12 @@ declare const _default: {
309
329
  fk_reference: null;
310
330
  pk: boolean;
311
331
  })[];
312
- fathers: {
332
+ fathers: never[];
333
+ childrens: never[];
334
+ name: string;
335
+ };
336
+ operacao_item: {
337
+ columns: ({
313
338
  name: string;
314
339
  value: {
315
340
  type: string;
@@ -319,8 +344,18 @@ declare const _default: {
319
344
  fk_table: string;
320
345
  fk_reference: string;
321
346
  pk: boolean;
322
- }[];
323
- childrens: {
347
+ } | {
348
+ name: string;
349
+ value: {
350
+ type: string;
351
+ is_null: string;
352
+ maxlength: null;
353
+ };
354
+ fk_table: null;
355
+ fk_reference: null;
356
+ pk: boolean;
357
+ })[];
358
+ fathers: {
324
359
  name: string;
325
360
  value: {
326
361
  type: string;
@@ -331,9 +366,10 @@ declare const _default: {
331
366
  fk_reference: string;
332
367
  pk: boolean;
333
368
  }[];
369
+ childrens: never[];
334
370
  name: string;
335
371
  };
336
- ecommerce: {
372
+ entidade_cartao: {
337
373
  columns: ({
338
374
  name: string;
339
375
  value: {
@@ -366,7 +402,22 @@ declare const _default: {
366
402
  fk_reference: string;
367
403
  pk: boolean;
368
404
  }[];
369
- childrens: {
405
+ childrens: never[];
406
+ name: string;
407
+ };
408
+ ecommerce_item: {
409
+ columns: {
410
+ name: string;
411
+ value: {
412
+ type: string;
413
+ is_null: string;
414
+ maxlength: null;
415
+ };
416
+ fk_table: string;
417
+ fk_reference: string;
418
+ pk: boolean;
419
+ }[];
420
+ fathers: {
370
421
  name: string;
371
422
  value: {
372
423
  type: string;
@@ -377,9 +428,10 @@ declare const _default: {
377
428
  fk_reference: string;
378
429
  pk: boolean;
379
430
  }[];
431
+ childrens: never[];
380
432
  name: string;
381
433
  };
382
- item_variacao_imagem: {
434
+ operacao_pagamento: {
383
435
  columns: ({
384
436
  name: string;
385
437
  value: {
@@ -415,8 +467,8 @@ declare const _default: {
415
467
  childrens: never[];
416
468
  name: string;
417
469
  };
418
- ecommerce_item: {
419
- columns: {
470
+ atributo: {
471
+ columns: ({
420
472
  name: string;
421
473
  value: {
422
474
  type: string;
@@ -426,8 +478,19 @@ declare const _default: {
426
478
  fk_table: string;
427
479
  fk_reference: string;
428
480
  pk: boolean;
429
- }[];
430
- fathers: {
481
+ } | {
482
+ name: string;
483
+ value: {
484
+ type: string;
485
+ is_null: string;
486
+ maxlength: null;
487
+ };
488
+ fk_table: null;
489
+ fk_reference: null;
490
+ pk: boolean;
491
+ })[];
492
+ fathers: never[];
493
+ childrens: {
431
494
  name: string;
432
495
  value: {
433
496
  type: string;
@@ -438,10 +501,9 @@ declare const _default: {
438
501
  fk_reference: string;
439
502
  pk: boolean;
440
503
  }[];
441
- childrens: never[];
442
504
  name: string;
443
505
  };
444
- operacao: {
506
+ item_variacao: {
445
507
  columns: ({
446
508
  name: string;
447
509
  value: {
@@ -487,8 +549,8 @@ declare const _default: {
487
549
  }[];
488
550
  name: string;
489
551
  };
490
- atributo: {
491
- columns: ({
552
+ item_variacao_atributo: {
553
+ columns: {
492
554
  name: string;
493
555
  value: {
494
556
  type: string;
@@ -498,19 +560,8 @@ declare const _default: {
498
560
  fk_table: string;
499
561
  fk_reference: string;
500
562
  pk: boolean;
501
- } | {
502
- name: string;
503
- value: {
504
- type: string;
505
- is_null: string;
506
- maxlength: null;
507
- };
508
- fk_table: null;
509
- fk_reference: null;
510
- pk: boolean;
511
- })[];
512
- fathers: never[];
513
- childrens: {
563
+ }[];
564
+ fathers: {
514
565
  name: string;
515
566
  value: {
516
567
  type: string;
@@ -521,9 +572,10 @@ declare const _default: {
521
572
  fk_reference: string;
522
573
  pk: boolean;
523
574
  }[];
575
+ childrens: never[];
524
576
  name: string;
525
577
  };
526
- entidade_endereco: {
578
+ operacao: {
527
579
  columns: ({
528
580
  name: string;
529
581
  value: {
@@ -556,11 +608,7 @@ declare const _default: {
556
608
  fk_reference: string;
557
609
  pk: boolean;
558
610
  }[];
559
- childrens: never[];
560
- name: string;
561
- };
562
- usuario: {
563
- columns: ({
611
+ childrens: {
564
612
  name: string;
565
613
  value: {
566
614
  type: string;
@@ -570,19 +618,7 @@ declare const _default: {
570
618
  fk_table: string;
571
619
  fk_reference: string;
572
620
  pk: boolean;
573
- } | {
574
- name: string;
575
- value: {
576
- type: string;
577
- is_null: string;
578
- maxlength: null;
579
- };
580
- fk_table: null;
581
- fk_reference: null;
582
- pk: boolean;
583
- })[];
584
- fathers: never[];
585
- childrens: never[];
621
+ }[];
586
622
  name: string;
587
623
  };
588
624
  };
@@ -3,37 +3,39 @@ 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 operacao_item_1 = __importDefault(require("./operacao_item"));
6
+ const ecommerce_1 = __importDefault(require("./ecommerce"));
7
7
  const item_1 = __importDefault(require("./item"));
8
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
8
+ const empresa_1 = __importDefault(require("./empresa"));
9
9
  const entidade_1 = __importDefault(require("./entidade"));
10
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
11
10
  const categoria_1 = __importDefault(require("./categoria"));
12
- const empresa_1 = __importDefault(require("./empresa"));
13
- const marca_1 = __importDefault(require("./marca"));
14
- const item_variacao_1 = __importDefault(require("./item_variacao"));
15
- const ecommerce_1 = __importDefault(require("./ecommerce"));
11
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
16
12
  const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
13
+ const marca_1 = __importDefault(require("./marca"));
14
+ const usuario_1 = __importDefault(require("./usuario"));
15
+ const operacao_item_1 = __importDefault(require("./operacao_item"));
16
+ const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
17
17
  const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
18
- const operacao_1 = __importDefault(require("./operacao"));
18
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
19
19
  const atributo_1 = __importDefault(require("./atributo"));
20
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
21
- const usuario_1 = __importDefault(require("./usuario"));
20
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
21
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
22
+ const operacao_1 = __importDefault(require("./operacao"));
22
23
  exports.default = {
23
- operacao_item: operacao_item_1.default,
24
+ ecommerce: ecommerce_1.default,
24
25
  item: item_1.default,
25
- operacao_pagamento: operacao_pagamento_1.default,
26
+ empresa: empresa_1.default,
26
27
  entidade: entidade_1.default,
27
- item_variacao_atributo: item_variacao_atributo_1.default,
28
28
  categoria: categoria_1.default,
29
- empresa: empresa_1.default,
30
- marca: marca_1.default,
31
- item_variacao: item_variacao_1.default,
32
- ecommerce: ecommerce_1.default,
29
+ entidade_endereco: entidade_endereco_1.default,
33
30
  item_variacao_imagem: item_variacao_imagem_1.default,
31
+ marca: marca_1.default,
32
+ usuario: usuario_1.default,
33
+ operacao_item: operacao_item_1.default,
34
+ entidade_cartao: entidade_cartao_1.default,
34
35
  ecommerce_item: ecommerce_item_1.default,
35
- operacao: operacao_1.default,
36
+ operacao_pagamento: operacao_pagamento_1.default,
36
37
  atributo: atributo_1.default,
37
- entidade_endereco: entidade_endereco_1.default,
38
- usuario: usuario_1.default
38
+ item_variacao: item_variacao_1.default,
39
+ item_variacao_atributo: item_variacao_atributo_1.default,
40
+ operacao: operacao_1.default
39
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-manipulator",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "postgresql database handler",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",