@fraym/proto 0.5.0 → 0.5.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.
@@ -37,6 +37,7 @@ export interface RegisterMigrationRequest {
37
37
  crudTypes: CrudType[];
38
38
  enums: EnumType[];
39
39
  nestedTypes: NestedType[];
40
+ migrateOnlyGivenTypes: boolean;
40
41
  }
41
42
  export interface RegisterMigrationResponse {
42
43
  }
@@ -538,7 +538,7 @@ exports.TypeArgument = {
538
538
  },
539
539
  };
540
540
  function createBaseRegisterMigrationRequest() {
541
- return { projectionTypes: [], crudTypes: [], enums: [], nestedTypes: [] };
541
+ return { projectionTypes: [], crudTypes: [], enums: [], nestedTypes: [], migrateOnlyGivenTypes: false };
542
542
  }
543
543
  exports.RegisterMigrationRequest = {
544
544
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -554,6 +554,9 @@ exports.RegisterMigrationRequest = {
554
554
  for (const v of message.nestedTypes) {
555
555
  exports.NestedType.encode(v, writer.uint32(34).fork()).ldelim();
556
556
  }
557
+ if (message.migrateOnlyGivenTypes === true) {
558
+ writer.uint32(40).bool(message.migrateOnlyGivenTypes);
559
+ }
557
560
  return writer;
558
561
  },
559
562
  decode(input, length) {
@@ -587,6 +590,12 @@ exports.RegisterMigrationRequest = {
587
590
  }
588
591
  message.nestedTypes.push(exports.NestedType.decode(reader, reader.uint32()));
589
592
  continue;
593
+ case 5:
594
+ if (tag !== 40) {
595
+ break;
596
+ }
597
+ message.migrateOnlyGivenTypes = reader.bool();
598
+ continue;
590
599
  }
591
600
  if ((tag & 7) === 4 || tag === 0) {
592
601
  break;
@@ -603,6 +612,7 @@ exports.RegisterMigrationRequest = {
603
612
  crudTypes: Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes) ? object.crudTypes.map((e) => exports.CrudType.fromJSON(e)) : [],
604
613
  enums: Array.isArray(object === null || object === void 0 ? void 0 : object.enums) ? object.enums.map((e) => exports.EnumType.fromJSON(e)) : [],
605
614
  nestedTypes: Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes) ? object.nestedTypes.map((e) => exports.NestedType.fromJSON(e)) : [],
615
+ migrateOnlyGivenTypes: isSet(object.migrateOnlyGivenTypes) ? Boolean(object.migrateOnlyGivenTypes) : false,
606
616
  };
607
617
  },
608
618
  toJSON(message) {
@@ -620,18 +630,22 @@ exports.RegisterMigrationRequest = {
620
630
  if ((_d = message.nestedTypes) === null || _d === void 0 ? void 0 : _d.length) {
621
631
  obj.nestedTypes = message.nestedTypes.map((e) => exports.NestedType.toJSON(e));
622
632
  }
633
+ if (message.migrateOnlyGivenTypes === true) {
634
+ obj.migrateOnlyGivenTypes = message.migrateOnlyGivenTypes;
635
+ }
623
636
  return obj;
624
637
  },
625
638
  create(base) {
626
639
  return exports.RegisterMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
627
640
  },
628
641
  fromPartial(object) {
629
- var _a, _b, _c, _d;
642
+ var _a, _b, _c, _d, _e;
630
643
  const message = createBaseRegisterMigrationRequest();
631
644
  message.projectionTypes = ((_a = object.projectionTypes) === null || _a === void 0 ? void 0 : _a.map((e) => exports.ProjectionType.fromPartial(e))) || [];
632
645
  message.crudTypes = ((_b = object.crudTypes) === null || _b === void 0 ? void 0 : _b.map((e) => exports.CrudType.fromPartial(e))) || [];
633
646
  message.enums = ((_c = object.enums) === null || _c === void 0 ? void 0 : _c.map((e) => exports.EnumType.fromPartial(e))) || [];
634
647
  message.nestedTypes = ((_d = object.nestedTypes) === null || _d === void 0 ? void 0 : _d.map((e) => exports.NestedType.fromPartial(e))) || [];
648
+ message.migrateOnlyGivenTypes = (_e = object.migrateOnlyGivenTypes) !== null && _e !== void 0 ? _e : false;
635
649
  return message;
636
650
  },
637
651
  };
@@ -38,6 +38,7 @@ export interface RegisterMigrationRequest {
38
38
  crudTypes: CrudType[];
39
39
  enums: EnumType[];
40
40
  nestedTypes: NestedType[];
41
+ migrateOnlyGivenTypes: boolean;
41
42
  }
