@chrt-inc/typescript-sdk 1.935.0 → 1.944.0

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 (152) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/shippingIntegrations/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/shippingIntegrations/client/Client.js +9 -4
  4. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/Client.d.ts +26 -0
  5. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/Client.js +22 -0
  6. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/client/index.js +2 -0
  8. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/index.js +18 -0
  10. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.d.ts +119 -0
  11. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.js +430 -0
  12. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.d.ts +2 -0
  13. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.js +17 -0
  14. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.d.ts +26 -0
  15. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.js +5 -0
  16. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.d.ts +15 -0
  17. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.js +5 -0
  18. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.js +2 -0
  20. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.js +17 -0
  22. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/index.d.ts +4 -0
  23. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/index.js +43 -0
  24. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.ts +104 -0
  25. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.js +371 -0
  26. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.js +17 -0
  28. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.d.ts +15 -0
  29. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.js +5 -0
  30. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.d.ts +48 -0
  31. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.js +5 -0
  32. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.d.ts +2 -0
  33. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.js +2 -0
  34. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.js +17 -0
  36. package/dist/cjs/api/resources/shippingIntegrations/resources/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/shippingIntegrations/resources/index.js +2 -1
  38. package/dist/cjs/api/types/EcourierCredsLimited1.d.ts +29 -0
  39. package/dist/cjs/api/types/EcourierCredsLimited1.js +5 -0
  40. package/dist/cjs/api/types/EcourierCredsListRes.d.ts +8 -0
  41. package/dist/cjs/api/types/EcourierCredsListRes.js +5 -0
  42. package/dist/cjs/api/types/EcourierCredsTestRes.d.ts +11 -0
  43. package/dist/cjs/api/types/EcourierCredsTestRes.js +5 -0
  44. package/dist/cjs/api/types/EcourierOrder1.d.ts +19 -0
  45. package/dist/cjs/api/types/EcourierOrder1.js +5 -0
  46. package/dist/cjs/api/types/EcourierOrderCustomerResponse1.d.ts +16 -0
  47. package/dist/cjs/api/types/EcourierOrderCustomerResponse1.js +5 -0
  48. package/dist/cjs/api/types/EcourierOrderListRes.d.ts +8 -0
  49. package/dist/cjs/api/types/EcourierOrderListRes.js +5 -0
  50. package/dist/cjs/api/types/EcourierOrderResponse1.d.ts +43 -0
  51. package/dist/cjs/api/types/EcourierOrderResponse1.js +5 -0
  52. package/dist/cjs/api/types/EcourierOrderSortByEnum.d.ts +10 -0
  53. package/dist/cjs/api/types/EcourierOrderSortByEnum.js +12 -0
  54. package/dist/cjs/api/types/EcourierOrderStopResponse1.d.ts +27 -0
  55. package/dist/cjs/api/types/EcourierOrderStopResponse1.js +5 -0
  56. package/dist/cjs/api/types/FraytWebhookResponse.d.ts +7 -0
  57. package/dist/cjs/api/types/FraytWebhookResponse.js +5 -0
  58. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +6 -1
  59. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +5 -0
  60. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +6 -1
  61. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +5 -0
  62. package/dist/cjs/api/types/OrgShippingIntegrationEnum1.d.ts +2 -1
  63. package/dist/cjs/api/types/OrgShippingIntegrationEnum1.js +1 -0
  64. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChange1.d.ts +17 -0
  65. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChange1.js +5 -0
  66. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedReq.d.ts +12 -0
  67. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedReq.js +5 -0
  68. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedRes.d.ts +6 -0
  69. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedRes.js +5 -0
  70. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.d.ts +37 -0
  71. package/dist/cjs/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.js +16 -0
  72. package/dist/cjs/api/types/index.d.ts +14 -0
  73. package/dist/cjs/api/types/index.js +14 -0
  74. package/dist/cjs/version.d.ts +1 -1
  75. package/dist/cjs/version.js +1 -1
  76. package/dist/esm/Client.mjs +2 -2
  77. package/dist/esm/api/resources/shippingIntegrations/client/Client.d.mts +3 -0
  78. package/dist/esm/api/resources/shippingIntegrations/client/Client.mjs +5 -0
  79. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/Client.d.mts +26 -0
  80. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/Client.mjs +18 -0
  81. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/index.d.mts +1 -0
  82. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/client/index.mjs +1 -0
  83. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/index.d.mts +2 -0
  84. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/index.mjs +2 -0
  85. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.d.mts +119 -0
  86. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/Client.mjs +393 -0
  87. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.d.mts +2 -0
  88. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/index.mjs +1 -0
  89. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.d.mts +26 -0
  90. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientCreate1.mjs +4 -0
  91. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.d.mts +15 -0
  92. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/EcourierCredsClientUpdate1.mjs +4 -0
  93. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.d.mts +2 -0
  94. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/client/requests/index.mjs +1 -0
  95. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.d.mts +1 -0
  96. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/creds/index.mjs +1 -0
  97. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/index.d.mts +4 -0
  98. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/index.mjs +4 -0
  99. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.d.mts +104 -0
  100. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/Client.mjs +334 -0
  101. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.d.mts +2 -0
  102. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/index.mjs +1 -0
  103. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.d.mts +15 -0
  104. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/EcourierOrderSyncOneReq.mjs +4 -0
  105. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.d.mts +48 -0
  106. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/OrdersListV1Request.mjs +4 -0
  107. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.d.mts +2 -0
  108. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/client/requests/index.mjs +1 -0
  109. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.d.mts +1 -0
  110. package/dist/esm/api/resources/shippingIntegrations/resources/ecourier/resources/orders/index.mjs +1 -0
  111. package/dist/esm/api/resources/shippingIntegrations/resources/index.d.mts +1 -0
  112. package/dist/esm/api/resources/shippingIntegrations/resources/index.mjs +1 -0
  113. package/dist/esm/api/types/EcourierCredsLimited1.d.mts +29 -0
  114. package/dist/esm/api/types/EcourierCredsLimited1.mjs +4 -0
  115. package/dist/esm/api/types/EcourierCredsListRes.d.mts +8 -0
  116. package/dist/esm/api/types/EcourierCredsListRes.mjs +4 -0
  117. package/dist/esm/api/types/EcourierCredsTestRes.d.mts +11 -0
  118. package/dist/esm/api/types/EcourierCredsTestRes.mjs +4 -0
  119. package/dist/esm/api/types/EcourierOrder1.d.mts +19 -0
  120. package/dist/esm/api/types/EcourierOrder1.mjs +4 -0
  121. package/dist/esm/api/types/EcourierOrderCustomerResponse1.d.mts +16 -0
  122. package/dist/esm/api/types/EcourierOrderCustomerResponse1.mjs +4 -0
  123. package/dist/esm/api/types/EcourierOrderListRes.d.mts +8 -0
  124. package/dist/esm/api/types/EcourierOrderListRes.mjs +4 -0
  125. package/dist/esm/api/types/EcourierOrderResponse1.d.mts +43 -0
  126. package/dist/esm/api/types/EcourierOrderResponse1.mjs +4 -0
  127. package/dist/esm/api/types/EcourierOrderSortByEnum.d.mts +10 -0
  128. package/dist/esm/api/types/EcourierOrderSortByEnum.mjs +9 -0
  129. package/dist/esm/api/types/EcourierOrderStopResponse1.d.mts +27 -0
  130. package/dist/esm/api/types/EcourierOrderStopResponse1.mjs +4 -0
  131. package/dist/esm/api/types/FraytWebhookResponse.d.mts +7 -0
  132. package/dist/esm/api/types/FraytWebhookResponse.mjs +4 -0
  133. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +6 -1
  134. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +5 -0
  135. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +6 -1
  136. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +5 -0
  137. package/dist/esm/api/types/OrgShippingIntegrationEnum1.d.mts +2 -1
  138. package/dist/esm/api/types/OrgShippingIntegrationEnum1.mjs +1 -0
  139. package/dist/esm/api/types/ShippingIntegrationOrderStatusChange1.d.mts +17 -0
  140. package/dist/esm/api/types/ShippingIntegrationOrderStatusChange1.mjs +4 -0
  141. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedReq.d.mts +12 -0
  142. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedReq.mjs +4 -0
  143. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedRes.d.mts +6 -0
  144. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedRes.mjs +4 -0
  145. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.d.mts +37 -0
  146. package/dist/esm/api/types/ShippingIntegrationOrderStatusChangedWebhookPayload.mjs +13 -0
  147. package/dist/esm/api/types/index.d.mts +14 -0
  148. package/dist/esm/api/types/index.mjs +14 -0
  149. package/dist/esm/version.d.mts +1 -1
  150. package/dist/esm/version.mjs +1 -1
  151. package/package.json +1 -1
  152. package/reference.md +678 -0
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface EcourierOrder1 {
6
+ _id: string;
7
+ created_at_timestamp: string;
8
+ integration_order_id: string;
9
+ mirrored_at_timestamp: string;
10
+ /** Must be a string starting with `org_` */
11
+ org_id: string;
12
+ /** Must be a string starting with `org_` */
13
+ provider_org_id: string;
14
+ provider_payload: Chrt.EcourierOrderResponse1;
15
+ provider_payload_hash: string;
16
+ schema_version: number;
17
+ shipping_integration: "ecourier";
18
+ updated_at_timestamp: string;
19
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The customer an order belongs to.
6
+ *
7
+ * This is what the customer check reads. `FindOrder`'s `CustomerCode` filter is
8
+ * undocumented, so the sync asserts `customer_code` here on every
9
+ * hydrated order before persisting it, keeping the mirror to our customer's
10
+ * orders rather than trusting the query.
11
+ */
12
+ export interface EcourierOrderCustomerResponse1 {
13
+ "@CustomerCode"?: string | null;
14
+ "@CustomerID"?: string | null;
15
+ "@Name"?: string | null;
16
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface EcourierOrderListRes {
6
+ items: Chrt.EcourierOrder1[];
7
+ total_count: number;
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,43 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ /**
6
+ * One e-Courier order, including caller contact details and POD signoff.
7
+ *
8
+ * `@UserGUID` and `OrderEvents` are the only attributes deliberately absent,
9
+ * and never to be added. See the module docstring.
10
+ */
11
+ export interface EcourierOrderResponse1 {
12
+ "@AmountCharged"?: string | null;
13
+ "@Auth"?: string | null;
14
+ "@Caller"?: string | null;
15
+ "@CallerEmail"?: string | null;
16
+ "@CallerPhone"?: string | null;
17
+ "@CreateDate"?: string | null;
18
+ "@CreateUserName"?: string | null;
19
+ "@CustomerID"?: string | null;
20
+ "@DeliveredDateTime"?: string | null;
21
+ "@DispatchDateTime"?: string | null;
22
+ "@DueDateTime"?: string | null;
23
+ "@InvoiceStatus"?: string | null;
24
+ "@LastChanged"?: string | null;
25
+ "@OperationalStatus"?: string | null;
26
+ "@OrderAlias"?: string | null;
27
+ "@OrderDate"?: string | null;
28
+ "@OrderGUID"?: string | null;
29
+ "@OrderID"?: string | null;
30
+ "@OrderNumber"?: string | null;
31
+ "@OrderStatus"?: string | null;
32
+ "@PickedUpDateTime"?: string | null;
33
+ "@Pieces"?: string | null;
34
+ "@PodDateTime"?: string | null;
35
+ "@PodName"?: string | null;
36
+ "@Service"?: string | null;
37
+ "@ServiceDesc"?: string | null;
38
+ "@SiteCode"?: string | null;
39
+ "@TotalMiles"?: string | null;
40
+ "@Weight"?: string | null;
41
+ Customer?: Chrt.EcourierOrderCustomerResponse1 | null;
42
+ Stops?: Chrt.EcourierOrderStopResponse1[];
43
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type EcourierOrderSortByEnum = "mirrored_at_timestamp" | "created_at_timestamp" | "updated_at_timestamp" | "integration_order_id";
5
+ export declare const EcourierOrderSortByEnum: {
6
+ readonly MirroredAtTimestamp: "mirrored_at_timestamp";
7
+ readonly CreatedAtTimestamp: "created_at_timestamp";
8
+ readonly UpdatedAtTimestamp: "updated_at_timestamp";
9
+ readonly IntegrationOrderId: "integration_order_id";
10
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export const EcourierOrderSortByEnum = {
5
+ MirroredAtTimestamp: "mirrored_at_timestamp",
6
+ CreatedAtTimestamp: "created_at_timestamp",
7
+ UpdatedAtTimestamp: "updated_at_timestamp",
8
+ IntegrationOrderId: "integration_order_id",
9
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * One stop on an order.
6
+ *
7
+ * `stop_type` is the authoritative origin/destination marker: `P` for pickup,
8
+ * `D` for delivery. No sequence-number inference is needed, which is
9
+ * cleaner than most integrations give us.
10
+ */
11
+ export interface EcourierOrderStopResponse1 {
12
+ "@Address"?: string | null;
13
+ "@City"?: string | null;
14
+ "@Country"?: string | null;
15
+ "@Latitude"?: string | null;
16
+ "@Longitude"?: string | null;
17
+ "@Name"?: string | null;
18
+ "@Pieces"?: string | null;
19
+ "@ScheduledDateTime"?: string | null;
20
+ "@ScheduledDateTimeTZ"?: string | null;
21
+ "@Sequence"?: string | null;
22
+ "@State"?: string | null;
23
+ "@StopID"?: string | null;
24
+ "@StopType"?: string | null;
25
+ "@Weight"?: string | null;
26
+ "@Zip"?: string | null;
27
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface FraytWebhookResponse {
5
+ message: string;
6
+ success: boolean;
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -6,7 +6,7 @@
6
6
  * Controlled by Groups that admins configure.
7
7
  * Individual users in the group can opt out.
8
8
  */
9
- export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.provider_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.file_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.listing.provider_invited_to_bid" | "listing.bid_thread.action_added" | "operations.order.operator_assigned" | "operations.order.department_assigned" | "operations.order_internal_messages.message" | "operations.order_internal_messages.file_added" | "billing.invoice.approved" | "tracking.session.geofence_entered";
9
+ export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.provider_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.file_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.listing.provider_invited_to_bid" | "listing.bid_thread.action_added" | "operations.order.operator_assigned" | "operations.order.department_assigned" | "operations.order_internal_messages.message" | "operations.order_internal_messages.file_added" | "billing.invoice.approved" | "tracking.session.geofence_entered" | "shipping_integration.order.staged" | "shipping_integration.order.in_progress" | "shipping_integration.order.completed" | "shipping_integration.order.exception" | "shipping_integration.order.cancelled";
10
10
  export declare const NotificationEventsForOrgsEnum: {
11
11
  readonly ShippingOrderStaged: "shipping.order.staged";
12
12
  readonly ShippingOrderCompleted: "shipping.order.completed";
@@ -34,4 +34,9 @@ export declare const NotificationEventsForOrgsEnum: {
34
34
  readonly OperationsOrderInternalMessagesFileAdded: "operations.order_internal_messages.file_added";
35
35
  readonly BillingInvoiceApproved: "billing.invoice.approved";
36
36
  readonly TrackingSessionGeofenceEntered: "tracking.session.geofence_entered";
37
+ readonly ShippingIntegrationOrderStaged: "shipping_integration.order.staged";
38
+ readonly ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress";
39
+ readonly ShippingIntegrationOrderCompleted: "shipping_integration.order.completed";
40
+ readonly ShippingIntegrationOrderException: "shipping_integration.order.exception";
41
+ readonly ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled";
37
42
  };
@@ -28,4 +28,9 @@ export const NotificationEventsForOrgsEnum = {
28
28
  OperationsOrderInternalMessagesFileAdded: "operations.order_internal_messages.file_added",
29
29
  BillingInvoiceApproved: "billing.invoice.approved",
30
30
  TrackingSessionGeofenceEntered: "tracking.session.geofence_entered",
31
+ ShippingIntegrationOrderStaged: "shipping_integration.order.staged",
32
+ ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress",
33
+ ShippingIntegrationOrderCompleted: "shipping_integration.order.completed",
34
+ ShippingIntegrationOrderException: "shipping_integration.order.exception",
35
+ ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled",
31
36
  };
@@ -8,7 +8,7 @@
8
8
  * - Order events: via `order.created_by_user_id`
9
9
  * - TaskGroup events: via `task_group.driver_id`
10
10
  */
11
- export type NotificationEventsForUsersEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.bid_thread.action_added" | "operations.order.operator_assigned" | "operations.order.department_assigned" | "operations.order_internal_messages.message" | "operations.order_internal_messages.file_added" | "billing.invoice.approved" | "tracking.session.geofence_entered";
11
+ export type NotificationEventsForUsersEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.bid_thread.action_added" | "operations.order.operator_assigned" | "operations.order.department_assigned" | "operations.order_internal_messages.message" | "operations.order_internal_messages.file_added" | "billing.invoice.approved" | "tracking.session.geofence_entered" | "shipping_integration.order.staged" | "shipping_integration.order.in_progress" | "shipping_integration.order.completed" | "shipping_integration.order.exception" | "shipping_integration.order.cancelled";
12
12
  export declare const NotificationEventsForUsersEnum: {
13
13
  readonly ShippingOrderStaged: "shipping.order.staged";
14
14
  readonly ShippingOrderCompleted: "shipping.order.completed";
@@ -26,4 +26,9 @@ export declare const NotificationEventsForUsersEnum: {
26
26
  readonly OperationsOrderInternalMessagesFileAdded: "operations.order_internal_messages.file_added";
27
27
  readonly BillingInvoiceApproved: "billing.invoice.approved";
28
28
  readonly TrackingSessionGeofenceEntered: "tracking.session.geofence_entered";
29
+ readonly ShippingIntegrationOrderStaged: "shipping_integration.order.staged";
30
+ readonly ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress";
31
+ readonly ShippingIntegrationOrderCompleted: "shipping_integration.order.completed";
32
+ readonly ShippingIntegrationOrderException: "shipping_integration.order.exception";
33
+ readonly ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled";
29
34
  };
@@ -18,4 +18,9 @@ export const NotificationEventsForUsersEnum = {
18
18
  OperationsOrderInternalMessagesFileAdded: "operations.order_internal_messages.file_added",
19
19
  BillingInvoiceApproved: "billing.invoice.approved",
20
20
  TrackingSessionGeofenceEntered: "tracking.session.geofence_entered",
21
+ ShippingIntegrationOrderStaged: "shipping_integration.order.staged",
22
+ ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress",
23
+ ShippingIntegrationOrderCompleted: "shipping_integration.order.completed",
24
+ ShippingIntegrationOrderException: "shipping_integration.order.exception",
25
+ ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled",
21
26
  };
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type OrgShippingIntegrationEnum1 = "xcelerator" | "dispatch_science" | "ontime360" | "cxt" | "atlas";
4
+ export type OrgShippingIntegrationEnum1 = "xcelerator" | "dispatch_science" | "ontime360" | "cxt" | "atlas" | "ecourier";
5
5
  export declare const OrgShippingIntegrationEnum1: {
6
6
  readonly Xcelerator: "xcelerator";
7
7
  readonly DispatchScience: "dispatch_science";
8
8
  readonly Ontime360: "ontime360";
9
9
  readonly Cxt: "cxt";
10
10
  readonly Atlas: "atlas";
11
+ readonly Ecourier: "ecourier";
11
12
  };
@@ -7,4 +7,5 @@ export const OrgShippingIntegrationEnum1 = {
7
7
  Ontime360: "ontime360",
8
8
  Cxt: "cxt",
9
9
  Atlas: "atlas",
10
+ Ecourier: "ecourier",
10
11
  };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ShippingIntegrationOrderStatusChange1 {
6
+ integration_order_id: string;
7
+ new_status: Chrt.ShippingIntegrationOrderStatusEnum1;
8
+ /** Must be a string starting with `org_` */
9
+ org_id: string;
10
+ previous_status?: Chrt.ShippingIntegrationOrderStatusEnum1 | null;
11
+ /** Must be a string starting with `org_` */
12
+ provider_org_id: string;
13
+ reference_numbers?: string[];
14
+ shipping_integration: Chrt.OrgShippingIntegrationEnum1;
15
+ shipping_integration_order_id: string;
16
+ timestamp: string;
17
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ShippingIntegrationOrderStatusChangedReq {
6
+ /** Must be a string starting with `org_` */
7
+ org_id: string;
8
+ /** Must be a string starting with `org_` */
9
+ provider_org_id: string;
10
+ shipping_integration: Chrt.OrgShippingIntegrationEnum1;
11
+ status_changes?: Chrt.ShippingIntegrationOrderStatusChange1[];
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ShippingIntegrationOrderStatusChangedRes {
5
+ dispatched_count: number;
6
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ShippingIntegrationOrderStatusChangedWebhookPayload {
6
+ /** UTC timestamp when the event occurred */
7
+ event_timestamp: string;
8
+ /** The order status event that occurred */
9
+ event_type: ShippingIntegrationOrderStatusChangedWebhookPayload.EventType;
10
+ /** The provider's order ID in their TMS */
11
+ integration_order_id: string;
12
+ /** The order's new status derived from the current sync */
13
+ new_status: Chrt.ShippingIntegrationOrderStatusEnum1;
14
+ /** The order's previous status before this sync */
15
+ previous_status?: Chrt.ShippingIntegrationOrderStatusEnum1 | null;
16
+ /** The courier provider organization ID */
17
+ provider_org_id: string;
18
+ /** Associated reference numbers on the order */
19
+ reference_numbers?: string[];
20
+ /** The TMS shipping integration platform */
21
+ shipping_integration: Chrt.OrgShippingIntegrationEnum1;
22
+ /** The unified shipping integration order ID */
23
+ shipping_integration_order_id: string;
24
+ }
25
+ export declare namespace ShippingIntegrationOrderStatusChangedWebhookPayload {
26
+ /**
27
+ * The order status event that occurred
28
+ */
29
+ type EventType = "shipping_integration.order.staged" | "shipping_integration.order.in_progress" | "shipping_integration.order.completed" | "shipping_integration.order.exception" | "shipping_integration.order.cancelled";
30
+ const EventType: {
31
+ readonly ShippingIntegrationOrderStaged: "shipping_integration.order.staged";
32
+ readonly ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress";
33
+ readonly ShippingIntegrationOrderCompleted: "shipping_integration.order.completed";
34
+ readonly ShippingIntegrationOrderException: "shipping_integration.order.exception";
35
+ readonly ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled";
36
+ };
37
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export var ShippingIntegrationOrderStatusChangedWebhookPayload;
5
+ (function (ShippingIntegrationOrderStatusChangedWebhookPayload) {
6
+ ShippingIntegrationOrderStatusChangedWebhookPayload.EventType = {
7
+ ShippingIntegrationOrderStaged: "shipping_integration.order.staged",
8
+ ShippingIntegrationOrderInProgress: "shipping_integration.order.in_progress",
9
+ ShippingIntegrationOrderCompleted: "shipping_integration.order.completed",
10
+ ShippingIntegrationOrderException: "shipping_integration.order.exception",
11
+ ShippingIntegrationOrderCancelled: "shipping_integration.order.cancelled",
12
+ };
13
+ })(ShippingIntegrationOrderStatusChangedWebhookPayload || (ShippingIntegrationOrderStatusChangedWebhookPayload = {}));
@@ -213,6 +213,15 @@ export * from "./DriverStatusEnum.mjs";
213
213
  export * from "./DriverUpdateAvailabilityReq.mjs";
214
214
  export * from "./DriverUpdateRes.mjs";
215
215
  export * from "./DriverWithActiveTaskGroupIds1.mjs";
216
+ export * from "./EcourierCredsLimited1.mjs";
217
+ export * from "./EcourierCredsListRes.mjs";
218
+ export * from "./EcourierCredsTestRes.mjs";
219
+ export * from "./EcourierOrder1.mjs";
220
+ export * from "./EcourierOrderCustomerResponse1.mjs";
221
+ export * from "./EcourierOrderListRes.mjs";
222
+ export * from "./EcourierOrderResponse1.mjs";
223
+ export * from "./EcourierOrderSortByEnum.mjs";
224
+ export * from "./EcourierOrderStopResponse1.mjs";
216
225
  export * from "./ExtraStopRate1.mjs";
217
226
  export * from "./FirebaseCloudMessagingTokenData1.mjs";
218
227
  export * from "./FlatFeeRate1.mjs";
@@ -229,6 +238,7 @@ export * from "./FlightLegWebhookInfo.mjs";
229
238
  export * from "./FlightTrackPosition1.mjs";
230
239
  export * from "./FlightTrackRes.mjs";
231
240
  export * from "./FlightTrackWaypoint1.mjs";
241
+ export * from "./FraytWebhookResponse.mjs";
232
242
  export * from "./FromPayables1.mjs";
233
243
  export * from "./FuelSurchargeRate1.mjs";
234
244
  export * from "./GeofencePointLocationFeature1.mjs";
@@ -455,6 +465,10 @@ export * from "./ShippingIntegrationOrderExpanded1.mjs";
455
465
  export * from "./ShippingIntegrationOrderListRes.mjs";
456
466
  export * from "./ShippingIntegrationOrderPlace1.mjs";
457
467
  export * from "./ShippingIntegrationOrderSortByEnum.mjs";
468
+ export * from "./ShippingIntegrationOrderStatusChange1.mjs";
469
+ export * from "./ShippingIntegrationOrderStatusChangedReq.mjs";
470
+ export * from "./ShippingIntegrationOrderStatusChangedRes.mjs";
471
+ export * from "./ShippingIntegrationOrderStatusChangedWebhookPayload.mjs";
458
472
  export * from "./ShippingIntegrationOrderStatusEnum1.mjs";
459
473
  export * from "./ShippingIntegrationOrderStatusSummaryRes.mjs";
460
474
  export * from "./ShippingIntegrationOrderTypeaheadFieldEnum.mjs";
@@ -213,6 +213,15 @@ export * from "./DriverStatusEnum.mjs";
213
213
  export * from "./DriverUpdateAvailabilityReq.mjs";
214
214
  export * from "./DriverUpdateRes.mjs";
215
215
  export * from "./DriverWithActiveTaskGroupIds1.mjs";
216
+ export * from "./EcourierCredsLimited1.mjs";
217
+ export * from "./EcourierCredsListRes.mjs";
218
+ export * from "./EcourierCredsTestRes.mjs";
219
+ export * from "./EcourierOrder1.mjs";
220
+ export * from "./EcourierOrderCustomerResponse1.mjs";
221
+ export * from "./EcourierOrderListRes.mjs";
222
+ export * from "./EcourierOrderResponse1.mjs";
223
+ export * from "./EcourierOrderSortByEnum.mjs";
224
+ export * from "./EcourierOrderStopResponse1.mjs";
216
225
  export * from "./ExtraStopRate1.mjs";
217
226
  export * from "./FirebaseCloudMessagingTokenData1.mjs";
218
227
  export * from "./FlatFeeRate1.mjs";
@@ -229,6 +238,7 @@ export * from "./FlightLegWebhookInfo.mjs";
229
238
  export * from "./FlightTrackPosition1.mjs";
230
239
  export * from "./FlightTrackRes.mjs";
231
240
  export * from "./FlightTrackWaypoint1.mjs";
241
+ export * from "./FraytWebhookResponse.mjs";
232
242
  export * from "./FromPayables1.mjs";
233
243
  export * from "./FuelSurchargeRate1.mjs";
234
244
  export * from "./GeofencePointLocationFeature1.mjs";
@@ -455,6 +465,10 @@ export * from "./ShippingIntegrationOrderExpanded1.mjs";
455
465
  export * from "./ShippingIntegrationOrderListRes.mjs";
456
466
  export * from "./ShippingIntegrationOrderPlace1.mjs";
457
467
  export * from "./ShippingIntegrationOrderSortByEnum.mjs";
468
+ export * from "./ShippingIntegrationOrderStatusChange1.mjs";
469
+ export * from "./ShippingIntegrationOrderStatusChangedReq.mjs";
470
+ export * from "./ShippingIntegrationOrderStatusChangedRes.mjs";
471
+ export * from "./ShippingIntegrationOrderStatusChangedWebhookPayload.mjs";
458
472
  export * from "./ShippingIntegrationOrderStatusEnum1.mjs";
459
473
  export * from "./ShippingIntegrationOrderStatusSummaryRes.mjs";
460
474
  export * from "./ShippingIntegrationOrderTypeaheadFieldEnum.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.935.0";
1
+ export declare const SDK_VERSION = "1.944.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.935.0";
1
+ export const SDK_VERSION = "1.944.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.935.0",
3
+ "version": "1.944.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",