@wictorwilen/cocogen 1.0.42 → 1.0.43

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/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.43] - 2026-02-12
11
+
12
+ ### Fixed
13
+ - REST sample now creates connections with POST /external/connections instead of PUT per Graph guidance.
14
+ - REST profile source sample now merges existing prioritizedSourceUrls and patches the profile settings automatically.
15
+
10
16
  ## [1.0.42] - 2026-02-11
11
17
 
12
18
  ### Changed
@@ -264,6 +270,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
264
270
  - Collection values no longer split on commas; use semicolons instead.
265
271
 
266
272
  [Unreleased]: https://github.com/wictorwilen/cocogen/compare/v1.0.16...HEAD
273
+ [1.0.43]: https://github.com/wictorwilen/cocogen/compare/main...v1.0.43
267
274
  [1.0.42]: https://github.com/wictorwilen/cocogen/compare/main...v1.0.42
268
275
  [1.0.41]: https://github.com/wictorwilen/cocogen/compare/main...v1.0.41
269
276
  [1.0.40]: https://github.com/wictorwilen/cocogen/compare/main...v1.0.40
@@ -2,8 +2,8 @@
2
2
  @connectionId = <%= connectionId %>
3
3
  @token = {{token}}
4
4
 
5
- ### Create or replace connection
6
- PUT {{graphBaseUrl}}/external/connections/{{connectionId}}
5
+ ### Create connection (POST)
6
+ POST {{graphBaseUrl}}/external/connections
7
7
  Authorization: Bearer {{token}}
8
8
  Content-Type: application/json
9
9
 
@@ -5,7 +5,6 @@
5
5
  @profileSourceDisplayName = <%= profileSourceDisplayName %>
6
6
  @profileSourcePriority = <%= profileSourcePriority %>
7
7
  @sourceUrl = {{graphBaseUrl}}/admin/people/profileSources(sourceId='{{connectionId}}')
8
- @settingsId = {{settingsId}}
9
8
 
10
9
  ### Register profile source (people connectors)
11
10
  POST {{graphBaseUrl}}/admin/people/profileSources
@@ -19,16 +18,20 @@ Content-Type: application/json
19
18
  }
20
19
 
21
20
  ### List profile property settings
21
+ # @name getProfileSettings
22
22
  GET {{graphBaseUrl}}/admin/people/profilePropertySettings
23
23
  Authorization: Bearer {{token}}
24
24
 
25
+ ### Capture settings values from previous response
26
+ @profilePropertySettingsId = {{getProfileSettings.response.body.value[0].id}}
27
+ # Paste the existing prioritizedSourceUrls from the getProfileSettings response after sourceUrl (comma-separated, quoted)
28
+ @mergedPrioritizedSourceUrls = ["{{sourceUrl}}", "<paste-url-1>", "<paste-url-2>"]
29
+
25
30
  ### Update profile source precedence (set @settingsId after listing)
26
- PATCH {{graphBaseUrl}}/admin/people/profilePropertySettings/{{settingsId}}
31
+ PATCH {{graphBaseUrl}}/admin/people/profilePropertySettings/{{profilePropertySettingsId}}
27
32
  Authorization: Bearer {{token}}
28
33
  Content-Type: application/json
29
34
 
30
35
  {
31
- "prioritizedSourceUrls": [
32
- "{{sourceUrl}}"
33
- ]
36
+ "prioritizedSourceUrls": {{mergedPrioritizedSourceUrls}}
34
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wictorwilen/cocogen",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "TypeSpec-driven Microsoft Copilot connector generator",
5
5
  "license": "MIT",
6
6
  "author": "Wictor Wilén <wictor@wictorwilen.se>",