42
43
  export interface RegisterMigrationResponse {
43
44
  }
@@ -539,7 +539,14 @@ exports.TypeArgument = {
539
539
  },
540
540
  };
541
541
  function createBaseRegisterMigrationRequest() {
542
- return { dangerouslyRemoveGdprFields: false, projectionTypes: [], crudTypes: [], enums: [], nestedTypes: [] };
542
+ return {
543
+ dangerouslyRemoveGdprFields: false,
544
+ projectionTypes: [],
545
+ crudTypes: [],
546
+ enums: [],
547
+ nestedTypes: [],
548
+ migrateOnlyGivenTypes: false,
549
+ };
543
550
  }
544
551
  exports.RegisterMigrationRequest = {
545
552
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -558,6 +565,9 @@ exports.RegisterMigrationRequest = {
558
565
  for (const v of message.nestedTypes) {
559
566
  exports.NestedType.encode(v, writer.uint32(42).fork()).ldelim();
560
567
  }
568
+ if (message.migrateOnlyGivenTypes === true) {
569
+ writer.uint32(48).bool(message.migrateOnlyGivenTypes);
570
+ }
561
571
  return writer;
562
572
  },
563
573
  decode(input, length) {
@@ -597,6 +607,12 @@ exports.RegisterMigrationRequest = {
597
607
  }
598
608
  message.nestedTypes.push(exports.NestedType.decode(reader, reader.uint32()));
599
609
  continue;
610
+ case 6:
611
+ if (tag !== 48) {
612
+ break;
613
+ }
614
+ message.migrateOnlyGivenTypes = reader.bool();
615
+ continue;
600
616
  }
601
617
  if ((tag & 7) === 4 || tag === 0) {
602
618
  break;
@@ -616,6 +632,7 @@ exports.RegisterMigrationRequest = {
616
632
  crudTypes: Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes) ? object.crudTypes.map((e) => exports.CrudType.fromJSON(e)) : [],
617
633
  enums: Array.isArray(object === null || object === void 0 ? void 0 : object.enums) ? object.enums.map((e) => exports.EnumType.fromJSON(e)) : [],
618
634
  nestedTypes: Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes) ? object.nestedTypes.map((e) => exports.NestedType.fromJSON(e)) : [],
635
+ migrateOnlyGivenTypes: isSet(object.migrateOnlyGivenTypes) ? Boolean(object.migrateOnlyGivenTypes) : false,
619
636
  };
620
637
  },
621
638
  toJSON(message) {
@@ -636,19 +653,23 @@ exports.RegisterMigrationRequest = {
636
653
  if ((_d = message.nestedTypes) === null || _d === void 0 ? void 0 : _d.length) {
637
654
  obj.nestedTypes = message.nestedTypes.map((e) => exports.NestedType.toJSON(e));
638
655
  }
656
+ if (message.migrateOnlyGivenTypes === true) {
657
+ obj.migrateOnlyGivenTypes = message.migrateOnlyGivenTypes;
658
+ }
639
659
  return obj;
640
660
  },
641
661
  create(base) {
642
662
  return exports.RegisterMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
643
663
  },
644
664
  fromPartial(object) {
645
- var _a, _b, _c, _d, _e;
665
+ var _a, _b, _c, _d, _e, _f;
646
666
  const message = createBaseRegisterMigrationRequest();
647
667
  message.dangerouslyRemoveGdprFields = (_a = object.dangerouslyRemoveGdprFields) !== null && _a !== void 0 ? _a : false;
648
668
  message.projectionTypes = ((_b = object.projectionTypes) === null || _b === void 0 ? void 0 : _b.map((e) => exports.ProjectionType.fromPartial(e))) || [];
649
669
  message.crudTypes = ((_c = object.crudTypes) === null || _c === void 0 ? void 0 : _c.map((e) => exports.CrudType.fromPartial(e))) || [];
650
670
  message.enums = ((_d = object.enums) === null || _d === void 0 ? void 0 : _d.map((e) => exports.EnumType.fromPartial(e))) || [];
651
671
  message.nestedTypes = ((_e = object.nestedTypes) === null || _e === void 0 ? void 0 : _e.map((e) => exports.NestedType.fromPartial(e))) || [];
672
+ message.migrateOnlyGivenTypes = (_f = object.migrateOnlyGivenTypes) !== null && _f !== void 0 ? _f : false;
652
673
  return message;
653
674
  },
654
675
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fraym/proto",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/fraym/proto",
6
6
  "repository": {