Skip to content

Commit

Permalink
WIP: Supporting Dash FullProfile endpoint
Browse files Browse the repository at this point in the history
 - This is working towards fix for #35, since Dash endpoint seems to
 be only way to get multi-lang export for your own profile
 - Still need to integrate with parseViaInternalApiFullProfile and
 all other applicable methods
  • Loading branch information
joshuatz committed Dec 7, 2020
1 parent b14bb58 commit bc5d1ec
Show file tree
Hide file tree
Showing 3 changed files with 287 additions and 48 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"browser": true
},
"rules": {
"no-self-assign": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"no-plusplus": "off",
"no-useless-escape": "off",
Expand Down
8 changes: 5 additions & 3 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ declare global {
interface LiEntity {
$type: string;
entityUrn: LiUrn;
objectUrn?: LiUrn;
[key: string]: any;
paging?: LiPaging;
}
Expand Down Expand Up @@ -82,9 +83,9 @@ declare global {
// Methods
getElementKeys: () => string[];
getElements: () => Array<LiEntity & {key: LIUrn}>;
getValueByKey: (key: string) => LiEntity;
getValuesByKey: (key: LiUrn, optTocValModifier?: TocValModifier) => LiEntity[];
getElementsByType: (typeStr: string) => LiEntity[];
getValueByKey: (key: string | string[]) => LiEntity;
getValuesByKey: (key: LiUrn | LiUrn[], optTocValModifier?: TocValModifier) => LiEntity[];
getElementsByType: (typeStr: string | string []) => LiEntity[];
getElementByUrn: (urn: string) => LiEntity | undefined;
/**
* Get multiple elements by URNs
Expand Down Expand Up @@ -116,6 +117,7 @@ declare global {
type CaptureResult = 'success' | 'fail' | 'incomplete' | 'empty';

interface ParseProfileSchemaResultSummary {
liResponse: LiResponse;
profileObj: LiResponse;
pageUrl: string;
localeStr?: string;
Expand Down
Loading

0 comments on commit bc5d1ec

Please sign in to comment.