@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.
Files changed (96) hide show
  1. package/dist/bundle.d.ts +1828 -1832
  2. package/dist/bundle.js +32 -23
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/action-instances-accessors.d.ts +13 -10
  5. package/dist/dts/accessors/actions-accessors.d.ts +9 -9
  6. package/dist/dts/accessors/app-data-schema-instances-accessors.d.ts +3 -3
  7. package/dist/dts/accessors/app-data-schemas-accessors.d.ts +3 -3
  8. package/dist/dts/accessors/app-event-subscriptions-accessors.d.ts +3 -3
  9. package/dist/dts/accessors/app-event-types-accessors.d.ts +3 -3
  10. package/dist/dts/accessors/base-accessors.d.ts +8 -8
  11. package/dist/dts/accessors/connections-accessors.d.ts +15 -15
  12. package/dist/dts/accessors/customers-accessors.d.ts +5 -5
  13. package/dist/dts/accessors/data-link-table-instances-accessors.d.ts +3 -3
  14. package/dist/dts/accessors/data-link-tables-accessors.d.ts +3 -3
  15. package/dist/dts/accessors/data-sources-accessors.d.ts +14 -14
  16. package/dist/dts/accessors/external-event-subscriptions-accessors.d.ts +3 -3
  17. package/dist/dts/accessors/field-mapping-instances-accessors.d.ts +7 -7
  18. package/dist/dts/accessors/field-mappings-accessors.d.ts +7 -7
  19. package/dist/dts/accessors/flow-instances-accessors.d.ts +8 -8
  20. package/dist/dts/accessors/flow-runs-accessors.d.ts +3 -3
  21. package/dist/dts/accessors/flows-accessors.d.ts +7 -7
  22. package/dist/dts/accessors/integrations-accessors.d.ts +10 -10
  23. package/dist/dts/accessors/scenarios-accessors.d.ts +3 -3
  24. package/dist/dts/accessors/screens-accessors.d.ts +3 -3
  25. package/dist/dts/api-client.d.ts +3 -3
  26. package/dist/dts/auth/accessors.d.ts +2 -2
  27. package/dist/dts/client.d.ts +5 -5
  28. package/dist/dts/data-builder/index.d.ts +1 -1
  29. package/dist/dts/data-schema/arbitrary-fields.test.d.ts +1 -0
  30. package/dist/dts/data-schema/types.d.ts +1 -0
  31. package/dist/dts/error-tools/index.d.ts +1 -1
  32. package/dist/dts/errors/index.d.ts +24 -15
  33. package/dist/dts/formulas/base.d.ts +3 -1
  34. package/dist/dts/index.d.ts +2 -1
  35. package/dist/dts/index.umd.d.ts +2 -2
  36. package/dist/dts/integration-elements/connection-level-element.accessor.d.ts +5 -5
  37. package/dist/dts/integration-elements/integration-level-element.accessor.d.ts +5 -5
  38. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +119 -65
  39. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +69 -90
  40. package/dist/dts/workspace-elements/api/actions-api.d.ts +253 -339
  41. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +21 -21
  42. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +7 -7
  43. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +22 -22
  44. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +18 -18
  45. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +7 -7
  46. package/dist/dts/workspace-elements/api/connections-api.d.ts +90 -89
  47. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +50 -50
  48. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +7 -7
  49. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +55 -55
  50. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +62 -62
  51. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +40 -40
  52. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +40 -40
  53. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +35 -35
  54. package/dist/dts/workspace-elements/api/external-events-api.d.ts +20 -20
  55. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +166 -166
  56. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +96 -96
  57. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +128 -128
  58. package/dist/dts/workspace-elements/api/flows-api.d.ts +223 -223
  59. package/dist/dts/workspace-elements/api/integrations-api.d.ts +26 -26
  60. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +21 -21
  61. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +10 -10
  62. package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +4 -3
  63. package/dist/dts/workspace-elements/base/actions/index.d.ts +111 -1
  64. package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +11 -10
  65. package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +7 -7
  66. package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +7 -7
  67. package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +7 -7
  68. package/dist/dts/workspace-elements/base/connections/types.d.ts +11 -10
  69. package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +7 -7
  70. package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +7 -7
  71. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +10 -9
  72. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +8 -8
  73. package/dist/dts/workspace-elements/base/external-event-log-records/types.d.ts +4 -3
  74. package/dist/dts/workspace-elements/base/external-event-pulls/types.d.ts +4 -3
  75. package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +4 -3
  76. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +11 -10
  77. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +21 -21
  78. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +8 -8
  79. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +15 -14
  80. package/dist/dts/workspace-elements/base/flow-runs/flow-node-runs.d.ts +16 -16
  81. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +6 -5
  82. package/dist/dts/workspace-elements/base/flows/types.d.ts +15 -15
  83. package/dist/dts/workspace-elements/base/integrations/types.d.ts +48 -48
  84. package/dist/dts/workspace-elements/base/scenarios/types.d.ts +7 -7
  85. package/dist/dts/workspace-elements/errors.d.ts +2 -2
  86. package/dist/dts/workspace-elements/types.d.ts +53 -9
  87. package/dist/dts/workspace-elements-catalog/index.d.ts +3 -0
  88. package/dist/dts/workspaces/types.d.ts +2 -0
  89. package/dist/index.d.ts +2416 -2380
  90. package/dist/index.js +125 -118
  91. package/dist/index.js.map +1 -1
  92. package/dist/index.module.d.mts +2416 -2380
  93. package/dist/index.module.mjs +117 -113
  94. package/dist/index.module.mjs.map +1 -1
  95. package/package.json +1 -3
  96. 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 { IntegrationAppApiClient } from '../api-client';
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: IntegrationAppApiClient);
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: IntegrationAppApiClient, integrationSelector: string);
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?: any;
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?: any[] | undefined;
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?: any[] | undefined;
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 { IntegrationAppApiClient } from '../api-client';
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: IntegrationAppApiClient);
5
+ constructor(client: MembraneApiClient);
6
6
  }
