@supernova-studio/client 1.4.10 → 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.d.mts +300 -4
- package/dist/index.d.ts +300 -4
- package/dist/index.js +21 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7469,10 +7469,18 @@ var DTOElementPropertyValueListResponse = z261.object({
|
|
|
7469
7469
|
var DTOElementPropertyValueResponse = z261.object({
|
|
7470
7470
|
value: DTOElementPropertyValue
|
|
7471
7471
|
});
|
|
7472
|
+
var DTOElementPropertyValuesEditActionOutput = z261.object({
|
|
7473
|
+
type: z261.literal("ElementPropertyValuesEdit"),
|
|
7474
|
+
output: z261.object({ success: z261.literal(true) })
|
|
7475
|
+
});
|
|
7472
7476
|
var DTOElementPropertyValueUpsertPaylod = z261.object({
|
|
7473
7477
|
definitionId: z261.string(),
|
|
7474
7478
|
targetElementId: z261.string(),
|
|
7475
|
-
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()
|
|
7476
7484
|
});
|
|
7477
7485
|
|
|
7478
7486
|
// src/api/dto/elements/elements-action-v2.ts
|
|
@@ -7500,7 +7508,9 @@ var DTOElementActionOutput = z262.discriminatedUnion("type", [
|
|
|
7500
7508
|
DTODocumentationPageRestoreActionOutput,
|
|
7501
7509
|
DTODocumentationGroupRestoreActionOutput,
|
|
7502
7510
|
// Approvals
|
|
7503
|
-
DTODocumentationPageApprovalStateChangeActionOutput
|
|
7511
|
+
DTODocumentationPageApprovalStateChangeActionOutput,
|
|
7512
|
+
// Element properties
|
|
7513
|
+
DTOElementPropertyValuesEditActionOutput
|
|
7504
7514
|
]);
|
|
7505
7515
|
var DTOElementActionInput = z262.discriminatedUnion("type", [
|
|
7506
7516
|
// Documentation pages
|
|
@@ -7525,7 +7535,9 @@ var DTOElementActionInput = z262.discriminatedUnion("type", [
|
|
|
7525
7535
|
DTODocumentationPageRestoreActionInput,
|
|
7526
7536
|
DTODocumentationGroupRestoreActionInput,
|
|
7527
7537
|
// Approval
|
|
7528
|
-
DTODocumentationPageApprovalStateChangeActionInput
|
|
7538
|
+
DTODocumentationPageApprovalStateChangeActionInput,
|
|
7539
|
+
// Element properties
|
|
7540
|
+
DTOElementPropertyValuesEditActionInput
|
|
7529
7541
|
]).and(
|
|
7530
7542
|
z262.object({
|
|
7531
7543
|
tId: z262.string().optional()
|
|
@@ -8068,6 +8080,9 @@ var ElementsActionEndpoint = class {
|
|
|
8068
8080
|
async renderNodesAsync(dsId, vId, nodes) {
|
|
8069
8081
|
return this.action(dsId, vId, { type: "FigmaNodeRenderAsync", nodes });
|
|
8070
8082
|
}
|
|
8083
|
+
async bulkEditPropertyValues(dsId, vId, values) {
|
|
8084
|
+
return this.action(dsId, vId, { type: "ElementPropertyValuesEdit", values });
|
|
8085
|
+
}
|
|
8071
8086
|
async action(dsId, vId, input) {
|
|
8072
8087
|
return this.requestExecutor.json(
|
|
8073
8088
|
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
@@ -14423,6 +14438,8 @@ export {
|
|
|
14423
14438
|
DTOElementPropertyValueListResponse,
|
|
14424
14439
|
DTOElementPropertyValueResponse,
|
|
14425
14440
|
DTOElementPropertyValueUpsertPaylod,
|
|
14441
|
+
DTOElementPropertyValuesEditActionInput,
|
|
14442
|
+
DTOElementPropertyValuesEditActionOutput,
|
|
14426
14443
|
DTOElementView,
|
|
14427
14444
|
DTOElementViewBasePropertyColumn,
|
|
14428
14445
|
DTOElementViewColumn,
|