@nangohq/types 0.52.3 → 0.52.4

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/index.d.ts CHANGED
@@ -55,3 +55,4 @@ export type * from './utils.js';
55
55
  export type * from './web/env.js';
56
56
  export type * from './fleet/api.js';
57
57
  export type * from './fleet/index.js';
58
+ export type * from './persist/api.js';
@@ -0,0 +1,13 @@
1
+ import type { MergingStrategy } from '../record/api.js';
2
+ export interface PostRecordsSuccess {
3
+ nextMerging: MergingStrategy;
4
+ }
5
+ export interface PutRecordsSuccess {
6
+ nextMerging: MergingStrategy;
7
+ }
8
+ export interface DeleteRecordsSuccess {
9
+ nextMerging: MergingStrategy;
10
+ }
11
+ export interface GetCursorSuccess {
12
+ cursor?: string;
13
+ }
@@ -11,3 +11,10 @@ export interface NangoRecord {
11
11
  id: string | number;
12
12
  _nango_metadata: RecordMetadata;
13
13
  }
14
+ export type MergingStrategy = {
15
+ strategy: 'override';
16
+ } | {
17
+ strategy: 'ignore_if_modified_after_cursor';
18
+ cursor?: string;
19
+ };
20
+ export type CursorOffset = 'first' | 'last';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nangohq/types",
3
- "version": "0.52.3",
3
+ "version": "0.52.4",
4
4
  "description": "Types used in Nango applications",
5
5
  "type": "module",
6
6
  "typings": "dist/index.d.ts",