@memberjunction/skip-types 0.9.26 → 0.9.28

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 CHANGED
@@ -99,7 +99,7 @@ export declare const SkipRequestPhase: {
99
99
  readonly data_gathering_failure: "data_gathering_failure";
100
100
  };
101
101
  export type SkipRequestPhase = typeof SkipRequestPhase[keyof typeof SkipRequestPhase];
102
- export declare class SkipFieldInfo {
102
+ export declare class SkipEntityFieldInfo {
103
103
  entityID: number;
104
104
  sequence: number;
105
105
  name: string;
@@ -148,9 +148,46 @@ export declare class SkipEntityInfo {
148
148
  description?: string;
149
149
  schemaName: string;
150
150
  baseView: string;
151
- fields: SkipFieldInfo[];
151
+ fields: SkipEntityFieldInfo[];
152
152
  relatedEntities: SkipEntityRelationshipInfo[];
153
153
  }
154
+ export declare class SkipQueryInfo {
155
+ name: string;
156
+ description: string;
157
+ categoryID: number;
158
+ sql: string;
159
+ originalSQL: string;
160
+ feedback: string;
161
+ status: 'Pending' | 'In-Review' | 'Approved' | 'Rejected' | 'Obsolete';
162
+ qualityRank: number;
163
+ createdAt: Date;
164
+ updatedAt: Date;
165
+ category: string;
166
+ fields: SkipQueryFieldInfo[];
167
+ }
168
+ export declare class SkipQueryFieldInfo {
169
+ name: string;
170
+ queryID: number;
171
+ description: string;
172
+ sequence: number;
173
+ /**
174
+ * The base type, not including parameters, in SQL. For example this field would be nvarchar or decimal, and wouldn't include type parameters. The SQLFullType field provides that information.
175
+ */
176
+ sqlBaseType: string;
177
+ /**
178
+ * The full SQL type for the field, for example datetime or nvarchar(10) etc.
179
+ */
180
+ sqlFullType: string;
181
+ sourceEntityID: number;
182
+ sourceFieldName: string;
183
+ isComputed: boolean;
184
+ computationDescription: string;
185
+ isSummary: boolean;
186
+ summaryDescription: string;
187
+ createdAt: Date;
188
+ updatedAt: Date;
189
+ sourceEntity: string;
190
+ }
154
191
  /**
155
192
  * Defines the shape of the data that is expected by the Skip API Server when making a request
156
193
  */
@@ -169,6 +206,10 @@ export declare class SkipAPIRequest {
169
206
  * Summary entity metadata that is passed into the Skip Server so that Skip has knowledge of the schema of the calling MJAPI environment
170
207
  */
171
208
  entities: SkipEntityInfo[];
209
+ /**
210
+ *
211
+ */
212
+ queries: SkipQueryInfo[];
172
213
  /**
173
214
  * The conversation ID
174
215
  */
package/dist/types.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SkipDataRequest = exports.SkipDataRequestType = exports.SkipAPIDataRequestResponse = exports.SkipAPIClarifyingQuestionResponse = exports.SkipAPIAnalysisCompleteResponse = exports.SkipAPIResponse = exports.SkipResponsePhase = exports.SkipAPIRequest = exports.SkipEntityInfo = exports.SkipEntityRelationshipInfo = exports.SkipFieldInfo = exports.SkipRequestPhase = exports.SkipColumnInfo = exports.SkipMessage = exports.SkipSubProcessResponse = exports.MJAPISkipResult = void 0;
3
+ exports.SkipDataRequest = exports.SkipDataRequestType = exports.SkipAPIDataRequestResponse = exports.SkipAPIClarifyingQuestionResponse = exports.SkipAPIAnalysisCompleteResponse = exports.SkipAPIResponse = exports.SkipResponsePhase = exports.SkipAPIRequest = exports.SkipQueryFieldInfo = exports.SkipQueryInfo = exports.SkipEntityInfo = exports.SkipEntityRelationshipInfo = exports.SkipEntityFieldInfo = exports.SkipRequestPhase = exports.SkipColumnInfo = exports.SkipMessage = exports.SkipSubProcessResponse = exports.MJAPISkipResult = void 0;
4
4
  /**
5
5
  * This type defines the shape of data that is passed back from the MJ API server to callers, typically the MJ Explorer UI
6
6
  */
@@ -42,9 +42,9 @@ exports.SkipRequestPhase = {
42
42
  data_gathering_response: 'data_gathering_response',
43
43
  data_gathering_failure: 'data_gathering_failure'
44
44
  };
45
- class SkipFieldInfo {
45
+ class SkipEntityFieldInfo {
46
46
  }
47
- exports.SkipFieldInfo = SkipFieldInfo;
47
+ exports.SkipEntityFieldInfo = SkipEntityFieldInfo;
48
48
  class SkipEntityRelationshipInfo {
49
49
  }
50
50
  exports.SkipEntityRelationshipInfo = SkipEntityRelationshipInfo;
@@ -55,6 +55,12 @@ class SkipEntityInfo {
55
55
  }
56
56
  }
57
57
  exports.SkipEntityInfo = SkipEntityInfo;
58
+ class SkipQueryInfo {
59
+ }
60
+ exports.SkipQueryInfo = SkipQueryInfo;
61
+ class SkipQueryFieldInfo {
62
+ }
63
+ exports.SkipQueryFieldInfo = SkipQueryFieldInfo;
58
64
  /**
59
65
  * Defines the shape of the data that is expected by the Skip API Server when making a request
60
66
  */
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AACH,MAAa,eAAe;CAgD3B;AAhDD,0CAgDC;AAGD;;;;GAIG;AACH,MAAa,sBAAsB;CAOlC;AAPD,wDAOC;AAGD;;;GAGG;AACH,MAAa,WAAW;CASvB;AATD,kCASC;AAID;;GAEG;AACH,MAAa,cAAc;CAK1B;AALD,wCAKC;AAGD;;;;;;;GAOG;AACU,QAAA,gBAAgB,GAAG;IAC5B,eAAe,EAAE,iBAAiB;IAClC,yBAAyB,EAAE,2BAA2B;IACtD,uBAAuB,EAAE,yBAAyB;IAClD,sBAAsB,EAAE,wBAAwB;CAC1C,CAAC;AAGX,MAAa,aAAa;CA4BzB;AA5BD,sCA4BC;AAED,MAAa,0BAA0B;CAatC;AAbD,gEAaC;AAED,MAAa,cAAc;IAA3B;QAMI,WAAM,GAAmB,EAAE,CAAC;QAC5B,oBAAe,GAAiC,EAAE,CAAC;IACvD,CAAC;CAAA;AARD,wCAQC;AACD;;GAEG;AACH,MAAa,cAAc;CA4B1B;AA5BD,wCA4BC;AAGD;;;;;;GAMG;AACU,QAAA,iBAAiB,GAAG;IAC7B,mBAAmB,EAAE,qBAAqB;IAC1C,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,mBAAmB;CAChC,CAAC;AAIX;;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qB;IAC1C,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,mBAAmB;CAChC,CAAC;AAIX;;GAEG;AACH,MAAa,eAAe;CAc3B;AAdD,0CAcC;AAED;;GAEG;AACH,MAAa,+BAAgC,SAAQ,eAAe;CASnE;AATD,0EASC;AAED;;GAEG;AACH,MAAa,iCAAkC,SAAQ,eAAe;CAErE;AAFD,8EAEC;AAED;;GAEG;AACH,MAAa,0BAA2B,SAAQ,eAAe;CAE9D;AAFD,gEAEC;AAGD;;;;GAIG;AACU,QAAA,mBAAmB,GAAG;IAC/B,GAAG,EAAE,KAAK;IACV,YAAY,EAAE,cAAc;CACtB,CAAC;AAIX;;GAEG;AACH,MAAa,eAAe;CAa3B;AAbD,0CAaC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/skip-types",
3
- "version": "0.9.26",
3
+ "version": "0.9.28",
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,7 @@
19
19
  "typescript": "^5.3.3"
20
20
  },
21
21
  "dependencies": {
22
- "@memberjunction/core-entities": "^0.9.125",
23
- "@memberjunction/data-context": "^0.9.12"
22
+ "@memberjunction/core-entities": "^0.9.128",
23
+ "@memberjunction/data-context": "^0.9.14"
24
24
  }
25
25
  }