@knime/hub-features 1.29.2 → 1.29.3
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
CHANGED
package/package.json
CHANGED
|
@@ -1117,3 +1117,26 @@ export const nodeCreatedFloatingToolsAddByFile = <T extends DefaultContext>(ctx:
|
|
|
1117
1117
|
return event;
|
|
1118
1118
|
};
|
|
1119
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* Fired when the user submits feedback for a node
|
|
1122
|
+
*/
|
|
1123
|
+
export const nodeConfigFeedbackSubmitted = <T extends DefaultContext>(ctx: T) => (eventData: EventFunctionArgs<"nodeConfigFeedbackSubmitted">): AnalyticsEvent => {
|
|
1124
|
+
const staticData = {
|
|
1125
|
+
...toSnakeCaseDeep(ctx),
|
|
1126
|
+
unique_event_id: crypto.randomUUID(),
|
|
1127
|
+
timestamp: new Date().toISOString(),
|
|
1128
|
+
event_name: "node_feedback_submitted",
|
|
1129
|
+
event_source: "editor",
|
|
1130
|
+
event_display_name: "Node Feedback Submitted",
|
|
1131
|
+
interaction: {
|
|
1132
|
+
location: "node_configuration",
|
|
1133
|
+
trigger: "user",
|
|
1134
|
+
type: "click",
|
|
1135
|
+
},
|
|
1136
|
+
} satisfies SchemaStaticFields & GeneratedStaticFields;
|
|
1137
|
+
|
|
1138
|
+
const event = { id: staticData.event_name, data: { ...staticData, payload: { ...toSnakeCaseDeep(eventData as Record<string, any>) } } };
|
|
1139
|
+
|
|
1140
|
+
return event;
|
|
1141
|
+
};
|
|
1142
|
+
|
|
@@ -754,6 +754,17 @@ export interface AnalyticsEventSchema {
|
|
|
754
754
|
};
|
|
755
755
|
payload: NodeCreated_Base;
|
|
756
756
|
};
|
|
757
|
+
nodeConfigFeedbackSubmitted: {
|
|
758
|
+
event_name: "node_feedback_submitted";
|
|
759
|
+
event_source: "editor";
|
|
760
|
+
event_display_name: "Node Feedback Submitted";
|
|
761
|
+
interaction: {
|
|
762
|
+
location: "node_configuration";
|
|
763
|
+
trigger: InteractionTrigger & "user";
|
|
764
|
+
type: InteractionType & "click";
|
|
765
|
+
};
|
|
766
|
+
payload: NodeConfigFeedbackPayload;
|
|
767
|
+
};
|
|
757
768
|
};
|
|
758
769
|
}
|
|
759
770
|
export interface KaiPromptedPayload {
|
|
@@ -832,3 +843,8 @@ export interface DeploymentSharedPayload {
|
|
|
832
843
|
deploymentType: "dataApp" | "service";
|
|
833
844
|
sharingMethod: "invite" | "copy_link";
|
|
834
845
|
}
|
|
846
|
+
export interface NodeConfigFeedbackPayload {
|
|
847
|
+
nodeFactoryId: string;
|
|
848
|
+
rating: number;
|
|
849
|
+
message?: string;
|
|
850
|
+
}
|
|
@@ -79,7 +79,8 @@
|
|
|
79
79
|
"deploymentSharedWorkflowAccessPanel",
|
|
80
80
|
"deploymentSharedWorkflowSharingPopup",
|
|
81
81
|
"nodeCreatedCanvasDragDropFile",
|
|
82
|
-
"nodeCreatedFloatingToolsAddByFile"
|
|
82
|
+
"nodeCreatedFloatingToolsAddByFile",
|
|
83
|
+
"nodeConfigFeedbackSubmitted"
|
|
83
84
|
],
|
|
84
85
|
"properties": {
|
|
85
86
|
"kaiPromptedQA": {
|
|
@@ -4000,6 +4001,66 @@
|
|
|
4000
4001
|
"$ref": "#/definitions/NodeCreated_Base"
|
|
4001
4002
|
}
|
|
4002
4003
|
}
|
|
4004
|
+
},
|
|
4005
|
+
"nodeConfigFeedbackSubmitted": {
|
|
4006
|
+
"type": "object",
|
|
4007
|
+
"additionalProperties": false,
|
|
4008
|
+
"$comment": "Fired when the user submits feedback for a node",
|
|
4009
|
+
"required": [
|
|
4010
|
+
"event_name",
|
|
4011
|
+
"event_source",
|
|
4012
|
+
"event_display_name",
|
|
4013
|
+
"interaction",
|
|
4014
|
+
"payload"
|
|
4015
|
+
],
|
|
4016
|
+
"properties": {
|
|
4017
|
+
"event_name": {
|
|
4018
|
+
"type": "string",
|
|
4019
|
+
"const": "node_feedback_submitted"
|
|
4020
|
+
},
|
|
4021
|
+
"event_source": {
|
|
4022
|
+
"type": "string",
|
|
4023
|
+
"const": "editor"
|
|
4024
|
+
},
|
|
4025
|
+
"event_display_name": {
|
|
4026
|
+
"type": "string",
|
|
4027
|
+
"const": "Node Feedback Submitted"
|
|
4028
|
+
},
|
|
4029
|
+
"interaction": {
|
|
4030
|
+
"type": "object",
|
|
4031
|
+
"additionalProperties": false,
|
|
4032
|
+
"required": ["location", "trigger", "type"],
|
|
4033
|
+
"properties": {
|
|
4034
|
+
"location": {
|
|
4035
|
+
"type": "string",
|
|
4036
|
+
"const": "node_configuration"
|
|
4037
|
+
},
|
|
4038
|
+
"trigger": {
|
|
4039
|
+
"allOf": [
|
|
4040
|
+
{
|
|
4041
|
+
"$ref": "#/definitions/InteractionTrigger"
|
|
4042
|
+
},
|
|
4043
|
+
{
|
|
4044
|
+
"const": "user"
|
|
4045
|
+
}
|
|
4046
|
+
]
|
|
4047
|
+
},
|
|
4048
|
+
"type": {
|
|
4049
|
+
"allOf": [
|
|
4050
|
+
{
|
|
4051
|
+
"$ref": "#/definitions/InteractionType"
|
|
4052
|
+
},
|
|
4053
|
+
{
|
|
4054
|
+
"const": "click"
|
|
4055
|
+
}
|
|
4056
|
+
]
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4059
|
+
},
|
|
4060
|
+
"payload": {
|
|
4061
|
+
"$ref": "#/definitions/NodeConfigFeedbackPayload"
|
|
4062
|
+
}
|
|
4063
|
+
}
|
|
4003
4064
|
}
|
|
4004
4065
|
}
|
|
4005
4066
|
}
|
|
@@ -4336,6 +4397,24 @@
|
|
|
4336
4397
|
"enum": ["timedout", "user_closed"]
|
|
4337
4398
|
}
|
|
4338
4399
|
}
|
|
4400
|
+
},
|
|
4401
|
+
"NodeConfigFeedbackPayload": {
|
|
4402
|
+
"type": "object",
|
|
4403
|
+
"additionalProperties": false,
|
|
4404
|
+
"required": ["nodeFactoryId", "rating"],
|
|
4405
|
+
"properties": {
|
|
4406
|
+
"nodeFactoryId": {
|
|
4407
|
+
"type": "string"
|
|
4408
|
+
},
|
|
4409
|
+
"rating": {
|
|
4410
|
+
"type": "integer",
|
|
4411
|
+
"minimum": 1,
|
|
4412
|
+
"maximum": 5
|
|
4413
|
+
},
|
|
4414
|
+
"message": {
|
|
4415
|
+
"type": "string"
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4339
4418
|
}
|
|
4340
4419
|
}
|
|
4341
4420
|
}
|