@memberjunction/core-entities 2.91.0 → 2.92.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.
|
@@ -5851,6 +5851,7 @@ export declare const ComponentLibrarySchema: z.ZodObject<{
|
|
|
5851
5851
|
__mj_CreatedAt: z.ZodDate;
|
|
5852
5852
|
__mj_UpdatedAt: z.ZodDate;
|
|
5853
5853
|
Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Deprecated">, z.ZodLiteral<"Disabled">]>;
|
|
5854
|
+
LintRules: z.ZodNullable<z.ZodString>;
|
|
5854
5855
|
}, "strip", z.ZodTypeAny, {
|
|
5855
5856
|
ID?: string;
|
|
5856
5857
|
__mj_CreatedAt?: Date;
|
|
@@ -5864,6 +5865,7 @@ export declare const ComponentLibrarySchema: z.ZodObject<{
|
|
|
5864
5865
|
GlobalVariable?: string;
|
|
5865
5866
|
CDNUrl?: string;
|
|
5866
5867
|
CDNCssUrl?: string;
|
|
5868
|
+
LintRules?: string;
|
|
5867
5869
|
}, {
|
|
5868
5870
|
ID?: string;
|
|
5869
5871
|
__mj_CreatedAt?: Date;
|
|
@@ -5877,6 +5879,7 @@ export declare const ComponentLibrarySchema: z.ZodObject<{
|
|
|
5877
5879
|
GlobalVariable?: string;
|
|
5878
5880
|
CDNUrl?: string;
|
|
5879
5881
|
CDNCssUrl?: string;
|
|
5882
|
+
LintRules?: string;
|
|
5880
5883
|
}>;
|
|
5881
5884
|
export type ComponentLibraryEntityType = z.infer<typeof ComponentLibrarySchema>;
|
|
5882
5885
|
/**
|
|
@@ -25342,6 +25345,14 @@ export declare class ComponentLibraryEntity extends BaseEntity<ComponentLibraryE
|
|
|
25342
25345
|
*/
|
|
25343
25346
|
get Status(): 'Active' | 'Deprecated' | 'Disabled';
|
|
25344
25347
|
set Status(value: 'Active' | 'Deprecated' | 'Disabled');
|
|
25348
|
+
/**
|
|
25349
|
+
* * Field Name: LintRules
|
|
25350
|
+
* * Display Name: Lint Rules
|
|
25351
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
25352
|
+
* * Description: JSON configuration for library-specific lint rules that are applied during component validation. This field contains structured rules that define how components using this library should be validated, including DOM element requirements, initialization patterns, lifecycle methods, and common error patterns. Example structure: {"initialization": {"constructorName": "Chart", "elementType": "canvas"}, "lifecycle": {"requiredMethods": ["render"], "cleanupMethods": ["destroy"]}}. The linter dynamically applies these rules based on the libraries referenced in a component spec, enabling extensible validation without hardcoding library-specific logic.
|
|
25353
|
+
*/
|
|
25354
|
+
get LintRules(): string | null;
|
|
25355
|
+
set LintRules(value: string | null);
|
|
25345
25356
|
}
|
|
25346
25357
|
/**
|
|
25347
25358
|
* MJ: Component Library Links - strongly typed entity sub-class
|