@supernova-studio/client 0.57.10 → 0.57.11
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.d.mts +461 -378
- package/dist/index.d.ts +461 -378
- package/dist/index.js +116 -81
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +116 -81
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/properties/property-values.ts +23 -2
- package/src/api/endpoints/design-system/versions/index.ts +1 -0
- package/src/api/endpoints/design-system/versions/property-values.ts +25 -0
- package/src/api/endpoints/design-system/versions/versions.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -6681,9 +6681,17 @@ var DTOElementPropertyValue = z234.object({
|
|
|
6681
6681
|
value: z234.union([z234.string(), z234.number(), z234.boolean()]).optional(),
|
|
6682
6682
|
valuePreview: z234.string().optional()
|
|
6683
6683
|
});
|
|
6684
|
-
var
|
|
6684
|
+
var DTOElementPropertyValueListResponse = z234.object({
|
|
6685
6685
|
values: z234.array(DTOElementPropertyValue)
|
|
6686
6686
|
});
|
|
6687
|
+
var DTOElementPropertyValueResponse = z234.object({
|
|
6688
|
+
value: DTOElementPropertyValue
|
|
6689
|
+
});
|
|
6690
|
+
var DTOElementPropertyValueUpsertPaylod = z234.object({
|
|
6691
|
+
definitionId: z234.string(),
|
|
6692
|
+
targetElementId: z234.string(),
|
|
6693
|
+
value: z234.string().or(z234.number()).or(z234.boolean())
|
|
6694
|
+
});
|
|
6687
6695
|
|
|
6688
6696
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6689
6697
|
import { z as z235 } from "zod";
|
|
@@ -6982,6 +6990,26 @@ var OverridesEndpoint = class {
|
|
|
6982
6990
|
}
|
|
6983
6991
|
};
|
|
6984
6992
|
|
|
6993
|
+
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
6994
|
+
var ElementPropertyDefinitionsEndpoint = class {
|
|
6995
|
+
constructor(requestExecutor) {
|
|
6996
|
+
this.requestExecutor = requestExecutor;
|
|
6997
|
+
}
|
|
6998
|
+
list(designSystemId, versionId) {
|
|
6999
|
+
return this.requestExecutor.json(
|
|
7000
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions`,
|
|
7001
|
+
DTOElementPropertyDefinitionListResponse
|
|
7002
|
+
);
|
|
7003
|
+
}
|
|
7004
|
+
create(designSystemId, versionId, body) {
|
|
7005
|
+
return this.requestExecutor.json(
|
|
7006
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions`,
|
|
7007
|
+
DTOElementPropertyDefinitionResponse,
|
|
7008
|
+
{ method: "POST", body }
|
|
7009
|
+
);
|
|
7010
|
+
}
|
|
7011
|
+
};
|
|
7012
|
+
|
|
6985
7013
|
// src/api/endpoints/design-system/versions/stats.ts
|
|
6986
7014
|
var VersionStatsEndpoint = class {
|
|
6987
7015
|
constructor(requestExecutor) {
|
|
@@ -7024,6 +7052,19 @@ var ThemesEndpoint = class {
|
|
|
7024
7052
|
}
|
|
7025
7053
|
};
|
|
7026
7054
|
|
|
7055
|
+
// src/api/endpoints/design-system/versions/token-collections.ts
|
|
7056
|
+
var TokenCollectionsEndpoint = class {
|
|
7057
|
+
constructor(requestExecutor) {
|
|
7058
|
+
this.requestExecutor = requestExecutor;
|
|
7059
|
+
}
|
|
7060
|
+
list(designSystemId, versionId) {
|
|
7061
|
+
return this.requestExecutor.json(
|
|
7062
|
+
`/design-systems/${designSystemId}/versions/${versionId}/token-collections`,
|
|
7063
|
+
DTOTokenCollectionsListReponse
|
|
7064
|
+
);
|
|
7065
|
+
}
|
|
7066
|
+
};
|
|
7067
|
+
|
|
7027
7068
|
// src/api/endpoints/design-system/versions/tokens.ts
|
|
7028
7069
|
var TokensEndpoint = class {
|
|
7029
7070
|
constructor(requestExecutor) {
|
|
@@ -7049,6 +7090,52 @@ var TokensEndpoint = class {
|
|
|
7049
7090
|
}
|
|
7050
7091
|
};
|
|
7051
7092
|
|
|
7093
|
+
// src/api/endpoints/design-system/versions/property-values.ts
|
|
7094
|
+
var ElementPropertyValuesEndpoint = class {
|
|
7095
|
+
constructor(requestExecutor) {
|
|
7096
|
+
this.requestExecutor = requestExecutor;
|
|
7097
|
+
}
|
|
7098
|
+
list(designSystemId, versionId) {
|
|
7099
|
+
return this.requestExecutor.json(
|
|
7100
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/values`,
|
|
7101
|
+
DTOElementPropertyValueListResponse
|
|
7102
|
+
);
|
|
7103
|
+
}
|
|
7104
|
+
upsert(designSystemId, versionId, body) {
|
|
7105
|
+
return this.requestExecutor.json(
|
|
7106
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/values`,
|
|
7107
|
+
DTOElementPropertyValueResponse,
|
|
7108
|
+
{ method: "POST", body }
|
|
7109
|
+
);
|
|
7110
|
+
}
|
|
7111
|
+
};
|
|
7112
|
+
|
|
7113
|
+
// src/api/endpoints/design-system/versions/versions.ts
|
|
7114
|
+
var DesignSystemVersionsEndpoint = class {
|
|
7115
|
+
constructor(requestExecutor) {
|
|
7116
|
+
this.requestExecutor = requestExecutor;
|
|
7117
|
+
__publicField(this, "themes");
|
|
7118
|
+
__publicField(this, "brands");
|
|
7119
|
+
__publicField(this, "tokenCollections");
|
|
7120
|
+
__publicField(this, "importJobs");
|
|
7121
|
+
__publicField(this, "tokens");
|
|
7122
|
+
__publicField(this, "stats");
|
|
7123
|
+
__publicField(this, "elementPropertyDefinitions");
|
|
7124
|
+
__publicField(this, "elementPropertyValues");
|
|
7125
|
+
this.themes = new ThemesEndpoint(requestExecutor);
|
|
7126
|
+
this.brands = new BrandsEndpoint(requestExecutor);
|
|
7127
|
+
this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
|
|
7128
|
+
this.importJobs = new ImportJobsEndpoint(requestExecutor);
|
|
7129
|
+
this.tokens = new TokensEndpoint(requestExecutor);
|
|
7130
|
+
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
7131
|
+
this.elementPropertyDefinitions = new ElementPropertyDefinitionsEndpoint(requestExecutor);
|
|
7132
|
+
this.elementPropertyValues = new ElementPropertyValuesEndpoint(requestExecutor);
|
|
7133
|
+
}
|
|
7134
|
+
list(dsId) {
|
|
7135
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
7136
|
+
}
|
|
7137
|
+
};
|
|
7138
|
+
|
|
7052
7139
|
// src/api/endpoints/design-system/bff.ts
|
|
7053
7140
|
var DesignSystemBffEndpoint = class {
|
|
7054
7141
|
constructor(requestExecutor) {
|
|
@@ -7093,63 +7180,6 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7093
7180
|
}
|
|
7094
7181
|
};
|
|
7095
7182
|
|
|
7096
|
-
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7097
|
-
var ElementPropertyDefinitionsEndpoint = class {
|
|
7098
|
-
constructor(requestExecutor) {
|
|
7099
|
-
this.requestExecutor = requestExecutor;
|
|
7100
|
-
}
|
|
7101
|
-
list(designSystemId, versionId) {
|
|
7102
|
-
return this.requestExecutor.json(
|
|
7103
|
-
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions`,
|
|
7104
|
-
DTOElementPropertyDefinitionListResponse
|
|
7105
|
-
);
|
|
7106
|
-
}
|
|
7107
|
-
create(designSystemId, versionId, body) {
|
|
7108
|
-
return this.requestExecutor.json(
|
|
7109
|
-
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions`,
|
|
7110
|
-
DTOElementPropertyDefinitionResponse,
|
|
7111
|
-
{ method: "POST", body }
|
|
7112
|
-
);
|
|
7113
|
-
}
|
|
7114
|
-
};
|
|
7115
|
-
|
|
7116
|
-
// src/api/endpoints/design-system/versions/token-collections.ts
|
|
7117
|
-
var TokenCollectionsEndpoint = class {
|
|
7118
|
-
constructor(requestExecutor) {
|
|
7119
|
-
this.requestExecutor = requestExecutor;
|
|
7120
|
-
}
|
|
7121
|
-
list(designSystemId, versionId) {
|
|
7122
|
-
return this.requestExecutor.json(
|
|
7123
|
-
`/design-systems/${designSystemId}/versions/${versionId}/token-collections`,
|
|
7124
|
-
DTOTokenCollectionsListReponse
|
|
7125
|
-
);
|
|
7126
|
-
}
|
|
7127
|
-
};
|
|
7128
|
-
|
|
7129
|
-
// src/api/endpoints/design-system/versions/versions.ts
|
|
7130
|
-
var DesignSystemVersionsEndpoint = class {
|
|
7131
|
-
constructor(requestExecutor) {
|
|
7132
|
-
this.requestExecutor = requestExecutor;
|
|
7133
|
-
__publicField(this, "themes");
|
|
7134
|
-
__publicField(this, "brands");
|
|
7135
|
-
__publicField(this, "tokenCollections");
|
|
7136
|
-
__publicField(this, "importJobs");
|
|
7137
|
-
__publicField(this, "tokens");
|
|
7138
|
-
__publicField(this, "stats");
|
|
7139
|
-
__publicField(this, "elementPropertyDefinitions");
|
|
7140
|
-
this.themes = new ThemesEndpoint(requestExecutor);
|
|
7141
|
-
this.brands = new BrandsEndpoint(requestExecutor);
|
|
7142
|
-
this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
|
|
7143
|
-
this.importJobs = new ImportJobsEndpoint(requestExecutor);
|
|
7144
|
-
this.tokens = new TokensEndpoint(requestExecutor);
|
|
7145
|
-
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
7146
|
-
this.elementPropertyDefinitions = new ElementPropertyDefinitionsEndpoint(requestExecutor);
|
|
7147
|
-
}
|
|
7148
|
-
list(dsId) {
|
|
7149
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
7150
|
-
}
|
|
7151
|
-
};
|
|
7152
|
-
|
|
7153
7183
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7154
7184
|
var DesignSystemsEndpoint = class {
|
|
7155
7185
|
constructor(requestExecutor) {
|
|
@@ -7189,28 +7219,6 @@ var DesignSystemsEndpoint = class {
|
|
|
7189
7219
|
}
|
|
7190
7220
|
};
|
|
7191
7221
|
|
|
7192
|
-
// src/api/endpoints/users.ts
|
|
7193
|
-
var UsersEndpoint = class {
|
|
7194
|
-
constructor(requestExecutor) {
|
|
7195
|
-
this.requestExecutor = requestExecutor;
|
|
7196
|
-
}
|
|
7197
|
-
getMe() {
|
|
7198
|
-
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
7199
|
-
}
|
|
7200
|
-
listWorkspaces(uid) {
|
|
7201
|
-
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
7202
|
-
}
|
|
7203
|
-
delete(uid) {
|
|
7204
|
-
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
7205
|
-
}
|
|
7206
|
-
updateProfile(uid, body) {
|
|
7207
|
-
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
7208
|
-
method: "PUT",
|
|
7209
|
-
body
|
|
7210
|
-
});
|
|
7211
|
-
}
|
|
7212
|
-
};
|
|
7213
|
-
|
|
7214
7222
|
// src/api/endpoints/workspaces/workspace-invites.ts
|
|
7215
7223
|
var WorkspaceInvitationsEndpoint = class {
|
|
7216
7224
|
constructor(requestExecutor) {
|
|
@@ -7296,6 +7304,28 @@ var WorkspacesEndpoint = class {
|
|
|
7296
7304
|
}
|
|
7297
7305
|
};
|
|
7298
7306
|
|
|
7307
|
+
// src/api/endpoints/users.ts
|
|
7308
|
+
var UsersEndpoint = class {
|
|
7309
|
+
constructor(requestExecutor) {
|
|
7310
|
+
this.requestExecutor = requestExecutor;
|
|
7311
|
+
}
|
|
7312
|
+
getMe() {
|
|
7313
|
+
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
7314
|
+
}
|
|
7315
|
+
listWorkspaces(uid) {
|
|
7316
|
+
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
7317
|
+
}
|
|
7318
|
+
delete(uid) {
|
|
7319
|
+
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
7320
|
+
}
|
|
7321
|
+
updateProfile(uid, body) {
|
|
7322
|
+
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
7323
|
+
method: "PUT",
|
|
7324
|
+
body
|
|
7325
|
+
});
|
|
7326
|
+
}
|
|
7327
|
+
};
|
|
7328
|
+
|
|
7299
7329
|
// src/api/transport/request-executor-error.ts
|
|
7300
7330
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
7301
7331
|
constructor(type, message, errorCode, serverErrorType, cause) {
|
|
@@ -12452,7 +12482,9 @@ export {
|
|
|
12452
12482
|
DTOElementPropertyDefinitionResponse,
|
|
12453
12483
|
DTOElementPropertyDefinitionUpdatePayload,
|
|
12454
12484
|
DTOElementPropertyValue,
|
|
12455
|
-
|
|
12485
|
+
DTOElementPropertyValueListResponse,
|
|
12486
|
+
DTOElementPropertyValueResponse,
|
|
12487
|
+
DTOElementPropertyValueUpsertPaylod,
|
|
12456
12488
|
DTOElementView,
|
|
12457
12489
|
DTOElementViewBasePropertyColumn,
|
|
12458
12490
|
DTOElementViewColumn,
|
|
@@ -12582,11 +12614,13 @@ export {
|
|
|
12582
12614
|
DesignSystemBffEndpoint,
|
|
12583
12615
|
DesignSystemMembersEndpoint,
|
|
12584
12616
|
DesignSystemSourcesEndpoint,
|
|
12617
|
+
DesignSystemVersionsEndpoint,
|
|
12585
12618
|
DesignSystemsEndpoint,
|
|
12586
12619
|
DimensionsVariableScopeType,
|
|
12587
12620
|
DocumentationHierarchySettings,
|
|
12588
12621
|
DocumentationPageEditorModel,
|
|
12589
12622
|
DocumentationPageV1DTO,
|
|
12623
|
+
ElementPropertyDefinitionsEndpoint,
|
|
12590
12624
|
ExportersEndpoint,
|
|
12591
12625
|
FormattedCollections,
|
|
12592
12626
|
FrontendVersionRoomYDoc,
|
|
@@ -12606,6 +12640,7 @@ export {
|
|
|
12606
12640
|
StringVariableScopeType,
|
|
12607
12641
|
SupernovaApiClient,
|
|
12608
12642
|
ThemesEndpoint,
|
|
12643
|
+
TokenCollectionsEndpoint,
|
|
12609
12644
|
TokensEndpoint,
|
|
12610
12645
|
UsersEndpoint,
|
|
12611
12646
|
Variable,
|