mfance-shark-v1 1.0.5 → 1.0.8
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/common/entities/users/distributor.entity.d.ts +16 -0
- package/dist/common/entities/users/distributor.entity.js +88 -0
- package/dist/common/entities/users/distributor.entity.js.map +1 -0
- package/dist/common/utils/constants/table-names.constant.d.ts +3 -0
- package/dist/common/utils/constants/table-names.constant.js +3 -0
- package/dist/common/utils/constants/table-names.constant.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AuditableEntity } from "@/auditable/auditable.entity";
|
|
2
|
+
export declare class Distributor extends AuditableEntity {
|
|
3
|
+
name: string;
|
|
4
|
+
distributorCode: string;
|
|
5
|
+
email: string;
|
|
6
|
+
phone: string;
|
|
7
|
+
address: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
country: string;
|
|
11
|
+
registrationChannel: string;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
isDeleted: boolean;
|
|
14
|
+
isVerified: boolean;
|
|
15
|
+
isBlocked: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Distributor = void 0;
|
|
13
|
+
const auditable_entity_1 = require("../../../auditable/auditable.entity");
|
|
14
|
+
const table_names_constant_1 = require("../../utils/constants/table-names.constant");
|
|
15
|
+
const classes_1 = require("@automapper/classes");
|
|
16
|
+
const typeorm_1 = require("typeorm");
|
|
17
|
+
let Distributor = class Distributor extends auditable_entity_1.AuditableEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.Distributor = Distributor;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, classes_1.AutoMap)(),
|
|
22
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Distributor.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, classes_1.AutoMap)(),
|
|
27
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Distributor.prototype, "distributorCode", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, classes_1.AutoMap)(),
|
|
32
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Distributor.prototype, "email", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, classes_1.AutoMap)(),
|
|
37
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Distributor.prototype, "phone", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, classes_1.AutoMap)(),
|
|
42
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Distributor.prototype, "address", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, classes_1.AutoMap)(),
|
|
47
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Distributor.prototype, "firstName", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, classes_1.AutoMap)(),
|
|
52
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Distributor.prototype, "lastName", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, classes_1.AutoMap)(),
|
|
57
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], Distributor.prototype, "country", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, classes_1.AutoMap)(),
|
|
62
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Distributor.prototype, "registrationChannel", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, classes_1.AutoMap)(),
|
|
67
|
+
(0, typeorm_1.Column)({ nullable: false, type: 'boolean', default: true }),
|
|
68
|
+
__metadata("design:type", Boolean)
|
|
69
|
+
], Distributor.prototype, "isActive", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, classes_1.AutoMap)(),
|
|
72
|
+
(0, typeorm_1.Column)({ nullable: false, type: 'boolean', default: false }),
|
|
73
|
+
__metadata("design:type", Boolean)
|
|
74
|
+
], Distributor.prototype, "isDeleted", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, classes_1.AutoMap)(),
|
|
77
|
+
(0, typeorm_1.Column)({ nullable: false, type: 'boolean', default: false }),
|
|
78
|
+
__metadata("design:type", Boolean)
|
|
79
|
+
], Distributor.prototype, "isVerified", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, classes_1.AutoMap)(),
|
|
82
|
+
(0, typeorm_1.Column)({ nullable: false, type: 'boolean', default: false }),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], Distributor.prototype, "isBlocked", void 0);
|
|
85
|
+
exports.Distributor = Distributor = __decorate([
|
|
86
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.DISTRIBUTOR)
|
|
87
|
+
], Distributor);
|
|
88
|
+
//# sourceMappingURL=distributor.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributor.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/users/distributor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAA+D;AAC/D,qFAA4E;AAC5E,iDAA8C;AAC9C,qCAAyC;AAGlC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAAe;CAuD/C,CAAA;AAvDY,kCAAW;AAGpB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;yCACf;AAIb;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACH;AAIxB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAId;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACb;AAId;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACX;AAIhB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACT;AAIlB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACV;AAIjB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACX;AAIhB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACC;AAI5B;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAI,IAAI,EAAG,SAAS,EAAG,OAAO,EAAG,IAAI,EAAC,CAAC;;6CAC9C;AAIlB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAI,IAAI,EAAG,SAAS,EAAG,OAAO,EAAG,KAAK,EAAC,CAAC;;8CAC9C;AAInB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAI,IAAI,EAAG,SAAS,EAAG,OAAO,EAAG,KAAK,EAAC,CAAC;;+CAC7C;AAIpB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAI,IAAI,EAAG,SAAS,EAAG,OAAO,EAAG,KAAK,EAAC,CAAC;;8CAC9C;sBAnDV,WAAW;IADvB,IAAA,gBAAM,EAAC,kCAAW,CAAC,WAAW,CAAC;GACnB,WAAW,CAuDvB"}
|
|
@@ -26,5 +26,8 @@ exports.TABLE_NAMES = {
|
|
|
26
26
|
ROCKS: 'rocks',
|
|
27
27
|
STOCK_STONE_PARTNER: 'stock_stone_partner',
|
|
28
28
|
CURRENCY_VALUE: 'currency_values',
|
|
29
|
+
DISTRIBUTOR: 'distributors',
|
|
30
|
+
RECHARGEMENT_DIST_REQUEST: 'rechargement_dist_requests',
|
|
31
|
+
SOLDE_DIST: 'solde_dist',
|
|
29
32
|
};
|
|
30
33
|
//# sourceMappingURL=table-names.constant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-names.constant.js","sourceRoot":"","sources":["../../../../src/common/utils/constants/table-names.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,uBAAuB;IACzC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,qBAAqB;IACpC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,gBAAgB,EAAE,mBAAmB;IACrC,cAAc,EAAE,iBAAiB;IACjC,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,iBAAiB;
|
|
1
|
+
{"version":3,"file":"table-names.constant.js","sourceRoot":"","sources":["../../../../src/common/utils/constants/table-names.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,kBAAkB;IAC/B,gBAAgB,EAAE,uBAAuB;IACzC,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,qBAAqB;IACpC,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,aAAa;IACzB,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,eAAe;IAC7B,cAAc,EAAE,iBAAiB;IACjC,SAAS,EAAE,kBAAkB;IAC7B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,eAAe;IAC7B,gBAAgB,EAAE,mBAAmB;IACrC,cAAc,EAAE,iBAAiB;IACjC,KAAK,EAAE,OAAO;IACd,mBAAmB,EAAE,qBAAqB;IAC1C,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,yBAAyB,EAAE,4BAA4B;IACvD,UAAU,EAAG,YAAY;CAC1B,CAAC"}
|