need4deed-sdk 0.0.145 → 0.0.146

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.
@@ -169,9 +169,6 @@ export interface ApiAgentAddressConflict {
169
169
  agentId: number;
170
170
  }
171
171
  export type ApiAgentRegisterConflict = ApiAgentTitleConflict | ApiAgentAddressConflict;
172
- export interface ApiAgentCreateResponse {
173
- agentId: number;
174
- }
175
172
  export interface ApiAgentMembership {
176
173
  id: number;
177
174
  agentId: number;
@@ -1,3 +1,4 @@
1
+ import { Lang, VoidableProps } from "..";
1
2
  export declare enum EventN4DType {
2
3
  PARTY = "party",
3
4
  WORKSHOP = "workshop"
@@ -13,7 +14,7 @@ export interface EventN4D {
13
14
  dateEnd?: Date;
14
15
  type: EventN4DType;
15
16
  pic?: string;
16
- time: string;
17
+ time?: string;
17
18
  address: string;
18
19
  locationLink?: string;
19
20
  locationComment?: string;
@@ -26,5 +27,59 @@ export interface EventN4D {
26
27
  additionalInfo?: string[];
27
28
  outro?: string;
28
29
  }
29
- export interface ApiEventN4DGet extends EventN4D {
30
+ export interface ApiEventN4DGetList {
31
+ id: number;
32
+ active: boolean;
33
+ title: string;
34
+ subTitle?: string;
35
+ menuTitle: string;
36
+ date: Date;
37
+ dateEnd?: Date;
38
+ type: EventN4DType;
39
+ pic?: string;
40
+ address: string;
41
+ locationComment?: string;
42
+ description: string;
43
+ shortDescription: string;
44
+ linkRSVP: string;
45
+ additionalTitle?: string;
46
+ additionalInfo?: string[];
47
+ }
48
+ export interface ApiEventN4DGet extends ApiEventN4DGetList {
49
+ hostName?: string;
50
+ time?: string;
51
+ locationLink?: string;
52
+ followUpText?: string;
53
+ followUpLink?: string;
54
+ outro?: string;
55
+ }
56
+ export interface ApiEventN4DTranslationInput {
57
+ language: Lang;
58
+ title: string;
59
+ subTitle?: string;
60
+ menuTitle: string;
61
+ time?: string;
62
+ locationComment?: string;
63
+ description: string;
64
+ shortDescription: string;
65
+ additionalTitle?: string;
66
+ additionalInfo?: string[];
67
+ outro?: string;
68
+ followUpText?: string;
69
+ }
70
+ export interface ApiEventN4DCreate {
71
+ date: Date;
72
+ dateEnd?: Date;
73
+ type: EventN4DType;
74
+ pic?: string;
75
+ locationLink?: string;
76
+ linkRSVP: string;
77
+ followUpLink?: string;
78
+ address: string;
79
+ hostName?: string;
80
+ active?: boolean;
81
+ translations: ApiEventN4DTranslationInput[];
30
82
  }
83
+ export type ApiEventN4DPatch = VoidableProps<Omit<ApiEventN4DCreate, "translations">> & {
84
+ translations?: ApiEventN4DTranslationInput[];
85
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.145",
3
+ "version": "0.0.146",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",