need4deed-sdk 0.0.116 → 0.0.118
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.
package/dist/types/api/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./language"), exports);
|
|
|
27
27
|
__exportStar(require("./location"), exports);
|
|
28
28
|
__exportStar(require("./opportunity"), exports);
|
|
29
29
|
__exportStar(require("./option"), exports);
|
|
30
|
+
__exportStar(require("./post"), exports);
|
|
30
31
|
__exportStar(require("./organization"), exports);
|
|
31
32
|
__exportStar(require("./person"), exports);
|
|
32
33
|
__exportStar(require("./profile"), exports);
|
|
@@ -15,6 +15,10 @@ export declare const REGULAR_ACCOMPANYING: ProfileVolunteeringType, OpportunityT
|
|
|
15
15
|
EVENTS: ProfileVolunteeringType.EVENTS;
|
|
16
16
|
};
|
|
17
17
|
export type OpportunityType = Exclude<ProfileVolunteeringType, ProfileVolunteeringType.REGULAR_ACCOMPANYING>;
|
|
18
|
+
export declare enum OpportunityLegacyType {
|
|
19
|
+
VOLUNTEERING = "volunteering",
|
|
20
|
+
ACCOMPANYING = "accompanying"
|
|
21
|
+
}
|
|
18
22
|
export declare enum TranslatedIntoType {
|
|
19
23
|
DEUTSCHE = "deutsche",
|
|
20
24
|
ENGLISH_OK = "englishOk",
|
|
@@ -82,7 +86,7 @@ export interface OpportunityLegacyFormDataProps {
|
|
|
82
86
|
rac_plz?: string;
|
|
83
87
|
agent_id?: number;
|
|
84
88
|
submitted_by_id?: number;
|
|
85
|
-
opportunity_type:
|
|
89
|
+
opportunity_type: OpportunityLegacyType;
|
|
86
90
|
accomp_address?: string;
|
|
87
91
|
accomp_postcode?: string;
|
|
88
92
|
accomp_datetime?: string;
|
|
@@ -11,9 +11,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.OpportunityVolunteerStatusType = exports.OpportunityMatchStatus = exports.OpportunityMatchStatusType = exports.OpportunityStatusType = exports.TranslatedIntoType = exports.OpportunityType = exports.REGULAR_ACCOMPANYING = void 0;
|
|
14
|
+
exports.OpportunityVolunteerStatusType = exports.OpportunityMatchStatus = exports.OpportunityMatchStatusType = exports.OpportunityStatusType = exports.TranslatedIntoType = exports.OpportunityLegacyType = exports.OpportunityType = exports.REGULAR_ACCOMPANYING = void 0;
|
|
15
15
|
const profile_1 = require("./profile");
|
|
16
16
|
exports.REGULAR_ACCOMPANYING = profile_1.ProfileVolunteeringType.REGULAR_ACCOMPANYING, exports.OpportunityType = __rest(profile_1.ProfileVolunteeringType, ["REGULAR_ACCOMPANYING"]);
|
|
17
|
+
var OpportunityLegacyType;
|
|
18
|
+
(function (OpportunityLegacyType) {
|
|
19
|
+
OpportunityLegacyType["VOLUNTEERING"] = "volunteering";
|
|
20
|
+
OpportunityLegacyType["ACCOMPANYING"] = "accompanying";
|
|
21
|
+
})(OpportunityLegacyType || (exports.OpportunityLegacyType = OpportunityLegacyType = {}));
|
|
17
22
|
var TranslatedIntoType;
|
|
18
23
|
(function (TranslatedIntoType) {
|
|
19
24
|
TranslatedIntoType["DEUTSCHE"] = "deutsche";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VoidableProps } from "../utils";
|
|
2
|
+
export interface ApiPostPerson {
|
|
3
|
+
id: number;
|
|
4
|
+
fullName: string;
|
|
5
|
+
avatarUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ApiPostLinkedOpportunity {
|
|
8
|
+
id: number;
|
|
9
|
+
title: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ApiPostGet {
|
|
12
|
+
id: number;
|
|
13
|
+
text: string;
|
|
14
|
+
author: ApiPostPerson;
|
|
15
|
+
agentId: number | null;
|
|
16
|
+
taggedPersons: ApiPostPerson[];
|
|
17
|
+
linkedOpportunities: ApiPostLinkedOpportunity[];
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
}
|
|
20
|
+
export interface ApiPostPost {
|
|
21
|
+
text: string;
|
|
22
|
+
taggedPersonIds?: number[];
|
|
23
|
+
linkedOpportunityIds?: number[];
|
|
24
|
+
}
|
|
25
|
+
export type ApiPostPatch = VoidableProps<ApiPostPost>;
|