lemmy-js-client 0.20.0-instance-blocks.2 → 0.20.0-instance-blocks.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -135,6 +135,7 @@ export { HidePost } from "./types/HidePost";
135
135
  export { ImageDetails } from "./types/ImageDetails";
136
136
  export { Instance } from "./types/Instance";
137
137
  export { InstanceId } from "./types/InstanceId";
138
+ export { InstanceIdOrDomain } from "./types/InstanceIdOrDomain";
138
139
  export { InstanceWithFederationState } from "./types/InstanceWithFederationState";
139
140
  export { Language } from "./types/Language";
140
141
  export { LanguageId } from "./types/LanguageId";
@@ -1,6 +1,6 @@
1
- import type { InstanceId } from "./InstanceId";
1
+ import type { InstanceIdOrDomain } from "./InstanceIdOrDomain";
2
2
  export type AdminAllowInstanceParams = {
3
- instance_id: InstanceId;
3
+ instance: InstanceIdOrDomain;
4
4
  allow: boolean;
5
5
  reason?: string;
6
6
  };
@@ -1,6 +1,6 @@
1
- import type { InstanceId } from "./InstanceId";
1
+ import type { InstanceIdOrDomain } from "./InstanceIdOrDomain";
2
2
  export type AdminBlockInstanceParams = {
3
- instance_id: InstanceId;
3
+ instance: InstanceIdOrDomain;
4
4
  block: boolean;
5
5
  reason?: string;
6
6
  expires?: string;
@@ -0,0 +1,6 @@
1
+ import type { InstanceId } from "./InstanceId";
2
+ export type InstanceIdOrDomain = {
3
+ InstanceId: InstanceId;
4
+ } | {
5
+ Domain: string;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.20.0-instance-blocks.2",
4
+ "version": "0.20.0-instance-blocks.4",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",