Skip to content

Commit

Permalink
fix compositions events module
Browse files Browse the repository at this point in the history
  • Loading branch information
Aboruhen committed Dec 21, 2023
1 parent 6be1cca commit 67522f0
Show file tree
Hide file tree
Showing 75 changed files with 871 additions and 1,501 deletions.
748 changes: 748 additions & 0 deletions stream-compositions/events/events/legal-entity/definitions.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"legalEntity": {
"type": "object",
"properties": {
"internalId": {
"type": "string"
},
"externalId": {
"type": "string"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "object",
"properties": {
"eventId": {
"description": "Unique identifier of the event",
"description": "Unique identifier of the event.",
"type": "string"
},
"message": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"legalEntityExternalId": {
"type": "string"
},
"taxId": {
"type": "string"
},
"userExternalId": {
"type": "string"
},
"parentLegalEntityExternalId": {
"type": "string"
},
"realmName": {
"type": "string"
},
"referenceJobRoleNames": {
"type": "array",
"items": {
"type": "string"
}
},
"isAdmin": {
"type": "boolean"
},
"identityUserLinkStrategy": {
"type": "string",
"enum": ["IMPORT_FROM_IDENTIY","CREATE_IN_IDENTITY","IDENTITY_AGNOSTIC"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"productGroup": {
"legalEntity": {
"type": "object",
"$ref": "../product-group.json"
"$ref": "../legal-entity.json"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"legalEntityExternalId": {
"description": "Legal entity external id.",
"type": "string"
},
"name": {
"description": "Full name associated with the legal entity",
"type": "string"
},
"type": {
"description": "Type of Legal Entity",
"enum": ["RETAIL", "SME", "CORPORATE"],
"type": "string"
}
},
"required": [
"legalEntityExternalId"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"externalStateId": {
"description": "External product state id",
"internalId": {
"description": "Legal entity internal id",
"type": "string"
},
"state": {
"description": "Product state ",
"externalId": {
"description": "Legal entity external id",
"type": "string"
}
},
"required": [
"externalStateId",
"state"
"internalId",
"externalId"
]
}
23 changes: 23 additions & 0 deletions stream-compositions/events/events/legal-entity/membership.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"id": {
"description": "Unique identifier for the membership",
"type": "string"
},
"taxId": {
"description": "Tax id of the individual or corporation used for membership identification",
"type": "string"
},
"name": {
"description": "Name associated with the membership",
"type": "string"
},
"type": {
"description": "Type associated with the membership",
"enum": ["RETAIL", "SME", "CORPORATE"],
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
"productKinds": {
"type": "array",
"items": {
"$ref": "./product-kind.json"
"$ref": "product-kind.json"
}
},
"productTypes": {
"type": "array",
"items": {
"$ref": "./product-type.json"
"$ref": "product-type.json"
}
},
"productStates": {
"type": "array",
"items": {
"$ref": "./product-state.json"
"$ref": "product-state.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"productKind": {
"type": "object",
"$ref": "./product-kind.json"
"$ref": "product-kind.json"
}
},
"required": [
Expand Down
2 changes: 1 addition & 1 deletion stream-compositions/events/legal-entity-egress/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<packageVersion>1</packageVersion>
<useJavaTime>true</useJavaTime>
<outputFile>${project.basedir}/target/generated-sources/jsonschema-events</outputFile>
<inputFile>${project.basedir}/src/main/resources/events/egress</inputFile>
<inputFile>${project.basedir}/../events/legal-entity/egress</inputFile>
<!-- The packageName should not contain com.backbase as that is already the default value of the basePackageName -->
<packageName>stream.compositions.events.egress</packageName>
</configuration>
Expand Down
17 changes: 1 addition & 16 deletions stream-compositions/events/legal-entity-ingress/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,11 @@
<packageVersion>1</packageVersion>
<useJavaTime>true</useJavaTime>
<outputFile>${project.basedir}/target/generated-sources/jsonschema-events</outputFile>
<inputFile>${project.basedir}/src/main/resources/events/ingress</inputFile>
<inputFile>${project.basedir}/../events/legal-entity/ingress</inputFile>
<!-- The packageName should not contain com.backbase as that is already the default value of the basePackageName -->
<packageName>stream.compositions.events.ingress</packageName>
</configuration>
</execution>
<!-- <execution>-->
<!-- <id>generate-egress-events</id>-->
<!-- <goals>-->
<!-- <goal>events-generation</goal>-->
<!-- </goals>-->
<!-- <phase>generate-sources</phase>-->
<!-- <configuration>-->
<!-- <packageVersion>1</packageVersion>-->
<!-- <useJavaTime>true</useJavaTime>-->
<!-- <outputFile>${project.basedir}/target/generated-sources/jsonschema-events</outputFile>-->
<!-- <inputFile>${project.basedir}/src/main/resources/events/egress</inputFile>-->
<!-- &lt;!&ndash; The packageName should not contain com.backbase as that is already the default value of the basePackageName &ndash;&gt;-->
<!-- <packageName>stream.compositions.events.egress</packageName>-->
<!-- </configuration>-->
<!-- </execution>-->
</executions>
</plugin>

Expand Down
2 changes: 1 addition & 1 deletion stream-compositions/events/product-catalog-egress/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<packageVersion>1</packageVersion>
<groupNameStrategy>APP_NAME</groupNameStrategy>
<outputFile>${project.build.directory}/generated-sources/jsonschema-events</outputFile>
<inputFile>${project.basedir}/src/main/resources/events/egress</inputFile>
<inputFile>${project.basedir}/../events/product-catalog/egress</inputFile>
<packageName>stream.compositions.events.egress</packageName>
<groupNameStrategy>APP_NAME</groupNameStrategy>
</configuration>
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion stream-compositions/events/product-catalog-ingress/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<packageVersion>1</packageVersion>
<groupNameStrategy>APP_NAME</groupNameStrategy>
<outputFile>${project.build.directory}/generated-sources/jsonschema-events</outputFile>
<inputFile>${project.basedir}/src/main/resources/events/ingress</inputFile>
<inputFile>${project.basedir}/../events/product-catalog/ingress</inputFile>
<packageName>stream.compositions.events.ingress</packageName>
<groupNameStrategy>APP_NAME</groupNameStrategy>
</configuration>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion stream-compositions/events/product-egress/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<packageVersion>1</packageVersion>
<useJavaTime>true</useJavaTime>
<outputFile>${project.basedir}/target/generated-sources/jsonschema-events</outputFile>
<inputFile>${project.basedir}/src/main/resources/events/egress</inputFile>
<inputFile>${project.basedir}/../events/product/egress</inputFile>
<packageName>stream.compositions.events.egress</packageName>
</configuration>
</execution>
Expand Down
Loading

0 comments on commit 67522f0

Please sign in to comment.