Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

lapsq の読み込みとパース #14

Open
Tracked by #12
wappon28dev opened this issue May 23, 2023 · 1 comment
Open
Tracked by #12

lapsq の読み込みとパース #14

wappon28dev opened this issue May 23, 2023 · 1 comment

Comments

@wappon28dev
Copy link
Member

wappon28dev commented May 23, 2023

#13 で選択した lapsq を解凍し, manifest.json を読み込んで, 後述のUIのレンダーに必要な情報をパースする.
解凍先: appdata の階層から… lapsquash/viewer/assets/{project-id}/xlapsq/ にしましょう!

@wappon28dev
Copy link
Member Author

lapsq の読み込みとパースについては, SharePoint のディレクトリリスティング機能があるっぽい (download Link) も取れるので, lapsq の解凍のフェーズがまるまる消え去るかもしれない. とりあえず squasher_py が落ち着いたら取り組む予定です

const listItem = z.object({
  "@odata.context": z.string(),
  "@odata.etag": z.string(),
  createdDateTime: z.string(),
  eTag: z.string(),
  id: z.string(),
  lastModifiedDateTime: z.string(),
  webUrl: z.string(),
  createdBy: z.object({
    user: z.object({
      email: z.string(),
      id: z.string(),
      displayName: z.string(),
    }),
  }),
  lastModifiedBy: z.object({
    user: z.object({
      email: z.string(),
      id: z.string(),
      displayName: z.string(),
    }),
  }),
  parentReference: z.object({ id: z.string(), siteId: z.string() }),
  contentType: z.object({ id: z.string(), name: z.string() }),
  "[email protected]": z.string(),
  driveItem,
  fields: z.object({
    "@odata.etag": z.string(),
    FileLeafRef: z.string(),
    MediaServiceImageTags: z.array(z.unknown()),
    DisplayName: z.string(),
    DistName: z.string(),
    Desc: z.string().optional(),
    id: z.string(),
    ContentType: z.string(),
    Created: z.string(),
    AuthorLookupId: z.string(),
    Modified: z.string(),
    EditorLookupId: z.string(),
    _CheckinComment: z.string(),
    LinkFilenameNoMenu: z.string(),
    LinkFilename: z.string(),
    ItemChildCount: z.string(),
    FolderChildCount: z.string(),
    _ComplianceFlags: z.string(),
    _ComplianceTag: z.string(),
    _ComplianceTagWrittenTime: z.string(),
    _ComplianceTagUserId: z.string(),
    _CommentCount: z.string(),
    _LikeCount: z.string(),
    _DisplayName: z.string(),
    Edit: z.string(),
    _UIVersionString: z.string(),
    ParentVersionStringLookupId: z.string(),
    ParentLeafNameLookupId: z.string(),
  }),
});

ref:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Todo
Development

No branches or pull requests

2 participants