@justins-home/api-services 1.2.37 → 1.2.38

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
@@ -989,42 +989,72 @@ declare const admin: {
989
989
  sku?: string;
990
990
  details?: {
991
991
  title?: string;
992
- description?: string | null;
992
+ description?: string;
993
993
  city?: string;
994
994
  address?: string;
995
- postcode?: string | null;
996
- longitude?: string | null;
997
- latitude?: string | null;
998
- country?: string | null;
995
+ postcode?: string;
996
+ longitude?: string;
997
+ latitude?: string;
998
+ country?: string;
999
999
  };
1000
1000
  listing_type?: string;
1001
1001
  vertical?: string;
1002
1002
  owner?: {
1003
- uid?: string | null;
1004
- name?: string | null;
1005
- email?: string | null;
1003
+ uid?: string;
1004
+ name?: string;
1005
+ email?: string;
1006
1006
  avatar?: string | null;
1007
1007
  };
1008
1008
  created_by?: {
1009
- uid?: string | null;
1010
- name?: string | null;
1009
+ uid?: string;
1010
+ name?: string;
1011
1011
  };
1012
- state?: string | null;
1012
+ state?: string;
1013
1013
  is_visible?: boolean;
1014
1014
  price?: {
1015
1015
  amount?: string;
1016
1016
  currency?: string;
1017
1017
  period?: string;
1018
1018
  };
1019
- summary?: unknown[];
1020
- workflow?: unknown[];
1019
+ summary?: {
1020
+ property_type?: string;
1021
+ bedrooms?: number;
1022
+ bathrooms?: number;
1023
+ size?: string | null;
1024
+ availability?: string | null;
1025
+ };
1026
+ workflow?: {
1027
+ current_step?: string;
1028
+ can_submit?: boolean;
1029
+ missing_requirements?: string[];
1030
+ next_step?: string;
1031
+ progress?: {
1032
+ completed?: number;
1033
+ total?: number;
1034
+ percentage?: number;
1035
+ };
1036
+ };
1021
1037
  media?: {
1022
- gallery?: unknown[];
1023
- cover?: string | null;
1038
+ gallery?: {
1039
+ uid?: string;
1040
+ media_type?: string;
1041
+ storage_path?: string;
1042
+ order_index?: number;
1043
+ is_cover?: boolean;
1044
+ }[];
1045
+ cover?: string;
1024
1046
  count?: number;
1025
1047
  };
1026
- viewing_slots?: unknown[];
1027
- tenant_preferences?: unknown[];
1048
+ viewing_slots?: {
1049
+ id?: number;
1050
+ day?: string;
1051
+ start_time?: string;
1052
+ end_time?: string;
1053
+ }[];
1054
+ tenant_preferences?: {
1055
+ key?: string;
1056
+ value?: string;
1057
+ }[];
1028
1058
  rental?: {
1029
1059
  deposit_amount?: string | null;
1030
1060
  fixed_term_length?: string | null;
@@ -1048,12 +1078,44 @@ declare const admin: {
1048
1078
  is_negotiable?: string | null;
1049
1079
  availability_status?: string | null;
1050
1080
  };
1051
- features?: unknown[];
1052
- active_tenancy?: string | null;
1053
- compliances?: unknown[];
1081
+ features?: {
1082
+ id?: number;
1083
+ name?: string;
1084
+ category?: string;
1085
+ }[];
1086
+ active_tenancy?: {
1087
+ uid?: string;
1088
+ rent_amount?: string;
1089
+ deposit_amount?: string;
1090
+ start_date?: string;
1091
+ end_date?: string;
1092
+ state?: string;
1093
+ is_periodic?: boolean;
1094
+ tenant?: {
1095
+ uid?: string;
1096
+ name?: string;
1097
+ email?: string;
1098
+ };
1099
+ };
1100
+ compliances?: {
1101
+ id?: number;
1102
+ compliance_key?: string;
1103
+ name?: string;
1104
+ description?: string;
1105
+ enforcement_level?: string;
1106
+ validity_type?: string;
1107
+ grace_period_days?: string | null;
1108
+ status?: string;
1109
+ requirements?: string[];
1110
+ }[];
1054
1111
  compliance_status?: {
1055
1112
  overall?: string;
1056
- breakdown?: unknown[];
1113
+ breakdown?: {
1114
+ compliance_key?: string;
1115
+ compliance_name?: string;
1116
+ state?: string;
1117
+ valid_until?: string | null;
1118
+ }[];
1057
1119
  };
1058
1120
  };
1059
1121
  }>;
