pg-manipulator 1.0.57 → 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.
- package/dist/@types/admin/item_fields.d.ts +1 -1
- package/dist/@types/admin/item_order.d.ts +1 -1
- package/dist/@types/admin/item_select.d.ts +1 -1
- package/dist/@types/admin/item_update.d.ts +1 -1
- package/dist/@types/admin/item_where.d.ts +1 -1
- package/dist/class/admin/index.d.ts +18 -18
- package/dist/class/admin/index.js +19 -19
- package/dist/mapping/admin/index.d.ts +68 -68
- package/dist/mapping/admin/index.js +19 -19
- package/dist/mapping/admin/item.js +4 -4
- package/package.json +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { PoolClient } from 'pg';
|
|
2
2
|
import { pool_tsx } from '../../@types';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import usuario from './usuario';
|
|
4
|
+
import entidade from './entidade';
|
|
5
5
|
import empresa from './empresa';
|
|
6
|
-
import
|
|
6
|
+
import operacao_item from './operacao_item';
|
|
7
7
|
import operacao_pagamento from './operacao_pagamento';
|
|
8
|
-
import entidade from './entidade';
|
|
9
|
-
import usuario from './usuario';
|
|
10
8
|
import item from './item';
|
|
11
|
-
import atributo from './atributo';
|
|
12
|
-
import entidade_endereco from './entidade_endereco';
|
|
13
|
-
import item_variacao from './item_variacao';
|
|
14
9
|
import categoria from './categoria';
|
|
15
|
-
import
|
|
10
|
+
import entidade_endereco from './entidade_endereco';
|
|
11
|
+
import operacao from './operacao';
|
|
12
|
+
import item_variacao_atributo from './item_variacao_atributo';
|
|
16
13
|
import item_variacao_imagem from './item_variacao_imagem';
|
|
14
|
+
import atributo from './atributo';
|
|
15
|
+
import entidade_cartao from './entidade_cartao';
|
|
17
16
|
import marca from './marca';
|
|
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
|
-
|
|
22
|
-
|
|
21
|
+
usuario: typeof usuario;
|
|
22
|
+
entidade: typeof entidade;
|
|
23
23
|
empresa: typeof empresa;
|
|
24
|
-
|
|
24
|
+
operacao_item: typeof operacao_item;
|
|
25
25
|
operacao_pagamento: typeof operacao_pagamento;
|
|
26
|
-
entidade: typeof entidade;
|
|
27
|
-
usuario: typeof usuario;
|
|
28
26
|
item: typeof item;
|
|
29
|
-
atributo: typeof atributo;
|
|
30
|
-
entidade_endereco: typeof entidade_endereco;
|
|
31
|
-
item_variacao: typeof item_variacao;
|
|
32
27
|
categoria: typeof categoria;
|
|
33
|
-
|
|
28
|
+
entidade_endereco: typeof entidade_endereco;
|
|
29
|
+
operacao: typeof operacao;
|
|
30
|
+
item_variacao_atributo: typeof item_variacao_atributo;
|
|
34
31
|
item_variacao_imagem: typeof item_variacao_imagem;
|
|
32
|
+
atributo: typeof atributo;
|
|
33
|
+
entidade_cartao: typeof entidade_cartao;
|
|
35
34
|
marca: typeof marca;
|
|
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
|
|
8
|
-
const
|
|
7
|
+
const usuario_1 = __importDefault(require("./usuario"));
|
|
8
|
+
const entidade_1 = __importDefault(require("./entidade"));
|
|
9
9
|
const empresa_1 = __importDefault(require("./empresa"));
|
|
10
|
-
const
|
|
10
|
+
const operacao_item_1 = __importDefault(require("./operacao_item"));
|
|
11
11
|
const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
|
|
12
|
-
const entidade_1 = __importDefault(require("./entidade"));
|
|
13
|
-
const usuario_1 = __importDefault(require("./usuario"));
|
|
14
12
|
const item_1 = __importDefault(require("./item"));
|
|
15
|
-
const atributo_1 = __importDefault(require("./atributo"));
|
|
16
|
-
const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
|
|
17
|
-
const item_variacao_1 = __importDefault(require("./item_variacao"));
|
|
18
13
|
const categoria_1 = __importDefault(require("./categoria"));
|
|
19
|
-
const
|
|
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"));
|
|
20
17
|
const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
|
|
18
|
+
const atributo_1 = __importDefault(require("./atributo"));
|
|
19
|
+
const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
|
|
21
20
|
const marca_1 = __importDefault(require("./marca"));
|
|
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
|
-
|
|
30
|
-
|
|
29
|
+
usuario: usuario_1.default,
|
|
30
|
+
entidade: entidade_1.default,
|
|
31
31
|
empresa: empresa_1.default,
|
|
32
|
-
|
|
32
|
+
operacao_item: operacao_item_1.default,
|
|
33
33
|
operacao_pagamento: operacao_pagamento_1.default,
|
|
34
|
-
entidade: entidade_1.default,
|
|
35
|
-
usuario: usuario_1.default,
|
|
36
34
|
item: item_1.default,
|
|
37
|
-
atributo: atributo_1.default,
|
|
38
|
-
entidade_endereco: entidade_endereco_1.default,
|
|
39
|
-
item_variacao: item_variacao_1.default,
|
|
40
35
|
categoria: categoria_1.default,
|
|
41
|
-
|
|
36
|
+
entidade_endereco: entidade_endereco_1.default,
|
|
37
|
+
operacao: operacao_1.default,
|
|
38
|
+
item_variacao_atributo: item_variacao_atributo_1.default,
|
|
42
39
|
item_variacao_imagem: item_variacao_imagem_1.default,
|
|
43
|
-
|
|
40
|
+
atributo: atributo_1.default,
|
|
41
|
+
entidade_cartao: entidade_cartao_1.default,
|
|
42
|
+
marca: marca_1.default,
|
|
43
|
+
item_variacao: item_variacao_1.default
|
|
44
44
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
usuario: {
|
|
3
3
|
columns: ({
|
|
4
4
|
name: string;
|
|
5
5
|
value: {
|
|
@@ -21,7 +21,12 @@ declare const _default: {
|
|
|
21
21
|
fk_reference: null;
|
|
22
22
|
pk: boolean;
|
|
23
23
|
})[];
|
|
24
|
-
fathers:
|
|
24
|
+
fathers: never[];
|
|
25
|
+
childrens: never[];
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
entidade: {
|
|
29
|
+
columns: ({
|
|
25
30
|
name: string;
|
|
26
31
|
value: {
|
|
27
32
|
type: string;
|
|
@@ -31,23 +36,19 @@ declare const _default: {
|
|
|
31
36
|
fk_table: string;
|
|
32
37
|
fk_reference: string;
|
|
33
38
|
pk: boolean;
|
|
34
|
-
}
|
|
35
|
-
childrens: never[];
|
|
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:
|
|
47
|
-
fk_reference:
|
|
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,7 +59,6 @@ declare const _default: {
|
|
|
58
59
|
fk_reference: string;
|
|
59
60
|
pk: boolean;
|
|
60
61
|
}[];
|
|
61
|
-
childrens: never[];
|
|
62
62
|
name: string;
|
|
63
63
|
};
|
|
64
64
|
empresa: {
|
|
@@ -87,7 +87,7 @@ declare const _default: {
|
|
|
87
87
|
childrens: never[];
|
|
88
88
|
name: string;
|
|
89
89
|
};
|
|
90
|
-
|
|
90
|
+
operacao_item: {
|
|
91
91
|
columns: ({
|
|
92
92
|
name: string;
|
|
93
93
|
value: {
|
|
@@ -120,17 +120,7 @@ declare const _default: {
|
|
|
120
120
|
fk_reference: string;
|
|
121
121
|
pk: boolean;
|
|
122
122
|
}[];
|
|
123
|
-
childrens:
|
|
124
|
-
name: string;
|
|
125
|
-
value: {
|
|
126
|
-
type: string;
|
|
127
|
-
is_null: string;
|
|
128
|
-
maxlength: null;
|
|
129
|
-
};
|
|
130
|
-
fk_table: string;
|
|
131
|
-
fk_reference: string;
|
|
132
|
-
pk: boolean;
|
|
133
|
-
}[];
|
|
123
|
+
childrens: never[];
|
|
134
124
|
name: string;
|
|
135
125
|
};
|
|
136
126
|
operacao_pagamento: {
|
|
@@ -169,7 +159,7 @@ declare const _default: {
|
|
|
169
159
|
childrens: never[];
|
|
170
160
|
name: string;
|
|
171
161
|
};
|
|
172
|
-
|
|
162
|
+
item: {
|
|
173
163
|
columns: ({
|
|
174
164
|
name: string;
|
|
175
165
|
value: {
|
|
@@ -191,7 +181,17 @@ declare const _default: {
|
|
|
191
181
|
fk_reference: null;
|
|
192
182
|
pk: boolean;
|
|
193
183
|
})[];
|
|
194
|
-
fathers:
|
|
184
|
+
fathers: {
|
|
185
|
+
name: string;
|
|
186
|
+
value: {
|
|
187
|
+
type: string;
|
|
188
|
+
is_null: string;
|
|
189
|
+
maxlength: null;
|
|
190
|
+
};
|
|
191
|
+
fk_table: string;
|
|
192
|
+
fk_reference: string;
|
|
193
|
+
pk: boolean;
|
|
194
|
+
}[];
|
|
195
195
|
childrens: {
|
|
196
196
|
name: string;
|
|
197
197
|
value: {
|
|
@@ -205,7 +205,7 @@ declare const _default: {
|
|
|
205
205
|
}[];
|
|
206
206
|
name: string;
|
|
207
207
|
};
|
|
208
|
-
|
|
208
|
+
categoria: {
|
|
209
209
|
columns: ({
|
|
210
210
|
name: string;
|
|
211
211
|
value: {
|
|
@@ -228,10 +228,20 @@ declare const _default: {
|
|
|
228
228
|
pk: boolean;
|
|
229
229
|
})[];
|
|
230
230
|
fathers: never[];
|
|
231
|
-
childrens:
|
|
231
|
+
childrens: {
|
|
232
|
+
name: string;
|
|
233
|
+
value: {
|
|
234
|
+
type: string;
|
|
235
|
+
is_null: string;
|
|
236
|
+
maxlength: null;
|
|
237
|
+
};
|
|
238
|
+
fk_table: string;
|
|
239
|
+
fk_reference: string;
|
|
240
|
+
pk: boolean;
|
|
241
|
+
}[];
|
|
232
242
|
name: string;
|
|
233
243
|
};
|
|
234
|
-
|
|
244
|
+
entidade_endereco: {
|
|
235
245
|
columns: ({
|
|
236
246
|
name: string;
|
|
237
247
|
value: {
|
|
@@ -277,7 +287,7 @@ declare const _default: {
|
|
|
277
287
|
}[];
|
|
278
288
|
name: string;
|
|
279
289
|
};
|
|
280
|
-
|
|
290
|
+
operacao: {
|
|
281
291
|
columns: ({
|
|
282
292
|
name: string;
|
|
283
293
|
value: {
|
|
@@ -299,8 +309,7 @@ declare const _default: {
|
|
|
299
309
|
fk_reference: null;
|
|
300
310
|
pk: boolean;
|
|
301
311
|
})[];
|
|
302
|
-
fathers:
|
|
303
|
-
childrens: {
|
|
312
|
+
fathers: {
|
|
304
313
|
name: string;
|
|
305
314
|
value: {
|
|
306
315
|
type: string;
|
|
@@ -311,10 +320,7 @@ declare const _default: {
|
|
|
311
320
|
fk_reference: string;
|
|
312
321
|
pk: boolean;
|
|
313
322
|
}[];
|
|
314
|
-
|
|
315
|
-
};
|
|
316
|
-
entidade_endereco: {
|
|
317
|
-
columns: ({
|
|
323
|
+
childrens: {
|
|
318
324
|
name: string;
|
|
319
325
|
value: {
|
|
320
326
|
type: string;
|
|
@@ -324,18 +330,11 @@ declare const _default: {
|
|
|
324
330
|
fk_table: string;
|
|
325
331
|
fk_reference: string;
|
|
326
332
|
pk: boolean;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
maxlength: null;
|
|
333
|
-
};
|
|
334
|
-
fk_table: null;
|
|
335
|
-
fk_reference: null;
|
|
336
|
-
pk: boolean;
|
|
337
|
-
})[];
|
|
338
|
-
fathers: {
|
|
333
|
+
}[];
|
|
334
|
+
name: string;
|
|
335
|
+
};
|
|
336
|
+
item_variacao_atributo: {
|
|
337
|
+
columns: {
|
|
339
338
|
name: string;
|
|
340
339
|
value: {
|
|
341
340
|
type: string;
|
|
@@ -346,7 +345,7 @@ declare const _default: {
|
|
|
346
345
|
fk_reference: string;
|
|
347
346
|
pk: boolean;
|
|
348
347
|
}[];
|
|
349
|
-
|
|
348
|
+
fathers: {
|
|
350
349
|
name: string;
|
|
351
350
|
value: {
|
|
352
351
|
type: string;
|
|
@@ -357,9 +356,10 @@ declare const _default: {
|
|
|
357
356
|
fk_reference: string;
|
|
358
357
|
pk: boolean;
|
|
359
358
|
}[];
|
|
359
|
+
childrens: never[];
|
|
360
360
|
name: string;
|
|
361
361
|
};
|
|
362
|
-
|
|
362
|
+
item_variacao_imagem: {
|
|
363
363
|
columns: ({
|
|
364
364
|
name: string;
|
|
365
365
|
value: {
|
|
@@ -392,20 +392,10 @@ declare const _default: {
|
|
|
392
392
|
fk_reference: string;
|
|
393
393
|
pk: boolean;
|
|
394
394
|
}[];
|
|
395
|
-
childrens:
|
|
396
|
-
name: string;
|
|
397
|
-
value: {
|
|
398
|
-
type: string;
|
|
399
|
-
is_null: string;
|
|
400
|
-
maxlength: null;
|
|
401
|
-
};
|
|
402
|
-
fk_table: string;
|
|
403
|
-
fk_reference: string;
|
|
404
|
-
pk: boolean;
|
|
405
|
-
}[];
|
|
395
|
+
childrens: never[];
|
|
406
396
|
name: string;
|
|
407
397
|
};
|
|
408
|
-
|
|
398
|
+
atributo: {
|
|
409
399
|
columns: ({
|
|
410
400
|
name: string;
|
|
411
401
|
value: {
|
|
@@ -487,7 +477,7 @@ declare const _default: {
|
|
|
487
477
|
}[];
|
|
488
478
|
name: string;
|
|
489
479
|
};
|
|
490
|
-
|
|
480
|
+
marca: {
|
|
491
481
|
columns: ({
|
|
492
482
|
name: string;
|
|
493
483
|
value: {
|
|
@@ -509,7 +499,8 @@ declare const _default: {
|
|
|
509
499
|
fk_reference: null;
|
|
510
500
|
pk: boolean;
|
|
511
501
|
})[];
|
|
512
|
-
fathers:
|
|
502
|
+
fathers: never[];
|
|
503
|
+
childrens: {
|
|
513
504
|
name: string;
|
|
514
505
|
value: {
|
|
515
506
|
type: string;
|
|
@@ -520,10 +511,9 @@ declare const _default: {
|
|
|
520
511
|
fk_reference: string;
|
|
521
512
|
pk: boolean;
|
|
522
513
|
}[];
|
|
523
|
-
childrens: never[];
|
|
524
514
|
name: string;
|
|
525
515
|
};
|
|
526
|
-
|
|
516
|
+
item_variacao: {
|
|
527
517
|
columns: ({
|
|
528
518
|
name: string;
|
|
529
519
|
value: {
|
|
@@ -545,7 +535,17 @@ declare const _default: {
|
|
|
545
535
|
fk_reference: null;
|
|
546
536
|
pk: boolean;
|
|
547
537
|
})[];
|
|
548
|
-
fathers:
|
|
538
|
+
fathers: {
|
|
539
|
+
name: string;
|
|
540
|
+
value: {
|
|
541
|
+
type: string;
|
|
542
|
+
is_null: string;
|
|
543
|
+
maxlength: null;
|
|
544
|
+
};
|
|
545
|
+
fk_table: string;
|
|
546
|
+
fk_reference: string;
|
|
547
|
+
pk: boolean;
|
|
548
|
+
}[];
|
|
549
549
|
childrens: {
|
|
550
550
|
name: string;
|
|
551
551
|
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
|
|
7
|
-
const
|
|
6
|
+
const usuario_1 = __importDefault(require("./usuario"));
|
|
7
|
+
const entidade_1 = __importDefault(require("./entidade"));
|
|
8
8
|
const empresa_1 = __importDefault(require("./empresa"));
|
|
9
|
-
const
|
|
9
|
+
const operacao_item_1 = __importDefault(require("./operacao_item"));
|
|
10
10
|
const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
|
|
11
|
-
const entidade_1 = __importDefault(require("./entidade"));
|
|
12
|
-
const usuario_1 = __importDefault(require("./usuario"));
|
|
13
11
|
const item_1 = __importDefault(require("./item"));
|
|
14
|
-
const atributo_1 = __importDefault(require("./atributo"));
|
|
15
|
-
const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
|
|
16
|
-
const item_variacao_1 = __importDefault(require("./item_variacao"));
|
|
17
12
|
const categoria_1 = __importDefault(require("./categoria"));
|
|
18
|
-
const
|
|
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"));
|
|
19
16
|
const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
|
|
17
|
+
const atributo_1 = __importDefault(require("./atributo"));
|
|
18
|
+
const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
|
|
20
19
|
const marca_1 = __importDefault(require("./marca"));
|
|
20
|
+
const item_variacao_1 = __importDefault(require("./item_variacao"));
|
|
21
21
|
exports.default = {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
usuario: usuario_1.default,
|
|
23
|
+
entidade: entidade_1.default,
|
|
24
24
|
empresa: empresa_1.default,
|
|
25
|
-
|
|
25
|
+
operacao_item: operacao_item_1.default,
|
|
26
26
|
operacao_pagamento: operacao_pagamento_1.default,
|
|
27
|
-
entidade: entidade_1.default,
|
|
28
|
-
usuario: usuario_1.default,
|
|
29
27
|
item: item_1.default,
|
|
30
|
-
atributo: atributo_1.default,
|
|
31
|
-
entidade_endereco: entidade_endereco_1.default,
|
|
32
|
-
item_variacao: item_variacao_1.default,
|
|
33
28
|
categoria: categoria_1.default,
|
|
34
|
-
|
|
29
|
+
entidade_endereco: entidade_endereco_1.default,
|
|
30
|
+
operacao: operacao_1.default,
|
|
31
|
+
item_variacao_atributo: item_variacao_atributo_1.default,
|
|
35
32
|
item_variacao_imagem: item_variacao_imagem_1.default,
|
|
36
|
-
|
|
33
|
+
atributo: atributo_1.default,
|
|
34
|
+
entidade_cartao: entidade_cartao_1.default,
|
|
35
|
+
marca: marca_1.default,
|
|
36
|
+
item_variacao: item_variacao_1.default
|
|
37
37
|
};
|
|
@@ -245,9 +245,9 @@ exports.default = {
|
|
|
245
245
|
"pk": false
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
|
-
"name": "
|
|
248
|
+
"name": "empresa",
|
|
249
249
|
"value": {
|
|
250
|
-
"type": "
|
|
250
|
+
"type": "integer",
|
|
251
251
|
"is_null": "YES",
|
|
252
252
|
"maxlength": null
|
|
253
253
|
},
|
|
@@ -256,9 +256,9 @@ exports.default = {
|
|
|
256
256
|
"pk": false
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
|
-
"name": "
|
|
259
|
+
"name": "destaque",
|
|
260
260
|
"value": {
|
|
261
|
-
"type": "
|
|
261
|
+
"type": "boolean",
|
|
262
262
|
"is_null": "YES",
|
|
263
263
|
"maxlength": null
|
|
264
264
|
},
|