diff options
| -rw-r--r-- | vendor/gen-rb/evernote/edam/errors_constants.rb | 14 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/limits_constants.rb | 8 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/note_store.rb | 370 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/note_store_types.rb | 187 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/types_types.rb | 44 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/user_store.rb | 2 | ||||
| -rw-r--r-- | vendor/gen-rb/evernote/edam/user_store_constants.rb | 2 | 
7 files changed, 617 insertions, 10 deletions
| diff --git a/vendor/gen-rb/evernote/edam/errors_constants.rb b/vendor/gen-rb/evernote/edam/errors_constants.rb new file mode 100644 index 0000000..d2cb653 --- /dev/null +++ b/vendor/gen-rb/evernote/edam/errors_constants.rb @@ -0,0 +1,14 @@ +# +# Autogenerated by Thrift +# +# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +# + +require 'errors_types' + +      module Evernote +        module EDAM +          module Error +    end +  end +end diff --git a/vendor/gen-rb/evernote/edam/limits_constants.rb b/vendor/gen-rb/evernote/edam/limits_constants.rb index 2bb52e5..d08e57e 100644 --- a/vendor/gen-rb/evernote/edam/limits_constants.rb +++ b/vendor/gen-rb/evernote/edam/limits_constants.rb @@ -86,6 +86,10 @@ require 'limits_types'              EDAM_COMMERCE_SERVICE_GROUP = %q"Group" +            EDAM_COMMERCE_SERVICE_CYBERSOURCE = %q"CYBERSRC" + +            EDAM_COMMERCE_DEFAULT_CURRENCY_COUNTRY_CODE = %q"USD" +              EDAM_SEARCH_QUERY_LEN_MIN = 0              EDAM_SEARCH_QUERY_LEN_MAX = 1024 @@ -180,6 +184,10 @@ require 'limits_types'              EDAM_USER_MAIL_LIMIT_DAILY_PREMIUM = 200 +            EDAM_USER_UPLOAD_LIMIT_FREE = 62914560 + +            EDAM_USER_UPLOAD_LIMIT_PREMIUM = 1073741824 +              EDAM_NOTE_SIZE_MAX_FREE = 26214400              EDAM_NOTE_SIZE_MAX_PREMIUM = 52428800 diff --git a/vendor/gen-rb/evernote/edam/note_store.rb b/vendor/gen-rb/evernote/edam/note_store.rb index 6742359..5bacc7c 100644 --- a/vendor/gen-rb/evernote/edam/note_store.rb +++ b/vendor/gen-rb/evernote/edam/note_store.rb @@ -419,6 +419,42 @@ require 'note_store_types'                          raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'findNotes failed: unknown result')                        end +                      def findNoteOffset(authenticationToken, filter, guid) +                        send_findNoteOffset(authenticationToken, filter, guid) +                        return recv_findNoteOffset() +                      end + +                      def send_findNoteOffset(authenticationToken, filter, guid) +                        send_message('findNoteOffset', FindNoteOffset_args, :authenticationToken => authenticationToken, :filter => filter, :guid => guid) +                      end + +                      def recv_findNoteOffset() +                        result = receive_message(FindNoteOffset_result) +                        return result.success unless result.success.nil? +                        raise result.userException unless result.userException.nil? +                        raise result.systemException unless result.systemException.nil? +                        raise result.notFoundException unless result.notFoundException.nil? +                        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'findNoteOffset failed: unknown result') +                      end + +                      def findNotesMetadata(authenticationToken, filter, offset, maxNotes, resultSpec) +                        send_findNotesMetadata(authenticationToken, filter, offset, maxNotes, resultSpec) +                        return recv_findNotesMetadata() +                      end + +                      def send_findNotesMetadata(authenticationToken, filter, offset, maxNotes, resultSpec) +                        send_message('findNotesMetadata', FindNotesMetadata_args, :authenticationToken => authenticationToken, :filter => filter, :offset => offset, :maxNotes => maxNotes, :resultSpec => resultSpec) +                      end + +                      def recv_findNotesMetadata() +                        result = receive_message(FindNotesMetadata_result) +                        return result.success unless result.success.nil? +                        raise result.userException unless result.userException.nil? +                        raise result.systemException unless result.systemException.nil? +                        raise result.notFoundException unless result.notFoundException.nil? +                        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'findNotesMetadata failed: unknown result') +                      end +                        def findNoteCounts(authenticationToken, filter, withTrash)                          send_findNoteCounts(authenticationToken, filter, withTrash)                          return recv_findNoteCounts() @@ -1061,6 +1097,59 @@ require 'note_store_types'                          return                        end +                      def shareNote(authenticationToken, guid) +                        send_shareNote(authenticationToken, guid) +                        return recv_shareNote() +                      end + +                      def send_shareNote(authenticationToken, guid) +                        send_message('shareNote', ShareNote_args, :authenticationToken => authenticationToken, :guid => guid) +                      end + +                      def recv_shareNote() +                        result = receive_message(ShareNote_result) +                        return result.success unless result.success.nil? +                        raise result.userException unless result.userException.nil? +                        raise result.notFoundException unless result.notFoundException.nil? +                        raise result.systemException unless result.systemException.nil? +                        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shareNote failed: unknown result') +                      end + +                      def stopSharingNote(authenticationToken, guid) +                        send_stopSharingNote(authenticationToken, guid) +                        recv_stopSharingNote() +                      end + +                      def send_stopSharingNote(authenticationToken, guid) +                        send_message('stopSharingNote', StopSharingNote_args, :authenticationToken => authenticationToken, :guid => guid) +                      end + +                      def recv_stopSharingNote() +                        result = receive_message(StopSharingNote_result) +                        raise result.userException unless result.userException.nil? +                        raise result.notFoundException unless result.notFoundException.nil? +                        raise result.systemException unless result.systemException.nil? +                        return +                      end + +                      def authenticateToSharedNote(guid, noteKey) +                        send_authenticateToSharedNote(guid, noteKey) +                        return recv_authenticateToSharedNote() +                      end + +                      def send_authenticateToSharedNote(guid, noteKey) +                        send_message('authenticateToSharedNote', AuthenticateToSharedNote_args, :guid => guid, :noteKey => noteKey) +                      end + +                      def recv_authenticateToSharedNote() +                        result = receive_message(AuthenticateToSharedNote_result) +                        return result.success unless result.success.nil? +                        raise result.userException unless result.userException.nil? +                        raise result.notFoundException unless result.notFoundException.nil? +                        raise result.systemException unless result.systemException.nil? +                        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'authenticateToSharedNote failed: unknown result') +                      end +                      end                      class Processor @@ -1395,6 +1484,36 @@ require 'note_store_types'                          write_result(result, oprot, 'findNotes', seqid)                        end +                      def process_findNoteOffset(seqid, iprot, oprot) +                        args = read_args(iprot, FindNoteOffset_args) +                        result = FindNoteOffset_result.new() +                        begin +                          result.success = @handler.findNoteOffset(args.authenticationToken, args.filter, args.guid) +                        rescue Evernote::EDAM::Error::EDAMUserException => userException +                          result.userException = userException +                        rescue Evernote::EDAM::Error::EDAMSystemException => systemException +                          result.systemException = systemException +                        rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException +                          result.notFoundException = notFoundException +                        end +                        write_result(result, oprot, 'findNoteOffset', seqid) +                      end + +                      def process_findNotesMetadata(seqid, iprot, oprot) +                        args = read_args(iprot, FindNotesMetadata_args) +                        result = FindNotesMetadata_result.new() +                        begin +                          result.success = @handler.findNotesMetadata(args.authenticationToken, args.filter, args.offset, args.maxNotes, args.resultSpec) +                        rescue Evernote::EDAM::Error::EDAMUserException => userException +                          result.userException = userException +                        rescue Evernote::EDAM::Error::EDAMSystemException => systemException +                          result.systemException = systemException +                        rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException +                          result.notFoundException = notFoundException +                        end +                        write_result(result, oprot, 'findNotesMetadata', seqid) +                      end +                        def process_findNoteCounts(seqid, iprot, oprot)                          args = read_args(iprot, FindNoteCounts_args)                          result = FindNoteCounts_result.new() @@ -1925,6 +2044,51 @@ require 'note_store_types'                          write_result(result, oprot, 'emailNote', seqid)                        end +                      def process_shareNote(seqid, iprot, oprot) +                        args = read_args(iprot, ShareNote_args) +                        result = ShareNote_result.new() +                        begin +                          result.success = @handler.shareNote(args.authenticationToken, args.guid) +                        rescue Evernote::EDAM::Error::EDAMUserException => userException +                          result.userException = userException +                        rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException +                          result.notFoundException = notFoundException +                        rescue Evernote::EDAM::Error::EDAMSystemException => systemException +                          result.systemException = systemException +                        end +                        write_result(result, oprot, 'shareNote', seqid) +                      end + +                      def process_stopSharingNote(seqid, iprot, oprot) +                        args = read_args(iprot, StopSharingNote_args) +                        result = StopSharingNote_result.new() +                        begin +                          @handler.stopSharingNote(args.authenticationToken, args.guid) +                        rescue Evernote::EDAM::Error::EDAMUserException => userException +                          result.userException = userException +                        rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException +                          result.notFoundException = notFoundException +                        rescue Evernote::EDAM::Error::EDAMSystemException => systemException +                          result.systemException = systemException +                        end +                        write_result(result, oprot, 'stopSharingNote', seqid) +                      end + +                      def process_authenticateToSharedNote(seqid, iprot, oprot) +                        args = read_args(iprot, AuthenticateToSharedNote_args) +                        result = AuthenticateToSharedNote_result.new() +                        begin +                          result.success = @handler.authenticateToSharedNote(args.guid, args.noteKey) +                        rescue Evernote::EDAM::Error::EDAMUserException => userException +                          result.userException = userException +                        rescue Evernote::EDAM::Error::EDAMNotFoundException => notFoundException +                          result.notFoundException = notFoundException +                        rescue Evernote::EDAM::Error::EDAMSystemException => systemException +                          result.systemException = systemException +                        end +                        write_result(result, oprot, 'authenticateToSharedNote', seqid) +                      end +                      end                      # HELPER FUNCTIONS AND STRUCTURES @@ -2835,6 +2999,94 @@ require 'note_store_types'                        ::Thrift::Struct.generate_accessors self                      end +                    class FindNoteOffset_args +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      AUTHENTICATIONTOKEN = 1 +                      FILTER = 2 +                      GUID = 3 + +                      FIELDS = { +                        AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, +                        FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::NoteFilter}, +                        GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class FindNoteOffset_result +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      SUCCESS = 0 +                      USEREXCEPTION = 1 +                      SYSTEMEXCEPTION = 2 +                      NOTFOUNDEXCEPTION = 3 + +                      FIELDS = { +                        SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}, +                        USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, +                        SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, +                        NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class FindNotesMetadata_args +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      AUTHENTICATIONTOKEN = 1 +                      FILTER = 2 +                      OFFSET = 3 +                      MAXNOTES = 4 +                      RESULTSPEC = 5 + +                      FIELDS = { +                        AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, +                        FILTER => {:type => ::Thrift::Types::STRUCT, :name => 'filter', :class => Evernote::EDAM::NoteStore::NoteFilter}, +                        OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'}, +                        MAXNOTES => {:type => ::Thrift::Types::I32, :name => 'maxNotes'}, +                        RESULTSPEC => {:type => ::Thrift::Types::STRUCT, :name => 'resultSpec', :class => Evernote::EDAM::NoteStore::NotesMetadataResultSpec} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class FindNotesMetadata_result +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      SUCCESS = 0 +                      USEREXCEPTION = 1 +                      SYSTEMEXCEPTION = 2 +                      NOTFOUNDEXCEPTION = 3 + +                      FIELDS = { +                        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::NoteStore::NotesMetadataList}, +                        USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, +                        SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException}, +                        NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end +                      class FindNoteCounts_args                        include ::Thrift::Struct, ::Thrift::Struct_Union                        AUTHENTICATIONTOKEN = 1 @@ -4293,6 +4545,124 @@ require 'note_store_types'                        ::Thrift::Struct.generate_accessors self                      end +                    class ShareNote_args +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      AUTHENTICATIONTOKEN = 1 +                      GUID = 2 + +                      FIELDS = { +                        AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, +                        GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class ShareNote_result +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      SUCCESS = 0 +                      USEREXCEPTION = 1 +                      NOTFOUNDEXCEPTION = 2 +                      SYSTEMEXCEPTION = 3 + +                      FIELDS = { +                        SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}, +                        USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, +                        NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}, +                        SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class StopSharingNote_args +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      AUTHENTICATIONTOKEN = 1 +                      GUID = 2 + +                      FIELDS = { +                        AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}, +                        GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class StopSharingNote_result +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      USEREXCEPTION = 1 +                      NOTFOUNDEXCEPTION = 2 +                      SYSTEMEXCEPTION = 3 + +                      FIELDS = { +                        USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, +                        NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}, +                        SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class AuthenticateToSharedNote_args +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      GUID = 1 +                      NOTEKEY = 2 + +                      FIELDS = { +                        GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, +                        NOTEKEY => {:type => ::Thrift::Types::STRING, :name => 'noteKey'} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end + +                    class AuthenticateToSharedNote_result +                      include ::Thrift::Struct, ::Thrift::Struct_Union +                      SUCCESS = 0 +                      USEREXCEPTION = 1 +                      NOTFOUNDEXCEPTION = 2 +                      SYSTEMEXCEPTION = 3 + +                      FIELDS = { +                        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Evernote::EDAM::UserStore::AuthenticationResult}, +                        USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => Evernote::EDAM::Error::EDAMUserException}, +                        NOTFOUNDEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'notFoundException', :class => Evernote::EDAM::Error::EDAMNotFoundException}, +                        SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => Evernote::EDAM::Error::EDAMSystemException} +                      } + +                      def struct_fields; FIELDS; end + +                      def validate +                      end + +                      ::Thrift::Struct.generate_accessors self +                    end +                    end                  end diff --git a/vendor/gen-rb/evernote/edam/note_store_types.rb b/vendor/gen-rb/evernote/edam/note_store_types.rb index 9a98b8a..bbe45fc 100644 --- a/vendor/gen-rb/evernote/edam/note_store_types.rb +++ b/vendor/gen-rb/evernote/edam/note_store_types.rb @@ -243,7 +243,8 @@ module Evernote              #               #  <dt>words</dt>              #    <dd> -            #    The string query containing keywords to match, if present. +            #    If present, a search query string that will filter the set of notes to be returned. +            #    Accepts the full search grammar documented in the Evernote API Overview.              #    </dd>              #               #  <dt>notebookGuid</dt> @@ -381,6 +382,190 @@ module Evernote                ::Thrift::Struct.generate_accessors self              end +            # * This structure is used in the set of results returned by the +            # * findNotesMetadata function.  It represents the high-level information about +            # * a single Note, without some of the larger deep structure.  This allows +            # * for the information about a list of Notes to be returned relatively quickly +            # * with less marshalling and data transfer to remote clients. +            # * Most fields in this structure are identical to the corresponding field in +            # * the Note structure, with the exception of: +            # * +            # * <dl> +            #  * <dt>largestResourceMime</dt> +            # *   <dd>If set, then this will contain the MIME type of the largest Resource +            # *   (in bytes) within the Note.  This may be useful, for example, to choose +            # *   an appropriate icon or thumbnail to represent the Note. +            # *   </dd> +            # * +            # * <dt>largestResourceSize</dt> +            # *  <dd>If set, this will contain the size of the largest Resource file, in +            # *  bytes, within the Note.  This may be useful, for example, to decide whether +            # *  to ask the server for a thumbnail to represent the Note. +            # *  </dd> +            # * </dl> +            class NoteMetadata +              include ::Thrift::Struct, ::Thrift::Struct_Union +              GUID = 1 +              TITLE = 2 +              CONTENTLENGTH = 5 +              CREATED = 6 +              UPDATED = 7 +              UPDATESEQUENCENUM = 10 +              NOTEBOOKGUID = 11 +              TAGGUIDS = 12 +              ATTRIBUTES = 14 +              LARGESTRESOURCEMIME = 20 +              LARGESTRESOURCESIZE = 21 + +              FIELDS = { +                GUID => {:type => ::Thrift::Types::STRING, :name => 'guid'}, +                TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true}, +                CONTENTLENGTH => {:type => ::Thrift::Types::I32, :name => 'contentLength', :optional => true}, +                CREATED => {:type => ::Thrift::Types::I64, :name => 'created', :optional => true}, +                UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated', :optional => true}, +                UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true}, +                NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid', :optional => true}, +                TAGGUIDS => {:type => ::Thrift::Types::LIST, :name => 'tagGuids', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, +                ATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'attributes', :class => Evernote::EDAM::Type::NoteAttributes, :optional => true}, +                LARGESTRESOURCEMIME => {:type => ::Thrift::Types::STRING, :name => 'largestResourceMime', :optional => true}, +                LARGESTRESOURCESIZE => {:type => ::Thrift::Types::I32, :name => 'largestResourceSize', :optional => true} +              } + +              def struct_fields; FIELDS; end + +              def validate +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field guid is unset!') unless @guid +              end + +              ::Thrift::Struct.generate_accessors self +            end + +            #  This structure is returned from calls to the findNotesMetadata function to +            #  give the high-level metadata about a subset of Notes that are found to +            #  match a specified NoteFilter in a search. +            #   +            # <dl> +            #  <dt>startIndex</dt> +            #    <dd> +            #    The starting index within the overall set of notes.  This +            #    is also the number of notes that are "before" this list in the set. +            #    </dd> +            #  +            #  <dt>totalNotes</dt> +            #    <dd> +            #    The number of notes in the larger set.  This can be used +            #    to calculate how many notes are "after" this note in the set. +            #    (I.e.  remaining = totalNotes - (startIndex + notes.length)  ) +            #    </dd> +            #  +            #  <dt>notes</dt> +            #    <dd> +            #    The list of metadata for Notes in this range.  The set of optional fields +            #    that are set in each metadata structure will depend on the +            #    NotesMetadataResultSpec provided by the caller when the search was +            #    performed.  Only the 'guid' field will be guaranteed to be set in each +            #    Note. +            #    </dd> +            #  +            #  <dt>stoppedWords</dt> +            #    <dd> +            #    If the NoteList was produced using a text based search +            #    query that included words that are not indexed or searched by the service, +            #    this will include a list of those ignored words. +            #    </dd> +            #  +            #  <dt>searchedWords</dt> +            #    <dd> +            #    If the NoteList was produced using a text based search +            #    query that included viable search words or quoted expressions, this will +            #    include a list of those words.  Any stopped words will not be included +            #    in this list. +            #    </dd> +            #  +            #  <dt>updateCount</dt> +            #    <dd> +            #    Indicates the total number of transactions that have +            #    been committed within the account.  This reflects (for example) the +            #    number of discrete additions or modifications that have been made to +            #    the data in this account (tags, notes, resources, etc.). +            #    This number is the "high water mark" for Update Sequence Numbers (USN) +            #    within the account. +            #    </dd> +            #  </dl> +            class NotesMetadataList +              include ::Thrift::Struct, ::Thrift::Struct_Union +              STARTINDEX = 1 +              TOTALNOTES = 2 +              NOTES = 3 +              STOPPEDWORDS = 4 +              SEARCHEDWORDS = 5 +              UPDATECOUNT = 6 + +              FIELDS = { +                STARTINDEX => {:type => ::Thrift::Types::I32, :name => 'startIndex'}, +                TOTALNOTES => {:type => ::Thrift::Types::I32, :name => 'totalNotes'}, +                NOTES => {:type => ::Thrift::Types::LIST, :name => 'notes', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::NoteStore::NoteMetadata}}, +                STOPPEDWORDS => {:type => ::Thrift::Types::LIST, :name => 'stoppedWords', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, +                SEARCHEDWORDS => {:type => ::Thrift::Types::LIST, :name => 'searchedWords', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, +                UPDATECOUNT => {:type => ::Thrift::Types::I32, :name => 'updateCount', :optional => true} +              } + +              def struct_fields; FIELDS; end + +              def validate +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field startIndex is unset!') unless @startIndex +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field totalNotes is unset!') unless @totalNotes +                raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field notes is unset!') unless @notes +              end + +              ::Thrift::Struct.generate_accessors self +            end + +            # This structure is provided to the findNotesMetadata function to specify +            # the subset of fields that should be included in each NoteMetadata element +            # that is returned in the NotesMetadataList. +            # Each field on this structure is a boolean flag that indicates whether the +            # corresponding field should be included in the NoteMetadata structure when +            # it is returned.  For example, if the 'includeTitle' field is set on this +            # structure when calling findNotesMetadata, then each NoteMetadata in the +            # list should have its 'title' field set. +            # If one of the fields in this spec is not set, then it will be treated as +            # 'false' by the server, so the default behavior is to include nothing in +            # replies (but the mandatory GUID) +            class NotesMetadataResultSpec +              include ::Thrift::Struct, ::Thrift::Struct_Union +              INCLUDETITLE = 2 +              INCLUDECONTENTLENGTH = 5 +              INCLUDECREATED = 6 +              INCLUDEUPDATED = 7 +              INCLUDEUPDATESEQUENCENUM = 10 +              INCLUDENOTEBOOKGUID = 11 +              INCLUDETAGGUIDS = 12 +              INCLUDEATTRIBUTES = 14 +              INCLUDELARGESTRESOURCEMIME = 20 +              INCLUDELARGESTRESOURCESIZE = 21 + +              FIELDS = { +                INCLUDETITLE => {:type => ::Thrift::Types::BOOL, :name => 'includeTitle', :optional => true}, +                INCLUDECONTENTLENGTH => {:type => ::Thrift::Types::BOOL, :name => 'includeContentLength', :optional => true}, +                INCLUDECREATED => {:type => ::Thrift::Types::BOOL, :name => 'includeCreated', :optional => true}, +                INCLUDEUPDATED => {:type => ::Thrift::Types::BOOL, :name => 'includeUpdated', :optional => true}, +                INCLUDEUPDATESEQUENCENUM => {:type => ::Thrift::Types::BOOL, :name => 'includeUpdateSequenceNum', :optional => true}, +                INCLUDENOTEBOOKGUID => {:type => ::Thrift::Types::BOOL, :name => 'includeNotebookGuid', :optional => true}, +                INCLUDETAGGUIDS => {:type => ::Thrift::Types::BOOL, :name => 'includeTagGuids', :optional => true}, +                INCLUDEATTRIBUTES => {:type => ::Thrift::Types::BOOL, :name => 'includeAttributes', :optional => true}, +                INCLUDELARGESTRESOURCEMIME => {:type => ::Thrift::Types::BOOL, :name => 'includeLargestResourceMime', :optional => true}, +                INCLUDELARGESTRESOURCESIZE => {:type => ::Thrift::Types::BOOL, :name => 'includeLargestResourceSize', :optional => true} +              } + +              def struct_fields; FIELDS; end + +              def validate +              end + +              ::Thrift::Struct.generate_accessors self +            end +              #  A data structure representing the number of notes for each notebook              #  and tag with a non-zero set of applicable notes.              #  diff --git a/vendor/gen-rb/evernote/edam/types_types.rb b/vendor/gen-rb/evernote/edam/types_types.rb index 04c0d63..34789ed 100644 --- a/vendor/gen-rb/evernote/edam/types_types.rb +++ b/vendor/gen-rb/evernote/edam/types_types.rb @@ -239,20 +239,21 @@ module Evernote              #        when processing images and PDF files to find text.              #        If not set, then the 'preferredLanguage' will be used.              #    </dd> -            #  </dl>              #               #  <dt>customerProfileId</dt>              #    <dd>a numeric identified which provides a linkage between the user record              #        and the direct credit card payment creditcard profile.              #    </dd> -            #  </dl>              #               #  <dt>educationalInstitution</dt>              #    <dd>a flag indicating that the user is part of an educational institution which              #    makes them eligible for discounts on bulk purchases              #    </dd> -            #  </dl>              #  +            #  <dt>businessAddress</dt> +            #    <dd>A string recording the business address of a Sponsored Account user who has requested invoicing. +            #    </dd> +            #  </dl>              class UserAttributes                include ::Thrift::Struct, ::Thrift::Struct_Union                DEFAULTLOCATIONNAME = 1 @@ -282,6 +283,7 @@ module Evernote                CUSTOMERPROFILEID = 27                REFERRALPROOF = 28                EDUCATIONALDISCOUNT = 29 +              BUSINESSADDRESS = 30                FIELDS = {                  DEFAULTLOCATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'defaultLocationName', :optional => true}, @@ -310,7 +312,8 @@ module Evernote                  RECOGNITIONLANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'recognitionLanguage', :optional => true},                  CUSTOMERPROFILEID => {:type => ::Thrift::Types::I64, :name => 'customerProfileId', :optional => true},                  REFERRALPROOF => {:type => ::Thrift::Types::STRING, :name => 'referralProof', :optional => true}, -                EDUCATIONALDISCOUNT => {:type => ::Thrift::Types::BOOL, :name => 'educationalDiscount', :optional => true} +                EDUCATIONALDISCOUNT => {:type => ::Thrift::Types::BOOL, :name => 'educationalDiscount', :optional => true}, +                BUSINESSADDRESS => {:type => ::Thrift::Types::STRING, :name => 'businessAddress', :optional => true}                }                def struct_fields; FIELDS; end @@ -390,6 +393,12 @@ module Evernote              #    <dd>The number number identifying the              #    recurring subscription used to make the recurring charges.              #    </dd> +            #  <dt>lastRequestedCharge</dt> +            #    <dd>Date charge last attempted</dd> +            #  <dt>currency</dt> +            #    <dd>ISO 4217 currency code</dd> +            #  <dt>unitPrice</dt> +            #    <dd>charge in the smallest unit of the currency (e.g. cents for USD)</dd>              #  </dl>              class Accounting                include ::Thrift::Struct, ::Thrift::Struct_Union @@ -409,6 +418,8 @@ module Evernote                UPDATED = 14                PREMIUMSUBSCRIPTIONNUMBER = 16                LASTREQUESTEDCHARGE = 17 +              CURRENCY = 18 +              UNITPRICE = 19                FIELDS = {                  UPLOADLIMIT => {:type => ::Thrift::Types::I64, :name => 'uploadLimit', :optional => true}, @@ -426,7 +437,9 @@ module Evernote                  PREMIUMLOCKUNTIL => {:type => ::Thrift::Types::I64, :name => 'premiumLockUntil', :optional => true},                  UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated', :optional => true},                  PREMIUMSUBSCRIPTIONNUMBER => {:type => ::Thrift::Types::STRING, :name => 'premiumSubscriptionNumber', :optional => true}, -                LASTREQUESTEDCHARGE => {:type => ::Thrift::Types::I64, :name => 'lastRequestedCharge', :optional => true} +                LASTREQUESTEDCHARGE => {:type => ::Thrift::Types::I64, :name => 'lastRequestedCharge', :optional => true}, +                CURRENCY => {:type => ::Thrift::Types::STRING, :name => 'currency', :optional => true}, +                UNITPRICE => {:type => ::Thrift::Types::I32, :name => 'unitPrice', :optional => true}                }                def struct_fields; FIELDS; end @@ -899,6 +912,15 @@ module Evernote              #   <br/>              #   Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX              #   </dd> +            #  +            # <dt>shareDate</dt> +            #  <dd>The date and time when this note was directly shared via its own URL. +            #  This is only set on notes that were individually shared, it's independent +            #  of any notebook-level sharing of the containing notepbook.  This field +            #  is treated as "read-only" for clients ... the server will ignore changes +            #  to this field from an external client. +            #  </dd> +            #               # </dl>              class NoteAttributes                include ::Thrift::Struct, ::Thrift::Struct_Union @@ -910,6 +932,7 @@ module Evernote                SOURCE = 14                SOURCEURL = 15                SOURCEAPPLICATION = 16 +              SHAREDATE = 17                FIELDS = {                  SUBJECTDATE => {:type => ::Thrift::Types::I64, :name => 'subjectDate', :optional => true}, @@ -919,7 +942,8 @@ module Evernote                  AUTHOR => {:type => ::Thrift::Types::STRING, :name => 'author', :optional => true},                  SOURCE => {:type => ::Thrift::Types::STRING, :name => 'source', :optional => true},                  SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true}, -                SOURCEAPPLICATION => {:type => ::Thrift::Types::STRING, :name => 'sourceApplication', :optional => true} +                SOURCEAPPLICATION => {:type => ::Thrift::Types::STRING, :name => 'sourceApplication', :optional => true}, +                SHAREDATE => {:type => ::Thrift::Types::I64, :name => 'shareDate', :optional => true}                }                def struct_fields; FIELDS; end @@ -1410,6 +1434,10 @@ module Evernote              #   ad should be displayed in the daily set of ads, relative to a base              #   frequency of 1.0.  I.e. an ad with a frequency of 3.0 should be displayed              #   three times more frequently than an ad with a frequency of 1.0.</dd> +            #  +            #   <dt>openInTrunk</dt> +            #   <dd>If true, the ad should be opened in the embedded Trunk window by +            #   clients with Trunk support.</dd>              # </dl>              class Ad                include ::Thrift::Struct, ::Thrift::Struct_Union @@ -1425,6 +1453,7 @@ module Evernote                IMAGEMIME = 10                HTML = 11                DISPLAYFREQUENCY = 12 +              OPENINTRUNK = 13                FIELDS = {                  ID => {:type => ::Thrift::Types::I32, :name => 'id', :optional => true}, @@ -1438,7 +1467,8 @@ module Evernote                  IMAGE => {:type => ::Thrift::Types::STRING, :name => 'image', :binary => true, :optional => true},                  IMAGEMIME => {:type => ::Thrift::Types::STRING, :name => 'imageMime', :optional => true},                  HTML => {:type => ::Thrift::Types::STRING, :name => 'html', :optional => true}, -                DISPLAYFREQUENCY => {:type => ::Thrift::Types::DOUBLE, :name => 'displayFrequency', :optional => true} +                DISPLAYFREQUENCY => {:type => ::Thrift::Types::DOUBLE, :name => 'displayFrequency', :optional => true}, +                OPENINTRUNK => {:type => ::Thrift::Types::BOOL, :name => 'openInTrunk', :optional => true}                }                def struct_fields; FIELDS; end diff --git a/vendor/gen-rb/evernote/edam/user_store.rb b/vendor/gen-rb/evernote/edam/user_store.rb index 894338f..3693817 100644 --- a/vendor/gen-rb/evernote/edam/user_store.rb +++ b/vendor/gen-rb/evernote/edam/user_store.rb @@ -177,7 +177,7 @@ require 'user_store_types'                        FIELDS = {                          CLIENTNAME => {:type => ::Thrift::Types::STRING, :name => 'clientName'},                          EDAMVERSIONMAJOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMajor', :default => 1}, -                        EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 17} +                        EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 19}                        }                        def struct_fields; FIELDS; end diff --git a/vendor/gen-rb/evernote/edam/user_store_constants.rb b/vendor/gen-rb/evernote/edam/user_store_constants.rb index 4a61bcf..a36f4b0 100644 --- a/vendor/gen-rb/evernote/edam/user_store_constants.rb +++ b/vendor/gen-rb/evernote/edam/user_store_constants.rb @@ -11,7 +11,7 @@ require 'user_store_types'            module UserStore              EDAM_VERSION_MAJOR = 1 -            EDAM_VERSION_MINOR = 17 +            EDAM_VERSION_MINOR = 19      end    end | 
