@spytecgps/nova-orm 1.4.175 → 1.4.176
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/entities/retailAlert.js +1 -1
- package/dist/migration/_virtual/_virtual_multi-entry.js +2 -2
- package/dist/src/entities/retailAlert.d.ts +2 -0
- package/dist/src/entities/retailClientAlertConfiguration.d.ts +2 -2
- package/dist/src/types/retail.d.ts +3 -2
- package/package.json +1 -1
- package/schema.sql +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../utils/boolToNumberTransformer.js"),a=require("../utils/uuidTransformer.js"),o=require("./retailAlertType.js");exports.RetailAlert=class RetailAlert{id;alertTypeId;clientId;alertType;value;createdAt;storeId;zoneId;isNotification;retailClientAlertConfigurationId;deleted},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id"}),e.__metadata("design:type",Number)],exports.RetailAlert.prototype,"id",void 0),e.__decorate([t.Column("tinyint",{name:"alertTypeId"}),e.__metadata("design:type",Number)],exports.RetailAlert.prototype,"alertTypeId",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.RetailAlert.prototype,"clientId",void 0),e.__decorate([t.OneToOne((()=>o.RetailAlertType),{createForeignKeyConstraints:!1}),t.JoinColumn({name:"alertTypeId",referencedColumnName:"id"}),e.__metadata("design:type",Object)],exports.RetailAlert.prototype,"alertType",void 0),e.__decorate([t.Column("varchar",{name:"value",nullable:!0,length:5e3}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"value",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.RetailAlert.prototype,"createdAt",void 0),e.__decorate([t.Column("binary",{name:"storeId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"storeId",void 0),e.__decorate([t.Column("binary",{name:"zoneId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"zoneId",void 0),e.__decorate([t.Column("tinyint",{name:"isNotification",nullable:!0,width:1}),e.__metadata("design:type",Boolean)],exports.RetailAlert.prototype,"isNotification",void 0),e.__decorate([t.Column("int",{name:"retailClientAlertConfigurationId",nullable:!0}),e.__metadata("design:type",Number)],exports.RetailAlert.prototype,"retailClientAlertConfigurationId",void 0),e.__decorate([t.Column("tinyint",{name:"deleted",nullable:!0,width:1,transformer:new r.BoolToNumberTransformer,default:()=>"'0'"}),e.__metadata("design:type",Boolean)],exports.RetailAlert.prototype,"deleted",void 0),exports.RetailAlert=e.__decorate([t.Index("ix_clientId_createdAt",["clientId","createdAt"],{}),t.Index("ix_clientId_storeId_createdAt",["clientId","storeId","createdAt"],{}),t.Index("ix_clientId_zoneId_createdAt",["clientId","zoneId","createdAt"],{}),t.Index("ix_clientId_alertTypeId_createdAt",["clientId","alertTypeId","createdAt"],{}),t.Entity("retailAlert",{schema:"nova"})],exports.RetailAlert);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../utils/boolToNumberTransformer.js"),a=require("../utils/uuidTransformer.js"),o=require("./retailAlertType.js");exports.RetailAlert=class RetailAlert{id;alertTypeId;clientId;alertType;value;createdAt;storeId;zoneId;isNotification;retailClientAlertConfigurationId;deleted;status},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id"}),e.__metadata("design:type",Number)],exports.RetailAlert.prototype,"id",void 0),e.__decorate([t.Column("tinyint",{name:"alertTypeId"}),e.__metadata("design:type",Number)],exports.RetailAlert.prototype,"alertTypeId",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.RetailAlert.prototype,"clientId",void 0),e.__decorate([t.OneToOne((()=>o.RetailAlertType),{createForeignKeyConstraints:!1}),t.JoinColumn({name:"alertTypeId",referencedColumnName:"id"}),e.__metadata("design:type",Object)],exports.RetailAlert.prototype,"alertType",void 0),e.__decorate([t.Column("varchar",{name:"value",nullable:!0,length:5e3}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"value",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.RetailAlert.prototype,"createdAt",void 0),e.__decorate([t.Column("binary",{name:"storeId",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"storeId",void 0),e.__decorate([t.Column("binary",{name:"zoneId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"zoneId",void 0),e.__decorate([t.Column("tinyint",{name:"isNotification",nullable:!0,width:1}),e.__metadata("design:type",Boolean)],exports.RetailAlert.prototype,"isNotification",void 0),e.__decorate([t.Column("int",{name:"retailClientAlertConfigurationId",nullable:!0}),e.__metadata("design:type",Number)],exports.RetailAlert.prototype,"retailClientAlertConfigurationId",void 0),e.__decorate([t.Column("tinyint",{name:"deleted",nullable:!0,width:1,transformer:new r.BoolToNumberTransformer,default:()=>"'0'"}),e.__metadata("design:type",Boolean)],exports.RetailAlert.prototype,"deleted",void 0),e.__decorate([t.Column("varchar",{name:"status",nullable:!0,length:50,default:()=>"'new'"}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"status",void 0),exports.RetailAlert=e.__decorate([t.Index("ix_clientId_createdAt",["clientId","createdAt"],{}),t.Index("ix_clientId_storeId_createdAt",["clientId","storeId","createdAt"],{}),t.Index("ix_clientId_zoneId_createdAt",["clientId","zoneId","createdAt"],{}),t.Index("ix_clientId_alertTypeId_createdAt",["clientId","alertTypeId","createdAt"],{}),t.Entity("retailAlert",{schema:"nova"})],exports.RetailAlert);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
4
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
|
+
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
5
5
|
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
10
9
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
10
|
+
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
11
11
|
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Relation } from 'typeorm';
|
|
2
2
|
import { RetailAlertType } from './retailAlertType';
|
|
3
|
+
export type RetailAlertStatus = 'new' | 'acknowledged' | 'resolved' | 'dismissed';
|
|
3
4
|
export declare class RetailAlert {
|
|
4
5
|
id: number;
|
|
5
6
|
alertTypeId: number;
|
|
@@ -12,4 +13,5 @@ export declare class RetailAlert {
|
|
|
12
13
|
isNotification?: boolean | null;
|
|
13
14
|
retailClientAlertConfigurationId?: number | null;
|
|
14
15
|
deleted: boolean | null;
|
|
16
|
+
status: RetailAlertStatus;
|
|
15
17
|
}
|
|
@@ -3,7 +3,7 @@ import { RetailAlertExternalRecipient } from './retailAlertExternalRecipient';
|
|
|
3
3
|
import { RetailAlertInternalRecipient } from './retailAlertInternalRecipient';
|
|
4
4
|
import { RetailAlertType } from './retailAlertType';
|
|
5
5
|
export type RetailAlertSeverity = 'critical' | 'warning' | 'info';
|
|
6
|
-
export type
|
|
6
|
+
export type RetailAlertConfigurationStatus = 'active' | 'inactive' | 'deleted';
|
|
7
7
|
export declare class RetailClientAlertConfiguration {
|
|
8
8
|
id: number;
|
|
9
9
|
clientId: number;
|
|
@@ -11,7 +11,7 @@ export declare class RetailClientAlertConfiguration {
|
|
|
11
11
|
alertType?: Relation<RetailAlertType>;
|
|
12
12
|
name: string;
|
|
13
13
|
description: string;
|
|
14
|
-
status:
|
|
14
|
+
status: RetailAlertConfigurationStatus;
|
|
15
15
|
severity: RetailAlertSeverity;
|
|
16
16
|
triggerConditions?: object | null;
|
|
17
17
|
readOnly: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { RetailAlertStatus } from '../entities/retailAlert';
|
|
1
2
|
import { ExternalRecipientNotificationType } from '../entities/retailAlertExternalRecipient';
|
|
2
3
|
import { RetailBleTagStatus } from '../entities/retailBleTag';
|
|
3
|
-
import {
|
|
4
|
+
import { RetailAlertConfigurationStatus, RetailAlertSeverity } from '../entities/retailClientAlertConfiguration';
|
|
4
5
|
import { RetailGatewayStatus } from '../entities/retailGateway';
|
|
5
6
|
import { RetailIncidentSeverity, RetailIncidentStatus, RetailIncidentType } from '../entities/retailIncident';
|
|
6
7
|
import { RetailItemStatus } from '../entities/retailItem';
|
|
@@ -8,4 +9,4 @@ import { RetailItemEventType } from '../entities/retailItemEvent';
|
|
|
8
9
|
import { RetailStoreStatus } from '../entities/retailStore';
|
|
9
10
|
import { RetailTrainingSetSegment, RetailTrainingSetStatus, RetailTrainingSetType } from '../entities/retailTrainingSet';
|
|
10
11
|
import { RetailZoneCategory } from '../entities/retailZone';
|
|
11
|
-
export { ExternalRecipientNotificationType, RetailAlertSeverity, RetailAlertStatus, RetailBleTagStatus, RetailGatewayStatus, RetailIncidentSeverity, RetailIncidentStatus, RetailIncidentType, RetailItemEventType, RetailItemStatus, RetailStoreStatus, RetailTrainingSetSegment, RetailTrainingSetStatus, RetailTrainingSetType, RetailZoneCategory, };
|
|
12
|
+
export { ExternalRecipientNotificationType, RetailAlertConfigurationStatus, RetailAlertSeverity, RetailAlertStatus, RetailBleTagStatus, RetailGatewayStatus, RetailIncidentSeverity, RetailIncidentStatus, RetailIncidentType, RetailItemEventType, RetailItemStatus, RetailStoreStatus, RetailTrainingSetSegment, RetailTrainingSetStatus, RetailTrainingSetType, RetailZoneCategory, };
|
package/package.json
CHANGED
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: 7d82dc58e39b3abe03513f092f22a195
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-02-
|
|
3
|
+
-- Generated at: 2026-02-16T10:44:32.021Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -2437,6 +2437,7 @@ CREATE TABLE `retailAlert` (
|
|
|
2437
2437
|
`isNotification` tinyint(1) DEFAULT NULL,
|
|
2438
2438
|
`retailClientAlertConfigurationId` int DEFAULT NULL,
|
|
2439
2439
|
`deleted` tinyint(1) DEFAULT '0',
|
|
2440
|
+
`status` varchar(50) DEFAULT 'new',
|
|
2440
2441
|
PRIMARY KEY (`id`),
|
|
2441
2442
|
KEY `ix_clientId_alertTypeId_createdAt` (`clientId`,`alertTypeId`,`createdAt`),
|
|
2442
2443
|
KEY `ix_clientId_zoneId_createdAt` (`clientId`,`zoneId`,`createdAt`),
|