@spytecgps/nova-orm 1.4.289 → 1.4.291
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.
- package/dist/entities/billingCampaignExpansionOrder.d.ts +2 -1
- package/dist/entities/billingCampaignExpansionOrder.js +1 -1
- package/dist/entities/deviceCameraRequestedVideoData.d.ts +3 -0
- package/dist/entities/deviceCameraRequestedVideoData.js +1 -1
- package/dist/migration/_virtual/_virtual_multi-entry.js +2 -2
- package/package.json +1 -1
- package/schema.sql +5 -3
|
@@ -57,8 +57,9 @@ export declare class BillingCampaignExpansionOrder {
|
|
|
57
57
|
*
|
|
58
58
|
* Never both, and never twice. A row with `deviceFeeChargedAt` set has paid for its hardware
|
|
59
59
|
* whichever arm it is in, which is also what makes "unpaid" a single condition to query.
|
|
60
|
+
*
|
|
61
|
+
* Collected as a single off-session PaymentIntent, so there is no invoice id to keep alongside it.
|
|
60
62
|
*/
|
|
61
|
-
deviceFeeInvoiceId: string | null;
|
|
62
63
|
deviceFeePaymentIntentId: string | null;
|
|
63
64
|
deviceFeeChargedAt: Date | null;
|
|
64
65
|
/** So CS can see *why* a charge declined rather than only that it did not land. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),a=require("typeorm");exports.BillingCampaignExpansionOrder=class BillingCampaignExpansionOrder{id;expansionId;addressId;selectedModelFamily;selectedDeviceTypeId;devicePriceCents;planId;monthlyPriceCents;shopifyDraftOrderId;draftOrderCompletedAt;shopifyOrderId;shippedAt;deliveredAt;trackingNumber;carrier;
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),a=require("typeorm");exports.BillingCampaignExpansionOrder=class BillingCampaignExpansionOrder{id;expansionId;addressId;selectedModelFamily;selectedDeviceTypeId;devicePriceCents;planId;monthlyPriceCents;shopifyDraftOrderId;draftOrderCompletedAt;shopifyOrderId;shippedAt;deliveredAt;trackingNumber;carrier;deviceFeePaymentIntentId;deviceFeeChargedAt;deviceFeeFailureReason;deviceFeeReminderSentAt;deviceFeeReminderCount;csNotes;createdAt;updatedAt},e.__decorate([a.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.BillingCampaignExpansionOrder.prototype,"id",void 0),e.__decorate([a.Column("int",{name:"expansionId"}),e.__metadata("design:type",Number)],exports.BillingCampaignExpansionOrder.prototype,"expansionId",void 0),e.__decorate([a.Column("int",{name:"addressId",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingCampaignExpansionOrder.prototype,"addressId",void 0),e.__decorate([a.Column("varchar",{name:"selectedModelFamily",nullable:!0,length:50}),e.__metadata("design:type",String)],exports.BillingCampaignExpansionOrder.prototype,"selectedModelFamily",void 0),e.__decorate([a.Column("smallint",{name:"selectedDeviceTypeId",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingCampaignExpansionOrder.prototype,"selectedDeviceTypeId",void 0),e.__decorate([a.Column("int",{name:"devicePriceCents",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingCampaignExpansionOrder.prototype,"devicePriceCents",void 0),e.__decorate([a.Column("varchar",{name:"planId",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignExpansionOrder.prototype,"planId",void 0),e.__decorate([a.Column("int",{name:"monthlyPriceCents",nullable:!0}),e.__metadata("design:type",Number)],exports.BillingCampaignExpansionOrder.prototype,"monthlyPriceCents",void 0),e.__decorate([a.Column("varchar",{name:"shopifyDraftOrderId",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignExpansionOrder.prototype,"shopifyDraftOrderId",void 0),e.__decorate([a.Column("datetime",{name:"draftOrderCompletedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignExpansionOrder.prototype,"draftOrderCompletedAt",void 0),e.__decorate([a.Column("varchar",{name:"shopifyOrderId",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignExpansionOrder.prototype,"shopifyOrderId",void 0),e.__decorate([a.Column("datetime",{name:"shippedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignExpansionOrder.prototype,"shippedAt",void 0),e.__decorate([a.Column("datetime",{name:"deliveredAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignExpansionOrder.prototype,"deliveredAt",void 0),e.__decorate([a.Column("varchar",{name:"trackingNumber",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignExpansionOrder.prototype,"trackingNumber",void 0),e.__decorate([a.Column("varchar",{name:"carrier",nullable:!0,length:128}),e.__metadata("design:type",String)],exports.BillingCampaignExpansionOrder.prototype,"carrier",void 0),e.__decorate([a.Column("varchar",{name:"deviceFeePaymentIntentId",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.BillingCampaignExpansionOrder.prototype,"deviceFeePaymentIntentId",void 0),e.__decorate([a.Column("datetime",{name:"deviceFeeChargedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignExpansionOrder.prototype,"deviceFeeChargedAt",void 0),e.__decorate([a.Column("varchar",{name:"deviceFeeFailureReason",nullable:!0,length:512}),e.__metadata("design:type",String)],exports.BillingCampaignExpansionOrder.prototype,"deviceFeeFailureReason",void 0),e.__decorate([a.Column("datetime",{name:"deviceFeeReminderSentAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignExpansionOrder.prototype,"deviceFeeReminderSentAt",void 0),e.__decorate([a.Column("int",{name:"deviceFeeReminderCount",default:()=>"'0'"}),e.__metadata("design:type",Number)],exports.BillingCampaignExpansionOrder.prototype,"deviceFeeReminderCount",void 0),e.__decorate([a.Column("text",{name:"csNotes",nullable:!0}),e.__metadata("design:type",String)],exports.BillingCampaignExpansionOrder.prototype,"csNotes",void 0),e.__decorate([a.Column("datetime",{name:"createdAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignExpansionOrder.prototype,"createdAt",void 0),e.__decorate([a.Column("datetime",{name:"updatedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.BillingCampaignExpansionOrder.prototype,"updatedAt",void 0),exports.BillingCampaignExpansionOrder=e.__decorate([a.Index("ixuBillingCampaignExpansionOrderExpansionId",["expansionId"],{unique:!0}),a.Index("ixBillingCampaignExpansionOrderDraftOrderId",["shopifyDraftOrderId"],{}),a.Index("ixBillingCampaignExpansionOrderShopifyOrderId",["shopifyOrderId"],{}),a.Index("ixBillingCampaignExpansionOrderShippedAt",["shippedAt"],{}),a.Index("ixBillingCampaignExpansionOrderAwaitingPayment",["deviceFeeChargedAt","createdAt"],{}),a.Entity("billingCampaignExpansionOrder",{schema:"nova"})],exports.BillingCampaignExpansionOrder);
|
|
@@ -16,6 +16,9 @@ export declare class DeviceCameraRequestedVideoData {
|
|
|
16
16
|
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
17
17
|
resultFileName?: string | null;
|
|
18
18
|
failureReason?: string | null;
|
|
19
|
+
parentRequestId?: number | null;
|
|
20
|
+
retryCount?: number;
|
|
21
|
+
lastRetriedAt?: Date | null;
|
|
19
22
|
requestedBy: string;
|
|
20
23
|
requestedByUser?: Relation<User>;
|
|
21
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js"),r=require("./user.js");exports.DeviceCameraRequestedVideoData=class DeviceCameraRequestedVideoData{id;commandSequenceNumber;clientId;imei;startTime;duration;cameraSource;createdAt;totalFilesCount;receivedFilesCount;receivedFiles;expectedFiles;status;resultFileName;failureReason;requestedBy;requestedByUser},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"commandSequenceNumber",length:10}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"commandSequenceNumber",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"imei",void 0),e.__decorate([t.Column("datetime",{name:"startTime"}),e.__metadata("design:type",Date)],exports.DeviceCameraRequestedVideoData.prototype,"startTime",void 0),e.__decorate([t.Column("int",{name:"duration"}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"duration",void 0),e.__decorate([t.Column("int",{name:"cameraSource"}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"cameraSource",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",default:()=>"CURRENT_TIMESTAMP"}),e.__metadata("design:type",Date)],exports.DeviceCameraRequestedVideoData.prototype,"createdAt",void 0),e.__decorate([t.Column("int",{name:"totalFilesCount",nullable:!0,default:0}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"totalFilesCount",void 0),e.__decorate([t.Column("int",{name:"receivedFilesCount",nullable:!0,default:0}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"receivedFilesCount",void 0),e.__decorate([t.Column("json",{name:"receivedFiles",nullable:!0}),e.__metadata("design:type",Array)],exports.DeviceCameraRequestedVideoData.prototype,"receivedFiles",void 0),e.__decorate([t.Column("json",{name:"expectedFiles",nullable:!0}),e.__metadata("design:type",Array)],exports.DeviceCameraRequestedVideoData.prototype,"expectedFiles",void 0),e.__decorate([t.Column("varchar",{name:"status",length:255,default:"pending"}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"resultFileName",nullable:!0}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"resultFileName",void 0),e.__decorate([t.Column("varchar",{name:"failureReason",nullable:!0}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"failureReason",void 0),e.__decorate([t.Column("binary",{name:"requestedBy",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"requestedBy",void 0),e.__decorate([t.OneToOne((()=>r.User),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn({name:"requestedBy",referencedColumnName:"id"}),e.__metadata("design:type",Object)],exports.DeviceCameraRequestedVideoData.prototype,"requestedByUser",void 0),exports.DeviceCameraRequestedVideoData=e.__decorate([t.Index("ix_clientId_imei_createdAt",["clientId","imei","createdAt"],{}),t.Entity("deviceCameraRequestedVideoData",{schema:"nova"})],exports.DeviceCameraRequestedVideoData);
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),a=require("../utils/uuidTransformer.js"),r=require("./user.js");exports.DeviceCameraRequestedVideoData=class DeviceCameraRequestedVideoData{id;commandSequenceNumber;clientId;imei;startTime;duration;cameraSource;createdAt;totalFilesCount;receivedFilesCount;receivedFiles;expectedFiles;status;resultFileName;failureReason;parentRequestId;retryCount;lastRetriedAt;requestedBy;requestedByUser},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id"}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"commandSequenceNumber",length:10}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"commandSequenceNumber",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:15}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"imei",void 0),e.__decorate([t.Column("datetime",{name:"startTime"}),e.__metadata("design:type",Date)],exports.DeviceCameraRequestedVideoData.prototype,"startTime",void 0),e.__decorate([t.Column("int",{name:"duration"}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"duration",void 0),e.__decorate([t.Column("int",{name:"cameraSource"}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"cameraSource",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",default:()=>"CURRENT_TIMESTAMP"}),e.__metadata("design:type",Date)],exports.DeviceCameraRequestedVideoData.prototype,"createdAt",void 0),e.__decorate([t.Column("int",{name:"totalFilesCount",nullable:!0,default:0}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"totalFilesCount",void 0),e.__decorate([t.Column("int",{name:"receivedFilesCount",nullable:!0,default:0}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"receivedFilesCount",void 0),e.__decorate([t.Column("json",{name:"receivedFiles",nullable:!0}),e.__metadata("design:type",Array)],exports.DeviceCameraRequestedVideoData.prototype,"receivedFiles",void 0),e.__decorate([t.Column("json",{name:"expectedFiles",nullable:!0}),e.__metadata("design:type",Array)],exports.DeviceCameraRequestedVideoData.prototype,"expectedFiles",void 0),e.__decorate([t.Column("varchar",{name:"status",length:255,default:"pending"}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"status",void 0),e.__decorate([t.Column("varchar",{name:"resultFileName",nullable:!0}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"resultFileName",void 0),e.__decorate([t.Column("varchar",{name:"failureReason",nullable:!0}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"failureReason",void 0),e.__decorate([t.Column("int",{name:"parentRequestId",nullable:!0}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"parentRequestId",void 0),e.__decorate([t.Column("int",{name:"retryCount",default:0}),e.__metadata("design:type",Number)],exports.DeviceCameraRequestedVideoData.prototype,"retryCount",void 0),e.__decorate([t.Column("datetime",{name:"lastRetriedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.DeviceCameraRequestedVideoData.prototype,"lastRetriedAt",void 0),e.__decorate([t.Column("binary",{name:"requestedBy",length:16,transformer:a.UUIDTransformer}),e.__metadata("design:type",String)],exports.DeviceCameraRequestedVideoData.prototype,"requestedBy",void 0),e.__decorate([t.OneToOne((()=>r.User),{createForeignKeyConstraints:!1,nullable:!1}),t.JoinColumn({name:"requestedBy",referencedColumnName:"id"}),e.__metadata("design:type",Object)],exports.DeviceCameraRequestedVideoData.prototype,"requestedByUser",void 0),exports.DeviceCameraRequestedVideoData=e.__decorate([t.Index("ix_clientId_imei_createdAt",["clientId","imei","createdAt"],{}),t.Entity("deviceCameraRequestedVideoData",{schema:"nova"})],exports.DeviceCameraRequestedVideoData);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
|
-
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
5
4
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
6
5
|
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
|
+
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
11
|
-
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
12
11
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
13
12
|
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
13
|
+
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
package/package.json
CHANGED
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: 8e16a2e1f56a8044bc2ab69e96e66ff3
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-08-
|
|
3
|
+
-- Generated at: 2026-08-18T07:39:02.940Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -568,7 +568,6 @@ CREATE TABLE `billingCampaignExpansionOrder` (
|
|
|
568
568
|
`deliveredAt` datetime DEFAULT NULL,
|
|
569
569
|
`trackingNumber` varchar(255) DEFAULT NULL,
|
|
570
570
|
`carrier` varchar(128) DEFAULT NULL,
|
|
571
|
-
`deviceFeeInvoiceId` varchar(255) DEFAULT NULL,
|
|
572
571
|
`deviceFeePaymentIntentId` varchar(255) DEFAULT NULL,
|
|
573
572
|
`deviceFeeChargedAt` datetime DEFAULT NULL,
|
|
574
573
|
`deviceFeeFailureReason` varchar(512) DEFAULT NULL,
|
|
@@ -1947,6 +1946,9 @@ CREATE TABLE `deviceCameraRequestedVideoData` (
|
|
|
1947
1946
|
`status` varchar(255) NOT NULL DEFAULT 'pending',
|
|
1948
1947
|
`resultFileName` varchar(255) DEFAULT NULL,
|
|
1949
1948
|
`failureReason` varchar(255) DEFAULT NULL,
|
|
1949
|
+
`parentRequestId` int DEFAULT NULL,
|
|
1950
|
+
`retryCount` int NOT NULL DEFAULT '0',
|
|
1951
|
+
`lastRetriedAt` datetime DEFAULT NULL,
|
|
1950
1952
|
`requestedBy` binary(16) NOT NULL,
|
|
1951
1953
|
PRIMARY KEY (`id`),
|
|
1952
1954
|
KEY `ix_clientId_imei_createdAt` (`clientId`,`imei`,`createdAt`)
|