@forge/teamwork-graph 2.5.0-next.0 → 2.5.0-next.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.
package/README.md
CHANGED
|
@@ -142,15 +142,10 @@ const usersResult = await graph.setUsers({
|
|
|
142
142
|
{
|
|
143
143
|
externalId: 'user-123',
|
|
144
144
|
displayName: 'John Doe',
|
|
145
|
-
userName: 'johndoe',
|
|
146
|
-
name: {
|
|
147
|
-
formatted: 'John Doe',
|
|
148
|
-
familyName: 'Doe',
|
|
149
|
-
givenName: 'John'
|
|
150
|
-
},
|
|
151
145
|
emails: [
|
|
152
146
|
{ value: 'john@example.com', primary: true }
|
|
153
|
-
]
|
|
147
|
+
],
|
|
148
|
+
updateSequenceNumber: 1
|
|
154
149
|
}
|
|
155
150
|
]
|
|
156
151
|
});
|
|
@@ -18,13 +18,7 @@ describe('TeamWorkGraphClient - User Operations', () => {
|
|
|
18
18
|
const userPayload = {
|
|
19
19
|
externalId: 'user-123',
|
|
20
20
|
displayName: 'Test User',
|
|
21
|
-
userName: 'testuser',
|
|
22
21
|
nickname: 'tester',
|
|
23
|
-
name: {
|
|
24
|
-
formatted: 'Test User',
|
|
25
|
-
familyName: 'User',
|
|
26
|
-
givenName: 'Test'
|
|
27
|
-
},
|
|
28
22
|
photos: [
|
|
29
23
|
{
|
|
30
24
|
value: 'https://example.com/avatar.jpg',
|
|
@@ -40,7 +34,8 @@ describe('TeamWorkGraphClient - User Operations', () => {
|
|
|
40
34
|
department: 'Engineering',
|
|
41
35
|
organization: 'Tech Corp',
|
|
42
36
|
location: 'San Francisco'
|
|
43
|
-
}
|
|
37
|
+
},
|
|
38
|
+
updateSequenceNumber: 1
|
|
44
39
|
};
|
|
45
40
|
it('should successfully create users in bulk', async () => {
|
|
46
41
|
const apiResponse = {
|
|
@@ -185,13 +180,7 @@ describe('TeamWorkGraphClient - User Operations', () => {
|
|
|
185
180
|
type: 'photo'
|
|
186
181
|
}
|
|
187
182
|
],
|
|
188
|
-
emails: [{ value: 'test@example.com', primary: true }]
|
|
189
|
-
meta: {
|
|
190
|
-
resourceType: 'User',
|
|
191
|
-
created: '2024-01-01T00:00:00Z',
|
|
192
|
-
lastModified: '2024-01-01T00:00:00Z',
|
|
193
|
-
location: 'https://example.com/v2/Users/123'
|
|
194
|
-
}
|
|
183
|
+
emails: [{ value: 'test@example.com', primary: true }]
|
|
195
184
|
};
|
|
196
185
|
it('should successfully get user by external ID', async () => {
|
|
197
186
|
mockFetch.mockResolvedValueOnce({
|
package/out/types/users.d.ts
CHANGED
|
@@ -24,16 +24,15 @@ export declare type UserExtendedProfile = {
|
|
|
24
24
|
};
|
|
25
25
|
export declare type UserPayload = {
|
|
26
26
|
externalId: string;
|
|
27
|
-
userName?: string;
|
|
28
|
-
name?: UserName;
|
|
29
27
|
nickname?: string;
|
|
30
28
|
displayName?: string;
|
|
31
29
|
photos?: UserPhoto[];
|
|
32
30
|
emails?: UserEmail[];
|
|
33
31
|
extendedProfile?: UserExtendedProfile;
|
|
32
|
+
updateSequenceNumber?: number;
|
|
34
33
|
};
|
|
35
34
|
export declare type User = {
|
|
36
|
-
id
|
|
35
|
+
id?: string;
|
|
37
36
|
externalId: string;
|
|
38
37
|
userName?: string;
|
|
39
38
|
name?: UserName;
|
|
@@ -42,11 +41,5 @@ export declare type User = {
|
|
|
42
41
|
photos?: UserPhoto[];
|
|
43
42
|
emails?: UserEmail[];
|
|
44
43
|
extendedProfile?: UserExtendedProfile;
|
|
45
|
-
meta?: {
|
|
46
|
-
resourceType: string;
|
|
47
|
-
created: string;
|
|
48
|
-
lastModified: string;
|
|
49
|
-
location: string;
|
|
50
|
-
};
|
|
51
44
|
};
|
|
52
45
|
//# sourceMappingURL=users.d.ts.map
|
package/out/types/users.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAGA,oBAAY,QAA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,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;CAClC,CAAC;AAEF,oBAAY,WAAW,GAAG;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAGF,oBAAY,IAAI,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,eAAe,CAAC,EAAE,mBAAmB,CAAC;CACvC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/teamwork-graph",
|
|
3
|
-
"version": "2.5.0-next.
|
|
3
|
+
"version": "2.5.0-next.1",
|
|
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.
|
|
25
|
+
"@forge/api": "^6.1.2-next.0"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
|