need4deed-sdk 0.0.2 → 0.0.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types/api.ts +23 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
package/src/types/api.ts CHANGED
@@ -5,19 +5,30 @@ export interface Testimonial {
5
5
  activities: string[];
6
6
  }
7
7
 
8
- export interface N4DEvent {
9
- id: string;
10
- active: boolean;
11
- menuTitle: string;
8
+ export enum EventN4DType {
9
+ PARTY = "party",
10
+ WORKSHOP = "workshop",
11
+ }
12
+
13
+ export interface EventN4D {
12
14
  title: string;
13
- subtitle?: string;
14
- host?: string;
15
- description: string;
15
+ subTitle?: string;
16
+ menuTitle: string; // for the menu
17
+ hostName?: string;
16
18
  date: Date;
17
19
  dateEnd?: Date;
18
- locationAddress: string;
19
- locationComment?: string;
20
- locationLink?: string;
21
- registrationLink?: string;
22
- picLink?: string; // file name in S3 bucket
20
+ type: EventN4DType;
21
+ pic?: string; // or standard one depending on type
22
+ time: string;
23
+ location: string; // address
24
+ locationLink?: string; // to google maps
25
+ locationComment?: string; // how to spot
26
+ description: string;
27
+ shortDescription: string; // for card view
28
+ linkRSVP: string; // registration form
29
+ followUpText?: string;
30
+ followUpLink?: string; // the adjacent event
31
+ additionalTitle?: string;
32
+ additionalInfo?: string[]; // lineup, content, etc.
33
+ outro?: string;
23
34
  }