@elevasis/core 0.11.1 → 0.12.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 +2 -2
- package/dist/index.js +10 -11
- package/dist/organization-model/index.d.ts +2 -2
- package/dist/organization-model/index.js +10 -11
- package/dist/test-utils/index.d.ts +10 -3
- package/dist/test-utils/index.js +6 -6
- package/package.json +1 -1
- package/src/__tests__/template-core-compatibility.test.ts +6 -15
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +27 -270
- package/src/auth/multi-tenancy/credentials/server/encryption.ts +83 -39
- package/src/auth/multi-tenancy/credentials/server/kek-loader.ts +47 -0
- package/src/auth/multi-tenancy/index.ts +3 -0
- package/src/auth/multi-tenancy/invitations/api-schemas.ts +104 -107
- package/src/auth/multi-tenancy/memberships/api-schemas.ts +6 -5
- package/src/auth/multi-tenancy/memberships/membership.ts +130 -138
- package/src/auth/multi-tenancy/role-management/api-schemas.ts +78 -0
- package/src/auth/multi-tenancy/role-management/index.ts +16 -0
- package/src/execution/engine/tools/integration/server/adapters/apify/__tests__/apify-run-actor.integration.test.ts +299 -293
- package/src/execution/engine/tools/integration/service.test.ts +214 -0
- package/src/execution/engine/tools/integration/service.ts +169 -161
- package/src/integrations/credentials/__tests__/api-schemas.test.ts +420 -496
- package/src/integrations/credentials/api-schemas.ts +127 -143
- package/src/integrations/webhook-endpoints/__tests__/api-schemas.test.ts +327 -318
- package/src/integrations/webhook-endpoints/api-schemas.ts +103 -102
- package/src/integrations/webhook-endpoints/types.ts +58 -51
- package/src/operations/activities/api-schemas.ts +80 -79
- package/src/operations/activities/types.ts +64 -63
- package/src/organization-model/contracts.ts +1 -1
- package/src/organization-model/defaults.ts +6 -6
- package/src/organization-model/domains/navigation.ts +38 -37
- package/src/organization-model/foundation.ts +2 -3
- package/src/organization-model/published.ts +3 -3
- package/src/platform/constants/versions.ts +1 -1
- package/src/reference/_generated/contracts.md +27 -270
- package/src/scaffold-registry/__tests__/index.test.ts +72 -7
- package/src/scaffold-registry/index.ts +159 -26
- package/src/server.ts +281 -272
- package/src/supabase/database.types.ts +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -326,8 +326,8 @@ declare const SETTINGS_FEATURE_ID: "settings";
|
|
|
326
326
|
declare const SEO_FEATURE_ID: "seo";
|
|
327
327
|
declare const SALES_PIPELINE_SURFACE_ID: "crm.pipeline";
|
|
328
328
|
declare const PROSPECTING_LISTS_SURFACE_ID: "lead-gen.lists";
|
|
329
|
-
declare const OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID: "operations.organization-graph";
|
|
330
329
|
declare const OPERATIONS_COMMAND_VIEW_SURFACE_ID: "operations.command-view";
|
|
330
|
+
declare const SETTINGS_ROLES_SURFACE_ID: "settings.roles";
|
|
331
331
|
|
|
332
332
|
declare const OrganizationModelBrandingSchema: z.ZodObject<{
|
|
333
333
|
organizationName: z.ZodString;
|
|
@@ -696,5 +696,5 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
|
|
|
696
696
|
getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
|
|
697
697
|
};
|
|
698
698
|
|
|
699
|
-
export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, KeyResultSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID,
|
|
699
|
+
export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, KeyResultSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, ObjectiveSchema, OfferingsDomainSchema, OperationEntrySchema, OperationSemanticClassSchema, OperationsDomainSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_VIEW_CAPABILITY_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PricingModelSchema, ProductSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SEO_FEATURE_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, TechStackEntrySchema, UiPositionSchema, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
|
|
700
700
|
export type { DeepPartial, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, NodeIdPath, NodeIdString, OrganizationModel, OrganizationModelBranding, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelFeature, OrganizationModelGoals, OrganizationModelKeyResult, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelOperationEntry, OrganizationModelOperationSemanticClass, OrganizationModelOperations, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelProjects, OrganizationModelProspecting, OrganizationModelRole, OrganizationModelRoles, OrganizationModelSales, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelTechStackEntry };
|
package/dist/index.js
CHANGED
|
@@ -248,8 +248,8 @@ var SETTINGS_FEATURE_ID = "settings";
|
|
|
248
248
|
var SEO_FEATURE_ID = "seo";
|
|
249
249
|
var SALES_PIPELINE_SURFACE_ID = "crm.pipeline";
|
|
250
250
|
var PROSPECTING_LISTS_SURFACE_ID = "lead-gen.lists";
|
|
251
|
-
var OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID = "operations.organization-graph";
|
|
252
251
|
var OPERATIONS_COMMAND_VIEW_SURFACE_ID = "operations.command-view";
|
|
252
|
+
var SETTINGS_ROLES_SURFACE_ID = "settings.roles";
|
|
253
253
|
|
|
254
254
|
// src/organization-model/domains/navigation.ts
|
|
255
255
|
var SurfaceTypeSchema = z.enum(["page", "dashboard", "graph", "detail", "list", "settings"]);
|
|
@@ -891,12 +891,6 @@ var DEFAULT_ORGANIZATION_MODEL = {
|
|
|
891
891
|
icon: "operations",
|
|
892
892
|
uiPosition: "sidebar-primary"
|
|
893
893
|
},
|
|
894
|
-
{
|
|
895
|
-
id: "operations.graph",
|
|
896
|
-
label: "Organization Graph",
|
|
897
|
-
enabled: true,
|
|
898
|
-
path: "/operations/organization-graph"
|
|
899
|
-
},
|
|
900
894
|
{
|
|
901
895
|
id: "operations.command-view",
|
|
902
896
|
label: "Command View",
|
|
@@ -995,6 +989,12 @@ var DEFAULT_ORGANIZATION_MODEL = {
|
|
|
995
989
|
enabled: true,
|
|
996
990
|
path: "/settings/appearance"
|
|
997
991
|
},
|
|
992
|
+
{
|
|
993
|
+
id: "settings.roles",
|
|
994
|
+
label: "My Roles",
|
|
995
|
+
enabled: true,
|
|
996
|
+
path: "/settings/roles"
|
|
997
|
+
},
|
|
998
998
|
{
|
|
999
999
|
id: "settings.organization",
|
|
1000
1000
|
label: "Organization",
|
|
@@ -1146,13 +1146,12 @@ function createFoundationOrganizationModel(override) {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
return feature;
|
|
1148
1148
|
}
|
|
1149
|
-
const
|
|
1149
|
+
const operationsFeature = requireCoreFeature("operations");
|
|
1150
1150
|
const projectsFeature = requireCoreFeature("projects");
|
|
1151
1151
|
const leadGenFeature = requireCoreFeature("sales.lead-gen");
|
|
1152
1152
|
const crmFeature = requireCoreFeature("sales.crm");
|
|
1153
1153
|
const navigationSurfaces = [
|
|
1154
|
-
{ ...
|
|
1155
|
-
{ ...operationsGraphFeature, path: "/operations", icon: "operations", surfaceType: "graph" },
|
|
1154
|
+
{ ...operationsFeature, id: "operations", path: "/operations", icon: "operations", surfaceType: "dashboard" },
|
|
1156
1155
|
{ ...projectsFeature, icon: "projects", surfaceType: "list" },
|
|
1157
1156
|
{ ...leadGenFeature, id: "lead-gen", icon: "lead-gen", surfaceType: "list" },
|
|
1158
1157
|
{ ...crmFeature, id: "crm", icon: "crm", surfaceType: "graph" },
|
|
@@ -1181,4 +1180,4 @@ function createFoundationOrganizationModel(override) {
|
|
|
1181
1180
|
};
|
|
1182
1181
|
}
|
|
1183
1182
|
|
|
1184
|
-
export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, KeyResultSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID,
|
|
1183
|
+
export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, KeyResultSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, ObjectiveSchema, OfferingsDomainSchema, OperationEntrySchema, OperationSemanticClassSchema, OperationsDomainSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_VIEW_CAPABILITY_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PricingModelSchema, ProductSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SEO_FEATURE_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, TechStackEntrySchema, UiPositionSchema, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
|
|
@@ -326,8 +326,8 @@ declare const SETTINGS_FEATURE_ID: "settings";
|
|
|
326
326
|
declare const SEO_FEATURE_ID: "seo";
|
|
327
327
|
declare const SALES_PIPELINE_SURFACE_ID: "crm.pipeline";
|
|
328
328
|
declare const PROSPECTING_LISTS_SURFACE_ID: "lead-gen.lists";
|
|
329
|
-
declare const OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID: "operations.organization-graph";
|
|
330
329
|
declare const OPERATIONS_COMMAND_VIEW_SURFACE_ID: "operations.command-view";
|
|
330
|
+
declare const SETTINGS_ROLES_SURFACE_ID: "settings.roles";
|
|
331
331
|
|
|
332
332
|
declare const OrganizationModelBrandingSchema: z.ZodObject<{
|
|
333
333
|
organizationName: z.ZodString;
|
|
@@ -696,5 +696,5 @@ declare function createFoundationOrganizationModel(override: DeepPartial<Organiz
|
|
|
696
696
|
getOrganizationSurface: (surfaceId: string) => FoundationNavigationSurface | undefined;
|
|
697
697
|
};
|
|
698
698
|
|
|
699
|
-
export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, KeyResultSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID,
|
|
699
|
+
export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, KeyResultSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, ObjectiveSchema, OfferingsDomainSchema, OperationEntrySchema, OperationSemanticClassSchema, OperationsDomainSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_VIEW_CAPABILITY_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PricingModelSchema, ProductSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SEO_FEATURE_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, TechStackEntrySchema, UiPositionSchema, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
|
|
700
700
|
export type { DeepPartial, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, NodeIdPath, NodeIdString, OrganizationModel, OrganizationModelBranding, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelFeature, OrganizationModelGoals, OrganizationModelKeyResult, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelOperationEntry, OrganizationModelOperationSemanticClass, OrganizationModelOperations, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelProjects, OrganizationModelProspecting, OrganizationModelRole, OrganizationModelRoles, OrganizationModelSales, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelTechStackEntry };
|
|
@@ -248,8 +248,8 @@ var SETTINGS_FEATURE_ID = "settings";
|
|
|
248
248
|
var SEO_FEATURE_ID = "seo";
|
|
249
249
|
var SALES_PIPELINE_SURFACE_ID = "crm.pipeline";
|
|
250
250
|
var PROSPECTING_LISTS_SURFACE_ID = "lead-gen.lists";
|
|
251
|
-
var OPERATIONS_ORGANIZATION_GRAPH_SURFACE_ID = "operations.organization-graph";
|
|
252
251
|
var OPERATIONS_COMMAND_VIEW_SURFACE_ID = "operations.command-view";
|
|
252
|
+
var SETTINGS_ROLES_SURFACE_ID = "settings.roles";
|
|
253
253
|
|
|
254
254
|
// src/organization-model/domains/navigation.ts
|
|
255
255
|
var SurfaceTypeSchema = z.enum(["page", "dashboard", "graph", "detail", "list", "settings"]);
|
|
@@ -891,12 +891,6 @@ var DEFAULT_ORGANIZATION_MODEL = {
|
|
|
891
891
|
icon: "operations",
|
|
892
892
|
uiPosition: "sidebar-primary"
|
|
893
893
|
},
|
|
894
|
-
{
|
|
895
|
-
id: "operations.graph",
|
|
896
|
-
label: "Organization Graph",
|
|
897
|
-
enabled: true,
|
|
898
|
-
path: "/operations/organization-graph"
|
|
899
|
-
},
|
|
900
894
|
{
|
|
901
895
|
id: "operations.command-view",
|
|
902
896
|
label: "Command View",
|
|
@@ -995,6 +989,12 @@ var DEFAULT_ORGANIZATION_MODEL = {
|
|
|
995
989
|
enabled: true,
|
|
996
990
|
path: "/settings/appearance"
|
|
997
991
|
},
|
|
992
|
+
{
|
|
993
|
+
id: "settings.roles",
|
|
994
|
+
label: "My Roles",
|
|
995
|
+
enabled: true,
|
|
996
|
+
path: "/settings/roles"
|
|
997
|
+
},
|
|
998
998
|
{
|
|
999
999
|
id: "settings.organization",
|
|
1000
1000
|
label: "Organization",
|
|
@@ -1146,13 +1146,12 @@ function createFoundationOrganizationModel(override) {
|
|
|
1146
1146
|
}
|
|
1147
1147
|
return feature;
|
|
1148
1148
|
}
|
|
1149
|
-
const
|
|
1149
|
+
const operationsFeature = requireCoreFeature("operations");
|
|
1150
1150
|
const projectsFeature = requireCoreFeature("projects");
|
|
1151
1151
|
const leadGenFeature = requireCoreFeature("sales.lead-gen");
|
|
1152
1152
|
const crmFeature = requireCoreFeature("sales.crm");
|
|
1153
1153
|
const navigationSurfaces = [
|
|
1154
|
-
{ ...
|
|
1155
|
-
{ ...operationsGraphFeature, path: "/operations", icon: "operations", surfaceType: "graph" },
|
|
1154
|
+
{ ...operationsFeature, id: "operations", path: "/operations", icon: "operations", surfaceType: "dashboard" },
|
|
1156
1155
|
{ ...projectsFeature, icon: "projects", surfaceType: "list" },
|
|
1157
1156
|
{ ...leadGenFeature, id: "lead-gen", icon: "lead-gen", surfaceType: "list" },
|
|
1158
1157
|
{ ...crmFeature, id: "crm", icon: "crm", surfaceType: "graph" },
|
|
@@ -1181,4 +1180,4 @@ function createFoundationOrganizationModel(override) {
|
|
|
1181
1180
|
};
|
|
1182
1181
|
}
|
|
1183
1182
|
|
|
1184
|
-
export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, KeyResultSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID,
|
|
1183
|
+
export { CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_OPERATIONS, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, FeatureSchema, FirmographicsSchema, GoalsDomainSchema, KeyResultSchema, LinkSchema, MONITORING_FEATURE_ID, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, ObjectiveSchema, OfferingsDomainSchema, OperationEntrySchema, OperationSemanticClassSchema, OperationsDomainSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_VIEW_CAPABILITY_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PricingModelSchema, ProductSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SEO_FEATURE_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, TechStackEntrySchema, UiPositionSchema, createFoundationOrganizationModel, defineOrganizationModel, resolveOrganizationModel };
|
|
@@ -2623,7 +2623,8 @@ type Database = {
|
|
|
2623
2623
|
created_at: string;
|
|
2624
2624
|
description: string | null;
|
|
2625
2625
|
id: string;
|
|
2626
|
-
|
|
2626
|
+
key_hash: string;
|
|
2627
|
+
key_prefix: string | null;
|
|
2627
2628
|
last_triggered_at: string | null;
|
|
2628
2629
|
name: string;
|
|
2629
2630
|
organization_id: string;
|
|
@@ -2636,7 +2637,8 @@ type Database = {
|
|
|
2636
2637
|
created_at?: string;
|
|
2637
2638
|
description?: string | null;
|
|
2638
2639
|
id?: string;
|
|
2639
|
-
|
|
2640
|
+
key_hash: string;
|
|
2641
|
+
key_prefix?: string | null;
|
|
2640
2642
|
last_triggered_at?: string | null;
|
|
2641
2643
|
name: string;
|
|
2642
2644
|
organization_id: string;
|
|
@@ -2649,7 +2651,8 @@ type Database = {
|
|
|
2649
2651
|
created_at?: string;
|
|
2650
2652
|
description?: string | null;
|
|
2651
2653
|
id?: string;
|
|
2652
|
-
|
|
2654
|
+
key_hash?: string;
|
|
2655
|
+
key_prefix?: string | null;
|
|
2653
2656
|
last_triggered_at?: string | null;
|
|
2654
2657
|
name?: string;
|
|
2655
2658
|
organization_id?: string;
|
|
@@ -2731,6 +2734,10 @@ type Database = {
|
|
|
2731
2734
|
user_id: string;
|
|
2732
2735
|
}[];
|
|
2733
2736
|
};
|
|
2737
|
+
get_platform_credential_kek: {
|
|
2738
|
+
Args: never;
|
|
2739
|
+
Returns: string;
|
|
2740
|
+
};
|
|
2734
2741
|
get_storage_org_id: {
|
|
2735
2742
|
Args: {
|
|
2736
2743
|
file_path: string;
|
package/dist/test-utils/index.js
CHANGED
|
@@ -20220,12 +20220,6 @@ var DEFAULT_ORGANIZATION_MODEL = {
|
|
|
20220
20220
|
icon: "operations",
|
|
20221
20221
|
uiPosition: "sidebar-primary"
|
|
20222
20222
|
},
|
|
20223
|
-
{
|
|
20224
|
-
id: "operations.graph",
|
|
20225
|
-
label: "Organization Graph",
|
|
20226
|
-
enabled: true,
|
|
20227
|
-
path: "/operations/organization-graph"
|
|
20228
|
-
},
|
|
20229
20223
|
{
|
|
20230
20224
|
id: "operations.command-view",
|
|
20231
20225
|
label: "Command View",
|
|
@@ -20324,6 +20318,12 @@ var DEFAULT_ORGANIZATION_MODEL = {
|
|
|
20324
20318
|
enabled: true,
|
|
20325
20319
|
path: "/settings/appearance"
|
|
20326
20320
|
},
|
|
20321
|
+
{
|
|
20322
|
+
id: "settings.roles",
|
|
20323
|
+
label: "My Roles",
|
|
20324
|
+
enabled: true,
|
|
20325
|
+
path: "/settings/roles"
|
|
20326
|
+
},
|
|
20327
20327
|
{
|
|
20328
20328
|
id: "settings.organization",
|
|
20329
20329
|
label: "Organization",
|
package/package.json
CHANGED
|
@@ -12,28 +12,21 @@ describe('template core compatibility', () => {
|
|
|
12
12
|
expect(foundationOrganizationModel.navigation.homeLabel).toBe(homeLabel)
|
|
13
13
|
expect(foundationOrganizationModel.navigation.quickAccessSurfaceIds).toEqual(quickAccessSurfaceIds)
|
|
14
14
|
expect(foundationOrganizationModel.version).toBe(1)
|
|
15
|
-
expect(foundationOrganizationModel.navigation.defaultSurfaceId).toBe('operations')
|
|
15
|
+
expect(foundationOrganizationModel.navigation.defaultSurfaceId).toBe('operations')
|
|
16
16
|
expect(getOrganizationSurface('operations')).toMatchObject({
|
|
17
17
|
id: 'operations',
|
|
18
|
-
label: '
|
|
18
|
+
label: 'Operations',
|
|
19
19
|
path: '/operations',
|
|
20
|
-
surfaceType: '
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
expect(getOrganizationSurface('operations.graph')).toMatchObject({
|
|
24
|
-
id: 'operations.graph',
|
|
25
|
-
label: 'Organization Graph',
|
|
26
|
-
path: '/operations',
|
|
27
|
-
surfaceType: 'graph'
|
|
20
|
+
surfaceType: 'dashboard'
|
|
28
21
|
})
|
|
29
22
|
})
|
|
30
23
|
|
|
31
24
|
it('projects legacy template aliases with canonical navigation metadata', () => {
|
|
32
25
|
const legacySurfaces = [
|
|
33
|
-
{
|
|
26
|
+
{
|
|
34
27
|
id: 'operations',
|
|
35
|
-
label: '
|
|
36
|
-
surfaceType: '
|
|
28
|
+
label: 'Operations',
|
|
29
|
+
surfaceType: 'dashboard',
|
|
37
30
|
expectedIcon: 'operations',
|
|
38
31
|
expectedPath: '/operations',
|
|
39
32
|
},
|
|
@@ -60,8 +53,6 @@ describe('template core compatibility', () => {
|
|
|
60
53
|
}
|
|
61
54
|
] as const
|
|
62
55
|
|
|
63
|
-
expect(getOrganizationSurface('operations.graph')).toBeDefined()
|
|
64
|
-
|
|
65
56
|
for (const surface of legacySurfaces) {
|
|
66
57
|
expect(getOrganizationSurface(surface.id)).toMatchObject({
|
|
67
58
|
id: surface.id,
|