@chrt-inc/typescript-sdk 1.638.0 → 1.639.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 (134) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.ts +1 -0
  3. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/Client.js +1 -0
  4. package/dist/cjs/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.ts +1 -0
  5. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.d.ts +1 -0
  6. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/Client.js +1 -0
  7. package/dist/cjs/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.ts +1 -0
  8. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -0
  9. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +1 -0
  10. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.ts +1 -0
  11. package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +2 -0
  12. package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +2 -0
  13. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +1 -0
  14. package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +1 -0
  15. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +2 -0
  16. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +2 -0
  17. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.ts +1 -0
  18. package/dist/cjs/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.ts +1 -0
  19. package/dist/cjs/api/resources/listing/resources/listings/client/Client.d.ts +6 -0
  20. package/dist/cjs/api/resources/listing/resources/listings/client/Client.js +6 -0
  21. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.ts +2 -0
  22. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.ts +2 -0
  23. package/dist/cjs/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.ts +2 -0
  24. package/dist/cjs/api/resources/operations/resources/cases/client/Client.d.ts +2 -0
  25. package/dist/cjs/api/resources/operations/resources/cases/client/Client.js +2 -0
  26. package/dist/cjs/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.ts +2 -0
  27. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +2 -1
  28. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +2 -1
  29. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +2 -1
  30. package/dist/cjs/api/resources/orgs/client/Client.d.ts +1 -0
  31. package/dist/cjs/api/resources/orgs/client/Client.js +1 -0
  32. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +1 -0
  33. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +1 -0
  34. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +1 -0
  35. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +1 -0
  36. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -0
  37. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +2 -0
  38. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +1 -0
  39. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +1 -0
  40. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +2 -0
  41. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +2 -0
  42. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +1 -0
  43. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +1 -0
  44. package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +28 -0
  45. package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +126 -0
  46. package/dist/cjs/api/resources/utils/resources/dev/client/requests/PingReq.d.ts +10 -0
  47. package/dist/cjs/api/resources/utils/resources/dev/client/requests/PingReq.js +5 -0
  48. package/dist/cjs/api/resources/utils/resources/dev/client/requests/ScheduledHelloPocReq.d.ts +15 -0
  49. package/dist/cjs/api/resources/utils/resources/dev/client/requests/ScheduledHelloPocReq.js +5 -0
  50. package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +2 -0
  51. package/dist/cjs/api/types/PingRes.d.ts +9 -0
  52. package/dist/cjs/api/types/PingRes.js +5 -0
  53. package/dist/cjs/api/types/ScheduleCalendarSpec.d.ts +14 -0
  54. package/dist/cjs/api/types/ScheduleCalendarSpec.js +5 -0
  55. package/dist/cjs/api/types/ScheduleIntervalSpec.d.ts +7 -0
  56. package/dist/cjs/api/types/ScheduleIntervalSpec.js +5 -0
  57. package/dist/cjs/api/types/ScheduleRange.d.ts +8 -0
  58. package/dist/cjs/api/types/ScheduleRange.js +5 -0
  59. package/dist/cjs/api/types/ScheduleSpec.d.ts +14 -0
  60. package/dist/cjs/api/types/ScheduleSpec.js +5 -0
  61. package/dist/cjs/api/types/ScheduledHelloPocRes.d.ts +16 -0
  62. package/dist/cjs/api/types/ScheduledHelloPocRes.js +5 -0
  63. package/dist/cjs/api/types/index.d.ts +6 -0
  64. package/dist/cjs/api/types/index.js +6 -0
  65. package/dist/cjs/version.d.ts +1 -1
  66. package/dist/cjs/version.js +1 -1
  67. package/dist/esm/Client.mjs +2 -2
  68. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.d.mts +1 -0
  69. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/Client.mjs +1 -0
  70. package/dist/esm/api/resources/billing/resources/billingLedgerPeriods/client/requests/BillingLedgerPeriodsListV1Request.d.mts +1 -0
  71. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.d.mts +1 -0
  72. package/dist/esm/api/resources/billing/resources/billingLedgers/client/Client.mjs +1 -0
  73. package/dist/esm/api/resources/billing/resources/billingLedgers/client/requests/BillingLedgersListV1Request.d.mts +1 -0
  74. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -0
  75. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +1 -0
  76. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListV1Request.d.mts +1 -0
  77. package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +2 -0
  78. package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +2 -0
  79. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +1 -0
  80. package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +1 -0
  81. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +2 -0
  82. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +2 -0
  83. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForBidderV1Request.d.mts +1 -0
  84. package/dist/esm/api/resources/listing/resources/bidThreads/client/requests/BidThreadsListForListingV1Request.d.mts +1 -0
  85. package/dist/esm/api/resources/listing/resources/listings/client/Client.d.mts +6 -0
  86. package/dist/esm/api/resources/listing/resources/listings/client/Client.mjs +6 -0
  87. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListByOrgV1Request.d.mts +2 -0
  88. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForDriverBidderV1Request.d.mts +2 -0
  89. package/dist/esm/api/resources/listing/resources/listings/client/requests/ListingsListForProviderBidderV1Request.d.mts +2 -0
  90. package/dist/esm/api/resources/operations/resources/cases/client/Client.d.mts +2 -0
  91. package/dist/esm/api/resources/operations/resources/cases/client/Client.mjs +2 -0
  92. package/dist/esm/api/resources/operations/resources/cases/client/requests/CasesListV1Request.d.mts +2 -0
  93. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +2 -1
  94. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +2 -1
  95. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +2 -1
  96. package/dist/esm/api/resources/orgs/client/Client.d.mts +1 -0
  97. package/dist/esm/api/resources/orgs/client/Client.mjs +1 -0
  98. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +1 -0
  99. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +1 -0
  100. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +1 -0
  101. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +1 -0
  102. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -0
  103. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +2 -0
  104. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +1 -0
  105. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +1 -0
  106. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +2 -0
  107. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +2 -0
  108. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +1 -0
  109. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +1 -0
  110. package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +28 -0
  111. package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +126 -0
  112. package/dist/esm/api/resources/utils/resources/dev/client/requests/PingReq.d.mts +10 -0
  113. package/dist/esm/api/resources/utils/resources/dev/client/requests/PingReq.mjs +4 -0
  114. package/dist/esm/api/resources/utils/resources/dev/client/requests/ScheduledHelloPocReq.d.mts +15 -0
  115. package/dist/esm/api/resources/utils/resources/dev/client/requests/ScheduledHelloPocReq.mjs +4 -0
  116. package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +2 -0
  117. package/dist/esm/api/types/PingRes.d.mts +9 -0
  118. package/dist/esm/api/types/PingRes.mjs +4 -0
  119. package/dist/esm/api/types/ScheduleCalendarSpec.d.mts +14 -0
  120. package/dist/esm/api/types/ScheduleCalendarSpec.mjs +4 -0
  121. package/dist/esm/api/types/ScheduleIntervalSpec.d.mts +7 -0
  122. package/dist/esm/api/types/ScheduleIntervalSpec.mjs +4 -0
  123. package/dist/esm/api/types/ScheduleRange.d.mts +8 -0
  124. package/dist/esm/api/types/ScheduleRange.mjs +4 -0
  125. package/dist/esm/api/types/ScheduleSpec.d.mts +14 -0
  126. package/dist/esm/api/types/ScheduleSpec.mjs +4 -0
  127. package/dist/esm/api/types/ScheduledHelloPocRes.d.mts +16 -0
  128. package/dist/esm/api/types/ScheduledHelloPocRes.mjs +4 -0
  129. package/dist/esm/api/types/index.d.mts +6 -0
  130. package/dist/esm/api/types/index.mjs +6 -0
  131. package/dist/esm/version.d.mts +1 -1
  132. package/dist/esm/version.mjs +1 -1
  133. package/package.json +1 -1
  134. package/reference.md +150 -0
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["open"],
13
+ * filter_type: ["dispatch"],
12
14
  * filter_task_group_id: "filter_task_group_id",
