Skip to content

Commit 3baebd1

Browse files
authored
fix(.nango): copy the .nango directories (#428)
## Describe your changes ## Issue ticket number and link ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [ ] I added tests, otherwise the reason is: - [ ] External API requests have `retries` - [ ] Pagination is used where appropriate - [ ] The built in `nango.paginate` call is used instead of a `while (true)` loop - [ ] Third party requests are NOT parallelized (this can cause issues with rate limits) - [ ] If a sync requires metadata the `nango.yaml` has `auto_start: false` - [ ] If the sync is a `full` sync then `track_deletes: true` is set - [ ] I followed the best practices and guidelines from the [Writing Integration Scripts](/NangoHQ/integration-templates/blob/main/guides/WRITING_SCRIPTS.md) doc
1 parent 137223d commit 3baebd1

File tree

16 files changed

+1818
-0
lines changed

16 files changed

+1818
-0
lines changed

integrations/adp/.nango/nango.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[
2+
{
3+
"providerConfigKey": "adp",
4+
"actions": [],
5+
"syncs": [
6+
{
7+
"type": "sync",
8+
"description": "Fetches a list of current employees from ADP and maps them to the standard HRIS model",
9+
"auto_start": true,
10+
"endpoints": [
11+
{
12+
"method": "GET",
13+
"path": "/employees/unified",
14+
"group": "Unified HRIS API"
15+
}
16+
],
17+
"input": "SyncMetadata_adp_unifiedemployees",
18+
"name": "unified-employees",
19+
"output": [
20+
"StandardEmployee"
21+
],
22+
"runs": "every hour",
23+
"scopes": [],
24+
"sync_type": "full",
25+
"track_deletes": false,
26+
"usedModels": [
27+
"StandardEmployee",
28+
"SyncMetadata_adp_unifiedemployees"
29+
],
30+
"version": "0.0.1",
31+
"webhookSubscriptions": []
32+
}
33+
],
34+
"onEventScripts": {
35+
"post-connection-creation": [],
36+
"pre-connection-deletion": [],
37+
"validate-connection": []
38+
}
39+
}
40+
]
Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$comment": "This file was generated by Nango (v0.69.20)",
4+
"definitions": {
5+
"StandardEmployee": {
6+
"type": "object",
7+
"properties": {
8+
"id": {
9+
"type": "string"
10+
},
11+
"firstName": {
12+
"type": "string"
13+
},
14+
"lastName": {
15+
"type": "string"
16+
},
17+
"email": {
18+
"type": "string"
19+
},
20+
"displayName": {
21+
"type": "string"
22+
},
23+
"employeeNumber": {
24+
"type": "string"
25+
},
26+
"title": {
27+
"type": "string"
28+
},
29+
"department": {
30+
"type": "object",
31+
"properties": {
32+
"id": {
33+
"type": "string"
34+
},
35+
"name": {
36+
"type": "string"
37+
}
38+
},
39+
"required": [
40+
"id",
41+
"name"
42+
],
43+
"additionalProperties": false
44+
},
45+
"employmentType": {
46+
"type": "string",
47+
"enum": [
48+
"FULL_TIME",
49+
"PART_TIME",
50+
"CONTRACTOR",
51+
"INTERN",
52+
"TEMPORARY",
53+
"OTHER"
54+
]
55+
},
56+
"employmentStatus": {
57+
"type": "string",
58+
"enum": [
59+
"ACTIVE",
60+
"TERMINATED",
61+
"ON_LEAVE",
62+
"SUSPENDED",
63+
"PENDING"
64+
]
65+
},
66+
"startDate": {
67+
"type": "string"
68+
},
69+
"terminationDate": {
70+
"type": "string"
71+
},
72+
"manager": {
73+
"type": "object",
74+
"properties": {
75+
"id": {
76+
"type": "string"
77+
},
78+
"firstName": {
79+
"type": "string"
80+
},
81+
"lastName": {
82+
"type": "string"
83+
},
84+
"email": {
85+
"type": "string"
86+
}
87+
},
88+
"additionalProperties": false
89+
},
90+
"workLocation": {
91+
"type": "object",
92+
"properties": {
93+
"name": {
94+
"type": "string"
95+
},
96+
"type": {
97+
"type": "string",
98+
"enum": [
99+
"OFFICE",
100+
"REMOTE",
101+
"HYBRID"
102+
]
103+
},
104+
"primaryAddress": {
105+
"type": "object",
106+
"properties": {
107+
"street": {
108+
"type": "string"
109+
},
110+
"city": {
111+
"type": "string"
112+
},
113+
"state": {
114+
"type": "string"
115+
},
116+
"country": {
117+
"type": "string"
118+
},
119+
"postalCode": {
120+
"type": "string"
121+
},
122+
"type": {
123+
"type": "string",
124+
"enum": [
125+
"WORK",
126+
"HOME"
127+
]
128+
}
129+
},
130+
"required": [
131+
"type"
132+
],
133+
"additionalProperties": false
134+
}
135+
},
136+
"required": [
137+
"name",
138+
"type"
139+
],
140+
"additionalProperties": false
141+
},
142+
"addresses": {
143+
"type": "array",
144+
"items": {
145+
"type": "object",
146+
"properties": {
147+
"street": {
148+
"type": "string"
149+
},
150+
"city": {
151+
"type": "string"
152+
},
153+
"state": {
154+
"type": "string"
155+
},
156+
"country": {
157+
"type": "string"
158+
},
159+
"postalCode": {
160+
"type": "string"
161+
},
162+
"type": {
163+
"type": "string",
164+
"enum": [
165+
"WORK",
166+
"HOME"
167+
]
168+
}
169+
},
170+
"required": [
171+
"type"
172+
],
173+
"additionalProperties": false
174+
}
175+
},
176+
"phones": {
177+
"type": "array",
178+
"items": {
179+
"type": "object",
180+
"properties": {
181+
"type": {
182+
"type": "string",
183+
"enum": [
184+
"WORK",
185+
"HOME",
186+
"MOBILE"
187+
]
188+
},
189+
"number": {
190+
"type": "string"
191+
}
192+
},
193+
"required": [
194+
"type",
195+
"number"
196+
],
197+
"additionalProperties": false
198+
}
199+
},
200+
"emails": {
201+
"type": "array",
202+
"items": {
203+
"type": "object",
204+
"properties": {
205+
"type": {
206+
"type": "string",
207+
"enum": [
208+
"WORK",
209+
"PERSONAL"
210+
]
211+
},
212+
"address": {
213+
"type": "string"
214+
}
215+
},
216+
"required": [
217+
"type",
218+
"address"
219+
],
220+
"additionalProperties": false
221+
}
222+
},
223+
"providerSpecific": {
224+
"type": "object",
225+
"additionalProperties": false
226+
},
227+
"createdAt": {
228+
"type": "string"
229+
},
230+
"updatedAt": {
231+
"type": "string"
232+
}
233+
},
234+
"required": [
235+
"id",
236+
"firstName",
237+
"lastName",
238+
"email",
239+
"displayName",
240+
"department",
241+
"employmentType",
242+
"employmentStatus",
243+
"startDate",
244+
"workLocation",
245+
"addresses",
246+
"phones",
247+
"emails",
248+
"providerSpecific",
249+
"createdAt",
250+
"updatedAt"
251+
],
252+
"additionalProperties": false
253+
},
254+
"SyncMetadata_adp_unifiedemployees": {
255+
"type": "object",
256+
"additionalProperties": false
257+
}
258+
}
259+
}

