Skip to content

Commit 54afeee

Browse files
committed
Checking out to lib
1 parent 92808a2 commit 54afeee

102 files changed

Lines changed: 3364 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
22
coverage
33
dist
4-
lib
54
.gcd

lib/HDSModel/HDSItemDef.d.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
export declare class HDSItemDef {
2+
#private;
3+
constructor(key: string, definitionData: any);
4+
get eventTypes(): string[];
5+
get key(): string;
6+
get data(): any;
7+
/** label Localized */
8+
get label(): string;
9+
/** description Localized */
10+
get description(): string;
11+
/**
12+
* a template event with eventType and streamIds
13+
* // TODO handle variations
14+
*/
15+
eventTemplate(): {
16+
streamId: string;
17+
type: string;
18+
};
19+
}
20+
//# sourceMappingURL=HDSItemDef.d.ts.map

lib/HDSModel/HDSItemDef.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/HDSModel/HDSItemDef.js

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/HDSModel/HDSItemDef.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { HDSModel } from './HDSModel';
2+
export type AuthorizationRequestItem = {
3+
streamId: string;
4+
level: string;
5+
defaultName: string;
6+
};
7+
export type AuthorizationPreRequestItem = {
8+
streamId: string;
9+
level?: string;
10+
defaultName?: string;
11+
};
12+
/**
13+
* Authorizations - Extension of HDSModel
14+
*/
15+
export declare class HDSModelAuthorizations {
16+
#private;
17+
constructor(model: HDSModel);
18+
/**
19+
* Get minimal Authorization set for itemKeys
20+
* /!\ Does not handle requests with streamId = "*"
21+
*/
22+
forItemKeys(itemKeys: string[], options?: {
23+
defaultLevel?: string;
24+
includeDefaultName?: boolean;
25+
preRequest?: Array<AuthorizationPreRequestItem>;
26+
}): Array<AuthorizationRequestItem>;
27+
}
28+
//# sourceMappingURL=HDSModel-Authorizations.d.ts.map

lib/HDSModel/HDSModel-Authorizations.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/HDSModel/HDSModel-Authorizations.js

Lines changed: 115 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/HDSModel/HDSModel-Authorizations.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { HDSItemDef } from './HDSItemDef';
2+
import { HDSModel } from './HDSModel';
3+
/**
4+
* ItemsDefs - Extension of HDSModel
5+
*/
6+
export declare class HDSModelItemsDefs {
7+
#private;
8+
constructor(model: HDSModel);
9+
/**
10+
* get all itemDefs
11+
*/
12+
getAll(): HDSItemDef[];
13+
/**
14+
* get item for a key
15+
*/
16+
forKey(key: string, throwErrorIfNotFound?: boolean): HDSItemDef | null;
17+
/**
18+
* get a definition for an event
19+
*/
20+
forEvent(event: any, throwErrorIfNotFound?: boolean): HDSItemDef | null;
21+
}
22+
//# sourceMappingURL=HDSModel-ItemsDefs.d.ts.map

0 commit comments

Comments
 (0)