@appsemble/utils 0.25.2 → 0.26.0

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.25.2/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.26.0/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.25.2/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.25.2)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.26.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.26.0)
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.25.2/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.26.0/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
package/api/paths/apps.js CHANGED
@@ -345,6 +345,12 @@ export const paths = {
345
345
  description: 'Whether to include resources for an app.',
346
346
  in: 'query',
347
347
  },
348
+ {
349
+ name: 'assets',
350
+ schema: { type: 'boolean' },
351
+ description: 'Whether to include assets in the export file',
352
+ in: 'query',
353
+ },
348
354
  ],
349
355
  responses: {
350
356
  200: {
@@ -108,7 +108,7 @@ export const paths = {
108
108
  { in: 'query', name: 'authorizationUrl', required: true, schema: { type: 'string' } },
109
109
  ],
110
110
  responses: {
111
- 204: {
111
+ 201: {
112
112
  description: 'The account was unlinked successfully.',
113
113
  },
114
114
  },
package/examples.d.ts ADDED
@@ -0,0 +1,24 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import { type Remappers, type UserInfo } from '@appsemble/types';
3
+ import { type RemapperContext } from './remap.js';
4
+ export interface RemapperExample {
5
+ input: unknown;
6
+ remapper: unknown;
7
+ result: unknown;
8
+ skip?: boolean;
9
+ }
10
+ type CustomRemapperKeys = 'app.id' | 'app.locale' | 'app.url' | 'array.map.1' | 'if.else' | 'if.then' | 'None';
11
+ export type RemapperExampleKeys = CustomRemapperKeys | Exclude<keyof Remappers, 'app' | 'if'>;
12
+ export declare const examples: Record<RemapperExampleKeys, RemapperExample>;
13
+ /**
14
+ * @param remapper The remapper example to use.
15
+ * @param options The options specifying how to display the example.
16
+ * @returns Example based on the input options.
17
+ */
18
+ export declare function schemaExample(remapper: keyof typeof examples, options?: {
19
+ input?: 'inline' | 'pretty';
20
+ result?: 'inline' | 'pretty';
21
+ exclude?: ('input' | 'remapper' | 'result')[];
22
+ }): string;
23
+ export declare function createExampleContext(url: URL, lang: string, userInfo?: UserInfo, history?: []): RemapperContext;
24
+ export {};