react-semaphor 0.1.387 → 0.1.389
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/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +260 -99
- package/dist/data-app-sdk/index.cjs +39 -5
- package/dist/data-app-sdk/index.js +1570 -1358
- package/dist/types/analytics-protocol.d.ts +125 -0
- package/package.json +1 -1
|
@@ -80,6 +80,8 @@ export declare function isAnalyticsTechnicalIdentifierField(field: AnalyticsCata
|
|
|
80
80
|
|
|
81
81
|
export declare function isSemaphorAnalyzeResultFieldName(value: string): value is SemaphorAnalyzeResultFieldName;
|
|
82
82
|
|
|
83
|
+
export declare function isSemaphorDataAppCodegenSummary(value: unknown): value is SemaphorDataAppCodegenSummary;
|
|
84
|
+
|
|
83
85
|
export declare type MatrixAxisLevelDescriptor = {
|
|
84
86
|
instanceId: string;
|
|
85
87
|
fieldKey: string;
|
|
@@ -668,6 +670,8 @@ export declare const SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT: {
|
|
|
668
670
|
readonly omitted: "stringArray";
|
|
669
671
|
};
|
|
670
672
|
|
|
673
|
+
export declare const SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION: "semaphor-data-app-codegen-summary/v1";
|
|
674
|
+
|
|
671
675
|
export declare type SemaphorAbsoluteTimeWindow = {
|
|
672
676
|
kind: 'absolute';
|
|
673
677
|
start: string;
|
|
@@ -959,6 +963,122 @@ export declare type SemaphorDashboardViewIntent = {
|
|
|
959
963
|
text?: string;
|
|
960
964
|
};
|
|
961
965
|
|
|
966
|
+
export declare type SemaphorDataAppCodegenFieldRef = SemaphorFieldRef & {
|
|
967
|
+
sourceKey?: string;
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
export declare type SemaphorDataAppCodegenInput = {
|
|
971
|
+
id: string;
|
|
972
|
+
label?: string;
|
|
973
|
+
type?: string;
|
|
974
|
+
serverSide?: boolean;
|
|
975
|
+
fieldRef?: SemaphorDataAppCodegenFieldRef;
|
|
976
|
+
optionQuery?: SemaphorDataAppCodegenInputOptionQuery;
|
|
977
|
+
bindings?: SemaphorDataAppCodegenInputBinding[];
|
|
978
|
+
appliesToViewIds: string[];
|
|
979
|
+
relationshipHint?: SemaphorRelationshipHint;
|
|
980
|
+
relationshipsUsed?: Array<Record<string, unknown>>;
|
|
981
|
+
};
|
|
982
|
+
|
|
983
|
+
export declare type SemaphorDataAppCodegenInputBinding = {
|
|
984
|
+
appliesToViewIds: string[];
|
|
985
|
+
fieldRef: SemaphorDataAppCodegenFieldRef;
|
|
986
|
+
relationshipHint?: SemaphorRelationshipHint;
|
|
987
|
+
relationshipsUsed?: Array<Record<string, unknown>>;
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
export declare type SemaphorDataAppCodegenInputOptionQuery = {
|
|
991
|
+
id?: string;
|
|
992
|
+
builder?: string;
|
|
993
|
+
source?: SemaphorSourceRef | Record<string, unknown>;
|
|
994
|
+
sourceKey?: string;
|
|
995
|
+
valueFieldRef?: SemaphorDataAppCodegenFieldRef;
|
|
996
|
+
labelFieldRef?: SemaphorDataAppCodegenFieldRef;
|
|
997
|
+
filterFieldRef?: SemaphorDataAppCodegenFieldRef;
|
|
998
|
+
population?: Record<string, unknown>;
|
|
999
|
+
dependencies?: Record<string, unknown>;
|
|
1000
|
+
limit?: number;
|
|
1001
|
+
spec?: Record<string, unknown>;
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
export declare type SemaphorDataAppCodegenSdkSpec = {
|
|
1005
|
+
builder: string;
|
|
1006
|
+
spec: Record<string, unknown>;
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
export declare type SemaphorDataAppCodegenSummary = {
|
|
1010
|
+
schemaVersion: SemaphorDataAppCodegenSummarySchemaVersion;
|
|
1011
|
+
title: string;
|
|
1012
|
+
purpose?: string;
|
|
1013
|
+
userGoal?: string;
|
|
1014
|
+
nextStep?: string;
|
|
1015
|
+
sources: Array<SemaphorSourceRef | Record<string, unknown>>;
|
|
1016
|
+
inputs: SemaphorDataAppCodegenInput[];
|
|
1017
|
+
views: SemaphorDataAppCodegenView[];
|
|
1018
|
+
filterContracts: SemaphorDataAppFilterContract[];
|
|
1019
|
+
implementationChecklist: SemaphorDataAppImplementationChecklist;
|
|
1020
|
+
nextRequiredTool?: {
|
|
1021
|
+
name: string;
|
|
1022
|
+
reason?: string;
|
|
1023
|
+
};
|
|
1024
|
+
unsupportedInsights?: Array<Record<string, unknown>>;
|
|
1025
|
+
assumptions?: string[];
|
|
1026
|
+
validation?: Record<string, unknown>;
|
|
1027
|
+
};
|
|
1028
|
+
|
|
1029
|
+
export declare type SemaphorDataAppCodegenSummarySchemaVersion = typeof SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION;
|
|
1030
|
+
|
|
1031
|
+
export declare type SemaphorDataAppCodegenView = {
|
|
1032
|
+
id: string;
|
|
1033
|
+
title?: string;
|
|
1034
|
+
purpose?: string;
|
|
1035
|
+
sourcePresentation?: {
|
|
1036
|
+
sourceKeys?: string[];
|
|
1037
|
+
sourceLabels?: string[];
|
|
1038
|
+
};
|
|
1039
|
+
visual?: string;
|
|
1040
|
+
visualSpec?: Record<string, unknown>;
|
|
1041
|
+
queryKind?: string;
|
|
1042
|
+
sdkBuilder?: string;
|
|
1043
|
+
sdkSpec?: SemaphorDataAppCodegenSdkSpec;
|
|
1044
|
+
fields?: SemaphorDataAppCodegenFieldRef[];
|
|
1045
|
+
computation?: Record<string, unknown>;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
export declare type SemaphorDataAppFilterContract = {
|
|
1049
|
+
inputId: string;
|
|
1050
|
+
label?: string;
|
|
1051
|
+
type?: string;
|
|
1052
|
+
serverSide?: boolean;
|
|
1053
|
+
fieldRef?: SemaphorDataAppCodegenFieldRef;
|
|
1054
|
+
optionQuery?: SemaphorDataAppCodegenInputOptionQuery;
|
|
1055
|
+
bindings: SemaphorDataAppFilterContractBinding[];
|
|
1056
|
+
appliesToViewIds: string[];
|
|
1057
|
+
notAppliedToViewIds: string[];
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1060
|
+
export declare type SemaphorDataAppFilterContractBinding = {
|
|
1061
|
+
viewId: string;
|
|
1062
|
+
fieldRef: SemaphorDataAppCodegenFieldRef;
|
|
1063
|
+
relationshipHint?: SemaphorRelationshipHint;
|
|
1064
|
+
relationshipsUsed?: Array<Record<string, unknown>>;
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
export declare type SemaphorDataAppImplementationChecklist = {
|
|
1068
|
+
schemaVersion?: string;
|
|
1069
|
+
requiredDevtools: {
|
|
1070
|
+
mountRootDevtools: boolean;
|
|
1071
|
+
providerDebugBridge?: string;
|
|
1072
|
+
panelPosition?: string;
|
|
1073
|
+
forbidden?: string[];
|
|
1074
|
+
};
|
|
1075
|
+
requiredInputOptions: Array<Record<string, unknown>>;
|
|
1076
|
+
filterScopeByInput: Array<Record<string, unknown>>;
|
|
1077
|
+
bindingsByView: Record<string, Array<Record<string, unknown>>>;
|
|
1078
|
+
validationCommands: string[];
|
|
1079
|
+
browserSmokeChecks: string[];
|
|
1080
|
+
};
|
|
1081
|
+
|
|
962
1082
|
export declare type SemaphorDerivedFieldAggregationBehavior = 'additive' | 'non_additive' | 'ratio_of_sums' | 'weighted' | 'pre_aggregated' | 'snapshot';
|
|
963
1083
|
|
|
964
1084
|
export declare type SemaphorDerivedFieldAggregationStrategy = 'default' | 'symmetric_aggregate' | 'aggregate_then_join' | 'weighted';
|
|
@@ -1639,6 +1759,11 @@ export declare function validateSemaphorAnalyticsRecoveryPlan(plan: SemaphorAnal
|
|
|
1639
1759
|
|
|
1640
1760
|
export declare function validateSemaphorDashboardIntent(intent: SemaphorDashboardIntent): SemaphorValidationResult;
|
|
1641
1761
|
|
|
1762
|
+
export declare function validateSemaphorDataAppCodegenSummary(value: unknown): {
|
|
1763
|
+
ok: boolean;
|
|
1764
|
+
issues: string[];
|
|
1765
|
+
};
|
|
1766
|
+
|
|
1642
1767
|
export declare function validateSemaphorDerivedFieldDefinition(definition: SemaphorDerivedFieldDefinition): SemaphorValidationResult;
|
|
1643
1768
|
|
|
1644
1769
|
export declare function validateSemaphorOperationIntent(intent: SemaphorOperationIntent): SemaphorAnalyticsValidationResult;
|