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.15.4 to 0.15.5

110

dist/index.d.ts

@@ -1,7 +0,7 @@

import type { Action, BaseMessage, HTTPMethods, LogAction, RequestLikeActionTypes, Theme } from '@appsemble/sdk/src/types';
import type { IconName } from '@fortawesome/fontawesome-common-types';
import type { OpenAPIV3 } from 'openapi-types';
import type { JsonObject, RequireExactlyOne } from 'type-fest';
import type { Definition } from 'typescript-json-schema';
export type { Theme };
import { Action, BaseMessage, HTTPMethods, LogAction, RequestLikeActionTypes, Theme } from '@appsemble/sdk/src/types';
import { IconName } from '@fortawesome/fontawesome-common-types';
import { OpenAPIV3 } from 'openapi-types';
import { JsonObject, RequireExactlyOne } from 'type-fest';
import { Definition } from 'typescript-json-schema';
export { Theme };
/**

@@ -68,5 +68,3 @@ * A representation of a generated OAuth2 authorization code response.

*/
actions?: {
[action: string]: ActionDefinition;
};
actions?: Record<string, ActionDefinition>;
/**

@@ -78,8 +76,4 @@ * Mapping of the events the block can listen to and emit.

events?: {
listen?: {
[listener: string]: string;
};
emit?: {
[emitter: string]: string;
};
listen?: Record<string, string>;
emit?: Record<string, string>;
};

@@ -173,2 +167,10 @@ /**

/**
* Returns the current date.
*/
'date.now': unknown;
/**
* Adds to a date.
*/
'date.add': string;
/**
* Compare all computed remapper values against each other.

@@ -206,6 +208,8 @@ *

*/
'object.from': {
[key: string]: Remapper;
};
'object.from': Record<string, Remapper>;
/**
* Assign properties to an existing object given some predefined mapper keys.
*/
'object.assign': Record<string, Remapper>;
/**
* Use a static value.

@@ -241,5 +245,3 @@ */

*/
values: {
[key: string]: Remapper;
};
values: Record<string, Remapper>;
};

@@ -249,5 +251,3 @@ /**

*/
'string.replace': {
[regex: string]: string;
};
'string.replace': Record<string, string>;
user: keyof UserInfo;

@@ -260,12 +260,8 @@ }

delete: boolean;
subscriptions?: {
[id: string]: {
update: boolean;
delete: boolean;
};
};
subscriptions?: Record<string, {
update: boolean;
delete: boolean;
}>;
}
export interface SubscriptionResponse {
[type: string]: SubscriptionResponseResource;
}
export declare type SubscriptionResponse = Record<string, SubscriptionResponseResource>;
export interface Security {

@@ -277,9 +273,7 @@ login?: 'password';

};
roles: {
[role: string]: {
description?: string;
inherits?: string[];
defaultPage?: string;
};
};
roles: Record<string, {
description?: string;
inherits?: string[];
defaultPage?: string;
}>;
}

@@ -318,5 +312,3 @@ export declare type Navigation = 'bottom' | 'left-menu' | 'hidden';

*/
query?: {
[key: string]: string;
};
query?: Record<string, string>;
/**

@@ -383,5 +375,3 @@ * THe roles that are allowed to perform this action.

*/
references?: {
[property: string]: ResourceReference;
};
references?: Record<string, ResourceReference>;
/**

@@ -479,5 +469,3 @@ * A time string representing when a resource should expire.

*/
parameters?: {
[key: string]: any;
};
parameters?: Record<string, any>;
}

@@ -518,5 +506,3 @@ export interface LogActionDefinition extends BaseActionDefinition<'log'> {

*/
query?: {
[key: string]: string;
};
query?: Record<string, string>;
/**

@@ -627,5 +613,3 @@ * The URL to which to make the request.

*/
actions?: {
[key: string]: ActionType;
};
actions?: Record<string, ActionType>;
/**

@@ -635,8 +619,4 @@ * The events that are supported by a block.

events?: {
listen?: {
[key: string]: EventType;
};
emit?: {
[key: string]: EventType;
};
listen?: Record<string, EventType>;
emit?: Record<string, EventType>;
};

@@ -761,5 +741,3 @@ /**

*/
resources?: {
[key: string]: ResourceDefinition;
};
resources?: Record<string, ResourceDefinition>;
/**

@@ -900,5 +878,3 @@ * The global theme for the app.

*/
messages: {
[messageId: string]: string;
};
messages: Record<string, string>;
}

