@freelog/tools-lib 0.1.184 → 0.1.185
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/policies.d.ts +9 -0
- package/dist/service-API/resources.d.ts +1 -1
- package/dist/tools-lib.cjs.development.js +487 -689
- 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 +487 -689
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +1 -1
- package/package.json +1 -1
- package/src/i18n/I18nNext.ts +156 -156
- package/src/service-API/contracts.ts +157 -157
- package/src/service-API/policies.ts +93 -75
- package/src/service-API/presentables.ts +605 -605
- package/src/service-API/resources.ts +1379 -1379
- package/src/service-API/storages.ts +418 -418
- package/src/service-API/user.ts +324 -324
- package/src/utils/linkTo.ts +683 -677
package/dist/tools-lib.esm.js
CHANGED
|
@@ -212,311 +212,118 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
212
212
|
if (null == r) return {};
|
|
213
213
|
var t = {};
|
|
214
214
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
215
|
-
if (e.
|
|
215
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
216
216
|
t[n] = r[n];
|
|
217
217
|
}
|
|
218
218
|
return t;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
return o(a, "_invoke", {
|
|
255
|
-
value: makeInvokeMethod(t, r, c)
|
|
256
|
-
}), a;
|
|
257
|
-
}
|
|
258
|
-
function tryCatch(t, e, r) {
|
|
259
|
-
try {
|
|
260
|
-
return {
|
|
261
|
-
type: "normal",
|
|
262
|
-
arg: t.call(e, r)
|
|
263
|
-
};
|
|
264
|
-
} catch (t) {
|
|
265
|
-
return {
|
|
266
|
-
type: "throw",
|
|
267
|
-
arg: t
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
e.wrap = wrap;
|
|
272
|
-
var h = "suspendedStart",
|
|
273
|
-
l = "suspendedYield",
|
|
274
|
-
f = "executing",
|
|
275
|
-
s = "completed",
|
|
276
|
-
y = {};
|
|
277
|
-
function Generator() {}
|
|
278
|
-
function GeneratorFunction() {}
|
|
279
|
-
function GeneratorFunctionPrototype() {}
|
|
280
|
-
var p = {};
|
|
281
|
-
define(p, a, function () {
|
|
282
|
-
return this;
|
|
283
|
-
});
|
|
284
|
-
var d = Object.getPrototypeOf,
|
|
285
|
-
v = d && d(d(values([])));
|
|
286
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
287
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
288
|
-
function defineIteratorMethods(t) {
|
|
289
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
290
|
-
define(t, e, function (t) {
|
|
291
|
-
return this._invoke(e, t);
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
function AsyncIterator(t, e) {
|
|
296
|
-
function invoke(r, o, i, a) {
|
|
297
|
-
var c = tryCatch(t[r], t, o);
|
|
298
|
-
if ("throw" !== c.type) {
|
|
299
|
-
var u = c.arg,
|
|
300
|
-
h = u.value;
|
|
301
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
302
|
-
invoke("next", t, i, a);
|
|
303
|
-
}, function (t) {
|
|
304
|
-
invoke("throw", t, i, a);
|
|
305
|
-
}) : e.resolve(h).then(function (t) {
|
|
306
|
-
u.value = t, i(u);
|
|
307
|
-
}, function (t) {
|
|
308
|
-
return invoke("throw", t, i, a);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
a(c.arg);
|
|
312
|
-
}
|
|
313
|
-
var r;
|
|
314
|
-
o(this, "_invoke", {
|
|
315
|
-
value: function (t, n) {
|
|
316
|
-
function callInvokeWithMethodAndArg() {
|
|
317
|
-
return new e(function (e, r) {
|
|
318
|
-
invoke(t, n, e, r);
|
|
319
|
-
});
|
|
220
|
+
function _regenerator() {
|
|
221
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
222
|
+
var e,
|
|
223
|
+
t,
|
|
224
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
225
|
+
n = r.iterator || "@@iterator",
|
|
226
|
+
o = r.toStringTag || "@@toStringTag";
|
|
227
|
+
function i(r, n, o, i) {
|
|
228
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
229
|
+
u = Object.create(c.prototype);
|
|
230
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
231
|
+
var i,
|
|
232
|
+
c,
|
|
233
|
+
u,
|
|
234
|
+
f = 0,
|
|
235
|
+
p = o || [],
|
|
236
|
+
y = !1,
|
|
237
|
+
G = {
|
|
238
|
+
p: 0,
|
|
239
|
+
n: 0,
|
|
240
|
+
v: e,
|
|
241
|
+
a: d,
|
|
242
|
+
f: d.bind(e, 4),
|
|
243
|
+
d: function (t, r) {
|
|
244
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
function d(r, n) {
|
|
248
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
249
|
+
var o,
|
|
250
|
+
i = p[t],
|
|
251
|
+
d = G.p,
|
|
252
|
+
l = i[2];
|
|
253
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
320
254
|
}
|
|
321
|
-
|
|
255
|
+
if (o || r > 1) return a;
|
|
256
|
+
throw y = !0, n;
|
|
322
257
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
258
|
+
return function (o, p, l) {
|
|
259
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
260
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
261
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
262
|
+
try {
|
|
263
|
+
if (f = 2, i) {
|
|
264
|
+
if (c || (o = "next"), t = i[o]) {
|
|
265
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
266
|
+
if (!t.done) return t;
|
|
267
|
+
u = t.value, c < 2 && (c = 0);
|
|
268
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
269
|
+
i = e;
|
|
270
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
271
|
+
} catch (t) {
|
|
272
|
+
i = e, c = 1, u = t;
|
|
273
|
+
} finally {
|
|
274
|
+
f = 1;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
331
277
|
return {
|
|
332
278
|
value: t,
|
|
333
|
-
done:
|
|
279
|
+
done: y
|
|
334
280
|
};
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
var c = n.delegate;
|
|
338
|
-
if (c) {
|
|
339
|
-
var u = maybeInvokeDelegate(c, n);
|
|
340
|
-
if (u) {
|
|
341
|
-
if (u === y) continue;
|
|
342
|
-
return u;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
346
|
-
if (o === h) throw o = s, n.arg;
|
|
347
|
-
n.dispatchException(n.arg);
|
|
348
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
349
|
-
o = f;
|
|
350
|
-
var p = tryCatch(e, r, n);
|
|
351
|
-
if ("normal" === p.type) {
|
|
352
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
353
|
-
return {
|
|
354
|
-
value: p.arg,
|
|
355
|
-
done: n.done
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
function maybeInvokeDelegate(e, r) {
|
|
363
|
-
var n = r.method,
|
|
364
|
-
o = e.iterator[n];
|
|
365
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
366
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
367
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
368
|
-
var a = i.arg;
|
|
369
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
370
|
-
}
|
|
371
|
-
function pushTryEntry(t) {
|
|
372
|
-
var e = {
|
|
373
|
-
tryLoc: t[0]
|
|
374
|
-
};
|
|
375
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
376
|
-
}
|
|
377
|
-
function resetTryEntry(t) {
|
|
378
|
-
var e = t.completion || {};
|
|
379
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
380
|
-
}
|
|
381
|
-
function Context(t) {
|
|
382
|
-
this.tryEntries = [{
|
|
383
|
-
tryLoc: "root"
|
|
384
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
281
|
+
};
|
|
282
|
+
}(r, o, i), !0), u;
|
|
385
283
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
return i.next = i;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
284
|
+
var a = {};
|
|
285
|
+
function Generator() {}
|
|
286
|
+
function GeneratorFunction() {}
|
|
287
|
+
function GeneratorFunctionPrototype() {}
|
|
288
|
+
t = Object.getPrototypeOf;
|
|
289
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
290
|
+
return this;
|
|
291
|
+
}), t),
|
|
292
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
293
|
+
function f(e) {
|
|
294
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
401
295
|
}
|
|
402
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
403
|
-
value: GeneratorFunctionPrototype,
|
|
404
|
-
configurable: !0
|
|
405
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
406
|
-
value: GeneratorFunction,
|
|
407
|
-
configurable: !0
|
|
408
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
409
|
-
var e = "function" == typeof t && t.constructor;
|
|
410
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
411
|
-
}, e.mark = function (t) {
|
|
412
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
413
|
-
}, e.awrap = function (t) {
|
|
414
|
-
return {
|
|
415
|
-
__await: t
|
|
416
|
-
};
|
|
417
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
418
|
-
return this;
|
|
419
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
420
|
-
void 0 === i && (i = Promise);
|
|
421
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
422
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
423
|
-
return t.done ? t.value : a.next();
|
|
424
|
-
});
|
|
425
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
296
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
426
297
|
return this;
|
|
427
|
-
}),
|
|
298
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
428
299
|
return "[object Generator]";
|
|
429
|
-
}),
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
return r.reverse(), function next() {
|
|
434
|
-
for (; r.length;) {
|
|
435
|
-
var t = r.pop();
|
|
436
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
437
|
-
}
|
|
438
|
-
return next.done = !0, next;
|
|
300
|
+
}), (_regenerator = function () {
|
|
301
|
+
return {
|
|
302
|
+
w: i,
|
|
303
|
+
m: f
|
|
439
304
|
};
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
function handle(n, o) {
|
|
455
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
456
|
-
}
|
|
457
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
458
|
-
var i = this.tryEntries[o],
|
|
459
|
-
a = i.completion;
|
|
460
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
461
|
-
if (i.tryLoc <= this.prev) {
|
|
462
|
-
var c = n.call(i, "catchLoc"),
|
|
463
|
-
u = n.call(i, "finallyLoc");
|
|
464
|
-
if (c && u) {
|
|
465
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
466
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
467
|
-
} else if (c) {
|
|
468
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
469
|
-
} else {
|
|
470
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
471
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
},
|
|
476
|
-
abrupt: function (t, e) {
|
|
477
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
478
|
-
var o = this.tryEntries[r];
|
|
479
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
480
|
-
var i = o;
|
|
481
|
-
break;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
485
|
-
var a = i ? i.completion : {};
|
|
486
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
487
|
-
},
|
|
488
|
-
complete: function (t, e) {
|
|
489
|
-
if ("throw" === t.type) throw t.arg;
|
|
490
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
491
|
-
},
|
|
492
|
-
finish: function (t) {
|
|
493
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
494
|
-
var r = this.tryEntries[e];
|
|
495
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
catch: function (t) {
|
|
499
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
500
|
-
var r = this.tryEntries[e];
|
|
501
|
-
if (r.tryLoc === t) {
|
|
502
|
-
var n = r.completion;
|
|
503
|
-
if ("throw" === n.type) {
|
|
504
|
-
var o = n.arg;
|
|
505
|
-
resetTryEntry(r);
|
|
506
|
-
}
|
|
507
|
-
return o;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
throw Error("illegal catch attempt");
|
|
511
|
-
},
|
|
512
|
-
delegateYield: function (e, r, n) {
|
|
513
|
-
return this.delegate = {
|
|
514
|
-
iterator: values(e),
|
|
515
|
-
resultName: r,
|
|
516
|
-
nextLoc: n
|
|
517
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
305
|
+
})();
|
|
306
|
+
}
|
|
307
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
308
|
+
var i = Object.defineProperty;
|
|
309
|
+
try {
|
|
310
|
+
i({}, "", {});
|
|
311
|
+
} catch (e) {
|
|
312
|
+
i = 0;
|
|
313
|
+
}
|
|
314
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
315
|
+
function o(r, n) {
|
|
316
|
+
_regeneratorDefine(e, r, function (e) {
|
|
317
|
+
return this._invoke(r, n, e);
|
|
318
|
+
});
|
|
518
319
|
}
|
|
519
|
-
|
|
320
|
+
r ? i ? i(e, r, {
|
|
321
|
+
value: n,
|
|
322
|
+
enumerable: !t,
|
|
323
|
+
configurable: !t,
|
|
324
|
+
writable: !t
|
|
325
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
326
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
520
327
|
}
|
|
521
328
|
|
|
522
329
|
var _excluded = ["resourceID"],
|
|
@@ -583,159 +390,159 @@ function collectionCreator(_temp9) {
|
|
|
583
390
|
_objectDestructuringEmpty(_temp9 === void 0 ? {} : _temp9);
|
|
584
391
|
return "/resource/collectionCreator";
|
|
585
392
|
}
|
|
586
|
-
function myResources(
|
|
587
|
-
_objectDestructuringEmpty(
|
|
393
|
+
function myResources(_temp0) {
|
|
394
|
+
_objectDestructuringEmpty(_temp0 === void 0 ? {} : _temp0);
|
|
588
395
|
return "/resource/list";
|
|
589
396
|
}
|
|
590
|
-
function myCollections(
|
|
591
|
-
_objectDestructuringEmpty(
|
|
397
|
+
function myCollections(_temp1) {
|
|
398
|
+
_objectDestructuringEmpty(_temp1 === void 0 ? {} : _temp1);
|
|
592
399
|
return "/resource/collection";
|
|
593
400
|
}
|
|
594
|
-
function myCollects(
|
|
595
|
-
_objectDestructuringEmpty(
|
|
401
|
+
function myCollects(_temp10) {
|
|
402
|
+
_objectDestructuringEmpty(_temp10 === void 0 ? {} : _temp10);
|
|
596
403
|
return "/resource/collect";
|
|
597
404
|
}
|
|
598
|
-
function resourceVersionInfo(
|
|
599
|
-
var resourceID =
|
|
600
|
-
|
|
601
|
-
version =
|
|
405
|
+
function resourceVersionInfo(_ref15) {
|
|
406
|
+
var resourceID = _ref15.resourceID,
|
|
407
|
+
_ref15$version = _ref15.version,
|
|
408
|
+
version = _ref15$version === void 0 ? '' : _ref15$version;
|
|
602
409
|
return "/resource/sidebar/versionInfo/" + resourceID + handleQuery({
|
|
603
410
|
version: version
|
|
604
411
|
});
|
|
605
412
|
}
|
|
606
|
-
function resourceInfo(
|
|
607
|
-
var resourceID =
|
|
413
|
+
function resourceInfo(_ref16) {
|
|
414
|
+
var resourceID = _ref16.resourceID;
|
|
608
415
|
return "/resource/sidebar/info/" + resourceID;
|
|
609
416
|
}
|
|
610
|
-
function resourcePolicy(
|
|
611
|
-
var resourceID =
|
|
417
|
+
function resourcePolicy(_ref17) {
|
|
418
|
+
var resourceID = _ref17.resourceID;
|
|
612
419
|
return "/resource/sidebar/policy/" + resourceID;
|
|
613
420
|
}
|
|
614
|
-
function resourceContract(
|
|
615
|
-
var resourceID =
|
|
421
|
+
function resourceContract(_ref18) {
|
|
422
|
+
var resourceID = _ref18.resourceID;
|
|
616
423
|
return "/resource/sidebar/contract/" + resourceID;
|
|
617
424
|
}
|
|
618
|
-
function resourceDependency(
|
|
619
|
-
var resourceID =
|
|
425
|
+
function resourceDependency(_ref19) {
|
|
426
|
+
var resourceID = _ref19.resourceID;
|
|
620
427
|
return "/resource/sidebar/dependency/" + resourceID;
|
|
621
428
|
}
|
|
622
|
-
function resourceVersionCreator(
|
|
623
|
-
var resourceID =
|
|
429
|
+
function resourceVersionCreator(_ref20) {
|
|
430
|
+
var resourceID = _ref20.resourceID;
|
|
624
431
|
return "/resource/versionCreator/" + resourceID;
|
|
625
432
|
}
|
|
626
|
-
function collectionVersionInfo(
|
|
627
|
-
var collectionID =
|
|
433
|
+
function collectionVersionInfo(_ref21) {
|
|
434
|
+
var collectionID = _ref21.collectionID;
|
|
628
435
|
return "/resource/collectionSidebar/versionInfo/" + collectionID;
|
|
629
436
|
}
|
|
630
|
-
function collectionInfo(
|
|
631
|
-
var collectionID =
|
|
437
|
+
function collectionInfo(_ref22) {
|
|
438
|
+
var collectionID = _ref22.collectionID;
|
|
632
439
|
return "/resource/collectionSidebar/info/" + collectionID;
|
|
633
440
|
}
|
|
634
|
-
function collectionPolicy(
|
|
635
|
-
var collectionID =
|
|
441
|
+
function collectionPolicy(_ref23) {
|
|
442
|
+
var collectionID = _ref23.collectionID;
|
|
636
443
|
return "/resource/collectionSidebar/policy/" + collectionID;
|
|
637
444
|
}
|
|
638
|
-
function collectionContract(
|
|
639
|
-
var collectionID =
|
|
445
|
+
function collectionContract(_ref24) {
|
|
446
|
+
var collectionID = _ref24.collectionID;
|
|
640
447
|
return "/resource/collectionSidebar/contract/" + collectionID;
|
|
641
448
|
}
|
|
642
|
-
function collectionDependency(
|
|
643
|
-
var collectionID =
|
|
449
|
+
function collectionDependency(_ref25) {
|
|
450
|
+
var collectionID = _ref25.collectionID;
|
|
644
451
|
return "/resource/collectionSidebar/dependency/" + collectionID;
|
|
645
452
|
}
|
|
646
|
-
function nodeCreator(
|
|
647
|
-
_objectDestructuringEmpty(
|
|
453
|
+
function nodeCreator(_temp11) {
|
|
454
|
+
_objectDestructuringEmpty(_temp11 === void 0 ? {} : _temp11);
|
|
648
455
|
return "/node/creator";
|
|
649
456
|
}
|
|
650
|
-
function nodeManagement(
|
|
651
|
-
var nodeID =
|
|
652
|
-
|
|
653
|
-
showPage =
|
|
654
|
-
params = _objectWithoutPropertiesLoose(
|
|
457
|
+
function nodeManagement(_ref27) {
|
|
458
|
+
var nodeID = _ref27.nodeID,
|
|
459
|
+
_ref27$showPage = _ref27.showPage,
|
|
460
|
+
showPage = _ref27$showPage === void 0 ? 'exhibit' : _ref27$showPage,
|
|
461
|
+
params = _objectWithoutPropertiesLoose(_ref27, _excluded2);
|
|
655
462
|
return "/node/formal/" + nodeID + handleQuery(_extends({
|
|
656
463
|
showPage: showPage
|
|
657
464
|
}, params));
|
|
658
465
|
}
|
|
659
|
-
function exhibitManagement(
|
|
660
|
-
var exhibitID =
|
|
661
|
-
params = _objectWithoutPropertiesLoose(
|
|
466
|
+
function exhibitManagement(_ref28) {
|
|
467
|
+
var exhibitID = _ref28.exhibitID,
|
|
468
|
+
params = _objectWithoutPropertiesLoose(_ref28, _excluded3);
|
|
662
469
|
return "/node/exhibit/formal/" + exhibitID + handleQuery(_extends({}, params));
|
|
663
470
|
}
|
|
664
|
-
function collectionExhibitManagement(
|
|
665
|
-
var exhibitID =
|
|
666
|
-
openAuthDrawer =
|
|
471
|
+
function collectionExhibitManagement(_ref29) {
|
|
472
|
+
var exhibitID = _ref29.exhibitID,
|
|
473
|
+
openAuthDrawer = _ref29.openAuthDrawer;
|
|
667
474
|
return "/node/collectionExhibit/formal/" + exhibitID + handleQuery({
|
|
668
475
|
openAuthDrawer: openAuthDrawer
|
|
669
476
|
});
|
|
670
477
|
}
|
|
671
|
-
function collectionExhibitCreator(
|
|
672
|
-
var nodeID =
|
|
478
|
+
function collectionExhibitCreator(_ref30) {
|
|
479
|
+
var nodeID = _ref30.nodeID;
|
|
673
480
|
return "/node/collectionExhibitCreator/" + nodeID;
|
|
674
481
|
}
|
|
675
|
-
function createdCollectionExhibitManagement(
|
|
676
|
-
var exhibitID =
|
|
482
|
+
function createdCollectionExhibitManagement(_ref31) {
|
|
483
|
+
var exhibitID = _ref31.exhibitID;
|
|
677
484
|
return "/node/createdCollectionExhibit/formal/" + exhibitID;
|
|
678
485
|
}
|
|
679
|
-
function informNodeManagement(
|
|
680
|
-
var nodeID =
|
|
681
|
-
|
|
682
|
-
showPage =
|
|
683
|
-
params = _objectWithoutPropertiesLoose(
|
|
486
|
+
function informNodeManagement(_ref32) {
|
|
487
|
+
var nodeID = _ref32.nodeID,
|
|
488
|
+
_ref32$showPage = _ref32.showPage,
|
|
489
|
+
showPage = _ref32$showPage === void 0 ? 'exhibit' : _ref32$showPage,
|
|
490
|
+
params = _objectWithoutPropertiesLoose(_ref32, _excluded4);
|
|
684
491
|
return "/node/informal/" + nodeID + handleQuery(_extends({
|
|
685
492
|
showPage: showPage
|
|
686
493
|
}, params));
|
|
687
494
|
}
|
|
688
|
-
function informExhibitManagement(
|
|
689
|
-
var exhibitID =
|
|
690
|
-
|
|
691
|
-
openAuthDrawer =
|
|
495
|
+
function informExhibitManagement(_ref33) {
|
|
496
|
+
var exhibitID = _ref33.exhibitID,
|
|
497
|
+
_ref33$openAuthDrawer = _ref33.openAuthDrawer,
|
|
498
|
+
openAuthDrawer = _ref33$openAuthDrawer === void 0 ? undefined : _ref33$openAuthDrawer;
|
|
692
499
|
return "/node/exhibit/informal/" + exhibitID + handleQuery({
|
|
693
500
|
openAuthDrawer: openAuthDrawer
|
|
694
501
|
});
|
|
695
502
|
}
|
|
696
|
-
function storageSpace(
|
|
697
|
-
var
|
|
698
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
503
|
+
function storageSpace(_temp12) {
|
|
504
|
+
var _ref34 = _temp12 === void 0 ? {} : _temp12,
|
|
505
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref34), _ref34));
|
|
699
506
|
return "/storage" + handleQuery(params);
|
|
700
507
|
}
|
|
701
|
-
function objectDetails(
|
|
702
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
508
|
+
function objectDetails(_ref35) {
|
|
509
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref35), _ref35));
|
|
703
510
|
return "/storage" + handleQuery(params);
|
|
704
511
|
}
|
|
705
|
-
function collectionCreateSuccess(
|
|
706
|
-
var collectionID =
|
|
512
|
+
function collectionCreateSuccess(_ref36) {
|
|
513
|
+
var collectionID = _ref36.collectionID;
|
|
707
514
|
return "/result/collection/create/success/" + collectionID;
|
|
708
515
|
}
|
|
709
|
-
function resourceCreateSuccess(
|
|
710
|
-
var resourceID =
|
|
516
|
+
function resourceCreateSuccess(_ref37) {
|
|
517
|
+
var resourceID = _ref37.resourceID;
|
|
711
518
|
return "/result/resource/create/success/" + resourceID;
|
|
712
519
|
}
|
|
713
|
-
function resourceVersionCreateSuccess(
|
|
714
|
-
var resourceID =
|
|
715
|
-
version =
|
|
520
|
+
function resourceVersionCreateSuccess(_ref38) {
|
|
521
|
+
var resourceID = _ref38.resourceID,
|
|
522
|
+
version = _ref38.version;
|
|
716
523
|
return "/result/resource/version/create/success/" + resourceID + "/" + version;
|
|
717
524
|
}
|
|
718
|
-
function resourceVersionCreateRelease(
|
|
719
|
-
var resourceID =
|
|
720
|
-
version =
|
|
525
|
+
function resourceVersionCreateRelease(_ref39) {
|
|
526
|
+
var resourceID = _ref39.resourceID,
|
|
527
|
+
version = _ref39.version;
|
|
721
528
|
return "/result/resource/version/create/release/" + resourceID + "/" + version;
|
|
722
529
|
}
|
|
723
|
-
function nodeCreateSuccess(
|
|
724
|
-
var nodeID =
|
|
530
|
+
function nodeCreateSuccess(_ref40) {
|
|
531
|
+
var nodeID = _ref40.nodeID;
|
|
725
532
|
return "/result/node/create/success/" + nodeID;
|
|
726
533
|
}
|
|
727
|
-
function invitation(
|
|
728
|
-
var
|
|
729
|
-
goTo =
|
|
730
|
-
params = _objectWithoutPropertiesLoose(
|
|
534
|
+
function invitation(_temp13) {
|
|
535
|
+
var _ref41 = _temp13 === void 0 ? {} : _temp13,
|
|
536
|
+
goTo = _ref41.goTo,
|
|
537
|
+
params = _objectWithoutPropertiesLoose(_ref41, _excluded5);
|
|
731
538
|
// console.log(params.goTo, 'goTo9iowjefklsdj;flksdjflk')
|
|
732
539
|
return "/invitation" + handleQuery(_extends({}, params, {
|
|
733
540
|
returnUrl: goTo ? encodeURIComponent(goTo) : undefined
|
|
734
541
|
}));
|
|
735
542
|
}
|
|
736
|
-
function exception403(
|
|
737
|
-
var
|
|
738
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
543
|
+
function exception403(_temp14) {
|
|
544
|
+
var _ref42 = _temp14 === void 0 ? {} : _temp14,
|
|
545
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref42), _ref42));
|
|
739
546
|
var fromUrl = params.from || '';
|
|
740
547
|
if (!fromUrl) {
|
|
741
548
|
var _window$location = window.location,
|
|
@@ -747,9 +554,9 @@ function exception403(_temp16) {
|
|
|
747
554
|
from: fromUrl
|
|
748
555
|
});
|
|
749
556
|
}
|
|
750
|
-
function exceptionUnableToAccess(
|
|
751
|
-
var
|
|
752
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
557
|
+
function exceptionUnableToAccess(_temp15) {
|
|
558
|
+
var _ref43 = _temp15 === void 0 ? {} : _temp15,
|
|
559
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref43), _ref43));
|
|
753
560
|
var fromUrl = params.from || '';
|
|
754
561
|
if (!fromUrl) {
|
|
755
562
|
var _window$location2 = window.location,
|
|
@@ -761,88 +568,88 @@ function exceptionUnableToAccess(_temp17) {
|
|
|
761
568
|
from: fromUrl
|
|
762
569
|
});
|
|
763
570
|
}
|
|
764
|
-
function exceptionCommon(
|
|
765
|
-
var
|
|
766
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
571
|
+
function exceptionCommon(_temp16) {
|
|
572
|
+
var _ref44 = _temp16 === void 0 ? {} : _temp16,
|
|
573
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref44), _ref44));
|
|
767
574
|
return "/exception/common" + handleQuery(_extends({}, params));
|
|
768
575
|
}
|
|
769
|
-
function nodeFreeze(
|
|
770
|
-
var nodeID =
|
|
576
|
+
function nodeFreeze(_ref45) {
|
|
577
|
+
var nodeID = _ref45.nodeID;
|
|
771
578
|
return "/result/node/freeze/" + nodeID;
|
|
772
579
|
}
|
|
773
|
-
function resourceFreeze(
|
|
774
|
-
var resourceID =
|
|
580
|
+
function resourceFreeze(_ref46) {
|
|
581
|
+
var resourceID = _ref46.resourceID;
|
|
775
582
|
return "/result/resource/freeze/" + resourceID;
|
|
776
583
|
}
|
|
777
|
-
function globalSearch(
|
|
778
|
-
var search =
|
|
584
|
+
function globalSearch(_ref47) {
|
|
585
|
+
var search = _ref47.search;
|
|
779
586
|
return "/search" + handleQuery({
|
|
780
587
|
search: search
|
|
781
588
|
});
|
|
782
589
|
}
|
|
783
|
-
function login(
|
|
784
|
-
var
|
|
785
|
-
goTo =
|
|
590
|
+
function login(_temp17) {
|
|
591
|
+
var _ref48 = _temp17 === void 0 ? {} : _temp17,
|
|
592
|
+
goTo = _ref48.goTo;
|
|
786
593
|
return "/login" + handleQuery({
|
|
787
594
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
788
595
|
});
|
|
789
596
|
}
|
|
790
|
-
function logon(
|
|
791
|
-
var
|
|
792
|
-
goTo =
|
|
793
|
-
params = _objectWithoutPropertiesLoose(
|
|
597
|
+
function logon(_temp18) {
|
|
598
|
+
var _ref49 = _temp18 === void 0 ? {} : _temp18,
|
|
599
|
+
goTo = _ref49.goTo,
|
|
600
|
+
params = _objectWithoutPropertiesLoose(_ref49, _excluded6);
|
|
794
601
|
return "/logon" + handleQuery(_extends({
|
|
795
602
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
796
603
|
}, params));
|
|
797
604
|
}
|
|
798
|
-
function bind(
|
|
799
|
-
var
|
|
800
|
-
goTo =
|
|
801
|
-
returnUrl =
|
|
802
|
-
params = _objectWithoutPropertiesLoose(
|
|
605
|
+
function bind(_temp19) {
|
|
606
|
+
var _ref50 = _temp19 === void 0 ? {} : _temp19,
|
|
607
|
+
goTo = _ref50.goTo,
|
|
608
|
+
returnUrl = _ref50.returnUrl,
|
|
609
|
+
params = _objectWithoutPropertiesLoose(_ref50, _excluded7);
|
|
803
610
|
return "/bind" + handleQuery(_extends({
|
|
804
611
|
goTo: goTo ? encodeURIComponent(goTo) : undefined,
|
|
805
612
|
returnUrl: returnUrl ? encodeURIComponent(returnUrl) : undefined
|
|
806
613
|
}, params));
|
|
807
614
|
}
|
|
808
|
-
function retrieveUserPassword(
|
|
809
|
-
var
|
|
810
|
-
goTo =
|
|
615
|
+
function retrieveUserPassword(_temp20) {
|
|
616
|
+
var _ref51 = _temp20 === void 0 ? {} : _temp20,
|
|
617
|
+
goTo = _ref51.goTo;
|
|
811
618
|
return "/retrieve" + handleQuery({
|
|
812
619
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
813
620
|
});
|
|
814
621
|
}
|
|
815
|
-
function retrievePayPassword(
|
|
816
|
-
_objectDestructuringEmpty(
|
|
622
|
+
function retrievePayPassword(_temp21) {
|
|
623
|
+
_objectDestructuringEmpty(_temp21 === void 0 ? {} : _temp21);
|
|
817
624
|
return "/retrievePayPassword";
|
|
818
625
|
}
|
|
819
|
-
function userFreeze(
|
|
820
|
-
_objectDestructuringEmpty(
|
|
626
|
+
function userFreeze(_temp22) {
|
|
627
|
+
_objectDestructuringEmpty(_temp22 === void 0 ? {} : _temp22);
|
|
821
628
|
return "/freeze";
|
|
822
629
|
}
|
|
823
|
-
function wallet(
|
|
824
|
-
_objectDestructuringEmpty(
|
|
630
|
+
function wallet(_temp23) {
|
|
631
|
+
_objectDestructuringEmpty(_temp23 === void 0 ? {} : _temp23);
|
|
825
632
|
return "/logged/wallet";
|
|
826
633
|
}
|
|
827
|
-
function reward(
|
|
828
|
-
_objectDestructuringEmpty(
|
|
634
|
+
function reward(_temp24) {
|
|
635
|
+
_objectDestructuringEmpty(_temp24 === void 0 ? {} : _temp24);
|
|
829
636
|
return "/logged/reward";
|
|
830
637
|
}
|
|
831
|
-
function contract(
|
|
832
|
-
var
|
|
833
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
638
|
+
function contract(_temp25) {
|
|
639
|
+
var _ref56 = _temp25 === void 0 ? {} : _temp25,
|
|
640
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref56), _ref56));
|
|
834
641
|
return "/logged/contract" + handleQuery(_extends({}, params));
|
|
835
642
|
}
|
|
836
|
-
function setting(
|
|
837
|
-
_objectDestructuringEmpty(
|
|
643
|
+
function setting(_temp26) {
|
|
644
|
+
_objectDestructuringEmpty(_temp26 === void 0 ? {} : _temp26);
|
|
838
645
|
return "/logged/setting";
|
|
839
646
|
}
|
|
840
|
-
function binding(
|
|
841
|
-
_objectDestructuringEmpty(
|
|
647
|
+
function binding(_temp27) {
|
|
648
|
+
_objectDestructuringEmpty(_temp27 === void 0 ? {} : _temp27);
|
|
842
649
|
return "/logged/binding";
|
|
843
650
|
}
|
|
844
|
-
function resultBindingSuccess(
|
|
845
|
-
_objectDestructuringEmpty(
|
|
651
|
+
function resultBindingSuccess(_temp28) {
|
|
652
|
+
_objectDestructuringEmpty(_temp28 === void 0 ? {} : _temp28);
|
|
846
653
|
return "/result/binding";
|
|
847
654
|
}
|
|
848
655
|
/************** user End ******************************************************/
|
|
@@ -1043,16 +850,16 @@ var _excluded$1 = ["presentableId"],
|
|
|
1043
850
|
_excluded7$1 = ["presentableId"],
|
|
1044
851
|
_excluded8 = ["presentableId"],
|
|
1045
852
|
_excluded9 = ["nodeId"],
|
|
1046
|
-
|
|
853
|
+
_excluded0 = ["nodeId"],
|
|
854
|
+
_excluded1 = ["presentableId"],
|
|
855
|
+
_excluded10 = ["presentableId"],
|
|
1047
856
|
_excluded11 = ["presentableId"],
|
|
1048
857
|
_excluded12 = ["presentableId"],
|
|
1049
858
|
_excluded13 = ["presentableId"],
|
|
1050
859
|
_excluded14 = ["presentableId"],
|
|
1051
860
|
_excluded15 = ["presentableId"],
|
|
1052
861
|
_excluded16 = ["presentableId"],
|
|
1053
|
-
_excluded17 = ["presentableId"]
|
|
1054
|
-
_excluded18 = ["presentableId"],
|
|
1055
|
-
_excluded19 = ["presentableId"];
|
|
862
|
+
_excluded17 = ["presentableId"];
|
|
1056
863
|
function createPresentable(params) {
|
|
1057
864
|
return FUtil.Request({
|
|
1058
865
|
method: 'POST',
|
|
@@ -1164,7 +971,7 @@ function batchAuth(_ref8) {
|
|
|
1164
971
|
}
|
|
1165
972
|
function contractAppliedPresentable(_ref9) {
|
|
1166
973
|
var nodeId = _ref9.nodeId,
|
|
1167
|
-
params = _objectWithoutPropertiesLoose(_ref9,
|
|
974
|
+
params = _objectWithoutPropertiesLoose(_ref9, _excluded0);
|
|
1168
975
|
return FUtil.Request({
|
|
1169
976
|
method: 'GET',
|
|
1170
977
|
url: "/v2/presentables/" + nodeId + "/contractAppliedPresentable",
|
|
@@ -1178,120 +985,120 @@ function batchCreatePresentable(params) {
|
|
|
1178
985
|
data: params
|
|
1179
986
|
});
|
|
1180
987
|
}
|
|
1181
|
-
function batchUpdatePresentable(
|
|
1182
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
988
|
+
function batchUpdatePresentable(_ref0) {
|
|
989
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref0), _ref0));
|
|
1183
990
|
return FUtil.Request({
|
|
1184
991
|
method: 'PUT',
|
|
1185
992
|
url: "/v2/presentables/updatePresentableBatch",
|
|
1186
993
|
data: params
|
|
1187
994
|
});
|
|
1188
995
|
}
|
|
1189
|
-
function batchUpdatePresentableStatus(
|
|
1190
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
996
|
+
function batchUpdatePresentableStatus(_ref1) {
|
|
997
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref1), _ref1));
|
|
1191
998
|
return FUtil.Request({
|
|
1192
999
|
method: 'PUT',
|
|
1193
1000
|
url: "/v2/presentables/updatePresentableOnlineStatusBatch",
|
|
1194
1001
|
data: params
|
|
1195
1002
|
});
|
|
1196
1003
|
}
|
|
1197
|
-
function ignorePresentableVersionUpdateTip(
|
|
1198
|
-
var presentableId =
|
|
1199
|
-
params = _objectWithoutPropertiesLoose(
|
|
1004
|
+
function ignorePresentableVersionUpdateTip(_ref10) {
|
|
1005
|
+
var presentableId = _ref10.presentableId,
|
|
1006
|
+
params = _objectWithoutPropertiesLoose(_ref10, _excluded1);
|
|
1200
1007
|
return FUtil.Request({
|
|
1201
1008
|
method: 'POST',
|
|
1202
1009
|
url: "/v2/presentables/" + presentableId + "/ignorePresentableVersionUpdateTip",
|
|
1203
1010
|
data: params
|
|
1204
1011
|
});
|
|
1205
1012
|
}
|
|
1206
|
-
function createPresentableCollection(
|
|
1207
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1013
|
+
function createPresentableCollection(_ref11) {
|
|
1014
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref11), _ref11));
|
|
1208
1015
|
return FUtil.Request({
|
|
1209
1016
|
method: 'POST',
|
|
1210
1017
|
url: "/v2/presentables/catalogues",
|
|
1211
1018
|
data: params
|
|
1212
1019
|
});
|
|
1213
1020
|
}
|
|
1214
|
-
function updatePresentableCollection(
|
|
1215
|
-
var presentableId =
|
|
1216
|
-
params = _objectWithoutPropertiesLoose(
|
|
1021
|
+
function updatePresentableCollection(_ref12) {
|
|
1022
|
+
var presentableId = _ref12.presentableId,
|
|
1023
|
+
params = _objectWithoutPropertiesLoose(_ref12, _excluded10);
|
|
1217
1024
|
return FUtil.Request({
|
|
1218
1025
|
method: 'PUT',
|
|
1219
1026
|
url: "/v2/presentables/catalogues/" + presentableId,
|
|
1220
1027
|
data: params
|
|
1221
1028
|
});
|
|
1222
1029
|
}
|
|
1223
|
-
function addItemsToPresentableCollection(
|
|
1224
|
-
var presentableId =
|
|
1225
|
-
params = _objectWithoutPropertiesLoose(
|
|
1030
|
+
function addItemsToPresentableCollection(_ref13) {
|
|
1031
|
+
var presentableId = _ref13.presentableId,
|
|
1032
|
+
params = _objectWithoutPropertiesLoose(_ref13, _excluded11);
|
|
1226
1033
|
return FUtil.Request({
|
|
1227
1034
|
method: 'POST',
|
|
1228
1035
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1229
1036
|
data: params
|
|
1230
1037
|
});
|
|
1231
1038
|
}
|
|
1232
|
-
function removeItemsFromPresentableCollection(
|
|
1233
|
-
var presentableId =
|
|
1234
|
-
params = _objectWithoutPropertiesLoose(
|
|
1039
|
+
function removeItemsFromPresentableCollection(_ref14) {
|
|
1040
|
+
var presentableId = _ref14.presentableId,
|
|
1041
|
+
params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
|
|
1235
1042
|
return FUtil.Request({
|
|
1236
1043
|
method: 'DELETE',
|
|
1237
1044
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1238
1045
|
params: params
|
|
1239
1046
|
});
|
|
1240
1047
|
}
|
|
1241
|
-
function getItemsFromPresentableCollection(
|
|
1242
|
-
var presentableId =
|
|
1243
|
-
params = _objectWithoutPropertiesLoose(
|
|
1048
|
+
function getItemsFromPresentableCollection(_ref15) {
|
|
1049
|
+
var presentableId = _ref15.presentableId,
|
|
1050
|
+
params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
|
|
1244
1051
|
return FUtil.Request({
|
|
1245
1052
|
method: 'GET',
|
|
1246
1053
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1247
1054
|
params: params
|
|
1248
1055
|
});
|
|
1249
1056
|
}
|
|
1250
|
-
function getItemsFromPresentableCollectionIsExist(
|
|
1251
|
-
var presentableId =
|
|
1252
|
-
params = _objectWithoutPropertiesLoose(
|
|
1057
|
+
function getItemsFromPresentableCollectionIsExist(_ref16) {
|
|
1058
|
+
var presentableId = _ref16.presentableId,
|
|
1059
|
+
params = _objectWithoutPropertiesLoose(_ref16, _excluded14);
|
|
1253
1060
|
return FUtil.Request({
|
|
1254
1061
|
method: 'GET',
|
|
1255
1062
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/checkExists",
|
|
1256
1063
|
params: params
|
|
1257
1064
|
});
|
|
1258
1065
|
}
|
|
1259
|
-
function setItemsSortFromPresentableCollectionManual(
|
|
1260
|
-
var presentableId =
|
|
1261
|
-
params = _objectWithoutPropertiesLoose(
|
|
1066
|
+
function setItemsSortFromPresentableCollectionManual(_ref17) {
|
|
1067
|
+
var presentableId = _ref17.presentableId,
|
|
1068
|
+
params = _objectWithoutPropertiesLoose(_ref17, _excluded15);
|
|
1262
1069
|
return FUtil.Request({
|
|
1263
1070
|
method: 'PUT',
|
|
1264
1071
|
url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
|
|
1265
1072
|
data: params
|
|
1266
1073
|
});
|
|
1267
1074
|
}
|
|
1268
|
-
function setItemsSortFromPresentableCollectionQuick(
|
|
1269
|
-
var presentableId =
|
|
1270
|
-
params = _objectWithoutPropertiesLoose(
|
|
1075
|
+
function setItemsSortFromPresentableCollectionQuick(_ref18) {
|
|
1076
|
+
var presentableId = _ref18.presentableId,
|
|
1077
|
+
params = _objectWithoutPropertiesLoose(_ref18, _excluded16);
|
|
1271
1078
|
return FUtil.Request({
|
|
1272
1079
|
method: 'PUT',
|
|
1273
1080
|
url: "/v2/presentables/catalogues/" + presentableId + "/reorder",
|
|
1274
1081
|
data: params
|
|
1275
1082
|
});
|
|
1276
1083
|
}
|
|
1277
|
-
function getItemsAutoCollectRule(
|
|
1278
|
-
var presentableId =
|
|
1084
|
+
function getItemsAutoCollectRule(_ref19) {
|
|
1085
|
+
var presentableId = _ref19.presentableId;
|
|
1279
1086
|
return FUtil.Request({
|
|
1280
1087
|
method: 'GET',
|
|
1281
1088
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules"
|
|
1282
1089
|
});
|
|
1283
1090
|
}
|
|
1284
|
-
function setItemsAutoCollectRule(
|
|
1285
|
-
var presentableId =
|
|
1286
|
-
params = _objectWithoutPropertiesLoose(
|
|
1091
|
+
function setItemsAutoCollectRule(_ref20) {
|
|
1092
|
+
var presentableId = _ref20.presentableId,
|
|
1093
|
+
params = _objectWithoutPropertiesLoose(_ref20, _excluded17);
|
|
1287
1094
|
return FUtil.Request({
|
|
1288
1095
|
method: 'POST',
|
|
1289
1096
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules",
|
|
1290
1097
|
data: params
|
|
1291
1098
|
});
|
|
1292
1099
|
}
|
|
1293
|
-
function getItemsFromPresentableCollections(
|
|
1294
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1100
|
+
function getItemsFromPresentableCollections(_ref21) {
|
|
1101
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref21), _ref21));
|
|
1295
1102
|
return FUtil.Request({
|
|
1296
1103
|
method: 'GET',
|
|
1297
1104
|
// url: `/v2/presentables/catalogues/items/batch/list?presentableIds=685cf423e1502e002fe3053b&limit=1&sortType=-1&sortField=createDate`,
|
|
@@ -1553,16 +1360,16 @@ function clearUserNodeData(_ref9) {
|
|
|
1553
1360
|
data: params
|
|
1554
1361
|
});
|
|
1555
1362
|
}
|
|
1556
|
-
function filesListInfo(
|
|
1557
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1363
|
+
function filesListInfo(_ref0) {
|
|
1364
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref0), _ref0));
|
|
1558
1365
|
return FUtil.Request({
|
|
1559
1366
|
method: 'GET',
|
|
1560
1367
|
url: "/v2/storages/files/list/info",
|
|
1561
1368
|
params: params
|
|
1562
1369
|
});
|
|
1563
1370
|
}
|
|
1564
|
-
function filesInfo(
|
|
1565
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1371
|
+
function filesInfo(_ref1) {
|
|
1372
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref1), _ref1));
|
|
1566
1373
|
return FUtil.Request({
|
|
1567
1374
|
method: 'GET',
|
|
1568
1375
|
url: "/v2/storages/files/info",
|
|
@@ -1659,6 +1466,8 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1659
1466
|
_excluded7$2 = ["fileSha1"],
|
|
1660
1467
|
_excluded8$1 = ["fileSha1"],
|
|
1661
1468
|
_excluded9$1 = ["resourceId"],
|
|
1469
|
+
_excluded0$1 = ["resourceId"],
|
|
1470
|
+
_excluded1$1 = ["resourceId"],
|
|
1662
1471
|
_excluded10$1 = ["resourceId"],
|
|
1663
1472
|
_excluded11$1 = ["resourceId"],
|
|
1664
1473
|
_excluded12$1 = ["resourceId"],
|
|
@@ -1667,16 +1476,14 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1667
1476
|
_excluded15$1 = ["resourceId"],
|
|
1668
1477
|
_excluded16$1 = ["resourceId"],
|
|
1669
1478
|
_excluded17$1 = ["resourceId"],
|
|
1670
|
-
_excluded18
|
|
1671
|
-
_excluded19
|
|
1479
|
+
_excluded18 = ["resourceId"],
|
|
1480
|
+
_excluded19 = ["resourceId"],
|
|
1672
1481
|
_excluded20 = ["resourceId"],
|
|
1673
1482
|
_excluded21 = ["resourceId"],
|
|
1674
1483
|
_excluded22 = ["resourceId"],
|
|
1675
|
-
_excluded23 = ["resourceId"],
|
|
1484
|
+
_excluded23 = ["resourceId", "itemId"],
|
|
1676
1485
|
_excluded24 = ["resourceId"],
|
|
1677
|
-
_excluded25 = ["resourceId"
|
|
1678
|
-
_excluded26 = ["resourceId"],
|
|
1679
|
-
_excluded27 = ["resourceId"];
|
|
1486
|
+
_excluded25 = ["resourceId"];
|
|
1680
1487
|
function create$1(params) {
|
|
1681
1488
|
return FUtil.Request({
|
|
1682
1489
|
method: 'POST',
|
|
@@ -1846,8 +1653,8 @@ function lookDraft(params) {
|
|
|
1846
1653
|
params: params
|
|
1847
1654
|
});
|
|
1848
1655
|
}
|
|
1849
|
-
function deleteResourceDraft(
|
|
1850
|
-
var resourceId =
|
|
1656
|
+
function deleteResourceDraft(_ref0) {
|
|
1657
|
+
var resourceId = _ref0.resourceId;
|
|
1851
1658
|
// return FUtil.Axios.post(`/v2/resources/${params.resourceId}/versions/drafts`, params);
|
|
1852
1659
|
return FUtil.Request({
|
|
1853
1660
|
method: 'DELETE',
|
|
@@ -1870,9 +1677,9 @@ function resourcesDownload(params) {
|
|
|
1870
1677
|
// responseType: 'arraybuffer',
|
|
1871
1678
|
// });
|
|
1872
1679
|
}
|
|
1873
|
-
function batchGetCoverageVersions(
|
|
1874
|
-
var resourceId =
|
|
1875
|
-
params = _objectWithoutPropertiesLoose(
|
|
1680
|
+
function batchGetCoverageVersions(_ref1) {
|
|
1681
|
+
var resourceId = _ref1.resourceId,
|
|
1682
|
+
params = _objectWithoutPropertiesLoose(_ref1, _excluded9$1);
|
|
1876
1683
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/contracts/coverageVersions`, {
|
|
1877
1684
|
// params,
|
|
1878
1685
|
// });
|
|
@@ -1889,9 +1696,9 @@ function resolveResources(params) {
|
|
|
1889
1696
|
url: "/v2/resources/" + params.resourceId + "/resolveResources"
|
|
1890
1697
|
});
|
|
1891
1698
|
}
|
|
1892
|
-
function batchSetContracts(
|
|
1893
|
-
var resourceId =
|
|
1894
|
-
params = _objectWithoutPropertiesLoose(
|
|
1699
|
+
function batchSetContracts(_ref10) {
|
|
1700
|
+
var resourceId = _ref10.resourceId,
|
|
1701
|
+
params = _objectWithoutPropertiesLoose(_ref10, _excluded0$1);
|
|
1895
1702
|
// return FUtil.Axios.put(`/v2/resources/${resourceId}/versions/batchSetContracts`, params);
|
|
1896
1703
|
return FUtil.Request({
|
|
1897
1704
|
method: 'PUT',
|
|
@@ -1899,9 +1706,9 @@ function batchSetContracts(_ref12) {
|
|
|
1899
1706
|
data: params
|
|
1900
1707
|
});
|
|
1901
1708
|
}
|
|
1902
|
-
function cycleDependencyCheck$1(
|
|
1903
|
-
var resourceId =
|
|
1904
|
-
params = _objectWithoutPropertiesLoose(
|
|
1709
|
+
function cycleDependencyCheck$1(_ref11) {
|
|
1710
|
+
var resourceId = _ref11.resourceId,
|
|
1711
|
+
params = _objectWithoutPropertiesLoose(_ref11, _excluded1$1);
|
|
1905
1712
|
// return FUtil.Axios.post(`/v2/resources/${resourceId}/versions/cycleDependencyCheck`, params);
|
|
1906
1713
|
return FUtil.Request({
|
|
1907
1714
|
method: 'POST',
|
|
@@ -1909,9 +1716,9 @@ function cycleDependencyCheck$1(_ref13) {
|
|
|
1909
1716
|
data: params
|
|
1910
1717
|
});
|
|
1911
1718
|
}
|
|
1912
|
-
function relationTree$1(
|
|
1913
|
-
var resourceId =
|
|
1914
|
-
params = _objectWithoutPropertiesLoose(
|
|
1719
|
+
function relationTree$1(_ref12) {
|
|
1720
|
+
var resourceId = _ref12.resourceId,
|
|
1721
|
+
params = _objectWithoutPropertiesLoose(_ref12, _excluded10$1);
|
|
1915
1722
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
|
|
1916
1723
|
// params,
|
|
1917
1724
|
// });
|
|
@@ -1921,41 +1728,41 @@ function relationTree$1(_ref14) {
|
|
|
1921
1728
|
params: params
|
|
1922
1729
|
});
|
|
1923
1730
|
}
|
|
1924
|
-
function relationTreeAuth(
|
|
1925
|
-
var resourceId =
|
|
1926
|
-
params = _objectWithoutPropertiesLoose(
|
|
1731
|
+
function relationTreeAuth(_ref13) {
|
|
1732
|
+
var resourceId = _ref13.resourceId,
|
|
1733
|
+
params = _objectWithoutPropertiesLoose(_ref13, _excluded11$1);
|
|
1927
1734
|
return FUtil.Request({
|
|
1928
1735
|
method: 'GET',
|
|
1929
1736
|
url: "/v2/auths/resources/" + resourceId + "/relationTreeAuth",
|
|
1930
1737
|
params: params
|
|
1931
1738
|
});
|
|
1932
1739
|
}
|
|
1933
|
-
function resourcesCount(
|
|
1934
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1740
|
+
function resourcesCount(_ref14) {
|
|
1741
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref14), _ref14));
|
|
1935
1742
|
return FUtil.Request({
|
|
1936
1743
|
method: 'GET',
|
|
1937
1744
|
url: "/v2/resources/count",
|
|
1938
1745
|
params: params
|
|
1939
1746
|
});
|
|
1940
1747
|
}
|
|
1941
|
-
function batchAuth$1(
|
|
1942
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1748
|
+
function batchAuth$1(_ref15) {
|
|
1749
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref15), _ref15));
|
|
1943
1750
|
return FUtil.Request({
|
|
1944
1751
|
method: 'GET',
|
|
1945
1752
|
url: "/v2/auths/resources/batchAuth/results",
|
|
1946
1753
|
params: params
|
|
1947
1754
|
});
|
|
1948
1755
|
}
|
|
1949
|
-
function resourcesRecommend(
|
|
1950
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1756
|
+
function resourcesRecommend(_ref16) {
|
|
1757
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref16), _ref16));
|
|
1951
1758
|
return FUtil.Request({
|
|
1952
1759
|
method: 'GET',
|
|
1953
1760
|
url: "/v2/resources/recommend",
|
|
1954
1761
|
params: params
|
|
1955
1762
|
});
|
|
1956
1763
|
}
|
|
1957
|
-
function availableTags(
|
|
1958
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1764
|
+
function availableTags(_ref17) {
|
|
1765
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref17), _ref17));
|
|
1959
1766
|
return FUtil.Request({
|
|
1960
1767
|
method: 'GET',
|
|
1961
1768
|
url: "/v2/resources/tags/availableTags",
|
|
@@ -1963,32 +1770,32 @@ function availableTags(_ref19) {
|
|
|
1963
1770
|
});
|
|
1964
1771
|
}
|
|
1965
1772
|
function resourceTypes$1(_temp) {
|
|
1966
|
-
var
|
|
1967
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
1773
|
+
var _ref18 = _temp === void 0 ? {} : _temp,
|
|
1774
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref18), _ref18));
|
|
1968
1775
|
return FUtil.Request({
|
|
1969
1776
|
method: 'GET',
|
|
1970
1777
|
url: "/v2/resources/types/listSimpleByGroup",
|
|
1971
1778
|
params: params
|
|
1972
1779
|
});
|
|
1973
1780
|
}
|
|
1974
|
-
function ListSimpleByParentCode(
|
|
1975
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1781
|
+
function ListSimpleByParentCode(_ref19) {
|
|
1782
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref19), _ref19));
|
|
1976
1783
|
return FUtil.Request({
|
|
1977
1784
|
method: 'GET',
|
|
1978
1785
|
url: "/v2/resources/types/listSimpleByParentCode",
|
|
1979
1786
|
params: params
|
|
1980
1787
|
});
|
|
1981
1788
|
}
|
|
1982
|
-
function getResourceTypeInfoByCode(
|
|
1983
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1789
|
+
function getResourceTypeInfoByCode(_ref20) {
|
|
1790
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref20), _ref20));
|
|
1984
1791
|
return FUtil.Request({
|
|
1985
1792
|
method: 'GET',
|
|
1986
1793
|
url: "/v2/resources/types/getInfoByCode",
|
|
1987
1794
|
params: params
|
|
1988
1795
|
});
|
|
1989
1796
|
}
|
|
1990
|
-
function getResourceAttrListSimple(
|
|
1991
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1797
|
+
function getResourceAttrListSimple(_ref21) {
|
|
1798
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref21), _ref21));
|
|
1992
1799
|
return FUtil.Request({
|
|
1993
1800
|
method: 'GET',
|
|
1994
1801
|
url: "/v2/resources/attrs/listSimple",
|
|
@@ -1996,24 +1803,24 @@ function getResourceAttrListSimple(_ref23) {
|
|
|
1996
1803
|
});
|
|
1997
1804
|
}
|
|
1998
1805
|
function listSimple4Recently(_temp2) {
|
|
1999
|
-
var
|
|
2000
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
1806
|
+
var _ref22 = _temp2 === void 0 ? {} : _temp2,
|
|
1807
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref22), _ref22));
|
|
2001
1808
|
return FUtil.Request({
|
|
2002
1809
|
method: 'GET',
|
|
2003
1810
|
url: "/v2/resources/types/listSimple4Recently",
|
|
2004
1811
|
params: params
|
|
2005
1812
|
});
|
|
2006
1813
|
}
|
|
2007
|
-
function getAttrsInfoByKey(
|
|
2008
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1814
|
+
function getAttrsInfoByKey(_ref23) {
|
|
1815
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref23), _ref23));
|
|
2009
1816
|
return FUtil.Request({
|
|
2010
1817
|
method: 'GET',
|
|
2011
1818
|
url: "/v2/resources/attrs/getInfoByKey",
|
|
2012
1819
|
params: params
|
|
2013
1820
|
});
|
|
2014
1821
|
}
|
|
2015
|
-
function generateResourceNames(
|
|
2016
|
-
var resourceNames =
|
|
1822
|
+
function generateResourceNames(_ref24) {
|
|
1823
|
+
var resourceNames = _ref24.resourceNames;
|
|
2017
1824
|
return FUtil.Request({
|
|
2018
1825
|
method: 'POST',
|
|
2019
1826
|
url: "/v2/resources/generateResourceNames",
|
|
@@ -2022,165 +1829,165 @@ function generateResourceNames(_ref26) {
|
|
|
2022
1829
|
}
|
|
2023
1830
|
});
|
|
2024
1831
|
}
|
|
2025
|
-
function updateCollection(
|
|
2026
|
-
var resourceId =
|
|
2027
|
-
params = _objectWithoutPropertiesLoose(
|
|
1832
|
+
function updateCollection(_ref25) {
|
|
1833
|
+
var resourceId = _ref25.resourceId,
|
|
1834
|
+
params = _objectWithoutPropertiesLoose(_ref25, _excluded12$1);
|
|
2028
1835
|
return FUtil.Request({
|
|
2029
1836
|
method: 'PUT',
|
|
2030
1837
|
url: "/v2/resources/catalogue/" + resourceId,
|
|
2031
1838
|
data: params
|
|
2032
1839
|
});
|
|
2033
1840
|
}
|
|
2034
|
-
function deleteCollectionUnitResource(
|
|
2035
|
-
var resourceId =
|
|
2036
|
-
removeCollectionItemIds =
|
|
1841
|
+
function deleteCollectionUnitResource(_ref26) {
|
|
1842
|
+
var resourceId = _ref26.resourceId,
|
|
1843
|
+
removeCollectionItemIds = _ref26.removeCollectionItemIds;
|
|
2037
1844
|
return FUtil.Request({
|
|
2038
1845
|
method: 'DELETE',
|
|
2039
1846
|
url: "/v2/resources/catalogue/" + resourceId + "?removeCollectionItemIds=" + removeCollectionItemIds.join(',')
|
|
2040
1847
|
});
|
|
2041
1848
|
}
|
|
2042
|
-
function getCollectionItems(
|
|
2043
|
-
var resourceId =
|
|
2044
|
-
params = _objectWithoutPropertiesLoose(
|
|
1849
|
+
function getCollectionItems(_ref27) {
|
|
1850
|
+
var resourceId = _ref27.resourceId,
|
|
1851
|
+
params = _objectWithoutPropertiesLoose(_ref27, _excluded13$1);
|
|
2045
1852
|
return FUtil.Request({
|
|
2046
1853
|
method: 'GET',
|
|
2047
1854
|
url: "/v2/resources/catalogue/" + resourceId + "/items",
|
|
2048
1855
|
params: params
|
|
2049
1856
|
});
|
|
2050
1857
|
}
|
|
2051
|
-
function getCollectionItems_Draft(
|
|
2052
|
-
var resourceId =
|
|
2053
|
-
params = _objectWithoutPropertiesLoose(
|
|
1858
|
+
function getCollectionItems_Draft(_ref28) {
|
|
1859
|
+
var resourceId = _ref28.resourceId,
|
|
1860
|
+
params = _objectWithoutPropertiesLoose(_ref28, _excluded14$1);
|
|
2054
1861
|
return FUtil.Request({
|
|
2055
1862
|
method: 'GET',
|
|
2056
1863
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items",
|
|
2057
1864
|
params: params
|
|
2058
1865
|
});
|
|
2059
1866
|
}
|
|
2060
|
-
function setCollectionItemSort(
|
|
2061
|
-
var resourceId =
|
|
2062
|
-
params = _objectWithoutPropertiesLoose(
|
|
1867
|
+
function setCollectionItemSort(_ref29) {
|
|
1868
|
+
var resourceId = _ref29.resourceId,
|
|
1869
|
+
params = _objectWithoutPropertiesLoose(_ref29, _excluded15$1);
|
|
2063
1870
|
return FUtil.Request({
|
|
2064
1871
|
method: 'PUT',
|
|
2065
1872
|
url: "/v2/resources/catalogue/" + resourceId + "/manualSort",
|
|
2066
1873
|
data: params
|
|
2067
1874
|
});
|
|
2068
1875
|
}
|
|
2069
|
-
function reorderCollectionItemsSort(
|
|
2070
|
-
var resourceId =
|
|
2071
|
-
params = _objectWithoutPropertiesLoose(
|
|
1876
|
+
function reorderCollectionItemsSort(_ref30) {
|
|
1877
|
+
var resourceId = _ref30.resourceId,
|
|
1878
|
+
params = _objectWithoutPropertiesLoose(_ref30, _excluded16$1);
|
|
2072
1879
|
return FUtil.Request({
|
|
2073
1880
|
method: 'PUT',
|
|
2074
1881
|
url: "/v2/resources/catalogue/" + resourceId + "/reorder",
|
|
2075
1882
|
data: params
|
|
2076
1883
|
});
|
|
2077
1884
|
}
|
|
2078
|
-
function checkExistCollectionItems(
|
|
2079
|
-
var resourceId =
|
|
2080
|
-
params = _objectWithoutPropertiesLoose(
|
|
1885
|
+
function checkExistCollectionItems(_ref31) {
|
|
1886
|
+
var resourceId = _ref31.resourceId,
|
|
1887
|
+
params = _objectWithoutPropertiesLoose(_ref31, _excluded17$1);
|
|
2081
1888
|
return FUtil.Request({
|
|
2082
1889
|
method: 'GET',
|
|
2083
1890
|
url: "/v2/resources/catalogue/" + resourceId + "/items/checkExists",
|
|
2084
1891
|
params: params
|
|
2085
1892
|
});
|
|
2086
1893
|
}
|
|
2087
|
-
function getCollectionItemsAuth(
|
|
2088
|
-
var resourceId =
|
|
2089
|
-
params = _objectWithoutPropertiesLoose(
|
|
1894
|
+
function getCollectionItemsAuth(_ref32) {
|
|
1895
|
+
var resourceId = _ref32.resourceId,
|
|
1896
|
+
params = _objectWithoutPropertiesLoose(_ref32, _excluded18);
|
|
2090
1897
|
return FUtil.Request({
|
|
2091
1898
|
method: 'GET',
|
|
2092
1899
|
url: "/v2/auths/resources/" + resourceId + "/items/batchAuth",
|
|
2093
1900
|
params: params
|
|
2094
1901
|
});
|
|
2095
1902
|
}
|
|
2096
|
-
function batchResourceItems(
|
|
2097
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1903
|
+
function batchResourceItems(_ref33) {
|
|
1904
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref33), _ref33));
|
|
2098
1905
|
return FUtil.Request({
|
|
2099
1906
|
method: 'GET',
|
|
2100
1907
|
url: "/v2/resources/catalogue/items/batch/list",
|
|
2101
1908
|
params: params
|
|
2102
1909
|
});
|
|
2103
1910
|
}
|
|
2104
|
-
function batchResourceItems_Draft(
|
|
2105
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1911
|
+
function batchResourceItems_Draft(_ref34) {
|
|
1912
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref34), _ref34));
|
|
2106
1913
|
return FUtil.Request({
|
|
2107
1914
|
method: 'GET',
|
|
2108
1915
|
url: "/v2/resources/catalogues/drafts/items/batch/list",
|
|
2109
1916
|
params: params
|
|
2110
1917
|
});
|
|
2111
1918
|
}
|
|
2112
|
-
function getCollectionUpdateLogs(
|
|
2113
|
-
var resourceId =
|
|
2114
|
-
params = _objectWithoutPropertiesLoose(
|
|
1919
|
+
function getCollectionUpdateLogs(_ref35) {
|
|
1920
|
+
var resourceId = _ref35.resourceId,
|
|
1921
|
+
params = _objectWithoutPropertiesLoose(_ref35, _excluded19);
|
|
2115
1922
|
return FUtil.Request({
|
|
2116
1923
|
method: 'GET',
|
|
2117
1924
|
url: "/v2/resources/catalogue/" + resourceId + "/updateLogs",
|
|
2118
1925
|
params: params
|
|
2119
1926
|
});
|
|
2120
1927
|
}
|
|
2121
|
-
function getCollectionCollectRules(
|
|
2122
|
-
var resourceId =
|
|
1928
|
+
function getCollectionCollectRules(_ref36) {
|
|
1929
|
+
var resourceId = _ref36.resourceId;
|
|
2123
1930
|
return FUtil.Request({
|
|
2124
1931
|
method: 'GET',
|
|
2125
1932
|
url: "/v2/resources/catalogue/" + resourceId + "/items/collectRules"
|
|
2126
1933
|
});
|
|
2127
1934
|
}
|
|
2128
|
-
function setCollectRules(
|
|
2129
|
-
var resourceId =
|
|
2130
|
-
params = _objectWithoutPropertiesLoose(
|
|
1935
|
+
function setCollectRules(_ref37) {
|
|
1936
|
+
var resourceId = _ref37.resourceId,
|
|
1937
|
+
params = _objectWithoutPropertiesLoose(_ref37, _excluded20);
|
|
2131
1938
|
return FUtil.Request({
|
|
2132
1939
|
method: 'POST',
|
|
2133
1940
|
url: "/v2/resources/catalogue/" + resourceId + "/items/collectRules",
|
|
2134
1941
|
data: params
|
|
2135
1942
|
});
|
|
2136
1943
|
}
|
|
2137
|
-
function setItemsTitle(
|
|
2138
|
-
var resourceId =
|
|
2139
|
-
data =
|
|
1944
|
+
function setItemsTitle(_ref38) {
|
|
1945
|
+
var resourceId = _ref38.resourceId,
|
|
1946
|
+
data = _ref38.data;
|
|
2140
1947
|
return FUtil.Request({
|
|
2141
1948
|
method: 'PUT',
|
|
2142
1949
|
url: "/v2/resources/catalogue/" + resourceId + "/items",
|
|
2143
1950
|
data: data
|
|
2144
1951
|
});
|
|
2145
1952
|
}
|
|
2146
|
-
function deleteCollectionItems_Draft(
|
|
2147
|
-
var resourceId =
|
|
2148
|
-
removeCollectionItemIds =
|
|
1953
|
+
function deleteCollectionItems_Draft(_ref39) {
|
|
1954
|
+
var resourceId = _ref39.resourceId,
|
|
1955
|
+
removeCollectionItemIds = _ref39.removeCollectionItemIds;
|
|
2149
1956
|
return FUtil.Request({
|
|
2150
1957
|
method: 'DELETE',
|
|
2151
1958
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items?removeCollectionItemIds=" + removeCollectionItemIds.join(',')
|
|
2152
1959
|
});
|
|
2153
1960
|
}
|
|
2154
|
-
function setCollectionItemsSortID_Draft(
|
|
2155
|
-
var resourceId =
|
|
2156
|
-
data =
|
|
1961
|
+
function setCollectionItemsSortID_Draft(_ref40) {
|
|
1962
|
+
var resourceId = _ref40.resourceId,
|
|
1963
|
+
data = _ref40.data;
|
|
2157
1964
|
return FUtil.Request({
|
|
2158
1965
|
method: 'PUT',
|
|
2159
1966
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/manualSort",
|
|
2160
1967
|
data: data
|
|
2161
1968
|
});
|
|
2162
1969
|
}
|
|
2163
|
-
function reorderCollectionItems_Draft(
|
|
2164
|
-
var resourceId =
|
|
2165
|
-
params = _objectWithoutPropertiesLoose(
|
|
1970
|
+
function reorderCollectionItems_Draft(_ref41) {
|
|
1971
|
+
var resourceId = _ref41.resourceId,
|
|
1972
|
+
params = _objectWithoutPropertiesLoose(_ref41, _excluded21);
|
|
2166
1973
|
return FUtil.Request({
|
|
2167
1974
|
method: 'PUT',
|
|
2168
1975
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/reorder",
|
|
2169
1976
|
data: params
|
|
2170
1977
|
});
|
|
2171
1978
|
}
|
|
2172
|
-
function resourceIsExistInItems_Draft(
|
|
2173
|
-
var resourceId =
|
|
2174
|
-
params = _objectWithoutPropertiesLoose(
|
|
1979
|
+
function resourceIsExistInItems_Draft(_ref42) {
|
|
1980
|
+
var resourceId = _ref42.resourceId,
|
|
1981
|
+
params = _objectWithoutPropertiesLoose(_ref42, _excluded22);
|
|
2175
1982
|
return FUtil.Request({
|
|
2176
1983
|
method: 'GET',
|
|
2177
1984
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items/checkExists",
|
|
2178
1985
|
params: params
|
|
2179
1986
|
});
|
|
2180
1987
|
}
|
|
2181
|
-
function updateCollectionItemsInfo_Draft(
|
|
2182
|
-
var resourceId =
|
|
2183
|
-
data =
|
|
1988
|
+
function updateCollectionItemsInfo_Draft(_ref43) {
|
|
1989
|
+
var resourceId = _ref43.resourceId,
|
|
1990
|
+
data = _ref43.data;
|
|
2184
1991
|
return FUtil.Request({
|
|
2185
1992
|
method: 'PUT',
|
|
2186
1993
|
// url: `/v2/resources/catalogue/${resourceId}/items`,
|
|
@@ -2188,10 +1995,10 @@ function updateCollectionItemsInfo_Draft(_ref45) {
|
|
|
2188
1995
|
data: data
|
|
2189
1996
|
});
|
|
2190
1997
|
}
|
|
2191
|
-
function updateCollectionItemAuthorization_Draft(
|
|
2192
|
-
var resourceId =
|
|
2193
|
-
itemId =
|
|
2194
|
-
data = _objectWithoutPropertiesLoose(
|
|
1998
|
+
function updateCollectionItemAuthorization_Draft(_ref44) {
|
|
1999
|
+
var resourceId = _ref44.resourceId,
|
|
2000
|
+
itemId = _ref44.itemId,
|
|
2001
|
+
data = _objectWithoutPropertiesLoose(_ref44, _excluded23);
|
|
2195
2002
|
return FUtil.Request({
|
|
2196
2003
|
method: 'PUT',
|
|
2197
2004
|
// url: `/v2/resources/catalogues/${resourceId}/items/${itemId}`,
|
|
@@ -2199,18 +2006,18 @@ function updateCollectionItemAuthorization_Draft(_ref46) {
|
|
|
2199
2006
|
data: data
|
|
2200
2007
|
});
|
|
2201
2008
|
}
|
|
2202
|
-
function addResourceItems_Draft(
|
|
2203
|
-
var resourceId =
|
|
2204
|
-
params = _objectWithoutPropertiesLoose(
|
|
2009
|
+
function addResourceItems_Draft(_ref45) {
|
|
2010
|
+
var resourceId = _ref45.resourceId,
|
|
2011
|
+
params = _objectWithoutPropertiesLoose(_ref45, _excluded24);
|
|
2205
2012
|
return FUtil.Request({
|
|
2206
2013
|
method: 'POST',
|
|
2207
2014
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items",
|
|
2208
2015
|
data: params
|
|
2209
2016
|
});
|
|
2210
2017
|
}
|
|
2211
|
-
function getCollectionItemsAuth_Draft(
|
|
2212
|
-
var resourceId =
|
|
2213
|
-
params = _objectWithoutPropertiesLoose(
|
|
2018
|
+
function getCollectionItemsAuth_Draft(_ref46) {
|
|
2019
|
+
var resourceId = _ref46.resourceId,
|
|
2020
|
+
params = _objectWithoutPropertiesLoose(_ref46, _excluded25);
|
|
2214
2021
|
return FUtil.Request({
|
|
2215
2022
|
method: 'GET',
|
|
2216
2023
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items/batchAuth",
|
|
@@ -2506,8 +2313,8 @@ var _excluded$5 = ["nodeId"],
|
|
|
2506
2313
|
_excluded7$3 = ["testResourceId"],
|
|
2507
2314
|
_excluded8$2 = ["nodeId"],
|
|
2508
2315
|
_excluded9$2 = ["nodeId"],
|
|
2509
|
-
|
|
2510
|
-
|
|
2316
|
+
_excluded0$2 = ["nodeId"],
|
|
2317
|
+
_excluded1$2 = ["nodeId"];
|
|
2511
2318
|
function testResources(_ref) {
|
|
2512
2319
|
var nodeId = _ref.nodeId,
|
|
2513
2320
|
params = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
@@ -2589,25 +2396,25 @@ function testResourcesDependencyTree(_ref9) {
|
|
|
2589
2396
|
url: "/v2/testNodes/testResources/" + testResourceId + "/dependencyTree"
|
|
2590
2397
|
});
|
|
2591
2398
|
}
|
|
2592
|
-
function testResourcesAuthTree(
|
|
2593
|
-
var testResourceId =
|
|
2399
|
+
function testResourcesAuthTree(_ref0) {
|
|
2400
|
+
var testResourceId = _ref0.testResourceId;
|
|
2594
2401
|
// return FUtil.Axios.get(`/v2/testNodes/testResources/${testResourceId}`);
|
|
2595
2402
|
return FUtil.Request({
|
|
2596
2403
|
method: 'GET',
|
|
2597
2404
|
url: "/v2/testNodes/testResources/" + testResourceId + "/authTree"
|
|
2598
2405
|
});
|
|
2599
2406
|
}
|
|
2600
|
-
function testResourceDetails(
|
|
2601
|
-
var testResourceId =
|
|
2407
|
+
function testResourceDetails(_ref1) {
|
|
2408
|
+
var testResourceId = _ref1.testResourceId;
|
|
2602
2409
|
// return FUtil.Axios.get(`/v2/testNodes/testResources/${testResourceId}`);
|
|
2603
2410
|
return FUtil.Request({
|
|
2604
2411
|
method: 'GET',
|
|
2605
2412
|
url: "/v2/testNodes/testResources/" + testResourceId
|
|
2606
2413
|
});
|
|
2607
2414
|
}
|
|
2608
|
-
function searchTestResourcesByDependency(
|
|
2609
|
-
var nodeId =
|
|
2610
|
-
params = _objectWithoutPropertiesLoose(
|
|
2415
|
+
function searchTestResourcesByDependency(_ref10) {
|
|
2416
|
+
var nodeId = _ref10.nodeId,
|
|
2417
|
+
params = _objectWithoutPropertiesLoose(_ref10, _excluded8$2);
|
|
2611
2418
|
// return FUtil.Axios.get(`/v2/testNodes/${nodeId}/testResources/searchByDependency`, {
|
|
2612
2419
|
// params,
|
|
2613
2420
|
// });
|
|
@@ -2617,27 +2424,27 @@ function searchTestResourcesByDependency(_ref12) {
|
|
|
2617
2424
|
params: params
|
|
2618
2425
|
});
|
|
2619
2426
|
}
|
|
2620
|
-
function rulesRematch(
|
|
2621
|
-
var nodeId =
|
|
2622
|
-
params = _objectWithoutPropertiesLoose(
|
|
2427
|
+
function rulesRematch(_ref11) {
|
|
2428
|
+
var nodeId = _ref11.nodeId,
|
|
2429
|
+
params = _objectWithoutPropertiesLoose(_ref11, _excluded9$2);
|
|
2623
2430
|
return FUtil.Request({
|
|
2624
2431
|
method: 'POST',
|
|
2625
2432
|
url: "/v2/testNodes/" + nodeId + "/rules/rematch",
|
|
2626
2433
|
data: params
|
|
2627
2434
|
});
|
|
2628
2435
|
}
|
|
2629
|
-
function rulesPreExecution(
|
|
2630
|
-
var nodeId =
|
|
2631
|
-
params = _objectWithoutPropertiesLoose(
|
|
2436
|
+
function rulesPreExecution(_ref12) {
|
|
2437
|
+
var nodeId = _ref12.nodeId,
|
|
2438
|
+
params = _objectWithoutPropertiesLoose(_ref12, _excluded0$2);
|
|
2632
2439
|
return FUtil.Request({
|
|
2633
2440
|
method: 'POST',
|
|
2634
2441
|
url: "/v2/testNodes/" + nodeId + "/rules/preExecution",
|
|
2635
2442
|
data: params
|
|
2636
2443
|
});
|
|
2637
2444
|
}
|
|
2638
|
-
function batchGetAuths(
|
|
2639
|
-
var nodeId =
|
|
2640
|
-
params = _objectWithoutPropertiesLoose(
|
|
2445
|
+
function batchGetAuths(_ref13) {
|
|
2446
|
+
var nodeId = _ref13.nodeId,
|
|
2447
|
+
params = _objectWithoutPropertiesLoose(_ref13, _excluded1$2);
|
|
2641
2448
|
return FUtil.Request({
|
|
2642
2449
|
method: 'GET',
|
|
2643
2450
|
url: "/v2/auths/exhibits/" + nodeId + "/test/batchAuth/results",
|
|
@@ -3202,6 +3009,13 @@ function policyTemplates(params) {
|
|
|
3202
3009
|
params: params
|
|
3203
3010
|
});
|
|
3204
3011
|
}
|
|
3012
|
+
function policyReCompile(data) {
|
|
3013
|
+
return FUtil.Request({
|
|
3014
|
+
method: 'POST',
|
|
3015
|
+
url: "/v2/translate/reCompile",
|
|
3016
|
+
data: data
|
|
3017
|
+
});
|
|
3018
|
+
}
|
|
3205
3019
|
function policyTranslation(_ref) {
|
|
3206
3020
|
var contract = _ref.contract;
|
|
3207
3021
|
return FUtil.Request({
|
|
@@ -3225,6 +3039,7 @@ var Policy = {
|
|
|
3225
3039
|
policies: policies,
|
|
3226
3040
|
policiesList: policiesList,
|
|
3227
3041
|
policyTemplates: policyTemplates,
|
|
3042
|
+
policyReCompile: policyReCompile,
|
|
3228
3043
|
policyTranslation: policyTranslation,
|
|
3229
3044
|
policyTransferTranslation: policyTransferTranslation
|
|
3230
3045
|
};
|
|
@@ -3239,38 +3054,35 @@ function getSHA1Hash(file) {
|
|
|
3239
3054
|
return new Promise(function (resolve) {
|
|
3240
3055
|
var reader = new FileReader();
|
|
3241
3056
|
reader.readAsArrayBuffer(file);
|
|
3242
|
-
reader.onload = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3057
|
+
reader.onload = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3243
3058
|
var sha1;
|
|
3244
|
-
return
|
|
3245
|
-
while (1) switch (_context.
|
|
3059
|
+
return _regenerator().w(function (_context) {
|
|
3060
|
+
while (1) switch (_context.n) {
|
|
3246
3061
|
case 0:
|
|
3247
3062
|
if (reader.result) {
|
|
3248
|
-
_context.
|
|
3063
|
+
_context.n = 1;
|
|
3249
3064
|
break;
|
|
3250
3065
|
}
|
|
3251
3066
|
resolve('');
|
|
3252
|
-
return _context.
|
|
3253
|
-
case
|
|
3067
|
+
return _context.a(2, '');
|
|
3068
|
+
case 1:
|
|
3254
3069
|
if (!(typeof reader.result === 'string')) {
|
|
3255
|
-
_context.
|
|
3070
|
+
_context.n = 2;
|
|
3256
3071
|
break;
|
|
3257
3072
|
}
|
|
3258
3073
|
resolve('');
|
|
3259
|
-
return _context.
|
|
3260
|
-
case
|
|
3261
|
-
_context.
|
|
3074
|
+
return _context.a(2, '');
|
|
3075
|
+
case 2:
|
|
3076
|
+
_context.n = 3;
|
|
3262
3077
|
return self.crypto.subtle.digest('SHA-1', reader.result).then(function (a) {
|
|
3263
3078
|
return Array.from(new Uint8Array(a)).map(function (a) {
|
|
3264
3079
|
return a.toString(16).padStart(2, '0');
|
|
3265
3080
|
}).join('');
|
|
3266
3081
|
});
|
|
3267
|
-
case
|
|
3268
|
-
sha1 = _context.
|
|
3082
|
+
case 3:
|
|
3083
|
+
sha1 = _context.v;
|
|
3269
3084
|
resolve(sha1);
|
|
3270
|
-
return _context.
|
|
3271
|
-
case 11:
|
|
3272
|
-
case "end":
|
|
3273
|
-
return _context.stop();
|
|
3085
|
+
return _context.a(2, '');
|
|
3274
3086
|
}
|
|
3275
3087
|
}, _callee);
|
|
3276
3088
|
}));
|
|
@@ -3361,10 +3173,10 @@ function getFilesSha1Info(_x, _x2) {
|
|
|
3361
3173
|
return _getFilesSha1Info.apply(this, arguments);
|
|
3362
3174
|
}
|
|
3363
3175
|
function _getFilesSha1Info() {
|
|
3364
|
-
_getFilesSha1Info = _asyncToGenerator(/*#__PURE__*/
|
|
3176
|
+
_getFilesSha1Info = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref, cdPartially) {
|
|
3365
3177
|
var sha1, resourceTypeCode, delay, needHandleSha1, allData, _yield$Storage$filesL, ret, errCode, data, msg, finishedInfo;
|
|
3366
|
-
return
|
|
3367
|
-
while (1) switch (_context.
|
|
3178
|
+
return _regenerator().w(function (_context) {
|
|
3179
|
+
while (1) switch (_context.n) {
|
|
3368
3180
|
case 0:
|
|
3369
3181
|
sha1 = _ref.sha1, resourceTypeCode = _ref.resourceTypeCode;
|
|
3370
3182
|
if (cdPartially === void 0) {
|
|
@@ -3373,31 +3185,31 @@ function _getFilesSha1Info() {
|
|
|
3373
3185
|
};
|
|
3374
3186
|
}
|
|
3375
3187
|
if (!(sha1.length === 0)) {
|
|
3376
|
-
_context.
|
|
3188
|
+
_context.n = 1;
|
|
3377
3189
|
break;
|
|
3378
3190
|
}
|
|
3379
|
-
return _context.
|
|
3191
|
+
return _context.a(2, {
|
|
3380
3192
|
error: '',
|
|
3381
3193
|
result: []
|
|
3382
3194
|
});
|
|
3383
|
-
case
|
|
3195
|
+
case 1:
|
|
3384
3196
|
delay = 500;
|
|
3385
3197
|
needHandleSha1 = [].concat(sha1);
|
|
3386
3198
|
allData = [];
|
|
3387
|
-
case
|
|
3388
|
-
_context.
|
|
3199
|
+
case 2:
|
|
3200
|
+
_context.n = 3;
|
|
3389
3201
|
return filesListInfo({
|
|
3390
3202
|
sha1: needHandleSha1.join(','),
|
|
3391
3203
|
resourceTypeCode: resourceTypeCode
|
|
3392
3204
|
});
|
|
3393
|
-
case
|
|
3394
|
-
_yield$Storage$filesL = _context.
|
|
3205
|
+
case 3:
|
|
3206
|
+
_yield$Storage$filesL = _context.v;
|
|
3395
3207
|
ret = _yield$Storage$filesL.ret;
|
|
3396
3208
|
errCode = _yield$Storage$filesL.errCode;
|
|
3397
3209
|
data = _yield$Storage$filesL.data;
|
|
3398
3210
|
msg = _yield$Storage$filesL.msg;
|
|
3399
3211
|
if (!(ret !== 0 || errCode !== 0)) {
|
|
3400
|
-
_context.
|
|
3212
|
+
_context.n = 4;
|
|
3401
3213
|
break;
|
|
3402
3214
|
}
|
|
3403
3215
|
console.log({
|
|
@@ -3406,11 +3218,11 @@ function _getFilesSha1Info() {
|
|
|
3406
3218
|
data: data,
|
|
3407
3219
|
msg: msg
|
|
3408
3220
|
}, '09iowksdjaklfjs;oalijflskdjflsdkjflkj');
|
|
3409
|
-
return _context.
|
|
3221
|
+
return _context.a(2, {
|
|
3410
3222
|
error: msg,
|
|
3411
3223
|
result: allData
|
|
3412
3224
|
});
|
|
3413
|
-
case
|
|
3225
|
+
case 4:
|
|
3414
3226
|
needHandleSha1 = data.filter(function (d) {
|
|
3415
3227
|
return d.metaAnalyzeStatus === 0 || d.metaAnalyzeStatus === 1;
|
|
3416
3228
|
}).map(function (d) {
|
|
@@ -3437,24 +3249,21 @@ function _getFilesSha1Info() {
|
|
|
3437
3249
|
cdPartially && cdPartially(finishedInfo);
|
|
3438
3250
|
allData = [].concat(allData, finishedInfo);
|
|
3439
3251
|
if (!(needHandleSha1.length === 0)) {
|
|
3440
|
-
_context.
|
|
3252
|
+
_context.n = 5;
|
|
3441
3253
|
break;
|
|
3442
3254
|
}
|
|
3443
|
-
return _context.
|
|
3444
|
-
case
|
|
3445
|
-
_context.
|
|
3255
|
+
return _context.a(3, 7);
|
|
3256
|
+
case 5:
|
|
3257
|
+
_context.n = 6;
|
|
3446
3258
|
return promiseSleep(delay);
|
|
3447
|
-
case
|
|
3448
|
-
_context.
|
|
3259
|
+
case 6:
|
|
3260
|
+
_context.n = 2;
|
|
3449
3261
|
break;
|
|
3450
|
-
case
|
|
3451
|
-
return _context.
|
|
3262
|
+
case 7:
|
|
3263
|
+
return _context.a(2, {
|
|
3452
3264
|
error: '',
|
|
3453
3265
|
result: allData
|
|
3454
3266
|
});
|
|
3455
|
-
case 29:
|
|
3456
|
-
case "end":
|
|
3457
|
-
return _context.stop();
|
|
3458
3267
|
}
|
|
3459
3268
|
}, _callee);
|
|
3460
3269
|
}));
|
|
@@ -3644,39 +3453,36 @@ function request(_x, _x2) {
|
|
|
3644
3453
|
return _request.apply(this, arguments);
|
|
3645
3454
|
}
|
|
3646
3455
|
function _request() {
|
|
3647
|
-
_request = _asyncToGenerator(/*#__PURE__*/
|
|
3456
|
+
_request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, _temp) {
|
|
3648
3457
|
var _ref, _ref$noRedirect, noRedirect, _ref$noErrorAlert, noErrorAlert, result;
|
|
3649
|
-
return
|
|
3650
|
-
while (1) switch (_context.
|
|
3458
|
+
return _regenerator().w(function (_context) {
|
|
3459
|
+
while (1) switch (_context.n) {
|
|
3651
3460
|
case 0:
|
|
3652
3461
|
_ref = _temp === void 0 ? {} : _temp, _ref$noRedirect = _ref.noRedirect, noRedirect = _ref$noRedirect === void 0 ? false : _ref$noRedirect, _ref$noErrorAlert = _ref.noErrorAlert, noErrorAlert = _ref$noErrorAlert === void 0 ? false : _ref$noErrorAlert;
|
|
3653
|
-
_context.
|
|
3462
|
+
_context.n = 1;
|
|
3654
3463
|
return axios.request(config);
|
|
3655
|
-
case
|
|
3656
|
-
result = _context.
|
|
3464
|
+
case 1:
|
|
3465
|
+
result = _context.v;
|
|
3657
3466
|
if (!(result.errCode === 30 && !noRedirect)) {
|
|
3658
|
-
_context.
|
|
3467
|
+
_context.n = 3;
|
|
3659
3468
|
break;
|
|
3660
3469
|
}
|
|
3661
|
-
_context.
|
|
3470
|
+
_context.n = 2;
|
|
3662
3471
|
return FServiceAPI.User.logout();
|
|
3663
|
-
case
|
|
3472
|
+
case 2:
|
|
3664
3473
|
window.location.replace("" + completeUrlByDomain('user') + login({
|
|
3665
3474
|
goTo: window.location.href
|
|
3666
3475
|
}));
|
|
3667
|
-
_context.
|
|
3476
|
+
_context.n = 4;
|
|
3668
3477
|
break;
|
|
3669
|
-
case
|
|
3478
|
+
case 3:
|
|
3670
3479
|
if (result.ret === 4 && result.errCode === 10 && !noRedirect) {
|
|
3671
3480
|
window.location.replace("" + completeUrlByDomain('user') + userFreeze({
|
|
3672
3481
|
goTo: window.location.href
|
|
3673
3482
|
}));
|
|
3674
3483
|
}
|
|
3675
|
-
case
|
|
3676
|
-
return _context.
|
|
3677
|
-
case 12:
|
|
3678
|
-
case "end":
|
|
3679
|
-
return _context.stop();
|
|
3484
|
+
case 4:
|
|
3485
|
+
return _context.a(2, result);
|
|
3680
3486
|
}
|
|
3681
3487
|
}, _callee);
|
|
3682
3488
|
}));
|
|
@@ -3741,11 +3547,11 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3741
3547
|
}
|
|
3742
3548
|
var _proto = I18nNext.prototype;
|
|
3743
3549
|
_proto.ready = /*#__PURE__*/function () {
|
|
3744
|
-
var _ready = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3550
|
+
var _ready = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
3745
3551
|
var _this = this;
|
|
3746
3552
|
var exc, handleTasks, promise;
|
|
3747
|
-
return
|
|
3748
|
-
while (1) switch (_context2.
|
|
3553
|
+
return _regenerator().w(function (_context2) {
|
|
3554
|
+
while (1) switch (_context2.n) {
|
|
3749
3555
|
case 0:
|
|
3750
3556
|
exc = function exc() {
|
|
3751
3557
|
while (_this._taskQueue.length > 0) {
|
|
@@ -3754,33 +3560,32 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3754
3560
|
}
|
|
3755
3561
|
};
|
|
3756
3562
|
handleTasks = /*#__PURE__*/function () {
|
|
3757
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
3758
|
-
return
|
|
3759
|
-
while (1) switch (_context.
|
|
3563
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3564
|
+
return _regenerator().w(function (_context) {
|
|
3565
|
+
while (1) switch (_context.n) {
|
|
3760
3566
|
case 0:
|
|
3761
3567
|
if (!(_this._loadingData === 'End')) {
|
|
3762
|
-
_context.
|
|
3568
|
+
_context.n = 1;
|
|
3763
3569
|
break;
|
|
3764
3570
|
}
|
|
3765
3571
|
exc();
|
|
3766
|
-
return _context.
|
|
3767
|
-
case
|
|
3572
|
+
return _context.a(2);
|
|
3573
|
+
case 1:
|
|
3768
3574
|
if (!(_this._loadingData === 'Start')) {
|
|
3769
|
-
_context.
|
|
3575
|
+
_context.n = 2;
|
|
3770
3576
|
break;
|
|
3771
3577
|
}
|
|
3772
|
-
return _context.
|
|
3773
|
-
case
|
|
3578
|
+
return _context.a(2);
|
|
3579
|
+
case 2:
|
|
3774
3580
|
// NO_START
|
|
3775
3581
|
_this._loadingData = 'Start';
|
|
3776
|
-
_context.
|
|
3582
|
+
_context.n = 3;
|
|
3777
3583
|
return _this._handleData();
|
|
3778
|
-
case
|
|
3584
|
+
case 3:
|
|
3779
3585
|
// console.log('######');
|
|
3780
3586
|
exc();
|
|
3781
|
-
case
|
|
3782
|
-
|
|
3783
|
-
return _context.stop();
|
|
3587
|
+
case 4:
|
|
3588
|
+
return _context.a(2);
|
|
3784
3589
|
}
|
|
3785
3590
|
}, _callee);
|
|
3786
3591
|
}));
|
|
@@ -3792,10 +3597,7 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3792
3597
|
_this._taskQueue.push(resolve);
|
|
3793
3598
|
});
|
|
3794
3599
|
handleTasks();
|
|
3795
|
-
return _context2.
|
|
3796
|
-
case 5:
|
|
3797
|
-
case "end":
|
|
3798
|
-
return _context2.stop();
|
|
3600
|
+
return _context2.a(2, promise);
|
|
3799
3601
|
}
|
|
3800
3602
|
}, _callee2);
|
|
3801
3603
|
}));
|
|
@@ -3825,28 +3627,28 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3825
3627
|
return this._currentLanguage;
|
|
3826
3628
|
};
|
|
3827
3629
|
_proto._handleData = /*#__PURE__*/function () {
|
|
3828
|
-
var _handleData2 = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3630
|
+
var _handleData2 = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
3829
3631
|
var lng, resource, i18nextResources;
|
|
3830
|
-
return
|
|
3831
|
-
while (1) switch (_context3.
|
|
3632
|
+
return _regenerator().w(function (_context3) {
|
|
3633
|
+
while (1) switch (_context3.n) {
|
|
3832
3634
|
case 0:
|
|
3833
3635
|
lng = this._currentLanguage;
|
|
3834
3636
|
resource = window.localStorage.getItem(localStorage_i18nextResources_key); // const resource: string | undefined = Cookies.get(decodeURIComponent(localStorage_i18nextResources_key));
|
|
3835
3637
|
i18nextResources = resource ? JSON.parse(resource) : null;
|
|
3836
3638
|
if (i18nextResources) {
|
|
3837
|
-
_context3.
|
|
3639
|
+
_context3.n = 2;
|
|
3838
3640
|
break;
|
|
3839
3641
|
}
|
|
3840
|
-
_context3.
|
|
3642
|
+
_context3.n = 1;
|
|
3841
3643
|
return this._fetchData();
|
|
3842
|
-
case
|
|
3843
|
-
i18nextResources = _context3.
|
|
3844
|
-
_context3.
|
|
3644
|
+
case 1:
|
|
3645
|
+
i18nextResources = _context3.v;
|
|
3646
|
+
_context3.n = 3;
|
|
3845
3647
|
break;
|
|
3846
|
-
case
|
|
3648
|
+
case 2:
|
|
3847
3649
|
this._fetchData();
|
|
3848
|
-
case
|
|
3849
|
-
_context3.
|
|
3650
|
+
case 3:
|
|
3651
|
+
_context3.n = 4;
|
|
3850
3652
|
return i18next.init({
|
|
3851
3653
|
// the translations
|
|
3852
3654
|
// (tip move them in a JSON file and import them,
|
|
@@ -3860,11 +3662,10 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3860
3662
|
suffix: '}'
|
|
3861
3663
|
}
|
|
3862
3664
|
});
|
|
3863
|
-
case
|
|
3665
|
+
case 4:
|
|
3864
3666
|
this._loadingData = 'End';
|
|
3865
|
-
case
|
|
3866
|
-
|
|
3867
|
-
return _context3.stop();
|
|
3667
|
+
case 5:
|
|
3668
|
+
return _context3.a(2);
|
|
3868
3669
|
}
|
|
3869
3670
|
}, _callee3, this);
|
|
3870
3671
|
}));
|
|
@@ -3874,18 +3675,18 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3874
3675
|
return _handleData;
|
|
3875
3676
|
}();
|
|
3876
3677
|
_proto._fetchData = /*#__PURE__*/function () {
|
|
3877
|
-
var _fetchData2 = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3678
|
+
var _fetchData2 = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
3878
3679
|
var url, res, en_US, zh_CN, _i, _Object$entries, _Object$entries$_i, key, value, result;
|
|
3879
|
-
return
|
|
3880
|
-
while (1) switch (_context4.
|
|
3680
|
+
return _regenerator().w(function (_context4) {
|
|
3681
|
+
while (1) switch (_context4.n) {
|
|
3881
3682
|
case 0:
|
|
3882
3683
|
url = window.location.origin.includes('.freelog.com') ? ossJsonUrl : ossJsonUrl_Test;
|
|
3883
|
-
_context4.
|
|
3684
|
+
_context4.n = 1;
|
|
3884
3685
|
return axios.get(url + '?timestamp=' + Date.now(), {
|
|
3885
3686
|
withCredentials: false
|
|
3886
3687
|
});
|
|
3887
|
-
case
|
|
3888
|
-
res = _context4.
|
|
3688
|
+
case 1:
|
|
3689
|
+
res = _context4.v;
|
|
3889
3690
|
// console.log(res, 'data09oiw3qjelsfkdfjlsdkfjl');
|
|
3890
3691
|
en_US = {};
|
|
3891
3692
|
zh_CN = {};
|
|
@@ -3904,10 +3705,7 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3904
3705
|
}
|
|
3905
3706
|
};
|
|
3906
3707
|
window.localStorage.setItem(localStorage_i18nextResources_key, JSON.stringify(result));
|
|
3907
|
-
return _context4.
|
|
3908
|
-
case 10:
|
|
3909
|
-
case "end":
|
|
3910
|
-
return _context4.stop();
|
|
3708
|
+
return _context4.a(2, result);
|
|
3911
3709
|
}
|
|
3912
3710
|
}, _callee4);
|
|
3913
3711
|
}));
|