Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: add API key policies for all tables
Rob Carrington6a282d191f2e
diff --git a/apps/carbon/app/lib/swagger-docs-schema.ts b/apps/carbon/app/lib/swagger-docs-schema.tsindex 68e9607024..52401f89b5 100644--- a/apps/carbon/app/lib/swagger-docs-schema.ts+++ b/apps/carbon/app/lib/swagger-docs-schema.ts@@ -555,132 +555,6 @@ export default {tags: ["supplierType"],},},- "/crewAbility": {- get: {- parameters: [- {- $ref: "#/parameters/rowFilter.crewAbility.id",- },- {- $ref: "#/parameters/rowFilter.crewAbility.crewId",- },- {- $ref: "#/parameters/rowFilter.crewAbility.abilityId",- },- {- $ref: "#/parameters/rowFilter.crewAbility.active",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/order",- },- {- $ref: "#/parameters/range",- },- {- $ref: "#/parameters/rangeUnit",- },- {- $ref: "#/parameters/offset",- },- {- $ref: "#/parameters/limit",- },- {- $ref: "#/parameters/preferCount",- },- ],- responses: {- "200": {- description: "OK",- schema: {- items: {- $ref: "#/definitions/crewAbility",- },- type: "array",- },- },- "206": {- description: "Partial Content",- },- },- tags: ["crewAbility"],- },- post: {- parameters: [- {- $ref: "#/parameters/body.crewAbility",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/preferPost",- },- ],- responses: {- "201": {- description: "Created",- },- },- tags: ["crewAbility"],- },- delete: {- parameters: [- {- $ref: "#/parameters/rowFilter.crewAbility.id",- },- {- $ref: "#/parameters/rowFilter.crewAbility.crewId",- },- {- $ref: "#/parameters/rowFilter.crewAbility.abilityId",- },- {- $ref: "#/parameters/rowFilter.crewAbility.active",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["crewAbility"],- },- patch: {- parameters: [- {- $ref: "#/parameters/rowFilter.crewAbility.id",- },- {- $ref: "#/parameters/rowFilter.crewAbility.crewId",- },- {- $ref: "#/parameters/rowFilter.crewAbility.abilityId",- },- {- $ref: "#/parameters/rowFilter.crewAbility.active",- },- {- $ref: "#/parameters/body.crewAbility",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["crewAbility"],- },- },"/customerType": {get: {parameters: [@@ -3675,68 +3549,107 @@ export default {tags: ["methodMaterial"],},},- "/quoteMaterial": {+ "/processes": {get: {parameters: [{- $ref: "#/parameters/rowFilter.quoteMaterial.id",+ $ref: "#/parameters/rowFilter.processes.id",},{- $ref: "#/parameters/rowFilter.quoteMaterial.quoteId",+ $ref: "#/parameters/rowFilter.processes.name",},{- $ref: "#/parameters/rowFilter.quoteMaterial.quoteLineId",+ $ref: "#/parameters/rowFilter.processes.defaultStandardFactor",},{- $ref: "#/parameters/rowFilter.quoteMaterial.itemId",+ $ref: "#/parameters/rowFilter.processes.companyId",},{- $ref: "#/parameters/rowFilter.quoteMaterial.itemReadableId",+ $ref: "#/parameters/rowFilter.processes.customFields",},{- $ref: "#/parameters/rowFilter.quoteMaterial.itemType",+ $ref: "#/parameters/rowFilter.processes.createdBy",},{- $ref: "#/parameters/rowFilter.quoteMaterial.methodType",+ $ref: "#/parameters/rowFilter.processes.createdAt",},{- $ref: "#/parameters/rowFilter.quoteMaterial.order",+ $ref: "#/parameters/rowFilter.processes.updatedBy",},{- $ref: "#/parameters/rowFilter.quoteMaterial.description",+ $ref: "#/parameters/rowFilter.processes.updatedAt",},{- $ref: "#/parameters/rowFilter.quoteMaterial.quantity",+ $ref: "#/parameters/rowFilter.processes.workCenters",},{- $ref: "#/parameters/rowFilter.quoteMaterial.unitOfMeasureCode",+ $ref: "#/parameters/select",},{- $ref: "#/parameters/rowFilter.quoteMaterial.unitCost",+ $ref: "#/parameters/order",},{- $ref: "#/parameters/rowFilter.quoteMaterial.companyId",+ $ref: "#/parameters/range",},{- $ref: "#/parameters/rowFilter.quoteMaterial.createdAt",+ $ref: "#/parameters/rangeUnit",},{- $ref: "#/parameters/rowFilter.quoteMaterial.createdBy",+ $ref: "#/parameters/offset",},{- $ref: "#/parameters/rowFilter.quoteMaterial.updatedAt",+ $ref: "#/parameters/limit",},{- $ref: "#/parameters/rowFilter.quoteMaterial.updatedBy",+ $ref: "#/parameters/preferCount",+ },+ ],+ responses: {+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/processes",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",},+ },+ tags: ["processes"],+ },+ },+ "/process": {+ get: {+ parameters: [{- $ref: "#/parameters/rowFilter.quoteMaterial.customFields",+ $ref: "#/parameters/rowFilter.process.id",},{- $ref: "#/parameters/rowFilter.quoteMaterial.quoteMakeMethodId",+ $ref: "#/parameters/rowFilter.process.name",},{- $ref: "#/parameters/rowFilter.quoteMaterial.quoteOperationId",+ $ref: "#/parameters/rowFilter.process.defaultStandardFactor",+ },+ {+ $ref: "#/parameters/rowFilter.process.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.process.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.process.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.process.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.process.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.process.updatedAt",},{$ref: "#/parameters/select",@@ -3765,7 +3678,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/quoteMaterial",+ $ref: "#/definitions/process",},type: "array",},@@ -3774,12 +3687,12 @@ export default {description: "Partial Content",},},- tags: ["quoteMaterial"],+ tags: ["process"],},post: {parameters: [{- $ref: "#/parameters/body.quoteMaterial",+ $ref: "#/parameters/body.process",},{$ref: "#/parameters/select",@@ -3793,9 +3706,94 @@ export default {description: "Created",},},- tags: ["quoteMaterial"],+ tags: ["process"],},delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.process.id",+ },+ {+ $ref: "#/parameters/rowFilter.process.name",+ },+ {+ $ref: "#/parameters/rowFilter.process.defaultStandardFactor",+ },+ {+ $ref: "#/parameters/rowFilter.process.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.process.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.process.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.process.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.process.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.process.updatedAt",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["process"],+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.process.id",+ },+ {+ $ref: "#/parameters/rowFilter.process.name",+ },+ {+ $ref: "#/parameters/rowFilter.process.defaultStandardFactor",+ },+ {+ $ref: "#/parameters/rowFilter.process.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.process.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.process.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.process.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.process.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.process.updatedAt",+ },+ {+ $ref: "#/parameters/body.process",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["process"],+ },+ },+ "/quoteMaterial": {+ get: {parameters: [{$ref: "#/parameters/rowFilter.quoteMaterial.id",@@ -3858,17 +3856,136 @@ export default {$ref: "#/parameters/rowFilter.quoteMaterial.quoteOperationId",},{- $ref: "#/parameters/preferReturn",+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/order",+ },+ {+ $ref: "#/parameters/range",+ },+ {+ $ref: "#/parameters/rangeUnit",+ },+ {+ $ref: "#/parameters/offset",+ },+ {+ $ref: "#/parameters/limit",+ },+ {+ $ref: "#/parameters/preferCount",},],responses: {- "204": {- description: "No Content",+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/quoteMaterial",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",},},tags: ["quoteMaterial"],},- patch: {+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.quoteMaterial",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["quoteMaterial"],+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.id",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.quoteId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.quoteLineId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.itemId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.itemReadableId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.itemType",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.methodType",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.order",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.description",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.quantity",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.unitOfMeasureCode",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.unitCost",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.quoteMakeMethodId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteMaterial.quoteOperationId",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["quoteMaterial"],+ },+ patch: {parameters: [{$ref: "#/parameters/rowFilter.quoteMaterial.id",@@ -4569,6 +4686,159 @@ export default {tags: ["purchaseOrderLines"],},},+ "/quoteOperationWorkInstruction": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.quoteOperationId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.content",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.updatedBy",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/order",+ },+ {+ $ref: "#/parameters/range",+ },+ {+ $ref: "#/parameters/rangeUnit",+ },+ {+ $ref: "#/parameters/offset",+ },+ {+ $ref: "#/parameters/limit",+ },+ {+ $ref: "#/parameters/preferCount",+ },+ ],+ responses: {+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/quoteOperationWorkInstruction",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["quoteOperationWorkInstruction"],+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.quoteOperationWorkInstruction",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["quoteOperationWorkInstruction"],+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.quoteOperationId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.content",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.updatedBy",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["quoteOperationWorkInstruction"],+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.quoteOperationId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.content",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationWorkInstruction.updatedBy",+ },+ {+ $ref: "#/parameters/body.quoteOperationWorkInstruction",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["quoteOperationWorkInstruction"],+ },+ },"/materialForm": {get: {parameters: [@@ -9201,6 +9471,102 @@ export default {tags: ["purchaseOrderSuppliers"],},},+ "/workCenters": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.workCenters.id",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.name",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.description",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.quotingRate",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.laborRate",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.overheadRate",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.defaultStandardFactor",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.requiredAbilityId",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.active",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.locationName",+ },+ {+ $ref: "#/parameters/rowFilter.workCenters.processes",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/order",+ },+ {+ $ref: "#/parameters/range",+ },+ {+ $ref: "#/parameters/rangeUnit",+ },+ {+ $ref: "#/parameters/offset",+ },+ {+ $ref: "#/parameters/limit",+ },+ {+ $ref: "#/parameters/preferCount",+ },+ ],+ responses: {+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/workCenters",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["workCenters"],+ },+ },"/costLedger": {get: {parameters: [@@ -10476,231 +10842,6 @@ export default {tags: ["supplierLedger"],},},- "/workCellType": {- get: {- parameters: [- {- $ref: "#/parameters/rowFilter.workCellType.id",- },- {- $ref: "#/parameters/rowFilter.workCellType.name",- },- {- $ref: "#/parameters/rowFilter.workCellType.description",- },- {- $ref: "#/parameters/rowFilter.workCellType.requiredAbility",- },- {- $ref: "#/parameters/rowFilter.workCellType.quotingRate",- },- {- $ref: "#/parameters/rowFilter.workCellType.laborRate",- },- {- $ref: "#/parameters/rowFilter.workCellType.overheadRate",- },- {- $ref: "#/parameters/rowFilter.workCellType.defaultStandardFactor",- },- {- $ref: "#/parameters/rowFilter.workCellType.active",- },- {- $ref: "#/parameters/rowFilter.workCellType.companyId",- },- {- $ref: "#/parameters/rowFilter.workCellType.createdBy",- },- {- $ref: "#/parameters/rowFilter.workCellType.createdAt",- },- {- $ref: "#/parameters/rowFilter.workCellType.updatedBy",- },- {- $ref: "#/parameters/rowFilter.workCellType.updatedAt",- },- {- $ref: "#/parameters/rowFilter.workCellType.customFields",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/order",- },- {- $ref: "#/parameters/range",- },- {- $ref: "#/parameters/rangeUnit",- },- {- $ref: "#/parameters/offset",- },- {- $ref: "#/parameters/limit",- },- {- $ref: "#/parameters/preferCount",- },- ],- responses: {- "200": {- description: "OK",- schema: {- items: {- $ref: "#/definitions/workCellType",- },- type: "array",- },- },- "206": {- description: "Partial Content",- },- },- tags: ["workCellType"],- },- post: {- parameters: [- {- $ref: "#/parameters/body.workCellType",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/preferPost",- },- ],- responses: {- "201": {- description: "Created",- },- },- tags: ["workCellType"],- },- delete: {- parameters: [- {- $ref: "#/parameters/rowFilter.workCellType.id",- },- {- $ref: "#/parameters/rowFilter.workCellType.name",- },- {- $ref: "#/parameters/rowFilter.workCellType.description",- },- {- $ref: "#/parameters/rowFilter.workCellType.requiredAbility",- },- {- $ref: "#/parameters/rowFilter.workCellType.quotingRate",- },- {- $ref: "#/parameters/rowFilter.workCellType.laborRate",- },- {- $ref: "#/parameters/rowFilter.workCellType.overheadRate",- },- {- $ref: "#/parameters/rowFilter.workCellType.defaultStandardFactor",- },- {- $ref: "#/parameters/rowFilter.workCellType.active",- },- {- $ref: "#/parameters/rowFilter.workCellType.companyId",- },- {- $ref: "#/parameters/rowFilter.workCellType.createdBy",- },- {- $ref: "#/parameters/rowFilter.workCellType.createdAt",- },- {- $ref: "#/parameters/rowFilter.workCellType.updatedBy",- },- {- $ref: "#/parameters/rowFilter.workCellType.updatedAt",- },- {- $ref: "#/parameters/rowFilter.workCellType.customFields",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["workCellType"],- },- patch: {- parameters: [- {- $ref: "#/parameters/rowFilter.workCellType.id",- },- {- $ref: "#/parameters/rowFilter.workCellType.name",- },- {- $ref: "#/parameters/rowFilter.workCellType.description",- },- {- $ref: "#/parameters/rowFilter.workCellType.requiredAbility",- },- {- $ref: "#/parameters/rowFilter.workCellType.quotingRate",- },- {- $ref: "#/parameters/rowFilter.workCellType.laborRate",- },- {- $ref: "#/parameters/rowFilter.workCellType.overheadRate",- },- {- $ref: "#/parameters/rowFilter.workCellType.defaultStandardFactor",- },- {- $ref: "#/parameters/rowFilter.workCellType.active",- },- {- $ref: "#/parameters/rowFilter.workCellType.companyId",- },- {- $ref: "#/parameters/rowFilter.workCellType.createdBy",- },- {- $ref: "#/parameters/rowFilter.workCellType.createdAt",- },- {- $ref: "#/parameters/rowFilter.workCellType.updatedBy",- },- {- $ref: "#/parameters/rowFilter.workCellType.updatedAt",- },- {- $ref: "#/parameters/rowFilter.workCellType.customFields",- },- {- $ref: "#/parameters/body.workCellType",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["workCellType"],- },- },"/holidayYears": {get: {parameters: [@@ -12003,38 +12144,56 @@ export default {tags: ["note"],},},- "/tool": {+ "/workCenter": {get: {parameters: [{- $ref: "#/parameters/rowFilter.tool.id",+ $ref: "#/parameters/rowFilter.workCenter.id",},{- $ref: "#/parameters/rowFilter.tool.itemId",+ $ref: "#/parameters/rowFilter.workCenter.name",},{- $ref: "#/parameters/rowFilter.tool.approved",+ $ref: "#/parameters/rowFilter.workCenter.description",},{- $ref: "#/parameters/rowFilter.tool.approvedBy",+ $ref: "#/parameters/rowFilter.workCenter.quotingRate",},{- $ref: "#/parameters/rowFilter.tool.customFields",+ $ref: "#/parameters/rowFilter.workCenter.laborRate",},{- $ref: "#/parameters/rowFilter.tool.companyId",+ $ref: "#/parameters/rowFilter.workCenter.overheadRate",},{- $ref: "#/parameters/rowFilter.tool.createdBy",+ $ref: "#/parameters/rowFilter.workCenter.defaultStandardFactor",},{- $ref: "#/parameters/rowFilter.tool.createdAt",+ $ref: "#/parameters/rowFilter.workCenter.locationId",},{- $ref: "#/parameters/rowFilter.tool.updatedBy",+ $ref: "#/parameters/rowFilter.workCenter.requiredAbilityId",},{- $ref: "#/parameters/rowFilter.tool.updatedAt",+ $ref: "#/parameters/rowFilter.workCenter.active",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.updatedAt",},{$ref: "#/parameters/select",@@ -12063,7 +12222,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/tool",+ $ref: "#/definitions/workCenter",},type: "array",},@@ -12072,12 +12231,12 @@ export default {description: "Partial Content",},},- tags: ["tool"],+ tags: ["workCenter"],},post: {parameters: [{- $ref: "#/parameters/body.tool",+ $ref: "#/parameters/body.workCenter",},{$ref: "#/parameters/select",@@ -12091,39 +12250,57 @@ export default {description: "Created",},},- tags: ["tool"],+ tags: ["workCenter"],},delete: {parameters: [{- $ref: "#/parameters/rowFilter.tool.id",+ $ref: "#/parameters/rowFilter.workCenter.id",},{- $ref: "#/parameters/rowFilter.tool.itemId",+ $ref: "#/parameters/rowFilter.workCenter.name",},{- $ref: "#/parameters/rowFilter.tool.approved",+ $ref: "#/parameters/rowFilter.workCenter.description",},{- $ref: "#/parameters/rowFilter.tool.approvedBy",+ $ref: "#/parameters/rowFilter.workCenter.quotingRate",},{- $ref: "#/parameters/rowFilter.tool.customFields",+ $ref: "#/parameters/rowFilter.workCenter.laborRate",},{- $ref: "#/parameters/rowFilter.tool.companyId",+ $ref: "#/parameters/rowFilter.workCenter.overheadRate",},{- $ref: "#/parameters/rowFilter.tool.createdBy",+ $ref: "#/parameters/rowFilter.workCenter.defaultStandardFactor",},{- $ref: "#/parameters/rowFilter.tool.createdAt",+ $ref: "#/parameters/rowFilter.workCenter.locationId",},{- $ref: "#/parameters/rowFilter.tool.updatedBy",+ $ref: "#/parameters/rowFilter.workCenter.requiredAbilityId",},{- $ref: "#/parameters/rowFilter.tool.updatedAt",+ $ref: "#/parameters/rowFilter.workCenter.active",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.updatedAt",},{$ref: "#/parameters/preferReturn",@@ -12134,7 +12311,205 @@ export default {description: "No Content",},},- tags: ["tool"],+ tags: ["workCenter"],+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.workCenter.id",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.name",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.description",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.quotingRate",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.laborRate",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.overheadRate",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.defaultStandardFactor",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.requiredAbilityId",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.active",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.workCenter.updatedAt",+ },+ {+ $ref: "#/parameters/body.workCenter",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["workCenter"],+ },+ },+ "/tool": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.tool.id",+ },+ {+ $ref: "#/parameters/rowFilter.tool.itemId",+ },+ {+ $ref: "#/parameters/rowFilter.tool.approved",+ },+ {+ $ref: "#/parameters/rowFilter.tool.approvedBy",+ },+ {+ $ref: "#/parameters/rowFilter.tool.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.tool.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.tool.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.tool.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.tool.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.tool.updatedAt",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/order",+ },+ {+ $ref: "#/parameters/range",+ },+ {+ $ref: "#/parameters/rangeUnit",+ },+ {+ $ref: "#/parameters/offset",+ },+ {+ $ref: "#/parameters/limit",+ },+ {+ $ref: "#/parameters/preferCount",+ },+ ],+ responses: {+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/tool",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["tool"],+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.tool",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["tool"],+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.tool.id",+ },+ {+ $ref: "#/parameters/rowFilter.tool.itemId",+ },+ {+ $ref: "#/parameters/rowFilter.tool.approved",+ },+ {+ $ref: "#/parameters/rowFilter.tool.approvedBy",+ },+ {+ $ref: "#/parameters/rowFilter.tool.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.tool.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.tool.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.tool.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.tool.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.tool.updatedAt",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["tool"],},patch: {parameters: [@@ -13249,40 +13624,49 @@ export default {$ref: "#/parameters/rowFilter.methodOperation.operationOrder",},{- $ref: "#/parameters/rowFilter.methodOperation.workCellTypeId",+ $ref: "#/parameters/rowFilter.methodOperation.description",},{- $ref: "#/parameters/rowFilter.methodOperation.equipmentTypeId",+ $ref: "#/parameters/rowFilter.methodOperation.companyId",},{- $ref: "#/parameters/rowFilter.methodOperation.description",+ $ref: "#/parameters/rowFilter.methodOperation.createdAt",},{- $ref: "#/parameters/rowFilter.methodOperation.setupHours",+ $ref: "#/parameters/rowFilter.methodOperation.createdBy",},{- $ref: "#/parameters/rowFilter.methodOperation.standardFactor",+ $ref: "#/parameters/rowFilter.methodOperation.updatedAt",},{- $ref: "#/parameters/rowFilter.methodOperation.productionStandard",+ $ref: "#/parameters/rowFilter.methodOperation.updatedBy",},{- $ref: "#/parameters/rowFilter.methodOperation.companyId",+ $ref: "#/parameters/rowFilter.methodOperation.customFields",},{- $ref: "#/parameters/rowFilter.methodOperation.createdAt",+ $ref: "#/parameters/rowFilter.methodOperation.processId",},{- $ref: "#/parameters/rowFilter.methodOperation.createdBy",+ $ref: "#/parameters/rowFilter.methodOperation.workCenterId",},{- $ref: "#/parameters/rowFilter.methodOperation.updatedAt",+ $ref: "#/parameters/rowFilter.methodOperation.setupTime",},{- $ref: "#/parameters/rowFilter.methodOperation.updatedBy",+ $ref: "#/parameters/rowFilter.methodOperation.setupUnit",},{- $ref: "#/parameters/rowFilter.methodOperation.customFields",+ $ref: "#/parameters/rowFilter.methodOperation.laborTime",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.laborUnit",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.machineTime",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.machineUnit",},{$ref: "#/parameters/select",@@ -13355,24 +13739,9 @@ export default {{$ref: "#/parameters/rowFilter.methodOperation.operationOrder",},- {- $ref: "#/parameters/rowFilter.methodOperation.workCellTypeId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.equipmentTypeId",- },{$ref: "#/parameters/rowFilter.methodOperation.description",},- {- $ref: "#/parameters/rowFilter.methodOperation.setupHours",- },- {- $ref: "#/parameters/rowFilter.methodOperation.standardFactor",- },- {- $ref: "#/parameters/rowFilter.methodOperation.productionStandard",- },{$ref: "#/parameters/rowFilter.methodOperation.companyId",},@@ -13392,68 +13761,28 @@ export default {$ref: "#/parameters/rowFilter.methodOperation.customFields",},{- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["methodOperation"],- },- patch: {- parameters: [- {- $ref: "#/parameters/rowFilter.methodOperation.id",- },- {- $ref: "#/parameters/rowFilter.methodOperation.makeMethodId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.order",- },- {- $ref: "#/parameters/rowFilter.methodOperation.operationOrder",- },- {- $ref: "#/parameters/rowFilter.methodOperation.workCellTypeId",+ $ref: "#/parameters/rowFilter.methodOperation.processId",},{- $ref: "#/parameters/rowFilter.methodOperation.equipmentTypeId",+ $ref: "#/parameters/rowFilter.methodOperation.workCenterId",},{- $ref: "#/parameters/rowFilter.methodOperation.description",+ $ref: "#/parameters/rowFilter.methodOperation.setupTime",},{- $ref: "#/parameters/rowFilter.methodOperation.setupHours",+ $ref: "#/parameters/rowFilter.methodOperation.setupUnit",},{- $ref: "#/parameters/rowFilter.methodOperation.standardFactor",+ $ref: "#/parameters/rowFilter.methodOperation.laborTime",},{- $ref: "#/parameters/rowFilter.methodOperation.productionStandard",+ $ref: "#/parameters/rowFilter.methodOperation.laborUnit",},{- $ref: "#/parameters/rowFilter.methodOperation.companyId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.createdAt",- },- {- $ref: "#/parameters/rowFilter.methodOperation.createdBy",- },- {- $ref: "#/parameters/rowFilter.methodOperation.updatedAt",- },- {- $ref: "#/parameters/rowFilter.methodOperation.updatedBy",- },- {- $ref: "#/parameters/rowFilter.methodOperation.customFields",+ $ref: "#/parameters/rowFilter.methodOperation.machineTime",},{- $ref: "#/parameters/body.methodOperation",+ $ref: "#/parameters/rowFilter.methodOperation.machineUnit",},{$ref: "#/parameters/preferReturn",@@ -13466,101 +13795,174 @@ export default {},tags: ["methodOperation"],},- },- "/salesOrderPayment": {- get: {+ patch: {parameters: [{- $ref: "#/parameters/rowFilter.salesOrderPayment.id",+ $ref: "#/parameters/rowFilter.methodOperation.id",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerId",+ $ref: "#/parameters/rowFilter.methodOperation.makeMethodId",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerLocationId",+ $ref: "#/parameters/rowFilter.methodOperation.order",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerContactId",+ $ref: "#/parameters/rowFilter.methodOperation.operationOrder",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.paymentTermId",+ $ref: "#/parameters/rowFilter.methodOperation.description",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.paymentComplete",+ $ref: "#/parameters/rowFilter.methodOperation.companyId",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.currencyCode",+ $ref: "#/parameters/rowFilter.methodOperation.createdAt",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.companyId",+ $ref: "#/parameters/rowFilter.methodOperation.createdBy",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.updatedAt",+ $ref: "#/parameters/rowFilter.methodOperation.updatedAt",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.updatedBy",+ $ref: "#/parameters/rowFilter.methodOperation.updatedBy",},{- $ref: "#/parameters/rowFilter.salesOrderPayment.customFields",+ $ref: "#/parameters/rowFilter.methodOperation.customFields",},{- $ref: "#/parameters/select",+ $ref: "#/parameters/rowFilter.methodOperation.processId",},{- $ref: "#/parameters/order",+ $ref: "#/parameters/rowFilter.methodOperation.workCenterId",},{- $ref: "#/parameters/range",+ $ref: "#/parameters/rowFilter.methodOperation.setupTime",},{- $ref: "#/parameters/rangeUnit",+ $ref: "#/parameters/rowFilter.methodOperation.setupUnit",},{- $ref: "#/parameters/offset",+ $ref: "#/parameters/rowFilter.methodOperation.laborTime",},{- $ref: "#/parameters/limit",+ $ref: "#/parameters/rowFilter.methodOperation.laborUnit",},{- $ref: "#/parameters/preferCount",+ $ref: "#/parameters/rowFilter.methodOperation.machineTime",},- ],- responses: {- "200": {- description: "OK",- schema: {- items: {- $ref: "#/definitions/salesOrderPayment",- },- type: "array",- },- },- "206": {- description: "Partial Content",- },- },- tags: ["salesOrderPayment"],- },- post: {- parameters: [{- $ref: "#/parameters/body.salesOrderPayment",+ $ref: "#/parameters/rowFilter.methodOperation.machineUnit",},{- $ref: "#/parameters/select",+ $ref: "#/parameters/body.methodOperation",},{- $ref: "#/parameters/preferPost",+ $ref: "#/parameters/preferReturn",},],responses: {- "201": {- description: "Created",+ "204": {+ description: "No Content",},},- tags: ["salesOrderPayment"],+ tags: ["methodOperation"],},- delete: {+ },+ "/salesOrderPayment": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.id",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerLocationId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerContactId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.paymentTermId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.paymentComplete",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.currencyCode",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.customFields",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/order",+ },+ {+ $ref: "#/parameters/range",+ },+ {+ $ref: "#/parameters/rangeUnit",+ },+ {+ $ref: "#/parameters/offset",+ },+ {+ $ref: "#/parameters/limit",+ },+ {+ $ref: "#/parameters/preferCount",+ },+ ],+ responses: {+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/salesOrderPayment",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["salesOrderPayment"],+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.salesOrderPayment",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["salesOrderPayment"],+ },+ delete: {parameters: [{$ref: "#/parameters/rowFilter.salesOrderPayment.id",@@ -15060,24 +15462,9 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.order",},- {- $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.workCellTypeId",- },- {- $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.equipmentTypeId",- },{$ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.description",},- {- $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.setupHours",- },- {- $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.standardFactor",- },- {- $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.productionStandard",- },{$ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.operationOrder",},@@ -15108,6 +15495,30 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.customFields",},+ {+ $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.processId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.workCenterId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.setupTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.setupUnit",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.laborTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.laborUnit",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.machineTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.machineUnit",+ },{$ref: "#/parameters/select",},@@ -15984,44 +16395,41 @@ export default {tags: ["user"],},},- "/equipmentType": {+ "/modelUpload": {get: {parameters: [{- $ref: "#/parameters/rowFilter.equipmentType.id",- },- {- $ref: "#/parameters/rowFilter.equipmentType.name",+ $ref: "#/parameters/rowFilter.modelUpload.id",},{- $ref: "#/parameters/rowFilter.equipmentType.description",+ $ref: "#/parameters/rowFilter.modelUpload.name",},{- $ref: "#/parameters/rowFilter.equipmentType.requiredAbility",+ $ref: "#/parameters/rowFilter.modelUpload.size",},{- $ref: "#/parameters/rowFilter.equipmentType.setupHours",+ $ref: "#/parameters/rowFilter.modelUpload.modelPath",},{- $ref: "#/parameters/rowFilter.equipmentType.active",+ $ref: "#/parameters/rowFilter.modelUpload.autodeskUrn",},{- $ref: "#/parameters/rowFilter.equipmentType.companyId",+ $ref: "#/parameters/rowFilter.modelUpload.companyId",},{- $ref: "#/parameters/rowFilter.equipmentType.createdBy",+ $ref: "#/parameters/rowFilter.modelUpload.createdAt",},{- $ref: "#/parameters/rowFilter.equipmentType.createdAt",+ $ref: "#/parameters/rowFilter.modelUpload.createdBy",},{- $ref: "#/parameters/rowFilter.equipmentType.updatedBy",+ $ref: "#/parameters/rowFilter.modelUpload.updatedAt",},{- $ref: "#/parameters/rowFilter.equipmentType.updatedAt",+ $ref: "#/parameters/rowFilter.modelUpload.updatedBy",},{- $ref: "#/parameters/rowFilter.equipmentType.customFields",+ $ref: "#/parameters/rowFilter.modelUpload.thumbnailPath",},{$ref: "#/parameters/select",@@ -16050,7 +16458,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/equipmentType",+ $ref: "#/definitions/modelUpload",},type: "array",},@@ -16059,12 +16467,12 @@ export default {description: "Partial Content",},},- tags: ["equipmentType"],+ tags: ["modelUpload"],},post: {parameters: [{- $ref: "#/parameters/body.equipmentType",+ $ref: "#/parameters/body.modelUpload",},{$ref: "#/parameters/select",@@ -16078,112 +16486,9 @@ export default {description: "Created",},},- tags: ["equipmentType"],+ tags: ["modelUpload"],},delete: {- parameters: [- {- $ref: "#/parameters/rowFilter.equipmentType.id",- },- {- $ref: "#/parameters/rowFilter.equipmentType.name",- },- {- $ref: "#/parameters/rowFilter.equipmentType.description",- },- {- $ref: "#/parameters/rowFilter.equipmentType.requiredAbility",- },- {- $ref: "#/parameters/rowFilter.equipmentType.setupHours",- },- {- $ref: "#/parameters/rowFilter.equipmentType.active",- },- {- $ref: "#/parameters/rowFilter.equipmentType.companyId",- },- {- $ref: "#/parameters/rowFilter.equipmentType.createdBy",- },- {- $ref: "#/parameters/rowFilter.equipmentType.createdAt",- },- {- $ref: "#/parameters/rowFilter.equipmentType.updatedBy",- },- {- $ref: "#/parameters/rowFilter.equipmentType.updatedAt",- },- {- $ref: "#/parameters/rowFilter.equipmentType.customFields",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["equipmentType"],- },- patch: {- parameters: [- {- $ref: "#/parameters/rowFilter.equipmentType.id",- },- {- $ref: "#/parameters/rowFilter.equipmentType.name",- },- {- $ref: "#/parameters/rowFilter.equipmentType.description",- },- {- $ref: "#/parameters/rowFilter.equipmentType.requiredAbility",- },- {- $ref: "#/parameters/rowFilter.equipmentType.setupHours",- },- {- $ref: "#/parameters/rowFilter.equipmentType.active",- },- {- $ref: "#/parameters/rowFilter.equipmentType.companyId",- },- {- $ref: "#/parameters/rowFilter.equipmentType.createdBy",- },- {- $ref: "#/parameters/rowFilter.equipmentType.createdAt",- },- {- $ref: "#/parameters/rowFilter.equipmentType.updatedBy",- },- {- $ref: "#/parameters/rowFilter.equipmentType.updatedAt",- },- {- $ref: "#/parameters/rowFilter.equipmentType.customFields",- },- {- $ref: "#/parameters/body.equipmentType",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["equipmentType"],- },- },- "/modelUpload": {- get: {parameters: [{$ref: "#/parameters/rowFilter.modelUpload.id",@@ -16219,109 +16524,17 @@ export default {$ref: "#/parameters/rowFilter.modelUpload.thumbnailPath",},{- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/order",- },- {- $ref: "#/parameters/range",- },- {- $ref: "#/parameters/rangeUnit",- },- {- $ref: "#/parameters/offset",- },- {- $ref: "#/parameters/limit",- },- {- $ref: "#/parameters/preferCount",- },- ],- responses: {- "200": {- description: "OK",- schema: {- items: {- $ref: "#/definitions/modelUpload",- },- type: "array",- },- },- "206": {- description: "Partial Content",- },- },- tags: ["modelUpload"],- },- post: {- parameters: [- {- $ref: "#/parameters/body.modelUpload",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/preferPost",+ $ref: "#/parameters/preferReturn",},],responses: {- "201": {- description: "Created",+ "204": {+ description: "No Content",},},tags: ["modelUpload"],},- delete: {- parameters: [- {- $ref: "#/parameters/rowFilter.modelUpload.id",- },- {- $ref: "#/parameters/rowFilter.modelUpload.name",- },- {- $ref: "#/parameters/rowFilter.modelUpload.size",- },- {- $ref: "#/parameters/rowFilter.modelUpload.modelPath",- },- {- $ref: "#/parameters/rowFilter.modelUpload.autodeskUrn",- },- {- $ref: "#/parameters/rowFilter.modelUpload.companyId",- },- {- $ref: "#/parameters/rowFilter.modelUpload.createdAt",- },- {- $ref: "#/parameters/rowFilter.modelUpload.createdBy",- },- {- $ref: "#/parameters/rowFilter.modelUpload.updatedAt",- },- {- $ref: "#/parameters/rowFilter.modelUpload.updatedBy",- },- {- $ref: "#/parameters/rowFilter.modelUpload.thumbnailPath",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["modelUpload"],- },- patch: {+ patch: {parameters: [{$ref: "#/parameters/rowFilter.modelUpload.id",@@ -19221,59 +19434,41 @@ export default {tags: ["integrations"],},},- "/equipment": {+ "/groups_recursive": {get: {parameters: [{- $ref: "#/parameters/rowFilter.equipment.id",- },- {- $ref: "#/parameters/rowFilter.equipment.name",- },- {- $ref: "#/parameters/rowFilter.equipment.description",- },- {- $ref: "#/parameters/rowFilter.equipment.equipmentTypeId",- },- {- $ref: "#/parameters/rowFilter.equipment.operatorsRequired",- },- {- $ref: "#/parameters/rowFilter.equipment.setupHours",- },- {- $ref: "#/parameters/rowFilter.equipment.locationId",+ $ref: "#/parameters/rowFilter.groups_recursive.groupId",},{- $ref: "#/parameters/rowFilter.equipment.workCellId",+ $ref: "#/parameters/rowFilter.groups_recursive.name",},{- $ref: "#/parameters/rowFilter.equipment.active",+ $ref: "#/parameters/rowFilter.groups_recursive.companyId",},{- $ref: "#/parameters/rowFilter.equipment.activeDate",+ $ref: "#/parameters/rowFilter.groups_recursive.parentId",},{- $ref: "#/parameters/rowFilter.equipment.companyId",+ $ref: "#/parameters/rowFilter.groups_recursive.isIdentityGroup",},{- $ref: "#/parameters/rowFilter.equipment.createdBy",+ $ref: "#/parameters/rowFilter.groups_recursive.isEmployeeTypeGroup",},{- $ref: "#/parameters/rowFilter.equipment.createdAt",+ $ref: "#/parameters/rowFilter.groups_recursive.isCustomerOrgGroup",},{- $ref: "#/parameters/rowFilter.equipment.updatedBy",+ $ref: "#/parameters/rowFilter.groups_recursive.isCustomerTypeGroup",},{- $ref: "#/parameters/rowFilter.equipment.updatedAt",+ $ref: "#/parameters/rowFilter.groups_recursive.isSupplierOrgGroup",},{- $ref: "#/parameters/rowFilter.equipment.customFields",+ $ref: "#/parameters/rowFilter.groups_recursive.isSupplierTypeGroup",},{- $ref: "#/parameters/rowFilter.equipment.equipmentId",+ $ref: "#/parameters/rowFilter.groups_recursive.user",},{$ref: "#/parameters/select",@@ -19302,7 +19497,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/equipment",+ $ref: "#/definitions/groups_recursive",},type: "array",},@@ -19311,194 +19506,89 @@ export default {description: "Partial Content",},},- tags: ["equipment"],- },- post: {- parameters: [- {- $ref: "#/parameters/body.equipment",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/preferPost",- },- ],- responses: {- "201": {- description: "Created",- },- },- tags: ["equipment"],- },- delete: {- parameters: [- {- $ref: "#/parameters/rowFilter.equipment.id",- },- {- $ref: "#/parameters/rowFilter.equipment.name",- },- {- $ref: "#/parameters/rowFilter.equipment.description",- },- {- $ref: "#/parameters/rowFilter.equipment.equipmentTypeId",- },- {- $ref: "#/parameters/rowFilter.equipment.operatorsRequired",- },- {- $ref: "#/parameters/rowFilter.equipment.setupHours",- },- {- $ref: "#/parameters/rowFilter.equipment.locationId",- },- {- $ref: "#/parameters/rowFilter.equipment.workCellId",- },- {- $ref: "#/parameters/rowFilter.equipment.active",- },- {- $ref: "#/parameters/rowFilter.equipment.activeDate",- },- {- $ref: "#/parameters/rowFilter.equipment.companyId",- },- {- $ref: "#/parameters/rowFilter.equipment.createdBy",- },- {- $ref: "#/parameters/rowFilter.equipment.createdAt",- },- {- $ref: "#/parameters/rowFilter.equipment.updatedBy",- },- {- $ref: "#/parameters/rowFilter.equipment.updatedAt",- },- {- $ref: "#/parameters/rowFilter.equipment.customFields",- },- {- $ref: "#/parameters/rowFilter.equipment.equipmentId",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["equipment"],+ tags: ["groups_recursive"],},- patch: {+ },+ "/purchaseInvoices": {+ get: {parameters: [{- $ref: "#/parameters/rowFilter.equipment.id",- },- {- $ref: "#/parameters/rowFilter.equipment.name",- },- {- $ref: "#/parameters/rowFilter.equipment.description",- },- {- $ref: "#/parameters/rowFilter.equipment.equipmentTypeId",+ $ref: "#/parameters/rowFilter.purchaseInvoices.id",},{- $ref: "#/parameters/rowFilter.equipment.operatorsRequired",+ $ref: "#/parameters/rowFilter.purchaseInvoices.invoiceId",},{- $ref: "#/parameters/rowFilter.equipment.setupHours",+ $ref: "#/parameters/rowFilter.purchaseInvoices.supplierId",},{- $ref: "#/parameters/rowFilter.equipment.locationId",+ $ref: "#/parameters/rowFilter.purchaseInvoices.supplierReference",},{- $ref: "#/parameters/rowFilter.equipment.workCellId",+ $ref: "#/parameters/rowFilter.purchaseInvoices.invoiceSupplierId",},{- $ref: "#/parameters/rowFilter.equipment.active",+ $ref: "#/parameters/rowFilter.purchaseInvoices.postingDate",},{- $ref: "#/parameters/rowFilter.equipment.activeDate",+ $ref: "#/parameters/rowFilter.purchaseInvoices.dateIssued",},{- $ref: "#/parameters/rowFilter.equipment.companyId",+ $ref: "#/parameters/rowFilter.purchaseInvoices.dateDue",},{- $ref: "#/parameters/rowFilter.equipment.createdBy",+ $ref: "#/parameters/rowFilter.purchaseInvoices.datePaid",},{- $ref: "#/parameters/rowFilter.equipment.createdAt",+ $ref: "#/parameters/rowFilter.purchaseInvoices.paymentTermId",},{- $ref: "#/parameters/rowFilter.equipment.updatedBy",+ $ref: "#/parameters/rowFilter.purchaseInvoices.currencyCode",},{- $ref: "#/parameters/rowFilter.equipment.updatedAt",+ $ref: "#/parameters/rowFilter.purchaseInvoices.exchangeRate",},{- $ref: "#/parameters/rowFilter.equipment.customFields",+ $ref: "#/parameters/rowFilter.purchaseInvoices.subtotal",},{- $ref: "#/parameters/rowFilter.equipment.equipmentId",+ $ref: "#/parameters/rowFilter.purchaseInvoices.totalDiscount",},{- $ref: "#/parameters/body.equipment",+ $ref: "#/parameters/rowFilter.purchaseInvoices.totalAmount",},{- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["equipment"],- },- },- "/groups_recursive": {- get: {- parameters: [- {- $ref: "#/parameters/rowFilter.groups_recursive.groupId",+ $ref: "#/parameters/rowFilter.purchaseInvoices.totalTax",},{- $ref: "#/parameters/rowFilter.groups_recursive.name",+ $ref: "#/parameters/rowFilter.purchaseInvoices.balance",},{- $ref: "#/parameters/rowFilter.groups_recursive.companyId",+ $ref: "#/parameters/rowFilter.purchaseInvoices.assignee",},{- $ref: "#/parameters/rowFilter.groups_recursive.parentId",+ $ref: "#/parameters/rowFilter.purchaseInvoices.createdBy",},{- $ref: "#/parameters/rowFilter.groups_recursive.isIdentityGroup",+ $ref: "#/parameters/rowFilter.purchaseInvoices.createdAt",},{- $ref: "#/parameters/rowFilter.groups_recursive.isEmployeeTypeGroup",+ $ref: "#/parameters/rowFilter.purchaseInvoices.updatedBy",},{- $ref: "#/parameters/rowFilter.groups_recursive.isCustomerOrgGroup",+ $ref: "#/parameters/rowFilter.purchaseInvoices.updatedAt",},{- $ref: "#/parameters/rowFilter.groups_recursive.isCustomerTypeGroup",+ $ref: "#/parameters/rowFilter.purchaseInvoices.customFields",},{- $ref: "#/parameters/rowFilter.groups_recursive.isSupplierOrgGroup",+ $ref: "#/parameters/rowFilter.purchaseInvoices.companyId",},{- $ref: "#/parameters/rowFilter.groups_recursive.isSupplierTypeGroup",+ $ref: "#/parameters/rowFilter.purchaseInvoices.status",},{- $ref: "#/parameters/rowFilter.groups_recursive.user",+ $ref: "#/parameters/rowFilter.purchaseInvoices.paymentTermName",},{$ref: "#/parameters/select",@@ -19527,7 +19617,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/groups_recursive",+ $ref: "#/definitions/purchaseInvoices",},type: "array",},@@ -19536,149 +19626,29 @@ export default {description: "Partial Content",},},- tags: ["groups_recursive"],+ tags: ["purchaseInvoices"],},},- "/purchaseInvoices": {+ "/customerContact": {get: {parameters: [{- $ref: "#/parameters/rowFilter.purchaseInvoices.id",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.invoiceId",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.supplierId",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.supplierReference",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.invoiceSupplierId",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.postingDate",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.dateIssued",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.dateDue",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.datePaid",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.paymentTermId",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.currencyCode",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.exchangeRate",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.subtotal",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.totalDiscount",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.totalAmount",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.totalTax",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.balance",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.assignee",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.createdBy",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.createdAt",- },- {- $ref: "#/parameters/rowFilter.purchaseInvoices.updatedBy",+ $ref: "#/parameters/rowFilter.customerContact.id",},{- $ref: "#/parameters/rowFilter.purchaseInvoices.updatedAt",+ $ref: "#/parameters/rowFilter.customerContact.customerId",},{- $ref: "#/parameters/rowFilter.purchaseInvoices.customFields",+ $ref: "#/parameters/rowFilter.customerContact.contactId",},{- $ref: "#/parameters/rowFilter.purchaseInvoices.companyId",+ $ref: "#/parameters/rowFilter.customerContact.customerLocationId",},{- $ref: "#/parameters/rowFilter.purchaseInvoices.status",+ $ref: "#/parameters/rowFilter.customerContact.userId",},{- $ref: "#/parameters/rowFilter.purchaseInvoices.paymentTermName",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/order",- },- {- $ref: "#/parameters/range",- },- {- $ref: "#/parameters/rangeUnit",- },- {- $ref: "#/parameters/offset",- },- {- $ref: "#/parameters/limit",- },- {- $ref: "#/parameters/preferCount",- },- ],- responses: {- "200": {- description: "OK",- schema: {- items: {- $ref: "#/definitions/purchaseInvoices",- },- type: "array",- },- },- "206": {- description: "Partial Content",- },- },- tags: ["purchaseInvoices"],- },- },- "/customerContact": {- get: {- parameters: [- {- $ref: "#/parameters/rowFilter.customerContact.id",- },- {- $ref: "#/parameters/rowFilter.customerContact.customerId",- },- {- $ref: "#/parameters/rowFilter.customerContact.contactId",- },- {- $ref: "#/parameters/rowFilter.customerContact.customerLocationId",- },- {- $ref: "#/parameters/rowFilter.customerContact.userId",- },- {- $ref: "#/parameters/rowFilter.customerContact.customFields",+ $ref: "#/parameters/rowFilter.customerContact.customFields",},{$ref: "#/parameters/select",@@ -20425,220 +20395,211 @@ export default {$ref: "#/parameters/rowFilter.employeeJob.departmentId",},{- $ref: "#/parameters/rowFilter.employeeJob.workCellId",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/order",- },- {- $ref: "#/parameters/range",- },- {- $ref: "#/parameters/rangeUnit",- },- {- $ref: "#/parameters/offset",- },- {- $ref: "#/parameters/limit",- },- {- $ref: "#/parameters/preferCount",- },- ],- responses: {- "200": {- description: "OK",- schema: {- items: {- $ref: "#/definitions/employeeJob",- },- type: "array",- },- },- "206": {- description: "Partial Content",- },- },- tags: ["employeeJob"],- },- post: {- parameters: [- {- $ref: "#/parameters/body.employeeJob",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/preferPost",- },- ],- responses: {- "201": {- description: "Created",- },- },- tags: ["employeeJob"],- },- delete: {- parameters: [- {- $ref: "#/parameters/rowFilter.employeeJob.id",- },- {- $ref: "#/parameters/rowFilter.employeeJob.locationId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.shiftId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.managerId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.title",- },- {- $ref: "#/parameters/rowFilter.employeeJob.startDate",- },- {- $ref: "#/parameters/rowFilter.employeeJob.companyId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.updatedAt",- },- {- $ref: "#/parameters/rowFilter.employeeJob.updatedBy",- },- {- $ref: "#/parameters/rowFilter.employeeJob.customFields",- },- {- $ref: "#/parameters/rowFilter.employeeJob.departmentId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.workCellId",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["employeeJob"],- },- patch: {- parameters: [- {- $ref: "#/parameters/rowFilter.employeeJob.id",- },- {- $ref: "#/parameters/rowFilter.employeeJob.locationId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.shiftId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.managerId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.title",- },- {- $ref: "#/parameters/rowFilter.employeeJob.startDate",- },- {- $ref: "#/parameters/rowFilter.employeeJob.companyId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.updatedAt",- },- {- $ref: "#/parameters/rowFilter.employeeJob.updatedBy",- },- {- $ref: "#/parameters/rowFilter.employeeJob.customFields",- },- {- $ref: "#/parameters/rowFilter.employeeJob.departmentId",- },- {- $ref: "#/parameters/rowFilter.employeeJob.workCellId",- },- {- $ref: "#/parameters/body.employeeJob",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["employeeJob"],- },- },- "/account": {- get: {- parameters: [- {- $ref: "#/parameters/rowFilter.account.id",- },- {- $ref: "#/parameters/rowFilter.account.number",- },- {- $ref: "#/parameters/rowFilter.account.name",- },- {- $ref: "#/parameters/rowFilter.account.type",- },- {- $ref: "#/parameters/rowFilter.account.class",- },- {- $ref: "#/parameters/rowFilter.account.accountCategoryId",- },- {- $ref: "#/parameters/rowFilter.account.accountSubcategoryId",- },- {- $ref: "#/parameters/rowFilter.account.incomeBalance",- },- {- $ref: "#/parameters/rowFilter.account.consolidatedRate",- },- {- $ref: "#/parameters/rowFilter.account.directPosting",- },- {- $ref: "#/parameters/rowFilter.account.active",- },- {- $ref: "#/parameters/rowFilter.account.companyId",- },- {- $ref: "#/parameters/rowFilter.account.createdBy",- },- {- $ref: "#/parameters/rowFilter.account.createdAt",- },- {- $ref: "#/parameters/rowFilter.account.updatedBy",- },- {- $ref: "#/parameters/rowFilter.account.updatedAt",- },- {- $ref: "#/parameters/rowFilter.account.customFields",+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/order",+ },+ {+ $ref: "#/parameters/range",+ },+ {+ $ref: "#/parameters/rangeUnit",+ },+ {+ $ref: "#/parameters/offset",+ },+ {+ $ref: "#/parameters/limit",+ },+ {+ $ref: "#/parameters/preferCount",+ },+ ],+ responses: {+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/employeeJob",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["employeeJob"],+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.employeeJob",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["employeeJob"],+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.employeeJob.id",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.shiftId",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.managerId",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.title",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.startDate",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.departmentId",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["employeeJob"],+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.employeeJob.id",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.shiftId",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.managerId",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.title",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.startDate",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.employeeJob.departmentId",+ },+ {+ $ref: "#/parameters/body.employeeJob",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["employeeJob"],+ },+ },+ "/account": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.account.id",+ },+ {+ $ref: "#/parameters/rowFilter.account.number",+ },+ {+ $ref: "#/parameters/rowFilter.account.name",+ },+ {+ $ref: "#/parameters/rowFilter.account.type",+ },+ {+ $ref: "#/parameters/rowFilter.account.class",+ },+ {+ $ref: "#/parameters/rowFilter.account.accountCategoryId",+ },+ {+ $ref: "#/parameters/rowFilter.account.accountSubcategoryId",+ },+ {+ $ref: "#/parameters/rowFilter.account.incomeBalance",+ },+ {+ $ref: "#/parameters/rowFilter.account.consolidatedRate",+ },+ {+ $ref: "#/parameters/rowFilter.account.directPosting",+ },+ {+ $ref: "#/parameters/rowFilter.account.active",+ },+ {+ $ref: "#/parameters/rowFilter.account.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.account.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.account.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.account.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.account.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.account.customFields",},{$ref: "#/parameters/select",@@ -20973,242 +20934,149 @@ export default {tags: ["companyIntegration"],},},- "/crew": {+ "/salesRfqLines": {get: {parameters: [{- $ref: "#/parameters/rowFilter.crew.id",- },- {- $ref: "#/parameters/rowFilter.crew.name",- },- {- $ref: "#/parameters/rowFilter.crew.description",- },- {- $ref: "#/parameters/rowFilter.crew.crewLeaderId",- },- {- $ref: "#/parameters/rowFilter.crew.groupId",- },- {- $ref: "#/parameters/rowFilter.crew.workCellId",- },- {- $ref: "#/parameters/rowFilter.crew.companyId",- },- {- $ref: "#/parameters/rowFilter.crew.createdBy",- },- {- $ref: "#/parameters/rowFilter.crew.createdAt",- },- {- $ref: "#/parameters/rowFilter.crew.updatedBy",- },- {- $ref: "#/parameters/rowFilter.crew.updatedAt",- },- {- $ref: "#/parameters/select",+ $ref: "#/parameters/rowFilter.salesRfqLines.id",},{- $ref: "#/parameters/order",+ $ref: "#/parameters/rowFilter.salesRfqLines.salesRfqId",},{- $ref: "#/parameters/range",+ $ref: "#/parameters/rowFilter.salesRfqLines.itemId",},{- $ref: "#/parameters/rangeUnit",+ $ref: "#/parameters/rowFilter.salesRfqLines.description",},{- $ref: "#/parameters/offset",+ $ref: "#/parameters/rowFilter.salesRfqLines.quantity",},{- $ref: "#/parameters/limit",+ $ref: "#/parameters/rowFilter.salesRfqLines.unitOfMeasureCode",},{- $ref: "#/parameters/preferCount",- },- ],- responses: {- "200": {- description: "OK",- schema: {- items: {- $ref: "#/definitions/crew",- },- type: "array",- },- },- "206": {- description: "Partial Content",+ $ref: "#/parameters/rowFilter.salesRfqLines.order",},- },- tags: ["crew"],- },- post: {- parameters: [{- $ref: "#/parameters/body.crew",+ $ref: "#/parameters/rowFilter.salesRfqLines.internalNotes",},{- $ref: "#/parameters/select",+ $ref: "#/parameters/rowFilter.salesRfqLines.externalNotes",},{- $ref: "#/parameters/preferPost",- },- ],- responses: {- "201": {- description: "Created",+ $ref: "#/parameters/rowFilter.salesRfqLines.companyId",},- },- tags: ["crew"],- },- delete: {- parameters: [{- $ref: "#/parameters/rowFilter.crew.id",+ $ref: "#/parameters/rowFilter.salesRfqLines.customFields",},{- $ref: "#/parameters/rowFilter.crew.name",+ $ref: "#/parameters/rowFilter.salesRfqLines.createdAt",},{- $ref: "#/parameters/rowFilter.crew.description",+ $ref: "#/parameters/rowFilter.salesRfqLines.createdBy",},{- $ref: "#/parameters/rowFilter.crew.crewLeaderId",+ $ref: "#/parameters/rowFilter.salesRfqLines.updatedAt",},{- $ref: "#/parameters/rowFilter.crew.groupId",+ $ref: "#/parameters/rowFilter.salesRfqLines.updatedBy",},{- $ref: "#/parameters/rowFilter.crew.workCellId",+ $ref: "#/parameters/rowFilter.salesRfqLines.modelUploadId",},{- $ref: "#/parameters/rowFilter.crew.companyId",+ $ref: "#/parameters/rowFilter.salesRfqLines.customerPartId",},{- $ref: "#/parameters/rowFilter.crew.createdBy",+ $ref: "#/parameters/rowFilter.salesRfqLines.customerPartRevision",},{- $ref: "#/parameters/rowFilter.crew.createdAt",+ $ref: "#/parameters/rowFilter.salesRfqLines.modelId",},{- $ref: "#/parameters/rowFilter.crew.updatedBy",+ $ref: "#/parameters/rowFilter.salesRfqLines.autodeskUrn",},{- $ref: "#/parameters/rowFilter.crew.updatedAt",+ $ref: "#/parameters/rowFilter.salesRfqLines.modelPath",},{- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",+ $ref: "#/parameters/rowFilter.salesRfqLines.thumbnailPath",},- },- tags: ["crew"],- },- patch: {- parameters: [{- $ref: "#/parameters/rowFilter.crew.id",+ $ref: "#/parameters/rowFilter.salesRfqLines.modelName",},{- $ref: "#/parameters/rowFilter.crew.name",+ $ref: "#/parameters/rowFilter.salesRfqLines.modelSize",},{- $ref: "#/parameters/rowFilter.crew.description",+ $ref: "#/parameters/rowFilter.salesRfqLines.itemName",},{- $ref: "#/parameters/rowFilter.crew.crewLeaderId",+ $ref: "#/parameters/rowFilter.salesRfqLines.methodType",},{- $ref: "#/parameters/rowFilter.crew.groupId",+ $ref: "#/parameters/rowFilter.salesRfqLines.itemReadableId",},{- $ref: "#/parameters/rowFilter.crew.workCellId",+ $ref: "#/parameters/rowFilter.salesRfqLines.itemType",},{- $ref: "#/parameters/rowFilter.crew.companyId",+ $ref: "#/parameters/select",},{- $ref: "#/parameters/rowFilter.crew.createdBy",+ $ref: "#/parameters/order",},{- $ref: "#/parameters/rowFilter.crew.createdAt",+ $ref: "#/parameters/range",},{- $ref: "#/parameters/rowFilter.crew.updatedBy",+ $ref: "#/parameters/rangeUnit",},{- $ref: "#/parameters/rowFilter.crew.updatedAt",+ $ref: "#/parameters/offset",},{- $ref: "#/parameters/body.crew",+ $ref: "#/parameters/limit",},{- $ref: "#/parameters/preferReturn",+ $ref: "#/parameters/preferCount",},],responses: {- "204": {- description: "No Content",+ "200": {+ description: "OK",+ schema: {+ items: {+ $ref: "#/definitions/salesRfqLines",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",},},- tags: ["crew"],+ tags: ["salesRfqLines"],},},- "/workCell": {+ "/documentTransaction": {get: {parameters: [{- $ref: "#/parameters/rowFilter.workCell.id",- },- {- $ref: "#/parameters/rowFilter.workCell.name",- },- {- $ref: "#/parameters/rowFilter.workCell.description",- },- {- $ref: "#/parameters/rowFilter.workCell.defaultStandardFactor",- },- {- $ref: "#/parameters/rowFilter.workCell.departmentId",- },- {- $ref: "#/parameters/rowFilter.workCell.locationId",- },- {- $ref: "#/parameters/rowFilter.workCell.workCellTypeId",- },- {- $ref: "#/parameters/rowFilter.workCell.active",- },- {- $ref: "#/parameters/rowFilter.workCell.companyId",- },- {- $ref: "#/parameters/rowFilter.workCell.activeDate",- },- {- $ref: "#/parameters/rowFilter.workCell.createdBy",+ $ref: "#/parameters/rowFilter.documentTransaction.id",},{- $ref: "#/parameters/rowFilter.workCell.createdAt",+ $ref: "#/parameters/rowFilter.documentTransaction.documentId",},{- $ref: "#/parameters/rowFilter.workCell.updatedBy",+ $ref: "#/parameters/rowFilter.documentTransaction.type",},{- $ref: "#/parameters/rowFilter.workCell.updatedAt",+ $ref: "#/parameters/rowFilter.documentTransaction.userId",},{- $ref: "#/parameters/rowFilter.workCell.customFields",+ $ref: "#/parameters/rowFilter.documentTransaction.createdAt",},{$ref: "#/parameters/select",@@ -21237,7 +21105,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/workCell",+ $ref: "#/definitions/documentTransaction",},type: "array",},@@ -21246,12 +21114,12 @@ export default {description: "Partial Content",},},- tags: ["workCell"],+ tags: ["documentTransaction"],},post: {parameters: [{- $ref: "#/parameters/body.workCell",+ $ref: "#/parameters/body.documentTransaction",},{$ref: "#/parameters/select",@@ -21265,54 +21133,24 @@ export default {description: "Created",},},- tags: ["workCell"],+ tags: ["documentTransaction"],},delete: {parameters: [{- $ref: "#/parameters/rowFilter.workCell.id",- },- {- $ref: "#/parameters/rowFilter.workCell.name",- },- {- $ref: "#/parameters/rowFilter.workCell.description",- },- {- $ref: "#/parameters/rowFilter.workCell.defaultStandardFactor",- },- {- $ref: "#/parameters/rowFilter.workCell.departmentId",- },- {- $ref: "#/parameters/rowFilter.workCell.locationId",- },- {- $ref: "#/parameters/rowFilter.workCell.workCellTypeId",- },- {- $ref: "#/parameters/rowFilter.workCell.active",- },- {- $ref: "#/parameters/rowFilter.workCell.companyId",- },- {- $ref: "#/parameters/rowFilter.workCell.activeDate",- },- {- $ref: "#/parameters/rowFilter.workCell.createdBy",+ $ref: "#/parameters/rowFilter.documentTransaction.id",},{- $ref: "#/parameters/rowFilter.workCell.createdAt",+ $ref: "#/parameters/rowFilter.documentTransaction.documentId",},{- $ref: "#/parameters/rowFilter.workCell.updatedBy",+ $ref: "#/parameters/rowFilter.documentTransaction.type",},{- $ref: "#/parameters/rowFilter.workCell.updatedAt",+ $ref: "#/parameters/rowFilter.documentTransaction.userId",},{- $ref: "#/parameters/rowFilter.workCell.customFields",+ $ref: "#/parameters/rowFilter.documentTransaction.createdAt",},{$ref: "#/parameters/preferReturn",@@ -21323,57 +21161,27 @@ export default {description: "No Content",},},- tags: ["workCell"],+ tags: ["documentTransaction"],},patch: {parameters: [{- $ref: "#/parameters/rowFilter.workCell.id",- },- {- $ref: "#/parameters/rowFilter.workCell.name",- },- {- $ref: "#/parameters/rowFilter.workCell.description",- },- {- $ref: "#/parameters/rowFilter.workCell.defaultStandardFactor",- },- {- $ref: "#/parameters/rowFilter.workCell.departmentId",- },- {- $ref: "#/parameters/rowFilter.workCell.locationId",- },- {- $ref: "#/parameters/rowFilter.workCell.workCellTypeId",- },- {- $ref: "#/parameters/rowFilter.workCell.active",- },- {- $ref: "#/parameters/rowFilter.workCell.companyId",- },- {- $ref: "#/parameters/rowFilter.workCell.activeDate",- },- {- $ref: "#/parameters/rowFilter.workCell.createdBy",+ $ref: "#/parameters/rowFilter.documentTransaction.id",},{- $ref: "#/parameters/rowFilter.workCell.createdAt",+ $ref: "#/parameters/rowFilter.documentTransaction.documentId",},{- $ref: "#/parameters/rowFilter.workCell.updatedBy",+ $ref: "#/parameters/rowFilter.documentTransaction.type",},{- $ref: "#/parameters/rowFilter.workCell.updatedAt",+ $ref: "#/parameters/rowFilter.documentTransaction.userId",},{- $ref: "#/parameters/rowFilter.workCell.customFields",+ $ref: "#/parameters/rowFilter.documentTransaction.createdAt",},{- $ref: "#/parameters/body.workCell",+ $ref: "#/parameters/body.documentTransaction",},{$ref: "#/parameters/preferReturn",@@ -21384,95 +21192,35 @@ export default {description: "No Content",},},- tags: ["workCell"],+ tags: ["documentTransaction"],},},- "/salesRfqLines": {+ "/materialSubstance": {get: {parameters: [{- $ref: "#/parameters/rowFilter.salesRfqLines.id",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.salesRfqId",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.itemId",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.description",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.quantity",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.unitOfMeasureCode",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.order",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.internalNotes",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.externalNotes",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.companyId",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.customFields",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.createdAt",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.createdBy",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.updatedAt",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.updatedBy",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.modelUploadId",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.customerPartId",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.customerPartRevision",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.modelId",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.autodeskUrn",- },- {- $ref: "#/parameters/rowFilter.salesRfqLines.modelPath",+ $ref: "#/parameters/rowFilter.materialSubstance.id",},{- $ref: "#/parameters/rowFilter.salesRfqLines.thumbnailPath",+ $ref: "#/parameters/rowFilter.materialSubstance.name",},{- $ref: "#/parameters/rowFilter.salesRfqLines.modelName",+ $ref: "#/parameters/rowFilter.materialSubstance.companyId",},{- $ref: "#/parameters/rowFilter.salesRfqLines.modelSize",+ $ref: "#/parameters/rowFilter.materialSubstance.customFields",},{- $ref: "#/parameters/rowFilter.salesRfqLines.itemName",+ $ref: "#/parameters/rowFilter.materialSubstance.createdBy",},{- $ref: "#/parameters/rowFilter.salesRfqLines.methodType",+ $ref: "#/parameters/rowFilter.materialSubstance.createdAt",},{- $ref: "#/parameters/rowFilter.salesRfqLines.itemReadableId",+ $ref: "#/parameters/rowFilter.materialSubstance.updatedBy",},{- $ref: "#/parameters/rowFilter.salesRfqLines.itemType",+ $ref: "#/parameters/rowFilter.materialSubstance.updatedAt",},{$ref: "#/parameters/select",@@ -21501,7 +21249,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/salesRfqLines",+ $ref: "#/definitions/materialSubstance",},type: "array",},@@ -21510,100 +21258,52 @@ export default {description: "Partial Content",},},- tags: ["salesRfqLines"],+ tags: ["materialSubstance"],},- },- "/documentTransaction": {- get: {+ post: {parameters: [{- $ref: "#/parameters/rowFilter.documentTransaction.id",- },- {- $ref: "#/parameters/rowFilter.documentTransaction.documentId",- },- {- $ref: "#/parameters/rowFilter.documentTransaction.type",- },- {- $ref: "#/parameters/rowFilter.documentTransaction.userId",- },- {- $ref: "#/parameters/rowFilter.documentTransaction.createdAt",+ $ref: "#/parameters/body.materialSubstance",},{$ref: "#/parameters/select",},{- $ref: "#/parameters/order",- },- {- $ref: "#/parameters/range",- },- {- $ref: "#/parameters/rangeUnit",- },- {- $ref: "#/parameters/offset",- },- {- $ref: "#/parameters/limit",- },- {- $ref: "#/parameters/preferCount",+ $ref: "#/parameters/preferPost",},],responses: {- "200": {- description: "OK",- schema: {- items: {- $ref: "#/definitions/documentTransaction",- },- type: "array",- },- },- "206": {- description: "Partial Content",+ "201": {+ description: "Created",},},- tags: ["documentTransaction"],+ tags: ["materialSubstance"],},- post: {+ delete: {parameters: [{- $ref: "#/parameters/body.documentTransaction",+ $ref: "#/parameters/rowFilter.materialSubstance.id",},{- $ref: "#/parameters/select",+ $ref: "#/parameters/rowFilter.materialSubstance.name",},{- $ref: "#/parameters/preferPost",- },- ],- responses: {- "201": {- description: "Created",+ $ref: "#/parameters/rowFilter.materialSubstance.companyId",},- },- tags: ["documentTransaction"],- },- delete: {- parameters: [{- $ref: "#/parameters/rowFilter.documentTransaction.id",+ $ref: "#/parameters/rowFilter.materialSubstance.customFields",},{- $ref: "#/parameters/rowFilter.documentTransaction.documentId",+ $ref: "#/parameters/rowFilter.materialSubstance.createdBy",},{- $ref: "#/parameters/rowFilter.documentTransaction.type",+ $ref: "#/parameters/rowFilter.materialSubstance.createdAt",},{- $ref: "#/parameters/rowFilter.documentTransaction.userId",+ $ref: "#/parameters/rowFilter.materialSubstance.updatedBy",},{- $ref: "#/parameters/rowFilter.documentTransaction.createdAt",+ $ref: "#/parameters/rowFilter.materialSubstance.updatedAt",},{$ref: "#/parameters/preferReturn",@@ -21614,27 +21314,36 @@ export default {description: "No Content",},},- tags: ["documentTransaction"],+ tags: ["materialSubstance"],},patch: {parameters: [{- $ref: "#/parameters/rowFilter.documentTransaction.id",+ $ref: "#/parameters/rowFilter.materialSubstance.id",},{- $ref: "#/parameters/rowFilter.documentTransaction.documentId",+ $ref: "#/parameters/rowFilter.materialSubstance.name",},{- $ref: "#/parameters/rowFilter.documentTransaction.type",+ $ref: "#/parameters/rowFilter.materialSubstance.companyId",},{- $ref: "#/parameters/rowFilter.documentTransaction.userId",+ $ref: "#/parameters/rowFilter.materialSubstance.customFields",},{- $ref: "#/parameters/rowFilter.documentTransaction.createdAt",+ $ref: "#/parameters/rowFilter.materialSubstance.createdBy",},{- $ref: "#/parameters/body.documentTransaction",+ $ref: "#/parameters/rowFilter.materialSubstance.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.materialSubstance.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.materialSubstance.updatedAt",+ },+ {+ $ref: "#/parameters/body.materialSubstance",},{$ref: "#/parameters/preferReturn",@@ -21645,35 +21354,32 @@ export default {description: "No Content",},},- tags: ["documentTransaction"],+ tags: ["materialSubstance"],},},- "/materialSubstance": {+ "/workCenterProcess": {get: {parameters: [{- $ref: "#/parameters/rowFilter.materialSubstance.id",- },- {- $ref: "#/parameters/rowFilter.materialSubstance.name",+ $ref: "#/parameters/rowFilter.workCenterProcess.workCenterId",},{- $ref: "#/parameters/rowFilter.materialSubstance.companyId",+ $ref: "#/parameters/rowFilter.workCenterProcess.processId",},{- $ref: "#/parameters/rowFilter.materialSubstance.customFields",+ $ref: "#/parameters/rowFilter.workCenterProcess.companyId",},{- $ref: "#/parameters/rowFilter.materialSubstance.createdBy",+ $ref: "#/parameters/rowFilter.workCenterProcess.createdBy",},{- $ref: "#/parameters/rowFilter.materialSubstance.createdAt",+ $ref: "#/parameters/rowFilter.workCenterProcess.createdAt",},{- $ref: "#/parameters/rowFilter.materialSubstance.updatedBy",+ $ref: "#/parameters/rowFilter.workCenterProcess.updatedBy",},{- $ref: "#/parameters/rowFilter.materialSubstance.updatedAt",+ $ref: "#/parameters/rowFilter.workCenterProcess.updatedAt",},{$ref: "#/parameters/select",@@ -21702,7 +21408,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/materialSubstance",+ $ref: "#/definitions/workCenterProcess",},type: "array",},@@ -21711,12 +21417,12 @@ export default {description: "Partial Content",},},- tags: ["materialSubstance"],+ tags: ["workCenterProcess"],},post: {parameters: [{- $ref: "#/parameters/body.materialSubstance",+ $ref: "#/parameters/body.workCenterProcess",},{$ref: "#/parameters/select",@@ -21730,33 +21436,30 @@ export default {description: "Created",},},- tags: ["materialSubstance"],+ tags: ["workCenterProcess"],},delete: {parameters: [{- $ref: "#/parameters/rowFilter.materialSubstance.id",+ $ref: "#/parameters/rowFilter.workCenterProcess.workCenterId",},{- $ref: "#/parameters/rowFilter.materialSubstance.name",+ $ref: "#/parameters/rowFilter.workCenterProcess.processId",},{- $ref: "#/parameters/rowFilter.materialSubstance.companyId",- },- {- $ref: "#/parameters/rowFilter.materialSubstance.customFields",+ $ref: "#/parameters/rowFilter.workCenterProcess.companyId",},{- $ref: "#/parameters/rowFilter.materialSubstance.createdBy",+ $ref: "#/parameters/rowFilter.workCenterProcess.createdBy",},{- $ref: "#/parameters/rowFilter.materialSubstance.createdAt",+ $ref: "#/parameters/rowFilter.workCenterProcess.createdAt",},{- $ref: "#/parameters/rowFilter.materialSubstance.updatedBy",+ $ref: "#/parameters/rowFilter.workCenterProcess.updatedBy",},{- $ref: "#/parameters/rowFilter.materialSubstance.updatedAt",+ $ref: "#/parameters/rowFilter.workCenterProcess.updatedAt",},{$ref: "#/parameters/preferReturn",@@ -21767,36 +21470,33 @@ export default {description: "No Content",},},- tags: ["materialSubstance"],+ tags: ["workCenterProcess"],},patch: {parameters: [{- $ref: "#/parameters/rowFilter.materialSubstance.id",- },- {- $ref: "#/parameters/rowFilter.materialSubstance.name",+ $ref: "#/parameters/rowFilter.workCenterProcess.workCenterId",},{- $ref: "#/parameters/rowFilter.materialSubstance.companyId",+ $ref: "#/parameters/rowFilter.workCenterProcess.processId",},{- $ref: "#/parameters/rowFilter.materialSubstance.customFields",+ $ref: "#/parameters/rowFilter.workCenterProcess.companyId",},{- $ref: "#/parameters/rowFilter.materialSubstance.createdBy",+ $ref: "#/parameters/rowFilter.workCenterProcess.createdBy",},{- $ref: "#/parameters/rowFilter.materialSubstance.createdAt",+ $ref: "#/parameters/rowFilter.workCenterProcess.createdAt",},{- $ref: "#/parameters/rowFilter.materialSubstance.updatedBy",+ $ref: "#/parameters/rowFilter.workCenterProcess.updatedBy",},{- $ref: "#/parameters/rowFilter.materialSubstance.updatedAt",+ $ref: "#/parameters/rowFilter.workCenterProcess.updatedAt",},{- $ref: "#/parameters/body.materialSubstance",+ $ref: "#/parameters/body.workCenterProcess",},{$ref: "#/parameters/preferReturn",@@ -21807,7 +21507,7 @@ export default {description: "No Content",},},- tags: ["materialSubstance"],+ tags: ["workCenterProcess"],},},"/itemQuantities": {@@ -22560,24 +22260,9 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperation.order",},- {- $ref: "#/parameters/rowFilter.quoteOperation.workCellTypeId",- },- {- $ref: "#/parameters/rowFilter.quoteOperation.equipmentTypeId",- },{$ref: "#/parameters/rowFilter.quoteOperation.description",},- {- $ref: "#/parameters/rowFilter.quoteOperation.setupHours",- },- {- $ref: "#/parameters/rowFilter.quoteOperation.standardFactor",- },- {- $ref: "#/parameters/rowFilter.quoteOperation.productionStandard",- },{$ref: "#/parameters/rowFilter.quoteOperation.operationOrder",},@@ -22608,6 +22293,30 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperation.customFields",},+ {+ $ref: "#/parameters/rowFilter.quoteOperation.processId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.workCenterId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.setupTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.setupUnit",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.laborTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.laborUnit",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.machineTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.machineUnit",+ },{$ref: "#/parameters/select",},@@ -22682,24 +22391,9 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperation.order",},- {- $ref: "#/parameters/rowFilter.quoteOperation.workCellTypeId",- },- {- $ref: "#/parameters/rowFilter.quoteOperation.equipmentTypeId",- },{$ref: "#/parameters/rowFilter.quoteOperation.description",},- {- $ref: "#/parameters/rowFilter.quoteOperation.setupHours",- },- {- $ref: "#/parameters/rowFilter.quoteOperation.standardFactor",- },- {- $ref: "#/parameters/rowFilter.quoteOperation.productionStandard",- },{$ref: "#/parameters/rowFilter.quoteOperation.operationOrder",},@@ -22730,6 +22424,30 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperation.customFields",},+ {+ $ref: "#/parameters/rowFilter.quoteOperation.processId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.workCenterId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.setupTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.setupUnit",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.laborTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.laborUnit",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.machineTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.machineUnit",+ },{$ref: "#/parameters/preferReturn",},@@ -22758,24 +22476,9 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperation.order",},- {- $ref: "#/parameters/rowFilter.quoteOperation.workCellTypeId",- },- {- $ref: "#/parameters/rowFilter.quoteOperation.equipmentTypeId",- },{$ref: "#/parameters/rowFilter.quoteOperation.description",},- {- $ref: "#/parameters/rowFilter.quoteOperation.setupHours",- },- {- $ref: "#/parameters/rowFilter.quoteOperation.standardFactor",- },- {- $ref: "#/parameters/rowFilter.quoteOperation.productionStandard",- },{$ref: "#/parameters/rowFilter.quoteOperation.operationOrder",},@@ -22806,6 +22509,30 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperation.customFields",},+ {+ $ref: "#/parameters/rowFilter.quoteOperation.processId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.workCenterId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.setupTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.setupUnit",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.laborTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.laborUnit",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.machineTime",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperation.machineUnit",+ },{$ref: "#/parameters/body.quoteOperation",},@@ -32220,35 +31947,6 @@ export default {},type: "object",},- crewAbility: {- required: ["id", "crewId", "abilityId", "active"],- properties: {- id: {- default: "public.xid()",- description: "Note:\nThis is a Primary Key.<pk/>",- format: "text",- type: "string",- },- crewId: {- description:- "Note:\nThis is a Foreign Key to `crew.id`.<fk table='crew' column='id'/>",- format: "text",- type: "string",- },- abilityId: {- description:- "Note:\nThis is a Foreign Key to `ability.id`.<fk table='ability' column='id'/>",- format: "text",- type: "string",- },- active: {- default: true,- format: "boolean",- type: "boolean",- },- },- type: "object",- },customerType: {required: ["id",@@ -33456,6 +33154,139 @@ export default {},type: "object",},+ processes: {+ properties: {+ id: {+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },+ name: {+ format: "text",+ type: "string",+ },+ defaultStandardFactor: {+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",+ type: "string",+ },+ companyId: {+ description:+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",+ format: "text",+ type: "string",+ },+ customFields: {+ format: "jsonb",+ },+ createdBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ createdAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ updatedAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ workCenters: {+ format: "jsonb",+ },+ },+ type: "object",+ },+ process: {+ required: [+ "id",+ "name",+ "defaultStandardFactor",+ "companyId",+ "createdBy",+ "createdAt",+ ],+ properties: {+ id: {+ default: "public.xid()",+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },+ name: {+ format: "text",+ type: "string",+ },+ defaultStandardFactor: {+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",+ type: "string",+ },+ companyId: {+ description:+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",+ format: "text",+ type: "string",+ },+ customFields: {+ format: "jsonb",+ },+ createdBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ createdAt: {+ default: "now()",+ format: "timestamp with time zone",+ type: "string",+ },+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ updatedAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ },+ type: "object",+ },quoteMaterial: {required: ["id",@@ -34003,6 +33834,45 @@ export default {},type: "object",},+ quoteOperationWorkInstruction: {+ required: ["quoteOperationId", "companyId", "createdAt", "createdBy"],+ properties: {+ quoteOperationId: {+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },+ content: {+ format: "json",+ },+ companyId: {+ format: "text",+ type: "string",+ },+ createdAt: {+ default: "now()",+ format: "timestamp with time zone",+ type: "string",+ },+ createdBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ updatedAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ },+ type: "object",+ },materialForm: {required: ["id", "name", "createdBy", "createdAt"],properties: {@@ -35905,6 +35775,105 @@ export default {},type: "object",},+ workCenters: {+ properties: {+ id: {+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },+ name: {+ format: "text",+ type: "string",+ },+ description: {+ format: "text",+ type: "string",+ },+ quotingRate: {+ format: "numeric",+ type: "number",+ },+ laborRate: {+ format: "numeric",+ type: "number",+ },+ overheadRate: {+ format: "numeric",+ type: "number",+ },+ defaultStandardFactor: {+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",+ type: "string",+ },+ locationId: {+ description:+ "Note:\nThis is a Foreign Key to `location.id`.<fk table='location' column='id'/>",+ format: "text",+ type: "string",+ },+ requiredAbilityId: {+ description:+ "Note:\nThis is a Foreign Key to `ability.id`.<fk table='ability' column='id'/>",+ format: "text",+ type: "string",+ },+ active: {+ format: "boolean",+ type: "boolean",+ },+ companyId: {+ description:+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",+ format: "text",+ type: "string",+ },+ customFields: {+ format: "jsonb",+ },+ createdBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ createdAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ updatedAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ locationName: {+ format: "text",+ type: "string",+ },+ processes: {+ format: "jsonb",+ },+ },+ type: "object",+ },costLedger: {required: ["id",@@ -36384,182 +36353,7 @@ export default {},createdAt: {default: "now()",- format: "timestamp with time zone",- type: "string",- },- updatedBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- updatedAt: {- format: "timestamp with time zone",- type: "string",- },- customFields: {- format: "jsonb",- },- },- type: "object",- },- supplierLedger: {- required: [- "id",- "entryNumber",- "postingDate",- "supplierId",- "amount",- "companyId",- "createdAt",- ],- properties: {- id: {- default: "public.xid()",- description: "Note:\nThis is a Primary Key.<pk/>",- format: "text",- type: "string",- },- entryNumber: {- format: "integer",- type: "integer",- },- postingDate: {- default: "CURRENT_DATE",- format: "date",- type: "string",- },- documentType: {- enum: [- "Payment",- "Invoice",- "Credit Memo",- "Finance Charge Memo",- "Reminder",- "Refund",- ],- format: 'public."supplierLedgerDocumentType"',- type: "string",- },- documentId: {- format: "text",- type: "string",- },- externalDocumentId: {- format: "text",- type: "string",- },- supplierId: {- description:- "Note:\nThis is a Foreign Key to `supplier.id`.<fk table='supplier' column='id'/>",- format: "text",- type: "string",- },- amount: {- format: "numeric",- type: "number",- },- companyId: {- description:- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",- format: "text",- type: "string",- },- createdAt: {- default: "now()",- format: "timestamp with time zone",- type: "string",- },- },- type: "object",- },- workCellType: {- required: [- "id",- "name",- "quotingRate",- "laborRate",- "overheadRate",- "defaultStandardFactor",- "active",- "companyId",- "createdBy",- "createdAt",- ],- properties: {- id: {- default: "public.xid()",- description: "Note:\nThis is a Primary Key.<pk/>",- format: "text",- type: "string",- },- name: {- format: "text",- type: "string",- },- description: {- format: "text",- type: "string",- },- requiredAbility: {- description:- "Note:\nThis is a Foreign Key to `ability.id`.<fk table='ability' column='id'/>",- format: "text",- type: "string",- },- quotingRate: {- default: 0,- format: "numeric",- type: "number",- },- laborRate: {- default: 0,- format: "numeric",- type: "number",- },- overheadRate: {- default: 0,- format: "numeric",- type: "number",- },- defaultStandardFactor: {- default: "Total Hours",- enum: [- "Hours/Piece",- "Hours/100 Pieces",- "Hours/1000 Pieces",- "Minutes/Piece",- "Minutes/100 Pieces",- "Minutes/1000 Pieces",- "Pieces/Hour",- "Pieces/Minute",- "Seconds/Piece",- "Total Hours",- "Total Minutes",- ],- format: "public.factor",- type: "string",- },- active: {- default: true,- format: "boolean",- type: "boolean",- },- companyId: {- description:- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",- format: "text",- type: "string",- },- createdBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- createdAt: {- default: "now()",- format: "timestamp without time zone",+ format: "timestamp with time zone",type: "string",},updatedBy: {@@ -36569,7 +36363,7 @@ export default {type: "string",},updatedAt: {- format: "timestamp without time zone",+ format: "timestamp with time zone",type: "string",},customFields: {@@ -36578,6 +36372,76 @@ export default {},type: "object",},+ supplierLedger: {+ required: [+ "id",+ "entryNumber",+ "postingDate",+ "supplierId",+ "amount",+ "companyId",+ "createdAt",+ ],+ properties: {+ id: {+ default: "public.xid()",+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },+ entryNumber: {+ format: "integer",+ type: "integer",+ },+ postingDate: {+ default: "CURRENT_DATE",+ format: "date",+ type: "string",+ },+ documentType: {+ enum: [+ "Payment",+ "Invoice",+ "Credit Memo",+ "Finance Charge Memo",+ "Reminder",+ "Refund",+ ],+ format: 'public."supplierLedgerDocumentType"',+ type: "string",+ },+ documentId: {+ format: "text",+ type: "string",+ },+ externalDocumentId: {+ format: "text",+ type: "string",+ },+ supplierId: {+ description:+ "Note:\nThis is a Foreign Key to `supplier.id`.<fk table='supplier' column='id'/>",+ format: "text",+ type: "string",+ },+ amount: {+ format: "numeric",+ type: "number",+ },+ companyId: {+ description:+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",+ format: "text",+ type: "string",+ },+ createdAt: {+ default: "now()",+ format: "timestamp with time zone",+ type: "string",+ },+ },+ type: "object",+ },holidayYears: {properties: {year: {@@ -37279,6 +37143,115 @@ export default {},type: "object",},+ workCenter: {+ required: [+ "id",+ "name",+ "quotingRate",+ "laborRate",+ "defaultStandardFactor",+ "active",+ "companyId",+ "createdBy",+ "createdAt",+ ],+ properties: {+ id: {+ default: "public.xid()",+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },+ name: {+ format: "text",+ type: "string",+ },+ description: {+ format: "text",+ type: "string",+ },+ quotingRate: {+ default: 0,+ format: "numeric",+ type: "number",+ },+ laborRate: {+ default: 0,+ format: "numeric",+ type: "number",+ },+ overheadRate: {+ format: "numeric",+ type: "number",+ },+ defaultStandardFactor: {+ default: "Minutes/Piece",+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",+ type: "string",+ },+ locationId: {+ description:+ "Note:\nThis is a Foreign Key to `location.id`.<fk table='location' column='id'/>",+ format: "text",+ type: "string",+ },+ requiredAbilityId: {+ description:+ "Note:\nThis is a Foreign Key to `ability.id`.<fk table='ability' column='id'/>",+ format: "text",+ type: "string",+ },+ active: {+ default: true,+ format: "boolean",+ type: "boolean",+ },+ companyId: {+ description:+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",+ format: "text",+ type: "string",+ },+ customFields: {+ format: "jsonb",+ },+ createdBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ createdAt: {+ default: "now()",+ format: "timestamp with time zone",+ type: "string",+ },+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ updatedAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ },+ type: "object",+ },tool: {required: ["id", "approved", "companyId", "createdBy", "createdAt"],properties: {@@ -37827,14 +37800,17 @@ export default {"makeMethodId","order","operationOrder",- "workCellTypeId","description",- "setupHours",- "standardFactor",- "productionStandard","companyId","createdAt","createdBy",+ "processId",+ "setupTime",+ "setupUnit",+ "laborTime",+ "laborUnit",+ "machineTime",+ "machineUnit",],properties: {id: {@@ -37860,29 +37836,59 @@ export default {format: 'public."methodOperationOrder"',type: "string",},- workCellTypeId: {+ description: {+ format: "text",+ type: "string",+ },+ companyId: {+ description:+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",+ format: "text",+ type: "string",+ },+ createdAt: {+ default: "now()",+ format: "timestamp with time zone",+ type: "string",+ },+ createdBy: {description:- "Note:\nThis is a Foreign Key to `workCellType.id`.<fk table='workCellType' column='id'/>",+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",format: "text",type: "string",},- equipmentTypeId: {+ updatedAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ updatedBy: {description:- "Note:\nThis is a Foreign Key to `equipmentType.id`.<fk table='equipmentType' column='id'/>",+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",format: "text",type: "string",},- description: {+ customFields: {+ format: "jsonb",+ },+ processId: {+ description:+ "Note:\nThis is a Foreign Key to `process.id`.<fk table='process' column='id'/>",format: "text",type: "string",},- setupHours: {+ workCenterId: {+ description:+ "Note:\nThis is a Foreign Key to `workCenter.id`.<fk table='workCenter' column='id'/>",+ format: "text",+ type: "string",+ },+ setupTime: {default: 0,format: "numeric",type: "number",},- standardFactor: {- default: "Hours/Piece",+ setupUnit: {+ default: "Total Hours",enum: ["Hours/Piece","Hours/100 Pieces",@@ -37899,41 +37905,52 @@ export default {format: "public.factor",type: "string",},- productionStandard: {+ laborTime: {default: 0,format: "numeric",type: "number",},- companyId: {- description:- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",- format: "text",- type: "string",- },- createdAt: {- default: "now()",- format: "timestamp with time zone",- type: "string",- },- createdBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",+ laborUnit: {+ default: "Hours/Piece",+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",type: "string",},- updatedAt: {- format: "timestamp with time zone",- type: "string",+ machineTime: {+ default: 0,+ format: "numeric",+ type: "number",},- updatedBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",+ machineUnit: {+ default: "Hours/Piece",+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",type: "string",},- customFields: {- format: "jsonb",- },},type: "object",},@@ -38594,47 +38611,10 @@ export default {format: "double precision",type: "number",},- workCellTypeId: {- description:- "Note:\nThis is a Foreign Key to `workCellType.id`.<fk table='workCellType' column='id'/>",- format: "text",- type: "string",- },- equipmentTypeId: {- description:- "Note:\nThis is a Foreign Key to `equipmentType.id`.<fk table='equipmentType' column='id'/>",- format: "text",- type: "string",- },description: {format: "text",type: "string",},- setupHours: {- format: "numeric",- type: "number",- },- standardFactor: {- enum: [- "Hours/Piece",- "Hours/100 Pieces",- "Hours/1000 Pieces",- "Minutes/Piece",- "Minutes/100 Pieces",- "Minutes/1000 Pieces",- "Pieces/Hour",- "Pieces/Minute",- "Seconds/Piece",- "Total Hours",- "Total Minutes",- ],- format: "public.factor",- type: "string",- },- productionStandard: {- format: "numeric",- type: "number",- },operationOrder: {enum: ["After Previous", "With Previous"],format: 'public."methodOperationOrder"',@@ -38681,6 +38661,81 @@ export default {customFields: {format: "jsonb",},+ processId: {+ description:+ "Note:\nThis is a Foreign Key to `process.id`.<fk table='process' column='id'/>",+ format: "text",+ type: "string",+ },+ workCenterId: {+ description:+ "Note:\nThis is a Foreign Key to `workCenter.id`.<fk table='workCenter' column='id'/>",+ format: "text",+ type: "string",+ },+ setupTime: {+ format: "numeric",+ type: "number",+ },+ setupUnit: {+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",+ type: "string",+ },+ laborTime: {+ format: "numeric",+ type: "number",+ },+ laborUnit: {+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",+ type: "string",+ },+ machineTime: {+ format: "numeric",+ type: "number",+ },+ machineUnit: {+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",+ type: "string",+ },},type: "object",},@@ -38947,80 +39002,6 @@ export default {},type: "object",},- equipmentType: {- required: [- "id",- "name",- "setupHours",- "active",- "companyId",- "createdBy",- "createdAt",- ],- properties: {- id: {- default: "public.xid()",- description: "Note:\nThis is a Primary Key.<pk/>",- format: "text",- type: "string",- },- name: {- format: "text",- type: "string",- },- description: {- format: "text",- type: "string",- },- requiredAbility: {- description:- "Note:\nThis is a Foreign Key to `ability.id`.<fk table='ability' column='id'/>",- format: "text",- type: "string",- },- setupHours: {- default: 0,- format: "numeric",- type: "number",- },- active: {- default: true,- format: "boolean",- type: "boolean",- },- companyId: {- description:- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",- format: "text",- type: "string",- },- createdBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- createdAt: {- default: "now()",- format: "timestamp without time zone",- type: "string",- },- updatedBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- updatedAt: {- format: "timestamp without time zone",- type: "string",- },- customFields: {- format: "jsonb",- },- },- type: "object",- },modelUpload: {required: ["id", "modelPath", "companyId", "createdBy"],properties: {@@ -40353,109 +40334,6 @@ export default {},type: "object",},- equipment: {- required: [- "id",- "name",- "equipmentTypeId",- "operatorsRequired",- "setupHours",- "locationId",- "active",- "companyId",- "createdBy",- "createdAt",- ],- properties: {- id: {- default: "public.xid()",- description: "Note:\nThis is a Primary Key.<pk/>",- format: "text",- type: "string",- },- name: {- format: "text",- type: "string",- },- description: {- format: "text",- type: "string",- },- equipmentTypeId: {- description:- "Note:\nThis is a Foreign Key to `equipmentType.id`.<fk table='equipmentType' column='id'/>",- format: "text",- type: "string",- },- operatorsRequired: {- default: 1,- format: "numeric",- type: "number",- },- setupHours: {- default: 0,- format: "numeric",- type: "number",- },- locationId: {- description:- "Note:\nThis is a Foreign Key to `location.id`.<fk table='location' column='id'/>",- format: "text",- type: "string",- },- workCellId: {- description:- "Note:\nThis is a Foreign Key to `workCell.id`.<fk table='workCell' column='id'/>",- format: "text",- type: "string",- },- active: {- default: true,- format: "boolean",- type: "boolean",- },- activeDate: {- default: "CURRENT_DATE",- format: "date",- type: "string",- },- companyId: {- description:- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",- format: "text",- type: "string",- },- createdBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- createdAt: {- default: "now()",- format: "timestamp without time zone",- type: "string",- },- updatedBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- updatedAt: {- format: "timestamp without time zone",- type: "string",- },- customFields: {- format: "jsonb",- },- equipmentId: {- format: "text",- type: "string",- },- },- type: "object",- },groups_recursive: {properties: {groupId: {@@ -40970,12 +40848,6 @@ export default {format: "text",type: "string",},- workCellId: {- description:- "Note:\nThis is a Foreign Key to `workCell.id`.<fk table='workCell' column='id'/>",- format: "text",- type: "string",- },},type: "object",},@@ -41115,181 +40987,6 @@ export default {},type: "object",},- crew: {- required: [- "id",- "name",- "groupId",- "companyId",- "createdBy",- "createdAt",- ],- properties: {- id: {- default: "public.xid()",- description: "Note:\nThis is a Primary Key.<pk/>",- format: "text",- type: "string",- },- name: {- format: "text",- type: "string",- },- description: {- format: "text",- type: "string",- },- crewLeaderId: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- groupId: {- description:- "Note:\nThis is a Foreign Key to `group.id`.<fk table='group' column='id'/>",- format: "text",- type: "string",- },- workCellId: {- description:- "Note:\nThis is a Foreign Key to `workCell.id`.<fk table='workCell' column='id'/>",- format: "text",- type: "string",- },- companyId: {- format: "text",- type: "string",- },- createdBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- createdAt: {- default: "now()",- format: "timestamp without time zone",- type: "string",- },- updatedBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- updatedAt: {- format: "timestamp without time zone",- type: "string",- },- },- type: "object",- },- workCell: {- required: [- "id",- "name",- "defaultStandardFactor",- "departmentId",- "workCellTypeId",- "active",- "companyId",- "createdBy",- "createdAt",- ],- properties: {- id: {- default: "public.xid()",- description: "Note:\nThis is a Primary Key.<pk/>",- format: "text",- type: "string",- },- name: {- format: "text",- type: "string",- },- description: {- format: "text",- type: "string",- },- defaultStandardFactor: {- default: "Hours/Piece",- enum: [- "Hours/Piece",- "Hours/100 Pieces",- "Hours/1000 Pieces",- "Minutes/Piece",- "Minutes/100 Pieces",- "Minutes/1000 Pieces",- "Pieces/Hour",- "Pieces/Minute",- "Seconds/Piece",- "Total Hours",- "Total Minutes",- ],- format: "public.factor",- type: "string",- },- departmentId: {- description:- "Note:\nThis is a Foreign Key to `department.id`.<fk table='department' column='id'/>",- format: "text",- type: "string",- },- locationId: {- description:- "Note:\nThis is a Foreign Key to `location.id`.<fk table='location' column='id'/>",- format: "text",- type: "string",- },- workCellTypeId: {- description:- "Note:\nThis is a Foreign Key to `workCellType.id`.<fk table='workCellType' column='id'/>",- format: "text",- type: "string",- },- active: {- default: true,- format: "boolean",- type: "boolean",- },- companyId: {- description:- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",- format: "text",- type: "string",- },- activeDate: {- format: "date",- type: "string",- },- createdBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- createdAt: {- default: "now()",- format: "timestamp without time zone",- type: "string",- },- updatedBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- updatedAt: {- format: "timestamp without time zone",- type: "string",- },- customFields: {- format: "jsonb",- },- },- type: "object",- },salesRfqLines: {properties: {id: {@@ -41515,6 +41212,57 @@ export default {},type: "object",},+ workCenterProcess: {+ required: [+ "workCenterId",+ "processId",+ "companyId",+ "createdBy",+ "createdAt",+ ],+ properties: {+ workCenterId: {+ description:+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `workCenter.id`.<fk table='workCenter' column='id'/>",+ format: "text",+ type: "string",+ },+ processId: {+ description:+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `process.id`.<fk table='process' column='id'/>",+ format: "text",+ type: "string",+ },+ companyId: {+ description:+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",+ format: "text",+ type: "string",+ },+ createdBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ createdAt: {+ default: "now()",+ format: "timestamp with time zone",+ type: "string",+ },+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ updatedAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ },+ type: "object",+ },itemQuantities: {properties: {itemId: {@@ -41833,10 +41581,6 @@ export default {"quoteId","quoteLineId","order",- "workCellTypeId",- "setupHours",- "standardFactor",- "productionStandard","operationOrder","quotingRate","laborRate",@@ -41844,6 +41588,13 @@ export default {"companyId","createdAt","createdBy",+ "processId",+ "setupTime",+ "setupUnit",+ "laborTime",+ "laborUnit",+ "machineTime",+ "machineUnit",],properties: {id: {@@ -41875,28 +41626,102 @@ export default {format: "double precision",type: "number",},- workCellTypeId: {+ description: {+ format: "text",+ type: "string",+ },+ operationOrder: {+ default: "After Previous",+ enum: ["After Previous", "With Previous"],+ format: 'public."methodOperationOrder"',+ type: "string",+ },+ quotingRate: {+ default: 0,+ format: "numeric",+ type: "number",+ },+ laborRate: {+ default: 0,+ format: "numeric",+ type: "number",+ },+ overheadRate: {+ default: 0,+ format: "numeric",+ type: "number",+ },+ companyId: {description:- "Note:\nThis is a Foreign Key to `workCellType.id`.<fk table='workCellType' column='id'/>",+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",format: "text",type: "string",},- equipmentTypeId: {+ createdAt: {+ default: "now()",+ format: "timestamp with time zone",+ type: "string",+ },+ createdBy: {description:- "Note:\nThis is a Foreign Key to `equipmentType.id`.<fk table='equipmentType' column='id'/>",+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",format: "text",type: "string",},- description: {+ updatedAt: {+ format: "timestamp with time zone",+ type: "string",+ },+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",+ },+ customFields: {+ format: "jsonb",+ },+ processId: {+ description:+ "Note:\nThis is a Foreign Key to `process.id`.<fk table='process' column='id'/>",+ format: "text",+ type: "string",+ },+ workCenterId: {+ description:+ "Note:\nThis is a Foreign Key to `workCenter.id`.<fk table='workCenter' column='id'/>",format: "text",type: "string",},- setupHours: {+ setupTime: {+ default: 0,+ format: "numeric",+ type: "number",+ },+ setupUnit: {+ default: "Total Hours",+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",+ type: "string",+ },+ laborTime: {default: 0,format: "numeric",type: "number",},- standardFactor: {+ laborUnit: {default: "Hours/Piece",enum: ["Hours/Piece",@@ -41914,62 +41739,29 @@ export default {format: "public.factor",type: "string",},- productionStandard: {+ machineTime: {default: 0,format: "numeric",type: "number",},- operationOrder: {- default: "After Previous",- enum: ["After Previous", "With Previous"],- format: 'public."methodOperationOrder"',- type: "string",- },- quotingRate: {- default: 0,- format: "numeric",- type: "number",- },- laborRate: {- default: 0,- format: "numeric",- type: "number",- },- overheadRate: {- default: 0,- format: "numeric",- type: "number",- },- companyId: {- description:- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",- format: "text",- type: "string",- },- createdAt: {- default: "now()",- format: "timestamp with time zone",- type: "string",- },- createdBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",- type: "string",- },- updatedAt: {- format: "timestamp with time zone",- type: "string",- },- updatedBy: {- description:- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",- format: "text",+ machineUnit: {+ default: "Hours/Piece",+ enum: [+ "Hours/Piece",+ "Hours/100 Pieces",+ "Hours/1000 Pieces",+ "Minutes/Piece",+ "Minutes/100 Pieces",+ "Minutes/1000 Pieces",+ "Pieces/Hour",+ "Pieces/Minute",+ "Seconds/Piece",+ "Total Hours",+ "Total Minutes",+ ],+ format: "public.factor",type: "string",},- customFields: {- format: "jsonb",- },},type: "object",},@@ -45642,43 +45434,6 @@ export default {in: "query",type: "string",},- "body.crewAbility": {- name: "crewAbility",- description: "crewAbility",- required: false,- in: "body",- schema: {- $ref: "#/definitions/crewAbility",- },- },- "rowFilter.crewAbility.id": {- name: "id",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crewAbility.crewId": {- name: "crewId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crewAbility.abilityId": {- name: "abilityId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crewAbility.active": {- name: "active",- required: false,- format: "boolean",- in: "query",- type: "string",- },"body.customerType": {name: "customerType",description: "customerType",@@ -47237,6 +46992,157 @@ export default {in: "query",type: "string",},+ "body.processes": {+ name: "processes",+ description: "processes",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/processes",+ },+ },+ "rowFilter.processes.id": {+ name: "id",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.processes.name": {+ name: "name",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.processes.defaultStandardFactor": {+ name: "defaultStandardFactor",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.processes.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.processes.customFields": {+ name: "customFields",+ required: false,+ format: "jsonb",+ in: "query",+ type: "string",+ },+ "rowFilter.processes.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.processes.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.processes.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.processes.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.processes.workCenters": {+ name: "workCenters",+ required: false,+ format: "jsonb",+ in: "query",+ type: "string",+ },+ "body.process": {+ name: "process",+ description: "process",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/process",+ },+ },+ "rowFilter.process.id": {+ name: "id",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.process.name": {+ name: "name",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.process.defaultStandardFactor": {+ name: "defaultStandardFactor",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.process.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.process.customFields": {+ name: "customFields",+ required: false,+ format: "jsonb",+ in: "query",+ type: "string",+ },+ "rowFilter.process.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.process.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.process.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.process.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },"body.quoteMaterial": {name: "quoteMaterial",description: "quoteMaterial",@@ -47996,6 +47902,64 @@ export default {in: "query",type: "string",},+ "body.quoteOperationWorkInstruction": {+ name: "quoteOperationWorkInstruction",+ description: "quoteOperationWorkInstruction",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/quoteOperationWorkInstruction",+ },+ },+ "rowFilter.quoteOperationWorkInstruction.quoteOperationId": {+ name: "quoteOperationId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationWorkInstruction.content": {+ name: "content",+ required: false,+ format: "json",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationWorkInstruction.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationWorkInstruction.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationWorkInstruction.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationWorkInstruction.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationWorkInstruction.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },"body.materialForm": {name: "materialForm",description: "materialForm",@@ -50464,6 +50428,141 @@ export default {in: "query",type: "string",},+ "body.workCenters": {+ name: "workCenters",+ description: "workCenters",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/workCenters",+ },+ },+ "rowFilter.workCenters.id": {+ name: "id",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.name": {+ name: "name",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.description": {+ name: "description",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.quotingRate": {+ name: "quotingRate",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.laborRate": {+ name: "laborRate",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.overheadRate": {+ name: "overheadRate",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.defaultStandardFactor": {+ name: "defaultStandardFactor",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.locationId": {+ name: "locationId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.requiredAbilityId": {+ name: "requiredAbilityId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.active": {+ name: "active",+ required: false,+ format: "boolean",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.customFields": {+ name: "customFields",+ required: false,+ format: "jsonb",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.locationName": {+ name: "locationName",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenters.processes": {+ name: "processes",+ required: false,+ format: "jsonb",+ in: "query",+ type: "string",+ },"body.costLedger": {name: "costLedger",description: "costLedger",@@ -51169,120 +51268,6 @@ export default {in: "query",type: "string",},- "body.workCellType": {- name: "workCellType",- description: "workCellType",- required: false,- in: "body",- schema: {- $ref: "#/definitions/workCellType",- },- },- "rowFilter.workCellType.id": {- name: "id",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCellType.name": {- name: "name",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCellType.description": {- name: "description",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCellType.requiredAbility": {- name: "requiredAbility",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCellType.quotingRate": {- name: "quotingRate",- required: false,- format: "numeric",- in: "query",- type: "string",- },- "rowFilter.workCellType.laborRate": {- name: "laborRate",- required: false,- format: "numeric",- in: "query",- type: "string",- },- "rowFilter.workCellType.overheadRate": {- name: "overheadRate",- required: false,- format: "numeric",- in: "query",- type: "string",- },- "rowFilter.workCellType.defaultStandardFactor": {- name: "defaultStandardFactor",- required: false,- format: "public.factor",- in: "query",- type: "string",- },- "rowFilter.workCellType.active": {- name: "active",- required: false,- format: "boolean",- in: "query",- type: "string",- },- "rowFilter.workCellType.companyId": {- name: "companyId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCellType.createdBy": {- name: "createdBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCellType.createdAt": {- name: "createdAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "rowFilter.workCellType.updatedBy": {- name: "updatedBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCellType.updatedAt": {- name: "updatedAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "rowFilter.workCellType.customFields": {- name: "customFields",- required: false,- format: "jsonb",- in: "query",- type: "string",- },"body.holidayYears": {name: "holidayYears",description: "holidayYears",@@ -52311,6 +52296,127 @@ export default {in: "query",type: "string",},+ "body.workCenter": {+ name: "workCenter",+ description: "workCenter",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/workCenter",+ },+ },+ "rowFilter.workCenter.id": {+ name: "id",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.name": {+ name: "name",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.description": {+ name: "description",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.quotingRate": {+ name: "quotingRate",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.laborRate": {+ name: "laborRate",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.overheadRate": {+ name: "overheadRate",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.defaultStandardFactor": {+ name: "defaultStandardFactor",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.locationId": {+ name: "locationId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.requiredAbilityId": {+ name: "requiredAbilityId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.active": {+ name: "active",+ required: false,+ format: "boolean",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.customFields": {+ name: "customFields",+ required: false,+ format: "jsonb",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenter.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },"body.tool": {name: "tool",description: "tool",@@ -53083,20 +53189,6 @@ export default {in: "query",type: "string",},- "rowFilter.methodOperation.workCellTypeId": {- name: "workCellTypeId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.methodOperation.equipmentTypeId": {- name: "equipmentTypeId",- required: false,- format: "text",- in: "query",- type: "string",- },"rowFilter.methodOperation.description": {name: "description",required: false,@@ -53104,27 +53196,6 @@ export default {in: "query",type: "string",},- "rowFilter.methodOperation.setupHours": {- name: "setupHours",- required: false,- format: "numeric",- in: "query",- type: "string",- },- "rowFilter.methodOperation.standardFactor": {- name: "standardFactor",- required: false,- format: "public.factor",- in: "query",- type: "string",- },- "rowFilter.methodOperation.productionStandard": {- name: "productionStandard",- required: false,- format: "numeric",- in: "query",- type: "string",- },"rowFilter.methodOperation.companyId": {name: "companyId",required: false,@@ -53167,6 +53238,62 @@ export default {in: "query",type: "string",},+ "rowFilter.methodOperation.processId": {+ name: "processId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperation.workCenterId": {+ name: "workCenterId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperation.setupTime": {+ name: "setupTime",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperation.setupUnit": {+ name: "setupUnit",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperation.laborTime": {+ name: "laborTime",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperation.laborUnit": {+ name: "laborUnit",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperation.machineTime": {+ name: "machineTime",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperation.machineUnit": {+ name: "machineUnit",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },"body.salesOrderPayment": {name: "salesOrderPayment",description: "salesOrderPayment",@@ -54032,20 +54159,6 @@ export default {in: "query",type: "string",},- "rowFilter.quoteOperationsWithMakeMethods.workCellTypeId": {- name: "workCellTypeId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.quoteOperationsWithMakeMethods.equipmentTypeId": {- name: "equipmentTypeId",- required: false,- format: "text",- in: "query",- type: "string",- },"rowFilter.quoteOperationsWithMakeMethods.description": {name: "description",required: false,@@ -54053,27 +54166,6 @@ export default {in: "query",type: "string",},- "rowFilter.quoteOperationsWithMakeMethods.setupHours": {- name: "setupHours",- required: false,- format: "numeric",- in: "query",- type: "string",- },- "rowFilter.quoteOperationsWithMakeMethods.standardFactor": {- name: "standardFactor",- required: false,- format: "public.factor",- in: "query",- type: "string",- },- "rowFilter.quoteOperationsWithMakeMethods.productionStandard": {- name: "productionStandard",- required: false,- format: "numeric",- in: "query",- type: "string",- },"rowFilter.quoteOperationsWithMakeMethods.operationOrder": {name: "operationOrder",required: false,@@ -54144,6 +54236,62 @@ export default {in: "query",type: "string",},+ "rowFilter.quoteOperationsWithMakeMethods.processId": {+ name: "processId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationsWithMakeMethods.workCenterId": {+ name: "workCenterId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationsWithMakeMethods.setupTime": {+ name: "setupTime",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationsWithMakeMethods.setupUnit": {+ name: "setupUnit",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationsWithMakeMethods.laborTime": {+ name: "laborTime",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationsWithMakeMethods.laborUnit": {+ name: "laborUnit",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationsWithMakeMethods.machineTime": {+ name: "machineTime",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationsWithMakeMethods.machineUnit": {+ name: "machineUnit",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },"body.supplierStatus": {name: "supplierStatus",description: "supplierStatus",@@ -54490,99 +54638,6 @@ export default {in: "query",type: "string",},- "body.equipmentType": {- name: "equipmentType",- description: "equipmentType",- required: false,- in: "body",- schema: {- $ref: "#/definitions/equipmentType",- },- },- "rowFilter.equipmentType.id": {- name: "id",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipmentType.name": {- name: "name",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipmentType.description": {- name: "description",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipmentType.requiredAbility": {- name: "requiredAbility",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipmentType.setupHours": {- name: "setupHours",- required: false,- format: "numeric",- in: "query",- type: "string",- },- "rowFilter.equipmentType.active": {- name: "active",- required: false,- format: "boolean",- in: "query",- type: "string",- },- "rowFilter.equipmentType.companyId": {- name: "companyId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipmentType.createdBy": {- name: "createdBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipmentType.createdAt": {- name: "createdAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "rowFilter.equipmentType.updatedBy": {- name: "updatedBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipmentType.updatedAt": {- name: "updatedAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "rowFilter.equipmentType.customFields": {- name: "customFields",- required: false,- format: "jsonb",- in: "query",- type: "string",- },"body.modelUpload": {name: "modelUpload",description: "modelUpload",@@ -56352,134 +56407,6 @@ export default {in: "query",type: "string",},- "body.equipment": {- name: "equipment",- description: "equipment",- required: false,- in: "body",- schema: {- $ref: "#/definitions/equipment",- },- },- "rowFilter.equipment.id": {- name: "id",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipment.name": {- name: "name",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipment.description": {- name: "description",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipment.equipmentTypeId": {- name: "equipmentTypeId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipment.operatorsRequired": {- name: "operatorsRequired",- required: false,- format: "numeric",- in: "query",- type: "string",- },- "rowFilter.equipment.setupHours": {- name: "setupHours",- required: false,- format: "numeric",- in: "query",- type: "string",- },- "rowFilter.equipment.locationId": {- name: "locationId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipment.workCellId": {- name: "workCellId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipment.active": {- name: "active",- required: false,- format: "boolean",- in: "query",- type: "string",- },- "rowFilter.equipment.activeDate": {- name: "activeDate",- required: false,- format: "date",- in: "query",- type: "string",- },- "rowFilter.equipment.companyId": {- name: "companyId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipment.createdBy": {- name: "createdBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipment.createdAt": {- name: "createdAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "rowFilter.equipment.updatedBy": {- name: "updatedBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.equipment.updatedAt": {- name: "updatedAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "rowFilter.equipment.customFields": {- name: "customFields",- required: false,- format: "jsonb",- in: "query",- type: "string",- },- "rowFilter.equipment.equipmentId": {- name: "equipmentId",- required: false,- format: "text",- in: "query",- type: "string",- },"body.groups_recursive": {name: "groups_recursive",description: "groups_recursive",@@ -57166,13 +57093,6 @@ export default {in: "query",type: "string",},- "rowFilter.employeeJob.workCellId": {- name: "workCellId",- required: false,- format: "text",- in: "query",- type: "string",- },"body.account": {name: "account",description: "account",@@ -57352,206 +57272,6 @@ export default {in: "query",type: "string",},- "body.crew": {- name: "crew",- description: "crew",- required: false,- in: "body",- schema: {- $ref: "#/definitions/crew",- },- },- "rowFilter.crew.id": {- name: "id",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crew.name": {- name: "name",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crew.description": {- name: "description",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crew.crewLeaderId": {- name: "crewLeaderId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crew.groupId": {- name: "groupId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crew.workCellId": {- name: "workCellId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crew.companyId": {- name: "companyId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crew.createdBy": {- name: "createdBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crew.createdAt": {- name: "createdAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "rowFilter.crew.updatedBy": {- name: "updatedBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.crew.updatedAt": {- name: "updatedAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "body.workCell": {- name: "workCell",- description: "workCell",- required: false,- in: "body",- schema: {- $ref: "#/definitions/workCell",- },- },- "rowFilter.workCell.id": {- name: "id",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCell.name": {- name: "name",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCell.description": {- name: "description",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCell.defaultStandardFactor": {- name: "defaultStandardFactor",- required: false,- format: "public.factor",- in: "query",- type: "string",- },- "rowFilter.workCell.departmentId": {- name: "departmentId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCell.locationId": {- name: "locationId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCell.workCellTypeId": {- name: "workCellTypeId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCell.active": {- name: "active",- required: false,- format: "boolean",- in: "query",- type: "string",- },- "rowFilter.workCell.companyId": {- name: "companyId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCell.activeDate": {- name: "activeDate",- required: false,- format: "date",- in: "query",- type: "string",- },- "rowFilter.workCell.createdBy": {- name: "createdBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCell.createdAt": {- name: "createdAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "rowFilter.workCell.updatedBy": {- name: "updatedBy",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.workCell.updatedAt": {- name: "updatedAt",- required: false,- format: "timestamp without time zone",- in: "query",- type: "string",- },- "rowFilter.workCell.customFields": {- name: "customFields",- required: false,- format: "jsonb",- in: "query",- type: "string",- },"body.salesRfqLines": {name: "salesRfqLines",description: "salesRfqLines",@@ -57866,6 +57586,64 @@ export default {in: "query",type: "string",},+ "body.workCenterProcess": {+ name: "workCenterProcess",+ description: "workCenterProcess",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/workCenterProcess",+ },+ },+ "rowFilter.workCenterProcess.workCenterId": {+ name: "workCenterId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenterProcess.processId": {+ name: "processId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenterProcess.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenterProcess.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenterProcess.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenterProcess.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.workCenterProcess.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },"body.itemQuantities": {name: "itemQuantities",description: "itemQuantities",@@ -58361,20 +58139,6 @@ export default {in: "query",type: "string",},- "rowFilter.quoteOperation.workCellTypeId": {- name: "workCellTypeId",- required: false,- format: "text",- in: "query",- type: "string",- },- "rowFilter.quoteOperation.equipmentTypeId": {- name: "equipmentTypeId",- required: false,- format: "text",- in: "query",- type: "string",- },"rowFilter.quoteOperation.description": {name: "description",required: false,@@ -58382,27 +58146,6 @@ export default {in: "query",type: "string",},- "rowFilter.quoteOperation.setupHours": {- name: "setupHours",- required: false,- format: "numeric",- in: "query",- type: "string",- },- "rowFilter.quoteOperation.standardFactor": {- name: "standardFactor",- required: false,- format: "public.factor",- in: "query",- type: "string",- },- "rowFilter.quoteOperation.productionStandard": {- name: "productionStandard",- required: false,- format: "numeric",- in: "query",- type: "string",- },"rowFilter.quoteOperation.operationOrder": {name: "operationOrder",required: false,@@ -58473,6 +58216,62 @@ export default {in: "query",type: "string",},+ "rowFilter.quoteOperation.processId": {+ name: "processId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperation.workCenterId": {+ name: "workCenterId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperation.setupTime": {+ name: "setupTime",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperation.setupUnit": {+ name: "setupUnit",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperation.laborTime": {+ name: "laborTime",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperation.laborUnit": {+ name: "laborUnit",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperation.machineTime": {+ name: "machineTime",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperation.machineUnit": {+ name: "machineUnit",+ required: false,+ format: "public.factor",+ in: "query",+ type: "string",+ },"body.salesRfq": {name: "salesRfq",description: "salesRfq",diff --git a/packages/database/supabase/migrations/20240821150639_api-key-all-tables.sql b/packages/database/supabase/migrations/20240821150639_api-key-all-tables.sqlnew file mode 100644index 0000000000..bf91f22b80--- /dev/null+++ b/packages/database/supabase/migrations/20240821150639_api-key-all-tables.sql@@ -0,0 +1,1051 @@+-- address+ALTER TABLE "address" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with sales_view or purchasing_view can view addresses" ON "address"+FOR SELECT USING (+ has_role('employee', "companyId") AND+ (has_company_permission('sales_view', "companyId") OR has_company_permission('purchasing_view', "companyId"))+);++CREATE POLICY "Employees with sales_create or purchasing_create can create addresses" ON "address"+FOR INSERT WITH CHECK (+ has_role('employee', "companyId") AND+ (has_company_permission('sales_create', "companyId") OR has_company_permission('purchasing_create', "companyId"))+);++CREATE POLICY "Employees with sales_update or purchasing_update can update addresses" ON "address"+FOR UPDATE USING (+ has_role('employee', "companyId") AND+ (has_company_permission('sales_update', "companyId") OR has_company_permission('purchasing_update', "companyId"))+);++CREATE POLICY "Employees with sales_delete or purchasing_delete can delete addresses" ON "address"+FOR DELETE USING (+ has_role('employee', "companyId") AND+ (has_company_permission('sales_delete', "companyId") OR has_company_permission('purchasing_delete', "companyId"))+);++CREATE POLICY "Requests with an API key can access addresses" ON "address"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- attributeDataType (TODO: Ask Brad what to do for tables using auth.role() == 'authenticated', do these need an API key policy?)++-- contractor+CREATE POLICY "Requests with an API key can access contractors" ON "contractor"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- contractorAbility+CREATE POLICY "Requests with an API key can access contractor abilities" ON "contractorAbility"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("contractorId", 'contractor'))+);++-- costLedger+CREATE POLICY "Requests with an API key can access value ledger" ON "costLedger"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- country (TODO: Ask Brad what to do for tables using auth.role() == 'authenticated', do these need an API key policy?)+ALTER TABLE "country" ENABLE ROW LEVEL SECURITY;+CREATE POLICY "Authenticated users can view countries" ON "country" FOR SELECT USING (auth.role() = 'authenticated');++-- currency+CREATE POLICY "Requests with an API key can access currency" ON "currency"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- customer+CREATE POLICY "Requests with an API key can access customers" ON "customer"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- customerAccount+ALTER TABLE "customerAccount" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with sales_view can view customer accounts" ON "customerAccount"+FOR SELECT USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_view', "companyId")+);++CREATE POLICY "Employees with sales_create can create customer accounts" ON "customerAccount"+FOR INSERT WITH CHECK (+ has_role('employee', "companyId") AND+ has_company_permission('sales_create', "companyId")+);++CREATE POLICY "Employees with sales_update can update customer accounts" ON "customerAccount"+FOR UPDATE USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_update', "companyId")+);++CREATE POLICY "Employees with sales_delete can delete customer accounts" ON "customerAccount"+FOR DELETE USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_delete', "companyId")+);++CREATE POLICY "Requests with an API key can access customer accounts" ON "customerAccount"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- customerContact+CREATE POLICY "Requests with an API key can access customer contacts" ON "customerContact"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("customerId", 'customer'))+);++-- customerLocation+ALTER TABLE "customerLocation" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with sales_view can view customer locations" ON "customerLocation"+FOR SELECT USING (+ has_role('employee', get_company_id_from_foreign_key("customerId", 'customer')) AND+ has_company_permission('sales_view', get_company_id_from_foreign_key("customerId", 'customer'))+);++CREATE POLICY "Employees with sales_create can create customer locations" ON "customerLocation"+FOR INSERT WITH CHECK (+ has_role('employee', get_company_id_from_foreign_key("customerId", 'customer')) AND+ has_company_permission('sales_create', get_company_id_from_foreign_key("customerId", 'customer'))+);++CREATE POLICY "Employees with sales_update can update customer locations" ON "customerLocation"+FOR UPDATE USING (+ has_role('employee', get_company_id_from_foreign_key("customerId", 'customer')) AND+ has_company_permission('sales_update', get_company_id_from_foreign_key("customerId", 'customer'))+);++CREATE POLICY "Employees with sales_delete can delete customer locations" ON "customerLocation"+FOR DELETE USING (+ has_role('employee', get_company_id_from_foreign_key("customerId", 'customer')) AND+ has_company_permission('sales_delete', get_company_id_from_foreign_key("customerId", 'customer'))+);++CREATE POLICY "Requests with an API key can access customer locations" ON "customerLocation"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("customerId", 'customer'))+);++-- customerPartToItem+CREATE POLICY "Requests with an API key can access customer parts" ON "customerPartToItem"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- customerPayment+CREATE POLICY "Requests with an API key can access customer payments" ON "customerPayment"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- customerShipping+CREATE POLICY "Requests with an API key can access customer shipments" ON "customerShipping"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- customerStatus+ALTER TABLE "customerStatus" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with sales_view can view customer statuses" ON "customerStatus"+FOR SELECT USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_view', "companyId")+);++CREATE POLICY "Employees with sales_create can create customer statuses" ON "customerStatus"+FOR INSERT WITH CHECK (+ has_role('employee', "companyId") AND+ has_company_permission('sales_create', "companyId")+);++CREATE POLICY "Employees with sales_update can update customer statuses" ON "customerStatus"+FOR UPDATE USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_update', "companyId")+);++CREATE POLICY "Employees with sales_delete can delete customer statuses" ON "customerStatus"+FOR DELETE USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_delete', "companyId")+);++CREATE POLICY "Requests with an API key can access customer statuses" ON "customerStatus"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- customerType+CREATE POLICY "Requests with an API key can access customer types" ON "customerType"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- customField+CREATE POLICY "Requests with an API key can access custom fields" ON "customField"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- customFieldTable (TODO: Ask Brad what to do for tables using auth.role() == 'authenticated', do these need an API key policy?)++-- department+CREATE POLICY "Requests with an API key can access departments" ON "department"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- document+CREATE POLICY "Requests with an API key can access documents" ON "document"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- documentFavorite+CREATE POLICY "Requests with an API key can access document favorites" ON "documentFavorite"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("documentId", 'document'))+);++-- documentLabel+CREATE POLICY "Requests with an API key can access document labels" ON "documentLabel"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("documentId", 'document'))+);++-- documentTransaction+CREATE POLICY "Requests with an API key can access document transactions" ON "documentTransaction"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("documentId", 'document'))+);++-- employee+CREATE POLICY "Requests with an API key can access employees" ON "employee"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- employeeAbility+CREATE POLICY "Requests with an API key can access employee abilities" ON "employeeAbility"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("employeeId", 'user'))+);++-- employeeJob+CREATE POLICY "Requests with an API key can access employee jobs" ON "employeeJob"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- employeeShift+CREATE POLICY "Requests with an API key can access employee shifts" ON "employeeShift"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("employeeId", 'user'))+);++-- employeeType+CREATE POLICY "Requests with an API key can access employee types" ON "employeeType"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- employeeTypePermission+CREATE POLICY "Requests with an API key can access employee type permissions" ON "employeeTypePermission"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("employeeTypeId", 'employeeType'))+);++-- fiscalYearSettings+ALTER TABLE "fiscalYearSettings" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with settings_view can view fiscal year settings" ON "fiscalYearSettings"+FOR SELECT USING (+ has_role('employee', "companyId") AND+ has_company_permission('settings_view', "companyId")+);++CREATE POLICY "Employees with settings_create can create fiscal year settings" ON "fiscalYearSettings"+FOR INSERT WITH CHECK (+ has_role('employee', "companyId") AND+ has_company_permission('settings_create', "companyId")+);++CREATE POLICY "Employees with settings_update can update fiscal year settings" ON "fiscalYearSettings"+FOR UPDATE USING (+ has_role('employee', "companyId") AND+ has_company_permission('settings_update', "companyId")+);++CREATE POLICY "Employees with settings_delete can delete fiscal year settings" ON "fiscalYearSettings"+FOR DELETE USING (+ has_role('employee', "companyId") AND+ has_company_permission('settings_delete', "companyId")+);++CREATE POLICY "Requests with an API key can access fiscal year settings" ON "fiscalYearSettings"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- fixture+CREATE POLICY "Requests with an API key can access fixtures" ON "fixture"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- group (TODO: identity groups don't have a companyId, also should this be settings permission?)+ALTER TABLE "group" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with settings_view can view groups" ON "group"+FOR SELECT USING (+ has_role('employee', "companyId") AND+ has_company_permission('settings_view', "companyId")+);++CREATE POLICY "Employees with settings_create can create groups" ON "group"+FOR INSERT WITH CHECK (+ has_role('employee', "companyId") AND+ has_company_permission('settings_create', "companyId")+);++CREATE POLICY "Employees with settings_update can update groups" ON "group"+FOR UPDATE USING (+ has_role('employee', "companyId") AND+ has_company_permission('settings_update', "companyId")+);++CREATE POLICY "Employees with settings_delete can delete groups" ON "group"+FOR DELETE USING (+ has_role('employee', "companyId") AND+ has_company_permission('settings_delete', "companyId")+);++CREATE POLICY "Requests with an API key can access groups" ON "group"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- holiday+CREATE POLICY "Requests with an API key can access holidays" ON "holiday"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- integration (TODO: Ask Brad what to do for tables using auth.role() == 'authenticated', do these need an API key policy?)++-- item+CREATE POLICY "Requests with an API key can access items" ON "item"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- itemCost+CREATE POLICY "Requests with an API key can access item costs" ON "itemCost"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- itemLedger+CREATE POLICY "Requests with an API key can access item ledger" ON "itemLedger"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- itemPlanning+CREATE POLICY "Requests with an API key can access item planning" ON "itemPlanning"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- itemPostingGroup+CREATE POLICY "Requests with an API key can access item posting groups" ON "itemPostingGroup"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- itemReplenishment+CREATE POLICY "Requests with an API key can access item replenishment" ON "itemReplenishment"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- itemUnitSalePrice+CREATE POLICY "Requests with an API key can access item unit sale prices" ON "itemUnitSalePrice"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- journal+CREATE POLICY "Requests with an API key can access journals" ON "journal"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- journalLine+CREATE POLICY "Requests with an API key can access journal lines" ON "journalLine"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- location+CREATE POLICY "Requests with an API key can access locations" ON "location"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- makeMethod+CREATE POLICY "Requests with an API key can access make methods" ON "makeMethod"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- material+CREATE POLICY "Requests with an API key can access materials" ON "material"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- materialForm+CREATE POLICY "Requests with an API key can access material forms" ON "materialForm"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- materialSubstance+CREATE POLICY "Requests with an API key can access material substances" ON "materialSubstance"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- membership+CREATE POLICY "Requests with an API key can access memberships" ON "membership"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("groupId", 'group'))+);++-- methodMaterial+CREATE POLICY "Requests with an API key can access method materials" ON "methodMaterial"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- methodOperation+CREATE POLICY "Requests with an API key can access method operations" ON "methodOperation"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- methodOperationWorkInstruction+CREATE POLICY "Requests with an API key can access method operation work instructions" ON "methodOperationWorkInstruction"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- modelUpload+CREATE POLICY "Requests with an API key can access model uploads" ON "modelUpload"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- note+CREATE POLICY "Requests with an API key can access notes" ON "note"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- opportunity+CREATE POLICY "Requests with an API key can access opportunities" ON "opportunity"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- part+CREATE POLICY "Requests with an API key can access parts" ON "part"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- partner+CREATE POLICY "Requests with an API key can access partners" ON "partner"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- paymentTerm+CREATE POLICY "Requests with an API key can access payment terms" ON "paymentTerm"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- pickMethod+CREATE POLICY "Requests with an API key can access pick methods" ON "pickMethod"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- postingGroupInventory+CREATE POLICY "Requests with an API key can access inventory posting groups" ON "postingGroupInventory"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- postingGroupPurchasing+CREATE POLICY "Requests with an API key can access purchasing posting groups" ON "postingGroupPurchasing"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- postingGroupSales+ALTER TABLE "postingGroupSales" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Requests with an API key can access sales posting groups" ON "postingGroupSales"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- process+CREATE POLICY "Requests with an API key can access processes" ON "process"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- purchaseInvoice+CREATE POLICY "Requests with an API key can access purchase invoices" ON "purchaseInvoice"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- purchaseInvoiceLine+CREATE POLICY "Requests with an API key can access purchase invoice lines" ON "purchaseInvoiceLine"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- purchaseInvoicePaymentRelation+CREATE POLICY "Requests with an API key can access purchase invoice payment relations" ON "purchaseInvoicePaymentRelation"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("invoiceId", 'purchaseInvoice'))+);++-- purchaseInvoicePriceChange+CREATE POLICY "Requests with an API key can access purchase invoice price changes" ON "purchaseInvoicePriceChange"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("invoiceId", 'purchaseInvoice'))+);++-- purchaseInvoiceStatusHistory+CREATE POLICY "Requests with an API key can access purchase invoice status history" ON "purchaseInvoiceStatusHistory"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("invoiceId", 'purchaseInvoice'))+);++-- purchaseOrder+CREATE POLICY "Requests with an API key can access purchase orders" ON "purchaseOrder"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- purchaseOrderDelivery+CREATE POLICY "Requests with an API key can access purchase order deliveries" ON "purchaseOrderDelivery"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- purchaseOrderFavorite+CREATE POLICY "Requests with an API key can access purchase order favorites" ON "purchaseOrderFavorite"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("purchaseOrderId", 'purchaseOrder'))+);++-- purchaseOrderLine+CREATE POLICY "Requests with an API key can access purchase order lines" ON "purchaseOrderLine"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- purchaseOrderPayment+CREATE POLICY "Requests with an API key can access purchase order payments" ON "purchaseOrderPayment"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- purchaseOrderStatusHistory+CREATE POLICY "Requests with an API key can access purchase order status history" ON "purchaseOrderStatusHistory"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("purchaseOrderId", 'purchaseOrder'))+);++-- purchaseOrderTransaction+CREATE POLICY "Requests with an API key can access purchase order transactions" ON "purchaseOrderTransaction"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("purchaseOrderId", 'purchaseOrder'))+);++-- purchasePayment+CREATE POLICY "Requests with an API key can access purchase payments" ON "purchasePayment"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- quote+CREATE POLICY "Requests with an API key can access quotes" ON "quote"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- quoteFavorite+CREATE POLICY "Requests with an API key can access quote favorites" ON "quoteFavorite"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("quoteId", 'quote'))+);++-- quoteLine+CREATE POLICY "Requests with an API key can access quote lines" ON "quoteLine"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- quoteLinePrice+CREATE POLICY "Requests with an API key can access quote line prices" ON "quoteLinePrice"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("quoteId", 'quote'))+);++-- quoteMakeMethod+CREATE POLICY "Requests with an API key can access quote make methods" ON "quoteMakeMethod"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- quoteMaterial+CREATE POLICY "Requests with an API key can access quote materials" ON "quoteMaterial"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- quoteOperation+CREATE POLICY "Requests with an API key can access quote operations" ON "quoteOperation"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- quoteOperationWorkInstruction+CREATE POLICY "Requests with an API key can access quote operation work instructions" ON "quoteOperationWorkInstruction"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("quoteOperationId", 'quoteOperation'))+);++-- receipt+CREATE POLICY "Requests with an API key can access receipts" ON "receipt"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- receiptLine+CREATE POLICY "Requests with an API key can access receipt lines" ON "receiptLine"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- requestForQuote (TODO: Ask Brad if this table should even exist?)+-- ALTER TABLE "requestForQuote" ENABLE ROW LEVEL SECURITY;++-- CREATE POLICY "Employees with sales_view can view requests for quote" ON "requestForQuote"+-- FOR SELECT USING (+-- has_role('employee', "companyId") AND+-- has_company_permission('sales_view', "companyId")+-- );++-- CREATE POLICY "Employees with sales_create can create requests for quote" ON "requestForQuote"+-- FOR INSERT WITH CHECK (+-- has_role('employee', "companyId") AND+-- has_company_permission('sales_create', "companyId")+-- );++-- CREATE POLICY "Employees with sales_update can update requests for quote" ON "requestForQuote"+-- FOR UPDATE USING (+-- has_role('employee', "companyId") AND+-- has_company_permission('sales_update', "companyId")+-- );++-- CREATE POLICY "Employees with sales_delete can delete requests for quote" ON "requestForQuote"+-- FOR DELETE USING (+-- has_role('employee', "companyId") AND+-- has_company_permission('sales_delete', "companyId")+-- );++-- CREATE POLICY "Requests with an API key can access requests for quote" ON "requestForQuote"+-- FOR ALL USING (+-- has_valid_api_key_for_company("companyId")+-- );++-- salesOrder+CREATE POLICY "Requests with an API key can access requests for sales order" ON "salesOrder"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- salesOrderFavorite+CREATE POLICY "Requests with an API key can access requests for sales order favorites" ON "salesOrderFavorite"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("salesOrderId", 'salesOrder'))+);++-- salesOrderLine+CREATE POLICY "Requests with an API key can access requests for sales order lines" ON "salesOrderLine"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- salesOrderPayment+CREATE POLICY "Requests with an API key can access requests for sales order payments" ON "salesOrderPayment"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- salesOrderShipment+CREATE POLICY "Requests with an API key can access requests for sales order shipments" ON "salesOrderShipment"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- salesOrderStatusHistory+CREATE POLICY "Requests with an API key can access requests for sales order status history" ON "salesOrderStatusHistory"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("salesOrderId", 'salesOrder'))+);++-- salesOrderTransaction (TODO: Ask Brad if users should be able to CRUD these)+ALTER TABLE "salesOrderTransaction" ENABLE ROW LEVEL SECURITY;++-- CREATE POLICY "Employees with sales_view can view sales order transactions" ON "salesOrderTransaction"+-- FOR SELECT USING (+-- has_role('employee', "companyId") AND+-- has_company_permission('sales_view', "companyId")+-- );++-- CREATE POLICY "Employees with sales_create can create sales order transactions" ON "salesOrderTransaction"+-- FOR INSERT WITH CHECK (+-- has_role('employee', "companyId") AND+-- has_company_permission('sales_create', "companyId")+-- );++-- CREATE POLICY "Employees with sales_update can update sales order transactions" ON "salesOrderTransaction"+-- FOR UPDATE USING (+-- has_role('employee', "companyId") AND+-- has_company_permission('sales_update', "companyId")+-- );++-- CREATE POLICY "Employees with sales_delete can delete sales order transactions" ON "salesOrderTransaction"+-- FOR DELETE USING (+-- has_role('employee', "companyId") AND+-- has_company_permission('sales_delete', "companyId")+-- );++CREATE POLICY "Requests with an API key can access sales order transactions" ON "salesOrderTransaction"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("salesOrderId", 'salesOrder'))+);++-- salesRfq+CREATE POLICY "Requests with an API key can access sales RFQs" ON "salesRfq"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- salesRfqFavorite+CREATE POLICY "Requests with an API key can access sales RFQ favorites" ON "salesRfqFavorite"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("rfqId", 'salesRfq'))+);++-- salesRfqLine+CREATE POLICY "Requests with an API key can access sales RFQ lines" ON "salesRfqLine"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- search (TODO: should we exclude this from the public API?)+CREATE POLICY "Requests with an API key can access search" ON "search"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- sequence+ALTER TABLE "sequence" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with settings_view can view sequences" ON "sequence"+FOR SELECT USING (+ has_role('employee', "companyId") AND+ has_company_permission('settings_view', "companyId")+);++CREATE POLICY "Employees with settings_create can create sequences" ON "sequence"+FOR INSERT WITH CHECK (+ has_role('employee', "companyId") AND+ has_company_permission('settings_create', "companyId")+);++CREATE POLICY "Employees with settings_update can update sequences" ON "sequence"+FOR UPDATE USING (+ has_role('employee', "companyId") AND+ has_company_permission('settings_update', "companyId")+);++CREATE POLICY "Employees with settings_delete can delete sequences" ON "sequence"+FOR DELETE USING (+ has_role('employee', "companyId") AND+ has_company_permission('settings_delete', "companyId")+);++CREATE POLICY "Requests with an API key can access sequences" ON "sequence"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- service+ALTER TABLE "service" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Requests with an API key can access services" ON "service"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- shelf+CREATE POLICY "Requests with an API key can access shelves" ON "shelf"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- shift+CREATE POLICY "Requests with an API key can access shifts" ON "shift"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- shippingMethod+ALTER TABLE "shippingMethod" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Requests with an API key can access shipping methods" ON "shippingMethod"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- shippingTerm+CREATE POLICY "Requests with an API key can access shipping terms" ON "shippingTerm"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- supplier+CREATE POLICY "Requests with an API key can access suppliers" ON "supplier"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- supplierAccount+ALTER TABLE "supplierAccount" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with purchasing_view can view supplier accounts" ON "supplierAccount"+FOR SELECT USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_view', "companyId")+);++CREATE POLICY "Employees with purchasing_create can create supplier accounts" ON "supplierAccount"+FOR INSERT WITH CHECK (+ has_role('employee', "companyId") AND+ has_company_permission('sales_create', "companyId")+);++CREATE POLICY "Employees with purchasing_update can update supplier accounts" ON "supplierAccount"+FOR UPDATE USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_update', "companyId")+);++CREATE POLICY "Employees with purchasing_delete can delete supplier accounts" ON "supplierAccount"+FOR DELETE USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_delete', "companyId")+);++CREATE POLICY "Requests with an API key can access supplier accounts" ON "supplierAccount"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- supplierContact+CREATE POLICY "Requests with an API key can access supplier contacts" ON "supplierContact"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("supplierId", 'supplier'))+);++-- supplierLedger+CREATE POLICY "Requests with an API key can access supplier ledger" ON "supplierLedger"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- supplierLocation+ALTER TABLE "supplierLocation" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with purchasing_view can view supplier locations" ON "supplierLocation"+FOR SELECT USING (+ has_role('employee', get_company_id_from_foreign_key("supplierId", 'supplier')) AND+ has_company_permission('sales_view', get_company_id_from_foreign_key("supplierId", 'supplier'))+);++CREATE POLICY "Employees with purchasing_create can create supplier locations" ON "supplierLocation"+FOR INSERT WITH CHECK (+ has_role('employee', get_company_id_from_foreign_key("supplierId", 'supplier')) AND+ has_company_permission('sales_create', get_company_id_from_foreign_key("supplierId", 'supplier'))+);++CREATE POLICY "Employees with purchasing_update can update supplier locations" ON "supplierLocation"+FOR UPDATE USING (+ has_role('employee', get_company_id_from_foreign_key("supplierId", 'supplier')) AND+ has_company_permission('sales_update', get_company_id_from_foreign_key("supplierId", 'supplier'))+);++CREATE POLICY "Employees with purchasing_delete can delete supplier locations" ON "supplierLocation"+FOR DELETE USING (+ has_role('employee', get_company_id_from_foreign_key("supplierId", 'supplier')) AND+ has_company_permission('sales_delete', get_company_id_from_foreign_key("supplierId", 'supplier'))+);++CREATE POLICY "Requests with an API key can access supplier locations" ON "supplierLocation"+FOR ALL USING (+ has_valid_api_key_for_company(get_company_id_from_foreign_key("supplierId", 'supplier'))+);++-- supplierPayment+CREATE POLICY "Requests with an API key can access supplier payments" ON "supplierPayment"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- supplierShipping+CREATE POLICY "Requests with an API key can access supplier shipping" ON "supplierShipping"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- supplierStatus+ALTER TABLE "supplierStatus" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with purchasing_view can view supplier statuses" ON "supplierStatus"+FOR SELECT USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_view', "companyId")+);++CREATE POLICY "Employees with purchasing_create can create supplier statuses" ON "supplierStatus"+FOR INSERT WITH CHECK (+ has_role('employee', "companyId") AND+ has_company_permission('sales_create', "companyId")+);++CREATE POLICY "Employees with purchasing_update can update supplier statuses" ON "supplierStatus"+FOR UPDATE USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_update', "companyId")+);++CREATE POLICY "Employees with purchasing_delete can delete supplier statuses" ON "supplierStatus"+FOR DELETE USING (+ has_role('employee', "companyId") AND+ has_company_permission('sales_delete', "companyId")+);++CREATE POLICY "Requests with an API key can access supplier statuses" ON "supplierStatus"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- supplierType+CREATE POLICY "Requests with an API key can access supplier types" ON "supplierType"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- tool+CREATE POLICY "Requests with an API key can access tools" ON "tool"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- unitOfMeasure+CREATE POLICY "Requests with an API key can access units of measure" ON "unitOfMeasure"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- user (TODO: Ask Brad for help)+-- CREATE POLICY "Requests with an API key can access users" ON "user"+-- FOR ALL USING (+-- has_valid_api_key_for_company("companyId")+-- );++-- userAttribute (TODO: Ask Brad for help)+-- ALTER TABLE "userAttribute" ENABLE ROW LEVEL SECURITY;++-- CREATE POLICY "Requests with an API key can access user attributes" ON "userAttribute"+-- FOR ALL USING (+-- has_valid_api_key_for_company("companyId")+-- );++-- userAttributeCategory (TODO: Ask Brad for help)+-- ALTER TABLE "userAttributeCategory" ENABLE ROW LEVEL SECURITY;++-- CREATE POLICY "Requests with an API key can access user attribute categories" ON "userAttributeCategory"+-- FOR ALL USING (+-- has_valid_api_key_for_company("companyId")+-- );++-- userAttributeValue (TODO: Ask Brad for help)+-- CREATE POLICY "Requests with an API key can access user attribute values" ON "userAttributeValue"+-- FOR ALL USING (+-- has_valid_api_key_for_company(get_company_id_from_foreign_key("userAttributeId", 'userAttribute'))+-- );++-- userPermissions (TODO: Ask Brad for help)+-- CREATE POLICY "Requests with an API key can access user premissions" ON "userPermissions"+-- FOR ALL USING (+-- has_valid_api_key_for_company("companyId")+-- );++-- userToCompany (TODO: Ask Brad for help - should we exclude this from the public API?)+-- CREATE POLICY "Requests with an API key can access user to company mapping" ON "userToCompany"+-- FOR ALL USING (+-- has_valid_api_key_for_company("companyId")+-- );++-- warehouse+CREATE POLICY "Requests with an API key can access warehouses" ON "warehouse"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- workCenter+CREATE POLICY "Requests with an API key can access work centers" ON "workCenter"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);++-- workCenterProcess+CREATE POLICY "Requests with an API key can access work center processes" ON "workCenterProcess"+FOR ALL USING (+ has_valid_api_key_for_company("companyId")+);\ No newline at end of file