Service - Sell Offer Terms: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
(Created page with "= Overview = Manages SellOffer Terms and SellOfferTermLinks. SellOffer Terms can be shared by many Sell Offers, SellOfferTermLinks are used to create an attribute tree for on...")
 
No edit summary
Line 91: Line 91:
}
}
</syntaxhighlight>
</syntaxhighlight>
=== Relationships ===
<syntaxhighlight lang="JavaScript">
{
relationshipType: "hasSellOfferTerm",
schema: {
elementCanBeRemoved: true,
allPropertiesImmutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the request to create/change this relationship was sent
},
}
}
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
{
relationshipType: "disabledSellOfferTerm",
schema: {
elementCanBeRemoved: true,
allPropertiesImmutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the request to create/change this relationship was sent
},
}
}
</syntaxhighlight>
* creates a link in attribute tree between a SellOffer or SellOfferTerm, and a child SellOfferTerm


== [[Service - Translations Graph]]==
== [[Service - Translations Graph]]==


=== Nodes ===
=== Nodes ===
<syntaxhighlight lang="JavaScript">
{
nodeLabel: "sellOfferTermName",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
sellOfferTermId: {
identifier: true,
},
},
}
}
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
{
nodeLabel: "sellOfferTermValue",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
sellOfferTermId: {
identifier: true,
},
},
}
}
</syntaxhighlight>


<syntaxhighlight lang="JavaScript">
<syntaxhighlight lang="JavaScript">

Revision as of 11:28, 8 August 2021

Overview

Manages SellOffer Terms and SellOfferTermLinks. SellOffer Terms can be shared by many Sell Offers, SellOfferTermLinks are used to create an attribute tree for one Sell Offer.

Repository

https://bitbucket.org/izara-market-products/izara-market-products-sell-offer-terms/src/master/

DynamoDB tables

Standard Config Table Per Service

Configuration tags

..

LogicalResults

Stores results for any requests to perform logical searches on media links

{
	resultId: xxx // eg: filterMainId for a single logical element
	dataId: xxx // one sellOfferTermLinkId
}
  • partition key: resultId
  • sort key: dataId

Graph database

Service - Products Graph

Nodes

{
	nodeLabel: "sellOfferTerm",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			sellOfferTermId: {
				identifier: true, //(random uuid)
			},
		},
	}
}
{
	nodeLabel: "sellOfferTermLink",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			sellOfferTermLinkId: {
				identifier: true, //(random uuid)
			},
			sellOfferId: {
				immutable: true,
			},
			sellOfferTermId: {
				immutable: true,
			},
		},
	}
}
{
	nodeLabel: "sellOfferTermProperty",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			propertyId: {
				identifier: true, //(random uuid)
			},
			sellOfferTermId: {
				immutable: true,
			},
		},
	}
}

Relationships

{
	relationshipType: "hasSellOfferTerm",
	schema: {
		elementCanBeRemoved: true,
		allPropertiesImmutable: true,
		restrictProperties: true,
		properties: {
			originTimestamp: //timestamp the request to create/change this relationship was sent
		},
	}
}
{
	relationshipType: "disabledSellOfferTerm",
	schema: {
		elementCanBeRemoved: true,
		allPropertiesImmutable: true,
		restrictProperties: true,
		properties: {
			originTimestamp: //timestamp the request to create/change this relationship was sent
		},
	}
}
  • creates a link in attribute tree between a SellOffer or SellOfferTerm, and a child SellOfferTerm

Service - Translations Graph

Nodes

{
	nodeLabel: "sellOfferTermName",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			sellOfferTermId: {
				identifier: true,
			},
		},
	}
}
{
	nodeLabel: "sellOfferTermValue",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			sellOfferTermId: {
				identifier: true,
			},
		},
	}
}
{
	nodeLabel: "sellOfferTermPropertyName",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			propertyId: {
				identifier: true,
			},
		},
	}
}
{
	nodeLabel: "sellOfferTermPropertyValue",
	schema: {
		identifier: true,
		restrictProperties: true,
		restrictRelationships: true,
		properties: {
			propertyId: {
				identifier: true,
			},
		},
	}
}

Working documents

Sell Offer Terms