PortfolioApi - object-oriented interface export PortfolioApi

Hierarchy (view full)

Constructors

Properties

axios: AxiosInstance = globalAxios
basePath: string = BASE_PATH
configuration: undefined | Configuration

Methods

  • summary Create a PortfolioCatalog

    Parameters

    • OptionalexternalId: string

      The idea from the source third party

    • Optionaltitle: string

      The Title

    • Optionaldescription: string

      The decription

    • Optionaldetails: {
          [key: string]: string;
      }

      A keyed list of other details related to the catalog such as additional product details

      • [key: string]: string
    • Optionalhref: string

      The external href (optional)

    • Optionaltype: string

      The type of catalog, such as album, video channel, shopping category, etc.

    • OptionalsubType: string

      The sub type of catalog

    • Optionalexplicit: boolean

      True if the catalog content is deemed explicit, otherwise false

    • OptionalminimumAgeRequirement: number

      Minimum age in years if there is an age requirement such as 18+, otherise null or zero

    • Optionalcatalogs: CatalogEntryDeets[]

      List of the PortfolioCatalogs this PortfolioItem belongs to

    • OptionalexternalUrls: {
          [key: string]: string;
      }

      The external url

      • [key: string]: string
    • OptionalexternalImages: ExternalImageDeets[]

      Collection of external images

    • Optionalattributions: AttributionDeets[]

      Attributions are the credits or roles attaching Contact items to this PortfolioItem

    • OptionalpartitionKey: string
    • OptionalaccountId: string

      Tenant account ID

    • OptionalimportExternalImages: boolean

      When set to true Mozaic will import the external images for the portfolio items and raise an 'import_completed' shared event when complete

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<PortfolioCatalog, any>>

    memberof PortfolioApi

  • summary Create a PortfolioItem

    Parameters

    • OptionalexternalId: string

      The idea from the source third party

    • Optionaltitle: string

      The Title

    • OptionaladdressCommonName: string

      Common name of the address like Central Park, If we already have this in our db, it will pick that address by default

    • OptionaladdressAddress1: string

      Address line 1

    • OptionaladdressAddress2: string

      Address line 2

    • OptionaladdressCityName: string

      City name

    • OptionaladdressGeoPoint: string

      Latitude and Longitude

    • OptionaladdressRegionId: number
    • OptionaladdressPostalCode: string

      Postal code or ZIP code

    • OptionaladdressRegionName: string

      State, region or province

    • OptionaladdressCountryCode: string

      Two-letter country code <see href=&quot;https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\&quot;&gt;ISO 3166-1 alpha-2</see>

    • Optionaldescription: string

      The decription

    • Optionaldetails: {
          [key: string]: string;
      }

      A keyed list of other details related to the item such as additional product details

      • [key: string]: string
    • Optionalhref: string

      The external href (optional)

    • Optionaltype: string

      The type of item audio, video, game, podcast, physical, location, destination, experience, tip-link, invoice

    • OptionalsubType: string

      The type of item audio, video, game, podcast, physical, location, destination, experience, tip-link, invoice

    • Optionalexplicit: boolean

      True if the content is deemd explicity, otherwise false

    • OptionaldurationMilliseconds: number

      Duration in ms

    • OptionalminimumAgeRequirement: number

      Minimum age in years if there is an age requirement such as 18+, otherise null or zero

    • Optionalcatalogs: CatalogEntryDeets[]

      List of the PortfolioCatalogs this PortfolioItem belongs to

    • OptionalexternalUrls: {
          [key: string]: string;
      }

      The external url

      • [key: string]: string
    • OptionalexternalImages: ExternalImageDeets[]

      Collection of external images

    • Optionalattributions: AttributionDeets[]

      Attributions are the credits or roles attaching Contact items to this PortfolioItem

    • OptionalpartitionKey: string
    • OptionalaccountId: string

      Tenant account ID

    • OptionalimportExternalImages: boolean

      When set to true Mozaic will import the external images for the portfolio items and raise an &#39;import_completed&#39; shared event when complete

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<PortfolioItem, any>>

    memberof PortfolioApi

  • summary Retrieve a list of PortfolioCatalogs

    Parameters

    • Optionallimit: number

      A limit of the number of objects to be returned for the next page, between 1 and 100. The default is 25

    • Optionalpage: number

      1-based page index for paginated results

    • OptionaluserId: string

      The user id to operate on their behalf (tenants only)

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<PortfolioCatalogListResponse, any>>

    memberof PortfolioApi

  • summary Retrieve a list of PortfolioItems

    Parameters

    • Optionalkeywords: string
    • OptionalchannelId: string
    • Optionallimit: number

      A limit of the number of objects to be returned for the next page, between 1 and 100. The default is 25

    • Optionalpage: number

      1-based page index for paginated results

    • OptionaluserId: string

      The user id to operate on their behalf (tenants only)

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<PortfolioItemListResponse, any>>

    memberof PortfolioApi

  • summary Create or update an PortfolioCatalog

    Parameters

    • id: string

      The id of the record you wish to retrieve

    • OptionalexternalId: string

      The idea from the source third party

    • Optionaltitle: string

      The Title

    • OptionaladdressCommonName: string

      Common name of the address like Central Park, If we already have this in our db, it will pick that address by default

    • OptionaladdressAddress1: string

      Address line 1

    • OptionaladdressAddress2: string

      Address line 2

    • OptionaladdressCityName: string

      City name

    • OptionaladdressGeoPoint: string

      Latitude and Longitude

    • OptionaladdressRegionId: number
    • OptionaladdressPostalCode: string

      Postal code or ZIP code

    • OptionaladdressRegionName: string

      State, region or province

    • OptionaladdressCountryCode: string

      Two-letter country code <see href=&quot;https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\&quot;&gt;ISO 3166-1 alpha-2</see>

    • Optionaldescription: string

      The decription

    • Optionaldetails: {
          [key: string]: string;
      }

      A keyed list of other details related to the item such as additional product details

      • [key: string]: string
    • Optionalhref: string

      The external href (optional)

    • Optionaltype: string

      The type of item audio, video, game, podcast, physical, location, destination, experience, tip-link, invoice

    • OptionalsubType: string

      The type of item audio, video, game, podcast, physical, location, destination, experience, tip-link, invoice

    • Optionalexplicit: boolean

      True if the content is deemd explicity, otherwise false

    • OptionaldurationMilliseconds: number

      Duration in ms

    • OptionalminimumAgeRequirement: number

      Minimum age in years if there is an age requirement such as 18+, otherise null or zero

    • OptionalexternalUrls: {
          [key: string]: string;
      }

      The external url

      • [key: string]: string
    • OptionalexternalImages: ExternalImageDeets[]

      Collection of external images

    • Optionalattributions: AttributionDeets[]

      Attributions are the credits or roles attaching Contact items to this PortfolioItem

    • OptionalimportExternalImages: boolean

      When set to true Mozaic will import the external images for the portfolio items and raise an &#39;import_completed&#39; shared event when complete

    • OptionaluserId: string

      The user id to operate on their behalf (tenants only)

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<PortfolioCatalog, any>>

    memberof PortfolioApi

  • summary Create or update an PortfolioItem

    Parameters

    • id: string

      The id of the record you wish to retrieve

    • OptionalexternalId: string

      The idea from the source third party

    • Optionaltitle: string

      The Title

    • OptionaladdressCommonName: string

      Common name of the address like Central Park, If we already have this in our db, it will pick that address by default

    • OptionaladdressAddress1: string

      Address line 1

    • OptionaladdressAddress2: string

      Address line 2

    • OptionaladdressCityName: string

      City name

    • OptionaladdressGeoPoint: string

      Latitude and Longitude

    • OptionaladdressRegionId: number
    • OptionaladdressPostalCode: string

      Postal code or ZIP code

    • OptionaladdressRegionName: string

      State, region or province

    • OptionaladdressCountryCode: string

      Two-letter country code <see href=&quot;https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2\&quot;&gt;ISO 3166-1 alpha-2</see>

    • Optionaldescription: string

      The decription

    • Optionaldetails: {
          [key: string]: string;
      }

      A keyed list of other details related to the item such as additional product details

      • [key: string]: string
    • Optionalhref: string

      The external href (optional)

    • Optionaltype: string

      The type of item audio, video, game, podcast, physical, location, destination, experience, tip-link, invoice

    • OptionalsubType: string

      The type of item audio, video, game, podcast, physical, location, destination, experience, tip-link, invoice

    • Optionalexplicit: boolean

      True if the content is deemd explicity, otherwise false

    • OptionaldurationMilliseconds: number

      Duration in ms

    • OptionalminimumAgeRequirement: number

      Minimum age in years if there is an age requirement such as 18+, otherise null or zero

    • Optionalcatalogs: CatalogEntryDeets[]

      List of the PortfolioCatalogs this PortfolioItem belongs to

    • OptionalexternalUrls: {
          [key: string]: string;
      }

      The external url

      • [key: string]: string
    • OptionalexternalImages: ExternalImageDeets[]

      Collection of external images

    • Optionalattributions: AttributionDeets[]

      Attributions are the credits or roles attaching Contact items to this PortfolioItem

    • OptionalimportExternalImages: boolean

      When set to true Mozaic will import the external images for the portfolio items and raise an &#39;import_completed&#39; shared event when complete

    • OptionaluserId: string

      The user id to operate on their behalf (tenants only)

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<PortfolioItem, any>>

    memberof PortfolioApi