@gadgetinc/dateilager 0.5.21 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Fs = exports.GetCacheResponse = exports.GetCacheRequest = exports.CloneToProjectResponse = exports.CloneToProjectRequest = exports.GcContentsResponse = exports.GcContentsRequest = exports.GcRandomProjectsResponse = exports.GcRandomProjectsRequest = exports.GcProjectResponse = exports.GcProjectRequest = exports.ResetResponse = exports.ResetRequest = exports.SnapshotResponse = exports.SnapshotRequest = exports.InspectResponse = exports.InspectRequest = exports.UpdateResponse = exports.UpdateRequest = exports.GetUnaryResponse = exports.GetUnaryRequest = exports.GetCompressResponse = exports.GetCompressRequest = exports.GetResponse = exports.GetRequest = exports.ObjectQuery = exports.Objekt = exports.ListProjectsResponse = exports.ListProjectsRequest = exports.Project = exports.DeleteProjectResponse = exports.DeleteProjectRequest = exports.NewProjectResponse = exports.NewProjectRequest = exports.GetCacheResponse_Format = exports.GetCompressResponse_Format = void 0;
3
+ exports.Fs = exports.GetCacheResponse = exports.GetCacheRequest = exports.CloneToProjectResponse = exports.CloneToProjectRequest = exports.GcContentsResponse = exports.GcContentsRequest = exports.GcRandomProjectsResponse = exports.GcRandomProjectsRequest = exports.GcProjectResponse = exports.GcProjectRequest = exports.ResetResponse = exports.ResetRequest = exports.SnapshotResponse = exports.SnapshotRequest = exports.InspectResponse = exports.InspectRequest = exports.RollbackResponse = exports.RollbackRequest = exports.UpdateResponse = exports.UpdateRequest = exports.GetUnaryResponse = exports.GetUnaryRequest = exports.GetCompressResponse = exports.GetCompressRequest = exports.GetResponse = exports.GetRequest = exports.ObjectQuery = exports.Objekt = exports.ListProjectsResponse = exports.ListProjectsRequest = exports.Project = exports.DeleteProjectResponse = exports.DeleteProjectRequest = exports.NewProjectResponse = exports.NewProjectRequest = exports.GetCacheResponse_Format = exports.GetCompressResponse_Format = void 0;
4
4
  /* eslint-disable */
5
5
  // @generated by protobuf-ts 2.9.0 with parameter long_type_bigint,ts_nocheck,eslint_disable,add_pb_suffix
6
6
  // @generated from protobuf file "fs.proto" (package "pb", syntax proto3)
@@ -952,6 +952,86 @@ class UpdateResponse$Type extends runtime_5.MessageType {
952
952
  */
953
953
  exports.UpdateResponse = new UpdateResponse$Type();
954
954
  // @generated message type with reflection information, may provide speed optimized methods
955
+ class RollbackRequest$Type extends runtime_5.MessageType {
956
+ constructor() {
957
+ super("pb.RollbackRequest", [
958
+ { no: 1, name: "project", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
959
+ { no: 2, name: "version", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
960
+ ]);
961
+ }
962
+ create(value) {
963
+ const message = { project: 0n, version: 0n };
964
+ globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
965
+ if (value !== undefined)
966
+ (0, runtime_3.reflectionMergePartial)(this, message, value);
967
+ return message;
968
+ }
969
+ internalBinaryRead(reader, length, options, target) {
970
+ let message = target ?? this.create(), end = reader.pos + length;
971
+ while (reader.pos < end) {
972
+ let [fieldNo, wireType] = reader.tag();
973
+ switch (fieldNo) {
974
+ case /* int64 project */ 1:
975
+ message.project = reader.int64().toBigInt();
976
+ break;
977
+ case /* int64 version */ 2:
978
+ message.version = reader.int64().toBigInt();
979
+ break;
980
+ default:
981
+ let u = options.readUnknownField;
982
+ if (u === "throw")
983
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
984
+ let d = reader.skip(wireType);
985
+ if (u !== false)
986
+ (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
987
+ }
988
+ }
989
+ return message;
990
+ }
991
+ internalBinaryWrite(message, writer, options) {
992
+ /* int64 project = 1; */
993
+ if (message.project !== 0n)
994
+ writer.tag(1, runtime_1.WireType.Varint).int64(message.project);
995
+ /* int64 version = 2; */
996
+ if (message.version !== 0n)
997
+ writer.tag(2, runtime_1.WireType.Varint).int64(message.version);
998
+ let u = options.writeUnknownFields;
999
+ if (u !== false)
1000
+ (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1001
+ return writer;
1002
+ }
1003
+ }
1004
+ /**
1005
+ * @generated MessageType for protobuf message pb.RollbackRequest
1006
+ */
1007
+ exports.RollbackRequest = new RollbackRequest$Type();
1008
+ // @generated message type with reflection information, may provide speed optimized methods
1009
+ class RollbackResponse$Type extends runtime_5.MessageType {
1010
+ constructor() {
1011
+ super("pb.RollbackResponse", []);
1012
+ }
1013
+ create(value) {
1014
+ const message = {};
1015
+ globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this });
1016
+ if (value !== undefined)
1017
+ (0, runtime_3.reflectionMergePartial)(this, message, value);
1018
+ return message;
1019
+ }
1020
+ internalBinaryRead(reader, length, options, target) {
1021
+ return target ?? this.create();
1022
+ }
1023
+ internalBinaryWrite(message, writer, options) {
1024
+ let u = options.writeUnknownFields;
1025
+ if (u !== false)
1026
+ (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1027
+ return writer;
1028
+ }
1029
+ }
1030
+ /**
1031
+ * @generated MessageType for protobuf message pb.RollbackResponse
1032
+ */
1033
+ exports.RollbackResponse = new RollbackResponse$Type();
1034
+ // @generated message type with reflection information, may provide speed optimized methods
955
1035
  class InspectRequest$Type extends runtime_5.MessageType {
956
1036
  constructor() {
957
1037
  super("pb.InspectRequest", [
@@ -1757,6 +1837,7 @@ exports.Fs = new runtime_rpc_1.ServiceType("pb.Fs", [
1757
1837
  { name: "GetCompress", serverStreaming: true, options: {}, I: exports.GetCompressRequest, O: exports.GetCompressResponse },
1758
1838
  { name: "GetUnary", options: {}, I: exports.GetUnaryRequest, O: exports.GetUnaryResponse },
1759
1839
  { name: "Update", clientStreaming: true, options: {}, I: exports.UpdateRequest, O: exports.UpdateResponse },
1840
+ { name: "Rollback", options: {}, I: exports.RollbackRequest, O: exports.RollbackResponse },
1760
1841
  { name: "Inspect", options: {}, I: exports.InspectRequest, O: exports.InspectResponse },
1761
1842
  { name: "Snapshot", options: {}, I: exports.SnapshotRequest, O: exports.SnapshotResponse },
1762
1843
  { name: "Reset", options: {}, I: exports.ResetRequest, O: exports.ResetResponse },