@ashutoshvohra136/tenant-db-contract 1.0.0
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/.prettierrc +32 -0
- package/README.md +12 -0
- package/dist/constants/alert-messages.d.ts +10 -0
- package/dist/constants/alert-messages.js +14 -0
- package/dist/constants/common.option.d.ts +7 -0
- package/dist/constants/common.option.js +10 -0
- package/dist/constants/context.option.d.ts +4 -0
- package/dist/constants/context.option.js +8 -0
- package/dist/constants/date-time.option.d.ts +5 -0
- package/dist/constants/date-time.option.js +21 -0
- package/dist/constants/encryption.option.d.ts +4 -0
- package/dist/constants/encryption.option.js +8 -0
- package/dist/constants/events.option.d.ts +6 -0
- package/dist/constants/events.option.js +10 -0
- package/dist/constants/roles.option.d.ts +8 -0
- package/dist/constants/roles.option.js +12 -0
- package/dist/constants/status-code.option.d.ts +4 -0
- package/dist/constants/status-code.option.js +31 -0
- package/dist/entities/AchievementHistory.d.ts +11 -0
- package/dist/entities/AchievementHistory.js +48 -0
- package/dist/entities/AlertMessages.d.ts +9 -0
- package/dist/entities/AlertMessages.js +45 -0
- package/dist/entities/Analysis.d.ts +17 -0
- package/dist/entities/Analysis.js +68 -0
- package/dist/entities/Answers.d.ts +10 -0
- package/dist/entities/Answers.js +45 -0
- package/dist/entities/ApiResponses.d.ts +14 -0
- package/dist/entities/ApiResponses.js +63 -0
- package/dist/entities/Attachments.d.ts +24 -0
- package/dist/entities/Attachments.js +95 -0
- package/dist/entities/AttendanceDetails.d.ts +25 -0
- package/dist/entities/AttendanceDetails.js +111 -0
- package/dist/entities/BeatPlanCheckIns.d.ts +23 -0
- package/dist/entities/BeatPlanCheckIns.js +96 -0
- package/dist/entities/BeatPlanVisits.d.ts +28 -0
- package/dist/entities/BeatPlanVisits.js +109 -0
- package/dist/entities/BranchManagerBrandsMappings.d.ts +11 -0
- package/dist/entities/BranchManagerBrandsMappings.js +53 -0
- package/dist/entities/BranchManagerMerchandiserMappings.d.ts +12 -0
- package/dist/entities/BranchManagerMerchandiserMappings.js +75 -0
- package/dist/entities/BrandWiseCategory.d.ts +10 -0
- package/dist/entities/BrandWiseCategory.js +44 -0
- package/dist/entities/Brands.d.ts +25 -0
- package/dist/entities/Brands.js +91 -0
- package/dist/entities/Category.d.ts +17 -0
- package/dist/entities/Category.js +70 -0
- package/dist/entities/DamagedProductsRequests.d.ts +12 -0
- package/dist/entities/DamagedProductsRequests.js +50 -0
- package/dist/entities/DamagedProductsRequestsDetails.d.ts +19 -0
- package/dist/entities/DamagedProductsRequestsDetails.js +74 -0
- package/dist/entities/Enum/ImageType.d.ts +8 -0
- package/dist/entities/Enum/ImageType.js +12 -0
- package/dist/entities/Enum/LogType.d.ts +9 -0
- package/dist/entities/Enum/LogType.js +14 -0
- package/dist/entities/Enum/Months.d.ts +14 -0
- package/dist/entities/Enum/Months.js +18 -0
- package/dist/entities/Enum/UserRole.d.ts +13 -0
- package/dist/entities/Enum/UserRole.js +18 -0
- package/dist/entities/Enum/UserRosterAssignStatus.d.ts +8 -0
- package/dist/entities/Enum/UserRosterAssignStatus.js +12 -0
- package/dist/entities/Inventory.d.ts +14 -0
- package/dist/entities/Inventory.js +60 -0
- package/dist/entities/InventoryDetails.d.ts +20 -0
- package/dist/entities/InventoryDetails.js +80 -0
- package/dist/entities/LeaveRequests.d.ts +18 -0
- package/dist/entities/LeaveRequests.js +78 -0
- package/dist/entities/LeaveTypes.d.ts +12 -0
- package/dist/entities/LeaveTypes.js +50 -0
- package/dist/entities/LoginHistory.d.ts +18 -0
- package/dist/entities/LoginHistory.js +89 -0
- package/dist/entities/Notifications.d.ts +18 -0
- package/dist/entities/Notifications.js +73 -0
- package/dist/entities/Offer.d.ts +11 -0
- package/dist/entities/Offer.js +51 -0
- package/dist/entities/OfferLaunch.d.ts +10 -0
- package/dist/entities/OfferLaunch.js +44 -0
- package/dist/entities/POSMMaterials.d.ts +8 -0
- package/dist/entities/POSMMaterials.js +39 -0
- package/dist/entities/POSMRequest.d.ts +12 -0
- package/dist/entities/POSMRequest.js +50 -0
- package/dist/entities/POSMRequestDetails.d.ts +18 -0
- package/dist/entities/POSMRequestDetails.js +70 -0
- package/dist/entities/PasswordManager.d.ts +12 -0
- package/dist/entities/PasswordManager.js +57 -0
- package/dist/entities/Products.d.ts +43 -0
- package/dist/entities/Products.js +170 -0
- package/dist/entities/Question.d.ts +16 -0
- package/dist/entities/Question.js +69 -0
- package/dist/entities/Roles.d.ts +13 -0
- package/dist/entities/Roles.js +50 -0
- package/dist/entities/SalesPunch.d.ts +19 -0
- package/dist/entities/SalesPunch.js +73 -0
- package/dist/entities/SalesPunchingAIAnalysis.d.ts +11 -0
- package/dist/entities/SalesPunchingAIAnalysis.js +49 -0
- package/dist/entities/Schemes.d.ts +12 -0
- package/dist/entities/Schemes.js +53 -0
- package/dist/entities/Shifts.d.ts +14 -0
- package/dist/entities/Shifts.js +57 -0
- package/dist/entities/StockRequest.d.ts +22 -0
- package/dist/entities/StockRequest.js +88 -0
- package/dist/entities/StockRequestDetails.d.ts +20 -0
- package/dist/entities/StockRequestDetails.js +78 -0
- package/dist/entities/StoreBrandsMapping.d.ts +12 -0
- package/dist/entities/StoreBrandsMapping.js +57 -0
- package/dist/entities/StoreShifts.d.ts +13 -0
- package/dist/entities/StoreShifts.js +56 -0
- package/dist/entities/Stores.d.ts +25 -0
- package/dist/entities/Stores.js +92 -0
- package/dist/entities/Task.d.ts +19 -0
- package/dist/entities/Task.js +79 -0
- package/dist/entities/TaskAttachment.d.ts +9 -0
- package/dist/entities/TaskAttachment.js +41 -0
- package/dist/entities/TermsAndCondition.d.ts +9 -0
- package/dist/entities/TermsAndCondition.js +43 -0
- package/dist/entities/UplaodedImages.d.ts +10 -0
- package/dist/entities/UplaodedImages.js +52 -0
- package/dist/entities/UserDetails.d.ts +22 -0
- package/dist/entities/UserDetails.js +97 -0
- package/dist/entities/UserLocations.d.ts +13 -0
- package/dist/entities/UserLocations.js +62 -0
- package/dist/entities/UserQuestionAttemptHistory.d.ts +13 -0
- package/dist/entities/UserQuestionAttemptHistory.js +54 -0
- package/dist/entities/UserRoster.d.ts +17 -0
- package/dist/entities/UserRoster.js +73 -0
- package/dist/entities/UserRosterChanges.d.ts +14 -0
- package/dist/entities/UserRosterChanges.js +59 -0
- package/dist/entities/UserStoreChangedHistory.d.ts +12 -0
- package/dist/entities/UserStoreChangedHistory.js +56 -0
- package/dist/entities/UserVideosAttemptsHistory.d.ts +17 -0
- package/dist/entities/UserVideosAttemptsHistory.js +76 -0
- package/dist/entities/Users.d.ts +92 -0
- package/dist/entities/Users.js +301 -0
- package/dist/entities/Versions.d.ts +15 -0
- package/dist/entities/Versions.js +67 -0
- package/dist/entities/Videos.d.ts +17 -0
- package/dist/entities/Videos.js +62 -0
- package/dist/entities/automation_executions.entity.d.ts +7 -0
- package/dist/entities/automation_executions.entity.js +39 -0
- package/dist/entities/automations.entity.d.ts +16 -0
- package/dist/entities/automations.entity.js +75 -0
- package/dist/entities/entitiesV2/Inventory.d.ts +14 -0
- package/dist/entities/entitiesV2/Inventory.js +60 -0
- package/dist/entities/entitiesV2/InventoryDetails.d.ts +20 -0
- package/dist/entities/entitiesV2/InventoryDetails.js +80 -0
- package/dist/entities/entitiesV2/StockRequest.d.ts +22 -0
- package/dist/entities/entitiesV2/StockRequest.js +88 -0
- package/dist/entities/entitiesV2/StockRequestDetails.d.ts +20 -0
- package/dist/entities/entitiesV2/StockRequestDetails.js +78 -0
- package/dist/entities/fcm.entity.d.ts +9 -0
- package/dist/entities/fcm.entity.js +41 -0
- package/dist/entities/index.d.ts +61 -0
- package/dist/entities/index.js +126 -0
- package/dist/entities/notification-user-history.entity.d.ts +16 -0
- package/dist/entities/notification-user-history.entity.js +68 -0
- package/dist/entities/out-of-range.entity.d.ts +11 -0
- package/dist/entities/out-of-range.entity.js +49 -0
- package/dist/entities/permission-policy.entity.d.ts +7 -0
- package/dist/entities/permission-policy.entity.js +40 -0
- package/dist/entities/target.d.ts +17 -0
- package/dist/entities/target.js +72 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/package.json +17 -0
- package/src/constants/alert-messages.ts +10 -0
- package/src/constants/common.option.ts +8 -0
- package/src/constants/context.option.ts +4 -0
- package/src/constants/date-time.option.ts +19 -0
- package/src/constants/encryption.option.ts +4 -0
- package/src/constants/events.option.ts +6 -0
- package/src/constants/roles.option.ts +8 -0
- package/src/constants/status-code.option.ts +43 -0
- package/src/entities/AchievementHistory.ts +37 -0
- package/src/entities/AlertMessages.ts +33 -0
- package/src/entities/Analysis.ts +53 -0
- package/src/entities/Answers.ts +36 -0
- package/src/entities/ApiResponses.ts +45 -0
- package/src/entities/Attachments.ts +81 -0
- package/src/entities/AttendanceDetails.ts +86 -0
- package/src/entities/BeatPlanCheckIns.ts +82 -0
- package/src/entities/BeatPlanVisits.ts +88 -0
- package/src/entities/BranchManagerBrandsMappings.ts +41 -0
- package/src/entities/BranchManagerMerchandiserMappings.ts +65 -0
- package/src/entities/BrandWiseCategory.ts +32 -0
- package/src/entities/Brands.ts +73 -0
- package/src/entities/Category.ts +57 -0
- package/src/entities/DamagedProductsRequests.ts +44 -0
- package/src/entities/DamagedProductsRequestsDetails.ts +65 -0
- package/src/entities/Enum/ImageType.ts +8 -0
- package/src/entities/Enum/LogType.ts +10 -0
- package/src/entities/Enum/Months.ts +14 -0
- package/src/entities/Enum/UserRole.ts +14 -0
- package/src/entities/Enum/UserRosterAssignStatus.ts +8 -0
- package/src/entities/Inventory.ts +50 -0
- package/src/entities/InventoryDetails.ts +63 -0
- package/src/entities/LeaveRequests.ts +61 -0
- package/src/entities/LeaveTypes.ts +38 -0
- package/src/entities/LoginHistory.ts +70 -0
- package/src/entities/Notifications.ts +62 -0
- package/src/entities/Offer.ts +35 -0
- package/src/entities/OfferLaunch.ts +31 -0
- package/src/entities/POSMMaterials.ts +33 -0
- package/src/entities/POSMRequest.ts +41 -0
- package/src/entities/POSMRequestDetails.ts +59 -0
- package/src/entities/PasswordManager.ts +44 -0
- package/src/entities/Products.ts +145 -0
- package/src/entities/Question.ts +57 -0
- package/src/entities/Roles.ts +36 -0
- package/src/entities/SalesPunch.ts +63 -0
- package/src/entities/SalesPunchingAIAnalysis.ts +36 -0
- package/src/entities/Schemes.ts +39 -0
- package/src/entities/Shifts.ts +41 -0
- package/src/entities/StockRequest.ts +68 -0
- package/src/entities/StockRequestDetails.ts +63 -0
- package/src/entities/StoreBrandsMapping.ts +44 -0
- package/src/entities/StoreShifts.ts +46 -0
- package/src/entities/Stores.ts +68 -0
- package/src/entities/Task.ts +60 -0
- package/src/entities/TaskAttachment.ts +29 -0
- package/src/entities/TermsAndCondition.ts +29 -0
- package/src/entities/UplaodedImages.ts +37 -0
- package/src/entities/UserDetails.ts +74 -0
- package/src/entities/UserLocations.ts +49 -0
- package/src/entities/UserQuestionAttemptHistory.ts +49 -0
- package/src/entities/UserRoster.ts +58 -0
- package/src/entities/UserRosterChanges.ts +44 -0
- package/src/entities/UserStoreChangedHistory.ts +40 -0
- package/src/entities/UserVideosAttemptsHistory.ts +64 -0
- package/src/entities/Users.ts +259 -0
- package/src/entities/Versions.ts +47 -0
- package/src/entities/Videos.ts +48 -0
- package/src/entities/automation_executions.entity.ts +24 -0
- package/src/entities/automations.entity.ts +60 -0
- package/src/entities/entitiesV2/Inventory.ts +51 -0
- package/src/entities/entitiesV2/InventoryDetails.ts +63 -0
- package/src/entities/entitiesV2/StockRequest.ts +68 -0
- package/src/entities/entitiesV2/StockRequestDetails.ts +63 -0
- package/src/entities/fcm.entity.ts +30 -0
- package/src/entities/index.ts +61 -0
- package/src/entities/notification-user-history.entity.ts +51 -0
- package/src/entities/out-of-range.entity.ts +36 -0
- package/src/entities/permission-policy.entity.ts +25 -0
- package/src/entities/target.ts +54 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +14 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Inventory.ts
|
|
3
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
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;
|
|
7
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
+
};
|
|
9
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Inventory = void 0;
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const Users_1 = require("../Users");
|
|
16
|
+
const InventoryDetails_1 = require("./InventoryDetails");
|
|
17
|
+
let Inventory = class Inventory extends typeorm_1.BaseEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.Inventory = Inventory;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint', name: 'id' }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Inventory.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)('bigint', { name: 'user_id', nullable: true }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], Inventory.prototype, "userId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
30
|
+
__metadata("design:type", Date)
|
|
31
|
+
], Inventory.prototype, "date", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)('tinyint', { name: 'status', nullable: true, default: 0 }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], Inventory.prototype, "status", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'datetime' }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], Inventory.prototype, "created_at", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'datetime' }),
|
|
42
|
+
__metadata("design:type", Date)
|
|
43
|
+
], Inventory.prototype, "updated_at", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.ManyToOne)(() => Users_1.Users, (user) => user.inventory),
|
|
46
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id', referencedColumnName: 'id' }),
|
|
47
|
+
__metadata("design:type", Users_1.Users)
|
|
48
|
+
], Inventory.prototype, "user", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.OneToMany)(() => InventoryDetails_1.InventoryDetails, (d) => d.inventory),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], Inventory.prototype, "inventoryDetails", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.ManyToOne)(() => Users_1.Users, (users) => users.inventoryCreatedBy),
|
|
55
|
+
(0, typeorm_1.JoinColumn)({ name: 'created_by' }),
|
|
56
|
+
__metadata("design:type", Users_1.Users)
|
|
57
|
+
], Inventory.prototype, "createdBy", void 0);
|
|
58
|
+
exports.Inventory = Inventory = __decorate([
|
|
59
|
+
(0, typeorm_1.Entity)('inventory') // final table name
|
|
60
|
+
], Inventory);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { Inventory } from './Inventory';
|
|
3
|
+
import { Brands } from '../Brands';
|
|
4
|
+
import { Product } from '../Products';
|
|
5
|
+
import { Attachement } from '../Attachments';
|
|
6
|
+
export declare class InventoryDetails extends BaseEntity {
|
|
7
|
+
id: string;
|
|
8
|
+
inventoryId?: string | null;
|
|
9
|
+
brandId?: string | null;
|
|
10
|
+
productId?: string | null;
|
|
11
|
+
date: Date;
|
|
12
|
+
quantity: number;
|
|
13
|
+
status?: number;
|
|
14
|
+
created_at: Date;
|
|
15
|
+
updated_at: Date;
|
|
16
|
+
inventory?: Inventory;
|
|
17
|
+
brand?: Brands;
|
|
18
|
+
product?: Product;
|
|
19
|
+
attachment?: Attachement;
|
|
20
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.InventoryDetails = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const Inventory_1 = require("./Inventory");
|
|
15
|
+
const Brands_1 = require("../Brands");
|
|
16
|
+
const Products_1 = require("../Products");
|
|
17
|
+
const Attachments_1 = require("../Attachments");
|
|
18
|
+
let InventoryDetails = class InventoryDetails extends typeorm_1.BaseEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.InventoryDetails = InventoryDetails;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint', name: 'id' }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], InventoryDetails.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)('bigint', { name: 'inventory_id', nullable: true }) // renamed FK
|
|
27
|
+
,
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], InventoryDetails.prototype, "inventoryId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)('bigint', { name: 'brand_id', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], InventoryDetails.prototype, "brandId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)('bigint', { name: 'product_id', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], InventoryDetails.prototype, "productId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], InventoryDetails.prototype, "date", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false, default: 0 }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], InventoryDetails.prototype, "quantity", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)('tinyint', { name: 'status', nullable: true, default: 0 }),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], InventoryDetails.prototype, "status", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'datetime' }),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], InventoryDetails.prototype, "created_at", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'datetime' }),
|
|
56
|
+
__metadata("design:type", Date)
|
|
57
|
+
], InventoryDetails.prototype, "updated_at", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.ManyToOne)(() => Inventory_1.Inventory, (inventory) => inventory.inventoryDetails),
|
|
60
|
+
(0, typeorm_1.JoinColumn)([{ name: 'inventory_id' }]) // FK column
|
|
61
|
+
,
|
|
62
|
+
__metadata("design:type", Inventory_1.Inventory)
|
|
63
|
+
], InventoryDetails.prototype, "inventory", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => Brands_1.Brands, (brand) => brand.product),
|
|
66
|
+
(0, typeorm_1.JoinColumn)([{ name: 'brand_id' }]),
|
|
67
|
+
__metadata("design:type", Brands_1.Brands)
|
|
68
|
+
], InventoryDetails.prototype, "brand", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.ManyToOne)(() => Products_1.Product, (product) => product.id),
|
|
71
|
+
(0, typeorm_1.JoinColumn)([{ name: 'product_id' }]),
|
|
72
|
+
__metadata("design:type", Products_1.Product)
|
|
73
|
+
], InventoryDetails.prototype, "product", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.OneToOne)(() => Attachments_1.Attachement, (attachment) => attachment.inventoryDetails),
|
|
76
|
+
__metadata("design:type", Attachments_1.Attachement)
|
|
77
|
+
], InventoryDetails.prototype, "attachment", void 0);
|
|
78
|
+
exports.InventoryDetails = InventoryDetails = __decorate([
|
|
79
|
+
(0, typeorm_1.Entity)('inventory_details') // final table name
|
|
80
|
+
], InventoryDetails);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { Users } from '../Users';
|
|
3
|
+
import { StockRequestDetails } from './StockRequestDetails';
|
|
4
|
+
import { BeatPlanVisits } from '../BeatPlanVisits';
|
|
5
|
+
export declare class StockRequest extends BaseEntity {
|
|
6
|
+
id: string;
|
|
7
|
+
userId?: string | null;
|
|
8
|
+
status?: number;
|
|
9
|
+
created_at: Date;
|
|
10
|
+
updated_at: Date;
|
|
11
|
+
user?: Users;
|
|
12
|
+
latitude?: string;
|
|
13
|
+
longitude?: string;
|
|
14
|
+
stockRequestDetails?: StockRequestDetails[];
|
|
15
|
+
beatPlanVisit: BeatPlanVisits;
|
|
16
|
+
fullAddress?: string | null;
|
|
17
|
+
city?: string | null;
|
|
18
|
+
state?: string | null;
|
|
19
|
+
pincode?: string | null;
|
|
20
|
+
country?: string | null;
|
|
21
|
+
area?: string | null;
|
|
22
|
+
}
|
|
@@ -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.StockRequest = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const Users_1 = require("../Users");
|
|
15
|
+
const StockRequestDetails_1 = require("./StockRequestDetails");
|
|
16
|
+
const BeatPlanVisits_1 = require("../BeatPlanVisits");
|
|
17
|
+
let StockRequest = class StockRequest extends typeorm_1.BaseEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.StockRequest = StockRequest;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint', name: 'id' }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], StockRequest.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)('bigint', { name: 'user_id', nullable: true }),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], StockRequest.prototype, "userId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)('tinyint', { name: 'status', nullable: true, default: 0 }),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], StockRequest.prototype, "status", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'datetime' }),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], StockRequest.prototype, "created_at", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'datetime' }),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], StockRequest.prototype, "updated_at", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.ManyToOne)(() => Users_1.Users, (user) => user.stockrequest),
|
|
42
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id', referencedColumnName: 'id' }),
|
|
43
|
+
__metadata("design:type", Users_1.Users)
|
|
44
|
+
], StockRequest.prototype, "user", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)('varchar', { name: 'latitude', nullable: true, length: 255 }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], StockRequest.prototype, "latitude", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)('varchar', { name: 'longitude', nullable: true, length: 255 }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], StockRequest.prototype, "longitude", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.OneToMany)(() => StockRequestDetails_1.StockRequestDetails, (d) => d.stockRequest),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], StockRequest.prototype, "stockRequestDetails", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ManyToOne)(() => BeatPlanVisits_1.BeatPlanVisits, (visit) => visit.stockRequests),
|
|
59
|
+
(0, typeorm_1.JoinColumn)({ name: 'beat_plan_visits_id' }),
|
|
60
|
+
__metadata("design:type", BeatPlanVisits_1.BeatPlanVisits)
|
|
61
|
+
], StockRequest.prototype, "beatPlanVisit", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)('varchar', { name: 'full_address', nullable: true, length: 500 }),
|
|
64
|
+
__metadata("design:type", Object)
|
|
65
|
+
], StockRequest.prototype, "fullAddress", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)('varchar', { name: 'city', nullable: true, length: 255 }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], StockRequest.prototype, "city", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)('varchar', { name: 'state', nullable: true, length: 255 }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], StockRequest.prototype, "state", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)('varchar', { name: 'pincode', nullable: true, length: 20 }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], StockRequest.prototype, "pincode", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)('varchar', { name: 'country', nullable: true, length: 255 }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], StockRequest.prototype, "country", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)('varchar', { name: 'area', nullable: true, length: 255 }),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], StockRequest.prototype, "area", void 0);
|
|
86
|
+
exports.StockRequest = StockRequest = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)('stock') // final table name after migration
|
|
88
|
+
], StockRequest);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { StockRequest } from './StockRequest';
|
|
3
|
+
import { Brands } from '../Brands';
|
|
4
|
+
import { Product } from '../Products';
|
|
5
|
+
import { Attachement } from '../Attachments';
|
|
6
|
+
export declare class StockRequestDetails extends BaseEntity {
|
|
7
|
+
id: string;
|
|
8
|
+
stockRequestId?: string | null;
|
|
9
|
+
brandId?: string | null;
|
|
10
|
+
productId?: string | null;
|
|
11
|
+
date: Date;
|
|
12
|
+
quantity: number;
|
|
13
|
+
status?: number;
|
|
14
|
+
created_at: Date;
|
|
15
|
+
updated_at: Date;
|
|
16
|
+
stockRequest: StockRequest;
|
|
17
|
+
brand: Brands;
|
|
18
|
+
product: Product;
|
|
19
|
+
attachment: Attachement;
|
|
20
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.StockRequestDetails = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const StockRequest_1 = require("./StockRequest");
|
|
15
|
+
const Brands_1 = require("../Brands");
|
|
16
|
+
const Products_1 = require("../Products");
|
|
17
|
+
const Attachments_1 = require("../Attachments");
|
|
18
|
+
let StockRequestDetails = class StockRequestDetails extends typeorm_1.BaseEntity {
|
|
19
|
+
};
|
|
20
|
+
exports.StockRequestDetails = StockRequestDetails;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint', name: 'id' }),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], StockRequestDetails.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)('bigint', { name: 'stock_request_id', nullable: true }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], StockRequestDetails.prototype, "stockRequestId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)('bigint', { name: 'brand_id', nullable: true }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], StockRequestDetails.prototype, "brandId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)('bigint', { name: 'product_id', nullable: true }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], StockRequestDetails.prototype, "productId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], StockRequestDetails.prototype, "date", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'int', nullable: false, default: 0 }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], StockRequestDetails.prototype, "quantity", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)('tinyint', { name: 'status', nullable: true, default: 0 }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], StockRequestDetails.prototype, "status", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'datetime' }),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], StockRequestDetails.prototype, "created_at", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'datetime' }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], StockRequestDetails.prototype, "updated_at", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ManyToOne)(() => StockRequest_1.StockRequest, (sr) => sr.stockRequestDetails),
|
|
59
|
+
(0, typeorm_1.JoinColumn)({ name: 'stock_request_id' }),
|
|
60
|
+
__metadata("design:type", StockRequest_1.StockRequest)
|
|
61
|
+
], StockRequestDetails.prototype, "stockRequest", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.ManyToOne)(() => Brands_1.Brands, (brand) => brand.product),
|
|
64
|
+
(0, typeorm_1.JoinColumn)({ name: 'brand_id' }),
|
|
65
|
+
__metadata("design:type", Brands_1.Brands)
|
|
66
|
+
], StockRequestDetails.prototype, "brand", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.ManyToOne)(() => Products_1.Product, (product) => product.id),
|
|
69
|
+
(0, typeorm_1.JoinColumn)({ name: 'product_id' }),
|
|
70
|
+
__metadata("design:type", Products_1.Product)
|
|
71
|
+
], StockRequestDetails.prototype, "product", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.OneToOne)(() => Attachments_1.Attachement, (attachment) => attachment.stockRequestDetails),
|
|
74
|
+
__metadata("design:type", Attachments_1.Attachement)
|
|
75
|
+
], StockRequestDetails.prototype, "attachment", void 0);
|
|
76
|
+
exports.StockRequestDetails = StockRequestDetails = __decorate([
|
|
77
|
+
(0, typeorm_1.Entity)('stock_details') // final table name
|
|
78
|
+
], StockRequestDetails);
|
|
@@ -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.FCM = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const Users_1 = require("./Users");
|
|
15
|
+
let FCM = class FCM extends typeorm_1.BaseEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.FCM = FCM;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint', name: 'id' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], FCM.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)('text', { name: 'name', nullable: true }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], FCM.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.CreateDateColumn)({ type: 'datetime' }),
|
|
28
|
+
__metadata("design:type", Date)
|
|
29
|
+
], FCM.prototype, "created_at", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.UpdateDateColumn)({ type: 'datetime' }),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], FCM.prototype, "updated_at", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => Users_1.Users, (user) => user.fcm),
|
|
36
|
+
(0, typeorm_1.JoinColumn)({ name: 'user_id' }),
|
|
37
|
+
__metadata("design:type", Users_1.Users)
|
|
38
|
+
], FCM.prototype, "user", void 0);
|
|
39
|
+
exports.FCM = FCM = __decorate([
|
|
40
|
+
(0, typeorm_1.Entity)('fcm')
|
|
41
|
+
], FCM);
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export { AchievementHistory } from './AchievementHistory';
|
|
2
|
+
export { AlertMessages } from './AlertMessages';
|
|
3
|
+
export { Analysis } from './Analysis';
|
|
4
|
+
export { Answers } from './Answers';
|
|
5
|
+
export { Attachement } from './Attachments';
|
|
6
|
+
export { AttendanceDetails } from './AttendanceDetails';
|
|
7
|
+
export { BeatPlanCheckins } from './BeatPlanCheckIns';
|
|
8
|
+
export { BeatPlanVisits } from './BeatPlanVisits';
|
|
9
|
+
export { BranchManagerBrandsMappings } from './BranchManagerBrandsMappings';
|
|
10
|
+
export { BranchManagerMerchandiserMappings } from './BranchManagerMerchandiserMappings';
|
|
11
|
+
export { Brands } from './Brands';
|
|
12
|
+
export { BrandWiseCategory } from './BrandWiseCategory';
|
|
13
|
+
export { Catagory } from './Category';
|
|
14
|
+
export { DamagedProductsRequest } from './DamagedProductsRequests';
|
|
15
|
+
export { DamagedProductsRequestDetails } from './DamagedProductsRequestsDetails';
|
|
16
|
+
export { FCM } from './fcm.entity';
|
|
17
|
+
export { Inventory } from './Inventory';
|
|
18
|
+
export { InventoryDetails } from './InventoryDetails';
|
|
19
|
+
export { LeaveRequests } from './LeaveRequests';
|
|
20
|
+
export { LeaveTypes } from './LeaveTypes';
|
|
21
|
+
export { LoginHistory } from './LoginHistory';
|
|
22
|
+
export { NotificationUserHistory } from './notification-user-history.entity';
|
|
23
|
+
export { Notification } from './Notifications';
|
|
24
|
+
export { Offers } from './Offer';
|
|
25
|
+
export { OfferLaunch } from './OfferLaunch';
|
|
26
|
+
export { OutOfRange } from './out-of-range.entity';
|
|
27
|
+
export { PasswordManager } from './PasswordManager';
|
|
28
|
+
export { POSMMaterials } from './POSMMaterials';
|
|
29
|
+
export { POSMRequest } from './POSMRequest';
|
|
30
|
+
export { POSMRequestDetails } from './POSMRequestDetails';
|
|
31
|
+
export { Product } from './Products';
|
|
32
|
+
export { Questions } from './Question';
|
|
33
|
+
export { Roles } from './Roles';
|
|
34
|
+
export { SalesPunching } from './SalesPunch';
|
|
35
|
+
export { SalesPunchingAiAnalysis } from './SalesPunchingAIAnalysis';
|
|
36
|
+
export { Schemes } from './Schemes';
|
|
37
|
+
export { Shifts } from './Shifts';
|
|
38
|
+
export { StoreShifts } from './StoreShifts';
|
|
39
|
+
export { StockRequest } from './StockRequest';
|
|
40
|
+
export { StockRequestDetails } from './StockRequestDetails';
|
|
41
|
+
export { StoreBrandsMappings } from './StoreBrandsMapping';
|
|
42
|
+
export { Stores } from './Stores';
|
|
43
|
+
export { Target } from './target';
|
|
44
|
+
export { Task } from './Task';
|
|
45
|
+
export { TaskAttachment } from './TaskAttachment';
|
|
46
|
+
export { TermsAndCondition } from './TermsAndCondition';
|
|
47
|
+
export { UploadedImages } from './UplaodedImages';
|
|
48
|
+
export { UserDetails } from './UserDetails';
|
|
49
|
+
export { UsersQuestionsAttemptsHistory } from './UserQuestionAttemptHistory';
|
|
50
|
+
export { UserRosters } from './UserRoster';
|
|
51
|
+
export { UsersRosterChangeLogs } from './UserRosterChanges';
|
|
52
|
+
export { UserStoreChangeHistory } from './UserStoreChangedHistory';
|
|
53
|
+
export { UsersVideosAttemptsHistory } from './UserVideosAttemptsHistory';
|
|
54
|
+
export { Version } from './Versions';
|
|
55
|
+
export { Videos } from './Videos';
|
|
56
|
+
export { Users } from './Users';
|
|
57
|
+
export { Automations } from './automations.entity';
|
|
58
|
+
export { AutomationExecutions } from './automation_executions.entity';
|
|
59
|
+
export { APIResponse } from './ApiResponses';
|
|
60
|
+
export { UserLocations } from './UserLocations';
|
|
61
|
+
export { PermissionPolicy } from './permission-policy.entity';
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserRosters = exports.UsersQuestionsAttemptsHistory = exports.UserDetails = exports.UploadedImages = exports.TermsAndCondition = exports.TaskAttachment = exports.Task = exports.Target = exports.Stores = exports.StoreBrandsMappings = exports.StockRequestDetails = exports.StockRequest = exports.StoreShifts = exports.Shifts = exports.Schemes = exports.SalesPunchingAiAnalysis = exports.SalesPunching = exports.Roles = exports.Questions = exports.Product = exports.POSMRequestDetails = exports.POSMRequest = exports.POSMMaterials = exports.PasswordManager = exports.OutOfRange = exports.OfferLaunch = exports.Offers = exports.Notification = exports.NotificationUserHistory = exports.LoginHistory = exports.LeaveTypes = exports.LeaveRequests = exports.InventoryDetails = exports.Inventory = exports.FCM = exports.DamagedProductsRequestDetails = exports.DamagedProductsRequest = exports.Catagory = exports.BrandWiseCategory = exports.Brands = exports.BranchManagerMerchandiserMappings = exports.BranchManagerBrandsMappings = exports.BeatPlanVisits = exports.BeatPlanCheckins = exports.AttendanceDetails = exports.Attachement = exports.Answers = exports.Analysis = exports.AlertMessages = exports.AchievementHistory = void 0;
|
|
4
|
+
exports.PermissionPolicy = exports.UserLocations = exports.APIResponse = exports.AutomationExecutions = exports.Automations = exports.Users = exports.Videos = exports.Version = exports.UsersVideosAttemptsHistory = exports.UserStoreChangeHistory = exports.UsersRosterChangeLogs = void 0;
|
|
5
|
+
var AchievementHistory_1 = require("./AchievementHistory");
|
|
6
|
+
Object.defineProperty(exports, "AchievementHistory", { enumerable: true, get: function () { return AchievementHistory_1.AchievementHistory; } });
|
|
7
|
+
var AlertMessages_1 = require("./AlertMessages");
|
|
8
|
+
Object.defineProperty(exports, "AlertMessages", { enumerable: true, get: function () { return AlertMessages_1.AlertMessages; } });
|
|
9
|
+
var Analysis_1 = require("./Analysis");
|
|
10
|
+
Object.defineProperty(exports, "Analysis", { enumerable: true, get: function () { return Analysis_1.Analysis; } });
|
|
11
|
+
var Answers_1 = require("./Answers");
|
|
12
|
+
Object.defineProperty(exports, "Answers", { enumerable: true, get: function () { return Answers_1.Answers; } });
|
|
13
|
+
var Attachments_1 = require("./Attachments");
|
|
14
|
+
Object.defineProperty(exports, "Attachement", { enumerable: true, get: function () { return Attachments_1.Attachement; } });
|
|
15
|
+
var AttendanceDetails_1 = require("./AttendanceDetails");
|
|
16
|
+
Object.defineProperty(exports, "AttendanceDetails", { enumerable: true, get: function () { return AttendanceDetails_1.AttendanceDetails; } });
|
|
17
|
+
var BeatPlanCheckIns_1 = require("./BeatPlanCheckIns");
|
|
18
|
+
Object.defineProperty(exports, "BeatPlanCheckins", { enumerable: true, get: function () { return BeatPlanCheckIns_1.BeatPlanCheckins; } });
|
|
19
|
+
var BeatPlanVisits_1 = require("./BeatPlanVisits");
|
|
20
|
+
Object.defineProperty(exports, "BeatPlanVisits", { enumerable: true, get: function () { return BeatPlanVisits_1.BeatPlanVisits; } });
|
|
21
|
+
var BranchManagerBrandsMappings_1 = require("./BranchManagerBrandsMappings");
|
|
22
|
+
Object.defineProperty(exports, "BranchManagerBrandsMappings", { enumerable: true, get: function () { return BranchManagerBrandsMappings_1.BranchManagerBrandsMappings; } });
|
|
23
|
+
var BranchManagerMerchandiserMappings_1 = require("./BranchManagerMerchandiserMappings");
|
|
24
|
+
Object.defineProperty(exports, "BranchManagerMerchandiserMappings", { enumerable: true, get: function () { return BranchManagerMerchandiserMappings_1.BranchManagerMerchandiserMappings; } });
|
|
25
|
+
var Brands_1 = require("./Brands");
|
|
26
|
+
Object.defineProperty(exports, "Brands", { enumerable: true, get: function () { return Brands_1.Brands; } });
|
|
27
|
+
var BrandWiseCategory_1 = require("./BrandWiseCategory");
|
|
28
|
+
Object.defineProperty(exports, "BrandWiseCategory", { enumerable: true, get: function () { return BrandWiseCategory_1.BrandWiseCategory; } });
|
|
29
|
+
var Category_1 = require("./Category");
|
|
30
|
+
Object.defineProperty(exports, "Catagory", { enumerable: true, get: function () { return Category_1.Catagory; } });
|
|
31
|
+
var DamagedProductsRequests_1 = require("./DamagedProductsRequests");
|
|
32
|
+
Object.defineProperty(exports, "DamagedProductsRequest", { enumerable: true, get: function () { return DamagedProductsRequests_1.DamagedProductsRequest; } });
|
|
33
|
+
var DamagedProductsRequestsDetails_1 = require("./DamagedProductsRequestsDetails");
|
|
34
|
+
Object.defineProperty(exports, "DamagedProductsRequestDetails", { enumerable: true, get: function () { return DamagedProductsRequestsDetails_1.DamagedProductsRequestDetails; } });
|
|
35
|
+
var fcm_entity_1 = require("./fcm.entity");
|
|
36
|
+
Object.defineProperty(exports, "FCM", { enumerable: true, get: function () { return fcm_entity_1.FCM; } });
|
|
37
|
+
var Inventory_1 = require("./Inventory");
|
|
38
|
+
Object.defineProperty(exports, "Inventory", { enumerable: true, get: function () { return Inventory_1.Inventory; } });
|
|
39
|
+
var InventoryDetails_1 = require("./InventoryDetails");
|
|
40
|
+
Object.defineProperty(exports, "InventoryDetails", { enumerable: true, get: function () { return InventoryDetails_1.InventoryDetails; } });
|
|
41
|
+
var LeaveRequests_1 = require("./LeaveRequests");
|
|
42
|
+
Object.defineProperty(exports, "LeaveRequests", { enumerable: true, get: function () { return LeaveRequests_1.LeaveRequests; } });
|
|
43
|
+
var LeaveTypes_1 = require("./LeaveTypes");
|
|
44
|
+
Object.defineProperty(exports, "LeaveTypes", { enumerable: true, get: function () { return LeaveTypes_1.LeaveTypes; } });
|
|
45
|
+
var LoginHistory_1 = require("./LoginHistory");
|
|
46
|
+
Object.defineProperty(exports, "LoginHistory", { enumerable: true, get: function () { return LoginHistory_1.LoginHistory; } });
|
|
47
|
+
var notification_user_history_entity_1 = require("./notification-user-history.entity");
|
|
48
|
+
Object.defineProperty(exports, "NotificationUserHistory", { enumerable: true, get: function () { return notification_user_history_entity_1.NotificationUserHistory; } });
|
|
49
|
+
var Notifications_1 = require("./Notifications");
|
|
50
|
+
Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return Notifications_1.Notification; } });
|
|
51
|
+
var Offer_1 = require("./Offer");
|
|
52
|
+
Object.defineProperty(exports, "Offers", { enumerable: true, get: function () { return Offer_1.Offers; } });
|
|
53
|
+
var OfferLaunch_1 = require("./OfferLaunch");
|
|
54
|
+
Object.defineProperty(exports, "OfferLaunch", { enumerable: true, get: function () { return OfferLaunch_1.OfferLaunch; } });
|
|
55
|
+
var out_of_range_entity_1 = require("./out-of-range.entity");
|
|
56
|
+
Object.defineProperty(exports, "OutOfRange", { enumerable: true, get: function () { return out_of_range_entity_1.OutOfRange; } });
|
|
57
|
+
var PasswordManager_1 = require("./PasswordManager");
|
|
58
|
+
Object.defineProperty(exports, "PasswordManager", { enumerable: true, get: function () { return PasswordManager_1.PasswordManager; } });
|
|
59
|
+
var POSMMaterials_1 = require("./POSMMaterials");
|
|
60
|
+
Object.defineProperty(exports, "POSMMaterials", { enumerable: true, get: function () { return POSMMaterials_1.POSMMaterials; } });
|
|
61
|
+
var POSMRequest_1 = require("./POSMRequest");
|
|
62
|
+
Object.defineProperty(exports, "POSMRequest", { enumerable: true, get: function () { return POSMRequest_1.POSMRequest; } });
|
|
63
|
+
var POSMRequestDetails_1 = require("./POSMRequestDetails");
|
|
64
|
+
Object.defineProperty(exports, "POSMRequestDetails", { enumerable: true, get: function () { return POSMRequestDetails_1.POSMRequestDetails; } });
|
|
65
|
+
var Products_1 = require("./Products");
|
|
66
|
+
Object.defineProperty(exports, "Product", { enumerable: true, get: function () { return Products_1.Product; } });
|
|
67
|
+
var Question_1 = require("./Question");
|
|
68
|
+
Object.defineProperty(exports, "Questions", { enumerable: true, get: function () { return Question_1.Questions; } });
|
|
69
|
+
var Roles_1 = require("./Roles");
|
|
70
|
+
Object.defineProperty(exports, "Roles", { enumerable: true, get: function () { return Roles_1.Roles; } });
|
|
71
|
+
var SalesPunch_1 = require("./SalesPunch");
|
|
72
|
+
Object.defineProperty(exports, "SalesPunching", { enumerable: true, get: function () { return SalesPunch_1.SalesPunching; } });
|
|
73
|
+
var SalesPunchingAIAnalysis_1 = require("./SalesPunchingAIAnalysis");
|
|
74
|
+
Object.defineProperty(exports, "SalesPunchingAiAnalysis", { enumerable: true, get: function () { return SalesPunchingAIAnalysis_1.SalesPunchingAiAnalysis; } });
|
|
75
|
+
var Schemes_1 = require("./Schemes");
|
|
76
|
+
Object.defineProperty(exports, "Schemes", { enumerable: true, get: function () { return Schemes_1.Schemes; } });
|
|
77
|
+
var Shifts_1 = require("./Shifts");
|
|
78
|
+
Object.defineProperty(exports, "Shifts", { enumerable: true, get: function () { return Shifts_1.Shifts; } });
|
|
79
|
+
var StoreShifts_1 = require("./StoreShifts");
|
|
80
|
+
Object.defineProperty(exports, "StoreShifts", { enumerable: true, get: function () { return StoreShifts_1.StoreShifts; } });
|
|
81
|
+
var StockRequest_1 = require("./StockRequest");
|
|
82
|
+
Object.defineProperty(exports, "StockRequest", { enumerable: true, get: function () { return StockRequest_1.StockRequest; } });
|
|
83
|
+
var StockRequestDetails_1 = require("./StockRequestDetails");
|
|
84
|
+
Object.defineProperty(exports, "StockRequestDetails", { enumerable: true, get: function () { return StockRequestDetails_1.StockRequestDetails; } });
|
|
85
|
+
var StoreBrandsMapping_1 = require("./StoreBrandsMapping");
|
|
86
|
+
Object.defineProperty(exports, "StoreBrandsMappings", { enumerable: true, get: function () { return StoreBrandsMapping_1.StoreBrandsMappings; } });
|
|
87
|
+
var Stores_1 = require("./Stores");
|
|
88
|
+
Object.defineProperty(exports, "Stores", { enumerable: true, get: function () { return Stores_1.Stores; } });
|
|
89
|
+
var target_1 = require("./target");
|
|
90
|
+
Object.defineProperty(exports, "Target", { enumerable: true, get: function () { return target_1.Target; } });
|
|
91
|
+
var Task_1 = require("./Task");
|
|
92
|
+
Object.defineProperty(exports, "Task", { enumerable: true, get: function () { return Task_1.Task; } });
|
|
93
|
+
var TaskAttachment_1 = require("./TaskAttachment");
|
|
94
|
+
Object.defineProperty(exports, "TaskAttachment", { enumerable: true, get: function () { return TaskAttachment_1.TaskAttachment; } });
|
|
95
|
+
var TermsAndCondition_1 = require("./TermsAndCondition");
|
|
96
|
+
Object.defineProperty(exports, "TermsAndCondition", { enumerable: true, get: function () { return TermsAndCondition_1.TermsAndCondition; } });
|
|
97
|
+
var UplaodedImages_1 = require("./UplaodedImages");
|
|
98
|
+
Object.defineProperty(exports, "UploadedImages", { enumerable: true, get: function () { return UplaodedImages_1.UploadedImages; } });
|
|
99
|
+
var UserDetails_1 = require("./UserDetails");
|
|
100
|
+
Object.defineProperty(exports, "UserDetails", { enumerable: true, get: function () { return UserDetails_1.UserDetails; } });
|
|
101
|
+
var UserQuestionAttemptHistory_1 = require("./UserQuestionAttemptHistory");
|
|
102
|
+
Object.defineProperty(exports, "UsersQuestionsAttemptsHistory", { enumerable: true, get: function () { return UserQuestionAttemptHistory_1.UsersQuestionsAttemptsHistory; } });
|
|
103
|
+
var UserRoster_1 = require("./UserRoster");
|
|
104
|
+
Object.defineProperty(exports, "UserRosters", { enumerable: true, get: function () { return UserRoster_1.UserRosters; } });
|
|
105
|
+
var UserRosterChanges_1 = require("./UserRosterChanges");
|
|
106
|
+
Object.defineProperty(exports, "UsersRosterChangeLogs", { enumerable: true, get: function () { return UserRosterChanges_1.UsersRosterChangeLogs; } });
|
|
107
|
+
var UserStoreChangedHistory_1 = require("./UserStoreChangedHistory");
|
|
108
|
+
Object.defineProperty(exports, "UserStoreChangeHistory", { enumerable: true, get: function () { return UserStoreChangedHistory_1.UserStoreChangeHistory; } });
|
|
109
|
+
var UserVideosAttemptsHistory_1 = require("./UserVideosAttemptsHistory");
|
|
110
|
+
Object.defineProperty(exports, "UsersVideosAttemptsHistory", { enumerable: true, get: function () { return UserVideosAttemptsHistory_1.UsersVideosAttemptsHistory; } });
|
|
111
|
+
var Versions_1 = require("./Versions");
|
|
112
|
+
Object.defineProperty(exports, "Version", { enumerable: true, get: function () { return Versions_1.Version; } });
|
|
113
|
+
var Videos_1 = require("./Videos");
|
|
114
|
+
Object.defineProperty(exports, "Videos", { enumerable: true, get: function () { return Videos_1.Videos; } });
|
|
115
|
+
var Users_1 = require("./Users");
|
|
116
|
+
Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return Users_1.Users; } });
|
|
117
|
+
var automations_entity_1 = require("./automations.entity");
|
|
118
|
+
Object.defineProperty(exports, "Automations", { enumerable: true, get: function () { return automations_entity_1.Automations; } });
|
|
119
|
+
var automation_executions_entity_1 = require("./automation_executions.entity");
|
|
120
|
+
Object.defineProperty(exports, "AutomationExecutions", { enumerable: true, get: function () { return automation_executions_entity_1.AutomationExecutions; } });
|
|
121
|
+
var ApiResponses_1 = require("./ApiResponses");
|
|
122
|
+
Object.defineProperty(exports, "APIResponse", { enumerable: true, get: function () { return ApiResponses_1.APIResponse; } });
|
|
123
|
+
var UserLocations_1 = require("./UserLocations");
|
|
124
|
+
Object.defineProperty(exports, "UserLocations", { enumerable: true, get: function () { return UserLocations_1.UserLocations; } });
|
|
125
|
+
var permission_policy_entity_1 = require("./permission-policy.entity");
|
|
126
|
+
Object.defineProperty(exports, "PermissionPolicy", { enumerable: true, get: function () { return permission_policy_entity_1.PermissionPolicy; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import { Users } from './Users';
|
|
3
|
+
import { Notification } from './Notifications';
|
|
4
|
+
export declare class NotificationUserHistory extends BaseEntity {
|
|
5
|
+
id: bigint;
|
|
6
|
+
user: Users;
|
|
7
|
+
image: string;
|
|
8
|
+
brand_image: string;
|
|
9
|
+
title: string;
|
|
10
|
+
content: string;
|
|
11
|
+
read_status?: number;
|
|
12
|
+
status?: number;
|
|
13
|
+
notificationHistory?: Notification;
|
|
14
|
+
created_at: Date;
|
|
15
|
+
updated_at: Date;
|
|
16
|
+
}
|