@supernova-studio/client 1.55.1 → 1.55.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 +589 -76
- package/dist/index.d.ts +589 -76
- package/dist/index.js +23 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4827 -4810
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49,6 +49,7 @@ var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
@@ -836,6 +837,11 @@ var ImportWarning = _zod.z.object({
|
|
|
836
837
|
unsupportedStyleValueType: _zod.z.string().optional(),
|
|
837
838
|
referenceId: _zod.z.string().optional()
|
|
838
839
|
});
|
|
840
|
+
var DataSourceRemoteType = _zod2.default.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin", "Storybook"]);
|
|
841
|
+
var DataSourceUploadRemoteSource = _zod2.default.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
842
|
+
var DataSourceFigmaState = _zod2.default.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
843
|
+
var DataSourceFigmaErrorType = _zod2.default.enum(["FigmaAPIRateLimit", "UnknownImportError"]);
|
|
844
|
+
var DataSourceAutoImportMode = _zod2.default.enum(["Never", "Hourly"]);
|
|
839
845
|
var TokenDataAliasSchema = _zod.z.object({
|
|
840
846
|
aliasTo: _zod.z.string().optional().nullable().transform((v) => _nullishCoalesce(v, () => ( void 0)))
|
|
841
847
|
});
|
|
@@ -3470,11 +3476,27 @@ var SourceImportFrameSummary = _zod.z.object({
|
|
|
3470
3476
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
3471
3477
|
invalidReferencesCount: nullishToOptional(_zod.z.number().optional())
|
|
3472
3478
|
});
|
|
3479
|
+
var SourceErrorRateLimitDetails = _zod.z.object({
|
|
3480
|
+
retryAfter: _zod.z.number().optional(),
|
|
3481
|
+
figmaPlanTier: _zod.z.string().optional(),
|
|
3482
|
+
rateLimitType: _zod.z.string().optional()
|
|
3483
|
+
});
|
|
3484
|
+
var SourceError = _zod.z.object({
|
|
3485
|
+
/** @deprecated use error type instead */
|
|
3486
|
+
cloudState: DataSourceFigmaState,
|
|
3487
|
+
/**
|
|
3488
|
+
* @deprecated rely on additional properties like `rateLimitDetails` instead,
|
|
3489
|
+
* if consider adding more properties on the backend side
|
|
3490
|
+
*/
|
|
3491
|
+
originalError: nullishToOptional(_zod.z.record(_zod.z.any())),
|
|
3492
|
+
errorType: DataSourceFigmaErrorType.optional(),
|
|
3493
|
+
rateLimitDetails: SourceErrorRateLimitDetails.optional()
|
|
3494
|
+
});
|
|
3473
3495
|
var SourceImportSummary = _zod.z.object({
|
|
3474
3496
|
sourceId: nullishToOptional(_zod.z.string()),
|
|
3475
3497
|
brandId: nullishToOptional(_zod.z.string()),
|
|
3476
3498
|
versionId: nullishToOptional(_zod.z.string()),
|
|
3477
|
-
error: nullishToOptional(
|
|
3499
|
+
error: nullishToOptional(SourceError),
|
|
3478
3500
|
isFailed: _zod.z.boolean(),
|
|
3479
3501
|
warnings: _zod.z.array(ImportWarning).nullish().transform((v) => _nullishCoalesce(v, () => ( []))),
|
|
3480
3502
|
...SourceImportTokenSummary.shape,
|
|
@@ -3484,10 +3506,6 @@ var SourceImportSummary = _zod.z.object({
|
|
|
3484
3506
|
function zeroNumberByDefault() {
|
|
3485
3507
|
return _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( 0)));
|
|
3486
3508
|
}
|
|
3487
|
-
var DataSourceRemoteType = _zod.z.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin", "Storybook"]);
|
|
3488
|
-
var DataSourceUploadRemoteSource = _zod.z.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
3489
|
-
var DataSourceFigmaState = _zod.z.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
3490
|
-
var DataSourceAutoImportMode = _zod.z.enum(["Never", "Hourly"]);
|
|
3491
3509
|
var DataSourceStats = _zod.z.object({
|
|
3492
3510
|
tokens: zeroNumberByDefault2(),
|
|
3493
3511
|
components: zeroNumberByDefault2(),
|
|
@@ -5768,7 +5786,6 @@ var FlaggedFeature = _zod.z.enum([
|
|
|
5768
5786
|
"ShadowPropsKeepAliases",
|
|
5769
5787
|
"NonCompatibleTypeChanges",
|
|
5770
5788
|
"TypographyUseFontStyle",
|
|
5771
|
-
"FigmaImporterV3",
|
|
5772
5789
|
"SparseCheckoutEnabled",
|
|
5773
5790
|
"NoTagsNoBlobsCheckoutEnabled",
|
|
5774
5791
|
"PulsarDebugMode",
|