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

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,12 +15,19 @@ 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]
18
+ # [1.15.4] - 2022-05-11
19
19
 
20
- - Improve SmartMapObject typings
20
+ - Bump Android Smart SDK to android-smart-1.14.4
21
+ - Update default gradle plugin version to 4.0.2
22
+
23
+ # [1.15.3] - 2022-04-01
24
+
25
+ - Improved typings for SmartMapObject
26
+
27
+ ## [1.15.0] - 2022-03-24
21
28
 
22
- ## [1.15.0]
23
29
  - Bump Android Smart SDK to android-smart-1.14.3
30
+
24
31
  ## [1.14.2] - 2022-02-16
25
32
 
26
33
  - Bump iOS Smart SDK version to 1.15.11
@@ -3,6 +3,7 @@ buildscript {
3
3
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
4
4
  }
5
5
  repositories {
6
+ mavenCentral()
6
7
  google()
7
8
  jcenter()
8
9
  }
@@ -10,7 +11,7 @@ buildscript {
10
11
  dependencies {
11
12
  // Matches recent template from React Native (0.60)
12
13
  // https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle#L16
13
- classpath("com.android.tools.build:gradle:${safeExtGet('gradlePluginVersion', '3.4.1')}")
14
+ classpath("com.android.tools.build:gradle:${safeExtGet('gradlePluginVersion', '4.0.2')}")
14
15
  }
15
16
  }
16
17
 
@@ -59,7 +60,7 @@ repositories {
59
60
 
60
61
  dependencies {
61
62
  implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}"
62
- implementation "com.steerpath:smart:android-smart-1.14.3"
63
+ implementation "com.steerpath:smart:android-smart-1.14.4"
63
64
  implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
64
65
  implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
65
66
  }
@@ -1,6 +1,6 @@
1
- #Fri Sep 20 14:28:30 EEST 2019
1
+ #Wed May 11 12:57:00 EEST 2022
2
2
  distributionBase=GRADLE_USER_HOME
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
3
4
  distributionPath=wrapper/dists
4
- zipStoreBase=GRADLE_USER_HOME
5
5
  zipStorePath=wrapper/dists
6
- distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6
+ zipStoreBase=GRADLE_USER_HOME
@@ -109,17 +109,68 @@ export declare enum SmartMapUserTaskResponse {
109
109
  UNSUPPORTED = "unsupported",
110
110
  COMPLETED = "completed"
111
111
  }
112
- interface UrlObject {
112
+ export interface LinkProperty {
113
+ title: string;
114
+ url: string;
115
+ }
116
+ export interface ImageProperty {
113
117
  title: string;
114
118
  url: string;
115
119
  }
116
- export declare type LinkProperty = UrlObject;
117
- export declare type ImageProperty = UrlObject;
118
120
  export declare type BookingIntegration = {
119
121
  integrationType: string;
120
122
  integrationRef: string;
121
123
  };
122
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
+ }
123
174
  export interface SmartMapObject {
124
175
  latitude: number;
125
176
  longitude: number;
@@ -127,53 +178,7 @@ export interface SmartMapObject {
127
178
  localRef: string;
128
179
  buildingRef: string;
129
180
  title: string;
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
- };
181
+ properties: SmartMapObjectProperties;
177
182
  source: SmartObjectSource;
178
183
  }
179
184
  export interface SmartViewWebProps {
@@ -250,4 +255,3 @@ export interface SmartMapUserTask {
250
255
  type: SmartMapUserTaskType;
251
256
  payload: SmartMapNavigationUserTask | SmartMapPOISelectionUserTask;
252
257
  }
253
- export {};
@@ -67,6 +67,8 @@ export var SmartMapUserTaskResponse;
67
67
  SmartMapUserTaskResponse["UNSUPPORTED"] = "unsupported";
68
68
  SmartMapUserTaskResponse["COMPLETED"] = "completed";
69
69
  })(SmartMapUserTaskResponse || (SmartMapUserTaskResponse = {}));
70
+ ;
71
+ ;
70
72
  export var SmartMapUserTaskType;
71
73
  (function (SmartMapUserTaskType) {
72
74
  SmartMapUserTaskType["NAVIGATION"] = "navigation";
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.1",
4
+ "version": "1.15.4",
5
5
  "description": "Steerpath SmartMapView for React Native",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
@@ -172,20 +172,72 @@ export enum SmartMapUserTaskResponse {
172
172
  UNSUPPORTED = "unsupported",
173
173
  COMPLETED = "completed",
174
174
  }
175
+ export interface LinkProperty {
176
+ title: string;
177
+ url: string;
178
+ };
175
179
 
176
- interface UrlObject {
180
+ export interface ImageProperty {
177
181
  title: string;
178
182
  url: string;
179
- }
183
+ };
180
184
 
181
- export type LinkProperty = UrlObject;
182
- export type ImageProperty = UrlObject;
183
185
  export type BookingIntegration = {
184
186
  integrationType: string;
185
187
  integrationRef: string;
186
188
  }
187
189
  export type OccupancyIntegrations = BookingIntegration;
188
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
+
189
241
  export interface SmartMapObject {
190
242
  latitude: number;
191
243
  longitude: number;
@@ -193,53 +245,7 @@ export interface SmartMapObject {
193
245
  localRef: string;
194
246
  buildingRef: string;
195
247
  title: string;
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
- }
248
+ properties: SmartMapObjectProperties,
243
249
  source: SmartObjectSource;
244
250
  }
245
251