pg-manipulator 1.0.53 → 1.0.54

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.
@@ -15,4 +15,5 @@ export type entidade_endereco_fields = {
15
15
  numero: string;
16
16
  complemento: string;
17
17
  telefone: string;
18
+ cidade?: string;
18
19
  };
@@ -15,4 +15,5 @@ export type entidade_endereco_order = {
15
15
  numero?: 'desc' | 'asc';
16
16
  complemento?: 'desc' | 'asc';
17
17
  telefone?: 'desc' | 'asc';
18
+ cidade?: 'desc' | 'asc';
18
19
  };
@@ -17,6 +17,7 @@ export type entidade_endereco_select = {
17
17
  numero?: string;
18
18
  complemento?: string;
19
19
  telefone?: string;
20
+ cidade?: string;
20
21
  where: entidade_endereco_where;
21
22
  order?: entidade_endereco_order;
22
23
  };
@@ -16,5 +16,6 @@ export type entidade_endereco_update = {
16
16
  numero?: string;
17
17
  complemento?: string;
18
18
  telefone?: string;
19
+ cidade?: string;
19
20
  where: entidade_endereco_where;
20
21
  };
@@ -16,4 +16,5 @@ export type entidade_endereco_where = {
16
16
  numero?: where_string | string;
17
17
  complemento?: where_string | string;
18
18
  telefone?: where_string | string;
19
+ cidade?: where_string | string;
19
20
  };
@@ -1,37 +1,37 @@
1
1
  import { PoolClient } from 'pg';
2
2
  import { pool_tsx } from '../../@types';
3
- import entidade from './entidade';
4
- import item_variacao from './item_variacao';
5
- import operacao_pagamento from './operacao_pagamento';
6
- import categoria from './categoria';
7
3
  import operacao from './operacao';
4
+ import usuario from './usuario';
5
+ import operacao_pagamento from './operacao_pagamento';
8
6
  import item_variacao_atributo from './item_variacao_atributo';
7
+ import item from './item';
8
+ import categoria from './categoria';
9
9
  import entidade_cartao from './entidade_cartao';
10
- import atributo from './atributo';
11
- import operacao_item from './operacao_item';
12
10
  import entidade_endereco from './entidade_endereco';
13
- import item_variacao_imagem from './item_variacao_imagem';
11
+ import operacao_item from './operacao_item';
12
+ import atributo from './atributo';
14
13
  import marca from './marca';
14
+ import item_variacao from './item_variacao';
15
+ import item_variacao_imagem from './item_variacao_imagem';
16
+ import entidade from './entidade';
15
17
  import empresa from './empresa';
16
- import usuario from './usuario';
17
- import item from './item';
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
- entidade: typeof entidade;
22
- item_variacao: typeof item_variacao;
23
- operacao_pagamento: typeof operacao_pagamento;
24
- categoria: typeof categoria;
25
21
  operacao: typeof operacao;
22
+ usuario: typeof usuario;
23
+ operacao_pagamento: typeof operacao_pagamento;
26
24
  item_variacao_atributo: typeof item_variacao_atributo;
25
+ item: typeof item;
26
+ categoria: typeof categoria;
27
27
  entidade_cartao: typeof entidade_cartao;
28
- atributo: typeof atributo;
29
- operacao_item: typeof operacao_item;
30
28
  entidade_endereco: typeof entidade_endereco;
31
- item_variacao_imagem: typeof item_variacao_imagem;
29
+ operacao_item: typeof operacao_item;
30
+ atributo: typeof atributo;
32
31
  marca: typeof marca;
32
+ item_variacao: typeof item_variacao;
33
+ item_variacao_imagem: typeof item_variacao_imagem;
34
+ entidade: typeof entidade;
33
35
  empresa: typeof empresa;
34
- usuario: typeof usuario;
35
- item: typeof item;
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 entidade_1 = __importDefault(require("./entidade"));
8
- const item_variacao_1 = __importDefault(require("./item_variacao"));
9
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
10
- const categoria_1 = __importDefault(require("./categoria"));
11
7
  const operacao_1 = __importDefault(require("./operacao"));
8
+ const usuario_1 = __importDefault(require("./usuario"));
9
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
12
10
  const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
11
+ const item_1 = __importDefault(require("./item"));
12
+ const categoria_1 = __importDefault(require("./categoria"));
13
13
  const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
14
- const atributo_1 = __importDefault(require("./atributo"));
15
- const operacao_item_1 = __importDefault(require("./operacao_item"));
16
14
  const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
17
- const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
15
+ const operacao_item_1 = __importDefault(require("./operacao_item"));
16
+ const atributo_1 = __importDefault(require("./atributo"));
18
17
  const marca_1 = __importDefault(require("./marca"));
