@nangohq/runner-sdk 0.62.0 → 0.63.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/dist/scripts.d.ts CHANGED
@@ -9,18 +9,116 @@ export type { ActionError } from './errors.js';
9
9
  export type { NangoActionBase as NangoAction, ProxyConfiguration } from './action.js';
10
10
  export type { NangoSyncBase as NangoSync } from './sync.js';
11
11
  export interface CreateSyncProps<TModels extends Record<string, ZodModel>, TMetadata extends ZodMetadata = never> {
12
+ /**
13
+ * The version of the sync.
14
+ * Use it to track changes to the sync inside Nango's UI.
15
+ *
16
+ * @default '0.0.1'
17
+ * @example '1.0.0'
18
+ */
12
19
  version?: string;
20
+ /**
21
+ * The description of the sync.
22
+ *
23
+ * @example 'Fetch issues from GitHub'
24
+ */
13
25
  description: string;
26
+ /**
27
+ * The endpoints of the sync.
28
+ * You can call this endpoint to fetch records synced by the sync.
29
+ * You need one endpoint per model.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * endpoints: [{ method: 'GET', path: '/github/issues' }],
34
+ * ```
35
+ * ```ts
36
+ * const res = await fetch('https://api.nango.dev/github/issues');
37
+ * ```
38
+ */
14
39
  endpoints: NangoSyncEndpointV2[];
40
+ /**
41
+ * The frequency of the sync.
42
+ *
43
+ * @minimum 30 seconds
44
+ * @maximum 31 days
45
+ * @example 'every hour'
46
+ */
15
47
  frequency: string;
16
48
  models: TModels;
49
+ /**
50
+ * The type of the sync.
51
+ * @default 'full'
52
+ */
17
53
  syncType: 'full' | 'incremental';
54
+ /**
55
+ * If `true`, automatically detects deleted records and removes them when you fetch the latest data.
56
+ *
57
+ * @default false
58
+ */
18
59
  trackDeletes?: boolean;
60
+ /**
61
+ * If `true`, automatically runs the sync when a new connection is created.
62
+ * Otherwise, it needs to be triggered via the API or Nango UI.
63
+ *
64
+ * @default true
65
+ */
19
66
  autoStart?: boolean;
67
+ /**
68
+ * The integration's scopes required by the action.
69
+ * This field is for documentation purposes only and currently not enforced by Nango.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * scopes: ['read:user', 'write:user'],
74
+ * ```
75
+ */
20
76
  scopes?: string[];
77
+ /**
78
+ * The connection's metadata of the action.
79
+ *
80
+ * @default z.void();
81
+ * @example
82
+ * ```ts
83
+ * metadata: z.object({
84
+ * userId: z.string(),
85
+ * });
86
+ * ```
87
+ */
21
88
  metadata?: TMetadata;
89
+ /**
90
+ * The webhook subscriptions of the sync.
91
+ * Specify the types of webhooks the method `onWebhook` will handle.
92
+ * If a webhook type is not on the list, it will not be handled.
93
+ *
94
+ * @default 'undefined'
95
+ * @example
96
+ * ```ts
97
+ * webhookSubscriptions: ['*'],
98
+ * ```
99
+ */
22
100
  webhookSubscriptions?: string[];
101
+ /**
102
+ * The function that will be called when the sync is triggered.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * exec: (nango) => MaybePromise<void> {
107
+ * await nango.log('Hello, world!');
108
+ * }
109
+ * ```
110
+ */
23
111
  exec: (nango: NangoSyncBase<TModels, TMetadata>) => MaybePromise<void>;
112
+ /**
113
+ * The function that will be called when a webhook is received.
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * onWebhook: (nango, payload) => MaybePromise<void> {
118
+ * await nango.log('Hello, world!', payload);
119
+ * }
120
+ * ```
121
+ */
24
122
  onWebhook?: (nango: NangoSyncBase<TModels, TMetadata>, payload: any) => MaybePromise<void>;
25
123
  }
26
124
  export interface CreateSyncResponse<TModels extends Record<string, ZodModel>, TMetadata extends ZodMetadata = undefined> extends CreateSyncProps<TModels, TMetadata> {
@@ -28,16 +126,109 @@ export interface CreateSyncResponse<TModels extends Record<string, ZodModel>, TM
28
126
  }
29
127
  /**
30
128
  * Create a sync script
129
+ *
130
+ * @example
131
+ * ```ts
132
+ * const sync = createSync({
133
+ * description: 'Fetch issues from GitHub',
134
+ * endpoints: [{ method: 'GET', path: '/github/issues' }],
135
+ * frequency: 'every hour',
136
+ * exec: async (nango) => {
137
+ * await nango.log('Hello, world!');
138
+ * }
139
+ * });
140
+ *
141
+ * export default sync;
142
+ * ```
31
143
  */
