@shipengine/connect-fulfillment-provider-api 0.6.0 → 0.8.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.
@@ -15,7 +15,7 @@ export declare type FulfillmentServiceDefinition = {
15
15
  /** @description Name of the shipping service */
16
16
  Name: string;
17
17
  /** @description Shortened name of the shipping service */
18
- Abbreviation?: string;
18
+ Abbreviation: string;
19
19
  /** @description Api service code used for rates and labels */
20
20
  Code: string;
21
21
  };
@@ -1,5 +1,6 @@
1
1
  import { Auth } from '..';
2
2
  export declare type CancelFulfillmentRequest = {
3
+ transaction_id: string;
3
4
  auth: Auth;
4
5
  fulfillment_provider_order_id: string;
5
6
  reason: string;
@@ -1,4 +1,5 @@
1
1
  import { Auth } from '..';
2
2
  export declare type ConnectRequest = {
3
+ transaction_id: string;
3
4
  auth: Auth;
4
5
  };
@@ -1,5 +1,6 @@
1
1
  import { Auth } from '..';
2
2
  import { SalesOrder } from '..';
3
3
  export interface DelegateFulfillmentRequest extends SalesOrder {
4
+ transaction_id: string;
4
5
  auth: Auth;
5
6
  }
@@ -1,5 +1,6 @@
1
1
  import { Auth } from '..';
2
2
  export declare type GetFulfillmentsRequest = {
3
+ transaction_id: string;
3
4
  auth: Auth;
4
5
  fulfillment_provider_order_id: string;
5
6
  };
@@ -1,5 +1,7 @@
1
1
  import { Auth } from '..';
2
2
  export declare type GetInventoryRequest = {
3
+ transaction_id: string;
3
4
  auth: Auth;
5
+ skus?: string[];
4
6
  next_request?: any;
5
7
  };
@@ -1,6 +1,7 @@
1
1
  import { Auth, ConfirmationTypes, AdvancedOptions, InsuranceProviders, Package, Customs, ShipFrom, ShipTo, PudoLocation, FulfillmentPlanDetails, TimeWindow } from '..';
2
2
  /** @description Basic structure for a request to get rates */
3
3
  export interface GetRatesRequest {
4
+ transaction_id: string;
4
5
  auth: Auth;
5
6
  service_code?: string;
6
7
  ship_datetime: string;
@@ -1,5 +1,6 @@
1
1
  import { Auth } from '..';
2
2
  export declare type GetRecentChangesRequest = {
3
+ transaction_id: string;
3
4
  auth: Auth;
4
5
  since: string;
5
6
  next_request?: any;
@@ -1,4 +1,5 @@
1
1
  import { Auth } from '..';
2
2
  export declare type ReconnectRequest = {
3
+ transaction_id: string;
3
4
  auth: Auth;
4
5
  };
@@ -1,12 +1,11 @@
1
+ export declare type InventoryItem = {
2
+ sku: string;
3
+ warehouse_id?: string;
4
+ available_quantity: number;
5
+ committed_quantity: number;
6
+ on_hand_quantity: number;
7
+ };
1
8
  export declare type GetInventoryResponse = {
2
- inventory?: [
3
- {
4
- sku: string;
5
- warehouse_id: string;
6
- available_quantity: number;
7
- committed_quantity: number;
8
- on_hand_quantity: number;
9
- }
10
- ];
9
+ inventory?: InventoryItem[];
11
10
  next_request?: any;
12
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/connect-fulfillment-provider-api",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "OpenAPI specification and TypeScript definitions for the Connect Fulfillment Provider API",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -8,8 +8,7 @@
8
8
  "build": "yarn build:ts",
9
9
  "format": "prettier --single-quote --trailing-comma=all --write \"src/**/*.ts\"",
10
10
  "lint": "prettier --single-quote --trailing-comma=all --check \"src/**/*.ts\"",
11
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
12
- "test": "jest"
11
+ "test": "vitest run"
13
12
  },
14
13
  "repository": {
15
14
  "type": "git",
@@ -25,10 +24,8 @@
25
24
  "license": "Apache-2.0",
26
25
  "devDependencies": {
27
26
  "@types/express": "^4.17.13",
28
- "@types/jest": "^27.0.1",
29
- "jest": "^27.1.1",
30
27
  "prettier": "^2.4.0",
31
- "ts-jest": "^27.0.5",
32
- "typescript": "^4.3.5"
28
+ "typescript": "^4.3.5",
29
+ "vitest": "^0.23.4"
33
30
  }
34
31
  }