/
FlexApi.ts
69 lines (60 loc) · 2 KB
/
FlexApi.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
65
66
67
68
69
import { ChannelListInstance } from "./flexApi/v1/channel";
import { ConfigurationListInstance } from "./flexApi/v1/configuration";
import { FlexFlowListInstance } from "./flexApi/v1/flexFlow";
import { InteractionListInstance } from "./flexApi/v1/interaction";
import { WebChannelListInstance } from "./flexApi/v1/webChannel";
import { AssessmentsListInstance } from "./flexApi/v1/assessments";
import { WebChannelsListInstance } from "./flexApi/v2/webChannels";
import FlexApiBase from "./FlexApiBase";
class FlexApi extends FlexApiBase {
/**
* @deprecated - Use v1.assessments instead
*/
get assessments(): AssessmentsListInstance {
console.warn("assessments is deprecated. Use v1.assessments instead.");
return this.v1.assessments;
}
/**
* @deprecated - Use v1.channel instead
*/
get channel(): ChannelListInstance {
console.warn("channel is deprecated. Use v1.channel instead.");
return this.v1.channel;
}
/**
* @deprecated - Use v1.configuration instead
*/
get configuration(): ConfigurationListInstance {
console.warn("configuration is deprecated. Use v1.configuration instead.");
return this.v1.configuration;
}
/**
* @deprecated - Use v1.flexFlow instead
*/
get flexFlow(): FlexFlowListInstance {
console.warn("flexFlow is deprecated. Use v1.flexFlow instead.");
return this.v1.flexFlow;
}
/**
* @deprecated - Use v1.interaction instead
*/
get interaction(): InteractionListInstance {
console.warn("interaction is deprecated. Use v1.interaction instead.");
return this.v1.interaction;
}
/**
* @deprecated - Use v1.webChannel instead
*/
get webChannel(): WebChannelListInstance {
console.warn("webChannel is deprecated. Use v1.webChannel instead.");
return this.v1.webChannel;
}
/**
* @deprecated - Use v2.webChannels instead
*/
get webChannels(): WebChannelsListInstance {
console.warn("webChannels is deprecated. Use v2.webChannels instead.");
return this.v2.webChannels;
}
}
export = FlexApi;