@justins-home/api-services 1.2.22 → 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
@@ -1398,38 +1398,34 @@ declare const admin: {
1398
1398
  assignComplianceToListingVertical: (params: ApiPathParams<"assignComplianceToListingVertical">, payload: ApiRequest<"assignComplianceToListingVertical">) => Promise<unknown>;
1399
1399
  assignComplianceToListingType: (params: ApiPathParams<"assignComplianceToListingType">, payload: ApiRequest<"assignComplianceToListingType">) => Promise<unknown>;
1400
1400
  listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">, query?: Expand<ApiRequest<"listingHistoryInspectionAdmin">>) => Promise<{
1401
+ message?: string;
1402
+ event?: string | null;
1401
1403
  data?: {
1402
- uid?: string;
1403
- inspection_type?: string;
1404
- status?: string;
1405
- scheduled_date?: string;
1406
- completed_date?: string | null;
1407
- condition_rating?: string;
1408
- summary?: string;
1409
- next_inspection_date?: string;
1410
- created_at?: string;
1411
- updated_at?: string;
1412
- }[];
1413
- links?: {
1414
- first?: string;
1415
- last?: string;
1416
- prev?: string | null;
1417
- next?: string | null;
1418
- };
1419
- meta?: {
1420
- current_page?: number;
1421
- from?: number;
1422
- last_page?: number;
1423
- links?: {
1424
- url?: string | null;
1425
- label?: string;
1426
- page?: string | null;
1427
- 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;
1428
1420
  }[];
1429
- path?: string;
1430
- per_page?: number;
1431
- to?: number;
1432
- 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
+ };
1433
1429
  };
1434
1430
  }>;
