@supernova-studio/client 1.9.9 → 1.9.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 +27 -6
- package/dist/index.d.ts +27 -6
- package/dist/index.js +19 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -623,8 +623,14 @@ var AssetReference = z22.object({
|
|
|
623
623
|
persistentId: z22.string()
|
|
624
624
|
});
|
|
625
625
|
var AssetValue = z23.object({});
|
|
626
|
-
var AssetType = z24.enum(["Image", "Font"]);
|
|
627
|
-
var AssetScope = z24.enum([
|
|
626
|
+
var AssetType = z24.enum(["Image", "Font", "Generic"]);
|
|
627
|
+
var AssetScope = z24.enum([
|
|
628
|
+
"DocumentationFrame",
|
|
629
|
+
"ComponentThumbnail",
|
|
630
|
+
"DesignSystem",
|
|
631
|
+
"Documentation",
|
|
632
|
+
"DocumentationEmbed"
|
|
633
|
+
]);
|
|
628
634
|
var AssetFontProperties = z24.object({
|
|
629
635
|
family: z24.string(),
|
|
630
636
|
subfamily: z24.string()
|
|
@@ -6507,10 +6513,12 @@ var FormattedCollections = z211.object({
|
|
|
6507
6513
|
|
|
6508
6514
|
// src/api/dto/design-systems/file.ts
|
|
6509
6515
|
import { z as z212 } from "zod";
|
|
6516
|
+
var DTOAssetScope = AssetScope;
|
|
6510
6517
|
var DTOFileUploadItem = z212.object({
|
|
6511
6518
|
size: z212.number(),
|
|
6512
6519
|
name: z212.string(),
|
|
6513
|
-
checksum: z212.string()
|
|
6520
|
+
checksum: z212.string(),
|
|
6521
|
+
scope: DTOAssetScope.exclude(["ComponentThumbnail", "DocumentationFrame"]).optional()
|
|
6514
6522
|
});
|
|
6515
6523
|
var DTOFileUploadPayload = z212.object({
|
|
6516
6524
|
files: z212.array(DTOFileUploadItem)
|
|
@@ -6536,6 +6544,9 @@ var DTOFileUploadResponse = z212.object({
|
|
|
6536
6544
|
var DTOFilesGetPayload = z212.object({
|
|
6537
6545
|
persistentIds: z212.string().array().optional()
|
|
6538
6546
|
});
|
|
6547
|
+
var DTOFilesGetQuery = z212.object({
|
|
6548
|
+
includeScope: DTOAssetScope.optional()
|
|
6549
|
+
});
|
|
6539
6550
|
var DTOFilesResponse = z212.object({
|
|
6540
6551
|
files: z212.array(DTOFileResponseItem)
|
|
6541
6552
|
});
|
|
@@ -9123,14 +9134,11 @@ var FilesEndpoint = class {
|
|
|
9123
9134
|
}
|
|
9124
9135
|
);
|
|
9125
9136
|
}
|
|
9126
|
-
get(designSystemId, versionId,
|
|
9137
|
+
get(designSystemId, versionId, query) {
|
|
9127
9138
|
return this.requestExecutor.json(
|
|
9128
9139
|
`/design-systems/${designSystemId}/versions/${versionId}/files`,
|
|
9129
9140
|
DTOFilesResponse,
|
|
9130
|
-
{
|
|
9131
|
-
method: "POST",
|
|
9132
|
-
body
|
|
9133
|
-
}
|
|
9141
|
+
{ query: query ? new URLSearchParams(query) : void 0 }
|
|
9134
9142
|
);
|
|
9135
9143
|
}
|
|
9136
9144
|
};
|
|
@@ -15466,6 +15474,7 @@ export {
|
|
|
15466
15474
|
DTOAppBootstrapDataQuery,
|
|
15467
15475
|
DTOAppBootstrapDataResponse,
|
|
15468
15476
|
DTOAssetRenderConfiguration,
|
|
15477
|
+
DTOAssetScope,
|
|
15469
15478
|
DTOAuthenticatedUser,
|
|
15470
15479
|
DTOAuthenticatedUserProfile,
|
|
15471
15480
|
DTOAuthenticatedUserResponse,
|
|
@@ -15720,6 +15729,7 @@ export {
|
|
|
15720
15729
|
DTOFileUploadResponse,
|
|
15721
15730
|
DTOFileUploadResponseItem,
|
|
15722
15731
|
DTOFilesGetPayload,
|
|
15732
|
+
DTOFilesGetQuery,
|
|
15723
15733
|
DTOFilesResponse,
|
|
15724
15734
|
DTOFrameNodeStructure,
|
|
15725
15735
|
DTOFrameNodeStructureListResponse,
|