eric-sdk 0.1.4 → 0.1.6
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 +109 -83
- package/README.md +126 -125
- package/dist/index.cjs +2 -104
- package/dist/index.d.cts +1 -173
- package/dist/index.d.ts +1 -173
- package/dist/index.js +1 -83
- package/package.json +9 -2
- package/src/client.ts +67 -67
- package/src/index.ts +1 -3
- package/tsconfig.json +13 -13
- package/src/flows/helper.ts +0 -110
- package/src/types/flow.ts +0 -139
package/src/flows/helper.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ShortTextSummary,
|
|
3
|
-
QuestionAnswerSummary,
|
|
4
|
-
DailyNudge,
|
|
5
|
-
SessionRecommendation,
|
|
6
|
-
AICoachFeedback,
|
|
7
|
-
WellnessProgress,
|
|
8
|
-
TrendInsight,
|
|
9
|
-
EventSummaryDigest,
|
|
10
|
-
SpeakerPerformance,
|
|
11
|
-
NetworkingMatches,
|
|
12
|
-
AttendeeEngagement,
|
|
13
|
-
EventPulse,
|
|
14
|
-
SessionRecap,
|
|
15
|
-
SponsorValueSummary,
|
|
16
|
-
AnnouncementRewrite,
|
|
17
|
-
LeadershipInsight,
|
|
18
|
-
FeedbackInsight,
|
|
19
|
-
PerformanceReview,
|
|
20
|
-
TeamDynamics,
|
|
21
|
-
ProductivityInsight
|
|
22
|
-
} from "../types/flow";
|
|
23
|
-
|
|
24
|
-
// COMMON ---------------------------------------------------
|
|
25
|
-
|
|
26
|
-
export function isSummary(result: any): result is { data: ShortTextSummary } {
|
|
27
|
-
return result.flow === "shortTextSummary";
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function isQA(result: any): result is { data: QuestionAnswerSummary } {
|
|
31
|
-
return result.flow === "questionAnswerHelper";
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export function isNudge(result: any): result is { data: DailyNudge } {
|
|
35
|
-
return result.flow === "dailyNudgeGenerator";
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// WELLNESS --------------------------------------------------
|
|
39
|
-
|
|
40
|
-
export function isRecommendation(result: any): result is { data: SessionRecommendation } {
|
|
41
|
-
return result.flow === "personalizedSessionRecommender";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function isAICoachFeedback(result: any): result is { data: AICoachFeedback } {
|
|
45
|
-
return result.flow === "aiCoachFeedback";
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function isWellnessProgress(result: any): result is { data: WellnessProgress } {
|
|
49
|
-
return result.flow === "wellnessProgressReporter";
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function isTrendInsight(result: any): result is { data: TrendInsight } {
|
|
53
|
-
return result.flow === "trendInsightReporter";
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// EVENTS ----------------------------------------------------
|
|
57
|
-
|
|
58
|
-
export function isEventSummary(result: any): result is { data: EventSummaryDigest } {
|
|
59
|
-
return result.flow === "eventSummaryDigest";
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function isSpeakerPerformance(result: any): result is { data: SpeakerPerformance } {
|
|
63
|
-
return result.flow === "speakerPerformanceAnalyzer";
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function isNetworkingMatches(result: any): result is { data: NetworkingMatches } {
|
|
67
|
-
return result.flow === "networkingMatchmaker";
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function isAttendeeEngagement(result: any): result is { data: AttendeeEngagement } {
|
|
71
|
-
return result.flow === "attendeeEngagementReporter";
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function isEventPulse(result: any): result is { data: EventPulse } {
|
|
75
|
-
return result.flow === "eventPulseReport";
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function isSessionRecap(result: any): result is { data: SessionRecap } {
|
|
79
|
-
return result.flow === "sessionRecapGenerator";
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function isSponsorSummary(result: any): result is { data: SponsorValueSummary } {
|
|
83
|
-
return result.flow === "sponsorValueSummary";
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function isAnnouncementRewrite(result: any): result is { data: AnnouncementRewrite } {
|
|
87
|
-
return result.flow === "announcementRewriter";
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// BUSINESS --------------------------------------------------
|
|
91
|
-
|
|
92
|
-
export function isLeadershipInsight(result: any): result is { data: LeadershipInsight } {
|
|
93
|
-
return result.flow === "leadershipInsight";
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function isFeedbackInsight(result: any): result is { data: FeedbackInsight } {
|
|
97
|
-
return result.flow === "feedbackInsightAnalyzer";
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function isProductivityInsight(result: any): result is { data: ProductivityInsight } {
|
|
101
|
-
return result.flow === "productivityCoach";
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function isTeamDynamics(result: any): result is { data: TeamDynamics } {
|
|
105
|
-
return result.flow === "teamDynamicsAnalyzer";
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function isPerformanceReview(result: any): result is { data: PerformanceReview } {
|
|
109
|
-
return result.flow === "performanceReviewAssistant";
|
|
110
|
-
}
|
package/src/types/flow.ts
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
// COMMON --------------------------------------------------
|
|
2
|
-
|
|
3
|
-
export interface ShortTextSummary {
|
|
4
|
-
summary: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface QAItem {
|
|
8
|
-
question: string;
|
|
9
|
-
answer: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface QuestionAnswerSummary {
|
|
13
|
-
summary: string;
|
|
14
|
-
questions: QAItem[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface DailyNudge {
|
|
18
|
-
nudge: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// WELLNESS --------------------------------------------------
|
|
22
|
-
|
|
23
|
-
export interface RecommendationItem {
|
|
24
|
-
id: string;
|
|
25
|
-
title: string;
|
|
26
|
-
reason: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface SessionRecommendation {
|
|
30
|
-
recommendations: RecommendationItem[];
|
|
31
|
-
rationale: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface AICoachFeedback {
|
|
35
|
-
summary: string;
|
|
36
|
-
encouragement: string;
|
|
37
|
-
suggestedNextFocus: string;
|
|
38
|
-
tone: string;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface WellnessProgress {
|
|
42
|
-
summary: string;
|
|
43
|
-
encouragement: string;
|
|
44
|
-
tone: string;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface TrendInsight {
|
|
48
|
-
trendSummary: string;
|
|
49
|
-
emotionalPattern: string;
|
|
50
|
-
recommendation: string;
|
|
51
|
-
tone: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// EVENTS ----------------------------------------------------
|
|
55
|
-
|
|
56
|
-
export interface EventSummaryDigest {
|
|
57
|
-
summary: string;
|
|
58
|
-
highlights: string[];
|
|
59
|
-
tone: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface SpeakerPerformance {
|
|
63
|
-
overview: string;
|
|
64
|
-
strengths: string[];
|
|
65
|
-
areasForImprovement: string[];
|
|
66
|
-
tone: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface NetworkingMatches {
|
|
70
|
-
matches: string[];
|
|
71
|
-
rationale: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface AttendeeEngagement {
|
|
75
|
-
overview: string;
|
|
76
|
-
topSessions: string[];
|
|
77
|
-
recommendations: string[];
|
|
78
|
-
tone: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface EventPulse {
|
|
82
|
-
trendSummary: string;
|
|
83
|
-
sentimentOverview: string;
|
|
84
|
-
engagementInsights: string;
|
|
85
|
-
recommendation: string;
|
|
86
|
-
tone: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface SessionRecap {
|
|
90
|
-
recap: string;
|
|
91
|
-
takeaways: string[];
|
|
92
|
-
tone: string;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export interface SponsorValueSummary {
|
|
96
|
-
overview: string;
|
|
97
|
-
highlights: string[];
|
|
98
|
-
tone: string;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface AnnouncementRewrite {
|
|
102
|
-
rewritten: string;
|
|
103
|
-
toneUsed: string;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// BUSINESS --------------------------------------------------
|
|
107
|
-
|
|
108
|
-
export interface LeadershipInsight {
|
|
109
|
-
insight: string;
|
|
110
|
-
rootCause: string;
|
|
111
|
-
practicalSteps: string[];
|
|
112
|
-
tone: string;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export interface FeedbackInsight {
|
|
116
|
-
sentiment: string;
|
|
117
|
-
summary: string;
|
|
118
|
-
highlights: string[];
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface PerformanceReview {
|
|
122
|
-
summaryParagraph: string;
|
|
123
|
-
strengthsSection: string[];
|
|
124
|
-
growthSection: string[];
|
|
125
|
-
tone: string;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface TeamDynamics {
|
|
129
|
-
diagnosis: string;
|
|
130
|
-
risks: string[];
|
|
131
|
-
suggestedMoves: string[];
|
|
132
|
-
tone: string;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface ProductivityInsight {
|
|
136
|
-
insight: string;
|
|
137
|
-
suggestions: string[];
|
|
138
|
-
tone: string;
|
|
139
|
-
}
|