@selfcommunity/api-services 0.4.9-alpha.4 → 0.4.9-alpha.5

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.
@@ -50,9 +50,13 @@ export interface ThreadDeleteParams {
50
50
  */
51
51
  export interface MessageCreateParams {
52
52
  /**
53
- * The id(s) of the recipient(s) of the message
53
+ * The id(s) of the recipient(s) of the message. If present, group is null.
54
54
  */
55
- recipients: number | number[];
55
+ recipients?: number | number[];
56
+ /**
57
+ * The id of the group where the message is sent. If present, recipients is null.
58
+ */
59
+ group?: number;
56
60
  /**
57
61
  * The content of the message. It is required when file_uuid param is missing.
58
62
  */
@@ -50,9 +50,13 @@ export interface ThreadDeleteParams {
50
50
  */
51
51
  export interface MessageCreateParams {
52
52
  /**
53
- * The id(s) of the recipient(s) of the message
53
+ * The id(s) of the recipient(s) of the message. If present, group is null.
54
54
  */
55
- recipients: number | number[];
55
+ recipients?: number | number[];
56
+ /**
57
+ * The id of the group where the message is sent. If present, recipients is null.
58
+ */
59
+ group?: number;
56
60
  /**
57
61
  * The content of the message. It is required when file_uuid param is missing.
58
62
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selfcommunity/api-services",
3
- "version": "0.4.9-alpha.4",
3
+ "version": "0.4.9-alpha.5",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "./lib/cjs/index.js",
@@ -58,7 +58,7 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "@selfcommunity/types": "^0.5.9-alpha.3",
61
+ "@selfcommunity/types": "^0.5.9-alpha.4",
62
62
  "@selfcommunity/utils": "^0.2.9-alpha.0",
63
63
  "axios": "^1.4.0",
64
64
  "jose": "^4.14.4"
@@ -110,5 +110,5 @@
110
110
  "bugs": {
111
111
  "url": "https://github.com/selfcommunity/community-js/issues"
112
112
  },
113
- "gitHead": "dab36531f0a94515683a45e56da9ea3d1b8df6b4"
113
+ "gitHead": "837e71bbfed444b952f1075bf2f14651c518c8c3"
114
114
  }