mfance-shark-v1 1.0.0 → 1.0.1
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/auditable/auditable.entity.d.ts +8 -0
- package/dist/auditable/auditable.entity.js +48 -0
- package/dist/auditable/auditable.entity.js.map +1 -0
- package/dist/auditable/auditable.repository.d.ts +7 -0
- package/dist/auditable/auditable.repository.js +14 -0
- package/dist/auditable/auditable.repository.js.map +1 -0
- package/dist/common/entities/caisse/caisse-daily-worker.entity.d.ts +12 -0
- package/dist/common/entities/caisse/caisse-daily-worker.entity.js +69 -0
- package/dist/common/entities/caisse/caisse-daily-worker.entity.js.map +1 -0
- package/dist/common/entities/caisse/caisse-operation-type.entity.d.ts +6 -0
- package/dist/common/entities/caisse/caisse-operation-type.entity.js +37 -0
- package/dist/common/entities/caisse/caisse-operation-type.entity.js.map +1 -0
- package/dist/common/entities/caisse/caisse-operation.entity.d.ts +9 -0
- package/dist/common/entities/caisse/caisse-operation.entity.js +56 -0
- package/dist/common/entities/caisse/caisse-operation.entity.js.map +1 -0
- package/dist/common/entities/caisse/caisse-type.entity.d.ts +5 -0
- package/dist/common/entities/caisse/caisse-type.entity.js +33 -0
- package/dist/common/entities/caisse/caisse-type.entity.js.map +1 -0
- package/dist/common/entities/caisse/caisse.entity.d.ts +19 -0
- package/dist/common/entities/caisse/caisse.entity.js +100 -0
- package/dist/common/entities/caisse/caisse.entity.js.map +1 -0
- package/dist/common/entities/country.entity.d.ts +10 -0
- package/dist/common/entities/country.entity.js +45 -0
- package/dist/common/entities/country.entity.js.map +1 -0
- package/dist/common/entities/currency.entity.d.ts +14 -0
- package/dist/common/entities/currency.entity.js +59 -0
- package/dist/common/entities/currency.entity.js.map +1 -0
- package/dist/common/entities/currencyValue.entity.d.ts +7 -0
- package/dist/common/entities/currencyValue.entity.js +38 -0
- package/dist/common/entities/currencyValue.entity.js.map +1 -0
- package/dist/common/entities/file.entity.d.ts +10 -0
- package/dist/common/entities/file.entity.js +43 -0
- package/dist/common/entities/file.entity.js.map +1 -0
- package/dist/common/entities/index.d.ts +23 -0
- package/dist/common/entities/index.js +40 -0
- package/dist/common/entities/index.js.map +1 -0
- package/dist/common/entities/operation.entity.d.ts +4 -0
- package/dist/common/entities/operation.entity.js +26 -0
- package/dist/common/entities/operation.entity.js.map +1 -0
- package/dist/common/entities/payment-method.entity.d.ts +5 -0
- package/dist/common/entities/payment-method.entity.js +30 -0
- package/dist/common/entities/payment-method.entity.js.map +1 -0
- package/dist/common/entities/permission.entity.d.ts +6 -0
- package/dist/common/entities/permission.entity.js +32 -0
- package/dist/common/entities/permission.entity.js.map +1 -0
- package/dist/common/entities/rock.entity.d.ts +8 -0
- package/dist/common/entities/rock.entity.js +43 -0
- package/dist/common/entities/rock.entity.js.map +1 -0
- package/dist/common/entities/role.entity.d.ts +8 -0
- package/dist/common/entities/role.entity.js +41 -0
- package/dist/common/entities/role.entity.js.map +1 -0
- package/dist/common/entities/sale-point.entity.d.ts +11 -0
- package/dist/common/entities/sale-point.entity.js +55 -0
- package/dist/common/entities/sale-point.entity.js.map +1 -0
- package/dist/common/entities/soldes/solde-caisse.entity.d.ts +12 -0
- package/dist/common/entities/soldes/solde-caisse.entity.js +63 -0
- package/dist/common/entities/soldes/solde-caisse.entity.js.map +1 -0
- package/dist/common/entities/soldes/solde-customer.entity.d.ts +12 -0
- package/dist/common/entities/soldes/solde-customer.entity.js +66 -0
- package/dist/common/entities/soldes/solde-customer.entity.js.map +1 -0
- package/dist/common/entities/soldes/solde-operation.entity.d.ts +5 -0
- package/dist/common/entities/soldes/solde-operation.entity.js +33 -0
- package/dist/common/entities/soldes/solde-operation.entity.js.map +1 -0
- package/dist/common/entities/stock-partner.entity.d.ts +15 -0
- package/dist/common/entities/stock-partner.entity.js +80 -0
- package/dist/common/entities/stock-partner.entity.js.map +1 -0
- package/dist/common/entities/stock-sale-point.entity.d.ts +15 -0
- package/dist/common/entities/stock-sale-point.entity.js +80 -0
- package/dist/common/entities/stock-sale-point.entity.js.map +1 -0
- package/dist/common/entities/stock-stone-partner.entity.d.ts +17 -0
- package/dist/common/entities/stock-stone-partner.entity.js +90 -0
- package/dist/common/entities/stock-stone-partner.entity.js.map +1 -0
- package/dist/common/entities/stock.entity.d.ts +13 -0
- package/dist/common/entities/stock.entity.js +66 -0
- package/dist/common/entities/stock.entity.js.map +1 -0
- package/dist/common/entities/transaction.entity.d.ts +19 -0
- package/dist/common/entities/transaction.entity.js +117 -0
- package/dist/common/entities/transaction.entity.js.map +1 -0
- package/dist/common/entities/user.entity.d.ts +24 -0
- package/dist/common/entities/user.entity.js +86 -0
- package/dist/common/entities/user.entity.js.map +1 -0
- package/dist/common/enums/caisse-ops.enum.d.ts +7 -0
- package/dist/common/enums/caisse-ops.enum.js +12 -0
- package/dist/common/enums/caisse-ops.enum.js.map +1 -0
- package/dist/common/enums/crud-doc.enum.d.ts +8 -0
- package/dist/common/enums/crud-doc.enum.js +13 -0
- package/dist/common/enums/crud-doc.enum.js.map +1 -0
- package/dist/common/enums/entity-type.enum.d.ts +3 -0
- package/dist/common/enums/entity-type.enum.js +8 -0
- package/dist/common/enums/entity-type.enum.js.map +1 -0
- package/dist/common/enums/field-name-type.enum.d.ts +4 -0
- package/dist/common/enums/field-name-type.enum.js +9 -0
- package/dist/common/enums/field-name-type.enum.js.map +1 -0
- package/dist/common/enums/gender-type.enum.d.ts +5 -0
- package/dist/common/enums/gender-type.enum.js +10 -0
- package/dist/common/enums/gender-type.enum.js.map +1 -0
- package/dist/common/enums/permission-verbs.enum.d.ts +6 -0
- package/dist/common/enums/permission-verbs.enum.js +11 -0
- package/dist/common/enums/permission-verbs.enum.js.map +1 -0
- package/dist/common/enums/permission.enum.d.ts +2 -0
- package/dist/common/enums/permission.enum.js +7 -0
- package/dist/common/enums/permission.enum.js.map +1 -0
- package/dist/common/enums/permissions/caisse.enum.d.ts +6 -0
- package/dist/common/enums/permissions/caisse.enum.js +13 -0
- package/dist/common/enums/permissions/caisse.enum.js.map +1 -0
- package/dist/common/enums/permissions/country.enum.d.ts +6 -0
- package/dist/common/enums/permissions/country.enum.js +13 -0
- package/dist/common/enums/permissions/country.enum.js.map +1 -0
- package/dist/common/enums/permissions/permission.enum.d.ts +6 -0
- package/dist/common/enums/permissions/permission.enum.js +13 -0
- package/dist/common/enums/permissions/permission.enum.js.map +1 -0
- package/dist/common/enums/permissions/role.enum.d.ts +6 -0
- package/dist/common/enums/permissions/role.enum.js +13 -0
- package/dist/common/enums/permissions/role.enum.js.map +1 -0
- package/dist/common/enums/permissions/user.enum.d.ts +6 -0
- package/dist/common/enums/permissions/user.enum.js +13 -0
- package/dist/common/enums/permissions/user.enum.js.map +1 -0
- package/dist/common/enums/response-message.enum.d.ts +5 -0
- package/dist/common/enums/response-message.enum.js +10 -0
- package/dist/common/enums/response-message.enum.js.map +1 -0
- package/dist/common/enums/role.enum.d.ts +7 -0
- package/dist/common/enums/role.enum.js +12 -0
- package/dist/common/enums/role.enum.js.map +1 -0
- package/dist/common/enums/transaction-status.enum.d.ts +6 -0
- package/dist/common/enums/transaction-status.enum.js +11 -0
- package/dist/common/enums/transaction-status.enum.js.map +1 -0
- package/dist/common/utils/constants/interceptors-files-objects-list.constant.d.ts +4 -0
- package/dist/common/utils/constants/interceptors-files-objects-list.constant.js +9 -0
- package/dist/common/utils/constants/interceptors-files-objects-list.constant.js.map +1 -0
- package/dist/common/utils/constants/permissions-key.constant.d.ts +1 -0
- package/dist/common/utils/constants/permissions-key.constant.js +5 -0
- package/dist/common/utils/constants/permissions-key.constant.js.map +1 -0
- package/dist/common/utils/constants/redirect-link.constant.d.ts +3 -0
- package/dist/common/utils/constants/redirect-link.constant.js +7 -0
- package/dist/common/utils/constants/redirect-link.constant.js.map +1 -0
- package/dist/common/utils/constants/roles-key.constant.d.ts +1 -0
- package/dist/common/utils/constants/roles-key.constant.js +5 -0
- package/dist/common/utils/constants/roles-key.constant.js.map +1 -0
- package/dist/common/utils/constants/table-names.constant.d.ts +26 -0
- package/dist/common/utils/constants/table-names.constant.js +30 -0
- package/dist/common/utils/constants/table-names.constant.js.map +1 -0
- package/dist/common/utils/constants/token-lifetime.constant.d.ts +4 -0
- package/dist/common/utils/constants/token-lifetime.constant.js +8 -0
- package/dist/common/utils/constants/token-lifetime.constant.js.map +1 -0
- package/dist/common/utils/constants/typeorm-ex-custom.constant.d.ts +1 -0
- package/dist/common/utils/constants/typeorm-ex-custom.constant.js +5 -0
- package/dist/common/utils/constants/typeorm-ex-custom.constant.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -16
|
@@ -0,0 +1,38 @@
|
|
|
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.CurrencyValue = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const currency_entity_1 = require("./currency.entity");
|
|
15
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
16
|
+
const classes_1 = require("@automapper/classes");
|
|
17
|
+
let CurrencyValue = class CurrencyValue extends auditable_entity_1.AuditableEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.CurrencyValue = CurrencyValue;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CurrencyValue.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, classes_1.AutoMap)(),
|
|
26
|
+
(0, typeorm_1.ManyToOne)(() => currency_entity_1.Currency, (currency) => currency.currencyValues),
|
|
27
|
+
(0, typeorm_1.JoinColumn)(),
|
|
28
|
+
__metadata("design:type", currency_entity_1.Currency)
|
|
29
|
+
], CurrencyValue.prototype, "currency", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, classes_1.AutoMap)(),
|
|
32
|
+
(0, typeorm_1.Column)({ type: 'decimal', precision: 10, scale: 2 }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], CurrencyValue.prototype, "value", void 0);
|
|
35
|
+
exports.CurrencyValue = CurrencyValue = __decorate([
|
|
36
|
+
(0, typeorm_1.Entity)()
|
|
37
|
+
], CurrencyValue);
|
|
38
|
+
//# sourceMappingURL=currencyValue.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currencyValue.entity.js","sourceRoot":"","sources":["../../../src/common/entities/currencyValue.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAMiB;AACjB,uDAA6C;AAC7C,uEAAmE;AACnE,iDAA8C;AAGvC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,kCAAe;CAYjD,CAAA;AAZY,sCAAa;AAExB;IADC,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACpB;AAKX;IAHC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;IAChE,IAAA,oBAAU,GAAE;8BACH,0BAAQ;+CAAC;AAInB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;;4CACvC;wBAXH,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAYzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AuditableEntity } from '../../auditable/auditable.entity';
|
|
2
|
+
import { FieldNameType } from '../enums/field-name-type.enum';
|
|
3
|
+
import { EntityType } from '../enums/entity-type.enum';
|
|
4
|
+
export declare class File extends AuditableEntity {
|
|
5
|
+
filePath: string;
|
|
6
|
+
mimetype: string;
|
|
7
|
+
fileType: FieldNameType;
|
|
8
|
+
entityType: EntityType;
|
|
9
|
+
entityId: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.File = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
15
|
+
const field_name_type_enum_1 = require("../enums/field-name-type.enum");
|
|
16
|
+
const entity_type_enum_1 = require("../enums/entity-type.enum");
|
|
17
|
+
let File = class File extends auditable_entity_1.AuditableEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.File = File;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ name: 'file_path', nullable: true }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], File.prototype, "filePath", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], File.prototype, "mimetype", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ name: 'file_type', nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], File.prototype, "fileType", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ name: 'entity_type', nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], File.prototype, "entityType", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ name: 'entity_id', nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], File.prototype, "entityId", void 0);
|
|
40
|
+
exports.File = File = __decorate([
|
|
41
|
+
(0, typeorm_1.Entity)('files')
|
|
42
|
+
], File);
|
|
43
|
+
//# sourceMappingURL=file.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../src/common/entities/file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,uEAAmE;AACnE,wEAA8D;AAC9D,gEAAuD;AAGhD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,kCAAe;CAexC,CAAA;AAfY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC7B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACV;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACtB;AAGxB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACzB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAC7B;eAdN,IAAI;IADhB,IAAA,gBAAM,EAAC,OAAO,CAAC;GACH,IAAI,CAehB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from './file.entity';
|
|
2
|
+
export * from './user.entity';
|
|
3
|
+
export * from './caisse/caisse-daily-worker.entity';
|
|
4
|
+
export * from './caisse/caisse.entity';
|
|
5
|
+
export * from './caisse/caisse-operation.entity';
|
|
6
|
+
export * from './caisse/caisse-type.entity';
|
|
7
|
+
export * from './caisse/caisse-operation.entity';
|
|
8
|
+
export * from './caisse/caisse.entity';
|
|
9
|
+
export * from './role.entity';
|
|
10
|
+
export * from './permission.entity';
|
|
11
|
+
export * from './country.entity';
|
|
12
|
+
export * from './sale-point.entity';
|
|
13
|
+
export * from './currency.entity';
|
|
14
|
+
export * from './soldes/solde-caisse.entity';
|
|
15
|
+
export * from './soldes/solde-customer.entity';
|
|
16
|
+
export * from './soldes/solde-operation.entity';
|
|
17
|
+
export * from './stock.entity';
|
|
18
|
+
export * from './transaction.entity';
|
|
19
|
+
export * from './operation.entity';
|
|
20
|
+
export * from './stock-partner.entity';
|
|
21
|
+
export * from './stock-sale-point.entity';
|
|
22
|
+
export * from './currencyValue.entity';
|
|
23
|
+
export * from './stock-stone-partner.entity';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./file.entity"), exports);
|
|
18
|
+
__exportStar(require("./user.entity"), exports);
|
|
19
|
+
__exportStar(require("./caisse/caisse-daily-worker.entity"), exports);
|
|
20
|
+
__exportStar(require("./caisse/caisse.entity"), exports);
|
|
21
|
+
__exportStar(require("./caisse/caisse-operation.entity"), exports);
|
|
22
|
+
__exportStar(require("./caisse/caisse-type.entity"), exports);
|
|
23
|
+
__exportStar(require("./caisse/caisse-operation.entity"), exports);
|
|
24
|
+
__exportStar(require("./caisse/caisse.entity"), exports);
|
|
25
|
+
__exportStar(require("./role.entity"), exports);
|
|
26
|
+
__exportStar(require("./permission.entity"), exports);
|
|
27
|
+
__exportStar(require("./country.entity"), exports);
|
|
28
|
+
__exportStar(require("./sale-point.entity"), exports);
|
|
29
|
+
__exportStar(require("./currency.entity"), exports);
|
|
30
|
+
__exportStar(require("./soldes/solde-caisse.entity"), exports);
|
|
31
|
+
__exportStar(require("./soldes/solde-customer.entity"), exports);
|
|
32
|
+
__exportStar(require("./soldes/solde-operation.entity"), exports);
|
|
33
|
+
__exportStar(require("./stock.entity"), exports);
|
|
34
|
+
__exportStar(require("./transaction.entity"), exports);
|
|
35
|
+
__exportStar(require("./operation.entity"), exports);
|
|
36
|
+
__exportStar(require("./stock-partner.entity"), exports);
|
|
37
|
+
__exportStar(require("./stock-sale-point.entity"), exports);
|
|
38
|
+
__exportStar(require("./currencyValue.entity"), exports);
|
|
39
|
+
__exportStar(require("./stock-stone-partner.entity"), exports);
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,gDAA8B;AAC9B,sEAAoD;AACpD,yDAAuC;AACvC,mEAAiD;AACjD,8DAA4C;AAC5C,mEAAiD;AACjD,yDAAuC;AACvC,gDAA8B;AAC9B,sDAAoC;AACpC,mDAAiC;AACjC,sDAAoC;AACpC,oDAAkC;AAClC,+DAA6C;AAC7C,iEAA+C;AAC/C,kEAAgD;AAChD,iDAA+B;AAC/B,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,4DAA0C;AAC1C,yDAAuC;AACvC,+DAA6C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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.Operation = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
15
|
+
const table_names_constant_1 = require("../utils/constants/table-names.constant");
|
|
16
|
+
let Operation = class Operation extends auditable_entity_1.AuditableEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.Operation = Operation;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Operation.prototype, "libelle", void 0);
|
|
23
|
+
exports.Operation = Operation = __decorate([
|
|
24
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.OPERATION)
|
|
25
|
+
], Operation);
|
|
26
|
+
//# sourceMappingURL=operation.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.entity.js","sourceRoot":"","sources":["../../../src/common/entities/operation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAiD;AACjD,uEAAmE;AACnE,kFAAsE;AAG/D,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,kCAAe;CAG7C,CAAA;AAHY,8BAAS;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;0CACZ;oBAFL,SAAS;IADrB,IAAA,gBAAM,EAAC,kCAAW,CAAC,SAAS,CAAC;GACjB,SAAS,CAGrB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.PaymentMethod = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
15
|
+
const table_names_constant_1 = require("../utils/constants/table-names.constant");
|
|
16
|
+
let PaymentMethod = class PaymentMethod extends auditable_entity_1.AuditableEntity {
|
|
17
|
+
};
|
|
18
|
+
exports.PaymentMethod = PaymentMethod;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], PaymentMethod.prototype, "libelle", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PaymentMethod.prototype, "description", void 0);
|
|
27
|
+
exports.PaymentMethod = PaymentMethod = __decorate([
|
|
28
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.PAYMENT_METHOD)
|
|
29
|
+
], PaymentMethod);
|
|
30
|
+
//# sourceMappingURL=payment-method.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-method.entity.js","sourceRoot":"","sources":["../../../src/common/entities/payment-method.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAyC;AACzC,uEAAmE;AACnE,kFAAsE;AAG/D,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,kCAAe;CAKjD,CAAA;AALY,sCAAa;AAExB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;8CACZ;AAEhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACP;wBAJT,aAAa;IADzB,IAAA,gBAAM,EAAC,kCAAW,CAAC,cAAc,CAAC;GACtB,aAAa,CAKzB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.Permission = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
15
|
+
const table_names_constant_1 = require("../utils/constants/table-names.constant");
|
|
16
|
+
const role_entity_1 = require("./role.entity");
|
|
17
|
+
let Permission = class Permission extends auditable_entity_1.AuditableEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.Permission = Permission;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Permission.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.ManyToMany)(() => role_entity_1.Role, (role) => role.permissions),
|
|
26
|
+
__metadata("design:type", Array)
|
|
27
|
+
], Permission.prototype, "roles", void 0);
|
|
28
|
+
exports.Permission = Permission = __decorate([
|
|
29
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.PERMISSION),
|
|
30
|
+
(0, typeorm_1.Unique)(['name'])
|
|
31
|
+
], Permission);
|
|
32
|
+
//# sourceMappingURL=permission.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../../src/common/entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAA6D;AAC7D,uEAAmE;AACnE,kFAAsE;AACtE,+CAAqC;AAI9B,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,kCAAe;CAM9C,CAAA;AANY,gCAAU;AAErB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;wCACf;AAGb;IADC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC;;yCACrC;qBALH,UAAU;IAFtB,IAAA,gBAAM,EAAC,kCAAW,CAAC,UAAU,CAAC;IAC9B,IAAA,gBAAM,EAAC,CAAC,MAAM,CAAC,CAAC;GACJ,UAAU,CAMtB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AuditableEntity } from '../../auditable/auditable.entity';
|
|
2
|
+
import { StockStonePartner } from './stock-stone-partner.entity';
|
|
3
|
+
export declare class Rock extends AuditableEntity {
|
|
4
|
+
name: string;
|
|
5
|
+
code: string;
|
|
6
|
+
disabledAt: Date;
|
|
7
|
+
stockStonePartners: StockStonePartner[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.Rock = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
15
|
+
const table_names_constant_1 = require("../utils/constants/table-names.constant");
|
|
16
|
+
const classes_1 = require("@automapper/classes");
|
|
17
|
+
const stock_stone_partner_entity_1 = require("./stock-stone-partner.entity");
|
|
18
|
+
let Rock = class Rock extends auditable_entity_1.AuditableEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.Rock = Rock;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, classes_1.AutoMap)(),
|
|
23
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Rock.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, classes_1.AutoMap)(),
|
|
28
|
+
(0, typeorm_1.Column)({ name: 'code', nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Rock.prototype, "code", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)({ name: 'disabled_at', nullable: true }),
|
|
33
|
+
__metadata("design:type", Date)
|
|
34
|
+
], Rock.prototype, "disabledAt", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.OneToMany)(() => stock_stone_partner_entity_1.StockStonePartner, (stockStonePartner) => stockStonePartner.rock),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], Rock.prototype, "stockStonePartners", void 0);
|
|
39
|
+
exports.Rock = Rock = __decorate([
|
|
40
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.ROCKS),
|
|
41
|
+
(0, typeorm_1.Unique)(['name'])
|
|
42
|
+
], Rock);
|
|
43
|
+
//# sourceMappingURL=rock.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rock.entity.js","sourceRoot":"","sources":["../../../src/common/entities/rock.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAwE;AACxE,uEAAmE;AACnE,kFAAsE;AAEtE,iDAA8C;AAC9C,6EAAiE;AAI1D,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,kCAAe;CAexC,CAAA;AAfY,oBAAI;AAGf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kCACf;AAGb;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kCAC5B;AAEb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,IAAI;wCAAC;AAMjB;IAJC,IAAA,mBAAS,EACR,GAAG,EAAE,CAAC,8CAAiB,EACvB,CAAC,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAC9C;;gDACuC;eAd7B,IAAI;IAFhB,IAAA,gBAAM,EAAC,kCAAW,CAAC,KAAK,CAAC;IACzB,IAAA,gBAAM,EAAC,CAAC,MAAM,CAAC,CAAC;GACJ,IAAI,CAehB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AuditableEntity } from '../../auditable/auditable.entity';
|
|
2
|
+
import { Permission } from './permission.entity';
|
|
3
|
+
import { User } from './user.entity';
|
|
4
|
+
export declare class Role extends AuditableEntity {
|
|
5
|
+
name: string;
|
|
6
|
+
permissions: Permission[];
|
|
7
|
+
users: User[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.Role = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
15
|
+
const table_names_constant_1 = require("../utils/constants/table-names.constant");
|
|
16
|
+
const permission_entity_1 = require("./permission.entity");
|
|
17
|
+
const user_entity_1 = require("./user.entity");
|
|
18
|
+
let Role = class Role extends auditable_entity_1.AuditableEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.Role = Role;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Role.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.ManyToMany)(() => permission_entity_1.Permission, (permission) => permission.roles),
|
|
27
|
+
(0, typeorm_1.JoinTable)(),
|
|
28
|
+
__metadata("design:type", Array)
|
|
29
|
+
], Role.prototype, "permissions", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.OneToMany)(() => user_entity_1.User, (user) => user.role, {
|
|
32
|
+
onDelete: 'CASCADE',
|
|
33
|
+
onUpdate: 'CASCADE',
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], Role.prototype, "users", void 0);
|
|
37
|
+
exports.Role = Role = __decorate([
|
|
38
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.ROLE),
|
|
39
|
+
(0, typeorm_1.Unique)(['name'])
|
|
40
|
+
], Role);
|
|
41
|
+
//# sourceMappingURL=role.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../../src/common/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAOiB;AACjB,uEAAmE;AACnE,kFAAsE;AACtE,2DAAiD;AACjD,+CAAqC;AAK9B,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,kCAAe;CAaxC,CAAA;AAbY,oBAAI;AAEf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;kCACf;AAIb;IAFC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,8BAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IAC9D,IAAA,mBAAS,GAAE;;yCACc;AAM1B;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE;QAC1C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;;mCACY;eAZH,IAAI;IAFhB,IAAA,gBAAM,EAAC,kCAAW,CAAC,IAAI,CAAC;IACxB,IAAA,gBAAM,EAAC,CAAC,MAAM,CAAC,CAAC;GACJ,IAAI,CAahB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuditableEntity } from '../../auditable/auditable.entity';
|
|
2
|
+
import { Country } from './country.entity';
|
|
3
|
+
export declare class SalePoint extends AuditableEntity {
|
|
4
|
+
name: string;
|
|
5
|
+
domain: string;
|
|
6
|
+
logo: string;
|
|
7
|
+
disabledAt: Date;
|
|
8
|
+
country: Country;
|
|
9
|
+
address: string;
|
|
10
|
+
contact: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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.SalePoint = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
15
|
+
const table_names_constant_1 = require("../utils/constants/table-names.constant");
|
|
16
|
+
const country_entity_1 = require("./country.entity");
|
|
17
|
+
let SalePoint = class SalePoint extends auditable_entity_1.AuditableEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.SalePoint = SalePoint;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.Column)({ nullable: false }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SalePoint.prototype, "name", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SalePoint.prototype, "domain", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SalePoint.prototype, "logo", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)({ name: 'disabled_at', nullable: true }),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], SalePoint.prototype, "disabledAt", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => country_entity_1.Country, (country) => country.salePoints, {
|
|
38
|
+
onDelete: 'CASCADE',
|
|
39
|
+
onUpdate: 'CASCADE',
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", country_entity_1.Country)
|
|
42
|
+
], SalePoint.prototype, "country", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], SalePoint.prototype, "address", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], SalePoint.prototype, "contact", void 0);
|
|
51
|
+
exports.SalePoint = SalePoint = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.SALE_POINT),
|
|
53
|
+
(0, typeorm_1.Unique)(['name'])
|
|
54
|
+
], SalePoint);
|
|
55
|
+
//# sourceMappingURL=sale-point.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sale-point.entity.js","sourceRoot":"","sources":["../../../src/common/entities/sale-point.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAwE;AACxE,uEAAmE;AACnE,kFAAsE;AACtE,qDAA2C;AAIpC,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,kCAAe;CA0B7C,CAAA;AA1BY,8BAAS;AAEpB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;uCACf;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACZ;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACd;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,IAAI;6CAAC;AAMjB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,EAAE;QACzD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACO,wBAAO;0CAAC;AAIjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACX;AAIhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACX;oBAzBL,SAAS;IAFrB,IAAA,gBAAM,EAAC,kCAAW,CAAC,UAAU,CAAC;IAC9B,IAAA,gBAAM,EAAC,CAAC,MAAM,CAAC,CAAC;GACJ,SAAS,CA0BrB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AuditableEntity } from '../../../auditable/auditable.entity';
|
|
2
|
+
import { Caisse } from '../caisse/caisse.entity';
|
|
3
|
+
import { CaisseOperationType } from '../caisse/caisse-operation-type.entity';
|
|
4
|
+
import { Transaction } from '../transaction.entity';
|
|
5
|
+
export declare class SoldeCaisses extends AuditableEntity {
|
|
6
|
+
caisse: Caisse;
|
|
7
|
+
amount: number;
|
|
8
|
+
oldBalance: number;
|
|
9
|
+
newBalance: number;
|
|
10
|
+
caisseOpsType: CaisseOperationType;
|
|
11
|
+
transaction: Transaction;
|
|
12
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.SoldeCaisses = 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 typeorm_1 = require("typeorm");
|
|
16
|
+
const caisse_entity_1 = require("../caisse/caisse.entity");
|
|
17
|
+
const caisse_operation_type_entity_1 = require("../caisse/caisse-operation-type.entity");
|
|
18
|
+
const classes_1 = require("@automapper/classes");
|
|
19
|
+
const transaction_entity_1 = require("../transaction.entity");
|
|
20
|
+
let SoldeCaisses = class SoldeCaisses extends auditable_entity_1.AuditableEntity {
|
|
21
|
+
};
|
|
22
|
+
exports.SoldeCaisses = SoldeCaisses;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, classes_1.AutoMap)(),
|
|
25
|
+
(0, typeorm_1.ManyToOne)(() => caisse_entity_1.Caisse, (caisse) => caisse.id),
|
|
26
|
+
(0, typeorm_1.JoinColumn)(),
|
|
27
|
+
__metadata("design:type", caisse_entity_1.Caisse)
|
|
28
|
+
], SoldeCaisses.prototype, "caisse", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, classes_1.AutoMap)(),
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'float', nullable: true }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], SoldeCaisses.prototype, "amount", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, classes_1.AutoMap)(),
|
|
36
|
+
(0, typeorm_1.Column)({ name: 'old_balance', type: 'float', nullable: true }),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], SoldeCaisses.prototype, "oldBalance", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, classes_1.AutoMap)(),
|
|
41
|
+
(0, typeorm_1.Column)({ name: 'new_balance', type: 'float', nullable: true }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], SoldeCaisses.prototype, "newBalance", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, classes_1.AutoMap)(),
|
|
46
|
+
(0, typeorm_1.ManyToOne)(() => caisse_operation_type_entity_1.CaisseOperationType, (caisseOps) => caisseOps.id),
|
|
47
|
+
(0, typeorm_1.JoinColumn)(),
|
|
48
|
+
__metadata("design:type", caisse_operation_type_entity_1.CaisseOperationType)
|
|
49
|
+
], SoldeCaisses.prototype, "caisseOpsType", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, classes_1.AutoMap)(),
|
|
52
|
+
(0, typeorm_1.ManyToOne)(() => transaction_entity_1.Transaction, (transaction) => transaction.id, {
|
|
53
|
+
nullable: true,
|
|
54
|
+
onDelete: 'CASCADE',
|
|
55
|
+
onUpdate: 'CASCADE',
|
|
56
|
+
}),
|
|
57
|
+
(0, typeorm_1.JoinColumn)(),
|
|
58
|
+
__metadata("design:type", transaction_entity_1.Transaction)
|
|
59
|
+
], SoldeCaisses.prototype, "transaction", void 0);
|
|
60
|
+
exports.SoldeCaisses = SoldeCaisses = __decorate([
|
|
61
|
+
(0, typeorm_1.Entity)(table_names_constant_1.TABLE_NAMES.SOLDE_CAISSE)
|
|
62
|
+
], SoldeCaisses);
|
|
63
|
+
//# sourceMappingURL=solde-caisse.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solde-caisse.entity.js","sourceRoot":"","sources":["../../../../src/common/entities/soldes/solde-caisse.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0EAAsE;AACtE,qFAAyE;AACzE,qCAAgE;AAChE,2DAAiD;AACjD,yFAA6E;AAC7E,iDAA8C;AAC9C,8DAAoD;AAG7C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,kCAAe;CA0BhD,CAAA;AA1BY,oCAAY;AAIvB;IAHC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;IAC9C,IAAA,oBAAU,GAAE;8BACL,sBAAM;4CAAC;AAGf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC3B;AAGf;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC5C;AAGnB;IAFC,IAAA,iBAAO,GAAE;IACT,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC5C;AAInB;IAHC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kDAAmB,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;IACjE,IAAA,oBAAU,GAAE;8BACE,kDAAmB;mDAAC;AAQnC;IAPC,IAAA,iBAAO,GAAE;IACT,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QAC7D,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,gCAAW;iDAAC;uBAzBd,YAAY;IADxB,IAAA,gBAAM,EAAC,kCAAW,CAAC,YAAY,CAAC;GACpB,YAAY,CA0BxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AuditableEntity } from '../../../auditable/auditable.entity';
|
|
2
|
+
import { User } from '../user.entity';
|
|
3
|
+
import { SoldeOperations } from './solde-operation.entity';
|
|
4
|
+
import { Transaction } from '../transaction.entity';
|
|
5
|
+
export declare class SoldeCustomers extends AuditableEntity {
|
|
6
|
+
user: User;
|
|
7
|
+
amount: number;
|
|
8
|
+
oldBalance: number;
|
|
9
|
+
newBalance: number;
|
|
10
|
+
soldeOpsType: SoldeOperations;
|
|
11
|
+
transaction: Transaction;
|
|
12
|
+
}
|