@internetarchive/search-service
Advanced tools
Comparing version
@@ -8,2 +8,4 @@ /** | ||
account_details: UserAccountDetails; | ||
/** Whether the target account either has privs or is internal to archive.org */ | ||
is_archivist: boolean; | ||
/** User-editable metadata about the user account (title and description) */ | ||
@@ -10,0 +12,0 @@ user_item_metadata: UserItemMetadata; |
@@ -120,2 +120,3 @@ import { expect } from '@open-wc/testing'; | ||
}, | ||
is_archivist: false, | ||
policy_settings: { | ||
@@ -408,5 +409,6 @@ is_archive_user: true, | ||
it('provides access to account extra info', () => { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
const details = new SearchResponseDetails(accountUploadsResponseBody, itemSchema); | ||
expect((_b = (_a = details.accountExtraInfo) === null || _a === void 0 ? void 0 : _a.user_item_metadata) === null || _b === void 0 ? void 0 : _b.description).to.equal('Foo bar baz'); | ||
expect((_c = details.accountExtraInfo) === null || _c === void 0 ? void 0 : _c.is_archivist).to.be.false; | ||
}); | ||
@@ -413,0 +415,0 @@ it('account extra info is optional', () => { |
{ | ||
"name": "@internetarchive/search-service", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0", | ||
"description": "A search service for the Internet Archive", | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
@@ -8,2 +8,4 @@ /** | ||
account_details: UserAccountDetails; | ||
/** Whether the target account either has privs or is internal to archive.org */ | ||
is_archivist: boolean; | ||
/** User-editable metadata about the user account (title and description) */ | ||
@@ -10,0 +12,0 @@ user_item_metadata: UserItemMetadata; |
@@ -132,2 +132,3 @@ import { expect } from '@open-wc/testing'; | ||
}, | ||
is_archivist: false, | ||
policy_settings: { | ||
@@ -461,2 +462,3 @@ is_archive_user: true, | ||
); | ||
expect(details.accountExtraInfo?.is_archivist).to.be.false; | ||
}); | ||
@@ -463,0 +465,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
944750
0.08%13622
0.06%1
-50%