@frontegg/types 6.66.0 → 6.67.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Localizations/AdminPortalLocalizations/apiTokens.d.ts +56 -0
- package/Localizations/AdminPortalLocalizations/personalTokens.d.ts +32 -0
- package/ThemeOptions/AdminPortalThemeOptions.d.ts +32 -2
- package/ThemeOptions/AdminPortalThemeOptions.js +6 -1
- package/ThemeOptions/LoginBoxTheme/LoginBoxCommon.d.ts +5 -0
- package/index.js +1 -1
- package/node/ThemeOptions/AdminPortalThemeOptions.js +9 -1
- package/node/index.js +1 -1
- package/package.json +2 -2
|
@@ -47,6 +47,30 @@ export interface ApiTokensLocalization {
|
|
|
47
47
|
* Table column text to be display as 'Create by user' header
|
|
48
48
|
*/
|
|
49
49
|
createdByHeader: string;
|
|
50
|
+
/**
|
|
51
|
+
* Table column text to be display as 'Type' header
|
|
52
|
+
*/
|
|
53
|
+
typeHeader: string;
|
|
54
|
+
/**
|
|
55
|
+
* Table column text to be display as 'Expires' header
|
|
56
|
+
*/
|
|
57
|
+
expiresHeader: string;
|
|
58
|
+
/**
|
|
59
|
+
* Text to be display as 'Access Token' under type header
|
|
60
|
+
*/
|
|
61
|
+
accessTokenType: string;
|
|
62
|
+
/**
|
|
63
|
+
* Text to be display as 'Client Credentials' under type header
|
|
64
|
+
*/
|
|
65
|
+
clientCredentialsType: string;
|
|
66
|
+
/**
|
|
67
|
+
* Chip label to be display as 'Expired' under expires header
|
|
68
|
+
*/
|
|
69
|
+
expiredChipLabel: string;
|
|
70
|
+
/**
|
|
71
|
+
* Chip label to be display as 'Never' under expires header
|
|
72
|
+
*/
|
|
73
|
+
neverChipLabel: string;
|
|
50
74
|
/**
|
|
51
75
|
* Table action text for deleting tokens
|
|
52
76
|
*/
|
|
@@ -84,6 +108,30 @@ export interface ApiTokensLocalization {
|
|
|
84
108
|
* Error displayed if no roles selected
|
|
85
109
|
*/
|
|
86
110
|
rolesIsRequired: string;
|
|
111
|
+
/**
|
|
112
|
+
* Expires select label display as 'This token will expire'
|
|
113
|
+
*/
|
|
114
|
+
expiresInputLabel: string;
|
|
115
|
+
/**
|
|
116
|
+
* Expires option display as 'never' it's value: null
|
|
117
|
+
*/
|
|
118
|
+
neverExpire: string;
|
|
119
|
+
/**
|
|
120
|
+
* Expires option display as 'After 7 days' it's value: 7
|
|
121
|
+
*/
|
|
122
|
+
expireAfter7Days: string;
|
|
123
|
+
/**
|
|
124
|
+
* Expires option display as 'After 30 days' it's value: 30
|
|
125
|
+
*/
|
|
126
|
+
expireAfter30Days: string;
|
|
127
|
+
/**
|
|
128
|
+
* Expires option display as 'After 90 days' it's value: 90
|
|
129
|
+
*/
|
|
130
|
+
expireAfter90Days: string;
|
|
131
|
+
/**
|
|
132
|
+
* Expires option display as 'After 365 days' it's value: 365
|
|
133
|
+
*/
|
|
134
|
+
expireAfter365Days: string;
|
|
87
135
|
/**
|
|
88
136
|
* Generate token client id label
|
|
89
137
|
*/
|
|
@@ -92,10 +140,18 @@ export interface ApiTokensLocalization {
|
|
|
92
140
|
* Generate token secret key label
|
|
93
141
|
*/
|
|
94
142
|
secretKey: string;
|
|
143
|
+
/**
|
|
144
|
+
* Generate token access token label
|
|
145
|
+
*/
|
|
146
|
+
accessToken: string;
|
|
95
147
|
/**
|
|
96
148
|
* Copy and Save text display as note after generated new token
|
|
97
149
|
*/
|
|
98
150
|
copyAndSaveId: string;
|
|
151
|
+
/**
|
|
152
|
+
* Copy and Save text display as note after generated new access token
|
|
153
|
+
*/
|
|
154
|
+
copyAndSaveAccessToken: string;
|
|
99
155
|
/**
|
|
100
156
|
* Add new token cancel button text
|
|
101
157
|
*/
|
|
@@ -39,6 +39,30 @@ export interface PersonalTokensLocalization {
|
|
|
39
39
|
* Table column text to be display as 'createOn' header
|
|
40
40
|
*/
|
|
41
41
|
createdOnHeader: string;
|
|
42
|
+
/**
|
|
43
|
+
* Table column text to be display as 'Type' header
|
|
44
|
+
*/
|
|
45
|
+
typeHeader: string;
|
|
46
|
+
/**
|
|
47
|
+
* Table column text to be display as 'Expires' header
|
|
48
|
+
*/
|
|
49
|
+
expiresHeader: string;
|
|
50
|
+
/**
|
|
51
|
+
* Text to be display as 'Access Token' under type header
|
|
52
|
+
*/
|
|
53
|
+
accessTokenType: string;
|
|
54
|
+
/**
|
|
55
|
+
* Text to be display as 'Client Credentials' under type header
|
|
56
|
+
*/
|
|
57
|
+
clientCredentialsType: string;
|
|
58
|
+
/**
|
|
59
|
+
* Chip label to be display as 'Expired' under expires header
|
|
60
|
+
*/
|
|
61
|
+
expiredChipLabel: string;
|
|
62
|
+
/**
|
|
63
|
+
* Chip label to be display as 'Never' under expires header
|
|
64
|
+
*/
|
|
65
|
+
neverChipLabel: string;
|
|
42
66
|
/**
|
|
43
67
|
* Table action text for deleting tokens
|
|
44
68
|
*/
|
|
@@ -72,10 +96,18 @@ export interface PersonalTokensLocalization {
|
|
|
72
96
|
* Generate token secret key label
|
|
73
97
|
*/
|
|
74
98
|
secretKey: string;
|
|
99
|
+
/**
|
|
100
|
+
* Generate token access token label
|
|
101
|
+
*/
|
|
102
|
+
accessToken: string;
|
|
75
103
|
/**
|
|
76
104
|
* Copy and Save text display as note after generated new token
|
|
77
105
|
*/
|
|
78
106
|
copyAndSaveId: string;
|
|
107
|
+
/**
|
|
108
|
+
* Copy and Save text display as note after generated new access token
|
|
109
|
+
*/
|
|
110
|
+
copyAndSaveAccessToken: string;
|
|
79
111
|
/**
|
|
80
112
|
* Add new token cancel button text
|
|
81
113
|
*/
|
|
@@ -80,17 +80,27 @@ export interface UsersPageThemeOptions extends PageThemeOptions {
|
|
|
80
80
|
export interface SubscriptionsPageThemeOptions extends PageThemeOptions {
|
|
81
81
|
fieldsProperties?: SubscriptionsFieldsProperties;
|
|
82
82
|
}
|
|
83
|
+
export declare enum ApiTokensMethods {
|
|
84
|
+
CLIENT_CREDENTIALS = "clientCredentials",
|
|
85
|
+
ACCESS_TOKEN = "accessToken"
|
|
86
|
+
}
|
|
87
|
+
export interface ApiTokensPageThemeOptions extends PageThemeOptions {
|
|
88
|
+
tokenMethod?: ApiTokensMethods;
|
|
89
|
+
}
|
|
90
|
+
export interface PersonalApiTokensPageThemeOptions extends PageThemeOptions {
|
|
91
|
+
tokenMethod?: ApiTokensMethods;
|
|
92
|
+
}
|
|
83
93
|
export interface PagesThemeOptions extends PageThemeOptions {
|
|
84
94
|
profile?: ProfilePageThemeOptions;
|
|
85
95
|
privacy?: PrivacyPageThemeOptions;
|
|
86
|
-
personalApiTokens?:
|
|
96
|
+
personalApiTokens?: PersonalApiTokensPageThemeOptions;
|
|
87
97
|
account?: AccountPageThemeOptions;
|
|
88
98
|
users?: UsersPageThemeOptions;
|
|
89
99
|
security?: SecurityPageThemeOptions;
|
|
90
100
|
singleSignOn?: PageThemeOptions;
|
|
91
101
|
audits?: PageThemeOptions;
|
|
92
102
|
webhooks?: PageThemeOptions;
|
|
93
|
-
apiTokens?:
|
|
103
|
+
apiTokens?: ApiTokensPageThemeOptions;
|
|
94
104
|
roles?: PageThemeOptions;
|
|
95
105
|
subscriptions?: SubscriptionsPageThemeOptions;
|
|
96
106
|
}
|
|
@@ -144,6 +154,24 @@ export interface SelectTheme {
|
|
|
144
154
|
*/
|
|
145
155
|
selectOption?: ExtendedCSSProperties;
|
|
146
156
|
}
|
|
157
|
+
export interface SeverityChipTheme {
|
|
158
|
+
/**
|
|
159
|
+
* Styling applying for warning chip
|
|
160
|
+
*/
|
|
161
|
+
warning?: ExtendedCSSProperties;
|
|
162
|
+
/**
|
|
163
|
+
* Styling applying for error chip
|
|
164
|
+
*/
|
|
165
|
+
error?: ExtendedCSSProperties;
|
|
166
|
+
/**
|
|
167
|
+
* Styling applying for info chip
|
|
168
|
+
*/
|
|
169
|
+
info?: ExtendedCSSProperties;
|
|
170
|
+
/**
|
|
171
|
+
* Styling applying for success chip
|
|
172
|
+
*/
|
|
173
|
+
success?: ExtendedCSSProperties;
|
|
174
|
+
}
|
|
147
175
|
export interface AdminPortalCommonOptions extends BaseThemeOptions {
|
|
148
176
|
/**
|
|
149
177
|
* Option to customize admin portal table
|
|
@@ -153,6 +181,7 @@ export interface AdminPortalCommonOptions extends BaseThemeOptions {
|
|
|
153
181
|
* Option to customize admin portal select/drop down list
|
|
154
182
|
*/
|
|
155
183
|
selectTheme?: SelectTheme;
|
|
184
|
+
severityChipTheme?: SeverityChipTheme;
|
|
156
185
|
}
|
|
157
186
|
export interface AdminPortalThemeOptions extends AdminPortalCommonOptions {
|
|
158
187
|
themeName?: BasicThemeName;
|
|
@@ -172,4 +201,5 @@ export interface AdminPortalTheme extends BaseTheme {
|
|
|
172
201
|
pages: PagesThemeOptions;
|
|
173
202
|
tableTheme: TableTheme;
|
|
174
203
|
selectTheme: SelectTheme;
|
|
204
|
+
severityChipTheme: SeverityChipTheme;
|
|
175
205
|
}
|
|
@@ -216,6 +216,11 @@ interface LoginBoxOptionalCommon {
|
|
|
216
216
|
* css style for every state (base, hover, focus, disabled, etc...)
|
|
217
217
|
*/
|
|
218
218
|
backToLoginStyle?: ExtendedCSSProperties;
|
|
219
|
+
/**
|
|
220
|
+
* Option to customize login box forget password buttons by providing
|
|
221
|
+
* css style
|
|
222
|
+
*/
|
|
223
|
+
forgotPasswordButton?: ExtendedCSSProperties;
|
|
219
224
|
}
|
|
220
225
|
export interface LoginBoxCommonTheme extends BaseTheme, LoginBoxOptionalCommon {
|
|
221
226
|
/**
|
package/index.js
CHANGED
|
@@ -2,4 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
5
|
+
});
|
|
6
|
+
exports.ApiTokensMethods = void 0;
|
|
7
|
+
let ApiTokensMethods;
|
|
8
|
+
exports.ApiTokensMethods = ApiTokensMethods;
|
|
9
|
+
|
|
10
|
+
(function (ApiTokensMethods) {
|
|
11
|
+
ApiTokensMethods["CLIENT_CREDENTIALS"] = "clientCredentials";
|
|
12
|
+
ApiTokensMethods["ACCESS_TOKEN"] = "accessToken";
|
|
13
|
+
})(ApiTokensMethods || (exports.ApiTokensMethods = ApiTokensMethods = {}));
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.67.0-alpha.0",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"author": "Frontegg LTD",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/runtime": "^7.18.6",
|
|
9
|
-
"@frontegg/redux-store": "6.
|
|
9
|
+
"@frontegg/redux-store": "6.67.0-alpha.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|