@microsoft/msgraph-sdk 1.0.0-preview.27 → 1.0.0-preview.29

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.
@@ -30,7 +30,7 @@ export function createAlertCommentFromDiscriminatorValue(parseNode) {
30
30
  export function createAlertEvidenceFromDiscriminatorValue(parseNode) {
31
31
  if (!parseNode)
32
32
  throw new Error("parseNode cannot be undefined");
33
- const mappingValueNode = parseNode.getChildNode("@odata.type");
33
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
34
34
  if (mappingValueNode) {
35
35
  const mappingValue = mappingValueNode.getStringValue();
36
36
  if (mappingValue) {
@@ -202,7 +202,7 @@ export function createArticleIndicatorFromDiscriminatorValue(parseNode) {
202
202
  export function createArtifactFromDiscriminatorValue(parseNode) {
203
203
  if (!parseNode)
204
204
  throw new Error("parseNode cannot be undefined");
205
- const mappingValueNode = parseNode.getChildNode("@odata.type");
205
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
206
206
  if (mappingValueNode) {
207
207
  const mappingValue = mappingValueNode.getStringValue();
208
208
  if (mappingValue) {
@@ -295,7 +295,7 @@ export function createBlobEvidenceFromDiscriminatorValue(parseNode) {
295
295
  export function createCaseEscapedFromDiscriminatorValue(parseNode) {
296
296
  if (!parseNode)
297
297
  throw new Error("parseNode cannot be undefined");
298
- const mappingValueNode = parseNode.getChildNode("@odata.type");
298
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
299
299
  if (mappingValueNode) {
300
300
  const mappingValue = mappingValueNode.getStringValue();
301
301
  if (mappingValue) {
@@ -325,7 +325,7 @@ export function createCaseOperationCollectionResponseFromDiscriminatorValue(pars
325
325
  export function createCaseOperationFromDiscriminatorValue(parseNode) {
326
326
  if (!parseNode)
327
327
  throw new Error("parseNode cannot be undefined");
328
- const mappingValueNode = parseNode.getChildNode("@odata.type");
328
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
329
329
  if (mappingValueNode) {
330
330
  const mappingValue = mappingValueNode.getStringValue();
331
331
  if (mappingValue) {
@@ -342,6 +342,8 @@ export function createCaseOperationFromDiscriminatorValue(parseNode) {
342
342
  return deserializeIntoEdiscoveryIndexOperation;
343
343
  case "#microsoft.graph.security.ediscoveryPurgeDataOperation":
344
344
  return deserializeIntoEdiscoveryPurgeDataOperation;
345
+ case "#microsoft.graph.security.ediscoverySearchExportOperation":
346
+ return deserializeIntoEdiscoverySearchExportOperation;
345
347
  case "#microsoft.graph.security.ediscoveryTagOperation":
346
348
  return deserializeIntoEdiscoveryTagOperation;
347
349
  }
@@ -466,7 +468,7 @@ export function createCvssSummaryFromDiscriminatorValue(parseNode) {
466
468
  export function createDataSetFromDiscriminatorValue(parseNode) {
467
469
  if (!parseNode)
468
470
  throw new Error("parseNode cannot be undefined");
469
- const mappingValueNode = parseNode.getChildNode("@odata.type");
471
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
470
472
  if (mappingValueNode) {
471
473
  const mappingValue = mappingValueNode.getStringValue();
472
474
  if (mappingValue) {
@@ -496,7 +498,7 @@ export function createDataSourceCollectionResponseFromDiscriminatorValue(parseNo
496
498
  export function createDataSourceContainerFromDiscriminatorValue(parseNode) {
497
499
  if (!parseNode)
498
500
  throw new Error("parseNode cannot be undefined");
499
- const mappingValueNode = parseNode.getChildNode("@odata.type");
501
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
500
502
  if (mappingValueNode) {
501
503
  const mappingValue = mappingValueNode.getStringValue();
502
504
  if (mappingValue) {
@@ -519,7 +521,7 @@ export function createDataSourceContainerFromDiscriminatorValue(parseNode) {
519
521
  export function createDataSourceFromDiscriminatorValue(parseNode) {
520
522
  if (!parseNode)
521
523
  throw new Error("parseNode cannot be undefined");
522
- const mappingValueNode = parseNode.getChildNode("@odata.type");
524
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
523
525
  if (mappingValueNode) {
524
526
  const mappingValue = mappingValueNode.getStringValue();
525
527
  if (mappingValue) {
@@ -778,6 +780,15 @@ export function createEdiscoveryReviewTagFromDiscriminatorValue(parseNode) {
778
780
  export function createEdiscoverySearchCollectionResponseFromDiscriminatorValue(parseNode) {
779
781
  return deserializeIntoEdiscoverySearchCollectionResponse;
780
782
  }
783
+ /**
784
+ * Creates a new instance of the appropriate class based on discriminator value
785
+ * @param parseNode The parse node to use to read the discriminator value and create the object
786
+ * @returns {EdiscoverySearchExportOperation}
787
+ */
788
+ // @ts-ignore
789
+ export function createEdiscoverySearchExportOperationFromDiscriminatorValue(parseNode) {
790
+ return deserializeIntoEdiscoverySearchExportOperation;
791
+ }
781
792
  /**
782
793
  * Creates a new instance of the appropriate class based on discriminator value
783
794
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -913,7 +924,7 @@ export function createFilePlanDepartmentFromDiscriminatorValue(parseNode) {
913
924
  export function createFilePlanDescriptorBaseFromDiscriminatorValue(parseNode) {
914
925
  if (!parseNode)
915
926
  throw new Error("parseNode cannot be undefined");
916
- const mappingValueNode = parseNode.getChildNode("@odata.type");
927
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
917
928
  if (mappingValueNode) {
918
929
  const mappingValue = mappingValueNode.getStringValue();
919
930
  if (mappingValue) {
@@ -953,7 +964,7 @@ export function createFilePlanDescriptorFromDiscriminatorValue(parseNode) {
953
964
  export function createFilePlanDescriptorTemplateFromDiscriminatorValue(parseNode) {
954
965
  if (!parseNode)
955
966
  throw new Error("parseNode cannot be undefined");
956
- const mappingValueNode = parseNode.getChildNode("@odata.type");
967
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
957
968
  if (mappingValueNode) {
958
969
  const mappingValue = mappingValueNode.getStringValue();
959
970
  if (mappingValue) {
@@ -1137,7 +1148,7 @@ export function createHostCookieFromDiscriminatorValue(parseNode) {
1137
1148
  export function createHostFromDiscriminatorValue(parseNode) {
1138
1149
  if (!parseNode)
1139
1150
  throw new Error("parseNode cannot be undefined");
1140
- const mappingValueNode = parseNode.getChildNode("@odata.type");
1151
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
1141
1152
  if (mappingValueNode) {
1142
1153
  const mappingValue = mappingValueNode.getStringValue();
1143
1154
  if (mappingValue) {
@@ -1349,7 +1360,7 @@ export function createIncidentFromDiscriminatorValue(parseNode) {
1349
1360
  export function createIndicatorFromDiscriminatorValue(parseNode) {
1350
1361
  if (!parseNode)
1351
1362
  throw new Error("parseNode cannot be undefined");
1352
- const mappingValueNode = parseNode.getChildNode("@odata.type");
1363
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
1353
1364
  if (mappingValueNode) {
1354
1365
  const mappingValue = mappingValueNode.getStringValue();
1355
1366
  if (mappingValue) {
@@ -1669,7 +1680,7 @@ export function createRetentionDurationForeverFromDiscriminatorValue(parseNode)
1669
1680
  export function createRetentionDurationFromDiscriminatorValue(parseNode) {
1670
1681
  if (!parseNode)
1671
1682
  throw new Error("parseNode cannot be undefined");
1672
- const mappingValueNode = parseNode.getChildNode("@odata.type");
1683
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
1673
1684
  if (mappingValueNode) {
1674
1685
  const mappingValue = mappingValueNode.getStringValue();
1675
1686
  if (mappingValue) {
@@ -1773,7 +1784,7 @@ export function createSasTokenEvidenceFromDiscriminatorValue(parseNode) {
1773
1784
  export function createSearchFromDiscriminatorValue(parseNode) {
1774
1785
  if (!parseNode)
1775
1786
  throw new Error("parseNode cannot be undefined");
1776
- const mappingValueNode = parseNode.getChildNode("@odata.type");
1787
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
1777
1788
  if (mappingValueNode) {
1778
1789
  const mappingValue = mappingValueNode.getStringValue();
1779
1790
  if (mappingValue) {
@@ -1922,7 +1933,7 @@ export function createSubmissionMailEvidenceFromDiscriminatorValue(parseNode) {
1922
1933
  export function createTagFromDiscriminatorValue(parseNode) {
1923
1934
  if (!parseNode)
1924
1935
  throw new Error("parseNode cannot be undefined");
1925
- const mappingValueNode = parseNode.getChildNode("@odata.type");
1936
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
1926
1937
  if (mappingValueNode) {
1927
1938
  const mappingValue = mappingValueNode.getStringValue();
1928
1939
  if (mappingValue) {
@@ -2096,7 +2107,7 @@ export function createVulnerabilityFromDiscriminatorValue(parseNode) {
2096
2107
  export function createWhoisBaseRecordFromDiscriminatorValue(parseNode) {
2097
2108
  if (!parseNode)
2098
2109
  throw new Error("parseNode cannot be undefined");
2099
- const mappingValueNode = parseNode.getChildNode("@odata.type");
2110
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
2100
2111
  if (mappingValueNode) {
2101
2112
  const mappingValue = mappingValueNode.getStringValue();
2102
2113
  if (mappingValue) {
@@ -2503,7 +2514,7 @@ export function deserializeIntoDepartmentTemplateCollectionResponse(departmentTe
2503
2514
  */
2504
2515
  // @ts-ignore
2505
2516
  export function deserializeIntoDeviceEvidence(deviceEvidence = {}) {
2506
- return Object.assign(Object.assign({}, deserializeIntoAlertEvidence(deviceEvidence)), { "azureAdDeviceId": n => { deviceEvidence.azureAdDeviceId = n.getStringValue(); }, "defenderAvStatus": n => { deviceEvidence.defenderAvStatus = n.getEnumValue(DefenderAvStatusObject); }, "deviceDnsName": n => { deviceEvidence.deviceDnsName = n.getStringValue(); }, "firstSeenDateTime": n => { deviceEvidence.firstSeenDateTime = n.getDateValue(); }, "healthStatus": n => { deviceEvidence.healthStatus = n.getEnumValue(DeviceHealthStatusObject); }, "ipInterfaces": n => { deviceEvidence.ipInterfaces = n.getCollectionOfPrimitiveValues(); }, "lastExternalIpAddress": n => { deviceEvidence.lastExternalIpAddress = n.getStringValue(); }, "lastIpAddress": n => { deviceEvidence.lastIpAddress = n.getStringValue(); }, "loggedOnUsers": n => { deviceEvidence.loggedOnUsers = n.getCollectionOfObjectValues(createLoggedOnUserFromDiscriminatorValue); }, "mdeDeviceId": n => { deviceEvidence.mdeDeviceId = n.getStringValue(); }, "onboardingStatus": n => { deviceEvidence.onboardingStatus = n.getEnumValue(OnboardingStatusObject); }, "osBuild": n => { deviceEvidence.osBuild = n.getNumberValue(); }, "osPlatform": n => { deviceEvidence.osPlatform = n.getStringValue(); }, "rbacGroupId": n => { deviceEvidence.rbacGroupId = n.getNumberValue(); }, "rbacGroupName": n => { deviceEvidence.rbacGroupName = n.getStringValue(); }, "riskScore": n => { deviceEvidence.riskScore = n.getEnumValue(DeviceRiskScoreObject); }, "version": n => { deviceEvidence.version = n.getStringValue(); }, "vmMetadata": n => { deviceEvidence.vmMetadata = n.getObjectValue(createVmMetadataFromDiscriminatorValue); } });
2517
+ return Object.assign(Object.assign({}, deserializeIntoAlertEvidence(deviceEvidence)), { "azureAdDeviceId": n => { deviceEvidence.azureAdDeviceId = n.getStringValue(); }, "defenderAvStatus": n => { deviceEvidence.defenderAvStatus = n.getEnumValue(DefenderAvStatusObject); }, "deviceDnsName": n => { deviceEvidence.deviceDnsName = n.getStringValue(); }, "dnsDomain": n => { deviceEvidence.dnsDomain = n.getStringValue(); }, "firstSeenDateTime": n => { deviceEvidence.firstSeenDateTime = n.getDateValue(); }, "healthStatus": n => { deviceEvidence.healthStatus = n.getEnumValue(DeviceHealthStatusObject); }, "hostName": n => { deviceEvidence.hostName = n.getStringValue(); }, "ipInterfaces": n => { deviceEvidence.ipInterfaces = n.getCollectionOfPrimitiveValues(); }, "lastExternalIpAddress": n => { deviceEvidence.lastExternalIpAddress = n.getStringValue(); }, "lastIpAddress": n => { deviceEvidence.lastIpAddress = n.getStringValue(); }, "loggedOnUsers": n => { deviceEvidence.loggedOnUsers = n.getCollectionOfObjectValues(createLoggedOnUserFromDiscriminatorValue); }, "mdeDeviceId": n => { deviceEvidence.mdeDeviceId = n.getStringValue(); }, "ntDomain": n => { deviceEvidence.ntDomain = n.getStringValue(); }, "onboardingStatus": n => { deviceEvidence.onboardingStatus = n.getEnumValue(OnboardingStatusObject); }, "osBuild": n => { deviceEvidence.osBuild = n.getNumberValue(); }, "osPlatform": n => { deviceEvidence.osPlatform = n.getStringValue(); }, "rbacGroupId": n => { deviceEvidence.rbacGroupId = n.getNumberValue(); }, "rbacGroupName": n => { deviceEvidence.rbacGroupName = n.getStringValue(); }, "riskScore": n => { deviceEvidence.riskScore = n.getEnumValue(DeviceRiskScoreObject); }, "version": n => { deviceEvidence.version = n.getStringValue(); }, "vmMetadata": n => { deviceEvidence.vmMetadata = n.getObjectValue(createVmMetadataFromDiscriminatorValue); } });
2507
2518
  }
2508
2519
  /**
2509
2520
  * The deserialization information for the current model
@@ -2713,6 +2724,14 @@ export function deserializeIntoEdiscoverySearchCollectionResponse(ediscoverySear
2713
2724
  * @returns {Record<string, (node: ParseNode) => void>}
2714
2725
  */
2715
2726
  // @ts-ignore
2727
+ export function deserializeIntoEdiscoverySearchExportOperation(ediscoverySearchExportOperation = {}) {
2728
+ return Object.assign(Object.assign({}, deserializeIntoCaseOperation(ediscoverySearchExportOperation)), { "additionalOptions": n => { ediscoverySearchExportOperation.additionalOptions = n.getCollectionOfEnumValues(AdditionalOptionsObject); }, "description": n => { ediscoverySearchExportOperation.description = n.getStringValue(); }, "displayName": n => { ediscoverySearchExportOperation.displayName = n.getStringValue(); }, "exportCriteria": n => { ediscoverySearchExportOperation.exportCriteria = n.getCollectionOfEnumValues(ExportCriteriaObject); }, "exportFileMetadata": n => { ediscoverySearchExportOperation.exportFileMetadata = n.getCollectionOfObjectValues(createExportFileMetadataFromDiscriminatorValue); }, "exportFormat": n => { ediscoverySearchExportOperation.exportFormat = n.getEnumValue(ExportFormatObject); }, "exportLocation": n => { ediscoverySearchExportOperation.exportLocation = n.getCollectionOfEnumValues(ExportLocationObject); }, "exportSingleItems": n => { ediscoverySearchExportOperation.exportSingleItems = n.getBooleanValue(); }, "search": n => { ediscoverySearchExportOperation.search = n.getObjectValue(createEdiscoverySearchFromDiscriminatorValue); } });
2729
+ }
2730
+ /**
2731
+ * The deserialization information for the current model
2732
+ * @returns {Record<string, (node: ParseNode) => void>}
2733
+ */
2734
+ // @ts-ignore
2716
2735
  export function deserializeIntoEdiscoveryTagOperation(ediscoveryTagOperation = {}) {
2717
2736
  return Object.assign({}, deserializeIntoCaseOperation(ediscoveryTagOperation));
2718
2737
  }
@@ -4570,13 +4589,16 @@ export function serializeDeviceEvidence(writer, deviceEvidence = {}) {
4570
4589
  writer.writeStringValue("azureAdDeviceId", deviceEvidence.azureAdDeviceId);
4571
4590
  writer.writeEnumValue("defenderAvStatus", deviceEvidence.defenderAvStatus);
4572
4591
  writer.writeStringValue("deviceDnsName", deviceEvidence.deviceDnsName);
4592
+ writer.writeStringValue("dnsDomain", deviceEvidence.dnsDomain);
4573
4593
  writer.writeDateValue("firstSeenDateTime", deviceEvidence.firstSeenDateTime);
4574
4594
  writer.writeEnumValue("healthStatus", deviceEvidence.healthStatus);
4595
+ writer.writeStringValue("hostName", deviceEvidence.hostName);
4575
4596
  writer.writeCollectionOfPrimitiveValues("ipInterfaces", deviceEvidence.ipInterfaces);
4576
4597
  writer.writeStringValue("lastExternalIpAddress", deviceEvidence.lastExternalIpAddress);
4577
4598
  writer.writeStringValue("lastIpAddress", deviceEvidence.lastIpAddress);
4578
4599
  writer.writeCollectionOfObjectValues("loggedOnUsers", deviceEvidence.loggedOnUsers, serializeLoggedOnUser);
4579
4600
  writer.writeStringValue("mdeDeviceId", deviceEvidence.mdeDeviceId);
4601
+ writer.writeStringValue("ntDomain", deviceEvidence.ntDomain);
4580
4602
  writer.writeEnumValue("onboardingStatus", deviceEvidence.onboardingStatus);
4581
4603
  writer.writeNumberValue("osBuild", deviceEvidence.osBuild);
4582
4604
  writer.writeStringValue("osPlatform", deviceEvidence.osPlatform);
@@ -4905,6 +4927,25 @@ export function serializeEdiscoverySearchCollectionResponse(writer, ediscoverySe
4905
4927
  * @param writer Serialization writer to use to serialize this model
4906
4928
  */
4907
4929
  // @ts-ignore
4930
+ export function serializeEdiscoverySearchExportOperation(writer, ediscoverySearchExportOperation = {}) {
4931
+ if (ediscoverySearchExportOperation) {
4932
+ serializeCaseOperation(writer, ediscoverySearchExportOperation);
4933
+ writer.writeEnumValue("additionalOptions", ediscoverySearchExportOperation.additionalOptions);
4934
+ writer.writeStringValue("description", ediscoverySearchExportOperation.description);
4935
+ writer.writeStringValue("displayName", ediscoverySearchExportOperation.displayName);
4936
+ writer.writeEnumValue("exportCriteria", ediscoverySearchExportOperation.exportCriteria);
4937
+ writer.writeCollectionOfObjectValues("exportFileMetadata", ediscoverySearchExportOperation.exportFileMetadata, serializeExportFileMetadata);
4938
+ writer.writeEnumValue("exportFormat", ediscoverySearchExportOperation.exportFormat);
4939
+ writer.writeEnumValue("exportLocation", ediscoverySearchExportOperation.exportLocation);
4940
+ writer.writeBooleanValue("exportSingleItems", ediscoverySearchExportOperation.exportSingleItems);
4941
+ writer.writeObjectValue("search", ediscoverySearchExportOperation.search, serializeEdiscoverySearch);
4942
+ }
4943
+ }
4944
+ /**
4945
+ * Serializes information the current object
4946
+ * @param writer Serialization writer to use to serialize this model
4947
+ */
4948
+ // @ts-ignore
4908
4949
  export function serializeEdiscoveryTagOperation(writer, ediscoveryTagOperation = {}) {
4909
4950
  if (ediscoveryTagOperation) {
4910
4951
  serializeCaseOperation(writer, ediscoveryTagOperation);
@@ -6898,6 +6939,15 @@ export const AdditionalDataOptionsObject = {
6898
6939
  LinkedFiles: "linkedFiles",
6899
6940
  UnknownFutureValue: "unknownFutureValue",
6900
6941
  };
6942
+ export const AdditionalOptionsObject = {
6943
+ None: "none",
6944
+ TeamsAndYammerConversations: "teamsAndYammerConversations",
6945
+ CloudAttachments: "cloudAttachments",
6946
+ AllDocumentVersions: "allDocumentVersions",
6947
+ SubfolderContents: "subfolderContents",
6948
+ ListAttachments: "listAttachments",
6949
+ UnknownFutureValue: "unknownFutureValue",
6950
+ };
6901
6951
  export const AlertClassificationObject = {
6902
6952
  Unknown: "unknown",
6903
6953
  FalsePositive: "falsePositive",
@@ -6955,6 +7005,8 @@ export const CaseActionObject = {
6955
7005
  HoldUpdate: "holdUpdate",
6956
7006
  UnknownFutureValue: "unknownFutureValue",
6957
7007
  PurgeData: "purgeData",
7008
+ ExportReport: "exportReport",
7009
+ ExportResult: "exportResult",
6958
7010
  };
6959
7011
  export const CaseOperationStatusObject = {
6960
7012
  NotStarted: "notStarted",
@@ -7134,12 +7186,28 @@ export const EvidenceVerdictObject = {
7134
7186
  NoThreatsFound: "noThreatsFound",
7135
7187
  UnknownFutureValue: "unknownFutureValue",
7136
7188
  };
7189
+ export const ExportCriteriaObject = {
7190
+ SearchHits: "searchHits",
7191
+ PartiallyIndexed: "partiallyIndexed",
7192
+ UnknownFutureValue: "unknownFutureValue",
7193
+ };
7137
7194
  export const ExportFileStructureObject = {
7138
7195
  None: "none",
7139
7196
  Directory: "directory",
7140
7197
  Pst: "pst",
7141
7198
  UnknownFutureValue: "unknownFutureValue",
7142
7199
  };
7200
+ export const ExportFormatObject = {
7201
+ Pst: "pst",
7202
+ Msg: "msg",
7203
+ Eml: "eml",
7204
+ UnknownFutureValue: "unknownFutureValue",
7205
+ };
7206
+ export const ExportLocationObject = {
7207
+ ResponsiveLocations: "responsiveLocations",
7208
+ NonresponsiveLocations: "nonresponsiveLocations",
7209
+ UnknownFutureValue: "unknownFutureValue",
7210
+ };
7143
7211
  export const ExportOptionsObject = {
7144
7212
  OriginalFiles: "originalFiles",
7145
7213
  Text: "text",