need4deed-sdk 0.0.117 → 0.0.118

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.
@@ -11,6 +11,7 @@ export * from "./language";
11
11
  export * from "./location";
12
12
  export * from "./opportunity";
13
13
  export * from "./option";
14
+ export * from "./post";
14
15
  export * from "./organization";
15
16
  export * from "./person";
16
17
  export * from "./profile";
@@ -27,6 +27,7 @@ __exportStar(require("./language"), exports);
27
27
  __exportStar(require("./location"), exports);
28
28
  __exportStar(require("./opportunity"), exports);
29
29
  __exportStar(require("./option"), exports);
30
+ __exportStar(require("./post"), exports);
30
31
  __exportStar(require("./organization"), exports);
31
32
  __exportStar(require("./person"), exports);
32
33
  __exportStar(require("./profile"), exports);
@@ -0,0 +1,25 @@
1
+ import { VoidableProps } from "../utils";
2
+ export interface ApiPostPerson {
3
+ id: number;
4
+ fullName: string;
5
+ avatarUrl?: string;
6
+ }
7
+ export interface ApiPostLinkedOpportunity {
8
+ id: number;
9
+ title: string;
10
+ }
11
+ export interface ApiPostGet {
12
+ id: number;
13
+ text: string;
14
+ author: ApiPostPerson;
15
+ agentId: number | null;
16
+ taggedPersons: ApiPostPerson[];
17
+ linkedOpportunities: ApiPostLinkedOpportunity[];
18
+ createdAt: Date;
19
+ }
20
+ export interface ApiPostPost {
21
+ text: string;
22
+ taggedPersonIds?: number[];
23
+ linkedOpportunityIds?: number[];
24
+ }
25
+ export type ApiPostPatch = VoidableProps<ApiPostPost>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.117",
3
+ "version": "0.0.118",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",