@permaweb/libs 0.0.68 → 0.0.69
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.cjs +13 -13
- package/dist/index.esm.js +20 -20
- package/dist/index.js +13 -13
- package/dist/types/helpers/types.d.ts +5 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/services/profiles.d.ts +2 -2
- package/dist/types/services/zones.d.ts +2 -2
- package/package.json +1 -1
|
@@ -11,9 +11,13 @@ export type DependencyType = {
|
|
|
11
11
|
export type ProcessReadType = {
|
|
12
12
|
processId: string;
|
|
13
13
|
path?: string;
|
|
14
|
-
|
|
14
|
+
hydrate?: boolean;
|
|
15
|
+
fallbackAction?: string;
|
|
15
16
|
tags?: TagType[];
|
|
16
17
|
};
|
|
18
|
+
export type ReadOptsType = {
|
|
19
|
+
hydrate?: boolean;
|
|
20
|
+
};
|
|
17
21
|
export type ProcessSpawnType = {
|
|
18
22
|
module: string;
|
|
19
23
|
scheduler: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare function init(deps: Helpers.DependencyType): {
|
|
|
14
14
|
path: string;
|
|
15
15
|
data: object;
|
|
16
16
|
}, zoneId: string) => Promise<string | null>;
|
|
17
|
-
getZone: (zoneId: string) => Promise<any | null>;
|
|
17
|
+
getZone: (zoneId: string, opts?: Helpers.ReadOptsType) => Promise<any | null>;
|
|
18
18
|
setZoneRoles: (args: {
|
|
19
19
|
granteeId: string;
|
|
20
20
|
roles: string[];
|
|
@@ -43,7 +43,7 @@ declare function init(deps: Helpers.DependencyType): {
|
|
|
43
43
|
updateProfileVersion: (args: {
|
|
44
44
|
profileId: string;
|
|
45
45
|
}) => Promise<string | null>;
|
|
46
|
-
getProfileById: (profileId: string) => Promise<Helpers.ProfileType | null>;
|
|
46
|
+
getProfileById: (profileId: string, opts?: Helpers.ReadOptsType) => Promise<Helpers.ProfileType | null>;
|
|
47
47
|
getProfileByWalletAddress: (walletAddress: string) => Promise<(Helpers.ProfileType & any) | null>;
|
|
48
48
|
createAtomicAsset: (args: Helpers.AssetCreateArgsType, callback?: (status: any) => void) => Promise<string>;
|
|
49
49
|
getAtomicAsset: (id: string, args?: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DependencyType, ProfileArgsType, ProfileType } from '../helpers/types.ts';
|
|
1
|
+
import { DependencyType, ProfileArgsType, ProfileType, ReadOptsType } from '../helpers/types.ts';
|
|
2
2
|
export declare function createProfileWith(deps: DependencyType): (args: ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
|
|
3
3
|
export declare function updateProfileWith(deps: DependencyType): (args: ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
|
|
4
4
|
export declare function updateProfileVersionWith(deps: DependencyType): (args: {
|
|
5
5
|
profileId: string;
|
|
6
6
|
}) => Promise<string | null>;
|
|
7
|
-
export declare function getProfileByIdWith(deps: DependencyType): (profileId: string) => Promise<ProfileType | null>;
|
|
7
|
+
export declare function getProfileByIdWith(deps: DependencyType): (profileId: string, opts?: ReadOptsType) => Promise<ProfileType | null>;
|
|
8
8
|
export declare function getProfileByWalletAddressWith(deps: DependencyType): (walletAddress: string) => Promise<(ProfileType & any) | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DependencyType, TagType } from '../helpers/types.ts';
|
|
1
|
+
import { DependencyType, ReadOptsType, TagType } from '../helpers/types.ts';
|
|
2
2
|
export declare function createZoneWith(deps: DependencyType): (args: {
|
|
3
3
|
data?: any;
|
|
4
4
|
tags?: TagType[];
|
|
@@ -27,7 +27,7 @@ export declare function updateZoneAuthoritiesWith(deps: DependencyType): (args:
|
|
|
27
27
|
zoneId: string;
|
|
28
28
|
authorityId: string;
|
|
29
29
|
}) => Promise<string | null>;
|
|
30
|
-
export declare function getZoneWith(deps: DependencyType): (zoneId: string) => Promise<any | null>;
|
|
30
|
+
export declare function getZoneWith(deps: DependencyType): (zoneId: string, opts?: ReadOptsType) => Promise<any | null>;
|
|
31
31
|
export declare function transferZoneOwnershipWith(deps: DependencyType): (args: {
|
|
32
32
|
zoneId: string;
|
|
33
33
|
op: "Invite" | "Accept" | "Reject" | "Cancel";
|