@elevasis/core 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +67 -159
- package/dist/index.js +321 -613
- package/dist/organization-model/index.d.ts +67 -159
- package/dist/organization-model/index.js +321 -613
- package/dist/test-utils/index.d.ts +17 -45
- package/dist/test-utils/index.js +254 -600
- package/package.json +1 -1
- package/src/__tests__/template-core-compatibility.test.ts +73 -91
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +62 -148
- package/src/organization-model/README.md +101 -97
- package/src/organization-model/__tests__/domains/resource-mappings.test.ts +24 -93
- package/src/organization-model/__tests__/graph.test.ts +82 -894
- package/src/organization-model/__tests__/resolve.test.ts +59 -690
- package/src/organization-model/__tests__/schema.test.ts +83 -407
- package/src/organization-model/defaults.ts +276 -141
- package/src/organization-model/domains/features.ts +31 -22
- package/src/organization-model/foundation.ts +42 -54
- package/src/organization-model/graph/build.ts +42 -217
- package/src/organization-model/graph/index.ts +4 -4
- package/src/organization-model/graph/link.ts +10 -0
- package/src/organization-model/graph/schema.ts +21 -16
- package/src/organization-model/graph/types.ts +10 -10
- package/src/organization-model/helpers.ts +74 -0
- package/src/organization-model/index.ts +7 -7
- package/src/organization-model/organization-graph.mdx +89 -272
- package/src/organization-model/organization-model.mdx +149 -320
- package/src/organization-model/published.ts +15 -15
- package/src/organization-model/resolve.ts +8 -33
- package/src/organization-model/schema.ts +63 -205
- package/src/organization-model/types.ts +12 -11
- package/src/platform/registry/__tests__/command-view.test.ts +6 -5
- package/src/platform/registry/__tests__/resource-link.test.ts +30 -0
- package/src/platform/registry/__tests__/resource-registry.integration.test.ts +15 -15
- package/src/platform/registry/command-view.ts +10 -12
- package/src/platform/registry/index.ts +13 -8
- package/src/platform/registry/resource-link.ts +32 -0
- package/src/platform/registry/resource-registry.ts +12 -10
- package/src/platform/registry/serialization.ts +56 -73
- package/src/platform/registry/serialized-types.ts +17 -12
- package/src/platform/registry/types.ts +14 -43
- package/src/reference/_generated/contracts.md +62 -148
- package/src/reference/glossary.md +71 -105
- package/src/platform/registry/domains.ts +0 -165
|
@@ -3128,12 +3128,15 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3128
3128
|
label: z.ZodString;
|
|
3129
3129
|
description: z.ZodOptional<z.ZodString>;
|
|
3130
3130
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3131
|
-
|
|
3131
|
+
path: z.ZodOptional<z.ZodString>;
|
|
3132
3132
|
icon: z.ZodOptional<z.ZodString>;
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3133
|
+
color: z.ZodOptional<z.ZodString>;
|
|
3134
|
+
uiPosition: z.ZodOptional<z.ZodEnum<{
|
|
3135
|
+
"sidebar-primary": "sidebar-primary";
|
|
3136
|
+
"sidebar-bottom": "sidebar-bottom";
|
|
3137
|
+
}>>;
|
|
3138
|
+
requiresAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
3139
|
+
devOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3137
3140
|
}, z.core.$strip>>>;
|
|
3138
3141
|
branding: z.ZodObject<{
|
|
3139
3142
|
organizationName: z.ZodString;
|
|
@@ -3145,19 +3148,19 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3145
3148
|
dark: z.ZodOptional<z.ZodString>;
|
|
3146
3149
|
}, z.core.$strip>>;
|
|
3147
3150
|
}, z.core.$strip>;
|
|
3148
|
-
navigation: z.ZodObject<{
|
|
3151
|
+
navigation: z.ZodDefault<z.ZodObject<{
|
|
3149
3152
|
defaultSurfaceId: z.ZodOptional<z.ZodString>;
|
|
3150
3153
|
surfaces: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3151
3154
|
id: z.ZodString;
|
|
3152
3155
|
label: z.ZodString;
|
|
3153
3156
|
path: z.ZodString;
|
|
3154
3157
|
surfaceType: z.ZodEnum<{
|
|
3155
|
-
list: "list";
|
|
3156
3158
|
settings: "settings";
|
|
3157
3159
|
page: "page";
|
|
3158
3160
|
dashboard: "dashboard";
|
|
3159
3161
|
graph: "graph";
|
|
3160
3162
|
detail: "detail";
|
|
3163
|
+
list: "list";
|
|
3161
3164
|
}>;
|
|
3162
3165
|
description: z.ZodOptional<z.ZodString>;
|
|
3163
3166
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -3175,7 +3178,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3175
3178
|
placement: z.ZodString;
|
|
3176
3179
|
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3177
3180
|
}, z.core.$strip>>>;
|
|
3178
|
-
}, z.core.$strip
|
|
3181
|
+
}, z.core.$strip>>;
|
|
3179
3182
|
sales: z.ZodObject<{
|
|
3180
3183
|
entityId: z.ZodString;
|
|
3181
3184
|
defaultPipelineId: z.ZodString;
|
|
@@ -3194,9 +3197,9 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3194
3197
|
semanticClass: z.ZodEnum<{
|
|
3195
3198
|
open: "open";
|
|
3196
3199
|
active: "active";
|
|
3200
|
+
nurturing: "nurturing";
|
|
3197
3201
|
closed_won: "closed_won";
|
|
3198
3202
|
closed_lost: "closed_lost";
|
|
3199
|
-
nurturing: "nurturing";
|
|
3200
3203
|
}>;
|
|
3201
3204
|
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3202
3205
|
resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -3357,12 +3360,12 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3357
3360
|
id: z.ZodString;
|
|
3358
3361
|
label: z.ZodString;
|
|
3359
3362
|
semanticClass: z.ZodEnum<{
|
|
3360
|
-
execution: "execution";
|
|
3361
|
-
schedule: "schedule";
|
|
3362
|
-
queue: "queue";
|
|
3363
3363
|
"delivery.project": "delivery.project";
|
|
3364
3364
|
"delivery.milestone": "delivery.milestone";
|
|
3365
3365
|
"delivery.task": "delivery.task";
|
|
3366
|
+
queue: "queue";
|
|
3367
|
+
execution: "execution";
|
|
3368
|
+
schedule: "schedule";
|
|
3366
3369
|
"schedule.run": "schedule.run";
|
|
3367
3370
|
request: "request";
|
|
3368
3371
|
}>;
|
|
@@ -3374,47 +3377,16 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
3374
3377
|
id: z.ZodString;
|
|
3375
3378
|
label: z.ZodString;
|
|
3376
3379
|
semanticClass: z.ZodEnum<{
|
|
3380
|
+
queue: "queue";
|
|
3381
|
+
executions: "executions";
|
|
3377
3382
|
sessions: "sessions";
|
|
3378
3383
|
notifications: "notifications";
|
|
3379
3384
|
schedules: "schedules";
|
|
3380
|
-
executions: "executions";
|
|
3381
|
-
queue: "queue";
|
|
3382
3385
|
}>;
|
|
3383
3386
|
featureId: z.ZodOptional<z.ZodString>;
|
|
3384
3387
|
supportedStatusSemanticClass: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3385
3388
|
}, z.core.$strip>>>;
|
|
3386
3389
|
}, z.core.$strip>>;
|
|
3387
|
-
resourceMappings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3388
|
-
label: z.ZodString;
|
|
3389
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3390
|
-
color: z.ZodOptional<z.ZodString>;
|
|
3391
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
3392
|
-
id: z.ZodString;
|
|
3393
|
-
resourceId: z.ZodString;
|
|
3394
|
-
resourceType: z.ZodEnum<{
|
|
3395
|
-
agent: "agent";
|
|
3396
|
-
workflow: "workflow";
|
|
3397
|
-
trigger: "trigger";
|
|
3398
|
-
integration: "integration";
|
|
3399
|
-
external: "external";
|
|
3400
|
-
human_checkpoint: "human_checkpoint";
|
|
3401
|
-
}>;
|
|
3402
|
-
featureIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3403
|
-
entityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3404
|
-
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3405
|
-
capabilityIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
3406
|
-
techStack: z.ZodOptional<z.ZodObject<{
|
|
3407
|
-
platform: z.ZodString;
|
|
3408
|
-
purpose: z.ZodString;
|
|
3409
|
-
credentialStatus: z.ZodEnum<{
|
|
3410
|
-
pending: "pending";
|
|
3411
|
-
configured: "configured";
|
|
3412
|
-
expired: "expired";
|
|
3413
|
-
missing: "missing";
|
|
3414
|
-
}>;
|
|
3415
|
-
isSystemOfRecord: z.ZodDefault<z.ZodBoolean>;
|
|
3416
|
-
}, z.core.$strip>>;
|
|
3417
|
-
}, z.core.$strip>>>;
|
|
3418
3390
|
}, z.core.$strip>;
|
|
3419
3391
|
|
|
3420
3392
|
type OrganizationModel = z.infer<typeof OrganizationModelSchema>;
|