@chrt-inc/typescript-sdk 0.0.183 → 0.0.184
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/Client.js +24 -24
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.ts +4 -4
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.ts +6 -6
- package/dist/cjs/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.ts +19 -19
- package/dist/cjs/api/resources/dev/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/dev/client/Client.js +47 -47
- package/dist/cjs/api/resources/drivers/client/requests/DriverCreateReq.d.ts +1 -1
- package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -1
- package/dist/cjs/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.ts +5 -5
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.ts +1 -1
- package/dist/cjs/api/resources/milestones/client/requests/MilestoneUpdateReq.d.ts +2 -2
- package/dist/cjs/api/resources/milestones/resources/images/client/Client.js +1 -1
- package/dist/cjs/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.ts +1 -1
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +10 -10
- package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderReq.d.ts +4 -4
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +10 -10
- package/dist/cjs/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.ts +2 -2
- package/dist/cjs/api/resources/payments/client/Client.d.ts +41 -0
- package/dist/cjs/api/resources/payments/client/Client.js +174 -0
- package/dist/cjs/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.ts +12 -0
- package/dist/cjs/api/resources/payments/client/requests/CreateDirectChargeReq.d.ts +17 -0
- package/dist/cjs/api/resources/payments/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +11 -11
- package/dist/cjs/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.ts +1 -1
- package/dist/cjs/api/types/Cargo1.d.ts +5 -5
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +5 -5
- package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/CourierPayDriverRateSheet1.d.ts +6 -6
- package/dist/cjs/api/types/{BaseModel.d.ts → CreateConnectAccountLinkRes.d.ts} +2 -1
- package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +6 -0
- package/dist/cjs/api/types/CreateDirectChargeRes.d.ts +8 -0
- package/dist/cjs/api/types/CreateDirectChargeRes.js +5 -0
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +16 -16
- package/dist/cjs/api/types/Driver1.d.ts +10 -10
- package/dist/cjs/api/types/Expense1.d.ts +2 -2
- package/dist/cjs/api/types/LineItem1.d.ts +1 -1
- package/dist/cjs/api/types/LocationFeature.d.ts +17 -0
- package/dist/cjs/api/types/LocationFeature.js +5 -0
- package/dist/cjs/api/types/{FeatureInputGeometry.d.ts → LocationFeatureInputGeometry.d.ts} +2 -2
- package/dist/cjs/api/types/LocationFeatureInputGeometry.js +5 -0
- package/dist/cjs/api/types/{FeatureOutputGeometry.d.ts → LocationFeatureOutputGeometry.d.ts} +2 -2
- package/dist/cjs/api/types/LocationFeatureOutputGeometry.js +5 -0
- package/dist/cjs/api/types/LocationProperties.d.ts +11 -0
- package/dist/cjs/api/types/LocationProperties.js +5 -0
- package/dist/cjs/api/types/Milestone1.d.ts +10 -10
- package/dist/cjs/api/types/MilestoneClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/Order1.d.ts +8 -8
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +3 -3
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPublicData2.d.ts +1 -1
- package/dist/cjs/api/types/PayablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ReceivablesInvoice1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperContactInfo1.d.ts +14 -14
- package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +14 -14
- package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +10 -10
- package/dist/cjs/api/types/StripeConnectInvoice1.d.ts +6 -6
- package/dist/cjs/api/types/Task1.d.ts +12 -12
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +7 -7
- package/dist/cjs/api/types/TaskCreateBundle.d.ts +4 -4
- package/dist/cjs/api/types/TaskGroup1.d.ts +7 -7
- package/dist/cjs/api/types/UserPublicData6.d.ts +4 -3
- package/dist/cjs/api/types/index.d.ts +7 -4
- package/dist/cjs/api/types/index.js +7 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/Client.mjs +24 -24
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupCreateRequest.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverLineItemGroup/client/requests/CourierPayDriverLineItemGroupPreviewRequest.d.mts +4 -4
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientCreate1.d.mts +6 -6
- package/dist/esm/api/resources/courierPayDriverRateSheets/client/requests/CourierPayDriverRateSheetClientUpdate1.d.mts +19 -19
- package/dist/esm/api/resources/dev/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/dev/client/Client.mjs +47 -47
- package/dist/esm/api/resources/drivers/client/requests/DriverCreateReq.d.mts +1 -1
- package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -1
- package/dist/esm/api/resources/drivers/client/requests/UpdateDriverDetailsReq.d.mts +5 -5
- package/dist/esm/api/resources/milestones/client/requests/MilestoneAddToTaskReq.d.mts +1 -1
- package/dist/esm/api/resources/milestones/client/requests/MilestoneUpdateReq.d.mts +2 -2
- package/dist/esm/api/resources/milestones/resources/images/client/Client.mjs +1 -1
- package/dist/esm/api/resources/milestones/resources/images/client/requests/BodyPostMilestonesUploadImageOortMilestonesImagesUploadMilestoneIdPost.d.mts +1 -1
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +10 -10
- package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orders/client/requests/CreateOrderReq.d.mts +4 -4
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +10 -10
- package/dist/esm/api/resources/orgProfiles/client/requests/CourierOrgProfileClientUpdate3.d.mts +3 -3
- package/dist/esm/api/resources/orgs/client/requests/UpdateOrgPublicDataReq.d.mts +2 -2
- package/dist/esm/api/resources/payments/client/Client.d.mts +41 -0
- package/dist/esm/api/resources/payments/client/Client.mjs +174 -0
- package/dist/esm/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.mts +12 -0
- package/dist/esm/api/resources/payments/client/requests/CreateDirectChargeReq.d.mts +17 -0
- package/dist/esm/api/resources/payments/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +11 -11
- package/dist/esm/api/resources/taskGroups/client/requests/UpdateTaskGroupReq.d.mts +1 -1
- package/dist/esm/api/types/Cargo1.d.mts +5 -5
- package/dist/esm/api/types/CargoClientCreate1.d.mts +5 -5
- package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/CourierPayDriverRateSheet1.d.mts +6 -6
- package/dist/esm/api/types/{BaseModel.d.mts → CreateConnectAccountLinkRes.d.mts} +2 -1
- package/dist/esm/api/types/CreateConnectAccountRes.d.mts +6 -0
- package/dist/esm/api/types/CreateDirectChargeRes.d.mts +8 -0
- package/dist/esm/api/types/CreateDirectChargeRes.mjs +4 -0
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +16 -16
- package/dist/esm/api/types/Driver1.d.mts +10 -10
- package/dist/esm/api/types/Expense1.d.mts +2 -2
- package/dist/esm/api/types/LineItem1.d.mts +1 -1
- package/dist/esm/api/types/LocationFeature.d.mts +17 -0
- package/dist/esm/api/types/LocationFeature.mjs +4 -0
- package/dist/esm/api/types/{FeatureInputGeometry.d.mts → LocationFeatureInputGeometry.d.mts} +2 -2
- package/dist/esm/api/types/LocationFeatureInputGeometry.mjs +4 -0
- package/dist/esm/api/types/{FeatureOutputGeometry.d.mts → LocationFeatureOutputGeometry.d.mts} +2 -2
- package/dist/esm/api/types/LocationFeatureOutputGeometry.mjs +4 -0
- package/dist/esm/api/types/LocationProperties.d.mts +11 -0
- package/dist/esm/api/types/LocationProperties.mjs +4 -0
- package/dist/esm/api/types/Milestone1.d.mts +10 -10
- package/dist/esm/api/types/MilestoneClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/Order1.d.mts +8 -8
- package/dist/esm/api/types/OrgMemberDetails.d.mts +3 -3
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPublicData2.d.mts +1 -1
- package/dist/esm/api/types/PayablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ReceivablesInvoice1.d.mts +7 -7
- package/dist/esm/api/types/ShipperContactInfo1.d.mts +14 -14
- package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +14 -14
- package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +10 -10
- package/dist/esm/api/types/StripeConnectInvoice1.d.mts +6 -6
- package/dist/esm/api/types/Task1.d.mts +12 -12
- package/dist/esm/api/types/TaskClientCreate1.d.mts +7 -7
- package/dist/esm/api/types/TaskCreateBundle.d.mts +4 -4
- package/dist/esm/api/types/TaskGroup1.d.mts +7 -7
- package/dist/esm/api/types/UserPublicData6.d.mts +4 -3
- package/dist/esm/api/types/index.d.mts +7 -4
- package/dist/esm/api/types/index.mjs +7 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +207 -21
- package/dist/cjs/api/types/Feature.d.ts +0 -18
- package/dist/esm/api/types/Feature.d.mts +0 -18
- /package/dist/cjs/api/{types/BaseModel.js → resources/payments/client/requests/CreateConnectAccountLinkReq.js} +0 -0
- /package/dist/cjs/api/{types/Feature.js → resources/payments/client/requests/CreateDirectChargeReq.js} +0 -0
- /package/dist/cjs/api/types/{FeatureInputGeometry.js → CreateConnectAccountLinkRes.js} +0 -0
- /package/dist/cjs/api/types/{FeatureOutputGeometry.js → CreateConnectAccountRes.js} +0 -0
- /package/dist/esm/api/{types/BaseModel.mjs → resources/payments/client/requests/CreateConnectAccountLinkReq.mjs} +0 -0
- /package/dist/esm/api/{types/Feature.mjs → resources/payments/client/requests/CreateDirectChargeReq.mjs} +0 -0
- /package/dist/esm/api/types/{FeatureInputGeometry.mjs → CreateConnectAccountLinkRes.mjs} +0 -0
- /package/dist/esm/api/types/{FeatureOutputGeometry.mjs → CreateConnectAccountRes.mjs} +0 -0
|
@@ -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.
|
|
13
|
+
completed_at_timestamp?: string | null;
|
|
14
|
+
completed_at_geojson_feature?: Chrt.LocationFeature | 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
|
}
|
|
@@ -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.
|
|
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.LocationFeature | 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
|
}
|
|
@@ -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.
|
|
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.LocationFeature | 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.
|
|
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.LocationFeature | 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.
|
|
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.LocationFeature | 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.
|
|
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.LocationFeature | 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.
|
|
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.LocationFeature | 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,9 @@ 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
|
-
|
|
12
|
-
|
|
10
|
+
customer_id?: string | null;
|
|
11
|
+
connect_account_id?: string | null;
|
|
12
|
+
primary_email_address?: string | null;
|
|
13
|
+
notes?: Record<string, unknown> | null;
|
|
13
14
|
_id: string;
|
|
14
15
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./BaseModel.js";
|
|
2
1
|
export * from "./Cargo1.js";
|
|
3
2
|
export * from "./CargoClientCreate1.js";
|
|
4
3
|
export * from "./CargoTypeEnum1.js";
|
|
@@ -10,14 +9,14 @@ export * from "./CourierPayDriverLineItemGroup1.js";
|
|
|
10
9
|
export * from "./CourierPayDriverLineItemGroupClientCreate1.js";
|
|
11
10
|
export * from "./CourierPayDriverRateSheet1.js";
|
|
12
11
|
export * from "./CreateCheckoutSessionRes2.js";
|
|
12
|
+
export * from "./CreateConnectAccountLinkRes.js";
|
|
13
|
+
export * from "./CreateConnectAccountRes.js";
|
|
14
|
+
export * from "./CreateDirectChargeRes.js";
|
|
13
15
|
export * from "./CreateOrderRes.js";
|
|
14
16
|
export * from "./DecodedJwtWithOrgAndUserId.js";
|
|
15
17
|
export * from "./Driver1.js";
|
|
16
18
|
export * from "./DriverStatusEnum.js";
|
|
17
19
|
export * from "./Expense1.js";
|
|
18
|
-
export * from "./FeatureInputGeometry.js";
|
|
19
|
-
export * from "./Feature.js";
|
|
20
|
-
export * from "./FeatureOutputGeometry.js";
|
|
21
20
|
export * from "./GeometryCollectionInputGeometriesItem.js";
|
|
22
21
|
export * from "./GeometryCollection.js";
|
|
23
22
|
export * from "./GeometryCollectionOutputGeometriesItem.js";
|
|
@@ -30,6 +29,10 @@ export * from "./Insurance1.js";
|
|
|
30
29
|
export * from "./LineItem1.js";
|
|
31
30
|
export * from "./LineItemEnum1.js";
|
|
32
31
|
export * from "./LineString.js";
|
|
32
|
+
export * from "./LocationFeatureInputGeometry.js";
|
|
33
|
+
export * from "./LocationFeature.js";
|
|
34
|
+
export * from "./LocationFeatureOutputGeometry.js";
|
|
35
|
+
export * from "./LocationProperties.js";
|
|
33
36
|
export * from "./Milestone1.js";
|
|
34
37
|
export * from "./MilestoneClientCreate1.js";
|
|
35
38
|
export * from "./MilestoneNotificationPreferences1.js";
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./BaseModel.js"), exports);
|
|
18
17
|
__exportStar(require("./Cargo1.js"), exports);
|
|
19
18
|
__exportStar(require("./CargoClientCreate1.js"), exports);
|
|
20
19
|
__exportStar(require("./CargoTypeEnum1.js"), exports);
|
|
@@ -26,14 +25,14 @@ __exportStar(require("./CourierPayDriverLineItemGroup1.js"), exports);
|
|
|
26
25
|
__exportStar(require("./CourierPayDriverLineItemGroupClientCreate1.js"), exports);
|
|
27
26
|
__exportStar(require("./CourierPayDriverRateSheet1.js"), exports);
|
|
28
27
|
__exportStar(require("./CreateCheckoutSessionRes2.js"), exports);
|
|
28
|
+
__exportStar(require("./CreateConnectAccountLinkRes.js"), exports);
|
|
29
|
+
__exportStar(require("./CreateConnectAccountRes.js"), exports);
|
|
30
|
+
__exportStar(require("./CreateDirectChargeRes.js"), exports);
|
|
29
31
|
__exportStar(require("./CreateOrderRes.js"), exports);
|
|
30
32
|
__exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
|
|
31
33
|
__exportStar(require("./Driver1.js"), exports);
|
|
32
34
|
__exportStar(require("./DriverStatusEnum.js"), exports);
|
|
33
35
|
__exportStar(require("./Expense1.js"), exports);
|
|
34
|
-
__exportStar(require("./FeatureInputGeometry.js"), exports);
|
|
35
|
-
__exportStar(require("./Feature.js"), exports);
|
|
36
|
-
__exportStar(require("./FeatureOutputGeometry.js"), exports);
|
|
37
36
|
__exportStar(require("./GeometryCollectionInputGeometriesItem.js"), exports);
|
|
38
37
|
__exportStar(require("./GeometryCollection.js"), exports);
|
|
39
38
|
__exportStar(require("./GeometryCollectionOutputGeometriesItem.js"), exports);
|
|
@@ -46,6 +45,10 @@ __exportStar(require("./Insurance1.js"), exports);
|
|
|
46
45
|
__exportStar(require("./LineItem1.js"), exports);
|
|
47
46
|
__exportStar(require("./LineItemEnum1.js"), exports);
|
|
48
47
|
__exportStar(require("./LineString.js"), exports);
|
|
48
|
+
__exportStar(require("./LocationFeatureInputGeometry.js"), exports);
|
|
49
|
+
__exportStar(require("./LocationFeature.js"), exports);
|
|
50
|
+
__exportStar(require("./LocationFeatureOutputGeometry.js"), exports);
|
|
51
|
+
__exportStar(require("./LocationProperties.js"), exports);
|
|
49
52
|
__exportStar(require("./Milestone1.js"), exports);
|
|
50
53
|
__exportStar(require("./MilestoneClientCreate1.js"), exports);
|
|
51
54
|
__exportStar(require("./MilestoneNotificationPreferences1.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.184";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
31
|
-
"User-Agent": "@chrt-inc/typescript-sdk/0.0.
|
|
30
|
+
"X-Fern-SDK-Version": "0.0.184",
|
|
31
|
+
"User-Agent": "@chrt-inc/typescript-sdk/0.0.184",
|
|
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) });
|
|
@@ -48,27 +48,27 @@ export class CourierPayDriverLineItemGroup {
|
|
|
48
48
|
}
|
|
49
49
|
__preview(request, requestOptions) {
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
var _a, _b, _c, _d;
|
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
52
52
|
const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
|
|
53
53
|
const _queryParams = {};
|
|
54
54
|
_queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
|
|
55
55
|
_queryParams["task_group_id"] = taskGroupId;
|
|
56
|
-
if (dangerousGoods
|
|
57
|
-
_queryParams["dangerous_goods"] = dangerousGoods.toString();
|
|
56
|
+
if (dangerousGoods !== undefined) {
|
|
57
|
+
_queryParams["dangerous_goods"] = (_a = dangerousGoods === null || dangerousGoods === void 0 ? void 0 : dangerousGoods.toString()) !== null && _a !== void 0 ? _a : null;
|
|
58
58
|
}
|
|
59
|
-
if (holiday
|
|
60
|
-
_queryParams["holiday"] = holiday.toString();
|
|
59
|
+
if (holiday !== undefined) {
|
|
60
|
+
_queryParams["holiday"] = (_b = holiday === null || holiday === void 0 ? void 0 : holiday.toString()) !== null && _b !== void 0 ? _b : null;
|
|
61
61
|
}
|
|
62
|
-
if (weekend
|
|
63
|
-
_queryParams["weekend"] = weekend.toString();
|
|
62
|
+
if (weekend !== undefined) {
|
|
63
|
+
_queryParams["weekend"] = (_c = weekend === null || weekend === void 0 ? void 0 : weekend.toString()) !== null && _c !== void 0 ? _c : null;
|
|
64
64
|
}
|
|
65
|
-
if (afterHours
|
|
66
|
-
_queryParams["after_hours"] = afterHours.toString();
|
|
65
|
+
if (afterHours !== undefined) {
|
|
66
|
+
_queryParams["after_hours"] = (_d = afterHours === null || afterHours === void 0 ? void 0 : afterHours.toString()) !== null && _d !== void 0 ? _d : null;
|
|
67
67
|
}
|
|
68
|
-
const _response = yield ((
|
|
69
|
-
url: core.url.join((
|
|
68
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
69
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_line_item_groups/preview"),
|
|
70
70
|
method: "GET",
|
|
71
|
-
headers: mergeHeaders((
|
|
71
|
+
headers: mergeHeaders((_h = this._options) === null || _h === void 0 ? void 0 : _h.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
72
72
|
queryParameters: _queryParams,
|
|
73
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
74
74
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -242,27 +242,27 @@ export class CourierPayDriverLineItemGroup {
|
|
|
242
242
|
}
|
|
243
243
|
__create(request, requestOptions) {
|
|
244
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
245
|
-
var _a, _b, _c, _d;
|
|
245
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
246
246
|
const { courier_pay_driver_rate_sheet_id: courierPayDriverRateSheetId, task_group_id: taskGroupId, dangerous_goods: dangerousGoods, holiday, weekend, after_hours: afterHours, } = request;
|
|
247
247
|
const _queryParams = {};
|
|
248
248
|
_queryParams["courier_pay_driver_rate_sheet_id"] = courierPayDriverRateSheetId;
|
|
249
249
|
_queryParams["task_group_id"] = taskGroupId;
|
|
250
|
-
if (dangerousGoods
|
|
251
|
-
_queryParams["dangerous_goods"] = dangerousGoods.toString();
|
|
250
|
+
if (dangerousGoods !== undefined) {
|
|
251
|
+
_queryParams["dangerous_goods"] = (_a = dangerousGoods === null || dangerousGoods === void 0 ? void 0 : dangerousGoods.toString()) !== null && _a !== void 0 ? _a : null;
|
|
252
252
|
}
|
|
253
|
-
if (holiday
|
|
254
|
-
_queryParams["holiday"] = holiday.toString();
|
|
253
|
+
if (holiday !== undefined) {
|
|
254
|
+
_queryParams["holiday"] = (_b = holiday === null || holiday === void 0 ? void 0 : holiday.toString()) !== null && _b !== void 0 ? _b : null;
|
|
255
255
|
}
|
|
256
|
-
if (weekend
|
|
257
|
-
_queryParams["weekend"] = weekend.toString();
|
|
256
|
+
if (weekend !== undefined) {
|
|
257
|
+
_queryParams["weekend"] = (_c = weekend === null || weekend === void 0 ? void 0 : weekend.toString()) !== null && _c !== void 0 ? _c : null;
|
|
258
258
|
}
|
|
259
|
-
if (afterHours
|
|
260
|
-
_queryParams["after_hours"] = afterHours.toString();
|
|
259
|
+
if (afterHours !== undefined) {
|
|
260
|
+
_queryParams["after_hours"] = (_d = afterHours === null || afterHours === void 0 ? void 0 : afterHours.toString()) !== null && _d !== void 0 ? _d : null;
|
|
261
261
|
}
|
|
262
|
-
const _response = yield ((
|
|
263
|
-
url: core.url.join((
|
|
262
|
+
const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
|
|
263
|
+
url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "oort/courier_pay_driver_line_item_groups/create"),
|
|
264
264
|
method: "POST",
|
|
265
|
-
headers: mergeHeaders((
|
|
265
|
+
headers: mergeHeaders((_h = this._options) === null || _h === void 0 ? void 0 : _h.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
266
266
|
queryParameters: _queryParams,
|
|
267
267
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
268
268
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
export interface CourierPayDriverLineItemGroupCreateRequest {
|
|
12
12
|
courier_pay_driver_rate_sheet_id: string;
|
|
13
13
|
task_group_id: string;
|
|
14
|
-
dangerous_goods?: boolean;
|
|
15
|
-
holiday?: boolean;
|
|
16
|
-
weekend?: boolean;
|
|
17
|
-
after_hours?: boolean;
|
|
14
|
+
dangerous_goods?: boolean | null;
|
|
15
|
+
holiday?: boolean | null;
|
|
16
|
+
weekend?: boolean | null;
|
|
17
|
+
after_hours?: boolean | null;
|
|
18
18
|
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
export interface CourierPayDriverLineItemGroupPreviewRequest {
|
|
12
12
|
courier_pay_driver_rate_sheet_id: string;
|
|
13
13
|
task_group_id: string;
|
|
14
|
-
dangerous_goods?: boolean;
|
|
15
|
-
holiday?: boolean;
|
|
16
|
-
weekend?: boolean;
|
|
17
|
-
after_hours?: boolean;
|
|
14
|
+
dangerous_goods?: boolean | null;
|
|
15
|
+
holiday?: boolean | null;
|
|
16
|
+
weekend?: boolean | null;
|
|
17
|
+
after_hours?: boolean | null;
|
|
18
18
|
}
|