@membranehq/sdk 0.18.0 → 0.18.1
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 +2 -0
- package/dist/bundle.js +6 -1
- package/dist/bundle.js.map +1 -1
- package/dist/dts/alerts/types.d.ts +14 -0
- package/dist/dts/orgs/types.d.ts +2 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +0 -1
- package/dist/dts/workspace-elements/api/connectors-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/customers-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-apps-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +4 -5
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +6 -7
- package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +0 -1
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +0 -2
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +0 -3
- package/dist/dts/workspace-elements/base/flows/index.d.ts +0 -2
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +8 -10
- package/dist/dts/workspaces/types.d.ts +7 -1
- package/dist/index.browser.d.mts +45 -32
- package/dist/index.browser.d.ts +45 -32
- package/dist/index.browser.js +32 -6
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +32 -6
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +45 -32
- package/dist/index.node.d.ts +45 -32
- package/dist/index.node.js +32 -6
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +32 -6
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.node.js
CHANGED
|
@@ -3770,6 +3770,9 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3770
3770
|
}).extend(FieldMappingSpecificProperties.shape);
|
|
3771
3771
|
const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
|
|
3772
3772
|
connectionId: true,
|
|
3773
|
+
fieldMappingId: true,
|
|
3774
|
+
universalFieldMappingId: true,
|
|
3775
|
+
dataSourceId: true,
|
|
3773
3776
|
});
|
|
3774
3777
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3775
3778
|
...TenantLayerElement.partial().shape,
|
|
@@ -9179,6 +9182,8 @@ const WriteableConnectorFields = z.z
|
|
|
9179
9182
|
.extend(WritableConnectorVersionData.shape);
|
|
9180
9183
|
const ConnectorExportProperties = WriteableConnectorFields.extend({
|
|
9181
9184
|
uuid: z.z.string().optional(),
|
|
9185
|
+
}).omit({
|
|
9186
|
+
externalAppId: true,
|
|
9182
9187
|
});
|
|
9183
9188
|
const UpdateConnectorRequest = WriteableConnectorFields;
|
|
9184
9189
|
const CreateConnectorRequest = WriteableConnectorFields.extend({
|
|
@@ -9240,6 +9245,8 @@ const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportPr
|
|
|
9240
9245
|
})
|
|
9241
9246
|
.omit({
|
|
9242
9247
|
connectionId: true,
|
|
9248
|
+
dataSourceId: true,
|
|
9249
|
+
universalDataSourceId: true,
|
|
9243
9250
|
});
|
|
9244
9251
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
9245
9252
|
...TenantLayerElement.partial().shape,
|
|
@@ -9730,6 +9737,8 @@ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProp
|
|
|
9730
9737
|
}).extend(FlowSpecificProperties.shape);
|
|
9731
9738
|
const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
|
|
9732
9739
|
connectionId: true,
|
|
9740
|
+
flowId: true,
|
|
9741
|
+
universalFlowId: true,
|
|
9733
9742
|
});
|
|
9734
9743
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
9735
9744
|
...TenantLayerElement.partial().shape,
|
|
@@ -9851,7 +9860,10 @@ const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.ex
|
|
|
9851
9860
|
parameters: z.z.record(z.z.string(), z.z.any()).optional(),
|
|
9852
9861
|
optionsConfig: IntegrationOptions.optional(),
|
|
9853
9862
|
});
|
|
9854
|
-
const IntegrationExportProperties = IntegrationEditableProperties
|
|
9863
|
+
const IntegrationExportProperties = IntegrationEditableProperties.omit({
|
|
9864
|
+
connectorId: true,
|
|
9865
|
+
externalAppId: true,
|
|
9866
|
+
});
|
|
9855
9867
|
const AppliedToIntegrations = (elementSchema) => z.z.array(z.z.object({
|
|
9856
9868
|
element: elementSchema,
|
|
9857
9869
|
integration: BaseIntegration,
|
|
@@ -9950,6 +9962,7 @@ const DataLinkTableSpecificProperties = z.z.object({
|
|
|
9950
9962
|
const DataLinkTableEditableProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
|
|
9951
9963
|
const DataLinkTableExportProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape).omit({
|
|
9952
9964
|
connectionId: true,
|
|
9965
|
+
dataLinkTableId: true,
|
|
9953
9966
|
});
|
|
9954
9967
|
const DataLinkTableReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
9955
9968
|
...TenantLayerElement.partial().shape,
|
|
@@ -10047,7 +10060,9 @@ const AppDataSchemaSpecificProperties = z.z.object({
|
|
|
10047
10060
|
code: z.z.string().optional(),
|
|
10048
10061
|
});
|
|
10049
10062
|
const AppDataSchemaEditableProperties = BaseMembraneInterfaceEditableProperties.extend(AppDataSchemaSpecificProperties.shape);
|
|
10050
|
-
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.
|
|
10063
|
+
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.omit({
|
|
10064
|
+
appDataSchemaId: true,
|
|
10065
|
+
});
|
|
10051
10066
|
const AppDataSchemaReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
10052
10067
|
...TenantLayerElement.partial().shape,
|
|
10053
10068
|
appDataSchemaRevision: z.z.string().optional(),
|
|
@@ -10377,6 +10392,7 @@ const ConnectionExportProperties = ConnectionEditableProperties.omit({
|
|
|
10377
10392
|
credentials: true,
|
|
10378
10393
|
connectorParameters: true,
|
|
10379
10394
|
input: true,
|
|
10395
|
+
externalAppId: true,
|
|
10380
10396
|
});
|
|
10381
10397
|
const ConnectionTestResponse = z.z.object({
|
|
10382
10398
|
success: z.z.boolean(),
|
|
@@ -10460,7 +10476,7 @@ const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true })
|
|
|
10460
10476
|
theme: z.z.enum(['light', 'dark', 'auto']).optional(),
|
|
10461
10477
|
});
|
|
10462
10478
|
|
|
10463
|
-
const ListPublicConnectorsQuery = PaginationQuery.extend({
|
|
10479
|
+
const ListPublicConnectorsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
|
|
10464
10480
|
search: z.z.string().optional(),
|
|
10465
10481
|
});
|
|
10466
10482
|
|
|
@@ -10538,7 +10554,7 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
|
|
|
10538
10554
|
dataSourceInstanceId: z.z.string().optional(),
|
|
10539
10555
|
});
|
|
10540
10556
|
|
|
10541
|
-
const ListExternalAppsQuery = PaginationQuery.extend({
|
|
10557
|
+
const ListExternalAppsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
|
|
10542
10558
|
search: z.z.string().optional(),
|
|
10543
10559
|
category: z.z
|
|
10544
10560
|
.string()
|
|
@@ -10691,7 +10707,8 @@ const FindIntegrationsQuery = z.z
|
|
|
10691
10707
|
appUuid: z.z.string().optional(),
|
|
10692
10708
|
})
|
|
10693
10709
|
.merge(PaginationQuery)
|
|
10694
|
-
.merge(SearchQuery)
|
|
10710
|
+
.merge(SearchQuery)
|
|
10711
|
+
.merge(IncludeArchivedQuery);
|
|
10695
10712
|
const IntegrationAuthUi = z.z.object({
|
|
10696
10713
|
schema: z.z.any().optional(),
|
|
10697
10714
|
helpUri: z.z.string().optional(),
|
|
@@ -10798,7 +10815,8 @@ const FindCustomersQuery = z.z
|
|
|
10798
10815
|
}),
|
|
10799
10816
|
})
|
|
10800
10817
|
.merge(PaginationQuery)
|
|
10801
|
-
.merge(SearchQuery)
|
|
10818
|
+
.merge(SearchQuery)
|
|
10819
|
+
.merge(IncludeArchivedQuery);
|
|
10802
10820
|
const CustomerSelector = z.z.object({ id: z.z.string() });
|
|
10803
10821
|
const CustomerApiResponse = BaseCustomer;
|
|
10804
10822
|
const TenantSelfResponse = BaseCustomer.extend({
|
|
@@ -12764,6 +12782,8 @@ exports.AlertType = void 0;
|
|
|
12764
12782
|
AlertType["totalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
|
|
12765
12783
|
AlertType["instantTasksQueueSize"] = "instantTasksQueueSize";
|
|
12766
12784
|
AlertType["queuedTasksQueueSize"] = "queuedTasksQueueSize";
|
|
12785
|
+
AlertType["flowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
|
|
12786
|
+
AlertType["eventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
|
|
12767
12787
|
AlertType["parallelApiRequests"] = "parallelApiRequests";
|
|
12768
12788
|
AlertType["testAlert"] = "testAlert";
|
|
12769
12789
|
})(exports.AlertType || (exports.AlertType = {}));
|
|
@@ -12799,6 +12819,8 @@ const ALERT_TYPE_CATEGORIES = {
|
|
|
12799
12819
|
[exports.AlertType.totalNumberOfWorkspaceElements]: exports.AlertCategory.WORKSPACE_SIZE,
|
|
12800
12820
|
[exports.AlertType.instantTasksQueueSize]: exports.AlertCategory.WORKSPACE_SIZE,
|
|
12801
12821
|
[exports.AlertType.queuedTasksQueueSize]: exports.AlertCategory.WORKSPACE_SIZE,
|
|
12822
|
+
[exports.AlertType.flowRunsQueueSizePerConnection]: exports.AlertCategory.WORKSPACE_SIZE,
|
|
12823
|
+
[exports.AlertType.eventsProcessingQueueSizePerConnection]: exports.AlertCategory.WORKSPACE_SIZE,
|
|
12802
12824
|
[exports.AlertType.parallelApiRequests]: exports.AlertCategory.RATE_LIMIT,
|
|
12803
12825
|
};
|
|
12804
12826
|
const Alert = z.z.object({
|
|
@@ -12896,6 +12918,8 @@ function getAlertTypeDisplayName(alertType) {
|
|
|
12896
12918
|
[exports.AlertType.totalNumberOfWorkspaceElements]: 'Total Number of Workspace Elements',
|
|
12897
12919
|
[exports.AlertType.instantTasksQueueSize]: 'Instant Tasks Queue Size',
|
|
12898
12920
|
[exports.AlertType.queuedTasksQueueSize]: 'Queued Tasks Queue Size',
|
|
12921
|
+
[exports.AlertType.flowRunsQueueSizePerConnection]: 'Flow Runs Queue Size Per Connection',
|
|
12922
|
+
[exports.AlertType.eventsProcessingQueueSizePerConnection]: 'Events Processing Queue Size Per Connection',
|
|
12899
12923
|
[exports.AlertType.parallelApiRequests]: 'Parallel API Requests',
|
|
12900
12924
|
};
|
|
12901
12925
|
return names[alertType] || alertType;
|
|
@@ -12983,6 +13007,8 @@ exports.WorkspaceSizeLimits = void 0;
|
|
|
12983
13007
|
WorkspaceSizeLimits["TotalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
|
|
12984
13008
|
WorkspaceSizeLimits["InstantTasksQueueSize"] = "instantTasksQueueSize";
|
|
12985
13009
|
WorkspaceSizeLimits["QueuedTasksQueueSize"] = "queuedTasksQueueSize";
|
|
13010
|
+
WorkspaceSizeLimits["FlowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
|
|
13011
|
+
WorkspaceSizeLimits["EventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
|
|
12986
13012
|
})(exports.WorkspaceSizeLimits || (exports.WorkspaceSizeLimits = {}));
|
|
12987
13013
|
exports.CustomerLimits = void 0;
|
|
12988
13014
|
(function (CustomerLimits) {
|