need4deed-sdk 0.0.59 → 0.0.60
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TranslatedIntoType } from "./opportunity";
|
|
2
|
+
export interface ApiOpportunityAccompanyingDetails {
|
|
3
|
+
appointmentAddress?: string;
|
|
4
|
+
appointmentDate?: Date;
|
|
5
|
+
appointmentTime?: Date;
|
|
6
|
+
refugeeNumber?: string;
|
|
7
|
+
refugeeName?: string;
|
|
8
|
+
languageToTranslate?: TranslatedIntoType;
|
|
9
|
+
}
|
package/dist/types/api/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./accompanying"), exports);
|
|
17
18
|
__exportStar(require("./agent"), exports);
|
|
18
19
|
__exportStar(require("./appreciation"), exports);
|
|
19
20
|
__exportStar(require("./comment"), exports);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Id } from "..";
|
|
1
|
+
import { Id, Lang } from "..";
|
|
2
|
+
import { ApiOpportunityAccompanyingDetails } from "./accompanying";
|
|
2
3
|
import { AgentType } from "./agent";
|
|
3
|
-
import { ApiAvailability } from "./time";
|
|
4
4
|
import { ApiComment } from "./comment";
|
|
5
5
|
import { OptionById, OptionId } from "./common";
|
|
6
6
|
import { ApiLanguage } from "./language";
|
|
7
7
|
import { PreferredCommunicationType } from "./person";
|
|
8
8
|
import { ProfileVolunteeringType } from "./profile";
|
|
9
|
+
import { ApiAvailability } from "./time";
|
|
9
10
|
import { VolunteerStateTypeType } from "./volunteer";
|
|
10
11
|
export declare const REGULAR_ACCOMPANYING: ProfileVolunteeringType, OpportunityType: {
|
|
11
12
|
ACCOMPANYING: ProfileVolunteeringType.ACCOMPANYING;
|
|
@@ -62,6 +63,33 @@ export interface OpportunityFormData {
|
|
|
62
63
|
category_id: OptionId;
|
|
63
64
|
last_edited_time_notion?: string;
|
|
64
65
|
}
|
|
66
|
+
export interface OpportunityLegacyFormData {
|
|
67
|
+
title: string;
|
|
68
|
+
rac_email: string;
|
|
69
|
+
rac_full_name: string;
|
|
70
|
+
rac_phone: string;
|
|
71
|
+
rac_address: string;
|
|
72
|
+
rac_plz: string;
|
|
73
|
+
opportunity_type: "accompanying" | "volunteering";
|
|
74
|
+
accomp_address: string;
|
|
75
|
+
accomp_postcode: string;
|
|
76
|
+
accomp_datetime?: string;
|
|
77
|
+
accomp_name?: string;
|
|
78
|
+
accomp_phone?: string;
|
|
79
|
+
accomp_information?: string;
|
|
80
|
+
accomp_translation?: `${TranslatedIntoType}`;
|
|
81
|
+
berlin_locations?: string[];
|
|
82
|
+
languages: string[];
|
|
83
|
+
activities: string[];
|
|
84
|
+
skills: string[];
|
|
85
|
+
timeslots?: [number, string][];
|
|
86
|
+
volunteers_number: number;
|
|
87
|
+
vo_information?: string;
|
|
88
|
+
category: string;
|
|
89
|
+
category_id: OptionId;
|
|
90
|
+
last_edited_time_notion?: string;
|
|
91
|
+
language: `${Lang}`;
|
|
92
|
+
}
|
|
65
93
|
export interface ApiOpportunityAgent {
|
|
66
94
|
type: AgentType;
|
|
67
95
|
name: string;
|
|
@@ -74,14 +102,6 @@ export interface ApiOpportunityContact {
|
|
|
74
102
|
email: string;
|
|
75
103
|
waysToContact: PreferredCommunicationType[];
|
|
76
104
|
}
|
|
77
|
-
export interface ApiOpportunityAccompanyingDetails {
|
|
78
|
-
appointmentAddress?: string;
|
|
79
|
-
appointmentDate?: Date;
|
|
80
|
-
appointmentTime?: Date;
|
|
81
|
-
refugeeNumber?: string;
|
|
82
|
-
refugeeName?: string;
|
|
83
|
-
languageToTranslate?: TranslatedIntoType;
|
|
84
|
-
}
|
|
85
105
|
export interface ApiOpportunityGetList {
|
|
86
106
|
id: Id;
|
|
87
107
|
title: string;
|