@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,436 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { assert, expect, it, test } from "vitest";
6
+ import { Apideck } from "../index.js";
7
+ import { createTestHTTPClient } from "./testclient.js";
8
+
9
+ test("Collectiontickets Issue Tracking Collection Tickets All", async () => {
10
+ const testHttpClient = createTestHTTPClient(
11
+ "issueTracking.collectionTicketsAll",
12
+ );
13
+
14
+ const apideck = new Apideck({
15
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
16
+ httpClient: testHttpClient,
17
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
18
+ });
19
+
20
+ const result = await apideck.issueTracking.collectionTickets.list({
21
+ serviceId: "salesforce",
22
+ collectionId: "apideck-io",
23
+ sort: {
24
+ by: "created_at",
25
+ },
26
+ filter: {
27
+ status: [
28
+ "open",
29
+ ],
30
+ },
31
+ passThrough: {
32
+ "search": "San Francisco",
33
+ },
34
+ fields: "id,updated_at",
35
+ });
36
+ expect(result.httpMeta.response.status).toBe(200);
37
+ expect(result.getTicketsResponse).toBeDefined();
38
+ expect(result.getTicketsResponse).toEqual({
39
+ statusCode: 200,
40
+ status: "OK",
41
+ service: "jira",
42
+ resource: "Tickets",
43
+ operation: "all",
44
+ data: [
45
+ {
46
+ id: "12345",
47
+ parentId: "12345",
48
+ collectionId: "12345",
49
+ type: "Technical",
50
+ subject: "Technical Support Request",
51
+ description: "I am facing issues with my internet connection",
52
+ status: "open",
53
+ priority: "high",
54
+ assignees: [
55
+ {
56
+ id: "12345",
57
+ username: "Cocoa",
58
+ },
59
+ {
60
+ id: "12345",
61
+ username: "Cocoa",
62
+ },
63
+ ],
64
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
65
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
66
+ createdBy: "12345",
67
+ dueDate: new Date("2020-09-30T07:43:32.000Z"),
68
+ completedAt: new Date("2020-09-30T07:43:32.000Z"),
69
+ tags: [
70
+ {
71
+ id: "12345",
72
+ name: "User Experience",
73
+ },
74
+ {
75
+ id: "12345",
76
+ name: "User Experience",
77
+ },
78
+ {
79
+ id: "12345",
80
+ name: "User Experience",
81
+ },
82
+ ],
83
+ passThrough: [
84
+ {
85
+ serviceId: "<id>",
86
+ extendPaths: [
87
+ {
88
+ path: "$.nested.property",
89
+ value: {
90
+ "TaxClassificationRef": {
91
+ "value": "EUC-99990201-V1-00020000",
92
+ },
93
+ },
94
+ },
95
+ ],
96
+ },
97
+ ],
98
+ },
99
+ {
100
+ id: "12345",
101
+ parentId: "12345",
102
+ collectionId: "12345",
103
+ type: "Technical",
104
+ subject: "Technical Support Request",
105
+ description: "I am facing issues with my internet connection",
106
+ status: "open",
107
+ priority: "high",
108
+ assignees: [
109
+ {
110
+ id: "12345",
111
+ username: "Cocoa",
112
+ },
113
+ ],
114
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
115
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
116
+ createdBy: "12345",
117
+ dueDate: new Date("2020-09-30T07:43:32.000Z"),
118
+ completedAt: new Date("2020-09-30T07:43:32.000Z"),
119
+ tags: [
120
+ {
121
+ id: "12345",
122
+ name: "User Experience",
123
+ },
124
+ {
125
+ id: "12345",
126
+ name: "User Experience",
127
+ },
128
+ ],
129
+ passThrough: [
130
+ {
131
+ serviceId: "<id>",
132
+ extendPaths: [
133
+ {
134
+ path: "$.nested.property",
135
+ value: {
136
+ "TaxClassificationRef": {
137
+ "value": "EUC-99990201-V1-00020000",
138
+ },
139
+ },
140
+ },
141
+ ],
142
+ },
143
+ {
144
+ serviceId: "<id>",
145
+ extendPaths: [
146
+ {
147
+ path: "$.nested.property",
148
+ value: {
149
+ "TaxClassificationRef": {
150
+ "value": "EUC-99990201-V1-00020000",
151
+ },
152
+ },
153
+ },
154
+ {
155
+ path: "$.nested.property",
156
+ value: {
157
+ "TaxClassificationRef": {
158
+ "value": "EUC-99990201-V1-00020000",
159
+ },
160
+ },
161
+ },
162
+ {
163
+ path: "$.nested.property",
164
+ value: {
165
+ "TaxClassificationRef": {
166
+ "value": "EUC-99990201-V1-00020000",
167
+ },
168
+ },
169
+ },
170
+ ],
171
+ },
172
+ ],
173
+ },
174
+ {
175
+ id: "12345",
176
+ parentId: "12345",
177
+ collectionId: "12345",
178
+ type: "Technical",
179
+ subject: "Technical Support Request",
180
+ description: "I am facing issues with my internet connection",
181
+ status: "open",
182
+ priority: "high",
183
+ assignees: [
184
+ {
185
+ id: "12345",
186
+ username: "Cocoa",
187
+ },
188
+ ],
189
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
190
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
191
+ createdBy: "12345",
192
+ dueDate: new Date("2020-09-30T07:43:32.000Z"),
193
+ completedAt: new Date("2020-09-30T07:43:32.000Z"),
194
+ tags: [
195
+ {
196
+ id: "12345",
197
+ name: "User Experience",
198
+ },
199
+ ],
200
+ passThrough: [
201
+ {
202
+ serviceId: "<id>",
203
+ extendPaths: [
204
+ {
205
+ path: "$.nested.property",
206
+ value: {
207
+ "TaxClassificationRef": {
208
+ "value": "EUC-99990201-V1-00020000",
209
+ },
210
+ },
211
+ },
212
+ {
213
+ path: "$.nested.property",
214
+ value: {
215
+ "TaxClassificationRef": {
216
+ "value": "EUC-99990201-V1-00020000",
217
+ },
218
+ },
219
+ },
220
+ ],
221
+ },
222
+ {
223
+ serviceId: "<id>",
224
+ extendPaths: [
225
+ {
226
+ path: "$.nested.property",
227
+ value: {
228
+ "TaxClassificationRef": {
229
+ "value": "EUC-99990201-V1-00020000",
230
+ },
231
+ },
232
+ },
233
+ {
234
+ path: "$.nested.property",
235
+ value: {
236
+ "TaxClassificationRef": {
237
+ "value": "EUC-99990201-V1-00020000",
238
+ },
239
+ },
240
+ },
241
+ ],
242
+ },
243
+ {
244
+ serviceId: "<id>",
245
+ extendPaths: [
246
+ {
247
+ path: "$.nested.property",
248
+ value: {
249
+ "TaxClassificationRef": {
250
+ "value": "EUC-99990201-V1-00020000",
251
+ },
252
+ },
253
+ },
254
+ ],
255
+ },
256
+ ],
257
+ },
258
+ ],
259
+ meta: {
260
+ itemsOnPage: 50,
261
+ cursors: {
262
+ previous: "em9oby1jcm06OnBhZ2U6OjE=",
263
+ current: "em9oby1jcm06OnBhZ2U6OjI=",
264
+ next: "em9oby1jcm06OnBhZ2U6OjM=",
265
+ },
266
+ },
267
+ links: {
268
+ previous:
269
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
270
+ current: "https://unify.apideck.com/crm/companies",
271
+ next:
272
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
273
+ },
274
+ });
275
+ });
276
+
277
+ it.skip("Collectiontickets Issue Tracking Collection Tickets Add", async () => {
278
+ assert.fail(
279
+ "incomplete test found please make sure to address the following errors: [`workflow step issueTracking.collectionTicketsAdd.test referencing operation issueTracking.collectionTicketsAdd with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketsAdd.test referencing operation issueTracking.collectionTicketsAdd with expression in requestBody with type not currently supported`]",
280
+ );
281
+ });
282
+
283
+ test("Collectiontickets Issue Tracking Collection Tickets One", async () => {
284
+ const testHttpClient = createTestHTTPClient(
285
+ "issueTracking.collectionTicketsOne",
286
+ );
287
+
288
+ const apideck = new Apideck({
289
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
290
+ httpClient: testHttpClient,
291
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
292
+ });
293
+
294
+ const result = await apideck.issueTracking.collectionTickets.get({
295
+ ticketId: "<id>",
296
+ serviceId: "salesforce",
297
+ collectionId: "apideck-io",
298
+ fields: "id,updated_at",
299
+ });
300
+ expect(result.httpMeta.response.status).toBe(200);
301
+ expect(result.getTicketResponse).toBeDefined();
302
+ expect(result.getTicketResponse).toEqual({
303
+ statusCode: 200,
304
+ status: "OK",
305
+ service: "sage-hr",
306
+ resource: "Tickets",
307
+ operation: "one",
308
+ data: {
309
+ id: "12345",
310
+ parentId: "12345",
311
+ collectionId: "12345",
312
+ type: "Technical",
313
+ subject: "Technical Support Request",
314
+ description: "I am facing issues with my internet connection",
315
+ status: "open",
316
+ priority: "high",
317
+ assignees: [
318
+ {
319
+ id: "12345",
320
+ username: "Cocoa",
321
+ },
322
+ {
323
+ id: "12345",
324
+ username: "Cocoa",
325
+ },
326
+ {
327
+ id: "12345",
328
+ username: "Cocoa",
329
+ },
330
+ ],
331
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
332
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
333
+ createdBy: "12345",
334
+ dueDate: new Date("2020-09-30T07:43:32.000Z"),
335
+ completedAt: new Date("2020-09-30T07:43:32.000Z"),
336
+ tags: [
337
+ {
338
+ id: "12345",
339
+ name: "User Experience",
340
+ },
341
+ {
342
+ id: "12345",
343
+ name: "User Experience",
344
+ },
345
+ ],
346
+ passThrough: [
347
+ {
348
+ serviceId: "<id>",
349
+ extendPaths: [
350
+ {
351
+ path: "$.nested.property",
352
+ value: {
353
+ "TaxClassificationRef": {
354
+ "value": "EUC-99990201-V1-00020000",
355
+ },
356
+ },
357
+ },
358
+ {
359
+ path: "$.nested.property",
360
+ value: {
361
+ "TaxClassificationRef": {
362
+ "value": "EUC-99990201-V1-00020000",
363
+ },
364
+ },
365
+ },
366
+ ],
367
+ },
368
+ {
369
+ serviceId: "<id>",
370
+ extendPaths: [
371
+ {
372
+ path: "$.nested.property",
373
+ value: {
374
+ "TaxClassificationRef": {
375
+ "value": "EUC-99990201-V1-00020000",
376
+ },
377
+ },
378
+ },
379
+ {
380
+ path: "$.nested.property",
381
+ value: {
382
+ "TaxClassificationRef": {
383
+ "value": "EUC-99990201-V1-00020000",
384
+ },
385
+ },
386
+ },
387
+ {
388
+ path: "$.nested.property",
389
+ value: {
390
+ "TaxClassificationRef": {
391
+ "value": "EUC-99990201-V1-00020000",
392
+ },
393
+ },
394
+ },
395
+ ],
396
+ },
397
+ ],
398
+ },
399
+ });
400
+ });
401
+
402
+ it.skip("Collectiontickets Issue Tracking Collection Tickets Update", async () => {
403
+ assert.fail(
404
+ "incomplete test found please make sure to address the following errors: [`workflow step issueTracking.collectionTicketsUpdate.test referencing operation issueTracking.collectionTicketsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketsUpdate.test referencing operation issueTracking.collectionTicketsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketsUpdate.test referencing operation issueTracking.collectionTicketsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketsUpdate.test referencing operation issueTracking.collectionTicketsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketsUpdate.test referencing operation issueTracking.collectionTicketsUpdate with expression in requestBody with type not currently supported`]",
405
+ );
406
+ });
407
+
408
+ test("Collectiontickets Issue Tracking Collection Tickets Delete", async () => {
409
+ const testHttpClient = createTestHTTPClient(
410
+ "issueTracking.collectionTicketsDelete",
411
+ );
412
+
413
+ const apideck = new Apideck({
414
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
415
+ httpClient: testHttpClient,
416
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
417
+ });
418
+
419
+ const result = await apideck.issueTracking.collectionTickets.delete({
420
+ ticketId: "<id>",
421
+ serviceId: "salesforce",
422
+ collectionId: "apideck-io",
423
+ });
424
+ expect(result.httpMeta.response.status).toBe(200);
425
+ expect(result.deleteTicketResponse).toBeDefined();
426
+ expect(result.deleteTicketResponse).toEqual({
427
+ statusCode: 200,
428
+ status: "OK",
429
+ service: "jira",
430
+ resource: "Tickets",
431
+ operation: "add",
432
+ data: {
433
+ id: "12345",
434
+ },
435
+ });
436
+ });
@@ -0,0 +1,122 @@
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("Collectionusers Issue Tracking Collection Users All", async () => {
10
+ const testHttpClient = createTestHTTPClient(
11
+ "issueTracking.collectionUsersAll",
12
+ );
13
+
14
+ const apideck = new Apideck({
15
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
16
+ httpClient: testHttpClient,
17
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
18
+ });
19
+
20
+ const result = await apideck.issueTracking.collectionUsers.list({
21
+ collectionId: "apideck-io",
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.getCollectionUsersResponse).toBeDefined();
30
+ expect(result.getCollectionUsersResponse).toEqual({
31
+ statusCode: 200,
32
+ status: "OK",
33
+ service: "jira",
34
+ resource: "Tickets",
35
+ operation: "all",
36
+ data: [
37
+ {
38
+ id: "12345",
39
+ name: "Elon Musk",
40
+ firstName: "Elon",
41
+ lastName: "Musk",
42
+ email: "elon@musk.com",
43
+ photoUrl: "https://unavatar.io/elon-musk",
44
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
45
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
46
+ },
47
+ {
48
+ id: "12345",
49
+ name: "Elon Musk",
50
+ firstName: "Elon",
51
+ lastName: "Musk",
52
+ email: "elon@musk.com",
53
+ photoUrl: "https://unavatar.io/elon-musk",
54
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
55
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
56
+ },
57
+ {
58
+ id: "12345",
59
+ name: "Elon Musk",
60
+ firstName: "Elon",
61
+ lastName: "Musk",
62
+ email: "elon@musk.com",
63
+ photoUrl: "https://unavatar.io/elon-musk",
64
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
65
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
66
+ },
67
+ ],
68
+ meta: {
69
+ itemsOnPage: 50,
70
+ cursors: {
71
+ previous: "em9oby1jcm06OnBhZ2U6OjE=",
72
+ current: "em9oby1jcm06OnBhZ2U6OjI=",
73
+ next: "em9oby1jcm06OnBhZ2U6OjM=",
74
+ },
75
+ },
76
+ links: {
77
+ previous:
78
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
79
+ current: "https://unify.apideck.com/crm/companies",
80
+ next:
81
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
82
+ },
83
+ });
84
+ });
85
+
86
+ test("Collectionusers Issue Tracking Collection Users One", async () => {
87
+ const testHttpClient = createTestHTTPClient(
88
+ "issueTracking.collectionUsersOne",
89
+ );
90
+
91
+ const apideck = new Apideck({
92
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
93
+ httpClient: testHttpClient,
94
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
95
+ });
96
+
97
+ const result = await apideck.issueTracking.collectionUsers.get({
98
+ collectionId: "apideck-io",
99
+ id: "<id>",
100
+ serviceId: "salesforce",
101
+ fields: "id,updated_at",
102
+ });
103
+ expect(result.httpMeta.response.status).toBe(200);
104
+ expect(result.getCollectionUserResponse).toBeDefined();
105
+ expect(result.getCollectionUserResponse).toEqual({
106
+ statusCode: 200,
107
+ status: "OK",
108
+ service: "jira",
109
+ resource: "Tickets",
110
+ operation: "one",
111
+ data: {
112
+ id: "12345",
113
+ name: "Elon Musk",
114
+ firstName: "Elon",
115
+ lastName: "Musk",
116
+ email: "elon@musk.com",
117
+ photoUrl: "https://unavatar.io/elon-musk",
118
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
119
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
120
+ },
121
+ });
122
+ });