@spytecgps/nova-orm 1.4.195 → 1.4.196
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/uuidTransformer.js");exports.RetailProduct=class RetailProduct{id;clientId;upc;sku;name;brand;category;defaultZoneId;price;imageUrl;attributes;createdAt;updatedAt},e.__decorate([t.PrimaryColumn("binary",{name:"id",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.RetailProduct.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"upc",length:12}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"upc",void 0),e.__decorate([t.Column("varchar",{name:"sku",length:50}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"sku",void 0),e.__decorate([t.Column("varchar",{name:"name",length:100}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"brand",length:50}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"brand",void 0),e.__decorate([t.Column("varchar",{name:"category",length:50}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"category",void 0),e.__decorate([t.Column("binary",{name:"defaultZoneId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"defaultZoneId",void 0),e.__decorate([t.Column("decimal",{name:"price",precision:19,scale:4}),e.__metadata("design:type",Number)],exports.RetailProduct.prototype,"price",void 0),e.__decorate([t.Column("varchar",{name:"imageUrl",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"imageUrl",void 0),e.__decorate([t.Column("json",{name:"attributes",nullable:!0}),e.__metadata("design:type",Object)],exports.RetailProduct.prototype,"attributes",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.RetailProduct.prototype,"createdAt",void 0),e.__decorate([t.UpdateDateColumn({name:"updatedAt"}),e.__metadata("design:type",Date)],exports.RetailProduct.prototype,"updatedAt",void 0),exports.RetailProduct=e.__decorate([t.Index("ix_category",["category"],{}),t.Index("ix_clientId_upc",["clientId","upc"],{unique:!0}),t.Index("ix_clientId_brand_category",["clientId","brand","category"],{}),t.Entity("retailProduct",{schema:"nova"})],exports.RetailProduct);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js");exports.RetailProduct=class RetailProduct{id;clientId;upc;sku;name;brand;category;departmentTypeId;defaultZoneId;price;imageUrl;attributes;createdAt;updatedAt;departmentType},e.__decorate([t.PrimaryColumn("binary",{name:"id",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.RetailProduct.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"upc",length:12}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"upc",void 0),e.__decorate([t.Column("varchar",{name:"sku",length:50}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"sku",void 0),e.__decorate([t.Column("varchar",{name:"name",length:100}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"brand",length:50}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"brand",void 0),e.__decorate([t.Column("varchar",{name:"category",length:50}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"category",void 0),e.__decorate([t.Column("binary",{name:"departmentTypeId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"departmentTypeId",void 0),e.__decorate([t.Column("binary",{name:"defaultZoneId",length:16,transformer:a.UUIDTransformer,nullable:!0}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"defaultZoneId",void 0),e.__decorate([t.Column("decimal",{name:"price",precision:19,scale:4}),e.__metadata("design:type",Number)],exports.RetailProduct.prototype,"price",void 0),e.__decorate([t.Column("varchar",{name:"imageUrl",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.RetailProduct.prototype,"imageUrl",void 0),e.__decorate([t.Column("json",{name:"attributes",nullable:!0}),e.__metadata("design:type",Object)],exports.RetailProduct.prototype,"attributes",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.RetailProduct.prototype,"createdAt",void 0),e.__decorate([t.UpdateDateColumn({name:"updatedAt"}),e.__metadata("design:type",Date)],exports.RetailProduct.prototype,"updatedAt",void 0),exports.RetailProduct=e.__decorate([t.Index("ix_category",["category"],{}),t.Index("ix_clientId_upc",["clientId","upc"],{unique:!0}),t.Index("ix_clientId_brand_category",["clientId","brand","category"],{}),t.Entity("retailProduct",{schema:"nova"})],exports.RetailProduct);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
3
|
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
5
4
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
5
|
+
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
10
9
|
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
11
10
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
11
|
+
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { RetailDepartmentType } from './retailDepartmentType';
|
|
1
2
|
export declare class RetailProduct {
|
|
2
3
|
id: string;
|
|
3
4
|
clientId: number;
|
|
@@ -6,10 +7,12 @@ export declare class RetailProduct {
|
|
|
6
7
|
name: string;
|
|
7
8
|
brand: string;
|
|
8
9
|
category: string;
|
|
10
|
+
departmentTypeId?: string | null;
|
|
9
11
|
defaultZoneId?: string | null;
|
|
10
12
|
price: number;
|
|
11
13
|
imageUrl?: string | null;
|
|
12
14
|
attributes?: Record<string, string> | null;
|
|
13
15
|
createdAt: Date;
|
|
14
16
|
updatedAt: Date;
|
|
17
|
+
departmentType?: RetailDepartmentType | null;
|
|
15
18
|
}
|
package/package.json
CHANGED
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: bc5be4471bae92d78c503fcd34e8d0c7
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-03-
|
|
3
|
+
-- Generated at: 2026-03-09T06:57:23.727Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -2689,6 +2689,7 @@ CREATE TABLE `retailProduct` (
|
|
|
2689
2689
|
`name` varchar(100) NOT NULL,
|
|
2690
2690
|
`brand` varchar(50) NOT NULL,
|
|
2691
2691
|
`category` varchar(50) NOT NULL,
|
|
2692
|
+
`departmentTypeId` binary(16) DEFAULT NULL,
|
|
2692
2693
|
`defaultZoneId` binary(16) DEFAULT NULL,
|
|
2693
2694
|
`price` decimal(19,4) NOT NULL,
|
|
2694
2695
|
`imageUrl` varchar(255) DEFAULT NULL,
|