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

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.
Files changed (40) hide show
  1. package/models/callRecords/index.d.ts +112 -80
  2. package/models/callRecords/index.d.ts.map +1 -1
  3. package/models/callRecords/index.js +419 -283
  4. package/models/callRecords/index.js.map +1 -1
  5. package/models/externalConnectors/index.d.ts +108 -75
  6. package/models/externalConnectors/index.d.ts.map +1 -1
  7. package/models/externalConnectors/index.js +274 -156
  8. package/models/externalConnectors/index.js.map +1 -1
  9. package/models/identityGovernance/index.d.ts +180 -93
  10. package/models/identityGovernance/index.d.ts.map +1 -1
  11. package/models/identityGovernance/index.js +532 -325
  12. package/models/identityGovernance/index.js.map +1 -1
  13. package/models/index.d.ts +10884 -5286
  14. package/models/index.d.ts.map +1 -1
  15. package/models/index.js +33874 -17260
  16. package/models/index.js.map +1 -1
  17. package/models/oDataErrors/index.d.ts +16 -20
  18. package/models/oDataErrors/index.d.ts.map +1 -1
  19. package/models/oDataErrors/index.js +41 -25
  20. package/models/oDataErrors/index.js.map +1 -1
  21. package/models/partners/billing/index.d.ts +60 -19
  22. package/models/partners/billing/index.d.ts.map +1 -1
  23. package/models/partners/billing/index.js +144 -73
  24. package/models/partners/billing/index.js.map +1 -1
  25. package/models/search/index.d.ts +44 -27
  26. package/models/search/index.d.ts.map +1 -1
  27. package/models/search/index.js +137 -82
  28. package/models/search/index.js.map +1 -1
  29. package/models/security/index.d.ts +844 -367
  30. package/models/security/index.d.ts.map +1 -1
  31. package/models/security/index.js +2727 -1571
  32. package/models/security/index.js.map +1 -1
  33. package/models/termStore/index.d.ts +52 -25
  34. package/models/termStore/index.d.ts.map +1 -1
  35. package/models/termStore/index.js +136 -84
  36. package/models/termStore/index.js.map +1 -1
  37. package/package.json +2 -2
  38. package/tsconfig.tsbuildinfo +1 -1
  39. package/version.d.ts +1 -1
  40. package/version.js +1 -1
@@ -274,6 +274,7 @@ export function createUrlToItemResolverBaseFromDiscriminatorValue(parseNode) {
274
274
  }
275
275
  /**
276
276
  * The deserialization information for the current model
277
+ * @param Acl The instance to deserialize into.
277
278
  * @returns {Record<string, (node: ParseNode) => void>}
278
279
  */
279
280
  // @ts-ignore
@@ -288,6 +289,7 @@ export function deserializeIntoAcl(acl = {}) {
288
289
  }
289
290
  /**
290
291
  * The deserialization information for the current model
292
+ * @param ActivitySettings The instance to deserialize into.
291
293
  * @returns {Record<string, (node: ParseNode) => void>}
292
294
  */
293
295
  // @ts-ignore
@@ -300,6 +302,7 @@ export function deserializeIntoActivitySettings(activitySettings = {}) {
300
302
  }
301
303
  /**
302
304
  * The deserialization information for the current model
305
+ * @param Configuration The instance to deserialize into.
303
306
  * @returns {Record<string, (node: ParseNode) => void>}
304
307
  */
305
308
  // @ts-ignore
@@ -312,6 +315,7 @@ export function deserializeIntoConfiguration(configuration = {}) {
312
315
  }
313
316
  /**
314
317
  * The deserialization information for the current model
318
+ * @param ConnectionOperation The instance to deserialize into.
315
319
  * @returns {Record<string, (node: ParseNode) => void>}
316
320
  */
317
321
  // @ts-ignore
@@ -320,6 +324,7 @@ export function deserializeIntoConnectionOperation(connectionOperation = {}) {
320
324
  }
321
325
  /**
322
326
  * The deserialization information for the current model
327
+ * @param ConnectionOperationCollectionResponse The instance to deserialize into.
323
328
  * @returns {Record<string, (node: ParseNode) => void>}
324
329
  */
325
330
  // @ts-ignore
@@ -328,6 +333,7 @@ export function deserializeIntoConnectionOperationCollectionResponse(connectionO
328
333
  }
329
334
  /**
330
335
  * The deserialization information for the current model
336
+ * @param DisplayTemplate The instance to deserialize into.
331
337
  * @returns {Record<string, (node: ParseNode) => void>}
332
338
  */
333
339
  // @ts-ignore
@@ -343,6 +349,7 @@ export function deserializeIntoDisplayTemplate(displayTemplate = {}) {
343
349
  }
344
350
  /**
345
351
  * The deserialization information for the current model
352
+ * @param External The instance to deserialize into.
346
353
  * @returns {Record<string, (node: ParseNode) => void>}
347
354
  */
348
355
  // @ts-ignore
@@ -355,6 +362,7 @@ export function deserializeIntoExternal(external = {}) {
355
362
  }
356
363
  /**
357
364
  * The deserialization information for the current model
365
+ * @param ExternalActivity The instance to deserialize into.
358
366
  * @returns {Record<string, (node: ParseNode) => void>}
359
367
  */
360
368
  // @ts-ignore
@@ -363,6 +371,7 @@ export function deserializeIntoExternalActivity(externalActivity = {}) {
363
371
  }
364
372
  /**
365
373
  * The deserialization information for the current model
374
+ * @param ExternalActivityCollectionResponse The instance to deserialize into.
366
375
  * @returns {Record<string, (node: ParseNode) => void>}
367
376
  */
368
377
  // @ts-ignore
@@ -371,6 +380,7 @@ export function deserializeIntoExternalActivityCollectionResponse(externalActivi
371
380
  }
