Skip to content

Commit

Permalink
Merge pull request #189 from runlightyear/incremental-sync
Browse files Browse the repository at this point in the history
Incremental sync fixes
  • Loading branch information
ebouck authored Oct 22, 2024
2 parents bc0699c + b894067 commit 6afc789
Show file tree
Hide file tree
Showing 32 changed files with 140 additions and 17 deletions.
8 changes: 8 additions & 0 deletions packages/@runlightyear/airtable/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/airtable

## 1.2.6

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 1.2.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/airtable/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/airtable",
"version": "1.2.5",
"version": "1.2.6",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/cli

## 1.5.1

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 1.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/cli",
"version": "1.5.0",
"version": "1.5.1",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/gcal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/gcal

## 0.11.6

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 0.11.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/gcal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/gcal",
"version": "0.11.5",
"version": "0.11.6",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/github

## 1.3.6

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 1.3.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/github/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/github",
"version": "1.3.5",
"version": "1.3.6",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/gmail/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/gmail

## 0.6.7

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 0.6.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/gmail/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/gmail",
"version": "0.6.6",
"version": "0.6.7",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/gsheets/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/gsheets

## 0.8.6

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 0.8.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/gsheets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/gsheets",
"version": "0.8.5",
"version": "0.8.6",
"publishConfig": {
"access": "public"
},
Expand Down
7 changes: 7 additions & 0 deletions packages/@runlightyear/lightyear/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @runlightyear/lightyear

## 1.12.0

### Minor Changes

- 61ad46a3b: Turn on async logging of runs
- bbf9983cb: Fix Synchronizer initialization bug

## 1.11.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/lightyear/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/lightyear",
"version": "1.11.0",
"version": "1.12.0",
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/@runlightyear/lightyear/src/base/syncAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface ConnectorProps {

export interface SynchronizerProps {
connector: AuthConnector;
collection: string;
}

export interface DefineSyncActionProps {
Expand Down Expand Up @@ -94,7 +95,10 @@ export function defineSyncAction(props: DefineSyncActionProps) {
throw new Error("No connector provided");
}

const synchronizerProps: SynchronizerProps = { connector };
const synchronizerProps: SynchronizerProps = {
connector,
collection: props.collection,
};

let synchronizer: CollectionSynchronizer | null | undefined = undefined;

Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/lightyear/src/handler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export async function handler(
} else if (operation === "refreshSubscription") {
return handleRefreshSubscription({ webhookName });
} else if (operation === "run") {
// prefixedRedactedConsole.setStreamLogsTo({ runId });
prefixedRedactedConsole.setStreamLogsTo({ runId });
return handleRun({ actionName, runId, data, context });
} else if (operation === "getAuthRequestUrl") {
if (!customAppName) {
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/linear/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/linear

## 0.10.6

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 0.10.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/linear/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/linear",
"version": "0.10.5",
"version": "0.10.6",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/notion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/notion

## 1.3.5

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 1.3.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/notion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/notion",
"version": "1.3.4",
"version": "1.3.5",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/openai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/openai

## 1.3.6

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 1.3.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/openai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/openai",
"version": "1.3.5",
"version": "1.3.6",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/postmark/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/postmark

## 0.5.6

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 0.5.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/postmark/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/postmark",
"version": "0.5.5",
"version": "0.5.6",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/salesforce/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/salesforce

## 0.9.5

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 0.9.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/salesforce/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/salesforce",
"version": "0.9.4",
"version": "0.9.5",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/slack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/slack

## 0.18.7

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 0.18.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/slack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/slack",
"version": "0.18.6",
"version": "0.18.7",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/smtp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/smtp

## 0.3.6

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 0.3.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/smtp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/smtp",
"version": "0.3.5",
"version": "0.3.6",
"publishConfig": {
"access": "public"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/@runlightyear/zoom/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @runlightyear/zoom

## 0.9.7

### Patch Changes

- Updated dependencies [61ad46a3b]
- Updated dependencies [bbf9983cb]
- @runlightyear/lightyear@1.12.0

## 0.9.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@runlightyear/zoom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@runlightyear/zoom",
"version": "0.9.6",
"version": "0.9.7",
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit 6afc789

Please sign in to comment.