Skip to content

Commit c599222

Browse files
CCM-11886: Update event schemas (#673)
1 parent 80ae44e commit c599222

32 files changed

+1781
-1234
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ terraform 1.10.1
77
terraform-docs 0.19.0
88
trivy 0.61.0
99
vale 3.6.0
10-
# python 3.13.2
10+
python 3.13.2
1111

1212
# ==============================================================================
1313
# The section below is reserved for Docker image versions.

lambdas/event-publisher/src/__tests__/domain/event-builder.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ const publishableEventRecord = (newStatus: string): PublishableEventRecord => ({
2929
S: 'owner',
3030
},
3131
id: {
32-
S: 'id',
32+
S: '92b676e9-470f-4d04-ab14-965ef145e15d',
3333
},
3434
clientId: {
3535
S: 'client-id',
3636
},
3737
createdAt: {
38-
S: 'created-at',
38+
S: '2022-01-01T09:00:00.000Z',
3939
},
4040
createdBy: {
4141
S: 'created-by',
@@ -47,7 +47,7 @@ const publishableEventRecord = (newStatus: string): PublishableEventRecord => ({
4747
S: newStatus,
4848
},
4949
updatedAt: {
50-
S: 'updated-at',
50+
S: '2022-01-01T09:00:01.000Z',
5151
},
5252
updatedBy: {
5353
S: 'updated-by',
@@ -117,7 +117,7 @@ const publishableEventRecord = (newStatus: string): PublishableEventRecord => ({
117117
S: 'client-id',
118118
},
119119
createdAt: {
120-
S: 'created-at',
120+
S: '2022-01-01T09:00:00.000Z',
121121
},
122122
createdBy: {
123123
S: 'created-by',
@@ -129,7 +129,7 @@ const publishableEventRecord = (newStatus: string): PublishableEventRecord => ({
129129
S: 'PENDING_PROOF_REQUEST',
130130
},
131131
updatedAt: {
132-
S: 'updated-at',
132+
S: '2022-01-01T09:00:01.000Z',
133133
},
134134
updatedBy: {
135135
S: 'updated-by',
@@ -189,28 +189,28 @@ const publishableEventRecord = (newStatus: string): PublishableEventRecord => ({
189189
},
190190
},
191191
},
192-
eventID: 'event-id',
192+
eventID: '7f2ae4b0-82c2-4911-9b84-8997d7f3f40d',
193193
tableName: 'table-name',
194194
});
195195

196196
const expectedEvent = (status: string, type: string, dataschema: string) => ({
197-
id: 'event-id',
197+
id: '7f2ae4b0-82c2-4911-9b84-8997d7f3f40d',
198198
datacontenttype: 'application/json',
199199
time: '2022-01-01T09:00:00.000Z',
200200
source: 'event-source',
201201
type,
202202
specversion: '1.0',
203203
dataschema,
204-
dataschemaversion: '1.0.0',
204+
dataschemaversion: '1.1.0',
205205
plane: 'control',
206-
subject: 'id',
206+
subject: '92b676e9-470f-4d04-ab14-965ef145e15d',
207207
data: {
208208
owner: 'owner',
209-
id: 'id',
209+
id: '92b676e9-470f-4d04-ab14-965ef145e15d',
210210
clientId: 'client-id',
211-
createdAt: 'created-at',
211+
createdAt: '2022-01-01T09:00:00.000Z',
212212
createdBy: 'created-by',
213-
updatedAt: 'updated-at',
213+
updatedAt: '2022-01-01T09:00:01.000Z',
214214
updatedBy: 'updated-by',
215215
personalisationParameters: ['test'],
216216
templateType: 'LETTER',

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/event-schemas/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@
5656
},
5757
"type": "commonjs",
5858
"types": "./dist/index.d.ts",
59-
"version": "1.0.0"
59+
"version": "1.1.0"
6060
}

0 commit comments

Comments
 (0)