Skip to content

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:

attribute

attribute: str = 'lotId'

lot_id

lot_id: str | None = None

new_value

new_value: str | None = None

old_value

old_value: str | None = None

operation

operation: str

BatchValueId

Bases: BaseAlbertModel

Show JSON schema:
{
  "properties": {
    "colId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Colid"
    },
    "rowId": {
      "title": "Rowid",
      "type": "string"
    }
  },
  "required": [
    "rowId"
  ],
  "title": "BatchValueId",
  "type": "object"
}

Fields:

col_id

col_id: str | None = None

row_id

row_id: str

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

lot_id

lot_id: str | None = None

BatchDataType

Bases: str, Enum

Attributes:

Name Type Description
TASK_ID

TASK_ID

TASK_ID = 'taskId'

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:

id

id: str | None = None

col_id

col_id: str | None = None

type

type: str | None = None

name

name: str | None = None

value

value: str | None = None

is_editable

is_editable: bool | None = None

unit_category

unit_category: str | None = None

reference_value

reference_value: str | None = None

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

id: str | None = None

row_id

row_id: str | None = None

type

type: str | None = None

name

name: str | None = None

manufacturer

manufacturer: str | None = None

unit_category

unit_category: str | None = None

category

category: str | None = None

is_formula

is_formula: bool | None = None

is_lot_parent

is_lot_parent: bool | None = None

values

child_rows

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

id: str | None = None

name

name: str | None = None

col_id

col_id: str | None = None

batch_total

batch_total: str | None = None

reference_total

reference_total: str | None = None

status

status: Status | None = None

product_total

product_total: float | None = None

parent_id

parent_id: str | None = None

design_col_id

design_col_id: str | None = None

lots

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:

id

id: TaskId | None = None

size

size: int | None = None

last_key

last_key: str | None = None

product

product: list[BatchDataColumn] | None = None

rows

rows: list[BatchDataRow] | None = None