@ogcio/building-blocks-sdk 0.2.97 → 0.2.99
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/client/clients/journey/index.d.ts +7 -0
- package/dist/client/clients/journey/index.d.ts.map +1 -1
- package/dist/client/clients/journey/schema.d.ts +10 -0
- package/dist/client/clients/journey/schema.d.ts.map +1 -1
- package/dist/client/clients/messaging-public-api/citizen/index.d.ts +602 -0
- package/dist/client/clients/messaging-public-api/citizen/index.d.ts.map +1 -0
- package/dist/client/clients/messaging-public-api/citizen/index.js +34 -0
- package/dist/client/clients/messaging-public-api/citizen/index.js.map +1 -0
- package/dist/client/clients/messaging-public-api/index.d.ts +18 -0
- package/dist/client/clients/messaging-public-api/index.d.ts.map +1 -0
- package/dist/client/clients/messaging-public-api/index.js +15 -0
- package/dist/client/clients/messaging-public-api/index.js.map +1 -0
- package/dist/client/clients/messaging-public-api/organisation/index.d.ts +621 -0
- package/dist/client/clients/messaging-public-api/organisation/index.d.ts.map +1 -0
- package/dist/client/clients/messaging-public-api/organisation/index.js +49 -0
- package/dist/client/clients/messaging-public-api/organisation/index.js.map +1 -0
- package/dist/client/clients/messaging-public-api/schema.d.ts +2464 -0
- package/dist/client/clients/messaging-public-api/schema.d.ts.map +1 -0
- package/dist/client/clients/messaging-public-api/schema.js +2 -0
- package/dist/client/clients/messaging-public-api/schema.js.map +1 -0
- package/dist/clients-configurations/clients-configuration.json +17 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +9 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +4 -4
- package/src/client/clients/journey/open-api-definition.json +26 -0
- package/src/client/clients/journey/schema.ts +10 -0
- package/src/client/clients/messaging-public-api/citizen/index.ts +57 -0
- package/src/client/clients/messaging-public-api/index.ts +35 -0
- package/src/client/clients/messaging-public-api/open-api-definition.json +4539 -0
- package/src/client/clients/messaging-public-api/organisation/index.ts +79 -0
- package/src/client/clients/messaging-public-api/schema.ts +2463 -0
- package/src/clients-configurations/clients-configuration.json +17 -1
- package/src/index.ts +7 -0
- package/src/types/index.ts +9 -0
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"profile:user.self:write"
|
|
68
68
|
],
|
|
69
69
|
"publicServantPermissions": ["profile:user:*", "profile:user.admin:*"],
|
|
70
|
-
"updateDefinitions":
|
|
70
|
+
"updateDefinitions": false
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"name": "featureFlags",
|
|
@@ -100,6 +100,22 @@
|
|
|
100
100
|
"citizenPermissions": [],
|
|
101
101
|
"publicServantPermissions": [],
|
|
102
102
|
"updateDefinitions": false
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "messagingPublicApi",
|
|
106
|
+
"openApiDefinitionUrl": "http://localhost:8123/docs/yaml",
|
|
107
|
+
"openApiDefinitionFormat": "yaml",
|
|
108
|
+
"citizenPermissions": [
|
|
109
|
+
"messaging:message.self:read",
|
|
110
|
+
"messaging:message.self:write"
|
|
111
|
+
],
|
|
112
|
+
"publicServantPermissions": [
|
|
113
|
+
"messaging:message:*",
|
|
114
|
+
"messaging:provider:*",
|
|
115
|
+
"messaging:template:*",
|
|
116
|
+
"messaging:event:read"
|
|
117
|
+
],
|
|
118
|
+
"updateDefinitions": true
|
|
103
119
|
}
|
|
104
120
|
]
|
|
105
121
|
}
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AuditCollector } from "./client/clients/audit/index.js";
|
|
|
3
3
|
import { FeatureFlags } from "./client/clients/featureFlags/index.js";
|
|
4
4
|
import { Journey } from "./client/clients/journey/index.js";
|
|
5
5
|
import { Messaging } from "./client/clients/messaging/index.js";
|
|
6
|
+
import { MessagingPublicApi } from "./client/clients/messaging-public-api/index.js";
|
|
6
7
|
import { Payments } from "./client/clients/payments/index.js";
|
|
7
8
|
import { Profile } from "./client/clients/profile/index.js";
|
|
8
9
|
import { Scheduler } from "./client/clients/scheduler/index.js";
|
|
@@ -49,6 +50,12 @@ export const getBuildingBlockSDK = <T extends BuildingBlockSDKParams>(
|
|
|
49
50
|
const sdk = {
|
|
50
51
|
analytics: createService(Analytics, services.analytics, getTokenFn, logger),
|
|
51
52
|
messaging: createService(Messaging, services.messaging, getTokenFn, logger),
|
|
53
|
+
messagingPublicApi: createService(
|
|
54
|
+
MessagingPublicApi,
|
|
55
|
+
services.messagingPublicApi,
|
|
56
|
+
getTokenFn,
|
|
57
|
+
logger,
|
|
58
|
+
),
|
|
52
59
|
payments: createService(Payments, services.payments, getTokenFn, logger),
|
|
53
60
|
profile: createService(Profile, services.profile, getTokenFn, logger),
|
|
54
61
|
scheduler: createService(Scheduler, services.scheduler, getTokenFn, logger),
|
package/src/types/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { AuditCollector } from "../client/clients/audit/index.js";
|
|
|
3
3
|
import type { FeatureFlags } from "../client/clients/featureFlags/index.js";
|
|
4
4
|
import type { Journey } from "../client/clients/journey/index.js";
|
|
5
5
|
import type { Messaging } from "../client/clients/messaging/index.js";
|
|
6
|
+
import type { MessagingPublicApi } from "../client/clients/messaging-public-api/index.js";
|
|
6
7
|
import type { Payments } from "../client/clients/payments/index.js";
|
|
7
8
|
import type { Profile } from "../client/clients/profile/index.js";
|
|
8
9
|
import type { Scheduler } from "../client/clients/scheduler/index.js";
|
|
@@ -10,6 +11,7 @@ import type { Upload } from "../client/clients/upload/index.js";
|
|
|
10
11
|
|
|
11
12
|
const ANALYTICS = "analytics" as const;
|
|
12
13
|
const MESSAGING = "messaging" as const;
|
|
14
|
+
const MESSAGING_PUBLIC_API = "messagingPublicApi" as const;
|
|
13
15
|
const PAYMENTS = "payments" as const;
|
|
14
16
|
const PROFILE = "profile" as const;
|
|
15
17
|
const SCHEDULER = "scheduler" as const;
|
|
@@ -21,6 +23,7 @@ const AUDIT_COLLECTOR = "auditCollector" as const;
|
|
|
21
23
|
type SERVICE_NAME =
|
|
22
24
|
| typeof ANALYTICS
|
|
23
25
|
| typeof MESSAGING
|
|
26
|
+
| typeof MESSAGING_PUBLIC_API
|
|
24
27
|
| typeof PAYMENTS
|
|
25
28
|
| typeof PROFILE
|
|
26
29
|
| typeof SCHEDULER
|
|
@@ -36,6 +39,7 @@ interface ServiceBaseConfig {
|
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
interface MessagingConfig extends ServiceBaseConfig {}
|
|
42
|
+
interface MessagingPublicApiConfig extends ServiceBaseConfig {}
|
|
39
43
|
interface PaymentsConfig extends ServiceBaseConfig {}
|
|
40
44
|
interface ProfileConfig extends ServiceBaseConfig {}
|
|
41
45
|
interface SchedulerConfig extends ServiceBaseConfig {}
|
|
@@ -47,6 +51,7 @@ interface AuditCollectorConfig extends ServiceBaseConfig {}
|
|
|
47
51
|
interface Services {
|
|
48
52
|
analytics?: AnalyticsConfig;
|
|
49
53
|
messaging?: MessagingConfig;
|
|
54
|
+
messagingPublicApi?: MessagingPublicApiConfig;
|
|
50
55
|
payments?: PaymentsConfig;
|
|
51
56
|
profile?: ProfileConfig;
|
|
52
57
|
scheduler?: SchedulerConfig;
|
|
@@ -116,6 +121,7 @@ interface BuildingBlockSDKParams {
|
|
|
116
121
|
interface BuildingBlocksSDK {
|
|
117
122
|
analytics: Analytics;
|
|
118
123
|
messaging: Messaging;
|
|
124
|
+
messagingPublicApi: MessagingPublicApi;
|
|
119
125
|
payments: Payments;
|
|
120
126
|
profile: Profile;
|
|
121
127
|
scheduler: Scheduler;
|
|
@@ -128,6 +134,7 @@ interface BuildingBlocksSDK {
|
|
|
128
134
|
export {
|
|
129
135
|
ANALYTICS,
|
|
130
136
|
MESSAGING,
|
|
137
|
+
MESSAGING_PUBLIC_API,
|
|
131
138
|
PAYMENTS,
|
|
132
139
|
PROFILE,
|
|
133
140
|
SCHEDULER,
|
|
@@ -144,6 +151,8 @@ export type {
|
|
|
144
151
|
AnalyticsConfig,
|
|
145
152
|
Messaging,
|
|
146
153
|
MessagingConfig,
|
|
154
|
+
MessagingPublicApi,
|
|
155
|
+
MessagingPublicApiConfig,
|
|
147
156
|
Payments,
|
|
148
157
|
PaymentsConfig,
|
|
149
158
|
Profile,
|