anymal-protocol 1.0.16 → 1.0.18

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.d.mts CHANGED
@@ -63,7 +63,7 @@ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken
63
63
  declare function useCreateUserAppData(): (appId: string, pid: string, dbAuthToken: string, endpoint: string) => Promise<{
64
64
  success: boolean;
65
65
  data: any;
66
- } | undefined>;
66
+ }>;
67
67
 
68
68
  declare function useFetchBalance(): (publicClient: any, walletAddress: string, kibbleTokenAddress: string) => Promise<number | undefined>;
69
69
 
package/dist/index.d.ts CHANGED
@@ -63,7 +63,7 @@ declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken
63
63
  declare function useCreateUserAppData(): (appId: string, pid: string, dbAuthToken: string, endpoint: string) => Promise<{
64
64
  success: boolean;
65
65
  data: any;
66
- } | undefined>;
66
+ }>;
67
67
 
68
68
  declare function useFetchBalance(): (publicClient: any, walletAddress: string, kibbleTokenAddress: string) => Promise<number | undefined>;
69
69
 
package/dist/index.js CHANGED
@@ -1242,7 +1242,11 @@ var import_uuid = require("uuid");
1242
1242
  function useCreateUserAppData() {
1243
1243
  return (0, import_react15.useCallback)(
1244
1244
  async (appId, pid, dbAuthToken, endpoint) => {
1245
- if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
1245
+ if (!dbAuthToken || !pid || !dbAuthToken || !endpoint)
1246
+ return {
1247
+ success: false,
1248
+ data: null
1249
+ };
1246
1250
  const appValues = {
1247
1251
  id: (0, import_uuid.v4)(),
1248
1252
  userPid: pid,
@@ -1256,7 +1260,6 @@ function useCreateUserAppData() {
1256
1260
  mutation Create_UserAppSettings($input: [UserAppSettingsMutationInputArg!]) {
1257
1261
  create_UserAppSettings (input: $input) {
1258
1262
  id
1259
- userPid
1260
1263
  appId
1261
1264
  settings
1262
1265
  }
package/dist/index.mjs CHANGED
@@ -1201,7 +1201,11 @@ import { v4 as uuid } from "uuid";
1201
1201
  function useCreateUserAppData() {
1202
1202
  return useCallback15(
1203
1203
  async (appId, pid, dbAuthToken, endpoint) => {
1204
- if (!dbAuthToken || !pid || !dbAuthToken || !endpoint) return;
1204
+ if (!dbAuthToken || !pid || !dbAuthToken || !endpoint)
1205
+ return {
1206
+ success: false,
1207
+ data: null
1208
+ };
1205
1209
  const appValues = {
1206
1210
  id: uuid(),
1207
1211
  userPid: pid,
@@ -1215,7 +1219,6 @@ function useCreateUserAppData() {
1215
1219
  mutation Create_UserAppSettings($input: [UserAppSettingsMutationInputArg!]) {
1216
1220
  create_UserAppSettings (input: $input) {
1217
1221
  id
1218
- userPid
1219
1222
  appId
1220
1223
  settings
1221
1224
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "A React/TypeScript-based utility library for reusable functions and hooks inside of the Anymal Ecosystem.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",