@appsemble/types 0.20.6 → 0.20.7
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.ts +56 -35
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -165,6 +165,49 @@ export interface TokenResponse {
|
|
|
165
165
|
refresh_token?: string;
|
|
166
166
|
token_type: 'bearer';
|
|
167
167
|
}
|
|
168
|
+
interface BaseICSRemapper {
|
|
169
|
+
/**
|
|
170
|
+
* The start of the icalendar event.
|
|
171
|
+
*/
|
|
172
|
+
start: Remapper;
|
|
173
|
+
/**
|
|
174
|
+
* The title of the event.
|
|
175
|
+
*/
|
|
176
|
+
title: Remapper;
|
|
177
|
+
/**
|
|
178
|
+
* An optional description of the event.
|
|
179
|
+
*/
|
|
180
|
+
description?: Remapper;
|
|
181
|
+
/**
|
|
182
|
+
* An optional link to attach to the event.
|
|
183
|
+
*/
|
|
184
|
+
url?: Remapper;
|
|
185
|
+
/**
|
|
186
|
+
* An optional location description to attach to the event.
|
|
187
|
+
*/
|
|
188
|
+
location?: Remapper;
|
|
189
|
+
/**
|
|
190
|
+
* An optional geolocation description to attach to the event.
|
|
191
|
+
*
|
|
192
|
+
* This must be an object with the properties `lat` or `latitude`, and `lon`, `lng` or
|
|
193
|
+
* `longitude`.
|
|
194
|
+
*/
|
|
195
|
+
coordinates?: Remapper;
|
|
196
|
+
}
|
|
197
|
+
interface DurationICSRemapper extends BaseICSRemapper {
|
|
198
|
+
/**
|
|
199
|
+
* The duration of the event.
|
|
200
|
+
*
|
|
201
|
+
* @example '1w 3d 10h 30m'
|
|
202
|
+
*/
|
|
203
|
+
duration: Remapper;
|
|
204
|
+
}
|
|
205
|
+
interface EndTimeICSRemapper extends BaseICSRemapper {
|
|
206
|
+
/**
|
|
207
|
+
* The end time of the event as a date or a date string.
|
|
208
|
+
*/
|
|
209
|
+
end: Remapper;
|
|
210
|
+
}
|
|
168
211
|
export interface Remappers {
|
|
169
212
|
/**
|
|
170
213
|
* Get app metadata.
|
|
@@ -207,6 +250,18 @@ export interface Remappers {
|
|
|
207
250
|
* Returns `true` if all entries are equal, otherwise `false`.
|
|
208
251
|
*/
|
|
209
252
|
equals: Remapper[];
|
|
253
|
+
/**
|
|
254
|
+
* Compares the first computed remapper value with the second computed remapper value.
|
|
255
|
+
*
|
|
256
|
+
* Returns `true` of the first entry is greater than the second entry.
|
|
257
|
+
*/
|
|
258
|
+
gt: [Remapper, Remapper];
|
|
259
|
+
/**
|
|
260
|
+
* Compares the first computed remapper value with the second computed remapper value.
|
|
261
|
+
*
|
|
262
|
+
* Returns `true` of the first entry is less than the second entry.
|
|
263
|
+
*/
|
|
264
|
+
lt: [Remapper, Remapper];
|
|
210
265
|
/**
|
|
211
266
|
* Builds an array based on the given data and remappers.
|
|
212
267
|
*
|
|
@@ -229,41 +284,7 @@ export interface Remappers {
|
|
|
229
284
|
/**
|
|
230
285
|
* Create an icalendar event.
|
|
231
286
|
*/
|
|
232
|
-
ics:
|
|
233
|
-
/**
|
|
234
|
-
* The start of the icalendar event.
|
|
235
|
-
*/
|
|
236
|
-
start: Remapper;
|
|
237
|
-
/**
|
|
238
|
-
* The duration of the event.
|
|
239
|
-
*
|
|
240
|
-
* @example '1w 3d 10h 30m'
|
|
241
|
-
*/
|
|
242
|
-
duration: Remapper;
|
|
243
|
-
/**
|
|
244
|
-
* The title of the event.
|
|
245
|
-
*/
|
|
246
|
-
title: Remapper;
|
|
247
|
-
/**
|
|
248
|
-
* An optional description of the event.
|
|
249
|
-
*/
|
|
250
|
-
description?: Remapper;
|
|
251
|
-
/**
|
|
252
|
-
* An optional link to attach to the event.
|
|
253
|
-
*/
|
|
254
|
-
url?: Remapper;
|
|
255
|
-
/**
|
|
256
|
-
* An optional location description to attach to the event.
|
|
257
|
-
*/
|
|
258
|
-
location?: Remapper;
|
|
259
|
-
/**
|
|
260
|
-
* An optional geolocation description to attach to the event.
|
|
261
|
-
*
|
|
262
|
-
* This must be an object with the properties `lat` or `latitude`, and `lon`, `lng` or
|
|
263
|
-
* `longitude`.
|
|
264
|
-
*/
|
|
265
|
-
coordinates?: Remapper;
|
|
266
|
-
};
|
|
287
|
+
ics: DurationICSRemapper | EndTimeICSRemapper;
|
|
267
288
|
/**
|
|
268
289
|
* Checks if condition results in a truthy value.
|
|
269
290
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/types",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.7",
|
|
4
4
|
"description": "TypeScript definitions reused within Appsemble internally",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"test": "jest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@appsemble/sdk": "0.20.
|
|
33
|
+
"@appsemble/sdk": "0.20.7",
|
|
34
34
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
35
35
|
"jsonschema": "^1.0.0",
|
|
36
|
-
"openapi-types": "^
|
|
36
|
+
"openapi-types": "^11.0.0",
|
|
37
37
|
"type-fest": "^2.0.0"
|
|
38
38
|
}
|
|
39
39
|
}
|