Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions src/types/ContactMech.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { Geo } from "./index"

export interface ContactMech {
contactMechId: string,
contactMechTypeEnumId?: string,
dataSourceId?: string,
infoString?: string,
gatewayCimId?: string,
trustLevelEnumId?: string,
validateMessage?: string,
paymentFraudEvidenceId?: string,
replacesContactMechId?: string,
telecomNumber?: {
contactMechId: string,
countryCode?: string,
areaCode?: string,
contactNumber?: string,
askForName?: string,
},
postalAddress?: {
contactMechId: string,
toName?: string,
attnName?: string,
address1?: string,
address2?: string,
unitNumber?: string,
directions?: string,
city?: string,
cityGeoId?: string,
schoolDistrictGeoId?: string,
countyGeoId?: string,
stateProvinceGeoId?: string,
countryGeoId?: string,
postalCode?: string,
postalCodeExt?: string,
postalCodeGeoId?: string,
geoPointId?: string,
commercial?: string,
accessCode?: string,
telecomContactMechId?: string,
emailContactMechId?: string,
shipGatewayAddressId?: string,
cityGeo?: Geo,
countyGeo?: Geo,
stateProvinceGeo?: Geo,
postalCodeGeo?: Geo,
countryGeo?: Geo,
telecomContactMech?: string,
emailContactMech?: string
}
}
13 changes: 13 additions & 0 deletions src/types/Enumeration.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export interface Enumeration {
enumId: string,
enumTypeId?: string,
parentEnumId?: string,
enumCode?: string,
sequenceNum?: number,
description?: string,
optionValue?: string,
optionIndicator?: string,
relatedEnumId?: string,
relatedEnumTypeId?: string,
statusFlowId?: string,
}
10 changes: 10 additions & 0 deletions src/types/Geo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export interface Geo {
geoId: string,
geoTypeEnumId?: string,
geoName?: string,
geoNameLocal?: string,
geoCodeAlpha2?: string,
geoCodeAlpha3?: string,
geoCodeNumeric?: string,
wellKnownText?: string,
}
61 changes: 61 additions & 0 deletions src/types/Party.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import { ContactMech, Enumeration } from "./index"

export interface Party {
partyId: string,
pseudoId?: string,
partyTypeEnumId?: string,
disabled?: string,
customerStatusId?: string,
ownerPartyId?: string,
externalId?: string,
dataSourceId?: string,
gatewayCimId?: string,
comments?: string,
shippingInstructions?: string,
hasDuplicates?: string,
lastDupCheckDate?: string,
mergedToPartyId?: string,
type?: Enumeration,
organization?: {
partyId: string,
organizationName?: string,
},
person?: {
partyId: string,
firstName?: string,
middleName?: string,
lastName?: string,
},
identifications?: Array<PartyIdentification>,
contactMechs?: Array<{
partyId: string,
contactMechId: string,
contactMechPurposeId: string,
fromDate: string,
thruDate?: string,
extension?: string,
comments?: string,
allowSolicitation?: string,
usedSince?: string,
usedUntil?: string,
verifyCode?: string,
verifyCodeDate?: string,
verifyCodeAttempts?: number,
contactMech?: ContactMech,
purpose?: {
contactMechPurposeId: string,
contactMechTypeEnumId?: string,
description?: string
}
}>
}

export interface PartyIdentification {
partyId: string,
partyIdTypeEnumId: string,
idValue?: string,
issuedBy?: string,
issuedByPartyId?: string,
expireDate?: string,
type?: Enumeration
}
217 changes: 217 additions & 0 deletions src/types/Product.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
import { Enumeration, Geo, Party, Status, Uom } from "./index"

