@forge/teamwork-graph 2.4.0 → 2.5.0-next.0-experimental-3ed5db1
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.
- package/out/__test__/entity-operations.test.js +189 -0
- package/out/__test__/group-operations.test.js +58 -0
- package/out/__test__/user-operations.test.js +46 -0
- package/out/graph.d.ts.map +1 -1
- package/out/graph.js +31 -27
- package/out/types/requests.d.ts +11 -0
- package/out/types/requests.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -231,6 +231,123 @@ describe('TeamWorkGraphClient - setObjects', () => {
|
|
|
231
231
|
const req = { objects: null };
|
|
232
232
|
await expect(graphClient.setObjects(req)).rejects.toThrow('objects must be an array');
|
|
233
233
|
});
|
|
234
|
+
it('should pass Atl-Connection-Id header when connectionId is provided', async () => {
|
|
235
|
+
const documentObject = {
|
|
236
|
+
schemaVersion: '1.0',
|
|
237
|
+
id: 'my-document',
|
|
238
|
+
updateSequenceNumber: 123,
|
|
239
|
+
displayName: 'My Document',
|
|
240
|
+
url: 'https://document.com',
|
|
241
|
+
createdAt: '2024-04-16T09:01:32+00:00',
|
|
242
|
+
lastUpdatedAt: '2024-04-16T09:01:32+00:00',
|
|
243
|
+
permissions: [
|
|
244
|
+
{
|
|
245
|
+
accessControls: [
|
|
246
|
+
{
|
|
247
|
+
principals: [
|
|
248
|
+
{
|
|
249
|
+
type: 'EVERYONE'
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
'atlassian:document': {
|
|
257
|
+
type: {
|
|
258
|
+
category: 'DOCUMENT',
|
|
259
|
+
iconUrl: 'http://icon.com'
|
|
260
|
+
},
|
|
261
|
+
content: {
|
|
262
|
+
mimeType: 'text/plain',
|
|
263
|
+
text: 'Really large content here...'
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
const connectionId = 'test-connection-123';
|
|
268
|
+
const req = { objects: [documentObject], connectionId };
|
|
269
|
+
const backendResponse = {
|
|
270
|
+
accepted: [
|
|
271
|
+
{
|
|
272
|
+
entityType: 'atlassian:document',
|
|
273
|
+
entityId: { id: 'my-document' },
|
|
274
|
+
thirdPartyAri: 'ari:third-party:test::document/my-document'
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
};
|
|
278
|
+
mockFetch.mockResolvedValueOnce({
|
|
279
|
+
ok: true,
|
|
280
|
+
json: () => Promise.resolve(backendResponse)
|
|
281
|
+
});
|
|
282
|
+
await graphClient.setObjects(req);
|
|
283
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.OBJECTS.BULK), expect.objectContaining({
|
|
284
|
+
method: 'POST',
|
|
285
|
+
headers: expect.objectContaining({
|
|
286
|
+
'Atl-Connection-Id': connectionId,
|
|
287
|
+
'Content-Type': 'application/json'
|
|
288
|
+
})
|
|
289
|
+
}));
|
|
290
|
+
});
|
|
291
|
+
it('should not pass Atl-Connection-Id header when connectionId is not provided', async () => {
|
|
292
|
+
const documentObject = {
|
|
293
|
+
schemaVersion: '1.0',
|
|
294
|
+
id: 'my-document',
|
|
295
|
+
updateSequenceNumber: 123,
|
|
296
|
+
displayName: 'My Document',
|
|
297
|
+
url: 'https://document.com',
|
|
298
|
+
createdAt: '2024-04-16T09:01:32+00:00',
|
|
299
|
+
lastUpdatedAt: '2024-04-16T09:01:32+00:00',
|
|
300
|
+
permissions: [
|
|
301
|
+
{
|
|
302
|
+
accessControls: [
|
|
303
|
+
{
|
|
304
|
+
principals: [
|
|
305
|
+
{
|
|
306
|
+
type: 'EVERYONE'
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
'atlassian:document': {
|
|
314
|
+
type: {
|
|
315
|
+
category: 'DOCUMENT',
|
|
316
|
+
iconUrl: 'http://icon.com'
|
|
317
|
+
},
|
|
318
|
+
content: {
|
|
319
|
+
mimeType: 'text/plain',
|
|
320
|
+
text: 'Really large content here...'
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
const req = { objects: [documentObject] };
|
|
325
|
+
const backendResponse = {
|
|
326
|
+
accepted: [
|
|
327
|
+
{
|
|
328
|
+
entityType: 'atlassian:document',
|
|
329
|
+
entityId: { id: 'my-document' },
|
|
330
|
+
thirdPartyAri: 'ari:third-party:test::document/my-document'
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
};
|
|
334
|
+
mockFetch.mockResolvedValueOnce({
|
|
335
|
+
ok: true,
|
|
336
|
+
json: () => Promise.resolve(backendResponse)
|
|
337
|
+
});
|
|
338
|
+
await graphClient.setObjects(req);
|
|
339
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.OBJECTS.BULK), expect.objectContaining({
|
|
340
|
+
method: 'POST',
|
|
341
|
+
headers: expect.objectContaining({
|
|
342
|
+
'Content-Type': 'application/json'
|
|
343
|
+
})
|
|
344
|
+
}));
|
|
345
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.OBJECTS.BULK), expect.not.objectContaining({
|
|
346
|
+
headers: expect.objectContaining({
|
|
347
|
+
'Atl-Connection-Id': expect.anything()
|
|
348
|
+
})
|
|
349
|
+
}));
|
|
350
|
+
});
|
|
234
351
|
});
|
|
235
352
|
describe('TeamWorkGraphClient - getObjectByExternalId', () => {
|
|
236
353
|
let graphClient;
|
|
@@ -316,6 +433,78 @@ describe('TeamWorkGraphClient - getObjectByExternalId', () => {
|
|
|
316
433
|
externalId: ''
|
|
317
434
|
})).rejects.toThrow('externalId is required');
|
|
318
435
|
});
|
|
436
|
+
it('should pass Atl-Connection-Id header when connectionId is provided', async () => {
|
|
437
|
+
const expectedObject = {
|
|
438
|
+
id: 'ari:cloud:teamwork-graph:object/123',
|
|
439
|
+
externalId: 'pipelines/123/builds/456',
|
|
440
|
+
objectType: 'atlassian:document',
|
|
441
|
+
displayName: 'Build Documentation',
|
|
442
|
+
description: 'Documentation for build process',
|
|
443
|
+
url: 'https://example.com/builds/456',
|
|
444
|
+
createdAt: '2024-01-01T00:00:00Z',
|
|
445
|
+
lastUpdatedAt: '2024-01-01T00:00:00Z',
|
|
446
|
+
meta: {
|
|
447
|
+
resourceType: 'Document',
|
|
448
|
+
created: '2024-01-01T00:00:00Z',
|
|
449
|
+
lastModified: '2024-01-01T00:00:00Z',
|
|
450
|
+
location: 'https://example.com/v2/entities/123'
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
mockFetch.mockResolvedValueOnce({
|
|
454
|
+
ok: true,
|
|
455
|
+
json: () => Promise.resolve({ entities: [expectedObject] })
|
|
456
|
+
});
|
|
457
|
+
const connectionId = 'test-connection-456';
|
|
458
|
+
await graphClient.getObjectByExternalId({
|
|
459
|
+
objectType: 'atlassian:document',
|
|
460
|
+
externalId: 'pipelines/123/builds/456',
|
|
461
|
+
connectionId
|
|
462
|
+
});
|
|
463
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.OBJECTS.GET_BY_EXTERNAL_ID), expect.objectContaining({
|
|
464
|
+
method: 'POST',
|
|
465
|
+
headers: expect.objectContaining({
|
|
466
|
+
'Atl-Connection-Id': connectionId,
|
|
467
|
+
'Content-Type': 'application/json'
|
|
468
|
+
})
|
|
469
|
+
}));
|
|
470
|
+
});
|
|
471
|
+
it('should not pass Atl-Connection-Id header when connectionId is not provided', async () => {
|
|
472
|
+
const expectedObject = {
|
|
473
|
+
id: 'ari:cloud:teamwork-graph:object/123',
|
|
474
|
+
externalId: 'pipelines/123/builds/456',
|
|
475
|
+
objectType: 'atlassian:document',
|
|
476
|
+
displayName: 'Build Documentation',
|
|
477
|
+
description: 'Documentation for build process',
|
|
478
|
+
url: 'https://example.com/builds/456',
|
|
479
|
+
createdAt: '2024-01-01T00:00:00Z',
|
|
480
|
+
lastUpdatedAt: '2024-01-01T00:00:00Z',
|
|
481
|
+
meta: {
|
|
482
|
+
resourceType: 'Document',
|
|
483
|
+
created: '2024-01-01T00:00:00Z',
|
|
484
|
+
lastModified: '2024-01-01T00:00:00Z',
|
|
485
|
+
location: 'https://example.com/v2/entities/123'
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
mockFetch.mockResolvedValueOnce({
|
|
489
|
+
ok: true,
|
|
490
|
+
json: () => Promise.resolve({ entities: [expectedObject] })
|
|
491
|
+
});
|
|
492
|
+
await graphClient.getObjectByExternalId({
|
|
493
|
+
objectType: 'atlassian:document',
|
|
494
|
+
externalId: 'pipelines/123/builds/456'
|
|
495
|
+
});
|
|
496
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.OBJECTS.GET_BY_EXTERNAL_ID), expect.objectContaining({
|
|
497
|
+
method: 'POST',
|
|
498
|
+
headers: expect.objectContaining({
|
|
499
|
+
'Content-Type': 'application/json'
|
|
500
|
+
})
|
|
501
|
+
}));
|
|
502
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.OBJECTS.GET_BY_EXTERNAL_ID), expect.not.objectContaining({
|
|
503
|
+
headers: expect.objectContaining({
|
|
504
|
+
'Atl-Connection-Id': expect.anything()
|
|
505
|
+
})
|
|
506
|
+
}));
|
|
507
|
+
});
|
|
319
508
|
});
|
|
320
509
|
describe('TeamWorkGraphClient - deleteObjectsByExternalId', () => {
|
|
321
510
|
let graphClient;
|
|
@@ -109,6 +109,64 @@ describe('TeamWorkGraphClient - Group Operations', () => {
|
|
|
109
109
|
groups: null
|
|
110
110
|
})).rejects.toThrow('groups must be an array');
|
|
111
111
|
});
|
|
112
|
+
it('should pass Atl-Connection-Id header when connectionId is provided', async () => {
|
|
113
|
+
const backendResponse = {
|
|
114
|
+
success: [
|
|
115
|
+
{
|
|
116
|
+
externalId: 'developers',
|
|
117
|
+
statusCode: 200,
|
|
118
|
+
message: 'Group created successfully'
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
failures: []
|
|
122
|
+
};
|
|
123
|
+
mockFetch.mockResolvedValueOnce({
|
|
124
|
+
ok: true,
|
|
125
|
+
json: () => Promise.resolve(backendResponse)
|
|
126
|
+
});
|
|
127
|
+
const connectionId = 'test-connection-groups';
|
|
128
|
+
await graphClient.setGroups({
|
|
129
|
+
groups: [groupPayload],
|
|
130
|
+
connectionId
|
|
131
|
+
});
|
|
132
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.GROUPS.BULK), expect.objectContaining({
|
|
133
|
+
method: 'POST',
|
|
134
|
+
headers: expect.objectContaining({
|
|
135
|
+
'Atl-Connection-Id': connectionId,
|
|
136
|
+
'Content-Type': 'application/json'
|
|
137
|
+
})
|
|
138
|
+
}));
|
|
139
|
+
});
|
|
140
|
+
it('should not pass Atl-Connection-Id header when connectionId is not provided', async () => {
|
|
141
|
+
const backendResponse = {
|
|
142
|
+
success: [
|
|
143
|
+
{
|
|
144
|
+
externalId: 'developers',
|
|
145
|
+
statusCode: 200,
|
|
146
|
+
message: 'Group created successfully'
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
failures: []
|
|
150
|
+
};
|
|
151
|
+
mockFetch.mockResolvedValueOnce({
|
|
152
|
+
ok: true,
|
|
153
|
+
json: () => Promise.resolve(backendResponse)
|
|
154
|
+
});
|
|
155
|
+
await graphClient.setGroups({
|
|
156
|
+
groups: [groupPayload]
|
|
157
|
+
});
|
|
158
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.GROUPS.BULK), expect.objectContaining({
|
|
159
|
+
method: 'POST',
|
|
160
|
+
headers: expect.objectContaining({
|
|
161
|
+
'Content-Type': 'application/json'
|
|
162
|
+
})
|
|
163
|
+
}));
|
|
164
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.GROUPS.BULK), expect.not.objectContaining({
|
|
165
|
+
headers: expect.objectContaining({
|
|
166
|
+
'Atl-Connection-Id': expect.anything()
|
|
167
|
+
})
|
|
168
|
+
}));
|
|
169
|
+
});
|
|
112
170
|
});
|
|
113
171
|
describe('deleteGroupsByExternalId', () => {
|
|
114
172
|
it('should successfully delete groups in bulk', async () => {
|
|
@@ -85,6 +85,52 @@ describe('TeamWorkGraphClient - User Operations', () => {
|
|
|
85
85
|
users: null
|
|
86
86
|
})).rejects.toThrow('users must be an array');
|
|
87
87
|
});
|
|
88
|
+
it('should pass Atl-Connection-Id header when connectionId is provided', async () => {
|
|
89
|
+
const apiResponse = {
|
|
90
|
+
success: [{ externalId: 'user-123', success: true, statusCode: 200 }],
|
|
91
|
+
failures: []
|
|
92
|
+
};
|
|
93
|
+
mockFetch.mockResolvedValueOnce({
|
|
94
|
+
ok: true,
|
|
95
|
+
json: () => Promise.resolve(apiResponse)
|
|
96
|
+
});
|
|
97
|
+
const connectionId = 'test-connection-789';
|
|
98
|
+
await graphClient.setUsers({
|
|
99
|
+
users: [userPayload],
|
|
100
|
+
connectionId
|
|
101
|
+
});
|
|
102
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.USERS.BULK), expect.objectContaining({
|
|
103
|
+
method: 'POST',
|
|
104
|
+
headers: expect.objectContaining({
|
|
105
|
+
'Atl-Connection-Id': connectionId,
|
|
106
|
+
'Content-Type': 'application/json'
|
|
107
|
+
})
|
|
108
|
+
}));
|
|
109
|
+
});
|
|
110
|
+
it('should not pass Atl-Connection-Id header when connectionId is not provided', async () => {
|
|
111
|
+
const apiResponse = {
|
|
112
|
+
success: [{ externalId: 'user-123', success: true, statusCode: 200 }],
|
|
113
|
+
failures: []
|
|
114
|
+
};
|
|
115
|
+
mockFetch.mockResolvedValueOnce({
|
|
116
|
+
ok: true,
|
|
117
|
+
json: () => Promise.resolve(apiResponse)
|
|
118
|
+
});
|
|
119
|
+
await graphClient.setUsers({
|
|
120
|
+
users: [userPayload]
|
|
121
|
+
});
|
|
122
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.USERS.BULK), expect.objectContaining({
|
|
123
|
+
method: 'POST',
|
|
124
|
+
headers: expect.objectContaining({
|
|
125
|
+
'Content-Type': 'application/json'
|
|
126
|
+
})
|
|
127
|
+
}));
|
|
128
|
+
expect(mockFetch).toHaveBeenCalledWith((0, endpoints_1.getFullPath)(endpoints_1.ENDPOINTS.USERS.BULK), expect.not.objectContaining({
|
|
129
|
+
headers: expect.objectContaining({
|
|
130
|
+
'Atl-Connection-Id': expect.anything()
|
|
131
|
+
})
|
|
132
|
+
}));
|
|
133
|
+
});
|
|
88
134
|
});
|
|
89
135
|
describe('deleteUsersByExternalId', () => {
|
|
90
136
|
it('should successfully delete users in bulk', async () => {
|
package/out/graph.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../src/graph.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,8BAA8B,EAC9B,+BAA+B,EAC/B,0BAA0B,EAC1B,2BAA2B,EAC3B,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,+BAA+B,EAC/B,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,gCAAgC,EAChC,iCAAiC,EACjC,gCAAgC,EAChC,iCAAiC,EAClC,MAAM,SAAS,CAAC;AAEjB,qBAAa,mBAAoB,YAAW,aAAa;IACvD,UAAU,YAAmB,iBAAiB,KAAG,QAAQ,kBAAkB,CAAC,
|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,qBAA4B,CAAC"}
|
package/out/graph.js
CHANGED
|
@@ -8,13 +8,13 @@ const endpoints_1 = require("./utils/endpoints");
|
|
|
8
8
|
const errors_1 = require("./utils/errors");
|
|
9
9
|
class TeamWorkGraphClient {
|
|
10
10
|
setObjects = async (request) => {
|
|
11
|
-
const { objects, properties } = request;
|
|
11
|
+
const { objects, properties, connectionId } = request;
|
|
12
12
|
(0, validators_1.validateSetObjectsRequest)(objects, properties);
|
|
13
13
|
try {
|
|
14
14
|
const response = await this.sendRequest(endpoints_1.ENDPOINTS.OBJECTS.BULK, {
|
|
15
15
|
method: 'POST',
|
|
16
16
|
body: JSON.stringify({ entities: objects, properties })
|
|
17
|
-
});
|
|
17
|
+
}, connectionId);
|
|
18
18
|
return {
|
|
19
19
|
success: true,
|
|
20
20
|
results: {
|
|
@@ -29,7 +29,7 @@ class TeamWorkGraphClient {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
getObjectByExternalId = async (request) => {
|
|
32
|
-
const { objectType, externalId } = request;
|
|
32
|
+
const { objectType, externalId, connectionId } = request;
|
|
33
33
|
(0, validators_1.validateGetObjectByExternalIdRequest)(objectType, externalId);
|
|
34
34
|
try {
|
|
35
35
|
const path = endpoints_1.ENDPOINTS.OBJECTS.GET_BY_EXTERNAL_ID;
|
|
@@ -39,7 +39,7 @@ class TeamWorkGraphClient {
|
|
|
39
39
|
entityType: objectType,
|
|
40
40
|
entityIds: [externalId]
|
|
41
41
|
})
|
|
42
|
-
});
|
|
42
|
+
}, connectionId);
|
|
43
43
|
return {
|
|
44
44
|
success: true,
|
|
45
45
|
object: response.entities.length > 0 ? response.entities[0] : null
|
|
@@ -50,13 +50,13 @@ class TeamWorkGraphClient {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
deleteObjectsByExternalId = async (request) => {
|
|
53
|
-
const { objectType, externalIds } = request;
|
|
53
|
+
const { objectType, externalIds, connectionId } = request;
|
|
54
54
|
(0, validators_1.validateDeleteObjectsByExternalIdRequest)(objectType, externalIds);
|
|
55
55
|
try {
|
|
56
56
|
await this.sendRequest(endpoints_1.ENDPOINTS.OBJECTS.BULK_DELETE, {
|
|
57
57
|
method: 'DELETE',
|
|
58
58
|
body: JSON.stringify({ entityType: objectType, entityIds: externalIds })
|
|
59
|
-
});
|
|
59
|
+
}, connectionId);
|
|
60
60
|
return {
|
|
61
61
|
success: true
|
|
62
62
|
};
|
|
@@ -66,7 +66,7 @@ class TeamWorkGraphClient {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
deleteObjectsByProperties = async (request) => {
|
|
69
|
-
const { properties, objectType } = request;
|
|
69
|
+
const { properties, objectType, connectionId } = request;
|
|
70
70
|
(0, validators_1.validateDeleteObjectsByPropertiesRequest)(properties, objectType);
|
|
71
71
|
try {
|
|
72
72
|
await this.sendRequest(endpoints_1.ENDPOINTS.OBJECTS.DELETE_BY_PROPERTIES, {
|
|
@@ -75,7 +75,7 @@ class TeamWorkGraphClient {
|
|
|
75
75
|
properties,
|
|
76
76
|
entityType: objectType
|
|
77
77
|
})
|
|
78
|
-
});
|
|
78
|
+
}, connectionId);
|
|
79
79
|
return {
|
|
80
80
|
success: true
|
|
81
81
|
};
|
|
@@ -85,13 +85,13 @@ class TeamWorkGraphClient {
|
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
setGroups = async (request) => {
|
|
88
|
-
const { groups } = request;
|
|
88
|
+
const { groups, connectionId } = request;
|
|
89
89
|
(0, validators_1.validateSetGroupsRequest)(groups);
|
|
90
90
|
try {
|
|
91
91
|
const response = await this.sendRequest(endpoints_1.ENDPOINTS.GROUPS.BULK, {
|
|
92
92
|
method: 'POST',
|
|
93
93
|
body: JSON.stringify({ groups })
|
|
94
|
-
});
|
|
94
|
+
}, connectionId);
|
|
95
95
|
return {
|
|
96
96
|
success: true,
|
|
97
97
|
results: {
|
|
@@ -105,13 +105,13 @@ class TeamWorkGraphClient {
|
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
deleteGroupsByExternalId = async (request) => {
|
|
108
|
-
const { externalIds } = request;
|
|
108
|
+
const { externalIds, connectionId } = request;
|
|
109
109
|
(0, validators_1.validateDeleteGroupsByExternalIdRequest)(externalIds);
|
|
110
110
|
try {
|
|
111
111
|
const response = await this.sendRequest(endpoints_1.ENDPOINTS.GROUPS.DELETE, {
|
|
112
112
|
method: 'DELETE',
|
|
113
113
|
body: JSON.stringify({ externalIds })
|
|
114
|
-
});
|
|
114
|
+
}, connectionId);
|
|
115
115
|
return {
|
|
116
116
|
success: true,
|
|
117
117
|
results: response.results || []
|
|
@@ -122,13 +122,13 @@ class TeamWorkGraphClient {
|
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
getGroupByExternalId = async (request) => {
|
|
125
|
-
const { externalId } = request;
|
|
125
|
+
const { externalId, connectionId } = request;
|
|
126
126
|
(0, validators_1.validateGetGroupByExternalIdRequest)(externalId);
|
|
127
127
|
try {
|
|
128
128
|
const path = `${endpoints_1.ENDPOINTS.GROUPS.GET_BY_EXTERNAL_ID}/${encodeURIComponent(externalId)}`;
|
|
129
129
|
const response = await this.sendRequest(path, {
|
|
130
130
|
method: 'GET'
|
|
131
|
-
});
|
|
131
|
+
}, connectionId);
|
|
132
132
|
return {
|
|
133
133
|
success: true,
|
|
134
134
|
group: response
|
|
@@ -139,13 +139,13 @@ class TeamWorkGraphClient {
|
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
setUsers = async (request) => {
|
|
142
|
-
const { users } = request;
|
|
142
|
+
const { users, connectionId } = request;
|
|
143
143
|
(0, validators_1.validateSetUsersRequest)(users);
|
|
144
144
|
try {
|
|
145
145
|
const response = await this.sendRequest(endpoints_1.ENDPOINTS.USERS.BULK, {
|
|
146
146
|
method: 'POST',
|
|
147
147
|
body: JSON.stringify({ users })
|
|
148
|
-
});
|
|
148
|
+
}, connectionId);
|
|
149
149
|
return {
|
|
150
150
|
success: true,
|
|
151
151
|
results: {
|
|
@@ -159,13 +159,13 @@ class TeamWorkGraphClient {
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
deleteUsersByExternalId = async (request) => {
|
|
162
|
-
const { externalIds } = request;
|
|
162
|
+
const { externalIds, connectionId } = request;
|
|
163
163
|
(0, validators_1.validateDeleteUsersByExternalIdRequest)(externalIds);
|
|
164
164
|
try {
|
|
165
165
|
const response = await this.sendRequest(endpoints_1.ENDPOINTS.USERS.DELETE, {
|
|
166
166
|
method: 'DELETE',
|
|
167
167
|
body: JSON.stringify({ externalIds })
|
|
168
|
-
});
|
|
168
|
+
}, connectionId);
|
|
169
169
|
return {
|
|
170
170
|
success: true,
|
|
171
171
|
results: response.results || []
|
|
@@ -176,13 +176,13 @@ class TeamWorkGraphClient {
|
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
getUserByExternalId = async (request) => {
|
|
179
|
-
const { externalId } = request;
|
|
179
|
+
const { externalId, connectionId } = request;
|
|
180
180
|
(0, validators_1.validateGetUserByExternalIdRequest)(externalId);
|
|
181
181
|
try {
|
|
182
182
|
const path = `${endpoints_1.ENDPOINTS.USERS.GET_BY_EXTERNAL_ID}/${encodeURIComponent(externalId)}`;
|
|
183
183
|
const response = await this.sendRequest(path, {
|
|
184
184
|
method: 'GET'
|
|
185
|
-
});
|
|
185
|
+
}, connectionId);
|
|
186
186
|
return {
|
|
187
187
|
success: true,
|
|
188
188
|
user: response
|
|
@@ -193,13 +193,13 @@ class TeamWorkGraphClient {
|
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
mapUsers = async (request) => {
|
|
196
|
-
const { directMappings } = request;
|
|
196
|
+
const { directMappings, connectionId } = request;
|
|
197
197
|
(0, validators_1.validateMapUsersRequest)(directMappings);
|
|
198
198
|
try {
|
|
199
199
|
const response = await this.sendRequest(endpoints_1.ENDPOINTS.USERS.MAPPINGS, {
|
|
200
200
|
method: 'POST',
|
|
201
201
|
body: JSON.stringify({ directMappings })
|
|
202
|
-
});
|
|
202
|
+
}, connectionId);
|
|
203
203
|
return {
|
|
204
204
|
success: true,
|
|
205
205
|
results: {
|
|
@@ -212,16 +212,20 @@ class TeamWorkGraphClient {
|
|
|
212
212
|
return (0, error_handling_1.handleError)(error, 'map users');
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
|
-
async sendRequest(path, options) {
|
|
215
|
+
async sendRequest(path, options, connectionId) {
|
|
216
216
|
try {
|
|
217
217
|
const reqPath = (0, endpoints_1.getFullPath)(path);
|
|
218
|
+
const headers = {
|
|
219
|
+
...options?.headers,
|
|
220
|
+
'Content-Type': 'application/json'
|
|
221
|
+
};
|
|
222
|
+
if (connectionId) {
|
|
223
|
+
headers['Atl-Connection-Id'] = connectionId;
|
|
224
|
+
}
|
|
218
225
|
const response = await (0, api_1.__fetchProduct)({ provider: 'app', remote: 'stargate', type: 'fpp' })(reqPath, {
|
|
219
226
|
...options,
|
|
220
227
|
redirect: 'follow',
|
|
221
|
-
headers
|
|
222
|
-
...options?.headers,
|
|
223
|
-
'Content-Type': 'application/json'
|
|
224
|
-
}
|
|
228
|
+
headers
|
|
225
229
|
});
|
|
226
230
|
if (!response.ok) {
|
|
227
231
|
await (0, error_handling_1.handleResponseError)(response, `API request failed`);
|
package/out/types/requests.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Object, UserPayload, User, GroupPayload, Group } from './';
|
|
|
2
2
|
export declare type SetObjectsRequest = {
|
|
3
3
|
objects: Array<Object>;
|
|
4
4
|
properties?: Record<string, string>;
|
|
5
|
+
connectionId?: string;
|
|
5
6
|
};
|
|
6
7
|
export declare type ObjectId = Record<string, string>;
|
|
7
8
|
export declare type ValidObject = {
|
|
@@ -39,6 +40,7 @@ export declare type BulkObjectResponse = {
|
|
|
39
40
|
export declare type GetObjectByExternalIdRequest = {
|
|
40
41
|
objectType: string;
|
|
41
42
|
externalId: string;
|
|
43
|
+
connectionId?: string;
|
|
42
44
|
};
|
|
43
45
|
export declare type GetObjectByExternalIdResponse = {
|
|
44
46
|
success: boolean;
|
|
@@ -49,6 +51,7 @@ export declare type GetObjectByExternalIdResponse = {
|
|
|
49
51
|
export declare type DeleteObjectsByExternalIdRequest = {
|
|
50
52
|
objectType: string;
|
|
51
53
|
externalIds: string[];
|
|
54
|
+
connectionId?: string;
|
|
52
55
|
};
|
|
53
56
|
export declare type DeleteObjectsByExternalIdResponse = {
|
|
54
57
|
success: boolean;
|
|
@@ -58,6 +61,7 @@ export declare type DeleteObjectsByExternalIdResponse = {
|
|
|
58
61
|
export declare type DeleteObjectsByPropertiesRequest = {
|
|
59
62
|
properties: Record<string, string>;
|
|
60
63
|
objectType: string;
|
|
64
|
+
connectionId?: string;
|
|
61
65
|
};
|
|
62
66
|
export declare type DeleteObjectsByPropertiesResponse = {
|
|
63
67
|
success: boolean;
|
|
@@ -66,6 +70,7 @@ export declare type DeleteObjectsByPropertiesResponse = {
|
|
|
66
70
|
};
|
|
67
71
|
export declare type BulkUsersRequest = {
|
|
68
72
|
users: UserPayload[];
|
|
73
|
+
connectionId?: string;
|
|
69
74
|
};
|
|
70
75
|
export declare type BulkUsersResponse = {
|
|
71
76
|
success: boolean;
|
|
@@ -87,6 +92,7 @@ export declare type BulkUsersResponse = {
|
|
|
87
92
|
};
|
|
88
93
|
export declare type DeleteUsersByExternalIdRequest = {
|
|
89
94
|
externalIds: string[];
|
|
95
|
+
connectionId?: string;
|
|
90
96
|
};
|
|
91
97
|
export declare type DeleteUsersByExternalIdResponse = {
|
|
92
98
|
success: boolean;
|
|
@@ -101,6 +107,7 @@ export declare type DeleteUsersByExternalIdResponse = {
|
|
|
101
107
|
};
|
|
102
108
|
export declare type GetUserByExternalIdRequest = {
|
|
103
109
|
externalId: string;
|
|
110
|
+
connectionId?: string;
|
|
104
111
|
};
|
|
105
112
|
export declare type GetUserByExternalIdResponse = {
|
|
106
113
|
success: boolean;
|
|
@@ -117,6 +124,7 @@ export declare type UserMapping = {
|
|
|
117
124
|
};
|
|
118
125
|
export declare type MapUsersRequest = {
|
|
119
126
|
directMappings: UserMapping[];
|
|
127
|
+
connectionId?: string;
|
|
120
128
|
};
|
|
121
129
|
export declare type MapUsersResponse = {
|
|
122
130
|
success: boolean;
|
|
@@ -142,6 +150,7 @@ export declare type MapUsersResponse = {
|
|
|
142
150
|
};
|
|
143
151
|
export declare type BulkGroupsRequest = {
|
|
144
152
|
groups: GroupPayload[];
|
|
153
|
+
connectionId?: string;
|
|
145
154
|
};
|
|
146
155
|
export declare type GroupSuccessResult = {
|
|
147
156
|
externalId: string;
|
|
@@ -173,6 +182,7 @@ export declare type BulkGroupsResponse = {
|
|
|
173
182
|
};
|
|
174
183
|
export declare type DeleteGroupsByExternalIdRequest = {
|
|
175
184
|
externalIds: string[];
|
|
185
|
+
connectionId?: string;
|
|
176
186
|
};
|
|
177
187
|
export declare type GroupDeleteResult = {
|
|
178
188
|
externalId: string;
|
|
@@ -187,6 +197,7 @@ export declare type DeleteGroupsByExternalIdResponse = {
|
|
|
187
197
|
};
|
|
188
198
|
export declare type GetGroupByExternalIdRequest = {
|
|
189
199
|
externalId: string;
|
|
200
|
+
connectionId?: string;
|
|
190
201
|
};
|
|
191
202
|
export declare type GetGroupByExternalIdResponse = {
|
|
192
203
|
success: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../src/types/requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAGpE,oBAAY,iBAAiB,GAAG;IAC9B,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../src/types/requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE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CAAC;YACnB,OAAO,EAAE,KAAK,CAAC;YACf,UAAU,EAAE,MAAM,CAAC;YACnB,KAAK,EAAE,MAAM,CAAC;SACf,CAAC,CAAC;KACJ,CAAC;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,oBAAY,+BAA+B,GAAG;IAC5C,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,oBAAY,gCAAgC,GAAG;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,oBAAY,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/teamwork-graph",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-next.0-experimental-3ed5db1",
|
|
4
4
|
"description": "Forge TeamworkGraph SDK",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"jest-when": "^3.6.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@forge/api": "^6.1.1"
|
|
25
|
+
"@forge/api": "^6.1.1-experimental-3ed5db1"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
|