@noldova/checkpoints 0.0.0-stage → 0.0.1
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/LICENSE +21 -0
- package/module.json +15 -0
- package/package.json +49 -4
- package/settings.json +15 -0
- package/src/api/index.d.ts +1150 -0
- package/src/api/index.js +34 -0
- package/src/api/index.js.map +1 -0
- package/src/exceptions/checkpoint-file-missing.exception.js +17 -0
- package/src/exceptions/checkpoint-file-missing.exception.js.map +1 -0
- package/src/exceptions/checkpoints.exception.js +14 -0
- package/src/exceptions/checkpoints.exception.js.map +1 -0
- package/src/exceptions/git-exited.exception.js +21 -0
- package/src/exceptions/git-exited.exception.js.map +1 -0
- package/src/exceptions/git-manifest-invalid.exception.js +18 -0
- package/src/exceptions/git-manifest-invalid.exception.js.map +1 -0
- package/src/exceptions/git-missing.exception.js +18 -0
- package/src/exceptions/git-missing.exception.js.map +1 -0
- package/src/exceptions/git-stopped.exception.js +19 -0
- package/src/exceptions/git-stopped.exception.js.map +1 -0
- package/src/exceptions/git.exception.js +14 -0
- package/src/exceptions/git.exception.js.map +1 -0
- package/src/exceptions/ignore-rules-mismatch.exception.js +17 -0
- package/src/exceptions/ignore-rules-mismatch.exception.js.map +1 -0
- package/src/exceptions/journal-field-missing.exception.js +19 -0
- package/src/exceptions/journal-field-missing.exception.js.map +1 -0
- package/src/exceptions/restore-folder-changed.exception.js +19 -0
- package/src/exceptions/restore-folder-changed.exception.js.map +1 -0
- package/src/exceptions/restore-path-changed.exception.js +17 -0
- package/src/exceptions/restore-path-changed.exception.js.map +1 -0
- package/src/exceptions/restore-path-in-the-way.exception.js +17 -0
- package/src/exceptions/restore-path-in-the-way.exception.js.map +1 -0
- package/src/exceptions/restore-path-occupied.exception.js +17 -0
- package/src/exceptions/restore-path-occupied.exception.js.map +1 -0
- package/src/exceptions/restore-step-failed.exception.js +18 -0
- package/src/exceptions/restore-step-failed.exception.js.map +1 -0
- package/src/exceptions/restore-step.exception.js +14 -0
- package/src/exceptions/restore-step.exception.js.map +1 -0
- package/src/exceptions/script-step-missing.exception.js +17 -0
- package/src/exceptions/script-step-missing.exception.js.map +1 -0
- package/src/exceptions/staged-file-missing.exception.js +17 -0
- package/src/exceptions/staged-file-missing.exception.js.map +1 -0
- package/src/exceptions/store-answers-mismatch.exception.js +19 -0
- package/src/exceptions/store-answers-mismatch.exception.js.map +1 -0
- package/src/exceptions/store-count-missing.exception.js +17 -0
- package/src/exceptions/store-count-missing.exception.js.map +1 -0
- package/src/exceptions/store-field-not-a-boolean.exception.js +17 -0
- package/src/exceptions/store-field-not-a-boolean.exception.js.map +1 -0
- package/src/exceptions/store-field-not-a-string-list.exception.js +17 -0
- package/src/exceptions/store-field-not-a-string-list.exception.js.map +1 -0
- package/src/exceptions/store-file-unreadable.exception.js +18 -0
- package/src/exceptions/store-file-unreadable.exception.js.map +1 -0
- package/src/exceptions/store-object-missing.exception.js +17 -0
- package/src/exceptions/store-object-missing.exception.js.map +1 -0
- package/src/exceptions/store-object-not-a-blob.exception.js +19 -0
- package/src/exceptions/store-object-not-a-blob.exception.js.map +1 -0
- package/src/exceptions/store.exception.js +14 -0
- package/src/exceptions/store.exception.js.map +1 -0
- package/src/exceptions/tree-line-malformed.exception.js +17 -0
- package/src/exceptions/tree-line-malformed.exception.js.map +1 -0
- package/src/exceptions/unexpected-store-object.exception.js +17 -0
- package/src/exceptions/unexpected-store-object.exception.js.map +1 -0
- package/src/exceptions/unknown-entry-kind.exception.js +17 -0
- package/src/exceptions/unknown-entry-kind.exception.js.map +1 -0
- package/src/exceptions/unknown-git-mode.exception.js +17 -0
- package/src/exceptions/unknown-git-mode.exception.js.map +1 -0
- package/src/exceptions/unknown-journal-record.exception.js +17 -0
- package/src/exceptions/unknown-journal-record.exception.js.map +1 -0
- package/src/exceptions/unknown-link-kind.exception.js +17 -0
- package/src/exceptions/unknown-link-kind.exception.js.map +1 -0
- package/src/exceptions/unsupported-store-format.exception.js +17 -0
- package/src/exceptions/unsupported-store-format.exception.js.map +1 -0
- package/src/models/byte-set.js +31 -0
- package/src/models/byte-set.js.map +1 -0
- package/src/models/checkpoint-record.js +76 -0
- package/src/models/checkpoint-record.js.map +1 -0
- package/src/models/depth-order.js +23 -0
- package/src/models/depth-order.js.map +1 -0
- package/src/models/entry-kind.js +48 -0
- package/src/models/entry-kind.js.map +1 -0
- package/src/models/finished-restore.js +18 -0
- package/src/models/finished-restore.js.map +1 -0
- package/src/models/folder-file.js +20 -0
- package/src/models/folder-file.js.map +1 -0
- package/src/models/folder-index.js +41 -0
- package/src/models/folder-index.js.map +1 -0
- package/src/models/folder-record.js +27 -0
- package/src/models/folder-record.js.map +1 -0
- package/src/models/folder-store.js +38 -0
- package/src/models/folder-store.js.map +1 -0
- package/src/models/git-build.js +18 -0
- package/src/models/git-build.js.map +1 -0
- package/src/models/git-limits.js +20 -0
- package/src/models/git-limits.js.map +1 -0
- package/src/models/housekeeping-record.js +27 -0
- package/src/models/housekeeping-record.js.map +1 -0
- package/src/models/ignore-file.js +32 -0
- package/src/models/ignore-file.js.map +1 -0
- package/src/models/ignore-pattern.js +57 -0
- package/src/models/ignore-pattern.js.map +1 -0
- package/src/models/ignore-record.js +32 -0
- package/src/models/ignore-record.js.map +1 -0
- package/src/models/ignore-rules.js +48 -0
- package/src/models/ignore-rules.js.map +1 -0
- package/src/models/import-result.js +16 -0
- package/src/models/import-result.js.map +1 -0
- package/src/models/index-entry.js +56 -0
- package/src/models/index-entry.js.map +1 -0
- package/src/models/journal-reading.js +19 -0
- package/src/models/journal-reading.js.map +1 -0
- package/src/models/journal-record-type.js +43 -0
- package/src/models/journal-record-type.js.map +1 -0
- package/src/models/journal-record.js +94 -0
- package/src/models/journal-record.js.map +1 -0
- package/src/models/link-kind.js +27 -0
- package/src/models/link-kind.js.map +1 -0
- package/src/models/link-record.js +28 -0
- package/src/models/link-record.js.map +1 -0
- package/src/models/loaded-checkpoint.js +16 -0
- package/src/models/loaded-checkpoint.js.map +1 -0
- package/src/models/newest-checkpoint.js +16 -0
- package/src/models/newest-checkpoint.js.map +1 -0
- package/src/models/no-plan.js +20 -0
- package/src/models/no-plan.js.map +1 -0
- package/src/models/object-batch.js +29 -0
- package/src/models/object-batch.js.map +1 -0
- package/src/models/object-counts.js +35 -0
- package/src/models/object-counts.js.map +1 -0
- package/src/models/pending-change.js +22 -0
- package/src/models/pending-change.js.map +1 -0
- package/src/models/planned-restore.js +22 -0
- package/src/models/planned-restore.js.map +1 -0
- package/src/models/read-failure.js +37 -0
- package/src/models/read-failure.js.map +1 -0
- package/src/models/restore-run.js +28 -0
- package/src/models/restore-run.js.map +1 -0
- package/src/models/restore-script.js +82 -0
- package/src/models/restore-script.js.map +1 -0
- package/src/models/scheduled-call.js +17 -0
- package/src/models/scheduled-call.js.map +1 -0
- package/src/models/script-step.js +72 -0
- package/src/models/script-step.js.map +1 -0
- package/src/models/side-content.js +16 -0
- package/src/models/side-content.js.map +1 -0
- package/src/models/side-entry.js +21 -0
- package/src/models/side-entry.js.map +1 -0
- package/src/models/side-file.js +19 -0
- package/src/models/side-file.js.map +1 -0
- package/src/models/side-folder.js +19 -0
- package/src/models/side-folder.js.map +1 -0
- package/src/models/side-listing.js +49 -0
- package/src/models/side-listing.js.map +1 -0
- package/src/models/staged-blob.js +20 -0
- package/src/models/staged-blob.js.map +1 -0
- package/src/models/staged-step.js +16 -0
- package/src/models/staged-step.js.map +1 -0
- package/src/models/stored-object.js +26 -0
- package/src/models/stored-object.js.map +1 -0
- package/src/models/tree-file.js +14 -0
- package/src/models/tree-file.js.map +1 -0
- package/src/models/tree-listing.js +39 -0
- package/src/models/tree-listing.js.map +1 -0
- package/src/models/unhashed-file.js +16 -0
- package/src/models/unhashed-file.js.map +1 -0
- package/src/models/walk-result.js +79 -0
- package/src/models/walk-result.js.map +1 -0
- package/src/models/walked-child.js +16 -0
- package/src/models/walked-child.js.map +1 -0
- package/src/models/walked-entry.js +31 -0
- package/src/models/walked-entry.js.map +1 -0
- package/src/models/walked-listing.js +16 -0
- package/src/models/walked-listing.js.map +1 -0
- package/src/models/wildcard-pattern.js +19 -0
- package/src/models/wildcard-pattern.js.map +1 -0
- package/src/models/write-meter.js +16 -0
- package/src/models/write-meter.js.map +1 -0
- package/src/resources.js +564 -0
- package/src/resources.js.map +1 -0
- package/src/runtime-part.js +22 -0
- package/src/runtime-part.js.map +1 -0
- package/src/services/batch-output.parser.js +65 -0
- package/src/services/batch-output.parser.js.map +1 -0
- package/src/services/blob-batch.writer.js +86 -0
- package/src/services/blob-batch.writer.js.map +1 -0
- package/src/services/blob-stager.js +41 -0
- package/src/services/blob-stager.js.map +1 -0
- package/src/services/capture-pause.js +37 -0
- package/src/services/capture-pause.js.map +1 -0
- package/src/services/case-probe.js +32 -0
- package/src/services/case-probe.js.map +1 -0
- package/src/services/change-describer.js +38 -0
- package/src/services/change-describer.js.map +1 -0
- package/src/services/checkpoint-capture.js +153 -0
- package/src/services/checkpoint-capture.js.map +1 -0
- package/src/services/checkpoint-comparer.js +37 -0
- package/src/services/checkpoint-comparer.js.map +1 -0
- package/src/services/checkpoint-file.reader.js +146 -0
- package/src/services/checkpoint-file.reader.js.map +1 -0
- package/src/services/checkpoint-id-source.js +27 -0
- package/src/services/checkpoint-id-source.js.map +1 -0
- package/src/services/checkpoint-lister.js +63 -0
- package/src/services/checkpoint-lister.js.map +1 -0
- package/src/services/checkpoints-host.js +184 -0
- package/src/services/checkpoints-host.js.map +1 -0
- package/src/services/checkpoints.service.js +10 -0
- package/src/services/checkpoints.service.js.map +1 -0
- package/src/services/clock.js +26 -0
- package/src/services/clock.js.map +1 -0
- package/src/services/command-deadline.js +34 -0
- package/src/services/command-deadline.js.map +1 -0
- package/src/services/entry.reader.js +84 -0
- package/src/services/entry.reader.js.map +1 -0
- package/src/services/failures.js +55 -0
- package/src/services/failures.js.map +1 -0
- package/src/services/fast-import-leftovers.js +35 -0
- package/src/services/fast-import-leftovers.js.map +1 -0
- package/src/services/folder-deleter.js +86 -0
- package/src/services/folder-deleter.js.map +1 -0
- package/src/services/folder-file.reader.js +78 -0
- package/src/services/folder-file.reader.js.map +1 -0
- package/src/services/folder-queue.js +27 -0
- package/src/services/folder-queue.js.map +1 -0
- package/src/services/folder-sync.js +25 -0
- package/src/services/folder-sync.js.map +1 -0
- package/src/services/folder-walker.js +123 -0
- package/src/services/folder-walker.js.map +1 -0
- package/src/services/free-space.js +30 -0
- package/src/services/free-space.js.map +1 -0
- package/src/services/git-build.locator.js +67 -0
- package/src/services/git-build.locator.js.map +1 -0
- package/src/services/git-path.js +21 -0
- package/src/services/git-path.js.map +1 -0
- package/src/services/git-process.js +127 -0
- package/src/services/git-process.js.map +1 -0
- package/src/services/git-runner.js +235 -0
- package/src/services/git-runner.js.map +1 -0
- package/src/services/housekeeping-schedule.js +77 -0
- package/src/services/housekeeping-schedule.js.map +1 -0
- package/src/services/ignore-file.reader.js +41 -0
- package/src/services/ignore-file.reader.js.map +1 -0
- package/src/services/input-writer.js +67 -0
- package/src/services/input-writer.js.map +1 -0
- package/src/services/line-diff.js +32 -0
- package/src/services/line-diff.js.map +1 -0
- package/src/services/link-probe.js +22 -0
- package/src/services/link-probe.js.map +1 -0
- package/src/services/listing-comparer.js +41 -0
- package/src/services/listing-comparer.js.map +1 -0
- package/src/services/module-activation.js +42 -0
- package/src/services/module-activation.js.map +1 -0
- package/src/services/name-decoder.js +30 -0
- package/src/services/name-decoder.js.map +1 -0
- package/src/services/object.reader.js +40 -0
- package/src/services/object.reader.js.map +1 -0
- package/src/services/path-guard.js +45 -0
- package/src/services/path-guard.js.map +1 -0
- package/src/services/plan-state.js +31 -0
- package/src/services/plan-state.js.map +1 -0
- package/src/services/relative-path.js +18 -0
- package/src/services/relative-path.js.map +1 -0
- package/src/services/repository-name.js +14 -0
- package/src/services/repository-name.js.map +1 -0
- package/src/services/restore-applier.js +175 -0
- package/src/services/restore-applier.js.map +1 -0
- package/src/services/restore-journal.js +120 -0
- package/src/services/restore-journal.js.map +1 -0
- package/src/services/restore-paths.js +130 -0
- package/src/services/restore-paths.js.map +1 -0
- package/src/services/restore-planner.js +114 -0
- package/src/services/restore-planner.js.map +1 -0
- package/src/services/restore-rollback.js +159 -0
- package/src/services/restore-rollback.js.map +1 -0
- package/src/services/restore-runner.js +221 -0
- package/src/services/restore-runner.js.map +1 -0
- package/src/services/restore-scope.js +42 -0
- package/src/services/restore-scope.js.map +1 -0
- package/src/services/side-loader.js +83 -0
- package/src/services/side-loader.js.map +1 -0
- package/src/services/storage-reader.js +80 -0
- package/src/services/storage-reader.js.map +1 -0
- package/src/services/store-file.js +54 -0
- package/src/services/store-file.js.map +1 -0
- package/src/services/store-format.js +30 -0
- package/src/services/store-format.js.map +1 -0
- package/src/services/store-housekeeping.js +66 -0
- package/src/services/store-housekeeping.js.map +1 -0
- package/src/services/store-opener.js +31 -0
- package/src/services/store-opener.js.map +1 -0
- package/src/services/store-reads.js +38 -0
- package/src/services/store-reads.js.map +1 -0
- package/src/services/text-probe.js +27 -0
- package/src/services/text-probe.js.map +1 -0
- package/src/services/tree-lister.js +20 -0
- package/src/services/tree-lister.js.map +1 -0
- package/src/services/wildcard.parser.js +152 -0
- package/src/services/wildcard.parser.js.map +1 -0
- package/README.md +0 -3
package/src/api/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
export { CheckpointFileMissingException } from "../exceptions/checkpoint-file-missing.exception.js";
|
|
9
|
+
export { CheckpointsException } from "../exceptions/checkpoints.exception.js";
|
|
10
|
+
export { GitException } from "../exceptions/git.exception.js";
|
|
11
|
+
export { GitExitedException } from "../exceptions/git-exited.exception.js";
|
|
12
|
+
export { GitManifestInvalidException } from "../exceptions/git-manifest-invalid.exception.js";
|
|
13
|
+
export { GitMissingException } from "../exceptions/git-missing.exception.js";
|
|
14
|
+
export { GitStoppedException } from "../exceptions/git-stopped.exception.js";
|
|
15
|
+
export { IgnoreRulesMismatchException } from "../exceptions/ignore-rules-mismatch.exception.js";
|
|
16
|
+
export { JournalFieldMissingException } from "../exceptions/journal-field-missing.exception.js";
|
|
17
|
+
export { ScriptStepMissingException } from "../exceptions/script-step-missing.exception.js";
|
|
18
|
+
export { StoreException } from "../exceptions/store.exception.js";
|
|
19
|
+
export { StoreAnswersMismatchException } from "../exceptions/store-answers-mismatch.exception.js";
|
|
20
|
+
export { StoreFieldNotABooleanException } from "../exceptions/store-field-not-a-boolean.exception.js";
|
|
21
|
+
export { StoreFieldNotAStringListException } from "../exceptions/store-field-not-a-string-list.exception.js";
|
|
22
|
+
export { StoreFileUnreadableException } from "../exceptions/store-file-unreadable.exception.js";
|
|
23
|
+
export { StoreObjectMissingException } from "../exceptions/store-object-missing.exception.js";
|
|
24
|
+
export { StoreObjectNotABlobException } from "../exceptions/store-object-not-a-blob.exception.js";
|
|
25
|
+
export { TreeLineMalformedException } from "../exceptions/tree-line-malformed.exception.js";
|
|
26
|
+
export { UnexpectedStoreObjectException } from "../exceptions/unexpected-store-object.exception.js";
|
|
27
|
+
export { UnknownEntryKindException } from "../exceptions/unknown-entry-kind.exception.js";
|
|
28
|
+
export { UnknownGitModeException } from "../exceptions/unknown-git-mode.exception.js";
|
|
29
|
+
export { UnknownJournalRecordException } from "../exceptions/unknown-journal-record.exception.js";
|
|
30
|
+
export { UnknownLinkKindException } from "../exceptions/unknown-link-kind.exception.js";
|
|
31
|
+
export { UnsupportedStoreFormatException } from "../exceptions/unsupported-store-format.exception.js";
|
|
32
|
+
export { RuntimePart } from "../runtime-part.js";
|
|
33
|
+
export { CheckpointsService } from "../services/checkpoints.service.js";
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,0DAA0D,CAAC;AAC7G,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAClG,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,8BAA8B,EAAE,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class CheckpointFileMissingException extends StoreException {
|
|
11
|
+
commit;
|
|
12
|
+
constructor(commit) {
|
|
13
|
+
super(Resources.formatUnreadableStore(Resources.checkpointFile, Resources.formatMissingObject(commit)));
|
|
14
|
+
this.commit = commit;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=checkpoint-file-missing.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkpoint-file-missing.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/checkpoint-file-missing.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,8BAA+B,SAAQ,cAAc;IAChD,MAAM,CAAS;IAE/B,YAAmB,MAAc;QAC/B,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC,SAAS,CAAC,cAAc,EAAE,SAAS,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAExG,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Exception } from "@noldova/context.exceptions";
|
|
9
|
+
export class CheckpointsException extends Exception {
|
|
10
|
+
constructor(message, options) {
|
|
11
|
+
super(message, options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=checkpoints.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkpoints.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/checkpoints.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE/E,MAAM,OAAgB,oBAAqB,SAAQ,SAAS;IAC1D,YAAsB,OAAe,EAAE,OAA0B;QAC/D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { GitException } from "./git.exception.js";
|
|
10
|
+
export class GitExitedException extends GitException {
|
|
11
|
+
command;
|
|
12
|
+
errors;
|
|
13
|
+
exitCode;
|
|
14
|
+
constructor(command, exitCode, errors) {
|
|
15
|
+
super(Resources.formatGitExited(command, exitCode, errors));
|
|
16
|
+
this.command = command;
|
|
17
|
+
this.errors = errors;
|
|
18
|
+
this.exitCode = exitCode;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=git-exited.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-exited.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/git-exited.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,OAAO,kBAAmB,SAAQ,YAAY;IACzB,OAAO,CAAS;IAChB,MAAM,CAAS;IACxB,QAAQ,CAAS;IAEjC,YAAmB,OAAe,EAAE,QAAgB,EAAE,MAAc;QAClE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;QAE5D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ExceptionOptions } from "@noldova/context.exceptions";
|
|
9
|
+
import { Resources } from "../resources.js";
|
|
10
|
+
import { CheckpointsException } from "./checkpoints.exception.js";
|
|
11
|
+
export class GitManifestInvalidException extends CheckpointsException {
|
|
12
|
+
manifestFile;
|
|
13
|
+
constructor(manifestFile, cause) {
|
|
14
|
+
super(Resources.formatGitManifestInvalid(manifestFile, cause.message), new ExceptionOptions(cause));
|
|
15
|
+
this.manifestFile = manifestFile;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=git-manifest-invalid.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-manifest-invalid.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/git-manifest-invalid.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,OAAO,2BAA4B,SAAQ,oBAAoB;IACnD,YAAY,CAAS;IAErC,YAAmB,YAAoB,EAAE,KAAY;QACnD,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;QAEpG,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ExceptionOptions } from "@noldova/context.exceptions";
|
|
9
|
+
import { Resources } from "../resources.js";
|
|
10
|
+
import { CheckpointsException } from "./checkpoints.exception.js";
|
|
11
|
+
export class GitMissingException extends CheckpointsException {
|
|
12
|
+
packageName;
|
|
13
|
+
constructor(packageName, cause) {
|
|
14
|
+
super(Resources.formatGitMissing(packageName), new ExceptionOptions(cause));
|
|
15
|
+
this.packageName = packageName;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=git-missing.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-missing.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/git-missing.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,OAAO,mBAAoB,SAAQ,oBAAoB;IAC3C,WAAW,CAAS;IAEpC,YAAmB,WAAmB,EAAE,KAAY;QAClD,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;QAE5E,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { GitException } from "./git.exception.js";
|
|
10
|
+
export class GitStoppedException extends GitException {
|
|
11
|
+
command;
|
|
12
|
+
errors;
|
|
13
|
+
constructor(command, errors) {
|
|
14
|
+
super(Resources.formatGitStopped(command, errors));
|
|
15
|
+
this.command = command;
|
|
16
|
+
this.errors = errors;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=git-stopped.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-stopped.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/git-stopped.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,MAAM,OAAO,mBAAoB,SAAQ,YAAY;IAC1B,OAAO,CAAS;IAChB,MAAM,CAAS;IAExC,YAAmB,OAAe,EAAE,MAAc;QAChD,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;QAEnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { CheckpointsException } from "./checkpoints.exception.js";
|
|
9
|
+
export class GitException extends CheckpointsException {
|
|
10
|
+
constructor(message, options) {
|
|
11
|
+
super(message, options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=git.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/git.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,OAAgB,YAAa,SAAQ,oBAAoB;IAI7D,YAAsB,OAAe,EAAE,OAA0B;QAC/D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class IgnoreRulesMismatchException extends StoreException {
|
|
11
|
+
mode;
|
|
12
|
+
constructor(mode) {
|
|
13
|
+
super(Resources.formatIgnoreRulesMismatch(mode.value));
|
|
14
|
+
this.mode = mode;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ignore-rules-mismatch.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore-rules-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/ignore-rules-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,4BAA6B,SAAQ,cAAc;IAC9C,IAAI,CAAc;IAElC,YAAmB,IAAiB;QAClC,KAAK,CAAC,SAAS,CAAC,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAEvD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class JournalFieldMissingException extends StoreException {
|
|
11
|
+
field;
|
|
12
|
+
model;
|
|
13
|
+
constructor(model, field) {
|
|
14
|
+
super(Resources.formatUnreadableStore(Resources.restoreFile, Resources.formatJournalFieldMissing(model, field)));
|
|
15
|
+
this.field = field;
|
|
16
|
+
this.model = model;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=journal-field-missing.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journal-field-missing.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/journal-field-missing.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,4BAA6B,SAAQ,cAAc;IAC9C,KAAK,CAAS;IACd,KAAK,CAAS;IAE9B,YAAmB,KAAa,EAAE,KAAa;QAC7C,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,yBAAyB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QAEjH,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { RestoreStepException } from "./restore-step.exception.js";
|
|
10
|
+
export class RestoreFolderChangedException extends RestoreStepException {
|
|
11
|
+
folder;
|
|
12
|
+
path;
|
|
13
|
+
constructor(path, folder) {
|
|
14
|
+
super(Resources.formatStepFailed(path, Resources.formatFolderChanged(folder)));
|
|
15
|
+
this.folder = folder;
|
|
16
|
+
this.path = path;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=restore-folder-changed.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-folder-changed.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/restore-folder-changed.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,OAAO,6BAA8B,SAAQ,oBAAoB;IACrD,MAAM,CAAS;IACN,IAAI,CAAS;IAEtC,YAAmB,IAAY,EAAE,MAAc;QAC7C,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAE/E,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { RestoreStepException } from "./restore-step.exception.js";
|
|
10
|
+
export class RestorePathChangedException extends RestoreStepException {
|
|
11
|
+
path;
|
|
12
|
+
constructor(path) {
|
|
13
|
+
super(Resources.formatStepFailed(path, Resources.changedReason));
|
|
14
|
+
this.path = path;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=restore-path-changed.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-path-changed.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/restore-path-changed.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,OAAO,2BAA4B,SAAQ,oBAAoB;IAC1C,IAAI,CAAS;IAEtC,YAAmB,IAAY;QAC7B,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;QAEjE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { RestoreStepException } from "./restore-step.exception.js";
|
|
10
|
+
export class RestorePathInTheWayException extends RestoreStepException {
|
|
11
|
+
path;
|
|
12
|
+
constructor(path) {
|
|
13
|
+
super(Resources.formatStepFailed(path, Resources.inTheWayReason));
|
|
14
|
+
this.path = path;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=restore-path-in-the-way.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-path-in-the-way.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/restore-path-in-the-way.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,OAAO,4BAA6B,SAAQ,oBAAoB;IAC3C,IAAI,CAAS;IAEtC,YAAmB,IAAY;QAC7B,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;QAElE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { RestoreStepException } from "./restore-step.exception.js";
|
|
10
|
+
export class RestorePathOccupiedException extends RestoreStepException {
|
|
11
|
+
path;
|
|
12
|
+
constructor(path) {
|
|
13
|
+
super(Resources.formatStepFailed(path, Resources.occupiedReason));
|
|
14
|
+
this.path = path;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=restore-path-occupied.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-path-occupied.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/restore-path-occupied.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,OAAO,4BAA6B,SAAQ,oBAAoB;IAC3C,IAAI,CAAS;IAEtC,YAAmB,IAAY;QAC7B,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;QAElE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ExceptionOptions } from "@noldova/context.exceptions";
|
|
9
|
+
import { Resources } from "../resources.js";
|
|
10
|
+
import { RestoreStepException } from "./restore-step.exception.js";
|
|
11
|
+
export class RestoreStepFailedException extends RestoreStepException {
|
|
12
|
+
path;
|
|
13
|
+
constructor(path, cause) {
|
|
14
|
+
super(Resources.formatStepFailed(path, cause.message), new ExceptionOptions(cause));
|
|
15
|
+
this.path = path;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=restore-step-failed.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-step-failed.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/restore-step-failed.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,OAAO,0BAA2B,SAAQ,oBAAoB;IACzC,IAAI,CAAS;IAEtC,YAAmB,IAAY,EAAE,KAAY;QAC3C,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;QAEpF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { CheckpointsException } from "./checkpoints.exception.js";
|
|
9
|
+
export class RestoreStepException extends CheckpointsException {
|
|
10
|
+
constructor(message, options) {
|
|
11
|
+
super(message, options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=restore-step.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-step.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/restore-step.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,OAAgB,oBAAqB,SAAQ,oBAAoB;IAGrE,YAAsB,OAAe,EAAE,OAA0B;QAC/D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class ScriptStepMissingException extends StoreException {
|
|
11
|
+
step;
|
|
12
|
+
constructor(step) {
|
|
13
|
+
super(Resources.formatUnreadableStore(Resources.restoreFile, Resources.formatScriptStepMissing(step)));
|
|
14
|
+
this.step = step;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=script-step-missing.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script-step-missing.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/script-step-missing.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,0BAA2B,SAAQ,cAAc;IAC5C,IAAI,CAAS;IAE7B,YAAmB,IAAY;QAC7B,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAEvG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { RestoreStepException } from "./restore-step.exception.js";
|
|
10
|
+
export class StagedFileMissingException extends RestoreStepException {
|
|
11
|
+
path;
|
|
12
|
+
constructor(path) {
|
|
13
|
+
super(Resources.formatStepFailed(path, Resources.stagedMissingReason));
|
|
14
|
+
this.path = path;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=staged-file-missing.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staged-file-missing.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/staged-file-missing.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,OAAO,0BAA2B,SAAQ,oBAAoB;IACzC,IAAI,CAAS;IAEtC,YAAmB,IAAY;QAC7B,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC;QAEvE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class StoreAnswersMismatchException extends StoreException {
|
|
11
|
+
answered;
|
|
12
|
+
asked;
|
|
13
|
+
constructor(asked, answered) {
|
|
14
|
+
super(Resources.formatStoreAnswersMismatch(asked, answered));
|
|
15
|
+
this.answered = answered;
|
|
16
|
+
this.asked = asked;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=store-answers-mismatch.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-answers-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/store-answers-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,6BAA8B,SAAQ,cAAc;IAC/C,QAAQ,CAAS;IACjB,KAAK,CAAS;IAE9B,YAAmB,KAAa,EAAE,QAAgB;QAChD,KAAK,CAAC,SAAS,CAAC,0BAA0B,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAE7D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class StoreCountMissingException extends StoreException {
|
|
11
|
+
count;
|
|
12
|
+
constructor(count) {
|
|
13
|
+
super(Resources.formatStoreCountMissing(count));
|
|
14
|
+
this.count = count;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=store-count-missing.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-count-missing.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/store-count-missing.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,0BAA2B,SAAQ,cAAc;IAC5C,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,CAAC;QAEhD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class StoreFieldNotABooleanException extends StoreException {
|
|
11
|
+
field;
|
|
12
|
+
constructor(field) {
|
|
13
|
+
super(Resources.formatNotABoolean(field));
|
|
14
|
+
this.field = field;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=store-field-not-a-boolean.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-field-not-a-boolean.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/store-field-not-a-boolean.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,8BAA+B,SAAQ,cAAc;IAChD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC;QAE1C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class StoreFieldNotAStringListException extends StoreException {
|
|
11
|
+
field;
|
|
12
|
+
constructor(field) {
|
|
13
|
+
super(Resources.formatNotAStringList(field));
|
|
14
|
+
this.field = field;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=store-field-not-a-string-list.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-field-not-a-string-list.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/store-field-not-a-string-list.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,iCAAkC,SAAQ,cAAc;IACnD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC;QAE7C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { ExceptionOptions } from "@noldova/context.exceptions";
|
|
9
|
+
import { Resources } from "../resources.js";
|
|
10
|
+
import { StoreException } from "./store.exception.js";
|
|
11
|
+
export class StoreFileUnreadableException extends StoreException {
|
|
12
|
+
file;
|
|
13
|
+
constructor(file, cause) {
|
|
14
|
+
super(Resources.formatUnreadableStore(file, cause.message), new ExceptionOptions(cause));
|
|
15
|
+
this.file = file;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=store-file-unreadable.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-file-unreadable.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/store-file-unreadable.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,4BAA6B,SAAQ,cAAc;IAC9C,IAAI,CAAS;IAE7B,YAAmB,IAAY,EAAE,KAAY;QAC3C,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;QAEzF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class StoreObjectMissingException extends StoreException {
|
|
11
|
+
objectId;
|
|
12
|
+
constructor(objectId) {
|
|
13
|
+
super(Resources.formatStoreObjectMissing(objectId));
|
|
14
|
+
this.objectId = objectId;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=store-object-missing.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-object-missing.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/store-object-missing.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,2BAA4B,SAAQ,cAAc;IAC7C,QAAQ,CAAS;IAEjC,YAAmB,QAAgB;QACjC,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAEpD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { Resources } from "../resources.js";
|
|
9
|
+
import { StoreException } from "./store.exception.js";
|
|
10
|
+
export class StoreObjectNotABlobException extends StoreException {
|
|
11
|
+
header;
|
|
12
|
+
objectId;
|
|
13
|
+
constructor(objectId, header) {
|
|
14
|
+
super(Resources.formatStoreObjectNotABlob(objectId, header));
|
|
15
|
+
this.header = header;
|
|
16
|
+
this.objectId = objectId;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=store-object-not-a-blob.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-object-not-a-blob.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/store-object-not-a-blob.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,OAAO,4BAA6B,SAAQ,cAAc;IAC9C,MAAM,CAAS;IACf,QAAQ,CAAS;IAEjC,YAAmB,QAAgB,EAAE,MAAc;QACjD,KAAK,CAAC,SAAS,CAAC,yBAAyB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;QAE7D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { CheckpointsException } from "./checkpoints.exception.js";
|
|
9
|
+
export class StoreException extends CheckpointsException {
|
|
10
|
+
constructor(message, options) {
|
|
11
|
+
super(message, options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=store.exception.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints/src/exceptions/store.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,OAAgB,cAAe,SAAQ,oBAAoB;IAC/D,YAAsB,OAAe,EAAE,OAA0B;QAC/D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
|