need4deed-sdk 0.0.124 → 0.0.126

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.
@@ -3,7 +3,7 @@ import { ApiComment } from "./comment";
3
3
  import { OptionById } from "./common";
4
4
  import { ApiLanguage } from "./language";
5
5
  import { OptionItem } from "./option";
6
- import { ApiPersonGet } from "./person";
6
+ import { ApiPersonGet, ApiPersonPatch } from "./person";
7
7
  export declare enum AgentType {
8
8
  AE = "AE",
9
9
  GU1 = "GU1",
@@ -70,7 +70,10 @@ export interface AgentDetails {
70
70
  export interface ApiRepresentativeGet extends ApiPersonGet {
71
71
  role: AgentRoleType;
72
72
  }
73
- export type ApiRepresentativePatch = VoidableProps<ApiRepresentativeGet>;
73
+ export type ApiRepresentativePatch = ApiPersonPatch & {
74
+ role?: AgentRoleType;
75
+ agentId?: number;
76
+ };
74
77
  interface AgentGetList {
75
78
  id: number;
76
79
  title: string;
@@ -151,6 +151,7 @@ export interface ApiOpportunityGet extends ApiOpportunityGetList {
151
151
  }
152
152
  export type ApiOpportunityLean = Omit<ApiOpportunityGet, "comments">;
153
153
  export type ApiOpportunityPatch = VoidableProps<{
154
+ title: string;
154
155
  statusOpportunity: OpportunityStatusType;
155
156
  numberVolunteers: number;
156
157
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.124",
3
+ "version": "0.0.126",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",