@spytecgps/nova-orm 1.4.269 → 1.4.270

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,18 +1,11 @@
1
1
  import { Relation } from 'typeorm';
2
2
  import { Client } from './client';
3
- declare const billingMethodArray: readonly ["credit-card-hubspot", "ach-hubspot", "credit-card-braintree", "ach-braintree", "ach-wire", "check", "dib-sap"];
4
- export type BillingMethod = (typeof billingMethodArray)[number];
5
- declare const customerSegmentArray: readonly ["whale", "bass", "guppy", "guppy-self-serve"];
6
- export type CustomerSegment = (typeof customerSegmentArray)[number];
7
- declare const icpArray: readonly ["asset_rental", "retail", "other"];
8
- export type Icp = (typeof icpArray)[number];
9
3
  export declare class CustomerAttribute {
10
4
  clientId: number;
11
5
  client: Relation<Client>;
12
6
  enterprise: boolean;
13
7
  maintenanceModule: boolean;
14
- icp: Icp | null;
15
- billingMethod: BillingMethod | null;
16
- customerSegment: CustomerSegment | null;
8
+ icp: string | null;
9
+ billingMethod: string | null;
10
+ customerSegment: string | null;
17
11
  }
18
- export {};
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../utils/boolToNumberTransformer.js"),o=require("./client.js");exports.CustomerAttribute=class CustomerAttribute{clientId;client;enterprise;maintenanceModule;icp;billingMethod;customerSegment},e.__decorate([t.Column("int",{primary:!0,name:"clientId"}),e.__metadata("design:type",Number)],exports.CustomerAttribute.prototype,"clientId",void 0),e.__decorate([t.OneToOne((()=>o.Client),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"client",void 0),e.__decorate([t.Column("tinyint",{name:"enterprise",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"enterprise",void 0),e.__decorate([t.Column("tinyint",{name:"maintenanceModule",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"maintenanceModule",void 0),e.__decorate([t.Column("enum",{enum:["asset_rental","retail","other"],name:"icp",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"icp",void 0),e.__decorate([t.Column("enum",{enum:["credit-card-hubspot","ach-hubspot","credit-card-braintree","ach-braintree","ach-wire","check","dib-sap"],name:"billingMethod",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billingMethod",void 0),e.__decorate([t.Column("enum",{enum:["whale","bass","guppy","guppy-self-serve"],name:"customerSegment",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"customerSegment",void 0),exports.CustomerAttribute=e.__decorate([t.Entity("customerAttribute",{schema:"nova"})],exports.CustomerAttribute);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../utils/boolToNumberTransformer.js"),o=require("./client.js");exports.CustomerAttribute=class CustomerAttribute{clientId;client;enterprise;maintenanceModule;icp;billingMethod;customerSegment},e.__decorate([t.Column("int",{primary:!0,name:"clientId"}),e.__metadata("design:type",Number)],exports.CustomerAttribute.prototype,"clientId",void 0),e.__decorate([t.OneToOne((()=>o.Client),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn(),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"client",void 0),e.__decorate([t.Column("tinyint",{name:"enterprise",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"enterprise",void 0),e.__decorate([t.Column("tinyint",{name:"maintenanceModule",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"maintenanceModule",void 0),e.__decorate([t.Column("varchar",{name:"icp",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"icp",void 0),e.__decorate([t.Column("varchar",{name:"billingMethod",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billingMethod",void 0),e.__decorate([t.Column("varchar",{name:"customerSegment",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"customerSegment",void 0),exports.CustomerAttribute=e.__decorate([t.Entity("customerAttribute",{schema:"nova"})],exports.CustomerAttribute);
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
4
3
  var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
5
- var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
4
+ var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
6
5
  var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
6
+ var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
7
7
 
8
8
 
9
9
 
10
- exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
11
10
  exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
12
- exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
11
+ exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
13
12
  exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
13
+ exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.269",
3
+ "version": "1.4.270",
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: 175418e88fb0cc69b1d041e5362e2e03
1
+ -- nova-orm-schema-checksum: 1218491ff59816730a2cbf7d73cded34
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-06-28T00:11:47.097Z
3
+ -- Generated at: 2026-06-29T06:54:29.030Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -1382,9 +1382,9 @@ CREATE TABLE `customerAttribute` (
1382
1382
  `clientId` int NOT NULL,
1383
1383
  `enterprise` tinyint(1) NOT NULL DEFAULT '0',
1384
1384
  `maintenanceModule` tinyint(1) NOT NULL DEFAULT '0',
1385
- `icp` enum('asset_rental','retail','other') DEFAULT NULL,
1386
- `billingMethod` enum('credit-card-hubspot','ach-hubspot','credit-card-braintree','ach-braintree','ach-wire','check','dib-sap') DEFAULT NULL,
1387
- `customerSegment` enum('whale','bass','guppy','guppy-self-serve') DEFAULT NULL,
1385
+ `icp` varchar(100) DEFAULT NULL,
1386
+ `billingMethod` varchar(100) DEFAULT NULL,
1387
+ `customerSegment` varchar(100) DEFAULT NULL,
1388
1388
  PRIMARY KEY (`clientId`)
1389
1389
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
1390
1390