Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public getChanges(info: ChangeInformation): Promise {
const objectPaths = this._objectPaths.copy();
const methodParent = objectPaths.lastIndex;
const inputIndex = objectPaths.add(objConstructor("{1f849fb0-4fcb-4a54-9b01-9152b9e482d3}",
// actions
objectPath(),
...objectProperties(info),
));
const params = MethodParams.build().objectPath(inputIndex);
const methodIndex = objectPaths.add(method("GetChanges", params,
// actions
objectPath(),
opQuery([], this.getSelects()),
));
objectPaths.addChildRelationship(methodParent, methodIndex);
return this.send(objectPaths);
public getChanges(info: ChangeInformation): Promise {
const objectPaths = this._objectPaths.copy();
const methodParent = objectPaths.lastIndex;
const inputIndex = objectPaths.add(objConstructor("{1f849fb0-4fcb-4a54-9b01-9152b9e482d3}",
// actions
objectPath(),
...objectProperties(info),
));
const params = MethodParams.build().objectPath(inputIndex);
const methodIndex = objectPaths.add(method("GetChanges", params,
// actions
objectPath(),
opQuery([], this.getSelects()),
));
objectPaths.addChildRelationship(methodParent, methodIndex);
return this.send(objectPaths);
public getTerms(info: ILabelMatchInfo): ITerms {
const objectPaths = this._objectPaths.copy();
// this will be the parent of the GetTerms call, but we need to create the input param first
const parentIndex = objectPaths.lastIndex;
// this is our input object
const input = objConstructor("{61a1d689-2744-4ea3-a88b-c95bee9803aa}",
// actions
objectPath(),
...objectProperties(info),
);
// add the input object path
const inputIndex = objectPaths.add(input);
// this sets up the GetTerms call
const params = MethodParams.build().objectPath(inputIndex);
// call the method
const methodIndex = objectPaths.add(method("GetTerms", params,
// actions
objectPath()));
public getTerms(info: ILabelMatchInfo): ITerms {
const objectPaths = this._objectPaths.copy();
// this will be the parent of the GetTerms call, but we need to create the input param first
const parentIndex = objectPaths.lastIndex;
// this is our input object
const input = objConstructor("{61a1d689-2744-4ea3-a88b-c95bee9803aa}",
// actions
objectPath(),
...objectProperties(info),
);
// add the input object path
const inputIndex = objectPaths.add(input);
// this sets up the GetTerms call
const params = MethodParams.build().objectPath(inputIndex);
// call the method
const methodIndex = objectPaths.add(method("GetTerms", params,
// actions
objectPath()));