Skip to main content
Version: 2.4

@olympeio/documentation/olympe

Index

Type Aliases

Class

Class<T>: new () => T

Type parameters

  • T

Type declaration

    • new (): T
    • Returns T

FollowRule

FollowRule: Property<number>

FunctionBrick

FunctionBrick: Brick
@deprecated

use Brick instead

InstanceTag

InstanceTag: Tag | Entry

List

List<T>: T[] | (T extends CloudObject | CloudObject[] ? QueryResult<T> : never)

Type parameters

  • T

Operation

Operation: { model: string; object: string; properties?: Map<string, any>; type: CREATE } | { model: string; object: string; properties: Map<string, any>; type: UPDATE } | { model: string; object: string; type: DELETE } | { from: string; fromModel: string; relation: string; to: string; toModel: string; type: CREATE_RELATION } | { from: string; fromModel: string; relation: string; to: string; toModel: string; type: DELETE_RELATION }

Represents an operation that can be performed regarding data type instances.

ParsedPredicate

ParsedPredicate: { name: IS; tags: string[] } | { caseSensitive: boolean; name: CONTAINS; property: string; value: string } | { name: EQUALS; property: string; value: any } | { name: INEQUALITY_OPERATOR; operator: string; property: string; strict: boolean; value: any } | { name: NOT; predicate: ParsedPredicate } | { caseSensitive: boolean; name: REGEX; pattern: RegExp; property: string }

Details for a predicate from the OLYMPE query API

SRPData

SRPData: { login: string; salt: string; username: string; verifier: string }

Type declaration

  • login: string
  • salt: string
  • username: string
  • verifier: string

ServiceRequestType

ServiceRequestType: { GET: any; PUBLISH: any; SEND: any; SUBSCRIBE: any }

Types of requests that can be received in a Service. This is used to know what method call on the request to answer the requester.


Type declaration

  • GET: any
  • PUBLISH: any
  • SEND: any
  • SUBSCRIBE: any

Source

Source: PredefinedDataSource | string

When manipulating CloudObjects, sometimes it is required to manually set the data source of that object. Source determines where the object comes from: what data source is the owner of the object across the ecosystem.

Tag

Tag: string | HasTag | typeof CloudObject

A Tag can be either a string, a HasTag (CloudObject instance, Property, Relation, …) or the class constructor for a CloudObject

UserToken

UserToken: { idpName: string; nonce: string; payload: Object; protocol: AuthProtocol; user: string; userTag: string }

Type declaration

  • idpName: string
  • nonce: string
  • payload: Object
  • protocol: AuthProtocol
  • user: string
  • userTag: string

Variables

constRelation

Global variable, constructor of class Relation.