@resolveio/server-lib 22.1.0 → 22.1.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.
- package/methods/ai-terminal.d.ts +9 -0
- package/methods/ai-terminal.js +479 -162
- package/methods/ai-terminal.js.map +1 -1
- package/package.json +4 -2
package/methods/ai-terminal.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ export declare function loadAiTerminalMethods(methodManager: any): void;
|
|
|
86
86
|
export declare function executeAiAssistantMongoRead(payload: AiAssistantMongoReadInput, context: any): Promise<any>;
|
|
87
87
|
export declare function executeAiAssistantMongoAggregate(payload: AiAssistantMongoAggregateInput, context: any): Promise<any>;
|
|
88
88
|
export declare function extractAssistantMongoDirective(content: string): AssistantMongoDirective | null;
|
|
89
|
+
export declare function buildAssistantInvoiceCustomerLabelExpr(): Record<string, any>;
|
|
89
90
|
export declare function buildAssistantDatedPivotDisplay(display: AiAssistantDisplayTable, expectedMonths?: string[]): AiAssistantDisplayTable | null;
|
|
90
91
|
export declare function normalizeIdsForTargetField(ids: any[], targetDocs: any[], targetFieldPath: string, targetFieldTypeOverride?: 'objectId' | 'string' | 'unknown'): any[];
|
|
91
92
|
export declare function serializeMongoValue(value: any, maxLength?: number): string | number | boolean | null;
|
|
@@ -101,12 +102,20 @@ export declare function buildDisplayTable(docs: any[], options?: {
|
|
|
101
102
|
includeGroupFromId?: boolean;
|
|
102
103
|
}): AiAssistantDisplayTable;
|
|
103
104
|
export declare function formatDisplayTableMarkdown(display: AiAssistantDisplayTable): string;
|
|
105
|
+
export declare function resolveAssistantReadDisplayMaxRows(limit: number | undefined, rowCount: number): number;
|
|
104
106
|
export declare function normalizeAssistantNowExprPlaceholders(value: any): any;
|
|
105
107
|
export declare function rewriteMatchExpressionsToExpr(match: any): any;
|
|
106
108
|
export declare function normalizeAssistantMonthlyCalendarWindowPipeline(pipeline: Array<Record<string, any>>): Array<Record<string, any>>;
|
|
107
109
|
export declare function stripQueryFieldPathsDeep(query: any, fieldsToStrip: string[]): any;
|
|
108
110
|
export declare function stripScopedFieldsFromPipeline(pipeline: any[], fieldsToStrip: string[]): any[];
|
|
109
111
|
export declare function rewriteEmbeddedMatchObjects(query: any): any;
|
|
112
|
+
export declare function resolveAssistantCollectionOverride(collectionRanking: Record<string, any> | null, currentCollection: string): {
|
|
113
|
+
from: string;
|
|
114
|
+
to: string;
|
|
115
|
+
fromScore: number;
|
|
116
|
+
toScore: number;
|
|
117
|
+
reason: string;
|
|
118
|
+
} | null;
|
|
110
119
|
export declare function collectUserViewPermissions(user: any): string[];
|
|
111
120
|
export declare function userHasInvoiceAccess(user: any): boolean;
|
|
112
121
|
export declare function resolveAssistantUserAccessTier(user: any): 'super_admin' | 'customer_portal' | 'client_user';
|