@polinetwork/backend 0.15.9 → 0.15.11

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/index.d.cts CHANGED
@@ -33,7 +33,7 @@ declare const AUDIT_TYPE: {
33
33
  readonly MUTE: "mute";
34
34
  readonly UNMUTE: "unmute";
35
35
  readonly BAN_ALL: "ban_all";
36
- readonly MUTE_ALL: "mute_all";
36
+ readonly UNBAN_ALL: "unban_all";
37
37
  };
38
38
  type TAuditType = (typeof AUDIT_TYPE)[keyof typeof AUDIT_TYPE];
39
39
 
@@ -149,6 +149,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
149
149
  title: string;
150
150
  tag: string | null;
151
151
  link: string | null;
152
+ hide: boolean;
152
153
  }[];
153
154
  meta: object;
154
155
  }>;
@@ -156,6 +157,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
156
157
  input: {
157
158
  query: string;
158
159
  limit?: number | undefined;
160
+ showHidden?: boolean | undefined;
159
161
  };
160
162
  output: {
161
163
  groups: {
@@ -163,6 +165,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
163
165
  title: string;
164
166
  tag: string | null;
165
167
  link: string | null;
168
+ hide: boolean;
166
169
  }[];
167
170
  count: number;
168
171
  };
@@ -179,6 +182,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
179
182
  title: string;
180
183
  tag: string | null;
181
184
  link: string | null;
185
+ hide: boolean;
182
186
  } | null;
183
187
  meta: object;
184
188
  }>;
@@ -193,6 +197,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
193
197
  title: string;
194
198
  tag: string | null;
195
199
  link: string | null;
200
+ hide: boolean;
196
201
  } | null;
197
202
  meta: object;
198
203
  }>;
@@ -213,6 +218,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
213
218
  output: boolean;
214
219
  meta: object;
215
220
  }>;
221
+ setHide: _trpc_server.TRPCMutationProcedure<{
222
+ input: {
223
+ telegramId: number;
224
+ hide: boolean;
225
+ };
226
+ output: boolean;
227
+ meta: object;
228
+ }>;
216
229
  }>>;
217
230
  permissions: _trpc_server.TRPCBuiltRouter<{
218
231
  ctx: {
@@ -502,7 +515,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
502
515
  input: {
503
516
  adminId: number;
504
517
  targetId: number;
505
- type: "ban" | "unban" | "kick" | "mute" | "unmute" | "ban_all" | "mute_all";
518
+ type: "ban" | "unban" | "kick" | "mute" | "unmute" | "ban_all" | "unban_all";
506
519
  groupId: number | null;
507
520
  until: Date | null;
508
521
  reason?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -33,7 +33,7 @@ declare const AUDIT_TYPE: {
33
33
  readonly MUTE: "mute";
34
34
  readonly UNMUTE: "unmute";
35
35
  readonly BAN_ALL: "ban_all";
36
- readonly MUTE_ALL: "mute_all";
36
+ readonly UNBAN_ALL: "unban_all";
37
37
  };
38
38
  type TAuditType = (typeof AUDIT_TYPE)[keyof typeof AUDIT_TYPE];
39
39
 
@@ -149,6 +149,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
149
149
  title: string;
150
150
  tag: string | null;
151
151
  link: string | null;
152
+ hide: boolean;
152
153
  }[];
153
154
  meta: object;
154
155
  }>;
@@ -156,6 +157,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
156
157
  input: {
157
158
  query: string;
158
159
  limit?: number | undefined;
160
+ showHidden?: boolean | undefined;
159
161
  };
160
162
  output: {
161
163
  groups: {
@@ -163,6 +165,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
163
165
  title: string;
164
166
  tag: string | null;
165
167
  link: string | null;
168
+ hide: boolean;
166
169
  }[];
167
170
  count: number;
168
171
  };
@@ -179,6 +182,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
179
182
  title: string;
180
183
  tag: string | null;
181
184
  link: string | null;
185
+ hide: boolean;
182
186
  } | null;
183
187
  meta: object;
184
188
  }>;
@@ -193,6 +197,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
193
197
  title: string;
194
198
  tag: string | null;
195
199
  link: string | null;
200
+ hide: boolean;
196
201
  } | null;
197
202
  meta: object;
198
203
  }>;
@@ -213,6 +218,14 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
213
218
  output: boolean;
214
219
  meta: object;
215
220
  }>;
221
+ setHide: _trpc_server.TRPCMutationProcedure<{
222
+ input: {
223
+ telegramId: number;
224
+ hide: boolean;
225
+ };
226
+ output: boolean;
227
+ meta: object;
228
+ }>;
216
229
  }>>;
217
230
  permissions: _trpc_server.TRPCBuiltRouter<{
218
231
  ctx: {
@@ -502,7 +515,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
502
515
  input: {
503
516
  adminId: number;
504
517
  targetId: number;
505
- type: "ban" | "unban" | "kick" | "mute" | "unmute" | "ban_all" | "mute_all";
518
+ type: "ban" | "unban" | "kick" | "mute" | "unmute" | "ban_all" | "unban_all";
506
519
  groupId: number | null;
507
520
  until: Date | null;
508
521
  reason?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polinetwork/backend",
3
- "version": "0.15.9",
3
+ "version": "0.15.11",
4
4
  "description": "Utils to interact with the backend.",
5
5
  "repository": {
6
6
  "type": "git",