@justins-home/api-services 1.2.20 → 1.2.22

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
@@ -790,6 +790,7 @@ declare const admin: {
790
790
  summary?: unknown[];
791
791
  workflow?: unknown[];
792
792
  media?: {
793
+ gallery?: unknown[];
793
794
  cover?: string | null;
794
795
  count?: number;
795
796
  };
@@ -827,6 +828,31 @@ declare const admin: {
827
828
  };
828
829
  };
829
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
+ }>;
830
856
  fetchTenancyHistoryForListing: (params: ApiPathParams<"fetchTenancyHistoryForListingAdmin">, query?: Expand<ApiRequest<"fetchTenancyHistoryForListingAdmin">>) => Promise<{
831
857
  message?: string;
832
858
  event?: string | null;
@@ -1371,7 +1397,7 @@ declare const admin: {
1371
1397
  assignComplianceToTenancy: (params: ApiPathParams<"assignComplianceToTenancy">) => Promise<unknown>;
1372
1398
  assignComplianceToListingVertical: (params: ApiPathParams<"assignComplianceToListingVertical">, payload: ApiRequest<"assignComplianceToListingVertical">) => Promise<unknown>;
1373
1399
  assignComplianceToListingType: (params: ApiPathParams<"assignComplianceToListingType">, payload: ApiRequest<"assignComplianceToListingType">) => Promise<unknown>;
1374
- listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">) => Promise<{
1400
+ listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">, query?: Expand<ApiRequest<"listingHistoryInspectionAdmin">>) => Promise<{
1375
1401
  data?: {
1376
1402
  uid?: string;
1377
1403
  inspection_type?: string;
@@ -1470,7 +1496,7 @@ declare const admin: {
1470
1496
  status?: string;
1471
1497
  priority?: string;
1472
1498
  reported_at?: string;
1473
- assigned_at?: string | null;
1499
+ assigned_at?: string;
1474
1500
  completed_at?: string | null;
1475
1501
  sla_deadline?: string;
1476
1502
  created_at?: string;
@@ -1906,7 +1932,7 @@ declare const feature: {
1906
1932
  };
1907
1933
 
1908
1934
  declare const inspection: {
1909
- listingHistory: (params: ApiPathParams<"listingHistoryInspection">) => Promise<{
1935
+ listingHistory: (params: ApiPathParams<"listingHistoryInspection">, query?: Expand<ApiRequest<"listingHistoryInspection">>) => Promise<{
1910
1936
  data?: {
1911
1937
  uid?: string;
1912
1938
  inspection_type?: string;
@@ -2346,7 +2372,7 @@ declare const landlord: {
2346
2372
  data?: {
2347
2373
  uid?: string;
2348
2374
  media_type?: string;
2349
- storage_path?: string | null;
2375
+ storage_path?: string;
2350
2376
  order_index?: number;
2351
2377
  is_cover?: boolean;
2352
2378
  };
@@ -2369,6 +2395,10 @@ declare const landlord: {
2369
2395
  event?: string;
2370
2396
  data?: unknown[];
2371
2397
  }>;
2398
+ deleteListingMedia: (params: ApiPathParams<"deleteListingMedia">) => Promise<{
2399
+ message?: string;
2400
+ data?: unknown[];
2401
+ }>;
2372
2402
  submitListing: (params: ApiPathParams<"submitListing">) => Promise<{
2373
2403
  data?: {
2374
2404
  draft_name?: string;
@@ -2662,7 +2692,7 @@ declare const listings: {
2662
2692
  };
2663
2693
 
2664
2694
  declare const maintenance: {
2665
- listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">) => Promise<{
2695
+ listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">, query?: Expand<ApiRequest<"listingHistoryMaintenance">>) => Promise<{
2666
2696
  data?: {
2667
2697
  uid?: string;
2668
2698
  title?: string;
@@ -2670,7 +2700,7 @@ declare const maintenance: {
2670
2700
  status?: string;
2671
2701
  priority?: string;
2672
2702
  reported_at?: string;
2673
- assigned_at?: string | null;
2703
+ assigned_at?: string;
2674
2704
  completed_at?: string | null;
2675
2705
  sla_deadline?: string;
2676
2706
  created_at?: string;
package/dist/index.d.ts CHANGED
@@ -790,6 +790,7 @@ declare const admin: {
790
790
  summary?: unknown[];
791
791
  workflow?: unknown[];
792
792
  media?: {
793
+ gallery?: unknown[];
793
794
  cover?: string | null;
794
795
  count?: number;
795
796
  };
@@ -827,6 +828,31 @@ declare const admin: {
827
828
  };
828
829
  };
829
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
+ }>;
830
856
  fetchTenancyHistoryForListing: (params: ApiPathParams<"fetchTenancyHistoryForListingAdmin">, query?: Expand<ApiRequest<"fetchTenancyHistoryForListingAdmin">>) => Promise<{
831
857
  message?: string;
832
858
  event?: string | null;
@@ -1371,7 +1397,7 @@ declare const admin: {
1371
1397
  assignComplianceToTenancy: (params: ApiPathParams<"assignComplianceToTenancy">) => Promise<unknown>;
1372
1398
  assignComplianceToListingVertical: (params: ApiPathParams<"assignComplianceToListingVertical">, payload: ApiRequest<"assignComplianceToListingVertical">) => Promise<unknown>;
1373
1399
  assignComplianceToListingType: (params: ApiPathParams<"assignComplianceToListingType">, payload: ApiRequest<"assignComplianceToListingType">) => Promise<unknown>;
1374
- listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">) => Promise<{
1400
+ listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">, query?: Expand<ApiRequest<"listingHistoryInspectionAdmin">>) => Promise<{
1375
1401
  data?: {
1376
1402
  uid?: string;
1377
1403
  inspection_type?: string;
@@ -1470,7 +1496,7 @@ declare const admin: {
1470
1496
  status?: string;
1471
1497
  priority?: string;
1472
1498
  reported_at?: string;
1473
- assigned_at?: string | null;
1499
+ assigned_at?: string;
1474
1500
  completed_at?: string | null;
1475
1501
  sla_deadline?: string;
1476
1502
  created_at?: string;
@@ -1906,7 +1932,7 @@ declare const feature: {
1906
1932
  };
1907
1933
 
1908
1934
  declare const inspection: {
1909
- listingHistory: (params: ApiPathParams<"listingHistoryInspection">) => Promise<{
1935
+ listingHistory: (params: ApiPathParams<"listingHistoryInspection">, query?: Expand<ApiRequest<"listingHistoryInspection">>) => Promise<{
1910
1936
  data?: {
1911
1937
  uid?: string;
1912
1938
  inspection_type?: string;
@@ -2346,7 +2372,7 @@ declare const landlord: {
2346
2372
  data?: {
2347
2373
  uid?: string;
2348
2374
  media_type?: string;
2349
- storage_path?: string | null;
2375
+ storage_path?: string;
2350
2376
  order_index?: number;
2351
2377
  is_cover?: boolean;
2352
2378
  };
@@ -2369,6 +2395,10 @@ declare const landlord: {
2369
2395
  event?: string;
2370
2396
  data?: unknown[];
2371
2397
  }>;
2398
+ deleteListingMedia: (params: ApiPathParams<"deleteListingMedia">) => Promise<{
2399
+ message?: string;
2400
+ data?: unknown[];
2401
+ }>;
2372
2402
  submitListing: (params: ApiPathParams<"submitListing">) => Promise<{
2373
2403
  data?: {
2374
2404
  draft_name?: string;
@@ -2662,7 +2692,7 @@ declare const listings: {
2662
2692
  };
2663
2693
 
2664
2694
  declare const maintenance: {
2665
- listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">) => Promise<{
2695
+ listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">, query?: Expand<ApiRequest<"listingHistoryMaintenance">>) => Promise<{
2666
2696
  data?: {
2667
2697
  uid?: string;
2668
2698
  title?: string;
@@ -2670,7 +2700,7 @@ declare const maintenance: {
2670
2700
  status?: string;
2671
2701
  priority?: string;
2672
2702
  reported_at?: string;
2673
- assigned_at?: string | null;
2703
+ assigned_at?: string;
2674
2704
  completed_at?: string | null;
2675
2705
  sla_deadline?: string;
2676
2706
  created_at?: string;
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.20",
3
+ "version": "1.2.22",
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.15",
20
- "@justins-home/types": "1.1.15"
19
+ "@justins-home/http-client": "1.1.17",
20
+ "@justins-home/types": "1.1.17"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"