@augno/sdk 0.16.1 → 0.18.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.
- package/CHANGELOG.md +7 -2
- package/README.md +1 -1
- package/client.js +1 -1
- package/client.mjs +1 -1
- package/package.json +1 -1
- package/resources/catalog/item-categories/actions.d.mts +8 -2
- package/resources/catalog/item-categories/actions.d.mts.map +1 -1
- package/resources/catalog/item-categories/actions.d.ts +8 -2
- package/resources/catalog/item-categories/actions.d.ts.map +1 -1
- package/resources/catalog/item-categories/actions.js +7 -2
- package/resources/catalog/item-categories/actions.js.map +1 -1
- package/resources/catalog/item-categories/actions.mjs +7 -2
- package/resources/catalog/item-categories/actions.mjs.map +1 -1
- package/resources/catalog/materials/actions.d.mts +7 -2
- package/resources/catalog/materials/actions.d.mts.map +1 -1
- package/resources/catalog/materials/actions.d.ts +7 -2
- package/resources/catalog/materials/actions.d.ts.map +1 -1
- package/resources/catalog/materials/actions.js +7 -2
- package/resources/catalog/materials/actions.js.map +1 -1
- package/resources/catalog/materials/actions.mjs +7 -2
- package/resources/catalog/materials/actions.mjs.map +1 -1
- package/resources/catalog/parts/actions.d.mts +7 -2
- package/resources/catalog/parts/actions.d.mts.map +1 -1
- package/resources/catalog/parts/actions.d.ts +7 -2
- package/resources/catalog/parts/actions.d.ts.map +1 -1
- package/resources/catalog/parts/actions.js +7 -2
- package/resources/catalog/parts/actions.js.map +1 -1
- package/resources/catalog/parts/actions.mjs +7 -2
- package/resources/catalog/parts/actions.mjs.map +1 -1
- package/resources/catalog/product-lines/actions.d.mts +8 -2
- package/resources/catalog/product-lines/actions.d.mts.map +1 -1
- package/resources/catalog/product-lines/actions.d.ts +8 -2
- package/resources/catalog/product-lines/actions.d.ts.map +1 -1
- package/resources/catalog/product-lines/actions.js +7 -2
- package/resources/catalog/product-lines/actions.js.map +1 -1
- package/resources/catalog/product-lines/actions.mjs +7 -2
- package/resources/catalog/product-lines/actions.mjs.map +1 -1
- package/resources/catalog/products/actions.d.mts +7 -2
- package/resources/catalog/products/actions.d.mts.map +1 -1
- package/resources/catalog/products/actions.d.ts +7 -2
- package/resources/catalog/products/actions.d.ts.map +1 -1
- package/resources/catalog/products/actions.js +7 -2
- package/resources/catalog/products/actions.js.map +1 -1
- package/resources/catalog/products/actions.mjs +7 -2
- package/resources/catalog/products/actions.mjs.map +1 -1
- package/resources/catalog/properties/actions.d.mts +8 -3
- package/resources/catalog/properties/actions.d.mts.map +1 -1
- package/resources/catalog/properties/actions.d.ts +8 -3
- package/resources/catalog/properties/actions.d.ts.map +1 -1
- package/resources/catalog/properties/actions.js +7 -2
- package/resources/catalog/properties/actions.js.map +1 -1
- package/resources/catalog/properties/actions.mjs +7 -2
- package/resources/catalog/properties/actions.mjs.map +1 -1
- package/resources/catalog/unit-groups/actions.d.mts +7 -2
- package/resources/catalog/unit-groups/actions.d.mts.map +1 -1
- package/resources/catalog/unit-groups/actions.d.ts +7 -2
- package/resources/catalog/unit-groups/actions.d.ts.map +1 -1
- package/resources/catalog/unit-groups/actions.js +7 -2
- package/resources/catalog/unit-groups/actions.js.map +1 -1
- package/resources/catalog/unit-groups/actions.mjs +7 -2
- package/resources/catalog/unit-groups/actions.mjs.map +1 -1
- package/resources/catalog/units/actions.d.mts +8 -2
- package/resources/catalog/units/actions.d.mts.map +1 -1
- package/resources/catalog/units/actions.d.ts +8 -2
- package/resources/catalog/units/actions.d.ts.map +1 -1
- package/resources/catalog/units/actions.js +7 -2
- package/resources/catalog/units/actions.js.map +1 -1
- package/resources/catalog/units/actions.mjs +7 -2
- package/resources/catalog/units/actions.mjs.map +1 -1
- package/resources/core/analytics.d.mts +195 -1
- package/resources/core/analytics.d.mts.map +1 -1
- package/resources/core/analytics.d.ts +195 -1
- package/resources/core/analytics.d.ts.map +1 -1
- package/resources/core/analytics.js +11 -0
- package/resources/core/analytics.js.map +1 -1
- package/resources/core/analytics.mjs +11 -0
- package/resources/core/analytics.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +4 -4
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +4 -4
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +6 -6
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +6 -6
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +1 -1
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/index.d.mts +2 -2
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +2 -2
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/jobs.d.mts +102 -60
- package/resources/core/jobs.d.mts.map +1 -1
- package/resources/core/jobs.d.ts +102 -60
- package/resources/core/jobs.d.ts.map +1 -1
- package/resources/core/jobs.js +12 -6
- package/resources/core/jobs.js.map +1 -1
- package/resources/core/jobs.mjs +12 -6
- package/resources/core/jobs.mjs.map +1 -1
- package/resources/finance/payment-terms.d.mts +5 -5
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +5 -5
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs.map +1 -1
- package/resources/identity/account-users/account-users.d.mts +39 -0
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +39 -0
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs.map +1 -1
- package/resources/messaging/blocks.d.mts +8 -0
- package/resources/messaging/blocks.d.mts.map +1 -1
- package/resources/messaging/blocks.d.ts +8 -0
- package/resources/messaging/blocks.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.d.mts +3 -3
- package/resources/messaging/conversations/conversations.d.mts.map +1 -1
- package/resources/messaging/conversations/conversations.d.ts +3 -3
- package/resources/messaging/conversations/conversations.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.js.map +1 -1
- package/resources/messaging/conversations/conversations.mjs.map +1 -1
- package/resources/messaging/conversations/links.d.mts +2 -2
- package/resources/messaging/conversations/links.d.mts.map +1 -1
- package/resources/messaging/conversations/links.d.ts +2 -2
- package/resources/messaging/conversations/links.d.ts.map +1 -1
- package/resources/messaging/conversations/messages.d.mts +2 -2
- package/resources/messaging/conversations/messages.d.mts.map +1 -1
- package/resources/messaging/conversations/messages.d.ts +2 -2
- package/resources/messaging/conversations/messages.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.d.mts +2 -2
- package/resources/messaging/notifications/notifications.d.mts.map +1 -1
- package/resources/messaging/notifications/notifications.d.ts +2 -2
- package/resources/messaging/notifications/notifications.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.js.map +1 -1
- package/resources/messaging/notifications/notifications.mjs.map +1 -1
- package/resources/operations/carriers/carriers.d.mts +5 -5
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +5 -5
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +5 -5
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +5 -5
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/locations/actions.d.mts +7 -2
- package/resources/operations/locations/actions.d.mts.map +1 -1
- package/resources/operations/locations/actions.d.ts +7 -2
- package/resources/operations/locations/actions.d.ts.map +1 -1
- package/resources/operations/locations/actions.js +7 -2
- package/resources/operations/locations/actions.js.map +1 -1
- package/resources/operations/locations/actions.mjs +7 -2
- package/resources/operations/locations/actions.mjs.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.mts +5 -3
- package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.ts +5 -3
- package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.js +5 -3
- package/resources/operations/production-schedules/production-schedules.js.map +1 -1
- package/resources/operations/production-schedules/production-schedules.mjs +5 -3
- package/resources/operations/production-schedules/production-schedules.mjs.map +1 -1
- package/resources/operations/shipments/actions.d.mts +3 -3
- package/resources/operations/shipments/actions.d.mts.map +1 -1
- package/resources/operations/shipments/actions.d.ts +3 -3
- package/resources/operations/shipments/actions.d.ts.map +1 -1
- package/resources/operations/shipping-terms.d.mts +5 -5
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +5 -5
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/sales/account-prices/account-prices.d.mts +999 -0
- package/resources/sales/account-prices/account-prices.d.mts.map +1 -0
- package/resources/sales/account-prices/account-prices.d.ts +999 -0
- package/resources/sales/account-prices/account-prices.d.ts.map +1 -0
- package/resources/sales/account-prices/account-prices.js +143 -0
- package/resources/sales/account-prices/account-prices.js.map +1 -0
- package/resources/sales/account-prices/account-prices.mjs +138 -0
- package/resources/sales/account-prices/account-prices.mjs.map +1 -0
- package/resources/sales/account-prices/actions.d.mts +58 -0
- package/resources/sales/account-prices/actions.d.mts.map +1 -0
- package/resources/sales/account-prices/actions.d.ts +58 -0
- package/resources/sales/account-prices/actions.d.ts.map +1 -0
- package/resources/sales/account-prices/actions.js +44 -0
- package/resources/sales/account-prices/actions.js.map +1 -0
- package/resources/sales/account-prices/actions.mjs +40 -0
- package/resources/sales/account-prices/actions.mjs.map +1 -0
- package/resources/sales/account-prices/index.d.mts +3 -0
- package/resources/sales/account-prices/index.d.mts.map +1 -0
- package/resources/sales/account-prices/index.d.ts +3 -0
- package/resources/sales/account-prices/index.d.ts.map +1 -0
- package/resources/sales/account-prices/index.js +9 -0
- package/resources/sales/account-prices/index.js.map +1 -0
- package/resources/sales/account-prices/index.mjs +4 -0
- package/resources/sales/account-prices/index.mjs.map +1 -0
- package/resources/sales/account-prices.d.mts +2 -0
- package/resources/sales/account-prices.d.mts.map +1 -0
- package/resources/sales/account-prices.d.ts +2 -0
- package/resources/sales/account-prices.d.ts.map +1 -0
- package/resources/sales/account-prices.js +6 -0
- package/resources/sales/account-prices.js.map +1 -0
- package/resources/sales/account-prices.mjs +3 -0
- package/resources/sales/account-prices.mjs.map +1 -0
- package/resources/sales/customers/actions.d.mts +2 -2
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +2 -2
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +6 -564
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +6 -564
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/index.d.mts +6 -3
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +6 -3
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js +15 -9
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs +3 -0
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/order-discounts/actions.d.mts +85 -0
- package/resources/sales/order-discounts/actions.d.mts.map +1 -0
- package/resources/sales/order-discounts/actions.d.ts +85 -0
- package/resources/sales/order-discounts/actions.d.ts.map +1 -0
- package/resources/sales/order-discounts/actions.js +35 -0
- package/resources/sales/order-discounts/actions.js.map +1 -0
- package/resources/sales/order-discounts/actions.mjs +31 -0
- package/resources/sales/order-discounts/actions.mjs.map +1 -0
- package/resources/sales/order-discounts/index.d.mts +3 -0
- package/resources/sales/order-discounts/index.d.mts.map +1 -0
- package/resources/sales/order-discounts/index.d.ts +3 -0
- package/resources/sales/order-discounts/index.d.ts.map +1 -0
- package/resources/sales/order-discounts/index.js +9 -0
- package/resources/sales/order-discounts/index.js.map +1 -0
- package/resources/sales/order-discounts/index.mjs +4 -0
- package/resources/sales/order-discounts/index.mjs.map +1 -0
- package/resources/sales/order-discounts/order-discounts.d.mts +365 -0
- package/resources/sales/order-discounts/order-discounts.d.mts.map +1 -0
- package/resources/sales/order-discounts/order-discounts.d.ts +365 -0
- package/resources/sales/order-discounts/order-discounts.d.ts.map +1 -0
- package/resources/sales/order-discounts/order-discounts.js +125 -0
- package/resources/sales/order-discounts/order-discounts.js.map +1 -0
- package/resources/sales/order-discounts/order-discounts.mjs +120 -0
- package/resources/sales/order-discounts/order-discounts.mjs.map +1 -0
- package/resources/sales/order-discounts.d.mts +2 -0
- package/resources/sales/order-discounts.d.mts.map +1 -0
- package/resources/sales/order-discounts.d.ts +2 -0
- package/resources/sales/order-discounts.d.ts.map +1 -0
- package/resources/sales/order-discounts.js +6 -0
- package/resources/sales/order-discounts.js.map +1 -0
- package/resources/sales/order-discounts.mjs +3 -0
- package/resources/sales/order-discounts.mjs.map +1 -0
- package/resources/sales/priorities.d.mts +4 -44
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +4 -44
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.mjs.map +1 -1
- package/resources/sales/sales-orders/index.d.mts +1 -1
- package/resources/sales/sales-orders/index.d.mts.map +1 -1
- package/resources/sales/sales-orders/index.d.ts +1 -1
- package/resources/sales/sales-orders/index.d.ts.map +1 -1
- package/resources/sales/sales-orders/index.js.map +1 -1
- package/resources/sales/sales-orders/index.mjs.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.mts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.mts.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.ts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.mts +10 -69
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +10 -69
- package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +18 -6
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +18 -6
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js +12 -0
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs +12 -0
- package/resources/sales/sales.mjs.map +1 -1
- package/resources/sales/volume-discounts.d.mts +684 -0
- package/resources/sales/volume-discounts.d.mts.map +1 -0
- package/resources/sales/volume-discounts.d.ts +684 -0
- package/resources/sales/volume-discounts.d.ts.map +1 -0
- package/resources/sales/volume-discounts.js +152 -0
- package/resources/sales/volume-discounts.js.map +1 -0
- package/resources/sales/volume-discounts.mjs +148 -0
- package/resources/sales/volume-discounts.mjs.map +1 -0
- package/src/client.ts +1 -1
- package/src/resources/catalog/item-categories/actions.ts +15 -3
- package/src/resources/catalog/materials/actions.ts +14 -3
- package/src/resources/catalog/parts/actions.ts +14 -3
- package/src/resources/catalog/product-lines/actions.ts +15 -3
- package/src/resources/catalog/products/actions.ts +14 -3
- package/src/resources/catalog/properties/actions.ts +15 -4
- package/src/resources/catalog/unit-groups/actions.ts +14 -3
- package/src/resources/catalog/units/actions.ts +15 -3
- package/src/resources/core/analytics.ts +231 -0
- package/src/resources/core/audit-events.ts +16 -0
- package/src/resources/core/core.ts +30 -2
- package/src/resources/core/index.ts +7 -1
- package/src/resources/core/jobs.ts +422 -67
- package/src/resources/finance/payment-terms.ts +8 -5
- package/src/resources/identity/account-users/account-users.ts +44 -0
- package/src/resources/messaging/blocks.ts +9 -0
- package/src/resources/messaging/conversations/conversations.ts +12 -0
- package/src/resources/messaging/conversations/links.ts +8 -0
- package/src/resources/messaging/conversations/messages.ts +8 -0
- package/src/resources/messaging/notifications/notifications.ts +8 -0
- package/src/resources/operations/carriers/carriers.ts +5 -5
- package/src/resources/operations/carriers/service-levels.ts +5 -5
- package/src/resources/operations/locations/actions.ts +14 -3
- package/src/resources/operations/production-schedules/production-schedules.ts +5 -3
- package/src/resources/operations/shipments/actions.ts +3 -3
- package/src/resources/operations/shipping-terms.ts +8 -5
- package/src/resources/sales/account-prices/account-prices.ts +1191 -0
- package/src/resources/sales/account-prices/actions.ts +74 -0
- package/src/resources/sales/account-prices/index.ts +27 -0
- package/src/resources/sales/account-prices.ts +3 -0
- package/src/resources/sales/customers/actions.ts +6 -2
- package/src/resources/sales/customers/customers.ts +5 -658
- package/src/resources/sales/customers/index.ts +0 -11
- package/src/resources/sales/index.ts +50 -13
- package/src/resources/sales/order-discounts/actions.ts +102 -0
- package/src/resources/sales/order-discounts/index.ts +13 -0
- package/src/resources/sales/order-discounts/order-discounts.ts +442 -0
- package/src/resources/sales/order-discounts.ts +3 -0
- package/src/resources/sales/priorities.ts +3 -51
- package/src/resources/sales/sales-orders/index.ts +0 -1
- package/src/resources/sales/sales-orders/lines/lines.ts +2 -2
- package/src/resources/sales/sales-orders/sales-orders.ts +9 -79
- package/src/resources/sales/sales.ts +113 -26
- package/src/resources/sales/volume-discounts.ts +813 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as CoreAPI from './core';
|
|
5
|
+
import * as RequestLogsAPI from './request-logs';
|
|
6
|
+
import * as APIKeysAPI from '../auth/api-keys/api-keys';
|
|
4
7
|
import { APIPromise } from '../../core/api-promise';
|
|
5
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
9
|
import { path } from '../../internal/utils/path';
|
|
@@ -14,15 +17,22 @@ export class Jobs extends APIResource {
|
|
|
14
17
|
* `Location` to observe its outcome. A completed export carries the link to its
|
|
15
18
|
* file on `export.url`.
|
|
16
19
|
*
|
|
20
|
+
* This endpoint requires the permissions: `jobs:read`, `customers:read`,
|
|
21
|
+
* `suppliers:read`.
|
|
22
|
+
*
|
|
17
23
|
* @example
|
|
18
24
|
* ```ts
|
|
19
25
|
* const job = await client.core.jobs.retrieve(
|
|
20
|
-
* '
|
|
26
|
+
* 'jb_grz7cdpnz8jr',
|
|
21
27
|
* );
|
|
22
28
|
* ```
|
|
23
29
|
*/
|
|
24
|
-
retrieve(
|
|
25
|
-
|
|
30
|
+
retrieve(
|
|
31
|
+
id: string,
|
|
32
|
+
query: JobRetrieveParams | null | undefined = {},
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): APIPromise<Job> {
|
|
35
|
+
return this._client.get(path`/v1/core/jobs/${id}`, { query, ...options });
|
|
26
36
|
}
|
|
27
37
|
|
|
28
38
|
/**
|
|
@@ -30,15 +40,22 @@ export class Jobs extends APIResource {
|
|
|
30
40
|
* not interrupted but can no longer settle, and a finished job cannot be
|
|
31
41
|
* cancelled.
|
|
32
42
|
*
|
|
43
|
+
* This endpoint requires the permission: `jobs:delete`.
|
|
44
|
+
*
|
|
33
45
|
* @example
|
|
34
46
|
* ```ts
|
|
35
47
|
* const job = await client.core.jobs.cancel(
|
|
36
|
-
* '
|
|
48
|
+
* 'jb_grz7cdpnz8jr',
|
|
37
49
|
* );
|
|
38
50
|
* ```
|
|
39
51
|
*/
|
|
40
|
-
cancel(
|
|
41
|
-
|
|
52
|
+
cancel(
|
|
53
|
+
id: string,
|
|
54
|
+
params: JobCancelParams | null | undefined = {},
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): APIPromise<Job> {
|
|
57
|
+
const { include } = params ?? {};
|
|
58
|
+
return this._client.post(path`/v1/core/jobs/${id}/cancel`, { query: { include }, ...options });
|
|
42
59
|
}
|
|
43
60
|
}
|
|
44
61
|
|
|
@@ -69,35 +86,17 @@ export interface Job {
|
|
|
69
86
|
created_at: string;
|
|
70
87
|
|
|
71
88
|
/**
|
|
72
|
-
*
|
|
73
|
-
|
|
74
|
-
created_by_email: string | null;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The ID of the account user who requested the work.
|
|
78
|
-
*/
|
|
79
|
-
created_by_id: string | null;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Name of the account user who requested the work.
|
|
89
|
+
* Reference to an actor — the user, API key, agent, or group identity associated
|
|
90
|
+
* with an action.
|
|
83
91
|
*/
|
|
84
|
-
|
|
92
|
+
created_by: RequestLogsAPI.Actor | null;
|
|
85
93
|
|
|
86
94
|
/**
|
|
87
|
-
*
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* A one-line reason the last attempt failed.
|
|
93
|
-
*/
|
|
94
|
-
error_summary: string | null;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* One entry per failure, so a `completed` job can still carry failed rows. A
|
|
98
|
-
* whole-job failure records a single entry with no `index`.
|
|
95
|
+
* ResponseError is the JSON-serializable error body returned to API clients. It
|
|
96
|
+
* contains only public information. This struct is used by the OpenAPI schema
|
|
97
|
+
* generator to produce documentation.
|
|
99
98
|
*/
|
|
100
|
-
|
|
99
|
+
error: ResponseError | null;
|
|
101
100
|
|
|
102
101
|
/**
|
|
103
102
|
* Points a completed export job at the file it produced.
|
|
@@ -116,11 +115,318 @@ export interface Job {
|
|
|
116
115
|
object: 'job';
|
|
117
116
|
|
|
118
117
|
/**
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
* The kind of resource the job operates on, as an object-type value (e.g.
|
|
119
|
+
* `product`).
|
|
120
|
+
*
|
|
121
|
+
* `type` names the verb — what the job does — and this names the subject, so a job
|
|
122
|
+
* that produced no results still says what it was for.
|
|
123
|
+
*/
|
|
124
|
+
resource_type:
|
|
125
|
+
| 'account'
|
|
126
|
+
| 'actor'
|
|
127
|
+
| 'entity'
|
|
128
|
+
| 'record'
|
|
129
|
+
| 'freight'
|
|
130
|
+
| 'sales_order_totals'
|
|
131
|
+
| 'sales_order_stage_total'
|
|
132
|
+
| 'sales_order_related'
|
|
133
|
+
| 'order_contact'
|
|
134
|
+
| 'user'
|
|
135
|
+
| 'address'
|
|
136
|
+
| 'api_key'
|
|
137
|
+
| 'created_api_key'
|
|
138
|
+
| 'refresh_token'
|
|
139
|
+
| 'list'
|
|
140
|
+
| 'sandbox'
|
|
141
|
+
| 'registration_session'
|
|
142
|
+
| 'pricing_plan'
|
|
143
|
+
| 'account_plan'
|
|
144
|
+
| 'plan_change'
|
|
145
|
+
| 'enterprise_inquiry'
|
|
146
|
+
| 'request_log'
|
|
147
|
+
| 'audit_event'
|
|
148
|
+
| 'audit_field_change'
|
|
149
|
+
| 'role'
|
|
150
|
+
| 'unit'
|
|
151
|
+
| 'account_affiliation'
|
|
152
|
+
| 'agent_definition'
|
|
153
|
+
| 'available_tool'
|
|
154
|
+
| 'agent_definition_tool'
|
|
155
|
+
| 'agent_account_status'
|
|
156
|
+
| 'agent_run'
|
|
157
|
+
| 'agent_action'
|
|
158
|
+
| 'agent_run_step'
|
|
159
|
+
| 'agent_token_usage'
|
|
160
|
+
| 'agent_memory'
|
|
161
|
+
| 'notification'
|
|
162
|
+
| 'notification_unread_count'
|
|
163
|
+
| 'notification_send_result'
|
|
164
|
+
| 'notification_unread_summary'
|
|
165
|
+
| 'announcement'
|
|
166
|
+
| 'conversation'
|
|
167
|
+
| 'support_case'
|
|
168
|
+
| 'conversation_participant'
|
|
169
|
+
| 'read_cursor'
|
|
170
|
+
| 'chat_message'
|
|
171
|
+
| 'notification_unread_summary_account'
|
|
172
|
+
| 'messaging_block'
|
|
173
|
+
| 'notification_preference'
|
|
174
|
+
| 'message_attachment'
|
|
175
|
+
| 'attachment_upload_target'
|
|
176
|
+
| 'scheduled_message'
|
|
177
|
+
| 'messaging_contact'
|
|
178
|
+
| 'message_report'
|
|
179
|
+
| 'tool_group'
|
|
180
|
+
| 'model'
|
|
181
|
+
| 'payment_term'
|
|
182
|
+
| 'shipping_term'
|
|
183
|
+
| 'quantity'
|
|
184
|
+
| 'account_group'
|
|
185
|
+
| 'support_route'
|
|
186
|
+
| 'support_availability'
|
|
187
|
+
| 'account_status'
|
|
188
|
+
| 'geolocation'
|
|
189
|
+
| 'account_user'
|
|
190
|
+
| 'department'
|
|
191
|
+
| 'account_integration'
|
|
192
|
+
| 'account_price'
|
|
193
|
+
| 'product_line'
|
|
194
|
+
| 'item_category'
|
|
195
|
+
| 'attribute'
|
|
196
|
+
| 'rate'
|
|
197
|
+
| 'account_group_product_line_access'
|
|
198
|
+
| 'sales_target'
|
|
199
|
+
| 'adjustment_type'
|
|
200
|
+
| 'account_branding'
|
|
201
|
+
| 'account_portal'
|
|
202
|
+
| 'account_logo_url'
|
|
203
|
+
| 'account_favicon_url'
|
|
204
|
+
| 'public_account'
|
|
205
|
+
| 'property'
|
|
206
|
+
| 'carrier'
|
|
207
|
+
| 'service_level'
|
|
208
|
+
| 'item'
|
|
209
|
+
| 'item_lot_default'
|
|
210
|
+
| 'item_inventory'
|
|
211
|
+
| 'product'
|
|
212
|
+
| 'batch'
|
|
213
|
+
| 'batch_flow_node'
|
|
214
|
+
| 'scanning_consumption'
|
|
215
|
+
| 'open_batch_summary'
|
|
216
|
+
| 'scanning_production_step_info'
|
|
217
|
+
| 'scanning_station'
|
|
218
|
+
| 'production_step'
|
|
219
|
+
| 'production_run'
|
|
220
|
+
| 'machine'
|
|
221
|
+
| 'machine_status'
|
|
222
|
+
| 'machine_downtime_event'
|
|
223
|
+
| 'demand_override'
|
|
224
|
+
| 'demand_override_type'
|
|
225
|
+
| 'machine_downtime_reason'
|
|
226
|
+
| 'production_schedule_preview'
|
|
227
|
+
| 'production_schedule_regenerate_preview'
|
|
228
|
+
| 'production_schedule'
|
|
229
|
+
| 'production_schedule_line'
|
|
230
|
+
| 'production_schedule_deviation'
|
|
231
|
+
| 'production_schedule_derived_line'
|
|
232
|
+
| 'production_schedule_settings'
|
|
233
|
+
| 'production_schedule_resource_setting'
|
|
234
|
+
| 'production_schedule_item_setting'
|
|
235
|
+
| 'fulfillment_recommendation'
|
|
236
|
+
| 'analyze_delivery_performance_response'
|
|
237
|
+
| 'delivery_performance'
|
|
238
|
+
| 'delivery_backlog_bucket'
|
|
239
|
+
| 'delivery_lateness_bucket'
|
|
240
|
+
| 'delivery_breakdown'
|
|
241
|
+
| 'schedule_order_coverage'
|
|
242
|
+
| 'schedule_order_coverage_line'
|
|
243
|
+
| 'promise_date_quote'
|
|
244
|
+
| 'schedule_deviation_type'
|
|
245
|
+
| 'schedule_at_risk_order'
|
|
246
|
+
| 'production_schedule_finished_policy'
|
|
247
|
+
| 'production_schedule_week_release'
|
|
248
|
+
| 'production_schedule_week_release_preview'
|
|
249
|
+
| 'production_schedule_item_policy'
|
|
250
|
+
| 'child_account'
|
|
251
|
+
| 'unit_group'
|
|
252
|
+
| 'unit_group_unit'
|
|
253
|
+
| 'consumption'
|
|
254
|
+
| 'customer_product_line_access'
|
|
255
|
+
| 'customer'
|
|
256
|
+
| 'frequently_ordered_product'
|
|
257
|
+
| 'priority'
|
|
258
|
+
| 'delivery'
|
|
259
|
+
| 'delivery_line'
|
|
260
|
+
| 'sales_order'
|
|
261
|
+
| 'location'
|
|
262
|
+
| 'location_type'
|
|
263
|
+
| 'lot'
|
|
264
|
+
| 'email_log'
|
|
265
|
+
| 'email_domain'
|
|
266
|
+
| 'email_inbox'
|
|
267
|
+
| 'portal_domain'
|
|
268
|
+
| 'dns_record'
|
|
269
|
+
| 'inventory_change_log'
|
|
270
|
+
| 'invoice'
|
|
271
|
+
| 'invoice_summary'
|
|
272
|
+
| 'invoice_line'
|
|
273
|
+
| 'invoice_allocation'
|
|
274
|
+
| 'invoice_for_payment'
|
|
275
|
+
| 'shipment'
|
|
276
|
+
| 'shipment_summary'
|
|
277
|
+
| 'shipment_line'
|
|
278
|
+
| 'shipping_case'
|
|
279
|
+
| 'shipping_case_label_url'
|
|
280
|
+
| 'settlement'
|
|
281
|
+
| 'settlement_summary'
|
|
282
|
+
| 'role_permission'
|
|
283
|
+
| 'registration_flow'
|
|
284
|
+
| 'registration_flow_option'
|
|
285
|
+
| 'transaction'
|
|
286
|
+
| 'transaction_summary'
|
|
287
|
+
| 'transaction_method'
|
|
288
|
+
| 'transaction_type'
|
|
289
|
+
| 'transaction_allocation'
|
|
290
|
+
| 'usage_item'
|
|
291
|
+
| 'account_usage_response'
|
|
292
|
+
| 'subscription_info'
|
|
293
|
+
| 'billing_portal_session_response'
|
|
294
|
+
| 'switch_plan_response'
|
|
295
|
+
| 'ensure_billing_customer_response'
|
|
296
|
+
| 'spending_cap_response'
|
|
297
|
+
| 'agent_spend_info'
|
|
298
|
+
| 'webhook_response'
|
|
299
|
+
| 'address_suggestion'
|
|
300
|
+
| 'address_components'
|
|
301
|
+
| 'address_details_result'
|
|
302
|
+
| 'validated_address'
|
|
303
|
+
| 'plan_limit'
|
|
304
|
+
| 'plan_change_proration'
|
|
305
|
+
| 'plan_change_line_item'
|
|
306
|
+
| 'setup_billing_response'
|
|
307
|
+
| 'confirm_payment_response'
|
|
308
|
+
| 'oauth_response'
|
|
309
|
+
| 'oauth_status_response'
|
|
310
|
+
| 'stripe_publishable_key'
|
|
311
|
+
| 'stripe_status'
|
|
312
|
+
| 'healthcheck'
|
|
313
|
+
| 'agent_definition_config'
|
|
314
|
+
| 'trigger_config'
|
|
315
|
+
| 'customer_contact_info'
|
|
316
|
+
| 'customer_freight_preferences'
|
|
317
|
+
| 'customer_defaults'
|
|
318
|
+
| 'customer_lead_time'
|
|
319
|
+
| 'customer_notification_preferences'
|
|
320
|
+
| 'order_notification_recipient'
|
|
321
|
+
| 'order_discount'
|
|
322
|
+
| 'sales_order_line'
|
|
323
|
+
| 'sales_order_type'
|
|
324
|
+
| 'sales_order_status'
|
|
325
|
+
| 'material'
|
|
326
|
+
| 'supplier_material'
|
|
327
|
+
| 'part'
|
|
328
|
+
| 'permission_group'
|
|
329
|
+
| 'permission'
|
|
330
|
+
| 'pick'
|
|
331
|
+
| 'pick_line'
|
|
332
|
+
| 'product_type'
|
|
333
|
+
| 'production'
|
|
334
|
+
| 'production_flow'
|
|
335
|
+
| 'map'
|
|
336
|
+
| 'purchase_order'
|
|
337
|
+
| 'purchase_order_line'
|
|
338
|
+
| 'supplier'
|
|
339
|
+
| 'supplier_summary'
|
|
340
|
+
| 'receivable_entry'
|
|
341
|
+
| 'receiving_order'
|
|
342
|
+
| 'receiving_order_line'
|
|
343
|
+
| 'email_contact'
|
|
344
|
+
| 'allocation_entry'
|
|
345
|
+
| 'open_credit_entry'
|
|
346
|
+
| 'volume_discount'
|
|
347
|
+
| 'volume_discount_tier'
|
|
348
|
+
| 'analyze_deliveries_response'
|
|
349
|
+
| 'analyze_manufacturing_response'
|
|
350
|
+
| 'analyze_manufacturing_batch_response'
|
|
351
|
+
| 'analyze_quarterly_orders_response'
|
|
352
|
+
| 'analyze_new_customers_response'
|
|
353
|
+
| 'analyze_demand_forecast_response'
|
|
354
|
+
| 'analyze_oee_response'
|
|
355
|
+
| 'analyze_oee_trend_response'
|
|
356
|
+
| 'analyze_schedule_attainment_response'
|
|
357
|
+
| 'catalog_product_line'
|
|
358
|
+
| 'catalog_category'
|
|
359
|
+
| 'catalog_product'
|
|
360
|
+
| 'catalog_property'
|
|
361
|
+
| 'catalog_attribute'
|
|
362
|
+
| 'dc_location'
|
|
363
|
+
| 'edi_run'
|
|
364
|
+
| 'inventory_item'
|
|
365
|
+
| 'analyze_weeks_of_sales_response'
|
|
366
|
+
| 'bulk_reconcile_items_response'
|
|
367
|
+
| 'sys_property'
|
|
368
|
+
| 'sys_property_type'
|
|
369
|
+
| 'sys_property_value'
|
|
370
|
+
| 'territory'
|
|
371
|
+
| 'tenancy'
|
|
372
|
+
| 'checkout_session'
|
|
373
|
+
| 'estimate_rate_result'
|
|
374
|
+
| 'rate_shop_option'
|
|
375
|
+
| 'rate_shop_result'
|
|
376
|
+
| 'owner'
|
|
377
|
+
| 'created_by'
|
|
378
|
+
| 'message'
|
|
379
|
+
| 'account_photo_upload_result'
|
|
380
|
+
| 'user_photo_upload_result'
|
|
381
|
+
| 'user_photo_url'
|
|
382
|
+
| 'batch_lot'
|
|
383
|
+
| 'check_duplicate_result'
|
|
384
|
+
| 'item_trend_point'
|
|
385
|
+
| 'pack_pick_response'
|
|
386
|
+
| 'pick_shipments_response'
|
|
387
|
+
| 'tenancy_pending_registration'
|
|
388
|
+
| 'invoice_allocation_entry'
|
|
389
|
+
| 'allocation_customer'
|
|
390
|
+
| 'checkout_sales_order'
|
|
391
|
+
| 'sales_order_price_quote'
|
|
392
|
+
| 'sales_order_freight_quote'
|
|
393
|
+
| 'sales_order_price_quote_line'
|
|
394
|
+
| 'hubspot_sync_job'
|
|
395
|
+
| 'hubspot_sync_report'
|
|
396
|
+
| 'hubspot_company_review'
|
|
397
|
+
| 'hubspot_company_candidate'
|
|
398
|
+
| 'hubspot_sync_record'
|
|
399
|
+
| 'contact_match'
|
|
400
|
+
| 'reply_draft'
|
|
401
|
+
| 'conversation_link'
|
|
402
|
+
| 'messaging_group'
|
|
403
|
+
| 'messaging_group_member'
|
|
404
|
+
| 'portal_profile'
|
|
405
|
+
| 'portal_registration_session'
|
|
406
|
+
| 'portal_registration_session_data'
|
|
407
|
+
| 'pack_list'
|
|
408
|
+
| 'pack_list_party'
|
|
409
|
+
| 'pack_list_line_item'
|
|
410
|
+
| 'pack_list_back_order'
|
|
411
|
+
| 'pack_list_case'
|
|
412
|
+
| 'job'
|
|
413
|
+
| 'job_result'
|
|
414
|
+
| 'job_export'
|
|
415
|
+
| 'analyze_customer_pricing_response'
|
|
416
|
+
| 'customer_pricing_finding'
|
|
417
|
+
| 'customer_pricing_summary'
|
|
418
|
+
| 'computed_rate'
|
|
419
|
+
| 'computed_quantity'
|
|
420
|
+
| 'analyze_realized_margins_response'
|
|
421
|
+
| 'realized_margin_finding'
|
|
422
|
+
| 'realized_margin_summary'
|
|
423
|
+
| null;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* A single page of resources, together with the metadata needed to page through
|
|
427
|
+
* the rest of the result set.
|
|
428
|
+
*/
|
|
429
|
+
results: ListJobResult | null;
|
|
124
430
|
|
|
125
431
|
/**
|
|
126
432
|
* When the job began executing.
|
|
@@ -128,15 +434,17 @@ export interface Job {
|
|
|
128
434
|
started_at: string | null;
|
|
129
435
|
|
|
130
436
|
/**
|
|
131
|
-
* How far the job has got.
|
|
132
|
-
*
|
|
437
|
+
* How far the job has got.
|
|
438
|
+
*
|
|
439
|
+
* `completed` means the work was processed, not that every row succeeded — read
|
|
440
|
+
* each entry's own `status` in `results`.
|
|
133
441
|
*/
|
|
134
442
|
status: 'created' | 'started' | 'completed' | 'failed' | 'cancelled';
|
|
135
443
|
|
|
136
444
|
/**
|
|
137
445
|
* The kind of work the job carries out.
|
|
138
446
|
*/
|
|
139
|
-
type: '
|
|
447
|
+
type: 'bulk_create' | 'bulk_upsert' | 'export';
|
|
140
448
|
|
|
141
449
|
/**
|
|
142
450
|
* When the job was last updated.
|
|
@@ -149,39 +457,87 @@ export interface Job {
|
|
|
149
457
|
*/
|
|
150
458
|
export interface JobExport {
|
|
151
459
|
/**
|
|
152
|
-
*
|
|
153
|
-
|
|
154
|
-
|
|
460
|
+
* Resource type identifier.
|
|
461
|
+
*/
|
|
462
|
+
object: 'job_export';
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Presigned link to the file, valid for five minutes.
|
|
466
|
+
*
|
|
467
|
+
* If the link has expired, read the job again for a fresh one.
|
|
155
468
|
*/
|
|
156
469
|
url: string;
|
|
157
470
|
}
|
|
158
471
|
|
|
159
472
|
/**
|
|
160
|
-
* Accounts for one request
|
|
161
|
-
*
|
|
162
|
-
* completes.
|
|
473
|
+
* Accounts for one row of the request: the resource it produced, or the error it
|
|
474
|
+
* was rejected with. Every submitted row lands in exactly one of these once the
|
|
475
|
+
* job completes.
|
|
163
476
|
*/
|
|
164
477
|
export interface JobResult {
|
|
165
478
|
/**
|
|
166
|
-
*
|
|
479
|
+
* ResponseError is the JSON-serializable error body returned to API clients. It
|
|
480
|
+
* contains only public information. This struct is used by the OpenAPI schema
|
|
481
|
+
* generator to produce documentation.
|
|
167
482
|
*/
|
|
168
|
-
|
|
483
|
+
error: ResponseError | null;
|
|
169
484
|
|
|
170
485
|
/**
|
|
171
|
-
*
|
|
486
|
+
* Zero-based row of the request this result names.
|
|
172
487
|
*/
|
|
173
|
-
|
|
488
|
+
index: number;
|
|
174
489
|
|
|
175
490
|
/**
|
|
176
|
-
*
|
|
491
|
+
* Resource type identifier.
|
|
177
492
|
*/
|
|
178
|
-
|
|
493
|
+
object: 'job_result';
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Entity is a polymorphic reference to any resource in the system.
|
|
497
|
+
*/
|
|
498
|
+
resource: CoreAPI.Entity | null;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* What became of the row.
|
|
502
|
+
*
|
|
503
|
+
* - `created`: the row produced a new resource.
|
|
504
|
+
* - `updated`: the row updated an existing resource.
|
|
505
|
+
* - `failed`: the row was rejected and wrote nothing.
|
|
506
|
+
*/
|
|
507
|
+
status: 'created' | 'updated' | 'failed';
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* A single page of resources, together with the metadata needed to page through
|
|
511
|
+
* the rest of the result set.
|
|
512
|
+
*/
|
|
513
|
+
sub_resources: CoreAPI.ListEntity | null;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* A single page of resources, together with the metadata needed to page through
|
|
518
|
+
* the rest of the result set.
|
|
519
|
+
*/
|
|
520
|
+
export interface ListJobResult {
|
|
521
|
+
/**
|
|
522
|
+
* Resources in this page.
|
|
523
|
+
*/
|
|
524
|
+
data: Array<JobResult>;
|
|
179
525
|
|
|
180
526
|
/**
|
|
181
|
-
*
|
|
182
|
-
* create, the ids of its batches. Omitted for operations that produce none.
|
|
527
|
+
* Resource type identifier.
|
|
183
528
|
*/
|
|
184
|
-
|
|
529
|
+
object: 'list';
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* PageInfo describes where the current page sits within a paginated result set and
|
|
533
|
+
* how to move to the adjacent pages.
|
|
534
|
+
*
|
|
535
|
+
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
536
|
+
* For a top-level list endpoint the URL repeats the original request's query
|
|
537
|
+
* string with only the cursor swapped, so following it preserves the same filters,
|
|
538
|
+
* search term, and page size.
|
|
539
|
+
*/
|
|
540
|
+
page_info: APIKeysAPI.PageInfo;
|
|
185
541
|
}
|
|
186
542
|
|
|
187
543
|
/**
|
|
@@ -290,23 +646,20 @@ export interface ResponseError {
|
|
|
290
646
|
type: 'api_error' | 'idempotency_error' | 'invalid_request_error';
|
|
291
647
|
}
|
|
292
648
|
|
|
293
|
-
|
|
294
|
-
* pairs one row of a bulk request with the failure it produced; a failure of the
|
|
295
|
-
* request as a whole carries no index
|
|
296
|
-
*/
|
|
297
|
-
export interface RowError {
|
|
649
|
+
export interface JobRetrieveParams {
|
|
298
650
|
/**
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
* generator to produce documentation.
|
|
651
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
652
|
+
* `null`.
|
|
302
653
|
*/
|
|
303
|
-
|
|
654
|
+
include?: Array<'created_by' | 'created_by.role'>;
|
|
655
|
+
}
|
|
304
656
|
|
|
657
|
+
export interface JobCancelParams {
|
|
305
658
|
/**
|
|
306
|
-
*
|
|
307
|
-
*
|
|
659
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
660
|
+
* `null`.
|
|
308
661
|
*/
|
|
309
|
-
|
|
662
|
+
include?: Array<'created_by' | 'created_by.role'>;
|
|
310
663
|
}
|
|
311
664
|
|
|
312
665
|
export declare namespace Jobs {
|
|
@@ -314,8 +667,10 @@ export declare namespace Jobs {
|
|
|
314
667
|
type Job as Job,
|
|
315
668
|
type JobExport as JobExport,
|
|
316
669
|
type JobResult as JobResult,
|
|
670
|
+
type ListJobResult as ListJobResult,
|
|
317
671
|
type QuotaInfo as QuotaInfo,
|
|
318
672
|
type ResponseError as ResponseError,
|
|
319
|
-
type
|
|
673
|
+
type JobRetrieveParams as JobRetrieveParams,
|
|
674
|
+
type JobCancelParams as JobCancelParams,
|
|
320
675
|
};
|
|
321
676
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as APIKeysAPI from '../auth/api-keys/api-keys';
|
|
5
|
-
import * as
|
|
5
|
+
import * as AccountPricesAPI from '../sales/account-prices/account-prices';
|
|
6
6
|
import { APIPromise } from '../../core/api-promise';
|
|
7
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
8
8
|
import { path } from '../../internal/utils/path';
|
|
@@ -52,7 +52,7 @@ export class PaymentTerms extends APIResource {
|
|
|
52
52
|
id: string,
|
|
53
53
|
query: PaymentTermRetrieveParams | null | undefined = {},
|
|
54
54
|
options?: RequestOptions,
|
|
55
|
-
): APIPromise<
|
|
55
|
+
): APIPromise<AccountPricesAPI.PaymentTerm> {
|
|
56
56
|
return this._client.get(path`/v1/finance/payment-terms/${id}`, { query, ...options });
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -71,7 +71,10 @@ export class PaymentTerms extends APIResource {
|
|
|
71
71
|
* });
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
|
-
create(
|
|
74
|
+
create(
|
|
75
|
+
params: PaymentTermCreateParams,
|
|
76
|
+
options?: RequestOptions,
|
|
77
|
+
): APIPromise<AccountPricesAPI.PaymentTerm> {
|
|
75
78
|
const { include, ...body } = params;
|
|
76
79
|
return this._client.post('/v1/finance/payment-terms', { query: { include }, body, ...options });
|
|
77
80
|
}
|
|
@@ -97,7 +100,7 @@ export class PaymentTerms extends APIResource {
|
|
|
97
100
|
id: string,
|
|
98
101
|
params: PaymentTermUpdateParams | null | undefined = {},
|
|
99
102
|
options?: RequestOptions,
|
|
100
|
-
): APIPromise<
|
|
103
|
+
): APIPromise<AccountPricesAPI.PaymentTerm> {
|
|
101
104
|
const { include, ...body } = params ?? {};
|
|
102
105
|
return this._client.patch(path`/v1/finance/payment-terms/${id}`, {
|
|
103
106
|
query: { include },
|
|
@@ -148,7 +151,7 @@ export interface ListPaymentTerm {
|
|
|
148
151
|
/**
|
|
149
152
|
* Resources in this page.
|
|
150
153
|
*/
|
|
151
|
-
data: Array<
|
|
154
|
+
data: Array<AccountPricesAPI.PaymentTerm>;
|
|
152
155
|
|
|
153
156
|
/**
|
|
154
157
|
* Resource type identifier.
|