@arpproject/vibearp-mcp 1.2.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.
@@ -0,0 +1,139 @@
1
+ /**
2
+ * Tuple type for pairing class name with DescriboInput
3
+ */
4
+ type InputPair = [string, DescriboInput];
5
+ /**
6
+ * DescriboInput class representing a single input field
7
+ */
8
+ declare class DescriboInput {
9
+ private _id?;
10
+ private _name?;
11
+ private _label?;
12
+ private _help?;
13
+ private _type?;
14
+ private _values?;
15
+ private _required;
16
+ private _multiple;
17
+ private _minValue?;
18
+ private _maxValue?;
19
+ private _minLength?;
20
+ private _maxLength?;
21
+ private _regex?;
22
+ private _placeholder?;
23
+ private _numberType?;
24
+ private _dateFormat?;
25
+ private _style?;
26
+ private _deprecated;
27
+ constructor();
28
+ isDeprecated(): boolean;
29
+ setDeprecated(deprecated: boolean): void;
30
+ getId(): string | undefined;
31
+ setId(id: string): void;
32
+ getName(): string | undefined;
33
+ setName(name: string): void;
34
+ getLabel(): string | undefined;
35
+ setLabel(label: string): void;
36
+ getHelp(): string | undefined;
37
+ setHelp(help: string | undefined): void;
38
+ getType(): string[] | undefined;
39
+ setType(type: string[] | undefined): void;
40
+ isRequired(): boolean;
41
+ setRequired(required: boolean): void;
42
+ isMultiple(): boolean;
43
+ setMultiple(multiple: boolean): void;
44
+ getValues(): string[] | undefined;
45
+ setValues(values: string[]): void;
46
+ getMinValue(): number | undefined;
47
+ setMinValue(minValue: number | undefined): void;
48
+ getMaxValue(): number | undefined;
49
+ setMaxValue(maxValue: number | undefined): void;
50
+ getMinLength(): number | undefined;
51
+ setMinLength(minLength: number | undefined): void;
52
+ getMaxLength(): number | undefined;
53
+ setMaxLength(maxLength: number | undefined): void;
54
+ getRegex(): string | undefined;
55
+ setRegex(regex: string | undefined): void;
56
+ getPlaceholder(): string | undefined;
57
+ setPlaceholder(placeholder: string | undefined): void;
58
+ getNumberType(): string[] | undefined;
59
+ setNumberType(numberType: string[] | undefined): void;
60
+ getDateFormat(): string[] | undefined;
61
+ setDateFormat(dateFormat: string[] | undefined): void;
62
+ getStyle(): string | undefined;
63
+ setStyle(style: string | undefined): void;
64
+ /**
65
+ * Convert DescriboInput to plain object for JSON serialization
66
+ */
67
+ toJSON(): any;
68
+ }
69
+ /**
70
+ * ClassLocalization for storing label and help text
71
+ */
72
+ declare class ClassLocalization {
73
+ label: string;
74
+ help: string;
75
+ constructor(label: string, help: string);
76
+ }
77
+ /**
78
+ * ProcessedDescriboProfileValues for storing intermediate processing results
79
+ */
80
+ declare class ProcessedDescriboProfileValues {
81
+ inputs: InputPair[];
82
+ classLocalizations: Map<string, ClassLocalization>;
83
+ constructor(inputs: InputPair[]);
84
+ getInputs(): InputPair[];
85
+ setInputs(inputs: InputPair[]): void;
86
+ }
87
+ export declare class CedarTemplateToDescriboProfileConverter {
88
+ private language;
89
+ private cedarDescriboFieldTypes;
90
+ private cedarDescriboNumberTypes;
91
+ private cedarDescriboDateTypes;
92
+ constructor(language?: string);
93
+ /**
94
+ * Main conversion method - converts CEDAR template to Describo profile
95
+ * @param cedarTemplate - CEDAR template as JSON string
96
+ * @returns - Describo profile as JSON string
97
+ */
98
+ processCedarTemplate(cedarTemplate: string): string;
99
+ /**
100
+ * Check if all children of an input are deprecated
101
+ */
102
+ areAllChildrenDeprecated(input: InputPair, inputs: InputPair[]): boolean;
103
+ /**
104
+ * Process template properties recursively
105
+ */
106
+ processTemplate(cedarTemplate: any, processedDescriboProfileValues: ProcessedDescriboProfileValues, parentName: string): ProcessedDescriboProfileValues;
107
+ /**
108
+ * Process a template field
109
+ */
110
+ processTemplateField(templateField: any, allowMultiple: boolean, inputId: string, processedDescriboProfileValues: ProcessedDescriboProfileValues, parentName: string): void;
111
+ /**
112
+ * "dataverseFile" is a special Template Element in CEDAR that is used to represent file relations
113
+ * this property needs to be handled differently
114
+ */
115
+ private processTemplateElement;
116
+ /**
117
+ * Process array type
118
+ */
119
+ processArray(array: any, processedDescriboProfileValues: ProcessedDescriboProfileValues, inputId: string, parentName: string, propertyLabels: any): void;
120
+ /**
121
+ * Process profile metadata
122
+ */
123
+ private processProfileMetadata;
124
+ /**
125
+ * Get Describo type from template field (overloaded method)
126
+ */
127
+ getDescriboType(templateField: any): string[] | undefined;
128
+ getDescriboType(cedarFieldType: string | null): string[] | undefined;
129
+ /**
130
+ * Get localized label
131
+ */
132
+ getLocalizedLabel(obj: any): string;
133
+ /**
134
+ * Get localized help text
135
+ */
136
+ getLocalizedHelp(obj: any): string | undefined;
137
+ }
138
+ export {};
139
+ //# sourceMappingURL=cedar-converter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cedar-converter.d.ts","sourceRoot":"","sources":["../cedar-converter.ts"],"names":[],"mappings":"AAkJA;;GAEG;AACH,KAAK,SAAS,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAMzC;;GAEG;AACH,cAAM,aAAa;IACf,OAAO,CAAC,GAAG,CAAC,CAAS;IACrB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,KAAK,CAAC,CAAW;IACzB,OAAO,CAAC,OAAO,CAAC,CAAW;IAC3B,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,SAAS,CAAC,CAAS;IAC3B,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAC,CAAS;IAC5B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,WAAW,CAAC,CAAW;IAC/B,OAAO,CAAC,WAAW,CAAC,CAAW;IAC/B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,WAAW,CAAkB;;IAIrC,YAAY,I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