372
381
  /**
373
382
  * The deserialization information for the current model
383
+ * @param ExternalActivityResult The instance to deserialize into.
374
384
  * @returns {Record<string, (node: ParseNode) => void>}
375
385
  */
376
386
  // @ts-ignore
@@ -379,6 +389,7 @@ export function deserializeIntoExternalActivityResult(externalActivityResult = {
379
389
  }
380
390
  /**
381
391
  * The deserialization information for the current model
392
+ * @param ExternalConnection The instance to deserialize into.
382
393
  * @returns {Record<string, (node: ParseNode) => void>}
383
394
  */
384
395
  // @ts-ignore
@@ -387,6 +398,7 @@ export function deserializeIntoExternalConnection(externalConnection = {}) {
387
398
  }
388
399
  /**
389
400
  * The deserialization information for the current model
401
+ * @param ExternalConnectionCollectionResponse The instance to deserialize into.
390
402
  * @returns {Record<string, (node: ParseNode) => void>}
391
403
  */
392
404
  // @ts-ignore
@@ -395,6 +407,7 @@ export function deserializeIntoExternalConnectionCollectionResponse(externalConn
395
407
  }
396
408
  /**
397
409
  * The deserialization information for the current model
410
+ * @param ExternalGroup The instance to deserialize into.
398
411
  * @returns {Record<string, (node: ParseNode) => void>}
399
412
  */
400
413
  // @ts-ignore
@@ -403,6 +416,7 @@ export function deserializeIntoExternalGroup(externalGroup = {}) {
403
416
  }
404
417
  /**
405
418
  * The deserialization information for the current model
419
+ * @param ExternalGroupCollectionResponse The instance to deserialize into.
406
420
  * @returns {Record<string, (node: ParseNode) => void>}
407
421
  */
408
422
  // @ts-ignore
@@ -411,6 +425,7 @@ export function deserializeIntoExternalGroupCollectionResponse(externalGroupColl
411
425
  }
412
426
  /**
413
427
  * The deserialization information for the current model
428
+ * @param ExternalItem The instance to deserialize into.
414
429
  * @returns {Record<string, (node: ParseNode) => void>}
415
430
  */
416
431
  // @ts-ignore
@@ -419,6 +434,7 @@ export function deserializeIntoExternalItem(externalItem = {}) {
419
434
  }
420
435
  /**
421
436
  * The deserialization information for the current model
437
+ * @param ExternalItemCollectionResponse The instance to deserialize into.
422
438
  * @returns {Record<string, (node: ParseNode) => void>}
423
439
  */
424
440
  // @ts-ignore
@@ -427,6 +443,7 @@ export function deserializeIntoExternalItemCollectionResponse(externalItemCollec
427
443
  }
428
444
  /**
429
445
  * The deserialization information for the current model
446
+ * @param ExternalItemContent The instance to deserialize into.
430
447
  * @returns {Record<string, (node: ParseNode) => void>}
431
448
  */
432
449
  // @ts-ignore
@@ -440,6 +457,7 @@ export function deserializeIntoExternalItemContent(externalItemContent = {}) {
440
457
  }
441
458
  /**
442
459
  * The deserialization information for the current model
460
+ * @param Identity The instance to deserialize into.
443
461
  * @returns {Record<string, (node: ParseNode) => void>}
444
462
  */
445
463
  // @ts-ignore
@@ -448,6 +466,7 @@ export function deserializeIntoIdentity(identity = {}) {
448
466
  }
449
467
  /**
450
468
  * The deserialization information for the current model
469
+ * @param IdentityCollectionResponse The instance to deserialize into.
451
470
  * @returns {Record<string, (node: ParseNode) => void>}
452
471
  */
453
472
  // @ts-ignore
@@ -456,6 +475,7 @@ export function deserializeIntoIdentityCollectionResponse(identityCollectionResp
456
475
  }
457
476
  /**
458
477
  * The deserialization information for the current model
478
+ * @param ItemIdResolver The instance to deserialize into.
459
479
  * @returns {Record<string, (node: ParseNode) => void>}
460
480
  */
461
481
  // @ts-ignore
@@ -464,6 +484,7 @@ export function deserializeIntoItemIdResolver(itemIdResolver = {}) {
464
484
  }
465
485
  /**
466
486
  * The deserialization information for the current model
487
+ * @param Properties The instance to deserialize into.
467
488
  * @returns {Record<string, (node: ParseNode) => void>}
468
489
  */
469
490
  // @ts-ignore
@@ -475,6 +496,7 @@ export function deserializeIntoProperties(properties = {}) {
475
496
  }
476
497
  /**
477
498
  * The deserialization information for the current model
499
+ * @param Property The instance to deserialize into.
478
500
  * @returns {Record<string, (node: ParseNode) => void>}
479
501
  */
480
502
  // @ts-ignore
@@ -494,6 +516,7 @@ export function deserializeIntoProperty(property = {}) {
494
516
  }
495
517
  /**
496
518
  * The deserialization information for the current model
519
+ * @param PropertyRule The instance to deserialize into.
497
520
  * @returns {Record<string, (node: ParseNode) => void>}
498
521
  */
499
522
  // @ts-ignore
@@ -509,6 +532,7 @@ export function deserializeIntoPropertyRule(propertyRule = {}) {
509
532
  }
510
533
  /**
511
534
  * The deserialization information for the current model
535
+ * @param Schema The instance to deserialize into.
512
536
  * @returns {Record<string, (node: ParseNode) => void>}
513
537
  */
514
538
  // @ts-ignore
@@ -517,6 +541,7 @@ export function deserializeIntoSchema(schema = {}) {
517
541
  }
518
542
  /**
519
543
  * The deserialization information for the current model
544
+ * @param SearchSettings The instance to deserialize into.
520
545
  * @returns {Record<string, (node: ParseNode) => void>}
521
546
  */
522
547
  // @ts-ignore
@@ -529,6 +554,7 @@ export function deserializeIntoSearchSettings(searchSettings = {}) {
529
554
  }
530
555
  /**
531
556
  * The deserialization information for the current model
557
+ * @param UrlMatchInfo The instance to deserialize into.
532
558
  * @returns {Record<string, (node: ParseNode) => void>}
533
559
  */
534
560
  // @ts-ignore
@@ -542,6 +568,7 @@ export function deserializeIntoUrlMatchInfo(urlMatchInfo = {}) {
542
568
  }
543
569
  /**
544
570
  * The deserialization information for the current model
571
+ * @param UrlToItemResolverBase The instance to deserialize into.
545
572
  * @returns {Record<string, (node: ParseNode) => void>}
546
573
  */
547
574
  // @ts-ignore
@@ -554,347 +581,438 @@ export function deserializeIntoUrlToItemResolverBase(urlToItemResolverBase = {})
554
581
  }