1435
1431
  scheduleInspection: (payload: ApiRequest<"scheduleInspection">) => Promise<{
@@ -1496,7 +1492,7 @@ declare const admin: {
1496
1492
  status?: string;
1497
1493
  priority?: string;
1498
1494
  reported_at?: string;
1499
- assigned_at?: string;
1495
+ assigned_at?: string | null;
1500
1496
  completed_at?: string | null;
1501
1497
  sla_deadline?: string;
1502
1498
  created_at?: string;
@@ -1933,38 +1929,34 @@ declare const feature: {
1933
1929
 
1934
1930
  declare const inspection: {
1935
1931
  listingHistory: (params: ApiPathParams<"listingHistoryInspection">, query?: Expand<ApiRequest<"listingHistoryInspection">>) => Promise<{
1932
+ message?: string;
1933
+ event?: string | null;
1936
1934
  data?: {
1937
- uid?: string;
1938
- inspection_type?: string;
1939
- status?: string;
1940
- scheduled_date?: string;
1941
- completed_date?: string | null;
1942
- condition_rating?: string;
1943
- summary?: string;
1944
- next_inspection_date?: string;
1945
- created_at?: string;
1946
- updated_at?: string;
1947
- }[];
1948
- links?: {
1949
- first?: string;
1950
- last?: string;
1951
- prev?: string | null;
1952
- next?: string | null;
1953
- };
1954
- meta?: {
1955
- current_page?: number;
1956
- from?: number;
1957
- last_page?: number;
1958
- links?: {
1959
- url?: string | null;
1960
- label?: string;
1961
- page?: string | null;
1962
- 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;
1963
1951
  }[];
1964
- path?: string;
1965
- per_page?: number;
1966
- to?: number;
1967
- 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
+ };
1968
1960
  };
1969
1961
  }>;
1970
1962
  };
@@ -2693,39 +2685,41 @@ declare const listings: {
2693
2685
 
2694
2686
  declare const maintenance: {
2695
2687
  listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">, query?: Expand<ApiRequest<"listingHistoryMaintenance">>) => Promise<{
2688
+ message?: string;
2689
+ event?: string | null;
2696
2690
  data?: {
2697
- uid?: string;
2698
- title?: string;
2699
- description?: string;
2700
- status?: string;
2701
- priority?: string;
2702
- reported_at?: string;
2703
- assigned_at?: string;
2704
- completed_at?: string | null;
2705
- sla_deadline?: string;
2706
- created_at?: string;
2707
- updated_at?: string;
2708
- }[];
2709
- links?: {
2710
- first?: string;
2711
- last?: string;
2712
- prev?: string | null;
2713
- next?: string | null;
2714
- };
2715
- meta?: {
2716
- current_page?: number;
2717
- from?: number;
2718
- last_page?: number;
2719
- links?: {
2720
- url?: string | null;
2721
- label?: string;
2722
- page?: string | null;
2723
- 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;
2724
2714
  }[];
2725
- path?: string;
2726
- per_page?: number;
2727
- to?: number;
2728
- 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
+ };
2729
2723
  };
2730
2724
  }>;
2731
2725
  report: (payload: ApiRequest<"reportMaintenance">) => Promise<{
package/dist/index.d.ts CHANGED
@@ -1398,38 +1398,34 @@ declare const admin: {
1398
1398
  assignComplianceToListingVertical: (params: ApiPathParams<"assignComplianceToListingVertical">, payload: ApiRequest<"assignComplianceToListingVertical">) => Promise<unknown>;
1399
1399
  assignComplianceToListingType: (params: ApiPathParams<"assignComplianceToListingType">, payload: ApiRequest<"assignComplianceToListingType">) => Promise<unknown>;
1400
1400
  listingHistoryInspection: (params: ApiPathParams<"listingHistoryInspectionAdmin">, query?: Expand<ApiRequest<"listingHistoryInspectionAdmin">>) => Promise<{
1401
+ message?: string;
1402
+ event?: string | null;
1401
1403
  data?: {
1402
- uid?: string;
1403
- inspection_type?: string;
1404
- status?: string;
1405
- scheduled_date?: string;
1406
- completed_date?: string | null;
1407
- condition_rating?: string;
1408
- summary?: string;
1409
- next_inspection_date?: string;
1410
- created_at?: string;
1411
- updated_at?: string;
1412
- }[];
1413
- links?: {
1414
- first?: string;
1415
- last?: string;
1416
- prev?: string | null;
1417
- next?: string | null;
1418
- };
1419
- meta?: {
1420
- current_page?: number;
1421
- from?: number;
1422
- last_page?: number;
1423
- links?: {
1424
- url?: string | null;
1425
- label?: string;
1426
- page?: string | null;
1427
- 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;
1428
1420
  }[];
1429
- path?: string;
1430
- per_page?: number;
1431
- to?: number;
1432
- 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
+ };
1433
1429
  };
1434
1430
  }>;
1435
1431
  scheduleInspection: (payload: ApiRequest<"scheduleInspection">) => Promise<{
@@ -1496,7 +1492,7 @@ declare const admin: {
1496
1492
  status?: string;
1497
1493
  priority?: string;
1498
1494
  reported_at?: string;
1499
- assigned_at?: string;
1495
+ assigned_at?: string | null;
1500
1496
  completed_at?: string | null;
1501
1497
  sla_deadline?: string;
1502
1498
  created_at?: string;
@@ -1933,38 +1929,34 @@ declare const feature: {
1933
1929
 
1934
1930
  declare const inspection: {
1935
1931
  listingHistory: (params: ApiPathParams<"listingHistoryInspection">, query?: Expand<ApiRequest<"listingHistoryInspection">>) => Promise<{
1932
+ message?: string;
1933
+ event?: string | null;
1936
1934
  data?: {
1937
- uid?: string;
1938
- inspection_type?: string;
1939
- status?: string;
1940
- scheduled_date?: string;
1941
- completed_date?: string | null;
1942
- condition_rating?: string;
1943
- summary?: string;
1944
- next_inspection_date?: string;
1945
- created_at?: string;
1946
- updated_at?: string;
1947
- }[];
1948
- links?: {
1949
- first?: string;
1950
- last?: string;
1951
- prev?: string | null;
1952
- next?: string | null;
1953
- };
1954
- meta?: {
1955
- current_page?: number;
1956
- from?: number;
1957
- last_page?: number;
1958
- links?: {
1959
- url?: string | null;
1960
- label?: string;
1961
- page?: string | null;
1962
- 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;
1963
1951
  }[];
1964
- path?: string;
1965
- per_page?: number;
1966
- to?: number;
1967
- 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
+ };
1968
1960
  };
1969
1961
  }>;
1970
1962
  };
@@ -2693,39 +2685,41 @@ declare const listings: {
2693
2685
 
2694
2686
  declare const maintenance: {
2695
2687
  listingHistory: (params: ApiPathParams<"listingHistoryMaintenance">, query?: Expand<ApiRequest<"listingHistoryMaintenance">>) => Promise<{
2688
+ message?: string;
2689
+ event?: string | null;
2696
2690
  data?: {
2697
- uid?: string;
2698
- title?: string;
2699
- description?: string;
2700
- status?: string;
2701
- priority?: string;
2702
- reported_at?: string;
2703
- assigned_at?: string;
2704
- completed_at?: string | null;
2705
- sla_deadline?: string;
2706
- created_at?: string;
2707
- updated_at?: string;
2708
- }[];
2709
- links?: {
2710
- first?: string;
2711
- last?: string;
2712
- prev?: string | null;
2713
- next?: string | null;
2714
- };
2715
- meta?: {
2716
- current_page?: number;
2717
- from?: number;
2718
- last_page?: number;
2719
- links?: {
2720
- url?: string | null;
2721
- label?: string;
2722
- page?: string | null;
2723
- 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;
2724
2714
  }[];
2725
- path?: string;
2726
- per_page?: number;
2727
- to?: number;
2728
- 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
+ };
2729
2723
  };
2730
2724
  }>;
2731
2725
  report: (payload: ApiRequest<"reportMaintenance">) => Promise<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.22",
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.17",
20
- "@justins-home/types": "1.1.17"
19
+ "@justins-home/http-client": "1.1.18",
20
+ "@justins-home/types": "1.1.18"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"