@membranehq/sdk 0.5.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.d.ts +1828 -1832
- package/dist/bundle.js +32 -23
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +13 -10
- package/dist/dts/accessors/actions-accessors.d.ts +9 -9
- package/dist/dts/accessors/app-data-schema-instances-accessors.d.ts +3 -3
- package/dist/dts/accessors/app-data-schemas-accessors.d.ts +3 -3
- package/dist/dts/accessors/app-event-subscriptions-accessors.d.ts +3 -3
- package/dist/dts/accessors/app-event-types-accessors.d.ts +3 -3
- package/dist/dts/accessors/base-accessors.d.ts +8 -8
- package/dist/dts/accessors/connections-accessors.d.ts +15 -15
- package/dist/dts/accessors/customers-accessors.d.ts +5 -5
- package/dist/dts/accessors/data-link-table-instances-accessors.d.ts +3 -3
- package/dist/dts/accessors/data-link-tables-accessors.d.ts +3 -3
- package/dist/dts/accessors/data-sources-accessors.d.ts +14 -14
- package/dist/dts/accessors/external-event-subscriptions-accessors.d.ts +3 -3
- package/dist/dts/accessors/field-mapping-instances-accessors.d.ts +7 -7
- package/dist/dts/accessors/field-mappings-accessors.d.ts +7 -7
- package/dist/dts/accessors/flow-instances-accessors.d.ts +8 -8
- package/dist/dts/accessors/flow-runs-accessors.d.ts +3 -3
- package/dist/dts/accessors/flows-accessors.d.ts +7 -7
- package/dist/dts/accessors/integrations-accessors.d.ts +10 -10
- package/dist/dts/accessors/scenarios-accessors.d.ts +3 -3
- package/dist/dts/accessors/screens-accessors.d.ts +3 -3
- package/dist/dts/api-client.d.ts +3 -3
- package/dist/dts/auth/accessors.d.ts +2 -2
- package/dist/dts/client.d.ts +5 -5
- package/dist/dts/data-builder/index.d.ts +1 -1
- package/dist/dts/data-schema/arbitrary-fields.test.d.ts +1 -0
- package/dist/dts/data-schema/types.d.ts +1 -0
- package/dist/dts/error-tools/index.d.ts +1 -1
- package/dist/dts/errors/index.d.ts +24 -15
- package/dist/dts/formulas/base.d.ts +3 -1
- package/dist/dts/index.d.ts +2 -1
- package/dist/dts/index.umd.d.ts +2 -2
- package/dist/dts/integration-elements/connection-level-element.accessor.d.ts +5 -5
- package/dist/dts/integration-elements/integration-level-element.accessor.d.ts +5 -5
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +119 -65
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +69 -90
- package/dist/dts/workspace-elements/api/actions-api.d.ts +253 -339
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +21 -21
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +22 -22
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +18 -18
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/connections-api.d.ts +90 -89
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +50 -50
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +55 -55
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +62 -62
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +40 -40
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +40 -40
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +35 -35
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -20
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +166 -166
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +96 -96
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +128 -128
- package/dist/dts/workspace-elements/api/flows-api.d.ts +223 -223
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +26 -26
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +21 -21
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +10 -10
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/actions/index.d.ts +111 -1
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +11 -10
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -10
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +7 -7
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +10 -9
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +8 -8
- package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +4 -3
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +11 -10
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +21 -21
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +8 -8
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -14
- package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +16 -16
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +6 -5
- package/dist/dts/workspace-elements/base/flows/types.d.ts +15 -15
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +48 -48
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +7 -7
- package/dist/dts/workspace-elements/errors.d.ts +2 -2
- package/dist/dts/workspace-elements/types.d.ts +53 -9
- package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
- package/dist/dts/workspaces/types.d.ts +2 -0
- package/dist/index.d.ts +2416 -2380
- package/dist/index.js +125 -118
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +2416 -2380
- package/dist/index.module.mjs +117 -113
- package/dist/index.module.mjs.map +1 -1
- package/package.json +1 -3
- package/dist/dts/workspace-elements/base/actions/types.d.ts +0 -85
|
@@ -3,7 +3,7 @@ import { ElementAccessor, ElementListAccessor } from './base-accessors';
|
|
|
3
3
|
import { IntegrationLevelDataSourceAccessor, IntegrationLevelDataSourcesListAccessor } from './data-sources-accessors';
|
|
4
4
|
import { IntegrationLevelFieldMappingAccessor, IntegrationLevelFieldMappingsListAccessor } from './field-mappings-accessors';
|
|
5
5
|
import { IntegrationLevelFlowAccessor, IntegrationLevelFlowsListAccessor } from './flows-accessors';
|
|
6
|
-
import {
|
|
6
|
+
import { MembraneApiClient } from '../api-client';
|
|
7
7
|
import { OpenConfigurationOptions } from '../iframe';
|
|
8
8
|
import { Connection } from '../workspace-elements/api/connections-api';
|
|
9
9
|
import { CreateIntegrationRequest, UpdateIntegrationRequest, FindIntegrationsQuery, OpenNewConnectionOptions, Integration } from '../workspace-elements/api/integrations-api';
|
|
@@ -13,13 +13,13 @@ import { DataCollectionListItem, DataCollectionSpec } from '../workspace-element
|
|
|
13
13
|
interface OpenIntegrationUIIntegrationConfigurationOptions extends OpenConfigurationOptions {
|
|
14
14
|
}
|
|
15
15
|
export declare class IntegrationsAccessor extends ElementListAccessor<Integration, FindIntegrationsQuery, CreateIntegrationRequest> {
|
|
16
|
-
constructor(client:
|
|
16
|
+
constructor(client: MembraneApiClient);
|
|
17
17
|
}
|
|
18
18
|
export declare class IntegrationAccessor extends ElementAccessor<Integration, UpdateIntegrationRequest> {
|
|
19
19
|
private client;
|
|
20
20
|
private integrationSelector;
|
|
21
21
|
baseUri: string;
|
|
22
|
-
constructor(client:
|
|
22
|
+
constructor(client: MembraneApiClient, integrationSelector: string);
|
|
23
23
|
get actions(): IntegrationLevelActionsListAccessor;
|
|
24
24
|
action(actionSelector: string): IntegrationLevelActionAccessor;
|
|
25
25
|
get flows(): IntegrationLevelFlowsListAccessor;
|
|
@@ -51,7 +51,7 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
|
|
|
51
51
|
updatedAt: string;
|
|
52
52
|
userId: string;
|
|
53
53
|
integrationId: string;
|
|
54
|
-
error?:
|
|
54
|
+
error?: import("..").ErrorDataSchema | undefined;
|
|
55
55
|
integration?: {
|
|
56
56
|
id: string;
|
|
57
57
|
name: string;
|
|
@@ -60,14 +60,13 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
|
|
|
60
60
|
uuid?: string | undefined;
|
|
61
61
|
description?: string | undefined;
|
|
62
62
|
state?: import("..").WorkspaceElementState | undefined;
|
|
63
|
-
errors?:
|
|
63
|
+
errors?: import("..").ErrorDataSchema[] | undefined;
|
|
64
64
|
revision?: string | undefined;
|
|
65
|
-
isDeactivated?: boolean | undefined;
|
|
66
65
|
createdAt?: string | undefined;
|
|
67
66
|
updatedAt?: string | undefined;
|
|
68
67
|
archivedAt?: string | undefined;
|
|
68
|
+
isDeactivated?: boolean | undefined;
|
|
69
69
|
parameters?: any;
|
|
70
|
-
isTest?: boolean | undefined;
|
|
71
70
|
connectorId?: string | undefined;
|
|
72
71
|
connectorVersion?: string | undefined;
|
|
73
72
|
oAuthCallbackUri?: string | undefined;
|
|
@@ -81,13 +80,14 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
|
|
|
81
80
|
eventsCount?: number | undefined;
|
|
82
81
|
hasGlobalWebhooks?: boolean | undefined;
|
|
83
82
|
hasUdm?: boolean | undefined;
|
|
83
|
+
isTest?: boolean | undefined;
|
|
84
84
|
appUuid?: string | undefined;
|
|
85
85
|
authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
|
|
86
86
|
} | undefined;
|
|
87
87
|
state?: import("..").WorkspaceElementState | undefined;
|
|
88
|
-
errors?:
|
|
89
|
-
isDeactivated?: boolean | undefined;
|
|
88
|
+
errors?: import("..").ErrorDataSchema[] | undefined;
|
|
90
89
|
archivedAt?: string | undefined;
|
|
90
|
+
isDeactivated?: boolean | undefined;
|
|
91
91
|
authOptionKey?: string | undefined;
|
|
92
92
|
user?: {
|
|
93
93
|
id: string;
|
|
@@ -102,11 +102,11 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
|
|
|
102
102
|
isBillable?: boolean | undefined;
|
|
103
103
|
} | undefined;
|
|
104
104
|
isTest?: boolean | undefined;
|
|
105
|
+
meta?: Record<string, any> | undefined;
|
|
105
106
|
disconnected?: boolean | undefined;
|
|
106
107
|
isDefunct?: boolean | undefined;
|
|
107
108
|
lastActiveAt?: string | undefined;
|
|
108
109
|
nextCredentialsRefreshAt?: string | undefined;
|
|
109
|
-
meta?: Record<string, any> | undefined;
|
|
110
110
|
} | undefined>;
|
|
111
111
|
createConnection({ parameters, name }: {
|
|
112
112
|
parameters?: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MembraneApiClient } from '../api-client';
|
|
2
2
|
import { ElementAccessor, ElementListAccessor } from './base-accessors';
|
|
3
3
|
import { CreateScenarioRequest, FindScenariosQuery, Scenario, UpdateScenarioRequest } from '../workspace-elements/api/scenarios-api';
|
|
4
4
|
export declare class ScenariosAccessor extends ElementListAccessor<Scenario, FindScenariosQuery, CreateScenarioRequest> {
|
|
5
|
-
constructor(client:
|
|
5
|
+
constructor(client: MembraneApiClient);
|
|
6
6
|
}
|
|
7
7
|
export declare class ScenarioAccessor extends ElementAccessor<Scenario, UpdateScenarioRequest> {
|
|
8
|
-
constructor(client:
|
|
8
|
+
constructor(client: MembraneApiClient, selector: string);
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MembraneApiClient } from '../api-client';
|
|
2
2
|
import { ElementAccessor, ElementListAccessor } from './base-accessors';
|
|
3
3
|
import { CreateScreenRequest, FindScreensQuery, Screen, UpdateScreenRequest, ScreenSelector } from '../workspace-elements/api/screens-api';
|
|
4
4
|
export declare class ScreensAccessor extends ElementListAccessor<Screen, FindScreensQuery, CreateScreenRequest> {
|
|
5
|
-
constructor(client:
|
|
5
|
+
constructor(client: MembraneApiClient);
|
|
6
6
|
}
|
|
7
7
|
export declare class ScreenAccessor extends ElementAccessor<Screen, UpdateScreenRequest, ScreenSelector> {
|
|
8
|
-
constructor(client:
|
|
8
|
+
constructor(client: MembraneApiClient, selector: ScreenSelector | string);
|
|
9
9
|
}
|
package/dist/dts/api-client.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AxiosRequestConfig } from 'axios';
|
|
|
2
2
|
export declare const axios: import("axios").AxiosInstance;
|
|
3
3
|
export declare const DEFAULT_API_URI = "https://api.integration.app";
|
|
4
4
|
export declare const DEFAULT_UI_URI = "https://ui.integration.app";
|
|
5
|
-
export interface
|
|
5
|
+
export interface MembraneClientOptions {
|
|
6
6
|
token?: string;
|
|
7
7
|
fetchToken?: () => Promise<string>;
|
|
8
8
|
credentials?: any;
|
|
@@ -11,12 +11,12 @@ export interface IntegrationAppClientOptions {
|
|
|
11
11
|
uiUri?: string;
|
|
12
12
|
accessToken?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class MembraneApiClient {
|
|
15
15
|
apiUri: string;
|
|
16
16
|
uiUri: string;
|
|
17
17
|
token?: string;
|
|
18
18
|
protected fetchToken?: () => Promise<string>;
|
|
19
|
-
constructor({ uiUri, apiUri, accessToken, token, fetchToken, fetchCredentials, credentials, }?:
|
|
19
|
+
constructor({ uiUri, apiUri, accessToken, token, fetchToken, fetchCredentials, credentials, }?: MembraneClientOptions);
|
|
20
20
|
setCredentials(credentials: any): Promise<any>;
|
|
21
21
|
getToken(): Promise<string>;
|
|
22
22
|
get<T = any>(uri: string, queryParams?: Record<string, any>, options?: AxiosRequestConfig): Promise<T>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MembraneApiClient } from '../api-client';
|
|
2
2
|
import { Customer } from '../workspace-elements/api/customers-api';
|
|
3
3
|
export declare class SelfAccessor {
|
|
4
4
|
private client;
|
|
5
|
-
constructor(client:
|
|
5
|
+
constructor(client: MembraneApiClient);
|
|
6
6
|
get(): Promise<Customer>;
|
|
7
7
|
patch(data: Partial<{
|
|
8
8
|
credentials: any;
|
package/dist/dts/client.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { AppDataSchemaAccessor, AppDataSchemaInstanceAccessor, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventSubscriptionAccessor, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypesAccessor, DataLinkTableAccessor, DataLinkTableInstanceAccessor, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, FieldMappingAccessor, FieldMappingInstanceAccessor, FieldMappingInstancesAccessor, FieldMappingsAccessor, FlowAccessor, FlowInstanceAccessor, FlowInstancesAccessor, FlowsAccessor, FlowRunAccessor, FlowRunsAccessor, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionsAccessor, DataSourceAccessor, DataSourceInstanceAccessor, DataSourceInstancesAccessor, DataSourcesAccessor, ConnectionAccessor, ConnectionsAccessor, ActionAccessor, ActionInstanceAccessor, ActionInstancesAccessor, ActionsAccessor, IntegrationAccessor, IntegrationsAccessor, ScenarioAccessor, ScenariosAccessor, ScreenAccessor, ScreensAccessor, CustomerAccessor, CustomersAccessor } from './accessors/index';
|
|
2
|
-
import {
|
|
2
|
+
import { MembraneApiClient as MembraneApiClient, MembraneClientOptions as MembraneClientOptions } from './api-client';
|
|
3
3
|
import { SelfAccessor } from './auth';
|
|
4
4
|
import { OpenConfigurationOptions } from './iframe';
|
|
5
5
|
import { FlowInstanceSelector, FlowSelector, DataSourceInstanceSelector, DataSourceSelector, ActionInstanceSelector, ActionSelector, ScreenSelector, CustomerSelector, AppDataSchemaInstanceSelector, AppEventSubscriptionSelector, DataLinkTableInstanceSelector, FieldMappingInstanceSelector, FieldMappingSelector } from './workspace-elements/api';
|
|
6
|
-
interface
|
|
6
|
+
interface OpenMembraneConfigurationOptions extends OpenConfigurationOptions {
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
9
|
-
constructor(options:
|
|
8
|
+
export declare class MembraneClient extends MembraneApiClient {
|
|
9
|
+
constructor(options: MembraneClientOptions);
|
|
10
10
|
get self(): SelfAccessor;
|
|
11
11
|
get flows(): FlowsAccessor;
|
|
12
|
-
open({ onClose }?:
|
|
12
|
+
open({ onClose }?: OpenMembraneConfigurationOptions): Promise<void>;
|
|
13
13
|
action(selector: string | ActionSelector): ActionAccessor;
|
|
14
14
|
get actions(): ActionsAccessor;
|
|
15
15
|
screen(selector: string | ScreenSelector): ScreenAccessor;
|
|
@@ -9,7 +9,7 @@ export { isFormula };
|
|
|
9
9
|
export { hasFormulas };
|
|
10
10
|
export declare function buildData(value: any, variables?: any): any;
|
|
11
11
|
export declare function buildValue(value: any, variables: any): any;
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function __resolveValue<T = unknown>(value: unknown, params: ResolveFormulaParams): Promise<T>;
|
|
13
13
|
export declare function transformVars(value: any, transformations: Record<string, any>): any;
|
|
14
14
|
export declare function valueToString(value: any, variablesSchema: any): string;
|
|
15
15
|
export declare function resolveFormulas<T = unknown>(value: any, params: ResolveFormulaParams): Promise<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -28,49 +28,58 @@ export declare enum ConnectionErrorKey {
|
|
|
28
28
|
export declare enum ConcurrencyErrorKey {
|
|
29
29
|
LOCK_TIMEOUT = "lock_timeout"
|
|
30
30
|
}
|
|
31
|
-
export
|
|
31
|
+
export interface ErrorDataSchema {
|
|
32
|
+
type?: ErrorType;
|
|
33
|
+
key?: string;
|
|
34
|
+
message: string;
|
|
35
|
+
data?: any;
|
|
36
|
+
stack?: any;
|
|
37
|
+
causedByError?: ErrorDataSchema;
|
|
38
|
+
logs?: any[];
|
|
39
|
+
}
|
|
40
|
+
export declare const ErrorDataSchema: z.ZodType<ErrorDataSchema>;
|
|
32
41
|
interface ErrorDataFields extends z.infer<typeof ErrorDataSchema> {
|
|
33
42
|
}
|
|
34
43
|
export type ErrorConstructorArg = string | ErrorDataFields | Error;
|
|
35
|
-
export declare function
|
|
44
|
+
export declare function isMembraneError(error: any): any;
|
|
36
45
|
export declare class ErrorData implements ErrorDataFields {
|
|
37
46
|
constructor(arg: ErrorConstructorArg);
|
|
38
47
|
}
|
|
39
48
|
export interface ErrorData extends ErrorDataFields {
|
|
40
49
|
}
|
|
41
|
-
export declare class
|
|
42
|
-
|
|
50
|
+
export declare class MembraneError extends Error {
|
|
51
|
+
isMembraneError: true;
|
|
43
52
|
data: ErrorData;
|
|
44
53
|
constructor(arg: ErrorConstructorArg);
|
|
45
54
|
}
|
|
46
|
-
export declare class InternalError extends
|
|
55
|
+
export declare class InternalError extends MembraneError {
|
|
47
56
|
constructor(arg: ErrorConstructorArg);
|
|
48
57
|
}
|
|
49
|
-
export declare class BadRequestError extends
|
|
58
|
+
export declare class BadRequestError extends MembraneError {
|
|
50
59
|
constructor(arg: ErrorConstructorArg);
|
|
51
60
|
}
|
|
52
|
-
export declare class ConcurrencyError extends
|
|
61
|
+
export declare class ConcurrencyError extends MembraneError {
|
|
53
62
|
constructor(arg: ErrorConstructorArg);
|
|
54
63
|
}
|
|
55
|
-
export declare class ConfigurationError extends
|
|
64
|
+
export declare class ConfigurationError extends MembraneError {
|
|
56
65
|
constructor(arg: ErrorConstructorArg);
|
|
57
66
|
}
|
|
58
|
-
export declare class FlowInstanceSetupError extends
|
|
67
|
+
export declare class FlowInstanceSetupError extends MembraneError {
|
|
59
68
|
constructor(arg: ErrorConstructorArg);
|
|
60
69
|
}
|
|
61
|
-
export declare class FlowRunError extends
|
|
70
|
+
export declare class FlowRunError extends MembraneError {
|
|
62
71
|
constructor(arg: ErrorConstructorArg);
|
|
63
72
|
}
|
|
64
|
-
export declare class ActionRunError extends
|
|
73
|
+
export declare class ActionRunError extends MembraneError {
|
|
65
74
|
constructor(arg: ErrorConstructorArg);
|
|
66
75
|
}
|
|
67
|
-
export declare class ActionInstanceSetupError extends
|
|
76
|
+
export declare class ActionInstanceSetupError extends MembraneError {
|
|
68
77
|
constructor(arg: ErrorConstructorArg);
|
|
69
78
|
}
|
|
70
|
-
export declare class UnitRunError extends
|
|
79
|
+
export declare class UnitRunError extends MembraneError {
|
|
71
80
|
constructor(arg: ErrorConstructorArg);
|
|
72
81
|
}
|
|
73
|
-
export declare class ConnectionError extends
|
|
82
|
+
export declare class ConnectionError extends MembraneError {
|
|
74
83
|
constructor(arg: ErrorConstructorArg);
|
|
75
84
|
}
|
|
76
85
|
export declare class NotFoundError extends BadRequestError {
|
|
@@ -85,7 +94,7 @@ export declare class NotAuthenticatedError extends BadRequestError {
|
|
|
85
94
|
export declare class AccessDeniedError extends BadRequestError {
|
|
86
95
|
constructor(arg: ErrorConstructorArg);
|
|
87
96
|
}
|
|
88
|
-
export declare class CustomCodeError extends
|
|
97
|
+
export declare class CustomCodeError extends MembraneError {
|
|
89
98
|
constructor(arg: ErrorConstructorArg);
|
|
90
99
|
}
|
|
91
100
|
export {};
|
|
@@ -28,10 +28,12 @@ export interface ResolveFormulaParams {
|
|
|
28
28
|
dataLinkTableKey: string;
|
|
29
29
|
recordId: string;
|
|
30
30
|
}) => Promise<string | undefined>;
|
|
31
|
-
resolveLookup?: ({ lookup, schema, }: {
|
|
31
|
+
resolveLookup?: ({ lookup, schema, fullValue, }: {
|
|
32
32
|
lookup: LookupValue;
|
|
33
33
|
schema: DataSchema | undefined;
|
|
34
|
+
fullValue: unknown;
|
|
34
35
|
}) => Promise<string | undefined>;
|
|
36
|
+
fullValue?: unknown;
|
|
35
37
|
}
|
|
36
38
|
export declare abstract class DataBuilderFormulaBase<ArgsType = any> implements DataBuilderFormula {
|
|
37
39
|
type: DataBuilderFormulaType;
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ export * from './webhooks';
|
|
|
26
26
|
export * from './alerts';
|
|
27
27
|
export * from './accessors';
|
|
28
28
|
export * from './sse';
|
|
29
|
-
export { IntegrationAppClient } from './client';
|
|
29
|
+
export { MembraneClient as IntegrationAppClient } from './client';
|
|
30
|
+
export { MembraneClient as MembraneClient } from './client';
|
package/dist/dts/index.umd.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default
|
|
1
|
+
import { MembraneClient } from './client';
|
|
2
|
+
export default MembraneClient;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MembraneApiClient } from '../api-client';
|
|
2
2
|
import { PaginationResponse } from '../entity-repository';
|
|
3
3
|
export declare class ConnectionLevelElementAccessor<Element, UpdateElement> {
|
|
4
|
-
protected client:
|
|
4
|
+
protected client: MembraneApiClient;
|
|
5
5
|
protected connectionSelector: string;
|
|
6
6
|
protected selector: string;
|
|
7
7
|
protected elementKey: string;
|
|
8
8
|
protected query: Record<string, any>;
|
|
9
9
|
protected endpoint: string;
|
|
10
|
-
constructor(client:
|
|
10
|
+
constructor(client: MembraneApiClient, connectionSelector: string, selector: string, elementKey: string, query: Record<string, any>);
|
|
11
11
|
protected uri(path?: string, query?: {}): string;
|
|
12
12
|
getUniqueIdentifier(): string;
|
|
13
13
|
get(query?: {
|
|
@@ -21,9 +21,9 @@ export declare class ConnectionLevelElementAccessor<Element, UpdateElement> {
|
|
|
21
21
|
setup(): Promise<Element>;
|
|
22
22
|
}
|
|
23
23
|
export declare class ConnectionLevelElementsListAccessor<Element, Query> {
|
|
24
|
-
protected client:
|
|
24
|
+
protected client: MembraneApiClient;
|
|
25
25
|
protected connectionSelector: string;
|
|
26
26
|
protected elementKey: string;
|
|
27
|
-
constructor(client:
|
|
27
|
+
constructor(client: MembraneApiClient, connectionSelector: string, elementKey: string);
|
|
28
28
|
list(query?: Query): Promise<PaginationResponse<Element[]>>;
|
|
29
29
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MembraneApiClient } from '../api-client';
|
|
2
2
|
import { PaginationResponse } from '../entity-repository';
|
|
3
3
|
export declare class IntegrationLevelElementAccessor<Element, UpdateElementData> {
|
|
4
|
-
protected client:
|
|
4
|
+
protected client: MembraneApiClient;
|
|
5
5
|
protected integrationSelector: string;
|
|
6
6
|
protected elementSelector: string;
|
|
7
7
|
protected elementKey: string;
|
|
8
8
|
protected endpoint: string;
|
|
9
|
-
constructor(client:
|
|
9
|
+
constructor(client: MembraneApiClient, integrationSelector: string, elementSelector: string, elementKey: string);
|
|
10
10
|
getUniqueIdentifier(): string;
|
|
11
11
|
get(): Promise<Element>;
|
|
12
12
|
patch(data: Partial<UpdateElementData>): Promise<Element>;
|
|
@@ -15,11 +15,11 @@ export declare class IntegrationLevelElementAccessor<Element, UpdateElementData>
|
|
|
15
15
|
reset(): Promise<Element>;
|
|
16
16
|
}
|
|
17
17
|
export declare class IntegrationLevelElementsListAccessor<Element, Query, CreateElementData> {
|
|
18
|
-
protected client:
|
|
18
|
+
protected client: MembraneApiClient;
|
|
19
19
|
protected integrationSelector: string;
|
|
20
20
|
protected elementKey: string;
|
|
21
21
|
protected endpoint: string;
|
|
22
|
-
constructor(client:
|
|
22
|
+
constructor(client: MembraneApiClient, integrationSelector: string, elementKey: string);
|
|
23
23
|
list(query?: Query): Promise<PaginationResponse<Element>>;
|
|
24
24
|
create(data: CreateElementData): Promise<Element>;
|
|
25
25
|
}
|