pg-manipulator 1.0.45 → 1.0.47

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.
@@ -17,7 +17,8 @@ export type item_fields = {
17
17
  cest: string;
18
18
  gtin: string;
19
19
  nve: string;
20
- cfop: string;
21
20
  ipi: string;
22
21
  ativo?: boolean;
22
+ cfopi: string;
23
+ cfope: string;
23
24
  };
@@ -17,7 +17,8 @@ export type item_order = {
17
17
  cest?: 'desc' | 'asc';
18
18
  gtin?: 'desc' | 'asc';
19
19
  nve?: 'desc' | 'asc';
20
- cfop?: 'desc' | 'asc';
21
20
  ipi?: 'desc' | 'asc';
22
21
  ativo?: 'desc' | 'asc';
22
+ cfopi?: 'desc' | 'asc';
23
+ cfope?: 'desc' | 'asc';
23
24
  };
@@ -19,9 +19,10 @@ export type item_select = {
19
19
  cest?: string;
20
20
  gtin?: string;
21
21
  nve?: string;
22
- cfop?: string;
23
22
  ipi?: string;
24
23
  ativo?: boolean;
24
+ cfopi?: string;
25
+ cfope?: string;
25
26
  where: item_where;
26
27
  order?: item_order;
27
28
  };
@@ -18,8 +18,9 @@ export type item_update = {
18
18
  cest?: string;
19
19
  gtin?: string;
20
20
  nve?: string;
21
- cfop?: string;
22
21
  ipi?: string;
23
22
  ativo?: boolean;
23
+ cfopi?: string;
24
+ cfope?: string;
24
25
  where: item_where;
25
26
  };
