@enfyra/kernel 1.0.7 → 1.0.8
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/dist/index.d.ts +78 -0
- package/dist/package-metadata.json +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -82,11 +82,89 @@ export class QueryPlanner {
|
|
|
82
82
|
export class MongoBatchAdapter implements BatchFetchAdapter {
|
|
83
83
|
constructor(...args: any[]);
|
|
84
84
|
pkField: string;
|
|
85
|
+
keyOf(value: any): string;
|
|
86
|
+
buildScalarRef(value: any, pkField?: string): any;
|
|
87
|
+
getTargetPkField(targetMeta: TableMeta): string;
|
|
88
|
+
resolveFields(
|
|
89
|
+
fields: string[],
|
|
90
|
+
targetMeta: TableMeta,
|
|
91
|
+
): {
|
|
92
|
+
isPkOnly: boolean;
|
|
93
|
+
nestedDescs: BatchFetchDescriptor[];
|
|
94
|
+
fetchSpec: any;
|
|
95
|
+
};
|
|
96
|
+
fetchOwner(
|
|
97
|
+
targetTable: string,
|
|
98
|
+
fkValues: any[],
|
|
99
|
+
fetchSpec: any,
|
|
100
|
+
desc?: BatchFetchDescriptor,
|
|
101
|
+
): Promise<any[]>;
|
|
102
|
+
fetchInverse(
|
|
103
|
+
targetTable: string,
|
|
104
|
+
fkField: string,
|
|
105
|
+
parentIds: any[],
|
|
106
|
+
fetchSpec: any,
|
|
107
|
+
desc?: BatchFetchDescriptor,
|
|
108
|
+
): Promise<{ docs: any[]; groupKeyField: string }>;
|
|
109
|
+
fetchM2M(
|
|
110
|
+
parentDocs: any[],
|
|
111
|
+
desc: BatchFetchDescriptor,
|
|
112
|
+
parentMeta: TableMeta | undefined,
|
|
113
|
+
targetMeta: TableMeta,
|
|
114
|
+
fetchSpec: any,
|
|
115
|
+
): Promise<{ grouped: Map<string, any[]>; docs: any[] }>;
|
|
116
|
+
resolveOwnerFkKey(desc: BatchFetchDescriptor): string;
|
|
117
|
+
resolveInverseFkField(desc: BatchFetchDescriptor): string;
|
|
118
|
+
resolveParentPk(parentMeta: TableMeta | undefined): string;
|
|
119
|
+
postProcessInverseChild?(
|
|
120
|
+
child: any,
|
|
121
|
+
fkField: string,
|
|
122
|
+
userRequestedFk: boolean,
|
|
123
|
+
): void;
|
|
85
124
|
[key: string]: any;
|
|
86
125
|
}
|
|
87
126
|
export class SqlBatchAdapter implements BatchFetchAdapter {
|
|
88
127
|
constructor(...args: any[]);
|
|
89
128
|
pkField: string;
|
|
129
|
+
keyOf(value: any): string;
|
|
130
|
+
buildScalarRef(value: any, pkField?: string): any;
|
|
131
|
+
getTargetPkField(targetMeta: TableMeta): string;
|
|
132
|
+
resolveFields(
|
|
133
|
+
fields: string[],
|
|
134
|
+
targetMeta: TableMeta,
|
|
135
|
+
): {
|
|
136
|
+
isPkOnly: boolean;
|
|
137
|
+
nestedDescs: BatchFetchDescriptor[];
|
|
138
|
+
fetchSpec: any;
|
|
139
|
+
};
|
|
140
|
+
fetchOwner(
|
|
141
|
+
targetTable: string,
|
|
142
|
+
fkValues: any[],
|
|
143
|
+
fetchSpec: any,
|
|
144
|
+
desc?: BatchFetchDescriptor,
|
|
145
|
+
): Promise<any[]>;
|
|
146
|
+
fetchInverse(
|
|
147
|
+
targetTable: string,
|
|
148
|
+
fkField: string,
|
|
149
|
+
parentIds: any[],
|
|
150
|
+
fetchSpec: any,
|
|
151
|
+
desc?: BatchFetchDescriptor,
|
|
152
|
+
): Promise<{ docs: any[]; groupKeyField: string }>;
|
|
153
|
+
fetchM2M(
|
|
154
|
+
parentDocs: any[],
|
|
155
|
+
desc: BatchFetchDescriptor,
|
|
156
|
+
parentMeta: TableMeta | undefined,
|
|
157
|
+
targetMeta: TableMeta,
|
|
158
|
+
fetchSpec: any,
|
|
159
|
+
): Promise<{ grouped: Map<string, any[]>; docs: any[] }>;
|
|
160
|
+
resolveOwnerFkKey(desc: BatchFetchDescriptor): string;
|
|
161
|
+
resolveInverseFkField(desc: BatchFetchDescriptor): string;
|
|
162
|
+
resolveParentPk(parentMeta: TableMeta | undefined): string;
|
|
163
|
+
postProcessInverseChild?(
|
|
164
|
+
child: any,
|
|
165
|
+
fkField: string,
|
|
166
|
+
userRequestedFk: boolean,
|
|
167
|
+
): void;
|
|
90
168
|
[key: string]: any;
|
|
91
169
|
}
|
|
92
170
|
export class ExecutorEngineService {
|