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