@keystrokehq/gagelist 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-calibration-record.cjs +1 -1
- package/dist/actions/add-calibration-record.cjs.map +1 -1
- package/dist/actions/add-calibration-record.d.cts +183 -3
- package/dist/actions/add-calibration-record.d.cts.map +1 -1
- package/dist/actions/add-calibration-record.d.mts +183 -3
- package/dist/actions/add-calibration-record.d.mts.map +1 -1
- package/dist/actions/add-calibration-record.mjs +1 -1
- package/dist/actions/add-calibration-record.mjs.map +1 -1
- package/dist/actions/add-gage-record.cjs +2 -2
- package/dist/actions/add-gage-record.cjs.map +1 -1
- package/dist/actions/add-gage-record.d.cts +115 -3
- package/dist/actions/add-gage-record.d.cts.map +1 -1
- package/dist/actions/add-gage-record.d.mts +115 -3
- package/dist/actions/add-gage-record.d.mts.map +1 -1
- package/dist/actions/add-gage-record.mjs +2 -2
- package/dist/actions/add-gage-record.mjs.map +1 -1
- package/dist/actions/add-manufacturer.cjs +1 -1
- package/dist/actions/add-manufacturer.cjs.map +1 -1
- package/dist/actions/add-manufacturer.d.cts +21 -3
- package/dist/actions/add-manufacturer.d.cts.map +1 -1
- package/dist/actions/add-manufacturer.d.mts +21 -3
- package/dist/actions/add-manufacturer.d.mts.map +1 -1
- package/dist/actions/add-manufacturer.mjs +1 -1
- package/dist/actions/add-manufacturer.mjs.map +1 -1
- package/dist/actions/authenticate-with-gagelist.cjs +8 -8
- package/dist/actions/authenticate-with-gagelist.cjs.map +1 -1
- package/dist/actions/authenticate-with-gagelist.d.cts +19 -3
- package/dist/actions/authenticate-with-gagelist.d.cts.map +1 -1
- package/dist/actions/authenticate-with-gagelist.d.mts +19 -3
- package/dist/actions/authenticate-with-gagelist.d.mts.map +1 -1
- package/dist/actions/authenticate-with-gagelist.mjs +8 -8
- package/dist/actions/authenticate-with-gagelist.mjs.map +1 -1
- package/dist/actions/delete-calibration-record.cjs +3 -3
- package/dist/actions/delete-calibration-record.cjs.map +1 -1
- package/dist/actions/delete-calibration-record.d.cts +11 -3
- package/dist/actions/delete-calibration-record.d.cts.map +1 -1
- package/dist/actions/delete-calibration-record.d.mts +11 -3
- package/dist/actions/delete-calibration-record.d.mts.map +1 -1
- package/dist/actions/delete-calibration-record.mjs +3 -3
- package/dist/actions/delete-calibration-record.mjs.map +1 -1
- package/dist/actions/delete-gage-record.cjs +3 -3
- package/dist/actions/delete-gage-record.cjs.map +1 -1
- package/dist/actions/delete-gage-record.d.cts +11 -3
- package/dist/actions/delete-gage-record.d.cts.map +1 -1
- package/dist/actions/delete-gage-record.d.mts +11 -3
- package/dist/actions/delete-gage-record.d.mts.map +1 -1
- package/dist/actions/delete-gage-record.mjs +3 -3
- package/dist/actions/delete-gage-record.mjs.map +1 -1
- package/dist/actions/delete-manufacturer.cjs +3 -3
- package/dist/actions/delete-manufacturer.cjs.map +1 -1
- package/dist/actions/delete-manufacturer.d.cts +11 -3
- package/dist/actions/delete-manufacturer.d.cts.map +1 -1
- package/dist/actions/delete-manufacturer.d.mts +11 -3
- package/dist/actions/delete-manufacturer.d.mts.map +1 -1
- package/dist/actions/delete-manufacturer.mjs +3 -3
- package/dist/actions/delete-manufacturer.mjs.map +1 -1
- package/dist/actions/generate-calibration-certificate.cjs +3 -3
- package/dist/actions/generate-calibration-certificate.cjs.map +1 -1
- package/dist/actions/generate-calibration-certificate.d.cts +13 -3
- package/dist/actions/generate-calibration-certificate.d.cts.map +1 -1
- package/dist/actions/generate-calibration-certificate.d.mts +13 -3
- package/dist/actions/generate-calibration-certificate.d.mts.map +1 -1
- package/dist/actions/generate-calibration-certificate.mjs +3 -3
- package/dist/actions/generate-calibration-certificate.mjs.map +1 -1
- package/dist/actions/get-account-settings.cjs +15 -15
- package/dist/actions/get-account-settings.cjs.map +1 -1
- package/dist/actions/get-account-settings.d.cts +39 -3
- package/dist/actions/get-account-settings.d.cts.map +1 -1
- package/dist/actions/get-account-settings.d.mts +39 -3
- package/dist/actions/get-account-settings.d.mts.map +1 -1
- package/dist/actions/get-account-settings.mjs +15 -15
- package/dist/actions/get-account-settings.mjs.map +1 -1
- package/dist/actions/get-account-status.cjs +45 -45
- package/dist/actions/get-account-status.cjs.map +1 -1
- package/dist/actions/get-account-status.d.cts +74 -3
- package/dist/actions/get-account-status.d.cts.map +1 -1
- package/dist/actions/get-account-status.d.mts +74 -3
- package/dist/actions/get-account-status.d.mts.map +1 -1
- package/dist/actions/get-account-status.mjs +45 -45
- package/dist/actions/get-account-status.mjs.map +1 -1
- package/dist/actions/get-all-calibration-records.cjs.map +1 -1
- package/dist/actions/get-all-calibration-records.d.cts +80 -3
- package/dist/actions/get-all-calibration-records.d.cts.map +1 -1
- package/dist/actions/get-all-calibration-records.d.mts +80 -3
- package/dist/actions/get-all-calibration-records.d.mts.map +1 -1
- package/dist/actions/get-all-calibration-records.mjs.map +1 -1
- package/dist/actions/get-all-gage-records.cjs.map +1 -1
- package/dist/actions/get-all-gage-records.d.cts +59 -3
- package/dist/actions/get-all-gage-records.d.cts.map +1 -1
- package/dist/actions/get-all-gage-records.d.mts +59 -3
- package/dist/actions/get-all-gage-records.d.mts.map +1 -1
- package/dist/actions/get-all-gage-records.mjs.map +1 -1
- package/dist/actions/get-all-manufacturers.cjs +11 -11
- package/dist/actions/get-all-manufacturers.cjs.map +1 -1
- package/dist/actions/get-all-manufacturers.d.cts +18 -3
- package/dist/actions/get-all-manufacturers.d.cts.map +1 -1
- package/dist/actions/get-all-manufacturers.d.mts +18 -3
- package/dist/actions/get-all-manufacturers.d.mts.map +1 -1
- package/dist/actions/get-all-manufacturers.mjs +11 -11
- package/dist/actions/get-all-manufacturers.mjs.map +1 -1
- package/dist/actions/get-attachment.cjs +3 -3
- package/dist/actions/get-attachment.cjs.map +1 -1
- package/dist/actions/get-attachment.d.cts +13 -3
- package/dist/actions/get-attachment.d.cts.map +1 -1
- package/dist/actions/get-attachment.d.mts +13 -3
- package/dist/actions/get-attachment.d.mts.map +1 -1
- package/dist/actions/get-attachment.mjs +3 -3
- package/dist/actions/get-attachment.mjs.map +1 -1
- package/dist/actions/get-custom-fields.cjs +20 -20
- package/dist/actions/get-custom-fields.cjs.map +1 -1
- package/dist/actions/get-custom-fields.d.cts +27 -3
- package/dist/actions/get-custom-fields.d.cts.map +1 -1
- package/dist/actions/get-custom-fields.d.mts +27 -3
- package/dist/actions/get-custom-fields.d.mts.map +1 -1
- package/dist/actions/get-custom-fields.mjs +20 -20
- package/dist/actions/get-custom-fields.mjs.map +1 -1
- package/dist/actions/get-single-calibration-record.cjs +85 -85
- package/dist/actions/get-single-calibration-record.cjs.map +1 -1
- package/dist/actions/get-single-calibration-record.d.cts +101 -3
- package/dist/actions/get-single-calibration-record.d.cts.map +1 -1
- package/dist/actions/get-single-calibration-record.d.mts +101 -3
- package/dist/actions/get-single-calibration-record.d.mts.map +1 -1
- package/dist/actions/get-single-calibration-record.mjs +85 -85
- package/dist/actions/get-single-calibration-record.mjs.map +1 -1
- package/dist/actions/get-single-gage-record.cjs +2 -2
- package/dist/actions/get-single-gage-record.cjs.map +1 -1
- package/dist/actions/get-single-gage-record.d.cts +65 -3
- package/dist/actions/get-single-gage-record.d.cts.map +1 -1
- package/dist/actions/get-single-gage-record.d.mts +65 -3
- package/dist/actions/get-single-gage-record.d.mts.map +1 -1
- package/dist/actions/get-single-gage-record.mjs +2 -2
- package/dist/actions/get-single-gage-record.mjs.map +1 -1
- package/dist/actions/update-account-settings.cjs +2 -2
- package/dist/actions/update-account-settings.cjs.map +1 -1
- package/dist/actions/update-account-settings.d.cts +70 -3
- package/dist/actions/update-account-settings.d.cts.map +1 -1
- package/dist/actions/update-account-settings.d.mts +70 -3
- package/dist/actions/update-account-settings.d.mts.map +1 -1
- package/dist/actions/update-account-settings.mjs +2 -2
- package/dist/actions/update-account-settings.mjs.map +1 -1
- package/dist/actions/update-custom-field-values.cjs +1 -1
- package/dist/actions/update-custom-field-values.cjs.map +1 -1
- package/dist/actions/update-custom-field-values.d.cts +25 -3
- package/dist/actions/update-custom-field-values.d.cts.map +1 -1
- package/dist/actions/update-custom-field-values.d.mts +25 -3
- package/dist/actions/update-custom-field-values.d.mts.map +1 -1
- package/dist/actions/update-custom-field-values.mjs +1 -1
- package/dist/actions/update-custom-field-values.mjs.map +1 -1
- package/dist/actions/update-manufacturer.cjs +3 -3
- package/dist/actions/update-manufacturer.cjs.map +1 -1
- package/dist/actions/update-manufacturer.d.cts +21 -3
- package/dist/actions/update-manufacturer.d.cts.map +1 -1
- package/dist/actions/update-manufacturer.d.mts +21 -3
- package/dist/actions/update-manufacturer.d.mts.map +1 -1
- package/dist/actions/update-manufacturer.mjs +3 -3
- package/dist/actions/update-manufacturer.mjs.map +1 -1
- package/dist/actions/upload-attachment-to-gage-record.cjs +2 -2
- package/dist/actions/upload-attachment-to-gage-record.cjs.map +1 -1
- package/dist/actions/upload-attachment-to-gage-record.d.cts +21 -3
- package/dist/actions/upload-attachment-to-gage-record.d.cts.map +1 -1
- package/dist/actions/upload-attachment-to-gage-record.d.mts +21 -3
- package/dist/actions/upload-attachment-to-gage-record.d.mts.map +1 -1
- package/dist/actions/upload-attachment-to-gage-record.mjs +2 -2
- package/dist/actions/upload-attachment-to-gage-record.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["gagelist","executeGagelistTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gagelist } from \"./app\";\nimport { executeGagelistTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["gagelist","executeGagelistTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gagelist } from \"./app\";\nimport { executeGagelistTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return gagelist.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGagelistTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gagelist } from \"./app\";\nimport { executeGagelistTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gagelist } from \"./app\";\nimport { executeGagelistTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return gagelist.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGagelistTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -93,7 +93,7 @@ const GagelistAddCalibrationRecordInput = zod.z.object({
|
|
|
93
93
|
const GagelistAddCalibrationRecordOutput = zod.z.object({
|
|
94
94
|
data: zod.z.number().int().describe("ID of the newly created calibration record. Returns null if operation failed.").nullable().optional(),
|
|
95
95
|
error: zod.z.string().describe("Error message if the operation failed, null otherwise").nullable().optional(),
|
|
96
|
-
successfull: zod.z.boolean().describe("Indicates whether the calibration record was successfully created")
|
|
96
|
+
successfull: zod.z.boolean().describe("Indicates whether the calibration record was successfully created").nullable()
|
|
97
97
|
}).describe("Response model for adding calibration record.");
|
|
98
98
|
const gagelistAddCalibrationRecord = require_action.action("GAGELIST_ADD_CALIBRATION_RECORD", {
|
|
99
99
|
slug: "gagelist-add-calibration-record",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-calibration-record.cjs","names":["z","action"],"sources":["../../src/actions/add-calibration-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddCalibrationRecordInput: z.ZodTypeAny = z.object({\n Days: z.number().int().describe(\"Number of days in the calibration interval (e.g., 90 for quarterly)\").optional(),\n Type: z.string().describe(\"Type or category of equipment being calibrated (e.g., 'Torque Wrench', 'Pressure Gage', 'Micrometer')\").optional(),\n Model: z.string().describe(\"Equipment model\").optional(),\n Years: z.number().int().describe(\"Number of years in the calibration interval (e.g., 1 for annual calibration)\").optional(),\n Months: z.number().int().describe(\"Number of months in the calibration interval (e.g., 6 for semi-annual)\").optional(),\n AssetNo: z.string().describe(\"Asset tag or inventory number of the equipment\").optional(),\n Website: z.string().describe(\"Manufacturer website URL\").optional(),\n Interval: z.string().describe(\"Calibration interval description\").optional(),\n Location: z.string().describe(\"Location of the equipment\").optional(),\n SignedBy: z.string().describe(\"User who signed\").optional(),\n TestCost: z.string().describe(\"Cost associated with calibration test\").optional(),\n TestTime: z.string().describe(\"Duration of test or timestamp\").optional(),\n CreatedBy: z.string().describe(\"User who created the record\").optional(),\n IsDeleted: z.boolean().describe(\"Soft delete flag\").optional(),\n SignedPDF: z.string().describe(\"Base64 or URL of signed PDF document\").optional(),\n Tolerance: z.string().describe(\"Tolerance level\").optional(),\n UpdatedBy: z.string().describe(\"User who last updated the record\").optional(),\n SignedDate: z.string().describe(\"Date of signature (ISO 8601)\").optional(),\n Attachments: z.array(z.object({\n Id: z.number().int().describe(\"Attachment identifier\").optional(),\n FileName: z.string().describe(\"Name of the file with extension\").optional(),\n FileSize: z.number().int().describe(\"Size of the file in bytes\").optional(),\n FileType: z.string().describe(\"MIME type or general file type\").optional(),\n RecordId: z.number().int().describe(\"ID of the associated record\").optional(),\n RecordType: z.string().describe(\"Type/category of this attachment\").optional(),\n}).describe(\"File attachment metadata.\")).describe(\"Array of file attachments\").optional(),\n RangeOrSize: z.string().describe(\"Operational range or size\").optional(),\n Uncertainty: z.string().describe(\"Measurement uncertainty\").optional(),\n UpdatedDate: z.string().describe(\"Last update timestamp (ISO 8601)\").optional(),\n Manufacturer: z.string().describe(\"Equipment manufacturer name\").optional(),\n RecordNumber: z.string().describe(\"Unique calibration record identifier/number for tracking (e.g., 'CAL-2024-001')\").optional(),\n SerialNumber: z.string().describe(\"Serial number of the equipment being calibrated\").optional(),\n ControlNumber: z.string().describe(\"Internal control/tracking number for the calibration\").optional(),\n CounterValues: z.array(z.object({\n Id: z.number().int().describe(\"Counter value entry ID\").optional(),\n RefID: z.number().int().describe(\"Reference ID for this field entry\").optional(),\n FieldId: z.number().int().describe(\"Custom field identifier\").optional(),\n RefType: z.number().int().describe(\"Reference type code\").optional(),\n FieldValue: z.string().describe(\"Value of the custom field\").optional(),\n UpdatedDate: z.string().describe(\"Last update timestamp (ISO 8601)\").optional(),\n}).describe(\"Custom field value entry.\")).describe(\"Array of custom counter values\").optional(),\n SignatureData: z.string().describe(\"Signature data blob or token\").optional(),\n UnitOfMeasure: z.string().describe(\"Unit of measure\").optional(),\n ActionRequired: z.string().describe(\"Actions required post-calibration\").optional(),\n DateCalibrated: z.string().describe(\"Actual calibration date (ISO 8601)\").optional(),\n EquipmentRefId: z.number().int().describe(\"Reference ID of the equipment (gage record ID) to link this calibration to. If not provided, creates a standalone calibration record.\").optional(),\n MasterStandard: z.string().describe(\"Reference standard or master gage used to perform the calibration (e.g., 'MS-001 Pressure Standard')\").optional(),\n CalibrationDate: z.string().describe(\"Date of calibration record (ISO 8601)\").optional(),\n CalibrationTest: z.string().describe(\"General calibration test performed\").optional(),\n EquipmentAsLeft: z.string().describe(\"Condition/status of equipment after calibration was completed (e.g., 'In Tolerance', 'Calibrated', 'Repaired')\").optional(),\n ProductRecalled: z.string().describe(\"Product recalled flag or info\").optional(),\n RepairsRequired: z.string().describe(\"Repairs required description\").optional(),\n ResponsibleUser: z.string().describe(\"Responsible user for calibration\").optional(),\n CalibrationTests: z.array(z.object({\n Id: z.number().int().describe(\"Unique identifier of the test entry\").optional(),\n AsLeft: z.string().describe(\"As-left reading\").optional(),\n AsFound: z.string().describe(\"As-found reading\").optional(),\n PassFail: z.string().describe(\"Pass/Fail result of the test\").optional(),\n ChkAsLeft: z.string().describe(\"Check value after adjustments\").optional(),\n Parameter: z.string().describe(\"Test parameter name\").optional(),\n TestNumber: z.string().describe(\"Test number or code\").optional(),\n RefStandardID: z.string().describe(\"Reference standard identifier\").optional(),\n ExpectedResult: z.string().describe(\"Expected result for the test\").optional(),\n CalibrationRefId: z.number().int().describe(\"Reference ID of the parent calibration record\").optional(),\n}).describe(\"Individual calibration test details.\")).describe(\"Array of individual test entries\").optional(),\n DescribedRepairs: z.string().describe(\"Description of any repairs performed\").optional(),\n EquipmentAsFound: z.string().describe(\"Condition/status of equipment when received for calibration (e.g., 'In Tolerance', 'Out of Tolerance', 'Damaged')\").optional(),\n ToleranceComment: z.string().describe(\"Comments on tolerance\").optional(),\n TypesMeasurement: z.string().describe(\"Measurement types supported\").optional(),\n ConditionReceived: z.string().describe(\"Condition when received\").optional(),\n AdditionalComments: z.string().describe(\"Additional comments or notes\").optional(),\n CalibrationDueDate: z.string().describe(\"Next due calibration date (ISO 8601)\").optional(),\n FitIntendedPurpose: z.string().describe(\"Fit for intended purpose note\").optional(),\n NextCalibrationDue: z.string().describe(\"Next calibration due date (ISO 8601)\").optional(),\n SignaturePublicKey: z.string().describe(\"Public key for signature verification\").optional(),\n TestEquipmentFalls: z.string().describe(\"Test equipment falls information\").optional(),\n ToleranceCondition: z.string().describe(\"Condition relative to tolerance\").optional(),\n AdjustmentsRequired: z.string().describe(\"Adjustments required description\").optional(),\n AppropriateNotified: z.string().describe(\"Who was notified of results\").optional(),\n CalibrationTestMode: z.string().describe(\"Mode of the calibration test\").optional(),\n LastCalibrationDate: z.string().describe(\"Date of last calibration (ISO 8601)\").optional(),\n CalibrationEnvironment: z.string().describe(\"Calibration environment conditions\").optional(),\n CalibrationTechinician: z.string().describe(\"Name or ID of the technician who performed the calibration\").optional(),\n CalibrationInstructions: z.string().describe(\"Calibration instructions or notes\").optional(),\n ExernalCalibrationRecord: z.string().describe(\"Reference to external calibration record if calibration was performed by outside lab\").optional(),\n TestEquipmentAvailability: z.string().describe(\"Availability of test equipment\").optional(),\n TestEquipmentFallsAsFound: z.string().describe(\"Equipment falls as found reading\").optional(),\n}).describe(\"Request model for adding a new calibration record.\");\nexport const GagelistAddCalibrationRecordOutput: z.ZodTypeAny = z.object({\n data: z.number().int().describe(\"ID of the newly created calibration record. Returns null if operation failed.\").nullable().optional(),\n error: z.string().describe(\"Error message if the operation failed, null otherwise\").nullable().optional(),\n successfull: z.boolean().describe(\"Indicates whether the calibration record was successfully created\"),\n}).describe(\"Response model for adding calibration record.\");\n\nexport const gagelistAddCalibrationRecord = action(\"GAGELIST_ADD_CALIBRATION_RECORD\", {\n slug: \"gagelist-add-calibration-record\",\n name: \"Add Calibration Record\",\n description: \"Creates a new calibration record in GageList to document equipment calibration results. Use this tool to record calibration activities including test results, dates, technician info, and equipment condition. Can optionally link to an existing gage record via EquipmentRefId, or create a standalone calibration record. Supports detailed test data, attachments, and custom fields.\",\n input: GagelistAddCalibrationRecordInput,\n output: GagelistAddCalibrationRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAChH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC5I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACrH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,E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SAAS;CAC/I,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1F,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE;AACvG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"add-calibration-record.cjs","names":["z","action"],"sources":["../../src/actions/add-calibration-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddCalibrationRecordInput = z.object({\n Days: z.number().int().describe(\"Number of days in the calibration interval (e.g., 90 for quarterly)\").optional(),\n Type: z.string().describe(\"Type or category of equipment being calibrated (e.g., 'Torque Wrench', 'Pressure Gage', 'Micrometer')\").optional(),\n Model: z.string().describe(\"Equipment model\").optional(),\n Years: z.number().int().describe(\"Number of years in the calibration interval (e.g., 1 for annual calibration)\").optional(),\n Months: z.number().int().describe(\"Number of months in the calibration interval (e.g., 6 for semi-annual)\").optional(),\n AssetNo: z.string().describe(\"Asset tag or inventory number of the equipment\").optional(),\n Website: z.string().describe(\"Manufacturer website URL\").optional(),\n Interval: z.string().describe(\"Calibration interval description\").optional(),\n Location: z.string().describe(\"Location of the equipment\").optional(),\n SignedBy: z.string().describe(\"User who signed\").optional(),\n TestCost: z.string().describe(\"Cost associated with calibration test\").optional(),\n TestTime: z.string().describe(\"Duration of test or timestamp\").optional(),\n CreatedBy: z.string().describe(\"User who created the record\").optional(),\n IsDeleted: z.boolean().describe(\"Soft delete flag\").optional(),\n SignedPDF: z.string().describe(\"Base64 or URL of signed PDF document\").optional(),\n Tolerance: z.string().describe(\"Tolerance level\").optional(),\n UpdatedBy: z.string().describe(\"User who last updated the record\").optional(),\n SignedDate: z.string().describe(\"Date of signature (ISO 8601)\").optional(),\n Attachments: z.array(z.object({\n Id: z.number().int().describe(\"Attachment identifier\").optional(),\n FileName: z.string().describe(\"Name of the file with extension\").optional(),\n FileSize: z.number().int().describe(\"Size of the file in bytes\").optional(),\n FileType: z.string().describe(\"MIME type or general file type\").optional(),\n RecordId: z.number().int().describe(\"ID of the associated record\").optional(),\n RecordType: z.string().describe(\"Type/category of this attachment\").optional(),\n}).describe(\"File attachment metadata.\")).describe(\"Array of file attachments\").optional(),\n RangeOrSize: z.string().describe(\"Operational range or size\").optional(),\n Uncertainty: z.string().describe(\"Measurement uncertainty\").optional(),\n UpdatedDate: z.string().describe(\"Last update timestamp (ISO 8601)\").optional(),\n Manufacturer: z.string().describe(\"Equipment manufacturer name\").optional(),\n RecordNumber: z.string().describe(\"Unique calibration record identifier/number for tracking (e.g., 'CAL-2024-001')\").optional(),\n SerialNumber: z.string().describe(\"Serial number of the equipment being calibrated\").optional(),\n ControlNumber: z.string().describe(\"Internal control/tracking number for the calibration\").optional(),\n CounterValues: z.array(z.object({\n Id: z.number().int().describe(\"Counter value entry ID\").optional(),\n RefID: z.number().int().describe(\"Reference ID for this field entry\").optional(),\n FieldId: z.number().int().describe(\"Custom field identifier\").optional(),\n RefType: z.number().int().describe(\"Reference type code\").optional(),\n FieldValue: z.string().describe(\"Value of the custom field\").optional(),\n UpdatedDate: z.string().describe(\"Last update timestamp (ISO 8601)\").optional(),\n}).describe(\"Custom field value entry.\")).describe(\"Array of custom counter values\").optional(),\n SignatureData: z.string().describe(\"Signature data blob or token\").optional(),\n UnitOfMeasure: z.string().describe(\"Unit of measure\").optional(),\n ActionRequired: z.string().describe(\"Actions required post-calibration\").optional(),\n DateCalibrated: z.string().describe(\"Actual calibration date (ISO 8601)\").optional(),\n EquipmentRefId: z.number().int().describe(\"Reference ID of the equipment (gage record ID) to link this calibration to. If not provided, creates a standalone calibration record.\").optional(),\n MasterStandard: z.string().describe(\"Reference standard or master gage used to perform the calibration (e.g., 'MS-001 Pressure Standard')\").optional(),\n CalibrationDate: z.string().describe(\"Date of calibration record (ISO 8601)\").optional(),\n CalibrationTest: z.string().describe(\"General calibration test performed\").optional(),\n EquipmentAsLeft: z.string().describe(\"Condition/status of equipment after calibration was completed (e.g., 'In Tolerance', 'Calibrated', 'Repaired')\").optional(),\n ProductRecalled: z.string().describe(\"Product recalled flag or info\").optional(),\n RepairsRequired: z.string().describe(\"Repairs required description\").optional(),\n ResponsibleUser: z.string().describe(\"Responsible user for calibration\").optional(),\n CalibrationTests: z.array(z.object({\n Id: z.number().int().describe(\"Unique identifier of the test entry\").optional(),\n AsLeft: z.string().describe(\"As-left reading\").optional(),\n AsFound: z.string().describe(\"As-found reading\").optional(),\n PassFail: z.string().describe(\"Pass/Fail result of the test\").optional(),\n ChkAsLeft: z.string().describe(\"Check value after adjustments\").optional(),\n Parameter: z.string().describe(\"Test parameter name\").optional(),\n TestNumber: z.string().describe(\"Test number or code\").optional(),\n RefStandardID: z.string().describe(\"Reference standard identifier\").optional(),\n ExpectedResult: z.string().describe(\"Expected result for the test\").optional(),\n CalibrationRefId: z.number().int().describe(\"Reference ID of the parent calibration record\").optional(),\n}).describe(\"Individual calibration test details.\")).describe(\"Array of individual test entries\").optional(),\n DescribedRepairs: z.string().describe(\"Description of any repairs performed\").optional(),\n EquipmentAsFound: z.string().describe(\"Condition/status of equipment when received for calibration (e.g., 'In Tolerance', 'Out of Tolerance', 'Damaged')\").optional(),\n ToleranceComment: z.string().describe(\"Comments on tolerance\").optional(),\n TypesMeasurement: z.string().describe(\"Measurement types supported\").optional(),\n ConditionReceived: z.string().describe(\"Condition when received\").optional(),\n AdditionalComments: z.string().describe(\"Additional comments or notes\").optional(),\n CalibrationDueDate: z.string().describe(\"Next due calibration date (ISO 8601)\").optional(),\n FitIntendedPurpose: z.string().describe(\"Fit for intended purpose note\").optional(),\n NextCalibrationDue: z.string().describe(\"Next calibration due date (ISO 8601)\").optional(),\n SignaturePublicKey: z.string().describe(\"Public key for signature verification\").optional(),\n TestEquipmentFalls: z.string().describe(\"Test equipment falls information\").optional(),\n ToleranceCondition: z.string().describe(\"Condition relative to tolerance\").optional(),\n AdjustmentsRequired: z.string().describe(\"Adjustments required description\").optional(),\n AppropriateNotified: z.string().describe(\"Who was notified of results\").optional(),\n CalibrationTestMode: z.string().describe(\"Mode of the calibration test\").optional(),\n LastCalibrationDate: z.string().describe(\"Date of last calibration (ISO 8601)\").optional(),\n CalibrationEnvironment: z.string().describe(\"Calibration environment conditions\").optional(),\n CalibrationTechinician: z.string().describe(\"Name or ID of the technician who performed the calibration\").optional(),\n CalibrationInstructions: z.string().describe(\"Calibration instructions or notes\").optional(),\n ExernalCalibrationRecord: z.string().describe(\"Reference to external calibration record if calibration was performed by outside lab\").optional(),\n TestEquipmentAvailability: z.string().describe(\"Availability of test equipment\").optional(),\n TestEquipmentFallsAsFound: z.string().describe(\"Equipment falls as found reading\").optional(),\n}).describe(\"Request model for adding a new calibration record.\");\nexport const GagelistAddCalibrationRecordOutput = z.object({\n data: z.number().int().describe(\"ID of the newly created calibration record. Returns null if operation failed.\").nullable().optional(),\n error: z.string().describe(\"Error message if the operation failed, null otherwise\").nullable().optional(),\n successfull: z.boolean().describe(\"Indicates whether the calibration record was successfully created\").nullable(),\n}).describe(\"Response model for adding calibration record.\");\n\nexport const gagelistAddCalibrationRecord = action(\"GAGELIST_ADD_CALIBRATION_RECORD\", {\n slug: \"gagelist-add-calibration-record\",\n name: \"Add Calibration Record\",\n description: \"Creates a new calibration record in GageList to document equipment calibration results. Use this tool to record calibration activities including test results, dates, technician info, and equipment condition. Can optionally link to an existing gage record via EquipmentRefId, or create a standalone calibration record. Supports detailed test data, attachments, and custom fields.\",\n input: GagelistAddCalibrationRecordInput,\n output: GagelistAddCalibrationRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAChH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC5I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACrH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,C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AE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,189 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-calibration-record.d.ts
|
|
4
|
-
declare const GagelistAddCalibrationRecordInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const GagelistAddCalibrationRecordInput: z.ZodObject<{
|
|
5
|
+
Days: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
Type: z.ZodOptional<z.ZodString>;
|
|
7
|
+
Model: z.ZodOptional<z.ZodString>;
|
|
8
|
+
Years: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
Months: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
AssetNo: z.ZodOptional<z.ZodString>;
|
|
11
|
+
Website: z.ZodOptional<z.ZodString>;
|
|
12
|
+
Interval: z.ZodOptional<z.ZodString>;
|
|
13
|
+
Location: z.ZodOptional<z.ZodString>;
|
|
14
|
+
SignedBy: z.ZodOptional<z.ZodString>;
|
|
15
|
+
TestCost: z.ZodOptional<z.ZodString>;
|
|
16
|
+
TestTime: z.ZodOptional<z.ZodString>;
|
|
17
|
+
CreatedBy: z.ZodOptional<z.ZodString>;
|
|
18
|
+
IsDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
SignedPDF: z.ZodOptional<z.ZodString>;
|
|
20
|
+
Tolerance: z.ZodOptional<z.ZodString>;
|
|
21
|
+
UpdatedBy: z.ZodOptional<z.ZodString>;
|
|
22
|
+
SignedDate: z.ZodOptional<z.ZodString>;
|
|
23
|
+
Attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
+
Id: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
FileName: z.ZodOptional<z.ZodString>;
|
|
26
|
+
FileSize: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
FileType: z.ZodOptional<z.ZodString>;
|
|
28
|
+
RecordId: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
RecordType: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
RangeOrSize: z.ZodOptional<z.ZodString>;
|
|
32
|
+
Uncertainty: z.ZodOptional<z.ZodString>;
|
|
33
|
+
UpdatedDate: z.ZodOptional<z.ZodString>;
|
|
34
|
+
Manufacturer: z.ZodOptional<z.ZodString>;
|
|
35
|
+
RecordNumber: z.ZodOptional<z.ZodString>;
|
|
36
|
+
SerialNumber: z.ZodOptional<z.ZodString>;
|
|
37
|
+
ControlNumber: z.ZodOptional<z.ZodString>;
|
|
38
|
+
CounterValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
+
Id: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
RefID: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
FieldId: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
RefType: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
FieldValue: z.ZodOptional<z.ZodString>;
|
|
44
|
+
UpdatedDate: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
SignatureData: z.ZodOptional<z.ZodString>;
|
|
47
|
+
UnitOfMeasure: z.ZodOptional<z.ZodString>;
|
|
48
|
+
ActionRequired: z.ZodOptional<z.ZodString>;
|
|
49
|
+
DateCalibrated: z.ZodOptional<z.ZodString>;
|
|
50
|
+
EquipmentRefId: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
MasterStandard: z.ZodOptional<z.ZodString>;
|
|
52
|
+
CalibrationDate: z.ZodOptional<z.ZodString>;
|
|
53
|
+
CalibrationTest: z.ZodOptional<z.ZodString>;
|
|
54
|
+
EquipmentAsLeft: z.ZodOptional<z.ZodString>;
|
|
55
|
+
ProductRecalled: z.ZodOptional<z.ZodString>;
|
|
56
|
+
RepairsRequired: z.ZodOptional<z.ZodString>;
|
|
57
|
+
ResponsibleUser: z.ZodOptional<z.ZodString>;
|
|
58
|
+
CalibrationTests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
|
+
Id: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
AsLeft: z.ZodOptional<z.ZodString>;
|
|
61
|
+
AsFound: z.ZodOptional<z.ZodString>;
|
|
62
|
+
PassFail: z.ZodOptional<z.ZodString>;
|
|
63
|
+
ChkAsLeft: z.ZodOptional<z.ZodString>;
|
|
64
|
+
Parameter: z.ZodOptional<z.ZodString>;
|
|
65
|
+
TestNumber: z.ZodOptional<z.ZodString>;
|
|
66
|
+
RefStandardID: z.ZodOptional<z.ZodString>;
|
|
67
|
+
ExpectedResult: z.ZodOptional<z.ZodString>;
|
|
68
|
+
CalibrationRefId: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
}, z.core.$strip>>>;
|
|
70
|
+
DescribedRepairs: z.ZodOptional<z.ZodString>;
|
|
71
|
+
EquipmentAsFound: z.ZodOptional<z.ZodString>;
|
|
72
|
+
ToleranceComment: z.ZodOptional<z.ZodString>;
|
|
73
|
+
TypesMeasurement: z.ZodOptional<z.ZodString>;
|
|
74
|
+
ConditionReceived: z.ZodOptional<z.ZodString>;
|
|
75
|
+
AdditionalComments: z.ZodOptional<z.ZodString>;
|
|
76
|
+
CalibrationDueDate: z.ZodOptional<z.ZodString>;
|
|
77
|
+
FitIntendedPurpose: z.ZodOptional<z.ZodString>;
|
|
78
|
+
NextCalibrationDue: z.ZodOptional<z.ZodString>;
|
|
79
|
+
SignaturePublicKey: z.ZodOptional<z.ZodString>;
|
|
80
|
+
TestEquipmentFalls: z.ZodOptional<z.ZodString>;
|
|
81
|
+
ToleranceCondition: z.ZodOptional<z.ZodString>;
|
|
82
|
+
AdjustmentsRequired: z.ZodOptional<z.ZodString>;
|
|
83
|
+
AppropriateNotified: z.ZodOptional<z.ZodString>;
|
|
84
|
+
CalibrationTestMode: z.ZodOptional<z.ZodString>;
|
|
85
|
+
LastCalibrationDate: z.ZodOptional<z.ZodString>;
|
|
86
|
+
CalibrationEnvironment: z.ZodOptional<z.ZodString>;
|
|
87
|
+
CalibrationTechinician: z.ZodOptional<z.ZodString>;
|
|
88
|
+
CalibrationInstructions: z.ZodOptional<z.ZodString>;
|
|
89
|
+
ExernalCalibrationRecord: z.ZodOptional<z.ZodString>;
|
|
90
|
+
TestEquipmentAvailability: z.ZodOptional<z.ZodString>;
|
|
91
|
+
TestEquipmentFallsAsFound: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
declare const GagelistAddCalibrationRecordOutput: z.ZodObject<{
|
|
94
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
95
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
successfull: z.ZodNullable<z.ZodBoolean>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
declare const gagelistAddCalibrationRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
99
|
+
Days?: number | undefined;
|
|
100
|
+
Type?: string | undefined;
|
|
101
|
+
Model?: string | undefined;
|
|
102
|
+
Years?: number | undefined;
|
|
103
|
+
Months?: number | undefined;
|
|
104
|
+
AssetNo?: string | undefined;
|
|
105
|
+
Website?: string | undefined;
|
|
106
|
+
Interval?: string | undefined;
|
|
107
|
+
Location?: string | undefined;
|
|
108
|
+
SignedBy?: string | undefined;
|
|
109
|
+
TestCost?: string | undefined;
|
|
110
|
+
TestTime?: string | undefined;
|
|
111
|
+
CreatedBy?: string | undefined;
|
|
112
|
+
IsDeleted?: boolean | undefined;
|
|
113
|
+
SignedPDF?: string | undefined;
|
|
114
|
+
Tolerance?: string | undefined;
|
|
115
|
+
UpdatedBy?: string | undefined;
|
|
116
|
+
SignedDate?: string | undefined;
|
|
117
|
+
Attachments?: {
|
|
118
|
+
Id?: number | undefined;
|
|
119
|
+
FileName?: string | undefined;
|
|
120
|
+
FileSize?: number | undefined;
|
|
121
|
+
FileType?: string | undefined;
|
|
122
|
+
RecordId?: number | undefined;
|
|
123
|
+
RecordType?: string | undefined;
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
RangeOrSize?: string | undefined;
|
|
126
|
+
Uncertainty?: string | undefined;
|
|
127
|
+
UpdatedDate?: string | undefined;
|
|
128
|
+
Manufacturer?: string | undefined;
|
|
129
|
+
RecordNumber?: string | undefined;
|
|
130
|
+
SerialNumber?: string | undefined;
|
|
131
|
+
ControlNumber?: string | undefined;
|
|
132
|
+
CounterValues?: {
|
|
133
|
+
Id?: number | undefined;
|
|
134
|
+
RefID?: number | undefined;
|
|
135
|
+
FieldId?: number | undefined;
|
|
136
|
+
RefType?: number | undefined;
|
|
137
|
+
FieldValue?: string | undefined;
|
|
138
|
+
UpdatedDate?: string | undefined;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
SignatureData?: string | undefined;
|
|
141
|
+
UnitOfMeasure?: string | undefined;
|
|
142
|
+
ActionRequired?: string | undefined;
|
|
143
|
+
DateCalibrated?: string | undefined;
|
|
144
|
+
EquipmentRefId?: number | undefined;
|
|
145
|
+
MasterStandard?: string | undefined;
|
|
146
|
+
CalibrationDate?: string | undefined;
|
|
147
|
+
CalibrationTest?: string | undefined;
|
|
148
|
+
EquipmentAsLeft?: string | undefined;
|
|
149
|
+
ProductRecalled?: string | undefined;
|
|
150
|
+
RepairsRequired?: string | undefined;
|
|
151
|
+
ResponsibleUser?: string | undefined;
|
|
152
|
+
CalibrationTests?: {
|
|
153
|
+
Id?: number | undefined;
|
|
154
|
+
AsLeft?: string | undefined;
|
|
155
|
+
AsFound?: string | undefined;
|
|
156
|
+
PassFail?: string | undefined;
|
|
157
|
+
ChkAsLeft?: string | undefined;
|
|
158
|
+
Parameter?: string | undefined;
|
|
159
|
+
TestNumber?: string | undefined;
|
|
160
|
+
RefStandardID?: string | undefined;
|
|
161
|
+
ExpectedResult?: string | undefined;
|
|
162
|
+
CalibrationRefId?: number | undefined;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
DescribedRepairs?: string | undefined;
|
|
165
|
+
EquipmentAsFound?: string | undefined;
|
|
166
|
+
ToleranceComment?: string | undefined;
|
|
167
|
+
TypesMeasurement?: string | undefined;
|
|
168
|
+
ConditionReceived?: string | undefined;
|
|
169
|
+
AdditionalComments?: string | undefined;
|
|
170
|
+
CalibrationDueDate?: string | undefined;
|
|
171
|
+
FitIntendedPurpose?: string | undefined;
|
|
172
|
+
NextCalibrationDue?: string | undefined;
|
|
173
|
+
SignaturePublicKey?: string | undefined;
|
|
174
|
+
TestEquipmentFalls?: string | undefined;
|
|
175
|
+
ToleranceCondition?: string | undefined;
|
|
176
|
+
AdjustmentsRequired?: string | undefined;
|
|
177
|
+
AppropriateNotified?: string | undefined;
|
|
178
|
+
CalibrationTestMode?: string | undefined;
|
|
179
|
+
LastCalibrationDate?: string | undefined;
|
|
180
|
+
CalibrationEnvironment?: string | undefined;
|
|
181
|
+
CalibrationTechinician?: string | undefined;
|
|
182
|
+
CalibrationInstructions?: string | undefined;
|
|
183
|
+
ExernalCalibrationRecord?: string | undefined;
|
|
184
|
+
TestEquipmentAvailability?: string | undefined;
|
|
185
|
+
TestEquipmentFallsAsFound?: string | undefined;
|
|
186
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
187
|
//#endregion
|
|
8
188
|
export { gagelistAddCalibrationRecord };
|
|
9
189
|
//# sourceMappingURL=add-calibration-record.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-calibration-record.d.cts","names":[],"sources":["../../src/actions/add-calibration-record.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"add-calibration-record.d.cts","names":[],"sources":["../../src/actions/add-calibration-record.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyFjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,189 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/add-calibration-record.d.ts
|
|
4
|
-
declare const GagelistAddCalibrationRecordInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const GagelistAddCalibrationRecordInput: z.ZodObject<{
|
|
5
|
+
Days: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
Type: z.ZodOptional<z.ZodString>;
|
|
7
|
+
Model: z.ZodOptional<z.ZodString>;
|
|
8
|
+
Years: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
Months: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
AssetNo: z.ZodOptional<z.ZodString>;
|
|
11
|
+
Website: z.ZodOptional<z.ZodString>;
|
|
12
|
+
Interval: z.ZodOptional<z.ZodString>;
|
|
13
|
+
Location: z.ZodOptional<z.ZodString>;
|
|
14
|
+
SignedBy: z.ZodOptional<z.ZodString>;
|
|
15
|
+
TestCost: z.ZodOptional<z.ZodString>;
|
|
16
|
+
TestTime: z.ZodOptional<z.ZodString>;
|
|
17
|
+
CreatedBy: z.ZodOptional<z.ZodString>;
|
|
18
|
+
IsDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
SignedPDF: z.ZodOptional<z.ZodString>;
|
|
20
|
+
Tolerance: z.ZodOptional<z.ZodString>;
|
|
21
|
+
UpdatedBy: z.ZodOptional<z.ZodString>;
|
|
22
|
+
SignedDate: z.ZodOptional<z.ZodString>;
|
|
23
|
+
Attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
+
Id: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
FileName: z.ZodOptional<z.ZodString>;
|
|
26
|
+
FileSize: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
FileType: z.ZodOptional<z.ZodString>;
|
|
28
|
+
RecordId: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
RecordType: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
RangeOrSize: z.ZodOptional<z.ZodString>;
|
|
32
|
+
Uncertainty: z.ZodOptional<z.ZodString>;
|
|
33
|
+
UpdatedDate: z.ZodOptional<z.ZodString>;
|
|
34
|
+
Manufacturer: z.ZodOptional<z.ZodString>;
|
|
35
|
+
RecordNumber: z.ZodOptional<z.ZodString>;
|
|
36
|
+
SerialNumber: z.ZodOptional<z.ZodString>;
|
|
37
|
+
ControlNumber: z.ZodOptional<z.ZodString>;
|
|
38
|
+
CounterValues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
+
Id: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
RefID: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
FieldId: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
RefType: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
FieldValue: z.ZodOptional<z.ZodString>;
|
|
44
|
+
UpdatedDate: z.ZodOptional<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
SignatureData: z.ZodOptional<z.ZodString>;
|
|
47
|
+
UnitOfMeasure: z.ZodOptional<z.ZodString>;
|
|
48
|
+
ActionRequired: z.ZodOptional<z.ZodString>;
|
|
49
|
+
DateCalibrated: z.ZodOptional<z.ZodString>;
|
|
50
|
+
EquipmentRefId: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
MasterStandard: z.ZodOptional<z.ZodString>;
|
|
52
|
+
CalibrationDate: z.ZodOptional<z.ZodString>;
|
|
53
|
+
CalibrationTest: z.ZodOptional<z.ZodString>;
|
|
54
|
+
EquipmentAsLeft: z.ZodOptional<z.ZodString>;
|
|
55
|
+
ProductRecalled: z.ZodOptional<z.ZodString>;
|
|
56
|
+
RepairsRequired: z.ZodOptional<z.ZodString>;
|
|
57
|
+
ResponsibleUser: z.ZodOptional<z.ZodString>;
|
|
58
|
+
CalibrationTests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
|
+
Id: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
AsLeft: z.ZodOptional<z.ZodString>;
|
|
61
|
+
AsFound: z.ZodOptional<z.ZodString>;
|
|
62
|
+
PassFail: z.ZodOptional<z.ZodString>;
|
|
63
|
+
ChkAsLeft: z.ZodOptional<z.ZodString>;
|
|
64
|
+
Parameter: z.ZodOptional<z.ZodString>;
|
|
65
|
+
TestNumber: z.ZodOptional<z.ZodString>;
|
|
66
|
+
RefStandardID: z.ZodOptional<z.ZodString>;
|
|
67
|
+
ExpectedResult: z.ZodOptional<z.ZodString>;
|
|
68
|
+
CalibrationRefId: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
}, z.core.$strip>>>;
|
|
70
|
+
DescribedRepairs: z.ZodOptional<z.ZodString>;
|
|
71
|
+
EquipmentAsFound: z.ZodOptional<z.ZodString>;
|
|
72
|
+
ToleranceComment: z.ZodOptional<z.ZodString>;
|
|
73
|
+
TypesMeasurement: z.ZodOptional<z.ZodString>;
|
|
74
|
+
ConditionReceived: z.ZodOptional<z.ZodString>;
|
|
75
|
+
AdditionalComments: z.ZodOptional<z.ZodString>;
|
|
76
|
+
CalibrationDueDate: z.ZodOptional<z.ZodString>;
|
|
77
|
+
FitIntendedPurpose: z.ZodOptional<z.ZodString>;
|
|
78
|
+
NextCalibrationDue: z.ZodOptional<z.ZodString>;
|
|
79
|
+
SignaturePublicKey: z.ZodOptional<z.ZodString>;
|
|
80
|
+
TestEquipmentFalls: z.ZodOptional<z.ZodString>;
|
|
81
|
+
ToleranceCondition: z.ZodOptional<z.ZodString>;
|
|
82
|
+
AdjustmentsRequired: z.ZodOptional<z.ZodString>;
|
|
83
|
+
AppropriateNotified: z.ZodOptional<z.ZodString>;
|
|
84
|
+
CalibrationTestMode: z.ZodOptional<z.ZodString>;
|
|
85
|
+
LastCalibrationDate: z.ZodOptional<z.ZodString>;
|
|
86
|
+
CalibrationEnvironment: z.ZodOptional<z.ZodString>;
|
|
87
|
+
CalibrationTechinician: z.ZodOptional<z.ZodString>;
|
|
88
|
+
CalibrationInstructions: z.ZodOptional<z.ZodString>;
|
|
89
|
+
ExernalCalibrationRecord: z.ZodOptional<z.ZodString>;
|
|
90
|
+
TestEquipmentAvailability: z.ZodOptional<z.ZodString>;
|
|
91
|
+
TestEquipmentFallsAsFound: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
declare const GagelistAddCalibrationRecordOutput: z.ZodObject<{
|
|
94
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
95
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
successfull: z.ZodNullable<z.ZodBoolean>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
declare const gagelistAddCalibrationRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
99
|
+
Days?: number | undefined;
|
|
100
|
+
Type?: string | undefined;
|
|
101
|
+
Model?: string | undefined;
|
|
102
|
+
Years?: number | undefined;
|
|
103
|
+
Months?: number | undefined;
|
|
104
|
+
AssetNo?: string | undefined;
|
|
105
|
+
Website?: string | undefined;
|
|
106
|
+
Interval?: string | undefined;
|
|
107
|
+
Location?: string | undefined;
|
|
108
|
+
SignedBy?: string | undefined;
|
|
109
|
+
TestCost?: string | undefined;
|
|
110
|
+
TestTime?: string | undefined;
|
|
111
|
+
CreatedBy?: string | undefined;
|
|
112
|
+
IsDeleted?: boolean | undefined;
|
|
113
|
+
SignedPDF?: string | undefined;
|
|
114
|
+
Tolerance?: string | undefined;
|
|
115
|
+
UpdatedBy?: string | undefined;
|
|
116
|
+
SignedDate?: string | undefined;
|
|
117
|
+
Attachments?: {
|
|
118
|
+
Id?: number | undefined;
|
|
119
|
+
FileName?: string | undefined;
|
|
120
|
+
FileSize?: number | undefined;
|
|
121
|
+
FileType?: string | undefined;
|
|
122
|
+
RecordId?: number | undefined;
|
|
123
|
+
RecordType?: string | undefined;
|
|
124
|
+
}[] | undefined;
|
|
125
|
+
RangeOrSize?: string | undefined;
|
|
126
|
+
Uncertainty?: string | undefined;
|
|
127
|
+
UpdatedDate?: string | undefined;
|
|
128
|
+
Manufacturer?: string | undefined;
|
|
129
|
+
RecordNumber?: string | undefined;
|
|
130
|
+
SerialNumber?: string | undefined;
|
|
131
|
+
ControlNumber?: string | undefined;
|
|
132
|
+
CounterValues?: {
|
|
133
|
+
Id?: number | undefined;
|
|
134
|
+
RefID?: number | undefined;
|
|
135
|
+
FieldId?: number | undefined;
|
|
136
|
+
RefType?: number | undefined;
|
|
137
|
+
FieldValue?: string | undefined;
|
|
138
|
+
UpdatedDate?: string | undefined;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
SignatureData?: string | undefined;
|
|
141
|
+
UnitOfMeasure?: string | undefined;
|
|
142
|
+
ActionRequired?: string | undefined;
|
|
143
|
+
DateCalibrated?: string | undefined;
|
|
144
|
+
EquipmentRefId?: number | undefined;
|
|
145
|
+
MasterStandard?: string | undefined;
|
|
146
|
+
CalibrationDate?: string | undefined;
|
|
147
|
+
CalibrationTest?: string | undefined;
|
|
148
|
+
EquipmentAsLeft?: string | undefined;
|
|
149
|
+
ProductRecalled?: string | undefined;
|
|
150
|
+
RepairsRequired?: string | undefined;
|
|
151
|
+
ResponsibleUser?: string | undefined;
|
|
152
|
+
CalibrationTests?: {
|
|
153
|
+
Id?: number | undefined;
|
|
154
|
+
AsLeft?: string | undefined;
|
|
155
|
+
AsFound?: string | undefined;
|
|
156
|
+
PassFail?: string | undefined;
|
|
157
|
+
ChkAsLeft?: string | undefined;
|
|
158
|
+
Parameter?: string | undefined;
|
|
159
|
+
TestNumber?: string | undefined;
|
|
160
|
+
RefStandardID?: string | undefined;
|
|
161
|
+
ExpectedResult?: string | undefined;
|
|
162
|
+
CalibrationRefId?: number | undefined;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
DescribedRepairs?: string | undefined;
|
|
165
|
+
EquipmentAsFound?: string | undefined;
|
|
166
|
+
ToleranceComment?: string | undefined;
|
|
167
|
+
TypesMeasurement?: string | undefined;
|
|
168
|
+
ConditionReceived?: string | undefined;
|
|
169
|
+
AdditionalComments?: string | undefined;
|
|
170
|
+
CalibrationDueDate?: string | undefined;
|
|
171
|
+
FitIntendedPurpose?: string | undefined;
|
|
172
|
+
NextCalibrationDue?: string | undefined;
|
|
173
|
+
SignaturePublicKey?: string | undefined;
|
|
174
|
+
TestEquipmentFalls?: string | undefined;
|
|
175
|
+
ToleranceCondition?: string | undefined;
|
|
176
|
+
AdjustmentsRequired?: string | undefined;
|
|
177
|
+
AppropriateNotified?: string | undefined;
|
|
178
|
+
CalibrationTestMode?: string | undefined;
|
|
179
|
+
LastCalibrationDate?: string | undefined;
|
|
180
|
+
CalibrationEnvironment?: string | undefined;
|
|
181
|
+
CalibrationTechinician?: string | undefined;
|
|
182
|
+
CalibrationInstructions?: string | undefined;
|
|
183
|
+
ExernalCalibrationRecord?: string | undefined;
|
|
184
|
+
TestEquipmentAvailability?: string | undefined;
|
|
185
|
+
TestEquipmentFallsAsFound?: string | undefined;
|
|
186
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
187
|
//#endregion
|
|
8
188
|
export { gagelistAddCalibrationRecord };
|
|
9
189
|
//# sourceMappingURL=add-calibration-record.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-calibration-record.d.mts","names":[],"sources":["../../src/actions/add-calibration-record.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"add-calibration-record.d.mts","names":[],"sources":["../../src/actions/add-calibration-record.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyFjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -96,7 +96,7 @@ const gagelistAddCalibrationRecord = action("GAGELIST_ADD_CALIBRATION_RECORD", {
|
|
|
96
96
|
output: z.object({
|
|
97
97
|
data: z.number().int().describe("ID of the newly created calibration record. Returns null if operation failed.").nullable().optional(),
|
|
98
98
|
error: z.string().describe("Error message if the operation failed, null otherwise").nullable().optional(),
|
|
99
|
-
successfull: z.boolean().describe("Indicates whether the calibration record was successfully created")
|
|
99
|
+
successfull: z.boolean().describe("Indicates whether the calibration record was successfully created").nullable()
|
|
100
100
|
}).describe("Response model for adding calibration record.")
|
|
101
101
|
});
|
|
102
102
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-calibration-record.mjs","names":[],"sources":["../../src/actions/add-calibration-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddCalibrationRecordInput: z.ZodTypeAny = z.object({\n Days: z.number().int().describe(\"Number of days in the calibration interval (e.g., 90 for quarterly)\").optional(),\n Type: z.string().describe(\"Type or category of equipment being calibrated (e.g., 'Torque Wrench', 'Pressure Gage', 'Micrometer')\").optional(),\n Model: z.string().describe(\"Equipment model\").optional(),\n Years: z.number().int().describe(\"Number of years in the calibration interval (e.g., 1 for annual calibration)\").optional(),\n Months: z.number().int().describe(\"Number of months in the calibration interval (e.g., 6 for semi-annual)\").optional(),\n AssetNo: z.string().describe(\"Asset tag or inventory number of the equipment\").optional(),\n Website: z.string().describe(\"Manufacturer website URL\").optional(),\n Interval: z.string().describe(\"Calibration interval description\").optional(),\n Location: z.string().describe(\"Location of the equipment\").optional(),\n SignedBy: z.string().describe(\"User who signed\").optional(),\n TestCost: z.string().describe(\"Cost associated with calibration test\").optional(),\n TestTime: z.string().describe(\"Duration of test or timestamp\").optional(),\n CreatedBy: z.string().describe(\"User who created the record\").optional(),\n IsDeleted: z.boolean().describe(\"Soft delete flag\").optional(),\n SignedPDF: z.string().describe(\"Base64 or URL of signed PDF document\").optional(),\n Tolerance: z.string().describe(\"Tolerance level\").optional(),\n UpdatedBy: z.string().describe(\"User who last updated the record\").optional(),\n SignedDate: z.string().describe(\"Date of signature (ISO 8601)\").optional(),\n Attachments: z.array(z.object({\n Id: z.number().int().describe(\"Attachment identifier\").optional(),\n FileName: z.string().describe(\"Name of the file with extension\").optional(),\n FileSize: z.number().int().describe(\"Size of the file in bytes\").optional(),\n FileType: z.string().describe(\"MIME type or general file type\").optional(),\n RecordId: z.number().int().describe(\"ID of the associated record\").optional(),\n RecordType: z.string().describe(\"Type/category of this attachment\").optional(),\n}).describe(\"File attachment metadata.\")).describe(\"Array of file attachments\").optional(),\n RangeOrSize: z.string().describe(\"Operational range or size\").optional(),\n Uncertainty: z.string().describe(\"Measurement uncertainty\").optional(),\n UpdatedDate: z.string().describe(\"Last update timestamp (ISO 8601)\").optional(),\n Manufacturer: z.string().describe(\"Equipment manufacturer name\").optional(),\n RecordNumber: z.string().describe(\"Unique calibration record identifier/number for tracking (e.g., 'CAL-2024-001')\").optional(),\n SerialNumber: z.string().describe(\"Serial number of the equipment being calibrated\").optional(),\n ControlNumber: z.string().describe(\"Internal control/tracking number for the calibration\").optional(),\n CounterValues: z.array(z.object({\n Id: z.number().int().describe(\"Counter value entry ID\").optional(),\n RefID: z.number().int().describe(\"Reference ID for this field entry\").optional(),\n FieldId: z.number().int().describe(\"Custom field identifier\").optional(),\n RefType: z.number().int().describe(\"Reference type code\").optional(),\n FieldValue: z.string().describe(\"Value of the custom field\").optional(),\n UpdatedDate: z.string().describe(\"Last update timestamp (ISO 8601)\").optional(),\n}).describe(\"Custom field value entry.\")).describe(\"Array of custom counter values\").optional(),\n SignatureData: z.string().describe(\"Signature data blob or token\").optional(),\n UnitOfMeasure: z.string().describe(\"Unit of measure\").optional(),\n ActionRequired: z.string().describe(\"Actions required post-calibration\").optional(),\n DateCalibrated: z.string().describe(\"Actual calibration date (ISO 8601)\").optional(),\n EquipmentRefId: z.number().int().describe(\"Reference ID of the equipment (gage record ID) to link this calibration to. If not provided, creates a standalone calibration record.\").optional(),\n MasterStandard: z.string().describe(\"Reference standard or master gage used to perform the calibration (e.g., 'MS-001 Pressure Standard')\").optional(),\n CalibrationDate: z.string().describe(\"Date of calibration record (ISO 8601)\").optional(),\n CalibrationTest: z.string().describe(\"General calibration test performed\").optional(),\n EquipmentAsLeft: z.string().describe(\"Condition/status of equipment after calibration was completed (e.g., 'In Tolerance', 'Calibrated', 'Repaired')\").optional(),\n ProductRecalled: z.string().describe(\"Product recalled flag or info\").optional(),\n RepairsRequired: z.string().describe(\"Repairs required description\").optional(),\n ResponsibleUser: z.string().describe(\"Responsible user for calibration\").optional(),\n CalibrationTests: z.array(z.object({\n Id: z.number().int().describe(\"Unique identifier of the test entry\").optional(),\n AsLeft: z.string().describe(\"As-left reading\").optional(),\n AsFound: z.string().describe(\"As-found reading\").optional(),\n PassFail: z.string().describe(\"Pass/Fail result of the test\").optional(),\n ChkAsLeft: z.string().describe(\"Check value after adjustments\").optional(),\n Parameter: z.string().describe(\"Test parameter name\").optional(),\n TestNumber: z.string().describe(\"Test number or code\").optional(),\n RefStandardID: z.string().describe(\"Reference standard identifier\").optional(),\n ExpectedResult: z.string().describe(\"Expected result for the test\").optional(),\n CalibrationRefId: z.number().int().describe(\"Reference ID of the parent calibration record\").optional(),\n}).describe(\"Individual calibration test details.\")).describe(\"Array of individual test entries\").optional(),\n DescribedRepairs: z.string().describe(\"Description of any repairs performed\").optional(),\n EquipmentAsFound: z.string().describe(\"Condition/status of equipment when received for calibration (e.g., 'In Tolerance', 'Out of Tolerance', 'Damaged')\").optional(),\n ToleranceComment: z.string().describe(\"Comments on tolerance\").optional(),\n TypesMeasurement: z.string().describe(\"Measurement types supported\").optional(),\n ConditionReceived: z.string().describe(\"Condition when received\").optional(),\n AdditionalComments: z.string().describe(\"Additional comments or notes\").optional(),\n CalibrationDueDate: z.string().describe(\"Next due calibration date (ISO 8601)\").optional(),\n FitIntendedPurpose: z.string().describe(\"Fit for intended purpose note\").optional(),\n NextCalibrationDue: z.string().describe(\"Next calibration due date (ISO 8601)\").optional(),\n SignaturePublicKey: z.string().describe(\"Public key for signature verification\").optional(),\n TestEquipmentFalls: z.string().describe(\"Test equipment falls information\").optional(),\n ToleranceCondition: z.string().describe(\"Condition relative to tolerance\").optional(),\n AdjustmentsRequired: z.string().describe(\"Adjustments required description\").optional(),\n AppropriateNotified: z.string().describe(\"Who was notified of results\").optional(),\n CalibrationTestMode: z.string().describe(\"Mode of the calibration test\").optional(),\n LastCalibrationDate: z.string().describe(\"Date of last calibration (ISO 8601)\").optional(),\n CalibrationEnvironment: z.string().describe(\"Calibration environment conditions\").optional(),\n CalibrationTechinician: z.string().describe(\"Name or ID of the technician who performed the calibration\").optional(),\n CalibrationInstructions: z.string().describe(\"Calibration instructions or notes\").optional(),\n ExernalCalibrationRecord: z.string().describe(\"Reference to external calibration record if calibration was performed by outside lab\").optional(),\n TestEquipmentAvailability: z.string().describe(\"Availability of test equipment\").optional(),\n TestEquipmentFallsAsFound: z.string().describe(\"Equipment falls as found reading\").optional(),\n}).describe(\"Request model for adding a new calibration record.\");\nexport const GagelistAddCalibrationRecordOutput: z.ZodTypeAny = z.object({\n data: z.number().int().describe(\"ID of the newly created calibration record. Returns null if operation failed.\").nullable().optional(),\n error: z.string().describe(\"Error message if the operation failed, null otherwise\").nullable().optional(),\n successfull: z.boolean().describe(\"Indicates whether the calibration record was successfully created\"),\n}).describe(\"Response model for adding calibration record.\");\n\nexport const gagelistAddCalibrationRecord = action(\"GAGELIST_ADD_CALIBRATION_RECORD\", {\n slug: \"gagelist-add-calibration-record\",\n name: \"Add Calibration Record\",\n description: \"Creates a new calibration record in GageList to document equipment calibration results. Use this tool to record calibration activities including test results, dates, technician info, and equipment condition. Can optionally link to an existing gage record via EquipmentRefId, or create a standalone calibration record. Supports detailed test data, attachments, and custom fields.\",\n input: GagelistAddCalibrationRecordInput,\n output: GagelistAddCalibrationRecordOutput,\n});\n"],"mappings":";;AAmGA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnG6D,EAAE,OAAO;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAChH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAC5I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC1H,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACrH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CA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,CAAC,CAAC,SAAS;EACpF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACtF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACjF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAClF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACzF,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC3F,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnH,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC3F,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC/I,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1F,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,oDAWH;CACP,QAX8D,EAAE,OAAO;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mEAAmE;CACvG,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"add-calibration-record.mjs","names":[],"sources":["../../src/actions/add-calibration-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddCalibrationRecordInput = z.object({\n Days: z.number().int().describe(\"Number of days in the calibration interval (e.g., 90 for quarterly)\").optional(),\n Type: z.string().describe(\"Type or category of equipment being calibrated (e.g., 'Torque Wrench', 'Pressure Gage', 'Micrometer')\").optional(),\n Model: z.string().describe(\"Equipment model\").optional(),\n Years: z.number().int().describe(\"Number of years in the calibration interval (e.g., 1 for annual calibration)\").optional(),\n Months: z.number().int().describe(\"Number of months in the calibration interval (e.g., 6 for semi-annual)\").optional(),\n AssetNo: z.string().describe(\"Asset tag or inventory number of the equipment\").optional(),\n Website: z.string().describe(\"Manufacturer website URL\").optional(),\n Interval: z.string().describe(\"Calibration interval description\").optional(),\n Location: z.string().describe(\"Location of the equipment\").optional(),\n SignedBy: z.string().describe(\"User who signed\").optional(),\n TestCost: z.string().describe(\"Cost associated with calibration test\").optional(),\n TestTime: z.string().describe(\"Duration of test or timestamp\").optional(),\n CreatedBy: z.string().describe(\"User who created the record\").optional(),\n IsDeleted: z.boolean().describe(\"Soft delete flag\").optional(),\n SignedPDF: z.string().describe(\"Base64 or URL of signed PDF document\").optional(),\n Tolerance: z.string().describe(\"Tolerance level\").optional(),\n UpdatedBy: z.string().describe(\"User who last updated the record\").optional(),\n SignedDate: z.string().describe(\"Date of signature (ISO 8601)\").optional(),\n Attachments: z.array(z.object({\n Id: z.number().int().describe(\"Attachment identifier\").optional(),\n FileName: z.string().describe(\"Name of the file with extension\").optional(),\n FileSize: z.number().int().describe(\"Size of the file in bytes\").optional(),\n FileType: z.string().describe(\"MIME type or general file type\").optional(),\n RecordId: z.number().int().describe(\"ID of the associated record\").optional(),\n RecordType: z.string().describe(\"Type/category of this attachment\").optional(),\n}).describe(\"File attachment metadata.\")).describe(\"Array of file attachments\").optional(),\n RangeOrSize: z.string().describe(\"Operational range or size\").optional(),\n Uncertainty: z.string().describe(\"Measurement uncertainty\").optional(),\n UpdatedDate: z.string().describe(\"Last update timestamp (ISO 8601)\").optional(),\n Manufacturer: z.string().describe(\"Equipment manufacturer name\").optional(),\n RecordNumber: z.string().describe(\"Unique calibration record identifier/number for tracking (e.g., 'CAL-2024-001')\").optional(),\n SerialNumber: z.string().describe(\"Serial number of the equipment being calibrated\").optional(),\n ControlNumber: z.string().describe(\"Internal control/tracking number for the calibration\").optional(),\n CounterValues: z.array(z.object({\n Id: z.number().int().describe(\"Counter value entry ID\").optional(),\n RefID: z.number().int().describe(\"Reference ID for this field entry\").optional(),\n FieldId: z.number().int().describe(\"Custom field identifier\").optional(),\n RefType: z.number().int().describe(\"Reference type code\").optional(),\n FieldValue: z.string().describe(\"Value of the custom field\").optional(),\n UpdatedDate: z.string().describe(\"Last update timestamp (ISO 8601)\").optional(),\n}).describe(\"Custom field value entry.\")).describe(\"Array of custom counter values\").optional(),\n SignatureData: z.string().describe(\"Signature data blob or token\").optional(),\n UnitOfMeasure: z.string().describe(\"Unit of measure\").optional(),\n ActionRequired: z.string().describe(\"Actions required post-calibration\").optional(),\n DateCalibrated: z.string().describe(\"Actual calibration date (ISO 8601)\").optional(),\n EquipmentRefId: z.number().int().describe(\"Reference ID of the equipment (gage record ID) to link this calibration to. If not provided, creates a standalone calibration record.\").optional(),\n MasterStandard: z.string().describe(\"Reference standard or master gage used to perform the calibration (e.g., 'MS-001 Pressure Standard')\").optional(),\n CalibrationDate: z.string().describe(\"Date of calibration record (ISO 8601)\").optional(),\n CalibrationTest: z.string().describe(\"General calibration test performed\").optional(),\n EquipmentAsLeft: z.string().describe(\"Condition/status of equipment after calibration was completed (e.g., 'In Tolerance', 'Calibrated', 'Repaired')\").optional(),\n ProductRecalled: z.string().describe(\"Product recalled flag or info\").optional(),\n RepairsRequired: z.string().describe(\"Repairs required description\").optional(),\n ResponsibleUser: z.string().describe(\"Responsible user for calibration\").optional(),\n CalibrationTests: z.array(z.object({\n Id: z.number().int().describe(\"Unique identifier of the test entry\").optional(),\n AsLeft: z.string().describe(\"As-left reading\").optional(),\n AsFound: z.string().describe(\"As-found reading\").optional(),\n PassFail: z.string().describe(\"Pass/Fail result of the test\").optional(),\n ChkAsLeft: z.string().describe(\"Check value after adjustments\").optional(),\n Parameter: z.string().describe(\"Test parameter name\").optional(),\n TestNumber: z.string().describe(\"Test number or code\").optional(),\n RefStandardID: z.string().describe(\"Reference standard identifier\").optional(),\n ExpectedResult: z.string().describe(\"Expected result for the test\").optional(),\n CalibrationRefId: z.number().int().describe(\"Reference ID of the parent calibration record\").optional(),\n}).describe(\"Individual calibration test details.\")).describe(\"Array of individual test entries\").optional(),\n DescribedRepairs: z.string().describe(\"Description of any repairs performed\").optional(),\n EquipmentAsFound: z.string().describe(\"Condition/status of equipment when received for calibration (e.g., 'In Tolerance', 'Out of Tolerance', 'Damaged')\").optional(),\n ToleranceComment: z.string().describe(\"Comments on tolerance\").optional(),\n TypesMeasurement: z.string().describe(\"Measurement types supported\").optional(),\n ConditionReceived: z.string().describe(\"Condition when received\").optional(),\n AdditionalComments: z.string().describe(\"Additional comments or notes\").optional(),\n CalibrationDueDate: z.string().describe(\"Next due calibration date (ISO 8601)\").optional(),\n FitIntendedPurpose: z.string().describe(\"Fit for intended purpose note\").optional(),\n NextCalibrationDue: z.string().describe(\"Next calibration due date (ISO 8601)\").optional(),\n SignaturePublicKey: z.string().describe(\"Public key for signature verification\").optional(),\n TestEquipmentFalls: z.string().describe(\"Test equipment falls information\").optional(),\n ToleranceCondition: z.string().describe(\"Condition relative to tolerance\").optional(),\n AdjustmentsRequired: z.string().describe(\"Adjustments required description\").optional(),\n AppropriateNotified: z.string().describe(\"Who was notified of results\").optional(),\n CalibrationTestMode: z.string().describe(\"Mode of the calibration test\").optional(),\n LastCalibrationDate: z.string().describe(\"Date of last calibration (ISO 8601)\").optional(),\n CalibrationEnvironment: z.string().describe(\"Calibration environment conditions\").optional(),\n CalibrationTechinician: z.string().describe(\"Name or ID of the technician who performed the calibration\").optional(),\n CalibrationInstructions: z.string().describe(\"Calibration instructions or notes\").optional(),\n ExernalCalibrationRecord: z.string().describe(\"Reference to external calibration record if calibration was performed by outside lab\").optional(),\n TestEquipmentAvailability: z.string().describe(\"Availability of test equipment\").optional(),\n TestEquipmentFallsAsFound: z.string().describe(\"Equipment falls as found reading\").optional(),\n}).describe(\"Request model for adding a new calibration record.\");\nexport const GagelistAddCalibrationRecordOutput = z.object({\n data: z.number().int().describe(\"ID of the newly created calibration record. Returns null if operation failed.\").nullable().optional(),\n error: z.string().describe(\"Error message if the operation failed, null otherwise\").nullable().optional(),\n successfull: z.boolean().describe(\"Indicates whether the calibration record was successfully created\").nullable(),\n}).describe(\"Response model for adding calibration record.\");\n\nexport const gagelistAddCalibrationRecord = action(\"GAGELIST_ADD_CALIBRATION_RECORD\", {\n slug: \"gagelist-add-calibration-record\",\n name: \"Add Calibration Record\",\n description: \"Creates a new calibration record in GageList to document equipment calibration results. Use this tool to record calibration activities including test results, dates, technician info, and equipment condition. Can optionally link to an existing gage record via EquipmentRefId, or create a standalone calibration record. Supports detailed test data, attachments, and custom fields.\",\n input: GagelistAddCalibrationRecordInput,\n output: GagelistAddCalibrationRecordOutput,\n});\n"],"mappings":";;AAmGA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnG+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EAChH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAC5I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC1H,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACrH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,OAAO,C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F;AACV,CAAC"}
|
|
@@ -57,9 +57,9 @@ const GagelistAddGageRecordInput = zod.z.object({
|
|
|
57
57
|
CalibrationInstructions: zod.z.string().describe("Calibration instructions").optional()
|
|
58
58
|
}).describe("Request model for adding a new gage record.");
|
|
59
59
|
const GagelistAddGageRecordOutput = zod.z.object({
|
|
60
|
-
data: zod.z.number().int().describe("Newly created gage record ID"),
|
|
60
|
+
data: zod.z.number().int().describe("Newly created gage record ID").nullable(),
|
|
61
61
|
message: zod.z.string().describe("Additional information or error message").nullable().optional(),
|
|
62
|
-
success: zod.z.boolean().describe("True if creation succeeded")
|
|
62
|
+
success: zod.z.boolean().describe("True if creation succeeded").nullable()
|
|
63
63
|
}).describe("Response model for add gage record action.");
|
|
64
64
|
const gagelistAddGageRecord = require_action.action("GAGELIST_ADD_GAGE_RECORD", {
|
|
65
65
|
slug: "gagelist-add-gage-record",
|