@ixon-cdk/types 1.3.0-next.2 → 1.4.0-next.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/dist/types/ixapi/resources/access-token.d.ts +22 -0
- package/dist/types/ixapi/resources/agent-config.d.ts +1 -0
- package/dist/types/ixapi/resources/agent-data-alarm-occurrence.d.ts +19 -0
- package/dist/types/ixapi/resources/agent-data-alarm.d.ts +0 -19
- package/dist/types/ixapi/resources/agent-data-tag.d.ts +5 -6
- package/dist/types/ixapi/resources/agent-data-variable.d.ts +1 -0
- package/dist/types/ixapi/resources/agent-router-one-to-one-nat-rule.d.ts +12 -0
- package/dist/types/ixapi/resources/agent-server.d.ts +28 -6
- package/dist/types/ixapi/resources/agent-type.d.ts +2 -0
- package/dist/types/ixapi/resources/agent.d.ts +24 -11
- package/dist/types/ixapi/resources/audience.d.ts +1 -0
- package/dist/types/ixapi/resources/component-input.d.ts +2 -1
- package/dist/types/ixapi/resources/index.d.ts +3 -0
- package/dist/types/ixapi/resources/licence.d.ts +5 -1
- package/dist/types/ixapi/resources/page.d.ts +2 -0
- package/dist/types/ixapi/resources/user.d.ts +1 -0
- package/dist/types/ixapi/resources/vpn-session.d.ts +8 -0
- package/dist/types/resource-data/index.d.ts +1 -0
- package/dist/types/resource-data/resource-data-client.d.ts +6 -0
- package/dist/types/resource-data/resource-data-query.d.ts +1 -1
- package/dist/types/resource-data/resource-data-update.d.ts +11 -0
- package/dist/types/resource-data/resource-data.d.ts +7 -1
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ export interface AccessToken {
|
|
|
12
12
|
expiresOn?: string;
|
|
13
13
|
geoLocation?: GeoLocation | null;
|
|
14
14
|
publicId: string;
|
|
15
|
+
scope?: AccessTokenScopesUnion;
|
|
15
16
|
}
|
|
16
17
|
export interface AccessTokenCreate {
|
|
17
18
|
/** In seconds. */
|
|
@@ -27,3 +28,24 @@ export interface AccessTokenCreateResponse {
|
|
|
27
28
|
secretId: string;
|
|
28
29
|
user: MyUser;
|
|
29
30
|
}
|
|
31
|
+
export interface AccessTokenScopeUnrestricted {
|
|
32
|
+
type?: 'unrestricted';
|
|
33
|
+
}
|
|
34
|
+
export interface AccessTokenScopeAllowList {
|
|
35
|
+
rels?: RelAffect[];
|
|
36
|
+
type?: 'allow';
|
|
37
|
+
}
|
|
38
|
+
export interface AccessTokenScopeDenyList {
|
|
39
|
+
rels?: RelAffect[];
|
|
40
|
+
type?: 'deny';
|
|
41
|
+
}
|
|
42
|
+
export type AccessTokenScopesUnion = AccessTokenScopeAllowList | AccessTokenScopeDenyList | AccessTokenScopeUnrestricted;
|
|
43
|
+
interface RelAffect {
|
|
44
|
+
rel?: string;
|
|
45
|
+
get?: boolean | null;
|
|
46
|
+
post?: boolean | null;
|
|
47
|
+
patch?: boolean | null;
|
|
48
|
+
delete?: boolean | null;
|
|
49
|
+
put?: boolean | null;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -12,6 +12,7 @@ export interface AgentConfig {
|
|
|
12
12
|
configsAreDifferent?: boolean;
|
|
13
13
|
differentConfigs?: boolean;
|
|
14
14
|
differentStewardConfigs?: boolean;
|
|
15
|
+
differentWanConfigs?: boolean;
|
|
15
16
|
/** NOTE: This public ID is identical to the public ID of its linked agent. */
|
|
16
17
|
publicId: string;
|
|
17
18
|
routerAdditionalSubnets?: AgentRouterAdditionalSubnet[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
export interface AgentDataAlarmOccurrence {
|
|
3
|
+
acknowledged?: boolean;
|
|
4
|
+
acknowledgedBy?: ResLink | null;
|
|
5
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
6
|
+
acknowledgedOn: string | null;
|
|
7
|
+
alarm?: ResLink;
|
|
8
|
+
comment?: string | null;
|
|
9
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
10
|
+
occurredOn?: string;
|
|
11
|
+
publicId: string;
|
|
12
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
13
|
+
rateLimitTill?: string | null;
|
|
14
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
15
|
+
rtnOn?: string | null;
|
|
16
|
+
silenced?: boolean;
|
|
17
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
18
|
+
stillActiveOn?: string | null;
|
|
19
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ResLink } from './res-link';
|
|
2
|
-
import type { User } from './user';
|
|
3
2
|
export interface AgentDataAlarm {
|
|
4
3
|
agent?: ResLink;
|
|
5
4
|
audience?: ResLink | null;
|
|
@@ -24,21 +23,3 @@ export interface AgentDataAlarm {
|
|
|
24
23
|
source?: ResLink;
|
|
25
24
|
type?: 'unary' | 'boolean' | 'error_bits' | 'threshold' | 'rate_of_change' | 'bit_pattern';
|
|
26
25
|
}
|
|
27
|
-
export interface AgentDataAlarmOcc {
|
|
28
|
-
publicId: string;
|
|
29
|
-
alarm?: AgentDataAlarm;
|
|
30
|
-
occuredOn?: string;
|
|
31
|
-
acknowledged?: boolean | null;
|
|
32
|
-
acknowledgedOn?: string | null;
|
|
33
|
-
acknowledgedBy?: User | null;
|
|
34
|
-
comment?: string | null;
|
|
35
|
-
silenced?: boolean;
|
|
36
|
-
rtnOn?: string | null;
|
|
37
|
-
annunciations?: AgentDataAlarmOccAnn[];
|
|
38
|
-
stillActiveOn?: string | null;
|
|
39
|
-
rateLimitTill?: string | null;
|
|
40
|
-
}
|
|
41
|
-
export interface AgentDataAlarmOccAnn {
|
|
42
|
-
user?: User;
|
|
43
|
-
announcedOn?: string;
|
|
44
|
-
}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import type { AgentDataCondition } from './agent-data-condition';
|
|
2
1
|
import type { AgentDataVariable } from './agent-data-variable';
|
|
3
2
|
import type { ResLink } from './res-link';
|
|
4
3
|
export interface AgentDataTag {
|
|
5
4
|
agent?: ResLink;
|
|
6
5
|
aggregators?: string[];
|
|
7
6
|
device?: ResLink;
|
|
8
|
-
downsamplingInterval?:
|
|
9
|
-
/** When set to null will revert to "last", "shortest" and "longest"
|
|
10
|
-
edgeAggregator?: 'min' | 'max' | '
|
|
7
|
+
downsamplingInterval?: string | null;
|
|
8
|
+
/** When set to null will revert to "last", "shortest" and "longest" only applicable to strings */
|
|
9
|
+
edgeAggregator?: 'any' | 'avg' | 'min' | 'max' | 'first' | 'last' | 'shortest' | 'longest' | 'increase' | null;
|
|
11
10
|
logEvent?: 'interval' | 'change' | 'trigger';
|
|
12
11
|
loggingInterval?: string;
|
|
13
|
-
logTrigger?:
|
|
12
|
+
logTrigger?: ResLink | null;
|
|
14
13
|
name?: string;
|
|
14
|
+
onChangeExpiry?: string | null;
|
|
15
15
|
publicId: string;
|
|
16
16
|
retentionPolicy?: string;
|
|
17
17
|
slug?: string | null;
|
|
18
18
|
source?: ResLink;
|
|
19
|
-
onChangeExpiry?: string | null;
|
|
20
19
|
tagId?: number;
|
|
21
20
|
variable?: AgentDataVariable;
|
|
22
21
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
export interface AgentRouterOneToOneNatRule {
|
|
3
|
+
agent?: ResLink;
|
|
4
|
+
description?: string | null;
|
|
5
|
+
destinationIpAddress?: string | null;
|
|
6
|
+
port?: number | null;
|
|
7
|
+
protocol?: string;
|
|
8
|
+
publicId: string;
|
|
9
|
+
sourceIpAddress?: string | null;
|
|
10
|
+
type?: 'vpn' | 'wlan' | 'wan';
|
|
11
|
+
virtualIpAddress?: string | null;
|
|
12
|
+
}
|
|
@@ -2,10 +2,11 @@ import type { ResLink } from './res-link';
|
|
|
2
2
|
export interface AgentServer {
|
|
3
3
|
agent?: ResLink;
|
|
4
4
|
audience?: ResLink | null;
|
|
5
|
-
connectionQuality?:
|
|
5
|
+
connectionQuality?: ConnectionQuality | null;
|
|
6
6
|
custom?: {};
|
|
7
7
|
device?: ResLink;
|
|
8
|
-
|
|
8
|
+
hasPassword?: boolean;
|
|
9
|
+
httpAuthenticationType?: HttpAuthenticationType | null;
|
|
9
10
|
landingPage?: string;
|
|
10
11
|
name?: string;
|
|
11
12
|
password?: string | null;
|
|
@@ -13,10 +14,8 @@ export interface AgentServer {
|
|
|
13
14
|
publicId: string;
|
|
14
15
|
readOnly?: boolean | null;
|
|
15
16
|
serviceGroup?: string | null;
|
|
16
|
-
template?:
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
type?: 'http' | 'rdp' | 'vnc' | 'websocket';
|
|
17
|
+
template?: AgentServerTemplate;
|
|
18
|
+
type?: AgentServerType;
|
|
20
19
|
username?: string | null;
|
|
21
20
|
useSsl?: boolean;
|
|
22
21
|
/** default: true */
|
|
@@ -24,3 +23,26 @@ export interface AgentServer {
|
|
|
24
23
|
vncEncoding?: string | null;
|
|
25
24
|
vncRightClickOnTouchHold?: boolean;
|
|
26
25
|
}
|
|
26
|
+
export interface AgentServerTemplate {
|
|
27
|
+
audience?: ResLink;
|
|
28
|
+
connectionQuality?: ConnectionQuality | null;
|
|
29
|
+
custom?: {};
|
|
30
|
+
hasPassword?: boolean;
|
|
31
|
+
httpAuthenticationType?: HttpAuthenticationType | null;
|
|
32
|
+
landingPage?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
password?: string | null;
|
|
35
|
+
port?: number;
|
|
36
|
+
publicId: string;
|
|
37
|
+
readOnly?: boolean | null;
|
|
38
|
+
type?: AgentServerType;
|
|
39
|
+
username?: string | null;
|
|
40
|
+
useSsl?: boolean;
|
|
41
|
+
visibleInMobileApp?: boolean;
|
|
42
|
+
vncEncoding?: string | null;
|
|
43
|
+
vncRightClickOnTouchHold?: boolean;
|
|
44
|
+
}
|
|
45
|
+
type AgentServerType = 'http' | 'rdp' | 'vnc' | 'websocket';
|
|
46
|
+
type ConnectionQuality = 'high' | 'normal' | 'low';
|
|
47
|
+
type HttpAuthenticationType = 'ntlm' | 'basic' | 'digest';
|
|
48
|
+
export {};
|
|
@@ -7,12 +7,14 @@ export interface AgentType {
|
|
|
7
7
|
allowTemplating?: boolean;
|
|
8
8
|
configPush?: boolean;
|
|
9
9
|
configFileFormat?: number;
|
|
10
|
+
custom?: {};
|
|
10
11
|
customServers?: boolean;
|
|
11
12
|
deviceIdFormat?: string;
|
|
12
13
|
httpProxyPort?: number;
|
|
13
14
|
latestFirmwareFile?: any;
|
|
14
15
|
name?: string;
|
|
15
16
|
offlineConfiguration?: boolean;
|
|
17
|
+
openvpnConfigMultiUse?: boolean;
|
|
16
18
|
publicId: string;
|
|
17
19
|
purchasePrice?: {
|
|
18
20
|
gratis?: boolean;
|
|
@@ -4,6 +4,8 @@ import type { AgentDevice } from './agent-device';
|
|
|
4
4
|
import type { AgentMdrServer } from './agent-mdr-server';
|
|
5
5
|
import type { AgentMembership } from './agent-membership';
|
|
6
6
|
import type { AgentNetworkValue } from './agent-network-value';
|
|
7
|
+
import type { AgentRouterLanWanAccessRule } from './agent-router-lan-wan-access-rule';
|
|
8
|
+
import type { AgentRouterVpnAccessRule } from './agent-router-vpn-access-rule';
|
|
7
9
|
import type { AgentServer } from './agent-server';
|
|
8
10
|
import type { AgentTemplate } from './agent-template';
|
|
9
11
|
import type { AgentType } from './agent-type';
|
|
@@ -17,14 +19,13 @@ import type { GeoLocation, Location } from './location';
|
|
|
17
19
|
import type { LoggingApp } from './logging-app';
|
|
18
20
|
import type { PageLink } from './page-link';
|
|
19
21
|
import type { ResLink } from './res-link';
|
|
20
|
-
import type { RscServer } from './rsc-server';
|
|
21
22
|
import type { User } from './user';
|
|
22
23
|
import type { VpnProtocol } from './vpn-protocol';
|
|
23
|
-
import type {
|
|
24
|
+
import type { VpnSession } from './vpn-session';
|
|
24
25
|
export interface Agent extends AgentLike {
|
|
25
26
|
activationLicence?: Licence | null;
|
|
26
27
|
activeStatus?: 'active' | 'inactive';
|
|
27
|
-
activeVpnSession?:
|
|
28
|
+
activeVpnSession?: VpnSession | null;
|
|
28
29
|
alarmingApp?: AlarmingApp;
|
|
29
30
|
assets?: ResLink[];
|
|
30
31
|
company?: ResLink;
|
|
@@ -68,6 +69,7 @@ export interface AgentLike {
|
|
|
68
69
|
dataSources?: AgentDataSource[];
|
|
69
70
|
description?: string | null;
|
|
70
71
|
devices?: AgentDevice[];
|
|
72
|
+
lanWanAccessRules?: AgentRouterLanWanAccessRule[];
|
|
71
73
|
name?: string;
|
|
72
74
|
pageLinks?: PageLink[];
|
|
73
75
|
publicId: string;
|
|
@@ -90,20 +92,37 @@ export interface AgentLocalIp {
|
|
|
90
92
|
gateways?: string[];
|
|
91
93
|
}
|
|
92
94
|
export interface AgentUserAgent {
|
|
95
|
+
alarming?: boolean;
|
|
93
96
|
appName?: string;
|
|
94
97
|
appVersion?: string | null;
|
|
95
98
|
configName?: string | null;
|
|
96
99
|
configVersion?: string | null;
|
|
100
|
+
dataMonitoring?: boolean;
|
|
97
101
|
firmwareVersion?: string | null;
|
|
98
102
|
hardware?: string | null;
|
|
99
103
|
hardwareCode?: string | null;
|
|
100
104
|
hardwareVersion?: string | null;
|
|
101
105
|
libixagentVersion?: string;
|
|
102
106
|
libixloggerVersion?: string;
|
|
107
|
+
logOnTrigger?: boolean;
|
|
108
|
+
multiWan?: boolean;
|
|
103
109
|
opensslVersion?: string | null;
|
|
110
|
+
openvpnOccEnabled?: boolean;
|
|
111
|
+
openvpnOpensslVersion?: string | null;
|
|
112
|
+
openvpnVersion?: string | null;
|
|
104
113
|
osName?: string | null;
|
|
105
114
|
osVersion?: string | null;
|
|
115
|
+
packageName?: string | null;
|
|
116
|
+
packageVersion?: string | null;
|
|
106
117
|
publicId: string;
|
|
118
|
+
remoteFirmwareUpgrade?: boolean;
|
|
119
|
+
staticMapping?: boolean;
|
|
120
|
+
stewardConfigPush?: boolean;
|
|
121
|
+
value?: string | null;
|
|
122
|
+
wanInterfaceCell0?: CellularType;
|
|
123
|
+
wanInterfaceEth0?: boolean;
|
|
124
|
+
wanInterfaceWifi0?: boolean;
|
|
125
|
+
wifi?: boolean;
|
|
107
126
|
}
|
|
108
127
|
export interface AgentRateLimiting {
|
|
109
128
|
configMqttCommandCounter?: number;
|
|
@@ -123,14 +142,6 @@ export interface AgentRateLimiting {
|
|
|
123
142
|
* - `"lock"` when it manually locked by R&D and the user unable to retry.
|
|
124
143
|
*/
|
|
125
144
|
export type AgentRateLimitingStatus = null | 'soft' | 'hard' | 'lock';
|
|
126
|
-
export interface AgentVpnSession {
|
|
127
|
-
bytesReceived?: number;
|
|
128
|
-
bytesSent?: number;
|
|
129
|
-
duration?: number;
|
|
130
|
-
startedOn?: number;
|
|
131
|
-
rscServer?: RscServer | null;
|
|
132
|
-
vpnAddress?: string;
|
|
133
|
-
}
|
|
134
145
|
export interface AgentFromTemplate {
|
|
135
146
|
publicId: string;
|
|
136
147
|
template: AgentTemplate;
|
|
@@ -150,3 +161,5 @@ export interface ShellAgentCreate {
|
|
|
150
161
|
groups?: ResLink[];
|
|
151
162
|
template?: ResLink | null;
|
|
152
163
|
}
|
|
164
|
+
type CellularType = '3G' | '4G' | 'neither';
|
|
165
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type ComponentInputType = 'AggregatedMetric' | 'Checkbox' | 'Color' | 'File' | 'Group' | 'Image' | 'Icon' | 'MaterialIcon' | 'LiveMetric' | 'List' | 'Number' | 'RawMetric' | 'Selection' | 'String' | 'Text';
|
|
1
|
+
type ComponentInputType = 'AggregatedMetric' | 'Checkbox' | 'Color' | 'Date' | 'File' | 'Group' | 'Image' | 'Icon' | 'MaterialIcon' | 'LiveMetric' | 'List' | 'Number' | 'RawMetric' | 'Selection' | 'String' | 'Text';
|
|
2
2
|
export interface ComponentInputSummary {
|
|
3
3
|
label?: string;
|
|
4
4
|
colorField?: string;
|
|
@@ -7,6 +7,7 @@ export interface ComponentInput {
|
|
|
7
7
|
children?: ComponentInput[];
|
|
8
8
|
defaultValue?: any;
|
|
9
9
|
description?: string;
|
|
10
|
+
disabled?: boolean;
|
|
10
11
|
hint?: string;
|
|
11
12
|
itemType?: ComponentInput;
|
|
12
13
|
key: string;
|
|
@@ -4,6 +4,7 @@ export * from './agent';
|
|
|
4
4
|
export * from './agent-activate';
|
|
5
5
|
export * from './agent-config';
|
|
6
6
|
export * from './agent-data-alarm';
|
|
7
|
+
export * from './agent-data-alarm-occurrence';
|
|
7
8
|
export * from './agent-data-alarming-app';
|
|
8
9
|
export * from './agent-data-condition';
|
|
9
10
|
export * from './agent-data-logging-app';
|
|
@@ -21,6 +22,7 @@ export * from './agent-queue-report';
|
|
|
21
22
|
export * from './agent-registration-profile';
|
|
22
23
|
export * from './agent-registration-profile-membership';
|
|
23
24
|
export * from './agent-router-lan-wan-access-rule';
|
|
25
|
+
export * from './agent-router-one-to-one-nat-rule';
|
|
24
26
|
export * from './agent-router-vpn-access-rule';
|
|
25
27
|
export * from './agent-router-vpn-config';
|
|
26
28
|
export * from './agent-server';
|
|
@@ -100,6 +102,7 @@ export * from './user';
|
|
|
100
102
|
export * from './user-membership';
|
|
101
103
|
export * from './user-push-device';
|
|
102
104
|
export * from './vpn-protocol';
|
|
105
|
+
export * from './vpn-session';
|
|
103
106
|
export * from './vpn-usage';
|
|
104
107
|
export * from './web-access';
|
|
105
108
|
export * from './webhook-subscription';
|
|
@@ -3,9 +3,12 @@ import type { AgentType } from './agent-type';
|
|
|
3
3
|
import type { LicenceBundle } from './licence-bundle';
|
|
4
4
|
import type { LicenceType } from './licence-type';
|
|
5
5
|
import type { ResLink } from './res-link';
|
|
6
|
+
interface AgentBase extends Pick<Agent, 'custom' | 'deviceId' | 'geoLocation' | 'location' | 'name' | 'publicId'> {
|
|
7
|
+
type?: ResLink;
|
|
8
|
+
}
|
|
6
9
|
export interface Licence {
|
|
7
10
|
activated?: boolean;
|
|
8
|
-
agent?:
|
|
11
|
+
agent?: AgentBase | null;
|
|
9
12
|
agentType?: AgentType | null;
|
|
10
13
|
bundle?: LicenceBundle | null;
|
|
11
14
|
expiresOn?: string | null;
|
|
@@ -25,3 +28,4 @@ export interface LicenceExtend {
|
|
|
25
28
|
licence?: ResLink;
|
|
26
29
|
publicId: string;
|
|
27
30
|
}
|
|
31
|
+
export {};
|
|
@@ -13,5 +13,7 @@ export interface Page {
|
|
|
13
13
|
publicId: string;
|
|
14
14
|
published?: PageVersion | null;
|
|
15
15
|
static?: boolean;
|
|
16
|
+
orientation?: PageOrientation | null;
|
|
16
17
|
}
|
|
18
|
+
export type PageOrientation = 'portrait' | 'landscape';
|
|
17
19
|
export type PageApplicationType = 'sheet' | 'card' | 'report';
|
|
@@ -4,6 +4,7 @@ import type { OtpAuth } from './otp-auth';
|
|
|
4
4
|
import type { TermsOfUsePolicy } from './policy';
|
|
5
5
|
import type { UserMembership } from './user-membership';
|
|
6
6
|
export interface User {
|
|
7
|
+
custom?: {};
|
|
7
8
|
/** @changeNotification taint */
|
|
8
9
|
emailAddress?: string;
|
|
9
10
|
/** For example 2019-01-01T12:00:00Z */
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
import type { ResourceDataQuery, ResourceDataQuerySelector, ResourceDataTemplateQuery } from './resource-data-query';
|
|
3
3
|
import type { ResourceDataResult } from './resource-data-result';
|
|
4
4
|
import type { ResourceData } from './resource-data';
|
|
5
|
+
import type { ResourceDataUpdate, ResourceDataUpdateSelector } from './resource-data-update';
|
|
5
6
|
interface ResultDataMap {
|
|
6
7
|
Agent: ResourceData.Agent;
|
|
7
8
|
Asset: ResourceData.Asset;
|
|
9
|
+
AssetAppConfig: ResourceData.AssetAppConfig;
|
|
8
10
|
Branding: ResourceData.Branding;
|
|
9
11
|
CustomPropertyList: ResourceData.CustomProperty[];
|
|
10
12
|
GroupList: ResourceData.Group[];
|
|
@@ -59,5 +61,9 @@ export interface ResourceDataClient {
|
|
|
59
61
|
* @returns {function()} Returns a deregistration function for the listener.
|
|
60
62
|
*/
|
|
61
63
|
render(templates: ResourceDataTemplateQuery[], listener: (results: string[]) => void): () => void;
|
|
64
|
+
/**
|
|
65
|
+
* @returns {Promise} Returns a promise that resolves when the update succeeds.
|
|
66
|
+
*/
|
|
67
|
+
update<T extends ResourceDataUpdateSelector>(update: ResourceDataUpdate<T>): Promise<void>;
|
|
62
68
|
}
|
|
63
69
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @module ResourceDataQuery */
|
|
2
|
-
export type ResourceDataQuerySelector = 'Agent' | 'Asset' | 'Branding' | 'CustomPropertyList' | 'GroupList' | 'MyCompany' | 'MyUser' | 'PagePage' | 'PageVersion' | 'UserList';
|
|
2
|
+
export type ResourceDataQuerySelector = 'Agent' | 'Asset' | 'AssetAppConfig' | 'Branding' | 'CustomPropertyList' | 'GroupList' | 'MyCompany' | 'MyUser' | 'PagePage' | 'PageVersion' | 'UserList';
|
|
3
3
|
export interface ResourceDataQuery<T = ResourceDataQuerySelector> {
|
|
4
4
|
/**
|
|
5
5
|
* String reference unique to the query call made by the client
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResourceData } from './resource-data';
|
|
2
|
+
type ResourceDataUpdateDataMap = {
|
|
3
|
+
AssetAppConfig: Partial<ResourceData.AssetAppConfig>;
|
|
4
|
+
};
|
|
5
|
+
export type ResourceDataUpdateSelector = keyof ResourceDataUpdateDataMap;
|
|
6
|
+
export type ResourceDataUpdate<T extends ResourceDataUpdateSelector = ResourceDataUpdateSelector> = {
|
|
7
|
+
_clientRef?: string;
|
|
8
|
+
selector: T;
|
|
9
|
+
data: ResourceDataUpdateDataMap[T];
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -4,7 +4,7 @@ interface AgentResourceData {
|
|
|
4
4
|
name?: string;
|
|
5
5
|
publicId: string;
|
|
6
6
|
} | null;
|
|
7
|
-
vpnAddress?: string;
|
|
7
|
+
vpnAddress?: string | null;
|
|
8
8
|
} | null;
|
|
9
9
|
connectedUsers?: {
|
|
10
10
|
name?: string;
|
|
@@ -88,6 +88,11 @@ interface AssetResourceData {
|
|
|
88
88
|
publicId: string;
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
+
interface AssetAppConfigResourceData {
|
|
92
|
+
publicId: string;
|
|
93
|
+
stateValues?: object | null;
|
|
94
|
+
values?: object | null;
|
|
95
|
+
}
|
|
91
96
|
interface BrandingResourceData {
|
|
92
97
|
logo?: string | null;
|
|
93
98
|
publicId: string;
|
|
@@ -144,6 +149,7 @@ interface UserResourceData {
|
|
|
144
149
|
export declare namespace ResourceData {
|
|
145
150
|
type Agent = AgentResourceData;
|
|
146
151
|
type Asset = AssetResourceData;
|
|
152
|
+
type AssetAppConfig = AssetAppConfigResourceData;
|
|
147
153
|
type Branding = BrandingResourceData;
|
|
148
154
|
type CustomProperty = CustomPropertyResourceData;
|
|
149
155
|
type Group = GroupResourceData;
|