anymal-protocol 1.0.100 → 1.0.101

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
@@ -83,9 +83,16 @@ declare function useUpdateAnymalWithNFT(): (anymalPassportId: string, anymalDocI
83
83
  }>;
84
84
 
85
85
  declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken: string, publicKey: string, authServiceBaseUrl: string, petType: string, breed: string[], lifestage: string, anymalPid: string) => Promise<{
86
+ success: boolean;
87
+ message: string;
88
+ url: null;
89
+ type: string;
90
+ cid?: undefined;
91
+ } | {
86
92
  success: boolean;
87
93
  message: string;
88
94
  url: any;
95
+ cid: any;
89
96
  type: string;
90
97
  }>;
91
98
 
package/dist/index.d.ts CHANGED
@@ -83,9 +83,16 @@ declare function useUpdateAnymalWithNFT(): (anymalPassportId: string, anymalDocI
83
83
  }>;
84
84
 
85
85
  declare function useUploadAnymalImage(): (imageFile: File, type: string, idToken: string, publicKey: string, authServiceBaseUrl: string, petType: string, breed: string[], lifestage: string, anymalPid: string) => Promise<{
86
+ success: boolean;
87
+ message: string;
88
+ url: null;
89
+ type: string;
90
+ cid?: undefined;
91
+ } | {
86
92
  success: boolean;
87
93
  message: string;
88
94
  url: any;
95
+ cid: any;
89
96
  type: string;
90
97
  }>;
91
98
 
package/dist/index.js CHANGED
@@ -1581,8 +1581,9 @@ function useUploadAnymalImage() {
1581
1581
  if (response.ok) {
1582
1582
  return {
1583
1583
  success: true,
1584
- message: "Image process started",
1584
+ message: "Image upload success",
1585
1585
  url: data.ipfsUrl,
1586
+ cid: data.cid,
1586
1587
  type
1587
1588
  };
1588
1589
  } else {
@@ -1590,6 +1591,7 @@ function useUploadAnymalImage() {
1590
1591
  success: false,
1591
1592
  message: "Image failed to upload.",
1592
1593
  url: null,
1594
+ cid: null,
1593
1595
  type
1594
1596
  };
1595
1597
  }
@@ -1598,6 +1600,7 @@ function useUploadAnymalImage() {
1598
1600
  success: false,
1599
1601
  message: `An error occurred during image upload: ${error.message}`,
1600
1602
  url: null,
1603
+ cid: null,
1601
1604
  type
1602
1605
  };
1603
1606
  }
package/dist/index.mjs CHANGED
@@ -1518,8 +1518,9 @@ function useUploadAnymalImage() {
1518
1518
  if (response.ok) {
1519
1519
  return {
1520
1520
  success: true,
1521
- message: "Image process started",
1521
+ message: "Image upload success",
1522
1522
  url: data.ipfsUrl,
1523
+ cid: data.cid,
1523
1524
  type
1524
1525
  };
1525
1526
  } else {
@@ -1527,6 +1528,7 @@ function useUploadAnymalImage() {
1527
1528
  success: false,
1528
1529
  message: "Image failed to upload.",
1529
1530
  url: null,
1531
+ cid: null,
1530
1532
  type
1531
1533
  };
1532
1534
  }
@@ -1535,6 +1537,7 @@ function useUploadAnymalImage() {
1535
1537
  success: false,
1536
1538
  message: `An error occurred during image upload: ${error.message}`,
1537
1539
  url: null,
1540
+ cid: null,
1538
1541
  type
1539
1542
  };
1540
1543
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anymal-protocol",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
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
  "bin": {