@apideck/unify 0.23.0 → 0.23.1

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.
Files changed (93) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/note.d.ts +5 -0
  5. package/models/components/note.d.ts.map +1 -1
  6. package/models/components/note.js +4 -0
  7. package/models/components/note.js.map +1 -1
  8. package/models/components/noteinput.d.ts +5 -0
  9. package/models/components/noteinput.d.ts.map +1 -1
  10. package/models/components/noteinput.js +4 -0
  11. package/models/components/noteinput.js.map +1 -1
  12. package/package.json +5 -1
  13. package/src/__tests__/activities.test.ts +783 -0
  14. package/src/__tests__/agedcreditors.test.ts +279 -0
  15. package/src/__tests__/ageddebtors.test.ts +279 -0
  16. package/src/__tests__/apideckcompanies.test.ts +712 -0
  17. package/src/__tests__/apideckcustomers.test.ts +360 -0
  18. package/src/__tests__/apideckdepartments.test.ts +319 -0
  19. package/src/__tests__/apiresources.test.ts +61 -0
  20. package/src/__tests__/apis.test.ts +214 -0
  21. package/src/__tests__/applicants.test.ts +976 -0
  22. package/src/__tests__/applications.test.ts +329 -0
  23. package/src/__tests__/assertions.ts +13 -0
  24. package/src/__tests__/attachments.test.ts +363 -0
  25. package/src/__tests__/balancesheet.test.ts +451 -0
  26. package/src/__tests__/billpayments.test.ts +666 -0
  27. package/src/__tests__/bills.test.ts +1133 -0
  28. package/src/__tests__/collections.test.ts +115 -0
  29. package/src/__tests__/collectiontags.test.ts +66 -0
  30. package/src/__tests__/collectionticketcomments.test.ts +318 -0
  31. package/src/__tests__/collectiontickets.test.ts +436 -0
  32. package/src/__tests__/collectionusers.test.ts +122 -0
  33. package/src/__tests__/companies.test.ts +1059 -0
  34. package/src/__tests__/companyinfo.test.ts +218 -0
  35. package/src/__tests__/connectioncustommappings.test.ts +67 -0
  36. package/src/__tests__/connections.test.ts +1713 -0
  37. package/src/__tests__/connectionsettings.test.ts +280 -0
  38. package/src/__tests__/connectordocs.test.ts +28 -0
  39. package/src/__tests__/connectors.test.ts +751 -0
  40. package/src/__tests__/consumerrequestcounts.test.ts +41 -0
  41. package/src/__tests__/consumers.test.ts +517 -0
  42. package/src/__tests__/contacts.test.ts +957 -0
  43. package/src/__tests__/createcallback.test.ts +34 -0
  44. package/src/__tests__/creditnotes.test.ts +1362 -0
  45. package/src/__tests__/customers.test.ts +1089 -0
  46. package/src/__tests__/customfields.test.ts +50 -0
  47. package/src/__tests__/custommappings.test.ts +63 -0
  48. package/src/__tests__/departments.test.ts +359 -0
  49. package/src/__tests__/drivegroups.test.ts +318 -0
  50. package/src/__tests__/drives.test.ts +311 -0
  51. package/src/__tests__/employeepayrolls.test.ts +487 -0
  52. package/src/__tests__/employees.test.ts +1682 -0
  53. package/src/__tests__/employeeschedules.test.ts +456 -0
  54. package/src/__tests__/eventlogs.test.ts +157 -0
  55. package/src/__tests__/expenses.test.ts +566 -0
  56. package/src/__tests__/files.test.ts +392 -0
  57. package/src/__tests__/files.ts +56 -0
  58. package/src/__tests__/folders.test.ts +103 -0
  59. package/src/__tests__/invoiceitems.test.ts +586 -0
  60. package/src/__tests__/invoices.test.ts +1561 -0
  61. package/src/__tests__/jobs.test.ts +837 -0
  62. package/src/__tests__/journalentries.test.ts +1053 -0
  63. package/src/__tests__/leads.test.ts +897 -0
  64. package/src/__tests__/ledgeraccounts.test.ts +594 -0
  65. package/src/__tests__/locations.test.ts +561 -0
  66. package/src/__tests__/logs.test.ts +135 -0
  67. package/src/__tests__/messages.test.ts +396 -0
  68. package/src/__tests__/mockserver/README.md +52 -0
  69. package/src/__tests__/notes.test.ts +335 -0
  70. package/src/__tests__/opportunities.test.ts +503 -0
  71. package/src/__tests__/orders.test.ts +849 -0
  72. package/src/__tests__/payments.test.ts +557 -0
  73. package/src/__tests__/payrolls.test.ts +481 -0
  74. package/src/__tests__/pipelines.test.ts +383 -0
  75. package/src/__tests__/products.test.ts +505 -0
  76. package/src/__tests__/profitandloss.test.ts +221 -0
  77. package/src/__tests__/purchaseorders.test.ts +1464 -0
  78. package/src/__tests__/sessions.test.ts +70 -0
  79. package/src/__tests__/sharedlinks.test.ts +331 -0
  80. package/src/__tests__/stores.test.ts +39 -0
  81. package/src/__tests__/subsidiaries.test.ts +316 -0
  82. package/src/__tests__/suppliers.test.ts +1071 -0
  83. package/src/__tests__/taxrates.test.ts +472 -0
  84. package/src/__tests__/testclient.ts +48 -0
  85. package/src/__tests__/timeoffrequests.test.ts +381 -0
  86. package/src/__tests__/trackingcategories.test.ts +329 -0
  87. package/src/__tests__/uploadsessions.test.ts +142 -0
  88. package/src/__tests__/users.test.ts +667 -0
  89. package/src/__tests__/validateconnection.test.ts +32 -0
  90. package/src/__tests__/webhooks.test.ts +248 -0
  91. package/src/lib/config.ts +3 -3
  92. package/src/models/components/note.ts +9 -0
  93. package/src/models/components/noteinput.ts +9 -0
