need4deed-sdk 0.0.166 → 0.0.168

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.
@@ -9,8 +9,5 @@ var Endpoint;
9
9
  Endpoint["VOLUNTEER"] = "/volunteer";
10
10
  Endpoint["OPTION"] = "/option";
11
11
  Endpoint["AGENT"] = "/agent";
12
- // Sub-path prefix, mounted under AGENT (mirrors the backend's
13
- // `register(agentRegisterRoutes, { prefix: REGISTER })`). Compose as
14
- // `Endpoint.AGENT + Endpoint.REGISTER` -> "/agent/register".
15
12
  Endpoint["REGISTER"] = "/register";
16
13
  })(Endpoint || (exports.Endpoint = Endpoint = {}));
@@ -143,7 +143,6 @@ export interface ApiAgentRegisterNew {
143
143
  serviceIds?: number[];
144
144
  addressStreet?: string;
145
145
  addressPostcode?: string;
146
- districtId?: number;
147
146
  languages?: number[];
148
147
  }
149
148
  export type ApiAgentRegister = {
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AgentMembershipStatus = exports.AgentTrustType = exports.AgentServiceType = exports.AgentVolunteerSearchType = exports.AgentEngagementStatusType = exports.AgentRoleType = exports.AgentOperatorType = exports.AgentTypeKey = void 0;
4
- // Canonical seed values for the `agent_type` reference table (see AgentType
5
- // below) — not used directly in any API contract.
6
4
  var AgentTypeKey;
7
5
  (function (AgentTypeKey) {
8
6
  AgentTypeKey["AE"] = "AE";
@@ -47,8 +45,6 @@ var AgentVolunteerSearchType;
47
45
  AgentVolunteerSearchType["NOT_NEEDED"] = "agent-not-needed";
48
46
  AgentVolunteerSearchType["VOLUNTEERS_FOUND"] = "agent-volunteers-found";
49
47
  })(AgentVolunteerSearchType || (exports.AgentVolunteerSearchType = AgentVolunteerSearchType = {}));
50
- // Canonical seed values for the `service` reference table (see Service
51
- // below) — not used directly in any API contract.
52
48
  var AgentServiceType;
53
49
  (function (AgentServiceType) {
54
50
  AgentServiceType["CHILDCARE"] = "childcare";
@@ -112,15 +112,6 @@ export interface OpportunityLegacyFormDataProps {
112
112
  language: `${Lang}`;
113
113
  }
114
114
  export type OpportunityLegacyFormData = VoidableUndefined<OpportunityLegacyFormDataProps>;
115
- /**
116
- * Body for `POST /opportunity` — the dashboard's typed create-opportunity
117
- * form. Unlike `OpportunityLegacyFormData` (free-text/ISO-code strings from
118
- * the public form, resolved by title lookup), activities/skills/languages/
119
- * districts here are numeric option ids from `GET /option/*`, resolved by id.
120
- * Deliberately not derived from `OpportunityLegacyFormDataProps`: the two
121
- * shapes look similar but mean different things, and overloading one type for
122
- * both invites exactly the id-vs-title mismatch this type exists to prevent.
123
- */
124
115
  export interface OpportunityCreateFormDataProps {
125
116
  title: string;
126
117
  agent_id?: number;
@@ -215,18 +206,10 @@ export type ApiOpportunityPatch = VoidableProps<{
215
206
  time: string;
216
207
  };
217
208
  contact: {
218
- /**
219
- * Relinks the opportunity to a different Person already registered as a
220
- * contact of the opportunity's agent. `name`/`phone`/`email`/
221
- * `waysToContact` are derived from that Person and returned on
222
- * `ApiOpportunityContact` — editing them directly goes through the
223
- * agent-contact endpoints (`ApiAgentContactPatch`), not this field.
224
- */
225
209
  id: number;
226
210
  };
227
211
  agent: {
228
212
  id?: number;
229
- /** @deprecated free-text in-place edit; use `id` to re-link. BE only applies `name`. */
230
213
  name?: string;
231
214
  };
232
215
  accompanyingDetails: ApiOpportunityAccompanyingDetails;
@@ -241,11 +224,6 @@ export interface OpportunityVolunteer {
241
224
  export interface ApiOpportunityVolunteerGet extends OpportunityVolunteer {
242
225
  title: string;
243
226
  }
244
- /**
245
- * A volunteer linked to an opportunity, as surfaced on an agent's opportunity
246
- * list. Person fields (`name`, `avatarUrl`) are PII-masked per caller role by
247
- * the API, so they may be absent or redacted.
248
- */
249
227
  export interface ApiAgentOpportunityVolunteer {
250
228
  id: number;
251
229
  volunteerId: number;
@@ -253,10 +231,6 @@ export interface ApiAgentOpportunityVolunteer {
253
231
  name?: string;
254
232
  avatarUrl?: string;
255
233
  }
256
- /**
257
- * One of an agent's opportunities with the volunteers linked to it. Response
258
- * item of `GET /agent/:id/opportunity-linked`.
259
- */
260
234
  export interface ApiAgentOpportunity extends Pick<ApiOpportunityGetList, "volunteerType" | "languages" | "activities" | "availability" | "location" | "district"> {
261
235
  id: Id;
262
236
  title: string;
@@ -1,25 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TranslationStatus = exports.TranslationOrigin = void 0;
4
- // Machine translation of user-entered content (be#1064). Each
5
- // field_translation row records where its text came from and, for machine
6
- // rows, where it is in the translation queue.
7
4
  var TranslationOrigin;
8
5
  (function (TranslationOrigin) {
9
- // Seeded, pre-translated reference data (skills, activities, languages, ...).
10
6
  TranslationOrigin["REFERENCE"] = "reference";
11
- // Produced by the machine-translation worker.
12
7
  TranslationOrigin["MACHINE"] = "machine";
13
- // Written or confirmed by a person. Never overwritten by MT while the
14
- // source text is unchanged.
15
8
  TranslationOrigin["HUMAN"] = "human";
16
9
  })(TranslationOrigin || (exports.TranslationOrigin = TranslationOrigin = {}));
17
10
  var TranslationStatus;
18
11
  (function (TranslationStatus) {
19
- // Queued for the machine-translation worker; no usable text yet.
20
12
  TranslationStatus["PENDING"] = "pending";
21
13
  TranslationStatus["DONE"] = "done";
22
- // Gave up (retries exhausted or output failed validation); readers fall
23
- // back to the original text.
24
14
  TranslationStatus["FAILED"] = "failed";
25
15
  })(TranslationStatus || (exports.TranslationStatus = TranslationStatus = {}));
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
- // Email-domain allowlist for agent self-registration. A registrant whose email
3
- // domain is on this list is treated as belonging to a known RAC organisation —
4
- // so a brand-new representative (whose org has no existing member yet) can still
5
- // register, and a join auto-approves to ACTIVE. Managed by COORDINATOR/ADMIN.
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VolunteerAuditLogType = void 0;
4
- // Read-only audit trail of things that change on a volunteer's record
5
- // (be#919). Distinct from ApiActivityLogGet/ApiActivityLogEntry
6
- // (./activity-log.ts), an unrelated hours-worked ledger per
7
- // opportunity-volunteer pairing that happens to share a similar name.
8
4
  var VolunteerAuditLogType;
9
5
  (function (VolunteerAuditLogType) {
10
6
  VolunteerAuditLogType["CONTACT_DETAILS_CHANGED"] = "contact_details_changed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "need4deed-sdk",
3
- "version": "0.0.166",
3
+ "version": "0.0.168",
4
4
  "description": "Need4Deed.org SDK",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",