@reapit/gbl-pp-owner-api-ts-definitions 1.0.0 → 1.0.4

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.
Files changed (34) hide show
  1. package/README.md +86 -52
  2. package/dist/index.d.ts +3 -10
  3. package/dist/index.js +3 -10
  4. package/dist/one-portal-api/index.d.ts +2 -0
  5. package/dist/one-portal-api/index.js +18 -0
  6. package/dist/{types/user.d.ts → one-portal-api/private.d.ts} +44 -94
  7. package/dist/one-portal-api/public.d.ts +105 -0
  8. package/dist/{types → owner-api}/agency.d.ts +65 -1
  9. package/dist/{types → owner-api}/attachment.d.ts +22 -0
  10. package/dist/owner-api/beneficiaries.d.ts +85 -0
  11. package/dist/owner-api/csv.d.ts +96 -0
  12. package/dist/owner-api/index.d.ts +10 -0
  13. package/dist/owner-api/index.js +26 -0
  14. package/dist/{types/ownership.d.ts → owner-api/ownerships.d.ts} +45 -0
  15. package/dist/{types → owner-api}/payment.d.ts +224 -0
  16. package/dist/owner-api/properties.d.ts +100 -0
  17. package/dist/owner-api/shared.js +2 -0
  18. package/dist/{types → owner-api}/tenant.d.ts +136 -0
  19. package/dist/owner-api/tenant.js +2 -0
  20. package/package.json +3 -4
  21. package/dist/types/beneficiaries.d.ts +0 -32
  22. package/dist/types/properties.d.ts +0 -35
  23. /package/dist/{types/error.d.ts → error.d.ts} +0 -0
  24. /package/dist/{types/error.js → error.js} +0 -0
  25. /package/dist/{types/agency.js → one-portal-api/private.js} +0 -0
  26. /package/dist/{types/attachment.js → one-portal-api/public.js} +0 -0
  27. /package/dist/{types/beneficiaries.js → owner-api/agency.js} +0 -0
  28. /package/dist/{types/ownership.js → owner-api/attachment.js} +0 -0
  29. /package/dist/{types/payment.js → owner-api/beneficiaries.js} +0 -0
  30. /package/dist/{types/properties.js → owner-api/csv.js} +0 -0
  31. /package/dist/{types/shared.js → owner-api/ownerships.js} +0 -0
  32. /package/dist/{types/tenant.js → owner-api/payment.js} +0 -0
  33. /package/dist/{types/user.js → owner-api/properties.js} +0 -0
  34. /package/dist/{types → owner-api}/shared.d.ts +0 -0
