@supernova-studio/client 1.35.1 → 1.35.3
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 +14 -7
- package/dist/index.d.ts +14 -7
- package/dist/index.js +27 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1050,6 +1050,9 @@ function recordToMap(record) {
|
|
|
1050
1050
|
for (const [k, v] of Object.entries(record)) map.set(k, v);
|
|
1051
1051
|
return map;
|
|
1052
1052
|
}
|
|
1053
|
+
function pickDefined(obj) {
|
|
1054
|
+
return Object.fromEntries(Object.entries(obj).filter(([_, v]) => v !== void 0));
|
|
1055
|
+
}
|
|
1053
1056
|
var ContentLoadInstruction = z39.object({
|
|
1054
1057
|
from: z39.string(),
|
|
1055
1058
|
to: z39.string(),
|
|
@@ -9285,6 +9288,9 @@ var DTOFeatureIterationCreateInput = DTOFeatureIteration.pick({
|
|
|
9285
9288
|
var DTOFeatureIterationPromoteInput = z311.object({
|
|
9286
9289
|
id: Id
|
|
9287
9290
|
});
|
|
9291
|
+
var DTOFeatureIterationSetLatestInput = z311.object({
|
|
9292
|
+
id: Id
|
|
9293
|
+
});
|
|
9288
9294
|
var DTOFeatureIterationUpdateInput = z311.object({
|
|
9289
9295
|
id: Id,
|
|
9290
9296
|
isBookmarked: z311.boolean().optional()
|
|
@@ -10297,10 +10303,11 @@ var CodeComponentsEndpoint = class {
|
|
|
10297
10303
|
}
|
|
10298
10304
|
);
|
|
10299
10305
|
}
|
|
10300
|
-
async list(dsId, vId) {
|
|
10306
|
+
async list(dsId, vId, brandId) {
|
|
10301
10307
|
return this.requestExecutor.json(
|
|
10302
10308
|
`/design-systems/${dsId}/versions/${vId}/code-components`,
|
|
10303
|
-
DTOCodeComponentListResponse
|
|
10309
|
+
DTOCodeComponentListResponse,
|
|
10310
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10304
10311
|
);
|
|
10305
10312
|
}
|
|
10306
10313
|
async deleteAll(dsId, vId) {
|
|
@@ -10376,10 +10383,11 @@ var DesignSystemComponentEndpoint = class {
|
|
|
10376
10383
|
constructor(requestExecutor) {
|
|
10377
10384
|
this.requestExecutor = requestExecutor;
|
|
10378
10385
|
}
|
|
10379
|
-
async list(dsId, vId) {
|
|
10386
|
+
async list(dsId, vId, brandId) {
|
|
10380
10387
|
return this.requestExecutor.json(
|
|
10381
10388
|
`/design-systems/${dsId}/versions/${vId}/design-system-components`,
|
|
10382
|
-
DTODesignSystemComponentListResponse
|
|
10389
|
+
DTODesignSystemComponentListResponse,
|
|
10390
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10383
10391
|
);
|
|
10384
10392
|
}
|
|
10385
10393
|
async create(dsId, vId, body) {
|
|
@@ -10480,10 +10488,11 @@ var FigmaComponentsEndpoint = class {
|
|
|
10480
10488
|
constructor(requestExecutor) {
|
|
10481
10489
|
this.requestExecutor = requestExecutor;
|
|
10482
10490
|
}
|
|
10483
|
-
async list(dsId, vId) {
|
|
10491
|
+
async list(dsId, vId, brandId) {
|
|
10484
10492
|
return this.requestExecutor.json(
|
|
10485
10493
|
`/design-systems/${dsId}/versions/${vId}/components`,
|
|
10486
|
-
DTOFigmaComponentListResponse
|
|
10494
|
+
DTOFigmaComponentListResponse,
|
|
10495
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10487
10496
|
);
|
|
10488
10497
|
}
|
|
10489
10498
|
};
|
|
@@ -10691,10 +10700,11 @@ var TokenGroupsEndpoint = class {
|
|
|
10691
10700
|
}
|
|
10692
10701
|
);
|
|
10693
10702
|
}
|
|
10694
|
-
list(dsId, versionId) {
|
|
10703
|
+
list(dsId, versionId, brandId) {
|
|
10695
10704
|
return this.requestExecutor.json(
|
|
10696
10705
|
`/design-systems/${dsId}/versions/${versionId}/token-groups`,
|
|
10697
|
-
DTODesignTokenGroupListResponse
|
|
10706
|
+
DTODesignTokenGroupListResponse,
|
|
10707
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10698
10708
|
);
|
|
10699
10709
|
}
|
|
10700
10710
|
};
|
|
@@ -10710,10 +10720,11 @@ var TokensEndpoint = class {
|
|
|
10710
10720
|
body
|
|
10711
10721
|
});
|
|
10712
10722
|
}
|
|
10713
|
-
list(dsId, versionId) {
|
|
10723
|
+
list(dsId, versionId, brandId) {
|
|
10714
10724
|
return this.requestExecutor.json(
|
|
10715
10725
|
`/design-systems/${dsId}/versions/${versionId}/tokens`,
|
|
10716
|
-
DTODesignTokenListResponse
|
|
10726
|
+
DTODesignTokenListResponse,
|
|
10727
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10717
10728
|
);
|
|
10718
10729
|
}
|
|
10719
10730
|
get(dsId, versionId, tokenId) {
|
|
@@ -10971,8 +10982,10 @@ var StorybookEntriesEndpoint = class {
|
|
|
10971
10982
|
constructor(requestExecutor) {
|
|
10972
10983
|
this.requestExecutor = requestExecutor;
|
|
10973
10984
|
}
|
|
10974
|
-
list(dsId) {
|
|
10975
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse
|
|
10985
|
+
list(dsId, brandId) {
|
|
10986
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse, {
|
|
10987
|
+
query: new URLSearchParams(pickDefined({ brandId }))
|
|
10988
|
+
});
|
|
10976
10989
|
}
|
|
10977
10990
|
replace(dsId, entryId) {
|
|
10978
10991
|
return this.requestExecutor.json(
|
|
@@ -18520,6 +18533,7 @@ export {
|
|
|
18520
18533
|
DTOFeatureIterationListResponse,
|
|
18521
18534
|
DTOFeatureIterationPromoteInput,
|
|
18522
18535
|
DTOFeatureIterationResponse,
|
|
18536
|
+
DTOFeatureIterationSetLatestInput,
|
|
18523
18537
|
DTOFeatureIterationTag,
|
|
18524
18538
|
DTOFeatureIterationTagCreateInput,
|
|
18525
18539
|
DTOFeatureIterationTagListResponse,
|