@noldova/checkpoints.protocol 0.0.2 → 0.0.3
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/README.md +3 -2
- package/package.json +4 -3
- package/src/api/index.d.ts +76 -511
- package/src/api/index.js +0 -11
- package/src/api/index.js.map +1 -1
- package/src/models/capture-paused-event.js +2 -3
- package/src/models/capture-paused-event.js.map +1 -1
- package/src/models/capture-request.js +3 -4
- package/src/models/capture-request.js.map +1 -1
- package/src/models/capture-result.js +4 -5
- package/src/models/capture-result.js.map +1 -1
- package/src/models/capture-resumed-event.js +2 -3
- package/src/models/capture-resumed-event.js.map +1 -1
- package/src/models/change-side.js +3 -4
- package/src/models/change-side.js.map +1 -1
- package/src/models/change.js +6 -7
- package/src/models/change.js.map +1 -1
- package/src/models/checkpoint-list.js +3 -4
- package/src/models/checkpoint-list.js.map +1 -1
- package/src/models/checkpoint.js +3 -4
- package/src/models/checkpoint.js.map +1 -1
- package/src/models/compare-request.js +3 -4
- package/src/models/compare-request.js.map +1 -1
- package/src/models/compare-result.js +3 -4
- package/src/models/compare-result.js.map +1 -1
- package/src/models/delete-folder-request.js +3 -4
- package/src/models/delete-folder-request.js.map +1 -1
- package/src/models/delete-folder-result.js +3 -4
- package/src/models/delete-folder-result.js.map +1 -1
- package/src/models/diff-target.js +3 -4
- package/src/models/diff-target.js.map +1 -1
- package/src/models/folder-reference.js +2 -3
- package/src/models/folder-reference.js.map +1 -1
- package/src/models/folder-usage.js +3 -4
- package/src/models/folder-usage.js.map +1 -1
- package/src/models/kept-path.js +3 -4
- package/src/models/kept-path.js.map +1 -1
- package/src/models/list-request.js +3 -4
- package/src/models/list-request.js.map +1 -1
- package/src/models/preview-request.js +3 -4
- package/src/models/preview-request.js.map +1 -1
- package/src/models/preview-result.js +4 -5
- package/src/models/preview-result.js.map +1 -1
- package/src/models/read-request.js +4 -5
- package/src/models/read-request.js.map +1 -1
- package/src/models/read-result.js +3 -4
- package/src/models/read-result.js.map +1 -1
- package/src/models/restore-held-up-event.js +3 -4
- package/src/models/restore-held-up-event.js.map +1 -1
- package/src/models/restore-plan.js +3 -4
- package/src/models/restore-plan.js.map +1 -1
- package/src/models/restore-request.js +3 -4
- package/src/models/restore-request.js.map +1 -1
- package/src/models/restore-result.js +5 -6
- package/src/models/restore-result.js.map +1 -1
- package/src/models/restore-step.js +5 -6
- package/src/models/restore-step.js.map +1 -1
- package/src/models/restored-event.js +2 -3
- package/src/models/restored-event.js.map +1 -1
- package/src/models/storage-list.js +3 -4
- package/src/models/storage-list.js.map +1 -1
- package/src/models/storage-request.js +2 -2
- package/src/models/storage-request.js.map +1 -1
- package/src/models/unread-path.js +3 -4
- package/src/models/unread-path.js.map +1 -1
- package/src/resources.js +5 -30
- package/src/resources.js.map +1 -1
- package/src/services/scope-paths.js.map +1 -1
- package/src/services/wire-form.js +32 -0
- package/src/services/wire-form.js.map +1 -0
- package/src/exceptions/field-not-a-boolean.exception.js +0 -19
- package/src/exceptions/field-not-a-boolean.exception.js.map +0 -1
- package/src/exceptions/field-not-a-list.exception.js +0 -19
- package/src/exceptions/field-not-a-list.exception.js.map +0 -1
- package/src/exceptions/field-not-a-number-or-null.exception.js +0 -19
- package/src/exceptions/field-not-a-number-or-null.exception.js.map +0 -1
- package/src/exceptions/field-not-a-number.exception.js +0 -19
- package/src/exceptions/field-not-a-number.exception.js.map +0 -1
- package/src/exceptions/field-not-a-string-list.exception.js +0 -19
- package/src/exceptions/field-not-a-string-list.exception.js.map +0 -1
- package/src/exceptions/field-not-a-string-or-null.exception.js +0 -19
- package/src/exceptions/field-not-a-string-or-null.exception.js.map +0 -1
- package/src/exceptions/field-not-a-string.exception.js +0 -19
- package/src/exceptions/field-not-a-string.exception.js.map +0 -1
- package/src/exceptions/missing-field.exception.js +0 -19
- package/src/exceptions/missing-field.exception.js.map +0 -1
- package/src/exceptions/not-an-object.exception.js +0 -17
- package/src/exceptions/not-an-object.exception.js.map +0 -1
- package/src/exceptions/unknown-field.exception.js +0 -19
- package/src/exceptions/unknown-field.exception.js.map +0 -1
- package/src/services/json-object.reader.js +0 -89
- package/src/services/json-object.reader.js.map +0 -1
- package/src/types/json-object.js +0 -9
- package/src/types/json-object.js.map +0 -1
- package/src/types/json-value.js +0 -9
- package/src/types/json-value.js.map +0 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { Resources } from "../resources.js";
|
|
9
|
-
import {
|
|
9
|
+
import { WireForm } from "../services/wire-form.js";
|
|
10
10
|
import { FolderReference } from "./folder-reference.js";
|
|
11
11
|
export class ListRequest {
|
|
12
12
|
static method = Resources.listMethod;
|
|
@@ -16,9 +16,8 @@ export class ListRequest {
|
|
|
16
16
|
this.folder = folder;
|
|
17
17
|
}
|
|
18
18
|
static fromJson(value) {
|
|
19
|
-
const reader =
|
|
20
|
-
reader.
|
|
21
|
-
return new ListRequest(FolderReference.fromJson(reader.read(Resources.folderField)));
|
|
19
|
+
const reader = WireForm.read(value, Resources.listRequestModel, ListRequest.FIELDS);
|
|
20
|
+
return new ListRequest(FolderReference.fromJson(reader.readValue(Resources.folderField)));
|
|
22
21
|
}
|
|
23
22
|
toJson() {
|
|
24
23
|
return { [Resources.folderField]: this.folder.toJson() };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/list-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"list-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/list-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,OAAO,WAAW;IACf,MAAM,CAAU,MAAM,GAAW,SAAS,CAAC,UAAU,CAAC;IACrD,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC5D,MAAM,CAAkB;IAExC,YAAmB,MAAuB;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;QACpF,OAAO,IAAI,WAAW,CAAC,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC5F,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Resources } from "../resources.js";
|
|
9
9
|
import { CheckpointId } from "../services/checkpoint-id.js";
|
|
10
|
-
import { JsonObjectReader } from "../services/json-object.reader.js";
|
|
11
10
|
import { ScopePaths } from "../services/scope-paths.js";
|
|
11
|
+
import { WireForm } from "../services/wire-form.js";
|
|
12
12
|
import { FolderReference } from "./folder-reference.js";
|
|
13
13
|
export class PreviewRequest {
|
|
14
14
|
static method = Resources.previewRestoreMethod;
|
|
@@ -23,9 +23,8 @@ export class PreviewRequest {
|
|
|
23
23
|
this.paths = ScopePaths.of(paths);
|
|
24
24
|
}
|
|
25
25
|
static fromJson(value) {
|
|
26
|
-
const reader =
|
|
27
|
-
reader.
|
|
28
|
-
return new PreviewRequest(FolderReference.fromJson(reader.read(Resources.folderField)), reader.readString(Resources.checkpointField), reader.readStringListOrNull(Resources.pathsField));
|
|
26
|
+
const reader = WireForm.read(value, Resources.previewRequestModel, PreviewRequest.FIELDS);
|
|
27
|
+
return new PreviewRequest(FolderReference.fromJson(reader.readValue(Resources.folderField)), reader.readString(Resources.checkpointField), WireForm.readNullableStringArray(reader, Resources.pathsField));
|
|
29
28
|
}
|
|
30
29
|
toJson() {
|
|
31
30
|
return { [Resources.folderField]: this.folder.toJson(), [Resources.checkpointField]: this.checkpoint, [Resources.pathsField]: ScopePaths.toJson(this.paths) };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/preview-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"preview-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/preview-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,MAAM,OAAO,cAAc;IAClB,MAAM,CAAU,MAAM,GAAW,SAAS,CAAC,oBAAoB,CAAC;IAC/D,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAC7G,UAAU,CAAS;IACnB,MAAM,CAAkB;IACxB,KAAK,CAA2B;IAEhD,YAAmB,MAAuB,EAAE,UAAkB,EAAE,KAA+B;QAC7F,YAAY,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAE/B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,mBAAmB,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;QAC1F,OAAO,IAAI,cAAc,CAAC,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC,EACvI,QAAQ,CAAC,uBAAuB,CAAC,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IACpE,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IAChK,CAAC;CACF"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { PreviewPlanMismatchException } from "../exceptions/preview-plan-mismatch.exception.js";
|
|
9
9
|
import { Resources } from "../resources.js";
|
|
10
|
-
import {
|
|
10
|
+
import { WireForm } from "../services/wire-form.js";
|
|
11
11
|
import { PreviewOutcome } from "./preview-outcome.js";
|
|
12
12
|
import { RestorePlan } from "./restore-plan.js";
|
|
13
13
|
export class PreviewResult {
|
|
@@ -21,10 +21,9 @@ export class PreviewResult {
|
|
|
21
21
|
this.plan = plan;
|
|
22
22
|
}
|
|
23
23
|
static fromJson(value) {
|
|
24
|
-
const reader =
|
|
25
|
-
reader.
|
|
26
|
-
|
|
27
|
-
return new PreviewResult(PreviewOutcome.fromJson(reader.read(Resources.outcomeField)), plan === null ? null : RestorePlan.fromJson(plan));
|
|
24
|
+
const reader = WireForm.read(value, Resources.previewResultModel, PreviewResult.FIELDS);
|
|
25
|
+
const plan = reader.readValue(Resources.planField);
|
|
26
|
+
return new PreviewResult(PreviewOutcome.fromJson(reader.readValue(Resources.outcomeField)), plan === null ? null : RestorePlan.fromJson(plan));
|
|
28
27
|
}
|
|
29
28
|
toJson() {
|
|
30
29
|
return { [Resources.outcomeField]: this.outcome.toJson(), [Resources.planField]: this.plan === null ? null : this.plan.toJson() };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview-result.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/preview-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"preview-result.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/preview-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,aAAa;IAChB,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClF,OAAO,CAAiB;IACxB,IAAI,CAAqB;IAEzC,YAAmB,OAAuB,EAAE,IAAwB;QAClE,IAAI,OAAO,CAAC,SAAS,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;YACvC,MAAM,IAAI,4BAA4B,CAAC,OAAO,CAAC,CAAC;QAElD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,kBAAkB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QACxF,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACnD,OAAO,IAAI,aAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACjJ,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;IACpI,CAAC;CACF"}
|
|
@@ -9,8 +9,8 @@ import { InvalidReadLimitException } from "../exceptions/invalid-read-limit.exce
|
|
|
9
9
|
import { InvalidRelativePathException } from "../exceptions/invalid-relative-path.exception.js";
|
|
10
10
|
import { Resources } from "../resources.js";
|
|
11
11
|
import { CheckpointId } from "../services/checkpoint-id.js";
|
|
12
|
-
import { JsonObjectReader } from "../services/json-object.reader.js";
|
|
13
12
|
import { RelativePath } from "../services/relative-path.js";
|
|
13
|
+
import { WireForm } from "../services/wire-form.js";
|
|
14
14
|
import { DiffTarget } from "./diff-target.js";
|
|
15
15
|
import { FolderReference } from "./folder-reference.js";
|
|
16
16
|
export class ReadRequest {
|
|
@@ -36,10 +36,9 @@ export class ReadRequest {
|
|
|
36
36
|
this.path = path;
|
|
37
37
|
}
|
|
38
38
|
static fromJson(value) {
|
|
39
|
-
const reader =
|
|
40
|
-
reader.
|
|
41
|
-
|
|
42
|
-
return new ReadRequest(FolderReference.fromJson(reader.read(Resources.folderField)), reader.readString(Resources.checkpointField), reader.readString(Resources.pathField), against === null ? null : DiffTarget.fromJson(against), reader.readNumber(Resources.limitField));
|
|
39
|
+
const reader = WireForm.read(value, Resources.readRequestModel, ReadRequest.FIELDS);
|
|
40
|
+
const against = reader.readValue(Resources.againstField);
|
|
41
|
+
return new ReadRequest(FolderReference.fromJson(reader.readValue(Resources.folderField)), reader.readString(Resources.checkpointField), reader.readString(Resources.pathField), against === null ? null : DiffTarget.fromJson(against), reader.readNumber(Resources.limitField));
|
|
43
42
|
}
|
|
44
43
|
toJson() {
|
|
45
44
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/read-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"read-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/read-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,u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,WAAW,CACpB,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,EACjE,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC,EAC5C,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,EACtC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,EACtD,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IAC7C,CAAC;IAEM,MAAM;QACX,OAAO;YACL,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YAC7C,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC,UAAU;YAC5C,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI;YAChC,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YAC9E,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,KAAK;SACnC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -11,7 +11,7 @@ import { ReadOutcomeMismatchException } from "../exceptions/read-outcome-mismatc
|
|
|
11
11
|
import { Resources } from "../resources.js";
|
|
12
12
|
import { Base64 } from "../services/base64.js";
|
|
13
13
|
import { ByteSize } from "../services/byte-size.js";
|
|
14
|
-
import {
|
|
14
|
+
import { WireForm } from "../services/wire-form.js";
|
|
15
15
|
import { ReadOutcome } from "./read-outcome.js";
|
|
16
16
|
export class ReadResult {
|
|
17
17
|
static FIELDS = [Resources.outcomeField, Resources.contentField, Resources.isCutField, Resources.sizeField];
|
|
@@ -32,9 +32,8 @@ export class ReadResult {
|
|
|
32
32
|
return this.content.length < this.size;
|
|
33
33
|
}
|
|
34
34
|
static fromJson(value) {
|
|
35
|
-
const reader =
|
|
36
|
-
reader.
|
|
37
|
-
const result = new ReadResult(ReadOutcome.fromJson(reader.read(Resources.outcomeField)), Base64.decode(reader.readString(Resources.contentField)), reader.readNumber(Resources.sizeField));
|
|
35
|
+
const reader = WireForm.read(value, Resources.readResultModel, ReadResult.FIELDS);
|
|
36
|
+
const result = new ReadResult(ReadOutcome.fromJson(reader.readValue(Resources.outcomeField)), Base64.decode(reader.readString(Resources.contentField)), reader.readNumber(Resources.sizeField));
|
|
38
37
|
const isCut = reader.readBoolean(Resources.isCutField);
|
|
39
38
|
if (isCut !== result.isCut)
|
|
40
39
|
throw new ReadCutMismatchException(isCut);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-result.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/read-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"read-result.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/read-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,UAAU;IACb,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,YA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M,CAAC,WAAW,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACvD,IAAI,KAAK,KAAK,MAAM,CAAC,KAAK;YACxB,MAAM,IAAI,wBAAwB,CAAC,KAAK,CAAC,CAAC;QAC5C,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,MAAM;QACX,OAAO;YACL,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YAC/C,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;YACrD,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,KAAK;YAClC,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI;SACjC,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { InvalidRelativePathException } from "../exceptions/invalid-relative-path.exception.js";
|
|
9
9
|
import { Resources } from "../resources.js";
|
|
10
10
|
import { FolderIdentity } from "../services/folder-identity.js";
|
|
11
|
-
import { JsonObjectReader } from "../services/json-object.reader.js";
|
|
12
11
|
import { RelativePath } from "../services/relative-path.js";
|
|
12
|
+
import { WireForm } from "../services/wire-form.js";
|
|
13
13
|
export class RestoreHeldUpEvent {
|
|
14
14
|
static event = Resources.restoreHeldUpEvent;
|
|
15
15
|
static FIELDS = [Resources.identityField, Resources.pathsField];
|
|
@@ -24,9 +24,8 @@ export class RestoreHeldUpEvent {
|
|
|
24
24
|
this.paths = [...paths];
|
|
25
25
|
}
|
|
26
26
|
static fromJson(value) {
|
|
27
|
-
const reader =
|
|
28
|
-
reader.
|
|
29
|
-
return new RestoreHeldUpEvent(reader.readString(Resources.identityField), reader.readStringList(Resources.pathsField));
|
|
27
|
+
const reader = WireForm.read(value, Resources.restoreHeldUpEventModel, RestoreHeldUpEvent.FIELDS);
|
|
28
|
+
return new RestoreHeldUpEvent(reader.readString(Resources.identityField), reader.readStringArray(Resources.pathsField));
|
|
30
29
|
}
|
|
31
30
|
toJson() {
|
|
32
31
|
return { [Resources.identityField]: this.identity, [Resources.pathsField]: [...this.paths] };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-held-up-event.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-held-up-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"restore-held-up-event.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-held-up-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,OAAO,kBAAkB;IACtB,MAAM,CAAU,KAAK,GAAW,SAAS,CAAC,kBAAkB,CAAC;IAC5D,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,aAAa,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACpF,QAAQ,CAAS;IACjB,KAAK,CAAoB;IAEzC,YAAmB,QAAgB,EAAE,KAAwB;QAC3D,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC/B,KAAK,MAAM,IAAI,IAAI,KAAK;YACtB,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC;gBAC7B,MAAM,IAAI,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAEjD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IAC1B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAClG,OAAO,IAAI,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IAC1H,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -9,8 +9,8 @@ import { InvalidPlanStateException } from "../exceptions/invalid-plan-state.exce
|
|
|
9
9
|
import { Resources } from "../resources.js";
|
|
10
10
|
import { ByteSize } from "../services/byte-size.js";
|
|
11
11
|
import { CheckpointId } from "../services/checkpoint-id.js";
|
|
12
|
-
import { JsonObjectReader } from "../services/json-object.reader.js";
|
|
13
12
|
import { ScopePaths } from "../services/scope-paths.js";
|
|
13
|
+
import { WireForm } from "../services/wire-form.js";
|
|
14
14
|
import { KeptPath } from "./kept-path.js";
|
|
15
15
|
import { RestoreStep } from "./restore-step.js";
|
|
16
16
|
export class RestorePlan {
|
|
@@ -40,9 +40,8 @@ export class RestorePlan {
|
|
|
40
40
|
this.steps = [...steps];
|
|
41
41
|
}
|
|
42
42
|
static fromJson(value) {
|
|
43
|
-
const reader =
|
|
44
|
-
reader.
|
|
45
|
-
return new RestorePlan(reader.readString(Resources.checkpointField), reader.readList(Resources.stepsField).map(t => RestoreStep.fromJson(t)), reader.readList(Resources.staysField).map(t => KeptPath.fromJson(t)), reader.readNumber(Resources.bytesToWriteField), reader.readNumber(Resources.spaceNeededField), reader.readString(Resources.stateField), reader.readStringListOrNull(Resources.pathsField));
|
|
43
|
+
const reader = WireForm.read(value, Resources.restorePlanModel, RestorePlan.FIELDS);
|
|
44
|
+
return new RestorePlan(reader.readString(Resources.checkpointField), WireForm.readArray(reader, Resources.stepsField).map(t => RestoreStep.fromJson(t)), WireForm.readArray(reader, Resources.staysField).map(t => KeptPath.fromJson(t)), reader.readNumber(Resources.bytesToWriteField), reader.readNumber(Resources.spaceNeededField), reader.readString(Resources.stateField), WireForm.readNullableStringArray(reader, Resources.pathsField));
|
|
46
45
|
}
|
|
47
46
|
toJson() {
|
|
48
47
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-plan.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-plan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"restore-plan.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-plan.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,WAAW;IACd,MAAM,CAAU,MAAM,GAAsB;QAClD,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,UAAU,EAAE,SAAS,CAAC,iBAAiB,EAAE,SAAS,CAAC,gBAAgB,EAAE,SAAS,C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7
|
*/
|
|
8
8
|
import { Resources } from "../resources.js";
|
|
9
|
-
import {
|
|
9
|
+
import { WireForm } from "../services/wire-form.js";
|
|
10
10
|
import { FolderReference } from "./folder-reference.js";
|
|
11
11
|
import { RestorePlan } from "./restore-plan.js";
|
|
12
12
|
export class RestoreRequest {
|
|
@@ -19,9 +19,8 @@ export class RestoreRequest {
|
|
|
19
19
|
this.plan = plan;
|
|
20
20
|
}
|
|
21
21
|
static fromJson(value) {
|
|
22
|
-
const reader =
|
|
23
|
-
reader.
|
|
24
|
-
return new RestoreRequest(FolderReference.fromJson(reader.read(Resources.folderField)), RestorePlan.fromJson(reader.read(Resources.planField)));
|
|
22
|
+
const reader = WireForm.read(value, Resources.restoreRequestModel, RestoreRequest.FIELDS);
|
|
23
|
+
return new RestoreRequest(FolderReference.fromJson(reader.readValue(Resources.folderField)), RestorePlan.fromJson(reader.readValue(Resources.planField)));
|
|
25
24
|
}
|
|
26
25
|
toJson() {
|
|
27
26
|
return { [Resources.folderField]: this.folder.toJson(), [Resources.planField]: this.plan.toJson() };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"restore-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,cAAc;IAClB,MAAM,CAAU,MAAM,GAAW,SAAS,CAAC,aAAa,CAAC;IACxD,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjF,MAAM,CAAkB;IACxB,IAAI,CAAc;IAElC,YAAmB,MAAuB,EAAE,IAAiB;QAC3D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,mBAAmB,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;QAC1F,OAAO,IAAI,cAAc,CAAC,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC5J,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;IACtG,CAAC;CACF"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { RestoreCheckpointsMismatchException } from "../exceptions/restore-checkpoints-mismatch.exception.js";
|
|
9
9
|
import { Resources } from "../resources.js";
|
|
10
|
-
import {
|
|
10
|
+
import { WireForm } from "../services/wire-form.js";
|
|
11
11
|
import { Checkpoint } from "./checkpoint.js";
|
|
12
12
|
import { RestoreOutcome } from "./restore-outcome.js";
|
|
13
13
|
export class RestoreResult {
|
|
@@ -23,11 +23,10 @@ export class RestoreResult {
|
|
|
23
23
|
this.recovered = recovered;
|
|
24
24
|
}
|
|
25
25
|
static fromJson(value) {
|
|
26
|
-
const reader =
|
|
27
|
-
reader.
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
return new RestoreResult(RestoreOutcome.fromJson(reader.read(Resources.outcomeField)), before === null ? null : Checkpoint.fromJson(before), recovered === null ? null : Checkpoint.fromJson(recovered));
|
|
26
|
+
const reader = WireForm.read(value, Resources.restoreResultModel, RestoreResult.FIELDS);
|
|
27
|
+
const before = reader.readValue(Resources.beforeField);
|
|
28
|
+
const recovered = reader.readValue(Resources.recoveredField);
|
|
29
|
+
return new RestoreResult(RestoreOutcome.fromJson(reader.readValue(Resources.outcomeField)), before === null ? null : Checkpoint.fromJson(before), recovered === null ? null : Checkpoint.fromJson(recovered));
|
|
31
30
|
}
|
|
32
31
|
toJson() {
|
|
33
32
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-result.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"restore-result.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,mCAAmC,EAAE,MAAM,yDAAyD,CAAC;AAC9G,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,aAAa;IAChB,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,YAAY,EAAE,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAC9G,MAAM,CAAoB;IAC1B,OAAO,CAAiB;IACxB,SAAS,CAAoB;IAE7C,YAAmB,OAAuB,EAAE,MAAyB,EAAE,SAA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IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YAC3E,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE;SACrF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { InvalidRelativePathException } from "../exceptions/invalid-relative-path.exception.js";
|
|
9
9
|
import { StepSidesMismatchException } from "../exceptions/step-sides-mismatch.exception.js";
|
|
10
10
|
import { Resources } from "../resources.js";
|
|
11
|
-
import { JsonObjectReader } from "../services/json-object.reader.js";
|
|
12
11
|
import { RelativePath } from "../services/relative-path.js";
|
|
12
|
+
import { WireForm } from "../services/wire-form.js";
|
|
13
13
|
import { ChangeSide } from "./change-side.js";
|
|
14
14
|
import { RestoreAction } from "./restore-action.js";
|
|
15
15
|
export class RestoreStep {
|
|
@@ -29,11 +29,10 @@ export class RestoreStep {
|
|
|
29
29
|
this.path = path;
|
|
30
30
|
}
|
|
31
31
|
static fromJson(value) {
|
|
32
|
-
const reader =
|
|
33
|
-
reader.
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
return new RestoreStep(reader.readString(Resources.pathField), RestoreAction.fromJson(reader.read(Resources.actionField)), before === null ? null : ChangeSide.fromJson(before), after === null ? null : ChangeSide.fromJson(after));
|
|
32
|
+
const reader = WireForm.read(value, Resources.restoreStepModel, RestoreStep.FIELDS);
|
|
33
|
+
const before = reader.readValue(Resources.beforeField);
|
|
34
|
+
const after = reader.readValue(Resources.afterField);
|
|
35
|
+
return new RestoreStep(reader.readString(Resources.pathField), RestoreAction.fromJson(reader.readValue(Resources.actionField)), before === null ? null : ChangeSide.fromJson(before), after === null ? null : ChangeSide.fromJson(after));
|
|
37
36
|
}
|
|
38
37
|
toJson() {
|
|
39
38
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restore-step.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-step.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"restore-step.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restore-step.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,OAAO,WAAW;IACd,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAC9H,MAAM,CAAgB;IACtB,KAAK,CAAoB;IACzB,MAAM,CAAoB;IAC1B,IAAI,CAAS;IAE7B,YAAmB,IAAY,EAAE,MAAqB,EAAE,MAAyB,EAAE,KAAwB;QACzG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC;YAC7B,MAAM,IAAI,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,aAAa,CAAC,MAAM,CAAC;YAClH,MAAM,IAAI,0BAA0B,CAAC,MAAM,CAAC,CAAC;QAE/C,IAAI,CAA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,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;SACzE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { Resources } from "../resources.js";
|
|
9
9
|
import { CheckpointId } from "../services/checkpoint-id.js";
|
|
10
10
|
import { FolderIdentity } from "../services/folder-identity.js";
|
|
11
|
-
import {
|
|
11
|
+
import { WireForm } from "../services/wire-form.js";
|
|
12
12
|
export class RestoredEvent {
|
|
13
13
|
static event = Resources.restoredEvent;
|
|
14
14
|
static FIELDS = [Resources.identityField, Resources.checkpointField, Resources.beforeField];
|
|
@@ -24,8 +24,7 @@ export class RestoredEvent {
|
|
|
24
24
|
this.identity = identity;
|
|
25
25
|
}
|
|
26
26
|
static fromJson(value) {
|
|
27
|
-
const reader =
|
|
28
|
-
reader.refuseOtherFields(RestoredEvent.FIELDS);
|
|
27
|
+
const reader = WireForm.read(value, Resources.restoredEventModel, RestoredEvent.FIELDS);
|
|
29
28
|
return new RestoredEvent(reader.readString(Resources.identityField), reader.readString(Resources.checkpointField), reader.readString(Resources.beforeField));
|
|
30
29
|
}
|
|
31
30
|
toJson() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restored-event.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restored-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"restored-event.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/restored-event.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BA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7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { Resources } from "../resources.js";
|
|
9
|
-
import {
|
|
9
|
+
import { WireForm } from "../services/wire-form.js";
|
|
10
10
|
import { FolderUsage } from "./folder-usage.js";
|
|
11
11
|
export class StorageList {
|
|
12
12
|
static FIELDS = [Resources.foldersField];
|
|
@@ -15,9 +15,8 @@ export class StorageList {
|
|
|
15
15
|
this.folders = [...folders];
|
|
16
16
|
}
|
|
17
17
|
static fromJson(value) {
|
|
18
|
-
const reader =
|
|
19
|
-
reader.
|
|
20
|
-
return new StorageList(reader.readList(Resources.foldersField).map(t => FolderUsage.fromJson(t)));
|
|
18
|
+
const reader = WireForm.read(value, Resources.storageListModel, StorageList.FIELDS);
|
|
19
|
+
return new StorageList(WireForm.readArray(reader, Resources.foldersField).map(t => FolderUsage.fromJson(t)));
|
|
21
20
|
}
|
|
22
21
|
toJson() {
|
|
23
22
|
return { [Resources.foldersField]: this.folders.map(t => t.toJson()) };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-list.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/storage-list.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"storage-list.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/storage-list.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,WAAW;IACd,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAC7D,OAAO,CAAyB;IAEhD,YAAmB,OAA+B;QAChD,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,gBAAgB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;QACpF,OAAO,IAAI,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/G,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { Resources } from "../resources.js";
|
|
9
|
-
import {
|
|
9
|
+
import { WireForm } from "../services/wire-form.js";
|
|
10
10
|
export class StorageRequest {
|
|
11
11
|
static method = Resources.storageMethod;
|
|
12
12
|
static fromJson(value) {
|
|
13
|
-
|
|
13
|
+
WireForm.read(value, Resources.storageRequestModel, []);
|
|
14
14
|
return new StorageRequest();
|
|
15
15
|
}
|
|
16
16
|
toJson() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/storage-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"storage-request.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/storage-request.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,OAAO,cAAc;IAClB,MAAM,CAAU,MAAM,GAAW,SAAS,CAAC,aAAa,CAAC;IAEzD,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;QACxD,OAAO,IAAI,cAAc,EAAE,CAAC;IAC9B,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
import { InvalidRelativePathException } from "../exceptions/invalid-relative-path.exception.js";
|
|
9
9
|
import { UnreadCodeMismatchException } from "../exceptions/unread-code-mismatch.exception.js";
|
|
10
10
|
import { Resources } from "../resources.js";
|
|
11
|
-
import { JsonObjectReader } from "../services/json-object.reader.js";
|
|
12
11
|
import { RelativePath } from "../services/relative-path.js";
|
|
12
|
+
import { WireForm } from "../services/wire-form.js";
|
|
13
13
|
import { UnreadReason } from "./unread-reason.js";
|
|
14
14
|
export class UnreadPath {
|
|
15
15
|
static FIELDS = [Resources.pathField, Resources.reasonField, Resources.codeField];
|
|
@@ -26,9 +26,8 @@ export class UnreadPath {
|
|
|
26
26
|
this.code = code;
|
|
27
27
|
}
|
|
28
28
|
static fromJson(value) {
|
|
29
|
-
const reader =
|
|
30
|
-
reader.
|
|
31
|
-
return new UnreadPath(reader.readString(Resources.pathField), UnreadReason.fromJson(reader.read(Resources.reasonField)), reader.readStringOrNull(Resources.codeField));
|
|
29
|
+
const reader = WireForm.read(value, Resources.unreadPathModel, UnreadPath.FIELDS);
|
|
30
|
+
return new UnreadPath(reader.readString(Resources.pathField), UnreadReason.fromJson(reader.readValue(Resources.reasonField)), reader.readNullableString(Resources.codeField));
|
|
32
31
|
}
|
|
33
32
|
toJson() {
|
|
34
33
|
return { [Resources.pathField]: this.path, [Resources.reasonField]: this.reason.toJson(), [Resources.codeField]: this.code };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unread-path.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/unread-path.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"unread-path.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/unread-path.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,OAAO,UAAU;IACb,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtG,IAAI,CAAS;IACb,MAAM,CAAe;IACrB,IAAI,CAAgB;IAEpC,YAAmB,IAAY,EAAE,MAAoB,EAAE,IAAmB;QACxE,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC;YAC7B,MAAM,IAAI,4BAA4B,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,MAAM,KAAK,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;YAC1D,MAAM,IAAI,2BAA2B,CAAC,MAAM,CAAC,CAAC;QAEhD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,eAAe,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;QAClF,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,EAC1H,MAAM,CAAC,kBAAkB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACpD,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;IAC/H,CAAC;CACF"}
|
package/src/resources.js
CHANGED
|
@@ -10,6 +10,7 @@ export class Resources {
|
|
|
10
10
|
static actionField = "action";
|
|
11
11
|
static afterField = "after";
|
|
12
12
|
static againstField = "against";
|
|
13
|
+
static arrayExpected = "Expected an array.";
|
|
13
14
|
static base64Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
14
15
|
static base64DigitMask = 0x3f;
|
|
15
16
|
static base64GroupLength = 4;
|
|
@@ -106,6 +107,7 @@ export class Resources {
|
|
|
106
107
|
static timeField = "time";
|
|
107
108
|
static timePattern = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;
|
|
108
109
|
static toField = "to";
|
|
110
|
+
static unknownField = "The field is not part of this message, which accepts no unknown fields.";
|
|
109
111
|
static unreadPathModel = "UnreadPath";
|
|
110
112
|
static unreadPathsField = "unreadPaths";
|
|
111
113
|
static unreadReasonField = "unreadReason";
|
|
@@ -150,36 +152,12 @@ export class Resources {
|
|
|
150
152
|
static formatInvalidTime(value) {
|
|
151
153
|
return `"${value}" is not a time in UTC with milliseconds, such as 2026-10-18T12:00:00.000Z.`;
|
|
152
154
|
}
|
|
155
|
+
static formatFieldPath(path, field) {
|
|
156
|
+
return `${path}.${field}`;
|
|
157
|
+
}
|
|
153
158
|
static formatLabelTooLong(length) {
|
|
154
159
|
return `A label has at most ${Resources.maximumLabelLength} characters; this one has ${length}.`;
|
|
155
160
|
}
|
|
156
|
-
static formatMissingField(model, field) {
|
|
157
|
-
return `${model}.${field} is missing.`;
|
|
158
|
-
}
|
|
159
|
-
static formatNotABoolean(model, field) {
|
|
160
|
-
return `${model}.${field} must be true or false.`;
|
|
161
|
-
}
|
|
162
|
-
static formatNotAList(model, field) {
|
|
163
|
-
return `${model}.${field} must be a list.`;
|
|
164
|
-
}
|
|
165
|
-
static formatNotANumber(model, field) {
|
|
166
|
-
return `${model}.${field} must be a number.`;
|
|
167
|
-
}
|
|
168
|
-
static formatNotANumberOrNull(model, field) {
|
|
169
|
-
return `${model}.${field} must be a number or null.`;
|
|
170
|
-
}
|
|
171
|
-
static formatNotAnObject(model) {
|
|
172
|
-
return `${model} must be a JSON object.`;
|
|
173
|
-
}
|
|
174
|
-
static formatNotAString(model, field) {
|
|
175
|
-
return `${model}.${field} must be a string.`;
|
|
176
|
-
}
|
|
177
|
-
static formatNotAStringList(model, field) {
|
|
178
|
-
return `${model}.${field} must be a list of strings.`;
|
|
179
|
-
}
|
|
180
|
-
static formatNotAStringOrNull(model, field) {
|
|
181
|
-
return `${model}.${field} must be a string or null.`;
|
|
182
|
-
}
|
|
183
161
|
static formatPlanMismatch(outcome) {
|
|
184
162
|
return `A preview result holds a plan exactly when its outcome is Planned; the outcome is ${outcome}.`;
|
|
185
163
|
}
|
|
@@ -213,9 +191,6 @@ export class Resources {
|
|
|
213
191
|
static formatUnknownDeleteFolderOutcome(value) {
|
|
214
192
|
return `"${value}" is not a known delete outcome.`;
|
|
215
193
|
}
|
|
216
|
-
static formatUnknownField(model, field) {
|
|
217
|
-
return `${model}.${field} is not a known field.`;
|
|
218
|
-
}
|
|
219
194
|
static formatUnknownKeepReason(value) {
|
|
220
195
|
return `"${value}" is not a known reason a restore keeps a path.`;
|
|
221
196
|
}
|
package/src/resources.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../../src/noldova.checkpoints.protocol/src/resources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,OAAO,SAAS;IACb,MAAM,CAAU,mBAAmB,GAAW,gDAAgD,CAAC;IAC/F,MAAM,CAAU,WAAW,GAAW,QAAQ,CAAC;IAC/C,MAAM,CAAU,UAAU,GAAW,OAAO,CAAC;IAC7C,MAAM,CAAU,YAAY,GAAW,SAAS,CAAC;IACjD,MAAM,CAAU,cAAc,GAAW,kEAAkE,CAAC;IAC5G,MAAM,CAAU,eAAe,GAAW,IAAI,CAAC;IAC/C,MAAM,CAAU,iBAAiB,GAAW,CAAC,CAAC;IAC9C,MAAM,CAAU,aAAa,GAAW,GAAG,CAAC;IAC5C,MAAM,CAAU,aAAa,GAAW,kEAAkE,CAAC;IAC3G,MAAM,CAAU,qBAAqB,GAAW,KAAK,CAAC;IACtD,MAAM,CAAU,WAAW,GAAW,QAAQ,CAAC;IAC/C,MAAM,CAAU,kBAAkB,GAAW,CAAC,CAAC;IAC/C,MAAM,CAAU,WAAW,GAAW,CAAC,CAAC;IACxC,MAAM,CAAU,QAAQ,GAAW,IAAI,CAAC;IACxC,MAAM,CAAU,UAAU,GAAW,OAAO,CAAC;IAC7C,MAAM,CAAU,iBAAiB,GAAW,cAAc,CAAC;IAC3D,MAAM,CAAU,aAAa,GAAW,qBAAqB,CAAC;IAC9D,MAAM,CAAU,kBAAkB,GAAW,2BAA2B,CAAC;IACzE,MAAM,CAAU,uBAAuB,GAAW,oBAA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C,KAAa;QACnD,OAAO,IAAI,KAAK,iCAAiC,CAAC;IACpD,CAAC;IAEM,MAAM,CAAC,2BAA2B,CAAC,KAAa;QACrD,OAAO,IAAI,KAAK,mCAAmC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,gCAAgC,CAAC,KAAa;QAC1D,OAAO,IAAI,KAAK,kCAAkC,CAAC;IACrD,CAAC;IAEM,MAAM,CAAC,uBAAuB,CAAC,KAAa;QACjD,OAAO,IAAI,KAAK,iDAAiD,CAAC;IACpE,CAAC;IAEM,MAAM,CAAC,qBAAqB,CAAC,KAAa;QAC/C,OAAO,IAAI,KAAK,gCAAgC,CAAC;IACnD,CAAC;IAEM,MAAM,CAAC,2BAA2B,CAAC,KAAa;QACrD,OAAO,IAAI,KAAK,mCAAmC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,wBAAwB,CAAC,KAAa;QAClD,OAAO,IAAI,KAAK,gCAAgC,CAAC;IACnD,CAAC;IAEM,MAAM,CAAC,0BAA0B,CAAC,KAAa;QACpD,OAAO,IAAI,KAAK,kCAAkC,CAAC;IACrD,CAAC;IAEM,MAAM,CAAC,2BAA2B,CAAC,KAAa;QACrD,OAAO,IAAI,KAAK,mCAAmC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,yBAAyB,CAAC,KAAa;QACnD,OAAO,IAAI,KAAK,2DAA2D,CAAC;IAC9E,CAAC;IAEM,MAAM,CAAC,wBAAwB,CAAC,MAAc;QACnD,OAAO,uGAAuG,MAAM,GAAG,CAAC;IAC1H,CAAC;IAEM,MAAM,CAAC,0BAA0B,CAAC,MAAc;QACrD,OAAO,+FAA+F,MAAM,GAAG,CAAC;IAClH,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope-paths.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/services/scope-paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"scope-paths.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/services/scope-paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,OAAO,UAAU;IACd,MAAM,CAAC,EAAE,CAAC,KAA+B;QAC9C,IAAI,KAAK,KAAK,IAAI;YAChB,OAAO,IAAI,CAAC;QACd,KAAK,MAAM,IAAI,IAAI,KAAK;YACtB,IAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC;gBAC9E,MAAM,IAAI,4BAA4B,CAAC,IAAI,CAAC,CAAC;QACjD,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,MAAM,CAAC,KAA+B;QAClD,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;IAC5C,CAAC;CACF"}
|