@justins-home/api-services 1.2.4 → 1.2.7

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
@@ -64,30 +64,18 @@ type Expand<T> = {
64
64
  };
65
65
 
66
66
  declare const admin: {
67
- new: (payload: ApiRequest<"newAdmin">) => Promise<{
67
+ basicLogin: (payload: ApiRequest<"basicLoginAdmin">) => Promise<{
68
+ message?: string;
69
+ event?: string | null;
68
70
  data?: {
69
- uid?: string | null;
70
- username?: string | null;
71
- first_name?: string | null;
72
- last_name?: string | null;
73
- email?: string | null;
74
- phone?: string | null;
75
- status?: string | null;
76
- user_mode?: string | null;
77
- last_login_at?: string | null;
78
- last_login_ip?: string | null;
79
- two_factor_enabled?: string | null;
80
- avatar_path?: string | null;
81
- language?: string | null;
82
- timezone?: string | null;
83
- user_type?: string;
84
- created?: string;
85
- email_verified_at?: string | null;
86
- role?: string | null;
71
+ access_token?: string | null;
72
+ token_type?: string;
73
+ expires_at?: string | null;
87
74
  };
88
75
  }>;
89
76
  getSubmittedListing: () => Promise<{
90
77
  data?: {
78
+ draft_name?: string;
91
79
  uid?: string;
92
80
  listing_type?: string;
93
81
  vertical?: string;
@@ -95,10 +83,6 @@ declare const admin: {
95
83
  state?: string;
96
84
  is_visible?: boolean;
97
85
  summary?: {
98
- property_type?: string | null;
99
- bedrooms?: string | null;
100
- bathrooms?: string | null;
101
- city?: string | null;
102
86
  availability?: string | null;
103
87
  };
104
88
  workflow?: unknown[];
@@ -128,6 +112,7 @@ declare const admin: {
128
112
  }>;
129
113
  approveListing: (params: ApiPathParams<"approveListing">) => Promise<{
130
114
  data?: {
115
+ draft_name?: string;
131
116
  uid?: string;
132
117
  listing_type?: string;
133
118
  vertical?: string;
@@ -135,10 +120,6 @@ declare const admin: {
135
120
  state?: string;
136
121
  is_visible?: boolean;
137
122
  summary?: {
138
- property_type?: string | null;
139
- bedrooms?: string | null;
140
- bathrooms?: string | null;
141
- city?: string | null;
142
123
  availability?: string | null;
143
124
  };
144
125
  workflow?: unknown[];
@@ -147,6 +128,7 @@ declare const admin: {
147
128
  }>;
148
129
  rejectListing: (params: ApiPathParams<"rejectListing">, payload: ApiRequest<"rejectListing">) => Promise<{
149
130
  data?: {
131
+ draft_name?: string;
150
132
  uid?: string;
151
133
  listing_type?: string;
152
134
  vertical?: string;
@@ -154,10 +136,6 @@ declare const admin: {
154
136
  state?: string;
155
137
  is_visible?: boolean;
156
138
  summary?: {
157
- property_type?: string | null;
158
- bedrooms?: string | null;
159
- bathrooms?: string | null;
160
- city?: string | null;
161
139
  availability?: string | null;
162
140
  };
163
141
  workflow?: unknown[];
@@ -166,6 +144,7 @@ declare const admin: {
166
144
  }>;
167
145
  unpublishListing: (params: ApiPathParams<"unpublishListing">) => Promise<{
168
146
  data?: {
147
+ draft_name?: string;
169
148
  uid?: string;
170
149
  listing_type?: string;
171
150
  vertical?: string;
@@ -173,10 +152,6 @@ declare const admin: {
173
152
  state?: string;
174
153
  is_visible?: boolean;
175
154
  summary?: {
176
- property_type?: string | null;
177
- bedrooms?: string | null;
178
- bathrooms?: string | null;
179
- city?: string | null;
180
155
  availability?: string | null;
181
156
  };
182
157
  workflow?: unknown[];
@@ -185,6 +160,7 @@ declare const admin: {
185
160
  }>;
186
161
  republishListing: (params: ApiPathParams<"republishListing">) => Promise<{
187
162
  data?: {
163
+ draft_name?: string;
188
164
  uid?: string;
189
165
  listing_type?: string;
190
166
  vertical?: string;
@@ -192,10 +168,6 @@ declare const admin: {
192
168
  state?: string;
193
169
  is_visible?: boolean;
194
170
  summary?: {
195
- property_type?: string | null;
196
- bedrooms?: string | null;
197
- bathrooms?: string | null;
198
- city?: string | null;
199
171
  availability?: string | null;
200
172
  };
201
173
  workflow?: unknown[];
@@ -481,7 +453,7 @@ declare const admin: {
481
453
  is_active?: boolean;
482
454
  };
483
455
  }>;
484
- assignPlanToUser: (params: ApiPathParams<"assignPlanToUser">, payload: ApiRequest<"assignPlanToUser">) => Promise<unknown>;
456
+ assignPlanToUser: (payload: ApiRequest<"assignPlanToUser">) => Promise<unknown>;
485
457
  deactivateUserPlan: (params: ApiPathParams<"deactivateUserPlan">, payload: ApiRequest<"deactivateUserPlan">) => Promise<unknown>;
486
458
  attachPlanVerificationRequirements: (params: ApiPathParams<"attachPlanVerificationRequirements">, payload: ApiRequest<"attachPlanVerificationRequirements">) => Promise<unknown>;
487
459
  attachPlanCapabilities: (params: ApiPathParams<"attachPlanCapabilities">, payload: ApiRequest<"attachPlanCapabilities">) => Promise<unknown>;
@@ -1205,6 +1177,7 @@ declare const landlord: {
1205
1177
  }>;
1206
1178
  createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
1207
1179
  data?: {
1180
+ draft_name?: string;
1208
1181
  uid?: string;
1209
1182
  listing_type?: string;
1210
1183
  vertical?: string;
@@ -1212,18 +1185,20 @@ declare const landlord: {
1212
1185
  state?: string;
1213
1186
  is_visible?: boolean;
1214
1187
  summary?: {
1215
- property_type?: string | null;
1216
- bedrooms?: string | null;
1217
- bathrooms?: string | null;
1218
- city?: string | null;
1219
1188
  availability?: string | null;
1220
1189
  };
1221
1190
  workflow?: unknown[];
1222
1191
  media?: unknown[];
1223
1192
  };
1224
1193
  }>;
1194
+ updateDraftName: (params: ApiPathParams<"updateDraftName">, payload: ApiRequest<"updateDraftName">) => Promise<{
1195
+ message?: string;
1196
+ event?: string | null;
1197
+ data?: unknown[];
1198
+ }>;
1225
1199
  getDraftListings: () => Promise<{
1226
1200
  data?: {
1201
+ draft_name?: string;
1227
1202
  uid?: string;
1228
1203
  listing_type?: string;
1229
1204
  vertical?: string;
@@ -1231,10 +1206,6 @@ declare const landlord: {
1231
1206
  state?: string;
1232
1207
  is_visible?: boolean;
1233
1208
  summary?: {
1234
- property_type?: string | null;
1235
- bedrooms?: string | null;
1236
- bathrooms?: string | null;
1237
- city?: string | null;
1238
1209
  availability?: string | null;
1239
1210
  };
1240
1211
  workflow?: unknown[];
@@ -1264,6 +1235,7 @@ declare const landlord: {
1264
1235
  }>;
1265
1236
  getSubmittedListings: () => Promise<{
1266
1237
  data?: {
1238
+ draft_name?: string;
1267
1239
  uid?: string;
1268
1240
  listing_type?: string;
1269
1241
  vertical?: string;
@@ -1271,10 +1243,6 @@ declare const landlord: {
1271
1243
  state?: string;
1272
1244
  is_visible?: boolean;
1273
1245
  summary?: {
1274
- property_type?: string | null;
1275
- bedrooms?: string | null;
1276
- bathrooms?: string | null;
1277
- city?: string | null;
1278
1246
  availability?: string | null;
1279
1247
  };
1280
1248
  workflow?: unknown[];
@@ -1304,6 +1272,7 @@ declare const landlord: {
1304
1272
  }>;
1305
1273
  getOwnerListings: () => Promise<{
1306
1274
  data?: {
1275
+ draft_name?: string;
1307
1276
  uid?: string;
1308
1277
  listing_type?: string;
1309
1278
  vertical?: string;
@@ -1311,10 +1280,6 @@ declare const landlord: {
1311
1280
  state?: string;
1312
1281
  is_visible?: boolean;
1313
1282
  summary?: {
1314
- property_type?: string | null;
1315
- bedrooms?: string | null;
1316
- bathrooms?: string | null;
1317
- city?: string | null;
1318
1283
  availability?: string | null;
1319
1284
  };
1320
1285
  workflow?: unknown[];
@@ -1344,6 +1309,7 @@ declare const landlord: {
1344
1309
  }>;
1345
1310
  getOwnerListing: (params: ApiPathParams<"getOwnerListing">) => Promise<{
1346
1311
  data?: {
1312
+ draft_name?: string;
1347
1313
  uid?: string;
1348
1314
  listing_type?: string;
1349
1315
  vertical?: string;
@@ -1351,10 +1317,6 @@ declare const landlord: {
1351
1317
  state?: string;
1352
1318
  is_visible?: boolean;
1353
1319
  summary?: {
1354
- property_type?: string | null;
1355
- bedrooms?: string | null;
1356
- bathrooms?: string | null;
1357
- city?: string | null;
1358
1320
  availability?: string | null;
1359
1321
  };
1360
1322
  workflow?: unknown[];
@@ -1366,12 +1328,22 @@ declare const landlord: {
1366
1328
  };
1367
1329
  };
1368
1330
  }>;
1331
+ saveListingDetails: (params: ApiPathParams<"saveListingDetails">, payload: ApiRequest<"saveListingDetails">) => Promise<{
1332
+ message?: string;
1333
+ event?: string;
1334
+ data?: unknown[];
1335
+ }>;
1369
1336
  savePropertyBasics: (params: ApiPathParams<"savePropertyBasics">, payload: ApiRequest<"savePropertyBasics">) => Promise<{
1370
1337
  message?: string;
1371
1338
  event?: string;
1372
1339
  data?: unknown[];
1373
1340
  }>;
1374
- saveTenancyDetails: (params: ApiPathParams<"saveTenancyDetails">, payload: ApiRequest<"saveTenancyDetails">) => Promise<{
1341
+ savePricing: (params: ApiPathParams<"savePricing">, payload: ApiRequest<"savePricing">) => Promise<{
1342
+ message?: string;
1343
+ event?: string;
1344
+ data?: unknown[];
1345
+ }>;
1346
+ saveRentalDetails: (params: ApiPathParams<"saveRentalDetails">, payload: ApiRequest<"saveRentalDetails">) => Promise<{
1375
1347
  message?: string;
1376
1348
  event?: string;
1377
1349
  data?: unknown[];
@@ -1381,29 +1353,29 @@ declare const landlord: {
1381
1353
  event?: string;
1382
1354
  data?: unknown[];
1383
1355
  }>;
1384
- saveListingFeatures: (params: ApiPathParams<"saveListingFeatures">, payload: ApiRequest<"saveListingFeatures">) => Promise<{
1356
+ saveUsedItemDetails: (params: ApiPathParams<"saveUsedItemDetails">, payload: ApiRequest<"saveUsedItemDetails">) => Promise<{
1385
1357
  message?: string;
1386
1358
  event?: string;
1387
1359
  data?: unknown[];
1388
1360
  }>;
1389
- saveTenantPreferences: (params: ApiPathParams<"saveTenantPreferences">, payload: ApiRequest<"saveTenantPreferences">) => Promise<{
1361
+ saveListingFeatures: (params: ApiPathParams<"saveListingFeatures">, payload: ApiRequest<"saveListingFeatures">) => Promise<{
1390
1362
  message?: string;
1391
1363
  event?: string;
1392
1364
  data?: unknown[];
1393
1365
  }>;
1394
- saveViewingAvailability: (params: ApiPathParams<"saveViewingAvailability">, payload: ApiRequest<"saveViewingAvailability">) => Promise<{
1366
+ saveTenantPreferences: (params: ApiPathParams<"saveTenantPreferences">, payload: ApiRequest<"saveTenantPreferences">) => Promise<{
1395
1367
  message?: string;
1396
1368
  event?: string;
1397
1369
  data?: unknown[];
1398
1370
  }>;
1399
- saveUsedItemDetails: (params: ApiPathParams<"saveUsedItemDetails">, payload: ApiRequest<"saveUsedItemDetails">) => Promise<{
1371
+ saveViewingAvailability: (params: ApiPathParams<"saveViewingAvailability">, payload: ApiRequest<"saveViewingAvailability">) => Promise<{
1400
1372
  message?: string;
1401
1373
  event?: string;
1402
1374
  data?: unknown[];
1403
1375
  }>;
1404
1376
  uploadListingMedia: (params: ApiPathParams<"uploadListingMedia">) => Promise<{
1405
1377
  data?: {
1406
- id?: number;
1378
+ uid?: string;
1407
1379
  listing_id?: number;
1408
1380
  media_type?: string;
1409
1381
  storage_path?: string;
@@ -1431,6 +1403,7 @@ declare const landlord: {
1431
1403
  }>;
1432
1404
  submitListing: (params: ApiPathParams<"submitListing">) => Promise<{
1433
1405
  data?: {
1406
+ draft_name?: string;
1434
1407
  uid?: string;
1435
1408
  listing_type?: string;
1436
1409
  vertical?: string;
@@ -1438,10 +1411,6 @@ declare const landlord: {
1438
1411
  state?: string;
1439
1412
  is_visible?: boolean;
1440
1413
  summary?: {
1441
- property_type?: string | null;
1442
- bedrooms?: string | null;
1443
- bathrooms?: string | null;
1444
- city?: string | null;
1445
1414
  availability?: string | null;
1446
1415
  };
1447
1416
  workflow?: unknown[];
@@ -1622,19 +1591,14 @@ declare const landlord: {
1622
1591
  declare const listings: {
1623
1592
  search: (query?: Expand<ApiRequest<"searchListings">>) => Promise<{
1624
1593
  data?: {
1594
+ draft_name?: string;
1625
1595
  uid?: string;
1626
1596
  listing_type?: string;
1627
1597
  vertical?: string;
1628
1598
  price?: string | null;
1629
1599
  state?: string;
1630
1600
  is_visible?: boolean;
1631
- summary?: {
1632
- property_type?: string | null;
1633
- bedrooms?: string | null;
1634
- bathrooms?: string | null;
1635
- city?: string | null;
1636
- availability?: string | null;
1637
- };
1601
+ summary?: unknown[];
1638
1602
  workflow?: unknown[];
1639
1603
  media?: unknown[];
1640
1604
  }[];
@@ -1662,19 +1626,14 @@ declare const listings: {
1662
1626
  }>;
1663
1627
  discover: (query?: Expand<ApiRequest<"discoverListings">>) => Promise<{
1664
1628
  data?: {
1629
+ draft_name?: string;
1665
1630
  uid?: string;
1666
1631
  listing_type?: string;
1667
1632
  vertical?: string;
1668
1633
  price?: string | null;
1669
1634
  state?: string;
1670
1635
  is_visible?: boolean;
1671
- summary?: {
1672
- property_type?: string | null;
1673
- bedrooms?: string | null;
1674
- bathrooms?: string | null;
1675
- city?: string | null;
1676
- availability?: string | null;
1677
- };
1636
+ summary?: unknown[];
1678
1637
  workflow?: unknown[];
1679
1638
  media?: unknown[];
1680
1639
  }[];
@@ -1987,6 +1946,14 @@ declare const notification: {
1987
1946
  };
1988
1947
 
1989
1948
  declare const plan: {
1949
+ user: () => Promise<{
1950
+ data?: {
1951
+ key?: string;
1952
+ name?: string;
1953
+ user_type?: string;
1954
+ is_active?: boolean;
1955
+ };
1956
+ }>;
1990
1957
  myCapabilities: () => Promise<{
1991
1958
  message?: string;
1992
1959
  event?: string | null;
@@ -2319,19 +2286,14 @@ declare const wishlist: {
2319
2286
  data?: {
2320
2287
  wishlist_uid?: string;
2321
2288
  listing?: {
2289
+ draft_name?: string;
2322
2290
  uid?: string;
2323
2291
  listing_type?: string;
2324
2292
  vertical?: string;
2325
2293
  price?: string | null;
2326
2294
  state?: string;
2327
2295
  is_visible?: boolean;
2328
- summary?: {
2329
- property_type?: string | null;
2330
- bedrooms?: string | null;
2331
- bathrooms?: string | null;
2332
- city?: string | null;
2333
- availability?: string | null;
2334
- };
2296
+ summary?: unknown[];
2335
2297
  workflow?: unknown[];
2336
2298
  media?: unknown[];
2337
2299
  };
package/dist/index.d.ts CHANGED
@@ -64,30 +64,18 @@ type Expand<T> = {
64
64
  };
65
65
 
66
66
  declare const admin: {
67
- new: (payload: ApiRequest<"newAdmin">) => Promise<{
67
+ basicLogin: (payload: ApiRequest<"basicLoginAdmin">) => Promise<{
68
+ message?: string;
69
+ event?: string | null;
68
70
  data?: {
69
- uid?: string | null;
70
- username?: string | null;
71
- first_name?: string | null;
72
- last_name?: string | null;
73
- email?: string | null;
74
- phone?: string | null;
75
- status?: string | null;
76
- user_mode?: string | null;
77
- last_login_at?: string | null;
78
- last_login_ip?: string | null;
79
- two_factor_enabled?: string | null;
80
- avatar_path?: string | null;
81
- language?: string | null;
82
- timezone?: string | null;
83
- user_type?: string;
84
- created?: string;
85
- email_verified_at?: string | null;
86
- role?: string | null;
71
+ access_token?: string | null;
72
+ token_type?: string;
73
+ expires_at?: string | null;
87
74
  };
88
75
  }>;
89
76
  getSubmittedListing: () => Promise<{
90
77
  data?: {
78
+ draft_name?: string;
91
79
  uid?: string;
92
80
  listing_type?: string;
93
81
  vertical?: string;
@@ -95,10 +83,6 @@ declare const admin: {
95
83
  state?: string;
96
84
  is_visible?: boolean;
97
85
  summary?: {
98
- property_type?: string | null;
99
- bedrooms?: string | null;
100
- bathrooms?: string | null;
101
- city?: string | null;
102
86
  availability?: string | null;
103
87
  };
104
88
  workflow?: unknown[];
@@ -128,6 +112,7 @@ declare const admin: {
128
112
  }>;
129
113
  approveListing: (params: ApiPathParams<"approveListing">) => Promise<{
130
114
  data?: {
115
+ draft_name?: string;
131
116
  uid?: string;
132
117
  listing_type?: string;
133
118
  vertical?: string;
@@ -135,10 +120,6 @@ declare const admin: {
135
120
  state?: string;
136
121
  is_visible?: boolean;
137
122
  summary?: {
138
- property_type?: string | null;
139
- bedrooms?: string | null;
140
- bathrooms?: string | null;
141
- city?: string | null;
142
123
  availability?: string | null;
143
124
  };
144
125
  workflow?: unknown[];
@@ -147,6 +128,7 @@ declare const admin: {
147
128
  }>;
148
129
  rejectListing: (params: ApiPathParams<"rejectListing">, payload: ApiRequest<"rejectListing">) => Promise<{
149
130
  data?: {
131
+ draft_name?: string;
150
132
  uid?: string;
151
133
  listing_type?: string;
152
134
  vertical?: string;
@@ -154,10 +136,6 @@ declare const admin: {
154
136
  state?: string;
155
137
  is_visible?: boolean;
156
138
  summary?: {
157
- property_type?: string | null;
158
- bedrooms?: string | null;
159
- bathrooms?: string | null;
160
- city?: string | null;
161
139
  availability?: string | null;
162
140
  };
163
141
  workflow?: unknown[];
@@ -166,6 +144,7 @@ declare const admin: {
166
144
  }>;
167
145
  unpublishListing: (params: ApiPathParams<"unpublishListing">) => Promise<{
168
146
  data?: {
147
+ draft_name?: string;
169
148
  uid?: string;
170
149
  listing_type?: string;
171
150
  vertical?: string;
@@ -173,10 +152,6 @@ declare const admin: {
173
152
  state?: string;
174
153
  is_visible?: boolean;
175
154
  summary?: {
176
- property_type?: string | null;
177
- bedrooms?: string | null;
178
- bathrooms?: string | null;
179
- city?: string | null;
180
155
  availability?: string | null;
181
156
  };
182
157
  workflow?: unknown[];
@@ -185,6 +160,7 @@ declare const admin: {
185
160
  }>;
186
161
  republishListing: (params: ApiPathParams<"republishListing">) => Promise<{
187
162
  data?: {
163
+ draft_name?: string;
188
164
  uid?: string;
189
165
  listing_type?: string;
190
166
  vertical?: string;
@@ -192,10 +168,6 @@ declare const admin: {
192
168
  state?: string;
193
169
  is_visible?: boolean;
194
170
  summary?: {
195
- property_type?: string | null;
196
- bedrooms?: string | null;
197
- bathrooms?: string | null;
198
- city?: string | null;
199
171
  availability?: string | null;
200
172
  };
201
173
  workflow?: unknown[];
@@ -481,7 +453,7 @@ declare const admin: {
481
453
  is_active?: boolean;
482
454
  };
483
455
  }>;
484
- assignPlanToUser: (params: ApiPathParams<"assignPlanToUser">, payload: ApiRequest<"assignPlanToUser">) => Promise<unknown>;
456
+ assignPlanToUser: (payload: ApiRequest<"assignPlanToUser">) => Promise<unknown>;
485
457
  deactivateUserPlan: (params: ApiPathParams<"deactivateUserPlan">, payload: ApiRequest<"deactivateUserPlan">) => Promise<unknown>;
486
458
  attachPlanVerificationRequirements: (params: ApiPathParams<"attachPlanVerificationRequirements">, payload: ApiRequest<"attachPlanVerificationRequirements">) => Promise<unknown>;
487
459
  attachPlanCapabilities: (params: ApiPathParams<"attachPlanCapabilities">, payload: ApiRequest<"attachPlanCapabilities">) => Promise<unknown>;
@@ -1205,6 +1177,7 @@ declare const landlord: {
1205
1177
  }>;
1206
1178
  createListingDraft: (payload: ApiRequest<"createListingDraft">) => Promise<{
1207
1179
  data?: {
1180
+ draft_name?: string;
1208
1181
  uid?: string;
1209
1182
  listing_type?: string;
1210
1183
  vertical?: string;
@@ -1212,18 +1185,20 @@ declare const landlord: {
1212
1185
  state?: string;
1213
1186
  is_visible?: boolean;
1214
1187
  summary?: {
1215
- property_type?: string | null;
1216
- bedrooms?: string | null;
1217
- bathrooms?: string | null;
1218
- city?: string | null;
1219
1188
  availability?: string | null;
1220
1189
  };
1221
1190
  workflow?: unknown[];
1222
1191
  media?: unknown[];
1223
1192
  };
1224
1193
  }>;
1194
+ updateDraftName: (params: ApiPathParams<"updateDraftName">, payload: ApiRequest<"updateDraftName">) => Promise<{
1195
+ message?: string;
1196
+ event?: string | null;
1197
+ data?: unknown[];
1198
+ }>;
1225
1199
  getDraftListings: () => Promise<{
1226
1200
  data?: {
1201
+ draft_name?: string;
1227
1202
  uid?: string;
1228
1203
  listing_type?: string;
1229
1204
  vertical?: string;
@@ -1231,10 +1206,6 @@ declare const landlord: {
1231
1206
  state?: string;
1232
1207
  is_visible?: boolean;
1233
1208
  summary?: {
1234
- property_type?: string | null;
1235
- bedrooms?: string | null;
1236
- bathrooms?: string | null;
1237
- city?: string | null;
1238
1209
  availability?: string | null;
1239
1210
  };
1240
1211
  workflow?: unknown[];
@@ -1264,6 +1235,7 @@ declare const landlord: {
1264
1235
  }>;
1265
1236
  getSubmittedListings: () => Promise<{
1266
1237
  data?: {
1238
+ draft_name?: string;
1267
1239
  uid?: string;
1268
1240
  listing_type?: string;
1269
1241
  vertical?: string;
@@ -1271,10 +1243,6 @@ declare const landlord: {
1271
1243
  state?: string;
1272
1244
  is_visible?: boolean;
1273
1245
  summary?: {
1274
- property_type?: string | null;
1275
- bedrooms?: string | null;
1276
- bathrooms?: string | null;
1277
- city?: string | null;
1278
1246
  availability?: string | null;
1279
1247
  };
1280
1248
  workflow?: unknown[];
@@ -1304,6 +1272,7 @@ declare const landlord: {
1304
1272
  }>;
1305
1273
  getOwnerListings: () => Promise<{
1306
1274
  data?: {
1275
+ draft_name?: string;
1307
1276
  uid?: string;
1308
1277
  listing_type?: string;
1309
1278
  vertical?: string;
@@ -1311,10 +1280,6 @@ declare const landlord: {
1311
1280
  state?: string;
1312
1281
  is_visible?: boolean;
1313
1282
  summary?: {
1314
- property_type?: string | null;
1315
- bedrooms?: string | null;
1316
- bathrooms?: string | null;
1317
- city?: string | null;
1318
1283
  availability?: string | null;
1319
1284
  };
1320
1285
  workflow?: unknown[];
@@ -1344,6 +1309,7 @@ declare const landlord: {
1344
1309
  }>;
1345
1310
  getOwnerListing: (params: ApiPathParams<"getOwnerListing">) => Promise<{
1346
1311
  data?: {
1312
+ draft_name?: string;
1347
1313
  uid?: string;
1348
1314
  listing_type?: string;
1349
1315
  vertical?: string;
@@ -1351,10 +1317,6 @@ declare const landlord: {
1351
1317
  state?: string;
1352
1318
  is_visible?: boolean;
1353
1319
  summary?: {
1354
- property_type?: string | null;
1355
- bedrooms?: string | null;
1356
- bathrooms?: string | null;
1357
- city?: string | null;
1358
1320
  availability?: string | null;
1359
1321
  };
1360
1322
  workflow?: unknown[];
@@ -1366,12 +1328,22 @@ declare const landlord: {
1366
1328
  };
1367
1329
  };
1368
1330
  }>;
1331
+ saveListingDetails: (params: ApiPathParams<"saveListingDetails">, payload: ApiRequest<"saveListingDetails">) => Promise<{
1332
+ message?: string;
1333
+ event?: string;
1334
+ data?: unknown[];
1335
+ }>;
1369
1336
  savePropertyBasics: (params: ApiPathParams<"savePropertyBasics">, payload: ApiRequest<"savePropertyBasics">) => Promise<{
1370
1337
  message?: string;
1371
1338
  event?: string;
1372
1339
  data?: unknown[];
1373
1340
  }>;
1374
- saveTenancyDetails: (params: ApiPathParams<"saveTenancyDetails">, payload: ApiRequest<"saveTenancyDetails">) => Promise<{
1341
+ savePricing: (params: ApiPathParams<"savePricing">, payload: ApiRequest<"savePricing">) => Promise<{
1342
+ message?: string;
1343
+ event?: string;
1344
+ data?: unknown[];
1345
+ }>;
1346
+ saveRentalDetails: (params: ApiPathParams<"saveRentalDetails">, payload: ApiRequest<"saveRentalDetails">) => Promise<{
1375
1347
  message?: string;
1376
1348
  event?: string;
1377
1349
  data?: unknown[];
@@ -1381,29 +1353,29 @@ declare const landlord: {
1381
1353
  event?: string;
1382
1354
  data?: unknown[];
1383
1355
  }>;
1384
- saveListingFeatures: (params: ApiPathParams<"saveListingFeatures">, payload: ApiRequest<"saveListingFeatures">) => Promise<{
1356
+ saveUsedItemDetails: (params: ApiPathParams<"saveUsedItemDetails">, payload: ApiRequest<"saveUsedItemDetails">) => Promise<{
1385
1357
  message?: string;
1386
1358
  event?: string;
1387
1359
  data?: unknown[];
1388
1360
  }>;
1389
- saveTenantPreferences: (params: ApiPathParams<"saveTenantPreferences">, payload: ApiRequest<"saveTenantPreferences">) => Promise<{
1361
+ saveListingFeatures: (params: ApiPathParams<"saveListingFeatures">, payload: ApiRequest<"saveListingFeatures">) => Promise<{
1390
1362
  message?: string;
1391
1363
  event?: string;
1392
1364
  data?: unknown[];
1393
1365
  }>;
1394
- saveViewingAvailability: (params: ApiPathParams<"saveViewingAvailability">, payload: ApiRequest<"saveViewingAvailability">) => Promise<{
1366
+ saveTenantPreferences: (params: ApiPathParams<"saveTenantPreferences">, payload: ApiRequest<"saveTenantPreferences">) => Promise<{
1395
1367
  message?: string;
1396
1368
  event?: string;
1397
1369
  data?: unknown[];
1398
1370
  }>;
1399
- saveUsedItemDetails: (params: ApiPathParams<"saveUsedItemDetails">, payload: ApiRequest<"saveUsedItemDetails">) => Promise<{
1371
+ saveViewingAvailability: (params: ApiPathParams<"saveViewingAvailability">, payload: ApiRequest<"saveViewingAvailability">) => Promise<{
1400
1372
  message?: string;
1401
1373
  event?: string;
1402
1374
  data?: unknown[];
1403
1375
  }>;
1404
1376
  uploadListingMedia: (params: ApiPathParams<"uploadListingMedia">) => Promise<{
1405
1377
  data?: {
1406
- id?: number;
1378
+ uid?: string;
1407
1379
  listing_id?: number;
1408
1380
  media_type?: string;
1409
1381
  storage_path?: string;
@@ -1431,6 +1403,7 @@ declare const landlord: {
1431
1403
  }>;
1432
1404
  submitListing: (params: ApiPathParams<"submitListing">) => Promise<{
1433
1405
  data?: {
1406
+ draft_name?: string;
1434
1407
  uid?: string;
1435
1408
  listing_type?: string;
1436
1409
  vertical?: string;
@@ -1438,10 +1411,6 @@ declare const landlord: {
1438
1411
  state?: string;
1439
1412
  is_visible?: boolean;
1440
1413
  summary?: {
1441
- property_type?: string | null;
1442
- bedrooms?: string | null;
1443
- bathrooms?: string | null;
1444
- city?: string | null;
1445
1414
  availability?: string | null;
1446
1415
  };
1447
1416
  workflow?: unknown[];
@@ -1622,19 +1591,14 @@ declare const landlord: {
1622
1591
  declare const listings: {
1623
1592
  search: (query?: Expand<ApiRequest<"searchListings">>) => Promise<{
1624
1593
  data?: {
1594
+ draft_name?: string;
1625
1595
  uid?: string;
1626
1596
  listing_type?: string;
1627
1597
  vertical?: string;
1628
1598
  price?: string | null;
1629
1599
  state?: string;
1630
1600
  is_visible?: boolean;
1631
- summary?: {
1632
- property_type?: string | null;
1633
- bedrooms?: string | null;
1634
- bathrooms?: string | null;
1635
- city?: string | null;
1636
- availability?: string | null;
1637
- };
1601
+ summary?: unknown[];
1638
1602
  workflow?: unknown[];
1639
1603
  media?: unknown[];
1640
1604
  }[];
@@ -1662,19 +1626,14 @@ declare const listings: {
1662
1626
  }>;
1663
1627
  discover: (query?: Expand<ApiRequest<"discoverListings">>) => Promise<{
1664
1628
  data?: {
1629
+ draft_name?: string;
1665
1630
  uid?: string;
1666
1631
  listing_type?: string;
1667
1632
  vertical?: string;
1668
1633
  price?: string | null;
1669
1634
  state?: string;
1670
1635
  is_visible?: boolean;
1671
- summary?: {
1672
- property_type?: string | null;
1673
- bedrooms?: string | null;
1674
- bathrooms?: string | null;
1675
- city?: string | null;
1676
- availability?: string | null;
1677
- };
1636
+ summary?: unknown[];
1678
1637
  workflow?: unknown[];
1679
1638
  media?: unknown[];
1680
1639
  }[];
@@ -1987,6 +1946,14 @@ declare const notification: {
1987
1946
  };
1988
1947
 
1989
1948
  declare const plan: {
1949
+ user: () => Promise<{
1950
+ data?: {
1951
+ key?: string;
1952
+ name?: string;
1953
+ user_type?: string;
1954
+ is_active?: boolean;
1955
+ };
1956
+ }>;
1990
1957
  myCapabilities: () => Promise<{
1991
1958
  message?: string;
1992
1959
  event?: string | null;
@@ -2319,19 +2286,14 @@ declare const wishlist: {
2319
2286
  data?: {
2320
2287
  wishlist_uid?: string;
2321
2288
  listing?: {
2289
+ draft_name?: string;
2322
2290
  uid?: string;
2323
2291
  listing_type?: string;
2324
2292
  vertical?: string;
2325
2293
  price?: string | null;
2326
2294
  state?: string;
2327
2295
  is_visible?: boolean;
2328
- summary?: {
2329
- property_type?: string | null;
2330
- bedrooms?: string | null;
2331
- bathrooms?: string | null;
2332
- city?: string | null;
2333
- availability?: string | null;
2334
- };
2296
+ summary?: unknown[];
2335
2297
  workflow?: unknown[];
2336
2298
  media?: unknown[];
2337
2299
  };
package/dist/index.js CHANGED
@@ -105,8 +105,8 @@ var import_http_client2 = require("@justins-home/http-client");
105
105
 
106
106
  // src/generated/admin.ts
107
107
  var admin = {
108
- new: (payload) => {
109
- return api.post("newAdmin", "/api/v1/portal/admin/create-admin", payload);
108
+ basicLogin: (payload) => {
109
+ return api.post("basicLoginAdmin", "/api/v1/portal/admin/login", payload);
110
110
  },
111
111
  getSubmittedListing: () => {
112
112
  return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
@@ -198,17 +198,17 @@ var admin = {
198
198
  updatePlan: (params, payload) => {
199
199
  return api.post("updatePlan", `/api/v1/portal/admin/plans/update/${params.plan_id}`, payload);
200
200
  },
201
- assignPlanToUser: (params, payload) => {
202
- return api.post("assignPlanToUser", `/api/v1/portal/admin/plans/assign-to-user/${params.user_id}`, payload);
201
+ assignPlanToUser: (payload) => {
202
+ return api.post("assignPlanToUser", "/api/v1/portal/admin/plans/assign-to-user", payload);
203
203
  },
204
204
  deactivateUserPlan: (params, payload) => {
205
- return api.post("deactivateUserPlan", `/api/v1/portal/admin/plans/deactivate-from-user/${params.user_id}`, payload);
205
+ return api.post("deactivateUserPlan", `/api/v1/portal/admin/plans/deactivate-from-user/${params.user_uid}`, payload);
206
206
  },
207
207
  attachPlanVerificationRequirements: (params, payload) => {
208
- return api.post("attachPlanVerificationRequirements", `/api/v1/portal/admin/plans/${params.plan_id}/requirements`, payload);
208
+ return api.post("attachPlanVerificationRequirements", `/api/v1/portal/admin/plans/${params.plan_key}/requirements`, payload);
209
209
  },
210
210
  attachPlanCapabilities: (params, payload) => {
211
- return api.post("attachPlanCapabilities", `/api/v1/portal/admin/plans/${params.plan_id}/capabilities`, payload);
211
+ return api.post("attachPlanCapabilities", `/api/v1/portal/admin/plans/${params.plan_key}/capabilities`, payload);
212
212
  },
213
213
  getPlanEntitlements: () => {
214
214
  return api.get("getPlanEntitlements", "/api/v1/portal/admin/plans/entitlements/fetch-all");
@@ -220,7 +220,7 @@ var admin = {
220
220
  return api.post("updatePlanEntitlement", `/api/v1/portal/admin/plans/entitlements/update/${params.entitlement_key}`, payload);
221
221
  },
222
222
  syncPlanEntitlements: (params, payload) => {
223
- return api.post("syncPlanEntitlements", `/api/v1/portal/admin/plans/entitlements/sync/${params.plan_id}`, payload);
223
+ return api.post("syncPlanEntitlements", `/api/v1/portal/admin/plans/entitlements/sync/${params.plan_key}`, payload);
224
224
  },
225
225
  getCapabilities: () => {
226
226
  return api.get("getCapabilities", "/api/v1/portal/admin/capability/fetch-all");
@@ -229,7 +229,7 @@ var admin = {
229
229
  return api.post("createCapability", "/api/v1/portal/admin/capability/create", payload);
230
230
  },
231
231
  updateCapability: (params, payload) => {
232
- return api.post("updateCapability", `/api/v1/portal/admin/capability/update/${params.capability_id}`, payload);
232
+ return api.post("updateCapability", `/api/v1/portal/admin/capability/update/${params.capability_key}`, payload);
233
233
  },
234
234
  getComplianceDefinitions: () => {
235
235
  return api.get("getComplianceDefinitions", "/api/v1/portal/admin/compliances/fetch-all");
@@ -448,6 +448,9 @@ var landlord = {
448
448
  createListingDraft: (payload) => {
449
449
  return api.post("createListingDraft", "/api/v1/portal/landlord/listing", payload);
450
450
  },
451
+ updateDraftName: (params, payload) => {
452
+ return api.post("updateDraftName", `/api/v1/portal/landlord/listing/${params.listing_uid}/draft-name`, payload);
453
+ },
451
454
  getDraftListings: () => {
452
455
  return api.get("getDraftListings", "/api/v1/portal/landlord/listing/drafts");
453
456
  },
@@ -460,15 +463,24 @@ var landlord = {
460
463
  getOwnerListing: (params) => {
461
464
  return api.get("getOwnerListing", `/api/v1/portal/landlord/listing/fetch-one/${params.listing_uid}`);
462
465
  },
466
+ saveListingDetails: (params, payload) => {
467
+ return api.post("saveListingDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/listing-details`, payload);
468
+ },
463
469
  savePropertyBasics: (params, payload) => {
464
470
  return api.post("savePropertyBasics", `/api/v1/portal/landlord/listing/${params.listing_uid}/property-basics`, payload);
465
471
  },
466
- saveTenancyDetails: (params, payload) => {
467
- return api.post("saveTenancyDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/tenancy-details`, payload);
472
+ savePricing: (params, payload) => {
473
+ return api.post("savePricing", `/api/v1/portal/landlord/listing/${params.listing_uid}/listing-pricing`, payload);
474
+ },
475
+ saveRentalDetails: (params, payload) => {
476
+ return api.post("saveRentalDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/listing-rental`, payload);
468
477
  },
469
478
  saveShortLetDetails: (params, payload) => {
470
479
  return api.post("saveShortLetDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/shortlet-details`, payload);
471
480
  },
481
+ saveUsedItemDetails: (params, payload) => {
482
+ return api.post("saveUsedItemDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/item-details`, payload);
483
+ },
472
484
  saveListingFeatures: (params, payload) => {
473
485
  return api.post("saveListingFeatures", `/api/v1/portal/landlord/listing/${params.listing_uid}/features`, payload);
474
486
  },
@@ -478,9 +490,6 @@ var landlord = {
478
490
  saveViewingAvailability: (params, payload) => {
479
491
  return api.post("saveViewingAvailability", `/api/v1/portal/landlord/listing/${params.listing_uid}/viewing-availability`, payload);
480
492
  },
481
- saveUsedItemDetails: (params, payload) => {
482
- return api.post("saveUsedItemDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/item-details`, payload);
483
- },
484
493
  uploadListingMedia: (params) => {
485
494
  return api.post("uploadListingMedia", `/api/v1/portal/landlord/listing/${params.listing_uid}/media`);
486
495
  },
@@ -594,6 +603,9 @@ var notification = {
594
603
 
595
604
  // src/generated/plan.ts
596
605
  var plan = {
606
+ user: () => {
607
+ return api.get("userPlan", "/api/v1/public/plan/current");
608
+ },
597
609
  myCapabilities: () => {
598
610
  return api.get("myCapabilitiesPlan", "/api/v1/public/plan/me/capabilities");
599
611
  },
package/dist/index.mjs CHANGED
@@ -58,8 +58,8 @@ import {
58
58
 
59
59
  // src/generated/admin.ts
60
60
  var admin = {
61
- new: (payload) => {
62
- return api.post("newAdmin", "/api/v1/portal/admin/create-admin", payload);
61
+ basicLogin: (payload) => {
62
+ return api.post("basicLoginAdmin", "/api/v1/portal/admin/login", payload);
63
63
  },
64
64
  getSubmittedListing: () => {
65
65
  return api.get("getSubmittedListing", "/api/v1/portal/admin/listing/review");
@@ -151,17 +151,17 @@ var admin = {
151
151
  updatePlan: (params, payload) => {
152
152
  return api.post("updatePlan", `/api/v1/portal/admin/plans/update/${params.plan_id}`, payload);
153
153
  },
154
- assignPlanToUser: (params, payload) => {
155
- return api.post("assignPlanToUser", `/api/v1/portal/admin/plans/assign-to-user/${params.user_id}`, payload);
154
+ assignPlanToUser: (payload) => {
155
+ return api.post("assignPlanToUser", "/api/v1/portal/admin/plans/assign-to-user", payload);
156
156
  },
157
157
  deactivateUserPlan: (params, payload) => {
158
- return api.post("deactivateUserPlan", `/api/v1/portal/admin/plans/deactivate-from-user/${params.user_id}`, payload);
158
+ return api.post("deactivateUserPlan", `/api/v1/portal/admin/plans/deactivate-from-user/${params.user_uid}`, payload);
159
159
  },
160
160
  attachPlanVerificationRequirements: (params, payload) => {
161
- return api.post("attachPlanVerificationRequirements", `/api/v1/portal/admin/plans/${params.plan_id}/requirements`, payload);
161
+ return api.post("attachPlanVerificationRequirements", `/api/v1/portal/admin/plans/${params.plan_key}/requirements`, payload);
162
162
  },
163
163
  attachPlanCapabilities: (params, payload) => {
164
- return api.post("attachPlanCapabilities", `/api/v1/portal/admin/plans/${params.plan_id}/capabilities`, payload);
164
+ return api.post("attachPlanCapabilities", `/api/v1/portal/admin/plans/${params.plan_key}/capabilities`, payload);
165
165
  },
166
166
  getPlanEntitlements: () => {
167
167
  return api.get("getPlanEntitlements", "/api/v1/portal/admin/plans/entitlements/fetch-all");
@@ -173,7 +173,7 @@ var admin = {
173
173
  return api.post("updatePlanEntitlement", `/api/v1/portal/admin/plans/entitlements/update/${params.entitlement_key}`, payload);
174
174
  },
175
175
  syncPlanEntitlements: (params, payload) => {
176
- return api.post("syncPlanEntitlements", `/api/v1/portal/admin/plans/entitlements/sync/${params.plan_id}`, payload);
176
+ return api.post("syncPlanEntitlements", `/api/v1/portal/admin/plans/entitlements/sync/${params.plan_key}`, payload);
177
177
  },
178
178
  getCapabilities: () => {
179
179
  return api.get("getCapabilities", "/api/v1/portal/admin/capability/fetch-all");
@@ -182,7 +182,7 @@ var admin = {
182
182
  return api.post("createCapability", "/api/v1/portal/admin/capability/create", payload);
183
183
  },
184
184
  updateCapability: (params, payload) => {
185
- return api.post("updateCapability", `/api/v1/portal/admin/capability/update/${params.capability_id}`, payload);
185
+ return api.post("updateCapability", `/api/v1/portal/admin/capability/update/${params.capability_key}`, payload);
186
186
  },
187
187
  getComplianceDefinitions: () => {
188
188
  return api.get("getComplianceDefinitions", "/api/v1/portal/admin/compliances/fetch-all");
@@ -401,6 +401,9 @@ var landlord = {
401
401
  createListingDraft: (payload) => {
402
402
  return api.post("createListingDraft", "/api/v1/portal/landlord/listing", payload);
403
403
  },
404
+ updateDraftName: (params, payload) => {
405
+ return api.post("updateDraftName", `/api/v1/portal/landlord/listing/${params.listing_uid}/draft-name`, payload);
406
+ },
404
407
  getDraftListings: () => {
405
408
  return api.get("getDraftListings", "/api/v1/portal/landlord/listing/drafts");
406
409
  },
@@ -413,15 +416,24 @@ var landlord = {
413
416
  getOwnerListing: (params) => {
414
417
  return api.get("getOwnerListing", `/api/v1/portal/landlord/listing/fetch-one/${params.listing_uid}`);
415
418
  },
419
+ saveListingDetails: (params, payload) => {
420
+ return api.post("saveListingDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/listing-details`, payload);
421
+ },
416
422
  savePropertyBasics: (params, payload) => {
417
423
  return api.post("savePropertyBasics", `/api/v1/portal/landlord/listing/${params.listing_uid}/property-basics`, payload);
418
424
  },
419
- saveTenancyDetails: (params, payload) => {
420
- return api.post("saveTenancyDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/tenancy-details`, payload);
425
+ savePricing: (params, payload) => {
426
+ return api.post("savePricing", `/api/v1/portal/landlord/listing/${params.listing_uid}/listing-pricing`, payload);
427
+ },
428
+ saveRentalDetails: (params, payload) => {
429
+ return api.post("saveRentalDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/listing-rental`, payload);
421
430
  },
422
431
  saveShortLetDetails: (params, payload) => {
423
432
  return api.post("saveShortLetDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/shortlet-details`, payload);
424
433
  },
434
+ saveUsedItemDetails: (params, payload) => {
435
+ return api.post("saveUsedItemDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/item-details`, payload);
436
+ },
425
437
  saveListingFeatures: (params, payload) => {
426
438
  return api.post("saveListingFeatures", `/api/v1/portal/landlord/listing/${params.listing_uid}/features`, payload);
427
439
  },
@@ -431,9 +443,6 @@ var landlord = {
431
443
  saveViewingAvailability: (params, payload) => {
432
444
  return api.post("saveViewingAvailability", `/api/v1/portal/landlord/listing/${params.listing_uid}/viewing-availability`, payload);
433
445
  },
434
- saveUsedItemDetails: (params, payload) => {
435
- return api.post("saveUsedItemDetails", `/api/v1/portal/landlord/listing/${params.listing_uid}/item-details`, payload);
436
- },
437
446
  uploadListingMedia: (params) => {
438
447
  return api.post("uploadListingMedia", `/api/v1/portal/landlord/listing/${params.listing_uid}/media`);
439
448
  },
@@ -547,6 +556,9 @@ var notification = {
547
556
 
548
557
  // src/generated/plan.ts
549
558
  var plan = {
559
+ user: () => {
560
+ return api.get("userPlan", "/api/v1/public/plan/current");
561
+ },
550
562
  myCapabilities: () => {
551
563
  return api.get("myCapabilitiesPlan", "/api/v1/public/plan/me/capabilities");
552
564
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.4",
3
+ "version": "1.2.7",
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.1",
20
- "@justins-home/types": "1.1.1"
19
+ "@justins-home/http-client": "1.1.2",
20
+ "@justins-home/types": "1.1.2"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"