Type Alias InsertOptions

InsertOptions: {
    getVariantSettings?: GetVariantSettingsFn;
    onUploadStop?: (err: Error | null) => void;
    url: string;
}

Type declaration

  • OptionalgetVariantSettings?: GetVariantSettingsFn

    If given, getVariantSettings() settings in constructor is overridden. Specifies variant settings for this specific insert operation.

  • OptionalonUploadStop?: (err: Error | null) => void

    When upload succeeds, onUploadStop(null) will be called. By this time, returned MediaEntry.getUrl should be usable.

    If upload fails, onUploadStop(err) will be called, passing the error returned by GCS NodeJS SDK. If the file already exist, onUploadStop(err) will also be called with an error.

  • url: string

    QueryOptions's url