-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangelog.types.ts
64 lines (59 loc) · 1.19 KB
/
changelog.types.ts
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
/**
* Configuration to retrieve changelogs from UpdateHive.
*/
export interface UpdateHiveConfig {
connection: {
/**
* API_KEY to access UpdateHive public REST API.
*/
API_KEY: string;
/**
* Override the default URL to UpdateHive API.
*/
url?: string;
};
changelogs: {
/**
* Product ID to retrieve changelogs for.
*/
product: string;
/**
* Retrieve only the last changelog.
*/
onlyLast?: boolean;
};
}
export interface UpdateHiveHookResult {
loading: boolean;
error?: string;
data?: Changelog[];
}
export enum VariantType {
TEXT_ONLY = 'TEXT_ONLY',
IMAGE_AND_TEXT = 'IMAGE_AND_TEXT',
}
export enum ChangeType {
FEATURE = 'FEATURE',
FIX = 'FIX',
IMPROVEMENT = 'IMPROVEMENT',
KNOWNISSUE = 'KNOWNISSUE',
BREAKING = 'BREAKING',
REMOVED = 'REMOVED',
NOTE = 'NOTE',
}
export interface ChangelogEntryInterface {
changeType: ChangeType;
description: string;
name?: string;
tags?: string[];
component?: string;
}
export interface Changelog {
product: string;
variant: VariantType;
version: string;
releaseDate: string;
title?: string;
description?: string;
entries: ChangelogEntryInterface[];
}