@@ -0,0 +1,85 @@
1
+ import type { AddressModel, AgencyBasicModel, DateString, ExternalID, PaginationModel } from "./shared";
2
+ /**
3
+ * Full beneficiary entity. Contains all beneficiary details including
4
+ * address and ownership information.
5
+ */
6
+ export interface BeneficiaryModel {
7
+ /** Address associated with the beneficiary. */
8
+ address: AddressModel;
9
+ /** Minimal information about the agency associated with this beneficiary. */
10
+ agency: AgencyBasicModel;
11
+ /** Business name. */
12
+ business_name: string;
13
+ /** Formatted beneficiary display name used on the platform. */
14
+ display_name: string;
15
+ /** Beneficiary first name. */
16
+ first_name: string;
17
+ /** PayProp external ID. */
18
+ id: ExternalID;
19
+ /** Beneficiary last name. */
20
+ last_name: string;
21
+ /** Number of unique properties the beneficiary has an ownership. */
22
+ number_of_properties: number;
23
+ }
24
+ /**
25
+ * Paginated response from `GET /beneficiaries`.
26
+ */
27
+ export interface BeneficiariesPagedResult {
28
+ /** List of beneficiary entities. */
29
+ items: BeneficiaryModel[];
30
+ /** Pagination metadata. */
31
+ pagination: PaginationModel;
32
+ }
33
+ /**
34
+ * Query parameters for `GET /beneficiaries`.
35
+ */
36
+ export interface BeneficiariesQueryParams {
37
+ /**
38
+ * Number of rows to return.
39
+ * Must be between 1 and 25.
40
+ * @example 12
41
+ */
42
+ rows?: number;
43
+ /**
44
+ * Page number to return.
45
+ * Must be >= 1.
46
+ * @example 3
47
+ */
48
+ page?: number;
49
+ /**
50
+ * Filter beneficiaries based on ownership start date.
51
+ *
52
+ * If `end_date` is not provided, ownerships are filtered to those whose start date is on or after the given `start_date`.
53
+ *
54
+ * If both `start_date` and `end_date` are provided, ownerships are filtered where the ownership start date
55
+ * is on or before `end_date`, and the ownership end date is either not set or on or after `start_date`.
56
+ * @example '2025-10-21'
57
+ */
58
+ start_date?: DateString;
59
+ /**
60
+ * Filter beneficiaries based on ownership end date.
61
+ *
62
+ * If `start_date` is not provided, ownerships are filtered to those whose start date is on or before `end_date`,
63
+ * and whose end date is either not set or on or after `end_date`.
64
+ *
65
+ * If both `start_date` and `end_date` are provided, ownerships are filtered where the ownership start date
66
+ * is on or before `end_date`, and the ownership end date is either not set or on or after `start_date`.
67
+ * @example '2025-10-21'
68
+ */
69
+ end_date?: DateString;
70
+ /**
71
+ * Filter by one or more agency IDs.
72
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
73
+ */
74
+ agency_id?: ExternalID[];
75
+ /**
76
+ * Filter by one or more property IDs.
77
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
78
+ */
79
+ property_id?: ExternalID[];
80
+ /**
81
+ * Filter by one or more beneficiary IDs.
82
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
83
+ */
84
+ beneficiary_id?: ExternalID[];
85
+ }
@@ -0,0 +1,96 @@
1
+ import type { DateString, ExternalID } from "./shared";
2
+ /**
3
+ * Query parameters for `GET /documents/csv/payments/incoming`.
4
+ */
5
+ export interface DocumentsCsvPaymentsIncomingQueryParams {
6
+ /**
7
+ * Filter report from date (inclusive).
8
+ * @example '2025-10-21'
9
+ */
10
+ from_date: DateString;
11
+ /**
12
+ * Filter report to date (inclusive).
13
+ * @example '2025-10-21'
14
+ */
15
+ to_date: DateString;
16
+ /**
17
+ * Filter by one or more property IDs.
18
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
19
+ */
20
+ property_id?: ExternalID[];
21
+ /**
22
+ * Filter by one or more agency IDs.
23
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
24
+ */
25
+ agency_id?: ExternalID[];
26
+ /**
27
+ * Filter by one or more beneficiary IDs.
28
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
29
+ */
30
+ beneficiary_id?: ExternalID[];
31
+ /**
32
+ * Filter by one or more tenant IDs.
33
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
34
+ */
35
+ tenant_id?: ExternalID[];
36
+ }
37
+ /**
38
+ * Query parameters for `GET /documents/csv/payments/outgoing`.
39
+ */
40
+ export interface DocumentsCsvPaymentsOutgoingQueryParams {
41
+ /**
42
+ * Filter report from date (inclusive).
43
+ * @example '2025-10-21'
44
+ */
45
+ from_date: DateString;
46
+ /**
47
+ * Filter report to date (inclusive).
48
+ * @example '2025-10-21'
49
+ */
50
+ to_date: DateString;
51
+ /**
52
+ * Filter by one or more property IDs.
53
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
54
+ */
55
+ property_id?: ExternalID[];
56
+ /**
57
+ * Filter by one or more agency IDs.
58
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
59
+ */
60
+ agency_id?: ExternalID[];
61
+ /**
62
+ * Filter by one or more beneficiary IDs.
63
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
64
+ */
65
+ beneficiary_id?: ExternalID[];
66
+ }
67
+ /**
68
+ * Query parameters for `GET /documents/csv/payments/combined`.
69
+ */
70
+ export interface DocumentsCsvPaymentsCombinedQueryParams {
71
+ /**
72
+ * Filter report from date (inclusive).
73
+ * @example '2025-10-21'
74
+ */
75
+ from_date: DateString;
76
+ /**
77
+ * Filter report to date (inclusive).
78
+ * @example '2025-10-21'
79
+ */
80
+ to_date: DateString;
81
+ /**
82
+ * Filter by one or more property IDs.
83
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
84
+ */
85
+ property_id?: ExternalID[];
86
+ /**
87
+ * Filter by one or more agency IDs.
88
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
89
+ */
90
+ agency_id?: ExternalID[];
91
+ /**
92
+ * Filter by one or more beneficiary IDs.
93
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
94
+ */
95
+ beneficiary_id?: ExternalID[];
96
+ }
@@ -0,0 +1,10 @@
1
+ export * from "./shared";
2
+ export * from "./agency";
3
+ export * from "./attachment";
4
+ export * from "./beneficiaries";
5
+ export * from "./properties";
6
+ export * from "./payment";
7
+ export * from "./ownerships";
8
+ export * from "./tenant";
9
+ export * from "./csv";
10
+ export * from "../error";
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./shared"), exports);
18
+ __exportStar(require("./agency"), exports);
19
+ __exportStar(require("./attachment"), exports);
20
+ __exportStar(require("./beneficiaries"), exports);
21
+ __exportStar(require("./properties"), exports);
22
+ __exportStar(require("./payment"), exports);
23
+ __exportStar(require("./ownerships"), exports);
24
+ __exportStar(require("./tenant"), exports);
25
+ __exportStar(require("./csv"), exports);
26
+ __exportStar(require("../error"), exports);
@@ -1,4 +1,49 @@
1
1
  import type { AgencyBasicModel, AmountBase, BeneficiaryBasicModel, DateString, DateStringNullable, ExternalID, PaginationModel, PropertyBasicModel } from "./shared";
