@supernova-studio/client 0.46.11 → 0.46.13
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.js +34 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +118 -111
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/payloads/workspaces/workspace-integrations.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -541,7 +541,8 @@ var DataSourceFigmaScope = _zod.z.object({
|
|
|
541
541
|
components: _zod.z.boolean(),
|
|
542
542
|
documentationFrames: _zod.z.boolean(),
|
|
543
543
|
tokens: _zod.z.boolean(),
|
|
544
|
-
themePersistentId: _zod.z.string().optional()
|
|
544
|
+
themePersistentId: _zod.z.string().optional(),
|
|
545
|
+
isUnpublishedImportFallbackEnabled: _zod.z.boolean()
|
|
545
546
|
});
|
|
546
547
|
var DataSourceFigmaImportMetadata = _zod.z.object({
|
|
547
548
|
fileData: DataSourceFigmaFileData.optional(),
|
|
@@ -1803,6 +1804,29 @@ var FigmaFileDownloadScope = _zod.z.object({
|
|
|
1803
1804
|
var FigmaFileAccessData = _zod.z.object({
|
|
1804
1805
|
accessToken: _zod.z.string()
|
|
1805
1806
|
});
|
|
1807
|
+
var ImportWarningType = _zod.z.enum([
|
|
1808
|
+
"NoVersionFound",
|
|
1809
|
+
"UnsupportedFill",
|
|
1810
|
+
"UnsupportedStroke",
|
|
1811
|
+
"UnsupportedEffect",
|
|
1812
|
+
"NoPublishedElements",
|
|
1813
|
+
"NoPublishedStyles",
|
|
1814
|
+
"NoPublishedComponents",
|
|
1815
|
+
"NoPublishedAssets",
|
|
1816
|
+
"StyleNotApplied",
|
|
1817
|
+
"ComponentHasNoThumbnail",
|
|
1818
|
+
"DuplicateImportedStyleId",
|
|
1819
|
+
"DuplicateImportedStylePath",
|
|
1820
|
+
"NoUnpublishedStyles"
|
|
1821
|
+
]);
|
|
1822
|
+
var ImportWarning = _zod.z.object({
|
|
1823
|
+
warningType: ImportWarningType,
|
|
1824
|
+
componentId: _zod.z.string().optional(),
|
|
1825
|
+
componentName: _zod.z.string().optional(),
|
|
1826
|
+
styleId: _zod.z.string().optional(),
|
|
1827
|
+
styleName: _zod.z.string().optional(),
|
|
1828
|
+
unsupportedStyleValueType: _zod.z.string().optional()
|
|
1829
|
+
});
|
|
1806
1830
|
var ImportFunctionInput = _zod.z.object({
|
|
1807
1831
|
importJobId: _zod.z.string(),
|
|
1808
1832
|
importContextId: _zod.z.string(),
|
|
@@ -1826,7 +1850,12 @@ var FigmaImportBaseContext = _zod.z.object({
|
|
|
1826
1850
|
*
|
|
1827
1851
|
* sourceId: source data
|
|
1828
1852
|
*/
|
|
1829
|
-
importedSourceDataBySourceId: _zod.z.record(ImportedFigmaSourceData)
|
|
1853
|
+
importedSourceDataBySourceId: _zod.z.record(ImportedFigmaSourceData),
|
|
1854
|
+
/**
|
|
1855
|
+
* Array of warnings that will be written into the import result summary at the end
|
|
1856
|
+
* of import job execution and displayed by the client.
|
|
1857
|
+
*/
|
|
1858
|
+
importWarnings: _zod.z.record(ImportWarning.array()).default({})
|
|
1830
1859
|
});
|
|
1831
1860
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
1832
1861
|
sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
|
|
@@ -2001,28 +2030,6 @@ var ImportModelCollection = _zod.z.object({
|
|
|
2001
2030
|
themes: _zod.z.array(ThemeImportModel).default([]),
|
|
2002
2031
|
figmaFileStructures: _zod.z.array(FigmaFileStructureImportModel)
|
|
2003
2032
|
});
|
|
2004
|
-
var ImportWarningType = _zod.z.enum([
|
|
2005
|
-
"NoVersionFound",
|
|
2006
|
-
"UnsupportedFill",
|
|
2007
|
-
"UnsupportedStroke",
|
|
2008
|
-
"UnsupportedEffect",
|
|
2009
|
-
"NoPublishedElements",
|
|
2010
|
-
"NoPublishedStyles",
|
|
2011
|
-
"NoPublishedComponents",
|
|
2012
|
-
"NoPublishedAssets",
|
|
2013
|
-
"StyleNotApplied",
|
|
2014
|
-
"ComponentHasNoThumbnail",
|
|
2015
|
-
"DuplicateImportedStyleId",
|
|
2016
|
-
"DuplicateImportedStylePath"
|
|
2017
|
-
]);
|
|
2018
|
-
var ImportWarning = _zod.z.object({
|
|
2019
|
-
warningType: ImportWarningType,
|
|
2020
|
-
componentId: _zod.z.string().optional(),
|
|
2021
|
-
componentName: _zod.z.string().optional(),
|
|
2022
|
-
styleId: _zod.z.string().optional(),
|
|
2023
|
-
styleName: _zod.z.string().optional(),
|
|
2024
|
-
unsupportedStyleValueType: _zod.z.string().optional()
|
|
2025
|
-
});
|
|
2026
2033
|
var FileStructureStats = _zod.z.object({
|
|
2027
2034
|
frames: zeroNumberByDefault2(),
|
|
2028
2035
|
components: zeroNumberByDefault2(),
|
|
@@ -2958,7 +2965,7 @@ var Integration = _zod.z.object({
|
|
|
2958
2965
|
integrationCredentials: _zod.z.array(IntegrationCredentials).optional()
|
|
2959
2966
|
});
|
|
2960
2967
|
var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
|
|
2961
|
-
var
|
|
2968
|
+
var IntegrationToken = _zod.z.object({
|
|
2962
2969
|
access_token: _zod.z.string(),
|
|
2963
2970
|
refresh_token: _zod.z.string().optional(),
|
|
2964
2971
|
expires_in: _zod.z.union([_zod.z.number().optional(), _zod.z.string().optional()]),
|
|
@@ -2992,7 +2999,7 @@ var IntegrationTokenResponse = _zod.z.object({
|
|
|
2992
2999
|
customUrl: data.custom_url
|
|
2993
3000
|
};
|
|
2994
3001
|
});
|
|
2995
|
-
var
|
|
3002
|
+
var IntegrationTokenSchemaOld = _zod.z.object({
|
|
2996
3003
|
id: _zod.z.string(),
|
|
2997
3004
|
provider: OAuthProviderSchema,
|
|
2998
3005
|
scope: _zod.z.string(),
|
|
@@ -4308,7 +4315,7 @@ var DTOWorkspaceIntegrationOauthInput = _zod.z.object({
|
|
|
4308
4315
|
var DTOWorkspaceIntegrationPATInput = _zod.z.object({
|
|
4309
4316
|
userId: _zod.z.string(),
|
|
4310
4317
|
type: IntegrationType,
|
|
4311
|
-
token:
|
|
4318
|
+
token: IntegrationToken
|
|
4312
4319
|
});
|
|
4313
4320
|
|
|
4314
4321
|
// src/api/dto/design-systems/version.ts
|