@keystrokehq/gagelist 0.1.1 → 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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-calibration-record.cjs +2 -2
- package/dist/actions/add-calibration-record.cjs.map +1 -1
- package/dist/actions/add-calibration-record.d.cts +3 -7
- package/dist/actions/add-calibration-record.d.mts +3 -7
- package/dist/actions/add-calibration-record.mjs +2 -2
- package/dist/actions/add-calibration-record.mjs.map +1 -1
- package/dist/actions/add-gage-record.cjs +1 -1
- package/dist/actions/add-gage-record.cjs.map +1 -1
- package/dist/actions/add-gage-record.d.cts +2 -6
- package/dist/actions/add-gage-record.d.mts +2 -6
- package/dist/actions/add-gage-record.mjs +1 -1
- package/dist/actions/add-gage-record.mjs.map +1 -1
- package/dist/actions/add-manufacturer.cjs +2 -2
- package/dist/actions/add-manufacturer.cjs.map +1 -1
- package/dist/actions/add-manufacturer.d.cts +3 -7
- package/dist/actions/add-manufacturer.d.mts +3 -7
- package/dist/actions/add-manufacturer.mjs +2 -2
- package/dist/actions/add-manufacturer.mjs.map +1 -1
- package/dist/actions/authenticate-with-gagelist.cjs +1 -1
- package/dist/actions/authenticate-with-gagelist.cjs.map +1 -1
- package/dist/actions/authenticate-with-gagelist.d.cts +2 -12
- package/dist/actions/authenticate-with-gagelist.d.mts +2 -12
- package/dist/actions/authenticate-with-gagelist.mjs +1 -1
- package/dist/actions/authenticate-with-gagelist.mjs.map +1 -1
- package/dist/actions/delete-calibration-record.d.cts +1 -5
- package/dist/actions/delete-calibration-record.d.mts +1 -5
- package/dist/actions/delete-gage-record.d.cts +1 -5
- package/dist/actions/delete-gage-record.d.mts +1 -5
- package/dist/actions/delete-manufacturer.d.cts +1 -5
- package/dist/actions/delete-manufacturer.d.mts +1 -5
- package/dist/actions/generate-calibration-certificate.d.cts +1 -7
- package/dist/actions/generate-calibration-certificate.d.mts +1 -7
- package/dist/actions/get-account-settings.cjs +1 -1
- package/dist/actions/get-account-settings.cjs.map +1 -1
- package/dist/actions/get-account-settings.d.cts +2 -38
- package/dist/actions/get-account-settings.d.cts.map +1 -1
- package/dist/actions/get-account-settings.d.mts +2 -38
- package/dist/actions/get-account-settings.d.mts.map +1 -1
- package/dist/actions/get-account-settings.mjs +1 -1
- package/dist/actions/get-account-settings.mjs.map +1 -1
- package/dist/actions/get-account-status.cjs +6 -6
- package/dist/actions/get-account-status.cjs.map +1 -1
- package/dist/actions/get-account-status.d.cts +8 -79
- package/dist/actions/get-account-status.d.cts.map +1 -1
- package/dist/actions/get-account-status.d.mts +8 -79
- package/dist/actions/get-account-status.d.mts.map +1 -1
- package/dist/actions/get-account-status.mjs +6 -6
- package/dist/actions/get-account-status.mjs.map +1 -1
- package/dist/actions/get-all-calibration-records.cjs +69 -69
- package/dist/actions/get-all-calibration-records.cjs.map +1 -1
- package/dist/actions/get-all-calibration-records.d.cts +70 -141
- package/dist/actions/get-all-calibration-records.d.mts +70 -141
- package/dist/actions/get-all-calibration-records.mjs +69 -69
- package/dist/actions/get-all-calibration-records.mjs.map +1 -1
- package/dist/actions/get-all-gage-records.cjs +48 -48
- package/dist/actions/get-all-gage-records.cjs.map +1 -1
- package/dist/actions/get-all-gage-records.d.cts +49 -99
- package/dist/actions/get-all-gage-records.d.mts +49 -99
- package/dist/actions/get-all-gage-records.mjs +48 -48
- package/dist/actions/get-all-gage-records.mjs.map +1 -1
- package/dist/actions/get-all-manufacturers.cjs +1 -1
- package/dist/actions/get-all-manufacturers.cjs.map +1 -1
- package/dist/actions/get-all-manufacturers.d.cts +2 -17
- package/dist/actions/get-all-manufacturers.d.cts.map +1 -1
- package/dist/actions/get-all-manufacturers.d.mts +2 -17
- package/dist/actions/get-all-manufacturers.d.mts.map +1 -1
- package/dist/actions/get-all-manufacturers.mjs +1 -1
- package/dist/actions/get-all-manufacturers.mjs.map +1 -1
- package/dist/actions/get-attachment.d.cts +1 -7
- package/dist/actions/get-attachment.d.mts +1 -7
- package/dist/actions/get-custom-fields.cjs +1 -1
- package/dist/actions/get-custom-fields.cjs.map +1 -1
- package/dist/actions/get-custom-fields.d.cts +2 -26
- package/dist/actions/get-custom-fields.d.cts.map +1 -1
- package/dist/actions/get-custom-fields.d.mts +2 -26
- package/dist/actions/get-custom-fields.d.mts.map +1 -1
- package/dist/actions/get-custom-fields.mjs +1 -1
- package/dist/actions/get-custom-fields.mjs.map +1 -1
- package/dist/actions/get-single-calibration-record.cjs +3 -3
- package/dist/actions/get-single-calibration-record.cjs.map +1 -1
- package/dist/actions/get-single-calibration-record.d.cts +4 -98
- package/dist/actions/get-single-calibration-record.d.mts +4 -98
- package/dist/actions/get-single-calibration-record.mjs +3 -3
- package/dist/actions/get-single-calibration-record.mjs.map +1 -1
- package/dist/actions/get-single-gage-record.cjs +52 -52
- package/dist/actions/get-single-gage-record.cjs.map +1 -1
- package/dist/actions/get-single-gage-record.d.cts +53 -111
- package/dist/actions/get-single-gage-record.d.mts +53 -111
- package/dist/actions/get-single-gage-record.mjs +52 -52
- package/dist/actions/get-single-gage-record.mjs.map +1 -1
- package/dist/actions/update-account-settings.d.cts +1 -4
- package/dist/actions/update-account-settings.d.mts +1 -4
- 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 +2 -6
- package/dist/actions/update-custom-field-values.d.mts +2 -6
- 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.d.cts +1 -5
- package/dist/actions/update-manufacturer.d.mts +1 -5
- package/dist/actions/upload-attachment-to-gage-record.cjs +1 -1
- package/dist/actions/upload-attachment-to-gage-record.cjs.map +1 -1
- package/dist/actions/upload-attachment-to-gage-record.d.cts +2 -6
- package/dist/actions/upload-attachment-to-gage-record.d.mts +2 -6
- package/dist/actions/upload-attachment-to-gage-record.mjs +1 -1
- package/dist/actions/upload-attachment-to-gage-record.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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"}
|
|
@@ -91,8 +91,8 @@ const GagelistAddCalibrationRecordInput = zod.z.object({
|
|
|
91
91
|
TestEquipmentFallsAsFound: zod.z.string().describe("Equipment falls as found reading").optional()
|
|
92
92
|
}).describe("Request model for adding a new calibration record.");
|
|
93
93
|
const GagelistAddCalibrationRecordOutput = zod.z.object({
|
|
94
|
-
data: zod.z.
|
|
95
|
-
error: zod.z.
|
|
94
|
+
data: zod.z.number().int().describe("ID of the newly created calibration record. Returns null if operation failed.").nullable().optional(),
|
|
95
|
+
error: zod.z.string().describe("Error message if the operation failed, null otherwise").nullable().optional(),
|
|
96
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", {
|
|
@@ -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.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.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the newly created calibration record. Returns null if operation failed.\").optional()),\n error: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Error message if the operation failed, null otherwise\").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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;CACzF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3F,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnH,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3F,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,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,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC;CACzL,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC;CAC5J,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
|
+
{"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,CAA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A,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC3F,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,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,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,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,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"}
|
|
@@ -91,8 +91,8 @@ declare const GagelistAddCalibrationRecordInput: z.ZodObject<{
|
|
|
91
91
|
TestEquipmentFallsAsFound: z.ZodOptional<z.ZodString>;
|
|
92
92
|
}, z.core.$strip>;
|
|
93
93
|
declare const GagelistAddCalibrationRecordOutput: z.ZodObject<{
|
|
94
|
-
data: z.
|
|
95
|
-
error: z.
|
|
94
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
95
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
96
|
successfull: z.ZodNullable<z.ZodBoolean>;
|
|
97
97
|
}, z.core.$strip>;
|
|
98
98
|
declare const gagelistAddCalibrationRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -183,11 +183,7 @@ declare const gagelistAddCalibrationRecord: import("@keystrokehq/action").Workfl
|
|
|
183
183
|
ExernalCalibrationRecord?: string | undefined;
|
|
184
184
|
TestEquipmentAvailability?: string | undefined;
|
|
185
185
|
TestEquipmentFallsAsFound?: string | undefined;
|
|
186
|
-
},
|
|
187
|
-
successfull: boolean | null;
|
|
188
|
-
data?: number | undefined;
|
|
189
|
-
error?: string | undefined;
|
|
190
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
186
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
191
187
|
//#endregion
|
|
192
188
|
export { gagelistAddCalibrationRecord };
|
|
193
189
|
//# sourceMappingURL=add-calibration-record.d.cts.map
|
|
@@ -91,8 +91,8 @@ declare const GagelistAddCalibrationRecordInput: z.ZodObject<{
|
|
|
91
91
|
TestEquipmentFallsAsFound: z.ZodOptional<z.ZodString>;
|
|
92
92
|
}, z.core.$strip>;
|
|
93
93
|
declare const GagelistAddCalibrationRecordOutput: z.ZodObject<{
|
|
94
|
-
data: z.
|
|
95
|
-
error: z.
|
|
94
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
95
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
96
|
successfull: z.ZodNullable<z.ZodBoolean>;
|
|
97
97
|
}, z.core.$strip>;
|
|
98
98
|
declare const gagelistAddCalibrationRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -183,11 +183,7 @@ declare const gagelistAddCalibrationRecord: import("@keystrokehq/action").Workfl
|
|
|
183
183
|
ExernalCalibrationRecord?: string | undefined;
|
|
184
184
|
TestEquipmentAvailability?: string | undefined;
|
|
185
185
|
TestEquipmentFallsAsFound?: string | undefined;
|
|
186
|
-
},
|
|
187
|
-
successfull: boolean | null;
|
|
188
|
-
data?: number | undefined;
|
|
189
|
-
error?: string | undefined;
|
|
190
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
186
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
191
187
|
//#endregion
|
|
192
188
|
export { gagelistAddCalibrationRecord };
|
|
193
189
|
//# sourceMappingURL=add-calibration-record.d.mts.map
|
|
@@ -94,8 +94,8 @@ const gagelistAddCalibrationRecord = action("GAGELIST_ADD_CALIBRATION_RECORD", {
|
|
|
94
94
|
TestEquipmentFallsAsFound: z.string().describe("Equipment falls as found reading").optional()
|
|
95
95
|
}).describe("Request model for adding a new calibration record."),
|
|
96
96
|
output: z.object({
|
|
97
|
-
data: z.
|
|
98
|
-
error: z.
|
|
97
|
+
data: z.number().int().describe("ID of the newly created calibration record. Returns null if operation failed.").nullable().optional(),
|
|
98
|
+
error: z.string().describe("Error message if the operation failed, null otherwise").nullable().optional(),
|
|
99
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
|
});
|
|
@@ -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.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.preprocess((value) => (value === null ? undefined : value), z.number().int().describe(\"ID of the newly created calibration record. Returns null if operation failed.\").optional()),\n error: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Error message if the operation failed, null otherwise\").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,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2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["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,CAA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EAAmE,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
|
|
@@ -58,7 +58,7 @@ const GagelistAddGageRecordInput = zod.z.object({
|
|
|
58
58
|
}).describe("Request model for adding a new gage record.");
|
|
59
59
|
const GagelistAddGageRecordOutput = zod.z.object({
|
|
60
60
|
data: zod.z.number().int().describe("Newly created gage record ID").nullable(),
|
|
61
|
-
message: zod.z.
|
|
61
|
+
message: zod.z.string().describe("Additional information or error message").nullable().optional(),
|
|
62
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", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-gage-record.cjs","names":["z","action"],"sources":["../../src/actions/add-gage-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddGageRecordInput = z.object({\n Id: z.number().int().describe(\"Unique identifier; server assigns if omitted\").optional(),\n Area: z.string().describe(\"Operational area\").optional(),\n Days: z.number().int().describe(\"Calibration interval days\").optional(),\n Type: z.string().describe(\"Gage type\").optional(),\n Model: z.string().describe(\"Model of the gage\").optional(),\n Years: z.number().int().describe(\"Calibration interval years\").optional(),\n Months: z.number().int().describe(\"Calibration interval months\").optional(),\n Status: z.string().describe(\"Current status of the gage\").optional(),\n AssetNo: z.string().describe(\"Asset number\").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 gage\").optional(),\n CreatedBy: z.string().describe(\"Record creator\").optional(),\n IsDeleted: z.boolean().describe(\"Soft delete flag\").optional(),\n Tolerance: z.string().describe(\"Tolerance level or specification\").optional(),\n UpdatedBy: z.string().describe(\"Last user who updated record\").optional(),\n NISTNumber: z.string().describe(\"NIST standard number\").optional(),\n Attachments: z.array(z.object({\n Id: z.number().int().describe(\"Attachment unique identifier\"),\n FileName: z.string().describe(\"Filename including extension\"),\n FileSize: z.number().int().describe(\"Size of file in bytes\"),\n FileType: z.string().describe(\"MIME type or general file type\"),\n RecordId: z.number().int().describe(\"ID of the record this file is attached to\"),\n RecordType: z.string().describe(\"Type/category of this attachment\"),\n}).describe(\"File attachment metadata.\")).describe(\"List of attachments\").optional(),\n DateAquired: z.string().describe(\"Date acquired in ISO 8601 format\").optional(),\n RangeOrSize: z.string().describe(\"Operational range or size\").optional(),\n UpdatedDate: z.string().describe(\"Last updated date\").optional(),\n Manufacturer: z.string().describe(\"Manufacturer name\").optional(),\n SerialNumber: z.string().describe(\"Serial number of the gage record\"),\n ControlNumber: z.string().describe(\"Control number\").optional(),\n PurchasePrice: z.number().describe(\"Purchase price in USD\").optional(),\n TestTemplates: z.array(z.object({\n Id: z.number().int().describe(\"Unique identifier of the test template\"),\n Parameter: z.string().describe(\"Parameter being tested\"),\n TestNumber: z.string().describe(\"Test number designation\"),\n RefStandardID: z.string().describe(\"Reference standard ID used\"),\n EquipmentRefId: z.number().int().describe(\"Reference ID of the equipment\"),\n ExpectedResult: z.string().describe(\"Expected outcome of the test\"),\n}).describe(\"Test template configuration for a gage.\")).describe(\"List of test templates\").optional(),\n UnitOfMeasure: z.string().describe(\"Unit of measure used\").optional(),\n MasterStandard: z.string().describe(\"Master standard used for calibration\").optional(),\n SourceOrVendor: z.string().describe(\"Vendor or source of acquisition\").optional(),\n ResponsibleUser: z.string().describe(\"User responsible for the gage\").optional(),\n ConditionAquired: z.string().describe(\"Condition at acquisition\").optional(),\n NotificationList: z.string().describe(\"Comma-separated list of users to notify\").optional(),\n OtherInformation: z.string().describe(\"Additional information\").optional(),\n TypesMeasurement: z.string().describe(\"Measurement types supported\").optional(),\n CalibrationDueDate: z.string().describe(\"Next calibration due date in ISO 8601 format\").optional(),\n CalibrationTestMode: z.string().describe(\"Calibration test mode used\").optional(),\n LastCalibrationDate: z.string().describe(\"Last calibration date in ISO 8601 format\").optional(),\n CalibrationEnvironment: z.string().describe(\"Calibration environment conditions\").optional(),\n CalibrationInstructions: z.string().describe(\"Calibration instructions\").optional(),\n}).describe(\"Request model for adding a new gage record.\");\nexport const GagelistAddGageRecordOutput = z.object({\n data: z.number().int().describe(\"Newly created gage record ID\").nullable(),\n message: z.
|
|
1
|
+
{"version":3,"file":"add-gage-record.cjs","names":["z","action"],"sources":["../../src/actions/add-gage-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddGageRecordInput = z.object({\n Id: z.number().int().describe(\"Unique identifier; server assigns if omitted\").optional(),\n Area: z.string().describe(\"Operational area\").optional(),\n Days: z.number().int().describe(\"Calibration interval days\").optional(),\n Type: z.string().describe(\"Gage type\").optional(),\n Model: z.string().describe(\"Model of the gage\").optional(),\n Years: z.number().int().describe(\"Calibration interval years\").optional(),\n Months: z.number().int().describe(\"Calibration interval months\").optional(),\n Status: z.string().describe(\"Current status of the gage\").optional(),\n AssetNo: z.string().describe(\"Asset number\").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 gage\").optional(),\n CreatedBy: z.string().describe(\"Record creator\").optional(),\n IsDeleted: z.boolean().describe(\"Soft delete flag\").optional(),\n Tolerance: z.string().describe(\"Tolerance level or specification\").optional(),\n UpdatedBy: z.string().describe(\"Last user who updated record\").optional(),\n NISTNumber: z.string().describe(\"NIST standard number\").optional(),\n Attachments: z.array(z.object({\n Id: z.number().int().describe(\"Attachment unique identifier\"),\n FileName: z.string().describe(\"Filename including extension\"),\n FileSize: z.number().int().describe(\"Size of file in bytes\"),\n FileType: z.string().describe(\"MIME type or general file type\"),\n RecordId: z.number().int().describe(\"ID of the record this file is attached to\"),\n RecordType: z.string().describe(\"Type/category of this attachment\"),\n}).describe(\"File attachment metadata.\")).describe(\"List of attachments\").optional(),\n DateAquired: z.string().describe(\"Date acquired in ISO 8601 format\").optional(),\n RangeOrSize: z.string().describe(\"Operational range or size\").optional(),\n UpdatedDate: z.string().describe(\"Last updated date\").optional(),\n Manufacturer: z.string().describe(\"Manufacturer name\").optional(),\n SerialNumber: z.string().describe(\"Serial number of the gage record\"),\n ControlNumber: z.string().describe(\"Control number\").optional(),\n PurchasePrice: z.number().describe(\"Purchase price in USD\").optional(),\n TestTemplates: z.array(z.object({\n Id: z.number().int().describe(\"Unique identifier of the test template\"),\n Parameter: z.string().describe(\"Parameter being tested\"),\n TestNumber: z.string().describe(\"Test number designation\"),\n RefStandardID: z.string().describe(\"Reference standard ID used\"),\n EquipmentRefId: z.number().int().describe(\"Reference ID of the equipment\"),\n ExpectedResult: z.string().describe(\"Expected outcome of the test\"),\n}).describe(\"Test template configuration for a gage.\")).describe(\"List of test templates\").optional(),\n UnitOfMeasure: z.string().describe(\"Unit of measure used\").optional(),\n MasterStandard: z.string().describe(\"Master standard used for calibration\").optional(),\n SourceOrVendor: z.string().describe(\"Vendor or source of acquisition\").optional(),\n ResponsibleUser: z.string().describe(\"User responsible for the gage\").optional(),\n ConditionAquired: z.string().describe(\"Condition at acquisition\").optional(),\n NotificationList: z.string().describe(\"Comma-separated list of users to notify\").optional(),\n OtherInformation: z.string().describe(\"Additional information\").optional(),\n TypesMeasurement: z.string().describe(\"Measurement types supported\").optional(),\n CalibrationDueDate: z.string().describe(\"Next calibration due date in ISO 8601 format\").optional(),\n CalibrationTestMode: z.string().describe(\"Calibration test mode used\").optional(),\n LastCalibrationDate: z.string().describe(\"Last calibration date in ISO 8601 format\").optional(),\n CalibrationEnvironment: z.string().describe(\"Calibration environment conditions\").optional(),\n CalibrationInstructions: z.string().describe(\"Calibration instructions\").optional(),\n}).describe(\"Request model for adding a new gage record.\");\nexport const GagelistAddGageRecordOutput = z.object({\n data: z.number().int().describe(\"Newly created gage record ID\").nullable(),\n message: z.string().describe(\"Additional information or error message\").nullable().optional(),\n success: z.boolean().describe(\"True if creation succeeded\").nullable(),\n}).describe(\"Response model for add gage record action.\");\n\nexport const gagelistAddGageRecord = action(\"GAGELIST_ADD_GAGE_RECORD\", {\n slug: \"gagelist-add-gage-record\",\n name: \"Add Gage Record\",\n description: \"Tool to add a new gage record. Use after gathering all required gage attributes to create a record.\",\n input: GagelistAddGageRecordInput,\n output: GagelistAddGageRecordOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACzD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACtD,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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RecordOutput: z.ZodObject<{
|
|
60
60
|
data: z.ZodNullable<z.ZodNumber>;
|
|
61
|
-
message: z.
|
|
61
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
62
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
63
63
|
}, z.core.$strip>;
|
|
64
64
|
declare const gagelistAddGageRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -115,11 +115,7 @@ declare const gagelistAddGageRecord: import("@keystrokehq/action").WorkflowActio
|
|
|
115
115
|
LastCalibrationDate?: string | undefined;
|
|
116
116
|
CalibrationEnvironment?: string | undefined;
|
|
117
117
|
CalibrationInstructions?: string | undefined;
|
|
118
|
-
},
|
|
119
|
-
data: number | null;
|
|
120
|
-
success: boolean | null;
|
|
121
|
-
message?: string | undefined;
|
|
122
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
118
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
123
119
|
//#endregion
|
|
124
120
|
export { gagelistAddGageRecord };
|
|
125
121
|
//# sourceMappingURL=add-gage-record.d.cts.map
|
|
@@ -58,7 +58,7 @@ declare const GagelistAddGageRecordInput: z.ZodObject<{
|
|
|
58
58
|
}, z.core.$strip>;
|
|
59
59
|
declare const GagelistAddGageRecordOutput: z.ZodObject<{
|
|
60
60
|
data: z.ZodNullable<z.ZodNumber>;
|
|
61
|
-
message: z.
|
|
61
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
62
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
63
63
|
}, z.core.$strip>;
|
|
64
64
|
declare const gagelistAddGageRecord: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -115,11 +115,7 @@ declare const gagelistAddGageRecord: import("@keystrokehq/action").WorkflowActio
|
|
|
115
115
|
LastCalibrationDate?: string | undefined;
|
|
116
116
|
CalibrationEnvironment?: string | undefined;
|
|
117
117
|
CalibrationInstructions?: string | undefined;
|
|
118
|
-
},
|
|
119
|
-
data: number | null;
|
|
120
|
-
success: boolean | null;
|
|
121
|
-
message?: string | undefined;
|
|
122
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
118
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
123
119
|
//#endregion
|
|
124
120
|
export { gagelistAddGageRecord };
|
|
125
121
|
//# sourceMappingURL=add-gage-record.d.mts.map
|
|
@@ -61,7 +61,7 @@ const gagelistAddGageRecord = action("GAGELIST_ADD_GAGE_RECORD", {
|
|
|
61
61
|
}).describe("Request model for adding a new gage record."),
|
|
62
62
|
output: z.object({
|
|
63
63
|
data: z.number().int().describe("Newly created gage record ID").nullable(),
|
|
64
|
-
message: z.
|
|
64
|
+
message: z.string().describe("Additional information or error message").nullable().optional(),
|
|
65
65
|
success: z.boolean().describe("True if creation succeeded").nullable()
|
|
66
66
|
}).describe("Response model for add gage record action.")
|
|
67
67
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-gage-record.mjs","names":[],"sources":["../../src/actions/add-gage-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddGageRecordInput = z.object({\n Id: z.number().int().describe(\"Unique identifier; server assigns if omitted\").optional(),\n Area: z.string().describe(\"Operational area\").optional(),\n Days: z.number().int().describe(\"Calibration interval days\").optional(),\n Type: z.string().describe(\"Gage type\").optional(),\n Model: z.string().describe(\"Model of the gage\").optional(),\n Years: z.number().int().describe(\"Calibration interval years\").optional(),\n Months: z.number().int().describe(\"Calibration interval months\").optional(),\n Status: z.string().describe(\"Current status of the gage\").optional(),\n AssetNo: z.string().describe(\"Asset number\").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 gage\").optional(),\n CreatedBy: z.string().describe(\"Record creator\").optional(),\n IsDeleted: z.boolean().describe(\"Soft delete flag\").optional(),\n Tolerance: z.string().describe(\"Tolerance level or specification\").optional(),\n UpdatedBy: z.string().describe(\"Last user who updated record\").optional(),\n NISTNumber: z.string().describe(\"NIST standard number\").optional(),\n Attachments: z.array(z.object({\n Id: z.number().int().describe(\"Attachment unique identifier\"),\n FileName: z.string().describe(\"Filename including extension\"),\n FileSize: z.number().int().describe(\"Size of file in bytes\"),\n FileType: z.string().describe(\"MIME type or general file type\"),\n RecordId: z.number().int().describe(\"ID of the record this file is attached to\"),\n RecordType: z.string().describe(\"Type/category of this attachment\"),\n}).describe(\"File attachment metadata.\")).describe(\"List of attachments\").optional(),\n DateAquired: z.string().describe(\"Date acquired in ISO 8601 format\").optional(),\n RangeOrSize: z.string().describe(\"Operational range or size\").optional(),\n UpdatedDate: z.string().describe(\"Last updated date\").optional(),\n Manufacturer: z.string().describe(\"Manufacturer name\").optional(),\n SerialNumber: z.string().describe(\"Serial number of the gage record\"),\n ControlNumber: z.string().describe(\"Control number\").optional(),\n PurchasePrice: z.number().describe(\"Purchase price in USD\").optional(),\n TestTemplates: z.array(z.object({\n Id: z.number().int().describe(\"Unique identifier of the test template\"),\n Parameter: z.string().describe(\"Parameter being tested\"),\n TestNumber: z.string().describe(\"Test number designation\"),\n RefStandardID: z.string().describe(\"Reference standard ID used\"),\n EquipmentRefId: z.number().int().describe(\"Reference ID of the equipment\"),\n ExpectedResult: z.string().describe(\"Expected outcome of the test\"),\n}).describe(\"Test template configuration for a gage.\")).describe(\"List of test templates\").optional(),\n UnitOfMeasure: z.string().describe(\"Unit of measure used\").optional(),\n MasterStandard: z.string().describe(\"Master standard used for calibration\").optional(),\n SourceOrVendor: z.string().describe(\"Vendor or source of acquisition\").optional(),\n ResponsibleUser: z.string().describe(\"User responsible for the gage\").optional(),\n ConditionAquired: z.string().describe(\"Condition at acquisition\").optional(),\n NotificationList: z.string().describe(\"Comma-separated list of users to notify\").optional(),\n OtherInformation: z.string().describe(\"Additional information\").optional(),\n TypesMeasurement: z.string().describe(\"Measurement types supported\").optional(),\n CalibrationDueDate: z.string().describe(\"Next calibration due date in ISO 8601 format\").optional(),\n CalibrationTestMode: z.string().describe(\"Calibration test mode used\").optional(),\n LastCalibrationDate: z.string().describe(\"Last calibration date in ISO 8601 format\").optional(),\n CalibrationEnvironment: z.string().describe(\"Calibration environment conditions\").optional(),\n CalibrationInstructions: z.string().describe(\"Calibration instructions\").optional(),\n}).describe(\"Request model for adding a new gage record.\");\nexport const GagelistAddGageRecordOutput = z.object({\n data: z.number().int().describe(\"Newly created gage record ID\").nullable(),\n message: z.
|
|
1
|
+
{"version":3,"file":"add-gage-record.mjs","names":[],"sources":["../../src/actions/add-gage-record.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddGageRecordInput = z.object({\n Id: z.number().int().describe(\"Unique identifier; server assigns if omitted\").optional(),\n Area: z.string().describe(\"Operational area\").optional(),\n Days: z.number().int().describe(\"Calibration interval days\").optional(),\n Type: z.string().describe(\"Gage type\").optional(),\n Model: z.string().describe(\"Model of the gage\").optional(),\n Years: z.number().int().describe(\"Calibration interval years\").optional(),\n Months: z.number().int().describe(\"Calibration interval months\").optional(),\n Status: z.string().describe(\"Current status of the gage\").optional(),\n AssetNo: z.string().describe(\"Asset number\").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 gage\").optional(),\n CreatedBy: z.string().describe(\"Record creator\").optional(),\n IsDeleted: z.boolean().describe(\"Soft delete flag\").optional(),\n Tolerance: z.string().describe(\"Tolerance level or specification\").optional(),\n UpdatedBy: z.string().describe(\"Last user who updated record\").optional(),\n NISTNumber: z.string().describe(\"NIST standard number\").optional(),\n Attachments: z.array(z.object({\n Id: z.number().int().describe(\"Attachment unique identifier\"),\n FileName: z.string().describe(\"Filename including extension\"),\n FileSize: z.number().int().describe(\"Size of file in bytes\"),\n FileType: z.string().describe(\"MIME type or general file type\"),\n RecordId: z.number().int().describe(\"ID of the record this file is attached to\"),\n RecordType: z.string().describe(\"Type/category of this attachment\"),\n}).describe(\"File attachment metadata.\")).describe(\"List of attachments\").optional(),\n DateAquired: z.string().describe(\"Date acquired in ISO 8601 format\").optional(),\n RangeOrSize: z.string().describe(\"Operational range or size\").optional(),\n UpdatedDate: z.string().describe(\"Last updated date\").optional(),\n Manufacturer: z.string().describe(\"Manufacturer name\").optional(),\n SerialNumber: z.string().describe(\"Serial number of the gage record\"),\n ControlNumber: z.string().describe(\"Control number\").optional(),\n PurchasePrice: z.number().describe(\"Purchase price in USD\").optional(),\n TestTemplates: z.array(z.object({\n Id: z.number().int().describe(\"Unique identifier of the test template\"),\n Parameter: z.string().describe(\"Parameter being tested\"),\n TestNumber: z.string().describe(\"Test number designation\"),\n RefStandardID: z.string().describe(\"Reference standard ID used\"),\n EquipmentRefId: z.number().int().describe(\"Reference ID of the equipment\"),\n ExpectedResult: z.string().describe(\"Expected outcome of the test\"),\n}).describe(\"Test template configuration for a gage.\")).describe(\"List of test templates\").optional(),\n UnitOfMeasure: z.string().describe(\"Unit of measure used\").optional(),\n MasterStandard: z.string().describe(\"Master standard used for calibration\").optional(),\n SourceOrVendor: z.string().describe(\"Vendor or source of acquisition\").optional(),\n ResponsibleUser: z.string().describe(\"User responsible for the gage\").optional(),\n ConditionAquired: z.string().describe(\"Condition at acquisition\").optional(),\n NotificationList: z.string().describe(\"Comma-separated list of users to notify\").optional(),\n OtherInformation: z.string().describe(\"Additional information\").optional(),\n TypesMeasurement: z.string().describe(\"Measurement types supported\").optional(),\n CalibrationDueDate: z.string().describe(\"Next calibration due date in ISO 8601 format\").optional(),\n CalibrationTestMode: z.string().describe(\"Calibration test mode used\").optional(),\n LastCalibrationDate: z.string().describe(\"Last calibration date in ISO 8601 format\").optional(),\n CalibrationEnvironment: z.string().describe(\"Calibration environment conditions\").optional(),\n CalibrationInstructions: z.string().describe(\"Calibration instructions\").optional(),\n}).describe(\"Request model for adding a new gage record.\");\nexport const GagelistAddGageRecordOutput = z.object({\n data: z.number().int().describe(\"Newly created gage record ID\").nullable(),\n message: z.string().describe(\"Additional information or error message\").nullable().optional(),\n success: z.boolean().describe(\"True if creation succeeded\").nullable(),\n}).describe(\"Response model for add gage record action.\");\n\nexport const gagelistAddGageRecord = action(\"GAGELIST_ADD_GAGE_RECORD\", {\n slug: \"gagelist-add-gage-record\",\n name: \"Add Gage Record\",\n description: \"Tool to add a new gage record. Use after gathering all required gage attributes to create a record.\",\n input: GagelistAddGageRecordInput,\n output: GagelistAddGageRecordOutput,\n});\n"],"mappings":";;AAiEA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjEwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,O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B,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC1F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACzE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAC9E,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAChF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC9F,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC3F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,6CAWH;CACP,QAXyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACvE,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -10,8 +10,8 @@ const GagelistAddManufacturerInput = zod.z.object({
|
|
|
10
10
|
Website: zod.z.string().describe("Official website URL of the manufacturer (optional). Must include the protocol (http:// or https://).").optional()
|
|
11
11
|
}).describe("Request model for creating a new manufacturer.\nAccording to GageList API, when creating a manufacturer the Id should be 0\n(or omitted) so the server assigns a new identifier. The API expects\nPascalCase keys in JSON payload.");
|
|
12
12
|
const GagelistAddManufacturerOutput = zod.z.object({
|
|
13
|
-
data: zod.z.
|
|
14
|
-
message: zod.z.
|
|
13
|
+
data: zod.z.number().int().describe("Unique identifier assigned to the newly created manufacturer. Use this ID for subsequent operations like updating or deleting the manufacturer.").nullable().optional(),
|
|
14
|
+
message: zod.z.string().describe("Additional information from the API, such as error details if the operation failed.").nullable().optional(),
|
|
15
15
|
success: zod.z.boolean().describe("Indicates whether the manufacturer was successfully created. True if created, False if there was an error.").nullable()
|
|
16
16
|
}).describe("Response model for manufacturer creation containing the new manufacturer's ID and operation status.");
|
|
17
17
|
const gagelistAddManufacturer = require_action.action("GAGELIST_ADD_MANUFACTURER", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-manufacturer.cjs","names":["z","action"],"sources":["../../src/actions/add-manufacturer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddManufacturerInput = z.object({\n Id: z.number().int().default(0).describe(\"Manufacturer identifier. Must be 0 (or omitted) when creating a new manufacturer so the system auto-generates a unique ID. Do not use existing IDs.\").optional(),\n Fax: z.string().describe(\"Fax number for the manufacturer (optional). Legacy field maintained for backwards compatibility.\").optional(),\n Name: z.string().describe(\"Name of the manufacturer company (required). This is the primary identifier displayed throughout the system.\"),\n Phone: z.string().describe(\"Primary contact phone number for the manufacturer (optional). Include country code and area code.\").optional(),\n Address: z.string().describe(\"Physical or mailing address of the manufacturer (optional). Include street, city, and state/country for complete records.\").optional(),\n Website: z.string().describe(\"Official website URL of the manufacturer (optional). Must include the protocol (http:// or https://).\").optional(),\n}).describe(\"Request model for creating a new manufacturer.\\nAccording to GageList API, when creating a manufacturer the Id should be 0\\n(or omitted) so the server assigns a new identifier. The API expects\\nPascalCase keys in JSON payload.\");\nexport const GagelistAddManufacturerOutput = z.object({\n data: z.
|
|
1
|
+
{"version":3,"file":"add-manufacturer.cjs","names":["z","action"],"sources":["../../src/actions/add-manufacturer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddManufacturerInput = z.object({\n Id: z.number().int().default(0).describe(\"Manufacturer identifier. Must be 0 (or omitted) when creating a new manufacturer so the system auto-generates a unique ID. Do not use existing IDs.\").optional(),\n Fax: z.string().describe(\"Fax number for the manufacturer (optional). Legacy field maintained for backwards compatibility.\").optional(),\n Name: z.string().describe(\"Name of the manufacturer company (required). This is the primary identifier displayed throughout the system.\"),\n Phone: z.string().describe(\"Primary contact phone number for the manufacturer (optional). Include country code and area code.\").optional(),\n Address: z.string().describe(\"Physical or mailing address of the manufacturer (optional). Include street, city, and state/country for complete records.\").optional(),\n Website: z.string().describe(\"Official website URL of the manufacturer (optional). Must include the protocol (http:// or https://).\").optional(),\n}).describe(\"Request model for creating a new manufacturer.\\nAccording to GageList API, when creating a manufacturer the Id should be 0\\n(or omitted) so the server assigns a new identifier. The API expects\\nPascalCase keys in JSON payload.\");\nexport const GagelistAddManufacturerOutput = z.object({\n data: z.number().int().describe(\"Unique identifier assigned to the newly created manufacturer. Use this ID for subsequent operations like updating or deleting the manufacturer.\").nullable().optional(),\n message: z.string().describe(\"Additional information from the API, such as error details if the operation failed.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the manufacturer was successfully created. True if created, False if there was an error.\").nullable(),\n}).describe(\"Response model for manufacturer creation containing the new manufacturer's ID and operation status.\");\n\nexport const gagelistAddManufacturer = action(\"GAGELIST_ADD_MANUFACTURER\", {\n slug: \"gagelist-add-manufacturer\",\n name: \"Add Manufacturer\",\n description: \"Creates a new manufacturer record in the GageList calibration management system. A manufacturer represents the company that produces gages and measurement instruments. Use this action when you need to add a new manufacturer to the system for tracking and managing calibration records for their equipment. Returns the unique identifier of the newly created manufacturer record.\",\n input: GagelistAddManufacturerInput,\n output: GagelistAddManufacturerOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CACzM,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACtI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;CACxI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACzI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACnK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,oOAAoO;AAChP,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,qGAAqG;AAEjH,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,8 +10,8 @@ declare const GagelistAddManufacturerInput: z.ZodObject<{
|
|
|
10
10
|
Website: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const GagelistAddManufacturerOutput: z.ZodObject<{
|
|
13
|
-
data: z.
|
|
14
|
-
message: z.
|
|
13
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const gagelistAddManufacturer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -21,11 +21,7 @@ declare const gagelistAddManufacturer: import("@keystrokehq/action").WorkflowAct
|
|
|
21
21
|
Phone?: string | undefined;
|
|
22
22
|
Address?: string | undefined;
|
|
23
23
|
Website?: string | undefined;
|
|
24
|
-
},
|
|
25
|
-
success: boolean | null;
|
|
26
|
-
data?: number | undefined;
|
|
27
|
-
message?: string | undefined;
|
|
28
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
25
|
//#endregion
|
|
30
26
|
export { gagelistAddManufacturer };
|
|
31
27
|
//# sourceMappingURL=add-manufacturer.d.cts.map
|
|
@@ -10,8 +10,8 @@ declare const GagelistAddManufacturerInput: z.ZodObject<{
|
|
|
10
10
|
Website: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
declare const GagelistAddManufacturerOutput: z.ZodObject<{
|
|
13
|
-
data: z.
|
|
14
|
-
message: z.
|
|
13
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const gagelistAddManufacturer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
@@ -21,11 +21,7 @@ declare const gagelistAddManufacturer: import("@keystrokehq/action").WorkflowAct
|
|
|
21
21
|
Phone?: string | undefined;
|
|
22
22
|
Address?: string | undefined;
|
|
23
23
|
Website?: string | undefined;
|
|
24
|
-
},
|
|
25
|
-
success: boolean | null;
|
|
26
|
-
data?: number | undefined;
|
|
27
|
-
message?: string | undefined;
|
|
28
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
25
|
//#endregion
|
|
30
26
|
export { gagelistAddManufacturer };
|
|
31
27
|
//# sourceMappingURL=add-manufacturer.d.mts.map
|
|
@@ -13,8 +13,8 @@ const gagelistAddManufacturer = action("GAGELIST_ADD_MANUFACTURER", {
|
|
|
13
13
|
Website: z.string().describe("Official website URL of the manufacturer (optional). Must include the protocol (http:// or https://).").optional()
|
|
14
14
|
}).describe("Request model for creating a new manufacturer.\nAccording to GageList API, when creating a manufacturer the Id should be 0\n(or omitted) so the server assigns a new identifier. The API expects\nPascalCase keys in JSON payload."),
|
|
15
15
|
output: z.object({
|
|
16
|
-
data: z.
|
|
17
|
-
message: z.
|
|
16
|
+
data: z.number().int().describe("Unique identifier assigned to the newly created manufacturer. Use this ID for subsequent operations like updating or deleting the manufacturer.").nullable().optional(),
|
|
17
|
+
message: z.string().describe("Additional information from the API, such as error details if the operation failed.").nullable().optional(),
|
|
18
18
|
success: z.boolean().describe("Indicates whether the manufacturer was successfully created. True if created, False if there was an error.").nullable()
|
|
19
19
|
}).describe("Response model for manufacturer creation containing the new manufacturer's ID and operation status.")
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-manufacturer.mjs","names":[],"sources":["../../src/actions/add-manufacturer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddManufacturerInput = z.object({\n Id: z.number().int().default(0).describe(\"Manufacturer identifier. Must be 0 (or omitted) when creating a new manufacturer so the system auto-generates a unique ID. Do not use existing IDs.\").optional(),\n Fax: z.string().describe(\"Fax number for the manufacturer (optional). Legacy field maintained for backwards compatibility.\").optional(),\n Name: z.string().describe(\"Name of the manufacturer company (required). This is the primary identifier displayed throughout the system.\"),\n Phone: z.string().describe(\"Primary contact phone number for the manufacturer (optional). Include country code and area code.\").optional(),\n Address: z.string().describe(\"Physical or mailing address of the manufacturer (optional). Include street, city, and state/country for complete records.\").optional(),\n Website: z.string().describe(\"Official website URL of the manufacturer (optional). Must include the protocol (http:// or https://).\").optional(),\n}).describe(\"Request model for creating a new manufacturer.\\nAccording to GageList API, when creating a manufacturer the Id should be 0\\n(or omitted) so the server assigns a new identifier. The API expects\\nPascalCase keys in JSON payload.\");\nexport const GagelistAddManufacturerOutput = z.object({\n data: z.
|
|
1
|
+
{"version":3,"file":"add-manufacturer.mjs","names":[],"sources":["../../src/actions/add-manufacturer.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAddManufacturerInput = z.object({\n Id: z.number().int().default(0).describe(\"Manufacturer identifier. Must be 0 (or omitted) when creating a new manufacturer so the system auto-generates a unique ID. Do not use existing IDs.\").optional(),\n Fax: z.string().describe(\"Fax number for the manufacturer (optional). Legacy field maintained for backwards compatibility.\").optional(),\n Name: z.string().describe(\"Name of the manufacturer company (required). This is the primary identifier displayed throughout the system.\"),\n Phone: z.string().describe(\"Primary contact phone number for the manufacturer (optional). Include country code and area code.\").optional(),\n Address: z.string().describe(\"Physical or mailing address of the manufacturer (optional). Include street, city, and state/country for complete records.\").optional(),\n Website: z.string().describe(\"Official website URL of the manufacturer (optional). Must include the protocol (http:// or https://).\").optional(),\n}).describe(\"Request model for creating a new manufacturer.\\nAccording to GageList API, when creating a manufacturer the Id should be 0\\n(or omitted) so the server assigns a new identifier. The API expects\\nPascalCase keys in JSON payload.\");\nexport const GagelistAddManufacturerOutput = z.object({\n data: z.number().int().describe(\"Unique identifier assigned to the newly created manufacturer. Use this ID for subsequent operations like updating or deleting the manufacturer.\").nullable().optional(),\n message: z.string().describe(\"Additional information from the API, such as error details if the operation failed.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the manufacturer was successfully created. True if created, False if there was an error.\").nullable(),\n}).describe(\"Response model for manufacturer creation containing the new manufacturer's ID and operation status.\");\n\nexport const gagelistAddManufacturer = action(\"GAGELIST_ADD_MANUFACTURER\", {\n slug: \"gagelist-add-manufacturer\",\n name: \"Add Manufacturer\",\n description: \"Creates a new manufacturer record in the GageList calibration management system. A manufacturer represents the company that produces gages and measurement instruments. Use this action when you need to add a new manufacturer to the system for tracking and managing calibration records for their equipment. Returns the unique identifier of the newly created manufacturer record.\",\n input: GagelistAddManufacturerInput,\n output: GagelistAddManufacturerOutput,\n});\n"],"mappings":";;AAkBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;EACzM,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACtI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;EACxI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACzI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EACnK,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACjJ,CAAC,CAAC,CAAC,SAAS,oOAWH;CACP,QAX2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,SAAS,qGAOF;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ const GagelistAuthenticateWithGagelistOutput = zod.z.object({
|
|
|
14
14
|
expires_in: zod.z.number().int().describe("Number of seconds before the token expires").nullable(),
|
|
15
15
|
token_type: zod.z.string().describe("Type of the token issued. Typically 'Bearer'").nullable(),
|
|
16
16
|
access_token: zod.z.string().describe("Bearer token string to authenticate subsequent API calls").nullable(),
|
|
17
|
-
refresh_token: zod.z.
|
|
17
|
+
refresh_token: zod.z.string().describe("Token used to renew the access token (if provided)").nullable().optional()
|
|
18
18
|
}).describe("Response model for AUTHENTICATE_WITH_GAGELIST.");
|
|
19
19
|
const gagelistAuthenticateWithGagelist = require_action.action("GAGELIST_AUTHENTICATE_WITH_GAGELIST", {
|
|
20
20
|
slug: "gagelist-authenticate-with-gagelist",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticate-with-gagelist.cjs","names":["z","action"],"sources":["../../src/actions/authenticate-with-gagelist.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAuthenticateWithGagelistInput = z.object({\n client_id: z.string().describe(\"Gagelist client ID issued for OAuth2 authentication\"),\n client_secret: z.string().describe(\"Gagelist client secret issued alongside the client ID\"),\n}).describe(\"Request model for AUTHENTICATE_WITH_GAGELIST.\");\nexport const GagelistAuthenticateWithGagelistOutput = z.object({\n scope: z.string().describe(\"Scopes granted by the access token (e.g., 'openid email profile')\").nullable(),\n issued: z.string().describe(\"ISO 8601 timestamp when the token was issued\").nullable(),\n expires: z.string().describe(\"ISO 8601 timestamp when the token will expire\").nullable(),\n user_id: z.string().describe(\"Unique identifier of the authenticated user\").nullable(),\n client_id: z.string().describe(\"Client ID that was used for authentication\").nullable(),\n expires_in: z.number().int().describe(\"Number of seconds before the token expires\").nullable(),\n token_type: z.string().describe(\"Type of the token issued. Typically 'Bearer'\").nullable(),\n access_token: z.string().describe(\"Bearer token string to authenticate subsequent API calls\").nullable(),\n refresh_token: z.
|
|
1
|
+
{"version":3,"file":"authenticate-with-gagelist.cjs","names":["z","action"],"sources":["../../src/actions/authenticate-with-gagelist.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GagelistAuthenticateWithGagelistInput = z.object({\n client_id: z.string().describe(\"Gagelist client ID issued for OAuth2 authentication\"),\n client_secret: z.string().describe(\"Gagelist client secret issued alongside the client ID\"),\n}).describe(\"Request model for AUTHENTICATE_WITH_GAGELIST.\");\nexport const GagelistAuthenticateWithGagelistOutput = z.object({\n scope: z.string().describe(\"Scopes granted by the access token (e.g., 'openid email profile')\").nullable(),\n issued: z.string().describe(\"ISO 8601 timestamp when the token was issued\").nullable(),\n expires: z.string().describe(\"ISO 8601 timestamp when the token will expire\").nullable(),\n user_id: z.string().describe(\"Unique identifier of the authenticated user\").nullable(),\n client_id: z.string().describe(\"Client ID that was used for authentication\").nullable(),\n expires_in: z.number().int().describe(\"Number of seconds before the token expires\").nullable(),\n token_type: z.string().describe(\"Type of the token issued. Typically 'Bearer'\").nullable(),\n access_token: z.string().describe(\"Bearer token string to authenticate subsequent API calls\").nullable(),\n refresh_token: z.string().describe(\"Token used to renew the access token (if provided)\").nullable().optional(),\n}).describe(\"Response model for AUTHENTICATE_WITH_GAGELIST.\");\n\nexport const gagelistAuthenticateWithGagelist = action(\"GAGELIST_AUTHENTICATE_WITH_GAGELIST\", {\n slug: \"gagelist-authenticate-with-gagelist\",\n name: \"Authenticate with Gagelist\",\n description: \"Tool to obtain a Gagelist API access token. Use when you need to authenticate with Gagelist using client credentials. Returns OAuth2 tokens for subsequent requests.\",\n input: GagelistAuthenticateWithGagelistInput,\n output: GagelistAuthenticateWithGagelistOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACpF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC5F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,yCAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACvF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACvG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,mCAAmCC,eAAAA,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|