@noldova/checkpoints.protocol 0.0.0-stage → 0.0.2

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.
Files changed (204) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +8 -2
  3. package/package.json +34 -4
  4. package/src/api/index.d.ts +4062 -0
  5. package/src/api/index.js +98 -0
  6. package/src/api/index.js.map +1 -0
  7. package/src/exceptions/capture-checkpoint-mismatch.exception.js +17 -0
  8. package/src/exceptions/capture-checkpoint-mismatch.exception.js.map +1 -0
  9. package/src/exceptions/capture-space-mismatch.exception.js +17 -0
  10. package/src/exceptions/capture-space-mismatch.exception.js.map +1 -0
  11. package/src/exceptions/change-sides-mismatch.exception.js +17 -0
  12. package/src/exceptions/change-sides-mismatch.exception.js.map +1 -0
  13. package/src/exceptions/compare-changes-mismatch.exception.js +17 -0
  14. package/src/exceptions/compare-changes-mismatch.exception.js.map +1 -0
  15. package/src/exceptions/content-too-long.exception.js +19 -0
  16. package/src/exceptions/content-too-long.exception.js.map +1 -0
  17. package/src/exceptions/field-not-a-boolean.exception.js +19 -0
  18. package/src/exceptions/field-not-a-boolean.exception.js.map +1 -0
  19. package/src/exceptions/field-not-a-list.exception.js +19 -0
  20. package/src/exceptions/field-not-a-list.exception.js.map +1 -0
  21. package/src/exceptions/field-not-a-number-or-null.exception.js +19 -0
  22. package/src/exceptions/field-not-a-number-or-null.exception.js.map +1 -0
  23. package/src/exceptions/field-not-a-number.exception.js +19 -0
  24. package/src/exceptions/field-not-a-number.exception.js.map +1 -0
  25. package/src/exceptions/field-not-a-string-list.exception.js +19 -0
  26. package/src/exceptions/field-not-a-string-list.exception.js.map +1 -0
  27. package/src/exceptions/field-not-a-string-or-null.exception.js +19 -0
  28. package/src/exceptions/field-not-a-string-or-null.exception.js.map +1 -0
  29. package/src/exceptions/field-not-a-string.exception.js +19 -0
  30. package/src/exceptions/field-not-a-string.exception.js.map +1 -0
  31. package/src/exceptions/invalid-base64.exception.js +15 -0
  32. package/src/exceptions/invalid-base64.exception.js.map +1 -0
  33. package/src/exceptions/invalid-checkpoint-id.exception.js +17 -0
  34. package/src/exceptions/invalid-checkpoint-id.exception.js.map +1 -0
  35. package/src/exceptions/invalid-date.exception.js +15 -0
  36. package/src/exceptions/invalid-date.exception.js.map +1 -0
  37. package/src/exceptions/invalid-folder-path.exception.js +17 -0
  38. package/src/exceptions/invalid-folder-path.exception.js.map +1 -0
  39. package/src/exceptions/invalid-identity.exception.js +17 -0
  40. package/src/exceptions/invalid-identity.exception.js.map +1 -0
  41. package/src/exceptions/invalid-plan-state.exception.js +17 -0
  42. package/src/exceptions/invalid-plan-state.exception.js.map +1 -0
  43. package/src/exceptions/invalid-read-limit.exception.js +17 -0
  44. package/src/exceptions/invalid-read-limit.exception.js.map +1 -0
  45. package/src/exceptions/invalid-relative-path.exception.js +18 -0
  46. package/src/exceptions/invalid-relative-path.exception.js.map +1 -0
  47. package/src/exceptions/invalid-size.exception.js +17 -0
  48. package/src/exceptions/invalid-size.exception.js.map +1 -0
  49. package/src/exceptions/invalid-time.exception.js +17 -0
  50. package/src/exceptions/invalid-time.exception.js.map +1 -0
  51. package/src/exceptions/label-too-long.exception.js +17 -0
  52. package/src/exceptions/label-too-long.exception.js.map +1 -0
  53. package/src/exceptions/missing-field.exception.js +19 -0
  54. package/src/exceptions/missing-field.exception.js.map +1 -0
  55. package/src/exceptions/not-an-object.exception.js +17 -0
  56. package/src/exceptions/not-an-object.exception.js.map +1 -0
  57. package/src/exceptions/preview-plan-mismatch.exception.js +17 -0
  58. package/src/exceptions/preview-plan-mismatch.exception.js.map +1 -0
  59. package/src/exceptions/protocol.exception.js +14 -0
  60. package/src/exceptions/protocol.exception.js.map +1 -0
  61. package/src/exceptions/read-cut-mismatch.exception.js +17 -0
  62. package/src/exceptions/read-cut-mismatch.exception.js.map +1 -0
  63. package/src/exceptions/read-outcome-mismatch.exception.js +17 -0
  64. package/src/exceptions/read-outcome-mismatch.exception.js.map +1 -0
  65. package/src/exceptions/restore-checkpoints-mismatch.exception.js +17 -0
  66. package/src/exceptions/restore-checkpoints-mismatch.exception.js.map +1 -0
  67. package/src/exceptions/side-size-mismatch.exception.js +17 -0
  68. package/src/exceptions/side-size-mismatch.exception.js.map +1 -0
  69. package/src/exceptions/step-sides-mismatch.exception.js +17 -0
  70. package/src/exceptions/step-sides-mismatch.exception.js.map +1 -0
  71. package/src/exceptions/unknown-capture-mode.exception.js +17 -0
  72. package/src/exceptions/unknown-capture-mode.exception.js.map +1 -0
  73. package/src/exceptions/unknown-capture-outcome.exception.js +17 -0
  74. package/src/exceptions/unknown-capture-outcome.exception.js.map +1 -0
  75. package/src/exceptions/unknown-change-status.exception.js +17 -0
  76. package/src/exceptions/unknown-change-status.exception.js.map +1 -0
  77. package/src/exceptions/unknown-compare-outcome.exception.js +17 -0
  78. package/src/exceptions/unknown-compare-outcome.exception.js.map +1 -0
  79. package/src/exceptions/unknown-delete-folder-outcome.exception.js +17 -0
  80. package/src/exceptions/unknown-delete-folder-outcome.exception.js.map +1 -0
  81. package/src/exceptions/unknown-field.exception.js +19 -0
  82. package/src/exceptions/unknown-field.exception.js.map +1 -0
  83. package/src/exceptions/unknown-keep-reason.exception.js +17 -0
  84. package/src/exceptions/unknown-keep-reason.exception.js.map +1 -0
  85. package/src/exceptions/unknown-path-kind.exception.js +17 -0
  86. package/src/exceptions/unknown-path-kind.exception.js.map +1 -0
  87. package/src/exceptions/unknown-preview-outcome.exception.js +17 -0
  88. package/src/exceptions/unknown-preview-outcome.exception.js.map +1 -0
  89. package/src/exceptions/unknown-read-outcome.exception.js +17 -0
  90. package/src/exceptions/unknown-read-outcome.exception.js.map +1 -0
  91. package/src/exceptions/unknown-restore-action.exception.js +17 -0
  92. package/src/exceptions/unknown-restore-action.exception.js.map +1 -0
  93. package/src/exceptions/unknown-restore-outcome.exception.js +17 -0
  94. package/src/exceptions/unknown-restore-outcome.exception.js.map +1 -0
  95. package/src/exceptions/unknown-unread-reason.exception.js +17 -0
  96. package/src/exceptions/unknown-unread-reason.exception.js.map +1 -0
  97. package/src/exceptions/unread-code-mismatch.exception.js +17 -0
  98. package/src/exceptions/unread-code-mismatch.exception.js.map +1 -0
  99. package/src/exceptions/unread-reason-mismatch.exception.js +17 -0
  100. package/src/exceptions/unread-reason-mismatch.exception.js.map +1 -0
  101. package/src/models/capture-mode.js +27 -0
  102. package/src/models/capture-mode.js.map +1 -0
  103. package/src/models/capture-outcome.js +31 -0
  104. package/src/models/capture-outcome.js.map +1 -0
  105. package/src/models/capture-paused-event.js +35 -0
  106. package/src/models/capture-paused-event.js.map +1 -0
  107. package/src/models/capture-request.js +32 -0
  108. package/src/models/capture-request.js.map +1 -0
  109. package/src/models/capture-result.js +50 -0
  110. package/src/models/capture-result.js.map +1 -0
  111. package/src/models/capture-resumed-event.js +28 -0
  112. package/src/models/capture-resumed-event.js.map +1 -0
  113. package/src/models/change-side.js +36 -0
  114. package/src/models/change-side.js.map +1 -0
  115. package/src/models/change-status.js +32 -0
  116. package/src/models/change-status.js.map +1 -0
  117. package/src/models/change.js +57 -0
  118. package/src/models/change.js.map +1 -0
  119. package/src/models/checkpoint-list.js +26 -0
  120. package/src/models/checkpoint-list.js.map +1 -0
  121. package/src/models/checkpoint.js +55 -0
  122. package/src/models/checkpoint.js.map +1 -0
  123. package/src/models/compare-outcome.js +30 -0
  124. package/src/models/compare-outcome.js.map +1 -0
  125. package/src/models/compare-request.js +35 -0
  126. package/src/models/compare-request.js.map +1 -0
  127. package/src/models/compare-result.js +32 -0
  128. package/src/models/compare-result.js.map +1 -0
  129. package/src/models/delete-folder-outcome.js +27 -0
  130. package/src/models/delete-folder-outcome.js.map +1 -0
  131. package/src/models/delete-folder-request.js +27 -0
  132. package/src/models/delete-folder-request.js.map +1 -0
  133. package/src/models/delete-folder-result.js +26 -0
  134. package/src/models/delete-folder-result.js.map +1 -0
  135. package/src/models/diff-target.js +28 -0
  136. package/src/models/diff-target.js.map +1 -0
  137. package/src/models/folder-reference.js +32 -0
  138. package/src/models/folder-reference.js.map +1 -0
  139. package/src/models/folder-usage.js +36 -0
  140. package/src/models/folder-usage.js.map +1 -0
  141. package/src/models/keep-reason.js +30 -0
  142. package/src/models/keep-reason.js.map +1 -0
  143. package/src/models/kept-path.js +32 -0
  144. package/src/models/kept-path.js.map +1 -0
  145. package/src/models/list-request.js +27 -0
  146. package/src/models/list-request.js.map +1 -0
  147. package/src/models/path-kind.js +29 -0
  148. package/src/models/path-kind.js.map +1 -0
  149. package/src/models/preview-outcome.js +33 -0
  150. package/src/models/preview-outcome.js.map +1 -0
  151. package/src/models/preview-request.js +34 -0
  152. package/src/models/preview-request.js.map +1 -0
  153. package/src/models/preview-result.js +33 -0
  154. package/src/models/preview-result.js.map +1 -0
  155. package/src/models/read-outcome.js +35 -0
  156. package/src/models/read-outcome.js.map +1 -0
  157. package/src/models/read-request.js +54 -0
  158. package/src/models/read-request.js.map +1 -0
  159. package/src/models/read-result.js +52 -0
  160. package/src/models/read-result.js.map +1 -0
  161. package/src/models/restore-action.js +28 -0
  162. package/src/models/restore-action.js.map +1 -0
  163. package/src/models/restore-held-up-event.js +35 -0
  164. package/src/models/restore-held-up-event.js.map +1 -0
  165. package/src/models/restore-outcome.js +36 -0
  166. package/src/models/restore-outcome.js.map +1 -0
  167. package/src/models/restore-plan.js +59 -0
  168. package/src/models/restore-plan.js.map +1 -0
  169. package/src/models/restore-request.js +30 -0
  170. package/src/models/restore-request.js.map +1 -0
  171. package/src/models/restore-result.js +40 -0
  172. package/src/models/restore-result.js.map +1 -0
  173. package/src/models/restore-step.js +47 -0
  174. package/src/models/restore-step.js.map +1 -0
  175. package/src/models/restored-event.js +35 -0
  176. package/src/models/restored-event.js.map +1 -0
  177. package/src/models/storage-list.js +26 -0
  178. package/src/models/storage-list.js.map +1 -0
  179. package/src/models/storage-request.js +20 -0
  180. package/src/models/storage-request.js.map +1 -0
  181. package/src/models/unread-path.js +37 -0
  182. package/src/models/unread-path.js.map +1 -0
  183. package/src/models/unread-reason.js +29 -0
  184. package/src/models/unread-reason.js.map +1 -0
  185. package/src/resources.js +247 -0
  186. package/src/resources.js.map +1 -0
  187. package/src/services/base64.js +48 -0
  188. package/src/services/base64.js.map +1 -0
  189. package/src/services/byte-size.js +15 -0
  190. package/src/services/byte-size.js.map +1 -0
  191. package/src/services/checkpoint-id.js +16 -0
  192. package/src/services/checkpoint-id.js.map +1 -0
  193. package/src/services/folder-identity.js +16 -0
  194. package/src/services/folder-identity.js.map +1 -0
  195. package/src/services/json-object.reader.js +89 -0
  196. package/src/services/json-object.reader.js.map +1 -0
  197. package/src/services/relative-path.js +14 -0
  198. package/src/services/relative-path.js.map +1 -0
  199. package/src/services/scope-paths.js +24 -0
  200. package/src/services/scope-paths.js.map +1 -0
  201. package/src/types/json-object.js +9 -0
  202. package/src/types/json-object.js.map +1 -0
  203. package/src/types/json-value.js +9 -0
  204. package/src/types/json-value.js.map +1 -0