2
+ /**
3
+ * Query parameters for `GET /ownerships`.
4
+ */
5
+ export interface OwnershipsQueryParams {
6
+ /**
7
+ * Number of rows to return.
8
+ * Must be between 1 and 25.
9
+ * @example 12
10
+ */
11
+ rows?: number;
12
+ /**
13
+ * Page number to return.
14
+ * Must be >= 1.
15
+ * @example 3
16
+ */
17
+ page?: number;
18
+ /**
19
+ * Return ownership entries where the start_date is before or on the given value.
20
+ * If both `start_date` and `end_date` are given, return entries that overlap the given range.
21
+ * @example '2025-10-21'
22
+ */
23
+ start_date?: DateStringNullable;
24
+ /**
25
+ * Return ownership entries where the start_date is before or on the given value
26
+ * and end_date is after or on the given value, or indefinite.
27
+ * If both `start_date` and `end_date` are given, return entries that overlap the given range.
28
+ * @example '2025-10-21'
29
+ */
30
+ end_date?: DateStringNullable;
31
+ /**
32
+ * Filter by one or more agency IDs.
33
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
34
+ */
35
+ agency_id?: ExternalID[];
36
+ /**
37
+ * Filter by one or more property IDs.
38
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
39
+ */
40
+ property_id?: ExternalID[];
41
+ /**
42
+ * Filter by one or more beneficiary IDs.
43
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
44
+ */
45
+ beneficiary_id?: ExternalID[];
46
+ }
2
47
  /**
3
48
  * Ownership record linking a beneficiary to a property for a specific date range.
4
49
  *
@@ -58,6 +58,70 @@ export interface PaymentsOutgoingOriginModel {
58
58
  */
59
59
  transaction_type: "payment" | "debit_note" | "posted_payment" | "payment_prop_acc" | "deposit_repayment" | "unknown";
60
60
  }