@@ -3156,7 +3218,7 @@ declare const listings: {
3156
3218
  workflow?: {
3157
3219
  current_step?: string;
3158
3220
  can_submit?: boolean;
3159
- missing_requirements?: unknown[];
3221
+ missing_requirements?: string[];
3160
3222
  next_step?: string;
3161
3223
  progress?: {
3162
3224
  completed?: number;
@@ -3175,8 +3237,16 @@ declare const listings: {
3175
3237
  cover?: string;
3176
3238
  count?: number;
3177
3239
  };
3178
- viewing_slots?: unknown[];
3179
- tenant_preferences?: unknown[];
3240
+ viewing_slots?: {
3241
+ id?: number;
3242
+ day?: string;
3243
+ start_time?: string;
3244
+ end_time?: string;
3245
+ }[];
3246
+ tenant_preferences?: {
3247
+ key?: string;
3248
+ value?: string;
3249
+ }[];
3180
3250
  rental?: {
3181
3251
  deposit_amount?: string | null;
3182
3252
  fixed_term_length?: string | null;
@@ -3205,7 +3275,20 @@ declare const listings: {
3205
3275
  name?: string;
3206
3276
  category?: string;
3207
3277
  }[];
3208
- active_tenancy?: string | null;
3278
+ active_tenancy?: {
3279
+ uid?: string;
3280
+ rent_amount?: string;
3281
+ deposit_amount?: string;
3282
+ start_date?: string;
3283
+ end_date?: string;
3284
+ state?: string;
3285
+ is_periodic?: boolean;
3286
+ tenant?: {
3287
+ uid?: string;
3288
+ name?: string;
3289
+ email?: string;
3290
+ };
3291
+ };
3209
3292
  compliances?: {
3210
3293
  id?: number;
3211
3294
  compliance_key?: string;
package/dist/index.d.ts CHANGED
@@ -989,42 +989,72 @@ declare const admin: {
989
989
  sku?: string;
990
990
  details?: {
991
991
  title?: string;
992
- description?: string | null;
992
+ description?: string;
993
993
  city?: string;
994
994
  address?: string;
995
- postcode?: string | null;
996
- longitude?: string | null;
997
- latitude?: string | null;
998
- country?: string | null;
995
+ postcode?: string;
996
+ longitude?: string;
997
+ latitude?: string;
998
+ country?: string;
999
999
  };
1000
1000
  listing_type?: string;
1001
1001
  vertical?: string;
1002
1002
  owner?: {
1003
- uid?: string | null;
1004
- name?: string | null;
1005
- email?: string | null;
1003
+ uid?: string;
1004
+ name?: string;
1005
+ email?: string;
1006
1006
  avatar?: string | null;
1007
1007
  };
1008
1008
  created_by?: {
1009
- uid?: string | null;
1010
- name?: string | null;
1009
+ uid?: string;
1010
+ name?: string;
1011
1011
  };
1012
- state?: string | null;
1012
+ state?: string;
1013
1013
  is_visible?: boolean;
1014
1014
  price?: {
1015
1015
  amount?: string;
1016
1016
  currency?: string;
1017
1017
  period?: string;
1018
1018
  };
1019
- summary?: unknown[];
1020
- workflow?: unknown[];
1019
+ summary?: {
1020
+ property_type?: string;
1021
+ bedrooms?: number;
1022
+ bathrooms?: number;
1023
+ size?: string | null;
1024
+ availability?: string | null;
1025
+ };
1026
+ workflow?: {
1027
+ current_step?: string;
1028
+ can_submit?: boolean;
1029
+ missing_requirements?: string[];
1030
+ next_step?: string;
1031
+ progress?: {
1032
+ completed?: number;
1033
+ total?: number;
1034
+ percentage?: number;
1035
+ };
1036
+ };
1021
1037
  media?: {
1022
- gallery?: unknown[];
1023
- cover?: string | null;
1038
+ gallery?: {
1039
+ uid?: string;
1040
+ media_type?: string;
1041
+ storage_path?: string;
1042
+ order_index?: number;
1043
+ is_cover?: boolean;
1044
+ }[];
1045
+ cover?: string;
1024
1046
  count?: number;
1025
1047
  };
1026
- viewing_slots?: unknown[];
1027
- tenant_preferences?: unknown[];
1048
+ viewing_slots?: {
1049
+ id?: number;
1050
+ day?: string;
1051
+ start_time?: string;
1052
+ end_time?: string;
1053
+ }[];
1054
+ tenant_preferences?: {
1055
+ key?: string;
1056
+ value?: string;
1057
+ }[];
1028
1058
  rental?: {
1029
1059
  deposit_amount?: string | null;
1030
1060
  fixed_term_length?: string | null;
@@ -1048,12 +1078,44 @@ declare const admin: {
1048
1078
  is_negotiable?: string | null;
1049
1079
  availability_status?: string | null;
1050
1080
  };
1051
- features?: unknown[];
1052
- active_tenancy?: string | null;
1053
- compliances?: unknown[];
1081
+ features?: {
1082
+ id?: number;
1083
+ name?: string;
1084
+ category?: string;
1085
+ }[];
1086
+ active_tenancy?: {
1087
+ uid?: string;
1088
+ rent_amount?: string;
1089
+ deposit_amount?: string;
1090
+ start_date?: string;
1091
+ end_date?: string;
1092
+ state?: string;
1093
+ is_periodic?: boolean;
1094
+ tenant?: {
1095
+ uid?: string;
1096
+ name?: string;
1097
+ email?: string;
1098
+ };
1099
+ };
1100
+ compliances?: {
1101
+ id?: number;
1102
+ compliance_key?: string;
1103
+ name?: string;
1104
+ description?: string;
1105
+ enforcement_level?: string;
1106
+ validity_type?: string;
1107
+ grace_period_days?: string | null;
1108
+ status?: string;
1109
+ requirements?: string[];
1110
+ }[];
1054
1111
  compliance_status?: {
1055
1112
  overall?: string;
1056
- breakdown?: unknown[];
1113
+ breakdown?: {
1114
+ compliance_key?: string;
1115
+ compliance_name?: string;
1116
+ state?: string;
1117
+ valid_until?: string | null;
1118
+ }[];
1057
1119
  };
1058
1120
  };
1059
1121
  }>;
@@ -3156,7 +3218,7 @@ declare const listings: {
3156
3218
  workflow?: {
3157
3219
  current_step?: string;
3158
3220
  can_submit?: boolean;
3159
- missing_requirements?: unknown[];
3221
+ missing_requirements?: string[];
3160
3222
  next_step?: string;
3161
3223
  progress?: {
3162
3224
  completed?: number;
@@ -3175,8 +3237,16 @@ declare const listings: {
3175
3237
  cover?: string;
3176
3238
  count?: number;
3177
3239
  };
3178
- viewing_slots?: unknown[];
3179
- tenant_preferences?: unknown[];
3240
+ viewing_slots?: {
3241
+ id?: number;
3242
+ day?: string;
3243
+ start_time?: string;
3244
+ end_time?: string;
3245
+ }[];
3246
+ tenant_preferences?: {
3247
+ key?: string;
3248
+ value?: string;
3249
+ }[];
3180
3250
  rental?: {
3181
3251
  deposit_amount?: string | null;
3182
3252
  fixed_term_length?: string | null;
@@ -3205,7 +3275,20 @@ declare const listings: {
3205
3275
  name?: string;
3206
3276
  category?: string;
3207
3277
  }[];
3208
- active_tenancy?: string | null;
3278
+ active_tenancy?: {
3279
+ uid?: string;
3280
+ rent_amount?: string;
3281
+ deposit_amount?: string;
3282
+ start_date?: string;
3283
+ end_date?: string;
3284
+ state?: string;
3285
+ is_periodic?: boolean;
3286
+ tenant?: {
3287
+ uid?: string;
3288
+ name?: string;
3289
+ email?: string;
3290
+ };
3291
+ };
3209
3292
  compliances?: {
3210
3293
  id?: number;
3211
3294
  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.38",
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.32",
20
+ "@justins-home/types": "1.1.31"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"