@snaptrude/plugin-core 0.9.11 → 0.9.12
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/CHANGELOG.md +8 -0
- package/api-manifest.json +103 -66
- package/dist/api/design/family.d.ts +561 -0
- package/dist/api/design/family.d.ts.map +1 -0
- package/dist/api/design/index.d.ts +5 -0
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +7 -0
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/index.cjs +1605 -1537
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1596 -1537
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/design/family.ts +591 -0
- package/src/api/design/index.ts +5 -0
- package/src/api/design/query/index.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -2414,6 +2414,7 @@ var PluginEntityType = z46.enum([
|
|
|
2414
2414
|
"curtainWall",
|
|
2415
2415
|
"mullion",
|
|
2416
2416
|
"panel",
|
|
2417
|
+
"parametricComponent",
|
|
2417
2418
|
"grid"
|
|
2418
2419
|
]);
|
|
2419
2420
|
var PluginEntityFilter = z46.object({
|
|
@@ -3094,52 +3095,101 @@ var PluginDesignTypesGetArgs = z62.object({
|
|
|
3094
3095
|
typeId: z62.string()
|
|
3095
3096
|
});
|
|
3096
3097
|
|
|
3097
|
-
// src/api/design/
|
|
3098
|
+
// src/api/design/family.ts
|
|
3098
3099
|
import * as z63 from "zod";
|
|
3099
|
-
var
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3100
|
+
var PluginDesignFamilyApi = class {
|
|
3101
|
+
constructor() {
|
|
3102
|
+
}
|
|
3103
|
+
};
|
|
3104
|
+
var PluginFamilyBundleSchema = z63.object({
|
|
3105
|
+
root: z63.record(z63.string(), z63.unknown()),
|
|
3106
|
+
deps: z63.record(z63.string(), z63.record(z63.string(), z63.unknown())).optional()
|
|
3107
|
+
});
|
|
3108
|
+
var PluginFamilySnapshotOption = z63.union([
|
|
3109
|
+
z63.boolean(),
|
|
3110
|
+
z63.object({
|
|
3111
|
+
views: z63.array(z63.enum(["iso", "front", "right", "top"])).optional(),
|
|
3112
|
+
/** Pixels per tile (square), 64–2048; default 512. */
|
|
3113
|
+
tileSize: z63.number().optional()
|
|
3114
|
+
})
|
|
3115
|
+
]);
|
|
3116
|
+
var PluginDesignFamilyPrepareArgs = z63.object({
|
|
3117
|
+
bundle: PluginFamilyBundleSchema.optional(),
|
|
3118
|
+
spec: PluginFamilyBundleSchema.optional(),
|
|
3119
|
+
snapshot: PluginFamilySnapshotOption.optional()
|
|
3120
|
+
});
|
|
3121
|
+
var PluginDesignFamilyFlexArgs = z63.object({
|
|
3122
|
+
values: z63.record(z63.string(), z63.union([z63.number(), z63.string()])),
|
|
3123
|
+
snapshot: PluginFamilySnapshotOption.optional()
|
|
3124
|
+
});
|
|
3125
|
+
var PluginDesignFamilyCreateArgs = z63.object({
|
|
3126
|
+
name: z63.string().optional(),
|
|
3127
|
+
teamId: z63.string().optional()
|
|
3128
|
+
});
|
|
3129
|
+
var PluginDesignFamilyPlaceArgs = z63.object({
|
|
3130
|
+
id: z63.string().optional(),
|
|
3131
|
+
version: z63.number().int().positive().optional(),
|
|
3132
|
+
position: Vec3Components.optional(),
|
|
3133
|
+
rotation: z63.number().optional(),
|
|
3134
|
+
values: z63.record(z63.string(), z63.union([z63.number(), z63.string()])).optional(),
|
|
3135
|
+
storey: z63.number().int().optional()
|
|
3136
|
+
});
|
|
3137
|
+
var PluginDesignFamilyGetParametersArgs = z63.object({
|
|
3138
|
+
component: ComponentHandle,
|
|
3139
|
+
/** Also return a picture of this instance (its recipe re-run at its values, with its paint). */
|
|
3140
|
+
snapshot: PluginFamilySnapshotOption.optional()
|
|
3141
|
+
});
|
|
3142
|
+
var PluginDesignFamilySetParametersArgs = z63.object({
|
|
3143
|
+
component: ComponentHandle,
|
|
3144
|
+
values: z63.record(z63.string(), z63.union([z63.number(), z63.string()]))
|
|
3145
|
+
});
|
|
3146
|
+
|
|
3147
|
+
// src/api/design/grids.ts
|
|
3148
|
+
import * as z64 from "zod";
|
|
3149
|
+
var PluginGridLineTagPolicy = z64.enum(["rewrite", "preserve"]);
|
|
3150
|
+
var PluginGridLineAddress = z64.object({
|
|
3151
|
+
wing: z64.number().int().nonnegative(),
|
|
3152
|
+
line: z64.number().int().nonnegative()
|
|
3153
|
+
});
|
|
3154
|
+
var PluginGridWingEntry = z64.object({
|
|
3155
|
+
wing: z64.number().int().nonnegative(),
|
|
3156
|
+
spacing: z64.number().positive().finite().optional(),
|
|
3157
|
+
count: z64.number().int().min(1).optional(),
|
|
3158
|
+
spanMin: z64.number().finite().optional(),
|
|
3159
|
+
spanMax: z64.number().finite().optional()
|
|
3160
|
+
});
|
|
3161
|
+
var PluginDesignGridsUpdateWingsArgs = z64.object({
|
|
3112
3162
|
grid: ComponentHandle,
|
|
3113
|
-
wings:
|
|
3114
|
-
});
|
|
3115
|
-
var PluginGridLineEntry =
|
|
3116
|
-
wing:
|
|
3117
|
-
line:
|
|
3118
|
-
tag:
|
|
3119
|
-
distanceToPrevious:
|
|
3120
|
-
distanceToNext:
|
|
3163
|
+
wings: z64.array(PluginGridWingEntry).min(1)
|
|
3164
|
+
});
|
|
3165
|
+
var PluginGridLineEntry = z64.object({
|
|
3166
|
+
wing: z64.number().int().nonnegative(),
|
|
3167
|
+
line: z64.number().int().nonnegative(),
|
|
3168
|
+
tag: z64.string().min(1).optional(),
|
|
3169
|
+
distanceToPrevious: z64.number().positive().finite().optional(),
|
|
3170
|
+
distanceToNext: z64.number().positive().finite().optional(),
|
|
3121
3171
|
props: PluginGridStyleOptions.optional(),
|
|
3122
|
-
visible:
|
|
3172
|
+
visible: z64.literal(false).optional()
|
|
3123
3173
|
}).superRefine((entry, ctx) => {
|
|
3124
3174
|
if (entry.distanceToPrevious !== void 0 && entry.distanceToNext !== void 0) {
|
|
3125
3175
|
ctx.addIssue({
|
|
3126
|
-
code:
|
|
3176
|
+
code: z64.ZodIssueCode.custom,
|
|
3127
3177
|
message: "distanceToPrevious and distanceToNext are mutually exclusive on one line entry"
|
|
3128
3178
|
});
|
|
3129
3179
|
}
|
|
3130
3180
|
});
|
|
3131
|
-
var PluginDesignGridsUpdateLinesArgs =
|
|
3181
|
+
var PluginDesignGridsUpdateLinesArgs = z64.object({
|
|
3132
3182
|
grid: ComponentHandle,
|
|
3133
|
-
lines:
|
|
3183
|
+
lines: z64.array(PluginGridLineEntry).min(1)
|
|
3134
3184
|
});
|
|
3135
|
-
var PluginDesignGridsAddLineArgs =
|
|
3185
|
+
var PluginDesignGridsAddLineArgs = z64.object({
|
|
3136
3186
|
grid: ComponentHandle,
|
|
3137
|
-
wing:
|
|
3138
|
-
position:
|
|
3187
|
+
wing: z64.number().int().nonnegative(),
|
|
3188
|
+
position: z64.number().finite()
|
|
3139
3189
|
});
|
|
3140
|
-
var PluginDesignGridsRemoveLinesArgs =
|
|
3190
|
+
var PluginDesignGridsRemoveLinesArgs = z64.object({
|
|
3141
3191
|
grid: ComponentHandle,
|
|
3142
|
-
lines:
|
|
3192
|
+
lines: z64.array(PluginGridLineAddress).min(1),
|
|
3143
3193
|
tagPolicy: PluginGridLineTagPolicy.optional()
|
|
3144
3194
|
});
|
|
3145
3195
|
var PluginDesignGridsApi = class {
|
|
@@ -3154,37 +3204,37 @@ var PluginDesignApi = class {
|
|
|
3154
3204
|
};
|
|
3155
3205
|
|
|
3156
3206
|
// src/api/entity/buildableEnvelope.ts
|
|
3157
|
-
import * as
|
|
3207
|
+
import * as z65 from "zod";
|
|
3158
3208
|
var PluginBuildableEnvelopeApi = class {
|
|
3159
3209
|
constructor() {
|
|
3160
3210
|
}
|
|
3161
3211
|
};
|
|
3162
|
-
var PluginBuildableEnvelopePolygonVertex =
|
|
3163
|
-
|
|
3164
|
-
|
|
3212
|
+
var PluginBuildableEnvelopePolygonVertex = z65.union([
|
|
3213
|
+
z65.object({ x: z65.number().finite(), z: z65.number().finite() }).strict(),
|
|
3214
|
+
z65.tuple([z65.number().finite(), z65.number().finite()])
|
|
3165
3215
|
]);
|
|
3166
|
-
var PluginBuildableEnvelopeVerticalCap =
|
|
3167
|
-
|
|
3168
|
-
kind:
|
|
3169
|
-
maxHeight:
|
|
3216
|
+
var PluginBuildableEnvelopeVerticalCap = z65.discriminatedUnion("kind", [
|
|
3217
|
+
z65.object({
|
|
3218
|
+
kind: z65.literal("max_height"),
|
|
3219
|
+
maxHeight: z65.number().finite().positive()
|
|
3170
3220
|
}).strict(),
|
|
3171
|
-
|
|
3172
|
-
kind:
|
|
3173
|
-
maxFloors:
|
|
3221
|
+
z65.object({
|
|
3222
|
+
kind: z65.literal("max_floors"),
|
|
3223
|
+
maxFloors: z65.number().finite().int().positive()
|
|
3174
3224
|
}).strict()
|
|
3175
3225
|
]);
|
|
3176
|
-
var PluginBuildableEnvelopeSetbackTier =
|
|
3177
|
-
aboveHeight:
|
|
3178
|
-
front:
|
|
3179
|
-
side:
|
|
3180
|
-
rear:
|
|
3226
|
+
var PluginBuildableEnvelopeSetbackTier = z65.object({
|
|
3227
|
+
aboveHeight: z65.number().finite().nonnegative(),
|
|
3228
|
+
front: z65.number().finite().nonnegative(),
|
|
3229
|
+
side: z65.number().finite().nonnegative(),
|
|
3230
|
+
rear: z65.number().finite().nonnegative()
|
|
3181
3231
|
}).strict();
|
|
3182
3232
|
function refineSetbackTiers(args, ctx) {
|
|
3183
3233
|
const tiers = args.setbacks;
|
|
3184
3234
|
if (tiers.length === 0) return;
|
|
3185
3235
|
if (tiers[0].aboveHeight !== 0) {
|
|
3186
3236
|
ctx.addIssue({
|
|
3187
|
-
code:
|
|
3237
|
+
code: z65.ZodIssueCode.custom,
|
|
3188
3238
|
path: ["setbacks", 0, "aboveHeight"],
|
|
3189
3239
|
message: "Ground tier required: setbacks[0].aboveHeight must be 0."
|
|
3190
3240
|
});
|
|
@@ -3192,66 +3242,66 @@ function refineSetbackTiers(args, ctx) {
|
|
|
3192
3242
|
for (let i = 1; i < tiers.length; i++) {
|
|
3193
3243
|
if (!(tiers[i].aboveHeight > tiers[i - 1].aboveHeight)) {
|
|
3194
3244
|
ctx.addIssue({
|
|
3195
|
-
code:
|
|
3245
|
+
code: z65.ZodIssueCode.custom,
|
|
3196
3246
|
path: ["setbacks", i, "aboveHeight"],
|
|
3197
3247
|
message: "Setback tiers must be ordered by strictly increasing aboveHeight."
|
|
3198
3248
|
});
|
|
3199
3249
|
}
|
|
3200
3250
|
}
|
|
3201
3251
|
}
|
|
3202
|
-
var PluginBuildableEnvelopeCreateArgs =
|
|
3203
|
-
sitePolygon:
|
|
3204
|
-
lengthUnit:
|
|
3205
|
-
setbacks:
|
|
3252
|
+
var PluginBuildableEnvelopeCreateArgs = z65.object({
|
|
3253
|
+
sitePolygon: z65.array(PluginBuildableEnvelopePolygonVertex).min(3),
|
|
3254
|
+
lengthUnit: z65.union([z65.literal("ft"), z65.literal("m")]),
|
|
3255
|
+
setbacks: z65.array(PluginBuildableEnvelopeSetbackTier).min(1),
|
|
3206
3256
|
verticalCap: PluginBuildableEnvelopeVerticalCap,
|
|
3207
|
-
floorToFloor:
|
|
3208
|
-
farRatio:
|
|
3209
|
-
lotCoverageMaxPct:
|
|
3257
|
+
floorToFloor: z65.number().finite().positive(),
|
|
3258
|
+
farRatio: z65.number().finite().positive().optional(),
|
|
3259
|
+
lotCoverageMaxPct: z65.number().finite().min(0).max(100).optional()
|
|
3210
3260
|
}).strict().superRefine(refineSetbackTiers);
|
|
3211
|
-
var PluginBuildableEnvelopeCreateResult =
|
|
3212
|
-
buildableEnvelopeId:
|
|
3261
|
+
var PluginBuildableEnvelopeCreateResult = z65.object({
|
|
3262
|
+
buildableEnvelopeId: z65.string().min(1)
|
|
3213
3263
|
}).strict();
|
|
3214
|
-
var PluginBuildableEnvelopeUpdateArgs =
|
|
3215
|
-
buildableEnvelopeId:
|
|
3216
|
-
sitePolygon:
|
|
3217
|
-
lengthUnit:
|
|
3218
|
-
setbacks:
|
|
3264
|
+
var PluginBuildableEnvelopeUpdateArgs = z65.object({
|
|
3265
|
+
buildableEnvelopeId: z65.string().min(1),
|
|
3266
|
+
sitePolygon: z65.array(PluginBuildableEnvelopePolygonVertex).min(3),
|
|
3267
|
+
lengthUnit: z65.union([z65.literal("ft"), z65.literal("m")]),
|
|
3268
|
+
setbacks: z65.array(PluginBuildableEnvelopeSetbackTier).min(1),
|
|
3219
3269
|
verticalCap: PluginBuildableEnvelopeVerticalCap,
|
|
3220
|
-
floorToFloor:
|
|
3221
|
-
farRatio:
|
|
3222
|
-
lotCoverageMaxPct:
|
|
3270
|
+
floorToFloor: z65.number().finite().positive(),
|
|
3271
|
+
farRatio: z65.number().finite().positive().optional(),
|
|
3272
|
+
lotCoverageMaxPct: z65.number().finite().min(0).max(100).optional()
|
|
3223
3273
|
}).strict().superRefine(refineSetbackTiers);
|
|
3224
|
-
var PluginBuildableEnvelopeUpdateResult =
|
|
3225
|
-
buildableEnvelopeId:
|
|
3274
|
+
var PluginBuildableEnvelopeUpdateResult = z65.object({
|
|
3275
|
+
buildableEnvelopeId: z65.string().min(1)
|
|
3226
3276
|
}).strict();
|
|
3227
3277
|
|
|
3228
3278
|
// src/api/entity/referenceLine.ts
|
|
3229
|
-
import * as
|
|
3279
|
+
import * as z66 from "zod";
|
|
3230
3280
|
var PluginReferenceLineApi = class {
|
|
3231
3281
|
constructor() {
|
|
3232
3282
|
}
|
|
3233
3283
|
};
|
|
3234
|
-
var PluginReferenceLineCreateMultiArgs =
|
|
3284
|
+
var PluginReferenceLineCreateMultiArgs = z66.object({
|
|
3235
3285
|
profile: ProfileHandle
|
|
3236
3286
|
});
|
|
3237
|
-
var PluginReferenceLineCreateMultiResult =
|
|
3238
|
-
referenceLineIds:
|
|
3287
|
+
var PluginReferenceLineCreateMultiResult = z66.object({
|
|
3288
|
+
referenceLineIds: z66.array(z66.string())
|
|
3239
3289
|
});
|
|
3240
|
-
var PluginReferenceLineGetProperty =
|
|
3290
|
+
var PluginReferenceLineGetProperty = z66.enum([
|
|
3241
3291
|
"curve"
|
|
3242
3292
|
]);
|
|
3243
|
-
var PluginReferenceLineGetArgs =
|
|
3244
|
-
referenceLineId:
|
|
3245
|
-
properties:
|
|
3293
|
+
var PluginReferenceLineGetArgs = z66.object({
|
|
3294
|
+
referenceLineId: z66.string(),
|
|
3295
|
+
properties: z66.array(PluginReferenceLineGetProperty)
|
|
3246
3296
|
});
|
|
3247
|
-
var PluginReferenceLineGetResult =
|
|
3297
|
+
var PluginReferenceLineGetResult = z66.object({
|
|
3248
3298
|
curve: CurveHandle
|
|
3249
3299
|
}).partial();
|
|
3250
|
-
var PluginReferenceLineGetAllResult =
|
|
3251
|
-
referenceLineIds:
|
|
3300
|
+
var PluginReferenceLineGetAllResult = z66.object({
|
|
3301
|
+
referenceLineIds: z66.array(z66.string())
|
|
3252
3302
|
});
|
|
3253
|
-
var PluginReferenceLineDeleteArgs =
|
|
3254
|
-
referenceLineId:
|
|
3303
|
+
var PluginReferenceLineDeleteArgs = z66.object({
|
|
3304
|
+
referenceLineId: z66.string()
|
|
3255
3305
|
});
|
|
3256
3306
|
|
|
3257
3307
|
// src/api/entity/index.ts
|
|
@@ -3261,27 +3311,27 @@ var PluginEntityApi = class {
|
|
|
3261
3311
|
};
|
|
3262
3312
|
|
|
3263
3313
|
// src/api/program/departments.ts
|
|
3264
|
-
import * as
|
|
3314
|
+
import * as z68 from "zod";
|
|
3265
3315
|
|
|
3266
3316
|
// src/api/program/metrics.ts
|
|
3267
|
-
import * as
|
|
3317
|
+
import * as z67 from "zod";
|
|
3268
3318
|
var PluginProgramMetricsApi = class {
|
|
3269
3319
|
constructor() {
|
|
3270
3320
|
}
|
|
3271
3321
|
};
|
|
3272
|
-
var PluginAreaUnit =
|
|
3273
|
-
var PluginProgramDepartmentMetric =
|
|
3274
|
-
departmentId:
|
|
3275
|
-
name:
|
|
3276
|
-
targetArea:
|
|
3277
|
-
allocatedArea:
|
|
3322
|
+
var PluginAreaUnit = z67.enum(["ft2", "m2"]);
|
|
3323
|
+
var PluginProgramDepartmentMetric = z67.object({
|
|
3324
|
+
departmentId: z67.string(),
|
|
3325
|
+
name: z67.string(),
|
|
3326
|
+
targetArea: z67.number().nullable(),
|
|
3327
|
+
allocatedArea: z67.number()
|
|
3278
3328
|
});
|
|
3279
|
-
var PluginProgramMetricsSummary =
|
|
3329
|
+
var PluginProgramMetricsSummary = z67.object({
|
|
3280
3330
|
units: PluginAreaUnit,
|
|
3281
|
-
totalTargetArea:
|
|
3282
|
-
totalAllocatedArea:
|
|
3283
|
-
unassignedArea:
|
|
3284
|
-
departments:
|
|
3331
|
+
totalTargetArea: z67.number(),
|
|
3332
|
+
totalAllocatedArea: z67.number(),
|
|
3333
|
+
unassignedArea: z67.number(),
|
|
3334
|
+
departments: z67.array(PluginProgramDepartmentMetric)
|
|
3285
3335
|
}).refine(
|
|
3286
3336
|
(s) => {
|
|
3287
3337
|
const summed = s.unassignedArea + s.departments.reduce((acc, d) => acc + d.allocatedArea, 0);
|
|
@@ -3298,19 +3348,19 @@ var PluginProgramDepartmentsApi = class {
|
|
|
3298
3348
|
constructor() {
|
|
3299
3349
|
}
|
|
3300
3350
|
};
|
|
3301
|
-
var PluginProgramDepartment =
|
|
3302
|
-
id:
|
|
3303
|
-
name:
|
|
3304
|
-
color:
|
|
3305
|
-
targetArea:
|
|
3306
|
-
targetCount:
|
|
3351
|
+
var PluginProgramDepartment = z68.object({
|
|
3352
|
+
id: z68.string(),
|
|
3353
|
+
name: z68.string(),
|
|
3354
|
+
color: z68.string(),
|
|
3355
|
+
targetArea: z68.number().nullable(),
|
|
3356
|
+
targetCount: z68.number()
|
|
3307
3357
|
});
|
|
3308
|
-
var PluginProgramDepartmentsListResult =
|
|
3358
|
+
var PluginProgramDepartmentsListResult = z68.object({
|
|
3309
3359
|
units: PluginAreaUnit,
|
|
3310
|
-
departments:
|
|
3360
|
+
departments: z68.array(PluginProgramDepartment)
|
|
3311
3361
|
});
|
|
3312
|
-
var PluginProgramDepartmentsGetArgs =
|
|
3313
|
-
departmentId:
|
|
3362
|
+
var PluginProgramDepartmentsGetArgs = z68.object({
|
|
3363
|
+
departmentId: z68.string()
|
|
3314
3364
|
});
|
|
3315
3365
|
var PluginProgramDepartmentsGetResult = PluginProgramDepartment.extend(
|
|
3316
3366
|
{
|
|
@@ -3320,115 +3370,115 @@ var PluginProgramDepartmentsGetResult = PluginProgramDepartment.extend(
|
|
|
3320
3370
|
var PluginProgramDepartmentRecord = PluginProgramDepartment.extend({
|
|
3321
3371
|
units: PluginAreaUnit
|
|
3322
3372
|
});
|
|
3323
|
-
var PluginProgramDepartmentsCreateArgs =
|
|
3324
|
-
name:
|
|
3325
|
-
color:
|
|
3373
|
+
var PluginProgramDepartmentsCreateArgs = z68.object({
|
|
3374
|
+
name: z68.string(),
|
|
3375
|
+
color: z68.string()
|
|
3326
3376
|
});
|
|
3327
|
-
var PluginProgramDepartmentsCreateResult =
|
|
3328
|
-
departmentId:
|
|
3377
|
+
var PluginProgramDepartmentsCreateResult = z68.object({
|
|
3378
|
+
departmentId: z68.string()
|
|
3329
3379
|
});
|
|
3330
|
-
var PluginProgramDepartmentsUpdateArgs =
|
|
3331
|
-
departmentId:
|
|
3332
|
-
name:
|
|
3333
|
-
color:
|
|
3380
|
+
var PluginProgramDepartmentsUpdateArgs = z68.object({
|
|
3381
|
+
departmentId: z68.string(),
|
|
3382
|
+
name: z68.string().optional(),
|
|
3383
|
+
color: z68.string().optional()
|
|
3334
3384
|
});
|
|
3335
3385
|
var PluginProgramDepartmentsUpdateResult = PluginProgramDepartmentRecord;
|
|
3336
|
-
var PluginProgramDepartmentsAssignArgs =
|
|
3337
|
-
departmentId:
|
|
3338
|
-
spaceIds:
|
|
3386
|
+
var PluginProgramDepartmentsAssignArgs = z68.object({
|
|
3387
|
+
departmentId: z68.string(),
|
|
3388
|
+
spaceIds: z68.array(ComponentHandle).min(1)
|
|
3339
3389
|
});
|
|
3340
|
-
var PluginProgramDepartmentsAssignResult =
|
|
3341
|
-
departmentId:
|
|
3342
|
-
spaceIds:
|
|
3390
|
+
var PluginProgramDepartmentsAssignResult = z68.object({
|
|
3391
|
+
departmentId: z68.string(),
|
|
3392
|
+
spaceIds: z68.array(ComponentHandle)
|
|
3343
3393
|
});
|
|
3344
|
-
var PluginProgramDepartmentsUnassignArgs =
|
|
3345
|
-
spaceIds:
|
|
3394
|
+
var PluginProgramDepartmentsUnassignArgs = z68.object({
|
|
3395
|
+
spaceIds: z68.array(ComponentHandle).min(1)
|
|
3346
3396
|
});
|
|
3347
|
-
var PluginProgramDepartmentsUnassignResult =
|
|
3348
|
-
spaceIds:
|
|
3397
|
+
var PluginProgramDepartmentsUnassignResult = z68.object({
|
|
3398
|
+
spaceIds: z68.array(ComponentHandle)
|
|
3349
3399
|
});
|
|
3350
|
-
var PluginProgramDepartmentsSetTargetAreaArgs =
|
|
3351
|
-
departmentId:
|
|
3352
|
-
targetArea:
|
|
3400
|
+
var PluginProgramDepartmentsSetTargetAreaArgs = z68.object({
|
|
3401
|
+
departmentId: z68.string(),
|
|
3402
|
+
targetArea: z68.number(),
|
|
3353
3403
|
units: PluginAreaUnit.optional()
|
|
3354
3404
|
});
|
|
3355
3405
|
var PluginProgramDepartmentsSetTargetAreaResult = PluginProgramDepartmentRecord;
|
|
3356
|
-
var PluginProgramDepartmentsSetTargetCountArgs =
|
|
3357
|
-
departmentId:
|
|
3358
|
-
targetCount:
|
|
3406
|
+
var PluginProgramDepartmentsSetTargetCountArgs = z68.object({
|
|
3407
|
+
departmentId: z68.string(),
|
|
3408
|
+
targetCount: z68.number().int().nonnegative()
|
|
3359
3409
|
});
|
|
3360
3410
|
var PluginProgramDepartmentsSetTargetCountResult = PluginProgramDepartmentRecord;
|
|
3361
|
-
var PluginProgramDepartmentsDeleteArgs =
|
|
3362
|
-
departmentId:
|
|
3411
|
+
var PluginProgramDepartmentsDeleteArgs = z68.object({
|
|
3412
|
+
departmentId: z68.string()
|
|
3363
3413
|
});
|
|
3364
|
-
var PluginProgramDepartmentsDeleteResult =
|
|
3365
|
-
departmentId:
|
|
3366
|
-
reassignedSpaceIds:
|
|
3414
|
+
var PluginProgramDepartmentsDeleteResult = z68.object({
|
|
3415
|
+
departmentId: z68.string(),
|
|
3416
|
+
reassignedSpaceIds: z68.array(ComponentHandle)
|
|
3367
3417
|
});
|
|
3368
3418
|
|
|
3369
3419
|
// src/api/program/adjacency.ts
|
|
3370
|
-
import * as
|
|
3420
|
+
import * as z69 from "zod";
|
|
3371
3421
|
var PluginProgramAdjacencyApi = class {
|
|
3372
3422
|
constructor() {
|
|
3373
3423
|
}
|
|
3374
3424
|
};
|
|
3375
|
-
var PluginAdjacencyLevel =
|
|
3376
|
-
var PluginProgramAdjacencyGetMatrixArgs =
|
|
3425
|
+
var PluginAdjacencyLevel = z69.enum(["department", "space"]);
|
|
3426
|
+
var PluginProgramAdjacencyGetMatrixArgs = z69.object({
|
|
3377
3427
|
level: PluginAdjacencyLevel,
|
|
3378
|
-
ids:
|
|
3428
|
+
ids: z69.array(z69.string()).optional()
|
|
3379
3429
|
});
|
|
3380
|
-
var PluginProgramAdjacencyGetMatrixResult =
|
|
3381
|
-
ids:
|
|
3382
|
-
departmentIds:
|
|
3383
|
-
matrix:
|
|
3430
|
+
var PluginProgramAdjacencyGetMatrixResult = z69.object({
|
|
3431
|
+
ids: z69.array(z69.string()),
|
|
3432
|
+
departmentIds: z69.array(z69.string().nullable()).optional(),
|
|
3433
|
+
matrix: z69.array(z69.array(z69.number()))
|
|
3384
3434
|
});
|
|
3385
|
-
var PluginProgramAdjacencyComputeResult =
|
|
3386
|
-
success:
|
|
3387
|
-
error:
|
|
3435
|
+
var PluginProgramAdjacencyComputeResult = z69.object({
|
|
3436
|
+
success: z69.boolean(),
|
|
3437
|
+
error: z69.string().optional()
|
|
3388
3438
|
});
|
|
3389
3439
|
|
|
3390
3440
|
// src/api/program/layout.ts
|
|
3391
|
-
import * as
|
|
3441
|
+
import * as z70 from "zod";
|
|
3392
3442
|
var PluginProgramLayoutApi = class {
|
|
3393
3443
|
constructor() {
|
|
3394
3444
|
}
|
|
3395
3445
|
};
|
|
3396
|
-
var PluginProgramLayoutRunArgs =
|
|
3397
|
-
spaceIds:
|
|
3398
|
-
departmentIds:
|
|
3399
|
-
envelopeId:
|
|
3400
|
-
autoCommit:
|
|
3446
|
+
var PluginProgramLayoutRunArgs = z70.object({
|
|
3447
|
+
spaceIds: z70.array(z70.string()).optional(),
|
|
3448
|
+
departmentIds: z70.array(z70.string()).optional(),
|
|
3449
|
+
envelopeId: z70.string().optional(),
|
|
3450
|
+
autoCommit: z70.boolean().optional()
|
|
3401
3451
|
});
|
|
3402
|
-
var PluginProgramLayoutRunResult =
|
|
3403
|
-
success:
|
|
3404
|
-
error:
|
|
3452
|
+
var PluginProgramLayoutRunResult = z70.object({
|
|
3453
|
+
success: z70.boolean(),
|
|
3454
|
+
error: z70.string().optional()
|
|
3405
3455
|
});
|
|
3406
|
-
var PluginProgramLayoutJobStatus =
|
|
3456
|
+
var PluginProgramLayoutJobStatus = z70.enum([
|
|
3407
3457
|
"running",
|
|
3408
3458
|
"active",
|
|
3409
3459
|
"inactive",
|
|
3410
3460
|
"pendingReview"
|
|
3411
3461
|
]);
|
|
3412
|
-
var PluginProgramLayoutJobState =
|
|
3462
|
+
var PluginProgramLayoutJobState = z70.object({
|
|
3413
3463
|
status: PluginProgramLayoutJobStatus,
|
|
3414
|
-
totalSolutions:
|
|
3464
|
+
totalSolutions: z70.number().int().optional()
|
|
3415
3465
|
});
|
|
3416
3466
|
var PluginProgramLayoutStateResult = PluginProgramLayoutJobState.nullable();
|
|
3417
|
-
var PluginProgramLayoutApplySolutionArgs =
|
|
3418
|
-
index:
|
|
3467
|
+
var PluginProgramLayoutApplySolutionArgs = z70.object({
|
|
3468
|
+
index: z70.number().int().min(0)
|
|
3419
3469
|
});
|
|
3420
|
-
var PluginProgramLayoutApplyResult =
|
|
3421
|
-
success:
|
|
3422
|
-
error:
|
|
3470
|
+
var PluginProgramLayoutApplyResult = z70.object({
|
|
3471
|
+
success: z70.boolean(),
|
|
3472
|
+
error: z70.string().optional()
|
|
3423
3473
|
});
|
|
3424
|
-
var PluginProgramLayoutStackResult =
|
|
3425
|
-
success:
|
|
3426
|
-
skippedStoreys:
|
|
3427
|
-
error:
|
|
3474
|
+
var PluginProgramLayoutStackResult = z70.object({
|
|
3475
|
+
success: z70.boolean(),
|
|
3476
|
+
skippedStoreys: z70.array(z70.number()),
|
|
3477
|
+
error: z70.string().optional()
|
|
3428
3478
|
});
|
|
3429
3479
|
|
|
3430
3480
|
// src/api/program/spreadsheet.ts
|
|
3431
|
-
import * as
|
|
3481
|
+
import * as z71 from "zod";
|
|
3432
3482
|
var PluginProgramSpreadsheetApi = class {
|
|
3433
3483
|
constructor() {
|
|
3434
3484
|
}
|
|
@@ -3445,85 +3495,85 @@ var PluginProgramSpreadsheetDatasetsApi = class {
|
|
|
3445
3495
|
constructor() {
|
|
3446
3496
|
}
|
|
3447
3497
|
};
|
|
3448
|
-
var PluginSpreadsheetCell =
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3498
|
+
var PluginSpreadsheetCell = z71.union([
|
|
3499
|
+
z71.string(),
|
|
3500
|
+
z71.number(),
|
|
3501
|
+
z71.boolean(),
|
|
3502
|
+
z71.null()
|
|
3453
3503
|
]);
|
|
3454
|
-
var PluginSpreadsheetAlign =
|
|
3455
|
-
var PluginSpreadsheetColumn =
|
|
3456
|
-
key:
|
|
3457
|
-
header:
|
|
3458
|
-
width:
|
|
3459
|
-
format:
|
|
3504
|
+
var PluginSpreadsheetAlign = z71.enum(["left", "center", "right"]);
|
|
3505
|
+
var PluginSpreadsheetColumn = z71.object({
|
|
3506
|
+
key: z71.string(),
|
|
3507
|
+
header: z71.string(),
|
|
3508
|
+
width: z71.number().optional(),
|
|
3509
|
+
format: z71.string().optional(),
|
|
3460
3510
|
align: PluginSpreadsheetAlign.optional()
|
|
3461
3511
|
});
|
|
3462
|
-
var PluginSpreadsheetTotal =
|
|
3463
|
-
column:
|
|
3464
|
-
fn:
|
|
3465
|
-
label:
|
|
3466
|
-
});
|
|
3467
|
-
var PluginProgramSpreadsheetRenderArgs =
|
|
3468
|
-
sheetName:
|
|
3469
|
-
columns:
|
|
3470
|
-
rows:
|
|
3471
|
-
title:
|
|
3472
|
-
startCell:
|
|
3473
|
-
whenExists:
|
|
3474
|
-
asTable:
|
|
3475
|
-
freezeHeader:
|
|
3476
|
-
totals:
|
|
3477
|
-
});
|
|
3478
|
-
var PluginProgramSpreadsheetRenderResult =
|
|
3479
|
-
sheetName:
|
|
3480
|
-
range:
|
|
3481
|
-
headerRange:
|
|
3482
|
-
rowCount:
|
|
3483
|
-
colCount:
|
|
3484
|
-
tableName:
|
|
3485
|
-
replaced:
|
|
3486
|
-
});
|
|
3487
|
-
var PluginProgramSpreadsheetRenderDatasetArgs =
|
|
3488
|
-
sheetName:
|
|
3489
|
-
title:
|
|
3490
|
-
filter:
|
|
3491
|
-
});
|
|
3492
|
-
var PluginSpreadsheetExportFormat =
|
|
3493
|
-
var PluginProgramSpreadsheetExportArgs =
|
|
3512
|
+
var PluginSpreadsheetTotal = z71.object({
|
|
3513
|
+
column: z71.string(),
|
|
3514
|
+
fn: z71.enum(["sum", "avg", "count", "min", "max"]),
|
|
3515
|
+
label: z71.string().optional()
|
|
3516
|
+
});
|
|
3517
|
+
var PluginProgramSpreadsheetRenderArgs = z71.object({
|
|
3518
|
+
sheetName: z71.string(),
|
|
3519
|
+
columns: z71.array(PluginSpreadsheetColumn),
|
|
3520
|
+
rows: z71.array(z71.record(z71.string(), PluginSpreadsheetCell)),
|
|
3521
|
+
title: z71.string().optional(),
|
|
3522
|
+
startCell: z71.string().optional(),
|
|
3523
|
+
whenExists: z71.enum(["replace", "error"]).optional(),
|
|
3524
|
+
asTable: z71.boolean().optional(),
|
|
3525
|
+
freezeHeader: z71.boolean().optional(),
|
|
3526
|
+
totals: z71.array(PluginSpreadsheetTotal).optional()
|
|
3527
|
+
});
|
|
3528
|
+
var PluginProgramSpreadsheetRenderResult = z71.object({
|
|
3529
|
+
sheetName: z71.string(),
|
|
3530
|
+
range: z71.string(),
|
|
3531
|
+
headerRange: z71.string(),
|
|
3532
|
+
rowCount: z71.number(),
|
|
3533
|
+
colCount: z71.number(),
|
|
3534
|
+
tableName: z71.string().nullable(),
|
|
3535
|
+
replaced: z71.boolean()
|
|
3536
|
+
});
|
|
3537
|
+
var PluginProgramSpreadsheetRenderDatasetArgs = z71.object({
|
|
3538
|
+
sheetName: z71.string().optional(),
|
|
3539
|
+
title: z71.string().optional(),
|
|
3540
|
+
filter: z71.string().optional()
|
|
3541
|
+
});
|
|
3542
|
+
var PluginSpreadsheetExportFormat = z71.enum(["xlsx", "pdf", "csv"]);
|
|
3543
|
+
var PluginProgramSpreadsheetExportArgs = z71.object({
|
|
3494
3544
|
format: PluginSpreadsheetExportFormat,
|
|
3495
|
-
fileName:
|
|
3496
|
-
sheetName:
|
|
3545
|
+
fileName: z71.string().optional(),
|
|
3546
|
+
sheetName: z71.string().optional()
|
|
3497
3547
|
});
|
|
3498
|
-
var PluginProgramSpreadsheetExportResult =
|
|
3548
|
+
var PluginProgramSpreadsheetExportResult = z71.object({
|
|
3499
3549
|
format: PluginSpreadsheetExportFormat,
|
|
3500
|
-
fileName:
|
|
3501
|
-
mimeType:
|
|
3502
|
-
dataBase64:
|
|
3503
|
-
});
|
|
3504
|
-
var PluginSpreadsheetSheetInfo =
|
|
3505
|
-
name:
|
|
3506
|
-
index:
|
|
3507
|
-
visible:
|
|
3508
|
-
rowCount:
|
|
3509
|
-
colCount:
|
|
3510
|
-
});
|
|
3511
|
-
var PluginProgramSpreadsheetListSheetsResult =
|
|
3512
|
-
sheets:
|
|
3513
|
-
activeSheet:
|
|
3514
|
-
});
|
|
3515
|
-
var PluginProgramSpreadsheetGetSheetDataArgs =
|
|
3516
|
-
sheetName:
|
|
3517
|
-
range:
|
|
3518
|
-
header:
|
|
3519
|
-
});
|
|
3520
|
-
var PluginProgramSpreadsheetGetSheetDataResult =
|
|
3521
|
-
sheetName:
|
|
3522
|
-
range:
|
|
3523
|
-
values:
|
|
3524
|
-
records:
|
|
3525
|
-
});
|
|
3526
|
-
var PluginSpreadsheetChartType =
|
|
3550
|
+
fileName: z71.string(),
|
|
3551
|
+
mimeType: z71.string(),
|
|
3552
|
+
dataBase64: z71.string()
|
|
3553
|
+
});
|
|
3554
|
+
var PluginSpreadsheetSheetInfo = z71.object({
|
|
3555
|
+
name: z71.string(),
|
|
3556
|
+
index: z71.number(),
|
|
3557
|
+
visible: z71.boolean(),
|
|
3558
|
+
rowCount: z71.number(),
|
|
3559
|
+
colCount: z71.number()
|
|
3560
|
+
});
|
|
3561
|
+
var PluginProgramSpreadsheetListSheetsResult = z71.object({
|
|
3562
|
+
sheets: z71.array(PluginSpreadsheetSheetInfo),
|
|
3563
|
+
activeSheet: z71.string().nullable()
|
|
3564
|
+
});
|
|
3565
|
+
var PluginProgramSpreadsheetGetSheetDataArgs = z71.object({
|
|
3566
|
+
sheetName: z71.string(),
|
|
3567
|
+
range: z71.string().optional(),
|
|
3568
|
+
header: z71.boolean().optional()
|
|
3569
|
+
});
|
|
3570
|
+
var PluginProgramSpreadsheetGetSheetDataResult = z71.object({
|
|
3571
|
+
sheetName: z71.string(),
|
|
3572
|
+
range: z71.string(),
|
|
3573
|
+
values: z71.array(z71.array(PluginSpreadsheetCell)),
|
|
3574
|
+
records: z71.array(z71.record(z71.string(), PluginSpreadsheetCell)).optional()
|
|
3575
|
+
});
|
|
3576
|
+
var PluginSpreadsheetChartType = z71.enum([
|
|
3527
3577
|
"column",
|
|
3528
3578
|
"bar",
|
|
3529
3579
|
"line",
|
|
@@ -3531,262 +3581,262 @@ var PluginSpreadsheetChartType = z70.enum([
|
|
|
3531
3581
|
"area",
|
|
3532
3582
|
"scatter"
|
|
3533
3583
|
]);
|
|
3534
|
-
var PluginProgramSpreadsheetAddChartArgs =
|
|
3535
|
-
sheetName:
|
|
3584
|
+
var PluginProgramSpreadsheetAddChartArgs = z71.object({
|
|
3585
|
+
sheetName: z71.string(),
|
|
3536
3586
|
chartType: PluginSpreadsheetChartType,
|
|
3537
|
-
dataRange:
|
|
3538
|
-
title:
|
|
3539
|
-
position:
|
|
3540
|
-
size:
|
|
3541
|
-
});
|
|
3542
|
-
var PluginProgramSpreadsheetAddChartResult =
|
|
3543
|
-
chartId:
|
|
3544
|
-
});
|
|
3545
|
-
var PluginProgramSpreadsheetHighlightCellsArgs =
|
|
3546
|
-
sheetName:
|
|
3547
|
-
range:
|
|
3548
|
-
color:
|
|
3549
|
-
bold:
|
|
3550
|
-
});
|
|
3551
|
-
var PluginProgramSpreadsheetHighlightCellsResult =
|
|
3552
|
-
sheetName:
|
|
3553
|
-
range:
|
|
3554
|
-
});
|
|
3555
|
-
var PluginSpreadsheetProgramRow =
|
|
3556
|
-
departmentId:
|
|
3557
|
-
name:
|
|
3558
|
-
targetArea:
|
|
3559
|
-
allocatedArea:
|
|
3560
|
-
variance:
|
|
3561
|
-
});
|
|
3562
|
-
var PluginProgramSpreadsheetGetProgramResult =
|
|
3587
|
+
dataRange: z71.string(),
|
|
3588
|
+
title: z71.string().optional(),
|
|
3589
|
+
position: z71.object({ x: z71.number(), y: z71.number() }).optional(),
|
|
3590
|
+
size: z71.object({ width: z71.number(), height: z71.number() }).optional()
|
|
3591
|
+
});
|
|
3592
|
+
var PluginProgramSpreadsheetAddChartResult = z71.object({
|
|
3593
|
+
chartId: z71.string()
|
|
3594
|
+
});
|
|
3595
|
+
var PluginProgramSpreadsheetHighlightCellsArgs = z71.object({
|
|
3596
|
+
sheetName: z71.string(),
|
|
3597
|
+
range: z71.string(),
|
|
3598
|
+
color: z71.string().optional(),
|
|
3599
|
+
bold: z71.boolean().optional()
|
|
3600
|
+
});
|
|
3601
|
+
var PluginProgramSpreadsheetHighlightCellsResult = z71.object({
|
|
3602
|
+
sheetName: z71.string(),
|
|
3603
|
+
range: z71.string()
|
|
3604
|
+
});
|
|
3605
|
+
var PluginSpreadsheetProgramRow = z71.object({
|
|
3606
|
+
departmentId: z71.string(),
|
|
3607
|
+
name: z71.string(),
|
|
3608
|
+
targetArea: z71.number().nullable(),
|
|
3609
|
+
allocatedArea: z71.number(),
|
|
3610
|
+
variance: z71.number().nullable()
|
|
3611
|
+
});
|
|
3612
|
+
var PluginProgramSpreadsheetGetProgramResult = z71.object({
|
|
3563
3613
|
units: PluginAreaUnit,
|
|
3564
|
-
rows:
|
|
3565
|
-
totalTargetArea:
|
|
3566
|
-
totalAllocatedArea:
|
|
3567
|
-
generatedAt:
|
|
3568
|
-
});
|
|
3569
|
-
var PluginSpreadsheetTakeoffRow =
|
|
3570
|
-
objectType:
|
|
3571
|
-
category:
|
|
3572
|
-
family:
|
|
3573
|
-
quantity:
|
|
3574
|
-
unit:
|
|
3575
|
-
});
|
|
3576
|
-
var PluginProgramSpreadsheetGetTakeoffResult =
|
|
3577
|
-
rows:
|
|
3578
|
-
rowCount:
|
|
3579
|
-
generatedAt:
|
|
3580
|
-
});
|
|
3581
|
-
var PluginSpreadsheetMaterialTakeoffRow =
|
|
3582
|
-
objectType:
|
|
3583
|
-
family:
|
|
3584
|
-
material:
|
|
3585
|
-
quantity:
|
|
3586
|
-
unit:
|
|
3587
|
-
});
|
|
3588
|
-
var PluginProgramSpreadsheetGetMaterialTakeoffResult =
|
|
3589
|
-
rows:
|
|
3590
|
-
rowCount:
|
|
3591
|
-
generatedAt:
|
|
3592
|
-
});
|
|
3593
|
-
var PluginSpreadsheetWhenExists =
|
|
3594
|
-
var PluginProgramSpreadsheetCreateSheetArgs =
|
|
3595
|
-
name:
|
|
3614
|
+
rows: z71.array(PluginSpreadsheetProgramRow),
|
|
3615
|
+
totalTargetArea: z71.number(),
|
|
3616
|
+
totalAllocatedArea: z71.number(),
|
|
3617
|
+
generatedAt: z71.string()
|
|
3618
|
+
});
|
|
3619
|
+
var PluginSpreadsheetTakeoffRow = z71.object({
|
|
3620
|
+
objectType: z71.string(),
|
|
3621
|
+
category: z71.string(),
|
|
3622
|
+
family: z71.string(),
|
|
3623
|
+
quantity: z71.number(),
|
|
3624
|
+
unit: z71.string()
|
|
3625
|
+
});
|
|
3626
|
+
var PluginProgramSpreadsheetGetTakeoffResult = z71.object({
|
|
3627
|
+
rows: z71.array(PluginSpreadsheetTakeoffRow),
|
|
3628
|
+
rowCount: z71.number(),
|
|
3629
|
+
generatedAt: z71.string()
|
|
3630
|
+
});
|
|
3631
|
+
var PluginSpreadsheetMaterialTakeoffRow = z71.object({
|
|
3632
|
+
objectType: z71.string(),
|
|
3633
|
+
family: z71.string(),
|
|
3634
|
+
material: z71.string(),
|
|
3635
|
+
quantity: z71.number(),
|
|
3636
|
+
unit: z71.string()
|
|
3637
|
+
});
|
|
3638
|
+
var PluginProgramSpreadsheetGetMaterialTakeoffResult = z71.object({
|
|
3639
|
+
rows: z71.array(PluginSpreadsheetMaterialTakeoffRow),
|
|
3640
|
+
rowCount: z71.number(),
|
|
3641
|
+
generatedAt: z71.string()
|
|
3642
|
+
});
|
|
3643
|
+
var PluginSpreadsheetWhenExists = z71.enum(["reuse", "replace", "error"]);
|
|
3644
|
+
var PluginProgramSpreadsheetCreateSheetArgs = z71.object({
|
|
3645
|
+
name: z71.string(),
|
|
3596
3646
|
whenExists: PluginSpreadsheetWhenExists.optional()
|
|
3597
3647
|
});
|
|
3598
|
-
var PluginProgramSpreadsheetCreateSheetResult =
|
|
3599
|
-
sheetName:
|
|
3600
|
-
replaced:
|
|
3601
|
-
sheetIndex:
|
|
3602
|
-
});
|
|
3603
|
-
var PluginProgramSpreadsheetSetValuesArgs =
|
|
3604
|
-
sheetName:
|
|
3605
|
-
values:
|
|
3606
|
-
startCell:
|
|
3607
|
-
});
|
|
3608
|
-
var PluginProgramSpreadsheetSetValuesResult =
|
|
3609
|
-
sheetName:
|
|
3610
|
-
startCell:
|
|
3611
|
-
rowCount:
|
|
3612
|
-
colCount:
|
|
3613
|
-
});
|
|
3614
|
-
var PluginSpreadsheetFormula =
|
|
3615
|
-
cell:
|
|
3616
|
-
formula:
|
|
3617
|
-
});
|
|
3618
|
-
var PluginProgramSpreadsheetSetFormulasArgs =
|
|
3619
|
-
sheetName:
|
|
3620
|
-
formulas:
|
|
3621
|
-
});
|
|
3622
|
-
var PluginProgramSpreadsheetSetFormulasResult =
|
|
3623
|
-
sheetName:
|
|
3624
|
-
count:
|
|
3625
|
-
});
|
|
3626
|
-
var PluginSpreadsheetFontWeight =
|
|
3627
|
-
var PluginSpreadsheetFontStyle =
|
|
3628
|
-
var PluginSpreadsheetHorizontalAlign =
|
|
3648
|
+
var PluginProgramSpreadsheetCreateSheetResult = z71.object({
|
|
3649
|
+
sheetName: z71.string(),
|
|
3650
|
+
replaced: z71.boolean(),
|
|
3651
|
+
sheetIndex: z71.number().nullable()
|
|
3652
|
+
});
|
|
3653
|
+
var PluginProgramSpreadsheetSetValuesArgs = z71.object({
|
|
3654
|
+
sheetName: z71.string(),
|
|
3655
|
+
values: z71.array(z71.array(PluginSpreadsheetCell)),
|
|
3656
|
+
startCell: z71.string().optional()
|
|
3657
|
+
});
|
|
3658
|
+
var PluginProgramSpreadsheetSetValuesResult = z71.object({
|
|
3659
|
+
sheetName: z71.string(),
|
|
3660
|
+
startCell: z71.string(),
|
|
3661
|
+
rowCount: z71.number(),
|
|
3662
|
+
colCount: z71.number()
|
|
3663
|
+
});
|
|
3664
|
+
var PluginSpreadsheetFormula = z71.object({
|
|
3665
|
+
cell: z71.string(),
|
|
3666
|
+
formula: z71.string()
|
|
3667
|
+
});
|
|
3668
|
+
var PluginProgramSpreadsheetSetFormulasArgs = z71.object({
|
|
3669
|
+
sheetName: z71.string(),
|
|
3670
|
+
formulas: z71.array(PluginSpreadsheetFormula)
|
|
3671
|
+
});
|
|
3672
|
+
var PluginProgramSpreadsheetSetFormulasResult = z71.object({
|
|
3673
|
+
sheetName: z71.string(),
|
|
3674
|
+
count: z71.number()
|
|
3675
|
+
});
|
|
3676
|
+
var PluginSpreadsheetFontWeight = z71.enum(["normal", "bold"]);
|
|
3677
|
+
var PluginSpreadsheetFontStyle = z71.enum(["normal", "italic"]);
|
|
3678
|
+
var PluginSpreadsheetHorizontalAlign = z71.enum([
|
|
3629
3679
|
"left",
|
|
3630
3680
|
"center",
|
|
3631
3681
|
"right",
|
|
3632
3682
|
"general"
|
|
3633
3683
|
]);
|
|
3634
|
-
var PluginSpreadsheetVerticalAlign =
|
|
3684
|
+
var PluginSpreadsheetVerticalAlign = z71.enum([
|
|
3635
3685
|
"top",
|
|
3636
3686
|
"center",
|
|
3637
3687
|
"bottom"
|
|
3638
3688
|
]);
|
|
3639
|
-
var PluginSpreadsheetCellStyle =
|
|
3640
|
-
backColor:
|
|
3641
|
-
foreColor:
|
|
3642
|
-
font:
|
|
3643
|
-
fontFamily:
|
|
3644
|
-
fontSize:
|
|
3689
|
+
var PluginSpreadsheetCellStyle = z71.object({
|
|
3690
|
+
backColor: z71.string().optional(),
|
|
3691
|
+
foreColor: z71.string().optional(),
|
|
3692
|
+
font: z71.string().optional(),
|
|
3693
|
+
fontFamily: z71.string().optional(),
|
|
3694
|
+
fontSize: z71.number().optional(),
|
|
3645
3695
|
fontWeight: PluginSpreadsheetFontWeight.optional(),
|
|
3646
3696
|
fontStyle: PluginSpreadsheetFontStyle.optional(),
|
|
3647
|
-
formatter:
|
|
3697
|
+
formatter: z71.string().optional(),
|
|
3648
3698
|
horizontalAlign: PluginSpreadsheetHorizontalAlign.optional(),
|
|
3649
3699
|
verticalAlign: PluginSpreadsheetVerticalAlign.optional()
|
|
3650
3700
|
});
|
|
3651
|
-
var PluginSpreadsheetRangeStyle =
|
|
3652
|
-
range:
|
|
3701
|
+
var PluginSpreadsheetRangeStyle = z71.object({
|
|
3702
|
+
range: z71.string(),
|
|
3653
3703
|
style: PluginSpreadsheetCellStyle
|
|
3654
3704
|
});
|
|
3655
|
-
var PluginProgramSpreadsheetSetStylesArgs =
|
|
3656
|
-
sheetName:
|
|
3657
|
-
ranges:
|
|
3705
|
+
var PluginProgramSpreadsheetSetStylesArgs = z71.object({
|
|
3706
|
+
sheetName: z71.string(),
|
|
3707
|
+
ranges: z71.array(PluginSpreadsheetRangeStyle)
|
|
3658
3708
|
});
|
|
3659
|
-
var PluginProgramSpreadsheetSetStylesResult =
|
|
3660
|
-
sheetName:
|
|
3661
|
-
count:
|
|
3709
|
+
var PluginProgramSpreadsheetSetStylesResult = z71.object({
|
|
3710
|
+
sheetName: z71.string(),
|
|
3711
|
+
count: z71.number()
|
|
3662
3712
|
});
|
|
3663
|
-
var PluginProgramSpreadsheetMergeCellsArgs =
|
|
3664
|
-
sheetName:
|
|
3665
|
-
range:
|
|
3713
|
+
var PluginProgramSpreadsheetMergeCellsArgs = z71.object({
|
|
3714
|
+
sheetName: z71.string(),
|
|
3715
|
+
range: z71.string(),
|
|
3666
3716
|
value: PluginSpreadsheetCell.optional()
|
|
3667
3717
|
});
|
|
3668
|
-
var PluginProgramSpreadsheetMergeCellsResult =
|
|
3669
|
-
sheetName:
|
|
3670
|
-
range:
|
|
3718
|
+
var PluginProgramSpreadsheetMergeCellsResult = z71.object({
|
|
3719
|
+
sheetName: z71.string(),
|
|
3720
|
+
range: z71.string()
|
|
3671
3721
|
});
|
|
3672
|
-
var PluginSpreadsheetConditionalRuleType =
|
|
3673
|
-
var PluginSpreadsheetConditionalRule =
|
|
3722
|
+
var PluginSpreadsheetConditionalRuleType = z71.enum(["dataBar"]);
|
|
3723
|
+
var PluginSpreadsheetConditionalRule = z71.object({
|
|
3674
3724
|
type: PluginSpreadsheetConditionalRuleType,
|
|
3675
|
-
color:
|
|
3725
|
+
color: z71.string().optional()
|
|
3676
3726
|
});
|
|
3677
|
-
var PluginProgramSpreadsheetAddConditionalFormattingArgs =
|
|
3678
|
-
sheetName:
|
|
3679
|
-
range:
|
|
3727
|
+
var PluginProgramSpreadsheetAddConditionalFormattingArgs = z71.object({
|
|
3728
|
+
sheetName: z71.string(),
|
|
3729
|
+
range: z71.string(),
|
|
3680
3730
|
rule: PluginSpreadsheetConditionalRule
|
|
3681
3731
|
});
|
|
3682
|
-
var PluginProgramSpreadsheetAddConditionalFormattingResult =
|
|
3683
|
-
sheetName:
|
|
3684
|
-
range:
|
|
3685
|
-
created:
|
|
3732
|
+
var PluginProgramSpreadsheetAddConditionalFormattingResult = z71.object({
|
|
3733
|
+
sheetName: z71.string(),
|
|
3734
|
+
range: z71.string(),
|
|
3735
|
+
created: z71.boolean()
|
|
3686
3736
|
});
|
|
3687
|
-
var PluginProgramSpreadsheetRecalculateArgs =
|
|
3688
|
-
sheetName:
|
|
3737
|
+
var PluginProgramSpreadsheetRecalculateArgs = z71.object({
|
|
3738
|
+
sheetName: z71.string().optional()
|
|
3689
3739
|
});
|
|
3690
|
-
var PluginProgramSpreadsheetRecalculateResult =
|
|
3691
|
-
scope:
|
|
3692
|
-
sheetName:
|
|
3740
|
+
var PluginProgramSpreadsheetRecalculateResult = z71.object({
|
|
3741
|
+
scope: z71.enum(["sheet", "workbook"]),
|
|
3742
|
+
sheetName: z71.string().nullable()
|
|
3693
3743
|
});
|
|
3694
|
-
var PluginSpreadsheetTransactionMethod =
|
|
3744
|
+
var PluginSpreadsheetTransactionMethod = z71.enum([
|
|
3695
3745
|
"createSheet",
|
|
3696
3746
|
"setValues",
|
|
3697
3747
|
"setFormulas",
|
|
3698
3748
|
"setStyles",
|
|
3699
3749
|
"mergeCells"
|
|
3700
3750
|
]);
|
|
3701
|
-
var PluginSpreadsheetTransactionOp =
|
|
3751
|
+
var PluginSpreadsheetTransactionOp = z71.object({
|
|
3702
3752
|
method: PluginSpreadsheetTransactionMethod,
|
|
3703
|
-
args:
|
|
3704
|
-
});
|
|
3705
|
-
var PluginProgramSpreadsheetTransactionArgs =
|
|
3706
|
-
operations:
|
|
3707
|
-
label:
|
|
3708
|
-
});
|
|
3709
|
-
var PluginProgramSpreadsheetTransactionResult =
|
|
3710
|
-
label:
|
|
3711
|
-
operationCount:
|
|
3712
|
-
results:
|
|
3713
|
-
});
|
|
3714
|
-
var PluginProgramSpreadsheetRunScriptArgs =
|
|
3715
|
-
script:
|
|
3716
|
-
});
|
|
3717
|
-
var PluginProgramSpreadsheetRunScriptResult =
|
|
3718
|
-
result:
|
|
3719
|
-
});
|
|
3720
|
-
var PluginSpreadsheetAuditStatus =
|
|
3721
|
-
var PluginSpreadsheetAuditEntry =
|
|
3722
|
-
id:
|
|
3723
|
-
pluginId:
|
|
3724
|
-
method:
|
|
3725
|
-
label:
|
|
3726
|
-
sheetName:
|
|
3727
|
-
timestamp:
|
|
3753
|
+
args: z71.unknown()
|
|
3754
|
+
});
|
|
3755
|
+
var PluginProgramSpreadsheetTransactionArgs = z71.object({
|
|
3756
|
+
operations: z71.array(PluginSpreadsheetTransactionOp),
|
|
3757
|
+
label: z71.string().optional()
|
|
3758
|
+
});
|
|
3759
|
+
var PluginProgramSpreadsheetTransactionResult = z71.object({
|
|
3760
|
+
label: z71.string(),
|
|
3761
|
+
operationCount: z71.number(),
|
|
3762
|
+
results: z71.array(z71.unknown())
|
|
3763
|
+
});
|
|
3764
|
+
var PluginProgramSpreadsheetRunScriptArgs = z71.object({
|
|
3765
|
+
script: z71.string()
|
|
3766
|
+
});
|
|
3767
|
+
var PluginProgramSpreadsheetRunScriptResult = z71.object({
|
|
3768
|
+
result: z71.unknown()
|
|
3769
|
+
});
|
|
3770
|
+
var PluginSpreadsheetAuditStatus = z71.enum(["success", "error"]);
|
|
3771
|
+
var PluginSpreadsheetAuditEntry = z71.object({
|
|
3772
|
+
id: z71.string(),
|
|
3773
|
+
pluginId: z71.string(),
|
|
3774
|
+
method: z71.string(),
|
|
3775
|
+
label: z71.string().optional(),
|
|
3776
|
+
sheetName: z71.string().optional(),
|
|
3777
|
+
timestamp: z71.string(),
|
|
3728
3778
|
status: PluginSpreadsheetAuditStatus,
|
|
3729
|
-
summary:
|
|
3779
|
+
summary: z71.string().optional()
|
|
3730
3780
|
});
|
|
3731
|
-
var PluginProgramSpreadsheetGetAuditLogArgs =
|
|
3732
|
-
limit:
|
|
3781
|
+
var PluginProgramSpreadsheetGetAuditLogArgs = z71.object({
|
|
3782
|
+
limit: z71.number().optional()
|
|
3733
3783
|
});
|
|
3734
|
-
var PluginProgramSpreadsheetGetAuditLogResult =
|
|
3735
|
-
entries:
|
|
3784
|
+
var PluginProgramSpreadsheetGetAuditLogResult = z71.object({
|
|
3785
|
+
entries: z71.array(PluginSpreadsheetAuditEntry)
|
|
3736
3786
|
});
|
|
3737
|
-
var PluginProgramSpreadsheetPingResult =
|
|
3738
|
-
pong:
|
|
3787
|
+
var PluginProgramSpreadsheetPingResult = z71.object({
|
|
3788
|
+
pong: z71.boolean()
|
|
3739
3789
|
});
|
|
3740
|
-
var PluginSpreadsheetTemplateScope =
|
|
3741
|
-
var PluginProgramSpreadsheetTemplatesCreateArgs =
|
|
3742
|
-
name:
|
|
3743
|
-
sheetName:
|
|
3790
|
+
var PluginSpreadsheetTemplateScope = z71.enum(["project", "global"]);
|
|
3791
|
+
var PluginProgramSpreadsheetTemplatesCreateArgs = z71.object({
|
|
3792
|
+
name: z71.string(),
|
|
3793
|
+
sheetName: z71.string(),
|
|
3744
3794
|
scope: PluginSpreadsheetTemplateScope.optional()
|
|
3745
3795
|
});
|
|
3746
|
-
var PluginProgramSpreadsheetTemplatesCreateResult =
|
|
3747
|
-
id:
|
|
3748
|
-
name:
|
|
3796
|
+
var PluginProgramSpreadsheetTemplatesCreateResult = z71.object({
|
|
3797
|
+
id: z71.string(),
|
|
3798
|
+
name: z71.string(),
|
|
3749
3799
|
scope: PluginSpreadsheetTemplateScope,
|
|
3750
|
-
sheetName:
|
|
3800
|
+
sheetName: z71.string()
|
|
3751
3801
|
});
|
|
3752
|
-
var PluginProgramSpreadsheetTemplatesApplyArgs =
|
|
3753
|
-
name:
|
|
3754
|
-
targetSheetName:
|
|
3802
|
+
var PluginProgramSpreadsheetTemplatesApplyArgs = z71.object({
|
|
3803
|
+
name: z71.string(),
|
|
3804
|
+
targetSheetName: z71.string()
|
|
3755
3805
|
});
|
|
3756
|
-
var PluginProgramSpreadsheetTemplatesApplyResult =
|
|
3757
|
-
name:
|
|
3758
|
-
targetSheetName:
|
|
3806
|
+
var PluginProgramSpreadsheetTemplatesApplyResult = z71.object({
|
|
3807
|
+
name: z71.string(),
|
|
3808
|
+
targetSheetName: z71.string()
|
|
3759
3809
|
});
|
|
3760
|
-
var PluginSpreadsheetBindingSource =
|
|
3761
|
-
|
|
3762
|
-
|
|
3810
|
+
var PluginSpreadsheetBindingSource = z71.discriminatedUnion("dataset", [
|
|
3811
|
+
z71.object({ dataset: z71.literal("takeoff") }),
|
|
3812
|
+
z71.object({ dataset: z71.literal("plugin"), name: z71.string() })
|
|
3763
3813
|
]);
|
|
3764
|
-
var PluginSpreadsheetBindingMode =
|
|
3765
|
-
var PluginSpreadsheetBindingTarget =
|
|
3766
|
-
sheetName:
|
|
3767
|
-
startCell:
|
|
3768
|
-
});
|
|
3769
|
-
var PluginSpreadsheetBinding =
|
|
3770
|
-
id:
|
|
3771
|
-
name:
|
|
3772
|
-
pluginId:
|
|
3814
|
+
var PluginSpreadsheetBindingMode = z71.enum(["replaceRange"]);
|
|
3815
|
+
var PluginSpreadsheetBindingTarget = z71.object({
|
|
3816
|
+
sheetName: z71.string(),
|
|
3817
|
+
startCell: z71.string().optional()
|
|
3818
|
+
});
|
|
3819
|
+
var PluginSpreadsheetBinding = z71.object({
|
|
3820
|
+
id: z71.string(),
|
|
3821
|
+
name: z71.string(),
|
|
3822
|
+
pluginId: z71.string(),
|
|
3773
3823
|
source: PluginSpreadsheetBindingSource,
|
|
3774
|
-
target:
|
|
3775
|
-
sheetName:
|
|
3776
|
-
startCell:
|
|
3824
|
+
target: z71.object({
|
|
3825
|
+
sheetName: z71.string(),
|
|
3826
|
+
startCell: z71.string()
|
|
3777
3827
|
}),
|
|
3778
3828
|
mode: PluginSpreadsheetBindingMode,
|
|
3779
|
-
createdAt:
|
|
3780
|
-
updatedAt:
|
|
3829
|
+
createdAt: z71.string(),
|
|
3830
|
+
updatedAt: z71.string()
|
|
3781
3831
|
});
|
|
3782
|
-
var PluginSpreadsheetBindingRefresh =
|
|
3783
|
-
id:
|
|
3784
|
-
name:
|
|
3785
|
-
sheetName:
|
|
3786
|
-
rowCount:
|
|
3832
|
+
var PluginSpreadsheetBindingRefresh = z71.object({
|
|
3833
|
+
id: z71.string(),
|
|
3834
|
+
name: z71.string(),
|
|
3835
|
+
sheetName: z71.string(),
|
|
3836
|
+
rowCount: z71.number()
|
|
3787
3837
|
});
|
|
3788
|
-
var PluginProgramSpreadsheetBindingsCreateArgs =
|
|
3789
|
-
name:
|
|
3838
|
+
var PluginProgramSpreadsheetBindingsCreateArgs = z71.object({
|
|
3839
|
+
name: z71.string(),
|
|
3790
3840
|
source: PluginSpreadsheetBindingSource,
|
|
3791
3841
|
target: PluginSpreadsheetBindingTarget,
|
|
3792
3842
|
mode: PluginSpreadsheetBindingMode.optional()
|
|
@@ -3794,296 +3844,296 @@ var PluginProgramSpreadsheetBindingsCreateArgs = z70.object({
|
|
|
3794
3844
|
var PluginProgramSpreadsheetBindingsCreateResult = PluginSpreadsheetBinding.extend({
|
|
3795
3845
|
refresh: PluginSpreadsheetBindingRefresh
|
|
3796
3846
|
});
|
|
3797
|
-
var PluginProgramSpreadsheetBindingsRefreshArgs =
|
|
3798
|
-
name:
|
|
3847
|
+
var PluginProgramSpreadsheetBindingsRefreshArgs = z71.object({
|
|
3848
|
+
name: z71.string().optional()
|
|
3799
3849
|
});
|
|
3800
|
-
var PluginProgramSpreadsheetBindingsRefreshResult =
|
|
3801
|
-
refreshed:
|
|
3850
|
+
var PluginProgramSpreadsheetBindingsRefreshResult = z71.object({
|
|
3851
|
+
refreshed: z71.array(PluginSpreadsheetBindingRefresh)
|
|
3802
3852
|
});
|
|
3803
|
-
var PluginProgramSpreadsheetBindingsListResult =
|
|
3804
|
-
bindings:
|
|
3853
|
+
var PluginProgramSpreadsheetBindingsListResult = z71.object({
|
|
3854
|
+
bindings: z71.array(PluginSpreadsheetBinding)
|
|
3805
3855
|
});
|
|
3806
|
-
var PluginProgramSpreadsheetDatasetsSetArgs =
|
|
3807
|
-
name:
|
|
3808
|
-
columns:
|
|
3809
|
-
rows:
|
|
3856
|
+
var PluginProgramSpreadsheetDatasetsSetArgs = z71.object({
|
|
3857
|
+
name: z71.string(),
|
|
3858
|
+
columns: z71.array(PluginSpreadsheetColumn).min(1),
|
|
3859
|
+
rows: z71.array(z71.record(z71.string(), PluginSpreadsheetCell)).max(1e4)
|
|
3810
3860
|
});
|
|
3811
|
-
var PluginProgramSpreadsheetDatasetsSetResult =
|
|
3812
|
-
name:
|
|
3813
|
-
rowCount:
|
|
3861
|
+
var PluginProgramSpreadsheetDatasetsSetResult = z71.object({
|
|
3862
|
+
name: z71.string(),
|
|
3863
|
+
rowCount: z71.number()
|
|
3814
3864
|
});
|
|
3815
|
-
var PluginSpreadsheetDataset =
|
|
3816
|
-
name:
|
|
3817
|
-
rowCount:
|
|
3818
|
-
updatedAt:
|
|
3865
|
+
var PluginSpreadsheetDataset = z71.object({
|
|
3866
|
+
name: z71.string(),
|
|
3867
|
+
rowCount: z71.number(),
|
|
3868
|
+
updatedAt: z71.string()
|
|
3819
3869
|
});
|
|
3820
|
-
var PluginProgramSpreadsheetDatasetsListResult =
|
|
3821
|
-
datasets:
|
|
3870
|
+
var PluginProgramSpreadsheetDatasetsListResult = z71.object({
|
|
3871
|
+
datasets: z71.array(PluginSpreadsheetDataset)
|
|
3822
3872
|
});
|
|
3823
|
-
var PluginProgramSpreadsheetAddImageArgs =
|
|
3824
|
-
sheetName:
|
|
3825
|
-
image:
|
|
3826
|
-
dataUri:
|
|
3873
|
+
var PluginProgramSpreadsheetAddImageArgs = z71.object({
|
|
3874
|
+
sheetName: z71.string(),
|
|
3875
|
+
image: z71.object({
|
|
3876
|
+
dataUri: z71.string().max(2097152, "image.dataUri exceeds the 2 MB limit").regex(
|
|
3827
3877
|
/^data:image\/(png|jpeg|svg\+xml);base64,/,
|
|
3828
3878
|
"image.dataUri must be a base64 data:image/png, jpeg, or svg+xml URI"
|
|
3829
3879
|
)
|
|
3830
3880
|
}),
|
|
3831
|
-
anchorCell:
|
|
3832
|
-
size:
|
|
3833
|
-
name:
|
|
3834
|
-
});
|
|
3835
|
-
var PluginProgramSpreadsheetAddImageResult =
|
|
3836
|
-
sheetName:
|
|
3837
|
-
name:
|
|
3838
|
-
});
|
|
3839
|
-
var PluginSpreadsheetCustomSheet =
|
|
3840
|
-
sheetName:
|
|
3841
|
-
groupBy:
|
|
3842
|
-
properties:
|
|
3843
|
-
groupColors:
|
|
3844
|
-
proposalId:
|
|
3845
|
-
});
|
|
3846
|
-
var PluginSpreadsheetCustomSheetConfig =
|
|
3847
|
-
groupBy:
|
|
3848
|
-
properties:
|
|
3849
|
-
groupColors:
|
|
3881
|
+
anchorCell: z71.string().optional(),
|
|
3882
|
+
size: z71.object({ width: z71.number(), height: z71.number() }).optional(),
|
|
3883
|
+
name: z71.string().optional()
|
|
3884
|
+
});
|
|
3885
|
+
var PluginProgramSpreadsheetAddImageResult = z71.object({
|
|
3886
|
+
sheetName: z71.string(),
|
|
3887
|
+
name: z71.string()
|
|
3888
|
+
});
|
|
3889
|
+
var PluginSpreadsheetCustomSheet = z71.object({
|
|
3890
|
+
sheetName: z71.string(),
|
|
3891
|
+
groupBy: z71.array(z71.string()),
|
|
3892
|
+
properties: z71.array(z71.string()),
|
|
3893
|
+
groupColors: z71.record(z71.string(), z71.string()),
|
|
3894
|
+
proposalId: z71.string().nullable()
|
|
3895
|
+
});
|
|
3896
|
+
var PluginSpreadsheetCustomSheetConfig = z71.object({
|
|
3897
|
+
groupBy: z71.array(z71.string().trim().min(1)).max(10).optional(),
|
|
3898
|
+
properties: z71.array(z71.string()).max(50).optional(),
|
|
3899
|
+
groupColors: z71.record(z71.string(), z71.string()).optional()
|
|
3850
3900
|
});
|
|
3851
3901
|
var PluginProgramSpreadsheetCreateCustomSheetArgs = PluginSpreadsheetCustomSheetConfig.extend({
|
|
3852
|
-
name:
|
|
3902
|
+
name: z71.string().trim().min(1)
|
|
3853
3903
|
});
|
|
3854
3904
|
var PluginProgramSpreadsheetUpdateCustomSheetArgs = PluginSpreadsheetCustomSheetConfig.extend({
|
|
3855
|
-
sheetName:
|
|
3905
|
+
sheetName: z71.string().trim().min(1)
|
|
3856
3906
|
});
|
|
3857
3907
|
var PluginProgramSpreadsheetCustomSheetResult = PluginSpreadsheetCustomSheet;
|
|
3858
|
-
var PluginProgramSpreadsheetGetCustomSheetArgs =
|
|
3859
|
-
sheetName:
|
|
3908
|
+
var PluginProgramSpreadsheetGetCustomSheetArgs = z71.object({
|
|
3909
|
+
sheetName: z71.string().trim().min(1)
|
|
3860
3910
|
});
|
|
3861
3911
|
var PluginProgramSpreadsheetGetCustomSheetResult = PluginSpreadsheetCustomSheet.nullable();
|
|
3862
|
-
var PluginProgramSpreadsheetListCustomSheetsResult =
|
|
3863
|
-
sheets:
|
|
3912
|
+
var PluginProgramSpreadsheetListCustomSheetsResult = z71.object({
|
|
3913
|
+
sheets: z71.array(PluginSpreadsheetCustomSheet)
|
|
3864
3914
|
});
|
|
3865
|
-
var PluginSpreadsheetCustomSheetProperty =
|
|
3866
|
-
id:
|
|
3867
|
-
name:
|
|
3868
|
-
groupable:
|
|
3869
|
-
custom:
|
|
3915
|
+
var PluginSpreadsheetCustomSheetProperty = z71.object({
|
|
3916
|
+
id: z71.string(),
|
|
3917
|
+
name: z71.string(),
|
|
3918
|
+
groupable: z71.boolean(),
|
|
3919
|
+
custom: z71.boolean()
|
|
3870
3920
|
});
|
|
3871
|
-
var PluginProgramSpreadsheetListCustomSheetPropertiesResult =
|
|
3872
|
-
properties:
|
|
3921
|
+
var PluginProgramSpreadsheetListCustomSheetPropertiesResult = z71.object({
|
|
3922
|
+
properties: z71.array(PluginSpreadsheetCustomSheetProperty)
|
|
3873
3923
|
});
|
|
3874
3924
|
|
|
3875
3925
|
// src/api/program/site.ts
|
|
3876
|
-
import * as
|
|
3926
|
+
import * as z72 from "zod";
|
|
3877
3927
|
var PluginProgramSiteApi = class {
|
|
3878
3928
|
constructor() {
|
|
3879
3929
|
}
|
|
3880
3930
|
};
|
|
3881
|
-
var PluginSiteAnalysisRow =
|
|
3882
|
-
category:
|
|
3883
|
-
description:
|
|
3884
|
-
quantity:
|
|
3885
|
-
unit:
|
|
3931
|
+
var PluginSiteAnalysisRow = z72.object({
|
|
3932
|
+
category: z72.string().min(1),
|
|
3933
|
+
description: z72.string(),
|
|
3934
|
+
quantity: z72.union([z72.string(), z72.number()]),
|
|
3935
|
+
unit: z72.string()
|
|
3886
3936
|
});
|
|
3887
|
-
var PluginSiteAnalysisUpdateOptions =
|
|
3888
|
-
siteLocation:
|
|
3937
|
+
var PluginSiteAnalysisUpdateOptions = z72.object({
|
|
3938
|
+
siteLocation: z72.object({ lat: z72.number(), lng: z72.number() }).optional(),
|
|
3889
3939
|
/** JSON-encoded polygon string written to the Site Polygon row. */
|
|
3890
|
-
sitePolygon:
|
|
3940
|
+
sitePolygon: z72.string().optional()
|
|
3891
3941
|
}).nullish();
|
|
3892
|
-
var PluginProgramSiteAnalysisResult =
|
|
3893
|
-
sheetName:
|
|
3894
|
-
siteLocation:
|
|
3895
|
-
sitePolygon:
|
|
3896
|
-
rows:
|
|
3942
|
+
var PluginProgramSiteAnalysisResult = z72.object({
|
|
3943
|
+
sheetName: z72.string(),
|
|
3944
|
+
siteLocation: z72.object({ lat: z72.number(), lng: z72.number() }).nullable(),
|
|
3945
|
+
sitePolygon: z72.string().nullable(),
|
|
3946
|
+
rows: z72.array(PluginSiteAnalysisRow)
|
|
3897
3947
|
}).nullable();
|
|
3898
|
-
var PluginProgramSiteAnalysisUpdateResult =
|
|
3899
|
-
sheetName:
|
|
3948
|
+
var PluginProgramSiteAnalysisUpdateResult = z72.object({
|
|
3949
|
+
sheetName: z72.string(),
|
|
3900
3950
|
/** Constraint rows on the sheet after the write. */
|
|
3901
|
-
rowCount:
|
|
3902
|
-
updatedRows:
|
|
3903
|
-
appendedRows:
|
|
3951
|
+
rowCount: z72.number(),
|
|
3952
|
+
updatedRows: z72.number(),
|
|
3953
|
+
appendedRows: z72.number()
|
|
3904
3954
|
});
|
|
3905
|
-
var PluginSiteFootprintPoint =
|
|
3906
|
-
x:
|
|
3907
|
-
z:
|
|
3955
|
+
var PluginSiteFootprintPoint = z72.object({
|
|
3956
|
+
x: z72.number(),
|
|
3957
|
+
z: z72.number()
|
|
3908
3958
|
});
|
|
3909
|
-
var PluginSiteGeoPoint =
|
|
3910
|
-
lat:
|
|
3911
|
-
lng:
|
|
3912
|
-
alt:
|
|
3959
|
+
var PluginSiteGeoPoint = z72.object({
|
|
3960
|
+
lat: z72.number(),
|
|
3961
|
+
lng: z72.number(),
|
|
3962
|
+
alt: z72.number()
|
|
3913
3963
|
});
|
|
3914
|
-
var PluginSitePolygon =
|
|
3915
|
-
id:
|
|
3916
|
-
area:
|
|
3917
|
-
label:
|
|
3918
|
-
footprint:
|
|
3964
|
+
var PluginSitePolygon = z72.object({
|
|
3965
|
+
id: z72.string(),
|
|
3966
|
+
area: z72.number(),
|
|
3967
|
+
label: z72.string(),
|
|
3968
|
+
footprint: z72.array(PluginSiteFootprintPoint)
|
|
3919
3969
|
});
|
|
3920
|
-
var PluginProgramSiteSnapshot =
|
|
3970
|
+
var PluginProgramSiteSnapshot = z72.object({
|
|
3921
3971
|
units: PluginAreaUnit,
|
|
3922
|
-
totalArea:
|
|
3923
|
-
polygonCount:
|
|
3924
|
-
polygons:
|
|
3972
|
+
totalArea: z72.number(),
|
|
3973
|
+
polygonCount: z72.number(),
|
|
3974
|
+
polygons: z72.array(PluginSitePolygon)
|
|
3925
3975
|
});
|
|
3926
|
-
var PluginProgramSiteAreaResult =
|
|
3976
|
+
var PluginProgramSiteAreaResult = z72.object({
|
|
3927
3977
|
units: PluginAreaUnit,
|
|
3928
|
-
area:
|
|
3978
|
+
area: z72.number()
|
|
3929
3979
|
});
|
|
3930
|
-
var PluginProgramSiteListPolygonsResult =
|
|
3980
|
+
var PluginProgramSiteListPolygonsResult = z72.object({
|
|
3931
3981
|
units: PluginAreaUnit,
|
|
3932
|
-
polygons:
|
|
3982
|
+
polygons: z72.array(PluginSitePolygon)
|
|
3933
3983
|
});
|
|
3934
|
-
var PluginProgramSiteListGeoPolygonsResult =
|
|
3935
|
-
polygons:
|
|
3984
|
+
var PluginProgramSiteListGeoPolygonsResult = z72.object({
|
|
3985
|
+
polygons: z72.array(z72.array(PluginSiteGeoPoint))
|
|
3936
3986
|
});
|
|
3937
|
-
var PluginSiteLatLng =
|
|
3938
|
-
lat:
|
|
3939
|
-
lng:
|
|
3987
|
+
var PluginSiteLatLng = z72.object({
|
|
3988
|
+
lat: z72.number(),
|
|
3989
|
+
lng: z72.number()
|
|
3940
3990
|
});
|
|
3941
|
-
var PluginSiteBounds =
|
|
3942
|
-
north:
|
|
3943
|
-
south:
|
|
3944
|
-
east:
|
|
3945
|
-
west:
|
|
3991
|
+
var PluginSiteBounds = z72.object({
|
|
3992
|
+
north: z72.number(),
|
|
3993
|
+
south: z72.number(),
|
|
3994
|
+
east: z72.number(),
|
|
3995
|
+
west: z72.number()
|
|
3946
3996
|
});
|
|
3947
|
-
var PluginSiteContextParcel =
|
|
3948
|
-
footprint:
|
|
3949
|
-
area:
|
|
3997
|
+
var PluginSiteContextParcel = z72.object({
|
|
3998
|
+
footprint: z72.array(PluginSiteLatLng),
|
|
3999
|
+
area: z72.number()
|
|
3950
4000
|
});
|
|
3951
|
-
var PluginProgramSiteContext =
|
|
4001
|
+
var PluginProgramSiteContext = z72.object({
|
|
3952
4002
|
center: PluginSiteLatLng,
|
|
3953
4003
|
bounds: PluginSiteBounds,
|
|
3954
|
-
widthInM:
|
|
3955
|
-
heightInM:
|
|
3956
|
-
zoom:
|
|
3957
|
-
parcels:
|
|
4004
|
+
widthInM: z72.number(),
|
|
4005
|
+
heightInM: z72.number(),
|
|
4006
|
+
zoom: z72.number(),
|
|
4007
|
+
parcels: z72.array(PluginSiteContextParcel)
|
|
3958
4008
|
});
|
|
3959
4009
|
var PluginProgramSiteContextResult = PluginProgramSiteContext.nullable();
|
|
3960
|
-
var PluginProgramSiteLocation =
|
|
3961
|
-
latitude:
|
|
3962
|
-
longitude:
|
|
4010
|
+
var PluginProgramSiteLocation = z72.object({
|
|
4011
|
+
latitude: z72.number(),
|
|
4012
|
+
longitude: z72.number()
|
|
3963
4013
|
});
|
|
3964
4014
|
var PluginProgramSiteLocationResult = PluginProgramSiteLocation.nullable();
|
|
3965
|
-
var PluginProgramSiteNorthAngleResult =
|
|
3966
|
-
var PluginProgramSiteTimezoneResult =
|
|
3967
|
-
var PluginProgramSiteWeather =
|
|
3968
|
-
weatherFileId:
|
|
3969
|
-
station:
|
|
3970
|
-
checksum:
|
|
3971
|
-
selectionMethod:
|
|
4015
|
+
var PluginProgramSiteNorthAngleResult = z72.number().nullable();
|
|
4016
|
+
var PluginProgramSiteTimezoneResult = z72.string().nullable();
|
|
4017
|
+
var PluginProgramSiteWeather = z72.object({
|
|
4018
|
+
weatherFileId: z72.string(),
|
|
4019
|
+
station: z72.string(),
|
|
4020
|
+
checksum: z72.string(),
|
|
4021
|
+
selectionMethod: z72.enum([
|
|
3972
4022
|
"nearest-station",
|
|
3973
4023
|
"user-upload",
|
|
3974
4024
|
"project-override"
|
|
3975
4025
|
])
|
|
3976
4026
|
});
|
|
3977
4027
|
var PluginProgramSiteWeatherResult = PluginProgramSiteWeather.nullable();
|
|
3978
|
-
var PluginProgramSiteEdgeRole =
|
|
3979
|
-
var PluginProgramSiteEdge =
|
|
3980
|
-
edgeIndex:
|
|
3981
|
-
start:
|
|
3982
|
-
end:
|
|
3983
|
-
lengthMeters:
|
|
4028
|
+
var PluginProgramSiteEdgeRole = z72.enum(["front", "side", "rear"]);
|
|
4029
|
+
var PluginProgramSiteEdge = z72.object({
|
|
4030
|
+
edgeIndex: z72.number().int().nonnegative(),
|
|
4031
|
+
start: z72.object({ x: z72.number(), z: z72.number() }),
|
|
4032
|
+
end: z72.object({ x: z72.number(), z: z72.number() }),
|
|
4033
|
+
lengthMeters: z72.number(),
|
|
3984
4034
|
role: PluginProgramSiteEdgeRole,
|
|
3985
|
-
roleSource:
|
|
3986
|
-
setbackMeters:
|
|
4035
|
+
roleSource: z72.enum(["override", "heuristic"]),
|
|
4036
|
+
setbackMeters: z72.number().nullable()
|
|
3987
4037
|
});
|
|
3988
|
-
var PluginProgramSiteEdgesEntry =
|
|
3989
|
-
siteId:
|
|
3990
|
-
buildableEnvelopeId:
|
|
3991
|
-
usingLiveSiteBoundary:
|
|
3992
|
-
staleOverridesDropped:
|
|
3993
|
-
edges:
|
|
4038
|
+
var PluginProgramSiteEdgesEntry = z72.object({
|
|
4039
|
+
siteId: z72.string(),
|
|
4040
|
+
buildableEnvelopeId: z72.string().nullable(),
|
|
4041
|
+
usingLiveSiteBoundary: z72.boolean(),
|
|
4042
|
+
staleOverridesDropped: z72.boolean(),
|
|
4043
|
+
edges: z72.array(PluginProgramSiteEdge)
|
|
3994
4044
|
});
|
|
3995
|
-
var PluginProgramSiteListEdgesResult =
|
|
3996
|
-
lengthUnit:
|
|
3997
|
-
sites:
|
|
4045
|
+
var PluginProgramSiteListEdgesResult = z72.object({
|
|
4046
|
+
lengthUnit: z72.literal("m"),
|
|
4047
|
+
sites: z72.array(PluginProgramSiteEdgesEntry)
|
|
3998
4048
|
});
|
|
3999
4049
|
|
|
4000
4050
|
// src/api/program/cores.ts
|
|
4001
|
-
import * as
|
|
4051
|
+
import * as z73 from "zod";
|
|
4002
4052
|
var PluginProgramCoresApi = class {
|
|
4003
4053
|
constructor() {
|
|
4004
4054
|
}
|
|
4005
4055
|
};
|
|
4006
|
-
var PluginProgramCore =
|
|
4007
|
-
id:
|
|
4008
|
-
groupId:
|
|
4009
|
-
storey:
|
|
4056
|
+
var PluginProgramCore = z73.object({
|
|
4057
|
+
id: z73.string(),
|
|
4058
|
+
groupId: z73.string(),
|
|
4059
|
+
storey: z73.number()
|
|
4010
4060
|
});
|
|
4011
|
-
var PluginProgramCoresListResult =
|
|
4012
|
-
cores:
|
|
4061
|
+
var PluginProgramCoresListResult = z73.object({
|
|
4062
|
+
cores: z73.array(PluginProgramCore)
|
|
4013
4063
|
});
|
|
4014
|
-
var PluginProgramCoresIsCoreArgs =
|
|
4015
|
-
id:
|
|
4064
|
+
var PluginProgramCoresIsCoreArgs = z73.object({
|
|
4065
|
+
id: z73.string()
|
|
4016
4066
|
});
|
|
4017
4067
|
|
|
4018
4068
|
// src/api/program/classification.ts
|
|
4019
|
-
import * as
|
|
4069
|
+
import * as z74 from "zod";
|
|
4020
4070
|
var PluginProgramClassificationApi = class {
|
|
4021
4071
|
constructor() {
|
|
4022
4072
|
}
|
|
4023
4073
|
};
|
|
4024
|
-
var PluginClassificationOption =
|
|
4025
|
-
value:
|
|
4026
|
-
label:
|
|
4074
|
+
var PluginClassificationOption = z74.object({
|
|
4075
|
+
value: z74.string(),
|
|
4076
|
+
label: z74.string()
|
|
4027
4077
|
});
|
|
4028
|
-
var PluginProgramClassificationTypesResult =
|
|
4029
|
-
spaceTypes:
|
|
4030
|
-
areaClasses:
|
|
4031
|
-
massTypes:
|
|
4078
|
+
var PluginProgramClassificationTypesResult = z74.object({
|
|
4079
|
+
spaceTypes: z74.array(PluginClassificationOption),
|
|
4080
|
+
areaClasses: z74.array(PluginClassificationOption),
|
|
4081
|
+
massTypes: z74.array(PluginClassificationOption)
|
|
4032
4082
|
});
|
|
4033
|
-
var PluginProgramClassificationListTagsArgs =
|
|
4034
|
-
id:
|
|
4083
|
+
var PluginProgramClassificationListTagsArgs = z74.object({
|
|
4084
|
+
id: z74.string()
|
|
4035
4085
|
});
|
|
4036
|
-
var PluginSpaceTag =
|
|
4037
|
-
tagId:
|
|
4038
|
-
tagName:
|
|
4039
|
-
color:
|
|
4040
|
-
categoryId:
|
|
4086
|
+
var PluginSpaceTag = z74.object({
|
|
4087
|
+
tagId: z74.string(),
|
|
4088
|
+
tagName: z74.string(),
|
|
4089
|
+
color: z74.string(),
|
|
4090
|
+
categoryId: z74.string()
|
|
4041
4091
|
});
|
|
4042
|
-
var PluginProgramClassificationTagsResult =
|
|
4043
|
-
tagIds:
|
|
4044
|
-
tagsByCategory:
|
|
4092
|
+
var PluginProgramClassificationTagsResult = z74.object({
|
|
4093
|
+
tagIds: z74.array(z74.string()),
|
|
4094
|
+
tagsByCategory: z74.record(z74.string(), PluginSpaceTag)
|
|
4045
4095
|
});
|
|
4046
4096
|
|
|
4047
4097
|
// src/api/program/areas.ts
|
|
4048
|
-
import * as
|
|
4098
|
+
import * as z75 from "zod";
|
|
4049
4099
|
var PluginProgramAreasApi = class {
|
|
4050
4100
|
constructor() {
|
|
4051
4101
|
}
|
|
4052
4102
|
};
|
|
4053
|
-
var PluginProgramAreaSummary =
|
|
4054
|
-
count:
|
|
4055
|
-
hiddenCount:
|
|
4056
|
-
carpet:
|
|
4057
|
-
builtUp:
|
|
4058
|
-
excluded:
|
|
4059
|
-
farBuiltUp:
|
|
4060
|
-
siteArea:
|
|
4061
|
-
achievedFar:
|
|
4062
|
-
targetFar:
|
|
4063
|
-
deviation:
|
|
4103
|
+
var PluginProgramAreaSummary = z75.object({
|
|
4104
|
+
count: z75.number().int(),
|
|
4105
|
+
hiddenCount: z75.number().int(),
|
|
4106
|
+
carpet: z75.number(),
|
|
4107
|
+
builtUp: z75.number(),
|
|
4108
|
+
excluded: z75.number(),
|
|
4109
|
+
farBuiltUp: z75.number(),
|
|
4110
|
+
siteArea: z75.number(),
|
|
4111
|
+
achievedFar: z75.number().nullable(),
|
|
4112
|
+
targetFar: z75.number(),
|
|
4113
|
+
deviation: z75.number(),
|
|
4064
4114
|
areaUnit: PluginAreaUnit
|
|
4065
4115
|
});
|
|
4066
|
-
var PluginProgramAreaGroup =
|
|
4067
|
-
groupId:
|
|
4068
|
-
name:
|
|
4069
|
-
color:
|
|
4070
|
-
carpet:
|
|
4071
|
-
builtUp:
|
|
4072
|
-
excluded:
|
|
4073
|
-
count:
|
|
4074
|
-
targetArea:
|
|
4116
|
+
var PluginProgramAreaGroup = z75.object({
|
|
4117
|
+
groupId: z75.string(),
|
|
4118
|
+
name: z75.string(),
|
|
4119
|
+
color: z75.string(),
|
|
4120
|
+
carpet: z75.number(),
|
|
4121
|
+
builtUp: z75.number(),
|
|
4122
|
+
excluded: z75.number(),
|
|
4123
|
+
count: z75.number().int(),
|
|
4124
|
+
targetArea: z75.number(),
|
|
4075
4125
|
targetUnit: PluginAreaUnit
|
|
4076
4126
|
});
|
|
4077
|
-
var PluginProgramAreaMember =
|
|
4127
|
+
var PluginProgramAreaMember = z75.object({
|
|
4078
4128
|
id: ComponentHandle,
|
|
4079
|
-
label:
|
|
4129
|
+
label: z75.string(),
|
|
4080
4130
|
areaClass: PluginAreaClass,
|
|
4081
|
-
carpet:
|
|
4082
|
-
builtUp:
|
|
4083
|
-
excluded:
|
|
4084
|
-
isVisible:
|
|
4131
|
+
carpet: z75.number(),
|
|
4132
|
+
builtUp: z75.number(),
|
|
4133
|
+
excluded: z75.number(),
|
|
4134
|
+
isVisible: z75.boolean()
|
|
4085
4135
|
});
|
|
4086
|
-
var PluginProgramAreaGroupBy =
|
|
4136
|
+
var PluginProgramAreaGroupBy = z75.enum([
|
|
4087
4137
|
"labels",
|
|
4088
4138
|
"storeys",
|
|
4089
4139
|
"buildings",
|
|
@@ -4091,137 +4141,137 @@ var PluginProgramAreaGroupBy = z74.enum([
|
|
|
4091
4141
|
"tagCategories"
|
|
4092
4142
|
]);
|
|
4093
4143
|
var PluginProgramAreasGetResult = PluginProgramAreaSummary;
|
|
4094
|
-
var PluginProgramAreasListArgs =
|
|
4144
|
+
var PluginProgramAreasListArgs = z75.object({
|
|
4095
4145
|
groupBy: PluginProgramAreaGroupBy,
|
|
4096
|
-
categoryId:
|
|
4146
|
+
categoryId: z75.string().optional()
|
|
4097
4147
|
}).refine((v) => v.groupBy !== "tagCategories" || v.categoryId != null, {
|
|
4098
4148
|
message: 'categoryId is required when groupBy is "tagCategories"'
|
|
4099
4149
|
});
|
|
4100
|
-
var PluginProgramAreasListResult =
|
|
4101
|
-
groups:
|
|
4150
|
+
var PluginProgramAreasListResult = z75.object({
|
|
4151
|
+
groups: z75.array(PluginProgramAreaGroup)
|
|
4102
4152
|
});
|
|
4103
|
-
var PluginProgramAreasListMembersArgs =
|
|
4153
|
+
var PluginProgramAreasListMembersArgs = z75.object({
|
|
4104
4154
|
groupBy: PluginProgramAreaGroupBy,
|
|
4105
|
-
groupId:
|
|
4106
|
-
categoryId:
|
|
4155
|
+
groupId: z75.string(),
|
|
4156
|
+
categoryId: z75.string().optional()
|
|
4107
4157
|
}).refine((v) => v.groupBy !== "tagCategories" || v.categoryId != null, {
|
|
4108
4158
|
message: 'categoryId is required when groupBy is "tagCategories"'
|
|
4109
4159
|
});
|
|
4110
|
-
var PluginProgramAreasListMembersResult =
|
|
4111
|
-
members:
|
|
4160
|
+
var PluginProgramAreasListMembersResult = z75.object({
|
|
4161
|
+
members: z75.array(PluginProgramAreaMember)
|
|
4112
4162
|
});
|
|
4113
|
-
var PluginProgramAreasUpdateArgs =
|
|
4114
|
-
targetFar:
|
|
4115
|
-
siteArea:
|
|
4116
|
-
deviation:
|
|
4163
|
+
var PluginProgramAreasUpdateArgs = z75.object({
|
|
4164
|
+
targetFar: z75.number().min(0).optional(),
|
|
4165
|
+
siteArea: z75.number().positive().optional(),
|
|
4166
|
+
deviation: z75.number().min(0).max(100).optional()
|
|
4117
4167
|
});
|
|
4118
4168
|
var PluginProgramAreasUpdateResult = PluginProgramAreaSummary;
|
|
4119
4169
|
var PluginProgramAreasRefreshResult = PluginProgramAreaSummary;
|
|
4120
4170
|
|
|
4121
4171
|
// src/api/program/metadata.ts
|
|
4122
|
-
import * as
|
|
4172
|
+
import * as z76 from "zod";
|
|
4123
4173
|
var PluginProgramMetadataApi = class {
|
|
4124
4174
|
constructor() {
|
|
4125
4175
|
}
|
|
4126
4176
|
};
|
|
4127
|
-
var PluginProgramMetadataHeader =
|
|
4128
|
-
headerId:
|
|
4129
|
-
name:
|
|
4130
|
-
description:
|
|
4131
|
-
columnIndex:
|
|
4177
|
+
var PluginProgramMetadataHeader = z76.object({
|
|
4178
|
+
headerId: z76.string(),
|
|
4179
|
+
name: z76.string(),
|
|
4180
|
+
description: z76.string(),
|
|
4181
|
+
columnIndex: z76.number()
|
|
4132
4182
|
});
|
|
4133
|
-
var PluginProgramMetadataListHeadersResult =
|
|
4134
|
-
headers:
|
|
4183
|
+
var PluginProgramMetadataListHeadersResult = z76.object({
|
|
4184
|
+
headers: z76.array(PluginProgramMetadataHeader)
|
|
4135
4185
|
});
|
|
4136
|
-
var PluginProgramMetadataCreateHeaderArgs =
|
|
4137
|
-
name:
|
|
4138
|
-
description:
|
|
4186
|
+
var PluginProgramMetadataCreateHeaderArgs = z76.object({
|
|
4187
|
+
name: z76.string().trim().min(1),
|
|
4188
|
+
description: z76.string().optional()
|
|
4139
4189
|
});
|
|
4140
4190
|
var PluginProgramMetadataCreateHeaderResult = PluginProgramMetadataHeader;
|
|
4141
|
-
var PluginProgramMetadataRecord =
|
|
4191
|
+
var PluginProgramMetadataRecord = z76.object({
|
|
4142
4192
|
spaceId: ComponentHandle,
|
|
4143
|
-
values:
|
|
4193
|
+
values: z76.record(z76.string(), PluginSpreadsheetCell)
|
|
4144
4194
|
});
|
|
4145
|
-
var PluginProgramMetadataGetArgs =
|
|
4195
|
+
var PluginProgramMetadataGetArgs = z76.object({
|
|
4146
4196
|
spaceId: ComponentHandle
|
|
4147
4197
|
});
|
|
4148
4198
|
var PluginProgramMetadataGetResult = PluginProgramMetadataRecord.nullable();
|
|
4149
|
-
var PluginProgramMetadataListArgs =
|
|
4150
|
-
spaceIds:
|
|
4199
|
+
var PluginProgramMetadataListArgs = z76.object({
|
|
4200
|
+
spaceIds: z76.array(ComponentHandle).optional()
|
|
4151
4201
|
});
|
|
4152
|
-
var PluginProgramMetadataListResult =
|
|
4153
|
-
records:
|
|
4202
|
+
var PluginProgramMetadataListResult = z76.object({
|
|
4203
|
+
records: z76.array(PluginProgramMetadataRecord)
|
|
4154
4204
|
});
|
|
4155
|
-
var PluginProgramMetadataUpdateArgs =
|
|
4205
|
+
var PluginProgramMetadataUpdateArgs = z76.object({
|
|
4156
4206
|
spaceId: ComponentHandle,
|
|
4157
|
-
values:
|
|
4207
|
+
values: z76.record(z76.string(), PluginSpreadsheetCell).refine((v) => Object.keys(v).length > 0, "values must not be empty")
|
|
4158
4208
|
});
|
|
4159
4209
|
var PluginProgramMetadataUpdateResult = PluginProgramMetadataRecord;
|
|
4160
4210
|
var PluginProgramMetadataUpdateItem = PluginProgramMetadataUpdateArgs;
|
|
4161
4211
|
var PLUGIN_PROGRAM_METADATA_BATCH_LIMIT = 1e3;
|
|
4162
|
-
var PluginProgramMetadataUpdateManyArgs =
|
|
4163
|
-
items:
|
|
4212
|
+
var PluginProgramMetadataUpdateManyArgs = z76.object({
|
|
4213
|
+
items: z76.array(PluginProgramMetadataUpdateItem).min(1).max(PLUGIN_PROGRAM_METADATA_BATCH_LIMIT)
|
|
4164
4214
|
});
|
|
4165
|
-
var PluginProgramMetadataUpdateManyResult =
|
|
4166
|
-
records:
|
|
4215
|
+
var PluginProgramMetadataUpdateManyResult = z76.object({
|
|
4216
|
+
records: z76.array(PluginProgramMetadataRecord)
|
|
4167
4217
|
});
|
|
4168
4218
|
|
|
4169
4219
|
// src/api/program/labels.ts
|
|
4170
|
-
import * as
|
|
4220
|
+
import * as z77 from "zod";
|
|
4171
4221
|
var PluginProgramLabelsApi = class {
|
|
4172
4222
|
constructor() {
|
|
4173
4223
|
}
|
|
4174
4224
|
};
|
|
4175
|
-
var PluginProgramLabel =
|
|
4176
|
-
id:
|
|
4177
|
-
name:
|
|
4178
|
-
color:
|
|
4179
|
-
departmentId:
|
|
4180
|
-
targetArea:
|
|
4181
|
-
targetCount:
|
|
4182
|
-
storey:
|
|
4225
|
+
var PluginProgramLabel = z77.object({
|
|
4226
|
+
id: z77.string(),
|
|
4227
|
+
name: z77.string(),
|
|
4228
|
+
color: z77.string(),
|
|
4229
|
+
departmentId: z77.string(),
|
|
4230
|
+
targetArea: z77.number().nullable(),
|
|
4231
|
+
targetCount: z77.number(),
|
|
4232
|
+
storey: z77.number().nullable()
|
|
4183
4233
|
});
|
|
4184
4234
|
var PluginProgramLabelRecord = PluginProgramLabel.extend({
|
|
4185
4235
|
units: PluginAreaUnit
|
|
4186
4236
|
});
|
|
4187
|
-
var PluginProgramLabelsListResult =
|
|
4237
|
+
var PluginProgramLabelsListResult = z77.object({
|
|
4188
4238
|
units: PluginAreaUnit,
|
|
4189
|
-
labels:
|
|
4239
|
+
labels: z77.array(PluginProgramLabel)
|
|
4190
4240
|
});
|
|
4191
|
-
var PluginProgramLabelsGetArgs =
|
|
4192
|
-
labelId:
|
|
4241
|
+
var PluginProgramLabelsGetArgs = z77.object({
|
|
4242
|
+
labelId: z77.string()
|
|
4193
4243
|
});
|
|
4194
4244
|
var PluginProgramLabelsGetResult = PluginProgramLabelRecord.nullable();
|
|
4195
|
-
var PluginProgramLabelCreateItem =
|
|
4196
|
-
name:
|
|
4197
|
-
targetArea:
|
|
4198
|
-
targetCount:
|
|
4199
|
-
departmentId:
|
|
4200
|
-
departmentName:
|
|
4201
|
-
color:
|
|
4202
|
-
storey:
|
|
4203
|
-
height:
|
|
4204
|
-
width:
|
|
4245
|
+
var PluginProgramLabelCreateItem = z77.object({
|
|
4246
|
+
name: z77.string().trim().min(1),
|
|
4247
|
+
targetArea: z77.number().finite().nonnegative().optional(),
|
|
4248
|
+
targetCount: z77.number().int().nonnegative().optional(),
|
|
4249
|
+
departmentId: z77.string().optional(),
|
|
4250
|
+
departmentName: z77.string().optional(),
|
|
4251
|
+
color: z77.string().optional(),
|
|
4252
|
+
storey: z77.number().int().optional(),
|
|
4253
|
+
height: z77.number().finite().positive().optional(),
|
|
4254
|
+
width: z77.number().finite().positive().optional()
|
|
4205
4255
|
});
|
|
4206
4256
|
var PLUGIN_PROGRAM_LABELS_BATCH_LIMIT = 500;
|
|
4207
|
-
var PluginProgramLabelsCreateArgs =
|
|
4208
|
-
items:
|
|
4257
|
+
var PluginProgramLabelsCreateArgs = z77.object({
|
|
4258
|
+
items: z77.array(PluginProgramLabelCreateItem).min(1).max(PLUGIN_PROGRAM_LABELS_BATCH_LIMIT),
|
|
4209
4259
|
units: PluginAreaUnit.optional(),
|
|
4210
|
-
createSpaces:
|
|
4260
|
+
createSpaces: z77.boolean().optional()
|
|
4211
4261
|
});
|
|
4212
|
-
var PluginProgramLabelsCreateResult =
|
|
4213
|
-
labelIds:
|
|
4214
|
-
createdSpaces:
|
|
4262
|
+
var PluginProgramLabelsCreateResult = z77.object({
|
|
4263
|
+
labelIds: z77.array(z77.string()),
|
|
4264
|
+
createdSpaces: z77.boolean()
|
|
4215
4265
|
});
|
|
4216
|
-
var PluginProgramLabelsSetTargetAreaArgs =
|
|
4217
|
-
labelId:
|
|
4218
|
-
targetArea:
|
|
4266
|
+
var PluginProgramLabelsSetTargetAreaArgs = z77.object({
|
|
4267
|
+
labelId: z77.string(),
|
|
4268
|
+
targetArea: z77.number().finite().nonnegative(),
|
|
4219
4269
|
units: PluginAreaUnit.optional()
|
|
4220
4270
|
});
|
|
4221
4271
|
var PluginProgramLabelsSetTargetAreaResult = PluginProgramLabelRecord;
|
|
4222
|
-
var PluginProgramLabelsSetTargetCountArgs =
|
|
4223
|
-
labelId:
|
|
4224
|
-
targetCount:
|
|
4272
|
+
var PluginProgramLabelsSetTargetCountArgs = z77.object({
|
|
4273
|
+
labelId: z77.string(),
|
|
4274
|
+
targetCount: z77.number().int().nonnegative()
|
|
4225
4275
|
});
|
|
4226
4276
|
var PluginProgramLabelsSetTargetCountResult = PluginProgramLabelRecord;
|
|
4227
4277
|
|
|
@@ -4232,72 +4282,72 @@ var PluginProgramApi = class {
|
|
|
4232
4282
|
};
|
|
4233
4283
|
|
|
4234
4284
|
// src/api/presentation/views.ts
|
|
4235
|
-
import * as
|
|
4285
|
+
import * as z78 from "zod";
|
|
4236
4286
|
var PluginPresentationViewsApi = class {
|
|
4237
4287
|
constructor() {
|
|
4238
4288
|
}
|
|
4239
4289
|
};
|
|
4240
|
-
var PluginPresentationViewType =
|
|
4241
|
-
var PluginPresentationView =
|
|
4242
|
-
id:
|
|
4243
|
-
name:
|
|
4290
|
+
var PluginPresentationViewType = z78.enum(["2d", "3d"]);
|
|
4291
|
+
var PluginPresentationView = z78.object({
|
|
4292
|
+
id: z78.string(),
|
|
4293
|
+
name: z78.string(),
|
|
4244
4294
|
type: PluginPresentationViewType,
|
|
4245
|
-
isActive:
|
|
4246
|
-
storey:
|
|
4295
|
+
isActive: z78.boolean(),
|
|
4296
|
+
storey: z78.number().nullable()
|
|
4247
4297
|
});
|
|
4248
|
-
var PluginPresentationViewsListResult =
|
|
4249
|
-
views:
|
|
4298
|
+
var PluginPresentationViewsListResult = z78.object({
|
|
4299
|
+
views: z78.array(PluginPresentationView)
|
|
4250
4300
|
});
|
|
4251
|
-
var PluginPresentationViewsGetArgs =
|
|
4252
|
-
id:
|
|
4301
|
+
var PluginPresentationViewsGetArgs = z78.object({
|
|
4302
|
+
id: z78.string()
|
|
4253
4303
|
});
|
|
4254
4304
|
var PluginPresentationViewsGetResult = PluginPresentationView.nullable();
|
|
4255
|
-
var PluginPresentationImageFormat =
|
|
4256
|
-
var PluginPresentationViewsCaptureArgs =
|
|
4257
|
-
viewId:
|
|
4305
|
+
var PluginPresentationImageFormat = z78.enum(["png", "jpeg"]);
|
|
4306
|
+
var PluginPresentationViewsCaptureArgs = z78.object({
|
|
4307
|
+
viewId: z78.string().optional(),
|
|
4258
4308
|
format: PluginPresentationImageFormat.optional(),
|
|
4259
|
-
resolution:
|
|
4309
|
+
resolution: z78.string().optional()
|
|
4260
4310
|
});
|
|
4261
|
-
var PluginPresentationViewsCaptureResult =
|
|
4262
|
-
image:
|
|
4311
|
+
var PluginPresentationViewsCaptureResult = z78.object({
|
|
4312
|
+
image: z78.string()
|
|
4263
4313
|
});
|
|
4264
|
-
var PluginPresentationViewsSetActiveArgs =
|
|
4265
|
-
id:
|
|
4314
|
+
var PluginPresentationViewsSetActiveArgs = z78.object({
|
|
4315
|
+
id: z78.string()
|
|
4266
4316
|
});
|
|
4267
|
-
var PluginPresentationViewsSetActiveResult =
|
|
4268
|
-
id:
|
|
4317
|
+
var PluginPresentationViewsSetActiveResult = z78.object({
|
|
4318
|
+
id: z78.string()
|
|
4269
4319
|
});
|
|
4270
|
-
var PluginPresentationViewsCreateArgs =
|
|
4271
|
-
name:
|
|
4272
|
-
kind:
|
|
4273
|
-
storey:
|
|
4320
|
+
var PluginPresentationViewsCreateArgs = z78.object({
|
|
4321
|
+
name: z78.string().optional(),
|
|
4322
|
+
kind: z78.enum(["view", "sitePlan"]).optional(),
|
|
4323
|
+
storey: z78.number().optional()
|
|
4274
4324
|
});
|
|
4275
4325
|
var PluginPresentationViewsCreateResult = PluginPresentationView;
|
|
4276
|
-
var PluginPresentationViewColorMode =
|
|
4277
|
-
|
|
4278
|
-
|
|
4326
|
+
var PluginPresentationViewColorMode = z78.union([
|
|
4327
|
+
z78.enum(["monochrome", "texture", "department"]),
|
|
4328
|
+
z78.templateLiteral(["tag:", z78.string()])
|
|
4279
4329
|
]);
|
|
4280
|
-
var PluginPresentationViewLabel =
|
|
4330
|
+
var PluginPresentationViewLabel = z78.enum([
|
|
4281
4331
|
"objectLabels",
|
|
4282
4332
|
"areas",
|
|
4283
4333
|
"department"
|
|
4284
4334
|
]);
|
|
4285
|
-
var PluginPresentationViewMode =
|
|
4286
|
-
var PluginPresentationViewSettings =
|
|
4287
|
-
backgroundColor:
|
|
4335
|
+
var PluginPresentationViewMode = z78.enum(["perspective", "isometric"]);
|
|
4336
|
+
var PluginPresentationViewSettings = z78.object({
|
|
4337
|
+
backgroundColor: z78.string(),
|
|
4288
4338
|
colorMode: PluginPresentationViewColorMode,
|
|
4289
4339
|
viewMode: PluginPresentationViewMode,
|
|
4290
|
-
showAxis:
|
|
4291
|
-
showEdges:
|
|
4292
|
-
showLabels:
|
|
4293
|
-
labels:
|
|
4340
|
+
showAxis: z78.boolean(),
|
|
4341
|
+
showEdges: z78.boolean(),
|
|
4342
|
+
showLabels: z78.boolean(),
|
|
4343
|
+
labels: z78.array(PluginPresentationViewLabel)
|
|
4294
4344
|
});
|
|
4295
|
-
var PluginPresentationViewsGetSettingsArgs =
|
|
4296
|
-
id:
|
|
4345
|
+
var PluginPresentationViewsGetSettingsArgs = z78.object({
|
|
4346
|
+
id: z78.string()
|
|
4297
4347
|
});
|
|
4298
4348
|
var PluginPresentationViewsGetSettingsResult = PluginPresentationViewSettings.nullable();
|
|
4299
|
-
var PluginPresentationViewsUpdateSettingsArgs =
|
|
4300
|
-
id:
|
|
4349
|
+
var PluginPresentationViewsUpdateSettingsArgs = z78.object({
|
|
4350
|
+
id: z78.string(),
|
|
4301
4351
|
settings: PluginPresentationViewSettings.partial()
|
|
4302
4352
|
}).refine(
|
|
4303
4353
|
(v) => !(v.settings.showLabels === false && (v.settings.labels?.length ?? 0) > 0),
|
|
@@ -4310,28 +4360,28 @@ var PluginPresentationViewsUpdateSettingsArgs = z77.object({
|
|
|
4310
4360
|
message: "Contradictory patch: showLabels cannot be true with an explicitly empty labels list \u2014 pass a non-empty list, or omit labels to apply the defaults"
|
|
4311
4361
|
}
|
|
4312
4362
|
);
|
|
4313
|
-
var PluginPresentationViewsUpdateSettingsResult =
|
|
4314
|
-
id:
|
|
4363
|
+
var PluginPresentationViewsUpdateSettingsResult = z78.object({
|
|
4364
|
+
id: z78.string()
|
|
4315
4365
|
});
|
|
4316
|
-
var PluginPresentationViewsRenameArgs =
|
|
4317
|
-
id:
|
|
4318
|
-
name:
|
|
4366
|
+
var PluginPresentationViewsRenameArgs = z78.object({
|
|
4367
|
+
id: z78.string(),
|
|
4368
|
+
name: z78.string().trim().min(1)
|
|
4319
4369
|
});
|
|
4320
4370
|
var PluginPresentationViewsRenameResult = PluginPresentationView;
|
|
4321
|
-
var PluginPresentationViewsDeleteArgs =
|
|
4322
|
-
id:
|
|
4371
|
+
var PluginPresentationViewsDeleteArgs = z78.object({
|
|
4372
|
+
id: z78.string()
|
|
4323
4373
|
});
|
|
4324
|
-
var PluginPresentationViewsDeleteResult =
|
|
4325
|
-
id:
|
|
4374
|
+
var PluginPresentationViewsDeleteResult = z78.object({
|
|
4375
|
+
id: z78.string()
|
|
4326
4376
|
});
|
|
4327
4377
|
|
|
4328
4378
|
// src/api/presentation/sheets.ts
|
|
4329
|
-
import * as
|
|
4379
|
+
import * as z79 from "zod";
|
|
4330
4380
|
var PluginPresentationSheetsApi = class {
|
|
4331
4381
|
constructor() {
|
|
4332
4382
|
}
|
|
4333
4383
|
};
|
|
4334
|
-
var PluginSheetSize =
|
|
4384
|
+
var PluginSheetSize = z79.enum([
|
|
4335
4385
|
"ANSI_A",
|
|
4336
4386
|
"ANSI_B",
|
|
4337
4387
|
"ANSI_C",
|
|
@@ -4349,140 +4399,140 @@ var PluginSheetSize = z78.enum([
|
|
|
4349
4399
|
"ISO_A1",
|
|
4350
4400
|
"ISO_A0"
|
|
4351
4401
|
]);
|
|
4352
|
-
var PluginSheetOrientation =
|
|
4353
|
-
var PluginSheetMargin =
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4402
|
+
var PluginSheetOrientation = z79.enum(["landscape", "portrait"]);
|
|
4403
|
+
var PluginSheetMargin = z79.union([
|
|
4404
|
+
z79.literal(0),
|
|
4405
|
+
z79.literal(0.25),
|
|
4406
|
+
z79.literal(0.5),
|
|
4407
|
+
z79.literal(0.75),
|
|
4408
|
+
z79.literal(1)
|
|
4359
4409
|
]);
|
|
4360
|
-
var PluginPresentationSheet =
|
|
4361
|
-
id:
|
|
4362
|
-
name:
|
|
4410
|
+
var PluginPresentationSheet = z79.object({
|
|
4411
|
+
id: z79.string(),
|
|
4412
|
+
name: z79.string(),
|
|
4363
4413
|
size: PluginSheetSize.nullable(),
|
|
4364
4414
|
orientation: PluginSheetOrientation.nullable(),
|
|
4365
4415
|
margin: PluginSheetMargin.nullable()
|
|
4366
4416
|
});
|
|
4367
|
-
var PluginSheetPosition =
|
|
4368
|
-
x:
|
|
4369
|
-
y:
|
|
4417
|
+
var PluginSheetPosition = z79.object({
|
|
4418
|
+
x: z79.number(),
|
|
4419
|
+
y: z79.number()
|
|
4370
4420
|
});
|
|
4371
|
-
var PluginPresentationSheetsListResult =
|
|
4372
|
-
sheets:
|
|
4421
|
+
var PluginPresentationSheetsListResult = z79.object({
|
|
4422
|
+
sheets: z79.array(PluginPresentationSheet)
|
|
4373
4423
|
});
|
|
4374
|
-
var PluginPresentationSheetsGetArgs =
|
|
4375
|
-
id:
|
|
4424
|
+
var PluginPresentationSheetsGetArgs = z79.object({
|
|
4425
|
+
id: z79.string()
|
|
4376
4426
|
});
|
|
4377
4427
|
var PluginPresentationSheetsGetResult = PluginPresentationSheet.nullable();
|
|
4378
|
-
var PluginPresentationSheetsCreateArgs =
|
|
4379
|
-
name:
|
|
4428
|
+
var PluginPresentationSheetsCreateArgs = z79.object({
|
|
4429
|
+
name: z79.string().optional(),
|
|
4380
4430
|
size: PluginSheetSize.optional(),
|
|
4381
4431
|
orientation: PluginSheetOrientation.optional()
|
|
4382
4432
|
});
|
|
4383
|
-
var PluginPresentationSheetsSetSizeArgs =
|
|
4384
|
-
sheetId:
|
|
4433
|
+
var PluginPresentationSheetsSetSizeArgs = z79.object({
|
|
4434
|
+
sheetId: z79.string(),
|
|
4385
4435
|
size: PluginSheetSize,
|
|
4386
4436
|
orientation: PluginSheetOrientation.optional()
|
|
4387
4437
|
});
|
|
4388
|
-
var PluginPresentationSheetsSetMarginArgs =
|
|
4389
|
-
sheetId:
|
|
4438
|
+
var PluginPresentationSheetsSetMarginArgs = z79.object({
|
|
4439
|
+
sheetId: z79.string(),
|
|
4390
4440
|
margin: PluginSheetMargin
|
|
4391
4441
|
});
|
|
4392
|
-
var PluginPresentationSheetsPlaceArgs =
|
|
4393
|
-
sheetId:
|
|
4394
|
-
viewId:
|
|
4442
|
+
var PluginPresentationSheetsPlaceArgs = z79.object({
|
|
4443
|
+
sheetId: z79.string(),
|
|
4444
|
+
viewId: z79.string(),
|
|
4395
4445
|
position: PluginSheetPosition.optional(),
|
|
4396
|
-
scale:
|
|
4446
|
+
scale: z79.number().positive().optional()
|
|
4397
4447
|
});
|
|
4398
|
-
var PluginPresentationSheetsPlaceResult =
|
|
4399
|
-
shapeId:
|
|
4448
|
+
var PluginPresentationSheetsPlaceResult = z79.object({
|
|
4449
|
+
shapeId: z79.string()
|
|
4400
4450
|
});
|
|
4401
|
-
var PluginPresentationSheetsRenameArgs =
|
|
4402
|
-
sheetId:
|
|
4403
|
-
name:
|
|
4451
|
+
var PluginPresentationSheetsRenameArgs = z79.object({
|
|
4452
|
+
sheetId: z79.string(),
|
|
4453
|
+
name: z79.string().trim().min(1)
|
|
4404
4454
|
});
|
|
4405
|
-
var PluginPresentationSheetsDeleteArgs =
|
|
4406
|
-
sheetId:
|
|
4455
|
+
var PluginPresentationSheetsDeleteArgs = z79.object({
|
|
4456
|
+
sheetId: z79.string()
|
|
4407
4457
|
});
|
|
4408
|
-
var PluginPresentationSheetsDeleteResult =
|
|
4409
|
-
id:
|
|
4458
|
+
var PluginPresentationSheetsDeleteResult = z79.object({
|
|
4459
|
+
id: z79.string()
|
|
4410
4460
|
});
|
|
4411
|
-
var PluginPresentationSheetsReorderArgs =
|
|
4412
|
-
sheetId:
|
|
4413
|
-
index:
|
|
4461
|
+
var PluginPresentationSheetsReorderArgs = z79.object({
|
|
4462
|
+
sheetId: z79.string(),
|
|
4463
|
+
index: z79.number().int().min(0)
|
|
4414
4464
|
});
|
|
4415
|
-
var PluginPresentationSheetsSetActiveArgs =
|
|
4416
|
-
sheetId:
|
|
4465
|
+
var PluginPresentationSheetsSetActiveArgs = z79.object({
|
|
4466
|
+
sheetId: z79.string()
|
|
4417
4467
|
});
|
|
4418
|
-
var PluginPresentationSheetsUpdatePlacedViewArgs =
|
|
4419
|
-
sheetId:
|
|
4468
|
+
var PluginPresentationSheetsUpdatePlacedViewArgs = z79.object({
|
|
4469
|
+
sheetId: z79.string().optional()
|
|
4420
4470
|
});
|
|
4421
|
-
var PluginPresentationSheetsUpdatePlacedViewResult =
|
|
4422
|
-
shapeIds:
|
|
4471
|
+
var PluginPresentationSheetsUpdatePlacedViewResult = z79.object({
|
|
4472
|
+
shapeIds: z79.array(z79.string())
|
|
4423
4473
|
});
|
|
4424
4474
|
|
|
4425
4475
|
// src/api/presentation/placedViews.ts
|
|
4426
|
-
import * as
|
|
4476
|
+
import * as z80 from "zod";
|
|
4427
4477
|
var PluginPresentationPlacedViewsApi = class {
|
|
4428
4478
|
constructor() {
|
|
4429
4479
|
}
|
|
4430
4480
|
};
|
|
4431
|
-
var PluginPlacedViewCropPoint =
|
|
4432
|
-
x:
|
|
4433
|
-
y:
|
|
4481
|
+
var PluginPlacedViewCropPoint = z80.object({
|
|
4482
|
+
x: z80.number().min(0).max(1),
|
|
4483
|
+
y: z80.number().min(0).max(1)
|
|
4434
4484
|
});
|
|
4435
|
-
var PluginPlacedViewCrop =
|
|
4485
|
+
var PluginPlacedViewCrop = z80.object({
|
|
4436
4486
|
topLeft: PluginPlacedViewCropPoint,
|
|
4437
4487
|
bottomRight: PluginPlacedViewCropPoint
|
|
4438
4488
|
}).refine(
|
|
4439
4489
|
(c) => c.topLeft.x < c.bottomRight.x && c.topLeft.y < c.bottomRight.y,
|
|
4440
4490
|
{ message: "topLeft must be strictly less than bottomRight on both axes" }
|
|
4441
4491
|
);
|
|
4442
|
-
var PluginPlacedView =
|
|
4443
|
-
shapeId:
|
|
4444
|
-
sheetId:
|
|
4445
|
-
title:
|
|
4446
|
-
viewId:
|
|
4492
|
+
var PluginPlacedView = z80.object({
|
|
4493
|
+
shapeId: z80.string(),
|
|
4494
|
+
sheetId: z80.string().nullable(),
|
|
4495
|
+
title: z80.string(),
|
|
4496
|
+
viewId: z80.string(),
|
|
4447
4497
|
position: PluginSheetPosition,
|
|
4448
|
-
size:
|
|
4449
|
-
scale:
|
|
4450
|
-
is3d:
|
|
4451
|
-
rotation:
|
|
4498
|
+
size: z80.object({ width: z80.number(), height: z80.number() }),
|
|
4499
|
+
scale: z80.number().nullable(),
|
|
4500
|
+
is3d: z80.boolean(),
|
|
4501
|
+
rotation: z80.number(),
|
|
4452
4502
|
crop: PluginPlacedViewCrop.nullable(),
|
|
4453
|
-
isUnlinked:
|
|
4503
|
+
isUnlinked: z80.boolean()
|
|
4454
4504
|
});
|
|
4455
|
-
var PluginPresentationPlacedViewsListArgs =
|
|
4456
|
-
sheetId:
|
|
4505
|
+
var PluginPresentationPlacedViewsListArgs = z80.object({
|
|
4506
|
+
sheetId: z80.string().optional()
|
|
4457
4507
|
});
|
|
4458
|
-
var PluginPresentationPlacedViewsListResult =
|
|
4459
|
-
placedViews:
|
|
4508
|
+
var PluginPresentationPlacedViewsListResult = z80.object({
|
|
4509
|
+
placedViews: z80.array(PluginPlacedView)
|
|
4460
4510
|
});
|
|
4461
|
-
var PluginPresentationPlacedViewsGetArgs =
|
|
4462
|
-
shapeId:
|
|
4511
|
+
var PluginPresentationPlacedViewsGetArgs = z80.object({
|
|
4512
|
+
shapeId: z80.string()
|
|
4463
4513
|
});
|
|
4464
|
-
var PluginPresentationPlacedViewsMoveArgs =
|
|
4465
|
-
shapeId:
|
|
4514
|
+
var PluginPresentationPlacedViewsMoveArgs = z80.object({
|
|
4515
|
+
shapeId: z80.string(),
|
|
4466
4516
|
position: PluginSheetPosition,
|
|
4467
|
-
sheetId:
|
|
4517
|
+
sheetId: z80.string().optional()
|
|
4468
4518
|
});
|
|
4469
|
-
var PluginPresentationPlacedViewsScaleArgs =
|
|
4470
|
-
shapeId:
|
|
4471
|
-
factor:
|
|
4519
|
+
var PluginPresentationPlacedViewsScaleArgs = z80.object({
|
|
4520
|
+
shapeId: z80.string(),
|
|
4521
|
+
factor: z80.number().finite().min(0.01).max(100)
|
|
4472
4522
|
});
|
|
4473
|
-
var PluginPresentationPlacedViewsSetScaleArgs =
|
|
4474
|
-
shapeId:
|
|
4475
|
-
scale:
|
|
4523
|
+
var PluginPresentationPlacedViewsSetScaleArgs = z80.object({
|
|
4524
|
+
shapeId: z80.string(),
|
|
4525
|
+
scale: z80.number().positive()
|
|
4476
4526
|
});
|
|
4477
|
-
var PluginPresentationPlacedViewsSetCropArgs =
|
|
4478
|
-
shapeId:
|
|
4527
|
+
var PluginPresentationPlacedViewsSetCropArgs = z80.object({
|
|
4528
|
+
shapeId: z80.string(),
|
|
4479
4529
|
crop: PluginPlacedViewCrop.nullable()
|
|
4480
4530
|
});
|
|
4481
|
-
var PluginPresentationPlacedViewsSetRotationArgs =
|
|
4482
|
-
shapeId:
|
|
4483
|
-
rotation:
|
|
4531
|
+
var PluginPresentationPlacedViewsSetRotationArgs = z80.object({
|
|
4532
|
+
shapeId: z80.string().min(1),
|
|
4533
|
+
rotation: z80.number().finite()
|
|
4484
4534
|
});
|
|
4485
|
-
var PluginViewSettingCategory =
|
|
4535
|
+
var PluginViewSettingCategory = z80.enum([
|
|
4486
4536
|
"Site",
|
|
4487
4537
|
"Topography",
|
|
4488
4538
|
"Space",
|
|
@@ -4494,7 +4544,7 @@ var PluginViewSettingCategory = z79.enum([
|
|
|
4494
4544
|
"Adjacency Line",
|
|
4495
4545
|
"Landscape elements"
|
|
4496
4546
|
]);
|
|
4497
|
-
var PluginViewLineStyle =
|
|
4547
|
+
var PluginViewLineStyle = z80.enum([
|
|
4498
4548
|
"solid",
|
|
4499
4549
|
"dashed",
|
|
4500
4550
|
"dashdot",
|
|
@@ -4503,62 +4553,62 @@ var PluginViewLineStyle = z79.enum([
|
|
|
4503
4553
|
"phantom",
|
|
4504
4554
|
"propertyLine"
|
|
4505
4555
|
]);
|
|
4506
|
-
var PluginPlacedViewStylePatch =
|
|
4507
|
-
hide:
|
|
4556
|
+
var PluginPlacedViewStylePatch = z80.object({
|
|
4557
|
+
hide: z80.boolean().optional(),
|
|
4508
4558
|
lineStyle: PluginViewLineStyle.optional(),
|
|
4509
|
-
lineColor:
|
|
4510
|
-
dashLength:
|
|
4511
|
-
lineWidth:
|
|
4512
|
-
cutWidth:
|
|
4513
|
-
projectionWidth:
|
|
4514
|
-
treeLineWidth:
|
|
4515
|
-
parkingLineWidth:
|
|
4516
|
-
colorMode:
|
|
4559
|
+
lineColor: z80.string().regex(/^#?[0-9a-fA-F]{6}$/, "lineColor must be a 6-digit hex color").optional(),
|
|
4560
|
+
dashLength: z80.number().finite().positive().optional(),
|
|
4561
|
+
lineWidth: z80.number().finite().min(0).optional(),
|
|
4562
|
+
cutWidth: z80.number().finite().min(0).optional(),
|
|
4563
|
+
projectionWidth: z80.number().finite().min(0).optional(),
|
|
4564
|
+
treeLineWidth: z80.number().finite().min(0).optional(),
|
|
4565
|
+
parkingLineWidth: z80.number().finite().min(0).optional(),
|
|
4566
|
+
colorMode: z80.string().refine(
|
|
4517
4567
|
(v) => ["department", "texture", "monochrome"].includes(v) || v.startsWith("tag:"),
|
|
4518
4568
|
{ message: "colorMode must be department, texture, monochrome, or tag:<tagCategoryId>" }
|
|
4519
4569
|
).optional(),
|
|
4520
|
-
opacity:
|
|
4521
|
-
mapOpacity:
|
|
4522
|
-
buildingOpacity:
|
|
4523
|
-
mapHide:
|
|
4524
|
-
buildingHide:
|
|
4525
|
-
noBuilding:
|
|
4526
|
-
viewStyle:
|
|
4527
|
-
radius:
|
|
4528
|
-
inset:
|
|
4570
|
+
opacity: z80.number().finite().min(0).max(100).optional(),
|
|
4571
|
+
mapOpacity: z80.number().finite().min(0).max(100).optional(),
|
|
4572
|
+
buildingOpacity: z80.number().finite().min(0).max(100).optional(),
|
|
4573
|
+
mapHide: z80.boolean().optional(),
|
|
4574
|
+
buildingHide: z80.boolean().optional(),
|
|
4575
|
+
noBuilding: z80.boolean().optional(),
|
|
4576
|
+
viewStyle: z80.enum(["NONE", "FILLET", "BUBBLE"]).optional(),
|
|
4577
|
+
radius: z80.number().finite().min(0).optional(),
|
|
4578
|
+
inset: z80.number().finite().min(0).optional()
|
|
4529
4579
|
}).strict().refine((p) => Object.keys(p).length > 0, { message: "patch must set at least one setting" });
|
|
4530
|
-
var PluginViewLabelType =
|
|
4531
|
-
var PluginViewFontVariantPatch =
|
|
4532
|
-
fontFamily:
|
|
4533
|
-
fontWeight:
|
|
4534
|
-
fontStyle:
|
|
4535
|
-
fontSize:
|
|
4580
|
+
var PluginViewLabelType = z80.enum(["objectLabels", "department", "areas"]);
|
|
4581
|
+
var PluginViewFontVariantPatch = z80.object({
|
|
4582
|
+
fontFamily: z80.string().min(1).optional(),
|
|
4583
|
+
fontWeight: z80.string().regex(/^\d{3}$/, 'fontWeight must be a numeric string like "400" or "700"').optional(),
|
|
4584
|
+
fontStyle: z80.enum(["normal", "italic"]).optional(),
|
|
4585
|
+
fontSize: z80.number().finite().positive().max(200).optional()
|
|
4536
4586
|
}).strict();
|
|
4537
|
-
var PluginPlacedViewFontStylesPatch =
|
|
4538
|
-
visibleTypes:
|
|
4587
|
+
var PluginPlacedViewFontStylesPatch = z80.object({
|
|
4588
|
+
visibleTypes: z80.array(PluginViewLabelType).optional(),
|
|
4539
4589
|
objectLabels: PluginViewFontVariantPatch.optional(),
|
|
4540
4590
|
department: PluginViewFontVariantPatch.optional(),
|
|
4541
4591
|
areas: PluginViewFontVariantPatch.optional()
|
|
4542
4592
|
}).strict().refine((p) => Object.keys(p).length > 0, { message: "patch must set at least one field" });
|
|
4543
|
-
var PluginPlacedViewsUpdateStylesArgs =
|
|
4544
|
-
shapeId:
|
|
4593
|
+
var PluginPlacedViewsUpdateStylesArgs = z80.object({
|
|
4594
|
+
shapeId: z80.string().min(1),
|
|
4545
4595
|
category: PluginViewSettingCategory,
|
|
4546
4596
|
patch: PluginPlacedViewStylePatch
|
|
4547
4597
|
});
|
|
4548
|
-
var PluginPlacedViewsUpdateFontStylesArgs =
|
|
4549
|
-
shapeId:
|
|
4598
|
+
var PluginPlacedViewsUpdateFontStylesArgs = z80.object({
|
|
4599
|
+
shapeId: z80.string().min(1),
|
|
4550
4600
|
category: PluginViewSettingCategory,
|
|
4551
4601
|
patch: PluginPlacedViewFontStylesPatch
|
|
4552
4602
|
});
|
|
4553
|
-
var PluginPlacedViewsMoveLabelArgs =
|
|
4554
|
-
labelId:
|
|
4603
|
+
var PluginPlacedViewsMoveLabelArgs = z80.object({
|
|
4604
|
+
labelId: z80.string().min(1),
|
|
4555
4605
|
position: PluginSheetPosition
|
|
4556
4606
|
});
|
|
4557
|
-
var PluginPlacedViewsSetLabelHiddenArgs =
|
|
4558
|
-
labelId:
|
|
4559
|
-
hidden:
|
|
4607
|
+
var PluginPlacedViewsSetLabelHiddenArgs = z80.object({
|
|
4608
|
+
labelId: z80.string().min(1),
|
|
4609
|
+
hidden: z80.boolean()
|
|
4560
4610
|
});
|
|
4561
|
-
var PluginCanvasShapeOrigin =
|
|
4611
|
+
var PluginCanvasShapeOrigin = z80.enum([
|
|
4562
4612
|
"view",
|
|
4563
4613
|
"aiOutput",
|
|
4564
4614
|
"diagram",
|
|
@@ -4567,65 +4617,65 @@ var PluginCanvasShapeOrigin = z79.enum([
|
|
|
4567
4617
|
"image",
|
|
4568
4618
|
"other"
|
|
4569
4619
|
]);
|
|
4570
|
-
var PluginPlacedViewsMoveShapeArgs =
|
|
4571
|
-
shapeId:
|
|
4620
|
+
var PluginPlacedViewsMoveShapeArgs = z80.object({
|
|
4621
|
+
shapeId: z80.string().min(1),
|
|
4572
4622
|
position: PluginSheetPosition,
|
|
4573
|
-
sheetId:
|
|
4623
|
+
sheetId: z80.string().optional()
|
|
4574
4624
|
});
|
|
4575
|
-
var PluginPlacedViewsResizeShapeArgs =
|
|
4576
|
-
shapeId:
|
|
4577
|
-
factor:
|
|
4625
|
+
var PluginPlacedViewsResizeShapeArgs = z80.object({
|
|
4626
|
+
shapeId: z80.string().min(1),
|
|
4627
|
+
factor: z80.number().finite().min(0.01).max(100)
|
|
4578
4628
|
});
|
|
4579
|
-
var PluginPresentationPlacedViewsRotateShapeArgs =
|
|
4580
|
-
shapeId:
|
|
4581
|
-
rotation:
|
|
4629
|
+
var PluginPresentationPlacedViewsRotateShapeArgs = z80.object({
|
|
4630
|
+
shapeId: z80.string().min(1),
|
|
4631
|
+
rotation: z80.number().finite()
|
|
4582
4632
|
});
|
|
4583
|
-
var PluginPlacedViewsDeleteShapesArgs =
|
|
4584
|
-
shapeIds:
|
|
4633
|
+
var PluginPlacedViewsDeleteShapesArgs = z80.object({
|
|
4634
|
+
shapeIds: z80.array(z80.string().min(1)).min(1).max(500)
|
|
4585
4635
|
});
|
|
4586
|
-
var PluginPlacedViewsSetOpacityArgs =
|
|
4587
|
-
shapeId:
|
|
4588
|
-
opacity:
|
|
4636
|
+
var PluginPlacedViewsSetOpacityArgs = z80.object({
|
|
4637
|
+
shapeId: z80.string().min(1),
|
|
4638
|
+
opacity: z80.number().finite().min(0).max(1)
|
|
4589
4639
|
});
|
|
4590
|
-
var PluginPlacedViewsSetMaskArgs =
|
|
4591
|
-
shapeId:
|
|
4592
|
-
enabled:
|
|
4640
|
+
var PluginPlacedViewsSetMaskArgs = z80.object({
|
|
4641
|
+
shapeId: z80.string().min(1),
|
|
4642
|
+
enabled: z80.boolean()
|
|
4593
4643
|
});
|
|
4594
4644
|
|
|
4595
4645
|
// src/api/presentation/diagrams.ts
|
|
4596
|
-
import * as
|
|
4646
|
+
import * as z81 from "zod";
|
|
4597
4647
|
var PluginPresentationDiagramsApi = class {
|
|
4598
4648
|
constructor() {
|
|
4599
4649
|
}
|
|
4600
4650
|
};
|
|
4601
|
-
var PluginPresentationDiagramsPlaceArgs =
|
|
4602
|
-
sheetId:
|
|
4603
|
-
urls:
|
|
4604
|
-
position:
|
|
4651
|
+
var PluginPresentationDiagramsPlaceArgs = z81.object({
|
|
4652
|
+
sheetId: z81.string(),
|
|
4653
|
+
urls: z81.array(z81.string()),
|
|
4654
|
+
position: z81.object({ x: z81.number(), y: z81.number() }).optional()
|
|
4605
4655
|
});
|
|
4606
|
-
var PluginPresentationDiagramsPlaceResult =
|
|
4607
|
-
shapeIds:
|
|
4656
|
+
var PluginPresentationDiagramsPlaceResult = z81.object({
|
|
4657
|
+
shapeIds: z81.array(z81.string())
|
|
4608
4658
|
});
|
|
4609
|
-
var PluginPresentationSiteDiagramType =
|
|
4659
|
+
var PluginPresentationSiteDiagramType = z81.enum([
|
|
4610
4660
|
"location",
|
|
4611
4661
|
"streetview",
|
|
4612
4662
|
"climate"
|
|
4613
4663
|
]);
|
|
4614
|
-
var PluginPresentationDiagramsGenerateSiteArgs =
|
|
4615
|
-
types:
|
|
4664
|
+
var PluginPresentationDiagramsGenerateSiteArgs = z81.object({
|
|
4665
|
+
types: z81.array(PluginPresentationSiteDiagramType).min(1).optional()
|
|
4616
4666
|
});
|
|
4617
|
-
var PluginPresentationDiagramsGenerateResult =
|
|
4618
|
-
sheetIds:
|
|
4667
|
+
var PluginPresentationDiagramsGenerateResult = z81.object({
|
|
4668
|
+
sheetIds: z81.array(z81.string())
|
|
4619
4669
|
});
|
|
4620
4670
|
|
|
4621
4671
|
// src/api/presentation/annotate.ts
|
|
4622
|
-
import * as
|
|
4672
|
+
import * as z82 from "zod";
|
|
4623
4673
|
var PluginPresentationAnnotateApi = class {
|
|
4624
4674
|
constructor() {
|
|
4625
4675
|
}
|
|
4626
4676
|
};
|
|
4627
|
-
var PluginAnnotateTextSize =
|
|
4628
|
-
var PluginAnnotateTextColor =
|
|
4677
|
+
var PluginAnnotateTextSize = z82.enum(["s", "m", "l", "xl"]);
|
|
4678
|
+
var PluginAnnotateTextColor = z82.enum([
|
|
4629
4679
|
"black",
|
|
4630
4680
|
"grey",
|
|
4631
4681
|
"light-violet",
|
|
@@ -4640,23 +4690,23 @@ var PluginAnnotateTextColor = z81.enum([
|
|
|
4640
4690
|
"red",
|
|
4641
4691
|
"white"
|
|
4642
4692
|
]);
|
|
4643
|
-
var PluginPresentationAnnotateTextArgs =
|
|
4644
|
-
sheetId:
|
|
4645
|
-
text:
|
|
4646
|
-
position:
|
|
4693
|
+
var PluginPresentationAnnotateTextArgs = z82.object({
|
|
4694
|
+
sheetId: z82.string(),
|
|
4695
|
+
text: z82.string(),
|
|
4696
|
+
position: z82.object({ x: z82.number(), y: z82.number() }).optional(),
|
|
4647
4697
|
size: PluginAnnotateTextSize.optional(),
|
|
4648
4698
|
color: PluginAnnotateTextColor.optional(),
|
|
4649
|
-
fontFamily:
|
|
4650
|
-
fontWeight:
|
|
4699
|
+
fontFamily: z82.string().min(1).optional(),
|
|
4700
|
+
fontWeight: z82.string().regex(
|
|
4651
4701
|
/^\d{3}(-italic)?$/,
|
|
4652
4702
|
'fontWeight must be a numeric string like "400" or "700", optionally with the "-italic" suffix'
|
|
4653
4703
|
).optional(),
|
|
4654
|
-
fontSizePx:
|
|
4704
|
+
fontSizePx: z82.number().finite().positive().optional()
|
|
4655
4705
|
});
|
|
4656
|
-
var PluginPresentationAnnotateTextResult =
|
|
4657
|
-
shapeId:
|
|
4706
|
+
var PluginPresentationAnnotateTextResult = z82.object({
|
|
4707
|
+
shapeId: z82.string()
|
|
4658
4708
|
});
|
|
4659
|
-
var PluginAnnotateGeoKind =
|
|
4709
|
+
var PluginAnnotateGeoKind = z82.enum([
|
|
4660
4710
|
"rectangle",
|
|
4661
4711
|
"ellipse",
|
|
4662
4712
|
"triangle",
|
|
@@ -4674,358 +4724,358 @@ var PluginAnnotateGeoKind = z81.enum([
|
|
|
4674
4724
|
"arrow-right",
|
|
4675
4725
|
"arrow-down"
|
|
4676
4726
|
]);
|
|
4677
|
-
var PluginAnnotateFill =
|
|
4678
|
-
var PluginPresentationAnnotateArrowArgs =
|
|
4679
|
-
sheetId:
|
|
4680
|
-
start:
|
|
4681
|
-
end:
|
|
4727
|
+
var PluginAnnotateFill = z82.enum(["none", "semi", "solid", "pattern"]);
|
|
4728
|
+
var PluginPresentationAnnotateArrowArgs = z82.object({
|
|
4729
|
+
sheetId: z82.string(),
|
|
4730
|
+
start: z82.object({ x: z82.number(), y: z82.number() }),
|
|
4731
|
+
end: z82.object({ x: z82.number(), y: z82.number() }),
|
|
4682
4732
|
color: PluginAnnotateTextColor.optional(),
|
|
4683
4733
|
size: PluginAnnotateTextSize.optional()
|
|
4684
4734
|
});
|
|
4685
|
-
var PluginPresentationAnnotateNoteArgs =
|
|
4686
|
-
sheetId:
|
|
4687
|
-
text:
|
|
4688
|
-
position:
|
|
4735
|
+
var PluginPresentationAnnotateNoteArgs = z82.object({
|
|
4736
|
+
sheetId: z82.string(),
|
|
4737
|
+
text: z82.string(),
|
|
4738
|
+
position: z82.object({ x: z82.number(), y: z82.number() }).optional(),
|
|
4689
4739
|
color: PluginAnnotateTextColor.optional(),
|
|
4690
4740
|
size: PluginAnnotateTextSize.optional()
|
|
4691
4741
|
});
|
|
4692
|
-
var PluginPresentationAnnotateShapeArgs =
|
|
4693
|
-
sheetId:
|
|
4742
|
+
var PluginPresentationAnnotateShapeArgs = z82.object({
|
|
4743
|
+
sheetId: z82.string(),
|
|
4694
4744
|
kind: PluginAnnotateGeoKind,
|
|
4695
|
-
bounds:
|
|
4696
|
-
x:
|
|
4697
|
-
y:
|
|
4698
|
-
w:
|
|
4699
|
-
h:
|
|
4745
|
+
bounds: z82.object({
|
|
4746
|
+
x: z82.number(),
|
|
4747
|
+
y: z82.number(),
|
|
4748
|
+
w: z82.number().positive(),
|
|
4749
|
+
h: z82.number().positive()
|
|
4700
4750
|
}),
|
|
4701
4751
|
color: PluginAnnotateTextColor.optional(),
|
|
4702
4752
|
fill: PluginAnnotateFill.optional()
|
|
4703
4753
|
});
|
|
4704
|
-
var PluginPresentationAnnotateResult =
|
|
4705
|
-
shapeId:
|
|
4754
|
+
var PluginPresentationAnnotateResult = z82.object({
|
|
4755
|
+
shapeId: z82.string()
|
|
4706
4756
|
});
|
|
4707
4757
|
|
|
4708
4758
|
// src/api/presentation/shapes.ts
|
|
4709
|
-
import * as
|
|
4759
|
+
import * as z83 from "zod";
|
|
4710
4760
|
var PluginPresentationShapesApi = class {
|
|
4711
4761
|
constructor() {
|
|
4712
4762
|
}
|
|
4713
4763
|
};
|
|
4714
|
-
var PluginPresentationShapeSpec =
|
|
4715
|
-
|
|
4716
|
-
type:
|
|
4717
|
-
text:
|
|
4718
|
-
position:
|
|
4764
|
+
var PluginPresentationShapeSpec = z83.discriminatedUnion("type", [
|
|
4765
|
+
z83.object({
|
|
4766
|
+
type: z83.literal("text"),
|
|
4767
|
+
text: z83.string(),
|
|
4768
|
+
position: z83.object({ x: z83.number(), y: z83.number() }).optional(),
|
|
4719
4769
|
size: PluginAnnotateTextSize.optional(),
|
|
4720
4770
|
color: PluginAnnotateTextColor.optional()
|
|
4721
4771
|
}),
|
|
4722
|
-
|
|
4723
|
-
type:
|
|
4724
|
-
text:
|
|
4725
|
-
position:
|
|
4772
|
+
z83.object({
|
|
4773
|
+
type: z83.literal("note"),
|
|
4774
|
+
text: z83.string(),
|
|
4775
|
+
position: z83.object({ x: z83.number(), y: z83.number() }).optional(),
|
|
4726
4776
|
color: PluginAnnotateTextColor.optional(),
|
|
4727
4777
|
size: PluginAnnotateTextSize.optional()
|
|
4728
4778
|
}),
|
|
4729
|
-
|
|
4730
|
-
type:
|
|
4731
|
-
start:
|
|
4732
|
-
end:
|
|
4779
|
+
z83.object({
|
|
4780
|
+
type: z83.literal("arrow"),
|
|
4781
|
+
start: z83.object({ x: z83.number(), y: z83.number() }),
|
|
4782
|
+
end: z83.object({ x: z83.number(), y: z83.number() }),
|
|
4733
4783
|
color: PluginAnnotateTextColor.optional(),
|
|
4734
4784
|
size: PluginAnnotateTextSize.optional()
|
|
4735
4785
|
}),
|
|
4736
|
-
|
|
4737
|
-
type:
|
|
4786
|
+
z83.object({
|
|
4787
|
+
type: z83.literal("geo"),
|
|
4738
4788
|
kind: PluginAnnotateGeoKind,
|
|
4739
|
-
bounds:
|
|
4740
|
-
x:
|
|
4741
|
-
y:
|
|
4742
|
-
w:
|
|
4743
|
-
h:
|
|
4789
|
+
bounds: z83.object({
|
|
4790
|
+
x: z83.number(),
|
|
4791
|
+
y: z83.number(),
|
|
4792
|
+
w: z83.number().positive(),
|
|
4793
|
+
h: z83.number().positive()
|
|
4744
4794
|
}),
|
|
4745
4795
|
color: PluginAnnotateTextColor.optional(),
|
|
4746
4796
|
fill: PluginAnnotateFill.optional()
|
|
4747
4797
|
})
|
|
4748
4798
|
]);
|
|
4749
|
-
var PluginPresentationShapeType =
|
|
4799
|
+
var PluginPresentationShapeType = z83.enum([
|
|
4750
4800
|
"text",
|
|
4751
4801
|
"note",
|
|
4752
4802
|
"arrow",
|
|
4753
4803
|
"geo"
|
|
4754
4804
|
]);
|
|
4755
|
-
var PluginPresentationShapesUpsertArgs =
|
|
4756
|
-
key:
|
|
4805
|
+
var PluginPresentationShapesUpsertArgs = z83.object({
|
|
4806
|
+
key: z83.string().min(1),
|
|
4757
4807
|
shape: PluginPresentationShapeSpec,
|
|
4758
|
-
sheetId:
|
|
4808
|
+
sheetId: z83.string().optional()
|
|
4759
4809
|
});
|
|
4760
|
-
var PluginPresentationShapesUpsertResult =
|
|
4761
|
-
shapeId:
|
|
4762
|
-
created:
|
|
4810
|
+
var PluginPresentationShapesUpsertResult = z83.object({
|
|
4811
|
+
shapeId: z83.string(),
|
|
4812
|
+
created: z83.boolean()
|
|
4763
4813
|
});
|
|
4764
|
-
var PluginPresentationShapesRemoveArgs =
|
|
4765
|
-
key:
|
|
4814
|
+
var PluginPresentationShapesRemoveArgs = z83.object({
|
|
4815
|
+
key: z83.string().min(1)
|
|
4766
4816
|
});
|
|
4767
|
-
var PluginPresentationShapesListResult =
|
|
4768
|
-
shapes:
|
|
4769
|
-
|
|
4770
|
-
key:
|
|
4771
|
-
shapeId:
|
|
4817
|
+
var PluginPresentationShapesListResult = z83.object({
|
|
4818
|
+
shapes: z83.array(
|
|
4819
|
+
z83.object({
|
|
4820
|
+
key: z83.string(),
|
|
4821
|
+
shapeId: z83.string(),
|
|
4772
4822
|
type: PluginPresentationShapeType
|
|
4773
4823
|
})
|
|
4774
4824
|
)
|
|
4775
4825
|
});
|
|
4776
4826
|
|
|
4777
4827
|
// src/api/presentation/tables.ts
|
|
4778
|
-
import * as
|
|
4828
|
+
import * as z84 from "zod";
|
|
4779
4829
|
var PluginPresentationTablesApi = class {
|
|
4780
4830
|
constructor() {
|
|
4781
4831
|
}
|
|
4782
4832
|
};
|
|
4783
|
-
var PluginPresentationTablesPlaceArgs =
|
|
4784
|
-
sheetId:
|
|
4785
|
-
rows:
|
|
4833
|
+
var PluginPresentationTablesPlaceArgs = z84.object({
|
|
4834
|
+
sheetId: z84.string().min(1),
|
|
4835
|
+
rows: z84.array(z84.array(z84.string()).min(1)).min(1).refine((rows) => rows.reduce((n, r) => n + r.length, 0) <= 1e4, {
|
|
4786
4836
|
message: "table exceeds the 10000-cell cap"
|
|
4787
4837
|
}),
|
|
4788
|
-
position:
|
|
4838
|
+
position: z84.object({ x: z84.number(), y: z84.number() }).optional()
|
|
4789
4839
|
});
|
|
4790
4840
|
|
|
4791
4841
|
// src/api/presentation/slideshow.ts
|
|
4792
|
-
import * as
|
|
4842
|
+
import * as z85 from "zod";
|
|
4793
4843
|
var PluginPresentationSlideshowApi = class {
|
|
4794
4844
|
constructor() {
|
|
4795
4845
|
}
|
|
4796
4846
|
};
|
|
4797
|
-
var PluginPresentationSlideshowStartArgs =
|
|
4798
|
-
sheetIds:
|
|
4799
|
-
startIndex:
|
|
4847
|
+
var PluginPresentationSlideshowStartArgs = z85.object({
|
|
4848
|
+
sheetIds: z85.array(z85.string().min(1)).optional(),
|
|
4849
|
+
startIndex: z85.number().int().min(0).optional()
|
|
4800
4850
|
});
|
|
4801
|
-
var PluginPresentationSlideshowState =
|
|
4802
|
-
running:
|
|
4803
|
-
index:
|
|
4851
|
+
var PluginPresentationSlideshowState = z85.object({
|
|
4852
|
+
running: z85.boolean(),
|
|
4853
|
+
index: z85.number().int().nullable()
|
|
4804
4854
|
});
|
|
4805
4855
|
|
|
4806
4856
|
// src/api/presentation/import.ts
|
|
4807
|
-
import * as
|
|
4857
|
+
import * as z86 from "zod";
|
|
4808
4858
|
var PluginPresentationImportApi = class {
|
|
4809
4859
|
constructor() {
|
|
4810
4860
|
}
|
|
4811
4861
|
};
|
|
4812
|
-
var PluginPresentationImportArgs =
|
|
4813
|
-
url:
|
|
4814
|
-
dataUrl:
|
|
4815
|
-
position:
|
|
4862
|
+
var PluginPresentationImportArgs = z86.object({
|
|
4863
|
+
url: z86.string().optional(),
|
|
4864
|
+
dataUrl: z86.string().optional(),
|
|
4865
|
+
position: z86.object({ x: z86.number(), y: z86.number() }).optional()
|
|
4816
4866
|
}).refine((a) => Boolean(a.url) || Boolean(a.dataUrl), {
|
|
4817
4867
|
message: "Provide a url or a dataUrl"
|
|
4818
4868
|
});
|
|
4819
|
-
var PluginPresentationImportResult =
|
|
4820
|
-
shapeIds:
|
|
4869
|
+
var PluginPresentationImportResult = z86.object({
|
|
4870
|
+
shapeIds: z86.array(z86.string())
|
|
4821
4871
|
});
|
|
4822
4872
|
|
|
4823
4873
|
// src/api/presentation/aiInspiration.ts
|
|
4824
|
-
import * as
|
|
4825
|
-
var JsonPrimitive =
|
|
4826
|
-
var JsonValue =
|
|
4827
|
-
() =>
|
|
4874
|
+
import * as z87 from "zod";
|
|
4875
|
+
var JsonPrimitive = z87.union([z87.string(), z87.number(), z87.boolean(), z87.null()]);
|
|
4876
|
+
var JsonValue = z87.lazy(
|
|
4877
|
+
() => z87.union([JsonPrimitive, z87.array(JsonValue), z87.record(z87.string(), JsonValue)])
|
|
4828
4878
|
);
|
|
4829
|
-
var PluginAIInspirationRunMode =
|
|
4830
|
-
var PluginAIInspirationOutputKind =
|
|
4879
|
+
var PluginAIInspirationRunMode = z87.enum(["blocking", "job"]);
|
|
4880
|
+
var PluginAIInspirationOutputKind = z87.enum([
|
|
4831
4881
|
"source",
|
|
4832
4882
|
"image",
|
|
4833
4883
|
"video"
|
|
4834
4884
|
]);
|
|
4835
|
-
var PluginAIInspirationModelOutput =
|
|
4836
|
-
var PluginAIInspirationRuntimeProvider =
|
|
4837
|
-
var PluginAIInspirationPromptStrategy =
|
|
4885
|
+
var PluginAIInspirationModelOutput = z87.enum(["image", "video"]);
|
|
4886
|
+
var PluginAIInspirationRuntimeProvider = z87.enum(["gpt", "fal"]);
|
|
4887
|
+
var PluginAIInspirationPromptStrategy = z87.enum([
|
|
4838
4888
|
"gpt-image",
|
|
4839
4889
|
"fal-image",
|
|
4840
4890
|
"fal-video"
|
|
4841
4891
|
]);
|
|
4842
|
-
var PluginAIInspirationShapeKind =
|
|
4843
|
-
var PluginAIInspirationVideoMode =
|
|
4892
|
+
var PluginAIInspirationShapeKind = z87.enum(["image", "view", "video"]);
|
|
4893
|
+
var PluginAIInspirationVideoMode = z87.enum([
|
|
4844
4894
|
"animate",
|
|
4845
4895
|
"references",
|
|
4846
4896
|
"keyframes"
|
|
4847
4897
|
]);
|
|
4848
|
-
var PluginAIInspirationVideoMotion =
|
|
4898
|
+
var PluginAIInspirationVideoMotion = z87.enum([
|
|
4849
4899
|
"auto",
|
|
4850
4900
|
"slow-dolly",
|
|
4851
4901
|
"subtle-orbit",
|
|
4852
4902
|
"reveal"
|
|
4853
4903
|
]);
|
|
4854
|
-
var PluginAIInspirationVideoDuration =
|
|
4855
|
-
var PluginAIInspirationJobStatus =
|
|
4904
|
+
var PluginAIInspirationVideoDuration = z87.enum(["4s", "6s", "8s"]);
|
|
4905
|
+
var PluginAIInspirationJobStatus = z87.enum([
|
|
4856
4906
|
"queued",
|
|
4857
4907
|
"running",
|
|
4858
4908
|
"completed",
|
|
4859
4909
|
"failed",
|
|
4860
4910
|
"cancelled"
|
|
4861
4911
|
]);
|
|
4862
|
-
var PluginAIInspirationWorkflowRunState =
|
|
4912
|
+
var PluginAIInspirationWorkflowRunState = z87.enum([
|
|
4863
4913
|
"current",
|
|
4864
4914
|
"stale",
|
|
4865
4915
|
"running",
|
|
4866
4916
|
"failed",
|
|
4867
4917
|
"superseded"
|
|
4868
4918
|
]);
|
|
4869
|
-
var PluginAIInspirationRegionHint =
|
|
4870
|
-
x:
|
|
4871
|
-
y:
|
|
4872
|
-
w:
|
|
4873
|
-
h:
|
|
4874
|
-
});
|
|
4875
|
-
var PluginAIInspirationPoint =
|
|
4876
|
-
x:
|
|
4877
|
-
y:
|
|
4878
|
-
});
|
|
4879
|
-
var PluginAIInspirationTextAnnotation =
|
|
4880
|
-
text:
|
|
4881
|
-
x:
|
|
4882
|
-
y:
|
|
4883
|
-
});
|
|
4884
|
-
var PluginAIInspirationSketchGuidance =
|
|
4885
|
-
visualShapeIds:
|
|
4886
|
-
textAnnotations:
|
|
4887
|
-
});
|
|
4888
|
-
var PluginAIInspirationSiteOptions =
|
|
4889
|
-
includeSatellite:
|
|
4890
|
-
includeStreetView:
|
|
4891
|
-
includeAerial:
|
|
4892
|
-
aerialBearing:
|
|
4893
|
-
aerialPitch:
|
|
4894
|
-
selectedDiagramIds:
|
|
4895
|
-
location:
|
|
4896
|
-
lat:
|
|
4897
|
-
lng:
|
|
4919
|
+
var PluginAIInspirationRegionHint = z87.object({
|
|
4920
|
+
x: z87.number().finite(),
|
|
4921
|
+
y: z87.number().finite(),
|
|
4922
|
+
w: z87.number().finite().positive(),
|
|
4923
|
+
h: z87.number().finite().positive()
|
|
4924
|
+
});
|
|
4925
|
+
var PluginAIInspirationPoint = z87.object({
|
|
4926
|
+
x: z87.number().finite(),
|
|
4927
|
+
y: z87.number().finite()
|
|
4928
|
+
});
|
|
4929
|
+
var PluginAIInspirationTextAnnotation = z87.object({
|
|
4930
|
+
text: z87.string().min(1),
|
|
4931
|
+
x: z87.number().finite().optional(),
|
|
4932
|
+
y: z87.number().finite().optional()
|
|
4933
|
+
});
|
|
4934
|
+
var PluginAIInspirationSketchGuidance = z87.object({
|
|
4935
|
+
visualShapeIds: z87.array(z87.string()).optional(),
|
|
4936
|
+
textAnnotations: z87.array(PluginAIInspirationTextAnnotation).optional()
|
|
4937
|
+
});
|
|
4938
|
+
var PluginAIInspirationSiteOptions = z87.object({
|
|
4939
|
+
includeSatellite: z87.boolean().optional(),
|
|
4940
|
+
includeStreetView: z87.boolean().optional(),
|
|
4941
|
+
includeAerial: z87.boolean().optional(),
|
|
4942
|
+
aerialBearing: z87.number().finite().optional(),
|
|
4943
|
+
aerialPitch: z87.number().finite().optional(),
|
|
4944
|
+
selectedDiagramIds: z87.array(z87.string()).optional(),
|
|
4945
|
+
location: z87.object({
|
|
4946
|
+
lat: z87.number().finite(),
|
|
4947
|
+
lng: z87.number().finite()
|
|
4898
4948
|
}).optional()
|
|
4899
4949
|
});
|
|
4900
|
-
var PluginAIInspirationAppliedPreset =
|
|
4901
|
-
source:
|
|
4902
|
-
presetId:
|
|
4903
|
-
name:
|
|
4904
|
-
savedPresetKind:
|
|
4905
|
-
stylePrompt:
|
|
4906
|
-
modelId:
|
|
4907
|
-
referenceImages:
|
|
4908
|
-
|
|
4909
|
-
url:
|
|
4910
|
-
label:
|
|
4911
|
-
weight:
|
|
4950
|
+
var PluginAIInspirationAppliedPreset = z87.object({
|
|
4951
|
+
source: z87.enum(["curated", "user"]),
|
|
4952
|
+
presetId: z87.string().min(1),
|
|
4953
|
+
name: z87.string().min(1),
|
|
4954
|
+
savedPresetKind: z87.enum(["prompt", "style"]).optional(),
|
|
4955
|
+
stylePrompt: z87.string().optional(),
|
|
4956
|
+
modelId: z87.string().optional(),
|
|
4957
|
+
referenceImages: z87.array(
|
|
4958
|
+
z87.object({
|
|
4959
|
+
url: z87.string().min(1),
|
|
4960
|
+
label: z87.string().optional(),
|
|
4961
|
+
weight: z87.number().finite().optional()
|
|
4912
4962
|
})
|
|
4913
4963
|
).optional(),
|
|
4914
|
-
siteDefaults:
|
|
4915
|
-
includeSatellite:
|
|
4916
|
-
includeStreetView:
|
|
4917
|
-
includeAerial:
|
|
4964
|
+
siteDefaults: z87.object({
|
|
4965
|
+
includeSatellite: z87.boolean().optional(),
|
|
4966
|
+
includeStreetView: z87.boolean().optional(),
|
|
4967
|
+
includeAerial: z87.boolean().optional()
|
|
4918
4968
|
}).optional()
|
|
4919
4969
|
});
|
|
4920
|
-
var PluginAIInspirationVideoOptions =
|
|
4970
|
+
var PluginAIInspirationVideoOptions = z87.object({
|
|
4921
4971
|
mode: PluginAIInspirationVideoMode.optional(),
|
|
4922
|
-
endFrameShapeId:
|
|
4972
|
+
endFrameShapeId: z87.string().optional(),
|
|
4923
4973
|
motion: PluginAIInspirationVideoMotion.optional(),
|
|
4924
4974
|
duration: PluginAIInspirationVideoDuration.optional()
|
|
4925
4975
|
});
|
|
4926
|
-
var PluginAIInspirationModel =
|
|
4927
|
-
id:
|
|
4928
|
-
label:
|
|
4929
|
-
supportsMultiImage:
|
|
4976
|
+
var PluginAIInspirationModel = z87.object({
|
|
4977
|
+
id: z87.string(),
|
|
4978
|
+
label: z87.string(),
|
|
4979
|
+
supportsMultiImage: z87.boolean(),
|
|
4930
4980
|
output: PluginAIInspirationModelOutput,
|
|
4931
|
-
isDefault:
|
|
4981
|
+
isDefault: z87.boolean().optional()
|
|
4932
4982
|
});
|
|
4933
|
-
var PluginAIInspirationModelCapability =
|
|
4934
|
-
id:
|
|
4983
|
+
var PluginAIInspirationModelCapability = z87.object({
|
|
4984
|
+
id: z87.string(),
|
|
4935
4985
|
output: PluginAIInspirationModelOutput,
|
|
4936
4986
|
provider: PluginAIInspirationRuntimeProvider,
|
|
4937
|
-
supportsRegionEdit:
|
|
4938
|
-
supportsReferenceImages:
|
|
4939
|
-
supportsStylePresets:
|
|
4940
|
-
supportsSiteContext:
|
|
4941
|
-
supportsSketchGuidance:
|
|
4942
|
-
supportsKeyframes:
|
|
4943
|
-
maxExtraImages:
|
|
4987
|
+
supportsRegionEdit: z87.boolean(),
|
|
4988
|
+
supportsReferenceImages: z87.boolean(),
|
|
4989
|
+
supportsStylePresets: z87.boolean(),
|
|
4990
|
+
supportsSiteContext: z87.boolean(),
|
|
4991
|
+
supportsSketchGuidance: z87.boolean(),
|
|
4992
|
+
supportsKeyframes: z87.boolean(),
|
|
4993
|
+
maxExtraImages: z87.number().int().nonnegative(),
|
|
4944
4994
|
promptStrategy: PluginAIInspirationPromptStrategy
|
|
4945
4995
|
});
|
|
4946
|
-
var PluginAIInspirationListModelsResult =
|
|
4947
|
-
defaultModelId:
|
|
4948
|
-
models:
|
|
4996
|
+
var PluginAIInspirationListModelsResult = z87.object({
|
|
4997
|
+
defaultModelId: z87.string(),
|
|
4998
|
+
models: z87.array(PluginAIInspirationModel)
|
|
4949
4999
|
});
|
|
4950
|
-
var PluginAIInspirationGetModelCapabilitiesArgs =
|
|
4951
|
-
modelId:
|
|
5000
|
+
var PluginAIInspirationGetModelCapabilitiesArgs = z87.object({
|
|
5001
|
+
modelId: z87.string().min(1)
|
|
4952
5002
|
});
|
|
4953
|
-
var PluginAIInspirationGetModelCapabilitiesResult =
|
|
5003
|
+
var PluginAIInspirationGetModelCapabilitiesResult = z87.object({
|
|
4954
5004
|
capability: PluginAIInspirationModelCapability
|
|
4955
5005
|
});
|
|
4956
|
-
var PluginAIInspirationShapeRef =
|
|
4957
|
-
shapeId:
|
|
4958
|
-
assetId:
|
|
5006
|
+
var PluginAIInspirationShapeRef = z87.object({
|
|
5007
|
+
shapeId: z87.string(),
|
|
5008
|
+
assetId: z87.string().optional(),
|
|
4959
5009
|
kind: PluginAIInspirationShapeKind,
|
|
4960
|
-
name:
|
|
4961
|
-
width:
|
|
4962
|
-
height:
|
|
5010
|
+
name: z87.string().optional(),
|
|
5011
|
+
width: z87.number().finite().optional(),
|
|
5012
|
+
height: z87.number().finite().optional(),
|
|
4963
5013
|
outputType: PluginAIInspirationOutputKind.optional(),
|
|
4964
|
-
sourceUrl:
|
|
4965
|
-
});
|
|
4966
|
-
var PluginAIInspirationListSourcesArgs =
|
|
4967
|
-
includeGenerated:
|
|
4968
|
-
includeSourceUrl:
|
|
4969
|
-
});
|
|
4970
|
-
var PluginAIInspirationListSourcesResult =
|
|
4971
|
-
sources:
|
|
4972
|
-
});
|
|
4973
|
-
var PluginAIInspirationGetSelectionResult =
|
|
4974
|
-
selectedShapeIds:
|
|
4975
|
-
sources:
|
|
4976
|
-
});
|
|
4977
|
-
var PluginAIInspirationPresetReferenceImage =
|
|
4978
|
-
url:
|
|
4979
|
-
label:
|
|
4980
|
-
weight:
|
|
4981
|
-
});
|
|
4982
|
-
var PluginAIInspirationPreset =
|
|
4983
|
-
id:
|
|
4984
|
-
name:
|
|
4985
|
-
source:
|
|
4986
|
-
modelId:
|
|
4987
|
-
categoryId:
|
|
4988
|
-
categoryLabel:
|
|
4989
|
-
description:
|
|
4990
|
-
previewImageUrl:
|
|
4991
|
-
prompt:
|
|
4992
|
-
stylePrompt:
|
|
4993
|
-
tags:
|
|
4994
|
-
referenceImages:
|
|
5014
|
+
sourceUrl: z87.string().optional()
|
|
5015
|
+
});
|
|
5016
|
+
var PluginAIInspirationListSourcesArgs = z87.object({
|
|
5017
|
+
includeGenerated: z87.boolean().optional(),
|
|
5018
|
+
includeSourceUrl: z87.boolean().optional()
|
|
5019
|
+
});
|
|
5020
|
+
var PluginAIInspirationListSourcesResult = z87.object({
|
|
5021
|
+
sources: z87.array(PluginAIInspirationShapeRef)
|
|
5022
|
+
});
|
|
5023
|
+
var PluginAIInspirationGetSelectionResult = z87.object({
|
|
5024
|
+
selectedShapeIds: z87.array(z87.string()),
|
|
5025
|
+
sources: z87.array(PluginAIInspirationShapeRef)
|
|
5026
|
+
});
|
|
5027
|
+
var PluginAIInspirationPresetReferenceImage = z87.object({
|
|
5028
|
+
url: z87.string(),
|
|
5029
|
+
label: z87.string().optional(),
|
|
5030
|
+
weight: z87.number().finite().optional()
|
|
5031
|
+
});
|
|
5032
|
+
var PluginAIInspirationPreset = z87.object({
|
|
5033
|
+
id: z87.string(),
|
|
5034
|
+
name: z87.string(),
|
|
5035
|
+
source: z87.enum(["curated", "user"]),
|
|
5036
|
+
modelId: z87.string(),
|
|
5037
|
+
categoryId: z87.string().optional(),
|
|
5038
|
+
categoryLabel: z87.string().optional(),
|
|
5039
|
+
description: z87.string().optional(),
|
|
5040
|
+
previewImageUrl: z87.string().optional(),
|
|
5041
|
+
prompt: z87.string().optional(),
|
|
5042
|
+
stylePrompt: z87.string().optional(),
|
|
5043
|
+
tags: z87.array(z87.string()).optional(),
|
|
5044
|
+
referenceImages: z87.array(PluginAIInspirationPresetReferenceImage).optional(),
|
|
4995
5045
|
siteDefaults: PluginAIInspirationAppliedPreset.shape.siteDefaults.optional()
|
|
4996
5046
|
});
|
|
4997
|
-
var PluginAIInspirationPresetCategory =
|
|
4998
|
-
id:
|
|
4999
|
-
label:
|
|
5000
|
-
description:
|
|
5047
|
+
var PluginAIInspirationPresetCategory = z87.object({
|
|
5048
|
+
id: z87.string(),
|
|
5049
|
+
label: z87.string(),
|
|
5050
|
+
description: z87.string().optional()
|
|
5001
5051
|
});
|
|
5002
|
-
var PluginAIInspirationGetPresetCatalogResult =
|
|
5003
|
-
categories:
|
|
5004
|
-
presets:
|
|
5052
|
+
var PluginAIInspirationGetPresetCatalogResult = z87.object({
|
|
5053
|
+
categories: z87.array(PluginAIInspirationPresetCategory),
|
|
5054
|
+
presets: z87.array(PluginAIInspirationPreset)
|
|
5005
5055
|
});
|
|
5006
|
-
var PluginAIInspirationOutput =
|
|
5007
|
-
outputType:
|
|
5008
|
-
shapeId:
|
|
5009
|
-
assetId:
|
|
5010
|
-
outputUrl:
|
|
5056
|
+
var PluginAIInspirationOutput = z87.object({
|
|
5057
|
+
outputType: z87.enum(["image", "video"]),
|
|
5058
|
+
shapeId: z87.string(),
|
|
5059
|
+
assetId: z87.string(),
|
|
5060
|
+
outputUrl: z87.string().optional(),
|
|
5011
5061
|
position: PluginAIInspirationPoint.optional()
|
|
5012
5062
|
});
|
|
5013
|
-
var PluginAIInspirationDebugSummary =
|
|
5014
|
-
var PluginAIInspirationRunMetadata =
|
|
5015
|
-
geometryFidelity:
|
|
5063
|
+
var PluginAIInspirationDebugSummary = z87.record(z87.string(), JsonValue);
|
|
5064
|
+
var PluginAIInspirationRunMetadata = z87.object({
|
|
5065
|
+
geometryFidelity: z87.string().optional(),
|
|
5016
5066
|
debugSummary: PluginAIInspirationDebugSummary.optional(),
|
|
5017
|
-
streetViewComposite:
|
|
5018
|
-
used:
|
|
5019
|
-
renderMode:
|
|
5020
|
-
backgroundLabel:
|
|
5067
|
+
streetViewComposite: z87.object({
|
|
5068
|
+
used: z87.boolean(),
|
|
5069
|
+
renderMode: z87.enum(["prompt_refs_default", "masked_composite_pilot"]),
|
|
5070
|
+
backgroundLabel: z87.string().optional()
|
|
5021
5071
|
}).optional()
|
|
5022
5072
|
});
|
|
5023
|
-
var PluginAIInspirationGenerateArgs =
|
|
5024
|
-
sourceShapeId:
|
|
5025
|
-
prompt:
|
|
5026
|
-
modelId:
|
|
5027
|
-
referenceShapeIds:
|
|
5028
|
-
referenceStrength:
|
|
5073
|
+
var PluginAIInspirationGenerateArgs = z87.object({
|
|
5074
|
+
sourceShapeId: z87.string().min(1),
|
|
5075
|
+
prompt: z87.string().min(1).max(8e3),
|
|
5076
|
+
modelId: z87.string().optional(),
|
|
5077
|
+
referenceShapeIds: z87.array(z87.string()).max(12).optional(),
|
|
5078
|
+
referenceStrength: z87.enum(["low", "medium", "high"]).optional(),
|
|
5029
5079
|
appliedPreset: PluginAIInspirationAppliedPreset.optional(),
|
|
5030
5080
|
site: PluginAIInspirationSiteOptions.optional(),
|
|
5031
5081
|
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
@@ -5033,129 +5083,129 @@ var PluginAIInspirationGenerateArgs = z86.object({
|
|
|
5033
5083
|
video: PluginAIInspirationVideoOptions.optional(),
|
|
5034
5084
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5035
5085
|
});
|
|
5036
|
-
var PluginAIInspirationRunResult =
|
|
5037
|
-
jobId:
|
|
5086
|
+
var PluginAIInspirationRunResult = z87.object({
|
|
5087
|
+
jobId: z87.string().optional(),
|
|
5038
5088
|
output: PluginAIInspirationOutput.optional(),
|
|
5039
|
-
outputs:
|
|
5089
|
+
outputs: z87.array(PluginAIInspirationOutput).optional(),
|
|
5040
5090
|
metadata: PluginAIInspirationRunMetadata.optional()
|
|
5041
5091
|
});
|
|
5042
|
-
var PluginAIInspirationRefineArgs =
|
|
5043
|
-
sourceShapeId:
|
|
5044
|
-
upscaleFactor:
|
|
5092
|
+
var PluginAIInspirationRefineArgs = z87.object({
|
|
5093
|
+
sourceShapeId: z87.string().min(1),
|
|
5094
|
+
upscaleFactor: z87.union([z87.literal(1.5), z87.literal(2), z87.literal(4)]).optional(),
|
|
5045
5095
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5046
5096
|
});
|
|
5047
|
-
var PluginAIInspirationJobProgress =
|
|
5048
|
-
currentStep:
|
|
5049
|
-
totalSteps:
|
|
5050
|
-
message:
|
|
5097
|
+
var PluginAIInspirationJobProgress = z87.object({
|
|
5098
|
+
currentStep: z87.number().int().nonnegative().optional(),
|
|
5099
|
+
totalSteps: z87.number().int().nonnegative().optional(),
|
|
5100
|
+
message: z87.string().optional()
|
|
5051
5101
|
});
|
|
5052
|
-
var PluginAIInspirationJob =
|
|
5053
|
-
jobId:
|
|
5102
|
+
var PluginAIInspirationJob = z87.object({
|
|
5103
|
+
jobId: z87.string(),
|
|
5054
5104
|
status: PluginAIInspirationJobStatus,
|
|
5055
|
-
createdAt:
|
|
5056
|
-
updatedAt:
|
|
5057
|
-
completedAt:
|
|
5058
|
-
method:
|
|
5105
|
+
createdAt: z87.number(),
|
|
5106
|
+
updatedAt: z87.number(),
|
|
5107
|
+
completedAt: z87.number().optional(),
|
|
5108
|
+
method: z87.string(),
|
|
5059
5109
|
progress: PluginAIInspirationJobProgress.optional(),
|
|
5060
5110
|
result: PluginAIInspirationRunResult.optional(),
|
|
5061
|
-
error:
|
|
5111
|
+
error: z87.string().optional()
|
|
5062
5112
|
});
|
|
5063
|
-
var PluginAIInspirationJobArgs =
|
|
5064
|
-
jobId:
|
|
5113
|
+
var PluginAIInspirationJobArgs = z87.object({
|
|
5114
|
+
jobId: z87.string().min(1)
|
|
5065
5115
|
});
|
|
5066
|
-
var PluginAIInspirationGetJobResult =
|
|
5116
|
+
var PluginAIInspirationGetJobResult = z87.object({
|
|
5067
5117
|
job: PluginAIInspirationJob
|
|
5068
5118
|
});
|
|
5069
|
-
var PluginAIInspirationCancelJobResult =
|
|
5119
|
+
var PluginAIInspirationCancelJobResult = z87.object({
|
|
5070
5120
|
job: PluginAIInspirationJob
|
|
5071
5121
|
});
|
|
5072
|
-
var PluginAIInspirationListJobsResult =
|
|
5073
|
-
jobs:
|
|
5122
|
+
var PluginAIInspirationListJobsResult = z87.object({
|
|
5123
|
+
jobs: z87.array(PluginAIInspirationJob)
|
|
5074
5124
|
});
|
|
5075
|
-
var PluginAIInspirationWorkflowVideoConfig =
|
|
5076
|
-
mode:
|
|
5077
|
-
motion:
|
|
5078
|
-
duration:
|
|
5079
|
-
endFrameShapeId:
|
|
5125
|
+
var PluginAIInspirationWorkflowVideoConfig = z87.object({
|
|
5126
|
+
mode: z87.string().optional(),
|
|
5127
|
+
motion: z87.string().optional(),
|
|
5128
|
+
duration: z87.string().optional(),
|
|
5129
|
+
endFrameShapeId: z87.string().optional()
|
|
5080
5130
|
});
|
|
5081
|
-
var PluginAIInspirationGenerationInputSnapshot =
|
|
5082
|
-
version:
|
|
5083
|
-
meta:
|
|
5131
|
+
var PluginAIInspirationGenerationInputSnapshot = z87.object({
|
|
5132
|
+
version: z87.literal(1),
|
|
5133
|
+
meta: z87.record(z87.string(), JsonValue),
|
|
5084
5134
|
regionHint: PluginAIInspirationRegionHint.optional(),
|
|
5085
|
-
sketchGuidance:
|
|
5086
|
-
sourceCameraHeading:
|
|
5087
|
-
});
|
|
5088
|
-
var PluginAIInspirationWorkflowOperation =
|
|
5089
|
-
type:
|
|
5090
|
-
label:
|
|
5091
|
-
prompt:
|
|
5092
|
-
modelId:
|
|
5093
|
-
presetId:
|
|
5094
|
-
presetName:
|
|
5095
|
-
refineFactor:
|
|
5096
|
-
sourceRole:
|
|
5135
|
+
sketchGuidance: z87.record(z87.string(), JsonValue).optional(),
|
|
5136
|
+
sourceCameraHeading: z87.number().finite().optional()
|
|
5137
|
+
});
|
|
5138
|
+
var PluginAIInspirationWorkflowOperation = z87.object({
|
|
5139
|
+
type: z87.enum(["generate-image", "refine", "generate-video"]),
|
|
5140
|
+
label: z87.string(),
|
|
5141
|
+
prompt: z87.string().optional(),
|
|
5142
|
+
modelId: z87.string().optional(),
|
|
5143
|
+
presetId: z87.string().optional(),
|
|
5144
|
+
presetName: z87.string().optional(),
|
|
5145
|
+
refineFactor: z87.number().finite().optional(),
|
|
5146
|
+
sourceRole: z87.enum(["primary", "end-frame"]).optional(),
|
|
5097
5147
|
video: PluginAIInspirationWorkflowVideoConfig.optional(),
|
|
5098
5148
|
generationInput: PluginAIInspirationGenerationInputSnapshot.optional()
|
|
5099
5149
|
});
|
|
5100
|
-
var PluginAIInspirationWorkflowNode =
|
|
5101
|
-
id:
|
|
5102
|
-
shapeId:
|
|
5103
|
-
assetId:
|
|
5150
|
+
var PluginAIInspirationWorkflowNode = z87.object({
|
|
5151
|
+
id: z87.string(),
|
|
5152
|
+
shapeId: z87.string(),
|
|
5153
|
+
assetId: z87.string().optional(),
|
|
5104
5154
|
kind: PluginAIInspirationOutputKind,
|
|
5105
|
-
state:
|
|
5155
|
+
state: z87.string(),
|
|
5106
5156
|
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
5107
|
-
staleReason:
|
|
5108
|
-
incomingEdgeIds:
|
|
5109
|
-
outgoingEdgeIds:
|
|
5110
|
-
createdAt:
|
|
5111
|
-
updatedAt:
|
|
5112
|
-
});
|
|
5113
|
-
var PluginAIInspirationWorkflowEdge =
|
|
5114
|
-
id:
|
|
5115
|
-
sourceNodeId:
|
|
5116
|
-
targetNodeId:
|
|
5117
|
-
arrowShapeId:
|
|
5157
|
+
staleReason: z87.string().optional(),
|
|
5158
|
+
incomingEdgeIds: z87.array(z87.string()),
|
|
5159
|
+
outgoingEdgeIds: z87.array(z87.string()),
|
|
5160
|
+
createdAt: z87.number(),
|
|
5161
|
+
updatedAt: z87.number()
|
|
5162
|
+
});
|
|
5163
|
+
var PluginAIInspirationWorkflowEdge = z87.object({
|
|
5164
|
+
id: z87.string(),
|
|
5165
|
+
sourceNodeId: z87.string(),
|
|
5166
|
+
targetNodeId: z87.string(),
|
|
5167
|
+
arrowShapeId: z87.string().optional(),
|
|
5118
5168
|
operation: PluginAIInspirationWorkflowOperation,
|
|
5119
|
-
state:
|
|
5169
|
+
state: z87.string(),
|
|
5120
5170
|
runState: PluginAIInspirationWorkflowRunState.optional(),
|
|
5121
|
-
staleReason:
|
|
5122
|
-
supersededByEdgeId:
|
|
5123
|
-
createdAt:
|
|
5124
|
-
updatedAt:
|
|
5125
|
-
});
|
|
5126
|
-
var PluginAIInspirationWorkflow =
|
|
5127
|
-
id:
|
|
5128
|
-
rootNodeIds:
|
|
5129
|
-
nodeIds:
|
|
5130
|
-
edgeIds:
|
|
5131
|
-
nodes:
|
|
5132
|
-
edges:
|
|
5133
|
-
createdAt:
|
|
5134
|
-
updatedAt:
|
|
5135
|
-
});
|
|
5136
|
-
var PluginAIInspirationGetWorkflowForShapeArgs =
|
|
5137
|
-
shapeId:
|
|
5138
|
-
});
|
|
5139
|
-
var PluginAIInspirationGetWorkflowForShapeResult =
|
|
5171
|
+
staleReason: z87.string().optional(),
|
|
5172
|
+
supersededByEdgeId: z87.string().optional(),
|
|
5173
|
+
createdAt: z87.number(),
|
|
5174
|
+
updatedAt: z87.number()
|
|
5175
|
+
});
|
|
5176
|
+
var PluginAIInspirationWorkflow = z87.object({
|
|
5177
|
+
id: z87.string(),
|
|
5178
|
+
rootNodeIds: z87.array(z87.string()),
|
|
5179
|
+
nodeIds: z87.array(z87.string()),
|
|
5180
|
+
edgeIds: z87.array(z87.string()),
|
|
5181
|
+
nodes: z87.record(z87.string(), PluginAIInspirationWorkflowNode),
|
|
5182
|
+
edges: z87.record(z87.string(), PluginAIInspirationWorkflowEdge),
|
|
5183
|
+
createdAt: z87.number(),
|
|
5184
|
+
updatedAt: z87.number()
|
|
5185
|
+
});
|
|
5186
|
+
var PluginAIInspirationGetWorkflowForShapeArgs = z87.object({
|
|
5187
|
+
shapeId: z87.string().min(1)
|
|
5188
|
+
});
|
|
5189
|
+
var PluginAIInspirationGetWorkflowForShapeResult = z87.object({
|
|
5140
5190
|
workflow: PluginAIInspirationWorkflow.nullable(),
|
|
5141
5191
|
node: PluginAIInspirationWorkflowNode.nullable()
|
|
5142
5192
|
});
|
|
5143
|
-
var PluginAIInspirationRerunPlanResult =
|
|
5193
|
+
var PluginAIInspirationRerunPlanResult = z87.discriminatedUnion(
|
|
5144
5194
|
"status",
|
|
5145
5195
|
[
|
|
5146
|
-
|
|
5147
|
-
status:
|
|
5148
|
-
workflowId:
|
|
5196
|
+
z87.object({
|
|
5197
|
+
status: z87.literal("ready"),
|
|
5198
|
+
workflowId: z87.string(),
|
|
5149
5199
|
sourceNode: PluginAIInspirationWorkflowNode,
|
|
5150
|
-
edgeIds:
|
|
5151
|
-
edges:
|
|
5152
|
-
recipe:
|
|
5153
|
-
needsEndFrame:
|
|
5154
|
-
defaultEndFrameShapeId:
|
|
5200
|
+
edgeIds: z87.array(z87.string()),
|
|
5201
|
+
edges: z87.array(PluginAIInspirationWorkflowEdge),
|
|
5202
|
+
recipe: z87.lazy(() => PluginAIInspirationRecipe),
|
|
5203
|
+
needsEndFrame: z87.boolean(),
|
|
5204
|
+
defaultEndFrameShapeId: z87.string().nullable()
|
|
5155
5205
|
}),
|
|
5156
|
-
|
|
5157
|
-
status:
|
|
5158
|
-
reason:
|
|
5206
|
+
z87.object({
|
|
5207
|
+
status: z87.literal("unavailable"),
|
|
5208
|
+
reason: z87.enum([
|
|
5159
5209
|
"not-in-workflow",
|
|
5160
5210
|
"source-only",
|
|
5161
5211
|
"running",
|
|
@@ -5164,47 +5214,47 @@ var PluginAIInspirationRerunPlanResult = z86.discriminatedUnion(
|
|
|
5164
5214
|
})
|
|
5165
5215
|
]
|
|
5166
5216
|
);
|
|
5167
|
-
var PluginAIInspirationRerunSelectedBranchArgs =
|
|
5168
|
-
shapeId:
|
|
5169
|
-
endFrameShapeId:
|
|
5217
|
+
var PluginAIInspirationRerunSelectedBranchArgs = z87.object({
|
|
5218
|
+
shapeId: z87.string().min(1),
|
|
5219
|
+
endFrameShapeId: z87.string().optional(),
|
|
5170
5220
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5171
5221
|
});
|
|
5172
|
-
var PluginAIInspirationRecipeSlot =
|
|
5173
|
-
id:
|
|
5174
|
-
type:
|
|
5175
|
-
label:
|
|
5176
|
-
required:
|
|
5222
|
+
var PluginAIInspirationRecipeSlot = z87.object({
|
|
5223
|
+
id: z87.string(),
|
|
5224
|
+
type: z87.enum(["source-image", "end-frame"]),
|
|
5225
|
+
label: z87.string(),
|
|
5226
|
+
required: z87.boolean()
|
|
5177
5227
|
});
|
|
5178
|
-
var PluginAIInspirationRecipeStep =
|
|
5179
|
-
id:
|
|
5228
|
+
var PluginAIInspirationRecipeStep = z87.object({
|
|
5229
|
+
id: z87.string(),
|
|
5180
5230
|
operation: PluginAIInspirationWorkflowOperation,
|
|
5181
|
-
outputKind:
|
|
5231
|
+
outputKind: z87.enum(["image", "video"])
|
|
5182
5232
|
});
|
|
5183
|
-
var PluginAIInspirationRecipeDraft =
|
|
5184
|
-
name:
|
|
5185
|
-
summary:
|
|
5186
|
-
slots:
|
|
5187
|
-
steps:
|
|
5188
|
-
outputKind:
|
|
5189
|
-
thumbnailUrl:
|
|
5233
|
+
var PluginAIInspirationRecipeDraft = z87.object({
|
|
5234
|
+
name: z87.string(),
|
|
5235
|
+
summary: z87.string(),
|
|
5236
|
+
slots: z87.array(PluginAIInspirationRecipeSlot),
|
|
5237
|
+
steps: z87.array(PluginAIInspirationRecipeStep).min(1).max(20),
|
|
5238
|
+
outputKind: z87.enum(["image", "video"]),
|
|
5239
|
+
thumbnailUrl: z87.string().optional()
|
|
5190
5240
|
});
|
|
5191
5241
|
var PluginAIInspirationRecipe = PluginAIInspirationRecipeDraft.extend({
|
|
5192
|
-
version:
|
|
5193
|
-
id:
|
|
5194
|
-
fingerprint:
|
|
5195
|
-
createdAt:
|
|
5196
|
-
updatedAt:
|
|
5242
|
+
version: z87.literal(1),
|
|
5243
|
+
id: z87.string(),
|
|
5244
|
+
fingerprint: z87.string().optional(),
|
|
5245
|
+
createdAt: z87.number(),
|
|
5246
|
+
updatedAt: z87.number()
|
|
5197
5247
|
});
|
|
5198
|
-
var PluginAIInspirationExtractionResult =
|
|
5248
|
+
var PluginAIInspirationExtractionResult = z87.discriminatedUnion(
|
|
5199
5249
|
"status",
|
|
5200
5250
|
[
|
|
5201
|
-
|
|
5202
|
-
status:
|
|
5251
|
+
z87.object({
|
|
5252
|
+
status: z87.literal("ready"),
|
|
5203
5253
|
draft: PluginAIInspirationRecipeDraft
|
|
5204
5254
|
}),
|
|
5205
|
-
|
|
5206
|
-
status:
|
|
5207
|
-
reason:
|
|
5255
|
+
z87.object({
|
|
5256
|
+
status: z87.literal("unavailable"),
|
|
5257
|
+
reason: z87.enum([
|
|
5208
5258
|
"not-in-workflow",
|
|
5209
5259
|
"source-only",
|
|
5210
5260
|
"missing-workflow",
|
|
@@ -5215,38 +5265,38 @@ var PluginAIInspirationExtractionResult = z86.discriminatedUnion(
|
|
|
5215
5265
|
})
|
|
5216
5266
|
]
|
|
5217
5267
|
);
|
|
5218
|
-
var PluginAIInspirationListRecipesResult =
|
|
5219
|
-
recipes:
|
|
5268
|
+
var PluginAIInspirationListRecipesResult = z87.object({
|
|
5269
|
+
recipes: z87.array(PluginAIInspirationRecipe)
|
|
5220
5270
|
});
|
|
5221
|
-
var PluginAIInspirationSaveRecipeArgs =
|
|
5271
|
+
var PluginAIInspirationSaveRecipeArgs = z87.object({
|
|
5222
5272
|
draft: PluginAIInspirationRecipeDraft,
|
|
5223
|
-
name:
|
|
5273
|
+
name: z87.string().min(1)
|
|
5224
5274
|
});
|
|
5225
|
-
var PluginAIInspirationSaveRecipeResult =
|
|
5275
|
+
var PluginAIInspirationSaveRecipeResult = z87.discriminatedUnion(
|
|
5226
5276
|
"status",
|
|
5227
5277
|
[
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
status:
|
|
5278
|
+
z87.object({ status: z87.literal("saved"), recipe: PluginAIInspirationRecipe }),
|
|
5279
|
+
z87.object({
|
|
5280
|
+
status: z87.literal("duplicate"),
|
|
5231
5281
|
recipe: PluginAIInspirationRecipe
|
|
5232
5282
|
}),
|
|
5233
|
-
|
|
5234
|
-
|
|
5283
|
+
z87.object({ status: z87.literal("invalid-name"), recipe: z87.null() }),
|
|
5284
|
+
z87.object({ status: z87.literal("failed"), recipe: z87.null() })
|
|
5235
5285
|
]
|
|
5236
5286
|
);
|
|
5237
|
-
var PluginAIInspirationDeleteRecipeArgs =
|
|
5238
|
-
recipeId:
|
|
5287
|
+
var PluginAIInspirationDeleteRecipeArgs = z87.object({
|
|
5288
|
+
recipeId: z87.string().min(1)
|
|
5239
5289
|
});
|
|
5240
|
-
var PluginAIInspirationDeleteRecipeResult =
|
|
5241
|
-
deleted:
|
|
5290
|
+
var PluginAIInspirationDeleteRecipeResult = z87.object({
|
|
5291
|
+
deleted: z87.boolean()
|
|
5242
5292
|
});
|
|
5243
|
-
var PluginAIInspirationExtractRecipeFromShapeArgs =
|
|
5244
|
-
shapeId:
|
|
5293
|
+
var PluginAIInspirationExtractRecipeFromShapeArgs = z87.object({
|
|
5294
|
+
shapeId: z87.string().min(1)
|
|
5245
5295
|
});
|
|
5246
|
-
var PluginAIInspirationRunRecipeArgs =
|
|
5247
|
-
recipeId:
|
|
5296
|
+
var PluginAIInspirationRunRecipeArgs = z87.object({
|
|
5297
|
+
recipeId: z87.string().optional(),
|
|
5248
5298
|
recipe: PluginAIInspirationRecipe.optional(),
|
|
5249
|
-
slotShapeIds:
|
|
5299
|
+
slotShapeIds: z87.record(z87.string(), z87.string()),
|
|
5250
5300
|
runMode: PluginAIInspirationRunMode.optional()
|
|
5251
5301
|
});
|
|
5252
5302
|
var PluginPresentationAIInspirationApi = class {
|
|
@@ -5255,26 +5305,26 @@ var PluginPresentationAIInspirationApi = class {
|
|
|
5255
5305
|
};
|
|
5256
5306
|
|
|
5257
5307
|
// src/api/presentation/export.ts
|
|
5258
|
-
import * as
|
|
5259
|
-
var PluginPresentationExportFormat =
|
|
5260
|
-
var PluginPresentationExportResolution =
|
|
5261
|
-
width:
|
|
5262
|
-
height:
|
|
5308
|
+
import * as z88 from "zod";
|
|
5309
|
+
var PluginPresentationExportFormat = z88.enum(["pdf", "png", "jpg"]);
|
|
5310
|
+
var PluginPresentationExportResolution = z88.object({
|
|
5311
|
+
width: z88.number().positive(),
|
|
5312
|
+
height: z88.number().positive()
|
|
5263
5313
|
});
|
|
5264
|
-
var PluginPresentationExportArgs =
|
|
5314
|
+
var PluginPresentationExportArgs = z88.object({
|
|
5265
5315
|
format: PluginPresentationExportFormat,
|
|
5266
|
-
sheetIds:
|
|
5267
|
-
combine:
|
|
5316
|
+
sheetIds: z88.array(z88.string()).optional(),
|
|
5317
|
+
combine: z88.boolean().optional(),
|
|
5268
5318
|
resolution: PluginPresentationExportResolution.optional(),
|
|
5269
|
-
fileName:
|
|
5319
|
+
fileName: z88.string().optional()
|
|
5270
5320
|
});
|
|
5271
|
-
var PluginPresentationExportFile =
|
|
5272
|
-
fileName:
|
|
5273
|
-
mimeType:
|
|
5274
|
-
dataBase64:
|
|
5321
|
+
var PluginPresentationExportFile = z88.object({
|
|
5322
|
+
fileName: z88.string(),
|
|
5323
|
+
mimeType: z88.string(),
|
|
5324
|
+
dataBase64: z88.string()
|
|
5275
5325
|
});
|
|
5276
|
-
var PluginPresentationExportResult =
|
|
5277
|
-
files:
|
|
5326
|
+
var PluginPresentationExportResult = z88.object({
|
|
5327
|
+
files: z88.array(PluginPresentationExportFile)
|
|
5278
5328
|
});
|
|
5279
5329
|
|
|
5280
5330
|
// src/api/presentation/index.ts
|
|
@@ -5290,38 +5340,38 @@ var PluginAnalysisSunpathApi = class {
|
|
|
5290
5340
|
};
|
|
5291
5341
|
|
|
5292
5342
|
// src/api/analysis/shadows.ts
|
|
5293
|
-
import * as
|
|
5343
|
+
import * as z89 from "zod";
|
|
5294
5344
|
var PluginAnalysisShadowsApi = class {
|
|
5295
5345
|
constructor() {
|
|
5296
5346
|
}
|
|
5297
5347
|
};
|
|
5298
|
-
var PluginAnalysisShadowsEnableOptions =
|
|
5299
|
-
dateTime:
|
|
5348
|
+
var PluginAnalysisShadowsEnableOptions = z89.object({
|
|
5349
|
+
dateTime: z89.string().optional()
|
|
5300
5350
|
});
|
|
5301
|
-
var PluginAnalysisShadowsSetDateTimeArgs =
|
|
5302
|
-
dateTime:
|
|
5351
|
+
var PluginAnalysisShadowsSetDateTimeArgs = z89.object({
|
|
5352
|
+
dateTime: z89.string()
|
|
5303
5353
|
});
|
|
5304
|
-
var PluginAnalysisShadowsDateTimeResult =
|
|
5354
|
+
var PluginAnalysisShadowsDateTimeResult = z89.string();
|
|
5305
5355
|
|
|
5306
5356
|
// src/api/analysis/sunlightHours.ts
|
|
5307
|
-
import * as
|
|
5357
|
+
import * as z90 from "zod";
|
|
5308
5358
|
var PluginAnalysisSunlightHoursApi = class {
|
|
5309
5359
|
constructor() {
|
|
5310
5360
|
}
|
|
5311
5361
|
};
|
|
5312
|
-
var PluginAnalysisComputeResult =
|
|
5313
|
-
success:
|
|
5314
|
-
error:
|
|
5362
|
+
var PluginAnalysisComputeResult = z90.object({
|
|
5363
|
+
success: z90.boolean(),
|
|
5364
|
+
error: z90.string().optional()
|
|
5315
5365
|
});
|
|
5316
|
-
var PluginAnalysisJobStatus =
|
|
5366
|
+
var PluginAnalysisJobStatus = z90.enum([
|
|
5317
5367
|
"running",
|
|
5318
5368
|
"active",
|
|
5319
5369
|
"inactive"
|
|
5320
5370
|
]);
|
|
5321
|
-
var PluginAnalysisJobState =
|
|
5371
|
+
var PluginAnalysisJobState = z90.object({
|
|
5322
5372
|
status: PluginAnalysisJobStatus,
|
|
5323
|
-
startDate:
|
|
5324
|
-
endDate:
|
|
5373
|
+
startDate: z90.string(),
|
|
5374
|
+
endDate: z90.string()
|
|
5325
5375
|
});
|
|
5326
5376
|
var PluginAnalysisJobStateResult = PluginAnalysisJobState.nullable();
|
|
5327
5377
|
|
|
@@ -5332,7 +5382,7 @@ var PluginAnalysisIlluminanceApi = class {
|
|
|
5332
5382
|
};
|
|
5333
5383
|
|
|
5334
5384
|
// src/api/analysis/heatmaps.ts
|
|
5335
|
-
import * as
|
|
5385
|
+
import * as z91 from "zod";
|
|
5336
5386
|
var PluginAnalysisHeatmapsApi = class {
|
|
5337
5387
|
constructor() {
|
|
5338
5388
|
}
|
|
@@ -5341,149 +5391,149 @@ var PluginAnalysisHeatmapOverlaysApi = class {
|
|
|
5341
5391
|
constructor() {
|
|
5342
5392
|
}
|
|
5343
5393
|
};
|
|
5344
|
-
var PluginAnalysisHeatmapSpaceEntry =
|
|
5394
|
+
var PluginAnalysisHeatmapSpaceEntry = z91.object({
|
|
5345
5395
|
space: ComponentHandle,
|
|
5346
|
-
value:
|
|
5396
|
+
value: z91.number().finite()
|
|
5347
5397
|
});
|
|
5348
|
-
var PluginAnalysisHeatmapGridCell =
|
|
5398
|
+
var PluginAnalysisHeatmapGridCell = z91.object({
|
|
5349
5399
|
position: Vec3Components,
|
|
5350
|
-
value:
|
|
5351
|
-
meta:
|
|
5352
|
-
});
|
|
5353
|
-
var HexColor =
|
|
5354
|
-
var PluginAnalysisHeatmapFieldCell =
|
|
5355
|
-
|
|
5356
|
-
polygon:
|
|
5357
|
-
value:
|
|
5358
|
-
meta:
|
|
5400
|
+
value: z91.number().finite(),
|
|
5401
|
+
meta: z91.unknown().optional()
|
|
5402
|
+
});
|
|
5403
|
+
var HexColor = z91.string().regex(/^#?[0-9a-fA-F]{6}$/, 'expected a 6-digit hex colour like "#0000ff"');
|
|
5404
|
+
var PluginAnalysisHeatmapFieldCell = z91.union([
|
|
5405
|
+
z91.object({
|
|
5406
|
+
polygon: z91.array(Vec3Components).min(3),
|
|
5407
|
+
value: z91.number().finite(),
|
|
5408
|
+
meta: z91.unknown().optional()
|
|
5359
5409
|
}),
|
|
5360
|
-
|
|
5361
|
-
vertices:
|
|
5362
|
-
indices:
|
|
5363
|
-
value:
|
|
5364
|
-
meta:
|
|
5410
|
+
z91.object({
|
|
5411
|
+
vertices: z91.array(Vec3Components).min(3),
|
|
5412
|
+
indices: z91.array(z91.number().int().nonnegative()).min(3),
|
|
5413
|
+
value: z91.number().finite(),
|
|
5414
|
+
meta: z91.unknown().optional()
|
|
5365
5415
|
})
|
|
5366
5416
|
]);
|
|
5367
|
-
var PluginAnalysisHeatmapScale =
|
|
5368
|
-
|
|
5369
|
-
type:
|
|
5370
|
-
count:
|
|
5417
|
+
var PluginAnalysisHeatmapScale = z91.discriminatedUnion("type", [
|
|
5418
|
+
z91.object({
|
|
5419
|
+
type: z91.literal("bands"),
|
|
5420
|
+
count: z91.number().int().min(2).max(64).optional()
|
|
5371
5421
|
}),
|
|
5372
|
-
|
|
5373
|
-
type:
|
|
5374
|
-
threshold:
|
|
5422
|
+
z91.object({
|
|
5423
|
+
type: z91.literal("threshold"),
|
|
5424
|
+
threshold: z91.number().finite(),
|
|
5375
5425
|
passColor: HexColor.optional(),
|
|
5376
5426
|
failColor: HexColor.optional(),
|
|
5377
|
-
passLabel:
|
|
5378
|
-
failLabel:
|
|
5427
|
+
passLabel: z91.string().optional(),
|
|
5428
|
+
failLabel: z91.string().optional()
|
|
5379
5429
|
}),
|
|
5380
|
-
|
|
5381
|
-
type:
|
|
5382
|
-
classes:
|
|
5383
|
-
|
|
5384
|
-
value:
|
|
5385
|
-
label:
|
|
5430
|
+
z91.object({
|
|
5431
|
+
type: z91.literal("categorical"),
|
|
5432
|
+
classes: z91.array(
|
|
5433
|
+
z91.object({
|
|
5434
|
+
value: z91.number().finite(),
|
|
5435
|
+
label: z91.string(),
|
|
5386
5436
|
color: HexColor
|
|
5387
5437
|
})
|
|
5388
5438
|
).min(1)
|
|
5389
5439
|
})
|
|
5390
5440
|
]);
|
|
5391
|
-
var PluginAnalysisHeatmapOptions =
|
|
5392
|
-
name:
|
|
5393
|
-
title:
|
|
5394
|
-
unit:
|
|
5395
|
-
min:
|
|
5396
|
-
max:
|
|
5397
|
-
colors:
|
|
5441
|
+
var PluginAnalysisHeatmapOptions = z91.object({
|
|
5442
|
+
name: z91.string().min(1).max(64).optional(),
|
|
5443
|
+
title: z91.string().optional(),
|
|
5444
|
+
unit: z91.string().optional(),
|
|
5445
|
+
min: z91.number().finite().optional(),
|
|
5446
|
+
max: z91.number().finite().optional(),
|
|
5447
|
+
colors: z91.array(HexColor).min(1).optional(),
|
|
5398
5448
|
scale: PluginAnalysisHeatmapScale.optional(),
|
|
5399
|
-
hover:
|
|
5449
|
+
hover: z91.boolean().optional()
|
|
5400
5450
|
});
|
|
5401
|
-
var PluginAnalysisHeatmapsRenderResult =
|
|
5402
|
-
success:
|
|
5451
|
+
var PluginAnalysisHeatmapsRenderResult = z91.object({
|
|
5452
|
+
success: z91.literal(true)
|
|
5403
5453
|
});
|
|
5404
|
-
var PluginAnalysisHeatmapOverlayInfo =
|
|
5405
|
-
name:
|
|
5406
|
-
visible:
|
|
5407
|
-
kind:
|
|
5454
|
+
var PluginAnalysisHeatmapOverlayInfo = z91.object({
|
|
5455
|
+
name: z91.string(),
|
|
5456
|
+
visible: z91.boolean(),
|
|
5457
|
+
kind: z91.enum(["spaces", "grid", "surfaceGrid", "field"])
|
|
5408
5458
|
});
|
|
5409
|
-
var PluginAnalysisHeatmapOverlaysListResult =
|
|
5410
|
-
overlays:
|
|
5459
|
+
var PluginAnalysisHeatmapOverlaysListResult = z91.object({
|
|
5460
|
+
overlays: z91.array(PluginAnalysisHeatmapOverlayInfo)
|
|
5411
5461
|
});
|
|
5412
5462
|
|
|
5413
5463
|
// src/api/analysis/weather.ts
|
|
5414
|
-
import * as
|
|
5464
|
+
import * as z92 from "zod";
|
|
5415
5465
|
var PluginAnalysisWeatherApi = class {
|
|
5416
5466
|
constructor() {
|
|
5417
5467
|
}
|
|
5418
5468
|
};
|
|
5419
|
-
var PluginWeatherSelectionMethod =
|
|
5469
|
+
var PluginWeatherSelectionMethod = z92.enum([
|
|
5420
5470
|
"nearest-station",
|
|
5421
5471
|
"user-upload",
|
|
5422
5472
|
"project-override"
|
|
5423
5473
|
]);
|
|
5424
|
-
var PluginWeatherSourceMeta =
|
|
5425
|
-
weatherFileId:
|
|
5426
|
-
station:
|
|
5427
|
-
sourceId:
|
|
5428
|
-
distanceKm:
|
|
5474
|
+
var PluginWeatherSourceMeta = z92.object({
|
|
5475
|
+
weatherFileId: z92.string(),
|
|
5476
|
+
station: z92.string(),
|
|
5477
|
+
sourceId: z92.string(),
|
|
5478
|
+
distanceKm: z92.number().nullable(),
|
|
5429
5479
|
selectionMethod: PluginWeatherSelectionMethod,
|
|
5430
|
-
checksum:
|
|
5431
|
-
windReferenceHeightM:
|
|
5432
|
-
});
|
|
5433
|
-
var PluginWeatherRow =
|
|
5434
|
-
timestamp:
|
|
5435
|
-
utcOffsetMinutes:
|
|
5436
|
-
dryBulbC:
|
|
5437
|
-
relativeHumidityPercent:
|
|
5438
|
-
windSpeedMps:
|
|
5439
|
-
ghiWm2:
|
|
5440
|
-
dniWm2:
|
|
5441
|
-
dhiWm2:
|
|
5442
|
-
flags:
|
|
5443
|
-
});
|
|
5444
|
-
var PluginWeatherGetSeriesArgs =
|
|
5445
|
-
startDate:
|
|
5446
|
-
endDate:
|
|
5447
|
-
interval:
|
|
5448
|
-
cursor:
|
|
5449
|
-
});
|
|
5450
|
-
var PluginWeatherSeriesResult =
|
|
5480
|
+
checksum: z92.string(),
|
|
5481
|
+
windReferenceHeightM: z92.number()
|
|
5482
|
+
});
|
|
5483
|
+
var PluginWeatherRow = z92.object({
|
|
5484
|
+
timestamp: z92.string(),
|
|
5485
|
+
utcOffsetMinutes: z92.number(),
|
|
5486
|
+
dryBulbC: z92.number(),
|
|
5487
|
+
relativeHumidityPercent: z92.number(),
|
|
5488
|
+
windSpeedMps: z92.number(),
|
|
5489
|
+
ghiWm2: z92.number(),
|
|
5490
|
+
dniWm2: z92.number(),
|
|
5491
|
+
dhiWm2: z92.number(),
|
|
5492
|
+
flags: z92.array(z92.string())
|
|
5493
|
+
});
|
|
5494
|
+
var PluginWeatherGetSeriesArgs = z92.object({
|
|
5495
|
+
startDate: z92.string(),
|
|
5496
|
+
endDate: z92.string(),
|
|
5497
|
+
interval: z92.enum(["hourly"]).optional(),
|
|
5498
|
+
cursor: z92.string().optional()
|
|
5499
|
+
});
|
|
5500
|
+
var PluginWeatherSeriesResult = z92.object({
|
|
5451
5501
|
source: PluginWeatherSourceMeta,
|
|
5452
|
-
rows:
|
|
5453
|
-
nextCursor:
|
|
5454
|
-
warnings:
|
|
5502
|
+
rows: z92.array(PluginWeatherRow),
|
|
5503
|
+
nextCursor: z92.string().nullable(),
|
|
5504
|
+
warnings: z92.array(z92.string()).optional()
|
|
5455
5505
|
});
|
|
5456
5506
|
|
|
5457
5507
|
// src/api/analysis/solar.ts
|
|
5458
|
-
import * as
|
|
5508
|
+
import * as z93 from "zod";
|
|
5459
5509
|
var PluginAnalysisSolarApi = class {
|
|
5460
5510
|
constructor() {
|
|
5461
5511
|
}
|
|
5462
5512
|
};
|
|
5463
|
-
var PluginSolarRunStatus =
|
|
5513
|
+
var PluginSolarRunStatus = z93.enum([
|
|
5464
5514
|
"running",
|
|
5465
5515
|
"complete",
|
|
5466
5516
|
"cancelled",
|
|
5467
5517
|
"failed"
|
|
5468
5518
|
]);
|
|
5469
|
-
var PluginSolarSampleMode =
|
|
5470
|
-
var PluginSolarUnits =
|
|
5471
|
-
var PluginSolarHourlyArtifact =
|
|
5472
|
-
url:
|
|
5473
|
-
format:
|
|
5474
|
-
expiresAt:
|
|
5475
|
-
});
|
|
5476
|
-
var PluginSolarSamplePoint =
|
|
5477
|
-
id:
|
|
5478
|
-
position:
|
|
5479
|
-
normal:
|
|
5480
|
-
});
|
|
5481
|
-
var PluginSolarSampleGridArgs =
|
|
5482
|
-
points:
|
|
5483
|
-
dateTime:
|
|
5484
|
-
startDate:
|
|
5485
|
-
endDate:
|
|
5486
|
-
includeHourlyArtifact:
|
|
5519
|
+
var PluginSolarSampleMode = z93.enum(["instant", "range"]);
|
|
5520
|
+
var PluginSolarUnits = z93.enum(["W/m2", "kWh/m2"]);
|
|
5521
|
+
var PluginSolarHourlyArtifact = z93.object({
|
|
5522
|
+
url: z93.string(),
|
|
5523
|
+
format: z93.enum(["parquet", "csv-gz"]),
|
|
5524
|
+
expiresAt: z93.string()
|
|
5525
|
+
});
|
|
5526
|
+
var PluginSolarSamplePoint = z93.object({
|
|
5527
|
+
id: z93.string(),
|
|
5528
|
+
position: z93.tuple([z93.number(), z93.number(), z93.number()]),
|
|
5529
|
+
normal: z93.tuple([z93.number(), z93.number(), z93.number()]).optional()
|
|
5530
|
+
});
|
|
5531
|
+
var PluginSolarSampleGridArgs = z93.object({
|
|
5532
|
+
points: z93.array(PluginSolarSamplePoint),
|
|
5533
|
+
dateTime: z93.string().optional(),
|
|
5534
|
+
startDate: z93.string().optional(),
|
|
5535
|
+
endDate: z93.string().optional(),
|
|
5536
|
+
includeHourlyArtifact: z93.boolean().optional()
|
|
5487
5537
|
}).superRefine((a, ctx) => {
|
|
5488
5538
|
const hasInstant = a.dateTime !== void 0;
|
|
5489
5539
|
const hasStart = a.startDate !== void 0;
|
|
@@ -5491,73 +5541,73 @@ var PluginSolarSampleGridArgs = z92.object({
|
|
|
5491
5541
|
const hasRange = hasStart || hasEnd;
|
|
5492
5542
|
if (hasInstant === hasRange) {
|
|
5493
5543
|
ctx.addIssue({
|
|
5494
|
-
code:
|
|
5544
|
+
code: z93.ZodIssueCode.custom,
|
|
5495
5545
|
message: "provide exactly one timing mode: dateTime (instant), or startDate+endDate (range)"
|
|
5496
5546
|
});
|
|
5497
5547
|
}
|
|
5498
5548
|
if (hasRange && !(hasStart && hasEnd)) {
|
|
5499
5549
|
ctx.addIssue({
|
|
5500
|
-
code:
|
|
5550
|
+
code: z93.ZodIssueCode.custom,
|
|
5501
5551
|
message: "range mode requires both startDate and endDate"
|
|
5502
5552
|
});
|
|
5503
5553
|
}
|
|
5504
5554
|
});
|
|
5505
|
-
var PluginSolarSampleResult =
|
|
5506
|
-
id:
|
|
5507
|
-
directSunVisible:
|
|
5508
|
-
shadeFraction:
|
|
5509
|
-
directIrradiance:
|
|
5510
|
-
diffuseIrradiance:
|
|
5511
|
-
totalIrradiance:
|
|
5555
|
+
var PluginSolarSampleResult = z93.object({
|
|
5556
|
+
id: z93.string(),
|
|
5557
|
+
directSunVisible: z93.boolean(),
|
|
5558
|
+
shadeFraction: z93.number(),
|
|
5559
|
+
directIrradiance: z93.number().optional(),
|
|
5560
|
+
diffuseIrradiance: z93.number().optional(),
|
|
5561
|
+
totalIrradiance: z93.number().optional()
|
|
5512
5562
|
});
|
|
5513
|
-
var PluginSolarSampleGridResult =
|
|
5563
|
+
var PluginSolarSampleGridResult = z93.object({
|
|
5514
5564
|
status: PluginSolarRunStatus,
|
|
5515
5565
|
mode: PluginSolarSampleMode,
|
|
5516
|
-
coordinateSystem:
|
|
5517
|
-
modelRevision:
|
|
5518
|
-
inputHash:
|
|
5566
|
+
coordinateSystem: z93.literal("world-plan-space"),
|
|
5567
|
+
modelRevision: z93.string(),
|
|
5568
|
+
inputHash: z93.string(),
|
|
5519
5569
|
units: PluginSolarUnits,
|
|
5520
|
-
sunUpHours:
|
|
5570
|
+
sunUpHours: z93.number(),
|
|
5521
5571
|
weather: PluginWeatherSourceMeta.nullable(),
|
|
5522
|
-
weatherQuality:
|
|
5523
|
-
results:
|
|
5572
|
+
weatherQuality: z93.array(z93.string()),
|
|
5573
|
+
results: z93.array(PluginSolarSampleResult),
|
|
5524
5574
|
hourlyArtifact: PluginSolarHourlyArtifact.nullable(),
|
|
5525
|
-
nextCursor:
|
|
5575
|
+
nextCursor: z93.string().nullable()
|
|
5526
5576
|
});
|
|
5527
5577
|
|
|
5528
5578
|
// src/api/analysis/daylight.ts
|
|
5529
|
-
import * as
|
|
5579
|
+
import * as z94 from "zod";
|
|
5530
5580
|
var PluginAnalysisDaylightApi = class {
|
|
5531
5581
|
constructor() {
|
|
5532
5582
|
}
|
|
5533
5583
|
};
|
|
5534
|
-
var PluginDaylightMetric =
|
|
5535
|
-
var PluginDaylightRunStatus =
|
|
5584
|
+
var PluginDaylightMetric = z94.enum(["ASE", "sDA"]);
|
|
5585
|
+
var PluginDaylightRunStatus = z94.enum([
|
|
5536
5586
|
"running",
|
|
5537
5587
|
"complete",
|
|
5538
5588
|
"cancelled",
|
|
5539
5589
|
"failed"
|
|
5540
5590
|
]);
|
|
5541
|
-
var PluginDaylightGrid =
|
|
5542
|
-
spacingM:
|
|
5543
|
-
workplaneHeightM:
|
|
5544
|
-
boundaryOffsetM:
|
|
5591
|
+
var PluginDaylightGrid = z94.object({
|
|
5592
|
+
spacingM: z94.number(),
|
|
5593
|
+
workplaneHeightM: z94.number(),
|
|
5594
|
+
boundaryOffsetM: z94.number()
|
|
5545
5595
|
});
|
|
5546
|
-
var PluginDaylightSchedule =
|
|
5547
|
-
startHour:
|
|
5548
|
-
endHour:
|
|
5596
|
+
var PluginDaylightSchedule = z94.object({
|
|
5597
|
+
startHour: z94.number(),
|
|
5598
|
+
endHour: z94.number()
|
|
5549
5599
|
});
|
|
5550
|
-
var PluginDaylightOpaqueOptics =
|
|
5551
|
-
reflectance:
|
|
5600
|
+
var PluginDaylightOpaqueOptics = z94.object({
|
|
5601
|
+
reflectance: z94.number().min(0).max(1)
|
|
5552
5602
|
});
|
|
5553
|
-
var PluginDaylightGlazingOptics =
|
|
5554
|
-
transmittance:
|
|
5603
|
+
var PluginDaylightGlazingOptics = z94.object({
|
|
5604
|
+
transmittance: z94.number().min(0).max(1)
|
|
5555
5605
|
});
|
|
5556
|
-
var PluginDaylightMaterialOptics =
|
|
5606
|
+
var PluginDaylightMaterialOptics = z94.union([
|
|
5557
5607
|
PluginDaylightOpaqueOptics,
|
|
5558
5608
|
PluginDaylightGlazingOptics
|
|
5559
5609
|
]);
|
|
5560
|
-
var PluginDaylightCategoryDefaults =
|
|
5610
|
+
var PluginDaylightCategoryDefaults = z94.object({
|
|
5561
5611
|
wall: PluginDaylightOpaqueOptics.optional(),
|
|
5562
5612
|
ceiling: PluginDaylightOpaqueOptics.optional(),
|
|
5563
5613
|
floor: PluginDaylightOpaqueOptics.optional(),
|
|
@@ -5565,81 +5615,81 @@ var PluginDaylightCategoryDefaults = z93.object({
|
|
|
5565
5615
|
glazing: PluginDaylightGlazingOptics.optional(),
|
|
5566
5616
|
context: PluginDaylightOpaqueOptics.optional()
|
|
5567
5617
|
});
|
|
5568
|
-
var PluginDaylightBlindsOptics =
|
|
5569
|
-
transmittance:
|
|
5618
|
+
var PluginDaylightBlindsOptics = z94.object({
|
|
5619
|
+
transmittance: z94.number().min(0).max(1)
|
|
5570
5620
|
});
|
|
5571
|
-
var PluginDaylightOptics =
|
|
5572
|
-
materials:
|
|
5621
|
+
var PluginDaylightOptics = z94.object({
|
|
5622
|
+
materials: z94.record(z94.string(), PluginDaylightMaterialOptics).optional(),
|
|
5573
5623
|
categories: PluginDaylightCategoryDefaults.optional(),
|
|
5574
5624
|
blinds: PluginDaylightBlindsOptics.optional()
|
|
5575
5625
|
});
|
|
5576
|
-
var PluginDaylightComputeArgs =
|
|
5577
|
-
standard:
|
|
5578
|
-
metrics:
|
|
5626
|
+
var PluginDaylightComputeArgs = z94.object({
|
|
5627
|
+
standard: z94.literal("IES-LM-83-23"),
|
|
5628
|
+
metrics: z94.array(PluginDaylightMetric).min(1),
|
|
5579
5629
|
schedule: PluginDaylightSchedule.optional(),
|
|
5580
5630
|
grid: PluginDaylightGrid,
|
|
5581
5631
|
optics: PluginDaylightOptics.optional()
|
|
5582
5632
|
});
|
|
5583
|
-
var PluginDaylightPollArgs =
|
|
5584
|
-
runId:
|
|
5585
|
-
cursor:
|
|
5586
|
-
});
|
|
5587
|
-
var PluginDaylightSensorRecord =
|
|
5588
|
-
sensorId:
|
|
5589
|
-
position:
|
|
5590
|
-
spaceId:
|
|
5591
|
-
storeyId:
|
|
5592
|
-
areaWeightM2:
|
|
5593
|
-
occupiedHours:
|
|
5594
|
-
directSunHoursAtOrAbove1000Lux:
|
|
5595
|
-
aseFail:
|
|
5596
|
-
da300Percent:
|
|
5597
|
-
sdaPass:
|
|
5598
|
-
});
|
|
5599
|
-
var PluginDaylightAggregateScope =
|
|
5633
|
+
var PluginDaylightPollArgs = z94.object({
|
|
5634
|
+
runId: z94.string(),
|
|
5635
|
+
cursor: z94.string().optional()
|
|
5636
|
+
});
|
|
5637
|
+
var PluginDaylightSensorRecord = z94.object({
|
|
5638
|
+
sensorId: z94.string(),
|
|
5639
|
+
position: z94.tuple([z94.number(), z94.number(), z94.number()]),
|
|
5640
|
+
spaceId: z94.string(),
|
|
5641
|
+
storeyId: z94.string(),
|
|
5642
|
+
areaWeightM2: z94.number(),
|
|
5643
|
+
occupiedHours: z94.number(),
|
|
5644
|
+
directSunHoursAtOrAbove1000Lux: z94.number().optional(),
|
|
5645
|
+
aseFail: z94.boolean().optional(),
|
|
5646
|
+
da300Percent: z94.number().optional(),
|
|
5647
|
+
sdaPass: z94.boolean().optional()
|
|
5648
|
+
});
|
|
5649
|
+
var PluginDaylightAggregateScope = z94.enum([
|
|
5600
5650
|
"project",
|
|
5601
5651
|
"storey",
|
|
5602
5652
|
"space"
|
|
5603
5653
|
]);
|
|
5604
|
-
var PluginDaylightAggregate =
|
|
5654
|
+
var PluginDaylightAggregate = z94.object({
|
|
5605
5655
|
scope: PluginDaylightAggregateScope,
|
|
5606
|
-
id:
|
|
5607
|
-
analysisAreaM2:
|
|
5608
|
-
asePercent:
|
|
5609
|
-
sdaPercent:
|
|
5610
|
-
});
|
|
5611
|
-
var PluginDaylightProvenance =
|
|
5612
|
-
engine:
|
|
5613
|
-
engineVersion:
|
|
5614
|
-
standardProfile:
|
|
5615
|
-
thresholds:
|
|
5656
|
+
id: z94.string().nullable(),
|
|
5657
|
+
analysisAreaM2: z94.number(),
|
|
5658
|
+
asePercent: z94.number().optional(),
|
|
5659
|
+
sdaPercent: z94.number().optional()
|
|
5660
|
+
});
|
|
5661
|
+
var PluginDaylightProvenance = z94.object({
|
|
5662
|
+
engine: z94.string(),
|
|
5663
|
+
engineVersion: z94.string(),
|
|
5664
|
+
standardProfile: z94.string(),
|
|
5665
|
+
thresholds: z94.object({ aseLux: z94.number(), aseHours: z94.number() }).passthrough(),
|
|
5616
5666
|
weather: PluginWeatherSourceMeta.nullable(),
|
|
5617
|
-
occupancySchedule:
|
|
5667
|
+
occupancySchedule: z94.object({ id: z94.string(), hoursPerYear: z94.number() }).passthrough(),
|
|
5618
5668
|
grid: PluginDaylightGrid,
|
|
5619
|
-
location:
|
|
5620
|
-
latitude:
|
|
5621
|
-
longitude:
|
|
5622
|
-
timezone:
|
|
5623
|
-
trueNorthDeg:
|
|
5669
|
+
location: z94.object({
|
|
5670
|
+
latitude: z94.number(),
|
|
5671
|
+
longitude: z94.number(),
|
|
5672
|
+
timezone: z94.string(),
|
|
5673
|
+
trueNorthDeg: z94.number()
|
|
5624
5674
|
}).passthrough(),
|
|
5625
|
-
surfaceReflectances:
|
|
5626
|
-
modelRevision:
|
|
5627
|
-
inputHash:
|
|
5628
|
-
warnings:
|
|
5629
|
-
excludedSpaces:
|
|
5630
|
-
|
|
5675
|
+
surfaceReflectances: z94.record(z94.string(), z94.number()),
|
|
5676
|
+
modelRevision: z94.string(),
|
|
5677
|
+
inputHash: z94.string(),
|
|
5678
|
+
warnings: z94.array(z94.string()),
|
|
5679
|
+
excludedSpaces: z94.array(
|
|
5680
|
+
z94.object({ spaceId: z94.string(), reason: z94.string() })
|
|
5631
5681
|
),
|
|
5632
|
-
failedGeometry:
|
|
5633
|
-
|
|
5682
|
+
failedGeometry: z94.array(
|
|
5683
|
+
z94.object({ componentId: z94.string(), reason: z94.string() })
|
|
5634
5684
|
)
|
|
5635
5685
|
}).partial().passthrough();
|
|
5636
|
-
var PluginDaylightResults =
|
|
5686
|
+
var PluginDaylightResults = z94.object({
|
|
5637
5687
|
status: PluginDaylightRunStatus,
|
|
5638
|
-
runId:
|
|
5639
|
-
sensors:
|
|
5640
|
-
aggregates:
|
|
5688
|
+
runId: z94.string().optional(),
|
|
5689
|
+
sensors: z94.array(PluginDaylightSensorRecord),
|
|
5690
|
+
aggregates: z94.array(PluginDaylightAggregate),
|
|
5641
5691
|
provenance: PluginDaylightProvenance,
|
|
5642
|
-
nextCursor:
|
|
5692
|
+
nextCursor: z94.string().nullable()
|
|
5643
5693
|
});
|
|
5644
5694
|
|
|
5645
5695
|
// src/api/analysis/index.ts
|
|
@@ -5649,7 +5699,7 @@ var PluginAnalysisApi = class {
|
|
|
5649
5699
|
};
|
|
5650
5700
|
|
|
5651
5701
|
// src/api/workspace/index.ts
|
|
5652
|
-
import * as
|
|
5702
|
+
import * as z95 from "zod";
|
|
5653
5703
|
var PluginWorkspaceApi = class {
|
|
5654
5704
|
constructor() {
|
|
5655
5705
|
}
|
|
@@ -5662,68 +5712,68 @@ var PluginWorkspaceTeamsApi = class {
|
|
|
5662
5712
|
constructor() {
|
|
5663
5713
|
}
|
|
5664
5714
|
};
|
|
5665
|
-
var PluginProjectRef =
|
|
5666
|
-
id:
|
|
5667
|
-
name:
|
|
5668
|
-
teamId:
|
|
5669
|
-
createdAt:
|
|
5670
|
-
modifiedAt:
|
|
5715
|
+
var PluginProjectRef = z95.object({
|
|
5716
|
+
id: z95.string(),
|
|
5717
|
+
name: z95.string(),
|
|
5718
|
+
teamId: z95.string().optional(),
|
|
5719
|
+
createdAt: z95.string().optional(),
|
|
5720
|
+
modifiedAt: z95.string().optional()
|
|
5671
5721
|
});
|
|
5672
|
-
var PluginTeamRef =
|
|
5673
|
-
id:
|
|
5674
|
-
name:
|
|
5675
|
-
role:
|
|
5722
|
+
var PluginTeamRef = z95.object({
|
|
5723
|
+
id: z95.string(),
|
|
5724
|
+
name: z95.string(),
|
|
5725
|
+
role: z95.string().optional()
|
|
5676
5726
|
});
|
|
5677
|
-
var PluginTeamMemberRef =
|
|
5678
|
-
id:
|
|
5679
|
-
name:
|
|
5680
|
-
email:
|
|
5681
|
-
role:
|
|
5727
|
+
var PluginTeamMemberRef = z95.object({
|
|
5728
|
+
id: z95.string(),
|
|
5729
|
+
name: z95.string(),
|
|
5730
|
+
email: z95.string().optional(),
|
|
5731
|
+
role: z95.string().optional()
|
|
5682
5732
|
});
|
|
5683
|
-
var PluginWorkspaceProjectsCreateArgs =
|
|
5684
|
-
name:
|
|
5685
|
-
unit:
|
|
5686
|
-
teamId:
|
|
5733
|
+
var PluginWorkspaceProjectsCreateArgs = z95.object({
|
|
5734
|
+
name: z95.string(),
|
|
5735
|
+
unit: z95.string().optional(),
|
|
5736
|
+
teamId: z95.string().optional()
|
|
5687
5737
|
});
|
|
5688
|
-
var PluginWorkspaceProjectsCreateResult =
|
|
5689
|
-
projectId:
|
|
5738
|
+
var PluginWorkspaceProjectsCreateResult = z95.object({
|
|
5739
|
+
projectId: z95.string()
|
|
5690
5740
|
});
|
|
5691
|
-
var PluginWorkspaceProjectsCopyArgs =
|
|
5692
|
-
name:
|
|
5693
|
-
teamId:
|
|
5741
|
+
var PluginWorkspaceProjectsCopyArgs = z95.object({
|
|
5742
|
+
name: z95.string(),
|
|
5743
|
+
teamId: z95.string().optional()
|
|
5694
5744
|
});
|
|
5695
|
-
var PluginWorkspaceProjectsCopyResult =
|
|
5696
|
-
projectId:
|
|
5745
|
+
var PluginWorkspaceProjectsCopyResult = z95.object({
|
|
5746
|
+
projectId: z95.string()
|
|
5697
5747
|
});
|
|
5698
|
-
var PluginWorkspaceProjectsListArgs =
|
|
5699
|
-
teamId:
|
|
5748
|
+
var PluginWorkspaceProjectsListArgs = z95.object({
|
|
5749
|
+
teamId: z95.string().optional()
|
|
5700
5750
|
});
|
|
5701
|
-
var PluginWorkspaceProjectsListResult =
|
|
5702
|
-
projects:
|
|
5751
|
+
var PluginWorkspaceProjectsListResult = z95.object({
|
|
5752
|
+
projects: z95.array(PluginProjectRef)
|
|
5703
5753
|
});
|
|
5704
|
-
var PluginWorkspaceProjectsGetArgs =
|
|
5705
|
-
projectId:
|
|
5754
|
+
var PluginWorkspaceProjectsGetArgs = z95.object({
|
|
5755
|
+
projectId: z95.string()
|
|
5706
5756
|
});
|
|
5707
5757
|
var PluginWorkspaceProjectsGetResult = PluginProjectRef.nullable();
|
|
5708
|
-
var PluginWorkspaceProjectsRenameArgs =
|
|
5709
|
-
projectId:
|
|
5710
|
-
name:
|
|
5758
|
+
var PluginWorkspaceProjectsRenameArgs = z95.object({
|
|
5759
|
+
projectId: z95.string(),
|
|
5760
|
+
name: z95.string()
|
|
5711
5761
|
});
|
|
5712
|
-
var PluginWorkspaceProjectsRenameResult =
|
|
5713
|
-
projectId:
|
|
5762
|
+
var PluginWorkspaceProjectsRenameResult = z95.object({
|
|
5763
|
+
projectId: z95.string()
|
|
5714
5764
|
});
|
|
5715
|
-
var PluginWorkspaceTeamsListResult =
|
|
5716
|
-
teams:
|
|
5765
|
+
var PluginWorkspaceTeamsListResult = z95.object({
|
|
5766
|
+
teams: z95.array(PluginTeamRef)
|
|
5717
5767
|
});
|
|
5718
|
-
var PluginWorkspaceTeamsGetArgs =
|
|
5719
|
-
teamId:
|
|
5768
|
+
var PluginWorkspaceTeamsGetArgs = z95.object({
|
|
5769
|
+
teamId: z95.string()
|
|
5720
5770
|
});
|
|
5721
5771
|
var PluginWorkspaceTeamsGetResult = PluginTeamRef.nullable();
|
|
5722
|
-
var PluginWorkspaceTeamsListMembersArgs =
|
|
5723
|
-
teamId:
|
|
5772
|
+
var PluginWorkspaceTeamsListMembersArgs = z95.object({
|
|
5773
|
+
teamId: z95.string()
|
|
5724
5774
|
});
|
|
5725
|
-
var PluginWorkspaceTeamsListMembersResult =
|
|
5726
|
-
members:
|
|
5775
|
+
var PluginWorkspaceTeamsListMembersResult = z95.object({
|
|
5776
|
+
members: z95.array(PluginTeamMemberRef)
|
|
5727
5777
|
});
|
|
5728
5778
|
|
|
5729
5779
|
// src/api/index.ts
|
|
@@ -5828,8 +5878,8 @@ function isPluginErrorCode(value) {
|
|
|
5828
5878
|
var ERROR_ENVELOPE_VERSION = 1;
|
|
5829
5879
|
function isErrorEnvelope(value) {
|
|
5830
5880
|
if (typeof value !== "object" || value === null) return false;
|
|
5831
|
-
const
|
|
5832
|
-
return
|
|
5881
|
+
const record8 = value;
|
|
5882
|
+
return record8.envelopeVersion === ERROR_ENVELOPE_VERSION && typeof record8.code === "string" && typeof record8.message === "string" && typeof record8.errorId === "string";
|
|
5833
5883
|
}
|
|
5834
5884
|
var idCounter = 0;
|
|
5835
5885
|
function newErrorId(prefix = "") {
|
|
@@ -6289,6 +6339,13 @@ export {
|
|
|
6289
6339
|
PluginDesignEraseApi,
|
|
6290
6340
|
PluginDesignEraseEdgeArgs,
|
|
6291
6341
|
PluginDesignEraseEdgeResult,
|
|
6342
|
+
PluginDesignFamilyApi,
|
|
6343
|
+
PluginDesignFamilyCreateArgs,
|
|
6344
|
+
PluginDesignFamilyFlexArgs,
|
|
6345
|
+
PluginDesignFamilyGetParametersArgs,
|
|
6346
|
+
PluginDesignFamilyPlaceArgs,
|
|
6347
|
+
PluginDesignFamilyPrepareArgs,
|
|
6348
|
+
PluginDesignFamilySetParametersArgs,
|
|
6292
6349
|
PluginDesignFurnitureApi,
|
|
6293
6350
|
PluginDesignFurnitureExistsArgs,
|
|
6294
6351
|
PluginDesignFurnitureGetCatalogItemArgs,
|
|
@@ -6385,6 +6442,8 @@ export {
|
|
|
6385
6442
|
PluginExecutionError,
|
|
6386
6443
|
PluginExportModelArgs,
|
|
6387
6444
|
PluginFaceMaterial,
|
|
6445
|
+
PluginFamilyBundleSchema,
|
|
6446
|
+
PluginFamilySnapshotOption,
|
|
6388
6447
|
PluginFurnitureCatalogItem,
|
|
6389
6448
|
PluginFurnitureDimensionUpdates,
|
|
6390
6449
|
PluginFurnitureDimensions,
|