@quorum/schematics
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "@quorum/schematics", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A schematics Library for Quorum", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,3 +0,6 @@ | ||
export interface <%= classify(nameSingular) %>QueryParameters { | ||
export class <%= classify(nameSingular) %>QueryParameters { | ||
constructor(obj?: any){ | ||
if (obj) Object.assign(this,obj); | ||
} | ||
} |
@@ -8,3 +8,3 @@ import { expect } from 'chai'; | ||
import { <%= classify(nameSingular) %>QueryParameters } from './<%= dasherize(nameSingular) %>.query-model'; | ||
import { I<%= classify(nameSingular) %> } from './<%= dasherize(nameSingular) %>.model'; | ||
import { <%= classify(nameSingular) %> } from './<%= dasherize(nameSingular) %>.model'; | ||
import { expect } from 'chai'; | ||
@@ -11,0 +11,0 @@ |
@@ -1,3 +0,6 @@ | ||
export interface I<%= classify(nameSingular) %> { | ||
export class I<%= classify(nameSingular) %> { | ||
constructor(obj?: any){ | ||
if (obj) Object.assign(this,obj); | ||
} | ||
} |
@@ -9,8 +9,8 @@ import { StoredProcedure } from "common/message-broker"; | ||
import { <%= classify(nameSingular) %>QueryParameters } from 'api/associates' | ||
import { I<%= classify(nameSingular) %> } from './<%=dasherize(nameSingular)%>.model'; | ||
import { <%= classify(nameSingular) %> } from './<%=dasherize(nameSingular)%>.model'; | ||
import { v1 as uuid } from 'uuid'; | ||
export class Addresses { | ||
export class <%= classify(nameSingular) %> { | ||
static create<%= classify(nameSingular) %>(<%= nameSingular %> : I<%= classify(nameSingular) %>, routingDetails: any): BrokerMessage { | ||
static create<%= classify(nameSingular) %>(<%= nameSingular %> : <%= classify(nameSingular) %>, routingDetails: any): BrokerMessage { | ||
let brokerMessage: BrokerMessage; | ||
@@ -54,3 +54,3 @@ if (routingDetails.version === 1) { | ||
static update<%= classify(nameSingular) %>(<%= nameSingular %> : I<%= classify(nameSingular) %>, routingDetails: any): BrokerMessage { | ||
static update<%= classify(nameSingular) %>(<%= nameSingular %> : <%= classify(nameSingular) %>, routingDetails: any): BrokerMessage { | ||
let brokerMessage: BrokerMessage; | ||
@@ -57,0 +57,0 @@ if (routingDetails.version === 1) { |
@@ -1,3 +0,6 @@ | ||
export interface <%= classify(nameSingular) %>QueryParameters { | ||
export class <%= classify(nameSingular) %>QueryParameters { | ||
constructor(obj?: any){ | ||
if (obj) Object.assign(this,obj); | ||
} | ||
} |
@@ -10,3 +10,3 @@ import { StoredProcedure } from "common/message-broker"; | ||
import { <%= classify(nameSingular) %>QueryParameters } from './<%= dasherize(name) %>.query-model'; | ||
import { I<%= classify(nameSingular) %> } from './<%= dasherize(nameSingular) %>.model'; | ||
import { <%= classify(nameSingular) %> } from './<%= dasherize(nameSingular) %>.model'; | ||
import { expect } from 'chai'; | ||
@@ -25,4 +25,4 @@ import { SqlManager } from 'dataterminal/SqlManager'; | ||
let response: BrokerMessage; | ||
let <%= nameSingular %> : I<%= classify(nameSingular) %> ; | ||
let create<%= classify(nameSingular) %> : I<%= classify(nameSingular) %> ; | ||
let <%= nameSingular %> : <%= classify(nameSingular) %> ; | ||
let create<%= classify(nameSingular) %> : <%= classify(nameSingular) %> ; | ||
@@ -39,5 +39,3 @@ before((done) => { | ||
describe('<%= classify(routeParent) %>.create<%= classify(nameSingular) %>', () => { | ||
create<%= classify(nameSingular) %> = { | ||
//populate | ||
}; | ||
create<%= classify(nameSingular) %> = new <%= classify(nameSingular) %>(); | ||
@@ -44,0 +42,0 @@ before((done) => { |
@@ -10,3 +10,3 @@ import { StoredProcedure } from "common/message-broker"; | ||
import { <%= classify(nameSingular) %>QueryParameters } from './<%= dasherize(name) %>.query-model'; | ||
import { I<%= classify(nameSingular) %> } from './<%= dasherize(nameSingular) %>.model'; | ||
import { <%= classify(nameSingular) %> } from './<%= dasherize(nameSingular) %>.model'; | ||
import { expect } from 'chai'; | ||
@@ -16,3 +16,3 @@ | ||
describe('Version 1', () => { | ||
let <%= nameSingular %>: I<%= classify(nameSingular) %> = { | ||
let <%= nameSingular %>: <%= classify(nameSingular) %> = { | ||
//populate | ||
@@ -76,3 +76,3 @@ }; | ||
describe('Version 1', () => { | ||
let <%= nameSingular %>: I<%= classify(nameSingular) %> = { | ||
let <%= nameSingular %>: <%= classify(nameSingular) %> = { | ||
//populate | ||
@@ -79,0 +79,0 @@ }; |
@@ -1,3 +0,6 @@ | ||
export interface I<%= classify(nameSingular) %> { | ||
export class <%= classify(nameSingular) %> { | ||
constructor(obj?: any){ | ||
if (obj) Object.assign(this,obj); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24531
426