@memberjunction/skip-types 2.70.0 → 2.72.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/index.d.ts +0 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +1 -1
- package/dist/response-types.d.ts +2 -3
- package/dist/response-types.d.ts.map +1 -1
- package/dist/response-types.js.map +1 -1
- package/dist/util.d.ts +0 -20
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +1 -54
- package/dist/util.js.map +1 -1
- package/package.json +4 -4
- package/dist/child-spec.d.ts +0 -72
- package/dist/child-spec.d.ts.map +0 -1
- package/dist/child-spec.js +0 -3
- package/dist/child-spec.js.map +0 -1
- package/dist/component-option.d.ts +0 -32
- package/dist/component-option.d.ts.map +0 -1
- package/dist/component-option.js +0 -3
- package/dist/component-option.js.map +0 -1
- package/dist/component-props-events.d.ts +0 -66
- package/dist/component-props-events.d.ts.map +0 -1
- package/dist/component-props-events.js +0 -3
- package/dist/component-props-events.js.map +0 -1
- package/dist/data-requirements.d.ts +0 -77
- package/dist/data-requirements.d.ts.map +0 -1
- package/dist/data-requirements.js +0 -3
- package/dist/data-requirements.js.map +0 -1
- package/dist/root-spec.d.ts +0 -72
- package/dist/root-spec.d.ts.map +0 -1
- package/dist/root-spec.js +0 -3
- package/dist/root-spec.js.map +0 -1
- package/dist/runtime-types.d.ts +0 -211
- package/dist/runtime-types.d.ts.map +0 -1
- package/dist/runtime-types.js +0 -3
- package/dist/runtime-types.js.map +0 -1
- package/dist/shared.d.ts +0 -44
- package/dist/shared.d.ts.map +0 -1
- package/dist/shared.js +0 -3
- package/dist/shared.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,12 +6,5 @@ export * from './query-types';
|
|
|
6
6
|
export * from './agent-types';
|
|
7
7
|
export * from './artifact-types';
|
|
8
8
|
export * from './auth-types';
|
|
9
|
-
export * from './root-spec';
|
|
10
|
-
export * from './child-spec';
|
|
11
|
-
export * from './data-requirements';
|
|
12
|
-
export * from './component-option';
|
|
13
|
-
export * from './runtime-types';
|
|
14
|
-
export * from './shared';
|
|
15
|
-
export * from './component-props-events';
|
|
16
9
|
export * from './util';
|
|
17
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,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;AAE7B,cAAc,QAAQ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,12 +23,5 @@ __exportStar(require("./query-types"), exports);
|
|
|
23
23
|
__exportStar(require("./agent-types"), exports);
|
|
24
24
|
__exportStar(require("./artifact-types"), exports);
|
|
25
25
|
__exportStar(require("./auth-types"), exports);
|
|
26
|
-
__exportStar(require("./root-spec"), exports);
|
|
27
|
-
__exportStar(require("./child-spec"), exports);
|
|
28
|
-
__exportStar(require("./data-requirements"), exports);
|
|
29
|
-
__exportStar(require("./component-option"), exports);
|
|
30
|
-
__exportStar(require("./runtime-types"), exports);
|
|
31
|
-
__exportStar(require("./shared"), exports);
|
|
32
|
-
__exportStar(require("./component-props-events"), exports);
|
|
33
26
|
__exportStar(require("./util"), exports);
|
|
34
27
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,8CAA4B;AAC5B,uDAAqC;AACrC,mDAAiC;AACjC,0DAAwC;AACxC,gDAA8B;AAC9B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,8CAA4B;AAC5B,uDAAqC;AACrC,mDAAiC;AACjC,0DAAwC;AACxC,gDAA8B;AAC9B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAE7B,yCAAuB"}
|
package/dist/response-types.d.ts
CHANGED
|
@@ -20,8 +20,7 @@ import type { SkipSubProcessResponse } from './conversation-types';
|
|
|
20
20
|
import type { SkipColumnInfo } from './entity-metadata-types';
|
|
21
21
|
import type { SkipDataRequest } from './query-types';
|
|
22
22
|
import type { SkipAPIArtifactRequest } from './artifact-types';
|
|
23
|
-
import { SimpleDataContext } from '
|
|
24
|
-
import { SkipComponentOption } from './component-option';
|
|
23
|
+
import { ComponentOption, SimpleDataContext } from '@memberjunction/interactive-component-types';
|
|
25
24
|
/**
|
|
26
25
|
* Defines an individual filter that will be used to filter the data in the view to the specific row or rows that the user clicked on for a drill down
|
|
27
26
|
*/
|
|
@@ -113,7 +112,7 @@ export declare class SkipAPIAnalysisCompleteResponse extends SkipAPIResponse {
|
|
|
113
112
|
/**
|
|
114
113
|
* Contains a list of all the possible components that were generated (1 or more) for the given request.
|
|
115
114
|
*/
|
|
116
|
-
componentOptions?:
|
|
115
|
+
componentOptions?: ComponentOption[];
|
|
117
116
|
/**
|
|
118
117
|
* If the AI Agent decides it would be best to display the result in an artifact, this information can be used by the calling application to properly
|
|
119
118
|
* associate this specific response with the artifact that is being created. This is typically used for output that is likely to have iterations where
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-types.d.ts","sourceRoot":"","sources":["../src/response-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"response-types.d.ts","sourceRoot":"","sources":["../src/response-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAEjG;;GAEG;AACH,qBAAa,8BAA8B;IACvC,kBAAkB,EAAE,MAAM,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;CACxB;AAED;;GAEG;AACH,qBAAa,wBAAwB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,8BAA8B,EAAE,CAAC;CA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IAC9D;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-types.js","sourceRoot":"","sources":["../src/response-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,2CAA8C;
|
|
1
|
+
{"version":3,"file":"response-types.js","sourceRoot":"","sources":["../src/response-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG;;;AAEH,2CAA8C;AAO9C;;GAEG;AACH,MAAa,8BAA8B;CAG1C;AAHD,wEAGC;AAED;;GAEG;AACH,MAAa,wBAAwB;CAepC;AAfD,4DAeC;AAED;;GAEG;AACH,MAAa,+BAAgC,SAAQ,2BAAe;CAyEnE;AAzED,0EAyEC;AAED;;GAEG;AACH,MAAa,iCAAkC,SAAQ,2BAAe;CASrE;AATD,8EASC;AAED;;GAEG;AACH,MAAa,0BAA2B,SAAQ,2BAAe;CAE9D;AAFD,gEAEC;AAED;;GAEG;AACH,MAAa,6BAA8B,SAAQ,2BAAe;CAKjE;AALD,sEAKC"}
|
package/dist/util.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { EntityFieldInfo, EntityFieldValueInfo, EntityInfo, EntityRelationshipInfo } from "@memberjunction/core";
|
|
2
2
|
import { SkipEntityFieldInfo, SkipEntityFieldValueInfo, SkipEntityInfo, SkipEntityRelationshipInfo } from "./entity-metadata-types";
|
|
3
|
-
import { SkipComponentRootSpec } from "./root-spec";
|
|
4
|
-
import { SkipComponentChildSpec } from "./child-spec";
|
|
5
3
|
/**
|
|
6
4
|
* Maps a MemberJunction EntityInfo object to a SkipEntityInfo object for use in the Skip query system.
|
|
7
5
|
*
|
|
@@ -48,22 +46,4 @@ export declare function MapEntityFieldValueInfoToSkipEntityFieldValueInfo(pv: En
|
|
|
48
46
|
* @example
|
|
49
47
|
*/
|
|
50
48
|
export declare function MapEntityRelationshipInfoToSkipEntityRelationshipInfo(re: EntityRelationshipInfo): SkipEntityRelationshipInfo;
|
|
51
|
-
/**
|
|
52
|
-
* Builds the complete code for a Skip component based on the provided spec.
|
|
53
|
-
*
|
|
54
|
-
* This function generates the full code representation of a Skip component, including
|
|
55
|
-
* the root component code and recursively pulling in child components and also replacing
|
|
56
|
-
* the placeholders for those child components in the parent component's code with the
|
|
57
|
-
* actual code for those child components (which were generated after the parent component was generated).
|
|
58
|
-
*
|
|
59
|
-
* @param spec - The SkipComponentRootSpec defining the component structure and behavior
|
|
60
|
-
* @returns A string containing the complete executable JavaScript code for the Skip component
|
|
61
|
-
*/
|
|
62
|
-
export declare function BuildSkipComponentCompleteCode(spec: SkipComponentRootSpec): string;
|
|
63
|
-
/**
|
|
64
|
-
* Builds the code for a Skip component child based on the provided spec including recursive child components.
|
|
65
|
-
* @param spec - The SkipComponentChildSpec defining the child component structure and behavior
|
|
66
|
-
* @returns A string containing the executable JavaScript code for the Skip component child
|
|
67
|
-
*/
|
|
68
|
-
export declare function BuildSkipComponentChildCode(child: SkipComponentChildSpec): string;
|
|
69
49
|
//# sourceMappingURL=util.d.ts.map
|
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;
|
|
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;AAGpI;;;;;;;;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"}
|
package/dist/util.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MapEntityRelationshipInfoToSkipEntityRelationshipInfo = exports.MapEntityFieldValueInfoToSkipEntityFieldValueInfo = exports.MapEntityFieldInfoToSkipEntityFieldInfo = exports.MapEntityInfoToSkipEntityInfo = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Maps a MemberJunction EntityInfo object to a SkipEntityInfo object for use in the Skip query system.
|
|
6
6
|
*
|
|
@@ -115,57 +115,4 @@ function MapEntityRelationshipInfoToSkipEntityRelationshipInfo(re) {
|
|
|
115
115
|
return sre;
|
|
116
116
|
}
|
|
117
117
|
exports.MapEntityRelationshipInfoToSkipEntityRelationshipInfo = MapEntityRelationshipInfoToSkipEntityRelationshipInfo;
|
|
118
|
-
/**
|
|
119
|
-
* Builds the complete code for a Skip component based on the provided spec.
|
|
120
|
-
*
|
|
121
|
-
* This function generates the full code representation of a Skip component, including
|
|
122
|
-
* the root component code and recursively pulling in child components and also replacing
|
|
123
|
-
* the placeholders for those child components in the parent component's code with the
|
|
124
|
-
* actual code for those child components (which were generated after the parent component was generated).
|
|
125
|
-
*
|
|
126
|
-
* @param spec - The SkipComponentRootSpec defining the component structure and behavior
|
|
127
|
-
* @returns A string containing the complete executable JavaScript code for the Skip component
|
|
128
|
-
*/
|
|
129
|
-
function BuildSkipComponentCompleteCode(spec) {
|
|
130
|
-
// Start with the base code for the root component
|
|
131
|
-
let code = spec.componentCode || '// Generation Error: No root component code provided! \n\n';
|
|
132
|
-
// Recursively replace placeholders for child components with their generated code
|
|
133
|
-
if (!spec.childComponents || spec.childComponents.length === 0) {
|
|
134
|
-
// If there are no child components, return the base code for this component
|
|
135
|
-
return code;
|
|
136
|
-
}
|
|
137
|
-
for (const child of spec.childComponents) {
|
|
138
|
-
const childCode = BuildSkipComponentChildCode(child);
|
|
139
|
-
if (childCode && childCode.length > 0) {
|
|
140
|
-
// Append the generated code for this child component to the root component code
|
|
141
|
-
code += '\n\n' + childCode;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
// Return the complete code for this component
|
|
145
|
-
return code;
|
|
146
|
-
}
|
|
147
|
-
exports.BuildSkipComponentCompleteCode = BuildSkipComponentCompleteCode;
|
|
148
|
-
/**
|
|
149
|
-
* Builds the code for a Skip component child based on the provided spec including recursive child components.
|
|
150
|
-
* @param spec - The SkipComponentChildSpec defining the child component structure and behavior
|
|
151
|
-
* @returns A string containing the executable JavaScript code for the Skip component child
|
|
152
|
-
*/
|
|
153
|
-
function BuildSkipComponentChildCode(child) {
|
|
154
|
-
// Start with the base code for the child component
|
|
155
|
-
let code = child.componentCode;
|
|
156
|
-
// Recursively replace placeholders for child components with their generated code
|
|
157
|
-
if (!child.components || child.components.length === 0) {
|
|
158
|
-
// If there are no child components, return the base code for this child
|
|
159
|
-
return code;
|
|
160
|
-
}
|
|
161
|
-
for (const sub of child.components) {
|
|
162
|
-
const subCode = BuildSkipComponentChildCode(sub);
|
|
163
|
-
if (subCode && subCode.length > 0) {
|
|
164
|
-
code += '\n\n' + subCode;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
// Return the complete code for this child component
|
|
168
|
-
return code;
|
|
169
|
-
}
|
|
170
|
-
exports.BuildSkipComponentChildCode = BuildSkipComponentChildCode;
|
|
171
118
|
//# sourceMappingURL=util.js.map
|
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":";;;AAIA;;;;;;;;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,IAAI;QACZ,YAAY,EAAE,CAAC,CAAC,YAAY;QAC5B,QAAQ,EAAE,CAAC,CAAC,QAAQ;QACpB,MAAM,EAAE,C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Ac;QACjC,cAAc,EAAE,EAAE,CAAC,cAAc;QACjC,eAAe,EAAE,EAAE,CAAC,eAAe;QACnC,sBAAsB,EAAE,EAAE,CAAC,sBAAsB;QACjD,qBAAqB,EAAE,EAAE,CAAC,qBAAqB;QAC/C,aAAa,EAAE,EAAE,CAAC,aAAa;QAC/B,IAAI,EAAE,EAAE,CAAC,IAAI;QACb,0BAA0B,EAAE,EAAE,CAAC,0BAA0B;QACzD,QAAQ,EAAE,EAAE,CAAC,QAAQ;QACrB,mBAAmB,EAAE,EAAE,CAAC,mBAAmB;KAC9C,CAAA;IACD,OAAO,GAAG,CAAC;AACf,CAAC;AAhBD,sHAgBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/skip-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.72.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,8 +19,8 @@
|
|
|
19
19
|
"typescript": "^5.4.5"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@memberjunction/core": "2.
|
|
23
|
-
"@memberjunction/
|
|
24
|
-
"@memberjunction/data-context": "2.
|
|
22
|
+
"@memberjunction/core": "2.72.0",
|
|
23
|
+
"@memberjunction/interactive-component-types": "2.72.0",
|
|
24
|
+
"@memberjunction/data-context": "2.72.0"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/dist/child-spec.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { SkipComponentEvent, SkipComponentProperty } from "./component-props-events";
|
|
2
|
-
import { SkipComponentDataRequirements } from "./data-requirements";
|
|
3
|
-
/**
|
|
4
|
-
* Represents a child component within a component hierarchy
|
|
5
|
-
*/
|
|
6
|
-
export interface SkipComponentChildSpec {
|
|
7
|
-
/**
|
|
8
|
-
* The programmatic name of the component
|
|
9
|
-
*/
|
|
10
|
-
componentName: string;
|
|
11
|
-
/**
|
|
12
|
-
* Example of the component being used in JSX format. This is used to provide a clear example on the properties and
|
|
13
|
-
* event handling that the component supports. This is used to teach the next AI exactly what we want it to generate for the
|
|
14
|
-
* child component.
|
|
15
|
-
*/
|
|
16
|
-
exampleUsage: string;
|
|
17
|
-
/**
|
|
18
|
-
* The code for the child component. This is generated LATER by a separate process after the parent
|
|
19
|
-
* component generation is complete. When the parent component generates this is undefined.
|
|
20
|
-
*/
|
|
21
|
-
componentCode?: string;
|
|
22
|
-
/**
|
|
23
|
-
* A summary of what this child component does that a user would understand.
|
|
24
|
-
* This should be a high-level, user-friendly description suitable for end users.
|
|
25
|
-
*/
|
|
26
|
-
description: string;
|
|
27
|
-
/**
|
|
28
|
-
* Functional requirements for this child component.
|
|
29
|
-
* This should be in markdown format and describe what the component should do from a functional perspective.
|
|
30
|
-
* Includes:
|
|
31
|
-
* - Component-specific functionality
|
|
32
|
-
* - How it integrates with the parent component
|
|
33
|
-
* - User interactions within this component
|
|
34
|
-
* - Business rules specific to this component
|
|
35
|
-
*/
|
|
36
|
-
functionalRequirements?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Data requirements for this child component. This section defines where a child component
|
|
39
|
-
* will **directly** access data as required using utilities methods like `rv.runView` and `rq.runQuery`
|
|
40
|
-
*/
|
|
41
|
-
dataRequirements?: SkipComponentDataRequirements;
|
|
42
|
-
/**
|
|
43
|
-
* An optional array of properties that the component uses. The names and descriptions
|
|
44
|
-
* allow consumers of the component to understand what is accepted by the component and the
|
|
45
|
-
* component. This can be used for shared data shared between components or for configuration
|
|
46
|
-
* settings.
|
|
47
|
-
*/
|
|
48
|
-
properties?: SkipComponentProperty[];
|
|
49
|
-
/**
|
|
50
|
-
* An optional array of events that the component emits.
|
|
51
|
-
* This allows consumers of the component to understand what events they can listen to.
|
|
52
|
-
*/
|
|
53
|
-
events?: SkipComponentEvent[];
|
|
54
|
-
/**
|
|
55
|
-
* Technical design details for this child component.
|
|
56
|
-
* This should be in markdown format and describe the implementation approach.
|
|
57
|
-
* Includes:
|
|
58
|
-
* - How the component is structured
|
|
59
|
-
* - State within the component
|
|
60
|
-
* - Properites/events
|
|
61
|
-
*/
|
|
62
|
-
technicalDesign?: string;
|
|
63
|
-
/**
|
|
64
|
-
* The path in the state tree where this component's state is stored
|
|
65
|
-
*/
|
|
66
|
-
statePath: string;
|
|
67
|
-
/**
|
|
68
|
-
* An array of sub-components
|
|
69
|
-
*/
|
|
70
|
-
components: SkipComponentChildSpec[];
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=child-spec.d.ts.map
|
package/dist/child-spec.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"child-spec.d.ts","sourceRoot":"","sources":["../src/child-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEpE;;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;;;;;;;;OAQG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IAEjD;;;;;OAKG;IACH,UAAU,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAErC;;;OAGG;IACH,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAE9B;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,sBAAsB,EAAE,CAAC;CACxC"}
|
package/dist/child-spec.js
DELETED
package/dist/child-spec.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"child-spec.js","sourceRoot":"","sources":["../src/child-spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { SkipComponentRootSpec } from "./root-spec";
|
|
2
|
-
/**
|
|
3
|
-
* 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.
|
|
4
|
-
*/
|
|
5
|
-
export type SkipComponentOption = {
|
|
6
|
-
/**
|
|
7
|
-
* Full details of the generated component option including functional, technical, code, and child componentry.
|
|
8
|
-
*/
|
|
9
|
-
option: SkipComponentRootSpec;
|
|
10
|
-
/**
|
|
11
|
-
* If multiple component options are provided for a given @interface SkipAPIAnalysisCompleteResponse, a "judge" AI will evaluate all the functional
|
|
12
|
-
* 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
|
|
13
|
-
* # of components contained within an array of SkipComponentOption types.
|
|
14
|
-
*/
|
|
15
|
-
AIRank: number | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* 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
|
|
18
|
-
* as well as provide context to the user about why a particular component was chosen as the best option.
|
|
19
|
-
*/
|
|
20
|
-
AIRankExplanation: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* The user's provided feedback on the component option. Unlike the AIRank, this is a subjective rating provided by the user and is
|
|
23
|
-
* a number between 1 and 10, where 1 is the lowest rating and 10 is the highest rating.
|
|
24
|
-
*/
|
|
25
|
-
UserRank: number | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* If the host application provides a way for the user to provide feedback on the component option,
|
|
28
|
-
* this is the explanation of why the user rated the component the way they did if they provided feedback.
|
|
29
|
-
*/
|
|
30
|
-
UserRankExplanation: string | undefined;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=component-option.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-option.d.ts","sourceRoot":"","sources":["../src/component-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;OAEG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAE9B;;;;OAIG;IACH,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;;OAGG;IACH,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3C,CAAA"}
|
package/dist/component-option.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-option.js","sourceRoot":"","sources":["../src/component-option.ts"],"names":[],"mappings":""}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Definition of a single property of a component.
|
|
3
|
-
*/
|
|
4
|
-
export interface SkipComponentProperty {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the property
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* A description of what this property is used for
|
|
11
|
-
*/
|
|
12
|
-
description: string;
|
|
13
|
-
/**
|
|
14
|
-
* The type of the property.
|
|
15
|
-
* It can be one of 'string', 'number', 'boolean', 'object', 'array', 'function', or 'any'.
|
|
16
|
-
* These types are for aligning users of the component. Components are in JavaScript and do not
|
|
17
|
-
* actually enforce types at runtime, but this is used to provide guidance for users (AI and Human)
|
|
18
|
-
*/
|
|
19
|
-
type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'function' | 'any';
|
|
20
|
-
/**
|
|
21
|
-
* Indicates if this property is required for the component to function correctly.
|
|
22
|
-
* If true, the component will not work without this property being set.
|
|
23
|
-
*/
|
|
24
|
-
required: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* The default value, if any, for this property if it is not provided.
|
|
27
|
-
*/
|
|
28
|
-
defaultValue?: any;
|
|
29
|
-
/**
|
|
30
|
-
* Optional list of possible values for this property.
|
|
31
|
-
*/
|
|
32
|
-
possibleValues?: string[];
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Definition of a single event of a component.
|
|
36
|
-
*/
|
|
37
|
-
export interface SkipComponentEvent {
|
|
38
|
-
/**
|
|
39
|
-
* The name of the event
|
|
40
|
-
*/
|
|
41
|
-
name: string;
|
|
42
|
-
/**
|
|
43
|
-
* A description of what this event does
|
|
44
|
-
*/
|
|
45
|
-
description: string;
|
|
46
|
-
/**
|
|
47
|
-
* An array of parameters that this event can emit.
|
|
48
|
-
*/
|
|
49
|
-
parameters?: SkipComponentEventParameter[];
|
|
50
|
-
}
|
|
51
|
-
export interface SkipComponentEventParameter {
|
|
52
|
-
/**
|
|
53
|
-
* The name of the parameter
|
|
54
|
-
*/
|
|
55
|
-
name: string;
|
|
56
|
-
/**
|
|
57
|
-
* A description of what this parameter is used for
|
|
58
|
-
*/
|
|
59
|
-
description: string;
|
|
60
|
-
/**
|
|
61
|
-
* The type of the parameter.
|
|
62
|
-
* It can be one of 'string', 'number', 'boolean', 'object', 'array', 'function', or 'any'.
|
|
63
|
-
*/
|
|
64
|
-
type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'function' | 'any';
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=component-props-events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-props-events.d.ts","sourceRoot":"","sources":["../src/component-props-events.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,CAAC;IAChF;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,2BAA2B,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,CAAC;CACnF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-props-events.js","sourceRoot":"","sources":["../src/component-props-events.ts"],"names":[],"mappings":""}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { DataContext } from "@memberjunction/data-context";
|
|
2
|
-
/**
|
|
3
|
-
* This interface is critical for understanding how components interact with MemberJunction data
|
|
4
|
-
*/
|
|
5
|
-
export interface SkipComponentDataRequirements {
|
|
6
|
-
/**
|
|
7
|
-
* The primary data access mode for this component.
|
|
8
|
-
* - 'dynamic': Component fetches data at runtime using MJ utilities
|
|
9
|
-
* - 'static': Deprecated, use dynamic.
|
|
10
|
-
* - 'hybrid': Deprecated, use dynamic.
|
|
11
|
-
*/
|
|
12
|
-
mode: 'static' | 'dynamic' | 'hybrid';
|
|
13
|
-
/**
|
|
14
|
-
* For static mode: References to data context items that this component uses.
|
|
15
|
-
* These are pre-loaded data snapshots that are passed to the component during initialization.
|
|
16
|
-
* @deprecated Use dynamicData instead
|
|
17
|
-
*/
|
|
18
|
-
staticData?: {
|
|
19
|
-
/**
|
|
20
|
-
* Reference to the data context that this component uses.
|
|
21
|
-
*/
|
|
22
|
-
dataContext: DataContext;
|
|
23
|
-
/**
|
|
24
|
-
* Description of how the static data is used by the component
|
|
25
|
-
*/
|
|
26
|
-
description?: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* For dynamic mode: Defines which MemberJunction entities this component needs access to.
|
|
30
|
-
* The component will use the RunView/RunQuery utilities to fetch data at runtime.
|
|
31
|
-
*/
|
|
32
|
-
dynamicData?: {
|
|
33
|
-
/**
|
|
34
|
-
* Describes the entities and fields the component will
|
|
35
|
-
* need to fulfill user requirements.
|
|
36
|
-
*/
|
|
37
|
-
requiredEntities: SkipComponentEntityDataRequirement[];
|
|
38
|
-
/**
|
|
39
|
-
* Description of data access patterns
|
|
40
|
-
*/
|
|
41
|
-
description?: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* General description of data requirements
|
|
45
|
-
*/
|
|
46
|
-
description?: string;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Describes use of a single entity
|
|
50
|
-
*/
|
|
51
|
-
export type SkipComponentEntityDataRequirement = {
|
|
52
|
-
/**
|
|
53
|
-
* Name of the entity (unique system-wide)
|
|
54
|
-
*/
|
|
55
|
-
entityName: string;
|
|
56
|
-
/**
|
|
57
|
-
* Description of data in the entity
|
|
58
|
-
*/
|
|
59
|
-
entityDescription?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Fields to show the user
|
|
62
|
-
*/
|
|
63
|
-
displayFields: string[];
|
|
64
|
-
/**
|
|
65
|
-
* Fields to filter on initially or via user interaction.
|
|
66
|
-
*/
|
|
67
|
-
filterFields?: string[];
|
|
68
|
-
/**
|
|
69
|
-
* Fields to use when sorting
|
|
70
|
-
*/
|
|
71
|
-
sortFields?: string[];
|
|
72
|
-
/**
|
|
73
|
-
* When/Where/How components should use this data
|
|
74
|
-
*/
|
|
75
|
-
usageContext?: string;
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=data-requirements.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-requirements.d.ts","sourceRoot":"","sources":["../src/data-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;;OAKG;IACH,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IAEtC;;;;OAIG;IACH,UAAU,CAAC,EAAE;QACT;;WAEG;QACH,WAAW,EAAE,WAAW,CAAC;QAEzB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IAEF;;;OAGG;IACH,WAAW,CAAC,EAAE;QACV;;;WAGG;QACH,gBAAgB,EAAE,kCAAkC,EAAE,CAAC;QAEvD;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IAEF;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC7C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-requirements.js","sourceRoot":"","sources":["../src/data-requirements.ts"],"names":[],"mappings":""}
|
package/dist/root-spec.d.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { SkipComponentChildSpec } from "./child-spec";
|
|
2
|
-
import { SkipComponentDataRequirements } from "./data-requirements";
|
|
3
|
-
/**
|
|
4
|
-
* Represents a complete specification for a generated Skip component, including its structure,
|
|
5
|
-
* requirements, code, and nested component hierarchy
|
|
6
|
-
*/
|
|
7
|
-
export type SkipComponentRootSpec = {
|
|
8
|
-
/**
|
|
9
|
-
* A description of what the component should do from a functional perspective.
|
|
10
|
-
* This should be in markdown format and include:
|
|
11
|
-
* - Core functionality
|
|
12
|
-
* - Business rules
|
|
13
|
-
* - Expected outcomes
|
|
14
|
-
* - UX considerations
|
|
15
|
-
*/
|
|
16
|
-
functionalRequirements: string;
|
|
17
|
-
/**
|
|
18
|
-
* Detailed data requirements, including how the component accesses and uses data.
|
|
19
|
-
*/
|
|
20
|
-
dataRequirements?: SkipComponentDataRequirements;
|
|
21
|
-
/**
|
|
22
|
-
* A technical description of how the component is designed and implemented.
|
|
23
|
-
* This should be in markdown format and include:
|
|
24
|
-
* - Architecture and design patterns
|
|
25
|
-
* - Key technical decisions
|
|
26
|
-
* - Component structure
|
|
27
|
-
* - State management
|
|
28
|
-
* - Integration points with parent/child components
|
|
29
|
-
*/
|
|
30
|
-
technicalDesign: string;
|
|
31
|
-
/**
|
|
32
|
-
* The code for the main component.
|
|
33
|
-
*/
|
|
34
|
-
componentCode: string;
|
|
35
|
-
/**
|
|
36
|
-
* Name of the component
|
|
37
|
-
*/
|
|
38
|
-
componentName: string;
|
|
39
|
-
/**
|
|
40
|
-
* The type of component: report, dashboard, form, or other.
|
|
41
|
-
*/
|
|
42
|
-
componentType: "report" | "dashboard" | "form" | "other";
|
|
43
|
-
/**
|
|
44
|
-
* A summary of what the component does that a user would understand.
|
|
45
|
-
*/
|
|
46
|
-
description: string;
|
|
47
|
-
/**
|
|
48
|
-
* The callback strategy used by this component (e.g., "hybrid", "direct", "none")
|
|
49
|
-
*/
|
|
50
|
-
callbackStrategy: string;
|
|
51
|
-
/**
|
|
52
|
-
* Describes the state structure managed by this component
|
|
53
|
-
*/
|
|
54
|
-
stateStructure: Record<string, string>;
|
|
55
|
-
/**
|
|
56
|
-
* An array of child component specifications
|
|
57
|
-
*/
|
|
58
|
-
childComponents: SkipComponentChildSpec[];
|
|
59
|
-
/**
|
|
60
|
-
* User-friendly name
|
|
61
|
-
*/
|
|
62
|
-
title: string;
|
|
63
|
-
/**
|
|
64
|
-
* A user-friendly explanation of what the component does
|
|
65
|
-
*/
|
|
66
|
-
userExplanation: string;
|
|
67
|
-
/**
|
|
68
|
-
* Summary of technical design
|
|
69
|
-
*/
|
|
70
|
-
techExplanation: string;
|
|
71
|
-
};
|
|
72
|
-
//# sourceMappingURL=root-spec.d.ts.map
|
package/dist/root-spec.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"root-spec.d.ts","sourceRoot":"","sources":["../src/root-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AAEpE;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAChC;;;;;;;OAOG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IAEjD;;;;;;;;OAQG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;IAEzD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEvC;;OAEG;IACH,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAE1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CAC3B,CAAC"}
|
package/dist/root-spec.js
DELETED
package/dist/root-spec.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"root-spec.js","sourceRoot":"","sources":["../src/root-spec.ts"],"names":[],"mappings":""}
|
package/dist/runtime-types.d.ts
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { CompositeKey } from "@memberjunction/core";
|
|
2
|
-
import { SimpleDataContext } from "./shared";
|
|
3
|
-
import { SimpleMetadata, SimpleRunQuery, SimpleRunView } from "./shared";
|
|
4
|
-
/**
|
|
5
|
-
* Available callbacks a component can call.
|
|
6
|
-
*/
|
|
7
|
-
export interface SkipComponentCallbacks {
|
|
8
|
-
/**
|
|
9
|
-
* When data is provided by the parent, this request results in the parent restarting the component. Only relevant for static/hybrid data, not for dynamic.
|
|
10
|
-
* @deprecated
|
|
11
|
-
*/
|
|
12
|
-
RefreshData: () => void;
|
|
13
|
-
/**
|
|
14
|
-
* If an action occurs inside a component where it would be desirable for the containing UI to open a specific
|
|
15
|
-
* record, if supported, this event can be listened to and the container UI can then open the record.
|
|
16
|
-
* @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
|
|
17
|
-
* @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
|
|
18
|
-
*/
|
|
19
|
-
OpenEntityRecord: (entityName: string, key: CompositeKey) => void;
|
|
20
|
-
/**
|
|
21
|
-
* This event should be raised whenever something changes within the component that should be tracked as a change in state
|
|
22
|
-
* that will persist. userState is any valid serializable JavaScript object. This state is passed to the component when it
|
|
23
|
-
* initializes.
|
|
24
|
-
*/
|
|
25
|
-
UpdateUserState: (userState: any) => void;
|
|
26
|
-
/**
|
|
27
|
-
* Other notifications that a component might want to send to the parent.
|
|
28
|
-
*/
|
|
29
|
-
NotifyEvent: (eventName: string, eventData: any) => void;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Function signature for the initialization function of each component.
|
|
33
|
-
* 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.
|
|
34
|
-
* 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
|
|
35
|
-
* 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.
|
|
36
|
-
*/
|
|
37
|
-
export type SkipComponentInitFunction = (params: SkipComponentInitParams) => void;
|
|
38
|
-
/**
|
|
39
|
-
* This is the function signature for the print function that is provided by the component via the SkipComponentObject
|
|
40
|
-
*/
|
|
41
|
-
export type SkipComponentPrintFunction = () => void;
|
|
42
|
-
/**
|
|
43
|
-
* This is the function signature for the refresh function that is provided by the component via the SkipComponentObject
|
|
44
|
-
*/
|
|
45
|
-
export type SkipComponentRefreshFunction = () => void;
|
|
46
|
-
/**
|
|
47
|
-
* Parameters that are passed to the SkipComponentInitFunction when it is called by the parent component.
|
|
48
|
-
*/
|
|
49
|
-
export interface SkipComponentInitParams {
|
|
50
|
-
/**
|
|
51
|
-
* Contains the static data specified by the root component specification. This data is pre-loaded and passed to
|
|
52
|
-
* the component during initialization and anytime the component is refreshed.
|
|
53
|
-
*/
|
|
54
|
-
staticData: SimpleDataContext;
|
|
55
|
-
/**
|
|
56
|
-
* Contains the dynamic data utilities that the component can use to access MemberJunction data. This includes
|
|
57
|
-
* the metadata, run view, and run query utilities that the component can use to access data dynamically at runtime.
|
|
58
|
-
* The component can use these utilities to fetch data at runtime based on the user's interactions with the component.
|
|
59
|
-
*/
|
|
60
|
-
utilities?: SkipComponentUtilities;
|
|
61
|
-
/**
|
|
62
|
-
* Any valid serializable JavaScript object that represents the user-specific state for the component.
|
|
63
|
-
*/
|
|
64
|
-
userState?: any;
|
|
65
|
-
/**
|
|
66
|
-
* 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.
|
|
67
|
-
*/
|
|
68
|
-
callbacks?: SkipComponentCallbacks;
|
|
69
|
-
/**
|
|
70
|
-
* 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
|
|
71
|
-
* of a child component). The component can alter these styles based on the requirements specified by the user in its design documentation.
|
|
72
|
-
*/
|
|
73
|
-
styles?: SkipComponentStyles;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* This interface defines styles that can be applied to the component. The container can provide
|
|
77
|
-
* styles to the top level component. The top level component can alter these styles based on
|
|
78
|
-
* the prompting of the user, learned notes, etc, and adjust the styles of the component accordingly. In addition
|
|
79
|
-
* the top level component will pass in its computed styles to each sub-component so that the sub-components
|
|
80
|
-
* can do the same recursively down to any level of depth. This allows sub-components to inherit styles but
|
|
81
|
-
* also make adjustments as required based on functional needs and user input.
|
|
82
|
-
*/
|
|
83
|
-
export interface SkipComponentStyles {
|
|
84
|
-
colors: {
|
|
85
|
-
primary: string;
|
|
86
|
-
primaryHover: string;
|
|
87
|
-
primaryLight?: string;
|
|
88
|
-
secondary: string;
|
|
89
|
-
secondaryHover?: string;
|
|
90
|
-
success: string;
|
|
91
|
-
successLight?: string;
|
|
92
|
-
warning?: string;
|
|
93
|
-
warningLight?: string;
|
|
94
|
-
error?: string;
|
|
95
|
-
errorLight?: string;
|
|
96
|
-
info?: string;
|
|
97
|
-
infoLight?: string;
|
|
98
|
-
background: string;
|
|
99
|
-
surface: string;
|
|
100
|
-
surfaceHover?: string;
|
|
101
|
-
text: string;
|
|
102
|
-
textSecondary: string;
|
|
103
|
-
textTertiary?: string;
|
|
104
|
-
textInverse?: string;
|
|
105
|
-
border: string;
|
|
106
|
-
borderLight?: string;
|
|
107
|
-
borderFocus?: string;
|
|
108
|
-
shadow?: string;
|
|
109
|
-
shadowMedium?: string;
|
|
110
|
-
shadowLarge?: string;
|
|
111
|
-
[key: string]: string | undefined;
|
|
112
|
-
};
|
|
113
|
-
spacing: {
|
|
114
|
-
xs: string;
|
|
115
|
-
sm: string;
|
|
116
|
-
md: string;
|
|
117
|
-
lg: string;
|
|
118
|
-
xl: string;
|
|
119
|
-
xxl?: string;
|
|
120
|
-
xxxl?: string;
|
|
121
|
-
[key: string]: string | undefined;
|
|
122
|
-
};
|
|
123
|
-
typography: {
|
|
124
|
-
fontFamily: string;
|
|
125
|
-
fontSize: {
|
|
126
|
-
xs?: string;
|
|
127
|
-
sm: string;
|
|
128
|
-
md: string;
|
|
129
|
-
lg: string;
|
|
130
|
-
xl: string;
|
|
131
|
-
xxl?: string;
|
|
132
|
-
xxxl?: string;
|
|
133
|
-
[key: string]: string | undefined;
|
|
134
|
-
};
|
|
135
|
-
fontWeight?: {
|
|
136
|
-
light?: string;
|
|
137
|
-
regular?: string;
|
|
138
|
-
medium?: string;
|
|
139
|
-
semibold?: string;
|
|
140
|
-
bold?: string;
|
|
141
|
-
[key: string]: string | undefined;
|
|
142
|
-
};
|
|
143
|
-
lineHeight?: {
|
|
144
|
-
tight?: string;
|
|
145
|
-
normal?: string;
|
|
146
|
-
relaxed?: string;
|
|
147
|
-
[key: string]: string | undefined;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
borders: {
|
|
151
|
-
radius: string | {
|
|
152
|
-
sm?: string;
|
|
153
|
-
md?: string;
|
|
154
|
-
lg?: string;
|
|
155
|
-
xl?: string;
|
|
156
|
-
full?: string;
|
|
157
|
-
[key: string]: string | undefined;
|
|
158
|
-
};
|
|
159
|
-
width: string | {
|
|
160
|
-
thin?: string;
|
|
161
|
-
medium?: string;
|
|
162
|
-
thick?: string;
|
|
163
|
-
[key: string]: string | undefined;
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
shadows?: {
|
|
167
|
-
sm?: string;
|
|
168
|
-
md?: string;
|
|
169
|
-
lg?: string;
|
|
170
|
-
xl?: string;
|
|
171
|
-
inner?: string;
|
|
172
|
-
[key: string]: string | undefined;
|
|
173
|
-
};
|
|
174
|
-
transitions?: {
|
|
175
|
-
fast?: string;
|
|
176
|
-
normal?: string;
|
|
177
|
-
slow?: string;
|
|
178
|
-
[key: string]: string | undefined;
|
|
179
|
-
};
|
|
180
|
-
overflow: string;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* 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.
|
|
184
|
-
* The component will create this object and it will include the members defined in this interface.
|
|
185
|
-
*/
|
|
186
|
-
export interface SkipComponentObject {
|
|
187
|
-
/**
|
|
188
|
-
* The React component that Angular will render directly using ReactDOM.
|
|
189
|
-
* This component receives props including data, userState, callbacks, utilities, and styles.
|
|
190
|
-
*/
|
|
191
|
-
component: any;
|
|
192
|
-
/**
|
|
193
|
-
* 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
|
|
194
|
-
* can assume the component has been initialized;
|
|
195
|
-
*/
|
|
196
|
-
print?: SkipComponentPrintFunction;
|
|
197
|
-
/**
|
|
198
|
-
* 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
|
|
199
|
-
*/
|
|
200
|
-
refresh?: SkipComponentRefreshFunction;
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* This interface defines the utilities that are available to the Skip component. These utilities are used to interact with the host MemberJunction system to
|
|
204
|
-
* retrieve metadata, run views, and run queries. The utilities are passed into the SkipComponentInitFunction by the container.
|
|
205
|
-
*/
|
|
206
|
-
export interface SkipComponentUtilities {
|
|
207
|
-
md: SimpleMetadata;
|
|
208
|
-
rv: SimpleRunView;
|
|
209
|
-
rq: SimpleRunQuery;
|
|
210
|
-
}
|
|
211
|
-
//# sourceMappingURL=runtime-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-types.d.ts","sourceRoot":"","sources":["../src/runtime-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;OAGG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,YAAY,KAAK,IAAI,CAAC;IAElE;;;;OAIG;IACH,eAAe,EAAE,CAAC,SAAS,EAAE,GAAG,KAAK,IAAI,CAAC;IAE1C;;OAEG;IACH,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5D;AAED;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,MAAM,EAAE,uBAAuB,KAAK,IAAI,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,IAAI,CAAC;AACpD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,MAAM,IAAI,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;OAGG;IACH,UAAU,EAAE,iBAAiB,CAAC;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED;;;;;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AE,MAAM,GAAG;YACd,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,KAAK,CAAC,EAAE,MAAM,CAAA;YAGd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;SACnC,CAAC;KACL,CAAA;IACD,OAAO,CAAC,EAAE;QACN,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,KAAK,CAAC,EAAE,MAAM,CAAA;QAGd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACrC,CAAA;IACD,WAAW,CAAC,EAAE;QACV,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,IAAI,CAAC,EAAE,MAAM,CAAA;QAGb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACrC,CAAA;IACD,QAAQ,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;OAGG;IACH,SAAS,EAAE,GAAG,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,0BAA0B,CAAC;IAEnC;;OAEG;IACH,OAAO,CAAC,EAAE,4BAA4B,CAAC;CAC1C;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,cAAc,CAAC;IACnB,EAAE,EAAE,aAAa,CAAC;IAClB,EAAE,EAAE,cAAc,CAAA;CACrB"}
|
package/dist/runtime-types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-types.js","sourceRoot":"","sources":["../src/runtime-types.ts"],"names":[],"mappings":""}
|
package/dist/shared.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { RunQueryParams, RunQueryResult, RunViewParams, RunViewResult } from "@memberjunction/core";
|
|
2
|
-
import { SkipEntityInfo } from "./entity-metadata-types";
|
|
3
|
-
/**
|
|
4
|
-
* This is a simple data context object that is passed into the SkipComponentInitFunction, it contains a property for each of the data context items and typically are named
|
|
5
|
-
* data_item_1, data_item_2, etc. The data context is a simple JavaScript object that contains properties that are in turn data objects which are typically arrays of things, but can be anything.
|
|
6
|
-
*/
|
|
7
|
-
export type SimpleDataContext = {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Simple version of the @interface Metadata MemberJunction object that is passed to the Skip component.
|
|
12
|
-
*/
|
|
13
|
-
export interface SimpleMetadata {
|
|
14
|
-
entities: SkipEntityInfo[];
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Simple interface for running views in MemberJunction that can be used by components generated by Skip
|
|
18
|
-
*/
|
|
19
|
-
export interface SimpleRunView {
|
|
20
|
-
/**
|
|
21
|
-
* Run a single view and return the results. The view is run dynamically against the MemberJunction host environment.
|
|
22
|
-
* @param params
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
runView: (params: RunViewParams) => Promise<RunViewResult>;
|
|
26
|
-
/**
|
|
27
|
-
* Runs multiple views and returns the results. This is useful for running multiple views in parallel and returning the results in a single call.
|
|
28
|
-
* @param params
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
runViews: (params: RunViewParams[]) => Promise<RunViewResult[]>;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Simple interface for running predefined queries in MemberJunction that can be used by components generated by Skip
|
|
35
|
-
*/
|
|
36
|
-
export interface SimpleRunQuery {
|
|
37
|
-
/**
|
|
38
|
-
* Run a single predefined query and return the results. The query is run dynamically against the MemberJunction host environment.
|
|
39
|
-
* @param params
|
|
40
|
-
* @returns
|
|
41
|
-
*/
|
|
42
|
-
runQuery: (params: RunQueryParams) => Promise<RunQueryResult>;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=shared.d.ts.map
|
package/dist/shared.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,cAAc,EAAE,CAAA;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;IAC1D;;;;OAIG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,OAAO,CAAC,aAAa,EAAE,CAAC,CAAA;CAClE;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,OAAO,CAAC,cAAc,CAAC,CAAA;CAChE"}
|
package/dist/shared.js
DELETED
package/dist/shared.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":""}
|