@supernova-studio/client 0.57.17 → 0.57.18
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 +500 -262
- package/dist/index.d.ts +500 -262
- package/dist/index.js +66 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +65 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-tokens/design-token.ts +33 -1
- package/src/api/endpoints/design-system/versions/index.ts +1 -0
- package/src/api/endpoints/design-system/versions/token-groups.ts +28 -0
- package/src/api/endpoints/design-system/versions/versions.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -5985,6 +5985,21 @@ var DTODesignTokenListResponse = z212.object({
|
|
|
5985
5985
|
var DTODesignTokenResponse = z212.object({
|
|
5986
5986
|
token: DTODesignToken
|
|
5987
5987
|
});
|
|
5988
|
+
var DTODesignTokenGroup = z212.object({
|
|
5989
|
+
id: z212.string(),
|
|
5990
|
+
tokenType: DesignTokenType,
|
|
5991
|
+
persistentId: z212.string(),
|
|
5992
|
+
isRoot: z212.boolean(),
|
|
5993
|
+
brandId: z212.string(),
|
|
5994
|
+
meta: ObjectMeta,
|
|
5995
|
+
childrenIds: z212.string().array()
|
|
5996
|
+
});
|
|
5997
|
+
var DTODesignTokenGroupListResponse = z212.object({
|
|
5998
|
+
groups: DTODesignTokenGroup.array()
|
|
5999
|
+
});
|
|
6000
|
+
var DTODesignTokenGroupResponse = z212.object({
|
|
6001
|
+
group: DTODesignTokenGroup
|
|
6002
|
+
});
|
|
5988
6003
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
5989
6004
|
z212.object({
|
|
5990
6005
|
persistentId: z212.string(),
|
|
@@ -5993,6 +6008,14 @@ var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
|
5993
6008
|
groupPersistentId: z212.string().optional()
|
|
5994
6009
|
})
|
|
5995
6010
|
);
|
|
6011
|
+
var DTODesignTokenGroupCreatePayload = z212.object({
|
|
6012
|
+
persistentId: z212.string(),
|
|
6013
|
+
meta: ObjectMeta,
|
|
6014
|
+
brandId: z212.string(),
|
|
6015
|
+
parentId: z212.string().optional(),
|
|
6016
|
+
tokenType: DesignTokenType,
|
|
6017
|
+
childrenIds: z212.string().array()
|
|
6018
|
+
});
|
|
5996
6019
|
|
|
5997
6020
|
// src/api/dto/documentation/anchor.ts
|
|
5998
6021
|
import { z as z213 } from "zod";
|
|
@@ -7130,6 +7153,29 @@ var TokensEndpoint = class {
|
|
|
7130
7153
|
}
|
|
7131
7154
|
};
|
|
7132
7155
|
|
|
7156
|
+
// src/api/endpoints/design-system/versions/token-groups.ts
|
|
7157
|
+
var TokenGroupsEndpoint = class {
|
|
7158
|
+
constructor(requestExecutor) {
|
|
7159
|
+
this.requestExecutor = requestExecutor;
|
|
7160
|
+
}
|
|
7161
|
+
create(dsId, versionId, body) {
|
|
7162
|
+
return this.requestExecutor.json(
|
|
7163
|
+
`/design-systems/${dsId}/versions/${versionId}/token-groups`,
|
|
7164
|
+
DTODesignTokenGroupResponse,
|
|
7165
|
+
{
|
|
7166
|
+
method: "POST",
|
|
7167
|
+
body
|
|
7168
|
+
}
|
|
7169
|
+
);
|
|
7170
|
+
}
|
|
7171
|
+
list(dsId, versionId) {
|
|
7172
|
+
return this.requestExecutor.json(
|
|
7173
|
+
`/design-systems/${dsId}/versions/${versionId}/token-groups`,
|
|
7174
|
+
DTODesignTokenGroupListResponse
|
|
7175
|
+
);
|
|
7176
|
+
}
|
|
7177
|
+
};
|
|
7178
|
+
|
|
7133
7179
|
// src/api/endpoints/design-system/versions/versions.ts
|
|
7134
7180
|
var DesignSystemVersionsEndpoint = class {
|
|
7135
7181
|
constructor(requestExecutor) {
|
|
@@ -7139,6 +7185,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7139
7185
|
__publicField(this, "tokenCollections");
|
|
7140
7186
|
__publicField(this, "importJobs");
|
|
7141
7187
|
__publicField(this, "tokens");
|
|
7188
|
+
__publicField(this, "tokenGroups");
|
|
7142
7189
|
__publicField(this, "stats");
|
|
7143
7190
|
__publicField(this, "elementPropertyDefinitions");
|
|
7144
7191
|
__publicField(this, "elementPropertyValues");
|
|
@@ -7147,6 +7194,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7147
7194
|
this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
|
|
7148
7195
|
this.importJobs = new ImportJobsEndpoint(requestExecutor);
|
|
7149
7196
|
this.tokens = new TokensEndpoint(requestExecutor);
|
|
7197
|
+
this.tokenGroups = new TokenGroupsEndpoint(requestExecutor);
|
|
7150
7198
|
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
7151
7199
|
this.elementPropertyDefinitions = new ElementPropertyDefinitionsEndpoint(requestExecutor);
|
|
7152
7200
|
this.elementPropertyValues = new ElementPropertyValuesEndpoint(requestExecutor);
|
|
@@ -7169,6 +7217,18 @@ var DesignSystemBffEndpoint = class {
|
|
|
7169
7217
|
}
|
|
7170
7218
|
};
|
|
7171
7219
|
|
|
7220
|
+
// src/api/endpoints/design-system/contact.ts
|
|
7221
|
+
var DesignSystemContactsEndpoint = class {
|
|
7222
|
+
constructor(requestExecutor) {
|
|
7223
|
+
this.requestExecutor = requestExecutor;
|
|
7224
|
+
}
|
|
7225
|
+
list(dsId) {
|
|
7226
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/contacts`, DTODesignSystemContactsResponse, {
|
|
7227
|
+
method: "GET"
|
|
7228
|
+
});
|
|
7229
|
+
}
|
|
7230
|
+
};
|
|
7231
|
+
|
|
7172
7232
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7173
7233
|
import { z as z247 } from "zod";
|
|
7174
7234
|
|
|
@@ -7200,18 +7260,6 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7200
7260
|
}
|
|
7201
7261
|
};
|
|
7202
7262
|
|
|
7203
|
-
// src/api/endpoints/design-system/contact.ts
|
|
7204
|
-
var DesignSystemContactsEndpoint = class {
|
|
7205
|
-
constructor(requestExecutor) {
|
|
7206
|
-
this.requestExecutor = requestExecutor;
|
|
7207
|
-
}
|
|
7208
|
-
list(dsId) {
|
|
7209
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/contacts`, DTODesignSystemContactsResponse, {
|
|
7210
|
-
method: "GET"
|
|
7211
|
-
});
|
|
7212
|
-
}
|
|
7213
|
-
};
|
|
7214
|
-
|
|
7215
7263
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7216
7264
|
var DesignSystemsEndpoint = class {
|
|
7217
7265
|
constructor(requestExecutor) {
|
|
@@ -12445,6 +12493,10 @@ export {
|
|
|
12445
12493
|
DTODesignSystemsListResponse,
|
|
12446
12494
|
DTODesignToken,
|
|
12447
12495
|
DTODesignTokenCreatePayload,
|
|
12496
|
+
DTODesignTokenGroup,
|
|
12497
|
+
DTODesignTokenGroupCreatePayload,
|
|
12498
|
+
DTODesignTokenGroupListResponse,
|
|
12499
|
+
DTODesignTokenGroupResponse,
|
|
12448
12500
|
DTODesignTokenListResponse,
|
|
12449
12501
|
DTODesignTokenResponse,
|
|
12450
12502
|
DTODiffCountBase,
|
|
@@ -12648,6 +12700,7 @@ export {
|
|
|
12648
12700
|
DTOWorkspaceResponse,
|
|
12649
12701
|
DTOWorkspaceRole,
|
|
12650
12702
|
DesignSystemBffEndpoint,
|
|
12703
|
+
DesignSystemContactsEndpoint,
|
|
12651
12704
|
DesignSystemMembersEndpoint,
|
|
12652
12705
|
DesignSystemSourcesEndpoint,
|
|
12653
12706
|
DesignSystemVersionsEndpoint,
|