@ogcio/building-blocks-sdk 0.1.12 → 0.1.13
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/.azure/pipeline.yaml +47 -1
- package/.github/CODEOWNERS +1 -1
- package/.gitleaksignore +2 -0
- package/.release-please-manifest.json +3 -0
- package/CHANGELOG.md +43 -0
- package/package.json +25 -28
- package/release-please-config.json +25 -0
package/.azure/pipeline.yaml
CHANGED
|
@@ -16,6 +16,11 @@ resources:
|
|
|
16
16
|
ref: main
|
|
17
17
|
endpoint: ogcio
|
|
18
18
|
|
|
19
|
+
variables:
|
|
20
|
+
secretsManagerAwsConnection: "PROD-LifeEvents"
|
|
21
|
+
githubSecret: "github-token"
|
|
22
|
+
awsRegion: "eu-west-1"
|
|
23
|
+
|
|
19
24
|
stages:
|
|
20
25
|
- stage: setup
|
|
21
26
|
displayName: Setup Dependencies
|
|
@@ -122,7 +127,7 @@ stages:
|
|
|
122
127
|
pnpm run build && pnpm link --global
|
|
123
128
|
- script:
|
|
124
129
|
- script: |
|
|
125
|
-
pnpm link --global @ogcio/building-blocks-sdk &&
|
|
130
|
+
pnpm link --global @ogcio/building-blocks-sdk && pnpm run build
|
|
126
131
|
workingDirectory: $(System.DefaultWorkingDirectory)/test-frameworks/nextjs-14-testing-app
|
|
127
132
|
displayName: "Build NextJs 14 app"
|
|
128
133
|
|
|
@@ -136,3 +141,44 @@ stages:
|
|
|
136
141
|
- job: CheckTestBuildApprovalGateways
|
|
137
142
|
steps:
|
|
138
143
|
- script: echo "All tests and build completed"
|
|
144
|
+
|
|
145
|
+
- stage: retrieveCredentials
|
|
146
|
+
displayName: Retrieve credentials from AWS Secrets Manager
|
|
147
|
+
dependsOn: checkTestBuildApprovalGateways
|
|
148
|
+
pool:
|
|
149
|
+
vmImage: "ubuntu-latest"
|
|
150
|
+
jobs:
|
|
151
|
+
- job: githubCredentials
|
|
152
|
+
displayName: GitHub credentials
|
|
153
|
+
steps:
|
|
154
|
+
- checkout: none
|
|
155
|
+
- task: AWSShellScript@1
|
|
156
|
+
name: setGithubToken
|
|
157
|
+
displayName: Retrieve GitHub credentials
|
|
158
|
+
inputs:
|
|
159
|
+
awsCredentials: ${{ variables.secretsManagerAwsConnection }}
|
|
160
|
+
regionName: ${{ variables.awsRegion }}
|
|
161
|
+
scriptType: "inline"
|
|
162
|
+
inlineScript: |
|
|
163
|
+
export GITHUB_TOKEN=$(aws secretsmanager get-secret-value --secret-id ${{ variables.githubSecret }} | jq --raw-output '.SecretString' | jq -r .GITHUB_TOKEN)
|
|
164
|
+
echo "##vso[task.setvariable variable=githubTokenADO;issecret=true;isoutput=true;]$GITHUB_TOKEN"
|
|
165
|
+
|
|
166
|
+
- stage: release
|
|
167
|
+
displayName: Release Management
|
|
168
|
+
dependsOn: retrieveCredentials
|
|
169
|
+
jobs:
|
|
170
|
+
- job: HandleRelease
|
|
171
|
+
variables:
|
|
172
|
+
- group: building-blocks-sdk
|
|
173
|
+
- name: githubTokenADO
|
|
174
|
+
value: $[stageDependencies.retrieveCredentials.githubCredentials.outputs['setGithubToken.githubTokenADO']]
|
|
175
|
+
displayName: Handle Release Process
|
|
176
|
+
pool:
|
|
177
|
+
vmImage: "ubuntu-latest"
|
|
178
|
+
steps:
|
|
179
|
+
- template: release/release-please.yml@pipeline-templates
|
|
180
|
+
parameters:
|
|
181
|
+
npmToken: $(NPM_TOKEN)
|
|
182
|
+
githubToken: $(githubTokenADO)
|
|
183
|
+
repoUrl: "https://github.com/ogcio/building-blocks-sdk"
|
|
184
|
+
packageName: "@ogcio/building-blocks-sdk"
|
package/.github/CODEOWNERS
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# Global
|
|
2
|
-
* @SamSalvatico @alewin @bozzelliandrea @matteolc
|
|
2
|
+
* @SamSalvatico @alewin @bozzelliandrea @matteolc @peschina @nnorbert @Thurfjell
|
package/.gitleaksignore
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
# Ignore OpenAPI examples values
|
|
2
2
|
/src/src/client/clients/featureFlags/open-api-definition.json:generic-api-key:9024
|
|
3
3
|
/src/src/client/clients/featureFlags/schema.ts:generic-api-key:9202
|
|
4
|
+
/src/src/client/clients/featureFlags/open-api-definition.json:generic-api-key:9285
|
|
5
|
+
/src/src/client/clients/featureFlags/schema.ts:generic-api-key:9389
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.13](https://github.com/ogcio/building-blocks-sdk/compare/@ogcio/building-blocks-sdk@v0.1.12...@ogcio/building-blocks-sdk@v0.1.13) (2024-12-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **23769:** new payment request call added ([#83](https://github.com/ogcio/building-blocks-sdk/issues/83)) ([6aa6361](https://github.com/ogcio/building-blocks-sdk/commit/6aa6361cbaf2b634782ee6371da54434c27b7260))
|
|
9
|
+
* **23806:** modify messaging journey step data schema ([#85](https://github.com/ogcio/building-blocks-sdk/issues/85)) ([42f8ca0](https://github.com/ogcio/building-blocks-sdk/commit/42f8ca08c6bc4b3178ec144d3f64b3fb7662eb9a))
|
|
10
|
+
* add analytics sdk building block ([#39](https://github.com/ogcio/building-blocks-sdk/issues/39)) ([1d70382](https://github.com/ogcio/building-blocks-sdk/commit/1d70382cbef7f1d7b60b0693d62815e24b186cd9))
|
|
11
|
+
* add clients ([#7](https://github.com/ogcio/building-blocks-sdk/issues/7)) ([855121e](https://github.com/ogcio/building-blocks-sdk/commit/855121ea5f607898c9f794e0a36fe65080e118ad))
|
|
12
|
+
* add command in package.json ([#4](https://github.com/ogcio/building-blocks-sdk/issues/4)) ([b976cd7](https://github.com/ogcio/building-blocks-sdk/commit/b976cd77f38a264252871d82d63b4e0615b8d633))
|
|
13
|
+
* add outdated command ([#14](https://github.com/ogcio/building-blocks-sdk/issues/14)) ([b7ac271](https://github.com/ogcio/building-blocks-sdk/commit/b7ac27112f713bdaba700f49c3d1086275750d68))
|
|
14
|
+
* added backups management ([#8](https://github.com/ogcio/building-blocks-sdk/issues/8)) ([c5fc6d2](https://github.com/ogcio/building-blocks-sdk/commit/c5fc6d2c296fe71092dda91b6ae0f7eaf729bfd4))
|
|
15
|
+
* added definitions for all services ([#6](https://github.com/ogcio/building-blocks-sdk/issues/6)) ([3a5820e](https://github.com/ogcio/building-blocks-sdk/commit/3a5820ebbda54140f9a0c5deaee86d33146ab8ac))
|
|
16
|
+
* added sdk builder ([#13](https://github.com/ogcio/building-blocks-sdk/issues/13)) ([70972c1](https://github.com/ogcio/building-blocks-sdk/commit/70972c12aa55943a5b34a39964ca1f0caa52cbc8))
|
|
17
|
+
* added token deletion ([#38](https://github.com/ogcio/building-blocks-sdk/issues/38)) ([fd7c055](https://github.com/ogcio/building-blocks-sdk/commit/fd7c05553bd44b335b16b265dc8abacc51ddf839))
|
|
18
|
+
* added upload-api methods ([#20](https://github.com/ogcio/building-blocks-sdk/issues/20)) ([58dff3a](https://github.com/ogcio/building-blocks-sdk/commit/58dff3abb5ccae1f83a1caf2d2a98421a81a71b9))
|
|
19
|
+
* **core:** added-dummy-upload-client-implementation ([#2](https://github.com/ogcio/building-blocks-sdk/issues/2)) ([f24d2d5](https://github.com/ogcio/building-blocks-sdk/commit/f24d2d50efc65e09fd28806a3e3005a872c5d3e7))
|
|
20
|
+
* **core:** first commit ([dcab6fa](https://github.com/ogcio/building-blocks-sdk/commit/dcab6fab78bdd868dde6834ae00233580d339f3c))
|
|
21
|
+
* log requests ([#84](https://github.com/ogcio/building-blocks-sdk/issues/84)) ([3f95865](https://github.com/ogcio/building-blocks-sdk/commit/3f958654c31fb6da402e04a2d8740c6631b9e656))
|
|
22
|
+
* m2m auxiliary function for gettoken ([#18](https://github.com/ogcio/building-blocks-sdk/issues/18)) ([fdb0f2c](https://github.com/ogcio/building-blocks-sdk/commit/fdb0f2cd1e282396798bed3978cc1d81f64b827a))
|
|
23
|
+
* modify payments api ([#67](https://github.com/ogcio/building-blocks-sdk/issues/67)) ([3f89bd0](https://github.com/ogcio/building-blocks-sdk/commit/3f89bd0cd324b5551309cdb4bcd794ebbf2d32dd))
|
|
24
|
+
* start adding cli command ([#3](https://github.com/ogcio/building-blocks-sdk/issues/3)) ([df50cbf](https://github.com/ogcio/building-blocks-sdk/commit/df50cbfc838ca2b6b1af095788a8a68bdb3bb0a0))
|
|
25
|
+
* update analytics beta 6 ([#86](https://github.com/ogcio/building-blocks-sdk/issues/86)) ([4f1f43b](https://github.com/ogcio/building-blocks-sdk/commit/4f1f43bcbb8ffbc61dad443ba5aed2034bd435bb))
|
|
26
|
+
* update configurations file with permissions ([#5](https://github.com/ogcio/building-blocks-sdk/issues/5)) ([a920931](https://github.com/ogcio/building-blocks-sdk/commit/a9209318a45680275d8d18a590a1f9ee55027494))
|
|
27
|
+
* update journey schema ([#80](https://github.com/ogcio/building-blocks-sdk/issues/80)) ([639f9b9](https://github.com/ogcio/building-blocks-sdk/commit/639f9b995c6ba78d6a69cf2e72e45732af92a44e))
|
|
28
|
+
* update payments schema ([#75](https://github.com/ogcio/building-blocks-sdk/issues/75)) ([009f8da](https://github.com/ogcio/building-blocks-sdk/commit/009f8da3537803e226382c434c0aed9067637fd2))
|
|
29
|
+
* update payments schema and add methods ([#66](https://github.com/ogcio/building-blocks-sdk/issues/66)) ([ca9833c](https://github.com/ogcio/building-blocks-sdk/commit/ca9833c1efb1b97bec9fca170aa8a470c75b19eb))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* add dynamic clients type ([#32](https://github.com/ogcio/building-blocks-sdk/issues/32)) ([709b589](https://github.com/ogcio/building-blocks-sdk/commit/709b58974cfad2eae195b511cea02410a7b89f02))
|
|
35
|
+
* added with assertion for json ([#47](https://github.com/ogcio/building-blocks-sdk/issues/47)) ([7a51988](https://github.com/ogcio/building-blocks-sdk/commit/7a5198850594313ae2a5fdef1fffd3b9bf8c196c))
|
|
36
|
+
* fixed path for running cli ([#22](https://github.com/ogcio/building-blocks-sdk/issues/22)) ([3fdf6c7](https://github.com/ogcio/building-blocks-sdk/commit/3fdf6c72fbc9b4222feae324cc06deaf53ed3be7))
|
|
37
|
+
* fixed types ([#21](https://github.com/ogcio/building-blocks-sdk/issues/21)) ([f2d81fc](https://github.com/ogcio/building-blocks-sdk/commit/f2d81fc5e73adb709163753bcba1f8cb62ca728c))
|
|
38
|
+
* getM2MTokenFn export ([#42](https://github.com/ogcio/building-blocks-sdk/issues/42)) ([6cce182](https://github.com/ogcio/building-blocks-sdk/commit/6cce1825a49079021902aa3f98270f6745b7158e))
|
|
39
|
+
* missing payments method ([#45](https://github.com/ogcio/building-blocks-sdk/issues/45)) ([a160b1b](https://github.com/ogcio/building-blocks-sdk/commit/a160b1be65b47ea53caff9911de79b7054bda768))
|
|
40
|
+
* update packages + analytics sdk fix ([#90](https://github.com/ogcio/building-blocks-sdk/issues/90)) ([265d804](https://github.com/ogcio/building-blocks-sdk/commit/265d8049b629ad7f57105322f71f94d050292755))
|
|
41
|
+
* updated to 0.0.14 ([#49](https://github.com/ogcio/building-blocks-sdk/issues/49)) ([d452d4c](https://github.com/ogcio/building-blocks-sdk/commit/d452d4c1b6a1ed2d61a6d51d43daa584edf5a411))
|
|
42
|
+
* upload client params ([#33](https://github.com/ogcio/building-blocks-sdk/issues/33)) ([12f6350](https://github.com/ogcio/building-blocks-sdk/commit/12f63502b27610f76d9e0de418ec649e4fbefa84))
|
|
43
|
+
* upload client params ([#33](https://github.com/ogcio/building-blocks-sdk/issues/33)) ([#34](https://github.com/ogcio/building-blocks-sdk/issues/34)) ([484c278](https://github.com/ogcio/building-blocks-sdk/commit/484c278a553aad31887789861a03e872ce4cbc0f))
|
package/package.json
CHANGED
|
@@ -1,32 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ogcio/building-blocks-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "vitest run --coverage --reporter=junit --outputFile=results.xml",
|
|
9
|
-
"test:local": "vitest",
|
|
10
|
-
"test:e2e": "cd ./e2e && bru run --env local",
|
|
11
|
-
"test:regression:e2e": "cd ./e2e && mkdir -p test-results && bru run --env dev --output ./test-results/results.xml --format junit",
|
|
12
|
-
"build": "rm -rf dist && tsc -p tsconfig.prod.json",
|
|
13
|
-
"clients:update": "node --import=tsx src/cli/index.ts clients:update -c src/clients-configurations/clients-configuration.json",
|
|
14
|
-
"clients:outdated": "node --import=tsx src/cli/index.ts clients:outdated -c src/clients-configurations/clients-configuration.json",
|
|
15
|
-
"check:formatting": "biome format",
|
|
16
|
-
"fix:formatting": "biome format --write",
|
|
17
|
-
"check:linting": "biome lint",
|
|
18
|
-
"fix:linting": "biome lint --write",
|
|
19
|
-
"prepublishOnly": "pnpm i && pnpm build && pnpm test",
|
|
20
|
-
"preinstall": "npx only-allow pnpm",
|
|
21
|
-
"prepare": "husky || true"
|
|
22
|
-
},
|
|
23
7
|
"dependencies": {
|
|
24
|
-
"@ogcio/analytics-sdk": "0.1.0-beta.
|
|
25
|
-
"@sinclair/typebox": "^0.34.
|
|
8
|
+
"@ogcio/analytics-sdk": "0.1.0-beta.8",
|
|
9
|
+
"@sinclair/typebox": "^0.34.11",
|
|
26
10
|
"commander": "^12.1.0",
|
|
27
11
|
"http-errors": "^2.0.0",
|
|
28
|
-
"openapi-fetch": "^0.13.
|
|
29
|
-
"openapi-typescript": "^7.4.
|
|
12
|
+
"openapi-fetch": "^0.13.3",
|
|
13
|
+
"openapi-typescript": "^7.4.4",
|
|
30
14
|
"openapi-typescript-helpers": "^0.0.15",
|
|
31
15
|
"safe-stable-stringify": "^2.5.0",
|
|
32
16
|
"yaml": "^2.6.1"
|
|
@@ -35,13 +19,13 @@
|
|
|
35
19
|
"@biomejs/biome": "1.9.4",
|
|
36
20
|
"@commitlint/config-conventional": "^19.6.0",
|
|
37
21
|
"@types/http-errors": "^2.0.4",
|
|
38
|
-
"@types/node": "^22.10.
|
|
39
|
-
"@vitest/coverage-istanbul": "^2.1.
|
|
40
|
-
"commitlint": "^19.6.
|
|
22
|
+
"@types/node": "^22.10.2",
|
|
23
|
+
"@vitest/coverage-istanbul": "^2.1.8",
|
|
24
|
+
"commitlint": "^19.6.1",
|
|
41
25
|
"husky": "^9.1.7",
|
|
42
26
|
"tsx": "^4.19.2",
|
|
43
27
|
"typescript": "^5.7.2",
|
|
44
|
-
"vitest": "^2.1.
|
|
28
|
+
"vitest": "^2.1.8"
|
|
45
29
|
},
|
|
46
30
|
"peerDependencies": {
|
|
47
31
|
"@logto/node": "2.5.5",
|
|
@@ -55,9 +39,22 @@
|
|
|
55
39
|
"optional": true
|
|
56
40
|
}
|
|
57
41
|
},
|
|
58
|
-
"packageManager": "pnpm@9.0.0",
|
|
59
42
|
"keywords": [],
|
|
60
43
|
"author": "",
|
|
61
44
|
"license": "ISC",
|
|
62
|
-
"description": ""
|
|
63
|
-
|
|
45
|
+
"description": "",
|
|
46
|
+
"scripts": {
|
|
47
|
+
"test": "vitest run --coverage --reporter=junit --outputFile=results.xml",
|
|
48
|
+
"test:local": "vitest",
|
|
49
|
+
"test:e2e": "cd ./e2e && bru run --env local",
|
|
50
|
+
"test:regression:e2e": "cd ./e2e && mkdir -p test-results && bru run --env dev --output ./test-results/results.xml --format junit",
|
|
51
|
+
"build": "rm -rf dist && tsc -p tsconfig.prod.json",
|
|
52
|
+
"clients:update": "node --import=tsx src/cli/index.ts clients:update -c src/clients-configurations/clients-configuration.json",
|
|
53
|
+
"clients:outdated": "node --import=tsx src/cli/index.ts clients:outdated -c src/clients-configurations/clients-configuration.json",
|
|
54
|
+
"check:formatting": "biome format",
|
|
55
|
+
"fix:formatting": "biome format --write",
|
|
56
|
+
"check:linting": "biome lint",
|
|
57
|
+
"fix:linting": "biome lint --write",
|
|
58
|
+
"preinstall": "npx only-allow pnpm"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
|
|
3
|
+
"pull-request-title-pattern": "chore(auto-release): release ${component} ${version}",
|
|
4
|
+
"separate-pull-requests": true,
|
|
5
|
+
"changelog-sections": [
|
|
6
|
+
{ "type": "feat", "section": "Features" },
|
|
7
|
+
{ "type": "fix", "section": "Bug Fixes" },
|
|
8
|
+
{ "type": "docs", "section": "Documentation", "hidden": true },
|
|
9
|
+
{ "type": "style", "section": "Styles", "hidden": true },
|
|
10
|
+
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true },
|
|
11
|
+
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
|
|
12
|
+
{ "type": "test", "section": "Tests", "hidden": true },
|
|
13
|
+
{ "type": "build", "section": "Build System", "hidden": true },
|
|
14
|
+
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
|
|
15
|
+
],
|
|
16
|
+
"packages": {
|
|
17
|
+
".": {
|
|
18
|
+
"tag-separator": "@",
|
|
19
|
+
"component": "@ogcio/building-blocks-sdk",
|
|
20
|
+
"release-type": "node",
|
|
21
|
+
"bump-minor-pre-major": true,
|
|
22
|
+
"bump-patch-for-minor-pre-major": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|