theragist-ts 1.0.81 → 1.0.85

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 (95) hide show
  1. package/dist/admin/analytics.d.ts +3 -2
  2. package/dist/admin/analytics.js +19 -18
  3. package/dist/admin/enum.d.ts +172 -0
  4. package/dist/admin/enum.js +1037 -0
  5. package/dist/admin/message.d.ts +68 -66
  6. package/dist/admin/message.js +602 -566
  7. package/dist/admin/notification.d.ts +24 -23
  8. package/dist/admin/notification.js +229 -199
  9. package/dist/auth/enum.d.ts +86 -0
  10. package/dist/auth/enum.js +451 -0
  11. package/dist/auth/message.d.ts +30 -35
  12. package/dist/auth/message.js +265 -253
  13. package/dist/bug/enum.d.ts +58 -0
  14. package/dist/bug/enum.js +263 -0
  15. package/dist/bug/message.d.ts +7 -5
  16. package/dist/bug/message.js +47 -45
  17. package/dist/calendar/enum.d.ts +49 -0
  18. package/dist/calendar/enum.js +199 -0
  19. package/dist/calendar/message.d.ts +9 -10
  20. package/dist/calendar/message.js +60 -58
  21. package/dist/call/enum.d.ts +95 -0
  22. package/dist/call/enum.js +515 -0
  23. package/dist/call/message.d.ts +15 -15
  24. package/dist/call/message.js +120 -116
  25. package/dist/chat/enum.d.ts +34 -0
  26. package/dist/chat/enum.js +99 -0
  27. package/dist/chat/message.d.ts +5 -3
  28. package/dist/chat/message.js +29 -27
  29. package/dist/clients/enum.d.ts +63 -0
  30. package/dist/clients/enum.js +293 -0
  31. package/dist/clients/message.d.ts +13 -13
  32. package/dist/clients/message.js +100 -98
  33. package/dist/community/enum.d.ts +32 -0
  34. package/dist/community/enum.js +87 -0
  35. package/dist/community/message.d.ts +11 -9
  36. package/dist/community/message.js +83 -81
  37. package/dist/crisis/enum.d.ts +47 -0
  38. package/dist/crisis/enum.js +187 -0
  39. package/dist/crisis/message.d.ts +5 -3
  40. package/dist/crisis/message.js +31 -27
  41. package/dist/enums.d.ts +255 -0
  42. package/dist/enums.js +1595 -0
  43. package/dist/group/enum.d.ts +49 -0
  44. package/dist/group/enum.js +199 -0
  45. package/dist/group/message.d.ts +14 -12
  46. package/dist/group/message.js +106 -104
  47. package/dist/home/enum.d.ts +32 -0
  48. package/dist/home/enum.js +87 -0
  49. package/dist/home/message.d.ts +13 -14
  50. package/dist/home/message.js +105 -99
  51. package/dist/index.d.ts +22 -1
  52. package/dist/index.js +461 -82
  53. package/dist/lounge/enum.d.ts +34 -0
  54. package/dist/lounge/enum.js +99 -0
  55. package/dist/lounge/message.d.ts +12 -10
  56. package/dist/lounge/message.js +115 -84
  57. package/dist/notification/enum.d.ts +64 -0
  58. package/dist/notification/enum.js +289 -0
  59. package/dist/notification/message.d.ts +3 -2
  60. package/dist/notification/message.js +19 -18
  61. package/dist/post/enum.d.ts +60 -0
  62. package/dist/post/enum.js +275 -0
  63. package/dist/post/message.d.ts +14 -17
  64. package/dist/post/message.js +131 -112
  65. package/dist/search/enum.d.ts +44 -0
  66. package/dist/search/enum.js +169 -0
  67. package/dist/search/message.d.ts +12 -10
  68. package/dist/search/message.js +92 -90
  69. package/dist/session/enum.d.ts +32 -0
  70. package/dist/session/enum.js +87 -0
  71. package/dist/session/message.d.ts +10 -8
  72. package/dist/session/message.js +76 -72
  73. package/dist/soundscape/enum.d.ts +36 -0
  74. package/dist/soundscape/enum.js +111 -0
  75. package/dist/soundscape/message.d.ts +11 -9
  76. package/dist/soundscape/message.js +83 -81
  77. package/dist/therapist/enum.d.ts +1 -0
  78. package/dist/therapist/enum.js +10 -0
  79. package/dist/therapist/message.d.ts +3 -2
  80. package/dist/therapist/message.js +26 -16
  81. package/dist/user/enum.d.ts +93 -0
  82. package/dist/user/enum.js +503 -0
  83. package/dist/user/message.d.ts +28 -31
  84. package/dist/user/message.js +256 -217
  85. package/dist/wallet/message.d.ts +18 -17
  86. package/dist/wallet/message.js +151 -148
  87. package/dist/websocket/enum.d.ts +150 -0
  88. package/dist/websocket/enum.js +855 -0
  89. package/dist/websocket/message.d.ts +264 -23
  90. package/dist/websocket/message.js +4079 -488
  91. package/dist/workspace/enum.d.ts +33 -0
  92. package/dist/workspace/enum.js +93 -0
  93. package/dist/workspace/message.d.ts +33 -31
  94. package/dist/workspace/message.js +276 -276
  95. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { CallRoomType_Value, CallType_Value } from "../call/enum";