@@ -905,0 +881,0 @@ /**

{
"name": "@appsemble/types",
"version": "0.15.4",
"version": "0.15.5",
"description": "TypeScript definitions reused within Appsemble internally",

@@ -31,7 +31,8 @@ "keywords": [

"dependencies": {
"@appsemble/sdk": "0.15.4",
"@fortawesome/fontawesome-common-types": "^0.2.30",
"@appsemble/sdk": "0.15.5",
"@fortawesome/fontawesome-common-types": "^0.2.32",
"openapi-types": "^7.0.1",
"type-fest": "^0.16.0"
"type-fest": "^0.18.0",
"typescript-json-schema": "^0.43.0"
}
}

@@ -1,2 +0,2 @@

import type {
import {
Action,

@@ -9,8 +9,8 @@ BaseMessage,

} from '@appsemble/sdk/src/types';
import type { IconName } from '@fortawesome/fontawesome-common-types';
import type { OpenAPIV3 } from 'openapi-types';
import type { JsonObject, RequireExactlyOne } from 'type-fest';
import type { Definition } from 'typescript-json-schema';
import { IconName } from '@fortawesome/fontawesome-common-types';
import { OpenAPIV3 } from 'openapi-types';
import { JsonObject, RequireExactlyOne } from 'type-fest';
import { Definition } from 'typescript-json-schema';
export type { Theme };
export { Theme };

@@ -94,3 +94,3 @@ /**

*/
actions?: { [action: string]: ActionDefinition };
actions?: Record<string, ActionDefinition>;

@@ -103,4 +103,4 @@ /**

events?: {
listen?: { [listener: string]: string };
emit?: { [emitter: string]: string };
listen?: Record<string, string>;
emit?: Record<string, string>;
};

@@ -217,2 +217,12 @@

/**
* Returns the current date.
*/
'date.now': unknown;
/**
* Adds to a date.
*/
'date.add': string;
/**
* Compare all computed remapper values against each other.

@@ -250,7 +260,10 @@ *

*/
'object.from': {
[key: string]: Remapper;
};
'object.from': Record<string, Remapper>;
/**
* Assign properties to an existing object given some predefined mapper keys.
*/
'object.assign': Record<string, Remapper>;
/**
* Use a static value.

@@ -292,5 +305,3 @@ */

*/
values: {
[key: string]: Remapper;
};
values: Record<string, Remapper>;
};

@@ -301,5 +312,3 @@

*/
'string.replace': {
[regex: string]: string;
};
'string.replace': Record<string, string>;

@@ -320,13 +329,12 @@ user: keyof UserInfo;

delete: boolean;
subscriptions?: {
[id: string]: {
subscriptions?: Record<
string,
{
update: boolean;
delete: boolean;
};
};
}
>;
}
export interface SubscriptionResponse {
[type: string]: SubscriptionResponseResource;
}
export type SubscriptionResponse = Record<string, SubscriptionResponseResource>;

@@ -339,9 +347,10 @@ export interface Security {

};
roles: {
[role: string]: {
roles: Record<
string,
{
description?: string;
inherits?: string[];
defaultPage?: string;
};
};
}
>;
}

@@ -387,3 +396,3 @@

*/
query?: { [key: string]: string };
query?: Record<string, string>;

@@ -464,3 +473,3 @@ /**

*/
references?: { [property: string]: ResourceReference };
references?: Record<string, ResourceReference>;

@@ -577,3 +586,3 @@ /**

*/
parameters?: { [key: string]: any };
parameters?: Record<string, any>;
}

@@ -623,3 +632,3 @@

*/
query?: { [key: string]: string };
query?: Record<string, string>;

@@ -791,3 +800,3 @@ /**

*/
actions?: { [key: string]: ActionType };
actions?: Record<string, ActionType>;

@@ -798,4 +807,4 @@ /**

events?: {
listen?: { [key: string]: EventType };
emit?: { [key: string]: EventType };
listen?: Record<string, EventType>;
emit?: Record<string, EventType>;
};

@@ -944,3 +953,3 @@

*/
resources?: { [key: string]: ResourceDefinition };
resources?: Record<string, ResourceDefinition>;

@@ -1112,3 +1121,3 @@ /**

*/
messages: { [messageId: string]: string };
messages: Record<string, string>;
}

@@ -1115,0 +1124,0 @@

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