@justins-home/api-services 1.2.37 → 1.2.39

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
@@ -987,44 +987,76 @@ declare const admin: {
987
987
  uid?: string;
988
988
  draft_name?: string | null;
989
989
  sku?: string;
990
+ published_at?: string | null;
991
+ published_since?: string | null;
990
992
  details?: {
991
993
  title?: string;
992
- description?: string | null;
994
+ description?: string;
993
995
  city?: string;
994
996
  address?: string;
995
- postcode?: string | null;
996
- longitude?: string | null;
997
- latitude?: string | null;
998
- country?: string | null;
997
+ postcode?: string;
998
+ longitude?: string;
999
+ latitude?: string;
1000
+ country?: string;
999
1001
  };
1000
1002
  listing_type?: string;
1001
1003
  vertical?: string;
1002
1004
  owner?: {
1003
- uid?: string | null;
1004
- name?: string | null;
1005
- email?: string | null;
1005
+ uid?: string;
1006
+ name?: string;
1007
+ email?: string;
1006
1008
  avatar?: string | null;
1007
1009
  };
1008
1010
  created_by?: {
1009
- uid?: string | null;
1010
- name?: string | null;
1011
+ uid?: string;
1012
+ name?: string;
1011
1013
  };
1012
- state?: string | null;
1014
+ state?: string;
1013
1015
  is_visible?: boolean;
1014
1016
  price?: {
1015
1017
  amount?: string;
1016
1018
  currency?: string;
1017
1019
  period?: string;
1018
1020
  };
1019
- summary?: unknown[];
1020
- workflow?: unknown[];
1021
+ summary?: {
1022
+ property_type?: string;
1023
+ bedrooms?: number;
1024
+ bathrooms?: number;
1025
+ size?: string | null;
1026
+ availability?: string | null;
1027
+ };
1028
+ workflow?: {
1029
+ current_step?: string;
1030
+ can_submit?: boolean;
1031
+ missing_requirements?: string[];
1032
+ next_step?: string;
1033
+ progress?: {
1034
+ completed?: number;
1035
+ total?: number;
1036
+ percentage?: number;
1037
+ };
1038
+ };
1021
1039
  media?: {
1022
- gallery?: unknown[];
1023
- cover?: string | null;
1040
+ gallery?: {
1041
+ uid?: string;
1042
+ media_type?: string;
1043
+ storage_path?: string;
1044
+ order_index?: number;
1045
+ is_cover?: boolean;
1046
+ }[];
1047
+ cover?: string;
1024
1048
  count?: number;
1025
1049
  };
1026
- viewing_slots?: unknown[];
1027
- tenant_preferences?: unknown[];
1050
+ viewing_slots?: {
1051
+ id?: number;
1052
+ day?: string;
1053
+ start_time?: string;
1054
+ end_time?: string;
1055
+ }[];
1056
+ tenant_preferences?: {
1057
+ key?: string;
1058
+ value?: string;
1059
+ }[];
1028
1060
  rental?: {
1029
1061
  deposit_amount?: string | null;
1030
1062
  fixed_term_length?: string | null;
@@ -1048,12 +1080,44 @@ declare const admin: {
1048
1080
  is_negotiable?: string | null;
1049
1081
  availability_status?: string | null;
1050
1082
  };
1051
- features?: unknown[];
1052
- active_tenancy?: string | null;
1053
- compliances?: unknown[];
1083
+ features?: {
1084
+ id?: number;
1085
+ name?: string;
1086
+ category?: string;
1087
+ }[];
1088
+ active_tenancy?: {
1089
+ uid?: string;
1090
+ rent_amount?: string;
1091
+ deposit_amount?: string;
1092
+ start_date?: string;
1093
+ end_date?: string;
1094
+ state?: string;
1095
+ is_periodic?: boolean;
1096
+ tenant?: {
1097
+ uid?: string;
1098
+ name?: string;
1099
+ email?: string;
1100
+ };
1101
+ };
1102
+ compliances?: {
1103
+ id?: number;
1104
+ compliance_key?: string;
1105
+ name?: string;
1106
+ description?: string;
1107
+ enforcement_level?: string;
1108
+ validity_type?: string;
1109
+ grace_period_days?: string | null;
1110
+ status?: string;
1111
+ requirements?: string[];
1112
+ }[];
1054
1113
  compliance_status?: {
1055
1114
  overall?: string;
1056
- breakdown?: unknown[];
1115
+ breakdown?: {
1116
+ compliance_key?: string;
1117
+ compliance_name?: string;
1118
+ state?: string;
1119
+ valid_until?: string | null;
1120
+ }[];
1057
1121
  };
1058
1122
  };
1059
1123
  }>;
