@aceplus/smartace-api 3.6.0-alpha.16 → 3.6.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/package.json +1 -1
- package/auth.account_pb.d.ts +0 -582
- package/auth.account_pb.js +0 -4287
- package/auth.account_pb_service.d.ts +0 -340
- package/auth.account_pb_service.js +0 -637
- package/auth.account_two_factor_pb.d.ts +0 -159
- package/auth.account_two_factor_pb.js +0 -1184
- package/auth.account_two_factor_pb_service.d.ts +0 -121
- package/auth.account_two_factor_pb_service.js +0 -182
- package/auth.app_account_pb.d.ts +0 -156
- package/auth.app_account_pb.js +0 -1153
- package/auth.app_account_pb_service.d.ts +0 -160
- package/auth.app_account_pb_service.js +0 -263
- package/auth.app_authn_pb.d.ts +0 -172
- package/auth.app_authn_pb.js +0 -1233
- package/auth.app_authn_pb_service.d.ts +0 -140
- package/auth.app_authn_pb_service.js +0 -222
- package/auth.app_distribution_pb.d.ts +0 -174
- package/auth.app_distribution_pb.js +0 -1338
- package/auth.app_distribution_pb_service.d.ts +0 -120
- package/auth.app_distribution_pb_service.js +0 -181
- package/auth.authn_pb.d.ts +0 -95
- package/auth.authn_pb.js +0 -637
- package/auth.authn_pb_service.d.ts +0 -82
- package/auth.authn_pb_service.js +0 -101
- package/auth.cluster_pb.d.ts +0 -142
- package/auth.cluster_pb.js +0 -1050
- package/auth.cluster_pb_service.d.ts +0 -82
- package/auth.cluster_pb_service.js +0 -101
- package/auth.distribution_pb.d.ts +0 -233
- package/auth.distribution_pb.js +0 -1785
- package/auth.distribution_pb_service.d.ts +0 -82
- package/auth.distribution_pb_service.js +0 -101
- package/auth.email_pb.d.ts +0 -217
- package/auth.email_pb.js +0 -1508
- package/auth.email_pb_service.d.ts +0 -102
- package/auth.email_pb_service.js +0 -142
- package/auth.firmware_pb.d.ts +0 -256
- package/auth.firmware_pb.js +0 -1997
- package/auth.firmware_pb_service.d.ts +0 -120
- package/auth.firmware_pb_service.js +0 -181
- package/auth.push_notification_pb.d.ts +0 -69
- package/auth.push_notification_pb.js +0 -411
- package/auth.push_notification_pb_service.d.ts +0 -64
- package/auth.push_notification_pb_service.js +0 -62
- package/auth.sms_pb.d.ts +0 -79
- package/auth.sms_pb.js +0 -575
- package/auth.sms_pb_service.d.ts +0 -83
- package/auth.sms_pb_service.js +0 -102
- package/google/api/annotations_pb.d.ts +0 -9
- package/google/api/annotations_pb.js +0 -54
- package/google/api/annotations_pb_service.d.ts +0 -3
- package/google/api/annotations_pb_service.js +0 -3
- package/google/api/auth_pb.d.ts +0 -150
- package/google/api/auth_pb.js +0 -1160
- package/google/api/auth_pb_service.d.ts +0 -3
- package/google/api/auth_pb_service.js +0 -3
- package/google/api/backend_pb.d.ts +0 -59
- package/google/api/backend_pb.js +0 -448
- package/google/api/backend_pb_service.d.ts +0 -3
- package/google/api/backend_pb_service.js +0 -3
- package/google/api/billing_pb.d.ts +0 -54
- package/google/api/billing_pb.js +0 -416
- package/google/api/billing_pb_service.d.ts +0 -3
- package/google/api/billing_pb_service.js +0 -3
- package/google/api/client_pb.d.ts +0 -12
- package/google/api/client_pb.js +0 -104
- package/google/api/client_pb_service.d.ts +0 -3
- package/google/api/client_pb_service.js +0 -3
- package/google/api/config_change_pb.d.ts +0 -72
- package/google/api/config_change_pb.js +0 -489
- package/google/api/config_change_pb_service.d.ts +0 -3
- package/google/api/config_change_pb_service.js +0 -3
- package/google/api/consumer_pb.d.ts +0 -65
- package/google/api/consumer_pb.js +0 -430
- package/google/api/consumer_pb_service.d.ts +0 -3
- package/google/api/consumer_pb_service.js +0 -3
- package/google/api/context_pb.d.ts +0 -59
- package/google/api/context_pb.js +0 -463
- package/google/api/context_pb_service.d.ts +0 -3
- package/google/api/context_pb_service.js +0 -3
- package/google/api/control_pb.d.ts +0 -25
- package/google/api/control_pb.js +0 -176
- package/google/api/control_pb_service.d.ts +0 -3
- package/google/api/control_pb_service.js +0 -3
- package/google/api/distribution_pb.d.ts +0 -235
- package/google/api/distribution_pb.js +0 -1805
- package/google/api/distribution_pb_service.d.ts +0 -3
- package/google/api/distribution_pb_service.js +0 -3
- package/google/api/documentation_pb.d.ts +0 -103
- package/google/api/documentation_pb.js +0 -803
- package/google/api/documentation_pb_service.d.ts +0 -3
- package/google/api/documentation_pb_service.js +0 -3
- package/google/api/endpoint_pb.d.ts +0 -46
- package/google/api/endpoint_pb.js +0 -343
- package/google/api/endpoint_pb_service.d.ts +0 -3
- package/google/api/endpoint_pb_service.js +0 -3
- package/google/api/error_reason_pb.d.ts +0 -40
- package/google/api/error_reason_pb.js +0 -61
- package/google/api/error_reason_pb_service.d.ts +0 -3
- package/google/api/error_reason_pb_service.js +0 -3
- package/google/api/field_behavior_pb.d.ts +0 -20
- package/google/api/field_behavior_pb.js +0 -66
- package/google/api/field_behavior_pb_service.d.ts +0 -3
- package/google/api/field_behavior_pb_service.js +0 -3
- package/google/api/http_pb.d.ts +0 -136
- package/google/api/http_pb.js +0 -1012
- package/google/api/http_pb_service.d.ts +0 -3
- package/google/api/http_pb_service.js +0 -3
- package/google/api/httpbody_pb.d.ts +0 -38
- package/google/api/httpbody_pb.js +0 -292
- package/google/api/httpbody_pb_service.d.ts +0 -3
- package/google/api/httpbody_pb_service.js +0 -3
- package/google/api/label_pb.d.ts +0 -41
- package/google/api/label_pb.js +0 -246
- package/google/api/label_pb_service.d.ts +0 -3
- package/google/api/label_pb_service.js +0 -3
- package/google/api/launch_stage_pb.d.ts +0 -16
- package/google/api/launch_stage_pb.js +0 -37
- package/google/api/launch_stage_pb_service.d.ts +0 -3
- package/google/api/launch_stage_pb_service.js +0 -3
- package/google/api/log_pb.d.ts +0 -40
- package/google/api/log_pb.js +0 -298
- package/google/api/log_pb_service.d.ts +0 -3
- package/google/api/log_pb_service.js +0 -3
- package/google/api/logging_pb.d.ts +0 -60
- package/google/api/logging_pb.js +0 -469
- package/google/api/logging_pb_service.d.ts +0 -3
- package/google/api/logging_pb_service.js +0 -3
- package/google/api/metric_pb.d.ts +0 -100
- package/google/api/metric_pb.js +0 -629
- package/google/api/metric_pb_service.d.ts +0 -3
- package/google/api/metric_pb_service.js +0 -3
- package/google/api/monitored_resource_pb.d.ts +0 -93
- package/google/api/monitored_resource_pb.js +0 -723
- package/google/api/monitored_resource_pb_service.d.ts +0 -3
- package/google/api/monitored_resource_pb_service.js +0 -3
- package/google/api/monitoring_pb.d.ts +0 -60
- package/google/api/monitoring_pb.js +0 -469
- package/google/api/monitoring_pb_service.d.ts +0 -3
- package/google/api/monitoring_pb_service.js +0 -3
- package/google/api/policy_pb.d.ts +0 -64
- package/google/api/policy_pb.js +0 -502
- package/google/api/policy_pb_service.d.ts +0 -3
- package/google/api/policy_pb_service.js +0 -3
- package/google/api/quota_pb.d.ts +0 -112
- package/google/api/quota_pb.js +0 -873
- package/google/api/quota_pb_service.d.ts +0 -3
- package/google/api/quota_pb_service.js +0 -3
- package/google/api/resource_pb.d.ts +0 -99
- package/google/api/resource_pb.js +0 -684
- package/google/api/resource_pb_service.d.ts +0 -3
- package/google/api/resource_pb_service.js +0 -3
- package/google/api/routing_pb.d.ts +0 -54
- package/google/api/routing_pb.js +0 -416
- package/google/api/routing_pb_service.d.ts +0 -3
- package/google/api/routing_pb_service.js +0 -3
- package/google/api/service_pb.d.ts +0 -184
- package/google/api/service_pb.js +0 -1400
- package/google/api/service_pb_service.d.ts +0 -3
- package/google/api/service_pb_service.js +0 -3
- package/google/api/source_info_pb.d.ts +0 -28
- package/google/api/source_info_pb.js +0 -208
- package/google/api/source_info_pb_service.d.ts +0 -3
- package/google/api/source_info_pb_service.js +0 -3
- package/google/api/system_parameter_pb.d.ts +0 -81
- package/google/api/system_parameter_pb.js +0 -630
- package/google/api/system_parameter_pb_service.d.ts +0 -3
- package/google/api/system_parameter_pb_service.js +0 -3
- package/google/api/usage_pb.d.ts +0 -66
- package/google/api/usage_pb.js +0 -499
- package/google/api/usage_pb_service.d.ts +0 -3
- package/google/api/usage_pb_service.js +0 -3
- package/google/api/visibility_pb.d.ts +0 -64
- package/google/api/visibility_pb.js +0 -546
- package/google/api/visibility_pb_service.d.ts +0 -3
- package/google/api/visibility_pb_service.js +0 -3
- package/meta.client_pb.d.ts +0 -167
- package/meta.client_pb.js +0 -1266
- package/meta.client_pb_service.d.ts +0 -122
- package/meta.client_pb_service.js +0 -183
- package/meta.spic_config_pb.d.ts +0 -184
- package/meta.spic_config_pb.js +0 -1382
- package/meta.spic_config_pb_service.d.ts +0 -122
- package/meta.spic_config_pb_service.js +0 -183
- package/platform.activity_log_pb.d.ts +0 -177
- package/platform.activity_log_pb.js +0 -1294
- package/platform.activity_log_pb_service.d.ts +0 -82
- package/platform.activity_log_pb_service.js +0 -101
- package/platform.client_pb.d.ts +0 -350
- package/platform.client_pb.js +0 -2663
- package/platform.client_pb_service.d.ts +0 -158
- package/platform.client_pb_service.js +0 -261
- package/platform.group_pb.d.ts +0 -195
- package/platform.group_pb.js +0 -1476
- package/platform.group_pb_service.d.ts +0 -139
- package/platform.group_pb_service.js +0 -221
- package/platform.local_account_internal_pb.d.ts +0 -125
- package/platform.local_account_internal_pb.js +0 -933
- package/platform.local_account_internal_pb_service.d.ts +0 -121
- package/platform.local_account_internal_pb_service.js +0 -182
- package/platform.local_account_pb.d.ts +0 -446
- package/platform.local_account_pb.js +0 -3337
- package/platform.local_account_pb_service.d.ts +0 -331
- package/platform.local_account_pb_service.js +0 -623
- package/platform.local_distribution_pb.d.ts +0 -73
- package/platform.local_distribution_pb.js +0 -536
- package/platform.local_distribution_pb_service.d.ts +0 -63
- package/platform.local_distribution_pb_service.js +0 -61
- package/platform.location_pb.d.ts +0 -271
- package/platform.location_pb.js +0 -2046
- package/platform.location_pb_service.d.ts +0 -139
- package/platform.location_pb_service.js +0 -221
- package/platform.pagination_pb.d.ts +0 -45
- package/platform.pagination_pb.js +0 -276
- package/platform.pagination_pb_service.d.ts +0 -3
- package/platform.pagination_pb_service.js +0 -3
- package/spic.admin_alert_pb.d.ts +0 -91
- package/spic.admin_alert_pb.js +0 -666
- package/spic.admin_alert_pb_service.d.ts +0 -102
- package/spic.admin_alert_pb_service.js +0 -142
- package/spic.alarm_pb.d.ts +0 -336
- package/spic.alarm_pb.js +0 -2562
- package/spic.alarm_pb_service.d.ts +0 -101
- package/spic.alarm_pb_service.js +0 -141
- package/spic.asset_pb.d.ts +0 -652
- package/spic.asset_pb.js +0 -4669
- package/spic.asset_pb_service.d.ts +0 -197
- package/spic.asset_pb_service.js +0 -342
- package/spic.cabinet_pb.d.ts +0 -791
- package/spic.cabinet_pb.js +0 -5733
- package/spic.cabinet_pb_service.d.ts +0 -158
- package/spic.cabinet_pb_service.js +0 -261
- package/spic.config_pb.d.ts +0 -249
- package/spic.config_pb.js +0 -1891
- package/spic.config_pb_service.d.ts +0 -120
- package/spic.config_pb_service.js +0 -181
- package/spic.contractor_pb.d.ts +0 -195
- package/spic.contractor_pb.js +0 -1476
- package/spic.contractor_pb_service.d.ts +0 -139
- package/spic.contractor_pb_service.js +0 -221
- package/spic.history_pb.d.ts +0 -142
- package/spic.history_pb.js +0 -1130
- package/spic.history_pb_service.d.ts +0 -63
- package/spic.history_pb_service.js +0 -61
- package/spic.open_request_pb.d.ts +0 -237
- package/spic.open_request_pb.js +0 -1784
- package/spic.open_request_pb_service.d.ts +0 -101
- package/spic.open_request_pb_service.js +0 -141
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
// package: Auth
|
|
2
|
-
// file: auth.firmware.proto
|
|
3
|
-
|
|
4
|
-
import * as auth_firmware_pb from "./auth.firmware_pb";
|
|
5
|
-
import {grpc} from "@improbable-eng/grpc-web";
|
|
6
|
-
|
|
7
|
-
type FirmwareGRPCCreate = {
|
|
8
|
-
readonly methodName: string;
|
|
9
|
-
readonly service: typeof FirmwareGRPC;
|
|
10
|
-
readonly requestStream: false;
|
|
11
|
-
readonly responseStream: false;
|
|
12
|
-
readonly requestType: typeof auth_firmware_pb.FirmwareProto.CreateRequest;
|
|
13
|
-
readonly responseType: typeof auth_firmware_pb.FirmwareProto;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
type FirmwareGRPCRetrieve = {
|
|
17
|
-
readonly methodName: string;
|
|
18
|
-
readonly service: typeof FirmwareGRPC;
|
|
19
|
-
readonly requestStream: false;
|
|
20
|
-
readonly responseStream: false;
|
|
21
|
-
readonly requestType: typeof auth_firmware_pb.FirmwareProto.RetrieveRequest;
|
|
22
|
-
readonly responseType: typeof auth_firmware_pb.FirmwareProto;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
type FirmwareGRPCUpdate = {
|
|
26
|
-
readonly methodName: string;
|
|
27
|
-
readonly service: typeof FirmwareGRPC;
|
|
28
|
-
readonly requestStream: false;
|
|
29
|
-
readonly responseStream: false;
|
|
30
|
-
readonly requestType: typeof auth_firmware_pb.FirmwareProto.UpdateRequest;
|
|
31
|
-
readonly responseType: typeof auth_firmware_pb.FirmwareProto;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type FirmwareGRPCSearch = {
|
|
35
|
-
readonly methodName: string;
|
|
36
|
-
readonly service: typeof FirmwareGRPC;
|
|
37
|
-
readonly requestStream: false;
|
|
38
|
-
readonly responseStream: false;
|
|
39
|
-
readonly requestType: typeof auth_firmware_pb.FirmwareProto.SearchRequest;
|
|
40
|
-
readonly responseType: typeof auth_firmware_pb.FirmwareProto.SearchReply;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export class FirmwareGRPC {
|
|
44
|
-
static readonly serviceName: string;
|
|
45
|
-
static readonly Create: FirmwareGRPCCreate;
|
|
46
|
-
static readonly Retrieve: FirmwareGRPCRetrieve;
|
|
47
|
-
static readonly Update: FirmwareGRPCUpdate;
|
|
48
|
-
static readonly Search: FirmwareGRPCSearch;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
52
|
-
export type Status = { details: string, code: number; metadata: grpc.Metadata }
|
|
53
|
-
|
|
54
|
-
interface UnaryResponse {
|
|
55
|
-
cancel(): void;
|
|
56
|
-
}
|
|
57
|
-
interface ResponseStream<T> {
|
|
58
|
-
cancel(): void;
|
|
59
|
-
on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
|
|
60
|
-
on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
|
|
61
|
-
on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
|
|
62
|
-
}
|
|
63
|
-
interface RequestStream<T> {
|
|
64
|
-
write(message: T): RequestStream<T>;
|
|
65
|
-
end(): void;
|
|
66
|
-
cancel(): void;
|
|
67
|
-
on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
|
|
68
|
-
on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
|
|
69
|
-
}
|
|
70
|
-
interface BidirectionalStream<ReqT, ResT> {
|
|
71
|
-
write(message: ReqT): BidirectionalStream<ReqT, ResT>;
|
|
72
|
-
end(): void;
|
|
73
|
-
cancel(): void;
|
|
74
|
-
on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
|
|
75
|
-
on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
76
|
-
on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export class FirmwareGRPCClient {
|
|
80
|
-
readonly serviceHost: string;
|
|
81
|
-
|
|
82
|
-
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
83
|
-
create(
|
|
84
|
-
requestMessage: auth_firmware_pb.FirmwareProto.CreateRequest,
|
|
85
|
-
metadata: grpc.Metadata,
|
|
86
|
-
callback: (error: ServiceError|null, responseMessage: auth_firmware_pb.FirmwareProto|null) => void
|
|
87
|
-
): UnaryResponse;
|
|
88
|
-
create(
|
|
89
|
-
requestMessage: auth_firmware_pb.FirmwareProto.CreateRequest,
|
|
90
|
-
callback: (error: ServiceError|null, responseMessage: auth_firmware_pb.FirmwareProto|null) => void
|
|
91
|
-
): UnaryResponse;
|
|
92
|
-
retrieve(
|
|
93
|
-
requestMessage: auth_firmware_pb.FirmwareProto.RetrieveRequest,
|
|
94
|
-
metadata: grpc.Metadata,
|
|
95
|
-
callback: (error: ServiceError|null, responseMessage: auth_firmware_pb.FirmwareProto|null) => void
|
|
96
|
-
): UnaryResponse;
|
|
97
|
-
retrieve(
|
|
98
|
-
requestMessage: auth_firmware_pb.FirmwareProto.RetrieveRequest,
|
|
99
|
-
callback: (error: ServiceError|null, responseMessage: auth_firmware_pb.FirmwareProto|null) => void
|
|
100
|
-
): UnaryResponse;
|
|
101
|
-
update(
|
|
102
|
-
requestMessage: auth_firmware_pb.FirmwareProto.UpdateRequest,
|
|
103
|
-
metadata: grpc.Metadata,
|
|
104
|
-
callback: (error: ServiceError|null, responseMessage: auth_firmware_pb.FirmwareProto|null) => void
|
|
105
|
-
): UnaryResponse;
|
|
106
|
-
update(
|
|
107
|
-
requestMessage: auth_firmware_pb.FirmwareProto.UpdateRequest,
|
|
108
|
-
callback: (error: ServiceError|null, responseMessage: auth_firmware_pb.FirmwareProto|null) => void
|
|
109
|
-
): UnaryResponse;
|
|
110
|
-
search(
|
|
111
|
-
requestMessage: auth_firmware_pb.FirmwareProto.SearchRequest,
|
|
112
|
-
metadata: grpc.Metadata,
|
|
113
|
-
callback: (error: ServiceError|null, responseMessage: auth_firmware_pb.FirmwareProto.SearchReply|null) => void
|
|
114
|
-
): UnaryResponse;
|
|
115
|
-
search(
|
|
116
|
-
requestMessage: auth_firmware_pb.FirmwareProto.SearchRequest,
|
|
117
|
-
callback: (error: ServiceError|null, responseMessage: auth_firmware_pb.FirmwareProto.SearchReply|null) => void
|
|
118
|
-
): UnaryResponse;
|
|
119
|
-
}
|
|
120
|
-
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
// package: Auth
|
|
2
|
-
// file: auth.firmware.proto
|
|
3
|
-
|
|
4
|
-
var auth_firmware_pb = require("./auth.firmware_pb");
|
|
5
|
-
var grpc = require("@improbable-eng/grpc-web").grpc;
|
|
6
|
-
|
|
7
|
-
var FirmwareGRPC = (function () {
|
|
8
|
-
function FirmwareGRPC() {}
|
|
9
|
-
FirmwareGRPC.serviceName = "Auth.FirmwareGRPC";
|
|
10
|
-
return FirmwareGRPC;
|
|
11
|
-
}());
|
|
12
|
-
|
|
13
|
-
FirmwareGRPC.Create = {
|
|
14
|
-
methodName: "Create",
|
|
15
|
-
service: FirmwareGRPC,
|
|
16
|
-
requestStream: false,
|
|
17
|
-
responseStream: false,
|
|
18
|
-
requestType: auth_firmware_pb.FirmwareProto.CreateRequest,
|
|
19
|
-
responseType: auth_firmware_pb.FirmwareProto
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
FirmwareGRPC.Retrieve = {
|
|
23
|
-
methodName: "Retrieve",
|
|
24
|
-
service: FirmwareGRPC,
|
|
25
|
-
requestStream: false,
|
|
26
|
-
responseStream: false,
|
|
27
|
-
requestType: auth_firmware_pb.FirmwareProto.RetrieveRequest,
|
|
28
|
-
responseType: auth_firmware_pb.FirmwareProto
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
FirmwareGRPC.Update = {
|
|
32
|
-
methodName: "Update",
|
|
33
|
-
service: FirmwareGRPC,
|
|
34
|
-
requestStream: false,
|
|
35
|
-
responseStream: false,
|
|
36
|
-
requestType: auth_firmware_pb.FirmwareProto.UpdateRequest,
|
|
37
|
-
responseType: auth_firmware_pb.FirmwareProto
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
FirmwareGRPC.Search = {
|
|
41
|
-
methodName: "Search",
|
|
42
|
-
service: FirmwareGRPC,
|
|
43
|
-
requestStream: false,
|
|
44
|
-
responseStream: false,
|
|
45
|
-
requestType: auth_firmware_pb.FirmwareProto.SearchRequest,
|
|
46
|
-
responseType: auth_firmware_pb.FirmwareProto.SearchReply
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
exports.FirmwareGRPC = FirmwareGRPC;
|
|
50
|
-
|
|
51
|
-
function FirmwareGRPCClient(serviceHost, options) {
|
|
52
|
-
this.serviceHost = serviceHost;
|
|
53
|
-
this.options = options || {};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
FirmwareGRPCClient.prototype.create = function create(requestMessage, metadata, callback) {
|
|
57
|
-
if (arguments.length === 2) {
|
|
58
|
-
callback = arguments[1];
|
|
59
|
-
}
|
|
60
|
-
var client = grpc.unary(FirmwareGRPC.Create, {
|
|
61
|
-
request: requestMessage,
|
|
62
|
-
host: this.serviceHost,
|
|
63
|
-
metadata: metadata,
|
|
64
|
-
transport: this.options.transport,
|
|
65
|
-
debug: this.options.debug,
|
|
66
|
-
onEnd: function (response) {
|
|
67
|
-
if (callback) {
|
|
68
|
-
if (response.status !== grpc.Code.OK) {
|
|
69
|
-
var err = new Error(response.statusMessage);
|
|
70
|
-
err.code = response.status;
|
|
71
|
-
err.metadata = response.trailers;
|
|
72
|
-
callback(err, null);
|
|
73
|
-
} else {
|
|
74
|
-
callback(null, response.message);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
return {
|
|
80
|
-
cancel: function () {
|
|
81
|
-
callback = null;
|
|
82
|
-
client.close();
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
FirmwareGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
|
|
88
|
-
if (arguments.length === 2) {
|
|
89
|
-
callback = arguments[1];
|
|
90
|
-
}
|
|
91
|
-
var client = grpc.unary(FirmwareGRPC.Retrieve, {
|
|
92
|
-
request: requestMessage,
|
|
93
|
-
host: this.serviceHost,
|
|
94
|
-
metadata: metadata,
|
|
95
|
-
transport: this.options.transport,
|
|
96
|
-
debug: this.options.debug,
|
|
97
|
-
onEnd: function (response) {
|
|
98
|
-
if (callback) {
|
|
99
|
-
if (response.status !== grpc.Code.OK) {
|
|
100
|
-
var err = new Error(response.statusMessage);
|
|
101
|
-
err.code = response.status;
|
|
102
|
-
err.metadata = response.trailers;
|
|
103
|
-
callback(err, null);
|
|
104
|
-
} else {
|
|
105
|
-
callback(null, response.message);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
return {
|
|
111
|
-
cancel: function () {
|
|
112
|
-
callback = null;
|
|
113
|
-
client.close();
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
FirmwareGRPCClient.prototype.update = function update(requestMessage, metadata, callback) {
|
|
119
|
-
if (arguments.length === 2) {
|
|
120
|
-
callback = arguments[1];
|
|
121
|
-
}
|
|
122
|
-
var client = grpc.unary(FirmwareGRPC.Update, {
|
|
123
|
-
request: requestMessage,
|
|
124
|
-
host: this.serviceHost,
|
|
125
|
-
metadata: metadata,
|
|
126
|
-
transport: this.options.transport,
|
|
127
|
-
debug: this.options.debug,
|
|
128
|
-
onEnd: function (response) {
|
|
129
|
-
if (callback) {
|
|
130
|
-
if (response.status !== grpc.Code.OK) {
|
|
131
|
-
var err = new Error(response.statusMessage);
|
|
132
|
-
err.code = response.status;
|
|
133
|
-
err.metadata = response.trailers;
|
|
134
|
-
callback(err, null);
|
|
135
|
-
} else {
|
|
136
|
-
callback(null, response.message);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
return {
|
|
142
|
-
cancel: function () {
|
|
143
|
-
callback = null;
|
|
144
|
-
client.close();
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
FirmwareGRPCClient.prototype.search = function search(requestMessage, metadata, callback) {
|
|
150
|
-
if (arguments.length === 2) {
|
|
151
|
-
callback = arguments[1];
|
|
152
|
-
}
|
|
153
|
-
var client = grpc.unary(FirmwareGRPC.Search, {
|
|
154
|
-
request: requestMessage,
|
|
155
|
-
host: this.serviceHost,
|
|
156
|
-
metadata: metadata,
|
|
157
|
-
transport: this.options.transport,
|
|
158
|
-
debug: this.options.debug,
|
|
159
|
-
onEnd: function (response) {
|
|
160
|
-
if (callback) {
|
|
161
|
-
if (response.status !== grpc.Code.OK) {
|
|
162
|
-
var err = new Error(response.statusMessage);
|
|
163
|
-
err.code = response.status;
|
|
164
|
-
err.metadata = response.trailers;
|
|
165
|
-
callback(err, null);
|
|
166
|
-
} else {
|
|
167
|
-
callback(null, response.message);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
return {
|
|
173
|
-
cancel: function () {
|
|
174
|
-
callback = null;
|
|
175
|
-
client.close();
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
exports.FirmwareGRPCClient = FirmwareGRPCClient;
|
|
181
|
-
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// package: Auth
|
|
2
|
-
// file: auth.push_notification.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 google_api_annotations_pb from "./google/api/annotations_pb";
|
|
7
|
-
|
|
8
|
-
export class PushNotificationProto extends jspb.Message {
|
|
9
|
-
serializeBinary(): Uint8Array;
|
|
10
|
-
toObject(includeInstance?: boolean): PushNotificationProto.AsObject;
|
|
11
|
-
static toObject(includeInstance: boolean, msg: PushNotificationProto): PushNotificationProto.AsObject;
|
|
12
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
13
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
14
|
-
static serializeBinaryToWriter(message: PushNotificationProto, writer: jspb.BinaryWriter): void;
|
|
15
|
-
static deserializeBinary(bytes: Uint8Array): PushNotificationProto;
|
|
16
|
-
static deserializeBinaryFromReader(message: PushNotificationProto, reader: jspb.BinaryReader): PushNotificationProto;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export namespace PushNotificationProto {
|
|
20
|
-
export type AsObject = {
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export class OpenRequest extends jspb.Message {
|
|
24
|
-
getAccountid(): number;
|
|
25
|
-
setAccountid(value: number): void;
|
|
26
|
-
|
|
27
|
-
getCabinetname(): string;
|
|
28
|
-
setCabinetname(value: string): void;
|
|
29
|
-
|
|
30
|
-
getCabinetid(): number;
|
|
31
|
-
setCabinetid(value: number): void;
|
|
32
|
-
|
|
33
|
-
getTag(): PushNotificationProto.TagMap[keyof PushNotificationProto.TagMap];
|
|
34
|
-
setTag(value: PushNotificationProto.TagMap[keyof PushNotificationProto.TagMap]): void;
|
|
35
|
-
|
|
36
|
-
serializeBinary(): Uint8Array;
|
|
37
|
-
toObject(includeInstance?: boolean): OpenRequest.AsObject;
|
|
38
|
-
static toObject(includeInstance: boolean, msg: OpenRequest): OpenRequest.AsObject;
|
|
39
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
40
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
41
|
-
static serializeBinaryToWriter(message: OpenRequest, writer: jspb.BinaryWriter): void;
|
|
42
|
-
static deserializeBinary(bytes: Uint8Array): OpenRequest;
|
|
43
|
-
static deserializeBinaryFromReader(message: OpenRequest, reader: jspb.BinaryReader): OpenRequest;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export namespace OpenRequest {
|
|
47
|
-
export type AsObject = {
|
|
48
|
-
accountid: number,
|
|
49
|
-
cabinetname: string,
|
|
50
|
-
cabinetid: number,
|
|
51
|
-
tag: PushNotificationProto.TagMap[keyof PushNotificationProto.TagMap],
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface PushTypeMap {
|
|
56
|
-
FCM: 0;
|
|
57
|
-
FCM_FIT: 2;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export const PushType: PushTypeMap;
|
|
61
|
-
|
|
62
|
-
export interface TagMap {
|
|
63
|
-
OPENING: 0;
|
|
64
|
-
CLOSED: 1;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export const Tag: TagMap;
|
|
68
|
-
}
|
|
69
|
-
|