pg-manipulator 1.0.48 → 1.0.50

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,19 @@ 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;
33
+ whatsapp?: string;
34
+ instagram?: string;
35
+ facebook?: string;
36
+ tiktok?: string;
37
+ logo?: string;
38
+ favicon?: string;
39
+ politica?: string;
40
+ termos?: string;
26
41
  };
@@ -23,4 +23,19 @@ 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';
33
+ whatsapp?: 'desc' | 'asc';
34
+ instagram?: 'desc' | 'asc';
35
+ facebook?: 'desc' | 'asc';
36
+ tiktok?: 'desc' | 'asc';
37
+ logo?: 'desc' | 'asc';
38
+ favicon?: 'desc' | 'asc';
39
+ politica?: 'desc' | 'asc';
40
+ termos?: 'desc' | 'asc';
26
41
  };
@@ -25,6 +25,21 @@ 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;
35
+ whatsapp?: string;
36
+ instagram?: string;
37
+ facebook?: string;
38
+ tiktok?: string;
39
+ logo?: string;
40
+ favicon?: string;
41
+ politica?: string;
42
+ termos?: string;
28
43
  where: empresa_where;
29
44
  order?: empresa_order;
30
45
  };
@@ -24,5 +24,20 @@ 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;
34
+ whatsapp?: string;
35
+ instagram?: string;
36
+ facebook?: string;
37
+ tiktok?: string;
38
+ logo?: string;
39
+ favicon?: string;
40
+ politica?: string;
41
+ termos?: string;
27
42
  where: empresa_where;
28
43
  };
@@ -24,4 +24,19 @@ 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;
34
+ whatsapp?: where_string | string;
35
+ instagram?: where_string | string;
36
+ facebook?: where_string | string;
37
+ tiktok?: where_string | string;
38
+ logo?: where_string | string;
39
+ favicon?: where_string | string;
40
+ politica?: where_string | string;
41
+ termos?: where_string | string;
27
42
  };
@@ -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 atributo from './atributo';
4
+ import operacao_pagamento from './operacao_pagamento';
5
+ import entidade_cartao from './entidade_cartao';
6
+ import entidade_endereco from './entidade_endereco';
3
7
  import operacao_item from './operacao_item';
8
+ import item_variacao_atributo from './item_variacao_atributo';
9
+ import empresa from './empresa';
4
10
  import item from './item';
5
- import operacao_pagamento from './operacao_pagamento';
6
11
  import entidade from './entidade';
7
- import item_variacao_atributo from './item_variacao_atributo';
8
12
  import categoria from './categoria';
9
- import empresa from './empresa';
10
- import marca from './marca';
11
13
  import item_variacao from './item_variacao';
12
14
  import ecommerce from './ecommerce';
13
- import item_variacao_imagem from './item_variacao_imagem';
14
- import ecommerce_item from './ecommerce_item';
15
- import operacao from './operacao';
16
- import atributo from './atributo';
17
- import entidade_endereco from './entidade_endereco';
18
15
  import usuario from './usuario';
16
+ import marca from './marca';
17
+ import operacao from './operacao';
18
+ import ecommerce_item from './ecommerce_item';
19
+ import item_variacao_imagem from './item_variacao_imagem';
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>;
23
+ atributo: typeof atributo;
24
+ operacao_pagamento: typeof operacao_pagamento;
25
+ entidade_cartao: typeof entidade_cartao;
26
+ entidade_endereco: typeof entidade_endereco;
22
27
  operacao_item: typeof operacao_item;
28
+ item_variacao_atributo: typeof item_variacao_atributo;
29
+ empresa: typeof empresa;
23
30
  item: typeof item;
24
- operacao_pagamento: typeof operacao_pagamento;
25
31
  entidade: typeof entidade;
26
- item_variacao_atributo: typeof item_variacao_atributo;
27
32
  categoria: typeof categoria;
28
- empresa: typeof empresa;
29
- marca: typeof marca;
30
33
  item_variacao: typeof item_variacao;
31
34
  ecommerce: typeof ecommerce;
32
- item_variacao_imagem: typeof item_variacao_imagem;
33
- ecommerce_item: typeof ecommerce_item;
34
- operacao: typeof operacao;
35
- atributo: typeof atributo;
36
- entidade_endereco: typeof entidade_endereco;
37
35
  usuario: typeof usuario;
