@aceplus/smartace-api 2.13.0-alpha.1 → 2.13.0-alpha.6
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 +0 -106
- package/auth.account_pb.js +2 -832
- package/auth.account_pb_service.d.ts +0 -133
- package/auth.account_pb_service.js +0 -280
- package/meta.client_pb.d.ts +167 -0
- package/meta.client_pb.js +1266 -0
- package/meta.client_pb_service.d.ts +122 -0
- package/meta.client_pb_service.js +183 -0
- package/meta.spic_config_pb.d.ts +72 -5
- package/meta.spic_config_pb.js +459 -21
- package/meta.spic_config_pb_service.d.ts +19 -0
- package/meta.spic_config_pb_service.js +40 -0
- package/package.json +1 -1
- package/platform.client_pb.d.ts +4 -0
- package/platform.client_pb.js +31 -1
- package/platform.local_account_internal_pb.d.ts +151 -0
- package/platform.local_account_internal_pb.js +1136 -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 +4 -50
- package/platform.local_account_pb.js +31 -386
- package/platform.local_account_pb_service.d.ts +0 -57
- package/platform.local_account_pb_service.js +0 -120
|
@@ -59,15 +59,6 @@ type SuperAdminAccountGRPCSetPassword = {
|
|
|
59
59
|
readonly responseType: typeof auth_account_pb.AccountProto.ChangePasswordReply;
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
type SuperAdminAccountGRPCSetAccountScope = {
|
|
63
|
-
readonly methodName: string;
|
|
64
|
-
readonly service: typeof SuperAdminAccountGRPC;
|
|
65
|
-
readonly requestStream: false;
|
|
66
|
-
readonly responseStream: false;
|
|
67
|
-
readonly requestType: typeof auth_account_pb.AccountProto.SetSuperAccountScopeRequest;
|
|
68
|
-
readonly responseType: typeof auth_account_pb.AccountProto.SetAccountScopeReply;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
62
|
export class SuperAdminAccountGRPC {
|
|
72
63
|
static readonly serviceName: string;
|
|
73
64
|
static readonly CreateUser: SuperAdminAccountGRPCCreateUser;
|
|
@@ -76,7 +67,6 @@ export class SuperAdminAccountGRPC {
|
|
|
76
67
|
static readonly Delete: SuperAdminAccountGRPCDelete;
|
|
77
68
|
static readonly Search: SuperAdminAccountGRPCSearch;
|
|
78
69
|
static readonly SetPassword: SuperAdminAccountGRPCSetPassword;
|
|
79
|
-
static readonly SetAccountScope: SuperAdminAccountGRPCSetAccountScope;
|
|
80
70
|
}
|
|
81
71
|
|
|
82
72
|
type ClusterAccountGRPCInviteAdminUser = {
|
|
@@ -97,51 +87,6 @@ type ClusterAccountGRPCInviteAppUser = {
|
|
|
97
87
|
readonly responseType: typeof auth_account_pb.AccountProto;
|
|
98
88
|
};
|
|
99
89
|
|
|
100
|
-
type ClusterAccountGRPCRetrieve = {
|
|
101
|
-
readonly methodName: string;
|
|
102
|
-
readonly service: typeof ClusterAccountGRPC;
|
|
103
|
-
readonly requestStream: false;
|
|
104
|
-
readonly responseStream: false;
|
|
105
|
-
readonly requestType: typeof auth_account_pb.AccountProto.RetrieveRequest;
|
|
106
|
-
readonly responseType: typeof auth_account_pb.AccountProto;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
type ClusterAccountGRPCUpdate = {
|
|
110
|
-
readonly methodName: string;
|
|
111
|
-
readonly service: typeof ClusterAccountGRPC;
|
|
112
|
-
readonly requestStream: false;
|
|
113
|
-
readonly responseStream: false;
|
|
114
|
-
readonly requestType: typeof auth_account_pb.AccountProto.UpdateRequest;
|
|
115
|
-
readonly responseType: typeof auth_account_pb.AccountProto;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
type ClusterAccountGRPCDelete = {
|
|
119
|
-
readonly methodName: string;
|
|
120
|
-
readonly service: typeof ClusterAccountGRPC;
|
|
121
|
-
readonly requestStream: false;
|
|
122
|
-
readonly responseStream: false;
|
|
123
|
-
readonly requestType: typeof auth_account_pb.AccountProto.DeleteRequest;
|
|
124
|
-
readonly responseType: typeof auth_account_pb.AccountProto.DeleteReply;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
type ClusterAccountGRPCSearchAdmin = {
|
|
128
|
-
readonly methodName: string;
|
|
129
|
-
readonly service: typeof ClusterAccountGRPC;
|
|
130
|
-
readonly requestStream: false;
|
|
131
|
-
readonly responseStream: false;
|
|
132
|
-
readonly requestType: typeof auth_account_pb.AccountProto.SearchRequest;
|
|
133
|
-
readonly responseType: typeof auth_account_pb.AccountProto.SearchReply;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
type ClusterAccountGRPCSearchApp = {
|
|
137
|
-
readonly methodName: string;
|
|
138
|
-
readonly service: typeof ClusterAccountGRPC;
|
|
139
|
-
readonly requestStream: false;
|
|
140
|
-
readonly responseStream: false;
|
|
141
|
-
readonly requestType: typeof auth_account_pb.AccountProto.SearchRequest;
|
|
142
|
-
readonly responseType: typeof auth_account_pb.AccountProto.SearchReply;
|
|
143
|
-
};
|
|
144
|
-
|
|
145
90
|
type ClusterAccountGRPCActivateAccount = {
|
|
146
91
|
readonly methodName: string;
|
|
147
92
|
readonly service: typeof ClusterAccountGRPC;
|
|
@@ -178,15 +123,6 @@ type ClusterAccountGRPCChangePassword = {
|
|
|
178
123
|
readonly responseType: typeof auth_account_pb.AccountProto.ChangePasswordReply;
|
|
179
124
|
};
|
|
180
125
|
|
|
181
|
-
type ClusterAccountGRPCSetAccountScope = {
|
|
182
|
-
readonly methodName: string;
|
|
183
|
-
readonly service: typeof ClusterAccountGRPC;
|
|
184
|
-
readonly requestStream: false;
|
|
185
|
-
readonly responseStream: false;
|
|
186
|
-
readonly requestType: typeof auth_account_pb.AccountProto.SetAccountScopeRequest;
|
|
187
|
-
readonly responseType: typeof auth_account_pb.AccountProto.SetAccountScopeReply;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
126
|
type ClusterAccountGRPCRetrievePushInfo = {
|
|
191
127
|
readonly methodName: string;
|
|
192
128
|
readonly service: typeof ClusterAccountGRPC;
|
|
@@ -236,16 +172,10 @@ export class ClusterAccountGRPC {
|
|
|
236
172
|
static readonly serviceName: string;
|
|
237
173
|
static readonly InviteAdminUser: ClusterAccountGRPCInviteAdminUser;
|
|
238
174
|
static readonly InviteAppUser: ClusterAccountGRPCInviteAppUser;
|
|
239
|
-
static readonly Retrieve: ClusterAccountGRPCRetrieve;
|
|
240
|
-
static readonly Update: ClusterAccountGRPCUpdate;
|
|
241
|
-
static readonly Delete: ClusterAccountGRPCDelete;
|
|
242
|
-
static readonly SearchAdmin: ClusterAccountGRPCSearchAdmin;
|
|
243
|
-
static readonly SearchApp: ClusterAccountGRPCSearchApp;
|
|
244
175
|
static readonly ActivateAccount: ClusterAccountGRPCActivateAccount;
|
|
245
176
|
static readonly ForgotPassword: ClusterAccountGRPCForgotPassword;
|
|
246
177
|
static readonly ResetPassword: ClusterAccountGRPCResetPassword;
|
|
247
178
|
static readonly ChangePassword: ClusterAccountGRPCChangePassword;
|
|
248
|
-
static readonly SetAccountScope: ClusterAccountGRPCSetAccountScope;
|
|
249
179
|
static readonly RetrievePushInfo: ClusterAccountGRPCRetrievePushInfo;
|
|
250
180
|
static readonly SetAccountClusterRole: ClusterAccountGRPCSetAccountClusterRole;
|
|
251
181
|
static readonly DeleteAccountClusterRole: ClusterAccountGRPCDeleteAccountClusterRole;
|
|
@@ -339,15 +269,6 @@ export class SuperAdminAccountGRPCClient {
|
|
|
339
269
|
requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
|
|
340
270
|
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
|
|
341
271
|
): UnaryResponse;
|
|
342
|
-
setAccountScope(
|
|
343
|
-
requestMessage: auth_account_pb.AccountProto.SetSuperAccountScopeRequest,
|
|
344
|
-
metadata: grpc.Metadata,
|
|
345
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SetAccountScopeReply|null) => void
|
|
346
|
-
): UnaryResponse;
|
|
347
|
-
setAccountScope(
|
|
348
|
-
requestMessage: auth_account_pb.AccountProto.SetSuperAccountScopeRequest,
|
|
349
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SetAccountScopeReply|null) => void
|
|
350
|
-
): UnaryResponse;
|
|
351
272
|
}
|
|
352
273
|
|
|
353
274
|
export class ClusterAccountGRPCClient {
|
|
@@ -372,51 +293,6 @@ export class ClusterAccountGRPCClient {
|
|
|
372
293
|
requestMessage: auth_account_pb.AccountProto.CreateAppRequest,
|
|
373
294
|
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
|
|
374
295
|
): UnaryResponse;
|
|
375
|
-
retrieve(
|
|
376
|
-
requestMessage: auth_account_pb.AccountProto.RetrieveRequest,
|
|
377
|
-
metadata: grpc.Metadata,
|
|
378
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
|
|
379
|
-
): UnaryResponse;
|
|
380
|
-
retrieve(
|
|
381
|
-
requestMessage: auth_account_pb.AccountProto.RetrieveRequest,
|
|
382
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
|
|
383
|
-
): UnaryResponse;
|
|
384
|
-
update(
|
|
385
|
-
requestMessage: auth_account_pb.AccountProto.UpdateRequest,
|
|
386
|
-
metadata: grpc.Metadata,
|
|
387
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
|
|
388
|
-
): UnaryResponse;
|
|
389
|
-
update(
|
|
390
|
-
requestMessage: auth_account_pb.AccountProto.UpdateRequest,
|
|
391
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto|null) => void
|
|
392
|
-
): UnaryResponse;
|
|
393
|
-
delete(
|
|
394
|
-
requestMessage: auth_account_pb.AccountProto.DeleteRequest,
|
|
395
|
-
metadata: grpc.Metadata,
|
|
396
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.DeleteReply|null) => void
|
|
397
|
-
): UnaryResponse;
|
|
398
|
-
delete(
|
|
399
|
-
requestMessage: auth_account_pb.AccountProto.DeleteRequest,
|
|
400
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.DeleteReply|null) => void
|
|
401
|
-
): UnaryResponse;
|
|
402
|
-
searchAdmin(
|
|
403
|
-
requestMessage: auth_account_pb.AccountProto.SearchRequest,
|
|
404
|
-
metadata: grpc.Metadata,
|
|
405
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SearchReply|null) => void
|
|
406
|
-
): UnaryResponse;
|
|
407
|
-
searchAdmin(
|
|
408
|
-
requestMessage: auth_account_pb.AccountProto.SearchRequest,
|
|
409
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SearchReply|null) => void
|
|
410
|
-
): UnaryResponse;
|
|
411
|
-
searchApp(
|
|
412
|
-
requestMessage: auth_account_pb.AccountProto.SearchRequest,
|
|
413
|
-
metadata: grpc.Metadata,
|
|
414
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SearchReply|null) => void
|
|
415
|
-
): UnaryResponse;
|
|
416
|
-
searchApp(
|
|
417
|
-
requestMessage: auth_account_pb.AccountProto.SearchRequest,
|
|
418
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SearchReply|null) => void
|
|
419
|
-
): UnaryResponse;
|
|
420
296
|
activateAccount(
|
|
421
297
|
requestMessage: auth_account_pb.AccountProto.ActivateAccountRequest,
|
|
422
298
|
metadata: grpc.Metadata,
|
|
@@ -453,15 +329,6 @@ export class ClusterAccountGRPCClient {
|
|
|
453
329
|
requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
|
|
454
330
|
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
|
|
455
331
|
): UnaryResponse;
|
|
456
|
-
setAccountScope(
|
|
457
|
-
requestMessage: auth_account_pb.AccountProto.SetAccountScopeRequest,
|
|
458
|
-
metadata: grpc.Metadata,
|
|
459
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SetAccountScopeReply|null) => void
|
|
460
|
-
): UnaryResponse;
|
|
461
|
-
setAccountScope(
|
|
462
|
-
requestMessage: auth_account_pb.AccountProto.SetAccountScopeRequest,
|
|
463
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SetAccountScopeReply|null) => void
|
|
464
|
-
): UnaryResponse;
|
|
465
332
|
retrievePushInfo(
|
|
466
333
|
requestMessage: auth_account_pb.AccountProto.RetrievePushInfoRequest,
|
|
467
334
|
metadata: grpc.Metadata,
|
|
@@ -65,15 +65,6 @@ SuperAdminAccountGRPC.SetPassword = {
|
|
|
65
65
|
responseType: auth_account_pb.AccountProto.ChangePasswordReply
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
SuperAdminAccountGRPC.SetAccountScope = {
|
|
69
|
-
methodName: "SetAccountScope",
|
|
70
|
-
service: SuperAdminAccountGRPC,
|
|
71
|
-
requestStream: false,
|
|
72
|
-
responseStream: false,
|
|
73
|
-
requestType: auth_account_pb.AccountProto.SetSuperAccountScopeRequest,
|
|
74
|
-
responseType: auth_account_pb.AccountProto.SetAccountScopeReply
|
|
75
|
-
};
|
|
76
|
-
|
|
77
68
|
exports.SuperAdminAccountGRPC = SuperAdminAccountGRPC;
|
|
78
69
|
|
|
79
70
|
function SuperAdminAccountGRPCClient(serviceHost, options) {
|
|
@@ -267,37 +258,6 @@ SuperAdminAccountGRPCClient.prototype.setPassword = function setPassword(request
|
|
|
267
258
|
};
|
|
268
259
|
};
|
|
269
260
|
|
|
270
|
-
SuperAdminAccountGRPCClient.prototype.setAccountScope = function setAccountScope(requestMessage, metadata, callback) {
|
|
271
|
-
if (arguments.length === 2) {
|
|
272
|
-
callback = arguments[1];
|
|
273
|
-
}
|
|
274
|
-
var client = grpc.unary(SuperAdminAccountGRPC.SetAccountScope, {
|
|
275
|
-
request: requestMessage,
|
|
276
|
-
host: this.serviceHost,
|
|
277
|
-
metadata: metadata,
|
|
278
|
-
transport: this.options.transport,
|
|
279
|
-
debug: this.options.debug,
|
|
280
|
-
onEnd: function (response) {
|
|
281
|
-
if (callback) {
|
|
282
|
-
if (response.status !== grpc.Code.OK) {
|
|
283
|
-
var err = new Error(response.statusMessage);
|
|
284
|
-
err.code = response.status;
|
|
285
|
-
err.metadata = response.trailers;
|
|
286
|
-
callback(err, null);
|
|
287
|
-
} else {
|
|
288
|
-
callback(null, response.message);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
return {
|
|
294
|
-
cancel: function () {
|
|
295
|
-
callback = null;
|
|
296
|
-
client.close();
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
|
|
301
261
|
exports.SuperAdminAccountGRPCClient = SuperAdminAccountGRPCClient;
|
|
302
262
|
|
|
303
263
|
var ClusterAccountGRPC = (function () {
|
|
@@ -324,51 +284,6 @@ ClusterAccountGRPC.InviteAppUser = {
|
|
|
324
284
|
responseType: auth_account_pb.AccountProto
|
|
325
285
|
};
|
|
326
286
|
|
|
327
|
-
ClusterAccountGRPC.Retrieve = {
|
|
328
|
-
methodName: "Retrieve",
|
|
329
|
-
service: ClusterAccountGRPC,
|
|
330
|
-
requestStream: false,
|
|
331
|
-
responseStream: false,
|
|
332
|
-
requestType: auth_account_pb.AccountProto.RetrieveRequest,
|
|
333
|
-
responseType: auth_account_pb.AccountProto
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
ClusterAccountGRPC.Update = {
|
|
337
|
-
methodName: "Update",
|
|
338
|
-
service: ClusterAccountGRPC,
|
|
339
|
-
requestStream: false,
|
|
340
|
-
responseStream: false,
|
|
341
|
-
requestType: auth_account_pb.AccountProto.UpdateRequest,
|
|
342
|
-
responseType: auth_account_pb.AccountProto
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
ClusterAccountGRPC.Delete = {
|
|
346
|
-
methodName: "Delete",
|
|
347
|
-
service: ClusterAccountGRPC,
|
|
348
|
-
requestStream: false,
|
|
349
|
-
responseStream: false,
|
|
350
|
-
requestType: auth_account_pb.AccountProto.DeleteRequest,
|
|
351
|
-
responseType: auth_account_pb.AccountProto.DeleteReply
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
ClusterAccountGRPC.SearchAdmin = {
|
|
355
|
-
methodName: "SearchAdmin",
|
|
356
|
-
service: ClusterAccountGRPC,
|
|
357
|
-
requestStream: false,
|
|
358
|
-
responseStream: false,
|
|
359
|
-
requestType: auth_account_pb.AccountProto.SearchRequest,
|
|
360
|
-
responseType: auth_account_pb.AccountProto.SearchReply
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
ClusterAccountGRPC.SearchApp = {
|
|
364
|
-
methodName: "SearchApp",
|
|
365
|
-
service: ClusterAccountGRPC,
|
|
366
|
-
requestStream: false,
|
|
367
|
-
responseStream: false,
|
|
368
|
-
requestType: auth_account_pb.AccountProto.SearchRequest,
|
|
369
|
-
responseType: auth_account_pb.AccountProto.SearchReply
|
|
370
|
-
};
|
|
371
|
-
|
|
372
287
|
ClusterAccountGRPC.ActivateAccount = {
|
|
373
288
|
methodName: "ActivateAccount",
|
|
374
289
|
service: ClusterAccountGRPC,
|
|
@@ -405,15 +320,6 @@ ClusterAccountGRPC.ChangePassword = {
|
|
|
405
320
|
responseType: auth_account_pb.AccountProto.ChangePasswordReply
|
|
406
321
|
};
|
|
407
322
|
|
|
408
|
-
ClusterAccountGRPC.SetAccountScope = {
|
|
409
|
-
methodName: "SetAccountScope",
|
|
410
|
-
service: ClusterAccountGRPC,
|
|
411
|
-
requestStream: false,
|
|
412
|
-
responseStream: false,
|
|
413
|
-
requestType: auth_account_pb.AccountProto.SetAccountScopeRequest,
|
|
414
|
-
responseType: auth_account_pb.AccountProto.SetAccountScopeReply
|
|
415
|
-
};
|
|
416
|
-
|
|
417
323
|
ClusterAccountGRPC.RetrievePushInfo = {
|
|
418
324
|
methodName: "RetrievePushInfo",
|
|
419
325
|
service: ClusterAccountGRPC,
|
|
@@ -528,161 +434,6 @@ ClusterAccountGRPCClient.prototype.inviteAppUser = function inviteAppUser(reques
|
|
|
528
434
|
};
|
|
529
435
|
};
|
|
530
436
|
|
|
531
|
-
ClusterAccountGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
532
|
-
if (arguments.length === 2) {
|
|
533
|
-
callback = arguments[1];
|
|
534
|
-
}
|
|
535
|
-
var client = grpc.unary(ClusterAccountGRPC.Retrieve, {
|
|
536
|
-
request: requestMessage,
|
|
537
|
-
host: this.serviceHost,
|
|
538
|
-
metadata: metadata,
|
|
539
|
-
transport: this.options.transport,
|
|
540
|
-
debug: this.options.debug,
|
|
541
|
-
onEnd: function (response) {
|
|
542
|
-
if (callback) {
|
|
543
|
-
if (response.status !== grpc.Code.OK) {
|
|
544
|
-
var err = new Error(response.statusMessage);
|
|
545
|
-
err.code = response.status;
|
|
546
|
-
err.metadata = response.trailers;
|
|
547
|
-
callback(err, null);
|
|
548
|
-
} else {
|
|
549
|
-
callback(null, response.message);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
});
|
|
554
|
-
return {
|
|
555
|
-
cancel: function () {
|
|
556
|
-
callback = null;
|
|
557
|
-
client.close();
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
ClusterAccountGRPCClient.prototype.update = function update(requestMessage, metadata, callback) {
|
|
563
|
-
if (arguments.length === 2) {
|
|
564
|
-
callback = arguments[1];
|
|
565
|
-
}
|
|
566
|
-
var client = grpc.unary(ClusterAccountGRPC.Update, {
|
|
567
|
-
request: requestMessage,
|
|
568
|
-
host: this.serviceHost,
|
|
569
|
-
metadata: metadata,
|
|
570
|
-
transport: this.options.transport,
|
|
571
|
-
debug: this.options.debug,
|
|
572
|
-
onEnd: function (response) {
|
|
573
|
-
if (callback) {
|
|
574
|
-
if (response.status !== grpc.Code.OK) {
|
|
575
|
-
var err = new Error(response.statusMessage);
|
|
576
|
-
err.code = response.status;
|
|
577
|
-
err.metadata = response.trailers;
|
|
578
|
-
callback(err, null);
|
|
579
|
-
} else {
|
|
580
|
-
callback(null, response.message);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
});
|
|
585
|
-
return {
|
|
586
|
-
cancel: function () {
|
|
587
|
-
callback = null;
|
|
588
|
-
client.close();
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
ClusterAccountGRPCClient.prototype.delete = function pb_delete(requestMessage, metadata, callback) {
|
|
594
|
-
if (arguments.length === 2) {
|
|
595
|
-
callback = arguments[1];
|
|
596
|
-
}
|
|
597
|
-
var client = grpc.unary(ClusterAccountGRPC.Delete, {
|
|
598
|
-
request: requestMessage,
|
|
599
|
-
host: this.serviceHost,
|
|
600
|
-
metadata: metadata,
|
|
601
|
-
transport: this.options.transport,
|
|
602
|
-
debug: this.options.debug,
|
|
603
|
-
onEnd: function (response) {
|
|
604
|
-
if (callback) {
|
|
605
|
-
if (response.status !== grpc.Code.OK) {
|
|
606
|
-
var err = new Error(response.statusMessage);
|
|
607
|
-
err.code = response.status;
|
|
608
|
-
err.metadata = response.trailers;
|
|
609
|
-
callback(err, null);
|
|
610
|
-
} else {
|
|
611
|
-
callback(null, response.message);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
});
|
|
616
|
-
return {
|
|
617
|
-
cancel: function () {
|
|
618
|
-
callback = null;
|
|
619
|
-
client.close();
|
|
620
|
-
}
|
|
621
|
-
};
|
|
622
|
-
};
|
|
623
|
-
|
|
624
|
-
ClusterAccountGRPCClient.prototype.searchAdmin = function searchAdmin(requestMessage, metadata, callback) {
|
|
625
|
-
if (arguments.length === 2) {
|
|
626
|
-
callback = arguments[1];
|
|
627
|
-
}
|
|
628
|
-
var client = grpc.unary(ClusterAccountGRPC.SearchAdmin, {
|
|
629
|
-
request: requestMessage,
|
|
630
|
-
host: this.serviceHost,
|
|
631
|
-
metadata: metadata,
|
|
632
|
-
transport: this.options.transport,
|
|
633
|
-
debug: this.options.debug,
|
|
634
|
-
onEnd: function (response) {
|
|
635
|
-
if (callback) {
|
|
636
|
-
if (response.status !== grpc.Code.OK) {
|
|
637
|
-
var err = new Error(response.statusMessage);
|
|
638
|
-
err.code = response.status;
|
|
639
|
-
err.metadata = response.trailers;
|
|
640
|
-
callback(err, null);
|
|
641
|
-
} else {
|
|
642
|
-
callback(null, response.message);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
});
|
|
647
|
-
return {
|
|
648
|
-
cancel: function () {
|
|
649
|
-
callback = null;
|
|
650
|
-
client.close();
|
|
651
|
-
}
|
|
652
|
-
};
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
ClusterAccountGRPCClient.prototype.searchApp = function searchApp(requestMessage, metadata, callback) {
|
|
656
|
-
if (arguments.length === 2) {
|
|
657
|
-
callback = arguments[1];
|
|
658
|
-
}
|
|
659
|
-
var client = grpc.unary(ClusterAccountGRPC.SearchApp, {
|
|
660
|
-
request: requestMessage,
|
|
661
|
-
host: this.serviceHost,
|
|
662
|
-
metadata: metadata,
|
|
663
|
-
transport: this.options.transport,
|
|
664
|
-
debug: this.options.debug,
|
|
665
|
-
onEnd: function (response) {
|
|
666
|
-
if (callback) {
|
|
667
|
-
if (response.status !== grpc.Code.OK) {
|
|
668
|
-
var err = new Error(response.statusMessage);
|
|
669
|
-
err.code = response.status;
|
|
670
|
-
err.metadata = response.trailers;
|
|
671
|
-
callback(err, null);
|
|
672
|
-
} else {
|
|
673
|
-
callback(null, response.message);
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
});
|
|
678
|
-
return {
|
|
679
|
-
cancel: function () {
|
|
680
|
-
callback = null;
|
|
681
|
-
client.close();
|
|
682
|
-
}
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
|
|
686
437
|
ClusterAccountGRPCClient.prototype.activateAccount = function activateAccount(requestMessage, metadata, callback) {
|
|
687
438
|
if (arguments.length === 2) {
|
|
688
439
|
callback = arguments[1];
|
|
@@ -807,37 +558,6 @@ ClusterAccountGRPCClient.prototype.changePassword = function changePassword(requ
|
|
|
807
558
|
};
|
|
808
559
|
};
|
|
809
560
|
|
|
810
|
-
ClusterAccountGRPCClient.prototype.setAccountScope = function setAccountScope(requestMessage, metadata, callback) {
|
|
811
|
-
if (arguments.length === 2) {
|
|
812
|
-
callback = arguments[1];
|
|
813
|
-
}
|
|
814
|
-
var client = grpc.unary(ClusterAccountGRPC.SetAccountScope, {
|
|
815
|
-
request: requestMessage,
|
|
816
|
-
host: this.serviceHost,
|
|
817
|
-
metadata: metadata,
|
|
818
|
-
transport: this.options.transport,
|
|
819
|
-
debug: this.options.debug,
|
|
820
|
-
onEnd: function (response) {
|
|
821
|
-
if (callback) {
|
|
822
|
-
if (response.status !== grpc.Code.OK) {
|
|
823
|
-
var err = new Error(response.statusMessage);
|
|
824
|
-
err.code = response.status;
|
|
825
|
-
err.metadata = response.trailers;
|
|
826
|
-
callback(err, null);
|
|
827
|
-
} else {
|
|
828
|
-
callback(null, response.message);
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
});
|
|
833
|
-
return {
|
|
834
|
-
cancel: function () {
|
|
835
|
-
callback = null;
|
|
836
|
-
client.close();
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
|
-
};
|
|
840
|
-
|
|
841
561
|
ClusterAccountGRPCClient.prototype.retrievePushInfo = function retrievePushInfo(requestMessage, metadata, callback) {
|
|
842
562
|
if (arguments.length === 2) {
|
|
843
563
|
callback = arguments[1];
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
// package: Meta
|
|
2
|
+
// file: meta.client.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
6
|
+
import * as platform_client_pb from "./platform.client_pb";
|
|
7
|
+
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
8
|
+
import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb";
|
|
9
|
+
|
|
10
|
+
export class ClientContactProto extends jspb.Message {
|
|
11
|
+
getEmail(): string;
|
|
12
|
+
setEmail(value: string): void;
|
|
13
|
+
|
|
14
|
+
getPhone(): string;
|
|
15
|
+
setPhone(value: string): void;
|
|
16
|
+
|
|
17
|
+
getFirstName(): string;
|
|
18
|
+
setFirstName(value: string): void;
|
|
19
|
+
|
|
20
|
+
getLastName(): string;
|
|
21
|
+
setLastName(value: string): void;
|
|
22
|
+
|
|
23
|
+
getFunction(): string;
|
|
24
|
+
setFunction(value: string): void;
|
|
25
|
+
|
|
26
|
+
hasIsmale(): boolean;
|
|
27
|
+
clearIsmale(): void;
|
|
28
|
+
getIsmale(): google_protobuf_wrappers_pb.BoolValue | undefined;
|
|
29
|
+
setIsmale(value?: google_protobuf_wrappers_pb.BoolValue): void;
|
|
30
|
+
|
|
31
|
+
getLanguage(): string;
|
|
32
|
+
setLanguage(value: string): void;
|
|
33
|
+
|
|
34
|
+
getPriority(): number;
|
|
35
|
+
setPriority(value: number): void;
|
|
36
|
+
|
|
37
|
+
getId(): number;
|
|
38
|
+
setId(value: number): void;
|
|
39
|
+
|
|
40
|
+
getClientId(): number;
|
|
41
|
+
setClientId(value: number): void;
|
|
42
|
+
|
|
43
|
+
serializeBinary(): Uint8Array;
|
|
44
|
+
toObject(includeInstance?: boolean): ClientContactProto.AsObject;
|
|
45
|
+
static toObject(includeInstance: boolean, msg: ClientContactProto): ClientContactProto.AsObject;
|
|
46
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
47
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
48
|
+
static serializeBinaryToWriter(message: ClientContactProto, writer: jspb.BinaryWriter): void;
|
|
49
|
+
static deserializeBinary(bytes: Uint8Array): ClientContactProto;
|
|
50
|
+
static deserializeBinaryFromReader(message: ClientContactProto, reader: jspb.BinaryReader): ClientContactProto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace ClientContactProto {
|
|
54
|
+
export type AsObject = {
|
|
55
|
+
email: string,
|
|
56
|
+
phone: string,
|
|
57
|
+
firstName: string,
|
|
58
|
+
lastName: string,
|
|
59
|
+
pb_function: string,
|
|
60
|
+
ismale?: google_protobuf_wrappers_pb.BoolValue.AsObject,
|
|
61
|
+
language: string,
|
|
62
|
+
priority: number,
|
|
63
|
+
id: number,
|
|
64
|
+
clientId: number,
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export class EditRequest extends jspb.Message {
|
|
68
|
+
getContactId(): number;
|
|
69
|
+
setContactId(value: number): void;
|
|
70
|
+
|
|
71
|
+
hasContact(): boolean;
|
|
72
|
+
clearContact(): void;
|
|
73
|
+
getContact(): ClientContactProto | undefined;
|
|
74
|
+
setContact(value?: ClientContactProto): void;
|
|
75
|
+
|
|
76
|
+
serializeBinary(): Uint8Array;
|
|
77
|
+
toObject(includeInstance?: boolean): EditRequest.AsObject;
|
|
78
|
+
static toObject(includeInstance: boolean, msg: EditRequest): EditRequest.AsObject;
|
|
79
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
80
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
81
|
+
static serializeBinaryToWriter(message: EditRequest, writer: jspb.BinaryWriter): void;
|
|
82
|
+
static deserializeBinary(bytes: Uint8Array): EditRequest;
|
|
83
|
+
static deserializeBinaryFromReader(message: EditRequest, reader: jspb.BinaryReader): EditRequest;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export namespace EditRequest {
|
|
87
|
+
export type AsObject = {
|
|
88
|
+
contactId: number,
|
|
89
|
+
contact?: ClientContactProto.AsObject,
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export class AddRequest extends jspb.Message {
|
|
94
|
+
getClientId(): number;
|
|
95
|
+
setClientId(value: number): void;
|
|
96
|
+
|
|
97
|
+
hasContact(): boolean;
|
|
98
|
+
clearContact(): void;
|
|
99
|
+
getContact(): ClientContactProto | undefined;
|
|
100
|
+
setContact(value?: ClientContactProto): void;
|
|
101
|
+
|
|
102
|
+
serializeBinary(): Uint8Array;
|
|
103
|
+
toObject(includeInstance?: boolean): AddRequest.AsObject;
|
|
104
|
+
static toObject(includeInstance: boolean, msg: AddRequest): AddRequest.AsObject;
|
|
105
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
106
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
107
|
+
static serializeBinaryToWriter(message: AddRequest, writer: jspb.BinaryWriter): void;
|
|
108
|
+
static deserializeBinary(bytes: Uint8Array): AddRequest;
|
|
109
|
+
static deserializeBinaryFromReader(message: AddRequest, reader: jspb.BinaryReader): AddRequest;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export namespace AddRequest {
|
|
113
|
+
export type AsObject = {
|
|
114
|
+
clientId: number,
|
|
115
|
+
contact?: ClientContactProto.AsObject,
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export class RemoveRequest extends jspb.Message {
|
|
120
|
+
getContactId(): number;
|
|
121
|
+
setContactId(value: number): void;
|
|
122
|
+
|
|
123
|
+
serializeBinary(): Uint8Array;
|
|
124
|
+
toObject(includeInstance?: boolean): RemoveRequest.AsObject;
|
|
125
|
+
static toObject(includeInstance: boolean, msg: RemoveRequest): RemoveRequest.AsObject;
|
|
126
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
127
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
128
|
+
static serializeBinaryToWriter(message: RemoveRequest, writer: jspb.BinaryWriter): void;
|
|
129
|
+
static deserializeBinary(bytes: Uint8Array): RemoveRequest;
|
|
130
|
+
static deserializeBinaryFromReader(message: RemoveRequest, reader: jspb.BinaryReader): RemoveRequest;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export namespace RemoveRequest {
|
|
134
|
+
export type AsObject = {
|
|
135
|
+
contactId: number,
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export class ClientProtoMeta extends jspb.Message {
|
|
141
|
+
hasClient(): boolean;
|
|
142
|
+
clearClient(): void;
|
|
143
|
+
getClient(): platform_client_pb.ClientProto | undefined;
|
|
144
|
+
setClient(value?: platform_client_pb.ClientProto): void;
|
|
145
|
+
|
|
146
|
+
clearContactsList(): void;
|
|
147
|
+
getContactsList(): Array<ClientContactProto>;
|
|
148
|
+
setContactsList(value: Array<ClientContactProto>): void;
|
|
149
|
+
addContacts(value?: ClientContactProto, index?: number): ClientContactProto;
|
|
150
|
+
|
|
151
|
+
serializeBinary(): Uint8Array;
|
|
152
|
+
toObject(includeInstance?: boolean): ClientProtoMeta.AsObject;
|
|
153
|
+
static toObject(includeInstance: boolean, msg: ClientProtoMeta): ClientProtoMeta.AsObject;
|
|
154
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
155
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
156
|
+
static serializeBinaryToWriter(message: ClientProtoMeta, writer: jspb.BinaryWriter): void;
|
|
157
|
+
static deserializeBinary(bytes: Uint8Array): ClientProtoMeta;
|
|
158
|
+
static deserializeBinaryFromReader(message: ClientProtoMeta, reader: jspb.BinaryReader): ClientProtoMeta;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export namespace ClientProtoMeta {
|
|
162
|
+
export type AsObject = {
|
|
163
|
+
client?: platform_client_pb.ClientProto.AsObject,
|
|
164
|
+
contactsList: Array<ClientContactProto.AsObject>,
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|