61
+ /**
62
+ * Query parameters for `GET /payments/incoming`.
63
+ */
64
+ export interface PaymentsIncomingQueryParams {
65
+ /**
66
+ * Number of rows to return.
67
+ * Must be between 1 and 25.
68
+ * @example 12
69
+ */
70
+ rows?: number;
71
+ /**
72
+ * Page number to return.
73
+ * Must be >= 1.
74
+ * @example 3
75
+ */
76
+ page?: number;
77
+ /**
78
+ * Filter report from date (inclusive).
79
+ * @example '2025-10-21'
80
+ */
81
+ from_date: DateString;
82
+ /**
83
+ * Filter report to date (inclusive).
84
+ * @example '2025-10-21'
85
+ */
86
+ to_date: DateString;
87
+ /**
88
+ * Sort order for the results. Comma-separated list of `FIELD_NAME:ORDER` pairs.
89
+ * Accepted field names: `reconciliation_date`, `property.name`.
90
+ * Up to 10 conditions may be provided.
91
+ * @example 'reconciliation_date:asc,property.name:desc'
92
+ */
93
+ order_by?: string;
94
+ /**
95
+ * Filter payments by transaction type.
96
+ * @example ['invoice', 'payment']
97
+ */
98
+ transaction_type?: ("invoice" | "payment" | "payment_prop_acc" | "deposit_repayment")[];
99
+ /**
100
+ * Filter by one or more incoming transaction IDs.
101
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
102
+ */
103
+ id?: ExternalID[];
104
+ /**
105
+ * Filter by one or more property IDs.
106
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
107
+ */
108
+ property_id?: ExternalID[];
109
+ /**
110
+ * Filter by one or more tenant IDs.
111
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
112
+ */
113
+ tenant_id?: ExternalID[];
114
+ /**
115
+ * Filter by one or more agency IDs.
116
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
117
+ */
118
+ agency_id?: ExternalID[];
119
+ /**
120
+ * Filter by one or more beneficiary IDs.
121
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
122
+ */
123
+ beneficiary_id?: ExternalID[];
124
+ }
61
125
  /**
62
126
  * Individual incoming payment from the "Money in" section.
63
127
  */
@@ -124,6 +188,76 @@ export interface PaymentsIncomingPagedResult {
124
188
  /** Pagination metadata. */
125
189
  pagination: PaginationModel;
126
190
  }
191
+ /**
192
+ * Query parameters for `GET /payments/outgoing`.
193
+ */
194
+ export interface PaymentsOutgoingQueryParams {
195
+ /**
196
+ * Number of rows to return.
197
+ * Must be between 1 and 25.
198
+ * @example 12
199
+ */
200
+ rows?: number;
201
+ /**
202
+ * Page number to return.
203
+ * Must be >= 1.
204
+ * @example 3
205
+ */
206
+ page?: number;
207
+ /**
208
+ * Filter report from date (inclusive).
209
+ * @example '2025-10-21'
210
+ */
211
+ from_date: DateString;
212
+ /**
213
+ * Filter report to date (inclusive).
214
+ * @example '2025-10-21'
215
+ */
216
+ to_date: DateString;
217
+ /**
218
+ * Sort order for the results. Comma-separated list of `FIELD_NAME:ORDER` pairs.
219
+ * Accepted field names: `transaction_date`, `property.name`.
220
+ * Up to 10 conditions may be provided.
221
+ * @example 'transaction_date:asc,property.name:desc'
222
+ */
223
+ order_by?: string;
224
+ /**
225
+ * Filter by one or more payment origin IDs.
226
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
227
+ */
228
+ payment_origin_id?: ExternalID[];
229
+ /**
230
+ * Filter by one or more payment batch IDs.
231
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
232
+ */
233
+ payment_batch_id?: ExternalID[];
234
+ /**
235
+ * Filter by one or more property IDs.
236
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
237
+ */
238
+ property_id?: ExternalID[];
239
+ /**
240
+ * Filter by one or more agency IDs.
241
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
242
+ */
243
+ agency_id?: ExternalID[];
244
+ /**
245
+ * Filter by one or more beneficiary IDs. Filters across all properties related to the beneficiary,
246
+ * not payments made to the beneficiary itself. Use `payment_target_type` and `payment_target_id`
247
+ * to filter by payment recipient.
248
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
249
+ */
250
+ beneficiary_id?: ExternalID[];
251
+ /**
252
+ * Outgoing payment beneficiary type. Required if `payment_target_id` is provided.
253
+ */
254
+ payment_target_type?: "agency" | "beneficiary" | "global_beneficiary";
255
+ /**
256
+ * Outgoing payment beneficiary ID.
257
+ * @example 'zJBv2E5aJQ'
258
+ */
259
+ payment_target_id?: ExternalID;
260
+ }
127
261
  /**
128
262
  * Outgoing payment item from the "Money out" section.
129
263
  *
@@ -202,6 +336,60 @@ export interface PaymentsOutgoingPagedResult {
202
336
  /** Pagination metadata. */
