@permaweb/libs 0.0.35 → 0.0.36
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 +2 -2
- package/dist/index.cjs.map +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/types/helpers/config.d.ts +1 -1
- package/dist/types/helpers/types.d.ts +1 -0
- package/dist/types/index.d.ts +8 -2
- package/dist/types/services/profiles.d.ts +0 -4
- package/dist/types/services/zones.d.ts +7 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Common from './common/index.ts';
|
|
2
2
|
import * as Helpers from './helpers/index.ts';
|
|
3
3
|
import * as Services from './services/index.ts';
|
|
4
|
+
export * as Types from './helpers/types.ts';
|
|
4
5
|
declare function init(deps: Helpers.DependencyType): {
|
|
5
6
|
createZone: (args: {
|
|
6
7
|
data?: any;
|
|
@@ -13,8 +14,14 @@ declare function init(deps: Helpers.DependencyType): {
|
|
|
13
14
|
}, zoneId: string) => Promise<string | null>;
|
|
14
15
|
getZone: (zoneId: string) => Promise<any | null>;
|
|
15
16
|
setZoneRoles: (args: {
|
|
16
|
-
roles: string[];
|
|
17
17
|
granteeId: string;
|
|
18
|
+
roles: string[];
|
|
19
|
+
type: "wallet" | "process";
|
|
20
|
+
sendInvite: boolean;
|
|
21
|
+
}[], zoneId: string) => Promise<string | null>;
|
|
22
|
+
joinZone: (args: {
|
|
23
|
+
zoneToJoinId: string;
|
|
24
|
+
path?: string;
|
|
18
25
|
}, zoneId: string) => Promise<string | null>;
|
|
19
26
|
createProfile: (args: Helpers.ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
|
|
20
27
|
updateProfile: (args: Helpers.ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
|
|
@@ -69,4 +76,3 @@ declare const _default: {
|
|
|
69
76
|
init: typeof init;
|
|
70
77
|
};
|
|
71
78
|
export default _default;
|
|
72
|
-
export * from './helpers/types.ts';
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { DependencyType, ProfileArgsType, ProfileType } from '../helpers/types.ts';
|
|
2
|
-
export declare function createProfileWith_LEGACY(deps: DependencyType): (args: ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
|
|
3
|
-
export declare function updateProfileWith_LEGACY(deps: DependencyType): (args: ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
|
|
4
|
-
export declare function getProfileByIdWith_LEGACY(deps: DependencyType): (profileId: string) => Promise<ProfileType | null>;
|
|
5
|
-
export declare function getProfileByWalletAddressWith_LEGACY(deps: DependencyType): (walletAddress: string) => Promise<(ProfileType & any) | null>;
|
|
6
2
|
export declare function createProfileWith(deps: DependencyType): (args: ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
|
|
7
3
|
export declare function updateProfileWith(deps: DependencyType): (args: ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
|
|
8
4
|
export declare function getProfileByIdWith(deps: DependencyType): (profileId: string) => Promise<ProfileType | null>;
|
|
@@ -10,6 +10,12 @@ export declare function addToZoneWith(deps: DependencyType): (args: {
|
|
|
10
10
|
}, zoneId: string) => Promise<string | null>;
|
|
11
11
|
export declare function getZoneWith(deps: DependencyType): (zoneId: string) => Promise<any | null>;
|
|
12
12
|
export declare function setZoneRolesWith(deps: DependencyType): (args: {
|
|
13
|
-
roles: string[];
|
|
14
13
|
granteeId: string;
|
|
14
|
+
roles: string[];
|
|
15
|
+
type: "wallet" | "process";
|
|
16
|
+
sendInvite: boolean;
|
|
17
|
+
}[], zoneId: string) => Promise<string | null>;
|
|
18
|
+
export declare function joinZoneWith(deps: DependencyType): (args: {
|
|
19
|
+
zoneToJoinId: string;
|
|
20
|
+
path?: string;
|
|
15
21
|
}, zoneId: string) => Promise<string | null>;
|