@supernova-studio/client 1.2.2 → 1.2.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 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
@@ -575,7 +575,10 @@ var Exporter = _zod.z.object({
575
575
  details: ExporterDetails,
576
576
  exporterType: nullishToOptional(ExporterType).default("code"),
577
577
  storagePath: nullishToOptional(_zod.z.string()).default(""),
578
- properties: nullishToOptional(ExporterPropertyDefinition.array())
578
+ properties: nullishToOptional(ExporterPropertyDefinition.array()),
579
+ isDeprecated: _zod.z.boolean().default(false),
580
+ deprecationNote: nullishToOptional(_zod.z.string()),
581
+ replacementExporterId: nullishToOptional(_zod.z.string())
579
582
  });
580
583
  var AssetDynamoRecord = _zod.z.object({
581
584
  path: _zod.z.string(),
@@ -4369,6 +4372,7 @@ var Pipeline = _zod.z.object({
4369
4372
  themePersistentId: _zod.z.string().optional(),
4370
4373
  themePersistentIds: _zod.z.string().array().optional(),
4371
4374
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
4375
+ isExporterDeprecated: _zod.z.boolean(),
4372
4376
  // Destinations
4373
4377
  ...ExportDestinationsMap.shape
4374
4378
  });
@@ -5254,8 +5258,7 @@ function pipelineToDto(pipeline) {
5254
5258
  exporterPropertyValues: pipeline.exporterPropertyValues,
5255
5259
  webhookUrl: pipeline.webhookUrl,
5256
5260
  latestJobs: [],
5257
- // TODO Brady: replace with an actual value
5258
- isExporterDeprecated: false
5261
+ isExporterDeprecated: pipeline.isExporterDeprecated
5259
5262
  };
5260
5263
  }
5261
5264
 
@@ -7696,6 +7699,16 @@ var ExportersEndpoint = class {
7696
7699
  get(workspaceId, exporterId) {
7697
7700
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters/${exporterId}`, DTOExporterResponse);
7698
7701
  }
7702
+ deprecate(workspaceId, exporterId, body) {
7703
+ return this.requestExecutor.json(
7704
+ `/codegen/workspaces/${workspaceId}/exporters/${exporterId}/deprecation`,
7705
+ DTOExporter,
7706
+ {
7707
+ body,
7708
+ method: "PUT"
7709
+ }
7710
+ );
7711
+ }
7699
7712
  };
7700
7713
 
7701
7714
  // src/api/endpoints/codegen/jobs.ts