7
7
  export declare class ScenarioAccessor extends ElementAccessor<Scenario, UpdateScenarioRequest> {
8
- constructor(client: IntegrationAppApiClient, selector: string);
8
+ constructor(client: MembraneApiClient, selector: string);
9
9
  }
@@ -1,9 +1,9 @@
1
- import { IntegrationAppApiClient } from '../api-client';
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: IntegrationAppApiClient);
5
+ constructor(client: MembraneApiClient);
6
6
  }
7
7
  export declare class ScreenAccessor extends ElementAccessor<Screen, UpdateScreenRequest, ScreenSelector> {
8
- constructor(client: IntegrationAppApiClient, selector: ScreenSelector | string);
8
+ constructor(client: MembraneApiClient, selector: ScreenSelector | string);
9
9
  }
@@ -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 IntegrationAppClientOptions {
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 IntegrationAppApiClient {
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, }?: IntegrationAppClientOptions);
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 { IntegrationAppApiClient } from '../api-client';
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: IntegrationAppApiClient);
5
+ constructor(client: MembraneApiClient);
6
6
  get(): Promise<Customer>;
7
7
  patch(data: Partial<{
8
8
  credentials: any;
@@ -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 { IntegrationAppApiClient, IntegrationAppClientOptions } from './api-client';
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 OpenIntegrationAppConfigurationOptions extends OpenConfigurationOptions {
6
+ interface OpenMembraneConfigurationOptions extends OpenConfigurationOptions {
7
7
  }
8
- export declare class IntegrationAppClient extends IntegrationAppApiClient {
9
- constructor(options: IntegrationAppClientOptions);
8
+ export declare class MembraneClient extends MembraneApiClient {
9
+ constructor(options: MembraneClientOptions);
10
10
  get self(): SelfAccessor;
11
11
  get flows(): FlowsAccessor;
12
- open({ onClose }?: OpenIntegrationAppConfigurationOptions): Promise<void>;
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 resolveValue<T = unknown>(value: unknown, params: ResolveFormulaParams): Promise<T>;
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 {};
@@ -33,5 +33,6 @@ export interface DataSchema {
33
33
  isSensitive?: boolean;
34
34
  referenceCollectionPath?: string;
35
35
  referenceCollectionUri?: string;
36
+ [key: string]: any;
36
37
  }
37
38
  export declare const DataSchema: z.ZodType<DataSchema>;
@@ -1,3 +1,3 @@
1
1
  import { ErrorData } from '../errors';
2
2
  export declare function getErrorFromData(data: any): any;
3
- export declare function extractIntegrationAppErrorData(error: any): ErrorData;
3
+ export declare function extractMembraneErrorData(error: any): ErrorData;
@@ -28,49 +28,58 @@ export declare enum ConnectionErrorKey {
28
28
  export declare enum ConcurrencyErrorKey {
29
29
  LOCK_TIMEOUT = "lock_timeout"
30
30
  }
31
- export declare const ErrorDataSchema: any;
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 isIntegrationAppError(error: any): any;
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 IntegrationAppError extends Error {
42
- isIntegrationAppError: true;
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 IntegrationAppError {
55
+ export declare class InternalError extends MembraneError {
47
56
  constructor(arg: ErrorConstructorArg);
48
57
  }
49
- export declare class BadRequestError extends IntegrationAppError {
58
+ export declare class BadRequestError extends MembraneError {
50
59
  constructor(arg: ErrorConstructorArg);
51
60
  }
52
- export declare class ConcurrencyError extends IntegrationAppError {
61
+ export declare class ConcurrencyError extends MembraneError {
53
62
  constructor(arg: ErrorConstructorArg);
54
63
  }
55
- export declare class ConfigurationError extends IntegrationAppError {
64
+ export declare class ConfigurationError extends MembraneError {
56
65
  constructor(arg: ErrorConstructorArg);
57
66
  }
58
- export declare class FlowInstanceSetupError extends IntegrationAppError {
67
+ export declare class FlowInstanceSetupError extends MembraneError {
59
68
  constructor(arg: ErrorConstructorArg);
60
69
  }
61
- export declare class FlowRunError extends IntegrationAppError {
70
+ export declare class FlowRunError extends MembraneError {
62
71
  constructor(arg: ErrorConstructorArg);
63
72
  }
64
- export declare class ActionRunError extends IntegrationAppError {
73
+ export declare class ActionRunError extends MembraneError {
65
74
  constructor(arg: ErrorConstructorArg);
66
75
  }
67
- export declare class ActionInstanceSetupError extends IntegrationAppError {
76
+ export declare class ActionInstanceSetupError extends MembraneError {
68
77
  constructor(arg: ErrorConstructorArg);
69
78
  }
70
- export declare class UnitRunError extends IntegrationAppError {
79
+ export declare class UnitRunError extends MembraneError {
71
80
  constructor(arg: ErrorConstructorArg);
72
81
  }
73
- export declare class ConnectionError extends IntegrationAppError {
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 IntegrationAppError {
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;
@@ -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';
@@ -1,2 +1,2 @@
1
- import { IntegrationAppClient } from './client';
2
- export default IntegrationAppClient;
1
+ import { MembraneClient } from './client';
2
+ export default MembraneClient;
@@ -1,13 +1,13 @@
1
- import { IntegrationAppApiClient } from '../api-client';
1
+ import { MembraneApiClient } from '../api-client';
2
2
  import { PaginationResponse } from '../entity-repository';
3
3
  export declare class ConnectionLevelElementAccessor<Element, UpdateElement> {
4
- protected client: IntegrationAppApiClient;
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: IntegrationAppApiClient, connectionSelector: string, selector: string, elementKey: string, query: Record<string, any>);
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: IntegrationAppApiClient;
24
+ protected client: MembraneApiClient;
25
25
  protected connectionSelector: string;
26
26
  protected elementKey: string;
27
- constructor(client: IntegrationAppApiClient, connectionSelector: string, elementKey: string);
27
+ constructor(client: MembraneApiClient, connectionSelector: string, elementKey: string);
28
28
  list(query?: Query): Promise<PaginationResponse<Element[]>>;
29
29
  }
@@ -1,12 +1,12 @@
1
- import { IntegrationAppApiClient } from '../api-client';
1
+ import { MembraneApiClient } from '../api-client';
2
2
  import { PaginationResponse } from '../entity-repository';
3
3
  export declare class IntegrationLevelElementAccessor<Element, UpdateElementData> {
4
- protected client: IntegrationAppApiClient;
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: IntegrationAppApiClient, integrationSelector: string, elementSelector: string, elementKey: string);
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: IntegrationAppApiClient;
18
+ protected client: MembraneApiClient;
19
19
  protected integrationSelector: string;
20
20
  protected elementKey: string;
21
21
  protected endpoint: string;
22
- constructor(client: IntegrationAppApiClient, integrationSelector: string, elementKey: string);
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
  }