@lazycatcloud/sdk 0.1.439 → 0.1.440

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.
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PackageManagerGetAppCfgDesc = exports.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.GetAppDownloadProgressResponse_ProgressesEntry = exports.GetAppDownloadProgressResponse = exports.GetAppDownloadProgressRequest = exports.SubscribeAppChangeResponse = exports.SubscribeAppChangeRequest = exports.ApplicationInfo = exports.ApplicationInfoResponse = exports.ApplicationInfoRequest = exports.AppInstance = exports.ListFileHandlerResponse = exports.FileHandlerInfo = exports.ListFileHandlerRequest = exports.GetActionURLResponse = exports.GetActionURLRequest = exports.Appid = exports.GetUserPermissionsRequest = exports.UserPermission = exports.AppStorageUsage_UserdataEntry = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.SetAppCfgRequest = exports.GetAppCfgResponse = exports.GetAppCfgRequest = exports.AppCfg = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.RestartMySelfResponse = exports.StopMySelfRequest = exports.actionToJSON = exports.actionFromJSON = exports.Action = exports.instanceStatusToJSON = exports.instanceStatusFromJSON = exports.InstanceStatus = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
7
- exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerStopMySelfDesc = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerGetAppDownloadProgressDesc = exports.PackageManagerSubscribeAppChangeDesc = exports.PackageManagerApplicationInfoDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerSetAppCfgDesc = void 0;
6
+ exports.PackageManagerSubscribeAppChangeDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerSetAppCfgDesc = exports.PackageManagerGetAppCfgDesc = exports.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.GetAppDownloadProgressResponse_ProgressesEntry = exports.GetAppDownloadProgressResponse = exports.GetAppDownloadProgressRequest = exports.SubscribeAppChangeResponse = exports.SubscribeAppChangeRequest = exports.AppInstance = exports.ListFileHandlerResponse = exports.FileHandlerInfo = exports.ListFileHandlerRequest = exports.GetActionURLResponse = exports.GetActionURLRequest = exports.Appid = exports.GetUserPermissionsRequest = exports.UserPermission = exports.AppStorageUsage_UserdataEntry = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.SetAppCfgRequest = exports.GetAppCfgResponse = exports.GetAppCfgRequest = exports.AppCfg = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.RestartMySelfResponse = exports.StopMySelfRequest = exports.actionToJSON = exports.actionFromJSON = exports.Action = exports.instanceStatusToJSON = exports.instanceStatusFromJSON = exports.InstanceStatus = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
7
+ exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerStopMySelfDesc = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerGetAppDownloadProgressDesc = void 0;
8
8
  /* eslint-disable */
9
9
  const grpc_web_1 = require("@improbable-eng/grpc-web");
10
10
  const browser_headers_1 = require("browser-headers");
@@ -2031,335 +2031,6 @@ exports.AppInstance = {
2031
2031
  return message;
2032
2032
  },
2033
2033
  };
