@memberjunction/core-entities 5.3.1 → 5.4.1

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.
@@ -463,7 +463,7 @@ export const MJActionParamSchema = z.object({
463
463
  * * Input
464
464
  * * Output
465
465
  * * Description: Specifies whether this parameter is used for Input, Output, or Both directions in the action execution flow.`),
466
- ValueType: z.union([z.literal('BaseEntity Sub-Class'), z.literal('BaseEntity Sub-Class'), z.literal('MediaOutput'), z.literal('Other'), z.literal('Scalar'), z.literal('Other'), z.literal('Scalar'), z.literal('Simple Object'), z.literal('Simple Object')]).describe(`
466
+ ValueType: z.union([z.literal('BaseEntity Sub-Class'), z.literal('BaseEntity Sub-Class'), z.literal('Other'), z.literal('MediaOutput'), z.literal('Other'), z.literal('Scalar'), z.literal('Scalar'), z.literal('Simple Object'), z.literal('Simple Object')]).describe(`
467
467
  * * Field Name: ValueType
468
468
  * * Display Name: Value Type
469
469
  * * SQL Data Type: nvarchar(30)
@@ -473,9 +473,9 @@ export const MJActionParamSchema = z.object({
473
473
  * * BaseEntity Sub-Class
474
474
  * * Other
475
475
  * * MediaOutput
476
- * * Scalar
477
476
  * * Other
478
477
  * * Scalar
478
+ * * Scalar
479
479
  * * Simple Object
480
480
  * * Simple Object
481
481
  * * Description: Tracks the basic value type of the parameter, additional information can be provided in the Description field`),
@@ -18944,6 +18944,132 @@ export const MJTestRunFeedbackSchema = z.object({
18944
18944
  * * Display Name: Reviewer User
18945
18945
  * * SQL Data Type: nvarchar(100)`),
18946
18946
  });
18947
+ /**
18948
+ * zod schema definition for the entity MJ: Test Run Output Types
18949
+ */
18950
+ export const MJTestRunOutputTypeSchema = z.object({
18951
+ ID: z.string().describe(`
18952
+ * * Field Name: ID
18953
+ * * Display Name: ID
18954
+ * * SQL Data Type: uniqueidentifier
18955
+ * * Default Value: newsequentialid()`),
18956
+ Name: z.string().describe(`
18957
+ * * Field Name: Name
18958
+ * * Display Name: Name
18959
+ * * SQL Data Type: nvarchar(100)
18960
+ * * Description: Unique name identifying this output type (e.g., Screenshot, Log, Data, Video)`),
18961
+ Description: z.string().nullable().describe(`
18962
+ * * Field Name: Description
18963
+ * * Display Name: Description
18964
+ * * SQL Data Type: nvarchar(MAX)
18965
+ * * Description: Description of what this output type represents and when it is used`),
18966
+ __mj_CreatedAt: z.date().describe(`
18967
+ * * Field Name: __mj_CreatedAt
18968
+ * * Display Name: Created At
18969
+ * * SQL Data Type: datetimeoffset
18970
+ * * Default Value: getutcdate()`),
18971
+ __mj_UpdatedAt: z.date().describe(`
18972
+ * * Field Name: __mj_UpdatedAt
18973
+ * * Display Name: Updated At
18974
+ * * SQL Data Type: datetimeoffset
18975
+ * * Default Value: getutcdate()`),
18976
+ });
18977
+ /**
18978
+ * zod schema definition for the entity MJ: Test Run Outputs
18979
+ */
18980
+ export const MJTestRunOutputSchema = z.object({
18981
+ ID: z.string().describe(`
18982
+ * * Field Name: ID
18983
+ * * Display Name: ID
18984
+ * * SQL Data Type: uniqueidentifier
18985
+ * * Default Value: newsequentialid()`),
18986
+ TestRunID: z.string().describe(`
18987
+ * * Field Name: TestRunID
18988
+ * * Display Name: Test Run
18989
+ * * SQL Data Type: uniqueidentifier
18990
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
18991
+ * * Description: Foreign key to the parent test run that produced this output`),
18992
+ OutputTypeID: z.string().describe(`
18993
+ * * Field Name: OutputTypeID
18994
+ * * Display Name: Output Type
18995
+ * * SQL Data Type: uniqueidentifier
18996
+ * * Related Entity/Foreign Key: MJ: Test Run Output Types (vwTestRunOutputTypes.ID)
18997
+ * * Description: Foreign key to the output type category (Screenshot, Log, Video, etc.)`),
18998
+ Sequence: z.number().describe(`
18999
+ * * Field Name: Sequence
19000
+ * * Display Name: Sequence
19001
+ * * SQL Data Type: int
19002
+ * * Default Value: 0
19003
+ * * Description: Chronological ordering for storyboarding outputs across steps`),
19004
+ StepNumber: z.number().nullable().describe(`
19005
+ * * Field Name: StepNumber
19006
+ * * Display Name: Step Number
19007
+ * * SQL Data Type: int
19008
+ * * Description: Which step produced this output, for step-based tests like Computer Use`),
19009
+ Name: z.string().nullable().describe(`
19010
+ * * Field Name: Name
19011
+ * * Display Name: Name
19012
+ * * SQL Data Type: nvarchar(255)
19013
+ * * Description: Human-readable label for this output (e.g., Step 3 Screenshot)`),
19014
+ Description: z.string().nullable().describe(`
19015
+ * * Field Name: Description
19016
+ * * Display Name: Description
19017
+ * * SQL Data Type: nvarchar(MAX)
19018
+ * * Description: Additional context about this output`),
19019
+ MimeType: z.string().nullable().describe(`
19020
+ * * Field Name: MimeType
19021
+ * * Display Name: MIME Type
19022
+ * * SQL Data Type: nvarchar(100)
19023
+ * * Description: MIME type of the output data (e.g., image/png, text/plain, application/json, video/mp4)`),
19024
+ InlineData: z.string().nullable().describe(`
19025
+ * * Field Name: InlineData
19026
+ * * Display Name: Inline Data
19027
+ * * SQL Data Type: nvarchar(MAX)
19028
+ * * Description: Base64-encoded binary data (images, audio, video) or text content (logs, JSON, HTML)`),
19029
+ FileSizeBytes: z.number().nullable().describe(`
19030
+ * * Field Name: FileSizeBytes
19031
+ * * Display Name: File Size (Bytes)
19032
+ * * SQL Data Type: int
19033
+ * * Description: Size of the output data in bytes`),
19034
+ Width: z.number().nullable().describe(`
19035
+ * * Field Name: Width
19036
+ * * Display Name: Width
19037
+ * * SQL Data Type: int
19038
+ * * Description: Width in pixels for image or video outputs`),
19039
+ Height: z.number().nullable().describe(`
19040
+ * * Field Name: Height
19041
+ * * Display Name: Height
19042
+ * * SQL Data Type: int
19043
+ * * Description: Height in pixels for image or video outputs`),
19044
+ DurationSeconds: z.number().nullable().describe(`
19045
+ * * Field Name: DurationSeconds
19046
+ * * Display Name: Duration (Seconds)
19047
+ * * SQL Data Type: decimal(10, 3)
19048
+ * * Description: Duration in seconds for audio or video outputs`),
19049
+ Metadata: z.string().nullable().describe(`
19050
+ * * Field Name: Metadata
19051
+ * * Display Name: Technical Metadata
19052
+ * * SQL Data Type: nvarchar(MAX)
19053
+ * * Description: JSON object with additional metadata about this output (e.g., URL at time of capture, tool calls, error info)`),
19054
+ __mj_CreatedAt: z.date().describe(`
19055
+ * * Field Name: __mj_CreatedAt
19056
+ * * Display Name: Created At
19057
+ * * SQL Data Type: datetimeoffset
19058
+ * * Default Value: getutcdate()`),
19059
+ __mj_UpdatedAt: z.date().describe(`
19060
+ * * Field Name: __mj_UpdatedAt
19061
+ * * Display Name: Updated At
19062
+ * * SQL Data Type: datetimeoffset
19063
+ * * Default Value: getutcdate()`),
19064
+ TestRun: z.string().describe(`
19065
+ * * Field Name: TestRun
19066
+ * * Display Name: Test Run Name
19067
+ * * SQL Data Type: nvarchar(255)`),
19068
+ OutputType: z.string().describe(`
19069
+ * * Field Name: OutputType
19070
+ * * Display Name: Output Type Name
19071
+ * * SQL Data Type: nvarchar(100)`),
19072
+ });
18947
19073
  /**
18948
19074
  * zod schema definition for the entity MJ: Test Runs
18949
19075
  */
@@ -22380,9 +22506,9 @@ let MJActionParamEntity = class MJActionParamEntity extends BaseEntity {
22380
22506
  * * BaseEntity Sub-Class
22381
22507
  * * Other
22382
22508
  * * MediaOutput
22383
- * * Scalar
22384
22509
  * * Other
22385
22510
  * * Scalar
22511
+ * * Scalar
22386
22512
  * * Simple Object
22387
22513
  * * Simple Object
22388
22514
  * * Description: Tracks the basic value type of the parameter, additional information can be provided in the Description field
@@ -69429,6 +69555,329 @@ MJTestRunFeedbackEntity = __decorate([
69429
69555
  RegisterClass(BaseEntity, 'MJ: Test Run Feedbacks')
69430
69556
  ], MJTestRunFeedbackEntity);
69431
69557
  export { MJTestRunFeedbackEntity };
69558
+ /**
69559
+ * MJ: Test Run Output Types - strongly typed entity sub-class
69560
+ * * Schema: __mj
69561
+ * * Base Table: TestRunOutputType
69562
+ * * Base View: vwTestRunOutputTypes
69563
+ * * Primary Key: ID
69564
+ * @extends {BaseEntity}
69565
+ * @class
69566
+ * @public
69567
+ */
69568
+ let MJTestRunOutputTypeEntity = class MJTestRunOutputTypeEntity extends BaseEntity {
69569
+ /**
69570
+ * Loads the MJ: Test Run Output Types record from the database
69571
+ * @param ID: string - primary key value to load the MJ: Test Run Output Types record.
69572
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
69573
+ * @returns {Promise<boolean>} - true if successful, false otherwise
69574
+ * @public
69575
+ * @async
69576
+ * @memberof MJTestRunOutputTypeEntity
69577
+ * @method
69578
+ * @override
69579
+ */
69580
+ async Load(ID, EntityRelationshipsToLoad) {
69581
+ const compositeKey = new CompositeKey();
69582
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
69583
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
69584
+ }
69585
+ /**
69586
+ * * Field Name: ID
69587
+ * * Display Name: ID
69588
+ * * SQL Data Type: uniqueidentifier
69589
+ * * Default Value: newsequentialid()
69590
+ */
69591
+ get ID() {
69592
+ return this.Get('ID');
69593
+ }
69594
+ set ID(value) {
69595
+ this.Set('ID', value);
69596
+ }
69597
+ /**
69598
+ * * Field Name: Name
69599
+ * * Display Name: Name
69600
+ * * SQL Data Type: nvarchar(100)
69601
+ * * Description: Unique name identifying this output type (e.g., Screenshot, Log, Data, Video)
69602
+ */
69603
+ get Name() {
69604
+ return this.Get('Name');
69605
+ }
69606
+ set Name(value) {
69607
+ this.Set('Name', value);
69608
+ }
69609
+ /**
69610
+ * * Field Name: Description
69611
+ * * Display Name: Description
69612
+ * * SQL Data Type: nvarchar(MAX)
69613
+ * * Description: Description of what this output type represents and when it is used
69614
+ */
69615
+ get Description() {
69616
+ return this.Get('Description');
69617
+ }
69618
+ set Description(value) {
69619
+ this.Set('Description', value);
69620
+ }
69621
+ /**
69622
+ * * Field Name: __mj_CreatedAt
69623
+ * * Display Name: Created At
69624
+ * * SQL Data Type: datetimeoffset
69625
+ * * Default Value: getutcdate()
69626
+ */
69627
+ get __mj_CreatedAt() {
69628
+ return this.Get('__mj_CreatedAt');
69629
+ }
69630
+ /**
69631
+ * * Field Name: __mj_UpdatedAt
69632
+ * * Display Name: Updated At
69633
+ * * SQL Data Type: datetimeoffset
69634
+ * * Default Value: getutcdate()
69635
+ */
69636
+ get __mj_UpdatedAt() {
69637
+ return this.Get('__mj_UpdatedAt');
69638
+ }
69639
+ };
69640
+ MJTestRunOutputTypeEntity = __decorate([
69641
+ RegisterClass(BaseEntity, 'MJ: Test Run Output Types')
69642
+ ], MJTestRunOutputTypeEntity);
69643
+ export { MJTestRunOutputTypeEntity };
69644
+ /**
69645
+ * MJ: Test Run Outputs - strongly typed entity sub-class
69646
+ * * Schema: __mj
69647
+ * * Base Table: TestRunOutput
69648
+ * * Base View: vwTestRunOutputs
69649
+ * * Primary Key: ID
69650
+ * @extends {BaseEntity}
69651
+ * @class
69652
+ * @public
69653
+ */
69654
+ let MJTestRunOutputEntity = class MJTestRunOutputEntity extends BaseEntity {
69655
+ /**
69656
+ * Loads the MJ: Test Run Outputs record from the database
69657
+ * @param ID: string - primary key value to load the MJ: Test Run Outputs record.
69658
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
69659
+ * @returns {Promise<boolean>} - true if successful, false otherwise
69660
+ * @public
69661
+ * @async
69662
+ * @memberof MJTestRunOutputEntity
69663
+ * @method
69664
+ * @override
69665
+ */
69666
+ async Load(ID, EntityRelationshipsToLoad) {
69667
+ const compositeKey = new CompositeKey();
69668
+ compositeKey.KeyValuePairs.push({ FieldName: 'ID', Value: ID });
69669
+ return await super.InnerLoad(compositeKey, EntityRelationshipsToLoad);
69670
+ }
69671
+ /**
69672
+ * * Field Name: ID
69673
+ * * Display Name: ID
69674
+ * * SQL Data Type: uniqueidentifier
69675
+ * * Default Value: newsequentialid()
69676
+ */
69677
+ get ID() {
69678
+ return this.Get('ID');
69679
+ }
69680
+ set ID(value) {
69681
+ this.Set('ID', value);
69682
+ }
69683
+ /**
69684
+ * * Field Name: TestRunID
69685
+ * * Display Name: Test Run
69686
+ * * SQL Data Type: uniqueidentifier
69687
+ * * Related Entity/Foreign Key: MJ: Test Runs (vwTestRuns.ID)
69688
+ * * Description: Foreign key to the parent test run that produced this output
69689
+ */
69690
+ get TestRunID() {
69691
+ return this.Get('TestRunID');
69692
+ }
69693
+ set TestRunID(value) {
69694
+ this.Set('TestRunID', value);
69695
+ }
69696
+ /**
69697
+ * * Field Name: OutputTypeID
69698
+ * * Display Name: Output Type
69699
+ * * SQL Data Type: uniqueidentifier
69700
+ * * Related Entity/Foreign Key: MJ: Test Run Output Types (vwTestRunOutputTypes.ID)
69701
+ * * Description: Foreign key to the output type category (Screenshot, Log, Video, etc.)
69702
+ */
69703
+ get OutputTypeID() {
69704
+ return this.Get('OutputTypeID');
69705
+ }
69706
+ set OutputTypeID(value) {
69707
+ this.Set('OutputTypeID', value);
69708
+ }
69709
+ /**
69710
+ * * Field Name: Sequence
69711
+ * * Display Name: Sequence
69712
+ * * SQL Data Type: int
69713
+ * * Default Value: 0
69714
+ * * Description: Chronological ordering for storyboarding outputs across steps
69715
+ */
69716
+ get Sequence() {
69717
+ return this.Get('Sequence');
69718
+ }
69719
+ set Sequence(value) {
69720
+ this.Set('Sequence', value);
69721
+ }
69722
+ /**
69723
+ * * Field Name: StepNumber
69724
+ * * Display Name: Step Number
69725
+ * * SQL Data Type: int
69726
+ * * Description: Which step produced this output, for step-based tests like Computer Use
69727
+ */
69728
+ get StepNumber() {
69729
+ return this.Get('StepNumber');
69730
+ }
69731
+ set StepNumber(value) {
69732
+ this.Set('StepNumber', value);
69733
+ }
69734
+ /**
69735
+ * * Field Name: Name
69736
+ * * Display Name: Name
69737
+ * * SQL Data Type: nvarchar(255)
69738
+ * * Description: Human-readable label for this output (e.g., Step 3 Screenshot)
69739
+ */
69740
+ get Name() {
69741
+ return this.Get('Name');
69742
+ }
69743
+ set Name(value) {
69744
+ this.Set('Name', value);
69745
+ }
69746
+ /**
69747
+ * * Field Name: Description
69748
+ * * Display Name: Description
69749
+ * * SQL Data Type: nvarchar(MAX)
69750
+ * * Description: Additional context about this output
69751
+ */
69752
+ get Description() {
69753
+ return this.Get('Description');
69754
+ }
69755
+ set Description(value) {
69756
+ this.Set('Description', value);
69757
+ }
69758
+ /**
69759
+ * * Field Name: MimeType
69760
+ * * Display Name: MIME Type
69761
+ * * SQL Data Type: nvarchar(100)
69762
+ * * Description: MIME type of the output data (e.g., image/png, text/plain, application/json, video/mp4)
69763
+ */
69764
+ get MimeType() {
69765
+ return this.Get('MimeType');
69766
+ }
69767
+ set MimeType(value) {
69768
+ this.Set('MimeType', value);
69769
+ }
69770
+ /**
69771
+ * * Field Name: InlineData
69772
+ * * Display Name: Inline Data
69773
+ * * SQL Data Type: nvarchar(MAX)
69774
+ * * Description: Base64-encoded binary data (images, audio, video) or text content (logs, JSON, HTML)
69775
+ */
69776
+ get InlineData() {
69777
+ return this.Get('InlineData');
69778
+ }
69779
+ set InlineData(value) {
69780
+ this.Set('InlineData', value);
69781
+ }
69782
+ /**
69783
+ * * Field Name: FileSizeBytes
69784
+ * * Display Name: File Size (Bytes)
69785
+ * * SQL Data Type: int
69786
+ * * Description: Size of the output data in bytes
69787
+ */
69788
+ get FileSizeBytes() {
69789
+ return this.Get('FileSizeBytes');
69790
+ }
69791
+ set FileSizeBytes(value) {
69792
+ this.Set('FileSizeBytes', value);
69793
+ }
69794
+ /**
69795
+ * * Field Name: Width
69796
+ * * Display Name: Width
69797
+ * * SQL Data Type: int
69798
+ * * Description: Width in pixels for image or video outputs
69799
+ */
69800
+ get Width() {
69801
+ return this.Get('Width');
69802
+ }
69803
+ set Width(value) {
69804
+ this.Set('Width', value);
69805
+ }
69806
+ /**
69807
+ * * Field Name: Height
69808
+ * * Display Name: Height
69809
+ * * SQL Data Type: int
69810
+ * * Description: Height in pixels for image or video outputs
69811
+ */
69812
+ get Height() {
69813
+ return this.Get('Height');
69814
+ }
69815
+ set Height(value) {
69816
+ this.Set('Height', value);
69817
+ }
69818
+ /**
69819
+ * * Field Name: DurationSeconds
69820
+ * * Display Name: Duration (Seconds)
69821
+ * * SQL Data Type: decimal(10, 3)
69822
+ * * Description: Duration in seconds for audio or video outputs
69823
+ */
69824
+ get DurationSeconds() {
69825
+ return this.Get('DurationSeconds');
69826
+ }
69827
+ set DurationSeconds(value) {
69828
+ this.Set('DurationSeconds', value);
69829
+ }
69830
+ /**
69831
+ * * Field Name: Metadata
69832
+ * * Display Name: Technical Metadata
69833
+ * * SQL Data Type: nvarchar(MAX)
69834
+ * * Description: JSON object with additional metadata about this output (e.g., URL at time of capture, tool calls, error info)
69835
+ */
69836
+ get Metadata() {
69837
+ return this.Get('Metadata');
69838
+ }
69839
+ set Metadata(value) {
69840
+ this.Set('Metadata', value);
69841
+ }
69842
+ /**
69843
+ * * Field Name: __mj_CreatedAt
69844
+ * * Display Name: Created At
69845
+ * * SQL Data Type: datetimeoffset
69846
+ * * Default Value: getutcdate()
69847
+ */
69848
+ get __mj_CreatedAt() {
69849
+ return this.Get('__mj_CreatedAt');
69850
+ }
69851
+ /**
69852
+ * * Field Name: __mj_UpdatedAt
69853
+ * * Display Name: Updated At
69854
+ * * SQL Data Type: datetimeoffset
69855
+ * * Default Value: getutcdate()
69856
+ */
69857
+ get __mj_UpdatedAt() {
69858
+ return this.Get('__mj_UpdatedAt');
69859
+ }
69860
+ /**
69861
+ * * Field Name: TestRun
69862
+ * * Display Name: Test Run Name
69863
+ * * SQL Data Type: nvarchar(255)
69864
+ */
69865
+ get TestRun() {
69866
+ return this.Get('TestRun');
69867
+ }
69868
+ /**
69869
+ * * Field Name: OutputType
69870
+ * * Display Name: Output Type Name
69871
+ * * SQL Data Type: nvarchar(100)
69872
+ */
69873
+ get OutputType() {
69874
+ return this.Get('OutputType');
69875
+ }
69876
+ };
69877
+ MJTestRunOutputEntity = __decorate([
69878
+ RegisterClass(BaseEntity, 'MJ: Test Run Outputs')
69879
+ ], MJTestRunOutputEntity);
69880
+ export { MJTestRunOutputEntity };
69432
69881
  /**
69433
69882
  * MJ: Test Runs - strongly typed entity sub-class
69434
69883
  * * Schema: __mj