@chrt-inc/typescript-sdk 0.0.179 → 0.0.183-b

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 (110) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +24 -24
  3. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.ts +4 -4
  4. package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.ts +4 -4
  5. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +6 -6
  6. package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +19 -19
  7. package/dist/cjs/api/resources/dev/client/Client.d.ts +10 -0
  8. package/dist/cjs/api/resources/dev/client/Client.js +49 -0
  9. package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +1 -1
  10. package/dist/cjs/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.ts +5 -5
  11. package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
  12. package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +2 -2
  13. package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +1 -1
  14. package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
  15. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +10 -10
  16. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
  17. package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +4 -4
  18. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +9 -9
  19. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +10 -10
  20. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +9 -9
  21. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
  22. package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts +3 -3
  23. package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +2 -2
  24. package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +11 -11
  25. package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +1 -1
  26. package/dist/cjs/api/types/Cargo1.d.ts +5 -5
  27. package/dist/cjs/api/types/CargoClientCreate1.d.ts +5 -5
  28. package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
  29. package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +6 -6
  30. package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +16 -16
  31. package/dist/cjs/api/types/Driver1.d.ts +10 -10
  32. package/dist/cjs/api/types/Expense1.d.ts +2 -2
  33. package/dist/cjs/api/types/Feature.d.ts +3 -3
  34. package/dist/cjs/api/types/LineItem1.d.ts +1 -1
  35. package/dist/cjs/api/types/Milestone1.d.ts +10 -10
  36. package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
  37. package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +10 -10
  38. package/dist/cjs/api/types/Order1.d.ts +8 -8
  39. package/dist/cjs/api/types/OrgMemberDetails.d.ts +3 -3
  40. package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
  41. package/dist/cjs/api/types/OrgPublicData2.d.ts +1 -1
  42. package/dist/cjs/api/types/PayablesInvoice1.d.ts +7 -7
  43. package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
  44. package/dist/cjs/api/types/ShipperContactInfo1.d.ts +14 -14
  45. package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +14 -14
  46. package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +10 -10
  47. package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +6 -6
  48. package/dist/cjs/api/types/Task1.d.ts +12 -12
  49. package/dist/cjs/api/types/TaskClientCreate1.d.ts +7 -7
  50. package/dist/cjs/api/types/TaskCreateBundle.d.ts +4 -4
  51. package/dist/cjs/api/types/TaskGroup1.d.ts +7 -7
  52. package/dist/cjs/api/types/UserPublicData6.d.ts +3 -3
  53. package/dist/cjs/version.d.ts +1 -1
  54. package/dist/cjs/version.js +1 -1
  55. package/dist/esm/Client.mjs +2 -2
  56. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +24 -24
  57. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.mts +4 -4
  58. package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.mts +4 -4
  59. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +6 -6
  60. package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +19 -19
  61. package/dist/esm/api/resources/dev/client/Client.d.mts +10 -0
  62. package/dist/esm/api/resources/dev/client/Client.mjs +49 -0
  63. package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +1 -1
  64. package/dist/esm/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.mts +5 -5
  65. package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
  66. package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +2 -2
  67. package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +1 -1
  68. package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
  69. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +10 -10
  70. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
  71. package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +4 -4
  72. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +9 -9
  73. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +10 -10
  74. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +9 -9
  75. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
  76. package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts +3 -3
  77. package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +2 -2
  78. package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +11 -11
  79. package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +1 -1
  80. package/dist/esm/api/types/Cargo1.d.mts +5 -5
  81. package/dist/esm/api/types/CargoClientCreate1.d.mts +5 -5
  82. package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
  83. package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +6 -6
  84. package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +16 -16
  85. package/dist/esm/api/types/Driver1.d.mts +10 -10
  86. package/dist/esm/api/types/Expense1.d.mts +2 -2
  87. package/dist/esm/api/types/Feature.d.mts +3 -3
  88. package/dist/esm/api/types/LineItem1.d.mts +1 -1
  89. package/dist/esm/api/types/Milestone1.d.mts +10 -10
  90. package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
  91. package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +10 -10
  92. package/dist/esm/api/types/Order1.d.mts +8 -8
  93. package/dist/esm/api/types/OrgMemberDetails.d.mts +3 -3
  94. package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
  95. package/dist/esm/api/types/OrgPublicData2.d.mts +1 -1
  96. package/dist/esm/api/types/PayablesInvoice1.d.mts +7 -7
  97. package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
  98. package/dist/esm/api/types/ShipperContactInfo1.d.mts +14 -14
  99. package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +14 -14
  100. package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +10 -10
  101. package/dist/esm/api/types/StripeConnectInvoice1.d.mts +6 -6
  102. package/dist/esm/api/types/Task1.d.mts +12 -12
  103. package/dist/esm/api/types/TaskClientCreate1.d.mts +7 -7
  104. package/dist/esm/api/types/TaskCreateBundle.d.mts +4 -4
  105. package/dist/esm/api/types/TaskGroup1.d.mts +7 -7
  106. package/dist/esm/api/types/UserPublicData6.d.mts +3 -3
  107. package/dist/esm/version.d.mts +1 -1
  108. package/dist/esm/version.mjs +1 -1
  109. package/package.json +1 -1
  110. package/reference.md +55 -0