13
15
  * filter_order_id: "filter_order_id",
14
16
  * filter_created_by_org_id: "filter_created_by_org_id",
@@ -44,6 +44,8 @@ export declare class Cases {
44
44
  * sort_order: "asc",
45
45
  * page: 1,
46
46
  * page_size: 1,
47
+ * filter_status: ["open"],
48
+ * filter_department_id: ["filter_department_id"],
47
49
  * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
48
50
  * filter_needs_action: true,
49
51
  * filter_unassigned: true
@@ -33,6 +33,8 @@ export class Cases {
33
33
  * sort_order: "asc",
34
34
  * page: 1,
35
35
  * page_size: 1,
36
+ * filter_status: ["open"],
37
+ * filter_department_id: ["filter_department_id"],
36
38
  * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
37
39
  * filter_needs_action: true,
38
40
  * filter_unassigned: true
@@ -9,6 +9,8 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
11
  * page_size: 1,
12
+ * filter_status: ["open"],
13
+ * filter_department_id: ["filter_department_id"],
12
14
  * filter_assigned_operator_user_id: "filter_assigned_operator_user_id",
13
15
  * filter_needs_action: true,
14
16
  * filter_unassigned: true
@@ -43,7 +43,8 @@ export declare class Departments {
43
43
  * sort_by: "created_at",
44
44
  * sort_order: "asc",
45
45
  * page: 1,
46
- * page_size: 1
46
+ * page_size: 1,
47
+ * filter_department: ["automotive"]
47
48
  * })
48
49
  */
49
50
  listV1(request?: Chrt.operations.DepartmentsListV1Request, requestOptions?: Departments.RequestOptions): core.HttpResponsePromise<Chrt.DepartmentListRes>;
@@ -32,7 +32,8 @@ export class Departments {
32
32
  * sort_by: "created_at",
33
33
  * sort_order: "asc",
34
34
  * page: 1,
35
- * page_size: 1
35
+ * page_size: 1,
36
+ * filter_department: ["automotive"]
36
37
  * })
