react-native-steerpath-smart-map 1.14.1 → 1.15.1

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/CHANGELOG.md CHANGED
@@ -15,6 +15,16 @@ This package is built on top of Steerpath's Smart SDK, and most of releases are
15
15
  - [iOS](https://s3-eu-west-1.amazonaws.com/steerpath/ios/releases/smart-sdk-changelog/index.html)
16
16
  - [Web](https://s3-eu-west-1.amazonaws.com/steerpath-web-sdk/documentation/smart/latest/index.html)
17
17
 
18
+ # [1.15.1]
19
+
20
+ - Improve SmartMapObject typings
21
+
22
+ ## [1.15.0]
23
+ - Bump Android Smart SDK to android-smart-1.14.3
24
+ ## [1.14.2] - 2022-02-16
25
+
26
+ - Bump iOS Smart SDK version to 1.15.11
27
+
18
28
  ## [1.14.1] - 2022-02-01
19
29
 
20
30
  - Bump iOS Smart SDK to 1.15.10 (fixes an issue where search bottom sheet was cut off from the bottom)
@@ -59,7 +59,7 @@ repositories {
59
59
 
60
60
  dependencies {
61
61
  implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
62
- implementation "com.steerpath:smart:android-smart-1.12.1"
62
+ implementation "com.steerpath:smart:android-smart-1.14.2"
63
63
  implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
64
64
  implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
65
65
  }
@@ -59,7 +59,7 @@ repositories {
59
59
 
60
60
  dependencies {
61
61
  implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
62
- implementation "com.steerpath:smart:android-smart-1.14.2"
62
+ implementation "com.steerpath:smart:android-smart-1.14.3"
63
63
  implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
64
64
  implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
65
65
  }
@@ -109,6 +109,17 @@ export declare enum SmartMapUserTaskResponse {
109
109
  UNSUPPORTED = "unsupported",
110
110
  COMPLETED = "completed"
111
111
  }
112
+ interface UrlObject {
113
+ title: string;
114
+ url: string;
115
+ }
116
+ export declare type LinkProperty = UrlObject;
117
+ export declare type ImageProperty = UrlObject;
118
+ export declare type BookingIntegration = {
119
+ integrationType: string;
120
+ integrationRef: string;
121
+ };
122
+ export declare type OccupancyIntegrations = BookingIntegration;
112
123
  export interface SmartMapObject {
113
124
  latitude: number;
114
125
  longitude: number;
@@ -116,7 +127,53 @@ export interface SmartMapObject {
116
127
  localRef: string;
117
128
  buildingRef: string;
118
129
  title: string;
119
- properties: Record<string, unknown>;
130
+ properties: {
131
+ bookingIntegrations?: BookingIntegration[];
132
+ occupancyIntegrations?: OccupancyIntegrations[];
133
+ buildingRef: string;
134
+ calendarRef?: string;
135
+ capacity?: number;
136
+ cateringEmail?: string;
137
+ css_class: string;
138
+ description?: string;
139
+ 'description:fi?': string;
140
+ 'description:nb?': string;
141
+ 'description:sv?': string;
142
+ 'description:en?': string;
143
+ images?: ImageProperty[];
144
+ 'images:fi'?: ImageProperty[];
145
+ 'images:sv'?: ImageProperty[];
146
+ 'images:nb'?: ImageProperty[];
147
+ 'images:en'?: ImageProperty[];
148
+ integrationRef?: string;
149
+ layerIndex: number;
150
+ links?: LinkProperty[];
151
+ 'links:fi'?: LinkProperty[];
152
+ 'links:sv'?: LinkProperty[];
153
+ 'links:nb'?: LinkProperty[];
154
+ 'links:en'?: LinkProperty[];
155
+ localRef?: string;
156
+ occupancy?: string;
157
+ parentRef?: string;
158
+ resourceType?: string;
159
+ subType?: string;
160
+ amenities?: string[];
161
+ tags?: string[];
162
+ keywords?: string[];
163
+ 'keywords:fi'?: string[];
164
+ 'keywords:sv'?: string[];
165
+ 'keywords:nb'?: string[];
166
+ 'keywords:en'?: string[];
167
+ title: string;
168
+ 'title:fi'?: string;
169
+ 'title:sv'?: string;
170
+ 'title:nb'?: string;
171
+ 'title:en'?: string;
172
+ sp_maximum_advance_booking_hours_normal_user?: number;
173
+ sp_maximum_booking_hours_normal_user?: number;
174
+ sp_maximum_advance_booking_hours_power_user?: number;
175
+ sp_maximum_booking_hours_power_user?: number;
176
+ };
120
177
  source: SmartObjectSource;
121
178
  }
122
179
  export interface SmartViewWebProps {
@@ -193,3 +250,4 @@ export interface SmartMapUserTask {
193
250
  type: SmartMapUserTaskType;
194
251
  payload: SmartMapNavigationUserTask | SmartMapPOISelectionUserTask;
195
252
  }
253
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-steerpath-smart-map",
3
3
  "title": "React Native Steerpath Smart Map",
4
- "version": "1.14.1",
4
+ "version": "1.15.1",
5
5
  "description": "Steerpath SmartMapView for React Native",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
20
20
  s.requires_arc = true
21
21
 
22
22
  s.dependency "React"
23
- s.dependency 'SteerpathSmartSDK', '~> 1.15.10'
23
+ s.dependency 'SteerpathSmartSDK', '~> 1.15.11'
24
24
  # s.dependency "..."
25
25
  end
26
26
 
@@ -173,6 +173,19 @@ export enum SmartMapUserTaskResponse {
173
173
  COMPLETED = "completed",
174
174
  }
175
175
 
176
+ interface UrlObject {
177
+ title: string;
178
+ url: string;
179
+ }
180
+
181
+ export type LinkProperty = UrlObject;
182
+ export type ImageProperty = UrlObject;
183
+ export type BookingIntegration = {
184
+ integrationType: string;
185
+ integrationRef: string;
186
+ }
187
+ export type OccupancyIntegrations = BookingIntegration;
188
+
176
189
  export interface SmartMapObject {
177
190
  latitude: number;
178
191
  longitude: number;
@@ -180,7 +193,53 @@ export interface SmartMapObject {
180
193
  localRef: string;
181
194
  buildingRef: string;
182
195
  title: string;
183
- properties: Record<string, unknown>;
196
+ properties: {
197
+ bookingIntegrations?: BookingIntegration[];
198
+ occupancyIntegrations?: OccupancyIntegrations[];
199
+ buildingRef: string;
200
+ calendarRef?: string;
201
+ capacity?: number;
202
+ cateringEmail?: string;
203
+ css_class: string;
204
+ description?: string;
205
+ 'description:fi?': string;
206
+ 'description:nb?': string;
207
+ 'description:sv?': string;
208
+ 'description:en?': string;
209
+ images?: ImageProperty[];
210
+ 'images:fi'?: ImageProperty[];
211
+ 'images:sv'?: ImageProperty[];
212
+ 'images:nb'?: ImageProperty[];
213
+ 'images:en'?: ImageProperty[];
214
+ integrationRef?: string;
215
+ layerIndex: number;
216
+ links?: LinkProperty[];
217
+ 'links:fi'?: LinkProperty[];
218
+ 'links:sv'?: LinkProperty[];
219
+ 'links:nb'?: LinkProperty[];
220
+ 'links:en'?: LinkProperty[];
221
+ localRef?: string;
222
+ occupancy?: string;
223
+ parentRef?: string;
224
+ resourceType?: string;
225
+ subType?: string;
226
+ amenities?: string[];
227
+ tags?: string[];
228
+ keywords?: string[];
229
+ 'keywords:fi'?: string[];
230
+ 'keywords:sv'?: string[];
231
+ 'keywords:nb'?: string[];
232
+ 'keywords:en'?: string[];
233
+ title: string;
234
+ 'title:fi'?: string;
235
+ 'title:sv'?: string;
236
+ 'title:nb'?: string;
237
+ 'title:en'?: string;
238
+ sp_maximum_advance_booking_hours_normal_user?: number;
239
+ sp_maximum_booking_hours_normal_user?: number;
240
+ sp_maximum_advance_booking_hours_power_user?: number;
241
+ sp_maximum_booking_hours_power_user?: number;
242
+ }
184
243
  source: SmartObjectSource;
185
244
  }
186
245