2
3
  import { AnalyticsPeriod } from "./message";
3
4
  export declare const protobufPackage = "pb";
4
5
  export interface MoodTrendsRequest {
@@ -207,8 +208,8 @@ export interface CallByTypeRequest {
207
208
  to: string;
208
209
  }
209
210
  export interface CallByTypeEntry {
210
- callType: string;
211
- roomType: string;
211
+ callType: CallType_Value;
212
+ roomType: CallRoomType_Value;
212
213
  callCount: number;
213
214
  totalDurationSeconds: number;
214
215
  avgDurationSeconds: number;
@@ -9,6 +9,7 @@ exports.MentalHealthOutcomesResponse = exports.MentalHealthOutcomesRequest = exp
9
9
  exports.TopJournalersResponse = exports.TopJournalersEntry = exports.TopJournalersRequest = exports.JournalTimeSeriesResponse = exports.JournalTimeSeriesDataPoint = exports.JournalTimeSeriesRequest = exports.JournalAnalyticsOverviewResponse = exports.JournalAnalyticsOverviewRequest = exports.TherapyEffectivenessResponse = exports.TherapyEffectivenessEntry = exports.TherapyEffectivenessRequest = void 0;
10
10
  /* eslint-disable */
11
11
  const wire_1 = require("@bufbuild/protobuf/wire");
12
+ const enum_1 = require("../call/enum");
12
13
  const message_1 = require("./message");
13
14
  exports.protobufPackage = "pb";
14
15
  function createBaseMoodTrendsRequest() {
@@ -3501,8 +3502,8 @@ exports.CallByTypeRequest = {
3501
3502
  };
3502
3503
  function createBaseCallByTypeEntry() {
3503
3504
  return {
3504
- callType: "",
3505
- roomType: "",
3505
+ callType: 0,
3506
+ roomType: 0,
3506
3507
  callCount: 0,
3507
3508
  totalDurationSeconds: 0,
3508
3509
  avgDurationSeconds: 0,
@@ -3511,11 +3512,11 @@ function createBaseCallByTypeEntry() {
3511
3512
  }
3512
3513
  exports.CallByTypeEntry = {
3513
3514
  encode(message, writer = new wire_1.BinaryWriter()) {
3514
- if (message.callType !== "") {
3515
- writer.uint32(10).string(message.callType);
3515
+ if (message.callType !== 0) {
3516
+ writer.uint32(8).int32(message.callType);
3516
3517
  }
3517
- if (message.roomType !== "") {
3518
- writer.uint32(18).string(message.roomType);
3518
+ if (message.roomType !== 0) {
3519
+ writer.uint32(16).int32(message.roomType);
3519
3520
  }
3520
3521
  if (message.callCount !== 0) {
3521
3522
  writer.uint32(24).int64(message.callCount);
@@ -3539,17 +3540,17 @@ exports.CallByTypeEntry = {
3539
3540
  const tag = reader.uint32();
3540
3541
  switch (tag >>> 3) {
3541
3542
  case 1: {
3542
- if (tag !== 10) {
3543
+ if (tag !== 8) {
3543
3544
  break;
3544
3545
  }
3545
- message.callType = reader.string();
3546
+ message.callType = reader.int32();
3546
3547
  continue;
3547
3548
  }
3548
3549
  case 2: {
3549
- if (tag !== 18) {
3550
+ if (tag !== 16) {
3550
3551
  break;
3551
3552
  }
3552
- message.roomType = reader.string();
3553
+ message.roomType = reader.int32();
3553
3554
  continue;
3554
3555
  }
3555
3556
  case 3: {
@@ -3590,8 +3591,8 @@ exports.CallByTypeEntry = {
3590
3591
  },
3591
3592
  fromJSON(object) {
3592
3593
  return {
3593
- callType: isSet(object.callType) ? globalThis.String(object.callType) : "",
3594
- roomType: isSet(object.roomType) ? globalThis.String(object.roomType) : "",
3594
+ callType: isSet(object.callType) ? (0, enum_1.callType_ValueFromJSON)(object.callType) : 0,
3595
+ roomType: isSet(object.roomType) ? (0, enum_1.callRoomType_ValueFromJSON)(object.roomType) : 0,
3595
3596
  callCount: isSet(object.callCount) ? globalThis.Number(object.callCount) : 0,
3596
3597
  totalDurationSeconds: isSet(object.totalDurationSeconds) ? globalThis.Number(object.totalDurationSeconds) : 0,
3597
3598
  avgDurationSeconds: isSet(object.avgDurationSeconds) ? globalThis.Number(object.avgDurationSeconds) : 0,
@@ -3600,11 +3601,11 @@ exports.CallByTypeEntry = {
3600
3601
  },
3601
3602
  toJSON(message) {
3602
3603
  const obj = {};
3603
- if (message.callType !== "") {
3604
- obj.callType = message.callType;
3604
+ if (message.callType !== 0) {
3605
+ obj.callType = (0, enum_1.callType_ValueToJSON)(message.callType);
3605
3606
  }
3606
- if (message.roomType !== "") {
3607
- obj.roomType = message.roomType;
3607
+ if (message.roomType !== 0) {
3608
+ obj.roomType = (0, enum_1.callRoomType_ValueToJSON)(message.roomType);
3608
3609
  }
3609
3610
  if (message.callCount !== 0) {
3610
3611
  obj.callCount = Math.round(message.callCount);
@@ -3626,8 +3627,8 @@ exports.CallByTypeEntry = {
3626
3627
  fromPartial(object) {
3627
3628
  var _a, _b, _c, _d, _e, _f;
3628
3629
  const message = createBaseCallByTypeEntry();
3629
- message.callType = (_a = object.callType) !== null && _a !== void 0 ? _a : "";
3630
- message.roomType = (_b = object.roomType) !== null && _b !== void 0 ? _b : "";
3630
+ message.callType = (_a = object.callType) !== null && _a !== void 0 ? _a : 0;
3631
+ message.roomType = (_b = object.roomType) !== null && _b !== void 0 ? _b : 0;
3631
3632
  message.callCount = (_c = object.callCount) !== null && _c !== void 0 ? _c : 0;
3632
3633
  message.totalDurationSeconds = (_d = object.totalDurationSeconds) !== null && _d !== void 0 ? _d : 0;
3633
3634
  message.avgDurationSeconds = (_e = object.avgDurationSeconds) !== null && _e !== void 0 ? _e : 0;
@@ -0,0 +1,172 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "pb";
3
+ export interface AdminUserStatus {
4
+ }
5
+ export declare enum AdminUserStatus_Value {
6
+ unknown = 0,
7
+ active = 1,
8
+ inactive = 2,
9
+ suspended = 3,
10
+ removed = 4,
11
+ UNRECOGNIZED = -1
12
+ }
13
+ export declare function adminUserStatus_ValueFromJSON(object: any): AdminUserStatus_Value;
14
+ export declare function adminUserStatus_ValueToJSON(object: AdminUserStatus_Value): string;
15
+ export interface AdminMediaStorageProvider {
16
+ }
17
+ export declare enum AdminMediaStorageProvider_Value {
18
+ unknown = 0,
19
+ minio = 1,
20
+ external = 2,
21
+ UNRECOGNIZED = -1
22
+ }
23
+ export declare function adminMediaStorageProvider_ValueFromJSON(object: any): AdminMediaStorageProvider_Value;
24
+ export declare function adminMediaStorageProvider_ValueToJSON(object: AdminMediaStorageProvider_Value): string;
25
+ export interface AdminMediaStatus {
26
+ }
27
+ export declare enum AdminMediaStatus_Value {
28
+ unknown = 0,
29
+ active = 1,
30
+ archived = 2,
31
+ UNRECOGNIZED = -1
32
+ }
33
+ export declare function adminMediaStatus_ValueFromJSON(object: any): AdminMediaStatus_Value;
34
+ export declare function adminMediaStatus_ValueToJSON(object: AdminMediaStatus_Value): string;
35
+ export interface AdminNotificationChannelType {
36
+ }
37
+ export declare enum AdminNotificationChannelType_Value {
38
+ unknown = 0,
39
+ email = 1,
40
+ push = 2,
41
+ in_app = 3,
42
+ UNRECOGNIZED = -1
43
+ }
44
+ export declare function adminNotificationChannelType_ValueFromJSON(object: any): AdminNotificationChannelType_Value;
45
+ export declare function adminNotificationChannelType_ValueToJSON(object: AdminNotificationChannelType_Value): string;
46
+ export interface AdminNotificationWorkflowClass {
47
+ }
48
+ export declare enum AdminNotificationWorkflowClass_Value {
49
+ unknown = 0,
50
+ system = 1,
51
+ manual = 2,
52
+ UNRECOGNIZED = -1
53
+ }
54
+ export declare function adminNotificationWorkflowClass_ValueFromJSON(object: any): AdminNotificationWorkflowClass_Value;
55
+ export declare function adminNotificationWorkflowClass_ValueToJSON(object: AdminNotificationWorkflowClass_Value): string;
56
+ export interface AdminNotificationDispatchStatus {
57
+ }
58
+ export declare enum AdminNotificationDispatchStatus_Value {
59
+ unknown = 0,
60
+ pending = 1,
61
+ queued = 2,
62
+ scheduled = 3,
63
+ processing = 4,
64
+ completed = 5,
65
+ failed = 6,
66
+ cancelled = 7,
67
+ UNRECOGNIZED = -1
68
+ }
69
+ export declare function adminNotificationDispatchStatus_ValueFromJSON(object: any): AdminNotificationDispatchStatus_Value;
70
+ export declare function adminNotificationDispatchStatus_ValueToJSON(object: AdminNotificationDispatchStatus_Value): string;
71
+ export interface AdminNotificationDeliveryStatus {
72
+ }
73
+ export declare enum AdminNotificationDeliveryStatus_Value {
74
+ unknown = 0,
75
+ pending = 1,
76
+ sent = 2,
77
+ delivered = 3,
78
+ read = 4,
79
+ clicked = 5,
80
+ failed = 6,
81
+ cancelled = 7,
82
+ UNRECOGNIZED = -1
83
+ }
84
+ export declare function adminNotificationDeliveryStatus_ValueFromJSON(object: any): AdminNotificationDeliveryStatus_Value;
85
+ export declare function adminNotificationDeliveryStatus_ValueToJSON(object: AdminNotificationDeliveryStatus_Value): string;
86
+ export interface AdminManagedUserStatus {
87
+ }
88
+ export declare enum AdminManagedUserStatus_Value {
89
+ unknown = 0,
90
+ active = 1,
91
+ inactive = 2,
92
+ suspended = 3,
93
+ banned = 4,
94
+ UNRECOGNIZED = -1
95
+ }
96
+ export declare function adminManagedUserStatus_ValueFromJSON(object: any): AdminManagedUserStatus_Value;
97
+ export declare function adminManagedUserStatus_ValueToJSON(object: AdminManagedUserStatus_Value): string;
98
+ export interface AdminManagedSessionStatus {
99
+ }
100
+ export declare enum AdminManagedSessionStatus_Value {
101
+ unknown = 0,
102
+ active = 1,
103
+ blocked = 2,
104
+ expired = 3,
105
+ UNRECOGNIZED = -1
106
+ }
107
+ export declare function adminManagedSessionStatus_ValueFromJSON(object: any): AdminManagedSessionStatus_Value;
108
+ export declare function adminManagedSessionStatus_ValueToJSON(object: AdminManagedSessionStatus_Value): string;
109
+ export interface AdminWalletStatus {
110
+ }
111
+ export declare enum AdminWalletStatus_Value {
112
+ unknown = 0,
113
+ active = 1,
114
+ suspended = 2,
115
+ UNRECOGNIZED = -1
116
+ }
117
+ export declare function adminWalletStatus_ValueFromJSON(object: any): AdminWalletStatus_Value;
118
+ export declare function adminWalletStatus_ValueToJSON(object: AdminWalletStatus_Value): string;
119
+ export interface AdminCounsellorPayoutReleaseMode {
120
+ }
121
+ export declare enum AdminCounsellorPayoutReleaseMode_Value {
122
+ unknown = 0,
123
+ manual = 1,
124
+ auto = 2,
125
+ UNRECOGNIZED = -1
126
+ }
127
+ export declare function adminCounsellorPayoutReleaseMode_ValueFromJSON(object: any): AdminCounsellorPayoutReleaseMode_Value;
128
+ export declare function adminCounsellorPayoutReleaseMode_ValueToJSON(object: AdminCounsellorPayoutReleaseMode_Value): string;
129
+ export interface AdminCounsellorPayoutStatus {
130
+ }
131
+ export declare enum AdminCounsellorPayoutStatus_Value {
132
+ unknown = 0,
133
+ pending = 1,
134
+ in_transit = 2,
135
+ paid = 3,
136
+ failed = 4,
137
+ cancelled = 5,
138
+ UNRECOGNIZED = -1
139
+ }
140
+ export declare function adminCounsellorPayoutStatus_ValueFromJSON(object: any): AdminCounsellorPayoutStatus_Value;
141
+ export declare function adminCounsellorPayoutStatus_ValueToJSON(object: AdminCounsellorPayoutStatus_Value): string;
142
+ export declare const AdminUserStatus: MessageFns<AdminUserStatus>;
143
+ export declare const AdminMediaStorageProvider: MessageFns<AdminMediaStorageProvider>;
144
+ export declare const AdminMediaStatus: MessageFns<AdminMediaStatus>;
145
+ export declare const AdminNotificationChannelType: MessageFns<AdminNotificationChannelType>;
146
+ export declare const AdminNotificationWorkflowClass: MessageFns<AdminNotificationWorkflowClass>;
147
+ export declare const AdminNotificationDispatchStatus: MessageFns<AdminNotificationDispatchStatus>;
148
+ export declare const AdminNotificationDeliveryStatus: MessageFns<AdminNotificationDeliveryStatus>;
149
+ export declare const AdminManagedUserStatus: MessageFns<AdminManagedUserStatus>;
150
+ export declare const AdminManagedSessionStatus: MessageFns<AdminManagedSessionStatus>;
151
+ export declare const AdminWalletStatus: MessageFns<AdminWalletStatus>;
152
+ export declare const AdminCounsellorPayoutReleaseMode: MessageFns<AdminCounsellorPayoutReleaseMode>;
153
+ export declare const AdminCounsellorPayoutStatus: MessageFns<AdminCounsellorPayoutStatus>;
154
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
155
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
156
+ [K in keyof T]?: DeepPartial<T[K]>;
157
+ } : Partial<T>;
158
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
159
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
160
+ [K in keyof P]: Exact<P[K], I[K]>;
161
+ } & {
162
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
163
+ };
164
+ export interface MessageFns<T> {
165
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
166
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
167
+ fromJSON(object: any): T;
168
+ toJSON(message: T): unknown;
169
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
170
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
171
+ }
172
+ export {};