Service - Product Standard: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| (5 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/ | ||
= | = Schemas = | ||
==ObjectSchemas== | |||
== | === productStandard === | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
"objectType": "productStandard", | |||
"extendObjType": { | |||
"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"> | ||
{ | { | ||
"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 | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
= 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
}