@microsoft/msgraph-sdk 1.0.0-preview.46 → 1.0.0-preview.47

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
@@ -1156,6 +1156,15 @@ export function createAgreementFileVersionFromDiscriminatorValue(parseNode) {
1156
1156
  export function createAgreementFromDiscriminatorValue(parseNode) {
1157
1157
  return deserializeIntoAgreement;
1158
1158
  }
1159
+ /**
1160
+ * Creates a new instance of the appropriate class based on discriminator value
1161
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1162
+ * @returns {AirPrintSettings}
1163
+ */
1164
+ // @ts-ignore
1165
+ export function createAirPrintSettingsFromDiscriminatorValue(parseNode) {
1166
+ return deserializeIntoAirPrintSettings;
1167
+ }
1159
1168
  /**
1160
1169
  * Creates a new instance of the appropriate class based on discriminator value
1161
1170
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -17085,6 +17094,15 @@ export function createPrinterCreateOperationFromDiscriminatorValue(parseNode) {
17085
17094
  export function createPrinterDefaultsFromDiscriminatorValue(parseNode) {
17086
17095
  return deserializeIntoPrinterDefaults;
17087
17096
  }
17097
+ /**
17098
+ * Creates a new instance of the appropriate class based on discriminator value
17099
+ * @param parseNode The parse node to use to read the discriminator value and create the object
17100
+ * @returns {PrinterDiscoverySettings}
17101
+ */
17102
+ // @ts-ignore
17103
+ export function createPrinterDiscoverySettingsFromDiscriminatorValue(parseNode) {
17104
+ return deserializeIntoPrinterDiscoverySettings;
17105
+ }
17088
17106
  /**
17089
17107
  * Creates a new instance of the appropriate class based on discriminator value
17090
17108
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -26692,6 +26710,18 @@ export function deserializeIntoAgreementFileVersionCollectionResponse(agreementF
26692
26710
  * @returns {Record<string, (node: ParseNode) => void>}
26693
26711
  */
26694
26712
  // @ts-ignore
26713
+ export function deserializeIntoAirPrintSettings(airPrintSettings = {}) {
26714
+ return {
26715
+ "backingStoreEnabled": n => { airPrintSettings.backingStoreEnabled = true; },
26716
+ "incompatiblePrinters": n => { airPrintSettings.incompatiblePrinters = n.getEnumValue(IncompatiblePrinterSettingsObject); },
26717
+ "@odata.type": n => { airPrintSettings.odataType = n.getStringValue(); },
26718
+ };
26719
+ }
26720
+ /**
26721
+ * The deserialization information for the current model
26722
+ * @returns {Record<string, (node: ParseNode) => void>}
26723
+ */
26724
+ // @ts-ignore
26695
26725
  export function deserializeIntoAlbum(album = {}) {
26696
26726
  return {
26697
26727
  "backingStoreEnabled": n => { album.backingStoreEnabled = true; },
@@ -40005,7 +40035,7 @@ export function deserializeIntoPrintConnectorCollectionResponse(printConnectorCo
40005
40035
  */
40006
40036
  // @ts-ignore
40007
40037
  export function deserializeIntoPrintDocument(printDocument = {}) {
40008
- return Object.assign(Object.assign({}, deserializeIntoEntity(printDocument)), { "contentType": n => { printDocument.contentType = n.getStringValue(); }, "displayName": n => { printDocument.displayName = n.getStringValue(); }, "size": n => { printDocument.size = n.getNumberValue(); } });
40038
+ return Object.assign(Object.assign({}, deserializeIntoEntity(printDocument)), { "contentType": n => { printDocument.contentType = n.getStringValue(); }, "displayName": n => { printDocument.displayName = n.getStringValue(); }, "downloadedDateTime": n => { printDocument.downloadedDateTime = n.getDateValue(); }, "size": n => { printDocument.size = n.getNumberValue(); }, "uploadedDateTime": n => { printDocument.uploadedDateTime = n.getDateValue(); } });
40009
40039
  }
40010
40040
  /**
40011
40041
  * The deserialization information for the current model
@@ -40130,6 +40160,18 @@ export function deserializeIntoPrinterDefaults(printerDefaults = {}) {
40130
40160
  * @returns {Record<string, (node: ParseNode) => void>}
40131
40161
  */
40132
40162
  // @ts-ignore
40163
+ export function deserializeIntoPrinterDiscoverySettings(printerDiscoverySettings = {}) {
40164
+ return {
40165
+ "airPrint": n => { printerDiscoverySettings.airPrint = n.getObjectValue(createAirPrintSettingsFromDiscriminatorValue); },
40166
+ "backingStoreEnabled": n => { printerDiscoverySettings.backingStoreEnabled = true; },
40167
+ "@odata.type": n => { printerDiscoverySettings.odataType = n.getStringValue(); },
40168
+ };
40169
+ }
40170
+ /**
40171
+ * The deserialization information for the current model
40172
+ * @returns {Record<string, (node: ParseNode) => void>}
40173
+ */
40174
+ // @ts-ignore
40133
40175
  export function deserializeIntoPrinterLocation(printerLocation = {}) {
40134
40176
  return {
40135
40177
  "altitudeInMeters": n => { printerLocation.altitudeInMeters = n.getNumberValue(); },
@@ -40201,7 +40243,7 @@ export function deserializeIntoPrinterStatus(printerStatus = {}) {
40201
40243
  */
40202
40244
  // @ts-ignore
40203
40245
  export function deserializeIntoPrintJob(printJob = {}) {
40204
- return Object.assign(Object.assign({}, deserializeIntoEntity(printJob)), { "configuration": n => { printJob.configuration = n.getObjectValue(createPrintJobConfigurationFromDiscriminatorValue); }, "createdBy": n => { printJob.createdBy = n.getObjectValue(createUserIdentityFromDiscriminatorValue); }, "createdDateTime": n => { printJob.createdDateTime = n.getDateValue(); }, "documents": n => { printJob.documents = n.getCollectionOfObjectValues(createPrintDocumentFromDiscriminatorValue); }, "isFetchable": n => { printJob.isFetchable = n.getBooleanValue(); }, "redirectedFrom": n => { printJob.redirectedFrom = n.getStringValue(); }, "redirectedTo": n => { printJob.redirectedTo = n.getStringValue(); }, "status": n => { printJob.status = n.getObjectValue(createPrintJobStatusFromDiscriminatorValue); }, "tasks": n => { printJob.tasks = n.getCollectionOfObjectValues(createPrintTaskFromDiscriminatorValue); } });
40246
+ return Object.assign(Object.assign({}, deserializeIntoEntity(printJob)), { "acknowledgedDateTime": n => { printJob.acknowledgedDateTime = n.getDateValue(); }, "configuration": n => { printJob.configuration = n.getObjectValue(createPrintJobConfigurationFromDiscriminatorValue); }, "createdBy": n => { printJob.createdBy = n.getObjectValue(createUserIdentityFromDiscriminatorValue); }, "createdDateTime": n => { printJob.createdDateTime = n.getDateValue(); }, "documents": n => { printJob.documents = n.getCollectionOfObjectValues(createPrintDocumentFromDiscriminatorValue); }, "errorCode": n => { printJob.errorCode = n.getNumberValue(); }, "isFetchable": n => { printJob.isFetchable = n.getBooleanValue(); }, "redirectedFrom": n => { printJob.redirectedFrom = n.getStringValue(); }, "redirectedTo": n => { printJob.redirectedTo = n.getStringValue(); }, "status": n => { printJob.status = n.getObjectValue(createPrintJobStatusFromDiscriminatorValue); }, "tasks": n => { printJob.tasks = n.getCollectionOfObjectValues(createPrintTaskFromDiscriminatorValue); } });
40205
40247
  }
40206
40248
  /**
40207
40249
  * The deserialization information for the current model
@@ -40342,6 +40384,7 @@ export function deserializeIntoPrintSettings(printSettings = {}) {
40342
40384
  "backingStoreEnabled": n => { printSettings.backingStoreEnabled = true; },
40343
40385
  "documentConversionEnabled": n => { printSettings.documentConversionEnabled = n.getBooleanValue(); },
40344
40386
  "@odata.type": n => { printSettings.odataType = n.getStringValue(); },
40387
+ "printerDiscoverySettings": n => { printSettings.printerDiscoverySettings = n.getObjectValue(createPrinterDiscoverySettingsFromDiscriminatorValue); },
40345
40388
  };
40346
40389
  }
40347
40390
  /**
@@ -50370,6 +50413,18 @@ export function serializeAgreementFileVersionCollectionResponse(writer, agreemen
50370
50413
  * @param writer Serialization writer to use to serialize this model
50371
50414
  */
50372
50415
  // @ts-ignore
50416
+ export function serializeAirPrintSettings(writer, airPrintSettings = {}) {
50417
+ if (airPrintSettings) {
50418
+ writer.writeEnumValue("incompatiblePrinters", airPrintSettings.incompatiblePrinters);
50419
+ writer.writeStringValue("@odata.type", airPrintSettings.odataType);
50420
+ writer.writeAdditionalData(airPrintSettings.additionalData);
50421
+ }
50422
+ }
50423
+ /**
50424
+ * Serializes information the current object
50425
+ * @param writer Serialization writer to use to serialize this model
50426
+ */
50427
+ // @ts-ignore
50373
50428
  export function serializeAlbum(writer, album = {}) {
50374
50429
  if (album) {
50375
50430
  writer.writeStringValue("coverImageItemId", album.coverImageItemId);
@@ -69104,7 +69159,9 @@ export function serializePrintDocument(writer, printDocument = {}) {
69104
69159
  serializeEntity(writer, printDocument);
69105
69160
  writer.writeStringValue("contentType", printDocument.contentType);
69106
69161
  writer.writeStringValue("displayName", printDocument.displayName);
69162
+ writer.writeDateValue("downloadedDateTime", printDocument.downloadedDateTime);
69107
69163
  writer.writeNumberValue("size", printDocument.size);
69164
+ writer.writeDateValue("uploadedDateTime", printDocument.uploadedDateTime);
69108
69165
  }
69109
69166
  }
69110
69167
  /**
@@ -69269,6 +69326,18 @@ export function serializePrinterDefaults(writer, printerDefaults = {}) {
69269
69326
  * @param writer Serialization writer to use to serialize this model
69270
69327
  */
69271
69328
  // @ts-ignore
69329
+ export function serializePrinterDiscoverySettings(writer, printerDiscoverySettings = {}) {
69330
+ if (printerDiscoverySettings) {
69331
+ writer.writeObjectValue("airPrint", printerDiscoverySettings.airPrint, serializeAirPrintSettings);
69332
+ writer.writeStringValue("@odata.type", printerDiscoverySettings.odataType);
69333
+ writer.writeAdditionalData(printerDiscoverySettings.additionalData);
69334
+ }
69335
+ }
69336
+ /**
69337
+ * Serializes information the current object
69338
+ * @param writer Serialization writer to use to serialize this model
69339
+ */
69340
+ // @ts-ignore
69272
69341
  export function serializePrinterLocation(writer, printerLocation = {}) {
69273
69342
  if (printerLocation) {
69274
69343
  writer.writeNumberValue("altitudeInMeters", printerLocation.altitudeInMeters);
@@ -69354,10 +69423,12 @@ export function serializePrinterStatus(writer, printerStatus = {}) {
69354
69423
  export function serializePrintJob(writer, printJob = {}) {
69355
69424
  if (printJob) {
69356
69425
  serializeEntity(writer, printJob);
69426
+ writer.writeDateValue("acknowledgedDateTime", printJob.acknowledgedDateTime);
69357
69427
  writer.writeObjectValue("configuration", printJob.configuration, serializePrintJobConfiguration);
69358
69428
  writer.writeObjectValue("createdBy", printJob.createdBy, serializeUserIdentity);
69359
69429
  writer.writeDateValue("createdDateTime", printJob.createdDateTime);
69360
69430
  writer.writeCollectionOfObjectValues("documents", printJob.documents, serializePrintDocument);
69431
+ writer.writeNumberValue("errorCode", printJob.errorCode);
69361
69432
  writer.writeBooleanValue("isFetchable", printJob.isFetchable);
69362
69433
  writer.writeStringValue("redirectedFrom", printJob.redirectedFrom);
69363
69434
  writer.writeStringValue("redirectedTo", printJob.redirectedTo);
@@ -69528,6 +69599,7 @@ export function serializePrintSettings(writer, printSettings = {}) {
69528
69599
  if (printSettings) {
69529
69600
  writer.writeBooleanValue("documentConversionEnabled", printSettings.documentConversionEnabled);
69530
69601
  writer.writeStringValue("@odata.type", printSettings.odataType);
69602
+ writer.writeObjectValue("printerDiscoverySettings", printSettings.printerDiscoverySettings, serializePrinterDiscoverySettings);
69531
69603
  writer.writeAdditionalData(printSettings.additionalData);
69532
69604
  }
69533
69605
  }
@@ -84139,6 +84211,11 @@ export const IncludedUserTypesObject = {
84139
84211
  Guest: "guest",
84140
84212
  UnknownFutureValue: "unknownFutureValue",
84141
84213
  };
84214
+ export const IncompatiblePrinterSettingsObject = {
84215
+ Show: "show",
84216
+ Hide: "hide",
84217
+ UnknownFutureValue: "unknownFutureValue",
84218
+ };
84142
84219
  export const InferenceClassificationTypeObject = {
84143
84220
  Focused: "focused",
84144
84221
  Other: "other",