@ogcio/building-blocks-sdk 0.2.80 → 0.2.82
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/biome.jsonc +1 -1
- package/dist/__tests__/client/clients/featureFlags/index.test.js +4 -0
- package/dist/__tests__/client/clients/featureFlags/index.test.js.map +1 -1
- package/dist/client/clients/messaging/index.d.ts +17 -14
- package/dist/client/clients/messaging/index.d.ts.map +1 -1
- package/dist/client/clients/messaging/schema.d.ts +9 -9
- package/dist/client/clients/messaging/schema.d.ts.map +1 -1
- package/dist/client/clients/profile/index.d.ts +2 -2
- package/dist/client/clients/upload/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
- package/src/__tests__/client/clients/featureFlags/index.test.ts +4 -0
- package/src/client/clients/messaging/open-api-definition.json +1982 -1969
- package/src/client/clients/messaging/schema.ts +9 -9
- package/src/index.ts +7 -1
|
@@ -276,8 +276,7 @@ export interface paths {
|
|
|
276
276
|
fromAddress: string;
|
|
277
277
|
/** @description Is connection to the SMTP server secure? */
|
|
278
278
|
ssl: boolean;
|
|
279
|
-
|
|
280
|
-
headers: null | {
|
|
279
|
+
headers?: null | {
|
|
281
280
|
[key: string]: string | string[];
|
|
282
281
|
};
|
|
283
282
|
};
|
|
@@ -1101,6 +1100,8 @@ export interface operations {
|
|
|
1101
1100
|
* @enum {string}
|
|
1102
1101
|
*/
|
|
1103
1102
|
language: "en" | "ga";
|
|
1103
|
+
/** @description External id to link the message to an external system */
|
|
1104
|
+
externalId?: string;
|
|
1104
1105
|
};
|
|
1105
1106
|
attachments?: string[];
|
|
1106
1107
|
};
|
|
@@ -1216,7 +1217,7 @@ export interface operations {
|
|
|
1216
1217
|
path?: never;
|
|
1217
1218
|
cookie?: never;
|
|
1218
1219
|
};
|
|
1219
|
-
requestBody
|
|
1220
|
+
requestBody: {
|
|
1220
1221
|
content: {
|
|
1221
1222
|
"application/json": {
|
|
1222
1223
|
/** @enum {string} */
|
|
@@ -1394,6 +1395,7 @@ export interface operations {
|
|
|
1394
1395
|
security: "confidential" | "public";
|
|
1395
1396
|
/** @description Ids of the related attachments */
|
|
1396
1397
|
attachments: string[];
|
|
1398
|
+
externalId: string | null;
|
|
1397
1399
|
};
|
|
1398
1400
|
metadata?: {
|
|
1399
1401
|
/** @description Object containing the links to the related endpoints */
|
|
@@ -1430,10 +1432,10 @@ export interface operations {
|
|
|
1430
1432
|
};
|
|
1431
1433
|
} | {
|
|
1432
1434
|
data: {
|
|
1433
|
-
/** @description Unique id of the recipient */
|
|
1434
|
-
recipientUserId: string;
|
|
1435
1435
|
/** @description Organisation sender id */
|
|
1436
1436
|
organisationId: string;
|
|
1437
|
+
/** @description Unique id of the recipient */
|
|
1438
|
+
recipientUserId: string;
|
|
1437
1439
|
};
|
|
1438
1440
|
metadata?: {
|
|
1439
1441
|
/** @description Object containing the links to the related endpoints */
|
|
@@ -1682,8 +1684,7 @@ export interface operations {
|
|
|
1682
1684
|
fromAddress: string;
|
|
1683
1685
|
/** @description Is connection to the SMTP server secure? */
|
|
1684
1686
|
ssl: boolean;
|
|
1685
|
-
|
|
1686
|
-
headers: null | {
|
|
1687
|
+
headers?: null | {
|
|
1687
1688
|
[key: string]: string | string[];
|
|
1688
1689
|
};
|
|
1689
1690
|
};
|
|
@@ -1821,8 +1822,7 @@ export interface operations {
|
|
|
1821
1822
|
fromAddress: string;
|
|
1822
1823
|
/** @description Is connection to the SMTP server secure? */
|
|
1823
1824
|
ssl: boolean;
|
|
1824
|
-
|
|
1825
|
-
headers: null | {
|
|
1825
|
+
headers?: null | {
|
|
1826
1826
|
[key: string]: string | string[];
|
|
1827
1827
|
};
|
|
1828
1828
|
password?: string | null;
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Analytics } from "@ogcio/analytics-sdk";
|
|
2
|
+
import { AuditCollector } from "./client/clients/audit/index.js";
|
|
2
3
|
import { FeatureFlags } from "./client/clients/featureFlags/index.js";
|
|
3
|
-
|
|
4
4
|
import { Journey } from "./client/clients/journey/index.js";
|
|
5
5
|
import { Messaging } from "./client/clients/messaging/index.js";
|
|
6
6
|
import { Payments } from "./client/clients/payments/index.js";
|
|
@@ -60,6 +60,12 @@ export const getBuildingBlockSDK = <T extends BuildingBlockSDKParams>(
|
|
|
60
60
|
logger,
|
|
61
61
|
),
|
|
62
62
|
journey: createService(Journey, services.journey, getTokenFn, logger),
|
|
63
|
+
auditCollector: createService(
|
|
64
|
+
AuditCollector,
|
|
65
|
+
services.auditCollector,
|
|
66
|
+
getTokenFn,
|
|
67
|
+
logger,
|
|
68
|
+
),
|
|
63
69
|
};
|
|
64
70
|
|
|
65
71
|
// Remove undefined services
|