@permaweb/libs 0.0.34 → 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.
@@ -81,6 +81,7 @@ export type AssetCreateArgsType = {
81
81
  metadata?: object;
82
82
  tags?: TagType[];
83
83
  src?: string;
84
+ users?: string[];
84
85
  };
85
86
  export type AssetHeaderType = {
86
87
  id: string;
@@ -156,6 +157,7 @@ export type BaseGQLArgsType = {
156
157
  paginator?: number;
157
158
  minBlock?: number;
158
159
  maxBlock?: number;
160
+ sort?: GQLSortType;
159
161
  };
160
162
  export type GQLArgsType = {
161
163
  gateway: string;
@@ -209,3 +211,4 @@ export type TagFilterType = {
209
211
  values: string[];
210
212
  match?: string;
211
213
  };
214
+ export type GQLSortType = 'ascending' | 'descending';
@@ -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;
@@ -12,6 +13,16 @@ declare function init(deps: Helpers.DependencyType): {
12
13
  data: object;
13
14
  }, zoneId: string) => Promise<string | null>;
14
15
  getZone: (zoneId: string) => Promise<any | null>;
16
+ setZoneRoles: (args: {
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;
25
+ }, zoneId: string) => Promise<string | null>;
15
26
  createProfile: (args: Helpers.ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
16
27
  updateProfile: (args: Helpers.ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
17
28
  getProfileById: (profileId: string) => Promise<Helpers.ProfileType | null>;
@@ -65,4 +76,3 @@ declare const _default: {
65
76
  init: typeof init;
66
77
  };
67
78
  export default _default;
68
- 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>;
@@ -9,3 +9,13 @@ export declare function addToZoneWith(deps: DependencyType): (args: {
9
9
  data: object;
10
10
  }, zoneId: string) => Promise<string | null>;
11
11
  export declare function getZoneWith(deps: DependencyType): (zoneId: string) => Promise<any | null>;
12
+ export declare function setZoneRolesWith(deps: DependencyType): (args: {
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;
21
+ }, zoneId: string) => Promise<string | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@permaweb/libs",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",