@justins-home/api-services 1.2.36 → 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
  }>;
@@ -3114,8 +3176,9 @@ declare const listings: {
3114
3176
  message?: string;
3115
3177
  event?: string | null;
3116
3178
  data?: {
3117
- sku?: string;
3118
3179
  uid?: string;
3180
+ draft_name?: string | null;
3181
+ sku?: string;
3119
3182
  details?: {
3120
3183
  title?: string;
3121
3184
  description?: string;
@@ -3128,65 +3191,35 @@ declare const listings: {
3128
3191
  };
3129
3192
  listing_type?: string;
3130
3193
  vertical?: string;
3131
- price?: {
3132
- amount?: string;
3133
- currency?: string;
3134
- period?: string;
3135
- };
3136
- viewing_slots?: {
3137
- id?: number;
3138
- day?: string;
3139
- start_time?: string;
3140
- end_time?: string;
3141
- }[];
3142
3194
  owner?: {
3143
3195
  uid?: string;
3144
3196
  name?: string;
3145
- phone?: string;
3146
3197
  email?: string;
3147
- avatar?: string;
3148
- plan?: {
3149
- key?: string;
3150
- name?: string;
3151
- user_type?: string;
3152
- is_active?: boolean;
3153
- capabilities?: unknown[];
3154
- entitlements?: unknown[];
3155
- verification_requirements?: unknown[];
3156
- };
3198
+ avatar?: string | null;
3157
3199
  };
3158
3200
  created_by?: {
3159
3201
  uid?: string;
3160
3202
  name?: string;
3161
- phone?: string;
3162
- email?: string;
3163
- avatar?: string;
3164
- plan?: {
3165
- key?: string;
3166
- name?: string;
3167
- user_type?: string;
3168
- is_active?: boolean;
3169
- capabilities?: unknown[];
3170
- entitlements?: unknown[];
3171
- verification_requirements?: unknown[];
3172
- };
3173
3203
  };
3174
3204
  state?: string;
3175
- published_at?: string;
3176
- published_since?: string;
3177
3205
  is_visible?: boolean;
3206
+ price?: {
3207
+ amount?: string;
3208
+ currency?: string;
3209
+ period?: string;
3210
+ };
3178
3211
  summary?: {
3179
3212
  property_type?: string;
3180
3213
  bedrooms?: number;
3181
- bathrooms?: string | null;
3214
+ bathrooms?: number;
3182
3215
  size?: string | null;
3183
3216
  availability?: string | null;
3184
3217
  };
3185
3218
  workflow?: {
3186
3219
  current_step?: string;
3187
3220
  can_submit?: boolean;
3188
- missing_requirements?: unknown[];
3189
- next_step?: string | null;
3221
+ missing_requirements?: string[];
3222
+ next_step?: string;
3190
3223
  progress?: {
3191
3224
  completed?: number;
3192
3225
  total?: number;
@@ -3204,19 +3237,58 @@ declare const listings: {
3204
3237
  cover?: string;
3205
3238
  count?: number;
3206
3239
  };
3240
+ viewing_slots?: {
3241
+ id?: number;
3242
+ day?: string;
3243
+ start_time?: string;
3244
+ end_time?: string;
3245
+ }[];
3207
3246
  tenant_preferences?: {
3208
3247
  key?: string;
3209
3248
  value?: string;
3210
3249
  }[];
3250
+ rental?: {
3251
+ deposit_amount?: string | null;
3252
+ fixed_term_length?: string | null;
3253
+ availability_date?: string | null;
3254
+ };
3255
+ short_let?: {
3256
+ nightly_price?: string;
3257
+ minimum_stay_nights?: number;
3258
+ maximum_stay_nights?: number;
3259
+ cleaning_fee?: string;
3260
+ check_in_time?: string;
3261
+ check_out_time?: string;
3262
+ };
3263
+ item?: {
3264
+ item_name?: string | null;
3265
+ item_category?: string | null;
3266
+ condition?: string | null;
3267
+ brand?: string | null;
3268
+ dimensions?: string | null;
3269
+ quantity_available?: string | null;
3270
+ is_negotiable?: string | null;
3271
+ availability_status?: string | null;
3272
+ };
3211
3273
  features?: {
3212
3274
  id?: number;
3213
- category_id?: number;
3214
3275
  name?: string;
3215
- description?: string;
3216
- icon?: string;
3217
- is_active?: boolean;
3218
- is_filterable?: boolean;
3276
+ category?: string;
3219
3277
  }[];
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
+ };
3220
3292
  compliances?: {
3221
3293
  id?: number;
3222
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
  }>;
@@ -3114,8 +3176,9 @@ declare const listings: {
3114
3176
  message?: string;
3115
3177
  event?: string | null;
3116
3178
  data?: {
3117
- sku?: string;
3118
3179
  uid?: string;
3180
+ draft_name?: string | null;
3181
+ sku?: string;
3119
3182
  details?: {
3120
3183
  title?: string;
3121
3184
  description?: string;
@@ -3128,65 +3191,35 @@ declare const listings: {
3128
3191
  };
3129
3192
  listing_type?: string;
3130
3193
  vertical?: string;
3131
- price?: {
3132
- amount?: string;
3133
- currency?: string;
3134
- period?: string;
3135
- };
3136
- viewing_slots?: {
3137
- id?: number;
3138
- day?: string;
3139
- start_time?: string;
3140
- end_time?: string;
3141
- }[];
3142
3194
  owner?: {
3143
3195
  uid?: string;
3144
3196
  name?: string;
3145
- phone?: string;
3146
3197
  email?: string;
3147
- avatar?: string;
3148
- plan?: {
3149
- key?: string;
3150
- name?: string;
3151
- user_type?: string;
3152
- is_active?: boolean;
3153
- capabilities?: unknown[];
3154
- entitlements?: unknown[];
3155
- verification_requirements?: unknown[];
3156
- };
3198
+ avatar?: string | null;
3157
3199
  };
3158
3200
  created_by?: {
3159
3201
  uid?: string;
3160
3202
  name?: string;
3161
- phone?: string;
3162
- email?: string;
3163
- avatar?: string;
3164
- plan?: {
3165
- key?: string;
3166
- name?: string;
3167
- user_type?: string;
3168
- is_active?: boolean;
3169
- capabilities?: unknown[];
3170
- entitlements?: unknown[];
3171
- verification_requirements?: unknown[];
3172
- };
3173
3203
  };
3174
3204
  state?: string;
3175
- published_at?: string;
3176
- published_since?: string;
3177
3205
  is_visible?: boolean;
3206
+ price?: {
3207
+ amount?: string;
3208
+ currency?: string;
3209
+ period?: string;
3210
+ };
3178
3211
  summary?: {
3179
3212
  property_type?: string;
3180
3213
  bedrooms?: number;
3181
- bathrooms?: string | null;
3214
+ bathrooms?: number;
3182
3215
  size?: string | null;
3183
3216
  availability?: string | null;
3184
3217
  };
3185
3218
  workflow?: {
3186
3219
  current_step?: string;
3187
3220
  can_submit?: boolean;
3188
- missing_requirements?: unknown[];
3189
- next_step?: string | null;
3221
+ missing_requirements?: string[];
3222
+ next_step?: string;
3190
3223
  progress?: {
3191
3224
  completed?: number;
3192
3225
  total?: number;
@@ -3204,19 +3237,58 @@ declare const listings: {
3204
3237
  cover?: string;
3205
3238
  count?: number;
3206
3239
  };
3240
+ viewing_slots?: {
3241
+ id?: number;
3242
+ day?: string;
3243
+ start_time?: string;
3244
+ end_time?: string;
3245
+ }[];
3207
3246
  tenant_preferences?: {
3208
3247
  key?: string;
3209
3248
  value?: string;
3210
3249
  }[];
3250
+ rental?: {
3251
+ deposit_amount?: string | null;
3252
+ fixed_term_length?: string | null;
3253
+ availability_date?: string | null;
3254
+ };
3255
+ short_let?: {
3256
+ nightly_price?: string;
3257
+ minimum_stay_nights?: number;
3258
+ maximum_stay_nights?: number;
3259
+ cleaning_fee?: string;
3260
+ check_in_time?: string;
3261
+ check_out_time?: string;
3262
+ };
3263
+ item?: {
3264
+ item_name?: string | null;
3265
+ item_category?: string | null;
3266
+ condition?: string | null;
3267
+ brand?: string | null;
3268
+ dimensions?: string | null;
3269
+ quantity_available?: string | null;
3270
+ is_negotiable?: string | null;
3271
+ availability_status?: string | null;
3272
+ };
3211
3273
  features?: {
3212
3274
  id?: number;
3213
- category_id?: number;
3214
3275
  name?: string;
3215
- description?: string;
3216
- icon?: string;
3217
- is_active?: boolean;
3218
- is_filterable?: boolean;
3276
+ category?: string;
3219
3277
  }[];
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
+ };
3220
3292
  compliances?: {
3221
3293
  id?: number;
3222
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.36",
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.30",
20
- "@justins-home/types": "1.1.29"
19
+ "@justins-home/http-client": "1.1.32",
20
+ "@justins-home/types": "1.1.31"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"