@memberjunction/skip-types 0.9.5 → 0.9.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/dist/types.d.ts +11 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityInfo } from '@memberjunction/core';
|
|
1
2
|
import { UserViewEntityExtended } from '@memberjunction/core-entities';
|
|
2
3
|
export declare class SubProcessResponse {
|
|
3
4
|
status: "success" | "error";
|
|
@@ -89,6 +90,16 @@ export declare class SkipDataContextItem {
|
|
|
89
90
|
*/
|
|
90
91
|
EntityName?: string;
|
|
91
92
|
Fields: SkipDataContextFieldInfo[];
|
|
93
|
+
/**
|
|
94
|
+
* ViewEntity - the object instantiated that contains the metadata for the UserView being used - only populated if the type is 'view', also this is NOT to be sent to/from the API server, it is a placeholder that can be used
|
|
95
|
+
* within a given tier like in the MJAPI server or Skip Server or in the UI.
|
|
96
|
+
*/
|
|
97
|
+
ViewEntity?: UserViewEntityExtended;
|
|
98
|
+
/**
|
|
99
|
+
* Entity - the object that contains metadata for the entity being used, only populated if the type is 'full_entity' or 'view' - also this is NOT to be sent to/from the API server, it is a placeholder that can be used
|
|
100
|
+
* within a given tier like in the MJAPI server or Skip Server or in the UI.
|
|
101
|
+
*/
|
|
102
|
+
Entity?: EntityInfo;
|
|
92
103
|
/**
|
|
93
104
|
* Generated description of the item which is dependent on the type of the item
|
|
94
105
|
*/
|
package/dist/types.js
CHANGED
|
@@ -54,6 +54,8 @@ class SkipDataContextItem {
|
|
|
54
54
|
static FromViewEntity(viewEntity) {
|
|
55
55
|
const instance = new SkipDataContextItem();
|
|
56
56
|
// update our data from the viewEntity definition
|
|
57
|
+
instance.ViewEntity = viewEntity;
|
|
58
|
+
instance.Entity = viewEntity.ViewEntityInfo;
|
|
57
59
|
instance.Type = 'view';
|
|
58
60
|
instance.EntityName = viewEntity.ViewEntityInfo.Name;
|
|
59
61
|
instance.RecordID = viewEntity.ID;
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAGA,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAGD;;GAEG;AACH,MAAa,WAAW;CASvB;AATD,kCASC;AAED;;GAEG;AACH,MAAa,cAAc;CA2B1B;AA3BD,wCA2BC;AAED;;GAEG;AACH,MAAa,eAAe;CAW3B;AAXD,0CAWC;AAGD,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,mBAAmB;IAAhC;QAeI;;UAEE;QACF,WAAM,GAA+B,EAAE,CAAC;IA4D5C,CAAC;IA9CG;;OAEG;IACH,IAAI,WAAW;QACX,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,MAAM;gBACP,OAAO,SAAS,IAAI,CAAC,UAAU,kBAAkB,IAAI,CAAC,UAAU,EAAE,CAAC;YACvE,KAAK,OAAO;gBACR,OAAO,UAAU,IAAI,CAAC,UAAU,EAAE,CAAC;YACvC,KAAK,aAAa;gBACd,OAAO,8BAA8B,IAAI,CAAC,UAAU,EAAE,CAAC;YAC3D;gBACI,OAAO,iBAAiB,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5C,CAAC;IACL,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,cAAc,CAAC,UAAkC;QAC3D,MAAM,QAAQ,GAAG,IAAI,mBAAmB,EAAE,CAAC;QAC3C,iDAAiD;QACjD,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;QACjC,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC,cAAc,CAAC;QAC5C,QAAQ,CAAC,IAAI,GAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,UAAU,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C;IAEM,gCAAgC;QACnC,IAAI,OAAO,GAAW,EAAE,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,OAAO,IAAI,aAAa,CAAC,gCAAgC,CAAC;QAC9D,CAAC;QACD,OAAO,IAAI,OAAO,GAAG,CAAC;IAC1B,CAAC;CACJ;AA1BD,0CA0BC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/skip-types",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
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",
|