@memberjunction/skip-types 2.63.0 → 2.64.0
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/child-spec.d.ts +67 -0
- package/dist/child-spec.d.ts.map +1 -0
- package/dist/child-spec.js +3 -0
- package/dist/child-spec.js.map +1 -0
- package/dist/component-option.d.ts +32 -0
- package/dist/component-option.d.ts.map +1 -0
- package/dist/component-option.js +3 -0
- package/dist/component-option.js.map +1 -0
- package/dist/data-requirements.d.ts +111 -0
- package/dist/data-requirements.d.ts.map +1 -0
- package/dist/data-requirements.js +3 -0
- package/dist/data-requirements.js.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/response-types.d.ts +1 -1
- package/dist/response-types.d.ts.map +1 -1
- package/dist/root-spec.d.ts +87 -0
- package/dist/root-spec.d.ts.map +1 -0
- package/dist/root-spec.js +3 -0
- package/dist/root-spec.js.map +1 -0
- package/dist/runtime-types.d.ts +219 -0
- package/dist/runtime-types.d.ts.map +1 -0
- package/dist/runtime-types.js +3 -0
- package/dist/runtime-types.js.map +1 -0
- package/dist/util.d.ts +2 -1
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js.map +1 -1
- package/package.json +4 -3
- package/dist/component-types.d.ts +0 -505
- package/dist/component-types.d.ts.map +0 -1
- package/dist/component-types.js +0 -28
- package/dist/component-types.js.map +0 -1
- package/dist/types.d.ts +0 -33
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -50
- package/dist/types.js.map +0 -1
package/dist/util.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EntityFieldInfo, EntityFieldValueInfo, EntityInfo, EntityRelationshipInfo } from "@memberjunction/core";
|
|
2
2
|
import { SkipEntityFieldInfo, SkipEntityFieldValueInfo, SkipEntityInfo, SkipEntityRelationshipInfo } from "./entity-metadata-types";
|
|
3
|
-
import {
|
|
3
|
+
import { SkipComponentRootSpec } from "./root-spec";
|
|
4
|
+
import { SkipComponentChildSpec } from "./child-spec";
|
|
4
5
|
/**
|
|
5
6
|
* Maps a MemberJunction EntityInfo object to a SkipEntityInfo object for use in the Skip query system.
|
|
6
7
|
*
|
package/dist/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACjH,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACpI,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACjH,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACpI,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,UAAU,GAAG,cAAc,CAW3E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uCAAuC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,eAAe,GAAG,mBAAmB,CA+B9G;AAED;;;;;;;;;GASG;AACH,wBAAgB,iDAAiD,CAAC,EAAE,EAAE,oBAAoB,GAAG,wBAAwB,CAMpH;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,qDAAqD,CAAC,EAAE,EAAE,sBAAsB,GAAG,0BAA0B,CAgB5H;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,qBAAqB,GAAG,MAAM,CAWlF;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,sBAAsB,GAAG,MAAM,CAWjF"}
|
package/dist/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;GAQG;AACH,SAAgB,6BAA6B,CAAC,CAAa;IACvD,MAAM,EAAE,GAAmB;QACvB,EAAE,EAAE,CAAC,CAAC,EAAE;QACR,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,WAAW,EAAE,CAAC,CAAC,WAAW;QAC1B,UAAU,EAAE,CAAC,CAAC,UAAU;QACxB,QAAQ,EAAE,CAAC,CAAC,QAAQ;QACpB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,uCAAuC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxE,eAAe,EAAE,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,qDAAqD,CAAC,EAAE,CAAC,CAAC;KAC1G,CAAC;IACF,OAAO,EAAE,CAAC;AACd,CAAC;AAXD,sEAWC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,uCAAuC,CAAC,CAAa,EAAE,CAAkB;IACrF,MAAM,EAAE,GAAwB;QAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE;QACd,QAAQ,EAAE,CAAC,CAAC,QAAQ;QACpB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,WAAW,EAAE,CAAC,CAAC,WAAW;QAC1B,WAAW,EAAE,CAAC,CAAC,WAAW;QAC1B,IAAI,EAAE,CAAC,CAAC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,IAAI,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,mEAAmE;IACnE,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,EAAE,GAAG,wBAAwB,CAAC,CAAC;IAExD,+BAA+B;IAC/B,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/skip-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.64.0",
|
|
4
4
|
"description": "MemberJunction: Skip AI Assistant - Types that are used between the MJAPI and the Skip API as well as the UI within MemberJunction Explorer",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"typescript": "^5.4.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/core
|
|
23
|
-
"@memberjunction/
|
|
22
|
+
"@memberjunction/core": "2.64.0",
|
|
23
|
+
"@memberjunction/core-entities": "2.64.0",
|
|
24
|
+
"@memberjunction/data-context": "2.64.0"
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -1,505 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Component interface types for Skip API
|
|
3
|
-
*
|
|
4
|
-
* This file contains types that define the interface between Skip-generated components
|
|
5
|
-
* and their container applications. These types enable rich, interactive components that
|
|
6
|
-
* can communicate with the host MemberJunction environment. The types define:
|
|
7
|
-
*
|
|
8
|
-
* - Component callback interfaces for parent-child communication (SkipComponentCallbacks)
|
|
9
|
-
* - Component object interfaces that Skip components must implement (SkipComponentObject)
|
|
10
|
-
* - Initialization parameters and utility interfaces (SkipComponentInitParams, SkipComponentUtilities)
|
|
11
|
-
* - Styling and theming interfaces (SkipComponentStyles)
|
|
12
|
-
* - Simplified metadata and data access interfaces (SimpleMetadata, SimpleRunView, SimpleRunQuery)
|
|
13
|
-
*
|
|
14
|
-
* Components generated by Skip implement the SkipComponentObject interface and expose
|
|
15
|
-
* themselves globally on the window object, allowing container applications to initialize,
|
|
16
|
-
* refresh, and print them. The components can call back to the container through the provided
|
|
17
|
-
* callback functions to refresh data, open records, update user state, and send custom events.
|
|
18
|
-
*
|
|
19
|
-
* The utility interfaces provide Skip components with controlled access to the MemberJunction
|
|
20
|
-
* system for dynamic data access, metadata queries, and view execution without requiring
|
|
21
|
-
* full access to the underlying MJ APIs.
|
|
22
|
-
*
|
|
23
|
-
* @author MemberJunction
|
|
24
|
-
* @since 2.0.0
|
|
25
|
-
*/
|
|
26
|
-
import { CompositeKey } from "@memberjunction/core";
|
|
27
|
-
import { SimpleDataContext } from "./shared";
|
|
28
|
-
import { SimpleMetadata, SimpleRunQuery, SimpleRunView } from "./shared";
|
|
29
|
-
import { DataContext } from "@memberjunction/data-context";
|
|
30
|
-
/**
|
|
31
|
-
* This interface defines the available callback functions that a Skip component might call in the parent.
|
|
32
|
-
*/
|
|
33
|
-
export interface SkipComponentCallbacks {
|
|
34
|
-
/**
|
|
35
|
-
* The component can invoke this method in the callbacks object, when provided, to refresh the data context
|
|
36
|
-
* and that will in turn result in the component's init function being called again with the new data context.
|
|
37
|
-
* @returns
|
|
38
|
-
*/
|
|
39
|
-
RefreshData: () => void;
|
|
40
|
-
/**
|
|
41
|
-
* If an action occurs inside a component where it would be desirable for the containing UI to open a specific
|
|
42
|
-
* record, if supported, this event can be listened to and the container UI can then open the record.
|
|
43
|
-
* @param entityName - this is the Entity NAME from the Entity metadata, not the table name or base view name. Use Entity Metadata to provide the entity name here
|
|
44
|
-
* @param key - this is an array of key/value pairs representing the primary key. The format of a Composite Key is an array of KeyValuePair objects and KeyValuePair objects simply have FieldName and Value properties. In most cases entities have single-valued primary keys but this structure is here for complex entity types that have composite primary keys
|
|
45
|
-
* @returns
|
|
46
|
-
*/
|
|
47
|
-
OpenEntityRecord: (entityName: string, key: CompositeKey) => void;
|
|
48
|
-
/**
|
|
49
|
-
* This event should be raised by the HTML component whenever something changes within the component that should be tracked as a change in state
|
|
50
|
-
* that will persist. userState is any valid, simple JavaScript object, meaning it can have scalars, arrays, objects, etc, it must be an object that
|
|
51
|
-
* can be serialized to JSON, but otherwise has no special requirements. The parent component will be responsible for tracking the user-specific states
|
|
52
|
-
* and passing them back to the HTML component each time it is loaded or if the user changes via the init function.
|
|
53
|
-
* @param userState
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
|
-
UpdateUserState: (userState: any) => void;
|
|
57
|
-
/**
|
|
58
|
-
* Used for any other type of event notification that a component might want to send to the parent component.
|
|
59
|
-
* @param eventName
|
|
60
|
-
* @param eventData
|
|
61
|
-
* @returns
|
|
62
|
-
*/
|
|
63
|
-
NotifyEvent: (eventName: string, eventData: any) => void;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* This is the function signature for the initialization function provided by each Skip component via the SkipComponentObject so that a container can interact with it.
|
|
67
|
-
* This function is called when the component is loaded by its container. The function receives the data context, an optional userState property, and a set of callbacks that can be used to interact with the parent component.
|
|
68
|
-
* userState is an optional parameter that can be used to pass in any state information that the parent component wants to provide to the component that is specific
|
|
69
|
-
* to the CURRENT user. If the component modifies the userState, it should notify the parent component via the UserStateChanged event in the callbacks object so that the parent component can handle storage.
|
|
70
|
-
*/
|
|
71
|
-
export type SkipComponentInitFunction = (params: SkipComponentInitParams) => void;
|
|
72
|
-
/**
|
|
73
|
-
* This is the function signature for the print function that is provided by the component via the SkipComponentObject
|
|
74
|
-
*/
|
|
75
|
-
export type SkipComponentPrintFunction = () => void;
|
|
76
|
-
/**
|
|
77
|
-
* This is the function signature for the refresh function that is provided by the component via the SkipComponentObject
|
|
78
|
-
*/
|
|
79
|
-
export type SkipComponentRefreshFunction = () => void;
|
|
80
|
-
/**
|
|
81
|
-
* Parameters that are passed to the SkipComponentInitFunction when it is called by the parent component.
|
|
82
|
-
*/
|
|
83
|
-
export interface SkipComponentInitParams {
|
|
84
|
-
/**
|
|
85
|
-
* Contains the static data specified by the root component specification. This data is pre-loaded and passed to
|
|
86
|
-
* the component during initialization and anytime the component is refreshed.
|
|
87
|
-
*/
|
|
88
|
-
staticData: SimpleDataContext;
|
|
89
|
-
/**
|
|
90
|
-
* Contains the dynamic data utilities that the component can use to access MemberJunction data. This includes
|
|
91
|
-
* the metadata, run view, and run query utilities that the component can use to access data dynamically at runtime.
|
|
92
|
-
* The component can use these utilities to fetch data at runtime based on the user's interactions with the component.
|
|
93
|
-
*/
|
|
94
|
-
utilities?: SkipComponentUtilities;
|
|
95
|
-
/**
|
|
96
|
-
* Any valid serializable JavaScript object that represents the user-specific state for the component.
|
|
97
|
-
*/
|
|
98
|
-
userState?: any;
|
|
99
|
-
/**
|
|
100
|
-
* Callbacks that the component can use to interact with the parent component. These callbacks allow the component to refresh data, open records, update user state, and send custom events.
|
|
101
|
-
*/
|
|
102
|
-
callbacks?: SkipComponentCallbacks;
|
|
103
|
-
/**
|
|
104
|
-
* The default styles the component should use as specified by its parent (the container in the case of a root component, or a parent component in the case
|
|
105
|
-
* of a child component). The component can alter these styles based on the requirements specified by the user in its design documentation.
|
|
106
|
-
*/
|
|
107
|
-
styles?: SkipComponentStyles;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* This interface defines styles that can be applied to the component. The container can provide
|
|
111
|
-
* styles to the top level component. The top level component can alter these styles based on
|
|
112
|
-
* the prompting of the user, learned notes, etc, and adjust the styles of the component accordingly. In addition
|
|
113
|
-
* the top level component will pass in its computed styles to each sub-component so that the sub-components
|
|
114
|
-
* can do the same recursively down to any level of depth. This allows sub-components to inherit styles but
|
|
115
|
-
* also make adjustments as required based on functional needs and user input.
|
|
116
|
-
*/
|
|
117
|
-
export interface SkipComponentStyles {
|
|
118
|
-
colors: {
|
|
119
|
-
primary: string;
|
|
120
|
-
primaryHover: string;
|
|
121
|
-
primaryLight?: string;
|
|
122
|
-
secondary: string;
|
|
123
|
-
secondaryHover?: string;
|
|
124
|
-
success: string;
|
|
125
|
-
successLight?: string;
|
|
126
|
-
warning?: string;
|
|
127
|
-
warningLight?: string;
|
|
128
|
-
error?: string;
|
|
129
|
-
errorLight?: string;
|
|
130
|
-
info?: string;
|
|
131
|
-
infoLight?: string;
|
|
132
|
-
background: string;
|
|
133
|
-
surface: string;
|
|
134
|
-
surfaceHover?: string;
|
|
135
|
-
text: string;
|
|
136
|
-
textSecondary: string;
|
|
137
|
-
textTertiary?: string;
|
|
138
|
-
textInverse?: string;
|
|
139
|
-
border: string;
|
|
140
|
-
borderLight?: string;
|
|
141
|
-
borderFocus?: string;
|
|
142
|
-
shadow?: string;
|
|
143
|
-
shadowMedium?: string;
|
|
144
|
-
shadowLarge?: string;
|
|
145
|
-
[key: string]: string | undefined;
|
|
146
|
-
};
|
|
147
|
-
spacing: {
|
|
148
|
-
xs: string;
|
|
149
|
-
sm: string;
|
|
150
|
-
md: string;
|
|
151
|
-
lg: string;
|
|
152
|
-
xl: string;
|
|
153
|
-
xxl?: string;
|
|
154
|
-
xxxl?: string;
|
|
155
|
-
[key: string]: string | undefined;
|
|
156
|
-
};
|
|
157
|
-
typography: {
|
|
158
|
-
fontFamily: string;
|
|
159
|
-
fontSize: {
|
|
160
|
-
xs?: string;
|
|
161
|
-
sm: string;
|
|
162
|
-
md: string;
|
|
163
|
-
lg: string;
|
|
164
|
-
xl: string;
|
|
165
|
-
xxl?: string;
|
|
166
|
-
xxxl?: string;
|
|
167
|
-
[key: string]: string | undefined;
|
|
168
|
-
};
|
|
169
|
-
fontWeight?: {
|
|
170
|
-
light?: string;
|
|
171
|
-
regular?: string;
|
|
172
|
-
medium?: string;
|
|
173
|
-
semibold?: string;
|
|
174
|
-
bold?: string;
|
|
175
|
-
[key: string]: string | undefined;
|
|
176
|
-
};
|
|
177
|
-
lineHeight?: {
|
|
178
|
-
tight?: string;
|
|
179
|
-
normal?: string;
|
|
180
|
-
relaxed?: string;
|
|
181
|
-
[key: string]: string | undefined;
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
borders: {
|
|
185
|
-
radius: string | {
|
|
186
|
-
sm?: string;
|
|
187
|
-
md?: string;
|
|
188
|
-
lg?: string;
|
|
189
|
-
xl?: string;
|
|
190
|
-
full?: string;
|
|
191
|
-
[key: string]: string | undefined;
|
|
192
|
-
};
|
|
193
|
-
width: string | {
|
|
194
|
-
thin?: string;
|
|
195
|
-
medium?: string;
|
|
196
|
-
thick?: string;
|
|
197
|
-
[key: string]: string | undefined;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
shadows?: {
|
|
201
|
-
sm?: string;
|
|
202
|
-
md?: string;
|
|
203
|
-
lg?: string;
|
|
204
|
-
xl?: string;
|
|
205
|
-
inner?: string;
|
|
206
|
-
[key: string]: string | undefined;
|
|
207
|
-
};
|
|
208
|
-
transitions?: {
|
|
209
|
-
fast?: string;
|
|
210
|
-
normal?: string;
|
|
211
|
-
slow?: string;
|
|
212
|
-
[key: string]: string | undefined;
|
|
213
|
-
};
|
|
214
|
-
overflow: string;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* This is the interface that each Skip component will expose to the parent component and assign it a name globally on the window object so that the parent component can call it.
|
|
218
|
-
* The component will create this object and it will include the members defined in this interface.
|
|
219
|
-
*/
|
|
220
|
-
export interface SkipComponentObject {
|
|
221
|
-
/**
|
|
222
|
-
* The React component that Angular will render directly using ReactDOM.
|
|
223
|
-
* This component receives props including data, userState, callbacks, utilities, and styles.
|
|
224
|
-
*/
|
|
225
|
-
component: any;
|
|
226
|
-
/**
|
|
227
|
-
* The optional print function that is called when the user clicks on the print button in the parent of the component. This function will never be called by the parent before the init function so the print function
|
|
228
|
-
* can assume the component has been initialized;
|
|
229
|
-
*/
|
|
230
|
-
print?: SkipComponentPrintFunction;
|
|
231
|
-
/**
|
|
232
|
-
* The optional refresh function that is called when the user clicks on the refresh button in the parent of the component. This function will never be called by the parent before the init function so the refresh function
|
|
233
|
-
*/
|
|
234
|
-
refresh?: SkipComponentRefreshFunction;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* This interface defines the utilities that are available to the Skip component. These utilities are used to interact with the host MemberJunction system to
|
|
238
|
-
* retrieve metadata, run views, and run queries. The utilities are passed into the SkipComponentInitFunction by the container.
|
|
239
|
-
*/
|
|
240
|
-
export interface SkipComponentUtilities {
|
|
241
|
-
md: SimpleMetadata;
|
|
242
|
-
rv: SimpleRunView;
|
|
243
|
-
rq: SimpleRunQuery;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Defines a given option for a generated component that the user can choose. The code/componentObjectName properties are used to render the component in the UI.
|
|
247
|
-
*/
|
|
248
|
-
export type SkipComponentOption = {
|
|
249
|
-
/**
|
|
250
|
-
* Full details of the generated component option including functional, technical, code, and child componentry.
|
|
251
|
-
*/
|
|
252
|
-
option: SkipComponentRootSpec;
|
|
253
|
-
/**
|
|
254
|
-
* If multiple component options are provided for a given @interface SkipAPIAnalysisCompleteResponse, a "judge" AI will evaluate all the functional
|
|
255
|
-
* responses and will rank order them with an explanation of why they were each ranked that way. Rankings are not absolute, they are relative to the
|
|
256
|
-
* # of components contained within an array of SkipComponentOption types.
|
|
257
|
-
*/
|
|
258
|
-
AIRank: number | undefined;
|
|
259
|
-
/**
|
|
260
|
-
* The AI's explanation of why it ranked the component the way it did. This is useful for understanding the AI's reasoning and can be used to improve future components
|
|
261
|
-
* as well as provide context to the user about why a particular component was chosen as the best option.
|
|
262
|
-
*/
|
|
263
|
-
AIRankExplanation: string | undefined;
|
|
264
|
-
/**
|
|
265
|
-
* The user's provided feedback on the component option. Unlike the AIRank, this is a subjective rating provided by the user and is
|
|
266
|
-
* a number between 1 and 10, where 1 is the lowest rating and 10 is the highest rating.
|
|
267
|
-
*/
|
|
268
|
-
UserRank: number | undefined;
|
|
269
|
-
/**
|
|
270
|
-
* If the host application provides a way for the user to provide feedback on the component option,
|
|
271
|
-
* this is the explanation of why the user rated the component the way they did if they provided feedback.
|
|
272
|
-
*/
|
|
273
|
-
UserRankExplanation: string | undefined;
|
|
274
|
-
};
|
|
275
|
-
/**
|
|
276
|
-
* Defines the data requirements for a Skip component, supporting three different data access modes.
|
|
277
|
-
* This interface is critical for understanding how components interact with MemberJunction data
|
|
278
|
-
* and helps optimize performance by clearly defining data access patterns.
|
|
279
|
-
*
|
|
280
|
-
* @since 2.1.0 - Enhanced with comprehensive support for static, dynamic, and hybrid data modes
|
|
281
|
-
*/
|
|
282
|
-
export interface SkipComponentDataRequirements {
|
|
283
|
-
/**
|
|
284
|
-
* The primary data access mode for this component.
|
|
285
|
-
* - 'static': Data is pre-loaded and passed to the component during initialization
|
|
286
|
-
* - 'dynamic': Component fetches data at runtime using MJ utilities
|
|
287
|
-
* - 'hybrid': Component uses both static and dynamic data access patterns
|
|
288
|
-
*/
|
|
289
|
-
mode: 'static' | 'dynamic' | 'hybrid';
|
|
290
|
-
/**
|
|
291
|
-
* For static mode: References to data context items that this component uses.
|
|
292
|
-
* These are pre-loaded data snapshots that are passed to the component during initialization.
|
|
293
|
-
* Static mode is preferred for:
|
|
294
|
-
* - Reports with fixed datasets
|
|
295
|
-
* - Components where users don't need entity-level permissions
|
|
296
|
-
* - Scenarios requiring reduced database load
|
|
297
|
-
*/
|
|
298
|
-
staticData?: {
|
|
299
|
-
/**
|
|
300
|
-
* Reference to the data context that this component uses.
|
|
301
|
-
* Points to a DataContext object containing pre-loaded data.
|
|
302
|
-
*/
|
|
303
|
-
dataContext: DataContext;
|
|
304
|
-
/**
|
|
305
|
-
* Optional description of how the static data is used by the component
|
|
306
|
-
*/
|
|
307
|
-
description?: string;
|
|
308
|
-
};
|
|
309
|
-
/**
|
|
310
|
-
* For dynamic mode: Defines which MemberJunction entities this component needs access to.
|
|
311
|
-
* The component will use the RunView/RunQuery utilities to fetch data at runtime.
|
|
312
|
-
* Dynamic mode is preferred for:
|
|
313
|
-
* - Interactive dashboards with drill-down capabilities
|
|
314
|
-
* - Components requiring real-time data
|
|
315
|
-
* - Scenarios where users need entity-level permission validation
|
|
316
|
-
*/
|
|
317
|
-
dynamicData?: {
|
|
318
|
-
/**
|
|
319
|
-
* Array of entity names that this component needs to access dynamically.
|
|
320
|
-
* These should be valid MemberJunction entity names.
|
|
321
|
-
*/
|
|
322
|
-
requiredEntities: string[];
|
|
323
|
-
/**
|
|
324
|
-
* Optional description of the dynamic data access patterns
|
|
325
|
-
*/
|
|
326
|
-
description?: string;
|
|
327
|
-
};
|
|
328
|
-
/**
|
|
329
|
-
* For hybrid mode: Components can use both static and dynamic data access.
|
|
330
|
-
* Both staticData and dynamicData sections should be populated.
|
|
331
|
-
* Hybrid mode is useful for:
|
|
332
|
-
* - Components with both summary (static) and detail (dynamic) views
|
|
333
|
-
* - Optimizing performance while maintaining interactivity
|
|
334
|
-
*/
|
|
335
|
-
hybridStrategy?: {
|
|
336
|
-
/**
|
|
337
|
-
* Description of how the component decides when to use static vs dynamic data
|
|
338
|
-
*/
|
|
339
|
-
description: string;
|
|
340
|
-
/**
|
|
341
|
-
* Optional performance considerations for the hybrid approach
|
|
342
|
-
*/
|
|
343
|
-
performanceNotes?: string;
|
|
344
|
-
};
|
|
345
|
-
/**
|
|
346
|
-
* General description of the component's data requirements and access patterns.
|
|
347
|
-
* This should provide a high-level overview of the data strategy.
|
|
348
|
-
*/
|
|
349
|
-
description?: string;
|
|
350
|
-
/**
|
|
351
|
-
* Security considerations for data access
|
|
352
|
-
* @since 2.1.0
|
|
353
|
-
*/
|
|
354
|
-
securityNotes?: string;
|
|
355
|
-
}
|
|
356
|
-
/**
|
|
357
|
-
* Represents a complete specification for a generated Skip component, including its structure,
|
|
358
|
-
* requirements, code, and nested component hierarchy
|
|
359
|
-
*/
|
|
360
|
-
export type SkipComponentRootSpec = {
|
|
361
|
-
/**
|
|
362
|
-
* A description of what the component should do from a functional perspective.
|
|
363
|
-
* This should be in markdown format and include:
|
|
364
|
-
* - Core functionality and purpose
|
|
365
|
-
* - User interactions and behaviors
|
|
366
|
-
* - Business rules and logic
|
|
367
|
-
* - Expected outcomes and outputs
|
|
368
|
-
* - User experience considerations
|
|
369
|
-
* - Accessibility requirements
|
|
370
|
-
*
|
|
371
|
-
* @since 2.1.0 - Made required and enhanced documentation
|
|
372
|
-
*/
|
|
373
|
-
functionalRequirements: string;
|
|
374
|
-
/**
|
|
375
|
-
* Detailed data requirements specification for the component.
|
|
376
|
-
* Defines how the component accesses and uses data, supporting static, dynamic, and hybrid modes.
|
|
377
|
-
* This field is critical for determining how the component will interact with MemberJunction data.
|
|
378
|
-
*
|
|
379
|
-
* @since 2.1.0 - Made required for better data architecture planning
|
|
380
|
-
*/
|
|
381
|
-
dataRequirements?: SkipComponentDataRequirements;
|
|
382
|
-
/**
|
|
383
|
-
* A technical description of how the component is designed and implemented.
|
|
384
|
-
* This should be in markdown format and include:
|
|
385
|
-
* - Architecture and design patterns used
|
|
386
|
-
* - Key technical decisions and rationale
|
|
387
|
-
* - Component structure and organization
|
|
388
|
-
* - State management approach
|
|
389
|
-
* - Performance considerations
|
|
390
|
-
* - Integration points with parent/child components
|
|
391
|
-
* - Error handling strategies
|
|
392
|
-
*
|
|
393
|
-
* @since 2.1.0 - Made required and enhanced documentation
|
|
394
|
-
*/
|
|
395
|
-
technicalDesign: string;
|
|
396
|
-
/**
|
|
397
|
-
* The actual code for the main component, typically wrapped in an IIFE that returns
|
|
398
|
-
* the component object with component, print, and refresh properties
|
|
399
|
-
*/
|
|
400
|
-
componentCode: string;
|
|
401
|
-
/**
|
|
402
|
-
* The name of the main component
|
|
403
|
-
*/
|
|
404
|
-
componentName: string;
|
|
405
|
-
/**
|
|
406
|
-
* The type of component: report, dashboard, form, chart, table, or other. Over time this list
|
|
407
|
-
* might grow to include more types as Skip evolves and new component types are needed.
|
|
408
|
-
*/
|
|
409
|
-
componentType: "report" | "dashboard" | "form" | "other";
|
|
410
|
-
/**
|
|
411
|
-
* A summary of what the component does that a user would understand.
|
|
412
|
-
* This should be a high-level, user-friendly description suitable for end users.
|
|
413
|
-
*/
|
|
414
|
-
description: string;
|
|
415
|
-
/**
|
|
416
|
-
* The callback strategy used by this component (e.g., "hybrid", "direct", "none")
|
|
417
|
-
*/
|
|
418
|
-
callbackStrategy: string;
|
|
419
|
-
/**
|
|
420
|
-
* Describes the state structure managed by this component
|
|
421
|
-
*/
|
|
422
|
-
stateStructure: Record<string, string>;
|
|
423
|
-
/**
|
|
424
|
-
* An array of child component specifications
|
|
425
|
-
*/
|
|
426
|
-
childComponents: SkipComponentChildSpec[];
|
|
427
|
-
/**
|
|
428
|
-
* The title of the component
|
|
429
|
-
*/
|
|
430
|
-
title: string;
|
|
431
|
-
/**
|
|
432
|
-
* A user-friendly explanation of what the component does
|
|
433
|
-
*/
|
|
434
|
-
userExplanation: string;
|
|
435
|
-
/**
|
|
436
|
-
* A technical explanation of how the component works
|
|
437
|
-
*/
|
|
438
|
-
techExplanation: string;
|
|
439
|
-
};
|
|
440
|
-
/**
|
|
441
|
-
* Represents a child component within a component hierarchy
|
|
442
|
-
*/
|
|
443
|
-
export interface SkipComponentChildSpec {
|
|
444
|
-
/**
|
|
445
|
-
* The programmatic name of the component
|
|
446
|
-
*/
|
|
447
|
-
componentName: string;
|
|
448
|
-
/**
|
|
449
|
-
* Example of the component being used in JSX format. This is used to provide a clear example on the properties and
|
|
450
|
-
* event handling that the component supports. This is used to teach the next AI exactly what we want it to generate for the
|
|
451
|
-
* child component.
|
|
452
|
-
*/
|
|
453
|
-
exampleUsage: string;
|
|
454
|
-
/**
|
|
455
|
-
* The code for the child component. This is generated LATER by a separate process after the parent
|
|
456
|
-
* component generation is complete. When the parent component generates this is undefined.
|
|
457
|
-
*/
|
|
458
|
-
componentCode?: string;
|
|
459
|
-
/**
|
|
460
|
-
* A summary of what this child component does that a user would understand.
|
|
461
|
-
* This should be a high-level, user-friendly description suitable for end users.
|
|
462
|
-
*/
|
|
463
|
-
description: string;
|
|
464
|
-
/**
|
|
465
|
-
* Functional requirements for this child component.
|
|
466
|
-
* This should be in markdown format and describe what the component should do from a functional perspective.
|
|
467
|
-
* Includes:
|
|
468
|
-
* - Component-specific functionality
|
|
469
|
-
* - How it integrates with the parent component
|
|
470
|
-
* - User interactions within this component
|
|
471
|
-
* - Business rules specific to this component
|
|
472
|
-
*
|
|
473
|
-
* @since 2.1.0 - Enhanced documentation for clarity
|
|
474
|
-
*/
|
|
475
|
-
functionalRequirements?: string;
|
|
476
|
-
/**
|
|
477
|
-
* Data requirements for this child component.
|
|
478
|
-
* Child components inherit static data from their parent component's data context.
|
|
479
|
-
* However, they can define their own dynamic data requirements for entities they need to access at runtime.
|
|
480
|
-
*
|
|
481
|
-
* @since 2.1.0 - Enhanced documentation for clarity
|
|
482
|
-
*/
|
|
483
|
-
dataRequirements?: SkipComponentDataRequirements;
|
|
484
|
-
/**
|
|
485
|
-
* Technical design details for this child component.
|
|
486
|
-
* This should be in markdown format and describe the implementation approach.
|
|
487
|
-
* Includes:
|
|
488
|
-
* - How the component is structured
|
|
489
|
-
* - State management within the component
|
|
490
|
-
* - Props interface and event handlers
|
|
491
|
-
* - Performance optimizations specific to this component
|
|
492
|
-
*
|
|
493
|
-
* @since 2.1.0 - Enhanced documentation for clarity
|
|
494
|
-
*/
|
|
495
|
-
technicalDesign?: string;
|
|
496
|
-
/**
|
|
497
|
-
* The path in the state tree where this component's state is stored
|
|
498
|
-
*/
|
|
499
|
-
statePath: string;
|
|
500
|
-
/**
|
|
501
|
-
* An array of sub-components (recursive structure)
|
|
502
|
-
*/
|
|
503
|
-
components: SkipComponentChildSpec[];
|
|
504
|
-
}
|
|
505
|
-
//# sourceMappingURL=component-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../src/component-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CA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E,MAAM,CAAC;IAEd;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CAC3B,CAAC;AAGF;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;;;;;OAUG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IAEjD;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,sBAAsB,EAAE,CAAC;CACxC"}
|
package/dist/component-types.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview Component interface types for Skip API
|
|
4
|
-
*
|
|
5
|
-
* This file contains types that define the interface between Skip-generated components
|
|
6
|
-
* and their container applications. These types enable rich, interactive components that
|
|
7
|
-
* can communicate with the host MemberJunction environment. The types define:
|
|
8
|
-
*
|
|
9
|
-
* - Component callback interfaces for parent-child communication (SkipComponentCallbacks)
|
|
10
|
-
* - Component object interfaces that Skip components must implement (SkipComponentObject)
|
|
11
|
-
* - Initialization parameters and utility interfaces (SkipComponentInitParams, SkipComponentUtilities)
|
|
12
|
-
* - Styling and theming interfaces (SkipComponentStyles)
|
|
13
|
-
* - Simplified metadata and data access interfaces (SimpleMetadata, SimpleRunView, SimpleRunQuery)
|
|
14
|
-
*
|
|
15
|
-
* Components generated by Skip implement the SkipComponentObject interface and expose
|
|
16
|
-
* themselves globally on the window object, allowing container applications to initialize,
|
|
17
|
-
* refresh, and print them. The components can call back to the container through the provided
|
|
18
|
-
* callback functions to refresh data, open records, update user state, and send custom events.
|
|
19
|
-
*
|
|
20
|
-
* The utility interfaces provide Skip components with controlled access to the MemberJunction
|
|
21
|
-
* system for dynamic data access, metadata queries, and view execution without requiring
|
|
22
|
-
* full access to the underlying MJ APIs.
|
|
23
|
-
*
|
|
24
|
-
* @author MemberJunction
|
|
25
|
-
* @since 2.0.0
|
|
26
|
-
*/
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
//# sourceMappingURL=component-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-types.js","sourceRoot":"","sources":["../src/component-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Legacy types file - now re-exports from organized modules
|
|
3
|
-
*
|
|
4
|
-
* This file has been refactored to re-export types from more focused, smaller modules.
|
|
5
|
-
* The types are now organized across the following files:
|
|
6
|
-
*
|
|
7
|
-
* - api-types.ts: Core API request/response types
|
|
8
|
-
* - conversation-types.ts: Conversation and messaging types
|
|
9
|
-
* - response-types.ts: Specific response types
|
|
10
|
-
* - entity-metadata-types.ts: Entity and schema types
|
|
11
|
-
* - query-types.ts: Query-related types
|
|
12
|
-
* - agent-types.ts: AI agent and learning cycle types
|
|
13
|
-
* - artifact-types.ts: Artifact-related types
|
|
14
|
-
* - component-types.ts: Component-specific types
|
|
15
|
-
* - auth-types.ts: Authentication types
|
|
16
|
-
*
|
|
17
|
-
* This organization makes the codebase more maintainable while preserving
|
|
18
|
-
* backward compatibility for existing imports.
|
|
19
|
-
*
|
|
20
|
-
* @author MemberJunction
|
|
21
|
-
* @since 2.0.0
|
|
22
|
-
* @deprecated Import from specific module files instead for better tree-shaking
|
|
23
|
-
*/
|
|
24
|
-
export * from './api-types';
|
|
25
|
-
export * from './conversation-types';
|
|
26
|
-
export * from './response-types';
|
|
27
|
-
export * from './entity-metadata-types';
|
|
28
|
-
export * from './query-types';
|
|
29
|
-
export * from './agent-types';
|
|
30
|
-
export * from './artifact-types';
|
|
31
|
-
export * from './auth-types';
|
|
32
|
-
export * from './component-types';
|
|
33
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|