File size: 1,888 Bytes
68f7925
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
export type TempImages = {
  [url: string]: string;
};

export type DownloadData = {
  is_stream: boolean;
  meta: {
    _type: string;
  };
  mime_type: string | null;
  orig_name: string | null;
  path: string;
  size: number;
  url: string;
};

export type ResultData = {
  [key: string]: {
    contents_ocr: string;
    content_theme: string[];
    contents_theme2csv: string;
    contents_top_theme: string;
    fv_ocr: string;
    fv_theme: string[];
    fv_theme2csv: string;
    fv_top_theme: string;
    image: string;
    image_full: string;
    ocr: string;
    result: {
      advice: string;
      analysis: string;
      category: string;
      question: string;
      score: number;
    }[];
    title: string;
    url: string;
  };
};

export type InputData = {
  competitor_urls: string[];
  own_url: string;
  purpose: string;
  urls: string[];
};

export type ScoreTotal = {
  [url: string]: number;
};

export type UrlCategoryScores = {
  [url: string]: {
    ACCESSIBILITY: number;
    CONTENTS: number;
    CREATIVE: number;
    CTA: number;
    FV: number;
    合計: number;
  };
};

export type OwnCategoryScores = {
  [category: string]: {
    ACCESSIBILITY: number;
    CONTENTS: number;
    CREATIVE: number;
    CTA: number;
    FV: number;
    総括: number;
  };
};

export type SummaryData = {
  total_analysis: string;
} & {
  [category: string]: {
    competitors_advantage: string;
    own_company_advantage_and_advice: string;
    自社改善点: string;
    自社相対位置: string;
    自社長所: string;
  };
};

export type SummaryBaseData = string;

export type SwotData = {
  [category: string]:
    | string
    | {
        [key: string]: string[] | string;
      };
};

export type UrlMapping = {
  title?: string;
  url?: string;
};

export type MomentResult = {
  data: [string[]];
  headers: string[];
  metadata: object | null;
};