Socket
Socket
Sign inDemoInstall

@appsemble/types

Package Overview
Dependencies
Maintainers
4
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsemble/types - npm Package Compare versions

Comparing version 0.16.2 to 0.17.0

39

dist/index.d.ts

@@ -157,2 +157,10 @@ import { Action, BaseMessage, HTTPMethods, LogAction, RequestLikeActionTypes, Theme } from '@appsemble/sdk/src/types';

/**
* Get app metadata.
*
* Supported properties:
*
* - `id`: Get the app id.
*/
app: 'id';
/**
* Get a property from the context.

@@ -306,3 +314,3 @@ */

*/
query?: Record<string, string>;
query?: Remapper;
/**

@@ -351,6 +359,2 @@ * THe roles that are allowed to perform this action.

/**
* How to upload blobs.
*/
blobs?: BlobUploadType;
/**
* The property to use as the id.

@@ -382,8 +386,2 @@ *

}
export interface BlobUploadType {
type?: 'upload';
method?: HTTPMethods;
serialize?: 'custom';
url?: string;
}
export interface BaseActionDefinition<T extends Action['type']> {

@@ -465,6 +463,2 @@ /**

to: string;
/**
* Parameters to use for formatting the link.
*/
parameters?: Record<string, any>;
}

@@ -481,10 +475,2 @@ export interface LogActionDefinition extends BaseActionDefinition<'log'> {

/**
* The element to use as the base when returning the response data.
*/
base?: string;
/**
* Specify how to handle blobs in the object to upload.
*/
blobs?: BlobUploadType;
/**
* The HTTP method to use for making a request.

@@ -506,3 +492,3 @@ */

*/
query?: Record<string, string>;
query?: Remapper;
/**

@@ -512,6 +498,2 @@ * The URL to which to make the request.

url?: Remapper;
/**
* How to serialize the request body.
*/
serialize?: 'formdata';
}

@@ -1040,1 +1022,2 @@ export interface ResourceActionDefinition<T extends RequestLikeActionTypes> extends RequestLikeActionDefinition<T> {

}
export declare type SAMLStatus = 'badsignature' | 'emailconflict' | 'invalidsubjectconfirmation' | 'invalidrelaystate' | 'invalidsecret' | 'invalidstatuscode' | 'missingnameid' | 'missingsubject';

@@ -1,15 +0,1 @@

module.exports = {
clearMocks: true,
displayName: '@appsemble/types',
globals: {
'ts-jest': {
isolatedModules: true,
},
},
moduleNameMapper: {
[/@appsemble\/([\w-]+)/.source]: '@appsemble/$1/src',
},
preset: 'ts-jest',
resetMocks: true,
restoreMocks: true,
};
module.exports = require('../../config/jest/config')(__dirname);
{
"name": "@appsemble/types",
"version": "0.16.2",
"version": "0.17.0",
"description": "TypeScript definitions reused within Appsemble internally",

@@ -31,3 +31,3 @@ "keywords": [

"dependencies": {
"@appsemble/sdk": "0.16.2",
"@appsemble/sdk": "0.17.0",
"@fortawesome/fontawesome-common-types": "^0.2.32",

@@ -34,0 +34,0 @@ "openapi-types": "^7.0.1",

@@ -204,2 +204,11 @@ import {

/**
* Get app metadata.
*
* Supported properties:
*
* - `id`: Get the app id.
*/
app: 'id';
/**
* Get a property from the context.

@@ -389,3 +398,3 @@ */

*/
query?: Record<string, string>;
query?: Remapper;

@@ -445,7 +454,2 @@ /**

/**
* How to upload blobs.
*/
blobs?: BlobUploadType;
/**
* The property to use as the id.

@@ -482,9 +486,2 @@ *

export interface BlobUploadType {
type?: 'upload';
method?: HTTPMethods;
serialize?: 'custom';
url?: string;
}
export interface BaseActionDefinition<T extends Action['type']> {

@@ -581,7 +578,2 @@ /**

to: string;
/**
* Parameters to use for formatting the link.
*/
parameters?: Record<string, any>;
}

@@ -602,12 +594,2 @@

/**
* The element to use as the base when returning the response data.
*/
base?: string;
/**
* Specify how to handle blobs in the object to upload.
*/
blobs?: BlobUploadType;
/**
* The HTTP method to use for making a request.

@@ -632,3 +614,3 @@ */

*/
query?: Record<string, string>;
query?: Remapper;

@@ -639,7 +621,2 @@ /**

url?: Remapper;
/**
* How to serialize the request body.
*/
serialize?: 'formdata';
}

@@ -1307,1 +1284,11 @@

}
export type SAMLStatus =
| 'badsignature'
| 'emailconflict'
| 'invalidsubjectconfirmation'
| 'invalidrelaystate'
| 'invalidsecret'
| 'invalidstatuscode'
| 'missingnameid'
| 'missingsubject';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc