sdk-kit 0.1.0 → 0.1.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.
@@ -1,103 +0,0 @@
1
-
2
- /**
3
- * Survey identification modes.
4
- *
5
- * anonymous:
6
- * Visitors who have not logged in.
7
- *
8
- * operational:
9
- * Visitors who have logged in.
10
- */
11
- export type SurveyMode =
12
- | "anonymous"
13
- | "operational";
14
-
15
- /**
16
- * Survey status.
17
- */
18
- export type SurveyStatus =
19
- | "active"
20
- | "inactive"
21
- | "draft";
22
-
23
- /**
24
- * Question types supported by the SDK.
25
- */
26
- export type QuestionType =
27
- | "text"
28
- | "rating"
29
- | "multiple-choice"
30
- | "single-choice"
31
- | "yes-no";
32
-
33
- /**
34
- * Visitor identity.
35
- */
36
- export interface SurveyIdentity {
37
- type: "anonymous" | "authenticated";
38
- id: string;
39
- }
40
-
41
- /**
42
- * Application user information.
43
- */
44
- export interface SurveyUser {
45
- id: string;
46
- isAuthenticated: boolean;
47
- }
48
-
49
- /**
50
- * Survey question.
51
- */
52
- export interface SurveyQuestion {
53
- id: string;
54
- title: string;
55
- type: QuestionType;
56
- required: boolean;
57
- options?: string[];
58
- }
59
-
60
- /**
61
- * Survey definition.
62
- */
63
- export interface Survey {
64
- id: string;
65
- title: string;
66
- description?: string;
67
-
68
- mode: SurveyMode;
69
- status: SurveyStatus;
70
-
71
- questions: SurveyQuestion[];
72
-
73
- createdAt: string;
74
- }
75
-
76
- /**
77
- * Survey execution record.
78
- *
79
- * This records when a survey was first displayed.
80
- */
81
- export interface SurveyExecution {
82
- surveyId: string;
83
-
84
- identityType: SurveyIdentity["type"];
85
- identityId: string;
86
-
87
- shownAt: string;
88
- }
89
-
90
- /**
91
- * Survey response.
92
- */
93
- export interface SurveyResponse {
94
- id: string;
95
- surveyId: string;
96
-
97
- identityType: SurveyIdentity["type"];
98
- identityId: string;
99
-
100
- answers: Record<string, string | string[]>;
101
-
102
- submittedAt: string;
103
- }
package/vite.config.js DELETED
@@ -1,11 +0,0 @@
1
- import react from '@vitejs/plugin-react'
2
- import { defineConfig } from 'vite'
3
-
4
- // https://vite.dev/config/
5
- export default defineConfig({
6
- devtools: {
7
- // Remove this `apply` property to enable devtools for build as well
8
- apply: 'serve',
9
- },
10
- plugins: [react()],
11
- })