Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: api-extractor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed Jul 16, 2020
1 parent 0760374 commit c02eebe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
26 changes: 13 additions & 13 deletions src/sections/fulfillment-inbound-shipment/codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import {
WeightUnitEnum,
} from './type'

enum GuidanceReasonEnum {
export enum GuidanceReasonEnum {
SlowMovingASIN = 'SlowMovingASIN',
NoApplicableGuidance = 'NoApplicableGuidance',
}

enum InboundGuidanceEnum {
export enum InboundGuidanceEnum {
InboundNotRecommended = 'InboundNotRecommended',
InboundOK = 'InboundOK',
}
Expand Down Expand Up @@ -181,22 +181,22 @@ export const ConfirmPreorderResponse = Codec.interface({
}),
})

enum BarcodeInstructionEnum {
export enum BarcodeInstructionEnum {
RequiresFNSKULabel = 'RequiresFNSKULabel',
CanUseOriginalBarcode = 'CanUserOriginalBarcode',
}

export const BarcodeInstruction = enumeration(BarcodeInstructionEnum)

enum PrepGuidanceEnum {
export enum PrepGuidanceEnum {
ConsultHelpDocuments = 'ConsultHelpDocuments',
NoAdditionalPrepRequired = 'NoAdditionalPrepRequired',
SeePrepInstructionsList = 'SeePrepInstructionsList',
}

export const PrepGuidance = enumeration(PrepGuidanceEnum)

export const PrepInstruction = enumeration(PrepInstructionEnum)
const PrepInstruction = enumeration(PrepInstructionEnum)

export const AmazonPrepFeesDetails = Codec.interface({
PrepInstruction,
Expand Down Expand Up @@ -245,7 +245,7 @@ export const GetPrepInstructionsForASINResponse = Codec.interface({
}),
})

enum TransportStatusEnum {
export enum TransportStatusEnum {
WORKING = 'WORKING',
ERROR_ON_ESTIMATING = 'ERROR_ON_ESTIMATING',
ESTIMATING = 'ESTIMATING',
Expand Down Expand Up @@ -305,7 +305,7 @@ export const PackageStatus = enumeration(PackageStatusEnum)

const DimensionsUnit = enumeration(DimensionsUnitEnum)

export const FIBDimensions = Codec.interface({
const FIBDimensions = Codec.interface({
Unit: DimensionsUnit,
Length: number,
Width: number,
Expand All @@ -314,7 +314,7 @@ export const FIBDimensions = Codec.interface({

const WeightUnit = enumeration(WeightUnitEnum)

export const FIBWeight = Codec.interface({
const FIBWeight = Codec.interface({
Unit: WeightUnit,
Value: number,
})
Expand All @@ -327,7 +327,7 @@ export const PartneredSmallParcelPackageOutput = Codec.interface({
CarrierName: string,
})

export const NonPartneredSmallParcelPackageOutput = Codec.interface({
const NonPartneredSmallParcelPackageOutput = Codec.interface({
CarrierName: string,
TrackingId: ensureString,
PackageStatus,
Expand All @@ -342,14 +342,14 @@ export const PartneredSmallParcelDataOutput = Codec.interface({
PartneredEstimate: optional(PartneredEstimate),
})

export const Contact = Codec.interface({
const Contact = Codec.interface({
Name: string,
Phone: string,
Email: string,
Fax: string,
})

export const Pallet = Codec.interface({
const Pallet = Codec.interface({
Dimensions: FIBDimensions,
Weight: optional(FIBWeight),
IsStacked: boolean,
Expand Down Expand Up @@ -491,15 +491,15 @@ export const GetBillOfLadingResponse = Codec.interface({
}),
})

enum LabelPrepTypeEnum {
export enum LabelPrepTypeEnum {
'NO_LABEL',
'SELLER_LABEL',
'AMAZON_LABEL',
}

export const LabelPrepType = enumeration(LabelPrepTypeEnum)

enum ShipmentStatusEnum {
export enum ShipmentStatusEnum {
'WORKING',
'SHIPPED',
'IN_TRANSIT',
Expand Down
38 changes: 19 additions & 19 deletions src/sections/fulfillment-inbound-shipment/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export enum PrepInstructionEnum {
HangGarment = 'HangGarment',
}

type PrepInstruction = keyof typeof PrepInstructionEnum
export type PrepInstruction = keyof typeof PrepInstructionEnum

export enum PrepOwnerEnum {
AMAZON = 'AMAZON',
Expand Down Expand Up @@ -205,20 +205,20 @@ export interface GetPrepInstructionsForASINParameters {
ShipToCountryCode: string
}

interface Amount {
export interface FIBAmount {
CurrencyCode: string
Value: string
}
interface PartneredEstimate {
Amount?: Amount
Amount?: FIBAmount
ConfirmDeadline?: Date
VoidDeadline?: Date
}

type DimensionsUnit = keyof typeof DimensionsUnitEnum
export type FIBDimensionsUnit = keyof typeof DimensionsUnitEnum

interface FIBDimensions {
Unit: DimensionsUnit
export interface FIBDimensions {
Unit: FIBDimensionsUnit
Length: number
Width: number
Height: number
Expand All @@ -229,10 +229,10 @@ export enum WeightUnitEnum {
'kilograms',
}

type WeightUnit = keyof typeof WeightUnitEnum
export type FIBWeightUnit = keyof typeof WeightUnitEnum

interface FIBWeight {
Unit: WeightUnit
export interface FIBWeight {
Unit: FIBWeightUnit
Value: number
}

Expand All @@ -252,44 +252,44 @@ export interface PartneredSmallParcelPackageInput {
Weight: FIBWeight
}

interface PartneredSmallParcelDataInput {
export interface PartneredSmallParcelDataInput {
CarrierName: string
PackageList: PartneredSmallParcelPackageInput[]
}

interface NonPartneredSmallParcelPackageOutput {
export interface NonPartneredSmallParcelPackageOutput {
TrackingId: string
}

interface NonPartneredSmallParcelDataInput {
export interface NonPartneredSmallParcelDataInput {
CarrierName: string
PackageList: NonPartneredSmallParcelPackageOutput[]
}

interface Contact {
export interface Contact {
Name: string
Phone: string
Email: string
Fax: string
}

interface Pallet {
export interface Pallet {
Dimension: FIBDimensions
Weight?: FIBWeight
IsStacked: boolean
}

interface PartneredLtlDataInput {
export interface PartneredLtlDataInput {
Contact: Contact
BoxCount: number
SellerFreightClass?: string
FreightReadyDate: Date // YYYY-MM-DD
PalletList?: Pallet[]
TotalWeight?: FIBWeight
SellerDeclaredValue?: Amount
SellerDeclaredValue?: FIBAmount
}

interface NonPartneredLtlDataInput {
export interface NonPartneredLtlDataInput {
CarrierName: string
ProNumber: string
}
Expand Down Expand Up @@ -361,7 +361,7 @@ export const canonicalizePutTransportContentParameters = (
}
}

interface SingleShipmentIdParameters {
export interface SingleShipmentIdParameters {
ShipmentId: string
}
export type EstimateTransportRequestParameters = SingleShipmentIdParameters
Expand All @@ -372,7 +372,7 @@ export type ConfirmTransportRequestParameters = SingleShipmentIdParameters

export type VoidTransportRequestParameters = SingleShipmentIdParameters

enum PageTypeEnum {
export enum PageTypeEnum {
'PackageLabel_Letter_2',
'PackageLabel_Letter_6',
'PackageLabel_A4_2',
Expand Down

0 comments on commit c02eebe

Please sign in to comment.