@nmshd/transport 1.1.10 → 1.2.0
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/buildInformation.js +5 -5
- package/dist/core/ProgressReporter.d.ts +18 -0
- package/dist/core/ProgressReporter.js +45 -0
- package/dist/core/ProgressReporter.js.map +1 -0
- package/dist/core/backbone/Paginator.d.ts +7 -1
- package/dist/core/backbone/Paginator.js +25 -1
- package/dist/core/backbone/Paginator.js.map +1 -1
- package/dist/core/backbone/RESTClient.d.ts +2 -2
- package/dist/core/backbone/RESTClient.js +4 -4
- package/dist/core/backbone/RESTClient.js.map +1 -1
- package/dist/core/backbone/RESTClientAuthenticate.d.ts +2 -2
- package/dist/core/backbone/RESTClientAuthenticate.js +2 -2
- package/dist/core/backbone/RESTClientAuthenticate.js.map +1 -1
- package/dist/core/backbone/index.js +5 -1
- package/dist/core/backbone/index.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +6 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/types/index.js +5 -1
- package/dist/core/types/index.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/accounts/AccountController.d.ts +3 -2
- package/dist/modules/accounts/AccountController.js +7 -4
- package/dist/modules/accounts/AccountController.js.map +1 -1
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +8 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.d.ts +3 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.js +14 -1
- package/dist/modules/sync/DatawalletModificationsProcessor.js.map +1 -1
- package/dist/modules/sync/ExternalEventsProcessor.d.ts +3 -1
- package/dist/modules/sync/ExternalEventsProcessor.js +6 -1
- package/dist/modules/sync/ExternalEventsProcessor.js.map +1 -1
- package/dist/modules/sync/SyncCallback.d.ts +17 -0
- package/dist/modules/sync/SyncCallback.js +25 -0
- package/dist/modules/sync/SyncCallback.js.map +1 -0
- package/dist/modules/sync/SyncController.d.ts +6 -4
- package/dist/modules/sync/SyncController.js +55 -31
- package/dist/modules/sync/SyncController.js.map +1 -1
- package/dist/modules/sync/backbone/SyncClient.d.ts +5 -5
- package/dist/modules/sync/backbone/SyncClient.js +4 -4
- package/dist/modules/sync/backbone/SyncClient.js.map +1 -1
- package/dist/util/index.js +5 -1
- package/dist/util/index.js.map +1 -1
- package/lib-web/nmshd.transport.js +329 -112
- package/lib-web/nmshd.transport.js.map +1 -1
- package/lib-web/nmshd.transport.min.js +1 -1
- package/lib-web/nmshd.transport.min.js.map +1 -1
- package/package.json +14 -14
|
@@ -15,11 +15,11 @@ exports.buildInformation = void 0;
|
|
|
15
15
|
const ts_serval_1 = __webpack_require__(/*! @js-soft/ts-serval */ "@js-soft/ts-serval");
|
|
16
16
|
const crypto_1 = __webpack_require__(/*! @nmshd/crypto */ "@nmshd/crypto");
|
|
17
17
|
exports.buildInformation = {
|
|
18
|
-
version: "1.
|
|
19
|
-
build: "
|
|
20
|
-
date: "2022-
|
|
21
|
-
commit: "
|
|
22
|
-
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/simple-logger":"1.0.1","@js-soft/ts-utils":"1.1.1","axios":"^0.26.
|
|
18
|
+
version: "1.2.0",
|
|
19
|
+
build: "23",
|
|
20
|
+
date: "2022-03-23T10:35:26+00:00",
|
|
21
|
+
commit: "102dd57cad9e2024fba66fb75b70a6360a350b0d",
|
|
22
|
+
dependencies: {"@js-soft/docdb-access-abstractions":"1.0.1","@js-soft/logging-abstractions":"1.0.0","@js-soft/simple-logger":"1.0.1","@js-soft/ts-utils":"1.1.1","axios":"^0.26.1","deep-equal":"^2.0.5","fast-json-patch":"^3.1.0","form-data":"^4.0.0","json-stringify-safe":"^5.0.1","lodash":"^4.17.21","luxon":"^2.3.1","qs":"^6.10.3","reflect-metadata":"^0.1.13","ts-simple-nameof":"^1.3.1","uuid":"^8.3.2"},
|
|
23
23
|
libraries: {
|
|
24
24
|
crypto: crypto_1.buildInformation,
|
|
25
25
|
serval: ts_serval_1.buildInformation
|
|
@@ -585,6 +585,61 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
585
585
|
|
|
586
586
|
/***/ }),
|
|
587
587
|
|
|
588
|
+
/***/ "./dist/core/ProgressReporter.js":
|
|
589
|
+
/*!***************************************!*\
|
|
590
|
+
!*** ./dist/core/ProgressReporter.js ***!
|
|
591
|
+
\***************************************/
|
|
592
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
593
|
+
|
|
594
|
+
"use strict";
|
|
595
|
+
|
|
596
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
597
|
+
exports.ProgressReporterStep = exports.ProgressReporter = void 0;
|
|
598
|
+
class ProgressReporter {
|
|
599
|
+
constructor(callback) {
|
|
600
|
+
this.callback = callback;
|
|
601
|
+
}
|
|
602
|
+
createStep(stepName, totalNumberOfItemsInStep = -1) {
|
|
603
|
+
return new ProgressReporterStep(stepName, totalNumberOfItemsInStep, this.callback);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
exports.ProgressReporter = ProgressReporter;
|
|
607
|
+
class ProgressReporterStep {
|
|
608
|
+
constructor(name, totalNumberOfItems, callback) {
|
|
609
|
+
this.name = name;
|
|
610
|
+
this.totalNumberOfItems = totalNumberOfItems;
|
|
611
|
+
this.callback = callback;
|
|
612
|
+
if (totalNumberOfItems > 0)
|
|
613
|
+
this.progressTo(0);
|
|
614
|
+
}
|
|
615
|
+
progress() {
|
|
616
|
+
this.progressTo(this.currentItem + 1);
|
|
617
|
+
}
|
|
618
|
+
progressTo(itemIndex) {
|
|
619
|
+
var _a;
|
|
620
|
+
this.currentItem = itemIndex;
|
|
621
|
+
(_a = this.callback) === null || _a === void 0 ? void 0 : _a.call(this, Math.round((itemIndex / this.totalNumberOfItems) * 100), this.name);
|
|
622
|
+
}
|
|
623
|
+
incrementTotalNumberOfItems() {
|
|
624
|
+
this.updateTotalNumberOfItems(this.totalNumberOfItems + 1);
|
|
625
|
+
}
|
|
626
|
+
updateTotalNumberOfItems(newValue) {
|
|
627
|
+
this.totalNumberOfItems = newValue;
|
|
628
|
+
}
|
|
629
|
+
finish() {
|
|
630
|
+
if (this.currentItem < this.totalNumberOfItems)
|
|
631
|
+
this.progressTo(this.totalNumberOfItems);
|
|
632
|
+
}
|
|
633
|
+
manualReport(percentage) {
|
|
634
|
+
var _a;
|
|
635
|
+
(_a = this.callback) === null || _a === void 0 ? void 0 : _a.call(this, percentage, this.name);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
exports.ProgressReporterStep = ProgressReporterStep;
|
|
639
|
+
//# sourceMappingURL=ProgressReporter.js.map
|
|
640
|
+
|
|
641
|
+
/***/ }),
|
|
642
|
+
|
|
588
643
|
/***/ "./dist/core/Transport.js":
|
|
589
644
|
/*!********************************!*\
|
|
590
645
|
!*** ./dist/core/Transport.js ***!
|
|
@@ -1398,11 +1453,15 @@ exports.ClientResult = ClientResult;
|
|
|
1398
1453
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1399
1454
|
exports.Paginator = void 0;
|
|
1400
1455
|
class Paginator {
|
|
1401
|
-
constructor(currentPage, paginationProperties, dataSource) {
|
|
1456
|
+
constructor(currentPage, paginationProperties, dataSource, progessCallback) {
|
|
1402
1457
|
this.currentPage = currentPage;
|
|
1403
1458
|
this.paginationProperties = paginationProperties;
|
|
1404
1459
|
this.dataSource = dataSource;
|
|
1460
|
+
this.progessCallback = progessCallback;
|
|
1405
1461
|
this.currentItemIndex = 0;
|
|
1462
|
+
this.processedItemCount = 0;
|
|
1463
|
+
if (progessCallback)
|
|
1464
|
+
progessCallback(0);
|
|
1406
1465
|
}
|
|
1407
1466
|
hasNext() {
|
|
1408
1467
|
return this.hasNextPage() || this.currentItemIndex < this.currentPage.length;
|
|
@@ -1413,8 +1472,19 @@ class Paginator {
|
|
|
1413
1472
|
this.currentItemIndex = 0;
|
|
1414
1473
|
this.currentPage = await this.nextPage();
|
|
1415
1474
|
}
|
|
1475
|
+
this.processedItemCount++;
|
|
1476
|
+
this.sendProgess();
|
|
1416
1477
|
return this.currentPage[this.currentItemIndex++];
|
|
1417
1478
|
}
|
|
1479
|
+
sendProgess() {
|
|
1480
|
+
if (!this.progessCallback)
|
|
1481
|
+
return;
|
|
1482
|
+
if (this.processedItemCount === this.paginationProperties.totalRecords)
|
|
1483
|
+
return this.progessCallback(100);
|
|
1484
|
+
if (this.processedItemCount % 10 !== 0)
|
|
1485
|
+
return;
|
|
1486
|
+
this.progessCallback(Math.round((this.processedItemCount / this.paginationProperties.totalRecords) * 100));
|
|
1487
|
+
}
|
|
1418
1488
|
hasNextPage() {
|
|
1419
1489
|
return this.paginationProperties.pageNumber < this.paginationProperties.totalPages;
|
|
1420
1490
|
}
|
|
@@ -1424,9 +1494,12 @@ class Paginator {
|
|
|
1424
1494
|
return response;
|
|
1425
1495
|
}
|
|
1426
1496
|
async collect() {
|
|
1497
|
+
var _a, _b;
|
|
1427
1498
|
const collection = this.currentPage;
|
|
1499
|
+
(_a = this.progessCallback) === null || _a === void 0 ? void 0 : _a.call(this, this.pagePercentage);
|
|
1428
1500
|
while (this.hasNextPage()) {
|
|
1429
1501
|
collection.push(...(await this.nextPage()));
|
|
1502
|
+
(_b = this.progessCallback) === null || _b === void 0 ? void 0 : _b.call(this, this.pagePercentage);
|
|
1430
1503
|
}
|
|
1431
1504
|
return collection;
|
|
1432
1505
|
}
|
|
@@ -1435,6 +1508,12 @@ class Paginator {
|
|
|
1435
1508
|
next: async () => this.hasNext() ? { value: await this.next(), done: false } : { value: undefined, done: true }
|
|
1436
1509
|
};
|
|
1437
1510
|
}
|
|
1511
|
+
get pagePercentage() {
|
|
1512
|
+
return Math.round((this.paginationProperties.pageNumber / this.paginationProperties.totalPages) * 100);
|
|
1513
|
+
}
|
|
1514
|
+
get totalRecords() {
|
|
1515
|
+
return this.paginationProperties.totalRecords;
|
|
1516
|
+
}
|
|
1438
1517
|
}
|
|
1439
1518
|
exports.Paginator = Paginator;
|
|
1440
1519
|
//# sourceMappingURL=Paginator.js.map
|
|
@@ -1646,7 +1725,7 @@ class RESTClient {
|
|
|
1646
1725
|
}
|
|
1647
1726
|
return ClientResult_1.ClientResult.ok(response.data.result, platformParameters);
|
|
1648
1727
|
}
|
|
1649
|
-
getPaginator(path, response, requestId, args) {
|
|
1728
|
+
getPaginator(path, response, requestId, args, progessCallback) {
|
|
1650
1729
|
var _a, _b;
|
|
1651
1730
|
const platformParameters = {
|
|
1652
1731
|
requestTime: response.headers["x-request-time"],
|
|
@@ -1691,7 +1770,7 @@ class RESTClient {
|
|
|
1691
1770
|
};
|
|
1692
1771
|
}
|
|
1693
1772
|
const paginationDataSource = new RestPaginationDataSource(this, path, args);
|
|
1694
|
-
const paginator = new Paginator_1.Paginator(response.data.result, response.data.pagination, paginationDataSource);
|
|
1773
|
+
const paginator = new Paginator_1.Paginator(response.data.result, response.data.pagination, paginationDataSource, progessCallback);
|
|
1695
1774
|
return ClientResult_1.ClientResult.ok(paginator, platformParameters);
|
|
1696
1775
|
}
|
|
1697
1776
|
async get(path, params = {}, config) {
|
|
@@ -1716,12 +1795,12 @@ class RESTClient {
|
|
|
1716
1795
|
return ClientResult_1.ClientResult.fail(err);
|
|
1717
1796
|
}
|
|
1718
1797
|
}
|
|
1719
|
-
async getPaged(path, params = {}, config) {
|
|
1798
|
+
async getPaged(path, params = {}, config, progessCallback) {
|
|
1720
1799
|
const id = await this.generateRequestId();
|
|
1721
1800
|
const conf = lodash_1.default.defaultsDeep({ params: params }, config, this.requestConfig);
|
|
1722
1801
|
try {
|
|
1723
1802
|
const response = await this.createAxios().get(path, conf);
|
|
1724
|
-
return this.getPaginator(path, response, id, params);
|
|
1803
|
+
return this.getPaginator(path, response, id, params, progessCallback);
|
|
1725
1804
|
}
|
|
1726
1805
|
catch (e) {
|
|
1727
1806
|
const err = RequestError_1.RequestError.fromAxiosError("GET", path, e, id);
|
|
@@ -1917,9 +1996,9 @@ class RESTClientAuthenticate extends RESTClient_1.RESTClient {
|
|
|
1917
1996
|
return await super.get(path, params, this.buildAuthenticatedConfig(token, config));
|
|
1918
1997
|
});
|
|
1919
1998
|
}
|
|
1920
|
-
async getPaged(path, params = {}, config = {}) {
|
|
1999
|
+
async getPaged(path, params = {}, config = {}, progessCallback) {
|
|
1921
2000
|
return await this.runAuthenticated(async (token) => {
|
|
1922
|
-
return await super.getPaged(path, params, this.buildAuthenticatedConfig(token, config));
|
|
2001
|
+
return await super.getPaged(path, params, this.buildAuthenticatedConfig(token, config), progessCallback);
|
|
1923
2002
|
});
|
|
1924
2003
|
}
|
|
1925
2004
|
async post(path, data, params = {}, config = {}) {
|
|
@@ -2078,7 +2157,11 @@ exports.RequestError = RequestError;
|
|
|
2078
2157
|
|
|
2079
2158
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2080
2159
|
if (k2 === undefined) k2 = k;
|
|
2081
|
-
Object.
|
|
2160
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2161
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2162
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2163
|
+
}
|
|
2164
|
+
Object.defineProperty(o, k2, desc);
|
|
2082
2165
|
}) : (function(o, m, k, k2) {
|
|
2083
2166
|
if (k2 === undefined) k2 = k;
|
|
2084
2167
|
o[k2] = m[k];
|
|
@@ -2108,7 +2191,11 @@ __exportStar(__webpack_require__(/*! ./RESTClientAuthenticate */ "./dist/core/ba
|
|
|
2108
2191
|
|
|
2109
2192
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2110
2193
|
if (k2 === undefined) k2 = k;
|
|
2111
|
-
Object.
|
|
2194
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2195
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2196
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2197
|
+
}
|
|
2198
|
+
Object.defineProperty(o, k2, desc);
|
|
2112
2199
|
}) : (function(o, m, k, k2) {
|
|
2113
2200
|
if (k2 === undefined) k2 = k;
|
|
2114
2201
|
o[k2] = m[k];
|
|
@@ -2126,6 +2213,7 @@ __exportStar(__webpack_require__(/*! ./CoreSerializableAsync */ "./dist/core/Cor
|
|
|
2126
2213
|
__exportStar(__webpack_require__(/*! ./CoreSynchronizable */ "./dist/core/CoreSynchronizable.js"), exports);
|
|
2127
2214
|
__exportStar(__webpack_require__(/*! ./CoreUtil */ "./dist/core/CoreUtil.js"), exports);
|
|
2128
2215
|
__exportStar(__webpack_require__(/*! ./DependencyOverrides */ "./dist/core/DependencyOverrides.js"), exports);
|
|
2216
|
+
__exportStar(__webpack_require__(/*! ./ProgressReporter */ "./dist/core/ProgressReporter.js"), exports);
|
|
2129
2217
|
__exportStar(__webpack_require__(/*! ./Transport */ "./dist/core/Transport.js"), exports);
|
|
2130
2218
|
__exportStar(__webpack_require__(/*! ./TransportContext */ "./dist/core/TransportContext.js"), exports);
|
|
2131
2219
|
__exportStar(__webpack_require__(/*! ./TransportController */ "./dist/core/TransportController.js"), exports);
|
|
@@ -2550,7 +2638,11 @@ var TransportVersion;
|
|
|
2550
2638
|
|
|
2551
2639
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2552
2640
|
if (k2 === undefined) k2 = k;
|
|
2553
|
-
Object.
|
|
2641
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2642
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2643
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2644
|
+
}
|
|
2645
|
+
Object.defineProperty(o, k2, desc);
|
|
2554
2646
|
}) : (function(o, m, k, k2) {
|
|
2555
2647
|
if (k2 === undefined) k2 = k;
|
|
2556
2648
|
o[k2] = m[k];
|
|
@@ -2578,7 +2670,11 @@ __exportStar(__webpack_require__(/*! ./TransportVersion */ "./dist/core/types/Tr
|
|
|
2578
2670
|
|
|
2579
2671
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2580
2672
|
if (k2 === undefined) k2 = k;
|
|
2581
|
-
Object.
|
|
2673
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
2674
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2675
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2676
|
+
}
|
|
2677
|
+
Object.defineProperty(o, k2, desc);
|
|
2582
2678
|
}) : (function(o, m, k, k2) {
|
|
2583
2679
|
if (k2 === undefined) k2 = k;
|
|
2584
2680
|
o[k2] = m[k];
|
|
@@ -2629,6 +2725,7 @@ const RelationshipsController_1 = __webpack_require__(/*! ../relationships/Relat
|
|
|
2629
2725
|
const RelationshipSecretController_1 = __webpack_require__(/*! ../relationships/RelationshipSecretController */ "./dist/modules/relationships/RelationshipSecretController.js");
|
|
2630
2726
|
const RelationshipTemplateController_1 = __webpack_require__(/*! ../relationshipTemplates/RelationshipTemplateController */ "./dist/modules/relationshipTemplates/RelationshipTemplateController.js");
|
|
2631
2727
|
const SecretController_1 = __webpack_require__(/*! ../secrets/SecretController */ "./dist/modules/secrets/SecretController.js");
|
|
2728
|
+
const SyncCallback_1 = __webpack_require__(/*! ../sync/SyncCallback */ "./dist/modules/sync/SyncCallback.js");
|
|
2632
2729
|
const SyncController_1 = __webpack_require__(/*! ../sync/SyncController */ "./dist/modules/sync/SyncController.js");
|
|
2633
2730
|
const SynchronizedCollection_1 = __webpack_require__(/*! ../sync/SynchronizedCollection */ "./dist/modules/sync/SynchronizedCollection.js");
|
|
2634
2731
|
const TokenController_1 = __webpack_require__(/*! ../tokens/TokenController */ "./dist/modules/tokens/TokenController.js");
|
|
@@ -2764,14 +2861,16 @@ class AccountController {
|
|
|
2764
2861
|
this.autoSync = true;
|
|
2765
2862
|
await this.syncDatawallet();
|
|
2766
2863
|
}
|
|
2767
|
-
async syncDatawallet(force = false) {
|
|
2864
|
+
async syncDatawallet(force = false, syncProgressCallback) {
|
|
2768
2865
|
if (!force && !this.autoSync) {
|
|
2769
2866
|
return;
|
|
2770
2867
|
}
|
|
2771
|
-
|
|
2868
|
+
const reporter = SyncCallback_1.SyncProgressReporter.fromCallback(syncProgressCallback);
|
|
2869
|
+
return await this.synchronization.sync("OnlyDatawallet", reporter);
|
|
2772
2870
|
}
|
|
2773
|
-
async syncEverything() {
|
|
2774
|
-
|
|
2871
|
+
async syncEverything(syncProgressCallback) {
|
|
2872
|
+
const reporter = SyncCallback_1.SyncProgressReporter.fromCallback(syncProgressCallback);
|
|
2873
|
+
return await this.synchronization.sync("Everything", reporter);
|
|
2775
2874
|
}
|
|
2776
2875
|
async getLastCompletedSyncTime() {
|
|
2777
2876
|
return await this.synchronization.getLastCompletedSyncTime();
|
|
@@ -5965,7 +6064,11 @@ exports.FileReference = FileReference;
|
|
|
5965
6064
|
|
|
5966
6065
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5967
6066
|
if (k2 === undefined) k2 = k;
|
|
5968
|
-
Object.
|
|
6067
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6068
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6069
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6070
|
+
}
|
|
6071
|
+
Object.defineProperty(o, k2, desc);
|
|
5969
6072
|
}) : (function(o, m, k, k2) {
|
|
5970
6073
|
if (k2 === undefined) k2 = k;
|
|
5971
6074
|
o[k2] = m[k];
|
|
@@ -5974,6 +6077,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
5974
6077
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5975
6078
|
};
|
|
5976
6079
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6080
|
+
exports.SyncStep = void 0;
|
|
5977
6081
|
__exportStar(__webpack_require__(/*! ./accounts/AccountController */ "./dist/modules/accounts/AccountController.js"), exports);
|
|
5978
6082
|
__exportStar(__webpack_require__(/*! ./accounts/backbone/IdentityClient */ "./dist/modules/accounts/backbone/IdentityClient.js"), exports);
|
|
5979
6083
|
__exportStar(__webpack_require__(/*! ./accounts/data/Identity */ "./dist/modules/accounts/data/Identity.js"), exports);
|
|
@@ -6078,6 +6182,8 @@ __exportStar(__webpack_require__(/*! ./sync/ChangedItems */ "./dist/modules/sync
|
|
|
6078
6182
|
__exportStar(__webpack_require__(/*! ./sync/DatawalletModificationsProcessor */ "./dist/modules/sync/DatawalletModificationsProcessor.js"), exports);
|
|
6079
6183
|
__exportStar(__webpack_require__(/*! ./sync/ExternalEventsProcessor */ "./dist/modules/sync/ExternalEventsProcessor.js"), exports);
|
|
6080
6184
|
__exportStar(__webpack_require__(/*! ./sync/local/DatawalletModification */ "./dist/modules/sync/local/DatawalletModification.js"), exports);
|
|
6185
|
+
var SyncCallback_1 = __webpack_require__(/*! ./sync/SyncCallback */ "./dist/modules/sync/SyncCallback.js");
|
|
6186
|
+
Object.defineProperty(exports, "SyncStep", ({ enumerable: true, get: function () { return SyncCallback_1.SyncStep; } }));
|
|
6081
6187
|
__exportStar(__webpack_require__(/*! ./sync/SyncController */ "./dist/modules/sync/SyncController.js"), exports);
|
|
6082
6188
|
__exportStar(__webpack_require__(/*! ./sync/SynchronizedCollection */ "./dist/modules/sync/SynchronizedCollection.js"), exports);
|
|
6083
6189
|
__exportStar(__webpack_require__(/*! ./tokens/AnonymousTokenController */ "./dist/modules/tokens/AnonymousTokenController.js"), exports);
|
|
@@ -9803,8 +9909,9 @@ const Relationship_1 = __webpack_require__(/*! ../relationships/local/Relationsh
|
|
|
9803
9909
|
const RelationshipTemplate_1 = __webpack_require__(/*! ../relationshipTemplates/local/RelationshipTemplate */ "./dist/modules/relationshipTemplates/local/RelationshipTemplate.js");
|
|
9804
9910
|
const Token_1 = __webpack_require__(/*! ../tokens/local/Token */ "./dist/modules/tokens/local/Token.js");
|
|
9805
9911
|
const DatawalletModification_1 = __webpack_require__(/*! ./local/DatawalletModification */ "./dist/modules/sync/local/DatawalletModification.js");
|
|
9912
|
+
const SyncCallback_1 = __webpack_require__(/*! ./SyncCallback */ "./dist/modules/sync/SyncCallback.js");
|
|
9806
9913
|
class DatawalletModificationsProcessor {
|
|
9807
|
-
constructor(modifications, cacheFetcher, collectionProvider, logger) {
|
|
9914
|
+
constructor(modifications, cacheFetcher, collectionProvider, logger, reporter) {
|
|
9808
9915
|
var _a, _b, _c, _d;
|
|
9809
9916
|
this.cacheFetcher = cacheFetcher;
|
|
9810
9917
|
this.collectionProvider = collectionProvider;
|
|
@@ -9821,12 +9928,17 @@ class DatawalletModificationsProcessor {
|
|
|
9821
9928
|
this.updates = (_b = modificationsGroupedByType[DatawalletModification_1.DatawalletModificationType.Update]) !== null && _b !== void 0 ? _b : [];
|
|
9822
9929
|
this.deletes = (_c = modificationsGroupedByType[DatawalletModification_1.DatawalletModificationType.Delete]) !== null && _c !== void 0 ? _c : [];
|
|
9823
9930
|
this.cacheChanges = (_d = modificationsGroupedByType[DatawalletModification_1.DatawalletModificationType.CacheChanged]) !== null && _d !== void 0 ? _d : [];
|
|
9931
|
+
const totalItems = this.creates.length + this.updates.length + this.deletes.length + this.cacheChanges.length;
|
|
9932
|
+
this.syncStep = reporter.createStep(SyncCallback_1.SyncStep.DatawalletSyncProcessing, totalItems);
|
|
9824
9933
|
}
|
|
9825
9934
|
async execute() {
|
|
9826
9935
|
await this.applyCreates();
|
|
9827
9936
|
await this.applyUpdates();
|
|
9828
9937
|
await this.applyCacheChanges();
|
|
9829
9938
|
await this.applyDeletes();
|
|
9939
|
+
// cache-fills are optimized by the backbone, so it is possible that the processedItemCount is
|
|
9940
|
+
// lower than the total number of items - in this case the 100% callback is triggered here
|
|
9941
|
+
this.syncStep.finish();
|
|
9830
9942
|
}
|
|
9831
9943
|
async applyCreates() {
|
|
9832
9944
|
if (this.creates.length === 0) {
|
|
@@ -9856,8 +9968,10 @@ class DatawalletModificationsProcessor {
|
|
|
9856
9968
|
objectIdentifier: core_1.CoreId.from(objectIdentifier)
|
|
9857
9969
|
});
|
|
9858
9970
|
this.cacheChanges.push(modification);
|
|
9971
|
+
this.syncStep.incrementTotalNumberOfItems();
|
|
9859
9972
|
}
|
|
9860
9973
|
await targetCollection.create(newObject);
|
|
9974
|
+
this.syncStep.progress();
|
|
9861
9975
|
}
|
|
9862
9976
|
}
|
|
9863
9977
|
async applyUpdates() {
|
|
@@ -9873,6 +9987,7 @@ class DatawalletModificationsProcessor {
|
|
|
9873
9987
|
const oldObject = await core_1.CoreSerializableAsync.fromUnknown(oldDoc);
|
|
9874
9988
|
const newObject = { ...oldObject.toJSON(), ...updateModification.payload };
|
|
9875
9989
|
await targetCollection.update(oldDoc, newObject);
|
|
9990
|
+
this.syncStep.progress();
|
|
9876
9991
|
}
|
|
9877
9992
|
}
|
|
9878
9993
|
async applyCacheChanges() {
|
|
@@ -9920,12 +10035,15 @@ class DatawalletModificationsProcessor {
|
|
|
9920
10035
|
return { fileIds, messageIds, relationshipTemplateIds: templateIds, tokenIds, relationshipIds };
|
|
9921
10036
|
}
|
|
9922
10037
|
async saveNewCaches(caches, collectionName, constructorOfT) {
|
|
10038
|
+
if (caches.length === 0)
|
|
10039
|
+
return;
|
|
9923
10040
|
const collection = await this.collectionProvider.getCollection(collectionName);
|
|
9924
10041
|
await Promise.all(caches.map(async (c) => {
|
|
9925
10042
|
const itemDoc = await collection.read(c.id.toString());
|
|
9926
10043
|
const item = await core_1.CoreSerializableAsync.fromT(itemDoc, constructorOfT);
|
|
9927
10044
|
item.setCache(c.cache);
|
|
9928
10045
|
await collection.update(itemDoc, item);
|
|
10046
|
+
this.syncStep.progress();
|
|
9929
10047
|
}));
|
|
9930
10048
|
}
|
|
9931
10049
|
async applyDeletes() {
|
|
@@ -9935,6 +10053,7 @@ class DatawalletModificationsProcessor {
|
|
|
9935
10053
|
for (const deleteModification of this.deletes) {
|
|
9936
10054
|
const targetCollection = await this.collectionProvider.getCollection(deleteModification.collection);
|
|
9937
10055
|
await targetCollection.delete({ id: deleteModification.objectIdentifier });
|
|
10056
|
+
this.syncStep.progress();
|
|
9938
10057
|
}
|
|
9939
10058
|
}
|
|
9940
10059
|
}
|
|
@@ -9988,14 +10107,16 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
9988
10107
|
exports.ExternalEventsProcessor = void 0;
|
|
9989
10108
|
const core_1 = __webpack_require__(/*! ../../core */ "./dist/core/index.js");
|
|
9990
10109
|
const ChangedItems_1 = __webpack_require__(/*! ./ChangedItems */ "./dist/modules/sync/ChangedItems.js");
|
|
10110
|
+
const SyncCallback_1 = __webpack_require__(/*! ./SyncCallback */ "./dist/modules/sync/SyncCallback.js");
|
|
9991
10111
|
class ExternalEventsProcessor {
|
|
9992
|
-
constructor(messagesController, relationshipsController, externalEvents) {
|
|
10112
|
+
constructor(messagesController, relationshipsController, externalEvents, reporter) {
|
|
9993
10113
|
this.messagesController = messagesController;
|
|
9994
10114
|
this.relationshipsController = relationshipsController;
|
|
9995
10115
|
this.externalEvents = externalEvents;
|
|
9996
10116
|
this.changedItems = new ChangedItems_1.ChangedItems();
|
|
9997
10117
|
this.results = [];
|
|
9998
10118
|
this.log = core_1.TransportLoggerFactory.getLogger(ExternalEventsProcessor);
|
|
10119
|
+
this.syncStep = reporter.createStep(SyncCallback_1.SyncStep.ExternalEventsProcessing, externalEvents.length);
|
|
9999
10120
|
}
|
|
10000
10121
|
async execute() {
|
|
10001
10122
|
for (const externalEvent of this.externalEvents) {
|
|
@@ -10037,6 +10158,9 @@ class ExternalEventsProcessor {
|
|
|
10037
10158
|
errorCode: errorCode
|
|
10038
10159
|
});
|
|
10039
10160
|
}
|
|
10161
|
+
finally {
|
|
10162
|
+
this.syncStep.progress();
|
|
10163
|
+
}
|
|
10040
10164
|
}
|
|
10041
10165
|
}
|
|
10042
10166
|
async applyRelationshipChangeCompletedEvent(externalEvent) {
|
|
@@ -10069,6 +10193,41 @@ exports.ExternalEventsProcessor = ExternalEventsProcessor;
|
|
|
10069
10193
|
|
|
10070
10194
|
/***/ }),
|
|
10071
10195
|
|
|
10196
|
+
/***/ "./dist/modules/sync/SyncCallback.js":
|
|
10197
|
+
/*!*******************************************!*\
|
|
10198
|
+
!*** ./dist/modules/sync/SyncCallback.js ***!
|
|
10199
|
+
\*******************************************/
|
|
10200
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
10201
|
+
|
|
10202
|
+
"use strict";
|
|
10203
|
+
|
|
10204
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10205
|
+
exports.SyncStep = exports.SyncProgressReporterStep = exports.SyncProgressReporter = void 0;
|
|
10206
|
+
const core_1 = __webpack_require__(/*! ../../core */ "./dist/core/index.js");
|
|
10207
|
+
class SyncProgressReporter extends core_1.ProgressReporter {
|
|
10208
|
+
static fromCallback(callback) {
|
|
10209
|
+
return new SyncProgressReporter(callback);
|
|
10210
|
+
}
|
|
10211
|
+
}
|
|
10212
|
+
exports.SyncProgressReporter = SyncProgressReporter;
|
|
10213
|
+
class SyncProgressReporterStep extends core_1.ProgressReporterStep {
|
|
10214
|
+
}
|
|
10215
|
+
exports.SyncProgressReporterStep = SyncProgressReporterStep;
|
|
10216
|
+
var SyncStep;
|
|
10217
|
+
(function (SyncStep) {
|
|
10218
|
+
SyncStep["Sync"] = "sync";
|
|
10219
|
+
SyncStep["DatawalletSync"] = "sync:datawallet";
|
|
10220
|
+
SyncStep["DatawalletSyncDownloading"] = "sync:datawallet:downloading";
|
|
10221
|
+
SyncStep["DatawalletSyncDecryption"] = "sync:datawallet:decrypting";
|
|
10222
|
+
SyncStep["DatawalletSyncProcessing"] = "sync:datawallet:processing";
|
|
10223
|
+
SyncStep["ExternalEventsSync"] = "sync:externalEvents";
|
|
10224
|
+
SyncStep["ExternalEventsSyncDownloading"] = "sync:externalEvents:downloading";
|
|
10225
|
+
SyncStep["ExternalEventsProcessing"] = "sync:externalEvents:processing";
|
|
10226
|
+
})(SyncStep = exports.SyncStep || (exports.SyncStep = {}));
|
|
10227
|
+
//# sourceMappingURL=SyncCallback.js.map
|
|
10228
|
+
|
|
10229
|
+
/***/ }),
|
|
10230
|
+
|
|
10072
10231
|
/***/ "./dist/modules/sync/SyncController.js":
|
|
10073
10232
|
/*!*********************************************!*\
|
|
10074
10233
|
!*** ./dist/modules/sync/SyncController.js ***!
|
|
@@ -10089,6 +10248,7 @@ const ExternalEventsProcessor_1 = __webpack_require__(/*! ./ExternalEventsProces
|
|
|
10089
10248
|
const DatawalletModification_1 = __webpack_require__(/*! ./local/DatawalletModification */ "./dist/modules/sync/local/DatawalletModification.js");
|
|
10090
10249
|
const DeviceMigrations_1 = __webpack_require__(/*! ./migrations/DeviceMigrations */ "./dist/modules/sync/migrations/DeviceMigrations.js");
|
|
10091
10250
|
const IdentityMigrations_1 = __webpack_require__(/*! ./migrations/IdentityMigrations */ "./dist/modules/sync/migrations/IdentityMigrations.js");
|
|
10251
|
+
const SyncCallback_1 = __webpack_require__(/*! ./SyncCallback */ "./dist/modules/sync/SyncCallback.js");
|
|
10092
10252
|
class SyncController extends core_1.TransportController {
|
|
10093
10253
|
constructor(parent, dependencyOverrides, unpushedDatawalletModifications, datawalletEnabled) {
|
|
10094
10254
|
var _a;
|
|
@@ -10110,32 +10270,35 @@ class SyncController extends core_1.TransportController {
|
|
|
10110
10270
|
this.syncInfo = await this.db.getMap("SyncInfo");
|
|
10111
10271
|
return this;
|
|
10112
10272
|
}
|
|
10113
|
-
async sync(whatToSync = "Everything") {
|
|
10273
|
+
async sync(whatToSync = "Everything", reporter) {
|
|
10114
10274
|
var _a;
|
|
10115
10275
|
if ((_a = this.currentSync) === null || _a === void 0 ? void 0 : _a.includes(whatToSync)) {
|
|
10116
10276
|
return await this.currentSync.promise;
|
|
10117
10277
|
}
|
|
10118
10278
|
if (this.currentSync && !this.currentSync.includes(whatToSync)) {
|
|
10119
10279
|
await this.currentSync.promise;
|
|
10120
|
-
return await this.sync(whatToSync);
|
|
10280
|
+
return await this.sync(whatToSync, reporter);
|
|
10121
10281
|
}
|
|
10122
|
-
const syncPromise = this._sync(whatToSync);
|
|
10282
|
+
const syncPromise = this._sync(whatToSync, reporter);
|
|
10123
10283
|
this.currentSync = new LocalSyncRun(syncPromise, whatToSync);
|
|
10124
10284
|
try {
|
|
10125
10285
|
return await this.currentSync.promise;
|
|
10126
10286
|
}
|
|
10127
10287
|
finally {
|
|
10128
10288
|
if (this.datawalletEnabled && (await this.unpushedDatawalletModifications.exists())) {
|
|
10129
|
-
await this.syncDatawallet().catch((e) => this.log.error(e));
|
|
10289
|
+
await this.syncDatawallet(reporter).catch((e) => this.log.error(e));
|
|
10130
10290
|
}
|
|
10131
10291
|
this.currentSync = undefined;
|
|
10132
10292
|
}
|
|
10133
10293
|
}
|
|
10134
|
-
async _sync(whatToSync) {
|
|
10294
|
+
async _sync(whatToSync, reporter) {
|
|
10295
|
+
const syncStep = reporter.createStep(SyncCallback_1.SyncStep.Sync, 1);
|
|
10135
10296
|
if (whatToSync === "OnlyDatawallet") {
|
|
10136
|
-
|
|
10297
|
+
const value = await this.syncDatawallet(reporter);
|
|
10298
|
+
syncStep.finish();
|
|
10299
|
+
return value;
|
|
10137
10300
|
}
|
|
10138
|
-
const externalEventSyncResult = await this.syncExternalEvents();
|
|
10301
|
+
const externalEventSyncResult = await this.syncExternalEvents(reporter);
|
|
10139
10302
|
await this.setLastCompletedSyncTime();
|
|
10140
10303
|
if (externalEventSyncResult.externalEventResults.some((r) => r.errorCode !== undefined)) {
|
|
10141
10304
|
throw new core_1.CoreError("error.transport.errorWhileApplyingExternalEvents", externalEventSyncResult.externalEventResults
|
|
@@ -10143,23 +10306,24 @@ class SyncController extends core_1.TransportController {
|
|
|
10143
10306
|
.map((r) => r.errorCode)
|
|
10144
10307
|
.join(" | ")).logWith(this.log);
|
|
10145
10308
|
}
|
|
10309
|
+
syncStep.finish();
|
|
10146
10310
|
return externalEventSyncResult.changedItems;
|
|
10147
10311
|
}
|
|
10148
|
-
async syncExternalEvents() {
|
|
10312
|
+
async syncExternalEvents(reporter) {
|
|
10149
10313
|
const syncRunWasStarted = await this.startExternalEventsSyncRun();
|
|
10150
10314
|
if (!syncRunWasStarted) {
|
|
10151
|
-
await this.syncDatawallet();
|
|
10315
|
+
await this.syncDatawallet(reporter);
|
|
10152
10316
|
return {
|
|
10153
10317
|
changedItems: new ChangedItems_1.ChangedItems(),
|
|
10154
10318
|
externalEventResults: []
|
|
10155
10319
|
};
|
|
10156
10320
|
}
|
|
10157
|
-
await this.applyIncomingDatawalletModifications();
|
|
10158
|
-
const result = await this.applyIncomingExternalEvents();
|
|
10321
|
+
await this.applyIncomingDatawalletModifications(reporter);
|
|
10322
|
+
const result = await this.applyIncomingExternalEvents(reporter);
|
|
10159
10323
|
await this.finalizeExternalEventsSyncRun(result.externalEventResults);
|
|
10160
10324
|
return result;
|
|
10161
10325
|
}
|
|
10162
|
-
async syncDatawallet() {
|
|
10326
|
+
async syncDatawallet(reporter) {
|
|
10163
10327
|
if (!this.datawalletEnabled) {
|
|
10164
10328
|
return;
|
|
10165
10329
|
}
|
|
@@ -10173,7 +10337,7 @@ class SyncController extends core_1.TransportController {
|
|
|
10173
10337
|
}
|
|
10174
10338
|
this.log.trace("Synchronization of Datawallet events started...");
|
|
10175
10339
|
try {
|
|
10176
|
-
await this.applyIncomingDatawalletModifications();
|
|
10340
|
+
await this.applyIncomingDatawalletModifications(reporter);
|
|
10177
10341
|
await this.pushLocalDatawalletModifications();
|
|
10178
10342
|
await this.setLastCompletedDatawalletSyncTime();
|
|
10179
10343
|
}
|
|
@@ -10250,29 +10414,45 @@ class SyncController extends core_1.TransportController {
|
|
|
10250
10414
|
await this.parent.activeDevice.update({ datawalletVersion: deviceDatawalletVersion });
|
|
10251
10415
|
}
|
|
10252
10416
|
}
|
|
10253
|
-
async applyIncomingDatawalletModifications() {
|
|
10254
|
-
const
|
|
10255
|
-
|
|
10256
|
-
});
|
|
10417
|
+
async applyIncomingDatawalletModifications(reporter) {
|
|
10418
|
+
const datawalletSyncStep = reporter.createStep(SyncCallback_1.SyncStep.DatawalletSync, 1);
|
|
10419
|
+
const downloadingStep = reporter.createStep(SyncCallback_1.SyncStep.DatawalletSyncDownloading);
|
|
10420
|
+
const getDatawalletModificationsResult = await this.client.getDatawalletModifications({ localIndex: await this.getLocalDatawalletModificationIndex() }, (percentage) => downloadingStep.manualReport(percentage));
|
|
10257
10421
|
const encryptedIncomingModifications = await getDatawalletModificationsResult.value.collect();
|
|
10258
10422
|
if (encryptedIncomingModifications.length === 0) {
|
|
10423
|
+
datawalletSyncStep.finish();
|
|
10259
10424
|
return;
|
|
10260
10425
|
}
|
|
10261
|
-
const incomingModifications = await this.decryptDatawalletModifications(encryptedIncomingModifications);
|
|
10426
|
+
const incomingModifications = await this.decryptDatawalletModifications(encryptedIncomingModifications, reporter);
|
|
10262
10427
|
this.log.trace(`${incomingModifications.length} incoming modifications found`);
|
|
10263
|
-
const datawalletModificationsProcessor = new DatawalletModificationsProcessor_1.DatawalletModificationsProcessor(incomingModifications, this.cacheFetcher, this._db, core_1.TransportLoggerFactory.getLogger(DatawalletModificationsProcessor_1.DatawalletModificationsProcessor));
|
|
10428
|
+
const datawalletModificationsProcessor = new DatawalletModificationsProcessor_1.DatawalletModificationsProcessor(incomingModifications, this.cacheFetcher, this._db, core_1.TransportLoggerFactory.getLogger(DatawalletModificationsProcessor_1.DatawalletModificationsProcessor), reporter);
|
|
10264
10429
|
await datawalletModificationsProcessor.execute();
|
|
10265
10430
|
this.log.trace(`${incomingModifications.length} incoming modifications executed`, incomingModifications);
|
|
10266
10431
|
await this.updateLocalDatawalletModificationIndex(encryptedIncomingModifications.sort(descending)[0].index);
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10432
|
+
datawalletSyncStep.finish();
|
|
10433
|
+
}
|
|
10434
|
+
async promiseAllWithProgess(promises, callback) {
|
|
10435
|
+
callback(0);
|
|
10436
|
+
let processedItemCount = 0;
|
|
10437
|
+
for (const promise of promises) {
|
|
10438
|
+
// eslint-disable-next-line no-loop-func,no-void
|
|
10439
|
+
void promise.then(() => {
|
|
10440
|
+
processedItemCount++;
|
|
10441
|
+
const percentage = Math.round((processedItemCount / promises.length) * 100);
|
|
10442
|
+
callback(percentage);
|
|
10443
|
+
});
|
|
10274
10444
|
}
|
|
10275
|
-
return
|
|
10445
|
+
return await Promise.all(promises);
|
|
10446
|
+
}
|
|
10447
|
+
async decryptDatawalletModifications(encryptedModifications, reporter) {
|
|
10448
|
+
const promises = encryptedModifications.map((m) => this.decryptDatawalletModification(m));
|
|
10449
|
+
const step = reporter.createStep(SyncCallback_1.SyncStep.DatawalletSyncDecryption);
|
|
10450
|
+
return await this.promiseAllWithProgess(promises, (p) => step.manualReport(p));
|
|
10451
|
+
}
|
|
10452
|
+
async decryptDatawalletModification(encryptedModification) {
|
|
10453
|
+
const decryptedPayload = await this.parent.activeDevice.secrets.decryptDatawalletModificationPayload(encryptedModification.encryptedPayload, encryptedModification.index);
|
|
10454
|
+
const decryptedModification = await DatawalletModificationMapper_1.DatawalletModificationMapper.fromBackboneDatawalletModification(encryptedModification, decryptedPayload, this.config.supportedDatawalletVersion);
|
|
10455
|
+
return decryptedModification;
|
|
10276
10456
|
}
|
|
10277
10457
|
async pushLocalDatawalletModifications() {
|
|
10278
10458
|
const { backboneModifications, localModificationIds } = await this.prepareLocalDatawalletModificationsForPush();
|
|
@@ -10331,14 +10511,17 @@ class SyncController extends core_1.TransportController {
|
|
|
10331
10511
|
this.currentSyncRun = (_a = result.value.syncRun) !== null && _a !== void 0 ? _a : undefined;
|
|
10332
10512
|
return this.currentSyncRun !== undefined;
|
|
10333
10513
|
}
|
|
10334
|
-
async applyIncomingExternalEvents() {
|
|
10335
|
-
const
|
|
10514
|
+
async applyIncomingExternalEvents(reporter) {
|
|
10515
|
+
const externalEventStep = reporter.createStep(SyncCallback_1.SyncStep.ExternalEventsSync, 1);
|
|
10516
|
+
const downloadingStep = reporter.createStep(SyncCallback_1.SyncStep.ExternalEventsSyncDownloading);
|
|
10517
|
+
const getExternalEventsResult = await this.client.getExternalEventsOfSyncRun(this.currentSyncRun.id.toString(), (percentage) => downloadingStep.manualReport(percentage));
|
|
10336
10518
|
if (getExternalEventsResult.isError) {
|
|
10337
10519
|
throw getExternalEventsResult.error;
|
|
10338
10520
|
}
|
|
10339
10521
|
const externalEvents = await getExternalEventsResult.value.collect();
|
|
10340
|
-
const externalEventProcessor = new ExternalEventsProcessor_1.ExternalEventsProcessor(this.parent.messages, this.parent.relationships, externalEvents);
|
|
10522
|
+
const externalEventProcessor = new ExternalEventsProcessor_1.ExternalEventsProcessor(this.parent.messages, this.parent.relationships, externalEvents, reporter);
|
|
10341
10523
|
await externalEventProcessor.execute();
|
|
10524
|
+
externalEventStep.finish();
|
|
10342
10525
|
return {
|
|
10343
10526
|
externalEventResults: externalEventProcessor.results,
|
|
10344
10527
|
changedItems: externalEventProcessor.changedItems
|
|
@@ -10726,14 +10909,14 @@ class SyncClient extends core_1.RESTClientAuthenticate {
|
|
|
10726
10909
|
async finalizeDatawalletVersionUpgrade(id, request) {
|
|
10727
10910
|
return await this.put(`/api/v1/SyncRuns/${id}/FinalizeDatawalletVersionUpgrade`, request);
|
|
10728
10911
|
}
|
|
10729
|
-
async getExternalEventsOfSyncRun(syncRunId) {
|
|
10730
|
-
return await this.getPaged(`/api/v1/SyncRuns/${syncRunId}/ExternalEvents`, {});
|
|
10912
|
+
async getExternalEventsOfSyncRun(syncRunId, progessCallback) {
|
|
10913
|
+
return await this.getPaged(`/api/v1/SyncRuns/${syncRunId}/ExternalEvents`, {}, undefined, progessCallback);
|
|
10731
10914
|
}
|
|
10732
10915
|
async getDatawallet() {
|
|
10733
10916
|
return await this.get("/api/v1/Datawallet");
|
|
10734
10917
|
}
|
|
10735
|
-
async getDatawalletModifications(request) {
|
|
10736
|
-
return await this.getPaged("/api/v1/Datawallet/Modifications", request);
|
|
10918
|
+
async getDatawalletModifications(request, progessCallback) {
|
|
10919
|
+
return await this.getPaged("/api/v1/Datawallet/Modifications", request, undefined, progessCallback);
|
|
10737
10920
|
}
|
|
10738
10921
|
async createDatawalletModifications(request) {
|
|
10739
10922
|
return await this.post("/api/v1/Datawallet/Modifications", request);
|
|
@@ -11977,7 +12160,11 @@ exports.Random = Random;
|
|
|
11977
12160
|
|
|
11978
12161
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11979
12162
|
if (k2 === undefined) k2 = k;
|
|
11980
|
-
Object.
|
|
12163
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12164
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12165
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12166
|
+
}
|
|
12167
|
+
Object.defineProperty(o, k2, desc);
|
|
11981
12168
|
}) : (function(o, m, k, k2) {
|
|
11982
12169
|
if (k2 === undefined) k2 = k;
|
|
11983
12170
|
o[k2] = m[k];
|
|
@@ -12610,7 +12797,7 @@ var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_mod
|
|
|
12610
12797
|
var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
|
|
12611
12798
|
var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
|
|
12612
12799
|
var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
|
|
12613
|
-
var
|
|
12800
|
+
var transitionalDefaults = __webpack_require__(/*! ../defaults/transitional */ "./node_modules/axios/lib/defaults/transitional.js");
|
|
12614
12801
|
var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
|
|
12615
12802
|
|
|
12616
12803
|
module.exports = function xhrAdapter(config) {
|
|
@@ -12725,7 +12912,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
12725
12912
|
// Handle timeout
|
|
12726
12913
|
request.ontimeout = function handleTimeout() {
|
|
12727
12914
|
var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
12728
|
-
var transitional = config.transitional ||
|
|
12915
|
+
var transitional = config.transitional || transitionalDefaults;
|
|
12729
12916
|
if (config.timeoutErrorMessage) {
|
|
12730
12917
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
12731
12918
|
}
|
|
@@ -12829,7 +13016,7 @@ var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.j
|
|
|
12829
13016
|
var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
|
|
12830
13017
|
var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
|
|
12831
13018
|
var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
|
|
12832
|
-
var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
|
|
13019
|
+
var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults/index.js");
|
|
12833
13020
|
|
|
12834
13021
|
/**
|
|
12835
13022
|
* Create an instance of Axios
|
|
@@ -13356,7 +13543,7 @@ module.exports = function createError(message, config, code, request, response)
|
|
|
13356
13543
|
var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
|
|
13357
13544
|
var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
|
|
13358
13545
|
var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
|
|
13359
|
-
var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
|
|
13546
|
+
var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults/index.js");
|
|
13360
13547
|
var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
|
|
13361
13548
|
|
|
13362
13549
|
/**
|
|
@@ -13652,7 +13839,7 @@ module.exports = function settle(resolve, reject, response) {
|
|
|
13652
13839
|
|
|
13653
13840
|
|
|
13654
13841
|
var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
|
|
13655
|
-
var defaults = __webpack_require__(/*!
|
|
13842
|
+
var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults/index.js");
|
|
13656
13843
|
|
|
13657
13844
|
/**
|
|
13658
13845
|
* Transform the data for a request or a response
|
|
@@ -13675,18 +13862,19 @@ module.exports = function transformData(data, headers, fns) {
|
|
|
13675
13862
|
|
|
13676
13863
|
/***/ }),
|
|
13677
13864
|
|
|
13678
|
-
/***/ "./node_modules/axios/lib/defaults.js":
|
|
13679
|
-
|
|
13680
|
-
!*** ./node_modules/axios/lib/defaults.js ***!
|
|
13681
|
-
|
|
13865
|
+
/***/ "./node_modules/axios/lib/defaults/index.js":
|
|
13866
|
+
/*!**************************************************!*\
|
|
13867
|
+
!*** ./node_modules/axios/lib/defaults/index.js ***!
|
|
13868
|
+
\**************************************************/
|
|
13682
13869
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
13683
13870
|
|
|
13684
13871
|
"use strict";
|
|
13685
13872
|
|
|
13686
13873
|
|
|
13687
|
-
var utils = __webpack_require__(/*!
|
|
13688
|
-
var normalizeHeaderName = __webpack_require__(/*!
|
|
13689
|
-
var enhanceError = __webpack_require__(/*!
|
|
13874
|
+
var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
|
|
13875
|
+
var normalizeHeaderName = __webpack_require__(/*! ../helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js");
|
|
13876
|
+
var enhanceError = __webpack_require__(/*! ../core/enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
|
|
13877
|
+
var transitionalDefaults = __webpack_require__(/*! ./transitional */ "./node_modules/axios/lib/defaults/transitional.js");
|
|
13690
13878
|
|
|
13691
13879
|
var DEFAULT_CONTENT_TYPE = {
|
|
13692
13880
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
@@ -13702,10 +13890,10 @@ function getDefaultAdapter() {
|
|
|
13702
13890
|
var adapter;
|
|
13703
13891
|
if (typeof XMLHttpRequest !== 'undefined') {
|
|
13704
13892
|
// For browsers use XHR adapter
|
|
13705
|
-
adapter = __webpack_require__(/*!
|
|
13893
|
+
adapter = __webpack_require__(/*! ../adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
|
|
13706
13894
|
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
|
13707
13895
|
// For node use HTTP adapter
|
|
13708
|
-
adapter = __webpack_require__(/*!
|
|
13896
|
+
adapter = __webpack_require__(/*! ../adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
|
|
13709
13897
|
}
|
|
13710
13898
|
return adapter;
|
|
13711
13899
|
}
|
|
@@ -13727,11 +13915,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
13727
13915
|
|
|
13728
13916
|
var defaults = {
|
|
13729
13917
|
|
|
13730
|
-
transitional:
|
|
13731
|
-
silentJSONParsing: true,
|
|
13732
|
-
forcedJSONParsing: true,
|
|
13733
|
-
clarifyTimeoutError: false
|
|
13734
|
-
},
|
|
13918
|
+
transitional: transitionalDefaults,
|
|
13735
13919
|
|
|
13736
13920
|
adapter: getDefaultAdapter(),
|
|
13737
13921
|
|
|
@@ -13818,6 +14002,24 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
13818
14002
|
module.exports = defaults;
|
|
13819
14003
|
|
|
13820
14004
|
|
|
14005
|
+
/***/ }),
|
|
14006
|
+
|
|
14007
|
+
/***/ "./node_modules/axios/lib/defaults/transitional.js":
|
|
14008
|
+
/*!*********************************************************!*\
|
|
14009
|
+
!*** ./node_modules/axios/lib/defaults/transitional.js ***!
|
|
14010
|
+
\*********************************************************/
|
|
14011
|
+
/***/ ((module) => {
|
|
14012
|
+
|
|
14013
|
+
"use strict";
|
|
14014
|
+
|
|
14015
|
+
|
|
14016
|
+
module.exports = {
|
|
14017
|
+
silentJSONParsing: true,
|
|
14018
|
+
forcedJSONParsing: true,
|
|
14019
|
+
clarifyTimeoutError: false
|
|
14020
|
+
};
|
|
14021
|
+
|
|
14022
|
+
|
|
13821
14023
|
/***/ }),
|
|
13822
14024
|
|
|
13823
14025
|
/***/ "./node_modules/axios/lib/env/data.js":
|
|
@@ -13827,7 +14029,7 @@ module.exports = defaults;
|
|
|
13827
14029
|
/***/ ((module) => {
|
|
13828
14030
|
|
|
13829
14031
|
module.exports = {
|
|
13830
|
-
"version": "0.26.
|
|
14032
|
+
"version": "0.26.1"
|
|
13831
14033
|
};
|
|
13832
14034
|
|
|
13833
14035
|
/***/ }),
|
|
@@ -36010,7 +36212,7 @@ var SystemZone = /*#__PURE__*/function (_Zone) {
|
|
|
36010
36212
|
return SystemZone;
|
|
36011
36213
|
}(Zone);
|
|
36012
36214
|
|
|
36013
|
-
|
|
36215
|
+
RegExp("^" + ianaRegex.source + "$");
|
|
36014
36216
|
var dtfCache = {};
|
|
36015
36217
|
|
|
36016
36218
|
function makeDTF(zone) {
|
|
@@ -36103,14 +36305,14 @@ var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
36103
36305
|
* Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
|
|
36104
36306
|
* @param {string} s - The string to check validity on
|
|
36105
36307
|
* @example IANAZone.isValidSpecifier("America/New_York") //=> true
|
|
36106
|
-
* @example IANAZone.isValidSpecifier("Fantasia/Castle") //=> true
|
|
36107
36308
|
* @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false
|
|
36309
|
+
* @deprecated This method returns false some valid IANA names. Use isValidZone instead
|
|
36108
36310
|
* @return {boolean}
|
|
36109
36311
|
*/
|
|
36110
36312
|
;
|
|
36111
36313
|
|
|
36112
36314
|
IANAZone.isValidSpecifier = function isValidSpecifier(s) {
|
|
36113
|
-
return
|
|
36315
|
+
return this.isValidZone(s);
|
|
36114
36316
|
}
|
|
36115
36317
|
/**
|
|
36116
36318
|
* Returns whether the provided string identifies a real zone
|
|
@@ -36443,7 +36645,7 @@ function normalizeZone(input, defaultZone) {
|
|
|
36443
36645
|
return input;
|
|
36444
36646
|
} else if (isString(input)) {
|
|
36445
36647
|
var lowered = input.toLowerCase();
|
|
36446
|
-
if (lowered === "local" || lowered === "system") return defaultZone;else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;else
|
|
36648
|
+
if (lowered === "local" || lowered === "system") return defaultZone;else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);
|
|
36447
36649
|
} else if (isNumber(input)) {
|
|
36448
36650
|
return FixedOffsetZone.instance(input);
|
|
36449
36651
|
} else if (typeof input === "object" && input.offset && typeof input.offset === "number") {
|
|
@@ -38319,7 +38521,7 @@ var Duration = /*#__PURE__*/function () {
|
|
|
38319
38521
|
|
|
38320
38522
|
for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) {
|
|
38321
38523
|
var k = _Object$keys2[_i2];
|
|
38322
|
-
negated[k] = -this.values[k];
|
|
38524
|
+
negated[k] = this.values[k] === 0 ? 0 : -this.values[k];
|
|
38323
38525
|
}
|
|
38324
38526
|
|
|
38325
38527
|
return clone$1(this, {
|
|
@@ -39245,7 +39447,7 @@ var Info = /*#__PURE__*/function () {
|
|
|
39245
39447
|
;
|
|
39246
39448
|
|
|
39247
39449
|
Info.isValidIANAZone = function isValidIANAZone(zone) {
|
|
39248
|
-
return IANAZone.
|
|
39450
|
+
return IANAZone.isValidZone(zone);
|
|
39249
39451
|
}
|
|
39250
39452
|
/**
|
|
39251
39453
|
* Converts the input into a {@link Zone} instance.
|
|
@@ -41879,6 +42081,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
41879
42081
|
* @param {Object} opts - options
|
|
41880
42082
|
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
|
41881
42083
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
42084
|
+
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
|
41882
42085
|
* @example DateTime.utc().toSQL() //=> '05:15:16.345'
|
|
41883
42086
|
* @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'
|
|
41884
42087
|
* @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'
|
|
@@ -41892,12 +42095,16 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
41892
42095
|
_ref7$includeOffset = _ref7.includeOffset,
|
|
41893
42096
|
includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset,
|
|
41894
42097
|
_ref7$includeZone = _ref7.includeZone,
|
|
41895
|
-
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone
|
|
42098
|
+
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone,
|
|
42099
|
+
_ref7$includeOffsetSp = _ref7.includeOffsetSpace,
|
|
42100
|
+
includeOffsetSpace = _ref7$includeOffsetSp === void 0 ? true : _ref7$includeOffsetSp;
|
|
41896
42101
|
|
|
41897
42102
|
var fmt = "HH:mm:ss.SSS";
|
|
41898
42103
|
|
|
41899
42104
|
if (includeZone || includeOffset) {
|
|
41900
|
-
|
|
42105
|
+
if (includeOffsetSpace) {
|
|
42106
|
+
fmt += " ";
|
|
42107
|
+
}
|
|
41901
42108
|
|
|
41902
42109
|
if (includeZone) {
|
|
41903
42110
|
fmt += "z";
|
|
@@ -41913,6 +42120,7 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
41913
42120
|
* @param {Object} opts - options
|
|
41914
42121
|
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
|
41915
42122
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
42123
|
+
* @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'
|
|
41916
42124
|
* @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'
|
|
41917
42125
|
* @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'
|
|
41918
42126
|
* @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'
|
|
@@ -41968,6 +42176,15 @@ var DateTime = /*#__PURE__*/function () {
|
|
|
41968
42176
|
_proto.toSeconds = function toSeconds() {
|
|
41969
42177
|
return this.isValid ? this.ts / 1000 : NaN;
|
|
41970
42178
|
}
|
|
42179
|
+
/**
|
|
42180
|
+
* Returns the epoch seconds (as a whole number) of this DateTime.
|
|
42181
|
+
* @return {number}
|
|
42182
|
+
*/
|
|
42183
|
+
;
|
|
42184
|
+
|
|
42185
|
+
_proto.toUnixInteger = function toUnixInteger() {
|
|
42186
|
+
return this.isValid ? Math.floor(this.ts / 1000) : NaN;
|
|
42187
|
+
}
|
|
41971
42188
|
/**
|
|
41972
42189
|
* Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.
|
|
41973
42190
|
* @return {string}
|
|
@@ -42912,7 +43129,7 @@ function friendlyDateTime(dateTimeish) {
|
|
|
42912
43129
|
}
|
|
42913
43130
|
}
|
|
42914
43131
|
|
|
42915
|
-
var VERSION = "2.3.
|
|
43132
|
+
var VERSION = "2.3.1";
|
|
42916
43133
|
|
|
42917
43134
|
exports.DateTime = DateTime;
|
|
42918
43135
|
exports.Duration = Duration;
|
|
@@ -53629,15 +53846,15 @@ exports.MessageFormatUtils = MessageFormatUtils;
|
|
|
53629
53846
|
"use strict";
|
|
53630
53847
|
__webpack_require__.r(__webpack_exports__);
|
|
53631
53848
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
53849
|
+
/* harmony export */ "NIL": () => (/* reexport safe */ _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
53850
|
+
/* harmony export */ "parse": () => (/* reexport safe */ _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
53851
|
+
/* harmony export */ "stringify": () => (/* reexport safe */ _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
53632
53852
|
/* harmony export */ "v1": () => (/* reexport safe */ _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
53633
53853
|
/* harmony export */ "v3": () => (/* reexport safe */ _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
53634
53854
|
/* harmony export */ "v4": () => (/* reexport safe */ _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
53635
53855
|
/* harmony export */ "v5": () => (/* reexport safe */ _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
53636
|
-
/* harmony export */ "NIL": () => (/* reexport safe */ _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
53637
|
-
/* harmony export */ "version": () => (/* reexport safe */ _version_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
53638
53856
|
/* harmony export */ "validate": () => (/* reexport safe */ _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
53639
|
-
/* harmony export */ "
|
|
53640
|
-
/* harmony export */ "parse": () => (/* reexport safe */ _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"])
|
|
53857
|
+
/* harmony export */ "version": () => (/* reexport safe */ _version_js__WEBPACK_IMPORTED_MODULE_5__["default"])
|
|
53641
53858
|
/* harmony export */ });
|
|
53642
53859
|
/* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "./node_modules/uuid/dist/esm-browser/v1.js");
|
|
53643
53860
|
/* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "./node_modules/uuid/dist/esm-browser/v3.js");
|
|
@@ -54519,22 +54736,22 @@ module.exports = TSServal;
|
|
|
54519
54736
|
"use strict";
|
|
54520
54737
|
__webpack_require__.r(__webpack_exports__);
|
|
54521
54738
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54739
|
+
/* harmony export */ "JsonPatchError": () => (/* reexport safe */ _module_helpers_mjs__WEBPACK_IMPORTED_MODULE_2__.PatchError),
|
|
54522
54740
|
/* harmony export */ "_areEquals": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__._areEquals),
|
|
54523
54741
|
/* harmony export */ "applyOperation": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__.applyOperation),
|
|
54524
54742
|
/* harmony export */ "applyPatch": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__.applyPatch),
|
|
54525
54743
|
/* harmony export */ "applyReducer": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__.applyReducer),
|
|
54526
|
-
/* harmony export */ "getValueByPointer": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__.getValueByPointer),
|
|
54527
|
-
/* harmony export */ "validate": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__.validate),
|
|
54528
|
-
/* harmony export */ "validator": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__.validator),
|
|
54529
54744
|
/* harmony export */ "compare": () => (/* reexport safe */ _module_duplex_mjs__WEBPACK_IMPORTED_MODULE_1__.compare),
|
|
54530
|
-
/* harmony export */ "generate": () => (/* reexport safe */ _module_duplex_mjs__WEBPACK_IMPORTED_MODULE_1__.generate),
|
|
54531
|
-
/* harmony export */ "observe": () => (/* reexport safe */ _module_duplex_mjs__WEBPACK_IMPORTED_MODULE_1__.observe),
|
|
54532
|
-
/* harmony export */ "unobserve": () => (/* reexport safe */ _module_duplex_mjs__WEBPACK_IMPORTED_MODULE_1__.unobserve),
|
|
54533
|
-
/* harmony export */ "JsonPatchError": () => (/* reexport safe */ _module_helpers_mjs__WEBPACK_IMPORTED_MODULE_2__.PatchError),
|
|
54534
54745
|
/* harmony export */ "deepClone": () => (/* reexport safe */ _module_helpers_mjs__WEBPACK_IMPORTED_MODULE_2__._deepClone),
|
|
54746
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
54535
54747
|
/* harmony export */ "escapePathComponent": () => (/* reexport safe */ _module_helpers_mjs__WEBPACK_IMPORTED_MODULE_2__.escapePathComponent),
|
|
54748
|
+
/* harmony export */ "generate": () => (/* reexport safe */ _module_duplex_mjs__WEBPACK_IMPORTED_MODULE_1__.generate),
|
|
54749
|
+
/* harmony export */ "getValueByPointer": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__.getValueByPointer),
|
|
54750
|
+
/* harmony export */ "observe": () => (/* reexport safe */ _module_duplex_mjs__WEBPACK_IMPORTED_MODULE_1__.observe),
|
|
54536
54751
|
/* harmony export */ "unescapePathComponent": () => (/* reexport safe */ _module_helpers_mjs__WEBPACK_IMPORTED_MODULE_2__.unescapePathComponent),
|
|
54537
|
-
/* harmony export */ "
|
|
54752
|
+
/* harmony export */ "unobserve": () => (/* reexport safe */ _module_duplex_mjs__WEBPACK_IMPORTED_MODULE_1__.unobserve),
|
|
54753
|
+
/* harmony export */ "validate": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__.validate),
|
|
54754
|
+
/* harmony export */ "validator": () => (/* reexport safe */ _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__.validator)
|
|
54538
54755
|
/* harmony export */ });
|
|
54539
54756
|
/* harmony import */ var _module_core_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./module/core.mjs */ "./node_modules/fast-json-patch/module/core.mjs");
|
|
54540
54757
|
/* harmony import */ var _module_duplex_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./module/duplex.mjs */ "./node_modules/fast-json-patch/module/duplex.mjs");
|
|
@@ -54571,14 +54788,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54571
54788
|
__webpack_require__.r(__webpack_exports__);
|
|
54572
54789
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54573
54790
|
/* harmony export */ "JsonPatchError": () => (/* binding */ JsonPatchError),
|
|
54574
|
-
/* harmony export */ "
|
|
54575
|
-
/* harmony export */ "getValueByPointer": () => (/* binding */ getValueByPointer),
|
|
54791
|
+
/* harmony export */ "_areEquals": () => (/* binding */ _areEquals),
|
|
54576
54792
|
/* harmony export */ "applyOperation": () => (/* binding */ applyOperation),
|
|
54577
54793
|
/* harmony export */ "applyPatch": () => (/* binding */ applyPatch),
|
|
54578
54794
|
/* harmony export */ "applyReducer": () => (/* binding */ applyReducer),
|
|
54579
|
-
/* harmony export */ "
|
|
54795
|
+
/* harmony export */ "deepClone": () => (/* binding */ deepClone),
|
|
54796
|
+
/* harmony export */ "getValueByPointer": () => (/* binding */ getValueByPointer),
|
|
54580
54797
|
/* harmony export */ "validate": () => (/* binding */ validate),
|
|
54581
|
-
/* harmony export */ "
|
|
54798
|
+
/* harmony export */ "validator": () => (/* binding */ validator)
|
|
54582
54799
|
/* harmony export */ });
|
|
54583
54800
|
/* harmony import */ var _helpers_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers.mjs */ "./node_modules/fast-json-patch/module/helpers.mjs");
|
|
54584
54801
|
|
|
@@ -55025,10 +55242,10 @@ function _areEquals(a, b) {
|
|
|
55025
55242
|
"use strict";
|
|
55026
55243
|
__webpack_require__.r(__webpack_exports__);
|
|
55027
55244
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55028
|
-
/* harmony export */ "
|
|
55029
|
-
/* harmony export */ "observe": () => (/* binding */ observe),
|
|
55245
|
+
/* harmony export */ "compare": () => (/* binding */ compare),
|
|
55030
55246
|
/* harmony export */ "generate": () => (/* binding */ generate),
|
|
55031
|
-
/* harmony export */ "
|
|
55247
|
+
/* harmony export */ "observe": () => (/* binding */ observe),
|
|
55248
|
+
/* harmony export */ "unobserve": () => (/* binding */ unobserve)
|
|
55032
55249
|
/* harmony export */ });
|
|
55033
55250
|
/* harmony import */ var _helpers_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers.mjs */ "./node_modules/fast-json-patch/module/helpers.mjs");
|
|
55034
55251
|
/* harmony import */ var _core_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./core.mjs */ "./node_modules/fast-json-patch/module/core.mjs");
|
|
@@ -55221,16 +55438,16 @@ function compare(tree1, tree2, invertible) {
|
|
|
55221
55438
|
"use strict";
|
|
55222
55439
|
__webpack_require__.r(__webpack_exports__);
|
|
55223
55440
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55224
|
-
/* harmony export */ "
|
|
55225
|
-
/* harmony export */ "_objectKeys": () => (/* binding */ _objectKeys),
|
|
55441
|
+
/* harmony export */ "PatchError": () => (/* binding */ PatchError),
|
|
55226
55442
|
/* harmony export */ "_deepClone": () => (/* binding */ _deepClone),
|
|
55227
|
-
/* harmony export */ "isInteger": () => (/* binding */ isInteger),
|
|
55228
|
-
/* harmony export */ "escapePathComponent": () => (/* binding */ escapePathComponent),
|
|
55229
|
-
/* harmony export */ "unescapePathComponent": () => (/* binding */ unescapePathComponent),
|
|
55230
55443
|
/* harmony export */ "_getPathRecursive": () => (/* binding */ _getPathRecursive),
|
|
55444
|
+
/* harmony export */ "_objectKeys": () => (/* binding */ _objectKeys),
|
|
55445
|
+
/* harmony export */ "escapePathComponent": () => (/* binding */ escapePathComponent),
|
|
55231
55446
|
/* harmony export */ "getPath": () => (/* binding */ getPath),
|
|
55447
|
+
/* harmony export */ "hasOwnProperty": () => (/* binding */ hasOwnProperty),
|
|
55232
55448
|
/* harmony export */ "hasUndefined": () => (/* binding */ hasUndefined),
|
|
55233
|
-
/* harmony export */ "
|
|
55449
|
+
/* harmony export */ "isInteger": () => (/* binding */ isInteger),
|
|
55450
|
+
/* harmony export */ "unescapePathComponent": () => (/* binding */ unescapePathComponent)
|
|
55234
55451
|
/* harmony export */ });
|
|
55235
55452
|
/*!
|
|
55236
55453
|
* https://github.com/Starcounter-Jack/JSON-Patch
|