@supernova-studio/client 0.55.9 → 0.55.10

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
@@ -47704,9 +47704,29 @@ declare const DTOWorkspaceIntegrationGetGitObjectsInput: z.ZodObject<{
47704
47704
  }>;
47705
47705
  type DTOWorkspaceIntegrationGetGitObjectsInput = z.infer<typeof DTOWorkspaceIntegrationGetGitObjectsInput>;
47706
47706
 
47707
+ declare class DesignSystemVersionsEndpoint {
47708
+ private readonly requestExecutor;
47709
+ constructor(requestExecutor: RequestExecutor);
47710
+ list(dsId: string): Promise<{
47711
+ designSystemVersions: {
47712
+ id: string;
47713
+ meta: {
47714
+ name: string;
47715
+ description?: string | undefined;
47716
+ };
47717
+ createdAt: Date;
47718
+ version: string;
47719
+ changeLog: string;
47720
+ designSystemId: string;
47721
+ isReadonly: boolean;
47722
+ }[];
47723
+ }>;
47724
+ }
47725
+
47707
47726
  declare class DesignSystemsEndpoint {
47708
47727
  private readonly requestExecutor;
47709
- members: DesignSystemMembersEndpoint;
47728
+ readonly members: DesignSystemMembersEndpoint;
47729
+ readonly versions: DesignSystemVersionsEndpoint;
47710
47730
  constructor(requestExecutor: RequestExecutor);
47711
47731
  create(body: DTODesignSystemCreateInput): Promise<{
47712
47732
  designSystem: {
package/dist/index.d.ts CHANGED
@@ -47704,9 +47704,29 @@ declare const DTOWorkspaceIntegrationGetGitObjectsInput: z.ZodObject<{
47704
47704
  }>;
47705
47705
  type DTOWorkspaceIntegrationGetGitObjectsInput = z.infer<typeof DTOWorkspaceIntegrationGetGitObjectsInput>;
47706
47706
 
47707
+ declare class DesignSystemVersionsEndpoint {
47708
+ private readonly requestExecutor;
47709
+ constructor(requestExecutor: RequestExecutor);
47710
+ list(dsId: string): Promise<{
47711
+ designSystemVersions: {
47712
+ id: string;
47713
+ meta: {
47714
+ name: string;
47715
+ description?: string | undefined;
47716
+ };
47717
+ createdAt: Date;
47718
+ version: string;
47719
+ changeLog: string;
47720
+ designSystemId: string;
47721
+ isReadonly: boolean;
47722
+ }[];
47723
+ }>;
47724
+ }
47725
+
47707
47726
  declare class DesignSystemsEndpoint {
47708
47727
  private readonly requestExecutor;
47709
- members: DesignSystemMembersEndpoint;
47728
+ readonly members: DesignSystemMembersEndpoint;
47729
+ readonly versions: DesignSystemVersionsEndpoint;
47710
47730
  constructor(requestExecutor: RequestExecutor);
47711
47731
  create(body: DTODesignSystemCreateInput): Promise<{
47712
47732
  designSystem: {
package/dist/index.js CHANGED
@@ -5392,7 +5392,7 @@ var DTOWorkspaceIntegrationGetGitObjectsInput = _zod.z.object({
5392
5392
  // src/api/dto/design-systems/version.ts
5393
5393
  var DTODesignSystemVersion = _zod.z.object({
5394
5394
  id: _zod.z.string(),
5395
- createdAt: _zod.z.date(),
5395
+ createdAt: _zod.z.coerce.date(),
5396
5396
  meta: ObjectMeta,
5397
5397
  version: _zod.z.string(),
5398
5398
  isReadonly: _zod.z.boolean(),
@@ -6515,11 +6515,25 @@ var DesignSystemMembersEndpoint = class {
6515
6515
 
6516
6516
  // src/api/endpoints/design-systems.ts
6517
6517
 
6518
+
6519
+ // src/api/endpoints/design-system-versions.ts
6520
+ var DesignSystemVersionsEndpoint = class {
6521
+ constructor(requestExecutor) {
6522
+ this.requestExecutor = requestExecutor;
6523
+ }
6524
+ list(dsId) {
6525
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
6526
+ }
6527
+ };
6528
+
6529
+ // src/api/endpoints/design-systems.ts
6518
6530
  var DesignSystemsEndpoint = class {
6519
6531
  constructor(requestExecutor) {
6520
6532
  this.requestExecutor = requestExecutor;
6521
6533
  __publicField(this, "members");
6534
+ __publicField(this, "versions");
6522
6535
  this.members = new DesignSystemMembersEndpoint(requestExecutor);
6536
+ this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
6523
6537
  }
6524
6538
  create(body) {
6525
6539
  return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });