react-semaphor 0.1.387 → 0.1.388
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 -1359
- package/dist/types/analytics-protocol.d.ts +121 -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,118 @@ 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
|
+
visual?: string;
|
|
1036
|
+
visualSpec?: Record<string, unknown>;
|
|
1037
|
+
queryKind?: string;
|
|
1038
|
+
sdkBuilder?: string;
|
|
1039
|
+
sdkSpec?: SemaphorDataAppCodegenSdkSpec;
|
|
1040
|
+
fields?: SemaphorDataAppCodegenFieldRef[];
|
|
1041
|
+
computation?: Record<string, unknown>;
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
export declare type SemaphorDataAppFilterContract = {
|
|
1045
|
+
inputId: string;
|
|
1046
|
+
label?: string;
|
|
1047
|
+
type?: string;
|
|
1048
|
+
serverSide?: boolean;
|
|
1049
|
+
fieldRef?: SemaphorDataAppCodegenFieldRef;
|
|
1050
|
+
optionQuery?: SemaphorDataAppCodegenInputOptionQuery;
|
|
1051
|
+
bindings: SemaphorDataAppFilterContractBinding[];
|
|
1052
|
+
appliesToViewIds: string[];
|
|
1053
|
+
notAppliedToViewIds: string[];
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
export declare type SemaphorDataAppFilterContractBinding = {
|
|
1057
|
+
viewId: string;
|
|
1058
|
+
fieldRef: SemaphorDataAppCodegenFieldRef;
|
|
1059
|
+
relationshipHint?: SemaphorRelationshipHint;
|
|
1060
|
+
relationshipsUsed?: Array<Record<string, unknown>>;
|
|
1061
|
+
};
|
|
1062
|
+
|
|
1063
|
+
export declare type SemaphorDataAppImplementationChecklist = {
|
|
1064
|
+
schemaVersion?: string;
|
|
1065
|
+
requiredDevtools: {
|
|
1066
|
+
mountRootDevtools: boolean;
|
|
1067
|
+
providerDebugBridge?: string;
|
|
1068
|
+
panelPosition?: string;
|
|
1069
|
+
forbidden?: string[];
|
|
1070
|
+
};
|
|
1071
|
+
requiredInputOptions: Array<Record<string, unknown>>;
|
|
1072
|
+
filterScopeByInput: Array<Record<string, unknown>>;
|
|
1073
|
+
bindingsByView: Record<string, Array<Record<string, unknown>>>;
|
|
1074
|
+
validationCommands: string[];
|
|
1075
|
+
browserSmokeChecks: string[];
|
|
1076
|
+
};
|
|
1077
|
+
|
|
962
1078
|
export declare type SemaphorDerivedFieldAggregationBehavior = 'additive' | 'non_additive' | 'ratio_of_sums' | 'weighted' | 'pre_aggregated' | 'snapshot';
|
|
963
1079
|
|
|
964
1080
|
export declare type SemaphorDerivedFieldAggregationStrategy = 'default' | 'symmetric_aggregate' | 'aggregate_then_join' | 'weighted';
|
|
@@ -1639,6 +1755,11 @@ export declare function validateSemaphorAnalyticsRecoveryPlan(plan: SemaphorAnal
|
|
|
1639
1755
|
|
|
1640
1756
|
export declare function validateSemaphorDashboardIntent(intent: SemaphorDashboardIntent): SemaphorValidationResult;
|
|
1641
1757
|
|
|
1758
|
+
export declare function validateSemaphorDataAppCodegenSummary(value: unknown): {
|
|
1759
|
+
ok: boolean;
|
|
1760
|
+
issues: string[];
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1642
1763
|
export declare function validateSemaphorDerivedFieldDefinition(definition: SemaphorDerivedFieldDefinition): SemaphorValidationResult;
|
|
1643
1764
|
|
|
1644
1765
|
export declare function validateSemaphorOperationIntent(intent: SemaphorOperationIntent): SemaphorAnalyticsValidationResult;
|