@membranehq/sdk 0.5.0 → 0.5.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 +13011 -5117
- package/dist/bundle.js +149 -1
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +31 -10
- package/dist/dts/accessors/integrations-accessors.d.ts +31 -10
- package/dist/dts/data-schema/index.d.ts +0 -1
- package/dist/dts/entity-repository.d.ts +7 -6
- package/dist/dts/http-requests.d.ts +2 -2
- package/dist/dts/workspace-elements/api/action-instances-api.d.ts +269 -8
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +529 -10
- package/dist/dts/workspace-elements/api/actions-api.d.ts +393 -90
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +203 -8
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +49 -3
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +376 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +293 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +88 -3
- package/dist/dts/workspace-elements/api/connections-api.d.ts +387 -97
- package/dist/dts/workspace-elements/api/customers-api.d.ts +38 -5
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +541 -12
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +43 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +1590 -12
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +357 -79
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +696 -19
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +702 -19
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +559 -10
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +169 -27
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +2786 -14
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +367 -69
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +1652 -47
- package/dist/dts/workspace-elements/api/flows-api.d.ts +1040 -257
- package/dist/dts/workspace-elements/api/index.d.ts +1 -1
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +121 -37
- package/dist/dts/workspace-elements/api/scenarios-api.d.ts +151 -26
- package/dist/dts/workspace-elements/api/screens-api.d.ts +33 -13
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +28 -12
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +12 -10
- package/dist/dts/workspace-elements/base/actions/types.d.ts +28 -11
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +23 -6
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +22 -8
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +25 -11
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +23 -9
- package/dist/dts/workspace-elements/base/connections/types.d.ts +18 -12
- package/dist/dts/workspace-elements/base/customers/index.d.ts +8 -2
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +18 -18
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +23 -6
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +21 -4
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +59 -41
- package/dist/dts/workspace-elements/base/data-sources/types.d.ts +16 -8
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +2 -5
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +23 -5
- package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +20 -6
- package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +6 -6
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +26 -11
- package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +14 -1
- package/dist/dts/workspace-elements/base/flows/types.d.ts +26 -12
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +557 -67
- package/dist/dts/workspace-elements/base/scenarios/types.d.ts +21 -4
- package/dist/dts/workspace-elements/base/screens/types.d.ts +9 -1
- package/dist/dts/workspace-elements/types.d.ts +25 -3
- package/dist/dts/workspaces/types.d.ts +4 -3
- package/dist/index.d.ts +21959 -8561
- package/dist/index.js +258 -109
- package/dist/index.js.map +1 -1
- package/dist/index.module.d.mts +21959 -8561
- package/dist/index.module.mjs +225 -101
- package/dist/index.module.mjs.map +1 -1
- package/package.json +3 -2
- package/dist/dts/data-schema/schemas.d.ts +0 -4
- package/dist/dts/workspace-elements/api/app-events-api.d.ts +0 -17
package/dist/bundle.js
CHANGED
|
@@ -9791,6 +9791,60 @@
|
|
|
9791
9791
|
...processCreateParams(params),
|
|
9792
9792
|
});
|
|
9793
9793
|
};
|
|
9794
|
+
class ZodRecord extends ZodType {
|
|
9795
|
+
get keySchema() {
|
|
9796
|
+
return this._def.keyType;
|
|
9797
|
+
}
|
|
9798
|
+
get valueSchema() {
|
|
9799
|
+
return this._def.valueType;
|
|
9800
|
+
}
|
|
9801
|
+
_parse(input) {
|
|
9802
|
+
const { status, ctx } = this._processInputParams(input);
|
|
9803
|
+
if (ctx.parsedType !== ZodParsedType.object) {
|
|
9804
|
+
addIssueToContext(ctx, {
|
|
9805
|
+
code: ZodIssueCode.invalid_type,
|
|
9806
|
+
expected: ZodParsedType.object,
|
|
9807
|
+
received: ctx.parsedType,
|
|
9808
|
+
});
|
|
9809
|
+
return INVALID;
|
|
9810
|
+
}
|
|
9811
|
+
const pairs = [];
|
|
9812
|
+
const keyType = this._def.keyType;
|
|
9813
|
+
const valueType = this._def.valueType;
|
|
9814
|
+
for (const key in ctx.data) {
|
|
9815
|
+
pairs.push({
|
|
9816
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),
|
|
9817
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),
|
|
9818
|
+
alwaysSet: key in ctx.data,
|
|
9819
|
+
});
|
|
9820
|
+
}
|
|
9821
|
+
if (ctx.common.async) {
|
|
9822
|
+
return ParseStatus.mergeObjectAsync(status, pairs);
|
|
9823
|
+
}
|
|
9824
|
+
else {
|
|
9825
|
+
return ParseStatus.mergeObjectSync(status, pairs);
|
|
9826
|
+
}
|
|
9827
|
+
}
|
|
9828
|
+
get element() {
|
|
9829
|
+
return this._def.valueType;
|
|
9830
|
+
}
|
|
9831
|
+
static create(first, second, third) {
|
|
9832
|
+
if (second instanceof ZodType) {
|
|
9833
|
+
return new ZodRecord({
|
|
9834
|
+
keyType: first,
|
|
9835
|
+
valueType: second,
|
|
9836
|
+
typeName: ZodFirstPartyTypeKind.ZodRecord,
|
|
9837
|
+
...processCreateParams(third),
|
|
9838
|
+
});
|
|
9839
|
+
}
|
|
9840
|
+
return new ZodRecord({
|
|
9841
|
+
keyType: ZodString.create(),
|
|
9842
|
+
valueType: first,
|
|
9843
|
+
typeName: ZodFirstPartyTypeKind.ZodRecord,
|
|
9844
|
+
...processCreateParams(second),
|
|
9845
|
+
});
|
|
9846
|
+
}
|
|
9847
|
+
}
|
|
9794
9848
|
class ZodMap extends ZodType {
|
|
9795
9849
|
get keySchema() {
|
|
9796
9850
|
return this._def.keyType;
|
|
@@ -10662,6 +10716,7 @@
|
|
|
10662
10716
|
ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
|
|
10663
10717
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
10664
10718
|
const stringType = ZodString.create;
|
|
10719
|
+
const numberType = ZodNumber.create;
|
|
10665
10720
|
const booleanType = ZodBoolean.create;
|
|
10666
10721
|
const anyType = ZodAny.create;
|
|
10667
10722
|
ZodUnknown.create;
|
|
@@ -10671,6 +10726,7 @@
|
|
|
10671
10726
|
ZodUnion.create;
|
|
10672
10727
|
ZodIntersection.create;
|
|
10673
10728
|
ZodTuple.create;
|
|
10729
|
+
const recordType = ZodRecord.create;
|
|
10674
10730
|
const functionType = ZodFunction.create;
|
|
10675
10731
|
const lazyType = ZodLazy.create;
|
|
10676
10732
|
ZodEnum.create;
|
|
@@ -11321,6 +11377,13 @@
|
|
|
11321
11377
|
}
|
|
11322
11378
|
}
|
|
11323
11379
|
|
|
11380
|
+
var FlowRunNodeState;
|
|
11381
|
+
(function (FlowRunNodeState) {
|
|
11382
|
+
FlowRunNodeState["RUNNING"] = "running";
|
|
11383
|
+
FlowRunNodeState["COMPLETED"] = "completed";
|
|
11384
|
+
FlowRunNodeState["STOPPED"] = "stopped";
|
|
11385
|
+
FlowRunNodeState["FAILED"] = "failed";
|
|
11386
|
+
})(FlowRunNodeState || (FlowRunNodeState = {}));
|
|
11324
11387
|
var FlowRunState;
|
|
11325
11388
|
(function (FlowRunState) {
|
|
11326
11389
|
FlowRunState["QUEUED"] = "queued";
|
|
@@ -11337,6 +11400,83 @@
|
|
|
11337
11400
|
FlowRunLaunchedByTrigger["DataSourceTrigger"] = "data-source-trigger";
|
|
11338
11401
|
FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
|
|
11339
11402
|
})(FlowRunLaunchedByTrigger || (FlowRunLaunchedByTrigger = {}));
|
|
11403
|
+
const FlowRunLaunchedBy = objectType({
|
|
11404
|
+
type: nativeEnumType(FlowRunLaunchedByTrigger),
|
|
11405
|
+
ids: arrayType(stringType()).optional(),
|
|
11406
|
+
});
|
|
11407
|
+
const FlowRunNode = objectType({
|
|
11408
|
+
state: nativeEnumType(FlowRunNodeState),
|
|
11409
|
+
runs: numberType().optional(),
|
|
11410
|
+
erroredRuns: numberType().optional(),
|
|
11411
|
+
outputs: numberType().optional(),
|
|
11412
|
+
});
|
|
11413
|
+
objectType({
|
|
11414
|
+
id: stringType(),
|
|
11415
|
+
name: stringType().optional(),
|
|
11416
|
+
flowInstanceId: stringType(),
|
|
11417
|
+
universalFlowId: stringType().optional(),
|
|
11418
|
+
connectionId: stringType().optional(),
|
|
11419
|
+
integrationId: stringType().optional(),
|
|
11420
|
+
startNodeKey: stringType(),
|
|
11421
|
+
userId: stringType(),
|
|
11422
|
+
input: anyType().optional(),
|
|
11423
|
+
state: nativeEnumType(FlowRunState),
|
|
11424
|
+
startTime: stringType(),
|
|
11425
|
+
endTime: stringType().optional(),
|
|
11426
|
+
errors: arrayType(ErrorDataSchema).optional(),
|
|
11427
|
+
nodes: recordType(FlowRunNode).optional(),
|
|
11428
|
+
launchedBy: FlowRunLaunchedBy.optional(),
|
|
11429
|
+
});
|
|
11430
|
+
|
|
11431
|
+
var FlowNodeRunStatus;
|
|
11432
|
+
(function (FlowNodeRunStatus) {
|
|
11433
|
+
FlowNodeRunStatus["COMPLETED"] = "completed";
|
|
11434
|
+
FlowNodeRunStatus["FAILED"] = "failed";
|
|
11435
|
+
FlowNodeRunStatus["SKIPPED"] = "skipped";
|
|
11436
|
+
})(FlowNodeRunStatus || (FlowNodeRunStatus = {}));
|
|
11437
|
+
const UpstreamFlowNodeRunSchema = objectType({
|
|
11438
|
+
nodeKey: stringType(),
|
|
11439
|
+
runId: stringType(),
|
|
11440
|
+
outputId: stringType(),
|
|
11441
|
+
});
|
|
11442
|
+
const DownstreamFlowNodeRunSchema = objectType({
|
|
11443
|
+
runId: stringType(),
|
|
11444
|
+
nodeKey: stringType(),
|
|
11445
|
+
});
|
|
11446
|
+
const FlowNodeRunParametersSchema = objectType({
|
|
11447
|
+
id: stringType(),
|
|
11448
|
+
upstreamRuns: arrayType(UpstreamFlowNodeRunSchema),
|
|
11449
|
+
input: anyType(),
|
|
11450
|
+
});
|
|
11451
|
+
const FlowNodeRunOutputSchema = objectType({
|
|
11452
|
+
id: stringType(),
|
|
11453
|
+
data: stringType(),
|
|
11454
|
+
downstreamRuns: arrayType(DownstreamFlowNodeRunSchema),
|
|
11455
|
+
});
|
|
11456
|
+
const FlowNodeRunResultSchema = objectType({
|
|
11457
|
+
status: nativeEnumType(FlowNodeRunStatus),
|
|
11458
|
+
logs: arrayType(anyType()),
|
|
11459
|
+
outputs: arrayType(FlowNodeRunOutputSchema),
|
|
11460
|
+
errors: arrayType(ErrorDataSchema),
|
|
11461
|
+
});
|
|
11462
|
+
FlowNodeRunParametersSchema.merge(FlowNodeRunResultSchema);
|
|
11463
|
+
objectType({
|
|
11464
|
+
id: stringType(),
|
|
11465
|
+
data: stringType(),
|
|
11466
|
+
});
|
|
11467
|
+
const FlowNodeRunOutputMetadataSchema = objectType({
|
|
11468
|
+
id: stringType(),
|
|
11469
|
+
downstreamRuns: arrayType(DownstreamFlowNodeRunSchema),
|
|
11470
|
+
});
|
|
11471
|
+
objectType({
|
|
11472
|
+
id: stringType(),
|
|
11473
|
+
upstreamRuns: arrayType(UpstreamFlowNodeRunSchema),
|
|
11474
|
+
input: anyType(),
|
|
11475
|
+
status: nativeEnumType(FlowNodeRunStatus),
|
|
11476
|
+
logs: arrayType(anyType()),
|
|
11477
|
+
outputs: arrayType(FlowNodeRunOutputMetadataSchema),
|
|
11478
|
+
errors: arrayType(ErrorDataSchema),
|
|
11479
|
+
});
|
|
11340
11480
|
|
|
11341
11481
|
class FlowRunsAccessor {
|
|
11342
11482
|
constructor(client) {
|
|
@@ -11432,6 +11572,7 @@
|
|
|
11432
11572
|
WorkspaceElementType["DataLinkTableInstance"] = "data-link-table-instance";
|
|
11433
11573
|
WorkspaceElementType["AppEventType"] = "app-event-type";
|
|
11434
11574
|
WorkspaceElementType["AppEventSubscription"] = "app-event-subscription";
|
|
11575
|
+
WorkspaceElementType["AppEventLogRecord"] = "app-event-log-record";
|
|
11435
11576
|
WorkspaceElementType["AppDataSchema"] = "app-data-schema";
|
|
11436
11577
|
WorkspaceElementType["AppDataSchemaInstance"] = "app-data-schema-instance";
|
|
11437
11578
|
WorkspaceElementType["ExternalEventSubscription"] = "external-event-subscription";
|
|
@@ -11469,9 +11610,16 @@
|
|
|
11469
11610
|
name: stringType(),
|
|
11470
11611
|
});
|
|
11471
11612
|
BaseWorkspaceElement.extend({
|
|
11472
|
-
key: stringType(),
|
|
11613
|
+
key: stringType().optional(),
|
|
11614
|
+
uuid: stringType().optional(),
|
|
11615
|
+
description: stringType().optional(),
|
|
11473
11616
|
state: nativeEnumType(WorkspaceElementState).optional(),
|
|
11474
11617
|
errors: arrayType(ErrorDataSchema).optional(),
|
|
11618
|
+
revision: stringType().optional(),
|
|
11619
|
+
isDeactivated: booleanType().optional(),
|
|
11620
|
+
createdAt: stringType().optional(),
|
|
11621
|
+
updatedAt: stringType().optional(),
|
|
11622
|
+
archivedAt: stringType().optional(),
|
|
11475
11623
|
});
|
|
11476
11624
|
|
|
11477
11625
|
const MAX_POLLING_ERRORS = 10;
|