@authhero/kysely-adapter 12.15.0 → 12.15.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/dist/kysely-adapter.mjs
CHANGED
|
@@ -1147,15 +1147,17 @@ function Ht(e) {
|
|
|
1147
1147
|
let { ref: t } = e.dynamic;
|
|
1148
1148
|
n = n.orderBy(t(s.sort_by), s.sort_order);
|
|
1149
1149
|
}
|
|
1150
|
-
c && (n = O(e, n, c, ["friendly_name"]));
|
|
1150
|
+
c && (n = O(e, n, c, ["id", "friendly_name"]));
|
|
1151
1151
|
let l = (await n.offset(r * i).limit(i).selectAll().execute()).map(Rt);
|
|
1152
1152
|
if (!a) return { tenants: l };
|
|
1153
1153
|
let { count: u } = await n.select((e) => e.fn.countAll().as("count")).executeTakeFirstOrThrow(), d = o(u);
|
|
1154
1154
|
return {
|
|
1155
1155
|
tenants: l,
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1156
|
+
totals: {
|
|
1157
|
+
start: r * i,
|
|
1158
|
+
limit: i,
|
|
1159
|
+
length: d
|
|
1160
|
+
}
|
|
1159
1161
|
};
|
|
1160
1162
|
};
|
|
1161
1163
|
}
|
|
@@ -184,9 +184,7 @@ export declare function list(db: Kysely<Database>): (params?: ListParams) => Pro
|
|
|
184
184
|
} | undefined;
|
|
185
185
|
is_control_plane?: boolean | undefined;
|
|
186
186
|
}[];
|
|
187
|
-
|
|
188
|
-
limit?: undefined;
|
|
189
|
-
length?: undefined;
|
|
187
|
+
totals?: undefined;
|
|
190
188
|
} | {
|
|
191
189
|
tenants: {
|
|
192
190
|
created_at: string;
|
|
@@ -370,7 +368,9 @@ export declare function list(db: Kysely<Database>): (params?: ListParams) => Pro
|
|
|
370
368
|
} | undefined;
|
|
371
369
|
is_control_plane?: boolean | undefined;
|
|
372
370
|
}[];
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
371
|
+
totals: {
|
|
372
|
+
start: number;
|
|
373
|
+
limit: number;
|
|
374
|
+
length: number;
|
|
375
|
+
};
|
|
376
376
|
}>;
|