pg-manipulator 1.0.37 → 1.0.39
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/README.md +2 -2
- package/bin/dump/index.cjs +9 -9
- package/bin/update/index.cjs +9 -9
- package/dist/@types/admin/atributos_fields.d.ts +8 -0
- package/dist/@types/admin/atributos_order.d.ts +8 -0
- package/dist/@types/admin/atributos_select.d.ts +12 -0
- package/dist/@types/admin/atributos_update.d.ts +10 -0
- package/dist/@types/admin/atributos_where.d.ts +9 -0
- package/dist/@types/admin/categoria_fields.d.ts +9 -0
- package/dist/@types/admin/categoria_order.d.ts +9 -0
- package/dist/@types/admin/categoria_select.d.ts +13 -0
- package/dist/@types/admin/categoria_update.d.ts +11 -0
- package/dist/@types/admin/categoria_where.d.ts +10 -0
- package/dist/@types/admin/ecommerce_fields.d.ts +17 -0
- package/dist/@types/admin/ecommerce_item_fields.d.ts +5 -0
- package/dist/@types/admin/ecommerce_item_order.d.ts +5 -0
- package/dist/@types/admin/ecommerce_item_select.d.ts +9 -0
- package/dist/@types/admin/ecommerce_item_update.d.ts +7 -0
- package/dist/@types/admin/ecommerce_item_where.d.ts +6 -0
- package/dist/@types/admin/ecommerce_order.d.ts +17 -0
- package/dist/@types/admin/ecommerce_select.d.ts +21 -0
- package/dist/@types/admin/ecommerce_update.d.ts +19 -0
- package/dist/@types/admin/ecommerce_where.d.ts +18 -0
- package/dist/@types/admin/empresa_fields.d.ts +26 -0
- package/dist/@types/admin/empresa_order.d.ts +26 -0
- package/dist/@types/admin/empresa_select.d.ts +30 -0
- package/dist/@types/admin/empresa_update.d.ts +28 -0
- package/dist/@types/admin/empresa_where.d.ts +27 -0
- package/dist/@types/admin/entidade_endereco_fields.d.ts +18 -0
- package/dist/@types/admin/entidade_endereco_order.d.ts +18 -0
- package/dist/@types/admin/entidade_endereco_select.d.ts +22 -0
- package/dist/@types/admin/entidade_endereco_update.d.ts +20 -0
- package/dist/@types/admin/entidade_endereco_where.d.ts +19 -0
- package/dist/@types/admin/entidade_fields.d.ts +12 -0
- package/dist/@types/admin/entidade_order.d.ts +12 -0
- package/dist/@types/admin/entidade_select.d.ts +16 -0
- package/dist/@types/admin/entidade_update.d.ts +14 -0
- package/dist/@types/admin/entidade_where.d.ts +13 -0
- package/dist/@types/admin/item_fields.d.ts +26 -0
- package/dist/@types/admin/item_order.d.ts +26 -0
- package/dist/@types/admin/item_select.d.ts +30 -0
- package/dist/@types/admin/item_update.d.ts +28 -0
- package/dist/@types/admin/item_variacao_fields.d.ts +11 -0
- package/dist/@types/admin/item_variacao_order.d.ts +11 -0
- package/dist/@types/admin/item_variacao_select.d.ts +15 -0
- package/dist/@types/admin/item_variacao_update.d.ts +13 -0
- package/dist/@types/admin/item_variacao_where.d.ts +12 -0
- package/dist/@types/admin/item_where.d.ts +27 -0
- package/dist/@types/admin/marca_fields.d.ts +8 -0
- package/dist/@types/admin/marca_order.d.ts +8 -0
- package/dist/@types/admin/marca_select.d.ts +12 -0
- package/dist/@types/admin/marca_update.d.ts +10 -0
- package/dist/@types/admin/marca_where.d.ts +9 -0
- package/dist/@types/admin/operacao_fields.d.ts +23 -0
- package/dist/@types/admin/operacao_item_fields.d.ts +10 -0
- package/dist/@types/admin/operacao_item_order.d.ts +10 -0
- package/dist/@types/admin/operacao_item_select.d.ts +14 -0
- package/dist/@types/admin/operacao_item_update.d.ts +12 -0
- package/dist/@types/admin/operacao_item_where.d.ts +11 -0
- package/dist/@types/admin/operacao_item_where.js +2 -0
- package/dist/@types/admin/operacao_order.d.ts +23 -0
- package/dist/@types/admin/operacao_order.js +2 -0
- package/dist/@types/admin/operacao_pagamento_fields.d.ts +9 -0
- package/dist/@types/admin/operacao_pagamento_fields.js +2 -0
- package/dist/@types/admin/operacao_pagamento_order.d.ts +9 -0
- package/dist/@types/admin/operacao_pagamento_order.js +2 -0
- package/dist/@types/admin/operacao_pagamento_select.d.ts +13 -0
- package/dist/@types/admin/operacao_pagamento_select.js +2 -0
- package/dist/@types/admin/operacao_pagamento_update.d.ts +11 -0
- package/dist/@types/admin/operacao_pagamento_update.js +2 -0
- package/dist/@types/admin/operacao_pagamento_where.d.ts +10 -0
- package/dist/@types/admin/operacao_pagamento_where.js +2 -0
- package/dist/@types/admin/operacao_select.d.ts +27 -0
- package/dist/@types/admin/operacao_select.js +2 -0
- package/dist/@types/admin/operacao_update.d.ts +25 -0
- package/dist/@types/admin/operacao_update.js +2 -0
- package/dist/@types/admin/operacao_where.d.ts +24 -0
- package/dist/@types/admin/operacao_where.js +2 -0
- package/dist/@types/admin/unidade_medida_fields.d.ts +9 -0
- package/dist/@types/admin/unidade_medida_fields.js +2 -0
- package/dist/@types/admin/unidade_medida_order.d.ts +9 -0
- package/dist/@types/admin/unidade_medida_order.js +2 -0
- package/dist/@types/admin/unidade_medida_select.d.ts +13 -0
- package/dist/@types/admin/unidade_medida_select.js +2 -0
- package/dist/@types/admin/unidade_medida_update.d.ts +11 -0
- package/dist/@types/admin/unidade_medida_update.js +2 -0
- package/dist/@types/admin/unidade_medida_where.d.ts +10 -0
- package/dist/@types/admin/unidade_medida_where.js +2 -0
- package/dist/@types/admin/usuario_fields.d.ts +6 -0
- package/dist/@types/admin/usuario_fields.js +2 -0
- package/dist/@types/admin/usuario_order.d.ts +6 -0
- package/dist/@types/admin/usuario_order.js +2 -0
- package/dist/@types/admin/usuario_select.d.ts +10 -0
- package/dist/@types/admin/usuario_select.js +2 -0
- package/dist/@types/admin/usuario_update.d.ts +8 -0
- package/dist/@types/admin/usuario_update.js +2 -0
- package/dist/@types/admin/usuario_where.d.ts +7 -0
- package/dist/@types/admin/usuario_where.js +2 -0
- package/dist/class/admin/atributos.d.ts +13 -0
- package/dist/class/{users/users_bet.js → admin/atributos.js} +7 -7
- package/dist/class/admin/categoria.d.ts +13 -0
- package/dist/class/{championships/teams.js → admin/categoria.js} +7 -7
- package/dist/class/admin/ecommerce.d.ts +13 -0
- package/dist/class/{championships/bet_users.js → admin/ecommerce.js} +7 -7
- package/dist/class/admin/ecommerce_item.d.ts +13 -0
- package/dist/class/admin/ecommerce_item.js +24 -0
- package/dist/class/admin/empresa.d.ts +13 -0
- package/dist/class/admin/empresa.js +24 -0
- package/dist/class/admin/entidade.d.ts +13 -0
- package/dist/class/admin/entidade.js +24 -0
- package/dist/class/admin/entidade_endereco.d.ts +13 -0
- package/dist/class/admin/entidade_endereco.js +24 -0
- package/dist/class/admin/index.d.ts +35 -0
- package/dist/class/admin/index.js +42 -0
- package/dist/class/admin/item.d.ts +13 -0
- package/dist/class/admin/item.js +24 -0
- package/dist/class/admin/item_variacao.d.ts +13 -0
- package/dist/class/admin/item_variacao.js +24 -0
- package/dist/class/admin/marca.d.ts +13 -0
- package/dist/class/{users/users.js → admin/marca.js} +7 -7
- package/dist/class/admin/operacao.d.ts +13 -0
- package/dist/class/admin/operacao.js +24 -0
- package/dist/class/admin/operacao_item.d.ts +13 -0
- package/dist/class/admin/operacao_item.js +24 -0
- package/dist/class/admin/operacao_pagamento.d.ts +13 -0
- package/dist/class/admin/operacao_pagamento.js +24 -0
- package/dist/class/admin/usuario.d.ts +13 -0
- package/dist/class/admin/usuario.js +24 -0
- package/dist/generator/index.js +2 -2
- package/dist/generator/template/entity.js +27 -27
- package/dist/generator/template/entity_store.js +7 -7
- package/dist/generator/template/fields.js +1 -1
- package/dist/generator/template/order.js +1 -1
- package/dist/generator/template/select.js +6 -6
- package/dist/generator/template/update.js +4 -4
- package/dist/generator/template/where.js +3 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +3 -5
- package/dist/mapping/{users/users.d.ts → admin/atributos.d.ts} +0 -10
- package/dist/mapping/{users/users.js → admin/atributos.js} +9 -20
- package/dist/mapping/{championships/bet_users.js → admin/categoria.js} +18 -40
- package/dist/mapping/admin/ecommerce.js +186 -0
- package/dist/mapping/{users/users_bet.d.ts → admin/ecommerce_item.d.ts} +2 -12
- package/dist/mapping/{championships/championships_users.js → admin/ecommerce_item.js} +18 -18
- package/dist/mapping/admin/empresa.d.ts +27 -0
- package/dist/mapping/admin/empresa.js +273 -0
- package/dist/mapping/admin/entidade.d.ts +37 -0
- package/dist/mapping/{championships/championships_teams.js → admin/entidade.js} +33 -44
- package/dist/mapping/admin/entidade_endereco.js +197 -0
- package/dist/mapping/admin/index.d.ts +477 -0
- package/dist/mapping/admin/index.js +35 -0
- package/dist/mapping/admin/item.js +308 -0
- package/dist/mapping/admin/item_variacao.d.ts +27 -0
- package/dist/mapping/{championships/championships.js → admin/item_variacao.js} +26 -27
- package/dist/mapping/admin/marca.d.ts +37 -0
- package/dist/mapping/{users/users_bet.js → admin/marca.js} +16 -49
- package/dist/mapping/admin/operacao.d.ts +47 -0
- package/dist/mapping/{championships/championships_matches.js → admin/operacao.js} +108 -53
- package/dist/mapping/{championships/teams.js → admin/operacao_item.js} +37 -37
- package/dist/mapping/admin/operacao_pagamento.js +98 -0
- package/dist/mapping/admin/usuario.d.ts +27 -0
- package/dist/mapping/{users/users_championships.js → admin/usuario.js} +13 -25
- package/dist/middleware/select/index.js +4 -4
- package/dist/scripts/index.js +61 -61
- package/package.json +40 -40
- package/dist/@types/championships/bet_users_fields.d.ts +0 -11
- package/dist/@types/championships/bet_users_order.d.ts +0 -11
- package/dist/@types/championships/bet_users_select.d.ts +0 -15
- package/dist/@types/championships/bet_users_update.d.ts +0 -13
- package/dist/@types/championships/bet_users_where.d.ts +0 -12
- package/dist/@types/championships/championships_fields.d.ts +0 -10
- package/dist/@types/championships/championships_matches_fields.d.ts +0 -16
- package/dist/@types/championships/championships_matches_order.d.ts +0 -16
- package/dist/@types/championships/championships_matches_select.d.ts +0 -20
- package/dist/@types/championships/championships_matches_update.d.ts +0 -18
- package/dist/@types/championships/championships_matches_where.d.ts +0 -17
- package/dist/@types/championships/championships_order.d.ts +0 -10
- package/dist/@types/championships/championships_select.d.ts +0 -14
- package/dist/@types/championships/championships_teams_fields.d.ts +0 -13
- package/dist/@types/championships/championships_teams_order.d.ts +0 -13
- package/dist/@types/championships/championships_teams_select.d.ts +0 -17
- package/dist/@types/championships/championships_teams_update.d.ts +0 -15
- package/dist/@types/championships/championships_teams_where.d.ts +0 -14
- package/dist/@types/championships/championships_update.d.ts +0 -12
- package/dist/@types/championships/championships_users_fields.d.ts +0 -6
- package/dist/@types/championships/championships_users_order.d.ts +0 -6
- package/dist/@types/championships/championships_users_select.d.ts +0 -10
- package/dist/@types/championships/championships_users_update.d.ts +0 -8
- package/dist/@types/championships/championships_users_where.d.ts +0 -7
- package/dist/@types/championships/championships_where.d.ts +0 -11
- package/dist/@types/championships/teams_fields.d.ts +0 -8
- package/dist/@types/championships/teams_order.d.ts +0 -8
- package/dist/@types/championships/teams_select.d.ts +0 -12
- package/dist/@types/championships/teams_update.d.ts +0 -10
- package/dist/@types/championships/teams_where.d.ts +0 -9
- package/dist/@types/users/transaction_historics_fields.d.ts +0 -6
- package/dist/@types/users/transaction_historics_order.d.ts +0 -6
- package/dist/@types/users/transaction_historics_select.d.ts +0 -10
- package/dist/@types/users/transaction_historics_update.d.ts +0 -8
- package/dist/@types/users/transaction_historics_where.d.ts +0 -7
- package/dist/@types/users/transactions_fields.d.ts +0 -11
- package/dist/@types/users/transactions_order.d.ts +0 -11
- package/dist/@types/users/transactions_select.d.ts +0 -15
- package/dist/@types/users/transactions_update.d.ts +0 -13
- package/dist/@types/users/transactions_where.d.ts +0 -12
- package/dist/@types/users/users_bet_fields.d.ts +0 -11
- package/dist/@types/users/users_bet_order.d.ts +0 -11
- package/dist/@types/users/users_bet_select.d.ts +0 -15
- package/dist/@types/users/users_bet_update.d.ts +0 -13
- package/dist/@types/users/users_bet_where.d.ts +0 -12
- package/dist/@types/users/users_championships_fields.d.ts +0 -6
- package/dist/@types/users/users_championships_order.d.ts +0 -6
- package/dist/@types/users/users_championships_select.d.ts +0 -10
- package/dist/@types/users/users_championships_update.d.ts +0 -8
- package/dist/@types/users/users_championships_where.d.ts +0 -7
- package/dist/@types/users/users_fields.d.ts +0 -9
- package/dist/@types/users/users_order.d.ts +0 -9
- package/dist/@types/users/users_select.d.ts +0 -13
- package/dist/@types/users/users_update.d.ts +0 -11
- package/dist/@types/users/users_where.d.ts +0 -10
- package/dist/class/championships/bet_users.d.ts +0 -13
- package/dist/class/championships/championships.d.ts +0 -13
- package/dist/class/championships/championships.js +0 -24
- package/dist/class/championships/championships_matches.d.ts +0 -13
- package/dist/class/championships/championships_matches.js +0 -24
- package/dist/class/championships/championships_teams.d.ts +0 -13
- package/dist/class/championships/championships_teams.js +0 -24
- package/dist/class/championships/championships_users.d.ts +0 -13
- package/dist/class/championships/championships_users.js +0 -24
- package/dist/class/championships/index.d.ts +0 -19
- package/dist/class/championships/index.js +0 -26
- package/dist/class/championships/teams.d.ts +0 -13
- package/dist/class/users/index.d.ts +0 -9
- package/dist/class/users/index.js +0 -16
- package/dist/class/users/users.d.ts +0 -13
- package/dist/class/users/users_bet.d.ts +0 -13
- package/dist/class/users/users_championships.d.ts +0 -13
- package/dist/class/users/users_championships.js +0 -24
- package/dist/mapping/championships/index.d.ts +0 -229
- package/dist/mapping/championships/index.js +0 -19
- package/dist/mapping/users/index.d.ts +0 -39
- package/dist/mapping/users/index.js +0 -9
- package/dist/mapping/users/users_championships.d.ts +0 -37
- /package/dist/@types/{championships/bet_users_fields.js → admin/atributos_fields.js} +0 -0
- /package/dist/@types/{championships/bet_users_order.js → admin/atributos_order.js} +0 -0
- /package/dist/@types/{championships/bet_users_select.js → admin/atributos_select.js} +0 -0
- /package/dist/@types/{championships/bet_users_update.js → admin/atributos_update.js} +0 -0
- /package/dist/@types/{championships/bet_users_where.js → admin/atributos_where.js} +0 -0
- /package/dist/@types/{championships/championships_fields.js → admin/categoria_fields.js} +0 -0
- /package/dist/@types/{championships/championships_matches_fields.js → admin/categoria_order.js} +0 -0
- /package/dist/@types/{championships/championships_matches_order.js → admin/categoria_select.js} +0 -0
- /package/dist/@types/{championships/championships_matches_select.js → admin/categoria_update.js} +0 -0
- /package/dist/@types/{championships/championships_matches_update.js → admin/categoria_where.js} +0 -0
- /package/dist/@types/{championships/championships_matches_where.js → admin/ecommerce_fields.js} +0 -0
- /package/dist/@types/{championships/championships_order.js → admin/ecommerce_item_fields.js} +0 -0
- /package/dist/@types/{championships/championships_select.js → admin/ecommerce_item_order.js} +0 -0
- /package/dist/@types/{championships/championships_teams_fields.js → admin/ecommerce_item_select.js} +0 -0
- /package/dist/@types/{championships/championships_teams_order.js → admin/ecommerce_item_update.js} +0 -0
- /package/dist/@types/{championships/championships_teams_select.js → admin/ecommerce_item_where.js} +0 -0
- /package/dist/@types/{championships/championships_teams_update.js → admin/ecommerce_order.js} +0 -0
- /package/dist/@types/{championships/championships_teams_where.js → admin/ecommerce_select.js} +0 -0
- /package/dist/@types/{championships/championships_update.js → admin/ecommerce_update.js} +0 -0
- /package/dist/@types/{championships/championships_users_fields.js → admin/ecommerce_where.js} +0 -0
- /package/dist/@types/{championships/championships_users_order.js → admin/empresa_fields.js} +0 -0
- /package/dist/@types/{championships/championships_users_select.js → admin/empresa_order.js} +0 -0
- /package/dist/@types/{championships/championships_users_update.js → admin/empresa_select.js} +0 -0
- /package/dist/@types/{championships/championships_users_where.js → admin/empresa_update.js} +0 -0
- /package/dist/@types/{championships/championships_where.js → admin/empresa_where.js} +0 -0
- /package/dist/@types/{championships/teams_fields.js → admin/entidade_endereco_fields.js} +0 -0
- /package/dist/@types/{championships/teams_order.js → admin/entidade_endereco_order.js} +0 -0
- /package/dist/@types/{championships/teams_select.js → admin/entidade_endereco_select.js} +0 -0
- /package/dist/@types/{championships/teams_update.js → admin/entidade_endereco_update.js} +0 -0
- /package/dist/@types/{championships/teams_where.js → admin/entidade_endereco_where.js} +0 -0
- /package/dist/@types/{users/transaction_historics_fields.js → admin/entidade_fields.js} +0 -0
- /package/dist/@types/{users/transaction_historics_order.js → admin/entidade_order.js} +0 -0
- /package/dist/@types/{users/transaction_historics_select.js → admin/entidade_select.js} +0 -0
- /package/dist/@types/{users/transaction_historics_update.js → admin/entidade_update.js} +0 -0
- /package/dist/@types/{users/transaction_historics_where.js → admin/entidade_where.js} +0 -0
- /package/dist/@types/{users/transactions_fields.js → admin/item_fields.js} +0 -0
- /package/dist/@types/{users/transactions_order.js → admin/item_order.js} +0 -0
- /package/dist/@types/{users/transactions_select.js → admin/item_select.js} +0 -0
- /package/dist/@types/{users/transactions_update.js → admin/item_update.js} +0 -0
- /package/dist/@types/{users/transactions_where.js → admin/item_variacao_fields.js} +0 -0
- /package/dist/@types/{users/users_bet_fields.js → admin/item_variacao_order.js} +0 -0
- /package/dist/@types/{users/users_bet_order.js → admin/item_variacao_select.js} +0 -0
- /package/dist/@types/{users/users_bet_select.js → admin/item_variacao_update.js} +0 -0
- /package/dist/@types/{users/users_bet_update.js → admin/item_variacao_where.js} +0 -0
- /package/dist/@types/{users/users_bet_where.js → admin/item_where.js} +0 -0
- /package/dist/@types/{users/users_championships_fields.js → admin/marca_fields.js} +0 -0
- /package/dist/@types/{users/users_championships_order.js → admin/marca_order.js} +0 -0
- /package/dist/@types/{users/users_championships_select.js → admin/marca_select.js} +0 -0
- /package/dist/@types/{users/users_championships_update.js → admin/marca_update.js} +0 -0
- /package/dist/@types/{users/users_championships_where.js → admin/marca_where.js} +0 -0
- /package/dist/@types/{users/users_fields.js → admin/operacao_fields.js} +0 -0
- /package/dist/@types/{users/users_order.js → admin/operacao_item_fields.js} +0 -0
- /package/dist/@types/{users/users_select.js → admin/operacao_item_order.js} +0 -0
- /package/dist/@types/{users/users_update.js → admin/operacao_item_select.js} +0 -0
- /package/dist/@types/{users/users_where.js → admin/operacao_item_update.js} +0 -0
- /package/dist/mapping/{championships/championships.d.ts → admin/categoria.d.ts} +0 -0
- /package/dist/mapping/{championships/teams.d.ts → admin/ecommerce.d.ts} +0 -0
- /package/dist/mapping/{championships/bet_users.d.ts → admin/entidade_endereco.d.ts} +0 -0
- /package/dist/mapping/{championships/championships_matches.d.ts → admin/item.d.ts} +0 -0
- /package/dist/mapping/{championships/championships_teams.d.ts → admin/operacao_item.d.ts} +0 -0
- /package/dist/mapping/{championships/championships_users.d.ts → admin/operacao_pagamento.d.ts} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -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 atributos extends base_1.default {
|
|
8
8
|
static async get(fields, transaction = undefined) {
|
|
9
|
-
return await super.b_get('
|
|
9
|
+
return await super.b_get('admin', fields, 'atributos', transaction);
|
|
10
10
|
}
|
|
11
11
|
static async get_all(fields, transaction = undefined) {
|
|
12
|
-
return await super.b_get_all('
|
|
12
|
+
return await super.b_get_all('admin', fields, 'atributos', transaction);
|
|
13
13
|
}
|
|
14
14
|
static async create(fields, transaction = undefined) {
|
|
15
|
-
return await super.b_create('
|
|
15
|
+
return await super.b_create('admin', fields, 'atributos', transaction);
|
|
16
16
|
}
|
|
17
17
|
static async update(fields, transaction = undefined) {
|
|
18
|
-
return await super.b_update('
|
|
18
|
+
return await super.b_update('admin', fields, 'atributos', transaction);
|
|
19
19
|
}
|
|
20
20
|
static async delete(fields, transaction = undefined) {
|
|
21
|
-
return await super.b_delete('
|
|
21
|
+
return await super.b_delete('admin', fields, 'atributos', transaction);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.default =
|
|
24
|
+
exports.default = atributos;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { categoria_select } from '../../@types/admin/categoria_select';
|
|
4
|
+
import { categoria_where } from '../../@types/admin/categoria_where';
|
|
5
|
+
import { categoria_update } from '../../@types/admin/categoria_update';
|
|
6
|
+
import { categoria_fields } from '../../@types/admin/categoria_fields';
|
|
7
|
+
export default class categoria extends base {
|
|
8
|
+
static get(fields: categoria_select, transaction?: PoolClient | any): Promise<categoria_fields>;
|
|
9
|
+
static get_all(fields: categoria_select, transaction?: PoolClient | any): Promise<categoria_fields[]>;
|
|
10
|
+
static create(fields: categoria_fields, transaction?: PoolClient | any): Promise<categoria_fields>;
|
|
11
|
+
static update(fields: categoria_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: categoria_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 categoria extends base_1.default {
|
|
8
8
|
static async get(fields, transaction = undefined) {
|
|
9
|
-
return await super.b_get('
|
|
9
|
+
return await super.b_get('admin', fields, 'categoria', transaction);
|
|
10
10
|
}
|
|
11
11
|
static async get_all(fields, transaction = undefined) {
|
|
12
|
-
return await super.b_get_all('
|
|
12
|
+
return await super.b_get_all('admin', fields, 'categoria', transaction);
|
|
13
13
|
}
|
|
14
14
|
static async create(fields, transaction = undefined) {
|
|
15
|
-
return await super.b_create('
|
|
15
|
+
return await super.b_create('admin', fields, 'categoria', transaction);
|
|
16
16
|
}
|
|
17
17
|
static async update(fields, transaction = undefined) {
|
|
18
|
-
return await super.b_update('
|
|
18
|
+
return await super.b_update('admin', fields, 'categoria', transaction);
|
|
19
19
|
}
|
|
20
20
|
static async delete(fields, transaction = undefined) {
|
|
21
|
-
return await super.b_delete('
|
|
21
|
+
return await super.b_delete('admin', fields, 'categoria', transaction);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.default =
|
|
24
|
+
exports.default = categoria;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { ecommerce_select } from '../../@types/admin/ecommerce_select';
|
|
4
|
+
import { ecommerce_where } from '../../@types/admin/ecommerce_where';
|
|
5
|
+
import { ecommerce_update } from '../../@types/admin/ecommerce_update';
|
|
6
|
+
import { ecommerce_fields } from '../../@types/admin/ecommerce_fields';
|
|
7
|
+
export default class ecommerce extends base {
|
|
8
|
+
static get(fields: ecommerce_select, transaction?: PoolClient | any): Promise<ecommerce_fields>;
|
|
9
|
+
static get_all(fields: ecommerce_select, transaction?: PoolClient | any): Promise<ecommerce_fields[]>;
|
|
10
|
+
static create(fields: ecommerce_fields, transaction?: PoolClient | any): Promise<ecommerce_fields>;
|
|
11
|
+
static update(fields: ecommerce_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: ecommerce_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 ecommerce extends base_1.default {
|
|
8
8
|
static async get(fields, transaction = undefined) {
|
|
9
|
-
return await super.b_get('
|
|
9
|
+
return await super.b_get('admin', fields, 'ecommerce', transaction);
|
|
10
10
|
}
|
|
11
11
|
static async get_all(fields, transaction = undefined) {
|
|
12
|
-
return await super.b_get_all('
|
|
12
|
+
return await super.b_get_all('admin', fields, 'ecommerce', transaction);
|
|
13
13
|
}
|
|
14
14
|
static async create(fields, transaction = undefined) {
|
|
15
|
-
return await super.b_create('
|
|
15
|
+
return await super.b_create('admin', fields, 'ecommerce', transaction);
|
|
16
16
|
}
|
|
17
17
|
static async update(fields, transaction = undefined) {
|
|
18
|
-
return await super.b_update('
|
|
18
|
+
return await super.b_update('admin', fields, 'ecommerce', transaction);
|
|
19
19
|
}
|
|
20
20
|
static async delete(fields, transaction = undefined) {
|
|
21
|
-
return await super.b_delete('
|
|
21
|
+
return await super.b_delete('admin', fields, 'ecommerce', transaction);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.default =
|
|
24
|
+
exports.default = ecommerce;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { ecommerce_item_select } from '../../@types/admin/ecommerce_item_select';
|
|
4
|
+
import { ecommerce_item_where } from '../../@types/admin/ecommerce_item_where';
|
|
5
|
+
import { ecommerce_item_update } from '../../@types/admin/ecommerce_item_update';
|
|
6
|
+
import { ecommerce_item_fields } from '../../@types/admin/ecommerce_item_fields';
|
|
7
|
+
export default class ecommerce_item extends base {
|
|
8
|
+
static get(fields: ecommerce_item_select, transaction?: PoolClient | any): Promise<ecommerce_item_fields>;
|
|
9
|
+
static get_all(fields: ecommerce_item_select, transaction?: PoolClient | any): Promise<ecommerce_item_fields[]>;
|
|
10
|
+
static create(fields: ecommerce_item_fields, transaction?: PoolClient | any): Promise<ecommerce_item_fields>;
|
|
11
|
+
static update(fields: ecommerce_item_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: ecommerce_item_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 ecommerce_item extends base_1.default {
|
|
8
|
+
static async get(fields, transaction = undefined) {
|
|
9
|
+
return await super.b_get('admin', fields, 'ecommerce_item', transaction);
|
|
10
|
+
}
|
|
11
|
+
static async get_all(fields, transaction = undefined) {
|
|
12
|
+
return await super.b_get_all('admin', fields, 'ecommerce_item', transaction);
|
|
13
|
+
}
|
|
14
|
+
static async create(fields, transaction = undefined) {
|
|
15
|
+
return await super.b_create('admin', fields, 'ecommerce_item', transaction);
|
|
16
|
+
}
|
|
17
|
+
static async update(fields, transaction = undefined) {
|
|
18
|
+
return await super.b_update('admin', fields, 'ecommerce_item', transaction);
|
|
19
|
+
}
|
|
20
|
+
static async delete(fields, transaction = undefined) {
|
|
21
|
+
return await super.b_delete('admin', fields, 'ecommerce_item', transaction);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = ecommerce_item;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { empresa_select } from '../../@types/admin/empresa_select';
|
|
4
|
+
import { empresa_where } from '../../@types/admin/empresa_where';
|
|
5
|
+
import { empresa_update } from '../../@types/admin/empresa_update';
|
|
6
|
+
import { empresa_fields } from '../../@types/admin/empresa_fields';
|
|
7
|
+
export default class empresa extends base {
|
|
8
|
+
static get(fields: empresa_select, transaction?: PoolClient | any): Promise<empresa_fields>;
|
|
9
|
+
static get_all(fields: empresa_select, transaction?: PoolClient | any): Promise<empresa_fields[]>;
|
|
10
|
+
static create(fields: empresa_fields, transaction?: PoolClient | any): Promise<empresa_fields>;
|
|
11
|
+
static update(fields: empresa_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: empresa_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 empresa extends base_1.default {
|
|
8
|
+
static async get(fields, transaction = undefined) {
|
|
9
|
+
return await super.b_get('admin', fields, 'empresa', transaction);
|
|
10
|
+
}
|
|
11
|
+
static async get_all(fields, transaction = undefined) {
|
|
12
|
+
return await super.b_get_all('admin', fields, 'empresa', transaction);
|
|
13
|
+
}
|
|
14
|
+
static async create(fields, transaction = undefined) {
|
|
15
|
+
return await super.b_create('admin', fields, 'empresa', transaction);
|
|
16
|
+
}
|
|
17
|
+
static async update(fields, transaction = undefined) {
|
|
18
|
+
return await super.b_update('admin', fields, 'empresa', transaction);
|
|
19
|
+
}
|
|
20
|
+
static async delete(fields, transaction = undefined) {
|
|
21
|
+
return await super.b_delete('admin', fields, 'empresa', transaction);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = empresa;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { entidade_select } from '../../@types/admin/entidade_select';
|
|
4
|
+
import { entidade_where } from '../../@types/admin/entidade_where';
|
|
5
|
+
import { entidade_update } from '../../@types/admin/entidade_update';
|
|
6
|
+
import { entidade_fields } from '../../@types/admin/entidade_fields';
|
|
7
|
+
export default class entidade extends base {
|
|
8
|
+
static get(fields: entidade_select, transaction?: PoolClient | any): Promise<entidade_fields>;
|
|
9
|
+
static get_all(fields: entidade_select, transaction?: PoolClient | any): Promise<entidade_fields[]>;
|
|
10
|
+
static create(fields: entidade_fields, transaction?: PoolClient | any): Promise<entidade_fields>;
|
|
11
|
+
static update(fields: entidade_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: entidade_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 entidade extends base_1.default {
|
|
8
|
+
static async get(fields, transaction = undefined) {
|
|
9
|
+
return await super.b_get('admin', fields, 'entidade', transaction);
|
|
10
|
+
}
|
|
11
|
+
static async get_all(fields, transaction = undefined) {
|
|
12
|
+
return await super.b_get_all('admin', fields, 'entidade', transaction);
|
|
13
|
+
}
|
|
14
|
+
static async create(fields, transaction = undefined) {
|
|
15
|
+
return await super.b_create('admin', fields, 'entidade', transaction);
|
|
16
|
+
}
|
|
17
|
+
static async update(fields, transaction = undefined) {
|
|
18
|
+
return await super.b_update('admin', fields, 'entidade', transaction);
|
|
19
|
+
}
|
|
20
|
+
static async delete(fields, transaction = undefined) {
|
|
21
|
+
return await super.b_delete('admin', fields, 'entidade', transaction);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = entidade;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { entidade_endereco_select } from '../../@types/admin/entidade_endereco_select';
|
|
4
|
+
import { entidade_endereco_where } from '../../@types/admin/entidade_endereco_where';
|
|
5
|
+
import { entidade_endereco_update } from '../../@types/admin/entidade_endereco_update';
|
|
6
|
+
import { entidade_endereco_fields } from '../../@types/admin/entidade_endereco_fields';
|
|
7
|
+
export default class entidade_endereco extends base {
|
|
8
|
+
static get(fields: entidade_endereco_select, transaction?: PoolClient | any): Promise<entidade_endereco_fields>;
|
|
9
|
+
static get_all(fields: entidade_endereco_select, transaction?: PoolClient | any): Promise<entidade_endereco_fields[]>;
|
|
10
|
+
static create(fields: entidade_endereco_fields, transaction?: PoolClient | any): Promise<entidade_endereco_fields>;
|
|
11
|
+
static update(fields: entidade_endereco_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: entidade_endereco_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 entidade_endereco extends base_1.default {
|
|
8
|
+
static async get(fields, transaction = undefined) {
|
|
9
|
+
return await super.b_get('admin', fields, 'entidade_endereco', transaction);
|
|
10
|
+
}
|
|
11
|
+
static async get_all(fields, transaction = undefined) {
|
|
12
|
+
return await super.b_get_all('admin', fields, 'entidade_endereco', transaction);
|
|
13
|
+
}
|
|
14
|
+
static async create(fields, transaction = undefined) {
|
|
15
|
+
return await super.b_create('admin', fields, 'entidade_endereco', transaction);
|
|
16
|
+
}
|
|
17
|
+
static async update(fields, transaction = undefined) {
|
|
18
|
+
return await super.b_update('admin', fields, 'entidade_endereco', transaction);
|
|
19
|
+
}
|
|
20
|
+
static async delete(fields, transaction = undefined) {
|
|
21
|
+
return await super.b_delete('admin', fields, 'entidade_endereco', transaction);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = entidade_endereco;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PoolClient } from 'pg';
|
|
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
|
+
import item_variacao from './item_variacao';
|
|
8
|
+
import operacao_pagamento from './operacao_pagamento';
|
|
9
|
+
import categoria from './categoria';
|
|
10
|
+
import atributos from './atributos';
|
|
11
|
+
import marca from './marca';
|
|
12
|
+
import ecommerce_item from './ecommerce_item';
|
|
13
|
+
import operacao_item from './operacao_item';
|
|
14
|
+
import ecommerce from './ecommerce';
|
|
15
|
+
import entidade_endereco from './entidade_endereco';
|
|
16
|
+
import usuario from './usuario';
|
|
17
|
+
declare const _default: {
|
|
18
|
+
query(query_string: string, query_params: Array<any>, transaction?: PoolClient | any): Promise<any>;
|
|
19
|
+
transaction(callback: pool_tsx): Promise<void>;
|
|
20
|
+
empresa: typeof empresa;
|
|
21
|
+
entidade: typeof entidade;
|
|
22
|
+
item: typeof item;
|
|
23
|
+
operacao: typeof operacao;
|
|
24
|
+
item_variacao: typeof item_variacao;
|
|
25
|
+
operacao_pagamento: typeof operacao_pagamento;
|
|
26
|
+
categoria: typeof categoria;
|
|
27
|
+
atributos: typeof atributos;
|
|
28
|
+
marca: typeof marca;
|
|
29
|
+
ecommerce_item: typeof ecommerce_item;
|
|
30
|
+
operacao_item: typeof operacao_item;
|
|
31
|
+
ecommerce: typeof ecommerce;
|
|
32
|
+
entidade_endereco: typeof entidade_endereco;
|
|
33
|
+
usuario: typeof usuario;
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
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 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
|
+
const item_variacao_1 = __importDefault(require("./item_variacao"));
|
|
12
|
+
const operacao_pagamento_1 = __importDefault(require("./operacao_pagamento"));
|
|
13
|
+
const categoria_1 = __importDefault(require("./categoria"));
|
|
14
|
+
const atributos_1 = __importDefault(require("./atributos"));
|
|
15
|
+
const marca_1 = __importDefault(require("./marca"));
|
|
16
|
+
const ecommerce_item_1 = __importDefault(require("./ecommerce_item"));
|
|
17
|
+
const operacao_item_1 = __importDefault(require("./operacao_item"));
|
|
18
|
+
const ecommerce_1 = __importDefault(require("./ecommerce"));
|
|
19
|
+
const entidade_endereco_1 = __importDefault(require("./entidade_endereco"));
|
|
20
|
+
const usuario_1 = __importDefault(require("./usuario"));
|
|
21
|
+
exports.default = {
|
|
22
|
+
async query(query_string, query_params, transaction = undefined) {
|
|
23
|
+
return await database_1.default.query('admin', query_string, query_params, transaction);
|
|
24
|
+
},
|
|
25
|
+
async transaction(callback) {
|
|
26
|
+
return await database_1.default.transaction('admin', callback);
|
|
27
|
+
},
|
|
28
|
+
empresa: empresa_1.default,
|
|
29
|
+
entidade: entidade_1.default,
|
|
30
|
+
item: item_1.default,
|
|
31
|
+
operacao: operacao_1.default,
|
|
32
|
+
item_variacao: item_variacao_1.default,
|
|
33
|
+
operacao_pagamento: operacao_pagamento_1.default,
|
|
34
|
+
categoria: categoria_1.default,
|
|
35
|
+
atributos: atributos_1.default,
|
|
36
|
+
marca: marca_1.default,
|
|
37
|
+
ecommerce_item: ecommerce_item_1.default,
|
|
38
|
+
operacao_item: operacao_item_1.default,
|
|
39
|
+
ecommerce: ecommerce_1.default,
|
|
40
|
+
entidade_endereco: entidade_endereco_1.default,
|
|
41
|
+
usuario: usuario_1.default
|
|
42
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { item_select } from '../../@types/admin/item_select';
|
|
4
|
+
import { item_where } from '../../@types/admin/item_where';
|
|
5
|
+
import { item_update } from '../../@types/admin/item_update';
|
|
6
|
+
import { item_fields } from '../../@types/admin/item_fields';
|
|
7
|
+
export default class item extends base {
|
|
8
|
+
static get(fields: item_select, transaction?: PoolClient | any): Promise<item_fields>;
|
|
9
|
+
static get_all(fields: item_select, transaction?: PoolClient | any): Promise<item_fields[]>;
|
|
10
|
+
static create(fields: item_fields, transaction?: PoolClient | any): Promise<item_fields>;
|
|
11
|
+
static update(fields: item_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: item_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 extends base_1.default {
|
|
8
|
+
static async get(fields, transaction = undefined) {
|
|
9
|
+
return await super.b_get('admin', fields, 'item', transaction);
|
|
10
|
+
}
|
|
11
|
+
static async get_all(fields, transaction = undefined) {
|
|
12
|
+
return await super.b_get_all('admin', fields, 'item', transaction);
|
|
13
|
+
}
|
|
14
|
+
static async create(fields, transaction = undefined) {
|
|
15
|
+
return await super.b_create('admin', fields, 'item', transaction);
|
|
16
|
+
}
|
|
17
|
+
static async update(fields, transaction = undefined) {
|
|
18
|
+
return await super.b_update('admin', fields, 'item', transaction);
|
|
19
|
+
}
|
|
20
|
+
static async delete(fields, transaction = undefined) {
|
|
21
|
+
return await super.b_delete('admin', fields, 'item', transaction);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = item;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { item_variacao_select } from '../../@types/admin/item_variacao_select';
|
|
4
|
+
import { item_variacao_where } from '../../@types/admin/item_variacao_where';
|
|
5
|
+
import { item_variacao_update } from '../../@types/admin/item_variacao_update';
|
|
6
|
+
import { item_variacao_fields } from '../../@types/admin/item_variacao_fields';
|
|
7
|
+
export default class item_variacao extends base {
|
|
8
|
+
static get(fields: item_variacao_select, transaction?: PoolClient | any): Promise<item_variacao_fields>;
|
|
9
|
+
static get_all(fields: item_variacao_select, transaction?: PoolClient | any): Promise<item_variacao_fields[]>;
|
|
10
|
+
static create(fields: item_variacao_fields, transaction?: PoolClient | any): Promise<item_variacao_fields>;
|
|
11
|
+
static update(fields: item_variacao_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: item_variacao_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 extends base_1.default {
|
|
8
|
+
static async get(fields, transaction = undefined) {
|
|
9
|
+
return await super.b_get('admin', fields, 'item_variacao', transaction);
|
|
10
|
+
}
|
|
11
|
+
static async get_all(fields, transaction = undefined) {
|
|
12
|
+
return await super.b_get_all('admin', fields, 'item_variacao', transaction);
|
|
13
|
+
}
|
|
14
|
+
static async create(fields, transaction = undefined) {
|
|
15
|
+
return await super.b_create('admin', fields, 'item_variacao', transaction);
|
|
16
|
+
}
|
|
17
|
+
static async update(fields, transaction = undefined) {
|
|
18
|
+
return await super.b_update('admin', fields, 'item_variacao', transaction);
|
|
19
|
+
}
|
|
20
|
+
static async delete(fields, transaction = undefined) {
|
|
21
|
+
return await super.b_delete('admin', fields, 'item_variacao', transaction);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = item_variacao;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { marca_select } from '../../@types/admin/marca_select';
|
|
4
|
+
import { marca_where } from '../../@types/admin/marca_where';
|
|
5
|
+
import { marca_update } from '../../@types/admin/marca_update';
|
|
6
|
+
import { marca_fields } from '../../@types/admin/marca_fields';
|
|
7
|
+
export default class marca extends base {
|
|
8
|
+
static get(fields: marca_select, transaction?: PoolClient | any): Promise<marca_fields>;
|
|
9
|
+
static get_all(fields: marca_select, transaction?: PoolClient | any): Promise<marca_fields[]>;
|
|
10
|
+
static create(fields: marca_fields, transaction?: PoolClient | any): Promise<marca_fields>;
|
|
11
|
+
static update(fields: marca_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: marca_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 marca extends base_1.default {
|
|
8
8
|
static async get(fields, transaction = undefined) {
|
|
9
|
-
return await super.b_get('
|
|
9
|
+
return await super.b_get('admin', fields, 'marca', transaction);
|
|
10
10
|
}
|
|
11
11
|
static async get_all(fields, transaction = undefined) {
|
|
12
|
-
return await super.b_get_all('
|
|
12
|
+
return await super.b_get_all('admin', fields, 'marca', transaction);
|
|
13
13
|
}
|
|
14
14
|
static async create(fields, transaction = undefined) {
|
|
15
|
-
return await super.b_create('
|
|
15
|
+
return await super.b_create('admin', fields, 'marca', transaction);
|
|
16
16
|
}
|
|
17
17
|
static async update(fields, transaction = undefined) {
|
|
18
|
-
return await super.b_update('
|
|
18
|
+
return await super.b_update('admin', fields, 'marca', transaction);
|
|
19
19
|
}
|
|
20
20
|
static async delete(fields, transaction = undefined) {
|
|
21
|
-
return await super.b_delete('
|
|
21
|
+
return await super.b_delete('admin', fields, 'marca', transaction);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.default =
|
|
24
|
+
exports.default = marca;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { operacao_select } from '../../@types/admin/operacao_select';
|
|
4
|
+
import { operacao_where } from '../../@types/admin/operacao_where';
|
|
5
|
+
import { operacao_update } from '../../@types/admin/operacao_update';
|
|
6
|
+
import { operacao_fields } from '../../@types/admin/operacao_fields';
|
|
7
|
+
export default class operacao extends base {
|
|
8
|
+
static get(fields: operacao_select, transaction?: PoolClient | any): Promise<operacao_fields>;
|
|
9
|
+
static get_all(fields: operacao_select, transaction?: PoolClient | any): Promise<operacao_fields[]>;
|
|
10
|
+
static create(fields: operacao_fields, transaction?: PoolClient | any): Promise<operacao_fields>;
|
|
11
|
+
static update(fields: operacao_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: operacao_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 operacao extends base_1.default {
|
|
8
|
+
static async get(fields, transaction = undefined) {
|
|
9
|
+
return await super.b_get('admin', fields, 'operacao', transaction);
|
|
10
|
+
}
|
|
11
|
+
static async get_all(fields, transaction = undefined) {
|
|
12
|
+
return await super.b_get_all('admin', fields, 'operacao', transaction);
|
|
13
|
+
}
|
|
14
|
+
static async create(fields, transaction = undefined) {
|
|
15
|
+
return await super.b_create('admin', fields, 'operacao', transaction);
|
|
16
|
+
}
|
|
17
|
+
static async update(fields, transaction = undefined) {
|
|
18
|
+
return await super.b_update('admin', fields, 'operacao', transaction);
|
|
19
|
+
}
|
|
20
|
+
static async delete(fields, transaction = undefined) {
|
|
21
|
+
return await super.b_delete('admin', fields, 'operacao', transaction);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = operacao;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import base from '../../base';
|
|
2
|
+
import { PoolClient } from 'pg';
|
|
3
|
+
import { operacao_item_select } from '../../@types/admin/operacao_item_select';
|
|
4
|
+
import { operacao_item_where } from '../../@types/admin/operacao_item_where';
|
|
5
|
+
import { operacao_item_update } from '../../@types/admin/operacao_item_update';
|
|
6
|
+
import { operacao_item_fields } from '../../@types/admin/operacao_item_fields';
|
|
7
|
+
export default class operacao_item extends base {
|
|
8
|
+
static get(fields: operacao_item_select, transaction?: PoolClient | any): Promise<operacao_item_fields>;
|
|
9
|
+
static get_all(fields: operacao_item_select, transaction?: PoolClient | any): Promise<operacao_item_fields[]>;
|
|
10
|
+
static create(fields: operacao_item_fields, transaction?: PoolClient | any): Promise<operacao_item_fields>;
|
|
11
|
+
static update(fields: operacao_item_update, transaction?: PoolClient | any): Promise<any>;
|
|
12
|
+
static delete(fields: operacao_item_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 operacao_item extends base_1.default {
|
|
8
|
+
static async get(fields, transaction = undefined) {
|
|
9
|
+
return await super.b_get('admin', fields, 'operacao_item', transaction);
|
|
10
|
+
}
|
|
11
|
+
static async get_all(fields, transaction = undefined) {
|
|
12
|
+
return await super.b_get_all('admin', fields, 'operacao_item', transaction);
|
|
13
|
+
}
|
|
14
|
+
static async create(fields, transaction = undefined) {
|
|
15
|
+
return await super.b_create('admin', fields, 'operacao_item', transaction);
|
|
16
|
+
}
|
|
17
|
+
static async update(fields, transaction = undefined) {
|
|
18
|
+
return await super.b_update('admin', fields, 'operacao_item', transaction);
|
|
19
|
+
}
|
|
20
|
+
static async delete(fields, transaction = undefined) {
|
|
21
|
+
return await super.b_delete('admin', fields, 'operacao_item', transaction);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = operacao_item;
|