@supernova-studio/client 1.2.2 → 1.3.0

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 CHANGED
@@ -92432,6 +92432,130 @@ declare class ExportersEndpoint {
92432
92432
  replacementExporterId?: string | undefined;
92433
92433
  };
92434
92434
  }>;
92435
+ deprecate(workspaceId: string, exporterId: string, body: DTOExporterDeprecationInput): Promise<{
92436
+ description: string;
92437
+ isPrivate: boolean;
92438
+ id: string;
92439
+ name: string;
92440
+ source: "upload" | "git";
92441
+ version: string;
92442
+ exporterType: "code" | "documentation";
92443
+ isDefaultDocumentationExporter: boolean;
92444
+ configurationProperties: {
92445
+ key: string;
92446
+ type: "string" | "number" | "boolean" | "image" | "enum" | "color" | "typography" | "component" | "componentProperties" | "tokenProperties" | "tokenType";
92447
+ category: string;
92448
+ label: string;
92449
+ values?: string[] | null | undefined;
92450
+ default?: string | number | boolean | null | undefined;
92451
+ description?: string | null | undefined;
92452
+ inputType?: "code" | "plain" | undefined;
92453
+ isMultiline?: boolean | null | undefined;
92454
+ }[];
92455
+ customBlocks: {
92456
+ key: string;
92457
+ properties: {
92458
+ key: string;
92459
+ type: "string" | "number" | "boolean" | "image" | "enum" | "color" | "typography" | "component" | "componentProperties" | "tokenProperties" | "tokenType";
92460
+ label: string;
92461
+ values?: string[] | null | undefined;
92462
+ default?: string | number | boolean | null | undefined;
92463
+ description?: string | null | undefined;
92464
+ inputType?: "code" | "plain" | undefined;
92465
+ isMultiline?: boolean | null | undefined;
92466
+ }[];
92467
+ category?: string | undefined;
92468
+ description?: string | undefined;
92469
+ title?: string | undefined;
92470
+ iconURL?: string | undefined;
92471
+ mode?: NonNullable<"array" | "block"> | undefined;
92472
+ }[];
92473
+ blockVariants: Record<string, {
92474
+ key: string;
92475
+ name: string;
92476
+ description?: string | undefined;
92477
+ isDefault?: boolean | undefined;
92478
+ thumbnailURL?: string | undefined;
92479
+ }[]>;
92480
+ tags: string[];
92481
+ usesLocale: boolean;
92482
+ usesBrands: boolean;
92483
+ usesThemes: boolean;
92484
+ isDeprecated: boolean;
92485
+ properties?: ({
92486
+ options: Record<string, {
92487
+ description: string;
92488
+ label: string;
92489
+ }>;
92490
+ type: "Enum";
92491
+ description: string;
92492
+ title: string;
92493
+ key: string;
92494
+ default: string;
92495
+ category?: string | undefined;
92496
+ dependsOn?: Record<string, boolean> | undefined;
92497
+ } | {
92498
+ type: "Boolean";
92499
+ description: string;
92500
+ title: string;
92501
+ key: string;
92502
+ default: boolean;
92503
+ category?: string | undefined;
92504
+ dependsOn?: Record<string, boolean> | undefined;
92505
+ } | {
92506
+ type: "String";
92507
+ description: string;
92508
+ title: string;
92509
+ key: string;
92510
+ default: string;
92511
+ category?: string | undefined;
92512
+ dependsOn?: Record<string, boolean> | undefined;
92513
+ } | {
92514
+ type: "Number";
92515
+ description: string;
92516
+ title: string;
92517
+ key: string;
92518
+ default: number;
92519
+ category?: string | undefined;
92520
+ dependsOn?: Record<string, boolean> | undefined;
92521
+ } | {
92522
+ type: "Array";
92523
+ description: string;
92524
+ title: string;
92525
+ key: string;
92526
+ default: string[];
92527
+ category?: string | undefined;
92528
+ dependsOn?: Record<string, boolean> | undefined;
92529
+ } | {
92530
+ type: "Object";
92531
+ description: string;
92532
+ title: string;
92533
+ key: string;
92534
+ default: Record<string, string>;
92535
+ category?: string | undefined;
92536
+ dependsOn?: Record<string, boolean> | undefined;
92537
+ allowedKeys?: {
92538
+ options: string[];
92539
+ type: string;
92540
+ } | undefined;
92541
+ allowedValues?: {
92542
+ type: string;
92543
+ } | undefined;
92544
+ })[] | undefined;
92545
+ organization?: string | undefined;
92546
+ iconURL?: string | undefined;
92547
+ homepage?: string | undefined;
92548
+ packageId?: string | undefined;
92549
+ author?: string | undefined;
92550
+ readme?: string | undefined;
92551
+ routingVersion?: string | undefined;
92552
+ gitProvider?: string | undefined;
92553
+ gitUrl?: string | undefined;
92554
+ gitBranch?: string | undefined;
92555
+ gitDirectory?: string | undefined;
92556
+ deprecationNote?: string | undefined;
92557
+ replacementExporterId?: string | undefined;
92558
+ }>;
92435
92559
  }
