Service - Product Standard: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
https://bitbucket.org/izara-market-products/izara-market-products-product-standard/src/master/
https://bitbucket.org/izara-market-products/izara-market-products-product-standard/src/master/


= DynamoDB tables =
= Schemas =
 
==ObjectSchemas==
== [[Standard Config Table Per Service]] ==
=== productStandard ===
 
=== Configuration tags ===
 
<syntaxhighlight lang="JavaScript">
{
configTag: "ProductHandlerServiceNameTag"
configKey: "ProductHandlerServiceNameTag"
configValue: xxx // this own services ServiceNameTag, eg "ProductStandard"
}
</syntaxhighlight>
 
<syntaxhighlight lang="JavaScript">
{
configTag: "ProductGraphServiceName"
configKey: "ProductGraphServiceName"
configValue: xxx // eg: "ProductGraph"
}
</syntaxhighlight>
 
<syntaxhighlight lang="JavaScript">
<syntaxhighlight lang="JavaScript">
{
{
configTag: "ProductManagerServiceName"
  "objectType": "productStandard",
configKey: "ProductManagerServiceName"
  "extendObjType": {
configValue: xxx // eg: "ProductManager"
    "serviceTag": "ProductManager",
    "objectType": "product"
  },
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
  },
  "addOnDataStructure": [],
  "fieldNames": {
    "productId": {
      "storageResourceTags": [
        "graph"
      ]
    }
  },
  "generatedBy": "userGenerated"
}
}
</syntaxhighlight>
</syntaxhighlight>


== LogicalResults ==


Stores results for any requests to perform logical searches on product data
== RelationshipSchemas ==


=== isProduct ===
<syntaxhighlight lang="JavaScript">
<syntaxhighlight lang="JavaScript">
{
{
resultId: xxx // eg: filterMainId for a single logical element
  "relationshipServiceTag": "ProductStandard",
dataId: xxx // one productId
  "fieldNames": {
}
    "originTimeStamp": {
</syntaxhighlight>
      "type": "number",
 
      "requiredOnCreate": false,
* partition key: resultId
      "canUpdate": true,
* sort key: dataId
      "validation": {
 
= Graph database =
 
== [[Service - Products Graph]]==
 
=== Nodes ===


<syntaxhighlight lang="JavaScript">
      },
{
      "optionalOnCreate": false
nodeLabel: "{ProductStandardLib.PRODUCT_GRAPH_NODE_LABEL}",
    },
schema: {
  },
identifier: true,
  "storageResources": {
restrictProperties: true,
    "graph": {
restrictRelationships: true,
      "storageType": "graph",
properties: {
      "graphServerTag": "GraphHandler"
productId: {
    }
identifier: true, //(random uuid)
  },
},
  "links": [
productHandlerServiceNameTag: {
    {
immutable: true,
      "storageResourceTags": [
},
        "graph"
},
      ],
}
      "from": {
        "objType": {
          "serviceTag": "VariantStandard",
          "objectType": "variantProductLink"
        },
        "linkType": "one",
        "requiredOnCreate": true,
        "handler": true
      },
      "to": {
        "objType": {
          "serviceTag": "ProductStandard",
          "objectType": "productStandard"
        },
        "linkType": "one",
        "handler": true,
        "requiredOnCreate": false
      },
      "canDelete": false
    }
  ],
  "canMove": false
}
}
</syntaxhighlight>
</syntaxhighlight>
== Basic node schemas ==
=== product ===
[[Service - Media Graph]]


= Working documents =
= Working documents =

Latest revision as of 08:29, 13 January 2026

Overview

Handler service for the standard product type.

Repository

https://bitbucket.org/izara-market-products/izara-market-products-product-standard/src/master/

Schemas

ObjectSchemas

productStandard

{
  "objectType": "productStandard",
  "extendObjType": {
    "serviceTag": "ProductManager",
    "objectType": "product"
  },
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
  },
  "addOnDataStructure": [],
  "fieldNames": {
    "productId": {
      "storageResourceTags": [
        "graph"
      ]
    }
  },
  "generatedBy": "userGenerated"
}


RelationshipSchemas

isProduct

{
  "relationshipServiceTag": "ProductStandard",
  "fieldNames": {
    "originTimeStamp": {
      "type": "number",
      "requiredOnCreate": false,
      "canUpdate": true,
      "validation": {

      },
      "optionalOnCreate": false
    },
  },
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
  },
  "links": [
    {
      "storageResourceTags": [
        "graph"
      ],
      "from": {
        "objType": {
          "serviceTag": "VariantStandard",
          "objectType": "variantProductLink"
        },
        "linkType": "one",
        "requiredOnCreate": true,
        "handler": true
      },
      "to": {
        "objType": {
          "serviceTag": "ProductStandard",
          "objectType": "productStandard"
        },
        "linkType": "one",
        "handler": true,
        "requiredOnCreate": false
      },
      "canDelete": false
    }
  ],
  "canMove": false
}

Working documents

Product Standard