nirium 0.18.0 → 0.19.0
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.ts +21 -2
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -292,6 +292,21 @@ export interface PayoutRun {
|
|
|
292
292
|
pricing?: Record<string, unknown>;
|
|
293
293
|
[key: string]: unknown;
|
|
294
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* One entry of the public payout history (getPayoutRuns). It carries what is
|
|
297
|
+
* already public on-chain - amount, asset, recipient count and the tx - and
|
|
298
|
+
* never the run id or the IPFS receipt CID: the receipt is the paying
|
|
299
|
+
* company's evidence, returned only to whoever runs the payout (submitPayout).
|
|
300
|
+
*/
|
|
301
|
+
export interface PublicPayoutRun {
|
|
302
|
+
network?: string;
|
|
303
|
+
asset?: string;
|
|
304
|
+
totalAmount?: string;
|
|
305
|
+
recipientCount?: number;
|
|
306
|
+
txHash?: string;
|
|
307
|
+
explorer?: string;
|
|
308
|
+
signed?: boolean;
|
|
309
|
+
}
|
|
295
310
|
export interface AgentAttestationInput {
|
|
296
311
|
/** ed25519 public key of the agent, as a Stellar address (G...). */
|
|
297
312
|
key: string;
|
|
@@ -717,9 +732,13 @@ export declare class Agent {
|
|
|
717
732
|
}>;
|
|
718
733
|
/** Broadcast the signed trustline XDR from onboardPayoutRecipient. */
|
|
719
734
|
submitPayoutOnboard(signedXdr: string): Promise<Record<string, unknown>>;
|
|
720
|
-
/**
|
|
735
|
+
/**
|
|
736
|
+
* Public payout history for the current network: amount, asset, recipient
|
|
737
|
+
* count and tx hash. It does not include run ids or IPFS receipt CIDs; your
|
|
738
|
+
* own run's CID comes back from submitPayout().
|
|
739
|
+
*/
|
|
721
740
|
getPayoutRuns(): Promise<{
|
|
722
|
-
runs:
|
|
741
|
+
runs: PublicPayoutRun[];
|
|
723
742
|
}>;
|
|
724
743
|
/** Payouts Terms v1.0 — the text `acknowledgeTerms` accepts. */
|
|
725
744
|
getPayoutTerms(): Promise<Record<string, unknown>>;
|
package/dist/index.js
CHANGED
|
@@ -342,7 +342,11 @@ class Agent {
|
|
|
342
342
|
async submitPayoutOnboard(signedXdr) {
|
|
343
343
|
return this.request('POST', '/api/payroll/onboard/submit', { signedXdr });
|
|
344
344
|
}
|
|
345
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* Public payout history for the current network: amount, asset, recipient
|
|
347
|
+
* count and tx hash. It does not include run ids or IPFS receipt CIDs; your
|
|
348
|
+
* own run's CID comes back from submitPayout().
|
|
349
|
+
*/
|
|
346
350
|
async getPayoutRuns() {
|
|
347
351
|
return this.request('GET', '/api/payroll/runs');
|
|
348
352
|
}
|