@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":"get-on-demand-services.mjs","names":[],"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,kCAAkC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC5J,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAK3E,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,UAAU,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,yDAAyD,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-on-demand-services.mjs","names":[],"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,kCAAkC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AAC5J,MAAM,mDAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC3G,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAK3E,MAAa,6BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8C,EAAE,OAAO,EACvD,UAAU,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,yDAAyD,EACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;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/insert-order.ts
@@ -1 +1 @@
1
- {"version":3,"file":"insert-order.cjs","names":["z","action"],"sources":["../../src/actions/insert-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayInsertOrderInput = z.object({\n tax: z.number().describe(\"Tax amount\").optional(),\n tips: z.number().describe(\"Tip/gratuity amount\").optional(),\n cashTips: z.number().describe(\"Cash tip amount\").optional(),\n orderItems: z.array(z.object({\n name: z.string().describe(\"Name of the order item\"),\n addOns: z.array(z.string()).describe(\"Additional options or modifications for the item\").optional(),\n detail: z.string().describe(\"Special instructions for 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(\"Array of order items with name, unitPrice, and quantity\"),\n deliveryFee: z.number().describe(\"Delivery/shipping fee\").optional(),\n orderNumber: z.string().describe(\"Unique order reference number from customer platform\"),\n orderSource: z.string().describe(\"Origin of the order (e.g., 'Seamless', 'Website')\").optional(),\n additionalId: z.string().describe(\"Secondary reference identifier\").optional(),\n creditCardId: z.string().describe(\"Credit card reference identifier\").optional(),\n customerName: z.string().describe(\"Full name of the recipient\"),\n restaurantId: z.number().int().describe(\"Restaurant identifier\").optional(),\n customerEmail: z.string().describe(\"Customer email address\"),\n paymentMethod: z.enum([\"cash\", \"credit_card\", \"CASH\", \"CARD\", \"ONLINE\", \"CREDIT_CARD\", \"CARD_PHONE\"]).describe(\"Payment method. Must be one of: cash, credit_card, CASH, CARD, ONLINE, CREDIT_CARD, CARD_PHONE\").optional(),\n creditCardType: z.enum([\"visa\", \"master_card\", \"AMEX\", \"other\"]).describe(\"Type of credit card. Must be one of: visa, master_card, AMEX, other\").optional(),\n discountAmount: z.number().describe(\"Applied discount amount\").optional(),\n pickupLatitude: z.number().describe(\"Pickup location latitude coordinate\").optional(),\n restaurantName: z.string().describe(\"Business/pickup location name\"),\n totalOrderCost: z.number().describe(\"Total order amount\"),\n customerAddress: z.string().describe(\"Complete delivery address\"),\n pickupLongitude: z.number().describe(\"Pickup location longitude coordinate\").optional(),\n deliveryLatitude: z.number().describe(\"Delivery location latitude coordinate\").optional(),\n deliveryLongitude: z.number().describe(\"Delivery location longitude coordinate\").optional(),\n pickupInstruction: z.string().describe(\"Pickup-related instructions\").optional(),\n restaurantAddress: z.string().describe(\"Pickup location address\"),\n clientRestaurantId: z.string().describe(\"Client's internal restaurant identifier\").optional(),\n expectedPickupTime: z.string().describe(\"Pickup time in YYYY-MM-DD HH:MM format or HH:MM:SS format\"),\n customerPhoneNumber: z.string().describe(\"Customer phone number with country code\"),\n deliveryInstruction: z.string().describe(\"Special delivery instructions or notes\").optional(),\n expectedDeliveryDate: z.string().describe(\"Target delivery date in YYYY-MM-DD format\"),\n expectedDeliveryTime: z.string().describe(\"Delivery time in YYYY-MM-DD HH:MM format or HH:MM:SS format\"),\n restaurantPhoneNumber: z.string().describe(\"Business contact phone number\"),\n}).describe(\"Request parameters for creating a new delivery order in Shipday.\");\nexport const ShipdayInsertOrderOutput = z.object({\n orderId: z.number().int().describe(\"Unique identifier assigned to the newly created order. Can be null if order creation failed.\").nullable().optional(),\n success: z.boolean().describe(\"Boolean value indicating the success of the order insert operation\").nullable(),\n response: z.string().describe(\"Confirmation message upon successful order creation\").nullable(),\n}).passthrough().describe(\"Response from creating a delivery order.\");\n\nexport const shipdayInsertOrder = action(\"SHIPDAY_INSERT_ORDER\", {\n slug: \"shipday-insert-order\",\n name: \"Insert Order\",\n description: \"Tool to create a new delivery order in Shipday. Use when you need to insert a delivery order with customer details, restaurant information, order items, and delivery schedule.\",\n input: ShipdayInsertOrderInput,\n output: ShipdayInsertOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC1D,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EAClD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAClG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAA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AC,SAAS;CACvJ,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"insert-order.cjs","names":["z","action"],"sources":["../../src/actions/insert-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 ShipdayInsertOrderInput = z.object({\n tax: z.number().describe(\"Tax amount\").optional(),\n tips: z.number().describe(\"Tip/gratuity amount\").optional(),\n cashTips: z.number().describe(\"Cash tip amount\").optional(),\n orderItems: z.array(z.object({\n name: z.string().describe(\"Name of the order item\"),\n addOns: z.array(z.string()).describe(\"Additional options or modifications for the item\").optional(),\n detail: z.string().describe(\"Special instructions for 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(\"Array of order items with name, unitPrice, and quantity\"),\n deliveryFee: z.number().describe(\"Delivery/shipping fee\").optional(),\n orderNumber: z.string().describe(\"Unique order reference number from customer platform\"),\n orderSource: z.string().describe(\"Origin of the order (e.g., 'Seamless', 'Website')\").optional(),\n additionalId: z.string().describe(\"Secondary reference identifier\").optional(),\n creditCardId: z.string().describe(\"Credit card reference identifier\").optional(),\n customerName: z.string().describe(\"Full name of the recipient\"),\n restaurantId: z.number().int().describe(\"Restaurant identifier\").optional(),\n customerEmail: z.string().describe(\"Customer email address\"),\n paymentMethod: z.enum([\"cash\", \"credit_card\", \"CASH\", \"CARD\", \"ONLINE\", \"CREDIT_CARD\", \"CARD_PHONE\"]).describe(\"Payment method. Must be one of: cash, credit_card, CASH, CARD, ONLINE, CREDIT_CARD, CARD_PHONE\").optional(),\n creditCardType: z.enum([\"visa\", \"master_card\", \"AMEX\", \"other\"]).describe(\"Type of credit card. Must be one of: visa, master_card, AMEX, other\").optional(),\n discountAmount: z.number().describe(\"Applied discount amount\").optional(),\n pickupLatitude: z.number().describe(\"Pickup location latitude coordinate\").optional(),\n restaurantName: z.string().describe(\"Business/pickup location name\"),\n totalOrderCost: z.number().describe(\"Total order amount\"),\n customerAddress: z.string().describe(\"Complete delivery address\"),\n pickupLongitude: z.number().describe(\"Pickup location longitude coordinate\").optional(),\n deliveryLatitude: z.number().describe(\"Delivery location latitude coordinate\").optional(),\n deliveryLongitude: z.number().describe(\"Delivery location longitude coordinate\").optional(),\n pickupInstruction: z.string().describe(\"Pickup-related instructions\").optional(),\n restaurantAddress: z.string().describe(\"Pickup location address\"),\n clientRestaurantId: z.string().describe(\"Client's internal restaurant identifier\").optional(),\n expectedPickupTime: z.string().describe(\"Pickup time in YYYY-MM-DD HH:MM format or HH:MM:SS format\"),\n customerPhoneNumber: z.string().describe(\"Customer phone number with country code\"),\n deliveryInstruction: z.string().describe(\"Special delivery instructions or notes\").optional(),\n expectedDeliveryDate: z.string().describe(\"Target delivery date in YYYY-MM-DD format\"),\n expectedDeliveryTime: z.string().describe(\"Delivery time in YYYY-MM-DD HH:MM format or HH:MM:SS format\"),\n restaurantPhoneNumber: z.string().describe(\"Business contact phone number\"),\n}).describe(\"Request parameters for creating a new delivery order in Shipday.\");\nexport const ShipdayInsertOrderOutput = z.object({\n orderId: z.number().int().describe(\"Unique identifier assigned to the newly created order. Can be null if order creation failed.\").nullable().optional(),\n success: z.boolean().describe(\"Boolean value indicating the success of the order insert operation\").nullable(),\n response: z.string().describe(\"Confirmation message upon successful order creation\").nullable(),\n}).passthrough().describe(\"Response from creating a delivery order.\");\n\nexport const shipdayInsertOrder: AppAction<\n typeof ShipdayInsertOrderInput,\n typeof ShipdayInsertOrderOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_INSERT_ORDER\", {\n slug: \"shipday-insert-order\",\n name: \"Insert Order\",\n description: \"Tool to create a new delivery order in Shipday. Use when you need to insert a delivery order with customer details, restaurant information, order items, and delivery schedule.\",\n input: ShipdayInsertOrderInput,\n output: ShipdayInsertOrderOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC1D,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EAClD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAClG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;EAC1D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,SAAS,yDAAyD;CAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACnE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,aAAaA,IAAAA,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q/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/insert-order.d.ts
@@ -58,46 +60,7 @@ declare const ShipdayInsertOrderOutput: z.ZodObject<{
58
60
  success: z.ZodNullable<z.ZodBoolean>;
59
61
  response: z.ZodNullable<z.ZodString>;
60
62
  }, z.core.$loose>;
61
- declare const shipdayInsertOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
62
- orderItems: {
63
- [x: string]: unknown;
64
- name: string;
65
- quantity: number;
66
- unitPrice: number;
67
- addOns?: string[] | undefined;
68
- detail?: string | undefined;
69
- }[];
70
- orderNumber: string;
71
- customerName: string;
72
- customerEmail: string;
73
- restaurantName: string;
74
- totalOrderCost: number;
75
- customerAddress: string;
76
- restaurantAddress: string;
77
- expectedPickupTime: string;
78
- customerPhoneNumber: string;
79
- expectedDeliveryDate: string;
80
- expectedDeliveryTime: string;
81
- restaurantPhoneNumber: string;
82
- tax?: number | undefined;
83
- tips?: number | undefined;
84
- cashTips?: number | undefined;
85
- deliveryFee?: number | undefined;
86
- orderSource?: string | undefined;
87
- additionalId?: string | undefined;
88
- creditCardId?: string | undefined;
89
- restaurantId?: number | undefined;
90
- paymentMethod?: "cash" | "credit_card" | "CASH" | "CARD" | "ONLINE" | "CREDIT_CARD" | "CARD_PHONE" | undefined;
91
- creditCardType?: "visa" | "master_card" | "AMEX" | "other" | undefined;
92
- discountAmount?: number | undefined;
93
- pickupLatitude?: number | undefined;
94
- pickupLongitude?: number | undefined;
95
- deliveryLatitude?: number | undefined;
96
- deliveryLongitude?: number | undefined;
97
- pickupInstruction?: string | undefined;
98
- clientRestaurantId?: string | undefined;
99
- deliveryInstruction?: string | undefined;
100
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
+ declare const shipdayInsertOrder: AppAction<typeof ShipdayInsertOrderInput, typeof ShipdayInsertOrderOutput, typeof shipday.credential>;
101
64
  //#endregion
102
65
  export { shipdayInsertOrder };
103
66
  //# sourceMappingURL=insert-order.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"insert-order.d.cts","names":[],"sources":["../../src/actions/insert-order.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"insert-order.d.cts","names":[],"sources":["../../src/actions/insert-order.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,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/insert-order.d.ts
@@ -58,46 +60,7 @@ declare const ShipdayInsertOrderOutput: z.ZodObject<{
58
60
  success: z.ZodNullable<z.ZodBoolean>;
59
61
  response: z.ZodNullable<z.ZodString>;
60
62
  }, z.core.$loose>;
61
- declare const shipdayInsertOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
62
- orderItems: {
63
- [x: string]: unknown;
64
- name: string;
65
- quantity: number;
66
- unitPrice: number;
67
- addOns?: string[] | undefined;
68
- detail?: string | undefined;
69
- }[];
70
- orderNumber: string;
71
- customerName: string;
72
- customerEmail: string;
73
- restaurantName: string;
74
- totalOrderCost: number;
75
- customerAddress: string;
76
- restaurantAddress: string;
77
- expectedPickupTime: string;
78
- customerPhoneNumber: string;
79
- expectedDeliveryDate: string;
80
- expectedDeliveryTime: string;
81
- restaurantPhoneNumber: string;
82
- tax?: number | undefined;
83
- tips?: number | undefined;
84
- cashTips?: number | undefined;
85
- deliveryFee?: number | undefined;
86
- orderSource?: string | undefined;
87
- additionalId?: string | undefined;
88
- creditCardId?: string | undefined;
89
- restaurantId?: number | undefined;
90
- paymentMethod?: "cash" | "credit_card" | "CASH" | "CARD" | "ONLINE" | "CREDIT_CARD" | "CARD_PHONE" | undefined;
91
- creditCardType?: "visa" | "master_card" | "AMEX" | "other" | undefined;
92
- discountAmount?: number | undefined;
93
- pickupLatitude?: number | undefined;
94
- pickupLongitude?: number | undefined;
95
- deliveryLatitude?: number | undefined;
96
- deliveryLongitude?: number | undefined;
97
- pickupInstruction?: string | undefined;
98
- clientRestaurantId?: string | undefined;
99
- deliveryInstruction?: string | undefined;
100
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
+ declare const shipdayInsertOrder: AppAction<typeof ShipdayInsertOrderInput, typeof ShipdayInsertOrderOutput, typeof shipday.credential>;
101
64
  //#endregion
102
65
  export { shipdayInsertOrder };
103
66
  //# sourceMappingURL=insert-order.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"insert-order.d.mts","names":[],"sources":["../../src/actions/insert-order.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"insert-order.d.mts","names":[],"sources":["../../src/actions/insert-order.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,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 shipdayInsertOrder = action("SHIPDAY_INSERT_ORDER", {
@@ -1 +1 @@
1
- {"version":3,"file":"insert-order.mjs","names":[],"sources":["../../src/actions/insert-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayInsertOrderInput = z.object({\n tax: z.number().describe(\"Tax amount\").optional(),\n tips: z.number().describe(\"Tip/gratuity amount\").optional(),\n cashTips: z.number().describe(\"Cash tip amount\").optional(),\n orderItems: z.array(z.object({\n name: z.string().describe(\"Name of the order item\"),\n addOns: z.array(z.string()).describe(\"Additional options or modifications for the item\").optional(),\n detail: z.string().describe(\"Special instructions for 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(\"Array of order items with name, unitPrice, and quantity\"),\n deliveryFee: z.number().describe(\"Delivery/shipping fee\").optional(),\n orderNumber: z.string().describe(\"Unique order reference number from customer platform\"),\n orderSource: z.string().describe(\"Origin of the order (e.g., 'Seamless', 'Website')\").optional(),\n additionalId: z.string().describe(\"Secondary reference identifier\").optional(),\n creditCardId: z.string().describe(\"Credit card reference identifier\").optional(),\n customerName: z.string().describe(\"Full name of the recipient\"),\n restaurantId: z.number().int().describe(\"Restaurant identifier\").optional(),\n customerEmail: z.string().describe(\"Customer email address\"),\n paymentMethod: z.enum([\"cash\", \"credit_card\", \"CASH\", \"CARD\", \"ONLINE\", \"CREDIT_CARD\", \"CARD_PHONE\"]).describe(\"Payment method. Must be one of: cash, credit_card, CASH, CARD, ONLINE, CREDIT_CARD, CARD_PHONE\").optional(),\n creditCardType: z.enum([\"visa\", \"master_card\", \"AMEX\", \"other\"]).describe(\"Type of credit card. Must be one of: visa, master_card, AMEX, other\").optional(),\n discountAmount: z.number().describe(\"Applied discount amount\").optional(),\n pickupLatitude: z.number().describe(\"Pickup location latitude coordinate\").optional(),\n restaurantName: z.string().describe(\"Business/pickup location name\"),\n totalOrderCost: z.number().describe(\"Total order amount\"),\n customerAddress: z.string().describe(\"Complete delivery address\"),\n pickupLongitude: z.number().describe(\"Pickup location longitude coordinate\").optional(),\n deliveryLatitude: z.number().describe(\"Delivery location latitude coordinate\").optional(),\n deliveryLongitude: z.number().describe(\"Delivery location longitude coordinate\").optional(),\n pickupInstruction: z.string().describe(\"Pickup-related instructions\").optional(),\n restaurantAddress: z.string().describe(\"Pickup location address\"),\n clientRestaurantId: z.string().describe(\"Client's internal restaurant identifier\").optional(),\n expectedPickupTime: z.string().describe(\"Pickup time in YYYY-MM-DD HH:MM format or HH:MM:SS format\"),\n customerPhoneNumber: z.string().describe(\"Customer phone number with country code\"),\n deliveryInstruction: z.string().describe(\"Special delivery instructions or notes\").optional(),\n expectedDeliveryDate: z.string().describe(\"Target delivery date in YYYY-MM-DD format\"),\n expectedDeliveryTime: z.string().describe(\"Delivery time in YYYY-MM-DD HH:MM format or HH:MM:SS format\"),\n restaurantPhoneNumber: z.string().describe(\"Business contact phone number\"),\n}).describe(\"Request parameters for creating a new delivery order in Shipday.\");\nexport const ShipdayInsertOrderOutput = z.object({\n orderId: z.number().int().describe(\"Unique identifier assigned to the newly created order. Can be null if order creation failed.\").nullable().optional(),\n success: z.boolean().describe(\"Boolean value indicating the success of the order insert operation\").nullable(),\n response: z.string().describe(\"Confirmation message upon successful order creation\").nullable(),\n}).passthrough().describe(\"Response from creating a delivery order.\");\n\nexport const shipdayInsertOrder = action(\"SHIPDAY_INSERT_ORDER\", {\n slug: \"shipday-insert-order\",\n name: \"Insert Order\",\n description: \"Tool to create a new delivery order in Shipday. Use when you need to insert a delivery order with customer details, restaurant information, order items, and delivery schedule.\",\n input: ShipdayInsertOrderInput,\n output: ShipdayInsertOrderOutput,\n});\n"],"mappings":";;A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rF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACvG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5E,CAAC,CAAC,CAAC,SAAS,kEAWH;CACP,QAXsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"insert-order.mjs","names":[],"sources":["../../src/actions/insert-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 ShipdayInsertOrderInput = z.object({\n tax: z.number().describe(\"Tax amount\").optional(),\n tips: z.number().describe(\"Tip/gratuity amount\").optional(),\n cashTips: z.number().describe(\"Cash tip amount\").optional(),\n orderItems: z.array(z.object({\n name: z.string().describe(\"Name of the order item\"),\n addOns: z.array(z.string()).describe(\"Additional options or modifications for the item\").optional(),\n detail: z.string().describe(\"Special instructions for 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(\"Array of order items with name, unitPrice, and quantity\"),\n deliveryFee: z.number().describe(\"Delivery/shipping fee\").optional(),\n orderNumber: z.string().describe(\"Unique order reference number from customer platform\"),\n orderSource: z.string().describe(\"Origin of the order (e.g., 'Seamless', 'Website')\").optional(),\n additionalId: z.string().describe(\"Secondary reference identifier\").optional(),\n creditCardId: z.string().describe(\"Credit card reference identifier\").optional(),\n customerName: z.string().describe(\"Full name of the recipient\"),\n restaurantId: z.number().int().describe(\"Restaurant identifier\").optional(),\n customerEmail: z.string().describe(\"Customer email address\"),\n paymentMethod: z.enum([\"cash\", \"credit_card\", \"CASH\", \"CARD\", \"ONLINE\", \"CREDIT_CARD\", \"CARD_PHONE\"]).describe(\"Payment method. Must be one of: cash, credit_card, CASH, CARD, ONLINE, CREDIT_CARD, CARD_PHONE\").optional(),\n creditCardType: z.enum([\"visa\", \"master_card\", \"AMEX\", \"other\"]).describe(\"Type of credit card. Must be one of: visa, master_card, AMEX, other\").optional(),\n discountAmount: z.number().describe(\"Applied discount amount\").optional(),\n pickupLatitude: z.number().describe(\"Pickup location latitude coordinate\").optional(),\n restaurantName: z.string().describe(\"Business/pickup location name\"),\n totalOrderCost: z.number().describe(\"Total order amount\"),\n customerAddress: z.string().describe(\"Complete delivery address\"),\n pickupLongitude: z.number().describe(\"Pickup location longitude coordinate\").optional(),\n deliveryLatitude: z.number().describe(\"Delivery location latitude coordinate\").optional(),\n deliveryLongitude: z.number().describe(\"Delivery location longitude coordinate\").optional(),\n pickupInstruction: z.string().describe(\"Pickup-related instructions\").optional(),\n restaurantAddress: z.string().describe(\"Pickup location address\"),\n clientRestaurantId: z.string().describe(\"Client's internal restaurant identifier\").optional(),\n expectedPickupTime: z.string().describe(\"Pickup time in YYYY-MM-DD HH:MM format or HH:MM:SS format\"),\n customerPhoneNumber: z.string().describe(\"Customer phone number with country code\"),\n deliveryInstruction: z.string().describe(\"Special delivery instructions or notes\").optional(),\n expectedDeliveryDate: z.string().describe(\"Target delivery date in YYYY-MM-DD format\"),\n expectedDeliveryTime: z.string().describe(\"Delivery time in YYYY-MM-DD HH:MM format or HH:MM:SS format\"),\n restaurantPhoneNumber: z.string().describe(\"Business contact phone number\"),\n}).describe(\"Request parameters for creating a new delivery order in Shipday.\");\nexport const ShipdayInsertOrderOutput = z.object({\n orderId: z.number().int().describe(\"Unique identifier assigned to the newly created order. Can be null if order creation failed.\").nullable().optional(),\n success: z.boolean().describe(\"Boolean value indicating the success of the order insert operation\").nullable(),\n response: z.string().describe(\"Confirmation message upon successful order creation\").nullable(),\n}).passthrough().describe(\"Response from creating a delivery order.\");\n\nexport const shipdayInsertOrder: AppAction<\n typeof ShipdayInsertOrderInput,\n typeof ShipdayInsertOrderOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_INSERT_ORDER\", {\n slug: \"shipday-insert-order\",\n name: \"Insert Order\",\n description: \"Tool to create a new delivery order in Shipday. Use when you need to insert a delivery order with customer details, restaurant information, order items, and delivery schedule.\",\n input: ShipdayInsertOrderInput,\n output: ShipdayInsertOrderOutput,\n});\n"],"mappings":";;;AAmDA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArDqC,EAAE,OAAO;EAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;EAC1D,YAAY,EAAE,MAAM,EAAE,OAAO;GAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;GAClD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;GAClG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;GAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB;GAC1D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC7D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,SAAS,yDAAyD;EAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,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AAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAC/E,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EAChE,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EACnG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EAClF,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC5F,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACrF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACvG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5E,CAAC,CAAC,CAAC,SAAS,kEAeH;CACP,QAfsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAWhB;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/order-ready-to-pickup.ts
@@ -1 +1 @@
1
- {"version":3,"file":"order-ready-to-pickup.cjs","names":["z","action"],"sources":["../../src/actions/order-ready-to-pickup.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayOrderReadyToPickupInput = z.object({\n orderId: z.string().describe(\"Unique identifier for the delivery order to be marked as ready for pickup. This is the order ID returned when the order was created or can be retrieved from order details.\"),\n readyToPickup: z.boolean().default(true).describe(\"Boolean flag indicating whether the order is ready for pickup. Set to true to mark the order as ready.\").optional(),\n}).describe(\"Request parameters for marking an order as ready for pickup.\");\nexport const ShipdayOrderReadyToPickupOutput = z.object({\n success: z.boolean().describe(\"Boolean value indicating whether the order was successfully marked as ready for pickup\").nullable(),\n response: z.string().describe(\"Response message providing additional information about the operation\").nullable().optional(),\n}).passthrough().describe(\"Response from marking an order as ready for pickup.\");\n\nexport const shipdayOrderReadyToPickup = action(\"SHIPDAY_ORDER_READY_TO_PICKUP\", {\n slug: \"shipday-order-ready-to-pickup\",\n name: \"Order Ready to Pickup\",\n description: \"Tool to mark a delivery order as ready for pickup. Use when you need to notify Shipday that an order is prepared and ready for driver pickup at a specific time.\",\n input: ShipdayOrderReadyToPickupInput,\n output: ShipdayOrderReadyToPickupOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CAC1M,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;AACvK,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACjI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"order-ready-to-pickup.cjs","names":["z","action"],"sources":["../../src/actions/order-ready-to-pickup.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 ShipdayOrderReadyToPickupInput = z.object({\n orderId: z.string().describe(\"Unique identifier for the delivery order to be marked as ready for pickup. This is the order ID returned when the order was created or can be retrieved from order details.\"),\n readyToPickup: z.boolean().default(true).describe(\"Boolean flag indicating whether the order is ready for pickup. Set to true to mark the order as ready.\").optional(),\n}).describe(\"Request parameters for marking an order as ready for pickup.\");\nexport const ShipdayOrderReadyToPickupOutput = z.object({\n success: z.boolean().describe(\"Boolean value indicating whether the order was successfully marked as ready for pickup\").nullable(),\n response: z.string().describe(\"Response message providing additional information about the operation\").nullable().optional(),\n}).passthrough().describe(\"Response from marking an order as ready for pickup.\");\n\nexport const shipdayOrderReadyToPickup: AppAction<\n typeof ShipdayOrderReadyToPickupInput,\n typeof ShipdayOrderReadyToPickupOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_ORDER_READY_TO_PICKUP\", {\n slug: \"shipday-order-ready-to-pickup\",\n name: \"Order Ready to Pickup\",\n description: \"Tool to mark a delivery order as ready for pickup. Use when you need to notify Shipday that an order is prepared and ready for driver pickup at a specific time.\",\n input: ShipdayOrderReadyToPickupInput,\n output: ShipdayOrderReadyToPickupOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;CAC1M,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;AACvK,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACjI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,4BAITC,eAAAA,OAAO,iCAAiC;CAC1C,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/order-ready-to-pickup.d.ts
@@ -9,10 +11,7 @@ declare const ShipdayOrderReadyToPickupOutput: z.ZodObject<{
9
11
  success: z.ZodNullable<z.ZodBoolean>;
10
12
  response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
13
  }, z.core.$loose>;
12
- declare const shipdayOrderReadyToPickup: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- orderId: string;
14
- readyToPickup?: boolean | undefined;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const shipdayOrderReadyToPickup: AppAction<typeof ShipdayOrderReadyToPickupInput, typeof ShipdayOrderReadyToPickupOutput, typeof shipday.credential>;
16
15
  //#endregion
17
16
  export { shipdayOrderReadyToPickup };
18
17
  //# sourceMappingURL=order-ready-to-pickup.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"order-ready-to-pickup.d.cts","names":[],"sources":["../../src/actions/order-ready-to-pickup.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"order-ready-to-pickup.d.cts","names":[],"sources":["../../src/actions/order-ready-to-pickup.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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/order-ready-to-pickup.d.ts
@@ -9,10 +11,7 @@ declare const ShipdayOrderReadyToPickupOutput: z.ZodObject<{
9
11
  success: z.ZodNullable<z.ZodBoolean>;
10
12
  response: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
13
  }, z.core.$loose>;
12
- declare const shipdayOrderReadyToPickup: import("@keystrokehq/action").WorkflowActionDefinition<{
13
- orderId: string;
14
- readyToPickup?: boolean | undefined;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
14
+ declare const shipdayOrderReadyToPickup: AppAction<typeof ShipdayOrderReadyToPickupInput, typeof ShipdayOrderReadyToPickupOutput, typeof shipday.credential>;
16
15
  //#endregion
17
16
  export { shipdayOrderReadyToPickup };
18
17
  //# sourceMappingURL=order-ready-to-pickup.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"order-ready-to-pickup.d.mts","names":[],"sources":["../../src/actions/order-ready-to-pickup.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"order-ready-to-pickup.d.mts","names":[],"sources":["../../src/actions/order-ready-to-pickup.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,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 shipdayOrderReadyToPickup = action("SHIPDAY_ORDER_READY_TO_PICKUP", {
@@ -1 +1 @@
1
- {"version":3,"file":"order-ready-to-pickup.mjs","names":[],"sources":["../../src/actions/order-ready-to-pickup.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayOrderReadyToPickupInput = z.object({\n orderId: z.string().describe(\"Unique identifier for the delivery order to be marked as ready for pickup. This is the order ID returned when the order was created or can be retrieved from order details.\"),\n readyToPickup: z.boolean().default(true).describe(\"Boolean flag indicating whether the order is ready for pickup. Set to true to mark the order as ready.\").optional(),\n}).describe(\"Request parameters for marking an order as ready for pickup.\");\nexport const ShipdayOrderReadyToPickupOutput = z.object({\n success: z.boolean().describe(\"Boolean value indicating whether the order was successfully marked as ready for pickup\").nullable(),\n response: z.string().describe(\"Response message providing additional information about the operation\").nullable().optional(),\n}).passthrough().describe(\"Response from marking an order as ready for pickup.\");\n\nexport const shipdayOrderReadyToPickup = action(\"SHIPDAY_ORDER_READY_TO_PICKUP\", {\n slug: \"shipday-order-ready-to-pickup\",\n name: \"Order Ready to Pickup\",\n description: \"Tool to mark a delivery order as ready for pickup. Use when you need to notify Shipday that an order is prepared and ready for driver pickup at a specific time.\",\n input: ShipdayOrderReadyToPickupInput,\n output: ShipdayOrderReadyToPickupOutput,\n});\n"],"mappings":";;AAaA,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb4C,EAAE,OAAO;EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;EAC1M,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACvK,CAAC,CAAC,CAAC,SAAS,8DAUH;CACP,QAV6C,EAAE,OAAO;EACtD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACjI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"order-ready-to-pickup.mjs","names":[],"sources":["../../src/actions/order-ready-to-pickup.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 ShipdayOrderReadyToPickupInput = z.object({\n orderId: z.string().describe(\"Unique identifier for the delivery order to be marked as ready for pickup. This is the order ID returned when the order was created or can be retrieved from order details.\"),\n readyToPickup: z.boolean().default(true).describe(\"Boolean flag indicating whether the order is ready for pickup. Set to true to mark the order as ready.\").optional(),\n}).describe(\"Request parameters for marking an order as ready for pickup.\");\nexport const ShipdayOrderReadyToPickupOutput = z.object({\n success: z.boolean().describe(\"Boolean value indicating whether the order was successfully marked as ready for pickup\").nullable(),\n response: z.string().describe(\"Response message providing additional information about the operation\").nullable().optional(),\n}).passthrough().describe(\"Response from marking an order as ready for pickup.\");\n\nexport const shipdayOrderReadyToPickup: AppAction<\n typeof ShipdayOrderReadyToPickupInput,\n typeof ShipdayOrderReadyToPickupOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_ORDER_READY_TO_PICKUP\", {\n slug: \"shipday-order-ready-to-pickup\",\n name: \"Order Ready to Pickup\",\n description: \"Tool to mark a delivery order as ready for pickup. Use when you need to notify Shipday that an order is prepared and ready for driver pickup at a specific time.\",\n input: ShipdayOrderReadyToPickupInput,\n output: ShipdayOrderReadyToPickupOutput,\n});\n"],"mappings":";;;AAeA,MAAa,4BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjB4C,EAAE,OAAO;EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K;EAC1M,eAAe,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACvK,CAAC,CAAC,CAAC,SAAS,8DAcH;CACP,QAd6C,EAAE,OAAO;EACtD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACjI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAWhB;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/query-delivery-orders.ts
@@ -1 +1 @@
1
- {"version":3,"file":"query-delivery-orders.cjs","names":["z","action"],"sources":["../../src/actions/query-delivery-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayQueryDeliveryOrdersInput = z.object({\n endTime: z.string().describe(\"End time for the query in UTC ISO 8601 format (e.g., '2023-12-04T00:00:00Z'). Filters orders up to this timestamp.\").optional(),\n endCursor: z.number().int().describe(\"Ending cursor for pagination (e.g., 2). Defines the end boundary for the paginated result set.\").optional(),\n startTime: z.string().describe(\"Start time for the query in UTC ISO 8601 format (e.g., '2023-11-28T00:00:00Z'). Filters orders from this timestamp onwards.\").optional(),\n startCursor: z.number().int().describe(\"Starting cursor for pagination (e.g., 1). Used to paginate through result sets.\").optional(),\n}).describe(\"Request model for querying delivery orders with filters and pagination.\");\nconst ShipdayQueryDeliveryOrders_PickupLocationSchema = z.object({\n id: z.number().int().describe(\"Pickup location ID\").nullable().optional(),\n lat: z.number().describe(\"Pickup location latitude\").nullable().optional(),\n lng: z.number().describe(\"Pickup location longitude\").nullable().optional(),\n name: z.string().describe(\"Pickup location name\").nullable().optional(),\n phone: z.string().describe(\"Pickup location phone number\").nullable().optional(),\n address: z.string().describe(\"Pickup address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted pickup address\").nullable().optional(),\n}).passthrough().describe(\"Pickup location details.\");\nconst ShipdayQueryDeliveryOrders_CarrierDetailsSchema = z.object({\n id: z.number().int().describe(\"Carrier ID\").nullable().optional(),\n name: z.string().describe(\"Carrier name\").nullable().optional(),\n note: z.string().describe(\"Carrier note\").nullable().optional(),\n email: z.string().describe(\"Carrier email address\").nullable().optional(),\n phone: z.string().describe(\"Carrier phone number\").nullable().optional(),\n status: z.string().describe(\"Carrier status (ONLINE/OFFLINE)\").nullable().optional(),\n partner: z.string().describe(\"Partner information\").nullable().optional(),\n imageUrl: z.string().describe(\"Carrier image URL\").nullable().optional(),\n vehicleDescription: z.string().describe(\"Vehicle description\").nullable().optional(),\n vehiclePlateNumber: z.string().describe(\"Vehicle plate number\").nullable().optional(),\n}).passthrough().describe(\"Carrier/driver details.\");\nconst ShipdayQueryDeliveryOrders_DeliveryLocationSchema = z.object({\n id: z.number().int().describe(\"Delivery location ID\").nullable().optional(),\n lat: z.number().describe(\"Delivery location latitude\").nullable().optional(),\n lng: z.number().describe(\"Delivery location longitude\").nullable().optional(),\n name: z.string().describe(\"Delivery recipient name\").nullable().optional(),\n email: z.string().describe(\"Delivery contact email\").nullable().optional(),\n phone: z.string().describe(\"Delivery contact phone number\").nullable().optional(),\n address: z.string().describe(\"Delivery address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted delivery address\").nullable().optional(),\n}).passthrough().describe(\"Delivery location details.\");\nconst ShipdayQueryDeliveryOrders_DeliveryOrderSchema = z.object({\n tax: z.number().describe(\"Tax amount for the order\").nullable().optional(),\n tip: z.number().describe(\"Tip amount for the order\").nullable().optional(),\n pickup: ShipdayQueryDeliveryOrders_PickupLocationSchema.nullable().optional(),\n status: z.string().describe(\"Current delivery status (ACTIVE, NOT_ASSIGNED, NOT_ACCEPTED, NOT_STARTED_YET, STARTED, PICKED_UP, READY_TO_DELIVER, ALREADY_DELIVERED, FAILED_DELIVERY, INCOMPLETE)\").nullable().optional(),\n carrier: ShipdayQueryDeliveryOrders_CarrierDetailsSchema.nullable().optional(),\n orderId: z.number().int().describe(\"Unique order ID for identifying the order\").nullable().optional(),\n accepted: z.boolean().describe(\"Indicates if the order is accepted\").nullable().optional(),\n delivery: ShipdayQueryDeliveryOrders_DeliveryLocationSchema.nullable().optional(),\n discount: z.number().describe(\"Discount amount for the order\").nullable().optional(),\n distance: z.number().describe(\"Calculated pickup-to-delivery distance\").nullable().optional(),\n companyId: z.number().int().describe(\"Unique Company ID for identifying the company\").nullable().optional(),\n orderItem: z.string().describe(\"Order Items (JSON Array string)\").nullable().optional(),\n startTime: z.string().describe(\"Starting time for the delivery of the order\").nullable().optional(),\n incomplete: z.boolean().describe(\"Indicates incomplete delivery\").nullable().optional(),\n orderTotal: z.number().describe(\"Total fee amount for the order\").nullable().optional(),\n arrivedTime: z.string().describe(\"Arrival timestamp at customer location\").nullable().optional(),\n deliveryFee: z.number().describe(\"Delivery fee amount for the order\").nullable().optional(),\n orderNumber: z.string().describe(\"Order number/reference for the order\").nullable().optional(),\n orderSource: z.string().describe(\"Order source\").nullable().optional(),\n assignedTime: z.string().describe(\"Assignment time for the order\").nullable().optional(),\n creditCardId: z.number().int().describe(\"Last four credit card digits\").nullable().optional(),\n deliveryNote: z.string().describe(\"Provided delivery note\").nullable().optional(),\n deliveryTime: z.string().describe(\"Delivery time for the order to the customer\").nullable().optional(),\n pickedupTime: z.string().describe(\"Pickup time for the order\").nullable().optional(),\n driverPayment: z.number().describe(\"Driver/carrier payment amount\").nullable().optional(),\n paymentMethod: z.string().describe(\"Payment method for the order (cash, credit card)\").nullable().optional(),\n placementTime: z.string().describe(\"Order placement time\").nullable().optional(),\n creditCardType: z.string().describe(\"Card variety (visa, master card, AMEX, other)\").nullable().optional(),\n dispatcherNote: z.string().describe(\"Dispatch note for the order\").nullable().optional(),\n failedDeliveryTime: z.string().describe(\"Timestamp if delivery failed\").nullable().optional(),\n deliveryInstruction: z.string().describe(\"Provided delivery instruction\").nullable().optional(),\n requestedPickupTime: z.string().describe(\"Requested pickup time for the order\").nullable().optional(),\n requestedDeliveryTime: z.string().describe(\"Requested delivery time for the order\").nullable().optional(),\n}).passthrough().describe(\"Delivery order details.\");\nexport const ShipdayQueryDeliveryOrdersOutput = z.object({\n orders: z.array(ShipdayQueryDeliveryOrders_DeliveryOrderSchema).describe(\"Array of delivery order objects matching the query filters\"),\n}).passthrough().describe(\"Response model for querying delivery orders.\");\n\nexport const shipdayQueryDeliveryOrders = action(\"SHIPDAY_QUERY_DELIVERY_ORDERS\", {\n slug: \"shipday-query-delivery-orders\",\n name: \"Query Delivery Orders\",\n description: \"Tool to query delivery orders with time-based filters and cursor pagination. Use when you need to retrieve multiple orders within a specific time range or paginate through order results.\",\n input: ShipdayQueryDeliveryOrdersInput,\n output: ShipdayQueryDeliveryOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC5J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAChJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACvK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,C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AC,SAAS;CACxF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AACnD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,4DAA4D,EACvI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"query-delivery-orders.cjs","names":["z","action"],"sources":["../../src/actions/query-delivery-orders.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 ShipdayQueryDeliveryOrdersInput = z.object({\n endTime: z.string().describe(\"End time for the query in UTC ISO 8601 format (e.g., '2023-12-04T00:00:00Z'). Filters orders up to this timestamp.\").optional(),\n endCursor: z.number().int().describe(\"Ending cursor for pagination (e.g., 2). Defines the end boundary for the paginated result set.\").optional(),\n startTime: z.string().describe(\"Start time for the query in UTC ISO 8601 format (e.g., '2023-11-28T00:00:00Z'). Filters orders from this timestamp onwards.\").optional(),\n startCursor: z.number().int().describe(\"Starting cursor for pagination (e.g., 1). Used to paginate through result sets.\").optional(),\n}).describe(\"Request model for querying delivery orders with filters and pagination.\");\nconst ShipdayQueryDeliveryOrders_PickupLocationSchema = z.object({\n id: z.number().int().describe(\"Pickup location ID\").nullable().optional(),\n lat: z.number().describe(\"Pickup location latitude\").nullable().optional(),\n lng: z.number().describe(\"Pickup location longitude\").nullable().optional(),\n name: z.string().describe(\"Pickup location name\").nullable().optional(),\n phone: z.string().describe(\"Pickup location phone number\").nullable().optional(),\n address: z.string().describe(\"Pickup address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted pickup address\").nullable().optional(),\n}).passthrough().describe(\"Pickup location details.\");\nconst ShipdayQueryDeliveryOrders_CarrierDetailsSchema = z.object({\n id: z.number().int().describe(\"Carrier ID\").nullable().optional(),\n name: z.string().describe(\"Carrier name\").nullable().optional(),\n note: z.string().describe(\"Carrier note\").nullable().optional(),\n email: z.string().describe(\"Carrier email address\").nullable().optional(),\n phone: z.string().describe(\"Carrier phone number\").nullable().optional(),\n status: z.string().describe(\"Carrier status (ONLINE/OFFLINE)\").nullable().optional(),\n partner: z.string().describe(\"Partner information\").nullable().optional(),\n imageUrl: z.string().describe(\"Carrier image URL\").nullable().optional(),\n vehicleDescription: z.string().describe(\"Vehicle description\").nullable().optional(),\n vehiclePlateNumber: z.string().describe(\"Vehicle plate number\").nullable().optional(),\n}).passthrough().describe(\"Carrier/driver details.\");\nconst ShipdayQueryDeliveryOrders_DeliveryLocationSchema = z.object({\n id: z.number().int().describe(\"Delivery location ID\").nullable().optional(),\n lat: z.number().describe(\"Delivery location latitude\").nullable().optional(),\n lng: z.number().describe(\"Delivery location longitude\").nullable().optional(),\n name: z.string().describe(\"Delivery recipient name\").nullable().optional(),\n email: z.string().describe(\"Delivery contact email\").nullable().optional(),\n phone: z.string().describe(\"Delivery contact phone number\").nullable().optional(),\n address: z.string().describe(\"Delivery address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted delivery address\").nullable().optional(),\n}).passthrough().describe(\"Delivery location details.\");\nconst ShipdayQueryDeliveryOrders_DeliveryOrderSchema = z.object({\n tax: z.number().describe(\"Tax amount for the order\").nullable().optional(),\n tip: z.number().describe(\"Tip amount for the order\").nullable().optional(),\n pickup: ShipdayQueryDeliveryOrders_PickupLocationSchema.nullable().optional(),\n status: z.string().describe(\"Current delivery status (ACTIVE, NOT_ASSIGNED, NOT_ACCEPTED, NOT_STARTED_YET, STARTED, PICKED_UP, READY_TO_DELIVER, ALREADY_DELIVERED, FAILED_DELIVERY, INCOMPLETE)\").nullable().optional(),\n carrier: ShipdayQueryDeliveryOrders_CarrierDetailsSchema.nullable().optional(),\n orderId: z.number().int().describe(\"Unique order ID for identifying the order\").nullable().optional(),\n accepted: z.boolean().describe(\"Indicates if the order is accepted\").nullable().optional(),\n delivery: ShipdayQueryDeliveryOrders_DeliveryLocationSchema.nullable().optional(),\n discount: z.number().describe(\"Discount amount for the order\").nullable().optional(),\n distance: z.number().describe(\"Calculated pickup-to-delivery distance\").nullable().optional(),\n companyId: z.number().int().describe(\"Unique Company ID for identifying the company\").nullable().optional(),\n orderItem: z.string().describe(\"Order Items (JSON Array string)\").nullable().optional(),\n startTime: z.string().describe(\"Starting time for the delivery of the order\").nullable().optional(),\n incomplete: z.boolean().describe(\"Indicates incomplete delivery\").nullable().optional(),\n orderTotal: z.number().describe(\"Total fee amount for the order\").nullable().optional(),\n arrivedTime: z.string().describe(\"Arrival timestamp at customer location\").nullable().optional(),\n deliveryFee: z.number().describe(\"Delivery fee amount for the order\").nullable().optional(),\n orderNumber: z.string().describe(\"Order number/reference for the order\").nullable().optional(),\n orderSource: z.string().describe(\"Order source\").nullable().optional(),\n assignedTime: z.string().describe(\"Assignment time for the order\").nullable().optional(),\n creditCardId: z.number().int().describe(\"Last four credit card digits\").nullable().optional(),\n deliveryNote: z.string().describe(\"Provided delivery note\").nullable().optional(),\n deliveryTime: z.string().describe(\"Delivery time for the order to the customer\").nullable().optional(),\n pickedupTime: z.string().describe(\"Pickup time for the order\").nullable().optional(),\n driverPayment: z.number().describe(\"Driver/carrier payment amount\").nullable().optional(),\n paymentMethod: z.string().describe(\"Payment method for the order (cash, credit card)\").nullable().optional(),\n placementTime: z.string().describe(\"Order placement time\").nullable().optional(),\n creditCardType: z.string().describe(\"Card variety (visa, master card, AMEX, other)\").nullable().optional(),\n dispatcherNote: z.string().describe(\"Dispatch note for the order\").nullable().optional(),\n failedDeliveryTime: z.string().describe(\"Timestamp if delivery failed\").nullable().optional(),\n deliveryInstruction: z.string().describe(\"Provided delivery instruction\").nullable().optional(),\n requestedPickupTime: z.string().describe(\"Requested pickup time for the order\").nullable().optional(),\n requestedDeliveryTime: z.string().describe(\"Requested delivery time for the order\").nullable().optional(),\n}).passthrough().describe(\"Delivery order details.\");\nexport const ShipdayQueryDeliveryOrdersOutput = z.object({\n orders: z.array(ShipdayQueryDeliveryOrders_DeliveryOrderSchema).describe(\"Array of delivery order objects matching the query filters\"),\n}).passthrough().describe(\"Response model for querying delivery orders.\");\n\nexport const shipdayQueryDeliveryOrders: AppAction<\n typeof ShipdayQueryDeliveryOrdersInput,\n typeof ShipdayQueryDeliveryOrdersOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_QUERY_DELIVERY_ORDERS\", {\n slug: \"shipday-query-delivery-orders\",\n name: \"Query Delivery Orders\",\n description: \"Tool to query delivery orders with time-based filters and cursor pagination. Use when you need to retrieve multiple orders within a specific time range or paginate through order results.\",\n input: ShipdayQueryDeliveryOrdersInput,\n output: ShipdayQueryDeliveryOrdersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC5J,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAChJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACvK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA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CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AACnD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,4DAA4D,EACvI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,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/query-delivery-orders.d.ts
@@ -72,12 +74,7 @@ declare const ShipdayQueryDeliveryOrdersOutput: z.ZodObject<{
72
74
  requestedDeliveryTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
75
  }, z.core.$loose>>;
74
76
  }, z.core.$loose>;
75
- declare const shipdayQueryDeliveryOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
76
- endTime?: string | undefined;
77
- endCursor?: number | undefined;
78
- startTime?: string | undefined;
79
- startCursor?: number | undefined;
80
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
77
+ declare const shipdayQueryDeliveryOrders: AppAction<typeof ShipdayQueryDeliveryOrdersInput, typeof ShipdayQueryDeliveryOrdersOutput, typeof shipday.credential>;
81
78
  //#endregion
82
79
  export { shipdayQueryDeliveryOrders };
83
80
  //# sourceMappingURL=query-delivery-orders.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-delivery-orders.d.cts","names":[],"sources":["../../src/actions/query-delivery-orders.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAwE/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"query-delivery-orders.d.cts","names":[],"sources":["../../src/actions/query-delivery-orders.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAwE/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/query-delivery-orders.d.ts
@@ -72,12 +74,7 @@ declare const ShipdayQueryDeliveryOrdersOutput: z.ZodObject<{
72
74
  requestedDeliveryTime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
75
  }, z.core.$loose>>;
74
76
  }, z.core.$loose>;
75
- declare const shipdayQueryDeliveryOrders: import("@keystrokehq/action").WorkflowActionDefinition<{
76
- endTime?: string | undefined;
77
- endCursor?: number | undefined;
78
- startTime?: string | undefined;
79
- startCursor?: number | undefined;
80
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
77
+ declare const shipdayQueryDeliveryOrders: AppAction<typeof ShipdayQueryDeliveryOrdersInput, typeof ShipdayQueryDeliveryOrdersOutput, typeof shipday.credential>;
81
78
  //#endregion
82
79
  export { shipdayQueryDeliveryOrders };
83
80
  //# sourceMappingURL=query-delivery-orders.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-delivery-orders.d.mts","names":[],"sources":["../../src/actions/query-delivery-orders.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAwE/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"query-delivery-orders.d.mts","names":[],"sources":["../../src/actions/query-delivery-orders.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAwE/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/query-delivery-orders.ts
@@ -1 +1 @@
1
- {"version":3,"file":"query-delivery-orders.mjs","names":[],"sources":["../../src/actions/query-delivery-orders.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipdayQueryDeliveryOrdersInput = z.object({\n endTime: z.string().describe(\"End time for the query in UTC ISO 8601 format (e.g., '2023-12-04T00:00:00Z'). Filters orders up to this timestamp.\").optional(),\n endCursor: z.number().int().describe(\"Ending cursor for pagination (e.g., 2). Defines the end boundary for the paginated result set.\").optional(),\n startTime: z.string().describe(\"Start time for the query in UTC ISO 8601 format (e.g., '2023-11-28T00:00:00Z'). Filters orders from this timestamp onwards.\").optional(),\n startCursor: z.number().int().describe(\"Starting cursor for pagination (e.g., 1). Used to paginate through result sets.\").optional(),\n}).describe(\"Request model for querying delivery orders with filters and pagination.\");\nconst ShipdayQueryDeliveryOrders_PickupLocationSchema = z.object({\n id: z.number().int().describe(\"Pickup location ID\").nullable().optional(),\n lat: z.number().describe(\"Pickup location latitude\").nullable().optional(),\n lng: z.number().describe(\"Pickup location longitude\").nullable().optional(),\n name: z.string().describe(\"Pickup location name\").nullable().optional(),\n phone: z.string().describe(\"Pickup location phone number\").nullable().optional(),\n address: z.string().describe(\"Pickup address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted pickup address\").nullable().optional(),\n}).passthrough().describe(\"Pickup location details.\");\nconst ShipdayQueryDeliveryOrders_CarrierDetailsSchema = z.object({\n id: z.number().int().describe(\"Carrier ID\").nullable().optional(),\n name: z.string().describe(\"Carrier name\").nullable().optional(),\n note: z.string().describe(\"Carrier note\").nullable().optional(),\n email: z.string().describe(\"Carrier email address\").nullable().optional(),\n phone: z.string().describe(\"Carrier phone number\").nullable().optional(),\n status: z.string().describe(\"Carrier status (ONLINE/OFFLINE)\").nullable().optional(),\n partner: z.string().describe(\"Partner information\").nullable().optional(),\n imageUrl: z.string().describe(\"Carrier image URL\").nullable().optional(),\n vehicleDescription: z.string().describe(\"Vehicle description\").nullable().optional(),\n vehiclePlateNumber: z.string().describe(\"Vehicle plate number\").nullable().optional(),\n}).passthrough().describe(\"Carrier/driver details.\");\nconst ShipdayQueryDeliveryOrders_DeliveryLocationSchema = z.object({\n id: z.number().int().describe(\"Delivery location ID\").nullable().optional(),\n lat: z.number().describe(\"Delivery location latitude\").nullable().optional(),\n lng: z.number().describe(\"Delivery location longitude\").nullable().optional(),\n name: z.string().describe(\"Delivery recipient name\").nullable().optional(),\n email: z.string().describe(\"Delivery contact email\").nullable().optional(),\n phone: z.string().describe(\"Delivery contact phone number\").nullable().optional(),\n address: z.string().describe(\"Delivery address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted delivery address\").nullable().optional(),\n}).passthrough().describe(\"Delivery location details.\");\nconst ShipdayQueryDeliveryOrders_DeliveryOrderSchema = z.object({\n tax: z.number().describe(\"Tax amount for the order\").nullable().optional(),\n tip: z.number().describe(\"Tip amount for the order\").nullable().optional(),\n pickup: ShipdayQueryDeliveryOrders_PickupLocationSchema.nullable().optional(),\n status: z.string().describe(\"Current delivery status (ACTIVE, NOT_ASSIGNED, NOT_ACCEPTED, NOT_STARTED_YET, STARTED, PICKED_UP, READY_TO_DELIVER, ALREADY_DELIVERED, FAILED_DELIVERY, INCOMPLETE)\").nullable().optional(),\n carrier: ShipdayQueryDeliveryOrders_CarrierDetailsSchema.nullable().optional(),\n orderId: z.number().int().describe(\"Unique order ID for identifying the order\").nullable().optional(),\n accepted: z.boolean().describe(\"Indicates if the order is accepted\").nullable().optional(),\n delivery: ShipdayQueryDeliveryOrders_DeliveryLocationSchema.nullable().optional(),\n discount: z.number().describe(\"Discount amount for the order\").nullable().optional(),\n distance: z.number().describe(\"Calculated pickup-to-delivery distance\").nullable().optional(),\n companyId: z.number().int().describe(\"Unique Company ID for identifying the company\").nullable().optional(),\n orderItem: z.string().describe(\"Order Items (JSON Array string)\").nullable().optional(),\n startTime: z.string().describe(\"Starting time for the delivery of the order\").nullable().optional(),\n incomplete: z.boolean().describe(\"Indicates incomplete delivery\").nullable().optional(),\n orderTotal: z.number().describe(\"Total fee amount for the order\").nullable().optional(),\n arrivedTime: z.string().describe(\"Arrival timestamp at customer location\").nullable().optional(),\n deliveryFee: z.number().describe(\"Delivery fee amount for the order\").nullable().optional(),\n orderNumber: z.string().describe(\"Order number/reference for the order\").nullable().optional(),\n orderSource: z.string().describe(\"Order source\").nullable().optional(),\n assignedTime: z.string().describe(\"Assignment time for the order\").nullable().optional(),\n creditCardId: z.number().int().describe(\"Last four credit card digits\").nullable().optional(),\n deliveryNote: z.string().describe(\"Provided delivery note\").nullable().optional(),\n deliveryTime: z.string().describe(\"Delivery time for the order to the customer\").nullable().optional(),\n pickedupTime: z.string().describe(\"Pickup time for the order\").nullable().optional(),\n driverPayment: z.number().describe(\"Driver/carrier payment amount\").nullable().optional(),\n paymentMethod: z.string().describe(\"Payment method for the order (cash, credit card)\").nullable().optional(),\n placementTime: z.string().describe(\"Order placement time\").nullable().optional(),\n creditCardType: z.string().describe(\"Card variety (visa, master card, AMEX, other)\").nullable().optional(),\n dispatcherNote: z.string().describe(\"Dispatch note for the order\").nullable().optional(),\n failedDeliveryTime: z.string().describe(\"Timestamp if delivery failed\").nullable().optional(),\n deliveryInstruction: z.string().describe(\"Provided delivery instruction\").nullable().optional(),\n requestedPickupTime: z.string().describe(\"Requested pickup time for the order\").nullable().optional(),\n requestedDeliveryTime: z.string().describe(\"Requested delivery time for the order\").nullable().optional(),\n}).passthrough().describe(\"Delivery order details.\");\nexport const ShipdayQueryDeliveryOrdersOutput = z.object({\n orders: z.array(ShipdayQueryDeliveryOrders_DeliveryOrderSchema).describe(\"Array of delivery order objects matching the query filters\"),\n}).passthrough().describe(\"Response model for querying delivery orders.\");\n\nexport const shipdayQueryDeliveryOrders = action(\"SHIPDAY_QUERY_DELIVERY_ORDERS\", {\n slug: \"shipday-query-delivery-orders\",\n name: \"Query Delivery Orders\",\n description: \"Tool to query delivery orders with time-based filters and cursor pagination. Use when you need to retrieve multiple orders within a specific time range or paginate through order results.\",\n input: ShipdayQueryDeliveryOrdersInput,\n output: ShipdayQueryDeliveryOrdersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC5J,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAChJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;CACvK,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC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SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AAKnD,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,4DAA4D,EACvI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"query-delivery-orders.mjs","names":[],"sources":["../../src/actions/query-delivery-orders.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 ShipdayQueryDeliveryOrdersInput = z.object({\n endTime: z.string().describe(\"End time for the query in UTC ISO 8601 format (e.g., '2023-12-04T00:00:00Z'). Filters orders up to this timestamp.\").optional(),\n endCursor: z.number().int().describe(\"Ending cursor for pagination (e.g., 2). Defines the end boundary for the paginated result set.\").optional(),\n startTime: z.string().describe(\"Start time for the query in UTC ISO 8601 format (e.g., '2023-11-28T00:00:00Z'). Filters orders from this timestamp onwards.\").optional(),\n startCursor: z.number().int().describe(\"Starting cursor for pagination (e.g., 1). Used to paginate through result sets.\").optional(),\n}).describe(\"Request model for querying delivery orders with filters and pagination.\");\nconst ShipdayQueryDeliveryOrders_PickupLocationSchema = z.object({\n id: z.number().int().describe(\"Pickup location ID\").nullable().optional(),\n lat: z.number().describe(\"Pickup location latitude\").nullable().optional(),\n lng: z.number().describe(\"Pickup location longitude\").nullable().optional(),\n name: z.string().describe(\"Pickup location name\").nullable().optional(),\n phone: z.string().describe(\"Pickup location phone number\").nullable().optional(),\n address: z.string().describe(\"Pickup address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted pickup address\").nullable().optional(),\n}).passthrough().describe(\"Pickup location details.\");\nconst ShipdayQueryDeliveryOrders_CarrierDetailsSchema = z.object({\n id: z.number().int().describe(\"Carrier ID\").nullable().optional(),\n name: z.string().describe(\"Carrier name\").nullable().optional(),\n note: z.string().describe(\"Carrier note\").nullable().optional(),\n email: z.string().describe(\"Carrier email address\").nullable().optional(),\n phone: z.string().describe(\"Carrier phone number\").nullable().optional(),\n status: z.string().describe(\"Carrier status (ONLINE/OFFLINE)\").nullable().optional(),\n partner: z.string().describe(\"Partner information\").nullable().optional(),\n imageUrl: z.string().describe(\"Carrier image URL\").nullable().optional(),\n vehicleDescription: z.string().describe(\"Vehicle description\").nullable().optional(),\n vehiclePlateNumber: z.string().describe(\"Vehicle plate number\").nullable().optional(),\n}).passthrough().describe(\"Carrier/driver details.\");\nconst ShipdayQueryDeliveryOrders_DeliveryLocationSchema = z.object({\n id: z.number().int().describe(\"Delivery location ID\").nullable().optional(),\n lat: z.number().describe(\"Delivery location latitude\").nullable().optional(),\n lng: z.number().describe(\"Delivery location longitude\").nullable().optional(),\n name: z.string().describe(\"Delivery recipient name\").nullable().optional(),\n email: z.string().describe(\"Delivery contact email\").nullable().optional(),\n phone: z.string().describe(\"Delivery contact phone number\").nullable().optional(),\n address: z.string().describe(\"Delivery address\").nullable().optional(),\n formattedAddress: z.string().describe(\"Formatted delivery address\").nullable().optional(),\n}).passthrough().describe(\"Delivery location details.\");\nconst ShipdayQueryDeliveryOrders_DeliveryOrderSchema = z.object({\n tax: z.number().describe(\"Tax amount for the order\").nullable().optional(),\n tip: z.number().describe(\"Tip amount for the order\").nullable().optional(),\n pickup: ShipdayQueryDeliveryOrders_PickupLocationSchema.nullable().optional(),\n status: z.string().describe(\"Current delivery status (ACTIVE, NOT_ASSIGNED, NOT_ACCEPTED, NOT_STARTED_YET, STARTED, PICKED_UP, READY_TO_DELIVER, ALREADY_DELIVERED, FAILED_DELIVERY, INCOMPLETE)\").nullable().optional(),\n carrier: ShipdayQueryDeliveryOrders_CarrierDetailsSchema.nullable().optional(),\n orderId: z.number().int().describe(\"Unique order ID for identifying the order\").nullable().optional(),\n accepted: z.boolean().describe(\"Indicates if the order is accepted\").nullable().optional(),\n delivery: ShipdayQueryDeliveryOrders_DeliveryLocationSchema.nullable().optional(),\n discount: z.number().describe(\"Discount amount for the order\").nullable().optional(),\n distance: z.number().describe(\"Calculated pickup-to-delivery distance\").nullable().optional(),\n companyId: z.number().int().describe(\"Unique Company ID for identifying the company\").nullable().optional(),\n orderItem: z.string().describe(\"Order Items (JSON Array string)\").nullable().optional(),\n startTime: z.string().describe(\"Starting time for the delivery of the order\").nullable().optional(),\n incomplete: z.boolean().describe(\"Indicates incomplete delivery\").nullable().optional(),\n orderTotal: z.number().describe(\"Total fee amount for the order\").nullable().optional(),\n arrivedTime: z.string().describe(\"Arrival timestamp at customer location\").nullable().optional(),\n deliveryFee: z.number().describe(\"Delivery fee amount for the order\").nullable().optional(),\n orderNumber: z.string().describe(\"Order number/reference for the order\").nullable().optional(),\n orderSource: z.string().describe(\"Order source\").nullable().optional(),\n assignedTime: z.string().describe(\"Assignment time for the order\").nullable().optional(),\n creditCardId: z.number().int().describe(\"Last four credit card digits\").nullable().optional(),\n deliveryNote: z.string().describe(\"Provided delivery note\").nullable().optional(),\n deliveryTime: z.string().describe(\"Delivery time for the order to the customer\").nullable().optional(),\n pickedupTime: z.string().describe(\"Pickup time for the order\").nullable().optional(),\n driverPayment: z.number().describe(\"Driver/carrier payment amount\").nullable().optional(),\n paymentMethod: z.string().describe(\"Payment method for the order (cash, credit card)\").nullable().optional(),\n placementTime: z.string().describe(\"Order placement time\").nullable().optional(),\n creditCardType: z.string().describe(\"Card variety (visa, master card, AMEX, other)\").nullable().optional(),\n dispatcherNote: z.string().describe(\"Dispatch note for the order\").nullable().optional(),\n failedDeliveryTime: z.string().describe(\"Timestamp if delivery failed\").nullable().optional(),\n deliveryInstruction: z.string().describe(\"Provided delivery instruction\").nullable().optional(),\n requestedPickupTime: z.string().describe(\"Requested pickup time for the order\").nullable().optional(),\n requestedDeliveryTime: z.string().describe(\"Requested delivery time for the order\").nullable().optional(),\n}).passthrough().describe(\"Delivery order details.\");\nexport const ShipdayQueryDeliveryOrdersOutput = z.object({\n orders: z.array(ShipdayQueryDeliveryOrders_DeliveryOrderSchema).describe(\"Array of delivery order objects matching the query filters\"),\n}).passthrough().describe(\"Response model for querying delivery orders.\");\n\nexport const shipdayQueryDeliveryOrders: AppAction<\n typeof ShipdayQueryDeliveryOrdersInput,\n typeof ShipdayQueryDeliveryOrdersOutput,\n typeof shipday.credential\n> = action(\"SHIPDAY_QUERY_DELIVERY_ORDERS\", {\n slug: \"shipday-query-delivery-orders\",\n name: \"Query Delivery Orders\",\n description: \"Tool to query delivery orders with time-based filters and cursor pagination. Use when you need to retrieve multiple orders within a specific time range or paginate through order results.\",\n input: ShipdayQueryDeliveryOrdersInput,\n output: ShipdayQueryDeliveryOrdersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CAC5J,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAChJ,WAAW,EAAE,OAAO,CAAC,C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SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AAKnD,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb8C,EAAE,OAAO,EACvD,QAAQ,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,4DAA4D,EACvI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;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/retrieve-active-orders.ts