37
38
  */
38
39
  listV1(request = {}, requestOptions) {
@@ -8,7 +8,8 @@ import * as Chrt from "../../../../../../index.mjs";
8
8
  * sort_by: "created_at",
9
9
  * sort_order: "asc",
10
10
  * page: 1,
11
- * page_size: 1
11
+ * page_size: 1,
12
+ * filter_department: ["automotive"]
12
13
  * }
13
14
  */
14
15
  export interface DepartmentsListV1Request {
@@ -71,6 +71,7 @@ export declare class Orgs {
71
71
  *
72
72
  * @example
73
73
  * await client.orgs.listMembersV1({
74
+ * filter_role: ["owner"],
74
75
  * sort_by: "first_name",
75
76
  * sort_order: "asc",
76
77
  * page: 1,
@@ -115,6 +115,7 @@ export class Orgs {
115
115
  *
116
116
  * @example
117
117
  * await client.orgs.listMembersV1({
118
+ * filter_role: ["owner"],
118
119
  * sort_by: "first_name",
119
120
  * sort_order: "asc",
120
121
  * page: 1,
@@ -5,6 +5,7 @@ import * as Chrt from "../../../../index.mjs";
5
5
  /**
6
6
  * @example
7
7
  * {
8
+ * filter_role: ["owner"],
8
9
  * sort_by: "first_name",
9
10
  * sort_order: "asc",
10
11
  * page: 1,
@@ -64,6 +64,7 @@ export declare class Drivers {
64
64
  * @example
65
65
  * await client.shipping.drivers.listOrgMembersAndDriversV1({
66
66
  * search: "search",
67
+ * filter_role: ["owner"],
67
68
  * filter_available_according_to_driver: true,
68
69
  * filter_available_according_to_operators: true,
69
70
  * sort_by: "first_name",
@@ -151,6 +151,7 @@ export class Drivers {
151
151
  * @example
152
152
  * await client.shipping.drivers.listOrgMembersAndDriversV1({
153
153
  * search: "search",
154
+ * filter_role: ["owner"],
154
155
  * filter_available_according_to_driver: true,
155
156
  * filter_available_according_to_operators: true,
156
157
  * sort_by: "first_name",
@@ -6,6 +6,7 @@ import * as Chrt from "../../../../../../index.mjs";
6
6
  * @example
7
7
  * {
8
8
  * search: "search",
9
+ * filter_role: ["owner"],
9
10
  * filter_available_according_to_driver: true,
10
11
  * filter_available_according_to_operators: true,
11
12
  * sort_by: "first_name",
@@ -73,6 +73,7 @@ export declare class Expanded {
73
73
  * page: 1,
74
74
  * page_size: 1,
75
75
  * search: "search",
76
+ * filter_status: ["draft"],
76
77
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
77
78
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
78
79
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -109,6 +110,7 @@ export declare class Expanded {
109
110
  * page: 1,
110
111
  * page_size: 1,
111
112
  * search: "search",
113
+ * filter_status: ["draft"],
112
114
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
113
115
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
114
116
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -160,6 +160,7 @@ export class Expanded {
160
160
  * page: 1,
161
161
  * page_size: 1,
162
162
  * search: "search",
163
+ * filter_status: ["draft"],
163
164
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
164
165
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
165
166
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -318,6 +319,7 @@ export class Expanded {
318
319
  * page: 1,
319
320
  * page_size: 1,
320
321
  * search: "search",
322
+ * filter_status: ["draft"],
321
323
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
322
324
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
323
325
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
+ * filter_status: ["draft"],
13
14
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
14
15
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
15
16
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
+ * filter_status: ["draft"],
13
14
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
14
15
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
15
16
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -101,6 +101,7 @@ export declare class Expanded {
101
101
  * page: 1,
102
102
  * page_size: 1,
103
103
  * search: "search",
104
+ * filter_status: ["draft"],
104
105
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
105
106
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
106
107
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -138,6 +139,7 @@ export declare class Expanded {
138
139
  * page: 1,
139
140
  * page_size: 1,
140
141
  * search: "search",
142
+ * filter_status: ["draft"],
141
143
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
142
144
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
143
145
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -286,6 +286,7 @@ export class Expanded {
286
286
  * page: 1,
287
287
  * page_size: 1,
288
288
  * search: "search",
289
+ * filter_status: ["draft"],
289
290
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
290
291
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
291
292
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -448,6 +449,7 @@ export class Expanded {
448
449
  * page: 1,
449
450
  * page_size: 1,
450
451
  * search: "search",
452
+ * filter_status: ["draft"],
451
453
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
452
454
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
453
455
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
+ * filter_status: ["draft"],
13
14
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
14
15
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
15
16
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../../../index.mjs";
10
10
  * page: 1,
11
11
  * page_size: 1,
12
12
  * search: "search",
13
+ * filter_status: ["draft"],
13
14
  * filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
14
15
  * filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
15
16
  * filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
@@ -30,6 +30,21 @@ export declare namespace Dev {
30
30
  export declare class Dev {
31
31
  protected readonly _options: Dev.Options;
32
32
  constructor(_options?: Dev.Options);
33
+ /**
34
+ * Creates or updates a Temporal Schedule that runs the scheduled hello workflow for a driver. | authz: min_org_role=administrator | (ScheduledHelloPocReq) -> (ScheduledHelloPocRes)
35
+ *
36
+ * @param {Chrt.utils.ScheduledHelloPocReq} request
37
+ * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.utils.dev.postAgentScheduledHelloPocV1({
43
+ * driver_name: "driver_name"
44
+ * })
45
+ */
46
+ postAgentScheduledHelloPocV1(request: Chrt.utils.ScheduledHelloPocReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.ScheduledHelloPocRes>;
47
+ private __postAgentScheduledHelloPocV1;
33
48
  /**
34
49
  * Runs a customer service agent that responds with logistics fun facts (real order data not yet available). | (AgentReq) -> (AgentRes)
35
50
  *
@@ -43,6 +58,19 @@ export declare class Dev {
43
58
  */
44
59
  postAgentV1(request?: Chrt.utils.AgentReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.AgentRes>;
45
60
  private __postAgentV1;
61
+ /**
62
+ * Runs a lightweight Temporal workflow and activity round trip for developer diagnostics. | (PingReq) -> (PingRes)
63
+ *
64
+ * @param {Chrt.utils.PingReq} request
65
+ * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @throws {@link Chrt.UnprocessableEntityError}
68
+ *
69
+ * @example
70
+ * await client.utils.dev.postAgentPingV1()
71
+ */
72
+ postAgentPingV1(request?: Chrt.utils.PingReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.PingRes>;
73
+ private __postAgentPingV1;
46
74
  /**
47
75
  * Fetches expanded order data and returns an AI-generated natural-language summary. | (ReadOrderAgentReq) -> (ReadOrderAgentRes)
48
76
  *
@@ -19,6 +19,70 @@ export class Dev {
19
19
  constructor(_options = {}) {
20
20
  this._options = _options;
21
21
  }
22
+ /**
23
+ * Creates or updates a Temporal Schedule that runs the scheduled hello workflow for a driver. | authz: min_org_role=administrator | (ScheduledHelloPocReq) -> (ScheduledHelloPocRes)
24
+ *
25
+ * @param {Chrt.utils.ScheduledHelloPocReq} request
26
+ * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.utils.dev.postAgentScheduledHelloPocV1({
32
+ * driver_name: "driver_name"
33
+ * })
34
+ */
35
+ postAgentScheduledHelloPocV1(request, requestOptions) {
36
+ return core.HttpResponsePromise.fromPromise(this.__postAgentScheduledHelloPocV1(request, requestOptions));
37
+ }
38
+ __postAgentScheduledHelloPocV1(request, requestOptions) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ var _a, _b, _c, _d;
41
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
42
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
43
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/agent/scheduled-hello-poc/v1"),
44
+ method: "POST",
45
+ headers: _headers,
46
+ contentType: "application/json",
47
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
48
+ requestType: "json",
49
+ body: request,
50
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
51
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
52
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
53
+ });
54
+ if (_response.ok) {
55
+ return { data: _response.body, rawResponse: _response.rawResponse };
56
+ }
57
+ if (_response.error.reason === "status-code") {
58
+ switch (_response.error.statusCode) {
59
+ case 422:
60
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
61
+ default:
62
+ throw new errors.ChrtError({
63
+ statusCode: _response.error.statusCode,
64
+ body: _response.error.body,
65
+ rawResponse: _response.rawResponse,
66
+ });
67
+ }
68
+ }
69
+ switch (_response.error.reason) {
70
+ case "non-json":
71
+ throw new errors.ChrtError({
72
+ statusCode: _response.error.statusCode,
73
+ body: _response.error.rawBody,
74
+ rawResponse: _response.rawResponse,
75
+ });
76
+ case "timeout":
77
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/agent/scheduled-hello-poc/v1.");
78
+ case "unknown":
79
+ throw new errors.ChrtError({
80
+ message: _response.error.errorMessage,
81
+ rawResponse: _response.rawResponse,
82
+ });
83
+ }
84
+ });
85
+ }
22
86
  /**
23
87
  * Runs a customer service agent that responds with logistics fun facts (real order data not yet available). | (AgentReq) -> (AgentRes)
24
88
  *
@@ -81,6 +145,68 @@ export class Dev {
81
145
  }
82
146
  });
83
147
  }
148
+ /**
149
+ * Runs a lightweight Temporal workflow and activity round trip for developer diagnostics. | (PingReq) -> (PingRes)
150
+ *
151
+ * @param {Chrt.utils.PingReq} request
152
+ * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
153
+ *
154
+ * @throws {@link Chrt.UnprocessableEntityError}
155
+ *
156
+ * @example
157
+ * await client.utils.dev.postAgentPingV1()
158
+ */
159
+ postAgentPingV1(request = {}, requestOptions) {
160
+ return core.HttpResponsePromise.fromPromise(this.__postAgentPingV1(request, requestOptions));
161
+ }
162
+ __postAgentPingV1() {
163
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
164
+ var _a, _b, _c, _d;
165
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
166
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
167
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "dev/agent/ping/v1"),
168
+ method: "POST",
169
+ headers: _headers,
170
+ contentType: "application/json",
171
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
172
+ requestType: "json",
173
+ body: request,
174
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
175
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
176
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
177
+ });
178
+ if (_response.ok) {
179
+ return { data: _response.body, rawResponse: _response.rawResponse };
180
+ }
181
+ if (_response.error.reason === "status-code") {
182
+ switch (_response.error.statusCode) {
183
+ case 422:
184
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
185
+ default:
186
+ throw new errors.ChrtError({
187
+ statusCode: _response.error.statusCode,
188
+ body: _response.error.body,
189
+ rawResponse: _response.rawResponse,
190
+ });
191
+ }
192
+ }
193
+ switch (_response.error.reason) {
194
+ case "non-json":
195
+ throw new errors.ChrtError({
196
+ statusCode: _response.error.statusCode,
197
+ body: _response.error.rawBody,
198
+ rawResponse: _response.rawResponse,
199
+ });
200
+ case "timeout":
201
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/agent/ping/v1.");
202
+ case "unknown":
203
+ throw new errors.ChrtError({
204
+ message: _response.error.errorMessage,
205
+ rawResponse: _response.rawResponse,
206
+ });
207
+ }
208
+ });
209
+ }
84
210
  /**
85
211
  * Fetches expanded order data and returns an AI-generated natural-language summary. | (ReadOrderAgentReq) -> (ReadOrderAgentRes)
86
212
  *
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface PingReq {
9
+ nonce?: string | null;
10
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../../../../../../index.mjs";
5
+ /**
6
+ * @example
7
+ * {
8
+ * driver_name: "driver_name"
9
+ * }
10
+ */
11
+ export interface ScheduledHelloPocReq {
12
+ driver_name: string;
13
+ schedule_spec?: Chrt.ScheduleSpec;
14
+ catchup_window_seconds?: number;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -1,3 +1,5 @@
1
+ export { type ScheduledHelloPocReq } from "./ScheduledHelloPocReq.mjs";
1
2
  export { type AgentReq } from "./AgentReq.mjs";
3
+ export { type PingReq } from "./PingReq.mjs";
2
4
  export { type ReadOrderAgentReq } from "./ReadOrderAgentReq.mjs";
3
5
  export { type TemplateReq } from "./TemplateReq.mjs";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PingRes {
5
+ response: string;
6
+ nonce: string;
7
+ workflow_timestamp: string;
8
+ activity_timestamp: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ScheduleCalendarSpec {
6
+ second?: Chrt.ScheduleRange[];
7
+ minute?: Chrt.ScheduleRange[];
8
+ hour?: Chrt.ScheduleRange[];
9
+ day_of_month?: Chrt.ScheduleRange[];
10
+ month?: Chrt.ScheduleRange[];
11
+ year?: Chrt.ScheduleRange[];
12
+ day_of_week?: Chrt.ScheduleRange[];
13
+ comment?: string | null;
14
+ }
@@ -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 ScheduleIntervalSpec {
5
+ every: string;
6
+ offset?: string | null;
7
+ }
@@ -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
+ export interface ScheduleRange {
5
+ start: number;
6
+ end?: number;
7
+ step?: 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,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface ScheduleSpec {
6
+ calendars?: Chrt.ScheduleCalendarSpec[];
7
+ intervals?: Chrt.ScheduleIntervalSpec[];
8
+ cron_expressions?: string[];
9
+ skip?: Chrt.ScheduleCalendarSpec[];
10
+ start_at?: string | null;
11
+ end_at?: string | null;
12
+ jitter?: string | null;
13
+ time_zone_name?: string | null;
14
+ }
@@ -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
+ import * as Chrt from "../index.mjs";
5
+ export interface ScheduledHelloPocRes {
6
+ schedule_id: string;
7
+ order_id: string;
8
+ driver_name: string;
9
+ workflow_name: string;
10
+ workflow_id: string;
11
+ task_queue: string;
12
+ schedule_spec: Chrt.ScheduleSpec;
13
+ catchup_window_seconds: number;
14
+ created: boolean;
15
+ next_action_times: string[];
16
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -210,6 +210,7 @@ export * from "./OrgPublicData1.mjs";
210
210
  export * from "./OrgRoleEnum.mjs";
211
211
  export * from "./OrgTypeEnum.mjs";
212
212
  export * from "./OutlierLabellerEnum.mjs";
213
+ export * from "./PingRes.mjs";
213
214
  export * from "./PlatformEnum.mjs";
214
215
  export * from "./Point.mjs";
215
216
  export * from "./Polygon.mjs";
@@ -225,6 +226,11 @@ export * from "./ProviderProviderConnection1.mjs";
225
226
  export * from "./RateSheetMapping1.mjs";
226
227
  export * from "./RateSheetMappingListRes.mjs";
227
228
  export * from "./ReadOrderAgentRes.mjs";
229
+ export * from "./ScheduleCalendarSpec.mjs";
230
+ export * from "./ScheduleIntervalSpec.mjs";
231
+ export * from "./ScheduleRange.mjs";
232
+ export * from "./ScheduleSpec.mjs";
233
+ export * from "./ScheduledHelloPocRes.mjs";
228
234
  export * from "./Session1.mjs";
229
235
  export * from "./SessionByDeviceDataPoint1.mjs";
230
236
  export * from "./SessionByDeviceDataPointMetadata1.mjs";
@@ -210,6 +210,7 @@ export * from "./OrgPublicData1.mjs";
210
210
  export * from "./OrgRoleEnum.mjs";
211
211
  export * from "./OrgTypeEnum.mjs";
212
212
  export * from "./OutlierLabellerEnum.mjs";
213
+ export * from "./PingRes.mjs";
213
214
  export * from "./PlatformEnum.mjs";
214
215
  export * from "./Point.mjs";
215
216
  export * from "./Polygon.mjs";
@@ -225,6 +226,11 @@ export * from "./ProviderProviderConnection1.mjs";
225
226
  export * from "./RateSheetMapping1.mjs";
226
227
  export * from "./RateSheetMappingListRes.mjs";
227
228
  export * from "./ReadOrderAgentRes.mjs";
229
+ export * from "./ScheduleCalendarSpec.mjs";
230
+ export * from "./ScheduleIntervalSpec.mjs";
231
+ export * from "./ScheduleRange.mjs";
232
+ export * from "./ScheduleSpec.mjs";
233
+ export * from "./ScheduledHelloPocRes.mjs";
228
234
  export * from "./Session1.mjs";
229
235
  export * from "./SessionByDeviceDataPoint1.mjs";
230
236
  export * from "./SessionByDeviceDataPointMetadata1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.638.0";
1
+ export declare const SDK_VERSION = "1.639.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.638.0";
1
+ export const SDK_VERSION = "1.639.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.638.0",
3
+ "version": "1.639.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",