@permaweb/libs 0.0.22 → 0.0.24

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.
@@ -11,30 +11,33 @@ declare function init(deps: Helpers.DependencyType): {
11
11
  data: object;
12
12
  }, zoneId: string) => Promise<string | null>;
13
13
  getZone: (zoneId: string) => Promise<any | null>;
14
- createAtomicAsset: (args: Helpers.AssetCreateArgsType, callback?: (status: any) => void) => Promise<string>;
15
- getAtomicAsset: (id: string) => Promise<Helpers.AssetDetailType | null>;
16
- getAtomicAssets: typeof Services.getAtomicAssets;
17
14
  createProfile: (args: Helpers.ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
18
15
  updateProfile: (args: Helpers.ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
19
16
  getProfileById: (profileId: string) => Promise<Helpers.ProfileType | null>;
20
17
  getProfileByWalletAddress: (walletAddress: string) => Promise<(Helpers.ProfileType & any) | null>;
18
+ createAtomicAsset: (args: Helpers.AssetCreateArgsType, callback?: (status: any) => void) => Promise<string>;
19
+ getAtomicAsset: (id: string, args?: {
20
+ useGateway?: boolean;
21
+ }) => Promise<Helpers.AssetDetailType | null>;
22
+ getAtomicAssets: typeof Services.getAtomicAssets;
21
23
  createComment: (args: Helpers.CommentCreateArgType, callback?: (status: any) => void) => Promise<string>;
22
24
  getComment: (id: string) => Promise<Helpers.CommentDetailType | null>;
23
25
  getComments: (args: {
24
26
  parentId?: string;
25
27
  rootId?: string;
26
28
  }) => Promise<{
27
- id: string;
29
+ id: any;
28
30
  content: string;
29
- parentId: string;
30
- rootId: string;
31
+ parentId: any;
32
+ rootId: any;
31
33
  }[]>;
32
34
  createCollection: (args: {
33
35
  title: string;
34
36
  description: string;
35
37
  creator: string;
36
- banner: any;
37
38
  thumbnail: any;
39
+ banner: any;
40
+ skipRegistry?: boolean;
38
41
  }, callback?: (status: any) => void) => Promise<string>;
39
42
  updateCollectionAssets: (args: {
40
43
  collectionId: string;
@@ -3,6 +3,8 @@ export declare function createAtomicAssetWith(deps: DependencyType): (args: Asse
3
3
  export declare function getAtomicAsset(deps: DependencyType, id: string, args?: {
4
4
  useGateway?: boolean;
5
5
  }): Promise<AssetDetailType | null>;
6
- export declare function getAtomicAssetWith(deps: DependencyType): (id: string) => Promise<AssetDetailType | null>;
6
+ export declare function getAtomicAssetWith(deps: DependencyType): (id: string, args?: {
7
+ useGateway?: boolean;
8
+ }) => Promise<AssetDetailType | null>;
7
9
  export declare function getAtomicAssets(ids: string[]): Promise<AssetHeaderType[] | null>;
8
- export declare function buildAsset(element: GQLNodeResponseType): AssetHeaderType;
10
+ export declare function buildAsset(element: GQLNodeResponseType): any;
@@ -3,8 +3,9 @@ export declare function createCollectionWith(deps: DependencyType): (args: {
3
3
  title: string;
4
4
  description: string;
5
5
  creator: string;
6
- banner: any;
7
6
  thumbnail: any;
7
+ banner: any;
8
+ skipRegistry?: boolean;
8
9
  }, callback?: (status: any) => void) => Promise<string>;
9
10
  export declare function updateCollectionAssetsWith(deps: DependencyType): (args: {
10
11
  collectionId: string;
@@ -5,8 +5,8 @@ export declare function getCommentsWith(_deps: DependencyType): (args: {
5
5
  parentId?: string;
6
6
  rootId?: string;
7
7
  }) => Promise<{
8
- id: string;
8
+ id: any;
9
9
  content: string;
10
- parentId: string;
11
- rootId: string;
10
+ parentId: any;
11
+ rootId: any;
12
12
  }[]>;
@@ -3,3 +3,7 @@ export declare function createProfileWith(deps: DependencyType): (args: ProfileA
3
3
  export declare function updateProfileWith(deps: DependencyType): (args: ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
4
4
  export declare function getProfileByIdWith(deps: DependencyType): (profileId: string) => Promise<ProfileType | null>;
5
5
  export declare function getProfileByWalletAddressWith(deps: DependencyType): (walletAddress: string) => Promise<(ProfileType & any) | null>;
6
+ export declare function createProfileWith_ZONE(deps: DependencyType): (args: ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
7
+ export declare function updateProfileWith_ZONE(deps: DependencyType): (args: ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
8
+ export declare function getProfileByIdWith_ZONE(deps: DependencyType): (profileId: string) => Promise<ProfileType | null>;
9
+ export declare function getProfileByWalletAddressWith_ZONE(deps: DependencyType): (walletAddress: string) => Promise<(ProfileType & any) | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@permaweb/libs",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",