@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,115 @@
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("Collections Issue Tracking Collections All", async () => {
10
+ const testHttpClient = createTestHTTPClient("issueTracking.collectionsAll");
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.issueTracking.collections.list({
19
+ serviceId: "salesforce",
20
+ sort: {
21
+ by: "name",
22
+ },
23
+ passThrough: {
24
+ "search": "San Francisco",
25
+ },
26
+ fields: "id,updated_at",
27
+ });
28
+ expect(result.httpMeta.response.status).toBe(200);
29
+ expect(result.getCollectionsResponse).toBeDefined();
30
+ expect(result.getCollectionsResponse).toEqual({
31
+ statusCode: 200,
32
+ status: "OK",
33
+ service: "jira",
34
+ resource: "Tickets",
35
+ operation: "all",
36
+ data: [
37
+ {
38
+ id: "12345",
39
+ parentId: "12345",
40
+ type: "Technical",
41
+ name: "Main IT Issues",
42
+ description: "IT Issues",
43
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
44
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
45
+ },
46
+ {
47
+ id: "12345",
48
+ parentId: "12345",
49
+ type: "Technical",
50
+ name: "Main IT Issues",
51
+ description: "IT Issues",
52
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
53
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
54
+ },
55
+ {
56
+ id: "12345",
57
+ parentId: "12345",
58
+ type: "Technical",
59
+ name: "Main IT Issues",
60
+ description: "IT Issues",
61
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
62
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
63
+ },
64
+ ],
65
+ meta: {
66
+ itemsOnPage: 50,
67
+ cursors: {
68
+ previous: "em9oby1jcm06OnBhZ2U6OjE=",
69
+ current: "em9oby1jcm06OnBhZ2U6OjI=",
70
+ next: "em9oby1jcm06OnBhZ2U6OjM=",
71
+ },
72
+ },
73
+ links: {
74
+ previous:
75
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
76
+ current: "https://unify.apideck.com/crm/companies",
77
+ next:
78
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
79
+ },
80
+ });
81
+ });
82
+
83
+ test("Collections Issue Tracking Collections One", async () => {
84
+ const testHttpClient = createTestHTTPClient("issueTracking.collectionsOne");
85
+
86
+ const apideck = new Apideck({
87
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
88
+ httpClient: testHttpClient,
89
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
90
+ });
91
+
92
+ const result = await apideck.issueTracking.collections.get({
93
+ collectionId: "apideck-io",
94
+ serviceId: "salesforce",
95
+ fields: "id,updated_at",
96
+ });
97
+ expect(result.httpMeta.response.status).toBe(200);
98
+ expect(result.getCollectionResponse).toBeDefined();
99
+ expect(result.getCollectionResponse).toEqual({
100
+ statusCode: 200,
101
+ status: "OK",
102
+ service: "jira",
103
+ resource: "Tickets",
104
+ operation: "one",
105
+ data: {
106
+ id: "12345",
107
+ parentId: "12345",
108
+ type: "Technical",
109
+ name: "Main IT Issues",
110
+ description: "IT Issues",
111
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
112
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
113
+ },
114
+ });
115
+ });
@@ -0,0 +1,66 @@
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("Collectiontags Issue Tracking Collection Tags All", async () => {
10
+ const testHttpClient = createTestHTTPClient(
11
+ "issueTracking.collectionTagsAll",
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.collectionTags.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.getCollectionTagsResponse).toBeDefined();
30
+ expect(result.getCollectionTagsResponse).toEqual({
31
+ statusCode: 200,
32
+ status: "OK",
33
+ service: "jira",
34
+ resource: "Tickets",
35
+ operation: "all",
36
+ data: [
37
+ {
38
+ id: "12345",
39
+ name: "User Experience",
40
+ },
41
+ {
42
+ id: "12345",
43
+ name: "User Experience",
44
+ },
45
+ {
46
+ id: "12345",
47
+ name: "User Experience",
48
+ },
49
+ ],
50
+ meta: {
51
+ itemsOnPage: 50,
52
+ cursors: {
53
+ previous: "em9oby1jcm06OnBhZ2U6OjE=",
54
+ current: "em9oby1jcm06OnBhZ2U6OjI=",
55
+ next: "em9oby1jcm06OnBhZ2U6OjM=",
56
+ },
57
+ },
58
+ links: {
59
+ previous:
60
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
61
+ current: "https://unify.apideck.com/crm/companies",
62
+ next:
63
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
64
+ },
65
+ });
66
+ });
@@ -0,0 +1,318 @@
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("Collectionticketcomments Issue Tracking Collection Ticket Comments All", async () => {
10
+ const testHttpClient = createTestHTTPClient(
11
+ "issueTracking.collectionTicketCommentsAll",
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.collectionTicketComments.list({
21
+ serviceId: "salesforce",
22
+ collectionId: "apideck-io",
23
+ ticketId: "<id>",
24
+ sort: {
25
+ by: "created_at",
26
+ },
27
+ passThrough: {
28
+ "search": "San Francisco",
29
+ },
30
+ fields: "id,updated_at",
31
+ });
32
+ expect(result.httpMeta.response.status).toBe(200);
33
+ expect(result.getCommentsResponse).toBeDefined();
34
+ expect(result.getCommentsResponse).toEqual({
35
+ statusCode: 200,
36
+ status: "OK",
37
+ service: "jira",
38
+ resource: "Tickets",
39
+ operation: "all",
40
+ data: [
41
+ {
42
+ id: "12345",
43
+ body: "What internet provider do you use?",
44
+ createdBy: "12345",
45
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
46
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
47
+ passThrough: [
48
+ {
49
+ serviceId: "<id>",
50
+ extendPaths: [
51
+ {
52
+ path: "$.nested.property",
53
+ value: {
54
+ "TaxClassificationRef": {
55
+ "value": "EUC-99990201-V1-00020000",
56
+ },
57
+ },
58
+ },
59
+ {
60
+ path: "$.nested.property",
61
+ value: {
62
+ "TaxClassificationRef": {
63
+ "value": "EUC-99990201-V1-00020000",
64
+ },
65
+ },
66
+ },
67
+ {
68
+ path: "$.nested.property",
69
+ value: {
70
+ "TaxClassificationRef": {
71
+ "value": "EUC-99990201-V1-00020000",
72
+ },
73
+ },
74
+ },
75
+ ],
76
+ },
77
+ {
78
+ serviceId: "<id>",
79
+ extendPaths: [
80
+ {
81
+ path: "$.nested.property",
82
+ value: {
83
+ "TaxClassificationRef": {
84
+ "value": "EUC-99990201-V1-00020000",
85
+ },
86
+ },
87
+ },
88
+ ],
89
+ },
90
+ ],
91
+ },
92
+ {
93
+ id: "12345",
94
+ body: "What internet provider do you use?",
95
+ createdBy: "12345",
96
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
97
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
98
+ passThrough: [
99
+ {
100
+ serviceId: "<id>",
101
+ extendPaths: [
102
+ {
103
+ path: "$.nested.property",
104
+ value: {
105
+ "TaxClassificationRef": {
106
+ "value": "EUC-99990201-V1-00020000",
107
+ },
108
+ },
109
+ },
110
+ ],
111
+ },
112
+ ],
113
+ },
114
+ {
115
+ id: "12345",
116
+ body: "What internet provider do you use?",
117
+ createdBy: "12345",
118
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
119
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
120
+ passThrough: [
121
+ {
122
+ serviceId: "<id>",
123
+ extendPaths: [
124
+ {
125
+ path: "$.nested.property",
126
+ value: {
127
+ "TaxClassificationRef": {
128
+ "value": "EUC-99990201-V1-00020000",
129
+ },
130
+ },
131
+ },
132
+ {
133
+ path: "$.nested.property",
134
+ value: {
135
+ "TaxClassificationRef": {
136
+ "value": "EUC-99990201-V1-00020000",
137
+ },
138
+ },
139
+ },
140
+ ],
141
+ },
142
+ {
143
+ serviceId: "<id>",
144
+ extendPaths: [
145
+ {
146
+ path: "$.nested.property",
147
+ value: {
148
+ "TaxClassificationRef": {
149
+ "value": "EUC-99990201-V1-00020000",
150
+ },
151
+ },
152
+ },
153
+ ],
154
+ },
155
+ ],
156
+ },
157
+ ],
158
+ meta: {
159
+ itemsOnPage: 50,
160
+ cursors: {
161
+ previous: "em9oby1jcm06OnBhZ2U6OjE=",
162
+ current: "em9oby1jcm06OnBhZ2U6OjI=",
163
+ next: "em9oby1jcm06OnBhZ2U6OjM=",
164
+ },
165
+ },
166
+ links: {
167
+ previous:
168
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjE%3D",
169
+ current: "https://unify.apideck.com/crm/companies",
170
+ next:
171
+ "https://unify.apideck.com/crm/companies?cursor=em9oby1jcm06OnBhZ2U6OjM",
172
+ },
173
+ });
174
+ });
175
+
176
+ it.skip("Collectionticketcomments Issue Tracking Collection Ticket Comments Add", async () => {
177
+ assert.fail(
178
+ "incomplete test found please make sure to address the following errors: [`workflow step issueTracking.collectionTicketCommentsAdd.test referencing operation issueTracking.collectionTicketCommentsAdd with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketCommentsAdd.test referencing operation issueTracking.collectionTicketCommentsAdd with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketCommentsAdd.test referencing operation issueTracking.collectionTicketCommentsAdd with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketCommentsAdd.test referencing operation issueTracking.collectionTicketCommentsAdd with expression in requestBody with type not currently supported`]",
179
+ );
180
+ });
181
+
182
+ test("Collectionticketcomments Issue Tracking Collection Ticket Comments One", async () => {
183
+ const testHttpClient = createTestHTTPClient(
184
+ "issueTracking.collectionTicketCommentsOne",
185
+ );
186
+
187
+ const apideck = new Apideck({
188
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
189
+ httpClient: testHttpClient,
190
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
191
+ });
192
+
193
+ const result = await apideck.issueTracking.collectionTicketComments.get({
194
+ id: "<id>",
195
+ serviceId: "salesforce",
196
+ collectionId: "apideck-io",
197
+ ticketId: "<id>",
198
+ fields: "id,updated_at",
199
+ });
200
+ expect(result.httpMeta.response.status).toBe(200);
201
+ expect(result.getCommentResponse).toBeDefined();
202
+ expect(result.getCommentResponse).toEqual({
203
+ statusCode: 200,
204
+ status: "OK",
205
+ service: "sage-hr",
206
+ resource: "Tickets",
207
+ operation: "one",
208
+ data: {
209
+ id: "12345",
210
+ body: "What internet provider do you use?",
211
+ createdBy: "12345",
212
+ updatedAt: new Date("2020-09-30T07:43:32.000Z"),
213
+ createdAt: new Date("2020-09-30T07:43:32.000Z"),
214
+ passThrough: [
215
+ {
216
+ serviceId: "<id>",
217
+ extendPaths: [
218
+ {
219
+ path: "$.nested.property",
220
+ value: {
221
+ "TaxClassificationRef": {
222
+ "value": "EUC-99990201-V1-00020000",
223
+ },
224
+ },
225
+ },
226
+ {
227
+ path: "$.nested.property",
228
+ value: {
229
+ "TaxClassificationRef": {
230
+ "value": "EUC-99990201-V1-00020000",
231
+ },
232
+ },
233
+ },
234
+ ],
235
+ },
236
+ {
237
+ serviceId: "<id>",
238
+ extendPaths: [
239
+ {
240
+ path: "$.nested.property",
241
+ value: {
242
+ "TaxClassificationRef": {
243
+ "value": "EUC-99990201-V1-00020000",
244
+ },
245
+ },
246
+ },
247
+ {
248
+ path: "$.nested.property",
249
+ value: {
250
+ "TaxClassificationRef": {
251
+ "value": "EUC-99990201-V1-00020000",
252
+ },
253
+ },
254
+ },
255
+ ],
256
+ },
257
+ {
258
+ serviceId: "<id>",
259
+ extendPaths: [
260
+ {
261
+ path: "$.nested.property",
262
+ value: {
263
+ "TaxClassificationRef": {
264
+ "value": "EUC-99990201-V1-00020000",
265
+ },
266
+ },
267
+ },
268
+ {
269
+ path: "$.nested.property",
270
+ value: {
271
+ "TaxClassificationRef": {
272
+ "value": "EUC-99990201-V1-00020000",
273
+ },
274
+ },
275
+ },
276
+ ],
277
+ },
278
+ ],
279
+ },
280
+ });
281
+ });
282
+
283
+ it.skip("Collectionticketcomments Issue Tracking Collection Ticket Comments Update", async () => {
284
+ assert.fail(
285
+ "incomplete test found please make sure to address the following errors: [`workflow step issueTracking.collectionTicketCommentsUpdate.test referencing operation issueTracking.collectionTicketCommentsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketCommentsUpdate.test referencing operation issueTracking.collectionTicketCommentsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketCommentsUpdate.test referencing operation issueTracking.collectionTicketCommentsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketCommentsUpdate.test referencing operation issueTracking.collectionTicketCommentsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketCommentsUpdate.test referencing operation issueTracking.collectionTicketCommentsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketCommentsUpdate.test referencing operation issueTracking.collectionTicketCommentsUpdate with expression in requestBody with type not currently supported`, `workflow step issueTracking.collectionTicketCommentsUpdate.test referencing operation issueTracking.collectionTicketCommentsUpdate with expression in requestBody with type not currently supported`]",
286
+ );
287
+ });
288
+
289
+ test("Collectionticketcomments Issue Tracking Collection Ticket Comments Delete", async () => {
290
+ const testHttpClient = createTestHTTPClient(
291
+ "issueTracking.collectionTicketCommentsDelete",
292
+ );
293
+
294
+ const apideck = new Apideck({
295
+ serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
296
+ httpClient: testHttpClient,
297
+ apiKey: process.env["APIDECK_API_KEY"] ?? "value",
298
+ });
299
+
300
+ const result = await apideck.issueTracking.collectionTicketComments.delete({
301
+ id: "<id>",
302
+ serviceId: "salesforce",
303
+ collectionId: "apideck-io",
304
+ ticketId: "<id>",
305
+ });
306
+ expect(result.httpMeta.response.status).toBe(200);
307
+ expect(result.deleteCommentResponse).toBeDefined();
308
+ expect(result.deleteCommentResponse).toEqual({
309
+ statusCode: 200,
310
+ status: "OK",
311
+ service: "jira",
312
+ resource: "Tickets",
313
+ operation: "add",
314
+ data: {
315
+ id: "12345",
316
+ },
317
+ });
318
+ });