need4deed-sdk 0.0.1 → 0.0.3

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/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Need4Deed.org SDK",
5
- "main": "index.ts",
5
+ "main": "src/index.ts",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "author": "Need4Deed.org",
10
- "license": "MIT"
10
+ "license": "MIT",
11
+ "devDependencies": {
12
+ "typescript": "^5.8.3"
13
+ }
11
14
  }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,33 @@
1
+ export interface Testimonial {
2
+ name: string;
3
+ pic: string; // base64 encoded thumb most probably
4
+ translated_text: string;
5
+ activities: string[];
6
+ }
7
+
8
+ export enum EventN4DType {
9
+ PARTY = "party",
10
+ WORKSHOP = "workshop",
11
+ }
12
+
13
+ export interface EventN4D {
14
+ title: string;
15
+ subTitle?: string;
16
+ hostName?: string;
17
+ date: Date;
18
+ dateEnd?: Date;
19
+ type: EventN4DType;
20
+ pic?: string; // or standard one depending on type
21
+ time: string;
22
+ location: string; // address
23
+ locationLink?: string; // to google maps
24
+ locationComment?: string; // how to spot
25
+ description: string;
26
+ shortDescription: string; // for card view
27
+ linkRSVP: string; // registration form
28
+ followUpText?: string;
29
+ followUpLink?: string; // the adjacent event
30
+ additionalTitle?: string;
31
+ additionalInfo?: string[]; // lineup, content, etc.
32
+ outro?: string;
33
+ }
@@ -0,0 +1 @@
1
+ export * from "./api";