@spytecgps/nova-orm 1.4.316 → 1.4.318

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.
@@ -11,4 +11,9 @@ export declare class BillingCustomerStripe {
11
11
  createdAt: Date | null;
12
12
  updatedAt: Date | null;
13
13
  hasMigratedExpiredCard: boolean;
14
+ /**
15
+ * Mirror of the Stripe customer's `metadata.autoUnpaidOnOverdue`, kept current by api-management's
16
+ * customer webhook: true = "true", false = any other value, null = key absent.
17
+ */
18
+ stripeAutoUnpaidOnOverdue: boolean | null;
14
19
  }
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../utils/boolToNumberTransformer.js");exports.BillingCustomerStripe=class BillingCustomerStripe{id;name;email;phone;street;city;region;country;postalCode;createdAt;updatedAt;hasMigratedExpiredCard},e.__decorate([t.PrimaryColumn("varchar",{name:"id",length:50}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"name",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"email",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"email",void 0),e.__decorate([t.Column("varchar",{name:"phone",nullable:!0,length:20}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"phone",void 0),e.__decorate([t.Column("varchar",{name:"street",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"street",void 0),e.__decorate([t.Column("varchar",{name:"city",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"city",void 0),e.__decorate([t.Column("varchar",{name:"region",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"region",void 0),e.__decorate([t.Column("varchar",{name:"country",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"country",void 0),e.__decorate([t.Column("varchar",{name:"postalCode",nullable:!0,length:30}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"postalCode",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCustomerStripe.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCustomerStripe.prototype,"updatedAt",void 0),e.__decorate([t.Column("tinyint",{name:"hasMigratedExpiredCard",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingCustomerStripe.prototype,"hasMigratedExpiredCard",void 0),exports.BillingCustomerStripe=e.__decorate([t.Index("ixBillingCustomerStripeEmail",["email"],{}),t.Entity("billingCustomerStripe",{schema:"nova"})],exports.BillingCustomerStripe);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../utils/boolToNumberTransformer.js");exports.BillingCustomerStripe=class BillingCustomerStripe{id;name;email;phone;street;city;region;country;postalCode;createdAt;updatedAt;hasMigratedExpiredCard;stripeAutoUnpaidOnOverdue},e.__decorate([t.PrimaryColumn("varchar",{name:"id",length:50}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"name",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"name",void 0),e.__decorate([t.Column("varchar",{name:"email",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"email",void 0),e.__decorate([t.Column("varchar",{name:"phone",nullable:!0,length:20}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"phone",void 0),e.__decorate([t.Column("varchar",{name:"street",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"street",void 0),e.__decorate([t.Column("varchar",{name:"city",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"city",void 0),e.__decorate([t.Column("varchar",{name:"region",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"region",void 0),e.__decorate([t.Column("varchar",{name:"country",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"country",void 0),e.__decorate([t.Column("varchar",{name:"postalCode",nullable:!0,length:30}),e.__metadata("design:type",String)],exports.BillingCustomerStripe.prototype,"postalCode",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCustomerStripe.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCustomerStripe.prototype,"updatedAt",void 0),e.__decorate([t.Column("tinyint",{name:"hasMigratedExpiredCard",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingCustomerStripe.prototype,"hasMigratedExpiredCard",void 0),e.__decorate([t.Column("tinyint",{name:"stripeAutoUnpaidOnOverdue",nullable:!0,width:1,transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.BillingCustomerStripe.prototype,"stripeAutoUnpaidOnOverdue",void 0),exports.BillingCustomerStripe=e.__decorate([t.Index("ixBillingCustomerStripeEmail",["email"],{}),t.Entity("billingCustomerStripe",{schema:"nova"})],exports.BillingCustomerStripe);
@@ -17,4 +17,5 @@ export declare class ReportScheduleConfiguration {
17
17
  createdAt?: Date | null;
18
18
  updatedAt?: Date | null;
19
19
  parameters: Record<string, any> | null;
20
+ savedViewId?: string | null;
20
21
  }
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.ReportScheduleConfiguration=class ReportScheduleConfiguration{id;clientId;reportName;reportType;customReportId;status;emailMessage;frequency;timeOfDay;daysOfWeek;quarters;monthlyOption;dayOfMonth;recipients;format;createdAt;updatedAt;parameters},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.ReportScheduleConfiguration.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.ReportScheduleConfiguration.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"reportName",length:100}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"reportName",void 0),e.__decorate([t.Column("varchar",{name:"reportType",length:100}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"reportType",void 0),e.__decorate([t.Column("int",{name:"customReportId",nullable:!0}),e.__metadata("design:type",Number)],exports.ReportScheduleConfiguration.prototype,"customReportId",void 0),e.__decorate([t.Column("varchar",{name:"status",length:10,default:()=>"'Active'"}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"emailMessage",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"emailMessage",void 0),e.__decorate([t.Column("varchar",{name:"frequency",length:10,nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"frequency",void 0),e.__decorate([t.Column("time",{name:"timeOfDay",nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"timeOfDay",void 0),e.__decorate([t.Column("json",{name:"daysOfWeek",nullable:!0}),e.__metadata("design:type",Array)],exports.ReportScheduleConfiguration.prototype,"daysOfWeek",void 0),e.__decorate([t.Column("json",{name:"quarters",nullable:!0}),e.__metadata("design:type",Array)],exports.ReportScheduleConfiguration.prototype,"quarters",void 0),e.__decorate([t.Column("varchar",{name:"monthlyOption",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"monthlyOption",void 0),e.__decorate([t.Column("int",{name:"dayOfMonth",nullable:!0}),e.__metadata("design:type",Number)],exports.ReportScheduleConfiguration.prototype,"dayOfMonth",void 0),e.__decorate([t.Column("varchar",{name:"recipients",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"recipients",void 0),e.__decorate([t.Column("varchar",{name:"format",length:10,nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"format",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",default:()=>"CURRENT_TIMESTAMP",nullable:!0}),e.__metadata("design:type",Date)],exports.ReportScheduleConfiguration.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.ReportScheduleConfiguration.prototype,"updatedAt",void 0),e.__decorate([t.Column("json",{name:"parameters",nullable:!0}),e.__metadata("design:type",Object)],exports.ReportScheduleConfiguration.prototype,"parameters",void 0),exports.ReportScheduleConfiguration=e.__decorate([t.Entity("reportScheduleConfiguration",{schema:"nova"})],exports.ReportScheduleConfiguration);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),o=require("../utils/uuidTransformer.js");exports.ReportScheduleConfiguration=class ReportScheduleConfiguration{id;clientId;reportName;reportType;customReportId;status;emailMessage;frequency;timeOfDay;daysOfWeek;quarters;monthlyOption;dayOfMonth;recipients;format;createdAt;updatedAt;parameters;savedViewId},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.ReportScheduleConfiguration.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.ReportScheduleConfiguration.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"reportName",length:100}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"reportName",void 0),e.__decorate([t.Column("varchar",{name:"reportType",length:100}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"reportType",void 0),e.__decorate([t.Column("int",{name:"customReportId",nullable:!0}),e.__metadata("design:type",Number)],exports.ReportScheduleConfiguration.prototype,"customReportId",void 0),e.__decorate([t.Column("varchar",{name:"status",length:10,default:()=>"'Active'"}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"emailMessage",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"emailMessage",void 0),e.__decorate([t.Column("varchar",{name:"frequency",length:10,nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"frequency",void 0),e.__decorate([t.Column("time",{name:"timeOfDay",nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"timeOfDay",void 0),e.__decorate([t.Column("json",{name:"daysOfWeek",nullable:!0}),e.__metadata("design:type",Array)],exports.ReportScheduleConfiguration.prototype,"daysOfWeek",void 0),e.__decorate([t.Column("json",{name:"quarters",nullable:!0}),e.__metadata("design:type",Array)],exports.ReportScheduleConfiguration.prototype,"quarters",void 0),e.__decorate([t.Column("varchar",{name:"monthlyOption",length:20,nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"monthlyOption",void 0),e.__decorate([t.Column("int",{name:"dayOfMonth",nullable:!0}),e.__metadata("design:type",Number)],exports.ReportScheduleConfiguration.prototype,"dayOfMonth",void 0),e.__decorate([t.Column("varchar",{name:"recipients",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"recipients",void 0),e.__decorate([t.Column("varchar",{name:"format",length:10,nullable:!0}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"format",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",default:()=>"CURRENT_TIMESTAMP",nullable:!0}),e.__metadata("design:type",Date)],exports.ReportScheduleConfiguration.prototype,"createdAt",void 0),e.__decorate([t.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.ReportScheduleConfiguration.prototype,"updatedAt",void 0),e.__decorate([t.Column("json",{name:"parameters",nullable:!0}),e.__metadata("design:type",Object)],exports.ReportScheduleConfiguration.prototype,"parameters",void 0),e.__decorate([t.Column("binary",{name:"savedViewId",length:16,nullable:!0,transformer:o.UUIDTransformer}),e.__metadata("design:type",String)],exports.ReportScheduleConfiguration.prototype,"savedViewId",void 0),exports.ReportScheduleConfiguration=e.__decorate([t.Index("ixReportScheduleConfigurationSavedViewId",["savedViewId"],{}),t.Entity("reportScheduleConfiguration",{schema:"nova"})],exports.ReportScheduleConfiguration);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.316",
3
+ "version": "1.4.318",
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: ffe04d5e7637add6eba69c427b189c03
1
+ -- nova-orm-schema-checksum: 99edbfa442279c68381ee905bf5bfcf1
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-10-05T07:17:53.279Z
3
+ -- Generated at: 2026-10-08T08:12:39.361Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -716,6 +716,7 @@ CREATE TABLE `billingCustomerStripe` (
716
716
  `createdAt` datetime DEFAULT NULL,
717
717
  `updatedAt` datetime DEFAULT NULL,
718
718
  `hasMigratedExpiredCard` tinyint(1) NOT NULL DEFAULT '0',
719
+ `stripeAutoUnpaidOnOverdue` tinyint(1) DEFAULT NULL,
719
720
  PRIMARY KEY (`id`),
720
721
  KEY `ixBillingCustomerStripeEmail` (`email`)
721
722
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
@@ -3077,7 +3078,9 @@ CREATE TABLE `reportScheduleConfiguration` (
3077
3078
  `createdAt` datetime DEFAULT CURRENT_TIMESTAMP,
3078
3079
  `updatedAt` datetime DEFAULT NULL,
3079
3080
  `parameters` json DEFAULT NULL,
3080
- PRIMARY KEY (`id`)
3081
+ `savedViewId` binary(16) DEFAULT NULL,
3082
+ PRIMARY KEY (`id`),
3083
+ KEY `ixReportScheduleConfigurationSavedViewId` (`savedViewId`)
3081
3084
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
3082
3085
 
3083
3086
  DROP TABLE IF EXISTS `retailAlert`;