need4deed-sdk 0.0.62 → 0.0.63

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.
@@ -97,6 +97,7 @@ export interface ApiOpportunityAgent {
97
97
  district: OptionById;
98
98
  }
99
99
  export interface ApiOpportunityContact {
100
+ id: number;
100
101
  name: string;
101
102
  phone: string;
102
103
  email: string;
@@ -124,6 +125,32 @@ export interface ApiOpportunityGet extends ApiOpportunityGetList {
124
125
  agent: ApiOpportunityAgent;
125
126
  accompanyingDetails: ApiOpportunityAccompanyingDetails;
126
127
  }
128
+ export type ApiOpportunityLean = Omit<ApiOpportunityGet, "comments">;
129
+ export type ApiOpportunityPatch = Partial<{
130
+ statusOpportunity: OpportunityStatusType;
131
+ numberVolunteers: number;
132
+ description: string;
133
+ contact: {
134
+ id: number;
135
+ name: string;
136
+ phone: string;
137
+ email: string;
138
+ waysToContact: PreferredCommunicationType[];
139
+ };
140
+ agent: {
141
+ name: string;
142
+ address: string;
143
+ district: string;
144
+ };
145
+ accompanyingDetails: {
146
+ appointmentAddress: string;
147
+ appointmentDate: string;
148
+ appointmentTime: string;
149
+ refugeeNumber: string;
150
+ refugeeName: string;
151
+ languagesToTranslate: TranslatedIntoType[];
152
+ };
153
+ }>;
127
154
  export interface OpportunityVolunteer {
128
155
  id: number;
129
156
  status: OpportunityVolunteerStatusType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",