@loopback/docs
Version:
Documentation for LoopBack 4
1,577 lines • 923 kB
JSON
{
"metadata": {
"toolPackage": "@microsoft/api-extractor",
"toolVersion": "7.6.2",
"schemaVersion": 1003,
"oldestForwardsCompatibleVersion": 1001
},
"kind": "Package",
"canonicalReference": "@loopback/repository!",
"docComment": "",
"name": "@loopback/repository",
"members": [
{
"kind": "EntryPoint",
"canonicalReference": "@loopback/repository!",
"name": "",
"members": [
{
"kind": "Interface",
"canonicalReference": "@loopback/repository!AndClause:interface",
"docComment": "/**\n * And clause\n *\n * @example\n * ```ts\n * {\n * and: [...],\n * }\n * ```\n *\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface AndClause<MT extends "
},
{
"kind": "Content",
"text": "object"
},
{
"kind": "Content",
"text": "> "
}
],
"releaseTag": "Public",
"typeParameters": [
{
"typeParameterName": "MT",
"constraintTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"defaultTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
}
],
"name": "AndClause",
"members": [
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/repository!AndClause#and:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "and: "
},
{
"kind": "Reference",
"text": "Where",
"canonicalReference": "@loopback/repository!Where:type"
},
{
"kind": "Content",
"text": "<MT>[]"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "and",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 3
}
}
],
"extendsTokenRanges": []
},
{
"kind": "Variable",
"canonicalReference": "@loopback/repository!ANY:var",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "ANY: "
},
{
"kind": "Reference",
"text": "AnyType",
"canonicalReference": "@loopback/repository!AnyType:class"
}
],
"releaseTag": "Public",
"name": "ANY",
"variableTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "Interface",
"canonicalReference": "@loopback/repository!AnyObject:interface",
"docComment": "/**\n * Objects with open properties\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface AnyObject "
}
],
"releaseTag": "Public",
"name": "AnyObject",
"members": [
{
"kind": "IndexSignature",
"canonicalReference": "@loopback/repository!AnyObject:index(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "[property: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": "]: "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "property",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
]
}
],
"extendsTokenRanges": []
},
{
"kind": "Class",
"canonicalReference": "@loopback/repository!AnyType:class",
"docComment": "/**\n * Any type\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare class AnyType implements "
},
{
"kind": "Reference",
"text": "Type",
"canonicalReference": "@loopback/repository!Type:interface"
},
{
"kind": "Content",
"text": "<any> "
}
],
"releaseTag": "Public",
"name": "AnyType",
"members": [
{
"kind": "Method",
"canonicalReference": "@loopback/repository!AnyType#coerce:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "coerce(value: "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "value",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"name": "coerce"
},
{
"kind": "Method",
"canonicalReference": "@loopback/repository!AnyType#defaultValue:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "defaultValue(): "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "defaultValue"
},
{
"kind": "Method",
"canonicalReference": "@loopback/repository!AnyType#isCoercible:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "isCoercible(value: "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "boolean"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "value",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"name": "isCoercible"
},
{
"kind": "Method",
"canonicalReference": "@loopback/repository!AnyType#isInstance:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "isInstance(value: "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "boolean"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "value",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"name": "isInstance"
},
{
"kind": "Property",
"canonicalReference": "@loopback/repository!AnyType#name:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly name = \"any\";"
}
],
"releaseTag": "Public",
"name": "name",
"propertyTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
},
"isStatic": false
},
{
"kind": "Method",
"canonicalReference": "@loopback/repository!AnyType#serialize:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "serialize(value: "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "value",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"name": "serialize"
}
],
"implementsTokenRanges": [
{
"startIndex": 1,
"endIndex": 3
}
]
},
{
"kind": "Interface",
"canonicalReference": "@loopback/repository!ApplicationWithRepositories:interface",
"docComment": "/**\n * Interface for an Application mixed in with RepositoryMixin\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface ApplicationWithRepositories extends "
},
{
"kind": "Reference",
"text": "Application",
"canonicalReference": "@loopback/core!Application:class"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "ApplicationWithRepositories",
"members": [
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/repository!ApplicationWithRepositories#component:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "component(component: "
},
{
"kind": "Reference",
"text": "Class",
"canonicalReference": "@loopback/repository!Class:interface"
},
{
"kind": "Content",
"text": "<unknown>"
},
{
"kind": "Content",
"text": ", name?: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "Binding",
"canonicalReference": "@loopback/context!Binding:class"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 6,
"endIndex": 7
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "component",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 3
}
},
{
"parameterName": "name",
"parameterTypeTokenRange": {
"startIndex": 4,
"endIndex": 5
}
}
],
"name": "component"
},
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/repository!ApplicationWithRepositories#dataSource:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "dataSource<D extends "
},
{
"kind": "Reference",
"text": "juggler.DataSource",
"canonicalReference": "loopback-datasource-juggler!DataSource:class"
},
{
"kind": "Content",
"text": ">(dataSource: "
},
{
"kind": "Reference",
"text": "Class",
"canonicalReference": "@loopback/repository!Class:interface"
},
{
"kind": "Content",
"text": "<D> | D"
},
{
"kind": "Content",
"text": ", name?: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "Binding",
"canonicalReference": "@loopback/context!Binding:class"
},
{
"kind": "Content",
"text": "<D>"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 8,
"endIndex": 10
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "dataSource",
"parameterTypeTokenRange": {
"startIndex": 3,
"endIndex": 5
}
},
{
"parameterName": "name",
"parameterTypeTokenRange": {
"startIndex": 6,
"endIndex": 7
}
}
],
"typeParameters": [
{
"typeParameterName": "D",
"constraintTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"defaultTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
}
],
"name": "dataSource"
},
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/repository!ApplicationWithRepositories#getRepository:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "getRepository<R extends "
},
{
"kind": "Reference",
"text": "Repository",
"canonicalReference": "@loopback/repository!Repository:interface"
},
{
"kind": "Content",
"text": "<any>"
},
{
"kind": "Content",
"text": ">(repo: "
},
{
"kind": "Reference",
"text": "Class",
"canonicalReference": "@loopback/repository!Class:interface"
},
{
"kind": "Content",
"text": "<R>"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "Promise",
"canonicalReference": "!Promise:interface"
},
{
"kind": "Content",
"text": "<R>"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 7,
"endIndex": 9
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "repo",
"parameterTypeTokenRange": {
"startIndex": 4,
"endIndex": 6
}
}
],
"typeParameters": [
{
"typeParameterName": "R",
"constraintTokenRange": {
"startIndex": 1,
"endIndex": 3
},
"defaultTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
}
],
"name": "getRepository"
},
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/repository!ApplicationWithRepositories#migrateSchema:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "migrateSchema(options?: "
},
{
"kind": "Reference",
"text": "SchemaMigrationOptions",
"canonicalReference": "@loopback/repository!SchemaMigrationOptions:interface"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "Promise",
"canonicalReference": "!Promise:interface"
},
{
"kind": "Content",
"text": "<void>"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 5
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "options",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"name": "migrateSchema"
},
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/repository!ApplicationWithRepositories#mountComponentRepositories:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "mountComponentRepositories(component: "
},
{
"kind": "Reference",
"text": "Class",
"canonicalReference": "@loopback/repository!Class:interface"
},
{
"kind": "Content",
"text": "<unknown>"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "void"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 4,
"endIndex": 5
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "component",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 3
}
}
],
"name": "mountComponentRepositories"
},
{
"kind": "MethodSignature",
"canonicalReference": "@loopback/repository!ApplicationWithRepositories#repository:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "repository<R extends "
},
{
"kind": "Reference",
"text": "Repository",
"canonicalReference": "@loopback/repository!Repository:interface"
},
{
"kind": "Content",
"text": "<any>"
},
{
"kind": "Content",
"text": ">(repo: "
},
{
"kind": "Reference",
"text": "Class",
"canonicalReference": "@loopback/repository!Class:interface"
},
{
"kind": "Content",
"text": "<R>"
},
{
"kind": "Content",
"text": ", name?: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "Binding",
"canonicalReference": "@loopback/context!Binding:class"
},
{
"kind": "Content",
"text": "<R>"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 9,
"endIndex": 11
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "repo",
"parameterTypeTokenRange": {
"startIndex": 4,
"endIndex": 6
}
},
{
"parameterName": "name",
"parameterTypeTokenRange": {
"startIndex": 7,
"endIndex": 8
}
}
],
"typeParameters": [
{
"typeParameterName": "R",
"constraintTokenRange": {
"startIndex": 1,
"endIndex": 3
},
"defaultTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
}
],
"name": "repository"
}
],
"extendsTokenRanges": [
{
"startIndex": 1,
"endIndex": 3
}
]
},
{
"kind": "Class",
"canonicalReference": "@loopback/repository!ArrayType:class",
"docComment": "/**\n * Array type, such as string[]\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare class ArrayType<T> implements "
},
{
"kind": "Reference",
"text": "Type",
"canonicalReference": "@loopback/repository!Type:interface"
},
{
"kind": "Content",
"text": "<T[]> "
}
],
"releaseTag": "Public",
"typeParameters": [
{
"typeParameterName": "T",
"constraintTokenRange": {
"startIndex": 0,
"endIndex": 0
},
"defaultTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
}
],
"name": "ArrayType",
"members": [
{
"kind": "Constructor",
"canonicalReference": "@loopback/repository!ArrayType:constructor(1)",
"docComment": "/**\n * Constructs a new instance of the `ArrayType` class\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "constructor(itemType: "
},
{
"kind": "Reference",
"text": "Type",
"canonicalReference": "@loopback/repository!Type:interface"
},
{
"kind": "Content",
"text": "<T>"
},
{
"kind": "Content",
"text": ");"
}
],
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "itemType",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 3
}
}
]
},
{
"kind": "Method",
"canonicalReference": "@loopback/repository!ArrayType#coerce:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "coerce(value: "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "value",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"name": "coerce"
},
{
"kind": "Method",
"canonicalReference": "@loopback/repository!ArrayType#defaultValue:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "defaultValue(): "
},
{
"kind": "Content",
"text": "T[]"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [],
"name": "defaultValue"
},
{
"kind": "Method",
"canonicalReference": "@loopback/repository!ArrayType#isCoercible:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "isCoercible(value: "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "boolean"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "value",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"name": "isCoercible"
},
{
"kind": "Method",
"canonicalReference": "@loopback/repository!ArrayType#isInstance:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "isInstance(value: "
},
{
"kind": "Content",
"text": "any"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "boolean"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "value",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"name": "isInstance"
},
{
"kind": "Property",
"canonicalReference": "@loopback/repository!ArrayType#itemType:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "itemType: "
},
{
"kind": "Reference",
"text": "Type",
"canonicalReference": "@loopback/repository!Type:interface"
},
{
"kind": "Content",
"text": "<T>"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "itemType",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 3
},
"isStatic": false
},
{
"kind": "Property",
"canonicalReference": "@loopback/repository!ArrayType#name:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "readonly name = \"array\";"
}
],
"releaseTag": "Public",
"name": "name",
"propertyTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
},
"isStatic": false
},
{
"kind": "Method",
"canonicalReference": "@loopback/repository!ArrayType#serialize:member(1)",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "serialize(value: "
},
{
"kind": "Content",
"text": "T[] | null | undefined"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "any[] | null | undefined"
},
{
"kind": "Content",
"text": ";"
}
],
"isStatic": false,
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 4
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "value",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
],
"name": "serialize"
}
],
"implementsTokenRanges": [
{
"startIndex": 1,
"endIndex": 3
}
]
},
{
"kind": "Function",
"canonicalReference": "@loopback/repository!belongsTo:function(1)",
"docComment": "/**\n * Decorator for belongsTo\n *\n * @param targetResolver - A resolver function that returns the target model for a belongsTo relation\n *\n * @param definition - Optional metadata for setting up a belongsTo relation\n *\n * @param propertyDefinition - Optional metadata for setting up the property\n *\n * @returns A property decorator\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "export declare function belongsTo<T extends "
},
{
"kind": "Reference",
"text": "Entity",
"canonicalReference": "@loopback/repository!Entity:class"
},
{
"kind": "Content",
"text": ">(targetResolver: "
},
{
"kind": "Reference",
"text": "EntityResolver",
"canonicalReference": "@loopback/repository!EntityResolver:type"
},
{
"kind": "Content",
"text": "<T>"
},
{
"kind": "Content",
"text": ", definition?: "
},
{
"kind": "Reference",
"text": "Partial",
"canonicalReference": "!Partial:type"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "BelongsToDefinition",
"canonicalReference": "@loopback/repository!BelongsToDefinition:interface"
},
{
"kind": "Content",
"text": ">"
},
{
"kind": "Content",
"text": ", propertyDefinition?: "
},
{
"kind": "Reference",
"text": "Partial",
"canonicalReference": "!Partial:type"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "PropertyDefinition",
"canonicalReference": "@loopback/repository!PropertyDefinition:interface"
},
{
"kind": "Content",
"text": ">"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Content",
"text": "(decoratedTarget: "
},
{
"kind": "Reference",
"text": "Entity",
"canonicalReference": "@loopback/repository!Entity:class"
},
{
"kind": "Content",
"text": ", decoratedKey: string) => void"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 16,
"endIndex": 19
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "targetResolver",
"parameterTypeTokenRange": {
"startIndex": 3,
"endIndex": 5
}
},
{
"parameterName": "definition",
"parameterTypeTokenRange": {
"startIndex": 6,
"endIndex": 10
}
},
{
"parameterName": "propertyDefinition",
"parameterTypeTokenRange": {
"startIndex": 11,
"endIndex": 15
}
}
],
"typeParameters": [
{
"typeParameterName": "T",
"constraintTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"defaultTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
}
],
"name": "belongsTo"
},
{
"kind": "Interface",
"canonicalReference": "@loopback/repository!BelongsToAccessor:interface",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface BelongsToAccessor<Target extends "
},
{
"kind": "Reference",
"text": "Entity",
"canonicalReference": "@loopback/repository!Entity:class"
},
{
"kind": "Content",
"text": ", SourceId> "
}
],
"releaseTag": "Public",
"typeParameters": [
{
"typeParameterName": "Target",
"constraintTokenRange": {
"startIndex": 1,
"endIndex": 2
},
"defaultTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
},
{
"typeParameterName": "SourceId",
"constraintTokenRange": {
"startIndex": 0,
"endIndex": 0
},
"defaultTypeTokenRange": {
"startIndex": 0,
"endIndex": 0
}
}
],
"name": "BelongsToAccessor",
"members": [
{
"kind": "CallSignature",
"canonicalReference": "@loopback/repository!BelongsToAccessor:call(1)",
"docComment": "/**\n * Invoke the function to obtain HasManyRepository.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "(sourceId: "
},
{
"kind": "Content",
"text": "SourceId"
},
{
"kind": "Content",
"text": "): "
},
{
"kind": "Reference",
"text": "Promise",
"canonicalReference": "!Promise:interface"
},
{
"kind": "Content",
"text": "<Target>"
},
{
"kind": "Content",
"text": ";"
}
],
"returnTypeTokenRange": {
"startIndex": 3,
"endIndex": 5
},
"releaseTag": "Public",
"overloadIndex": 1,
"parameters": [
{
"parameterName": "sourceId",
"parameterTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
}
]
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/repository!BelongsToAccessor#inclusionResolver:member",
"docComment": "/**\n * Use `resolver` property to obtain an InclusionResolver for this relation.\n */\n",
"excerptTokens": [
{
"kind": "Content",
"text": "inclusionResolver: "
},
{
"kind": "Reference",
"text": "InclusionResolver",
"canonicalReference": "@loopback/repository!InclusionResolver:type"
},
{
"kind": "Content",
"text": "<"
},
{
"kind": "Reference",
"text": "Entity",
"canonicalReference": "@loopback/repository!Entity:class"
},
{
"kind": "Content",
"text": ", Target>"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "inclusionResolver",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 5
}
}
],
"extendsTokenRanges": []
},
{
"kind": "Interface",
"canonicalReference": "@loopback/repository!BelongsToDefinition:interface",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "export interface BelongsToDefinition extends "
},
{
"kind": "Reference",
"text": "RelationDefinitionBase",
"canonicalReference": "@loopback/repository!RelationDefinitionBase:interface"
},
{
"kind": "Content",
"text": " "
}
],
"releaseTag": "Public",
"name": "BelongsToDefinition",
"members": [
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/repository!BelongsToDefinition#keyFrom:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "keyFrom: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "keyFrom",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/repository!BelongsToDefinition#keyTo:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "keyTo?: "
},
{
"kind": "Content",
"text": "string"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "keyTo",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/repository!BelongsToDefinition#targetsMany:member",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "targetsMany: "
},
{
"kind": "Content",
"text": "false"
},
{
"kind": "Content",
"text": ";"
}
],
"releaseTag": "Public",
"name": "targetsMany",
"propertyTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "PropertySignature",
"canonicalReference": "@loopback/repository!BelongsToDefinition#type:member",
"docComment": "",
"excerptTokens": [
{
"k