cosmos-cloud-sdk 0.22.35 → 0.23.0-unstable004
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -0
- package/dist/index.mjs +9 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -369,6 +369,7 @@ declare function createClient({ baseUrl, token }: {
|
|
|
369
369
|
getConfig: () => Promise<ApiResponse<any>>;
|
|
370
370
|
getLogs: () => Promise<ApiResponse<any>>;
|
|
371
371
|
reset: () => Promise<ApiResponse<any>>;
|
|
372
|
+
forceReform: () => Promise<ApiResponse<any>>;
|
|
372
373
|
connect: (file: any) => Promise<unknown>;
|
|
373
374
|
block: (nickname: any, devicename: any, block: any) => Promise<ApiResponse<any>>;
|
|
374
375
|
ping: () => Promise<ApiResponse<any>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -369,6 +369,7 @@ declare function createClient({ baseUrl, token }: {
|
|
|
369
369
|
getConfig: () => Promise<ApiResponse<any>>;
|
|
370
370
|
getLogs: () => Promise<ApiResponse<any>>;
|
|
371
371
|
reset: () => Promise<ApiResponse<any>>;
|
|
372
|
+
forceReform: () => Promise<ApiResponse<any>>;
|
|
372
373
|
connect: (file: any) => Promise<unknown>;
|
|
373
374
|
block: (nickname: any, devicename: any, block: any) => Promise<ApiResponse<any>>;
|
|
374
375
|
ping: () => Promise<ApiResponse<any>>;
|
package/dist/index.js
CHANGED
|
@@ -830,6 +830,14 @@ function createConstellationAPI(apiFetch) {
|
|
|
830
830
|
}
|
|
831
831
|
}));
|
|
832
832
|
}
|
|
833
|
+
function forceReform() {
|
|
834
|
+
return wrap(apiFetch("/cosmos/api/constellation/force-reform", {
|
|
835
|
+
method: "POST",
|
|
836
|
+
headers: {
|
|
837
|
+
"Content-Type": "application/json"
|
|
838
|
+
}
|
|
839
|
+
}));
|
|
840
|
+
}
|
|
833
841
|
function getConfig() {
|
|
834
842
|
return wrap(apiFetch("/cosmos/api/constellation/config", {
|
|
835
843
|
method: "GET",
|
|
@@ -947,6 +955,7 @@ function createConstellationAPI(apiFetch) {
|
|
|
947
955
|
getConfig,
|
|
948
956
|
getLogs,
|
|
949
957
|
reset,
|
|
958
|
+
forceReform,
|
|
950
959
|
connect,
|
|
951
960
|
block,
|
|
952
961
|
ping,
|
package/dist/index.mjs
CHANGED
|
@@ -804,6 +804,14 @@ function createConstellationAPI(apiFetch) {
|
|
|
804
804
|
}
|
|
805
805
|
}));
|
|
806
806
|
}
|
|
807
|
+
function forceReform() {
|
|
808
|
+
return wrap(apiFetch("/cosmos/api/constellation/force-reform", {
|
|
809
|
+
method: "POST",
|
|
810
|
+
headers: {
|
|
811
|
+
"Content-Type": "application/json"
|
|
812
|
+
}
|
|
813
|
+
}));
|
|
814
|
+
}
|
|
807
815
|
function getConfig() {
|
|
808
816
|
return wrap(apiFetch("/cosmos/api/constellation/config", {
|
|
809
817
|
method: "GET",
|
|
@@ -921,6 +929,7 @@ function createConstellationAPI(apiFetch) {
|
|
|
921
929
|
getConfig,
|
|
922
930
|
getLogs,
|
|
923
931
|
reset,
|
|
932
|
+
forceReform,
|
|
924
933
|
connect,
|
|
925
934
|
block,
|
|
926
935
|
ping,
|