@memberjunction/core-entities 2.102.0 → 2.103.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.
@@ -5992,6 +5992,38 @@ export declare const ArtifactSchema: z.ZodObject<{
5992
5992
  Environment?: string;
5993
5993
  }>;
5994
5994
  export type ArtifactEntityType = z.infer<typeof ArtifactSchema>;
5995
+ /**
5996
+ * zod schema definition for the entity MJ: Collection Artifacts
5997
+ */
5998
+ export declare const CollectionArtifactSchema: z.ZodObject<{
5999
+ ID: z.ZodString;
6000
+ CollectionID: z.ZodString;
6001
+ ArtifactID: z.ZodString;
6002
+ Sequence: z.ZodNumber;
6003
+ __mj_CreatedAt: z.ZodDate;
6004
+ __mj_UpdatedAt: z.ZodDate;
6005
+ Collection: z.ZodString;
6006
+ Artifact: z.ZodString;
6007
+ }, "strip", z.ZodTypeAny, {
6008
+ ID?: string;
6009
+ __mj_CreatedAt?: Date;
6010
+ __mj_UpdatedAt?: Date;
6011
+ Sequence?: number;
6012
+ ArtifactID?: string;
6013
+ Artifact?: string;
6014
+ CollectionID?: string;
6015
+ Collection?: string;
6016
+ }, {
6017
+ ID?: string;
6018
+ __mj_CreatedAt?: Date;
6019
+ __mj_UpdatedAt?: Date;
6020
+ Sequence?: number;
6021
+ ArtifactID?: string;
6022
+ Artifact?: string;
6023
+ CollectionID?: string;
6024
+ Collection?: string;
6025
+ }>;
6026
+ export type CollectionArtifactEntityType = z.infer<typeof CollectionArtifactSchema>;
5995
6027
  /**
5996
6028
  * zod schema definition for the entity MJ: Collections
5997
6029
  */
@@ -26174,6 +26206,90 @@ export declare class ArtifactEntity extends BaseEntity<ArtifactEntityType> {
26174
26206
  */
26175
26207
  get User(): string;
26176
26208
  }
26209
+ /**
26210
+ * MJ: Collection Artifacts - strongly typed entity sub-class
26211
+ * * Schema: __mj
26212
+ * * Base Table: CollectionArtifact
26213
+ * * Base View: vwCollectionArtifacts
26214
+ * * @description Join table that establishes many-to-many relationships between Collections and Artifacts, allowing artifacts to be organized within collections
26215
+ * * Primary Key: ID
26216
+ * @extends {BaseEntity}
26217
+ * @class
26218
+ * @public
26219
+ */
26220
+ export declare class CollectionArtifactEntity extends BaseEntity<CollectionArtifactEntityType> {
26221
+ /**
26222
+ * Loads the MJ: Collection Artifacts record from the database
26223
+ * @param ID: string - primary key value to load the MJ: Collection Artifacts record.
26224
+ * @param EntityRelationshipsToLoad - (optional) the relationships to load
26225
+ * @returns {Promise<boolean>} - true if successful, false otherwise
26226
+ * @public
26227
+ * @async
26228
+ * @memberof CollectionArtifactEntity
26229
+ * @method
26230
+ * @override
26231
+ */
26232
+ Load(ID: string, EntityRelationshipsToLoad?: string[]): Promise<boolean>;
26233
+ /**
26234
+ * * Field Name: ID
26235
+ * * Display Name: ID
26236
+ * * SQL Data Type: uniqueidentifier
26237
+ * * Default Value: newsequentialid()
26238
+ */
26239
+ get ID(): string;
26240
+ set ID(value: string);
26241
+ /**
26242
+ * * Field Name: CollectionID
26243
+ * * Display Name: Collection ID
26244
+ * * SQL Data Type: uniqueidentifier
26245
+ * * Related Entity/Foreign Key: MJ: Collections (vwCollections.ID)
26246
+ */
26247
+ get CollectionID(): string;
26248
+ set CollectionID(value: string);
26249
+ /**
26250
+ * * Field Name: ArtifactID
26251
+ * * Display Name: Artifact ID
26252
+ * * SQL Data Type: uniqueidentifier
26253
+ * * Related Entity/Foreign Key: MJ: Artifacts (vwArtifacts.ID)
26254
+ */
26255
+ get ArtifactID(): string;
26256
+ set ArtifactID(value: string);
26257
+ /**
26258
+ * * Field Name: Sequence
26259
+ * * Display Name: Sequence
26260
+ * * SQL Data Type: int
26261
+ * * Default Value: 0
26262
+ * * Description: Sequence number for ordering artifacts within a collection
26263
+ */
26264
+ get Sequence(): number;
26265
+ set Sequence(value: number);
26266
+ /**
26267
+ * * Field Name: __mj_CreatedAt
26268
+ * * Display Name: Created At
26269
+ * * SQL Data Type: datetimeoffset
26270
+ * * Default Value: getutcdate()
26271
+ */
26272
+ get __mj_CreatedAt(): Date;
26273
+ /**
26274
+ * * Field Name: __mj_UpdatedAt
26275
+ * * Display Name: Updated At
26276
+ * * SQL Data Type: datetimeoffset
26277
+ * * Default Value: getutcdate()
26278
+ */
26279
+ get __mj_UpdatedAt(): Date;
26280
+ /**
26281
+ * * Field Name: Collection
26282
+ * * Display Name: Collection
26283
+ * * SQL Data Type: nvarchar(255)
26284
+ */
26285
+ get Collection(): string;
26286
+ /**
26287
+ * * Field Name: Artifact
26288
+ * * Display Name: Artifact
26289
+ * * SQL Data Type: nvarchar(255)
26290
+ */
26291
+ get Artifact(): string;
26292
+ }
26177
26293
  /**
26178
26294
  * MJ: Collections - strongly typed entity sub-class
26179
26295
  * * Schema: __mj