@spytecgps/nova-orm 1.4.179 → 1.4.180

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.
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/boolToNumberTransformer.js"),r=require("../utils/uuidTransformer.js"),d=require("./retailAlertType.js");exports.RetailAlert=class RetailAlert{id;alertTypeId;clientId;alertType;value;message;createdAt;storeId;zoneId;isNotification;retailClientAlertConfigurationId;severity;deleted;status;category;acknowledgedAt;resolvedAt},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((()=>d.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.Column("varchar",{name:"message",length:1e3}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"message",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:r.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"storeId",void 0),e.__decorate([t.Column("binary",{name:"zoneId",length:16,transformer:r.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("varchar",{name:"severity",length:50}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"severity",void 0),e.__decorate([t.Column("tinyint",{name:"deleted",nullable:!0,width:1,transformer:new a.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),e.__decorate([t.Column("varchar",{name:"category",length:50}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"category",void 0),e.__decorate([t.Column("datetime",{name:"acknowledgedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.RetailAlert.prototype,"acknowledgedAt",void 0),e.__decorate([t.Column("datetime",{name:"resolvedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.RetailAlert.prototype,"resolvedAt",void 0),exports.RetailAlert=e.__decorate([t.Index("ix_clientId_createdAt",["clientId","createdAt"],{}),t.Index("ix_clientId_acknowledgedAt_createdAt",["clientId","acknowledgedAt","createdAt"],{}),t.Index("ix_clientId_severity_status_createdAt",["clientId","severity","status","createdAt"],{}),t.Index("ix_clientId_storeId_createdAt",["clientId","storeId","createdAt"],{}),t.Index("ix_clientId_zoneId_createdAt",["clientId","zoneId","createdAt"],{}),t.Index("ix_clientId_severity_createdAt",["clientId","severity","createdAt"],{}),t.Index("ix_clientId_category_createdAt",["clientId","category","createdAt"],{}),t.Index("ix_clientId_status_createdAt",["clientId","status","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"),a=require("../utils/boolToNumberTransformer.js"),r=require("../utils/uuidTransformer.js"),d=require("./retailAlertType.js");exports.RetailAlert=class RetailAlert{id;alertTypeId;clientId;alertType;value;message;createdAt;storeId;zoneId;isNotification;retailClientAlertConfigurationId;severity;deleted;status;category;bleTagId;productId;acknowledgedAt;resolvedAt;bleTag;retailProduct;retailStore;retailZone},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((()=>d.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.Column("varchar",{name:"message",length:1e3}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"message",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:r.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"storeId",void 0),e.__decorate([t.Column("binary",{name:"zoneId",length:16,transformer:r.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("varchar",{name:"severity",length:50}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"severity",void 0),e.__decorate([t.Column("tinyint",{name:"deleted",nullable:!0,width:1,transformer:new a.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),e.__decorate([t.Column("varchar",{name:"category",length:50}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"category",void 0),e.__decorate([t.Column("binary",{name:"bleTagId",length:16,transformer:r.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"bleTagId",void 0),e.__decorate([t.Column("binary",{name:"productId",length:16,transformer:r.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailAlert.prototype,"productId",void 0),e.__decorate([t.Column("datetime",{name:"acknowledgedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.RetailAlert.prototype,"acknowledgedAt",void 0),e.__decorate([t.Column("datetime",{name:"resolvedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.RetailAlert.prototype,"resolvedAt",void 0),exports.RetailAlert=e.__decorate([t.Index("ix_clientId_createdAt",["clientId","createdAt"],{}),t.Index("ix_clientId_acknowledgedAt_createdAt",["clientId","acknowledgedAt","createdAt"],{}),t.Index("ix_clientId_severity_status_createdAt",["clientId","severity","status","createdAt"],{}),t.Index("ix_clientId_storeId_createdAt",["clientId","storeId","createdAt"],{}),t.Index("ix_clientId_zoneId_createdAt",["clientId","zoneId","createdAt"],{}),t.Index("ix_clientId_severity_createdAt",["clientId","severity","createdAt"],{}),t.Index("ix_clientId_category_createdAt",["clientId","category","createdAt"],{}),t.Index("ix_clientId_status_createdAt",["clientId","status","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');
3
4
  var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
4
5
  var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
5
- var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
6
6
 
7
7
 
8
8
 
9
+ exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
9
10
  exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
10
11
  exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
11
- exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
@@ -1,6 +1,10 @@
1
1
  import { Relation } from 'typeorm';
2
2
  import { RetailAlertCategory, RetailAlertType } from './retailAlertType';
3
+ import { RetailBleTag } from './retailBleTag';
3
4
  import { RetailAlertSeverity } from './retailClientAlertConfiguration';
5
+ import { RetailProduct } from './retailProduct';
6
+ import { RetailStore } from './retailStore';
7
+ import { RetailZone } from './retailZone';
4
8
  export type RetailAlertStatus = 'new' | 'acknowledged' | 'resolved' | 'dismissed';
5
9
  export declare class RetailAlert {
6
10
  id: number;
@@ -18,6 +22,12 @@ export declare class RetailAlert {
18
22
  deleted: boolean | null;
19
23
  status: RetailAlertStatus;
20
24
  category: RetailAlertCategory;
25
+ bleTagId?: string | null;
26
+ productId?: string | null;
21
27
  acknowledgedAt?: Date | null;
22
28
  resolvedAt?: Date | null;
29
+ bleTag?: RetailBleTag;
30
+ retailProduct?: RetailProduct;
31
+ retailStore?: RetailStore;
32
+ retailZone?: RetailZone;
23
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.179",
3
+ "version": "1.4.180",
4
4
  "description": "ORM with PlanetScale",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/schema.sql CHANGED
@@ -1,6 +1,6 @@
1
- -- nova-orm-schema-checksum: e4c3800ecea14f7982c726ac50a3d86d
1
+ -- nova-orm-schema-checksum: 3b8f6e60f7116243f1af0a99b31620ab
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-02-16T11:51:30.005Z
3
+ -- Generated at: 2026-02-16T13:13:02.180Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -2441,6 +2441,8 @@ CREATE TABLE `retailAlert` (
2441
2441
  `deleted` tinyint(1) DEFAULT '0',
2442
2442
  `status` varchar(50) DEFAULT 'new',
2443
2443
  `category` varchar(50) NOT NULL,
2444
+ `bleTagId` binary(16) DEFAULT NULL,
2445
+ `productId` binary(16) DEFAULT NULL,
2444
2446
  `acknowledgedAt` datetime DEFAULT NULL,
2445
2447
  `resolvedAt` datetime DEFAULT NULL,
2446
2448
  PRIMARY KEY (`id`),