@justins-home/api-services 1.2.18 → 1.2.19
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 +227 -4
- package/dist/index.d.ts +227 -4
- package/dist/index.js +18 -0
- package/dist/index.mjs +18 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -97,6 +97,19 @@ declare const admin: {
|
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
}>;
|
|
100
|
+
inventoryOverview: () => Promise<{
|
|
101
|
+
message?: string;
|
|
102
|
+
event?: string | null;
|
|
103
|
+
data?: {
|
|
104
|
+
total_inventory?: number;
|
|
105
|
+
under_review?: number;
|
|
106
|
+
verified_units?: number;
|
|
107
|
+
compliance_risks?: number;
|
|
108
|
+
short_let_portfolio?: number;
|
|
109
|
+
long_term_rent?: number;
|
|
110
|
+
sales_pipeline?: number;
|
|
111
|
+
};
|
|
112
|
+
}>;
|
|
100
113
|
planDistribution: () => Promise<{
|
|
101
114
|
message?: string;
|
|
102
115
|
event?: string | null;
|
|
@@ -503,6 +516,81 @@ declare const admin: {
|
|
|
503
516
|
};
|
|
504
517
|
};
|
|
505
518
|
}>;
|
|
519
|
+
fetchTenancyHistoryForUser: (params: ApiPathParams<"fetchTenancyHistoryForUserAdmin">, query?: Expand<ApiRequest<"fetchTenancyHistoryForUserAdmin">>) => Promise<{
|
|
520
|
+
message?: string;
|
|
521
|
+
event?: string | null;
|
|
522
|
+
data?: {
|
|
523
|
+
items?: {
|
|
524
|
+
tenancy_uid?: string;
|
|
525
|
+
listing?: {
|
|
526
|
+
uid?: string;
|
|
527
|
+
details?: {
|
|
528
|
+
address?: string;
|
|
529
|
+
title?: string;
|
|
530
|
+
type?: string;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
tenant?: {
|
|
534
|
+
uid?: string;
|
|
535
|
+
name?: string;
|
|
536
|
+
email?: string;
|
|
537
|
+
};
|
|
538
|
+
period?: {
|
|
539
|
+
start_date?: string;
|
|
540
|
+
end_date?: string;
|
|
541
|
+
label?: string;
|
|
542
|
+
};
|
|
543
|
+
rent_amount?: {
|
|
544
|
+
amount?: string;
|
|
545
|
+
period?: string;
|
|
546
|
+
};
|
|
547
|
+
status?: {
|
|
548
|
+
value?: string;
|
|
549
|
+
label?: string;
|
|
550
|
+
};
|
|
551
|
+
termination_reason?: string | null;
|
|
552
|
+
action?: {
|
|
553
|
+
tenancy_uid?: string;
|
|
554
|
+
};
|
|
555
|
+
}[];
|
|
556
|
+
pagination?: {
|
|
557
|
+
current_page?: number;
|
|
558
|
+
per_page?: number;
|
|
559
|
+
total?: number;
|
|
560
|
+
last_page?: number;
|
|
561
|
+
from?: number;
|
|
562
|
+
to?: number;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
}>;
|
|
566
|
+
fetchUserActivityFeed: (params: ApiPathParams<"fetchUserActivityFeedAdmin">, query?: Expand<ApiRequest<"fetchUserActivityFeedAdmin">>) => Promise<{
|
|
567
|
+
message?: string;
|
|
568
|
+
event?: string | null;
|
|
569
|
+
data?: {
|
|
570
|
+
items?: {
|
|
571
|
+
id?: string;
|
|
572
|
+
type?: string;
|
|
573
|
+
title?: string;
|
|
574
|
+
subtitle?: string;
|
|
575
|
+
meta?: {
|
|
576
|
+
summary?: string;
|
|
577
|
+
after?: {
|
|
578
|
+
status?: string;
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
timestamp?: string;
|
|
582
|
+
time_ago?: string;
|
|
583
|
+
}[];
|
|
584
|
+
pagination?: {
|
|
585
|
+
current_page?: number;
|
|
586
|
+
per_page?: number;
|
|
587
|
+
total?: number;
|
|
588
|
+
last_page?: number;
|
|
589
|
+
from?: number;
|
|
590
|
+
to?: number;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
}>;
|
|
506
594
|
fetchUserAuditLogs: (params: ApiPathParams<"fetchUserAuditLogsAdmin">, query?: Expand<ApiRequest<"fetchUserAuditLogsAdmin">>) => Promise<{
|
|
507
595
|
message?: string;
|
|
508
596
|
event?: string | null;
|
|
@@ -620,6 +708,7 @@ declare const admin: {
|
|
|
620
708
|
data?: {
|
|
621
709
|
items?: {
|
|
622
710
|
listing_uid?: string;
|
|
711
|
+
cover?: string | null;
|
|
623
712
|
details?: {
|
|
624
713
|
address?: string;
|
|
625
714
|
title?: string;
|
|
@@ -632,6 +721,7 @@ declare const admin: {
|
|
|
632
721
|
owner?: {
|
|
633
722
|
uid?: string;
|
|
634
723
|
name?: string;
|
|
724
|
+
avatar?: string | null;
|
|
635
725
|
};
|
|
636
726
|
compliance_status?: {
|
|
637
727
|
overall?: string;
|
|
@@ -656,6 +746,128 @@ declare const admin: {
|
|
|
656
746
|
};
|
|
657
747
|
};
|
|
658
748
|
}>;
|
|
749
|
+
fetchOneListing: (params: ApiPathParams<"fetchOneListingAdmin">) => Promise<{
|
|
750
|
+
message?: string;
|
|
751
|
+
event?: string | null;
|
|
752
|
+
data?: {
|
|
753
|
+
uid?: string;
|
|
754
|
+
draft_name?: string | null;
|
|
755
|
+
details?: {
|
|
756
|
+
title?: string;
|
|
757
|
+
description?: string | null;
|
|
758
|
+
city?: string;
|
|
759
|
+
address?: string;
|
|
760
|
+
postcode?: string | null;
|
|
761
|
+
longitude?: string | null;
|
|
762
|
+
latitude?: string | null;
|
|
763
|
+
country?: string | null;
|
|
764
|
+
};
|
|
765
|
+
listing_type?: string;
|
|
766
|
+
vertical?: string;
|
|
767
|
+
owner?: {
|
|
768
|
+
uid?: string | null;
|
|
769
|
+
name?: string | null;
|
|
770
|
+
email?: string | null;
|
|
771
|
+
avatar?: string | null;
|
|
772
|
+
};
|
|
773
|
+
created_by?: {
|
|
774
|
+
uid?: string | null;
|
|
775
|
+
name?: string | null;
|
|
776
|
+
};
|
|
777
|
+
state?: string | null;
|
|
778
|
+
is_visible?: boolean;
|
|
779
|
+
price?: {
|
|
780
|
+
amount?: string;
|
|
781
|
+
currency?: string;
|
|
782
|
+
period?: string;
|
|
783
|
+
};
|
|
784
|
+
summary?: unknown[];
|
|
785
|
+
workflow?: unknown[];
|
|
786
|
+
media?: {
|
|
787
|
+
cover?: string | null;
|
|
788
|
+
count?: number;
|
|
789
|
+
};
|
|
790
|
+
viewing_slots?: unknown[];
|
|
791
|
+
tenant_preferences?: unknown[];
|
|
792
|
+
rental?: {
|
|
793
|
+
deposit_amount?: string | null;
|
|
794
|
+
fixed_term_length?: string | null;
|
|
795
|
+
availability_date?: string | null;
|
|
796
|
+
};
|
|
797
|
+
short_let?: {
|
|
798
|
+
nightly_price?: string;
|
|
799
|
+
minimum_stay_nights?: number;
|
|
800
|
+
maximum_stay_nights?: number;
|
|
801
|
+
cleaning_fee?: string;
|
|
802
|
+
check_in_time?: string;
|
|
803
|
+
check_out_time?: string;
|
|
804
|
+
};
|
|
805
|
+
item?: {
|
|
806
|
+
item_name?: string | null;
|
|
807
|
+
item_category?: string | null;
|
|
808
|
+
condition?: string | null;
|
|
809
|
+
brand?: string | null;
|
|
810
|
+
dimensions?: string | null;
|
|
811
|
+
quantity_available?: string | null;
|
|
812
|
+
is_negotiable?: string | null;
|
|
813
|
+
availability_status?: string | null;
|
|
814
|
+
};
|
|
815
|
+
features?: unknown[];
|
|
816
|
+
active_tenancy?: string | null;
|
|
817
|
+
compliances?: unknown[];
|
|
818
|
+
compliance_status?: {
|
|
819
|
+
overall?: string;
|
|
820
|
+
breakdown?: unknown[];
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
}>;
|
|
824
|
+
fetchTenancyHistoryForListing: (params: ApiPathParams<"fetchTenancyHistoryForListingAdmin">, query?: Expand<ApiRequest<"fetchTenancyHistoryForListingAdmin">>) => Promise<{
|
|
825
|
+
message?: string;
|
|
826
|
+
event?: string | null;
|
|
827
|
+
data?: {
|
|
828
|
+
items?: {
|
|
829
|
+
tenancy_uid?: string;
|
|
830
|
+
listing?: {
|
|
831
|
+
uid?: string;
|
|
832
|
+
details?: {
|
|
833
|
+
address?: string;
|
|
834
|
+
title?: string;
|
|
835
|
+
type?: string;
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
tenant?: {
|
|
839
|
+
uid?: string;
|
|
840
|
+
name?: string;
|
|
841
|
+
email?: string;
|
|
842
|
+
};
|
|
843
|
+
period?: {
|
|
844
|
+
start_date?: string;
|
|
845
|
+
end_date?: string;
|
|
846
|
+
label?: string;
|
|
847
|
+
};
|
|
848
|
+
rent_amount?: {
|
|
849
|
+
amount?: string;
|
|
850
|
+
period?: string;
|
|
851
|
+
};
|
|
852
|
+
status?: {
|
|
853
|
+
value?: string;
|
|
854
|
+
label?: string;
|
|
855
|
+
};
|
|
856
|
+
termination_reason?: string | null;
|
|
857
|
+
action?: {
|
|
858
|
+
tenancy_uid?: string;
|
|
859
|
+
};
|
|
860
|
+
}[];
|
|
861
|
+
pagination?: {
|
|
862
|
+
current_page?: number;
|
|
863
|
+
per_page?: number;
|
|
864
|
+
total?: number;
|
|
865
|
+
last_page?: number;
|
|
866
|
+
from?: number;
|
|
867
|
+
to?: number;
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
}>;
|
|
659
871
|
getSubmittedListing: () => Promise<{
|
|
660
872
|
data?: {
|
|
661
873
|
draft_name?: string;
|
|
@@ -1252,7 +1464,7 @@ declare const admin: {
|
|
|
1252
1464
|
status?: string;
|
|
1253
1465
|
priority?: string;
|
|
1254
1466
|
reported_at?: string;
|
|
1255
|
-
assigned_at?: string
|
|
1467
|
+
assigned_at?: string;
|
|
1256
1468
|
completed_at?: string | null;
|
|
1257
1469
|
sla_deadline?: string;
|
|
1258
1470
|
created_at?: string;
|
|
@@ -2127,9 +2339,8 @@ declare const landlord: {
|
|
|
2127
2339
|
uploadListingMedia: (params: ApiPathParams<"uploadListingMedia">) => Promise<{
|
|
2128
2340
|
data?: {
|
|
2129
2341
|
uid?: string;
|
|
2130
|
-
listing_id?: number;
|
|
2131
2342
|
media_type?: string;
|
|
2132
|
-
storage_path?: string;
|
|
2343
|
+
storage_path?: string | null;
|
|
2133
2344
|
order_index?: number;
|
|
2134
2345
|
is_cover?: boolean;
|
|
2135
2346
|
};
|
|
@@ -2430,6 +2641,18 @@ declare const listings: {
|
|
|
2430
2641
|
};
|
|
2431
2642
|
};
|
|
2432
2643
|
}>;
|
|
2644
|
+
fetchListingMediaPublic: (params: ApiPathParams<"fetchListingMediaPublic">) => Promise<{
|
|
2645
|
+
message?: string;
|
|
2646
|
+
event?: string | null;
|
|
2647
|
+
data?: {
|
|
2648
|
+
uid?: string;
|
|
2649
|
+
listing_id?: number;
|
|
2650
|
+
media_type?: string;
|
|
2651
|
+
storage_path?: string;
|
|
2652
|
+
order_index?: number;
|
|
2653
|
+
is_cover?: boolean;
|
|
2654
|
+
}[];
|
|
2655
|
+
}>;
|
|
2433
2656
|
};
|
|
2434
2657
|
|
|
2435
2658
|
declare const maintenance: {
|
|
@@ -2441,7 +2664,7 @@ declare const maintenance: {
|
|
|
2441
2664
|
status?: string;
|
|
2442
2665
|
priority?: string;
|
|
2443
2666
|
reported_at?: string;
|
|
2444
|
-
assigned_at?: string
|
|
2667
|
+
assigned_at?: string;
|
|
2445
2668
|
completed_at?: string | null;
|
|
2446
2669
|
sla_deadline?: string;
|
|
2447
2670
|
created_at?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,19 @@ declare const admin: {
|
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
}>;
|
|
100
|
+
inventoryOverview: () => Promise<{
|
|
101
|
+
message?: string;
|
|
102
|
+
event?: string | null;
|
|
103
|
+
data?: {
|
|
104
|
+
total_inventory?: number;
|
|
105
|
+
under_review?: number;
|
|
106
|
+
verified_units?: number;
|
|
107
|
+
compliance_risks?: number;
|
|
108
|
+
short_let_portfolio?: number;
|
|
109
|
+
long_term_rent?: number;
|
|
110
|
+
sales_pipeline?: number;
|
|
111
|
+
};
|
|
112
|
+
}>;
|
|
100
113
|
planDistribution: () => Promise<{
|
|
101
114
|
message?: string;
|
|
102
115
|
event?: string | null;
|
|
@@ -503,6 +516,81 @@ declare const admin: {
|
|
|
503
516
|
};
|
|
504
517
|
};
|
|
505
518
|
}>;
|
|
519
|
+
fetchTenancyHistoryForUser: (params: ApiPathParams<"fetchTenancyHistoryForUserAdmin">, query?: Expand<ApiRequest<"fetchTenancyHistoryForUserAdmin">>) => Promise<{
|
|
520
|
+
message?: string;
|
|
521
|
+
event?: string | null;
|
|
522
|
+
data?: {
|
|
523
|
+
items?: {
|
|
524
|
+
tenancy_uid?: string;
|
|
525
|
+
listing?: {
|
|
526
|
+
uid?: string;
|
|
527
|
+
details?: {
|
|
528
|
+
address?: string;
|
|
529
|
+
title?: string;
|
|
530
|
+
type?: string;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
tenant?: {
|
|
534
|
+
uid?: string;
|
|
535
|
+
name?: string;
|
|
536
|
+
email?: string;
|
|
537
|
+
};
|
|
538
|
+
period?: {
|
|
539
|
+
start_date?: string;
|
|
540
|
+
end_date?: string;
|
|
541
|
+
label?: string;
|
|
542
|
+
};
|
|
543
|
+
rent_amount?: {
|
|
544
|
+
amount?: string;
|
|
545
|
+
period?: string;
|
|
546
|
+
};
|
|
547
|
+
status?: {
|
|
548
|
+
value?: string;
|
|
549
|
+
label?: string;
|
|
550
|
+
};
|
|
551
|
+
termination_reason?: string | null;
|
|
552
|
+
action?: {
|
|
553
|
+
tenancy_uid?: string;
|
|
554
|
+
};
|
|
555
|
+
}[];
|
|
556
|
+
pagination?: {
|
|
557
|
+
current_page?: number;
|
|
558
|
+
per_page?: number;
|
|
559
|
+
total?: number;
|
|
560
|
+
last_page?: number;
|
|
561
|
+
from?: number;
|
|
562
|
+
to?: number;
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
}>;
|
|
566
|
+
fetchUserActivityFeed: (params: ApiPathParams<"fetchUserActivityFeedAdmin">, query?: Expand<ApiRequest<"fetchUserActivityFeedAdmin">>) => Promise<{
|
|
567
|
+
message?: string;
|
|
568
|
+
event?: string | null;
|
|
569
|
+
data?: {
|
|
570
|
+
items?: {
|
|
571
|
+
id?: string;
|
|
572
|
+
type?: string;
|
|
573
|
+
title?: string;
|
|
574
|
+
subtitle?: string;
|
|
575
|
+
meta?: {
|
|
576
|
+
summary?: string;
|
|
577
|
+
after?: {
|
|
578
|
+
status?: string;
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
timestamp?: string;
|
|
582
|
+
time_ago?: string;
|
|
583
|
+
}[];
|
|
584
|
+
pagination?: {
|
|
585
|
+
current_page?: number;
|
|
586
|
+
per_page?: number;
|
|
587
|
+
total?: number;
|
|
588
|
+
last_page?: number;
|
|
589
|
+
from?: number;
|
|
590
|
+
to?: number;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
}>;
|
|
506
594
|
fetchUserAuditLogs: (params: ApiPathParams<"fetchUserAuditLogsAdmin">, query?: Expand<ApiRequest<"fetchUserAuditLogsAdmin">>) => Promise<{
|
|
507
595
|
message?: string;
|
|
508
596
|
event?: string | null;
|
|
@@ -620,6 +708,7 @@ declare const admin: {
|
|
|
620
708
|
data?: {
|
|
621
709
|
items?: {
|
|
622
710
|
listing_uid?: string;
|
|
711
|
+
cover?: string | null;
|
|
623
712
|
details?: {
|
|
624
713
|
address?: string;
|
|
625
714
|
title?: string;
|
|
@@ -632,6 +721,7 @@ declare const admin: {
|
|
|
632
721
|
owner?: {
|
|
633
722
|
uid?: string;
|
|
634
723
|
name?: string;
|
|
724
|
+
avatar?: string | null;
|
|
635
725
|
};
|
|
636
726
|
compliance_status?: {
|
|
637
727
|
overall?: string;
|
|
@@ -656,6 +746,128 @@ declare const admin: {
|
|
|
656
746
|
};
|
|
657
747
|
};
|
|
658
748
|
}>;
|
|
749
|
+
fetchOneListing: (params: ApiPathParams<"fetchOneListingAdmin">) => Promise<{
|
|
750
|
+
message?: string;
|
|
751
|
+
event?: string | null;
|
|
752
|
+
data?: {
|
|
753
|
+
uid?: string;
|
|
754
|
+
draft_name?: string | null;
|
|
755
|
+
details?: {
|
|
756
|
+
title?: string;
|
|
757
|
+
description?: string | null;
|
|
758
|
+
city?: string;
|
|
759
|
+
address?: string;
|
|
760
|
+
postcode?: string | null;
|
|
761
|
+
longitude?: string | null;
|
|
762
|
+
latitude?: string | null;
|
|
763
|
+
country?: string | null;
|
|
764
|
+
};
|
|
765
|
+
listing_type?: string;
|
|
766
|
+
vertical?: string;
|
|
767
|
+
owner?: {
|
|
768
|
+
uid?: string | null;
|
|
769
|
+
name?: string | null;
|
|
770
|
+
email?: string | null;
|
|
771
|
+
avatar?: string | null;
|
|
772
|
+
};
|
|
773
|
+
created_by?: {
|
|
774
|
+
uid?: string | null;
|
|
775
|
+
name?: string | null;
|
|
776
|
+
};
|
|
777
|
+
state?: string | null;
|
|
778
|
+
is_visible?: boolean;
|
|
779
|
+
price?: {
|
|
780
|
+
amount?: string;
|
|
781
|
+
currency?: string;
|
|
782
|
+
period?: string;
|
|
783
|
+
};
|
|
784
|
+
summary?: unknown[];
|
|
785
|
+
workflow?: unknown[];
|
|
786
|
+
media?: {
|
|
787
|
+
cover?: string | null;
|
|
788
|
+
count?: number;
|
|
789
|
+
};
|
|
790
|
+
viewing_slots?: unknown[];
|
|
791
|
+
tenant_preferences?: unknown[];
|
|
792
|
+
rental?: {
|
|
793
|
+
deposit_amount?: string | null;
|
|
794
|
+
fixed_term_length?: string | null;
|
|
795
|
+
availability_date?: string | null;
|
|
796
|
+
};
|
|
797
|
+
short_let?: {
|
|
798
|
+
nightly_price?: string;
|
|
799
|
+
minimum_stay_nights?: number;
|
|
800
|
+
maximum_stay_nights?: number;
|
|
801
|
+
cleaning_fee?: string;
|
|
802
|
+
check_in_time?: string;
|
|
803
|
+
check_out_time?: string;
|
|
804
|
+
};
|
|
805
|
+
item?: {
|
|
806
|
+
item_name?: string | null;
|
|
807
|
+
item_category?: string | null;
|
|
808
|
+
condition?: string | null;
|
|
809
|
+
brand?: string | null;
|
|
810
|
+
dimensions?: string | null;
|
|
811
|
+
quantity_available?: string | null;
|
|
812
|
+
is_negotiable?: string | null;
|
|
813
|
+
availability_status?: string | null;
|
|
814
|
+
};
|
|
815
|
+
features?: unknown[];
|
|
816
|
+
active_tenancy?: string | null;
|
|
817
|
+
compliances?: unknown[];
|
|
818
|
+
compliance_status?: {
|
|
819
|
+
overall?: string;
|
|
820
|
+
breakdown?: unknown[];
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
}>;
|
|
824
|
+
fetchTenancyHistoryForListing: (params: ApiPathParams<"fetchTenancyHistoryForListingAdmin">, query?: Expand<ApiRequest<"fetchTenancyHistoryForListingAdmin">>) => Promise<{
|
|
825
|
+
message?: string;
|
|
826
|
+
event?: string | null;
|
|
827
|
+
data?: {
|
|
828
|
+
items?: {
|
|
829
|
+
tenancy_uid?: string;
|
|
830
|
+
listing?: {
|
|
831
|
+
uid?: string;
|
|
832
|
+
details?: {
|
|
833
|
+
address?: string;
|
|
834
|
+
title?: string;
|
|
835
|
+
type?: string;
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
tenant?: {
|
|
839
|
+
uid?: string;
|
|
840
|
+
name?: string;
|
|
841
|
+
email?: string;
|
|
842
|
+
};
|
|
843
|
+
period?: {
|
|
844
|
+
start_date?: string;
|
|
845
|
+
end_date?: string;
|
|
846
|
+
label?: string;
|
|
847
|
+
};
|
|
848
|
+
rent_amount?: {
|
|
849
|
+
amount?: string;
|
|
850
|
+
period?: string;
|
|
851
|
+
};
|
|
852
|
+
status?: {
|
|
853
|
+
value?: string;
|
|
854
|
+
label?: string;
|
|
855
|
+
};
|
|
856
|
+
termination_reason?: string | null;
|
|
857
|
+
action?: {
|
|
858
|
+
tenancy_uid?: string;
|
|
859
|
+
};
|
|
860
|
+
}[];
|
|
861
|
+
pagination?: {
|
|
862
|
+
current_page?: number;
|
|
863
|
+
per_page?: number;
|
|
864
|
+
total?: number;
|
|
865
|
+
last_page?: number;
|
|
866
|
+
from?: number;
|
|
867
|
+
to?: number;
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
}>;
|
|
659
871
|
getSubmittedListing: () => Promise<{
|
|
660
872
|
data?: {
|
|
661
873
|
draft_name?: string;
|
|
@@ -1252,7 +1464,7 @@ declare const admin: {
|
|
|
1252
1464
|
status?: string;
|
|
1253
1465
|
priority?: string;
|
|
1254
1466
|
reported_at?: string;
|
|
1255
|
-
assigned_at?: string
|
|
1467
|
+
assigned_at?: string;
|
|
1256
1468
|
completed_at?: string | null;
|
|
1257
1469
|
sla_deadline?: string;
|
|
1258
1470
|
created_at?: string;
|
|
@@ -2127,9 +2339,8 @@ declare const landlord: {
|
|
|
2127
2339
|
uploadListingMedia: (params: ApiPathParams<"uploadListingMedia">) => Promise<{
|
|
2128
2340
|
data?: {
|
|
2129
2341
|
uid?: string;
|
|
2130
|
-
listing_id?: number;
|
|
2131
2342
|
media_type?: string;
|
|
2132
|
-
storage_path?: string;
|
|
2343
|
+
storage_path?: string | null;
|
|
2133
2344
|
order_index?: number;
|
|
2134
2345
|
is_cover?: boolean;
|
|
2135
2346
|
};
|
|
@@ -2430,6 +2641,18 @@ declare const listings: {
|
|
|
2430
2641
|
};
|
|
2431
2642
|
};
|
|
2432
2643
|
}>;
|
|
2644
|
+
fetchListingMediaPublic: (params: ApiPathParams<"fetchListingMediaPublic">) => Promise<{
|
|
2645
|
+
message?: string;
|
|
2646
|
+
event?: string | null;
|
|
2647
|
+
data?: {
|
|
2648
|
+
uid?: string;
|
|
2649
|
+
listing_id?: number;
|
|
2650
|
+
media_type?: string;
|
|
2651
|
+
storage_path?: string;
|
|
2652
|
+
order_index?: number;
|
|
2653
|
+
is_cover?: boolean;
|
|
2654
|
+
}[];
|
|
2655
|
+
}>;
|
|
2433
2656
|
};
|
|
2434
2657
|
|
|
2435
2658
|
declare const maintenance: {
|
|
@@ -2441,7 +2664,7 @@ declare const maintenance: {
|
|
|
2441
2664
|
status?: string;
|
|
2442
2665
|
priority?: string;
|
|
2443
2666
|
reported_at?: string;
|
|
2444
|
-
assigned_at?: string
|
|
2667
|
+
assigned_at?: string;
|
|
2445
2668
|
completed_at?: string | null;
|
|
2446
2669
|
sla_deadline?: string;
|
|
2447
2670
|
created_at?: string;
|
package/dist/index.js
CHANGED
|
@@ -111,6 +111,9 @@ var admin = {
|
|
|
111
111
|
dashboardStats: () => {
|
|
112
112
|
return api.get("dashboardStatsAdmin", "/api/v1/portal/admin/dashboard/stats");
|
|
113
113
|
},
|
|
114
|
+
inventoryOverview: () => {
|
|
115
|
+
return api.get("inventoryOverviewAdmin", "/api/v1/portal/admin/dashboard/inventory-overview");
|
|
116
|
+
},
|
|
114
117
|
planDistribution: () => {
|
|
115
118
|
return api.get("planDistribution", "/api/v1/portal/admin/dashboard/plan-distribution");
|
|
116
119
|
},
|
|
@@ -153,6 +156,12 @@ var admin = {
|
|
|
153
156
|
fetchUserTenancyComplianceDocuments: (params, query) => {
|
|
154
157
|
return api.get("fetchUserTenancyComplianceDocumentsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/tenancy-documents`, query);
|
|
155
158
|
},
|
|
159
|
+
fetchTenancyHistoryForUser: (params, query) => {
|
|
160
|
+
return api.get("fetchTenancyHistoryForUserAdmin", `/api/v1/portal/admin/users/${params.user_uid}/tenancy-history`, query);
|
|
161
|
+
},
|
|
162
|
+
fetchUserActivityFeed: (params, query) => {
|
|
163
|
+
return api.get("fetchUserActivityFeedAdmin", `/api/v1/portal/admin/users/${params.user_uid}/activity-feed`, query);
|
|
164
|
+
},
|
|
156
165
|
fetchUserAuditLogs: (params, query) => {
|
|
157
166
|
return api.get("fetchUserAuditLogsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs`, query);
|
|
158
167
|
},
|
|
@@ -171,6 +180,12 @@ var admin = {
|
|
|
171
180
|
fetchListingList: (query) => {
|
|
172
181
|
return api.get("fetchListingListAdmin", "/api/v1/portal/admin/listing/fetch-all", query);
|
|
173
182
|
},
|
|
183
|
+
fetchOneListing: (params) => {
|
|
184
|
+
return api.get("fetchOneListingAdmin", `/api/v1/portal/admin/listing/fetch-one/${params.listing_uid}`);
|
|
185
|
+
},
|
|
186
|
+
fetchTenancyHistoryForListing: (params, query) => {
|
|
187
|
+
return api.get("fetchTenancyHistoryForListingAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/tenancy-history`, query);
|
|
188
|
+
},
|
|
174
189
|
getSubmittedListing: () => {
|
|
175
190
|
return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
|
|
176
191
|
},
|
|
@@ -622,6 +637,9 @@ var listings = {
|
|
|
622
637
|
},
|
|
623
638
|
fetchOne: (params) => {
|
|
624
639
|
return api.get("fetchOne", `/api/v1/public/listings/fetch-one/${params.listing_uid}`);
|
|
640
|
+
},
|
|
641
|
+
fetchListingMediaPublic: (params) => {
|
|
642
|
+
return api.get("fetchListingMediaPublic", `/api/v1/public/listings/${params.listing_uid}/media`);
|
|
625
643
|
}
|
|
626
644
|
};
|
|
627
645
|
|
package/dist/index.mjs
CHANGED
|
@@ -64,6 +64,9 @@ var admin = {
|
|
|
64
64
|
dashboardStats: () => {
|
|
65
65
|
return api.get("dashboardStatsAdmin", "/api/v1/portal/admin/dashboard/stats");
|
|
66
66
|
},
|
|
67
|
+
inventoryOverview: () => {
|
|
68
|
+
return api.get("inventoryOverviewAdmin", "/api/v1/portal/admin/dashboard/inventory-overview");
|
|
69
|
+
},
|
|
67
70
|
planDistribution: () => {
|
|
68
71
|
return api.get("planDistribution", "/api/v1/portal/admin/dashboard/plan-distribution");
|
|
69
72
|
},
|
|
@@ -106,6 +109,12 @@ var admin = {
|
|
|
106
109
|
fetchUserTenancyComplianceDocuments: (params, query) => {
|
|
107
110
|
return api.get("fetchUserTenancyComplianceDocumentsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/tenancy-documents`, query);
|
|
108
111
|
},
|
|
112
|
+
fetchTenancyHistoryForUser: (params, query) => {
|
|
113
|
+
return api.get("fetchTenancyHistoryForUserAdmin", `/api/v1/portal/admin/users/${params.user_uid}/tenancy-history`, query);
|
|
114
|
+
},
|
|
115
|
+
fetchUserActivityFeed: (params, query) => {
|
|
116
|
+
return api.get("fetchUserActivityFeedAdmin", `/api/v1/portal/admin/users/${params.user_uid}/activity-feed`, query);
|
|
117
|
+
},
|
|
109
118
|
fetchUserAuditLogs: (params, query) => {
|
|
110
119
|
return api.get("fetchUserAuditLogsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/audit-logs`, query);
|
|
111
120
|
},
|
|
@@ -124,6 +133,12 @@ var admin = {
|
|
|
124
133
|
fetchListingList: (query) => {
|
|
125
134
|
return api.get("fetchListingListAdmin", "/api/v1/portal/admin/listing/fetch-all", query);
|
|
126
135
|
},
|
|
136
|
+
fetchOneListing: (params) => {
|
|
137
|
+
return api.get("fetchOneListingAdmin", `/api/v1/portal/admin/listing/fetch-one/${params.listing_uid}`);
|
|
138
|
+
},
|
|
139
|
+
fetchTenancyHistoryForListing: (params, query) => {
|
|
140
|
+
return api.get("fetchTenancyHistoryForListingAdmin", `/api/v1/portal/admin/listing/${params.listing_uid}/tenancy-history`, query);
|
|
141
|
+
},
|
|
127
142
|
getSubmittedListing: () => {
|
|
128
143
|
return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
|
|
129
144
|
},
|
|
@@ -575,6 +590,9 @@ var listings = {
|
|
|
575
590
|
},
|
|
576
591
|
fetchOne: (params) => {
|
|
577
592
|
return api.get("fetchOne", `/api/v1/public/listings/fetch-one/${params.listing_uid}`);
|
|
593
|
+
},
|
|
594
|
+
fetchListingMediaPublic: (params) => {
|
|
595
|
+
return api.get("fetchListingMediaPublic", `/api/v1/public/listings/${params.listing_uid}/media`);
|
|
578
596
|
}
|
|
579
597
|
};
|
|
580
598
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justins-home/api-services",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.19",
|
|
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.
|
|
20
|
-
"@justins-home/types": "1.1.
|
|
19
|
+
"@justins-home/http-client": "1.1.14",
|
|
20
|
+
"@justins-home/types": "1.1.14"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|