Nutrient Web SDK
    Preparing search index...

    Interface Attachment

    interface Attachment {
        data: Blob;
        "[iterator]"(): IterableIterator<["data", null | Blob]>;
        asImmutable(): this;
        asMutable(): this;
        clear(): this;
        delete<K extends "data">(key: K): this;
        deleteIn(keyPath: Iterable<any>): this;
        equals(other: any): boolean;
        get<K extends "data">(key: K, notSetValue?: any): AttachmentProps[K];
        get<T>(key: string, notSetValue: T): T;
        getIn(keyPath: Iterable<any>): any;
        has(key: string): key is "data";
        hashCode(): number;
        hasIn(keyPath: Iterable<any>): boolean;
        merge(
            ...collections: (
                Iterable<[string, any], any, any>
                | Partial<AttachmentProps>
            )[],
        ): this;
        mergeDeep(
            ...collections: (
                Iterable<[string, any], any, any>
                | Partial<AttachmentProps>
            )[],
        ): this;
        mergeDeepIn(keyPath: Iterable<any>, ...collections: any[]): this;
        mergeDeepWith(
            merger: (oldVal: any, newVal: any, key: any) => any,
            ...collections: (
                Iterable<[string, any], any, any>
                | Partial<AttachmentProps>
            )[],
        ): this;
        mergeIn(keyPath: Iterable<any>, ...collections: any[]): this;
        mergeWith(
            merger: (oldVal: any, newVal: any, key: "data") => any,
            ...collections: (
                Iterable<[string, any], any, any>
                | Partial<AttachmentProps>
            )[],
        ): this;
        remove<K extends "data">(key: K): this;
        removeIn(keyPath: Iterable<any>): this;
        set<K extends "data">(key: K, value: AttachmentProps[K]): this;
        setIn(keyPath: Iterable<any>, value: any): this;
        toJS(): { data: any };
        toJSON(): AttachmentProps;
        toObject(): AttachmentProps;
        toSeq(): Keyed<"data", null | Blob>;
        update<K extends "data">(
            key: K,
            updater: (value: AttachmentProps[K]) => AttachmentProps[K],
        ): this;
        updateIn(keyPath: Iterable<any>, updater: (value: any) => any): this;
        wasAltered(): boolean;
        withMutations(mutator: (mutable: this) => any): this;
    }

    Hierarchy

    Index

    Properties

    data: Blob

    The attachment's data as a Blob.

    null
    

    Methods

    • Returns IterableIterator<["data", null | Blob]>

    • Returns this

      Map#asImmutable

    • Returns this

      Map#asMutable

    • Returns a new instance of this Record type with all values set to their default values.

      Returns this

    • Returns a new instance of this Record type with the value for the specific key set to its default value.

      Type Parameters

      • K extends "data"

      Parameters

      • key: K

      Returns this

      remove

    • Parameters

      Returns this

      removeIn

    • Parameters

      • other: any

      Returns boolean

    • Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.

      If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.

      Type Parameters

      • K extends "data"

      Parameters

      • key: K
      • OptionalnotSetValue: any

      Returns AttachmentProps[K]

    • Type Parameters

      • T

      Parameters

      • key: string
      • notSetValue: T

      Returns T

    • Parameters

      Returns any

    • Parameters

      • key: string

      Returns key is "data"

    • Returns number

    • Parameters

      Returns boolean

    • Parameters

      • ...collections: (Iterable<[string, any], any, any> | Partial<AttachmentProps>)[]

      Returns this

    • Parameters

      • ...collections: (Iterable<[string, any], any, any> | Partial<AttachmentProps>)[]

      Returns this

    • Parameters

      • keyPath: Iterable<any>
      • ...collections: any[]

      Returns this

    • Parameters

      • merger: (oldVal: any, newVal: any, key: any) => any
      • ...collections: (Iterable<[string, any], any, any> | Partial<AttachmentProps>)[]

      Returns this

    • Parameters

      • keyPath: Iterable<any>
      • ...collections: any[]

      Returns this

    • Parameters

      • merger: (oldVal: any, newVal: any, key: "data") => any
      • ...collections: (Iterable<[string, any], any, any> | Partial<AttachmentProps>)[]

      Returns this

    • Type Parameters

      • K extends "data"

      Parameters

      • key: K

      Returns this

    • Parameters

      Returns this

    • Type Parameters

      • K extends "data"

      Parameters

      • key: K
      • value: AttachmentProps[K]

      Returns this

    • Parameters

      Returns this

    • Deeply converts this Record to equivalent native JavaScript Object.

      Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.

      Returns { data: any }

      • data: any

        The attachment's data as a Blob.

        null
        
    • Shallowly converts this Record to equivalent native JavaScript Object.

      Returns AttachmentProps

    • Shallowly converts this Record to equivalent JavaScript Object.

      Returns AttachmentProps

    • Returns Keyed<"data", null | Blob>

    • Type Parameters

      • K extends "data"

      Parameters

      • key: K
      • updater: (value: AttachmentProps[K]) => AttachmentProps[K]

      Returns this

    • Parameters

      • keyPath: Iterable<any>
      • updater: (value: any) => any

      Returns this

    • Returns boolean

      Map#wasAltered

    • Note: Not all methods can be used on a mutable collection or within withMutations! Only set may be used mutatively.

      Parameters

      • mutator: (mutable: this) => any

      Returns this

      Map#withMutations