mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-05 09:10:53 +01:00
a5a12a6723
* Create and register new libs/importer Create package.json Create tsconfig Create jest.config Extend shared and root tsconfig and jest.configs Register with eslint * Move importer-related files to libs/importer * Move importer-spec-related files to libs/importer Move import.service.spec * Update package-lock.json * Set CODEOWNERS for new libs/importer * Register libs/importer with cli and fix imports * Register libs/importer with web and fix imports * Move importOption into models Rename importOptions to import-options * Fix linting issues after updating prettier * Only expose necessary files from libs/importer Fix tsconfig files - Removes the trailing /index on imports in web/cli As the spec-files no longer can access the internals via @bitwarden/importer they import by path (../src/importers) * Add barrel files to vendors with more than one importer
235 lines
8.3 KiB
TypeScript
235 lines
8.3 KiB
TypeScript
import { ExportData } from "../../../src/importers/onepassword/types/onepassword-1pux-importer-types";
|
|
|
|
export const PassportData: ExportData = {
|
|
accounts: [
|
|
{
|
|
attrs: {
|
|
accountName: "1Password Customer",
|
|
name: "1Password Customer",
|
|
avatar: "",
|
|
email: "username123123123@gmail.com",
|
|
uuid: "TRIZ3XV4JJFRXJ3BARILLTUA6E",
|
|
domain: "https://my.1password.com/",
|
|
},
|
|
vaults: [
|
|
{
|
|
attrs: {
|
|
uuid: "pqcgbqjxr4tng2hsqt5ffrgwju",
|
|
desc: "Just test entries",
|
|
avatar: "ke7i5rxnjrh3tj6uesstcosspu.png",
|
|
name: "T's Test Vault",
|
|
type: "U",
|
|
},
|
|
items: [
|
|
{
|
|
uuid: "hffila4ew2e3krfzp2tkdkdmea",
|
|
favIndex: 0,
|
|
createdAt: 1619467498,
|
|
updatedAt: 1619467655,
|
|
trashed: false,
|
|
categoryUuid: "106",
|
|
details: {
|
|
loginFields: [],
|
|
notesPlain: "My Passport",
|
|
sections: [
|
|
{
|
|
title: "",
|
|
fields: [
|
|
{
|
|
title: "type",
|
|
id: "type",
|
|
value: {
|
|
string: "US Passport",
|
|
},
|
|
indexAtSource: 0,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "allCharacters",
|
|
},
|
|
},
|
|
{
|
|
title: "issuing country",
|
|
id: "issuing_country",
|
|
value: {
|
|
string: "United States of America",
|
|
},
|
|
indexAtSource: 1,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "words",
|
|
},
|
|
},
|
|
{
|
|
title: "number",
|
|
id: "number",
|
|
value: {
|
|
string: "76436847",
|
|
},
|
|
indexAtSource: 2,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "namePhonePad",
|
|
correction: "default",
|
|
capitalization: "default",
|
|
},
|
|
},
|
|
{
|
|
title: "full name",
|
|
id: "fullname",
|
|
value: {
|
|
string: "David Global",
|
|
},
|
|
indexAtSource: 3,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "words",
|
|
},
|
|
},
|
|
{
|
|
title: "sex",
|
|
id: "sex",
|
|
value: {
|
|
gender: "female",
|
|
},
|
|
indexAtSource: 4,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "default",
|
|
},
|
|
},
|
|
{
|
|
title: "nationality",
|
|
id: "nationality",
|
|
value: {
|
|
string: "International",
|
|
},
|
|
indexAtSource: 5,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "words",
|
|
},
|
|
},
|
|
{
|
|
title: "issuing authority",
|
|
id: "issuing_authority",
|
|
value: {
|
|
string: "Department of State",
|
|
},
|
|
indexAtSource: 6,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "words",
|
|
},
|
|
},
|
|
{
|
|
title: "date of birth",
|
|
id: "birthdate",
|
|
value: {
|
|
date: 418046460,
|
|
},
|
|
indexAtSource: 7,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "default",
|
|
},
|
|
},
|
|
{
|
|
title: "place of birth",
|
|
id: "birthplace",
|
|
value: {
|
|
string: "A cave somewhere in Maine",
|
|
},
|
|
indexAtSource: 8,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "words",
|
|
},
|
|
},
|
|
{
|
|
title: "issued on",
|
|
id: "issue_date",
|
|
value: {
|
|
date: 1577880060,
|
|
},
|
|
indexAtSource: 9,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "default",
|
|
},
|
|
},
|
|
{
|
|
title: "expiry date",
|
|
id: "expiry_date",
|
|
value: {
|
|
date: 2524651260,
|
|
},
|
|
indexAtSource: 10,
|
|
guarded: false,
|
|
multiline: false,
|
|
dontGenerate: false,
|
|
inputTraits: {
|
|
keyboard: "default",
|
|
correction: "default",
|
|
capitalization: "default",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
passwordHistory: [],
|
|
},
|
|
overview: {
|
|
subtitle: "76436847",
|
|
tags: ["Travel"],
|
|
title: "Mr. Globewide",
|
|
url: "",
|
|
ps: 0,
|
|
pbe: 0.0,
|
|
pgrng: false,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|