Service - Product Standard: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
 
(10 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: "ProductHandlerServiceNameTag"
  "objectType": "productStandard",
configKey: "ProductHandlerServiceNameTag"
  "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>


<syntaxhighlight lang="JavaScript">
{
configTag: "ProductsGraphServiceName"
configKey: "ProductsGraphServiceName"
configValue: xxx // eg: "ProductsGraph"
}
</syntaxhighlight>


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


== [[Service - Products Graph]]==
      },
 
      "optionalOnCreate": false
=== Nodes ===
    },
 
  },
<syntaxhighlight lang="JavaScript">
  "storageResources": {
{
    "graph": {
nodeLabel: "product",
      "storageType": "graph",
schema: {
      "graphServerTag": "GraphHandler"
identifier: true,
    }
restrictProperties: true,
  },
restrictRelationships: true,
  "links": [
properties: {
    {
productId: {
      "storageResourceTags": [
identifier: true, //(random uuid)
        "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>

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