@justins-home/api-services 1.2.9 → 1.2.10

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
@@ -210,7 +210,7 @@ declare const admin: {
210
210
  role?: string | null;
211
211
  };
212
212
  }>;
213
- fetchLandlordList: () => Promise<{
213
+ fetchLandlordList: (query?: Expand<ApiRequest<"fetchLandlordListAdmin">>) => Promise<{
214
214
  message?: string;
215
215
  event?: string | null;
216
216
  data?: {
@@ -248,7 +248,7 @@ declare const admin: {
248
248
  };
249
249
  };
250
250
  }>;
251
- fetchTenantList: () => Promise<{
251
+ fetchTenantList: (query?: Expand<ApiRequest<"fetchTenantListAdmin">>) => Promise<{
252
252
  message?: string;
253
253
  event?: string | null;
254
254
  data?: {
@@ -855,7 +855,7 @@ declare const admin: {
855
855
  status?: string;
856
856
  priority?: string;
857
857
  reported_at?: string;
858
- assigned_at?: string;
858
+ assigned_at?: string | null;
859
859
  completed_at?: string | null;
860
860
  sla_deadline?: string;
861
861
  created_at?: string;
package/dist/index.d.ts CHANGED
@@ -210,7 +210,7 @@ declare const admin: {
210
210
  role?: string | null;
211
211
  };
212
212
  }>;
213
- fetchLandlordList: () => Promise<{
213
+ fetchLandlordList: (query?: Expand<ApiRequest<"fetchLandlordListAdmin">>) => Promise<{
214
214
  message?: string;
215
215
  event?: string | null;
216
216
  data?: {
@@ -248,7 +248,7 @@ declare const admin: {
248
248
  };
249
249
  };
250
250
  }>;
251
- fetchTenantList: () => Promise<{
251
+ fetchTenantList: (query?: Expand<ApiRequest<"fetchTenantListAdmin">>) => Promise<{
252
252
  message?: string;
253
253
  event?: string | null;
254
254
  data?: {
@@ -855,7 +855,7 @@ declare const admin: {
855
855
  status?: string;
856
856
  priority?: string;
857
857
  reported_at?: string;
858
- assigned_at?: string;
858
+ assigned_at?: string | null;
859
859
  completed_at?: string | null;
860
860
  sla_deadline?: string;
861
861
  created_at?: string;
package/dist/index.js CHANGED
@@ -126,11 +126,11 @@ var admin = {
126
126
  updateAdminProfile: (payload) => {
127
127
  return api.post("updateAdminProfile", "/api/v1/portal/admin/dashboard/update-profile", payload);
128
128
  },
129
- fetchLandlordList: () => {
130
- return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all");
129
+ fetchLandlordList: (query) => {
130
+ return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all", query);
131
131
  },
132
- fetchTenantList: () => {
133
- return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all");
132
+ fetchTenantList: (query) => {
133
+ return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all", query);
134
134
  },
135
135
  getSubmittedListing: () => {
136
136
  return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
package/dist/index.mjs CHANGED
@@ -79,11 +79,11 @@ var admin = {
79
79
  updateAdminProfile: (payload) => {
80
80
  return api.post("updateAdminProfile", "/api/v1/portal/admin/dashboard/update-profile", payload);
81
81
  },
82
- fetchLandlordList: () => {
83
- return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all");
82
+ fetchLandlordList: (query) => {
83
+ return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all", query);
84
84
  },
85
- fetchTenantList: () => {
86
- return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all");
85
+ fetchTenantList: (query) => {
86
+ return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all", query);
87
87
  },
88
88
  getSubmittedListing: () => {
89
89
  return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
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.4",
20
- "@justins-home/types": "1.1.4"
19
+ "@justins-home/http-client": "1.1.5",
20
+ "@justins-home/types": "1.1.5"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"