@keystrokehq/shipday 0.1.4 → 0.1.6

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.
Files changed (109) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-a-carrier.cjs +1 -0
  4. package/dist/actions/add-a-carrier.cjs.map +1 -1
  5. package/dist/actions/add-a-carrier.d.cts +3 -8
  6. package/dist/actions/add-a-carrier.d.cts.map +1 -1
  7. package/dist/actions/add-a-carrier.d.mts +3 -8
  8. package/dist/actions/add-a-carrier.d.mts.map +1 -1
  9. package/dist/actions/add-a-carrier.mjs +1 -0
  10. package/dist/actions/add-a-carrier.mjs.map +1 -1
  11. package/dist/actions/check-on-demand-availability.cjs +1 -0
  12. package/dist/actions/check-on-demand-availability.cjs.map +1 -1
  13. package/dist/actions/check-on-demand-availability.d.cts +3 -4
  14. package/dist/actions/check-on-demand-availability.d.cts.map +1 -1
  15. package/dist/actions/check-on-demand-availability.d.mts +3 -4
  16. package/dist/actions/check-on-demand-availability.d.mts.map +1 -1
  17. package/dist/actions/check-on-demand-availability.mjs +1 -0
  18. package/dist/actions/check-on-demand-availability.mjs.map +1 -1
  19. package/dist/actions/edit-delivery-order.cjs +1 -0
  20. package/dist/actions/edit-delivery-order.cjs.map +1 -1
  21. package/dist/actions/edit-delivery-order.d.cts +3 -29
  22. package/dist/actions/edit-delivery-order.d.cts.map +1 -1
  23. package/dist/actions/edit-delivery-order.d.mts +3 -29
  24. package/dist/actions/edit-delivery-order.d.mts.map +1 -1
  25. package/dist/actions/edit-delivery-order.mjs +1 -0
  26. package/dist/actions/edit-delivery-order.mjs.map +1 -1
  27. package/dist/actions/get-on-demand-estimate.cjs +1 -0
  28. package/dist/actions/get-on-demand-estimate.cjs.map +1 -1
  29. package/dist/actions/get-on-demand-estimate.d.cts +3 -3
  30. package/dist/actions/get-on-demand-estimate.d.cts.map +1 -1
  31. package/dist/actions/get-on-demand-estimate.d.mts +3 -3
  32. package/dist/actions/get-on-demand-estimate.d.mts.map +1 -1
  33. package/dist/actions/get-on-demand-estimate.mjs +1 -0
  34. package/dist/actions/get-on-demand-estimate.mjs.map +1 -1
  35. package/dist/actions/get-on-demand-services.cjs +1 -0
  36. package/dist/actions/get-on-demand-services.cjs.map +1 -1
  37. package/dist/actions/get-on-demand-services.d.cts +3 -1
  38. package/dist/actions/get-on-demand-services.d.cts.map +1 -1
  39. package/dist/actions/get-on-demand-services.d.mts +3 -1
  40. package/dist/actions/get-on-demand-services.d.mts.map +1 -1
  41. package/dist/actions/get-on-demand-services.mjs +1 -0
  42. package/dist/actions/get-on-demand-services.mjs.map +1 -1
  43. package/dist/actions/insert-order.cjs +1 -0
  44. package/dist/actions/insert-order.cjs.map +1 -1
  45. package/dist/actions/insert-order.d.cts +3 -40
  46. package/dist/actions/insert-order.d.cts.map +1 -1
  47. package/dist/actions/insert-order.d.mts +3 -40
  48. package/dist/actions/insert-order.d.mts.map +1 -1
  49. package/dist/actions/insert-order.mjs +1 -0
  50. package/dist/actions/insert-order.mjs.map +1 -1
  51. package/dist/actions/order-ready-to-pickup.cjs +1 -0
  52. package/dist/actions/order-ready-to-pickup.cjs.map +1 -1
  53. package/dist/actions/order-ready-to-pickup.d.cts +3 -4
  54. package/dist/actions/order-ready-to-pickup.d.cts.map +1 -1
  55. package/dist/actions/order-ready-to-pickup.d.mts +3 -4
  56. package/dist/actions/order-ready-to-pickup.d.mts.map +1 -1
  57. package/dist/actions/order-ready-to-pickup.mjs +1 -0
  58. package/dist/actions/order-ready-to-pickup.mjs.map +1 -1
  59. package/dist/actions/query-delivery-orders.cjs +1 -0
  60. package/dist/actions/query-delivery-orders.cjs.map +1 -1
  61. package/dist/actions/query-delivery-orders.d.cts +3 -6
  62. package/dist/actions/query-delivery-orders.d.cts.map +1 -1
  63. package/dist/actions/query-delivery-orders.d.mts +3 -6
  64. package/dist/actions/query-delivery-orders.d.mts.map +1 -1
  65. package/dist/actions/query-delivery-orders.mjs +1 -0
  66. package/dist/actions/query-delivery-orders.mjs.map +1 -1
  67. package/dist/actions/retrieve-active-orders.cjs +1 -0
  68. package/dist/actions/retrieve-active-orders.cjs.map +1 -1
  69. package/dist/actions/retrieve-active-orders.d.cts +3 -1
  70. package/dist/actions/retrieve-active-orders.d.cts.map +1 -1
  71. package/dist/actions/retrieve-active-orders.d.mts +3 -1
  72. package/dist/actions/retrieve-active-orders.d.mts.map +1 -1
  73. package/dist/actions/retrieve-active-orders.mjs +1 -0
  74. package/dist/actions/retrieve-active-orders.mjs.map +1 -1
  75. package/dist/actions/retrieve-carriers.cjs +1 -0
  76. package/dist/actions/retrieve-carriers.cjs.map +1 -1
  77. package/dist/actions/retrieve-carriers.d.cts +3 -1
  78. package/dist/actions/retrieve-carriers.d.cts.map +1 -1
  79. package/dist/actions/retrieve-carriers.d.mts +3 -1
  80. package/dist/actions/retrieve-carriers.d.mts.map +1 -1
  81. package/dist/actions/retrieve-carriers.mjs +1 -0
  82. package/dist/actions/retrieve-carriers.mjs.map +1 -1
  83. package/dist/actions/retrieve-order-details.cjs +1 -0
  84. package/dist/actions/retrieve-order-details.cjs.map +1 -1
  85. package/dist/actions/retrieve-order-details.d.cts +3 -3
  86. package/dist/actions/retrieve-order-details.d.cts.map +1 -1
  87. package/dist/actions/retrieve-order-details.d.mts +3 -3
  88. package/dist/actions/retrieve-order-details.d.mts.map +1 -1
  89. package/dist/actions/retrieve-order-details.mjs +1 -0
  90. package/dist/actions/retrieve-order-details.mjs.map +1 -1
  91. package/dist/actions/unassign-order-from-driver.cjs +1 -0
  92. package/dist/actions/unassign-order-from-driver.cjs.map +1 -1
  93. package/dist/actions/unassign-order-from-driver.d.cts +3 -3
  94. package/dist/actions/unassign-order-from-driver.d.cts.map +1 -1
  95. package/dist/actions/unassign-order-from-driver.d.mts +3 -3
  96. package/dist/actions/unassign-order-from-driver.d.mts.map +1 -1
  97. package/dist/actions/unassign-order-from-driver.mjs +1 -0
  98. package/dist/actions/unassign-order-from-driver.mjs.map +1 -1
  99. package/dist/app.cjs +10 -2
  100. package/dist/app.cjs.map +1 -1
  101. package/dist/app.d.cts +9 -1
  102. package/dist/app.d.cts.map +1 -1
  103. package/dist/app.d.mts +9 -1
  104. package/dist/app.d.mts.map +1 -1
  105. package/dist/app.mjs +7 -2
  106. package/dist/app.mjs.map +1 -1
  107. package/dist/index.d.cts +1 -1
  108. package/dist/index.d.mts +1 -1
  109. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["shipday","executeShipdayTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { shipday } from \"./app\";\nimport { executeShipdayTool } 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 shipday.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 executeShipdayTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["shipday","executeShipdayTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { shipday } from \"./app\";\nimport { executeShipdayTool } 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof shipday.credential> {\n return shipday.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeShipdayTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { shipday } from \"./app\";\nimport { executeShipdayTool } 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 shipday.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 executeShipdayTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { shipday } from \"./app\";\nimport { executeShipdayTool } 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof shipday.credential> {\n return shipday.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeShipdayTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/add-a-carrier.ts
@@ -1 +1 @@
1
- {"version":3,"file":"add-a-carrier.cjs","names":["z","action"],"sources":["../../src/actions/add-a-carrier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayAddACarrierInput = z.object({\n name: z.string().describe(\"Full name of the carrier/driver\"),\n email: z.string().describe(\"Email address for the carrier account\"),\n areaId: z.number().int().describe(\"Optional unique area ID for identifying the operational area\").optional(),\n codeName: z.string().describe(\"Optional code name for the carrier\").optional(),\n phoneNumber: z.string().describe(\"Phone number of the carrier with country code in E.164 format (e.g., +11234567891)\"),\n carrierPhoto: z.string().describe(\"Optional URL reference to the carrier's photo\").optional(),\n}).describe(\"Request model for adding a new carrier/driver to the Shipday system.\");\nexport const ShipdayAddACarrierOutput = z.object({\n email: z.string().describe(\"Email address registered for the carrier account\").nullable(),\n message: z.string().describe(\"Response confirmation message\").nullable(),\n password: z.string().describe(\"Generated password for the carrier for access\").nullable(),\n carrierId: z.number().int().describe(\"Unique identifier assigned to the newly created carrier\").nullable(),\n}).passthrough().describe(\"Response model for adding a new carrier. Returns the created carrier details with credentials.\");\n\nexport const shipdayAddACarrier = action(\"SHIPDAY_ADD_A_CARRIER\", {\n slug: \"shipday-add-a-carrier\",\n name: \"Add a Carrier\",\n description: \"Tool to add a new carrier/driver to the Shipday system with credentials. Use when you need to create a new carrier account with name, email, and phone number.\",\n input: ShipdayAddACarrierInput,\n output: ShipdayAddACarrierOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAAgG;AAE1H,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-a-carrier.cjs","names":["z","action"],"sources":["../../src/actions/add-a-carrier.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shipday } from \"../app\";\n\nexport const ShipdayAddACarrierInput = z.object({\n name: z.string().describe(\"Full name of the carrier/driver\"),\n email: z.string().describe(\"Email address for the carrier account\"),\n areaId: z.number().int().describe(\"Optional unique area ID for identifying the operational area\").optional(),\n codeName: z.string().describe(\"Optional code name for the carrier\").optional(),\n phoneNumber: z.string().describe(\"Phone number of the carrier with country code in E.164 format (e.g., +11234567891)\"),\n carrierPhoto: z.string().describe(\"Optional URL reference to the carrier's photo\").optional(),\n}).describe(\"Request model for adding a new carrier/driver to the Shipday system.\");\nexport const ShipdayAddACarrierOutput = z.object({\n email: z.string().describe(\"Email address registered for the carrier account\").nullable(),\n message: z.string().describe(\"Response confirmation message\").nullable(),\n password: z.string().describe(\"Generated password for the carrier for access\").nullable(),\n carrierId: z.number().int().describe(\"Unique identifier assigned to the newly created carrier\").nullable(),\n}).passthrough().describe(\"Response model for adding a new carrier. Returns the created carrier details with credentials.\");\n\nexport const shipdayAddACarrier: AppAction<\n typeof ShipdayAddACarrierInput,\n typeof ShipdayAddACarrierOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_ADD_A_CARRIER\", {\n slug: \"shipday-add-a-carrier\",\n name: \"Add a Carrier\",\n description: \"Tool to add a new carrier/driver to the Shipday system with credentials. Use when you need to create a new carrier account with name, email, and phone number.\",\n input: ShipdayAddACarrierInput,\n output: ShipdayAddACarrierOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC3G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAAgG;AAE1H,MAAa,qBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-a-carrier.d.ts
@@ -15,14 +17,7 @@ declare const ShipdayAddACarrierOutput: z.ZodObject<{
15
17
  password: z.ZodNullable<z.ZodString>;
16
18
  carrierId: z.ZodNullable<z.ZodNumber>;
17
19
  }, z.core.$loose>;
18
- declare const shipdayAddACarrier: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- name: string;
20
- email: string;
21
- phoneNumber: string;
22
- areaId?: number | undefined;
23
- codeName?: string | undefined;
24
- carrierPhoto?: string | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const shipdayAddACarrier: AppAction<typeof ShipdayAddACarrierInput, typeof ShipdayAddACarrierOutput, typeof shipday.credential>;
26
21
  //#endregion
27
22
  export { shipdayAddACarrier };
28
23
  //# sourceMappingURL=add-a-carrier.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-a-carrier.d.cts","names":[],"sources":["../../src/actions/add-a-carrier.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAOxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"add-a-carrier.d.cts","names":[],"sources":["../../src/actions/add-a-carrier.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/add-a-carrier.d.ts
@@ -15,14 +17,7 @@ declare const ShipdayAddACarrierOutput: z.ZodObject<{
15
17
  password: z.ZodNullable<z.ZodString>;
16
18
  carrierId: z.ZodNullable<z.ZodNumber>;
17
19
  }, z.core.$loose>;
18
- declare const shipdayAddACarrier: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- name: string;
20
- email: string;
21
- phoneNumber: string;
22
- areaId?: number | undefined;
23
- codeName?: string | undefined;
24
- carrierPhoto?: string | undefined;
25
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const shipdayAddACarrier: AppAction<typeof ShipdayAddACarrierInput, typeof ShipdayAddACarrierOutput, typeof shipday.credential>;
26
21
  //#endregion
27
22
  export { shipdayAddACarrier };
28
23
  //# sourceMappingURL=add-a-carrier.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-a-carrier.d.mts","names":[],"sources":["../../src/actions/add-a-carrier.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAOxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"add-a-carrier.d.mts","names":[],"sources":["../../src/actions/add-a-carrier.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cAQvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAOxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const shipdayAddACarrier = action("SHIPDAY_ADD_A_CARRIER", {
@@ -1 +1 @@
1
- {"version":3,"file":"add-a-carrier.mjs","names":[],"sources":["../../src/actions/add-a-carrier.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayAddACarrierInput = z.object({\n name: z.string().describe(\"Full name of the carrier/driver\"),\n email: z.string().describe(\"Email address for the carrier account\"),\n areaId: z.number().int().describe(\"Optional unique area ID for identifying the operational area\").optional(),\n codeName: z.string().describe(\"Optional code name for the carrier\").optional(),\n phoneNumber: z.string().describe(\"Phone number of the carrier with country code in E.164 format (e.g., +11234567891)\"),\n carrierPhoto: z.string().describe(\"Optional URL reference to the carrier's photo\").optional(),\n}).describe(\"Request model for adding a new carrier/driver to the Shipday system.\");\nexport const ShipdayAddACarrierOutput = z.object({\n email: z.string().describe(\"Email address registered for the carrier account\").nullable(),\n message: z.string().describe(\"Response confirmation message\").nullable(),\n password: z.string().describe(\"Generated password for the carrier for access\").nullable(),\n carrierId: z.number().int().describe(\"Unique identifier assigned to the newly created carrier\").nullable(),\n}).passthrough().describe(\"Response model for adding a new carrier. Returns the created carrier details with credentials.\");\n\nexport const shipdayAddACarrier = action(\"SHIPDAY_ADD_A_CARRIER\", {\n slug: \"shipday-add-a-carrier\",\n name: \"Add a Carrier\",\n description: \"Tool to add a new carrier/driver to the Shipday system with credentials. Use when you need to create a new carrier account with name, email, and phone number.\",\n input: ShipdayAddACarrierInput,\n output: ShipdayAddACarrierOutput,\n});\n"],"mappings":";;AAmBA,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;EACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,sEAYH;CACP,QAZsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"add-a-carrier.mjs","names":[],"sources":["../../src/actions/add-a-carrier.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shipday } from \"../app\";\n\nexport const ShipdayAddACarrierInput = z.object({\n name: z.string().describe(\"Full name of the carrier/driver\"),\n email: z.string().describe(\"Email address for the carrier account\"),\n areaId: z.number().int().describe(\"Optional unique area ID for identifying the operational area\").optional(),\n codeName: z.string().describe(\"Optional code name for the carrier\").optional(),\n phoneNumber: z.string().describe(\"Phone number of the carrier with country code in E.164 format (e.g., +11234567891)\"),\n carrierPhoto: z.string().describe(\"Optional URL reference to the carrier's photo\").optional(),\n}).describe(\"Request model for adding a new carrier/driver to the Shipday system.\");\nexport const ShipdayAddACarrierOutput = z.object({\n email: z.string().describe(\"Email address registered for the carrier account\").nullable(),\n message: z.string().describe(\"Response confirmation message\").nullable(),\n password: z.string().describe(\"Generated password for the carrier for access\").nullable(),\n carrierId: z.number().int().describe(\"Unique identifier assigned to the newly created carrier\").nullable(),\n}).passthrough().describe(\"Response model for adding a new carrier. Returns the created carrier details with credentials.\");\n\nexport const shipdayAddACarrier: AppAction<\n typeof ShipdayAddACarrierInput,\n typeof ShipdayAddACarrierOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_ADD_A_CARRIER\", {\n slug: \"shipday-add-a-carrier\",\n name: \"Add a Carrier\",\n description: \"Tool to add a new carrier/driver to the Shipday system with credentials. Use when you need to create a new carrier account with name, email, and phone number.\",\n input: ShipdayAddACarrierInput,\n output: ShipdayAddACarrierOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,qBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;EACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,sEAgBH;CACP,QAhBsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACxF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gGAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/check-on-demand-availability.ts
@@ -1 +1 @@
1
- {"version":3,"file":"check-on-demand-availability.cjs","names":["z","action"],"sources":["../../src/actions/check-on-demand-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayCheckOnDemandAvailabilityInput = z.object({\n pickupAddress: z.string().describe(\"Complete pickup address as a single string (e.g., '350 5th Avenue, New York, NY 10118')\"),\n deliveryAddress: z.string().describe(\"Complete delivery address as a single string (e.g., '20 West 34th Street, New York, NY 10001')\"),\n}).describe(\"Request parameters for checking on-demand delivery availability.\");\nconst ShipdayCheckOnDemandAvailability_ServiceAvailabilitySchema = z.object({\n id: z.string().describe(\"Unique identifier for the service estimate\").nullable().optional(),\n fee: z.number().describe(\"Estimated delivery fee\").nullable().optional(),\n name: z.string().describe(\"Name of the delivery service provider (e.g., DoorDash, Uber)\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred for this service\").nullable().optional(),\n isProd: z.boolean().describe(\"Whether the service is in production mode\").nullable().optional(),\n errorCode: z.string().describe(\"Error code if applicable\").nullable().optional(),\n isInternal: z.boolean().describe(\"Whether the service is internal\").nullable().optional(),\n pickupTime: z.string().describe(\"Scheduled pickup timestamp in ISO 8601 UTC format\").nullable().optional(),\n deliveryTime: z.string().describe(\"Estimated delivery timestamp in ISO 8601 UTC format\").nullable().optional(),\n errorMessage: z.string().describe(\"Human-readable error description\").nullable().optional(),\n regulatoryFee: z.number().describe(\"Regulatory fee amount\").nullable().optional(),\n minBillableFee: z.number().describe(\"Minimum billable fee\").nullable().optional(),\n pickupDuration: z.number().int().describe(\"Expected pickup duration in minutes\").nullable().optional(),\n deliveryDuration: z.number().int().describe(\"Expected delivery duration in minutes\").nullable().optional(),\n errorDescription: z.string().describe(\"Detailed error description\").nullable().optional(),\n probableAssignment: z.boolean().describe(\"Whether assignment is probable\").nullable().optional(),\n}).passthrough().describe(\"Availability information for a specific delivery service provider.\");\nexport const ShipdayCheckOnDemandAvailabilityOutput = z.object({\n services: z.array(ShipdayCheckOnDemandAvailability_ServiceAvailabilitySchema).describe(\"List of available third-party delivery services with pricing and time estimates\").nullable().optional(),\n}).passthrough().describe(\"Response containing on-demand delivery availability information.\");\n\nexport const shipdayCheckOnDemandAvailability = action(\"SHIPDAY_CHECK_ON_DEMAND_AVAILABILITY\", {\n slug: \"shipday-check-on-demand-availability\",\n name: \"Check On-Demand Delivery Availability\",\n description: \"Tool to check on-demand delivery availability from third-party service providers. Use when you need to verify service availability, pricing estimates, and delivery times for a route without creating an order.\",\n input: ShipdayCheckOnDemandAvailabilityInput,\n output: ShipdayCheckOnDemandAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CAC5H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;AACvI,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,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CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"check-on-demand-availability.cjs","names":["z","action"],"sources":["../../src/actions/check-on-demand-availability.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shipday } from \"../app\";\n\nexport const ShipdayCheckOnDemandAvailabilityInput = z.object({\n pickupAddress: z.string().describe(\"Complete pickup address as a single string (e.g., '350 5th Avenue, New York, NY 10118')\"),\n deliveryAddress: z.string().describe(\"Complete delivery address as a single string (e.g., '20 West 34th Street, New York, NY 10001')\"),\n}).describe(\"Request parameters for checking on-demand delivery availability.\");\nconst ShipdayCheckOnDemandAvailability_ServiceAvailabilitySchema = z.object({\n id: z.string().describe(\"Unique identifier for the service estimate\").nullable().optional(),\n fee: z.number().describe(\"Estimated delivery fee\").nullable().optional(),\n name: z.string().describe(\"Name of the delivery service provider (e.g., DoorDash, Uber)\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred for this service\").nullable().optional(),\n isProd: z.boolean().describe(\"Whether the service is in production mode\").nullable().optional(),\n errorCode: z.string().describe(\"Error code if applicable\").nullable().optional(),\n isInternal: z.boolean().describe(\"Whether the service is internal\").nullable().optional(),\n pickupTime: z.string().describe(\"Scheduled pickup timestamp in ISO 8601 UTC format\").nullable().optional(),\n deliveryTime: z.string().describe(\"Estimated delivery timestamp in ISO 8601 UTC format\").nullable().optional(),\n errorMessage: z.string().describe(\"Human-readable error description\").nullable().optional(),\n regulatoryFee: z.number().describe(\"Regulatory fee amount\").nullable().optional(),\n minBillableFee: z.number().describe(\"Minimum billable fee\").nullable().optional(),\n pickupDuration: z.number().int().describe(\"Expected pickup duration in minutes\").nullable().optional(),\n deliveryDuration: z.number().int().describe(\"Expected delivery duration in minutes\").nullable().optional(),\n errorDescription: z.string().describe(\"Detailed error description\").nullable().optional(),\n probableAssignment: z.boolean().describe(\"Whether assignment is probable\").nullable().optional(),\n}).passthrough().describe(\"Availability information for a specific delivery service provider.\");\nexport const ShipdayCheckOnDemandAvailabilityOutput = z.object({\n services: z.array(ShipdayCheckOnDemandAvailability_ServiceAvailabilitySchema).describe(\"List of available third-party delivery services with pricing and time estimates\").nullable().optional(),\n}).passthrough().describe(\"Response containing on-demand delivery availability information.\");\n\nexport const shipdayCheckOnDemandAvailability: AppAction<\n typeof ShipdayCheckOnDemandAvailabilityInput,\n typeof ShipdayCheckOnDemandAvailabilityOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_CHECK_ON_DEMAND_AVAILABILITY\", {\n slug: \"shipday-check-on-demand-availability\",\n name: \"Check On-Demand Delivery Availability\",\n description: \"Tool to check on-demand delivery availability from third-party service providers. Use when you need to verify service availability, pricing estimates, and delivery times for a route without creating an order.\",\n input: ShipdayCheckOnDemandAvailabilityInput,\n output: ShipdayCheckOnDemandAvailabilityOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CAC5H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;AACvI,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,OAAOA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AAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAC9F,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAChM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,mCAITC,eAAAA,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/check-on-demand-availability.d.ts
@@ -25,10 +27,7 @@ declare const ShipdayCheckOnDemandAvailabilityOutput: z.ZodObject<{
25
27
  probableAssignment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
28
  }, z.core.$loose>>>>;
27
29
  }, z.core.$loose>;
28
- declare const shipdayCheckOnDemandAvailability: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- pickupAddress: string;
30
- deliveryAddress: string;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
+ declare const shipdayCheckOnDemandAvailability: AppAction<typeof ShipdayCheckOnDemandAvailabilityInput, typeof ShipdayCheckOnDemandAvailabilityOutput, typeof shipday.credential>;
32
31
  //#endregion
33
32
  export { shipdayCheckOnDemandAvailability };
34
33
  //# sourceMappingURL=check-on-demand-availability.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check-on-demand-availability.d.cts","names":[],"sources":["../../src/actions/check-on-demand-availability.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAsBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"check-on-demand-availability.d.cts","names":[],"sources":["../../src/actions/check-on-demand-availability.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAsBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/check-on-demand-availability.d.ts
@@ -25,10 +27,7 @@ declare const ShipdayCheckOnDemandAvailabilityOutput: z.ZodObject<{
25
27
  probableAssignment: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
26
28
  }, z.core.$loose>>>>;
27
29
  }, z.core.$loose>;
28
- declare const shipdayCheckOnDemandAvailability: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- pickupAddress: string;
30
- deliveryAddress: string;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
30
+ declare const shipdayCheckOnDemandAvailability: AppAction<typeof ShipdayCheckOnDemandAvailabilityInput, typeof ShipdayCheckOnDemandAvailabilityOutput, typeof shipday.credential>;
32
31
  //#endregion
33
32
  export { shipdayCheckOnDemandAvailability };
34
33
  //# sourceMappingURL=check-on-demand-availability.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"check-on-demand-availability.d.mts","names":[],"sources":["../../src/actions/check-on-demand-availability.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAsBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"check-on-demand-availability.d.mts","names":[],"sources":["../../src/actions/check-on-demand-availability.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;cAsBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/check-on-demand-availability.ts
@@ -1 +1 @@
1
- {"version":3,"file":"check-on-demand-availability.mjs","names":[],"sources":["../../src/actions/check-on-demand-availability.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayCheckOnDemandAvailabilityInput = z.object({\n pickupAddress: z.string().describe(\"Complete pickup address as a single string (e.g., '350 5th Avenue, New York, NY 10118')\"),\n deliveryAddress: z.string().describe(\"Complete delivery address as a single string (e.g., '20 West 34th Street, New York, NY 10001')\"),\n}).describe(\"Request parameters for checking on-demand delivery availability.\");\nconst ShipdayCheckOnDemandAvailability_ServiceAvailabilitySchema = z.object({\n id: z.string().describe(\"Unique identifier for the service estimate\").nullable().optional(),\n fee: z.number().describe(\"Estimated delivery fee\").nullable().optional(),\n name: z.string().describe(\"Name of the delivery service provider (e.g., DoorDash, Uber)\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred for this service\").nullable().optional(),\n isProd: z.boolean().describe(\"Whether the service is in production mode\").nullable().optional(),\n errorCode: z.string().describe(\"Error code if applicable\").nullable().optional(),\n isInternal: z.boolean().describe(\"Whether the service is internal\").nullable().optional(),\n pickupTime: z.string().describe(\"Scheduled pickup timestamp in ISO 8601 UTC format\").nullable().optional(),\n deliveryTime: z.string().describe(\"Estimated delivery timestamp in ISO 8601 UTC format\").nullable().optional(),\n errorMessage: z.string().describe(\"Human-readable error description\").nullable().optional(),\n regulatoryFee: z.number().describe(\"Regulatory fee amount\").nullable().optional(),\n minBillableFee: z.number().describe(\"Minimum billable fee\").nullable().optional(),\n pickupDuration: z.number().int().describe(\"Expected pickup duration in minutes\").nullable().optional(),\n deliveryDuration: z.number().int().describe(\"Expected delivery duration in minutes\").nullable().optional(),\n errorDescription: z.string().describe(\"Detailed error description\").nullable().optional(),\n probableAssignment: z.boolean().describe(\"Whether assignment is probable\").nullable().optional(),\n}).passthrough().describe(\"Availability information for a specific delivery service provider.\");\nexport const ShipdayCheckOnDemandAvailabilityOutput = z.object({\n services: z.array(ShipdayCheckOnDemandAvailability_ServiceAvailabilitySchema).describe(\"List of available third-party delivery services with pricing and time estimates\").nullable().optional(),\n}).passthrough().describe(\"Response containing on-demand delivery availability information.\");\n\nexport const shipdayCheckOnDemandAvailability = action(\"SHIPDAY_CHECK_ON_DEMAND_AVAILABILITY\", {\n slug: \"shipday-check-on-demand-availability\",\n name: \"Check On-Demand Delivery Availability\",\n description: \"Tool to check on-demand delivery availability from third-party service providers. Use when you need to verify service availability, pricing estimates, and delivery times for a route without creating an order.\",\n input: ShipdayCheckOnDemandAvailabilityInput,\n output: ShipdayCheckOnDemandAvailabilityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CAC5H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;AACvI,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,S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AS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAK9F,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,UAAU,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAChM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"check-on-demand-availability.mjs","names":[],"sources":["../../src/actions/check-on-demand-availability.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shipday } from \"../app\";\n\nexport const ShipdayCheckOnDemandAvailabilityInput = z.object({\n pickupAddress: z.string().describe(\"Complete pickup address as a single string (e.g., '350 5th Avenue, New York, NY 10118')\"),\n deliveryAddress: z.string().describe(\"Complete delivery address as a single string (e.g., '20 West 34th Street, New York, NY 10001')\"),\n}).describe(\"Request parameters for checking on-demand delivery availability.\");\nconst ShipdayCheckOnDemandAvailability_ServiceAvailabilitySchema = z.object({\n id: z.string().describe(\"Unique identifier for the service estimate\").nullable().optional(),\n fee: z.number().describe(\"Estimated delivery fee\").nullable().optional(),\n name: z.string().describe(\"Name of the delivery service provider (e.g., DoorDash, Uber)\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred for this service\").nullable().optional(),\n isProd: z.boolean().describe(\"Whether the service is in production mode\").nullable().optional(),\n errorCode: z.string().describe(\"Error code if applicable\").nullable().optional(),\n isInternal: z.boolean().describe(\"Whether the service is internal\").nullable().optional(),\n pickupTime: z.string().describe(\"Scheduled pickup timestamp in ISO 8601 UTC format\").nullable().optional(),\n deliveryTime: z.string().describe(\"Estimated delivery timestamp in ISO 8601 UTC format\").nullable().optional(),\n errorMessage: z.string().describe(\"Human-readable error description\").nullable().optional(),\n regulatoryFee: z.number().describe(\"Regulatory fee amount\").nullable().optional(),\n minBillableFee: z.number().describe(\"Minimum billable fee\").nullable().optional(),\n pickupDuration: z.number().int().describe(\"Expected pickup duration in minutes\").nullable().optional(),\n deliveryDuration: z.number().int().describe(\"Expected delivery duration in minutes\").nullable().optional(),\n errorDescription: z.string().describe(\"Detailed error description\").nullable().optional(),\n probableAssignment: z.boolean().describe(\"Whether assignment is probable\").nullable().optional(),\n}).passthrough().describe(\"Availability information for a specific delivery service provider.\");\nexport const ShipdayCheckOnDemandAvailabilityOutput = z.object({\n services: z.array(ShipdayCheckOnDemandAvailability_ServiceAvailabilitySchema).describe(\"List of available third-party delivery services with pricing and time estimates\").nullable().optional(),\n}).passthrough().describe(\"Response containing on-demand delivery availability information.\");\n\nexport const shipdayCheckOnDemandAvailability: AppAction<\n typeof ShipdayCheckOnDemandAvailabilityInput,\n typeof ShipdayCheckOnDemandAvailabilityOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_CHECK_ON_DEMAND_AVAILABILITY\", {\n slug: \"shipday-check-on-demand-availability\",\n name: \"Check On-Demand Delivery Availability\",\n description: \"Tool to check on-demand delivery availability from third-party service providers. Use when you need to verify service availability, pricing estimates, and delivery times for a route without creating an order.\",\n input: ShipdayCheckOnDemandAvailabilityInput,\n output: ShipdayCheckOnDemandAvailabilityOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;CAC5H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;AACvI,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC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AC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAAoE;AAK9F,MAAa,mCAIT,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboD,EAAE,OAAO,EAC7D,UAAU,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAChM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/edit-delivery-order.ts
@@ -1 +1 @@
1
- {"version":3,"file":"edit-delivery-order.cjs","names":["z","action"],"sources":["../../src/actions/edit-delivery-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayEditDeliveryOrderInput = z.object({\n tip: z.number().describe(\"Tip amount for the delivery\").optional(),\n orderId: z.string().describe(\"The unique order identifier to edit. This is the order ID returned when the order was created.\"),\n customer: z.object({\n name: z.string().describe(\"Customer's full name\").optional(),\n address: z.string().describe(\"Customer's delivery address\").optional(),\n phoneNumber: z.string().describe(\"Customer phone number with country code\").optional(),\n emailAddress: z.string().describe(\"Customer email address\").optional(),\n}).describe(\"Customer information for the order.\").optional(),\n orderItems: z.array(z.object({\n name: z.string().describe(\"Name of the order item\"),\n detail: z.string().describe(\"Additional details or notes about the item\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item\"),\n unitPrice: z.number().describe(\"Price per unit of the item\"),\n}).passthrough().describe(\"Individual item in the order.\")).describe(\"List of items in the order with name, quantity, unit price, and optional details\").optional(),\n restaurant: z.object({\n name: z.string().describe(\"Name of the restaurant\").optional(),\n address: z.string().describe(\"Full address of the restaurant\").optional(),\n phoneNumber: z.string().describe(\"Restaurant phone number with country code\").optional(),\n}).describe(\"Restaurant information for the order.\").optional(),\n deliveryFee: z.number().describe(\"Delivery fee amount\").optional(),\n orderNumber: z.string().describe(\"Order reference number or identifier\").optional(),\n totalOrderCost: z.number().describe(\"Total cost of the order\").optional(),\n expectedPickupTime: z.string().describe(\"Expected pickup time\").optional(),\n deliveryInstruction: z.string().describe(\"Special instructions for the delivery\").optional(),\n expectedDeliveryDate: z.string().describe(\"Expected delivery date in ISO format\").optional(),\n expectedDeliveryTime: z.string().describe(\"Expected delivery time\").optional(),\n}).describe(\"Request parameters for editing an existing delivery order.\");\nexport const ShipdayEditDeliveryOrderOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the order update operation succeeded\").nullable(),\n response: z.string().describe(\"Confirmation message about the update status\").nullable().optional(),\n}).passthrough().describe(\"Response from editing a delivery order.\");\n\nexport const shipdayEditDeliveryOrder = action(\"SHIPDAY_EDIT_DELIVERY_ORDER\", {\n slug: \"shipday-edit-delivery-order\",\n name: \"Edit Delivery Order\",\n description: \"Tool to edit an existing delivery order in Shipday. Use when you need to update order details such as customer information, restaurant details, order items, delivery fees, or tips.\",\n input: ShipdayEditDeliveryOrderInput,\n output: ShipdayEditDeliveryOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC7H,UAAUA,IAAAA,EAAE,OAAO;EACnB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;EAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACrE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACrF,cAAcA,IAA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C,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"edit-delivery-order.cjs","names":["z","action"],"sources":["../../src/actions/edit-delivery-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shipday } from \"../app\";\n\nexport const ShipdayEditDeliveryOrderInput = z.object({\n tip: z.number().describe(\"Tip amount for the delivery\").optional(),\n orderId: z.string().describe(\"The unique order identifier to edit. This is the order ID returned when the order was created.\"),\n customer: z.object({\n name: z.string().describe(\"Customer's full name\").optional(),\n address: z.string().describe(\"Customer's delivery address\").optional(),\n phoneNumber: z.string().describe(\"Customer phone number with country code\").optional(),\n emailAddress: z.string().describe(\"Customer email address\").optional(),\n}).describe(\"Customer information for the order.\").optional(),\n orderItems: z.array(z.object({\n name: z.string().describe(\"Name of the order item\"),\n detail: z.string().describe(\"Additional details or notes about the item\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item\"),\n unitPrice: z.number().describe(\"Price per unit of the item\"),\n}).passthrough().describe(\"Individual item in the order.\")).describe(\"List of items in the order with name, quantity, unit price, and optional details\").optional(),\n restaurant: z.object({\n name: z.string().describe(\"Name of the restaurant\").optional(),\n address: z.string().describe(\"Full address of the restaurant\").optional(),\n phoneNumber: z.string().describe(\"Restaurant phone number with country code\").optional(),\n}).describe(\"Restaurant information for the order.\").optional(),\n deliveryFee: z.number().describe(\"Delivery fee amount\").optional(),\n orderNumber: z.string().describe(\"Order reference number or identifier\").optional(),\n totalOrderCost: z.number().describe(\"Total cost of the order\").optional(),\n expectedPickupTime: z.string().describe(\"Expected pickup time\").optional(),\n deliveryInstruction: z.string().describe(\"Special instructions for the delivery\").optional(),\n expectedDeliveryDate: z.string().describe(\"Expected delivery date in ISO format\").optional(),\n expectedDeliveryTime: z.string().describe(\"Expected delivery time\").optional(),\n}).describe(\"Request parameters for editing an existing delivery order.\");\nexport const ShipdayEditDeliveryOrderOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the order update operation succeeded\").nullable(),\n response: z.string().describe(\"Confirmation message about the update status\").nullable().optional(),\n}).passthrough().describe(\"Response from editing a delivery order.\");\n\nexport const shipdayEditDeliveryOrder: AppAction<\n typeof ShipdayEditDeliveryOrderInput,\n typeof ShipdayEditDeliveryOrderOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_EDIT_DELIVERY_ORDER\", {\n slug: \"shipday-edit-delivery-order\",\n name: \"Edit Delivery Order\",\n description: \"Tool to edit an existing delivery order in Shipday. Use when you need to update order details such as customer information, restaurant details, order items, delivery fees, or tips.\",\n input: ShipdayEditDeliveryOrderInput,\n output: ShipdayEditDeliveryOrderOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC7H,UAAUA,IAAAA,EA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AE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACxE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3F,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACjG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/edit-delivery-order.d.ts
@@ -33,35 +35,7 @@ declare const ShipdayEditDeliveryOrderOutput: z.ZodObject<{
33
35
  success: z.ZodNullable<z.ZodBoolean>;
34
36
  response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
37
  }, z.core.$loose>;
36
- declare const shipdayEditDeliveryOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- orderId: string;
38
- tip?: number | undefined;
39
- customer?: {
40
- name?: string | undefined;
41
- address?: string | undefined;
42
- phoneNumber?: string | undefined;
43
- emailAddress?: string | undefined;
44
- } | undefined;
45
- orderItems?: {
46
- [x: string]: unknown;
47
- name: string;
48
- quantity: number;
49
- unitPrice: number;
50
- detail?: string | undefined;
51
- }[] | undefined;
52
- restaurant?: {
53
- name?: string | undefined;
54
- address?: string | undefined;
55
- phoneNumber?: string | undefined;
56
- } | undefined;
57
- deliveryFee?: number | undefined;
58
- orderNumber?: string | undefined;
59
- totalOrderCost?: number | undefined;
60
- expectedPickupTime?: string | undefined;
61
- deliveryInstruction?: string | undefined;
62
- expectedDeliveryDate?: string | undefined;
63
- expectedDeliveryTime?: string | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ declare const shipdayEditDeliveryOrder: AppAction<typeof ShipdayEditDeliveryOrderInput, typeof ShipdayEditDeliveryOrderOutput, typeof shipday.credential>;
65
39
  //#endregion
66
40
  export { shipdayEditDeliveryOrder };
67
41
  //# sourceMappingURL=edit-delivery-order.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-delivery-order.d.cts","names":[],"sources":["../../src/actions/edit-delivery-order.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"edit-delivery-order.d.cts","names":[],"sources":["../../src/actions/edit-delivery-order.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/edit-delivery-order.d.ts
@@ -33,35 +35,7 @@ declare const ShipdayEditDeliveryOrderOutput: z.ZodObject<{
33
35
  success: z.ZodNullable<z.ZodBoolean>;
34
36
  response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
37
  }, z.core.$loose>;
36
- declare const shipdayEditDeliveryOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
37
- orderId: string;
38
- tip?: number | undefined;
39
- customer?: {
40
- name?: string | undefined;
41
- address?: string | undefined;
42
- phoneNumber?: string | undefined;
43
- emailAddress?: string | undefined;
44
- } | undefined;
45
- orderItems?: {
46
- [x: string]: unknown;
47
- name: string;
48
- quantity: number;
49
- unitPrice: number;
50
- detail?: string | undefined;
51
- }[] | undefined;
52
- restaurant?: {
53
- name?: string | undefined;
54
- address?: string | undefined;
55
- phoneNumber?: string | undefined;
56
- } | undefined;
57
- deliveryFee?: number | undefined;
58
- orderNumber?: string | undefined;
59
- totalOrderCost?: number | undefined;
60
- expectedPickupTime?: string | undefined;
61
- deliveryInstruction?: string | undefined;
62
- expectedDeliveryDate?: string | undefined;
63
- expectedDeliveryTime?: string | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ declare const shipdayEditDeliveryOrder: AppAction<typeof ShipdayEditDeliveryOrderInput, typeof ShipdayEditDeliveryOrderOutput, typeof shipday.credential>;
65
39
  //#endregion
66
40
  export { shipdayEditDeliveryOrder };
67
41
  //# sourceMappingURL=edit-delivery-order.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-delivery-order.d.mts","names":[],"sources":["../../src/actions/edit-delivery-order.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
1
+ {"version":3,"file":"edit-delivery-order.d.mts","names":[],"sources":["../../src/actions/edit-delivery-order.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const shipdayEditDeliveryOrder = action("SHIPDAY_EDIT_DELIVERY_ORDER", {
@@ -1 +1 @@
1
- {"version":3,"file":"edit-delivery-order.mjs","names":[],"sources":["../../src/actions/edit-delivery-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayEditDeliveryOrderInput = z.object({\n tip: z.number().describe(\"Tip amount for the delivery\").optional(),\n orderId: z.string().describe(\"The unique order identifier to edit. This is the order ID returned when the order was created.\"),\n customer: z.object({\n name: z.string().describe(\"Customer's full name\").optional(),\n address: z.string().describe(\"Customer's delivery address\").optional(),\n phoneNumber: z.string().describe(\"Customer phone number with country code\").optional(),\n emailAddress: z.string().describe(\"Customer email address\").optional(),\n}).describe(\"Customer information for the order.\").optional(),\n orderItems: z.array(z.object({\n name: z.string().describe(\"Name of the order item\"),\n detail: z.string().describe(\"Additional details or notes about the item\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item\"),\n unitPrice: z.number().describe(\"Price per unit of the item\"),\n}).passthrough().describe(\"Individual item in the order.\")).describe(\"List of items in the order with name, quantity, unit price, and optional details\").optional(),\n restaurant: z.object({\n name: z.string().describe(\"Name of the restaurant\").optional(),\n address: z.string().describe(\"Full address of the restaurant\").optional(),\n phoneNumber: z.string().describe(\"Restaurant phone number with country code\").optional(),\n}).describe(\"Restaurant information for the order.\").optional(),\n deliveryFee: z.number().describe(\"Delivery fee amount\").optional(),\n orderNumber: z.string().describe(\"Order reference number or identifier\").optional(),\n totalOrderCost: z.number().describe(\"Total cost of the order\").optional(),\n expectedPickupTime: z.string().describe(\"Expected pickup time\").optional(),\n deliveryInstruction: z.string().describe(\"Special instructions for the delivery\").optional(),\n expectedDeliveryDate: z.string().describe(\"Expected delivery date in ISO format\").optional(),\n expectedDeliveryTime: z.string().describe(\"Expected delivery time\").optional(),\n}).describe(\"Request parameters for editing an existing delivery order.\");\nexport const ShipdayEditDeliveryOrderOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the order update operation succeeded\").nullable(),\n response: z.string().describe(\"Confirmation message about the update status\").nullable().optional(),\n}).passthrough().describe(\"Response from editing a delivery order.\");\n\nexport const shipdayEditDeliveryOrder = action(\"SHIPDAY_EDIT_DELIVERY_ORDER\", {\n slug: \"shipday-edit-delivery-order\",\n name: \"Edit Delivery Order\",\n description: \"Tool to edit an existing delivery order in Shipday. Use when you need to update order details such as customer information, restaurant details, order items, delivery fees, or tips.\",\n input: ShipdayEditDeliveryOrderInput,\n output: ShipdayEditDeliveryOrderOutput,\n});\n"],"mappings":";;AAqCA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArC2C,EAAE,OAAO;EACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAC7H,UAAU,EAAE,OAAO;GACnB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;GAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;GACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,C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C,SAAS;EAC3F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,4DAUH;CACP,QAV4C,EAAE,OAAO;EACrD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"edit-delivery-order.mjs","names":[],"sources":["../../src/actions/edit-delivery-order.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shipday } from \"../app\";\n\nexport const ShipdayEditDeliveryOrderInput = z.object({\n tip: z.number().describe(\"Tip amount for the delivery\").optional(),\n orderId: z.string().describe(\"The unique order identifier to edit. This is the order ID returned when the order was created.\"),\n customer: z.object({\n name: z.string().describe(\"Customer's full name\").optional(),\n address: z.string().describe(\"Customer's delivery address\").optional(),\n phoneNumber: z.string().describe(\"Customer phone number with country code\").optional(),\n emailAddress: z.string().describe(\"Customer email address\").optional(),\n}).describe(\"Customer information for the order.\").optional(),\n orderItems: z.array(z.object({\n name: z.string().describe(\"Name of the order item\"),\n detail: z.string().describe(\"Additional details or notes about the item\").optional(),\n quantity: z.number().int().describe(\"Quantity of the item\"),\n unitPrice: z.number().describe(\"Price per unit of the item\"),\n}).passthrough().describe(\"Individual item in the order.\")).describe(\"List of items in the order with name, quantity, unit price, and optional details\").optional(),\n restaurant: z.object({\n name: z.string().describe(\"Name of the restaurant\").optional(),\n address: z.string().describe(\"Full address of the restaurant\").optional(),\n phoneNumber: z.string().describe(\"Restaurant phone number with country code\").optional(),\n}).describe(\"Restaurant information for the order.\").optional(),\n deliveryFee: z.number().describe(\"Delivery fee amount\").optional(),\n orderNumber: z.string().describe(\"Order reference number or identifier\").optional(),\n totalOrderCost: z.number().describe(\"Total cost of the order\").optional(),\n expectedPickupTime: z.string().describe(\"Expected pickup time\").optional(),\n deliveryInstruction: z.string().describe(\"Special instructions for the delivery\").optional(),\n expectedDeliveryDate: z.string().describe(\"Expected delivery date in ISO format\").optional(),\n expectedDeliveryTime: z.string().describe(\"Expected delivery time\").optional(),\n}).describe(\"Request parameters for editing an existing delivery order.\");\nexport const ShipdayEditDeliveryOrderOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the order update operation succeeded\").nullable(),\n response: z.string().describe(\"Confirmation message about the update status\").nullable().optional(),\n}).passthrough().describe(\"Response from editing a delivery order.\");\n\nexport const shipdayEditDeliveryOrder: AppAction<\n typeof ShipdayEditDeliveryOrderInput,\n typeof ShipdayEditDeliveryOrderOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_EDIT_DELIVERY_ORDER\", {\n slug: \"shipday-edit-delivery-order\",\n name: \"Edit Delivery Order\",\n description: \"Tool to edit an existing delivery order in Shipday. Use when you need to update order details such as customer information, restaurant details, order items, delivery fees, or tips.\",\n input: ShipdayEditDeliveryOrderInput,\n output: ShipdayEditDeliveryOrderOutput,\n});\n"],"mappings":";;;AAuCA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzC2C,EAAE,OAAO;EACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAC7H,UAAU,EAAE,OAAO;GACnB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;GAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;GACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;GACrF,cAAc,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,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,SAAS,4DAcH;CACP,QAd4C,EAAE,OAAO;EACrD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACjG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-on-demand-estimate.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-on-demand-estimate.cjs","names":["z","action"],"sources":["../../src/actions/get-on-demand-estimate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayGetOnDemandEstimateInput = z.object({\n orderId: z.string().describe(\"The identifier for the delivery order to get estimates for.\"),\n}).describe(\"Request parameters for getting on-demand delivery estimates.\");\nconst ShipdayGetOnDemandEstimate_DeliveryEstimateSchema = z.object({\n id: z.string().describe(\"Unique estimate identifier\").nullable().optional(),\n fee: z.number().describe(\"Delivery cost amount\").nullable().optional(),\n name: z.string().describe(\"Service provider name\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred\").nullable().optional(),\n errorCode: z.string().describe(\"System error code if applicable (e.g., SDX-3-2)\").nullable().optional(),\n pickupTime: z.string().describe(\"Scheduled pickup timestamp in ISO 8601 UTC format (YYYY-MM-DDTHH:MM:SSZ)\").nullable().optional(),\n deliveryTime: z.string().describe(\"Estimated delivery timestamp in ISO 8601 UTC format (YYYY-MM-DDTHH:MM:SSZ)\").nullable().optional(),\n errorMessage: z.string().describe(\"Human-readable error description or diagnostic information\").nullable().optional(),\n pickupDuration: z.number().int().describe(\"Expected pickup duration in minutes\").nullable().optional(),\n deliveryDuration: z.number().int().describe(\"Expected delivery duration in minutes\").nullable().optional(),\n}).passthrough().describe(\"Individual delivery estimate from a service provider.\");\nexport const ShipdayGetOnDemandEstimateOutput = z.object({\n estimates: z.array(ShipdayGetOnDemandEstimate_DeliveryEstimateSchema).describe(\"List of delivery estimates from third-party service providers\"),\n}).passthrough().describe(\"Response containing delivery estimates from various service providers.\");\n\nexport const shipdayGetOnDemandEstimate = action(\"SHIPDAY_GET_ON_DEMAND_ESTIMATE\", {\n slug: \"shipday-get-on-demand-estimate\",\n name: \"Get On-Demand Delivery Estimate\",\n description: \"Tool to get on-demand delivery estimates from third-party service providers for a specific order. Use when you need to retrieve pricing, pickup/delivery times, and durations for a delivery order.\",\n input: ShipdayGetOnDemandEstimateInput,\n output: ShipdayGetOnDemandEstimateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EAC5F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,WAAWA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,+DAA+D,EAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAAwE;AAElG,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-on-demand-estimate.cjs","names":["z","action"],"sources":["../../src/actions/get-on-demand-estimate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shipday } from \"../app\";\n\nexport const ShipdayGetOnDemandEstimateInput = z.object({\n orderId: z.string().describe(\"The identifier for the delivery order to get estimates for.\"),\n}).describe(\"Request parameters for getting on-demand delivery estimates.\");\nconst ShipdayGetOnDemandEstimate_DeliveryEstimateSchema = z.object({\n id: z.string().describe(\"Unique estimate identifier\").nullable().optional(),\n fee: z.number().describe(\"Delivery cost amount\").nullable().optional(),\n name: z.string().describe(\"Service provider name\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred\").nullable().optional(),\n errorCode: z.string().describe(\"System error code if applicable (e.g., SDX-3-2)\").nullable().optional(),\n pickupTime: z.string().describe(\"Scheduled pickup timestamp in ISO 8601 UTC format (YYYY-MM-DDTHH:MM:SSZ)\").nullable().optional(),\n deliveryTime: z.string().describe(\"Estimated delivery timestamp in ISO 8601 UTC format (YYYY-MM-DDTHH:MM:SSZ)\").nullable().optional(),\n errorMessage: z.string().describe(\"Human-readable error description or diagnostic information\").nullable().optional(),\n pickupDuration: z.number().int().describe(\"Expected pickup duration in minutes\").nullable().optional(),\n deliveryDuration: z.number().int().describe(\"Expected delivery duration in minutes\").nullable().optional(),\n}).passthrough().describe(\"Individual delivery estimate from a service provider.\");\nexport const ShipdayGetOnDemandEstimateOutput = z.object({\n estimates: z.array(ShipdayGetOnDemandEstimate_DeliveryEstimateSchema).describe(\"List of delivery estimates from third-party service providers\"),\n}).passthrough().describe(\"Response containing delivery estimates from various service providers.\");\n\nexport const shipdayGetOnDemandEstimate: AppAction<\n typeof ShipdayGetOnDemandEstimateInput,\n typeof ShipdayGetOnDemandEstimateOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_GET_ON_DEMAND_ESTIMATE\", {\n slug: \"shipday-get-on-demand-estimate\",\n name: \"Get On-Demand Delivery Estimate\",\n description: \"Tool to get on-demand delivery estimates from third-party service providers for a specific order. Use when you need to retrieve pricing, pickup/delivery times, and durations for a delivery order.\",\n input: ShipdayGetOnDemandEstimateInput,\n output: ShipdayGetOnDemandEstimateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EAC5F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B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Aa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-on-demand-estimate.d.ts
@@ -18,9 +20,7 @@ declare const ShipdayGetOnDemandEstimateOutput: z.ZodObject<{
18
20
  deliveryDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
21
  }, z.core.$loose>>;
20
22
  }, z.core.$loose>;
21
- declare const shipdayGetOnDemandEstimate: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- orderId: string;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const shipdayGetOnDemandEstimate: AppAction<typeof ShipdayGetOnDemandEstimateInput, typeof ShipdayGetOnDemandEstimateOutput, typeof shipday.credential>;
24
24
  //#endregion
25
25
  export { shipdayGetOnDemandEstimate };
26
26
  //# sourceMappingURL=get-on-demand-estimate.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-on-demand-estimate.d.cts","names":[],"sources":["../../src/actions/get-on-demand-estimate.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAe/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"get-on-demand-estimate.d.cts","names":[],"sources":["../../src/actions/get-on-demand-estimate.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAe/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-on-demand-estimate.d.ts
@@ -18,9 +20,7 @@ declare const ShipdayGetOnDemandEstimateOutput: z.ZodObject<{
18
20
  deliveryDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
21
  }, z.core.$loose>>;
20
22
  }, z.core.$loose>;
21
- declare const shipdayGetOnDemandEstimate: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- orderId: string;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const shipdayGetOnDemandEstimate: AppAction<typeof ShipdayGetOnDemandEstimateInput, typeof ShipdayGetOnDemandEstimateOutput, typeof shipday.credential>;
24
24
  //#endregion
25
25
  export { shipdayGetOnDemandEstimate };
26
26
  //# sourceMappingURL=get-on-demand-estimate.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-on-demand-estimate.d.mts","names":[],"sources":["../../src/actions/get-on-demand-estimate.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAe/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"get-on-demand-estimate.d.mts","names":[],"sources":["../../src/actions/get-on-demand-estimate.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAe/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-on-demand-estimate.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-on-demand-estimate.mjs","names":[],"sources":["../../src/actions/get-on-demand-estimate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayGetOnDemandEstimateInput = z.object({\n orderId: z.string().describe(\"The identifier for the delivery order to get estimates for.\"),\n}).describe(\"Request parameters for getting on-demand delivery estimates.\");\nconst ShipdayGetOnDemandEstimate_DeliveryEstimateSchema = z.object({\n id: z.string().describe(\"Unique estimate identifier\").nullable().optional(),\n fee: z.number().describe(\"Delivery cost amount\").nullable().optional(),\n name: z.string().describe(\"Service provider name\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred\").nullable().optional(),\n errorCode: z.string().describe(\"System error code if applicable (e.g., SDX-3-2)\").nullable().optional(),\n pickupTime: z.string().describe(\"Scheduled pickup timestamp in ISO 8601 UTC format (YYYY-MM-DDTHH:MM:SSZ)\").nullable().optional(),\n deliveryTime: z.string().describe(\"Estimated delivery timestamp in ISO 8601 UTC format (YYYY-MM-DDTHH:MM:SSZ)\").nullable().optional(),\n errorMessage: z.string().describe(\"Human-readable error description or diagnostic information\").nullable().optional(),\n pickupDuration: z.number().int().describe(\"Expected pickup duration in minutes\").nullable().optional(),\n deliveryDuration: z.number().int().describe(\"Expected delivery duration in minutes\").nullable().optional(),\n}).passthrough().describe(\"Individual delivery estimate from a service provider.\");\nexport const ShipdayGetOnDemandEstimateOutput = z.object({\n estimates: z.array(ShipdayGetOnDemandEstimate_DeliveryEstimateSchema).describe(\"List of delivery estimates from third-party service providers\"),\n}).passthrough().describe(\"Response containing delivery estimates from various service providers.\");\n\nexport const shipdayGetOnDemandEstimate = action(\"SHIPDAY_GET_ON_DEMAND_ESTIMATE\", {\n slug: \"shipday-get-on-demand-estimate\",\n name: \"Get On-Demand Delivery Estimate\",\n description: \"Tool to get on-demand delivery estimates from third-party service providers for a specific order. Use when you need to retrieve pricing, pickup/delivery times, and durations for a delivery order.\",\n input: ShipdayGetOnDemandEstimateInput,\n output: ShipdayGetOnDemandEstimateOutput,\n});\n"],"mappings":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EACvD,WAAW,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,+DAA+D,EAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-on-demand-estimate.mjs","names":[],"sources":["../../src/actions/get-on-demand-estimate.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shipday } from \"../app\";\n\nexport const ShipdayGetOnDemandEstimateInput = z.object({\n orderId: z.string().describe(\"The identifier for the delivery order to get estimates for.\"),\n}).describe(\"Request parameters for getting on-demand delivery estimates.\");\nconst ShipdayGetOnDemandEstimate_DeliveryEstimateSchema = z.object({\n id: z.string().describe(\"Unique estimate identifier\").nullable().optional(),\n fee: z.number().describe(\"Delivery cost amount\").nullable().optional(),\n name: z.string().describe(\"Service provider name\").nullable().optional(),\n error: z.boolean().describe(\"Indicates whether an error occurred\").nullable().optional(),\n errorCode: z.string().describe(\"System error code if applicable (e.g., SDX-3-2)\").nullable().optional(),\n pickupTime: z.string().describe(\"Scheduled pickup timestamp in ISO 8601 UTC format (YYYY-MM-DDTHH:MM:SSZ)\").nullable().optional(),\n deliveryTime: z.string().describe(\"Estimated delivery timestamp in ISO 8601 UTC format (YYYY-MM-DDTHH:MM:SSZ)\").nullable().optional(),\n errorMessage: z.string().describe(\"Human-readable error description or diagnostic information\").nullable().optional(),\n pickupDuration: z.number().int().describe(\"Expected pickup duration in minutes\").nullable().optional(),\n deliveryDuration: z.number().int().describe(\"Expected delivery duration in minutes\").nullable().optional(),\n}).passthrough().describe(\"Individual delivery estimate from a service provider.\");\nexport const ShipdayGetOnDemandEstimateOutput = z.object({\n estimates: z.array(ShipdayGetOnDemandEstimate_DeliveryEstimateSchema).describe(\"List of delivery estimates from third-party service providers\"),\n}).passthrough().describe(\"Response containing delivery estimates from various service providers.\");\n\nexport const shipdayGetOnDemandEstimate: AppAction<\n typeof ShipdayGetOnDemandEstimateInput,\n typeof ShipdayGetOnDemandEstimateOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_GET_ON_DEMAND_ESTIMATE\", {\n slug: \"shipday-get-on-demand-estimate\",\n name: \"Get On-Demand Delivery Estimate\",\n description: \"Tool to get on-demand delivery estimates from third-party service providers for a specific order. Use when you need to retrieve pricing, pickup/delivery times, and durations for a delivery order.\",\n input: ShipdayGetOnDemandEstimateInput,\n output: ShipdayGetOnDemandEstimateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO,EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EAC5F,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,oDAAoD,EAAE,OAAO;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,6BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8C,EAAE,OAAO,EACvD,WAAW,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,+DAA+D,EAChJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-on-demand-services.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-on-demand-services.cjs","names":["z","action"],"sources":["../../src/actions/get-on-demand-services.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayGetOnDemandServicesInput = z.object({}).describe(\"Request model for retrieving on-demand delivery services. No parameters are required.\");\nconst ShipdayGetOnDemandServices_ServiceProviderSchema = z.object({\n name: z.string().describe(\"The name of the service provider.\").nullable(),\n prod: z.boolean().describe(\"Indicates whether the delivery service operates in production mode.\").nullable(),\n status: z.boolean().describe(\"Shows whether the service provider is currently enabled for the account.\").nullable(),\n}).passthrough().describe(\"Model representing a delivery service provider.\");\nexport const ShipdayGetOnDemandServicesOutput = z.object({\n services: z.array(ShipdayGetOnDemandServices_ServiceProviderSchema).describe(\"List of available on-demand delivery service providers.\"),\n}).passthrough().describe(\"Response model for on-demand delivery services.\");\n\nexport const shipdayGetOnDemandServices = action(\"SHIPDAY_GET_ON_DEMAND_SERVICES\", {\n slug: \"shipday-get-on-demand-services\",\n name: \"Get On-Demand Delivery Services\",\n description: \"Tool to retrieve available third-party on-demand delivery service providers. Use when you need to check which delivery services are available or enabled for the account.\",\n input: ShipdayGetOnDemandServicesInput,\n output: ShipdayGetOnDemandServicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC5J,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,UAAUA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,yDAAyD,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-on-demand-services.cjs","names":["z","action"],"sources":["../../src/actions/get-on-demand-services.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shipday } from \"../app\";\n\nexport const ShipdayGetOnDemandServicesInput = z.object({}).describe(\"Request model for retrieving on-demand delivery services. No parameters are required.\");\nconst ShipdayGetOnDemandServices_ServiceProviderSchema = z.object({\n name: z.string().describe(\"The name of the service provider.\").nullable(),\n prod: z.boolean().describe(\"Indicates whether the delivery service operates in production mode.\").nullable(),\n status: z.boolean().describe(\"Shows whether the service provider is currently enabled for the account.\").nullable(),\n}).passthrough().describe(\"Model representing a delivery service provider.\");\nexport const ShipdayGetOnDemandServicesOutput = z.object({\n services: z.array(ShipdayGetOnDemandServices_ServiceProviderSchema).describe(\"List of available on-demand delivery service providers.\"),\n}).passthrough().describe(\"Response model for on-demand delivery services.\");\n\nexport const shipdayGetOnDemandServices: AppAction<\n typeof ShipdayGetOnDemandServicesInput,\n typeof ShipdayGetOnDemandServicesOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_GET_ON_DEMAND_SERVICES\", {\n slug: \"shipday-get-on-demand-services\",\n name: \"Get On-Demand Delivery Services\",\n description: \"Tool to retrieve available third-party on-demand delivery service providers. Use when you need to check which delivery services are available or enabled for the account.\",\n input: ShipdayGetOnDemandServicesInput,\n output: ShipdayGetOnDemandServicesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC5J,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,UAAUA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,yDAAyD,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-on-demand-services.d.ts
@@ -9,7 +11,7 @@ declare const ShipdayGetOnDemandServicesOutput: z.ZodObject<{
9
11
  status: z.ZodNullable<z.ZodBoolean>;
10
12
  }, z.core.$loose>>;
11
13
  }, z.core.$loose>;
12
- declare const shipdayGetOnDemandServices: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const shipdayGetOnDemandServices: AppAction<typeof ShipdayGetOnDemandServicesInput, typeof ShipdayGetOnDemandServicesOutput, typeof shipday.credential>;
13
15
  //#endregion
14
16
  export { shipdayGetOnDemandServices };
15
17
  //# sourceMappingURL=get-on-demand-services.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-on-demand-services.d.cts","names":[],"sources":["../../src/actions/get-on-demand-services.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-on-demand-services.d.cts","names":[],"sources":["../../src/actions/get-on-demand-services.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { shipday } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-on-demand-services.d.ts
@@ -9,7 +11,7 @@ declare const ShipdayGetOnDemandServicesOutput: z.ZodObject<{
9
11
  status: z.ZodNullable<z.ZodBoolean>;
10
12
  }, z.core.$loose>>;
11
13
  }, z.core.$loose>;
12
- declare const shipdayGetOnDemandServices: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const shipdayGetOnDemandServices: AppAction<typeof ShipdayGetOnDemandServicesInput, typeof ShipdayGetOnDemandServicesOutput, typeof shipday.credential>;
13
15
  //#endregion
14
16
  export { shipdayGetOnDemandServices };
15
17
  //# sourceMappingURL=get-on-demand-services.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-on-demand-services.d.mts","names":[],"sources":["../../src/actions/get-on-demand-services.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-on-demand-services.d.mts","names":[],"sources":["../../src/actions/get-on-demand-services.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-on-demand-services.ts