react-native-steerpath-smart-map 1.15.2 → 1.15.3

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,13 +15,9 @@ 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.2]
18
+ # [1.15.3]
19
19
 
20
- - Fix some SmartMapObject typings
21
-
22
- # [1.15.1]
23
-
24
- - Improve SmartMapObject typings
20
+ - Improved typings for SmartMapObject
25
21
 
26
22
  ## [1.15.0]
27
23
  - Bump Android Smart SDK to android-smart-1.14.3
@@ -122,6 +122,55 @@ export declare type BookingIntegration = {
122
122
  integrationRef: string;
123
123
  };
124
124
  export declare type OccupancyIntegrations = BookingIntegration;
125
+ export interface SmartMapObjectProperties {
126
+ amenities?: string[];
127
+ bookingIntegrations?: BookingIntegration[];
128
+ occupancyIntegrations?: OccupancyIntegrations[];
129
+ buildingRef: string;
130
+ calendarRef?: string;
131
+ capacity?: number;
132
+ cateringEmail?: string;
133
+ css_class: string;
134
+ description?: string;
135
+ 'description:fi?': string;
136
+ 'description:nb?': string;
137
+ 'description:sv?': string;
138
+ 'description:en?': string;
139
+ images?: ImageProperty[];
140
+ 'images:fi'?: ImageProperty[];
141
+ 'images:sv'?: ImageProperty[];
142
+ 'images:nb'?: ImageProperty[];
143
+ 'images:en'?: ImageProperty[];
144
+ integrationRef?: string;
145
+ keywords?: string[];
146
+ 'keywords:fi'?: string[];
147
+ 'keywords:sv'?: string[];
148
+ 'keywords:nb'?: string[];
149
+ 'keywords:en'?: string[];
150
+ layerIndex: number;
151
+ links?: LinkProperty[];
152
+ 'links:fi'?: LinkProperty[];
153
+ 'links:sv'?: LinkProperty[];
154
+ 'links:nb'?: LinkProperty[];
155
+ 'links:en'?: LinkProperty[];
156
+ localRef?: string;
157
+ occupancy?: string;
158
+ parentRef?: string;
159
+ resourceType?: string;
160
+ sp_maximum_advance_booking_hours_normal_user?: number;
161
+ sp_maximum_booking_hours_normal_user?: number;
162
+ sp_maximum_advance_booking_hours_power_user?: number;
163
+ sp_maximum_booking_hours_power_user?: number;
164
+ subType?: string;
165
+ tags?: string[];
166
+ title: string;
167
+ 'title:fi'?: string;
168
+ 'title:sv'?: string;
169
+ 'title:nb'?: string;
170
+ 'title:en'?: string;
171
+ weekPlannerCapacity?: number;
172
+ [key: string]: any;
173
+ }
125
174
  export interface SmartMapObject {
126
175
  latitude: number;
127
176
  longitude: number;
@@ -129,53 +178,7 @@ export interface SmartMapObject {
129
178
  localRef: string;
130
179
  buildingRef: string;
131
180
  title: string;
132
- properties: {
133
- bookingIntegrations?: BookingIntegration[];
134
- occupancyIntegrations?: OccupancyIntegrations[];
135
- buildingRef: string;
136
- calendarRef?: string;
137
- capacity?: number;
138
- cateringEmail?: string;
139
- css_class: string;
140
- description?: string;
141
- 'description:fi?': string;
142
- 'description:nb?': string;
143
- 'description:sv?': string;
144
- 'description:en?': string;
145
- images?: ImageProperty[];
146
- 'images:fi'?: ImageProperty[];
147
- 'images:sv'?: ImageProperty[];
148
- 'images:nb'?: ImageProperty[];
149
- 'images:en'?: ImageProperty[];
150
- integrationRef?: string;
151
- layerIndex: number;
152
- links?: LinkProperty[];
153
- 'links:fi'?: LinkProperty[];
154
- 'links:sv'?: LinkProperty[];
155
- 'links:nb'?: LinkProperty[];
156
- 'links:en'?: LinkProperty[];
157
- localRef?: string;
158
- occupancy?: string;
159
- parentRef?: string;
160
- resourceType?: string;
161
- subType?: string;
162
- amenities?: string[];
163
- tags?: string[];
164
- keywords?: string[];
165
- 'keywords:fi'?: string[];
166
- 'keywords:sv'?: string[];
167
- 'keywords:nb'?: string[];
168
- 'keywords:en'?: string[];
169
- title: string;
170
- 'title:fi'?: string;
171
- 'title:sv'?: string;
172
- 'title:nb'?: string;
173
- 'title:en'?: string;
174
- sp_maximum_advance_booking_hours_normal_user?: number;
175
- sp_maximum_booking_hours_normal_user?: number;
176
- sp_maximum_advance_booking_hours_power_user?: number;
177
- sp_maximum_booking_hours_power_user?: number;
178
- };
181
+ properties: SmartMapObjectProperties;
179
182
  source: SmartObjectSource;
180
183
  }
181
184
  export interface SmartViewWebProps {
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.15.2",
4
+ "version": "1.15.3",
5
5
  "description": "Steerpath SmartMapView for React Native",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
@@ -188,6 +188,56 @@ export type BookingIntegration = {
188
188
  }
189
189
  export type OccupancyIntegrations = BookingIntegration;
190
190
 
191
+ export interface SmartMapObjectProperties {
192
+ amenities?: string[];
193
+ bookingIntegrations?: BookingIntegration[];
194
+ occupancyIntegrations?: OccupancyIntegrations[];
195
+ buildingRef: string;
196
+ calendarRef?: string;
197
+ capacity?: number;
198
+ cateringEmail?: string;
199
+ css_class: string;
200
+ description?: string;
201
+ 'description:fi?': string;
202
+ 'description:nb?': string;
203
+ 'description:sv?': string;
204
+ 'description:en?': string;
205
+ images?: ImageProperty[];
206
+ 'images:fi'?: ImageProperty[];
207
+ 'images:sv'?: ImageProperty[];
208
+ 'images:nb'?: ImageProperty[];
209
+ 'images:en'?: ImageProperty[];
210
+ integrationRef?: string;
211
+ keywords?: string[];
212
+ 'keywords:fi'?: string[];
213
+ 'keywords:sv'?: string[];
214
+ 'keywords:nb'?: string[];
215
+ 'keywords:en'?: string[];
216
+ layerIndex: number;
217
+ links?: LinkProperty[];
218
+ 'links:fi'?: LinkProperty[];
219
+ 'links:sv'?: LinkProperty[];
220
+ 'links:nb'?: LinkProperty[];
221
+ 'links:en'?: LinkProperty[];
222
+ localRef?: string;
223
+ occupancy?: string;
224
+ parentRef?: string;
225
+ resourceType?: string;
226
+ sp_maximum_advance_booking_hours_normal_user?: number;
227
+ sp_maximum_booking_hours_normal_user?: number;
228
+ sp_maximum_advance_booking_hours_power_user?: number;
229
+ sp_maximum_booking_hours_power_user?: number;
230
+ subType?: string;
231
+ tags?: string[];
232
+ title: string;
233
+ 'title:fi'?: string;
234
+ 'title:sv'?: string;
235
+ 'title:nb'?: string;
236
+ 'title:en'?: string;
237
+ weekPlannerCapacity?: number;
238
+ [key: string]: any; // Probably not the best practice, but this way we can get the access to properties that are not typed above.
239
+ }
240
+
191
241
  export interface SmartMapObject {
192
242
  latitude: number;
193
243
  longitude: number;
@@ -195,53 +245,7 @@ export interface SmartMapObject {
195
245
  localRef: string;
196
246
  buildingRef: string;
197
247
  title: string;
198
- properties: {
199
- bookingIntegrations?: BookingIntegration[];
200
- occupancyIntegrations?: OccupancyIntegrations[];
201
- buildingRef: string;
202
- calendarRef?: string;
203
- capacity?: number;
204
- cateringEmail?: string;
205
- css_class: string;
206
- description?: string;
207
- 'description:fi?': string;
208
- 'description:nb?': string;
209
- 'description:sv?': string;
210
- 'description:en?': string;
211
- images?: ImageProperty[];
212
- 'images:fi'?: ImageProperty[];
213
- 'images:sv'?: ImageProperty[];
214
- 'images:nb'?: ImageProperty[];
215
- 'images:en'?: ImageProperty[];
216
- integrationRef?: string;
217
- layerIndex: number;
218
- links?: LinkProperty[];
219
- 'links:fi'?: LinkProperty[];
220
- 'links:sv'?: LinkProperty[];
221
- 'links:nb'?: LinkProperty[];
222
- 'links:en'?: LinkProperty[];
223
- localRef?: string;
224
- occupancy?: string;
225
- parentRef?: string;
226
- resourceType?: string;
227
- subType?: string;
228
- amenities?: string[];
229
- tags?: string[];
230
- keywords?: string[];
231
- 'keywords:fi'?: string[];
232
- 'keywords:sv'?: string[];
233
- 'keywords:nb'?: string[];
234
- 'keywords:en'?: string[];
235
- title: string;
236
- 'title:fi'?: string;
237
- 'title:sv'?: string;
238
- 'title:nb'?: string;
239
- 'title:en'?: string;
240
- sp_maximum_advance_booking_hours_normal_user?: number;
241
- sp_maximum_booking_hours_normal_user?: number;
242
- sp_maximum_advance_booking_hours_power_user?: number;
243
- sp_maximum_booking_hours_power_user?: number;
244
- }
248
+ properties: SmartMapObjectProperties,
245
249
  source: SmartObjectSource;
246
250
  }
247
251