@commercelayer/sdk 4.37.0 → 4.39.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/lib/cjs/api.d.ts +10 -7
- package/lib/cjs/api.js +12 -3
- package/lib/cjs/commercelayer.d.ts +5 -2
- package/lib/cjs/commercelayer.js +4 -1
- package/lib/cjs/error.d.ts +3 -2
- package/lib/cjs/error.js +2 -1
- package/lib/cjs/model.d.ts +6 -3
- package/lib/cjs/resource.d.ts +1 -0
- package/lib/cjs/resource.js +16 -0
- package/lib/cjs/resources/axerve_payments.d.ts +4 -0
- package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +137 -0
- package/lib/cjs/resources/buy_x_pay_y_promotions.js +75 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +7 -3
- package/lib/cjs/resources/coupons.d.ts +3 -0
- package/lib/cjs/resources/custom_promotion_rules.d.ts +62 -0
- package/lib/cjs/resources/custom_promotion_rules.js +29 -0
- package/lib/cjs/resources/external_promotions.d.ts +20 -1
- package/lib/cjs/resources/external_promotions.js +10 -0
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +20 -1
- package/lib/cjs/resources/fixed_amount_promotions.js +10 -0
- package/lib/cjs/resources/fixed_price_promotions.d.ts +11 -0
- package/lib/cjs/resources/fixed_price_promotions.js +6 -0
- package/lib/cjs/resources/free_gift_promotions.d.ts +11 -0
- package/lib/cjs/resources/free_gift_promotions.js +6 -0
- package/lib/cjs/resources/free_shipping_promotions.d.ts +11 -0
- package/lib/cjs/resources/free_shipping_promotions.js +6 -0
- package/lib/cjs/resources/inventory_models.d.ts +3 -0
- package/lib/cjs/resources/line_items.d.ts +1 -0
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +7 -3
- package/lib/cjs/resources/orders.d.ts +24 -0
- package/lib/cjs/resources/orders.js +20 -0
- package/lib/cjs/resources/payment_methods.d.ts +3 -3
- package/lib/cjs/resources/payment_options.d.ts +44 -0
- package/lib/cjs/resources/payment_options.js +33 -0
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +11 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +6 -0
- package/lib/cjs/resources/promotion_rules.d.ts +2 -1
- package/lib/cjs/resources/promotions.d.ts +3 -0
- package/lib/cjs/resources/shipments.d.ts +38 -5
- package/lib/cjs/resources/shipments.js +19 -0
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +7 -3
- package/lib/cjs/resources/stock_line_items.d.ts +37 -7
- package/lib/cjs/resources/stock_line_items.js +9 -0
- package/lib/cjs/resources/stock_reservations.d.ts +19 -3
- package/lib/cjs/resources/stock_reservations.js +12 -0
- package/lib/cjs/resources/stock_transfers.d.ts +3 -1
- package/lib/cjs/resources/stock_transfers.js +3 -0
- package/lib/cjs/util.d.ts +0 -5
- package/lib/esm/api.d.ts +10 -7
- package/lib/esm/api.js +6 -0
- package/lib/esm/commercelayer.d.ts +5 -2
- package/lib/esm/commercelayer.js +4 -1
- package/lib/esm/error.d.ts +3 -2
- package/lib/esm/error.js +2 -1
- package/lib/esm/model.d.ts +6 -3
- package/lib/esm/resource.d.ts +1 -0
- package/lib/esm/resource.js +16 -0
- package/lib/esm/resources/axerve_payments.d.ts +4 -0
- package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +137 -0
- package/lib/esm/resources/buy_x_pay_y_promotions.js +73 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +7 -3
- package/lib/esm/resources/coupons.d.ts +3 -0
- package/lib/esm/resources/custom_promotion_rules.d.ts +62 -0
- package/lib/esm/resources/custom_promotion_rules.js +27 -0
- package/lib/esm/resources/external_promotions.d.ts +20 -1
- package/lib/esm/resources/external_promotions.js +10 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +20 -1
- package/lib/esm/resources/fixed_amount_promotions.js +10 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +11 -0
- package/lib/esm/resources/fixed_price_promotions.js +6 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +11 -0
- package/lib/esm/resources/free_gift_promotions.js +6 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +11 -0
- package/lib/esm/resources/free_shipping_promotions.js +6 -0
- package/lib/esm/resources/inventory_models.d.ts +3 -0
- package/lib/esm/resources/line_items.d.ts +1 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +7 -3
- package/lib/esm/resources/orders.d.ts +24 -0
- package/lib/esm/resources/orders.js +20 -0
- package/lib/esm/resources/payment_methods.d.ts +3 -3
- package/lib/esm/resources/payment_options.d.ts +44 -0
- package/lib/esm/resources/payment_options.js +31 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +11 -0
- package/lib/esm/resources/percentage_discount_promotions.js +6 -0
- package/lib/esm/resources/promotion_rules.d.ts +2 -1
- package/lib/esm/resources/promotions.d.ts +3 -0
- package/lib/esm/resources/shipments.d.ts +38 -5
- package/lib/esm/resources/shipments.js +19 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +7 -3
- package/lib/esm/resources/stock_line_items.d.ts +37 -7
- package/lib/esm/resources/stock_line_items.js +9 -0
- package/lib/esm/resources/stock_reservations.d.ts +19 -3
- package/lib/esm/resources/stock_reservations.js +12 -0
- package/lib/esm/resources/stock_transfers.d.ts +3 -1
- package/lib/esm/resources/stock_transfers.js +3 -0
- package/lib/esm/util.d.ts +0 -5
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions';
|
5
5
|
import type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions';
|
6
|
+
import type { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions';
|
6
7
|
import type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions';
|
7
8
|
import type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions';
|
8
9
|
import type { ExternalPromotion, ExternalPromotionType } from './external_promotions';
|
@@ -20,6 +21,9 @@ type PercentageDiscountPromotionRel = ResourceRel & {
|
|
20
21
|
type FreeShippingPromotionRel = ResourceRel & {
|
21
22
|
type: FreeShippingPromotionType;
|
22
23
|
};
|
24
|
+
type BuyXPayYPromotionRel = ResourceRel & {
|
25
|
+
type: BuyXPayYPromotionType;
|
26
|
+
};
|
23
27
|
type FreeGiftPromotionRel = ResourceRel & {
|
24
28
|
type: FreeGiftPromotionType;
|
25
29
|
};
|
@@ -39,7 +43,7 @@ interface SkuListPromotionRule extends Resource {
|
|
39
43
|
readonly type: SkuListPromotionRuleType;
|
40
44
|
all_skus?: boolean | null;
|
41
45
|
min_quantity?: number | null;
|
42
|
-
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
|
46
|
+
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
|
43
47
|
versions?: Version[] | null;
|
44
48
|
sku_list?: SkuList | null;
|
45
49
|
skus?: Sku[] | null;
|
@@ -47,13 +51,13 @@ interface SkuListPromotionRule extends Resource {
|
|
47
51
|
interface SkuListPromotionRuleCreate extends ResourceCreate {
|
48
52
|
all_skus?: boolean | null;
|
49
53
|
min_quantity?: number | null;
|
50
|
-
promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel;
|
54
|
+
promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel;
|
51
55
|
sku_list?: SkuListRel | null;
|
52
56
|
}
|
53
57
|
interface SkuListPromotionRuleUpdate extends ResourceUpdate {
|
54
58
|
all_skus?: boolean | null;
|
55
59
|
min_quantity?: number | null;
|
56
|
-
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | null;
|
60
|
+
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | null;
|
57
61
|
sku_list?: SkuListRel | null;
|
58
62
|
}
|
59
63
|
declare class SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {
|
@@ -1,19 +1,30 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
|
-
import type { Shipment } from './shipments';
|
5
|
-
import type { LineItem } from './line_items';
|
6
|
-
import type { StockItem } from './stock_items';
|
7
|
-
import type { Sku } from './skus';
|
4
|
+
import type { Shipment, ShipmentType } from './shipments';
|
5
|
+
import type { LineItem, LineItemType } from './line_items';
|
6
|
+
import type { StockItem, StockItemType } from './stock_items';
|
7
|
+
import type { Sku, SkuType } from './skus';
|
8
8
|
import type { Version } from './versions';
|
9
9
|
type StockLineItemType = 'stock_line_items';
|
10
10
|
type StockLineItemRel = ResourceRel & {
|
11
11
|
type: StockLineItemType;
|
12
12
|
};
|
13
|
+
type ShipmentRel = ResourceRel & {
|
14
|
+
type: ShipmentType;
|
15
|
+
};
|
16
|
+
type LineItemRel = ResourceRel & {
|
17
|
+
type: LineItemType;
|
18
|
+
};
|
19
|
+
type StockItemRel = ResourceRel & {
|
20
|
+
type: StockItemType;
|
21
|
+
};
|
22
|
+
type SkuRel = ResourceRel & {
|
23
|
+
type: SkuType;
|
24
|
+
};
|
13
25
|
interface StockLineItem extends Resource {
|
14
26
|
readonly type: StockLineItemType;
|
15
27
|
sku_code?: string | null;
|
16
|
-
bundle_code?: string | null;
|
17
28
|
quantity: number;
|
18
29
|
shipment?: Shipment | null;
|
19
30
|
line_item?: LineItem | null;
|
@@ -21,8 +32,27 @@ interface StockLineItem extends Resource {
|
|
21
32
|
sku?: Sku | null;
|
22
33
|
versions?: Version[] | null;
|
23
34
|
}
|
35
|
+
interface StockLineItemCreate extends ResourceCreate {
|
36
|
+
sku_code?: string | null;
|
37
|
+
quantity: number;
|
38
|
+
shipment?: ShipmentRel | null;
|
39
|
+
line_item?: LineItemRel | null;
|
40
|
+
stock_item?: StockItemRel | null;
|
41
|
+
sku?: SkuRel | null;
|
42
|
+
}
|
43
|
+
interface StockLineItemUpdate extends ResourceUpdate {
|
44
|
+
sku_code?: string | null;
|
45
|
+
quantity?: number | null;
|
46
|
+
shipment?: ShipmentRel | null;
|
47
|
+
line_item?: LineItemRel | null;
|
48
|
+
stock_item?: StockItemRel | null;
|
49
|
+
sku?: SkuRel | null;
|
50
|
+
}
|
24
51
|
declare class StockLineItems extends ApiResource<StockLineItem> {
|
25
52
|
static readonly TYPE: StockLineItemType;
|
53
|
+
create(resource: StockLineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLineItem>;
|
54
|
+
update(resource: StockLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLineItem>;
|
55
|
+
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
26
56
|
shipment(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
27
57
|
line_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
28
58
|
stock_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
@@ -33,4 +63,4 @@ declare class StockLineItems extends ApiResource<StockLineItem> {
|
|
33
63
|
type(): StockLineItemType;
|
34
64
|
}
|
35
65
|
export default StockLineItems;
|
36
|
-
export type { StockLineItem, StockLineItemType };
|
66
|
+
export type { StockLineItem, StockLineItemCreate, StockLineItemUpdate, StockLineItemType };
|
@@ -1,5 +1,14 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockLineItems extends ApiResource {
|
3
|
+
async create(resource, params, options) {
|
4
|
+
return this.resources.create({ ...resource, type: StockLineItems.TYPE }, params, options);
|
5
|
+
}
|
6
|
+
async update(resource, params, options) {
|
7
|
+
return this.resources.update({ ...resource, type: StockLineItems.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async delete(id, options) {
|
10
|
+
await this.resources.delete((typeof id === 'string') ? { id, type: StockLineItems.TYPE } : id, options);
|
11
|
+
}
|
3
12
|
async shipment(stockLineItemId, params, options) {
|
4
13
|
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
5
14
|
return this.resources.fetch({ type: 'shipments' }, `stock_line_items/${_stockLineItemId}/shipment`, params, options);
|
@@ -1,15 +1,18 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
3
3
|
import type { QueryParamsRetrieve } from '../query';
|
4
4
|
import type { LineItem } from './line_items';
|
5
5
|
import type { Order } from './orders';
|
6
|
-
import type { StockItem } from './stock_items';
|
6
|
+
import type { StockItem, StockItemType } from './stock_items';
|
7
7
|
import type { ReservedStock } from './reserved_stocks';
|
8
8
|
import type { Sku } from './skus';
|
9
9
|
type StockReservationType = 'stock_reservations';
|
10
10
|
type StockReservationRel = ResourceRel & {
|
11
11
|
type: StockReservationType;
|
12
12
|
};
|
13
|
+
type StockItemRel = ResourceRel & {
|
14
|
+
type: StockItemType;
|
15
|
+
};
|
13
16
|
interface StockReservation extends Resource {
|
14
17
|
readonly type: StockReservationType;
|
15
18
|
status: 'draft' | 'pending';
|
@@ -21,16 +24,29 @@ interface StockReservation extends Resource {
|
|
21
24
|
reserved_stock?: ReservedStock | null;
|
22
25
|
sku?: Sku | null;
|
23
26
|
}
|
27
|
+
interface StockReservationCreate extends ResourceCreate {
|
28
|
+
quantity: number;
|
29
|
+
stock_item: StockItemRel;
|
30
|
+
}
|
31
|
+
interface StockReservationUpdate extends ResourceUpdate {
|
32
|
+
quantity?: number | null;
|
33
|
+
_pending?: boolean | null;
|
34
|
+
stock_item?: StockItemRel | null;
|
35
|
+
}
|
24
36
|
declare class StockReservations extends ApiResource<StockReservation> {
|
25
37
|
static readonly TYPE: StockReservationType;
|
38
|
+
create(resource: StockReservationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockReservation>;
|
39
|
+
update(resource: StockReservationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockReservation>;
|
40
|
+
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
26
41
|
line_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
27
42
|
order(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
28
43
|
stock_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
29
44
|
reserved_stock(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ReservedStock>;
|
30
45
|
sku(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
46
|
+
_pending(id: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockReservation>;
|
31
47
|
isStockReservation(resource: any): resource is StockReservation;
|
32
48
|
relationship(id: string | ResourceId | null): StockReservationRel;
|
33
49
|
type(): StockReservationType;
|
34
50
|
}
|
35
51
|
export default StockReservations;
|
36
|
-
export type { StockReservation, StockReservationType };
|
52
|
+
export type { StockReservation, StockReservationCreate, StockReservationUpdate, StockReservationType };
|
@@ -1,5 +1,14 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockReservations extends ApiResource {
|
3
|
+
async create(resource, params, options) {
|
4
|
+
return this.resources.create({ ...resource, type: StockReservations.TYPE }, params, options);
|
5
|
+
}
|
6
|
+
async update(resource, params, options) {
|
7
|
+
return this.resources.update({ ...resource, type: StockReservations.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async delete(id, options) {
|
10
|
+
await this.resources.delete((typeof id === 'string') ? { id, type: StockReservations.TYPE } : id, options);
|
11
|
+
}
|
3
12
|
async line_item(stockReservationId, params, options) {
|
4
13
|
const _stockReservationId = stockReservationId.id || stockReservationId;
|
5
14
|
return this.resources.fetch({ type: 'line_items' }, `stock_reservations/${_stockReservationId}/line_item`, params, options);
|
@@ -20,6 +29,9 @@ class StockReservations extends ApiResource {
|
|
20
29
|
const _stockReservationId = stockReservationId.id || stockReservationId;
|
21
30
|
return this.resources.fetch({ type: 'skus' }, `stock_reservations/${_stockReservationId}/sku`, params, options);
|
22
31
|
}
|
32
|
+
async _pending(id, params, options) {
|
33
|
+
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: StockReservations.TYPE, _pending: true }, params, options);
|
34
|
+
}
|
23
35
|
isStockReservation(resource) {
|
24
36
|
return resource.type && (resource.type === StockReservations.TYPE);
|
25
37
|
}
|
@@ -26,7 +26,7 @@ type LineItemRel = ResourceRel & {
|
|
26
26
|
interface StockTransfer extends Resource {
|
27
27
|
readonly type: StockTransferType;
|
28
28
|
sku_code?: string | null;
|
29
|
-
status: 'draft' | 'upcoming' | 'picking' | 'in_transit' | 'completed' | 'cancelled';
|
29
|
+
status: 'draft' | 'upcoming' | 'on_hold' | 'picking' | 'in_transit' | 'completed' | 'cancelled';
|
30
30
|
quantity: number;
|
31
31
|
completed_at?: string | null;
|
32
32
|
cancelled_at?: string | null;
|
@@ -50,6 +50,7 @@ interface StockTransferCreate extends ResourceCreate {
|
|
50
50
|
interface StockTransferUpdate extends ResourceUpdate {
|
51
51
|
sku_code?: string | null;
|
52
52
|
_upcoming?: boolean | null;
|
53
|
+
_on_hold?: boolean | null;
|
53
54
|
_picking?: boolean | null;
|
54
55
|
_in_transit?: boolean | null;
|
55
56
|
_complete?: boolean | null;
|
@@ -71,6 +72,7 @@ declare class StockTransfers extends ApiResource<StockTransfer> {
|
|
71
72
|
events(stockTransferId: string | StockTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
72
73
|
versions(stockTransferId: string | StockTransfer, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
73
74
|
_upcoming(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
75
|
+
_on_hold(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
74
76
|
_picking(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
75
77
|
_in_transit(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
76
78
|
_complete(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
@@ -40,6 +40,9 @@ class StockTransfers extends ApiResource {
|
|
40
40
|
async _upcoming(id, params, options) {
|
41
41
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: StockTransfers.TYPE, _upcoming: true }, params, options);
|
42
42
|
}
|
43
|
+
async _on_hold(id, params, options) {
|
44
|
+
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: StockTransfers.TYPE, _on_hold: true }, params, options);
|
45
|
+
}
|
43
46
|
async _picking(id, params, options) {
|
44
47
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: StockTransfers.TYPE, _picking: true }, params, options);
|
45
48
|
}
|
package/lib/esm/util.d.ts
CHANGED
@@ -1,8 +1,3 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
/// <reference types="node" />
|
3
|
-
/// <reference types="node" />
|
4
|
-
/// <reference types="node" />
|
5
|
-
/// <reference types="node" />
|
6
1
|
import type { ObjectType } from "../src/common";
|
7
2
|
declare const sleep: (ms: number) => Promise<NodeJS.Timeout>;
|
8
3
|
declare const sortObjectFields: (obj: ObjectType) => ObjectType;
|