node_modules/contentful/dist/es-modules/create-contentful-api.js
/**
   * Synchronizes either all the content or only new content since last sync
   * See <a href="https://www.contentful.com/developers/docs/concepts/sync/">Synchronization</a> for more information.
   * <strong> Important note: </strong> The the sync api endpoint does not support include or link resolution.
   * However contentful.js is doing link resolution client side if you only make an initial sync.
   * For the delta sync (using nextSyncToken) it is not possible since the sdk wont have access to all the data to make such an operation.
   * @memberof ContentfulClientAPI
   * @param  {Object} query - Query object for the sync call. One of initial or nextSyncToken always needs to be specified, but not both.
   * @param  {boolean?} query.initial - Indicates if this is the first sync. Use it if you don't have a sync token.
   * @param  {string?} query.nextSyncToken - The token you got the last time you used this method. Ensures you only get changed content.
   * @param  {string=} query.type - Filter by this type (all (default), Entry, Asset, Deletion, DeletedAsset or DeletedEntry)
   * @param  {string=} query.content_type - Filter by this content type id
   * @param  {boolean=} query.resolveLinks - When true, links to other Entries or Assets are resolved. Default: true.
   * @param  {Object} options
   * @param  {boolean=} [options.paginate = true] - Set to false to disable pagination
   * @return {Promise<Sync.SyncCollection>} Promise for the collection resulting of a sync operation
   * @example
   * const contentful = require('contentful')
   *
   * const client = contentful.createClient({
   *   space: '<space_id>',
   *   accessToken: '<content_delivery_api_key>'
   * })
   *
   * client.sync({
   *   initial: true
   * })
   * .then((response) => console.log({
   *   entries: response.entries,
   *   assets: response.assets,
   *   nextSyncToken: response.nextSyncToken
   * }))
   * .catch(console.error)
   */
Synchronizes either all the content or only new content since last sync
See Synchronization for more information.
 Important note:  The the sync api endpoint does not support include or link resolution.
However contentful.js is doing link resolution client side if you only make an initial sync.
For the delta sync (using nextSyncToken) it is not possible since the sdk wont have access to all the data to make such an operation.
@memberof ContentfulClientAPI
@param  {Object} query - Query object for the sync call. One of initial or nextSyncToken always needs to be specified, but not both.
@param  {boolean?} query.initial - Indicates if this is the first sync. Use it if you don't have a sync token.
@param  {string?} query.nextSyncToken - The token you got the last time you used this method. Ensures you only get changed content.
@param  {string=} query.type - Filter by this type (all (default), Entry, Asset, Deletion, DeletedAsset or DeletedEntry)
@param  {string=} query.content_type - Filter by this content type id
@param  {boolean=} query.resolveLinks - When true, links to other Entries or Assets are resolved. Default: true.
@param  {Object} options
@param  {boolean=} [options.paginate = true] - Set to false to disable pagination
@return {Promise} Promise for the collection resulting of a sync operation
@example
const contentful = require('contentful')

const client = contentful.createClient({
space: '',
accessToken: ''
})


Synchronizes either all the content or only new content since last sync See Synchronization for more information . Important note : The the sync api endpoint does not support include or link resolution . However contentful . js is doing link resolution client side if you only make an initial sync . For the delta sync ( using nextSyncToken ) it is not possible since the sdk wont have access to all the data to make such an operation . @memberof ContentfulClientAPI @param { Object } query - Query object for the sync call . One of initial or nextSyncToken always needs to be specified but not both . @param { boolean? } query . initial - Indicates if this is the first sync . Use it if you don ' t have a sync token . @param { string? } query . nextSyncToken - The token you got the last time you used this method . Ensures you only get changed content . @param { string = } query . type - Filter by this type ( all ( default ) Entry Asset Deletion DeletedAsset or DeletedEntry ) @param { string = } query . content_type - Filter by this content type id @param { boolean = } query . resolveLinks - When true links to other Entries or Assets are resolved . Default : true . @param { Object } options @param { boolean = } [ options . paginate = true ] - Set to false to disable pagination @return { Promise } Promise for the collection resulting of a sync operation @example const contentful = require ( ' contentful ' ) const client = contentful . createClient ( { space : ' ' accessToken : ' ' } )
function sync() {
    var query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : { paginate: true };
    var _getGlobalOptions2 = getGlobalOptions(query),
        resolveLinks = _getGlobalOptions2.resolveLinks,
        removeUnresolved = _getGlobalOptions2.removeUnresolved;
    switchToEnvironment(http);
    return pagedSync(http, query, _extends({ resolveLinks: resolveLinks, removeUnresolved: removeUnresolved }, options));
  }
function sync ( ) { var query = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : { } ; var options = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : { paginate : true } ; var _getGlobalOptions2 = getGlobalOptions ( query ) , resolveLinks = _getGlobalOptions2 . resolveLinks , removeUnresolved = _getGlobalOptions2 . removeUnresolved ; switchToEnvironment ( http ) ; return pagedSync ( http , query , _extends ( { resolveLinks : resolveLinks , removeUnresolved : removeUnresolved } , options ) ) ; }
Synchronizes either all the content or only new content since last sync
 See <a href="https://www.contentful.com/developers/docs/concepts/sync/">Synchronization</a> for more information.
Synchronizes either all the content or only new content since last sync See <a href = " https : // www . contentful . com / developers / docs / concepts / sync / " > Synchronization< / a > for more information .