@lazycatcloud/sdk 0.1.411 → 0.1.413
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,7 +3,7 @@ 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.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = 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.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.actionToJSON = exports.actionFromJSON = exports.Action = exports.instanceStatusToJSON = exports.instanceStatusFromJSON = exports.InstanceStatus = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
|
|
6
|
+
exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerListFileHandlerDesc = exports.PackageManagerGetActionURLDesc = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerGetUserPermissionsDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerSetAppCfgDesc = exports.PackageManagerGetAppCfgDesc = exports.PackageManagerClearCacheDesc = exports.PackageManagerResumeDesc = exports.PackageManagerPauseDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = 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.actionToJSON = exports.actionFromJSON = exports.Action = exports.instanceStatusToJSON = exports.instanceStatusFromJSON = exports.InstanceStatus = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
9
9
|
const browser_headers_1 = require("browser-headers");
|
|
@@ -487,6 +487,7 @@ function createBaseAppInfo() {
|
|
|
487
487
|
builtin: undefined,
|
|
488
488
|
errorReason: undefined,
|
|
489
489
|
unsupportedPlatforms: [],
|
|
490
|
+
multiInstance: false,
|
|
490
491
|
};
|
|
491
492
|
}
|
|
492
493
|
exports.AppInfo = {
|
|
@@ -527,6 +528,9 @@ exports.AppInfo = {
|
|
|
527
528
|
for (const v of message.unsupportedPlatforms) {
|
|
528
529
|
writer.uint32(90).string(v);
|
|
529
530
|
}
|
|
531
|
+
if (message.multiInstance === true) {
|
|
532
|
+
writer.uint32(104).bool(message.multiInstance);
|
|
533
|
+
}
|
|
530
534
|
return writer;
|
|
531
535
|
},
|
|
532
536
|
decode(input, length) {
|
|
@@ -608,6 +612,12 @@ exports.AppInfo = {
|
|
|
608
612
|
}
|
|
609
613
|
message.unsupportedPlatforms.push(reader.string());
|
|
610
614
|
continue;
|
|
615
|
+
case 13:
|
|
616
|
+
if (tag !== 104) {
|
|
617
|
+
break;
|
|
618
|
+
}
|
|
619
|
+
message.multiInstance = reader.bool();
|
|
620
|
+
continue;
|
|
611
621
|
}
|
|
612
622
|
if ((tag & 7) === 4 || tag === 0) {
|
|
613
623
|
break;
|
|
@@ -634,6 +644,7 @@ exports.AppInfo = {
|
|
|
634
644
|
unsupportedPlatforms: Array.isArray(object === null || object === void 0 ? void 0 : object.unsupportedPlatforms)
|
|
635
645
|
? object.unsupportedPlatforms.map((e) => String(e))
|
|
636
646
|
: [],
|
|
647
|
+
multiInstance: isSet(object.multiInstance) ? Boolean(object.multiInstance) : false,
|
|
637
648
|
};
|
|
638
649
|
},
|
|
639
650
|
toJSON(message) {
|
|
@@ -675,13 +686,16 @@ exports.AppInfo = {
|
|
|
675
686
|
if ((_a = message.unsupportedPlatforms) === null || _a === void 0 ? void 0 : _a.length) {
|
|
676
687
|
obj.unsupportedPlatforms = message.unsupportedPlatforms;
|
|
677
688
|
}
|
|
689
|
+
if (message.multiInstance === true) {
|
|
690
|
+
obj.multiInstance = message.multiInstance;
|
|
691
|
+
}
|
|
678
692
|
return obj;
|
|
679
693
|
},
|
|
680
694
|
create(base) {
|
|
681
695
|
return exports.AppInfo.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
682
696
|
},
|
|
683
697
|
fromPartial(object) {
|
|
684
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
698
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
685
699
|
const message = createBaseAppInfo();
|
|
686
700
|
message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
|
|
687
701
|
message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -697,6 +711,226 @@ exports.AppInfo = {
|
|
|
697
711
|
message.builtin = (_j = object.builtin) !== null && _j !== void 0 ? _j : undefined;
|
|
698
712
|
message.errorReason = (_k = object.errorReason) !== null && _k !== void 0 ? _k : undefined;
|
|
699
713
|
message.unsupportedPlatforms = ((_l = object.unsupportedPlatforms) === null || _l === void 0 ? void 0 : _l.map((e) => e)) || [];
|
|
714
|
+
message.multiInstance = (_m = object.multiInstance) !== null && _m !== void 0 ? _m : false;
|
|
715
|
+
return message;
|
|
716
|
+
},
|
|
717
|
+
};
|
|
718
|
+
function createBaseAppCfg() {
|
|
719
|
+
return { backgroundTask: false };
|
|
720
|
+
}
|
|
721
|
+
exports.AppCfg = {
|
|
722
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
723
|
+
if (message.backgroundTask === true) {
|
|
724
|
+
writer.uint32(8).bool(message.backgroundTask);
|
|
725
|
+
}
|
|
726
|
+
return writer;
|
|
727
|
+
},
|
|
728
|
+
decode(input, length) {
|
|
729
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
730
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
731
|
+
const message = createBaseAppCfg();
|
|
732
|
+
while (reader.pos < end) {
|
|
733
|
+
const tag = reader.uint32();
|
|
734
|
+
switch (tag >>> 3) {
|
|
735
|
+
case 1:
|
|
736
|
+
if (tag !== 8) {
|
|
737
|
+
break;
|
|
738
|
+
}
|
|
739
|
+
message.backgroundTask = reader.bool();
|
|
740
|
+
continue;
|
|
741
|
+
}
|
|
742
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
743
|
+
break;
|
|
744
|
+
}
|
|
745
|
+
reader.skipType(tag & 7);
|
|
746
|
+
}
|
|
747
|
+
return message;
|
|
748
|
+
},
|
|
749
|
+
fromJSON(object) {
|
|
750
|
+
return { backgroundTask: isSet(object.backgroundTask) ? Boolean(object.backgroundTask) : false };
|
|
751
|
+
},
|
|
752
|
+
toJSON(message) {
|
|
753
|
+
const obj = {};
|
|
754
|
+
if (message.backgroundTask === true) {
|
|
755
|
+
obj.backgroundTask = message.backgroundTask;
|
|
756
|
+
}
|
|
757
|
+
return obj;
|
|
758
|
+
},
|
|
759
|
+
create(base) {
|
|
760
|
+
return exports.AppCfg.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
761
|
+
},
|
|
762
|
+
fromPartial(object) {
|
|
763
|
+
var _a;
|
|
764
|
+
const message = createBaseAppCfg();
|
|
765
|
+
message.backgroundTask = (_a = object.backgroundTask) !== null && _a !== void 0 ? _a : false;
|
|
766
|
+
return message;
|
|
767
|
+
},
|
|
768
|
+
};
|
|
769
|
+
function createBaseGetAppCfgRequest() {
|
|
770
|
+
return { appid: "" };
|
|
771
|
+
}
|
|
772
|
+
exports.GetAppCfgRequest = {
|
|
773
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
774
|
+
if (message.appid !== "") {
|
|
775
|
+
writer.uint32(10).string(message.appid);
|
|
776
|
+
}
|
|
777
|
+
return writer;
|
|
778
|
+
},
|
|
779
|
+
decode(input, length) {
|
|
780
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
781
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
782
|
+
const message = createBaseGetAppCfgRequest();
|
|
783
|
+
while (reader.pos < end) {
|
|
784
|
+
const tag = reader.uint32();
|
|
785
|
+
switch (tag >>> 3) {
|
|
786
|
+
case 1:
|
|
787
|
+
if (tag !== 10) {
|
|
788
|
+
break;
|
|
789
|
+
}
|
|
790
|
+
message.appid = reader.string();
|
|
791
|
+
continue;
|
|
792
|
+
}
|
|
793
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
794
|
+
break;
|
|
795
|
+
}
|
|
796
|
+
reader.skipType(tag & 7);
|
|
797
|
+
}
|
|
798
|
+
return message;
|
|
799
|
+
},
|
|
800
|
+
fromJSON(object) {
|
|
801
|
+
return { appid: isSet(object.appid) ? String(object.appid) : "" };
|
|
802
|
+
},
|
|
803
|
+
toJSON(message) {
|
|
804
|
+
const obj = {};
|
|
805
|
+
if (message.appid !== "") {
|
|
806
|
+
obj.appid = message.appid;
|
|
807
|
+
}
|
|
808
|
+
return obj;
|
|
809
|
+
},
|
|
810
|
+
create(base) {
|
|
811
|
+
return exports.GetAppCfgRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
812
|
+
},
|
|
813
|
+
fromPartial(object) {
|
|
814
|
+
var _a;
|
|
815
|
+
const message = createBaseGetAppCfgRequest();
|
|
816
|
+
message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
|
|
817
|
+
return message;
|
|
818
|
+
},
|
|
819
|
+
};
|
|
820
|
+
function createBaseGetAppCfgResponse() {
|
|
821
|
+
return { cfg: undefined };
|
|
822
|
+
}
|
|
823
|
+
exports.GetAppCfgResponse = {
|
|
824
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
825
|
+
if (message.cfg !== undefined) {
|
|
826
|
+
exports.AppCfg.encode(message.cfg, writer.uint32(10).fork()).ldelim();
|
|
827
|
+
}
|
|
828
|
+
return writer;
|
|
829
|
+
},
|
|
830
|
+
decode(input, length) {
|
|
831
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
832
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
833
|
+
const message = createBaseGetAppCfgResponse();
|
|
834
|
+
while (reader.pos < end) {
|
|
835
|
+
const tag = reader.uint32();
|
|
836
|
+
switch (tag >>> 3) {
|
|
837
|
+
case 1:
|
|
838
|
+
if (tag !== 10) {
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
message.cfg = exports.AppCfg.decode(reader, reader.uint32());
|
|
842
|
+
continue;
|
|
843
|
+
}
|
|
844
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
845
|
+
break;
|
|
846
|
+
}
|
|
847
|
+
reader.skipType(tag & 7);
|
|
848
|
+
}
|
|
849
|
+
return message;
|
|
850
|
+
},
|
|
851
|
+
fromJSON(object) {
|
|
852
|
+
return { cfg: isSet(object.cfg) ? exports.AppCfg.fromJSON(object.cfg) : undefined };
|
|
853
|
+
},
|
|
854
|
+
toJSON(message) {
|
|
855
|
+
const obj = {};
|
|
856
|
+
if (message.cfg !== undefined) {
|
|
857
|
+
obj.cfg = exports.AppCfg.toJSON(message.cfg);
|
|
858
|
+
}
|
|
859
|
+
return obj;
|
|
860
|
+
},
|
|
861
|
+
create(base) {
|
|
862
|
+
return exports.GetAppCfgResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
863
|
+
},
|
|
864
|
+
fromPartial(object) {
|
|
865
|
+
const message = createBaseGetAppCfgResponse();
|
|
866
|
+
message.cfg = (object.cfg !== undefined && object.cfg !== null) ? exports.AppCfg.fromPartial(object.cfg) : undefined;
|
|
867
|
+
return message;
|
|
868
|
+
},
|
|
869
|
+
};
|
|
870
|
+
function createBaseSetAppCfgRequest() {
|
|
871
|
+
return { appid: "", cfg: undefined };
|
|
872
|
+
}
|
|
873
|
+
exports.SetAppCfgRequest = {
|
|
874
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
875
|
+
if (message.appid !== "") {
|
|
876
|
+
writer.uint32(10).string(message.appid);
|
|
877
|
+
}
|
|
878
|
+
if (message.cfg !== undefined) {
|
|
879
|
+
exports.AppCfg.encode(message.cfg, writer.uint32(18).fork()).ldelim();
|
|
880
|
+
}
|
|
881
|
+
return writer;
|
|
882
|
+
},
|
|
883
|
+
decode(input, length) {
|
|
884
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
885
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
886
|
+
const message = createBaseSetAppCfgRequest();
|
|
887
|
+
while (reader.pos < end) {
|
|
888
|
+
const tag = reader.uint32();
|
|
889
|
+
switch (tag >>> 3) {
|
|
890
|
+
case 1:
|
|
891
|
+
if (tag !== 10) {
|
|
892
|
+
break;
|
|
893
|
+
}
|
|
894
|
+
message.appid = reader.string();
|
|
895
|
+
continue;
|
|
896
|
+
case 2:
|
|
897
|
+
if (tag !== 18) {
|
|
898
|
+
break;
|
|
899
|
+
}
|
|
900
|
+
message.cfg = exports.AppCfg.decode(reader, reader.uint32());
|
|
901
|
+
continue;
|
|
902
|
+
}
|
|
903
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
904
|
+
break;
|
|
905
|
+
}
|
|
906
|
+
reader.skipType(tag & 7);
|
|
907
|
+
}
|
|
908
|
+
return message;
|
|
909
|
+
},
|
|
910
|
+
fromJSON(object) {
|
|
911
|
+
return {
|
|
912
|
+
appid: isSet(object.appid) ? String(object.appid) : "",
|
|
913
|
+
cfg: isSet(object.cfg) ? exports.AppCfg.fromJSON(object.cfg) : undefined,
|
|
914
|
+
};
|
|
915
|
+
},
|
|
916
|
+
toJSON(message) {
|
|
917
|
+
const obj = {};
|
|
918
|
+
if (message.appid !== "") {
|
|
919
|
+
obj.appid = message.appid;
|
|
920
|
+
}
|
|
921
|
+
if (message.cfg !== undefined) {
|
|
922
|
+
obj.cfg = exports.AppCfg.toJSON(message.cfg);
|
|
923
|
+
}
|
|
924
|
+
return obj;
|
|
925
|
+
},
|
|
926
|
+
create(base) {
|
|
927
|
+
return exports.SetAppCfgRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
928
|
+
},
|
|
929
|
+
fromPartial(object) {
|
|
930
|
+
var _a;
|
|
931
|
+
const message = createBaseSetAppCfgRequest();
|
|
932
|
+
message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
|
|
933
|
+
message.cfg = (object.cfg !== undefined && object.cfg !== null) ? exports.AppCfg.fromPartial(object.cfg) : undefined;
|
|
700
934
|
return message;
|
|
701
935
|
},
|
|
702
936
|
};
|
|
@@ -1714,6 +1948,8 @@ class PackageManagerClientImpl {
|
|
|
1714
1948
|
this.Pause = this.Pause.bind(this);
|
|
1715
1949
|
this.Resume = this.Resume.bind(this);
|
|
1716
1950
|
this.ClearCache = this.ClearCache.bind(this);
|
|
1951
|
+
this.GetAppCfg = this.GetAppCfg.bind(this);
|
|
1952
|
+
this.SetAppCfg = this.SetAppCfg.bind(this);
|
|
1717
1953
|
this.QueryApplication = this.QueryApplication.bind(this);
|
|
1718
1954
|
this.QueryAppStorageUsage = this.QueryAppStorageUsage.bind(this);
|
|
1719
1955
|
this.SetUserPermissions = this.SetUserPermissions.bind(this);
|
|
@@ -1737,6 +1973,12 @@ class PackageManagerClientImpl {
|
|
|
1737
1973
|
ClearCache(request, metadata, abortSignal) {
|
|
1738
1974
|
return this.rpc.unary(exports.PackageManagerClearCacheDesc, exports.Appid.fromPartial(request), metadata, abortSignal);
|
|
1739
1975
|
}
|
|
1976
|
+
GetAppCfg(request, metadata, abortSignal) {
|
|
1977
|
+
return this.rpc.unary(exports.PackageManagerGetAppCfgDesc, exports.GetAppCfgRequest.fromPartial(request), metadata, abortSignal);
|
|
1978
|
+
}
|
|
1979
|
+
SetAppCfg(request, metadata, abortSignal) {
|
|
1980
|
+
return this.rpc.unary(exports.PackageManagerSetAppCfgDesc, exports.SetAppCfgRequest.fromPartial(request), metadata, abortSignal);
|
|
1981
|
+
}
|
|
1740
1982
|
QueryApplication(request, metadata, abortSignal) {
|
|
1741
1983
|
return this.rpc.unary(exports.PackageManagerQueryApplicationDesc, exports.QueryApplicationRequest.fromPartial(request), metadata, abortSignal);
|
|
1742
1984
|
}
|
|
@@ -1856,6 +2098,44 @@ exports.PackageManagerClearCacheDesc = {
|
|
|
1856
2098
|
},
|
|
1857
2099
|
},
|
|
1858
2100
|
};
|
|
2101
|
+
exports.PackageManagerGetAppCfgDesc = {
|
|
2102
|
+
methodName: "GetAppCfg",
|
|
2103
|
+
service: exports.PackageManagerDesc,
|
|
2104
|
+
requestStream: false,
|
|
2105
|
+
responseStream: false,
|
|
2106
|
+
requestType: {
|
|
2107
|
+
serializeBinary() {
|
|
2108
|
+
return exports.GetAppCfgRequest.encode(this).finish();
|
|
2109
|
+
},
|
|
2110
|
+
},
|
|
2111
|
+
responseType: {
|
|
2112
|
+
deserializeBinary(data) {
|
|
2113
|
+
const value = exports.GetAppCfgResponse.decode(data);
|
|
2114
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2115
|
+
return value;
|
|
2116
|
+
} });
|
|
2117
|
+
},
|
|
2118
|
+
},
|
|
2119
|
+
};
|
|
2120
|
+
exports.PackageManagerSetAppCfgDesc = {
|
|
2121
|
+
methodName: "SetAppCfg",
|
|
2122
|
+
service: exports.PackageManagerDesc,
|
|
2123
|
+
requestStream: false,
|
|
2124
|
+
responseStream: false,
|
|
2125
|
+
requestType: {
|
|
2126
|
+
serializeBinary() {
|
|
2127
|
+
return exports.SetAppCfgRequest.encode(this).finish();
|
|
2128
|
+
},
|
|
2129
|
+
},
|
|
2130
|
+
responseType: {
|
|
2131
|
+
deserializeBinary(data) {
|
|
2132
|
+
const value = empty_1.Empty.decode(data);
|
|
2133
|
+
return Object.assign(Object.assign({}, value), { toObject() {
|
|
2134
|
+
return value;
|
|
2135
|
+
} });
|
|
2136
|
+
},
|
|
2137
|
+
},
|
|
2138
|
+
};
|
|
1859
2139
|
exports.PackageManagerQueryApplicationDesc = {
|
|
1860
2140
|
methodName: "QueryApplication",
|
|
1861
2141
|
service: exports.PackageManagerDesc,
|