18
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
19
+ const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
20
+ const entidade_1 = __importDefault(require("./entidade"));
19
21
  const empresa_1 = __importDefault(require("./empresa"));
20
- const usuario_1 = __importDefault(require("./usuario"));
21
- const item_1 = __importDefault(require("./item"));
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
- entidade: entidade_1.default,
30
- item_variacao: item_variacao_1.default,
31
- operacao_pagamento: operacao_pagamento_1.default,
32
- categoria: categoria_1.default,
33
29
  operacao: operacao_1.default,
30
+ usuario: usuario_1.default,
31
+ operacao_pagamento: operacao_pagamento_1.default,
34
32
  item_variacao_atributo: item_variacao_atributo_1.default,
33
+ item: item_1.default,
34
+ categoria: categoria_1.default,
35
35
  entidade_cartao: entidade_cartao_1.default,
36
- atributo: atributo_1.default,
37
- operacao_item: operacao_item_1.default,
38
36
  entidade_endereco: entidade_endereco_1.default,
39
- item_variacao_imagem: item_variacao_imagem_1.default,
37
+ operacao_item: operacao_item_1.default,
38
+ atributo: atributo_1.default,
40
39
  marca: marca_1.default,
41
- empresa: empresa_1.default,
42
- usuario: usuario_1.default,
43
- item: item_1.default
40
+ item_variacao: item_variacao_1.default,
41
+ item_variacao_imagem: item_variacao_imagem_1.default,
42
+ entidade: entidade_1.default,
43
+ empresa: empresa_1.default
44
44
  };
@@ -177,6 +177,17 @@ exports.default = {
177
177
  "fk_table": null,
178
178
  "fk_reference": null,
179
179
  "pk": false
180
+ },
181
+ {
182
+ "name": "cidade",
183
+ "value": {
184
+ "type": "character varying",
185
+ "is_null": "YES",
186
+ "maxlength": null
187
+ },
188
+ "fk_table": null,
189
+ "fk_reference": null,
190
+ "pk": false
180
191
  }
181
192
  ],
