@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.mjs
CHANGED
|
@@ -3747,6 +3747,9 @@ const FieldMappingEditableProperties = BaseIntegrationLevelMembraneInterfaceEdit
|
|
|
3747
3747
|
}).extend(FieldMappingSpecificProperties.shape);
|
|
3748
3748
|
const FieldMappingExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FieldMappingSpecificProperties.shape).omit({
|
|
3749
3749
|
connectionId: true,
|
|
3750
|
+
fieldMappingId: true,
|
|
3751
|
+
universalFieldMappingId: true,
|
|
3752
|
+
dataSourceId: true,
|
|
3750
3753
|
});
|
|
3751
3754
|
const FieldMappingReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3752
3755
|
...TenantLayerElement.partial().shape,
|
|
@@ -9156,6 +9159,8 @@ const WriteableConnectorFields = z
|
|
|
9156
9159
|
.extend(WritableConnectorVersionData.shape);
|
|
9157
9160
|
const ConnectorExportProperties = WriteableConnectorFields.extend({
|
|
9158
9161
|
uuid: z.string().optional(),
|
|
9162
|
+
}).omit({
|
|
9163
|
+
externalAppId: true,
|
|
9159
9164
|
});
|
|
9160
9165
|
const UpdateConnectorRequest = WriteableConnectorFields;
|
|
9161
9166
|
const CreateConnectorRequest = WriteableConnectorFields.extend({
|
|
@@ -9217,6 +9222,8 @@ const DataSourceExportProperties = BaseIntegrationLevelMembraneInterfaceExportPr
|
|
|
9217
9222
|
})
|
|
9218
9223
|
.omit({
|
|
9219
9224
|
connectionId: true,
|
|
9225
|
+
dataSourceId: true,
|
|
9226
|
+
universalDataSourceId: true,
|
|
9220
9227
|
});
|
|
9221
9228
|
const DataSourceReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
9222
9229
|
...TenantLayerElement.partial().shape,
|
|
@@ -9707,6 +9714,8 @@ const FlowEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProp
|
|
|
9707
9714
|
}).extend(FlowSpecificProperties.shape);
|
|
9708
9715
|
const FlowExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(FlowSpecificProperties.shape).omit({
|
|
9709
9716
|
connectionId: true,
|
|
9717
|
+
flowId: true,
|
|
9718
|
+
universalFlowId: true,
|
|
9710
9719
|
});
|
|
9711
9720
|
const FlowReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
9712
9721
|
...TenantLayerElement.partial().shape,
|
|
@@ -9828,7 +9837,10 @@ const IntegrationEditableProperties = BaseMembraneInterfaceEditableProperties.ex
|
|
|
9828
9837
|
parameters: z.record(z.string(), z.any()).optional(),
|
|
9829
9838
|
optionsConfig: IntegrationOptions.optional(),
|
|
9830
9839
|
});
|
|
9831
|
-
const IntegrationExportProperties = IntegrationEditableProperties
|
|
9840
|
+
const IntegrationExportProperties = IntegrationEditableProperties.omit({
|
|
9841
|
+
connectorId: true,
|
|
9842
|
+
externalAppId: true,
|
|
9843
|
+
});
|
|
9832
9844
|
const AppliedToIntegrations = (elementSchema) => z.array(z.object({
|
|
9833
9845
|
element: elementSchema,
|
|
9834
9846
|
integration: BaseIntegration,
|
|
@@ -9927,6 +9939,7 @@ const DataLinkTableSpecificProperties = z.object({
|
|
|
9927
9939
|
const DataLinkTableEditableProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape);
|
|
9928
9940
|
const DataLinkTableExportProperties = BaseMembraneInterfaceEditableProperties.extend(DataLinkTableSpecificProperties.shape).omit({
|
|
9929
9941
|
connectionId: true,
|
|
9942
|
+
dataLinkTableId: true,
|
|
9930
9943
|
});
|
|
9931
9944
|
const DataLinkTableReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
9932
9945
|
...TenantLayerElement.partial().shape,
|
|
@@ -10024,7 +10037,9 @@ const AppDataSchemaSpecificProperties = z.object({
|
|
|
10024
10037
|
code: z.string().optional(),
|
|
10025
10038
|
});
|
|
10026
10039
|
const AppDataSchemaEditableProperties = BaseMembraneInterfaceEditableProperties.extend(AppDataSchemaSpecificProperties.shape);
|
|
10027
|
-
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.
|
|
10040
|
+
const AppDataSchemaExportProperties = AppDataSchemaEditableProperties.omit({
|
|
10041
|
+
appDataSchemaId: true,
|
|
10042
|
+
});
|
|
10028
10043
|
const AppDataSchemaReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
10029
10044
|
...TenantLayerElement.partial().shape,
|
|
10030
10045
|
appDataSchemaRevision: z.string().optional(),
|
|
@@ -10354,6 +10369,7 @@ const ConnectionExportProperties = ConnectionEditableProperties.omit({
|
|
|
10354
10369
|
credentials: true,
|
|
10355
10370
|
connectorParameters: true,
|
|
10356
10371
|
input: true,
|
|
10372
|
+
externalAppId: true,
|
|
10357
10373
|
});
|
|
10358
10374
|
const ConnectionTestResponse = z.object({
|
|
10359
10375
|
success: z.boolean(),
|
|
@@ -10437,7 +10453,7 @@ const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true })
|
|
|
10437
10453
|
theme: z.enum(['light', 'dark', 'auto']).optional(),
|
|
10438
10454
|
});
|
|
10439
10455
|
|
|
10440
|
-
const ListPublicConnectorsQuery = PaginationQuery.extend({
|
|
10456
|
+
const ListPublicConnectorsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
|
|
10441
10457
|
search: z.string().optional(),
|
|
10442
10458
|
});
|
|
10443
10459
|
|
|
@@ -10515,7 +10531,7 @@ const FindDataSourceInstanceSyncsQuery = ListDataSourceInstancesForConnectionQue
|
|
|
10515
10531
|
dataSourceInstanceId: z.string().optional(),
|
|
10516
10532
|
});
|
|
10517
10533
|
|
|
10518
|
-
const ListExternalAppsQuery = PaginationQuery.extend({
|
|
10534
|
+
const ListExternalAppsQuery = PaginationQuery.merge(IncludeArchivedQuery).extend({
|
|
10519
10535
|
search: z.string().optional(),
|
|
10520
10536
|
category: z
|
|
10521
10537
|
.string()
|
|
@@ -10668,7 +10684,8 @@ const FindIntegrationsQuery = z
|
|
|
10668
10684
|
appUuid: z.string().optional(),
|
|
10669
10685
|
})
|
|
10670
10686
|
.merge(PaginationQuery)
|
|
10671
|
-
.merge(SearchQuery)
|
|
10687
|
+
.merge(SearchQuery)
|
|
10688
|
+
.merge(IncludeArchivedQuery);
|
|
10672
10689
|
const IntegrationAuthUi = z.object({
|
|
10673
10690
|
schema: z.any().optional(),
|
|
10674
10691
|
helpUri: z.string().optional(),
|
|
@@ -10775,7 +10792,8 @@ const FindCustomersQuery = z
|
|
|
10775
10792
|
}),
|
|
10776
10793
|
})
|
|
10777
10794
|
.merge(PaginationQuery)
|
|
10778
|
-
.merge(SearchQuery)
|
|
10795
|
+
.merge(SearchQuery)
|
|
10796
|
+
.merge(IncludeArchivedQuery);
|
|
10779
10797
|
const CustomerSelector = z.object({ id: z.string() });
|
|
10780
10798
|
const CustomerApiResponse = BaseCustomer;
|
|
10781
10799
|
const TenantSelfResponse = BaseCustomer.extend({
|
|
@@ -12741,6 +12759,8 @@ var AlertType;
|
|
|
12741
12759
|
AlertType["totalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
|
|
12742
12760
|
AlertType["instantTasksQueueSize"] = "instantTasksQueueSize";
|
|
12743
12761
|
AlertType["queuedTasksQueueSize"] = "queuedTasksQueueSize";
|
|
12762
|
+
AlertType["flowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
|
|
12763
|
+
AlertType["eventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
|
|
12744
12764
|
AlertType["parallelApiRequests"] = "parallelApiRequests";
|
|
12745
12765
|
AlertType["testAlert"] = "testAlert";
|
|
12746
12766
|
})(AlertType || (AlertType = {}));
|
|
@@ -12776,6 +12796,8 @@ const ALERT_TYPE_CATEGORIES = {
|
|
|
12776
12796
|
[AlertType.totalNumberOfWorkspaceElements]: AlertCategory.WORKSPACE_SIZE,
|
|
12777
12797
|
[AlertType.instantTasksQueueSize]: AlertCategory.WORKSPACE_SIZE,
|
|
12778
12798
|
[AlertType.queuedTasksQueueSize]: AlertCategory.WORKSPACE_SIZE,
|
|
12799
|
+
[AlertType.flowRunsQueueSizePerConnection]: AlertCategory.WORKSPACE_SIZE,
|
|
12800
|
+
[AlertType.eventsProcessingQueueSizePerConnection]: AlertCategory.WORKSPACE_SIZE,
|
|
12779
12801
|
[AlertType.parallelApiRequests]: AlertCategory.RATE_LIMIT,
|
|
12780
12802
|
};
|
|
12781
12803
|
const Alert = z.object({
|
|
@@ -12873,6 +12895,8 @@ function getAlertTypeDisplayName(alertType) {
|
|
|
12873
12895
|
[AlertType.totalNumberOfWorkspaceElements]: 'Total Number of Workspace Elements',
|
|
12874
12896
|
[AlertType.instantTasksQueueSize]: 'Instant Tasks Queue Size',
|
|
12875
12897
|
[AlertType.queuedTasksQueueSize]: 'Queued Tasks Queue Size',
|
|
12898
|
+
[AlertType.flowRunsQueueSizePerConnection]: 'Flow Runs Queue Size Per Connection',
|
|
12899
|
+
[AlertType.eventsProcessingQueueSizePerConnection]: 'Events Processing Queue Size Per Connection',
|
|
12876
12900
|
[AlertType.parallelApiRequests]: 'Parallel API Requests',
|
|
12877
12901
|
};
|
|
12878
12902
|
return names[alertType] || alertType;
|
|
@@ -12960,6 +12984,8 @@ var WorkspaceSizeLimits;
|
|
|
12960
12984
|
WorkspaceSizeLimits["TotalNumberOfWorkspaceElements"] = "totalNumberOfWorkspaceElements";
|
|
12961
12985
|
WorkspaceSizeLimits["InstantTasksQueueSize"] = "instantTasksQueueSize";
|
|
12962
12986
|
WorkspaceSizeLimits["QueuedTasksQueueSize"] = "queuedTasksQueueSize";
|
|
12987
|
+
WorkspaceSizeLimits["FlowRunsQueueSizePerConnection"] = "flowRunsQueueSizePerConnection";
|
|
12988
|
+
WorkspaceSizeLimits["EventsProcessingQueueSizePerConnection"] = "eventsProcessingQueueSizePerConnection";
|
|
12963
12989
|
})(WorkspaceSizeLimits || (WorkspaceSizeLimits = {}));
|
|
12964
12990
|
var CustomerLimits;
|
|
12965
12991
|
(function (CustomerLimits) {
|