@supernova-studio/supernova-sdk-beta 1.6.18 → 1.6.20
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 +5 -5
- package/build/sdk-typescript/src/core/areas/{SDKAreaPipelines.d.ts → SDKAreaAutomation.d.ts} +10 -2
- package/build/sdk-typescript/src/core/areas/SDKAreaBrands.d.ts +18 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +23 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaDesignSystems.d.ts +23 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +25 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaVersions.d.ts +20 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +15 -1
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +51 -6
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +8 -3
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +40 -4
- package/build/sdk-typescript/src/exports.d.ts +1 -0
- package/build/sdk-typescript/src/model/base/SDKBrand.d.ts +5 -1
- package/build/sdk-typescript/src/model/base/SDKDesignSystemVersion.d.ts +5 -0
- package/build/sdk-typescript/src/model/enums/SDKImportJobOperation.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKImportJobState.d.ts +6 -0
- package/build/sdk-typescript/src/model/jobs/SDKImportJob.d.ts +35 -0
- package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +1 -1
- package/build/sdk-typescript/src/model/support/SDKSource.d.ts +76 -70
- package/build/sdk-typescript/src/model/users/SDKUser.d.ts +14 -0
- package/build/sdk-typescript/src/model/users/SDKUserMembership.d.ts +18 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIPWhitelistSettings.d.ts +1 -1
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSSOSettings.d.ts +2 -2
- package/build/sdk-typescript/src/tests/Areas/AreaDesignSystems.spec.d.ts +1 -0
- package/build/supernova-sdk-typescript.js +925 -259
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,67 +9,29 @@ export type SourceRemoteModel = {
|
|
|
9
9
|
fileId: string;
|
|
10
10
|
lastImportedAt?: string;
|
|
11
11
|
};
|
|
12
|
-
cloud?:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
fileThumbnailUrl?: string;
|
|
16
|
-
lastUpdatesCheckedAt?: string;
|
|
17
|
-
lastImportedVersion?: {
|
|
18
|
-
id: string;
|
|
19
|
-
created_at: string;
|
|
20
|
-
label?: string;
|
|
21
|
-
description: string;
|
|
22
|
-
};
|
|
23
|
-
lastImportedAt?: string;
|
|
24
|
-
lastImportResult?: {
|
|
25
|
-
sourceId: string;
|
|
26
|
-
brandId: string;
|
|
27
|
-
tokensCreated: number;
|
|
28
|
-
tokensUpdated: number;
|
|
29
|
-
tokensDeleted: number;
|
|
30
|
-
componentsCreated: number;
|
|
31
|
-
componentsUpdated: number;
|
|
32
|
-
componentsDeleted: number;
|
|
33
|
-
componentAssetsCreated: number;
|
|
34
|
-
componentAssetsUpdated: number;
|
|
35
|
-
componentAssetsDeleted: number;
|
|
36
|
-
isFailed: boolean;
|
|
37
|
-
versionId: string;
|
|
38
|
-
fileSize?: number;
|
|
39
|
-
};
|
|
40
|
-
lastImportFramesResult?: {
|
|
41
|
-
sourceId: string;
|
|
42
|
-
isFailed: string;
|
|
43
|
-
error?: string;
|
|
44
|
-
assetsInFile?: {
|
|
45
|
-
frames: number;
|
|
46
|
-
components: number;
|
|
47
|
-
};
|
|
48
|
-
invalidReferencesCount?: number;
|
|
49
|
-
};
|
|
50
|
-
ownerId: string;
|
|
51
|
-
ownerUserName: string;
|
|
52
|
-
state: string;
|
|
53
|
-
};
|
|
12
|
+
cloud?: SourceRemoteModelCloud;
|
|
13
|
+
tokenStudio?: SourceRemoteModelTokensStudio;
|
|
14
|
+
scope: SourceScope;
|
|
54
15
|
};
|
|
55
|
-
export type
|
|
56
|
-
|
|
57
|
-
|
|
16
|
+
export type SourceScope = {
|
|
17
|
+
tokens: boolean;
|
|
18
|
+
components: boolean;
|
|
19
|
+
assets: boolean;
|
|
20
|
+
documentationFrames: boolean;
|
|
58
21
|
};
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
fileThumbnailUrl: string | null;
|
|
66
|
-
lastImportedVersion: {
|
|
22
|
+
export type SourceRemoteModelCloud = {
|
|
23
|
+
fileId?: string;
|
|
24
|
+
autoImportMode: "Never" | "Hourly";
|
|
25
|
+
fileThumbnailUrl?: string;
|
|
26
|
+
lastUpdatesCheckedAt?: string;
|
|
27
|
+
lastImportedVersion?: {
|
|
67
28
|
id: string;
|
|
68
29
|
created_at: string;
|
|
69
|
-
label
|
|
30
|
+
label?: string;
|
|
70
31
|
description: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
32
|
+
};
|
|
33
|
+
lastImportedAt?: string;
|
|
34
|
+
lastImportResult?: {
|
|
73
35
|
sourceId: string;
|
|
74
36
|
brandId: string;
|
|
75
37
|
tokensCreated: number;
|
|
@@ -83,30 +45,74 @@ export declare class Source {
|
|
|
83
45
|
componentAssetsDeleted: number;
|
|
84
46
|
isFailed: boolean;
|
|
85
47
|
versionId: string;
|
|
86
|
-
fileSize
|
|
87
|
-
|
|
88
|
-
|
|
48
|
+
fileSize?: number;
|
|
49
|
+
warnings?: Array<{
|
|
50
|
+
warningType: string;
|
|
51
|
+
}>;
|
|
52
|
+
};
|
|
53
|
+
lastImportFramesResult?: {
|
|
89
54
|
sourceId: string;
|
|
90
55
|
isFailed: string;
|
|
91
|
-
error
|
|
92
|
-
assetsInFile
|
|
56
|
+
error?: string;
|
|
57
|
+
assetsInFile?: {
|
|
93
58
|
frames: number;
|
|
94
59
|
components: number;
|
|
95
|
-
}
|
|
96
|
-
invalidReferencesCount
|
|
97
|
-
}
|
|
98
|
-
ownerId: string
|
|
99
|
-
ownerUserName: string
|
|
100
|
-
state: string
|
|
60
|
+
};
|
|
61
|
+
invalidReferencesCount?: number;
|
|
62
|
+
};
|
|
63
|
+
ownerId: string;
|
|
64
|
+
ownerUserName: string;
|
|
65
|
+
state: string;
|
|
66
|
+
};
|
|
67
|
+
export type SourceRemoteModelTokensStudio = {
|
|
68
|
+
connectionName: string;
|
|
69
|
+
lastImportedAt?: string;
|
|
70
|
+
settings?: {
|
|
71
|
+
dryRun?: boolean;
|
|
72
|
+
verbose?: boolean;
|
|
73
|
+
preciseCopy?: boolean;
|
|
74
|
+
};
|
|
75
|
+
lastImportedResults?: Array<{
|
|
76
|
+
mapping: {
|
|
77
|
+
tokensTheme?: string;
|
|
78
|
+
tokenSets?: string[];
|
|
79
|
+
supernovaBrand?: string;
|
|
80
|
+
supernovaTheme?: string;
|
|
81
|
+
};
|
|
82
|
+
tokensCreated: number;
|
|
83
|
+
tokensUpdated: number;
|
|
84
|
+
tokensDeleted: number;
|
|
85
|
+
isFailed: boolean;
|
|
86
|
+
error?: string;
|
|
87
|
+
themeId?: string;
|
|
88
|
+
}>;
|
|
89
|
+
};
|
|
90
|
+
export type SourceModelTokenStudio = Omit<SourceRemoteModelTokensStudio, "lastUpdatesCheckedAt" | "lastImportedAt"> & {
|
|
91
|
+
lastUpdatesCheckedAt?: Date;
|
|
92
|
+
lastImportedAt?: Date;
|
|
93
|
+
};
|
|
94
|
+
export type SourceModelCloud = Omit<SourceRemoteModelCloud, "lastUpdatesCheckedAt" | "lastImportedAt"> & {
|
|
95
|
+
lastUpdatesCheckedAt?: Date;
|
|
96
|
+
lastImportedAt?: Date;
|
|
97
|
+
};
|
|
98
|
+
export type SourceTransportModel = Pick<Source, "type" | "id" | "fileName" | "linkType" | "brandId" | "scope"> & {
|
|
99
|
+
cloud?: SourceRemoteModelCloud | null;
|
|
100
|
+
};
|
|
101
|
+
export declare class Source {
|
|
102
|
+
type: SourceType;
|
|
103
|
+
id: string;
|
|
104
|
+
fileName: string | null;
|
|
101
105
|
linkType: "Design" | "Frames";
|
|
102
106
|
brandId: string | null;
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
cloud: SourceModelCloud | null;
|
|
108
|
+
tokenStudio?: SourceModelTokenStudio | null;
|
|
109
|
+
scope: SourceScope;
|
|
110
|
+
get hasError(): boolean;
|
|
105
111
|
constructor(model: SourceRemoteModel);
|
|
106
112
|
/** Constructs representation that can be used to write full object to remote */
|
|
107
113
|
toRemote(): SourceRemoteModel;
|
|
108
114
|
/** Constructs representation that can be used to transport the instantiated object as JSON, for example for SSR <> Client use-cases. Reconstruct to class instance using `fromTransport` */
|
|
109
115
|
toTransport(): SourceTransportModel;
|
|
110
116
|
/** Reconstructs class from the transport model */
|
|
111
|
-
static fromTransport(model: SourceTransportModel):
|
|
117
|
+
static fromTransport(model: SourceTransportModel): SourceRemoteModel;
|
|
112
118
|
}
|
|
@@ -4,10 +4,21 @@ export type UserRemoteModel = {
|
|
|
4
4
|
email: string;
|
|
5
5
|
createdAt: string;
|
|
6
6
|
profile: UserProfileRemoteModel;
|
|
7
|
+
linkedIntegrations?: LinkedIntegrations;
|
|
8
|
+
};
|
|
9
|
+
export type LinkedIntegrations = {
|
|
10
|
+
figma?: UserLinkedIntegration;
|
|
11
|
+
};
|
|
12
|
+
type UserLinkedIntegration = {
|
|
13
|
+
id: string;
|
|
14
|
+
email?: string;
|
|
15
|
+
handle?: string;
|
|
16
|
+
avatarUrl?: string;
|
|
7
17
|
};
|
|
8
18
|
export type UserTransportModel = Pick<User, "id" | "email"> & {
|
|
9
19
|
createdAt: string;
|
|
10
20
|
profile: UserProfileTransportModel;
|
|
21
|
+
linkedIntegrations?: LinkedIntegrations;
|
|
11
22
|
};
|
|
12
23
|
export type UserAvatarUpdateModel = {
|
|
13
24
|
avatar?: string;
|
|
@@ -21,6 +32,8 @@ export declare class User {
|
|
|
21
32
|
createdAt: Date | null;
|
|
22
33
|
/** User profile */
|
|
23
34
|
profile: UserProfile;
|
|
35
|
+
/** Linked integrations */
|
|
36
|
+
linkedIntegrations: LinkedIntegrations | null;
|
|
24
37
|
constructor(model: UserRemoteModel);
|
|
25
38
|
/** Constructs representation that can be used to write full object to remote */
|
|
26
39
|
toRemote(): UserRemoteModel;
|
|
@@ -29,3 +42,4 @@ export declare class User {
|
|
|
29
42
|
/** Reconstructs class from the transport model */
|
|
30
43
|
static fromTransport(model: UserTransportModel): User;
|
|
31
44
|
}
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UserRole } from "../enums/SDKUserRole";
|
|
2
|
+
import { User, UserRemoteModel } from "./SDKUser";
|
|
3
|
+
export type UserMembershipRemoteModel = {
|
|
4
|
+
user: UserRemoteModel;
|
|
5
|
+
role: UserRole;
|
|
6
|
+
effectiveRole: UserRole;
|
|
7
|
+
};
|
|
8
|
+
export declare class UserMembership {
|
|
9
|
+
/** Full user object */
|
|
10
|
+
user: User;
|
|
11
|
+
/** Role of the user in the workspace */
|
|
12
|
+
role: UserRole;
|
|
13
|
+
/** Role of the user in the workspace */
|
|
14
|
+
effectiveRole: UserRole;
|
|
15
|
+
constructor(model: UserMembershipRemoteModel);
|
|
16
|
+
/** Constructs representation that can be used to write full object to remote */
|
|
17
|
+
toRemote(): UserMembershipRemoteModel;
|
|
18
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type WorkspaceSSOSettingsRemoteModel = {
|
|
2
2
|
providerId: string;
|
|
3
3
|
defaultAutoInviteValue: boolean;
|
|
4
|
-
autoInviteDomains: string
|
|
4
|
+
autoInviteDomains: Record<string, boolean>;
|
|
5
5
|
};
|
|
6
6
|
export type WorkspaceSSOSettingsUpdateModel = WorkspaceSSOSettingsRemoteModel;
|
|
7
7
|
export type WorkspaceSSOSettingsTransportModel = WorkspaceSSOSettingsRemoteModel;
|
|
8
8
|
export declare class WorkspaceSSOSettings {
|
|
9
9
|
providerId: string;
|
|
10
10
|
defaultAutoInviteValue: boolean;
|
|
11
|
-
autoInviteDomains: string
|
|
11
|
+
autoInviteDomains: Record<string, boolean>;
|
|
12
12
|
constructor(model: WorkspaceSSOSettingsRemoteModel);
|
|
13
13
|
toUpdateObject(): WorkspaceSSOSettingsUpdateModel;
|
|
14
14
|
toRemote(): WorkspaceSSOSettingsTransportModel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|