182
193
  "fathers": [
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
- entidade: {
2
+ operacao: {
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,10 +32,7 @@ declare const _default: {
33
32
  fk_reference: string;
34
33
  pk: boolean;
35
34
  }[];
36
- name: string;
37
- };
38
- item_variacao: {
39
- columns: ({
35
+ childrens: {
40
36
  name: string;
41
37
  value: {
42
38
  type: string;
@@ -46,18 +42,11 @@ declare const _default: {
46
42
  fk_table: string;
47
43
  fk_reference: string;
48
44
  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: {
45
+ }[];
46
+ name: string;
47
+ };
48
+ usuario: {
49
+ columns: ({
61
50
  name: string;
62
51
  value: {
63
52
  type: string;
@@ -67,18 +56,19 @@ declare const _default: {
67
56
  fk_table: string;
68
57
  fk_reference: string;
69
58
  pk: boolean;
70
- }[];
71
- childrens: {
59
+ } | {
72
60
  name: string;
73
61
  value: {
74
62
  type: string;
75
63
  is_null: string;
76
64
  maxlength: null;
77
65
  };
78
- fk_table: string;
79
- fk_reference: string;
66
+ fk_table: null;
67
+ fk_reference: null;
80
68
  pk: boolean;
81
- }[];
69
+ })[];
70
+ fathers: never[];
71
+ childrens: never[];
82
72
  name: string;
83
73
  };
84
74
  operacao_pagamento: {
@@ -117,8 +107,8 @@ declare const _default: {
117
107
  childrens: never[];
118
108
  name: string;
119
109
  };
120
- categoria: {
121
- columns: ({
110
+ item_variacao_atributo: {
111
+ columns: {
122
112
  name: string;
123
113
  value: {
124
114
  type: string;
@@ -128,19 +118,8 @@ declare const _default: {
128
118
  fk_table: string;
129
119
  fk_reference: string;
130
120
  pk: boolean;
131
- } | {
132
- name: string;
133
- value: {
134
- type: string;
135
- is_null: string;
136
- maxlength: null;
137
- };
138
- fk_table: null;
139
- fk_reference: null;
140
- pk: boolean;
141
- })[];
142
- fathers: never[];
143
- childrens: {
121
+ }[];
122
+ fathers: {
144
123
  name: string;
145
124
  value: {
146
125
  type: string;
@@ -151,9 +130,10 @@ declare const _default: {
151
130
  fk_reference: string;
152
131
  pk: boolean;
153
132
  }[];
133
+ childrens: never[];
154
134
  name: string;
155
135
  };
156
- operacao: {
136
+ item: {
157
137
  columns: ({
158
138
  name: string;
159
139
  value: {
@@ -199,8 +179,8 @@ declare const _default: {
199
179
  }[];
200
180
  name: string;
201
181
  };
202
- item_variacao_atributo: {
203
- columns: {
182
+ categoria: {
183
+ columns: ({
204
184
  name: string;
205
185
  value: {
206
186
  type: string;
@@ -210,8 +190,19 @@ declare const _default: {
210
190
  fk_table: string;
211
191
  fk_reference: string;
212
192
  pk: boolean;
213
- }[];
214
- fathers: {
193
+ } | {
194
+ name: string;
195
+ value: {
196
+ type: string;
197
+ is_null: string;
198
+ maxlength: null;
199
+ };
200
+ fk_table: null;
201
+ fk_reference: null;
202
+ pk: boolean;
203
+ })[];
204
+ fathers: never[];
205
+ childrens: {
215
206
  name: string;
216
207
  value: {
217
208
  type: string;
@@ -222,7 +213,6 @@ declare const _default: {
222
213
  fk_reference: string;
223
214
  pk: boolean;
224
215
  }[];
225
- childrens: never[];
226
216
  name: string;
227
217
  };
228
218
  entidade_cartao: {
@@ -271,7 +261,7 @@ declare const _default: {
271
261
  }[];
272
262
  name: string;
273
263
  };
274
- atributo: {
264
+ entidade_endereco: {
275
265
  columns: ({
276
266
  name: string;
277
267
  value: {
@@ -293,7 +283,17 @@ declare const _default: {
293
283
  fk_reference: null;
294
284
  pk: boolean;
295
285
  })[];
296
- fathers: never[];
286
+ fathers: {
287
+ name: string;
288
+ value: {
289
+ type: string;
290
+ is_null: string;
291
+ maxlength: null;
292
+ };
293
+ fk_table: string;
294
+ fk_reference: string;
295
+ pk: boolean;
296
+ }[];
297
297
  childrens: {
298
298
  name: string;
299
299
  value: {
@@ -343,7 +343,7 @@ declare const _default: {
343
343
  childrens: never[];
344
344
  name: string;
345
345
  };
346
- entidade_endereco: {
346
+ atributo: {
347
347
  columns: ({
348
348
  name: string;
349
349
  value: {
@@ -365,17 +365,7 @@ declare const _default: {
365
365
  fk_reference: null;
366
366
  pk: boolean;
367
367
  })[];
368
- fathers: {
369
- name: string;
370
- value: {
371
- type: string;
372
- is_null: string;
373
- maxlength: null;
374
- };
375
- fk_table: string;
376
- fk_reference: string;
377
- pk: boolean;
378
- }[];
368
+ fathers: never[];
379
369
  childrens: {
380
370
  name: string;
381
371
  value: {
@@ -389,7 +379,7 @@ declare const _default: {
389
379
  }[];
390
380
  name: string;
391
381
  };
392
- item_variacao_imagem: {
382
+ marca: {
393
383
  columns: ({
394
384
  name: string;
395
385
  value: {
@@ -411,7 +401,8 @@ declare const _default: {
411
401
  fk_reference: null;
412
402
  pk: boolean;
413
403
  })[];
414
- fathers: {
404
+ fathers: never[];
405
+ childrens: {
415
406
  name: string;
416
407
  value: {
417
408
  type: string;
@@ -422,10 +413,9 @@ declare const _default: {
422
413
  fk_reference: string;
423
414
  pk: boolean;
424
415
  }[];
425
- childrens: never[];
426
416
  name: string;
427
417
  };
428
- marca: {
418
+ item_variacao: {
429
419
  columns: ({
430
420
  name: string;
431
421
  value: {
@@ -447,7 +437,17 @@ declare const _default: {
447
437
  fk_reference: null;
448
438
  pk: boolean;
449
439
  })[];
450
- fathers: never[];
440
+ fathers: {
441
+ name: string;
442
+ value: {
443
+ type: string;
444
+ is_null: string;
445
+ maxlength: null;
446
+ };
447
+ fk_table: string;
448
+ fk_reference: string;
449
+ pk: boolean;
450
+ }[];
451
451
  childrens: {
452
452
  name: string;
453
453
  value: {
@@ -461,7 +461,7 @@ declare const _default: {
461
461
  }[];
462
462
  name: string;
463
463
  };
464
- empresa: {
464
+ item_variacao_imagem: {
465
465
  columns: ({
466
466
  name: string;
467
467
  value: {
@@ -483,12 +483,7 @@ declare const _default: {
483
483
  fk_reference: null;
484
484
  pk: boolean;
485
485
  })[];
486
- fathers: never[];
487
- childrens: never[];
488
- name: string;
489
- };
490
- usuario: {
491
- columns: ({
486
+ fathers: {
492
487
  name: string;
493
488
  value: {
494
489
  type: string;
@@ -498,22 +493,11 @@ declare const _default: {
498
493
  fk_table: string;
499
494
  fk_reference: string;
500
495
  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[];
496
+ }[];
513
497
  childrens: never[];
514
498
  name: string;
515
499
  };
516
- item: {
500
+ entidade: {
517
501
  columns: ({
518
502
  name: string;
519
503
  value: {
@@ -535,7 +519,8 @@ declare const _default: {
535
519
  fk_reference: null;
536
520
  pk: boolean;
537
521
  })[];
538
- fathers: {
522
+ fathers: never[];
523
+ childrens: {
539
524
  name: string;
540
525
  value: {
541
526
  type: string;
@@ -546,7 +531,10 @@ declare const _default: {
546
531
  fk_reference: string;
547
532
  pk: boolean;
548
533
  }[];
549
- childrens: {
534
+ name: string;
535
+ };
536
+ empresa: {
537
+ columns: ({
550
538
  name: string;
551
539
  value: {
552
540
  type: string;
@@ -556,7 +544,19 @@ declare const _default: {
556
544
  fk_table: string;
557
545
  fk_reference: string;
558
546
  pk: boolean;
559
- }[];
547
+ } | {
548
+ name: string;
549
+ value: {
550
+ type: string;
551
+ is_null: string;
552
+ maxlength: null;
553
+ };
554
+ fk_table: null;
555
+ fk_reference: null;
556
+ pk: boolean;
557
+ })[];
558
+ fathers: never[];
559
+ childrens: never[];
560
560
  name: string;
561
561
  };
562
562
  };
@@ -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 entidade_1 = __importDefault(require("./entidade"));
7
- const item_variacao_1 = __importDefault(require("./item_variacao"));
8
- const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
9
- const categoria_1 = __importDefault(require("./categoria"));
10
6
  const operacao_1 = __importDefault(require("./operacao"));
7
+ const usuario_1 = __importDefault(require("./usuario"));
8
+ const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
11
9
  const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
10
+ const item_1 = __importDefault(require("./item"));
11
+ const categoria_1 = __importDefault(require("./categoria"));
12
12
  const entidade_cartao_1 = __importDefault(require("./entidade_cartao"));
13
- const atributo_1 = __importDefault(require("./atributo"));
14
- const operacao_item_1 = __importDefault(require("./operacao_item"));
15
13
  const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
16
- const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
14
+ const operacao_item_1 = __importDefault(require("./operacao_item"));
15
+ const atributo_1 = __importDefault(require("./atributo"));
17
16
  const marca_1 = __importDefault(require("./marca"));
17
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
18
+ const item_variacao_imagem_1 = __importDefault(require("./item_variacao_imagem"));
19
+ const entidade_1 = __importDefault(require("./entidade"));
18
20
  const empresa_1 = __importDefault(require("./empresa"));
19
- const usuario_1 = __importDefault(require("./usuario"));
20
- const item_1 = __importDefault(require("./item"));
21
21
  exports.default = {
22
- entidade: entidade_1.default,
23
- item_variacao: item_variacao_1.default,
24
- operacao_pagamento: operacao_pagamento_1.default,
25
- categoria: categoria_1.default,
26
22
  operacao: operacao_1.default,
23
+ usuario: usuario_1.default,
24
+ operacao_pagamento: operacao_pagamento_1.default,
27
25
  item_variacao_atributo: item_variacao_atributo_1.default,
26
+ item: item_1.default,
27
+ categoria: categoria_1.default,
28
28
  entidade_cartao: entidade_cartao_1.default,
29
- atributo: atributo_1.default,
30
- operacao_item: operacao_item_1.default,
31
29
  entidade_endereco: entidade_endereco_1.default,
32
- item_variacao_imagem: item_variacao_imagem_1.default,
30
+ operacao_item: operacao_item_1.default,
31
+ atributo: atributo_1.default,
33
32
  marca: marca_1.default,
34
- empresa: empresa_1.default,
35
- usuario: usuario_1.default,
36
- item: item_1.default
33
+ item_variacao: item_variacao_1.default,
34
+ item_variacao_imagem: item_variacao_imagem_1.default,
35
+ entidade: entidade_1.default,
36
+ empresa: empresa_1.default
37
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-manipulator",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "postgresql database handler",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",