@medusajs/types 1.12.0-snapshot-20240405070935 → 1.12.0-snapshot-20240406075900
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth/common/auth-user.d.ts +21 -16
- package/dist/auth/common/auth-user.d.ts.map +1 -1
- package/dist/auth/common/provider.d.ts +28 -15
- package/dist/auth/common/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +137 -75
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bundles.d.ts +2 -0
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +3 -1
- package/dist/bundles.js.map +1 -1
- package/dist/cart/common.d.ts +443 -62
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/cart/mutations.d.ts +483 -0
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +1607 -0
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/rule.d.ts +2 -0
- package/dist/common/rule.d.ts.map +1 -0
- package/dist/common/rule.js +3 -0
- package/dist/common/rule.js.map +1 -0
- package/dist/customer/service.d.ts +445 -197
- package/dist/customer/service.d.ts.map +1 -1
- package/dist/file/common.d.ts +14 -0
- package/dist/file/common.d.ts.map +1 -0
- package/dist/file/common.js +3 -0
- package/dist/file/common.js.map +1 -0
- package/dist/file/index.d.ts +4 -0
- package/dist/file/index.d.ts.map +1 -0
- package/dist/file/index.js +20 -0
- package/dist/file/index.js.map +1 -0
- package/dist/file/mutations.d.ts +18 -0
- package/dist/file/mutations.d.ts.map +1 -0
- package/dist/file/mutations.js +3 -0
- package/dist/file/mutations.js.map +1 -0
- package/dist/file/service.d.ts +76 -0
- package/dist/file/service.d.ts.map +1 -0
- package/dist/file/service.js +3 -0
- package/dist/file/service.js.map +1 -0
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts +2 -2
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts +22 -0
- package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-address.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts +17 -0
- package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-item.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts +14 -0
- package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-label.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +12 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-provider.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts +15 -0
- package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment-set.js.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts +27 -0
- package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/fulfillment.js +3 -0
- package/dist/http/fulfillment/admin/fulfillment.js.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts +17 -0
- package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/geo-zone.js +3 -0
- package/dist/http/fulfillment/admin/geo-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/index.d.ts +13 -0
- package/dist/http/fulfillment/admin/index.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/index.js +29 -0
- package/dist/http/fulfillment/admin/index.js.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts +14 -0
- package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/service-zone.js +3 -0
- package/dist/http/fulfillment/admin/service-zone.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +16 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-rule.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts +14 -0
- package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option-type.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts +31 -0
- package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-option.js +3 -0
- package/dist/http/fulfillment/admin/shipping-option.js.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts +13 -0
- package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -0
- package/dist/http/fulfillment/admin/shipping-profile.js +3 -0
- package/dist/http/fulfillment/admin/shipping-profile.js.map +1 -0
- package/dist/http/fulfillment/index.d.ts +2 -0
- package/dist/http/fulfillment/index.d.ts.map +1 -0
- package/dist/http/fulfillment/index.js +18 -0
- package/dist/http/fulfillment/index.js.map +1 -0
- package/dist/http/index.d.ts +3 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +19 -0
- package/dist/http/index.js.map +1 -0
- package/dist/http/stock-locations/common.d.ts +28 -0
- package/dist/http/stock-locations/common.d.ts.map +1 -0
- package/dist/http/stock-locations/common.js +3 -0
- package/dist/http/stock-locations/common.js.map +1 -0
- package/dist/http/stock-locations/index.d.ts +2 -0
- package/dist/http/stock-locations/index.d.ts.map +1 -0
- package/dist/http/stock-locations/index.js +18 -0
- package/dist/http/stock-locations/index.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/inventory/common/inventory-item.d.ts +55 -64
- package/dist/inventory/common/inventory-item.d.ts.map +1 -1
- package/dist/inventory/common/inventory-level.d.ts +37 -37
- package/dist/inventory/common/inventory-level.d.ts.map +1 -1
- package/dist/inventory/common/reservation-item.d.ts +34 -44
- package/dist/inventory/common/reservation-item.d.ts.map +1 -1
- package/dist/inventory/service-next.d.ts +596 -534
- package/dist/inventory/service-next.d.ts.map +1 -1
- package/dist/payment/common.d.ts +174 -53
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/common.js +3 -3
- package/dist/payment/common.js.map +1 -1
- package/dist/payment/mutations.d.ts +58 -17
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +128 -43
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/provider.js.map +1 -1
- package/dist/payment/service.d.ts +460 -39
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/pricing/common/price-list.d.ts +2 -2
- package/dist/pricing/common/price-set.d.ts +6 -4
- package/dist/pricing/common/price-set.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +731 -1695
- package/dist/pricing/service.d.ts.map +1 -1
- package/dist/product/common.d.ts +4 -0
- package/dist/product/common.d.ts.map +1 -1
- package/dist/product-category/repository.d.ts +2 -1
- package/dist/product-category/repository.d.ts.map +1 -1
- package/dist/promotion/common/application-method.d.ts +153 -0
- package/dist/promotion/common/application-method.d.ts.map +1 -1
- package/dist/promotion/common/campaign-budget.d.ts +37 -0
- package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
- package/dist/promotion/common/campaign.d.ts +36 -0
- package/dist/promotion/common/campaign.d.ts.map +1 -1
- package/dist/promotion/common/compute-actions.d.ts +135 -0
- package/dist/promotion/common/compute-actions.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule-value.d.ts +30 -0
- package/dist/promotion/common/promotion-rule-value.d.ts.map +1 -1
- package/dist/promotion/common/promotion-rule.d.ts +77 -0
- package/dist/promotion/common/promotion-rule.d.ts.map +1 -1
- package/dist/promotion/common/promotion.d.ts +100 -0
- package/dist/promotion/common/promotion.d.ts.map +1 -1
- package/dist/promotion/mutations.d.ts +84 -0
- package/dist/promotion/mutations.d.ts.map +1 -1
- package/dist/promotion/service.d.ts +786 -0
- package/dist/promotion/service.d.ts.map +1 -1
- package/dist/region/common.d.ts +9 -0
- package/dist/region/common.d.ts.map +1 -1
- package/dist/region/mutations.d.ts +11 -3
- package/dist/region/mutations.d.ts.map +1 -1
- package/dist/region/service.d.ts +210 -85
- package/dist/region/service.d.ts.map +1 -1
- package/dist/stock-location/common.d.ts +14 -0
- package/dist/stock-location/common.d.ts.map +1 -1
- package/dist/stock-location/service-next.d.ts +178 -186
- package/dist/stock-location/service-next.d.ts.map +1 -1
- package/dist/store/common/store.d.ts +42 -0
- package/dist/store/common/store.d.ts.map +1 -1
- package/dist/store/mutations/store.d.ts +75 -0
- package/dist/store/mutations/store.d.ts.map +1 -1
- package/dist/store/service.d.ts +113 -75
- package/dist/store/service.d.ts.map +1 -1
- package/dist/tax/common.d.ts +298 -10
- package/dist/tax/common.d.ts.map +1 -1
- package/dist/tax/mutations.d.ts +157 -0
- package/dist/tax/mutations.d.ts.map +1 -1
- package/dist/tax/provider.d.ts +126 -0
- package/dist/tax/provider.d.ts.map +1 -1
- package/dist/tax/service.d.ts +600 -0
- package/dist/tax/service.d.ts.map +1 -1
- package/dist/workflows/index.d.ts +2 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/index.js +18 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/stock-locations/index.d.ts +2 -0
- package/dist/workflows/stock-locations/index.d.ts.map +1 -0
- package/dist/workflows/stock-locations/index.js +18 -0
- package/dist/workflows/stock-locations/index.js.map +1 -0
- package/dist/workflows/stock-locations/mutations.d.ts +8 -0
- package/dist/workflows/stock-locations/mutations.d.ts.map +1 -0
- package/dist/workflows/stock-locations/mutations.js +3 -0
- package/dist/workflows/stock-locations/mutations.js.map +1 -0
- package/package.json +1 -1
@@ -0,0 +1,31 @@
|
|
1
|
+
import { ShippingOptionPriceType } from "../../../fulfillment";
|
2
|
+
import { AdminServiceZoneResponse } from "./service-zone";
|
3
|
+
import { AdminShippingOptionTypeResponse } from "./shipping-option-type";
|
4
|
+
import { AdminShippingOptionRuleResponse } from "./shipping-option-rule";
|
5
|
+
import { AdminShippingProfileResponse } from "./shipping-profile";
|
6
|
+
import { AdminFulfillmentProviderResponse } from "./fulfillment-provider";
|
7
|
+
import { AdminFulfillmentResponse } from "./fulfillment";
|
8
|
+
/**
|
9
|
+
* @experimental
|
10
|
+
*/
|
11
|
+
export interface AdminShippingOptionResponse {
|
12
|
+
id: string;
|
13
|
+
name: string;
|
14
|
+
price_type: ShippingOptionPriceType;
|
15
|
+
service_zone_id: string;
|
16
|
+
shipping_profile_id: string;
|
17
|
+
provider_id: string;
|
18
|
+
shipping_option_type_id: string | null;
|
19
|
+
data: Record<string, unknown> | null;
|
20
|
+
metadata: Record<string, unknown> | null;
|
21
|
+
service_zone: AdminServiceZoneResponse;
|
22
|
+
shipping_profile: AdminShippingProfileResponse;
|
23
|
+
fulfillment_provider: AdminFulfillmentProviderResponse;
|
24
|
+
type: AdminShippingOptionTypeResponse;
|
25
|
+
rules: AdminShippingOptionRuleResponse[];
|
26
|
+
fulfillments: AdminFulfillmentResponse[];
|
27
|
+
created_at: Date;
|
28
|
+
updated_at: Date;
|
29
|
+
deleted_at: Date | null;
|
30
|
+
}
|
31
|
+
//# sourceMappingURL=shipping-option.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shipping-option.d.ts","sourceRoot":"","sources":["../../../../src/http/fulfillment/admin/shipping-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,uBAAuB,CAAA;IACnC,eAAe,EAAE,MAAM,CAAA;IACvB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,uBAAuB,EAAE,MAAM,GAAG,IAAI,CAAA;IACtC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,YAAY,EAAE,wBAAwB,CAAA;IACtC,gBAAgB,EAAE,4BAA4B,CAAA;IAC9C,oBAAoB,EAAE,gCAAgC,CAAA;IACtD,IAAI,EAAE,+BAA+B,CAAA;IACrC,KAAK,EAAE,+BAA+B,EAAE,CAAA;IACxC,YAAY,EAAE,wBAAwB,EAAE,CAAA;IACxC,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shipping-option.js","sourceRoot":"","sources":["../../../../src/http/fulfillment/admin/shipping-option.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* @experimental
|
3
|
+
*/
|
4
|
+
export interface AdminShippingProfileResponse {
|
5
|
+
id: string;
|
6
|
+
name: string;
|
7
|
+
type: string;
|
8
|
+
metadata: Record<string, unknown> | null;
|
9
|
+
created_at: Date;
|
10
|
+
updated_at: Date;
|
11
|
+
deleted_at: Date | null;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=shipping-profile.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shipping-profile.d.ts","sourceRoot":"","sources":["../../../../src/http/fulfillment/admin/shipping-profile.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shipping-profile.js","sourceRoot":"","sources":["../../../../src/http/fulfillment/admin/shipping-profile.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/fulfillment/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./admin"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/fulfillment/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./stock-locations"), exports);
|
18
|
+
__exportStar(require("./fulfillment"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,gDAA6B"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { AdminFulfillmentSetResponse } from "../fulfillment";
|
2
|
+
export type AdminStockLocationAddressResponse = {
|
3
|
+
id?: string;
|
4
|
+
address_1: string;
|
5
|
+
address_2?: string | null;
|
6
|
+
company?: string | null;
|
7
|
+
country_code: string;
|
8
|
+
city?: string | null;
|
9
|
+
phone?: string | null;
|
10
|
+
postal_code?: string | null;
|
11
|
+
province?: string | null;
|
12
|
+
metadata?: Record<string, unknown> | null;
|
13
|
+
created_at: string | Date;
|
14
|
+
updated_at: string | Date;
|
15
|
+
deleted_at: string | Date | null;
|
16
|
+
};
|
17
|
+
export interface AdminStockLocationResponse {
|
18
|
+
id: string;
|
19
|
+
name: string;
|
20
|
+
metadata: Record<string, unknown> | null;
|
21
|
+
address_id: string;
|
22
|
+
address?: AdminStockLocationAddressResponse;
|
23
|
+
created_at: string | Date;
|
24
|
+
updated_at: string | Date;
|
25
|
+
deleted_at: string | Date | null;
|
26
|
+
fulfillment_sets?: AdminFulfillmentSetResponse[];
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=common.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/stock-locations/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AAE5D,MAAM,MAAM,iCAAiC,GAAG;IAC9C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACzC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC,CAAA;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,iCAAiC,CAAA;IAC3C,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAEhC,gBAAgB,CAAC,EAAE,2BAA2B,EAAE,CAAA;CACjD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/http/stock-locations/common.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/stock-locations/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./common"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/stock-locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
|
package/dist/index.d.ts
CHANGED
@@ -5,12 +5,15 @@ export * from "./bundles";
|
|
5
5
|
export * from "./cache";
|
6
6
|
export * from "./cart";
|
7
7
|
export * from "./common";
|
8
|
+
export * from "./currency";
|
8
9
|
export * from "./customer";
|
9
10
|
export * from "./dal";
|
10
11
|
export * from "./event-bus";
|
11
12
|
export * from "./feature-flag";
|
13
|
+
export * from "./file";
|
12
14
|
export * from "./file-service";
|
13
15
|
export * from "./fulfillment";
|
16
|
+
export * from "./http";
|
14
17
|
export * from "./inventory";
|
15
18
|
export * from "./joiner";
|
16
19
|
export * from "./link-modules";
|
@@ -34,5 +37,5 @@ export * from "./totals";
|
|
34
37
|
export * from "./transaction-base";
|
35
38
|
export * from "./user";
|
36
39
|
export * from "./workflow";
|
37
|
-
export * from "./
|
40
|
+
export * from "./workflows";
|
38
41
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
|
package/dist/index.js
CHANGED
@@ -21,12 +21,15 @@ __exportStar(require("./bundles"), exports);
|
|
21
21
|
__exportStar(require("./cache"), exports);
|
22
22
|
__exportStar(require("./cart"), exports);
|
23
23
|
__exportStar(require("./common"), exports);
|
24
|
+
__exportStar(require("./currency"), exports);
|
24
25
|
__exportStar(require("./customer"), exports);
|
25
26
|
__exportStar(require("./dal"), exports);
|
26
27
|
__exportStar(require("./event-bus"), exports);
|
27
28
|
__exportStar(require("./feature-flag"), exports);
|
29
|
+
__exportStar(require("./file"), exports);
|
28
30
|
__exportStar(require("./file-service"), exports);
|
29
31
|
__exportStar(require("./fulfillment"), exports);
|
32
|
+
__exportStar(require("./http"), exports);
|
30
33
|
__exportStar(require("./inventory"), exports);
|
31
34
|
__exportStar(require("./joiner"), exports);
|
32
35
|
__exportStar(require("./link-modules"), exports);
|
@@ -50,5 +53,5 @@ __exportStar(require("./totals"), exports);
|
|
50
53
|
__exportStar(require("./transaction-base"), exports);
|
51
54
|
__exportStar(require("./user"), exports);
|
52
55
|
__exportStar(require("./workflow"), exports);
|
53
|
-
__exportStar(require("./
|
56
|
+
__exportStar(require("./workflows"), exports);
|
54
57
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,4CAAyB;AACzB,yCAAsB;AACtB,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,wCAAqB;AACrB,8CAA2B;AAC3B,iDAA8B;AAC9B,iDAA8B;AAC9B,gDAA6B;AAC7B,8CAA2B;AAC3B,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,gDAA6B;AAC7B,0CAAuB;AACvB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC;AAChC,kDAA+B;AAC/B,2CAAwB;AACxB,mDAAgC;AAChC,mDAAgC;AAChC,0CAAuB;AACvB,wCAAqB;AACrB,2CAAwB;AACxB,qDAAkC;AAClC,yCAAsB;AACtB,6CAA0B;AAC1B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,4CAAyB;AACzB,yCAAsB;AACtB,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,6CAA0B;AAC1B,wCAAqB;AACrB,8CAA2B;AAC3B,iDAA8B;AAC9B,yCAAsB;AACtB,iDAA8B;AAC9B,gDAA6B;AAC7B,yCAAsB;AACtB,8CAA2B;AAC3B,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,gDAA6B;AAC7B,0CAAuB;AACvB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,qDAAkC;AAClC,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC;AAChC,kDAA+B;AAC/B,2CAAwB;AACxB,mDAAgC;AAChC,mDAAgC;AAChC,0CAAuB;AACvB,wCAAqB;AACrB,2CAAwB;AACxB,qDAAkC;AAClC,yCAAsB;AACtB,6CAA0B;AAC1B,8CAA2B"}
|
@@ -1,88 +1,79 @@
|
|
1
1
|
import { StringComparisonOperator } from "../../common";
|
2
2
|
/**
|
3
|
-
*
|
4
|
-
* type: object
|
5
|
-
* required:
|
6
|
-
* - sku
|
7
|
-
* properties:
|
8
|
-
* id:
|
9
|
-
* description: The inventory item's ID.
|
10
|
-
* type: string
|
11
|
-
* example: "iitem_12334"
|
12
|
-
* sku:
|
13
|
-
* description: The Stock Keeping Unit (SKU) code of the Inventory Item.
|
14
|
-
* type: string
|
15
|
-
* hs_code:
|
16
|
-
* description: The Harmonized System code of the Inventory Item. May be used by Fulfillment Providers to pass customs information to shipping carriers.
|
17
|
-
* type: string
|
18
|
-
* origin_country:
|
19
|
-
* description: The country in which the Inventory Item was produced. May be used by Fulfillment Providers to pass customs information to shipping carriers.
|
20
|
-
* type: string
|
21
|
-
* mid_code:
|
22
|
-
* description: The Manufacturers Identification code that identifies the manufacturer of the Inventory Item. May be used by Fulfillment Providers to pass customs information to shipping carriers.
|
23
|
-
* type: string
|
24
|
-
* title:
|
25
|
-
* description: "Title of the inventory item"
|
26
|
-
* type: string
|
27
|
-
* description:
|
28
|
-
* description: "Description of the inventory item"
|
29
|
-
* type: string
|
30
|
-
* thumbnail:
|
31
|
-
* description: "Thumbnail for the inventory item"
|
32
|
-
* type: string
|
33
|
-
* material:
|
34
|
-
* description: The material and composition that the Inventory Item is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers.
|
35
|
-
* type: string
|
36
|
-
* weight:
|
37
|
-
* description: The weight of the Inventory Item. May be used in shipping rate calculations.
|
38
|
-
* type: number
|
39
|
-
* height:
|
40
|
-
* description: The height of the Inventory Item. May be used in shipping rate calculations.
|
41
|
-
* type: number
|
42
|
-
* width:
|
43
|
-
* description: The width of the Inventory Item. May be used in shipping rate calculations.
|
44
|
-
* type: number
|
45
|
-
* length:
|
46
|
-
* description: The length of the Inventory Item. May be used in shipping rate calculations.
|
47
|
-
* type: number
|
48
|
-
* requires_shipping:
|
49
|
-
* description: Whether the item requires shipping.
|
50
|
-
* type: boolean
|
51
|
-
* metadata:
|
52
|
-
* type: object
|
53
|
-
* description: An optional key-value map with additional details
|
54
|
-
* example: {car: "white"}
|
55
|
-
* created_at:
|
56
|
-
* type: string
|
57
|
-
* description: "The date with timezone at which the resource was created."
|
58
|
-
* format: date-time
|
59
|
-
* updated_at:
|
60
|
-
* type: string
|
61
|
-
* description: "The date with timezone at which the resource was updated."
|
62
|
-
* format: date-time
|
63
|
-
* deleted_at:
|
64
|
-
* type: string
|
65
|
-
* description: "The date with timezone at which the resource was deleted."
|
66
|
-
* format: date-time
|
3
|
+
* The inventory item details.
|
67
4
|
*/
|
68
5
|
export interface InventoryItemDTO {
|
6
|
+
/**
|
7
|
+
* The ID of the inventory item.
|
8
|
+
*/
|
69
9
|
id: string;
|
10
|
+
/**
|
11
|
+
* The SKU of the inventory item.
|
12
|
+
*/
|
70
13
|
sku?: string | null;
|
14
|
+
/**
|
15
|
+
* The origin country of the inventory item.
|
16
|
+
*/
|
71
17
|
origin_country?: string | null;
|
18
|
+
/**
|
19
|
+
* The HS code of the inventory item.
|
20
|
+
*/
|
72
21
|
hs_code?: string | null;
|
22
|
+
/**
|
23
|
+
* Whether the inventory item requires shipping.
|
24
|
+
*/
|
73
25
|
requires_shipping: boolean;
|
26
|
+
/**
|
27
|
+
* The mid code of the inventory item.
|
28
|
+
*/
|
74
29
|
mid_code?: string | null;
|
30
|
+
/**
|
31
|
+
* The material of the inventory item.
|
32
|
+
*/
|
75
33
|
material?: string | null;
|
34
|
+
/**
|
35
|
+
* The weight of the inventory item.
|
36
|
+
*/
|
76
37
|
weight?: number | null;
|
38
|
+
/**
|
39
|
+
* The length of the inventory item.
|
40
|
+
*/
|
77
41
|
length?: number | null;
|
42
|
+
/**
|
43
|
+
* The height of the inventory item.
|
44
|
+
*/
|
78
45
|
height?: number | null;
|
46
|
+
/**
|
47
|
+
* The width of the inventory item.
|
48
|
+
*/
|
79
49
|
width?: number | null;
|
50
|
+
/**
|
51
|
+
* The title of the inventory item.
|
52
|
+
*/
|
80
53
|
title?: string | null;
|
54
|
+
/**
|
55
|
+
* The description of the inventory item.
|
56
|
+
*/
|
81
57
|
description?: string | null;
|
58
|
+
/**
|
59
|
+
* The thumbnail of the inventory item.
|
60
|
+
*/
|
82
61
|
thumbnail?: string | null;
|
62
|
+
/**
|
63
|
+
* Holds custom data in key-value pairs.
|
64
|
+
*/
|
83
65
|
metadata?: Record<string, unknown> | null;
|
66
|
+
/**
|
67
|
+
* The creation date of the inventory item.
|
68
|
+
*/
|
84
69
|
created_at: string | Date;
|
70
|
+
/**
|
71
|
+
* The update date of the inventory item.
|
72
|
+
*/
|
85
73
|
updated_at: string | Date;
|
74
|
+
/**
|
75
|
+
* The deletion date of the inventory item.
|
76
|
+
*/
|
86
77
|
deleted_at: string | Date | null;
|
87
78
|
}
|
88
79
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inventory-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAEvD
|
1
|
+
{"version":3,"file":"inventory-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAA;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAEzC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE/B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,wBAAwB,CAAA;IAElD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,wBAAwB,CAAA;IAEtD;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B"}
|
@@ -1,56 +1,56 @@
|
|
1
1
|
import { BaseFilterable, OperatorMap } from "../../dal";
|
2
2
|
/**
|
3
|
-
*
|
4
|
-
* type: object
|
5
|
-
* required:
|
6
|
-
* - inventory_item_id
|
7
|
-
* - location_id
|
8
|
-
* - stocked_quantity
|
9
|
-
* - reserved_quantity
|
10
|
-
* - incoming_quantity
|
11
|
-
* properties:
|
12
|
-
* location_id:
|
13
|
-
* description: the item location ID
|
14
|
-
* type: string
|
15
|
-
* stocked_quantity:
|
16
|
-
* description: the total stock quantity of an inventory item at the given location ID
|
17
|
-
* type: number
|
18
|
-
* reserved_quantity:
|
19
|
-
* description: the reserved stock quantity of an inventory item at the given location ID
|
20
|
-
* type: number
|
21
|
-
* incoming_quantity:
|
22
|
-
* description: the incoming stock quantity of an inventory item at the given location ID
|
23
|
-
* type: number
|
24
|
-
* metadata:
|
25
|
-
* type: object
|
26
|
-
* description: An optional key-value map with additional details
|
27
|
-
* example: {car: "white"}
|
28
|
-
* created_at:
|
29
|
-
* type: string
|
30
|
-
* description: "The date with timezone at which the resource was created."
|
31
|
-
* format: date-time
|
32
|
-
* updated_at:
|
33
|
-
* type: string
|
34
|
-
* description: "The date with timezone at which the resource was updated."
|
35
|
-
* format: date-time
|
36
|
-
* deleted_at:
|
37
|
-
* type: string
|
38
|
-
* description: "The date with timezone at which the resource was deleted."
|
39
|
-
* format: date-time
|
3
|
+
* The inventory level details.
|
40
4
|
*/
|
41
5
|
export interface InventoryLevelDTO {
|
6
|
+
/**
|
7
|
+
* The ID of the inventory level.
|
8
|
+
*/
|
42
9
|
id: string;
|
10
|
+
/**
|
11
|
+
* The associated inventory item's ID.
|
12
|
+
*/
|
43
13
|
inventory_item_id: string;
|
14
|
+
/**
|
15
|
+
* The associated location's ID.
|
16
|
+
*/
|
44
17
|
location_id: string;
|
18
|
+
/**
|
19
|
+
* The stocked quantity of the inventory level.
|
20
|
+
*/
|
45
21
|
stocked_quantity: number;
|
22
|
+
/**
|
23
|
+
* The reserved quantity of the inventory level.
|
24
|
+
*/
|
46
25
|
reserved_quantity: number;
|
26
|
+
/**
|
27
|
+
* The incoming quantity of the inventory level.
|
28
|
+
*/
|
47
29
|
incoming_quantity: number;
|
30
|
+
/**
|
31
|
+
* The available quantity of the inventory level.
|
32
|
+
*/
|
48
33
|
available_quantity: number;
|
34
|
+
/**
|
35
|
+
* Holds custom data in key-value pairs.
|
36
|
+
*/
|
49
37
|
metadata: Record<string, unknown> | null;
|
38
|
+
/**
|
39
|
+
* The creation date of the inventory level.
|
40
|
+
*/
|
50
41
|
created_at: string | Date;
|
42
|
+
/**
|
43
|
+
* The update date of the inventory level.
|
44
|
+
*/
|
51
45
|
updated_at: string | Date;
|
46
|
+
/**
|
47
|
+
* The deletion date of the inventory level.
|
48
|
+
*/
|
52
49
|
deleted_at: string | Date | null;
|
53
50
|
}
|
51
|
+
/**
|
52
|
+
* The filters to apply on the retrieved inventory levels.
|
53
|
+
*/
|
54
54
|
export interface FilterableInventoryLevelProps extends BaseFilterable<FilterableInventoryLevelProps> {
|
55
55
|
/**
|
56
56
|
* Filter inventory levels by the ID of their associated inventory item.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAIvD
|
1
|
+
{"version":3,"file":"inventory-level.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAIvD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IAExB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAExC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,6BACf,SAAQ,cAAc,CAAC,6BAA6B,CAAC;IACrD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAErC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAE/C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAEhD;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;CACjD"}
|
@@ -1,61 +1,51 @@
|
|
1
1
|
import { NumericalComparisonOperator, StringComparisonOperator } from "../../common";
|
2
2
|
/**
|
3
|
-
*
|
4
|
-
* title: "Reservation item"
|
5
|
-
* description: "Represents a reservation of an inventory item at a stock location"
|
6
|
-
* type: object
|
7
|
-
* required:
|
8
|
-
* - id
|
9
|
-
* - location_id
|
10
|
-
* - inventory_item_id
|
11
|
-
* - quantity
|
12
|
-
* properties:
|
13
|
-
* id:
|
14
|
-
* description: "The id of the reservation item"
|
15
|
-
* type: string
|
16
|
-
* location_id:
|
17
|
-
* description: "The id of the location of the reservation"
|
18
|
-
* type: string
|
19
|
-
* inventory_item_id:
|
20
|
-
* description: "The id of the inventory item the reservation relates to"
|
21
|
-
* type: string
|
22
|
-
* description:
|
23
|
-
* description: "Description of the reservation item"
|
24
|
-
* type: string
|
25
|
-
* created_by:
|
26
|
-
* description: "UserId of user who created the reservation item"
|
27
|
-
* type: string
|
28
|
-
* quantity:
|
29
|
-
* description: "The id of the reservation item"
|
30
|
-
* type: number
|
31
|
-
* metadata:
|
32
|
-
* type: object
|
33
|
-
* description: An optional key-value map with additional details
|
34
|
-
* example: {car: "white"}
|
35
|
-
* created_at:
|
36
|
-
* type: string
|
37
|
-
* description: "The date with timezone at which the resource was created."
|
38
|
-
* format: date-time
|
39
|
-
* updated_at:
|
40
|
-
* type: string
|
41
|
-
* description: "The date with timezone at which the resource was updated."
|
42
|
-
* format: date-time
|
43
|
-
* deleted_at:
|
44
|
-
* type: string
|
45
|
-
* description: "The date with timezone at which the resource was deleted."
|
46
|
-
* format: date-time
|
3
|
+
* The reservation item details.
|
47
4
|
*/
|
48
5
|
export interface ReservationItemDTO {
|
6
|
+
/**
|
7
|
+
* The ID of the reservation item.
|
8
|
+
*/
|
49
9
|
id: string;
|
10
|
+
/**
|
11
|
+
* The associated location's ID.
|
12
|
+
*/
|
50
13
|
location_id: string;
|
14
|
+
/**
|
15
|
+
* The associated inventory item's ID.
|
16
|
+
*/
|
51
17
|
inventory_item_id: string;
|
18
|
+
/**
|
19
|
+
* The quantity of the reservation item.
|
20
|
+
*/
|
52
21
|
quantity: number;
|
22
|
+
/**
|
23
|
+
* The associated line item's ID.
|
24
|
+
*/
|
53
25
|
line_item_id?: string | null;
|
26
|
+
/**
|
27
|
+
* The description of the reservation item.
|
28
|
+
*/
|
54
29
|
description?: string | null;
|
30
|
+
/**
|
31
|
+
* The created by of the reservation item.
|
32
|
+
*/
|
55
33
|
created_by?: string | null;
|
34
|
+
/**
|
35
|
+
* Holds custom data in key-value pairs.
|
36
|
+
*/
|
56
37
|
metadata: Record<string, unknown> | null;
|
38
|
+
/**
|
39
|
+
* The creation date of the reservation item.
|
40
|
+
*/
|
57
41
|
created_at: string | Date;
|
42
|
+
/**
|
43
|
+
* The update date of the reservation item.
|
44
|
+
*/
|
58
45
|
updated_at: string | Date;
|
46
|
+
/**
|
47
|
+
* The deletion date of the reservation item.
|
48
|
+
*/
|
59
49
|
deleted_at: string | Date | null;
|
60
50
|
}
|
61
51
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/reservation-item.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,cAAc,CAAA;AAErB
|
1
|
+
{"version":3,"file":"reservation-item.d.ts","sourceRoot":"","sources":["../../../src/inventory/common/reservation-item.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,cAAc,CAAA;AAErB;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE1B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAExC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEhC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAErC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAAA;IAE/C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,2BAA2B,CAAA;CAChD"}
|