theragist-ts 1.0.89 → 1.0.90

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.
@@ -62,6 +62,7 @@ export interface CommunityPost {
62
62
  commentCount: number;
63
63
  createdAt: string;
64
64
  authorUsername: string;
65
+ deepLink: string;
65
66
  }
66
67
  export interface RecentActivity {
67
68
  id: string;
@@ -805,6 +805,7 @@ function createBaseCommunityPost() {
805
805
  commentCount: 0,
806
806
  createdAt: "",
807
807
  authorUsername: "",
808
+ deepLink: "",
808
809
  };
809
810
  }
810
811
  exports.CommunityPost = {
@@ -845,6 +846,9 @@ exports.CommunityPost = {
845
846
  if (message.authorUsername !== "") {
846
847
  writer.uint32(98).string(message.authorUsername);
847
848
  }
849
+ if (message.deepLink !== "") {
850
+ writer.uint32(106).string(message.deepLink);
851
+ }
848
852
  return writer;
849
853
  },
850
854
  decode(input, length) {
@@ -938,6 +942,13 @@ exports.CommunityPost = {
938
942
  message.authorUsername = reader.string();
939
943
  continue;
940
944
  }
945
+ case 13: {
946
+ if (tag !== 106) {
947
+ break;
948
+ }
949
+ message.deepLink = reader.string();
950
+ continue;
951
+ }
941
952
  }
942
953
  if ((tag & 7) === 4 || tag === 0) {
943
954
  break;
@@ -960,6 +971,7 @@ exports.CommunityPost = {
960
971
  commentCount: isSet(object.commentCount) ? globalThis.Number(object.commentCount) : 0,
961
972
  createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
962
973
  authorUsername: isSet(object.authorUsername) ? globalThis.String(object.authorUsername) : "",
974
+ deepLink: isSet(object.deepLink) ? globalThis.String(object.deepLink) : "",
963
975
  };
964
976
  },
965
977
  toJSON(message) {
@@ -1000,13 +1012,16 @@ exports.CommunityPost = {
1000
1012
  if (message.authorUsername !== "") {
1001
1013
  obj.authorUsername = message.authorUsername;
1002
1014
  }
1015
+ if (message.deepLink !== "") {
1016
+ obj.deepLink = message.deepLink;
1017
+ }
1003
1018
  return obj;
1004
1019
  },
1005
1020
  create(base) {
1006
1021
  return exports.CommunityPost.fromPartial(base !== null && base !== void 0 ? base : {});
1007
1022
  },
1008
1023
  fromPartial(object) {
1009
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1024
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
1010
1025
  const message = createBaseCommunityPost();
1011
1026
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
1012
1027
  message.communityId = (_b = object.communityId) !== null && _b !== void 0 ? _b : "";
@@ -1020,6 +1035,7 @@ exports.CommunityPost = {
1020
1035
  message.commentCount = (_k = object.commentCount) !== null && _k !== void 0 ? _k : 0;
1021
1036
  message.createdAt = (_l = object.createdAt) !== null && _l !== void 0 ? _l : "";
1022
1037
  message.authorUsername = (_m = object.authorUsername) !== null && _m !== void 0 ? _m : "";
1038
+ message.deepLink = (_o = object.deepLink) !== null && _o !== void 0 ? _o : "";
1023
1039
  return message;
1024
1040
  },
1025
1041
  };
@@ -41,6 +41,7 @@ export interface Post {
41
41
  reactionCounts: ReactionCounts | undefined;
42
42
  myReactions: PostReactionType_Value[];
43
43
  myReactionState: MyReactionState | undefined;
44
+ deepLink: string;
44
45
  }
45
46
  export interface MentionedUser {
46
47
  userId: string;
@@ -155,6 +156,7 @@ export interface SharePostRequest {
155
156
  export interface SharePostResponse {
156
157
  postId: string;
157
158
  shareCount: number;
159
+ deepLink: string;
158
160
  }
159
161
  export interface ListCommentsRequest {
160
162
  postId: string;
@@ -331,6 +331,7 @@ function createBasePost() {
331
331
  reactionCounts: undefined,
332
332
  myReactions: [],
333
333
  myReactionState: undefined,
334
+ deepLink: "",
334
335
  };
335
336
  }
336
337
  exports.Post = {
@@ -397,6 +398,9 @@ exports.Post = {
397
398
  if (message.myReactionState !== undefined) {
398
399
  exports.MyReactionState.encode(message.myReactionState, writer.uint32(162).fork()).join();
399
400
  }
401
+ if (message.deepLink !== "") {
402
+ writer.uint32(170).string(message.deepLink);
403
+ }
400
404
  return writer;
401
405
  },
402
406
  decode(input, length) {
@@ -553,6 +557,13 @@ exports.Post = {
553
557
  message.myReactionState = exports.MyReactionState.decode(reader, reader.uint32());
554
558
  continue;
555
559
  }
560
+ case 21: {
561
+ if (tag !== 170) {
562
+ break;
563
+ }
564
+ message.deepLink = reader.string();
565
+ continue;
566
+ }
556
567
  }
557
568
  if ((tag & 7) === 4 || tag === 0) {
558
569
  break;
@@ -587,6 +598,7 @@ exports.Post = {
587
598
  ? object.myReactions.map((e) => (0, enum_1.postReactionType_ValueFromJSON)(e))
588
599
  : [],
589
600
  myReactionState: isSet(object.myReactionState) ? exports.MyReactionState.fromJSON(object.myReactionState) : undefined,
601
+ deepLink: isSet(object.deepLink) ? globalThis.String(object.deepLink) : "",
590
602
  };
591
603
  },
592
604
  toJSON(message) {
@@ -652,13 +664,16 @@ exports.Post = {
652
664
  if (message.myReactionState !== undefined) {
653
665
  obj.myReactionState = exports.MyReactionState.toJSON(message.myReactionState);
654
666
  }
667
+ if (message.deepLink !== "") {
668
+ obj.deepLink = message.deepLink;
669
+ }
655
670
  return obj;
656
671
  },
657
672
  create(base) {
658
673
  return exports.Post.fromPartial(base !== null && base !== void 0 ? base : {});
659
674
  },
660
675
  fromPartial(object) {
661
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
676
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
662
677
  const message = createBasePost();
663
678
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
664
679
  message.communityId = (_b = object.communityId) !== null && _b !== void 0 ? _b : "";
@@ -686,6 +701,7 @@ exports.Post = {
686
701
  message.myReactionState = (object.myReactionState !== undefined && object.myReactionState !== null)
687
702
  ? exports.MyReactionState.fromPartial(object.myReactionState)
688
703
  : undefined;
704
+ message.deepLink = (_t = object.deepLink) !== null && _t !== void 0 ? _t : "";
689
705
  return message;
690
706
  },
691
707
  };
@@ -2582,7 +2598,7 @@ exports.SharePostRequest = {
2582
2598
  },
2583
2599
  };
2584
2600
  function createBaseSharePostResponse() {
2585
- return { postId: "", shareCount: 0 };
2601
+ return { postId: "", shareCount: 0, deepLink: "" };
2586
2602
  }
2587
2603
  exports.SharePostResponse = {
2588
2604
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -2592,6 +2608,9 @@ exports.SharePostResponse = {
2592
2608
  if (message.shareCount !== 0) {
2593
2609
  writer.uint32(16).int32(message.shareCount);
2594
2610
  }
2611
+ if (message.deepLink !== "") {
2612
+ writer.uint32(26).string(message.deepLink);
2613
+ }
2595
2614
  return writer;
2596
2615
  },
2597
2616
  decode(input, length) {
@@ -2615,6 +2634,13 @@ exports.SharePostResponse = {
2615
2634
  message.shareCount = reader.int32();
2616
2635
  continue;
2617
2636
  }
2637
+ case 3: {
2638
+ if (tag !== 26) {
2639
+ break;
2640
+ }
2641
+ message.deepLink = reader.string();
2642
+ continue;
2643
+ }
2618
2644
  }
2619
2645
  if ((tag & 7) === 4 || tag === 0) {
2620
2646
  break;
@@ -2627,6 +2653,7 @@ exports.SharePostResponse = {
2627
2653
  return {
2628
2654
  postId: isSet(object.postId) ? globalThis.String(object.postId) : "",
2629
2655
  shareCount: isSet(object.shareCount) ? globalThis.Number(object.shareCount) : 0,
2656
+ deepLink: isSet(object.deepLink) ? globalThis.String(object.deepLink) : "",
2630
2657
  };
2631
2658
  },
2632
2659
  toJSON(message) {
@@ -2637,16 +2664,20 @@ exports.SharePostResponse = {
2637
2664
  if (message.shareCount !== 0) {
2638
2665
  obj.shareCount = Math.round(message.shareCount);
2639
2666
  }
2667
+ if (message.deepLink !== "") {
2668
+ obj.deepLink = message.deepLink;
2669
+ }
2640
2670
  return obj;
2641
2671
  },
2642
2672
  create(base) {
2643
2673
  return exports.SharePostResponse.fromPartial(base !== null && base !== void 0 ? base : {});
2644
2674
  },
2645
2675
  fromPartial(object) {
2646
- var _a, _b;
2676
+ var _a, _b, _c;
2647
2677
  const message = createBaseSharePostResponse();
2648
2678
  message.postId = (_a = object.postId) !== null && _a !== void 0 ? _a : "";
2649
2679
  message.shareCount = (_b = object.shareCount) !== null && _b !== void 0 ? _b : 0;
2680
+ message.deepLink = (_c = object.deepLink) !== null && _c !== void 0 ? _c : "";
2650
2681
  return message;
2651
2682
  },
2652
2683
  };
@@ -61,6 +61,7 @@ export interface GlobalSearchPostItem {
61
61
  commentCount: number;
62
62
  createdAt: string;
63
63
  authorUsername: string;
64
+ deepLink: string;
64
65
  }
65
66
  export interface GlobalSearchTherapistItem {
66
67
  id: string;
@@ -820,6 +820,7 @@ function createBaseGlobalSearchPostItem() {
820
820
  commentCount: 0,
821
821
  createdAt: "",
822
822
  authorUsername: "",
823
+ deepLink: "",
823
824
  };
824
825
  }
825
826
  exports.GlobalSearchPostItem = {
@@ -851,6 +852,9 @@ exports.GlobalSearchPostItem = {
851
852
  if (message.authorUsername !== "") {
852
853
  writer.uint32(74).string(message.authorUsername);
853
854
  }
855
+ if (message.deepLink !== "") {
856
+ writer.uint32(82).string(message.deepLink);
857
+ }
854
858
  return writer;
855
859
  },
856
860
  decode(input, length) {
@@ -923,6 +927,13 @@ exports.GlobalSearchPostItem = {
923
927
  message.authorUsername = reader.string();
924
928
  continue;
925
929
  }
930
+ case 10: {
931
+ if (tag !== 82) {
932
+ break;
933
+ }
934
+ message.deepLink = reader.string();
935
+ continue;
936
+ }
926
937
  }
927
938
  if ((tag & 7) === 4 || tag === 0) {
928
939
  break;
@@ -942,6 +953,7 @@ exports.GlobalSearchPostItem = {
942
953
  commentCount: isSet(object.commentCount) ? globalThis.Number(object.commentCount) : 0,
943
954
  createdAt: isSet(object.createdAt) ? globalThis.String(object.createdAt) : "",
944
955
  authorUsername: isSet(object.authorUsername) ? globalThis.String(object.authorUsername) : "",
956
+ deepLink: isSet(object.deepLink) ? globalThis.String(object.deepLink) : "",
945
957
  };
946
958
  },
947
959
  toJSON(message) {
@@ -973,13 +985,16 @@ exports.GlobalSearchPostItem = {
973
985
  if (message.authorUsername !== "") {
974
986
  obj.authorUsername = message.authorUsername;
975
987
  }
988
+ if (message.deepLink !== "") {
989
+ obj.deepLink = message.deepLink;
990
+ }
976
991
  return obj;
977
992
  },
978
993
  create(base) {
979
994
  return exports.GlobalSearchPostItem.fromPartial(base !== null && base !== void 0 ? base : {});
980
995
  },
981
996
  fromPartial(object) {
982
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
997
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
983
998
  const message = createBaseGlobalSearchPostItem();
984
999
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
985
1000
  message.content = (_b = object.content) !== null && _b !== void 0 ? _b : "";
@@ -990,6 +1005,7 @@ exports.GlobalSearchPostItem = {
990
1005
  message.commentCount = (_g = object.commentCount) !== null && _g !== void 0 ? _g : 0;
991
1006
  message.createdAt = (_h = object.createdAt) !== null && _h !== void 0 ? _h : "";
992
1007
  message.authorUsername = (_j = object.authorUsername) !== null && _j !== void 0 ? _j : "";
1008
+ message.deepLink = (_k = object.deepLink) !== null && _k !== void 0 ? _k : "";
993
1009
  return message;
994
1010
  },
995
1011
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theragist-ts",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "description": "TypeScript types and interfaces for Theragist protobuf definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",