need4deed-sdk 0.0.48 → 0.0.50

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.
@@ -5,11 +5,14 @@ import { ApiComment } from "./comment";
5
5
  import { OptionById, OptionId } from "./common";
6
6
  import { ApiLanguage } from "./language";
7
7
  import { PrefferedCommunicationType } from "./person";
8
+ import { ProfileVolunteeringType } from "./profile";
8
9
  import { VolunteerStateTypeType } from "./volunteer";
9
- export declare enum OpportunityType {
10
- GENERAL = "volunteering",
11
- ACCOMPANYING = "accompanying"
12
- }
10
+ export declare const REGULAR_ACCOMPANYING: ProfileVolunteeringType, OpportunityType: {
11
+ ACCOMPANYING: ProfileVolunteeringType.ACCOMPANYING;
12
+ REGULAR: ProfileVolunteeringType.REGULAR;
13
+ EVENTS: ProfileVolunteeringType.EVENTS;
14
+ };
15
+ export type OpportunityType = Exclude<ProfileVolunteeringType, ProfileVolunteeringType.REGULAR_ACCOMPANYING>;
13
16
  export declare enum TranslatedIntoType {
14
17
  DEUTSCHE = "deutsche",
15
18
  ENGLISH_OK = "englishOk",
@@ -33,7 +36,7 @@ export declare enum OpportunityVolunteerStatusType {
33
36
  ACTIVE = "active",
34
37
  PAST = "past"
35
38
  }
36
- export interface Opportunity {
39
+ export interface OpportunityFormData {
37
40
  title: string;
38
41
  rac_email: string;
39
42
  rac_full_name: string;
@@ -82,9 +85,9 @@ export interface ApiOpportunityAccompanyingDetails {
82
85
  export interface ApiOpportunityGetList {
83
86
  id: Id;
84
87
  title: string;
85
- categoryId: OptionById;
86
- volunteerType: VolunteerStateTypeType;
87
- statusOpportunity: OpportunityStatusType;
88
+ category: OptionById;
89
+ type: VolunteerStateTypeType;
90
+ status: OpportunityStatusType;
88
91
  }
89
92
  export interface ApiOpportunityGet extends ApiOpportunityGetList {
90
93
  createdAt: Date;
@@ -1,11 +1,19 @@
1
1
  "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OpportunityVolunteerStatusType = exports.OpportunityMatchStatus = exports.OpportunityStatusType = exports.TranslatedIntoType = exports.OpportunityType = void 0;
4
- var OpportunityType;
5
- (function (OpportunityType) {
6
- OpportunityType["GENERAL"] = "volunteering";
7
- OpportunityType["ACCOMPANYING"] = "accompanying";
8
- })(OpportunityType || (exports.OpportunityType = OpportunityType = {}));
14
+ exports.OpportunityVolunteerStatusType = exports.OpportunityMatchStatus = exports.OpportunityStatusType = exports.TranslatedIntoType = exports.OpportunityType = exports.REGULAR_ACCOMPANYING = void 0;
15
+ const profile_1 = require("./profile");
16
+ exports.REGULAR_ACCOMPANYING = profile_1.ProfileVolunteeringType.REGULAR_ACCOMPANYING, exports.OpportunityType = __rest(profile_1.ProfileVolunteeringType, ["REGULAR_ACCOMPANYING"]);
9
17
  var TranslatedIntoType;
10
18
  (function (TranslatedIntoType) {
11
19
  TranslatedIntoType["DEUTSCHE"] = "deutsche";
@@ -1,5 +1,5 @@
1
1
  import { DocumentStatusType, Id } from "../core";
2
- import { OptionId } from "./common";
2
+ import { OptionById, OptionId } from "./common";
3
3
  import { ApiLanguage } from "./language";
4
4
  import { ApiOpportunityGetList, OpportunityVolunteerStatusType } from "./opportunity";
5
5
  import { OptionItem } from "./option";
@@ -127,7 +127,7 @@ export interface ApiVolunteerGet {
127
127
  }
128
128
  export interface VolunteerPatchBodyData extends Partial<ApiVolunteerGet> {
129
129
  }
130
- export interface ApiVolunteerOpportunityGet {
130
+ export interface ApiOpportunityVolunteerGet {
131
131
  id: number;
132
132
  opportunityId: number;
133
133
  volunteerId: number;
@@ -135,3 +135,9 @@ export interface ApiVolunteerOpportunityGet {
135
135
  status: OpportunityVolunteerStatusType;
136
136
  updatedAt: Date;
137
137
  }
138
+ export interface ApiVolunteerOpportunityGetList extends ApiOpportunityGetList {
139
+ languages: ApiLanguage[];
140
+ activities: OptionById[];
141
+ location: OptionById[];
142
+ availability: ApiAvailability[];
143
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,8 @@
24
24
  "watch": "tsc --watch --project tsconfig.cjs.json",
25
25
  "prepublishOnly": "yarn build",
26
26
  "publish": "yarn publish --non-interactive",
27
- "create-pr": "./create-pr.sh"
27
+ "create-pr": "./create-pr.sh",
28
+ "typecheck": "tsc --noEmit"
28
29
  },
29
30
  "keywords": [
30
31
  "sdk",