@@ -0,0 +1,6 @@
1
+ export type item_variacao_imagem_fields = {
2
+ id?: number;
3
+ item_variacao: number;
4
+ url: string;
5
+ is_principal?: boolean;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export type item_variacao_imagem_order = {
2
+ id?: 'desc' | 'asc';
3
+ item_variacao?: 'desc' | 'asc';
4
+ url?: 'desc' | 'asc';
5
+ is_principal?: 'desc' | 'asc';
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { item_variacao_imagem_where } from './item_variacao_imagem_where';
2
+ import { item_variacao_imagem_order } from './item_variacao_imagem_order';
3
+ export type item_variacao_imagem_select = {
4
+ id?: number;
5
+ item_variacao?: number;
6
+ url?: string;
7
+ is_principal?: boolean;
8
+ where: item_variacao_imagem_where;
9
+ order?: item_variacao_imagem_order;
10
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { item_variacao_imagem_where } from './item_variacao_imagem_where';
2
+ export type item_variacao_imagem_update = {
3
+ id?: number;
4
+ item_variacao?: number;
5
+ url?: string;
6
+ is_principal?: boolean;
7
+ where: item_variacao_imagem_where;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { where_number, where_string, where_boolean } from '../';
2
+ export type item_variacao_imagem_where = {
3
+ id?: where_number | number;
4
+ item_variacao?: where_number | number;
5
+ url?: where_string | string;
6
+ is_principal?: where_boolean | boolean;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,7 +18,8 @@ export type item_where = {
18
18
  cest?: where_string | string;
19
19
  gtin?: where_string | string;
20
20
  nve?: where_string | string;
21
- cfop?: where_string | string;
22
21
  ipi?: where_string | string;
23
22
  ativo?: where_boolean | boolean;
23
+ cfopi?: where_string | string;
24
+ cfope?: where_string | string;
24
25
  };
@@ -1,37 +1,39 @@
1
1
  import { PoolClient } from 'pg';
2
2
  import { pool_tsx } from '../../@types';
3
- import ecommerce_item from './ecommerce_item';
4
- import marca from './marca';
5
- import entidade from './entidade';
6
- import entidade_endereco from './entidade_endereco';
7
- import ecommerce from './ecommerce';
8
- import usuario from './usuario';
9
- import item_variacao from './item_variacao';
10
- import item_variacao_atributo from './item_variacao_atributo';
11
3
  import operacao_item from './operacao_item';
12
4
  import item from './item';
13
5
  import operacao_pagamento from './operacao_pagamento';
6
+ import entidade from './entidade';
7
+ import item_variacao_atributo from './item_variacao_atributo';
14
8
  import categoria from './categoria';
15
- import operacao from './operacao';
16
9
  import empresa from './empresa';
10
+ import marca from './marca';
11
+ import item_variacao from './item_variacao';
12
+ 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';
17
16
  import atributo from './atributo';
17
+ import entidade_endereco from './entidade_endereco';
18
+ import usuario from './usuario';
18
19
  declare const _default: {
19
20
  query(query_string: string, query_params: Array<any>, transaction?: PoolClient | any): Promise<any>;
20
21
  transaction(callback: pool_tsx): Promise<void>;
21
- ecommerce_item: typeof ecommerce_item;
22
- marca: typeof marca;
23
- entidade: typeof entidade;
24
- entidade_endereco: typeof entidade_endereco;
25
- ecommerce: typeof ecommerce;
26
- usuario: typeof usuario;
27
- item_variacao: typeof item_variacao;
28
- item_variacao_atributo: typeof item_variacao_atributo;
29
22
  operacao_item: typeof operacao_item;
30
23
  item: typeof item;
31
24
  operacao_pagamento: typeof operacao_pagamento;
25
+ entidade: typeof entidade;
26
+ item_variacao_atributo: typeof item_variacao_atributo;
32
27
  categoria: typeof categoria;
33
- operacao: typeof operacao;
34
28
  empresa: typeof empresa;
29
+ marca: typeof marca;
30
+ item_variacao: typeof item_variacao;
31
+ ecommerce: typeof ecommerce;
32
+ item_variacao_imagem: typeof item_variacao_imagem;
33
+ ecommerce_item: typeof ecommerce_item;
34
+ operacao: typeof operacao;
35
35
  atributo: typeof atributo;
36
+ entidade_endereco: typeof entidade_endereco;
37
+ usuario: typeof usuario;
36
38
  };
37
39
  export default _default;
@@ -4,21 +4,22 @@ 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 ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
8
- const marca_1 = __importDefault(require("./marca"));
9
- const entidade_1 = __importDefault(require("./entidade"));
10
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
11
- const ecommerce_1 = __importDefault(require("./ecommerce"));
12
- const usuario_1 = __importDefault(require("./usuario"));
13
- const item_variacao_1 = __importDefault(require("./item_variacao"));
14
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
15
7
  const operacao_item_1 = __importDefault(require("./operacao_item"));
16
8
  const item_1 = __importDefault(require("./item"));
17
9
  const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
10
+ const entidade_1 = __importDefault(require("./entidade"));
11
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
18
12
  const categoria_1 = __importDefault(require("./categoria"));
19
- const operacao_1 = __importDefault(require("./operacao"));
20
13
  const empresa_1 = __importDefault(require("./empresa"));
14
+ const marca_1 = __importDefault(require("./marca"));
15
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
16
+ 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"));
21
20
  const atributo_1 = __importDefault(require("./atributo"));
21
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
22
+ const usuario_1 = __importDefault(require("./usuario"));
22
23
  exports.default = {
23
24
  async query(query_string, query_params, transaction = undefined) {
24
25
  return await database_1.default.query('admin', query_string, query_params, transaction);
@@ -26,19 +27,20 @@ exports.default = {
26
27
  async transaction(callback) {
27
28
  return await database_1.default.transaction('admin', callback);
28
29
  },
29
- ecommerce_item: ecommerce_item_1.default,
30
- marca: marca_1.default,
31
- entidade: entidade_1.default,
32
- entidade_endereco: entidade_endereco_1.default,
33
- ecommerce: ecommerce_1.default,
34
- usuario: usuario_1.default,
35
- item_variacao: item_variacao_1.default,
36
- item_variacao_atributo: item_variacao_atributo_1.default,
37
30
  operacao_item: operacao_item_1.default,
38
31
  item: item_1.default,
39
32
  operacao_pagamento: operacao_pagamento_1.default,
33
+ entidade: entidade_1.default,
34
+ item_variacao_atributo: item_variacao_atributo_1.default,
40
35
  categoria: categoria_1.default,
41
- operacao: operacao_1.default,
42
36
  empresa: empresa_1.default,
43
- atributo: atributo_1.default
37
+ marca: marca_1.default,
38
+ item_variacao: item_variacao_1.default,
39
+ ecommerce: ecommerce_1.default,
40
+ item_variacao_imagem: item_variacao_imagem_1.default,
41
+ ecommerce_item: ecommerce_item_1.default,
42
+ operacao: operacao_1.default,
43
+ atributo: atributo_1.default,
44
+ entidade_endereco: entidade_endereco_1.default,
45
+ usuario: usuario_1.default
44
46
  };
@@ -0,0 +1,13 @@
1
+ import base from '../../base';
2
+ import { PoolClient } from 'pg';
3
+ import { item_variacao_imagem_select } from '../../@types/admin/item_variacao_imagem_select';
4
+ import { item_variacao_imagem_where } from '../../@types/admin/item_variacao_imagem_where';
5
+ import { item_variacao_imagem_update } from '../../@types/admin/item_variacao_imagem_update';
6
+ import { item_variacao_imagem_fields } from '../../@types/admin/item_variacao_imagem_fields';
7
+ export default class item_variacao_imagem extends base {
8
+ static get(fields: item_variacao_imagem_select, transaction?: PoolClient | any): Promise<item_variacao_imagem_fields>;
9
+ static get_all(fields: item_variacao_imagem_select, transaction?: PoolClient | any): Promise<item_variacao_imagem_fields[]>;
10
+ static create(fields: item_variacao_imagem_fields, transaction?: PoolClient | any): Promise<item_variacao_imagem_fields>;
11
+ static update(fields: item_variacao_imagem_update, transaction?: PoolClient | any): Promise<any>;
12
+ static delete(fields: item_variacao_imagem_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 item_variacao_imagem extends base_1.default {
8
+ static async get(fields, transaction = undefined) {
9
+ return await super.b_get('admin', fields, 'item_variacao_imagem', transaction);
10
+ }
11
+ static async get_all(fields, transaction = undefined) {
12
+ return await super.b_get_all('admin', fields, 'item_variacao_imagem', transaction);
13
+ }
14
+ static async create(fields, transaction = undefined) {
15
+ return await super.b_create('admin', fields, 'item_variacao_imagem', transaction);
16
+ }
17
+ static async update(fields, transaction = undefined) {
18
+ return await super.b_update('admin', fields, 'item_variacao_imagem', transaction);
19
+ }
20
+ static async delete(fields, transaction = undefined) {
21
+ return await super.b_delete('admin', fields, 'item_variacao_imagem', transaction);
22
+ }
23
+ }
24
+ exports.default = item_variacao_imagem;
@@ -1,31 +1,5 @@
1
1
  declare const _default: {
2
- ecommerce_item: {
3
- columns: {
4
- name: string;
5
- value: {
6
- type: string;
7
- is_null: string;
8
- maxlength: null;
9
- };
10
- fk_table: string;
11
- fk_reference: string;
12
- pk: boolean;
13
- }[];
14
- fathers: {
15
- name: string;
16
- value: {
17
- type: string;
18
- is_null: string;
19
- maxlength: null;
20
- };
21
- fk_table: string;
22
- fk_reference: string;
23
- pk: boolean;
24
- }[];
25
- childrens: never[];
26
- name: string;
27
- };
28
- marca: {
2
+ operacao_item: {
29
3
  columns: ({
30
4
  name: string;
31
5
  value: {
@@ -47,8 +21,7 @@ declare const _default: {
47
21
  fk_reference: null;
48
22
  pk: boolean;
49
23
  })[];
50
- fathers: never[];
51
- childrens: {
24
+ fathers: {
52
25
  name: string;
53
26
  value: {
54
27
  type: string;
@@ -59,9 +32,10 @@ declare const _default: {
59
32
  fk_reference: string;
60
33
  pk: boolean;
61
34
  }[];
35
+ childrens: never[];
62
36
  name: string;
63
37
  };
64
- entidade: {
38
+ item: {
65
39
  columns: ({
66
40
  name: string;
67
41
  value: {
@@ -83,7 +57,17 @@ declare const _default: {
83
57
  fk_reference: null;
84
58
  pk: boolean;
85
59
  })[];
86
- fathers: never[];
60
+ fathers: {
61
+ name: string;
62
+ value: {
63
+ type: string;
64
+ is_null: string;
65
+ maxlength: null;
66
+ };
67
+ fk_table: string;
68
+ fk_reference: string;
69
+ pk: boolean;
70
+ }[];
87
71
  childrens: {
88
72
  name: string;
89
73
  value: {
@@ -97,7 +81,7 @@ declare const _default: {
97
81
  }[];
98
82
  name: string;
99
83
  };
100
- entidade_endereco: {
84
+ operacao_pagamento: {
101
85
  columns: ({
102
86
  name: string;
103
87
  value: {
@@ -133,7 +117,7 @@ declare const _default: {
133
117
  childrens: never[];
134
118
  name: string;
135
119
  };
136
- ecommerce: {
120
+ entidade: {
137
121
  columns: ({
138
122
  name: string;
139
123
  value: {
@@ -155,7 +139,8 @@ declare const _default: {
155
139
  fk_reference: null;
156
140
  pk: boolean;
157
141
  })[];
158
- fathers: {
142
+ fathers: never[];
143
+ childrens: {
159
144
  name: string;
160
145
  value: {
161
146
  type: string;
@@ -166,7 +151,21 @@ declare const _default: {
166
151
  fk_reference: string;
167
152
  pk: boolean;
168
153
  }[];
169
- childrens: {
154
+ name: string;
155
+ };
156
+ item_variacao_atributo: {
157
+ columns: {
158
+ name: string;
159
+ value: {
160
+ type: string;
161
+ is_null: string;
162
+ maxlength: null;
163
+ };
164
+ fk_table: string;
165
+ fk_reference: string;
166
+ pk: boolean;
167
+ }[];
168
+ fathers: {
170
169
  name: string;
171
170
  value: {
172
171
  type: string;
@@ -177,9 +176,10 @@ declare const _default: {
177
176
  fk_reference: string;
178
177
  pk: boolean;
179
178
  }[];
179
+ childrens: never[];
180
180
  name: string;
181
181
  };
182
- usuario: {
182
+ categoria: {
183
183
  columns: ({
184
184
  name: string;
185
185
  value: {
@@ -202,10 +202,20 @@ declare const _default: {
202
202
  pk: boolean;
203
203
  })[];
204
204
  fathers: never[];
205
- childrens: never[];
205
+ childrens: {
206
+ name: string;
207
+ value: {
208
+ type: string;
209
+ is_null: string;
210
+ maxlength: null;
211
+ };
212
+ fk_table: string;
213
+ fk_reference: string;
214
+ pk: boolean;
215
+ }[];
206
216
  name: string;
207
217
  };
208
- item_variacao: {
218
+ empresa: {
209
219
  columns: ({
210
220
  name: string;
211
221
  value: {
@@ -227,7 +237,8 @@ declare const _default: {
227
237
  fk_reference: null;
228
238
  pk: boolean;
229
239
  })[];
230
- fathers: {
240
+ fathers: never[];
241
+ childrens: {
231
242
  name: string;
232
243
  value: {
233
244
  type: string;
@@ -238,7 +249,10 @@ declare const _default: {
238
249
  fk_reference: string;
239
250
  pk: boolean;
240
251
  }[];
241
- childrens: {
252
+ name: string;
253
+ };
254
+ marca: {
255
+ columns: ({
242
256
  name: string;
243
257
  value: {
244
258
  type: string;
@@ -248,22 +262,19 @@ declare const _default: {
248
262
  fk_table: string;
249
263
  fk_reference: string;
250
264
  pk: boolean;
251
- }[];
252
- name: string;
253
- };
254
- item_variacao_atributo: {
255
- columns: {
265
+ } | {
256
266
  name: string;
257
267
  value: {
258
268
  type: string;
259
269
  is_null: string;
260
270
  maxlength: null;
261
271
  };
262
- fk_table: string;
263
- fk_reference: string;
272
+ fk_table: null;
273
+ fk_reference: null;
264
274
  pk: boolean;
265
- }[];
266
- fathers: {
275
+ })[];
276
+ fathers: never[];
277
+ childrens: {
267
278
  name: string;
268
279
  value: {
269
280
  type: string;
@@ -274,10 +285,9 @@ declare const _default: {
274
285
  fk_reference: string;
275
286
  pk: boolean;
276
287
  }[];
277
- childrens: never[];
278
288
  name: string;
279
289
  };
280
- operacao_item: {
290
+ item_variacao: {
281
291
  columns: ({
282
292
  name: string;
283
293
  value: {
@@ -310,10 +320,20 @@ declare const _default: {
310
320
  fk_reference: string;
311
321
  pk: boolean;
312
322
  }[];
313
- childrens: never[];
323
+ childrens: {
324
+ name: string;
325
+ value: {
326
+ type: string;
327
+ is_null: string;
328
+ maxlength: null;
329
+ };
330
+ fk_table: string;
331
+ fk_reference: string;
332
+ pk: boolean;
333
+ }[];
314
334
  name: string;
315
335
  };
316
- item: {
336
+ ecommerce: {
317
337
  columns: ({
318
338
  name: string;
319
339
  value: {
@@ -359,7 +379,7 @@ declare const _default: {
359
379
  }[];
360
380
  name: string;
361
381
  };
362
- operacao_pagamento: {
382
+ item_variacao_imagem: {
363
383
  columns: ({
364
384
  name: string;
365
385
  value: {
@@ -395,8 +415,8 @@ declare const _default: {
395
415
  childrens: never[];
396
416
  name: string;
397
417
  };
398
- categoria: {
399
- columns: ({
418
+ ecommerce_item: {
419
+ columns: {
400
420
  name: string;
401
421
  value: {
402
422
  type: string;
@@ -406,19 +426,8 @@ declare const _default: {
406
426
  fk_table: string;
407
427
  fk_reference: string;
408
428
  pk: boolean;
409
- } | {
410
- name: string;
411
- value: {
412
- type: string;
413
- is_null: string;
414
- maxlength: null;
415
- };
416
- fk_table: null;
417
- fk_reference: null;
418
- pk: boolean;
419
- })[];
420
- fathers: never[];
421
- childrens: {
429
+ }[];
430
+ fathers: {
422
431
  name: string;
423
432
  value: {
424
433
  type: string;
@@ -429,6 +438,7 @@ declare const _default: {
429
438
  fk_reference: string;
430
439
  pk: boolean;
431
440
  }[];
441
+ childrens: never[];
432
442
  name: string;
433
443
  };
434
444
  operacao: {
@@ -477,7 +487,7 @@ declare const _default: {
477
487
  }[];
478
488
  name: string;
479
489
  };
480
- empresa: {
490
+ atributo: {
481
491
  columns: ({
482
492
  name: string;
483
493
  value: {
@@ -513,7 +523,7 @@ declare const _default: {
513
523
  }[];
514
524
  name: string;
515
525
  };
516
- atributo: {
526
+ entidade_endereco: {
517
527
  columns: ({
518
528
  name: string;
519
529
  value: {
@@ -535,8 +545,7 @@ declare const _default: {
535
545
  fk_reference: null;
536
546
  pk: boolean;
537
547
  })[];
538
- fathers: never[];
539
- childrens: {
548
+ fathers: {
540
549
  name: string;
541
550
  value: {
542
551
  type: string;
@@ -547,6 +556,33 @@ declare const _default: {
547
556
  fk_reference: string;
548
557
  pk: boolean;
549
558
  }[];
559
+ childrens: never[];
560
+ name: string;
561
+ };
562
+ usuario: {
563
+ columns: ({
564
+ name: string;
565
+ value: {
566
+ type: string;
567
+ is_null: string;
568
+ maxlength: null;
569
+ };
570
+ fk_table: string;
571
+ fk_reference: string;
572
+ pk: boolean;
573
+ } | {
574
+ name: string;
575
+ value: {
576
+ type: string;
577
+ is_null: string;
578
+ maxlength: null;
579
+ };
580
+ fk_table: null;
581
+ fk_reference: null;
582
+ pk: boolean;
583
+ })[];
584
+ fathers: never[];
585
+ childrens: never[];
550
586
  name: string;
551
587
  };
552
588
  };
@@ -3,35 +3,37 @@ 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 ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
7
- const marca_1 = __importDefault(require("./marca"));
8
- const entidade_1 = __importDefault(require("./entidade"));
9
- const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
10
- const ecommerce_1 = __importDefault(require("./ecommerce"));
11
- const usuario_1 = __importDefault(require("./usuario"));
12
- const item_variacao_1 = __importDefault(require("./item_variacao"));
13
- const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
14
6
  const operacao_item_1 = __importDefault(require("./operacao_item"));
15
7
  const item_1 = __importDefault(require("./item"));
16
8
  const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
9
+ const entidade_1 = __importDefault(require("./entidade"));
10
+ const item_variacao_atributo_1 = __importDefault(require("./item_variacao_atributo"));
17
11
  const categoria_1 = __importDefault(require("./categoria"));
18
- const operacao_1 = __importDefault(require("./operacao"));
19
12
  const empresa_1 = __importDefault(require("./empresa"));
13
+ const marca_1 = __importDefault(require("./marca"));
14
+ const item_variacao_1 = __importDefault(require("./item_variacao"));
15
+ 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"));
20
19
  const atributo_1 = __importDefault(require("./atributo"));
20
+ const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
21
+ const usuario_1 = __importDefault(require("./usuario"));
21
22
  exports.default = {
22
- ecommerce_item: ecommerce_item_1.default,
23
- marca: marca_1.default,
24
- entidade: entidade_1.default,
25
- entidade_endereco: entidade_endereco_1.default,
26
- ecommerce: ecommerce_1.default,
27
- usuario: usuario_1.default,
28
- item_variacao: item_variacao_1.default,
29
- item_variacao_atributo: item_variacao_atributo_1.default,
30
23
  operacao_item: operacao_item_1.default,
31
24
  item: item_1.default,
32
25
  operacao_pagamento: operacao_pagamento_1.default,
26
+ entidade: entidade_1.default,
27
+ item_variacao_atributo: item_variacao_atributo_1.default,
33
28
  categoria: categoria_1.default,
34
- operacao: operacao_1.default,
35
29
  empresa: empresa_1.default,
36
- atributo: atributo_1.default
30
+ marca: marca_1.default,
31
+ item_variacao: item_variacao_1.default,
32
+ ecommerce: ecommerce_1.default,
33
+ item_variacao_imagem: item_variacao_imagem_1.default,
34
+ ecommerce_item: ecommerce_item_1.default,
35
+ operacao: operacao_1.default,
36
+ atributo: atributo_1.default,
37
+ entidade_endereco: entidade_endereco_1.default,
38
+ usuario: usuario_1.default
37
39
  };
@@ -201,7 +201,7 @@ exports.default = {
201
201
  "pk": false
202
202
  },
203
203
  {
204
- "name": "cfop",
204
+ "name": "ipi",
205
205
  "value": {
206
206
  "type": "character varying",
207
207
  "is_null": "NO",
@@ -212,7 +212,18 @@ exports.default = {
212
212
  "pk": false
213
213
  },
214
214
  {
215
- "name": "ipi",
215
+ "name": "ativo",
216
+ "value": {
217
+ "type": "boolean",
218
+ "is_null": "YES",
219
+ "maxlength": null
220
+ },
221
+ "fk_table": null,
222
+ "fk_reference": null,
223
+ "pk": false
224
+ },
225
+ {
226
+ "name": "cfopi",
216
227
  "value": {
217
228
  "type": "character varying",
218
229
  "is_null": "NO",
@@ -223,10 +234,10 @@ exports.default = {
223
234
  "pk": false
224
235
  },
225
236
  {
226
- "name": "ativo",
237
+ "name": "cfope",
227
238
  "value": {
228
- "type": "boolean",
229
- "is_null": "YES",
239
+ "type": "character varying",
240
+ "is_null": "NO",
230
241
  "maxlength": null
231
242
  },
232
243
  "fk_table": null,
@@ -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,65 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ "columns": [
5
+ {
6
+ "name": "id",
7
+ "value": {
8
+ "type": "integer",
9
+ "is_null": "YES",
10
+ "maxlength": null
11
+ },
12
+ "fk_table": "item_variacao_imagem",
13
+ "fk_reference": "id",
14
+ "pk": true
15
+ },
16
+ {
17
+ "name": "item_variacao",
18
+ "value": {
19
+ "type": "integer",
20
+ "is_null": "NO",
21
+ "maxlength": null
22
+ },
23
+ "fk_table": "item_variacao",
24
+ "fk_reference": "id",
25
+ "pk": false
26
+ },
27
+ {
28
+ "name": "url",
29
+ "value": {
30
+ "type": "text",
31
+ "is_null": "NO",
32
+ "maxlength": null
33
+ },
34
+ "fk_table": null,
35
+ "fk_reference": null,
36
+ "pk": false
37
+ },
38
+ {
39
+ "name": "is_principal",
40
+ "value": {
41
+ "type": "boolean",
42
+ "is_null": "YES",
43
+ "maxlength": null
44
+ },
45
+ "fk_table": null,
46
+ "fk_reference": null,
47
+ "pk": false
48
+ }
49
+ ],
50
+ "fathers": [
51
+ {
52
+ "name": "item_variacao",
53
+ "value": {
54
+ "type": "integer",
55
+ "is_null": "NO",
56
+ "maxlength": null
57
+ },
58
+ "fk_table": "item_variacao",
59
+ "fk_reference": "id",
60
+ "pk": false
61
+ }
62
+ ],
63
+ "childrens": [],
64
+ "name": "item_variacao_imagem"
65
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-manipulator",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "description": "postgresql database handler",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",