pg-manipulator 1.0.40 → 1.0.41
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/{atributos_fields.d.ts → atributo_fields.d.ts} +1 -1
- package/dist/@types/admin/{atributos_order.d.ts → atributo_order.d.ts} +1 -1
- package/dist/@types/admin/atributo_select.d.ts +12 -0
- package/dist/@types/admin/{atributos_update.d.ts → atributo_update.d.ts} +3 -3
- package/dist/@types/admin/{atributos_where.d.ts → atributo_where.d.ts} +1 -1
- package/dist/@types/admin/ecommerce_fields.d.ts +1 -0
- package/dist/@types/admin/ecommerce_order.d.ts +1 -0
- package/dist/@types/admin/ecommerce_select.d.ts +1 -0
- package/dist/@types/admin/ecommerce_update.d.ts +1 -0
- package/dist/@types/admin/ecommerce_where.d.ts +1 -0
- package/dist/class/admin/atributo.d.ts +13 -0
- package/dist/class/admin/{atributos.js → atributo.js} +7 -7
- package/dist/class/admin/index.d.ts +18 -18
- package/dist/class/admin/index.js +18 -18
- package/dist/mapping/admin/{atributos.js → atributo.js} +2 -2
- package/dist/mapping/admin/ecommerce.d.ts +11 -1
- package/dist/mapping/admin/ecommerce.js +24 -1
- package/dist/mapping/admin/empresa.d.ts +11 -1
- package/dist/mapping/admin/empresa.js +13 -1
- package/dist/mapping/admin/index.d.ts +71 -51
- package/dist/mapping/admin/index.js +18 -18
- package/package.json +1 -1
- package/dist/@types/admin/atributos_select.d.ts +0 -12
- package/dist/@types/admin/unidade_medida_fields.d.ts +0 -9
- package/dist/@types/admin/unidade_medida_fields.js +0 -2
- package/dist/@types/admin/unidade_medida_order.d.ts +0 -9
- package/dist/@types/admin/unidade_medida_order.js +0 -2
- package/dist/@types/admin/unidade_medida_select.d.ts +0 -13
- package/dist/@types/admin/unidade_medida_select.js +0 -2
- package/dist/@types/admin/unidade_medida_update.d.ts +0 -11
- package/dist/@types/admin/unidade_medida_update.js +0 -2
- package/dist/@types/admin/unidade_medida_where.d.ts +0 -10
- package/dist/@types/admin/unidade_medida_where.js +0 -2
- package/dist/class/admin/atributos.d.ts +0 -13
- /package/dist/@types/admin/{atributos_fields.js → atributo_fields.js} +0 -0
- /package/dist/@types/admin/{atributos_order.js → atributo_order.js} +0 -0
- /package/dist/@types/admin/{atributos_select.js → atributo_select.js} +0 -0
- /package/dist/@types/admin/{atributos_update.js → atributo_update.js} +0 -0
- /package/dist/@types/admin/{atributos_where.js → atributo_where.js} +0 -0
- /package/dist/mapping/admin/{atributos.d.ts → atributo.d.ts} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { atributo_where } from './atributo_where';
|
|
2
|
+
import { atributo_order } from './atributo_order';
|
|
3
|
+
export type atributo_select = {
|
|
4
|
+
id?: number;
|
|
5
|
+
tipo?: string;
|
|
6
|
+
nome?: string;
|
|
7
|
+
descricao?: string;
|
|
8
|
+
valor?: string;
|
|
9
|
+
situacao?: boolean;
|
|
10
|
+
where: atributo_where;
|
|
11
|
+
order?: atributo_order;
|
|
12
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { atributo_where } from './atributo_where';
|
|
2
|
+
export type atributo_update = {
|
|
3
3
|
id?: number;
|
|
4
4
|
tipo?: string;
|
|
5
5
|
nome?: string;
|
|
6
6
|
descricao?: string;
|
|
7
7
|
valor?: string;
|
|
8
8
|
situacao?: boolean;
|
|
9
|
-
where:
|
|
9
|
+
where: atributo_where;
|
|
10
10
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { atributo_select } from '../../@types/admin/atributo_select';
|
|
4
|
+
import { atributo_where } from '../../@types/admin/atributo_where';
|
|
5
|
+
import { atributo_update } from '../../@types/admin/atributo_update';
|
|
6
|
+
import { atributo_fields } from '../../@types/admin/atributo_fields';
|
|
7
|
+
export default class atributo extends base {
|
|
8
|
+
static get(fields: atributo_select, transaction?: PoolClient | any): Promise<atributo_fields>;
|
|
9
|
+
static get_all(fields: atributo_select, transaction?: PoolClient | any): Promise<atributo_fields[]>;
|
|
10
|
+
static create(fields: atributo_fields, transaction?: PoolClient | any): Promise<atributo_fields>;
|
|
11
|
+
static update(fields: atributo_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: atributo_where, transaction?: PoolClient | any): Promise<any>;
|
|
13
|
+
}
|
|
@@ -4,21 +4,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const base_1 = __importDefault(require("../../base"));
|
|
7
|
-
class
|
|
7
|
+
class atributo extends base_1.default {
|
|
8
8
|
static async get(fields, transaction = undefined) {
|
|
9
|
-
return await super.b_get('admin', fields, '
|
|
9
|
+
return await super.b_get('admin', fields, 'atributo', transaction);
|
|
10
10
|
}
|
|
11
11
|
static async get_all(fields, transaction = undefined) {
|
|
12
|
-
return await super.b_get_all('admin', fields, '
|
|
12
|
+
return await super.b_get_all('admin', fields, 'atributo', transaction);
|
|
13
13
|
}
|
|
14
14
|
static async create(fields, transaction = undefined) {
|
|
15
|
-
return await super.b_create('admin', fields, '
|
|
15
|
+
return await super.b_create('admin', fields, 'atributo', transaction);
|
|
16
16
|
}
|
|
17
17
|
static async update(fields, transaction = undefined) {
|
|
18
|
-
return await super.b_update('admin', fields, '
|
|
18
|
+
return await super.b_update('admin', fields, 'atributo', transaction);
|
|
19
19
|
}
|
|
20
20
|
static async delete(fields, transaction = undefined) {
|
|
21
|
-
return await super.b_delete('admin', fields, '
|
|
21
|
+
return await super.b_delete('admin', fields, 'atributo', transaction);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.default =
|
|
24
|
+
exports.default = atributo;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { PoolClient } from 'pg';
|
|
2
2
|
import { pool_tsx } from '../../@types';
|
|
3
|
-
import empresa from './empresa';
|
|
4
|
-
import entidade from './entidade';
|
|
5
|
-
import item from './item';
|
|
6
|
-
import operacao from './operacao';
|
|
7
3
|
import item_variacao from './item_variacao';
|
|
8
|
-
import
|
|
4
|
+
import usuario from './usuario';
|
|
5
|
+
import item from './item';
|
|
9
6
|
import categoria from './categoria';
|
|
10
|
-
import
|
|
7
|
+
import entidade from './entidade';
|
|
8
|
+
import operacao_pagamento from './operacao_pagamento';
|
|
11
9
|
import marca from './marca';
|
|
12
|
-
import
|
|
10
|
+
import entidade_endereco from './entidade_endereco';
|
|
13
11
|
import operacao_item from './operacao_item';
|
|
12
|
+
import ecommerce_item from './ecommerce_item';
|
|
13
|
+
import operacao from './operacao';
|
|
14
|
+
import atributo from './atributo';
|
|
14
15
|
import ecommerce from './ecommerce';
|
|
15
|
-
import
|
|
16
|
-
import usuario from './usuario';
|
|
16
|
+
import empresa from './empresa';
|
|
17
17
|
declare const _default: {
|
|
18
18
|
query(query_string: string, query_params: Array<any>, transaction?: PoolClient | any): Promise<any>;
|
|
19
19
|
transaction(callback: pool_tsx): Promise<void>;
|
|
20
|
-
empresa: typeof empresa;
|
|
21
|
-
entidade: typeof entidade;
|
|
22
|
-
item: typeof item;
|
|
23
|
-
operacao: typeof operacao;
|
|
24
20
|
item_variacao: typeof item_variacao;
|
|
25
|
-
|
|
21
|
+
usuario: typeof usuario;
|
|
22
|
+
item: typeof item;
|
|
26
23
|
categoria: typeof categoria;
|
|
27
|
-
|
|
24
|
+
entidade: typeof entidade;
|
|
25
|
+
operacao_pagamento: typeof operacao_pagamento;
|
|
28
26
|
marca: typeof marca;
|
|
29
|
-
|
|
27
|
+
entidade_endereco: typeof entidade_endereco;
|
|
30
28
|
operacao_item: typeof operacao_item;
|
|
29
|
+
ecommerce_item: typeof ecommerce_item;
|
|
30
|
+
operacao: typeof operacao;
|
|
31
|
+
atributo: typeof atributo;
|
|
31
32
|
ecommerce: typeof ecommerce;
|
|
32
|
-
|
|
33
|
-
usuario: typeof usuario;
|
|
33
|
+
empresa: typeof empresa;
|
|
34
34
|
};
|
|
35
35
|
export default _default;
|
|
@@ -4,20 +4,20 @@ 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 entidade_1 = __importDefault(require("./entidade"));
|
|
9
|
-
const item_1 = __importDefault(require("./item"));
|
|
10
|
-
const operacao_1 = __importDefault(require("./operacao"));
|
|
11
7
|
const item_variacao_1 = __importDefault(require("./item_variacao"));
|
|
12
|
-
const
|
|
8
|
+
const usuario_1 = __importDefault(require("./usuario"));
|
|
9
|
+
const item_1 = __importDefault(require("./item"));
|
|
13
10
|
const categoria_1 = __importDefault(require("./categoria"));
|
|
14
|
-
const
|
|
11
|
+
const entidade_1 = __importDefault(require("./entidade"));
|
|
12
|
+
const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
|
|
15
13
|
const marca_1 = __importDefault(require("./marca"));
|
|
16
|
-
const
|
|
14
|
+
const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
|
|
17
15
|
const operacao_item_1 = __importDefault(require("./operacao_item"));
|
|
16
|
+
const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
|
|
17
|
+
const operacao_1 = __importDefault(require("./operacao"));
|
|
18
|
+
const atributo_1 = __importDefault(require("./atributo"));
|
|
18
19
|
const ecommerce_1 = __importDefault(require("./ecommerce"));
|
|
19
|
-
const
|
|
20
|
-
const usuario_1 = __importDefault(require("./usuario"));
|
|
20
|
+
const empresa_1 = __importDefault(require("./empresa"));
|
|
21
21
|
exports.default = {
|
|
22
22
|
async query(query_string, query_params, transaction = undefined) {
|
|
23
23
|
return await database_1.default.query('admin', query_string, query_params, transaction);
|
|
@@ -25,18 +25,18 @@ exports.default = {
|
|
|
25
25
|
async transaction(callback) {
|
|
26
26
|
return await database_1.default.transaction('admin', callback);
|
|
27
27
|
},
|
|
28
|
-
empresa: empresa_1.default,
|
|
29
|
-
entidade: entidade_1.default,
|
|
30
|
-
item: item_1.default,
|
|
31
|
-
operacao: operacao_1.default,
|
|
32
28
|
item_variacao: item_variacao_1.default,
|
|
33
|
-
|
|
29
|
+
usuario: usuario_1.default,
|
|
30
|
+
item: item_1.default,
|
|
34
31
|
categoria: categoria_1.default,
|
|
35
|
-
|
|
32
|
+
entidade: entidade_1.default,
|
|
33
|
+
operacao_pagamento: operacao_pagamento_1.default,
|
|
36
34
|
marca: marca_1.default,
|
|
37
|
-
|
|
35
|
+
entidade_endereco: entidade_endereco_1.default,
|
|
38
36
|
operacao_item: operacao_item_1.default,
|
|
37
|
+
ecommerce_item: ecommerce_item_1.default,
|
|
38
|
+
operacao: operacao_1.default,
|
|
39
|
+
atributo: atributo_1.default,
|
|
39
40
|
ecommerce: ecommerce_1.default,
|
|
40
|
-
|
|
41
|
-
usuario: usuario_1.default
|
|
41
|
+
empresa: empresa_1.default
|
|
42
42
|
};
|
|
@@ -9,7 +9,7 @@ exports.default = {
|
|
|
9
9
|
"is_null": "YES",
|
|
10
10
|
"maxlength": null
|
|
11
11
|
},
|
|
12
|
-
"fk_table": "
|
|
12
|
+
"fk_table": "atributo",
|
|
13
13
|
"fk_reference": "id",
|
|
14
14
|
"pk": true
|
|
15
15
|
},
|
|
@@ -71,5 +71,5 @@ exports.default = {
|
|
|
71
71
|
],
|
|
72
72
|
"fathers": [],
|
|
73
73
|
"childrens": [],
|
|
74
|
-
"name": "
|
|
74
|
+
"name": "atributo"
|
|
75
75
|
};
|
|
@@ -20,7 +20,17 @@ declare const _default: {
|
|
|
20
20
|
fk_reference: null;
|
|
21
21
|
pk: boolean;
|
|
22
22
|
})[];
|
|
23
|
-
fathers:
|
|
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
|
+
}[];
|
|
24
34
|
childrens: {
|
|
25
35
|
name: string;
|
|
26
36
|
value: {
|
|
@@ -13,6 +13,17 @@ exports.default = {
|
|
|
13
13
|
"fk_reference": "id",
|
|
14
14
|
"pk": true
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"name": "empresa",
|
|
18
|
+
"value": {
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"is_null": "NO",
|
|
21
|
+
"maxlength": null
|
|
22
|
+
},
|
|
23
|
+
"fk_table": "empresa",
|
|
24
|
+
"fk_reference": "id",
|
|
25
|
+
"pk": false
|
|
26
|
+
},
|
|
16
27
|
{
|
|
17
28
|
"name": "nome",
|
|
18
29
|
"value": {
|
|
@@ -168,7 +179,19 @@ exports.default = {
|
|
|
168
179
|
"pk": false
|
|
169
180
|
}
|
|
170
181
|
],
|
|
171
|
-
"fathers": [
|
|
182
|
+
"fathers": [
|
|
183
|
+
{
|
|
184
|
+
"name": "empresa",
|
|
185
|
+
"value": {
|
|
186
|
+
"type": "integer",
|
|
187
|
+
"is_null": "NO",
|
|
188
|
+
"maxlength": null
|
|
189
|
+
},
|
|
190
|
+
"fk_table": "empresa",
|
|
191
|
+
"fk_reference": "id",
|
|
192
|
+
"pk": false
|
|
193
|
+
}
|
|
194
|
+
],
|
|
172
195
|
"childrens": [
|
|
173
196
|
{
|
|
174
197
|
"name": "ecommerce",
|
|
@@ -21,7 +21,17 @@ declare const _default: {
|
|
|
21
21
|
pk: boolean;
|
|
22
22
|
})[];
|
|
23
23
|
fathers: never[];
|
|
24
|
-
childrens:
|
|
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
|
+
}[];
|
|
25
35
|
name: string;
|
|
26
36
|
};
|
|
27
37
|
export default _default;
|
|
@@ -268,6 +268,18 @@ exports.default = {
|
|
|
268
268
|
}
|
|
269
269
|
],
|
|
270
270
|
"fathers": [],
|
|
271
|
-
"childrens": [
|
|
271
|
+
"childrens": [
|
|
272
|
+
{
|
|
273
|
+
"name": "empresa",
|
|
274
|
+
"value": {
|
|
275
|
+
"type": "integer",
|
|
276
|
+
"is_null": "NO",
|
|
277
|
+
"maxlength": null
|
|
278
|
+
},
|
|
279
|
+
"fk_table": "empresa",
|
|
280
|
+
"fk_reference": "id",
|
|
281
|
+
"pk": false
|
|
282
|
+
}
|
|
283
|
+
],
|
|
272
284
|
"name": "empresa"
|
|
273
285
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
item_variacao: {
|
|
3
3
|
columns: ({
|
|
4
4
|
name: string;
|
|
5
5
|
value: {
|
|
@@ -25,7 +25,7 @@ declare const _default: {
|
|
|
25
25
|
childrens: never[];
|
|
26
26
|
name: string;
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
usuario: {
|
|
29
29
|
columns: ({
|
|
30
30
|
name: string;
|
|
31
31
|
value: {
|
|
@@ -48,17 +48,7 @@ declare const _default: {
|
|
|
48
48
|
pk: boolean;
|
|
49
49
|
})[];
|
|
50
50
|
fathers: never[];
|
|
51
|
-
childrens:
|
|
52
|
-
name: string;
|
|
53
|
-
value: {
|
|
54
|
-
type: string;
|
|
55
|
-
is_null: string;
|
|
56
|
-
maxlength: null;
|
|
57
|
-
};
|
|
58
|
-
fk_table: string;
|
|
59
|
-
fk_reference: string;
|
|
60
|
-
pk: boolean;
|
|
61
|
-
}[];
|
|
51
|
+
childrens: never[];
|
|
62
52
|
name: string;
|
|
63
53
|
};
|
|
64
54
|
item: {
|
|
@@ -107,7 +97,7 @@ declare const _default: {
|
|
|
107
97
|
}[];
|
|
108
98
|
name: string;
|
|
109
99
|
};
|
|
110
|
-
|
|
100
|
+
categoria: {
|
|
111
101
|
columns: ({
|
|
112
102
|
name: string;
|
|
113
103
|
value: {
|
|
@@ -129,17 +119,7 @@ declare const _default: {
|
|
|
129
119
|
fk_reference: null;
|
|
130
120
|
pk: boolean;
|
|
131
121
|
})[];
|
|
132
|
-
fathers:
|
|
133
|
-
name: string;
|
|
134
|
-
value: {
|
|
135
|
-
type: string;
|
|
136
|
-
is_null: string;
|
|
137
|
-
maxlength: null;
|
|
138
|
-
};
|
|
139
|
-
fk_table: string;
|
|
140
|
-
fk_reference: string;
|
|
141
|
-
pk: boolean;
|
|
142
|
-
}[];
|
|
122
|
+
fathers: never[];
|
|
143
123
|
childrens: {
|
|
144
124
|
name: string;
|
|
145
125
|
value: {
|
|
@@ -153,7 +133,7 @@ declare const _default: {
|
|
|
153
133
|
}[];
|
|
154
134
|
name: string;
|
|
155
135
|
};
|
|
156
|
-
|
|
136
|
+
entidade: {
|
|
157
137
|
columns: ({
|
|
158
138
|
name: string;
|
|
159
139
|
value: {
|
|
@@ -176,7 +156,17 @@ declare const _default: {
|
|
|
176
156
|
pk: boolean;
|
|
177
157
|
})[];
|
|
178
158
|
fathers: never[];
|
|
179
|
-
childrens:
|
|
159
|
+
childrens: {
|
|
160
|
+
name: string;
|
|
161
|
+
value: {
|
|
162
|
+
type: string;
|
|
163
|
+
is_null: string;
|
|
164
|
+
maxlength: null;
|
|
165
|
+
};
|
|
166
|
+
fk_table: string;
|
|
167
|
+
fk_reference: string;
|
|
168
|
+
pk: boolean;
|
|
169
|
+
}[];
|
|
180
170
|
name: string;
|
|
181
171
|
};
|
|
182
172
|
operacao_pagamento: {
|
|
@@ -215,7 +205,7 @@ declare const _default: {
|
|
|
215
205
|
childrens: never[];
|
|
216
206
|
name: string;
|
|
217
207
|
};
|
|
218
|
-
|
|
208
|
+
marca: {
|
|
219
209
|
columns: ({
|
|
220
210
|
name: string;
|
|
221
211
|
value: {
|
|
@@ -251,7 +241,7 @@ declare const _default: {
|
|
|
251
241
|
}[];
|
|
252
242
|
name: string;
|
|
253
243
|
};
|
|
254
|
-
|
|
244
|
+
entidade_endereco: {
|
|
255
245
|
columns: ({
|
|
256
246
|
name: string;
|
|
257
247
|
value: {
|
|
@@ -273,11 +263,21 @@ declare const _default: {
|
|
|
273
263
|
fk_reference: null;
|
|
274
264
|
pk: boolean;
|
|
275
265
|
})[];
|
|
276
|
-
fathers:
|
|
266
|
+
fathers: {
|
|
267
|
+
name: string;
|
|
268
|
+
value: {
|
|
269
|
+
type: string;
|
|
270
|
+
is_null: string;
|
|
271
|
+
maxlength: null;
|
|
272
|
+
};
|
|
273
|
+
fk_table: string;
|
|
274
|
+
fk_reference: string;
|
|
275
|
+
pk: boolean;
|
|
276
|
+
}[];
|
|
277
277
|
childrens: never[];
|
|
278
278
|
name: string;
|
|
279
279
|
};
|
|
280
|
-
|
|
280
|
+
operacao_item: {
|
|
281
281
|
columns: ({
|
|
282
282
|
name: string;
|
|
283
283
|
value: {
|
|
@@ -299,8 +299,7 @@ declare const _default: {
|
|
|
299
299
|
fk_reference: null;
|
|
300
300
|
pk: boolean;
|
|
301
301
|
})[];
|
|
302
|
-
fathers:
|
|
303
|
-
childrens: {
|
|
302
|
+
fathers: {
|
|
304
303
|
name: string;
|
|
305
304
|
value: {
|
|
306
305
|
type: string;
|
|
@@ -311,6 +310,7 @@ declare const _default: {
|
|
|
311
310
|
fk_reference: string;
|
|
312
311
|
pk: boolean;
|
|
313
312
|
}[];
|
|
313
|
+
childrens: never[];
|
|
314
314
|
name: string;
|
|
315
315
|
};
|
|
316
316
|
ecommerce_item: {
|
|
@@ -339,7 +339,7 @@ declare const _default: {
|
|
|
339
339
|
childrens: never[];
|
|
340
340
|
name: string;
|
|
341
341
|
};
|
|
342
|
-
|
|
342
|
+
operacao: {
|
|
343
343
|
columns: ({
|
|
344
344
|
name: string;
|
|
345
345
|
value: {
|
|
@@ -372,10 +372,20 @@ declare const _default: {
|
|
|
372
372
|
fk_reference: string;
|
|
373
373
|
pk: boolean;
|
|
374
374
|
}[];
|
|
375
|
-
childrens:
|
|
375
|
+
childrens: {
|
|
376
|
+
name: string;
|
|
377
|
+
value: {
|
|
378
|
+
type: string;
|
|
379
|
+
is_null: string;
|
|
380
|
+
maxlength: null;
|
|
381
|
+
};
|
|
382
|
+
fk_table: string;
|
|
383
|
+
fk_reference: string;
|
|
384
|
+
pk: boolean;
|
|
385
|
+
}[];
|
|
376
386
|
name: string;
|
|
377
387
|
};
|
|
378
|
-
|
|
388
|
+
atributo: {
|
|
379
389
|
columns: ({
|
|
380
390
|
name: string;
|
|
381
391
|
value: {
|
|
@@ -398,20 +408,10 @@ declare const _default: {
|
|
|
398
408
|
pk: boolean;
|
|
399
409
|
})[];
|
|
400
410
|
fathers: never[];
|
|
401
|
-
childrens:
|
|
402
|
-
name: string;
|
|
403
|
-
value: {
|
|
404
|
-
type: string;
|
|
405
|
-
is_null: string;
|
|
406
|
-
maxlength: null;
|
|
407
|
-
};
|
|
408
|
-
fk_table: string;
|
|
409
|
-
fk_reference: string;
|
|
410
|
-
pk: boolean;
|
|
411
|
-
}[];
|
|
411
|
+
childrens: never[];
|
|
412
412
|
name: string;
|
|
413
413
|
};
|
|
414
|
-
|
|
414
|
+
ecommerce: {
|
|
415
415
|
columns: ({
|
|
416
416
|
name: string;
|
|
417
417
|
value: {
|
|
@@ -444,10 +444,20 @@ declare const _default: {
|
|
|
444
444
|
fk_reference: string;
|
|
445
445
|
pk: boolean;
|
|
446
446
|
}[];
|
|
447
|
-
childrens:
|
|
447
|
+
childrens: {
|
|
448
|
+
name: string;
|
|
449
|
+
value: {
|
|
450
|
+
type: string;
|
|
451
|
+
is_null: string;
|
|
452
|
+
maxlength: null;
|
|
453
|
+
};
|
|
454
|
+
fk_table: string;
|
|
455
|
+
fk_reference: string;
|
|
456
|
+
pk: boolean;
|
|
457
|
+
}[];
|
|
448
458
|
name: string;
|
|
449
459
|
};
|
|
450
|
-
|
|
460
|
+
empresa: {
|
|
451
461
|
columns: ({
|
|
452
462
|
name: string;
|
|
453
463
|
value: {
|
|
@@ -470,7 +480,17 @@ declare const _default: {
|
|
|
470
480
|
pk: boolean;
|
|
471
481
|
})[];
|
|
472
482
|
fathers: never[];
|
|
473
|
-
childrens:
|
|
483
|
+
childrens: {
|
|
484
|
+
name: string;
|
|
485
|
+
value: {
|
|
486
|
+
type: string;
|
|
487
|
+
is_null: string;
|
|
488
|
+
maxlength: null;
|
|
489
|
+
};
|
|
490
|
+
fk_table: string;
|
|
491
|
+
fk_reference: string;
|
|
492
|
+
pk: boolean;
|
|
493
|
+
}[];
|
|
474
494
|
name: string;
|
|
475
495
|
};
|
|
476
496
|
};
|
|
@@ -3,33 +3,33 @@ 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 entidade_1 = __importDefault(require("./entidade"));
|
|
8
|
-
const item_1 = __importDefault(require("./item"));
|
|
9
|
-
const operacao_1 = __importDefault(require("./operacao"));
|
|
10
6
|
const item_variacao_1 = __importDefault(require("./item_variacao"));
|
|
11
|
-
const
|
|
7
|
+
const usuario_1 = __importDefault(require("./usuario"));
|
|
8
|
+
const item_1 = __importDefault(require("./item"));
|
|
12
9
|
const categoria_1 = __importDefault(require("./categoria"));
|
|
13
|
-
const
|
|
10
|
+
const entidade_1 = __importDefault(require("./entidade"));
|
|
11
|
+
const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
|
|
14
12
|
const marca_1 = __importDefault(require("./marca"));
|
|
15
|
-
const
|
|
13
|
+
const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
|
|
16
14
|
const operacao_item_1 = __importDefault(require("./operacao_item"));
|
|
15
|
+
const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
|
|
16
|
+
const operacao_1 = __importDefault(require("./operacao"));
|
|
17
|
+
const atributo_1 = __importDefault(require("./atributo"));
|
|
17
18
|
const ecommerce_1 = __importDefault(require("./ecommerce"));
|
|
18
|
-
const
|
|
19
|
-
const usuario_1 = __importDefault(require("./usuario"));
|
|
19
|
+
const empresa_1 = __importDefault(require("./empresa"));
|
|
20
20
|
exports.default = {
|
|
21
|
-
empresa: empresa_1.default,
|
|
22
|
-
entidade: entidade_1.default,
|
|
23
|
-
item: item_1.default,
|
|
24
|
-
operacao: operacao_1.default,
|
|
25
21
|
item_variacao: item_variacao_1.default,
|
|
26
|
-
|
|
22
|
+
usuario: usuario_1.default,
|
|
23
|
+
item: item_1.default,
|
|
27
24
|
categoria: categoria_1.default,
|
|
28
|
-
|
|
25
|
+
entidade: entidade_1.default,
|
|
26
|
+
operacao_pagamento: operacao_pagamento_1.default,
|
|
29
27
|
marca: marca_1.default,
|
|
30
|
-
|
|
28
|
+
entidade_endereco: entidade_endereco_1.default,
|
|
31
29
|
operacao_item: operacao_item_1.default,
|
|
30
|
+
ecommerce_item: ecommerce_item_1.default,
|
|
31
|
+
operacao: operacao_1.default,
|
|
32
|
+
atributo: atributo_1.default,
|
|
32
33
|
ecommerce: ecommerce_1.default,
|
|
33
|
-
|
|
34
|
-
usuario: usuario_1.default
|
|
34
|
+
empresa: empresa_1.default
|
|
35
35
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { atributos_where } from './atributos_where';
|
|
2
|
-
import { atributos_order } from './atributos_order';
|
|
3
|
-
export type atributos_select = {
|
|
4
|
-
id?: number;
|
|
5
|
-
tipo?: string;
|
|
6
|
-
nome?: string;
|
|
7
|
-
descricao?: string;
|
|
8
|
-
valor?: string;
|
|
9
|
-
situacao?: boolean;
|
|
10
|
-
where: atributos_where;
|
|
11
|
-
order?: atributos_order;
|
|
12
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { unidade_medida_where } from './unidade_medida_where';
|
|
2
|
-
import { unidade_medida_order } from './unidade_medida_order';
|
|
3
|
-
export type unidade_medida_select = {
|
|
4
|
-
id?: number;
|
|
5
|
-
nome?: string;
|
|
6
|
-
descricao?: string;
|
|
7
|
-
sigla?: string;
|
|
8
|
-
imagem?: string;
|
|
9
|
-
icone?: string;
|
|
10
|
-
is_padrao?: boolean;
|
|
11
|
-
where: unidade_medida_where;
|
|
12
|
-
order?: unidade_medida_order;
|
|
13
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { unidade_medida_where } from './unidade_medida_where';
|
|
2
|
-
export type unidade_medida_update = {
|
|
3
|
-
id?: number;
|
|
4
|
-
nome?: string;
|
|
5
|
-
descricao?: string;
|
|
6
|
-
sigla?: string;
|
|
7
|
-
imagem?: string;
|
|
8
|
-
icone?: string;
|
|
9
|
-
is_padrao?: boolean;
|
|
10
|
-
where: unidade_medida_where;
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { where_number, where_string, where_boolean } from '../';
|
|
2
|
-
export type unidade_medida_where = {
|
|
3
|
-
id?: where_number | number;
|
|
4
|
-
nome?: where_string | string;
|
|
5
|
-
descricao?: where_string | string;
|
|
6
|
-
sigla?: where_string | string;
|
|
7
|
-
imagem?: where_string | string;
|
|
8
|
-
icone?: where_string | string;
|
|
9
|
-
is_padrao?: where_boolean | boolean;
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import base from '../../base';
|
|
2
|
-
import { PoolClient } from 'pg';
|
|
3
|
-
import { atributos_select } from '../../@types/admin/atributos_select';
|
|
4
|
-
import { atributos_where } from '../../@types/admin/atributos_where';
|
|
5
|
-
import { atributos_update } from '../../@types/admin/atributos_update';
|
|
6
|
-
import { atributos_fields } from '../../@types/admin/atributos_fields';
|
|
7
|
-
export default class atributos extends base {
|
|
8
|
-
static get(fields: atributos_select, transaction?: PoolClient | any): Promise<atributos_fields>;
|
|
9
|
-
static get_all(fields: atributos_select, transaction?: PoolClient | any): Promise<atributos_fields[]>;
|
|
10
|
-
static create(fields: atributos_fields, transaction?: PoolClient | any): Promise<atributos_fields>;
|
|
11
|
-
static update(fields: atributos_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
-
static delete(fields: atributos_where, transaction?: PoolClient | any): Promise<any>;
|
|
13
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|