@membranehq/sdk 0.8.1 → 0.8.2
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 +41 -23
- package/dist/bundle.js +67 -7
- package/dist/bundle.js.map +1 -1
- package/dist/dts/sse/workspace-elements.d.ts +7 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +40 -22
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +4 -4
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +4 -4
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +2 -2
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -2
- package/dist/dts/workspace-elements/types.d.ts +19 -0
- package/dist/index.browser.d.mts +226 -182
- package/dist/index.browser.d.ts +226 -182
- package/dist/index.browser.js +57 -50
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +57 -51
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +226 -182
- package/dist/index.node.d.ts +226 -182
- package/dist/index.node.js +57 -50
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +57 -51
- package/dist/index.node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -2877,12 +2877,13 @@ class DataBuilderFormulaIterate extends DataBuilderFormulaBase {
|
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
2879
|
getSchema(variablesSchema) {
|
|
2880
|
-
|
|
2880
|
+
const sourceSchema = buildDataSchema(this.source, variablesSchema);
|
|
2881
|
+
const itemSchema = sourceSchema === null || sourceSchema === void 0 ? void 0 : sourceSchema.items;
|
|
2881
2882
|
const itemVariablesSchema = {
|
|
2882
2883
|
type: 'object',
|
|
2883
2884
|
properties: {
|
|
2884
2885
|
parent: variablesSchema,
|
|
2885
|
-
item:
|
|
2886
|
+
item: itemSchema,
|
|
2886
2887
|
index: { type: 'number' },
|
|
2887
2888
|
},
|
|
2888
2889
|
};
|
|
@@ -3369,6 +3370,44 @@ function getFormula(value) {
|
|
|
3369
3370
|
return undefined;
|
|
3370
3371
|
}
|
|
3371
3372
|
|
|
3373
|
+
const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
3374
|
+
if (typeof val === 'boolean')
|
|
3375
|
+
return val;
|
|
3376
|
+
if (typeof val === 'string') {
|
|
3377
|
+
const lower = val.toLowerCase();
|
|
3378
|
+
if (lower === 'true' || lower === '1')
|
|
3379
|
+
return true;
|
|
3380
|
+
if (lower === 'false' || lower === '0')
|
|
3381
|
+
return false;
|
|
3382
|
+
return Boolean(val);
|
|
3383
|
+
}
|
|
3384
|
+
if (typeof val === 'number')
|
|
3385
|
+
return Boolean(val);
|
|
3386
|
+
return Boolean(val);
|
|
3387
|
+
}, zod.z.boolean());
|
|
3388
|
+
const IncludeArchivedQuery = zod.z.object({
|
|
3389
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
3390
|
+
});
|
|
3391
|
+
const SearchQuery = zod.z.object({
|
|
3392
|
+
search: zod.z.string().optional(),
|
|
3393
|
+
});
|
|
3394
|
+
const PaginationQuery = zod.z.object({
|
|
3395
|
+
limit: zod.z.coerce.number().int().min(1).max(1000).optional(),
|
|
3396
|
+
cursor: zod.z.string().optional(),
|
|
3397
|
+
});
|
|
3398
|
+
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
3399
|
+
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
3400
|
+
userId: zod.z.string().optional(),
|
|
3401
|
+
instanceKey: zod.z.string().optional(),
|
|
3402
|
+
});
|
|
3403
|
+
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
3404
|
+
connectionId: zod.z.string().optional(),
|
|
3405
|
+
integrationId: zod.z.string().optional(),
|
|
3406
|
+
integrationKey: zod.z.string().optional(),
|
|
3407
|
+
});
|
|
3408
|
+
class PaginationResponse {
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3372
3411
|
exports.ConfigurationState = void 0;
|
|
3373
3412
|
(function (ConfigurationState) {
|
|
3374
3413
|
ConfigurationState["CONFIGURED"] = "CONFIGURED";
|
|
@@ -3461,6 +3500,13 @@ const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
|
|
|
3461
3500
|
connectionId: zod.z.string().optional(),
|
|
3462
3501
|
instanceKey: zod.z.string().optional(),
|
|
3463
3502
|
});
|
|
3503
|
+
const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInterfaceSelectorQuery.extend(CommonListElementsQuery.shape).extend({
|
|
3504
|
+
layer: zod.z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3505
|
+
integrationId: zod.z.string().optional(),
|
|
3506
|
+
parentId: zod.z.string().optional(),
|
|
3507
|
+
universalParentId: zod.z.string().optional(),
|
|
3508
|
+
userId: zod.z.string().optional(),
|
|
3509
|
+
});
|
|
3464
3510
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3465
3511
|
|
|
3466
3512
|
function mergeWithFormulas(a, b) {
|
|
@@ -9284,44 +9330,6 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9284
9330
|
error: ErrorDataSchema.optional(),
|
|
9285
9331
|
});
|
|
9286
9332
|
|
|
9287
|
-
const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
9288
|
-
if (typeof val === 'boolean')
|
|
9289
|
-
return val;
|
|
9290
|
-
if (typeof val === 'string') {
|
|
9291
|
-
const lower = val.toLowerCase();
|
|
9292
|
-
if (lower === 'true' || lower === '1')
|
|
9293
|
-
return true;
|
|
9294
|
-
if (lower === 'false' || lower === '0')
|
|
9295
|
-
return false;
|
|
9296
|
-
return Boolean(val);
|
|
9297
|
-
}
|
|
9298
|
-
if (typeof val === 'number')
|
|
9299
|
-
return Boolean(val);
|
|
9300
|
-
return Boolean(val);
|
|
9301
|
-
}, zod.z.boolean());
|
|
9302
|
-
const IncludeArchivedQuery = zod.z.object({
|
|
9303
|
-
includeArchived: zodBooleanCoercion().optional(),
|
|
9304
|
-
});
|
|
9305
|
-
const SearchQuery = zod.z.object({
|
|
9306
|
-
search: zod.z.string().optional(),
|
|
9307
|
-
});
|
|
9308
|
-
const PaginationQuery = zod.z.object({
|
|
9309
|
-
limit: zod.z.coerce.number().int().min(1).max(1000).optional(),
|
|
9310
|
-
cursor: zod.z.string().optional(),
|
|
9311
|
-
});
|
|
9312
|
-
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
9313
|
-
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
9314
|
-
userId: zod.z.string().optional(),
|
|
9315
|
-
instanceKey: zod.z.string().optional(),
|
|
9316
|
-
});
|
|
9317
|
-
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
9318
|
-
connectionId: zod.z.string().optional(),
|
|
9319
|
-
integrationId: zod.z.string().optional(),
|
|
9320
|
-
integrationKey: zod.z.string().optional(),
|
|
9321
|
-
});
|
|
9322
|
-
class PaginationResponse {
|
|
9323
|
-
}
|
|
9324
|
-
|
|
9325
9333
|
const ActionApiResponse = BaseAction.extend({
|
|
9326
9334
|
integration: BaseIntegration.optional(),
|
|
9327
9335
|
user: BaseCustomer.optional(),
|
|
@@ -9332,16 +9340,7 @@ const ActionApiResponse = BaseAction.extend({
|
|
|
9332
9340
|
outputSchema: DataSchema.optional(),
|
|
9333
9341
|
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9334
9342
|
});
|
|
9335
|
-
const FindActionsQuery =
|
|
9336
|
-
integrationId: zod.z.string().optional(),
|
|
9337
|
-
parentId: zod.z.string().optional(),
|
|
9338
|
-
universalParentId: zod.z.string().optional(),
|
|
9339
|
-
integrationKey: zod.z.string().optional(),
|
|
9340
|
-
search: zod.z.string().optional(),
|
|
9341
|
-
includeArchived: zodBooleanCoercion().optional(),
|
|
9342
|
-
userId: zod.z.string().optional(),
|
|
9343
|
-
connectionId: zod.z.string().optional(),
|
|
9344
|
-
});
|
|
9343
|
+
const FindActionsQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9345
9344
|
const CreateActionRequest = ActionEditableProperties;
|
|
9346
9345
|
const UpdateActionRequest = CreateActionRequest.extend({}).partial();
|
|
9347
9346
|
const CreateActionInstanceRequest = CreateActionRequest;
|
|
@@ -12357,6 +12356,13 @@ exports.WorkspaceSyncEventType = void 0;
|
|
|
12357
12356
|
(function (WorkspaceSyncEventType) {
|
|
12358
12357
|
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12359
12358
|
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12359
|
+
exports.ConnectorFileUpdateType = void 0;
|
|
12360
|
+
(function (ConnectorFileUpdateType) {
|
|
12361
|
+
ConnectorFileUpdateType["ConnectorFileUpdated"] = "connector-file-updated";
|
|
12362
|
+
ConnectorFileUpdateType["ConnectorFileDeleted"] = "connector-file-deleted";
|
|
12363
|
+
ConnectorFileUpdateType["ConnectorDirectoryRenamed"] = "connector-directory-renamed";
|
|
12364
|
+
ConnectorFileUpdateType["ConnectorDirectoryDeleted"] = "connector-directory-deleted";
|
|
12365
|
+
})(exports.ConnectorFileUpdateType || (exports.ConnectorFileUpdateType = {}));
|
|
12360
12366
|
|
|
12361
12367
|
exports.ScenarioTemplateCategory = void 0;
|
|
12362
12368
|
(function (ScenarioTemplateCategory) {
|
|
@@ -12919,6 +12925,7 @@ exports.FindFlowInstancesQuery = FindFlowInstancesQuery;
|
|
|
12919
12925
|
exports.FindFlowRunsQuery = FindFlowRunsQuery;
|
|
12920
12926
|
exports.FindFlowRunsResponse = FindFlowRunsResponse;
|
|
12921
12927
|
exports.FindFlowsQuery = FindFlowsQuery;
|
|
12928
|
+
exports.FindIntegrationLevelMembraneInterfaceQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
12922
12929
|
exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
|
12923
12930
|
exports.FindPackagesQuery = FindPackagesQuery;
|
|
12924
12931
|
exports.FlowAccessor = FlowAccessor;
|