203
337
  pagination: PaginationModel;
204
338
  }
339
+ /**
340
+ * Query parameters for `GET /payments/combined`.
341
+ */
342
+ export interface PaymentsCombinedQueryParams {
343
+ /**
344
+ * Number of rows to return.
345
+ * Must be between 1 and 25.
346
+ * @example 12
347
+ */
348
+ rows?: number;
349
+ /**
350
+ * Page number to return.
351
+ * Must be >= 1.
352
+ * @example 3
353
+ */
354
+ page?: number;
355
+ /**
356
+ * Filter report from date (inclusive).
357
+ * @example '2025-10-21'
358
+ */
359
+ from_date: DateString;
360
+ /**
361
+ * Filter report to date (inclusive).
362
+ * @example '2025-10-21'
363
+ */
364
+ to_date: DateString;
365
+ /**
366
+ * Sort order for the results. Comma-separated list of `FIELD_NAME:ORDER` pairs.
367
+ * Accepted field names: `date`, `property.name`.
368
+ * Up to 10 conditions may be provided.
369
+ * @example 'date:asc,property.name:desc'
370
+ */
371
+ order_by?: string;
372
+ /**
373
+ * Filter payments by type.
374
+ * @example ['in', 'out']
375
+ */
376
+ payment_type?: ("in" | "out" | "invoice")[];
377
+ /**
378
+ * Filter by one or more property IDs.
379
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
380
+ */
381
+ property_id?: ExternalID[];
382
+ /**
383
+ * Filter by one or more agency IDs.
384
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
385
+ */
386
+ agency_id?: ExternalID[];
387
+ /**
388
+ * Filter by one or more beneficiary IDs.
389
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
390
+ */
391
+ beneficiary_id?: ExternalID[];
392
+ }
205
393
  /**
206
394
  * A single entry in the combined payments view, which may represent an incoming
207
395
  * payment, an outgoing payment, or an invoice.
@@ -336,6 +524,42 @@ export interface PaymentsCombinedPagedResult {
336
524
  /** Pagination metadata. */
337
525
  pagination: PaginationModel;
338
526
  }
