MCPcopy Create free account

hub / github.com/loopbackio/loopback-next / functions

Functions4,891 in github.com/loopbackio/loopback-next

↓ 10 callersFunctionresolveHasOneMetadata
( relationMeta: HasOneDefinition, )
packages/repository/src/relations/has-one/has-one.helpers.ts:31
↓ 10 callersFunctionresolveType
( fn: TypeResolver<T> | Class<T> | T, )
packages/repository/src/type-resolver.ts:98
↓ 10 callersFunctionverifyValidationRejectsInputWithError
( expectedMessage: string, expectedCode: string, expectedDetails: RestHttpErrors.ValidationErrorDetails[
packages/rest/src/__tests__/unit/request-body.validator.test.ts:374
↓ 10 callersFunctionwriteResultToResponse
( // not needed and responsibility should be in the sequence.send response: Response, // result returned
packages/rest/src/writer.ts:16
↓ 9 callersMethod_debug
* Wrap the debug statement so that it always print out the context name * as the prefix * @param args - Arguments for the debug
packages/context/src/context-subscription.ts:115
↓ 9 callersMethodadd
* Add a binding to the context. If a locked binding already exists with the * same key, an error will be thrown. * @param binding - The configur
packages/context/src/context.ts:231
↓ 9 callersMethodaddSetting
* Add a setting * @param name - Setting name * @param value - Setting value
packages/repository/src/model.ts:176
↓ 9 callersMethodbooters
* Register booters * @param booterClasses - A list of booter classes
packages/boot/src/types.ts:133
↓ 9 callersFunctioncreateProxyWithInterceptors
( target: T, context?: Context, session?: ResolutionSession, source?: InvocationSource, )
packages/context/src/interception-proxy.ts:116
↓ 9 callersFunctiondescribeInjectedProperties
( target: Object, )
packages/context/src/inject.ts:707
↓ 9 callersMethodgetDesignTypeForMethod
* Get TypeScript design time type for a method. * @param target - Class or prototype * @param methodName - Method name * @returns Design time
packages/metadata/src/inspector.ts:233
↓ 9 callersMethodgetId
* Get the identity value. If the identity is a composite key, returns * an object.
packages/repository/src/model.ts:467
↓ 9 callersFunctiongetListeners
()
packages/core/src/__tests__/unit/application.unit.ts:438
↓ 9 callersFunctiongetModelTemplateOptions
(templateData)
packages/cli/test/unit/import-lb3-model/migrate-model.test.js:497
↓ 9 callersFunctiongivenInterceptorChain
(...interceptors: GenericInterceptor[])
packages/context/src/__tests__/unit/interceptor-chain.unit.ts:236
↓ 9 callersFunctiongivenOperationWithRequestBody
(requestBody?: RequestBodyObject)
packages/rest/src/__tests__/unit/parser.unit.ts:446
↓ 9 callersFunctiongivenRequest
(options?: ShotRequestOptions)
packages/rest/src/__tests__/unit/body-parser.unit.ts:384
↓ 9 callersFunctiongivenRunningAppWithClient
( restOptions?: RestServerConfig, setupFn: (restApp: RestApplication) => void = () => {}, )
packages/rest/src/__tests__/integration/request-context.integration.ts:155
↓ 9 callersMethodgt
* Add a `>` condition * @param key - Property name * @param val - Property value
packages/filter/src/query.ts:366
↓ 9 callersFunctionjsonOrBooleanToJSON
(jsonOrBool: boolean | JsonSchema)
packages/openapi-v3/src/json-to-schema.ts:159
↓ 9 callersMethodlifeCycleObserver
* Register a life cycle observer class * @param ctor - A class implements LifeCycleObserver * @param nameOrOptions - Optional name or options fo
packages/core/src/application.ts:503
↓ 9 callersMethodlink
* Creates a new many-to-many association to an existing target model instance * @param targetModelId - The target model ID to link * @param opti
packages/repository/src/relations/has-many/has-many-through.repository.ts:112
↓ 9 callersFunctionlog
(level?: number)
examples/log-extension/src/decorators/log.decorator.ts:21
↓ 9 callersMethodon
(_eventName: string | symbol, _cb: (...args: unknown[]) => void)
extensions/socketio/src/__tests__/fixtures/dummy-socket.ts:9
↓ 9 callersFunctionprintSpecObject
* Print an OpenAPI spec object as JavaScript object literal. The original value * is used if `$ref` is resolved. * @param {*} specObject - An OpenAP
packages/cli/generators/openapi/utils.js:224
↓ 9 callersMethodregisterController
* Register a controller as the route * @param spec * @param controllerCtor * @param controllerFactory
packages/rest/src/router/routing-table.ts:43
↓ 9 callersFunctionregisterGreeters
(extensionPointName: string)
packages/core/src/__tests__/acceptance/extension-point.acceptance.ts:326
↓ 9 callersFunctionresolveList
( list: T[], resolver: (val: T, index: number, values: T[]) => ValueOrPromise<V>, )
packages/context/src/value-promise.ts:157
↓ 9 callersFunctionresolveMap
( map: MapObject<T>, resolver: (val: T, key: string, values: MapObject<T>) => ValueOrPromise<V>, )
packages/context/src/value-promise.ts:95
↓ 9 callersFunctionrunMain
* Run a function if the module is the main entry for `node` process. * * @param currentModule - Current module. It's used to determine if the module
bin/script-util.js:129
↓ 9 callersFunctionsetupBindings
(scope: BindingScope)
packages/context/src/__tests__/unit/context.unit.ts:743
↓ 9 callersFunctionstubExpressContext
( requestOptions: ShotRequestOptions = {url: '/'}, )
packages/testlab/src/shot.ts:95
↓ 9 callersFunctiontestInvalidDataError
( input: string | object, extraErrorProps?: Props, )
packages/rest/src/__tests__/unit/coercion/paramObject.unit.ts:78
↓ 9 callersMethodtoJSON
* Convert to a plain JSON object
packages/context/src/binding.ts:977
↓ 9 callersFunctionwhenIMakeRequestTo
(restServer: RestServer)
packages/authentication/src/__tests__/acceptance/basic-auth-extension.middleware.acceptance.ts:268
↓ 9 callersFunctionwhenIMakeRequestTo
(restServer: RestServer)
packages/authentication/src/__tests__/acceptance/basic-auth-extension.acceptance.ts:268
↓ 9 callersMethodwithComponents
* Define a new ComponentsObject. * * @param spec - Specification of the components.
packages/openapi-spec-builder/src/openapi-spec-builder.ts:146
↓ 9 callersMethodwithSchema
* Define a component schema. * * @param name - The name of the schema * @param schema - Specification of the schema *
packages/openapi-spec-builder/src/openapi-spec-builder.ts:276
↓ 9 callersMethodwriteTextFile
* Creates a new file and writes the given data as a UTF-8-encoded text. * * @param dest - Destination filename, optionally including a relative
packages/testlab/src/test-sandbox.ts:177
↓ 8 callersFunctionaddExtension
( context: Context, extensionPointName: string, extensionClass: Constructor<unknown>, options?: Bindin
packages/core/src/extension-point.ts:301
↓ 8 callersMethodaddRelation
* Define a new relation. * @param definition - The definition of the new relation.
packages/repository/src/model.ts:185
↓ 8 callersFunctionassertGreeterExtensions
(greeters: Greeter[])
packages/core/src/__tests__/acceptance/extension-point.acceptance.ts:356
↓ 8 callersMethodbuildKeyForConfig
* Build a binding key for the configuration of the given binding. * The format is `<key>:$config` * * @param key - Key of the target binding
packages/context/src/binding-key.ts:117
↓ 8 callersFunctionbuildLookupMap
( list: InType[], keyName: StringKeyOf<InType>, reducer: (accumulator: OutType | undefined, current: InT
packages/repository/src/relations/relation.helpers.ts:291
↓ 8 callersMethodbuildSequelizeWhere
* Build Sequelize compatible where condition object * @param where loopback style `where` condition * @returns Sequelize compatible where option
extensions/sequelize/src/sequelize/sequelize.repository.base.ts:642
↓ 8 callersFunctioncompareBindingsByTag
( phaseTagName = 'phase', orderOfPhases: (string | symbol)[] = [], )
packages/context/src/binding-sorter.ts:52
↓ 8 callersFunctionconstrainWhere
( originalWhere: Where<T> | undefined, constraint: Where<T>, )
packages/repository/src/repositories/constraint-utils.ts:36
↓ 8 callersFunctioncreateHasManyThroughRepositoryFactory
( relationMetadata: HasManyDefinition, targetRepositoryGetter: | Getter<EntityCrudRepository<Target, T
packages/repository/src/relations/has-many/has-many-through.repository-factory.ts:52
↓ 8 callersFunctioncreateProduct
(properties: Partial<Product>)
packages/repository/src/__tests__/unit/repositories/relations-helpers/mongo-related-helpers.unit.ts:142
↓ 8 callersMethoddeleteMetadata
( metadataKey: string, target: Object, propertyKey?: string, )
packages/metadata/src/reflect.ts:97
↓ 8 callersMethoddescribeInjection
* Describe the injection for debugging purpose * @param injection - Injection object
packages/context/src/resolution-session.ts:136
↓ 8 callersFunctionemitAntWait
(eventName: string, args: unknown)
extensions/socketio/src/__tests__/acceptance/socketio.events.acceptance.ts:80
↓ 8 callersMethodfind
* Implementation of the endpoint `GET /`. * @param filter Filter
packages/rest-crud/src/crud-rest.controller.ts:79
↓ 8 callersMethodfindRoute
packages/rest/src/providers/find-route.provider.ts:27
↓ 8 callersMethodgenerate
* Generate a universally unique binding key. * * Please note the format of they generated key is not specified, you must * not rely on any sp
packages/context/src/binding-key.ts:131
↓ 8 callersMethodgenerateToken
* Generate a refresh token, bind it with the given user profile + access * token, then store them in backend.
extensions/authentication-jwt/src/types.ts:27
↓ 8 callersFunctiongetErrorText
(packageName, field)
bin/check-package-metadata.js:104
↓ 8 callersMethodgetGlobalInterceptorBindingKeys
* Discover all binding keys for global interceptors (tagged by * ContextTags.GLOBAL_INTERCEPTOR)
packages/context/src/interceptor.ts:56
↓ 8 callersMethodgetIdProperties
* Get the names of identity properties (primary keys).
packages/repository/src/model.ts:444
↓ 8 callersMethodgetOwnerContext
* Get the owning context for a binding or its key * @param keyOrBinding - Binding object or key
packages/context/src/context.ts:482
↓ 8 callersFunctiongivenOperationWithRequestBody
(requestBody?: RequestBodyObject)
packages/rest/src/__tests__/unit/body-parser.unit.ts:376
↓ 8 callersFunctiongivenRequest
(options?: ShotRequestOptions)
packages/rest/src/__tests__/unit/router/routing-table.unit.ts:254
↓ 8 callersFunctiongivenRoutingTable
()
packages/rest/src/__tests__/unit/router/routing-table.unit.ts:258
↓ 8 callersFunctiongivenTodo
(todo?: Partial<Todo>)
examples/rest-crud/src/__tests__/helpers.ts:13
↓ 8 callersFunctionhttpGetAsync
( urlString: string, agent?: http.Agent, )
packages/testlab/src/request.ts:14
↓ 8 callersMethodisVisibleTo
* Check if this context is visible (same or ancestor) to the given one * @param ctx - Another context object
packages/context/src/context.ts:566
↓ 8 callersMethodlt
* Add a `<` condition * @param key - Property name * @param val - Property value
packages/filter/src/query.ts:388
↓ 8 callersFunctionmapSchemaType
* * https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#data-types * * @param {object} schema
packages/cli/generators/openapi/schema-helper.js:324
↓ 8 callersFunctionmethodDecorator
* Define `@methodDecorator(spec)` * @param spec
packages/metadata/src/__tests__/unit/decorator-factory.unit.ts:436
↓ 8 callersMethodmountExpressRouter
* Mount an Express router to expose additional REST endpoints handled * via legacy Express-based stack. * * @param basePath - Path where to m
packages/rest/src/rest.server.ts:1027
↓ 8 callersFunctionpropertyDecorator
* Define `@propertyDecorator(spec)` * @param spec
packages/metadata/src/__tests__/unit/decorator-factory.unit.ts:340
↓ 8 callersFunctionreject
({response}, error)
packages/rest/src/__tests__/acceptance/sequence/sequence.acceptance.ts:114
↓ 8 callersMethodrejected
()
packages/testlab/should-as-function.d.ts:132
↓ 8 callersFunctionresolveHasManyMetadata
( relationMeta: HasManyDefinition, )
packages/repository/src/relations/has-many/has-many.helpers.ts:30
↓ 8 callersMethodsetState
* Transition the application to a new state and emit an event * @param state - The new state
packages/core/src/application.ts:289
↓ 8 callersFunctiontestValidateName
(testName, input, expected)
packages/cli/test/unit/utils.unit.js:73
↓ 8 callersMethodthrows
(block: any, error?: any, message?: string)
packages/testlab/should-as-function.d.ts:210
↓ 8 callersFunctionvalidateApiPath
(path = '/')
packages/rest/src/router/openapi-path.ts:22
↓ 8 callersFunctionvalidateRequestBody
( body: RequestBody, requestBodySpec?: RequestBodyObject, globalSchemas: SchemasObject = {}, options:
packages/rest/src/validation/request-body.validator.ts:44
↓ 7 callersMethodNumber
()
packages/testlab/should-as-function.d.ts:61
↓ 7 callersFunctionassertEvents
(events: BindingEvent[], operation: string)
packages/context/src/__tests__/unit/binding.unit.ts:782
↓ 7 callersMethodbindController
(interceptor?: InterceptorOrKey)
packages/express/src/__tests__/acceptance/test-helpers.ts:64
↓ 7 callersMethodbuildWhereForId
* Build the where object for the given id * @param id - The id value
packages/repository/src/model.ts:500
↓ 7 callersMethodcalledWithExactly
(...arguments: any[])
packages/testlab/should-as-function.d.ts:156
↓ 7 callersMethodclear
* Clear the cache
examples/greeting-app/src/caching-service.ts:75
↓ 7 callersMethodconnect
()
packages/repository/src/connectors/connector.ts:62
↓ 7 callersFunctioncreateCategoryProductLink
(properties: Partial<CategoryProductLink>)
packages/repository/src/__tests__/unit/repositories/relations-helpers/resolve-has-many-through-metadata.unit.ts:596
↓ 7 callersFunctioncreateComponentApplicationBooterBinding
( componentApp: Application & Bootable, filter?: BindingFilter, )
packages/boot/src/booters/component-application.booter.ts:116
↓ 7 callersFunctioncreateCustomerAddress
( customerId: MixedIdType, addressData: DataObject<Address>, )
packages/repository-tests/src/crud/relations/acceptance/has-one.relation.acceptance.ts:240
↓ 7 callersFunctioncreateCustomerPaymentMethod
( customerId: MixedIdType, paymentMethodData: DataObject<PaymentMethod>, polymorphicTypeName
packages/repository-tests/src/crud/relations/acceptance/has-one.relation.polymorphic.acceptance.ts:286
↓ 7 callersMethoddeepProperty
* Get a binding address for retrieving a deep property of the object * bound to the current binding key. * * @param propertyPath - A dot-sepa
packages/context/src/binding-key.ts:58
↓ 7 callersFunctiondeleteMetadata
(target: object, propertyKey?: string)
packages/metadata/src/__tests__/unit/reflect.unit.ts:473
↓ 7 callersFunctionfindByForeignKeys
( targetRepository: EntityCrudRepository<Target, unknown, TargetRelations>, fkName: ForeignKey, fkValues
packages/repository/src/relations/relation.helpers.ts:30
↓ 7 callersMethodfindRoute
(request: Request)
packages/rest/src/http-handler.ts:95
↓ 7 callersFunctionflattenTargetsOfOneToOneRelation
( sourceIds: unknown[], targetEntities: Target[], targetKey: StringKeyOf<Target>, )
packages/repository/src/relations/relation.helpers.ts:211
↓ 7 callersFunctiongetFieldsJsonSchemaFor
( modelCtor: typeof Model, options: FilterSchemaOptions = {}, )
packages/repository-json-schema/src/filter-json-schema.ts:205
↓ 7 callersMethodgetMetadataKey
(metadataKey: string)
packages/metadata/src/reflect.ts:19
↓ 7 callersMethodgetModelMetadata
* A utility function to simplify retrieving metadata from a target model and * its properties. * @param target - The class from which to retriev
packages/repository/src/decorators/metadata.ts:24
↓ 7 callersMethodgetName
()
packages/rest/src/__tests__/acceptance/routing/routing.acceptance.ts:260
↓ 7 callersMethodgetScopedContext
* Get the context matching the scope * @param scope - Binding scope
packages/context/src/context.ts:511
← previousnext →401–500 of 4,891, ranked by callers