@justins-home/api-services 1.2.27 → 1.2.28

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
@@ -279,6 +279,18 @@ declare const admin: {
279
279
  };
280
280
  };
281
281
  }>;
282
+ fetchLandlordOptions: () => Promise<{
283
+ message?: string;
284
+ event?: string | null;
285
+ data?: {
286
+ items?: {
287
+ uid?: string;
288
+ avatar?: string;
289
+ name?: string;
290
+ email?: string;
291
+ }[];
292
+ };
293
+ }>;
282
294
  createLandlordListingDraft: (params: ApiPathParams<"createLandlordListingDraftAdmin">, payload: ApiRequest<"createLandlordListingDraftAdmin">) => Promise<{
283
295
  data?: {
284
296
  draft_name?: string;
@@ -364,6 +376,18 @@ declare const admin: {
364
376
  };
365
377
  };
366
378
  }>;
379
+ fetchTenantOptions: () => Promise<{
380
+ message?: string;
381
+ event?: string | null;
382
+ data?: {
383
+ items?: {
384
+ uid?: string;
385
+ avatar?: string;
386
+ name?: string;
387
+ email?: string;
388
+ }[];
389
+ };
390
+ }>;
367
391
  fetchUser: (params: ApiPathParams<"fetchUserAdmin">) => Promise<{
368
392
  message?: string;
369
393
  event?: string | null;
@@ -2678,7 +2702,9 @@ declare const listings: {
2678
2702
  price?: string | null;
2679
2703
  state?: string;
2680
2704
  is_visible?: boolean;
2681
- summary?: unknown[];
2705
+ summary?: {
2706
+ availability?: string | null;
2707
+ };
2682
2708
  workflow?: unknown[];
2683
2709
  media?: unknown[];
2684
2710
  }[];
package/dist/index.d.ts CHANGED
@@ -279,6 +279,18 @@ declare const admin: {
279
279
  };
280
280
  };
281
281
  }>;
282
+ fetchLandlordOptions: () => Promise<{
283
+ message?: string;
284
+ event?: string | null;
285
+ data?: {
286
+ items?: {
287
+ uid?: string;
288
+ avatar?: string;
289
+ name?: string;
290
+ email?: string;
291
+ }[];
292
+ };
293
+ }>;
282
294
  createLandlordListingDraft: (params: ApiPathParams<"createLandlordListingDraftAdmin">, payload: ApiRequest<"createLandlordListingDraftAdmin">) => Promise<{
283
295
  data?: {
284
296
  draft_name?: string;
@@ -364,6 +376,18 @@ declare const admin: {
364
376
  };
365
377
  };
366
378
  }>;
379
+ fetchTenantOptions: () => Promise<{
380
+ message?: string;
381
+ event?: string | null;
382
+ data?: {
383
+ items?: {
384
+ uid?: string;
385
+ avatar?: string;
386
+ name?: string;
387
+ email?: string;
388
+ }[];
389
+ };
390
+ }>;
367
391
  fetchUser: (params: ApiPathParams<"fetchUserAdmin">) => Promise<{
368
392
  message?: string;
369
393
  event?: string | null;
@@ -2678,7 +2702,9 @@ declare const listings: {
2678
2702
  price?: string | null;
2679
2703
  state?: string;
2680
2704
  is_visible?: boolean;
2681
- summary?: unknown[];
2705
+ summary?: {
2706
+ availability?: string | null;
2707
+ };
2682
2708
  workflow?: unknown[];
2683
2709
  media?: unknown[];
2684
2710
  }[];
package/dist/index.js CHANGED
@@ -175,6 +175,9 @@ var admin = {
175
175
  fetchLandlordList: (query) => {
176
176
  return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all", query);
177
177
  },
178
+ fetchLandlordOptions: () => {
179
+ return api.get("fetchLandlordOptionsAdmin", "/api/v1/portal/admin/users/landlords/options");
180
+ },
178
181
  createLandlordListingDraft: (params, payload) => {
179
182
  return api.post("createLandlordListingDraftAdmin", `/api/v1/portal/admin/users/landlords/${params.landlord_uid}/create-listing`, payload);
180
183
  },
@@ -184,6 +187,9 @@ var admin = {
184
187
  fetchTenantList: (query) => {
185
188
  return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all", query);
186
189
  },
190
+ fetchTenantOptions: () => {
191
+ return api.get("fetchTenantOptionsAdmin", "/api/v1/portal/admin/users/tenants/options");
192
+ },
187
193
  fetchUser: (params) => {
188
194
  return api.get("fetchUserAdmin", `/api/v1/portal/admin/users/fetch-one/${params.user_uid}`);
189
195
  },
package/dist/index.mjs CHANGED
@@ -128,6 +128,9 @@ var admin = {
128
128
  fetchLandlordList: (query) => {
129
129
  return api.get("fetchLandlordListAdmin", "/api/v1/portal/admin/users/landlords/fetch-all", query);
130
130
  },
131
+ fetchLandlordOptions: () => {
132
+ return api.get("fetchLandlordOptionsAdmin", "/api/v1/portal/admin/users/landlords/options");
133
+ },
131
134
  createLandlordListingDraft: (params, payload) => {
132
135
  return api.post("createLandlordListingDraftAdmin", `/api/v1/portal/admin/users/landlords/${params.landlord_uid}/create-listing`, payload);
133
136
  },
@@ -137,6 +140,9 @@ var admin = {
137
140
  fetchTenantList: (query) => {
138
141
  return api.get("fetchTenantListAdmin", "/api/v1/portal/admin/users/tenants/fetch-all", query);
139
142
  },
143
+ fetchTenantOptions: () => {
144
+ return api.get("fetchTenantOptionsAdmin", "/api/v1/portal/admin/users/tenants/options");
145
+ },
140
146
  fetchUser: (params) => {
141
147
  return api.get("fetchUserAdmin", `/api/v1/portal/admin/users/fetch-one/${params.user_uid}`);
142
148
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.27",
3
+ "version": "1.2.28",
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.21",
20
- "@justins-home/types": "1.1.21"
19
+ "@justins-home/http-client": "1.1.22",
20
+ "@justins-home/types": "1.1.22"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"