@supernova-studio/client 1.4.9 → 1.4.11

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.mjs CHANGED
@@ -4392,6 +4392,7 @@ var ExporterDestinationBitbucket = z153.object({
4392
4392
  workspaceSlug: z153.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4393
4393
  projectKey: z153.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4394
4394
  repoSlug: z153.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4395
+ url: nullishToOptional(z153.string()),
4395
4396
  // Legacy deprecated fields. Use `credentialId` instead
4396
4397
  connectionId: nullishToOptional(z153.string()),
4397
4398
  userId: nullishToOptional(z153.number())
@@ -7468,10 +7469,18 @@ var DTOElementPropertyValueListResponse = z261.object({
7468
7469
  var DTOElementPropertyValueResponse = z261.object({
7469
7470
  value: DTOElementPropertyValue
7470
7471
  });
7472
+ var DTOElementPropertyValuesEditActionOutput = z261.object({
7473
+ type: z261.literal("ElementPropertyValuesEdit"),
7474
+ output: z261.object({ success: z261.literal(true) })
7475
+ });
7471
7476
  var DTOElementPropertyValueUpsertPaylod = z261.object({
7472
7477
  definitionId: z261.string(),
7473
7478
  targetElementId: z261.string(),
7474
- value: z261.string().or(z261.number()).or(z261.boolean())
7479
+ value: z261.string().or(z261.number()).or(z261.boolean()).nullable()
7480
+ });
7481
+ var DTOElementPropertyValuesEditActionInput = z261.object({
7482
+ type: z261.literal("ElementPropertyValuesEdit"),
7483
+ values: DTOElementPropertyValueUpsertPaylod.array()
7475
7484
  });
7476
7485
 
7477
7486
  // src/api/dto/elements/elements-action-v2.ts
@@ -7499,7 +7508,9 @@ var DTOElementActionOutput = z262.discriminatedUnion("type", [
7499
7508
  DTODocumentationPageRestoreActionOutput,
7500
7509
  DTODocumentationGroupRestoreActionOutput,
7501
7510
  // Approvals
7502
- DTODocumentationPageApprovalStateChangeActionOutput
7511
+ DTODocumentationPageApprovalStateChangeActionOutput,
7512
+ // Element properties
7513
+ DTOElementPropertyValuesEditActionOutput
7503
7514
  ]);
7504
7515
  var DTOElementActionInput = z262.discriminatedUnion("type", [
7505
7516
  // Documentation pages
@@ -7524,7 +7535,9 @@ var DTOElementActionInput = z262.discriminatedUnion("type", [
7524
7535
  DTODocumentationPageRestoreActionInput,
7525
7536
  DTODocumentationGroupRestoreActionInput,
7526
7537
  // Approval
7527
- DTODocumentationPageApprovalStateChangeActionInput
7538
+ DTODocumentationPageApprovalStateChangeActionInput,
7539
+ // Element properties
7540
+ DTOElementPropertyValuesEditActionInput
7528
7541
  ]).and(
7529
7542
  z262.object({
7530
7543
  tId: z262.string().optional()
@@ -8067,6 +8080,9 @@ var ElementsActionEndpoint = class {
8067
8080
  async renderNodesAsync(dsId, vId, nodes) {
8068
8081
  return this.action(dsId, vId, { type: "FigmaNodeRenderAsync", nodes });
8069
8082
  }
8083
+ async bulkEditPropertyValues(dsId, vId, values) {
8084
+ return this.action(dsId, vId, { type: "ElementPropertyValuesEdit", values });
8085
+ }
8070
8086
  async action(dsId, vId, input) {
8071
8087
  return this.requestExecutor.json(
8072
8088
  `/design-systems/${dsId}/versions/${vId}/elements-action`,
@@ -14422,6 +14438,8 @@ export {
14422
14438
  DTOElementPropertyValueListResponse,
14423
14439
  DTOElementPropertyValueResponse,
14424
14440
  DTOElementPropertyValueUpsertPaylod,
14441
+ DTOElementPropertyValuesEditActionInput,
14442
+ DTOElementPropertyValuesEditActionOutput,
14425
14443
  DTOElementView,
14426
14444
  DTOElementViewBasePropertyColumn,
14427
14445
  DTOElementViewColumn,