@microsoft/msgraph-sdk 1.0.0-preview.66 → 1.0.0-preview.67
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.
- package/models/index.d.ts +84 -21
- package/models/index.d.ts.map +1 -1
- package/models/index.js +53 -2
- package/models/index.js.map +1 -1
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/models/index.js
CHANGED
|
@@ -19620,6 +19620,15 @@ export function createRestorePointSearchResponseFromDiscriminatorValue(parseNode
|
|
|
19620
19620
|
export function createRestorePointSearchResultFromDiscriminatorValue(parseNode) {
|
|
19621
19621
|
return deserializeIntoRestorePointSearchResult;
|
|
19622
19622
|
}
|
|
19623
|
+
/**
|
|
19624
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
19625
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
19626
|
+
* @returns {RestoreSessionArtifactCount}
|
|
19627
|
+
*/
|
|
19628
|
+
// @ts-ignore
|
|
19629
|
+
export function createRestoreSessionArtifactCountFromDiscriminatorValue(parseNode) {
|
|
19630
|
+
return deserializeIntoRestoreSessionArtifactCount;
|
|
19631
|
+
}
|
|
19623
19632
|
/**
|
|
19624
19633
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
19625
19634
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -39693,7 +39702,7 @@ export function deserializeIntoMailboxProtectionUnitsBulkAdditionJobCollectionRe
|
|
|
39693
39702
|
*/
|
|
39694
39703
|
// @ts-ignore
|
|
39695
39704
|
export function deserializeIntoMailboxRestoreArtifact(mailboxRestoreArtifact = {}) {
|
|
39696
|
-
return Object.assign(Object.assign({}, deserializeIntoRestoreArtifactBase(mailboxRestoreArtifact)), { "restoredFolderId": n => { mailboxRestoreArtifact.restoredFolderId = n.getStringValue(); }, "restoredFolderName": n => { mailboxRestoreArtifact.restoredFolderName = n.getStringValue(); } });
|
|
39705
|
+
return Object.assign(Object.assign({}, deserializeIntoRestoreArtifactBase(mailboxRestoreArtifact)), { "restoredFolderId": n => { mailboxRestoreArtifact.restoredFolderId = n.getStringValue(); }, "restoredFolderName": n => { mailboxRestoreArtifact.restoredFolderName = n.getStringValue(); }, "restoredItemCount": n => { mailboxRestoreArtifact.restoredItemCount = n.getNumberValue(); } });
|
|
39697
39706
|
}
|
|
39698
39707
|
/**
|
|
39699
39708
|
* The deserialization information for the current model
|
|
@@ -45588,6 +45597,22 @@ export function deserializeIntoRestorePointSearchResult(restorePointSearchResult
|
|
|
45588
45597
|
"restorePoint": n => { restorePointSearchResult.restorePoint = n.getObjectValue(createRestorePointFromDiscriminatorValue); },
|
|
45589
45598
|
};
|
|
45590
45599
|
}
|
|
45600
|
+
/**
|
|
45601
|
+
* The deserialization information for the current model
|
|
45602
|
+
* @param RestoreSessionArtifactCount The instance to deserialize into.
|
|
45603
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
45604
|
+
*/
|
|
45605
|
+
// @ts-ignore
|
|
45606
|
+
export function deserializeIntoRestoreSessionArtifactCount(restoreSessionArtifactCount = {}) {
|
|
45607
|
+
return {
|
|
45608
|
+
"backingStoreEnabled": n => { restoreSessionArtifactCount.backingStoreEnabled = true; },
|
|
45609
|
+
"completed": n => { restoreSessionArtifactCount.completed = n.getNumberValue(); },
|
|
45610
|
+
"failed": n => { restoreSessionArtifactCount.failed = n.getNumberValue(); },
|
|
45611
|
+
"inProgress": n => { restoreSessionArtifactCount.inProgress = n.getNumberValue(); },
|
|
45612
|
+
"@odata.type": n => { restoreSessionArtifactCount.odataType = n.getStringValue(); },
|
|
45613
|
+
"total": n => { restoreSessionArtifactCount.total = n.getNumberValue(); },
|
|
45614
|
+
};
|
|
45615
|
+
}
|
|
45591
45616
|
/**
|
|
45592
45617
|
* The deserialization information for the current model
|
|
45593
45618
|
* @param RestoreSessionBase The instance to deserialize into.
|
|
@@ -45595,7 +45620,7 @@ export function deserializeIntoRestorePointSearchResult(restorePointSearchResult
|
|
|
45595
45620
|
*/
|
|
45596
45621
|
// @ts-ignore
|
|
45597
45622
|
export function deserializeIntoRestoreSessionBase(restoreSessionBase = {}) {
|
|
45598
|
-
return Object.assign(Object.assign({}, deserializeIntoEntity(restoreSessionBase)), { "completedDateTime": n => { restoreSessionBase.completedDateTime = n.getDateValue(); }, "createdBy": n => { restoreSessionBase.createdBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "createdDateTime": n => { restoreSessionBase.createdDateTime = n.getDateValue(); }, "error": n => { restoreSessionBase.errorEscaped = n.getObjectValue(createPublicErrorFromDiscriminatorValue); }, "lastModifiedBy": n => { restoreSessionBase.lastModifiedBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "lastModifiedDateTime": n => { restoreSessionBase.lastModifiedDateTime = n.getDateValue(); }, "status": n => { restoreSessionBase.status = n.getEnumValue(RestoreSessionStatusObject); } });
|
|
45623
|
+
return Object.assign(Object.assign({}, deserializeIntoEntity(restoreSessionBase)), { "completedDateTime": n => { restoreSessionBase.completedDateTime = n.getDateValue(); }, "createdBy": n => { restoreSessionBase.createdBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "createdDateTime": n => { restoreSessionBase.createdDateTime = n.getDateValue(); }, "error": n => { restoreSessionBase.errorEscaped = n.getObjectValue(createPublicErrorFromDiscriminatorValue); }, "lastModifiedBy": n => { restoreSessionBase.lastModifiedBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "lastModifiedDateTime": n => { restoreSessionBase.lastModifiedDateTime = n.getDateValue(); }, "restoreJobType": n => { restoreSessionBase.restoreJobType = n.getEnumValue(RestoreJobTypeObject); }, "restoreSessionArtifactCount": n => { restoreSessionBase.restoreSessionArtifactCount = n.getObjectValue(createRestoreSessionArtifactCountFromDiscriminatorValue); }, "status": n => { restoreSessionBase.status = n.getEnumValue(RestoreSessionStatusObject); } });
|
|
45599
45624
|
}
|
|
45600
45625
|
/**
|
|
45601
45626
|
* The deserialization information for the current model
|
|
@@ -77824,6 +77849,7 @@ export function serializeMailboxRestoreArtifact(writer, mailboxRestoreArtifact =
|
|
|
77824
77849
|
}
|
|
77825
77850
|
serializeRestoreArtifactBase(writer, mailboxRestoreArtifact, isSerializingDerivedType);
|
|
77826
77851
|
writer.writeStringValue("restoredFolderId", mailboxRestoreArtifact.restoredFolderId);
|
|
77852
|
+
writer.writeNumberValue("restoredItemCount", mailboxRestoreArtifact.restoredItemCount);
|
|
77827
77853
|
switch (mailboxRestoreArtifact.odataType) {
|
|
77828
77854
|
case "#microsoft.graph.granularMailboxRestoreArtifact":
|
|
77829
77855
|
serializeGranularMailboxRestoreArtifact(writer, mailboxRestoreArtifact, true);
|
|
@@ -87312,6 +87338,24 @@ export function serializeRestorePointSearchResult(writer, restorePointSearchResu
|
|
|
87312
87338
|
writer.writeObjectValue("restorePoint", restorePointSearchResult.restorePoint, serializeRestorePoint);
|
|
87313
87339
|
writer.writeAdditionalData(restorePointSearchResult.additionalData);
|
|
87314
87340
|
}
|
|
87341
|
+
/**
|
|
87342
|
+
* Serializes information the current object
|
|
87343
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
87344
|
+
* @param RestoreSessionArtifactCount The instance to serialize from.
|
|
87345
|
+
* @param writer Serialization writer to use to serialize this model
|
|
87346
|
+
*/
|
|
87347
|
+
// @ts-ignore
|
|
87348
|
+
export function serializeRestoreSessionArtifactCount(writer, restoreSessionArtifactCount = {}, isSerializingDerivedType = false) {
|
|
87349
|
+
if (!restoreSessionArtifactCount || isSerializingDerivedType) {
|
|
87350
|
+
return;
|
|
87351
|
+
}
|
|
87352
|
+
writer.writeNumberValue("completed", restoreSessionArtifactCount.completed);
|
|
87353
|
+
writer.writeNumberValue("failed", restoreSessionArtifactCount.failed);
|
|
87354
|
+
writer.writeNumberValue("inProgress", restoreSessionArtifactCount.inProgress);
|
|
87355
|
+
writer.writeStringValue("@odata.type", restoreSessionArtifactCount.odataType);
|
|
87356
|
+
writer.writeNumberValue("total", restoreSessionArtifactCount.total);
|
|
87357
|
+
writer.writeAdditionalData(restoreSessionArtifactCount.additionalData);
|
|
87358
|
+
}
|
|
87315
87359
|
/**
|
|
87316
87360
|
* Serializes information the current object
|
|
87317
87361
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -87330,6 +87374,8 @@ export function serializeRestoreSessionBase(writer, restoreSessionBase = {}, isS
|
|
|
87330
87374
|
writer.writeObjectValue("error", restoreSessionBase.errorEscaped, serializePublicError);
|
|
87331
87375
|
writer.writeObjectValue("lastModifiedBy", restoreSessionBase.lastModifiedBy, serializeIdentitySet);
|
|
87332
87376
|
writer.writeDateValue("lastModifiedDateTime", restoreSessionBase.lastModifiedDateTime);
|
|
87377
|
+
writer.writeEnumValue("restoreJobType", restoreSessionBase.restoreJobType);
|
|
87378
|
+
writer.writeObjectValue("restoreSessionArtifactCount", restoreSessionBase.restoreSessionArtifactCount, serializeRestoreSessionArtifactCount);
|
|
87333
87379
|
writer.writeEnumValue("status", restoreSessionBase.status);
|
|
87334
87380
|
switch (restoreSessionBase.odataType) {
|
|
87335
87381
|
case "#microsoft.graph.exchangeRestoreSession":
|
|
@@ -105944,6 +105990,11 @@ export const RestoreArtifactsBulkRequestStatusObject = {
|
|
|
105944
105990
|
CompletedWithErrors: "completedWithErrors",
|
|
105945
105991
|
UnknownFutureValue: "unknownFutureValue",
|
|
105946
105992
|
};
|
|
105993
|
+
export const RestoreJobTypeObject = {
|
|
105994
|
+
Standard: "standard",
|
|
105995
|
+
Bulk: "bulk",
|
|
105996
|
+
UnknownFutureValue: "unknownFutureValue",
|
|
105997
|
+
};
|
|
105947
105998
|
export const RestorePointPreferenceObject = {
|
|
105948
105999
|
Latest: "latest",
|
|
105949
106000
|
Oldest: "oldest",
|