Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@buildable/types

Package Overview
Dependencies
Maintainers
5
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buildable/types - npm Package Compare versions

Comparing version
0.0.16
to
0.1.0
+2
-1
apis/destination.api.types.ts

@@ -9,3 +9,4 @@ import { DestinationConfig, DestinationPlatforms } from '../platforms';

config: DestinationConfig<T>;
label: string
label: string;
key?: string;
}

@@ -12,0 +13,0 @@

@@ -0,1 +1,3 @@

import { Event } from '../events';
export interface Settings {

@@ -17,3 +19,3 @@ startToCloseTimeout?:

type: 'javascript';
func: (event: any, context?: any) => any;
func: (event: Event, context?: Record<string, unknown>) => unknown;
}

@@ -27,4 +29,4 @@

method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
headers: object;
data: object;
headers?: object;
data?: object;
};

@@ -36,2 +38,3 @@ settings?: Settings;

label: string;
key?: string;
source: {

@@ -38,0 +41,0 @@ key: string;

@@ -11,2 +11,3 @@ import { SourceEvents } from '../events';

label: string;
key?: string;
}

@@ -13,0 +14,0 @@

@@ -0,1 +1,50 @@

import { Ownership } from "./generic";
import { EnvironmentTypes } from "./pipeline";
export interface Event {
_id: string;
key: string;
topic?: string;
environment: EnvironmentTypes;
body: any;
query?: any;
headers?: any;
createdAt?: number;
createdDate?: Date;
arrivedAt: number;
arrivedDate: Date;
state: 'pending' | 'acknowledged' | 'cancelled' | 'dropped';
ttl: number;
_v: number;
ownership: Ownership;
hashes: HashRecord[];
address: string;
privateKey: string;
publicKey: string;
signature?: string;
eventByteLength?: number;
metadata?: Record<string, string>;
duplicates?: EventDuplicates;
}
export type EventDuplicates = {
eventHashFound: number,
bodyHashFound: number,
modelBodyHashFound: number,
possibleCollision: boolean,
sampleEventKeysWithPossibleCollision: string[],
}
export type HashRecord = {
type: 'body' | 'event' | 'model::body';
hash: string;
}
export interface HistoryRecord {
enterState: string;
exitState: string;
timestamp: number;
updatedBy: string;
}
export type SourceEvents<T> = T extends 'stripe'

@@ -2,0 +51,0 @@ ? STRIPE

{
"name": "@buildable/types",
"version": "0.0.16",
"version": "0.1.0",
"description": "",

@@ -24,3 +24,3 @@ "main": "dist/index.js",

},
"gitHead": "e14d1b1c817096f804144de52b06121d6f1c0591"
"gitHead": "c159b884f5229626ec02a72498a23ce4628801ac"
}