Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public getSiteCollectionGroup(createIfMissing = false): ITermGroup {
const objectPaths = this._objectPaths.copy();
const methodParent = objectPaths.lastIndex;
const siteIndex = objectPaths.siteIndex;
const params = MethodParams.build().objectPath(siteIndex).boolean(createIfMissing);
const methodIndex = objectPaths.add(method("GetSiteCollectionGroup", params,
// actions
objectPath(),
));
// the parent of this method call is this instance, not the current/site
objectPaths.addChildRelationship(methodParent, methodIndex);
return new TermGroup(this, objectPaths);
}
public updateUsedTermsOnSite(): Promise {
const objectPaths = this._objectPaths.copy();
const methodParent = objectPaths.lastIndex;
const siteIndex = objectPaths.siteIndex;
const params = MethodParams.build().objectPath(siteIndex);
const methodIndex = objectPaths.add(method("UpdateUsedTermsOnSite", params));
// the parent of this method call is this instance, not the current context/site
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 getSiteCollectionGroup(createIfMissing = false): ITermGroup {
const objectPaths = this._objectPaths.copy();
const methodParent = objectPaths.lastIndex;
const siteIndex = objectPaths.siteIndex;
const params = MethodParams.build().objectPath(siteIndex).boolean(createIfMissing);
const methodIndex = objectPaths.add(method("GetSiteCollectionGroup", params,
// actions
objectPath(),
));
// the parent of this method call is this instance, not the current/site
objectPaths.addChildRelationship(methodParent, methodIndex);
return new TermGroup(this, 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 updateUsedTermsOnSite(): Promise {
const objectPaths = this._objectPaths.copy();
const methodParent = objectPaths.lastIndex;
const siteIndex = objectPaths.siteIndex;
const params = MethodParams.build().objectPath(siteIndex);
const methodIndex = objectPaths.add(method("UpdateUsedTermsOnSite", params));
// the parent of this method call is this instance, not the current context/site
objectPaths.addChildRelationship(methodParent, methodIndex);
return this.send(objectPaths);
}
// 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()));
// setup the parent relationship even though they are seperated in the collection
objectPaths.addChildRelationship(parentIndex, methodIndex);
return new Terms(this, objectPaths);
}
// 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()));
// setup the parent relationship even though they are seperated in the collection
objectPaths.addChildRelationship(parentIndex, methodIndex);
return new Terms(this, objectPaths);
}