@junobuild/core 0.0.6 → 0.0.7
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/cjs/index.cjs.js +14 -14
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/declarations/cmc/cmc.did.d.ts +2 -2
- package/dist/declarations/console/console.did.d.ts +1 -1
- package/dist/declarations/frontend/frontend.did +42 -1
- package/dist/declarations/frontend/frontend.did.d.ts +58 -14
- package/dist/declarations/frontend/frontend.factory.did.js +45 -2
- package/dist/declarations/internet_identity/internet_identity.did.d.ts +9 -9
- package/dist/declarations/ledger/ledger.did.d.ts +4 -4
- package/dist/declarations/satellite/satellite.did.d.ts +19 -17
- package/dist/declarations/satellite/satellite.factory.did.js +9 -4
- package/dist/declarations/satellite/satellite.factory.did.mjs +9 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/list.types.d.ts +6 -4
- package/dist/types/utils/did.utils.d.ts +1 -1
- package/dist/types/utils/list.utils.d.ts +2 -8
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './services/doc.services';
|
|
|
4
4
|
export * from './services/storage.services';
|
|
5
5
|
export * from './types/auth.types';
|
|
6
6
|
export * from './types/doc.types';
|
|
7
|
-
export {
|
|
7
|
+
export { ListOrder, ListPaginate, ListParams, ListResults } from './types/list.types';
|
|
8
8
|
export * from './types/satellite.types';
|
|
9
9
|
export * from './types/storage.types';
|
|
10
10
|
import type { User } from './types/auth.types';
|
|
@@ -3,15 +3,17 @@ export interface ListResults<T> {
|
|
|
3
3
|
length: bigint;
|
|
4
4
|
matches_length: bigint;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface ListPaginate {
|
|
7
7
|
startAfter?: string;
|
|
8
8
|
limit?: number;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type ListOrderField = 'keys' | 'updated_at' | 'created_at';
|
|
11
|
+
export interface ListOrder {
|
|
11
12
|
desc: boolean;
|
|
13
|
+
field: ListOrderField;
|
|
12
14
|
}
|
|
13
15
|
export interface ListParams {
|
|
14
16
|
matcher?: string;
|
|
15
|
-
paginate?:
|
|
16
|
-
order?:
|
|
17
|
+
paginate?: ListPaginate;
|
|
18
|
+
order?: ListOrder;
|
|
17
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const toNullable: <T>(value?: T | undefined) => [] | [T];
|
|
2
2
|
export declare const fromNullable: <T>(value: [] | [T]) => T | undefined;
|
|
3
3
|
export declare const toArray: <T>(data: T) => Promise<Uint8Array>;
|
|
4
|
-
export declare const fromArray: <T>(data: Uint8Array) => Promise<T>;
|
|
4
|
+
export declare const fromArray: <T>(data: Uint8Array | number[]) => Promise<T>;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
+
import type { ListParams as ListParamsApi } from '../../declarations/satellite/satellite.did';
|
|
1
2
|
import type { ListParams } from '../types/list.types';
|
|
2
|
-
export declare const toListParams: ({ matcher, paginate, order }: ListParams) =>
|
|
3
|
-
matcher: [] | [string];
|
|
4
|
-
paginate: [] | [{
|
|
5
|
-
start_after: [] | [string];
|
|
6
|
-
limit: [] | [bigint];
|
|
7
|
-
}];
|
|
8
|
-
order: [] | [import("../types/list.types").OrderDocs];
|
|
9
|
-
};
|
|
3
|
+
export declare const toListParams: ({ matcher, paginate, order }: ListParams) => ListParamsApi;
|