Keepers c8ad2e03ce
produce coll state and item deletion (#1815)
## Description

Fulfills the data collection interfaces to provide item deleted
flags and collection state enums.

A note on the additional data consumption: I'm making an assumption
that the @removed property will appear in that map.  This is awaiting
testing for verification, which I'll get into as a follow-up step.

## Does this PR need a docs update or release note?

- [x]  No 

## Type of change

- [x] 🌻 Feature

## Issue(s)

* #1727

## Test Plan

- [x]  In a follow-up PR
2022-12-19 20:16:51 +00:00

28 lines
988 B
Go

package graph
// ---------------------------------------------------------------------------
// item response AdditionalData
// ---------------------------------------------------------------------------
const (
// AddtlDataRemoved is the key value in the AdditionalData map
// for when an item was deleted.
//nolint:lll
// https://learn.microsoft.com/en-us/graph/delta-query-overview?tabs=http#resource-representation-in-the-delta-query-response
AddtlDataRemoved = "@removed"
)
// ---------------------------------------------------------------------------
// Metadata Files
// ---------------------------------------------------------------------------
const (
// DeltaURLsFileName is the name of the file containing delta token(s) for a
// given endpoint. The endpoint granularity varies by service.
DeltaURLsFileName = "delta"
// PreviousPathFileName is the name of the file containing previous path(s) for a
// given endpoint.
PreviousPathFileName = "previouspath"
)