@justins-home/api-services 1.2.21 → 1.2.23

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/index.d.mts CHANGED
@@ -828,6 +828,31 @@ declare const admin: {
828
828
  };
829
829
  };
830
830
  }>;
831
+ fetchListingAuditLogs: (params: ApiPathParams<"fetchListingAuditLogsAdmin">, query?: Expand<ApiRequest<"fetchListingAuditLogsAdmin">>) => Promise<{
832
+ message?: string;
833
+ event?: string | null;
834
+ data?: {
835
+ items?: {
836
+ uid?: string;
837
+ action?: string;
838
+ actor_id?: number;
839
+ auditable_id?: number;
840
+ metadata?: {
841
+ summary?: string;
842
+ };
843
+ created_at?: string;
844
+ created_at_human?: string;
845
+ }[];
846
+ pagination?: {
847
+ current_page?: number;
848
+ per_page?: number;
849
+ total?: number;
850
+ last_page?: number;
851
+ from?: number;
852
+ to?: number;
853
+ };
854
+ };
855
+ }>;
831
856
  fetchTenancyHistoryForListing: (params: ApiPathParams<"fetchTenancyHistoryForListingAdmin">, query?: Expand<ApiRequest<"fetchTenancyHistoryForListingAdmin">>) => Promise<{
832
857
  message?: string;
833
858
  event?: string | null;
@@ -1372,39 +1397,35 @@ declare const admin: {
1372
1397
  assignComplianceToTenancy: (params: ApiPathParams<"assignComplianceToTenancy">) => Promise<unknown>;
1373
1398
  assignComplianceToListingVertical: (params: ApiPathParams<"assignComplianceToListingVertical">, payload: ApiRequest<"assignComplianceToListingVertical">) => Promise<unknown>;
1374
1399
  assignComplianceToListingType: (params: ApiPathParams<"assignComplianceToListingType">, payload: ApiRequest<"assignComplianceToListingType">) => Promise<unknown>;
1375
- listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">) => Promise<{
1400
+ listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">, query?: Expand<ApiRequest<"listingHistoryInspectionAdmin">>) => Promise<{
1401
+ message?: string;
1402
+ event?: string | null;
1376
1403
  data?: {
1377
- uid?: string;
1378
- inspection_type?: string;
1379
- status?: string;
1380
- scheduled_date?: string;
1381
- completed_date?: string | null;
1382
- condition_rating?: string;
1383
- summary?: string;
1384
- next_inspection_date?: string;
1385
- created_at?: string;
1386
- updated_at?: string;
1387
- }[];
1388
- links?: {
1389
- first?: string;
1390
- last?: string;
1391
- prev?: string | null;
1392
- next?: string | null;
1393
- };
1394
- meta?: {
1395
- current_page?: number;
1396
- from?: number;
1397
- last_page?: number;
1398
- links?: {
1399
- url?: string | null;
1400
- label?: string;
1401
- page?: string | null;
1402
- active?: boolean;
1404
+ items?: {
1405
+ uid?: string;
1406
+ inspection_type?: string;
1407
+ status?: string;
1408
+ scheduled_date?: string;
1409
+ completed_date?: string | null;
1410
+ condition_rating?: string | null;
1411
+ summary?: string | null;
1412
+ next_inspection_date?: string;
1413
+ inspector?: {
1414
+ id?: number;
1415
+ name?: string;
1416
+ };
1417
+ media?: unknown[];
1418
+ created_at?: string;
1419
+ updated_at?: string;
1403
1420
  }[];
1404
- path?: string;
1405
- per_page?: number;
1406
- to?: number;
1407
- total?: number;
1421
+ pagination?: {
1422
+ current_page?: number;
1423
+ per_page?: number;
1424
+ total?: number;
1425
+ last_page?: number;
1426
+ from?: number;
1427
+ to?: number;
1428
+ };
1408
1429
  };
1409
1430
  }>;
1410
1431
  scheduleInspection: (payload: ApiRequest<"scheduleInspection">) => Promise<{
@@ -1907,39 +1928,35 @@ declare const feature: {
1907
1928
  };
1908
1929
 
1909
1930
  declare const inspection: {
1910
- listingHistory: (params: ApiPathParams<"listingHistoryInspection">) => Promise<{
1931
+ listingHistory: (params: ApiPathParams<"listingHistoryInspection">, query?: Expand<ApiRequest<"listingHistoryInspection">>) => Promise<{
1932
+ message?: string;
1933
+ event?: string | null;
1911
1934
  data?: {
1912
- uid?: string;
1913
- inspection_type?: string;
1914
- status?: string;
1915
- scheduled_date?: string;
1916
- completed_date?: string | null;
1917
- condition_rating?: string;
1918
- summary?: string;
1919
- next_inspection_date?: string;
1920
- created_at?: string;
1921
- updated_at?: string;
1922
- }[];
1923
- links?: {
1924
- first?: string;
1925
- last?: string;
1926
- prev?: string | null;
1927
- next?: string | null;
1928
- };
1929
- meta?: {
1930
- current_page?: number;
1931
- from?: number;
1932
- last_page?: number;
1933
- links?: {
1934
- url?: string | null;
1935
- label?: string;
1936
- page?: string | null;
1937
- active?: boolean;
1935
+ items?: {
1936
+ uid?: string;
1937
+ inspection_type?: string;
1938
+ status?: string;
1939
+ scheduled_date?: string;
1940
+ completed_date?: string | null;
1941
+ condition_rating?: string | null;
1942
+ summary?: string | null;
1943
+ next_inspection_date?: string;
1944
+ inspector?: {
1945
+ id?: number;
1946
+ name?: string;
1947
+ };
1948
+ media?: unknown[];
1949
+ created_at?: string;
1950
+ updated_at?: string;
1938
1951
  }[];
1939
- path?: string;
1940
- per_page?: number;
1941
- to?: number;
1942
- total?: number;
1952
+ pagination?: {
1953
+ current_page?: number;
1954
+ per_page?: number;
1955
+ total?: number;
1956
+ last_page?: number;
1957
+ from?: number;
1958
+ to?: number;
1959
+ };
1943
1960
  };
1944
1961
  }>;
1945
1962
  };
@@ -2347,7 +2364,7 @@ declare const landlord: {
2347
2364
  data?: {
2348
2365
  uid?: string;
2349
2366
  media_type?: string;
2350
- storage_path?: string | null;
2367
+ storage_path?: string;
2351
2368
  order_index?: number;
2352
2369
  is_cover?: boolean;
2353
2370
  };
@@ -2370,6 +2387,10 @@ declare const landlord: {
2370
2387
  event?: string;
2371
2388
  data?: unknown[];
2372
2389
  }>;
2390
+ deleteListingMedia: (params: ApiPathParams<"deleteListingMedia">) => Promise<{
2391
+ message?: string;
2392
+ data?: unknown[];
2393
+ }>;
2373
2394
  submitListing: (params: ApiPathParams<"submitListing">) => Promise<{
2374
2395
  data?: {
2375
2396
  draft_name?: string;
@@ -2663,40 +2684,42 @@ declare const listings: {
2663
2684
  };
2664
2685
 
2665
2686
  declare const maintenance: {
2666
- listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">) => Promise<{
2687
+ listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">, query?: Expand<ApiRequest<"listingHistoryMaintenance">>) => Promise<{
2688
+ message?: string;
2689
+ event?: string | null;
2667
2690
  data?: {
2668
- uid?: string;
2669
- title?: string;
2670
- description?: string;
2671
- status?: string;
2672
- priority?: string;
2673
- reported_at?: string;
2674
- assigned_at?: string;
2675
- completed_at?: string | null;
2676
- sla_deadline?: string;
2677
- created_at?: string;
2678
- updated_at?: string;
2679
- }[];
2680
- links?: {
2681
- first?: string;
2682
- last?: string;
2683
- prev?: string | null;
2684
- next?: string | null;
2685
- };
2686
- meta?: {
2687
- current_page?: number;
2688
- from?: number;
2689
- last_page?: number;
2690
- links?: {
2691
- url?: string | null;
2692
- label?: string;
2693
- page?: string | null;
2694
- active?: boolean;
2691
+ items?: {
2692
+ uid?: string;
2693
+ title?: string;
2694
+ description?: string;
2695
+ status?: string;
2696
+ priority?: string;
2697
+ reported_at?: string;
2698
+ assigned_at?: string | null;
2699
+ completed_at?: string | null;
2700
+ sla_deadline?: string;
2701
+ listing?: {
2702
+ id?: number;
2703
+ uid?: string;
2704
+ };
2705
+ reporter?: {
2706
+ id?: string;
2707
+ name?: string;
2708
+ };
2709
+ technician?: string | null;
2710
+ updates?: unknown[];
2711
+ attachments?: unknown[];
2712
+ created_at?: string;
2713
+ updated_at?: string;
2695
2714
  }[];
2696
- path?: string;
2697
- per_page?: number;
2698
- to?: number;
2699
- total?: number;
2715
+ pagination?: {
2716
+ current_page?: number;
2717
+ per_page?: number;
2718
+ total?: number;
2719
+ last_page?: number;
2720
+ from?: number;
2721
+ to?: number;
2722
+ };
2700
2723
  };
2701
2724
  }>;
2702
2725
  report: (payload: ApiRequest<"reportMaintenance">) => Promise<{
package/dist/index.d.ts CHANGED
@@ -828,6 +828,31 @@ declare const admin: {
828
828
  };
829
829
  };
830
830
  }>;
831
+ fetchListingAuditLogs: (params: ApiPathParams<"fetchListingAuditLogsAdmin">, query?: Expand<ApiRequest<"fetchListingAuditLogsAdmin">>) => Promise<{
832
+ message?: string;
833
+ event?: string | null;
834
+ data?: {
835
+ items?: {
836
+ uid?: string;
837
+ action?: string;
838
+ actor_id?: number;
839
+ auditable_id?: number;
840
+ metadata?: {
841
+ summary?: string;
842
+ };
843
+ created_at?: string;
844
+ created_at_human?: string;
845
+ }[];
846
+ pagination?: {
847
+ current_page?: number;
848
+ per_page?: number;
849
+ total?: number;
850
+ last_page?: number;
851
+ from?: number;
852
+ to?: number;
853
+ };
854
+ };
855
+ }>;
831
856
  fetchTenancyHistoryForListing: (params: ApiPathParams<"fetchTenancyHistoryForListingAdmin">, query?: Expand<ApiRequest<"fetchTenancyHistoryForListingAdmin">>) => Promise<{
832
857
  message?: string;
833
858
  event?: string | null;
@@ -1372,39 +1397,35 @@ declare const admin: {
1372
1397
  assignComplianceToTenancy: (params: ApiPathParams<"assignComplianceToTenancy">) => Promise<unknown>;
1373
1398
  assignComplianceToListingVertical: (params: ApiPathParams<"assignComplianceToListingVertical">, payload: ApiRequest<"assignComplianceToListingVertical">) => Promise<unknown>;
1374
1399
  assignComplianceToListingType: (params: ApiPathParams<"assignComplianceToListingType">, payload: ApiRequest<"assignComplianceToListingType">) => Promise<unknown>;
1375
- listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">) => Promise<{
1400
+ listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">, query?: Expand<ApiRequest<"listingHistoryInspectionAdmin">>) => Promise<{
1401
+ message?: string;
1402
+ event?: string | null;
1376
1403
  data?: {
1377
- uid?: string;
1378
- inspection_type?: string;
1379
- status?: string;
1380
- scheduled_date?: string;
1381
- completed_date?: string | null;
1382
- condition_rating?: string;
1383
- summary?: string;
1384
- next_inspection_date?: string;
1385
- created_at?: string;
1386
- updated_at?: string;
1387
- }[];
1388
- links?: {
1389
- first?: string;
1390
- last?: string;
1391
- prev?: string | null;
1392
- next?: string | null;
1393
- };
1394
- meta?: {
1395
- current_page?: number;
1396
- from?: number;
1397
- last_page?: number;
1398
- links?: {
1399
- url?: string | null;
1400
- label?: string;
1401
- page?: string | null;
1402
- active?: boolean;
1404
+ items?: {
1405
+ uid?: string;
1406
+ inspection_type?: string;
1407
+ status?: string;
1408
+ scheduled_date?: string;
1409
+ completed_date?: string | null;
1410
+ condition_rating?: string | null;
1411
+ summary?: string | null;
1412
+ next_inspection_date?: string;
1413
+ inspector?: {
1414
+ id?: number;
1415
+ name?: string;
1416
+ };
1417
+ media?: unknown[];
1418
+ created_at?: string;
1419
+ updated_at?: string;
1403
1420
  }[];
1404
- path?: string;
1405
- per_page?: number;
1406
- to?: number;
1407
- total?: number;
1421
+ pagination?: {
1422
+ current_page?: number;
1423
+ per_page?: number;
1424
+ total?: number;
1425
+ last_page?: number;
1426
+ from?: number;
1427
+ to?: number;
1428
+ };
1408
1429
  };
1409
1430
  }>;
1410
1431
  scheduleInspection: (payload: ApiRequest<"scheduleInspection">) => Promise<{
@@ -1907,39 +1928,35 @@ declare const feature: {
1907
1928
  };
1908
1929
 
1909
1930
  declare const inspection: {
1910
- listingHistory: (params: ApiPathParams<"listingHistoryInspection">) => Promise<{
1931
+ listingHistory: (params: ApiPathParams<"listingHistoryInspection">, query?: Expand<ApiRequest<"listingHistoryInspection">>) => Promise<{
1932
+ message?: string;
1933
+ event?: string | null;
1911
1934
  data?: {
1912
- uid?: string;
1913
- inspection_type?: string;
1914
- status?: string;
1915
- scheduled_date?: string;
1916
- completed_date?: string | null;
1917
- condition_rating?: string;
1918
- summary?: string;
1919
- next_inspection_date?: string;
1920
- created_at?: string;
1921
- updated_at?: string;
1922
- }[];
1923
- links?: {
1924
- first?: string;
1925
- last?: string;
1926
- prev?: string | null;
1927
- next?: string | null;
1928
- };
1929
- meta?: {
1930
- current_page?: number;
1931
- from?: number;
1932
- last_page?: number;
1933
- links?: {
1934
- url?: string | null;
1935
- label?: string;
1936
- page?: string | null;
1937
- active?: boolean;
1935
+ items?: {
1936
+ uid?: string;
1937
+ inspection_type?: string;
1938
+ status?: string;
1939
+ scheduled_date?: string;
1940
+ completed_date?: string | null;
1941
+ condition_rating?: string | null;
1942
+ summary?: string | null;
1943
+ next_inspection_date?: string;
1944
+ inspector?: {
1945
+ id?: number;
1946
+ name?: string;
1947
+ };
1948
+ media?: unknown[];
1949
+ created_at?: string;
1950
+ updated_at?: string;
1938
1951
  }[];
1939
- path?: string;
1940
- per_page?: number;
1941
- to?: number;
1942
- total?: number;
1952
+ pagination?: {
1953
+ current_page?: number;
1954
+ per_page?: number;
1955
+ total?: number;
1956
+ last_page?: number;
1957
+ from?: number;
1958
+ to?: number;
1959
+ };
1943
1960
  };
1944
1961
  }>;
1945
1962
  };
@@ -2347,7 +2364,7 @@ declare const landlord: {
2347
2364
  data?: {
2348
2365
  uid?: string;
2349
2366
  media_type?: string;
2350
- storage_path?: string | null;
2367
+ storage_path?: string;
2351
2368
  order_index?: number;
2352
2369
  is_cover?: boolean;
2353
2370
  };
@@ -2370,6 +2387,10 @@ declare const landlord: {
2370
2387
  event?: string;
2371
2388
  data?: unknown[];
2372
2389
  }>;
2390
+ deleteListingMedia: (params: ApiPathParams<"deleteListingMedia">) => Promise<{
2391
+ message?: string;
2392
+ data?: unknown[];
2393
+ }>;
2373
2394
  submitListing: (params: ApiPathParams<"submitListing">) => Promise<{
2374
2395
  data?: {
2375
2396
  draft_name?: string;
@@ -2663,40 +2684,42 @@ declare const listings: {
2663
2684
  };
2664
2685
 
2665
2686
  declare const maintenance: {
2666
- listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">) => Promise<{
2687
+ listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">, query?: Expand<ApiRequest<"listingHistoryMaintenance">>) => Promise<{
2688
+ message?: string;
2689
+ event?: string | null;
2667
2690
  data?: {
2668
- uid?: string;
2669
- title?: string;
2670
- description?: string;
2671
- status?: string;
2672
- priority?: string;
2673
- reported_at?: string;
2674
- assigned_at?: string;
2675
- completed_at?: string | null;
2676
- sla_deadline?: string;
2677
- created_at?: string;
2678
- updated_at?: string;
2679
- }[];
2680
- links?: {
2681
- first?: string;
2682
- last?: string;
2683
- prev?: string | null;
2684
- next?: string | null;
2685
- };
2686
- meta?: {
2687
- current_page?: number;
2688
- from?: number;
2689
- last_page?: number;
2690
- links?: {
2691
- url?: string | null;
2692
- label?: string;
2693
- page?: string | null;
2694
- active?: boolean;
2691
+ items?: {
2692
+ uid?: string;
2693
+ title?: string;
2694
+ description?: string;
2695
+ status?: string;
2696
+ priority?: string;
2697
+ reported_at?: string;
2698
+ assigned_at?: string | null;
2699
+ completed_at?: string | null;
2700
+ sla_deadline?: string;
2701
+ listing?: {
2702
+ id?: number;
2703
+ uid?: string;
2704
+ };
2705
+ reporter?: {
2706
+ id?: string;
2707
+ name?: string;
2708
+ };
2709
+ technician?: string | null;
2710
+ updates?: unknown[];
2711
+ attachments?: unknown[];
2712
+ created_at?: string;
2713
+ updated_at?: string;
2695
2714
  }[];
2696
- path?: string;
2697
- per_page?: number;
2698
- to?: number;
2699
- total?: number;
2715
+ pagination?: {
2716
+ current_page?: number;
2717
+ per_page?: number;
2718
+ total?: number;
2719
+ last_page?: number;
2720
+ from?: number;
2721
+ to?: number;
2722
+ };
2700
2723
  };
2701
2724
  }>;
2702
2725
  report: (payload: ApiRequest<"reportMaintenance">) => Promise<{
package/dist/index.js CHANGED
@@ -183,6 +183,9 @@ var admin = {
183
183
  fetchOneListing: (params) => {
184
184
  return api.get("fetchOneListingAdmin", `/api/v1/portal/admin/listing/fetch-one/${params.listing_uid}`);
185
185
  },
186
+ fetchListingAuditLogs: (params, query) => {
187
+ return api.get("fetchListingAuditLogsAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/audit-logs`, query);
188
+ },
186
189
  fetchTenancyHistoryForListing: (params, query) => {
187
190
  return api.get("fetchTenancyHistoryForListingAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/tenancy-history`, query);
188
191
  },
@@ -348,8 +351,8 @@ var admin = {
348
351
  assignComplianceToListingType: (params, payload) => {
349
352
  return api.post("assignComplianceToListingType", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-type`, payload);
350
353
  },
351
- listingHistoryInspection: (params) => {
352
- return api.get("listingHistoryInspectionAdmin", `/api/v1/portal/admin/inspections/fetch-history/${params.listing_uid}`);
354
+ listingHistoryInspection: (params, query) => {
355
+ return api.get("listingHistoryInspectionAdmin", `/api/v1/portal/admin/inspections/fetch-history/${params.listing_uid}`, query);
353
356
  },
354
357
  scheduleInspection: (payload) => {
355
358
  return api.post("scheduleInspection", "/api/v1/portal/admin/inspections/schedule", payload);
@@ -522,8 +525,8 @@ var feature = {
522
525
 
523
526
  // src/generated/inspection.ts
524
527
  var inspection = {
525
- listingHistory: (params) => {
526
- return api.get("listingHistoryInspection", `/api/v1/public/inspection/listing/${params.listing_uid}`);
528
+ listingHistory: (params, query) => {
529
+ return api.get("listingHistoryInspection", `/api/v1/public/inspection/listing/${params.listing_uid}`, query);
527
530
  }
528
531
  };
529
532
 
@@ -598,6 +601,9 @@ var landlord = {
598
601
  setListingCoverMedia: (params) => {
599
602
  return api.post("setListingCoverMedia", `/api/v1/portal/landlord/listing/${params.listing_uid}/media/${params.media_uid}/cover`);
600
603
  },
604
+ deleteListingMedia: (params) => {
605
+ return api.post("deleteListingMedia", `/api/v1/portal/landlord/listing/media/${params.media_uid}`);
606
+ },
601
607
  submitListing: (params) => {
602
608
  return api.post("submitListing", `/api/v1/portal/landlord/listing/${params.listing_uid}/submit`);
603
609
  },
@@ -645,8 +651,8 @@ var listings = {
645
651
 
646
652
  // src/generated/maintenance.ts
647
653
  var maintenance = {
648
- listingHistory: (params) => {
649
- return api.get("listingHistoryMaintenance", `/api/v1/public/maintenance/listing/${params.listing_uid}`);
654
+ listingHistory: (params, query) => {
655
+ return api.get("listingHistoryMaintenance", `/api/v1/public/maintenance/listing/${params.listing_uid}`, query);
650
656
  },
651
657
  report: (payload) => {
652
658
  return api.post("reportMaintenance", "/api/v1/public/maintenance/report", payload);
package/dist/index.mjs CHANGED
@@ -136,6 +136,9 @@ var admin = {
136
136
  fetchOneListing: (params) => {
137
137
  return api.get("fetchOneListingAdmin", `/api/v1/portal/admin/listing/fetch-one/${params.listing_uid}`);
138
138
  },
139
+ fetchListingAuditLogs: (params, query) => {
140
+ return api.get("fetchListingAuditLogsAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/audit-logs`, query);
141
+ },
139
142
  fetchTenancyHistoryForListing: (params, query) => {
140
143
  return api.get("fetchTenancyHistoryForListingAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/tenancy-history`, query);
141
144
  },
@@ -301,8 +304,8 @@ var admin = {
301
304
  assignComplianceToListingType: (params, payload) => {
302
305
  return api.post("assignComplianceToListingType", `/api/v1/portal/admin/compliances/${params.compliance_id}/assign-to-listing-type`, payload);
303
306
  },
304
- listingHistoryInspection: (params) => {
305
- return api.get("listingHistoryInspectionAdmin", `/api/v1/portal/admin/inspections/fetch-history/${params.listing_uid}`);
307
+ listingHistoryInspection: (params, query) => {
308
+ return api.get("listingHistoryInspectionAdmin", `/api/v1/portal/admin/inspections/fetch-history/${params.listing_uid}`, query);
306
309
  },
307
310
  scheduleInspection: (payload) => {
308
311
  return api.post("scheduleInspection", "/api/v1/portal/admin/inspections/schedule", payload);
@@ -475,8 +478,8 @@ var feature = {
475
478
 
476
479
  // src/generated/inspection.ts
477
480
  var inspection = {
478
- listingHistory: (params) => {
479
- return api.get("listingHistoryInspection", `/api/v1/public/inspection/listing/${params.listing_uid}`);
481
+ listingHistory: (params, query) => {
482
+ return api.get("listingHistoryInspection", `/api/v1/public/inspection/listing/${params.listing_uid}`, query);
480
483
  }
481
484
  };
482
485
 
@@ -551,6 +554,9 @@ var landlord = {
551
554
  setListingCoverMedia: (params) => {
552
555
  return api.post("setListingCoverMedia", `/api/v1/portal/landlord/listing/${params.listing_uid}/media/${params.media_uid}/cover`);
553
556
  },
557
+ deleteListingMedia: (params) => {
558
+ return api.post("deleteListingMedia", `/api/v1/portal/landlord/listing/media/${params.media_uid}`);
559
+ },
554
560
  submitListing: (params) => {
555
561
  return api.post("submitListing", `/api/v1/portal/landlord/listing/${params.listing_uid}/submit`);
556
562
  },
@@ -598,8 +604,8 @@ var listings = {
598
604
 
599
605
  // src/generated/maintenance.ts
600
606
  var maintenance = {
601
- listingHistory: (params) => {
602
- return api.get("listingHistoryMaintenance", `/api/v1/public/maintenance/listing/${params.listing_uid}`);
607
+ listingHistory: (params, query) => {
608
+ return api.get("listingHistoryMaintenance", `/api/v1/public/maintenance/listing/${params.listing_uid}`, query);
603
609
  },
604
610
  report: (payload) => {
605
611
  return api.post("reportMaintenance", "/api/v1/public/maintenance/report", payload);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.21",
3
+ "version": "1.2.23",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,8 +16,8 @@
16
16
  "dist"
17
17
  ],
18
18
  "dependencies": {
19
- "@justins-home/http-client": "1.1.16",
20
- "@justins-home/types": "1.1.16"
19
+ "@justins-home/http-client": "1.1.18",
20
+ "@justins-home/types": "1.1.18"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"