@elyx-code/project-logic-tree 0.0.6906 → 0.0.6909
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +38 -3
- package/dist/index.js +610 -573
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ import { InfrastructureResourceType } from '@elyx-code/definitions';
|
|
|
29
29
|
import { IPublication } from '@elyx-code/definitions';
|
|
30
30
|
import { IRelationalDatabaseDetails } from '@elyx-code/definitions';
|
|
31
31
|
import { IRelationalDatabaseInfrastructureResource } from '@elyx-code/definitions';
|
|
32
|
+
import { IRichProjectRoleDTO } from '@elyx-code/definitions';
|
|
32
33
|
import { IServerlessFunctionDetails } from '@elyx-code/definitions';
|
|
33
34
|
import { IServerlessFunctionInfrastructureResource } from '@elyx-code/definitions';
|
|
34
35
|
import { IWebsocketsClient } from '@elyx-code/common-ts-utils';
|
|
@@ -11899,7 +11900,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
11899
11900
|
get logicLoadingPromise(): Promise<void> | null;
|
|
11900
11901
|
get logic(): ProjectState | null;
|
|
11901
11902
|
get lastPublishedProjectState(): ProjectState | null;
|
|
11902
|
-
get
|
|
11903
|
+
get branchHead(): IActiveBranchHeadResult | null;
|
|
11904
|
+
get branchHeadPromise(): Promise<IActiveBranchHeadResult | null> | null;
|
|
11903
11905
|
get projectId(): EntityId;
|
|
11904
11906
|
get sessionId(): string | null;
|
|
11905
11907
|
get userAuthorId(): string;
|
|
@@ -11918,6 +11920,11 @@ export declare enum BaseValueDescriptorIds {
|
|
|
11918
11920
|
get undoableStackValueIndex(): number;
|
|
11919
11921
|
set undoableStackValueIndex(value: number);
|
|
11920
11922
|
get activeWorkspace(): IWorkspace;
|
|
11923
|
+
get branches(): IBranch[];
|
|
11924
|
+
get roles(): IRichProjectRoleDTO[];
|
|
11925
|
+
get READ_ONLY(): boolean;
|
|
11926
|
+
get isViewingNonHead(): boolean;
|
|
11927
|
+
get canEdit(): boolean;
|
|
11921
11928
|
get PROJECT_NOTIFICATIONS_CHANNEL(): string;
|
|
11922
11929
|
getAccessToken(): Promise<string | null>;
|
|
11923
11930
|
getRefreshToken(): Promise<string | null>;
|
|
@@ -11940,6 +11947,16 @@ export declare enum BaseValueDescriptorIds {
|
|
|
11940
11947
|
getValueTypePreference(valueOwnerId: EntityId): DynamicValueTypes.DefaultValue | DynamicValueTypes.Testing | null;
|
|
11941
11948
|
setValueTypePreference(valueOwnerId: EntityId, valueTypePreference: DynamicValueTypes.DefaultValue | DynamicValueTypes.Testing | null): void;
|
|
11942
11949
|
implementFeature(featureId: string): Promise<PersistChangeSetEntityActionRequestPayload>;
|
|
11950
|
+
getProjectRoles(): Promise<IRichProjectRoleDTO[]>;
|
|
11951
|
+
getLastPublishedVersionLogic(options: {
|
|
11952
|
+
version: string;
|
|
11953
|
+
branchId: string;
|
|
11954
|
+
}): Promise<ProjectState | null>;
|
|
11955
|
+
initialLoads(options: {
|
|
11956
|
+
mockLogic?: ProjectState | undefined;
|
|
11957
|
+
}): Promise<void>;
|
|
11958
|
+
moveBranchHeadToVersion(versionId: string, actionName: string, overrideReadOnly?: boolean): Promise<IActiveBranchHeadResult | null>;
|
|
11959
|
+
loadInitialBranchHead(): Promise<IActiveBranchHeadResult | null>;
|
|
11943
11960
|
}
|
|
11944
11961
|
|
|
11945
11962
|
export declare type DefaultExtensionContext = DefaultEditorContext | DefaultProjectLogicContext | DefaultPublicationRunContext;
|
|
@@ -21255,7 +21272,7 @@ export declare enum BaseValueDescriptorIds {
|
|
|
21255
21272
|
}
|
|
21256
21273
|
|
|
21257
21274
|
export declare interface IActiveBranchHeadResult {
|
|
21258
|
-
|
|
21275
|
+
branchId: string;
|
|
21259
21276
|
headVersion: string;
|
|
21260
21277
|
userAuthor: string;
|
|
21261
21278
|
timestamp: string;
|
|
@@ -22113,7 +22130,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
22113
22130
|
env: IEnvConfig;
|
|
22114
22131
|
logic: ProjectState | null;
|
|
22115
22132
|
lastPublishedProjectState: ProjectState | null;
|
|
22116
|
-
|
|
22133
|
+
branchHead: IActiveBranchHeadResult | null;
|
|
22134
|
+
branchHeadPromise: Promise<IActiveBranchHeadResult | null> | null;
|
|
22117
22135
|
projectId: EntityId;
|
|
22118
22136
|
id: string;
|
|
22119
22137
|
sessionId: string | null;
|
|
@@ -22132,6 +22150,9 @@ export declare enum BaseValueDescriptorIds {
|
|
|
22132
22150
|
publications: PublicationRun[];
|
|
22133
22151
|
liveResources: InfrastructureResource_2[] | null;
|
|
22134
22152
|
activeWorkspace: IWorkspace;
|
|
22153
|
+
branches: IBranch[];
|
|
22154
|
+
roles: IRichProjectRoleDTO[];
|
|
22155
|
+
READ_ONLY: boolean;
|
|
22135
22156
|
onProjectHeadLoadedCallback: null | ((projectState: ProjectState) => void);
|
|
22136
22157
|
onLogicLoadingCompleteCallback: null | ((chunk: any) => void);
|
|
22137
22158
|
onProjectSetupErrorCallback: null | ((error: any) => void);
|
|
@@ -22141,6 +22162,8 @@ export declare enum BaseValueDescriptorIds {
|
|
|
22141
22162
|
get undoableStackValueIndex(): number;
|
|
22142
22163
|
set undoableStackValueIndex(value: number);
|
|
22143
22164
|
get PROJECT_NOTIFICATIONS_CHANNEL(): string;
|
|
22165
|
+
get isViewingNonHead(): boolean;
|
|
22166
|
+
get canEdit(): boolean;
|
|
22144
22167
|
getAccessToken(): Promise<string | null>;
|
|
22145
22168
|
getRefreshToken(): Promise<string | null>;
|
|
22146
22169
|
onProjectHeadLoaded(callback: (projectState: ProjectState) => void): void;
|
|
@@ -22157,11 +22180,19 @@ export declare enum BaseValueDescriptorIds {
|
|
|
22157
22180
|
handleReconnectingWebsocket(): void;
|
|
22158
22181
|
handleChunkedChangeSetMessage(message: PersistChangeSetEntityActionRequestPayload): PersistChangeSetEntityActionRequestPayload | null;
|
|
22159
22182
|
handlePersistChangeSetMessage(message: PersistChangeSetEntityActionRequestPayload): void;
|
|
22183
|
+
getLastPublishedVersionLogic(options: {
|
|
22184
|
+
version: EntityVersion;
|
|
22185
|
+
branchId: string;
|
|
22186
|
+
}): Promise<ProjectState | null>;
|
|
22160
22187
|
getLogic(options?: {
|
|
22161
22188
|
mockLogic?: ProjectState;
|
|
22162
22189
|
}): Promise<ProjectState | null>;
|
|
22190
|
+
initialLoads(options: {
|
|
22191
|
+
mockLogic?: ProjectState;
|
|
22192
|
+
}): Promise<void>;
|
|
22163
22193
|
undo(): Promise<void>;
|
|
22164
22194
|
redo(): Promise<void>;
|
|
22195
|
+
moveBranchHeadToVersion(versionId: EntityVersion, actionName: string, overrideReadOnly?: boolean): Promise<IActiveBranchHeadResult | null>;
|
|
22165
22196
|
on: Events['on'];
|
|
22166
22197
|
emit: Events['emit'];
|
|
22167
22198
|
off: Events['off'];
|
|
@@ -22184,6 +22215,10 @@ export declare enum BaseValueDescriptorIds {
|
|
|
22184
22215
|
requestExtension<T = any>(moduleId: string): IRegisteredExtension<T>;
|
|
22185
22216
|
initRegistry(): Promise<ExtensionsRegistry<any>>;
|
|
22186
22217
|
implementFeature(featureId: string): Promise<PersistChangeSetEntityActionRequestPayload>;
|
|
22218
|
+
loadInitialBranchHead(): Promise<IActiveBranchHeadResult | null>;
|
|
22219
|
+
getProjectRoles(options?: {
|
|
22220
|
+
accessToken?: string;
|
|
22221
|
+
}): Promise<IRichProjectRoleDTO[]>;
|
|
22187
22222
|
}
|
|
22188
22223
|
|
|
22189
22224
|
export declare interface IEditorContext extends ExtensionContextBase<ExtensionContextType.Editor>, Omit<IEditor, 'onLogicLoadingComplete' | 'onLogicLoadingCompleteCallback' | 'onProjectHeadLoaded' | 'onProjectHeadLoadedCallback' | 'onProjectSetupError' | 'onProjectSetupErrorCallback' | 'onRenderedCallback' | 'handleIncommingWebsocketMessage' | 'handleNotificationChannelsMessage' | 'handlePersistChangeSetMessage' | 'handleReconnectingWebsocket' | 'handleChunkedChangeSetMessage' | 'getLogic' | 'injectLocalImplementationOfSearchExecution' | 'setup' | 'destroy' | 'requestExtension' | 'socket' | 'events' | 'initRegistry' | 'extensionsRegistry' | 'on' | 'emit' | 'off' | 'contextType' | 'registerNonDefaultLocalImplementationsOfModules'> {
|