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