onairos 0.0.4 → 0.0.6
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/README.md +20 -19
- package/dist/onairos.js +7 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,25 +37,26 @@ First create the Request Object which Users will Authorize (or not) in the exten
|
|
|
37
37
|
|
|
38
38
|
```
|
|
39
39
|
RequestObject.size key:
|
|
40
|
-
Small - Upto 16 inference items
|
|
41
|
-
Medium - Upto 32 inference items
|
|
42
|
-
Large - Upto 64 inference items
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
40
|
+
- `Small` - Upto 16 inference items
|
|
41
|
+
- `Medium` - Upto 32 inference items
|
|
42
|
+
- `Large` - Upto 64 inference items
|
|
43
|
+
|
|
44
|
+
Individual Request Information:
|
|
45
|
+
- `type`: Only the Personality key is valid at this time (represents the users Onairos Personality)
|
|
46
|
+
- `description`: Description to display to users about your request
|
|
47
|
+
- `reward`: Reward Given to User for granting Data Request
|
|
48
|
+
|
|
49
|
+
Then instantiate the Onairos object from the Onairos package - passing in your Onairos Developer ID and your Request Object
|
|
50
|
+
```jsx
|
|
51
|
+
<Onairos requestData={requestData} onairosID={onairosID} access_token={access_token} webpageName={webpageName} proofMode={proofMode} />
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Onairos Object fields:
|
|
55
|
+
- `requestData` - Request Object - Json
|
|
56
|
+
- `onairosID` - App Assigned Onairos ID - String
|
|
57
|
+
- `access_token` - App Assigned Access Token - String
|
|
58
|
+
- `webpageName` - App Display Name - String
|
|
59
|
+
- `proofMode` - Wish to recieve ZK proof after recieving Data , default FALSE - boolean
|
|
59
60
|
|
|
60
61
|
That is all for the initial setup
|
|
61
62
|
|
package/dist/onairos.js
CHANGED
|
@@ -9,9 +9,11 @@ var _OnairosBlack = _interopRequireDefault(require("./OnairosBlack.png"));
|
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
10
|
function Onairos(_ref) {
|
|
11
11
|
let {
|
|
12
|
-
|
|
12
|
+
requestData,
|
|
13
13
|
onairosID,
|
|
14
|
-
access_token
|
|
14
|
+
access_token,
|
|
15
|
+
proofMode = false,
|
|
16
|
+
webpageName
|
|
15
17
|
} = _ref;
|
|
16
18
|
const OnairosAnime = async () => {
|
|
17
19
|
try {
|
|
@@ -29,12 +31,13 @@ function Onairos(_ref) {
|
|
|
29
31
|
window.postMessage({
|
|
30
32
|
source: 'webpage',
|
|
31
33
|
type: 'GET_API_URL',
|
|
32
|
-
|
|
34
|
+
webpageName: webpageName,
|
|
33
35
|
onairosID: onairosID,
|
|
34
36
|
access_token: access_token,
|
|
35
37
|
account: "ConnectedAccountRef.current",
|
|
36
38
|
//No Longer needed, REMOVE
|
|
37
|
-
requestData:
|
|
39
|
+
requestData: requestData,
|
|
40
|
+
proofMode: proofMode
|
|
38
41
|
});
|
|
39
42
|
};
|
|
40
43
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("button", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onairos",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@testing-library/jest-dom": "^5.17.0",
|
|
6
6
|
"@testing-library/react": "^13.4.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"bugs": {
|
|
60
60
|
"url": "https://github.com/zd819/OnairosNPM/issues"
|
|
61
61
|
},
|
|
62
|
-
"homepage": "https://
|
|
62
|
+
"homepage": "https://onairos.uk"
|
|
63
63
|
}
|