@microsoft/msgraph-sdk 1.0.0-preview.57 → 1.0.0-preview.59

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
@@ -27222,15 +27222,7 @@ export function deserializeIntoAiInteraction(aiInteraction = {}) {
27222
27222
  */
27223
27223
  // @ts-ignore
27224
27224
  export function deserializeIntoAiInteractionAttachment(aiInteractionAttachment = {}) {
27225
- return {
27226
- "attachmentId": n => { aiInteractionAttachment.attachmentId = n.getStringValue(); },
27227
- "backingStoreEnabled": n => { aiInteractionAttachment.backingStoreEnabled = true; },
27228
- "content": n => { aiInteractionAttachment.content = n.getStringValue(); },
27229
- "contentType": n => { aiInteractionAttachment.contentType = n.getStringValue(); },
27230
- "contentUrl": n => { aiInteractionAttachment.contentUrl = n.getStringValue(); },
27231
- "name": n => { aiInteractionAttachment.name = n.getStringValue(); },
27232
- "@odata.type": n => { aiInteractionAttachment.odataType = n.getStringValue(); },
27233
- };
27225
+ return Object.assign(Object.assign({}, deserializeIntoEntity(aiInteractionAttachment)), { "attachmentId": n => { aiInteractionAttachment.attachmentId = n.getStringValue(); }, "content": n => { aiInteractionAttachment.content = n.getStringValue(); }, "contentType": n => { aiInteractionAttachment.contentType = n.getStringValue(); }, "contentUrl": n => { aiInteractionAttachment.contentUrl = n.getStringValue(); }, "name": n => { aiInteractionAttachment.name = n.getStringValue(); } });
27234
27226
  }
27235
27227
  /**
27236
27228
  * The deserialization information for the current model
@@ -27238,13 +27230,7 @@ export function deserializeIntoAiInteractionAttachment(aiInteractionAttachment =
27238
27230
  */
27239
27231
  // @ts-ignore
27240
27232
  export function deserializeIntoAiInteractionContext(aiInteractionContext = {}) {
27241
- return {
27242
- "backingStoreEnabled": n => { aiInteractionContext.backingStoreEnabled = true; },
27243
- "contextReference": n => { aiInteractionContext.contextReference = n.getStringValue(); },
27244
- "contextType": n => { aiInteractionContext.contextType = n.getStringValue(); },
27245
- "displayName": n => { aiInteractionContext.displayName = n.getStringValue(); },
27246
- "@odata.type": n => { aiInteractionContext.odataType = n.getStringValue(); },
27247
- };
27233
+ return Object.assign(Object.assign({}, deserializeIntoEntity(aiInteractionContext)), { "contextReference": n => { aiInteractionContext.contextReference = n.getStringValue(); }, "contextType": n => { aiInteractionContext.contextType = n.getStringValue(); }, "displayName": n => { aiInteractionContext.displayName = n.getStringValue(); } });
27248
27234
  }
27249
27235
  /**
27250
27236
  * The deserialization information for the current model
@@ -27260,13 +27246,7 @@ export function deserializeIntoAiInteractionHistory(aiInteractionHistory = {}) {
27260
27246
  */
27261
27247
  // @ts-ignore
27262
27248
  export function deserializeIntoAiInteractionLink(aiInteractionLink = {}) {
27263
- return {
27264
- "backingStoreEnabled": n => { aiInteractionLink.backingStoreEnabled = true; },
27265
- "displayName": n => { aiInteractionLink.displayName = n.getStringValue(); },
27266
- "linkType": n => { aiInteractionLink.linkType = n.getStringValue(); },
27267
- "linkUrl": n => { aiInteractionLink.linkUrl = n.getStringValue(); },
27268
- "@odata.type": n => { aiInteractionLink.odataType = n.getStringValue(); },
27269
- };
27249
+ return Object.assign(Object.assign({}, deserializeIntoEntity(aiInteractionLink)), { "displayName": n => { aiInteractionLink.displayName = n.getStringValue(); }, "linkType": n => { aiInteractionLink.linkType = n.getStringValue(); }, "linkUrl": n => { aiInteractionLink.linkUrl = n.getStringValue(); } });
27270
27250
  }
27271
27251
  /**
27272
27252
  * The deserialization information for the current model
@@ -27274,13 +27254,7 @@ export function deserializeIntoAiInteractionLink(aiInteractionLink = {}) {
27274
27254
  */
27275
27255
  // @ts-ignore
27276
27256
  export function deserializeIntoAiInteractionMention(aiInteractionMention = {}) {
27277
- return {
27278
- "backingStoreEnabled": n => { aiInteractionMention.backingStoreEnabled = true; },
27279
- "mentioned": n => { aiInteractionMention.mentioned = n.getObjectValue(createAiInteractionMentionedIdentitySetFromDiscriminatorValue); },
27280
- "mentionId": n => { aiInteractionMention.mentionId = n.getNumberValue(); },
27281
- "mentionText": n => { aiInteractionMention.mentionText = n.getStringValue(); },
27282
- "@odata.type": n => { aiInteractionMention.odataType = n.getStringValue(); },
27283
- };
27257
+ return Object.assign(Object.assign({}, deserializeIntoEntity(aiInteractionMention)), { "mentioned": n => { aiInteractionMention.mentioned = n.getObjectValue(createAiInteractionMentionedIdentitySetFromDiscriminatorValue); }, "mentionId": n => { aiInteractionMention.mentionId = n.getNumberValue(); }, "mentionText": n => { aiInteractionMention.mentionText = n.getStringValue(); } });
27284
27258
  }
27285
27259
  /**
27286
27260
  * The deserialization information for the current model
@@ -51310,13 +51284,12 @@ export function serializeAiInteraction(writer, aiInteraction = {}) {
51310
51284
  // @ts-ignore
51311
51285
  export function serializeAiInteractionAttachment(writer, aiInteractionAttachment = {}) {
51312
51286
  if (aiInteractionAttachment) {
51287
+ serializeEntity(writer, aiInteractionAttachment);
51313
51288
  writer.writeStringValue("attachmentId", aiInteractionAttachment.attachmentId);
51314
51289
  writer.writeStringValue("content", aiInteractionAttachment.content);
51315
51290
  writer.writeStringValue("contentType", aiInteractionAttachment.contentType);
51316
51291
  writer.writeStringValue("contentUrl", aiInteractionAttachment.contentUrl);
51317
51292
  writer.writeStringValue("name", aiInteractionAttachment.name);
51318
- writer.writeStringValue("@odata.type", aiInteractionAttachment.odataType);
51319
- writer.writeAdditionalData(aiInteractionAttachment.additionalData);
51320
51293
  }
51321
51294
  }
51322
51295
  /**
@@ -51326,11 +51299,10 @@ export function serializeAiInteractionAttachment(writer, aiInteractionAttachment
51326
51299
  // @ts-ignore
51327
51300
  export function serializeAiInteractionContext(writer, aiInteractionContext = {}) {
51328
51301
  if (aiInteractionContext) {
51302
+ serializeEntity(writer, aiInteractionContext);
51329
51303
  writer.writeStringValue("contextReference", aiInteractionContext.contextReference);
51330
51304
  writer.writeStringValue("contextType", aiInteractionContext.contextType);
51331
51305
  writer.writeStringValue("displayName", aiInteractionContext.displayName);
51332
- writer.writeStringValue("@odata.type", aiInteractionContext.odataType);
51333
- writer.writeAdditionalData(aiInteractionContext.additionalData);
51334
51306
  }
51335
51307
  }
51336
51308
  /**
@@ -51350,11 +51322,10 @@ export function serializeAiInteractionHistory(writer, aiInteractionHistory = {})
51350
51322
  // @ts-ignore
51351
51323
  export function serializeAiInteractionLink(writer, aiInteractionLink = {}) {
51352
51324
  if (aiInteractionLink) {
51325
+ serializeEntity(writer, aiInteractionLink);
51353
51326
  writer.writeStringValue("displayName", aiInteractionLink.displayName);
51354
51327
  writer.writeStringValue("linkType", aiInteractionLink.linkType);
51355
51328
  writer.writeStringValue("linkUrl", aiInteractionLink.linkUrl);
51356
- writer.writeStringValue("@odata.type", aiInteractionLink.odataType);
51357
- writer.writeAdditionalData(aiInteractionLink.additionalData);
51358
51329
  }
51359
51330
  }
51360
51331
  /**
@@ -51364,11 +51335,10 @@ export function serializeAiInteractionLink(writer, aiInteractionLink = {}) {
51364
51335
  // @ts-ignore
51365
51336
  export function serializeAiInteractionMention(writer, aiInteractionMention = {}) {
51366
51337
  if (aiInteractionMention) {
51338
+ serializeEntity(writer, aiInteractionMention);
51367
51339
  writer.writeObjectValue("mentioned", aiInteractionMention.mentioned, serializeAiInteractionMentionedIdentitySet);
51368
51340
  writer.writeNumberValue("mentionId", aiInteractionMention.mentionId);
51369
51341
  writer.writeStringValue("mentionText", aiInteractionMention.mentionText);
51370
- writer.writeStringValue("@odata.type", aiInteractionMention.odataType);
51371
- writer.writeAdditionalData(aiInteractionMention.additionalData);
51372
51342
  }
51373
51343
  }
51374
51344
  /**