@@ -0,0 +1,751 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { expect, test } from "vitest";
6
+ import { Apideck } from "../index.js";
7
+ import { createTestHTTPClient } from "./testclient.js";
8
+
9
+ test("Connectors Connector Connectors All", async () => {
10
+ const testHttpClient = createTestHTTPClient("connector.connectorsAll");
11
+
12
+ const apideck = new Apideck({
13
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
14
+ httpClient: testHttpClient,
15
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
16
+ });
17
+
18
+ const result = await apideck.connector.connectors.list({
19
+ filter: {
20
+ unifiedApi: "file-storage",
21
+ },
22
+ });
23
+ expect(result.httpMeta.response.status).toBe(200);
24
+ expect(result.getConnectorsResponse).toBeDefined();
25
+ expect(result.getConnectorsResponse).toEqual({
26
+ statusCode: 200,
27
+ status: "OK",
28
+ data: [
29
+ {
30
+ id: "crm+salesforce",
31
+ name: "Salesforce",
32
+ description: "A description",
33
+ iconUrl:
34
+ "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png",
35
+ logoUrl:
36
+ "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg",
37
+ websiteUrl: "https://www.salesforce.com",
38
+ signupUrl: "https://www.salesforce.com/signup",
39
+ partnerSignupUrl: "https://www.salesforce.com/partners",
40
+ authType: "oauth2",
41
+ authOnly: true,
42
+ blindMapped: true,
43
+ oauthGrantType: "authorization_code",
44
+ oauthCredentialsSource: "integration",
45
+ oauthScopes: [
46
+ {
47
+ id: "contacts:all",
48
+ label: "Read/write on the Contacts resource",
49
+ defaultApis: [
50
+ "crm",
51
+ ],
52
+ },
53
+ {
54
+ id: "contacts:all",
55
+ label: "Read/write on the Contacts resource",
56
+ defaultApis: [
57
+ "crm",
58
+ ],
59
+ },
60
+ ],
61
+ customScopes: true,
62
+ hasSandboxCredentials: true,
63
+ settings: [
64
+ {
65
+ id: "pipeline_id",
66
+ label: "Pipeline",
67
+ type: "select",
68
+ },
69
+ {
70
+ id: "pipeline_id",
71
+ label: "Pipeline",
72
+ type: "select",
73
+ },
74
+ {
75
+ id: "pipeline_id",
76
+ label: "Pipeline",
77
+ type: "select",
78
+ },
79
+ ],
80
+ serviceId: "close",
81
+ unifiedApis: [
82
+ {
83
+ id: "crm",
84
+ name: "File Storage API",
85
+ authOnly: true,
86
+ oauthScopes: [
87
+ {
88
+ id: "contacts:all",
89
+ label: "Read/write on the Contacts resource",
90
+ },
91
+ ],
92
+ supportedResources: [
93
+ {
94
+ id: "companies",
95
+ name: "Companies",
96
+ downstreamId: "accounts",
97
+ downstreamName: "Accounts",
98
+ },
99
+ ],
100
+ downstreamUnsupportedResources: [
101
+ "companies",
102
+ ],
103
+ supportedEvents: [
104
+ {
105
+ eventType: "employee.created",
106
+ eventSource: "native",
107
+ downstreamEventType: "person_created",
108
+ resources: [
109
+ "companies",
110
+ ],
111
+ entityType: "employee",
112
+ },
113
+ ],
114
+ },
115
+ ],
116
+ supportedResources: [
117
+ {
118
+ id: "companies",
119
+ name: "Companies",
120
+ downstreamId: "accounts",
121
+ downstreamName: "Accounts",
122
+ },
123
+ {
124
+ id: "companies",
125
+ name: "Companies",
126
+ downstreamId: "accounts",
127
+ downstreamName: "Accounts",
128
+ },
129
+ ],
130
+ configurableResources: [
131
+ "leads",
132
+ "companies",
133
+ ],
134
+ supportedEvents: [
135
+ {
136
+ eventType: "employee.created",
137
+ eventSource: "native",
138
+ downstreamEventType: "person_created",
139
+ resources: [
140
+ "companies",
141
+ ],
142
+ entityType: "employee",
143
+ },
144
+ {
145
+ eventType: "employee.created",
146
+ eventSource: "native",
147
+ downstreamEventType: "person_created",
148
+ resources: [
149
+ "companies",
150
+ ],
151
+ entityType: "employee",
152
+ },
153
+ ],
154
+ webhookSupport: {
155
+ mode: "native",
156
+ subscriptionLevel: "integration",
157
+ managedVia: "api",
158
+ },
159
+ schemaSupport: {
160
+ supported: true,
161
+ },
162
+ docs: [
163
+ {
164
+ id: "12345",
165
+ name: "connection",
166
+ url:
167
+ "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection",
168
+ },
169
+ ],
170
+ },
171
+ {
172
+ id: "crm+salesforce",
173
+ name: "Salesforce",
174
+ description: "A description",
175
+ iconUrl:
176
+ "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png",
177
+ logoUrl:
178
+ "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg",
179
+ websiteUrl: "https://www.salesforce.com",
180
+ signupUrl: "https://www.salesforce.com/signup",
181
+ partnerSignupUrl: "https://www.salesforce.com/partners",
182
+ authType: "oauth2",
183
+ authOnly: true,
184
+ blindMapped: true,
185
+ oauthGrantType: "authorization_code",
186
+ oauthCredentialsSource: "integration",
187
+ oauthScopes: [
188
+ {
189
+ id: "contacts:all",
190
+ label: "Read/write on the Contacts resource",
191
+ defaultApis: [
192
+ "crm",
193
+ ],
194
+ },
195
+ {
196
+ id: "contacts:all",
197
+ label: "Read/write on the Contacts resource",
198
+ defaultApis: [
199
+ "crm",
200
+ ],
201
+ },
202
+ {
203
+ id: "contacts:all",
204
+ label: "Read/write on the Contacts resource",
205
+ defaultApis: [
206
+ "crm",
207
+ ],
208
+ },
209
+ ],
210
+ customScopes: true,
211
+ hasSandboxCredentials: true,
212
+ settings: [
213
+ {
214
+ id: "pipeline_id",
215
+ label: "Pipeline",
216
+ type: "select",
217
+ },
218
+ ],
219
+ serviceId: "close",
220
+ unifiedApis: [
221
+ {
222
+ id: "crm",
223
+ name: "File Storage API",
224
+ authOnly: true,
225
+ oauthScopes: [
226
+ {
227
+ id: "contacts:all",
228
+ label: "Read/write on the Contacts resource",
229
+ },
230
+ ],
231
+ supportedResources: [
232
+ {
233
+ id: "companies",
234
+ name: "Companies",
235
+ downstreamId: "accounts",
236
+ downstreamName: "Accounts",
237
+ },
238
+ {
239
+ id: "companies",
240
+ name: "Companies",
241
+ downstreamId: "accounts",
242
+ downstreamName: "Accounts",
243
+ },
244
+ {
245
+ id: "companies",
246
+ name: "Companies",
247
+ downstreamId: "accounts",
248
+ downstreamName: "Accounts",
249
+ },
250
+ ],
251
+ downstreamUnsupportedResources: [
252
+ "companies",
253
+ ],
254
+ supportedEvents: [
255
+ {
256
+ eventType: "employee.created",
257
+ eventSource: "native",
258
+ downstreamEventType: "person_created",
259
+ resources: [
260
+ "companies",
261
+ ],
262
+ entityType: "employee",
263
+ },
264
+ {
265
+ eventType: "employee.created",
266
+ eventSource: "native",
267
+ downstreamEventType: "person_created",
268
+ resources: [
269
+ "companies",
270
+ ],
271
+ entityType: "employee",
272
+ },
273
+ ],
274
+ },
275
+ ],
276
+ supportedResources: [
277
+ {
278
+ id: "companies",
279
+ name: "Companies",
280
+ downstreamId: "accounts",
281
+ downstreamName: "Accounts",
282
+ },
283
+ {
284
+ id: "companies",
285
+ name: "Companies",
286
+ downstreamId: "accounts",
287
+ downstreamName: "Accounts",
288
+ },
289
+ ],
290
+ configurableResources: [
291
+ "leads",
292
+ "companies",
293
+ ],
294
+ supportedEvents: [
295
+ {
296
+ eventType: "employee.created",
297
+ eventSource: "native",
298
+ downstreamEventType: "person_created",
299
+ resources: [
300
+ "companies",
301
+ ],
302
+ entityType: "employee",
303
+ },
304
+ ],
305
+ webhookSupport: {
306
+ mode: "native",
307
+ subscriptionLevel: "integration",
308
+ managedVia: "api",
309
+ },
310
+ schemaSupport: {
311
+ supported: true,
312
+ },
313
+ docs: [
314
+ {
315
+ id: "12345",
316
+ name: "connection",
317
+ url:
318
+ "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection",
319
+ },
320
+ ],
321
+ },
322
+ {
323
+ id: "crm+salesforce",
324
+ name: "Salesforce",
325
+ description: "A description",
326
+ iconUrl:
327
+ "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png",
328
+ logoUrl:
329
+ "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg",
330
+ websiteUrl: "https://www.salesforce.com",
331
+ signupUrl: "https://www.salesforce.com/signup",
332
+ partnerSignupUrl: "https://www.salesforce.com/partners",
333
+ authType: "oauth2",
334
+ authOnly: true,
335
+ blindMapped: true,
336
+ oauthGrantType: "authorization_code",
337
+ oauthCredentialsSource: "integration",
338
+ oauthScopes: [
339
+ {
340
+ id: "contacts:all",
341
+ label: "Read/write on the Contacts resource",
342
+ defaultApis: [
343
+ "crm",
344
+ ],
345
+ },
346
+ {
347
+ id: "contacts:all",
348
+ label: "Read/write on the Contacts resource",
349
+ defaultApis: [
350
+ "crm",
351
+ ],
352
+ },
353
+ ],
354
+ customScopes: true,
355
+ hasSandboxCredentials: true,
356
+ settings: [
357
+ {
358
+ id: "pipeline_id",
359
+ label: "Pipeline",
360
+ type: "select",
361
+ },
362
+ {
363
+ id: "pipeline_id",
364
+ label: "Pipeline",
365
+ type: "select",
366
+ },
367
+ ],
368
+ serviceId: "close",
369
+ unifiedApis: [
370
+ {
371
+ id: "crm",
372
+ name: "File Storage API",
373
+ authOnly: true,
374
+ oauthScopes: [
375
+ {
376
+ id: "contacts:all",
377
+ label: "Read/write on the Contacts resource",
378
+ },
379
+ ],
380
+ supportedResources: [
381
+ {
382
+ id: "companies",
383
+ name: "Companies",
384
+ downstreamId: "accounts",
385
+ downstreamName: "Accounts",
386
+ },
387
+ {
388
+ id: "companies",
389
+ name: "Companies",
390
+ downstreamId: "accounts",
391
+ downstreamName: "Accounts",
392
+ },
393
+ {
394
+ id: "companies",
395
+ name: "Companies",
396
+ downstreamId: "accounts",
397
+ downstreamName: "Accounts",
398
+ },
399
+ ],
400
+ downstreamUnsupportedResources: [
401
+ "companies",
402
+ ],
403
+ supportedEvents: [
404
+ {
405
+ eventType: "employee.created",
406
+ eventSource: "native",
407
+ downstreamEventType: "person_created",
408
+ resources: [
409
+ "companies",
410
+ ],
411
+ entityType: "employee",
412
+ },
413
+ {
414
+ eventType: "employee.created",
415
+ eventSource: "native",
416
+ downstreamEventType: "person_created",
417
+ resources: [
418
+ "companies",
419
+ ],
420
+ entityType: "employee",
421
+ },
422
+ ],
423
+ },
424
+ ],
425
+ supportedResources: [
426
+ {
427
+ id: "companies",
428
+ name: "Companies",
429
+ downstreamId: "accounts",
430
+ downstreamName: "Accounts",
431
+ },
432
+ {
433
+ id: "companies",
434
+ name: "Companies",
435
+ downstreamId: "accounts",
436
+ downstreamName: "Accounts",
437
+ },
438
+ {
439
+ id: "companies",
440
+ name: "Companies",
441
+ downstreamId: "accounts",
442
+ downstreamName: "Accounts",
443
+ },
444
+ ],
445
+ configurableResources: [
446
+ "leads",
447
+ "companies",
448
+ ],
449
+ supportedEvents: [
450
+ {
451
+ eventType: "employee.created",
452
+ eventSource: "native",
453
+ downstreamEventType: "person_created",
454
+ resources: [
455
+ "companies",
456
+ ],
457
+ entityType: "employee",
458
+ },
459
+ {
460
+ eventType: "employee.created",
461
+ eventSource: "native",
462
+ downstreamEventType: "person_created",
463
+ resources: [
464
+ "companies",
465
+ ],
466
+ entityType: "employee",
467
+ },
468
+ ],
469
+ webhookSupport: {
470
+ mode: "native",
471
+ subscriptionLevel: "integration",
472
+ managedVia: "api",
473
+ },
474
+ schemaSupport: {
475
+ supported: true,
476
+ },
477
+ docs: [
478
+ {
479
+ id: "12345",
480
+ name: "connection",
481
+ url:
482
+ "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection",
483
+ },
484
+ ],
485
+ },
486
+ ],
487
+ meta: {
488
+ itemsOnPage: 50,
489
+ cursors: {
490
+ previous: "em9oby1jcm06OnBhZ2U6OjE=",
491
+ current: "em9oby1jcm06OnBhZ2U6OjI=",
492
+ next: "em9oby1jcm06OnBhZ2U6OjM=",
493
+ },
494
+ },
495
+ links: {
496
+ previous:
497
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
498
+ current: "https://unify.apideck.com/crm/companies",
499
+ next:
500
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
501
+ },
502
+ });
503
+ });
504
+
505
+ test("Connectors Connector Connectors One", async () => {
506
+ const testHttpClient = createTestHTTPClient("connector.connectorsOne");
507
+
508
+ const apideck = new Apideck({
509
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
510
+ httpClient: testHttpClient,
511
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
512
+ });
513
+
514
+ const result = await apideck.connector.connectors.get({
515
+ id: "<id>",
516
+ });
517
+ expect(result.httpMeta.response.status).toBe(200);
518
+ expect(result.getConnectorResponse).toBeDefined();
519
+ expect(result.getConnectorResponse).toEqual({
520
+ statusCode: 200,
521
+ status: "OK",
522
+ data: {
523
+ id: "crm+salesforce",
524
+ name: "Salesforce",
525
+ description: "A description",
526
+ iconUrl:
527
+ "https://res.cloudinary.com/apideck/image/upload/v1529456047/catalog/salesforce/icon128x128.png",
528
+ logoUrl:
529
+ "https://c1.sfdcstatic.com/content/dam/web/en_us/www/images/home/logo-salesforce-m.svg",
530
+ websiteUrl: "https://www.salesforce.com",
531
+ signupUrl: "https://www.salesforce.com/signup",
532
+ partnerSignupUrl: "https://www.salesforce.com/partners",
533
+ authType: "oauth2",
534
+ authOnly: true,
535
+ blindMapped: true,
536
+ oauthGrantType: "authorization_code",
537
+ oauthCredentialsSource: "integration",
538
+ oauthScopes: [
539
+ {
540
+ id: "contacts:all",
541
+ label: "Read/write on the Contacts resource",
542
+ defaultApis: [
543
+ "crm",
544
+ ],
545
+ },
546
+ {
547
+ id: "contacts:all",
548
+ label: "Read/write on the Contacts resource",
549
+ defaultApis: [
550
+ "crm",
551
+ ],
552
+ },
553
+ {
554
+ id: "contacts:all",
555
+ label: "Read/write on the Contacts resource",
556
+ defaultApis: [
557
+ "crm",
558
+ ],
559
+ },
560
+ ],
561
+ customScopes: true,
562
+ hasSandboxCredentials: true,
563
+ settings: [
564
+ {
565
+ id: "pipeline_id",
566
+ label: "Pipeline",
567
+ type: "select",
568
+ },
569
+ {
570
+ id: "pipeline_id",
571
+ label: "Pipeline",
572
+ type: "select",
573
+ },
574
+ ],
575
+ serviceId: "close",
576
+ unifiedApis: [
577
+ {
578
+ id: "crm",
579
+ name: "File Storage API",
580
+ authOnly: true,
581
+ oauthScopes: [
582
+ {
583
+ id: "contacts:all",
584
+ label: "Read/write on the Contacts resource",
585
+ },
586
+ ],
587
+ supportedResources: [
588
+ {
589
+ id: "companies",
590
+ name: "Companies",
591
+ downstreamId: "accounts",
592
+ downstreamName: "Accounts",
593
+ },
594
+ {
595
+ id: "companies",
596
+ name: "Companies",
597
+ downstreamId: "accounts",
598
+ downstreamName: "Accounts",
599
+ },
600
+ ],
601
+ downstreamUnsupportedResources: [
602
+ "companies",
603
+ ],
604
+ supportedEvents: [
605
+ {
606
+ eventType: "employee.created",
607
+ eventSource: "native",
608
+ downstreamEventType: "person_created",
609
+ resources: [
610
+ "companies",
611
+ ],
612
+ entityType: "employee",
613
+ },
614
+ {
615
+ eventType: "employee.created",
616
+ eventSource: "native",
617
+ downstreamEventType: "person_created",
618
+ resources: [
619
+ "companies",
620
+ ],
621
+ entityType: "employee",
622
+ },
623
+ {
624
+ eventType: "employee.created",
625
+ eventSource: "native",
626
+ downstreamEventType: "person_created",
627
+ resources: [
628
+ "companies",
629
+ ],
630
+ entityType: "employee",
631
+ },
632
+ ],
633
+ },
634
+ {
635
+ id: "crm",
636
+ name: "File Storage API",
637
+ authOnly: true,
638
+ oauthScopes: [
639
+ {
640
+ id: "contacts:all",
641
+ label: "Read/write on the Contacts resource",
642
+ },
643
+ ],
644
+ supportedResources: [
645
+ {
646
+ id: "companies",
647
+ name: "Companies",
648
+ downstreamId: "accounts",
649
+ downstreamName: "Accounts",
650
+ },
651
+ {
652
+ id: "companies",
653
+ name: "Companies",
654
+ downstreamId: "accounts",
655
+ downstreamName: "Accounts",
656
+ },
657
+ ],
658
+ downstreamUnsupportedResources: [
659
+ "companies",
660
+ ],
661
+ supportedEvents: [
662
+ {
663
+ eventType: "employee.created",
664
+ eventSource: "native",
665
+ downstreamEventType: "person_created",
666
+ resources: [
667
+ "companies",
668
+ ],
669
+ entityType: "employee",
670
+ },
671
+ {
672
+ eventType: "employee.created",
673
+ eventSource: "native",
674
+ downstreamEventType: "person_created",
675
+ resources: [
676
+ "companies",
677
+ ],
678
+ entityType: "employee",
679
+ },
680
+ ],
681
+ },
682
+ ],
683
+ supportedResources: [
684
+ {
685
+ id: "companies",
686
+ name: "Companies",
687
+ downstreamId: "accounts",
688
+ downstreamName: "Accounts",
689
+ },
690
+ ],
691
+ configurableResources: [
692
+ "leads",
693
+ "companies",
694
+ ],
695
+ supportedEvents: [
696
+ {
697
+ eventType: "employee.created",
698
+ eventSource: "native",
699
+ downstreamEventType: "person_created",
700
+ resources: [
701
+ "companies",
702
+ ],
703
+ entityType: "employee",
704
+ },
705
+ ],
706
+ webhookSupport: {
707
+ mode: "native",
708
+ subscriptionLevel: "integration",
709
+ managedVia: "api",
710
+ },
711
+ schemaSupport: {
712
+ supported: true,
713
+ },
714
+ docs: [
715
+ {
716
+ id: "12345",
717
+ name: "connection",
718
+ url:
719
+ "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection",
720
+ },
721
+ {
722
+ id: "12345",
723
+ name: "connection",
724
+ url:
725
+ "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection",
726
+ },
727
+ {
728
+ id: "12345",
729
+ name: "connection",
730
+ url:
731
+ "https://unify.apideck.com/connector/connectors/workday/docs/consumer+connection",
732
+ },
733
+ ],
734
+ },
735
+ meta: {
736
+ itemsOnPage: 50,
737
+ cursors: {
738
+ previous: "em9oby1jcm06OnBhZ2U6OjE=",
739
+ current: "em9oby1jcm06OnBhZ2U6OjI=",
740
+ next: "em9oby1jcm06OnBhZ2U6OjM=",
741
+ },
742
+ },
743
+ links: {
744
+ previous:
745
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
746
+ current: "https://unify.apideck.com/crm/companies",
747
+ next:
748
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
749
+ },
750
+ });
751
+ });