ContactsApi - factory interface export

  • Parameters

    • Optionalconfiguration: Configuration
    • OptionalbasePath: string
    • Optionalaxios: AxiosInstance

    Returns {
        acceptContactRequest(id: string, contactStatusUpdateDeets?: ContactStatusUpdateDeets, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfo>;
        contactsBulkPOST(contactBulkCreateDeets?: ContactBulkCreateDeets, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfo>;
        contactsDELETE(id?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
        contactsDeleteAvatar(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
        contactsGetAvatarById(id: string, avatarType?: AvatarType, userId?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
        contactsGETById(id: string, userId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfo>;
        contactsGETList(limit?: number, page?: number, userId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfoListResponse>;
        contactsGETRequests(contactStatus?: ContactStatusPersonaFilter, limit?: number, page?: number, userId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfoListResponse>;
        contactsInvitePOST(contactInviteCreateDeets?: ContactInviteCreateDeets, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfo>;
        contactsInvitePut(personaId: string, contactInviteUpdateDeets?: ContactInviteUpdateDeets, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfo>;
        contactsPOST(contactCreateDeets?: ContactCreateDeets, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfo>;
        contactsSearch(term?: string, limit?: number, page?: number, userId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfoListResponse>;
        contactsUpdateAvatar(id: string, file?: File, options?: RawAxiosRequestConfig): AxiosPromise<void>;
        contactsUpdateAvatarByDeets(id: string, userId?: string, avatarBytes?: AvatarBytes, options?: RawAxiosRequestConfig): AxiosPromise<void>;
        contactsUpdateAvatarByPrompt(id: string, avatarPromptCreateDeets?: AvatarPromptCreateDeets, options?: RawAxiosRequestConfig): AxiosPromise<void>;
        getAcceptPaymentStatusByAccountId(accountId?: string, status?: AcceptPaymentStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<PaymentAcceptResponse>;
        rejectContactRequest(id: string, contactStatusUpdateDeets?: ContactStatusUpdateDeets, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfo>;
        requestsGETList(limit?: number, page?: number, userId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ContactInfoListResponse>;
    }

    • acceptContactRequest:function
      • summary Accept the contact invitation

        Parameters

        • id: string
        • OptionalcontactStatusUpdateDeets: ContactStatusUpdateDeets
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<ContactInfo>

    • contactsBulkPOST:function
      • summary Bulk add contacts

        Parameters

        • OptionalcontactBulkCreateDeets: ContactBulkCreateDeets

          All the contact details

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<ContactInfo>

    • contactsDELETE:function
      • summary Delete an contact

        Parameters

        • Optionalid: string

          The id for the contact to delete.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • contactsDeleteAvatar:function
      • summary Reset avatar to the default

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • contactsGetAvatarById:function
      • summary Retrieve an avatar by id

        Parameters

        • id: string

          The id of the record you wish to retrieve

        • OptionalavatarType: AvatarType

          default contact simpleContarct paymentCycle

        • OptionaluserId: string

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

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • contactsGETById:function
      • summary Get a single contact

        Parameters

        • id: string

          The id of the record you wish to retrieve

        • OptionaluserId: string

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

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<ContactInfo>

    • contactsGETList:function
      • summary List contacts

        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 AxiosPromise<ContactInfoListResponse>

    • contactsGETRequests:function
      • summary List of invited contacts

        Parameters

        • OptionalcontactStatus: ContactStatusPersonaFilter

          all invited accepted rejected

        • 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 AxiosPromise<ContactInfoListResponse>

    • contactsInvitePOST:function
      • summary Create a contact record - contact invite.

        Parameters

        • OptionalcontactInviteCreateDeets: ContactInviteCreateDeets

          The contact details

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<ContactInfo>

    • contactsInvitePut:function
      • summary Update a contact record - contact invite.

        Parameters

        • personaId: string
        • OptionalcontactInviteUpdateDeets: ContactInviteUpdateDeets

          The contact details

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<ContactInfo>

    • contactsPOST:function
      • summary Create a contact record

        Parameters

        • OptionalcontactCreateDeets: ContactCreateDeets

          The contact details

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<ContactInfo>

    • contactsSearch:function
      • Search contacts in the network based on Name, KnownName, Business name or Handle Returns a list of EndUser_Deets.

        summary Search contacts

        Parameters

        • Optionalterm: string

          The search term or keyword

        • 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 AxiosPromise<ContactInfoListResponse>

    • contactsUpdateAvatar:function
      • avatar_id could be tenant.id, contact.id, work.id, project.id, team.id, etc summary Upload avatar image via file

        Parameters

        • id: string

          contact id

        • Optionalfile: File
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • contactsUpdateAvatarByDeets:function
      • avatar_id could be tenant.id, contact.id, work.id, project.id, team.id, etc summary Upload avatar via JSON body

        Parameters

        • id: string

          The id of the record you wish to retrieve

        • OptionaluserId: string

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

        • OptionalavatarBytes: AvatarBytes
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<void>

    • contactsUpdateAvatarByPrompt:function
    • getAcceptPaymentStatusByAccountId:function
      • summary Retrieve the payment acceptance status for an account

        Parameters

        • OptionalaccountId: string

          Account Id to accept payments from

        • Optionalstatus: AcceptPaymentStatusEnum

          Accept payment status enum pending accepted suspended

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<PaymentAcceptResponse>

    • rejectContactRequest:function
      • summary Reject the contact invitation

        Parameters

        • id: string
        • OptionalcontactStatusUpdateDeets: ContactStatusUpdateDeets
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns AxiosPromise<ContactInfo>

    • requestsGETList:function
      • summary List requests

        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 AxiosPromise<ContactInfoListResponse>