need4deed-sdk 0.0.2 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types/api.ts +22 -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.3",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
package/src/types/api.ts CHANGED
@@ -5,19 +5,29 @@ 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
+ hostName?: string;
16
17
  date: Date;
17
18
  dateEnd?: Date;
18
- locationAddress: string;
19
- locationComment?: string;
20
- locationLink?: string;
21
- registrationLink?: string;
22
- picLink?: string; // file name in S3 bucket
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;
23
33
  }