New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@integration-app/sdk

Package Overview
Dependencies
Maintainers
4
Versions
445
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@integration-app/sdk - npm Package Compare versions

Comparing version 0.16.57 to 0.16.58

src/flows/nodes/delete-data-link.ts

80

bundle.d.ts

@@ -9,3 +9,3 @@ declare class PaginationQuery {

}
type OmitCommonNotEditableFields<T> = Omit<T, 'id' | 'archivedAt' | 'versionKey' | 'revision' | 'publishedRevision'>;
type OmitCommonNotEditableFields<T> = Omit<T, 'id' | 'archivedAt'>;

@@ -326,3 +326,3 @@ interface IntegrationAppClientOptions {

} & {
all: DataCollectionEventTypeSpec;
all?: DataCollectionEventTypeSpec;
};

@@ -337,5 +337,18 @@ interface DataCollectionFindRequest {

}
interface DataCollectionListRequest {
cursor?: string;
}
interface DataCollectionListResponse extends DataCollectionOperationResponse {
records: DataRecord[];
cursor?: string;
}
interface DataCollectionFindByIdResponse extends DataCollectionOperationResponse {
record: DataRecord;
}
interface DataCollectionMatchRequest {
query: Record<string, any>;
}
interface DataCollectionMatchResponse extends DataCollectionOperationResponse {
record: DataRecord;
}
interface DataCollectionCreateRequest {

@@ -481,5 +494,7 @@ fields: Record<string, any>;

key: string;
connectorStoreKey?: string;
name: string;
connectorType?: ConnectorType;
authType?: ConnectorAuthType;
parametersSchema?: DataSchema;
parameters?: any;

@@ -660,3 +675,2 @@ baseUri: string;

dependencyInstanceId?: string;
flowVersion?: string;
}

@@ -666,3 +680,2 @@ interface FlowInstanceSelector extends ConnectionSelector, ElementInstanceSelector {

flowKey?: string;
flowVersion?: string;
instanceKey?: string;

@@ -678,3 +691,2 @@ autoUpdate?: boolean;

enabled?: boolean;
flowVersion?: string;
}

@@ -840,9 +852,9 @@ interface UpdateFlowInstanceRequest {

flowTemplateId?: string;
versionKey?: string;
flowTemplateRevision?: string;
parametersSchema?: DataSchema;
nodes?: Record<string, FlowNode>;
autoCreateInstances?: boolean;
archivedAt?: string;
revision: string;
templateRevision?: string;
archivedAt?: string;
publishedRevision?: string;
}

@@ -862,5 +874,2 @@ declare enum FlowInstanceState {

flowTemplateId?: string;
flowVersion?: string;
flowRevision?: string;
isOldRevision?: boolean;
integrationId: string;

@@ -878,2 +887,3 @@ integration?: Integration;

state?: FlowInstanceState;
outdated?: boolean;
}

@@ -976,15 +986,5 @@ declare enum FlowInstanceNodeState {

interface EntityVersionFields {
versionKey: string;
revision: string;
publishedRevision?: string;
}
interface EntityInstanceVersionFields {
versionKey?: string;
revision?: string;
}
interface FindDataSourcesQuery extends PaginationQuery {
}
type CreateDataSourceRequest = Omit<DataSource, 'id' | 'dataSourceTemplateId' | 'archivedAt' | 'versionKey' | 'revision' | 'publishedRevision'>;
type CreateDataSourceRequest = Omit<DataSource, 'id' | 'dataSourceTemplateId' | 'archivedAt' | 'revision' | 'publishedRevision'>;
type UpdateDataSourceRequest = Partial<CreateDataSourceRequest>;

@@ -997,3 +997,2 @@ interface DataSourceInstanceSelector extends ConnectionSelector, FlowInstanceSelector, ElementInstanceSelector {

udm?: string;
versionKey?: string;
}

@@ -1018,3 +1017,3 @@ interface FindDataSourceInstancesQuery extends PaginationQuery {

}
type CreateDataSourceTemplateRequest = Omit<DataSourceTemplate, 'id' | 'archivedAt' | 'versionKey' | 'revision' | 'publishedRevision'>;
type CreateDataSourceTemplateRequest = Omit<DataSourceTemplate, 'id' | 'archivedAt'>;
type UpdateDataSourceTemplateRequest = Partial<CreateDataSourceTemplateRequest>;

@@ -1034,2 +1033,3 @@ interface FindDataSourceTemplatesQuery extends PaginationQuery {

constructor(client: IntegrationAppApiClient, idOrKey: string);
publish(): Promise<any>;
}

@@ -1060,2 +1060,4 @@ declare class DataSourceTemplateAccessor extends ElementAccessor<DataSourceTemplate, CreateDataSourceTemplateRequest, UpdateDataSourceTemplateRequest> {

findRecords(request?: DataCollectionFindRequest): Promise<DataCollectionFindResponse>;
listRecords(request?: DataCollectionListRequest): Promise<DataCollectionListResponse>;
matchRecord(request: DataCollectionMatchRequest): Promise<DataCollectionMatchResponse>;
findRecordById(id: string): Promise<DataCollectionFindByIdResponse>;

@@ -1070,6 +1072,8 @@ createRecord(request: DataCollectionCreateRequest): Promise<DataCollectionCreateResponse>;

interface DataSource extends EntityVersionFields {
interface DataSource {
id: string;
key: string;
name: string;
revision: string;
publishedRevision?: string;
dataSourceTemplateId?: string;

@@ -1096,6 +1100,7 @@ udm?: string;

}
interface DataSourceInstance extends EntityInstanceVersionFields {
interface DataSourceInstance {
id: string;
uuid: string;
userId: string;
revision: string;
user?: User;

@@ -1163,3 +1168,2 @@ dataSourceId?: string;

nodeKey?: string;
versionKey?: string;
}

@@ -1182,2 +1186,3 @@ type CreateFieldMappingTemplateRequest = OmitCommonNotEditableFields<FieldMappingTemplate>;

getAppSchema(): Promise<any>;
publish(): Promise<any>;
}

@@ -1189,6 +1194,6 @@ declare class FieldMappingTemplateAccessor extends ElementAccessor<FieldMappingTemplate, CreateFieldMappingTemplateRequest, UpdateFieldMappingTemplateRequest> {

}
declare class FieldMappingInstancesAccessor extends ElementInstanceListAccessor<IFieldMappingInstance, FindFieldMappingInstancesQuery> {
declare class FieldMappingInstancesAccessor extends ElementInstanceListAccessor<FieldMappingInstance, FindFieldMappingInstancesQuery> {
constructor(client: IntegrationAppApiClient);
}
declare class FieldMappingInstanceAccessor extends ElementInstanceAccessor<IFieldMappingInstance, FieldMappingInstanceSelector, CreateFieldMappingInstanceRequest, UpdateFieldMappingInstanceRequest> {
declare class FieldMappingInstanceAccessor extends ElementInstanceAccessor<FieldMappingInstance, FieldMappingInstanceSelector, CreateFieldMappingInstanceRequest, UpdateFieldMappingInstanceRequest> {
private client;

@@ -1206,6 +1211,8 @@ constructor(client: IntegrationAppApiClient, selector: string | FieldMappingInstanceSelector);

}
interface FieldMapping extends EntityVersionFields {
interface FieldMapping {
id: string;
name: string;
key: string;
revision: string;
publishedRevision?: string;
dataSourceId: string;

@@ -1234,5 +1241,6 @@ dataSourceKey: string;

}
interface IFieldMappingInstance extends EntityInstanceVersionFields {
interface FieldMappingInstance {
id: string;
userId: string;
revision: string;
user?: User;

@@ -1286,2 +1294,3 @@ connectionId: string;

constructor(client: IntegrationAppApiClient, idOrKey: string);
publish(): Promise<any>;
}

@@ -1299,6 +1308,8 @@ declare class AppEventSubscriptionsAccessor extends ElementInstanceListAccessor<AppEventSubscription, FindAppEventSubscriptionsQuery> {

interface AppEventType extends EntityVersionFields {
interface AppEventType {
id: string;
key: string;
name: string;
revision: string;
publishedRevision?: string;
subscribeRequest?: HttpRequestSpec;

@@ -1309,5 +1320,7 @@ example?: any;

userIdFormula?: any;
archivedAt?: string;
}
interface AppEventSubscription extends EntityInstanceVersionFields {
interface AppEventSubscription {
id: string;
revision: string;
appEventTypeId: string;

@@ -1323,2 +1336,3 @@ appEventType?: AppEventType;

subscriptionResponse?: any;
archivedAt?: string;
}

@@ -1325,0 +1339,0 @@ interface AppEvent {

{
"name": "@integration-app/sdk",
"version": "0.16.57",
"version": "0.16.58",
"description": "JavaScript SDK for Integration.app",

@@ -5,0 +5,0 @@ "author": "Integration.app",

@@ -45,2 +45,7 @@ import {

}
async publish() {
const { path, idOrKey } = this.options
return this.options.client.post(`/${path}/${idOrKey}/publish`)
}
}

@@ -47,0 +52,0 @@

@@ -5,6 +5,2 @@ import { DataSchema } from '../data-schema'

import { User } from '../users'
import {
EntityInstanceVersionFields,
EntityVersionFields,
} from '../integration-elements/versions'

@@ -14,3 +10,3 @@ export * from './api'

export interface AppEventType extends EntityVersionFields {
export interface AppEventType {
id: string

@@ -22,2 +18,6 @@

revision: string
publishedRevision?: string
subscribeRequest?: HttpRequestSpec

@@ -32,7 +32,11 @@

userIdFormula?: any
archivedAt?: string
}
export interface AppEventSubscription extends EntityInstanceVersionFields {
export interface AppEventSubscription {
id: string
revision: string
appEventTypeId: string

@@ -57,2 +61,4 @@

subscriptionResponse?: any
archivedAt?: string
}

@@ -59,0 +65,0 @@

@@ -146,3 +146,3 @@ import {

} & {
all: DataCollectionEventTypeSpec
all?: DataCollectionEventTypeSpec
}

@@ -149,0 +149,0 @@

@@ -39,2 +39,6 @@ import {

DataCollectionFindResponse,
DataCollectionListRequest,
DataCollectionListResponse,
DataCollectionMatchRequest,
DataCollectionMatchResponse,
DataCollectionSpec,

@@ -83,2 +87,7 @@ DataCollectionUpdateRequest,

}
async publish() {
const { path, idOrKey } = this.options
return this.options.client.post(`/${path}/${idOrKey}/publish`)
}
}

@@ -203,2 +212,14 @@

async listRecords(
request: DataCollectionListRequest = {},
): Promise<DataCollectionListResponse> {
return this.client.post(this.getPath('collection/list'), request)
}
async matchRecord(
request: DataCollectionMatchRequest,
): Promise<DataCollectionMatchResponse> {
return this.client.post(this.getPath('collection/match'), request)
}
async findRecordById(id: string): Promise<DataCollectionFindByIdResponse> {

@@ -205,0 +226,0 @@ return this.client.post(this.getPath('collection/find-by-id'), {

@@ -21,3 +21,2 @@ import { PaginationQuery, PaginationResponse } from '../entity-repository'

| 'archivedAt'
| 'versionKey'
| 'revision'

@@ -47,4 +46,2 @@ | 'publishedRevision'

udm?: string
versionKey?: string
}

@@ -94,3 +91,3 @@

DataSourceTemplate,
'id' | 'archivedAt' | 'versionKey' | 'revision' | 'publishedRevision'
'id' | 'archivedAt'
>

@@ -102,1 +99,13 @@

export interface FindDataSourceTemplatesQuery extends PaginationQuery {}
export interface FindDataSourceInstanceSyncsQuery extends PaginationQuery {
userId?: string
dataSourceId?: string
connectionId?: string
integrationId?: string
dataSourceInstanceId?: string
}

@@ -10,6 +10,2 @@ import { User } from '../users'

import { DataCollectionEventType } from '../data-collections'
import {
EntityInstanceVersionFields,
EntityVersionFields,
} from '../integration-elements/versions'

@@ -22,3 +18,3 @@ export const DEFAULT_PULL_UPDATES_INTERVAL_SECONDS = 60 * 5

export interface DataSource extends EntityVersionFields {
export interface DataSource {
id: string

@@ -30,2 +26,6 @@

revision: string
publishedRevision?: string
dataSourceTemplateId?: string

@@ -65,3 +65,3 @@

export interface DataSourceInstance extends EntityInstanceVersionFields {
export interface DataSourceInstance {
id: string

@@ -73,2 +73,4 @@

revision: string
user?: User

@@ -157,1 +159,19 @@

}
export interface DataSourceInstanceSync {
id: string
userId: string
dataSourceInstanceId: string
dataSourceInstance?: DataSourceInstance
integrationId: string
connectionId: string
datetime: string
collectedEventIds: string[]
}

@@ -11,5 +11,2 @@ export class PaginationQuery {

export type OmitCommonNotEditableFields<T> = Omit<
T,
'id' | 'archivedAt' | 'versionKey' | 'revision' | 'publishedRevision'
>
export type OmitCommonNotEditableFields<T> = Omit<T, 'id' | 'archivedAt'>

@@ -6,3 +6,3 @@ import {

FindFieldMappingTemplatesQuery,
IFieldMappingInstance,
FieldMappingInstance,
UpdateFieldMappingTemplateRequest,

@@ -73,2 +73,7 @@ } from '.'

}
async publish() {
const { path, idOrKey } = this.options
return this.options.client.post(`/${path}/${idOrKey}/publish`)
}
}

@@ -103,3 +108,3 @@

export class FieldMappingInstancesAccessor extends ElementInstanceListAccessor<
IFieldMappingInstance,
FieldMappingInstance,
FindFieldMappingInstancesQuery

@@ -113,3 +118,3 @@ > {

export class FieldMappingInstanceAccessor extends ElementInstanceAccessor<
IFieldMappingInstance,
FieldMappingInstance,
FieldMappingInstanceSelector,

@@ -116,0 +121,0 @@ CreateFieldMappingInstanceRequest,

@@ -6,3 +6,3 @@ import {

} from '../entity-repository'
import { FieldMapping, FieldMappingTemplate, IFieldMappingInstance } from '.'
import { FieldMapping, FieldMappingTemplate, FieldMappingInstance } from '.'
import { ConnectionSelector } from '../connections/api'

@@ -27,3 +27,3 @@ import { ElementInstanceSelector } from '../accessors'

export type FindFieldMappingInstancesResponse =
PaginationResponse<IFieldMappingInstance>
PaginationResponse<FieldMappingInstance>

@@ -65,4 +65,2 @@ export type CreateFieldMappingRequest =

nodeKey?: string
versionKey?: string
}

@@ -69,0 +67,0 @@

@@ -7,6 +7,2 @@ import { User } from '../users'

import { DataSchema } from '../data-schema'
import {
EntityInstanceVersionFields,
EntityVersionFields,
} from '../integration-elements/versions'

@@ -22,3 +18,3 @@ export * from './accessors'

export interface FieldMapping extends EntityVersionFields {
export interface FieldMapping {
id: string

@@ -30,2 +26,6 @@

revision: string
publishedRevision?: string
dataSourceId: string

@@ -74,3 +74,3 @@

export interface IFieldMappingInstance extends EntityInstanceVersionFields {
export interface FieldMappingInstance {
id: string

@@ -80,2 +80,4 @@

revision: string
user?: User

@@ -82,0 +84,0 @@

@@ -64,3 +64,2 @@ import { PaginationQuery, PaginationResponse } from '../entity-repository'

dependencyInstanceId?: string
flowVersion?: string
}

@@ -75,4 +74,2 @@

flowVersion?: string
instanceKey?: string

@@ -96,4 +93,2 @@

enabled?: boolean
flowVersion?: string
}

@@ -100,0 +95,0 @@

@@ -12,8 +12,2 @@ import { ErrorData } from '../errors'

export enum FlowVersionKey {
Production = 'production',
Draft = 'draft',
Test = 'test',
}
export interface FlowNode {

@@ -111,37 +105,2 @@ /**

export interface IFlowVersion {
id: string
/**
* Id of the flow this version is created for.
*/
flowId: string
/**
* Used to have multiple versions / drafts of the flow
*/
versionKey: string
/**
* Updates every time a flow is updated.
*/
revision: string
/**
* Flow template revision this version was created from.
*/
flowTemplateRevision?: string
/**
* DataSchema of parameters provided during the flow creation.
* Can be used to configure the flow logic.
*/
parametersSchema?: DataSchema
/**
* Flow Nodes in the format <key>: <node>
*/
nodes?: Record<string, FlowNode>
}
export interface Flow {

@@ -174,6 +133,3 @@ /**

/**
* Version of the flow (i.e. production, draft, etc)
*/
versionKey?: string
flowTemplateRevision?: string

@@ -197,12 +153,2 @@ /**

/**
* Updates every time a flow is updated.
*/
revision: string
/**
* Revision of the template this flow was created from.
*/
templateRevision?: string
/**
* If a flow was archived - the time it was archived at

@@ -212,2 +158,6 @@ * in the ISO format.

archivedAt?: string
revision: string
publishedRevision?: string
}

@@ -236,19 +186,2 @@

/**
* Version of the flow this instance was created for.
*/
flowVersion?: string
/**
* Revision of the flow this instance was created from.
* Used to detect if the instance needs to be refreshed.
*/
flowRevision?: string
/**
* Set to true if `flowRevision` differs from the current `revision` of the flow and version
* this flow instance is created from.
*/
isOldRevision?: boolean
integrationId: string

@@ -298,2 +231,4 @@

state?: FlowInstanceState
outdated?: boolean
}

@@ -300,0 +235,0 @@

@@ -6,3 +6,2 @@ import { FlowNodeSpec } from './base'

description: 'Link records between your app and external app',
requiresDataSpec: true,
})

@@ -6,3 +6,2 @@ import { FlowNodeSpec } from './base'

description: 'Find a link between records in your app and external app',
requiresDataSpec: true,
})

@@ -19,2 +19,3 @@ import ApiTrigger from './api-trigger'

import FindDataLink from './find-data-link'
import DeleteDataLink from './delete-data-link'
import ForEach from './for-each'

@@ -50,2 +51,3 @@ import RunJavascript from './run-javascript'

FindDataLink = 'find-data-link',
DeleteDataLink = 'delete-data-link',

@@ -90,2 +92,3 @@ ForEach = 'for-each',

[FlowNodeType.FindDataLink]: FindDataLink,
[FlowNodeType.DeleteDataLink]: DeleteDataLink,

@@ -92,0 +95,0 @@ [FlowNodeType.ForEach]: ForEach,

@@ -1,6 +0,6 @@

import { Flow, FlowInstance, FlowNode, IFlowVersion } from '.'
import { Flow, FlowInstance, FlowNode } from '.'
import { FlowNodeSpec, FLOW_NODE_SPECS } from './nodes'
export function getFlowNode(
flow: Flow | IFlowVersion | FlowInstance,
flow: Flow | FlowInstance,
nodeKey: string,

@@ -25,5 +25,3 @@ ): FlowNode {

*/
export function getRootNodeKeys(
flow: Flow | IFlowVersion | FlowInstance,
): string[] {
export function getRootNodeKeys(flow: Flow | FlowInstance): string[] {
const allNodeKeys = Object.keys(flow.nodes ?? {})

@@ -40,3 +38,3 @@ const allLinkKeys = Object.values(flow.nodes ?? {})

export function getChildNodeKeys(
flow: Flow | IFlowVersion | FlowInstance,
flow: Flow | FlowInstance,
nodeKey: string,

@@ -56,3 +54,3 @@ ): string[] {

export function getDownstreamNodeKeys(
flow: Flow | IFlowVersion | FlowInstance,
flow: Flow | FlowInstance,
nodeKey: string,

@@ -71,3 +69,3 @@ ): string[] {

export function getParentNodeKeys(
flow: Flow | IFlowVersion | FlowInstance,
flow: Flow | FlowInstance,
nodeKey: string,

@@ -85,3 +83,3 @@ ): string[] {

export function getUpstreamNodeKeys(
flow: Flow | IFlowVersion | FlowInstance,
flow: Flow | FlowInstance,
nodeKey: string,

@@ -103,5 +101,3 @@ ): string[] {

*/
export function getOrderedNodeKeys(
flow: Flow | IFlowVersion | FlowInstance,
): string[] {
export function getOrderedNodeKeys(flow: Flow | FlowInstance): string[] {
const rootNodeKeys = getRootNodeKeys(flow)

@@ -108,0 +104,0 @@ const orderedNodeKeys = rootNodeKeys

@@ -32,2 +32,1 @@ export * from './data-builder'

export { IntegrationAppClient } from './client'
export * from './integration-elements/versions'

@@ -5,2 +5,3 @@ import { PaginationQuery, PaginationResponse } from '../entity-repository'

import { ConnectorAuthType, ConnectorSpec, ConnectorType } from '../connectors'
import { DataSchema } from '../data-schema'

@@ -36,2 +37,4 @@ export * from './api'

connectorStoreKey?: string
/**

@@ -46,2 +49,4 @@ * User-readable name.

parametersSchema?: DataSchema
parameters?: any

@@ -48,0 +53,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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