@memberjunction/core-entities 2.103.0 → 2.104.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/custom/EnvironmentEntityExtended.d.ts +12 -0
- package/dist/custom/EnvironmentEntityExtended.d.ts.map +1 -0
- package/dist/custom/EnvironmentEntityExtended.js +29 -0
- package/dist/custom/EnvironmentEntityExtended.js.map +1 -0
- package/dist/generated/entity_subclasses.d.ts +165 -0
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +251 -7
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EnvironmentEntity } from "../generated/entity_subclasses";
|
|
2
|
+
export declare class EnvironmentEntityExtended extends EnvironmentEntity {
|
|
3
|
+
/**
|
|
4
|
+
* The default environment ID for MemberJunction. This is the standard environment
|
|
5
|
+
* that is used throughout the system when no specific environment is specified.
|
|
6
|
+
* This value is stable and can be relied upon across all MJ installations.
|
|
7
|
+
*
|
|
8
|
+
* @returns {string} The UUID of the default environment: 'F51358F3-9447-4176-B313-BF8025FD8D09'
|
|
9
|
+
*/
|
|
10
|
+
static get DefaultEnvironmentID(): string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=EnvironmentEntityExtended.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentEntityExtended.d.ts","sourceRoot":"","sources":["../../src/custom/EnvironmentEntityExtended.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,qBACa,yBAA0B,SAAQ,iBAAiB;IAC5D;;;;;;OAMG;IACH,WAAkB,oBAAoB,IAAI,MAAM,CAE/C;CACJ"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.EnvironmentEntityExtended = void 0;
|
|
10
|
+
const core_1 = require("@memberjunction/core");
|
|
11
|
+
const global_1 = require("@memberjunction/global");
|
|
12
|
+
const entity_subclasses_1 = require("../generated/entity_subclasses");
|
|
13
|
+
let EnvironmentEntityExtended = class EnvironmentEntityExtended extends entity_subclasses_1.EnvironmentEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The default environment ID for MemberJunction. This is the standard environment
|
|
16
|
+
* that is used throughout the system when no specific environment is specified.
|
|
17
|
+
* This value is stable and can be relied upon across all MJ installations.
|
|
18
|
+
*
|
|
19
|
+
* @returns {string} The UUID of the default environment: 'F51358F3-9447-4176-B313-BF8025FD8D09'
|
|
20
|
+
*/
|
|
21
|
+
static get DefaultEnvironmentID() {
|
|
22
|
+
return 'F51358F3-9447-4176-B313-BF8025FD8D09';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.EnvironmentEntityExtended = EnvironmentEntityExtended;
|
|
26
|
+
exports.EnvironmentEntityExtended = EnvironmentEntityExtended = __decorate([
|
|
27
|
+
(0, global_1.RegisterClass)(core_1.BaseEntity, 'MJ: Environments')
|
|
28
|
+
], EnvironmentEntityExtended);
|
|
29
|
+
//# sourceMappingURL=EnvironmentEntityExtended.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentEntityExtended.js","sourceRoot":"","sources":["../../src/custom/EnvironmentEntityExtended.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+CAAkD;AAClD,mDAAuD;AACvD,sEAAmE;AAG5D,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,qCAAiB;IAC5D;;;;;;OAMG;IACI,MAAM,KAAK,oBAAoB;QAClC,OAAO,sCAAsC,CAAC;IAClD,CAAC;CACJ,CAAA;AAXY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,sBAAa,EAAC,iBAAU,EAAE,kBAAkB,CAAC;GACjC,yBAAyB,CAWrC"}
|
|
@@ -2312,16 +2312,24 @@ export declare const ConversationDetailSchema: z.ZodObject<{
|
|
|
2312
2312
|
ArtifactVersionID: z.ZodNullable<z.ZodString>;
|
|
2313
2313
|
CompletionTime: z.ZodNullable<z.ZodNumber>;
|
|
2314
2314
|
IsPinned: z.ZodBoolean;
|
|
2315
|
+
ParentID: z.ZodNullable<z.ZodString>;
|
|
2316
|
+
AgentID: z.ZodNullable<z.ZodString>;
|
|
2317
|
+
Status: z.ZodUnion<[z.ZodLiteral<"Complete">, z.ZodLiteral<"In-Progress">, z.ZodLiteral<"Error">]>;
|
|
2315
2318
|
Conversation: z.ZodNullable<z.ZodString>;
|
|
2316
2319
|
User: z.ZodNullable<z.ZodString>;
|
|
2317
2320
|
Artifact: z.ZodNullable<z.ZodString>;
|
|
2321
|
+
Agent: z.ZodNullable<z.ZodString>;
|
|
2318
2322
|
}, "strip", z.ZodTypeAny, {
|
|
2319
2323
|
ID?: string;
|
|
2320
2324
|
__mj_CreatedAt?: Date;
|
|
2321
2325
|
__mj_UpdatedAt?: Date;
|
|
2326
|
+
ParentID?: string;
|
|
2327
|
+
Status?: "In-Progress" | "Complete" | "Error";
|
|
2322
2328
|
UserID?: string;
|
|
2323
2329
|
Message?: string;
|
|
2324
2330
|
User?: string;
|
|
2331
|
+
AgentID?: string;
|
|
2332
|
+
Agent?: string;
|
|
2325
2333
|
Role?: "User" | "AI" | "Error";
|
|
2326
2334
|
ConversationID?: string;
|
|
2327
2335
|
ExternalID?: string;
|
|
@@ -2341,9 +2349,13 @@ export declare const ConversationDetailSchema: z.ZodObject<{
|
|
|
2341
2349
|
ID?: string;
|
|
2342
2350
|
__mj_CreatedAt?: Date;
|
|
2343
2351
|
__mj_UpdatedAt?: Date;
|
|
2352
|
+
ParentID?: string;
|
|
2353
|
+
Status?: "In-Progress" | "Complete" | "Error";
|
|
2344
2354
|
UserID?: string;
|
|
2345
2355
|
Message?: string;
|
|
2346
2356
|
User?: string;
|
|
2357
|
+
AgentID?: string;
|
|
2358
|
+
Agent?: string;
|
|
2347
2359
|
Role?: "User" | "AI" | "Error";
|
|
2348
2360
|
ConversationID?: string;
|
|
2349
2361
|
ExternalID?: string;
|
|
@@ -5920,6 +5932,7 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
|
|
|
5920
5932
|
UserID: z.ZodString;
|
|
5921
5933
|
__mj_CreatedAt: z.ZodDate;
|
|
5922
5934
|
__mj_UpdatedAt: z.ZodDate;
|
|
5935
|
+
ContentHash: z.ZodNullable<z.ZodString>;
|
|
5923
5936
|
Artifact: z.ZodString;
|
|
5924
5937
|
User: z.ZodString;
|
|
5925
5938
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5934,6 +5947,7 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
|
|
|
5934
5947
|
Artifact?: string;
|
|
5935
5948
|
VersionNumber?: number;
|
|
5936
5949
|
Content?: string;
|
|
5950
|
+
ContentHash?: string;
|
|
5937
5951
|
}, {
|
|
5938
5952
|
ID?: string;
|
|
5939
5953
|
Comments?: string;
|
|
@@ -5946,6 +5960,7 @@ export declare const ArtifactVersionSchema: z.ZodObject<{
|
|
|
5946
5960
|
Artifact?: string;
|
|
5947
5961
|
VersionNumber?: number;
|
|
5948
5962
|
Content?: string;
|
|
5963
|
+
ContentHash?: string;
|
|
5949
5964
|
}>;
|
|
5950
5965
|
export type ArtifactVersionEntityType = z.infer<typeof ArtifactVersionSchema>;
|
|
5951
5966
|
/**
|
|
@@ -6420,6 +6435,32 @@ export declare const ConversationArtifactSchema: z.ZodObject<{
|
|
|
6420
6435
|
ArtifactType?: string;
|
|
6421
6436
|
}>;
|
|
6422
6437
|
export type ConversationArtifactEntityType = z.infer<typeof ConversationArtifactSchema>;
|
|
6438
|
+
/**
|
|
6439
|
+
* zod schema definition for the entity MJ: Conversation Detail Artifacts
|
|
6440
|
+
*/
|
|
6441
|
+
export declare const ConversationDetailArtifactSchema: z.ZodObject<{
|
|
6442
|
+
ID: z.ZodString;
|
|
6443
|
+
ConversationDetailID: z.ZodString;
|
|
6444
|
+
ArtifactVersionID: z.ZodString;
|
|
6445
|
+
Direction: z.ZodUnion<[z.ZodLiteral<"Input">, z.ZodLiteral<"Output">]>;
|
|
6446
|
+
__mj_CreatedAt: z.ZodDate;
|
|
6447
|
+
__mj_UpdatedAt: z.ZodDate;
|
|
6448
|
+
}, "strip", z.ZodTypeAny, {
|
|
6449
|
+
ID?: string;
|
|
6450
|
+
__mj_CreatedAt?: Date;
|
|
6451
|
+
__mj_UpdatedAt?: Date;
|
|
6452
|
+
Direction?: "Input" | "Output";
|
|
6453
|
+
ArtifactVersionID?: string;
|
|
6454
|
+
ConversationDetailID?: string;
|
|
6455
|
+
}, {
|
|
6456
|
+
ID?: string;
|
|
6457
|
+
__mj_CreatedAt?: Date;
|
|
6458
|
+
__mj_UpdatedAt?: Date;
|
|
6459
|
+
Direction?: "Input" | "Output";
|
|
6460
|
+
ArtifactVersionID?: string;
|
|
6461
|
+
ConversationDetailID?: string;
|
|
6462
|
+
}>;
|
|
6463
|
+
export type ConversationDetailArtifactEntityType = z.infer<typeof ConversationDetailArtifactSchema>;
|
|
6423
6464
|
/**
|
|
6424
6465
|
* zod schema definition for the entity MJ: Dashboard User Preferences
|
|
6425
6466
|
*/
|
|
@@ -15909,6 +15950,38 @@ export declare class ConversationDetailEntity extends BaseEntity<ConversationDet
|
|
|
15909
15950
|
get IsPinned(): boolean;
|
|
15910
15951
|
set IsPinned(value: boolean);
|
|
15911
15952
|
/**
|
|
15953
|
+
* * Field Name: ParentID
|
|
15954
|
+
* * Display Name: Parent ID
|
|
15955
|
+
* * SQL Data Type: uniqueidentifier
|
|
15956
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
15957
|
+
* * Description: Optional reference to parent message for threaded conversations. NULL for top-level messages.
|
|
15958
|
+
*/
|
|
15959
|
+
get ParentID(): string | null;
|
|
15960
|
+
set ParentID(value: string | null);
|
|
15961
|
+
/**
|
|
15962
|
+
* * Field Name: AgentID
|
|
15963
|
+
* * Display Name: Agent ID
|
|
15964
|
+
* * SQL Data Type: uniqueidentifier
|
|
15965
|
+
* * Related Entity/Foreign Key: AI Agents (vwAIAgents.ID)
|
|
15966
|
+
* * Description: Denormalized agent ID for quick lookup of agent name and icon without joining through AgentRun
|
|
15967
|
+
*/
|
|
15968
|
+
get AgentID(): string | null;
|
|
15969
|
+
set AgentID(value: string | null);
|
|
15970
|
+
/**
|
|
15971
|
+
* * Field Name: Status
|
|
15972
|
+
* * Display Name: Status
|
|
15973
|
+
* * SQL Data Type: nvarchar(20)
|
|
15974
|
+
* * Default Value: Complete
|
|
15975
|
+
* * Value List Type: List
|
|
15976
|
+
* * Possible Values
|
|
15977
|
+
* * Complete
|
|
15978
|
+
* * In-Progress
|
|
15979
|
+
* * Error
|
|
15980
|
+
* * Description: Status of the conversation message. Complete indicates finished processing, In-Progress indicates active agent work, Error indicates processing failed.
|
|
15981
|
+
*/
|
|
15982
|
+
get Status(): 'Complete' | 'In-Progress' | 'Error';
|
|
15983
|
+
set Status(value: 'Complete' | 'In-Progress' | 'Error');
|
|
15984
|
+
/**
|
|
15912
15985
|
* * Field Name: Conversation
|
|
15913
15986
|
* * Display Name: Conversation
|
|
15914
15987
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -15926,6 +15999,12 @@ export declare class ConversationDetailEntity extends BaseEntity<ConversationDet
|
|
|
15926
15999
|
* * SQL Data Type: nvarchar(255)
|
|
15927
16000
|
*/
|
|
15928
16001
|
get Artifact(): string | null;
|
|
16002
|
+
/**
|
|
16003
|
+
* * Field Name: Agent
|
|
16004
|
+
* * Display Name: Agent
|
|
16005
|
+
* * SQL Data Type: nvarchar(255)
|
|
16006
|
+
*/
|
|
16007
|
+
get Agent(): string | null;
|
|
15929
16008
|
}
|
|
15930
16009
|
/**
|
|
15931
16010
|
* Conversations - strongly typed entity sub-class
|
|
@@ -26080,6 +26159,14 @@ export declare class ArtifactVersionEntity extends BaseEntity<ArtifactVersionEnt
|
|
|
26080
26159
|
*/
|
|
26081
26160
|
get __mj_UpdatedAt(): Date;
|
|
26082
26161
|
/**
|
|
26162
|
+
* * Field Name: ContentHash
|
|
26163
|
+
* * Display Name: Content Hash
|
|
26164
|
+
* * SQL Data Type: nvarchar(500)
|
|
26165
|
+
* * Description: SHA-256 hash of the Content field for duplicate detection and version comparison
|
|
26166
|
+
*/
|
|
26167
|
+
get ContentHash(): string | null;
|
|
26168
|
+
set ContentHash(value: string | null);
|
|
26169
|
+
/**
|
|
26083
26170
|
* * Field Name: Artifact
|
|
26084
26171
|
* * Display Name: Artifact
|
|
26085
26172
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -27453,6 +27540,84 @@ export declare class ConversationArtifactEntity extends BaseEntity<ConversationA
|
|
|
27453
27540
|
*/
|
|
27454
27541
|
get ArtifactType(): string;
|
|
27455
27542
|
}
|
|
27543
|
+
/**
|
|
27544
|
+
* MJ: Conversation Detail Artifacts - strongly typed entity sub-class
|
|
27545
|
+
* * Schema: __mj
|
|
27546
|
+
* * Base Table: ConversationDetailArtifact
|
|
27547
|
+
* * Base View: vwConversationDetailArtifacts
|
|
27548
|
+
* * @description Junction table tracking many-to-many relationship between conversation messages and artifact versions, with directionality tracking
|
|
27549
|
+
* * Primary Key: ID
|
|
27550
|
+
* @extends {BaseEntity}
|
|
27551
|
+
* @class
|
|
27552
|
+
* @public
|
|
27553
|
+
*/
|
|
27554
|
+
export declare class ConversationDetailArtifactEntity extends BaseEntity<ConversationDetailArtifactEntityType> {
|
|
27555
|
+
/**
|
|
27556
|
+
* Loads the MJ: Conversation Detail Artifacts record from the database
|
|
27557
|
+
* @param ID: string - primary key value to load the MJ: Conversation Detail Artifacts record.
|
|
27558
|
+
* @param EntityRelationshipsToLoad - (optional) the relationships to load
|
|
27559
|
+
* @returns {Promise<boolean>} - true if successful, false otherwise
|
|
27560
|
+
* @public
|
|
27561
|
+
* @async
|
|
27562
|
+
* @memberof ConversationDetailArtifactEntity
|
|
27563
|
+
* @method
|
|
27564
|
+
* @override
|
|
27565
|
+
*/
|
|
27566
|
+
Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
|
|
27567
|
+
/**
|
|
27568
|
+
* * Field Name: ID
|
|
27569
|
+
* * Display Name: ID
|
|
27570
|
+
* * SQL Data Type: uniqueidentifier
|
|
27571
|
+
* * Default Value: newsequentialid()
|
|
27572
|
+
*/
|
|
27573
|
+
get ID(): string;
|
|
27574
|
+
set ID(value: string);
|
|
27575
|
+
/**
|
|
27576
|
+
* * Field Name: ConversationDetailID
|
|
27577
|
+
* * Display Name: Conversation Detail ID
|
|
27578
|
+
* * SQL Data Type: uniqueidentifier
|
|
27579
|
+
* * Related Entity/Foreign Key: Conversation Details (vwConversationDetails.ID)
|
|
27580
|
+
* * Description: Foreign key to ConversationDetail - the conversation message associated with this artifact
|
|
27581
|
+
*/
|
|
27582
|
+
get ConversationDetailID(): string;
|
|
27583
|
+
set ConversationDetailID(value: string);
|
|
27584
|
+
/**
|
|
27585
|
+
* * Field Name: ArtifactVersionID
|
|
27586
|
+
* * Display Name: Artifact Version ID
|
|
27587
|
+
* * SQL Data Type: uniqueidentifier
|
|
27588
|
+
* * Related Entity/Foreign Key: MJ: Artifact Versions (vwArtifactVersions.ID)
|
|
27589
|
+
* * Description: Foreign key to ArtifactVersion - the specific artifact version linked to this conversation message
|
|
27590
|
+
*/
|
|
27591
|
+
get ArtifactVersionID(): string;
|
|
27592
|
+
set ArtifactVersionID(value: string);
|
|
27593
|
+
/**
|
|
27594
|
+
* * Field Name: Direction
|
|
27595
|
+
* * Display Name: Direction
|
|
27596
|
+
* * SQL Data Type: nvarchar(20)
|
|
27597
|
+
* * Default Value: Output
|
|
27598
|
+
* * Value List Type: List
|
|
27599
|
+
* * Possible Values
|
|
27600
|
+
* * Input
|
|
27601
|
+
* * Output
|
|
27602
|
+
* * Description: Direction of artifact flow: Input (fed to agent) or Output (produced by agent)
|
|
27603
|
+
*/
|
|
27604
|
+
get Direction(): 'Input' | 'Output';
|
|
27605
|
+
set Direction(value: 'Input' | 'Output');
|
|
27606
|
+
/**
|
|
27607
|
+
* * Field Name: __mj_CreatedAt
|
|
27608
|
+
* * Display Name: Created At
|
|
27609
|
+
* * SQL Data Type: datetimeoffset
|
|
27610
|
+
* * Default Value: getutcdate()
|
|
27611
|
+
*/
|
|
27612
|
+
get __mj_CreatedAt(): Date;
|
|
27613
|
+
/**
|
|
27614
|
+
* * Field Name: __mj_UpdatedAt
|
|
27615
|
+
* * Display Name: Updated At
|
|
27616
|
+
* * SQL Data Type: datetimeoffset
|
|
27617
|
+
* * Default Value: getutcdate()
|
|
27618
|
+
*/
|
|
27619
|
+
get __mj_UpdatedAt(): Date;
|
|
27620
|
+
}
|
|
27456
27621
|
/**
|
|
27457
27622
|
* MJ: Dashboard User Preferences - strongly typed entity sub-class
|
|
27458
27623
|
* * Schema: __mj
|