@aceplus/smartace-api 2.13.0-alpha.2 → 2.13.0-alpha.20
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/auth.account_pb.d.ts +4 -130
- package/auth.account_pb.js +97 -1079
- package/auth.account_pb_service.d.ts +0 -171
- package/auth.account_pb_service.js +0 -360
- package/meta.client_pb.d.ts +0 -1
- package/meta.client_pb.js +0 -2
- package/meta.spic_config_pb.d.ts +0 -67
- package/meta.spic_config_pb.js +1 -439
- package/meta.spic_config_pb_service.d.ts +0 -19
- package/meta.spic_config_pb_service.js +0 -40
- package/package.json +1 -1
- package/platform.local_account_internal_pb.d.ts +121 -0
- package/platform.local_account_internal_pb.js +903 -0
- package/platform.local_account_internal_pb_service.d.ts +121 -0
- package/platform.local_account_internal_pb_service.js +182 -0
- package/platform.local_account_pb.d.ts +38 -65
- package/platform.local_account_pb.js +157 -413
- package/platform.local_account_pb_service.d.ts +0 -57
- package/platform.local_account_pb_service.js +0 -120
- package/spic.cabinet_pb.d.ts +24 -0
- package/spic.cabinet_pb.js +134 -4
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// package: Platform
|
|
2
|
+
// file: platform.local_account_internal.proto
|
|
3
|
+
|
|
4
|
+
import * as platform_local_account_internal_pb from "./platform.local_account_internal_pb";
|
|
5
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
7
|
+
|
|
8
|
+
type LocalAccountInternalGRPCRetrieve = {
|
|
9
|
+
readonly methodName: string;
|
|
10
|
+
readonly service: typeof LocalAccountInternalGRPC;
|
|
11
|
+
readonly requestStream: false;
|
|
12
|
+
readonly responseStream: false;
|
|
13
|
+
readonly requestType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto.RetrieveRequest;
|
|
14
|
+
readonly responseType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type LocalAccountInternalGRPCDelete = {
|
|
18
|
+
readonly methodName: string;
|
|
19
|
+
readonly service: typeof LocalAccountInternalGRPC;
|
|
20
|
+
readonly requestStream: false;
|
|
21
|
+
readonly responseStream: false;
|
|
22
|
+
readonly requestType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto.DeleteRequest;
|
|
23
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
type LocalAccountInternalGRPCAddClient = {
|
|
27
|
+
readonly methodName: string;
|
|
28
|
+
readonly service: typeof LocalAccountInternalGRPC;
|
|
29
|
+
readonly requestStream: false;
|
|
30
|
+
readonly responseStream: false;
|
|
31
|
+
readonly requestType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto.AddClientRequest;
|
|
32
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
type LocalAccountInternalGRPCRemoveClient = {
|
|
36
|
+
readonly methodName: string;
|
|
37
|
+
readonly service: typeof LocalAccountInternalGRPC;
|
|
38
|
+
readonly requestStream: false;
|
|
39
|
+
readonly responseStream: false;
|
|
40
|
+
readonly requestType: typeof platform_local_account_internal_pb.LocalAccountExtendedProto.RemoveClientRequest;
|
|
41
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export class LocalAccountInternalGRPC {
|
|
45
|
+
static readonly serviceName: string;
|
|
46
|
+
static readonly Retrieve: LocalAccountInternalGRPCRetrieve;
|
|
47
|
+
static readonly Delete: LocalAccountInternalGRPCDelete;
|
|
48
|
+
static readonly AddClient: LocalAccountInternalGRPCAddClient;
|
|
49
|
+
static readonly RemoveClient: LocalAccountInternalGRPCRemoveClient;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
53
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
54
|
+
|
|
55
|
+
interface UnaryResponse {
|
|
56
|
+
cancel(): void;
|
|
57
|
+
}
|
|
58
|
+
interface ResponseStream<T> {
|
|
59
|
+
cancel(): void;
|
|
60
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
61
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
62
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
63
|
+
}
|
|
64
|
+
interface RequestStream<T> {
|
|
65
|
+
write(message: T): RequestStream<T>;
|
|
66
|
+
end(): void;
|
|
67
|
+
cancel(): void;
|
|
68
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
69
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
70
|
+
}
|
|
71
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
72
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
73
|
+
end(): void;
|
|
74
|
+
cancel(): void;
|
|
75
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
76
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
77
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export class LocalAccountInternalGRPCClient {
|
|
81
|
+
readonly serviceHost: string;
|
|
82
|
+
|
|
83
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
84
|
+
retrieve(
|
|
85
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.RetrieveRequest,
|
|
86
|
+
metadata: grpc.Metadata,
|
|
87
|
+
callback: (error: ServiceError|null, responseMessage: platform_local_account_internal_pb.LocalAccountExtendedProto|null) => void
|
|
88
|
+
): UnaryResponse;
|
|
89
|
+
retrieve(
|
|
90
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.RetrieveRequest,
|
|
91
|
+
callback: (error: ServiceError|null, responseMessage: platform_local_account_internal_pb.LocalAccountExtendedProto|null) => void
|
|
92
|
+
): UnaryResponse;
|
|
93
|
+
delete(
|
|
94
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.DeleteRequest,
|
|
95
|
+
metadata: grpc.Metadata,
|
|
96
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
97
|
+
): UnaryResponse;
|
|
98
|
+
delete(
|
|
99
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.DeleteRequest,
|
|
100
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
101
|
+
): UnaryResponse;
|
|
102
|
+
addClient(
|
|
103
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.AddClientRequest,
|
|
104
|
+
metadata: grpc.Metadata,
|
|
105
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
106
|
+
): UnaryResponse;
|
|
107
|
+
addClient(
|
|
108
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.AddClientRequest,
|
|
109
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
110
|
+
): UnaryResponse;
|
|
111
|
+
removeClient(
|
|
112
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.RemoveClientRequest,
|
|
113
|
+
metadata: grpc.Metadata,
|
|
114
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
115
|
+
): UnaryResponse;
|
|
116
|
+
removeClient(
|
|
117
|
+
requestMessage: platform_local_account_internal_pb.LocalAccountExtendedProto.RemoveClientRequest,
|
|
118
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
119
|
+
): UnaryResponse;
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
// package: Platform
|
|
2
|
+
// file: platform.local_account_internal.proto
|
|
3
|
+
|
|
4
|
+
var platform_local_account_internal_pb = require("./platform.local_account_internal_pb");
|
|
5
|
+
var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
|
|
6
|
+
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
7
|
+
|
|
8
|
+
var LocalAccountInternalGRPC = (function () {
|
|
9
|
+
function LocalAccountInternalGRPC() {}
|
|
10
|
+
LocalAccountInternalGRPC.serviceName = "Platform.LocalAccountInternalGRPC";
|
|
11
|
+
return LocalAccountInternalGRPC;
|
|
12
|
+
}());
|
|
13
|
+
|
|
14
|
+
LocalAccountInternalGRPC.Retrieve = {
|
|
15
|
+
methodName: "Retrieve",
|
|
16
|
+
service: LocalAccountInternalGRPC,
|
|
17
|
+
requestStream: false,
|
|
18
|
+
responseStream: false,
|
|
19
|
+
requestType: platform_local_account_internal_pb.LocalAccountExtendedProto.RetrieveRequest,
|
|
20
|
+
responseType: platform_local_account_internal_pb.LocalAccountExtendedProto
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
LocalAccountInternalGRPC.Delete = {
|
|
24
|
+
methodName: "Delete",
|
|
25
|
+
service: LocalAccountInternalGRPC,
|
|
26
|
+
requestStream: false,
|
|
27
|
+
responseStream: false,
|
|
28
|
+
requestType: platform_local_account_internal_pb.LocalAccountExtendedProto.DeleteRequest,
|
|
29
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
LocalAccountInternalGRPC.AddClient = {
|
|
33
|
+
methodName: "AddClient",
|
|
34
|
+
service: LocalAccountInternalGRPC,
|
|
35
|
+
requestStream: false,
|
|
36
|
+
responseStream: false,
|
|
37
|
+
requestType: platform_local_account_internal_pb.LocalAccountExtendedProto.AddClientRequest,
|
|
38
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
LocalAccountInternalGRPC.RemoveClient = {
|
|
42
|
+
methodName: "RemoveClient",
|
|
43
|
+
service: LocalAccountInternalGRPC,
|
|
44
|
+
requestStream: false,
|
|
45
|
+
responseStream: false,
|
|
46
|
+
requestType: platform_local_account_internal_pb.LocalAccountExtendedProto.RemoveClientRequest,
|
|
47
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.LocalAccountInternalGRPC = LocalAccountInternalGRPC;
|
|
51
|
+
|
|
52
|
+
function LocalAccountInternalGRPCClient(serviceHost, options) {
|
|
53
|
+
this.serviceHost = serviceHost;
|
|
54
|
+
this.options = options || {};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
LocalAccountInternalGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
58
|
+
if (arguments.length === 2) {
|
|
59
|
+
callback = arguments[1];
|
|
60
|
+
}
|
|
61
|
+
var client = grpc.unary(LocalAccountInternalGRPC.Retrieve, {
|
|
62
|
+
request: requestMessage,
|
|
63
|
+
host: this.serviceHost,
|
|
64
|
+
metadata: metadata,
|
|
65
|
+
transport: this.options.transport,
|
|
66
|
+
debug: this.options.debug,
|
|
67
|
+
onEnd: function (response) {
|
|
68
|
+
if (callback) {
|
|
69
|
+
if (response.status !== grpc.Code.OK) {
|
|
70
|
+
var err = new Error(response.statusMessage);
|
|
71
|
+
err.code = response.status;
|
|
72
|
+
err.metadata = response.trailers;
|
|
73
|
+
callback(err, null);
|
|
74
|
+
} else {
|
|
75
|
+
callback(null, response.message);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
return {
|
|
81
|
+
cancel: function () {
|
|
82
|
+
callback = null;
|
|
83
|
+
client.close();
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
LocalAccountInternalGRPCClient.prototype.delete = function pb_delete(requestMessage, metadata, callback) {
|
|
89
|
+
if (arguments.length === 2) {
|
|
90
|
+
callback = arguments[1];
|
|
91
|
+
}
|
|
92
|
+
var client = grpc.unary(LocalAccountInternalGRPC.Delete, {
|
|
93
|
+
request: requestMessage,
|
|
94
|
+
host: this.serviceHost,
|
|
95
|
+
metadata: metadata,
|
|
96
|
+
transport: this.options.transport,
|
|
97
|
+
debug: this.options.debug,
|
|
98
|
+
onEnd: function (response) {
|
|
99
|
+
if (callback) {
|
|
100
|
+
if (response.status !== grpc.Code.OK) {
|
|
101
|
+
var err = new Error(response.statusMessage);
|
|
102
|
+
err.code = response.status;
|
|
103
|
+
err.metadata = response.trailers;
|
|
104
|
+
callback(err, null);
|
|
105
|
+
} else {
|
|
106
|
+
callback(null, response.message);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
return {
|
|
112
|
+
cancel: function () {
|
|
113
|
+
callback = null;
|
|
114
|
+
client.close();
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
LocalAccountInternalGRPCClient.prototype.addClient = function addClient(requestMessage, metadata, callback) {
|
|
120
|
+
if (arguments.length === 2) {
|
|
121
|
+
callback = arguments[1];
|
|
122
|
+
}
|
|
123
|
+
var client = grpc.unary(LocalAccountInternalGRPC.AddClient, {
|
|
124
|
+
request: requestMessage,
|
|
125
|
+
host: this.serviceHost,
|
|
126
|
+
metadata: metadata,
|
|
127
|
+
transport: this.options.transport,
|
|
128
|
+
debug: this.options.debug,
|
|
129
|
+
onEnd: function (response) {
|
|
130
|
+
if (callback) {
|
|
131
|
+
if (response.status !== grpc.Code.OK) {
|
|
132
|
+
var err = new Error(response.statusMessage);
|
|
133
|
+
err.code = response.status;
|
|
134
|
+
err.metadata = response.trailers;
|
|
135
|
+
callback(err, null);
|
|
136
|
+
} else {
|
|
137
|
+
callback(null, response.message);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return {
|
|
143
|
+
cancel: function () {
|
|
144
|
+
callback = null;
|
|
145
|
+
client.close();
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
LocalAccountInternalGRPCClient.prototype.removeClient = function removeClient(requestMessage, metadata, callback) {
|
|
151
|
+
if (arguments.length === 2) {
|
|
152
|
+
callback = arguments[1];
|
|
153
|
+
}
|
|
154
|
+
var client = grpc.unary(LocalAccountInternalGRPC.RemoveClient, {
|
|
155
|
+
request: requestMessage,
|
|
156
|
+
host: this.serviceHost,
|
|
157
|
+
metadata: metadata,
|
|
158
|
+
transport: this.options.transport,
|
|
159
|
+
debug: this.options.debug,
|
|
160
|
+
onEnd: function (response) {
|
|
161
|
+
if (callback) {
|
|
162
|
+
if (response.status !== grpc.Code.OK) {
|
|
163
|
+
var err = new Error(response.statusMessage);
|
|
164
|
+
err.code = response.status;
|
|
165
|
+
err.metadata = response.trailers;
|
|
166
|
+
callback(err, null);
|
|
167
|
+
} else {
|
|
168
|
+
callback(null, response.message);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
return {
|
|
174
|
+
cancel: function () {
|
|
175
|
+
callback = null;
|
|
176
|
+
client.close();
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
exports.LocalAccountInternalGRPCClient = LocalAccountInternalGRPCClient;
|
|
182
|
+
|
|
@@ -41,14 +41,26 @@ export class LocalAccountProto extends jspb.Message {
|
|
|
41
41
|
getExpiredAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
42
42
|
setExpiredAt(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
clearClientRolesList(): void;
|
|
45
|
+
getClientRolesList(): Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>;
|
|
46
|
+
setClientRolesList(value: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>): void;
|
|
47
|
+
addClientRoles(value: auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap], index?: number): auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap];
|
|
48
48
|
|
|
49
49
|
getStatus(): auth_account_pb.AccountProto.ActivationStatusesMap[keyof auth_account_pb.AccountProto.ActivationStatusesMap];
|
|
50
50
|
setStatus(value: auth_account_pb.AccountProto.ActivationStatusesMap[keyof auth_account_pb.AccountProto.ActivationStatusesMap]): void;
|
|
51
51
|
|
|
52
|
+
getDeleted(): boolean;
|
|
53
|
+
setDeleted(value: boolean): void;
|
|
54
|
+
|
|
55
|
+
getClientId(): number;
|
|
56
|
+
setClientId(value: number): void;
|
|
57
|
+
|
|
58
|
+
getType(): LocalAccountProto.AccountTypesMap[keyof LocalAccountProto.AccountTypesMap];
|
|
59
|
+
setType(value: LocalAccountProto.AccountTypesMap[keyof LocalAccountProto.AccountTypesMap]): void;
|
|
60
|
+
|
|
61
|
+
getClientName(): string;
|
|
62
|
+
setClientName(value: string): void;
|
|
63
|
+
|
|
52
64
|
serializeBinary(): Uint8Array;
|
|
53
65
|
toObject(includeInstance?: boolean): LocalAccountProto.AsObject;
|
|
54
66
|
static toObject(includeInstance: boolean, msg: LocalAccountProto): LocalAccountProto.AsObject;
|
|
@@ -71,8 +83,12 @@ export namespace LocalAccountProto {
|
|
|
71
83
|
groupId: string,
|
|
72
84
|
enabled: boolean,
|
|
73
85
|
expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
74
|
-
|
|
86
|
+
clientRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
|
|
75
87
|
status: auth_account_pb.AccountProto.ActivationStatusesMap[keyof auth_account_pb.AccountProto.ActivationStatusesMap],
|
|
88
|
+
deleted: boolean,
|
|
89
|
+
clientId: number,
|
|
90
|
+
type: LocalAccountProto.AccountTypesMap[keyof LocalAccountProto.AccountTypesMap],
|
|
91
|
+
clientName: string,
|
|
76
92
|
}
|
|
77
93
|
|
|
78
94
|
export class CreateAdminRequest extends jspb.Message {
|
|
@@ -97,10 +113,10 @@ export namespace LocalAccountProto {
|
|
|
97
113
|
getGroupId(): string;
|
|
98
114
|
setGroupId(value: string): void;
|
|
99
115
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
116
|
+
clearClientRolesList(): void;
|
|
117
|
+
getClientRolesList(): Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>;
|
|
118
|
+
setClientRolesList(value: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>): void;
|
|
119
|
+
addClientRoles(value: auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap], index?: number): auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap];
|
|
104
120
|
|
|
105
121
|
serializeBinary(): Uint8Array;
|
|
106
122
|
toObject(includeInstance?: boolean): CreateAdminRequest.AsObject;
|
|
@@ -121,7 +137,7 @@ export namespace LocalAccountProto {
|
|
|
121
137
|
company: string,
|
|
122
138
|
clientId: number,
|
|
123
139
|
groupId: string,
|
|
124
|
-
|
|
140
|
+
clientRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
|
|
125
141
|
}
|
|
126
142
|
}
|
|
127
143
|
|
|
@@ -188,10 +204,10 @@ export namespace LocalAccountProto {
|
|
|
188
204
|
getGroupId(): string;
|
|
189
205
|
setGroupId(value: string): void;
|
|
190
206
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
207
|
+
clearClientRolesList(): void;
|
|
208
|
+
getClientRolesList(): Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>;
|
|
209
|
+
setClientRolesList(value: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>): void;
|
|
210
|
+
addClientRoles(value: auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap], index?: number): auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap];
|
|
195
211
|
|
|
196
212
|
serializeBinary(): Uint8Array;
|
|
197
213
|
toObject(includeInstance?: boolean): UpdateRequest.AsObject;
|
|
@@ -211,7 +227,7 @@ export namespace LocalAccountProto {
|
|
|
211
227
|
locale: string,
|
|
212
228
|
company: string,
|
|
213
229
|
groupId: string,
|
|
214
|
-
|
|
230
|
+
clientRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
|
|
215
231
|
}
|
|
216
232
|
}
|
|
217
233
|
|
|
@@ -295,56 +311,6 @@ export namespace LocalAccountProto {
|
|
|
295
311
|
}
|
|
296
312
|
}
|
|
297
313
|
|
|
298
|
-
export class AddClientRequest extends jspb.Message {
|
|
299
|
-
hasAccount(): boolean;
|
|
300
|
-
clearAccount(): void;
|
|
301
|
-
getAccount(): auth_account_pb.AccountProto | undefined;
|
|
302
|
-
setAccount(value?: auth_account_pb.AccountProto): void;
|
|
303
|
-
|
|
304
|
-
getClientId(): number;
|
|
305
|
-
setClientId(value: number): void;
|
|
306
|
-
|
|
307
|
-
serializeBinary(): Uint8Array;
|
|
308
|
-
toObject(includeInstance?: boolean): AddClientRequest.AsObject;
|
|
309
|
-
static toObject(includeInstance: boolean, msg: AddClientRequest): AddClientRequest.AsObject;
|
|
310
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
311
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
312
|
-
static serializeBinaryToWriter(message: AddClientRequest, writer: jspb.BinaryWriter): void;
|
|
313
|
-
static deserializeBinary(bytes: Uint8Array): AddClientRequest;
|
|
314
|
-
static deserializeBinaryFromReader(message: AddClientRequest, reader: jspb.BinaryReader): AddClientRequest;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
export namespace AddClientRequest {
|
|
318
|
-
export type AsObject = {
|
|
319
|
-
account?: auth_account_pb.AccountProto.AsObject,
|
|
320
|
-
clientId: number,
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export class RemoveClientRequest extends jspb.Message {
|
|
325
|
-
getId(): number;
|
|
326
|
-
setId(value: number): void;
|
|
327
|
-
|
|
328
|
-
getClientId(): number;
|
|
329
|
-
setClientId(value: number): void;
|
|
330
|
-
|
|
331
|
-
serializeBinary(): Uint8Array;
|
|
332
|
-
toObject(includeInstance?: boolean): RemoveClientRequest.AsObject;
|
|
333
|
-
static toObject(includeInstance: boolean, msg: RemoveClientRequest): RemoveClientRequest.AsObject;
|
|
334
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
335
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
336
|
-
static serializeBinaryToWriter(message: RemoveClientRequest, writer: jspb.BinaryWriter): void;
|
|
337
|
-
static deserializeBinary(bytes: Uint8Array): RemoveClientRequest;
|
|
338
|
-
static deserializeBinaryFromReader(message: RemoveClientRequest, reader: jspb.BinaryReader): RemoveClientRequest;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
export namespace RemoveClientRequest {
|
|
342
|
-
export type AsObject = {
|
|
343
|
-
id: number,
|
|
344
|
-
clientId: number,
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
314
|
export class EnableAccount extends jspb.Message {
|
|
349
315
|
getId(): number;
|
|
350
316
|
setId(value: number): void;
|
|
@@ -430,5 +396,12 @@ export namespace LocalAccountProto {
|
|
|
430
396
|
id: number,
|
|
431
397
|
}
|
|
432
398
|
}
|
|
399
|
+
|
|
400
|
+
export interface AccountTypesMap {
|
|
401
|
+
ADMIN: 0;
|
|
402
|
+
APP: 1;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export const AccountTypes: AccountTypesMap;
|
|
433
406
|
}
|
|
434
407
|
|