Hierarchy

  • MessageSenders

Properties

impersonating: boolean = false

Methods

  • Description

    enables impersonation by calling the subsequent method with the stored impersonation token

    Example

    MessageSenders.As().List() // lists MessageSenders using the impersonated users' token
    

    Returns MessageSenders

  • Delete a message sender. Check out the docs for more info

    Parameters

    • messageSenderID: string

      ID of the message sender.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Delete a message sender assignment. Check out the docs for more info

    Parameters

    • messageSenderID: string

      ID of the message sender.

    • listOptions: {
          buyerID?: string;
          supplierID?: string;
          userGroupID?: string;
          userID?: string;
      } = {}
      • Optional buyerID?: string

        ID of the buyer.

      • Optional supplierID?: string

        ID of the supplier.

      • Optional userGroupID?: string

        ID of the user group.

      • Optional userID?: string

        ID of the user.

    • requestOptions: RequestOptions = {}

    Returns Promise<void>

  • Get a list of message senders. Check out the docs for more info

    Type Parameters

    Parameters

    • listOptions: {
          filters?: Filters;
          page?: number;
          pageSize?: number;
          search?: string;
          searchOn?: ("ID" | "Name" | "URL")[];
          sortBy?: ("ID" | "Name" | "URL" | "!ID" | "!Name" | "!URL")[];
      } = {}
      • Optional filters?: Filters

        An object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

      • Optional search?: string

        Word or phrase to search for.

      • Optional searchOn?: ("ID" | "Name" | "URL")[]

        Comma-delimited list of fields to search on.

      • Optional sortBy?: ("ID" | "Name" | "URL" | "!ID" | "!Name" | "!URL")[]

        Comma-delimited list of fields to sort by.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TMessageSender>>>

  • Get a list of message sender assignments. Check out the docs for more info

    Type Parameters

    Parameters

    • listOptions: {
          buyerID?: string;
          level?: PartyType;
          messageSenderID?: string;
          page?: number;
          pageSize?: number;
          supplierID?: string;
          userGroupID?: string;
          userID?: string;
      } = {}
      • Optional buyerID?: string

        ID of the buyer.

      • Optional level?: PartyType

        Level of the message sender assignment. Possible values: User, Group, Company.

      • Optional messageSenderID?: string

        ID of the message sender.

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

      • Optional supplierID?: string

        ID of the supplier.

      • Optional userGroupID?: string

        ID of the user group.

      • Optional userID?: string

        ID of the user.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TMessageSenderAssignment>>>

  • Get a list of message sender cc listener assignments. Check out the docs for more info

    Type Parameters

    Parameters

    • listOptions: {
          filters?: Filters;
          page?: number;
          pageSize?: number;
          search?: string;
          searchOn?: ("BuyerID" | "UserID" | "UserGroupID" | "MessageConfigName" | "SupplierID")[];
          sortBy?: ("BuyerID" | "UserID" | "UserGroupID" | "MessageConfigName" | "SupplierID" | "!BuyerID" | "!UserID" | "!UserGroupID" | "!MessageConfigName" | "!SupplierID")[];
      } = {}
      • Optional filters?: Filters

        An object or dictionary representing key/value pairs to apply as filters. Valid keys are top-level properties of the returned model or 'xp.???'

      • Optional page?: number

        Page of results to return. Default: 1. When paginating through many items (> page 30), we recommend the "Last ID" method, as outlined in the Advanced Querying documentation.

      • Optional pageSize?: number

        Number of results to return per page. Default: 20, max: 100.

      • Optional search?: string

        Word or phrase to search for.

      • Optional searchOn?: ("BuyerID" | "UserID" | "UserGroupID" | "MessageConfigName" | "SupplierID")[]

        Comma-delimited list of fields to search on.

      • Optional sortBy?: ("BuyerID" | "UserID" | "UserGroupID" | "MessageConfigName" | "SupplierID" | "!BuyerID" | "!UserID" | "!UserGroupID" | "!MessageConfigName" | "!SupplierID")[]

        Comma-delimited list of fields to sort by.

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredObjectDeep<ListPage<TMessageCCListenerAssignment>>>

  • Create or update a message sender. If an object with the same ID already exists, it will be overwritten. Check out the docs for more info

    Type Parameters

    Parameters

    • messageSenderID: string

      ID of the message sender.

    • messageSender: MessageSender<any>

      Required fields: Name, MessageTypes

    • requestOptions: RequestOptions = {}

    Returns Promise<RequiredDeep<TMessageSender>>

Generated using TypeDoc