Service - Inventory Manager: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
(Created page with "= Overview = Each inventory is handled by a Service - Inventory (handlers) service. The Inventory Manager service handles detail shared by all Inventory Handler services. = Repository = .... = Object Schemas = ; Additional Information: Per Service Schemas == objType == === inventory === <syntaxhighlight lang="JavaScript"> { objectType: "inventory", canDelete: false, belongTo: { serviceTag: "user", objectType: "user" }, addOnDataStructure: [ {...")
 
No edit summary
Line 87: Line 87:
}
}
</syntaxhighlight>
</syntaxhighlight>
= Media =
* all inventory instances link to Media


= Working documents =
= Working documents =

Revision as of 06:37, 2 January 2026

Overview

Each inventory is handled by a Service - Inventory (handlers) service.

The Inventory Manager service handles detail shared by all Inventory Handler services.

Repository

....

Object Schemas

Additional Information
Per Service Schemas

objType

inventory

{
	objectType: "inventory",
	canDelete: false,
	belongTo: { 
		serviceTag: "user",
		objectType: "user"
	},
	addOnDataStructure: [
		{
		  type: "attributeTree",    
		  attributeTreeTag: "inventoryAttributes"
		},
	],
	storageResources: {
		myGraph: {
			storageType: "graph",
			graphServerTag: "GraphHandler"
		}
    },
    fieldNames: {
		inventoryId: {
			type: "string",
			randomOnCreate: true,
			storageResourceTags: ['myGraph']
		},
    },
    identifiers: [
		{
			type: "identifier",
			fieldName: "inventoryId"
		}
    ]
}

Object Relationships

isInventoryTemplate

{
	isInventoryTemplate: {
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "inventoryManager",
						objectType: "inventory"
					},
					linkType: "many",
				},
				to: {
					objType: {
						serviceTag: "inventoryTemplate",
						objectType: "inventoryTemplate"
					},
					linkType: "one"
				}
			}
		]
	}
}

Media

  • all inventory instances link to Media

Working documents

Inventory Manager