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