@appsemble/types 0.30.1 → 0.30.2

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.30.1/config/assets/logo.svg) Appsemble Types
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.30.2/config/assets/logo.svg) Appsemble Types
2
2
 
3
3
  > Reusable TypeScript types
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/types)](https://www.npmjs.com/package/@appsemble/types)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.30.1/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.30.1)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.30.2/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.30.2)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -26,5 +26,5 @@ not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.30.1/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.30.2/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
package/index.d.ts CHANGED
@@ -375,6 +375,10 @@ export interface Remappers {
375
375
  * The value to set is the log level.
376
376
  */
377
377
  log: 'error' | 'info' | 'warn';
378
+ /**
379
+ * Get input object type.
380
+ */
381
+ type: null;
378
382
  /**
379
383
  * Builds an array based on the given data and remappers.
380
384
  *
@@ -434,6 +438,11 @@ export interface Remappers {
434
438
  * Returns nothing if array.map’s context isn’t set.
435
439
  */
436
440
  array: 'index' | 'item' | 'length';
441
+ /**
442
+ *
443
+ * Returns an array containing the items matching the specified conditions.
444
+ */
445
+ 'array.filter': Remapper;
437
446
  /**
438
447
  * Returns an object based on the specified condition
439
448
  */
@@ -1443,6 +1452,16 @@ export interface BasePageDefinition {
1443
1452
  * The global theme for the page.
1444
1453
  */
1445
1454
  theme?: Partial<Theme>;
1455
+ /**
1456
+ * A Remapper that resolves to a number to be visible in the side-menu.
1457
+ */
1458
+ badgeCount?: Remapper;
1459
+ /**
1460
+ * A mapping of actions that can be fired by the page to action handlers.
1461
+ */
1462
+ actions?: {
1463
+ onLoad?: ActionDefinition;
1464
+ };
1446
1465
  }
1447
1466
  /**
1448
1467
  * A subset of page for use within flow pages and tab pages.
@@ -1460,7 +1479,7 @@ export interface ContainerPageDefinition extends BasePageDefinition {
1460
1479
  type: 'container';
1461
1480
  pages: PageDefinition[];
1462
1481
  }
1463
- export interface FlowPageDefinition extends BasePageDefinition {
1482
+ export interface FlowPageDefinition extends Omit<BasePageDefinition, 'actions'> {
1464
1483
  type: 'flow';
1465
1484
  steps: SubPageDefinition[];
1466
1485
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/types",
3
- "version": "0.30.1",
3
+ "version": "0.30.2",
4
4
  "description": "TypeScript definitions reused within Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
package/permissions.d.ts CHANGED
@@ -112,7 +112,7 @@ export declare enum OrganizationPermission {
112
112
  */
113
113
  DeleteBlocks = 1,
114
114
  /**
115
- * The permission to create apps.
115
+ * The permission to create apps in an organization
116
116
  */
117
117
  CreateApps = 2,
118
118
  /**
@@ -120,11 +120,11 @@ export declare enum OrganizationPermission {
120
120
  */
121
121
  QueryApps = 3,
122
122
  /**
123
- * The permission to update apps.
123
+ * The permission to update apps in an organization.
124
124
  */
125
125
  UpdateApps = 4,
126
126
  /**
127
- * The permission to delete apps.
127
+ * The permission to delete apps in an organization.
128
128
  */
129
129
  DeleteApps = 5,
130
130
  /**
@@ -248,19 +248,19 @@ export declare enum OrganizationPermission {
248
248
  */
249
249
  DeleteOrganizations = 35,
250
250
  /**
251
- * The permission to create organization invites,
251
+ * The permission to create organization invites.
252
252
  */
253
253
  CreateOrganizationInvites = 36,
254
254
  /**
255
- * The permission to query organization invites,
255
+ * The permission to query organization invites.
256
256
  */
257
257
  QueryOrganizationInvites = 37,
258
258
  /**
259
- * The permission to update organization invites,
259
+ * The permission to update organization invites.
260
260
  */
261
261
  UpdateOrganizationInvites = 38,
262
262
  /**
263
- * The permission to delete organization invites,
263
+ * The permission to delete organization invites.
264
264
  */
265
265
  DeleteOrganizationInvites = 39,
266
266
  /**
package/permissions.js CHANGED
@@ -114,7 +114,7 @@ export var OrganizationPermission;
114
114
  */
115
115
  OrganizationPermission[OrganizationPermission["DeleteBlocks"] = 1] = "DeleteBlocks";
116
116
  /**
117
- * The permission to create apps.
117
+ * The permission to create apps in an organization
118
118
  */
119
119
  OrganizationPermission[OrganizationPermission["CreateApps"] = 2] = "CreateApps";
120
120
  /**
@@ -122,11 +122,11 @@ export var OrganizationPermission;
122
122
  */
123
123
  OrganizationPermission[OrganizationPermission["QueryApps"] = 3] = "QueryApps";
124
124
  /**
125
- * The permission to update apps.
125
+ * The permission to update apps in an organization.
126
126
  */
127
127
  OrganizationPermission[OrganizationPermission["UpdateApps"] = 4] = "UpdateApps";
128
128
  /**
129
- * The permission to delete apps.
129
+ * The permission to delete apps in an organization.
130
130
  */
131
131
  OrganizationPermission[OrganizationPermission["DeleteApps"] = 5] = "DeleteApps";
132
132
  /**
@@ -250,19 +250,19 @@ export var OrganizationPermission;
250
250
  */
251
251
  OrganizationPermission[OrganizationPermission["DeleteOrganizations"] = 35] = "DeleteOrganizations";
252
252
  /**
253
- * The permission to create organization invites,
253
+ * The permission to create organization invites.
254
254
  */
255
255
  OrganizationPermission[OrganizationPermission["CreateOrganizationInvites"] = 36] = "CreateOrganizationInvites";
256
256
  /**
257
- * The permission to query organization invites,
257
+ * The permission to query organization invites.
258
258
  */
259
259
  OrganizationPermission[OrganizationPermission["QueryOrganizationInvites"] = 37] = "QueryOrganizationInvites";
260
260
  /**
261
- * The permission to update organization invites,
261
+ * The permission to update organization invites.
262
262
  */
263
263
  OrganizationPermission[OrganizationPermission["UpdateOrganizationInvites"] = 38] = "UpdateOrganizationInvites";
264
264
  /**
265
- * The permission to delete organization invites,
265
+ * The permission to delete organization invites.
266
266
  */
267
267
  OrganizationPermission[OrganizationPermission["DeleteOrganizationInvites"] = 39] = "DeleteOrganizationInvites";
268
268
  /**