Skip to content

manifest/context

manifest/context

Classes

ManifestContext

Defined in: platform-utils/src/manifest/context.ts:160

Constructors

Constructor
new ManifestContext(input): ManifestContext;

Defined in: platform-utils/src/manifest/context.ts:166

Parameters
Parameter Type
input ManifestContextInput
Returns

ManifestContext

Accessors

manifest
Get Signature
get manifest(): NorbitalManifest;

Defined in: platform-utils/src/manifest/context.ts:184

Returns

NorbitalManifest

nodeId
Get Signature
get nodeId(): string;

Defined in: platform-utils/src/manifest/context.ts:188

Returns

string

recordIdKey
Get Signature
get recordIdKey(): string;

Defined in: platform-utils/src/manifest/context.ts:196

Returns

string

Methods

collectionExists()
collectionExists(collectionName): boolean;

Defined in: platform-utils/src/manifest/context.ts:311

Parameters
Parameter Type
collectionName string
Returns

boolean

columnsFor()
columnsFor(collectionName): CollectionColumnMap;

Defined in: platform-utils/src/manifest/context.ts:192

Parameters
Parameter Type
collectionName string
Returns

CollectionColumnMap

findApp()
findApp(appName): 
  | ManifestApp
  | null;

Defined in: platform-utils/src/manifest/context.ts:266

Parameters
Parameter Type
appName string
Returns

| ManifestApp | null

findAppUiModule()
findAppUiModule(appName): 
  | {
  app: ManifestApp;
  path: string[];
  uiModule: TUiModuleRef;
}
  | null;

Defined in: platform-utils/src/manifest/context.ts:270

Parameters
Parameter Type
appName string
Returns

| { app: ManifestApp; path: string[]; uiModule: TUiModuleRef; } | null

findCollection()
findCollection(name): 
  | ManifestCollectionEntry
  | null;

Defined in: platform-utils/src/manifest/context.ts:262

Parameters
Parameter Type
name string
Returns

| ManifestCollectionEntry | null

findRelationship()
findRelationship(relName): 
  | ManifestRelationship
  | null;

Defined in: platform-utils/src/manifest/context.ts:244

Parameters
Parameter Type
relName string
Returns

| ManifestRelationship | null

getApps()
getApps(): ManifestApp[];

Defined in: platform-utils/src/manifest/context.ts:208

Returns

ManifestApp[]

getAppsRecord()
getAppsRecord(): Record<string, TApp>;

Defined in: platform-utils/src/manifest/context.ts:212

Returns

Record<string, TApp>

getCollection()
getCollection(collectionName): ManifestCollectionEntry;

Defined in: platform-utils/src/manifest/context.ts:319

Parameters
Parameter Type
collectionName string
Returns

ManifestCollectionEntry

getCollections()
getCollections(): ManifestCollectionEntry[];

Defined in: platform-utils/src/manifest/context.ts:200

Returns

ManifestCollectionEntry[]

getCollectionsRecord()
getCollectionsRecord(): Record<string, TCollectionMetadata>;

Defined in: platform-utils/src/manifest/context.ts:204

Returns

Record<string, TCollectionMetadata>

getCollectionTitle()
getCollectionTitle(collectionName): string;

Defined in: platform-utils/src/manifest/context.ts:287

Parameters
Parameter Type
collectionName string
Returns

string

getEnvPublic()
getEnvPublic(): Record<string, string>;

Defined in: platform-utils/src/manifest/context.ts:300

Returns

Record<string, string>

getRecordDisplayLabel()
getRecordDisplayLabel(record, collectionNameOrId): object;

Defined in: platform-utils/src/manifest/context.ts:292

Parameters
Parameter Type
record Record<string, unknown>
collectionNameOrId string
Returns

object

isFallback
isFallback: boolean;
text
text: string;

getRelationship()
getRelationship(relName): ManifestRelationship;

Defined in: platform-utils/src/manifest/context.ts:236

Parameters
Parameter Type
relName string
Returns

ManifestRelationship

getRelationships()
getRelationships(): ManifestRelationship[];

Defined in: platform-utils/src/manifest/context.ts:216

Returns

ManifestRelationship[]

getRelationshipsForCollection()
getRelationshipsForCollection(collectionName): object[];

Defined in: platform-utils/src/manifest/context.ts:224

Parameters
Parameter Type
collectionName string
Returns

object[]

listCollectionNames()
listCollectionNames(): string[];

Defined in: platform-utils/src/manifest/context.ts:315

Returns

string[]

replaceManifest()
replaceManifest(manifest): void;

Defined in: platform-utils/src/manifest/context.ts:179

Parameters
Parameter Type
manifest NorbitalManifest
Returns

void

stripSecretsForClient()
stripSecretsForClient(): NorbitalManifest;

Defined in: platform-utils/src/manifest/context.ts:304

Returns

NorbitalManifest

getRelationshipDirection()
static getRelationshipDirection(rel, currentCollection): object;

Defined in: platform-utils/src/manifest/context.ts:248

Parameters
Parameter Type
rel ManifestRelationship
currentCollection string
Returns

object

isForward
isForward: boolean;
otherCollection
otherCollection: string;

Interfaces

CollectionColumn

Defined in: platform-utils/src/manifest/context.ts:12

Properties

array?
readonly optional array?: boolean;

Defined in: platform-utils/src/manifest/context.ts:15

currencies?
readonly optional currencies?: readonly string[];

Defined in: platform-utils/src/manifest/context.ts:18

dataType
readonly dataType: string;

Defined in: platform-utils/src/manifest/context.ts:13

mimeTypes?
readonly optional mimeTypes?: readonly string[];

Defined in: platform-utils/src/manifest/context.ts:19

notNull
readonly notNull: boolean;

Defined in: platform-utils/src/manifest/context.ts:14

options?
readonly optional options?: Readonly<Record<string, unknown>>;

Defined in: platform-utils/src/manifest/context.ts:17

values?
readonly optional values?: readonly string[];

Defined in: platform-utils/src/manifest/context.ts:16

variant?
readonly optional variant?: NumericRendererVariant;

Defined in: platform-utils/src/manifest/context.ts:20

Type Aliases

CollectionColumnMap

type CollectionColumnMap = Readonly<Record<string, CollectionColumn>>;

Defined in: platform-utils/src/manifest/context.ts:23


ManifestContextInput

type ManifestContextInput = 
  | NorbitalManifest
  | {
  columns?: Readonly<Record<string, CollectionColumnMap>>;
  manifest: NorbitalManifest;
  nodeId?: string;
};

Defined in: platform-utils/src/manifest/context.ts:124

Functions

collectionColumnsFromManifestFields()

function collectionColumnsFromManifestFields(collections): Record<string, CollectionColumnMap>;

Defined in: platform-utils/src/manifest/context.ts:133

Project portable manifest fields into the column map used by agent/UI schema tools.

Parameters

Parameter Type
collections Record<string, ManifestCollectionEntry>

Returns

Record<string, CollectionColumnMap>


resolveRecordDisplayLabel()

function resolveRecordDisplayLabel(
   metadata, 
   record, 
   columns?): object;

Defined in: platform-utils/src/manifest/context.ts:77

Parameters

Parameter Type
metadata | ManifestCollectionEntry | null
record Record<string, unknown>
columns CollectionColumnMap

Returns

object

isFallback
isFallback: boolean;
text
text: string;

resolveRecordLabel()

function resolveRecordLabel(recordLabelExpression, record): string | null;

Defined in: platform-utils/src/manifest/context.ts:111

Parameters

Parameter Type
recordLabelExpression string | null
record object

Returns

string | null