SharedOpsUtil
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
FXHASH_OP_NAME: string |
|
public |
INFIX_DEPRECATED: string |
|
public |
INFIX_DEVOPS: string |
|
public |
INFIX_STANDALONEOPS: string |
|
public |
INVISIBLE_NAMESPACES: undefined[] |
|
public |
OPS_CODE_PREFIX: string |
|
public |
OP_NAMESPACE_SUMMARIES: undefined[] |
|
public |
OP_NAME_MIN_LENGTH: number |
|
public |
OP_PORT_TYPE_ARRAY: number |
|
public |
OP_PORT_TYPE_DYNAMIC: number |
|
public |
OP_PORT_TYPE_NUMBER: number |
|
public |
OP_PORT_TYPE_OBJECT: number |
|
public |
OP_PORT_TYPE_STRING: number |
|
public |
OP_PORT_TYPE_TRIGGER: number |
|
public |
PATCHOPS_ID_REPLACEMENTS: {"-": string} |
|
public |
PREFIX_EXTENSIONOPS: string |
|
public |
PREFIX_OPS: string |
|
public |
PREFIX_PATCHOPS: string |
|
public |
PREFIX_TEAMOPS: string |
|
public |
PREFIX_USEROPS: string |
|
public |
SUBPATCH_ATTACHMENT_NAME: string |
|
public |
SUBPATCH_ATTACHMENT_PORTS: string |
|
public |
SUFFIX_VERSION: string |
|
public |
VISIBILITY_HIDDEN: string |
|
public |
VISIBILITY_PRIVATE: string |
|
public |
VISIBILITY_PUBLIC: string |
|
public |
VISIBILITY_UNLISTED: string |
|
public |
cli: * |
|
public get |
utilName: * |
Private Members | ||
private |
_CLIEngine: * |
Method Summary
Public Methods | ||
public |
addAttachment(opName: *, attName: *, content: *): * |
|
public |
addOpChangelog(user: *, opName: *, newEntry: *, referenceDate: undefined, update: boolean) |
|
public |
addOpDependency(opName: *, newDependency: *): boolean |
|
public |
addOpDependencyFile(opName: *, fileName: *, buffer: *): boolean |
|
public |
addOpDocsForCollections(opNames: *, opDocs: *[], forceRebuild: boolean): * |
|
public |
addPermissionsToOps(ops: *, user: *, teams: *[], project: undefined): * |
|
public |
addVersionInfoToOps(opDocs: *, forceUpdate: boolean): * |
|
public |
buildCode(basePath: *, codePrefix: *, filterOldVersions: boolean, filterDeprecated: boolean, opDocs: undefined): * |
|
public |
buildFullCode(ops: *, codePrefix: *, filterOldVersions: boolean, filterDeprecated: boolean, opDocs: undefined, prepareForExport: boolean, minifyGlsl: boolean): * |
|
public |
buildOpDocsForCollection(collectionName: *, singleOpName: boolean): * |
|
public |
buildPreviewCode(opNames: *): * |
|
public |
cloneOp(oldName: *, newName: *, user: *, targetDir: undefined): {"name": *, "id": *, "opDoc": *, "code": *, "attachments": *} |
|
public |
createOp(opName: *, author: *, code: undefined, opDocDefaults: undefined, attachments: undefined, targetDir: undefined): * |
|
public |
deleteAttachment(opName: *, attName: *): boolean |
|
public |
deleteOp(opName: *): boolean |
|
public |
|
|
public |
getAllOps(sessionUser: *, opDocs: *): * |
|
public |
getAllPatchOpNames(): * |
|
public |
getAllTeamOpNames(): * |
|
public |
getAllUserOpNames(): * |
|
public |
getAttachment(opName: *, attachmentName: *): * |
|
public |
getAttachmentFiles(opName: *): * |
|
public |
getAttachments(opName: *): * |
|
public |
getCollectionDir(name: *, relative: boolean): * |
|
public |
getCollectionDocs(name: *): * |
|
public |
getCollectionJsonPath(name: *, create: boolean): * |
|
public |
getCollectionName(opName: *): * |
|
public |
getCollectionNamespace(opName: *): * |
|
public |
getCollectionOpDocFile(collectionName: *): * |
|
public |
getCollectionOpNames(collectionName: *, filterInvisibleOps: boolean): * |
|
public |
getCollectionVisibility(name: *, defaultVisibility: *): * |
|
public |
getExampleScreenshotPath(opName: *): * |
|
public |
getExtensionDir(name: *, relative: boolean): * |
|
public |
getExtensionJsonPath(name: *, create: boolean): * |
|
public |
getExtensionNamespaceByOpName(opName: *): * |
|
public |
getExtensionShortName(extensionName: *): * |
|
public |
getFullTeamNamespaceName(shortName: *): * |
|
public |
getHighestVersionNumber(opName: *, opDocs: *): * |
|
public |
getHighestVersionOpName(opName: *, opDocs: boolean): * |
|
public |
getNamespace(opname: *, topLevel: boolean): * |
|
public |
getNamespaceHierarchyProblem(outerName: *, innerName: *): boolean |
|
public |
getNextVersionOpName(opName: *, opDocs: *): * |
|
public |
getOpAbsoluteFileName(opName: *): * |
|
public |
getOpAbsoluteJsonFilename(opName: *): * |
|
public |
getOpAbsolutePath(opName: *): * |
|
public |
getOpAssetPorts(op: *, includeLibraryAssets: boolean): * |
|
public |
getOpById(opDocs: *, id: *): * |
|
public |
getOpCode(opName: *): * |
|
public |
getOpCodeWarnings(opName: *, jsFile: undefined): * |
|
public |
getOpCoreLibs(opName: *): *[] |
|
public |
getOpDefaults(opName: *, author: undefined): * |
|
public |
getOpEnvironmentDocs(opIdentifier: *, cb: *) |
|
public |
getOpEnvironmentUrls(opIdentifier: *): * |
|
public |
getOpFileName(opName: *): * |
|
public |
getOpFullCode(fn: *, opName: *, opId: *, prepareForExport: boolean, minifyGlsl: boolean): string |
|
public |
getOpIdByObjName(objName: *): * |
|
public |
getOpInfo(opName: *): * |
|
public |
getOpJsonFilename(opName: *): * |
|
public |
getOpJsonPath(opName: *, createPath: boolean): * |
|
public |
getOpLibs(opName: *): *[] |
|
public |
getOpNameByAbsoluteFileName(fileName: *): string |
|
public |
getOpNameById(id: *): string |
|
public |
getOpNameWithoutVersion(opname: *): * |
|
public |
getOpRenameConsequences(newName: *, oldName: *): * |
|
public |
getOpRenameProblems(newName: *, oldName: *, userObj: *, teams: *[], newOpProject: undefined, oldOpProject: undefined, opUsages: *[], checkUsages: boolean, targetDir: undefined): * |
|
public |
getOpSVG(opName: *, backgroundOptions: *): * |
|
public |
getOpShortName(opName: *): * |
|
public |
getOpSourceDir(opName: *, relative: boolean): * |
|
public |
getOpTargetDir(opName: *, relative: boolean): * |
|
public |
getOpVersionNumbers(opname: *, opDocs: *): * |
|
public |
getPatchIdFromOpName(opName: *): * |
|
public |
getPatchOpDir(name: *, relative: boolean): * |
|
public |
getPatchOpNamespace(opName: *): * |
|
public |
getPatchOpsNamespaceForProject(proj: *): * |
|
public |
getPortTypeString(type: *): string |
|
public |
getScreenshot(opName: *): * |
|
public |
getSubPatchOpAttachment(opName: *): * |
|
public |
getTeamNamespaceByOpName(opName: *): * |
|
public |
getTeamNamespaceDir(name: *, relative: boolean): * |
|
public |
getTeamNamespaceJsonPath(name: *, create: boolean): * |
|
public |
getTeamNamespaceShortName(namespaceName: *): * |
|
public |
getTeamOpNames(team: *): * |
|
public |
getUserNamespace(username: *): * |
|
public |
getVersionFromOpName(opname: *): number |
|
public |
isCallbackOp(opname: *): * |
|
public |
isCollection(name: *): * |
|
public |
isCoreNamespace(namespace: *): * |
|
public |
isCoreOp(opName: *): * |
|
public |
isDeprecated(opname: *): * |
|
public |
isDevOp(opname: *): * |
|
public |
isExtension(name: *): * |
|
public |
isExtensionNamespace(name: *): * |
|
public |
isExtensionOp(opname: *): * |
|
public |
isExtensionOpOfTeam(opname: *, team: *): * |
|
public |
isFunctionOp(opname: *): * |
|
public |
isInvisible(opName: *): * |
|
public |
isOpId(id: *): * |
|
public |
isOpNameValid(name: *): * |
|
public |
isOpOfTeam(opName: *, team: *): * |
|
public |
isOpOldVersion(opname: *, opDocs: undefined): boolean |
|
public |
isPatchOp(opname: *): boolean |
|
public |
isPatchOpNamespace(name: *): * |
|
public |
isPatchOpOfProject(opname: *, project: *): * |
|
public |
isPrivateOp(opname: *): * |
|
public |
isStandaloneOp(opname: *): * |
|
public |
isSubPatch(opname: *): * |
|
public |
isSubPatchOp(op: *): * |
|
public |
isTeamNamespace(name: *): * |
|
public |
isTeamOp(opname: *): * |
|
public |
isTeamOpOfTeam(opName: *, team: *): * |
|
public |
isUserOp(opName: *): * |
|
public |
isUserOpNamespace(name: *): * |
|
public |
isVariableSetter(opname: *): * |
|
public |
namespaceExists(namespaceName: *, opDocs: undefined): boolean |
|
public |
namespaceExistsInCore(name: *, opDocs: *): * |
|
public |
opExists(opName: *, updateCache: boolean): * |
|
public |
opGetNamespaceColor(ns: *): string |
|
public |
opGetPortColor(type: *): string |
|
public |
opNameTaken(opName: *, caseSensitive: boolean): boolean |
|
public |
ownsUserOp(opname: *, user: *): boolean |
|
public |
removeOpChangelog(user: *, opName: *, date: *) |
|
public |
removeOpDependency(opName: *, dep: *): boolean |
|
public |
renameToCoreOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * |
|
public |
renameToExtensionOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * |
|
public |
renameToPatchOp(oldName: *, newName: *, currentUser: *, removeOld: *, newId: *, cb: undefined): * |
|
public |
renameToTeamOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * |
|
public |
renameToUserOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * |
|
public |
saveLayout(opName: *, layout: *): boolean |
|
public |
setOpDefaults(opname: *, author: undefined): * |
|
public |
updateAttachment(opName: *, attName: *, content: *, force: boolean, res: boolean): * |
|
public |
updateAttachments(opName: *, attachments: *): * |
|
public |
updateCoreLibs(opName: *, libNames: *): * |
|
public |
updateOp(user: *, opName: *, updates: *, options: {}): * |
|
public |
updateOpCode(opName: *, author: *, code: *): * |
|
public |
userHasWriteRightsOp(user: *, opName: *, teams: *[], project: undefined, ignoreAdmin: boolean): boolean |
|
public |
validateAndFormatOpCode(code: *): * |
Private Methods | ||
private |
_getCLIConfig(): {"fix": boolean, "baseConfig": *, "envs": *, "useEslintrc": *, "globals": *, "env": *, "parserOptions": *, "rules": *} |
|
private |
_getErrorSvg(opName: *, err: *, backgroundOptions: *): * |
|
private |
_minifyGlsl(glsl: *): * |
|
private |
_renameOp(oldName: *, newName: *, currentUser: *, formatCode: *, removeOld: *, newId: *, oldOpDir: *, newOpDir: *, cb: undefined): boolean |
|
private |
_writeOpChangelog(opName: *, changes: *, update: boolean) |
Public Constructors
public constructor() source
Public Members
public FXHASH_OP_NAME: string source
public INFIX_DEPRECATED: string source
public INFIX_DEVOPS: string source
public INFIX_STANDALONEOPS: string source
public INVISIBLE_NAMESPACES: undefined[] source
public OPS_CODE_PREFIX: string source
public OP_NAMESPACE_SUMMARIES: undefined[] source
public OP_NAME_MIN_LENGTH: number source
public OP_PORT_TYPE_ARRAY: number source
public OP_PORT_TYPE_DYNAMIC: number source
public OP_PORT_TYPE_NUMBER: number source
public OP_PORT_TYPE_OBJECT: number source
public OP_PORT_TYPE_STRING: number source
public OP_PORT_TYPE_TRIGGER: number source
public PATCHOPS_ID_REPLACEMENTS: {"-": string} source
public PREFIX_EXTENSIONOPS: string source
public PREFIX_OPS: string source
public PREFIX_PATCHOPS: string source
public PREFIX_TEAMOPS: string source
public PREFIX_USEROPS: string source
public SUBPATCH_ATTACHMENT_NAME: string source
public SUBPATCH_ATTACHMENT_PORTS: string source
public SUFFIX_VERSION: string source
public VISIBILITY_HIDDEN: string source
public VISIBILITY_PRIVATE: string source
public VISIBILITY_PUBLIC: string source
public VISIBILITY_UNLISTED: string source
public cli: * source
public get utilName: * source
Private Members
private _CLIEngine: * source
Public Methods
public addAttachment(opName: *, attName: *, content: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
attName | * | ||
content | * |
Return:
* |
public addOpChangelog(user: *, opName: *, newEntry: *, referenceDate: undefined, update: boolean) source
Params:
Name | Type | Attribute | Description |
user | * | ||
opName | * | ||
newEntry | * | ||
referenceDate | undefined |
|
|
update | boolean |
|
public addOpDependency(opName: *, newDependency: *): boolean source
Params:
Name | Type | Attribute | Description |
opName | * | ||
newDependency | * |
Return:
boolean |
public addOpDependencyFile(opName: *, fileName: *, buffer: *): boolean source
Params:
Name | Type | Attribute | Description |
opName | * | ||
fileName | * | ||
buffer | * |
Return:
boolean |
public addOpDocsForCollections(opNames: *, opDocs: *[], forceRebuild: boolean): * source
Params:
Name | Type | Attribute | Description |
opNames | * | ||
opDocs | *[] |
|
|
forceRebuild | boolean |
|
Return:
* |
public addPermissionsToOps(ops: *, user: *, teams: *[], project: undefined): * source
Params:
Name | Type | Attribute | Description |
ops | * | ||
user | * | ||
teams | *[] |
|
|
project | undefined |
|
Return:
* |
public addVersionInfoToOps(opDocs: *, forceUpdate: boolean): * source
Params:
Name | Type | Attribute | Description |
opDocs | * | ||
forceUpdate | boolean |
|
Return:
* |
public buildCode(basePath: *, codePrefix: *, filterOldVersions: boolean, filterDeprecated: boolean, opDocs: undefined): * source
Params:
Name | Type | Attribute | Description |
basePath | * | ||
codePrefix | * | ||
filterOldVersions | boolean |
|
|
filterDeprecated | boolean |
|
|
opDocs | undefined |
|
Return:
* |
public buildFullCode(ops: *, codePrefix: *, filterOldVersions: boolean, filterDeprecated: boolean, opDocs: undefined, prepareForExport: boolean, minifyGlsl: boolean): * source
Params:
Name | Type | Attribute | Description |
ops | * | ||
codePrefix | * | ||
filterOldVersions | boolean |
|
|
filterDeprecated | boolean |
|
|
opDocs | undefined |
|
|
prepareForExport | boolean |
|
|
minifyGlsl | boolean |
|
Return:
* |
public buildOpDocsForCollection(collectionName: *, singleOpName: boolean): * source
Params:
Name | Type | Attribute | Description |
collectionName | * | ||
singleOpName | boolean |
|
Return:
* |
public buildPreviewCode(opNames: *): * source
Params:
Name | Type | Attribute | Description |
opNames | * |
Return:
* |
public cloneOp(oldName: *, newName: *, user: *, targetDir: undefined): {"name": *, "id": *, "opDoc": *, "code": *, "attachments": *} source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
user | * | ||
targetDir | undefined |
|
Return:
{"name": *, "id": *, "opDoc": *, "code": *, "attachments": *} |
public createOp(opName: *, author: *, code: undefined, opDocDefaults: undefined, attachments: undefined, targetDir: undefined): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
author | * | ||
code | undefined |
|
|
opDocDefaults | undefined |
|
|
attachments | undefined |
|
|
targetDir | undefined |
|
Return:
* |
public deleteAttachment(opName: *, attName: *): boolean source
Params:
Name | Type | Attribute | Description |
opName | * | ||
attName | * |
Return:
boolean |
public deleteOp(opName: *): boolean source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
boolean |
public getAllOps(sessionUser: *, opDocs: *): * source
Params:
Name | Type | Attribute | Description |
sessionUser | * | ||
opDocs | * |
Return:
* |
public getAttachment(opName: *, attachmentName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
attachmentName | * |
Return:
* |
public getAttachmentFiles(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getCollectionDir(name: *, relative: boolean): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
relative | boolean |
|
Return:
* |
public getCollectionJsonPath(name: *, create: boolean): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
create | boolean |
|
Return:
* |
public getCollectionName(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getCollectionNamespace(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getCollectionOpDocFile(collectionName: *): * source
Params:
Name | Type | Attribute | Description |
collectionName | * |
Return:
* |
public getCollectionOpNames(collectionName: *, filterInvisibleOps: boolean): * source
Params:
Name | Type | Attribute | Description |
collectionName | * | ||
filterInvisibleOps | boolean |
|
Return:
* |
public getCollectionVisibility(name: *, defaultVisibility: *): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
defaultVisibility | * |
|
Return:
* |
public getExampleScreenshotPath(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getExtensionDir(name: *, relative: boolean): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
relative | boolean |
|
Return:
* |
public getExtensionJsonPath(name: *, create: boolean): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
create | boolean |
|
Return:
* |
public getExtensionNamespaceByOpName(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getExtensionShortName(extensionName: *): * source
Params:
Name | Type | Attribute | Description |
extensionName | * |
Return:
* |
public getFullTeamNamespaceName(shortName: *): * source
Params:
Name | Type | Attribute | Description |
shortName | * |
Return:
* |
public getHighestVersionNumber(opName: *, opDocs: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
opDocs | * |
Return:
* |
public getHighestVersionOpName(opName: *, opDocs: boolean): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
opDocs | boolean |
|
Return:
* |
public getNamespace(opname: *, topLevel: boolean): * source
Params:
Name | Type | Attribute | Description |
opname | * | ||
topLevel | boolean |
|
Return:
* |
public getNamespaceHierarchyProblem(outerName: *, innerName: *): boolean source
Params:
Name | Type | Attribute | Description |
outerName | * | ||
innerName | * |
Return:
boolean |
public getNextVersionOpName(opName: *, opDocs: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
opDocs | * |
Return:
* |
public getOpAbsoluteFileName(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getOpAbsoluteJsonFilename(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getOpAbsolutePath(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getOpAssetPorts(op: *, includeLibraryAssets: boolean): * source
Params:
Name | Type | Attribute | Description |
op | * | ||
includeLibraryAssets | boolean |
|
Return:
* |
public getOpById(opDocs: *, id: *): * source
Params:
Name | Type | Attribute | Description |
opDocs | * | ||
id | * |
Return:
* |
public getOpCodeWarnings(opName: *, jsFile: undefined): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
jsFile | undefined |
|
Return:
* |
public getOpCoreLibs(opName: *): *[] source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
*[] |
public getOpDefaults(opName: *, author: undefined): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
author | undefined |
|
Return:
* |
public getOpEnvironmentDocs(opIdentifier: *, cb: *) source
Params:
Name | Type | Attribute | Description |
opIdentifier | * | ||
cb | * |
public getOpEnvironmentUrls(opIdentifier: *): * source
Params:
Name | Type | Attribute | Description |
opIdentifier | * |
Return:
* |
public getOpFullCode(fn: *, opName: *, opId: *, prepareForExport: boolean, minifyGlsl: boolean): string source
Params:
Name | Type | Attribute | Description |
fn | * | ||
opName | * | ||
opId | * | ||
prepareForExport | boolean |
|
|
minifyGlsl | boolean |
|
Return:
string |
public getOpIdByObjName(objName: *): * source
Params:
Name | Type | Attribute | Description |
objName | * |
Return:
* |
public getOpJsonFilename(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getOpJsonPath(opName: *, createPath: boolean): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
createPath | boolean |
|
Return:
* |
public getOpNameByAbsoluteFileName(fileName: *): string source
Params:
Name | Type | Attribute | Description |
fileName | * |
Return:
string |
public getOpNameWithoutVersion(opname: *): * source
Params:
Name | Type | Attribute | Description |
opname | * |
Return:
* |
public getOpRenameConsequences(newName: *, oldName: *): * source
Params:
Name | Type | Attribute | Description |
newName | * | ||
oldName | * |
Return:
* |
public getOpRenameProblems(newName: *, oldName: *, userObj: *, teams: *[], newOpProject: undefined, oldOpProject: undefined, opUsages: *[], checkUsages: boolean, targetDir: undefined): * source
Params:
Name | Type | Attribute | Description |
newName | * | ||
oldName | * | ||
userObj | * | ||
teams | *[] |
|
|
newOpProject | undefined |
|
|
oldOpProject | undefined |
|
|
opUsages | *[] |
|
|
checkUsages | boolean |
|
|
targetDir | undefined |
|
Return:
* |
public getOpSVG(opName: *, backgroundOptions: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
backgroundOptions | * |
Return:
* |
public getOpSourceDir(opName: *, relative: boolean): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
relative | boolean |
|
Return:
* |
public getOpTargetDir(opName: *, relative: boolean): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
relative | boolean |
|
Return:
* |
public getOpVersionNumbers(opname: *, opDocs: *): * source
Params:
Name | Type | Attribute | Description |
opname | * | ||
opDocs | * |
Return:
* |
public getPatchIdFromOpName(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getPatchOpDir(name: *, relative: boolean): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
relative | boolean |
|
Return:
* |
public getPatchOpNamespace(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getPatchOpsNamespaceForProject(proj: *): * source
Params:
Name | Type | Attribute | Description |
proj | * |
Return:
* |
public getPortTypeString(type: *): string source
Params:
Name | Type | Attribute | Description |
type | * |
Return:
string |
public getSubPatchOpAttachment(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getTeamNamespaceByOpName(opName: *): * source
Params:
Name | Type | Attribute | Description |
opName | * |
Return:
* |
public getTeamNamespaceDir(name: *, relative: boolean): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
relative | boolean |
|
Return:
* |
public getTeamNamespaceJsonPath(name: *, create: boolean): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
create | boolean |
|
Return:
* |
public getTeamNamespaceShortName(namespaceName: *): * source
Params:
Name | Type | Attribute | Description |
namespaceName | * |
Return:
* |
public getUserNamespace(username: *): * source
Params:
Name | Type | Attribute | Description |
username | * |
Return:
* |
public getVersionFromOpName(opname: *): number source
Params:
Name | Type | Attribute | Description |
opname | * |
Return:
number |
public isCoreNamespace(namespace: *): * source
Params:
Name | Type | Attribute | Description |
namespace | * |
Return:
* |
public isExtensionNamespace(name: *): * source
Params:
Name | Type | Attribute | Description |
name | * |
Return:
* |
public isExtensionOpOfTeam(opname: *, team: *): * source
Params:
Name | Type | Attribute | Description |
opname | * | ||
team | * |
Return:
* |
public isOpOfTeam(opName: *, team: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
team | * |
Return:
* |
public isOpOldVersion(opname: *, opDocs: undefined): boolean source
Params:
Name | Type | Attribute | Description |
opname | * | ||
opDocs | undefined |
|
Return:
boolean |
public isPatchOp(opname: *): boolean source
Params:
Name | Type | Attribute | Description |
opname | * |
Return:
boolean |
public isPatchOpOfProject(opname: *, project: *): * source
Params:
Name | Type | Attribute | Description |
opname | * | ||
project | * |
Return:
* |
public isTeamOpOfTeam(opName: *, team: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
team | * |
Return:
* |
public isVariableSetter(opname: *): * source
Params:
Name | Type | Attribute | Description |
opname | * |
Return:
* |
public namespaceExists(namespaceName: *, opDocs: undefined): boolean source
Params:
Name | Type | Attribute | Description |
namespaceName | * | ||
opDocs | undefined |
|
Return:
boolean |
public namespaceExistsInCore(name: *, opDocs: *): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
opDocs | * |
Return:
* |
public opExists(opName: *, updateCache: boolean): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
updateCache | boolean |
|
Return:
* |
public opGetNamespaceColor(ns: *): string source
Params:
Name | Type | Attribute | Description |
ns | * |
Return:
string |
public opGetPortColor(type: *): string source
Params:
Name | Type | Attribute | Description |
type | * |
Return:
string |
public opNameTaken(opName: *, caseSensitive: boolean): boolean source
Params:
Name | Type | Attribute | Description |
opName | * | ||
caseSensitive | boolean |
|
Return:
boolean |
public ownsUserOp(opname: *, user: *): boolean source
Params:
Name | Type | Attribute | Description |
opname | * | ||
user | * |
Return:
boolean |
public removeOpChangelog(user: *, opName: *, date: *) source
Params:
Name | Type | Attribute | Description |
user | * | ||
opName | * | ||
date | * |
public removeOpDependency(opName: *, dep: *): boolean source
Params:
Name | Type | Attribute | Description |
opName | * | ||
dep | * |
Return:
boolean |
public renameToCoreOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
cb | undefined |
|
Return:
* |
public renameToExtensionOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
cb | undefined |
|
Return:
* |
public renameToPatchOp(oldName: *, newName: *, currentUser: *, removeOld: *, newId: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
newId | * | ||
cb | undefined |
|
Return:
* |
public renameToTeamOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
cb | undefined |
|
Return:
* |
public renameToUserOp(oldName: *, newName: *, currentUser: *, removeOld: *, cb: undefined): * source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
removeOld | * | ||
cb | undefined |
|
Return:
* |
public saveLayout(opName: *, layout: *): boolean source
Params:
Name | Type | Attribute | Description |
opName | * | ||
layout | * |
Return:
boolean |
public setOpDefaults(opname: *, author: undefined): * source
Params:
Name | Type | Attribute | Description |
opname | * | ||
author | undefined |
|
Return:
* |
public updateAttachment(opName: *, attName: *, content: *, force: boolean, res: boolean): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
attName | * | ||
content | * | ||
force | boolean |
|
|
res | boolean |
|
Return:
* |
public updateAttachments(opName: *, attachments: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
attachments | * |
Return:
* |
public updateCoreLibs(opName: *, libNames: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
libNames | * |
Return:
* |
public updateOp(user: *, opName: *, updates: *, options: {}): * source
Params:
Name | Type | Attribute | Description |
user | * | ||
opName | * | ||
updates | * | ||
options | {} |
|
Return:
* |
public updateOpCode(opName: *, author: *, code: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
author | * | ||
code | * |
Return:
* |
public userHasWriteRightsOp(user: *, opName: *, teams: *[], project: undefined, ignoreAdmin: boolean): boolean source
Params:
Name | Type | Attribute | Description |
user | * | ||
opName | * | ||
teams | *[] |
|
|
project | undefined |
|
|
ignoreAdmin | boolean |
|
Return:
boolean |
public validateAndFormatOpCode(code: *): * source
Params:
Name | Type | Attribute | Description |
code | * |
Return:
* |
Private Methods
private _getCLIConfig(): {"fix": boolean, "baseConfig": *, "envs": *, "useEslintrc": *, "globals": *, "env": *, "parserOptions": *, "rules": *} source
Return:
{"fix": boolean, "baseConfig": *, "envs": *, "useEslintrc": *, "globals": *, "env": *, "parserOptions": *, "rules": *} |
private _getErrorSvg(opName: *, err: *, backgroundOptions: *): * source
Params:
Name | Type | Attribute | Description |
opName | * | ||
err | * | ||
backgroundOptions | * |
Return:
* |
private _renameOp(oldName: *, newName: *, currentUser: *, formatCode: *, removeOld: *, newId: *, oldOpDir: *, newOpDir: *, cb: undefined): boolean source
Params:
Name | Type | Attribute | Description |
oldName | * | ||
newName | * | ||
currentUser | * | ||
formatCode | * | ||
removeOld | * | ||
newId | * | ||
oldOpDir | * | ||
newOpDir | * | ||
cb | undefined |
|
Return:
boolean |
private _writeOpChangelog(opName: *, changes: *, update: boolean) source
Params:
Name | Type | Attribute | Description |
opName | * | ||
changes | * | ||
update | boolean |
|