@microsoft/msgraph-sdk 1.0.0-preview.60 → 1.0.0-preview.62

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.js CHANGED
@@ -8,7 +8,7 @@ import { deserializeIntoConnectionOperation, deserializeIntoExternalActivity, de
8
8
  // @ts-ignore
9
9
  import { createLifecycleWorkflowsContainerFromDiscriminatorValue, createWorkflowFromDiscriminatorValue, deserializeIntoCustomTaskExtension, deserializeIntoCustomTaskExtensionCallbackConfiguration, deserializeIntoCustomTaskExtensionCallbackData, deserializeIntoCustomTaskExtensionCalloutData, deserializeIntoGroupBasedSubjectSet, deserializeIntoInsights, deserializeIntoLifecycleManagementSettings, deserializeIntoLifecycleWorkflowsContainer, deserializeIntoRuleBasedSubjectSet, deserializeIntoRun, deserializeIntoTask, deserializeIntoTaskDefinition, deserializeIntoTaskProcessingResult, deserializeIntoTaskReport, deserializeIntoUserProcessingResult, deserializeIntoWorkflowTemplate, serializeLifecycleWorkflowsContainer, serializeWorkflow } from './identityGovernance/index.js';
10
10
  // @ts-ignore
11
- import { createBillingFromDiscriminatorValue, deserializeIntoAzureUsage, deserializeIntoBilledReconciliation, deserializeIntoBilledUsage, deserializeIntoBilling, deserializeIntoBillingReconciliation, deserializeIntoExportSuccessOperation, deserializeIntoFailedOperation, deserializeIntoManifest, deserializeIntoRunningOperation, deserializeIntoUnbilledUsage, serializeBilling } from './partners/billing/index.js';
11
+ import { createBillingFromDiscriminatorValue, deserializeIntoAzureUsage, deserializeIntoBilledReconciliation, deserializeIntoBilledUsage, deserializeIntoBilling, deserializeIntoBillingReconciliation, deserializeIntoExportSuccessOperation, deserializeIntoFailedOperation, deserializeIntoManifest, deserializeIntoRunningOperation, deserializeIntoUnbilledReconciliation, deserializeIntoUnbilledUsage, serializeBilling } from './partners/billing/index.js';
12
12
  // @ts-ignore
13
13
  import { createAcronymFromDiscriminatorValue, createBookmarkFromDiscriminatorValue, createQnaFromDiscriminatorValue, deserializeIntoAcronym, deserializeIntoBookmark, deserializeIntoQna, deserializeIntoSearchAnswer, serializeAcronym, serializeBookmark, serializeQna } from './search/index.js';
14
14
  // @ts-ignore
@@ -3759,6 +3759,27 @@ export function createCallCollectionResponseFromDiscriminatorValue(parseNode) {
3759
3759
  export function createCallEndedEventMessageDetailFromDiscriminatorValue(parseNode) {
3760
3760
  return deserializeIntoCallEndedEventMessageDetail;
3761
3761
  }
3762
+ /**
3763
+ * Creates a new instance of the appropriate class based on discriminator value
3764
+ * @param parseNode The parse node to use to read the discriminator value and create the object
3765
+ * @returns {CallEvent}
3766
+ */
3767
+ // @ts-ignore
3768
+ export function createCallEventFromDiscriminatorValue(parseNode) {
3769
+ if (!parseNode)
3770
+ throw new Error("parseNode cannot be undefined");
3771
+ const mappingValueNode = parseNode === null || parseNode === void 0 ? void 0 : parseNode.getChildNode("@odata.type");
3772
+ if (mappingValueNode) {
3773
+ const mappingValue = mappingValueNode.getStringValue();
3774
+ if (mappingValue) {
3775
+ switch (mappingValue) {
3776
+ case "#microsoft.graph.emergencyCallEvent":
3777
+ return deserializeIntoEmergencyCallEvent;
3778
+ }
3779
+ }
3780
+ }
3781
+ return deserializeIntoCallEvent;
3782
+ }
3762
3783
  /**
3763
3784
  * Creates a new instance of the appropriate class based on discriminator value
3764
3785
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -8628,6 +8649,24 @@ export function createEmailPayloadDetailFromDiscriminatorValue(parseNode) {
8628
8649
  export function createEmailSettingsFromDiscriminatorValue(parseNode) {
8629
8650
  return deserializeIntoEmailSettings;
8630
8651
  }
8652
+ /**
8653
+ * Creates a new instance of the appropriate class based on discriminator value
8654
+ * @param parseNode The parse node to use to read the discriminator value and create the object
8655
+ * @returns {EmergencyCallerInfo}
8656
+ */
8657
+ // @ts-ignore
8658
+ export function createEmergencyCallerInfoFromDiscriminatorValue(parseNode) {
8659
+ return deserializeIntoEmergencyCallerInfo;
8660
+ }
8661
+ /**
8662
+ * Creates a new instance of the appropriate class based on discriminator value
8663
+ * @param parseNode The parse node to use to read the discriminator value and create the object
8664
+ * @returns {EmergencyCallEvent}
8665
+ */
8666
+ // @ts-ignore
8667
+ export function createEmergencyCallEventFromDiscriminatorValue(parseNode) {
8668
+ return deserializeIntoEmergencyCallEvent;
8669
+ }
8631
8670
  /**
8632
8671
  * Creates a new instance of the appropriate class based on discriminator value
8633
8672
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -9075,6 +9114,8 @@ export function createEntityFromDiscriminatorValue(parseNode) {
9075
9114
  return deserializeIntoCalendarSharingMessage;
9076
9115
  case "#microsoft.graph.call":
9077
9116
  return deserializeIntoCall;
9117
+ case "#microsoft.graph.callEvent":
9118
+ return deserializeIntoCallEvent;
9078
9119
  case "#microsoft.graph.callRecording":
9079
9120
  return deserializeIntoCallRecording;
9080
9121
  case "#microsoft.graph.callRecords.callRecord":
@@ -9403,6 +9444,8 @@ export function createEntityFromDiscriminatorValue(parseNode) {
9403
9444
  return deserializeIntoEmailAuthenticationMethodConfiguration;
9404
9445
  case "#microsoft.graph.emailFileAssessmentRequest":
9405
9446
  return deserializeIntoEmailFileAssessmentRequest;
9447
+ case "#microsoft.graph.emergencyCallEvent":
9448
+ return deserializeIntoEmergencyCallEvent;
9406
9449
  case "#microsoft.graph.employeeExperienceUser":
9407
9450
  return deserializeIntoEmployeeExperienceUser;
9408
9451
  case "#microsoft.graph.endpoint":
@@ -9889,6 +9932,8 @@ export function createEntityFromDiscriminatorValue(parseNode) {
9889
9932
  return deserializeIntoOperation;
9890
9933
  case "#microsoft.graph.partners.billing.runningOperation":
9891
9934
  return deserializeIntoRunningOperation;
9935
+ case "#microsoft.graph.partners.billing.unbilledReconciliation":
9936
+ return deserializeIntoUnbilledReconciliation;
9892
9937
  case "#microsoft.graph.partners.billing.unbilledUsage":
9893
9938
  return deserializeIntoUnbilledUsage;
9894
9939
  case "#microsoft.graph.passwordAuthenticationMethod":
@@ -29864,6 +29909,14 @@ export function deserializeIntoCallEndedEventMessageDetail(callEndedEventMessage
29864
29909
  * @returns {Record<string, (node: ParseNode) => void>}
29865
29910
  */
29866
29911
  // @ts-ignore
29912
+ export function deserializeIntoCallEvent(callEvent = {}) {
29913
+ return Object.assign(Object.assign({}, deserializeIntoEntity(callEvent)), { "callEventType": n => { callEvent.callEventType = n.getEnumValue(CallEventTypeObject); }, "eventDateTime": n => { callEvent.eventDateTime = n.getDateValue(); }, "participants": n => { callEvent.participants = n.getCollectionOfObjectValues(createParticipantFromDiscriminatorValue); } });
29914
+ }
29915
+ /**
29916
+ * The deserialization information for the current model
29917
+ * @returns {Record<string, (node: ParseNode) => void>}
29918
+ */
29919
+ // @ts-ignore
29867
29920
  export function deserializeIntoCallMediaState(callMediaState = {}) {
29868
29921
  return {
29869
29922
  "audio": n => { callMediaState.audio = n.getEnumValue(MediaStateObject); },
@@ -34435,6 +34488,30 @@ export function deserializeIntoEmailSettings(emailSettings = {}) {
34435
34488
  * @returns {Record<string, (node: ParseNode) => void>}
34436
34489
  */
34437
34490
  // @ts-ignore
34491
+ export function deserializeIntoEmergencyCallerInfo(emergencyCallerInfo = {}) {
34492
+ return {
34493
+ "backingStoreEnabled": n => { emergencyCallerInfo.backingStoreEnabled = true; },
34494
+ "displayName": n => { emergencyCallerInfo.displayName = n.getStringValue(); },
34495
+ "location": n => { emergencyCallerInfo.location = n.getObjectValue(createLocationFromDiscriminatorValue); },
34496
+ "@odata.type": n => { emergencyCallerInfo.odataType = n.getStringValue(); },
34497
+ "phoneNumber": n => { emergencyCallerInfo.phoneNumber = n.getStringValue(); },
34498
+ "tenantId": n => { emergencyCallerInfo.tenantId = n.getStringValue(); },
34499
+ "upn": n => { emergencyCallerInfo.upn = n.getStringValue(); },
34500
+ };
34501
+ }
34502
+ /**
34503
+ * The deserialization information for the current model
34504
+ * @returns {Record<string, (node: ParseNode) => void>}
34505
+ */
34506
+ // @ts-ignore
34507
+ export function deserializeIntoEmergencyCallEvent(emergencyCallEvent = {}) {
34508
+ return Object.assign(Object.assign({}, deserializeIntoCallEvent(emergencyCallEvent)), { "callerInfo": n => { emergencyCallEvent.callerInfo = n.getObjectValue(createEmergencyCallerInfoFromDiscriminatorValue); }, "emergencyNumberDialed": n => { emergencyCallEvent.emergencyNumberDialed = n.getStringValue(); }, "policyName": n => { emergencyCallEvent.policyName = n.getStringValue(); } });
34509
+ }
34510
+ /**
34511
+ * The deserialization information for the current model
34512
+ * @returns {Record<string, (node: ParseNode) => void>}
34513
+ */
34514
+ // @ts-ignore
34438
34515
  export function deserializeIntoEmployeeExperience(employeeExperience = {}) {
34439
34516
  return {
34440
34517
  "backingStoreEnabled": n => { employeeExperience.backingStoreEnabled = true; },
@@ -54969,6 +55046,19 @@ export function serializeCallEndedEventMessageDetail(writer, callEndedEventMessa
54969
55046
  * @param writer Serialization writer to use to serialize this model
54970
55047
  */
54971
55048
  // @ts-ignore
55049
+ export function serializeCallEvent(writer, callEvent = {}) {
55050
+ if (callEvent) {
55051
+ serializeEntity(writer, callEvent);
55052
+ writer.writeEnumValue("callEventType", callEvent.callEventType);
55053
+ writer.writeDateValue("eventDateTime", callEvent.eventDateTime);
55054
+ writer.writeCollectionOfObjectValues("participants", callEvent.participants, serializeParticipant);
55055
+ }
55056
+ }
55057
+ /**
55058
+ * Serializes information the current object
55059
+ * @param writer Serialization writer to use to serialize this model
55060
+ */
55061
+ // @ts-ignore
54972
55062
  export function serializeCallMediaState(writer, callMediaState = {}) {
54973
55063
  if (callMediaState) {
54974
55064
  writer.writeEnumValue("audio", callMediaState.audio);
@@ -61507,6 +61597,35 @@ export function serializeEmailSettings(writer, emailSettings = {}) {
61507
61597
  * @param writer Serialization writer to use to serialize this model
61508
61598
  */
61509
61599
  // @ts-ignore
61600
+ export function serializeEmergencyCallerInfo(writer, emergencyCallerInfo = {}) {
61601
+ if (emergencyCallerInfo) {
61602
+ writer.writeStringValue("displayName", emergencyCallerInfo.displayName);
61603
+ writer.writeObjectValue("location", emergencyCallerInfo.location, serializeLocation);
61604
+ writer.writeStringValue("@odata.type", emergencyCallerInfo.odataType);
61605
+ writer.writeStringValue("phoneNumber", emergencyCallerInfo.phoneNumber);
61606
+ writer.writeStringValue("tenantId", emergencyCallerInfo.tenantId);
61607
+ writer.writeStringValue("upn", emergencyCallerInfo.upn);
61608
+ writer.writeAdditionalData(emergencyCallerInfo.additionalData);
61609
+ }
61610
+ }
61611
+ /**
61612
+ * Serializes information the current object
61613
+ * @param writer Serialization writer to use to serialize this model
61614
+ */
61615
+ // @ts-ignore
61616
+ export function serializeEmergencyCallEvent(writer, emergencyCallEvent = {}) {
61617
+ if (emergencyCallEvent) {
61618
+ serializeCallEvent(writer, emergencyCallEvent);
61619
+ writer.writeObjectValue("callerInfo", emergencyCallEvent.callerInfo, serializeEmergencyCallerInfo);
61620
+ writer.writeStringValue("emergencyNumberDialed", emergencyCallEvent.emergencyNumberDialed);
61621
+ writer.writeStringValue("policyName", emergencyCallEvent.policyName);
61622
+ }
61623
+ }
61624
+ /**
61625
+ * Serializes information the current object
61626
+ * @param writer Serialization writer to use to serialize this model
61627
+ */
61628
+ // @ts-ignore
61510
61629
  export function serializeEmployeeExperience(writer, employeeExperience = {}) {
61511
61630
  if (employeeExperience) {
61512
61631
  writer.writeCollectionOfObjectValues("communities", employeeExperience.communities, serializeCommunity);
@@ -84147,6 +84266,12 @@ export const CallDirectionObject = {
84147
84266
  Incoming: "incoming",
84148
84267
  Outgoing: "outgoing",
84149
84268
  };
84269
+ export const CallEventTypeObject = {
84270
+ CallStarted: "callStarted",
84271
+ CallEnded: "callEnded",
84272
+ UnknownFutureValue: "unknownFutureValue",
84273
+ RosterUpdated: "rosterUpdated",
84274
+ };
84150
84275
  export const CallRecordingStatusObject = {
84151
84276
  Success: "success",
84152
84277
  Failure: "failure",