527
+ /**
528
+ * Query parameters for `GET /payments/summary`.
529
+ */
530
+ export interface PaymentsSummaryQueryParams {
531
+ /**
532
+ * Filter report from date (inclusive).
533
+ * @example '2025-10-21'
534
+ */
535
+ from_date: DateString;
536
+ /**
537
+ * Filter report to date (inclusive).
538
+ * @example '2025-10-21'
539
+ */
540
+ to_date: DateString;
541
+ /**
542
+ * Return only specific summary payload fields.
543
+ * For optimal performance, specify only the fields you require.
544
+ * @example ['invoiced', 'money_in']
545
+ */
546
+ filter_field?: ("invoiced" | "money_in" | "money_out" | "properties" | "paid_to_owner" | "property_accounts" | "tenants_in_arrears")[];
547
+ /**
548
+ * Filter by one or more property IDs.
549
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
550
+ */
551
+ property_id?: ExternalID[];
552
+ /**
553
+ * Filter by one or more agency IDs.
554
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
555
+ */
556
+ agency_id?: ExternalID[];
557
+ /**
558
+ * Filter by one or more beneficiary IDs. Filters the summary across all properties related to the beneficiary.
559
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
560
+ */
561
+ beneficiary_id?: ExternalID[];
562
+ }
339
563
  /**
340
564
  * Summary of money flow for a given date range.
341
565
  * Returned from `GET /payments/summary`.
@@ -0,0 +1,100 @@
1
+ import type { AddressModel, AgencyBasicModel, BeneficiaryBasicModel, DateString, ExternalID, PaginationModel } from "./shared";
2
+ /**
3
+ * Query parameters for `GET /properties`.
4
+ */
5
+ export interface PropertiesQueryParams {
6
+ /**
7
+ * Number of rows to return.
8
+ * Must be between 1 and 25.
9
+ * @example 12
10
+ */
11
+ rows?: number;
12
+ /**
13
+ * Page number to return.
14
+ * Must be >= 1.
15
+ * @example 3
16
+ */
17
+ page?: number;
18
+ /**
19
+ * Filter properties based on ownership start date.
20
+ *
21
+ * If `end_date` is not provided, ownerships are filtered to those whose start date is on or after the given `start_date`.
22
+ *
23
+ * If both `start_date` and `end_date` are provided, ownerships are filtered where the ownership start date
24
+ * is on or before `end_date`, and the ownership end date is either not set or on or after `start_date`.
25
+ * @example '2025-10-21'
26
+ */
27
+ start_date?: DateString;
28
+ /**
29
+ * Filter properties based on ownership end date.
30
+ *
31
+ * If `start_date` is not provided, ownerships are filtered to those whose start date is on or before `end_date`,
32
+ * and whose end date is either not set or on or after `end_date`.
33
+ *
34
+ * If both `start_date` and `end_date` are provided, ownerships are filtered where the ownership start date
35
+ * is on or before `end_date`, and the ownership end date is either not set or on or after `start_date`.
36
+ * @example '2025-10-21'
37
+ */
38
+ end_date?: DateString;
39
+ /**
40
+ * Include list of beneficiaries that have an ownership of the property for the specified ownership range.
41
+ * Defaults to `false`.
42
+ * @example true
43
+ */
44
+ with_beneficiaries?: boolean;
45
+ /**
46
+ * Filter by one or more agency IDs.
47
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
48
+ */
49
+ agency_id?: ExternalID[];
50
+ /**
51
+ * Filter by one or more property IDs.
52
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
53
+ */
54
+ property_id?: ExternalID[];
55
+ /**
56
+ * Filter by one or more beneficiary IDs.
57
+ * @example ['zJBv2E5aJQ', 'aZfv225aJX']
58
+ */
59
+ beneficiary_id?: ExternalID[];
60
+ /**
61
+ * Search properties based on multiple conditionals. Each value is applied as an OR filter.
62
+ * Up to 5 values, each between 2 and 10 characters.
63
+ * @example ['Boston street', 'House 47']
64
+ */
65
+ search_value?: string[];
66
+ }
67
+ /**
68
+ * Full property entity. Contains all property details including address,
69
+ * agency association, and optional beneficiary list.
70
+ */
71
+ export interface PropertyModel {
72
+ /** Address of the property. */
73
+ address: AddressModel;
74
+ /** Minimal information about the agency managing this property. */
75
+ agency: AgencyBasicModel;
76
+ /**
77
+ * List of beneficiaries that have an ownership of the property for the specified ownership range.
78
+ * Only present when the `with_beneficiaries` query parameter is set to `true`.
79
+ */
80
+ beneficiaries?: BeneficiaryBasicModel[] | null;
81
+ /** PayProp external ID. */
82
+ id: ExternalID;
83
+ /** URL of the property image, or null if no image has been set. */
84
+ image: string | null;
85
+ /** Indicates if the property is active on PayProp. */
86
+ is_active: boolean;
87
+ /** Property name. */
88
+ name: string;
89
+ /** Number of unique tenants that have an active tenancy on the property. */
90
+ number_of_tenants: number;
91
+ }
92
+ /**
93
+ * Paginated response from `GET /properties`.
94
+ */
95
+ export interface PropertiesPagedResult {
96
+ /** List of property entities. */
97
+ items: PropertyModel[];
98
+ /** Pagination metadata. */
99
+ pagination: PaginationModel;
100
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });