@gibwork/sdk 0.0.4 → 0.0.5

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.cts CHANGED
@@ -209,6 +209,14 @@ interface WalletTaskSummary {
209
209
  totalSubmissions: number;
210
210
  title: string;
211
211
  isOpen: boolean;
212
+ /** Whether the signing wallet may edit the task. */
213
+ canEdit: boolean;
214
+ /** Whether the signing wallet may approve and pay a submission. */
215
+ canApprove: boolean;
216
+ /** Whether the signing wallet may reject a submission. */
217
+ canReject: boolean;
218
+ /** Whether the signing wallet may refund the task escrow. */
219
+ canRefund: boolean;
212
220
  asset: WalletTaskAsset;
213
221
  rewardedAmount: number;
214
222
  rewardedPrice: string;
package/dist/index.d.ts CHANGED
@@ -209,6 +209,14 @@ interface WalletTaskSummary {
209
209
  totalSubmissions: number;
210
210
  title: string;
211
211
  isOpen: boolean;
212
+ /** Whether the signing wallet may edit the task. */
213
+ canEdit: boolean;
214
+ /** Whether the signing wallet may approve and pay a submission. */
215
+ canApprove: boolean;
216
+ /** Whether the signing wallet may reject a submission. */
217
+ canReject: boolean;
218
+ /** Whether the signing wallet may refund the task escrow. */
219
+ canRefund: boolean;
212
220
  asset: WalletTaskAsset;
213
221
  rewardedAmount: number;
214
222
  rewardedPrice: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gibwork/sdk",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "TypeScript SDK for the Gibwork External API",
5
5
  "private": false,
6
6
  "type": "module",
@@ -38,6 +38,8 @@
38
38
  "test": "vitest run --passWithNoTests",
39
39
  "test:watch": "vitest",
40
40
  "check": "npm run lint && npm run format && npm run typecheck && npm run test && npm run build",
41
+ "example:create-live-bounty": "npm run build && node --env-file=.env examples/create-live-bounty.mjs",
42
+ "example:refund-open-bounties": "npm run build && node --env-file=.env examples/refund-open-bounties.mjs",
41
43
  "prepack": "npm run check",
42
44
  "publish:npm": "npm publish --access public --provenance=false --registry=https://registry.npmjs.org/ --@gibwork:registry=https://registry.npmjs.org/"
43
45
  },