36
+ marca: typeof marca;
37
+ operacao: typeof operacao;
38
+ ecommerce_item: typeof ecommerce_item;
39
+ item_variacao_imagem: typeof item_variacao_imagem;
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 atributo_1 = __importDefault(require("./atributo"));
8
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
9
+ const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
10
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
7
11
  const operacao_item_1 = __importDefault(require("./operacao_item"));
12
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
13
+ const empresa_1 = __importDefault(require("./empresa"));
8
14
  const item_1 = __importDefault(require("./item"));
9
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
10
15
  const entidade_1 = __importDefault(require("./entidade"));
11
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
12
16
  const categoria_1 = __importDefault(require("./categoria"));
13
- const empresa_1 = __importDefault(require("./empresa"));
14
- const marca_1 = __importDefault(require("./marca"));
15
17
  const item_variacao_1 = __importDefault(require("./item_variacao"));
16
18
  const ecommerce_1 = __importDefault(require("./ecommerce"));
17
- const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
18
- const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
19
- const operacao_1 = __importDefault(require("./operacao"));
20
- const atributo_1 = __importDefault(require("./atributo"));
21
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
22
19
  const usuario_1 = __importDefault(require("./usuario"));
20
+ const marca_1 = __importDefault(require("./marca"));
21
+ const operacao_1 = __importDefault(require("./operacao"));
22
+ const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
23
+ const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
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
  },
31
+ atributo: atributo_1.default,
32
+ operacao_pagamento: operacao_pagamento_1.default,
33
+ entidade_cartao: entidade_cartao_1.default,
34
+ entidade_endereco: entidade_endereco_1.default,
30
35
  operacao_item: operacao_item_1.default,
36
+ item_variacao_atributo: item_variacao_atributo_1.default,
37
+ empresa: empresa_1.default,
31
38
  item: item_1.default,
32
- operacao_pagamento: operacao_pagamento_1.default,
33
39
  entidade: entidade_1.default,
34
- item_variacao_atributo: item_variacao_atributo_1.default,
35
40
  categoria: categoria_1.default,
36
- empresa: empresa_1.default,
37
- marca: marca_1.default,
38
41
  item_variacao: item_variacao_1.default,
39
42
  ecommerce: ecommerce_1.default,
40
- item_variacao_imagem: item_variacao_imagem_1.default,
41
- ecommerce_item: ecommerce_item_1.default,
43
+ usuario: usuario_1.default,
44
+ marca: marca_1.default,
42
45
  operacao: operacao_1.default,
43
- atributo: atributo_1.default,
44
- entidade_endereco: entidade_endereco_1.default,
45
- usuario: usuario_1.default
46
+ ecommerce_item: ecommerce_item_1.default,
47
+ item_variacao_imagem: item_variacao_imagem_1.default
46
48
  };
@@ -265,6 +265,171 @@ 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
345
+ },
346
+ {
347
+ "name": "whatsapp",
348
+ "value": {
349
+ "type": "character varying",
350
+ "is_null": "YES",
351
+ "maxlength": null
352
+ },
353
+ "fk_table": null,
354
+ "fk_reference": null,
355
+ "pk": false
356
+ },
357
+ {
358
+ "name": "instagram",
359
+ "value": {
360
+ "type": "text",
361
+ "is_null": "YES",
362
+ "maxlength": null
363
+ },
364
+ "fk_table": null,
365
+ "fk_reference": null,
366
+ "pk": false
367
+ },
368
+ {
369
+ "name": "facebook",
370
+ "value": {
371
+ "type": "text",
372
+ "is_null": "YES",
373
+ "maxlength": null
374
+ },
375
+ "fk_table": null,
376
+ "fk_reference": null,
377
+ "pk": false
378
+ },
379
+ {
380
+ "name": "tiktok",
381
+ "value": {
382
+ "type": "text",
383
+ "is_null": "YES",
384
+ "maxlength": null
385
+ },
386
+ "fk_table": null,
387
+ "fk_reference": null,
388
+ "pk": false
389
+ },
390
+ {
391
+ "name": "logo",
392
+ "value": {
393
+ "type": "text",
394
+ "is_null": "YES",
395
+ "maxlength": null
396
+ },
397
+ "fk_table": null,
398
+ "fk_reference": null,
399
+ "pk": false
400
+ },
401
+ {
402
+ "name": "favicon",
403
+ "value": {
404
+ "type": "text",
405
+ "is_null": "YES",
406
+ "maxlength": null
407
+ },
408
+ "fk_table": null,
409
+ "fk_reference": null,
410
+ "pk": false
411
+ },
412
+ {
413
+ "name": "politica",
414
+ "value": {
415
+ "type": "text",
416
+ "is_null": "YES",
417
+ "maxlength": null
418
+ },
419
+ "fk_table": null,
420
+ "fk_reference": null,
421
+ "pk": false
422
+ },
423
+ {
424
+ "name": "termos",
425
+ "value": {
426
+ "type": "text",
427
+ "is_null": "YES",
428
+ "maxlength": null
429
+ },
430
+ "fk_table": null,
431
+ "fk_reference": null,
432
+ "pk": false
268
433
  }
