pg-manipulator 1.0.43 → 1.0.44

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.
@@ -3,9 +3,6 @@ export type item_fields = {
3
3
  nome: string;
4
4
  descricao?: string;
5
5
  sku: number;
6
- preco: number;
7
- preco_personalizacao: number;
8
- preco_custo: number;
9
6
  categoria: number;
10
7
  marca: number;
11
8
  unidade_medida?: string;
@@ -3,9 +3,6 @@ export type item_order = {
3
3
  nome?: 'desc' | 'asc';
4
4
  descricao?: 'desc' | 'asc';
5
5
  sku?: 'desc' | 'asc';
6
- preco?: 'desc' | 'asc';
7
- preco_personalizacao?: 'desc' | 'asc';
8
- preco_custo?: 'desc' | 'asc';
9
6
  categoria?: 'desc' | 'asc';
10
7
  marca?: 'desc' | 'asc';
11
8
  unidade_medida?: 'desc' | 'asc';
@@ -5,9 +5,6 @@ export type item_select = {
5
5
  nome?: string;
6
6
  descricao?: string;
7
7
  sku?: number;
8
- preco?: number;
9
- preco_personalizacao?: number;
10
- preco_custo?: number;
11
8
  categoria?: number;
12
9
  marca?: number;
13
10
  unidade_medida?: string;
@@ -4,9 +4,6 @@ export type item_update = {
4
4
  nome?: string;
5
5
  descricao?: string;
6
6
  sku?: number;
7
- preco?: number;
8
- preco_personalizacao?: number;
9
- preco_custo?: number;
10
7
  categoria?: number;
11
8
  marca?: number;
12
9
  unidade_medida?: string;
@@ -4,9 +4,6 @@ export type item_where = {
4
4
  nome?: where_string | string;
5
5
  descricao?: where_string | string;
6
6
  sku?: where_number | number;
7
- preco?: where_number | number;
8
- preco_personalizacao?: where_number | number;
9
- preco_custo?: where_number | number;
10
7
  categoria?: where_number | number;
11
8
  marca?: where_number | number;
12
9
  unidade_medida?: where_string | string;
@@ -1,37 +1,37 @@
1
1
  import { PoolClient } from 'pg';
2
2
  import { pool_tsx } from '../../@types';
3
- import empresa from './empresa';
4
- import operacao_item from './operacao_item';
5
- import item_variacao from './item_variacao';
6
3
  import ecommerce from './ecommerce';
7
- import operacao_pagamento from './operacao_pagamento';
4
+ import item_variacao_atributo from './item_variacao_atributo';
8
5
  import item from './item';
9
- import categoria from './categoria';
10
- import entidade_endereco from './entidade_endereco';
11
6
  import entidade from './entidade';
7
+ import categoria from './categoria';
12
8
  import marca from './marca';
13
- import operacao from './operacao';
9
+ import operacao_pagamento from './operacao_pagamento';
10
+ import item_variacao from './item_variacao';
11
+ import usuario from './usuario';
14
12
  import ecommerce_item from './ecommerce_item';
13
+ import entidade_endereco from './entidade_endereco';
15
14
  import atributo from './atributo';
16
- import item_variacao_atributo from './item_variacao_atributo';
17
- import usuario from './usuario';
15
+ import operacao from './operacao';
16
+ import operacao_item from './operacao_item';
17
+ import empresa from './empresa';
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
- empresa: typeof empresa;
22
- operacao_item: typeof operacao_item;
23
- item_variacao: typeof item_variacao;
24
21
  ecommerce: typeof ecommerce;
25
- operacao_pagamento: typeof operacao_pagamento;
22
+ item_variacao_atributo: typeof item_variacao_atributo;
26
23
  item: typeof item;
27
- categoria: typeof categoria;
28
- entidade_endereco: typeof entidade_endereco;
29
24
  entidade: typeof entidade;
25
+ categoria: typeof categoria;
30
26
  marca: typeof marca;
31
- operacao: typeof operacao;
27
+ operacao_pagamento: typeof operacao_pagamento;
28
+ item_variacao: typeof item_variacao;
29
+ usuario: typeof usuario;
32
30
  ecommerce_item: typeof ecommerce_item;
31
+ entidade_endereco: typeof entidade_endereco;
33
32
  atributo: typeof atributo;
34
- item_variacao_atributo: typeof item_variacao_atributo;
35
- usuario: typeof usuario;
33
+ operacao: typeof operacao;
34
+ operacao_item: typeof operacao_item;
35
+ empresa: typeof empresa;
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 empresa_1 = __importDefault(require("./empresa"));
8
- const operacao_item_1 = __importDefault(require("./operacao_item"));
9
- const item_variacao_1 = __importDefault(require("./item_variacao"));
10
7
  const ecommerce_1 = __importDefault(require("./ecommerce"));
11
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
8
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
12
9
  const item_1 = __importDefault(require("./item"));
13
- const categoria_1 = __importDefault(require("./categoria"));
14
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
15
10
  const entidade_1 = __importDefault(require("./entidade"));
11
+ const categoria_1 = __importDefault(require("./categoria"));
16
12
  const marca_1 = __importDefault(require("./marca"));
17
- const operacao_1 = __importDefault(require("./operacao"));
13
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
14
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
15
+ const usuario_1 = __importDefault(require("./usuario"));
18
16
  const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
17
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
19
18
  const atributo_1 = __importDefault(require("./atributo"));
20
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
21
- const usuario_1 = __importDefault(require("./usuario"));
19
+ const operacao_1 = __importDefault(require("./operacao"));
20
+ const operacao_item_1 = __importDefault(require("./operacao_item"));
21
+ const empresa_1 = __importDefault(require("./empresa"));
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
- empresa: empresa_1.default,
30
- operacao_item: operacao_item_1.default,
31
- item_variacao: item_variacao_1.default,
32
29
  ecommerce: ecommerce_1.default,
33
- operacao_pagamento: operacao_pagamento_1.default,
30
+ item_variacao_atributo: item_variacao_atributo_1.default,
34
31
  item: item_1.default,
35
- categoria: categoria_1.default,
36
- entidade_endereco: entidade_endereco_1.default,
37
32
  entidade: entidade_1.default,
33
+ categoria: categoria_1.default,
38
34
  marca: marca_1.default,
39
- operacao: operacao_1.default,
35
+ operacao_pagamento: operacao_pagamento_1.default,
36
+ item_variacao: item_variacao_1.default,
37
+ usuario: usuario_1.default,
40
38
  ecommerce_item: ecommerce_item_1.default,
39
+ entidade_endereco: entidade_endereco_1.default,
41
40
  atributo: atributo_1.default,
42
- item_variacao_atributo: item_variacao_atributo_1.default,
43
- usuario: usuario_1.default
41
+ operacao: operacao_1.default,
42
+ operacao_item: operacao_item_1.default,
43
+ empresa: empresa_1.default
44
44
  };
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- empresa: {
2
+ ecommerce: {
3
3
  columns: ({
4
4
  name: string;
5
5
  value: {
@@ -21,8 +21,7 @@ declare const _default: {
21
21
  fk_reference: null;
22
22
  pk: boolean;
23
23
  })[];
24
- fathers: never[];
25
- childrens: {
24
+ fathers: {
26
25
  name: string;
27
26
  value: {
28
27
  type: string;
@@ -33,31 +32,7 @@ declare const _default: {
33
32
  fk_reference: string;
34
33
  pk: boolean;
35
34
  }[];
36
- name: string;
37
- };
38
- operacao_item: {
39
- columns: ({
40
- name: string;
41
- value: {
42
- type: string;
43
- is_null: string;
44
- maxlength: null;
45
- };
46
- fk_table: string;
47
- fk_reference: string;
48
- pk: boolean;
49
- } | {
50
- name: string;
51
- value: {
52
- type: string;
53
- is_null: string;
54
- maxlength: null;
55
- };
56
- fk_table: null;
57
- fk_reference: null;
58
- pk: boolean;
59
- })[];
60
- fathers: {
35
+ childrens: {
61
36
  name: string;
62
37
  value: {
63
38
  type: string;
@@ -68,11 +43,10 @@ declare const _default: {
68
43
  fk_reference: string;
69
44
  pk: boolean;
70
45
  }[];
71
- childrens: never[];
72
46
  name: string;
73
47
  };
74
- item_variacao: {
75
- columns: ({
48
+ item_variacao_atributo: {
49
+ columns: {
76
50
  name: string;
77
51
  value: {
78
52
  type: string;
@@ -82,19 +56,8 @@ declare const _default: {
82
56
  fk_table: string;
83
57
  fk_reference: string;
84
58
  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: never[];
97
- childrens: {
59
+ }[];
60
+ fathers: {
98
61
  name: string;
99
62
  value: {
100
63
  type: string;
@@ -105,9 +68,10 @@ declare const _default: {
105
68
  fk_reference: string;
106
69
  pk: boolean;
107
70
  }[];
71
+ childrens: never[];
108
72
  name: string;
109
73
  };
110
- ecommerce: {
74
+ item: {
111
75
  columns: ({
112
76
  name: string;
113
77
  value: {
@@ -153,7 +117,7 @@ declare const _default: {
153
117
  }[];
154
118
  name: string;
155
119
  };
156
- operacao_pagamento: {
120
+ entidade: {
157
121
  columns: ({
158
122
  name: string;
159
123
  value: {
@@ -175,7 +139,8 @@ declare const _default: {
175
139
  fk_reference: null;
176
140
  pk: boolean;
177
141
  })[];
178
- fathers: {
142
+ fathers: never[];
143
+ childrens: {
179
144
  name: string;
180
145
  value: {
181
146
  type: string;
@@ -186,10 +151,9 @@ declare const _default: {
186
151
  fk_reference: string;
187
152
  pk: boolean;
188
153
  }[];
189
- childrens: never[];
190
154
  name: string;
191
155
  };
192
- item: {
156
+ categoria: {
193
157
  columns: ({
194
158
  name: string;
195
159
  value: {
@@ -211,17 +175,7 @@ declare const _default: {
211
175
  fk_reference: null;
212
176
  pk: boolean;
213
177
  })[];
214
- fathers: {
215
- name: string;
216
- value: {
217
- type: string;
218
- is_null: string;
219
- maxlength: null;
220
- };
221
- fk_table: string;
222
- fk_reference: string;
223
- pk: boolean;
224
- }[];
178
+ fathers: never[];
225
179
  childrens: {
226
180
  name: string;
227
181
  value: {
@@ -235,7 +189,7 @@ declare const _default: {
235
189
  }[];
236
190
  name: string;
237
191
  };
238
- categoria: {
192
+ marca: {
239
193
  columns: ({
240
194
  name: string;
241
195
  value: {
@@ -271,7 +225,7 @@ declare const _default: {
271
225
  }[];
272
226
  name: string;
273
227
  };
274
- entidade_endereco: {
228
+ operacao_pagamento: {
275
229
  columns: ({
276
230
  name: string;
277
231
  value: {
@@ -307,7 +261,7 @@ declare const _default: {
307
261
  childrens: never[];
308
262
  name: string;
309
263
  };
310
- entidade: {
264
+ item_variacao: {
311
265
  columns: ({
312
266
  name: string;
313
267
  value: {
@@ -343,7 +297,7 @@ declare const _default: {
343
297
  }[];
344
298
  name: string;
345
299
  };
346
- marca: {
300
+ usuario: {
347
301
  columns: ({
348
302
  name: string;
349
303
  value: {
@@ -366,7 +320,11 @@ declare const _default: {
366
320
  pk: boolean;
367
321
  })[];
368
322
  fathers: never[];
369
- childrens: {
323
+ childrens: never[];
324
+ name: string;
325
+ };
326
+ ecommerce_item: {
327
+ columns: {
370
328
  name: string;
371
329
  value: {
372
330
  type: string;
@@ -377,9 +335,21 @@ declare const _default: {
377
335
  fk_reference: string;
378
336
  pk: boolean;
379
337
  }[];
338
+ fathers: {
339
+ name: string;
340
+ value: {
341
+ type: string;
342
+ is_null: string;
343
+ maxlength: null;
344
+ };
345
+ fk_table: string;
346
+ fk_reference: string;
347
+ pk: boolean;
348
+ }[];
349
+ childrens: never[];
380
350
  name: string;
381
351
  };
382
- operacao: {
352
+ entidade_endereco: {
383
353
  columns: ({
384
354
  name: string;
385
355
  value: {
@@ -412,7 +382,11 @@ declare const _default: {
412
382
  fk_reference: string;
413
383
  pk: boolean;
414
384
  }[];
415
- childrens: {
385
+ childrens: never[];
386
+ name: string;
387
+ };
388
+ atributo: {
389
+ columns: ({
416
390
  name: string;
417
391
  value: {
418
392
  type: string;
@@ -422,22 +396,19 @@ declare const _default: {
422
396
  fk_table: string;
423
397
  fk_reference: string;
424
398
  pk: boolean;
425
- }[];
426
- name: string;
427
- };
428
- ecommerce_item: {
429
- columns: {
399
+ } | {
430
400
  name: string;
431
401
  value: {
432
402
  type: string;
433
403
  is_null: string;
434
404
  maxlength: null;
435
405
  };
436
- fk_table: string;
437
- fk_reference: string;
406
+ fk_table: null;
407
+ fk_reference: null;
438
408
  pk: boolean;
439
- }[];
440
- fathers: {
409
+ })[];
410
+ fathers: never[];
411
+ childrens: {
441
412
  name: string;
442
413
  value: {
443
414
  type: string;
@@ -448,10 +419,9 @@ declare const _default: {
448
419
  fk_reference: string;
449
420
  pk: boolean;
450
421
  }[];
451
- childrens: never[];
452
422
  name: string;
453
423
  };
454
- atributo: {
424
+ operacao: {
455
425
  columns: ({
456
426
  name: string;
457
427
  value: {
@@ -473,7 +443,17 @@ declare const _default: {
473
443
  fk_reference: null;
474
444
  pk: boolean;
475
445
  })[];
476
- fathers: never[];
446
+ fathers: {
447
+ name: string;
448
+ value: {
449
+ type: string;
450
+ is_null: string;
451
+ maxlength: null;
452
+ };
453
+ fk_table: string;
454
+ fk_reference: string;
455
+ pk: boolean;
456
+ }[];
477
457
  childrens: {
478
458
  name: string;
479
459
  value: {
@@ -487,8 +467,8 @@ declare const _default: {
487
467
  }[];
488
468
  name: string;
489
469
  };
490
- item_variacao_atributo: {
491
- columns: {
470
+ operacao_item: {
471
+ columns: ({
492
472
  name: string;
493
473
  value: {
494
474
  type: string;
@@ -498,7 +478,17 @@ declare const _default: {
498
478
  fk_table: string;
499
479
  fk_reference: string;
500
480
  pk: boolean;
501
- }[];
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
+ })[];
502
492
  fathers: {
503
493
  name: string;
504
494
  value: {
@@ -513,7 +503,7 @@ declare const _default: {
513
503
  childrens: never[];
514
504
  name: string;
515
505
  };
516
- usuario: {
506
+ empresa: {
517
507
  columns: ({
518
508
  name: string;
519
509
  value: {
@@ -536,7 +526,17 @@ declare const _default: {
536
526
  pk: boolean;
537
527
  })[];
538
528
  fathers: never[];
539
- childrens: never[];
529
+ childrens: {
530
+ name: string;
531
+ value: {
532
+ type: string;
533
+ is_null: string;
534
+ maxlength: null;
535
+ };
536
+ fk_table: string;
537
+ fk_reference: string;
538
+ pk: boolean;
539
+ }[];
540
540
  name: string;
541
541
  };
542
542
  };
@@ -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 empresa_1 = __importDefault(require("./empresa"));
7
- const operacao_item_1 = __importDefault(require("./operacao_item"));
8
- const item_variacao_1 = __importDefault(require("./item_variacao"));
9
6
  const ecommerce_1 = __importDefault(require("./ecommerce"));
10
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
7
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
11
8
  const item_1 = __importDefault(require("./item"));
12
- const categoria_1 = __importDefault(require("./categoria"));
13
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
14
9
  const entidade_1 = __importDefault(require("./entidade"));
10
+ const categoria_1 = __importDefault(require("./categoria"));
15
11
  const marca_1 = __importDefault(require("./marca"));
16
- const operacao_1 = __importDefault(require("./operacao"));
12
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
13
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
14
+ const usuario_1 = __importDefault(require("./usuario"));
17
15
  const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
16
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
18
17
  const atributo_1 = __importDefault(require("./atributo"));
19
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
20
- const usuario_1 = __importDefault(require("./usuario"));
18
+ const operacao_1 = __importDefault(require("./operacao"));
19
+ const operacao_item_1 = __importDefault(require("./operacao_item"));
20
+ const empresa_1 = __importDefault(require("./empresa"));
21
21
  exports.default = {
22
- empresa: empresa_1.default,
23
- operacao_item: operacao_item_1.default,
24
- item_variacao: item_variacao_1.default,
25
22
  ecommerce: ecommerce_1.default,
26
- operacao_pagamento: operacao_pagamento_1.default,
23
+ item_variacao_atributo: item_variacao_atributo_1.default,
27
24
  item: item_1.default,
28
- categoria: categoria_1.default,
29
- entidade_endereco: entidade_endereco_1.default,
30
25
  entidade: entidade_1.default,
26
+ categoria: categoria_1.default,
31
27
  marca: marca_1.default,
32
- operacao: operacao_1.default,
28
+ operacao_pagamento: operacao_pagamento_1.default,
29
+ item_variacao: item_variacao_1.default,
30
+ usuario: usuario_1.default,
33
31
  ecommerce_item: ecommerce_item_1.default,
32
+ entidade_endereco: entidade_endereco_1.default,
34
33
  atributo: atributo_1.default,
35
- item_variacao_atributo: item_variacao_atributo_1.default,
36
- usuario: usuario_1.default
34
+ operacao: operacao_1.default,
35
+ operacao_item: operacao_item_1.default,
36
+ empresa: empresa_1.default
37
37
  };
@@ -46,39 +46,6 @@ exports.default = {
46
46
  "fk_reference": null,
47
47
  "pk": false
48
48
  },
49
- {
50
- "name": "preco",
51
- "value": {
52
- "type": "numeric",
53
- "is_null": "NO",
54
- "maxlength": null
55
- },
56
- "fk_table": null,
57
- "fk_reference": null,
58
- "pk": false
59
- },
60
- {
61
- "name": "preco_personalizacao",
62
- "value": {
63
- "type": "numeric",
64
- "is_null": "NO",
65
- "maxlength": null
66
- },
67
- "fk_table": null,
68
- "fk_reference": null,
69
- "pk": false
70
- },
71
- {
72
- "name": "preco_custo",
73
- "value": {
74
- "type": "numeric",
75
- "is_null": "NO",
76
- "maxlength": null
77
- },
78
- "fk_table": null,
79
- "fk_reference": null,
80
- "pk": false
81
- },
82
49
  {
83
50
  "name": "categoria",
84
51
  "value": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-manipulator",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "postgresql database handler",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",