@aceplus/smartace-api 2.13.0-alpha.16 → 2.13.0-alpha.17
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 +585 -0
- package/auth.account_pb.js +4266 -0
- package/auth.account_pb_service.d.ts +340 -0
- package/auth.account_pb_service.js +637 -0
- package/auth.account_two_factor_pb.d.ts +159 -0
- package/auth.account_two_factor_pb.js +1184 -0
- package/auth.account_two_factor_pb_service.d.ts +121 -0
- package/auth.account_two_factor_pb_service.js +182 -0
- package/auth.app_account_pb.d.ts +156 -0
- package/auth.app_account_pb.js +1153 -0
- package/auth.app_account_pb_service.d.ts +160 -0
- package/auth.app_account_pb_service.js +263 -0
- package/auth.app_authn_pb.d.ts +172 -0
- package/auth.app_authn_pb.js +1233 -0
- package/auth.app_authn_pb_service.d.ts +140 -0
- package/auth.app_authn_pb_service.js +222 -0
- package/auth.app_distribution_pb.d.ts +174 -0
- package/auth.app_distribution_pb.js +1338 -0
- package/auth.app_distribution_pb_service.d.ts +120 -0
- package/auth.app_distribution_pb_service.js +181 -0
- package/auth.authn_pb.d.ts +94 -0
- package/auth.authn_pb.js +636 -0
- package/auth.authn_pb_service.d.ts +82 -0
- package/auth.authn_pb_service.js +101 -0
- package/auth.cluster_pb.d.ts +258 -0
- package/auth.cluster_pb.js +1929 -0
- package/auth.cluster_pb_service.d.ts +139 -0
- package/auth.cluster_pb_service.js +221 -0
- package/auth.distribution_pb.d.ts +233 -0
- package/auth.distribution_pb.js +1785 -0
- package/auth.distribution_pb_service.d.ts +82 -0
- package/auth.distribution_pb_service.js +101 -0
- package/auth.email_pb.d.ts +277 -0
- package/auth.email_pb.js +1960 -0
- package/auth.email_pb_service.d.ts +121 -0
- package/auth.email_pb_service.js +182 -0
- package/auth.firmware_pb.d.ts +256 -0
- package/auth.firmware_pb.js +1997 -0
- package/auth.firmware_pb_service.d.ts +120 -0
- package/auth.firmware_pb_service.js +181 -0
- package/auth.push_notification_pb.d.ts +187 -0
- package/auth.push_notification_pb.js +1289 -0
- package/auth.push_notification_pb_service.d.ts +121 -0
- package/auth.push_notification_pb_service.js +182 -0
- package/auth.sms_pb.d.ts +79 -0
- package/auth.sms_pb.js +575 -0
- package/auth.sms_pb_service.d.ts +83 -0
- package/auth.sms_pb_service.js +102 -0
- package/google/api/annotations_pb.d.ts +9 -0
- package/google/api/annotations_pb.js +54 -0
- package/google/api/annotations_pb_service.d.ts +3 -0
- package/google/api/annotations_pb_service.js +3 -0
- package/google/api/auth_pb.d.ts +150 -0
- package/google/api/auth_pb.js +1160 -0
- package/google/api/auth_pb_service.d.ts +3 -0
- package/google/api/auth_pb_service.js +3 -0
- package/google/api/backend_pb.d.ts +59 -0
- package/google/api/backend_pb.js +448 -0
- package/google/api/backend_pb_service.d.ts +3 -0
- package/google/api/backend_pb_service.js +3 -0
- package/google/api/billing_pb.d.ts +54 -0
- package/google/api/billing_pb.js +416 -0
- package/google/api/billing_pb_service.d.ts +3 -0
- package/google/api/billing_pb_service.js +3 -0
- package/google/api/client_pb.d.ts +12 -0
- package/google/api/client_pb.js +104 -0
- package/google/api/client_pb_service.d.ts +3 -0
- package/google/api/client_pb_service.js +3 -0
- package/google/api/config_change_pb.d.ts +72 -0
- package/google/api/config_change_pb.js +489 -0
- package/google/api/config_change_pb_service.d.ts +3 -0
- package/google/api/config_change_pb_service.js +3 -0
- package/google/api/consumer_pb.d.ts +65 -0
- package/google/api/consumer_pb.js +430 -0
- package/google/api/consumer_pb_service.d.ts +3 -0
- package/google/api/consumer_pb_service.js +3 -0
- package/google/api/context_pb.d.ts +59 -0
- package/google/api/context_pb.js +463 -0
- package/google/api/context_pb_service.d.ts +3 -0
- package/google/api/context_pb_service.js +3 -0
- package/google/api/control_pb.d.ts +25 -0
- package/google/api/control_pb.js +176 -0
- package/google/api/control_pb_service.d.ts +3 -0
- package/google/api/control_pb_service.js +3 -0
- package/google/api/distribution_pb.d.ts +235 -0
- package/google/api/distribution_pb.js +1805 -0
- package/google/api/distribution_pb_service.d.ts +3 -0
- package/google/api/distribution_pb_service.js +3 -0
- package/google/api/documentation_pb.d.ts +103 -0
- package/google/api/documentation_pb.js +803 -0
- package/google/api/documentation_pb_service.d.ts +3 -0
- package/google/api/documentation_pb_service.js +3 -0
- package/google/api/endpoint_pb.d.ts +46 -0
- package/google/api/endpoint_pb.js +343 -0
- package/google/api/endpoint_pb_service.d.ts +3 -0
- package/google/api/endpoint_pb_service.js +3 -0
- package/google/api/error_reason_pb.d.ts +40 -0
- package/google/api/error_reason_pb.js +61 -0
- package/google/api/error_reason_pb_service.d.ts +3 -0
- package/google/api/error_reason_pb_service.js +3 -0
- package/google/api/field_behavior_pb.d.ts +20 -0
- package/google/api/field_behavior_pb.js +66 -0
- package/google/api/field_behavior_pb_service.d.ts +3 -0
- package/google/api/field_behavior_pb_service.js +3 -0
- package/google/api/http_pb.d.ts +136 -0
- package/google/api/http_pb.js +1012 -0
- package/google/api/http_pb_service.d.ts +3 -0
- package/google/api/http_pb_service.js +3 -0
- package/google/api/httpbody_pb.d.ts +38 -0
- package/google/api/httpbody_pb.js +292 -0
- package/google/api/httpbody_pb_service.d.ts +3 -0
- package/google/api/httpbody_pb_service.js +3 -0
- package/google/api/label_pb.d.ts +41 -0
- package/google/api/label_pb.js +246 -0
- package/google/api/label_pb_service.d.ts +3 -0
- package/google/api/label_pb_service.js +3 -0
- package/google/api/launch_stage_pb.d.ts +16 -0
- package/google/api/launch_stage_pb.js +37 -0
- package/google/api/launch_stage_pb_service.d.ts +3 -0
- package/google/api/launch_stage_pb_service.js +3 -0
- package/google/api/log_pb.d.ts +40 -0
- package/google/api/log_pb.js +298 -0
- package/google/api/log_pb_service.d.ts +3 -0
- package/google/api/log_pb_service.js +3 -0
- package/google/api/logging_pb.d.ts +60 -0
- package/google/api/logging_pb.js +469 -0
- package/google/api/logging_pb_service.d.ts +3 -0
- package/google/api/logging_pb_service.js +3 -0
- package/google/api/metric_pb.d.ts +100 -0
- package/google/api/metric_pb.js +629 -0
- package/google/api/metric_pb_service.d.ts +3 -0
- package/google/api/metric_pb_service.js +3 -0
- package/google/api/monitored_resource_pb.d.ts +93 -0
- package/google/api/monitored_resource_pb.js +723 -0
- package/google/api/monitored_resource_pb_service.d.ts +3 -0
- package/google/api/monitored_resource_pb_service.js +3 -0
- package/google/api/monitoring_pb.d.ts +60 -0
- package/google/api/monitoring_pb.js +469 -0
- package/google/api/monitoring_pb_service.d.ts +3 -0
- package/google/api/monitoring_pb_service.js +3 -0
- package/google/api/policy_pb.d.ts +64 -0
- package/google/api/policy_pb.js +502 -0
- package/google/api/policy_pb_service.d.ts +3 -0
- package/google/api/policy_pb_service.js +3 -0
- package/google/api/quota_pb.d.ts +112 -0
- package/google/api/quota_pb.js +873 -0
- package/google/api/quota_pb_service.d.ts +3 -0
- package/google/api/quota_pb_service.js +3 -0
- package/google/api/resource_pb.d.ts +99 -0
- package/google/api/resource_pb.js +684 -0
- package/google/api/resource_pb_service.d.ts +3 -0
- package/google/api/resource_pb_service.js +3 -0
- package/google/api/routing_pb.d.ts +54 -0
- package/google/api/routing_pb.js +416 -0
- package/google/api/routing_pb_service.d.ts +3 -0
- package/google/api/routing_pb_service.js +3 -0
- package/google/api/service_pb.d.ts +184 -0
- package/google/api/service_pb.js +1400 -0
- package/google/api/service_pb_service.d.ts +3 -0
- package/google/api/service_pb_service.js +3 -0
- package/google/api/source_info_pb.d.ts +28 -0
- package/google/api/source_info_pb.js +208 -0
- package/google/api/source_info_pb_service.d.ts +3 -0
- package/google/api/source_info_pb_service.js +3 -0
- package/google/api/system_parameter_pb.d.ts +81 -0
- package/google/api/system_parameter_pb.js +630 -0
- package/google/api/system_parameter_pb_service.d.ts +3 -0
- package/google/api/system_parameter_pb_service.js +3 -0
- package/google/api/usage_pb.d.ts +66 -0
- package/google/api/usage_pb.js +499 -0
- package/google/api/usage_pb_service.d.ts +3 -0
- package/google/api/usage_pb_service.js +3 -0
- package/google/api/visibility_pb.d.ts +64 -0
- package/google/api/visibility_pb.js +546 -0
- package/google/api/visibility_pb_service.d.ts +3 -0
- package/google/api/visibility_pb_service.js +3 -0
- 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 +184 -0
- package/meta.spic_config_pb.js +1382 -0
- package/meta.spic_config_pb_service.d.ts +122 -0
- package/meta.spic_config_pb_service.js +183 -0
- package/package.json +1 -1
- package/platform.activity_log_pb.d.ts +177 -0
- package/platform.activity_log_pb.js +1294 -0
- package/platform.activity_log_pb_service.d.ts +82 -0
- package/platform.activity_log_pb_service.js +101 -0
- package/platform.client_pb.d.ts +350 -0
- package/platform.client_pb.js +2663 -0
- package/platform.client_pb_service.d.ts +158 -0
- package/platform.client_pb_service.js +261 -0
- package/platform.group_pb.d.ts +195 -0
- package/platform.group_pb.js +1476 -0
- package/platform.group_pb_service.d.ts +139 -0
- package/platform.group_pb_service.js +221 -0
- 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 +396 -0
- package/platform.local_account_pb.js +3023 -0
- package/platform.local_account_pb_service.d.ts +331 -0
- package/platform.local_account_pb_service.js +623 -0
- package/platform.local_distribution_pb.d.ts +69 -0
- package/platform.local_distribution_pb.js +506 -0
- package/platform.local_distribution_pb_service.d.ts +63 -0
- package/platform.local_distribution_pb_service.js +61 -0
- package/platform.location_pb.d.ts +271 -0
- package/platform.location_pb.js +2046 -0
- package/platform.location_pb_service.d.ts +139 -0
- package/platform.location_pb_service.js +221 -0
- package/platform.pagination_pb.d.ts +45 -0
- package/platform.pagination_pb.js +276 -0
- package/platform.pagination_pb_service.d.ts +3 -0
- package/platform.pagination_pb_service.js +3 -0
- package/spic.cabinet_pb.d.ts +1344 -0
- package/spic.cabinet_pb.js +9963 -0
- package/spic.cabinet_pb_service.d.ts +359 -0
- package/spic.cabinet_pb_service.js +677 -0
- package/spic.config_pb.d.ts +249 -0
- package/spic.config_pb.js +1891 -0
- package/spic.config_pb_service.d.ts +120 -0
- package/spic.config_pb_service.js +181 -0
- package/spic.contractor_pb.d.ts +195 -0
- package/spic.contractor_pb.js +1476 -0
- package/spic.contractor_pb_service.d.ts +139 -0
- package/spic.contractor_pb_service.js +221 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// package: Auth
|
|
2
|
+
// file: auth.cluster.proto
|
|
3
|
+
|
|
4
|
+
import * as auth_cluster_pb from "./auth.cluster_pb";
|
|
5
|
+
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
+
|
|
7
|
+
type ClusterGRPCCreate = {
|
|
8
|
+
readonly methodName: string;
|
|
9
|
+
readonly service: typeof ClusterGRPC;
|
|
10
|
+
readonly requestStream: false;
|
|
11
|
+
readonly responseStream: false;
|
|
12
|
+
readonly requestType: typeof auth_cluster_pb.ClusterProto.CreateRequest;
|
|
13
|
+
readonly responseType: typeof auth_cluster_pb.ClusterProto;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type ClusterGRPCRetrieve = {
|
|
17
|
+
readonly methodName: string;
|
|
18
|
+
readonly service: typeof ClusterGRPC;
|
|
19
|
+
readonly requestStream: false;
|
|
20
|
+
readonly responseStream: false;
|
|
21
|
+
readonly requestType: typeof auth_cluster_pb.ClusterProto.RetrieveRequest;
|
|
22
|
+
readonly responseType: typeof auth_cluster_pb.ClusterProto;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type ClusterGRPCUpdate = {
|
|
26
|
+
readonly methodName: string;
|
|
27
|
+
readonly service: typeof ClusterGRPC;
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly requestType: typeof auth_cluster_pb.ClusterProto.UpdateRequest;
|
|
31
|
+
readonly responseType: typeof auth_cluster_pb.ClusterProto;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type ClusterGRPCDelete = {
|
|
35
|
+
readonly methodName: string;
|
|
36
|
+
readonly service: typeof ClusterGRPC;
|
|
37
|
+
readonly requestStream: false;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly requestType: typeof auth_cluster_pb.ClusterProto.DeleteRequest;
|
|
40
|
+
readonly responseType: typeof auth_cluster_pb.ClusterProto.DeleteReply;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
type ClusterGRPCSearch = {
|
|
44
|
+
readonly methodName: string;
|
|
45
|
+
readonly service: typeof ClusterGRPC;
|
|
46
|
+
readonly requestStream: false;
|
|
47
|
+
readonly responseStream: false;
|
|
48
|
+
readonly requestType: typeof auth_cluster_pb.ClusterProto.SearchRequest;
|
|
49
|
+
readonly responseType: typeof auth_cluster_pb.ClusterProto.SearchReply;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export class ClusterGRPC {
|
|
53
|
+
static readonly serviceName: string;
|
|
54
|
+
static readonly Create: ClusterGRPCCreate;
|
|
55
|
+
static readonly Retrieve: ClusterGRPCRetrieve;
|
|
56
|
+
static readonly Update: ClusterGRPCUpdate;
|
|
57
|
+
static readonly Delete: ClusterGRPCDelete;
|
|
58
|
+
static readonly Search: ClusterGRPCSearch;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
62
|
+
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
63
|
+
|
|
64
|
+
interface UnaryResponse {
|
|
65
|
+
cancel(): void;
|
|
66
|
+
}
|
|
67
|
+
interface ResponseStream<T> {
|
|
68
|
+
cancel(): void;
|
|
69
|
+
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
70
|
+
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
71
|
+
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
72
|
+
}
|
|
73
|
+
interface RequestStream<T> {
|
|
74
|
+
write(message: T): RequestStream<T>;
|
|
75
|
+
end(): void;
|
|
76
|
+
cancel(): void;
|
|
77
|
+
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
78
|
+
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
79
|
+
}
|
|
80
|
+
interface BidirectionalStream<ReqT, ResT> {
|
|
81
|
+
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
82
|
+
end(): void;
|
|
83
|
+
cancel(): void;
|
|
84
|
+
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
85
|
+
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
86
|
+
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export class ClusterGRPCClient {
|
|
90
|
+
readonly serviceHost: string;
|
|
91
|
+
|
|
92
|
+
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
93
|
+
create(
|
|
94
|
+
requestMessage: auth_cluster_pb.ClusterProto.CreateRequest,
|
|
95
|
+
metadata: grpc.Metadata,
|
|
96
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto|null) => void
|
|
97
|
+
): UnaryResponse;
|
|
98
|
+
create(
|
|
99
|
+
requestMessage: auth_cluster_pb.ClusterProto.CreateRequest,
|
|
100
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto|null) => void
|
|
101
|
+
): UnaryResponse;
|
|
102
|
+
retrieve(
|
|
103
|
+
requestMessage: auth_cluster_pb.ClusterProto.RetrieveRequest,
|
|
104
|
+
metadata: grpc.Metadata,
|
|
105
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto|null) => void
|
|
106
|
+
): UnaryResponse;
|
|
107
|
+
retrieve(
|
|
108
|
+
requestMessage: auth_cluster_pb.ClusterProto.RetrieveRequest,
|
|
109
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto|null) => void
|
|
110
|
+
): UnaryResponse;
|
|
111
|
+
update(
|
|
112
|
+
requestMessage: auth_cluster_pb.ClusterProto.UpdateRequest,
|
|
113
|
+
metadata: grpc.Metadata,
|
|
114
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto|null) => void
|
|
115
|
+
): UnaryResponse;
|
|
116
|
+
update(
|
|
117
|
+
requestMessage: auth_cluster_pb.ClusterProto.UpdateRequest,
|
|
118
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto|null) => void
|
|
119
|
+
): UnaryResponse;
|
|
120
|
+
delete(
|
|
121
|
+
requestMessage: auth_cluster_pb.ClusterProto.DeleteRequest,
|
|
122
|
+
metadata: grpc.Metadata,
|
|
123
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto.DeleteReply|null) => void
|
|
124
|
+
): UnaryResponse;
|
|
125
|
+
delete(
|
|
126
|
+
requestMessage: auth_cluster_pb.ClusterProto.DeleteRequest,
|
|
127
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto.DeleteReply|null) => void
|
|
128
|
+
): UnaryResponse;
|
|
129
|
+
search(
|
|
130
|
+
requestMessage: auth_cluster_pb.ClusterProto.SearchRequest,
|
|
131
|
+
metadata: grpc.Metadata,
|
|
132
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto.SearchReply|null) => void
|
|
133
|
+
): UnaryResponse;
|
|
134
|
+
search(
|
|
135
|
+
requestMessage: auth_cluster_pb.ClusterProto.SearchRequest,
|
|
136
|
+
callback: (error: ServiceError|null, responseMessage: auth_cluster_pb.ClusterProto.SearchReply|null) => void
|
|
137
|
+
): UnaryResponse;
|
|
138
|
+
}
|
|
139
|
+
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
// package: Auth
|
|
2
|
+
// file: auth.cluster.proto
|
|
3
|
+
|
|
4
|
+
var auth_cluster_pb = require("./auth.cluster_pb");
|
|
5
|
+
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
6
|
+
|
|
7
|
+
var ClusterGRPC = (function () {
|
|
8
|
+
function ClusterGRPC() {}
|
|
9
|
+
ClusterGRPC.serviceName = "Auth.ClusterGRPC";
|
|
10
|
+
return ClusterGRPC;
|
|
11
|
+
}());
|
|
12
|
+
|
|
13
|
+
ClusterGRPC.Create = {
|
|
14
|
+
methodName: "Create",
|
|
15
|
+
service: ClusterGRPC,
|
|
16
|
+
requestStream: false,
|
|
17
|
+
responseStream: false,
|
|
18
|
+
requestType: auth_cluster_pb.ClusterProto.CreateRequest,
|
|
19
|
+
responseType: auth_cluster_pb.ClusterProto
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
ClusterGRPC.Retrieve = {
|
|
23
|
+
methodName: "Retrieve",
|
|
24
|
+
service: ClusterGRPC,
|
|
25
|
+
requestStream: false,
|
|
26
|
+
responseStream: false,
|
|
27
|
+
requestType: auth_cluster_pb.ClusterProto.RetrieveRequest,
|
|
28
|
+
responseType: auth_cluster_pb.ClusterProto
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
ClusterGRPC.Update = {
|
|
32
|
+
methodName: "Update",
|
|
33
|
+
service: ClusterGRPC,
|
|
34
|
+
requestStream: false,
|
|
35
|
+
responseStream: false,
|
|
36
|
+
requestType: auth_cluster_pb.ClusterProto.UpdateRequest,
|
|
37
|
+
responseType: auth_cluster_pb.ClusterProto
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
ClusterGRPC.Delete = {
|
|
41
|
+
methodName: "Delete",
|
|
42
|
+
service: ClusterGRPC,
|
|
43
|
+
requestStream: false,
|
|
44
|
+
responseStream: false,
|
|
45
|
+
requestType: auth_cluster_pb.ClusterProto.DeleteRequest,
|
|
46
|
+
responseType: auth_cluster_pb.ClusterProto.DeleteReply
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
ClusterGRPC.Search = {
|
|
50
|
+
methodName: "Search",
|
|
51
|
+
service: ClusterGRPC,
|
|
52
|
+
requestStream: false,
|
|
53
|
+
responseStream: false,
|
|
54
|
+
requestType: auth_cluster_pb.ClusterProto.SearchRequest,
|
|
55
|
+
responseType: auth_cluster_pb.ClusterProto.SearchReply
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
exports.ClusterGRPC = ClusterGRPC;
|
|
59
|
+
|
|
60
|
+
function ClusterGRPCClient(serviceHost, options) {
|
|
61
|
+
this.serviceHost = serviceHost;
|
|
62
|
+
this.options = options || {};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
ClusterGRPCClient.prototype.create = function create(requestMessage, metadata, callback) {
|
|
66
|
+
if (arguments.length === 2) {
|
|
67
|
+
callback = arguments[1];
|
|
68
|
+
}
|
|
69
|
+
var client = grpc.unary(ClusterGRPC.Create, {
|
|
70
|
+
request: requestMessage,
|
|
71
|
+
host: this.serviceHost,
|
|
72
|
+
metadata: metadata,
|
|
73
|
+
transport: this.options.transport,
|
|
74
|
+
debug: this.options.debug,
|
|
75
|
+
onEnd: function (response) {
|
|
76
|
+
if (callback) {
|
|
77
|
+
if (response.status !== grpc.Code.OK) {
|
|
78
|
+
var err = new Error(response.statusMessage);
|
|
79
|
+
err.code = response.status;
|
|
80
|
+
err.metadata = response.trailers;
|
|
81
|
+
callback(err, null);
|
|
82
|
+
} else {
|
|
83
|
+
callback(null, response.message);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
return {
|
|
89
|
+
cancel: function () {
|
|
90
|
+
callback = null;
|
|
91
|
+
client.close();
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
ClusterGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
97
|
+
if (arguments.length === 2) {
|
|
98
|
+
callback = arguments[1];
|
|
99
|
+
}
|
|
100
|
+
var client = grpc.unary(ClusterGRPC.Retrieve, {
|
|
101
|
+
request: requestMessage,
|
|
102
|
+
host: this.serviceHost,
|
|
103
|
+
metadata: metadata,
|
|
104
|
+
transport: this.options.transport,
|
|
105
|
+
debug: this.options.debug,
|
|
106
|
+
onEnd: function (response) {
|
|
107
|
+
if (callback) {
|
|
108
|
+
if (response.status !== grpc.Code.OK) {
|
|
109
|
+
var err = new Error(response.statusMessage);
|
|
110
|
+
err.code = response.status;
|
|
111
|
+
err.metadata = response.trailers;
|
|
112
|
+
callback(err, null);
|
|
113
|
+
} else {
|
|
114
|
+
callback(null, response.message);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
return {
|
|
120
|
+
cancel: function () {
|
|
121
|
+
callback = null;
|
|
122
|
+
client.close();
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
ClusterGRPCClient.prototype.update = function update(requestMessage, metadata, callback) {
|
|
128
|
+
if (arguments.length === 2) {
|
|
129
|
+
callback = arguments[1];
|
|
130
|
+
}
|
|
131
|
+
var client = grpc.unary(ClusterGRPC.Update, {
|
|
132
|
+
request: requestMessage,
|
|
133
|
+
host: this.serviceHost,
|
|
134
|
+
metadata: metadata,
|
|
135
|
+
transport: this.options.transport,
|
|
136
|
+
debug: this.options.debug,
|
|
137
|
+
onEnd: function (response) {
|
|
138
|
+
if (callback) {
|
|
139
|
+
if (response.status !== grpc.Code.OK) {
|
|
140
|
+
var err = new Error(response.statusMessage);
|
|
141
|
+
err.code = response.status;
|
|
142
|
+
err.metadata = response.trailers;
|
|
143
|
+
callback(err, null);
|
|
144
|
+
} else {
|
|
145
|
+
callback(null, response.message);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
return {
|
|
151
|
+
cancel: function () {
|
|
152
|
+
callback = null;
|
|
153
|
+
client.close();
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
ClusterGRPCClient.prototype.delete = function pb_delete(requestMessage, metadata, callback) {
|
|
159
|
+
if (arguments.length === 2) {
|
|
160
|
+
callback = arguments[1];
|
|
161
|
+
}
|
|
162
|
+
var client = grpc.unary(ClusterGRPC.Delete, {
|
|
163
|
+
request: requestMessage,
|
|
164
|
+
host: this.serviceHost,
|
|
165
|
+
metadata: metadata,
|
|
166
|
+
transport: this.options.transport,
|
|
167
|
+
debug: this.options.debug,
|
|
168
|
+
onEnd: function (response) {
|
|
169
|
+
if (callback) {
|
|
170
|
+
if (response.status !== grpc.Code.OK) {
|
|
171
|
+
var err = new Error(response.statusMessage);
|
|
172
|
+
err.code = response.status;
|
|
173
|
+
err.metadata = response.trailers;
|
|
174
|
+
callback(err, null);
|
|
175
|
+
} else {
|
|
176
|
+
callback(null, response.message);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
return {
|
|
182
|
+
cancel: function () {
|
|
183
|
+
callback = null;
|
|
184
|
+
client.close();
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
ClusterGRPCClient.prototype.search = function search(requestMessage, metadata, callback) {
|
|
190
|
+
if (arguments.length === 2) {
|
|
191
|
+
callback = arguments[1];
|
|
192
|
+
}
|
|
193
|
+
var client = grpc.unary(ClusterGRPC.Search, {
|
|
194
|
+
request: requestMessage,
|
|
195
|
+
host: this.serviceHost,
|
|
196
|
+
metadata: metadata,
|
|
197
|
+
transport: this.options.transport,
|
|
198
|
+
debug: this.options.debug,
|
|
199
|
+
onEnd: function (response) {
|
|
200
|
+
if (callback) {
|
|
201
|
+
if (response.status !== grpc.Code.OK) {
|
|
202
|
+
var err = new Error(response.statusMessage);
|
|
203
|
+
err.code = response.status;
|
|
204
|
+
err.metadata = response.trailers;
|
|
205
|
+
callback(err, null);
|
|
206
|
+
} else {
|
|
207
|
+
callback(null, response.message);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
return {
|
|
213
|
+
cancel: function () {
|
|
214
|
+
callback = null;
|
|
215
|
+
client.close();
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
exports.ClusterGRPCClient = ClusterGRPCClient;
|
|
221
|
+
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
// package: Auth
|
|
2
|
+
// file: auth.distribution.proto
|
|
3
|
+
|
|
4
|
+
import * as jspb from "google-protobuf";
|
|
5
|
+
import * as auth_cluster_pb from "./auth.cluster_pb";
|
|
6
|
+
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
7
|
+
import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
8
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
9
|
+
|
|
10
|
+
export class DistributionProto extends jspb.Message {
|
|
11
|
+
serializeBinary(): Uint8Array;
|
|
12
|
+
toObject(includeInstance?: boolean): DistributionProto.AsObject;
|
|
13
|
+
static toObject(includeInstance: boolean, msg: DistributionProto): DistributionProto.AsObject;
|
|
14
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
15
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
16
|
+
static serializeBinaryToWriter(message: DistributionProto, writer: jspb.BinaryWriter): void;
|
|
17
|
+
static deserializeBinary(bytes: Uint8Array): DistributionProto;
|
|
18
|
+
static deserializeBinaryFromReader(message: DistributionProto, reader: jspb.BinaryReader): DistributionProto;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export namespace DistributionProto {
|
|
22
|
+
export type AsObject = {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class CheckExistenceRequest extends jspb.Message {
|
|
26
|
+
getUid(): string;
|
|
27
|
+
setUid(value: string): void;
|
|
28
|
+
|
|
29
|
+
serializeBinary(): Uint8Array;
|
|
30
|
+
toObject(includeInstance?: boolean): CheckExistenceRequest.AsObject;
|
|
31
|
+
static toObject(includeInstance: boolean, msg: CheckExistenceRequest): CheckExistenceRequest.AsObject;
|
|
32
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
33
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
34
|
+
static serializeBinaryToWriter(message: CheckExistenceRequest, writer: jspb.BinaryWriter): void;
|
|
35
|
+
static deserializeBinary(bytes: Uint8Array): CheckExistenceRequest;
|
|
36
|
+
static deserializeBinaryFromReader(message: CheckExistenceRequest, reader: jspb.BinaryReader): CheckExistenceRequest;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export namespace CheckExistenceRequest {
|
|
40
|
+
export type AsObject = {
|
|
41
|
+
uid: string,
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class CheckExistenceResponse extends jspb.Message {
|
|
46
|
+
getExist(): boolean;
|
|
47
|
+
setExist(value: boolean): void;
|
|
48
|
+
|
|
49
|
+
hasCluster(): boolean;
|
|
50
|
+
clearCluster(): void;
|
|
51
|
+
getCluster(): auth_cluster_pb.ClusterProto | undefined;
|
|
52
|
+
setCluster(value?: auth_cluster_pb.ClusterProto): void;
|
|
53
|
+
|
|
54
|
+
serializeBinary(): Uint8Array;
|
|
55
|
+
toObject(includeInstance?: boolean): CheckExistenceResponse.AsObject;
|
|
56
|
+
static toObject(includeInstance: boolean, msg: CheckExistenceResponse): CheckExistenceResponse.AsObject;
|
|
57
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
58
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
59
|
+
static serializeBinaryToWriter(message: CheckExistenceResponse, writer: jspb.BinaryWriter): void;
|
|
60
|
+
static deserializeBinary(bytes: Uint8Array): CheckExistenceResponse;
|
|
61
|
+
static deserializeBinaryFromReader(message: CheckExistenceResponse, reader: jspb.BinaryReader): CheckExistenceResponse;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace CheckExistenceResponse {
|
|
65
|
+
export type AsObject = {
|
|
66
|
+
exist: boolean,
|
|
67
|
+
cluster?: auth_cluster_pb.ClusterProto.AsObject,
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export class DistributionLog extends jspb.Message {
|
|
72
|
+
getId(): string;
|
|
73
|
+
setId(value: string): void;
|
|
74
|
+
|
|
75
|
+
getError(): boolean;
|
|
76
|
+
setError(value: boolean): void;
|
|
77
|
+
|
|
78
|
+
hasDate(): boolean;
|
|
79
|
+
clearDate(): void;
|
|
80
|
+
getDate(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
81
|
+
setDate(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
82
|
+
|
|
83
|
+
getUid(): string;
|
|
84
|
+
setUid(value: string): void;
|
|
85
|
+
|
|
86
|
+
getOperator(): string;
|
|
87
|
+
setOperator(value: string): void;
|
|
88
|
+
|
|
89
|
+
getMsg(): string;
|
|
90
|
+
setMsg(value: string): void;
|
|
91
|
+
|
|
92
|
+
getFirmwareVersion(): number;
|
|
93
|
+
setFirmwareVersion(value: number): void;
|
|
94
|
+
|
|
95
|
+
getNetworkNumber(): string;
|
|
96
|
+
setNetworkNumber(value: string): void;
|
|
97
|
+
|
|
98
|
+
getImei(): string;
|
|
99
|
+
setImei(value: string): void;
|
|
100
|
+
|
|
101
|
+
getSimIccid(): string;
|
|
102
|
+
setSimIccid(value: string): void;
|
|
103
|
+
|
|
104
|
+
getCrc(): string;
|
|
105
|
+
setCrc(value: string): void;
|
|
106
|
+
|
|
107
|
+
getType(): string;
|
|
108
|
+
setType(value: string): void;
|
|
109
|
+
|
|
110
|
+
serializeBinary(): Uint8Array;
|
|
111
|
+
toObject(includeInstance?: boolean): DistributionLog.AsObject;
|
|
112
|
+
static toObject(includeInstance: boolean, msg: DistributionLog): DistributionLog.AsObject;
|
|
113
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
114
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
115
|
+
static serializeBinaryToWriter(message: DistributionLog, writer: jspb.BinaryWriter): void;
|
|
116
|
+
static deserializeBinary(bytes: Uint8Array): DistributionLog;
|
|
117
|
+
static deserializeBinaryFromReader(message: DistributionLog, reader: jspb.BinaryReader): DistributionLog;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export namespace DistributionLog {
|
|
121
|
+
export type AsObject = {
|
|
122
|
+
id: string,
|
|
123
|
+
error: boolean,
|
|
124
|
+
date?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
125
|
+
uid: string,
|
|
126
|
+
operator: string,
|
|
127
|
+
msg: string,
|
|
128
|
+
firmwareVersion: number,
|
|
129
|
+
networkNumber: string,
|
|
130
|
+
imei: string,
|
|
131
|
+
simIccid: string,
|
|
132
|
+
crc: string,
|
|
133
|
+
type: string,
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export class RetrieveRequest extends jspb.Message {
|
|
137
|
+
getUid(): string;
|
|
138
|
+
setUid(value: string): void;
|
|
139
|
+
|
|
140
|
+
getCount(): number;
|
|
141
|
+
setCount(value: number): void;
|
|
142
|
+
|
|
143
|
+
getPage(): number;
|
|
144
|
+
setPage(value: number): void;
|
|
145
|
+
|
|
146
|
+
hasDateFrom(): boolean;
|
|
147
|
+
clearDateFrom(): void;
|
|
148
|
+
getDateFrom(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
149
|
+
setDateFrom(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
150
|
+
|
|
151
|
+
hasDateTo(): boolean;
|
|
152
|
+
clearDateTo(): void;
|
|
153
|
+
getDateTo(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
154
|
+
setDateTo(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
155
|
+
|
|
156
|
+
clearOperatorsList(): void;
|
|
157
|
+
getOperatorsList(): Array<string>;
|
|
158
|
+
setOperatorsList(value: Array<string>): void;
|
|
159
|
+
addOperators(value: string, index?: number): string;
|
|
160
|
+
|
|
161
|
+
getError(): boolean;
|
|
162
|
+
setError(value: boolean): void;
|
|
163
|
+
|
|
164
|
+
clearCrcList(): void;
|
|
165
|
+
getCrcList(): Array<string>;
|
|
166
|
+
setCrcList(value: Array<string>): void;
|
|
167
|
+
addCrc(value: string, index?: number): string;
|
|
168
|
+
|
|
169
|
+
getSimIccid(): string;
|
|
170
|
+
setSimIccid(value: string): void;
|
|
171
|
+
|
|
172
|
+
getImei(): string;
|
|
173
|
+
setImei(value: string): void;
|
|
174
|
+
|
|
175
|
+
getType(): string;
|
|
176
|
+
setType(value: string): void;
|
|
177
|
+
|
|
178
|
+
serializeBinary(): Uint8Array;
|
|
179
|
+
toObject(includeInstance?: boolean): RetrieveRequest.AsObject;
|
|
180
|
+
static toObject(includeInstance: boolean, msg: RetrieveRequest): RetrieveRequest.AsObject;
|
|
181
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
182
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
183
|
+
static serializeBinaryToWriter(message: RetrieveRequest, writer: jspb.BinaryWriter): void;
|
|
184
|
+
static deserializeBinary(bytes: Uint8Array): RetrieveRequest;
|
|
185
|
+
static deserializeBinaryFromReader(message: RetrieveRequest, reader: jspb.BinaryReader): RetrieveRequest;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export namespace RetrieveRequest {
|
|
189
|
+
export type AsObject = {
|
|
190
|
+
uid: string,
|
|
191
|
+
count: number,
|
|
192
|
+
page: number,
|
|
193
|
+
dateFrom?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
194
|
+
dateTo?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
195
|
+
operatorsList: Array<string>,
|
|
196
|
+
error: boolean,
|
|
197
|
+
crcList: Array<string>,
|
|
198
|
+
simIccid: string,
|
|
199
|
+
imei: string,
|
|
200
|
+
type: string,
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export class RetrieveReply extends jspb.Message {
|
|
205
|
+
clearLogsList(): void;
|
|
206
|
+
getLogsList(): Array<DistributionProto.DistributionLog>;
|
|
207
|
+
setLogsList(value: Array<DistributionProto.DistributionLog>): void;
|
|
208
|
+
addLogs(value?: DistributionProto.DistributionLog, index?: number): DistributionProto.DistributionLog;
|
|
209
|
+
|
|
210
|
+
hasPagination(): boolean;
|
|
211
|
+
clearPagination(): void;
|
|
212
|
+
getPagination(): platform_pagination_pb.PaginationProto | undefined;
|
|
213
|
+
setPagination(value?: platform_pagination_pb.PaginationProto): void;
|
|
214
|
+
|
|
215
|
+
serializeBinary(): Uint8Array;
|
|
216
|
+
toObject(includeInstance?: boolean): RetrieveReply.AsObject;
|
|
217
|
+
static toObject(includeInstance: boolean, msg: RetrieveReply): RetrieveReply.AsObject;
|
|
218
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
219
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
220
|
+
static serializeBinaryToWriter(message: RetrieveReply, writer: jspb.BinaryWriter): void;
|
|
221
|
+
static deserializeBinary(bytes: Uint8Array): RetrieveReply;
|
|
222
|
+
static deserializeBinaryFromReader(message: RetrieveReply, reader: jspb.BinaryReader): RetrieveReply;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export namespace RetrieveReply {
|
|
226
|
+
export type AsObject = {
|
|
227
|
+
logsList: Array<DistributionProto.DistributionLog.AsObject>,
|
|
228
|
+
pagination?: platform_pagination_pb.PaginationProto.AsObject,
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|