269
434
  ],
270
435
  "fathers": [],
@@ -136,6 +136,17 @@ exports.default = {
136
136
  "fk_table": "entidade",
137
137
  "fk_reference": "id",
138
138
  "pk": false
139
+ },
140
+ {
141
+ "name": "id_entidade",
142
+ "value": {
143
+ "type": "integer",
144
+ "is_null": "NO",
145
+ "maxlength": null
146
+ },
147
+ "fk_table": "entidade",
148
+ "fk_reference": "id",
149
+ "pk": false
139
150
  }
140
151
  ],
141
152
  "name": "entidade"
@@ -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
+ atributo: {
3
3
  columns: ({
4
4
  name: string;
5
5
  value: {
@@ -21,7 +21,8 @@ declare const _default: {
21
21
  fk_reference: null;
22
22
  pk: boolean;
23
23
  })[];
24
- fathers: {
24
+ fathers: never[];
25
+ childrens: {
25
26
  name: string;
26
27
  value: {
27
28
  type: string;
@@ -32,10 +33,9 @@ declare const _default: {
32
33
  fk_reference: string;
33
34
  pk: boolean;
34
35
  }[];
35
- childrens: never[];
36
36
  name: string;
37
37
  };
38
- item: {
38
+ operacao_pagamento: {
39
39
  columns: ({
40
40
  name: string;
41
41
  value: {
@@ -68,7 +68,32 @@ declare const _default: {
68
68
  fk_reference: string;
69
69
  pk: boolean;
70
70
  }[];
71
- childrens: {
71
+ childrens: never[];
72
+ name: string;
73
+ };
74
+ entidade_cartao: {
75
+ columns: ({
76
+ name: string;
77
+ value: {
78
+ type: string;
79
+ is_null: string;
80
+ maxlength: null;
81
+ };
82
+ fk_table: string;
83
+ fk_reference: string;
84
+ pk: boolean;
85
+ } | {
86
+ name: string;
87
+ value: {
88
+ type: string;
89
+ is_null: string;
90
+ maxlength: null;
91
+ };
92
+ fk_table: null;
93
+ fk_reference: null;
94
+ pk: boolean;
95
+ })[];
96
+ fathers: {
72
97
  name: string;
73
98
  value: {
74
99
  type: string;
@@ -79,9 +104,10 @@ declare const _default: {
79
104
  fk_reference: string;
80
105
  pk: boolean;
81
106
  }[];
107
+ childrens: never[];
82
108
  name: string;
83
109
  };
84
- operacao_pagamento: {
110
+ entidade_endereco: {
85
111
  columns: ({
86
112
  name: string;
87
113
  value: {
@@ -117,7 +143,7 @@ declare const _default: {
117
143
  childrens: never[];
118
144
  name: string;
119
145
  };
120
- entidade: {
146
+ operacao_item: {
121
147
  columns: ({
122
148
  name: string;
123
149
  value: {
@@ -139,8 +165,7 @@ declare const _default: {
139
165
  fk_reference: null;
140
166
  pk: boolean;
141
167
  })[];
142
- fathers: never[];
143
- childrens: {
168
+ fathers: {
144
169
  name: string;
145
170
  value: {
146
171
  type: string;
@@ -151,6 +176,7 @@ declare const _default: {
151
176
  fk_reference: string;
152
177
  pk: boolean;
153
178
  }[];
179
+ childrens: never[];
154
180
  name: string;
155
181
  };
156
182
  item_variacao_atributo: {
@@ -179,7 +205,7 @@ declare const _default: {
179
205
  childrens: never[];
180
206
  name: string;
181
207
  };
182
- categoria: {
208
+ empresa: {
183
209
  columns: ({
184
210
  name: string;
185
211
  value: {
@@ -215,7 +241,7 @@ declare const _default: {
215
241
  }[];
216
242
  name: string;
217
243
  };
218
- empresa: {
244
+ item: {
219
245
  columns: ({
220
246
  name: string;
221
247
  value: {
@@ -237,7 +263,17 @@ declare const _default: {
237
263
  fk_reference: null;
238
264
  pk: boolean;
239
265
  })[];
240
- fathers: never[];
266
+ fathers: {
267
+ name: string;
268
+ value: {
269
+ type: string;
270
+ is_null: string;
271
+ maxlength: null;
272
+ };
273
+ fk_table: string;
274
+ fk_reference: string;
275
+ pk: boolean;
276
+ }[];
241
277
  childrens: {
242
278
  name: string;
243
279
  value: {
@@ -251,7 +287,7 @@ declare const _default: {
251
287
  }[];
252
288
  name: string;
253
289
  };
254
- marca: {
290
+ entidade: {
255
291
  columns: ({
256
292
  name: string;
257
293
  value: {
@@ -287,7 +323,7 @@ declare const _default: {
287
323
  }[];
288
324
  name: string;
289
325
  };
290
- item_variacao: {
326
+ categoria: {
291
327
  columns: ({
292
328
  name: string;
293
329
  value: {
@@ -309,17 +345,7 @@ declare const _default: {
309
345
  fk_reference: null;
310
346
  pk: boolean;
311
347
  })[];
312
- fathers: {
313
- name: string;
314
- value: {
315
- type: string;
316
- is_null: string;
317
- maxlength: null;
318
- };
319
- fk_table: string;
320
- fk_reference: string;
321
- pk: boolean;
322
- }[];
348
+ fathers: never[];
323
349
  childrens: {
324
350
  name: string;
325
351
  value: {
@@ -333,7 +359,7 @@ declare const _default: {
333
359
  }[];
334
360
  name: string;
335
361
  };
336
- ecommerce: {
362
+ item_variacao: {
337
363
  columns: ({
338
364
  name: string;
339
365
  value: {
@@ -379,7 +405,7 @@ declare const _default: {
379
405
  }[];
380
406
  name: string;
381
407
  };
382
- item_variacao_imagem: {
408
+ ecommerce: {
383
409
  columns: ({
384
410
  name: string;
385
411
  value: {
@@ -412,11 +438,7 @@ declare const _default: {
412
438
  fk_reference: string;
413
439
  pk: boolean;
414
440
  }[];
415
- childrens: never[];
416
- name: string;
417
- };
418
- ecommerce_item: {
419
- columns: {
441
+ childrens: {
420
442
  name: string;
421
443
  value: {
422
444
  type: string;
@@ -427,7 +449,10 @@ declare const _default: {
427
449
  fk_reference: string;
428
450
  pk: boolean;
429
451
  }[];
430
- fathers: {
452
+ name: string;
453
+ };
454
+ usuario: {
455
+ columns: ({
431
456
  name: string;
432
457
  value: {
433
458
  type: string;
@@ -437,11 +462,22 @@ declare const _default: {
437
462
  fk_table: string;
438
463
  fk_reference: string;
439
464
  pk: boolean;
440
- }[];
465
+ } | {
466
+ name: string;
467
+ value: {
468
+ type: string;
469
+ is_null: string;
470
+ maxlength: null;
471
+ };
472
+ fk_table: null;
473
+ fk_reference: null;
474
+ pk: boolean;
475
+ })[];
476
+ fathers: never[];
441
477
  childrens: never[];
442
478
  name: string;
443
479
  };
444
- operacao: {
480
+ marca: {
445
481
  columns: ({
446
482
  name: string;
447
483
  value: {
@@ -463,17 +499,7 @@ declare const _default: {
463
499
  fk_reference: null;
464
500
  pk: boolean;
465
501
  })[];
466
- fathers: {
467
- name: string;
468
- value: {
469
- type: string;
470
- is_null: string;
471
- maxlength: null;
472
- };
473
- fk_table: string;
474
- fk_reference: string;
475
- pk: boolean;
476
- }[];
502
+ fathers: never[];
477
503
  childrens: {
478
504
  name: string;
479
505
  value: {
@@ -487,7 +513,7 @@ declare const _default: {
487
513
  }[];
488
514
  name: string;
489
515
  };
490
- atributo: {
516
+ operacao: {
491
517
  columns: ({
492
518
  name: string;
493
519
  value: {
@@ -509,8 +535,7 @@ declare const _default: {
509
535
  fk_reference: null;
510
536
  pk: boolean;
511
537
  })[];
512
- fathers: never[];
513
- childrens: {
538
+ fathers: {
514
539
  name: string;
515
540
  value: {
516
541
  type: string;
@@ -521,10 +546,7 @@ declare const _default: {
521
546
  fk_reference: string;
522
547
  pk: boolean;
523
548
  }[];
524
- name: string;
525
- };
526
- entidade_endereco: {
527
- columns: ({
549
+ childrens: {
528
550
  name: string;
529
551
  value: {
530
552
  type: string;
@@ -534,17 +556,21 @@ declare const _default: {
534
556
  fk_table: string;
535
557
  fk_reference: string;
536
558
  pk: boolean;
537
- } | {
559
+ }[];
560
+ name: string;
561
+ };
562
+ ecommerce_item: {
563
+ columns: {
538
564
  name: string;
539
565
  value: {
540
566
  type: string;
541
567
  is_null: string;
542
568
  maxlength: null;
543
569
  };
544
- fk_table: null;
545
- fk_reference: null;
570
+ fk_table: string;
571
+ fk_reference: string;
546
572
  pk: boolean;
547
- })[];
573
+ }[];
548
574
  fathers: {
549
575
  name: string;
550
576
  value: {
@@ -559,7 +585,7 @@ declare const _default: {
559
585
  childrens: never[];
560
586
  name: string;
561
587
  };
562
- usuario: {
588
+ item_variacao_imagem: {
563
589
  columns: ({
564
590
  name: string;
565
591
  value: {
@@ -581,7 +607,17 @@ declare const _default: {
581
607
  fk_reference: null;
582
608
  pk: boolean;
583
609
  })[];
584
- fathers: never[];
610
+ fathers: {
611
+ name: string;
612
+ value: {
613
+ type: string;
614
+ is_null: string;
615
+ maxlength: null;
616
+ };
617
+ fk_table: string;
618
+ fk_reference: string;
619
+ pk: boolean;
620
+ }[];
585
621
  childrens: never[];
586
622
  name: string;
587
623
  };
@@ -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 atributo_1 = __importDefault(require("./atributo"));
7
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
8
+ const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
9
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
6
10
  const operacao_item_1 = __importDefault(require("./operacao_item"));
11
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
12
+ const empresa_1 = __importDefault(require("./empresa"));
7
13
  const item_1 = __importDefault(require("./item"));
8
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
9
14
  const entidade_1 = __importDefault(require("./entidade"));
10
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
11
15
  const categoria_1 = __importDefault(require("./categoria"));
12
- const empresa_1 = __importDefault(require("./empresa"));
13
- const marca_1 = __importDefault(require("./marca"));
14
16
  const item_variacao_1 = __importDefault(require("./item_variacao"));
15
17
  const ecommerce_1 = __importDefault(require("./ecommerce"));
16
- const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
17
- const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
18
- const operacao_1 = __importDefault(require("./operacao"));
19
- const atributo_1 = __importDefault(require("./atributo"));
20
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
21
18
  const usuario_1 = __importDefault(require("./usuario"));
19
+ const marca_1 = __importDefault(require("./marca"));
20
+ const operacao_1 = __importDefault(require("./operacao"));
21
+ const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
22
+ const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
22
23
  exports.default = {
24
+ atributo: atributo_1.default,
25
+ operacao_pagamento: operacao_pagamento_1.default,
26
+ entidade_cartao: entidade_cartao_1.default,
27
+ entidade_endereco: entidade_endereco_1.default,
23
28
  operacao_item: operacao_item_1.default,
29
+ item_variacao_atributo: item_variacao_atributo_1.default,
30
+ empresa: empresa_1.default,
24
31
  item: item_1.default,
25
- operacao_pagamento: operacao_pagamento_1.default,
26
32
  entidade: entidade_1.default,
27
- item_variacao_atributo: item_variacao_atributo_1.default,
28
33
  categoria: categoria_1.default,
29
- empresa: empresa_1.default,
30
- marca: marca_1.default,
31
34
  item_variacao: item_variacao_1.default,
32
35
  ecommerce: ecommerce_1.default,
33
- item_variacao_imagem: item_variacao_imagem_1.default,
34
- ecommerce_item: ecommerce_item_1.default,
36
+ usuario: usuario_1.default,
37
+ marca: marca_1.default,
35
38
  operacao: operacao_1.default,
36
- atributo: atributo_1.default,
37
- entidade_endereco: entidade_endereco_1.default,
38
- usuario: usuario_1.default
39
+ ecommerce_item: ecommerce_item_1.default,
40
+ item_variacao_imagem: item_variacao_imagem_1.default
39
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-manipulator",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "postgresql database handler",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",