@@ -4,14 +4,14 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface CourierPayDriverRateSheet1 {
6
6
  schema_version: number;
7
- name?: string;
8
- cargo_types?: Chrt.CargoTypeEnum1[];
9
- vehicle_types?: Chrt.VehicleTypeEnum[];
10
- route_types?: Chrt.RouteTypeEnum1[];
11
- driver_ids?: string[];
7
+ name?: string | null;
8
+ cargo_types?: Chrt.CargoTypeEnum1[] | null;
9
+ vehicle_types?: Chrt.VehicleTypeEnum[] | null;
10
+ route_types?: Chrt.RouteTypeEnum1[] | null;
11
+ driver_ids?: string[] | null;
12
12
  /** Must be a string starting with `org_` */
13
13
  courier_org_id: string;
14
- comments?: string;
14
+ comments?: string | null;
15
15
  base_mileage_distance_miles: number;
16
16
  base_mileage_rate_usd_per_instance: number;
17
17
  /** applies only to the additional miles */
@@ -2,23 +2,23 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface DecodedJwtWithOrgAndUserId {
5
- azp?: string;
6
- exp?: number;
7
- fva?: number[];
8
- iat?: number;
9
- iss?: string;
10
- jti?: string;
11
- nbf?: number;
12
- sid?: string;
5
+ azp?: string | null;
6
+ exp?: number | null;
7
+ fva?: number[] | null;
8
+ iat?: number | null;
9
+ iss?: string | null;
10
+ jti?: string | null;
11
+ nbf?: number | null;
12
+ sid?: string | null;
13
13
  /** Must be a string starting with `user_` */
14
- sub?: string;
15
- org_permissions?: unknown[];
16
- org_role?: string;
17
- org_slug?: string;
18
- email_verified?: boolean;
19
- org_public_metadata?: Record<string, unknown>;
20
- user_public_metadata?: Record<string, unknown>;
21
- primary_email_address?: string;
14
+ sub?: string | null;
15
+ org_permissions?: unknown[] | null;
16
+ org_role?: string | null;
17
+ org_slug?: string | null;
18
+ email_verified?: boolean | null;
19
+ org_public_metadata?: Record<string, unknown> | null;
20
+ user_public_metadata?: Record<string, unknown> | null;
21
+ primary_email_address?: string | null;
22
22
  /** Must be a string starting with `org_` */
23
23
  org_id: string;
24
24
  /** Must be a string starting with `user_` */
@@ -5,19 +5,19 @@ import * as Chrt from "../index.js";
5
5
  export interface Driver1 {
6
6
  schema_version: number;
7
7
  active: boolean;
8
- email_address_primary?: string;
9
- email_address_secondary?: string;
10
- phone_number_primary?: string;
11
- phone_number_secondary?: string;
12
- first_name?: string;
13
- last_name?: string;
8
+ email_address_primary?: string | null;
9
+ email_address_secondary?: string | null;
10
+ phone_number_primary?: string | null;
11
+ phone_number_secondary?: string | null;
12
+ first_name?: string | null;
13
+ last_name?: string | null;
14
14
  vehicle_types?: Chrt.VehicleTypeEnum[];
15
15
  status?: Chrt.DriverStatusEnum;
16
- last_seen_at_location?: Chrt.Feature;
17
- last_seen_at_timestamp?: string;
16
+ last_seen_at_location?: Chrt.Feature | null;
17
+ last_seen_at_timestamp?: string | null;
18
18
  _id: string;
19
19
  /** Must be a string starting with `org_` */
20
- org_id?: string;
20
+ org_id?: string | null;
21
21
  /** Must be a string starting with `user_` */
22
- user_id?: string;
22
+ user_id?: string | null;
23
23
  }
@@ -6,8 +6,8 @@ export interface Expense1 {
6
6
  schema_version: number;
7
7
  _id: string;
8
8
  amount_usd: number;
9
- docs_s3_short_key?: string[];
9
+ docs_s3_short_key?: string[] | null;
10
10
  vendor: string;
11
11
  line_item_type: Chrt.LineItemEnum1;
12
- comments?: string;
12
+ comments?: string | null;
13
13
  }
@@ -8,9 +8,9 @@ import * as Chrt from "../index.js";
8
8
  export interface Feature {
9
9
  bbox?: unknown[];
10
10
  type: "Feature";
11
- geometry?: Chrt.FeatureOutputGeometry;
12
- properties?: Feature.Properties;
13
- id?: Feature.Id;
11
+ geometry?: Chrt.FeatureOutputGeometry | null;
12
+ properties?: Feature.Properties | null;
13
+ id?: Feature.Id | null;
14
14
  }
15
15
  export declare namespace Feature {
16
16
  type Properties = Record<string, unknown> | Chrt.BaseModel;
@@ -7,5 +7,5 @@ export interface LineItem1 {
7
7
  item: Chrt.LineItemEnum1;
8
8
  quantity: number;
9
9
  rate: number;
10
- comment?: string;
10
+ comment?: string | null;
11
11
  }
@@ -5,23 +5,23 @@ import * as Chrt from "../index.js";
5
5
  export interface Milestone1 {
6
6
  schema_version: number;
7
7
  type: Chrt.MilestoneTypeEnum1;
8
- requestor_comments?: string;
8
+ requestor_comments?: string | null;
9
9
  _id: string;
10
10
  order_id: string;
11
11
  order_short_id: string;
12
12
  task_id: string;
13
- completed_at_timestamp?: string;
14
- completed_at_geojson_feature?: Chrt.Feature;
13
+ completed_at_timestamp?: string | null;
14
+ completed_at_geojson_feature?: Chrt.Feature | null;
15
15
  /** Must be a string starting with `user_` */
16
- completed_by_user_id?: string;
16
+ completed_by_user_id?: string | null;
17
17
  completed: boolean;
18
18
  s3_milestone_file_metadata_ids?: string[];
19
19
  decoded_scans?: string[];
20
20
  requested_by_shipper: boolean;
21
- completor_comments?: string;
22
- chrt_comments?: string;
23
- notification_email_ids?: string[];
24
- notification_sms_ids?: string[];
25
- notification_push_ids?: string[];
26
- notification_voice_ids?: string[];
21
+ completor_comments?: string | null;
22
+ chrt_comments?: string | null;
23
+ notification_email_ids?: string[] | null;
24
+ notification_sms_ids?: string[] | null;
25
+ notification_push_ids?: string[] | null;
26
+ notification_voice_ids?: string[] | null;
27
27
  }
@@ -5,5 +5,5 @@ import * as Chrt from "../index.js";
5
5
  export interface MilestoneClientCreate1 {
6
6
  schema_version: number;
7
7
  type: Chrt.MilestoneTypeEnum1;
8
- requestor_comments?: string;
8
+ requestor_comments?: string | null;
9
9
  }
@@ -4,17 +4,17 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface OffChrtShipperOrgConnectionInfo1 {
6
6
  schema_version: number;
7
- industry?: string;
8
- street_address?: Chrt.Feature;
9
- contact_first_name?: string;
10
- contact_last_name?: string;
11
- phone_number_primary?: string;
12
- phone_number_secondary?: string;
7
+ industry?: string | null;
8
+ street_address?: Chrt.Feature | null;
9
+ contact_first_name?: string | null;
10
+ contact_last_name?: string | null;
11
+ phone_number_primary?: string | null;
12
+ phone_number_secondary?: string | null;
13
13
  email_address_primary: string;
14
- email_address_secondary?: string;
15
- job_title?: string;
16
- notes?: string;
17
- company_name?: string;
14
+ email_address_secondary?: string | null;
15
+ job_title?: string | null;
16
+ notes?: string | null;
17
+ company_name?: string | null;
18
18
  /** Must be a string starting with `org_` */
19
19
  created_by_org_id: string;
20
20
  /** Must be a string starting with `user_` */
@@ -14,16 +14,16 @@ export interface Order1 {
14
14
  /** Must be a string starting with `user_` */
15
15
  created_by_user_id: string;
16
16
  draft_started_at: string;
17
- task_group_ids?: string[];
18
- stripe_connect_invoice_id?: string;
19
- receivables_invoice_id?: string;
17
+ task_group_ids?: string[] | null;
18
+ stripe_connect_invoice_id?: string | null;
19
+ receivables_invoice_id?: string | null;
20
20
  /** Must be a string starting with `org_` */
21
- shipper_org_id?: string;
21
+ shipper_org_id?: string | null;
22
22
  /** Must be a string starting with `user_` */
23
- shipper_user_id?: string;
24
- off_chrt_shipper_org_connection_info_id?: string;
25
- order_level_expenses_ids?: string[];
26
- order_level_receivables_line_items?: Chrt.LineItem1[];
23
+ shipper_user_id?: string | null;
24
+ off_chrt_shipper_org_connection_info_id?: string | null;
25
+ order_level_expenses_ids?: string[] | null;
26
+ order_level_receivables_line_items?: Chrt.LineItem1[] | null;
27
27
  status?: Chrt.OrderStatusEnum1;
28
28
  order_cancelled?: boolean;
29
29
  }
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface OrgMemberDetails {
5
5
  role: string;
6
- role_name?: string;
6
+ role_name?: string | null;
7
7
  /** Must be a string starting with `user_` */
8
8
  user_id: string;
9
- first_name?: string;
10
- last_name?: string;
9
+ first_name?: string | null;
10
+ last_name?: string | null;
11
11
  }
@@ -4,5 +4,5 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface OrgMembersAndDrivers {
6
6
  org_member: Chrt.OrgMemberDetails;
7
- driver?: Chrt.Driver1;
7
+ driver?: Chrt.Driver1 | null;
8
8
  }
@@ -6,6 +6,6 @@ export interface OrgPublicData2 {
6
6
  /** Must be a string starting with `org_` */
7
7
  org_id: string;
8
8
  handle: string;
9
- company_name?: string;
9
+ company_name?: string | null;
10
10
  _id: string;
11
11
  }
@@ -7,18 +7,18 @@ export interface PayablesInvoice1 {
7
7
  _id: string;
8
8
  order_id: string;
9
9
  order_short_id: string;
10
- task_group_id?: string;
11
- line_items?: Chrt.LineItem1[];
10
+ task_group_id?: string | null;
11
+ line_items?: Chrt.LineItem1[] | null;
12
12
  status: PayablesInvoice1.Status;
13
13
  courier_approved?: boolean;
14
- courier_approved_at?: string;
14
+ courier_approved_at?: string | null;
15
15
  /** Must be a string starting with `user_` */
16
- courier_approved_by_user_id?: string;
16
+ courier_approved_by_user_id?: string | null;
17
17
  chrt_approved?: boolean;
18
- chrt_approved_at?: string;
18
+ chrt_approved_at?: string | null;
19
19
  /** Must be a string starting with `user_` */
20
- chrt_approved_by_user_id?: string;
21
- chrt_approved_by_automation?: string;
20
+ chrt_approved_by_user_id?: string | null;
21
+ chrt_approved_by_automation?: string | null;
22
22
  }
23
23
  export declare namespace PayablesInvoice1 {
24
24
  type Status = "draft" | "pending_approvals" | "approved" | "pending_payment" | "payment_processing" | "payment_error" | "paid";
@@ -7,18 +7,18 @@ export interface ReceivablesInvoice1 {
7
7
  _id: string;
8
8
  order_id: string;
9
9
  order_short_id: string;
10
- task_group_ids?: string[];
11
- line_items?: Chrt.LineItem1[];
10
+ task_group_ids?: string[] | null;
11
+ line_items?: Chrt.LineItem1[] | null;
12
12
  status: ReceivablesInvoice1.Status;
13
13
  chrt_approved?: boolean;
14
- chrt_approved_at?: string;
14
+ chrt_approved_at?: string | null;
15
15
  /** Must be a string starting with `user_` */
16
- chrt_approved_by_user_id?: string;
17
- chrt_approved_by_automation?: string;
16
+ chrt_approved_by_user_id?: string | null;
17
+ chrt_approved_by_automation?: string | null;
18
18
  shipper_approved?: boolean;
19
- shipper_approved_at?: string;
19
+ shipper_approved_at?: string | null;
20
20
  /** Must be a string starting with `user_` */
21
- shipper_approved_by_user_id?: string;
21
+ shipper_approved_by_user_id?: string | null;
22
22
  }
23
23
  export declare namespace ReceivablesInvoice1 {
24
24
  type Status = "draft" | "pending_approvals" | "approved" | "pending_payment" | "payment_processing" | "payment_error" | "paid";
@@ -4,22 +4,22 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface ShipperContactInfo1 {
6
6
  schema_version: number;
7
- company_name?: string;
8
- industry?: string;
9
- street_address?: Chrt.Feature;
10
- contact_first_name?: string;
11
- contact_last_name?: string;
12
- phone_number_primary?: string;
13
- phone_number_secondary?: string;
14
- email_address_primary?: string;
15
- email_address_secondary?: string;
16
- job_title?: string;
17
- notes?: string;
7
+ company_name?: string | null;
8
+ industry?: string | null;
9
+ street_address?: Chrt.Feature | null;
10
+ contact_first_name?: string | null;
11
+ contact_last_name?: string | null;
12
+ phone_number_primary?: string | null;
13
+ phone_number_secondary?: string | null;
14
+ email_address_primary?: string | null;
15
+ email_address_secondary?: string | null;
16
+ job_title?: string | null;
17
+ notes?: string | null;
18
18
  /** Must be a string starting with `org_` */
19
- shipper_org_id?: string;
19
+ shipper_org_id?: string | null;
20
20
  /** Must be a string starting with `user_` */
21
- shipper_user_id?: string;
22
- off_chrt_shipper_org_connection_info_id?: string;
21
+ shipper_user_id?: string | null;
22
+ off_chrt_shipper_org_connection_info_id?: string | null;
23
23
  /** Must be a string starting with `org_` */
24
24
  created_by_org_id: string;
25
25
  /** Must be a string starting with `user_` */
@@ -4,20 +4,20 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface ShipperContactInfoClientCreate1 {
6
6
  schema_version: number;
7
- company_name?: string;
8
- industry?: string;
9
- street_address?: Chrt.Feature;
10
- contact_first_name?: string;
11
- contact_last_name?: string;
12
- phone_number_primary?: string;
13
- phone_number_secondary?: string;
14
- email_address_primary?: string;
15
- email_address_secondary?: string;
16
- job_title?: string;
17
- notes?: string;
7
+ company_name?: string | null;
8
+ industry?: string | null;
9
+ street_address?: Chrt.Feature | null;
10
+ contact_first_name?: string | null;
11
+ contact_last_name?: string | null;
12
+ phone_number_primary?: string | null;
13
+ phone_number_secondary?: string | null;
14
+ email_address_primary?: string | null;
15
+ email_address_secondary?: string | null;
16
+ job_title?: string | null;
17
+ notes?: string | null;
18
18
  /** Must be a string starting with `org_` */
19
- shipper_org_id?: string;
19
+ shipper_org_id?: string | null;
20
20
  /** Must be a string starting with `user_` */
21
- shipper_user_id?: string;
22
- off_chrt_shipper_org_connection_info_id?: string;
21
+ shipper_user_id?: string | null;
22
+ off_chrt_shipper_org_connection_info_id?: string | null;
23
23
  }
@@ -4,19 +4,19 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface ShipperOrgConnectionInfo1 {
6
6
  schema_version: number;
7
- industry?: string;
8
- street_address?: Chrt.Feature;
9
- contact_first_name?: string;
10
- contact_last_name?: string;
11
- phone_number_primary?: string;
12
- phone_number_secondary?: string;
7
+ industry?: string | null;
8
+ street_address?: Chrt.Feature | null;
9
+ contact_first_name?: string | null;
10
+ contact_last_name?: string | null;
11
+ phone_number_primary?: string | null;
12
+ phone_number_secondary?: string | null;
13
13
  email_address_primary: string;
14
- email_address_secondary?: string;
15
- job_title?: string;
16
- notes?: string;
14
+ email_address_secondary?: string | null;
15
+ job_title?: string | null;
16
+ notes?: string | null;
17
17
  /** Must be a string starting with `org_` */
18
18
  shipper_org_id: string;
19
19
  /** Must be a string starting with `user_` */
20
- shipper_user_id?: string;
20
+ shipper_user_id?: string | null;
21
21
  _id: string;
22
22
  }
@@ -6,17 +6,17 @@ export interface StripeConnectInvoice1 {
6
6
  schema_version: number;
7
7
  _id: string;
8
8
  order_id: string;
9
- task_group_id?: string;
10
- line_items?: Chrt.LineItem1[];
9
+ task_group_id?: string | null;
10
+ line_items?: Chrt.LineItem1[] | null;
11
11
  status: StripeConnectInvoice1.Status;
12
12
  courier_approved?: boolean;
13
- courier_approved_at?: string;
13
+ courier_approved_at?: string | null;
14
14
  /** Must be a string starting with `user_` */
15
- courier_approved_by_user_id?: string;
15
+ courier_approved_by_user_id?: string | null;
16
16
  shipper_approved?: boolean;
17
- shipper_approved_at?: string;
17
+ shipper_approved_at?: string | null;
18
18
  /** Must be a string starting with `user_` */
19
- shipper_approved_by_user_id?: string;
19
+ shipper_approved_by_user_id?: string | null;
20
20
  }
21
21
  export declare namespace StripeConnectInvoice1 {
22
22
  type Status = "draft" | "pending_approvals" | "approved" | "pending_payment" | "payment_processing" | "payment_error" | "paid";
@@ -4,13 +4,13 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface Task1 {
6
6
  schema_version: number;
7
- location?: Chrt.Feature;
8
- action?: Task1.Action;
9
- shipper_contact_info_ids?: string[];
10
- arrive_by?: string;
11
- arrive_at?: string;
12
- comments?: string;
13
- flight_number?: string;
7
+ location?: Chrt.Feature | null;
8
+ action?: Task1.Action | null;
9
+ shipper_contact_info_ids?: string[] | null;
10
+ arrive_by?: string | null;
11
+ arrive_at?: string | null;
12
+ comments?: string | null;
13
+ flight_number?: string | null;
14
14
  _id: string;
15
15
  order_id: string;
16
16
  order_short_id: string;
@@ -20,11 +20,11 @@ export interface Task1 {
20
20
  created_by_user_id: string;
21
21
  order_cancelled?: boolean;
22
22
  completed?: boolean;
23
- completed_at?: string;
24
- cargo_ids?: string[];
25
- milestone_ids?: string[];
26
- incident_ids?: string[];
27
- insurance_ids?: string[];
23
+ completed_at?: string | null;
24
+ cargo_ids?: string[] | null;
25
+ milestone_ids?: string[] | null;
26
+ incident_ids?: string[] | null;
27
+ insurance_ids?: string[] | null;
28
28
  }
29
29
  export declare namespace Task1 {
30
30
  type Action = Chrt.TaskActionEnum1 | Chrt.ObcNfoTaskActionEnum;
@@ -4,13 +4,13 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface TaskClientCreate1 {
6
6
  schema_version: number;
7
- location?: Chrt.Feature;
8
- action?: TaskClientCreate1.Action;
9
- shipper_contact_info_ids?: string[];
10
- arrive_by?: string;
11
- arrive_at?: string;
12
- comments?: string;
13
- flight_number?: string;
7
+ location?: Chrt.Feature | null;
8
+ action?: TaskClientCreate1.Action | null;
9
+ shipper_contact_info_ids?: string[] | null;
10
+ arrive_by?: string | null;
11
+ arrive_at?: string | null;
12
+ comments?: string | null;
13
+ flight_number?: string | null;
14
14
  }
15
15
  export declare namespace TaskClientCreate1 {
16
16
  type Action = Chrt.TaskActionEnum1 | Chrt.ObcNfoTaskActionEnum;
@@ -4,10 +4,10 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface TaskCreateBundle {
6
6
  task_client_create: Chrt.TaskClientCreate1;
7
- milestone_client_creates?: Chrt.MilestoneClientCreate1[];
7
+ milestone_client_creates?: Chrt.MilestoneClientCreate1[] | null;
8
8
  /** Client-side generated UUID that is used with cargo_client_creates_map to find a oort.CargoClientCreate1 object */
9
- cargo_client_creates_uuids?: string[];
9
+ cargo_client_creates_uuids?: string[] | null;
10
10
  /** Email addresses to send notifications to for each milestone */
11
- email_addresses?: string[];
12
- flight_number?: string;
11
+ email_addresses?: string[] | null;
12
+ flight_number?: string | null;
13
13
  }
@@ -8,17 +8,17 @@ export interface TaskGroup1 {
8
8
  order_id: string;
9
9
  order_short_id: string;
10
10
  task_ids: string[];
11
- line_items?: Chrt.LineItem1[];
12
- payables_invoice_id?: string;
11
+ line_items?: Chrt.LineItem1[] | null;
12
+ payables_invoice_id?: string | null;
13
13
  /** Must be a string starting with `org_` */
14
- shipper_org_id?: string;
14
+ shipper_org_id?: string | null;
15
15
  /** Must be a string starting with `org_` */
16
- courier_org_id?: string;
16
+ courier_org_id?: string | null;
17
17
  order_cancelled?: boolean;
18
18
  status?: Chrt.TaskGroupStatusEnum1;
19
- driver_id?: string;
20
- started_at?: string;
21
- completed_at?: string;
19
+ driver_id?: string | null;
20
+ started_at?: string | null;
21
+ completed_at?: string | null;
22
22
  completed?: boolean;
23
23
  paused?: boolean;
24
24
  }
@@ -7,8 +7,8 @@ export interface UserPublicData6 {
7
7
  last_edited: string;
8
8
  courier_profile_is_public: boolean;
9
9
  user_id: string;
10
- customer_id?: string;
11
- primary_email_address?: string;
12
- notes?: Record<string, unknown>;
10
+ customer_id?: string | null;
11
+ primary_email_address?: string | null;
12
+ notes?: Record<string, unknown> | null;
13
13
  _id: string;
14
14
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.179";
1
+ export declare const SDK_VERSION = "0.0.183-b";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.179";
4
+ exports.SDK_VERSION = "0.0.183-b";
@@ -27,8 +27,8 @@ export class ChrtClient {
27
27
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
28
28
  "X-Fern-Language": "JavaScript",
29
29
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
30
- "X-Fern-SDK-Version": "0.0.179",
31
- "User-Agent": "@chrt-inc/typescript-sdk/0.0.179",
30
+ "X-Fern-SDK-Version": "0.0.183-b",
31
+ "User-Agent": "@chrt-inc/typescript-sdk/0.0.183-b",
32
32
  "X-Fern-Runtime": core.RUNTIME.type,
33
33
  "X-Fern-Runtime-Version": core.RUNTIME.version,
34
34
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });