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
0
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 1.2.4 to 1.2.5

src/orgs/index.ts

2

package.json
{
"name": "@integration-app/sdk",
"version": "1.2.4",
"version": "1.2.5",
"description": "JavaScript SDK for Integration.app",

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

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

export interface DataCollectionMethodRequest {
parameters?: Record<string, any>
}
export interface DataCollectionFindRequest {

@@ -174,3 +178,3 @@ query?: any

export interface DataCollectionListRequest {
export interface DataCollectionListRequest extends DataCollectionMethodRequest {
filter?: any

@@ -193,3 +197,4 @@ unifiedFilter?: any

export interface DataCollectionSearchRequest {
export interface DataCollectionSearchRequest
extends DataCollectionMethodRequest {
query: string

@@ -204,3 +209,4 @@ cursor?: string

export interface DataCollectionFindByIdRequest {
export interface DataCollectionFindByIdRequest
extends DataCollectionMethodRequest {
id: string

@@ -214,3 +220,4 @@ udm?: string

export interface DataCollectionMatchRequest {
export interface DataCollectionMatchRequest
extends DataCollectionMethodRequest {
query: Record<string, any>

@@ -223,3 +230,4 @@ }

export interface DataCollectionCreateRequest {
export interface DataCollectionCreateRequest
extends DataCollectionMethodRequest {
fields: Record<string, any>

@@ -232,3 +240,4 @@ }

export interface DataCollectionUpdateRequest {
export interface DataCollectionUpdateRequest
extends DataCollectionMethodRequest {
id: string

@@ -242,3 +251,4 @@ fields: Record<string, any>

export interface DataCollectionDeleteRequest {
export interface DataCollectionDeleteRequest
extends DataCollectionMethodRequest {
id: string

@@ -249,3 +259,4 @@ }

export interface DataCollectionSubscribeRequest {
export interface DataCollectionSubscribeRequest
extends DataCollectionMethodRequest {
events?: {

@@ -281,3 +292,4 @@ created?: boolean

export interface DataCollectionEventsRequest {
export interface DataCollectionEventsRequest
extends DataCollectionMethodRequest {
subscriptionId: string

@@ -284,0 +296,0 @@ cursor: string

import { OperationMapping } from './operations'
import { RestApiMapping } from './rest-api'
import { GraphQLApiMapping } from './graphql-api'
import { DataSchema } from '../data-schema'

@@ -38,2 +39,3 @@ export enum ConnectorMethodImplementationType {

isIncomplete?: boolean
parametersSchema?: DataSchema
}

@@ -40,0 +42,0 @@

@@ -9,6 +9,8 @@ import { HttpRequestMethod } from '../http-requests'

headers?: Record<string, string>
responseType?: 'arraybuffer' | 'stream'
returnFullResponse?: boolean
}
export interface RestApiClientOutput {
statusCode: number
status: number
headers?: Record<string, string>

@@ -36,3 +38,2 @@ data?: any

isSuccess: boolean
data?: any // Data to return if success == true
error?: any // Error to throw if success == false

@@ -58,9 +59,21 @@ }

query?: { [key: string]: any }
// Return not just body of the response, but also headers and status code
returnFullResponse?: boolean
responseHandlers?: Array<RestApiClientResponseHandler>
overrides?: RestApiClientOverride[]
dynamicOptions?: (input: RestApiClientInput) => RestApiClientOptions
/**
* @deprecated - use returnFullResponse in RestApiClientInput instead
*/
/**
* @deprecated - use responseType instead
*/
binary?: boolean
/**
* @deprecated - use responseType instead
*/
stream?: boolean
dynamicOptions?: (input: RestApiClientInput) => RestApiClientOptions
/**
* @deprecated - use responseHandlers
*/
onError?: (error: any) => any
}

@@ -246,10 +246,11 @@ import { ErrorDoc } from './error-doc-enum'

export function extractIntegrationAppErrorData(error: any): ErrorData {
const errorMessage = error.message || error.toString?.()
const data: ErrorData = error.isIntegrationAppError
? (error as IntegrationAppError).data
: new ErrorData({
message: error.message,
message: errorMessage,
type: ErrorType.INTERNAL,
})
if (!data.message) {
data.message = error.message
data.message = errorMessage
}

@@ -256,0 +257,0 @@ if (!data.data && error?.response?.data) {

@@ -49,3 +49,3 @@ import {

return this.client.get(
`${this.baseUri}/nodes${nodeKey}/runs/${qs.stringify(parameters)}`,
`${this.baseUri}/nodes/${nodeKey}/runs/${qs.stringify(parameters)}`,
)

@@ -55,3 +55,3 @@ }

async getNodeRun(nodeKey: string, runId: string) {
return this.client.get(`${this.baseUri}/nodes${nodeKey}/runs/${runId}`)
return this.client.get(`${this.baseUri}/nodes/${nodeKey}/runs/${runId}`)
}

@@ -58,0 +58,0 @@

@@ -35,3 +35,4 @@ export * from './accessors'

export * from './workspaces'
export * from './orgs'
export { IntegrationAppClient } from './client'

@@ -77,2 +77,4 @@ import { Connection } from '../connections'

hasUdm?: boolean
isTest?: boolean
}

@@ -79,0 +81,0 @@

@@ -28,2 +28,4 @@ import { CreateActionRequest } from '../actions'

orgId: string
engineAccessToken?: string

@@ -30,0 +32,0 @@

@@ -31,3 +31,3 @@ {

"React Lib": "http://console.integration.app/ref/react",
"REST API": "http://console.integration.app/ref/rest-api"
"REST API": "https://api-reference.integration.app"
},

@@ -34,0 +34,0 @@ "internalModule": "@integration-app/sdk"

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 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