evernote-thrift 1.23.2 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/evernote-thrift.gemspec +1 -1
- data/lib/Evernote/EDAM/errors_constants.rb +1 -1
- data/lib/Evernote/EDAM/errors_types.rb +13 -4
- data/lib/Evernote/EDAM/limits_constants.rb +45 -7
- data/lib/Evernote/EDAM/limits_types.rb +1 -1
- data/lib/Evernote/EDAM/note_store.rb +1 -1
- data/lib/Evernote/EDAM/note_store_constants.rb +1 -1
- data/lib/Evernote/EDAM/note_store_types.rb +9 -20
- data/lib/Evernote/EDAM/types_constants.rb +1 -1
- data/lib/Evernote/EDAM/types_types.rb +211 -56
- data/lib/Evernote/EDAM/user_store.rb +65 -2
- data/lib/Evernote/EDAM/user_store_constants.rb +2 -2
- data/lib/Evernote/EDAM/user_store_types.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d0969bf81984d4c4495c7599f1043634910c021
|
4
|
+
data.tar.gz: 120ff70c706e9d0a5c83b556dcfc8dc03d66df52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acee3fbbfe3465616ebffe180102a5c4e2ec737e7c94f43e6e2528a20b1b887fe6a4c7eab812a522f901a57596e68967ea4190d684d1fad284da23678c97f3c6
|
7
|
+
data.tar.gz: 103d6245cd420196fd2539f5678bd15aade74ec4b3efb56c93a366efc47e318614c919eef113b5fc0e47357a0402f98da0a72a843c4d1d29fbb16fe67a504e20
|
data/README.md
CHANGED
data/evernote-thrift.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'evernote-thrift'
|
|
6
6
|
|
7
7
|
majorv = Evernote::EDAM::UserStore::EDAM_VERSION_MAJOR
|
8
8
|
minorv = Evernote::EDAM::UserStore::EDAM_VERSION_MINOR
|
9
|
-
rev =
|
9
|
+
rev = 0
|
10
10
|
version = Gem::Version.new("#{majorv}.#{minorv}.#{rev}").version
|
11
11
|
|
12
12
|
Gem::Specification.new do |s|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.5.0-en-exported)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -27,8 +27,10 @@ module Evernote
|
|
27
27
|
TOO_FEW = 15
|
28
28
|
TOO_MANY = 16
|
29
29
|
UNSUPPORTED_OPERATION = 17
|
30
|
-
|
31
|
-
|
30
|
+
TAKEN_DOWN = 18
|
31
|
+
RATE_LIMIT_REACHED = 19
|
32
|
+
VALUE_MAP = {1 => "UNKNOWN", 2 => "BAD_DATA_FORMAT", 3 => "PERMISSION_DENIED", 4 => "INTERNAL_ERROR", 5 => "DATA_REQUIRED", 6 => "LIMIT_REACHED", 7 => "QUOTA_REACHED", 8 => "INVALID_AUTH", 9 => "AUTH_EXPIRED", 10 => "DATA_CONFLICT", 11 => "ENML_VALIDATION", 12 => "SHARD_UNAVAILABLE", 13 => "LEN_TOO_SHORT", 14 => "LEN_TOO_LONG", 15 => "TOO_FEW", 16 => "TOO_MANY", 17 => "UNSUPPORTED_OPERATION", 18 => "TAKEN_DOWN", 19 => "RATE_LIMIT_REACHED"}
|
33
|
+
VALID_VALUES = Set.new([UNKNOWN, BAD_DATA_FORMAT, PERMISSION_DENIED, INTERNAL_ERROR, DATA_REQUIRED, LIMIT_REACHED, QUOTA_REACHED, INVALID_AUTH, AUTH_EXPIRED, DATA_CONFLICT, ENML_VALIDATION, SHARD_UNAVAILABLE, LEN_TOO_SHORT, LEN_TOO_LONG, TOO_FEW, TOO_MANY, UNSUPPORTED_OPERATION, TAKEN_DOWN, RATE_LIMIT_REACHED]).freeze
|
32
34
|
end
|
33
35
|
|
34
36
|
# This exception is thrown by EDAM procedures when a call fails as a result of
|
@@ -75,14 +77,21 @@ module Evernote
|
|
75
77
|
# must be one of the values of EDAMErrorCode.
|
76
78
|
#
|
77
79
|
# message: This may contain additional information about the error
|
80
|
+
#
|
81
|
+
# rateLimitDuration: Indicates the minimum number of seconds that an application should
|
82
|
+
# expect subsequent API calls for this user to fail. The application should not retry
|
83
|
+
# API requests for the user until at least this many seconds have passed. Present only
|
84
|
+
# when errorCode is RATE_LIMIT_REACHED,
|
78
85
|
class EDAMSystemException < ::Thrift::Exception
|
79
86
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
80
87
|
ERRORCODE = 1
|
81
88
|
MESSAGE = 2
|
89
|
+
RATELIMITDURATION = 3
|
82
90
|
|
83
91
|
FIELDS = {
|
84
92
|
ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => ::Evernote::EDAM::Error::EDAMErrorCode},
|
85
|
-
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true}
|
93
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true},
|
94
|
+
RATELIMITDURATION => {:type => ::Thrift::Types::I32, :name => 'rateLimitDuration', :optional => true}
|
86
95
|
}
|
87
96
|
|
88
97
|
def struct_fields; FIELDS; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.5.0-en-exported)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -36,7 +36,7 @@ module Evernote
|
|
36
36
|
|
37
37
|
EDAM_EMAIL_REGEX = %q"^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$"
|
38
38
|
|
39
|
-
EDAM_VAT_REGEX = %q"[A-
|
39
|
+
EDAM_VAT_REGEX = %q"^((AT)?U[0-9]{8}|(BE)?0?[0-9]{9}|(BG)?[0-9]{9,10}|(CY)?[0-9]{8}L|(CZ)?[0-9]{8,10}|(DE)?[0-9]{9}|(DK)?[0-9]{8}|(EE)?[0-9]{9}|(EL|GR)?[0-9]{9}|(ES)?[0-9A-Z][0-9]{7}[0-9A-Z]|(FI)?[0-9]{8}|(FR)?[0-9A-Z]{2}[0-9]{9}|(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})|(HU)?[0-9]{8}|(IE)?[0-9]S[0-9]{5}L|(IT)?[0-9]{11}|(LT)?([0-9]{9}|[0-9]{12})|(LU)?[0-9]{8}|(LV)?[0-9]{11}|(MT)?[0-9]{8}|(NL)?[0-9]{9}B[0-9]{2}|(PL)?[0-9]{10}|(PT)?[0-9]{9}|(RO)?[0-9]{2,10}|(SE)?[0-9]{12}|(SI)?[0-9]{8}|(SK)?[0-9]{10})|[0-9]{9}MVA|[0-9]{6}|CHE[0-9]{9}(TVA|MWST|IVA)$"
|
40
40
|
|
41
41
|
EDAM_TIMEZONE_LEN_MIN = 1
|
42
42
|
|
@@ -88,6 +88,24 @@ module Evernote
|
|
88
88
|
%q"audio/mp4",
|
89
89
|
])
|
90
90
|
|
91
|
+
EDAM_INDEXABLE_RESOURCE_MIME_TYPES = Set.new([
|
92
|
+
%q"application/msword",
|
93
|
+
%q"application/mspowerpoint",
|
94
|
+
%q"application/excel",
|
95
|
+
%q"application/vnd.ms-word",
|
96
|
+
%q"application/vnd.ms-powerpoint",
|
97
|
+
%q"application/vnd.ms-excel",
|
98
|
+
%q"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
99
|
+
%q"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
100
|
+
%q"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
101
|
+
%q"application/vnd.apple.pages",
|
102
|
+
%q"application/vnd.apple.numbers",
|
103
|
+
%q"application/vnd.apple.keynote",
|
104
|
+
%q"application/x-iwork-pages-sffpages",
|
105
|
+
%q"application/x-iwork-numbers-sffnumbers",
|
106
|
+
%q"application/x-iwork-keynote-sffkey",
|
107
|
+
])
|
108
|
+
|
91
109
|
EDAM_SEARCH_QUERY_LEN_MIN = 0
|
92
110
|
|
93
111
|
EDAM_SEARCH_QUERY_LEN_MAX = 1024
|
@@ -208,7 +226,7 @@ module Evernote
|
|
208
226
|
|
209
227
|
EDAM_USER_UPLOAD_LIMIT_PREMIUM = 1073741824
|
210
228
|
|
211
|
-
EDAM_USER_UPLOAD_LIMIT_BUSINESS =
|
229
|
+
EDAM_USER_UPLOAD_LIMIT_BUSINESS = 2147483647
|
212
230
|
|
213
231
|
EDAM_NOTE_SIZE_MAX_FREE = 26214400
|
214
232
|
|
@@ -220,27 +238,35 @@ module Evernote
|
|
220
238
|
|
221
239
|
EDAM_USER_LINKED_NOTEBOOK_MAX = 100
|
222
240
|
|
241
|
+
EDAM_USER_LINKED_NOTEBOOK_MAX_PREMIUM = 250
|
242
|
+
|
223
243
|
EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 250
|
224
244
|
|
225
245
|
EDAM_NOTE_CONTENT_CLASS_LEN_MIN = 3
|
226
246
|
|
227
247
|
EDAM_NOTE_CONTENT_CLASS_LEN_MAX = 32
|
228
248
|
|
249
|
+
EDAM_NOTE_CONTENT_CLASS_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
|
250
|
+
|
229
251
|
EDAM_HELLO_APP_CONTENT_CLASS_PREFIX = %q"evernote.hello."
|
230
252
|
|
231
253
|
EDAM_FOOD_APP_CONTENT_CLASS_PREFIX = %q"evernote.food."
|
232
254
|
|
233
|
-
EDAM_NOTE_CONTENT_CLASS_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
|
234
|
-
|
235
255
|
EDAM_CONTENT_CLASS_HELLO_ENCOUNTER = %q"evernote.hello.encounter"
|
236
256
|
|
237
257
|
EDAM_CONTENT_CLASS_HELLO_PROFILE = %q"evernote.hello.profile"
|
238
258
|
|
239
259
|
EDAM_CONTENT_CLASS_FOOD_MEAL = %q"evernote.food.meal"
|
240
260
|
|
261
|
+
EDAM_CONTENT_CLASS_SKITCH_PREFIX = %q"evernote.skitch"
|
262
|
+
|
241
263
|
EDAM_CONTENT_CLASS_SKITCH = %q"evernote.skitch"
|
242
264
|
|
243
|
-
|
265
|
+
EDAM_CONTENT_CLASS_SKITCH_PDF = %q"evernote.skitch.pdf"
|
266
|
+
|
267
|
+
EDAM_CONTENT_CLASS_PENULTIMATE_PREFIX = %q"evernote.penultimate."
|
268
|
+
|
269
|
+
EDAM_CONTENT_CLASS_PENULTIMATE_NOTEBOOK = %q"evernote.penultimate.notebook"
|
244
270
|
|
245
271
|
EDAM_RELATED_PLAINTEXT_LEN_MIN = 1
|
246
272
|
|
@@ -258,6 +284,8 @@ module Evernote
|
|
258
284
|
|
259
285
|
EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,198}[^\\p{Cc}\\p{Z}])?$"
|
260
286
|
|
287
|
+
EDAM_BUSINESS_PHONE_NUMBER_LEN_MAX = 20
|
288
|
+
|
261
289
|
EDAM_PREFERENCE_NAME_LEN_MIN = 3
|
262
290
|
|
263
291
|
EDAM_PREFERENCE_NAME_LEN_MAX = 32
|
@@ -268,12 +296,16 @@ module Evernote
|
|
268
296
|
|
269
297
|
EDAM_MAX_PREFERENCES = 100
|
270
298
|
|
271
|
-
EDAM_MAX_VALUES_PER_PREFERENCE =
|
299
|
+
EDAM_MAX_VALUES_PER_PREFERENCE = 256
|
272
300
|
|
273
301
|
EDAM_PREFERENCE_NAME_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
|
274
302
|
|
275
303
|
EDAM_PREFERENCE_VALUE_REGEX = %q"^[^\\p{Cc}]{1,1024}$"
|
276
304
|
|
305
|
+
EDAM_PREFERENCE_SHORTCUTS = %q"evernote.shortcuts"
|
306
|
+
|
307
|
+
EDAM_PREFERENCE_SHORTCUTS_MAX_VALUES = 250
|
308
|
+
|
277
309
|
EDAM_DEVICE_ID_LEN_MAX = 32
|
278
310
|
|
279
311
|
EDAM_DEVICE_ID_REGEX = %q"^[^\\p{Cc}]{1,32}$"
|
@@ -282,6 +314,12 @@ module Evernote
|
|
282
314
|
|
283
315
|
EDAM_DEVICE_DESCRIPTION_REGEX = %q"^[^\\p{Cc}]{1,64}$"
|
284
316
|
|
317
|
+
EDAM_SEARCH_SUGGESTIONS_MAX = 10
|
318
|
+
|
319
|
+
EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MAX = 1024
|
320
|
+
|
321
|
+
EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MIN = 2
|
322
|
+
|
285
323
|
end
|
286
324
|
end
|
287
325
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.5.0-en-exported)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -112,8 +112,8 @@ module Evernote
|
|
112
112
|
# If present, this is a list of non-expunged notes that
|
113
113
|
# have a USN in this chunk. This will include notes that are "deleted"
|
114
114
|
# but not expunged (i.e. in the trash). The notes will include their list
|
115
|
-
# of tags and resources, but the
|
116
|
-
# will not be supplied.
|
115
|
+
# of tags and resources, but the note content, resource content, resource
|
116
|
+
# recognition data and resource alternate data will not be supplied.
|
117
117
|
# </dd>
|
118
118
|
#
|
119
119
|
# <dt>notebooks</dt>
|
@@ -553,6 +553,7 @@ module Evernote
|
|
553
553
|
CONTENTLENGTH = 5
|
554
554
|
CREATED = 6
|
555
555
|
UPDATED = 7
|
556
|
+
DELETED = 8
|
556
557
|
UPDATESEQUENCENUM = 10
|
557
558
|
NOTEBOOKGUID = 11
|
558
559
|
TAGGUIDS = 12
|
@@ -566,6 +567,7 @@ module Evernote
|
|
566
567
|
CONTENTLENGTH => {:type => ::Thrift::Types::I32, :name => 'contentLength', :optional => true},
|
567
568
|
CREATED => {:type => ::Thrift::Types::I64, :name => 'created', :optional => true},
|
568
569
|
UPDATED => {:type => ::Thrift::Types::I64, :name => 'updated', :optional => true},
|
570
|
+
DELETED => {:type => ::Thrift::Types::I64, :name => 'deleted', :optional => true},
|
569
571
|
UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true},
|
570
572
|
NOTEBOOKGUID => {:type => ::Thrift::Types::STRING, :name => 'notebookGuid', :optional => true},
|
571
573
|
TAGGUIDS => {:type => ::Thrift::Types::LIST, :name => 'tagGuids', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
|
@@ -681,6 +683,7 @@ module Evernote
|
|
681
683
|
INCLUDECONTENTLENGTH = 5
|
682
684
|
INCLUDECREATED = 6
|
683
685
|
INCLUDEUPDATED = 7
|
686
|
+
INCLUDEDELETED = 8
|
684
687
|
INCLUDEUPDATESEQUENCENUM = 10
|
685
688
|
INCLUDENOTEBOOKGUID = 11
|
686
689
|
INCLUDETAGGUIDS = 12
|
@@ -693,6 +696,7 @@ module Evernote
|
|
693
696
|
INCLUDECONTENTLENGTH => {:type => ::Thrift::Types::BOOL, :name => 'includeContentLength', :optional => true},
|
694
697
|
INCLUDECREATED => {:type => ::Thrift::Types::BOOL, :name => 'includeCreated', :optional => true},
|
695
698
|
INCLUDEUPDATED => {:type => ::Thrift::Types::BOOL, :name => 'includeUpdated', :optional => true},
|
699
|
+
INCLUDEDELETED => {:type => ::Thrift::Types::BOOL, :name => 'includeDeleted', :optional => true},
|
696
700
|
INCLUDEUPDATESEQUENCENUM => {:type => ::Thrift::Types::BOOL, :name => 'includeUpdateSequenceNum', :optional => true},
|
697
701
|
INCLUDENOTEBOOKGUID => {:type => ::Thrift::Types::BOOL, :name => 'includeNotebookGuid', :optional => true},
|
698
702
|
INCLUDETAGGUIDS => {:type => ::Thrift::Types::BOOL, :name => 'includeTagGuids', :optional => true},
|
@@ -989,12 +993,6 @@ module Evernote
|
|
989
993
|
# list will occur once per notebook GUID and are represented as
|
990
994
|
# NotebookDescriptor objects.</dd>
|
991
995
|
# </dl>
|
992
|
-
#
|
993
|
-
# <dt>debugInfo</dt>
|
994
|
-
# <dd>NOTE: This should be excluded from the public API.<br /><br />
|
995
|
-
# If <code>includeDebugInfo</code> in RelatedResultSpec is set to
|
996
|
-
# <code>true</code>, this field may contain debug information
|
997
|
-
# if the service decides to do so.</dd>
|
998
996
|
# </dl>
|
999
997
|
class RelatedResult
|
1000
998
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -1002,14 +1000,12 @@ module Evernote
|
|
1002
1000
|
NOTEBOOKS = 2
|
1003
1001
|
TAGS = 3
|
1004
1002
|
CONTAININGNOTEBOOKS = 4
|
1005
|
-
DEBUGINFO = 5
|
1006
1003
|
|
1007
1004
|
FIELDS = {
|
1008
1005
|
NOTES => {:type => ::Thrift::Types::LIST, :name => 'notes', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Evernote::EDAM::Type::Note}, :optional => true},
|
1009
1006
|
NOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'notebooks', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Evernote::EDAM::Type::Notebook}, :optional => true},
|
1010
1007
|
TAGS => {:type => ::Thrift::Types::LIST, :name => 'tags', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Evernote::EDAM::Type::Tag}, :optional => true},
|
1011
|
-
CONTAININGNOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'containingNotebooks', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Evernote::EDAM::Type::NotebookDescriptor}, :optional => true}
|
1012
|
-
DEBUGINFO => {:type => ::Thrift::Types::STRING, :name => 'debugInfo', :optional => true}
|
1008
|
+
CONTAININGNOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'containingNotebooks', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Evernote::EDAM::Type::NotebookDescriptor}, :optional => true}
|
1013
1009
|
}
|
1014
1010
|
|
1015
1011
|
def struct_fields; FIELDS; end
|
@@ -1057,11 +1053,6 @@ module Evernote
|
|
1057
1053
|
# in the RelatedResult, which will contain the list of notebooks to
|
1058
1054
|
# to which the returned related notes belong.</dd>
|
1059
1055
|
# </dl>
|
1060
|
-
#
|
1061
|
-
# <dt>includeDebugInfo</dt>
|
1062
|
-
# <dd>NOTE: This should be excluded from the public API.<br /><br />
|
1063
|
-
# If set to <code>true</code>, indicate that debug information should
|
1064
|
-
# be returned in the 'debugInfo' field of RelatedResult.</dd>
|
1065
1056
|
# </dl>
|
1066
1057
|
class RelatedResultSpec
|
1067
1058
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -1070,15 +1061,13 @@ module Evernote
|
|
1070
1061
|
MAXTAGS = 3
|
1071
1062
|
WRITABLENOTEBOOKSONLY = 4
|
1072
1063
|
INCLUDECONTAININGNOTEBOOKS = 5
|
1073
|
-
INCLUDEDEBUGINFO = 6
|
1074
1064
|
|
1075
1065
|
FIELDS = {
|
1076
1066
|
MAXNOTES => {:type => ::Thrift::Types::I32, :name => 'maxNotes', :optional => true},
|
1077
1067
|
MAXNOTEBOOKS => {:type => ::Thrift::Types::I32, :name => 'maxNotebooks', :optional => true},
|
1078
1068
|
MAXTAGS => {:type => ::Thrift::Types::I32, :name => 'maxTags', :optional => true},
|
1079
1069
|
WRITABLENOTEBOOKSONLY => {:type => ::Thrift::Types::BOOL, :name => 'writableNotebooksOnly', :optional => true},
|
1080
|
-
INCLUDECONTAININGNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'includeContainingNotebooks', :optional => true}
|
1081
|
-
INCLUDEDEBUGINFO => {:type => ::Thrift::Types::BOOL, :name => 'includeDebugInfo', :optional => true}
|
1070
|
+
INCLUDECONTAININGNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'includeContainingNotebooks', :optional => true}
|
1082
1071
|
}
|
1083
1072
|
|
1084
1073
|
def struct_fields; FIELDS; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.5.0-en-exported)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -14,11 +14,12 @@ module Evernote
|
|
14
14
|
module PrivilegeLevel
|
15
15
|
NORMAL = 1
|
16
16
|
PREMIUM = 3
|
17
|
+
VIP = 5
|
17
18
|
MANAGER = 7
|
18
19
|
SUPPORT = 8
|
19
20
|
ADMIN = 9
|
20
|
-
VALUE_MAP = {1 => "NORMAL", 3 => "PREMIUM", 7 => "MANAGER", 8 => "SUPPORT", 9 => "ADMIN"}
|
21
|
-
VALID_VALUES = Set.new([NORMAL, PREMIUM, MANAGER, SUPPORT, ADMIN]).freeze
|
21
|
+
VALUE_MAP = {1 => "NORMAL", 3 => "PREMIUM", 5 => "VIP", 7 => "MANAGER", 8 => "SUPPORT", 9 => "ADMIN"}
|
22
|
+
VALID_VALUES = Set.new([NORMAL, PREMIUM, VIP, MANAGER, SUPPORT, ADMIN]).freeze
|
22
23
|
end
|
23
24
|
|
24
25
|
module QueryFormat
|
@@ -82,6 +83,13 @@ module Evernote
|
|
82
83
|
VALID_VALUES = Set.new([ONLY_JOINED_OR_PREVIEW, NO_SHARED_NOTEBOOKS]).freeze
|
83
84
|
end
|
84
85
|
|
86
|
+
module ReminderEmailConfig
|
87
|
+
DO_NOT_SEND = 1
|
88
|
+
SEND_DAILY_EMAIL = 2
|
89
|
+
VALUE_MAP = {1 => "DO_NOT_SEND", 2 => "SEND_DAILY_EMAIL"}
|
90
|
+
VALID_VALUES = Set.new([DO_NOT_SEND, SEND_DAILY_EMAIL]).freeze
|
91
|
+
end
|
92
|
+
|
85
93
|
# In several places, EDAM exchanges blocks of bytes of data for a component
|
86
94
|
# which may be relatively large. For example: the contents of a clipped
|
87
95
|
# HTML note, the bytes of an embedded image, or the recognition XML for
|
@@ -274,11 +282,6 @@ module Evernote
|
|
274
282
|
# If not set, then the 'preferredLanguage' will be used.
|
275
283
|
# </dd>
|
276
284
|
#
|
277
|
-
# <dt>customerProfileId</dt>
|
278
|
-
# <dd>a numeric identified which provides a linkage between the user record
|
279
|
-
# and the direct credit card payment creditcard profile.
|
280
|
-
# </dd>
|
281
|
-
#
|
282
285
|
# <dt>educationalInstitution</dt>
|
283
286
|
# <dd>a flag indicating that the user is part of an educational institution which
|
284
287
|
# makes them eligible for discounts on bulk purchases
|
@@ -287,17 +290,28 @@ module Evernote
|
|
287
290
|
# <dt>businessAddress</dt>
|
288
291
|
# <dd>A string recording the business address of a Sponsored Account user who has requested invoicing.
|
289
292
|
# </dd>
|
290
|
-
# </dl>
|
291
293
|
#
|
292
294
|
# <dt>hideSponsorBilling</dt>
|
293
295
|
# <dd>A flag indicating whether to hide the billing information on a sponsored
|
294
296
|
# account owner's settings page
|
295
297
|
# </dd>
|
296
|
-
# </dl>
|
297
298
|
#
|
298
299
|
# <dt>taxExempt</dt>
|
299
300
|
# <dd>A flag indicating the user's sponsored group is exempt from sale tax
|
300
301
|
# </dd>
|
302
|
+
#
|
303
|
+
# <dt>useEmailAutoFiling</dt>
|
304
|
+
# <dd>A flag indicating whether the user chooses to allow Evernote to automatically
|
305
|
+
# file and tag emailed notes
|
306
|
+
# </dd>
|
307
|
+
#
|
308
|
+
# <dt>reminderEmailConfig</dt>
|
309
|
+
# <dd>Configuration state for whether or not the user wishes to receive
|
310
|
+
# reminder e-mail. This setting applies to both the reminder e-mail sent
|
311
|
+
# for personal reminder notes and for the reminder e-mail sent for reminder
|
312
|
+
# notes in the user's business notebooks that the user has configured for
|
313
|
+
# e-mail notifications.
|
314
|
+
# </dd>
|
301
315
|
# </dl>
|
302
316
|
class UserAttributes
|
303
317
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -325,12 +339,13 @@ module Evernote
|
|
325
339
|
TWITTERID = 24
|
326
340
|
GROUPNAME = 25
|
327
341
|
RECOGNITIONLANGUAGE = 26
|
328
|
-
CUSTOMERPROFILEID = 27
|
329
342
|
REFERRALPROOF = 28
|
330
343
|
EDUCATIONALDISCOUNT = 29
|
331
344
|
BUSINESSADDRESS = 30
|
332
345
|
HIDESPONSORBILLING = 31
|
333
346
|
TAXEXEMPT = 32
|
347
|
+
USEEMAILAUTOFILING = 33
|
348
|
+
REMINDEREMAILCONFIG = 34
|
334
349
|
|
335
350
|
FIELDS = {
|
336
351
|
DEFAULTLOCATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'defaultLocationName', :optional => true},
|
@@ -357,17 +372,21 @@ module Evernote
|
|
357
372
|
TWITTERID => {:type => ::Thrift::Types::STRING, :name => 'twitterId', :optional => true},
|
358
373
|
GROUPNAME => {:type => ::Thrift::Types::STRING, :name => 'groupName', :optional => true},
|
359
374
|
RECOGNITIONLANGUAGE => {:type => ::Thrift::Types::STRING, :name => 'recognitionLanguage', :optional => true},
|
360
|
-
CUSTOMERPROFILEID => {:type => ::Thrift::Types::I64, :name => 'customerProfileId', :optional => true},
|
361
375
|
REFERRALPROOF => {:type => ::Thrift::Types::STRING, :name => 'referralProof', :optional => true},
|
362
376
|
EDUCATIONALDISCOUNT => {:type => ::Thrift::Types::BOOL, :name => 'educationalDiscount', :optional => true},
|
363
377
|
BUSINESSADDRESS => {:type => ::Thrift::Types::STRING, :name => 'businessAddress', :optional => true},
|
364
378
|
HIDESPONSORBILLING => {:type => ::Thrift::Types::BOOL, :name => 'hideSponsorBilling', :optional => true},
|
365
|
-
TAXEXEMPT => {:type => ::Thrift::Types::BOOL, :name => 'taxExempt', :optional => true}
|
379
|
+
TAXEXEMPT => {:type => ::Thrift::Types::BOOL, :name => 'taxExempt', :optional => true},
|
380
|
+
USEEMAILAUTOFILING => {:type => ::Thrift::Types::BOOL, :name => 'useEmailAutoFiling', :optional => true},
|
381
|
+
REMINDEREMAILCONFIG => {:type => ::Thrift::Types::I32, :name => 'reminderEmailConfig', :optional => true, :enum_class => ::Evernote::EDAM::Type::ReminderEmailConfig}
|
366
382
|
}
|
367
383
|
|
368
384
|
def struct_fields; FIELDS; end
|
369
385
|
|
370
386
|
def validate
|
387
|
+
unless @reminderEmailConfig.nil? || ::Evernote::EDAM::Type::ReminderEmailConfig::VALID_VALUES.include?(@reminderEmailConfig)
|
388
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field reminderEmailConfig!')
|
389
|
+
end
|
371
390
|
end
|
372
391
|
|
373
392
|
::Thrift::Struct.generate_accessors self
|
@@ -449,14 +468,15 @@ module Evernote
|
|
449
468
|
# <dt>unitPrice</dt>
|
450
469
|
# <dd>charge in the smallest unit of the currency (e.g. cents for USD)</dd>
|
451
470
|
# <dt>businessId</dt>
|
452
|
-
# <dd>
|
453
|
-
# member of. If not set, the user is not a member of a business.</dd>
|
471
|
+
# <dd><i>DEPRECATED:</i>See BusinessUserInfo.</dd>
|
454
472
|
# <dt>businessName</dt>
|
455
|
-
# <dd>
|
456
|
-
# the user is a member of.</dd>
|
473
|
+
# <dd><i>DEPRECATED:</i>See BusinessUserInfo.</dd>
|
457
474
|
# <dt>businessRole</dt>
|
458
|
-
# <dd>
|
459
|
-
#
|
475
|
+
# <dd><i>DEPRECATED:</i>See BusinessUserInfo.</dd>
|
476
|
+
# <dt>unitDiscount</dt>
|
477
|
+
# <dd>discount per seat in negative amount and smallest unit of the currency (e.g. cents for USD)</dd>
|
478
|
+
# <dt>nextChargeDate</dt>
|
479
|
+
# <dd>The next time the user will be charged, may or may not be the same as nextPaymentDue</dd>
|
460
480
|
# </dl>
|
461
481
|
class Accounting
|
462
482
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -481,6 +501,8 @@ module Evernote
|
|
481
501
|
BUSINESSID = 20
|
482
502
|
BUSINESSNAME = 21
|
483
503
|
BUSINESSROLE = 22
|
504
|
+
UNITDISCOUNT = 23
|
505
|
+
NEXTCHARGEDATE = 24
|
484
506
|
|
485
507
|
FIELDS = {
|
486
508
|
UPLOADLIMIT => {:type => ::Thrift::Types::I64, :name => 'uploadLimit', :optional => true},
|
@@ -503,7 +525,9 @@ module Evernote
|
|
503
525
|
UNITPRICE => {:type => ::Thrift::Types::I32, :name => 'unitPrice', :optional => true},
|
504
526
|
BUSINESSID => {:type => ::Thrift::Types::I32, :name => 'businessId', :optional => true},
|
505
527
|
BUSINESSNAME => {:type => ::Thrift::Types::STRING, :name => 'businessName', :optional => true},
|
506
|
-
BUSINESSROLE => {:type => ::Thrift::Types::I32, :name => 'businessRole', :optional => true, :enum_class => ::Evernote::EDAM::Type::BusinessUserRole}
|
528
|
+
BUSINESSROLE => {:type => ::Thrift::Types::I32, :name => 'businessRole', :optional => true, :enum_class => ::Evernote::EDAM::Type::BusinessUserRole},
|
529
|
+
UNITDISCOUNT => {:type => ::Thrift::Types::I32, :name => 'unitDiscount', :optional => true},
|
530
|
+
NEXTCHARGEDATE => {:type => ::Thrift::Types::I64, :name => 'nextChargeDate', :optional => true}
|
507
531
|
}
|
508
532
|
|
509
533
|
def struct_fields; FIELDS; end
|
@@ -520,6 +544,51 @@ module Evernote
|
|
520
544
|
::Thrift::Struct.generate_accessors self
|
521
545
|
end
|
522
546
|
|
547
|
+
# This structure is used to provide information about an Evernote Business
|
548
|
+
# membership, for members who are part of a business.
|
549
|
+
#
|
550
|
+
# <dl>
|
551
|
+
# <dt>businessId</dt>
|
552
|
+
# <dd>The ID of the Evernote Business account that the user is a member of.
|
553
|
+
# <dt>businessName</dt>
|
554
|
+
# <dd>The human-readable name of the Evernote Business account that the user
|
555
|
+
# is a member of.</dd>
|
556
|
+
# <dt>role</dt>
|
557
|
+
# <dd>The role of the user within the Evernote Business account that
|
558
|
+
# they are a member of.</dd>
|
559
|
+
# <dt>email</dt>
|
560
|
+
# <dd>An e-mail address that will be used by the service in the context of your
|
561
|
+
# Evernote Business activities. For example, this e-mail address will be used
|
562
|
+
# when you e-mail a business note, when you update notes in the account of
|
563
|
+
# your business, etc. The business e-mail cannot be used for identification
|
564
|
+
# purposes such as for logging into the service.
|
565
|
+
# </dd>
|
566
|
+
# </dl>
|
567
|
+
class BusinessUserInfo
|
568
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
569
|
+
BUSINESSID = 1
|
570
|
+
BUSINESSNAME = 2
|
571
|
+
ROLE = 3
|
572
|
+
EMAIL = 4
|
573
|
+
|
574
|
+
FIELDS = {
|
575
|
+
BUSINESSID => {:type => ::Thrift::Types::I32, :name => 'businessId', :optional => true},
|
576
|
+
BUSINESSNAME => {:type => ::Thrift::Types::STRING, :name => 'businessName', :optional => true},
|
577
|
+
ROLE => {:type => ::Thrift::Types::I32, :name => 'role', :optional => true, :enum_class => ::Evernote::EDAM::Type::BusinessUserRole},
|
578
|
+
EMAIL => {:type => ::Thrift::Types::STRING, :name => 'email', :optional => true}
|
579
|
+
}
|
580
|
+
|
581
|
+
def struct_fields; FIELDS; end
|
582
|
+
|
583
|
+
def validate
|
584
|
+
unless @role.nil? || ::Evernote::EDAM::Type::BusinessUserRole::VALID_VALUES.include?(@role)
|
585
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field role!')
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
::Thrift::Struct.generate_accessors self
|
590
|
+
end
|
591
|
+
|
523
592
|
# This structure is used to provide information about a user's Premium account.
|
524
593
|
# <dl>
|
525
594
|
# <dt>currentTime</dt>
|
@@ -537,7 +606,7 @@ module Evernote
|
|
537
606
|
# <dt>premiumExpirationDate</dt>
|
538
607
|
# <dd>
|
539
608
|
# The date when the user's Premium account expires, or the date when the
|
540
|
-
# user's account
|
609
|
+
# user's account is due for payment if it has a recurring payment method.
|
541
610
|
# </dd>
|
542
611
|
# <dt>premiumExtendable</dt>
|
543
612
|
# <dd>
|
@@ -564,6 +633,10 @@ module Evernote
|
|
564
633
|
# <dd>
|
565
634
|
# DEPRECATED - will be removed in a future update.
|
566
635
|
# </dd>
|
636
|
+
# <dt>premiumUpgradable</dt>
|
637
|
+
# <dd>
|
638
|
+
# True if the user is eligible for purchasing Premium account upgrade.
|
639
|
+
# </dd>
|
567
640
|
# </dl>
|
568
641
|
class PremiumInfo
|
569
642
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -577,6 +650,7 @@ module Evernote
|
|
577
650
|
CANPURCHASEUPLOADALLOWANCE = 8
|
578
651
|
SPONSOREDGROUPNAME = 9
|
579
652
|
SPONSOREDGROUPROLE = 10
|
653
|
+
PREMIUMUPGRADABLE = 11
|
580
654
|
|
581
655
|
FIELDS = {
|
582
656
|
CURRENTTIME => {:type => ::Thrift::Types::I64, :name => 'currentTime'},
|
@@ -588,7 +662,8 @@ module Evernote
|
|
588
662
|
PREMIUMCANCELLATIONPENDING => {:type => ::Thrift::Types::BOOL, :name => 'premiumCancellationPending'},
|
589
663
|
CANPURCHASEUPLOADALLOWANCE => {:type => ::Thrift::Types::BOOL, :name => 'canPurchaseUploadAllowance'},
|
590
664
|
SPONSOREDGROUPNAME => {:type => ::Thrift::Types::STRING, :name => 'sponsoredGroupName', :optional => true},
|
591
|
-
SPONSOREDGROUPROLE => {:type => ::Thrift::Types::I32, :name => 'sponsoredGroupRole', :optional => true, :enum_class => ::Evernote::EDAM::Type::SponsoredGroupRole}
|
665
|
+
SPONSOREDGROUPROLE => {:type => ::Thrift::Types::I32, :name => 'sponsoredGroupRole', :optional => true, :enum_class => ::Evernote::EDAM::Type::SponsoredGroupRole},
|
666
|
+
PREMIUMUPGRADABLE => {:type => ::Thrift::Types::BOOL, :name => 'premiumUpgradable', :optional => true}
|
592
667
|
}
|
593
668
|
|
594
669
|
def struct_fields; FIELDS; end
|
@@ -630,8 +705,8 @@ module Evernote
|
|
630
705
|
# <dt>email</dt>
|
631
706
|
# <dd>The email address registered for the user. Must comply with
|
632
707
|
# RFC 2821 and RFC 2822.<br/>
|
633
|
-
#
|
634
|
-
#
|
708
|
+
# Third party applications that authenticate using OAuth do not have
|
709
|
+
# access to this field.
|
635
710
|
# Length: EDAM_EMAIL_LEN_MIN - EDAM_EMAIL_LEN_MAX
|
636
711
|
# <br/>
|
637
712
|
# Regex: EDAM_EMAIL_REGEX
|
@@ -703,6 +778,12 @@ module Evernote
|
|
703
778
|
# <dd>If present, this will contain a set of commerce information
|
704
779
|
# relating to the user's premium service level.
|
705
780
|
# </dd>
|
781
|
+
#
|
782
|
+
# <dt>businessUserInfo</dt>
|
783
|
+
# <dd>If present, this will contain a set of business information
|
784
|
+
# relating to the user's business membership. If not present, the
|
785
|
+
# user is not currently part of a business.
|
786
|
+
# </dd>
|
706
787
|
# </dl>
|
707
788
|
class User
|
708
789
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -720,6 +801,7 @@ module Evernote
|
|
720
801
|
ATTRIBUTES = 15
|
721
802
|
ACCOUNTING = 16
|
722
803
|
PREMIUMINFO = 17
|
804
|
+
BUSINESSUSERINFO = 18
|
723
805
|
|
724
806
|
FIELDS = {
|
725
807
|
ID => {:type => ::Thrift::Types::I32, :name => 'id', :optional => true},
|
@@ -735,7 +817,8 @@ module Evernote
|
|
735
817
|
SHARDID => {:type => ::Thrift::Types::STRING, :name => 'shardId', :optional => true},
|
736
818
|
ATTRIBUTES => {:type => ::Thrift::Types::STRUCT, :name => 'attributes', :class => ::Evernote::EDAM::Type::UserAttributes, :optional => true},
|
737
819
|
ACCOUNTING => {:type => ::Thrift::Types::STRUCT, :name => 'accounting', :class => ::Evernote::EDAM::Type::Accounting, :optional => true},
|
738
|
-
PREMIUMINFO => {:type => ::Thrift::Types::STRUCT, :name => 'premiumInfo', :class => ::Evernote::EDAM::Type::PremiumInfo, :optional => true}
|
820
|
+
PREMIUMINFO => {:type => ::Thrift::Types::STRUCT, :name => 'premiumInfo', :class => ::Evernote::EDAM::Type::PremiumInfo, :optional => true},
|
821
|
+
BUSINESSUSERINFO => {:type => ::Thrift::Types::STRUCT, :name => 'businessUserInfo', :class => ::Evernote::EDAM::Type::BusinessUserInfo, :optional => true}
|
739
822
|
}
|
740
823
|
|
741
824
|
def struct_fields; FIELDS; end
|
@@ -1142,33 +1225,52 @@ module Evernote
|
|
1142
1225
|
# <dt>shareDate</dt>
|
1143
1226
|
# <dd>The date and time when this note was directly shared via its own URL.
|
1144
1227
|
# This is only set on notes that were individually shared - it is independent
|
1145
|
-
# of any notebook-level sharing of the containing
|
1228
|
+
# of any notebook-level sharing of the containing notebook. This field
|
1146
1229
|
# is treated as "read-only" for clients; the server will ignore changes
|
1147
1230
|
# to this field from an external client.
|
1148
1231
|
# </dd>
|
1149
1232
|
#
|
1150
|
-
# <dt>
|
1151
|
-
# <dd>The
|
1152
|
-
#
|
1153
|
-
#
|
1154
|
-
# the
|
1155
|
-
#
|
1156
|
-
#
|
1157
|
-
#
|
1158
|
-
#
|
1159
|
-
#
|
1160
|
-
#
|
1161
|
-
#
|
1162
|
-
#
|
1163
|
-
#
|
1164
|
-
#
|
1165
|
-
#
|
1166
|
-
#
|
1167
|
-
#
|
1168
|
-
#
|
1169
|
-
#
|
1170
|
-
#
|
1171
|
-
#
|
1233
|
+
# <dt>reminderOrder</dt>
|
1234
|
+
# <dd>The set of notes with this parameter set are considered
|
1235
|
+
# "reminders" and are to be treated specially by clients to give them
|
1236
|
+
# higher UI prominence within a notebook. The value is used to sort
|
1237
|
+
# the reminder notes within the notebook with higher values
|
1238
|
+
# representing greater prominence. Outside of the context of a
|
1239
|
+
# notebook, the value of this parameter is undefined. The value is
|
1240
|
+
# not intended to be compared to the values of reminder notes in
|
1241
|
+
# other notebooks. In order to allow clients to place a note at a
|
1242
|
+
# higher precedence than other notes, you should never set a value
|
1243
|
+
# greater than the current time (as defined for a Timetstamp). To
|
1244
|
+
# place a note at higher precedence than existing notes, set the
|
1245
|
+
# value to the current time as defined for a timestamp (milliseconds
|
1246
|
+
# since the epoch). Synchronizing clients must remember the time when
|
1247
|
+
# the update was performed, using the local clock on the client,
|
1248
|
+
# and use that value when they later upload the note to the service.
|
1249
|
+
# Clients must not set the reminderOrder to the reminderTime as the
|
1250
|
+
# reminderTime could be in the future. Those two fields are never
|
1251
|
+
# intended to be related. The correct value for reminderOrder field
|
1252
|
+
# for new notes is the "current" time when the user indicated that
|
1253
|
+
# the note is a reminder. Clients may implement a separate
|
1254
|
+
# "sort by date" feature to show notes ordered by reminderTime.
|
1255
|
+
# Whenever a reminderDoneTime or reminderTime is set but a
|
1256
|
+
# reminderOrder is not set, the server will fill in the current
|
1257
|
+
# server time for the reminderOrder field.</dd>
|
1258
|
+
#
|
1259
|
+
# <dt>reminderDoneTime</dt>
|
1260
|
+
# <dd>The date and time when a user dismissed/"marked done" the reminder
|
1261
|
+
# on the note. Users typically do not manually set this value directly
|
1262
|
+
# as it is set to the time when the user dismissed/"marked done" the
|
1263
|
+
# reminder.</dd>
|
1264
|
+
#
|
1265
|
+
# <dt>reminderTime</dt>
|
1266
|
+
# <dd>The date and time a user has selected to be reminded of the note.
|
1267
|
+
# A note with this value set is known as a "reminder" and the user can
|
1268
|
+
# be reminded, via e-mail or client-specific notifications, of the note
|
1269
|
+
# when the time is reached or about to be reached. When a user sets
|
1270
|
+
# a reminder time on a note that has a reminder done time, and that
|
1271
|
+
# reminder time is in the future, then the reminder done time should be
|
1272
|
+
# cleared. This should happen regardless of any existing reminder time
|
1273
|
+
# that may have previously existed on the note.</dd>
|
1172
1274
|
#
|
1173
1275
|
# <dt>placeName</dt>
|
1174
1276
|
# <dd>Allows the user to assign a human-readable location name associated
|
@@ -1189,7 +1291,9 @@ module Evernote
|
|
1189
1291
|
# application does not specifically support the specified class,
|
1190
1292
|
# the client MUST treat the note as read-only. In this case, the
|
1191
1293
|
# client MAY modify the note's notebook and tags via the
|
1192
|
-
# Note.notebookGuid and Note.tagGuids fields.
|
1294
|
+
# Note.notebookGuid and Note.tagGuids fields. The client MAY also
|
1295
|
+
# modify the pinProminence field as well as the reminderTime and
|
1296
|
+
# reminderDismissTime fields.
|
1193
1297
|
# <p>Applications should set contentClass only when they are creating notes
|
1194
1298
|
# that contain structured information that needs to be maintained in order
|
1195
1299
|
# for the user to be able to use the note within that application.
|
@@ -1247,9 +1351,9 @@ module Evernote
|
|
1247
1351
|
SOURCEURL = 15
|
1248
1352
|
SOURCEAPPLICATION = 16
|
1249
1353
|
SHAREDATE = 17
|
1250
|
-
|
1251
|
-
|
1252
|
-
|
1354
|
+
REMINDERORDER = 18
|
1355
|
+
REMINDERDONETIME = 19
|
1356
|
+
REMINDERTIME = 20
|
1253
1357
|
PLACENAME = 21
|
1254
1358
|
CONTENTCLASS = 22
|
1255
1359
|
APPLICATIONDATA = 23
|
@@ -1266,9 +1370,9 @@ module Evernote
|
|
1266
1370
|
SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true},
|
1267
1371
|
SOURCEAPPLICATION => {:type => ::Thrift::Types::STRING, :name => 'sourceApplication', :optional => true},
|
1268
1372
|
SHAREDATE => {:type => ::Thrift::Types::I64, :name => 'shareDate', :optional => true},
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1373
|
+
REMINDERORDER => {:type => ::Thrift::Types::I64, :name => 'reminderOrder', :optional => true},
|
1374
|
+
REMINDERDONETIME => {:type => ::Thrift::Types::I64, :name => 'reminderDoneTime', :optional => true},
|
1375
|
+
REMINDERTIME => {:type => ::Thrift::Types::I64, :name => 'reminderTime', :optional => true},
|
1272
1376
|
PLACENAME => {:type => ::Thrift::Types::STRING, :name => 'placeName', :optional => true},
|
1273
1377
|
CONTENTCLASS => {:type => ::Thrift::Types::STRING, :name => 'contentClass', :optional => true},
|
1274
1378
|
APPLICATIONDATA => {:type => ::Thrift::Types::STRUCT, :name => 'applicationData', :class => ::Evernote::EDAM::Type::LazyMap, :optional => true},
|
@@ -1569,6 +1673,41 @@ module Evernote
|
|
1569
1673
|
::Thrift::Struct.generate_accessors self
|
1570
1674
|
end
|
1571
1675
|
|
1676
|
+
# A structure defining the scope of a SavedSearch.
|
1677
|
+
#
|
1678
|
+
# <dl>
|
1679
|
+
# <dt>includeAccount</dt>
|
1680
|
+
# <dd>The search should include notes from the account that contains the SavedSearch.</dd>
|
1681
|
+
#
|
1682
|
+
# <dt>includePersonalLinkedNotebooks</dt>
|
1683
|
+
# <dd>The search should include notes within those shared notebooks
|
1684
|
+
# that the user has joined that are NOT business notebooks.</dd>
|
1685
|
+
#
|
1686
|
+
# <dt>includeBusinessLinkedNotebooks</dt>
|
1687
|
+
# <dd>The search should include notes within those shared notebooks
|
1688
|
+
# that the user has joined that are business notebooks in the business that
|
1689
|
+
# the user is currently a member of.</dd>
|
1690
|
+
# </dl>
|
1691
|
+
class SavedSearchScope
|
1692
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
1693
|
+
INCLUDEACCOUNT = 1
|
1694
|
+
INCLUDEPERSONALLINKEDNOTEBOOKS = 2
|
1695
|
+
INCLUDEBUSINESSLINKEDNOTEBOOKS = 3
|
1696
|
+
|
1697
|
+
FIELDS = {
|
1698
|
+
INCLUDEACCOUNT => {:type => ::Thrift::Types::BOOL, :name => 'includeAccount', :optional => true},
|
1699
|
+
INCLUDEPERSONALLINKEDNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'includePersonalLinkedNotebooks', :optional => true},
|
1700
|
+
INCLUDEBUSINESSLINKEDNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'includeBusinessLinkedNotebooks', :optional => true}
|
1701
|
+
}
|
1702
|
+
|
1703
|
+
def struct_fields; FIELDS; end
|
1704
|
+
|
1705
|
+
def validate
|
1706
|
+
end
|
1707
|
+
|
1708
|
+
::Thrift::Struct.generate_accessors self
|
1709
|
+
end
|
1710
|
+
|
1572
1711
|
# A named search associated with the account that can be quickly re-used.
|
1573
1712
|
# <dl>
|
1574
1713
|
# <dt>guid</dt>
|
@@ -1607,6 +1746,20 @@ module Evernote
|
|
1607
1746
|
# account, and can be used to compare the order of modifications within the
|
1608
1747
|
# service.
|
1609
1748
|
# </dd>
|
1749
|
+
#
|
1750
|
+
# <dt>scope</dt>
|
1751
|
+
# <dd><p>Specifies the set of notes that should be included in the search, if
|
1752
|
+
# possible.</p>
|
1753
|
+
# <p>Clients are expected to search as much of the desired scope as possible,
|
1754
|
+
# with the understanding that a given client may not be able to cover the full
|
1755
|
+
# specified scope. For example, when executing a search that includes notes in both
|
1756
|
+
# the owner's account and business notebooks, a mobile client may choose to only
|
1757
|
+
# search within the user's account because it is not capable of searching both
|
1758
|
+
# scopes simultaneously. When a search across multiple scopes is not possible,
|
1759
|
+
# a client may choose which scope to search based on the current application
|
1760
|
+
# context. If a client cannot search any of the desired scopes, it should refuse
|
1761
|
+
# to execute the search.</p>
|
1762
|
+
# </dd>
|
1610
1763
|
# </dl>
|
1611
1764
|
class SavedSearch
|
1612
1765
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -1615,13 +1768,15 @@ module Evernote
|
|
1615
1768
|
QUERY = 3
|
1616
1769
|
FORMAT = 4
|
1617
1770
|
UPDATESEQUENCENUM = 5
|
1771
|
+
SCOPE = 6
|
1618
1772
|
|
1619
1773
|
FIELDS = {
|
1620
1774
|
GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true},
|
1621
1775
|
NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
|
1622
1776
|
QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :optional => true},
|
1623
1777
|
FORMAT => {:type => ::Thrift::Types::I32, :name => 'format', :optional => true, :enum_class => ::Evernote::EDAM::Type::QueryFormat},
|
1624
|
-
UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true}
|
1778
|
+
UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true},
|
1779
|
+
SCOPE => {:type => ::Thrift::Types::STRUCT, :name => 'scope', :class => ::Evernote::EDAM::Type::SavedSearchScope, :optional => true}
|
1625
1780
|
}
|
1626
1781
|
|
1627
1782
|
def struct_fields; FIELDS; end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.5.0-en-exported)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -78,6 +78,22 @@ module Evernote
|
|
78
78
|
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'authenticateLongSession failed: unknown result')
|
79
79
|
end
|
80
80
|
|
81
|
+
def revokeLongSession(authenticationToken)
|
82
|
+
send_revokeLongSession(authenticationToken)
|
83
|
+
recv_revokeLongSession()
|
84
|
+
end
|
85
|
+
|
86
|
+
def send_revokeLongSession(authenticationToken)
|
87
|
+
send_message('revokeLongSession', RevokeLongSession_args, :authenticationToken => authenticationToken)
|
88
|
+
end
|
89
|
+
|
90
|
+
def recv_revokeLongSession()
|
91
|
+
result = receive_message(RevokeLongSession_result)
|
92
|
+
raise result.userException unless result.userException.nil?
|
93
|
+
raise result.systemException unless result.systemException.nil?
|
94
|
+
return
|
95
|
+
end
|
96
|
+
|
81
97
|
def authenticateToBusiness(authenticationToken)
|
82
98
|
send_authenticateToBusiness(authenticationToken)
|
83
99
|
return recv_authenticateToBusiness()
|
@@ -226,6 +242,19 @@ module Evernote
|
|
226
242
|
write_result(result, oprot, 'authenticateLongSession', seqid)
|
227
243
|
end
|
228
244
|
|
245
|
+
def process_revokeLongSession(seqid, iprot, oprot)
|
246
|
+
args = read_args(iprot, RevokeLongSession_args)
|
247
|
+
result = RevokeLongSession_result.new()
|
248
|
+
begin
|
249
|
+
@handler.revokeLongSession(args.authenticationToken)
|
250
|
+
rescue ::Evernote::EDAM::Error::EDAMUserException => userException
|
251
|
+
result.userException = userException
|
252
|
+
rescue ::Evernote::EDAM::Error::EDAMSystemException => systemException
|
253
|
+
result.systemException = systemException
|
254
|
+
end
|
255
|
+
write_result(result, oprot, 'revokeLongSession', seqid)
|
256
|
+
end
|
257
|
+
|
229
258
|
def process_authenticateToBusiness(seqid, iprot, oprot)
|
230
259
|
args = read_args(iprot, AuthenticateToBusiness_args)
|
231
260
|
result = AuthenticateToBusiness_result.new()
|
@@ -319,7 +348,7 @@ module Evernote
|
|
319
348
|
FIELDS = {
|
320
349
|
CLIENTNAME => {:type => ::Thrift::Types::STRING, :name => 'clientName'},
|
321
350
|
EDAMVERSIONMAJOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMajor', :default => 1},
|
322
|
-
EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default =>
|
351
|
+
EDAMVERSIONMINOR => {:type => ::Thrift::Types::I16, :name => 'edamVersionMinor', :default => 24}
|
323
352
|
}
|
324
353
|
|
325
354
|
def struct_fields; FIELDS; end
|
@@ -466,6 +495,40 @@ module Evernote
|
|
466
495
|
::Thrift::Struct.generate_accessors self
|
467
496
|
end
|
468
497
|
|
498
|
+
class RevokeLongSession_args
|
499
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
500
|
+
AUTHENTICATIONTOKEN = 1
|
501
|
+
|
502
|
+
FIELDS = {
|
503
|
+
AUTHENTICATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'authenticationToken'}
|
504
|
+
}
|
505
|
+
|
506
|
+
def struct_fields; FIELDS; end
|
507
|
+
|
508
|
+
def validate
|
509
|
+
end
|
510
|
+
|
511
|
+
::Thrift::Struct.generate_accessors self
|
512
|
+
end
|
513
|
+
|
514
|
+
class RevokeLongSession_result
|
515
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
516
|
+
USEREXCEPTION = 1
|
517
|
+
SYSTEMEXCEPTION = 2
|
518
|
+
|
519
|
+
FIELDS = {
|
520
|
+
USEREXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'userException', :class => ::Evernote::EDAM::Error::EDAMUserException},
|
521
|
+
SYSTEMEXCEPTION => {:type => ::Thrift::Types::STRUCT, :name => 'systemException', :class => ::Evernote::EDAM::Error::EDAMSystemException}
|
522
|
+
}
|
523
|
+
|
524
|
+
def struct_fields; FIELDS; end
|
525
|
+
|
526
|
+
def validate
|
527
|
+
end
|
528
|
+
|
529
|
+
::Thrift::Struct.generate_accessors self
|
530
|
+
end
|
531
|
+
|
469
532
|
class AuthenticateToBusiness_args
|
470
533
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
471
534
|
AUTHENTICATIONTOKEN = 1
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.5.0-en-exported)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
@@ -12,7 +12,7 @@ module Evernote
|
|
12
12
|
module UserStore
|
13
13
|
EDAM_VERSION_MAJOR = 1
|
14
14
|
|
15
|
-
EDAM_VERSION_MINOR =
|
15
|
+
EDAM_VERSION_MINOR = 24
|
16
16
|
|
17
17
|
end
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evernote-thrift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evernote
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03
|
11
|
+
date: 2013-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -125,3 +125,4 @@ signing_key:
|
|
125
125
|
specification_version: 4
|
126
126
|
summary: This SDK contains wrapper code used to call the Evernote Cloud API from Ruby.
|
127
127
|
test_files: []
|
128
|
+
has_rdoc: false
|