@freelog/tools-lib 0.1.107 → 0.1.108
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/service-API/combinations/index.d.ts +7 -0
- package/dist/service-API/index.d.ts +2 -0
- package/dist/service-API/resources.d.ts +1 -1
- package/dist/service-API/storages.d.ts +4 -0
- package/dist/service-API/user.d.ts +6 -0
- package/dist/tools-lib.cjs.development.js +63 -3
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +63 -3
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/combinations/index.ts +27 -0
- package/src/service-API/index.ts +37 -35
- package/src/service-API/resources.ts +1 -1
- package/src/service-API/storages.ts +358 -345
- package/src/service-API/user.ts +205 -190
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface GetFileInfosBySha1Params {
|
|
2
|
+
sha1: string[];
|
|
3
|
+
cdPartiallySuccess?: (s: any[]) => void;
|
|
4
|
+
cdPartiallyFail?: (f: any[]) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function getFilesSha1Info({ sha1, cdPartiallySuccess, cdPartiallyFail }: GetFileInfosBySha1Params): Promise<void>;
|
|
7
|
+
export {};
|
|
@@ -13,6 +13,7 @@ import * as Activity from './activities';
|
|
|
13
13
|
import * as TestQualification from './testQualifications';
|
|
14
14
|
import * as Statistic from './statistics';
|
|
15
15
|
import * as I18n from './i18n';
|
|
16
|
+
import * as C from './combinations';
|
|
16
17
|
declare const FServiceAPI: {
|
|
17
18
|
Node: typeof Node;
|
|
18
19
|
Exhibit: typeof Exhibit;
|
|
@@ -29,5 +30,6 @@ declare const FServiceAPI: {
|
|
|
29
30
|
TestQualification: typeof TestQualification;
|
|
30
31
|
Statistic: typeof Statistic;
|
|
31
32
|
I18n: typeof I18n;
|
|
33
|
+
C: typeof C;
|
|
32
34
|
};
|
|
33
35
|
export default FServiceAPI;
|
|
@@ -117,4 +117,8 @@ interface ClearUserNodeDataParamsType {
|
|
|
117
117
|
nodeDomains?: string[];
|
|
118
118
|
}
|
|
119
119
|
export declare function clearUserNodeData({ ...params }: ClearUserNodeDataParamsType): Promise<any>;
|
|
120
|
+
interface FilesListInfoParamsType {
|
|
121
|
+
sha1: string[];
|
|
122
|
+
}
|
|
123
|
+
export declare function filesListInfo({ ...params }: FilesListInfoParamsType): Promise<any>;
|
|
120
124
|
export {};
|
|
@@ -62,4 +62,10 @@ interface UpdateMobileOrEmailParamsType {
|
|
|
62
62
|
newLoginName: string;
|
|
63
63
|
}
|
|
64
64
|
export declare function updateMobileOrEmail(params: UpdateMobileOrEmailParamsType): Promise<any>;
|
|
65
|
+
interface RegisterOrBindParamsType {
|
|
66
|
+
loginName: string;
|
|
67
|
+
password: string;
|
|
68
|
+
identityId: string;
|
|
69
|
+
}
|
|
70
|
+
export declare function registerOrBind(params: RegisterOrBindParamsType): Promise<any>;
|
|
65
71
|
export {};
|
|
@@ -1783,6 +1783,15 @@ function clearUserNodeData(_ref8) {
|
|
|
1783
1783
|
data: params
|
|
1784
1784
|
});
|
|
1785
1785
|
}
|
|
1786
|
+
function filesListInfo(_ref9) {
|
|
1787
|
+
var params = _extends({}, _ref9);
|
|
1788
|
+
|
|
1789
|
+
return FUtil.Request({
|
|
1790
|
+
method: 'GET',
|
|
1791
|
+
url: "/v2/storages/files/list/info",
|
|
1792
|
+
params: params
|
|
1793
|
+
});
|
|
1794
|
+
}
|
|
1786
1795
|
|
|
1787
1796
|
var Storage = {
|
|
1788
1797
|
__proto__: null,
|
|
@@ -1805,7 +1814,8 @@ var Storage = {
|
|
|
1805
1814
|
batchObjectList: batchObjectList,
|
|
1806
1815
|
fileProperty: fileProperty,
|
|
1807
1816
|
cycleDependencyCheck: cycleDependencyCheck,
|
|
1808
|
-
clearUserNodeData: clearUserNodeData
|
|
1817
|
+
clearUserNodeData: clearUserNodeData,
|
|
1818
|
+
filesListInfo: filesListInfo
|
|
1809
1819
|
};
|
|
1810
1820
|
|
|
1811
1821
|
function collectResource(params) {
|
|
@@ -2249,6 +2259,13 @@ function updateMobileOrEmail(params) {
|
|
|
2249
2259
|
data: params
|
|
2250
2260
|
});
|
|
2251
2261
|
}
|
|
2262
|
+
function registerOrBind(params) {
|
|
2263
|
+
return FUtil.Request({
|
|
2264
|
+
method: 'POST',
|
|
2265
|
+
url: "/v2/thirdParty/registerOrBind",
|
|
2266
|
+
data: params
|
|
2267
|
+
});
|
|
2268
|
+
}
|
|
2252
2269
|
|
|
2253
2270
|
var User = {
|
|
2254
2271
|
__proto__: null,
|
|
@@ -2263,7 +2280,8 @@ var User = {
|
|
|
2263
2280
|
updateDetailInfo: updateDetailInfo,
|
|
2264
2281
|
verifyLoginPassword: verifyLoginPassword,
|
|
2265
2282
|
areasProvinces: areasProvinces,
|
|
2266
|
-
updateMobileOrEmail: updateMobileOrEmail
|
|
2283
|
+
updateMobileOrEmail: updateMobileOrEmail,
|
|
2284
|
+
registerOrBind: registerOrBind
|
|
2267
2285
|
};
|
|
2268
2286
|
|
|
2269
2287
|
var _excluded$5 = ["nodeId"],
|
|
@@ -2731,6 +2749,47 @@ var I18n = {
|
|
|
2731
2749
|
configsList: configsList
|
|
2732
2750
|
};
|
|
2733
2751
|
|
|
2752
|
+
function getFilesSha1Info(_x) {
|
|
2753
|
+
return _getFilesSha1Info.apply(this, arguments);
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
function _getFilesSha1Info() {
|
|
2757
|
+
_getFilesSha1Info = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(_ref) {
|
|
2758
|
+
var sha1, cdPartiallySuccess, cdPartiallyFail, _yield$Storage$filesL, data, all, success, fail;
|
|
2759
|
+
|
|
2760
|
+
return runtime_1.wrap(function _callee$(_context) {
|
|
2761
|
+
while (1) {
|
|
2762
|
+
switch (_context.prev = _context.next) {
|
|
2763
|
+
case 0:
|
|
2764
|
+
sha1 = _ref.sha1, cdPartiallySuccess = _ref.cdPartiallySuccess, cdPartiallyFail = _ref.cdPartiallyFail;
|
|
2765
|
+
_context.next = 3;
|
|
2766
|
+
return filesListInfo({
|
|
2767
|
+
sha1: sha1
|
|
2768
|
+
});
|
|
2769
|
+
|
|
2770
|
+
case 3:
|
|
2771
|
+
_yield$Storage$filesL = _context.sent;
|
|
2772
|
+
data = _yield$Storage$filesL.data;
|
|
2773
|
+
all = [];
|
|
2774
|
+
success = [];
|
|
2775
|
+
fail = [];
|
|
2776
|
+
console.log(data, all, success, fail, cdPartiallySuccess, cdPartiallyFail, '093oijsdlkfsjdl');
|
|
2777
|
+
|
|
2778
|
+
case 9:
|
|
2779
|
+
case "end":
|
|
2780
|
+
return _context.stop();
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
}, _callee);
|
|
2784
|
+
}));
|
|
2785
|
+
return _getFilesSha1Info.apply(this, arguments);
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2788
|
+
var C = {
|
|
2789
|
+
__proto__: null,
|
|
2790
|
+
getFilesSha1Info: getFilesSha1Info
|
|
2791
|
+
};
|
|
2792
|
+
|
|
2734
2793
|
var FServiceAPI = {
|
|
2735
2794
|
Node: Node,
|
|
2736
2795
|
Exhibit: Exhibit,
|
|
@@ -2746,7 +2805,8 @@ var FServiceAPI = {
|
|
|
2746
2805
|
Activity: Activity,
|
|
2747
2806
|
TestQualification: TestQualification,
|
|
2748
2807
|
Statistic: Statistic,
|
|
2749
|
-
I18n: I18n
|
|
2808
|
+
I18n: I18n,
|
|
2809
|
+
C: C
|
|
2750
2810
|
};
|
|
2751
2811
|
|
|
2752
2812
|
var codeMessage = {
|