@supernova-studio/client 1.9.5 → 1.9.6
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 +87 -1
- package/dist/index.d.ts +87 -1
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6524,6 +6524,7 @@ var DTOFileUploadResponseItem = z212.object({
|
|
|
6524
6524
|
url: z212.string(),
|
|
6525
6525
|
size: z212.number()
|
|
6526
6526
|
});
|
|
6527
|
+
var DTOFileResponseItem = DTOFileUploadResponseItem.omit({ pendingUpload: true });
|
|
6527
6528
|
var DTOUploadUrlItem = z212.object({
|
|
6528
6529
|
fileId: z212.string(),
|
|
6529
6530
|
uploadUrl: z212.string()
|
|
@@ -6532,6 +6533,12 @@ var DTOFileUploadResponse = z212.object({
|
|
|
6532
6533
|
files: z212.array(DTOFileUploadResponseItem),
|
|
6533
6534
|
uploadUrls: z212.array(DTOUploadUrlItem)
|
|
6534
6535
|
});
|
|
6536
|
+
var DTOFilesGetPayload = z212.object({
|
|
6537
|
+
persistentIds: z212.string().array().optional()
|
|
6538
|
+
});
|
|
6539
|
+
var DTOFilesResponse = z212.object({
|
|
6540
|
+
files: z212.array(DTOFileResponseItem)
|
|
6541
|
+
});
|
|
6535
6542
|
var DTOFileUploadFinalizePayload = z212.object({
|
|
6536
6543
|
fileIds: z212.array(z212.string())
|
|
6537
6544
|
});
|
|
@@ -9113,6 +9120,16 @@ var FilesEndpoint = class {
|
|
|
9113
9120
|
}
|
|
9114
9121
|
);
|
|
9115
9122
|
}
|
|
9123
|
+
get(designSystemId, versionId, body) {
|
|
9124
|
+
return this.requestExecutor.json(
|
|
9125
|
+
`/design-systems/${designSystemId}/versions/${versionId}/files`,
|
|
9126
|
+
DTOFilesResponse,
|
|
9127
|
+
{
|
|
9128
|
+
method: "POST",
|
|
9129
|
+
body
|
|
9130
|
+
}
|
|
9131
|
+
);
|
|
9132
|
+
}
|
|
9116
9133
|
};
|
|
9117
9134
|
|
|
9118
9135
|
// src/api/endpoints/design-system/versions/import-jobs.ts
|
|
@@ -15692,12 +15709,15 @@ export {
|
|
|
15692
15709
|
DTOFigmaNodeStructureListResponse,
|
|
15693
15710
|
DTOFigmaNodeV2,
|
|
15694
15711
|
DTOFigmaSourceUpdatePayload,
|
|
15712
|
+
DTOFileResponseItem,
|
|
15695
15713
|
DTOFileUploadFinalizePayload,
|
|
15696
15714
|
DTOFileUploadFinalizeResponse,
|
|
15697
15715
|
DTOFileUploadItem,
|
|
15698
15716
|
DTOFileUploadPayload,
|
|
15699
15717
|
DTOFileUploadResponse,
|
|
15700
15718
|
DTOFileUploadResponseItem,
|
|
15719
|
+
DTOFilesGetPayload,
|
|
15720
|
+
DTOFilesResponse,
|
|
15701
15721
|
DTOFrameNodeStructure,
|
|
15702
15722
|
DTOFrameNodeStructureListResponse,
|
|
15703
15723
|
DTOGetBlockDefinitionsOutput,
|