need4deed-sdk 0.0.62 → 0.0.64

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.
@@ -1,9 +1,8 @@
1
- import { TranslatedIntoType } from "./opportunity";
2
1
  export interface ApiOpportunityAccompanyingDetails {
3
2
  appointmentAddress?: string;
4
- appointmentDate?: Date;
5
- appointmentTime?: Date;
3
+ appointmentDate?: string;
4
+ appointmentTime?: string;
6
5
  refugeeNumber?: string;
7
6
  refugeeName?: string;
8
- languageToTranslate?: TranslatedIntoType;
7
+ languageToTranslate?: number;
9
8
  }
@@ -4,6 +4,7 @@ import { AgentType } from "./agent";
4
4
  import { ApiComment } from "./comment";
5
5
  import { OptionById, OptionId } from "./common";
6
6
  import { ApiLanguage } from "./language";
7
+ import { OptionItem } from "./option";
7
8
  import { PreferredCommunicationType } from "./person";
8
9
  import { ProfileVolunteeringType } from "./profile";
9
10
  import { ApiAvailability } from "./time";
@@ -97,6 +98,7 @@ export interface ApiOpportunityAgent {
97
98
  district: OptionById;
98
99
  }
99
100
  export interface ApiOpportunityContact {
101
+ id: number;
100
102
  name: string;
101
103
  phone: string;
102
104
  email: string;
@@ -124,6 +126,37 @@ export interface ApiOpportunityGet extends ApiOpportunityGetList {
124
126
  agent: ApiOpportunityAgent;
125
127
  accompanyingDetails: ApiOpportunityAccompanyingDetails;
126
128
  }
129
+ export type ApiOpportunityLean = Omit<ApiOpportunityGet, "comments">;
130
+ export type ApiOpportunityPatch = Partial<{
131
+ statusOpportunity: OpportunityStatusType;
132
+ numberVolunteers: number;
133
+ description: string;
134
+ languagesMain: OptionItem[];
135
+ languagesResidents: OptionItem[];
136
+ activities: OptionItem[];
137
+ skills: OptionItem[];
138
+ schedule: ApiAvailability[];
139
+ contact: {
140
+ id: number;
141
+ name: string;
142
+ phone: string;
143
+ email: string;
144
+ waysToContact: PreferredCommunicationType[];
145
+ };
146
+ agent: {
147
+ name: string;
148
+ address: string;
149
+ district: string;
150
+ };
151
+ accompanyingDetails: {
152
+ appointmentAddress: string;
153
+ appointmentDate: string;
154
+ appointmentTime: string;
155
+ refugeeNumber: string;
156
+ refugeeName: string;
157
+ languagesToTranslate: TranslatedIntoType[];
158
+ };
159
+ }>;
127
160
  export interface OpportunityVolunteer {
128
161
  id: number;
129
162
  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.64",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",