@supernova-studio/supernova-sdk-beta 2.2.4 → 2.2.6
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/build/sdk-typescript/src/core/SDKSupernova.d.ts +0 -3
- package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +14 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +8 -7
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +0 -35
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +15 -42
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +2 -13
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +11 -7
- package/build/sdk-typescript/src/exports.d.ts +1 -0
- package/build/sdk-typescript/src/model/enums/SDKSourceType.d.ts +2 -1
- package/build/sdk-typescript/src/model/storybook/SDKStorybookEntry.d.ts +23 -0
- package/build/sdk-typescript/src/model/support/SDKSource.d.ts +20 -1
- package/build/sdk-typescript/src/model/support/SDKTokenOrigin.d.ts +2 -2
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +3 -3
- package/build/sdk-typescript/src/core/areas/SDKAreaProjects.d.ts +0 -69
- package/build/sdk-typescript/src/model/projects/SDKProject.d.ts +0 -39
- package/build/sdk-typescript/src/model/projects/SDKProjectContext.d.ts +0 -47
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supernova-studio/supernova-sdk-beta",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "Supernova.io SDK",
|
|
5
5
|
"main": "./build/supernova-sdk-typescript.js",
|
|
6
6
|
"types": "./build/sdk-typescript/src/index.d.ts",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"node": ">=8.9"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@supernova-studio/client": "1.
|
|
63
|
-
"@supernova-studio/model": "1.
|
|
62
|
+
"@supernova-studio/client": "1.6.2",
|
|
63
|
+
"@supernova-studio/model": "1.6.2",
|
|
64
64
|
"abab": "^2.0.5",
|
|
65
65
|
"async-mutex": "^0.3.1",
|
|
66
66
|
"color-string": "^1.9.1",
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { SDKProject } from "../../model/projects/SDKProject";
|
|
2
|
-
import { SDKProjectContext, SDKProjectContextCreationModel } from "../../model/projects/SDKProjectContext";
|
|
3
|
-
import { DataCore } from "../data/SDKDataCore";
|
|
4
|
-
/**
|
|
5
|
-
* Manages project-related operations within a workspace using untyped data storage.
|
|
6
|
-
*/
|
|
7
|
-
export declare class AreaProjects {
|
|
8
|
-
/** Internal reference to DataCore for data operations */
|
|
9
|
-
private dataCore;
|
|
10
|
-
/** Key under which all projects are stored */
|
|
11
|
-
private readonly PROJECTS_KEY;
|
|
12
|
-
/** Key under which all project contexts are stored */
|
|
13
|
-
private readonly PROJECT_CONTEXTS_KEY;
|
|
14
|
-
constructor(dataCore: DataCore);
|
|
15
|
-
/**
|
|
16
|
-
* Fetches all projects for a given workspace.
|
|
17
|
-
* @param workspaceId - The ID of the workspace.
|
|
18
|
-
* @returns A promise resolving to an array of SDKProject instances.
|
|
19
|
-
*/
|
|
20
|
-
getAllProjects(workspaceId: string): Promise<SDKProject[]>;
|
|
21
|
-
/**
|
|
22
|
-
* Creates a new project in the specified workspace.
|
|
23
|
-
* @param workspaceId - The ID of the workspace.
|
|
24
|
-
* @param name - The name of the new project.
|
|
25
|
-
* @returns A promise resolving to the created SDKProject instance.
|
|
26
|
-
*/
|
|
27
|
-
createProject(workspaceId: string, name: string, contextId: string): Promise<SDKProject>;
|
|
28
|
-
/**
|
|
29
|
-
* Updates an existing project in the specified workspace.
|
|
30
|
-
* @param workspaceId - The ID of the workspace.
|
|
31
|
-
* @param updatedProject - The updated SDKProject instance.
|
|
32
|
-
* @returns A promise that resolves when the update is complete.
|
|
33
|
-
* @throws Error if the project is not found.
|
|
34
|
-
*/
|
|
35
|
-
updateProject(workspaceId: string, updatedProject: SDKProject): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Deletes a project from the specified workspace.
|
|
38
|
-
* @param workspaceId - The ID of the workspace.
|
|
39
|
-
* @param projectId - The ID of the project to delete.
|
|
40
|
-
* @returns A promise that resolves when the deletion is complete.
|
|
41
|
-
*/
|
|
42
|
-
deleteProject(workspaceId: string, projectId: string): Promise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* Retrieves all project contexts in a workspace.
|
|
45
|
-
* @param workspaceId - The ID of the workspace.
|
|
46
|
-
* @returns An array of SDKProjectContext instances.
|
|
47
|
-
*/
|
|
48
|
-
getAllProjectContexts(workspaceId: string): Promise<SDKProjectContext[]>;
|
|
49
|
-
/**
|
|
50
|
-
* Creates a new project context.
|
|
51
|
-
* @param workspaceId - The ID of the workspace.
|
|
52
|
-
* @param creationModel - The properties for the new context.
|
|
53
|
-
* @returns The created SDKProjectContext instance.
|
|
54
|
-
*/
|
|
55
|
-
createProjectContext(workspaceId: string, creationModel: SDKProjectContextCreationModel): Promise<SDKProjectContext>;
|
|
56
|
-
/**
|
|
57
|
-
* Updates an existing project context.
|
|
58
|
-
* @param workspaceId - The ID of the workspace.
|
|
59
|
-
* @param updatedContext - The updated context instance.
|
|
60
|
-
* @throws Error if the context is not found.
|
|
61
|
-
*/
|
|
62
|
-
updateProjectContext(workspaceId: string, updatedContext: SDKProjectContext): Promise<void>;
|
|
63
|
-
/**
|
|
64
|
-
* Deletes a project context.
|
|
65
|
-
* @param workspaceId - The ID of the workspace.
|
|
66
|
-
* @param contextId - The ID of the context to delete.
|
|
67
|
-
*/
|
|
68
|
-
deleteProjectContext(workspaceId: string, contextId: string): Promise<void>;
|
|
69
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export type SDKProjectRemoteModel = {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
createdAt: string;
|
|
5
|
-
contextId: string;
|
|
6
|
-
};
|
|
7
|
-
export type SDKProjectTransportModel = {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
createdAt: string;
|
|
11
|
-
contextId: string;
|
|
12
|
-
};
|
|
13
|
-
export declare class SDKProject {
|
|
14
|
-
/** Unique identifier of the project */
|
|
15
|
-
id: string;
|
|
16
|
-
/** Name of the project */
|
|
17
|
-
name: string;
|
|
18
|
-
/** Date and time when the project was created */
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
/** Unique identifier of the project context */
|
|
21
|
-
contextId: string;
|
|
22
|
-
constructor(model: SDKProjectRemoteModel);
|
|
23
|
-
/**
|
|
24
|
-
* Constructs a representation suitable for remote storage.
|
|
25
|
-
* @returns The remote model of the project.
|
|
26
|
-
*/
|
|
27
|
-
toRemote(): SDKProjectRemoteModel;
|
|
28
|
-
/**
|
|
29
|
-
* Constructs a representation that can be serialized to JSON for transport.
|
|
30
|
-
* @returns The transport model of the project.
|
|
31
|
-
*/
|
|
32
|
-
toTransport(): SDKProjectTransportModel;
|
|
33
|
-
/**
|
|
34
|
-
* Reconstructs an SDKProject instance from a transport model.
|
|
35
|
-
* @param model - The transport model to deserialize.
|
|
36
|
-
* @returns A new SDKProject instance.
|
|
37
|
-
*/
|
|
38
|
-
static fromTransport(model: SDKProjectTransportModel): SDKProject;
|
|
39
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export type SDKProjectContextRemoteModel = {
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
designSystemId: string;
|
|
6
|
-
dependencies: Array<string>;
|
|
7
|
-
npmProxyRegistry?: object;
|
|
8
|
-
};
|
|
9
|
-
export type SDKProjectContextTransportModel = {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
designSystemId: string;
|
|
14
|
-
dependencies: Array<string>;
|
|
15
|
-
npmProxyRegistry?: object;
|
|
16
|
-
};
|
|
17
|
-
export interface SDKProjectContextCreationModel {
|
|
18
|
-
name: string;
|
|
19
|
-
description?: string;
|
|
20
|
-
designSystemId: string;
|
|
21
|
-
dependencies: Array<string>;
|
|
22
|
-
npmProxyRegistry?: object;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Represents a project context containing repository and technology information.
|
|
26
|
-
*/
|
|
27
|
-
export declare class SDKProjectContext {
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
description: string | undefined;
|
|
31
|
-
designSystemId: string;
|
|
32
|
-
dependencies: Array<string>;
|
|
33
|
-
npmProxyRegistry: object | undefined;
|
|
34
|
-
constructor(model: SDKProjectContextRemoteModel);
|
|
35
|
-
/**
|
|
36
|
-
* Converts the context to a remote model for storage.
|
|
37
|
-
*/
|
|
38
|
-
toRemote(): SDKProjectContextRemoteModel;
|
|
39
|
-
/**
|
|
40
|
-
* Converts the context to a transport model for serialization.
|
|
41
|
-
*/
|
|
42
|
-
toTransport(): SDKProjectContextTransportModel;
|
|
43
|
-
/**
|
|
44
|
-
* Creates an instance from a transport model.
|
|
45
|
-
*/
|
|
46
|
-
static fromTransport(model: SDKProjectContextTransportModel): SDKProjectContext;
|
|
47
|
-
}
|