@studyportals/sp-lord-business-interface
Advanced tools
Comparing version 0.0.1-3 to 0.0.1-4
@@ -6,5 +6,5 @@ import { IConstructableState } from "./src/reconstitution/IConstructableState"; | ||
import { FulfillmentProcessDescriptionResult } from "./src/FulfillmentProcessDescriptionResult"; | ||
import { StateFlyweight } from "./src/reconstitution/StateFlyweight"; | ||
import { StateFlyweightFactory } from "./src/reconstitution/StateFlyweightFactory"; | ||
import { ITransitionDescription } from "./src/reconstitution/ITransitionDescription"; | ||
import { FulfillmentProcessFactory } from "./src/reconstitution/FulfillmentProcessFactory"; | ||
export { IConstructableState, State, StateFlyweight, ITransitionDescription, Transition, FulfillmentProcessFactory, FulfillmentProcessDescriptionResult, LordBusinessClient, }; | ||
export { IConstructableState, State, StateFlyweightFactory, ITransitionDescription, Transition, FulfillmentProcessFactory, FulfillmentProcessDescriptionResult, LordBusinessClient, }; |
@@ -11,6 +11,6 @@ "use strict"; | ||
exports.FulfillmentProcessDescriptionResult = FulfillmentProcessDescriptionResult_1.FulfillmentProcessDescriptionResult; | ||
const StateFlyweight_1 = require("./src/reconstitution/StateFlyweight"); | ||
exports.StateFlyweight = StateFlyweight_1.StateFlyweight; | ||
const StateFlyweightFactory_1 = require("./src/reconstitution/StateFlyweightFactory"); | ||
exports.StateFlyweightFactory = StateFlyweightFactory_1.StateFlyweightFactory; | ||
const FulfillmentProcessFactory_1 = require("./src/reconstitution/FulfillmentProcessFactory"); | ||
exports.FulfillmentProcessFactory = FulfillmentProcessFactory_1.FulfillmentProcessFactory; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@studyportals/sp-lord-business-interface", | ||
"version": "0.0.1-3", | ||
"version": "0.0.1-4", | ||
"description": "Typescript library containing resources that facilitate integration with Lord Business.", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
@@ -1,6 +0,6 @@ | ||
import { IConstructableState, ITransitionDescription, StateFlyweight } from "../.."; | ||
import { IConstructableState, ITransitionDescription, StateFlyweightFactory } from "../.."; | ||
export declare class FulfillmentProcessFactory<TState extends IConstructableState> { | ||
private stateFlyweight; | ||
constructor(stateFlyweight: StateFlyweight<TState>); | ||
private stateFlyweightFactory; | ||
constructor(stateFlyweightFactory: StateFlyweightFactory<TState>); | ||
create(transitions: ReadonlyArray<ITransitionDescription>): TState[]; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class FulfillmentProcessFactory { | ||
constructor(stateFlyweight) { | ||
this.stateFlyweight = stateFlyweight; | ||
constructor(stateFlyweightFactory) { | ||
this.stateFlyweightFactory = stateFlyweightFactory; | ||
} | ||
@@ -10,4 +10,4 @@ create(transitions) { | ||
for (const transition of transitions) { | ||
const sourceState = this.stateFlyweight.obtain(transition.source); | ||
const targetState = this.stateFlyweight.obtain(transition.target); | ||
const sourceState = this.stateFlyweightFactory.obtain(transition.source); | ||
const targetState = this.stateFlyweightFactory.obtain(transition.target); | ||
sourceState.registerTransition(targetState); | ||
@@ -14,0 +14,0 @@ stateSet.add(sourceState); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
19456