remit update
This commit is contained in:
46
src/entity/remit_config_beneficiary_provinces.ts
Normal file
46
src/entity/remit_config_beneficiary_provinces.ts
Normal file
@ -0,0 +1,46 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
import { RemitRiskLevel } from "../types/remit";
|
||||
|
||||
@Entity("remit_config_beneficiary_provinces", { schema: "remits" })
|
||||
export class RemitConfigBeneficiaryProvince {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({ type: "smallint", default: 0 })
|
||||
level: Number;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
46
src/entity/remit_config_booms.ts
Normal file
46
src/entity/remit_config_booms.ts
Normal file
@ -0,0 +1,46 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
import { RemitRiskLevel } from "../types/remit";
|
||||
|
||||
@Entity("remit_config_booms", { schema: "remits" })
|
||||
export class RemitConfigBoom {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({ type: "smallint", default: 0 })
|
||||
level: Number;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
46
src/entity/remit_config_business_fields.ts
Normal file
46
src/entity/remit_config_business_fields.ts
Normal file
@ -0,0 +1,46 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
import { RemitRiskLevel } from "../types/remit";
|
||||
|
||||
@Entity("remit_config_business_fields", { schema: "remits" })
|
||||
export class RemitConfigBusinessField {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({ type: "smallint", default: 0 })
|
||||
level: Number;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
46
src/entity/remit_config_channels.ts
Normal file
46
src/entity/remit_config_channels.ts
Normal file
@ -0,0 +1,46 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
import { RemitRiskLevel } from "../types/remit";
|
||||
|
||||
@Entity("remit_config_channels", { schema: "remits" })
|
||||
export class RemitConfigChannel {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({ type: "smallint", default: 0 })
|
||||
level: Number;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
45
src/entity/remit_config_munisipos.ts
Normal file
45
src/entity/remit_config_munisipos.ts
Normal file
@ -0,0 +1,45 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
import { RemitRiskLevel } from "../types/remit";
|
||||
import { RemitMunisipo } from "./remit_munisipos";
|
||||
|
||||
@Entity("remit_config_munisipos", { schema: "remits" })
|
||||
export class RemitConfigMunisipo {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => RemitMunisipo, { onDelete: "RESTRICT" })
|
||||
@JoinColumn()
|
||||
munisipo: RemitMunisipo;
|
||||
|
||||
@Column({ type: "smallint", default: 0 })
|
||||
level: Number;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
64
src/entity/remit_config_transaction_infos.ts
Normal file
64
src/entity/remit_config_transaction_infos.ts
Normal file
@ -0,0 +1,64 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
import { RemitRiskLevel } from "../types/remit";
|
||||
|
||||
@Entity("remit_config_transaction_infos", { schema: "remits" })
|
||||
export class RemitConfigTransactionInfo {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
category: string;
|
||||
|
||||
@Column({ type: "float8", nullable: true })
|
||||
param_min: Number;
|
||||
|
||||
@Column({ type: "float8", nullable: true })
|
||||
param_max: Number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
param_unit: string;
|
||||
|
||||
@Column({ type: "smallint", default: 0 })
|
||||
level: Number;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
46
src/entity/remit_config_transaction_types.ts
Normal file
46
src/entity/remit_config_transaction_types.ts
Normal file
@ -0,0 +1,46 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
||||
|
||||
import { Status } from "../types/status";
|
||||
import { RemitRiskLevel } from "../types/remit";
|
||||
|
||||
@Entity("remit_config_transaction_types", { schema: "remits" })
|
||||
export class RemitConfigTransactionTypes {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 256,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({ type: "smallint", default: 0 })
|
||||
level: Number;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
length: 64,
|
||||
})
|
||||
status: Status;
|
||||
|
||||
@Column()
|
||||
@CreateDateColumn()
|
||||
created_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
created_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@UpdateDateColumn()
|
||||
updated_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
updated_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
@DeleteDateColumn()
|
||||
deleted_at: Date;
|
||||
|
||||
@Column({ nullable: true, length: 256 })
|
||||
deleted_by: string;
|
||||
}
|
||||
14
src/index.ts
14
src/index.ts
@ -109,6 +109,13 @@ import { RemitSender } from "./entity/remit_senders";
|
||||
import { RemitSenderIdentity } from "./entity/remit_sender_identities";
|
||||
import { RemitTransaction } from "./entity/remit_transactions";
|
||||
import { RemitConfigRelation } from "./entity/remit_config_relations";
|
||||
import { RemitConfigBusinessField } from "./entity/remit_config_business_fields";
|
||||
import { RemitConfigMunisipo } from "./entity/remit_config_munisipos";
|
||||
import { RemitConfigBeneficiaryProvince } from "./entity/remit_config_beneficiary_provinces";
|
||||
import { RemitConfigTransactionTypes } from "./entity/remit_config_transaction_types";
|
||||
import { RemitConfigChannel } from "./entity/remit_config_channels";
|
||||
import { RemitConfigTransactionInfo } from "./entity/remit_config_transaction_infos";
|
||||
import { RemitConfigBoom } from "./entity/remit_config_booms";
|
||||
|
||||
import {
|
||||
RemitPartnerType, //
|
||||
@ -386,6 +393,13 @@ export {
|
||||
RemitSenderIdentity,
|
||||
RemitTransaction,
|
||||
RemitConfigRelation,
|
||||
RemitConfigBusinessField,
|
||||
RemitConfigMunisipo,
|
||||
RemitConfigBeneficiaryProvince,
|
||||
RemitConfigTransactionTypes,
|
||||
RemitConfigChannel,
|
||||
RemitConfigTransactionInfo,
|
||||
RemitConfigBoom,
|
||||
TcelConfig,
|
||||
TcelLog,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user