@spytecgps/nova-orm 1.4.211 → 1.4.212

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,5 +1,5 @@
1
1
  import { ChurnbusterEventType, DevicePlatform } from '../types/enums';
2
- export declare const platformArray: readonly [DevicePlatform.shopify, DevicePlatform.braintree, DevicePlatform.acumatica, DevicePlatform.klarna, DevicePlatform.amazon, DevicePlatform.braintree_amazon, DevicePlatform.demo, DevicePlatform.stripe, DevicePlatform.stripe_amazon];
2
+ export declare const platformArray: readonly [DevicePlatform.shopify, DevicePlatform.braintree, DevicePlatform.acumatica, DevicePlatform.klarna, DevicePlatform.amazon, DevicePlatform.braintree_amazon, DevicePlatform.demo, DevicePlatform.stripe, DevicePlatform.stripe_amazon, DevicePlatform.oem];
3
3
  export type Platform = (typeof platformArray)[number];
4
4
  export declare const eventTypeArray: readonly [ChurnbusterEventType.campaign_started, ChurnbusterEventType.email_bounced, ChurnbusterEventType.campaign_recovered, ChurnbusterEventType.campaign_lost, ChurnbusterEventType.campaign_won];
5
5
  export type EventType = (typeof eventTypeArray)[number];
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),n=require("../types/enums.js");const r=[n.DevicePlatform.shopify,n.DevicePlatform.braintree,n.DevicePlatform.acumatica,n.DevicePlatform.klarna,n.DevicePlatform.amazon,n.DevicePlatform.braintree_amazon,n.DevicePlatform.demo,n.DevicePlatform.stripe,n.DevicePlatform.stripe_amazon],i=[n.ChurnbusterEventType.campaign_started,n.ChurnbusterEventType.email_bounced,n.ChurnbusterEventType.campaign_recovered,n.ChurnbusterEventType.campaign_lost,n.ChurnbusterEventType.campaign_won];exports.BillingDunning=class BillingDunning{subscriptionId;customerId;email;platform;eventType;churnBusterId;captureUrl;createdAt;updatedAt},e.__decorate([t.PrimaryColumn("varchar",{name:"subscriptionId",length:100}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"subscriptionId",void 0),e.__decorate([t.Column("varchar",{name:"customerId",length:100}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"customerId",void 0),e.__decorate([t.Column("varchar",{name:"email",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"email",void 0),e.__decorate([t.Column("enum",{name:"platform",enum:r}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"platform",void 0),e.__decorate([t.Column("enum",{name:"eventType",enum:i}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"eventType",void 0),e.__decorate([t.Column("varchar",{name:"churnBusterId",length:255}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"churnBusterId",void 0),e.__decorate([t.Column("varchar",{name:"captureUrl",length:1e3}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"captureUrl",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0,precision:0}),e.__metadata("design:type",Date)],exports.BillingDunning.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0,precision:0}),e.__metadata("design:type",Date)],exports.BillingDunning.prototype,"updatedAt",void 0),exports.BillingDunning=e.__decorate([t.Index("ixBillingDunningCustomerId",["customerId"],{}),t.Index("ixBillingDunningEventType",["subscriptionId","eventType"],{}),t.Entity("billingDunning",{schema:"nova"})],exports.BillingDunning),exports.eventTypeArray=i,exports.platformArray=r;
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),n=require("../types/enums.js");const r=[n.DevicePlatform.shopify,n.DevicePlatform.braintree,n.DevicePlatform.acumatica,n.DevicePlatform.klarna,n.DevicePlatform.amazon,n.DevicePlatform.braintree_amazon,n.DevicePlatform.demo,n.DevicePlatform.stripe,n.DevicePlatform.stripe_amazon,n.DevicePlatform.oem],i=[n.ChurnbusterEventType.campaign_started,n.ChurnbusterEventType.email_bounced,n.ChurnbusterEventType.campaign_recovered,n.ChurnbusterEventType.campaign_lost,n.ChurnbusterEventType.campaign_won];exports.BillingDunning=class BillingDunning{subscriptionId;customerId;email;platform;eventType;churnBusterId;captureUrl;createdAt;updatedAt},e.__decorate([t.PrimaryColumn("varchar",{name:"subscriptionId",length:100}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"subscriptionId",void 0),e.__decorate([t.Column("varchar",{name:"customerId",length:100}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"customerId",void 0),e.__decorate([t.Column("varchar",{name:"email",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"email",void 0),e.__decorate([t.Column("enum",{name:"platform",enum:r}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"platform",void 0),e.__decorate([t.Column("enum",{name:"eventType",enum:i}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"eventType",void 0),e.__decorate([t.Column("varchar",{name:"churnBusterId",length:255}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"churnBusterId",void 0),e.__decorate([t.Column("varchar",{name:"captureUrl",length:1e3}),e.__metadata("design:type",String)],exports.BillingDunning.prototype,"captureUrl",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0,precision:0}),e.__metadata("design:type",Date)],exports.BillingDunning.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0,precision:0}),e.__metadata("design:type",Date)],exports.BillingDunning.prototype,"updatedAt",void 0),exports.BillingDunning=e.__decorate([t.Index("ixBillingDunningCustomerId",["customerId"],{}),t.Index("ixBillingDunningEventType",["subscriptionId","eventType"],{}),t.Entity("billingDunning",{schema:"nova"})],exports.BillingDunning),exports.eventTypeArray=i,exports.platformArray=r;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
4
- var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
5
4
  var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
5
+ var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
6
6
 
7
7
 
8
8
 
9
9
  exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
10
- exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
11
10
  exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
11
+ exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.211",
3
+ "version": "1.4.212",
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: 979bd44feb59909da001a1c2aa20684e
1
+ -- nova-orm-schema-checksum: 07a3e5fa04da5ec8cdf047a578dd689e
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-03-30T16:58:14.788Z
3
+ -- Generated at: 2026-03-30T18:33:21.718Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -577,7 +577,7 @@ CREATE TABLE `billingDunning` (
577
577
  `subscriptionId` varchar(100) NOT NULL,
578
578
  `customerId` varchar(100) NOT NULL,
579
579
  `email` varchar(255) DEFAULT NULL,
580
- `platform` enum('shopify','braintree','acumatica','klarna','amazon','braintree_amazon','demo','stripe','stripe_amazon') NOT NULL,
580
+ `platform` enum('shopify','braintree','acumatica','klarna','amazon','braintree_amazon','demo','stripe','stripe_amazon','oem') NOT NULL,
581
581
  `eventType` enum('campaign_started','email_bounced','campaign_recovered','campaign_lost','campaign_won') NOT NULL,
582
582
  `churnBusterId` varchar(255) NOT NULL,
583
583
  `captureUrl` varchar(1000) NOT NULL,