pg-manipulator 1.0.49 → 1.0.51
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/dist/@types/admin/empresa_fields.d.ts +8 -0
- package/dist/@types/admin/empresa_order.d.ts +8 -0
- package/dist/@types/admin/empresa_select.d.ts +8 -0
- package/dist/@types/admin/empresa_update.d.ts +8 -0
- package/dist/@types/admin/empresa_where.d.ts +8 -0
- package/dist/@types/admin/operacao_fields.d.ts +12 -12
- package/dist/@types/admin/operacao_item_fields.d.ts +1 -1
- package/dist/@types/admin/operacao_item_order.d.ts +1 -1
- package/dist/@types/admin/operacao_item_select.d.ts +1 -1
- package/dist/@types/admin/operacao_item_update.d.ts +1 -1
- package/dist/@types/admin/operacao_item_where.d.ts +1 -1
- package/dist/@types/admin/operacao_pagamento_fields.d.ts +1 -1
- package/dist/class/admin/index.d.ts +18 -22
- package/dist/class/admin/index.js +18 -22
- package/dist/mapping/admin/empresa.d.ts +1 -11
- package/dist/mapping/admin/empresa.js +85 -9
- package/dist/mapping/admin/index.d.ts +54 -136
- package/dist/mapping/admin/index.js +18 -22
- package/dist/mapping/admin/operacao.js +13 -13
- package/dist/mapping/admin/operacao_item.js +5 -5
- package/dist/mapping/admin/operacao_pagamento.js +1 -1
- package/package.json +1 -1
- package/dist/@types/admin/ecommerce_fields.d.ts +0 -18
- package/dist/@types/admin/ecommerce_fields.js +0 -2
- package/dist/@types/admin/ecommerce_item_fields.d.ts +0 -5
- package/dist/@types/admin/ecommerce_item_fields.js +0 -2
- package/dist/@types/admin/ecommerce_item_order.d.ts +0 -5
- package/dist/@types/admin/ecommerce_item_order.js +0 -2
- package/dist/@types/admin/ecommerce_item_select.d.ts +0 -9
- package/dist/@types/admin/ecommerce_item_select.js +0 -2
- package/dist/@types/admin/ecommerce_item_update.d.ts +0 -7
- package/dist/@types/admin/ecommerce_item_update.js +0 -2
- package/dist/@types/admin/ecommerce_item_where.d.ts +0 -6
- package/dist/@types/admin/ecommerce_item_where.js +0 -2
- package/dist/@types/admin/ecommerce_order.d.ts +0 -18
- package/dist/@types/admin/ecommerce_order.js +0 -2
- package/dist/@types/admin/ecommerce_select.d.ts +0 -22
- package/dist/@types/admin/ecommerce_select.js +0 -2
- package/dist/@types/admin/ecommerce_update.d.ts +0 -20
- package/dist/@types/admin/ecommerce_update.js +0 -2
- package/dist/@types/admin/ecommerce_where.d.ts +0 -19
- package/dist/@types/admin/ecommerce_where.js +0 -2
- package/dist/class/admin/ecommerce.d.ts +0 -13
- package/dist/class/admin/ecommerce.js +0 -24
- package/dist/class/admin/ecommerce_item.d.ts +0 -13
- package/dist/class/admin/ecommerce_item.js +0 -24
- package/dist/mapping/admin/ecommerce.d.ts +0 -47
- package/dist/mapping/admin/ecommerce.js +0 -209
- package/dist/mapping/admin/ecommerce_item.d.ts +0 -27
- package/dist/mapping/admin/ecommerce_item.js +0 -65
|
@@ -30,4 +30,12 @@ export type empresa_fields = {
|
|
|
30
30
|
pagarme_sk?: string;
|
|
31
31
|
pagarme_pk?: string;
|
|
32
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;
|
|
33
41
|
};
|
|
@@ -30,4 +30,12 @@ export type empresa_order = {
|
|
|
30
30
|
pagarme_sk?: 'desc' | 'asc';
|
|
31
31
|
pagarme_pk?: 'desc' | 'asc';
|
|
32
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';
|
|
33
41
|
};
|
|
@@ -32,6 +32,14 @@ export type empresa_select = {
|
|
|
32
32
|
pagarme_sk?: string;
|
|
33
33
|
pagarme_pk?: string;
|
|
34
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;
|
|
35
43
|
where: empresa_where;
|
|
36
44
|
order?: empresa_order;
|
|
37
45
|
};
|
|
@@ -31,5 +31,13 @@ export type empresa_update = {
|
|
|
31
31
|
pagarme_sk?: string;
|
|
32
32
|
pagarme_pk?: string;
|
|
33
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;
|
|
34
42
|
where: empresa_where;
|
|
35
43
|
};
|
|
@@ -31,4 +31,12 @@ export type empresa_where = {
|
|
|
31
31
|
pagarme_sk?: where_string | string;
|
|
32
32
|
pagarme_pk?: where_string | string;
|
|
33
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;
|
|
34
42
|
};
|
|
@@ -2,22 +2,22 @@ export type operacao_fields = {
|
|
|
2
2
|
id?: number;
|
|
3
3
|
txid?: string;
|
|
4
4
|
situacao: string;
|
|
5
|
-
cliente
|
|
5
|
+
cliente?: number;
|
|
6
6
|
transportadora?: number;
|
|
7
|
-
valor_frete
|
|
8
|
-
valor_seguro
|
|
9
|
-
valor_outros
|
|
7
|
+
valor_frete: number;
|
|
8
|
+
valor_seguro: number;
|
|
9
|
+
valor_outros: number;
|
|
10
10
|
is_frete_gratis?: boolean;
|
|
11
11
|
is_consumidor_final?: boolean;
|
|
12
12
|
data_hora_criacao?: Date;
|
|
13
13
|
data_hora_contingencia?: Date;
|
|
14
14
|
justificativa_contingencia?: string;
|
|
15
|
-
serie
|
|
16
|
-
numero
|
|
17
|
-
natureza
|
|
18
|
-
tipo_operacao
|
|
19
|
-
destinacao
|
|
20
|
-
tipo_impressao
|
|
21
|
-
tipo_proposito
|
|
22
|
-
indicador_presenca
|
|
15
|
+
serie?: string;
|
|
16
|
+
numero?: number;
|
|
17
|
+
natureza?: string;
|
|
18
|
+
tipo_operacao?: string;
|
|
19
|
+
destinacao?: string;
|
|
20
|
+
tipo_impressao?: string;
|
|
21
|
+
tipo_proposito?: string;
|
|
22
|
+
indicador_presenca?: string;
|
|
23
23
|
};
|
|
@@ -2,7 +2,7 @@ import { where_number } from '../';
|
|
|
2
2
|
export type operacao_item_where = {
|
|
3
3
|
id?: where_number | number;
|
|
4
4
|
operacao?: where_number | number;
|
|
5
|
-
|
|
5
|
+
item_variacao?: where_number | number;
|
|
6
6
|
quantidade?: where_number | number;
|
|
7
7
|
valor_unitario?: where_number | number;
|
|
8
8
|
valor_desconto_unitario?: where_number | number;
|
|
@@ -1,41 +1,37 @@
|
|
|
1
1
|
import { PoolClient } from 'pg';
|
|
2
2
|
import { pool_tsx } from '../../@types';
|
|
3
|
-
import
|
|
4
|
-
import item from './item';
|
|
3
|
+
import item_variacao_imagem from './item_variacao_imagem';
|
|
5
4
|
import empresa from './empresa';
|
|
6
|
-
import entidade from './entidade';
|
|
7
|
-
import categoria from './categoria';
|
|
8
5
|
import entidade_endereco from './entidade_endereco';
|
|
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
6
|
import entidade_cartao from './entidade_cartao';
|
|
14
|
-
import
|
|
7
|
+
import operacao from './operacao';
|
|
15
8
|
import operacao_pagamento from './operacao_pagamento';
|
|
16
|
-
import
|
|
9
|
+
import operacao_item from './operacao_item';
|
|
10
|
+
import item from './item';
|
|
17
11
|
import item_variacao from './item_variacao';
|
|
12
|
+
import categoria from './categoria';
|
|
13
|
+
import entidade from './entidade';
|
|
14
|
+
import usuario from './usuario';
|
|
18
15
|
import item_variacao_atributo from './item_variacao_atributo';
|
|
19
|
-
import
|
|
16
|
+
import marca from './marca';
|
|
17
|
+
import atributo from './atributo';
|
|
20
18
|
declare const _default: {
|
|
21
19
|
query(query_string: string, query_params: Array<any>, transaction?: PoolClient | any): Promise<any>;
|
|
22
20
|
transaction(callback: pool_tsx): Promise<void>;
|
|
23
|
-
|
|
24
|
-
item: typeof item;
|
|
21
|
+
item_variacao_imagem: typeof item_variacao_imagem;
|
|
25
22
|
empresa: typeof empresa;
|
|
26
|
-
entidade: typeof entidade;
|
|
27
|
-
categoria: typeof categoria;
|
|
28
23
|
entidade_endereco: typeof entidade_endereco;
|
|
29
|
-
item_variacao_imagem: typeof item_variacao_imagem;
|
|
30
|
-
marca: typeof marca;
|
|
31
|
-
usuario: typeof usuario;
|
|
32
|
-
operacao_item: typeof operacao_item;
|
|
33
24
|
entidade_cartao: typeof entidade_cartao;
|
|
34
|
-
|
|
25
|
+
operacao: typeof operacao;
|
|
35
26
|
operacao_pagamento: typeof operacao_pagamento;
|
|
36
|
-
|
|
27
|
+
operacao_item: typeof operacao_item;
|
|
28
|
+
item: typeof item;
|
|
37
29
|
item_variacao: typeof item_variacao;
|
|
30
|
+
categoria: typeof categoria;
|
|
31
|
+
entidade: typeof entidade;
|
|
32
|
+
usuario: typeof usuario;
|
|
38
33
|
item_variacao_atributo: typeof item_variacao_atributo;
|
|
39
|
-
|
|
34
|
+
marca: typeof marca;
|
|
35
|
+
atributo: typeof atributo;
|
|
40
36
|
};
|
|
41
37
|
export default _default;
|
|
@@ -4,23 +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
|
|
8
|
-
const item_1 = __importDefault(require("./item"));
|
|
7
|
+
const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
|
|
9
8
|
const empresa_1 = __importDefault(require("./empresa"));
|
|
10
|
-
const entidade_1 = __importDefault(require("./entidade"));
|
|
11
|
-
const categoria_1 = __importDefault(require("./categoria"));
|
|
12
9
|
const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
|
|
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
10
|
const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
|
|
18
|
-
const
|
|
11
|
+
const operacao_1 = __importDefault(require("./operacao"));
|
|
19
12
|
const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
|
|
20
|
-
const
|
|
13
|
+
const operacao_item_1 = __importDefault(require("./operacao_item"));
|
|
14
|
+
const item_1 = __importDefault(require("./item"));
|
|
21
15
|
const item_variacao_1 = __importDefault(require("./item_variacao"));
|
|
16
|
+
const categoria_1 = __importDefault(require("./categoria"));
|
|
17
|
+
const entidade_1 = __importDefault(require("./entidade"));
|
|
18
|
+
const usuario_1 = __importDefault(require("./usuario"));
|
|
22
19
|
const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
|
|
23
|
-
const
|
|
20
|
+
const marca_1 = __importDefault(require("./marca"));
|
|
21
|
+
const atributo_1 = __importDefault(require("./atributo"));
|
|
24
22
|
exports.default = {
|
|
25
23
|
async query(query_string, query_params, transaction = undefined) {
|
|
26
24
|
return await database_1.default.query('admin', query_string, query_params, transaction);
|
|
@@ -28,21 +26,19 @@ exports.default = {
|
|
|
28
26
|
async transaction(callback) {
|
|
29
27
|
return await database_1.default.transaction('admin', callback);
|
|
30
28
|
},
|
|
31
|
-
|
|
32
|
-
item: item_1.default,
|
|
29
|
+
item_variacao_imagem: item_variacao_imagem_1.default,
|
|
33
30
|
empresa: empresa_1.default,
|
|
34
|
-
entidade: entidade_1.default,
|
|
35
|
-
categoria: categoria_1.default,
|
|
36
31
|
entidade_endereco: entidade_endereco_1.default,
|
|
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
32
|
entidade_cartao: entidade_cartao_1.default,
|
|
42
|
-
|
|
33
|
+
operacao: operacao_1.default,
|
|
43
34
|
operacao_pagamento: operacao_pagamento_1.default,
|
|
44
|
-
|
|
35
|
+
operacao_item: operacao_item_1.default,
|
|
36
|
+
item: item_1.default,
|
|
45
37
|
item_variacao: item_variacao_1.default,
|
|
38
|
+
categoria: categoria_1.default,
|
|
39
|
+
entidade: entidade_1.default,
|
|
40
|
+
usuario: usuario_1.default,
|
|
46
41
|
item_variacao_atributo: item_variacao_atributo_1.default,
|
|
47
|
-
|
|
42
|
+
marca: marca_1.default,
|
|
43
|
+
atributo: atributo_1.default
|
|
48
44
|
};
|
|
@@ -21,17 +21,7 @@ declare const _default: {
|
|
|
21
21
|
pk: boolean;
|
|
22
22
|
})[];
|
|
23
23
|
fathers: never[];
|
|
24
|
-
childrens:
|
|
25
|
-
name: string;
|
|
26
|
-
value: {
|
|
27
|
-
type: string;
|
|
28
|
-
is_null: string;
|
|
29
|
-
maxlength: null;
|
|
30
|
-
};
|
|
31
|
-
fk_table: string;
|
|
32
|
-
fk_reference: string;
|
|
33
|
-
pk: boolean;
|
|
34
|
-
}[];
|
|
24
|
+
childrens: never[];
|
|
35
25
|
name: string;
|
|
36
26
|
};
|
|
37
27
|
export default _default;
|
|
@@ -342,21 +342,97 @@ exports.default = {
|
|
|
342
342
|
"fk_table": null,
|
|
343
343
|
"fk_reference": null,
|
|
344
344
|
"pk": false
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
"fathers": [],
|
|
348
|
-
"childrens": [
|
|
345
|
+
},
|
|
349
346
|
{
|
|
350
|
-
"name": "
|
|
347
|
+
"name": "whatsapp",
|
|
351
348
|
"value": {
|
|
352
|
-
"type": "
|
|
353
|
-
"is_null": "
|
|
349
|
+
"type": "character varying",
|
|
350
|
+
"is_null": "YES",
|
|
354
351
|
"maxlength": null
|
|
355
352
|
},
|
|
356
|
-
"fk_table":
|
|
357
|
-
"fk_reference":
|
|
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,
|
|
358
432
|
"pk": false
|
|
359
433
|
}
|
|
360
434
|
],
|
|
435
|
+
"fathers": [],
|
|
436
|
+
"childrens": [],
|
|
361
437
|
"name": "empresa"
|
|
362
438
|
};
|