Service - Product Standard: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
 
(13 intermediate revisions by 2 users 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">
<syntaxhighlight lang="JavaScript">
{
{
configTag: "ProductServiceNameTag"
  "objectType": "productStandard",
configKey: "ProductServiceNameTag"
  "extendObjType": {
configValue: xxx // this own services ServiceNameTag, eg "ProductStandard"
    "serviceTag": "ProductManager",
    "objectType": "product"
  },
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
  },
  "addOnDataStructure": [],
  "fieldNames": {
    "productId": {
      "storageResourceTags": [
        "graph"
      ]
    }
  },
  "generatedBy": "userGenerated"
}
}
</syntaxhighlight>
</syntaxhighlight>


== RelationshipSchemas ==
=== isProduct ===
<syntaxhighlight lang="JavaScript">
<syntaxhighlight lang="JavaScript">
{
{
configTag: "ProductsGraphServiceName"
  "relationshipServiceTag": "ProductStandard",
configKey: "ProductsGraphServiceName"
  "fieldNames": {
configValue: xxx // eg: "ProductsGraph"
    "originTimeStamp": {
}
      "type": "number",
</syntaxhighlight>
      "requiredOnCreate": false,
      "canUpdate": true,
      "validation": {


<syntaxhighlight lang="JavaScript">
      },
{
      "optionalOnCreate": false
configTag: "ProductManagerServiceName"
    },
configKey: "ProductManagerServiceName"
  },
configValue: xxx // eg: "ProductManager"
  "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
}
}
</syntaxhighlight>
</syntaxhighlight>
= Graph database =
== [[Service - Products Graph]]==
=== Nodes ===
==== product ====
Is an origin/home/top-level node, one per product.
* NodeIdentifierLabels: product
* NodeIdentifierProperties: productId (random uuid)
Properties:
# ..


= 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