@arianee/arianee-privacy-gateway-client
Advanced tools
Comparing version 0.15.0 to 0.18.0
{ | ||
"name": "@arianee/arianee-privacy-gateway-client", | ||
"version": "0.15.0", | ||
"version": "0.18.0", | ||
"dependencies": { | ||
@@ -9,6 +9,6 @@ "ethers": "6.6.0", | ||
"peerDependencies": { | ||
"@arianee/arianee-access-token": "0.13.0", | ||
"@arianee/common-types": "0.18.0", | ||
"@arianee/core": "0.11.0", | ||
"@arianee/utils": "0.9.0", | ||
"@arianee/arianee-access-token": "0.16.0", | ||
"@arianee/common-types": "0.21.0", | ||
"@arianee/core": "0.14.0", | ||
"@arianee/utils": "0.12.0", | ||
"tslib": "2.5.0" | ||
@@ -15,0 +15,0 @@ }, |
@@ -22,2 +22,14 @@ import { Core } from '@arianee/core'; | ||
}): Promise<ArianeeProductCertificateI18N>; | ||
certificateCreate(rpcUrl: RpcUrl, { certificateId, content, }: { | ||
certificateId: string; | ||
content: ArianeeProductCertificateI18N; | ||
}): Promise<{ | ||
jsonrpc: string; | ||
id: number; | ||
error?: { | ||
code: number; | ||
message: string; | ||
}; | ||
result: string | null; | ||
}>; | ||
updateRead(rpcUrl: RpcUrl, { certificateId, passphrase, }: { | ||
@@ -27,5 +39,29 @@ certificateId: string; | ||
}): Promise<ArianeeProductCertificateI18N>; | ||
updateCreate(rpcUrl: RpcUrl, { certificateId, content, }: { | ||
certificateId: string; | ||
content: ArianeeProductCertificateI18N; | ||
}): Promise<{ | ||
jsonrpc: string; | ||
id: number; | ||
error?: { | ||
code: number; | ||
message: string; | ||
}; | ||
result: string | null; | ||
}>; | ||
messageRead(rpcUrl: RpcUrl, { messageId, }: { | ||
messageId: string; | ||
}): Promise<ArianeeMessageI18N>; | ||
messageCreate(rpcUrl: RpcUrl, { messageId, content, }: { | ||
messageId: string; | ||
content: ArianeeProductCertificateI18N; | ||
}): Promise<{ | ||
jsonrpc: string; | ||
id: number; | ||
error?: { | ||
code: number; | ||
message: string; | ||
}; | ||
result: string | null; | ||
}>; | ||
eventRead(rpcUrl: RpcUrl, { certificateId, eventId, passphrase, }: { | ||
@@ -36,3 +72,15 @@ certificateId: string; | ||
}): Promise<ArianeeEventI18N>; | ||
eventCreate(rpcUrl: RpcUrl, { eventId, content, }: { | ||
eventId: string; | ||
content: ArianeeProductCertificateI18N; | ||
}): Promise<{ | ||
jsonrpc: string; | ||
id: number; | ||
error?: { | ||
code: number; | ||
message: string; | ||
}; | ||
result: string | null; | ||
}>; | ||
} | ||
export { ArianeePrivacyGatewayClient }; |
@@ -86,2 +86,11 @@ "use strict"; | ||
} | ||
certificateCreate(rpcUrl, { certificateId, content, }) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.rpcCall(rpcUrl, 'certificate.create', { | ||
certificateId, | ||
json: content, | ||
}); | ||
return res.json(); | ||
}); | ||
} | ||
updateRead(rpcUrl, { certificateId, passphrase, }) { | ||
@@ -103,2 +112,11 @@ return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
} | ||
updateCreate(rpcUrl, { certificateId, content, }) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.rpcCall(rpcUrl, 'update.create', { | ||
certificateId, | ||
json: content, | ||
}); | ||
return res.json(); | ||
}); | ||
} | ||
messageRead(rpcUrl, { messageId, }) { | ||
@@ -117,2 +135,11 @@ return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
} | ||
messageCreate(rpcUrl, { messageId, content, }) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.rpcCall(rpcUrl, 'message.create', { | ||
messageId, | ||
json: content, | ||
}); | ||
return res.json(); | ||
}); | ||
} | ||
eventRead(rpcUrl, { certificateId, eventId, passphrase, }) { | ||
@@ -135,2 +162,11 @@ return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
} | ||
eventCreate(rpcUrl, { eventId, content, }) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.rpcCall(rpcUrl, 'event.create', { | ||
eventId, | ||
json: content, | ||
}); | ||
return res.json(); | ||
}); | ||
} | ||
} | ||
@@ -137,0 +173,0 @@ exports.default = ArianeePrivacyGatewayClient; |
Sorry, the diff of this file is not supported yet
17409
258