evernote 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkd +2 -1
- data/lib/evernote/user_store.rb +1 -1
- data/lib/evernote/version.rb +1 -1
- data/vendor/gen-rb/evernote/edam/limits_constants.rb +35 -0
- data/vendor/gen-rb/evernote/edam/note_store.rb +766 -17
- data/vendor/gen-rb/evernote/edam/note_store_types.rb +156 -23
- data/vendor/gen-rb/evernote/edam/types_types.rb +140 -17
- data/vendor/gen-rb/evernote/edam/user_store.rb +67 -1
- data/vendor/gen-rb/evernote/edam/user_store_constants.rb +1 -1
- data/vendor/gen-rb/evernote/edam/user_store_types.rb +97 -0
- metadata +10 -12
@@ -224,6 +224,139 @@ module Evernote
|
|
224
224
|
::Thrift::Struct.generate_accessors self
|
225
225
|
end
|
226
226
|
|
227
|
+
# This structure is used with the 'getFilteredSyncChunk' call to provide
|
228
|
+
# fine-grained control over the data that's returned when a client needs
|
229
|
+
# to synchronize with the service. Each flag in this structure specifies
|
230
|
+
# whether to include one class of data in the results of that call.
|
231
|
+
#
|
232
|
+
# <dl>
|
233
|
+
# <dt>includeNotes</dt>
|
234
|
+
# <dd>
|
235
|
+
# If true, then the server will include the SyncChunks.notes field
|
236
|
+
# </dd>
|
237
|
+
#
|
238
|
+
# <dt>includeNoteResources</dt>
|
239
|
+
# <dd>
|
240
|
+
# If true, then the server will include the 'resources' field on all of
|
241
|
+
# the Notes that are in SyncChunk.notes.
|
242
|
+
# If 'includeNotes' is false, then this will have no effect.
|
243
|
+
# </dd>
|
244
|
+
#
|
245
|
+
# <dt>includeNoteAttributes</dt>
|
246
|
+
# <dd>
|
247
|
+
# If true, then the server will include the 'attributes' field on all of
|
248
|
+
# the Notes that are in SyncChunks.notes.
|
249
|
+
# If 'includeNotes' is false, then this will have no effect.
|
250
|
+
# </dd>
|
251
|
+
#
|
252
|
+
# <dt>includeNotebooks</dt>
|
253
|
+
# <dd>
|
254
|
+
# If true, then the server will include the SyncChunks.notebooks field
|
255
|
+
# </dd>
|
256
|
+
#
|
257
|
+
# <dt>includeTags</dt>
|
258
|
+
# <dd>
|
259
|
+
# If true, then the server will include the SyncChunks.tags field
|
260
|
+
# </dd>
|
261
|
+
#
|
262
|
+
# <dt>includeSearches</dt>
|
263
|
+
# <dd>
|
264
|
+
# If true, then the server will include the SyncChunks.searches field
|
265
|
+
# </dd>
|
266
|
+
#
|
267
|
+
# <dt>includeResources</dt>
|
268
|
+
# <dd>
|
269
|
+
# If true, then the server will include the SyncChunks.resources field.
|
270
|
+
# Since the Resources are also provided with their Note
|
271
|
+
# (in the Notes.resources list), this is primarily useful for clients that
|
272
|
+
# want to watch for changes to individual Resources due to recognition data
|
273
|
+
# being added.
|
274
|
+
# </dd>
|
275
|
+
#
|
276
|
+
# <dt>includeLinkedNotebooks</dt>
|
277
|
+
# <dd>
|
278
|
+
# If true, then the server will include the SyncChunks.linkedNotebooks field.
|
279
|
+
# </dd>
|
280
|
+
#
|
281
|
+
# <dt>includeExpunged</dt>
|
282
|
+
# <dd>
|
283
|
+
# If true, then the server will include the 'expunged' data for any type
|
284
|
+
# of included data. For example, if 'includeTags' and 'includeExpunged'
|
285
|
+
# are both true, then the SyncChunks.expungedTags field will be set with
|
286
|
+
# the GUIDs of tags that have been expunged from the server.
|
287
|
+
# </dd>
|
288
|
+
#
|
289
|
+
# <dt>includeNoteApplicationDataFullMap</dt>
|
290
|
+
# <dd>
|
291
|
+
# If true, then the values for the applicationData map will be filled
|
292
|
+
# in, assuming notes and note attributes are being returned. Otherwise,
|
293
|
+
# only the keysOnly field will be filled in.
|
294
|
+
# </dd>
|
295
|
+
#
|
296
|
+
# <dt>includeResourceApplicationDataFullMap</dt>
|
297
|
+
# <dd>
|
298
|
+
# If true, then the fullMap values for the applicationData map will be
|
299
|
+
# filled in, assuming resources and resource attributes are being returned
|
300
|
+
# (includeResources is true). Otherwise, only the keysOnly field will be
|
301
|
+
# filled in.
|
302
|
+
# </dd>
|
303
|
+
#
|
304
|
+
# <dt>includeNoteResourceApplicationDataFullMap</dt>
|
305
|
+
# <dd>
|
306
|
+
# If true, then the fullMap values for the applicationData map will be
|
307
|
+
# filled in for resources found inside of notes, assuming resources are
|
308
|
+
# being returned in notes (includeNoteResources is true). Otherwise,
|
309
|
+
# only the keysOnly field will be filled in.
|
310
|
+
# </dd>
|
311
|
+
#
|
312
|
+
# <dt>requireNoteContentClass</dt>
|
313
|
+
# <dd>
|
314
|
+
# If set, then only send notes whose content class matches this value.
|
315
|
+
# The value can be a literal match or, if the last character is an
|
316
|
+
# asterisk, a prefix match.
|
317
|
+
# </dd>
|
318
|
+
#
|
319
|
+
# </dl>
|
320
|
+
class SyncChunkFilter
|
321
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
322
|
+
INCLUDENOTES = 1
|
323
|
+
INCLUDENOTERESOURCES = 2
|
324
|
+
INCLUDENOTEATTRIBUTES = 3
|
325
|
+
INCLUDENOTEBOOKS = 4
|
326
|
+
INCLUDETAGS = 5
|
327
|
+
INCLUDESEARCHES = 6
|
328
|
+
INCLUDERESOURCES = 7
|
329
|
+
INCLUDELINKEDNOTEBOOKS = 8
|
330
|
+
INCLUDEEXPUNGED = 9
|
331
|
+
INCLUDENOTEAPPLICATIONDATAFULLMAP = 10
|
332
|
+
INCLUDERESOURCEAPPLICATIONDATAFULLMAP = 12
|
333
|
+
INCLUDENOTERESOURCEAPPLICATIONDATAFULLMAP = 13
|
334
|
+
REQUIRENOTECONTENTCLASS = 11
|
335
|
+
|
336
|
+
FIELDS = {
|
337
|
+
INCLUDENOTES => {:type => ::Thrift::Types::BOOL, :name => 'includeNotes', :optional => true},
|
338
|
+
INCLUDENOTERESOURCES => {:type => ::Thrift::Types::BOOL, :name => 'includeNoteResources', :optional => true},
|
339
|
+
INCLUDENOTEATTRIBUTES => {:type => ::Thrift::Types::BOOL, :name => 'includeNoteAttributes', :optional => true},
|
340
|
+
INCLUDENOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'includeNotebooks', :optional => true},
|
341
|
+
INCLUDETAGS => {:type => ::Thrift::Types::BOOL, :name => 'includeTags', :optional => true},
|
342
|
+
INCLUDESEARCHES => {:type => ::Thrift::Types::BOOL, :name => 'includeSearches', :optional => true},
|
343
|
+
INCLUDERESOURCES => {:type => ::Thrift::Types::BOOL, :name => 'includeResources', :optional => true},
|
344
|
+
INCLUDELINKEDNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'includeLinkedNotebooks', :optional => true},
|
345
|
+
INCLUDEEXPUNGED => {:type => ::Thrift::Types::BOOL, :name => 'includeExpunged', :optional => true},
|
346
|
+
INCLUDENOTEAPPLICATIONDATAFULLMAP => {:type => ::Thrift::Types::BOOL, :name => 'includeNoteApplicationDataFullMap', :optional => true},
|
347
|
+
INCLUDERESOURCEAPPLICATIONDATAFULLMAP => {:type => ::Thrift::Types::BOOL, :name => 'includeResourceApplicationDataFullMap', :optional => true},
|
348
|
+
INCLUDENOTERESOURCEAPPLICATIONDATAFULLMAP => {:type => ::Thrift::Types::BOOL, :name => 'includeNoteResourceApplicationDataFullMap', :optional => true},
|
349
|
+
REQUIRENOTECONTENTCLASS => {:type => ::Thrift::Types::STRING, :name => 'requireNoteContentClass', :optional => true}
|
350
|
+
}
|
351
|
+
|
352
|
+
def struct_fields; FIELDS; end
|
353
|
+
|
354
|
+
def validate
|
355
|
+
end
|
356
|
+
|
357
|
+
::Thrift::Struct.generate_accessors self
|
358
|
+
end
|
359
|
+
|
227
360
|
# A list of criteria that are used to indicate which notes are desired from
|
228
361
|
# the account. This is used in queries to the NoteStore to determine
|
229
362
|
# which notes should be retrieved.
|
@@ -382,27 +515,27 @@ module Evernote
|
|
382
515
|
::Thrift::Struct.generate_accessors self
|
383
516
|
end
|
384
517
|
|
385
|
-
#
|
386
|
-
#
|
387
|
-
#
|
388
|
-
#
|
389
|
-
#
|
390
|
-
#
|
391
|
-
#
|
392
|
-
#
|
393
|
-
#
|
394
|
-
#
|
395
|
-
#
|
396
|
-
#
|
397
|
-
#
|
398
|
-
#
|
399
|
-
#
|
400
|
-
#
|
401
|
-
#
|
402
|
-
#
|
403
|
-
#
|
404
|
-
#
|
405
|
-
#
|
518
|
+
# This structure is used in the set of results returned by the
|
519
|
+
# findNotesMetadata function. It represents the high-level information about
|
520
|
+
# a single Note, without some of the larger deep structure. This allows
|
521
|
+
# for the information about a list of Notes to be returned relatively quickly
|
522
|
+
# with less marshalling and data transfer to remote clients.
|
523
|
+
# Most fields in this structure are identical to the corresponding field in
|
524
|
+
# the Note structure, with the exception of:
|
525
|
+
#
|
526
|
+
# <dl>
|
527
|
+
# <dt>largestResourceMime</dt>
|
528
|
+
# <dd>If set, then this will contain the MIME type of the largest Resource
|
529
|
+
# (in bytes) within the Note. This may be useful, for example, to choose
|
530
|
+
# an appropriate icon or thumbnail to represent the Note.
|
531
|
+
# </dd>
|
532
|
+
#
|
533
|
+
# <dt>largestResourceSize</dt>
|
534
|
+
# <dd>If set, this will contain the size of the largest Resource file, in
|
535
|
+
# bytes, within the Note. This may be useful, for example, to decide whether
|
536
|
+
# to ask the server for a thumbnail to represent the Note.
|
537
|
+
# </dd>
|
538
|
+
# </dl>
|
406
539
|
class NoteMetadata
|
407
540
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
408
541
|
GUID = 1
|
@@ -781,7 +914,7 @@ module Evernote
|
|
781
914
|
::Thrift::Struct.generate_accessors self
|
782
915
|
end
|
783
916
|
|
784
|
-
#
|
917
|
+
# Identifying information about previous versions of a note that are backed up
|
785
918
|
# within Evernote's servers. Used in the return value of the listNoteVersions
|
786
919
|
# call.
|
787
920
|
#
|
@@ -807,7 +940,7 @@ module Evernote
|
|
807
940
|
# </dd>
|
808
941
|
# <dt>title</dt>
|
809
942
|
# <dd>
|
810
|
-
# The title of the note when this particular
|
943
|
+
# The title of the note when this particular version was saved. (The
|
811
944
|
# current title of the note may differ from this value.)
|
812
945
|
# </dd>
|
813
946
|
# </dl>
|
@@ -172,13 +172,13 @@ module Evernote
|
|
172
172
|
# <dd>A code indicating where the user was sent from. AKA
|
173
173
|
# promotion code
|
174
174
|
# </dd>
|
175
|
-
#
|
175
|
+
#
|
176
176
|
# <dt>sentEmailDate</dt>
|
177
177
|
# <dd>The most recent date when the user sent outbound
|
178
178
|
# emails from the service. Used with sentEmailCount to limit the number
|
179
179
|
# of emails that can be sent per day.
|
180
180
|
# </dd>
|
181
|
-
#
|
181
|
+
#
|
182
182
|
# <dt>sentEmailCount</dt>
|
183
183
|
# <dd>The number of emails that were sent from the user
|
184
184
|
# via the service on sentEmailDate. Used to enforce a limit on the number
|
@@ -231,7 +231,7 @@ module Evernote
|
|
231
231
|
# <dt>groupName</dt>
|
232
232
|
# <dd>A name identifier used to identify a particular set of branding and
|
233
233
|
# light customization.</dd>
|
234
|
-
#
|
234
|
+
#
|
235
235
|
# <dt>recognitionLanguage</dt>
|
236
236
|
# <dd>a 2 character language codes based on:
|
237
237
|
# http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt
|
@@ -254,6 +254,12 @@ module Evernote
|
|
254
254
|
# <dd>A string recording the business address of a Sponsored Account user who has requested invoicing.
|
255
255
|
# </dd>
|
256
256
|
# </dl>
|
257
|
+
#
|
258
|
+
# <dt>hideSponsorBilling</dt>
|
259
|
+
# <dd>A flag indicating whether to hide the billing information on a sponsored
|
260
|
+
# account owner's settings page
|
261
|
+
# </dd>
|
262
|
+
# </dl>
|
257
263
|
class UserAttributes
|
258
264
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
259
265
|
DEFAULTLOCATIONNAME = 1
|
@@ -284,6 +290,7 @@ module Evernote
|
|
284
290
|
REFERRALPROOF = 28
|
285
291
|
EDUCATIONALDISCOUNT = 29
|
286
292
|
BUSINESSADDRESS = 30
|
293
|
+
HIDESPONSORBILLING = 31
|
287
294
|
|
288
295
|
FIELDS = {
|
289
296
|
DEFAULTLOCATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'defaultLocationName', :optional => true},
|
@@ -313,7 +320,8 @@ module Evernote
|
|
313
320
|
CUSTOMERPROFILEID => {:type => ::Thrift::Types::I64, :name => 'customerProfileId', :optional => true},
|
314
321
|
REFERRALPROOF => {:type => ::Thrift::Types::STRING, :name => 'referralProof', :optional => true},
|
315
322
|
EDUCATIONALDISCOUNT => {:type => ::Thrift::Types::BOOL, :name => 'educationalDiscount', :optional => true},
|
316
|
-
BUSINESSADDRESS => {:type => ::Thrift::Types::STRING, :name => 'businessAddress', :optional => true}
|
323
|
+
BUSINESSADDRESS => {:type => ::Thrift::Types::STRING, :name => 'businessAddress', :optional => true},
|
324
|
+
HIDESPONSORBILLING => {:type => ::Thrift::Types::BOOL, :name => 'hideSponsorBilling', :optional => true}
|
317
325
|
}
|
318
326
|
|
319
327
|
def struct_fields; FIELDS; end
|
@@ -325,7 +333,7 @@ module Evernote
|
|
325
333
|
end
|
326
334
|
|
327
335
|
# This represents the bookkeeping information for the user's subscription.
|
328
|
-
#
|
336
|
+
#
|
329
337
|
# <dl>
|
330
338
|
# <dt>uploadLimit</dt>
|
331
339
|
# <dd>The number of bytes that can be uploaded to the account
|
@@ -615,7 +623,7 @@ module Evernote
|
|
615
623
|
#
|
616
624
|
# <dt>parentGuid</dt>
|
617
625
|
# <dd>If this is set, then this is the GUID of the tag that
|
618
|
-
# holds this tag within the tag organizational
|
626
|
+
# holds this tag within the tag organizational hierarchy. If this is
|
619
627
|
# not set, then the tag has no parent and it is a "top level" tag.
|
620
628
|
# Cycles are not allowed (e.g. a->parent->parent == a) and will be
|
621
629
|
# rejected by the service.
|
@@ -654,6 +662,46 @@ module Evernote
|
|
654
662
|
::Thrift::Struct.generate_accessors self
|
655
663
|
end
|
656
664
|
|
665
|
+
# A structure that wraps a map of name/value pairs whose values are not
|
666
|
+
# always present in the structure in order to reduce space when obtaining
|
667
|
+
# batches of entities that contain the map. When a client provides a LazyMap
|
668
|
+
# to the server, the fullMap field must be set and the keysOnly field will
|
669
|
+
# be ignored by the server. When the server provides the client with a
|
670
|
+
# LazyMap, it will fill in either the keysOnly field or the fullMap field,
|
671
|
+
# but not both, based on the API and parameters.
|
672
|
+
#
|
673
|
+
# Check the API documentation of the individual calls involving the LazyMap
|
674
|
+
# for full details including the constraints of the names and values of the
|
675
|
+
# map.
|
676
|
+
#
|
677
|
+
# <dl>
|
678
|
+
# <dt>keysOnly</dt>
|
679
|
+
# <dd>The set of keys for the map. This field is ignored by the
|
680
|
+
# server when set.
|
681
|
+
# </dd>
|
682
|
+
#
|
683
|
+
# <dt>fullMap</dt>
|
684
|
+
# <dd>The complete map, including all keys and values.
|
685
|
+
# </dd>
|
686
|
+
# </dl>
|
687
|
+
class LazyMap
|
688
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
689
|
+
KEYSONLY = 1
|
690
|
+
FULLMAP = 2
|
691
|
+
|
692
|
+
FIELDS = {
|
693
|
+
KEYSONLY => {:type => ::Thrift::Types::SET, :name => 'keysOnly', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
|
694
|
+
FULLMAP => {:type => ::Thrift::Types::MAP, :name => 'fullMap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
|
695
|
+
}
|
696
|
+
|
697
|
+
def struct_fields; FIELDS; end
|
698
|
+
|
699
|
+
def validate
|
700
|
+
end
|
701
|
+
|
702
|
+
::Thrift::Struct.generate_accessors self
|
703
|
+
end
|
704
|
+
|
657
705
|
# Structure holding the optional attributes of a Resource
|
658
706
|
# <dl>
|
659
707
|
# <dt>sourceURL</dt>
|
@@ -711,10 +759,27 @@ module Evernote
|
|
711
759
|
# </dd>
|
712
760
|
#
|
713
761
|
# <dt>attachment</dt>
|
714
|
-
# <dd>this will be true if the resource
|
715
|
-
#
|
716
|
-
#
|
717
|
-
#
|
762
|
+
# <dd>this will be true if the resource should be displayed as an attachment,
|
763
|
+
# or false if the resource should be displayed inline (if possible).
|
764
|
+
# </dd>
|
765
|
+
#
|
766
|
+
# <dt>applicationData</dt>
|
767
|
+
# <dd>Provides a location for applications to store a relatively small
|
768
|
+
# (4kb) blob of data associated with a Resource that is not visible to the user
|
769
|
+
# and that is opaque to the Evernote service. A single application may use at most
|
770
|
+
# one entry in this map, using its API consumer key as the map key. See the
|
771
|
+
# documentation for LazyMap for a description of when the actual map values
|
772
|
+
# are returned by the service.
|
773
|
+
# <p>To safely add or modify your application's entry in the map, use
|
774
|
+
# NoteStore.setResourceApplicationDataEntry. To safely remove your application's
|
775
|
+
# entry from the map, use NoteStore.unsetResourceApplicationDataEntry.</p>
|
776
|
+
# Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN
|
777
|
+
# <br/>
|
778
|
+
# Sum max size of key and value: EDAM_APPLICATIONDATA_ENTRY_LEN_MAX
|
779
|
+
# <br/>
|
780
|
+
# Syntax regex for name (key): EDAM_APPLICATIONDATA_NAME_REGEX
|
781
|
+
# </dd>
|
782
|
+
#
|
718
783
|
# </dl>
|
719
784
|
class ResourceAttributes
|
720
785
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -729,6 +794,7 @@ module Evernote
|
|
729
794
|
RECOTYPE = 9
|
730
795
|
FILENAME = 10
|
731
796
|
ATTACHMENT = 11
|
797
|
+
APPLICATIONDATA = 12
|
732
798
|
|
733
799
|
FIELDS = {
|
734
800
|
SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true},
|
@@ -741,7 +807,8 @@ module Evernote
|
|
741
807
|
CLIENTWILLINDEX => {:type => ::Thrift::Types::BOOL, :name => 'clientWillIndex', :optional => true},
|
742
808
|
RECOTYPE => {:type => ::Thrift::Types::STRING, :name => 'recoType', :optional => true},
|
743
809
|
FILENAME => {:type => ::Thrift::Types::STRING, :name => 'fileName', :optional => true},
|
744
|
-
ATTACHMENT => {:type => ::Thrift::Types::BOOL, :name => 'attachment', :optional => true}
|
810
|
+
ATTACHMENT => {:type => ::Thrift::Types::BOOL, :name => 'attachment', :optional => true},
|
811
|
+
APPLICATIONDATA => {:type => ::Thrift::Types::STRUCT, :name => 'applicationData', :class => Evernote::EDAM::Type::LazyMap, :optional => true}
|
745
812
|
}
|
746
813
|
|
747
814
|
def struct_fields; FIELDS; end
|
@@ -894,13 +961,14 @@ module Evernote
|
|
894
961
|
#
|
895
962
|
# <dt>source</dt>
|
896
963
|
# <dd>the method that the note was added to the account, if the
|
897
|
-
# note wasn't directly authored in an Evernote client.
|
964
|
+
# note wasn't directly authored in an Evernote desktop client.
|
898
965
|
# <br/>
|
899
966
|
# Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
|
900
967
|
# </dd>
|
901
968
|
#
|
902
969
|
# <dt>sourceURL</dt>
|
903
|
-
# <dd>the original location where the resource was hosted
|
970
|
+
# <dd>the original location where the resource was hosted. For web clips,
|
971
|
+
# this will be the URL of the page that was clipped.
|
904
972
|
# <br/>
|
905
973
|
# Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
|
906
974
|
# </dd>
|
@@ -915,12 +983,61 @@ module Evernote
|
|
915
983
|
#
|
916
984
|
# <dt>shareDate</dt>
|
917
985
|
# <dd>The date and time when this note was directly shared via its own URL.
|
918
|
-
# This is only set on notes that were individually shared
|
919
|
-
# of any notebook-level sharing of the containing notepbook.
|
920
|
-
# is treated as "read-only" for clients
|
986
|
+
# This is only set on notes that were individually shared - it is independent
|
987
|
+
# of any notebook-level sharing of the containing notepbook. This field
|
988
|
+
# is treated as "read-only" for clients; the server will ignore changes
|
921
989
|
# to this field from an external client.
|
922
990
|
# </dd>
|
923
991
|
#
|
992
|
+
# <dt>placeName</dt>
|
993
|
+
# <dd>Allows the user to assign a human-readable location name associated
|
994
|
+
# with a note. Users may assign values like 'Home' and 'Work'. Place
|
995
|
+
# names may also be populated with values from geonames database
|
996
|
+
# (e.g., a restaurant name). Applications are encouraged to normalize values
|
997
|
+
# so that grouping values by place name provides a useful result. Applications
|
998
|
+
# MUST NOT automatically add place name values based on geolocation without
|
999
|
+
# confirmation from the user; that is, the value in this field should be
|
1000
|
+
# more useful than a simple automated lookup based on the note's latitude
|
1001
|
+
# and longitude.</dd>
|
1002
|
+
#
|
1003
|
+
# <dt>contentClass</dt>
|
1004
|
+
# <dd>The class (or type) of note. This field is used to indicate to
|
1005
|
+
# clients that special structured information is represented within
|
1006
|
+
# the note such that special rules apply when making
|
1007
|
+
# modifications. If contentClass is set and the client
|
1008
|
+
# application does not specifically support the specified class,
|
1009
|
+
# the client MUST treat the note as read-only. In this case, the
|
1010
|
+
# client MAY modify the note's notebook and tags via the
|
1011
|
+
# Note.notebookGuid and Note.tagGuids fields.
|
1012
|
+
# <p>Applications should set contentClass only when they are creating notes
|
1013
|
+
# that contain structured information that needs to be maintained in order
|
1014
|
+
# for the user to be able to use the note within that application.
|
1015
|
+
# Setting contentClass makes a note read-only in other applications, so
|
1016
|
+
# there is a trade-off when an application chooses to use contentClass.
|
1017
|
+
# Applications that set contentClass when creating notes must use a contentClass
|
1018
|
+
# string of the form <i>CompanyName.ApplicationName</i> to ensure uniqueness.</p>
|
1019
|
+
# Length restrictions: EDAM_ATTRIBUTE_LEN_MIN, EDAM_ATTRIBUTE_LEN_MAX
|
1020
|
+
# <br/>
|
1021
|
+
# Regex: EDAM_ATTRIBUTE_REGEX
|
1022
|
+
# </dd>
|
1023
|
+
#
|
1024
|
+
# <dt>applicationData</dt>
|
1025
|
+
# <dd>Provides a location for applications to store a relatively small
|
1026
|
+
# (4kb) blob of data that is not meant to be visible to the user and
|
1027
|
+
# that is opaque to the Evernote service. A single application may use at most
|
1028
|
+
# one entry in this map, using its API consumer key as the map key. See the
|
1029
|
+
# documentation for LazyMap for a description of when the actual map values
|
1030
|
+
# are returned by the service.
|
1031
|
+
# <p>To safely add or modify your application's entry in the map, use
|
1032
|
+
# NoteStore.setNoteApplicationDataEntry. To safely remove your application's
|
1033
|
+
# entry from the map, use NoteStore.unsetNoteApplicationDataEntry.</p>
|
1034
|
+
# Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN
|
1035
|
+
# <br/>
|
1036
|
+
# Sum max size of key and value: EDAM_APPLICATIONDATA_ENTRY_LEN_MAX
|
1037
|
+
# <br/>
|
1038
|
+
# Syntax regex for name (key): EDAM_APPLICATIONDATA_NAME_REGEX
|
1039
|
+
# </dd>
|
1040
|
+
#
|
924
1041
|
# </dl>
|
925
1042
|
class NoteAttributes
|
926
1043
|
include ::Thrift::Struct, ::Thrift::Struct_Union
|
@@ -933,6 +1050,9 @@ module Evernote
|
|
933
1050
|
SOURCEURL = 15
|
934
1051
|
SOURCEAPPLICATION = 16
|
935
1052
|
SHAREDATE = 17
|
1053
|
+
PLACENAME = 21
|
1054
|
+
CONTENTCLASS = 22
|
1055
|
+
APPLICATIONDATA = 23
|
936
1056
|
|
937
1057
|
FIELDS = {
|
938
1058
|
SUBJECTDATE => {:type => ::Thrift::Types::I64, :name => 'subjectDate', :optional => true},
|
@@ -943,7 +1063,10 @@ module Evernote
|
|
943
1063
|
SOURCE => {:type => ::Thrift::Types::STRING, :name => 'source', :optional => true},
|
944
1064
|
SOURCEURL => {:type => ::Thrift::Types::STRING, :name => 'sourceURL', :optional => true},
|
945
1065
|
SOURCEAPPLICATION => {:type => ::Thrift::Types::STRING, :name => 'sourceApplication', :optional => true},
|
946
|
-
SHAREDATE => {:type => ::Thrift::Types::I64, :name => 'shareDate', :optional => true}
|
1066
|
+
SHAREDATE => {:type => ::Thrift::Types::I64, :name => 'shareDate', :optional => true},
|
1067
|
+
PLACENAME => {:type => ::Thrift::Types::STRING, :name => 'placeName', :optional => true},
|
1068
|
+
CONTENTCLASS => {:type => ::Thrift::Types::STRING, :name => 'contentClass', :optional => true},
|
1069
|
+
APPLICATIONDATA => {:type => ::Thrift::Types::STRUCT, :name => 'applicationData', :class => Evernote::EDAM::Type::LazyMap, :optional => true}
|
947
1070
|
}
|
948
1071
|
|
949
1072
|
def struct_fields; FIELDS; end
|