@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,457 @@
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("Employeeschedules Hris Employee Schedules All", async () => {
10
+ const testHttpClient = createTestHTTPClient("hris.employeeSchedulesAll");
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.hris.employeeSchedules.list({
19
+ employeeId: "<id>",
20
+ consumerId: "test-consumer",
21
+ appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
22
+ serviceId: "salesforce",
23
+ passThrough: {
24
+ "search": "San Francisco",
25
+ },
26
+ fields: "id,updated_at",
27
+ });
28
+ expect(result.httpMeta.response.status).toBe(200);
29
+ expect(result.getEmployeeSchedulesResponse).toBeDefined();
30
+ expect(result.getEmployeeSchedulesResponse).toEqual({
31
+ statusCode: 200,
32
+ status: "OK",
33
+ service: "sage-hr",
34
+ resource: "Employees",
35
+ operation: "all",
36
+ data: {
37
+ employee: {
38
+ id: "12345",
39
+ downstreamId: "12345",
40
+ firstName: "Elon",
41
+ lastName: "Musk",
42
+ middleName: "D.",
43
+ displayName: "Technoking",
44
+ preferredName: "Elon Musk",
45
+ initials: "EM",
46
+ salutation: "Mr",
47
+ title: "CEO",
48
+ maritalStatus: "married",
49
+ partner: {
50
+ id: "12345",
51
+ firstName: "Elon",
52
+ lastName: "Musk",
53
+ middleName: "D.",
54
+ gender: "male",
55
+ initials: "EM",
56
+ birthday: new Date("2000-08-12"),
57
+ deceasedOn: new Date("2000-08-12"),
58
+ },
59
+ division: "Europe",
60
+ divisionId: "12345",
61
+ departmentId: "12345",
62
+ departmentName: "12345",
63
+ team: {
64
+ id: "1234",
65
+ name: "Full Stack Engineers",
66
+ },
67
+ companyId: "23456",
68
+ companyName: "SpaceX",
69
+ employmentStartDate: "2021-10-26",
70
+ employmentEndDate: "2028-10-26",
71
+ leavingReason: "resigned",
72
+ employeeNumber: "123456-AB",
73
+ employmentStatus: "active",
74
+ ethnicity: "African American",
75
+ manager: {
76
+ id: "12345",
77
+ name: "Elon Musk",
78
+ firstName: "Elon",
79
+ lastName: "Musk",
80
+ email: "elon@musk.com",
81
+ employmentStatus: "active",
82
+ },
83
+ directReports: [
84
+ "a0d636c6-43b3-4bde-8c70-85b707d992f4",
85
+ "a98lfd96-43b3-4bde-8c70-85b707d992e6",
86
+ ],
87
+ socialSecurityNumber: "123456789",
88
+ birthday: new Date("2000-08-12"),
89
+ deceasedOn: new Date("2000-08-12"),
90
+ countryOfBirth: "US",
91
+ description: "A description",
92
+ gender: "male",
93
+ pronouns: "she,her",
94
+ preferredLanguage: "EN",
95
+ languages: [
96
+ "EN",
97
+ ],
98
+ nationalities: [
99
+ "US",
100
+ ],
101
+ photoUrl: "https://unavatar.io/elon-musk",
102
+ timezone: "Europe/London",
103
+ source: "lever",
104
+ sourceId: "12345",
105
+ recordUrl: "https://app.intercom.io/contacts/12345",
106
+ jobs: [
107
+ {
108
+ id: "12345",
109
+ employeeId: "12345",
110
+ title: "CEO",
111
+ role: "Sales",
112
+ startDate: new Date("2020-08-12"),
113
+ endDate: new Date("2020-08-12"),
114
+ compensationRate: 72000,
115
+ currency: "USD",
116
+ paymentUnit: "year",
117
+ hiredAt: new Date("2020-08-12"),
118
+ isPrimary: true,
119
+ isManager: true,
120
+ status: "active",
121
+ location: {
122
+ id: "123",
123
+ type: "primary",
124
+ string: "25 Spring Street, Blackburn, VIC 3130",
125
+ name: "HQ US",
126
+ line1: "Main street",
127
+ line2: "apt #",
128
+ line3: "Suite #",
129
+ line4: "delivery instructions",
130
+ streetNumber: "25",
131
+ city: "San Francisco",
132
+ state: "CA",
133
+ postalCode: "94104",
134
+ country: "US",
135
+ latitude: "40.759211",
136
+ longitude: "-73.984638",
137
+ county: "Santa Clara",
138
+ contactName: "Elon Musk",
139
+ salutation: "Mr",
140
+ phoneNumber: "111-111-1111",
141
+ fax: "122-111-1111",
142
+ email: "elon@musk.com",
143
+ website: "https://elonmusk.com",
144
+ notes: "Address notes or delivery instructions.",
145
+ rowVersion: "1-12345",
146
+ },
147
+ },
148
+ {
149
+ id: "12345",
150
+ employeeId: "12345",
151
+ title: "CEO",
152
+ role: "Sales",
153
+ startDate: new Date("2020-08-12"),
154
+ endDate: new Date("2020-08-12"),
155
+ compensationRate: 72000,
156
+ currency: "USD",
157
+ paymentUnit: "year",
158
+ hiredAt: new Date("2020-08-12"),
159
+ isPrimary: true,
160
+ isManager: true,
161
+ status: "active",
162
+ location: {
163
+ id: "123",
164
+ type: "primary",
165
+ string: "25 Spring Street, Blackburn, VIC 3130",
166
+ name: "HQ US",
167
+ line1: "Main street",
168
+ line2: "apt #",
169
+ line3: "Suite #",
170
+ line4: "delivery instructions",
171
+ streetNumber: "25",
172
+ city: "San Francisco",
173
+ state: "CA",
174
+ postalCode: "94104",
175
+ country: "US",
176
+ latitude: "40.759211",
177
+ longitude: "-73.984638",
178
+ county: "Santa Clara",
179
+ contactName: "Elon Musk",
180
+ salutation: "Mr",
181
+ phoneNumber: "111-111-1111",
182
+ fax: "122-111-1111",
183
+ email: "elon@musk.com",
184
+ website: "https://elonmusk.com",
185
+ notes: "Address notes or delivery instructions.",
186
+ rowVersion: "1-12345",
187
+ },
188
+ },
189
+ {
190
+ id: "12345",
191
+ employeeId: "12345",
192
+ title: "CEO",
193
+ role: "Sales",
194
+ startDate: new Date("2020-08-12"),
195
+ endDate: new Date("2020-08-12"),
196
+ compensationRate: 72000,
197
+ currency: "USD",
198
+ paymentUnit: "year",
199
+ hiredAt: new Date("2020-08-12"),
200
+ isPrimary: true,
201
+ isManager: true,
202
+ status: "active",
203
+ location: {
204
+ id: "123",
205
+ type: "primary",
206
+ string: "25 Spring Street, Blackburn, VIC 3130",
207
+ name: "HQ US",
208
+ line1: "Main street",
209
+ line2: "apt #",
210
+ line3: "Suite #",
211
+ line4: "delivery instructions",
212
+ streetNumber: "25",
213
+ city: "San Francisco",
214
+ state: "CA",
215
+ postalCode: "94104",
216
+ country: "US",
217
+ latitude: "40.759211",
218
+ longitude: "-73.984638",
219
+ county: "Santa Clara",
220
+ contactName: "Elon Musk",
221
+ salutation: "Mr",
222
+ phoneNumber: "111-111-1111",
223
+ fax: "122-111-1111",
224
+ email: "elon@musk.com",
225
+ website: "https://elonmusk.com",
226
+ notes: "Address notes or delivery instructions.",
227
+ rowVersion: "1-12345",
228
+ },
229
+ },
230
+ ],
231
+ compensations: [
232
+ {
233
+ id: "3404301363494309004",
234
+ jobId: "3490439050957906679",
235
+ rate: 50,
236
+ paymentUnit: "hour",
237
+ flsaStatus: "nonexempt",
238
+ effectiveDate: "2021-06-11",
239
+ },
240
+ ],
241
+ worksRemote: true,
242
+ addresses: [
243
+ {
244
+ id: "123",
245
+ type: "primary",
246
+ string: "25 Spring Street, Blackburn, VIC 3130",
247
+ name: "HQ US",
248
+ line1: "Main street",
249
+ line2: "apt #",
250
+ line3: "Suite #",
251
+ line4: "delivery instructions",
252
+ streetNumber: "25",
253
+ city: "San Francisco",
254
+ state: "CA",
255
+ postalCode: "94104",
256
+ country: "US",
257
+ latitude: "40.759211",
258
+ longitude: "-73.984638",
259
+ county: "Santa Clara",
260
+ contactName: "Elon Musk",
261
+ salutation: "Mr",
262
+ phoneNumber: "111-111-1111",
263
+ fax: "122-111-1111",
264
+ email: "elon@musk.com",
265
+ website: "https://elonmusk.com",
266
+ notes: "Address notes or delivery instructions.",
267
+ rowVersion: "1-12345",
268
+ },
269
+ {
270
+ id: "123",
271
+ type: "primary",
272
+ string: "25 Spring Street, Blackburn, VIC 3130",
273
+ name: "HQ US",
274
+ line1: "Main street",
275
+ line2: "apt #",
276
+ line3: "Suite #",
277
+ line4: "delivery instructions",
278
+ streetNumber: "25",
279
+ city: "San Francisco",
280
+ state: "CA",
281
+ postalCode: "94104",
282
+ country: "US",
283
+ latitude: "40.759211",
284
+ longitude: "-73.984638",
285
+ county: "Santa Clara",
286
+ contactName: "Elon Musk",
287
+ salutation: "Mr",
288
+ phoneNumber: "111-111-1111",
289
+ fax: "122-111-1111",
290
+ email: "elon@musk.com",
291
+ website: "https://elonmusk.com",
292
+ notes: "Address notes or delivery instructions.",
293
+ rowVersion: "1-12345",
294
+ },
295
+ ],
296
+ phoneNumbers: [
297
+ {
298
+ id: "12345",
299
+ countryCode: "1",
300
+ areaCode: "323",
301
+ number: "111-111-1111",
302
+ extension: "105",
303
+ type: "primary",
304
+ },
305
+ {
306
+ id: "12345",
307
+ countryCode: "1",
308
+ areaCode: "323",
309
+ number: "111-111-1111",
310
+ extension: "105",
311
+ type: "primary",
312
+ },
313
+ {
314
+ id: "12345",
315
+ countryCode: "1",
316
+ areaCode: "323",
317
+ number: "111-111-1111",
318
+ extension: "105",
319
+ type: "primary",
320
+ },
321
+ ],
322
+ emails: [
323
+ {
324
+ id: "123",
325
+ email: "elon@musk.com",
326
+ type: "primary",
327
+ },
328
+ ],
329
+ customFields: [
330
+ {
331
+ id: "2389328923893298",
332
+ name: "employee_level",
333
+ description: "Employee Level",
334
+ value: "Uses Salesforce and Marketo",
335
+ },
336
+ ],
337
+ socialLinks: [
338
+ {
339
+ id: "12345",
340
+ url: "https://www.twitter.com/apideck",
341
+ type: "twitter",
342
+ },
343
+ {
344
+ id: "12345",
345
+ url: "https://www.twitter.com/apideck",
346
+ type: "twitter",
347
+ },
348
+ ],
349
+ bankAccounts: [
350
+ {
351
+ bankName: "Monzo",
352
+ accountNumber: "123465",
353
+ accountName: "SPACEX LLC",
354
+ accountType: "credit_card",
355
+ iban: "CH2989144532982975332",
356
+ bic: "AUDSCHGGXXX",
357
+ routingNumber: "012345678",
358
+ bsbNumber: "062-001",
359
+ branchIdentifier: "001",
360
+ bankCode: "BNH",
361
+ currency: "USD",
362
+ },
363
+ {
364
+ bankName: "Monzo",
365
+ accountNumber: "123465",
366
+ accountName: "SPACEX LLC",
367
+ accountType: "credit_card",
368
+ iban: "CH2989144532982975332",
369
+ bic: "AUDSCHGGXXX",
370
+ routingNumber: "012345678",
371
+ bsbNumber: "062-001",
372
+ branchIdentifier: "001",
373
+ bankCode: "BNH",
374
+ currency: "USD",
375
+ },
376
+ ],
377
+ taxCode: "1111",
378
+ taxId: "234-32-0000",
379
+ dietaryPreference: "Veggie",
380
+ foodAllergies: [
381
+ "No allergies",
382
+ ],
383
+ probationPeriod: {
384
+ startDate: new Date("2021-10-01"),
385
+ endDate: new Date("2021-11-28"),
386
+ },
387
+ tags: [
388
+ "New",
389
+ ],
390
+ rowVersion: "1-12345",
391
+ deleted: true,
392
+ updatedBy: "12345",
393
+ createdBy: "12345",
394
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
395
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
396
+ passThrough: [
397
+ {
398
+ serviceId: "<id>",
399
+ extendPaths: [
400
+ {
401
+ path: "$.nested.property",
402
+ value: {
403
+ "TaxClassificationRef": {
404
+ "value": "EUC-99990201-V1-00020000",
405
+ },
406
+ },
407
+ },
408
+ {
409
+ path: "$.nested.property",
410
+ value: {
411
+ "TaxClassificationRef": {
412
+ "value": "EUC-99990201-V1-00020000",
413
+ },
414
+ },
415
+ },
416
+ {
417
+ path: "$.nested.property",
418
+ value: {
419
+ "TaxClassificationRef": {
420
+ "value": "EUC-99990201-V1-00020000",
421
+ },
422
+ },
423
+ },
424
+ ],
425
+ },
426
+ ],
427
+ },
428
+ schedules: [
429
+ {
430
+ id: "12345",
431
+ startDate: "2022-04-08",
432
+ endDate: "2022-04-21",
433
+ workPattern: {
434
+ oddWeeks: {
435
+ hoursMonday: 8,
436
+ hoursTuesday: 8,
437
+ hoursWednesday: 4,
438
+ hoursThursday: 7.5,
439
+ hoursFriday: 4,
440
+ hoursSaturday: 0,
441
+ hoursSunday: 0,
442
+ },
443
+ evenWeeks: {
444
+ hoursMonday: 8,
445
+ hoursTuesday: 8,
446
+ hoursWednesday: 4,
447
+ hoursThursday: 7.5,
448
+ hoursFriday: 4,
449
+ hoursSaturday: 0,
450
+ hoursSunday: 0,
451
+ },
452
+ },
453
+ },
454
+ ],
455
+ },
456
+ });
457
+ });
@@ -0,0 +1,158 @@
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("Eventlogs Webhook Event Logs All", async () => {
10
+ const testHttpClient = createTestHTTPClient("webhook.eventLogsAll");
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.webhook.eventLogs.list({
19
+ appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
20
+ filter: {
21
+ excludeApis: "vault,proxy",
22
+ consumerId: "test_user_id",
23
+ entityType: "Connection",
24
+ eventType: "vault.connection.callable",
25
+ },
26
+ });
27
+ expect(result.httpMeta.response.status).toBe(200);
28
+ expect(result.getWebhookEventLogsResponse).toBeDefined();
29
+ expect(result.getWebhookEventLogsResponse).toEqual({
30
+ statusCode: 200,
31
+ status: "OK",
32
+ data: [
33
+ {
34
+ id: "1d174c4d-fe9e-4377-a76c-6da22fe9cd87",
35
+ statusCode: 200,
36
+ success: true,
37
+ applicationId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
38
+ consumerId: "test_consumer_id",
39
+ unifiedApi: "crm",
40
+ service: {
41
+ id: "101-data-solution",
42
+ name: "101 Data Solution",
43
+ },
44
+ endpoint: "https://example.com/my/webhook/endpoint",
45
+ eventType: "vault.connection.updated",
46
+ executionAttempt: 3,
47
+ httpMethod: "GET",
48
+ timestamp: "2021-07-12T14:26:17.420Z",
49
+ entityType: "Connection",
50
+ requestBody:
51
+ "{\"entity\":{\"id\":\"2222+test_user_id\",\"application_id\":\"2222\",\"consumer_id\":\"test_user_id\",\"name\":\"ActiveCampaign\",\"icon\":\"https://res.cloudinary.com/apideck/image/upload/v1529455970/catalog/activecampaign/icon128x128.png\",\"logo\":\"https://www.activecampaign.com/site/assets/social-2x.png\",\"unified_api\":\"crm\",\"service_id\":\"activecampaign\",\"auth_type\":\"apiKey\",\"enabled\":true,\"tag_line\":\"Integrated email marketing, marketing automation, and small business CRM. Save time while growing your business with sales automation.\",\"website\":\"https://www.activecampaign.com/\",\"settings\":{\"instance_url\":\"https://eu28.salesforce.com\",\"base_url\":\"https://updated.api-us1.com\"},\"metadata\":{\"plan\":\"enterprise\",\"account\":{\"name\":\"My Company\"}},\"state\":\"callable\",\"created_at\":\"2021-09-10T10:39:49.628Z\",\"updated_at\":\"2021-09-10T10:39:52.715Z\"},\"entityType\":\"Connection\"}",
52
+ responseBody: "{\"status\":\"OK\"}",
53
+ retryScheduled: true,
54
+ attempts: [
55
+ {
56
+ timestamp: "2021-07-12T14:26:17.420Z",
57
+ executionAttempt: 3,
58
+ statusCode: 200,
59
+ success: true,
60
+ },
61
+ {
62
+ timestamp: "2021-07-12T14:26:17.420Z",
63
+ executionAttempt: 3,
64
+ statusCode: 200,
65
+ success: true,
66
+ },
67
+ ],
68
+ },
69
+ {
70
+ id: "1d174c4d-fe9e-4377-a76c-6da22fe9cd87",
71
+ statusCode: 200,
72
+ success: true,
73
+ applicationId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
74
+ consumerId: "test_consumer_id",
75
+ unifiedApi: "crm",
76
+ service: {
77
+ id: "101-data-solution",
78
+ name: "101 Data Solution",
79
+ },
80
+ endpoint: "https://example.com/my/webhook/endpoint",
81
+ eventType: "vault.connection.updated",
82
+ executionAttempt: 3,
83
+ httpMethod: "GET",
84
+ timestamp: "2021-07-12T14:26:17.420Z",
85
+ entityType: "Connection",
86
+ requestBody:
87
+ "{\"entity\":{\"id\":\"2222+test_user_id\",\"application_id\":\"2222\",\"consumer_id\":\"test_user_id\",\"name\":\"ActiveCampaign\",\"icon\":\"https://res.cloudinary.com/apideck/image/upload/v1529455970/catalog/activecampaign/icon128x128.png\",\"logo\":\"https://www.activecampaign.com/site/assets/social-2x.png\",\"unified_api\":\"crm\",\"service_id\":\"activecampaign\",\"auth_type\":\"apiKey\",\"enabled\":true,\"tag_line\":\"Integrated email marketing, marketing automation, and small business CRM. Save time while growing your business with sales automation.\",\"website\":\"https://www.activecampaign.com/\",\"settings\":{\"instance_url\":\"https://eu28.salesforce.com\",\"base_url\":\"https://updated.api-us1.com\"},\"metadata\":{\"plan\":\"enterprise\",\"account\":{\"name\":\"My Company\"}},\"state\":\"callable\",\"created_at\":\"2021-09-10T10:39:49.628Z\",\"updated_at\":\"2021-09-10T10:39:52.715Z\"},\"entityType\":\"Connection\"}",
88
+ responseBody: "{\"status\":\"OK\"}",
89
+ retryScheduled: true,
90
+ attempts: [
91
+ {
92
+ timestamp: "2021-07-12T14:26:17.420Z",
93
+ executionAttempt: 3,
94
+ statusCode: 200,
95
+ success: true,
96
+ },
97
+ {
98
+ timestamp: "2021-07-12T14:26:17.420Z",
99
+ executionAttempt: 3,
100
+ statusCode: 200,
101
+ success: true,
102
+ },
103
+ {
104
+ timestamp: "2021-07-12T14:26:17.420Z",
105
+ executionAttempt: 3,
106
+ statusCode: 200,
107
+ success: true,
108
+ },
109
+ ],
110
+ },
111
+ {
112
+ id: "1d174c4d-fe9e-4377-a76c-6da22fe9cd87",
113
+ statusCode: 200,
114
+ success: true,
115
+ applicationId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
116
+ consumerId: "test_consumer_id",
117
+ unifiedApi: "crm",
118
+ service: {
119
+ id: "101-data-solution",
120
+ name: "101 Data Solution",
121
+ },
122
+ endpoint: "https://example.com/my/webhook/endpoint",
123
+ eventType: "vault.connection.updated",
124
+ executionAttempt: 3,
125
+ httpMethod: "GET",
126
+ timestamp: "2021-07-12T14:26:17.420Z",
127
+ entityType: "Connection",
128
+ requestBody:
129
+ "{\"entity\":{\"id\":\"2222+test_user_id\",\"application_id\":\"2222\",\"consumer_id\":\"test_user_id\",\"name\":\"ActiveCampaign\",\"icon\":\"https://res.cloudinary.com/apideck/image/upload/v1529455970/catalog/activecampaign/icon128x128.png\",\"logo\":\"https://www.activecampaign.com/site/assets/social-2x.png\",\"unified_api\":\"crm\",\"service_id\":\"activecampaign\",\"auth_type\":\"apiKey\",\"enabled\":true,\"tag_line\":\"Integrated email marketing, marketing automation, and small business CRM. Save time while growing your business with sales automation.\",\"website\":\"https://www.activecampaign.com/\",\"settings\":{\"instance_url\":\"https://eu28.salesforce.com\",\"base_url\":\"https://updated.api-us1.com\"},\"metadata\":{\"plan\":\"enterprise\",\"account\":{\"name\":\"My Company\"}},\"state\":\"callable\",\"created_at\":\"2021-09-10T10:39:49.628Z\",\"updated_at\":\"2021-09-10T10:39:52.715Z\"},\"entityType\":\"Connection\"}",
130
+ responseBody: "{\"status\":\"OK\"}",
131
+ retryScheduled: true,
132
+ attempts: [
133
+ {
134
+ timestamp: "2021-07-12T14:26:17.420Z",
135
+ executionAttempt: 3,
136
+ statusCode: 200,
137
+ success: true,
138
+ },
139
+ ],
140
+ },
141
+ ],
142
+ meta: {
143
+ itemsOnPage: 50,
144
+ cursors: {
145
+ previous: "em9oby1jcm06OnBhZ2U6OjE=",
146
+ current: "em9oby1jcm06OnBhZ2U6OjI=",
147
+ next: "em9oby1jcm06OnBhZ2U6OjM=",
148
+ },
149
+ },
150
+ links: {
151
+ previous:
152
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
153
+ current: "https://unify.apideck.com/crm/companies",
154
+ next:
155
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
156
+ },
157
+ });
158
+ });