32
144
  export declare function createSync<TModels extends Record<string, ZodModel>, TMetadata extends ZodMetadata = undefined>(params: CreateSyncProps<TModels, TMetadata>): CreateSyncResponse<TModels, TMetadata>;
33
145
  export interface CreateActionProps<TInput extends Zod.ZodTypeAny, TOutput extends Zod.ZodTypeAny, TMetadata extends ZodMetadata = undefined> {
146
+ /**
147
+ * The version of the action.
148
+ * Use it to track changes to the action inside Nango's UI.
149
+ *
150
+ * @default '0.0.1'
151
+ * @example '1.0.0'
152
+ */
34
153
  version?: string;
154
+ /**
155
+ * The description of the action.
156
+ *
157
+ * @example 'Create a new issue in GitHub'
158
+ */
35
159
  description: string;
160
+ /**
161
+ * The endpoint of the action.
162
+ * You can call this endpoint to trigger the action.
163
+ *
164
+ * @example
165
+ * ```ts
166
+ * endpoint: { method: 'POST', path: '/github/issues' },
167
+ * ```
168
+ * ```ts
169
+ * const res = await fetch('https://api.nango.dev/github/issues', {
170
+ * method: 'POST',
171
+ * body: JSON.stringify({
172
+ * title: 'New Issue',
173
+ * })
174
+ * });
175
+ * ```
176
+ */
36
177
  endpoint: NangoSyncEndpointV2;
178
+ /**
179
+ * The input required by the action when triggering it.
180
+ *
181
+ * @example
182
+ * ```ts
183
+ * input: z.object({
184
+ * title: z.string(),
185
+ * });
186
+ * ```
187
+ */
37
188
  input: TInput;
189
+ /**
190
+ * The output of the action.
191
+ *
192
+ * @example
193
+ * ```ts
194
+ * output: z.object({
195
+ * issueId: z.string(),
196
+ * });
197
+ * ```
198
+ */
38
199
  output: TOutput;
200
+ /**
201
+ * The connection's metadata of the action.
202
+ *
203
+ * @default z.void();
204
+ *
205
+ * @example
206
+ * ```ts
207
+ * metadata: z.object({
208
+ * userId: z.string(),
209
+ * });
210
+ * ```
211
+ */
39
212
  metadata?: TMetadata;
213
+ /**
214
+ * The integration's scopes required by the action.
215
+ * This field is for documentation purposes only and currently not enforced by Nango.
216
+ *
217
+ * @example
218
+ * ```ts
219
+ * scopes: ['read:user', 'write:user'],
220
+ * ```
221
+ */
40
222
  scopes?: string[];
223
+ /**
224
+ * The function that will be called when the action is triggered.
225
+ * @example
226
+ * ```ts
227
+ * exec: async (nango, input) => {
228
+ * await nango.log('Hello, world!', input);
229
+ * }
230
+ * ```
231
+ */
41
232
  exec: (nango: NangoActionBase<TMetadata>, input: z.infer<TInput>) => MaybePromise<z.infer<TOutput>>;
42
233
  }
43
234
  export interface CreateActionResponse<TInput extends Zod.ZodTypeAny, TOutput extends Zod.ZodTypeAny, TMetadata extends ZodMetadata = undefined> extends CreateActionProps<TInput, TOutput, TMetadata> {
@@ -45,6 +236,24 @@ export interface CreateActionResponse<TInput extends Zod.ZodTypeAny, TOutput ext
45
236
  }
46
237
  /**
47
238
  * Create an action script
239
+ *
240
+ * @example
241
+ * ```ts
242
+ * const action = createAction({
243
+ * description: 'Create a new issue in GitHub',
244
+ * endpoint: { method: 'POST', path: '/github/issues' },
245
+ * input: z.object({
246
+ * title: z.string(),
247
+ * }),
248
+ * output: z.object({
249
+ * issueId: z.string(),
250
+ * }),
251
+ * exec: async (nango, input) => {
252
+ * await nango.log('Hello, world!', input);
253
+ * }
254
+ * });
255
+ * export default action;
256
+ * ```
48
257
  */
49
258
  export declare function createAction<TInput extends Zod.ZodTypeAny, TOutput extends Zod.ZodTypeAny, TMetadata extends ZodMetadata = undefined>(params: CreateActionProps<TInput, TOutput, TMetadata>): CreateActionResponse<TInput, TOutput, TMetadata>;
