theragist-ts 1.0.57 → 1.0.58

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/dist/common.d.ts CHANGED
@@ -45,6 +45,7 @@ export interface UserOrganizationPayload {
45
45
  organizationIndustry: string;
46
46
  organizationSizeBand: string;
47
47
  permissions: OrganizationResourcePermission[];
48
+ hasActiveSubscription: boolean;
48
49
  }
49
50
  export interface OrganizationResourcePermission {
50
51
  resource: string;
package/dist/common.js CHANGED
@@ -632,6 +632,7 @@ function createBaseUserOrganizationPayload() {
632
632
  organizationIndustry: "",
633
633
  organizationSizeBand: "",
634
634
  permissions: [],
635
+ hasActiveSubscription: false,
635
636
  };
636
637
  }
637
638
  exports.UserOrganizationPayload = {
@@ -660,6 +661,9 @@ exports.UserOrganizationPayload = {
660
661
  for (const v of message.permissions) {
661
662
  exports.OrganizationResourcePermission.encode(v, writer.uint32(66).fork()).join();
662
663
  }
664
+ if (message.hasActiveSubscription !== false) {
665
+ writer.uint32(80).bool(message.hasActiveSubscription);
666
+ }
663
667
  return writer;
664
668
  },
665
669
  decode(input, length) {
@@ -725,6 +729,13 @@ exports.UserOrganizationPayload = {
725
729
  message.permissions.push(exports.OrganizationResourcePermission.decode(reader, reader.uint32()));
726
730
  continue;
727
731
  }
732
+ case 10: {
733
+ if (tag !== 80) {
734
+ break;
735
+ }
736
+ message.hasActiveSubscription = reader.bool();
737
+ continue;
738
+ }
728
739
  }
729
740
  if ((tag & 7) === 4 || tag === 0) {
730
741
  break;
@@ -745,6 +756,9 @@ exports.UserOrganizationPayload = {
745
756
  permissions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.permissions)
746
757
  ? object.permissions.map((e) => exports.OrganizationResourcePermission.fromJSON(e))
747
758
  : [],
759
+ hasActiveSubscription: isSet(object.hasActiveSubscription)
760
+ ? globalThis.Boolean(object.hasActiveSubscription)
761
+ : false,
748
762
  };
749
763
  },
750
764
  toJSON(message) {
@@ -774,13 +788,16 @@ exports.UserOrganizationPayload = {
774
788
  if ((_a = message.permissions) === null || _a === void 0 ? void 0 : _a.length) {
775
789
  obj.permissions = message.permissions.map((e) => exports.OrganizationResourcePermission.toJSON(e));
776
790
  }
791
+ if (message.hasActiveSubscription !== false) {
792
+ obj.hasActiveSubscription = message.hasActiveSubscription;
793
+ }
777
794
  return obj;
778
795
  },
779
796
  create(base) {
780
797
  return exports.UserOrganizationPayload.fromPartial(base !== null && base !== void 0 ? base : {});
781
798
  },
782
799
  fromPartial(object) {
783
- var _a, _b, _c, _d, _e, _f, _g, _h;
800
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
784
801
  const message = createBaseUserOrganizationPayload();
785
802
  message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
786
803
  message.organizationName = (_b = object.organizationName) !== null && _b !== void 0 ? _b : "";
@@ -790,6 +807,7 @@ exports.UserOrganizationPayload = {
790
807
  message.organizationIndustry = (_f = object.organizationIndustry) !== null && _f !== void 0 ? _f : "";
791
808
  message.organizationSizeBand = (_g = object.organizationSizeBand) !== null && _g !== void 0 ? _g : "";
792
809
  message.permissions = ((_h = object.permissions) === null || _h === void 0 ? void 0 : _h.map((e) => exports.OrganizationResourcePermission.fromPartial(e))) || [];
810
+ message.hasActiveSubscription = (_j = object.hasActiveSubscription) !== null && _j !== void 0 ? _j : false;
793
811
  return message;
794
812
  },
795
813
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theragist-ts",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "TypeScript types and interfaces for Theragist protobuf definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",