2034
- function createBaseApplicationInfoRequest() {
2035
- return { appidList: [] };
2036
- }
2037
- exports.ApplicationInfoRequest = {
2038
- encode(message, writer = minimal_1.default.Writer.create()) {
2039
- for (const v of message.appidList) {
2040
- writer.uint32(10).string(v);
2041
- }
2042
- return writer;
2043
- },
2044
- decode(input, length) {
2045
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2046
- let end = length === undefined ? reader.len : reader.pos + length;
2047
- const message = createBaseApplicationInfoRequest();
2048
- while (reader.pos < end) {
2049
- const tag = reader.uint32();
2050
- switch (tag >>> 3) {
2051
- case 1:
2052
- if (tag !== 10) {
2053
- break;
2054
- }
2055
- message.appidList.push(reader.string());
2056
- continue;
2057
- }
2058
- if ((tag & 7) === 4 || tag === 0) {
2059
- break;
2060
- }
2061
- reader.skipType(tag & 7);
2062
- }
2063
- return message;
2064
- },
2065
- fromJSON(object) {
2066
- return { appidList: Array.isArray(object === null || object === void 0 ? void 0 : object.appidList) ? object.appidList.map((e) => String(e)) : [] };
2067
- },
2068
- toJSON(message) {
2069
- var _a;
2070
- const obj = {};
2071
- if ((_a = message.appidList) === null || _a === void 0 ? void 0 : _a.length) {
2072
- obj.appidList = message.appidList;
2073
- }
2074
- return obj;
2075
- },
2076
- create(base) {
2077
- return exports.ApplicationInfoRequest.fromPartial(base !== null && base !== void 0 ? base : {});
2078
- },
2079
- fromPartial(object) {
2080
- var _a;
2081
- const message = createBaseApplicationInfoRequest();
2082
- message.appidList = ((_a = object.appidList) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
2083
- return message;
2084
- },
2085
- };
2086
- function createBaseApplicationInfoResponse() {
2087
- return { infoList: [] };
2088
- }
2089
- exports.ApplicationInfoResponse = {
2090
- encode(message, writer = minimal_1.default.Writer.create()) {
2091
- for (const v of message.infoList) {
2092
- exports.ApplicationInfo.encode(v, writer.uint32(10).fork()).ldelim();
2093
- }
2094
- return writer;
2095
- },
2096
- decode(input, length) {
2097
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2098
- let end = length === undefined ? reader.len : reader.pos + length;
2099
- const message = createBaseApplicationInfoResponse();
2100
- while (reader.pos < end) {
2101
- const tag = reader.uint32();
2102
- switch (tag >>> 3) {
2103
- case 1:
2104
- if (tag !== 10) {
2105
- break;
2106
- }
2107
- message.infoList.push(exports.ApplicationInfo.decode(reader, reader.uint32()));
2108
- continue;
2109
- }
2110
- if ((tag & 7) === 4 || tag === 0) {
2111
- break;
2112
- }
2113
- reader.skipType(tag & 7);
2114
- }
2115
- return message;
2116
- },
2117
- fromJSON(object) {
2118
- return {
2119
- infoList: Array.isArray(object === null || object === void 0 ? void 0 : object.infoList) ? object.infoList.map((e) => exports.ApplicationInfo.fromJSON(e)) : [],
2120
- };
2121
- },
2122
- toJSON(message) {
2123
- var _a;
2124
- const obj = {};
2125
- if ((_a = message.infoList) === null || _a === void 0 ? void 0 : _a.length) {
2126
- obj.infoList = message.infoList.map((e) => exports.ApplicationInfo.toJSON(e));
2127
- }
2128
- return obj;
2129
- },
2130
- create(base) {
2131
- return exports.ApplicationInfoResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2132
- },
2133
- fromPartial(object) {
2134
- var _a;
2135
- const message = createBaseApplicationInfoResponse();
2136
- message.infoList = ((_a = object.infoList) === null || _a === void 0 ? void 0 : _a.map((e) => exports.ApplicationInfo.fromPartial(e))) || [];
2137
- return message;
2138
- },
2139
- };
2140
- function createBaseApplicationInfo() {
2141
- return {
2142
- appid: "",
2143
- status: 0,
2144
- instanceStatus: 0,
2145
- multiInstance: false,
2146
- title: undefined,
2147
- version: undefined,
2148
- description: undefined,
2149
- icon: undefined,
2150
- domain: undefined,
2151
- builtin: undefined,
2152
- errorReason: undefined,
2153
- unsupportedPlatforms: [],
2154
- };
2155
- }
2156
- exports.ApplicationInfo = {
2157
- encode(message, writer = minimal_1.default.Writer.create()) {
2158
- if (message.appid !== "") {
2159
- writer.uint32(10).string(message.appid);
2160
- }
2161
- if (message.status !== 0) {
2162
- writer.uint32(16).int32(message.status);
2163
- }
2164
- if (message.instanceStatus !== 0) {
2165
- writer.uint32(24).int32(message.instanceStatus);
2166
- }
2167
- if (message.multiInstance === true) {
2168
- writer.uint32(32).bool(message.multiInstance);
2169
- }
2170
- if (message.title !== undefined) {
2171
- writer.uint32(42).string(message.title);
2172
- }
2173
- if (message.version !== undefined) {
2174
- writer.uint32(50).string(message.version);
2175
- }
2176
- if (message.description !== undefined) {
2177
- writer.uint32(58).string(message.description);
2178
- }
2179
- if (message.icon !== undefined) {
2180
- writer.uint32(66).string(message.icon);
2181
- }
2182
- if (message.domain !== undefined) {
2183
- writer.uint32(74).string(message.domain);
2184
- }
2185
- if (message.builtin !== undefined) {
2186
- writer.uint32(80).bool(message.builtin);
2187
- }
2188
- if (message.errorReason !== undefined) {
2189
- writer.uint32(90).string(message.errorReason);
2190
- }
2191
- for (const v of message.unsupportedPlatforms) {
2192
- writer.uint32(98).string(v);
2193
- }
2194
- return writer;
2195
- },
2196
- decode(input, length) {
2197
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
2198
- let end = length === undefined ? reader.len : reader.pos + length;
2199
- const message = createBaseApplicationInfo();
2200
- while (reader.pos < end) {
2201
- const tag = reader.uint32();
2202
- switch (tag >>> 3) {
2203
- case 1:
2204
- if (tag !== 10) {
2205
- break;
2206
- }
2207
- message.appid = reader.string();
2208
- continue;
2209
- case 2:
2210
- if (tag !== 16) {
2211
- break;
2212
- }
2213
- message.status = reader.int32();
2214
- continue;
2215
- case 3:
2216
- if (tag !== 24) {
2217
- break;
2218
- }
2219
- message.instanceStatus = reader.int32();
2220
- continue;
2221
- case 4:
2222
- if (tag !== 32) {
2223
- break;
2224
- }
2225
- message.multiInstance = reader.bool();
2226
- continue;
2227
- case 5:
2228
- if (tag !== 42) {
2229
- break;
2230
- }
2231
- message.title = reader.string();
2232
- continue;
2233
- case 6:
2234
- if (tag !== 50) {
2235
- break;
2236
- }
2237
- message.version = reader.string();
2238
- continue;
2239
- case 7:
2240
- if (tag !== 58) {
2241
- break;
2242
- }
2243
- message.description = reader.string();
2244
- continue;
2245
- case 8:
2246
- if (tag !== 66) {
2247
- break;
2248
- }
2249
- message.icon = reader.string();
2250
- continue;
2251
- case 9:
2252
- if (tag !== 74) {
2253
- break;
2254
- }
2255
- message.domain = reader.string();
2256
- continue;
2257
- case 10:
2258
- if (tag !== 80) {
2259
- break;
2260
- }
2261
- message.builtin = reader.bool();
2262
- continue;
2263
- case 11:
2264
- if (tag !== 90) {
2265
- break;
2266
- }
2267
- message.errorReason = reader.string();
2268
- continue;
2269
- case 12:
2270
- if (tag !== 98) {
2271
- break;
2272
- }
2273
- message.unsupportedPlatforms.push(reader.string());
2274
- continue;
2275
- }
2276
- if ((tag & 7) === 4 || tag === 0) {
2277
- break;
2278
- }
2279
- reader.skipType(tag & 7);
2280
- }
2281
- return message;
2282
- },
2283
- fromJSON(object) {
2284
- return {
2285
- appid: isSet(object.appid) ? String(object.appid) : "",
2286
- status: isSet(object.status) ? appStatusFromJSON(object.status) : 0,
2287
- instanceStatus: isSet(object.instanceStatus) ? instanceStatusFromJSON(object.instanceStatus) : 0,
2288
- multiInstance: isSet(object.multiInstance) ? Boolean(object.multiInstance) : false,
2289
- title: isSet(object.title) ? String(object.title) : undefined,
2290
- version: isSet(object.version) ? String(object.version) : undefined,
2291
- description: isSet(object.description) ? String(object.description) : undefined,
2292
- icon: isSet(object.icon) ? String(object.icon) : undefined,
2293
- domain: isSet(object.domain) ? String(object.domain) : undefined,
2294
- builtin: isSet(object.builtin) ? Boolean(object.builtin) : undefined,
2295
- errorReason: isSet(object.errorReason) ? String(object.errorReason) : undefined,
2296
- unsupportedPlatforms: Array.isArray(object === null || object === void 0 ? void 0 : object.unsupportedPlatforms)
2297
- ? object.unsupportedPlatforms.map((e) => String(e))
2298
- : [],
2299
- };
2300
- },
2301
- toJSON(message) {
2302
- var _a;
2303
- const obj = {};
2304
- if (message.appid !== "") {
2305
- obj.appid = message.appid;
2306
- }
2307
- if (message.status !== 0) {
2308
- obj.status = appStatusToJSON(message.status);
2309
- }
2310
- if (message.instanceStatus !== 0) {
2311
- obj.instanceStatus = instanceStatusToJSON(message.instanceStatus);
2312
- }
2313
- if (message.multiInstance === true) {
2314
- obj.multiInstance = message.multiInstance;
2315
- }
2316
- if (message.title !== undefined) {
2317
- obj.title = message.title;
2318
- }
2319
- if (message.version !== undefined) {
2320
- obj.version = message.version;
2321
- }
2322
- if (message.description !== undefined) {
2323
- obj.description = message.description;
2324
- }
2325
- if (message.icon !== undefined) {
2326
- obj.icon = message.icon;
2327
- }
2328
- if (message.domain !== undefined) {
2329
- obj.domain = message.domain;
2330
- }
2331
- if (message.builtin !== undefined) {
2332
- obj.builtin = message.builtin;
2333
- }
2334
- if (message.errorReason !== undefined) {
2335
- obj.errorReason = message.errorReason;
2336
- }
2337
- if ((_a = message.unsupportedPlatforms) === null || _a === void 0 ? void 0 : _a.length) {
2338
- obj.unsupportedPlatforms = message.unsupportedPlatforms;
2339
- }
2340
- return obj;
2341
- },
2342
- create(base) {
2343
- return exports.ApplicationInfo.fromPartial(base !== null && base !== void 0 ? base : {});
2344
- },
2345
- fromPartial(object) {
2346
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
2347
- const message = createBaseApplicationInfo();
2348
- message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
2349
- message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
2350
- message.instanceStatus = (_c = object.instanceStatus) !== null && _c !== void 0 ? _c : 0;
2351
- message.multiInstance = (_d = object.multiInstance) !== null && _d !== void 0 ? _d : false;
2352
- message.title = (_e = object.title) !== null && _e !== void 0 ? _e : undefined;
2353
- message.version = (_f = object.version) !== null && _f !== void 0 ? _f : undefined;
2354
- message.description = (_g = object.description) !== null && _g !== void 0 ? _g : undefined;
2355
- message.icon = (_h = object.icon) !== null && _h !== void 0 ? _h : undefined;
2356
- message.domain = (_j = object.domain) !== null && _j !== void 0 ? _j : undefined;
2357
- message.builtin = (_k = object.builtin) !== null && _k !== void 0 ? _k : undefined;
2358
- message.errorReason = (_l = object.errorReason) !== null && _l !== void 0 ? _l : undefined;
2359
- message.unsupportedPlatforms = ((_m = object.unsupportedPlatforms) === null || _m === void 0 ? void 0 : _m.map((e) => e)) || [];
2360
- return message;
2361
- },
2362
- };
2363
2034
  function createBaseSubscribeAppChangeRequest() {
2364
2035
  return { appidList: [] };
2365
2036
  }
@@ -2654,7 +2325,6 @@ class PackageManagerClientImpl {
2654
2325
  this.GetAppCfg = this.GetAppCfg.bind(this);
2655
2326
  this.SetAppCfg = this.SetAppCfg.bind(this);
2656
2327
  this.QueryApplication = this.QueryApplication.bind(this);
2657
- this.ApplicationInfo = this.ApplicationInfo.bind(this);
2658
2328
  this.SubscribeAppChange = this.SubscribeAppChange.bind(this);
2659
2329
  this.GetAppDownloadProgress = this.GetAppDownloadProgress.bind(this);
2660
2330
  this.QueryAppStorageUsage = this.QueryAppStorageUsage.bind(this);
@@ -2689,9 +2359,6 @@ class PackageManagerClientImpl {
2689
2359
  QueryApplication(request, metadata, abortSignal) {
2690
2360
  return this.rpc.unary(exports.PackageManagerQueryApplicationDesc, exports.QueryApplicationRequest.fromPartial(request), metadata, abortSignal);
2691
2361
  }
2692
- ApplicationInfo(request, metadata, abortSignal) {
2693
- return this.rpc.unary(exports.PackageManagerApplicationInfoDesc, exports.ApplicationInfoRequest.fromPartial(request), metadata, abortSignal);
2694
- }
2695
2362
  SubscribeAppChange(request, metadata, abortSignal) {
2696
2363
  return this.rpc.invoke(exports.PackageManagerSubscribeAppChangeDesc, exports.SubscribeAppChangeRequest.fromPartial(request), metadata, abortSignal);
2697
2364
  }
@@ -2874,25 +2541,6 @@ exports.PackageManagerQueryApplicationDesc = {
2874
2541
  },
2875
2542
  },
2876
2543
  };
2877
- exports.PackageManagerApplicationInfoDesc = {
2878
- methodName: "ApplicationInfo",
2879
- service: exports.PackageManagerDesc,
2880
- requestStream: false,
2881
- responseStream: false,
2882
- requestType: {
2883
- serializeBinary() {
2884
- return exports.ApplicationInfoRequest.encode(this).finish();
2885
- },
2886
- },
2887
- responseType: {
2888
- deserializeBinary(data) {
2889
- const value = exports.ApplicationInfoResponse.decode(data);
2890
- return Object.assign(Object.assign({}, value), { toObject() {
2891
- return value;
2892
- } });
2893
- },
2894
- },
2895
- };
2896
2544
  exports.PackageManagerSubscribeAppChangeDesc = {
2897
2545
  methodName: "SubscribeAppChange",
2898
2546
  service: exports.PackageManagerDesc,