50
259
  export interface CreateOnEventProps<TMetadata extends ZodMetadata = undefined> {
package/dist/scripts.js CHANGED
@@ -1,11 +1,43 @@
1
1
  /**
2
2
  * Create a sync script
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * const sync = createSync({
7
+ * description: 'Fetch issues from GitHub',
8
+ * endpoints: [{ method: 'GET', path: '/github/issues' }],
9
+ * frequency: 'every hour',
10
+ * exec: async (nango) => {
11
+ * await nango.log('Hello, world!');
12
+ * }
13
+ * });
14
+ *
15
+ * export default sync;
16
+ * ```
3
17
  */
4
18
  export function createSync(params) {
5
19
  return { type: 'sync', ...params };
6
20
  }
7
21
  /**
8
22
  * Create an action script
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const action = createAction({
27
+ * description: 'Create a new issue in GitHub',
28
+ * endpoint: { method: 'POST', path: '/github/issues' },
29
+ * input: z.object({
30
+ * title: z.string(),
31
+ * }),
32
+ * output: z.object({
33
+ * issueId: z.string(),
34
+ * }),
35
+ * exec: async (nango, input) => {
36
+ * await nango.log('Hello, world!', input);
37
+ * }
38
+ * });
39
+ * export default action;
40
+ * ```
9
41
  */
10
42
  export function createAction(params) {
11
43
  return { type: 'action', ...params };
@@ -1 +1 @@
1
- {"version":3,"file":"scripts.js","sourceRoot":"","sources":["../lib/scripts.ts"],"names":[],"mappings":"AAiCA;;GAEG;AACH,MAAM,UAAU,UAAU,CACtB,MAA2C;IAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AACvC,CAAC;AAiBD;;GAEG;AACH,MAAM,UAAU,YAAY,CACxB,MAAqD;IAErD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAC;AACzC,CAAC;AAaD;;GAEG;AACH,MAAM,UAAU,aAAa,CAA4C,MAAqC;IAC1G,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,CAAC;AAC1C,CAAC"}
1
+ {"version":3,"file":"scripts.js","sourceRoot":"","sources":["../lib/scripts.ts"],"names":[],"mappings":"AA+IA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,UAAU,CACtB,MAA2C;IAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AACvC,CAAC;AAuGD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,YAAY,CACxB,MAAqD;IAErD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAC;AACzC,CAAC;AAaD;;GAEG;AACH,MAAM,UAAU,aAAa,CAA4C,MAAqC;IAC1G,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,CAAC;AAC1C,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,132 @@
1
+ /* eslint-disable @typescript-eslint/unbound-method */
2
+ import { describe, expect, expectTypeOf, it } from 'vitest';
3
+ import { z } from 'zod';
4
+ import { createAction, createOnEvent, createSync } from './scripts.js';
5
+ describe('scripts', () => {
6
+ describe('createSync', () => {
7
+ it('should create a sync', () => {
8
+ const sync = createSync({
9
+ description: 'Fetch issues from GitHub',
10
+ endpoints: [{ method: 'GET', path: '/github/issues' }],
11
+ frequency: 'every hour',
12
+ models: {
13
+ issue: z.object({
14
+ id: z.string(),
15
+ title: z.string(),
16
+ body: z.string()
17
+ })
18
+ },
19
+ syncType: 'full',
20
+ trackDeletes: false,
21
+ autoStart: true,
22
+ scopes: ['read:user', 'write:user'],
23
+ metadata: z.object({ test: z.string() }),
24
+ webhookSubscriptions: [],
25
+ version: '0.0.1',
26
+ exec: async (nango) => {
27
+ await nango.log('Hello, world!');
28
+ expectTypeOf(nango.batchSave).parameter(0).not.toEqualTypeOf();
29
+ expectTypeOf(nango.batchSave).parameter(1).toEqualTypeOf();
30
+ expectTypeOf(nango.batchUpdate).parameter(0).not.toEqualTypeOf();
31
+ expectTypeOf(nango.batchUpdate).parameter(1).toEqualTypeOf();
32
+ expectTypeOf(nango.batchDelete).parameter(0).not.toEqualTypeOf();
33
+ expectTypeOf(nango.batchDelete).parameter(1).toEqualTypeOf();
34
+ expectTypeOf(nango.getMetadata()).toEqualTypeOf();
35
+ expectTypeOf(nango.setMetadata).parameter(0).toEqualTypeOf();
36
+ },
37
+ onWebhook: async (nango) => {
38
+ await nango.log('Hello, world!');
39
+ }
40
+ });
41
+ expect(sync).toStrictEqual({
42
+ description: 'Fetch issues from GitHub',
43
+ endpoints: [{ method: 'GET', path: '/github/issues' }],
44
+ frequency: 'every hour',
45
+ syncType: 'full',
46
+ trackDeletes: false,
47
+ autoStart: true,
48
+ scopes: ['read:user', 'write:user'],
49
+ metadata: expect.any(Object),
50
+ webhookSubscriptions: [],
51
+ type: 'sync',
52
+ version: '0.0.1',
53
+ models: expect.any(Object),
54
+ exec: expect.any(Function),
55
+ onWebhook: expect.any(Function)
56
+ });
57
+ });
58
+ it('should correctly infer the type of the nango object when no models are provided', () => {
59
+ createSync({
60
+ description: 'Fetch issues from GitHub',
61
+ endpoints: [{ method: 'GET', path: '/github/issues' }],
62
+ frequency: 'every hour',
63
+ syncType: 'full',
64
+ models: {},
65
+ exec: (nango) => {
66
+ expectTypeOf(nango.batchSave).parameter(0).toBeArray();
67
+ expectTypeOf(nango.batchSave).parameter(1).toBeNever();
68
+ expectTypeOf(nango.batchUpdate).parameter(0).toBeArray();
69
+ expectTypeOf(nango.batchUpdate).parameter(1).toBeNever();
70
+ expectTypeOf(nango.batchDelete).parameter(0).toBeArray();
71
+ expectTypeOf(nango.batchDelete).parameter(1).toBeNever();
72
+ expectTypeOf(nango.getMetadata()).toEqualTypeOf();
73
+ expectTypeOf(nango.setMetadata).parameter(0).toEqualTypeOf();
74
+ }
75
+ });
76
+ });
77
+ });
78
+ describe('createAction', () => {
79
+ it('should create an action', () => {
80
+ const action = createAction({
81
+ description: 'Create a new issue in GitHub',
82
+ endpoint: { method: 'POST', path: '/github/issues' },
83
+ input: z.object({
84
+ title: z.string()
85
+ }),
86
+ output: z.object({
87
+ issueId: z.string()
88
+ }),
89
+ metadata: z.void(),
90
+ scopes: ['read:user', 'write:user'],
91
+ version: '0.0.1',
92
+ exec: async (nango, input) => {
93
+ await nango.log('Hello, world!', input);
94
+ return { issueId: '123' };
95
+ }
96
+ });
97
+ expect(action).toStrictEqual({
98
+ description: 'Create a new issue in GitHub',
99
+ endpoint: { method: 'POST', path: '/github/issues' },
100
+ input: expect.any(Object),
101
+ output: expect.any(Object),
102
+ metadata: expect.any(Object),
103
+ scopes: ['read:user', 'write:user'],
104
+ version: '0.0.1',
105
+ type: 'action',
106
+ exec: expect.any(Function)
107
+ });
108
+ });
109
+ });
110
+ describe('createOnEvent', () => {
111
+ it('should create an onEvent', () => {
112
+ const onEvent = createOnEvent({
113
+ description: 'Create a new issue in GitHub',
114
+ event: 'post-connection-creation',
115
+ metadata: z.void(),
116
+ version: '0.0.1',
117
+ exec: async (nango) => {
118
+ await nango.log('Hello, world!');
119
+ }
120
+ });
121
+ expect(onEvent).toStrictEqual({
122
+ description: 'Create a new issue in GitHub',
123
+ event: 'post-connection-creation',
124
+ metadata: expect.any(Object),
125
+ version: '0.0.1',
126
+ type: 'onEvent',
127
+ exec: expect.any(Function)
128
+ });
129
+ });
130
+ });
131
+ });
132
+ //# sourceMappingURL=scripts.unit.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scripts.unit.test.js","sourceRoot":"","sources":["../lib/scripts.unit.test.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEvE,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACrB,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;QACxB,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;YAC5B,MAAM,IAAI,GAAG,UAAU,CAAC;gBACpB,WAAW,EAAE,0BAA0B;gBACvC,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;gBACtD,SAAS,EAAE,YAAY;gBACvB,MAAM,EAAE;oBACJ,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;wBACZ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;gBACrC,CAAC;aACJ,CAAC,CAAC;YAEH,MAAM,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC;gBAC1B,WAAW,EAAE,8BAA8B;gBAC3C,KAAK,EAAE,0BAA0B;gBACjC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;gBAC5B,OAAO,EAAE,OAAO;gBAChB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;aAC7B,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@nangohq/runner-sdk",
3
- "version": "0.62.0",
3
+ "version": "0.63.0",
4
4
  "description": "Nango's Runner SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "dependencies": {
8
- "@nangohq/node": "0.62.0",
9
- "@nangohq/providers": "0.62.0",
8
+ "@nangohq/node": "0.63.0",
9
+ "@nangohq/providers": "0.63.0",
10
10
  "ajv": "8.17.1",
11
11
  "ajv-formats": "3.0.1",
12
12
  "lodash-es": "4.17.21",
13
13
  "parse-link-header": "2.0.0"
14
14
  },
15
15
  "devDependencies": {
16
- "@nangohq/types": "0.62.0",
16
+ "@nangohq/types": "0.63.0",
17
17
  "@types/json-schema": "7.0.15",
18
18
  "axios": "1.9.0",
19
19
  "json-schema": "0.4.0",