@@ -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 { ProtocolException } from "./protocol.exception.js";
10
+ export class LabelTooLongException extends ProtocolException {
11
+ length;
12
+ constructor(length) {
13
+ super(Resources.formatLabelTooLong(length));
14
+ this.length = length;
15
+ }
16
+ }
17
+ //# sourceMappingURL=label-too-long.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label-too-long.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/label-too-long.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,qBAAsB,SAAQ,iBAAiB;IAC1C,MAAM,CAAS;IAE/B,YAAmB,MAAc;QAC/B,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC;QAE5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class MissingFieldException extends ProtocolException {
11
+ field;
12
+ model;
13
+ constructor(model, field) {
14
+ super(Resources.formatMissingField(model, field));
15
+ this.field = field;
16
+ this.model = model;
17
+ }
18
+ }
19
+ //# sourceMappingURL=missing-field.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"missing-field.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/missing-field.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,qBAAsB,SAAQ,iBAAiB;IAC1C,KAAK,CAAS;IACd,KAAK,CAAS;IAE9B,YAAmB,KAAa,EAAE,KAAa;QAC7C,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QAElD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class NotAnObjectException extends ProtocolException {
11
+ model;
12
+ constructor(model) {
13
+ super(Resources.formatNotAnObject(model));
14
+ this.model = model;
15
+ }
16
+ }
17
+ //# sourceMappingURL=not-an-object.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"not-an-object.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/not-an-object.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,oBAAqB,SAAQ,iBAAiB;IACzC,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class PreviewPlanMismatchException extends ProtocolException {
11
+ outcome;
12
+ constructor(outcome) {
13
+ super(Resources.formatPlanMismatch(outcome.value));
14
+ this.outcome = outcome;
15
+ }
16
+ }
17
+ //# sourceMappingURL=preview-plan-mismatch.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preview-plan-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/preview-plan-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,4BAA6B,SAAQ,iBAAiB;IACjD,OAAO,CAAiB;IAExC,YAAmB,OAAuB;QACxC,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAEnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,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 ProtocolException extends Exception {
10
+ constructor(message, options) {
11
+ super(message, options);
12
+ }
13
+ }
14
+ //# sourceMappingURL=protocol.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/protocol.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE/E,MAAM,OAAgB,iBAAkB,SAAQ,SAAS;IACvD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class ReadCutMismatchException extends ProtocolException {
11
+ isCut;
12
+ constructor(isCut) {
13
+ super(Resources.formatCutMismatch(isCut));
14
+ this.isCut = isCut;
15
+ }
16
+ }
17
+ //# sourceMappingURL=read-cut-mismatch.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-cut-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/read-cut-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IAC7C,KAAK,CAAU;IAE/B,YAAmB,KAAc;QAC/B,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class ReadOutcomeMismatchException extends ProtocolException {
11
+ outcome;
12
+ constructor(outcome) {
13
+ super(Resources.formatReadMismatch(outcome.value));
14
+ this.outcome = outcome;
15
+ }
16
+ }
17
+ //# sourceMappingURL=read-outcome-mismatch.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-outcome-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/read-outcome-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,4BAA6B,SAAQ,iBAAiB;IACjD,OAAO,CAAc;IAErC,YAAmB,OAAoB;QACrC,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAEnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class RestoreCheckpointsMismatchException extends ProtocolException {
11
+ outcome;
12
+ constructor(outcome) {
13
+ super(Resources.formatRestoreCheckpointsMismatch(outcome.value));
14
+ this.outcome = outcome;
15
+ }
16
+ }
17
+ //# sourceMappingURL=restore-checkpoints-mismatch.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restore-checkpoints-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/restore-checkpoints-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,mCAAoC,SAAQ,iBAAiB;IACxD,OAAO,CAAiB;IAExC,YAAmB,OAAuB;QACxC,KAAK,CAAC,SAAS,CAAC,gCAAgC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAEjE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class SideSizeMismatchException extends ProtocolException {
11
+ kind;
12
+ constructor(kind) {
13
+ super(Resources.formatSideSizeMismatch(kind.value));
14
+ this.kind = kind;
15
+ }
16
+ }
17
+ //# sourceMappingURL=side-size-mismatch.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"side-size-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/side-size-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,yBAA0B,SAAQ,iBAAiB;IAC9C,IAAI,CAAW;IAE/B,YAAmB,IAAc;QAC/B,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAEpD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class StepSidesMismatchException extends ProtocolException {
11
+ action;
12
+ constructor(action) {
13
+ super(Resources.formatStepSidesMismatch(action.value));
14
+ this.action = action;
15
+ }
16
+ }
17
+ //# sourceMappingURL=step-sides-mismatch.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"step-sides-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/step-sides-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,0BAA2B,SAAQ,iBAAiB;IAC/C,MAAM,CAAgB;IAEtC,YAAmB,MAAqB;QACtC,KAAK,CAAC,SAAS,CAAC,uBAAuB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAEvD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownCaptureModeException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownCaptureMode(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-capture-mode.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-capture-mode.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-capture-mode.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,2BAA4B,SAAQ,iBAAiB;IAChD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;QAEjD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownCaptureOutcomeException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownCaptureOutcome(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-capture-outcome.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-capture-outcome.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-capture-outcome.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,8BAA+B,SAAQ,iBAAiB;IACnD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;QAEpD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownChangeStatusException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownChangeStatus(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-change-status.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-change-status.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-change-status.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,4BAA6B,SAAQ,iBAAiB;IACjD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC,CAAC;QAElD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownCompareOutcomeException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownCompareOutcome(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-compare-outcome.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-compare-outcome.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-compare-outcome.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,8BAA+B,SAAQ,iBAAiB;IACnD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;QAEpD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownDeleteFolderOutcomeException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownDeleteFolderOutcome(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-delete-folder-outcome.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-delete-folder-outcome.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-delete-folder-outcome.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,mCAAoC,SAAQ,iBAAiB;IACxD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,gCAAgC,CAAC,KAAK,CAAC,CAAC,CAAC;QAEzD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownFieldException extends ProtocolException {
11
+ field;
12
+ model;
13
+ constructor(model, field) {
14
+ super(Resources.formatUnknownField(model, field));
15
+ this.field = field;
16
+ this.model = model;
17
+ }
18
+ }
19
+ //# sourceMappingURL=unknown-field.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-field.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-field.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,qBAAsB,SAAQ,iBAAiB;IAC1C,KAAK,CAAS;IACd,KAAK,CAAS;IAE9B,YAAmB,KAAa,EAAE,KAAa;QAC7C,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;QAElD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownKeepReasonException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownKeepReason(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-keep-reason.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-keep-reason.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-keep-reason.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,0BAA2B,SAAQ,iBAAiB;IAC/C,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownPathKindException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownPathKind(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-path-kind.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-path-kind.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-path-kind.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IAC7C,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;QAE9C,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownPreviewOutcomeException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownPreviewOutcome(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-preview-outcome.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-preview-outcome.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-preview-outcome.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,8BAA+B,SAAQ,iBAAiB;IACnD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;QAEpD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownReadOutcomeException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownReadOutcome(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-read-outcome.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-read-outcome.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-read-outcome.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,2BAA4B,SAAQ,iBAAiB;IAChD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;QAEjD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownRestoreActionException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownRestoreAction(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-restore-action.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-restore-action.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-restore-action.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,6BAA8B,SAAQ,iBAAiB;IAClD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,CAAC;QAEnD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownRestoreOutcomeException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownRestoreOutcome(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-restore-outcome.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-restore-outcome.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-restore-outcome.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,8BAA+B,SAAQ,iBAAiB;IACnD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;QAEpD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnknownUnreadReasonException extends ProtocolException {
11
+ value;
12
+ constructor(value) {
13
+ super(Resources.formatUnknownUnreadReason(value));
14
+ this.value = value;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unknown-unread-reason.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unknown-unread-reason.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unknown-unread-reason.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,4BAA6B,SAAQ,iBAAiB;IACjD,KAAK,CAAS;IAE9B,YAAmB,KAAa;QAC9B,KAAK,CAAC,SAAS,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC,CAAC;QAElD,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnreadCodeMismatchException extends ProtocolException {
11
+ reason;
12
+ constructor(reason) {
13
+ super(Resources.formatUnreadCodeMismatch(reason.value));
14
+ this.reason = reason;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unread-code-mismatch.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unread-code-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unread-code-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,2BAA4B,SAAQ,iBAAiB;IAChD,MAAM,CAAe;IAErC,YAAmB,MAAoB;QACrC,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAExD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,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 { ProtocolException } from "./protocol.exception.js";
10
+ export class UnreadReasonMismatchException extends ProtocolException {
11
+ status;
12
+ constructor(status) {
13
+ super(Resources.formatUnreadReasonMismatch(status.value));
14
+ this.status = status;
15
+ }
16
+ }
17
+ //# sourceMappingURL=unread-reason-mismatch.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unread-reason-mismatch.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/exceptions/unread-reason-mismatch.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,OAAO,6BAA8B,SAAQ,iBAAiB;IAClD,MAAM,CAAe;IAErC,YAAmB,MAAoB;QACrC,KAAK,CAAC,SAAS,CAAC,0BAA0B,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE1D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
@@ -0,0 +1,27 @@
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 { UnknownCaptureModeException } from "../exceptions/unknown-capture-mode.exception.js";
9
+ export class CaptureMode {
10
+ static EveryFile = new CaptureMode("EveryFile");
11
+ static IgnoreFiles = new CaptureMode("IgnoreFiles");
12
+ static ALL = [CaptureMode.EveryFile, CaptureMode.IgnoreFiles];
13
+ value;
14
+ constructor(value) {
15
+ this.value = value;
16
+ }
17
+ static fromJson(value) {
18
+ const mode = CaptureMode.ALL.find(t => t.value === value);
19
+ if (mode === undefined)
20
+ throw new UnknownCaptureModeException(String(value));
21
+ return mode;
22
+ }
23
+ toJson() {
24
+ return this.value;
25
+ }
26
+ }
27
+ //# sourceMappingURL=capture-mode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture-mode.js","sourceRoot":"","sources":["../../../../../src/noldova.checkpoints.protocol/src/models/capture-mode.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAE9F,MAAM,OAAO,WAAW;IACf,MAAM,CAAU,SAAS,GAAgB,IAAI,WAAW,CAAC,WAAW,CAAC,CAAC;IACtE,MAAM,CAAU,WAAW,GAAgB,IAAI,WAAW,CAAC,aAAa,CAAC,CAAC;IACzE,MAAM,CAAU,GAAG,GAA2B,CAAC,WAAW,CAAC,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACvF,KAAK,CAAS;IAE9B,YAAoB,KAAa;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc;QACnC,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;QAC1D,IAAI,IAAI,KAAK,SAAS;YACpB,MAAM,IAAI,2BAA2B,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QACvD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
@@ -0,0 +1,31 @@
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 { UnknownCaptureOutcomeException } from "../exceptions/unknown-capture-outcome.exception.js";
9
+ export class CaptureOutcome {
10
+ static Captured = new CaptureOutcome("Captured", true);
11
+ static FolderMissing = new CaptureOutcome("FolderMissing", false);
12
+ static HeldUp = new CaptureOutcome("HeldUp", false);
13
+ static LowDiskSpace = new CaptureOutcome("LowDiskSpace", false);
14
+ static ALL = [CaptureOutcome.Captured, CaptureOutcome.FolderMissing, CaptureOutcome.HeldUp, CaptureOutcome.LowDiskSpace];
15
+ isCaptured;
16
+ value;
17
+ constructor(value, isCaptured) {
18
+ this.isCaptured = isCaptured;
19
+ this.value = value;
20
+ }
21
+ static fromJson(value) {
22
+ const outcome = CaptureOutcome.ALL.find(t => t.value === value);
23
+ if (outcome === undefined)
24
+ throw new UnknownCaptureOutcomeException(String(value));
25
+ return outcome;
26
+ }
27
+ toJson() {
28
+ return this.value;
29
+ }
30
+ }
31
+ //# sourceMappingURL=capture-outcome.js.map