From 3958501802f76c18852cb5a2de15c1a1a0236f32 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 10 Jun 2022 12:35:43 +0530 Subject: [PATCH 1/6] Implemented: order schema and its related schema used in the order taking reference from the moqui order schema(#2f2h74x) --- src/types/ContactMech.ts | 51 +++++ src/types/Enumeration.ts | 13 ++ src/types/Geo.ts | 10 + src/types/Identification.ts | 11 ++ src/types/Order.ts | 369 ++++++++++++++++++++++++++++++++++++ src/types/Party.ts | 55 ++++++ src/types/Status.ts | 6 + src/types/Uom.ts | 6 + src/types/index.ts | 21 ++ 9 files changed, 542 insertions(+) create mode 100644 src/types/ContactMech.ts create mode 100644 src/types/Enumeration.ts create mode 100644 src/types/Geo.ts create mode 100644 src/types/Identification.ts create mode 100644 src/types/Order.ts create mode 100644 src/types/Party.ts create mode 100644 src/types/Status.ts create mode 100644 src/types/Uom.ts create mode 100644 src/types/index.ts diff --git a/src/types/ContactMech.ts b/src/types/ContactMech.ts new file mode 100644 index 00000000..2ba1e0a8 --- /dev/null +++ b/src/types/ContactMech.ts @@ -0,0 +1,51 @@ +import { Geo } from "./Geo" + +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 + } +} \ No newline at end of file diff --git a/src/types/Enumeration.ts b/src/types/Enumeration.ts new file mode 100644 index 00000000..5d29acc4 --- /dev/null +++ b/src/types/Enumeration.ts @@ -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, +} \ No newline at end of file diff --git a/src/types/Geo.ts b/src/types/Geo.ts new file mode 100644 index 00000000..8da7f5a8 --- /dev/null +++ b/src/types/Geo.ts @@ -0,0 +1,10 @@ +export interface Geo { + geoId?: string, + geoTypeEnumId?: string, + geoName?: string, + geoNameLocal?: string, + geoCodeAlpha2?: string, + geoCodeAlpha3?: string, + geoCodeNumeric?: string, + wellKnownText?: string, +} \ No newline at end of file diff --git a/src/types/Identification.ts b/src/types/Identification.ts new file mode 100644 index 00000000..c47e8346 --- /dev/null +++ b/src/types/Identification.ts @@ -0,0 +1,11 @@ +import { Enumeration } from "./Enumeration"; + +export interface Identification { + partyId: string, + partyIdTypeEnumId: string, + idValue: string, + issuedBy: string, + issuedByPartyId: string, + expireDate: string, + type: Enumeration +} \ No newline at end of file diff --git a/src/types/Order.ts b/src/types/Order.ts new file mode 100644 index 00000000..7a7f8c32 --- /dev/null +++ b/src/types/Order.ts @@ -0,0 +1,369 @@ +import { ContactMech } from "./ContactMech" +import { Enumeration } from "./Enumeration" +import { Party } from "./Party" +import { Status } from "./Status" +import { Uom } from "./Uom" + +export interface Order { + orderId: string, + orderName: string, + entryDate: string, + placedDate: string, + approvedDate: string, + completedDate: string, + statusId: string, + processingStatusId: string, + orderRevision: number, + currencyUomId: string, + billingAccountId: string, + productStoreId: string, + salesChannelEnumId: string, + externalId: string, + externalRevision: string, + originId: string, + originUrl: string, + syncStatusId: string, + systemMessageRemoteId: string, + enteredByPartyId: string, + parentOrderId: string, + lastOrderedDate: string, + recurAutoInvoice: string, + remainingSubTotal: number, + grandTotal: number, + status: Status, + currencyUom: Uom, + salesChannel: Enumeration, + parts: Array, + notes: [ + { + orderId: string, + noteDate: string, + noteText: string, + internalNote: string, + userId: string, + } + ], + communicationEvents: [ + { + orderId: string, + communicationEventId: string + } + ] +} + +export interface OrderItem { + orderId: string, + orderItemSeqId: string, + orderPartSeqId: string, + parentItemSeqId: string, + itemTypeEnumId: string, + productId: string, + productFeatureId: string, + otherPartyProductId: string, + productParameterSetId: string, + itemDescription: string, + comments: string, + quantity: number, + quantityUomId: string, + quantityCancelled: number, + selectedAmount: number, + priority: number, + requiredByDate: string, + unitAmount: number, + unitListPrice: number, + isModifiedPrice: string, + standardCost: number, + externalItemSeqId: string, + fromAssetId: string, + productPriceId: string, + productCategoryId: string, + isPromo: string, + promoQuantity: number, + promoTimesUsed: number, + storePromotionId: string, + promoCodeId: string, + promoCodeText: string, + subscriptionId: string, + finAccountId: string, + finAccountTransId: string, + overrideGlAccountId: string, + salesOpportunityId: string, + sourceReferenceId: string, + sourcePercentage: number, + amountAlreadyIncluded: number, + exemptAmount: number, + customerReferenceId: string, + taxAuthorityId: string, + itemType: Enumeration, + product: { + productId: string, + pseudoId: string, // remove defaults to productId + productTypeEnumId: string, + productClassEnumId: string, + assetTypeEnumId: string, + assetClassEnumId: string, + statusId: string, + ownerPartyId: string, // brand + 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, + }, + quantityUom: Uom, + reservations: [ + { + assetReservationId: string, + assetId: string, + productId: string, + orderId: string, + orderItemSeqId: string, + reservationOrderEnumId: string, + quantity: number, + quantityNotAvailable: number, + quantityNotIssued: number, + reservedDate: string, + originalPromisedDate: string, + currentPromisedDate: string, + priority: number, + sequenceNum: number, + } + ], + issuances: [ // outgoing shipments + { + assetIssuanceId: string, + assetId: string, + assetReservationId: string, + orderId: string, + orderItemSeqId: string, + shipmentId: string, + shipmentItemSourceId: string, + productId: string, + invoiceId: string, + invoiceItemSeqId: string, + returnId: string, + returnItemSeqId: string, + workEffortId: string, + facilityId: string, + assetMaintenanceId: string, + issuedByUserId: string, + issuedDate: string, + quantity: number, + quantityCancelled: number, + acctgTransResultEnumId: string + } + ], + receipts: [ // incoming shipments + { + assetReceiptId: string, + assetId: string, + productId: string, + orderId: string, + orderItemSeqId: string, + shipmentId: string, + shipmentItemSourceId: string, + shipmentPackageSeqId: string, + invoiceId: string, + invoiceItemSeqId: string, + returnId: string, + returnItemSeqId: string, + workEffortId: string, + receivedByUserId: string, + receivedDate: string, + itemDescription: string, + quantityAccepted: number, + quantityRejected: number, + rejectionReasonEnumId: string, + acctgTransResultEnumId: string + } + ], + shipmentSources: [ + { + shipmentItemSourceId: string, + shipmentId: string, + productId: string, + binLocationNumber: number, + orderId: string, + orderItemSeqId: string, + returnId: string, + returnItemSeqId: string, + statusId: string, + quantity: number, + quantityNotHandled: number, + quantityPicked: number, + invoiceId: string, + invoiceItemSeqId: string + } + ], + billings: [ + { + orderItemBillingId: string, + orderId: string, + orderItemSeqId: string, + invoiceId: string, + invoiceItemSeqId: string, + assetIssuanceId: string, + assetReceiptId: string, + shipmentId: string, + quantity: number, + amount: number + } + ] +} + +export interface OrderPart { + orderId: string, + orderPartSeqId: string, + parentPartSeqId: string, + partName: string, + statusId: string, + vendorPartyId: string, // ship from vendor + customerPartyId: string, // bill to customer + otherPartyOrderId: string, + otherPartyOrderDate: string, + facilityId: string, // from where the order will be fulfilled + carrierPartyId: string, + shipmentMethodEnumId: string, + postalContactMechId: string, // points to shipping address + telecomContactMechId: string, // points to a phone number + trackingNumber: string, + shippingInstructions: string, + maySplit: string, + signatureRequiredEnumId: string, + giftMessage: string, + isGift: string, + isNewCustomer: string, + partTotal: number, + priority: number, + shipAfterDate: string, + shipBeforeDate: string, + estimatedShipDate: string, + estimatedDeliveryDate: string, + estimatedPickUpDate: string, + validFromDate: string, + validThruDate: string, + autoCancelDate: string, + dontCancelSetDate: string, + dontCancelSetUserId: string, + disablePromotions: string, + disableShippingCalc: string, + disableTaxCalc: string, + reservationAutoEnumId: string, + status: Status, + items: Array, + parties: [ + { + orderId: string, + orderPartSeqId: string, + partyId: string, + roleTypeId: string, // which party is this, customer, accountant, vendor, ...... + sequenceNum: number, + party: Party, + roleType: { + roleTypeId: string, + parentTypeId: string, + description: string + } + } + ], + contactMechs: [ + { + orderId: string, + orderPartSeqId: string, + contactMechPurposeId: string, + contactMechId: string, + contactMech: ContactMech + } + ], + vendor: Party, + customer: Party, + carrier: Party, + shipmentMethod: Enumeration, + postal: ContactMech, + telecom: ContactMech, + facility: { + facilityId: string, + pseudoId: string, + facilityTypeEnumId: string, + parentFacilityId: string, + statusId: string, + ownerPartyId: string, + facilityName: string, + facilitySize: number, + facilitySizeUomId: string, + openedDate: string, + closedDate: string, + description: string, + geoId: string, + geoPointId: string, + countyGeoId: string, + stateGeoId: string, + assetAllowOtherOwner: string, + assetAllowIssueOverQoh: string, + assetInventoryLocRequire: string, + defaultDaysToShip: number, + externalId: string, + originId: string, + }, + payments: [ + { + paymentId: string, + paymentTypeEnumId: string, + fromPartyId: string, + toPartyId: string, + paymentInstrumentEnumId: string, + paymentMethodId: string, + toPaymentMethodId: string, + paymentGatewayConfigId: string, + orderId: string, + orderPartSeqId: string, + orderItemSeqId: string, + statusId: string, + effectiveDate: string, + settlementDate: string, + dueDate: string, + paymentAuthCode: string, + paymentRefNum: string, + comments: string, + memo: string, + distGroupEnumId: string, + amount: number, + amountUomId: string, + appliedTotal: number, + unappliedTotal: number, + forInvoiceId: string, + refundForPaymentId: string, + finAccountId: string, + finAccountAuthId: string, + finAccountTransId: string, + overrideGlAccountId: string, + overrideOrgPartyId: string, + partyRelationshipId: string, + timePeriodId: string, + originalCurrencyAmount: number, + originalCurrencyUomId: string, + presentFlag: string, + swipedFlag: string, + processAttempt: number, + needsNsfRetry: string, + acctgTransResultEnumId: string, + reconcileStatusId: string, + paymentMethodFileId: string, + } + ] +} diff --git a/src/types/Party.ts b/src/types/Party.ts new file mode 100644 index 00000000..aa07e6ea --- /dev/null +++ b/src/types/Party.ts @@ -0,0 +1,55 @@ +import { ContactMech } from "./ContactMech" +import { Enumeration } from "./Enumeration" +import { Identification } from "./Identification" + +export interface Party { + partyId: string, + pseudoId: string, // remove default to partyId + partyTypeEnumId: string, + disabled: string, + customerStatusId: string, + ownerPartyId: string, // who owns data for this party, like for customer who owns the data + 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, + contactMechs: [ // PartyContactMech + { + 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 + } + } + ] +} \ No newline at end of file diff --git a/src/types/Status.ts b/src/types/Status.ts new file mode 100644 index 00000000..51c62dc4 --- /dev/null +++ b/src/types/Status.ts @@ -0,0 +1,6 @@ +export interface Status { + statusId?: string; + statusTypeId?: string; + statusCode?: string; + description?: string; +} \ No newline at end of file diff --git a/src/types/Uom.ts b/src/types/Uom.ts new file mode 100644 index 00000000..18d9845f --- /dev/null +++ b/src/types/Uom.ts @@ -0,0 +1,6 @@ +export interface Uom { + uomId?: string, + uomTypeEnumId?: string, + abbreviation?: string, + description?: string +} \ No newline at end of file diff --git a/src/types/index.ts b/src/types/index.ts new file mode 100644 index 00000000..92330fde --- /dev/null +++ b/src/types/index.ts @@ -0,0 +1,21 @@ +import { ContactMech } from "./ContactMech"; +import { Enumeration } from "./Enumeration"; +import { Geo } from "./Geo"; +import { Identification } from "./Identification"; +import { Order, OrderItem, OrderPart } from "./Order"; +import { Party } from "./Party"; +import { Status } from "./Status"; +import { Uom } from "./Uom"; + +export { + ContactMech, + Enumeration, + Geo, + Identification, + Order, + OrderItem, + OrderPart, + Party, + Status, + Uom +} \ No newline at end of file From b4bbf9eb47d41c17b0555030421c54b1c7f48822 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 10 Jun 2022 14:38:32 +0530 Subject: [PATCH 2/6] Improved: order schema to make some parameters optional(#2f2h74x) --- src/types/ContactMech.ts | 90 ++--- src/types/Geo.ts | 2 +- src/types/Identification.ts | 12 +- src/types/Order.ts | 683 +++++++++++++++++------------------- src/types/Party.ts | 88 +++-- src/types/Status.ts | 2 +- src/types/Uom.ts | 2 +- 7 files changed, 426 insertions(+), 453 deletions(-) diff --git a/src/types/ContactMech.ts b/src/types/ContactMech.ts index 2ba1e0a8..a1b0b4aa 100644 --- a/src/types/ContactMech.ts +++ b/src/types/ContactMech.ts @@ -1,51 +1,51 @@ -import { Geo } from "./Geo" +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, + 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 + 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 } } \ No newline at end of file diff --git a/src/types/Geo.ts b/src/types/Geo.ts index 8da7f5a8..8d359acf 100644 --- a/src/types/Geo.ts +++ b/src/types/Geo.ts @@ -1,5 +1,5 @@ export interface Geo { - geoId?: string, + geoId: string, geoTypeEnumId?: string, geoName?: string, geoNameLocal?: string, diff --git a/src/types/Identification.ts b/src/types/Identification.ts index c47e8346..f1266cde 100644 --- a/src/types/Identification.ts +++ b/src/types/Identification.ts @@ -1,11 +1,11 @@ -import { Enumeration } from "./Enumeration"; +import { Enumeration } from "./index"; export interface Identification { partyId: string, partyIdTypeEnumId: string, - idValue: string, - issuedBy: string, - issuedByPartyId: string, - expireDate: string, - type: Enumeration + idValue?: string, + issuedBy?: string, + issuedByPartyId?: string, + expireDate?: string, + type?: Enumeration } \ No newline at end of file diff --git a/src/types/Order.ts b/src/types/Order.ts index 7a7f8c32..4826a240 100644 --- a/src/types/Order.ts +++ b/src/types/Order.ts @@ -1,369 +1,346 @@ -import { ContactMech } from "./ContactMech" -import { Enumeration } from "./Enumeration" -import { Party } from "./Party" -import { Status } from "./Status" -import { Uom } from "./Uom" +import { ContactMech, Enumeration, Party, Status, Uom } from "./index" export interface Order { orderId: string, - orderName: string, - entryDate: string, - placedDate: string, - approvedDate: string, - completedDate: string, - statusId: string, - processingStatusId: string, - orderRevision: number, - currencyUomId: string, - billingAccountId: string, - productStoreId: string, - salesChannelEnumId: string, - externalId: string, - externalRevision: string, - originId: string, - originUrl: string, - syncStatusId: string, - systemMessageRemoteId: string, - enteredByPartyId: string, - parentOrderId: string, - lastOrderedDate: string, - recurAutoInvoice: string, - remainingSubTotal: number, - grandTotal: number, - status: Status, - currencyUom: Uom, - salesChannel: Enumeration, - parts: Array, - notes: [ - { - orderId: string, - noteDate: string, - noteText: string, - internalNote: string, - userId: string, - } - ], - communicationEvents: [ - { - orderId: string, - communicationEventId: string - } - ] + orderName?: string, + entryDate?: string, + placedDate?: string, + approvedDate?: string, + completedDate?: string, + statusId?: string, + processingStatusId?: string, + orderRevision?: number, + currencyUomId?: string, + billingAccountId?: string, + productStoreId?: string, + salesChannelEnumId?: string, + externalId?: string, + externalRevision?: string, + originId?: string, + originUrl?: string, + syncStatusId?: string, + systemMessageRemoteId?: string, + enteredByPartyId?: string, + parentOrderId?: string, + lastOrderedDate?: string, + recurAutoInvoice?: string, + remainingSubTotal?: number, + grandTotal?: number, + status?: Status, + currencyUom?: Uom, + salesChannel?: Enumeration, + parts?: Array, + notes?: Array<{ + orderId?: string, + noteDate?: string, + noteText?: string, + internalNote?: string, + userId?: string, + }>, + communicationEvents?: Array<{ + orderId?: string, + communicationEventId?: string + }> } - + + export interface OrderItem { orderId: string, orderItemSeqId: string, - orderPartSeqId: string, - parentItemSeqId: string, - itemTypeEnumId: string, - productId: string, - productFeatureId: string, - otherPartyProductId: string, - productParameterSetId: string, - itemDescription: string, - comments: string, - quantity: number, - quantityUomId: string, - quantityCancelled: number, - selectedAmount: number, - priority: number, - requiredByDate: string, - unitAmount: number, - unitListPrice: number, - isModifiedPrice: string, - standardCost: number, - externalItemSeqId: string, - fromAssetId: string, - productPriceId: string, - productCategoryId: string, - isPromo: string, - promoQuantity: number, - promoTimesUsed: number, - storePromotionId: string, - promoCodeId: string, - promoCodeText: string, - subscriptionId: string, - finAccountId: string, - finAccountTransId: string, - overrideGlAccountId: string, - salesOpportunityId: string, - sourceReferenceId: string, - sourcePercentage: number, - amountAlreadyIncluded: number, - exemptAmount: number, - customerReferenceId: string, - taxAuthorityId: string, - itemType: Enumeration, - product: { - productId: string, - pseudoId: string, // remove defaults to productId - productTypeEnumId: string, - productClassEnumId: string, - assetTypeEnumId: string, - assetClassEnumId: string, - statusId: string, - ownerPartyId: string, // brand - 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, + orderPartSeqId?: string, + parentItemSeqId?: string, + itemTypeEnumId?: string, + productId?: string, + productFeatureId?: string, + otherPartyProductId?: string, + productParameterSetId?: string, + itemDescription?: string, + comments?: string, + quantity?: number, + quantityUomId?: string, + quantityCancelled?: number, + selectedAmount?: number, + priority?: number, + requiredByDate?: string, + unitAmount?: number, + unitListPrice?: number, + isModifiedPrice?: string, + standardCost?: number, + externalItemSeqId?: string, + fromAssetId?: string, + productPriceId?: string, + productCategoryId?: string, + isPromo?: string, + promoQuantity?: number, + promoTimesUsed?: number, + storePromotionId?: string, + promoCodeId?: string, + promoCodeText?: string, + subscriptionId?: string, + finAccountId?: string, + finAccountTransId?: string, + overrideGlAccountId?: string, + salesOpportunityId?: string, + sourceReferenceId?: string, + sourcePercentage?: number, + amountAlreadyIncluded?: number, + exemptAmount?: number, + customerReferenceId?: string, + taxAuthorityId?: string, + itemType?: Enumeration, + 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, }, - quantityUom: Uom, - reservations: [ - { - assetReservationId: string, - assetId: string, - productId: string, - orderId: string, - orderItemSeqId: string, - reservationOrderEnumId: string, - quantity: number, - quantityNotAvailable: number, - quantityNotIssued: number, - reservedDate: string, - originalPromisedDate: string, - currentPromisedDate: string, - priority: number, - sequenceNum: number, - } - ], - issuances: [ // outgoing shipments - { - assetIssuanceId: string, - assetId: string, - assetReservationId: string, - orderId: string, - orderItemSeqId: string, - shipmentId: string, - shipmentItemSourceId: string, - productId: string, - invoiceId: string, - invoiceItemSeqId: string, - returnId: string, - returnItemSeqId: string, - workEffortId: string, - facilityId: string, - assetMaintenanceId: string, - issuedByUserId: string, - issuedDate: string, - quantity: number, - quantityCancelled: number, - acctgTransResultEnumId: string - } - ], - receipts: [ // incoming shipments - { - assetReceiptId: string, - assetId: string, - productId: string, - orderId: string, - orderItemSeqId: string, - shipmentId: string, - shipmentItemSourceId: string, - shipmentPackageSeqId: string, - invoiceId: string, - invoiceItemSeqId: string, - returnId: string, - returnItemSeqId: string, - workEffortId: string, - receivedByUserId: string, - receivedDate: string, - itemDescription: string, - quantityAccepted: number, - quantityRejected: number, - rejectionReasonEnumId: string, - acctgTransResultEnumId: string - } - ], - shipmentSources: [ - { - shipmentItemSourceId: string, - shipmentId: string, - productId: string, - binLocationNumber: number, - orderId: string, - orderItemSeqId: string, - returnId: string, - returnItemSeqId: string, - statusId: string, - quantity: number, - quantityNotHandled: number, - quantityPicked: number, - invoiceId: string, - invoiceItemSeqId: string - } - ], - billings: [ - { - orderItemBillingId: string, - orderId: string, - orderItemSeqId: string, - invoiceId: string, - invoiceItemSeqId: string, - assetIssuanceId: string, - assetReceiptId: string, - shipmentId: string, - quantity: number, - amount: number - } - ] + quantityUom?: Uom, + reservations?: Array<{ + assetReservationId?: string, + assetId?: string, + productId?: string, + orderId?: string, + orderItemSeqId?: string, + reservationOrderEnumId?: string, + quantity?: number, + quantityNotAvailable?: number, + quantityNotIssued?: number, + reservedDate?: string, + originalPromisedDate?: string, + currentPromisedDate?: string, + priority?: number, + sequenceNum?: number, + }>, + issuances?: Array<{ + assetIssuanceId?: string, + assetId?: string, + assetReservationId?: string, + orderId?: string, + orderItemSeqId?: string, + shipmentId?: string, + shipmentItemSourceId?: string, + productId?: string, + invoiceId?: string, + invoiceItemSeqId?: string, + returnId?: string, + returnItemSeqId?: string, + workEffortId?: string, + facilityId?: string, + assetMaintenanceId?: string, + issuedByUserId?: string, + issuedDate?: string, + quantity?: number, + quantityCancelled?: number, + acctgTransResultEnumId?: string + }>, + receipts?: Array<{ + assetReceiptId?: string, + assetId?: string, + productId?: string, + orderId?: string, + orderItemSeqId?: string, + shipmentId?: string, + shipmentItemSourceId?: string, + shipmentPackageSeqId?: string, + invoiceId?: string, + invoiceItemSeqId?: string, + returnId?: string, + returnItemSeqId?: string, + workEffortId?: string, + receivedByUserId?: string, + receivedDate?: string, + itemDescription?: string, + quantityAccepted?: number, + quantityRejected?: number, + rejectionReasonEnumId?: string, + acctgTransResultEnumId?: string + }>, + shipmentSources?: Array<{ + shipmentItemSourceId?: string, + shipmentId?: string, + productId?: string, + binLocationNumber?: number, + orderId?: string, + orderItemSeqId?: string, + returnId?: string, + returnItemSeqId?: string, + statusId?: string, + quantity?: number, + quantityNotHandled?: number, + quantityPicked?: number, + invoiceId?: string, + invoiceItemSeqId?: string + }>, + billings?: Array<{ + orderItemBillingId?: string, + orderId?: string, + orderItemSeqId?: string, + invoiceId?: string, + invoiceItemSeqId?: string, + assetIssuanceId?: string, + assetReceiptId?: string, + shipmentId?: string, + quantity?: number, + amount?: number + }> } export interface OrderPart { orderId: string, orderPartSeqId: string, - parentPartSeqId: string, - partName: string, - statusId: string, - vendorPartyId: string, // ship from vendor - customerPartyId: string, // bill to customer - otherPartyOrderId: string, - otherPartyOrderDate: string, - facilityId: string, // from where the order will be fulfilled - carrierPartyId: string, - shipmentMethodEnumId: string, - postalContactMechId: string, // points to shipping address - telecomContactMechId: string, // points to a phone number - trackingNumber: string, - shippingInstructions: string, - maySplit: string, - signatureRequiredEnumId: string, - giftMessage: string, - isGift: string, - isNewCustomer: string, - partTotal: number, - priority: number, - shipAfterDate: string, - shipBeforeDate: string, - estimatedShipDate: string, - estimatedDeliveryDate: string, - estimatedPickUpDate: string, - validFromDate: string, - validThruDate: string, - autoCancelDate: string, - dontCancelSetDate: string, - dontCancelSetUserId: string, - disablePromotions: string, - disableShippingCalc: string, - disableTaxCalc: string, - reservationAutoEnumId: string, - status: Status, - items: Array, - parties: [ - { - orderId: string, - orderPartSeqId: string, - partyId: string, - roleTypeId: string, // which party is this, customer, accountant, vendor, ...... - sequenceNum: number, - party: Party, - roleType: { - roleTypeId: string, - parentTypeId: string, - description: string - } - } - ], - contactMechs: [ - { - orderId: string, - orderPartSeqId: string, - contactMechPurposeId: string, - contactMechId: string, - contactMech: ContactMech + parentPartSeqId?: string, + partName?: string, + statusId?: string, + vendorPartyId?: string, + customerPartyId?: string, + otherPartyOrderId?: string, + otherPartyOrderDate?: string, + facilityId?: string, + carrierPartyId?: string, + shipmentMethodEnumId?: string, + postalContactMechId?: string, + telecomContactMechId?: string, + trackingNumber?: string, + shippingInstructions?: string, + maySplit?: string, + signatureRequiredEnumId?: string, + giftMessage?: string, + isGift?: string, + isNewCustomer?: string, + partTotal?: number, + priority?: number, + shipAfterDate?: string, + shipBeforeDate?: string, + estimatedShipDate?: string, + estimatedDeliveryDate?: string, + estimatedPickUpDate?: string, + validFromDate?: string, + validThruDate?: string, + autoCancelDate?: string, + dontCancelSetDate?: string, + dontCancelSetUserId?: string, + disablePromotions?: string, + disableShippingCalc?: string, + disableTaxCalc?: string, + reservationAutoEnumId?: string, + status?: Status, + items?: Array, + parties?: Array<{ + orderId?: string, + orderPartSeqId?: string, + partyId?: string, + roleTypeId?: string, + sequenceNum?: number, + party?: Party, + roleType?: { + roleTypeId?: string, + parentTypeId?: string, + description?: string } - ], - vendor: Party, - customer: Party, - carrier: Party, - shipmentMethod: Enumeration, - postal: ContactMech, - telecom: ContactMech, - facility: { - facilityId: string, - pseudoId: string, - facilityTypeEnumId: string, - parentFacilityId: string, - statusId: string, - ownerPartyId: string, - facilityName: string, - facilitySize: number, - facilitySizeUomId: string, - openedDate: string, - closedDate: string, - description: string, - geoId: string, - geoPointId: string, - countyGeoId: string, - stateGeoId: string, - assetAllowOtherOwner: string, - assetAllowIssueOverQoh: string, - assetInventoryLocRequire: string, - defaultDaysToShip: number, - externalId: string, - originId: string, + }>, + contactMechs?: Array<{ + orderId?: string, + orderPartSeqId?: string, + contactMechPurposeId?: string, + contactMechId?: string, + contactMech?: ContactMech + }>, + vendor?: Party, + customer?: Party, + carrier?: Party, + shipmentMethod?: Enumeration, + postal?: ContactMech, + telecom?: ContactMech, + facility?: { + facilityId?: string, + pseudoId?: string, + facilityTypeEnumId?: string, + parentFacilityId?: string, + statusId?: string, + ownerPartyId?: string, + facilityName?: string, + facilitySize?: number, + facilitySizeUomId?: string, + openedDate?: string, + closedDate?: string, + description?: string, + geoId?: string, + geoPointId?: string, + countyGeoId?: string, + stateGeoId?: string, + assetAllowOtherOwner?: string, + assetAllowIssueOverQoh?: string, + assetInventoryLocRequire?: string, + defaultDaysToShip?: number, + externalId?: string, + originId?: string, }, - payments: [ - { - paymentId: string, - paymentTypeEnumId: string, - fromPartyId: string, - toPartyId: string, - paymentInstrumentEnumId: string, - paymentMethodId: string, - toPaymentMethodId: string, - paymentGatewayConfigId: string, - orderId: string, - orderPartSeqId: string, - orderItemSeqId: string, - statusId: string, - effectiveDate: string, - settlementDate: string, - dueDate: string, - paymentAuthCode: string, - paymentRefNum: string, - comments: string, - memo: string, - distGroupEnumId: string, - amount: number, - amountUomId: string, - appliedTotal: number, - unappliedTotal: number, - forInvoiceId: string, - refundForPaymentId: string, - finAccountId: string, - finAccountAuthId: string, - finAccountTransId: string, - overrideGlAccountId: string, - overrideOrgPartyId: string, - partyRelationshipId: string, - timePeriodId: string, - originalCurrencyAmount: number, - originalCurrencyUomId: string, - presentFlag: string, - swipedFlag: string, - processAttempt: number, - needsNsfRetry: string, - acctgTransResultEnumId: string, - reconcileStatusId: string, - paymentMethodFileId: string, - } - ] + payments?: Array<{ + paymentId?: string, + paymentTypeEnumId?: string, + fromPartyId?: string, + toPartyId?: string, + paymentInstrumentEnumId?: string, + paymentMethodId?: string, + toPaymentMethodId?: string, + paymentGatewayConfigId?: string, + orderId?: string, + orderPartSeqId?: string, + orderItemSeqId?: string, + statusId?: string, + effectiveDate?: string, + settlementDate?: string, + dueDate?: string, + paymentAuthCode?: string, + paymentRefNum?: string, + comments?: string, + memo?: string, + distGroupEnumId?: string, + amount?: number, + amountUomId?: string, + appliedTotal?: number, + unappliedTotal?: number, + forInvoiceId?: string, + refundForPaymentId?: string, + finAccountId?: string, + finAccountAuthId?: string, + finAccountTransId?: string, + overrideGlAccountId?: string, + overrideOrgPartyId?: string, + partyRelationshipId?: string, + timePeriodId?: string, + originalCurrencyAmount?: number, + originalCurrencyUomId?: string, + presentFlag?: string, + swipedFlag?: string, + processAttempt?: number, + needsNsfRetry?: string, + acctgTransResultEnumId?: string, + reconcileStatusId?: string, + paymentMethodFileId?: string, + }> } diff --git a/src/types/Party.ts b/src/types/Party.ts index aa07e6ea..f6ea92e0 100644 --- a/src/types/Party.ts +++ b/src/types/Party.ts @@ -1,55 +1,51 @@ -import { ContactMech } from "./ContactMech" -import { Enumeration } from "./Enumeration" -import { Identification } from "./Identification" +import { ContactMech, Enumeration, Identification } from "./index" export interface Party { partyId: string, - pseudoId: string, // remove default to partyId - partyTypeEnumId: string, - disabled: string, - customerStatusId: string, - ownerPartyId: string, // who owns data for this party, like for customer who owns the data - externalId: string, - dataSourceId: string, - gatewayCimId: string, - comments: string, - shippingInstructions: string, - hasDuplicates: string, - lastDupCheckDate: string, - mergedToPartyId: string, - type: Enumeration, - organization: { + 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, + organizationName?: string, }, - person: { + person?: { partyId: string, - firstName: string, - middleName: string, - lastName: string, + firstName?: string, + middleName?: string, + lastName?: string, }, - identifications: Array, - contactMechs: [ // PartyContactMech - { - partyId: string, - contactMechId: string, + identifications?: Array, + 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, - 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 - } + contactMechTypeEnumId?: string, + description?: string } - ] -} \ No newline at end of file + }> +} diff --git a/src/types/Status.ts b/src/types/Status.ts index 51c62dc4..99f2d226 100644 --- a/src/types/Status.ts +++ b/src/types/Status.ts @@ -1,5 +1,5 @@ export interface Status { - statusId?: string; + statusId: string; statusTypeId?: string; statusCode?: string; description?: string; diff --git a/src/types/Uom.ts b/src/types/Uom.ts index 18d9845f..671ff5d8 100644 --- a/src/types/Uom.ts +++ b/src/types/Uom.ts @@ -1,5 +1,5 @@ export interface Uom { - uomId?: string, + uomId: string, uomTypeEnumId?: string, abbreviation?: string, description?: string From 5a48ef515bb4e27dd28cb5c29cd4ffb7da7a7cd8 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 10 Jun 2022 14:41:26 +0530 Subject: [PATCH 3/6] Improved: contactMech schema to make some parameter required(#2f2h74x) --- src/types/ContactMech.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/ContactMech.ts b/src/types/ContactMech.ts index a1b0b4aa..5219ed75 100644 --- a/src/types/ContactMech.ts +++ b/src/types/ContactMech.ts @@ -11,14 +11,14 @@ export interface ContactMech { paymentFraudEvidenceId?: string, replacesContactMechId?: string, telecomNumber?: { - contactMechId?: string, + contactMechId: string, countryCode?: string, areaCode?: string, contactNumber?: string, askForName?: string, }, postalAddress?: { - contactMechId?: string, + contactMechId: string, toName?: string, attnName?: string, address1?: string, From 7a0f714ce0ca8edab0b0fecd424689d226782aa0 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Fri, 10 Jun 2022 14:55:25 +0530 Subject: [PATCH 4/6] Improved: order part schema to make some child schema parameters required and updated some parameters enumeration entity as required(#2f2h74x) --- src/types/Enumeration.ts | 2 +- src/types/Order.ts | 42 ++++++++++++++++++++-------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/types/Enumeration.ts b/src/types/Enumeration.ts index 5d29acc4..7d7976c4 100644 --- a/src/types/Enumeration.ts +++ b/src/types/Enumeration.ts @@ -1,5 +1,5 @@ export interface Enumeration { - enumId?: string, + enumId: string, enumTypeId?: string, parentEnumId?: string, enumCode?: string, diff --git a/src/types/Order.ts b/src/types/Order.ts index 4826a240..cef6b7c3 100644 --- a/src/types/Order.ts +++ b/src/types/Order.ts @@ -31,15 +31,15 @@ export interface Order { salesChannel?: Enumeration, parts?: Array, notes?: Array<{ - orderId?: string, - noteDate?: string, + orderId: string, + noteDate: string, noteText?: string, internalNote?: string, userId?: string, }>, communicationEvents?: Array<{ - orderId?: string, - communicationEventId?: string + orderId: string, + communicationEventId: string }> } @@ -89,7 +89,7 @@ export interface OrderItem { taxAuthorityId?: string, itemType?: Enumeration, product?: { - productId?: string, + productId: string, pseudoId?: string, productTypeEnumId?: string, productClassEnumId?: string, @@ -120,7 +120,7 @@ export interface OrderItem { }, quantityUom?: Uom, reservations?: Array<{ - assetReservationId?: string, + assetReservationId: string, assetId?: string, productId?: string, orderId?: string, @@ -136,7 +136,7 @@ export interface OrderItem { sequenceNum?: number, }>, issuances?: Array<{ - assetIssuanceId?: string, + assetIssuanceId: string, assetId?: string, assetReservationId?: string, orderId?: string, @@ -158,7 +158,7 @@ export interface OrderItem { acctgTransResultEnumId?: string }>, receipts?: Array<{ - assetReceiptId?: string, + assetReceiptId: string, assetId?: string, productId?: string, orderId?: string, @@ -180,7 +180,7 @@ export interface OrderItem { acctgTransResultEnumId?: string }>, shipmentSources?: Array<{ - shipmentItemSourceId?: string, + shipmentItemSourceId: string, shipmentId?: string, productId?: string, binLocationNumber?: number, @@ -196,7 +196,7 @@ export interface OrderItem { invoiceItemSeqId?: string }>, billings?: Array<{ - orderItemBillingId?: string, + orderItemBillingId: string, orderId?: string, orderItemSeqId?: string, invoiceId?: string, @@ -250,23 +250,23 @@ export interface OrderPart { status?: Status, items?: Array, parties?: Array<{ - orderId?: string, - orderPartSeqId?: string, - partyId?: string, - roleTypeId?: string, + orderId: string, + orderPartSeqId: string, + partyId: string, + roleTypeId: string, sequenceNum?: number, party?: Party, roleType?: { - roleTypeId?: string, + roleTypeId: string, parentTypeId?: string, description?: string } }>, contactMechs?: Array<{ - orderId?: string, - orderPartSeqId?: string, - contactMechPurposeId?: string, - contactMechId?: string, + orderId: string, + orderPartSeqId: string, + contactMechPurposeId: string, + contactMechId: string, contactMech?: ContactMech }>, vendor?: Party, @@ -276,7 +276,7 @@ export interface OrderPart { postal?: ContactMech, telecom?: ContactMech, facility?: { - facilityId?: string, + facilityId: string, pseudoId?: string, facilityTypeEnumId?: string, parentFacilityId?: string, @@ -300,7 +300,7 @@ export interface OrderPart { originId?: string, }, payments?: Array<{ - paymentId?: string, + paymentId: string, paymentTypeEnumId?: string, fromPartyId?: string, toPartyId?: string, From d23ad024be8f3fd119a516eaea50b37ca3101edc Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Tue, 14 Jun 2022 10:58:53 +0530 Subject: [PATCH 5/6] Improved: the party schema to define a PartyIdentification schema and deleted the identification schema(#2f2h74x) --- src/types/Identification.ts | 11 ----------- src/types/Party.ts | 14 ++++++++++++-- src/types/index.ts | 5 ++--- 3 files changed, 14 insertions(+), 16 deletions(-) delete mode 100644 src/types/Identification.ts diff --git a/src/types/Identification.ts b/src/types/Identification.ts deleted file mode 100644 index f1266cde..00000000 --- a/src/types/Identification.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Enumeration } from "./index"; - -export interface Identification { - partyId: string, - partyIdTypeEnumId: string, - idValue?: string, - issuedBy?: string, - issuedByPartyId?: string, - expireDate?: string, - type?: Enumeration -} \ No newline at end of file diff --git a/src/types/Party.ts b/src/types/Party.ts index f6ea92e0..da6a4442 100644 --- a/src/types/Party.ts +++ b/src/types/Party.ts @@ -1,4 +1,4 @@ -import { ContactMech, Enumeration, Identification } from "./index" +import { ContactMech, Enumeration } from "./index" export interface Party { partyId: string, @@ -26,7 +26,7 @@ export interface Party { middleName?: string, lastName?: string, }, - identifications?: Array, + identifications?: Array, contactMechs?: Array<{ partyId: string, contactMechId: string, @@ -49,3 +49,13 @@ export interface Party { } }> } + +export interface PartyIdentification { + partyId: string, + partyIdTypeEnumId: string, + idValue?: string, + issuedBy?: string, + issuedByPartyId?: string, + expireDate?: string, + type?: Enumeration +} diff --git a/src/types/index.ts b/src/types/index.ts index 92330fde..594a802e 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,9 +1,8 @@ import { ContactMech } from "./ContactMech"; import { Enumeration } from "./Enumeration"; import { Geo } from "./Geo"; -import { Identification } from "./Identification"; import { Order, OrderItem, OrderPart } from "./Order"; -import { Party } from "./Party"; +import { Party, PartyIdentification } from "./Party"; import { Status } from "./Status"; import { Uom } from "./Uom"; @@ -11,7 +10,7 @@ export { ContactMech, Enumeration, Geo, - Identification, + PartyIdentification, Order, OrderItem, OrderPart, From c54ecd926068fa33447480bb4b834fbc047348b7 Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Tue, 14 Jun 2022 15:00:49 +0530 Subject: [PATCH 6/6] Improved: the order schema to use communication events and removed the usage of notes property(#2f2h74x) --- src/types/CommunicationEvent.ts | 24 ++++++++++++++++++++++++ src/types/Order.ts | 7 ------- src/types/index.ts | 2 ++ 3 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 src/types/CommunicationEvent.ts diff --git a/src/types/CommunicationEvent.ts b/src/types/CommunicationEvent.ts new file mode 100644 index 00000000..24c4069c --- /dev/null +++ b/src/types/CommunicationEvent.ts @@ -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 +} \ No newline at end of file diff --git a/src/types/Order.ts b/src/types/Order.ts index cef6b7c3..09fc8508 100644 --- a/src/types/Order.ts +++ b/src/types/Order.ts @@ -30,13 +30,6 @@ export interface Order { currencyUom?: Uom, salesChannel?: Enumeration, parts?: Array, - notes?: Array<{ - orderId: string, - noteDate: string, - noteText?: string, - internalNote?: string, - userId?: string, - }>, communicationEvents?: Array<{ orderId: string, communicationEventId: string diff --git a/src/types/index.ts b/src/types/index.ts index 594a802e..2f8181bd 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,3 +1,4 @@ +import { CommunicationEvent } from "./CommunicationEvent"; import { ContactMech } from "./ContactMech"; import { Enumeration } from "./Enumeration"; import { Geo } from "./Geo"; @@ -7,6 +8,7 @@ import { Status } from "./Status"; import { Uom } from "./Uom"; export { + CommunicationEvent, ContactMech, Enumeration, Geo,