Skip to content

Commit b0c4d26

Browse files
committed
[pocketbase#289] exported HealthService interfaces
1 parent 09f38c5 commit b0c4d26

File tree

5 files changed

+102
-101
lines changed

5 files changed

+102
-101
lines changed

dist/pocketbase.es.d.mts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,52 +1255,6 @@ declare class ClientResponseError extends Error {
12551255
*/
12561256
toJSON(): this;
12571257
}
1258-
/**
1259-
* The default token store for browsers with auto fallback
1260-
* to runtime/memory if local storage is undefined (eg. in node env).
1261-
*/
1262-
declare class LocalAuthStore extends BaseAuthStore {
1263-
private storageFallback;
1264-
private storageKey;
1265-
constructor(storageKey?: string);
1266-
/**
1267-
* @inheritdoc
1268-
*/
1269-
get token(): string;
1270-
/**
1271-
* @inheritdoc
1272-
*/
1273-
get model(): AuthModel;
1274-
/**
1275-
* @inheritdoc
1276-
*/
1277-
save(token: string, model?: AuthModel): void;
1278-
/**
1279-
* @inheritdoc
1280-
*/
1281-
clear(): void;
1282-
// ---------------------------------------------------------------
1283-
// Internal helpers:
1284-
// ---------------------------------------------------------------
1285-
/**
1286-
* Retrieves `key` from the browser's local storage
1287-
* (or runtime/memory if local storage is undefined).
1288-
*/
1289-
private _storageGet;
1290-
/**
1291-
* Stores a new data in the browser's local storage
1292-
* (or runtime/memory if local storage is undefined).
1293-
*/
1294-
private _storageSet;
1295-
/**
1296-
* Removes `key` from the browser's local storage and the runtime/memory.
1297-
*/
1298-
private _storageRemove;
1299-
/**
1300-
* Updates the current store state on localStorage change.
1301-
*/
1302-
private _bindStorageEvent;
1303-
}
13041258
type AsyncSaveFunc = (serializedPayload: string) => Promise<void>;
13051259
type AsyncClearFunc = () => Promise<void>;
13061260
/**
@@ -1359,6 +1313,52 @@ declare class AsyncAuthStore extends BaseAuthStore {
13591313
*/
13601314
private _dequeue;
13611315
}
1316+
/**
1317+
* The default token store for browsers with auto fallback
1318+
* to runtime/memory if local storage is undefined (eg. in node env).
1319+
*/
1320+
declare class LocalAuthStore extends BaseAuthStore {
1321+
private storageFallback;
1322+
private storageKey;
1323+
constructor(storageKey?: string);
1324+
/**
1325+
* @inheritdoc
1326+
*/
1327+
get token(): string;
1328+
/**
1329+
* @inheritdoc
1330+
*/
1331+
get model(): AuthModel;
1332+
/**
1333+
* @inheritdoc
1334+
*/
1335+
save(token: string, model?: AuthModel): void;
1336+
/**
1337+
* @inheritdoc
1338+
*/
1339+
clear(): void;
1340+
// ---------------------------------------------------------------
1341+
// Internal helpers:
1342+
// ---------------------------------------------------------------
1343+
/**
1344+
* Retrieves `key` from the browser's local storage
1345+
* (or runtime/memory if local storage is undefined).
1346+
*/
1347+
private _storageGet;
1348+
/**
1349+
* Stores a new data in the browser's local storage
1350+
* (or runtime/memory if local storage is undefined).
1351+
*/
1352+
private _storageSet;
1353+
/**
1354+
* Removes `key` from the browser's local storage and the runtime/memory.
1355+
*/
1356+
private _storageRemove;
1357+
/**
1358+
* Updates the current store state on localStorage change.
1359+
*/
1360+
private _bindStorageEvent;
1361+
}
13621362
/**
13631363
* Returns JWT token's payload data.
13641364
*/
@@ -1374,4 +1374,4 @@ declare function getTokenPayload(token: string): {
13741374
* @param [expirationThreshold] Time in seconds that will be subtracted from the token `exp` property.
13751375
*/
13761376
declare function isTokenExpired(token: string, expirationThreshold?: number): boolean;
1377-
export { Client as default, BeforeSendResult, ClientResponseError, ListResult, BaseModel, AdminModel, SchemaField, CollectionModel, ExternalAuthModel, LogModel, RecordModel, SendOptions, CommonOptions, ListOptions, FullListOptions, RecordOptions, RecordListOptions, RecordFullListOptions, LogStatsOptions, FileOptions, AuthOptions, normalizeUnknownQueryParams, CrudService, AdminAuthResponse, AdminService, CollectionService, HourlyStats, LogService, UnsubscribeFunc, RealtimeService, RecordAuthResponse, AuthProviderInfo, AuthMethodsList, RecordSubscription, OAuth2UrlCallback, OAuth2AuthConfig, RecordService, AuthModel, OnStoreChangeFunc, BaseAuthStore, LocalAuthStore, AsyncSaveFunc, AsyncClearFunc, AsyncAuthStore, getTokenPayload, isTokenExpired, ParseOptions, cookieParse, SerializeOptions, cookieSerialize };
1377+
export { Client as default, BeforeSendResult, ClientResponseError, AdminAuthResponse, AdminService, CollectionService, HealthCheckResponse, HealthService, HourlyStats, LogService, UnsubscribeFunc, RealtimeService, RecordAuthResponse, AuthProviderInfo, AuthMethodsList, RecordSubscription, OAuth2UrlCallback, OAuth2AuthConfig, RecordService, CrudService, ListResult, BaseModel, AdminModel, SchemaField, CollectionModel, ExternalAuthModel, LogModel, RecordModel, SendOptions, CommonOptions, ListOptions, FullListOptions, RecordOptions, RecordListOptions, RecordFullListOptions, LogStatsOptions, FileOptions, AuthOptions, normalizeUnknownQueryParams, AsyncSaveFunc, AsyncClearFunc, AsyncAuthStore, AuthModel, OnStoreChangeFunc, BaseAuthStore, LocalAuthStore, ParseOptions, cookieParse, SerializeOptions, cookieSerialize, getTokenPayload, isTokenExpired };

dist/pocketbase.es.d.ts

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,52 +1255,6 @@ declare class ClientResponseError extends Error {
12551255
*/
12561256
toJSON(): this;
12571257
}
1258-
/**
1259-
* The default token store for browsers with auto fallback
1260-
* to runtime/memory if local storage is undefined (eg. in node env).
1261-
*/
1262-
declare class LocalAuthStore extends BaseAuthStore {
1263-
private storageFallback;
1264-
private storageKey;
1265-
constructor(storageKey?: string);
1266-
/**
1267-
* @inheritdoc
1268-
*/
1269-
get token(): string;
1270-
/**
1271-
* @inheritdoc
1272-
*/
1273-
get model(): AuthModel;
1274-
/**
1275-
* @inheritdoc
1276-
*/
1277-
save(token: string, model?: AuthModel): void;
1278-
/**
1279-
* @inheritdoc
1280-
*/
1281-
clear(): void;
1282-
// ---------------------------------------------------------------
1283-
// Internal helpers:
1284-
// ---------------------------------------------------------------
1285-
/**
1286-
* Retrieves `key` from the browser's local storage
1287-
* (or runtime/memory if local storage is undefined).
1288-
*/
1289-
private _storageGet;
1290-
/**
1291-
* Stores a new data in the browser's local storage
1292-
* (or runtime/memory if local storage is undefined).
1293-
*/
1294-
private _storageSet;
1295-
/**
1296-
* Removes `key` from the browser's local storage and the runtime/memory.
1297-
*/
1298-
private _storageRemove;
1299-
/**
1300-
* Updates the current store state on localStorage change.
1301-
*/
1302-
private _bindStorageEvent;
1303-
}
13041258
type AsyncSaveFunc = (serializedPayload: string) => Promise<void>;
13051259
type AsyncClearFunc = () => Promise<void>;
13061260
/**
@@ -1359,6 +1313,52 @@ declare class AsyncAuthStore extends BaseAuthStore {
13591313
*/
13601314
private _dequeue;
13611315
}
1316+
/**
1317+
* The default token store for browsers with auto fallback
1318+
* to runtime/memory if local storage is undefined (eg. in node env).
1319+
*/
1320+
declare class LocalAuthStore extends BaseAuthStore {
1321+
private storageFallback;
1322+
private storageKey;
1323+
constructor(storageKey?: string);
1324+
/**
1325+
* @inheritdoc
1326+
*/
1327+
get token(): string;
1328+
/**
1329+
* @inheritdoc
1330+
*/
1331+
get model(): AuthModel;
1332+
/**
1333+
* @inheritdoc
1334+
*/
1335+
save(token: string, model?: AuthModel): void;
1336+
/**
1337+
* @inheritdoc
1338+
*/
1339+
clear(): void;
1340+
// ---------------------------------------------------------------
1341+
// Internal helpers:
1342+
// ---------------------------------------------------------------
1343+
/**
1344+
* Retrieves `key` from the browser's local storage
1345+
* (or runtime/memory if local storage is undefined).
1346+
*/
1347+
private _storageGet;
1348+
/**
1349+
* Stores a new data in the browser's local storage
1350+
* (or runtime/memory if local storage is undefined).
1351+
*/
1352+
private _storageSet;
1353+
/**
1354+
* Removes `key` from the browser's local storage and the runtime/memory.
1355+
*/
1356+
private _storageRemove;
1357+
/**
1358+
* Updates the current store state on localStorage change.
1359+
*/
1360+
private _bindStorageEvent;
1361+
}
13621362
/**
13631363
* Returns JWT token's payload data.
13641364
*/
@@ -1374,4 +1374,4 @@ declare function getTokenPayload(token: string): {
13741374
* @param [expirationThreshold] Time in seconds that will be subtracted from the token `exp` property.
13751375
*/
13761376
declare function isTokenExpired(token: string, expirationThreshold?: number): boolean;
1377-
export { Client as default, BeforeSendResult, ClientResponseError, ListResult, BaseModel, AdminModel, SchemaField, CollectionModel, ExternalAuthModel, LogModel, RecordModel, SendOptions, CommonOptions, ListOptions, FullListOptions, RecordOptions, RecordListOptions, RecordFullListOptions, LogStatsOptions, FileOptions, AuthOptions, normalizeUnknownQueryParams, CrudService, AdminAuthResponse, AdminService, CollectionService, HourlyStats, LogService, UnsubscribeFunc, RealtimeService, RecordAuthResponse, AuthProviderInfo, AuthMethodsList, RecordSubscription, OAuth2UrlCallback, OAuth2AuthConfig, RecordService, AuthModel, OnStoreChangeFunc, BaseAuthStore, LocalAuthStore, AsyncSaveFunc, AsyncClearFunc, AsyncAuthStore, getTokenPayload, isTokenExpired, ParseOptions, cookieParse, SerializeOptions, cookieSerialize };
1377+
export { Client as default, BeforeSendResult, ClientResponseError, AdminAuthResponse, AdminService, CollectionService, HealthCheckResponse, HealthService, HourlyStats, LogService, UnsubscribeFunc, RealtimeService, RecordAuthResponse, AuthProviderInfo, AuthMethodsList, RecordSubscription, OAuth2UrlCallback, OAuth2AuthConfig, RecordService, CrudService, ListResult, BaseModel, AdminModel, SchemaField, CollectionModel, ExternalAuthModel, LogModel, RecordModel, SendOptions, CommonOptions, ListOptions, FullListOptions, RecordOptions, RecordListOptions, RecordFullListOptions, LogStatsOptions, FileOptions, AuthOptions, normalizeUnknownQueryParams, AsyncSaveFunc, AsyncClearFunc, AsyncAuthStore, AuthModel, OnStoreChangeFunc, BaseAuthStore, LocalAuthStore, ParseOptions, cookieParse, SerializeOptions, cookieSerialize, getTokenPayload, isTokenExpired };

dist/pocketbase.es.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/pocketbase.es.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@ import Client from "@/Client";
22

33
export * from "@/Client";
44
export * from "@/ClientResponseError";
5-
export * from "@/services/utils/dtos";
6-
export * from "@/services/utils/options";
7-
export * from "@/services/utils/CrudService";
85
export * from "@/services/AdminService";
96
export * from "@/services/CollectionService";
7+
export * from "@/services/HealthService";
108
export * from "@/services/LogService";
119
export * from "@/services/RealtimeService";
1210
export * from "@/services/RecordService";
11+
export * from "@/services/utils/CrudService";
12+
export * from "@/services/utils/dtos";
13+
export * from "@/services/utils/options";
14+
export * from "@/stores/AsyncAuthStore";
1315
export * from "@/stores/BaseAuthStore";
1416
export * from "@/stores/LocalAuthStore";
15-
export * from "@/stores/AsyncAuthStore";
16-
export * from "@/stores/utils/jwt";
1717
export * from "@/stores/utils/cookie";
18+
export * from "@/stores/utils/jwt";
1819

1920
export default Client;

0 commit comments

Comments
 (0)