Batch Data
albert.resources.batch_data
BatchValuePatchDatum
Bases: BaseAlbertModel
Show JSON schema:
{
"properties": {
"attribute": {
"default": "lotId",
"title": "Attribute",
"type": "string"
},
"lotId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Lotid"
},
"newValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"operation": {
"title": "Operation",
"type": "string"
}
},
"required": [
"operation"
],
"title": "BatchValuePatchDatum",
"type": "object"
}
Fields:
BatchValueId
Bases: BaseAlbertModel
Show JSON schema:
Fields:
BatchValuePatchPayload
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"BatchValueId": {
"properties": {
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
},
"rowId": {
"title": "Rowid",
"type": "string"
}
},
"required": [
"rowId"
],
"title": "BatchValueId",
"type": "object"
},
"BatchValuePatchDatum": {
"properties": {
"attribute": {
"default": "lotId",
"title": "Attribute",
"type": "string"
},
"lotId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Lotid"
},
"newValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Newvalue"
},
"oldValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Oldvalue"
},
"operation": {
"title": "Operation",
"type": "string"
}
},
"required": [
"operation"
],
"title": "BatchValuePatchDatum",
"type": "object"
}
},
"properties": {
"Id": {
"$ref": "#/$defs/BatchValueId"
},
"data": {
"items": {
"$ref": "#/$defs/BatchValuePatchDatum"
},
"title": "Data",
"type": "array"
},
"lotId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Lotid"
}
},
"required": [
"Id"
],
"title": "BatchValuePatchPayload",
"type": "object"
}
Fields:
-
id
(BatchValueId
) -
data
(list[BatchValuePatchDatum]
) -
lot_id
(str | None
)
BatchDataValue
Bases: BaseAlbertModel
Show JSON schema:
{
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Type"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Value"
},
"isEditable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Iseditable"
},
"unitCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Unitcategory"
},
"referenceValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Referencevalue"
}
},
"title": "BatchDataValue",
"type": "object"
}
Fields:
BatchDataRow
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"BatchDataRow": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"rowId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Rowid"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Type"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"manufacturer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Manufacturer"
},
"unitCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Unitcategory"
},
"category": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Category"
},
"isFormula": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Isformula"
},
"isLotParent": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Islotparent"
},
"Values": {
"items": {
"$ref": "#/$defs/BatchDataValue"
},
"title": "Values",
"type": "array"
},
"ChildRows": {
"items": {
"$ref": "#/$defs/BatchDataRow"
},
"title": "Childrows",
"type": "array"
}
},
"title": "BatchDataRow",
"type": "object"
},
"BatchDataValue": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Type"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Value"
},
"isEditable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Iseditable"
},
"unitCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Unitcategory"
},
"referenceValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Referencevalue"
}
},
"title": "BatchDataValue",
"type": "object"
}
},
"$ref": "#/$defs/BatchDataRow"
}
Fields:
-
id
(str | None
) -
row_id
(str | None
) -
type
(str | None
) -
name
(str | None
) -
manufacturer
(str | None
) -
unit_category
(str | None
) -
category
(str | None
) -
is_formula
(bool | None
) -
is_lot_parent
(bool | None
) -
values
(list[BatchDataValue]
) -
child_rows
(list[BatchDataRow]
)
BatchDataColumn
Bases: BaseAlbertModel
Show JSON schema:
{
"$defs": {
"BatchDataColumn": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
},
"batchTotal": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Batchtotal"
},
"referenceTotal": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Referencetotal"
},
"status": {
"anyOf": [
{
"$ref": "#/$defs/Status"
},
{
"type": "null"
}
],
"default": null
},
"productTotal": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Producttotal"
},
"parentId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Parentid"
},
"designColId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Designcolid"
},
"Lots": {
"items": {
"$ref": "#/$defs/BatchDataColumn"
},
"title": "Lots",
"type": "array"
}
},
"title": "BatchDataColumn",
"type": "object"
},
"Status": {
"description": "The status of a resource",
"enum": [
"active",
"inactive"
],
"title": "Status",
"type": "string"
}
},
"$ref": "#/$defs/BatchDataColumn"
}
Fields:
-
id
(str | None
) -
name
(str | None
) -
col_id
(str | None
) -
batch_total
(str | None
) -
reference_total
(str | None
) -
status
(Status | None
) -
product_total
(float | None
) -
parent_id
(str | None
) -
design_col_id
(str | None
) -
lots
(list[BatchDataColumn]
)
BatchData
Bases: BaseResource
Show JSON schema:
{
"$defs": {
"AuditFields": {
"description": "The audit fields for a resource",
"properties": {
"by": {
"default": null,
"title": "By",
"type": "string"
},
"byName": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Byname"
},
"at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "At"
}
},
"title": "AuditFields",
"type": "object"
},
"BatchDataColumn": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
},
"batchTotal": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Batchtotal"
},
"referenceTotal": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Referencetotal"
},
"status": {
"anyOf": [
{
"$ref": "#/$defs/Status"
},
{
"type": "null"
}
],
"default": null
},
"productTotal": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Producttotal"
},
"parentId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Parentid"
},
"designColId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Designcolid"
},
"Lots": {
"items": {
"$ref": "#/$defs/BatchDataColumn"
},
"title": "Lots",
"type": "array"
}
},
"title": "BatchDataColumn",
"type": "object"
},
"BatchDataRow": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"rowId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Rowid"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Type"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"manufacturer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Manufacturer"
},
"unitCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Unitcategory"
},
"category": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Category"
},
"isFormula": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Isformula"
},
"isLotParent": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Islotparent"
},
"Values": {
"items": {
"$ref": "#/$defs/BatchDataValue"
},
"title": "Values",
"type": "array"
},
"ChildRows": {
"items": {
"$ref": "#/$defs/BatchDataRow"
},
"title": "Childrows",
"type": "array"
}
},
"title": "BatchDataRow",
"type": "object"
},
"BatchDataValue": {
"properties": {
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"colId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Colid"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Type"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Value"
},
"isEditable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Iseditable"
},
"unitCategory": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Unitcategory"
},
"referenceValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Referencevalue"
}
},
"title": "BatchDataValue",
"type": "object"
},
"Status": {
"description": "The status of a resource",
"enum": [
"active",
"inactive"
],
"title": "Status",
"type": "string"
}
},
"properties": {
"status": {
"anyOf": [
{
"$ref": "#/$defs/Status"
},
{
"type": "null"
}
],
"default": null
},
"Created": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"Updated": {
"anyOf": [
{
"$ref": "#/$defs/AuditFields"
},
{
"type": "null"
}
],
"default": null
},
"albertId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Albertid"
},
"size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Size"
},
"lastKey": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Lastkey"
},
"Product": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/BatchDataColumn"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Product"
},
"Rows": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/BatchDataRow"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Rows"
}
},
"title": "BatchData",
"type": "object"
}
Fields:
-
status
(Status | None
) -
created
(AuditFields | None
) -
updated
(AuditFields | None
) -
id
(TaskId | None
) -
size
(int | None
) -
last_key
(str | None
) -
product
(list[BatchDataColumn] | None
) -
rows
(list[BatchDataRow] | None
)