integrations/adp/.nango/schema.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
export interface SyncMetadata_adp_unifiedemployees {
2+
};
3+
4+
export interface StandardEmployee {
5+
id: string;
6+
firstName: string;
7+
lastName: string;
8+
email: string;
9+
displayName: string;
10+
employeeNumber?: string | undefined;
11+
title?: string | undefined;
12+
department: { id: string;
13+
name: string;};
14+
employmentType: 'FULL_TIME' | 'PART_TIME' | 'CONTRACTOR' | 'INTERN' | 'TEMPORARY' | 'OTHER';
15+
employmentStatus: 'ACTIVE' | 'TERMINATED' | 'ON_LEAVE' | 'SUSPENDED' | 'PENDING';
16+
startDate: string;
17+
terminationDate?: string | undefined;
18+
manager?: { id?: string | undefined;
19+
firstName?: string | undefined;
20+
lastName?: string | undefined;
21+
email?: string | undefined;};
22+
workLocation: { name: string;
23+
type: 'OFFICE' | 'REMOTE' | 'HYBRID';
24+
primaryAddress?: { street?: string | undefined;
25+
city?: string | undefined;
26+
state?: string | undefined;
27+
country?: string | undefined;
28+
postalCode?: string | undefined;
29+
type: 'WORK' | 'HOME';};};
30+
addresses: ({ street?: string | undefined;
31+
city?: string | undefined;
32+
state?: string | undefined;
33+
country?: string | undefined;
34+
postalCode?: string | undefined;
35+
type: 'WORK' | 'HOME';})[];
36+
phones: ({ type: 'WORK' | 'HOME' | 'MOBILE';
37+
number: string;})[];
38+
emails: ({ type: 'WORK' | 'PERSONAL';
39+
address: string;})[];
40+
providerSpecific: {};
41+
createdAt: string;
42+
updatedAt: string;
43+
};
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[
2+
{
3+
"providerConfigKey": "namely-pat",
4+
"actions": [],
5+
"syncs": [
6+
{
7+
"type": "sync",
8+
"description": "Fetches a list of current employees from Namely and maps them to the standard HRIS model",
9+
"auto_start": true,
10+
"endpoints": [
11+
{
12+
"method": "GET",
13+
"path": "/employees/unified",
14+
"group": "Unified HRIS API"
15+
}
16+
],
17+
"input": "SyncMetadata_namely_pat_unifiedemployees",
18+
"name": "unified-employees",
19+
"output": [
20+
"StandardEmployee"
21+
],
22+
"runs": "every 1h",
23+
"scopes": [],
24+
"sync_type": "incremental",
25+
"track_deletes": false,
26+
"usedModels": [
27+
"StandardEmployee",
28+
"SyncMetadata_namely_pat_unifiedemployees"
29+
],
30+
"version": "0.0.1",
31+
"webhookSubscriptions": []
32+
}
33+
],
34+
"onEventScripts": {
35+
"post-connection-creation": [],
36+
"pre-connection-deletion": [],
37+
"validate-connection": []
38+
}
39+
}
40+
]

0 commit comments

Comments
 (0)