@supernova-studio/client 1.35.2 → 1.35.4
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 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.js +22 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -68704,13 +68704,6 @@ declare const DTOFeatureMessageAttachments: z__default.ZodObject<{
|
|
|
68704
68704
|
iterationId?: string | undefined;
|
|
68705
68705
|
}>;
|
|
68706
68706
|
type DTOFeatureMessageAttachments = z__default.infer<typeof DTOFeatureMessageAttachments>;
|
|
68707
|
-
declare const DTOFeatureIterationSetLatestInput: z__default.ZodObject<{
|
|
68708
|
-
id: z__default.ZodString;
|
|
68709
|
-
}, "strip", z__default.ZodTypeAny, {
|
|
68710
|
-
id: string;
|
|
68711
|
-
}, {
|
|
68712
|
-
id: string;
|
|
68713
|
-
}>;
|
|
68714
68707
|
declare const DTOFeatureMessageCreateInput: z__default.ZodObject<Pick<{
|
|
68715
68708
|
id: z__default.ZodString;
|
|
68716
68709
|
/**
|
|
@@ -68919,6 +68912,14 @@ declare const DTOFeatureIterationPromoteInput: z__default.ZodObject<{
|
|
|
68919
68912
|
id: string;
|
|
68920
68913
|
}>;
|
|
68921
68914
|
type DTOFeatureIterationPromoteInput = z__default.infer<typeof DTOFeatureIterationPromoteInput>;
|
|
68915
|
+
declare const DTOFeatureIterationSetLatestInput: z__default.ZodObject<{
|
|
68916
|
+
id: z__default.ZodString;
|
|
68917
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
68918
|
+
id: string;
|
|
68919
|
+
}, {
|
|
68920
|
+
id: string;
|
|
68921
|
+
}>;
|
|
68922
|
+
type DTOFeatureIterationSetLatestInput = z__default.infer<typeof DTOFeatureIterationSetLatestInput>;
|
|
68922
68923
|
declare const DTOFeatureIterationUpdateInput: z__default.ZodObject<{
|
|
68923
68924
|
id: z__default.ZodString;
|
|
68924
68925
|
isBookmarked: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
@@ -135674,7 +135675,7 @@ declare class CodeComponentsEndpoint {
|
|
|
135674
135675
|
updated: number;
|
|
135675
135676
|
deleted: number;
|
|
135676
135677
|
}>;
|
|
135677
|
-
list(dsId: string, vId: string): Promise<{
|
|
135678
|
+
list(dsId: string, vId: string, brandId?: string): Promise<{
|
|
135678
135679
|
codeComponents: {
|
|
135679
135680
|
id: string;
|
|
135680
135681
|
createdAt: Date;
|
|
@@ -136126,7 +136127,7 @@ declare class DocumentationEndpoint {
|
|
|
136126
136127
|
declare class DesignSystemComponentEndpoint {
|
|
136127
136128
|
private readonly requestExecutor;
|
|
136128
136129
|
constructor(requestExecutor: RequestExecutor);
|
|
136129
|
-
list(dsId: string, vId: string): Promise<{
|
|
136130
|
+
list(dsId: string, vId: string, brandId?: string): Promise<{
|
|
136130
136131
|
designSystemComponents: {
|
|
136131
136132
|
id: string;
|
|
136132
136133
|
createdAt: Date;
|
|
@@ -137765,7 +137766,7 @@ declare class FigmaComponentGroupsEndpoint {
|
|
|
137765
137766
|
declare class FigmaComponentsEndpoint {
|
|
137766
137767
|
private readonly requestExecutor;
|
|
137767
137768
|
constructor(requestExecutor: RequestExecutor);
|
|
137768
|
-
list(dsId: string, vId: string): Promise<{
|
|
137769
|
+
list(dsId: string, vId: string, brandId?: string): Promise<{
|
|
137769
137770
|
components: {
|
|
137770
137771
|
id: string;
|
|
137771
137772
|
createdAt: Date;
|
|
@@ -139211,7 +139212,7 @@ declare class TokenGroupsEndpoint {
|
|
|
139211
139212
|
childrenIds: string[];
|
|
139212
139213
|
};
|
|
139213
139214
|
}>;
|
|
139214
|
-
list(dsId: string, versionId: string): Promise<DTODesignTokenGroupListResponse>;
|
|
139215
|
+
list(dsId: string, versionId: string, brandId?: string): Promise<DTODesignTokenGroupListResponse>;
|
|
139215
139216
|
}
|
|
139216
139217
|
|
|
139217
139218
|
declare class TokensEndpoint {
|
|
@@ -139596,7 +139597,7 @@ declare class TokensEndpoint {
|
|
|
139596
139597
|
collectionId?: string | undefined;
|
|
139597
139598
|
};
|
|
139598
139599
|
}>;
|
|
139599
|
-
list(dsId: string, versionId: string): Promise<DTODesignTokenListResponse>;
|
|
139600
|
+
list(dsId: string, versionId: string, brandId?: string): Promise<DTODesignTokenListResponse>;
|
|
139600
139601
|
get(dsId: string, versionId: string, tokenId: string): Promise<DTODesignTokenListResponse>;
|
|
139601
139602
|
}
|
|
139602
139603
|
|
|
@@ -140588,7 +140589,7 @@ declare class DesignSystemSourcesEndpoint {
|
|
|
140588
140589
|
declare class StorybookEntriesEndpoint {
|
|
140589
140590
|
private readonly requestExecutor;
|
|
140590
140591
|
constructor(requestExecutor: RequestExecutor);
|
|
140591
|
-
list(dsId: string): Promise<{
|
|
140592
|
+
list(dsId: string, brandId?: string): Promise<{
|
|
140592
140593
|
entries: {
|
|
140593
140594
|
id: string;
|
|
140594
140595
|
createdAt: Date;
|
package/dist/index.d.ts
CHANGED
|
@@ -68704,13 +68704,6 @@ declare const DTOFeatureMessageAttachments: z__default.ZodObject<{
|
|
|
68704
68704
|
iterationId?: string | undefined;
|
|
68705
68705
|
}>;
|
|
68706
68706
|
type DTOFeatureMessageAttachments = z__default.infer<typeof DTOFeatureMessageAttachments>;
|
|
68707
|
-
declare const DTOFeatureIterationSetLatestInput: z__default.ZodObject<{
|
|
68708
|
-
id: z__default.ZodString;
|
|
68709
|
-
}, "strip", z__default.ZodTypeAny, {
|
|
68710
|
-
id: string;
|
|
68711
|
-
}, {
|
|
68712
|
-
id: string;
|
|
68713
|
-
}>;
|
|
68714
68707
|
declare const DTOFeatureMessageCreateInput: z__default.ZodObject<Pick<{
|
|
68715
68708
|
id: z__default.ZodString;
|
|
68716
68709
|
/**
|
|
@@ -68919,6 +68912,14 @@ declare const DTOFeatureIterationPromoteInput: z__default.ZodObject<{
|
|
|
68919
68912
|
id: string;
|
|
68920
68913
|
}>;
|
|
68921
68914
|
type DTOFeatureIterationPromoteInput = z__default.infer<typeof DTOFeatureIterationPromoteInput>;
|
|
68915
|
+
declare const DTOFeatureIterationSetLatestInput: z__default.ZodObject<{
|
|
68916
|
+
id: z__default.ZodString;
|
|
68917
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
68918
|
+
id: string;
|
|
68919
|
+
}, {
|
|
68920
|
+
id: string;
|
|
68921
|
+
}>;
|
|
68922
|
+
type DTOFeatureIterationSetLatestInput = z__default.infer<typeof DTOFeatureIterationSetLatestInput>;
|
|
68922
68923
|
declare const DTOFeatureIterationUpdateInput: z__default.ZodObject<{
|
|
68923
68924
|
id: z__default.ZodString;
|
|
68924
68925
|
isBookmarked: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
@@ -135674,7 +135675,7 @@ declare class CodeComponentsEndpoint {
|
|
|
135674
135675
|
updated: number;
|
|
135675
135676
|
deleted: number;
|
|
135676
135677
|
}>;
|
|
135677
|
-
list(dsId: string, vId: string): Promise<{
|
|
135678
|
+
list(dsId: string, vId: string, brandId?: string): Promise<{
|
|
135678
135679
|
codeComponents: {
|
|
135679
135680
|
id: string;
|
|
135680
135681
|
createdAt: Date;
|
|
@@ -136126,7 +136127,7 @@ declare class DocumentationEndpoint {
|
|
|
136126
136127
|
declare class DesignSystemComponentEndpoint {
|
|
136127
136128
|
private readonly requestExecutor;
|
|
136128
136129
|
constructor(requestExecutor: RequestExecutor);
|
|
136129
|
-
list(dsId: string, vId: string): Promise<{
|
|
136130
|
+
list(dsId: string, vId: string, brandId?: string): Promise<{
|
|
136130
136131
|
designSystemComponents: {
|
|
136131
136132
|
id: string;
|
|
136132
136133
|
createdAt: Date;
|
|
@@ -137765,7 +137766,7 @@ declare class FigmaComponentGroupsEndpoint {
|
|
|
137765
137766
|
declare class FigmaComponentsEndpoint {
|
|
137766
137767
|
private readonly requestExecutor;
|
|
137767
137768
|
constructor(requestExecutor: RequestExecutor);
|
|
137768
|
-
list(dsId: string, vId: string): Promise<{
|
|
137769
|
+
list(dsId: string, vId: string, brandId?: string): Promise<{
|
|
137769
137770
|
components: {
|
|
137770
137771
|
id: string;
|
|
137771
137772
|
createdAt: Date;
|
|
@@ -139211,7 +139212,7 @@ declare class TokenGroupsEndpoint {
|
|
|
139211
139212
|
childrenIds: string[];
|
|
139212
139213
|
};
|
|
139213
139214
|
}>;
|
|
139214
|
-
list(dsId: string, versionId: string): Promise<DTODesignTokenGroupListResponse>;
|
|
139215
|
+
list(dsId: string, versionId: string, brandId?: string): Promise<DTODesignTokenGroupListResponse>;
|
|
139215
139216
|
}
|
|
139216
139217
|
|
|
139217
139218
|
declare class TokensEndpoint {
|
|
@@ -139596,7 +139597,7 @@ declare class TokensEndpoint {
|
|
|
139596
139597
|
collectionId?: string | undefined;
|
|
139597
139598
|
};
|
|
139598
139599
|
}>;
|
|
139599
|
-
list(dsId: string, versionId: string): Promise<DTODesignTokenListResponse>;
|
|
139600
|
+
list(dsId: string, versionId: string, brandId?: string): Promise<DTODesignTokenListResponse>;
|
|
139600
139601
|
get(dsId: string, versionId: string, tokenId: string): Promise<DTODesignTokenListResponse>;
|
|
139601
139602
|
}
|
|
139602
139603
|
|
|
@@ -140588,7 +140589,7 @@ declare class DesignSystemSourcesEndpoint {
|
|
|
140588
140589
|
declare class StorybookEntriesEndpoint {
|
|
140589
140590
|
private readonly requestExecutor;
|
|
140590
140591
|
constructor(requestExecutor: RequestExecutor);
|
|
140591
|
-
list(dsId: string): Promise<{
|
|
140592
|
+
list(dsId: string, brandId?: string): Promise<{
|
|
140592
140593
|
entries: {
|
|
140593
140594
|
id: string;
|
|
140594
140595
|
createdAt: Date;
|
package/dist/index.js
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 = _zod.z.object({
|
|
1054
1057
|
from: _zod.z.string(),
|
|
1055
1058
|
to: _zod.z.string(),
|
|
@@ -10300,10 +10303,11 @@ var CodeComponentsEndpoint = class {
|
|
|
10300
10303
|
}
|
|
10301
10304
|
);
|
|
10302
10305
|
}
|
|
10303
|
-
async list(dsId, vId) {
|
|
10306
|
+
async list(dsId, vId, brandId) {
|
|
10304
10307
|
return this.requestExecutor.json(
|
|
10305
10308
|
`/design-systems/${dsId}/versions/${vId}/code-components`,
|
|
10306
|
-
DTOCodeComponentListResponse
|
|
10309
|
+
DTOCodeComponentListResponse,
|
|
10310
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10307
10311
|
);
|
|
10308
10312
|
}
|
|
10309
10313
|
async deleteAll(dsId, vId) {
|
|
@@ -10379,10 +10383,11 @@ var DesignSystemComponentEndpoint = class {
|
|
|
10379
10383
|
constructor(requestExecutor) {
|
|
10380
10384
|
this.requestExecutor = requestExecutor;
|
|
10381
10385
|
}
|
|
10382
|
-
async list(dsId, vId) {
|
|
10386
|
+
async list(dsId, vId, brandId) {
|
|
10383
10387
|
return this.requestExecutor.json(
|
|
10384
10388
|
`/design-systems/${dsId}/versions/${vId}/design-system-components`,
|
|
10385
|
-
DTODesignSystemComponentListResponse
|
|
10389
|
+
DTODesignSystemComponentListResponse,
|
|
10390
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10386
10391
|
);
|
|
10387
10392
|
}
|
|
10388
10393
|
async create(dsId, vId, body) {
|
|
@@ -10483,10 +10488,11 @@ var FigmaComponentsEndpoint = class {
|
|
|
10483
10488
|
constructor(requestExecutor) {
|
|
10484
10489
|
this.requestExecutor = requestExecutor;
|
|
10485
10490
|
}
|
|
10486
|
-
async list(dsId, vId) {
|
|
10491
|
+
async list(dsId, vId, brandId) {
|
|
10487
10492
|
return this.requestExecutor.json(
|
|
10488
10493
|
`/design-systems/${dsId}/versions/${vId}/components`,
|
|
10489
|
-
DTOFigmaComponentListResponse
|
|
10494
|
+
DTOFigmaComponentListResponse,
|
|
10495
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10490
10496
|
);
|
|
10491
10497
|
}
|
|
10492
10498
|
};
|
|
@@ -10694,10 +10700,11 @@ var TokenGroupsEndpoint = class {
|
|
|
10694
10700
|
}
|
|
10695
10701
|
);
|
|
10696
10702
|
}
|
|
10697
|
-
list(dsId, versionId) {
|
|
10703
|
+
list(dsId, versionId, brandId) {
|
|
10698
10704
|
return this.requestExecutor.json(
|
|
10699
10705
|
`/design-systems/${dsId}/versions/${versionId}/token-groups`,
|
|
10700
|
-
DTODesignTokenGroupListResponse
|
|
10706
|
+
DTODesignTokenGroupListResponse,
|
|
10707
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10701
10708
|
);
|
|
10702
10709
|
}
|
|
10703
10710
|
};
|
|
@@ -10713,10 +10720,11 @@ var TokensEndpoint = class {
|
|
|
10713
10720
|
body
|
|
10714
10721
|
});
|
|
10715
10722
|
}
|
|
10716
|
-
list(dsId, versionId) {
|
|
10723
|
+
list(dsId, versionId, brandId) {
|
|
10717
10724
|
return this.requestExecutor.json(
|
|
10718
10725
|
`/design-systems/${dsId}/versions/${versionId}/tokens`,
|
|
10719
|
-
DTODesignTokenListResponse
|
|
10726
|
+
DTODesignTokenListResponse,
|
|
10727
|
+
{ query: new URLSearchParams(pickDefined({ brandId })) }
|
|
10720
10728
|
);
|
|
10721
10729
|
}
|
|
10722
10730
|
get(dsId, versionId, tokenId) {
|
|
@@ -10974,8 +10982,10 @@ var StorybookEntriesEndpoint = class {
|
|
|
10974
10982
|
constructor(requestExecutor) {
|
|
10975
10983
|
this.requestExecutor = requestExecutor;
|
|
10976
10984
|
}
|
|
10977
|
-
list(dsId) {
|
|
10978
|
-
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
|
+
});
|
|
10979
10989
|
}
|
|
10980
10990
|
replace(dsId, entryId) {
|
|
10981
10991
|
return this.requestExecutor.json(
|