@supernova-studio/client 0.57.10 → 0.57.12
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 +857 -378
- package/dist/index.d.ts +857 -378
- package/dist/index.js +121 -81
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +121 -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
|
@@ -4092,6 +4092,7 @@ var ExporterDestinationGithub = z144.object({
|
|
|
4092
4092
|
// Location
|
|
4093
4093
|
branch: z144.string(),
|
|
4094
4094
|
relativePath: nullishToOptional(z144.string()),
|
|
4095
|
+
purgeDirectory: nullishToOptional(z144.boolean()),
|
|
4095
4096
|
// Commit metadata
|
|
4096
4097
|
commitAuthorName: nullishToOptional(z144.string()),
|
|
4097
4098
|
commitAuthorEmail: nullishToOptional(z144.string()),
|
|
@@ -4111,6 +4112,7 @@ var ExporterDestinationAzure = z144.object({
|
|
|
4111
4112
|
// Location
|
|
4112
4113
|
branch: z144.string(),
|
|
4113
4114
|
relativePath: nullishToOptional(z144.string()),
|
|
4115
|
+
purgeDirectory: nullishToOptional(z144.boolean()),
|
|
4114
4116
|
// Maybe not needed
|
|
4115
4117
|
url: nullishToOptional(z144.string()),
|
|
4116
4118
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
@@ -4127,6 +4129,7 @@ var ExporterDestinationGitlab = z144.object({
|
|
|
4127
4129
|
// Location
|
|
4128
4130
|
branch: z144.string(),
|
|
4129
4131
|
relativePath: nullishToOptional(z144.string()),
|
|
4132
|
+
purgeDirectory: nullishToOptional(z144.boolean()),
|
|
4130
4133
|
// Maybe not needed
|
|
4131
4134
|
url: nullishToOptional(z144.string()),
|
|
4132
4135
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
@@ -4145,6 +4148,7 @@ var ExporterDestinationBitbucket = z144.object({
|
|
|
4145
4148
|
// Location
|
|
4146
4149
|
branch: z144.string(),
|
|
4147
4150
|
relativePath: nullishToOptional(z144.string()),
|
|
4151
|
+
purgeDirectory: nullishToOptional(z144.boolean()),
|
|
4148
4152
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4149
4153
|
connectionId: nullishToOptional(z144.string()),
|
|
4150
4154
|
userId: nullishToOptional(z144.number())
|
|
@@ -6681,9 +6685,17 @@ var DTOElementPropertyValue = z234.object({
|
|
|
6681
6685
|
value: z234.union([z234.string(), z234.number(), z234.boolean()]).optional(),
|
|
6682
6686
|
valuePreview: z234.string().optional()
|
|
6683
6687
|
});
|
|
6684
|
-
var
|
|
6688
|
+
var DTOElementPropertyValueListResponse = z234.object({
|
|
6685
6689
|
values: z234.array(DTOElementPropertyValue)
|
|
6686
6690
|
});
|
|
6691
|
+
var DTOElementPropertyValueResponse = z234.object({
|
|
6692
|
+
value: DTOElementPropertyValue
|
|
6693
|
+
});
|
|
6694
|
+
var DTOElementPropertyValueUpsertPaylod = z234.object({
|
|
6695
|
+
definitionId: z234.string(),
|
|
6696
|
+
targetElementId: z234.string(),
|
|
6697
|
+
value: z234.string().or(z234.number()).or(z234.boolean())
|
|
6698
|
+
});
|
|
6687
6699
|
|
|
6688
6700
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6689
6701
|
import { z as z235 } from "zod";
|
|
@@ -6982,6 +6994,46 @@ var OverridesEndpoint = class {
|
|
|
6982
6994
|
}
|
|
6983
6995
|
};
|
|
6984
6996
|
|
|
6997
|
+
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
6998
|
+
var ElementPropertyDefinitionsEndpoint = class {
|
|
6999
|
+
constructor(requestExecutor) {
|
|
7000
|
+
this.requestExecutor = requestExecutor;
|
|
7001
|
+
}
|
|
7002
|
+
list(designSystemId, versionId) {
|
|
7003
|
+
return this.requestExecutor.json(
|
|
7004
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions`,
|
|
7005
|
+
DTOElementPropertyDefinitionListResponse
|
|
7006
|
+
);
|
|
7007
|
+
}
|
|
7008
|
+
create(designSystemId, versionId, body) {
|
|
7009
|
+
return this.requestExecutor.json(
|
|
7010
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions`,
|
|
7011
|
+
DTOElementPropertyDefinitionResponse,
|
|
7012
|
+
{ method: "POST", body }
|
|
7013
|
+
);
|
|
7014
|
+
}
|
|
7015
|
+
};
|
|
7016
|
+
|
|
7017
|
+
// src/api/endpoints/design-system/versions/property-values.ts
|
|
7018
|
+
var ElementPropertyValuesEndpoint = class {
|
|
7019
|
+
constructor(requestExecutor) {
|
|
7020
|
+
this.requestExecutor = requestExecutor;
|
|
7021
|
+
}
|
|
7022
|
+
list(designSystemId, versionId) {
|
|
7023
|
+
return this.requestExecutor.json(
|
|
7024
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/values`,
|
|
7025
|
+
DTOElementPropertyValueListResponse
|
|
7026
|
+
);
|
|
7027
|
+
}
|
|
7028
|
+
upsert(designSystemId, versionId, body) {
|
|
7029
|
+
return this.requestExecutor.json(
|
|
7030
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/values`,
|
|
7031
|
+
DTOElementPropertyValueResponse,
|
|
7032
|
+
{ method: "POST", body }
|
|
7033
|
+
);
|
|
7034
|
+
}
|
|
7035
|
+
};
|
|
7036
|
+
|
|
6985
7037
|
// src/api/endpoints/design-system/versions/stats.ts
|
|
6986
7038
|
var VersionStatsEndpoint = class {
|
|
6987
7039
|
constructor(requestExecutor) {
|
|
@@ -7024,6 +7076,19 @@ var ThemesEndpoint = class {
|
|
|
7024
7076
|
}
|
|
7025
7077
|
};
|
|
7026
7078
|
|
|
7079
|
+
// src/api/endpoints/design-system/versions/token-collections.ts
|
|
7080
|
+
var TokenCollectionsEndpoint = class {
|
|
7081
|
+
constructor(requestExecutor) {
|
|
7082
|
+
this.requestExecutor = requestExecutor;
|
|
7083
|
+
}
|
|
7084
|
+
list(designSystemId, versionId) {
|
|
7085
|
+
return this.requestExecutor.json(
|
|
7086
|
+
`/design-systems/${designSystemId}/versions/${versionId}/token-collections`,
|
|
7087
|
+
DTOTokenCollectionsListReponse
|
|
7088
|
+
);
|
|
7089
|
+
}
|
|
7090
|
+
};
|
|
7091
|
+
|
|
7027
7092
|
// src/api/endpoints/design-system/versions/tokens.ts
|
|
7028
7093
|
var TokensEndpoint = class {
|
|
7029
7094
|
constructor(requestExecutor) {
|
|
@@ -7049,6 +7114,32 @@ var TokensEndpoint = class {
|
|
|
7049
7114
|
}
|
|
7050
7115
|
};
|
|
7051
7116
|
|
|
7117
|
+
// src/api/endpoints/design-system/versions/versions.ts
|
|
7118
|
+
var DesignSystemVersionsEndpoint = class {
|
|
7119
|
+
constructor(requestExecutor) {
|
|
7120
|
+
this.requestExecutor = requestExecutor;
|
|
7121
|
+
__publicField(this, "themes");
|
|
7122
|
+
__publicField(this, "brands");
|
|
7123
|
+
__publicField(this, "tokenCollections");
|
|
7124
|
+
__publicField(this, "importJobs");
|
|
7125
|
+
__publicField(this, "tokens");
|
|
7126
|
+
__publicField(this, "stats");
|
|
7127
|
+
__publicField(this, "elementPropertyDefinitions");
|
|
7128
|
+
__publicField(this, "elementPropertyValues");
|
|
7129
|
+
this.themes = new ThemesEndpoint(requestExecutor);
|
|
7130
|
+
this.brands = new BrandsEndpoint(requestExecutor);
|
|
7131
|
+
this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
|
|
7132
|
+
this.importJobs = new ImportJobsEndpoint(requestExecutor);
|
|
7133
|
+
this.tokens = new TokensEndpoint(requestExecutor);
|
|
7134
|
+
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
7135
|
+
this.elementPropertyDefinitions = new ElementPropertyDefinitionsEndpoint(requestExecutor);
|
|
7136
|
+
this.elementPropertyValues = new ElementPropertyValuesEndpoint(requestExecutor);
|
|
7137
|
+
}
|
|
7138
|
+
list(dsId) {
|
|
7139
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
7140
|
+
}
|
|
7141
|
+
};
|
|
7142
|
+
|
|
7052
7143
|
// src/api/endpoints/design-system/bff.ts
|
|
7053
7144
|
var DesignSystemBffEndpoint = class {
|
|
7054
7145
|
constructor(requestExecutor) {
|
|
@@ -7093,63 +7184,6 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7093
7184
|
}
|
|
7094
7185
|
};
|
|
7095
7186
|
|
|
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
7187
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7154
7188
|
var DesignSystemsEndpoint = class {
|
|
7155
7189
|
constructor(requestExecutor) {
|
|
@@ -7189,28 +7223,6 @@ var DesignSystemsEndpoint = class {
|
|
|
7189
7223
|
}
|
|
7190
7224
|
};
|
|
7191
7225
|
|
|
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
7226
|
// src/api/endpoints/workspaces/workspace-invites.ts
|
|
7215
7227
|
var WorkspaceInvitationsEndpoint = class {
|
|
7216
7228
|
constructor(requestExecutor) {
|
|
@@ -7296,6 +7308,28 @@ var WorkspacesEndpoint = class {
|
|
|
7296
7308
|
}
|
|
7297
7309
|
};
|
|
7298
7310
|
|
|
7311
|
+
// src/api/endpoints/users.ts
|
|
7312
|
+
var UsersEndpoint = class {
|
|
7313
|
+
constructor(requestExecutor) {
|
|
7314
|
+
this.requestExecutor = requestExecutor;
|
|
7315
|
+
}
|
|
7316
|
+
getMe() {
|
|
7317
|
+
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
7318
|
+
}
|
|
7319
|
+
listWorkspaces(uid) {
|
|
7320
|
+
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
7321
|
+
}
|
|
7322
|
+
delete(uid) {
|
|
7323
|
+
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
7324
|
+
}
|
|
7325
|
+
updateProfile(uid, body) {
|
|
7326
|
+
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
7327
|
+
method: "PUT",
|
|
7328
|
+
body
|
|
7329
|
+
});
|
|
7330
|
+
}
|
|
7331
|
+
};
|
|
7332
|
+
|
|
7299
7333
|
// src/api/transport/request-executor-error.ts
|
|
7300
7334
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
7301
7335
|
constructor(type, message, errorCode, serverErrorType, cause) {
|
|
@@ -12452,7 +12486,9 @@ export {
|
|
|
12452
12486
|
DTOElementPropertyDefinitionResponse,
|
|
12453
12487
|
DTOElementPropertyDefinitionUpdatePayload,
|
|
12454
12488
|
DTOElementPropertyValue,
|
|
12455
|
-
|
|
12489
|
+
DTOElementPropertyValueListResponse,
|
|
12490
|
+
DTOElementPropertyValueResponse,
|
|
12491
|
+
DTOElementPropertyValueUpsertPaylod,
|
|
12456
12492
|
DTOElementView,
|
|
12457
12493
|
DTOElementViewBasePropertyColumn,
|
|
12458
12494
|
DTOElementViewColumn,
|
|
@@ -12582,11 +12618,14 @@ export {
|
|
|
12582
12618
|
DesignSystemBffEndpoint,
|
|
12583
12619
|
DesignSystemMembersEndpoint,
|
|
12584
12620
|
DesignSystemSourcesEndpoint,
|
|
12621
|
+
DesignSystemVersionsEndpoint,
|
|
12585
12622
|
DesignSystemsEndpoint,
|
|
12586
12623
|
DimensionsVariableScopeType,
|
|
12587
12624
|
DocumentationHierarchySettings,
|
|
12588
12625
|
DocumentationPageEditorModel,
|
|
12589
12626
|
DocumentationPageV1DTO,
|
|
12627
|
+
ElementPropertyDefinitionsEndpoint,
|
|
12628
|
+
ElementPropertyValuesEndpoint,
|
|
12590
12629
|
ExportersEndpoint,
|
|
12591
12630
|
FormattedCollections,
|
|
12592
12631
|
FrontendVersionRoomYDoc,
|
|
@@ -12606,6 +12645,7 @@ export {
|
|
|
12606
12645
|
StringVariableScopeType,
|
|
12607
12646
|
SupernovaApiClient,
|
|
12608
12647
|
ThemesEndpoint,
|
|
12648
|
+
TokenCollectionsEndpoint,
|
|
12609
12649
|
TokensEndpoint,
|
|
12610
12650
|
UsersEndpoint,
|
|
12611
12651
|
Variable,
|