@spytecgps/nova-orm 1.4.220 → 1.4.221

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"),a=require("typeorm"),t=require("../utils/boolToNumberTransformer.js");exports.BillingCampaignPrepaid=class BillingCampaignPrepaid{id;offerId;subscriptionId;email;imei;status;prepaidDurationMonths;prepaidStartAt;prepaidEndAt;convertedAt;canceledAt;annualUpsellEligible;annualUpsellImpressions;annualUpsellFirstShownAt;annualUpsellLastShownAt;annualUpsellDismissedCount;annualUpsellUpgradedAt;createdAt;updatedAt},e.__decorate([a.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"id",void 0),e.__decorate([a.Column("int",{name:"offerId"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"offerId",void 0),e.__decorate([a.Column("varchar",{name:"subscriptionId",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"subscriptionId",void 0),e.__decorate([a.Column("varchar",{name:"email",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"email",void 0),e.__decorate([a.Column("varchar",{name:"imei",nullable:!0,length:64}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"imei",void 0),e.__decorate([a.Column("enum",{enum:["prepaid_started","prepaid_ending_soon","prepaid_converted","canceled","overdue"],name:"status",nullable:!0}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"status",void 0),e.__decorate([a.Column("int",{name:"prepaidDurationMonths",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"prepaidDurationMonths",void 0),e.__decorate([a.Column("datetime",{name:"prepaidStartAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"prepaidStartAt",void 0),e.__decorate([a.Column("datetime",{name:"prepaidEndAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"prepaidEndAt",void 0),e.__decorate([a.Column("datetime",{name:"convertedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"convertedAt",void 0),e.__decorate([a.Column("datetime",{name:"canceledAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"canceledAt",void 0),e.__decorate([a.Column("tinyint",{name:"annualUpsellEligible",width:1,default:()=>"'0'",transformer:new t.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingCampaignPrepaid.prototype,"annualUpsellEligible",void 0),e.__decorate([a.Column("int",{name:"annualUpsellImpressions",default:()=>"'0'"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"annualUpsellImpressions",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellFirstShownAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellFirstShownAt",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellLastShownAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellLastShownAt",void 0),e.__decorate([a.Column("int",{name:"annualUpsellDismissedCount",default:()=>"'0'"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"annualUpsellDismissedCount",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellUpgradedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellUpgradedAt",void 0),e.__decorate([a.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"createdAt",void 0),e.__decorate([a.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"updatedAt",void 0),exports.BillingCampaignPrepaid=e.__decorate([a.Index("ixBillingCampaignPrepaidImei",["imei"]),a.Index("ixBillingCampaignPrepaidEmail",["email"]),a.Index("ixBillingCampaignPrepaidStatusPrepaidEndAt",["status","prepaidEndAt"],{}),a.Index("ixBillingCampaignPrepaidOfferId",["offerId"],{}),a.Index("ixBillingCampaignPrepaidCreatedAt",["createdAt"],{}),a.Entity("billingCampaignPrepaid",{schema:"nova"})],exports.BillingCampaignPrepaid);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),a=require("typeorm"),t=require("../utils/boolToNumberTransformer.js");exports.BillingCampaignPrepaid=class BillingCampaignPrepaid{id;offerId;subscriptionId;email;imei;status;prepaidDurationMonths;prepaidStartAt;prepaidEndAt;convertedAt;canceledAt;annualUpsellEligible;annualUpsellImpressions;annualUpsellFirstShownAt;annualUpsellLastShownAt;annualUpsellDismissedCount;annualUpsellUpgradedAt;createdAt;updatedAt},e.__decorate([a.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"id",void 0),e.__decorate([a.Column("int",{name:"offerId"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"offerId",void 0),e.__decorate([a.Column("varchar",{name:"subscriptionId",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"subscriptionId",void 0),e.__decorate([a.Column("varchar",{name:"email",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"email",void 0),e.__decorate([a.Column("varchar",{name:"imei",nullable:!0,length:64}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"imei",void 0),e.__decorate([a.Column("enum",{enum:["prepaid_started","prepaid_ending_soon","prepaid_converted","canceled","overdue"],name:"status",nullable:!0}),e.__metadata("design:type",String)],exports.BillingCampaignPrepaid.prototype,"status",void 0),e.__decorate([a.Column("int",{name:"prepaidDurationMonths",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"prepaidDurationMonths",void 0),e.__decorate([a.Column("datetime",{name:"prepaidStartAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"prepaidStartAt",void 0),e.__decorate([a.Column("datetime",{name:"prepaidEndAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"prepaidEndAt",void 0),e.__decorate([a.Column("datetime",{name:"convertedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"convertedAt",void 0),e.__decorate([a.Column("datetime",{name:"canceledAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"canceledAt",void 0),e.__decorate([a.Column("tinyint",{name:"annualUpsellEligible",width:1,default:()=>"'0'",transformer:new t.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingCampaignPrepaid.prototype,"annualUpsellEligible",void 0),e.__decorate([a.Column("int",{name:"annualUpsellImpressions",default:()=>"'0'"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"annualUpsellImpressions",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellFirstShownAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellFirstShownAt",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellLastShownAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellLastShownAt",void 0),e.__decorate([a.Column("int",{name:"annualUpsellDismissedCount",default:()=>"'0'"}),e.__metadata("design:type",Number)],exports.BillingCampaignPrepaid.prototype,"annualUpsellDismissedCount",void 0),e.__decorate([a.Column("datetime",{name:"annualUpsellUpgradedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"annualUpsellUpgradedAt",void 0),e.__decorate([a.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"createdAt",void 0),e.__decorate([a.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignPrepaid.prototype,"updatedAt",void 0),exports.BillingCampaignPrepaid=e.__decorate([a.Index("ixBillingCampaignPrepaidImei",["imei"]),a.Index("ixBillingCampaignPrepaidEmail",["email"]),a.Index("ixBillingCampaignPrepaidStatusPrepaidEndAt",["status","prepaidEndAt"],{}),a.Index("ixBillingCampaignPrepaidOfferId",["offerId"],{}),a.Index("ixBillingCampaignPrepaidCreatedAt",["createdAt"],{}),a.Index("ixBillingCampaignPrepaidSubscriptionId",["subscriptionId"],{}),a.Entity("billingCampaignPrepaid",{schema:"nova"})],exports.BillingCampaignPrepaid);
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.BillingDeviceHistory=class BillingDeviceHistory{id;clientId;deviceId;imei;planId;subscriptionId;platform;status;createdAt},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.BillingDeviceHistory.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingDeviceHistory.prototype,"clientId",void 0),e.__decorate([t.Column("int",{name:"deviceId",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingDeviceHistory.prototype,"deviceId",void 0),e.__decorate([t.Column("varchar",{name:"imei",nullable:!0,length:15}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"imei",void 0),e.__decorate([t.Column("varchar",{name:"planId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"planId",void 0),e.__decorate([t.Column("varchar",{name:"subscriptionId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"subscriptionId",void 0),e.__decorate([t.Column("varchar",{name:"platform",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"platform",void 0),e.__decorate([t.Column("varchar",{name:"status",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"status",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingDeviceHistory.prototype,"createdAt",void 0),exports.BillingDeviceHistory=e.__decorate([t.Entity("billingDeviceHistory",{schema:"nova"})],exports.BillingDeviceHistory);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.BillingDeviceHistory=class BillingDeviceHistory{id;clientId;deviceId;imei;planId;subscriptionId;platform;status;createdAt},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.BillingDeviceHistory.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingDeviceHistory.prototype,"clientId",void 0),e.__decorate([t.Column("int",{name:"deviceId",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingDeviceHistory.prototype,"deviceId",void 0),e.__decorate([t.Column("varchar",{name:"imei",nullable:!0,length:15}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"imei",void 0),e.__decorate([t.Column("varchar",{name:"planId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"planId",void 0),e.__decorate([t.Column("varchar",{name:"subscriptionId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"subscriptionId",void 0),e.__decorate([t.Column("varchar",{name:"platform",nullable:!0,length:25}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"platform",void 0),e.__decorate([t.Column("varchar",{name:"status",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.BillingDeviceHistory.prototype,"status",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingDeviceHistory.prototype,"createdAt",void 0),exports.BillingDeviceHistory=e.__decorate([t.Index("ixBillingDeviceHistoryImeiSubscriptionIdCreatedAt",["imei","subscriptionId","createdAt"]),t.Entity("billingDeviceHistory",{schema:"nova"})],exports.BillingDeviceHistory);
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),i=require("../utils/boolToNumberTransformer.js"),n=require("../utils/stringToDateTransformer.js");exports.BillingSubscriptionBraintree=class BillingSubscriptionBraintree{subscriptionId;customerId;planId;createdAt;updatedAt;subscriptionStart;subscriptionEnd;nextBillingDate;subscriptionValue;status;subscriptionPeriodMonths;paymentInstrumentType;paymentInstrumentDetails;isPaused;discountDetails;addons;balance;currentBillingCycle;daysPastDue;description;descriptor;failureCount;firstBillingDate;merchantAccountId;nextBillingPeriodAmount;numberOfBillingCycles;paidThroughDate;paymentMethodToken;statusHistory;trialDuration;trialDurationUnit;trialPeriod},e.__decorate([t.Column("varchar",{primary:!0,name:"subscriptionId",length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"subscriptionId",void 0),e.__decorate([t.Column("varchar",{name:"customerId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"customerId",void 0),e.__decorate([t.Column("varchar",{name:"planId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"planId",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"updatedAt",void 0),e.__decorate([t.Column("date",{name:"subscriptionStart",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"subscriptionStart",void 0),e.__decorate([t.Column("date",{name:"subscriptionEnd",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"subscriptionEnd",void 0),e.__decorate([t.Column("date",{name:"nextBillingDate",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"nextBillingDate",void 0),e.__decorate([t.Column("decimal",{name:"subscriptionValue",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"subscriptionValue",void 0),e.__decorate([t.Column("varchar",{name:"status",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"status",void 0),e.__decorate([t.Column("tinyint",{name:"subscriptionPeriodMonths",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"subscriptionPeriodMonths",void 0),e.__decorate([t.Column("varchar",{name:"paymentInstrumentType",nullable:!0,length:20}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"paymentInstrumentType",void 0),e.__decorate([t.Column("json",{name:"paymentInstrumentDetails",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"paymentInstrumentDetails",void 0),e.__decorate([t.Column("tinyint",{name:"isPaused",nullable:!0,width:1,default:()=>"'0'",transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingSubscriptionBraintree.prototype,"isPaused",void 0),e.__decorate([t.Column("json",{name:"discountDetails",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"discountDetails",void 0),e.__decorate([t.Column("json",{name:"addons",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"addons",void 0),e.__decorate([t.Column("decimal",{name:"balance",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"balance",void 0),e.__decorate([t.Column("tinyint",{name:"currentBillingCycle",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"currentBillingCycle",void 0),e.__decorate([t.Column("tinyint",{name:"daysPastDue",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"daysPastDue",void 0),e.__decorate([t.Column("varchar",{name:"description",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"description",void 0),e.__decorate([t.Column("json",{name:"descriptor",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"descriptor",void 0),e.__decorate([t.Column("tinyint",{name:"failureCount",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"failureCount",void 0),e.__decorate([t.Column("date",{name:"firstBillingDate",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"firstBillingDate",void 0),e.__decorate([t.Column("varchar",{name:"merchantAccountId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"merchantAccountId",void 0),e.__decorate([t.Column("decimal",{name:"nextBillingPeriodAmount",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"nextBillingPeriodAmount",void 0),e.__decorate([t.Column("tinyint",{name:"numberOfBillingCycles",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"numberOfBillingCycles",void 0),e.__decorate([t.Column("date",{name:"paidThroughDate",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"paidThroughDate",void 0),e.__decorate([t.Column("varchar",{name:"paymentMethodToken",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"paymentMethodToken",void 0),e.__decorate([t.Column("json",{name:"statusHistory",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"statusHistory",void 0),e.__decorate([t.Column("smallint",{name:"trialDuration",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"trialDuration",void 0),e.__decorate([t.Column("varchar",{name:"trialDurationUnit",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"trialDurationUnit",void 0),e.__decorate([t.Column("tinyint",{name:"trialPeriod",nullable:!0,width:1,transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingSubscriptionBraintree.prototype,"trialPeriod",void 0),exports.BillingSubscriptionBraintree=e.__decorate([t.Index("ixBillingSubscriptionBraintreeCustomerId",["customerId"],{}),t.Index("ixBillingSubscriptionBraintreeComposite",["subscriptionId","customerId","status"],{}),t.Index("ixBillingSubscriptionBraintreeCreatedAt",["createdAt"],{}),t.Entity("billingSubscriptionBraintree",{schema:"nova"})],exports.BillingSubscriptionBraintree);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),i=require("../utils/boolToNumberTransformer.js"),n=require("../utils/stringToDateTransformer.js");exports.BillingSubscriptionBraintree=class BillingSubscriptionBraintree{subscriptionId;customerId;planId;createdAt;updatedAt;subscriptionStart;subscriptionEnd;nextBillingDate;subscriptionValue;status;subscriptionPeriodMonths;paymentInstrumentType;paymentInstrumentDetails;isPaused;discountDetails;addons;balance;currentBillingCycle;daysPastDue;description;descriptor;failureCount;firstBillingDate;merchantAccountId;nextBillingPeriodAmount;numberOfBillingCycles;paidThroughDate;paymentMethodToken;statusHistory;trialDuration;trialDurationUnit;trialPeriod},e.__decorate([t.Column("varchar",{primary:!0,name:"subscriptionId",length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"subscriptionId",void 0),e.__decorate([t.Column("varchar",{name:"customerId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"customerId",void 0),e.__decorate([t.Column("varchar",{name:"planId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"planId",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"updatedAt",void 0),e.__decorate([t.Column("date",{name:"subscriptionStart",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"subscriptionStart",void 0),e.__decorate([t.Column("date",{name:"subscriptionEnd",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"subscriptionEnd",void 0),e.__decorate([t.Column("date",{name:"nextBillingDate",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"nextBillingDate",void 0),e.__decorate([t.Column("decimal",{name:"subscriptionValue",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"subscriptionValue",void 0),e.__decorate([t.Column("varchar",{name:"status",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"status",void 0),e.__decorate([t.Column("tinyint",{name:"subscriptionPeriodMonths",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"subscriptionPeriodMonths",void 0),e.__decorate([t.Column("varchar",{name:"paymentInstrumentType",nullable:!0,length:20}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"paymentInstrumentType",void 0),e.__decorate([t.Column("json",{name:"paymentInstrumentDetails",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"paymentInstrumentDetails",void 0),e.__decorate([t.Column("tinyint",{name:"isPaused",nullable:!0,width:1,default:()=>"'0'",transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingSubscriptionBraintree.prototype,"isPaused",void 0),e.__decorate([t.Column("json",{name:"discountDetails",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"discountDetails",void 0),e.__decorate([t.Column("json",{name:"addons",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"addons",void 0),e.__decorate([t.Column("decimal",{name:"balance",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"balance",void 0),e.__decorate([t.Column("tinyint",{name:"currentBillingCycle",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"currentBillingCycle",void 0),e.__decorate([t.Column("tinyint",{name:"daysPastDue",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"daysPastDue",void 0),e.__decorate([t.Column("varchar",{name:"description",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"description",void 0),e.__decorate([t.Column("json",{name:"descriptor",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"descriptor",void 0),e.__decorate([t.Column("tinyint",{name:"failureCount",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"failureCount",void 0),e.__decorate([t.Column("date",{name:"firstBillingDate",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"firstBillingDate",void 0),e.__decorate([t.Column("varchar",{name:"merchantAccountId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"merchantAccountId",void 0),e.__decorate([t.Column("decimal",{name:"nextBillingPeriodAmount",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"nextBillingPeriodAmount",void 0),e.__decorate([t.Column("tinyint",{name:"numberOfBillingCycles",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"numberOfBillingCycles",void 0),e.__decorate([t.Column("date",{name:"paidThroughDate",nullable:!0,transformer:new n.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionBraintree.prototype,"paidThroughDate",void 0),e.__decorate([t.Column("varchar",{name:"paymentMethodToken",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"paymentMethodToken",void 0),e.__decorate([t.Column("json",{name:"statusHistory",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionBraintree.prototype,"statusHistory",void 0),e.__decorate([t.Column("smallint",{name:"trialDuration",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionBraintree.prototype,"trialDuration",void 0),e.__decorate([t.Column("varchar",{name:"trialDurationUnit",nullable:!0,length:10}),e.__metadata("design:type",String)],exports.BillingSubscriptionBraintree.prototype,"trialDurationUnit",void 0),e.__decorate([t.Column("tinyint",{name:"trialPeriod",nullable:!0,width:1,transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingSubscriptionBraintree.prototype,"trialPeriod",void 0),exports.BillingSubscriptionBraintree=e.__decorate([t.Index("ixBillingSubscriptionBraintreeCustomerId",["customerId"],{}),t.Index("ixBillingSubscriptionBraintreeComposite",["subscriptionId","customerId","status"],{}),t.Index("ixBillingSubscriptionBraintreeCreatedAt",["createdAt"],{}),t.Index("ixBillingSubscriptionBraintreeStatusUpdatedAt",["status","updatedAt"],{}),t.Entity("billingSubscriptionBraintree",{schema:"nova"})],exports.BillingSubscriptionBraintree);
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),i=require("../utils/boolToNumberTransformer.js"),r=require("../utils/stringToDateTransformer.js");exports.BillingSubscriptionStripe=class BillingSubscriptionStripe{subscriptionId;customerId;planId;activatedAt;subscriptionStart;subscriptionEnd;subscriptionValue;subscriptionPeriodMonths;quantity;status;paymentType;paymentDetails;discounts;addons;balance;paymentMethod;cancelAt;canceledAt;isPaused;resumesAt;isTrial;trialEnd;createdAt;updatedAt},e.__decorate([t.PrimaryColumn("varchar",{name:"subscriptionId",length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"subscriptionId",void 0),e.__decorate([t.Column("varchar",{name:"customerId",length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"customerId",void 0),e.__decorate([t.Column("varchar",{name:"planId",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"planId",void 0),e.__decorate([t.Column("datetime",{name:"activatedAt",nullable:!0,precision:0}),e.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"activatedAt",void 0),e.__decorate([t.Column("date",{name:"subscriptionStart",nullable:!0,transformer:new r.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"subscriptionStart",void 0),e.__decorate([t.Column("date",{name:"subscriptionEnd",nullable:!0,transformer:new r.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"subscriptionEnd",void 0),e.__decorate([t.Column("decimal",{name:"subscriptionValue",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.BillingSubscriptionStripe.prototype,"subscriptionValue",void 0),e.__decorate([t.Column("smallint",{name:"subscriptionPeriodMonths",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionStripe.prototype,"subscriptionPeriodMonths",void 0),e.__decorate([t.Column("smallint",{name:"quantity",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingSubscriptionStripe.prototype,"quantity",void 0),e.__decorate([t.Column("varchar",{name:"status",nullable:!0,length:20}),e.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"paymentType",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"paymentType",void 0),e.__decorate([t.Column("json",{name:"paymentDetails",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionStripe.prototype,"paymentDetails",void 0),e.__decorate([t.Column("json",{name:"discounts",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionStripe.prototype,"discounts",void 0),e.__decorate([t.Column("json",{name:"addons",nullable:!0}),e.__metadata("design:type",Object)],exports.BillingSubscriptionStripe.prototype,"addons",void 0),e.__decorate([t.Column("decimal",{name:"balance",nullable:!0,precision:19,scale:4}),e.__metadata("design:type",Number)],exports.BillingSubscriptionStripe.prototype,"balance",void 0),e.__decorate([t.Column("varchar",{name:"paymentMethod",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"paymentMethod",void 0),e.__decorate([t.Column("date",{name:"cancelAt",nullable:!0,transformer:new r.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"cancelAt",void 0),e.__decorate([t.Column("date",{name:"canceledAt",nullable:!0,transformer:new r.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"canceledAt",void 0),e.__decorate([t.Column("tinyint",{name:"isPaused",width:1,default:()=>"'0'",transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingSubscriptionStripe.prototype,"isPaused",void 0),e.__decorate([t.Column("date",{name:"resumesAt",nullable:!0,transformer:new r.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"resumesAt",void 0),e.__decorate([t.Column("tinyint",{name:"isTrial",width:1,default:()=>"'0'",transformer:new i.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingSubscriptionStripe.prototype,"isTrial",void 0),e.__decorate([t.Column("date",{name:"trialEnd",nullable:!0,transformer:new r.StringToDateTransformer}),e.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"trialEnd",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0,precision:0}),e.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0,precision:0}),e.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"updatedAt",void 0),exports.BillingSubscriptionStripe=e.__decorate([t.Index("ixBillingSubscriptionStripeCustomerId",["customerId"],{}),t.Index("ixBillingSubscriptionStripeComposite",["subscriptionId","customerId","status"],{}),t.Index("ixBillingSubscriptionStripeCreatedAt",["createdAt"],{}),t.Entity("billingSubscriptionStripe",{schema:"nova"})],exports.BillingSubscriptionStripe);
1
+ "use strict";var t=require("../node_modules/tslib/tslib.es6.js"),e=require("typeorm"),i=require("../utils/boolToNumberTransformer.js"),r=require("../utils/stringToDateTransformer.js");exports.BillingSubscriptionStripe=class BillingSubscriptionStripe{subscriptionId;customerId;planId;activatedAt;subscriptionStart;subscriptionEnd;subscriptionValue;subscriptionPeriodMonths;quantity;status;paymentType;paymentDetails;discounts;addons;balance;paymentMethod;cancelAt;canceledAt;isPaused;resumesAt;isTrial;trialEnd;createdAt;updatedAt},t.__decorate([e.PrimaryColumn("varchar",{name:"subscriptionId",length:50}),t.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"subscriptionId",void 0),t.__decorate([e.Column("varchar",{name:"customerId",length:50}),t.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"customerId",void 0),t.__decorate([e.Column("varchar",{name:"planId",nullable:!0,length:50}),t.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"planId",void 0),t.__decorate([e.Column("datetime",{name:"activatedAt",nullable:!0,precision:0}),t.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"activatedAt",void 0),t.__decorate([e.Column("date",{name:"subscriptionStart",nullable:!0,transformer:new r.StringToDateTransformer}),t.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"subscriptionStart",void 0),t.__decorate([e.Column("date",{name:"subscriptionEnd",nullable:!0,transformer:new r.StringToDateTransformer}),t.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"subscriptionEnd",void 0),t.__decorate([e.Column("decimal",{name:"subscriptionValue",nullable:!0,precision:19,scale:4}),t.__metadata("design:type",Number)],exports.BillingSubscriptionStripe.prototype,"subscriptionValue",void 0),t.__decorate([e.Column("smallint",{name:"subscriptionPeriodMonths",nullable:!0}),t.__metadata("design:type",Number)],exports.BillingSubscriptionStripe.prototype,"subscriptionPeriodMonths",void 0),t.__decorate([e.Column("smallint",{name:"quantity",nullable:!0}),t.__metadata("design:type",Number)],exports.BillingSubscriptionStripe.prototype,"quantity",void 0),t.__decorate([e.Column("varchar",{name:"status",nullable:!0,length:20}),t.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"status",void 0),t.__decorate([e.Column("varchar",{name:"paymentType",nullable:!0,length:50}),t.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"paymentType",void 0),t.__decorate([e.Column("json",{name:"paymentDetails",nullable:!0}),t.__metadata("design:type",Object)],exports.BillingSubscriptionStripe.prototype,"paymentDetails",void 0),t.__decorate([e.Column("json",{name:"discounts",nullable:!0}),t.__metadata("design:type",Object)],exports.BillingSubscriptionStripe.prototype,"discounts",void 0),t.__decorate([e.Column("json",{name:"addons",nullable:!0}),t.__metadata("design:type",Object)],exports.BillingSubscriptionStripe.prototype,"addons",void 0),t.__decorate([e.Column("decimal",{name:"balance",nullable:!0,precision:19,scale:4}),t.__metadata("design:type",Number)],exports.BillingSubscriptionStripe.prototype,"balance",void 0),t.__decorate([e.Column("varchar",{name:"paymentMethod",nullable:!0,length:100}),t.__metadata("design:type",String)],exports.BillingSubscriptionStripe.prototype,"paymentMethod",void 0),t.__decorate([e.Column("date",{name:"cancelAt",nullable:!0,transformer:new r.StringToDateTransformer}),t.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"cancelAt",void 0),t.__decorate([e.Column("date",{name:"canceledAt",nullable:!0,transformer:new r.StringToDateTransformer}),t.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"canceledAt",void 0),t.__decorate([e.Column("tinyint",{name:"isPaused",width:1,default:()=>"'0'",transformer:new i.BoolToNumberTransformer}),t.__metadata("design:type",Boolean)],exports.BillingSubscriptionStripe.prototype,"isPaused",void 0),t.__decorate([e.Column("date",{name:"resumesAt",nullable:!0,transformer:new r.StringToDateTransformer}),t.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"resumesAt",void 0),t.__decorate([e.Column("tinyint",{name:"isTrial",width:1,default:()=>"'0'",transformer:new i.BoolToNumberTransformer}),t.__metadata("design:type",Boolean)],exports.BillingSubscriptionStripe.prototype,"isTrial",void 0),t.__decorate([e.Column("date",{name:"trialEnd",nullable:!0,transformer:new r.StringToDateTransformer}),t.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"trialEnd",void 0),t.__decorate([e.Column("datetime",{name:"createdAt",nullable:!0,precision:0}),t.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"createdAt",void 0),t.__decorate([e.Column("datetime",{name:"updatedAt",nullable:!0,precision:0}),t.__metadata("design:type",Date)],exports.BillingSubscriptionStripe.prototype,"updatedAt",void 0),exports.BillingSubscriptionStripe=t.__decorate([e.Index("ixBillingSubscriptionStripeCustomerId",["customerId"],{}),e.Index("ixBillingSubscriptionStripeComposite",["subscriptionId","customerId","status"],{}),e.Index("ixBillingSubscriptionStripeCreatedAt",["createdAt"],{}),e.Index("ixBillingSubscriptionStripeStatusUpdatedAt",["status","updatedAt"],{}),e.Entity("billingSubscriptionStripe",{schema:"nova"})],exports.BillingSubscriptionStripe);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.220",
3
+ "version": "1.4.221",
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: 382ac113aec2978bcb1b3898d29f8cc8
1
+ -- nova-orm-schema-checksum: b419d7a77f0d8b5982712d55d014e5bd
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-05-01T12:22:45.382Z
3
+ -- Generated at: 2026-05-01T13:20:17.406Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -505,6 +505,7 @@ CREATE TABLE `billingCampaignPrepaid` (
505
505
  `createdAt` datetime DEFAULT NULL,
506
506
  `updatedAt` datetime DEFAULT NULL,
507
507
  PRIMARY KEY (`id`),
508
+ KEY `ixBillingCampaignPrepaidSubscriptionId` (`subscriptionId`),
508
509
  KEY `ixBillingCampaignPrepaidCreatedAt` (`createdAt`),
509
510
  KEY `ixBillingCampaignPrepaidOfferId` (`offerId`),
510
511
  KEY `ixBillingCampaignPrepaidStatusPrepaidEndAt` (`status`,`prepaidEndAt`),
@@ -573,7 +574,8 @@ CREATE TABLE `billingDeviceHistory` (
573
574
  `platform` varchar(25) DEFAULT NULL,
574
575
  `status` varchar(10) DEFAULT NULL,
575
576
  `createdAt` datetime DEFAULT NULL,
576
- PRIMARY KEY (`id`)
577
+ PRIMARY KEY (`id`),
578
+ KEY `ixBillingDeviceHistoryImeiSubscriptionIdCreatedAt` (`imei`,`subscriptionId`,`createdAt`)
577
579
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
578
580
 
579
581
  DROP TABLE IF EXISTS `billingDeviceTypePlan`;
@@ -809,6 +811,7 @@ CREATE TABLE `billingSubscriptionBraintree` (
809
811
  `trialDurationUnit` varchar(10) DEFAULT NULL,
810
812
  `trialPeriod` tinyint(1) DEFAULT NULL,
811
813
  PRIMARY KEY (`subscriptionId`),
814
+ KEY `ixBillingSubscriptionBraintreeStatusUpdatedAt` (`status`,`updatedAt`),
812
815
  KEY `ixBillingSubscriptionBraintreeCreatedAt` (`createdAt`),
813
816
  KEY `ixBillingSubscriptionBraintreeComposite` (`subscriptionId`,`customerId`,`status`),
814
817
  KEY `ixBillingSubscriptionBraintreeCustomerId` (`customerId`)
@@ -841,6 +844,7 @@ CREATE TABLE `billingSubscriptionStripe` (
841
844
  `createdAt` datetime DEFAULT NULL,
842
845
  `updatedAt` datetime DEFAULT NULL,
843
846
  PRIMARY KEY (`subscriptionId`),
847
+ KEY `ixBillingSubscriptionStripeStatusUpdatedAt` (`status`,`updatedAt`),
844
848
  KEY `ixBillingSubscriptionStripeCreatedAt` (`createdAt`),
845
849
  KEY `ixBillingSubscriptionStripeComposite` (`subscriptionId`,`customerId`,`status`),
846
850
  KEY `ixBillingSubscriptionStripeCustomerId` (`customerId`)