555
582
  /**
556
583
  * Serializes information the current object
584
+ * @param Acl The instance to serialize from.
585
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
557
586
  * @param writer Serialization writer to use to serialize this model
558
587
  */
559
588
  // @ts-ignore
560
- export function serializeAcl(writer, acl = {}) {
561
- if (acl) {
562
- writer.writeEnumValue("accessType", acl.accessType);
563
- writer.writeStringValue("@odata.type", acl.odataType);
564
- writer.writeEnumValue("type", acl.type);
565
- writer.writeStringValue("value", acl.value);
566
- writer.writeAdditionalData(acl.additionalData);
589
+ export function serializeAcl(writer, acl = {}, isSerializingDerivedType = false) {
590
+ if (!acl || isSerializingDerivedType) {
591
+ return;
567
592
  }
593
+ writer.writeEnumValue("accessType", acl.accessType);
594
+ writer.writeStringValue("@odata.type", acl.odataType);
595
+ writer.writeEnumValue("type", acl.type);
596
+ writer.writeStringValue("value", acl.value);
597
+ writer.writeAdditionalData(acl.additionalData);
568
598
  }
569
599
  /**
570
600
  * Serializes information the current object
601
+ * @param ActivitySettings The instance to serialize from.
602
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
571
603
  * @param writer Serialization writer to use to serialize this model
572
604
  */
573
605
  // @ts-ignore
574
- export function serializeActivitySettings(writer, activitySettings = {}) {
575
- if (activitySettings) {
576
- writer.writeStringValue("@odata.type", activitySettings.odataType);
577
- writer.writeCollectionOfObjectValues("urlToItemResolvers", activitySettings.urlToItemResolvers, serializeUrlToItemResolverBase);
578
- writer.writeAdditionalData(activitySettings.additionalData);
606
+ export function serializeActivitySettings(writer, activitySettings = {}, isSerializingDerivedType = false) {
607
+ if (!activitySettings || isSerializingDerivedType) {
608
+ return;
579
609
  }
610
+ writer.writeStringValue("@odata.type", activitySettings.odataType);
611
+ writer.writeCollectionOfObjectValues("urlToItemResolvers", activitySettings.urlToItemResolvers, serializeUrlToItemResolverBase);
612
+ writer.writeAdditionalData(activitySettings.additionalData);
580
613
  }
581
614
  /**
582
615
  * Serializes information the current object
616
+ * @param Configuration The instance to serialize from.
617
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
583
618
  * @param writer Serialization writer to use to serialize this model
584
619
  */
585
620
  // @ts-ignore
586
- export function serializeConfiguration(writer, configuration = {}) {
587
- if (configuration) {
588
- writer.writeCollectionOfPrimitiveValues("authorizedAppIds", configuration.authorizedAppIds);
589
- writer.writeStringValue("@odata.type", configuration.odataType);
590
- writer.writeAdditionalData(configuration.additionalData);
621
+ export function serializeConfiguration(writer, configuration = {}, isSerializingDerivedType = false) {
622
+ if (!configuration || isSerializingDerivedType) {
623
+ return;
591
624
  }
625
+ writer.writeCollectionOfPrimitiveValues("authorizedAppIds", configuration.authorizedAppIds);
626
+ writer.writeStringValue("@odata.type", configuration.odataType);
627
+ writer.writeAdditionalData(configuration.additionalData);
592
628
  }
593
629
  /**
594
630
  * Serializes information the current object
631
+ * @param ConnectionOperation The instance to serialize from.
632
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
595
633
  * @param writer Serialization writer to use to serialize this model
596
634
  */
597
635
  // @ts-ignore
598
- export function serializeConnectionOperation(writer, connectionOperation = {}) {
599
- if (connectionOperation) {
600
- serializeEntity(writer, connectionOperation);
601
- writer.writeObjectValue("error", connectionOperation.errorEscaped, serializePublicError);
602
- writer.writeEnumValue("status", connectionOperation.status);
636
+ export function serializeConnectionOperation(writer, connectionOperation = {}, isSerializingDerivedType = false) {
637
+ if (!connectionOperation || isSerializingDerivedType) {
638
+ return;
603
639
  }
640
+ serializeEntity(writer, connectionOperation, isSerializingDerivedType);
641
+ writer.writeObjectValue("error", connectionOperation.errorEscaped, serializePublicError);
642
+ writer.writeEnumValue("status", connectionOperation.status);
604
643
  }
605
644
  /**
606
645
  * Serializes information the current object
646
+ * @param ConnectionOperationCollectionResponse The instance to serialize from.
647
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
607
648
  * @param writer Serialization writer to use to serialize this model
608
649
  */
609
650
  // @ts-ignore
610
- export function serializeConnectionOperationCollectionResponse(writer, connectionOperationCollectionResponse = {}) {
611
- if (connectionOperationCollectionResponse) {
612
- serializeBaseCollectionPaginationCountResponse(writer, connectionOperationCollectionResponse);
613
- writer.writeCollectionOfObjectValues("value", connectionOperationCollectionResponse.value, serializeConnectionOperation);
651
+ export function serializeConnectionOperationCollectionResponse(writer, connectionOperationCollectionResponse = {}, isSerializingDerivedType = false) {
652
+ if (!connectionOperationCollectionResponse || isSerializingDerivedType) {
653
+ return;
614
654
  }
655
+ serializeBaseCollectionPaginationCountResponse(writer, connectionOperationCollectionResponse, isSerializingDerivedType);
656
+ writer.writeCollectionOfObjectValues("value", connectionOperationCollectionResponse.value, serializeConnectionOperation);
615
657
  }
616
658
  /**
617
659
  * Serializes information the current object
660
+ * @param DisplayTemplate The instance to serialize from.
661
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
618
662
  * @param writer Serialization writer to use to serialize this model
619
663
  */
620
664
  // @ts-ignore
621
- export function serializeDisplayTemplate(writer, displayTemplate = {}) {
622
- if (displayTemplate) {
623
- writer.writeStringValue("id", displayTemplate.id);
624
- writer.writeObjectValue("layout", displayTemplate.layout);
625
- writer.writeStringValue("@odata.type", displayTemplate.odataType);
626
- writer.writeNumberValue("priority", displayTemplate.priority);
627
- writer.writeCollectionOfObjectValues("rules", displayTemplate.rules, serializePropertyRule);
628
- writer.writeAdditionalData(displayTemplate.additionalData);
665
+ export function serializeDisplayTemplate(writer, displayTemplate = {}, isSerializingDerivedType = false) {
666
+ if (!displayTemplate || isSerializingDerivedType) {
667
+ return;
629
668
  }
669
+ writer.writeStringValue("id", displayTemplate.id);
670
+ writer.writeObjectValue("layout", displayTemplate.layout);
671
+ writer.writeStringValue("@odata.type", displayTemplate.odataType);
672
+ writer.writeNumberValue("priority", displayTemplate.priority);
673
+ writer.writeCollectionOfObjectValues("rules", displayTemplate.rules, serializePropertyRule);
674
+ writer.writeAdditionalData(displayTemplate.additionalData);
630
675
  }
631
676
  /**
632
677
  * Serializes information the current object
678
+ * @param External The instance to serialize from.
679
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
633
680
  * @param writer Serialization writer to use to serialize this model
634
681
  */
635
682
  // @ts-ignore
636
- export function serializeExternal(writer, external = {}) {
637
- if (external) {
638
- writer.writeCollectionOfObjectValues("connections", external.connections, serializeExternalConnection);
639
- writer.writeStringValue("@odata.type", external.odataType);
640
- writer.writeAdditionalData(external.additionalData);
683
+ export function serializeExternal(writer, external = {}, isSerializingDerivedType = false) {
684
+ if (!external || isSerializingDerivedType) {
685
+ return;
641
686
  }
687
+ writer.writeCollectionOfObjectValues("connections", external.connections, serializeExternalConnection);
688
+ writer.writeStringValue("@odata.type", external.odataType);
689
+ writer.writeAdditionalData(external.additionalData);
642
690
  }
643
691
  /**
644
692
  * Serializes information the current object
693
+ * @param ExternalActivity The instance to serialize from.
694
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
645
695
  * @param writer Serialization writer to use to serialize this model
646
696
  */
647
697
  // @ts-ignore
648
- export function serializeExternalActivity(writer, externalActivity = {}) {
649
- if (externalActivity) {
650
- serializeEntity(writer, externalActivity);
651
- writer.writeObjectValue("performedBy", externalActivity.performedBy, serializeIdentity);
652
- writer.writeDateValue("startDateTime", externalActivity.startDateTime);
653
- writer.writeEnumValue("type", externalActivity.type);
698
+ export function serializeExternalActivity(writer, externalActivity = {}, isSerializingDerivedType = false) {
699
+ if (!externalActivity || isSerializingDerivedType) {
700
+ return;
701
+ }
702
+ serializeEntity(writer, externalActivity, isSerializingDerivedType);
703
+ writer.writeObjectValue("performedBy", externalActivity.performedBy, serializeIdentity);
704
+ writer.writeDateValue("startDateTime", externalActivity.startDateTime);
705
+ writer.writeEnumValue("type", externalActivity.type);
706
+ switch (externalActivity.odataType) {
707
+ case "#microsoft.graph.externalConnectors.externalActivityResult":
708
+ serializeExternalActivityResult(writer, externalActivity, true);
709
+ break;
654
710
  }
655
711
  }
656
712
  /**
657
713
  * Serializes information the current object
714
+ * @param ExternalActivityCollectionResponse The instance to serialize from.
715
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
658
716
  * @param writer Serialization writer to use to serialize this model
659
717
  */
660
718
  // @ts-ignore
661
- export function serializeExternalActivityCollectionResponse(writer, externalActivityCollectionResponse = {}) {
662
- if (externalActivityCollectionResponse) {
663
- serializeBaseCollectionPaginationCountResponse(writer, externalActivityCollectionResponse);
664
- writer.writeCollectionOfObjectValues("value", externalActivityCollectionResponse.value, serializeExternalActivity);
719
+ export function serializeExternalActivityCollectionResponse(writer, externalActivityCollectionResponse = {}, isSerializingDerivedType = false) {
720
+ if (!externalActivityCollectionResponse || isSerializingDerivedType) {
721
+ return;
665
722
  }
723
+ serializeBaseCollectionPaginationCountResponse(writer, externalActivityCollectionResponse, isSerializingDerivedType);
724
+ writer.writeCollectionOfObjectValues("value", externalActivityCollectionResponse.value, serializeExternalActivity);
666
725
  }
667
726
  /**
668
727
  * Serializes information the current object
728
+ * @param ExternalActivityResult The instance to serialize from.
729
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
669
730
  * @param writer Serialization writer to use to serialize this model
670
731
  */
671
732
  // @ts-ignore
672
- export function serializeExternalActivityResult(writer, externalActivityResult = {}) {
673
- if (externalActivityResult) {
674
- serializeExternalActivity(writer, externalActivityResult);
675
- writer.writeObjectValue("error", externalActivityResult.errorEscaped, serializePublicError);
733
+ export function serializeExternalActivityResult(writer, externalActivityResult = {}, isSerializingDerivedType = false) {
734
+ if (!externalActivityResult || isSerializingDerivedType) {
735
+ return;
676
736
  }
737
+ serializeExternalActivity(writer, externalActivityResult, isSerializingDerivedType);
738
+ writer.writeObjectValue("error", externalActivityResult.errorEscaped, serializePublicError);
677
739
  }
678
740
  /**
679
741
  * Serializes information the current object
742
+ * @param ExternalConnection The instance to serialize from.
743
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
680
744
  * @param writer Serialization writer to use to serialize this model
681
745
  */
682
746
  // @ts-ignore
683
- export function serializeExternalConnection(writer, externalConnection = {}) {
684
- if (externalConnection) {
685
- serializeEntity(writer, externalConnection);
686
- writer.writeObjectValue("activitySettings", externalConnection.activitySettings, serializeActivitySettings);
687
- writer.writeObjectValue("configuration", externalConnection.configuration, serializeConfiguration);
688
- writer.writeStringValue("connectorId", externalConnection.connectorId);
689
- writer.writeStringValue("description", externalConnection.description);
690
- writer.writeCollectionOfObjectValues("groups", externalConnection.groups, serializeExternalGroup);
691
- writer.writeCollectionOfObjectValues("items", externalConnection.items, serializeExternalItem);
692
- writer.writeStringValue("name", externalConnection.name);
693
- writer.writeCollectionOfObjectValues("operations", externalConnection.operations, serializeConnectionOperation);
694
- writer.writeObjectValue("schema", externalConnection.schema, serializeSchema);
695
- writer.writeObjectValue("searchSettings", externalConnection.searchSettings, serializeSearchSettings);
747
+ export function serializeExternalConnection(writer, externalConnection = {}, isSerializingDerivedType = false) {
748
+ if (!externalConnection || isSerializingDerivedType) {
749
+ return;
696
750
  }
751
+ serializeEntity(writer, externalConnection, isSerializingDerivedType);
752
+ writer.writeObjectValue("activitySettings", externalConnection.activitySettings, serializeActivitySettings);
753
+ writer.writeObjectValue("configuration", externalConnection.configuration, serializeConfiguration);
754
+ writer.writeStringValue("connectorId", externalConnection.connectorId);
755
+ writer.writeStringValue("description", externalConnection.description);
756
+ writer.writeCollectionOfObjectValues("groups", externalConnection.groups, serializeExternalGroup);
757
+ writer.writeCollectionOfObjectValues("items", externalConnection.items, serializeExternalItem);
758
+ writer.writeStringValue("name", externalConnection.name);
759
+ writer.writeCollectionOfObjectValues("operations", externalConnection.operations, serializeConnectionOperation);
760
+ writer.writeObjectValue("schema", externalConnection.schema, serializeSchema);
761
+ writer.writeObjectValue("searchSettings", externalConnection.searchSettings, serializeSearchSettings);
697
762
  }
698
763
  /**
699
764
  * Serializes information the current object
765
+ * @param ExternalConnectionCollectionResponse The instance to serialize from.
766
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
700
767
  * @param writer Serialization writer to use to serialize this model
701
768
  */
702
769
  // @ts-ignore
703
- export function serializeExternalConnectionCollectionResponse(writer, externalConnectionCollectionResponse = {}) {
704
- if (externalConnectionCollectionResponse) {
705
- serializeBaseCollectionPaginationCountResponse(writer, externalConnectionCollectionResponse);
706
- writer.writeCollectionOfObjectValues("value", externalConnectionCollectionResponse.value, serializeExternalConnection);
770
+ export function serializeExternalConnectionCollectionResponse(writer, externalConnectionCollectionResponse = {}, isSerializingDerivedType = false) {
771
+ if (!externalConnectionCollectionResponse || isSerializingDerivedType) {
772
+ return;
707
773
  }
774
+ serializeBaseCollectionPaginationCountResponse(writer, externalConnectionCollectionResponse, isSerializingDerivedType);
775
+ writer.writeCollectionOfObjectValues("value", externalConnectionCollectionResponse.value, serializeExternalConnection);
708
776
  }
709
777
  /**
710
778
  * Serializes information the current object
779
+ * @param ExternalGroup The instance to serialize from.
780
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
711
781
  * @param writer Serialization writer to use to serialize this model
712
782
  */
713
783
  // @ts-ignore
714
- export function serializeExternalGroup(writer, externalGroup = {}) {
715
- if (externalGroup) {
716
- serializeEntity(writer, externalGroup);
717
- writer.writeStringValue("description", externalGroup.description);
718
- writer.writeStringValue("displayName", externalGroup.displayName);
719
- writer.writeCollectionOfObjectValues("members", externalGroup.members, serializeIdentity);
784
+ export function serializeExternalGroup(writer, externalGroup = {}, isSerializingDerivedType = false) {
785
+ if (!externalGroup || isSerializingDerivedType) {
786
+ return;
720
787
  }
788
+ serializeEntity(writer, externalGroup, isSerializingDerivedType);
789
+ writer.writeStringValue("description", externalGroup.description);
790
+ writer.writeStringValue("displayName", externalGroup.displayName);
791
+ writer.writeCollectionOfObjectValues("members", externalGroup.members, serializeIdentity);
721
792
  }
722
793
  /**
723
794
  * Serializes information the current object
795
+ * @param ExternalGroupCollectionResponse The instance to serialize from.
796
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
724
797
  * @param writer Serialization writer to use to serialize this model
725
798
  */
726
799
  // @ts-ignore
727
- export function serializeExternalGroupCollectionResponse(writer, externalGroupCollectionResponse = {}) {
728
- if (externalGroupCollectionResponse) {
729
- serializeBaseCollectionPaginationCountResponse(writer, externalGroupCollectionResponse);
730
- writer.writeCollectionOfObjectValues("value", externalGroupCollectionResponse.value, serializeExternalGroup);
800
+ export function serializeExternalGroupCollectionResponse(writer, externalGroupCollectionResponse = {}, isSerializingDerivedType = false) {
801
+ if (!externalGroupCollectionResponse || isSerializingDerivedType) {
802
+ return;
731
803
  }
804
+ serializeBaseCollectionPaginationCountResponse(writer, externalGroupCollectionResponse, isSerializingDerivedType);
805
+ writer.writeCollectionOfObjectValues("value", externalGroupCollectionResponse.value, serializeExternalGroup);
732
806
  }
733
807
  /**
734
808
  * Serializes information the current object
809
+ * @param ExternalItem The instance to serialize from.
810
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
735
811
  * @param writer Serialization writer to use to serialize this model
736
812
  */
737
813
  // @ts-ignore
738
- export function serializeExternalItem(writer, externalItem = {}) {
739
- if (externalItem) {
740
- serializeEntity(writer, externalItem);
741
- writer.writeCollectionOfObjectValues("acl", externalItem.acl, serializeAcl);
742
- writer.writeCollectionOfObjectValues("activities", externalItem.activities, serializeExternalActivity);
743
- writer.writeObjectValue("content", externalItem.content, serializeExternalItemContent);
744
- writer.writeObjectValue("properties", externalItem.properties, serializeProperties);
814
+ export function serializeExternalItem(writer, externalItem = {}, isSerializingDerivedType = false) {
815
+ if (!externalItem || isSerializingDerivedType) {
816
+ return;
745
817
  }
818
+ serializeEntity(writer, externalItem, isSerializingDerivedType);
819
+ writer.writeCollectionOfObjectValues("acl", externalItem.acl, serializeAcl);
820
+ writer.writeCollectionOfObjectValues("activities", externalItem.activities, serializeExternalActivity);
821
+ writer.writeObjectValue("content", externalItem.content, serializeExternalItemContent);
822
+ writer.writeObjectValue("properties", externalItem.properties, serializeProperties);
746
823
  }
747
824
  /**
748
825
  * Serializes information the current object
826
+ * @param ExternalItemCollectionResponse The instance to serialize from.
827
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
749
828
  * @param writer Serialization writer to use to serialize this model
750
829
  */
751
830
  // @ts-ignore
752
- export function serializeExternalItemCollectionResponse(writer, externalItemCollectionResponse = {}) {
753
- if (externalItemCollectionResponse) {
754
- serializeBaseCollectionPaginationCountResponse(writer, externalItemCollectionResponse);
755
- writer.writeCollectionOfObjectValues("value", externalItemCollectionResponse.value, serializeExternalItem);
831
+ export function serializeExternalItemCollectionResponse(writer, externalItemCollectionResponse = {}, isSerializingDerivedType = false) {
832
+ if (!externalItemCollectionResponse || isSerializingDerivedType) {
833
+ return;
756
834
  }
835
+ serializeBaseCollectionPaginationCountResponse(writer, externalItemCollectionResponse, isSerializingDerivedType);
836
+ writer.writeCollectionOfObjectValues("value", externalItemCollectionResponse.value, serializeExternalItem);
757
837
  }
758
838
  /**
759
839
  * Serializes information the current object
840
+ * @param ExternalItemContent The instance to serialize from.
841
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
760
842
  * @param writer Serialization writer to use to serialize this model
761
843
  */
762
844
  // @ts-ignore
763
- export function serializeExternalItemContent(writer, externalItemContent = {}) {
764
- if (externalItemContent) {
765
- writer.writeStringValue("@odata.type", externalItemContent.odataType);
766
- writer.writeEnumValue("type", externalItemContent.type);
767
- writer.writeStringValue("value", externalItemContent.value);
768
- writer.writeAdditionalData(externalItemContent.additionalData);
845
+ export function serializeExternalItemContent(writer, externalItemContent = {}, isSerializingDerivedType = false) {
846
+ if (!externalItemContent || isSerializingDerivedType) {
847
+ return;
769
848
  }
849
+ writer.writeStringValue("@odata.type", externalItemContent.odataType);
850
+ writer.writeEnumValue("type", externalItemContent.type);
851
+ writer.writeStringValue("value", externalItemContent.value);
852
+ writer.writeAdditionalData(externalItemContent.additionalData);
770
853
  }
771
854
  /**
772
855
  * Serializes information the current object
856
+ * @param Identity The instance to serialize from.
857
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
773
858
  * @param writer Serialization writer to use to serialize this model
774
859
  */
775
860
  // @ts-ignore
776
- export function serializeIdentity(writer, identity = {}) {
777
- if (identity) {
778
- serializeEntity(writer, identity);
779
- writer.writeEnumValue("type", identity.type);
861
+ export function serializeIdentity(writer, identity = {}, isSerializingDerivedType = false) {
862
+ if (!identity || isSerializingDerivedType) {
863
+ return;
780
864
  }
865
+ serializeEntity(writer, identity, isSerializingDerivedType);
866
+ writer.writeEnumValue("type", identity.type);
781
867
  }
782
868
  /**
783
869
  * Serializes information the current object
870
+ * @param IdentityCollectionResponse The instance to serialize from.
871
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
784
872
  * @param writer Serialization writer to use to serialize this model
785
873
  */
786
874
  // @ts-ignore
787
- export function serializeIdentityCollectionResponse(writer, identityCollectionResponse = {}) {
788
- if (identityCollectionResponse) {
789
- serializeBaseCollectionPaginationCountResponse(writer, identityCollectionResponse);
790
- writer.writeCollectionOfObjectValues("value", identityCollectionResponse.value, serializeIdentity);
875
+ export function serializeIdentityCollectionResponse(writer, identityCollectionResponse = {}, isSerializingDerivedType = false) {
876
+ if (!identityCollectionResponse || isSerializingDerivedType) {
877
+ return;
791
878
  }
879
+ serializeBaseCollectionPaginationCountResponse(writer, identityCollectionResponse, isSerializingDerivedType);
880
+ writer.writeCollectionOfObjectValues("value", identityCollectionResponse.value, serializeIdentity);
792
881
  }
793
882
  /**
794
883
  * Serializes information the current object
884
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
885
+ * @param ItemIdResolver The instance to serialize from.
795
886
  * @param writer Serialization writer to use to serialize this model
796
887
  */
797
888
  // @ts-ignore
798
- export function serializeItemIdResolver(writer, itemIdResolver = {}) {
799
- if (itemIdResolver) {
800
- serializeUrlToItemResolverBase(writer, itemIdResolver);
801
- writer.writeStringValue("itemId", itemIdResolver.itemId);
802
- writer.writeObjectValue("urlMatchInfo", itemIdResolver.urlMatchInfo, serializeUrlMatchInfo);
889
+ export function serializeItemIdResolver(writer, itemIdResolver = {}, isSerializingDerivedType = false) {
890
+ if (!itemIdResolver || isSerializingDerivedType) {
891
+ return;
803
892
  }
893
+ serializeUrlToItemResolverBase(writer, itemIdResolver, isSerializingDerivedType);
894
+ writer.writeStringValue("itemId", itemIdResolver.itemId);
895
+ writer.writeObjectValue("urlMatchInfo", itemIdResolver.urlMatchInfo, serializeUrlMatchInfo);
804
896
  }
805
897
  /**
806
898
  * Serializes information the current object
899
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
900
+ * @param Properties The instance to serialize from.
807
901
  * @param writer Serialization writer to use to serialize this model
808
902
  */
809
903
  // @ts-ignore
810
- export function serializeProperties(writer, properties = {}) {
811
- if (properties) {
812
- writer.writeStringValue("@odata.type", properties.odataType);
813
- writer.writeAdditionalData(properties.additionalData);
904
+ export function serializeProperties(writer, properties = {}, isSerializingDerivedType = false) {
905
+ if (!properties || isSerializingDerivedType) {
906
+ return;
814
907
  }
908
+ writer.writeStringValue("@odata.type", properties.odataType);
909
+ writer.writeAdditionalData(properties.additionalData);
815
910
  }
816
911
  /**
817
912
  * Serializes information the current object
913
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
914
+ * @param Property The instance to serialize from.
818
915
  * @param writer Serialization writer to use to serialize this model
819
916
  */
820
917
  // @ts-ignore
821
- export function serializeProperty(writer, property = {}) {
822
- if (property) {
823
- writer.writeCollectionOfPrimitiveValues("aliases", property.aliases);
824
- writer.writeBooleanValue("isQueryable", property.isQueryable);
825
- writer.writeBooleanValue("isRefinable", property.isRefinable);
826
- writer.writeBooleanValue("isRetrievable", property.isRetrievable);
827
- writer.writeBooleanValue("isSearchable", property.isSearchable);
828
- if (property.labels)
829
- writer.writeCollectionOfEnumValues("labels", property.labels);
830
- writer.writeStringValue("name", property.name);
831
- writer.writeStringValue("@odata.type", property.odataType);
832
- writer.writeEnumValue("type", property.type);
833
- writer.writeAdditionalData(property.additionalData);
918
+ export function serializeProperty(writer, property = {}, isSerializingDerivedType = false) {
919
+ if (!property || isSerializingDerivedType) {
920
+ return;
834
921
  }
922
+ writer.writeCollectionOfPrimitiveValues("aliases", property.aliases);
923
+ writer.writeBooleanValue("isQueryable", property.isQueryable);
924
+ writer.writeBooleanValue("isRefinable", property.isRefinable);
925
+ writer.writeBooleanValue("isRetrievable", property.isRetrievable);
926
+ writer.writeBooleanValue("isSearchable", property.isSearchable);
927
+ if (property.labels)
928
+ writer.writeCollectionOfEnumValues("labels", property.labels);
929
+ writer.writeStringValue("name", property.name);
930
+ writer.writeStringValue("@odata.type", property.odataType);
931
+ writer.writeEnumValue("type", property.type);
932
+ writer.writeAdditionalData(property.additionalData);
835
933
  }
836
934
  /**
837
935
  * Serializes information the current object
936
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
937
+ * @param PropertyRule The instance to serialize from.
838
938
  * @param writer Serialization writer to use to serialize this model
839
939
  */
840
940
  // @ts-ignore
841
- export function serializePropertyRule(writer, propertyRule = {}) {
842
- if (propertyRule) {
843
- writer.writeStringValue("@odata.type", propertyRule.odataType);
844
- writer.writeEnumValue("operation", propertyRule.operation);
845
- writer.writeStringValue("property", propertyRule.property);
846
- writer.writeCollectionOfPrimitiveValues("values", propertyRule.values);
847
- writer.writeEnumValue("valuesJoinedBy", propertyRule.valuesJoinedBy);
848
- writer.writeAdditionalData(propertyRule.additionalData);
941
+ export function serializePropertyRule(writer, propertyRule = {}, isSerializingDerivedType = false) {
942
+ if (!propertyRule || isSerializingDerivedType) {
943
+ return;
849
944
  }
945
+ writer.writeStringValue("@odata.type", propertyRule.odataType);
946
+ writer.writeEnumValue("operation", propertyRule.operation);
947
+ writer.writeStringValue("property", propertyRule.property);
948
+ writer.writeCollectionOfPrimitiveValues("values", propertyRule.values);
949
+ writer.writeEnumValue("valuesJoinedBy", propertyRule.valuesJoinedBy);
950
+ writer.writeAdditionalData(propertyRule.additionalData);
850
951
  }
851
952
  /**
852
953
  * Serializes information the current object
954
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
955
+ * @param Schema The instance to serialize from.
853
956
  * @param writer Serialization writer to use to serialize this model
854
957
  */
855
958
  // @ts-ignore
856
- export function serializeSchema(writer, schema = {}) {
857
- if (schema) {
858
- serializeEntity(writer, schema);
859
- writer.writeStringValue("baseType", schema.baseType);
860
- writer.writeCollectionOfObjectValues("properties", schema.properties, serializeProperty);
959
+ export function serializeSchema(writer, schema = {}, isSerializingDerivedType = false) {
960
+ if (!schema || isSerializingDerivedType) {
961
+ return;
861
962
  }
963
+ serializeEntity(writer, schema, isSerializingDerivedType);
964
+ writer.writeStringValue("baseType", schema.baseType);
965
+ writer.writeCollectionOfObjectValues("properties", schema.properties, serializeProperty);
862
966
  }
863
967
  /**
864
968
  * Serializes information the current object
969
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
970
+ * @param SearchSettings The instance to serialize from.
865
971
  * @param writer Serialization writer to use to serialize this model
866
972
  */
867
973
  // @ts-ignore
868
- export function serializeSearchSettings(writer, searchSettings = {}) {
869
- if (searchSettings) {
870
- writer.writeStringValue("@odata.type", searchSettings.odataType);
871
- writer.writeCollectionOfObjectValues("searchResultTemplates", searchSettings.searchResultTemplates, serializeDisplayTemplate);
872
- writer.writeAdditionalData(searchSettings.additionalData);
974
+ export function serializeSearchSettings(writer, searchSettings = {}, isSerializingDerivedType = false) {
975
+ if (!searchSettings || isSerializingDerivedType) {
976
+ return;
873
977
  }
978
+ writer.writeStringValue("@odata.type", searchSettings.odataType);
979
+ writer.writeCollectionOfObjectValues("searchResultTemplates", searchSettings.searchResultTemplates, serializeDisplayTemplate);
980
+ writer.writeAdditionalData(searchSettings.additionalData);
874
981
  }
875
982
  /**
876
983
  * Serializes information the current object
984
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
985
+ * @param UrlMatchInfo The instance to serialize from.
877
986
  * @param writer Serialization writer to use to serialize this model
878
987
  */
879
988
  // @ts-ignore
880
- export function serializeUrlMatchInfo(writer, urlMatchInfo = {}) {
881
- if (urlMatchInfo) {
882
- writer.writeCollectionOfPrimitiveValues("baseUrls", urlMatchInfo.baseUrls);
883
- writer.writeStringValue("@odata.type", urlMatchInfo.odataType);
884
- writer.writeStringValue("urlPattern", urlMatchInfo.urlPattern);
885
- writer.writeAdditionalData(urlMatchInfo.additionalData);
989
+ export function serializeUrlMatchInfo(writer, urlMatchInfo = {}, isSerializingDerivedType = false) {
990
+ if (!urlMatchInfo || isSerializingDerivedType) {
991
+ return;
886
992
  }
993
+ writer.writeCollectionOfPrimitiveValues("baseUrls", urlMatchInfo.baseUrls);
994
+ writer.writeStringValue("@odata.type", urlMatchInfo.odataType);
995
+ writer.writeStringValue("urlPattern", urlMatchInfo.urlPattern);
996
+ writer.writeAdditionalData(urlMatchInfo.additionalData);
887
997
  }
888
998
  /**
889
999
  * Serializes information the current object
1000
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1001
+ * @param UrlToItemResolverBase The instance to serialize from.
890
1002
  * @param writer Serialization writer to use to serialize this model
891
1003
  */
892
1004
  // @ts-ignore
893
- export function serializeUrlToItemResolverBase(writer, urlToItemResolverBase = {}) {
894
- if (urlToItemResolverBase) {
895
- writer.writeStringValue("@odata.type", urlToItemResolverBase.odataType);
896
- writer.writeNumberValue("priority", urlToItemResolverBase.priority);
897
- writer.writeAdditionalData(urlToItemResolverBase.additionalData);
1005
+ export function serializeUrlToItemResolverBase(writer, urlToItemResolverBase = {}, isSerializingDerivedType = false) {
1006
+ if (!urlToItemResolverBase || isSerializingDerivedType) {
1007
+ return;
1008
+ }
1009
+ writer.writeStringValue("@odata.type", urlToItemResolverBase.odataType);
1010
+ writer.writeNumberValue("priority", urlToItemResolverBase.priority);
1011
+ writer.writeAdditionalData(urlToItemResolverBase.additionalData);
1012
+ switch (urlToItemResolverBase.odataType) {
1013
+ case "#microsoft.graph.externalConnectors.itemIdResolver":
1014
+ serializeItemIdResolver(writer, urlToItemResolverBase, true);
1015
+ break;
898
1016
  }
899
1017
  }
900
1018
  export const AccessTypeObject = {