@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.node.js
CHANGED
|
@@ -2901,12 +2901,13 @@ class DataBuilderFormulaIterate extends DataBuilderFormulaBase {
|
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
2903
|
getSchema(variablesSchema) {
|
|
2904
|
-
|
|
2904
|
+
const sourceSchema = buildDataSchema(this.source, variablesSchema);
|
|
2905
|
+
const itemSchema = sourceSchema === null || sourceSchema === void 0 ? void 0 : sourceSchema.items;
|
|
2905
2906
|
const itemVariablesSchema = {
|
|
2906
2907
|
type: 'object',
|
|
2907
2908
|
properties: {
|
|
2908
2909
|
parent: variablesSchema,
|
|
2909
|
-
item:
|
|
2910
|
+
item: itemSchema,
|
|
2910
2911
|
index: { type: 'number' },
|
|
2911
2912
|
},
|
|
2912
2913
|
};
|
|
@@ -3393,6 +3394,44 @@ function getFormula(value) {
|
|
|
3393
3394
|
return undefined;
|
|
3394
3395
|
}
|
|
3395
3396
|
|
|
3397
|
+
const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
3398
|
+
if (typeof val === 'boolean')
|
|
3399
|
+
return val;
|
|
3400
|
+
if (typeof val === 'string') {
|
|
3401
|
+
const lower = val.toLowerCase();
|
|
3402
|
+
if (lower === 'true' || lower === '1')
|
|
3403
|
+
return true;
|
|
3404
|
+
if (lower === 'false' || lower === '0')
|
|
3405
|
+
return false;
|
|
3406
|
+
return Boolean(val);
|
|
3407
|
+
}
|
|
3408
|
+
if (typeof val === 'number')
|
|
3409
|
+
return Boolean(val);
|
|
3410
|
+
return Boolean(val);
|
|
3411
|
+
}, zod.z.boolean());
|
|
3412
|
+
const IncludeArchivedQuery = zod.z.object({
|
|
3413
|
+
includeArchived: zodBooleanCoercion().optional(),
|
|
3414
|
+
});
|
|
3415
|
+
const SearchQuery = zod.z.object({
|
|
3416
|
+
search: zod.z.string().optional(),
|
|
3417
|
+
});
|
|
3418
|
+
const PaginationQuery = zod.z.object({
|
|
3419
|
+
limit: zod.z.coerce.number().int().min(1).max(1000).optional(),
|
|
3420
|
+
cursor: zod.z.string().optional(),
|
|
3421
|
+
});
|
|
3422
|
+
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
3423
|
+
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
3424
|
+
userId: zod.z.string().optional(),
|
|
3425
|
+
instanceKey: zod.z.string().optional(),
|
|
3426
|
+
});
|
|
3427
|
+
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
3428
|
+
connectionId: zod.z.string().optional(),
|
|
3429
|
+
integrationId: zod.z.string().optional(),
|
|
3430
|
+
integrationKey: zod.z.string().optional(),
|
|
3431
|
+
});
|
|
3432
|
+
class PaginationResponse {
|
|
3433
|
+
}
|
|
3434
|
+
|
|
3396
3435
|
exports.ConfigurationState = void 0;
|
|
3397
3436
|
(function (ConfigurationState) {
|
|
3398
3437
|
ConfigurationState["CONFIGURED"] = "CONFIGURED";
|
|
@@ -3485,6 +3524,13 @@ const IntegrationLevelMembraneInterfaceSelectorQuery = zod.z.object({
|
|
|
3485
3524
|
connectionId: zod.z.string().optional(),
|
|
3486
3525
|
instanceKey: zod.z.string().optional(),
|
|
3487
3526
|
});
|
|
3527
|
+
const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInterfaceSelectorQuery.extend(CommonListElementsQuery.shape).extend({
|
|
3528
|
+
layer: zod.z.enum(['universal', 'integration', 'connection']).optional(),
|
|
3529
|
+
integrationId: zod.z.string().optional(),
|
|
3530
|
+
parentId: zod.z.string().optional(),
|
|
3531
|
+
universalParentId: zod.z.string().optional(),
|
|
3532
|
+
userId: zod.z.string().optional(),
|
|
3533
|
+
});
|
|
3488
3534
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3489
3535
|
|
|
3490
3536
|
function mergeWithFormulas(a, b) {
|
|
@@ -9308,44 +9354,6 @@ const BaseActionRunLogRecord = BaseWorkspaceElement.extend({
|
|
|
9308
9354
|
error: ErrorDataSchema.optional(),
|
|
9309
9355
|
});
|
|
9310
9356
|
|
|
9311
|
-
const zodBooleanCoercion = () => zod.z.preprocess((val) => {
|
|
9312
|
-
if (typeof val === 'boolean')
|
|
9313
|
-
return val;
|
|
9314
|
-
if (typeof val === 'string') {
|
|
9315
|
-
const lower = val.toLowerCase();
|
|
9316
|
-
if (lower === 'true' || lower === '1')
|
|
9317
|
-
return true;
|
|
9318
|
-
if (lower === 'false' || lower === '0')
|
|
9319
|
-
return false;
|
|
9320
|
-
return Boolean(val);
|
|
9321
|
-
}
|
|
9322
|
-
if (typeof val === 'number')
|
|
9323
|
-
return Boolean(val);
|
|
9324
|
-
return Boolean(val);
|
|
9325
|
-
}, zod.z.boolean());
|
|
9326
|
-
const IncludeArchivedQuery = zod.z.object({
|
|
9327
|
-
includeArchived: zodBooleanCoercion().optional(),
|
|
9328
|
-
});
|
|
9329
|
-
const SearchQuery = zod.z.object({
|
|
9330
|
-
search: zod.z.string().optional(),
|
|
9331
|
-
});
|
|
9332
|
-
const PaginationQuery = zod.z.object({
|
|
9333
|
-
limit: zod.z.coerce.number().int().min(1).max(1000).optional(),
|
|
9334
|
-
cursor: zod.z.string().optional(),
|
|
9335
|
-
});
|
|
9336
|
-
const CommonListElementsQuery = SearchQuery.merge(PaginationQuery).merge(IncludeArchivedQuery);
|
|
9337
|
-
const CommonInstancesListQuery = CommonListElementsQuery.extend({
|
|
9338
|
-
userId: zod.z.string().optional(),
|
|
9339
|
-
instanceKey: zod.z.string().optional(),
|
|
9340
|
-
});
|
|
9341
|
-
const CommonIntegrationOrConnectionQuery = zod.z.object({
|
|
9342
|
-
connectionId: zod.z.string().optional(),
|
|
9343
|
-
integrationId: zod.z.string().optional(),
|
|
9344
|
-
integrationKey: zod.z.string().optional(),
|
|
9345
|
-
});
|
|
9346
|
-
class PaginationResponse {
|
|
9347
|
-
}
|
|
9348
|
-
|
|
9349
9357
|
const ActionApiResponse = BaseAction.extend({
|
|
9350
9358
|
integration: BaseIntegration.optional(),
|
|
9351
9359
|
user: BaseCustomer.optional(),
|
|
@@ -9356,16 +9364,7 @@ const ActionApiResponse = BaseAction.extend({
|
|
|
9356
9364
|
outputSchema: DataSchema.optional(),
|
|
9357
9365
|
dependencies: zod.z.array(zod.z.any()).optional(),
|
|
9358
9366
|
});
|
|
9359
|
-
const FindActionsQuery =
|
|
9360
|
-
integrationId: zod.z.string().optional(),
|
|
9361
|
-
parentId: zod.z.string().optional(),
|
|
9362
|
-
universalParentId: zod.z.string().optional(),
|
|
9363
|
-
integrationKey: zod.z.string().optional(),
|
|
9364
|
-
search: zod.z.string().optional(),
|
|
9365
|
-
includeArchived: zodBooleanCoercion().optional(),
|
|
9366
|
-
userId: zod.z.string().optional(),
|
|
9367
|
-
connectionId: zod.z.string().optional(),
|
|
9368
|
-
});
|
|
9367
|
+
const FindActionsQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
9369
9368
|
const CreateActionRequest = ActionEditableProperties;
|
|
9370
9369
|
const UpdateActionRequest = CreateActionRequest.extend({}).partial();
|
|
9371
9370
|
const CreateActionInstanceRequest = CreateActionRequest;
|
|
@@ -12381,6 +12380,13 @@ exports.WorkspaceSyncEventType = void 0;
|
|
|
12381
12380
|
(function (WorkspaceSyncEventType) {
|
|
12382
12381
|
WorkspaceSyncEventType["ElementUpdate"] = "element-update";
|
|
12383
12382
|
})(exports.WorkspaceSyncEventType || (exports.WorkspaceSyncEventType = {}));
|
|
12383
|
+
exports.ConnectorFileUpdateType = void 0;
|
|
12384
|
+
(function (ConnectorFileUpdateType) {
|
|
12385
|
+
ConnectorFileUpdateType["ConnectorFileUpdated"] = "connector-file-updated";
|
|
12386
|
+
ConnectorFileUpdateType["ConnectorFileDeleted"] = "connector-file-deleted";
|
|
12387
|
+
ConnectorFileUpdateType["ConnectorDirectoryRenamed"] = "connector-directory-renamed";
|
|
12388
|
+
ConnectorFileUpdateType["ConnectorDirectoryDeleted"] = "connector-directory-deleted";
|
|
12389
|
+
})(exports.ConnectorFileUpdateType || (exports.ConnectorFileUpdateType = {}));
|
|
12384
12390
|
|
|
12385
12391
|
exports.ScenarioTemplateCategory = void 0;
|
|
12386
12392
|
(function (ScenarioTemplateCategory) {
|
|
@@ -13110,6 +13116,7 @@ exports.FindFlowInstancesQuery = FindFlowInstancesQuery;
|
|
|
13110
13116
|
exports.FindFlowRunsQuery = FindFlowRunsQuery;
|
|
13111
13117
|
exports.FindFlowRunsResponse = FindFlowRunsResponse;
|
|
13112
13118
|
exports.FindFlowsQuery = FindFlowsQuery;
|
|
13119
|
+
exports.FindIntegrationLevelMembraneInterfaceQuery = FindIntegrationLevelMembraneInterfaceQuery;
|
|
13113
13120
|
exports.FindIntegrationsQuery = FindIntegrationsQuery;
|
|
13114
13121
|
exports.FindPackagesQuery = FindPackagesQuery;
|
|
13115
13122
|
exports.FlowAccessor = FlowAccessor;
|