/* Options: Date: 2025-07-01 03:18:58 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://active-ewebservice.biz/aeservices30/api //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SearchInventoryRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @DataContract export class BaseRequest { /** @description This is your AIM API Key provided by Tri-Tech */ // @DataMember // @ApiMember(DataType="string", Description="This is your AIM API Key provided by Tri-Tech", IsRequired=true, Name="ApiKey", ParameterType="header") public ApiKey: string; // @DataMember // @ApiMember(DataType="string", Name="OAuthToken", ParameterType="header") public OAuthToken: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class BaseSecureRequest extends BaseRequest { /** @description */ // @DataMember // @ApiMember(DataType="string", Description="", Name="Token", ParameterType="Header") public Token: string; /** @description */ // @DataMember // @ApiMember(DataType="string", Description="", Name="DeviceId", ParameterType="Header") public DeviceId: string; /** @description */ // @DataMember // @ApiMember(DataType="string", Description="", IsRequired=true, Name="AppId", ParameterType="Header") public AppId: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @DataContract export class ImageInfo { // @DataMember public Url: string; // @DataMember public ImageStream: string; // @DataMember public ImageSize: string; // @DataMember public ErrorMessage: string; // @DataMember public UriPk?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class BindableObject { public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class SearchInventoryResultSet extends BindableObject implements IAIMInventoryRecord { // @DataMember public Pk: number; // @DataMember public Description: string; // @DataMember public InventoryType: string; // @DataMember public Manufacturer: string; // @DataMember public Model: string; // @DataMember public Category?: number; // @DataMember public CategoryDescription: string; // @DataMember public SubCategory?: number; // @DataMember public SubCategoryDescription: string; // @DataMember public SelectionCode: string; // @DataMember public SelectionCodeDescription: string; // @DataMember public Sku: string; // @DataMember public Mpn: string; // @DataMember public Discontinued?: boolean; // @DataMember public Attribute1: string; // @DataMember public Attribute2: string; // @DataMember public Attribute3: string; // @DataMember public Attribute4: string; // @DataMember public Attribute5: string; // @DataMember public Attribute6: string; // @DataMember public Attribute7: string; // @DataMember public Attribute8: string; // @DataMember public Attribute9: string; // @DataMember public Attribute10: string; // @DataMember public Attribute11: string; // @DataMember public Attribute12: string; // @DataMember public Attribute13: string; // @DataMember public Attribute14: string; // @DataMember public Attribute15: string; // @DataMember public Attribute16: string; // @DataMember public Attribute17: string; // @DataMember public Attribute18: string; // @DataMember public Attribute19: string; // @DataMember public Attribute20: string; // @DataMember public ComputerQuantity: number; // @DataMember public OurPrice: number; // @DataMember public RetailPrice: number; // @DataMember public ActiveePrice: number; // @DataMember public PriceA: number; // @DataMember public PriceB: number; // @DataMember public PriceC: number; // @DataMember public MinPrice: number; // @DataMember public AvailableQuantity: number; // @DataMember public IsMedia: boolean; // @DataMember public IsPackage: boolean; // @DataMember public HasImage: boolean; // @DataMember public SearchTerm: string; // @DataMember public Keywords: string; // @DataMember public KeywordsOrigin: string; // @DataMember public Deleted: boolean; // @DataMember public TimeStamp: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @DataContract export class BaseResponse { /** @description */ // @DataMember // @ApiMember(DataType="BaseResponseResult", Description="", Name="Status", ParameterType="body") public Status: BaseResponseResult; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class InventoryDetailResponse extends BaseResponse { // @DataMember public SadPk: number; // @DataMember public InvType: string; // @DataMember public Model: string; // @DataMember public Description: string; // @DataMember public Mfg: string; // @DataMember public Category: number; // @DataMember public CategoryDescription: string; // @DataMember public SubCategory: number; // @DataMember public SubCategoryDescription: string; // @DataMember public SelectionCode: string; // @DataMember public SelectionCodeDescription: string; // @DataMember public SellSerialsOnline: boolean; // @DataMember public Notes: string; // @DataMember public Images: ImageInfo[]; // @DataMember public HasImages: boolean; // @DataMember public VariantDetails: InventoryDetailByVariant[]; // @DataMember public AddOns: AddOnDetail[]; // @DataMember public ActiveEInfo: ActiveEInfo; // @DataMember public Weight: number; // @DataMember public Unit: string; // @DataMember public ShipCharge: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @DataContract export class SearchInventoryApiResult extends SearchInventoryResultSet { // @DataMember public Detail: InventoryDetailResponse; // @DataMember public IconImage: ImageInfo; // @DataMember public CustomerPrice: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export interface IAIMInventoryRecord { LongDesc: string; InvDesc_Cat: number; InvDesc_Sub: number; InvDesc_Mfg: string; InvDesc_Model: string; InvDesc_Desc: string; InvDesc_CatDesc: string; InvDesc_SubDesc: string; InvDesc_Locator: string; InvDesc_StockNum: string; InvDesc_SelDesc: string; InvDesc_Sku: string; InvDesc_SelCode: string; InvDesc_Mpn: string; InvDesc_Att1: string; InvDesc_Att2: string; InvDesc_Att3: string; InvDesc_Att4: string; InvDesc_Att5: string; InvDesc_Att6: string; } // @DataContract export class SearchInventoryResponse extends BaseResponse { // @DataMember public StartOffset: number; // @DataMember public RecordCount: number; // @DataMember public RemainingRecords: number; // @DataMember public TotalRecords: number; // @DataMember // @ApiMember(Name="Records", ParameterType="body") public Records: SearchInventoryApiResult[]; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } /** @description SearchInventoryRequires active-e Inventory Service */ // @Route("/SearchInventory", "POST, GET") // @DataContract export class SearchInventoryRequest extends BaseSecureRequest implements IReturn { /** @description If sent, only items from the passed location will be returned */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only items from the passed location will be returned", Format="int32", Name="LocFk") public LocFk?: number; /** @description For Internal Use Only */ // @DataMember // @ApiMember(DataType="integer", Description="For Internal Use Only", Format="int32", Name="MfgFk") public MfgFk?: number; /** @description For Internal Use Only */ // @DataMember // @ApiMember(DataType="integer", Description="For Internal Use Only", Format="int32", Name="CatFk") public CatFk?: number; /** @description For Internal Use Only */ // @DataMember // @ApiMember(DataType="integer", Description="For Internal Use Only", Format="int32", Name="SubFk") public SubFk?: number; /** @description For Internal Use Only */ // @DataMember // @ApiMember(DataType="integer", Description="For Internal Use Only", Format="int32", Name="SelFk") public SelFk?: number; /** @description If sent, only items from the passed category# will be returned */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only items from the passed category# will be returned", Format="int32", Name="Cat") public Cat?: number; /** @description If sent, only items from the passed subcategory# will be returned. Must be used in conjunction with the Cat parameter. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only items from the passed subcategory# will be returned. Must be used in conjunction with the Cat parameter.", Format="int32", Name="Sub") public Sub?: number; /** @description If sent, only items with the passed selection code will be returned */ // @DataMember // @ApiMember(Description="If sent, only items with the passed selection code will be returned", Name="SelectionCode") public SelectionCode: string; /** @description If sent, only items with the passed mfg code will be returned */ // @DataMember // @ApiMember(Description="If sent, only items with the passed mfg code will be returned", Name="Mfg") public Mfg: string; /** @description Serialized Items will be included in the search results */ // @DataMember // @ApiMember(DataType="boolean", Description="Serialized Items will be included in the search results", Name="IncludeSerials") public IncludeSerials?: boolean; /** @description Media Items will be included in the search results */ // @DataMember // @ApiMember(DataType="boolean", Description="Media Items will be included in the search results", Name="IncludeMedia") public IncludeMedia?: boolean; /** @description Non-Serialized, Non-Media Items will be included in the search results */ // @DataMember // @ApiMember(DataType="boolean", Description="Non-Serialized, Non-Media Items will be included in the search results", Name="IncludeAccessories") public IncludeAccessories?: boolean; /** @description Package Deal Items will be included in the search results */ // @DataMember // @ApiMember(DataType="boolean", Description="Package Deal Items will be included in the search results", Name="IncludePackages") public IncludePackages?: boolean; /** @description The string to be searched for */ // @DataMember // @ApiMember(Description="The string to be searched for", Name="SearchStr") public SearchStr: string; /** @description If set, only items with the exact model contained in the search string will be returned */ // @DataMember // @ApiMember(DataType="boolean", Description="If set, only items with the exact model contained in the search string will be returned", Name="ExactModel") public ExactModel?: boolean; /** @description The Starting Offse */ // @DataMember // @ApiMember(DataType="integer", Description="The Starting Offse", Format="int64", Name="StartOffset") public StartOffset?: number; /** @description The # of records to be returned */ // @DataMember // @ApiMember(DataType="integer", Description="The # of records to be returned", Format="int64", Name="RecordCount") public RecordCount?: number; /** @description If set, Icon Image Urls will be included in the result, if available */ // @DataMember // @ApiMember(DataType="boolean", Description="If set, Icon Image Urls will be included in the result, if available", Name="IncludeIconImage") public IncludeIconImage?: boolean; /** @description If sent, only items from the passed category IDs will be returned */ // @DataMember // @ApiMember(Description="If sent, only items from the passed category IDs will be returned", Name="CatIdList") public CatIdList: number[]; /** @description If sent, only items from the passed subcategory IDs will be returned */ // @DataMember // @ApiMember(Description="If sent, only items from the passed subcategory IDs will be returned", Name="SubIdList") public SubIdList: number[]; /** @description If sent, only items from the passed mfg IDs will be returned */ // @DataMember // @ApiMember(Description="If sent, only items from the passed mfg IDs will be returned", Name="MfgIdList") public MfgIdList: number[]; /** @description If sent, only items from the passed selection code IDs will be returned */ // @DataMember // @ApiMember(Description="If sent, only items from the passed selection code IDs will be returned", Name="SelIdList") public SelIdList: number[]; /** @description Deleted Items will be included in the search results */ // @DataMember // @ApiMember(DataType="boolean", Description="Deleted Items will be included in the search results", Name="IncludeDeleted") public IncludeDeleted?: boolean; /** @description If sent, only inventory changed on or after this date/time will be included */ // @DataMember // @ApiMember(DataType="string", Description="If sent, only inventory changed on or after this date/time will be included", Format="date", Name="ChangedDate", ParameterType="query") public ChangedDate?: string; /** @description Package Deal Line Items will be included */ // @DataMember // @ApiMember(DataType="boolean", Description="Package Deal Line Items will be included", Name="IncludePackageLineItems") public IncludePackageLineItems?: boolean; /** @description If set, the InventoryDetails object for each item will also be returned. This is much slower. */ // @DataMember // @ApiMember(DataType="boolean", Description="If set, the InventoryDetails object for each item will also be returned. This is much slower.", Name="IncludeDetails") public IncludeDetails?: boolean; /** @description If set, the InventoryDetails object for each item include images. This is much slower and only works with the IncludeDetails parameter. */ // @DataMember // @ApiMember(DataType="boolean", Description="If set, the InventoryDetails object for each item include images. This is much slower and only works with the IncludeDetails parameter.", Name="IncludeDetails") public IncludeImages?: boolean; /** @description If sent, only items with an Available Quantity greater then or equal to the sent value will be returned. Use of this parameter requires that the LocFk parameter also be sent. */ // @DataMember // @ApiMember(DataType="integer", Description="If sent, only items with an Available Quantity greater then or equal to the sent value will be returned. Use of this parameter requires that the LocFk parameter also be sent.", Format="int32", Name="MinimumAvailableQuantity") public MinimumAvailableQuantity?: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'SearchInventoryRequest'; } public getMethod() { return 'POST'; } public createResponse() { return new SearchInventoryResponse(); } }