@pattern-stack/codegen 0.12.2 → 0.13.0
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/CHANGELOG.md +66 -0
- package/README.md +44 -0
- package/dist/runtime/subsystems/index.d.ts +6 -2
- package/dist/runtime/subsystems/index.js +171 -1
- package/dist/runtime/subsystems/index.js.map +1 -1
- package/dist/runtime/subsystems/integration/detection-config.schema.d.ts +110 -1
- package/dist/runtime/subsystems/integration/detection-config.schema.js +25 -2
- package/dist/runtime/subsystems/integration/detection-config.schema.js.map +1 -1
- package/dist/runtime/subsystems/integration/incremental-read.d.ts +221 -0
- package/dist/runtime/subsystems/integration/incremental-read.js +146 -0
- package/dist/runtime/subsystems/integration/incremental-read.js.map +1 -0
- package/dist/runtime/subsystems/integration/index.d.ts +2 -1
- package/dist/runtime/subsystems/integration/index.js +169 -2
- package/dist/runtime/subsystems/integration/index.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.module.d.ts +1 -1
- package/dist/src/cli/index.js +629 -35
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/index.d.ts +78 -0
- package/dist/src/index.js +11 -1
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
- package/runtime/subsystems/index.ts +34 -0
- package/runtime/subsystems/integration/detection-config.schema.ts +55 -0
- package/runtime/subsystems/integration/incremental-read.ts +345 -0
- package/runtime/subsystems/integration/index.ts +15 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -1521,6 +1521,24 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1521
1521
|
}, {
|
|
1522
1522
|
field: string;
|
|
1523
1523
|
kind: "eventId";
|
|
1524
|
+
}>, z.ZodObject<{
|
|
1525
|
+
kind: z.ZodLiteral<"historyId">;
|
|
1526
|
+
field: z.ZodString;
|
|
1527
|
+
}, "strip", z.ZodTypeAny, {
|
|
1528
|
+
field: string;
|
|
1529
|
+
kind: "historyId";
|
|
1530
|
+
}, {
|
|
1531
|
+
field: string;
|
|
1532
|
+
kind: "historyId";
|
|
1533
|
+
}>, z.ZodObject<{
|
|
1534
|
+
kind: z.ZodLiteral<"syncToken">;
|
|
1535
|
+
field: z.ZodString;
|
|
1536
|
+
}, "strip", z.ZodTypeAny, {
|
|
1537
|
+
field: string;
|
|
1538
|
+
kind: "syncToken";
|
|
1539
|
+
}, {
|
|
1540
|
+
field: string;
|
|
1541
|
+
kind: "syncToken";
|
|
1524
1542
|
}>]>;
|
|
1525
1543
|
provenance: z.ZodOptional<z.ZodEnum<["poll", "cdc"]>>;
|
|
1526
1544
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1536,6 +1554,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1536
1554
|
} | {
|
|
1537
1555
|
field: string;
|
|
1538
1556
|
kind: "eventId";
|
|
1557
|
+
} | {
|
|
1558
|
+
field: string;
|
|
1559
|
+
kind: "historyId";
|
|
1560
|
+
} | {
|
|
1561
|
+
field: string;
|
|
1562
|
+
kind: "syncToken";
|
|
1539
1563
|
};
|
|
1540
1564
|
provenance?: "poll" | "cdc" | undefined;
|
|
1541
1565
|
}, {
|
|
@@ -1551,6 +1575,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1551
1575
|
} | {
|
|
1552
1576
|
field: string;
|
|
1553
1577
|
kind: "eventId";
|
|
1578
|
+
} | {
|
|
1579
|
+
field: string;
|
|
1580
|
+
kind: "historyId";
|
|
1581
|
+
} | {
|
|
1582
|
+
field: string;
|
|
1583
|
+
kind: "syncToken";
|
|
1554
1584
|
};
|
|
1555
1585
|
provenance?: "poll" | "cdc" | undefined;
|
|
1556
1586
|
}>;
|
|
@@ -1594,6 +1624,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1594
1624
|
} | {
|
|
1595
1625
|
field: string;
|
|
1596
1626
|
kind: "eventId";
|
|
1627
|
+
} | {
|
|
1628
|
+
field: string;
|
|
1629
|
+
kind: "historyId";
|
|
1630
|
+
} | {
|
|
1631
|
+
field: string;
|
|
1632
|
+
kind: "syncToken";
|
|
1597
1633
|
};
|
|
1598
1634
|
provenance?: "poll" | "cdc" | undefined;
|
|
1599
1635
|
};
|
|
@@ -1622,6 +1658,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1622
1658
|
} | {
|
|
1623
1659
|
field: string;
|
|
1624
1660
|
kind: "eventId";
|
|
1661
|
+
} | {
|
|
1662
|
+
field: string;
|
|
1663
|
+
kind: "historyId";
|
|
1664
|
+
} | {
|
|
1665
|
+
field: string;
|
|
1666
|
+
kind: "syncToken";
|
|
1625
1667
|
};
|
|
1626
1668
|
provenance?: "poll" | "cdc" | undefined;
|
|
1627
1669
|
};
|
|
@@ -2092,6 +2134,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2092
2134
|
} | {
|
|
2093
2135
|
field: string;
|
|
2094
2136
|
kind: "eventId";
|
|
2137
|
+
} | {
|
|
2138
|
+
field: string;
|
|
2139
|
+
kind: "historyId";
|
|
2140
|
+
} | {
|
|
2141
|
+
field: string;
|
|
2142
|
+
kind: "syncToken";
|
|
2095
2143
|
};
|
|
2096
2144
|
provenance?: "poll" | "cdc" | undefined;
|
|
2097
2145
|
};
|
|
@@ -2296,6 +2344,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2296
2344
|
} | {
|
|
2297
2345
|
field: string;
|
|
2298
2346
|
kind: "eventId";
|
|
2347
|
+
} | {
|
|
2348
|
+
field: string;
|
|
2349
|
+
kind: "historyId";
|
|
2350
|
+
} | {
|
|
2351
|
+
field: string;
|
|
2352
|
+
kind: "syncToken";
|
|
2299
2353
|
};
|
|
2300
2354
|
provenance?: "poll" | "cdc" | undefined;
|
|
2301
2355
|
};
|
|
@@ -2500,6 +2554,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2500
2554
|
} | {
|
|
2501
2555
|
field: string;
|
|
2502
2556
|
kind: "eventId";
|
|
2557
|
+
} | {
|
|
2558
|
+
field: string;
|
|
2559
|
+
kind: "historyId";
|
|
2560
|
+
} | {
|
|
2561
|
+
field: string;
|
|
2562
|
+
kind: "syncToken";
|
|
2503
2563
|
};
|
|
2504
2564
|
provenance?: "poll" | "cdc" | undefined;
|
|
2505
2565
|
};
|
|
@@ -2704,6 +2764,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2704
2764
|
} | {
|
|
2705
2765
|
field: string;
|
|
2706
2766
|
kind: "eventId";
|
|
2767
|
+
} | {
|
|
2768
|
+
field: string;
|
|
2769
|
+
kind: "historyId";
|
|
2770
|
+
} | {
|
|
2771
|
+
field: string;
|
|
2772
|
+
kind: "syncToken";
|
|
2707
2773
|
};
|
|
2708
2774
|
provenance?: "poll" | "cdc" | undefined;
|
|
2709
2775
|
};
|
|
@@ -2908,6 +2974,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2908
2974
|
} | {
|
|
2909
2975
|
field: string;
|
|
2910
2976
|
kind: "eventId";
|
|
2977
|
+
} | {
|
|
2978
|
+
field: string;
|
|
2979
|
+
kind: "historyId";
|
|
2980
|
+
} | {
|
|
2981
|
+
field: string;
|
|
2982
|
+
kind: "syncToken";
|
|
2911
2983
|
};
|
|
2912
2984
|
provenance?: "poll" | "cdc" | undefined;
|
|
2913
2985
|
};
|
|
@@ -3112,6 +3184,12 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
3112
3184
|
} | {
|
|
3113
3185
|
field: string;
|
|
3114
3186
|
kind: "eventId";
|
|
3187
|
+
} | {
|
|
3188
|
+
field: string;
|
|
3189
|
+
kind: "historyId";
|
|
3190
|
+
} | {
|
|
3191
|
+
field: string;
|
|
3192
|
+
kind: "syncToken";
|
|
3115
3193
|
};
|
|
3116
3194
|
provenance?: "poll" | "cdc" | undefined;
|
|
3117
3195
|
};
|
package/dist/src/index.js
CHANGED
|
@@ -82,11 +82,21 @@ var EventIdCursorSchema = z2.object({
|
|
|
82
82
|
kind: z2.literal("eventId"),
|
|
83
83
|
field: z2.string().min(1)
|
|
84
84
|
});
|
|
85
|
+
var HistoryIdCursorSchema = z2.object({
|
|
86
|
+
kind: z2.literal("historyId"),
|
|
87
|
+
field: z2.string().min(1)
|
|
88
|
+
});
|
|
89
|
+
var SyncTokenCursorSchema = z2.object({
|
|
90
|
+
kind: z2.literal("syncToken"),
|
|
91
|
+
field: z2.string().min(1)
|
|
92
|
+
});
|
|
85
93
|
var CursorStrategySchema = z2.discriminatedUnion("kind", [
|
|
86
94
|
SystemModstampCursorSchema,
|
|
87
95
|
ReplayIdCursorSchema,
|
|
88
96
|
TimestampCursorSchema,
|
|
89
|
-
EventIdCursorSchema
|
|
97
|
+
EventIdCursorSchema,
|
|
98
|
+
HistoryIdCursorSchema,
|
|
99
|
+
SyncTokenCursorSchema
|
|
90
100
|
]);
|
|
91
101
|
var PollDetectionSchema = z2.object({
|
|
92
102
|
cursor: CursorStrategySchema,
|