@appsemble/utils 0.27.10 → 0.27.11

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.27.10/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.27.11/config/assets/logo.svg) Appsemble Utilities
2
2
 
3
3
  > Internal utility functions used across multiple Appsemble projects.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/utils)](https://www.npmjs.com/package/@appsemble/utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.27.10/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.27.10)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.27.11/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.27.11)
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.27.10/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.11/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const $skip: OpenAPIV3.ParameterObject;
@@ -0,0 +1,7 @@
1
+ export const $skip = {
2
+ name: '$skip',
3
+ in: 'query',
4
+ description: 'Start the query from an offset.',
5
+ schema: { type: 'integer', minimum: 0 },
6
+ };
7
+ //# sourceMappingURL=$skip.js.map
@@ -2,7 +2,6 @@ export const $top = {
2
2
  name: '$top',
3
3
  in: 'query',
4
4
  description: 'Limit the number of entities returned.',
5
- // XXX The type should be integer. This doesn’t work due to an upstream bug in Koas.
6
- schema: { type: 'string' },
5
+ schema: { type: 'integer', minimum: 0 },
7
6
  };
8
7
  //# sourceMappingURL=$top.js.map
@@ -3,6 +3,7 @@ export * from './$orderby.js';
3
3
  export * from './$select.js';
4
4
  export * from './$team.js';
5
5
  export * from './$top.js';
6
+ export * from './$skip.js';
6
7
  export * from './appId.js';
7
8
  export * from './appOAuth2SecretId.js';
8
9
  export * from './appSamlSecretId.js';
@@ -3,6 +3,7 @@ export * from './$orderby.js';
3
3
  export * from './$select.js';
4
4
  export * from './$team.js';
5
5
  export * from './$top.js';
6
+ export * from './$skip.js';
6
7
  export * from './appId.js';
7
8
  export * from './appOAuth2SecretId.js';
8
9
  export * from './appSamlSecretId.js';
@@ -77,7 +77,7 @@ This doesn’t affect whether or not the app can be accessed on its own domain.
77
77
  description: `
78
78
  A long description for the app.
79
79
 
80
- The long desciption will be rendered on the app details page. Markdown content is supported.
80
+ The long description will be rendered on the app details page. Markdown content is supported.
81
81
  `,
82
82
  },
83
83
  definition: { $ref: '#/components/schemas/AppDefinition' },
@@ -32,7 +32,13 @@ will remain the same until it is manually updated.
32
32
  `,
33
33
  },
34
34
  layout: {
35
- description: 'An override of the block’s default.',
35
+ description: `An override of the block’s default layout.
36
+
37
+ \`float\` sets the block position to float on the page and does not collide with other blocks.
38
+ Layout float can be combined with the \`position\` property to place the block on the desired location.
39
+ \`grow\` adds space between blocks so the page is filled.
40
+ \`static\` on the contrary, does not add extra space between blocks.
41
+ `,
36
42
  enum: ['float', 'grow', 'static'],
37
43
  },
38
44
  header: {
@@ -50,7 +56,7 @@ If a user does not have the right role, the block is not rendered.
50
56
  },
51
57
  },
52
58
  position: {
53
- description: 'For floating blocks this propert defines where the block should float.',
59
+ description: 'For floating blocks this property defines where the block should float.',
54
60
  default: 'bottom right',
55
61
  enum: [
56
62
  'top left',
@@ -66,7 +66,10 @@ export const paths = {
66
66
  tags: ['asset'],
67
67
  description: 'Get all of the app’s assets.',
68
68
  operationId: 'getAssets',
69
- parameters: [{ $ref: '#/components/parameters/$top' }],
69
+ parameters: [
70
+ { $ref: '#/components/parameters/$skip' },
71
+ { $ref: '#/components/parameters/$top' },
72
+ ],
70
73
  responses: {
71
74
  200: {
72
75
  description: 'The assets associated with the app.',
@@ -87,6 +87,7 @@ export const paths = {
87
87
  { $ref: '#/components/parameters/$filter' },
88
88
  { $ref: '#/components/parameters/$orderby' },
89
89
  { $ref: '#/components/parameters/$select' },
90
+ { $ref: '#/components/parameters/$skip' },
90
91
  { $ref: '#/components/parameters/$top' },
91
92
  { $ref: '#/components/parameters/$team' },
92
93
  ],
@@ -35,3 +35,7 @@ export declare const uuid4Pattern: RegExp;
35
35
  * A pattern which matches a JSON web token.
36
36
  */
37
37
  export declare const jwtPattern: RegExp;
38
+ /**
39
+ * A pattern which matches an ISO 8601 datetime string.
40
+ */
41
+ export declare const ISODateTimePattern: RegExp;
@@ -35,4 +35,8 @@ export const uuid4Pattern = /^[\d[a-f]{8}-[\da-f]{4}-4[\da-f]{3}-[\da-f]{4}-[\d[
35
35
  * A pattern which matches a JSON web token.
36
36
  */
37
37
  export const jwtPattern = /^[\w-]+(?:\.[\w-]+){2}$/;
38
+ /**
39
+ * A pattern which matches an ISO 8601 datetime string.
40
+ */
41
+ export const ISODateTimePattern = /\d{4}(.\d{2}){2}(\s|T)(\d{2}.){2}\d{2}/;
38
42
  //# sourceMappingURL=patterns.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/utils",
3
- "version": "0.27.10",
3
+ "version": "0.27.11",
4
4
  "description": "Utility functions used in Appsemble internally",
5
5
  "keywords": [
6
6
  "app",
@@ -37,7 +37,7 @@
37
37
  "test": "vitest"
38
38
  },
39
39
  "dependencies": {
40
- "@appsemble/types": "0.27.10",
40
+ "@appsemble/types": "0.27.11",
41
41
  "axios": "^1.0.0",
42
42
  "cron-parser": "^4.0.0",
43
43
  "date-fns": "^2.0.0",