Represents a deep package

Remarks

Contains name of the package and all the links as the objects with id method which returns the id of the link.

Example

Use name field to get the name of the package

const package = new Package({deep});
const {name: packageName} = package;

Use id method to get the id of the link

const package = new Package({deep});
const speakOptionsTypeLinkId = await package["SpeakOptions"].id();
const notifyTypeLinkId = await package["Notify"].id();
const notifiedTypeLinkId = await package["Notified"].id();
const languageTypeLinkId = await package["Language"].id();
const valueTypeLinkId = await package["Value"].id();

Use idLocal method to get the local id of the link

const package = new Package({deep});
await package.applyMinilinks();
const speakOptionsTypeLinkId = package["SpeakOptions"].idLocal();
const notifyTypeLinkId = package["Notify"].idLocal();
const notifiedTypeLinkId = package["Notified"].idLocal();
const languageTypeLinkId = package["Language"].idLocal();
const valueTypeLinkId = package["Value"].idLocal();

Use name field to get the name of the link

const package = new Package({deep});
const speakOptions = package["SpeakOptions"].name;
const notify = package["Notify"].name;
const notified = package["Notified"].name;
const language = package["Language"].name;
const value = package["Value"].name;

Hierarchy

  • Package
    • Package

Constructors

Properties

Language: {
    id: (() => Promise<number>);
    idLocal: (() => number);
    name: string;
} = ...

Type declaration

  • id: (() => Promise<number>)
      • (): Promise<number>
      • Returns Promise<number>

  • idLocal: (() => number)
      • (): number
      • Returns number

  • name: string

Example

Use id method to get the id of the Language link

const package = new Package({deep});
const languageTypeLinkId = await package["Language"].id();

Use localId method to get the local id of the Language link

const package = new Package({deep});
const languageTypeLinkId = await package["Language"].localId();

Use name field to get the name of the Language link

const package = new Package({deep});
const language = await package["Language"].name;
Notified: {
    id: (() => Promise<number>);
    idLocal: (() => number);
    name: string;
} = ...

Type declaration

  • id: (() => Promise<number>)
      • (): Promise<number>
      • Returns Promise<number>

  • idLocal: (() => number)
      • (): number
      • Returns number

  • name: string

Example

Use id method to get the id of the Notified link

const package = new Package({deep});
const notifiedTypeLinkId = await package["Notified"].id();

Use localId method to get the local id of the Notified link

const package = new Package({deep});
const notifiedTypeLinkId = await package["Notified"].localId();

Use name field to get the name of the Notified link

const package = new Package({deep});
const notified = await package["Notified"].name;
Notify: {
    id: (() => Promise<number>);
    idLocal: (() => number);
    name: string;
} = ...

Type declaration

  • id: (() => Promise<number>)
      • (): Promise<number>
      • Returns Promise<number>

  • idLocal: (() => number)
      • (): number
      • Returns number

  • name: string

Example

Use id method to get the id of the Notify link

const package = new Package({deep});
const notifyTypeLinkId = await package["Notify"].id();

Use localId method to get the local id of the Notify link

const package = new Package({deep});
const notifyTypeLinkId = await package["Notify"].localId();

Use name field to get the name of the Notify link

const package = new Package({deep});
const notify = await package["Notify"].name;
SpeakOptions: {
    id: (() => Promise<number>);
    idLocal: (() => number);
    name: string;
} = ...

Type declaration

  • id: (() => Promise<number>)
      • (): Promise<number>
      • Returns Promise<number>

  • idLocal: (() => number)
      • (): number
      • Returns number

  • name: string

Example

Use id method to get the id of the SpeakOptions link

const package = new Package({deep});
const speakOptionsTypeLinkId = await package["SpeakOptions"].id();

Use localId method to get the local id of the SpeakOptions link

const package = new Package({deep});
const speakOptionsTypeLinkId = await package["SpeakOptions"].localId();

Use name field to get the name of the SpeakOptions link

const package = new Package({deep});
const speakOptions = await package["SpeakOptions"].name;
Value: {
    id: (() => Promise<number>);
    idLocal: (() => number);
    name: string;
} = ...

Type declaration

  • id: (() => Promise<number>)
      • (): Promise<number>
      • Returns Promise<number>

  • idLocal: (() => number)
      • (): number
      • Returns number

  • name: string

Example

Use id method to get the id of the Value link

const package = new Package({deep});
const valueTypeLinkId = await package["Value"].id();

Use localId method to get the local id of the Value link

const package = new Package({deep});
const valueTypeLinkId = await package["Value"].localId();

Use name field to get the name of the Value link

const package = new Package({deep});
const value = await package["Value"].name;
deep: DeepClient<Link<number>>
name: string

Methods

  • Returns Promise<void>

  • Parameters

    • name: string

    Returns {
        id: (() => Promise<number>);
        idLocal: (() => number);
        name: string;
    }

    • id: (() => Promise<number>)
        • (): Promise<number>
        • Returns Promise<number>

    • idLocal: (() => number)
        • (): number
        • Returns number

    • name: string
  • Parameters

    • Rest ...names: string[]

    Returns Promise<number>

  • Parameters

    • Rest ...names: string[]

    Returns number