92436
92560
 
92437
92561
  declare class ExporterJobsEndpoint {
package/dist/index.d.ts CHANGED
@@ -92432,6 +92432,130 @@ declare class ExportersEndpoint {
92432
92432
  replacementExporterId?: string | undefined;
92433
92433
  };
92434
92434
  }>;
92435
+ deprecate(workspaceId: string, exporterId: string, body: DTOExporterDeprecationInput): Promise<{
92436
+ description: string;
92437
+ isPrivate: boolean;
92438
+ id: string;
92439
+ name: string;
92440
+ source: "upload" | "git";
92441
+ version: string;
92442
+ exporterType: "code" | "documentation";
92443
+ isDefaultDocumentationExporter: boolean;
92444
+ configurationProperties: {
92445
+ key: string;
92446
+ type: "string" | "number" | "boolean" | "image" | "enum" | "color" | "typography" | "component" | "componentProperties" | "tokenProperties" | "tokenType";
92447
+ category: string;
92448
+ label: string;
92449
+ values?: string[] | null | undefined;
92450
+ default?: string | number | boolean | null | undefined;
92451
+ description?: string | null | undefined;
92452
+ inputType?: "code" | "plain" | undefined;
92453
+ isMultiline?: boolean | null | undefined;
92454
+ }[];
92455
+ customBlocks: {
92456
+ key: string;
92457
+ properties: {
92458
+ key: string;
92459
+ type: "string" | "number" | "boolean" | "image" | "enum" | "color" | "typography" | "component" | "componentProperties" | "tokenProperties" | "tokenType";
92460
+ label: string;
92461
+ values?: string[] | null | undefined;
92462
+ default?: string | number | boolean | null | undefined;
92463
+ description?: string | null | undefined;
92464
+ inputType?: "code" | "plain" | undefined;
92465
+ isMultiline?: boolean | null | undefined;
92466
+ }[];
92467
+ category?: string | undefined;
92468
+ description?: string | undefined;
92469
+ title?: string | undefined;
92470
+ iconURL?: string | undefined;
92471
+ mode?: NonNullable<"array" | "block"> | undefined;
92472
+ }[];
92473
+ blockVariants: Record<string, {
92474
+ key: string;
92475
+ name: string;
92476
+ description?: string | undefined;
92477
+ isDefault?: boolean | undefined;
92478
+ thumbnailURL?: string | undefined;
92479
+ }[]>;
92480
+ tags: string[];
92481
+ usesLocale: boolean;
92482
+ usesBrands: boolean;
92483
+ usesThemes: boolean;
92484
+ isDeprecated: boolean;
92485
+ properties?: ({
92486
+ options: Record<string, {
92487
+ description: string;
92488
+ label: string;
92489
+ }>;
92490
+ type: "Enum";
92491
+ description: string;
92492
+ title: string;
92493
+ key: string;
92494
+ default: string;
92495
+ category?: string | undefined;
92496
+ dependsOn?: Record<string, boolean> | undefined;
92497
+ } | {
92498
+ type: "Boolean";
92499
+ description: string;
92500
+ title: string;
92501
+ key: string;
92502
+ default: boolean;
92503
+ category?: string | undefined;
92504
+ dependsOn?: Record<string, boolean> | undefined;
92505
+ } | {
92506
+ type: "String";
92507
+ description: string;
92508
+ title: string;
92509
+ key: string;
92510
+ default: string;
92511
+ category?: string | undefined;
92512
+ dependsOn?: Record<string, boolean> | undefined;
92513
+ } | {
92514
+ type: "Number";
92515
+ description: string;
92516
+ title: string;
92517
+ key: string;
92518
+ default: number;
92519
+ category?: string | undefined;
92520
+ dependsOn?: Record<string, boolean> | undefined;
92521
+ } | {
92522
+ type: "Array";
92523
+ description: string;
92524
+ title: string;
92525
+ key: string;
92526
+ default: string[];
92527
+ category?: string | undefined;
92528
+ dependsOn?: Record<string, boolean> | undefined;
92529
+ } | {
92530
+ type: "Object";
92531
+ description: string;
92532
+ title: string;
92533
+ key: string;
92534
+ default: Record<string, string>;
92535
+ category?: string | undefined;
92536
+ dependsOn?: Record<string, boolean> | undefined;
92537
+ allowedKeys?: {
92538
+ options: string[];
92539
+ type: string;
92540
+ } | undefined;
92541
+ allowedValues?: {
92542
+ type: string;
92543
+ } | undefined;
92544
+ })[] | undefined;
92545
+ organization?: string | undefined;
92546
+ iconURL?: string | undefined;
92547
+ homepage?: string | undefined;
92548
+ packageId?: string | undefined;
92549
+ author?: string | undefined;
92550
+ readme?: string | undefined;
92551
+ routingVersion?: string | undefined;
92552
+ gitProvider?: string | undefined;
92553
+ gitUrl?: string | undefined;
92554
+ gitBranch?: string | undefined;
92555
+ gitDirectory?: string | undefined;
92556
+ deprecationNote?: string | undefined;
92557
+ replacementExporterId?: string | undefined;
92558
+ }>;
92435
92559
  }
