Service - Sell Offer Terms: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 38: Line 38:
{
{
nodeLabel: "sellOfferTermLabel",
nodeLabel: "sellOfferTermLabel",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
sellOfferTermLabelId: {
identifier: true, //(random uuid)
},
},
}
}
}
</syntaxhighlight>
* groups sell offer terms, eg: "Accept returns?", "Time allowed to complete payment", etc..
<syntaxhighlight lang="JavaScript">
{
{
nodeLabel: "sellOfferTerm",
nodeLabel: "sellOfferTerm",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
sellOfferTermId: {
identifier: true, //(random uuid)
},
},
}
}
}
</syntaxhighlight>
* one sell offer term value inside one sell offer term label, eg: "yes" under the "Accept returns?" label
<syntaxhighlight lang="JavaScript">
{
{
nodeLabel: "sellOfferTermLink",
nodeLabel: "sellOfferTermLink",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
sellOfferTermLinkId: {
identifier: true, //(random uuid)
},
sellOfferId: {
immutable: true,
},
sellOfferTermId: {
immutable: true,
},
},
}
}
}
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
{
{
nodeLabel: "sellOfferTermPropertyLabel",
nodeLabel: "sellOfferTermPropertyLabel",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
propertyLabelId: {
identifier: true,
},
},
}
}
}
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
{
{
nodeLabel: "sellOfferTermProperty",
nodeLabel: "sellOfferTermProperty",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
propertyId: {
identifier: true, //(random uuid)
},
sellOfferTermId: {
immutable: true,
},
},
}
}
}
</syntaxhighlight>
</syntaxhighlight>
* see [[NPM module - Izara Core - Attribute Tree|DataSchemaLib]]


=== Relationships ===
=== Relationships ===
Line 132: Line 59:
{
{
relationshipType: "hasSellOfferTermLink",
relationshipType: "hasSellOfferTermLink",
schema: {
elementCanBeRemoved: true,
allPropertiesImmutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the request to create/change this relationship was sent
},
}
}
}
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
{
{
relationshipType: "disabledSellOfferTermLink",
relationshipType: "disabledSellOfferTermLink",
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 SellOfferTermLink, and a child SellOfferTermLink
<syntaxhighlight lang="JavaScript">
{
{
relationshipType: "isSellOfferTerm",
relationshipType: "isSellOfferTerm",
schema: {
elementCanBeRemoved: true,
allPropertiesImmutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the request to create/change this relationship was sent
},
}
}
}
</syntaxhighlight>
* links one SellOfferTermLink to one SellOfferTerm
<syntaxhighlight lang="JavaScript">
{
{
relationshipType: "isSellOfferTermLabel",
relationshipType: "isSellOfferTermLabel",
schema: {
elementCanBeRemoved: true,
allPropertiesImmutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the request to create/change this relationship was sent
},
}
}
}
</syntaxhighlight>
* links one SellOfferTerm to one SellOfferTermLabel
<syntaxhighlight lang="JavaScript">
{
{
relationshipType: "hasSellOfferTermProperty",
relationshipType: "hasSellOfferTermProperty",
schema: {
elementCanBeRemoved: true,
allPropertiesImmutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the request to create/change this relationship was sent
},
}
}
}
</syntaxhighlight>
<syntaxhighlight lang="JavaScript">
{
{
relationshipType: "disabledSellOfferTermProperty",
relationshipType: "disabledSellOfferTermProperty",
schema: {
elementCanBeRemoved: true,
allPropertiesImmutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the request to create/change this relationship was sent
},
}
}
}
</syntaxhighlight>
* links a SellOfferTerm node to it's Properties
<syntaxhighlight lang="JavaScript">
{
{
relationshipType: "isSellOfferTermPropertyLabel",
relationshipType: "isSellOfferTermPropertyLabel",
schema: {
elementCanBeRemoved: true,
allPropertiesImmutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the request to create/change this relationship was sent
},
}
}
}
</syntaxhighlight>
</syntaxhighlight>
* links one SellOfferTermProperty to one SellOfferTermPropertyLabel
* see [[NPM module - Izara Core - Attribute Tree|DataSchemaLib]]


== Basic node schemas ==
== Basic node schemas ==


sellOfferTermLabel
Schema comes from [[NPM module - Izara Core - Attribute Tree|BasicNodeSchemaLib]]
* [[Service - Translations Graph]]
 
sellOfferTerm
* [[Service - Translations Graph]]
 
sellOfferTermPropertyLabel
* [[Service - Translations Graph]]


sellOfferTermProperty
# sellOfferTermLabel
* [[Service - Translations Graph]]
#* [[Service - Translations Graph]]
# sellOfferTerm
#* [[Service - Translations Graph]]
# sellOfferTermPropertyLabel
#* [[Service - Translations Graph]]
# sellOfferTermProperty
#* [[Service - Translations Graph]]


= Working documents =
= Working documents =

Revision as of 08:59, 11 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: "sellOfferTermLabel",
}
{
	nodeLabel: "sellOfferTerm",
}
{
	nodeLabel: "sellOfferTermLink",
}
{
	nodeLabel: "sellOfferTermPropertyLabel",
}
{
	nodeLabel: "sellOfferTermProperty",
}

Relationships

{
	relationshipType: "hasSellOfferTermLink",
}
{
	relationshipType: "disabledSellOfferTermLink",
}
{
	relationshipType: "isSellOfferTerm",
}
{
	relationshipType: "isSellOfferTermLabel",
}
{
	relationshipType: "hasSellOfferTermProperty",
}
{
	relationshipType: "disabledSellOfferTermProperty",
}
{
	relationshipType: "isSellOfferTermPropertyLabel",
}

Basic node schemas

Schema comes from BasicNodeSchemaLib

  1. sellOfferTermLabel
  2. sellOfferTerm
  3. sellOfferTermPropertyLabel
  4. sellOfferTermProperty

Working documents

Sell Offer Terms