export interface Product {
productId: string,
pseudoId: string,
productTypeEnumId: string,
productClassEnumId: string,
assetTypeEnumId: string,
assetClassEnumId: string,
statusId: string,
ownerPartyId: string,
productName: string,
description: string,
comments: string,
salesIntroductionDate: string,
salesDiscontinuationDate: string,
salesDiscWhenNotAvail: string,
supportDiscontinuationDate: string,
requireInventory: string,
chargeShipping: string,
signatureRequiredEnumId: string,
shippingInsuranceReqd: string,
inShippingBox: string,
defaultShipmentBoxTypeId: string,
taxable: string,
taxCode: string,
returnable: string,
amountUomId: string,
amountFixed: number,
amountRequire: string,
originGeoId: string,
type: Enumeration,
class: Enumeration,
assetType: Enumeration,
assetClass: Enumeration,
status: Status,
originGeo: Geo,
defaultBoxType: {
shipmentBoxTypeId: string,
pseudoId: string,
description: string,
dimensionUomId: string,
boxLength: number,
boxWidth: number,
boxHeight: number,
weightUomId: string,
boxWeight: number,
defaultGrossWeight: number,
capacityUomId: string,
boxCapacity: number,
gatewayBoxId: string
},
amountUom: Uom,
assocs: Array<ProductAssoc>,
toAssocs: Array<ProductAssoc>,
contents: Array<{
productContentId: string,
productId: string,
contentLocation: string,
productContentTypeEnumId: string,
locale: string,
productFeatureId: string,
productStoreId: string,
fromDate: string,
thruDate: string,
description: string,
sequenceNum: number,
userId: string
}>,
dimensions: Array<{
productId: string,
dimensionTypeId: string,
value: number,
valueUomId: string,
}>,
geos: Array<{
productId: string,
geoId: string,
productGeoPurposeEnumId: string,
description: string,
geo: Geo
}>,
identifications: Array<{
productId: string,
productIdTypeEnumId: string,
idValue: string
}>,
parties: Array<{
productId: string,
partyId: string,
roleTypeId: string,
fromDate: string,
thruDate: string,
sequenceNum: number,
comments: string,
otherPartyItemName: string,
otherPartyItemId: string,
party: Party,
role: {
roleTypeId: string,
parentTypeId: string,
description: string
}
}>,
prices: Array<{
productPriceId: string,
productId: string,
productStoreId: string,
vendorPartyId: string,
customerPartyId: string,
priceTypeEnumId: string,
pricePurposeEnumId: string,
fromDate: string,
thruDate: string,
minQuantity: number,
price: number,
priceUomId: string,
termUomId: string,
taxInPrice: string,
taxAmount: number,
taxPercentage: number,
taxAuthorityId: string,
agreementId: string,
agreementItemSeqId: string,
otherPartyItemName: string,
otherPartyItemId: string,
comments: string,
quantityIncrement: number,
quantityIncluded: number,
quantityUomId: string,
preferredOrderEnumId: string,
supplierRatingTypeEnumId: string,
standardLeadTimeDays: number,
canDropShip: string
}>,
categories: Array<{
productCategoryId: string,
productId: string,
fromDate: string,
thruDate: string,
comments: string,
sequenceNum: number,
quantity: number
}>,
features: Array<{
productId: string,
productFeatureId: string,
fromDate: string,
thruDate: string,
applTypeEnumId: string,
sequenceNum: number,
amount: number,
recurringAmount: number,
featureProductId: string,
feature: ProductFeature
}>
}

export interface ProductAssoc {
productId: string,
toProductId: string,
productAssocTypeEnumId: string,
fromDate: string,
thruDate: string,
sequenceNum: number,
reason: string,
quantity: number,
scrapFactor: number,
instruction: string,
type: Enumeration,
toProduct: {
productId: string,
pseudoId: string,
productTypeEnumId: string,
productClassEnumId: string,
assetTypeEnumId: string,
assetClassEnumId: string,
statusId: string,
ownerPartyId: string,
productName: string,
description: string,
comments: string,
salesIntroductionDate: string,
salesDiscontinuationDate: string,
salesDiscWhenNotAvail: string,
supportDiscontinuationDate: string,
requireInventory: string,
chargeShipping: string,
signatureRequiredEnumId: string,
shippingInsuranceReqd: string,
inShippingBox: string,
defaultShipmentBoxTypeId: string,
taxable: string,
taxCode: string,
returnable: string,
amountUomId: string,
amountFixed: number,
amountRequire: string,
originGeoId: string
}
}

export interface ProductFeature {
productFeatureId: string,
productFeatureTypeEnumId: string,
description: string,
numberSpecified: number,
numberUomId: string,
defaultAmount: number,
defaultSequenceNum: number,
abbrev: string,
idCode: string,
ownerPartyId: string,
numberPerPallet: number,
perPalletTier: number,
tiersPerPallet: number
}
6 changes: 6 additions & 0 deletions src/types/Status.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export interface Status {
statusId: string;
statusTypeId?: string;
statusCode?: string;
description?: string;
}
6 changes: 6 additions & 0 deletions src/types/Uom.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export interface Uom {
uomId: string,
uomTypeEnumId?: string,
abbreviation?: string,
description?: string
}
18 changes: 18 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { ContactMech } from "./ContactMech";
import { Enumeration } from "./Enumeration";
import { Geo } from "./Geo";
import { Party, PartyIdentification } from "./Party";
import { Product } from "./Product";
import { Status } from "./Status";
import { Uom } from "./Uom";

export {
ContactMech,
Enumeration,
Geo,
Party,
PartyIdentification,
Product,
Status,
Uom
}