o
    ,Âif,  ã                   @   sx   d dl mZmZmZmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ edƒZer0d dlmZ G dd	„ d	e
e ƒZd
S )é    )ÚTYPE_CHECKINGÚOptionalÚTypeÚTypeVar)Ú	DeltaPath)ÚEntity)ÚEntityCollection)ÚResourcePathÚT)ÚGraphClientc                       s2   e Zd Zd‡ fdd„	Zdd„ Zedd„ ƒZ‡  ZS )	ÚDeltaCollectionNc                    s   t t| ƒ ||||¡ d S )N)Úsuperr   Ú__init__)ÚselfÚcontextÚ	item_typeÚresource_pathÚparent©Ú	__class__© úS/var/www/html/corbot_env/lib/python3.10/site-packages/office365/delta_collection.pyr      s   zDeltaCollection.__init__c                 C   s   || j jd< | S )z¼
        Specifies a custom query option to filter the delta response based on the type of change.

        :param str type_name: Supported values are created, updated or deleted.
        Ú
changeType)Úquery_optionsÚcustom)r   Ú	type_namer   r   r   Úchange_type   s   zDeltaCollection.change_typec                 C   s    | j  dt| j| jt| jƒƒ¡S )zK
        Get newly created, updated, or deleted entities (changes)
        Údelta)Ú
propertiesÚgetr   r   Ú
_item_typer   r   )r   r   r   r   r      s   ÿþzDeltaCollection.delta)NN)Ú__name__Ú
__module__Ú__qualname__r   r   Úpropertyr   Ú__classcell__r   r   r   r   r      s
    	r   N)Útypingr   r   r   r   Úoffice365.delta_pathr   Úoffice365.entityr   Úoffice365.entity_collectionr   Ú%office365.runtime.paths.resource_pathr	   r
   Úoffice365.graph_clientr   r   r   r   r   r   Ú<module>   s    