@rendley/sdk 1.8.2 → 1.8.4
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/dist/Engine.d.ts +23 -2
- package/dist/config/config.d.ts +3 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +4 -0
- package/dist/modules/clip/clips/subtitles/SubtitlesClip.d.ts +4 -0
- package/dist/modules/display/Display.d.ts +1 -1
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +10 -0
- package/dist/modules/settings/Settings.d.ts +63 -0
- package/dist/modules/storage/StorageProviderBase.d.ts +1 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +63 -2
- package/dist/modules/undo/UndoManager.types.d.ts +10 -0
- package/dist/types/auth.types.d.ts +14 -0
- package/dist/types/license.types.d.ts +5 -0
- package/dist/utils/browser/fetchWithRetries.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1235,6 +1235,10 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1235
1235
|
removeFilter(filterId: string): void;
|
|
1236
1236
|
addEffect(effect: Effect): void;
|
|
1237
1237
|
removeEffect(effectId: string): void;
|
|
1238
|
+
hitTest(point: {
|
|
1239
|
+
cursorX: number;
|
|
1240
|
+
cursorY: number;
|
|
1241
|
+
}): boolean;
|
|
1238
1242
|
destroy(): void;
|
|
1239
1243
|
onPlay(currentTime: number): Promise<void>;
|
|
1240
1244
|
onPause(currentTime: number): void;
|
|
@@ -6,5 +6,9 @@ export declare class SubtitlesClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Spri
|
|
|
6
6
|
init(layerId: string): Promise<void>;
|
|
7
7
|
updateDuration(): void;
|
|
8
8
|
clone(): Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>;
|
|
9
|
+
hitTest(point: {
|
|
10
|
+
cursorX: number;
|
|
11
|
+
cursorY: number;
|
|
12
|
+
}): boolean;
|
|
9
13
|
hasSprite(): boolean;
|
|
10
14
|
}
|
|
@@ -30,8 +30,8 @@ export declare class Display {
|
|
|
30
30
|
getView(): HTMLCanvasElement;
|
|
31
31
|
setBackgroundColor(color: string): void;
|
|
32
32
|
setResolution(width: number, height: number): void;
|
|
33
|
+
private updateViewAutoLayout;
|
|
33
34
|
getClipIdByCursorPosition(cursorX: number, cursorY: number): string | null;
|
|
34
|
-
private hitTest;
|
|
35
35
|
destroy(): void;
|
|
36
36
|
serialize(): {
|
|
37
37
|
height: number;
|
|
@@ -34,6 +34,11 @@ export declare enum EventsEnum {
|
|
|
34
34
|
LIBRARY_PROGRESS = "library:progress",
|
|
35
35
|
SUBTITLES_ADDED = "subtitles:added",
|
|
36
36
|
SUBTITLES_REMOVED = "subtitles:removed",
|
|
37
|
+
SUBTITLES_MAIN_STYLE_UPDATED = "subtitles:main-style:updated",
|
|
38
|
+
SUBTITLES_HIGHLIGHTED_STYLE_UPDATED = "subtitles:highlighted-style:updated",
|
|
39
|
+
SUBTITLES_ANIMATION_UPDATED = "subtitles:animation:updated",
|
|
40
|
+
SUBTITLES_TEXT_MODE_UPDATED = "subtitles:text-mode:updated",
|
|
41
|
+
SUBTITLES_TRANSFORM_UPDATED = "subtitles:transform:updated",
|
|
37
42
|
FONT_ADDED = "font:added",
|
|
38
43
|
FONT_REMOVED = "font:removed",
|
|
39
44
|
FONT_ERROR = "font:error",
|
|
@@ -168,6 +173,11 @@ export type EventPayloadMap = {
|
|
|
168
173
|
[EventsEnum.SUBTITLES_REMOVED]: {
|
|
169
174
|
subtitlesId: string;
|
|
170
175
|
};
|
|
176
|
+
[EventsEnum.SUBTITLES_MAIN_STYLE_UPDATED]: undefined;
|
|
177
|
+
[EventsEnum.SUBTITLES_HIGHLIGHTED_STYLE_UPDATED]: undefined;
|
|
178
|
+
[EventsEnum.SUBTITLES_ANIMATION_UPDATED]: undefined;
|
|
179
|
+
[EventsEnum.SUBTITLES_TEXT_MODE_UPDATED]: undefined;
|
|
180
|
+
[EventsEnum.SUBTITLES_TRANSFORM_UPDATED]: undefined;
|
|
171
181
|
[EventsEnum.FONT_ADDED]: {
|
|
172
182
|
fontId: string;
|
|
173
183
|
};
|
|
@@ -17,21 +17,63 @@ export declare enum PerformanceMode {
|
|
|
17
17
|
REALTIME = "realtime",
|
|
18
18
|
QUALITY = "quality"
|
|
19
19
|
}
|
|
20
|
+
export declare enum AutoLayoutMode {
|
|
21
|
+
NONE = "none",
|
|
22
|
+
BOTH = "both",
|
|
23
|
+
PREFER_WIDTH = "prefer-width",
|
|
24
|
+
PREFER_HEIGHT = "prefer-height"
|
|
25
|
+
}
|
|
20
26
|
export declare const SettingsSchema: z.ZodObject<{
|
|
21
27
|
decoderPreferredAcceleration: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PreferredAcceleration>>>;
|
|
22
28
|
encoderPreferredAcceleration: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PreferredAcceleration>>>;
|
|
23
29
|
m3u8MaxResolution: z.ZodDefault<z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
24
30
|
showRenderPreview: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31
|
+
encoderCodec: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof VideoCodec>>>;
|
|
32
|
+
encoderUseWebCodecs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
33
|
+
encoderUseAlpha: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
34
|
+
encoderBitrate: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
35
|
+
encoderBitrateMode: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof BitrateMode>>>;
|
|
36
|
+
encoderPerformanceMode: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PerformanceMode>>>;
|
|
37
|
+
encoderDeadline: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
38
|
+
encoderCrf: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
39
|
+
encoderForcedCodecRFCString: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
40
|
+
subtitlesScaleOnResize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
41
|
+
subtitlesAutoWrapOnResize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
42
|
+
viewAutoLayoutOnResize: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AutoLayoutMode>>>;
|
|
25
43
|
}, "strip", z.ZodTypeAny, {
|
|
26
44
|
decoderPreferredAcceleration: PreferredAcceleration;
|
|
27
45
|
encoderPreferredAcceleration: PreferredAcceleration;
|
|
28
46
|
m3u8MaxResolution: [number, number];
|
|
29
47
|
showRenderPreview: boolean;
|
|
48
|
+
encoderCodec: VideoCodec;
|
|
49
|
+
encoderUseWebCodecs: boolean;
|
|
50
|
+
encoderUseAlpha: boolean;
|
|
51
|
+
encoderBitrate: number;
|
|
52
|
+
encoderBitrateMode: BitrateMode;
|
|
53
|
+
encoderPerformanceMode: PerformanceMode;
|
|
54
|
+
encoderDeadline: number;
|
|
55
|
+
encoderCrf: number;
|
|
56
|
+
encoderForcedCodecRFCString: string;
|
|
57
|
+
subtitlesScaleOnResize: boolean;
|
|
58
|
+
subtitlesAutoWrapOnResize: boolean;
|
|
59
|
+
viewAutoLayoutOnResize: AutoLayoutMode;
|
|
30
60
|
}, {
|
|
31
61
|
decoderPreferredAcceleration?: PreferredAcceleration | undefined;
|
|
32
62
|
encoderPreferredAcceleration?: PreferredAcceleration | undefined;
|
|
33
63
|
m3u8MaxResolution?: [number, number] | undefined;
|
|
34
64
|
showRenderPreview?: boolean | undefined;
|
|
65
|
+
encoderCodec?: VideoCodec | undefined;
|
|
66
|
+
encoderUseWebCodecs?: boolean | undefined;
|
|
67
|
+
encoderUseAlpha?: boolean | undefined;
|
|
68
|
+
encoderBitrate?: number | undefined;
|
|
69
|
+
encoderBitrateMode?: BitrateMode | undefined;
|
|
70
|
+
encoderPerformanceMode?: PerformanceMode | undefined;
|
|
71
|
+
encoderDeadline?: number | undefined;
|
|
72
|
+
encoderCrf?: number | undefined;
|
|
73
|
+
encoderForcedCodecRFCString?: string | undefined;
|
|
74
|
+
subtitlesScaleOnResize?: boolean | undefined;
|
|
75
|
+
subtitlesAutoWrapOnResize?: boolean | undefined;
|
|
76
|
+
viewAutoLayoutOnResize?: AutoLayoutMode | undefined;
|
|
35
77
|
}>;
|
|
36
78
|
export declare class Settings {
|
|
37
79
|
private decoderPreferredAcceleration;
|
|
@@ -47,6 +89,9 @@ export declare class Settings {
|
|
|
47
89
|
private encoderUseAlpha;
|
|
48
90
|
private encoderDeadline;
|
|
49
91
|
private encoderCrf;
|
|
92
|
+
private subtitlesScaleOnResize;
|
|
93
|
+
private subtitlesAutoWrapOnResize;
|
|
94
|
+
private viewAutoLayoutOnResize;
|
|
50
95
|
constructor();
|
|
51
96
|
setEncoderCrf(crf: number): void;
|
|
52
97
|
getEncoderCrf(): number;
|
|
@@ -74,11 +119,29 @@ export declare class Settings {
|
|
|
74
119
|
getEncoderPreferredAcceleration(): PreferredAcceleration;
|
|
75
120
|
setM3u8MaxResolution(width: number, height: number): void;
|
|
76
121
|
getM3u8MaxResolution(): number[];
|
|
122
|
+
setSubtitlesScaleOnResize(scale: boolean): void;
|
|
123
|
+
getSubtitlesScaleOnResize(): boolean;
|
|
124
|
+
setSubtitlesAutoWrapOnResize(autoWrap: boolean): void;
|
|
125
|
+
getSubtitlesAutoWrapOnResize(): boolean;
|
|
126
|
+
setViewAutoLayoutOnResize(autoLayoutMode: AutoLayoutMode): void;
|
|
127
|
+
getViewAutoLayoutOnResize(): AutoLayoutMode;
|
|
77
128
|
serialize(): {
|
|
78
129
|
decoderPreferredAcceleration: PreferredAcceleration;
|
|
79
130
|
encoderPreferredAcceleration: PreferredAcceleration;
|
|
80
131
|
m3u8MaxResolution: [number, number];
|
|
81
132
|
showRenderPreview: boolean;
|
|
133
|
+
encoderCodec: VideoCodec;
|
|
134
|
+
encoderUseWebCodecs: boolean;
|
|
135
|
+
encoderUseAlpha: boolean;
|
|
136
|
+
encoderBitrate: number;
|
|
137
|
+
encoderBitrateMode: BitrateMode;
|
|
138
|
+
encoderPerformanceMode: PerformanceMode;
|
|
139
|
+
encoderDeadline: number;
|
|
140
|
+
encoderCrf: number;
|
|
141
|
+
encoderForcedCodecRFCString: string;
|
|
142
|
+
subtitlesScaleOnResize: boolean;
|
|
143
|
+
subtitlesAutoWrapOnResize: boolean;
|
|
144
|
+
viewAutoLayoutOnResize: AutoLayoutMode;
|
|
82
145
|
};
|
|
83
146
|
static deserialize(data: object): Settings;
|
|
84
147
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as PIXI from "pixi.js";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import { Subtitles } from "../library/Subtitles";
|
|
3
4
|
export declare enum HighlightAnimationEnum {
|
|
@@ -6,6 +7,43 @@ export declare enum HighlightAnimationEnum {
|
|
|
6
7
|
POP_ROTATE = "pop_rotate",
|
|
7
8
|
WIGGLE = "wiggle"
|
|
8
9
|
}
|
|
10
|
+
declare const CommonTextStyleSchema: z.ZodObject<{
|
|
11
|
+
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
13
|
+
fontWeight: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "bold", "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900"]>>>;
|
|
14
|
+
fontFamily: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
15
|
+
fontStyle: z.ZodDefault<z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>>;
|
|
16
|
+
backgroundColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
17
|
+
backgroundPadding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
+
backgroundCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
19
|
+
strokeThickness: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
20
|
+
strokeColor: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
21
|
+
padding: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
color: string;
|
|
24
|
+
fontSize: number;
|
|
25
|
+
fontWeight: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
26
|
+
fontFamily: string;
|
|
27
|
+
fontStyle: "normal" | "italic" | "oblique";
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
backgroundPadding: number;
|
|
30
|
+
backgroundCornerRadius: number;
|
|
31
|
+
strokeThickness: number;
|
|
32
|
+
strokeColor: string;
|
|
33
|
+
padding: number;
|
|
34
|
+
}, {
|
|
35
|
+
color?: string | undefined;
|
|
36
|
+
fontSize?: number | undefined;
|
|
37
|
+
fontWeight?: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | undefined;
|
|
38
|
+
fontFamily?: string | undefined;
|
|
39
|
+
fontStyle?: "normal" | "italic" | "oblique" | undefined;
|
|
40
|
+
backgroundColor?: string | undefined;
|
|
41
|
+
backgroundPadding?: number | undefined;
|
|
42
|
+
backgroundCornerRadius?: number | undefined;
|
|
43
|
+
strokeThickness?: number | undefined;
|
|
44
|
+
strokeColor?: string | undefined;
|
|
45
|
+
padding?: number | undefined;
|
|
46
|
+
}>;
|
|
9
47
|
declare const MainTextStyleSchema: z.ZodObject<{
|
|
10
48
|
color: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
11
49
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -90,6 +128,7 @@ declare const HighlightTextStyleSchema: z.ZodObject<{
|
|
|
90
128
|
padding?: number | undefined;
|
|
91
129
|
}>;
|
|
92
130
|
declare const TextModeSchema: z.ZodEnum<["full", "partial"]>;
|
|
131
|
+
export type CommonTextStyle = z.infer<typeof CommonTextStyleSchema>;
|
|
93
132
|
export type HighlightTextStyle = z.infer<typeof HighlightTextStyleSchema>;
|
|
94
133
|
export type MainTextStyle = z.infer<typeof MainTextStyleSchema>;
|
|
95
134
|
export type TextModeType = z.infer<typeof TextModeSchema>;
|
|
@@ -180,7 +219,10 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
180
219
|
strokeColor?: string | undefined;
|
|
181
220
|
padding?: number | undefined;
|
|
182
221
|
}>;
|
|
222
|
+
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
223
|
+
scale: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
183
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
scale: number;
|
|
184
226
|
textMode: "full" | "partial";
|
|
185
227
|
highlightAnimation: HighlightAnimationEnum;
|
|
186
228
|
highlightAnimationSpeed: number;
|
|
@@ -213,6 +255,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
213
255
|
strokeColor: string;
|
|
214
256
|
padding: number;
|
|
215
257
|
};
|
|
258
|
+
position?: [number, number] | undefined;
|
|
216
259
|
}, {
|
|
217
260
|
textMode: "full" | "partial";
|
|
218
261
|
highlightAnimation: HighlightAnimationEnum;
|
|
@@ -246,6 +289,8 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
|
|
|
246
289
|
strokeColor?: string | undefined;
|
|
247
290
|
padding?: number | undefined;
|
|
248
291
|
};
|
|
292
|
+
position?: [number, number] | undefined;
|
|
293
|
+
scale?: number | undefined;
|
|
249
294
|
}>;
|
|
250
295
|
export declare class SubtitlesManager {
|
|
251
296
|
private mainText;
|
|
@@ -268,13 +313,20 @@ export declare class SubtitlesManager {
|
|
|
268
313
|
private highlightBackgroundCornerRadius;
|
|
269
314
|
private mainTextStyle;
|
|
270
315
|
private highlightTextStyle;
|
|
316
|
+
private position;
|
|
317
|
+
private scale;
|
|
318
|
+
private cachedMainTextTransform;
|
|
271
319
|
private getInitialTweenValue;
|
|
272
320
|
constructor();
|
|
273
321
|
init(): void;
|
|
274
322
|
setHighlightAnimation(animation: HighlightAnimationEnum, speedMultiplier?: number): void;
|
|
275
323
|
updateSubtitlesClips(subtitleId: string): void;
|
|
324
|
+
setPosition(x: number, y: number): void;
|
|
325
|
+
getPosition(): number[];
|
|
326
|
+
setScale(scale: number): void;
|
|
327
|
+
getScale(): number;
|
|
276
328
|
setTextMode(mode: TextModeType): void;
|
|
277
|
-
setMainTextStyle(style: MainTextStyle
|
|
329
|
+
setMainTextStyle(style: Partial<MainTextStyle>, reset?: boolean): void;
|
|
278
330
|
getTextMode(): "full" | "partial";
|
|
279
331
|
getMainTextStyle(): {
|
|
280
332
|
color: string;
|
|
@@ -306,7 +358,8 @@ export declare class SubtitlesManager {
|
|
|
306
358
|
padding: number;
|
|
307
359
|
};
|
|
308
360
|
getHighlightAnimation(): HighlightAnimationEnum;
|
|
309
|
-
setHighlightedTextStyle(style: HighlightTextStyle
|
|
361
|
+
setHighlightedTextStyle(style: Partial<HighlightTextStyle>, reset?: boolean): void;
|
|
362
|
+
onViewResize(oldWidth: number, oldHeight: number, newWidth: number, newHeight: number): void;
|
|
310
363
|
private extractWordInfo;
|
|
311
364
|
private getSubtitleText;
|
|
312
365
|
private getHighlightedWordInfo;
|
|
@@ -314,8 +367,15 @@ export declare class SubtitlesManager {
|
|
|
314
367
|
update(currentTime: number): void;
|
|
315
368
|
convertSRTToSubtitles(srt: string): Subtitles;
|
|
316
369
|
extractSubtitlesFromVideo(mediaDataId: string): Promise<string> | "";
|
|
370
|
+
hitTest(point: {
|
|
371
|
+
cursorX: number;
|
|
372
|
+
cursorY: number;
|
|
373
|
+
}): boolean;
|
|
374
|
+
getDisplayContainer(): PIXI.Container<PIXI.DisplayObject>;
|
|
375
|
+
getMainTextContainer(): PIXI.Text;
|
|
317
376
|
destroy(): void;
|
|
318
377
|
serialize(): {
|
|
378
|
+
scale: number;
|
|
319
379
|
textMode: "full" | "partial";
|
|
320
380
|
highlightAnimation: HighlightAnimationEnum;
|
|
321
381
|
highlightAnimationSpeed: number;
|
|
@@ -348,6 +408,7 @@ export declare class SubtitlesManager {
|
|
|
348
408
|
strokeColor: string;
|
|
349
409
|
padding: number;
|
|
350
410
|
};
|
|
411
|
+
position?: [number, number] | undefined;
|
|
351
412
|
};
|
|
352
413
|
static deserialize(data: object): SubtitlesManager;
|
|
353
414
|
}
|
|
@@ -43,6 +43,8 @@ export declare enum UndoActionEnum {
|
|
|
43
43
|
SUBTITLES_MAIN_TEXT_STYLE = "subtitles-main-text-style",
|
|
44
44
|
SUBTITLES_HIGHLIGHT_TEXT_STYLE = "subtitles-highlighted-text-style",
|
|
45
45
|
SUBTITLES_HIGHLIGHT_ANIMATION = "subtitles-highlight-animation",
|
|
46
|
+
SUBTITLES_POSITION = "subtitles-position",
|
|
47
|
+
SUBTITLES_SCALE = "subtitles-scale",
|
|
46
48
|
LIBRARY_SUBTITLES_ADD = "library-subtitles-add",
|
|
47
49
|
LIBRARY_SUBTITLES_REMOVE = "library-subtitles-remove",
|
|
48
50
|
LIBRARY_SUBTITLES_ADD_BLOCK = "library-subtitles-add-block",
|
|
@@ -246,6 +248,14 @@ export type UndoActionMappings = {
|
|
|
246
248
|
animation: HighlightAnimationEnum;
|
|
247
249
|
speed: number;
|
|
248
250
|
};
|
|
251
|
+
[UndoActionEnum.SUBTITLES_POSITION]: {
|
|
252
|
+
prevPosition: number[];
|
|
253
|
+
position: number[];
|
|
254
|
+
};
|
|
255
|
+
[UndoActionEnum.SUBTITLES_SCALE]: {
|
|
256
|
+
prevScale: number;
|
|
257
|
+
scale: number;
|
|
258
|
+
};
|
|
249
259
|
[UndoActionEnum.LIBRARY_SUBTITLES_ADD]: {
|
|
250
260
|
subtitlesId: string;
|
|
251
261
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum LicenseAuthentificationStatusEnum {
|
|
2
|
+
NotAuthentificated = -1,
|
|
3
|
+
Success = 0,
|
|
4
|
+
InvalidKeyFormat = 1,
|
|
5
|
+
InvalidLicenseeHostCombination = 2,
|
|
6
|
+
InvalidLicenseType = 3,
|
|
7
|
+
ExpiredLicense = 4,
|
|
8
|
+
UnsupportedKeyVersion = 5
|
|
9
|
+
}
|
|
10
|
+
export declare enum LicenseTypeEnum {
|
|
11
|
+
Free = "Free",
|
|
12
|
+
Testing = "Testing",
|
|
13
|
+
Licensed = "Licensed"
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fetchWithRetries<T = any>(url: string, options?: RequestInit, retries?: number): Promise<T>;
|