@spytecgps/nova-orm 1.4.326 → 1.4.328

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,6 +11,7 @@ export declare class CustomerAttribute {
11
11
  customerSegment: string | null;
12
12
  industries: string | null;
13
13
  primaryUseCase: string | null;
14
+ crmPersonas: string | null;
14
15
  storeBlocked: boolean;
15
16
  csmOwnerId: string | null;
16
17
  csmOwnerEmail: string | null;
@@ -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;industries;primaryUseCase;storeBlocked;csmOwnerId;csmOwnerEmail;hubspotCompanyId;hubspotSyncedAt;deviceSummary;activationIndustry;billingOverride;storeAccessOverride;kindOverride;personasOverride;overrideSetBy;overrideSetAt;overrideReason;billing;storeAccess;storePricing;managed;kind;tier;personas;powerProfile;profileSources;profileComputedAt},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),e.__decorate([t.Column("varchar",{name:"industries",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"industries",void 0),e.__decorate([t.Column("varchar",{name:"primaryUseCase",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"primaryUseCase",void 0),e.__decorate([t.Column("tinyint",{name:"storeBlocked",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"storeBlocked",void 0),e.__decorate([t.Column("varchar",{name:"csmOwnerId",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"csmOwnerId",void 0),e.__decorate([t.Column("varchar",{name:"csmOwnerEmail",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"csmOwnerEmail",void 0),e.__decorate([t.Column("varchar",{name:"hubspotCompanyId",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"hubspotCompanyId",void 0),e.__decorate([t.Column("datetime",{name:"hubspotSyncedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"hubspotSyncedAt",void 0),e.__decorate([t.Column("json",{name:"deviceSummary",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"deviceSummary",void 0),e.__decorate([t.Column("varchar",{name:"activationIndustry",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"activationIndustry",void 0),e.__decorate([t.Column("varchar",{name:"billingOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billingOverride",void 0),e.__decorate([t.Column("varchar",{name:"storeAccessOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storeAccessOverride",void 0),e.__decorate([t.Column("varchar",{name:"kindOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"kindOverride",void 0),e.__decorate([t.Column("json",{name:"personasOverride",nullable:!0}),e.__metadata("design:type",Array)],exports.CustomerAttribute.prototype,"personasOverride",void 0),e.__decorate([t.Column("varchar",{name:"overrideSetBy",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"overrideSetBy",void 0),e.__decorate([t.Column("datetime",{name:"overrideSetAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"overrideSetAt",void 0),e.__decorate([t.Column("varchar",{name:"overrideReason",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"overrideReason",void 0),e.__decorate([t.Column("varchar",{name:"billing",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billing",void 0),e.__decorate([t.Column("varchar",{name:"storeAccess",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storeAccess",void 0),e.__decorate([t.Column("varchar",{name:"storePricing",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storePricing",void 0),e.__decorate([t.Column("tinyint",{name:"managed",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"managed",void 0),e.__decorate([t.Column("varchar",{name:"kind",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"kind",void 0),e.__decorate([t.Column("varchar",{name:"tier",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"tier",void 0),e.__decorate([t.Column("json",{name:"personas",nullable:!0}),e.__metadata("design:type",Array)],exports.CustomerAttribute.prototype,"personas",void 0),e.__decorate([t.Column("varchar",{name:"powerProfile",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"powerProfile",void 0),e.__decorate([t.Column("json",{name:"profileSources",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"profileSources",void 0),e.__decorate([t.Column("datetime",{name:"profileComputedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"profileComputedAt",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;industries;primaryUseCase;crmPersonas;storeBlocked;csmOwnerId;csmOwnerEmail;hubspotCompanyId;hubspotSyncedAt;deviceSummary;activationIndustry;billingOverride;storeAccessOverride;kindOverride;personasOverride;overrideSetBy;overrideSetAt;overrideReason;billing;storeAccess;storePricing;managed;kind;tier;personas;powerProfile;profileSources;profileComputedAt},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),e.__decorate([t.Column("varchar",{name:"industries",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"industries",void 0),e.__decorate([t.Column("varchar",{name:"primaryUseCase",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"primaryUseCase",void 0),e.__decorate([t.Column("varchar",{name:"crmPersonas",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"crmPersonas",void 0),e.__decorate([t.Column("tinyint",{name:"storeBlocked",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"storeBlocked",void 0),e.__decorate([t.Column("varchar",{name:"csmOwnerId",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"csmOwnerId",void 0),e.__decorate([t.Column("varchar",{name:"csmOwnerEmail",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"csmOwnerEmail",void 0),e.__decorate([t.Column("varchar",{name:"hubspotCompanyId",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"hubspotCompanyId",void 0),e.__decorate([t.Column("datetime",{name:"hubspotSyncedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"hubspotSyncedAt",void 0),e.__decorate([t.Column("json",{name:"deviceSummary",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"deviceSummary",void 0),e.__decorate([t.Column("varchar",{name:"activationIndustry",length:100,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"activationIndustry",void 0),e.__decorate([t.Column("varchar",{name:"billingOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billingOverride",void 0),e.__decorate([t.Column("varchar",{name:"storeAccessOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storeAccessOverride",void 0),e.__decorate([t.Column("varchar",{name:"kindOverride",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"kindOverride",void 0),e.__decorate([t.Column("json",{name:"personasOverride",nullable:!0}),e.__metadata("design:type",Array)],exports.CustomerAttribute.prototype,"personasOverride",void 0),e.__decorate([t.Column("varchar",{name:"overrideSetBy",length:255,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"overrideSetBy",void 0),e.__decorate([t.Column("datetime",{name:"overrideSetAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"overrideSetAt",void 0),e.__decorate([t.Column("varchar",{name:"overrideReason",length:500,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"overrideReason",void 0),e.__decorate([t.Column("varchar",{name:"billing",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"billing",void 0),e.__decorate([t.Column("varchar",{name:"storeAccess",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storeAccess",void 0),e.__decorate([t.Column("varchar",{name:"storePricing",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"storePricing",void 0),e.__decorate([t.Column("tinyint",{name:"managed",width:1,default:()=>"'0'",transformer:new r.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerAttribute.prototype,"managed",void 0),e.__decorate([t.Column("varchar",{name:"kind",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"kind",void 0),e.__decorate([t.Column("varchar",{name:"tier",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"tier",void 0),e.__decorate([t.Column("json",{name:"personas",nullable:!0}),e.__metadata("design:type",Array)],exports.CustomerAttribute.prototype,"personas",void 0),e.__decorate([t.Column("varchar",{name:"powerProfile",length:50,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerAttribute.prototype,"powerProfile",void 0),e.__decorate([t.Column("json",{name:"profileSources",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerAttribute.prototype,"profileSources",void 0),e.__decorate([t.Column("datetime",{name:"profileComputedAt",nullable:!0}),e.__metadata("design:type",Date)],exports.CustomerAttribute.prototype,"profileComputedAt",void 0),exports.CustomerAttribute=e.__decorate([t.Entity("customerAttribute",{schema:"nova"})],exports.CustomerAttribute);
@@ -31,6 +31,11 @@ export declare class CustomerReturn {
31
31
  trackerCanBeReturned: boolean | null;
32
32
  agentName: string | null;
33
33
  notes: string | null;
34
+ /** Carrier tracking of what we ship to the customer (the replacement, or the exchange item). */
35
+ shipmentTracking: string | null;
36
+ shippedDate: string | null;
37
+ /** What shipping the order cost us. DECIMAL, so MySQL hands it back as a string ("10.95"). */
38
+ shippingCost: string | null;
34
39
  returnByDate: string | null;
35
40
  rmaNumber: string | null;
36
41
  /** Where the customer sends the item back: an address or a label, depending on the reason. */
@@ -1 +1 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../types/enums.js"),n=require("../utils/boolToNumberTransformer.js");const o=[r.CustomerReturnType.refund,r.CustomerReturnType.exchange,r.CustomerReturnType.replacement],a=[r.CustomerReturnStatus.pending,r.CustomerReturnStatus.processing,r.CustomerReturnStatus.problem,r.CustomerReturnStatus.complete,r.CustomerReturnStatus.cancelled],u=[r.CustomerReturnReason.wrong_item_shipped,r.CustomerReturnReason.arrived_damaged,r.CustomerReturnReason.missing_parts,r.CustomerReturnReason.never_received,r.CustomerReturnReason.defective_power_battery,r.CustomerReturnReason.defective_cell,r.CustomerReturnReason.defective_gps,r.CustomerReturnReason.lost_device,r.CustomerReturnReason.terminated_sim,r.CustomerReturnReason.international_network_config,r.CustomerReturnReason.customer_appeasement,r.CustomerReturnReason.returning_extra_item,r.CustomerReturnReason.other],m=[r.CustomerReturnShippingMethod.ground,r.CustomerReturnShippingMethod.expedited_2_day,r.CustomerReturnShippingMethod.overnight,r.CustomerReturnShippingMethod.saturday],s=[r.CustomerReturnItemReturned.same,r.CustomerReturnItemReturned.other];exports.CustomerReturn=class CustomerReturn{id;clientId;type;status;reason;otherReason;orderNumber;ticketNumber;customerName;customerEmail;shippingAddress;shippingMethod;trackerCareCovered;trackerCanBeReturned;agentName;notes;returnByDate;rmaNumber;returnLabel;returnTracking;refundProcessed;itemReturned;itemReturnedOther;knackId;knackNumber;knackData;createdAt;updatedAt},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id",unsigned:!0}),e.__metadata("design:type",Number)],exports.CustomerReturn.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId",nullable:!0}),e.__metadata("design:type",Number)],exports.CustomerReturn.prototype,"clientId",void 0),e.__decorate([t.Column("enum",{name:"type",enum:o}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"type",void 0),e.__decorate([t.Column("enum",{name:"status",enum:a,default:r.CustomerReturnStatus.pending}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"status",void 0),e.__decorate([t.Column("enum",{name:"reason",enum:u,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"reason",void 0),e.__decorate([t.Column("varchar",{name:"otherReason",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"otherReason",void 0),e.__decorate([t.Column("varchar",{name:"orderNumber",nullable:!0,length:64}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"orderNumber",void 0),e.__decorate([t.Column("varchar",{name:"ticketNumber",nullable:!0,length:64}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"ticketNumber",void 0),e.__decorate([t.Column("varchar",{name:"customerName",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"customerName",void 0),e.__decorate([t.Column("varchar",{name:"customerEmail",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"customerEmail",void 0),e.__decorate([t.Column("varchar",{name:"shippingAddress",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"shippingAddress",void 0),e.__decorate([t.Column("enum",{name:"shippingMethod",enum:m,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"shippingMethod",void 0),e.__decorate([t.Column("tinyint",{name:"trackerCareCovered",nullable:!0,width:1,transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerReturn.prototype,"trackerCareCovered",void 0),e.__decorate([t.Column("tinyint",{name:"trackerCanBeReturned",nullable:!0,width:1,transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerReturn.prototype,"trackerCanBeReturned",void 0),e.__decorate([t.Column("varchar",{name:"agentName",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"agentName",void 0),e.__decorate([t.Column("text",{name:"notes",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"notes",void 0),e.__decorate([t.Column("date",{name:"returnByDate",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"returnByDate",void 0),e.__decorate([t.Column("varchar",{name:"rmaNumber",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"rmaNumber",void 0),e.__decorate([t.Column("varchar",{name:"returnLabel",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"returnLabel",void 0),e.__decorate([t.Column("varchar",{name:"returnTracking",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"returnTracking",void 0),e.__decorate([t.Column("tinyint",{name:"refundProcessed",nullable:!0,width:1,transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerReturn.prototype,"refundProcessed",void 0),e.__decorate([t.Column("enum",{name:"itemReturned",enum:s,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"itemReturned",void 0),e.__decorate([t.Column("varchar",{name:"itemReturnedOther",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"itemReturnedOther",void 0),e.__decorate([t.Column("varchar",{name:"knackId",nullable:!0,length:24}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"knackId",void 0),e.__decorate([t.Column("int",{name:"knackNumber",nullable:!0}),e.__metadata("design:type",Number)],exports.CustomerReturn.prototype,"knackNumber",void 0),e.__decorate([t.Column("json",{name:"knackData",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerReturn.prototype,"knackData",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.CustomerReturn.prototype,"createdAt",void 0),e.__decorate([t.UpdateDateColumn({name:"updatedAt"}),e.__metadata("design:type",Date)],exports.CustomerReturn.prototype,"updatedAt",void 0),exports.CustomerReturn=e.__decorate([t.Index("ixCustomerReturnClientIdCreatedAt",["clientId","createdAt"],{}),t.Index("ixCustomerReturnStatusCreatedAt",["status","createdAt"],{}),t.Index("ixCustomerReturnCreatedAt",["createdAt"],{}),t.Index("ixCustomerReturnTicketNumber",["ticketNumber"],{}),t.Index("ixCustomerReturnCustomerEmail",["customerEmail"],{}),t.Index("ixuCustomerReturnKnackId",["knackId"],{unique:!0}),t.Entity("customerReturn",{schema:"nova"})],exports.CustomerReturn);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm"),r=require("../types/enums.js"),n=require("../utils/boolToNumberTransformer.js");const o=[r.CustomerReturnType.refund,r.CustomerReturnType.exchange,r.CustomerReturnType.replacement],a=[r.CustomerReturnStatus.pending,r.CustomerReturnStatus.processing,r.CustomerReturnStatus.problem,r.CustomerReturnStatus.complete,r.CustomerReturnStatus.cancelled],u=[r.CustomerReturnReason.wrong_item_shipped,r.CustomerReturnReason.arrived_damaged,r.CustomerReturnReason.missing_parts,r.CustomerReturnReason.never_received,r.CustomerReturnReason.defective_power_battery,r.CustomerReturnReason.defective_cell,r.CustomerReturnReason.defective_gps,r.CustomerReturnReason.lost_device,r.CustomerReturnReason.terminated_sim,r.CustomerReturnReason.international_network_config,r.CustomerReturnReason.customer_appeasement,r.CustomerReturnReason.returning_extra_item,r.CustomerReturnReason.other],m=[r.CustomerReturnShippingMethod.ground,r.CustomerReturnShippingMethod.expedited_2_day,r.CustomerReturnShippingMethod.overnight,r.CustomerReturnShippingMethod.saturday],s=[r.CustomerReturnItemReturned.same,r.CustomerReturnItemReturned.other];exports.CustomerReturn=class CustomerReturn{id;clientId;type;status;reason;otherReason;orderNumber;ticketNumber;customerName;customerEmail;shippingAddress;shippingMethod;trackerCareCovered;trackerCanBeReturned;agentName;notes;shipmentTracking;shippedDate;shippingCost;returnByDate;rmaNumber;returnLabel;returnTracking;refundProcessed;itemReturned;itemReturnedOther;knackId;knackNumber;knackData;createdAt;updatedAt},e.__decorate([t.PrimaryGeneratedColumn({type:"int",name:"id",unsigned:!0}),e.__metadata("design:type",Number)],exports.CustomerReturn.prototype,"id",void 0),e.__decorate([t.Column("int",{name:"clientId",nullable:!0}),e.__metadata("design:type",Number)],exports.CustomerReturn.prototype,"clientId",void 0),e.__decorate([t.Column("enum",{name:"type",enum:o}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"type",void 0),e.__decorate([t.Column("enum",{name:"status",enum:a,default:r.CustomerReturnStatus.pending}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"status",void 0),e.__decorate([t.Column("enum",{name:"reason",enum:u,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"reason",void 0),e.__decorate([t.Column("varchar",{name:"otherReason",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"otherReason",void 0),e.__decorate([t.Column("varchar",{name:"orderNumber",nullable:!0,length:64}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"orderNumber",void 0),e.__decorate([t.Column("varchar",{name:"ticketNumber",nullable:!0,length:64}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"ticketNumber",void 0),e.__decorate([t.Column("varchar",{name:"customerName",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"customerName",void 0),e.__decorate([t.Column("varchar",{name:"customerEmail",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"customerEmail",void 0),e.__decorate([t.Column("varchar",{name:"shippingAddress",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"shippingAddress",void 0),e.__decorate([t.Column("enum",{name:"shippingMethod",enum:m,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"shippingMethod",void 0),e.__decorate([t.Column("tinyint",{name:"trackerCareCovered",nullable:!0,width:1,transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerReturn.prototype,"trackerCareCovered",void 0),e.__decorate([t.Column("tinyint",{name:"trackerCanBeReturned",nullable:!0,width:1,transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerReturn.prototype,"trackerCanBeReturned",void 0),e.__decorate([t.Column("varchar",{name:"agentName",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"agentName",void 0),e.__decorate([t.Column("text",{name:"notes",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"notes",void 0),e.__decorate([t.Column("varchar",{name:"shipmentTracking",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"shipmentTracking",void 0),e.__decorate([t.Column("date",{name:"shippedDate",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"shippedDate",void 0),e.__decorate([t.Column("decimal",{name:"shippingCost",nullable:!0,precision:10,scale:2}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"shippingCost",void 0),e.__decorate([t.Column("date",{name:"returnByDate",nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"returnByDate",void 0),e.__decorate([t.Column("varchar",{name:"rmaNumber",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"rmaNumber",void 0),e.__decorate([t.Column("varchar",{name:"returnLabel",nullable:!0,length:500}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"returnLabel",void 0),e.__decorate([t.Column("varchar",{name:"returnTracking",nullable:!0,length:100}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"returnTracking",void 0),e.__decorate([t.Column("tinyint",{name:"refundProcessed",nullable:!0,width:1,transformer:new n.BoolToNumberTransformer}),e.__metadata("design:type",Boolean)],exports.CustomerReturn.prototype,"refundProcessed",void 0),e.__decorate([t.Column("enum",{name:"itemReturned",enum:s,nullable:!0}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"itemReturned",void 0),e.__decorate([t.Column("varchar",{name:"itemReturnedOther",nullable:!0,length:255}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"itemReturnedOther",void 0),e.__decorate([t.Column("varchar",{name:"knackId",nullable:!0,length:24}),e.__metadata("design:type",String)],exports.CustomerReturn.prototype,"knackId",void 0),e.__decorate([t.Column("int",{name:"knackNumber",nullable:!0}),e.__metadata("design:type",Number)],exports.CustomerReturn.prototype,"knackNumber",void 0),e.__decorate([t.Column("json",{name:"knackData",nullable:!0}),e.__metadata("design:type",Object)],exports.CustomerReturn.prototype,"knackData",void 0),e.__decorate([t.CreateDateColumn({name:"createdAt"}),e.__metadata("design:type",Date)],exports.CustomerReturn.prototype,"createdAt",void 0),e.__decorate([t.UpdateDateColumn({name:"updatedAt"}),e.__metadata("design:type",Date)],exports.CustomerReturn.prototype,"updatedAt",void 0),exports.CustomerReturn=e.__decorate([t.Index("ixCustomerReturnClientIdCreatedAt",["clientId","createdAt"],{}),t.Index("ixCustomerReturnStatusCreatedAt",["status","createdAt"],{}),t.Index("ixCustomerReturnCreatedAt",["createdAt"],{}),t.Index("ixCustomerReturnTicketNumber",["ticketNumber"],{}),t.Index("ixCustomerReturnCustomerEmail",["customerEmail"],{}),t.Index("ixuCustomerReturnKnackId",["knackId"],{unique:!0}),t.Entity("customerReturn",{schema:"nova"})],exports.CustomerReturn);
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/nova-orm",
3
- "version": "1.4.326",
3
+ "version": "1.4.328",
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: 2b86b1b175000218b5efbe221941045d
1
+ -- nova-orm-schema-checksum: dbea35855454627f69e1d2c1f4ffad05
2
2
  -- Nova ORM Schema Dump
3
- -- Generated at: 2026-10-15T11:50:35.764Z
3
+ -- Generated at: 2026-10-19T13:49:09.429Z
4
4
 
5
5
  SET FOREIGN_KEY_CHECKS = 0;
6
6
 
@@ -1584,6 +1584,7 @@ CREATE TABLE `customerAttribute` (
1584
1584
  `customerSegment` varchar(100) DEFAULT NULL,
1585
1585
  `industries` varchar(100) DEFAULT NULL,
1586
1586
  `primaryUseCase` varchar(255) DEFAULT NULL,
1587
+ `crmPersonas` varchar(255) DEFAULT NULL,
1587
1588
  `storeBlocked` tinyint(1) NOT NULL DEFAULT '0',
1588
1589
  `csmOwnerId` varchar(50) DEFAULT NULL,
1589
1590
  `csmOwnerEmail` varchar(255) DEFAULT NULL,
@@ -1629,6 +1630,9 @@ CREATE TABLE `customerReturn` (
1629
1630
  `trackerCanBeReturned` tinyint(1) DEFAULT NULL,
1630
1631
  `agentName` varchar(255) DEFAULT NULL,
1631
1632
  `notes` text,
1633
+ `shipmentTracking` varchar(100) DEFAULT NULL,
1634
+ `shippedDate` date DEFAULT NULL,
1635
+ `shippingCost` decimal(10,2) DEFAULT NULL,
1632
1636
  `returnByDate` date DEFAULT NULL,
1633
1637
  `rmaNumber` varchar(100) DEFAULT NULL,
1634
1638
  `returnLabel` varchar(500) DEFAULT NULL,