92436
92560
 
92437
92561
  declare class ExporterJobsEndpoint {
package/dist/index.js CHANGED
@@ -131,6 +131,7 @@ var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequire
131
131
 
132
132
 
133
133
 
134
+
134
135
 
135
136
 
136
137
  var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
@@ -575,7 +576,10 @@ var Exporter = _zod.z.object({
575
576
  details: ExporterDetails,
576
577
  exporterType: nullishToOptional(ExporterType).default("code"),
577
578
  storagePath: nullishToOptional(_zod.z.string()).default(""),
578
- properties: nullishToOptional(ExporterPropertyDefinition.array())
579
+ properties: nullishToOptional(ExporterPropertyDefinition.array()),
580
+ isDeprecated: _zod.z.boolean().default(false),
581
+ deprecationNote: nullishToOptional(_zod.z.string()),
582
+ replacementExporterId: nullishToOptional(_zod.z.string())
579
583
  });
580
584
  var AssetDynamoRecord = _zod.z.object({
581
585
  path: _zod.z.string(),
@@ -3302,6 +3306,12 @@ var DataSourceVersion = _zod.z.object({
3302
3306
  function zeroNumberByDefault2() {
3303
3307
  return _zod.z.number().nullish().transform((v) => _nullishCoalesce(v, () => ( 0)));
3304
3308
  }
3309
+ var FigmaFile = _zod.z.object({
3310
+ id: _zod.z.string(),
3311
+ name: _zod.z.string(),
3312
+ lastModifiedAt: _zod.z.date(),
3313
+ thumbnailUrl: _zod.z.string().optional()
3314
+ });
3305
3315
  var ImportJobState = _zod.z.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
3306
3316
  var ImportJobOperation = _zod.z.enum(["Check", "Import"]);
3307
3317
  var ImportJob = Entity.extend({
@@ -4369,6 +4379,7 @@ var Pipeline = _zod.z.object({
4369
4379
  themePersistentId: _zod.z.string().optional(),
4370
4380
  themePersistentIds: _zod.z.string().array().optional(),
4371
4381
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
4382
+ isExporterDeprecated: _zod.z.boolean(),
4372
4383
  // Destinations
4373
4384
  ...ExportDestinationsMap.shape
4374
4385
  });
@@ -5254,8 +5265,7 @@ function pipelineToDto(pipeline) {
5254
5265
  exporterPropertyValues: pipeline.exporterPropertyValues,
5255
5266
  webhookUrl: pipeline.webhookUrl,
5256
5267
  latestJobs: [],
5257
- // TODO Brady: replace with an actual value
5258
- isExporterDeprecated: false
5268
+ isExporterDeprecated: pipeline.isExporterDeprecated
5259
5269
  };
5260
5270
  }
5261
5271
 
@@ -7696,6 +7706,16 @@ var ExportersEndpoint = class {
7696
7706
  get(workspaceId, exporterId) {
7697
7707
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters/${exporterId}`, DTOExporterResponse);
7698
7708
  }
7709
+ deprecate(workspaceId, exporterId, body) {
7710
+ return this.requestExecutor.json(
7711
+ `/codegen/workspaces/${workspaceId}/exporters/${exporterId}/deprecation`,
7712
+ DTOExporter,
7713
+ {
7714
+ body,
7715
+ method: "PUT"
7716
+ }
7717
+ );
7718
+ }
7699
7719
  };
7700
7720
 
7701
7721
  // src/api/endpoints/codegen/jobs.ts