From cd74bdd86f4607515022a983f12285843760a8c2 Mon Sep 17 00:00:00 2001 From: arcogabbo Date: Thu, 27 Jun 2024 14:07:21 +0200 Subject: [PATCH 1/4] [#IOPID-1917] added service-preferences avro file --- avro/service-preferences.json | 56 +++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 avro/service-preferences.json diff --git a/avro/service-preferences.json b/avro/service-preferences.json new file mode 100644 index 0000000..2d3a5fa --- /dev/null +++ b/avro/service-preferences.json @@ -0,0 +1,56 @@ +{ + "name":"servicePreferences", + "type":"record", + "namespace": "dto", + "doc":"Schema for cosmos api container 'services-preferences'", + "fields":[ + { + "name":"id", + "type":"string", + "default":"undefined" + }, + { + "name":"fiscalCode", + "type":"string", + "default":"undefined" + }, + { + "name":"serviceId", + "type":"string", + "default":"undefined" + }, + { + "name":"isInboxEnabled", + "type":"boolean", + "default":"false" + }, + { + "name":"isEmailEnabled", + "type":"boolean", + "default":"false" + }, + { + "name":"isWebhookEnabled", + "type":"boolean", + "default":"false" + }, + { + "name":"accessReadMessageStatus", + "type":{ + "type":"enum", + "name":"AccessReadMessageStatusEnum", + "symbols":[ + "ALLOW", + "DENY", + "UNKNOWN" + ] + }, + "default":"UNKNOWN" + }, + { + "name":"settingsVersion", + "type":"int", + "default":0 + } + ] +} From 25a1ac5b028f7c6d293a9c9430bfb0aa41968647 Mon Sep 17 00:00:00 2001 From: arcogabbo Date: Tue, 9 Jul 2024 14:32:03 +0200 Subject: [PATCH 2/4] applied review suggestions --- avro/service-preferences.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/avro/service-preferences.json b/avro/service-preferences.json index 2d3a5fa..7a85597 100644 --- a/avro/service-preferences.json +++ b/avro/service-preferences.json @@ -10,7 +10,7 @@ "default":"undefined" }, { - "name":"fiscalCode", + "name":"userPDVId", "type":"string", "default":"undefined" }, @@ -22,17 +22,17 @@ { "name":"isInboxEnabled", "type":"boolean", - "default":"false" + "default":false }, { "name":"isEmailEnabled", "type":"boolean", - "default":"false" + "default":false }, { "name":"isWebhookEnabled", "type":"boolean", - "default":"false" + "default":false }, { "name":"accessReadMessageStatus", From 6a267ad71204bcb0b4c65eaa684eed94ef4127a1 Mon Sep 17 00:00:00 2001 From: arcogabbo Date: Wed, 10 Jul 2024 11:36:24 +0200 Subject: [PATCH 3/4] added timestamp field --- avro/service-preferences.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/avro/service-preferences.json b/avro/service-preferences.json index 7a85597..72e6f8e 100644 --- a/avro/service-preferences.json +++ b/avro/service-preferences.json @@ -9,6 +9,11 @@ "type":"string", "default":"undefined" }, + { + "name": "timestamp", + "type": "long", + "default": 0 + }, { "name":"userPDVId", "type":"string", From ad0af9b2e0533cd540999479f0175e1f45827958 Mon Sep 17 00:00:00 2001 From: arcogabbo Date: Wed, 10 Jul 2024 12:16:48 +0200 Subject: [PATCH 4/4] added logicalType to timestamp --- avro/service-preferences.json | 1 + 1 file changed, 1 insertion(+) diff --git a/avro/service-preferences.json b/avro/service-preferences.json index 72e6f8e..16548dd 100644 --- a/avro/service-preferences.json +++ b/avro/service-preferences.json @@ -12,6 +12,7 @@ { "name": "timestamp", "type": "long", + "logicalType": "timestamp-millis", "default": 0 }, {