Service - Product Standard: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 52: Line 52:
       "optionalOnCreate": false
       "optionalOnCreate": false
     },
     },
    "relId": {
      "type": "string",
      "generatedField": true,
      "requiredOnCreate": false,
      "optionalOnCreate": false,
      "canUpdate": false,
      "validation": {
      }
    }
   },
   },
   "storageResources": {
   "storageResources": {
Line 98: Line 88:
}
}
</syntaxhighlight>
</syntaxhighlight>
= DynamoDB tables =
== [[Standard Config Table Per Service]] ==
=== 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">
{
configTag: "ProductManagerServiceName"
configKey: "ProductManagerServiceName"
configValue: xxx // eg: "ProductManager"
}
</syntaxhighlight>
== LogicalResults ==
Stores results for any requests to perform logical searches on product data
<syntaxhighlight lang="JavaScript">
{
resultId: xxx // eg: filterMainId for a single logical element
dataId: xxx // one productId
}
</syntaxhighlight>
* partition key: resultId
* sort key: dataId
= Graph database =
== [[Service - Products Graph]]==
=== Nodes ===
<syntaxhighlight lang="JavaScript">
{
nodeLabel: "{ProductStandardLib.PRODUCT_GRAPH_NODE_LABEL}",
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
productId: {
identifier: true, //(random uuid)
},
productHandlerServiceNameTag: {
immutable: true,
},
},
}
}
</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