Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented: order schema and its related schema used in the order taking reference from the moqui order schema(#2f2h74x) #54

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
24 changes: 24 additions & 0 deletions src/types/CommunicationEvent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export interface CommunicationEvent {
communicationEventId: string,
communicationEventTypeId?: string,
contactMechTypeEnumId?: string,
statusId?: string,
parentCommEventId?: string,
rootCommEventId?: string,
fromContactMechId?: string,
toContactMechId?: string,
fromPartyId?: string,
fromRoleTypeId?: string,
toPartyId?: string,
toRoleTypeId?: string,
entryDate?: string,
datetimeStarted?: string,
datetimeEnded?: string,
subject?: string,
contentType?: string,
body?: string,
note?: string,
reasonEnumId?: string,
contactListId?: string,
emailMessageId?: string
}
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,
}
Loading