@@ -1372,6 +1436,7 @@ declare const admin: {
1372
1436
  name?: string;
1373
1437
  description?: string;
1374
1438
  display_order?: number;
1439
+ applicable_verticals?: string[];
1375
1440
  is_active?: boolean;
1376
1441
  }[];
1377
1442
  }>;
@@ -1381,6 +1446,7 @@ declare const admin: {
1381
1446
  name?: string;
1382
1447
  description?: string;
1383
1448
  display_order?: number;
1449
+ applicable_verticals?: string[];
1384
1450
  is_active?: boolean;
1385
1451
  };
1386
1452
  }>;
@@ -1390,6 +1456,7 @@ declare const admin: {
1390
1456
  name?: string;
1391
1457
  description?: string;
1392
1458
  display_order?: number;
1459
+ applicable_verticals?: string[];
1393
1460
  is_active?: boolean;
1394
1461
  };
1395
1462
  }>;
@@ -1399,6 +1466,7 @@ declare const admin: {
1399
1466
  name?: string;
1400
1467
  description?: string;
1401
1468
  display_order?: number;
1469
+ applicable_verticals?: string[];
1402
1470
  is_active?: boolean;
1403
1471
  };
1404
1472
  }>;
@@ -3117,6 +3185,8 @@ declare const listings: {
3117
3185
  uid?: string;
3118
3186
  draft_name?: string | null;
3119
3187
  sku?: string;
3188
+ published_at?: string;
3189
+ published_since?: string;
3120
3190
  details?: {
3121
3191
  title?: string;
3122
3192
  description?: string;
@@ -3156,7 +3226,7 @@ declare const listings: {
3156
3226
  workflow?: {
3157
3227
  current_step?: string;
3158
3228
  can_submit?: boolean;
3159
- missing_requirements?: unknown[];
3229
+ missing_requirements?: string[];
3160
3230
  next_step?: string;
3161
3231
  progress?: {
3162
3232
  completed?: number;
@@ -3175,8 +3245,16 @@ declare const listings: {
3175
3245
  cover?: string;
3176
3246
  count?: number;
3177
3247
  };
3178
- viewing_slots?: unknown[];
3179
- tenant_preferences?: unknown[];
3248
+ viewing_slots?: {
3249
+ id?: number;
3250
+ day?: string;
3251
+ start_time?: string;
3252
+ end_time?: string;
3253
+ }[];
3254
+ tenant_preferences?: {
3255
+ key?: string;
3256
+ value?: string;
3257
+ }[];
3180
3258
  rental?: {
3181
3259
  deposit_amount?: string | null;
3182
3260
  fixed_term_length?: string | null;
@@ -3205,7 +3283,20 @@ declare const listings: {
3205
3283
  name?: string;
3206
3284
  category?: string;
3207
3285
  }[];
3208
- active_tenancy?: string | null;
3286
+ active_tenancy?: {
3287
+ uid?: string;
3288
+ rent_amount?: string;
3289
+ deposit_amount?: string;
3290
+ start_date?: string;
3291
+ end_date?: string;
3292
+ state?: string;
3293
+ is_periodic?: boolean;
3294
+ tenant?: {
3295
+ uid?: string;
3296
+ name?: string;
3297
+ email?: string;
3298
+ };
3299
+ };
3209
3300
  compliances?: {
3210
3301
  id?: number;
3211
3302
  compliance_key?: string;
package/dist/index.d.ts CHANGED
@@ -987,44 +987,76 @@ declare const admin: {
987
987
  uid?: string;
988
988
  draft_name?: string | null;
989
989
  sku?: string;
990
+ published_at?: string | null;
991
+ published_since?: string | null;
990
992
  details?: {
991
993
  title?: string;
992
- description?: string | null;
994
+ description?: string;
993
995
  city?: string;
994
996
  address?: string;
995
- postcode?: string | null;
996
- longitude?: string | null;
997
- latitude?: string | null;
998
- country?: string | null;
997
+ postcode?: string;
998
+ longitude?: string;
999
+ latitude?: string;
1000
+ country?: string;
999
1001
  };
1000
1002
  listing_type?: string;
1001
1003
  vertical?: string;
1002
1004
  owner?: {
1003
- uid?: string | null;
1004
- name?: string | null;
1005
- email?: string | null;
1005
+ uid?: string;
1006
+ name?: string;
1007
+ email?: string;
1006
1008
  avatar?: string | null;
1007
1009
  };
1008
1010
  created_by?: {
1009
- uid?: string | null;
1010
- name?: string | null;
1011
+ uid?: string;
1012
+ name?: string;
1011
1013
  };
1012
- state?: string | null;
1014
+ state?: string;
1013
1015
  is_visible?: boolean;
1014
1016
  price?: {
1015
1017
  amount?: string;
1016
1018
  currency?: string;
1017
1019
  period?: string;
1018
1020
  };
1019
- summary?: unknown[];
1020
- workflow?: unknown[];
1021
+ summary?: {
1022
+ property_type?: string;
1023
+ bedrooms?: number;
1024
+ bathrooms?: number;
1025
+ size?: string | null;
1026
+ availability?: string | null;
1027
+ };
1028
+ workflow?: {
1029
+ current_step?: string;
1030
+ can_submit?: boolean;
1031
+ missing_requirements?: string[];
1032
+ next_step?: string;
1033
+ progress?: {
1034
+ completed?: number;
1035
+ total?: number;
1036
+ percentage?: number;
1037
+ };
1038
+ };
1021
1039
  media?: {
1022
- gallery?: unknown[];
1023
- cover?: string | null;
1040
+ gallery?: {
1041
+ uid?: string;
1042
+ media_type?: string;
1043
+ storage_path?: string;
1044
+ order_index?: number;
1045
+ is_cover?: boolean;
1046
+ }[];
1047
+ cover?: string;
1024
1048
  count?: number;
1025
1049
  };
1026
- viewing_slots?: unknown[];
1027
- tenant_preferences?: unknown[];
1050
+ viewing_slots?: {
1051
+ id?: number;
1052
+ day?: string;
1053
+ start_time?: string;
1054
+ end_time?: string;
1055
+ }[];
1056
+ tenant_preferences?: {
1057
+ key?: string;
1058
+ value?: string;
1059
+ }[];
1028
1060
  rental?: {
1029
1061
  deposit_amount?: string | null;
1030
1062
  fixed_term_length?: string | null;
@@ -1048,12 +1080,44 @@ declare const admin: {
1048
1080
  is_negotiable?: string | null;
1049
1081
  availability_status?: string | null;
1050
1082
  };
1051
- features?: unknown[];
1052
- active_tenancy?: string | null;
1053
- compliances?: unknown[];
1083
+ features?: {
1084
+ id?: number;
1085
+ name?: string;
1086
+ category?: string;
1087
+ }[];
1088
+ active_tenancy?: {
1089
+ uid?: string;
1090
+ rent_amount?: string;
1091
+ deposit_amount?: string;
1092
+ start_date?: string;
1093
+ end_date?: string;
1094
+ state?: string;
1095
+ is_periodic?: boolean;
1096
+ tenant?: {
1097
+ uid?: string;
1098
+ name?: string;
1099
+ email?: string;
1100
+ };
1101
+ };
1102
+ compliances?: {
1103
+ id?: number;
1104
+ compliance_key?: string;
1105
+ name?: string;
1106
+ description?: string;
1107
+ enforcement_level?: string;
1108
+ validity_type?: string;
1109
+ grace_period_days?: string | null;
1110
+ status?: string;
1111
+ requirements?: string[];
1112
+ }[];
1054
1113
  compliance_status?: {
1055
1114
  overall?: string;
1056
- breakdown?: unknown[];
1115
+ breakdown?: {
1116
+ compliance_key?: string;
1117
+ compliance_name?: string;
1118
+ state?: string;
1119
+ valid_until?: string | null;
1120
+ }[];
1057
1121
  };
1058
1122
  };
1059
1123
  }>;
@@ -1372,6 +1436,7 @@ declare const admin: {
1372
1436
  name?: string;
1373
1437
  description?: string;
1374
1438
  display_order?: number;
1439
+ applicable_verticals?: string[];
1375
1440
  is_active?: boolean;
1376
1441
  }[];
1377
1442
  }>;
@@ -1381,6 +1446,7 @@ declare const admin: {
1381
1446
  name?: string;
1382
1447
  description?: string;
1383
1448
  display_order?: number;
1449
+ applicable_verticals?: string[];
1384
1450
  is_active?: boolean;
1385
1451
  };
1386
1452
  }>;
@@ -1390,6 +1456,7 @@ declare const admin: {
1390
1456
  name?: string;
1391
1457
  description?: string;
1392
1458
  display_order?: number;
1459
+ applicable_verticals?: string[];
1393
1460
  is_active?: boolean;
1394
1461
  };
1395
1462
  }>;
@@ -1399,6 +1466,7 @@ declare const admin: {
1399
1466
  name?: string;
1400
1467
  description?: string;
1401
1468
  display_order?: number;
1469
+ applicable_verticals?: string[];
1402
1470
  is_active?: boolean;
1403
1471
  };
1404
1472
  }>;
@@ -3117,6 +3185,8 @@ declare const listings: {
3117
3185
  uid?: string;
3118
3186
  draft_name?: string | null;
3119
3187
  sku?: string;
3188
+ published_at?: string;
3189
+ published_since?: string;
3120
3190
  details?: {
3121
3191
  title?: string;
3122
3192
  description?: string;
@@ -3156,7 +3226,7 @@ declare const listings: {
3156
3226
  workflow?: {
3157
3227
  current_step?: string;
3158
3228
  can_submit?: boolean;
3159
- missing_requirements?: unknown[];
3229
+ missing_requirements?: string[];
3160
3230
  next_step?: string;
3161
3231
  progress?: {
3162
3232
  completed?: number;
@@ -3175,8 +3245,16 @@ declare const listings: {
3175
3245
  cover?: string;
3176
3246
  count?: number;
3177
3247
  };
3178
- viewing_slots?: unknown[];
3179
- tenant_preferences?: unknown[];
3248
+ viewing_slots?: {
3249
+ id?: number;
3250
+ day?: string;
3251
+ start_time?: string;
3252
+ end_time?: string;
3253
+ }[];
3254
+ tenant_preferences?: {
3255
+ key?: string;
3256
+ value?: string;
3257
+ }[];
3180
3258
  rental?: {
3181
3259
  deposit_amount?: string | null;
3182
3260
  fixed_term_length?: string | null;
@@ -3205,7 +3283,20 @@ declare const listings: {
3205
3283
  name?: string;
3206
3284
  category?: string;
3207
3285
  }[];
3208
- active_tenancy?: string | null;
3286
+ active_tenancy?: {
3287
+ uid?: string;
3288
+ rent_amount?: string;
3289
+ deposit_amount?: string;
3290
+ start_date?: string;
3291
+ end_date?: string;
3292
+ state?: string;
3293
+ is_periodic?: boolean;
3294
+ tenant?: {
3295
+ uid?: string;
3296
+ name?: string;
3297
+ email?: string;
3298
+ };
3299
+ };
3209
3300
  compliances?: {
3210
3301
  id?: number;
3211
3302
  compliance_key?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justins-home/api-services",
3
- "version": "1.2.37",
3
+ "version": "1.2.39",
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.31",
20
- "@justins-home/types": "1.1.30"
19
+ "@justins-home/http-client": "1.1.33",
20
+ "@justins-home/types": "1.1.32"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"