@aptly-as/app-sdk
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -12,3 +12,10 @@ import { AptlyOrder } from '@aptly-as/types'; | ||
patch(order: Partial<AptlyOrder>): Promise<AptlyOrder>; | ||
signeeSign(user: string): Promise<AptlyOrder>; | ||
reset(): Promise<AptlyOrder>; | ||
signeesBulk(signees: { | ||
user: string; | ||
signedAt: string; | ||
}[]): Promise<AptlyOrder>; | ||
signeeSign(user: string, body: { | ||
signedAt: string; | ||
}): Promise<AptlyOrder>; | ||
} |
@@ -26,7 +26,19 @@ import { pathWithParams } from './api.utils.js'; | ||
} | ||
signeeSign(user) { | ||
reset() { | ||
if (!this.id) | ||
throw new Error('ID is required.'); | ||
return this.api.post(`${this.path}/${this.id}/signees/${user}/sign`, {}); | ||
return this.api.patch(`${this.path}/${this.id}/reset`, {}); | ||
} | ||
signeesBulk(signees) { | ||
if (!this.id) | ||
throw new Error('ID is required.'); | ||
return this.api.patch(`${this.path}/${this.id}/signees/bulk`, { | ||
signees, | ||
}); | ||
} | ||
signeeSign(user, body) { | ||
if (!this.id) | ||
throw new Error('ID is required.'); | ||
return this.api.post(`${this.path}/${this.id}/signees/${user}/sign`, body); | ||
} | ||
} |
{ | ||
"name": "@aptly-as/app-sdk", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Aptly app SDK library for app communication and frontend development", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38085
997